(make_gap_smaller): Preserve BEG_UNCHANGED during gap
[bpt/emacs.git] / src / ChangeLog
CommitLineData
73df3b72
KS
12002-02-09 Kim F. Storm <storm@cua.dk>
2
3 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
4 reduction. This fixes a display problem where stray newlines were
5 inserted in the window (corrected by C-l). Clarified code (IMHO).
6
18b0be7c
EZ
72002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
8
9 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
10
11 * xdisp.c (display_mode_lines): Fix last change.
12
442ca9ba
JR
132002-02-09 Jason Rumney <jasonr@gnu.org>
14
15 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
16 match each other.
3acfb461
JR
17 (w32_load_system_font): Prevent Cleartype fonts from loading.
18 (Fx_show_tip): Ensure tip frames are above other topmost windows.
442ca9ba 19
cdefda26
KS
202002-02-09 Kim F. Storm <storm@cua.dk>
21
22 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
23 (CURRENT_MODE_LINE_HEIGHT): Use it.
24 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
25
26 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
27 (pos_visible_p, handle_face_prop): Likewise.
28 (display_mode_lines): Likewise, but for the real selected window.
29 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
30
31 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
32 in non-selected windows.
33 (realize_basic_faces): Realize it.
34 (syms_of_term): Intern and staticpro it.
35
9f69e812
KS
362002-02-08 Kim F. Storm <storm@cua.dk>
37
38 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
39 Changed mail addresses to emacs-devel@gnu.org.
40
6ded2c89
EZ
412002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
42
b5d40ceb
EZ
43 * fileio.c (Fsubstitute_in_file_name): If the file name includes
44 ~user, and there's no such user, don't discard everything before
45 ~user.
46
6ded2c89
EZ
47 * floatfns.c (Fround): Doc fix.
48
7c15926f
PJ
492002-02-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
50
51 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
52
6a229a63
SM
532002-02-07 Stefan Monnier <monnier@cs.yale.edu>
54
55 * lisp.h (Fx_file_dialog): Export (for Motif code in fileio.c).
56
33b93ee5
KS
572002-02-07 Kim F. Storm <storm@cua.dk>
58
59 * keymap.c (where_is_internal): Only check whether definition is
60 remapped if it fulfills is_command_symbol.
61
72bba9f2
AS
622002-02-07 Andreas Schwab <schwab@suse.de>
63
64 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
65
66 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
67
93607efd
KS
682002-02-06 Kim F. Storm <storm@cua.dk>
69
70 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
71 defining command remapping. Doc updated.
72 (Flookup_key): Remap command through keymap if KEY is a symbol.
73 (is_command_symbol): New function.
6a229a63
SM
74 (Fkey_binding): Use it. New optional argument NO-REMAP.
75 Doc updated. Callers changed. Perform command remapping via
93607efd
KS
76 recursive call unless that arg is non-nil.
77 (where_is_internal): New argument no_remap. Callers changed.
78 Call recursively to find original key bindings for a remapped
79 comand unless that arg is non-nil.
6a229a63
SM
80 (Fwhere_is_internal): New optional argument NO-REMAP.
81 Doc updated. Callers changed. Pass arg to where_is_internal.
93607efd
KS
82
83 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
84 (is_command_symbol): Added prototype.
85
86 * keyboard.c (Vthis_original_command): New variable.
87 (syms_of_keyboard): DEFVAR_LISP it.
88 (command_loop_1): Set it, and perform command remapping.
89
72bba9f2 902002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2642a29e
PJ
91
92 * keyboard.c (recursive_edit_1): Call cancel_hourglass
93 unconditionally.
94
f4ed304f
JR
952002-02-06 Jason Rumney <jasonr@gnu.org>
96
97 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
98
b5309828
EZ
992002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
100
101 * charset.c (get_charset_id): Use if-else instead of ?:.
102
108eaabb
RS
1032002-02-06 Richard M. Stallman <rms@gnu.org>
104
105 * filelock.c (S_ISLNK): Define if not defined.
106
bd3567fa
RS
1072002-02-03 Richard M. Stallman <rms@gnu.org>
108
109 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
110
111 * lread.c (read1): Redesign strategy for force_multibyte and
112 force_singlebyte. Now is_multibyte records whether read_buffer
113 is multibyte. Encountering any multibyte character makes it so.
6a229a63 114
95c11956
SM
1152002-02-02 Stefan Monnier <monnier@cs.yale.edu>
116
117 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
118 with the same sequence, map that sequence to f10 rather than f0.
119
ee466d0b
AS
1202002-02-03 Andreas Schwab <schwab@suse.de>
121
122 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
123 latter never being defined on GNU/Linux.
124
f77157da
EZ
1252002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
126
127 * xfaces.c (realize_default_face): Don't set the weight and slant
128 of the default face to Qnormal, unless these attributes are
129 unspecified.
130
72bba9f2 1312002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fbcc9b1 132
95c11956
SM
133 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
134 Call cancel_hourglass unconditionally.
4fbcc9b1
PJ
135
136 * eval.c (Fsignal): Remove duplicated declaration of
137 the variable `display_hourglass_p'.
138
5e101746
RS
1392002-01-31 Richard M. Stallman <rms@gnu.org>
140
141 * editfns.c (region_limit): Nicer error message.
142
143 * coding.c (decode_composition_emacs_mule):
144 Give up if NCOMPONENT gets too large to index `component'.
145
146 * callint.c (check_mark): New arg to specify clearer error message.
147 Callers changed.
148
1492002-01-27 Richard M. Stallman <rms@gnu.org>
150
151 * minibuf.c (Fcompleting_read): Doc fix.
152
72bba9f2 1532002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4b11ca
PJ
154
155 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
95c11956
SM
156 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
157 Fix doc-strings.
7a4b11ca 158
f5798fbd
RS
1592002-01-26 Richard M. Stallman <rms@gnu.org>
160
161 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
162
163 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
164 and scroll_up_aggressively.
165
72bba9f2 1662002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8fc77801
PJ
167
168 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
169
3a232704
SM
1702002-01-25 Stefan Monnier <monnier@cs.yale.edu>
171
172 * textprop.c (Fnext_property_change, Fnext_single_property_change)
173 (Fprevious_property_change, Fprevious_single_property_change):
174 Stay within the narrowed-buffer boundaries.
175
dd939ea1
EZ
1762002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
177
178 * term.c (Ftty_display_color_cells): New function.
179 (syms_of_term): Defsubr it.
0011f346
EZ
180 (Ftty_display_color_cells, Ftty_display_color_p): Change the
181 argument name to DISPLAY. Doc fix.
dd939ea1
EZ
182
183 * dispextern.h: Add prototype for set_tty_color_mode and
184 tty_setup_colors.
185
aa35b6ad
JR
1862002-01-24 Jason Rumney <jasonr@gnu.org>
187
188 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
189 If region left to draw is not what was expected, mark the frame as
190 garbaged.
191
192 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
193 Combine the regions returned by BeginPaint and GetUpdateRect.
194
ab76d376
JR
1952002-01-23 Jason Rumney <jasonr@gnu.org>
196
197 * w32term.c (x_update_window_begin): Only hide caret if
198 w32_use_visible_system_caret is set.
199 (x_update_window_end): Only show caret if
200 w32_use_visible_system_caret is set.
201 (syms_of_w32term): Handle SystemParametersInfo call failing.
202
203 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
204
d89b617d
RS
2052002-01-22 Richard M. Stallman <rms@gnu.org>
206
207 * unexelf.c (unexec): Define n so as to cause compilation error
208 for the code where people have often written n instead of nn.
209
210 * .gdbinit (hookpost-run): Defined.
211
f0b9a067
JD
2122002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
213
214 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
215
5f9338d5
JD
2162002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
217
218 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
219 if fullscreen is being set.
220
72bba9f2 2212002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
029a305c
PJ
222
223 * minibuf.c (Fminibuffer_contents)
224 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
225 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
226
8cc0e0cf
RS
2272002-01-21 Richard M. Stallman <rms@gnu.org>
228
229 * window.c (check_frame_size): Fix minimum height calculation.
230
d7b8ee68
KR
2312002-01-20 Ken Raeburn <raeburn@gnu.org>
232
233 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
234 height before comparison.
235 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
236
c3c14723
JR
2372002-01-20 Jason Rumney <jasonr@gnu.org>
238
239 * w32term.c (w32_system_caret_width): Remove.
240 (w32_use_visible_system_caret): New user flag.
241 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
242 Windows reports a screen reader running.
243 (x_update_window_begin): Hide the system caret.
244 (x_update_window_end): Show the system caret.
245 (x_display_and_set_cursor): Don't draw a cursor when
246 w32_use_visible_system_caret is set. Do not adjust width.
247
248 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
249 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
250 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
251 the user requests it. Use system default width when creating.
252 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
253
95c11956
SM
254 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
255 New window messages.
c3c14723 256
75e20bec
RS
2572002-01-20 Richard M. Stallman <rms@gnu.org>
258
259 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
260
72bba9f2 2612002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c17e062
PJ
262
263 * doprnt.c (doprnt1): Fix typos in error call.
264
3b927d14
EZ
2652002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
266
267 * unexelf.c (unexec) [__sgi]: Support the .got sections.
268
aa06cb9c
JR
2692002-01-20 Jason Rumney <jasonr@gnu.org>
270
271 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
272 that Windows returns. If a double check fails, try to guess how
273 ExtTextOut is going to act.
274
275 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
276 in place of stricmp.
277 (w32_list_synthesized_fonts): Removed.
278 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
279 (struct enumfont_t): New element; list.
280 (enum_font_cb2): List all style and charset variations of a font.
281 (Fw32_select_font): New optional argument; include_proportional.
282 Exclude vertical fonts. Exclude proportional fonts unless
283 include_proportional is non-nil.
284 (w32_enable_synthesized_fonts): Change to a boolean.
285 (Fw32_send_sys_command): Doc fix.
286
72bba9f2 2872002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
37082f8d
PJ
288
289 * dispnew.c (update_frame): Move the variable `tem' to the block
290 where it is used.
291
815d969e
JR
2922002-01-19 Jason Rumney <jasonr@gnu.org>
293
294 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
295 call to face-set-after-frame-default.
296
a1e3dda0
RS
2972002-01-18 Richard M. Stallman <rms@gnu.org>
298
95c11956 299 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
a1e3dda0
RS
300 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
301
daf516d3
RS
3022002-01-17 Richard M. Stallman <rms@gnu.org>
303
304 * window.c (enlarge_window): When exceeding size of parent,
305 directly delete all the siblings instead of trying to resize it.
306
72bba9f2 3072002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dfc7a077
PJ
308
309 * term.c (set_tty_color_mode): Remove unused variable `tem'.
310
3ddff138
RS
3112002-01-16 Henrik Enberg <henrik@enberg.org>
312
7adfc0d7 313 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
3ddff138 314
465c9390
KS
3152002-01-16 Kim F. Storm <storm@cua.dk>
316
317 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
318 is invisible. This can happen if cursor is on top line of a
319 window, and we switch to a buffer with a header line.
320
95c11956 321 * w32term.c (x_erase_phys_cursor): Ditto.
a2c6de8e 322
72bba9f2 3232002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4bce14
PJ
324
325 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
326 `dont_resize' only when used.
327
328 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
329
26f622b3
EZ
3302002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
331
332 * xdisp.c (display_mode_element): When computing charpos, depend
f165c448 333 on multibyteness of elt, not the text in field.
26f622b3 334
72bba9f2 3352002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1a6db83a
PJ
336
337 * buffer.c (Fkill_all_local_variables): Increment
338 `update_mode_lines' only once.
339
72bba9f2 3402002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a4ff5d67 341
aa1977d7
PJ
342 * lisp.h (adjust_after_replace_noundo)
343 (Fupdate_coding_systems_internal): Add prototypes.
344
95c11956 345 * sound.c (Fplay_sound): Initialize header_size also for :data case.
a4ff5d67 346
3947677c
EZ
3472002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
348
349 Support for the --color command-line argument and tty-color-mode
350 frame parameter:
351
352 * term.c (tty_default_color_capabilities, tty_setup_colors)
353 (set_tty_color_mode): New functions.
354 (term_init): Call tty_default_color_capabilities.
355 (Qtty_color_mode_alist): New variable.
356 (syms_of_term): Intern and staticpro it.
357
358 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
359 frames.
360 (do_switch_frame): For termcap frames, switch the tty
361 color mode as specified by the frame's parameters.
362 (Qtty_color_mode): New variable.
363 (syms_of_frame): Intern and staticpro it.
364
365 * emacs.c (USAGE2): Add the --color option.
366 (standard_args): Ditto.
367
8a8e19a3
EZ
3682002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
369
370 * xterm.h (struct x_output): New members want_fullscreen,
371 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
372 y_pixels_outer_diff.
373 New enum for FULLSCREEN_* constants.
374 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
375 is NULL.
376 (x_fullscreen_adjust): Add prototype.
377
378 * emacs.c (USAGE2): Add the new full-screen arguments.
379 (standard_args): Ditto.
380
95c11956
SM
381 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
382 New variables.
8a8e19a3
EZ
383 (syms_of_xfns): Intern and staticpro them.
384 (x_frame_parms) <"fullscreen">: New parameter.
385 (x_fullscreen_move, x_set_fullscreen): New functions.
386 (x_set_frame_parameters): Support for Qfullscreen.
387 (x_real_positions): More accurate computation of the frame position.
388 (x_figure_window_size): Support full-screen frames.
389 (Fx_create_frame): Default the fullscreen parameter.
390
391 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
392 (XTread_socket) <Expose>: Call x_check_fullscreen.
95c11956
SM
393 <ConfigureNotify>: Don't resize to fullscreen.
394 Call x_check_fullscreen_move, and set the want_fullscreen member of
8a8e19a3
EZ
395 output_data.x.
396
4f1b1854
JR
3972002-01-13 Jason Rumney <jasonr@gnu.org>
398
399 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
400 for mice with more than 3 buttons.
401
402 * w32term.c (parse_button): New parameter xbutton. Callers changed.
403 (w32_read_socket): Handle new "XBUTTON" messages.
404
405 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
406 (syms_of_w32fns): DEFVAR_BOOL it.
407 (w32_wnd_proc): Handle new "XBUTTON" messages.
408
72bba9f2 4092002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5cb6905d 410
95c11956 411 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
5cb6905d 412
437dfb9f
AS
4132002-01-13 Andreas Schwab <schwab@suse.de>
414
415 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
416
9f696a00
AS
4172002-01-12 Andreas Schwab <schwab@suse.de>
418
419 * .gdbinit (xbuffer): Remove address operator since data is now a
420 pointer.
421
d57966d7
RS
4222002-01-11 Richard M. Stallman <rms@gnu.org>
423
424 * insdel.c (adjust_after_replace_noundo): New function.
425
426 * coding.c (code_convert_region): Don't copy old text if undo disabled.
427
74779f52
JR
4282002-01-09 Jason Rumney <jasonr@gnu.org>
429
430 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
431 when checking for multiple frames.
432
a474d59c
RS
4332002-01-08 Richard M. Stallman <rms@gnu.org>
434
435 * window.c (delete_window): Rewrite the code for changing the
436 selected window to handle the case where WINDOW is not a leaf.
437
fbb70ad9
EZ
4382002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
439
440 * process.c (send_process): Set src_multibyte to 1 after the call
441 top setup_coding_system, not before the call.
442
2d10309f
JR
4432002-01-07 Jason Rumney <jasonr@gnu.org>
444
445 * xmenu.c (set_frame_menubar, xmenu_show):
3a232704 446 (xdialog_show): Initialize wv->help to Qnil.
2d10309f
JR
447
448 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
449 (w32_dialog_show): Initialize wv->help to Qnil.
450
7f2cddf3
JR
4512002-01-06 Jason Rumney <jasonr@gnu.org>
452
0b1e6b54
JR
453 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
454
7f2cddf3
JR
455 * w32menu.c (w32_menu_display_help): Revert last change.
456
457 * xmenu.c (menu_highlight_callback): Revert last change.
458
e17144de
AS
4592002-01-06 Andreas Schwab <schwab@suse.de>
460
461 * insdel.c (make_gap_larger): Make sure buffer size does not
462 overflow range of int.
463
6637c996
JR
4642002-01-05 Jason Rumney <jasonr@gnu.org>
465
44368f8f
JR
466 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
467 OVERLAPS_P.
468
f884b6f4
JR
469 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
470
6637c996
JR
471 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
472 to the left or to the right of the pointer, put it against
473 the left screen edge.
474 (x_frame_parms): Add missing braces around initializer.
475
476 * w32term.c (x_setup_relief_colors): Don't compute an image's
477 background color if it doesn't have a Pixmap.
478 (notice_overwritten_cursor): Don't depend on
479 output_cursor and updated_area. Compare pixel coordinates with
480 window's cursor pixel coordinates.
3a232704
SM
481 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
482 Call notice_overwritten_cursor with new arg list.
6637c996
JR
483 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
484 unconditionally.
485 (x_draw_image_relief): Use predefined macro instead of
486 constant when the value of `tool_bar_button_relief' is negative.
487
488 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
489
453c5510
RS
4902002-01-04 Richard M. Stallman <rms@gnu.org>
491
492 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
493
d1d070e3
RS
4942002-01-03 Richard M. Stallman <rms@gnu.org>
495
496 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
497 (Fkey_binding): Try the `keymap' property map first.
498 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
499 minor mode bindings.
500
9ec1bdb6
KS
5012002-01-03 Kim F. Storm <storm@cua.dk>
502
503 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
504
308dd672
RS
5052002-01-02 Richard M. Stallman <rms@gnu.org>
506
edde72f6
RS
507 * keyboard.c (read_key_sequence): Handle the keymap property
508 before minor mode maps.
509
308dd672
RS
510 * editfns.c (Fformat): Update thissize from field_width
511 based on the actual width, in the string case.
512
72bba9f2 5132002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c1e6b46 514
03950b5b
PJ
515 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
516 when used as truth value to prevent gcc warnings.
517
3c1e6b46
PJ
518 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
519 * w32proc.c: Include <config.h>.
520
c1e11810
AS
5212002-01-01 Andreas Schwab <schwab@suse.de>
522
523 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
524 not EMACS_INT, to make them compatible with DEFVAR_INT.
525 * lisp.h (max_specpdl_size): Adjust declaration.
526
1996baee
RS
5272002-01-01 Richard M. Stallman <rms@gnu.org>
528
529 * print.c (print_object): Test print_escape_nonascii only for
530 unibyte strings.
531 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
532 when outputting to a multibyte buffer.
533
0065bb74
RS
5342001-12-29 Richard M. Stallman <rms@gnu.org>
535
536 * print.c (print_object): In multibyte string, use hex escapes.
537 Use octal only for unibyte strings.
538 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
539
540 * lread.c (read_escape): New arg BYTEREP for reporting whether
541 escape forces unibyte or multibyte.
542 (read1): When reading a string, take note of that info.
543
b5cb6072
KR
5442001-12-29 Ken Raeburn <raeburn@gnu.org>
545
546 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
547 comparison to test lisp value returned by Fget.
548
15fff01d
RS
5492001-12-29 Richard M. Stallman <rms@gnu.org>
550
0065bb74
RS
551 * lisp.h (max_specpdl_size): Add declaration.
552
0d8466cc
RS
553 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
554
15fff01d
RS
555 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
556 Handle modifier bits. Correct typo in error message.
557
2fae9111
RS
5582001-12-28 Richard M. Stallman <rms@gnu.org>
559
2d6c1fc0
RS
560 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
561 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
562 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
563 Update calls to Fdefine_abbrev.
564 (write_abbrev): Update for changed data format.
565 Don't list "system" abbrevs.
566 (Fexpand_abbrev): Update use count with new data format.
567 (describe_abbrev): Update for changed data format.
568 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
569
07025a55
RS
570 * config.in (HAVE_MBSINIT): Add #undef.
571
572 * strftime.c (mbsinit): Define as no-op if not available.
573
574 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
575 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
576
ce6eef6e
RS
577 * keymap.c (Flookup_key): Error message if key has wrong data type.
578 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
ade19cac 579 (exclude_key): New variable.
3a232704 580
539e92ad
GM
5812001-12-28 Gerd Moellmann <gerd@gnu.org>
582
0cb8bb48
GM
583 * xterm.c (x_setup_relief_colors): Don't compute an image's
584 background color if it doesn't have a Pixmap.
3a232704 585
60626bab
GM
586 * xterm.c (notice_overwritten_cursor): Don't depend on
587 output_cursor and updated_area. Compare pixel coordinates with
588 window's cursor pixel coordinates.
3a232704
SM
589 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
590 Call notice_overwritten_cursor with new arg list.
60626bab
GM
591 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
592 unconditionally.
0cb8bb48 593
539e92ad
GM
594 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
595 height of the cursor line to the amount to scroll.
596
4e02881b
RS
5972001-12-27 Richard M. Stallman <rms@gnu.org>
598
599 * intervals.c (set_point_both): The position after an invisible,
600 intangible character is not an acceptable stopping point.
601
1ab964d7
KR
6022001-12-27 Ken Raeburn <raeburn@gnu.org>
603
604 * window.c (enlarge_window): In new preserve_before code, convert
605 CURBEG from lisp object to integer before doing arithmetic.
606
749f499f
RS
6072001-12-27 Richard M. Stallman <rms@gnu.org>
608
609 * bytecode.c (Fbyte_code): Undo previous change.
610
b5d9aaba
KS
6112001-12-26 Kim F. Storm <storm@cua.dk>
612
613 * keyboard.c (record_char): Ignore duplicate help-echo events only
614 separated by mouse-movement. When tracking mouse, only record
615 first and last mouse-movement event in same window.
616 Don't record mouse-movement events in keyboard macros.
3a232704 617
d0fd26dd
RS
6182001-12-25 Richard M. Stallman <rms@gnu.org>
619
b4c45162
RS
620 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
621 (Fenlarge_window): New arg PRESERVE_BEFORE.
622
d0fd26dd
RS
623 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
624 instead of Fstring_as_unibyte.
625
72bba9f2 6262001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 627
3a232704 628 The following changes remove mocklisp support:
c95eaa61
PJ
629
630 * mocklisp.h, mocklisp.c: Files removed.
631
632 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
633 `Qmocklisp' and `Qmocklisp_arguments'.
634 Remove prototype of syms_of_mocklisp.
635
3a232704 636 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
c95eaa61
PJ
637
638 * callint.c: Do not include mocklisp.h.
639 (Fcall_interactively): Do not test for mocklisp case.
640
641 * eval.c: Remove variables `Qmocklisp_arguments',
3a232704
SM
642 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
643 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
644 Do not test for mocklisp case.
c95eaa61
PJ
645 (Fwhile): Remove unused variable `tem'.
646 (syms_of_eval): Remove variable `moclisp-arguments'.
647
648 * data.c (wrong_type_argument): Remove mocklisp case.
649
650 * doc.c (Fdocumentation): Remove mocklisp case.
651
652 * emacs.c (main): Do not call syms_of_mocklisp.
653
31877e0a
RS
6542001-12-21 Richard M. Stallman <rms@gnu.org>
655
656 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
657 to the left or to the right of the pointer, put it against
658 the left screen edge.
659
e2c3786a
EZ
6602001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
661
662 * Makefile.in (distclean): Remove .gdbinit if we are building
663 outside the source tree.
664
c513fc03
EZ
6652001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
666
bf794306
EZ
667 * w32.c (emacs_root_dir): New function.
668
669 * msdos.c (emacs_root_dir): New function.
670
671 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
672 of the current drive as the fallback for default_directory.
673
62582985
EZ
674 * dired.c (file_name_completion): Run the elements of
675 completion-ignored-extensions through ENCODE_FILE.
676
c513fc03
EZ
677 * lisp.h (scmp): Remove prototype, since it's now a static
678 function private to dired.c.
679
3509a04c
RS
6802001-12-18 Richard M. Stallman <rms@gnu.org>
681
682 * dired.c (scmp): Function moved from minibuf.c.
683 Delete multibyte handling--used only on encoded strings.
684
685 * minibuf.c (scmp): Function moved to dired.c.
686
687 * fns.c (merge): Add QUIT call.
688
1e9a6186
DL
6892001-12-18 Dave Love <fx@gnu.org>
690
691 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
692 language/georgian.el.
693
e4e34e31
EZ
6942001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
695
696 * Makefile.in (lisp, shortlisp): Synchronize with changes to
697 lisp/Makefile.in:DONTCOMPILE.
698
72bba9f2 6992001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 700
7c75be36
PJ
701 * xdisp.c (window_box_height): Do not return negative values.
702 From Gerd Moellmann <gerd@gnu.org>.
703
4521d1fc
PJ
704 * keyboard.c (head_table): Add missing braces around initializer.
705
706 * term.c (keys): Likewise.
707
708 * xfns.c (x_frame_parms, visual_classes): Likewise.
709
93dec019
SS
7102001-12-17 Sam Steingold <sds@gnu.org>
711
712 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
713 patch (COMPOSING_P, not COMPOSING).
714
905cc05a
RS
7152001-12-17 Richard M. Stallman <rms@gnu.org>
716
2ed06289
RS
717 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
718
0e79d667
RS
719 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
720 before calling decode_coding.
721
722 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
723
724 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
905cc05a
RS
725 instead of only for COMPOSITION_DISABLED.
726
82a7ab23
RS
7272001-12-16 Richard M. Stallman <rms@gnu.org>
728
d75bec6a
RS
729 * alloc.c (pure_alloc): After overflow, allocate just a small block.
730
52dcb476
RS
731 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
732
82a7ab23
RS
733 * buffer.h (struct buffer): New field `display_error_modiff'.
734 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
735
736 * window.c (Frecenter): Clear display_error_modiff field.
737
738 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
739 Call redisplay_window, but not if display_error_modiff field says no.
740 (redisplay_window_error): New function.
741 (displayed_buffer): New variable.
742 (redisplay_internal, redisplay_windows): Call the new functions
743 instead of redisplay_window directly.
744
4d0fa4f3
RS
7452001-12-15 Richard M. Stallman <rms@gnu.org>
746
747 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
748
493faf20
AI
7492001-12-14 Andrew Innes <andrewi@gnu.org>
750
325111e9
AI
751 * makefile.w32-in (EMACSLOADPATH): Define.
752 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
753 (bootstrap-temacs): Remove dependency on bootstrap-clean.
493faf20 754
4971e491
EZ
7552001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
756
397b3b50 757 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
4971e491
EZ
758 parameter have a numeric value all the time.
759
760 * w32fns.c (x_report_frame_params): Likewise.
761
d911a0fa
RS
7622001-12-12 Richard M. Stallman <rms@gnu.org>
763
764 * fileio.c (Fwrite_region): Doc fix.
765
766 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
767 (redisplay_internal): Call clear_image_cache only for window terminals.
768
201c831a
GM
7692001-12-12 Gerd Moellmann <gerd@gnu.org>
770
771 * xdisp.c (move_it_vertically_backward): Change heuristic
772 for the case that we didn't move far enough initially.
773
774 * window.c (Frecenter): Simplify computation in the case of window
775 system frames and ARG < 0; use window_box_height.
776
34e39c95
RS
7772001-12-11 Richard M. Stallman <rms@gnu.org>
778
779 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
780 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
781
d77fbc16
AI
7822001-12-11 Andrew Innes <andrewi@gnu.org>
783
784 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
785 arg is negative.
786
61e3b944
RS
7872001-12-11 Richard M. Stallman <rms@gnu.org>
788
789 * m/hp800.h: Split the __hpux conditional into the parts
790 that are right for GNU/Linux too and the parts that are not.
791 Use the former if GNU_LINUX.
792 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
793
794 * s/gnu-linux.h (GNU_LINUX): Defined.
795
72bba9f2 7962001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70da46c3
PJ
797
798 * macros.c, msdos.c, w16select.c: Change doc-string comments to
799 `new style' [w/`doc:' keyword].
800
8af01033
JR
8012001-12-10 Jason Rumney <jasonr@gnu.org>
802
803 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
804 before using.
805
72bba9f2 8062001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a
PJ
807
808 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
809 keyword].
810
d9e6c4b1
EZ
8112001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
812
d20fc48a
EZ
813 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
814
d9e6c4b1
EZ
815 * s/hpux10.h (srand48): Don't undefine.
816
f1a85b89
JR
8172001-12-09 Jason Rumney <jasonr@gnu.org>
818
3a232704
SM
819 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
820 Add comment to explain where the struct came from.
f1a85b89
JR
821 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
822 (add_menu_item): Process pop-up menus first to avoid memory leak.
823 (add_menu_item, w32_menu_display_help): Use `help' field as
824 Lisp_Object.
825 (w32_free_submenu_strings): Only free owner-drawn strings.
826
72bba9f2 8272001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a62677f 828
72244db2
PJ
829 * COPYING: Moved back.
830
3a62677f
PJ
831 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
832 Add parentheses around && within ||.
833
834 * indent.c (compute_motion): Likewise.
835
836 * intervals.c (merge_properties_sticky): Likewise.
837
838 * coding.c (setup_coding_system, shrink_encoding_region)
839 (Fdecode_sjis_char): Likewise.
840
9d113d9d
AS
8412001-12-07 Andreas Schwab <schwab@suse.de>
842
b8523839
AS
843 * xdisp.c (display_mode_element): Don't read past end of string if
844 it ends with '%'.
845
9464dea4
AS
846 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
847 can hold.
848
3a232704 849 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
9d113d9d
AS
850 from most_positive_fixnum and most_negative_fixnum, resp., and
851 type changed to Lisp_Object.
852 (syms_of_data): DEFVAR_LISP them.
853
70ec1377
RS
8542001-12-07 Richard M. Stallman <rms@gnu.org>
855
856 * callproc.c (init_callproc): Set Vdata_directory based on the source
857 location whenever Emacs was run uninstalled.
858
92f7dd37
PE
8592001-12-06 Paul Eggert <eggert@twinsun.com>
860
861 * config.in (HAVE_WORKING_VFORK): New #undefs.
862 * process.c (create_process):
863 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
864 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
865 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
866 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
867 * m/intel386.h (HAVE_VFORK): Likewise.
868 * m/mips-siemens.h (HAVE_VFORK): Likewise.
869 * m/mips.h (HAVE_VFORK): Likewise.
870 * s/freebsd.h (vfork): Remove #define.
871 * s/lynxos.h (HAVE_VFORK): Remove #undef.
872 * s/usg5-4-2.h: Fix comment about vfork.
873
c93674bb
RS
8742001-12-06 Richard M. Stallman <rms@gnu.org>
875
876 * s/hpux10.h (random): Add undef.
877 (HAVE_RANDOM): Define it just once.
878
59b59892
SM
8792001-12-06 Stefan Monnier <monnier@cs.yale.edu>
880
881 * eval.c: Undo last change: the standard syntax is not wanted.
882
c6ea2775
EZ
8832001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
884
885 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
886 scroll bars of the frame before deleting the frame itself. If the
887 frame has a widget, delete the frame with XtDestroyWidget, and do
888 not call XDestroyWindow before that.
889
91175673
KS
8902001-12-06 Kim F. Storm <storm@cua.dk>
891
892 * xfns.c (x_report_frame_params): Return actual fringe widths.
893
894 * w32fns.c (x_report_frame_params): Return actual fringe widths.
895
e0fead5d
AI
8962001-12-05 Andrew Innes <andrewi@gnu.org>
897
898 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
899 excessively large.
900
901 * insdel.c (make_gap_larger): New function.
902 (make_gap_smaller): New function.
903 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
904 make_gap_smaller if arg is negative.
905
c186cdb3
SM
9062001-12-04 Stefan Monnier <monnier@cs.yale.edu>
907
908 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
909 Pass a dummy argument when calling interrupt_signal.
910 (parse_menu_item): Mark disabled items before checking for empty def.
911 (read_char_minibuf_menu_prompt): Make safety more visible.
912 (read_key_sequence): Add a `first_unbound' variable.
913 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
914 unbound prefix as soon as we can detect it.
915
916 * doc.c (Fsnarf_documentation): Add prototype.
917 (get_doc_string): Handle negative arguments.
918 (Fdocumentation): Use AREF and ASIZE.
919 Move the calls to get_doc_string to a single place.
920 Don't confuse an interactive-spec for a docstring reference.
921 (Fdocumentation_property): Take advantage of the fact that
922 get_doc_string now ignores the sign of the docstring position.
923
924 * eval.c: Use standard syntax for usage in docstrings.
925
72bba9f2 9262001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
58cfce98 927
c186cdb3 928 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
58cfce98 929
72bba9f2 9302001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
62854fe2
PJ
931
932 * xterm.c (x_draw_image_relief): Use predefined macro instead of
933 constant when the value of `tool_bar_button_relief' is negative.
934
656f46bb
RS
9352001-12-02 Richard M. Stallman <rms@gnu.org>
936
937 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
938 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
939
940 * fileio.c (read_non_regular): Delete Fsignal call.
941
036e218d
SM
9422001-12-01 Stefan Monnier <monnier@cs.yale.edu>
943
944 * lisp.h (run_hook_list_with_args): Undo last change.
945
7ddb2c16
GM
9462001-12-01 Gerd Moellmann <gerd@gnu.org>
947
948 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
949
ace9b298
JR
9502001-12-01 Jason Rumney <jasonr@gnu.org>
951
90647b07
JR
952 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
953
954 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
955 [!WM_MOUSELEAVE]: Define.
956
ace9b298
JR
957 * w32menu.c (current_popup_menu, get_menu_item_info):
958 (set_menu_item_info): New vars.
959 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
960 (w32_menu_show): Set current_popup_menu.
961 (add_menu_item): Allocate new strings for owner-drawn menu items
962 and help strings.
963 Use owner-draw for disabled menu items again.
964 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
965 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
966
967 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
968 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
969 <WM_EXITMENULOOP>: Free menu strings.
970 <WM_MOUSELEAVE>: Stop tracking mouse.
971 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
972
973 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
974 and mouse face.
975
a9549909 9762001-12-01 Kim F. Storm <storm@cua.dk>
9fbc32aa
KS
977
978 The following changes add left-fringe and right-fringe
979 frame parameters to adjust fringe widths, or remove one or
980 both fringes.
036e218d 981
9fbc32aa
KS
982 * frame.h (struct frame): Remove trunc_area_pixel_width and
983 trunc_area_cols fields.
984 (Qleft_fringe, Qright_fringe): Declare.
985 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
986
987 * frame.c (Qleft_fringe, Qright_fringe): New vars.
988 (syms_of_frame): Initialize them.
989
990 * window.c (coordinates_in_window): Handle separate left and right
991 fringe widths.
992
993 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
994 and fringe_cols fields.
995 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
996 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
997 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
998 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
999 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
1000 (x_compute_fringe_widths): Add prototype.
1001
1002 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
1003 fill fringe evenly with small dashes.
1004 (x_draw_fringe_bitmap): Clear background if necessary. Align and
1005 clip the new ZV bitmap to avoid jitter between rows.
1006 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
1007 background. Don't draw fringe bitmaps if fringe width is zero.
1008 (x_compute_fringe_widths): New function.
1009 (x_new_font, x_set_window_size_1): Use it.
1010
1011 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
0c5ee687 1012 (x_set_frame_parameters): Process `font' parameter before other
9fbc32aa
KS
1013 parameters as fringe widths depend on it.
1014 (x_set_fringe_width): New function.
1015 (x_figure_window_size): Use x_compute_fringe_widths.
1016 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
1017 parameters.
1018
1019 * widget.c (set_frame_size): Use x_compute_fringe_widths.
1020 (EmacsFrameSetCharSize): Ditto.
1021
1022 * w32term.h: Merged changes from xterm.h.
1023 * w32term.c: Merged changes from xterm.c.
1024 * w32fns.c: Merged changes from xfns.c.
1025
72bba9f2 10262001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0142178a
PJ
1027
1028 * COPYING: Removed.
1029
d4824a5d
DL
10302001-11-29 Dave Love <fx@gnu.org>
1031
1032 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
1033 extra extra slot.
1034 (detect_coding_mask): Fix call of detect_coding_iso2022.
1035
72bba9f2 10362001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b1356234
PJ
1037
1038 * fileio.c (file-name-coding-system)
1039 (default-file-name-coding-system): Doc fix (links to referenced
1040 variables added).
1041
3ce081f5
SM
10422001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1043
99e380ee
SM
1044 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
1045 Add dummy uses of gcproN variables.
1046
3ce081f5 1047 * category.c (describe_category, describe_category_1)
2ad56c09 1048 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
3ce081f5
SM
1049 (syms_of_category): Don't defsubr Sdescribe_categories.
1050
66458f32
RS
10512001-11-28 Richard M. Stallman <rms@gnu.org>
1052
1053 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
1054
1055 * Makefile.in (lispdir): New variable, referring to build dir.
1056 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
1057
59a86c99
AI
10582001-11-28 Andrew Innes <andrewi@gnu.org>
1059
1060 * w32menu.c (w32_menu_display_help): Actually add the new argument
1061 OWNER.
1062
eb77a5f4
JR
10632001-11-28 Jason Rumney <jasonr@gnu.org>
1064
1065 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
1066 menu items. From David Ponce <dponce@wanadoo.fr>.
1067 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
1068 conditionally.
1069 (w32_menu_display_help): New argument OWNER. Rewritten to store a
1070 help event in the owner frame's keyboard buffer.
1071
1072 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
1073 (Fx_show_tip): Don't subtract last width from row width.
1074
1075 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
1076 (w32_read_socket): Use EQ to compare frames.
1077
bb313871
GM
10782001-11-28 Gerd Moellmann <gerd@gnu.org>
1079
1080 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1081 OVERLAPS_P.
1082
72bba9f2 10832001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55b43a63 1084
6052529b
PJ
1085 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
1086 `gcpro3' and `gcpro4'.
1087
3ce081f5
SM
1088 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
1089
10902001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1091
1092 * ccl.c: Use AREF and ASIZE.
1093
10942001-11-27 Stefan Monnier <monnier@cs.yale.edu>
1095
1096 * lisp.h (run_hook_list_with_args): Remove.
1097 (LIST_END_P): Fix call to wrong_type_argument.
1098 (make_fixnum_or_float): Use EMACS_INT rather than int.
55b43a63 1099
111ed14e
SM
11002001-11-26 Stefan Monnier <monnier@cs.yale.edu>
1101
9fabb2f5
SM
1102 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
1103 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
1104
1105 * eval.c: Use AREF and ASIZE.
1106 (Ffetch_bytecode): Add the file name to the error message.
1107
1108 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
1109 which match the end of the file-name.
1110 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
1111 is not a valid env var, but leave it as is instead.
1112
111ed14e
SM
1113 * keymap.c (access_keymap): Handle t bindings like nil bindings.
1114 Make nil bindings in char-tables transparent.
1115 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
1116
2fa0eedf
RS
11172001-11-26 Richard M. Stallman <rms@gnu.org>
1118
d1420435
RS
1119 * textprop.c (set_text_properties_1): Allow START, END in either order.
1120 Do nothing if range is empty.
1121
2fa0eedf
RS
1122 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
1123
ebcbef4e
RS
1124 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
1125 (clean): Not here.
1126
5c131048
SM
11272001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1128
1129 * textprop.c (set_text_properties_1): Clearly mark that the
1130 interval should not be empty.
1131
1132 * intervals.c (graft_intervals_into_buffer):
1133 Don't call set_text_properties_1 on an empty interval.
1134
96d276c3
RS
11352001-11-25 Richard M. Stallman <rms@gnu.org>
1136
6108b49c
RS
1137 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
1138
96d276c3
RS
1139 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
1140 don't lose the data in it.
1141
5eea19a4
RS
11422001-11-25 Juanma Barranquero <lektu@terra.es>
1143
1144 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
1145
1146 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
1147
1148 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
1149
438e57dd
SM
11502001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1151
1152 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
1153
c88e5347
EZ
11542001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
1155
1156 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
1157 Niemitalo <kon@iki.fi>.
1158
59ce1461
JR
11592001-11-25 Jason Rumney <jasonr@gnu.org>
1160
1161 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
1162
1163 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
1164 (Fx_show_tip): Block input during frame creation.
1165 (Fx_show_tip, Fx_hide_tip): Enable.
1166
8727d588
RS
11672001-11-24 Richard M. Stallman <rms@gnu.org>
1168
1169 * lread.c (Fload): Detect recursive load error for more than 3
1170 nestings of the same file.
1171 (Vrecursive_load_depth_limit): Variable deleted.
1172 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
1173
cc63037e
JR
11742001-11-24 Jason Rumney <jasonr@gnu.org>
1175
1176 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
1177 mouse position if either left or top is not specified.
1178
1179 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
1180 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
1181 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
1182 (my_create_tip_window): Assign tip_window.
1183 (x_create_tip_frame): Use same defaults as X.
1184 (compute_tip_xy): Remove unused variable. Use full screen width.
1185 (Fx_show_tip): Do not double height. Call ShowWindow directly.
1186
1187 * w32term.c (x_after_update_window_line): Doc fix.
1188 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
1189 frames.
1190 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
1191
1192 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
1193 for all Windowed systems.
1194
deece6f5
EZ
11952001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
1196
1197 * msdos.c (IT_clear_screen): If the frame's faces are not yet
1198 realized, use the initial screen colors to clear the screen.
1199
72bba9f2 12002001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1b944d9c 1201
28ff4293
PJ
1202 * textprop.c (Fset_text_properties): Remove unused variables
1203 `unchanged', `prev_changed', `s' and `len'.
1204
56167cc5
PJ
1205 * search.c (Freplace_match): Remove unused variable `inslen'.
1206
1b944d9c
PJ
1207 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
1208
ca56d953
JR
12092001-11-22 Jason Rumney <jasonr@gnu.org>
1210
1211 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
1212 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
1213 (my_create_tip_window): New function.
1214 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
93dec019 1215 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
ca56d953 1216
33399dce
JR
12172001-11-20 Jason Rumney <jasonr@gnu.org>
1218
1219 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
1220 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
1221
1222 * w32fns.c (Vw32_system_coding_system): Remove.
1223 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
1224
9b46de40
SM
12252001-11-19 Stefan Monnier <monnier@cs.yale.edu>
1226
6710ea06
SM
1227 * fileio.c (Fwrite_region): Move choose_write_coding_system to
1228 after build_annotations.
1229
a395ef6a
SM
1230 * syntax.c (describe_syntax): Add dummy arg.
1231 (describe_syntax_1): Update call to describe_vector.
1232
1233 * category.c (describe_category): Add dummy arg.
1234 (describe_category_1): Update call to describe_vector.
1235
1236 * keymap.c (Fdescribe_vector): Add `describer' parameter.
1237 (describe_command, describe_translation): Add dummy second param.
1238 (describe_map): Call elt_describer with two arguments.
1239 (describe_vector_princ): Add `fun' parameter.
1240 Call it instead of the hardcoded `princ'.
1241 (describe_vector): Add arg `args'.
1242 Pass it as a new second argument to elt_describer.
1243
1244 * keymap.h (describe_vector): Update prototype.
1245
9b46de40
SM
1246 * frame.c: Don't include keymap.h any more.
1247 (keys_of_frame): Remove.
1248
1249 * lisp.h (keys_of_frame): Remove declaration.
1250
1251 * emacs.c (main): Don't call `keys_of_frame' any more.
1252
aff37336
SS
12532001-11-14 Andreas Schwab <schwab@suse.de>
1254
1255 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
1256 if defined, 0 otherwise.
9b46de40 1257 (MAP_FAILED): Define if not defined and use it to test mmap failure.
aff37336
SS
1258 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
1259
b9937f07
RS
12602001-11-19 Richard M. Stallman <rms@gnu.org>
1261
1262 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
1263
2cd23960
JR
12642001-11-18 Jason Rumney <jasonr@gnu.org>
1265
1266 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
1267 (x_draw_bar_cursor): If the background color of the glyph under
1268 the cursor equals the frame's cursor color, use the glyph's
1269 foreground color for drawing the bar cursor.
1270 (x_after_update_window_line): Clear internal border in different
1271 circumstances.
1272 (w32_set_vertical_scroll_bar): Check for width and height > 0.
1273 (w32_draw_relief_rect): Correct relief by 1 pixel.
9b46de40
SM
1274 (x_set_glyph_string_background_width):
1275 Set extends_to_end_of_line_p if the row's fill_line_p is set and
2cd23960
JR
1276 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
1277 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
1278 if cursor_in_non_selected_windows is false.
9b46de40 1279 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
2cd23960
JR
1280 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
1281 Notice if cursor gets overwritten.
1282 (notice_overwritten_cursor): Renamed from
1283 note_overwritten_text_cursor. Rewritten to take glyph widths
1284 into account, and to take X positions as parameters.
1285 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1286 around call to x_draw_glyphs.
1287 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1288 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1289 color to use for image glyph reliefs.
1290 (x_draw_image_relief): Accept zero tool_bar_button_relief.
1291 (glyph_rect): Remove unused variable `area'.
1292
1293 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
1294 some items.
1295 (x_set_internal_border_width): Set frame garbaged when window
1296 doesn't exist yet.
1297 (Fx_create_frame): Accept zero tool_bar_button_relief.
1298 (x_clear_image_1, four_corners_best, image_background)
1299 (image_background_transparent): New functions.
1300 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
1301 (gs_format): Add `:background' entry.
1302 (lookup_image): Set IMG's background color if specified.
1303 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1304 when appropriate.
1305 (x_clear_image_1): Reset `background_valid' and
1306 `background_transparent_valid' fields.
1307 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1308 calculating it here. Set IMG's background_transparent field.
1309 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1310 (enum png_keyword_index): Add PNG_BACKGROUND.
1311 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1312 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1313 (enum gif_keyword_index): Add GIF_BACKGROUND.
1314 (enum gs_keyword_index): Add GS_BACKGROUND.
1315 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
1316 Pre-calculate image background color where necessary.
9b46de40
SM
1317 (x_create_x_image_and_pixmap, xbm_load, gs_load):
1318 Use display info's n_cbits entry for screen depth.
2cd23960
JR
1319 (Fx_show_tip): Remove unused variables `buffer', `top',
1320 `left', `max_width' and `max_height'.
1321
1322 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
1323
a4184c1c
GM
13242001-11-18 Gerd Moellmann <gerd@gnu.org>
1325
1326 * puresize.h (BASE_PURESIZE): Increase to 750000.
1327
72bba9f2 13282001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f6fa0866
PJ
1329
1330 * frame.c (Fframe_live_p): Doc fix.
1331
f4ca4b00
RS
13322001-11-18 Richard M. Stallman <rms@gnu.org>
1333
1334 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
1335 (message_dolog_marker3): New static variables hold three markers.
1336 (syms_of_xdisp): Initialize and staticpro them.
1337 (message_dolog): Use message_dolog_marker1..3 instead of
1338 allocating markers each time. Unchain them when done.
1339
f4e25f94
RS
13402001-11-17 Richard M. Stallman <rms@gnu.org>
1341
1342 * doc.c (Fsnarf_documentation): Doc fix.
1343
91c153e2
AS
13442001-11-17 Andreas Schwab <schwab@suse.de>
1345
1346 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
1347
65b7d3e7
RS
13482001-11-17 Richard M. Stallman <rms@gnu.org>
1349
1350 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
1351
6b5f6311
JR
13522001-11-17 Jason Rumney <jasonr@gnu.org>
1353
1354 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
1355
be676094
GM
13562001-11-17 Gerd Moellmann <gerd@gnu.org>
1357
1358 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
1359 with invalid position.
1360
032a857d
RS
13612001-11-16 Richard M. Stallman <rms@gnu.org>
1362
1363 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
1364
1365 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
1366 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
1367 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
1368
1369 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
1370
b6270150
SM
13712001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1372
1373 * fileio.c (build_annotations): Split off the tail.
1374 (build_annotations_2): New fun. Extracted from build_annotations.
1375 (Fwrite_region): Split the call to build_annotations into two
1376 calls to build_annotations and build_annotations_2.
1377
72bba9f2 13782001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 1379
98cbb9fa
PJ
1380 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
1381 clear_waiting_for_input with argument.
1382
1383 * xterm.h (x_update_cursor): Remove duplicated prototype.
1384
b6270150 1385 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
98cbb9fa 1386
ea904403 1387 * xterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 1388
ea904403 1389 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
792e5cbd 1390
fa336b91
SM
13912001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1392
1393 * fileio.c (choose_write_coding_system): New fun, extracted
1394 from Fwrite_region.
1395 (Fwrite_region): Use it.
1396
1397 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
1398 (funcall_lambda, run_hook_with_args): Make static and add prototype.
1399 (ml_apply, find_handler_clause): Add prototype.
1400
077907d4
EZ
14012001-11-16 Eli Zaretskii <eliz@gnu.org>
1402
aa2af83a
EZ
1403 * config.in: Add #undef HAVE_COFF_H.
1404
077907d4
EZ
1405 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
1406 Required for ISC 4.1.
1407
1756e2fb
EZ
14082001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
1409
1410 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
1411 Andrew Wiseman <a.wiseman@btclick.com>.
1412
06e8f738
KS
14132001-11-16 Kim F. Storm <storm@cua.dk>
1414
1415 The following changes are made to clean up the various internal
1416 references to the fringes to actually use the term `fringe' for
1417 them. Previously, they were called `flags areas', `bitmap areas',
1418 `left/right side of windows', or implicitly as `flags' or
1419 `bitmaps':
1420
1421 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
1422 Comments fixed. Use renamed symbols.
fa336b91 1423
06e8f738 1424 * dispnew.c: Comment fix. Use renamed symbols.
fa336b91 1425
06e8f738
KS
1426 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
1427 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
1428 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
fa336b91 1429
06e8f738 1430 * msdos.c: Comment fix.
fa336b91 1431
06e8f738 1432 * w32fns.c: Use renamed symbols.
fa336b91 1433
06e8f738
KS
1434 * w32term.c: Comment fixes. Use renamed symbols.
1435 (fringe_bitmap_type): Renamed from bitmap_type.
1436 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1437 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
1438 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
fa336b91 1439
06e8f738
KS
1440 * w32term.h: Comment fixes. Use renamed symbols.
1441 (fringes_extra): Renamed from flags_areas_extra.
1442 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1443 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1444 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1445 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
1446 (FRAME_X_LEFT_FRINGE_WIDTH):
1447 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1448 (FRAME_X_RIGHT_FRINGE_WIDTH):
1449 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1450
06e8f738 1451 * widget.c: Use renamed symbols.
fa336b91 1452
06e8f738
KS
1453 * window.c: Comment fixes. Use renamed symbols.
1454 (coordinates-in-window-p): Doc fix.
fa336b91 1455
06e8f738 1456 * xdisp.c: Comment fixes. Use renamed symbols.
fa336b91 1457
06e8f738 1458 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
fa336b91 1459
06e8f738 1460 * xfns.c: Use renamed symbols.
fa336b91 1461
06e8f738
KS
1462 * xterm.c: Comment fixes. Use renamed symbols.
1463 (fringe_bitmap_type): Renamed from bitmap_type.
1464 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1465 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
1466 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1467
1468 * xterm.h: Comment fixes. Use renamed symbols.
1469 (fringes_extra): Renamed from flags_areas_extra.
1470 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1471 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1472 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1473 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
1474 (FRAME_X_LEFT_FRINGE_WIDTH):
1475 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1476 (FRAME_X_RIGHT_FRINGE_WIDTH):
1477 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
06e8f738 1478
9ce647f4
JR
14792001-11-15 Jason Rumney <jasonr@gnu.org>
1480
1481 * w32menu.c (add-menu-item): Make help_echo and radio buttons
1482 work for most menu items. From David Ponce
1483 <david.ponce@wanadoo.fr>.
1484
9b784ab8
GM
14852001-11-15 Gerd Moellmann <gerd@gnu.org>
1486
9f7e52b4
GM
1487 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
1488 Some x_set_* function expect to be called even if old and new
1489 value are equal.
1490
1491 * xdisp.c (build_desired_tool_bar_string): Accept zero
1492 tool_bar_button_relief.
1493
1494 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
1495
1496 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
fa336b91 1497
34e5d0af
GM
1498 * xterm.c (x_draw_bar_cursor): If the background color of the
1499 glyph under the cursor equals the frame's cursor color, use
1500 the glyph's foreground color for drawing the bar cursor.
1501
9b784ab8
GM
1502 * dispnew.c (direct_output_forward_char): Fix character/byte
1503 position comparison.
1504
89512fcd
MB
15052001-11-15 Miles Bader <miles@gnu.org>
1506
1507 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
1508 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
1509 Update arguments to find_field.
1510 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
1511 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
1512 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
1513 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
1514
7d18891d
RS
15152001-11-14 Richard M. Stallman <rms@gnu.org>
1516
d2936d21
RS
1517 * editfns.c (Fpropertize): Allow call with 1 arg.
1518
7d18891d
RS
1519 * dispextern.h (image_background, image_background_transparent):
1520 Conditionalize on HAVE_X_WINDOWS.
1521
15222001-11-13 Richard M. Stallman <rms@gnu.org>
1523
1524 * print.c (Fprin1_to_string): Doc fix.
1525
1526 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
1527
1528 * floatfns.c (Fceiling, Ffloor): Doc fixes.
1529
1530 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
1531
1532 * fileio.c (Ffile_accessible_directory_p): Doc fix.
1533
1534 * eval.c (syms_of_eval): Doc fix.
1535
1536 * coding.c (syms_of_coding): Doc fix.
1537
1538 * doc.c (Fsnarf_documentation): Doc fix.
1539
1540 * dispnew.c (syms_of_display): Doc fix.
1541
1542 * category.c (Fget_unused_category): Doc fix.
1543
1544 * buffer.c (syms_of_buffer): Doc fixes.
1545
9474c847
EZ
15462001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
1547
1548 * print.c (prin1, print): Doc fix.
1549
72bba9f2 15502001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e3059a5d 1551
2b6f3c2b 1552 * fontset.h: Remove declarations of variables
e3059a5d
PJ
1553 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
1554
1555 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
1556 `Vclip_large_size_font'.
1557
b3700ae7
JR
15582001-11-13 Jason Rumney <jasonr@gnu.org>
1559
1560 * w32fns.c: Doc fix.
1561
72bba9f2 15622001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eae936e2 1563
4bb962be
PJ
1564 * xfaces.c (Fface_attributes_as_vector): Doc fix.
1565
0a332240
PJ
1566 * w32fns.c (Fx_synchronize): Reindent.
1567
ddb67bdc
PJ
1568 * fns.c: Doc fix.
1569
3467c402
PJ
1570 * emacs.c: Doc fix.
1571
1572 * coding.c: Doc fix.
1573
6e1b91d7
PJ
1574 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
1575 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
1576 `new style' [w/`doc:' keyword].
1577
f6e34773
PJ
1578 * xmenu.c (x-popup-menu): Reindent.
1579 (x-popup-dialog): Likewise.
1580
fa336b91 1581 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
c71f3632 1582
c2552f79
PJ
1583 * xdisp.c (Fdump_tool_bar_row): Reindent.
1584
94c7167b
PJ
1585 * minibuf.c (Fminibuffer_complete_word): Reindent.
1586 (Fminibuffer_complete_and_exit): Likewise.
fa336b91 1587 (Fminibuffer_completion_help): Likewise.
94c7167b
PJ
1588 (Fminibuffer_message): Likewise.
1589
462a5e3a
PJ
1590 * fns.c (Freverse): Reindent.
1591
b8de5714
PJ
1592 * eval.c (Fif): Reindent.
1593 (Fand): Likewise.
1594
deb8e082
PJ
1595 * editfns.c (Fuser_real_login_name): Reindent.
1596 (Finsert_buffer_substring): Likewise.
1597 (Fcompare_buffer_substrings): Likewise.
1598 (Fsubst_char_in_region): Likewise.
1599
bacf09b4
PJ
1600 * dispnew.c (Fsit_for): Reindent.
1601 (Fframe_or_buffer_changed_p): Likewise.
1602 (Finternal_show_cursor_p): Likewise.
1603 (syms_of_display): Likewise.
1604
eae936e2
PJ
1605 * alloc.c (Flist): Reindent.
1606 (Fvector): Likewise.
1607
1c1d3d69
RS
16082001-11-12 Richard M. Stallman <rms@gnu.org>
1609
1610 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
1611 LeaveNotify events. Only FocusIn and FocusOut do that now.
1612 (x_display_and_set_cursor): Do display hollow cursors in active
1613 minibuffer windows when they are not selected.
1614
b6f4c7ba
JR
16152001-11-12 Jason Rumney <jasonr@gnu.org>
1616
1617 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1618 * w32term.c: Change doc-string comments to `new style'.
1619 [w/`doc:' keyword]. Doc fixes.
1620
1621 * w32fns.c: Don't define max.
1622 (Fx_open_connection): Only execute once.
1623
72bba9f2 16242001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a89f435d
PJ
1625
1626 * ccl.c: Change macros to use do-while block instead of if-else.
1627 Use braces to follow GNU Coding Standards.
1628
a4cd0cd7
RS
16292001-11-11 Richard M. Stallman <rms@gnu.org>
1630
eafb659a
RS
1631 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
1632
1633 * lread.c (read_escape): Use end_of_file_error for reporting eof.
1634
a4cd0cd7
RS
1635 * insdel.c (replace_range): Use adjust_markers_for_replace
1636 instead of adjust_markers_for_delete and adjust_markers_for_insert.
1637
1638 * intervals.h: Declare set_text_properties and set_text_properties_1.
1639
1640 * textprop.c (set_text_properties_1): New subroutine
1641 broken out of set_text_properties.
1642 (set_text_properties): Use set_text_properties_1.
1643
1644 * intervals.c (graft_intervals_into_buffer):
1645 Use set_text_properties_1 to clear out properties.
1646
1647 * search.c (Freplace_match): Use replace_range to insert
1648 and delete. Don't request property inheritance from
1649 surrounding text.
1650
91823618
JR
16512001-11-10 Jason Rumney <jasonr@gnu.org>
1652
1653 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
1654 vertical fonts. Allow them if face name is explicitly specified.
fa336b91 1655 Do not give up if we find a font that cannot be converted to an xlfd.
91823618 1656
86928dfb
GM
16572001-11-10 Gerd Moellmann <gerd@gnu.org>
1658
fa336b91 1659 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
86928dfb
GM
1660 instead of malloc/free.
1661
72bba9f2 16622001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 1663
ab8469eb
PJ
1664 * xfaces.c (merge_face_vectors): Use braces to follow GNU
1665 Coding Standards.
1666 (Finternal_set_lisp_face_attribute): Likewise.
1667
a78e0303
PJ
1668 * buffer.c (Fbury_buffer): Likewise.
1669
40ef1eda
PJ
1670 * indent.c (current_column_1): Remove unused variable `prev_col'.
1671
fabf4a91
PJ
1672 * coding.c (encode_coding): Use precomputed value of `src'.
1673 (encode_coding): Remove unused variable `src_end'.
1674 (code_convert_region): Remove unused variables `count'.
1675
0c99b139
JR
16762001-11-07 Jason Rumney <jasonr@gnu.org>
1677
1678 * w32term.c (x_display_and_set_cursor): Do not move system caret
1679 if cursor_glyph is NULL.
1680
72bba9f2 16812001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
830ddd77
PJ
1682
1683 * keymap.c (access_keymap): Fix compilation error.
1684
55c6d645
MB
16852001-11-07 Miles Bader <miles@gnu.org>
1686
1687 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
1688
72bba9f2 16892001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5de38842 1690
7a4564a4
PJ
1691 * intervals.c (graft_intervals_into_buffer):
1692 Remove #ifdef'd-out code.
1693 (graft_intervals_into_buffer): Remove unused variable `middle'.
1694
5de38842
PJ
1695 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
1696 code (eval-current-buffer).
1697 Change doc-string comments to `new style' [w/`doc:' keyword].
1698
4fa23df5
RS
16992001-11-06 Richard M. Stallman <rms@gnu.org>
1700
1701 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
1702
7a6a97d7
SM
17032001-11-06 Stefan Monnier <monnier@cs.yale.edu>
1704
c191d13c
SM
1705 * lread.c (read1): Fix behavior with nested backquoting.
1706
7a6a97d7
SM
1707 * keyboard.c (make_lispy_event): Check integerness and fix
1708 Lisp_Object/int mixup.
1709
72bba9f2 17102001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
44dc78e0
PJ
1711
1712 * fns.c (copy_hash_table): Remove unused variable `v'.
1713
17893c65
PJ
1714 * fontset.c (fontset_font_pattern): Remove unused variable
1715 `family_registry'.
1716
4d994a79
PJ
1717 * indent.c (current_column_1): Remove unused variable `prev_col'.
1718
d5360cc7
RS
17192001-11-05 Richard M. Stallman <rms@gnu.org>
1720
1721 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
1722
1723 * buffer.c (Fkill_buffer): Don't delete auto save file
1724 if buffer is modified.
1725
96238a5a
AI
17262001-11-05 Andrew Innes <andrewi@gnu.org>
1727
1728 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
1729 CHECK_NUMBER_CDR.
1730
d9d54213
RS
17312001-11-05 Richard M. Stallman <rms@gnu.org>
1732
1733 * unexelf.c (unexec): Minor changes; clean up comments.
1734
b116830b
SS
17352001-11-05 Sam Steingold <sds@gnu.org>
1736
1737 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
1738
3297e2a1
AS
17392001-11-05 Andreas Schwab <schwab@suse.de>
1740
1741 * sound.c (sound_perror): Save errno from being clobbered.
1742
9212319f 17432001-11-05 Dale Hagglund <rdh@yottayotta.com>
6fb8339c
EZ
1744
1745 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
1746 the program image directly.
1747
72bba9f2 17482001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7dd73b78
PJ
1749
1750 * buffer.h (Fbuffer_local_value): Add prototype.
1751
982f6c7e
RS
17522001-11-04 Richard M. Stallman <rms@gnu.org>
1753
d31053f9
RS
1754 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
1755 and CHECK_BUFFER.
1756
1757 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
1758 (record_char): Likewise.
1759
1760 * keyboard.c (make_lispy_event): Don't insist a drag event must
1761 move to a different buffer position. Instead, check for moving at
1762 least double_click_fuzz.
1763
1764 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
1765
1766 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
1767
982f6c7e
RS
1768 * indent.c (current_column_1, Fmove_to_column): Separate the code
1769 for display-table glyphs from the code buffer text, to fix
1770 bugs in the former.
1771
830047fd
RS
17722001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
1773
1774 * buffer.c (Fbuffer_local_value): New function.
c191d13c 1775 (syms_of_buffer): Defsubr it.
b116830b 1776
830047fd
RS
1777 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
1778 value of `cursor-in-non-selected-windows'.
1779
1780 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
1781 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
1782 (syms_of_xdisp): Initialize it.
b116830b 1783
72bba9f2 17842001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 1785
4e397688
PJ
1786 * xfns.c (Fx_create_frame): Doc fix.
1787
48b0f3ae
PJ
1788 * coding.c: Change doc-string comments to `new style' [w/`doc:'
1789 keyword].
1790
2df5238c
PJ
1791 * eval.c (top_level_value, top_level_set): Remove commented and
1792 #ifdef'd-out code.
1793 (Fdefvar): Fix usage in doc-string.
1794
3ecaf7e5
RS
17952001-11-03 Richard M. Stallman <rms@gnu.org>
1796
1797 * xfns.c: Include unistd.h, if it exists.
1798
1799 * editfns.c: Move the include of ctype.h after unistd.h.
1800
1801 * gmalloc.c: Test BROKEN_PROTOTYPES.
1802
8db2e33b
KR
18032001-11-03 Ken Raeburn <raeburn@gnu.org>
1804
1805 * lisp.h (CHECK_STRING_CAR): New macro.
1806 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
1807 treating XCAR and XCDR as lvalues.
1808 (openp): Use CHECK_STRING_CAR.
1809 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
1810
aed29b97
EZ
18112001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
1812
1813 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13ccc79a 1814 (SIGMASKTYPE): Define.
aed29b97
EZ
1815
1816 * syssignal.h (sigunblock): Don't define if already defined.
1817
72bba9f2 18182001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6cb16f95 1819
16b45be4
EZ
1820 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
1821 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1b1acc13
PJ
1822 Fix typos in comments.
1823
020f9b38
PJ
1824 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
1825 and #ifdef'd-out code.
1826 Fix and reindent comments.
1827
c191d13c 1828 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
020f9b38 1829
6cb16f95
PJ
1830 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
1831 argument `i' in macros.
1832
1833 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
1834 `i' in macros.
1835
16b45be4
EZ
1836 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
1837 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
1838 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
1839 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
1840 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
1841 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
1842 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
1843 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6cb16f95
PJ
1844 in macros.
1845
1846 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
153c2160
PJ
1847 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
1848 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
1849 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
1850 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
1851 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
1852 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
1853 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
1854 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
6cb16f95
PJ
1855 (remove unused second argument).
1856
7e9d3c2f
SM
18572001-11-02 Stefan Monnier <monnier@cs.yale.edu>
1858
1859 * syntax.c (describe_syntax): New wrapper.
1860 (Finternal_describe_syntax_value): Rename from describe_syntax.
1861 Don't insert space at front and \n at the end.
1862 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
1863
1864 * regex.c (re_wctype): Try to fix some warnings.
1865 (regcomp, regexec): Don't forget the __restrict.
1866
e6bff182
RS
18672001-11-02 Richard M. Stallman <rms@gnu.org>
1868
1869 * textprop.c (Fget_char_property): Doc fix.
1870
72bba9f2 18712001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103
PJ
1872
1873 * process.c (Fstart_process): Add usage to doc-string.
1874
1875 * data.c (Fsetq_default): Ditto.
1876
1877 * callint.c (Finteractive): Ditto.
1878
c22e59e1
SM
18792001-11-01 Stefan Monnier <monnier@cs.yale.edu>
1880
1881 * macros.c: Don't include keymap.h any more.
1882
9271ed2c
RS
18832001-11-01 Richard M. Stallman <rms@gnu.org>
1884
e6bff182
RS
1885 * data.c (Fmake_local_variable): Doc fix.
1886
1887 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
1888 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
1889
9271ed2c
RS
1890 * keymap.c (Fdescribe_buffer_bindings): Print character property
1891 bindings along with or instead of the buffer local map.
1892 Make the overriding maps override what they should.
1893
72bba9f2 18942001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
1895
1896 * window.c (grow_mini_window): Fix typo in comment.
1897
27188d11
GM
18982001-11-01 Gerd Moellmann <gerd@gnu.org>
1899
7b49b9d2
GM
1900 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
1901 (XTset_vertical_scroll_bar): Likewise.
1902
43f7c3ea
GM
1903 * xfns.c (x_build_heuristic_mask): Use four_corners_best
1904 instead of IMAGE_BACKGROUND.
c22e59e1 1905
b350c2e5
GM
1906 * xfns.c (four_corners_best): Reindent.
1907
c22e59e1 1908 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
1909 Handle :box so that it is possible to specify sexprs.
1910
72bba9f2 19112001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d576358b
PJ
1912
1913 * xfaces.c (Finternal_merge_in_global_face): Reindent.
1914 (Fface_font): Ditto.
1915 (Finternal_set_alternative_font_registry_alist): Ditto.
1916 (Ftty_suppress_bold_inverse_default_colors): Ditto.
1917
1918 * xfns.c (x-get-resource): Reindent.
1919
bf00d461
EZ
19202001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
1921
1922 * s/hpux11.h: New file.
1923
72bba9f2 19242001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 1925
2b209b97
PJ
1926 * emacs.c (USAGE1): Show command line option --no-window-system
1927 instead of --no-windows in usage.
1928 (standard_args): Rename --no-windows to --no-window-system.
1929 (bug_reporting_address): Follow Emacs coding conventions.
1930
9dbc9081
PJ
1931 * eval.c (Fcommandp): Doc fix.
1932 Change doc-string comments to `new style' [w/`doc:' keyword].
1933
4e10df59
PJ
1934 * frame.c (Fframe_live_p): Doc fix.
1935
1936 * buffer.c (selective-display-ellipses): Doc fix.
1937
dd387b25
GM
19382001-10-31 Gerd Moellmann <gerd@gnu.org>
1939
fe957e65
GM
1940 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
1941
dd387b25
GM
1942 * xfaces.c (realize_x_face): If C is not a single-byte character,
1943 set the face's colors_copied_bitwise_p instead of the defaulted_p
1944 members which have a different meaning.
1945 (free_face_colors): Do nothing for a face whose colors have been
1946 copied bitwise.
1947
c22e59e1 1948 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 1949
72bba9f2 19502001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 1951
687784e8
PJ
1952 * marker.c, mocklisp.c: Change doc-string comments to `new style'
1953 [w/`doc:' keyword].
2e1280f8 1954
b9d9a9b9
GM
19552001-10-31 Gerd Moellmann <gerd@gnu.org>
1956
1957 * fns.c (require_unwind): Return Lisp_Object.
1958
72bba9f2 19592001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 1960
fa1361cb
PJ
1961 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
1962 (last-input-char): Revert doc-string to be the same as the
1963 doc-string of `last-input-event'.
1964
48400103
PJ
1965 * xdisp.c: Fix typos in comments.
1966
eafa3196
GM
19672001-10-31 Gerd Moellmann <gerd@gnu.org>
1968
1969 * window.c (grow_mini_window): Handle case that the root
1970 window is already smaller than the nominal mininum height.
1971
747d3f2a
SM
19722001-10-30 Stefan Monnier <monnier@cs.yale.edu>
1973
bf9bb76f
SM
1974 * emacs.c (main): Don't call keys_of_macros any more.
1975
1976 * lisp.h (keys_of_macros): Remove.
1977
1978 * macros.c (keys_of_macros): Remove.
1979
747d3f2a
SM
1980 * xfaces.c (Fface_attribute_relative_p): Declare args.
1981
5e905a57
JR
19822001-10-30 Jason Rumney <jasonr@gnu.org>
1983
1984 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
1985 (enum_font_cb2): Ignore fonts with vertical orientation.
1986
3a426197
RS
19872001-10-30 Richard M. Stallman <rms@gnu.org>
1988
1989 * keyboard.c (Finput_pending_p): Doc fix.
1990
a742d646
GM
19912001-10-30 Gerd Moellmann <gerd@gnu.org>
1992
259cf6bc
GM
1993 * xterm.c (x_after_update_window_line): Don't run the code
1994 clearing in borders for rows whose visible height is 0.
1995
3f99f948
GM
1996 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
1997 resized_p flag is set. If not set, use the much less flickering
1998 method previously used.
1999
2000 * dispnew.c (change_frame_size_1): Set frame's resized_p.
2001
2002 * frame.h (struct frame) <resized_p>: New member.
2003
b4a3be43
GM
2004 * lread.c (to_multibyte): Ensure read_buffer is at least twice
2005 as large as the number of bytes to convert.
747d3f2a 2006
a742d646
GM
2007 * lread.c (to_multibyte): New function.
2008 (read1): Use it.
2009
cacbb9e9
EZ
20102001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
2011
2012 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
2013
99cb6b2f
GM
20142001-10-30 Gerd Moellmann <gerd@gnu.org>
2015
327f42ee 2016 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
2017 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
2018 if the row's fill_line_p is set and drawing the last glyph with
2019 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 2020
99cb6b2f
GM
2021 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
2022
8e8223e2
SM
20232001-10-29 Stefan Monnier <monnier@cs.yale.edu>
2024
2025 * xmenu.c: Include coding.h and charset.h.
2026 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
2027 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
2028 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
2029 Explicitly set wv->help. Use `TRUE' rather than `True'.
2030 (menu_help_callback): Use empty_string.
2031
2032 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
2033 (Fx_popup_dialog): Explicitly init f.
2034 (w32_menu_display_help): Use empty_string.
2035
4d083a8f
RS
20362001-10-29 Richard M. Stallman <rms@gnu.org>
2037
b2304472
RS
2038 * fns.c (Frequire): Detect recursive try to require the same
2039 feature 3 or more levels deep, and get error.
2040 (require_unwind): New subroutine.
2041 (require_nesting_list): New variable.
2042 (syms_of_fns): Init and staticpro it.
2043
4d083a8f
RS
2044 * print.c (print_object): Clarify indication of insertion type.
2045
2fe41216
EZ
20462001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
2047
90480000
EZ
2048 * coding.c (syms_of_coding): Document that locale-coding-system is
2049 used for decoding input on X.
2050
2fe41216
EZ
2051 * window.c (Fscroll_left, Fscroll_right): Doc fix.
2052
72bba9f2 20532001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
2054
2055 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
2056 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
2057
60ebcfe8
GM
20582001-10-29 Gerd Moellmann <gerd@gnu.org>
2059
9a7bdceb
GM
2060 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
2061 use NO_CURSOR if cursor_in_non_selected_windows is false.
2062
3f08fcd2
GM
2063 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
2064 the slant attribute if FRAME is t.
2065
0ccfdad2
GM
2066 * xfns.c (x_set_internal_border_width): Set frame garbaged
2067 when X window doesn't exist yet.
2068
ef253080
GM
2069 * xterm.c (x_after_update_window_line): Clear internal border
2070 in different circumstances.
b116830b 2071
60ebcfe8
GM
2072 * xterm.c (XTread_socket) <KeyPress>: Don't use
2073 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
2074 <handa@etl.go.jp>.
2075
73d25f9c
EZ
20762001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
2077
2078 * m/ibms390.h: New file. From Adam Thornton
2079 <athornton@sinenomine.net>.
2080
cac1daf0
GM
20812001-10-28 Gerd Moellmann <gerd@gnu.org>
2082
053b3256 2083 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 2084
cac1daf0
GM
2085 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
2086 a loop counter.
2087
72bba9f2 20882001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 2089
186486eb
PJ
2090 * emacs.c: Use argv[0] instead of emacs when -t was specified.
2091
4707d2d0
PJ
2092 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
2093 keyword].
2094 Fix typos in comments.
b116830b 2095
d883731c
PJ
2096 * emacs.c (bug_reporting_address): New function.
2097 Use it when displaying usage message.
2098
04012254
PJ
2099 * minibuf.c (read_minibuf): Remove unused external declaration of
2100 variable `Qread_only'.
2101
13b1a09c
PJ
2102 * keymap.c (access_keymap): Remove unused variable `charset'.
2103
5bbf4378
MB
21042001-10-28 Miles Bader <miles@gnu.org>
2105
2106 * xfaces.c (merge_face_heights): Handle TO being relative as well.
2107 Remove #ifdef'd-out code.
2108 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
2109 (syms_of_xfaces): Initialize them.
2110
1ce1e4ee
JR
21112001-10-27 Jason Rumney <jasonr@gnu.org>
2112
2113 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
2114 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
2115 position using the system caret.
2116
2117 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
2118 (w32_system_caret_height, w32_system_caret_x)
2119 (w32_system_caret_y): New variables for tracking system caret.
2120 (w32_initialize): Initialize them.
c2d53558 2121 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 2122
c2d53558
SM
2123 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
2124 New messages types.
1ce1e4ee
JR
2125
2126 * w32term.c (note_mouse_highlight): Clear old help_echo.
2127
72bba9f2 21282001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 2129
bb4600a4
PJ
2130 * xterm.c: Fix typo in a comment.
2131
7db35a48
PJ
2132 * emacs.c: Fix typos in comments.
2133 Remove unnecessary spaces.
2134 Change doc-string comments to `new style' [w/`doc:' keyword].
2135 (USAGE2): Fix typos in usage string.
2136
a7248e4f
PJ
2137 * xterm.c: Fix typo in a comment.
2138
4e30ce42
PJ
2139 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
2140 emacs.c.
2141
62725a92
GM
21422001-10-27 Gerd Moellmann <gerd@gnu.org>
2143
798dbe1f 2144 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 2145 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
2146 farther backward when target_y was not reached.
2147
62725a92
GM
2148 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
2149 Display errno only if non-zero.
2150 (sound_warning): New function.
2151 (vox_configure): Don't treat failing to set sample rate as error.
2152 (various places): Improve error messages.
2153
d4e34d24
EZ
21542001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
2155
944e6f60
EZ
2156 * fileio.c (Faccess_file): Run the argument filename through
2157 Fexpand_file_name, before using it.
2158
d4e34d24
EZ
2159 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
2160 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
2161
38d2af0c
GM
21622001-10-26 Gerd Moellmann <gerd@gnu.org>
2163
da80a8d5
GM
2164 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
2165
38d2af0c
GM
2166 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2167 Fix clearing in the case of scroll bars on the right.
c2d53558 2168
56f508dd
EZ
21692001-10-26 Juanma Barranquero <lektu@terra.es>
2170
2171 * w32gui.h (XImage): Add a dummy typedef.
2172
fbd5ceb2
GM
21732001-10-26 Gerd Moellmann <gerd@gnu.org>
2174
c2d53558 2175 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 2176
b23236fb
EZ
21772001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
2178
2179 * frame.c (Fframe_parameter): Fix last change.
2180
5d991fc4
EZ
2181 * fileio.c: Revert last change (which removed old commented-out
2182 version of expand-file-name). Add a comment that explains why
2183 this old version should not be removed.
2184
879eadc3
GM
21852001-10-25 Gerd Moellmann <gerd@gnu.org>
2186
75700ff2
GM
2187 * frame.c (Fframe_parameter): Fix a bug whereby some
2188 ``artificial'' frame parameters, like `minibuffer' were not
2189 obtained by calling Fframe_parameters.
2190
dfe92a6a
GM
2191 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
2192 cursor differently.
2193
879eadc3
GM
2194 * xdisp.c (move_it_vertically_backward): Compute line height
2195 differently. Add heuristic to try to be more compatible to 20.x.
2196
e1010ebe
SM
21972001-10-25 Stefan Monnier <monnier@cs.yale.edu>
2198
d73a471b
SM
2199 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
2200
d6da5a06
GM
2201 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
2202 boolean.
e1010ebe 2203
f66bd220
MB
22042001-10-25 Miles Bader <miles@gnu.org>
2205
2206 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
2207 BG is a pointer to a structure, not a structure.
2208 (gif_format, png_format): Add missing commas.
2209
d436d538
RS
22102001-10-24 Richard M. Stallman <rms@gnu.org>
2211
2212 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 2213 (syms_of_xfaces): Defsubr it.
d436d538 2214
72bba9f2 22152001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
2216
2217 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
2218 variable `area'.
2219
72bba9f2 22202001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 2221
c2d53558 2222 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 2223
e2a57b34
MB
22242001-10-25 Miles Bader <miles@gnu.org>
2225
2226 * dispextern.h (struct image): Add `background',
2227 `background_valid', and `background_transparent' fields.
2228 (image_background, image_background_transparent): New declarations.
2229 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
2230 * xfns.c (image_background, image_background_transparent)
2231 (four_corners_best): New functions.
c2d53558 2232 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
2233 (gs_format): Add `:background' entry.
2234 (lookup_image): Set IMG's background color if specified.
2235 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2236 when appropriate.
2237 (x_clear_image_1): Reset `background_valid' and
2238 `background_transparent_valid' fields.
2239 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2240 calculating it here. Set IMG's background_transparent field.
2241 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2242 (enum png_keyword_index): Add PNG_BACKGROUND.
2243 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2244 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2245 (enum gif_keyword_index): Add GIF_BACKGROUND.
2246 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 2247 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
2248 Pre-calculate image background color where necessary.
2249 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2250 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2251 color to use for image glyph reliefs.
2252
b547b6e8
GM
22532001-10-24 Gerd Moellmann <gerd@gnu.org>
2254
d9e3b8c6
GM
2255 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
2256 in full-width rows.
c2d53558 2257
b547b6e8
GM
2258 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2259 Fix clearing of area not covered by scroll bar.
2260
72bba9f2 22612001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
2262
2263 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
2264 and `real_start'.
c2d53558 2265 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
2266 (glyph_rect): Remove unused variable `area'.
2267
76cb5e06
GM
22682001-10-24 Gerd Moellmann <gerd@gnu.org>
2269
bdbdebff 2270 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
2271
2272 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
2273 (row_containing_pos): Take additional argument DY.
2274 Treat rows ending in middle of char differently.
62e33982
GM
2275 (display_line): Handle tabs on window systems differently.
2276
2277 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
2278 with additional argument.
2279
2280 * dispextern.h (row_containing_pos): Adjust prototype.
2281
76cb5e06
GM
2282 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
2283 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
2284 (try_window_id, try_window_reusing_current_matrix)
2285 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
2286 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
2287
72bba9f2 22882001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 2289
c9e60620
PJ
2290 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
2291 gnuemacs).
2292 (HAVE_BOXES): Fix typo in comment.
2293 (push_menu_pane): Fix typo in comment.
2294
3b552d56
PJ
2295 * xdisp.c: (display_prop_string_p): Remove unused local declaration
2296 of `Qwhen'.
2297 (single_display_prop_string_p): Remove unused local declarations
2298 of `Qwhen' and `Qmargin'.
2299 (string_buffer_position): Remove unused variable `around'.
2300 (store_frame_title): Remove unused variable `width'.
2301
15c565ac
PJ
2302 * window.c: Don't define max.
2303 (coordinates_in_window): Remove unused variable `uy'.
2304
a8818eb9
PJ
2305 * widget.c: Don't define max.
2306
996fee11
PJ
2307 * process.c: Don't define max.
2308 (create_process): Remove unused variable `buffer'.
2309
496e1a5b
GM
23102001-10-23 Gerd Moellmann <gerd@gnu.org>
2311
c2d53558 2312 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 2313
5905ae8b
EZ
23142001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
2315
2316 * xfaces.c (Finternal_set_lisp_face_attribute)
2317 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
2318 frame is on a windowed display.
2319
24db49fb
GM
23202001-10-23 Gerd Moellmann <gerd@gnu.org>
2321
c2d53558
SM
2322 * dispnew.c (sync_window_with_frame_matrix_rows):
2323 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
2324 of marginal areas.
2325
c2d53558 2326 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 2327
f0487f05
EZ
23282001-10-23 Andreas Schwab <schwab@suse.de>
2329
2330 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
2331 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
2332
f0a48a01
GM
23332001-10-23 Gerd Moellmann <gerd@gnu.org>
2334
c2d53558 2335 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
2336 REAL_END. Notice if cursor gets overwritten.
2337 (notice_overwritten_cursor): Take X positions as parameters.
2338 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
2339 around call to x_draw_glyphs.
2340
72bba9f2 23412001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 2342
fc11dff0
PJ
2343 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
2344 instead of C) and usage.
a50a10a0 2345
fc11dff0
PJ
2346 * editfns.c (char-to-string): Fix argument names (use CHAR instead
2347 of C) and usage.
a50a10a0
PJ
2348
2349 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
2350 `left', `max_width' and `max_height'.
2351
8738febd
GM
23522001-10-23 Gerd Moellmann <gerd@gnu.org>
2353
2354 * xdisp.c (display_line): For a tab continued to the next line,
2355 set row's ends_in_middle_of_char_p.
2356
653c329b
GM
23572001-10-22 Gerd Moellmann <gerd@gnu.org>
2358
2359 * xdisp.c (display_line): Fix computation of continuation lines
2360 width for TABs.
2361
72bba9f2 23622001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 2363
7ba51063
PJ
2364 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
2365 `Qlaplace'.
2366
f958c5ac
PJ
2367 * fileio.c: Remove unused code.
2368
eb360291
MB
23692001-10-22 Miles Bader <miles@gnu.org>
2370
2371 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2372 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
2373 Remove `DOC_STRINGS_IN_COMMENTS' cases.
2374
98515cf0
JR
23752001-10-21 Jason Rumney <jasonr@gnu.org>
2376
2377 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
2378
93026d88
EZ
23792001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
2380
2381 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
2382 (Finsert_string): Avoid the multi-line string literals warning.
2383
c9a95b79
MB
23842001-10-22 Miles Bader <miles@gnu.org>
2385
2386 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
2387 (Fdocumentation): Don't use it.
2388 (syms_of_doc): Don't initialize it.
2389
2390 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
2391 * print.c (Fwith_output_to_temp_buffer): Likewise.
2392 * window.c (Fsave_window_excursion): Likewise.
c2d53558 2393 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 2394 (Fsave_restriction): Likewise.
c2d53558
SM
2395 * eval.c (Frun_hooks, Frun_hook_with_args)
2396 (Frun_hook_with_args_until_failure)
2397 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
2398 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
2399 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
2400 (Funwind_protect, Fcondition_case): Likewise.
2401 * coding.c (Ffind_operation_coding_system): Likewise.
2402 * keyboard.c (Ftrack_mouse): Likewise.
2403
a3b10252
MB
24042001-10-21 Miles Bader <miles@gnu.org>
2405
c2d53558 2406 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
2407 (Fmake_hash_table): Add usage: string to doc string.
2408 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 2409 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
2410 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
2411 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
2412 (Fml_prefix_argument_loop): Likewise.
2413
72bba9f2 24142001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 2415
c2d53558 2416 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 2417
c6f73eec
PJ
2418 * sysdep.c (init_sys_modes): Change doc-string comments to `new
2419 style' [w/`doc:' keyword].
2420
2421 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
2422 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
2423 comments to `new style' [w/`doc:' keyword].
2424
3cf3436e
JR
24252001-10-21 Jason Rumney <jasonr@gnu.org>
2426
2427 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
2428
c169b8f1
JR
2429 * w32term.c (remember_mouse_glyph): New function.
2430 (w32_mouse_position): Use it.
2431 (note_mouse_movement): If the mouse moved off the glyph, remember
2432 its new position.
c2d53558 2433
4fdd691b
JR
2434 * w32term.h (struct w32_output): Correct spelling of x_compatible.
2435 (w32_display_info): Add mouse_face_overlay.
2436
c169b8f1
JR
2437 * w32term.c (notice_overwritten_cursor): Renamed from
2438 note_overwritten_text_cursor. Rewritten to take glyph widths into
2439 account.
2440 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2441 (fast_find_string_pos): New function.
2442 (fast_find_position): Return the correct vpos. Add parameter
2443 STOP. In the final row, stop before glyphs having STOP as object.
2444 Don't consider glyphs that are not from a buffer.
2445 (fast_find_position) [0]: Add a presumably more correct version
2446 for after 21.1.
2447 (expose_window_tree, expose_frame): Don't compute intersections here.
2448 (expose_window): Do it here instead.
2449 (expose_window_tree, expose_window, expose_line): Return 1 when
2450 overwriting mouse-face.
2451 (expose_window): If W is the window currently being updated, mark
2452 the frame garbaged.
2453 (expose_frame): If mouse-face was overwritten, redo it.
2454 (x_use_underline_position_properties): New variable.
2455 (syms_of_xterm): DEFVAR_BOOL it.
2456 (x_draw_glyph_string): Add comment to use it in future.
2457 (x_draw_glyph_string): Restore clipping after drawing box.
2458 Fix a computation of the underline position.
2459 (w32_get_glyph_string_clip_rect): Minor cleanup.
2460 (x_fill_stretch_glyph_string): Remove an assertion.
2461 (x_produce_glyphs): Don't convert multibyte characters
2462 to unibyte characters in unibyte buffers.
2463 (cursor_in_mouse_face_p): New function.
2464 (x_draw_stretch_glyph_string): Use it to choose a different GC
2465 when drawing a cursor within highlighted text. Don't draw
2466 background again if it has already been drawn.
2467 (x_draw_glyph_string_box): Don't draw a full-width
2468 box just because the glyph row's full_width_p flag is set.
2469 (x_draw_glyphs): Fix computation of rightmost x for
2470 full-width rows.
2471 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2472 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
2473 change bottom shadow accordingly. Some cleanup.
2474 (x_update_window_end): Handle overwritten mouse face
2475 also for tool bar windows.
2476 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2477 DRAW is DRAW_IMAGE_RAISED.
2478 (clear_mouse_face): Return 1 if text with mouse face was
2479 actually redrawn. Make the function static. Reset
2480 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
2481 optimize away highlighting if we pass over that same overlay again.
2482 (note_mouse_highlight): Call mouse_face_overlay_overlaps
2483 to detect a case where we have to highlight a different region
2484 despite not having left the currently highlighted region.
2485 Set mouse_face_overlay in the x_display_info. Avoid changing the
2486 mouse pointer shape when show_mouse_face has already done it, or
2487 there is no need. Handle mouse-face and help-echo in strings.
2488 (glyph_rect): New function.
2489 (w32_mouse_position): Use it to raise the threshold for mouse
2490 movement event generation.
2491 (w32_initialize_display_info): Initialize the x_display_info's
2492 mouse_face_overlay.
2493 (w32_set_vertical_scroll_bar): Don't clear a zero height
2494 or width area.
2495 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2496 a widget to zero height.
2497
3cf3436e 2498 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 2499 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
2500 equivalents in menu_items.
2501 (w32_menu_show): Don't overwrite an item's name with its key
2502 description in case the description is a multibyte string.
2503 (single_submenu): Some cleanup.
2504
2505 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
2506 (postprocess_image): New function.
2507 (lookup_image): Call it for all image types except PostScript.
2508 (x_kill_gs_process): Call postprocess_image.
2509 (tiff_error_handler, tiff_warning_handler): New functions.
2510 (tiff_load): Install them as handlers.
2511 (x_kill_gs_process): Recognize if someone has cleared the image
2512 cache under us.
2513 (valid_image_p): Protect better against invalid image
2514 specifications. Previous code could signal an error.
2515 (Fx_hide_tip, Fshow_tip): Doc fix.
2516 (Fv_max_tooltip_size): New variable.
2517 (syns_of_xfns): DEFVAR_LISP it.
2518 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
2519 window buffer to *tip* right after creating the frame. Set frame's
2520 window_width. Use a maximum tooltip size specified by
2521 Vx_max_tooltip_size, if that has valid contents.
2522 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2523 Make sure the tooltip is completely visible.
2524 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2525 (Fx_create_frame): Adjust the frame's height for presence
2526 of the tool bar before calling x_figure_window_size.
2527 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
2528 when the window gets smaller.
2529 (x_set_foreground_color): Set frame's cursor_pixel.
2530 (x_set_foreground_color, x_set_background_color): Cleaned up.
2531 (x_set_font): Handle case of x_new_fontset returning the same name
2532 as before, although there was a change in fontsets.
2533
386ca361
MB
25342001-10-21 Miles Bader <miles@gnu.org>
2535
c2d53558 2536 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
2537 (Flogxor): Add usage: string to doc string.
2538 * charset.c (Fstring): Likewise.
2539 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
2540 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
2541
72bba9f2 25422001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 2543
03be2694
PJ
2544 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
2545
2546 * alloc.c: Reindent DEFUNs with doc: keywords.
2547
2548 * abbrev.c (Finsert_abbrev_table_description): Reindent.
2549
14ff1ee0
PJ
2550 * frame.c: Change doc-string comments to `new style' [w/`doc:'
2551 keyword].
2552
71431a0e
GM
25532001-10-20 Gerd Moellmann <gerd@gnu.org>
2554
6aa97356 2555 * (Version 21.1 released.)
71431a0e 2556
72bba9f2 25572001-10-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
39f624fa 2558
c2d53558 2559 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
c0a53abb
PJ
2560
2561 * xdisp.c (invisible_text_between_p): Put prototype inside #if
2562 0 because unused.
2563
2564 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
c2d53558
SM
2565 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
2566 Change doc-string comments to `new style' [w/`doc:' keyword].
39f624fa 2567
abcce93a
MB
25682001-10-20 Miles Bader <miles@gnu.org>
2569
2570 The following changes remove the glyph_row `inverse_p' field,
2571 which is never set anymore, due to other changes:
2572
2573 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
2574 (reassert_line_highlight, change_line_highlight): Declarations removed.
2575 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
c2d53558
SM
2576 (line_hash_code, row_equal_p, fake_current_matrices)
2577 (build_frame_matrix_from_leaf_window, update_frame_line)
abcce93a
MB
2578 (update_frame_line, update_frame_line, update_frame_line):
2579 Don't use `inverse_p' field.
2580 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
2581 change_line_highlight_hook.
2582 (XTreassert_line_highlight, x_change_line_highlight):
2583 Functions removed.
c2d53558 2584 (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
2585 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2586 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
2587 `inverse_p' field.
c2d53558 2588 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
2589 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2590 (w32_reassert_line_highlight, x_change_line_highlight):
2591 Functions removed.
2592 * w32console.c (reassert_line_highlight, change_line_highlight):
2593 Functions removed.
2594 (initialize_w32_display): Don't set reassert_line_highlight_hook
2595 or change_line_highlight_hook.
2596 (hl_mode): Function removed.
c2d53558
SM
2597 (reset_terminal_modes, set_terminal_modes, update_begin)
2598 (update_end, w32_face_attributes, initialize_w32_display):
abcce93a
MB
2599 (clear_frame, ins_del_lines): Don't call it.
2600 * termhooks.h (reassert_line_highlight_hook)
2601 (change_line_highlight_hook): Declarations removed.
2602 * term.c (reassert_line_highlight_hook)
2603 (change_line_highlight_hook): Variables removed.
2604 (reassert_line_highlight, change_line_highlight): Functions removed.
2605 * msdos.c (IT_reassert_line_highlight)
2606 (IT_change_line_highlight): Functions removed.
2607 (internal_terminal_init): Don't set reassert_line_highlight_hook
2608 or change_line_highlight_hook.
2609 (highlight): Variable removed.
c2d53558 2610 (IT_set_face, IT_update_begin, IT_update_end)
abcce93a
MB
2611 (IT_set_terminal_modes): Don't set or use it.
2612
2613 The following changes remove inverse-video support for terminals
2614 that use a `magic cookie' standout mode. Due to changes in the
2615 way mode-lines are displayed, such support no longer works
2616 anyway, and it's probable that almost no one uses such terminals
2617 anymore:
2618
2619 * term.c (standout_requested): Variable removed.
2620 (update_end, highlight_if_desired): Don't use it.
2621 (chars_wasted, copybuf): Variables removed.
2622 (write_standout_marker): Function removed.
c2d53558 2623 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
abcce93a
MB
2624 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
2625 Don't use `chars_wasted' or `copybuf'.
2626 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
2627 Set `costs_set' to true.
2628 (cursor_to, clear_end_of_line): Test `costs_set' instead of
2629 `chars_wasted'.
2630 (clear_end_of_line): Function removed.
2631 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
2632 (clear_to_end): Call `clear_end_of_line' instead of
2633 `clear_end_of_line_raw'.
54800acb
MB
2634 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
2635 (term_init): Don't set them.
2636 Turn off any standout/underline modes that require magic cookies.
c2d53558 2637 (ins_del_lines, highlight_if_desired, background_highlight)
54800acb
MB
2638 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
2639 Remove special processing for magic-cookie standout modes.
2640 (turn_off_face, turn_on_face): Remove special processing for
2641 underline magic-cookie glitch.
abcce93a 2642
0b5f679f
RS
26432001-10-19 Richard M. Stallman <rms@gnu.org>
2644
2645 * eval.c (syms_of_eval): Doc fixes.
2646
5a4a5bd4
GM
26472001-10-19 Gerd Moellmann <gerd@gnu.org>
2648
2649 * xdisp.c (redisplay_internal): Don't clear echo area if the
2650 mini-window is selected.
2651
79f1f96c
MB
26522001-10-19 Miles Bader <miles@gnu.org>
2653
b57c2708
MB
2654 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
2655 doesn't take precedence if the affected property's value is nil.
2656
2657 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
2658
79f1f96c
MB
2659 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
2660 with fields and suggest using `forward-line' to avoid them.
2661 * editfns.c (Fline_beginning_position, Fline_end_position):
2662 Clarify documentation.
2663
ef879104
SM
26642001-10-18 Stefan Monnier <monnier@cs.yale.edu>
2665
2666 * keymap.c (current_minor_maps): `override' only shadows its
2667 correspondent in minor-mode-map-alist, not the whole tail.
2668
97f4db8c
AI
26692001-10-18 Andrew Innes <andrewi@gnu.org>
2670
2671 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
2672 optimization. The fontp->encoding array was not being initialized
2673 correctly when compiled with optimizations by MSVC.
2674
e6b70fd8
GM
26752001-10-18 Gerd Moellmann <gerd@gnu.org>
2676
30903479 2677 * xdisp.c (display_line): Indicate empty lines in active mini-window.
e6b70fd8 2678
0e804d38
AI
26792001-10-17 Andrew Innes <andrewi@gnu.org>
2680
2681 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
2682
2683 * w32fns.c (w32_load_system_font): Cache codepage for font, in
2684 font_info.charset field.
2685
2686 * w32term.c (w32_encode_char): Get cached codepage from font_info,
2687 rather than working it out by calling w32_codepage_for_font for
2688 every glyph.
2689
66e5868a
AI
26902001-10-17 Andrew Innes <andrewi@gnu.org>
2691
2692 * w32term.c (w32_read_socket): Determine clipping rectangle for
2693 the entire frame, including areas covered by scrollbars and the
2694 menubar. This avoids internal arguments about whether a frame is
2695 fully obscured or not.
2696
15b00083
GM
26972001-10-17 Gerd Moellmann <gerd@gnu.org>
2698
23e8bd86
GM
2699 * xdisp.c (try_window_id): Undo last change. Give up if
2700 window ends in strings.
30903479 2701
9c6ba6d1 2702 * xdisp.c (try_window_id): Don't display lines after the window
30903479 2703 end if the rest of the window after the window end was already blank.
23e8bd86 2704
30903479 2705 * xdisp.c (try_window_id): Remove code that was only there
9c6ba6d1
GM
2706 for the release of 21.1.
2707
30903479 2708 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
15b00083 2709
945220bd
MB
27102001-10-17 Miles Bader <miles@gnu.org>
2711
2712 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
2713 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
2714 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
2715 Change doc-string comments to `new style' [w/`doc:' keyword].
2716 (DOC_STRINGS_IN_COMMENTS): Macro removed.
2717 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
2718 out make-docfile.
2719
14242528
MB
27202001-10-16 Miles Bader <miles@gnu.org>
2721
2722 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
2723
3ddf952f
GM
27242001-10-16 Gerd Moellmann <gerd@gnu.org>
2725
2726 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
2727 *scratch*.
2728
f3fbd155
KR
27292001-10-16 Ken Raeburn <raeburn@gnu.org>
2730
2731 Avoid the assumption that car and cdr slots of cons cells are
2732 addressable lvalues; this allows for easier experimentation with
2733 other lisp implementations that may not permit such accesses for
2734 various reasons. Not quite complete -- buffer.c still needs some
2735 work, and w32/mac files need rechecking -- so compile-time
2736 enforcement is left disabled for now.
2737
2738 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
30903479 2739 gcc with a union-based Lisp object rep. Redefine as no-op for now.
f3fbd155
KR
2740 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
2741 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
2742 (XSETCAR, XSETCDR): New macros.
2743 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
2744 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
2745 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
2746 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
2747 XSETCDR.
2748 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
30903479
SM
2749 * buffer.c (record_buffer, Fbury_buffer)
2750 (swap_out_buffer_local_variables, recenter_overlay_lists)
2751 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
f3fbd155
KR
2752 fields of a cons cell respectively.
2753 * callint.c (quotify_args, Fcall_interactively): Likewise.
2754 * ccl.c (Fregister_code_conversion_map): Likewise.
2755 * coding.c (detect_coding_system): Likewise.
2756 * composite.c (get_composition_id, make_composition_value_copy):
2757 Likewise.
30903479
SM
2758 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
2759 (swap_in_symval_forwarding, set_internal, Fset_default)
2760 (Fmake_variable_buffer_local, Fmake_local_variable)
2761 (Fmake_variable_frame_local): Likewise.
f3fbd155 2762 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
30903479 2763 * keymap.c (Fset_keymap_parent, store_in_keymap)
c2d53558 2764 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
f3fbd155
KR
2765 * minibuf.c (get_minibuffer): Likewise.
2766 * search.c (Fmatch_data): Likewise.
2767 * textprop.c (extend_property_ranges): Likewise.
c2d53558 2768 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
f3fbd155
KR
2769 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
2770 Likewise.
2771 * w32term.c (x_delete_display): Likewise.
2772 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
2773 Likewise.
c2d53558 2774 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
f3fbd155 2775 * doc.c (store_function_docstring): Use XSETCARFASTINT.
30903479 2776 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
f3fbd155
KR
2777 (Fread_file_name): Use XSETCAR.
2778 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
2779 CHECK_NUMBER_CDR.
2780 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
2781 * frame.c (Fmake_terminal_frame): Use XSETCDR.
2782 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
2783 CHECK_NUMBER_CDR.
2784 * keyboard.c (read_char): Alter list traversal to avoid taking the
2785 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
2786 (parse_menu_item): Use XSETCAR and XSETCDR.
2787 (reach_char_x_menu_prompt): Use XSETCAR.
2788 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
2789 (Fcommand_execute): Use XSETCDR.
2790 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
2791 (openp): Change list traversal to avoid using XCAR as lvalue.
2792 (read_list): Use XSETCDR.
2793 * process.c (wait_reading_process_input): Change wait_for_cell
2794 handling to avoid taking addresses of cons cell slots.
30903479
SM
2795 * xselect.c (x_own_selection, x_handle_selection_clear)
2796 (x_clear_frame_selections): Use XSETCDR.
2797 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
2798 (x_handle_property_notify, x_get_foreign_selection)
2799 (x_handle_selection_notify): Use XSETCAR.
f3fbd155 2800
72bba9f2 28012001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
502150e5 2802
018ba359
PJ
2803 * buffer.c: Put doc strings in comments.
2804
30903479 2805 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
502150e5 2806
b56ba8de
SS
28072001-10-15 Sam Steingold <sds@gnu.org>
2808
2809 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
2810
72bba9f2 28112001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6a0b793a 2812
30903479
SM
2813 * process.c (process-inherit-coding-system-flag)
2814 (get-buffer-process): Do not confuse make-docfile with doc strings
e2ba787b
PJ
2815 in comment.
2816
a1f17501 2817 * editfns.c (Fchar_to_string): Make doc string consistent with
30903479 2818 arguments. Put doc strings in comments.
a65da641
PJ
2819
2820 * abbrev.c, minibuf.c: Put doc strings in comments.
6a0b793a 2821
aa601ad0
GM
28222001-10-15 Gerd Moellmann <gerd@gnu.org>
2823
30903479 2824 * window.c (window_loop): Don't check for Fother_buffer returning nil.
b56ba8de 2825
aa601ad0
GM
2826 * window.c (select_window_1): Unfreeze window start. Remove a
2827 doubled test for WINDOW being live.
2828
72bba9f2 28292001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
288148a1 2830
dd8d1e71
PJ
2831 * fns.c (Fmapconcat): Fix typo in a doc string.
2832
288148a1
PJ
2833 * dispnew.c (Fsleep_for): Fix typo in a doc string.
2834
9f5eb4a3
GM
28352001-10-15 Gerd Moellmann <gerd@gnu.org>
2836
2837 * xterm.c (x_draw_glyph_string): Restore clipping after
2838 drawing box.
2839
72bba9f2 28402001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dbae44c8 2841
30903479 2842 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
dbae44c8 2843
0c88c937
SM
28442001-10-14 Stefan Monnier <monnier@cs.yale.edu>
2845
56378db4
GM
2846 * indent.c (skip_invisible): Use new retval of
2847 TEXT_PROP_MEANS_INVISIBLE.
91c067f4 2848
845e4cf4
SM
2849 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
2850 If a parent is reached and noinherit is set, exit immediately.
2851 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
2852
0c88c937
SM
2853 * s/ms-w32.h (EXEC_SUFFIXES):
2854 * s/msdos.h (EXEC_SUFFIXES):
2855 * process.h (EXEC_SUFFIXES): Remove.
2856
2857 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
2858 (decode_suffixes): Remove.
2859
2860 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
91c067f4
SM
2861 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
2862 (invisible_ellipsis_p): Remove.
0c88c937
SM
2863
2864 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
2865 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
2866 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
91c067f4
SM
2867 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
2868 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
0c88c937 2869
72bba9f2 28702001-10-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d19be8a9 2871
04d7d066
PJ
2872 * lisp.h (Ftop_level): Add prototype.
2873
d624284c
PJ
2874 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
2875 (XTread_socket): Improve style of comments to follow other
2876 comments.
2877
a87414f9
PJ
2878 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
2879 is already prototyped in included lisp.h).
2880
d19be8a9
PJ
2881 * frame.c (Fset_mouse_position): Improve style of comment to
2882 follow other comments.
2883 (Fset_mouse_pixel_position): Improve style of comment to follow
2884 other comments.
2885 (Fmake_frame_visible): Doc fix and typo in comment.
2886 (Fmake_frame_invisible): Doc fix and typo in comment.
2887 (Ficonify_frame): Fix typo in comment.
2888
c061c855
GM
28892001-10-14 Gerd Moellmann <gerd@gnu.org>
2890
37f6b5b6 2891 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
228299fa 2892 * term.c, alloc.c: Put doc strings in comments.
c061c855 2893
e641b454
GM
28942001-10-13 Gerd Moellmann <gerd@gnu.org>
2895
2896 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
2897 Provide definitions for doc strings in comments.
2898
2899 * fns.c: Put doc strings in comments.
2900
51724e26
EZ
29012001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
2902
2903 * dired.c (file_name_completion): Ignore a candidate directory if
2904 it matches an element in completion-ignored-extensions that ends
2905 in a slash.
2906 (syms_of_dired) <completion-ignored-extensions>: Mention the above
2907 feature in the doc string.
2908 (Ffile_name_completion): Ditto.
2909
be5fc59b
SM
29102001-10-12 Stefan Monnier <monnier@cs.yale.edu>
2911
5a1373f3
SM
2912 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
2913
2914 * xfns.c (syms_of_xfns): Update calls to Fprovide.
2915
2916 * lisp.h (Fprovide): Update prototype.
2917 (Ffeaturep, invisible_p): Remove.
2918
bbc4a3d3 2919 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
5a1373f3
SM
2920 (DOLIST, LOOP_PROPVAL): New macros.
2921 (invisible_p, invisible_ellipsis_p): Use them.
2922 (invisible_noellipsis_p): New function.
2923 (syms_of_xdisp): Use empty_string.
2924
2925 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
2926
2927 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
2928 (syms_of_lread) <Vafter_load_alist>: Update docstring.
2929
2930 * print.c (Fwith_output_to_temp_buffer): Align with
2931 internal_with_output_to_temp_buffer.
2932 (print_preprocess): Use traverse_intervals_noorder.
2933 (print_object): Update call to traverse_intervals.
2934
2935 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
2936 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
2937
2938 * intervals.c (traverse_intervals_noorder): New function.
2939 (search_for_interval, count_intervals): Use it.
2940 (traverse_intervals): Use less stack space and drop `depth' arg.
2941
2942 * fns.c (Ffeaturep): Add new `subfeature' arg.
2943 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
2944 (Qsubfeatures): New var.
2945 (syms_of_fns): Initialize it.
2946
026f408d
SM
2947 * keymap.c (Fkey_description): Use empty_string.
2948 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
2949 (syms_of_keymap): Setup inheritance between maps.
2950 Don't export Sdescribe_bindings_internal any more.
2951
be5fc59b
SM
2952 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
2953
3365175e
GM
29542001-10-12 Gerd Moellmann <gerd@gnu.org>
2955
2956 * xterm.c (notice_overwritten_cursor): Renamed from
2957 note_overwritten_text_cursor. Rewritten to take glyph widths into
2958 account.
2959
2ab7765c
EZ
29602001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
2961
2962 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
2963 multi-line strings without a trailing "\n\".
2964
72bba9f2 29652001-10-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
311346bb
PJ
2966
2967 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
2968 defined.
2969
2168e04d
SM
29702001-10-11 Stefan Monnier <monnier@cs.yale.edu>
2971
026f408d
SM
2972 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
2973
c0ec53ad
SM
2974 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
2975 * w32proc.c (sys_spawnve):
2976 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
2977 * w32.c (check_windows_init_file):
2978 * sound.c (Fplay_sound):
026f408d 2979 * emacs.c (init_cmdargs):
c0ec53ad
SM
2980 * process.c (Fstart_process): Update calls to openp.
2981
2982 * callproc.c (Vexec_suffixes): New var.
2983 (Fcall_process): Update call to openp.
2984 (decode_suffixes): New function.
2985 (syms_of_callproc): Init exec-suffixes.
2986
2987 * lread.c (Vload_suffixes, default_suffixes): New vars.
2988 (openp): Take a lisp list of suffixes.
2989 Check for file-name-handlers even if the file was absolute already.
2990 (syms_of_lread): Declare load-suffixes.
2991 (Fload): Fix up call to openp.
2992 Don't bother checking for file-name-handler at the very beginning.
2993
f6333468
SM
2994 * keymap.h (Fcopy_keymap): Don't export.
2995
2996 * lisp.h (empty_string): Declare.
c0ec53ad
SM
2997 (Vload_suffixes, Vexec_suffixes): Declare.
2998 (openp): Update prototype.
f6333468
SM
2999
3000 * emacs.c (empty_string): New var.
3001 (syms_of_emacs): Initialize it.
3002
3003 * search.c (wordify): Use it.
3004
3005 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
3006 selected window if it's not displayed there. Handle the case
3007 when the window is dedicated.
3008 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
3009
3010 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
3011
2168e04d
SM
3012 * syntax.h (struct gl_state_s): Change the meaning of b_property.
3013 Remove left_ok and right_ok.
3014 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
3015 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
3016 new meaning of b_property.
3017
3018 * syntax.c (update_syntax_table): Simplify.
3019 (Fforward_comment): Don't skip quoted chars when going backward.
3020
13d95cc0
GM
30212001-10-11 Gerd Moellmann <gerd@gnu.org>
3022
beb0990f
GM
3023 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
3024 in case I is of some unsigned type, in which case
3025 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
3026 comparison becomes bogus.
3027
cb938d46
GM
3028 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
3029 (Fuser_full_name): Fix bug treating a float as a fixnum.
3030
3031 * data.c (Fstring_to_number): Use make_fixnum_or_float.
3032
3033 * lisp.h (make_fixnum_or_float): New macro.
2168e04d 3034
13d95cc0
GM
3035 * lisp.h (circular_list_error): Add prototype.
3036
3037 * data.c (Qcircular_list): New variable.
3038 (circular_list_error): New function.
3039 (syms_of_data): Initialize it Qcircular_list.
3040
e35f6ff7
SM
30412001-10-10 Stefan Monnier <monnier@cs.yale.edu>
3042
7dee7ff7
PJ
3043 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c
3044 * casefiddle.c, buffer.c: Include keymap.h.
e35f6ff7 3045
619632ac
GM
30462001-10-10 Gerd Moellmann <gerd@gnu.org>
3047
3048 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
3049 options. From Dave Love <d.love@dl.ac.uk>.
3050
5e5388f6
GM
30512001-10-09 Gerd Moellmann <gerd@gnu.org>
3052
3053 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
3054 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3055
14a3dff7
GM
3056 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
3057 unsigned char.
3058 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
e35f6ff7 3059
76ba8daf
AI
30602001-10-08 Andrew Innes <andrewi@gnu.org>
3061
3062 * lisp.h [max]: Undef min and max before redefining them.
3063
3064 * w32gui.h: Do not undef min and max.
3065
3066 * w32heap.h: Do not undef min and max.
3067
3068 * s/ms-w32.h: Do not undef min and max.
3069
166253cb
SM
30702001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3071
3072 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
3073
0c4d9527
SS
30742001-10-08 Sam Steingold <sds@gnu.org>
3075
3076 * keymap.c (current-active-maps): Quote newlines (compilation error).
3077
14bfa771
EZ
30782001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
3079
3080 * Makefile.in (lisp, shortlisp): Replace bindings.el with
3081 bindings.elc, since otherwise doc strings in bindings.el get wrong
3082 offsets in etc/DOC.
3083
bdb7aa47
SM
30842001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3085
9985827f
SM
3086 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
3087
3088 * keyboard.h (map_prompt): Remove.
3089
3090 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
e6b3ceb6 3091 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
9985827f 3092
bdb7aa47
SM
3093 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3094
3095 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3096
3097 * keyboard.c (map_prompt): Remove.
3098 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
3099 Use Fkeymap_prompt.
3100
3101 * keymap.h: New file. Extracted from lisp.h.
3102
9985827f
SM
3103 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
3104 (accessible_keymaps_1): New function.
3105 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
3106 (Fwhere_is_internal): Use Fcurrent_active_maps.
3107 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
3108 Insert in current buffer rather than standard-output.
3109 Don't call `help-mode'. Export to elisp.
3110 (describe_buffer_bindings): New wrapper.
3111 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
3112 and Sdescribe_buffer_bindings.
3113
402c9a51
GM
31142001-10-08 Gerd Moellmann <gerd@gnu.org>
3115
9985827f 3116 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3ecd9cc3
GM
3117 Remove code setting signal handler.
3118
9985827f 3119 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
402c9a51
GM
3120 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
3121
72bba9f2 31222001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3fe81fdf
PJ
3123
3124 * keyboard.c: Don't define min/max.
3125
55fa7820
GM
31262001-10-08 Gerd Moellmann <gerd@gnu.org>
3127
9985827f 3128 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
32c82ac0 3129 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
9985827f 3130 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
32c82ac0 3131 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
9985827f 3132 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
32c82ac0
GM
3133 Don't define min/max.
3134
3135 * lisp.h (min, max): New macros.
3136
55fa7820
GM
3137 * puresize.h (BASE_PURESIZE): Increase to 725000.
3138
72bba9f2 31392001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1aad31e4 3140
9180dc8c
PJ
3141 * xfaces.c (free_frame_menubar): Add prototype.
3142
01f67d2c
PJ
3143 * lisp.h (init_window): Add prototype.
3144
3145 * editfns.c: Include ctype.h.
3146
3147 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
9985827f 3148 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
01f67d2c
PJ
3149 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
3150 variable `sb'.
3151
5f351ff1
PJ
3152 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
3153 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
3154 `popup_activated_flag' and `title'.
3155
479dfe87
PJ
3156 * doc.c (Fdocumentation_property): Fix typo in a doc string.
3157
dff49fc8
PJ
3158 * emacs.c (main): Remove extra `;'.
3159
248ac615
PJ
3160 * atimer.h (struct atimer): Fix typos in a comment.
3161
3162 * atimer.c: Fix typo.
3163
af232c7d
PJ
3164 * Makefile.in: Fix typo.
3165
3166 * README: Remove obsolete part mentioning removed VMS file.
1aad31e4 3167
d876f455
MB
31682001-10-07 Miles Bader <miles@gnu.org>
3169
3170 * Makefile.in (lisp, shortlisp): Add `button.elc'.
3171
0037e2f2
KR
31722001-10-07 Ken Raeburn <raeburn@gnu.org>
3173
b056f36d
KR
3174 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
3175 Lisp_Object.
3176
0037e2f2
KR
3177 * lisp.h (Ffield_end): Declare.
3178
1a4372ef
GM
31792001-10-07 Gerd Moellmann <gerd@gnu.org>
3180
a4a74e8c
GM
3181 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
3182
3183 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
3184
3185 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
3186
3187 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
3188
1a4372ef
GM
3189 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
3190 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
3191
3192 * alloc.c (inhibit_garbage_collection): Simplify.
3193 (Fmemory_use_counts): Ditto.
3194
9985827f 3195 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1a4372ef
GM
3196 (syms_of_data): DEFVAR_INT most-positive-fixnum and
3197 most-negative-fixnum.
3198
9985827f 3199 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1a4372ef
GM
3200 (FIXNUM_OVERFLOW_P): New macros.
3201
4650e362
MB
32022001-10-06 Miles Bader <miles@gnu.org>
3203
3204 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
3205 scroll_bar_bottom_shadow_pixel fields.
3206 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
3207 for the shadows, and tell the toolkit about them if we succeed.
3208 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
3209 Free scroll-bar shadow colors.
3210 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
3211 Free scroll-bar shadow colors when the background color changes.
3212 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
3213 Initialize scroll-bar shadow-color fields.
3214
ace64e0a
GM
32152001-10-05 Gerd Moellmann <gerd@gnu.org>
3216
3217 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
3218
ec66bdc7
MB
32192001-10-05 Miles Bader <miles@gnu.org>
3220
9985827f
SM
3221 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
3222 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
ec66bdc7 3223 New functions (were in simple.el).
9985827f 3224 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
ec66bdc7
MB
3225 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
3226 (syms_of_minibuf): Initialize them.
3227
a0fb4492
GM
32282001-10-05 Gerd Moellmann <gerd@gnu.org>
3229
3230 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
3231 (tiff_load): Install them as error and warning handler.
3232
0bcf87c1
AI
32332001-10-04 Andrew Innes <andrewi@gnu.org>
3234
3235 * w32fns.c (x_to_w32_color): Fix argument to alloca.
3236 (w32_load_system_font): Don't believe what GetLanguageFontInfo
9985827f 3237 says; query codepage info directly to determine if font is double byte.
0bcf87c1
AI
3238 (x_to_w32_charset): Handle private format for unknown charsets.
3239 Handle wildcards in charset spec, by ignoring them.
3240 (w32_codepage_for_font): Fix argument to alloca. Don't remove
3241 "*-" prefix from charset.
3242 (x_to_w32_font): Enlarge remainder array for safety. Specifically
3243 handle the truncated font spec form constructed by font_list_1, so
3244 that we correctly identify the charset fields. Don't remove "*-"
3245 prefix from charset.
3246 (w32_list_synthesized_fonts): Fix argument to alloca.
3247
c89e4bc5
GM
32482001-10-04 Stefan Monnier <monnier@cs.yale.edu>
3249
3250 * window.h (MINI_WINDOW_P): Use NILP.
3251
3252 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
3253
3254 * termhooks.h (struct input_event): Use proper type for `kind'.
3255
32562001-10-04 Gerd Moellmann <gerd@gnu.org>
3257
3258 This handles unknown keysyms better than before. For example,
3259 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
3260 Emacs formerly completely ignored F5. With the change, it derives
3261 a key symbol from the name of the X keysym, `ccaron' in this case.
3262 Reported by Martin Buchholz.
3263
3264 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
3265 unknown keysyms.
3266
3267 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
3268 that EVENT->code isn't a function key, use the keysym's name.
3269
32702001-10-04 Gerd Moellmann <gerd@gnu.org>
3271
3272 FOREACH is a macro that should make it easier to loop over Lisp
3273 lists with checks for cycles and proper lists.
3274
3275 * lisp.h (LIST_END_P, FOREACH): New macros.
3276
32772001-10-04 Gerd Moellmann <gerd@gnu.org>
3278
3279 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
3280 called for a lost connection. Prevent dumping core in this case.
3281 Instead print the X error, and exit. On user request.
3282
3283 * xterm.c (error_msg): New variable.
3284 (x_fatal_error_signal): New function.
3285 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
3286 as fatal_error_signal_hook around the call to XtCloseDisplay.
3287
3288 * emacs.c (fatal_error_signal_hook): New variable.
3289 (fatal_error_signal): Call that function.
3290
32912001-10-04 Gerd Moellmann <gerd@gnu.org>
3292
3293 With this, Emacs prints how much pure storage it will
3294 approximately need in case pure storage overflows while dumping.
3295
3296 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
3297 New variables.
3298 (init_alloc_once): Initialize new variables.
3299 (PURE_POINTER_P): Use new variables.
3300 (pure_alloc): If pure storage overflows, allocate from the heap.
3301 (check_pure_size): New function.
3302 (Fgarbage_collect): Don't GC if pure storage has overflowed.
3303
3304 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
3305 (check_pure_size): Add prototype.
3306
3307 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
3308
33092001-10-04 Gerd Moellmann <gerd@gnu.org>
3310
3311 This adds a post-gc-hook that's run with GC inhibited.
3312 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
3313
3314 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
3315 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
3316 (Fgarbage_collect): Run post-gc-hook.
3317
33182001-10-04 Gerd Moellmann <gerd@gnu.org>
3319
3320 This adds `defvaralias' and `indirect-variable'. Changes not
3321 directly related to this feature are there to gain the same
3322 performance again as before variable aliases.
3323
3324 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
3325 code to get and set symbol values, to take defvaralias into account.
3326
3327 (Note: the new `constant' bit-flag in symbols would make it
3328 possible to define arbitrary read-only variables, e.g. with
3329 `defconst'.)
3330
3331 Documentation is in lispref/variables.texi. Added to NEWS.
3332
3333 * lisp.h (enum symbol_interned): New enumeration.
3334 (struct Lisp_Symbol): Remove member `obarray', add
3335 `indirect_variable', `constant', and `interned'.
3336 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
3337 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
3338 (indirect_variable): Add prototype.
3339
3340 * print.c (print_preprocess, print_object): Test internedness of
3341 symbols differently.
3342
3343 * lread.c (Fintern, Funintern): Set symbol's interned and constant
3344 bit-fields.
3345 (init_obarray): Likewise for t and nil.
3346
3347 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3348 (Fdefvaralias): New function.
3349 (specbind): Simplify the test if symbol is a constant.
3350 (syms_of_eval): Defsubr Fdefvaralias.
3351
3352 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3353 (Qcyclic_variable_indirection): New variable.
3354 (Fkeywordp): Check for internedness differently.
3355 (Fmakunbound): Simplify the test if symbol is a constant.
3356 (indirect_variable, Findirect_variable): New functions.
3357 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
3358 aliased symbol.
3359 (let_shadows_buffer_binding_p): Check for variable aliases.
3360 (set_internal): Simplify the test if SYMBOL is a constant.
3361 If SYMBOL has a buffer-local value and is an alias, use the aliased
3362 symbol instead.
3363 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
3364 Sindirect_variable.
3365
3366 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
3367 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
3368 set directly.
3369
3370 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
3371
3372 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
3373 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
3374 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
3375
ab952a4f
GM
33762001-10-04 Gerd Moellmann <gerd@gnu.org>
3377
3378 * Branch for 21.1.
b56ba8de 3379
ba88ff28
MB
33802001-10-03 Miles Bader <miles@gnu.org>
3381
3382 * callproc.c (syms_of_callproc): Explicitly state in the
3383 documentation for `process-environment' that earlier entries take
3384 precedence over later ones.
3385
ae1a9581
MB
33862001-10-02 Miles Bader <miles@gnu.org>
3387
3388 * textprop.c (Fnext_char_property_change)
3389 (Fprevious_char_property_change): Remove reference to non-existant
3390 argument OBJECT from doc-string.
3391
257e3f57
GM
33922001-10-01 Gerd Moellmann <gerd@gnu.org>
3393
3394 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
3395 (try_window_id): Skip back over lines ending in a newline from a
3396 string.
3397
3398 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
3399 New bit flag
3400
c1f29759
RS
34012001-10-01 Richard M. Stallman <rms@gnu.org>
3402
3403 * search.c (Freplace_match): Doc fix.
3404
c30dce3d
AI
34052001-09-28 Andrew Innes <andrewi@gnu.org>
3406
3407 * w32menu.c (set_frame_menubar): Take into account that
3408 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3409 <raeburn@gnu.org>.
3410
03be5931
EZ
34112001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
3412
3413 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
3414
72bba9f2 34152001-09-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
75bec752
PJ
3416
3417 * s/gnu-linux.h: Fix a typo in comment.
3418
83100e0a
AS
34192001-09-28 Andreas Schwab <schwab@suse.de>
3420
3421 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
3422 nocombreloc, in case -z combreloc is the default.
3423
a74b48cf
GM
34242001-09-28 Gerd Moellmann <gerd@gnu.org>
3425
3426 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
3427 really going on here.
3428
09c4719e
SM
34292001-09-27 Stefan Monnier <monnier@cs.yale.edu>
3430
3431 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
3432
f7d5d963
EZ
34332001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
3434
3435 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
3436 utf-8, menu-bar, and latin-N.
3437 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
3438 unconditionally now.
3439 (lisp): Add latin-N, since they are preloaded.
3440
9240e746
GM
34412001-09-27 Gerd Moellmann <gerd@gnu.org>
3442
14531065
GM
3443 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
3444 to the left. Some cleanup.
3445
9240e746
GM
3446 * xdisp.c (display_mode_element): One more case where a string's
3447 multibyteness should be used for display.
3448
edd1e654
GM
34492001-09-26 Gerd Moellmann <gerd@gnu.org>
3450
b02439c8
GM
3451 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
3452 reading at EOF.
3453
032906b1 3454 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
5b397024 3455 of the only temporarily set echoing flag for deciding when
032906b1
GM
3456 the cancel echoing.
3457
3458 * keyboard.c (echo_kboard): Make externally visible.
3459
3460 * lisp.h (echo_kboard): Declare extern.
3461
cb617e7c 3462 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
5b397024 3463 fonts_changed_p if we need larger matrices due to vscrolling.
cb617e7c
GM
3464 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
3465 this round of redisplay if make_cursor_line_fully_visible fails.
3466 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
09c4719e 3467 (try_cursor_movement, try_scrolling): Use them instead of integers.
cb617e7c
GM
3468
3469 * dispextern.h (required_matrix_width, required_matrix_height):
3470 Add prototypes.
3471
09c4719e
SM
3472 * dispnew.c (required_matrix_width, required_matrix_height):
3473 New functions.
cb617e7c 3474 (allocate_matrices_for_window_redisplay)
09c4719e
SM
3475 (allocate_matrices_for_frame_redisplay: Use them.
3476 Remove parameters CH_DIM.
cb617e7c 3477
edd1e654
GM
3478 * xdisp.c (display_mode_lines): Temporarily set selected_frame
3479 and selected_window to the frame of the window whose mode-lines
3480 are displayed, and to the window itself.
3481 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
09c4719e 3482 here.
edd1e654 3483
924b604c
GM
34842001-09-25 Gerd Moellmann <gerd@gnu.org>
3485
daba7643
GM
3486 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
3487 the image cache under us.
3488
b7a22712 3489 * xdisp.c (display_mode_element): If the mode element is a symbol
09c4719e 3490 with a string value, use that string's multibyteness for displaying.
b7a22712 3491
ad648212
GM
3492 * keyboard.c (read_char): Don't clear a message for a switch-frame
3493 event. From Stefan Monnier <monnier@cs.yale.edu>.
3494
9f8531e5
GM
3495 * xterm.c (fast_find_position) [0]: Add a presumably more correct
3496 version for after 21.1.
3497
3498 * xdisp.c (row_containing_pos): Make externally visible.
3499
3500 * dispextern.h (row_containing_pos): Add prototype.
3501
924b604c
GM
3502 * process.c (send_process): Disable composition if from_byte < 0.
3503 From Kenichi Handa <handa@etl.go.jp>.
3504
6f3f0db4
GM
35052001-09-24 Gerd Moellmann <gerd@gnu.org>
3506
c69c0ebc
GM
3507 * xterm.c (refreshicon): Function removed.
3508
d1182bc4
GM
3509 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
3510
3511 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
3512
3513 * xterm.c (toplevel): Remove includes in #if 0.
3514
6f3f0db4
GM
3515 * process.c (sigchld_handler) [LINUX]: Don't return from
3516 the signal handler at the end of the loop.
3517
59957f85
GM
35182001-09-21 Gerd Moellmann <gerd@gnu.org>
3519
09c4719e
SM
3520 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
3521 Terminate only if kill returns -1, and errno is ESRCH.
59957f85 3522
a0528984
EZ
35232001-09-21 Markus Rost <rost@math.ohio-state.edu>
3524
3525 * Makefile.in (shortlisp): Add ../lisp/env.elc.
3526
db92b288
GM
35272001-09-20 Gerd Moellmann <gerd@gnu.org>
3528
3fed8ad5
GM
3529 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
3530 since this function can be called during GC.
3531
db92b288
GM
3532 * callproc.c (Fcall_process): Handle errors from pipe(2).
3533 (child_setup): Delete code in #ifdef vipc.
3534
7121b85a
GM
35352001-09-19 Gerd Moellmann <gerd@gnu.org>
3536
72f62cb5
GM
3537 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
3538 (display_mode_element): Display the string from decode_mode_spec
3539 depending on its multibyteness.
3540
a2697022
GM
3541 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
3542
7121b85a
GM
3543 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
3544
bfc97351
GM
35452001-09-18 Gerd Moellmann <gerd@gnu.org>
3546
c9063433
GM
3547 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
3548 recursive_edit_unwind.
3549 (recursive_edit_unwind): Set kboard state according to
3550 SINGLE-KBOARD.
3551
3fbdba3e
GM
3552 * buffer.c (modify_overlay): Don't do nothing if START == END;
3553 This can still be a modification, for example when an overlay has
3554 a before-string or after-string.
3555 (Fdelete_overlay): Prevent redisplay optimizations when deleting
3556 an overlay with before-string or after-string.
3557
1270031d
GM
3558 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
3559 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
3560
bfc97351
GM
3561 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
3562 first_unchanged_at_end_row is in front of
3563 last_unchanged_at_beg_row. This code should be removed after the
3564 release of 21.1.
3565
d8a973aa
GM
35662001-09-17 Gerd Moellmann <gerd@gnu.org>
3567
e18c8b8d
GM
3568 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
3569 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
3570
d8a973aa
GM
3571 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
3572 versions >= 2.95.
3573
ed7d6ba4
EZ
35742001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
3575
3576 * dired.c (Ffile_attributes): Doc fix.
3577
551629f9
GM
35782001-09-14 Gerd Moellmann <gerd@gnu.org>
3579
3580 * fileio.c (Ffile_symlink_p): Fix last change.
3581
3582 * filelock.c (current_lock_owner): Fix last change.
3583
4c8c7926
GM
35842001-09-13 Gerd Moellmann <gerd@gnu.org>
3585
620c4704
GM
3586 * filelock.c (current_lock_owner): If readlink returns ERANGE,
3587 take that to mean that the buffer is too small.
3588
81c3310d
GM
3589 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
3590 that to mean that the buffer is too small.
3591
06fd3792
GM
3592 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
3593 current buffer's multibyteness when discarding the iterator's
3594 stack.
3595
4c8c7926
GM
3596 * xfns.c (Fx_window_property): Handle case that property gets
3597 deleted between the two calls to XGetWindowProperty.
3598
9a72e4c1
GM
35992001-09-11 Gerd Moellmann <gerd@gnu.org>
3600
bd819d14 3601 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
b56ba8de 3602
a41edd99
GM
3603 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
3604 in addition to read-only.
3605
3606 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
3607 to t in addition to read-only.
3608
3609 * lisp.h (Qinhibit_modification_hooks): Declare.
3610
3611 * insdel.c (Qinhibit_modification_hooks): New variable.
3612 (syms_of_insdel): Initialize and staticpro it.
3613
d4881c6a
GM
3614 * textprop.c (verify_interval_modification): Don't run
3615 modification-hooks if inhibit_modification_hooks.
3616
3617 * dispnew.c (set_window_cursor_after_update): Fix code
3618 finding glyph row containing cursor when cursor_in_echo_area
3619 is >= 0.
3620
9a72e4c1
GM
3621 * xdisp.c (init_from_display_pos): Put some code in #if 0.
3622 (add_to_log): Use bcopy instead of strcpy.
3623 (init_from_display_pos): Use an explicit loop over bytes in
3624 overlay strings instead of calling index.
3625
f4a374a1
GM
36262001-09-10 Gerd Moellmann <gerd@gnu.org>
3627
300e57bd
GM
3628 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
3629
3630 * dispnew.c (direct_output_for_insert): Don't change IT's
3631 stop_charpos to something in front of its current position.
3632
f4a374a1
GM
3633 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
3634 `format'.
3635
7e4cbc91
RS
36362001-09-10 Richard M. Stallman <rms@gnu.org>
3637
3638 * frame.c (Fmouse_position): Doc fix.
3639
6afad91e
GM
36402001-09-07 Gerd Moellmann <gerd@gnu.org>
3641
3642 * xdisp.c (init_from_display_pos): Don't compare the result
3643 of calling index with NULL.
3644
f76e0368
GM
36452001-09-06 Gerd Moellmann <gerd@gnu.org>
3646
3647 * xfns.c (x_set_background_color): Don't change the colors
3648 of the X window of scroll bar widgets.
3649
9ead1b60
AI
36502001-09-05 Andrew Innes <andrewi@gnu.org>
3651
3652 * w32fns.c (w32_createwindow): Undo last change.
3653
c3b497b3
GM
36542001-09-05 Gerd Moellmann <gerd@gnu.org>
3655
08e1d6df
GM
3656 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
3657
c3b497b3
GM
3658 * xdisp.c (string_buffer_position): Use *single_char_property*
3659 functions instead of the *single_property* functions.
b56ba8de 3660
8f860180
AI
36612001-09-04 Andrew Innes <andrewi@gnu.org>
3662
9a72e4c1
GM
3663 * w32term.c (w32_read_socket): Add more information to debugging
3664 output.
8f860180
AI
3665
3666 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
3667 from Emacs frames, so that calls to GetClipBox in w32term.c
3668 correctly report when part of a frame is visible (including
3669 scrollbars, etc). This prevents repeated redrawing of frames when
3670 only a scrollbar is visible.
3671 (w32_wnd_proc): Add more frame information to debugging output.
3672
2ee1aa00
SM
36732001-09-03 Stefan Monnier <monnier@cs.yale.edu>
3674
3675 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
3676
e3b22517
GM
36772001-09-03 Gerd Moellmann <gerd@gnu.org>
3678
7e376260
GM
3679 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
3680 help-echo for a string which doesn't have help-echo itself, use
3681 get-char-property to obtain the help-echo from the string's buffer
3682 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
3683 have mouse-face, look ``under'' the string for mouse-face from an
3684 overlay.
3685 (fast_find_position): Add parameter STOP. In the final row, stop
3686 before glyphs having STOP as object. Don't consider glyphs that
3687 are not from a buffer.
3688
e3b22517
GM
3689 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
3690
9a249bba
EZ
36912001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
3692
3693 * fns.c (Fmd5): Doc fix.
3694
c9979669
GM
36952001-08-31 Gerd Moellmann <gerd@gnu.org>
3696
3697 * composite.c (update_compositions): Do nothing if
3698 inhibit-modification-hooks is set.
3699
9584e63a
GM
37002001-08-30 Gerd Moellmann <gerd@gnu.org>
3701
986ec8f2 3702 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 3703 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
3704 glyph matrices etc. in a core dump.
3705
92a25631
GM
3706 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
3707 (syms_of_xdisp): Initialize them.
3708 (handle_single_display_prop): Don't change point, bind `object',
3709 `position', and `buffer-position' instead to the object having the
2ee1aa00 3710 `display' property, position in the object and position in the buffer.
92a25631 3711
9584e63a
GM
3712 * fileio.c (Finsert_file_contents): Don't change the multibyteness
3713 of the buffer if REPLACE is non-nil.
3714
d38633a3
GM
37152001-08-29 Gerd Moellmann <gerd@gnu.org>
3716
3717 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
3718
f4fccc1e
EZ
37192001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
3720
3721 * w32term.c (x_set_glyph_string_background_width)
3722 (show_mouse_face): Track the last changes in xterm.c.
3723
eaaa65b0
GM
37242001-08-28 Gerd Moellmann <gerd@gnu.org>
3725
7b0870b2
GM
3726 * xterm.c (x_set_glyph_string_background_width): Set the glyph
3727 string's background width so that multi-line mouse-face is drawn
3728 to the right edge of the window.
3729 (show_mouse_face): Set the row's mouse_face_p flag after drawing
3730 glyphs.
3731
6b6e2422 3732 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 3733 before inserting/writing glyphs.
6b6e2422 3734
eaaa65b0
GM
3735 * xdisp.c (display_mode_element): Use string_byte_to_char to
3736 determine character positions in strings, use chars_in_text
3737 instead of strwidth.
3738 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
3739 a matrix as parameter; this is easier to use from GDB.
3740
9ad62cf8
MB
37412001-08-28 Miles Bader <miles@gnu.org>
3742
2ee1aa00
SM
3743 * textprop.c (Fprevious_single_char_property_change)
3744 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 3745
32171635
GM
37462001-08-27 Gerd Moellmann <gerd@gnu.org>
3747
47d57b22
GM
3748 * fileio.c (Finsert_file_contents): Allocate, restore, and
3749 free composition data in the case of REPLACE not being nil.
3750
3751 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
3752 there exist overlay strings with newlines at POS.
3753 (text_outside_line_unchanged_p): Return 0 if changes start at
3754 START and overlays exist at START. Likewise for END.
3755 (try_window_id): Give up if init_to_row_end returns 0.
3756
32171635
GM
3757 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
3758 unconditionally.
3759
e1249666
GM
37602001-08-24 Gerd Moellmann <gerd@gnu.org>
3761
33954c45
GM
3762 * keymap.c (access_keymap): Return the cdr of the binding of
3763 a generic character instead of its definition (KEY . BINDING).
3764
e1249666
GM
3765 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
3766 to 0 also in the REPLACE case.
3767
fb4c6c96
AC
37682001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
3769
3770 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
3771 open to determine whether file is readable (as for DOS_NT).
3772
59ecf80b
GM
37732001-08-23 Gerd Moellmann <gerd@gnu.org>
3774
3775 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
3776 coding.type is coding_type_no_conversion or coding_type_raw_text,
3777 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
3778 non-nil instead of just setting enable_multibyte_characters in the
3779 buffer to nil.
3780
40e33037
GM
37812001-08-22 Gerd Moellmann <gerd@gnu.org>
3782
374388c3
GM
3783 * dispextern.h (struct face_cache): Add member
3784 menu_face_changed_p.
3785
3786 * xfaces.c (menu_face_changed_default): New variable.
3787 (menu_face_changed_count): Variable removed.
3788 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
3789 the menu_face_changed_default flag, otherwise set the FRAME's
3790 menu_face_changed_p flag if the `menu' face has been changed.
3791 Prevent calling set_font_frame_param if FRAME is t.
3792 (make_face_cache): Initialize cache's menu_face_changed_p
3793 from menu_face_changed_default.
3794 (realize_basic_faces): Look into the frame's face cache to
3795 determine if the menu appearance needs updating.
3796
40e33037
GM
3797 * keymap.c (access_keymap): Fix last change to not consider
3798 IDX when it has modifiers.
3799
859ea4b8
GM
38002001-08-21 Gerd Moellmann <gerd@gnu.org>
3801
3802 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
3803 . BINDING) exists, where GENERIC-CHAR is the generic character of
3804 the charset of IDX, return BINDING unless there exists a binding
3805 for IDX itself.
3806
e8660d73
GM
38072001-08-16 Gerd Moellmann <gerd@gnu.org>
3808
cca1b1d7
GM
3809 * xrdb.c (SYSV): Don't define on Solaris 2.
3810 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
3811
e8660d73 3812 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 3813 of the screen line, not text line, containing IT's current position.
e8660d73 3814
93aba6fc
GM
38152001-08-15 Gerd Moellmann <gerd@gnu.org>
3816
288d4e06
GM
3817 * window.c (window_scroll_pixel_based): Don't recenter if
3818 PT is partially visible in the window.
3819
3452efc2
SM
3820 * xterm.c (expose_window_tree, expose_window, expose_line):
3821 Return 1 when overwriting mouse-face.
82f053ab
GM
3822 (expose_frame): If mouse-face was overwritten, redo it.
3823
93aba6fc
GM
3824 * xfaces.c (x_update_menu_appearance): Don't call
3825 set_frame_menubar, let the next redisplay do it.
3826
858a55c1
AI
38272001-08-14 Andrew Innes <andrewi@gnu.org>
3828
3829 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
3830 drawing glyph string.
3831
3a990b67
EZ
38322001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
3833
3834 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
3835 running HI-UX/MPP.
3836
04386463
GM
38372001-08-14 Gerd Moellmann <gerd@gnu.org>
3838
3839 * xfaces.c (x_update_menu_appearance): Save and restore value of
3840 interrupt_input_blocked.
3841
3e6385a4
GM
38422001-08-13 Gerd Moellmann <gerd@gnu.org>
3843
b0e619b4
GM
3844 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
3845 a line start, move back to the line start.
3452efc2 3846
0de73d5a
GM
3847 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
3848 exactly when a mini-buffer is active.
3849
3e6385a4
GM
3850 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
3851 in units of 1/8 character on non window-system frames.
3852 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
3853
d1b5f629
EZ
38542001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
3855
3856 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
3857 a doc string.
3858
eaa2319f
GM
38592001-08-09 Gerd Moellmann <gerd@gnu.org>
3860
8e3189f0
GM
3861 * keyboard.c (Vpre_help_message): New variable.
3862 (syms_of_keyboard): Initialize and staticpro it.
3863 (show_help_echo): Record current message before displaying a
3864 help-echo, and restore that message when clearing the help.
3865
eaa2319f
GM
3866 * xfns.c (x_create_im): Remove prototype.
3867
3868 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
3869
3870 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 3871
eaa2319f
GM
38722001-08-08 Gerd Moellmann <gerd@gnu.org>
3873
3874 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 3875 windows whose height has changed, disable partially visible lines.
eaa2319f 3876
17fdcfc8
GM
38772001-08-07 Gerd Moellmann <gerd@gnu.org>
3878
22d01aed 3879 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 3880 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 3881
17fdcfc8
GM
3882 * xdisp.c (start_display): Don't try to determine the continuation
3883 lines width if lines are truncated. It's superfluous and leads to
3884 incorrect results if POS is not visible in the window after
3885 reseating the iterator at the previous line start.
3886
8e3fe78e
GM
38872001-08-06 Gerd Moellmann <gerd@gnu.org>
3888
3889 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3890
72bba9f2 38912001-08-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
98a8938c
GM
3892
3893 * alloc.c (init_stack): Remove declaration.
3894
18f9986a
GM
38952001-08-03 Gerd Moellmann <gerd@gnu.org>
3896
5e1f85e0
GM
3897 * keyboard.c (read_key_sequence): Check that key is an integer
3898 before comparing it with quit_char.
3899 (add_command_key): Use larger_vector.
3900 (read_char_x_menu_prompt): Instead of converting symbol and
3901 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 3902 which cannot be confused with valid events.
5e1f85e0
GM
3903 (read_char): When reading from Vunread_command_events, check for
3904 events of the form (EVENT . disabled) instead of
3905 (EVENT . nil).
3906
18f9986a
GM
3907 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
3908 a float, determine the max height from the frame's height.
3909
fbc7f2a6
GM
39102001-08-02 Gerd Moellmann <gerd@gnu.org>
3911
3912 * xdisp.c (redisplay_internal): Take message_cleared_p into
3913 account only if minibuf_level == 0.
3914
81b1a79d
GM
39152001-08-01 Gerd Moellmann <gerd@gnu.org>
3916
e5c60873
GM
3917 * xdisp.c (redisplay_internal): Add a check for the last
3918 displayed message.
3452efc2 3919
6e019995
GM
3920 * xdisp.c (message_cleared_p): New variable.
3921 (clear_message): Set message_cleared_p when clearing the current
3922 message.
3923 (redisplay_internal): Look at message_cleared_p to capture
3924 the case that the echo area should be cleared.
3925
308a74d8
GM
3926 * keyboard.c (command_loop_1): Fix spelling of
3927 resize_echo_area_exactly.
3928
3452efc2 3929 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
3930
3931 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
3932
81b1a79d
GM
3933 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
3934 current matrix when the window gets smaller.
3935
ada329e6
EZ
39362001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
3937
3938 * print.c (strout): Cast the character passed to insert_char to
3939 unsigned char, to avoid sign extension when it is promoted to int.
3940
ed86208c
GM
39412001-07-31 Gerd Moellmann <gerd@gnu.org>
3942
3943 * fileio.c (Finsert_file_contents): Don't treat a return value
3944 of 0 from emacs_read as an IO error.
3945
6594ac22
GM
39462001-07-30 Gerd Moellmann <gerd@gnu.org>
3947
cef68af5
GM
3948 * keyboard.c (abs): New macro.
3949 (double_click_fuzz): New variable.
3950 (make_lispy_event): Use it to determine what makes a double-click.
3951 (syms_of_keyboard): DEFVAR_INT it.
3952
6594ac22
GM
3953 * xmenu.c (set_frame_menubar): Take into account that
3954 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3955 <raeburn@gnu.org>.
3956
75c5350a
GM
39572001-07-27 Gerd Moellmann <gerd@gnu.org>
3958
3959 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
3960
3961 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
3962 of row's visible height.
3963
3964 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
3965 deal with the first overlay string having an image `display' property.
3966 (try_window_reusing_current_matrix, compute_line_metrics):
3967 Fix computation of row's visible height for the case that part of the
75c5350a
GM
3968 row is invisible above and part of the row is at the same time
3969 invisible below the window.
3970
ac49effe
GM
39712001-07-26 Gerd Moellmann <gerd@gnu.org>
3972
3973 * xfns.c (x-show-tip): Doc fix.
3452efc2 3974
ac49effe
GM
3975 * xfns.c (Vx_max_tooltip_size): New variable.
3976 (syms_of_xfns): DEFVAR_LISP it.
3977 (Fx_show_tip): Set frame's window_width to the width of the
3978 window. Use a maximum tooltip size specified by
3979 Vx_max_tooltip_size, if that has valid contents.
3980 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 3981
8c3b00cb
AI
39822001-07-26 Andrew Innes <andrewi@gnu.org>
3983
3984 * w32term.c (x_display_list): New variable.
3985 (w32_term_init): Set it.
3986
3987 * w32term.h (x_display_list): New extern.
3988
16098288
GM
39892001-07-26 Gerd Moellmann <gerd@gnu.org>
3990
3991 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
3992 is non-nil, instead of when redisplaying_p is non-zero.
3993 See comment there.
16098288
GM
3994 (mark_window_display_accurate_1): Add an assertion.
3995
64c5be50
GM
39962001-07-25 Gerd Moellmann <gerd@gnu.org>
3997
e743f599
GM
3998 * dispextern.h (struct it): Increase size of ctl_chars to 16.
3999
563b384d
GM
4000 * xfns.c (Fx_file_dialog): Block/unblock input while processing
4001 events so that we get a chance of processing expose events.
4002
64c5be50
GM
4003 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
4004
296808a5
GM
40052001-07-24 Gerd Moellmann <gerd@gnu.org>
4006
4007 * xfns.c (valid_image_p): Protect better against invalid image
4008 specifications. Previous code could signal an error.
4009
5247262a
GM
40102001-07-23 Gerd Moellmann <gerd@gnu.org>
4011
3452efc2 4012 * indent.c (current_column): Fix column computation in the
f1004faf
GM
4013 presence of display table entries.
4014 (current_column_1, Fmove_to_column, compute_motion): Likewise.
4015
dd42b31a
GM
4016 * dispnew.c (adjust_glyph_matrix): In the optimization for
4017 windows whose height has changed, use the new window height
4018 to compute which rows to invalidate.
4019
9e5a7f2a
GM
4020 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
4021 (MAX_10_EXP): New macro.
4022 (Fformat): Use it.
4023
5247262a
GM
4024 * coding.c (code_convert_region): Handle the multibyte case if
4025 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
4026
177ab8ce
GM
40272001-07-20 Gerd Moellmann <gerd@gnu.org>
4028
6e07c0a5
GM
4029 * dispextern.h (struct face): Change type of `stipple' to
4030 int; it's an ID.
4031
177ab8ce
GM
4032 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
4033
b5b80599
GM
40342001-07-19 Gerd Moellmann <gerd@gnu.org>
4035
4e2a256b
GM
4036 * dispnew.c (update_window): Don't set the cursor at the end
4037 of the update if display update has been paused.
4038
3452efc2 4039 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 4040
c1fd9232
KR
40412001-07-18 Ken Raeburn <raeburn@gnu.org>
4042
4043 * fns.c (Fset_char_table_default): Check that a charset is defined
4044 before checking its dimension.
4045
928a85c1
KR
40462001-07-17 Ken Raeburn <raeburn@gnu.org>
4047
4048 * coding.c (setup_coding_system): Don't do any designation based
4049 on reg_bits if charset is not yet defined.
4050
fb4c6c96 4051 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
4052 pointer, using eassert.
4053
de11c1ea
GM
40542001-07-17 Gerd Moellmann <gerd@gnu.org>
4055
3452efc2
SM
4056 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
4057 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 4058
467f1209
GM
40592001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
4060
4061 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
4062
c3d6be34
GM
40632001-07-16 Gerd Moellmann <gerd@gnu.org>
4064
c1d61a7d
GM
4065 * fileio.c (unwind_read): Function removed.
4066 (read_non_regular, read_non_regular_quit): New functions.
4067 (Finsert_file_contents): When reading from non-regular files,
4068 arrange to catch a `quit' and terminate the loop. Rearrange
4069 code so that a `quit' when reading from a regular file doesn't
4070 insert text in the buffer.
4071
c3d6be34
GM
4072 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
4073 Clear faces afterwards.
4074 (clear_font_table): Take a x_display_info parameter. Don't free
4075 fonts being the default font of any frame on the given display.
4076
e06aa1f9
GM
40772001-07-13 Gerd Moellmann <gerd@gnu.org>
4078
4079 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
4080 instead of CHAR_STRING which can signal an error.
4081
4082 * charset.c (char_to_string_1): Extracted from char_to_string.
4083 Return -1 instead of signaling an error.
4084 (char_to_string): Use it.
4085
4086 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
4087
176c92e6
SM
40882001-07-12 Stefan Monnier <monnier@cs.yale.edu>
4089
4090 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
4091 is t, don't try to append anything to it.
4092
1c56232f
EZ
40932001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
4094
4095 * dired.c (file_name_completion): Pass dp->d_name to
4096 Fstring_match, not elt, which is always nil here.
4097
1d2b2268
GM
40982001-07-12 Gerd Moellmann <gerd@gnu.org>
4099
4100 * xselect.c (x_decline_selection_request): Handle errors
4101 caused by receivers that have vanished.
4102
4103 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
4104 ignoring events on foreign windows in #if 0. Always dispatch
4105 the event after checking it with x_handle_property_notify.
4106
4107 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
4108 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
4109 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
4110 (toplevel): Add prototypes for file-local functions.
4111 (x_atom_to_symbol): Remove DPYINFO parameter.
4112
fe5a0162
SM
41132001-07-11 Stefan Monnier <monnier@cs.yale.edu>
4114
4115 * w32menu.c (menubar_selection_callback, w32_menu_show):
4116 Initialize `entry' to nil.
4117 (w32_dialog_show): Remove unused `save_wv' variable.
4118 (name_is_separator): Recognize "--:foo" and "--foo-bar".
4119
a777242c
GM
41202001-07-11 Gerd Moellmann <gerd@gnu.org>
4121
8ee5b6a3
GM
4122 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
4123
d0e2444e
GM
4124 * fileio.c (unwind_read): Print a message when discarding inserted
4125 text or switching the buffer to unibyte. Change parameter.
4126 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 4127
a777242c
GM
4128 * fileio.c (unwind_read): New function.
4129 (Finsert_file_contents): Record it as unwind-function for
4130 the case that reading is interrupted by C-g.
4131
ae794295
GM
41322001-07-10 Gerd Moellmann <gerd@gnu.org>
4133
fe5a0162 4134 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
4135 update when scrolling_window returns 0.
4136
6b05fae3
GM
4137 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
4138
4139 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 4140 for the case that x_decode_color signals an error.
6b05fae3 4141
ae794295
GM
4142 * xdisp.c (add_to_log): Do nothing if called asynchronously.
4143
bb6e8cee
GM
41442001-07-09 Gerd Moellmann <gerd@gnu.org>
4145
4146 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
4147 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
4148 around ioctls.
4149
36b40a8a
EZ
41502001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
4151
24b97d4b
EZ
4152 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
4153 doc string line for dos-timezone-offset.
4154
36b40a8a
EZ
4155 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
4156 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
4157 (syms_of_msdos): Add \n\ at the end of a line in the doc string
4158 line for dos-unsupported-char-glyph.
36b40a8a
EZ
4159
4160 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
4161
0967b4b0
GM
41622001-07-05 Gerd Moellmann <gerd@gnu.org>
4163
f25cfe53
GM
4164 * sound.c: Include Emacs' header files with #include "...".
4165
0967b4b0
GM
4166 * eval.c (specbind): Additionally record the buffer that was
4167 current when a buffer-local or frame-local variable was bound.
4168
c347a1c3
GM
41692001-07-04 Gerd Moellmann <gerd@gnu.org>
4170
4171 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
4172 to unibyte characters in unibyte buffers.
4173
6332ca8a
GM
41742001-07-03 Gerd Moellmann <gerd@gnu.org>
4175
38472d44
GM
4176 * eval.c (specbind): If SYMBOL has a frame-local binding, record
4177 the frame on the binding stack. Change format of entries for
4178 local bindings on the binding stack to '(SYMBOL . WHERE)'.
4179 (unbind_to): Handle unbinding a frame-local variable.
4180
6332ca8a 4181 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 4182 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
4183 (dump_glyph_row): Print row's continuation_lines_width.
4184 (try_window_id): Take the shortcut if ZV is visible in the
4185 window, but there are actually no changes at ZV.
4186
63d1b174
GM
41872001-07-02 Gerd Moellmann <gerd@gnu.org>
4188
4c175203
GM
4189 * xterm.h (x_free_dpy_colors): Add prototype.
4190
4191 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
4192 right number of arguments.
4193
0b54ce28
GM
4194 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
4195 ($(lwlibdir)TAGS): New target.
4c175203 4196 (TAGS): Fix dependency list.
0b54ce28 4197
63d1b174
GM
4198 * xterm.c (x_list_fonts): Make sure XFreeFont is called
4199 with input blocked.
4200
d827466c
GM
42012001-06-30 Gerd Moellmann <gerd@gnu.org>
4202
4203 * emacs.c (main): Remove extern declaration for sys_nerr, which
4204 isn't used and causes a compilation error with GCC 3.0 on
4205 FreeBSD 4.3.
4206
b5cb1ada
GM
42072001-06-27 Gerd Moellmann <gerd@gnu.org>
4208
a5d3ec3f 4209 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 4210 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
4211 (toplevel): Include <signal.h> and syssignal.h.
4212
b5cb1ada
GM
4213 * sound.c (vox_configure, vox_close): Turn off atimers
4214 around ioctls.
4215
d9bad487
GM
42162001-06-26 Gerd Moellmann <gerd@gnu.org>
4217
fdbb67fe
GM
4218 * keyboard.c (read_char) <non_reread>: Record the previous idle
4219 start time before calling timer_stop_idle.
4220 (read_char) <reread_first>: After processing a help-echo event,
4221 restore the previous idle start time.
4222
d9bad487
GM
4223 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
4224 the start of invisible text.
4225 (setup_for_ellipsis): New function.
4226 (next_overlay_string): After all overlay strings have been
4227 processed, display an ellipsis if necessary.
4228 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
4229 (push_it): Initialize display_ellipsis_p on the iterator's stack.
4230
4231 * dispextern.h (struct iterator_stack_entry): Add member
4232 display_ellipsis_p.
4233
2b9c25e0
GM
42342001-06-25 Gerd Moellmann <gerd@gnu.org>
4235
80de57df
GM
4236 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
4237 on the value of the wait-for-wm frame parameter.
4238
4239 * xterm.h (struct x_output): Add member wait_for_wm.
4240
4241 * xfns.c (Qwait_for_wm): New variable.
4242 (x_frame_parms): Add entry for `wait-for-wm".
4243 (x_set_wait_for_wm): New function.
4244 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
4245 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
4246
2b9c25e0
GM
4247 * xdisp.c (try_window_id) <all changes below window end>: Don't
4248 take this shortcut if ZV is visible in the window.
4249 (try_window_id): When checking for window start being in changed
4250 text, don't check that the buffer's size has changed.
4251
f772775c
RS
42522001-06-23 Richard M. Stallman <rms@gnu.org>
4253
4254 * minibuf.c (Fcompleting_read): Doc fix.
4255
fa9090b8
GM
42562001-06-19 Gerd Moellmann <gerd@gnu.org>
4257
4258 * composite.c (Ffind_composition_internal): Accept ZV
4259 and a string's end position as POS.
4260
f6f1beba
GM
42612001-06-18 Gerd Moellmann <gerd@gnu.org>
4262
4263 * composite.c (Ffind_composition_internal): Check POS
4264 for validity.
4265
0ae83348
EZ
42662001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
4267
4268 * editfns.c (Fmessage_box): If the frame is not under a window
4269 system, output the message in the echo area.
4270
e4cdc335
RS
42712001-06-14 Richard M. Stallman <rms@gnu.org>
4272
4273 * xdisp.c (try_window_id): When EOB is visible, don't treat
4274 insertion at EOB as if it were "off the bottom of the screen."
4275
a55a5f3c
AI
42762001-06-11 Andrew Innes <andrewi@gnu.org>
4277
4278 * w32proc.c (create_child): Add new parameter is_gui_app.
4279 (w32_executable_type): Add new parameter is_gui_app.
4280 (sys_spawnve): Use it.
4281 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
4282 SIGQUIT. This matches better how the signals are interpreted by
4283 MSVC compiled programs.
4284 (syms_of_ntproc): Update docstring.
4285
1b85dc1c
SM
42862001-06-02 Stefan Monnier <monnier@cs.yale.edu>
4287
4288 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
4289 well otherwise note_mouse_highlight might optimize away highlighting
4290 if we pass over that same overlay again.
4291
b75f8eab
EZ
42922001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
4293
4294 * lread.c (Fload): Document that the argument is run via
4295 substitute-in-file-name.
4296
94843cc1
GM
42972001-05-31 Gerd Moellmann <gerd@gnu.org>
4298
b14659e6
GM
4299 * Makefile.in (bootstrap-doc): New target.
4300 (bootstrap-emacs): Depend on it.
4301
0894672f
GM
4302 * fileio.c (Fdo_auto_save): Don't try to create the directory of
4303 auto-save-list-file-name when shutting down Emacs, because
4304 creating the directory might signal an error, and leaves
4305 Emacs in a strange state.
4306
94843cc1
GM
4307 * term.c: (tty_cursor_hidden): New variable.
4308 (update_begin): Don't call tty_hide_cursor. Clean up.
4309 (update_end, set_terminal_window, set_scroll_region): Clean up.
4310 (ring_bell, reset_terminal_modes): Clean up.
4311 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
4312 on tty_cursor_hidden.
4313 (write_glyphs): Call tty_hide_cursor.
4314
db3a49a6
SM
43152001-05-30 Stefan Monnier <monnier@cs.yale.edu>
4316
4317 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
4318
8bd189fb
GM
43192001-05-30 Gerd Moellmann <gerd@gnu.org>
4320
6f1be3b9
GM
4321 * xfns.c (enum image_value_type): New enumerator
4322 IMAGE_STRING_OR_NIL_VALUE.
4323 (parse_image_spec): Handle it.
4324 (xbm_format, pbm_format): Use it for :foreground and :background.
4325 (xbm_load, pbm_load): Check for nil color names.
4326
8bd189fb
GM
4327 * xterm.c (note_mouse_highlight): If an overlapping overlay
4328 exists, but we find that we highlight the same overlay as before,
4329 don't do the highlighting again.
4330
7bdba03c
GM
43312001-05-29 Gerd Moellmann <gerd@gnu.org>
4332
4c329aa8
GM
4333 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
4334 Protect unibyte strings created by replacing their multibyte
4335 equivalents in menu_items.
4336
e15e2828
GM
4337 * keymap.c (Fsingle_key_description): NUL-terminate the string
4338 buffer before calling build_string.
4339
7bdba03c
GM
4340 * callproc.c (Fcall_process): Deal with decode_coding returning
4341 CODING_FINISH_INCONSISTENT_EOL.
4342
89c8dc6c
GM
43432001-05-28 Gerd Moellmann <gerd@gnu.org>
4344
db3a49a6 4345 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
4346 an item's name with its key description in case the description
4347 is a multibyte string.
4348
4349 * keymap.c (Fsingle_key_description): Create a multibyte string
4350 only if necessary.
4351
eb04d6cd
GM
4352 * macros.c (Fstart_kbd_macro): Doc fix.
4353
8bd6307f
GM
4354 * xterm.c (cursor_in_mouse_face_p): New function.
4355 (x_draw_stretch_glyph_string): Use it to choose a different GC
4356 when drawing a cursor within highlighted text.
4357
e26c4089
GM
4358 * editfns.c (char_property_eq): Put in #if 0.
4359
4360 * indent.c (string_display_width): Put in #if 0.
4361
4362 * lread.c (Fload): Remove unused label.
4363
89c8dc6c
GM
4364 * termcap.c (speeds): Put in #if 0.
4365
9a1211f2
GM
43662001-05-18 Gerd Moellmann <gerd@gnu.org>
4367
29148a3f
GM
4368 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
4369
9a1211f2
GM
4370 * xfaces.c (xlfd_point_size): Don't divide pixel size from
4371 transformation matrix by 10.
4372
09393d07
GM
43732001-05-16 Gerd Moellmann <gerd@gnu.org>
4374
4375 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
4376 only if it's equal to the former foreground pixel color.
db3a49a6 4377 (x_set_foreground_color, x_set_background_color)
09393d07
GM
4378 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
4379
460e6bae
GM
43802001-05-16 Dave Love <fx@gnu.org>
4381
4382 * insdel.c (signal_before_change, signal_after_change): Consider a
4383 local change hook which changes the buffer.
99c78ce8
GM
4384
4385 * process.c (read_process_output): Don't call signal_after_change
4386 and update_compositions after insert_from_string_before_markers.
4387
dbcf3c03
GM
43882001-05-16 Gerd Moellmann <gerd@gnu.org>
4389
a90b3d3c
GM
4390 * xfaces.c (split_font_name): Use the right field when
4391 checking for `[...]' syntax.
4392
1b7818b4
GM
4393 * buffer.c (copy_overlays): New function.
4394 (clone_per_buffer_values): Use it.
4395
4396 * buffer.h (OVERLAY_PLIST): New macro.
4397
9bae8781
GM
4398 * keymap.c (Fsingle_key_description): Replace a build_string with
4399 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
4400
dbcf3c03
GM
4401 * fontset.c (Ffontset_info): Check that face is non-null
4402 before accessing its fields.
4403
8a1ae4dd
GM
44042001-05-15 Gerd Moellmann <gerd@gnu.org>
4405
18a0a39e
GM
4406 * keyboard.c (read_key_sequence): Prevent generating a fake
4407 prefix key twice.
4408
e335b66a
GM
4409 * xfaces.c (split_font_name): Handle `[...]' for the right
4410 font name fields.
4411
8a1ae4dd
GM
4412 * ccl.c (ccl_driver): Don't copy remaining bytes in case
4413 of CCL_STAT_INVALID_CMD.
4414
3cf80731
SM
44152001-05-14 Stefan Monnier <monnier@cs.yale.edu>
4416
33568849
SM
4417 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
4418 in <var> has no default value yet.
4419
3cf80731
SM
4420 * xfaces.c (try_alternative_families): First try the FAMILY.
4421 And if nothing is found in the end, try again with scalable fonts.
4422 (try_font_list): Let try_alternative_families do a bit more of
4423 the work. Only use FAMILY if it is not nil.
4424 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
4425
933b0249
GM
44262001-05-14 Gerd Moellmann <gerd@gnu.org>
4427
58e5af83
GM
4428 * xterm.c (note_mouse_highlight): Avoid changing the mouse
4429 pointer shape when show_mouse_face has already done it.
33568849 4430
58e5af83 4431 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
4432 full-width rows.
4433
7b16a6bf
GM
4434 * xfaces.c (split_font_name): Make sure to leave the loop
4435 with the right value of `i'.
3cf80731 4436
933b0249
GM
4437 * xfaces.c (split_font_name): Handle matrix transformations
4438 in the pixel and point size fields of XLFD font names.
4439 (xlfd_point_size): Likewise.
4440
dddcbf00
EZ
44412001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
4442
3cf80731 4443 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
4444 (x_to_w32_font): Add prototype.
4445
7689ef0b
EZ
4446 * regex.c (malloc, realloc, free) [emacs]: Undefine before
4447 redefining, to avoid compiler warnings.
4448
e7c15bba
EZ
4449 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
4450
dddcbf00
EZ
4451 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
4452 (w32_get_bdf_glyph): Cast between unsigned char and char when
4453 passing arguments to subroutines, to shut up compiler warnings.
4454 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
4455 GET_HEX_VAL.
4456
4457 * xfaces.c: Include keyboard.h before frame.h, not after it.
4458
4459 * widget.c: Include keyboard.h before frame.h.
4460
4461 * w32term.h (struct image, struct face): Forward declaration, to
4462 avoid compiler warnings.
4463
7bd2d083
GM
44642001-05-11 Gerd Moellmann <gerd@gnu.org>
4465
47e72862
GM
4466 * keyboard.c (read_key_sequence): Don't modify events when
4467 generating fake prefix keys (mode-line, scroll-bar, ...) since
4468 this prevents proper processing of such events when pushed back
4469 into unread-command-events.
4470
dd5f324b
GM
4471 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
4472 actually redrawn. Make the function static.
4473 (note_mouse_highlight): Fix a case where the mouse cursor
4474 was changed back to the text cursor.
4475
4476 * xterm.h (clear_mouse_face): Remove prototype.
4477
d88a79d4
GM
4478 * xdisp.c (try_window_id): Fix the fix and set the right
4479 window_end_vpos.
4480
4481 * xdisp.c (try_window_id): Fix computation of window end in the
4482 case that lines were deleted at the end of the window. Add some
4483 more debug_method_adds.
0416532f 4484
7bd2d083
GM
4485 * xfaces.c (try_alternative_families): New function.
4486 (try_font_list): Use it. If ATTRS specifies a family, check
4487 fonts from that family first.
4488 (choose_face_font): Remove code setting the family part of
4489 the pattern to nil.
4490
23fca891
GM
44912001-05-10 Gerd Moellmann <gerd@gnu.org>
4492
ff9aa2ca
GM
4493 * xdisp.c (try_window_id): Fix case of all changes before
4494 the window start.
7b2654b5 4495
23fca891
GM
4496 * xdisp.c (try_window_id): Add some xasserts.
4497
e9726794
GM
44982001-05-09 Gerd Moellmann <gerd@gnu.org>
4499
4500 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
4501
9e53a675
GM
45022001-05-09 Dave Love <fx@gnu.org>
4503
4504 * xdisp.c (GIVE_UP): Fix for K&R C.
4505
0d487c52
GM
45062001-05-09 Gerd Moellmann <gerd@gnu.org>
4507
fe88d421
GM
4508 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
4509
0d487c52
GM
4510 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
4511 back to the text cursor shape without need.
4512
1e9fc92e
GM
45132001-05-07 Gerd Moellmann <gerd@gnu.org>
4514
a2a6232e
GM
4515 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
4516
4517 * dispextern.h (inverse_video): Declare extern.
4518
1e9fc92e
GM
4519 * keyboard.c (delete_kboard): Handle the case that selected_frame
4520 has been deleted in the course of x_connection_closed.
4521
12949a7f
EZ
45222001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
4523
7b2654b5
SM
4524 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
4525 Fix the change from 2001-04-30.
12949a7f 4526
2fa2f461
GM
45272001-05-03 Gerd Moellmann <gerd@gnu.org>
4528
a779d213
GM
4529 * xfns.c (file_dialog_unmap_cb): New function.
4530 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
4531 where a dialog is closed via the window manager.
4532
7b2654b5 4533 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
4534 the window start or all below the window end mostly rewritten.
4535 (redisplay_window): Move the tests if try_window_id is
4536 applicable to try_window_id.
4537 (GIVE_UP): New macro.
4538
3356df63
GM
45392001-05-02 Gerd Moellmann <gerd@gnu.org>
4540
a39202f6 4541 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
4542 currently being updated, mark the frame garbaged.
4543 Fix computation of rows intersecting the exposed rectangle.
a39202f6 4544 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 4545
3356df63
GM
4546 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
4547 again if it has already been drawn.
4548
a9d2fd1d
SM
45492001-05-01 Stefan Monnier <monnier@cs.yale.edu>
4550
4551 * syntax.c (update_syntax_table): Check that oldi has the same
4552 properties as old_prop before deciding not to invalidate.
4553
c95fc5f1
GM
45542001-04-30 Gerd Moellmann <gerd@gnu.org>
4555
a9793e45
GM
4556 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
4557 read-only text that is so because of text properties.
4558
c95fc5f1 4559 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 4560 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
4561 windows that are components of a Lucid menu bar.
4562
5a5d9185
GM
45632001-04-27 Gerd Moellmann <gerd@gnu.org>
4564
4565 * term.c (turn_on_face): Fix reverse video handling on terminals
4566 that don't support colors.
4567
ba973f7a
GM
45682001-04-26 Gerd Moellmann <gerd@gnu.org>
4569
4570 * editfns.c (save_excursion_restore): Don't use XBUFFER on
4571 a non-buffer.
4572
8c56a983
GM
45732001-04-25 Gerd Moellmann <gerd@gnu.org>
4574
a728644c
GM
4575 * term.c (toggle_highlight): New function.
4576 (turn_on_face): Change handling of reverse video.
4577
7b2654b5
SM
4578 * process.c (wait_reading_process_input):
4579 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 4580
bfd8410f
GM
4581 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
4582 of the number of overlays to check.
4583
be2488ca
GM
4584 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
4585
8c56a983
GM
4586 * xdisp.c (try_window_id): Fix a case where window_end_pos
4587 and window_end_bytepos were not adjusted.
4588
522d42f7
GM
45892001-04-23 Gerd Moellmann <gerd@gnu.org>
4590
4591 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
4592 zero instead of -1.
4593
78c1afb6
EZ
45942001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
4595
a9d2fd1d
SM
4596 * process.c (wait_reading_process_input) [!subprocesses]:
4597 Don't reference waiting_for_user_input_p, it's not defined in the
4598 branch without async subprocesses support.
78c1afb6 4599
a2fab450
GM
46002001-04-19 Gerd Moellmann <gerd@gnu.org>
4601
a122a38e
GM
4602 * keyboard.c (delete_kboard): Prevent a dangling reference
4603 from current_kboard to KB, which is freed.
4604
a9d2fd1d
SM
4605 * process.c (wait_reading_process_input):
4606 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
4607 read_key_sequence aware of buffer changes from under it.
4608
0f8d6dc7
GM
46092001-04-18 Gerd Moellmann <gerd@gnu.org>
4610
eeffb293
GM
4611 * xfaces.c (Qscalable_fonts_allowed): New variable.
4612 (realizing_basic_faces_p): Removed.
2fa2f461
GM
4613 (x_face_list_fonts): Special handling for realizing_basic_faces_p
4614 removed.
eeffb293 4615 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
4616 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
4617 for scalable-fonts-allowed to t.
eeffb293 4618
0f8d6dc7
GM
4619 * fileio.c (Finsert_file_contents): If the file size returned from
4620 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 4621 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 4622
eec2d1de
EZ
46232001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
4624
4625 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
4626 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
4627 (__memalign_hook): Make the two prototypes consistent.
4628
f4f480bd
GM
46292001-04-17 Gerd Moellmann <gerd@gnu.org>
4630
4631 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
4632 matrix of mini-windows.
4633
52283633
SM
46342001-04-12 Stefan Monnier <monnier@cs.yale.edu>
4635
4636 * intervals.c (find_interval): Don't rebalance during signal handling.
4637
ec2423c9
GM
46382001-04-11 Gerd Moellmann <gerd@gnu.org>
4639
30cb0001 4640 * fns.c: Include blockinput.h.
52283633 4641
ec2423c9
GM
4642 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
4643
719d83ad
GM
46442001-04-10 Gerd Moellmann <gerd@gnu.org>
4645
60f8d735
GM
4646 * fns.c (Fcompare_strings): Fix return values.
4647
afffeb57
GM
4648 * window.c (window_scroll): Change the meaning of N to mean
4649 N screen-fulls or N lines.
4650 (window_scroll_pixel_based, window_scroll_line_based)
4651 (scroll_command, Fscroll_other_window): Change accordingly.
4652
52283633
SM
4653 * window.c (window_scroll_pixel_based, Frecenter):
4654 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
4655 height of the window.
4656
4657 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
4658 instead of using it.last_visible_y for the height of the window.
52283633 4659
719d83ad 4660 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 4661 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
4662
4663 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
4664 able to write to hidden and system files. From Dan Holmsand
4665 <dan@eyebee.com>.
719d83ad 4666
8ddf3ee1
GM
4667 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
4668 Holmsand <dan@eyebee.com>.
719d83ad 4669
522ed7fb
GM
46702001-04-09 Gerd Moellmann <gerd@gnu.org>
4671
9170e5d4
GM
4672 * fns.c (Fplist_get, Fplist_put): Add QUITs.
4673
522ed7fb
GM
4674 * window.c (window_internal_height): Return 1 less if the
4675 window has a header line.
4676
4677 * xdisp.c (try_window_id): When scrolling on a terminal, take
4678 the change of window_internal_height into account.
4679
ceeb3d7d
EZ
46802001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
4681
4682 * gmalloc.c (align): If the argument SIZE would overflow
4683 __malloc_ptrdiff_t, fail right away.
4684
63685b9d
GM
46852001-04-06 Gerd Moellmann <gerd@gnu.org>
4686
4687 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4688 Make sure the tooltip is completely visible.
4689 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
4690
4691 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
4692
4693 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
4694
3ffb33bb
DL
46952001-04-06 Dave Love <fx@gnu.org>
4696
52283633
SM
4697 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
4698 Fix test of `from'.
3ffb33bb 4699
869fb12c
GM
47002001-04-06 Gerd Moellmann <gerd@gnu.org>
4701
52283633 4702 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 4703
869fb12c
GM
4704 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
4705
441bf856
GM
47062001-04-05 Gerd Moellmann <gerd@gnu.org>
4707
4d664b04
GM
4708 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
4709
52283633 4710 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 4711
30ca89f5
GM
4712 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
4713 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
4714
4715 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
4716 shell widget's position only if it is non-null.
4717
52283633
SM
4718 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
4719 Set f->output_data.x->widget to null after destroying it.
30ca89f5 4720
81a81c0f
GM
4721 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
4722 FILENAME to bring it in synch with the documentation.
4723
441bf856
GM
4724 * xfaces.c (realizing_basic_faces_p): Renamed from
4725 realize_default_face_p.
4726 (realize_basic_faces): Set/clear realizing_basic_faces_p.
4727 (realize_default_face): Don't set the flag.
4728
702a1e8e
GM
47292001-04-04 Gerd Moellmann <gerd@gnu.org>
4730
1013f4e3
GM
4731 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
4732
52283633
SM
4733 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
4734
1013f4e3
GM
4735 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
4736 the buffer that was used for echoing.
4737
702a1e8e
GM
4738 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
4739 (first_font_matching): Removed unused function.
4740 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
4741 (may_use_scalable_font_p): Remove parameter FONT; rename
4742 parameter NAME to FONT.
4743 (x_face_list_fonts): Fix missing bounds check.
4744 (realizing_default_face_p): New variable.
4745 (realize_default_face): Set and clear that flag.
4746 (x_face_list_fonts): When called during the realization of the
4747 default face, and no matching fonts are found when ignoring
4748 scalable fonts and fonts matching a regexp from
4749 face-ignored-fonts, try without ignoring fonts.
4750
f9dbcda4
GM
47512001-04-03 Gerd Moellmann <gerd@gnu.org>
4752
ad18ffb1
GM
4753 * xfns.c (postprocess_image): New function.
4754 (lookup_image): Call it for all image types except PostScript.
4755 (x_kill_gs_process): Call postprocess_image.
4756
f9dbcda4
GM
4757 * xterm.c (x_use_underline_position_properties): New variable.
4758 (x_draw_glyph_string): Use it.
4759 (syms_of_xterm): DEFVAR_BOOL it.
4760
651f03b6
GM
47612001-04-02 Gerd Moellmann <gerd@gnu.org>
4762
4763 * xterm.c (x_alloc_nearest_color_1): New function.
4764 (x_alloc_nearest_color): Use it.
4765 (x_color_cells): Take a Display as argument, instead of a frame.
4766 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
4767 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
4768 (x_initialize): Register cvt_string_to_pixel as resource converter
4769 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
4770
73d75a62
GM
47712001-03-30 Gerd Moellmann <gerd@gnu.org>
4772
b2046df8
GM
4773 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
4774 (set_iterator_to_next): If a string from a display property ends,
4775 consider the case that this might also be the end of an
4776 overlay string having the display property.
4777
52283633 4778 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 4779
87d8eba4
GM
4780 * xdisp.c (reseat_to_string): Undo last change.
4781
73d75a62
GM
4782 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
4783 matrix of a window when the header line changes, when
4784 new rows are allocated, or when the width changes.
4785
911a2406
EZ
47862001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
4787
52283633 4788 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 4789
aea51abe
EZ
47902001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
4791
4792 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
4793 deprecated.
4794
176bc847
GM
47952001-03-29 Gerd Moellmann <gerd@gnu.org>
4796
ed31fabf
GM
4797 * data.c (Fsubr_interactive_form): New function.
4798 (syms_of_data): Defsubr it.
4799
176bc847
GM
4800 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
4801 (live_float_p, live_misc_p): Return 1 only if the offset of the
4802 pointer in its block is >= 0.
4803
e59d0e9d
GM
48042001-03-28 Paul Eggert <eggert@twinsun.com>
4805
4806 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
4807 microseconds calcuation. Avoid double-rounding problem.
4808 In doc string, warn that the result is approximate.
4809
f827b862
GM
48102001-03-28 Gerd Moellmann <gerd@gnu.org>
4811
30a3f61c
GM
4812 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
4813 bind `inhibit-eval-during-redisplay' to t.
4814
4815 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
4816
4817 * xdisp.c (inhibit_eval_during_redisplay)
4818 (Qinhibit_eval_during_redisplay): New variables.
4819 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
4820 don't eval, return nil instead.
4821 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
4822 Initialize Qinhibit_eval_during_redisplay.
4823
e719f5ae
GM
4824 * xdisp.c (reseat_to_string): If STRING is multibyte, set
4825 the iterator's multibyte_p flag.
4826
deb2613a
GM
4827 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
4828 instead of setting it to zero; it's incremented for each frame
4829 where the menu face is changed.
4830
52283633
SM
4831 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
4832 change bottom shadow accordingly.
4833
4834 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
4835 intersections here.
4836 (expose_window): Do it here instead.
52283633 4837 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 4838
f827b862
GM
4839 * bytecode.c (BYTE_CODE_QUIT): New macro.
4840 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
4841
4bde0ebb
GM
48422001-03-27 Gerd Moellmann <gerd@gnu.org>
4843
607ec83c
GM
4844 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
4845 Give up if matrix starts in an ellipsis.
4846 (init_from_display_pos): Do nothing if POS doesn't specify
4847 a dpvec_index but the iterator has such a position.
4848
0245398f
GM
4849 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
4850
aba25348
GM
4851 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
4852 x/y position is (0, 0) after destroying the menu bar, restore
4853 its original position.
4854
4bde0ebb
GM
4855 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
4856 (init_from_display_pos): Use it.
4857 (try_window_reusing_current_matrix): Don't use cursor_row_p.
4858
8cdb267e
GM
48592001-03-26 Gerd Moellmann <gerd@gnu.org>
4860
4861 * xdisp.c (try_window_id): Undo last change.
4862
9948db79
EZ
48632001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4864
4865 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
4866
4867 * buffer.c (syms_of_buffer): Doc fix.
4868
2eddf899
GM
48692001-03-26 Gerd Moellmann <gerd@gnu.org>
4870
4871 * xfaces.c (x_update_menu_appearance): Use local variable
4872 popup_path for setting font resources.
4873
6c145d35
EZ
48742001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
4875
6a65b1b5
EZ
4876 * frame.c (Fframe_list): Don't reference tip_frame if
4877 HAVE_WINDOW_SYSTEM is not defined.
4878
6c145d35
EZ
4879 * emacs.c (main): Update the copyright year. From Werner LEMBERG
4880 <wl@gnu.org>.
4881
d74c1900
GM
48822001-03-25 Gerd Moellmann <gerd@gnu.org>
4883
20fbd925
GM
4884 * xdisp.c (init_from_display_pos): Test invisible property
4885 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 4886
927c5b3b
GM
4887 * xdisp.c (redisplay_internal) <update one window>: Make sure
4888 last_arrow_position and last_arrow_string are set.
4889
d74c1900
GM
4890 * frame.c (Fframe_list): Don't return a tooltip frame.
4891
091f8878
GM
48922001-03-23 Gerd Moellmann <gerd@gnu.org>
4893
52283633
SM
4894 * xdisp.c (mark_window_display_accurate_1): New function,
4895 extracted from mark_window_display_accurate.
4896 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
4897 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
4898 (mark_window_display_accurate): Use it.
4899 (redisplay_internal): Use it for the selected window.
4900 (redisplay_internal): Avoid duplicate mark_window_display_accurate
4901 for the selected frame.
4902
ac90c44f
GM
4903 * xdisp.c Use make_number, for readability.
4904 (try_window_id): Disable rows below the window end.
4905 (try_window_reusing_current_matrix): Use cursor_row_p.
4906 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
4907 of rows.
4908 (init_from_display_pos): If POS specifies a position in a display
4909 vector, maybe get the iterator set up for that ellipsis.
43c09969 4910
091f8878
GM
4911 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
4912
991786dd
EZ
49132001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
4914
4915 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
4916
6c29b43c
GM
49172001-03-23 Gerd Moellmann <gerd@gnu.org>
4918
4919 * xfaces.c (x_update_menu_appearance): Use a different path
4920 for Lucid popup menus.
4921
d8731202
SM
49222001-03-22 Stefan Monnier <monnier@cs.yale.edu>
4923
4924 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
4925
4926 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
4927 (string_buffer_position): Use `make_number'.
4928
f61a541b
GM
49292001-03-22 Gerd Moellmann <gerd@gnu.org>
4930
3c9e997b
GM
4931 * xfaces.c (x_update_menu_appearance): Renamed from
4932 x_set_menu_face_resources. Use different resources for popups.
4933
4934 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
4935 (GC_CHECK_STRING_BYTES): Don't define.
4936
364cd450
GM
4937 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
4938 Removed, together with subroutines.
4939 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 4940 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 4941
d8731202
SM
4942 * dispextern.h (x_set_menu_resources_from_menu_face):
4943 Remove prototype.
364cd450 4944
d8731202 4945 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
4946 Remove calls to x_set_menu_resources_from_menu_face.
4947
d8731202
SM
4948 * xfaces.c (xm_set_menu_resources_from_menu_face):
4949 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
4950
4951 * xmenu.c: Include widget.h.
4952 (single_submenu): Return int. Some cleanup.
4953 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
4954
140330de
GM
49552001-03-21 Gerd Moellmann <gerd@gnu.org>
4956
4957 * xterm.c (x_update_window_end): Handle overwritten mouse face
4958 also for tool bar windows.
4959 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
4960 DRAW is DRAW_IMAGE_RAISED.
4961
1741905c
GM
49622001-03-20 Gerd Moellmann <gerd@gnu.org>
4963
fa88947e
GM
4964 * print.c (syms_of_print): Doc fixes.
4965
1741905c
GM
4966 * fns.c (Fmd5): Doc fix.
4967
ade0bee1
GM
49682001-03-19 Gerd Moellmann <gerd@gnu.org>
4969
357e7376
GM
4970 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4971 Clear area of the frame not occupied by the scroll bar.
4972
c2c097cc
GM
4973 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
4974 tip frame's root window buffer to *tip* right after creating
4975 the frame.
4976
ade0bee1
GM
4977 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
4978 is an integer don't have to be for space characters.
4979
88c6e37e
GM
49802001-03-16 Gerd Moellmann <gerd@gnu.org>
4981
52283633
SM
4982 * indent.c (current_column, current_column_1, Fmove_to_column)
4983 (compute_motion): Handle characters from display vectors differently.
88c6e37e 4984
c62eed76
KH
49852001-03-15 Kenichi Handa <handa@etl.go.jp>
4986
4987 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
4988 drawing glyph string.
4989
c899e7e6
GM
49902001-03-15 Gerd Moellmann <gerd@gnu.org>
4991
d0bbfc99
GM
4992 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
4993 (command_loop_1): Undo last change.
4994
03d1a189
GM
4995 * xterm.c (fast_find_position): Return the correct vpos.
4996
c899e7e6 4997 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 4998 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
4999 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
5000 Call store_symval_forwarding with BUF null.
5001 (set_internal): Call store_symval_forwarding with the BUF
5002 parameter passed to set_internal. Formerly, the value was always
5003 set in the current buffer; the buffer recorded in specbind for
5004 this case wasn't used.
5005 (arith_driver): Reindent.
5006
52283633
SM
5007 * buffer.c (swap_out_buffer_local_variables):
5008 Call store_symval_forwarding with BUF null.
c899e7e6
GM
5009
5010 * lisp.h (store_symval_forwarding): Change prototype.
5011
5012 * eval.c (specbind): Call store_symval_forwarding with BUF null.
5013
57ac7c81
GM
50142001-03-14 Gerd Moellmann <gerd@gnu.org>
5015
697617d9
GM
5016 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
5017 FOR_DELETION. Avoid resizing the mini-window of the selected
5018 frame if FOR_DELETION is set.
5019 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
5020 (Fmake_frame_invisible): Change calls to do_switch_frame for new
5021 signature.
5022
5023 * window.c (Fset_window_configuration): Change call to
5024 do_switch_frame to new format.
5025
5026 * keyboard.c (quit_throw_to_read_char): Change call to
5027 do_switch_frame to new format.
5028
5029 * lisp.h (do_switch_frame): Change prototype.
5030
819dce0f
GM
5031 * frame.c (Fframe_parameters): In the `buffer-list' frame
5032 parameter, store the buffer list of FRAME, not the list of the
5033 selected frame.
5034
57ac7c81
GM
5035 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
5036 box just because the glyph row's full_width_p flag is set.
5037
65008712
GM
50382001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
5039
5040 * xdisp.c (highlight_trailing_whitespace): On character terminals,
5041 skip the padding blanks inserted in extend_face_to_end_of_line,
5042 before checking for trailing whitespace.
5043
159cf431
GM
50442001-03-13 Gerd Moellmann <gerd@gnu.org>
5045
52283633 5046 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
5047 Remove special handling for LessTif/Motif.
5048 (toplevel): Don't include Xm/Xm.h.
5049
52283633
SM
5050 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
5051 Remove workaround code for LessTif; it doesn't work anymore.
5052
2564ea1b 5053 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 5054 Xm/ScrollBarP.h.
afcdc0a1 5055
52283633
SM
5056 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
5057 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
5058 contemporary LessTif.
5059
52283633
SM
5060 * xfaces.c (xm_set_menu_resources_from_menu_face):
5061 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 5062
159cf431
GM
5063 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
5064 removing button grabs.
5065
c6f7429a
KH
50662001-03-13 Kenichi Handa <handa@etl.go.jp>
5067
cb82d767
KH
5068 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
5069 and clip-large-size-font as obsolete.
5070
c6f7429a
KH
5071 * lread.c (read_multibyte): Check the validity of multibyte
5072 sequence. If invalid, return the first byte.
5073
760cefb5
GM
50742001-03-12 Gerd Moellmann <gerd@gnu.org>
5075
5076 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
5077 before running the command; timer functions or process
5078 filters may have set it.
5079
5141f9d0
EZ
50802001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
5081
5082 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
5083 Doc fix.
5084
b6a15240
GM
50852001-03-12 Gerd Moellmann <gerd@gnu.org>
5086
5087 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
5088 to sprintf.
5089
95522746
GM
50902001-03-09 Gerd Moellmann <gerd@gnu.org>
5091
db14cfc5
GM
5092 * dispextern.h (string_buffer_position): Add prototype.
5093
52283633 5094 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
5095 (single_display_prop_string_p): New functions.
5096
5097 * xterm.c (note_mouse_highlight): If there's no help-echo on
5098 a string, look at the buffer text ``under'' it.
5099
5100 * keyboard.c (make_lispy_event): Add string info to the event,
5101 analogous to what's done on mode lines.
5102 (read_key_sequence): For a click on a string, consider `local-map'
5103 and `keymap' of that string.
5104
52283633
SM
5105 * keyboard.c (make_lispy_event, make_lispy_movement):
5106 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
5107
5108 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
5109
5110 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
5111 POS; return void.
5112
95522746
GM
5113 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
5114 flags argument to emacs_open; it seems to conflict with O_EXCL.
5115
898a399d
KH
51162001-03-09 Kenichi Handa <handa@etl.go.jp>
5117
28cd4910
KH
5118 * composite.h (struct composition): Change types of members;
5119 glyph_len to unsigned, width to unsigned short.
898a399d 5120
4cdf6a6c
AI
51212001-03-08 Andrew Innes <andrewi@gnu.org>
5122
5123 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
5124 menu titles.
5125
129004d3
GM
51262001-03-08 Gerd Moellmann <gerd@gnu.org>
5127
221dd3e7
GM
5128 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
5129 instead of nil.
5130
52283633 5131 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
5132 help-echo in strings.
5133 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
5134 (fast_find_string_pos): New function.
5135
52283633
SM
5136 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
5137 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
5138
5139 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
5140 Handle `mouse-face'.
5141
5142 * dispextern.h (face_at_string_position): Change prototype.
5143
52283633 5144 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 5145
129004d3
GM
5146 * keyboard.c (make_lispy_event): Avoid generating drag events
5147 if the mouse hasn't actually moved to another buffer position.
52283633 5148
80c8ab8c
DL
51492001-03-08 Dave Love <fx@gnu.org>
5150
129004d3 5151 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 5152
989521fd
GM
51532001-03-08 Gerd Moellmann <gerd@gnu.org>
5154
5155 * process.c (Fset_process_window_size): Fix a typo.
5156
bb5c338d
KH
51572001-03-08 Kenichi Handa <handa@etl.go.jp>
5158
5159 * coding.c (detect_coding_sjis): Do more rigid check.
5160 (detect_coding_big5): Likewise.
5161 (decode_coding_sjis_big5): Likewise.
5162 (Fdetect_coding_region): Call detect_coding_system with tailing
5163 anchor byte `\0' for more rigid detection.
52283633 5164 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
5165 (Fdetect_coding_string): Likewise.
5166
8b8f9197
SM
51672001-03-07 Stefan Monnier <monnier@cs.yale.edu>
5168
5169 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
5170 a string before extracting its data.
5171
3bdf2660
GM
51722001-03-07 Gerd Moellmann <gerd@gnu.org>
5173
5174 * window.c (Frecenter): Rewrite code handling negative values
5175 of ARG on graphical frames.
5176
51772001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
5178
5179 * window.c (displayed_window_lines): If W->start is outside the
5180 accessible portion of the buffer, call start_display with BEGV or
5181 ZV instead of W->start.
5182
471f86b9
GM
51832001-03-07 Gerd Moellmann <gerd@gnu.org>
5184
2ab62c6c
GM
5185 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
5186
471f86b9
GM
5187 * process.c (Fset_process_filter): Don't crash if the input
5188 file descriptor of PROCESS is closed.
5189 (Fset_process_window_size): Likewise.
5190
101922c3
GM
51912001-03-06 Kenichi Handa <handa@etl.go.jp>
5192
5193 * xterm.c (XTflash): Make the timeout of select shorter, and call
5194 select repeatedly until the desired time expires.
5195
45d051a7
GM
51962001-03-06 Gerd Moellmann <gerd@gnu.org>
5197
5198 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
5199
5200 * xfns.c (Fx_create_frame): Clear Vwindow_list.
5201
5202 * lisp.h (Vwindow_list): Declare extern.
5203
8f372c46
EZ
52042001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
5205
5206 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
5207
f16a7aa5
GM
52082001-03-06 Gerd Moellmann <gerd@gnu.org>
5209
157ae273
GM
5210 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
5211 to detect a case where we have to highlight a different region
5212 despite not having left the currently highlighted region.
5213 Set mouse_face_overlay in the x_display_info.
45d051a7 5214 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
5215
5216 * xterm.h (struct x_display_info): Add mouse_face_overlay.
5217
5218 * buffer.c (mouse_face_overlay_overlaps): New function.
5219
5220 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
5221 (Qmouse_face): Declare extern.
5222
f16a7aa5
GM
5223 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
5224 if face_change_count is non-zero.
5225
827afcac
KH
52262001-03-06 Kenichi Handa <handa@etl.go.jp>
5227
5228 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
5229 that the source is unibyte.
5230
14c7242e
DL
52312001-03-05 Dave Love <fx@gnu.org>
5232
827afcac 5233 * xterm.c (XTmouse_position): Fix typo.
14c7242e 5234
c28b847b
GM
52352001-03-05 Gerd Moellmann <gerd@gnu.org>
5236
5237 * minibuf.c (read_minibuf): Clean up the binding stack if
5238 called noninteractively.
5239
b86644f2
KH
52402001-03-05 Kenichi Handa <handa@etl.go.jp>
5241
5242 * coding.c (syms_of_coding): Docstring modified.
5243
203682cc 52442001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
5245
5246 * charset.c (char_to_string): If a single byte char has modifier
5247 bits that can't be reflected to the character code, ignore them
45d051a7 5248 instead of signaling an error.
b86644f2 5249
e30bd7b7
EZ
52502001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
5251
5252 * s/msdos.h: Update copyright notice.
5253
5254 * dosfns.h: Update copyright notice.
5255
5256 * dosfns.c: Update copyright notice.
5257
5258 * msdos.c: Update copyright notice.
5259
b52b65bd
GM
52602001-03-02 Gerd Moellmann <gerd@gnu.org>
5261
5262 * xterm.c (glyph_rect): New function.
5263 (XTmouse_position): Use it to raise the threshold for mouse
5264 movement event generation.
5265
53c4b1e6
EZ
52662001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5267
5268 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
5269 specifies (reverse . t), reverse the initial screen colors.
5270 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
5271 but we are reversing the colors, set bg_set, not fg_set.
5272 Likewise for setting background-color and reversing: set fg_set.
5273 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
5274 in effect.
5275
5276 * xfaces.c (Finternal_set_lisp_face_attribute)
5277 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
5278 parameters alist.
5279
f964b4d7
GM
52802001-03-02 Gerd Moellmann <gerd@gnu.org>
5281
ef53d75e
GM
5282 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
5283 to a single slash in the middle of file names.
5284
52283633 5285 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
5286 Accept only alphanumeric time zone names.
5287
f964b4d7
GM
5288 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
5289 or width area.
5290 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
5291 a widget to zero height.
52283633 5292
c3c45f65
GM
52932001-03-01 Gerd Moellmann <gerd@gnu.org>
5294
5295 * window.c (Fwindow_end): Call move_it_past_eol only if
5296 ending up on a partially visible line.
5297
028d739a
DL
52982001-03-01 Dave Love <fx@gnu.org>
5299
5300 * ccl.c (Fccl_execute): Doc fix.
5301
57c5889c
GM
53022001-03-01 Gerd Moellmann <gerd@gnu.org>
5303
35f59f6b
GM
5304 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
5305 of the tool bar before calling x_figure_window_size.
5306
f84ff02c
GM
5307 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
5308 NULL after destroying it, otherwise XTread_socket can access a
5309 destroyed widget when input is unblocked.
5310
8b8f9197 5311 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 5312
57c5889c
GM
5313 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
5314 same name as before, although there was a change in fontsets.
5315
224227d1
KR
53162001-02-28 Ken Raeburn <raeburn@gnu.org>
5317
4560730a
KR
5318 * lisp.h (Fframe_parameter): Declare.
5319
224227d1 5320 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 5321 Lisp_Object.
224227d1 5322
ece93c02
GM
53232001-02-28 Gerd Moellmann <gerd@gnu.org>
5324
11ef99b9
GM
5325 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
5326 NULL instead.
5327
5328 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
5329 NULL instead.
5330
ece93c02
GM
5331 * alloc.c (toplevel): Include process.h.
5332 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
5333 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
5334 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
5335 (allocate_vector, allocate_hash_table, allocate_window)
5336 (allocate_frame, allocate_process, allocate_other_vector):
5337 New functions.
ece93c02
GM
5338 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
5339 (mark_maybe_pointer): New function.
52283633 5340 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
5341 remain and not Lisp_Objects.
5342 (min_heap_address, max_heap_address): New variables.
5343 (mem_find): Return MEM_NIL if START is below min_heap_address or
5344 above max_heap_address.
5345 (mem_insert): Compute min_heap_address and max_heap_address.
5346
5347 * process.c (make_process): Use allocate_process.
5348
5349 * frame.c (make_frame): Use allocate_frame.
5350
5351 * window.c (make_window, make_dummy_parent): Use allocate_window.
5352 (Fcurrent_window_configuration): Use allocate_other_vector.
5353
5354 * lisp.h (allocate_vectorlike): Remove prototype.
5355 (allocate_vector, allocate_other_vector, allocate_frame)
5356 (allocate_window, allocate_process, allocate_hash_table):
5357 Add prototypes.
5358
5359 * fns.c (Fdelete, larger_vector): Use allocate_vector.
5360 (make_hash_table, copy_hash_table): Use allocate_hash_table.
5361
063af457
KH
53622001-02-27 Kenichi Handa <handa@etl.go.jp>
5363
5364 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
5365 treat the produced bytes as a valid multibyte sequence.
5366
5367 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
5368 (ccl_driver) <CCL_WriteMultibyteChar2>:
5369 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
5370 <ccl_finish>: Set ccl->eight_bit_control properly.
5371
5372 * ccl.h (struct ccl_program): New member eight_bit_control.
5373
f58c6494
SM
53742001-02-26 Stefan Monnier <monnier@cs.yale.edu>
5375
5376 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
5377 accessible_keymaps_char_table.
5378 (accessible_keymaps_char_table): Obey `is_metized'.
5379 (where_is_internal, Fwhere_is_internal): Don't confuse int and
5380 Lisp_Object.
5381
c596c392
GM
53822001-02-26 Gerd Moellmann <gerd@gnu.org>
5383
5384 * dispnew.c: Check HAVE_TERM_H before including term.h.
5385
425de386
AI
53862001-02-24 Andrew Innes <andrewi@gnu.org>
5387
5388 * makefile.w32-in: Update copyright notice.
5389
2ba11bbd
SM
53902001-02-24 Stefan Monnier <monnier@cs.yale.edu>
5391
5392 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
5393
66c56ed1
KH
53942001-02-24 Kenichi Handa <handa@etl.go.jp>
5395
4c1593ce
KH
5396 * Makefile.in (lisp): Add international/utf-8.elc.
5397
66c56ed1
KH
5398 * fontset.c (Fnew_fontset): Fix handling of the case that an
5399 element of FONTLIST is a cons of family and registry.
5400
796ead7e
JR
54012001-02-23 Jason Rumney <jasonr@gnu.org>
5402
5403 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
5404 to height unconditionally.
5405
5406 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 5407 background face to the end of the drawing area in the text area, only.
796ead7e
JR
5408 (x_insert_glyphs): Call window_box_left to obtain the left
5409 x-coordinate of the area to shift.
5410
5411 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
5412 safe_run_hooks.
5413
f6839838
AI
54142001-02-22 Andrew Innes <andrewi@gnu.org>
5415
52283633 5416 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
5417 ($(BLD)\dispnew.obj):
5418 ($(BLD)\editfns.obj):
5419 ($(BLD)\fileio.obj):
5420 ($(BLD)\filelock.obj):
5421 ($(BLD)\keyboard.obj):
5422 ($(BLD)\w32proc.obj):
5423 ($(BLD)\process.obj):
5424 ($(BLD)\sysdep.obj): Ditto.
5425
5426 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
5427 header files.
52283633
SM
5428 ($(BLD)/dispnew.$(O)):
5429 ($(BLD)/editfns.$(O)):
5430 ($(BLD)/fileio.$(O)):
5431 ($(BLD)/filelock.$(O)):
5432 ($(BLD)/keyboard.$(O)):
5433 ($(BLD)/w32proc.$(O)):
5434 ($(BLD)/process.$(O)):
f6839838
AI
5435 ($(BLD)/sysdep.$(O)): Ditto.
5436
c224f70b
GM
54372001-02-22 Gerd Moellmann <gerd@gnu.org>
5438
51695746
GM
5439 * xdisp.c (forward_to_next_line_start): When taking the shortcut
5440 at the start of the function, check that the \n in it->c is
5441 from the iterator's current position.
52283633 5442
a61b7058
GM
5443 * xdisp.c (handle_single_display_prop): Add parameter
5444 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
5445 properties which replace the display of text with something else.
5446 (handle_display_prop): Call handle_single_display_prop with
5447 additional argument saying if we already replaced text display
5448 with something else. Use AREF.
52283633 5449 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
5450 (decode_mode_spec_coding): Use AREF and ASIZE.
5451
3473f362
GM
5452 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
5453 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
5454 * vmstime.h: Files removed.
52283633 5455
2bb58df3
GM
5456 * unexencap.c, unexfx2800.c: Files removed.
5457
c224f70b
GM
5458 * dispnew.c (direct_output_for_insert): Give up if we are showing
5459 a message or just cleared the message because we might need to
5460 resize the echo area window or display an empty echo area.
5461
ffc9ff0c
GM
54622001-02-21 Gerd Moellmann <gerd@gnu.org>
5463
0528abe1
GM
5464 * xdisp.c (redisplay_internal): Do the
5465 mark_window_display_accurate after all windows have been
5466 redisplayed because this call resets flags in buffers which are
5467 needed for proper redisplay.
5468
52283633
SM
5469 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
5470 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
5471 the old names.
5472
52283633
SM
5473 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5474 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
5475
5476 * msdos.h (struct x_output): Rename busy_window to
5477 hourglass_window, busy_p to hourglass_p.
5478
52283633
SM
5479 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5480 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
5481
5482 * xfns.c: Rename everything containing *busy_cursor* and similar
5483 to *hourglass*.
5484 (syms_of_w32fns): Rename x-busy-pointer-shape to
5485 x-hourglass-pointer-shape, display-busy-cursor to
5486 display-hourglass, busy-cursor-delay to hourglass-delay.
5487
5488 * w32fns.c: Rename everything containing *busy_cursor* and similar
5489 to *hourglass*.
5490 (syms_of_w32fns): Rename x-busy-pointer-shape to
5491 x-hourglass-pointer-shape, display-busy-cursor to
5492 display-hourglass, busy-cursor-delay to hourglass-delay.
5493
5494 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
5495 of its busy_p flag.
5496
5497 * dispextern.h (start_hourglass, cancel_hourglass)
5498 (display_hourglass_p): Renamed from *busy_cursor*.
5499
ab2c5f0a
GM
55002001-02-20 Gerd Moellmann <gerd@gnu.org>
5501
d17e49a8
GM
5502 * keyboard.c (read_char): When an event from unread-command-events
5503 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
5504
fa97adf6
GM
5505 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
5506 equal to the current buffer.
5507
ab2c5f0a
GM
5508 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
5509 nil, otherwise we're left with truncate_lines t when a message
5510 is printed with message-truncate-lines bound to t.
5511
aeac019e
GM
55122001-02-19 Gerd Moellmann <gerd@gnu.org>
5513
c8bc6f65
GM
5514 * window.c (Fmove_to_window_line): Undo last change.
5515 (displayed_window_lines): Call line_bottom_y to determine
5516 the line's bottom position.
5517
5518 * dispextern.h (line_bottom_y): Add prototype.
5519
52283633 5520 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
5521 (pos_visible_p): Use it.
5522
980a2d69
GM
5523 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
5524 set redisplaying_p to 0 here instead of in Frecursive_edit.
5525 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
5526 set redisplaying_p.
5527
52283633 5528 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
5529 New variables.
5530 (syms_of_xdisp): Initialize new variables.
5531 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
5532 Specbind `inhibit-menubar-update' when updating the menu bar.
5533
65048e97
GM
5534 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
5535 safe_run_hooks.
5536
5537 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
5538 safe_run_hooks.
5539
a57c4026
GM
5540 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
5541 is null.
5542
aeac019e
GM
5543 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
5544 to the start of the file.
5545
76846b31
GM
55462001-02-16 Gerd Moellmann <gerd@gnu.org>
5547
f3f053f3 5548 * window.c (set_window_buffer): Fix last change.
52283633 5549
f3f053f3
GM
5550 * window.c (set_window_buffer): Set window's vscroll to 0.
5551
dad75588
GM
5552 * window.c (coordinates_in_window): Increase width of area
5553 where the vertical line can be dragged.
5554
c220b753
GM
5555 * xterm.c (x_set_glyph_string_background_width): Extend the
5556 background face to the end of the drawing area in the text
5557 area, only.
5558
c56b1c1b
GM
5559 * xdisp.c (handle_single_display_prop): Set iterator's position
5560 to where the `display' property starts, like for images.
5561 (dump_glyph): New function.
5562 (dump_glyph_row): Use it. Dump info about marginal areas.
5563
5564 * dispnew.c (direct_output_for_insert): Recognize more cases where
5565 glyphs can be written instead of being inserted.
5566
5567 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
5568 the left x-coordinate of the area to shift.
5569
76846b31
GM
5570 * dired.c (directory_files_internal): Set result list to nil
5571 before retrying.
5572
0fc71a77
KH
55732001-02-15 Kenichi Handa <handa@etl.go.jp>
5574
5575 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
5576 invalid multibyte sequence, treat *SRC as a character of
5577 eight-bit-graphic.
5578
25078b54
EZ
55792001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
5580
5581 * textprop.c (Fset_text_properties): Doc fix.
5582
8399f8a0
GM
55832001-02-15 Gerd Moellmann <gerd@gnu.org>
5584
5585 * dispnew.c (update_text_area): Undo change of 2001-01-12.
5586
9a2a6f73
DL
55872001-02-14 Dave Love <fx@gnu.org>
5588
5589 * coding.c: Doc and message fixes.
5590
bf853fee
AI
55912001-02-14 Andrew Innes <andrewi@gnu.org>
5592
5593 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
5594 Emacs frame above the screen size.
5595
78c663d8
GM
55962001-02-14 Gerd Moellmann <gerd@gnu.org>
5597
5598 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
5599
7cc9f69f
GM
56002001-02-13 Gerd Moellmann <gerd@gnu.org>
5601
0a411995
GM
5602 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
5603 case that TO ends up beyond ZV after running before-change-functions.
5604
5ddc1b75
GM
5605 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
5606 the selected window if it is showing the buffer in question.
5607
7cc9f69f
GM
5608 * dired.c (directory_files_internal): Initialize errno.
5609 (toplevel): Include errno.h.
5610
2e6621ca
GM
56112001-02-13 Kenichi Handa <handa@etl.go.jp>
5612
5613 * xfaces.c (best_matching_font): New parameter width_ratio.
5614 Multiply avgwidth by width_ratio.
5615 (choose_face_font): Call best_matching_font with width_ratio
5616 calculated from the column width of C.
5617
60222d69
AI
56182001-02-12 Andrew Innes <andrewi@gnu.org>
5619
5620 The following changes are to draw box lines inside characters area
5621 if line-width is negative.
52283633 5622
60222d69
AI
5623 * w32term.c (x_produce_image_glyph): Pay attention to the case that
5624 face->box_line_width is negative.
5625 (x_produce_stretch_glyph): Likewise.
5626 (x_produce_glyphs): Likewise.
5627 (x_estimate_mode_line_height): Likewise.
5628 (x_draw_glyph_string_background): Likewise.
5629 (x_draw_glyph_string_foreground): Likewise.
5630 (x_draw_composite_glyph_string_foreground): Likewise.
5631 (x_draw_glyph_string_box): Likewise.
5632 (x_draw_image_foreground): Likewise.
5633 (x_draw_image_relief): Likewise.
5634 (x_draw_image_foreground_1): Likewise.
5635 (x_draw_image_glyph_string): Likewise.
5636
9804b846
KH
56372001-02-09 Kenichi Handa <handa@etl.go.jp>
5638
5639 The following changes are to draw box lines inside characters area
5640 if line-width is negative.
52283633 5641
9804b846
KH
5642 * xterm.c (x_produce_image_glyph): Pay attention to the case that
5643 face->box_line_width is negative.
5644 (x_produce_stretch_glyph): Likewise.
5645 (x_produce_glyphs): Likewise.
5646 (x_estimate_mode_line_height): Likewise.
5647 (x_draw_glyph_string_background): Likewise.
5648 (x_draw_glyph_string_foreground): Likewise.
5649 (x_draw_composite_glyph_string_foreground): Likewise.
5650 (x_draw_glyph_string_box): Likewise.
5651 (x_draw_image_foreground): Likewise.
5652 (x_draw_image_relief): Likewise.
5653 (x_draw_image_foreground_1): Likewise.
5654 (x_draw_image_glyph_string): Likewise.
5655
5656 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
5657 and :line-width can be negative.
52283633 5658 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 5659
49be9f70
JR
56602001-02-09 Jason Rumney <jasonr@gnu.org>
5661
5662 * w32term.c (w32_encode_char): Treat eight bit graphic and control
5663 characters the same as ASCII and latin-1.
5664 (x_display_and_set_cursor): Check for the focus frame's selected
5665 window instead of selected_window.
5666 (x_after_update_window_line): Don't clear if frame's internal
5667 border width is zero.
5668 (x_new_font): Don't change a tooltip's size.
5669 (w32_initialize): Set char_ins_del_ok to 1.
5670
5671 * w32fns.c (Fx_show_tip): Fix calls to make_number.
5672 (x_set_font): If font hasn't changed, avoid recomputing
5673 faces and other things.
52283633
SM
5674 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
5675 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
5676 (x_create_tip_frame): Prevent changing the tooltip's
5677 background color by specifying a color for the default font
5678 in .Xdefaults.
5679 (Qcancel_timer): New variable.
5680 (syms_of_w32fns): Initialize and staticpro it.
5681 (Fx_hide_tip, Fx_show_tip): Use it.
5682 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5683 the timer.
5684 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
5685
5686 * w32.c (init_environment): Duplicate local string before putenv.
5687
555e35d2
SZ
56882001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
5689
5690 * charset.c (Fstring): A typo.
5691
19c92c94
KH
56922001-02-09 Kenichi Handa <handa@etl.go.jp>
5693
e47a1c33
KH
5694 * charset.c (Fstring): If all arguments are less than 256, return
5695 a unibyte string.
5696
5697 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
5698 return a unibyte string.
5699
19c92c94
KH
5700 * coding.c (code_convert_region): After detecting a coding, if
5701 nothing found, set coding->composing to COMPOSITION_NO.
5702 (decode_coding_string): Likewise.
5703
d8e675f5
SM
57042001-02-08 Stefan Monnier <monnier@cs.yale.edu>
5705
5706 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
5707 to avoid overflow.
5708
bd503487
KH
57092001-02-07 Kenichi Handa <handa@etl.go.jp>
5710
5711 * charset.c (parse_str_to_multibyte): New function.
5712
5713 * charset.h (parse_str_to_multibyte): Extern it.
5714
5715 * print.c (print_string): If we are going to print a unibyte
5716 string into a multibyte buffer, convert the string to multibyte by
5717 str_to_multibyte.
5718
a8370d72
AI
57192001-02-06 Andrew Innes <andrewi@gnu.org>
5720
5721 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
5722 been created. It seems we can get sent window messages such as
5723 WM_ERASEBKGND before we properly update a frame.
5724
c363a1d6
GM
57252001-02-06 Gerd Moellmann <gerd@gnu.org>
5726
5727 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
5728 Avoid some unnecessary cursor positioning.
5729
a08332c0
GM
57302001-02-05 Gerd Moellmann <gerd@gnu.org>
5731
52283633 5732 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
5733 (LFACE_AVGWIDTH): New macro.
5734 (LFACEP): Use AREF.
5735 (check_lface_attrs): Check LFACE_AVGWIDTH.
5736 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
5737 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
5738 (merge_face_vectors): Check LFACE_AVGWIDTH.
5739 (Finternal_make_lisp_face): Use AREF.
5740 (xm_set_menu_resources_from_menu_face)
5741 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
5742 (Finternal_lisp_face_empty_p): Use AREF.
5743 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
5744 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
5745 Compare average widths..
5746 (best_matching_font): Arrange for comparing average widths.
5747
52283633
SM
5748 * dispextern.h (enum lface_attribute_index):
5749 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
5750
5cb3c8d4
DL
57512001-02-05 Dave Love <fx@gnu.org>
5752
5753 * puresize.h: Revert last change following loadup.el change.
5754
193fba87
AI
57552001-02-05 Andrew Innes <andrewi@gnu.org>
5756
5757 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
5758 invocation of temacs, to work with Windows 2000.
5759 (bootstrap-emacs): Ditto.
5760
e16f52ce
GM
57612001-02-05 Gerd Moellmann <gerd@gnu.org>
5762
7a58ab59
GM
5763 * xterm.c (x_display_and_set_cursor): Check for the focus
5764 frame's selected window instead of selected_window.
5765
e89aaabd
GM
5766 * xdisp.c (try_scrolling): If point is in the line below the
5767 window, make sure to move the iterator at least a canonical
5768 char height down.
5769
52283633 5770 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 5771
789ce875
KH
57722001-02-05 Kenichi Handa <handa@etl.go.jp>
5773
52283633
SM
5774 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
5775 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
5776 (ccl_driver): If the CCL program is terminated because of
5777 CCL_STAT_INVALID_CMD, copy the remaining source data to the
5778 destination instead of throwing them away.
5779
20b28f82
GM
57802001-02-02 Gerd Moellmann <gerd@gnu.org>
5781
79fb38c0
GM
5782 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
5783 faces and other things.
5784
20b28f82
GM
5785 * xdisp.c (get_next_display_element): Fix case of empty
5786 display table entry.
5787
5a72551e
EZ
57882001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
5789
eb24d0bf
EZ
5790 * editfns.c (Fconstrain_to_field): Doc fix.
5791
6a3f48c7
EZ
5792 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
5793 into `thoroughly', to make it consistent with the doc string.
5794
5a72551e
EZ
5795 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
5796
01acdb05
GM
57972001-02-01 Gerd Moellmann <gerd@gnu.org>
5798
0353b28f
GM
5799 * search.c (search_buffer): Call set_search_regs with a byte
5800 position, not a character position.
5801
01acdb05
GM
5802 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
5803 minibuffer-only,
5804
e86b5133
EZ
58052001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
5806
5807 * frame.c (Fmodify_frame_parameters): Doc fix.
5808
7442878f
GM
58092001-01-31 Gerd Moellmann <gerd@gnu.org>
5810
01acdb05
GM
5811 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
5812 identifier which is not reserved by Standard C.
52283633 5813
7442878f
GM
5814 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
5815
5816 * window.c (enum window_part): New enumeration.
5817 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
5818 Qright_bitmap_area.
5819 (coordinates_in_window): Return an enumerator from enum
5820 window_part. Fix handling of right scroll bar.
5821 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
5822 `right-fringe' instead of `left-bitmap-area' and
5823 `right-bitmap-area'. Use enumerators from enum window_part
5824 instead of hard-coded integers.
52283633
SM
5825 (check_window_containing, window_from_coordinates):
5826 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
5827 (syms_of_window): Replace Qleft_bitmap_area and
5828 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
5829
7c132cba
EZ
58302001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
5831
5832 * editfns.c (Fformat_time_string): Doc fix.
5833
c359dd9e
SM
58342001-01-31 Stefan Monnier <monnier@cs.yale.edu>
5835
5836 * keymap.c (Fwhere_is_internal): Use the first valid binding
5837 if no ascii binding is found (when firstonly is t).
5838
ce070307
GM
58392001-01-31 Gerd Moellmann <gerd@gnu.org>
5840
b4f30ec5
GM
5841 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
5842 instead of Finteractive_p.
5843
5844 * lisp.h (interactive_p): Add prototype.
5845
5846 * eval.c (interactive_p): New function.
5847 (Finteractive_p): Use it.
5848
ce070307
GM
5849 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
5850
f57b6e64
DL
58512001-01-31 Dave Love <fx@gnu.org>
5852
d61c7afe
DL
5853 * .gdbinit (hook-run): Define to run xreload.
5854
f57b6e64
DL
5855 * textprop.c (Fset_text_properties): Fix newline in doc string.
5856
eef93f99
GM
58572001-01-30 Gerd Moellmann <gerd@gnu.org>
5858
52283633
SM
5859 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
5860 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
5861
5862 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 5863 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
5864 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
5865
5866 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
5867 height.
5868
d9c1f6f9
DL
58692001-01-30 Dave Love <fx@gnu.org>
5870
5871 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
5872 AFTER_POTENTIAL_GC.
5873
e8f044a0
GM
58742001-01-29 Gerd Moellmann <gerd@gnu.org>
5875
52283633
SM
5876 * bytecode.c (Fbyte_code) <Bcurrent_column>:
5877 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 5878
8e1db7b3
EZ
58792001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
5880
5881 * textprop.c (Fset_text_properties): Doc fix.
5882
4eefd9d2
GM
58832001-01-29 Gerd Moellmann <gerd@gnu.org>
5884
5885 * xdisp.c (forward_to_next_line_start): Remove xassert.
5886
fccb8288
EZ
58872001-01-29 Jason Rumney <jasonr@gnu.org>
5888
4eefd9d2 5889 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
5890 returning without releasing it.
5891
76581eab
KH
58922001-01-29 Kenichi Handa <handa@etl.go.jp>
5893
5894 * w32fns.c (w32_font_match): Allocate three more bytes to regex
5895 for '^', '$', and '\0'.
5896
83a96b4d
AC
58972001-01-28 Andrew Choi <akochoi@i-cable.com>
5898
5604ec34
AC
5899 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
5900 regex for '^', '$', and '\0'.
5901
83a96b4d
AC
5902 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
5903 only if current_sblock has been initialized.
5904
5905 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
5906 terminal frame even if it is the only visible frame.
5907
c09a6440
KH
59082001-01-28 Kenichi Handa <handa@etl.go.jp>
5909
5910 * fontset.c (font_family_registry): Even if FONTNAME conform to
5911 XLFD, if it specifies other fields than family and registry,
52283633 5912 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 5913 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
5914 a signle byte character. Don't set FAMILY part to nil here.
5915 It is handled by the caller choose_face_font.
c09a6440
KH
5916 (Fnew_fontset): Call font_family_registry with FORCE 0.
5917 (Fset_fontset_font): Likewise.
5918
4dcd74e6
GM
59192001-01-27 Gerd Moellmann <gerd@gnu.org>
5920
5921 * xdisp.c (display_line): Don't treat a newline as fitting
5922 on the line.
5923
d2906bf8
GM
59242001-01-26 Gerd Moellmann <gerd@gnu.org>
5925
0130fe1a
GM
5926 * window.c (size_window): Set the window's orig_top to nil when
5927 changing heights, so that a future shrink_mini_window won't
5928 restore a bogus height.
5929
550f0e6a
GM
5930 * frame.c (do_switch_frame): If selected frame has a mini-window,
5931 resize that to exact size.
5932
b7b20fbd
GM
5933 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
5934
a47b7816
GM
5935 * xdisp.c (display_line): Simplify check for glyphs fitting
5936 entirely in the line.
5937
d2906bf8
GM
5938 * xfns.c (xic_style): New variable.
5939 (create_frame_xic): Move static variable to global scope for
550f0e6a 5940 the case that `static' gets defined away.
d2906bf8 5941
73df2b1e
KH
59422001-01-26 Kenichi Handa <handa@etl.go.jp>
5943
5944 * coding.c (decode_coding): Set a flag for inhibiting
5945 inconsistent eol.
5946 (code_convert_region): Always set saved_coding_symbol.
5947 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 5948 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 5949
6613cfc4
GM
59502001-01-25 Gerd Moellmann <gerd@gnu.org>
5951
c5e6e06b
GM
5952 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
5953 XClearArea.
5954
5955 * xterm.c (x_after_update_window_line): Don't clear if frame's
5956 internal border width is zero.
5957 (x_clear_area): New function.
5958 (x_after_update_window_line, x_clear_end_of_line)
5959 (x_scroll_bar_create, x_scroll_bar_set_handle)
5960 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
5961 instead of XClearArea.
5962
5963 * xterm.h (x_clear_area): Add prototype.
5964
6613cfc4
GM
5965 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
5966 which doesn't seem necessary anymore with Lesstif 0.92.
5967
650cc6cc
DL
59682001-01-25 Dave Love <fx@gnu.org>
5969
34ac3367
DL
5970 * puresize.h (BASE_PURESIZE): Up to 720000.
5971
650cc6cc
DL
5972 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
5973
5e37dc22
GM
59742001-01-25 Gerd Moellmann <gerd@gnu.org>
5975
e1e441f9
GM
5976 * xdisp.c (echo_area_display): Don't call redisplay_internal
5977 when Emacs is shutting down. We can't run hooks etc. that
5978 would be necessary to do a redisplay.
5979
5e37dc22
GM
5980 * lread.c (read_integer): Use type EMACS_INT instead of int.
5981
0fb94c7f
EZ
59822001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
5983
5984 * ccl.c (ccl_driver): Fix last change.
5985
e3778624
KH
59862001-01-25 Kenichi Handa <handa@etl.go.jp>
5987
5988 * ccl.h (sturct ccl_program): New member suppress_error.
5989
bb264518 5990 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
5991 insert error message to the output.
5992 (setup_ccl_program): Initialize ccl->suppress_error to 0.
5993
5994 * coding.h (struct coding_system): New member suppress_error.
5995
5996 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
5997 (Fset_terminal_coding_system_internal): Set the member
5998 suppress_error to 1.
5999 (Fset_safe_terminal_coding_system_internal): Likewise.
6000
245ed2b1
SM
60012001-01-24 Stefan Monnier <monnier@cs.yale.edu>
6002
6003 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
6004 as if it was a `charset'.
6005
f9aaedb6
GM
60062001-01-24 Gerd Moellmann <gerd@gnu.org>
6007
6008 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
6009 value in where_is_cache; the next lookup in the cache returns
6010 something bogus if we do.
6011
c3902c3e
EZ
60122001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6013
6014 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
6015 if HAVE_WINDOW_SYSTEM isn't defined.
6016
3497f73e
GM
60172001-01-24 Gerd Moellmann <gerd@gnu.org>
6018
e7e41584
GM
6019 * fns.c (sweep_weak_table): Fix code taking items out of
6020 the hash collision chain. Some cleanup.
6021
3497f73e
GM
6022 * xterm.c (x_new_font): Don't change a tooltip's size.
6023
6024 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
6025 background color by specifying a color for the default font
6026 in .Xdefaults.
6027
3d48e687
KH
60282001-01-24 Kenichi Handa <handa@etl.go.jp>
6029
96531b20
KH
6030 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
6031 a workaround for SunOS 4's cc.
6032 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
6033 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
6034 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
6035 statement.
3d48e687 6036
a30629d2
GM
60372001-01-23 Gerd Moellmann <gerd@gnu.org>
6038
6039 * xterm.c (x_set_window_size_1): New function extracted from
6040 x_set_window_size.
6041 (x_set_window_size): Use it.
6042 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
6043 doesn't have a widget, like tooltips.
6044
5a43decf
EZ
60452001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
6046
52283633 6047 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 6048
b0e98867
KH
60492001-01-23 Kenichi Handa <handa@etl.go.jp>
6050
6051 * fns.c (Fset_char_table_default): Fix to make sub char-table
6052 correctly.
6053
50606b4c
GM
60542001-01-22 Gerd Moellmann <gerd@gnu.org>
6055
cb2ddc53 6056 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
6057 a desired tool bar string, even if there are no tool bar items.
6058
57c28064
GM
6059 * xdisp.c (Ftool_bar_lines_needed): New function.
6060 (syms_of_xdisp): Defsubr it.
6061
50606b4c
GM
6062 * editfns.c (Fformat): Don't extend text properties from arguments
6063 to padding chars in the result.
6064
2f169c38
EZ
60652001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
6066
6067 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
6068
0f32f023
AI
60692001-01-20 Andrew Innes <andrewi@gnu.org>
6070
52283633 6071 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
6072 (w32_initialize): Don't set term hooks that aren't actually needed
6073 in windowed mode.
6074
6075 * xfaces.c (realize_default_face):
6076 (realize_face):
6077 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
6078
6079 * xdisp.c (handle_single_display_prop): Remove references to
6080 FRAME_W32_CONSOLE_P.
6081
52283633 6082 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
6083
6084 * frame.h (output_method): Remove output_w32_console method.
6085 (FRAME_W32_CONSOLE_P): Remove macro.
6086
6087 * frame.c (Qw32_console): Remove variable.
6088 (Fframep): Remove references to it.
6089 (syms_of_frame): Ditto.
6090 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
6091
6092 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
6093 redefinition.
6094
7173eada
KH
60952001-01-20 Kenichi Handa <handa@etl.go.jp>
6096
6097 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
6098
755b45ce
AI
60992001-01-19 Andrew Innes <andrewi@gnu.org>
6100
6101 * w32.c (init_environment): Add a version-independent site-lisp
6102 directory to EMACSLOADPATH, after the version dependent one.
6103
0a949811
GM
61042001-01-19 Gerd Moellmann <gerd@gnu.org>
6105
8501998a
GM
6106 * editfns.c (Fbuffer_substring): Doc fix.
6107
52283633
SM
6108 * xdisp.c (message_dolog, message2, message2_nolog):
6109 Rename parameter LEN to NBYTES.
0a949811 6110
e6ebcbbe
KH
61112001-01-19 Kenichi Handa <handa@etl.go.jp>
6112
200ecca2
KH
6113 * charset.c (strwidth): Use c_string_width.
6114 (c_string_width): New function.
6115 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
6116 Caller changed.
6117
6118 * charset.h (c_string_width, lisp_string_width): Extern them.
6119
52283633 6120 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 6121
e6ebcbbe
KH
6122 * indent.c (check_composition): Check validity of composition.
6123
200ecca2
KH
6124 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
6125 characters by calling c_string_width.
6126 (x_consider_frame_title): Get byte length of frame tile string
6127 correctly.
6128 (display_mode_element): Pay attention to width of non-ASCII
6129 characters by calling strwidth.
6130
8692ca92
GM
61312001-01-18 Gerd Moellmann <gerd@gnu.org>
6132
8962e303
GM
6133 * xfns.c (Qcancel_timer): New variable.
6134 (syms_of_xfns): Initialize and staticpro it.
6135 (Fx_hide_tip, Fx_show_tip): Use it.
6136 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6137 the timer.
6138 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
6139
91523be9
GM
6140 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
6141
6142 * window.h (WINDOW_LIVE_P): New macro.
6143
b0b7ed0e
GM
6144 * window.c (window_size_fixed): New variable.
6145 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
6146 the doc string.
6147
06bccf8e
GM
6148 * eval.c (specbind): If binding a per-buffer variable which
6149 doesn't have a buffer-local value in the current buffer, change
6150 the global value by changing the value of the symbol bound in all
6151 buffers not having their own value, to make it consistent with
6152 what happens with other buffer-local variables.
6153
8692ca92
GM
6154 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
6155
6156 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
6157 when searching for a newline.
6158
bb3a3b50
KH
61592001-01-18 Kenichi Handa <handa@etl.go.jp>
6160
6161 * xdisp.c (display_string): Fix previous change.
6162
c2cc16fa
JR
61632001-01-18 Jason Rumney <jasonr@gnu.org>
6164
6165 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
6166 GLYPH_DEBUG is defined.
6167 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
6168 true for images with `:ascent 100'.
6169 (x_set_mouse_face_gc): If the last used mouse face has gone in the
6170 meantime, use face MOUSE_FACE_ID.
6171 If first glyph isn't a character glyph, use the ASCII NUL
6172 character to determine the face.
6173 (expose_area): Do not treat left margin specially.
6174 (note_mode_line_highlight): If no local_map, check global keymap.
6175 (note_mouse_highlight): Initialize overlay.
52283633 6176 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
6177 (show_scroll_bars): Remove unused function.
6178 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
6179 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
6180 Clip to row.
52283633 6181 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
6182 (x_free_frame_resources): Unload relief colors.
6183
9c11f79e
GM
61842001-01-17 Gerd Moellmann <gerd@gnu.org>
6185
3aec8722 6186 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
6187 get_next_display_element when the newline is already found.
6188 This may change the iterator's position, when its current position is
3aec8722
GM
6189 equal to the iterator's stop_charpos.
6190
f3ffc2c3
GM
6191 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
6192 zero, use this method only at the end of a line.
6193
52283633 6194 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
6195 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
6196 if SCALABLE_FONTS_P is set.
52283633 6197
d26d6fd9
GM
6198 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
6199 so that scalable fonts are included.
6200
9c11f79e
GM
6201 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
6202 In the cache, use a key containing the information if scalable
6203 fonts are included.
6204 (x_load_font): Adapt to change of keys in the font cache.
6205
62062001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 6207
d26d6fd9
GM
6208 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
6209 XListFonts to take advantage of font caching.
6210
9c11f79e
GM
6211 * xterm.c (x_list_fonts): Ensure caching font information when
6212 called for a null frame, which is the case frequently when Emacs
6213 starts.
6214
51446987
GM
62152001-01-17 Gerd Moellmann <gerd@gnu.org>
6216
f864120f
GM
6217 * xfns.c (QCconversion): Replaces QCalgorithm.
6218
6219 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
6220
6221 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
6222 of :algorithm.
52283633 6223
e37d1417
GM
6224 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
6225 not everything could be displayed.
6226
51446987
GM
6227 * line.h, x-list-font.c: Files removed because unused.
6228
9ad4f3e5
AI
62292001-01-17 Andrew Innes <andrewi@gnu.org>
6230
6231 * dired.c (directory_files_internal): Convert result from readdir
6232 to a unibyte string initially, to avoid possible misinterpretation
6233 of some bytes as the internal form of Emacs characters.
6234
2eda09b5
KH
62352001-01-17 Kenichi Handa <handa@etl.go.jp>
6236
6237 * fns.c (concat): Be sure to avoid putting the same `composition'
6238 property on the adjacent regions.
6239
826f3788
GM
62402001-01-16 Gerd Moellmann <gerd@gnu.org>
6241
52283633 6242 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
6243 (Fscroll_right, Fscroll_left): Set it here instead, if called
6244 interactively.
6245
d57b83b3
GM
6246 * buffer.c (Fset_buffer_modified_p): Set buffer's
6247 prevent_redisplay_optimizations_p flag.
6248
826f3788 6249 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
6250 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
6251 with additional arg.
6252
6253 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
6254 Change prototype.
826f3788 6255
826f3788
GM
6256 * xdisp.c (redisplay_preserve_echo_area): Add parameter
6257 FROM_WHERE, for debugging.
6258
261d788b
KH
62592001-01-16 Kenichi Handa <handa@etl.go.jp>
6260
6261 * ccl.c (Fregister_ccl_program): Handle the return value of
6262 resolve_symbol_ccl_program correctly.
52283633 6263 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 6264
bccee4f2
GM
62652001-01-15 Gerd Moellmann <gerd@gnu.org>
6266
e4ded23c
GM
6267 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
6268 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
6269
6270 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
6271 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
6272 the display; we didn't open it.
6273
bccee4f2
GM
6274 * dispnew.c (save_or_restore_current_matrices): Function removed.
6275 (save_current_matrix, restore_current_matrix): New functions.
6276 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
6277 restore the frame's current matrix. Due to the glyph pointer
6278 setup done in adjust_glyph_matrix, there is no easy way to make
6279 saving the current matrix in the desired matrix generally correct,
6280 so don't try it.
6281
ebeccffa
KH
62822001-01-15 Kenichi Handa <handa@etl.go.jp>
6283
6284 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
6285 truncation glyphs.
6286 (display_line): Optimize for wide characters.
e4ded23c 6287 (display_string): Don't try to display a multi-column character
ebeccffa
KH
6288 partially. On ttys, produce more than one truncation glyph for
6289 multi-column characters that don't fit on the line.
6290
64388126
KH
62912001-01-13 Kenichi Handa <handa@etl.go.jp>
6292
52283633
SM
6293 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
6294 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 6295
8edb0a6f
JR
62962001-01-13 Jason Rumney <jasonr@gnu.org>
6297
6298 * w32fns.c (Fimage_size, image_ascent, lookup_image)
6299 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
6300 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6301 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 6302
52283633
SM
6303 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
6304 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
6305 (x_draw_image_glyph_string): Adapt to change of image margins.
6306
6307 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
6308 variables.
6309
6310 * w32bdf.c (search_file_line, get_cached_font_char)
6311 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
6312
6313 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
6314
6315 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
6316 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
6317 (Fw32_send_sys_command): Remove unused variables.
6318 (w32_msg_pump): Add parentheses.
6319
6320 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
6321 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
6322 Add parentheses.
6323
4956d1ef
GM
63242001-01-12 Gerd Moellmann <gerd@gnu.org>
6325
b30623be
GM
6326 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
6327 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
6328 being a pair of margins.
6329 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
6330 to DEFVAR_LISP. Extend doc.
6331
6332 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
6333 margins.
6334 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
6335 pair of integers `(X . Y)', use X for the horizontal and Y for the
6336 vertical margin.
6337 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
6338 (parse_image_spec): Check it.
52283633
SM
6339 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6340 (tiff_format, gif_format, gs_format):
6341 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 6342
52283633
SM
6343 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
6344 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
6345 (x_draw_image_glyph_string): Adapt to the change of image margins.
6346
6347 * dispextern.h (struct image): Replace member `margin' with
6348 `hmargin' and `vmargin'.
6349
4554cc79
GM
6350 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
6351 and GLYPHS.
6352
6353 * dispnew.c (update_text_area): Put code which decrements the
6354 stop position when the row's face extends to the end of the
3bffc665 6355 line in #if 0.
4554cc79 6356
3cccce8d
GM
6357 * xfns.c (x_set_mouse_color): Fix color allocation.
6358
4956d1ef
GM
6359 * keyboard.c: Call get_local_map with new argument list.
6360
6361 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
6362
6363 * intervals.h (enum map_property): Removed.
6364 (get_local_map): Change prototype.
6365
6366 * keymap.c: Call get_local_map with new argument list.
6367 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
6368
2c2ff7f2
GM
63692001-01-11 Gerd Moellmann <gerd@gnu.org>
6370
a23887b9
GM
6371 * xdisp.c (build_desired_tool_bar_string): Correct the computation
6372 of the size needed for the tool bar string. For the last image,
6373 use a `display' property that reaches to the end of the string.
6374
a7ee2d2e
GM
6375 * xselect.c (selection_request_dpyinfo): New variable.
6376 (x_handle_selection_request): Set it.
6377 (x_selection_request_lisp_error): Don't call
6378 x_decline_selection_request if selection request's display has
6379 been closed.
6380
52283633
SM
6381 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
6382 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 6383
457b792c
GM
63842001-01-10 Dave Love <fx@gnu.org>
6385
6386 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
6387 ${SOME_MACHINE_LISP}, not ${lisp}.
6388
c1efd260
GM
63892001-01-10 Gerd Moellmann <gerd@gnu.org>
6390
52283633
SM
6391 * xdisp.c (display_line): On ttys, produce more than one truncation
6392 glyph for multi-column characters that don't fit on the line.
a98b5ed9 6393
ac95a621
GM
6394 * xselect.c (x_reply_selection_request): Add a comment.
6395
c1efd260
GM
6396 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
6397 XkbGetNames instead of XkbGetKeyboard.
6398
1bfb1345
DL
63992001-01-10 Dave Love <fx@gnu.org>
6400
6401 * sysdep.c (random): Revert the declaration.
6402
38119822
GM
64032001-01-09 Gerd Moellmann <gerd@gnu.org>
6404
52283633
SM
6405 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
6406 Call function string_bytes.
35f464a7
GM
6407 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
6408
6409 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
6410 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
6411 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
6412 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
6413 the current sblock.
6414 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
6415 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
6416 after sweeping strings, and at the end.
6417 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
6418
38119822
GM
6419 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
6420 ensure that pop_message is called.
6421
6422 * keyboard.c (Fexecute_extended_command): Use a
6423 record_unwind_protect to ensure that pop_message is called.
6424
6425 * lisp.h (push_message_unwind): Add prototype.
6426
6427 * xdisp.c (push_message_unwind): New function.
6428
6429 * fileio.c (do_auto_save_unwind): Do the pop_message here
6430 instead of in Fdo_auto_save.
6431 (Fdo_auto_save): Don't call pop_message.
6432
f47a9ec4
KR
64332001-01-08 Ken Raeburn <raeburn@gnu.org>
6434
6435 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
6436 in inner block.
6437
a758f97d
GM
64382001-01-08 Gerd Moellmann <gerd@gnu.org>
6439
6d0afc03
GM
6440 * window.c (window_scroll_pixel_based): Adjust glyph matrices
6441 when increasing window's vscroll.
6442
a758f97d
GM
6443 * macros.c (Qkbd_macro_termination_hook): New variable.
6444 (syms_of_macros): Initialize and staticpro it.
6445 (pop_kbd_macro): Run kbd-macro-termination-hook.
6446
6447 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
6448
1bfb1345 64492001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
6450
6451 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
6452 arglist, for documentation's sake.
6453
0dac6924
AI
64542001-01-06 Andrew Innes <andrewi@gnu.org>
6455
6456 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
6457 of *.pdb.
6458
8182406a
AI
64592001-01-05 Andrew Innes <andrewi@gnu.org>
6460
6461 * term.c (update_end): Don't check updating_frame; for some reason
6462 this can be 0 sometimes, such as after dismissing a popup menu,
6463 and isn't necessary given the explicit frame argument.
6464
3828218c
GM
64652001-01-05 Gerd Moellmann <gerd@gnu.org>
6466
6467 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
6468 on some systems, and an unsigned long on others, like FreeBSD 4.1.
6469
2f5ded21
GM
64702001-01-04 Gerd Moellmann <gerd@gnu.org>
6471
52283633 6472 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
6473
6474 * xfns.c (x_create_tip_frame): Preserve the value of
6475 face_change_count around the creation of the tip frame.
52283633 6476
2f5ded21
GM
6477 * xfns.c (last_show_tip_args): New variable.
6478 (compute_tip_xy): New function.
6479 (Fx_show_tip): Reuse an existing tip frame, if possible.
6480 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
6481
dfad65fa
DL
64822001-01-04 Dave Love <fx@gnu.org>
6483
64d4ec0f
DL
6484 * editfns.c (Fformat): Doc fix.
6485
dfad65fa
DL
6486 * systime.h (set_file_times): Prototype.
6487
6488 * widget.h (EmacsFrameSetCharSize_): Prototype.
6489
6490 * sysdep.c (random, srandom): Declare explicitly.
6491
6492 * dispextern.h (move_it_vertically_backward): Declare.
6493
85fe3b5e
GM
64942001-01-04 Gerd Moellmann <gerd@gnu.org>
6495
0f2ac578
GM
6496 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
6497 like in Fx_create_frame.
6498
482cca61
GM
6499 * xfaces.c (set_font_frame_param): Don't do anything for
6500 non-graphical frames.
6501
85fe3b5e
GM
6502 * window.c (Fdelete_other_windows): Set window's window_end_valid
6503 to nil when changing the window's start. Don't change the
6504 window's start when its top position hasn't changed. If we do,
6505 this will set the window's optional_new_start, which act's like a
6506 force_start during redisplay with C-x 1 M-> under particular
6507 circumstances (see report from Per Starback to emacs-pretest-bug
6508 from 2000-12-13.).
6509
3e99d3b4
GM
65102001-01-03 Gerd Moellmann <gerd@gnu.org>
6511
a77dc1ec
GM
6512 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
6513 short cut at the start of the function. Add an assertion.
6514 (reseat_at_next_visible_line_start): Add an assertion.
6515
2f3cad6c
GM
6516 * window.c (Frecenter): When changing the window start, set the
6517 window's window_end_valid to nil.
6518 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
6519
6520 * dispextern.h (move_it_past_eol): Add prototype.
6521
6522 * xdisp.c (move_it_past_eol): New function.
6523
3e99d3b4
GM
6524 * window.c (Fwindow_end): Doc fix.
6525
65262001-01-03 Dave Love <fx@gnu.org>
6527
52283633 6528 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 6529
bafb434c
GM
65302001-01-03 Gerd Moellmann <gerd@gnu.org>
6531
6532 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
6533 the enabled_p flag of the glyph row at window_end_vpos to 0.
6534 (handle_single_display_prop): Fix last change.
6535
5297fb00
RS
65362001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6537
6538 * window.c (Frecenter): Doc fix.
6539
13d6a61c
AI
65402001-01-02 Andrew Innes <andrewi@gnu.org>
6541
6542 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
6543
6544 * frame.h (output_method): Add output_w32_console method.
6545 (FRAME_W32_CONSOLE_P): New macro.
6546
6547 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
6548 use output_w32_console method.
6549 (Qw32_console): New Lisp_Object.
6550 (Fframep): Return it.
6551 (syms_of_frame): Init it.
52283633 6552 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
6553
6554 * xfaces.c (realize_default_face): Set face foreground and
6555 background to unspecified for w32_console frames.
6556 (realize_face): Realize face cache for w32_console frames.
6557 (realize_tty_face): Accept w32_console frames.
6558
52283633 6559 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
6560 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
6561 necessary, even if running interactively.
6562
6563 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
6564 w32_console frames.
6565
52283633
SM
6566 * w32term.c (x_update_begin):
6567 (x_update_end):
6568 (x_clear_frame):
6569 (x_ins_del_lines):
6570 (x_change_line_highlight):
6571 (x_delete_glyphs):
6572 (w32_ring_bell):
6573 (x_update_begin):
6574 (x_update_end):
6575 (w32_reassert_line_highlight):
6576 (w32_frame_rehighlight):
13d6a61c
AI
6577 (w32_frame_raise_lower): Do nothing if not w32 frame.
6578
6579 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
6580
6581 * w32fns.c (Fx_display_color_cells): Determine correct value, when
6582 system doesn't tell us directly.
6583 (Fx_display_visual_class): Implement properly.
6584
d6bb0c0d
GM
65852001-01-02 Gerd Moellmann <gerd@gnu.org>
6586
6587 * window.c (Frecenter): Handle centering in graphical frames
6588 specially. Centering on the basis of line counts doesn't work
6589 reliably with variable-height lines.
52283633 6590
315f5865
EZ
65912001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6592
6593 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
6594 and al[].
6595
52283633 6596 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
6597 (update_compositions): Remove unused variable `hook'.
6598
6599 * intervals.c (get_local_map): Remove unused variable `tem'.
6600
6601 * doprnt.c (doprnt1): Remove unused variable `size'.
6602
6603 * fns.c (Flength): Remove unused variable `tail'.
6604 (Fdelete): Remove unused variable `size'.
6605
6606 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
6607 and `gcpro2'.
6608
52283633 6609 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
6610
6611 * data.c (find_symbol_value): Remove extra 3rd argument in the
6612 call to swap_in_symval_forwarding.
6613
52283633 6614 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
6615
6616 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
6617 (trivial_regexp_p): Remove unused variable `c'.
6618 (boyer_moore): Remove unused variable `k'.
6619
6620 * indent.c (current_column): Remove unused variable `stopchar'.
6621 (Fcompute_motion): Remove unused variable `contin'.
6622
6623 * casefiddle.c (casify_object): Remove unused variable `tolen'.
6624
6625 * dired.c (directory_files_internal): Fix a typo in a comment.
6626 Remove an unused variable `handler'.
52283633 6627 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
6628 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
6629 on BSD4_2.
6630
52283633 6631 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
6632
6633 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
6634 and `buf'.
6635 (Fmarker_insertion_type): Remove unused variable `buf'.
6636
6637 * insdel.c (make_gap): Remove unused variable `result'.
6638
52283633 6639 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
6640 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
6641 (menu_bar_items): Remove unused function-scope variable `tem'.
6642
6643 * fontset.c (fontset_ref): Remove unused variable `i'.
6644 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 6645 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
6646 (make_fontset_for_ascii_face): Remove unused variable `name'.
6647 (fs_load_font): Remove unused variable `font_idx'.
52283633 6648 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
6649 (list_fontsets): Remove unused variable `tail'.
6650 (Fnew_fontset): Remove unused variables `family' and `registry'.
6651 (accumulate_font_info): Remove unused variable `tmp'.
6652 (Ffontset_font): Remove unused variable `id'.
6653 (syms_of_fontset): Remove unused variable `i'.
6654
6655 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
6656 to x_term_init.
6657 (lookup_image): Remove unused variable `file'.
6658 (xbm_load): Remove unused variables `bitmap_data', `height', and
6659 `width'. Remove function-local variable `i', leave the
6660 block-local one.
6661 (gif_load): Remove unused variable `inc'.
6662
52283633 6663 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
6664 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
6665 leave only the one in the inner block.
6666
6667 * xfaces.c (face_fontset, realize_default_face): Remove unused
6668 variable `fontset'.
6669 (face_at_buffer_position): Remove unused variable `multibyte_p'.
6670
6671 * term.c (encode_terminal_code): Remove unused variable `c'.
6672
6673 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
6674 char *' instead of `char *'.
6675
6676 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 6677 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
6678 (Fchar_category_set): Remove unused variables `val', `charset',
6679 `c1' and `c2'.
6680
52283633
SM
6681 * coding.c (detect_coding_iso2022, setup_coding_system):
6682 Remove unused variable `i'.
315f5865
EZ
6683 (detect_coding_mask): Remove unused variable `idx'.
6684 (detect_coding): Remove unused variable `i'.
6685 (ccl_coding_driver): Remove unused variable `result'.
6686 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 6687 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
6688 (encode_coding_string): Remove unused variables `gcpro1' and
6689 `saved_coding_symbol'.
6690 (Ffind_coding_systems_region_internal): Remove function-local
6691 variable args[], leave only the block-local one.
6692 (code_convert_region1): Remove unused variable `len'.
6693
6694 * charset.c (char_printable_p): Remove unused variable `chars'.
6695 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
6696 (str_to_multibyte): Remove unused variable `c'.
6697
6698 * window.c (size_window): Remove block-local variable `min_size'.
6699
6700 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
6701 `header_line_height'.
6702 (append_space, extend_face_to_end_of_line): Declare `saved_what'
6703 enum display_element_type.
6704
1a8a9daf
GM
67052001-01-02 Gerd Moellmann <gerd@gnu.org>
6706
6dde6abc 6707 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
6708 statements that call X. Save away the error message in a local copy.
6709
1883b2c6
GM
6710 * xterm.c (x_connection_closed): Set handling_signal to 0 at
6711 the start.
6712
a13be207
GM
6713 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
6714 in or at the start of invisible text.
6715
1a8a9daf
GM
6716 * dispnew.c (update_window): Don't check_current_matrix_flags.
6717
3608c0f9
JR
67182001-01-01 Jason Rumney <jasonr@gnu.org>
6719
6720 * w32fns.c (x_figure_window_size): Do not allow new_height and
6721 new_width of frame to override specified values.
6722
abb1acc4
KH
67232000-12-30 Kenichi Handa <handa@etl.go.jp>
6724
52283633 6725 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 6726
762a68ec
GM
67272000-12-29 Gerd Moellmann <gerd@gnu.org>
6728
52283633 6729 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
6730 (update_window) [GLYPH_DEBUG]: Call it.
6731 (scrolling_window): Prevent including current rows which are below
6732 what's displayed in the window.
6733
6734 * xdisp.c (try_window_reusing_current_matrix)
6735 <new start <= old start>: Disable rows in the current matrix
6736 which are below the window after scrolling.
52283633 6737
762a68ec
GM
6738 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
6739 is zero. It's not worth the complexity.
6740 (invisible_text_between_p): Put in #if 0 because unused.
6741
2d5912c1
GM
67422000-12-28 Gerd Moellmann <gerd@gnu.org>
6743
46f6a258
GM
6744 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
6745 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
6746
89f93679
GM
6747 * keyboard.c (echo_char): If C is an integer, always call
6748 push_key_description. Former code could signal an invalid
6749 character error.
6750
6751 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
6752 If set, print multibyte text.
6753 (Fsingle_key_description): Call push_key_description with
6754 FORCE_MULTIBYTE set.
6755 (describe_buffer_bindings): Likewise.
6756
6757 * lisp.h (push_key_description): Add prototype.
6758
c06017fb
GM
6759 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
6760 around the call to redisplay_internal.
6761
f1d2ce7f
GM
6762 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6763
2d5912c1
GM
6764 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6765
9371f831
KH
67662000-12-28 Kenichi Handa <handa@etl.go.jp>
6767
6768 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
6769 (ccl_driver): New local variable `extra_bytes'.
6770
6771 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
6772
52283633
SM
6773 * coding.c (setup_coding_system):
6774 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
6775 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
6776
0c80628a
KH
67772000-12-28 Kenichi Handa <handa@etl.go.jp>
6778
6779 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
6780 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
6781 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
6782 (decode_composition_emacs_mule): New function.
6783 (decode_coding_emacs_mule): Decode composition sequence by calling
6784 decode_composition_emacs_mule.
6785 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
6786 (encode_coding_emacs_mule): Changed from macro to function.
6787 If a text contains compositions, encode them correctly.
0c80628a
KH
6788 (setup_coding_system): Set coding->commong_flags for emacs-mule so
6789 that decoding and encoding are required.
6790
3e32cc27
GM
67912000-12-27 Gerd Moellmann <gerd@gnu.org>
6792
5e25feee
GM
6793 * xfaces.c (PT_PER_INCH): New macro.
6794 (xlfd_point_size): Compute real point size from font's pixel size.
6795 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
6796 instead of 72.
6797
892d8fcd
GM
6798 * .gdbinit: Comment out the line pointing to the Lesstif source
6799 directory.
6800
12c8b416
GM
6801 * window.c (Frecenter): Use displayed_window_lines instead
6802 of window_internal_height.
6803
6061fbf0
GM
6804 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6805 instead of x-toolkit-scroll-bars-p.
6806 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6807
6808 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6809 instead of x-toolkit-scroll-bars-p.
6810 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 6811
3e32cc27
GM
6812 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
6813 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
6814 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
6815 New variables.
6816 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
6817 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
6818 (build_frame_matrix_from_leaf_window): Remove unused code.
6819 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
6820 redisplay history.
6821 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
6822 (update_window) [GLYPH_DEBUG]: Likewise.
6823 (syms_of_display): Defsubr dump-redisplay-history.
6824
31798cfe
GM
68252000-12-23 Gerd Moellmann <gerd@gnu.org>
6826
f717c2ba
GM
6827 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
6828 the end of the prompt. Set echo_after_prompt to the offset
6829 of echoptr in echobuf.
6830
aeb2b8fc
GM
6831 * xdisp.c (init_from_display_pos): Pop until the iterator's
6832 stack is empty; there may be frames for stretch or images
6833 on the stack.
6834
31798cfe
GM
6835 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
6836 (save_or_restore_current_matrix): New function for the same
6837 purpose, but more efficient.
6838 (adjust_frame_glyphs_for_frame_redisplay): Use it.
6839
f8156156
EZ
68402000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
6841
6842 * xdisp.c (syms_of_xdisp): Fix last change.
6843
bdd6d4e8
GM
68442000-12-23 Gerd Moellmann <gerd@gnu.org>
6845
6846 * xdisp.c (syms_of_xdisp): Doc fix.
6847
6848 * xdisp.c (redisplay_window): Remove label restore_buffers;
6849 use finish_scroll_bars instead to make sure that scroll bars
6850 are redeemed. If we don't do this, flickering can result from
6851 scroll bars being destroyed and recreated.
6852
9436cdf9
JR
68532000-12-22 Jason Rumney <jasonr@gnu.org>
6854
6855 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
6856 in the wrong colors when the foreground is not black.
6857 (expose_window): Don't redraw the window that's currently being
6858 updated.
6859
951f9df5
GM
68602000-12-22 Gerd Moellmann <gerd@gnu.org>
6861
856ff7a7
GM
6862 * window.c (size_window): When setting the window's too_small_ok
6863 flag, compare old size with minimum size depending on WIDTH_P,
6864 don't compare with window_min_width.
52283633 6865
951f9df5
GM
6866 * window.c (delete_window): Simplify somewhat.
6867 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
6868 freeing window matrices. The flag windows_or_buffers_changed is
6869 set, so the next redisplay will consider all windows; this should
6870 suffice.
6871
886bc933
KH
68722000-12-22 Kenichi Handa <handa@etl.go.jp>
6873
6874 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
6875
6876 * ccl.h (struct ccl_program): New member cr_consumed.
6877
6878 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
6879 (CCL_READ_CHAR): Handle EOL conversion here.
6880 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
6881
177f4e88
GM
68822000-12-21 Gerd Moellmann <gerd@gnu.org>
6883
52283633 6884 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
6885
6886 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
6887 otherwise tabs of different size compare equal.
6888
6889 * callint.c (Fcall_interactively): Prevent a compiler warning.
6890
6891 * print.c (print_unwind): Return nil.
6892 (PRINTDECLARE): Initialize all local variables.
6893 (print_preprocess): Add a default case.
6894
8e15274f
GM
6895 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
6896
6897 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
6898
52283633 6899 * window.c (delete_window, Fsplit_window)
177f4e88
GM
6900 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
6901
6902 * dispextern.h (ensure_frame_matrix): Function declaration removed.
6903
6904 * dispnew.c (ensure_frame_matrix): Removed.
6905 (save_frame_matrix, restore_frame_matrix): New functions.
6906 (adjust_frame_glyphs_for_frame_redisplay): Use them.
6907
6908 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
6909 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
6910
99012074
AI
69112000-12-21 Andrew Innes <andrewi@gnu.org>
6912
6913 * w32term.c (x_update_begin): Regenerate the palette here, rather
6914 than for each window.
6915
6916 * w32xfns.c (select_palette): Avoid calling SelectPalette if
6917 palette is NULL, since this corrupts memory! Also get
6918 display_info reference from frame.
6919
29ef7d2d
JR
69202000-12-21 Jason Rumney <jasonr@gnu.org>
6921
6922 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
6923
6924 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
6925 to avoid returning without releasing it.
3e27fa1f 6926
3f9d67a6
KH
69272000-12-21 Kenichi Handa <handa@etl.go.jp>
6928
587fc3f9
KH
6929 * keymap.c (push_key_description): Don't convert eight-bit-control
6930 and eight-bit-graphic to multibyte character.
6931
3f9d67a6
KH
6932 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
6933 generic character and CODE1 is nil, return the smallest character
6934 in CHARSET.
6935
774ba8c9
DL
69362000-12-20 Dave Love <fx@gnu.org>
6937
6938 * s/osf5-0.h (NSIG): Don't redefine.
6939
88416888
SM
69402000-12-20 Stefan Monnier <monnier@cs.yale.edu>
6941
6942 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
6943 excluding menu-bar and tool-bar.
6944 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
6945 (menu_item_p): Remove.
6946 (where_is_internal_1): Don't ignore menu-items.
6947
a6426c6f
GM
69482000-12-20 Gerd Moellmann <gerd@gnu.org>
6949
03ff8aab
GM
6950 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
6951 into account.
6952
6953 * window.c (make_window): Initialize window's min_hscroll.
6954 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
6955 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
6956 to zero.
6957 (struct saved_window): New member min_hscroll.
6958 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
6959 (Fset_window_configuration): Set window's min_hscroll.
6960 (save_window_save): Save window's min_hscroll.
6961 (compare_window_configurations): Compare min_hscroll values.
6962
6963 * window.h (struct window): New member min_hscroll.
6964
6965 * keyboard.c (echo_prompt): Prevent a compiler warning.
6966
8de4aaf8
GM
6967 * xdisp.c (try_cursor_movement): Fix last change. The real
6968 condition is that PT is at the end of the row, and should
6969 be displayed at the start of the next row.
52283633 6970
3f7e3031
GM
6971 * xdisp.c (try_cursor_movement): If we end on a partially
6972 visible line, end we already decided to scroll, return -1.
6973
a6426c6f
GM
6974 * dispextern.h (ensure_frame_matrix): Add prototype.
6975
6976 * window.c (delete_window, Fsplit_window)
6977 (Fset_window_configuration): Call ensure_frame_matrix.
6978
52283633
SM
6979 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
6980 New functions.
a6426c6f
GM
6981 (adjust_frame_glyphs_for_frame_redisplay): If display has been
6982 completed, call fake_current_matrices instead of marking frame
6983 garbaged.
6984
57fa2774
JR
69852000-12-20 Jason Rumney <jasonr@gnu.org>
6986
6987 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
6988
d925df90
EZ
69892000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
6990
6991 * fns.c (Frequire): Doc fix.
6992
7b93a85b
GM
69932000-12-19 Gerd Moellmann <gerd@gnu.org>
6994
52283633 6995 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 6996
c74e645b
GM
6997 * dispnew.c (direct_output_for_insert): Fix check for mini-window
6998 currently displaying a message.
6999
7b93a85b
GM
7000 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
7001 xterm.h.
7002 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
7003
90d97e64
AI
70042000-12-18 Andrew Innes <andrewi@gnu.org>
7005
7006 * w32.c (w32_strerror): New function.
7007
7008 * w32.h (w32_strerror): New extern.
7009
7010 * w32fns.c (Fw32_shell_execute): Use it.
7011
91c9e6ce
GM
70122000-12-18 Gerd Moellmann <gerd@gnu.org>
7013
7014 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
7015
6f4745e2
EZ
70162000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7017
7018 * msdos.c (IT_set_face): Obey inverse_video.
7019
c9e088ce
KH
70202000-12-18 Kenichi Handa <handa@etl.go.jp>
7021
7022 * dired.c (directory_files_internal): Always return decoded filenames.
7023
c3695f5f
GM
70242000-12-18 Gerd Moellmann <gerd@gnu.org>
7025
52d8e4ff
GM
7026 * xterm.c (x_connection_closed): Prevent being called recursively
7027 because of an error condition in XtCloseDisplay.
52283633 7028
62be9979
GM
7029 * xdisp.c (init_iterator): If noninteractive, and the frame's
7030 face cache is null, make one.
7031
52283633 7032 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 7033
c3695f5f
GM
7034 * process.c (wait_reading_process_input): Check for pending
7035 input when running timers.
7036
78555fbe
EZ
70372000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7038
52283633 7039 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 7040
b2b36264
KH
70412000-12-18 Kenichi Handa <handa@etl.go.jp>
7042
7043 * process.c (read_process_output): Don't run a filter if the code
7044 decoder produces nothing but carryover.
7045
9c543fbf
AI
70462000-12-17 Andrew Innes <andrewi@gnu.org>
7047
7048 * w32.c (sys_rename): Only check errno against EEXIST, and not
7049 EACCES, when determining whether rename failed because the target
7050 exists. This was resulting in indefinite looping on Windows 9x if
7051 the source file was locked by another process.
7052
7053 * w32fns.c (Ffile_system_info): New function.
7054 (syms_of_w32fns): Defsubr it.
7055
10c2b5a8
GM
70562000-12-17 Gerd Moellmann <gerd@gnu.org>
7057
b0228ace
GM
7058 * window.c (coordinates_in_window): Fix computation for
7059 position on vertical line between mode lines.
7060
10c2b5a8
GM
7061 * xfns.c (unwind_create_frame): Return t if frame was deleted.
7062 Don't alter tip_frame or tip_window.
7063 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7064 was deleted.
7065
c844a81a
GM
7066 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
7067 Don't alter tip_frame or tip_window.
7068 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7069 was deleted.
7070
6c825f8e
EZ
70712000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
7072
7073 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
7074 be consistent with the doc string. Reported by NAKAJIMA Mikio
7075 <minakaji@osaka.email.ne.jp>.
7076
af4bb4c8
KH
70772000-12-16 Kenichi Handa <handa@etl.go.jp>
7078
7079 * xfaces.c (Vface_ignored_fonts): New variable.
7080 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
7081 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
7082
8062e53a
GM
70832000-12-15 Gerd Moellmann <gerd@gnu.org>
7084
e87b8809
GM
7085 * dispnew.c (update_window): Detect pending input every nth line
7086 updated, i.e. do it depending on real work done, and not on the
7087 vpos of the line.
7088
7089 * xterm.c (expose_window): Don't redraw the window that's
7090 currently being updated.
7091
a6768cc5
GM
7092 * window.c (Fset_window_point): Remove test for
7093 cursor_in_non_selected_windows.
7094
4ea7fdca
GM
7095 * lread.c (read1): Recognize end of file after `\\'.
7096
8062e53a
GM
7097 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
7098 not unwind_create_frame.
7099
bb7959c1
GM
71002000-12-15 Dave Love <fx@gnu.org>
7101
7102 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
7103 bcopy & al.
7104
7105 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
7106
ced04c42
KH
71072000-12-15 Kenichi Handa <handa@etl.go.jp>
7108
c5443913
KH
7109 * coding.c (setup_coding_system): Clear all members of the struct
7110 coding_system at first.
bc137305
KH
7111 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
7112 argument.
7113 (code_convert_region): Don't override coding->src_multibyte and
7114 coding->dst_multibyte.
c5443913 7115
ced04c42
KH
7116 * fns.c (Fmd5): Docstring improved.
7117
c2d7f289
MB
71182000-12-15 Miles Bader <miles@gnu.org>
7119
7120 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
7121 are actually marked as mode-lines; otherwise use
7122 estimate_mode_line_height.
7123
9d7d9263
GM
71242000-12-14 Gerd Moellmann <gerd@gnu.org>
7125
7126 * editfns.c (Fformat): Prevent a buffer overrun when the format
7127 specifies a precision.
7128
7cf0153a
EZ
71292000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
7130
7131 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
7132 argument is outside the range [2..3].
7133
1de0f662
AI
71342000-12-14 Andrew Innes <andrewi@gnu.org>
7135
7136 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
7137 nothing to do. Bind inhibit-quit.
7138 (tip_frame): Make it a Lisp_Object.
7139 (x_create_tip_frame): Set tip_frame after it has been added to
7140 Vframe_list.
7141 (Fx_show_tip): Don't set tip_frame here.
52283633 7142 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
7143 (unwind_create_frame, unwind_create_tip_frame): New functions.
7144 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7145 while a frame is only partially constructed.
7146
7147 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7148 (x_free_frame_resources): New function.
7149 (x_destroy_window): Use it.
7150
02387dcc
GM
71512000-12-14 Gerd Moellmann <gerd@gnu.org>
7152
7153 * xfns.c (Fx_backspace_delete_keys_p): New function.
7154 (syms_of_xfns): Defsubr it.
7155
7156 * config.in (HAVE_XKBGETKEYBOARD): Add.
7157
0544ef49
KH
71582000-12-14 Kenichi Handa <handa@etl.go.jp>
7159
98d62747
KH
7160 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
7161 Always store string in multibyte representation in echobuf.
7162 (echo_char): Always store string in multibyte representation in
7163 echobuf.
7164 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
7165 (read_key_sequence): Adjusted for the change of echo_prompt.
7166
a20193cd
KH
7167 * fns.c (Fmd5): Docstring improved.
7168
191b83b6
KH
7169 * lisp.h (detect_coding_system): Prototype adjusted.
7170
0544ef49
KH
7171 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
7172 (detect_coding_emacs_mule, detect_coding_iso2022,)
7173 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
7174 (detect_coding_utf_16, detect_coding_ccl): Make them static.
7175 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
7176 (detect_coding_mask, detect_coding_system): New argument
7177 MULTIBYTEP. Callers changed.
1da1bb05
KH
7178 (decode_coding_string): Set coding->src_multibyte and
7179 coding->dst_multibyte before calling detect_coding and detect_eol.
7180 Update them after some coding system is detected.
52283633 7181
d5b3eb1b
SM
71822000-12-13 Stefan Monnier <monnier@cs.yale.edu>
7183
7184 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
7185
7186 * keyboard.c (menu_bar_items, tool_bar_items):
7187 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
7188
f7f8bb69
GM
71892000-12-13 Gerd Moellmann <gerd@gnu.org>
7190
52283633 7191 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
7192 New variables.
7193 (unwind_create_frame, unwind_create_tip_frame): New functions.
7194 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7195 while a frame is only partially constructed.
7196
7197 * xterm.h (x_free_frame_resources): Declare.
7198
7199 * xterm.c (x_free_frame_resources): New function.
7200 (x_destroy_window): Use it.
7201
e10da507
GM
7202 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
7203 don't interrupt the update for pending input initially, i.e.
7204 update at least some lines.
7205
7206 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 7207
d5b3eb1b 7208 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
7209
7210 * xfns.c (gray_bitmap_bits): Declare `char *'.
7211
90aa2856
GM
72122000-12-12 Gerd Moellmann <gerd@gnu.org>
7213
7214 * xdisp.c (display_tool_bar_line): Make sure that tool bar
7215 lines start with a relief line.
7216
a308c9cd
DL
72172000-12-12 Dave Love <fx@gnu.org>
7218
7219 * window.c (Fdisplay_buffer): Doc fix.
7220 (Fwindow_list): Remove unused var.
7221
7222 * buffer.h (mmap_set_vars): Declare.
7223
7224 * window.h (Fset_window_point): Declare.
7225
d575011f
EZ
72262000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
7227
bf6282d2 7228 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
7229 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
7230 variable `area'. When looking for a row under (X,Y), give up if some
7231 of the previous rows is not enabled.
d575011f 7232
ecf4d726
GM
72332000-12-12 Gerd Moellmann <gerd@gnu.org>
7234
2ebf6139
GM
7235 * window.c (Fset_window_point): If displaying cursors in windows
7236 other than the selected window, make sure redisplay updates
7237 other windows to show the new value of point in the window.
7238
7239 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
7240
bfdb75ee
GM
7241 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
7242 the buffer is the sole visible buffer when in the mini-buffer.
7243
52283633 7244 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
7245 Bind `inhibit-read-only' to t.
7246 (unwind_with_echo_area_buffer): Use AREF.
7247
c0006262
GM
7248 * xfns.c (Fx_hide_tip): Simplified.
7249
52283633
SM
7250 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
7251 instead of `1'.
e9a59cad 7252
ecf4d726
GM
7253 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
7254
e5959a9a
GM
72552000-12-11 Gerd Moellmann <gerd@gnu.org>
7256
a3642e49 7257 * xfns.c (Fx_hide_tip): Fix last change.
52283633 7258
44b5a125
GM
7259 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
7260 nothing to do. Bind inhibit-quit.
7261 (tip_frame): Make it a Lisp_Object.
7262 (x_create_tip_frame): Set tip_frame after it has been added to
7263 Vframe_list.
7264 (Fx_show_tip): Don't set tip_frame here.
7265
7266 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7267
7268 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
7269 Lisp_Object.
7270
7271 * dispextern.h: Change external declaration of tip_frame.
7272
d990421f
GM
7273 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
7274 return an empty string.
7275
4db87380
GM
7276 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
7277 of the window's update_mode_line flag, since the former is set by
7278 force-mode-line-update, not the latter. This makes
7279 column-number-mode slightly faster.
52283633 7280
e5959a9a
GM
7281 * xdisp.c (try_window_id) <all changes above window start>:
7282 Set the cursor.
7283
169fe44e
GM
72842000-12-11 Paul Eggert <eggert@twinsun.com>
7285
7286 * config.in (HAVE_FTELLO): Remove.
7287 (HAVE_FSEEKO): Add.
7288 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
7289 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
7290 HAVE_FTELLO.
7291 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
7292 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 7293
59ec59ae
MB
72942000-12-11 Miles Bader <miles@gnu.org>
7295
7296 * window.c (displayed_window_lines): Don't round up when
7297 converting empty space at bottom to lines.
ff904dd6
MB
7298 Handle non-newline-terminated final lines properly.
7299 (Fwindow_text_height): New function (used to be in lisp).
7300 (syms_of_window): Initialize it.
59ec59ae 7301
42ebfa31
SM
73022000-12-09 Stefan Monnier <monnier@cs.yale.edu>
7303
7304 * syntax.c (scan_lists): Check that the right quote char has the
7305 right Sstring syntax when jumping over strings.
7306 (init_syntax_once): Use Smax rather than 13.
7307
5cdb3cf3
MB
73082000-12-09 Miles Bader <miles@gnu.org>
7309
7310 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
7311 with PARTIALLY, inverting the sense.
7312 (window_scroll_pixel_based): Scroll partially visible lines into
7313 place if we hit the beginning or end of the buffer.
a12167c5
MB
7314 (displayed_window_lines): Don't include partially visible lines.
7315 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 7316
842b2a94
GM
73172000-12-08 Gerd Moellmann <gerd@gnu.org>
7318
7319 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
7320
7321 * tparam.c (tparam1): Change the way buffers are reallocated to be
7322 portable and less obfuscated.
7323
7324 * termcap.c (tgetent): Change the way buffers are reallocated to
7325 be portable and less obfuscated.
7326
7327 * macros.c (store_kbd_macro_char): Change the way buffers are
7328 reallocated to be portable and less obfuscated.
7329
7330 * lread.c (read1): Change the way buffers are reallocated to be
7331 portable and less obfuscated.
7332
7333 * doc.c (Fsubstitute_command_keys): Change the way buffers
7334 are reallocated so that it is portable.
7335
137cad7c
EZ
73362000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
7337
7338 * dosfns.c (Ffile_system_info): New function.
7339 (syms_of_dosfns): Defsubr it.
7340
5c7f629c
SM
73412000-12-07 Stefan Monnier <monnier@cs.yale.edu>
7342
7343 * alloc.c (gc_sweep): Add comment.
7344
959e647d
GM
73452000-12-07 Gerd Moellmann <gerd@gnu.org>
7346
52283633
SM
7347 * sound.c (vox_configure): Change order of ioctls.
7348 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
7349 Ignore errors when changing volume.
7350 (vox_close): Don't reset the device.
7351
926b7e5e
GM
7352 * process.c (read_process_output): Make sure the process marker's
7353 position is valid when the process buffer is changed in
7354 after-change functions. W3 does that.
52283633 7355
959e647d
GM
7356 * xfns.c (x_free_gcs): New function.
7357
7358 * xterm.h (x_free_gcs): Add prototype.
7359
7360 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
7361 freeing GCs here.
7362
7363 * xterm.c (x_destroy_window): Call x_free_gcs so that
7364 resources of non-toolkit X windows will be freed.
7365
478ea067
AI
73662000-12-07 Andrew Innes <andrewi@gnu.org>
7367
7368 * w32fns.c (xlfd_charset_of_font): Fix last change.
7369
fbee3231
DL
73702000-12-06 Dave Love <fx@gnu.org>
7371
67292061
DL
7372 * md5.h (__P): Don't define -- it comes from config.h.
7373
fbee3231
DL
7374 * strftime.c: Change some #if foo to #ifdef foo.
7375
4ee87dbb
AI
73762000-12-06 Andrew Innes <andrewi@gnu.org>
7377
7378 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
7379
52283633 7380 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 7381 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 7382 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 7383
9765b4a4
GM
73842000-12-06 Gerd Moellmann <gerd@gnu.org>
7385
d285b373
GM
7386 * alloc.c (gc_sweep): Prevent symbols read during loadup
7387 from being freed.
7388
384333ee
GM
7389 * xdisp.c (underlying_face_id): New function.
7390 (handle_face_prop, face_before_or_after_it_pos): Use it
7391 to determine the face ``under'' a string. Let strings inherit
7392 the face of the buffer under them.
7393
7394 * xfaces.c (face_at_string_position): Update function comment.
52283633 7395
d4b72d58
GM
7396 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
7397 matrix if the window's left position has changed; we need to
7398 redraw it in this case.
7399
7400 * dispextern.h (struct glyph_matrix): Add member window_left_x.
7401
e1d05387
GM
7402 * window.c (coordinates_in_window): Check mouse on mode-line or
7403 header-line first.
7404
eb1b0c74
GM
7405 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
7406 advertized by the function documentation.
7407
d94d636f
GM
7408 * window.c (syms_of_window): Doc fix.
7409
3887b449
GM
7410 * sound.c (vox_configure): Set volume for left and right channel.
7411 (sound_cleanup): Return nil.
7412
efc8f57a
GM
7413 * xdisp.c (move_it_by_lines): Fix paren typo.
7414
9765b4a4
GM
7415 * xterm.c (x_load_font): Don't use the font's max_bounds for
7416 computing the height of the font. If max_bounds' ascent or
7417 descent are greater than the font's ascent or descent, this means
7418 glyphs overlap, which should be handled now by redisplay.
7419
6529ed87
GM
7420 * window.c (Veven_window_heights): New variable.
7421 (syms_of_window): DEFVAR_LISP it.
7422 (Fdisplay_buffer): Check Veven_window_heights before evening the
7423 window heights.
52283633 7424
0eb2ecde
MB
74252000-12-06 Miles Bader <miles@gnu.org>
7426
7427 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
7428 update `default-frame-alist' instead of setting no frame parameters.
7429
03d7a167
KH
74302000-12-06 Kenichi Handa <handa@etl.go.jp>
7431
7432 * composite.c (update_compositions): Fix typo (use the correct
7433 variable).
7434
5f8803c2
JR
74352000-12-05 Jason Rumney <jasonr@gnu.org>
7436
7437 * md5.h: Remove underscores from function declarations.
7438 (__attribute__, __alignof__) [!__GNUC__]: Define.
7439
7440 * md5.c: Delay include of md5.h until after namespace cleaning.
7441
c28a075b
JR
7442 * makefile.w32-in (fns.o): Depend on md5.h
7443 (md5.o): New target.
7444 (sunfns.o): Remove.
7445
7446 * makefile.nt: Likewise.
7447
ff3c7056
JR
74482000-12-05 Jason Rumney <jasonr@altavista.net>
7449
7450 * w32term.c (expose_area): Complete last change.
7451
0c21eeeb
KR
74522000-12-05 Ken Raeburn <raeburn@gnu.org>
7453
7454 * minibuf.c: Include intervals.h.
7455
f201d732
JR
74562000-12-05 Jason Rumney <jasonr@gnu.org>
7457
7458 * w32term.c (x_produce_glyphs): If a font for a component of
7459 a composition is not found, use 1 pixel dot ascent and 0 dot
7460 descent value to avoid displaying terribly tall empty boxes.
7461 (expose_area): Pass x-coordinate relative to the exposed
7462 area to x_draw_glyphs instead of a window-relative coordinate.
7463
21999ab9
GM
74642000-12-05 Gerd Moellmann <gerd@gnu.org>
7465
4d2036e4
GM
7466 * xdisp.c (next_element_from_ellipsis): Save face before selective
7467 display in saved_face_id, and set face_before_selective_p.
7468 (reseat_1): Reset face_before_selective_p.
7469 (append_space, extend_face_to_end_of_line): If iterator's
7470 face_before_selective_p is set, use the face from saved_face_id.
7471 (extend_face_to_end_of_line): For tty frames, make sure to
7472 use the right face id when producing spaces at the end of
7473 the line.
7474
7475 * dispextern.h (struct it): Add face_before_selective_p.
7476
52be17cc
GM
7477 * keyboard.c (record_char): Don't record identical help-echo
7478 events in recent_keys.
7479
8a4f36cc
GM
7480 * xterm.c [USE_X_TOOLKIT]: Close the display.
7481 (xim_close_dpy): Handle case that the display has been closed.
7482
57d6e381
GM
7483 * xterm.c (x_destroy_window): Reset the frame's X window after
7484 destroying it.
7485
21999ab9
GM
7486 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
7487 variable window_width.
7488 (line_draw_cost): Fix code skipping over spaces at the end of the
7489 line when must_write_spaces is not set.
7490 (scrolling_window): Fix code inserting runs in list of all runs.
7491
91372bb7
KH
74922000-12-05 Kenichi Handa <handa@etl.go.jp>
7493
7494 * coding.c (setup_coding_system): Be sure to initialize
7495 coding->category_idx.
7496
6c083b4c
GM
74972000-12-04 Gerd Moellmann <gerd@gnu.org>
7498
0c68ce6f 7499 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 7500
6452929e
GM
7501 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
7502 area to x_draw_glyphs instead of a window-relative coordinate.
7503
d7f31e22
GM
7504 * fileio.c (auto_save_error): Add parameter ERROR. Show the
7505 error in the message.
7506
ae18aa3b
GM
7507 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
7508 timer after having read a key. It's not good for code reading
7509 several keys in a loop, like an input method.
7510
caa15ef7
GM
7511 * fileio.c (Finsert_file_contents): When VISIT is t, don't
7512 record undo information for format-decode.
7513
7514 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
7515 current buffer is read-only, not if it isn't.
7516
6c083b4c
GM
7517 * keyboard.c (record_char): Record `help-echo' input events
7518 in recent_keys only if they display some help. Don't record
7519 `help-echo' events as macro char.
7520
caa15ef7
GM
75212000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
7522
7523 * editfns.c (save_excursion_restore): Don't move point
7524 in another window if it is showing the wrong buffer.
7525 Avoid the call to Fwindow_live_p, for speed.
7526
5a13529b
KH
75272000-12-04 Kenichi Handa <handa@etl.go.jp>
7528
e225faa7
KH
7529 * xfaces.c (struct font_name): New member registry_priority.
7530 (split_font_name): Initialize the above member to zero.
7531 (concat_font_list): New function.
7532 (font_list): Include fonts of all alternative registries.
7533 (FONT_POINT_SIZE_QUANTUM): New macro.
7534 (better_font_p): Ignore point size difference less than
7535 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
7536
e89648b4
KH
7537 * xterm.c (x_produce_glyphs): If a font for a component of
7538 a composition is not found, use 1 pixel dot ascent and 0 dot
7539 descent value to avoid displaying terribly tall empty boxes.
7540
5a13529b
KH
7541 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
7542
d7935eb6
KR
75432000-12-03 Ken Raeburn <raeburn@gnu.org>
7544
7545 * coding.h (code_convert_string1): Declare.
7546
7547 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
7548
52283633 7549 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 7550
0dd5e255
JR
75512000-12-02 Jason Rumney <jasonr@gnu.org>
7552
7553 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
7554 correctly for single byte character case.
7555 (w32_per_char_metric): Do not try to make any assumptions about
7556 the metrics of BDF fonts.
250cfece 7557 (x_estimate_mode_line_height): If `mode-line' face
52283633 7558 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
7559 (note_mouse_highlight): Change the cursor shape on the vertical
7560 border between windows [not enabled].
7561
7562 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
7563
7564 * w32fns.c (Fx_create_frame): Reintroduce the call to
7565 face-set-after-frame-defaults.
7566 (Vx_window_horizontal_drag_shape): New variable.
7567 (syms_of_xfns): DEFVAR_LISP it.
7568 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
7569 enabled].
0dd5e255 7570
b5d8d2ca
GM
75712000-12-02 Simon Josefsson <simon@josefsson.org>
7572
7573 * fns.c (Fmd5): Use a different logic to decide the coding system
7574 to use.
7575
7576 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
7577
fbb87147
EZ
75782000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
7579
52283633 7580 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 7581
447e9da0
GM
75822000-12-01 Gerd Moellmann <gerd@gnu.org>
7583
7708ced0
GM
7584 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
7585 height for YNegative.
7586 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
7587 height; also see comment there.
7588
447e9da0
GM
7589 * window.c (coordinates_in_window): Handle computations for
7590 positions on the vertical bar and fringes differently for
7591 window-system frames. Consider some pixels near the vertical bar
7592 as on the bar if the frame doesn't have vertical scroll bars.
7593 Associate positions between mode or header lines with the
7594 right window, the left one.
7595
86d1db20
JR
75962000-12-01 Jason Rumney <jasonr@gnu.org>
7597
7598 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
7599
7600 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
7601 invalid frame.
7602
a1d58e5b
GM
76032000-12-01 Gerd Moellmann <gerd@gnu.org>
7604
52283633 7605 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
7606 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
7607 (save_window_save, Fset_window_configuration): Save/restore
7608 window's orig_top and orig_height.
7609
89c609af
JR
76102000-12-01 Jason Rumney <jasonr@gnu.org>
7611
4d177746 7612 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 7613
89c609af
JR
7614 * w32fns.c (x_set_cursor_color): Fix last change.
7615
eccc05db
GM
76162000-11-30 Gerd Moellmann <gerd@gnu.org>
7617
31b6671b
GM
7618 * xdisp.c (echo_area_display): If cursor is in the echo area, make
7619 sure that the next redisplay displays the minibuffer, so that
7620 the cursor will be replaced with what the minibuffer wants.
7621
eccc05db
GM
7622 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
7623 #ifndef instead of using #if.
7624 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
7625 USE_TOOLKIT_SCROLL_BARS is defined.
7626
162de750
JR
76272000-11-30 Jason Rumney <jasonr@gnu.org>
7628
7629 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
7630 x_display_cursor.
7631
693c4692
GM
76322000-11-30 Gerd Moellmann <gerd@gnu.org>
7633
7634 * fns.c (Fmd5): Doc fix.
7635
b5d8d2ca 76362000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
7637
7638 * fns.c (Fmd5): New function.
7639 (syms_of_fns): Defsubr md5.
7640
7641 * Makefile.in (obj): Add md5.o
7642
b02cd40b
GM
76432000-11-30 Gerd Moellmann <gerd@gnu.org>
7644
edfb795e
GM
7645 * md5.h, md5.c: New files, taken from glibc.
7646
df3aedcf
GM
7647 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
7648
b02cd40b 7649 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 7650 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 7651
8b5176cd
SM
76522000-11-29 Stefan Monnier <monnier@cs.yale.edu>
7653
7654 * eval.c (Frun_hooks): Allow 0 arguments.
7655
346598f1
GM
76562000-11-29 Gerd Moellmann <gerd@gnu.org>
7657
f9396e03
GM
7658 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
7659 is over the menu bar widget, say it's not on the frame.
7660
4a967a9b
GM
7661 * xfns.c (Fx_create_frame): Reintroduce the call to
7662 face-set-after-frame-defaults.
7663
346598f1
GM
7664 * eval.c (Fsignal): Reset handling_signal.
7665
222456a1
JR
76662000-11-28 Jason Rumney <jasonr@gnu.org>
7667
7668 * w32menu.c (add_menu_item): Reset menu item text when changing
7669 type to radio button.
7670
8049ddc0
GM
76712000-11-28 Gerd Moellmann <gerd@gnu.org>
7672
346598f1 7673 * xselect.c: Update copyright.
f4f4ee4d 7674
bebe4a2c
GM
7675 * window.c (coordinates_in_window): If on a mode or header line,
7676 but sufficiently close to its start, return ``on vertical
7677 border''. This gives us a way to drag windows horizontally when
7678 using toolkit scroll bars.
7679
7680 * xterm.c (note_mouse_highlight): Change the cursor shape
7681 on the vertical border between windows.
7682
7683 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
7684
7685 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
7686 (syms_of_xfns): DEFVAR_LISP it.
7687 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
7688
8d2c2642
GM
7689 * textprop.c (text_read_only): New function.
7690 (verify_interval_modification): Use it instead of signaling
7691 `text-read-only'. This makes it easier to catch this error
52283633 7692 with a breakpoint.:
8d2c2642 7693
52283633 7694 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
7695 not end of line, which includes CR.
7696
5a2bae6c
KH
76972000-11-28 Kenichi Handa <handa@etl.go.jp>
7698
7699 * coding.c (Ffind_coding_systems_region_internal): Be sure to
7700 include no-conversion.
7701
ae31f84d
JR
77022000-11-27 Jason Rumney <jasonr@gnu.org>
7703
7704 * w32fns.c (w32_load_system_font): Always mark font as double byte
7705 if codepage is unicode.
7706
67f1cf4c
GM
77072000-11-27 Gerd Moellmann <gerd@gnu.org>
7708
4a74d071 7709 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 7710 just consume it to avoid unintended skipping over invisible text below.
4a74d071 7711
902ae620
GM
7712 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
7713 `vertical-line', `mode-line' and `header-line' events.
7714
7715 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
7716 of a character, a TAB for instance. This is easier than to set
7717 up the iterator exactly, and it's not a frequent case, so the
7718 additional effort wouldn't really pay off.
7719
c1e279c2
AC
77202000-11-26 Andrew Choi <akochoi@i-cable.com>
7721
67f1cf4c 7722 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
7723 init_window_once.
7724
a609568a
JR
77252000-11-25 Jason Rumney <jasonr@gnu.org>
7726
52283633
SM
7727 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
7728 Args to window_from_coordinates should be pixel coordinates.
48b21762 7729
a609568a
JR
7730 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
7731 redisplay handles them properly.
7732
a658d039
MB
77332000-11-25 Miles Bader <miles@gnu.org>
7734
7735 * indent.c (compute_motion): Keep pos_byte in sync with pos.
7736
d3416cca
JR
77372000-11-24 Jason Rumney <jasonr@gnu.org>
7738
7739 * w32.c (init_environment): Set LANG environment variable based on
7740 locale settings, if not set.
7741
7742 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
7743 making tool bar smaller. When clearing the frame, also
7744 clear current matrices. Clear frame when tool bar disappears.
7745 Don't use more lines for the tool-bar than is available.
7746 (x_change_window_heights): New function.
7747
ba193890
GM
77482000-11-24 Gerd Moellmann <gerd@gnu.org>
7749
2be8f184
GM
7750 * xdisp.c (init_from_display_pos): If POS says we're already after
7751 an overlay string ending at POS, make sure to pop the iterator
7752 because it will be in front of that overlay string. When POS is
7753 ZV, we've thereby also ``processed'' overlay strings at ZV.
7754
ba193890
GM
7755 * xfaces.c (lface_from_face_name): Function comment fix.
7756
1862a24e
MB
77572000-11-24 Miles Bader <miles@gnu.org>
7758
7759 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
7760 apply `mode-line-inverse-video' -- zero means force display using
7761 the default face, non-zero means display using the specialized face.
7762 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
7763
f07fa1b8
KH
77642000-11-23 Kenichi Handa <handa@etl.go.jp>
7765
7766 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
7767 hard coded `4'.
7768
2bcdf662
EZ
77692000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
7770
7771 * coding.c (decode_coding_emacs_mule): Fix the case of
7772 CODING_EOL_LF, which used uninitialized value of c.
7773
ba8299ff
SM
77742000-11-23 Stefan Monnier <monnier@cs.yale.edu>
7775
7776 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
7777
f4117c4d
GM
77782000-11-22 Gerd Moellmann <gerd@gnu.org>
7779
03e757c1
GM
7780 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
7781 buffer object.
7782
f4117c4d
GM
7783 * frame.h (struct frame): Replace desired_tool_bar_items,
7784 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 7785 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
7786
7787 * frame.c (make_frame): Change initialization of tool bar
7788 items accordingly.
7789
7790 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 7791 Change references to members deleted from struct frame to use the
f4117c4d
GM
7792 new ones.
7793
7794 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 7795 references to members deleted from struct frame to use the new ones.
f4117c4d 7796
52283633 7797 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
7798
7799 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
7800
7801 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 7802 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
7803 from struct frame to use the new ones.
7804
f8e2f3f2
MB
78052000-11-23 Miles Bader <miles@gnu.org>
7806
7807 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
7808 the face's inverse-video attribute, rather than overriding it.
7809
60e8e0a5
GM
78102000-11-22 Gerd Moellmann <gerd@gnu.org>
7811
7812 * xfns.c (x_set_tool_bar_lines): Clear internal border when
7813 making tool bar smaller.
7814
92dd1b29
DL
78152000-11-22 Dave Love <fx@gnu.org>
7816
7817 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
7818
e672fdce
MB
78192000-11-22 Miles Bader <miles@gnu.org>
7820
3a17d6cc
MB
7821 * keyboard.c (Vminibuffer_message_timeout): New variable.
7822 (command_loop_1): Use it to determine message timeout.
7823 (syms_of_keyboard): Initialize it.
7824
60e8e0a5 7825 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 7826
e9655d81
KH
78272000-11-22 Kenichi Handa <handa@etl.go.jp>
7828
7829 * sysdep.c: Move the code for declaring h_errno after #include
7830 <netdb.h>.
7831
77270fac
GM
78322000-11-21 Gerd Moellmann <gerd@gnu.org>
7833
cd913aae
GM
7834 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
7835 the menu bar when the tooltip is unmapped.
7836
77270fac
GM
7837 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
7838 sole visible buffer when we're currently in the mini-buffer, and
7839 give up if so.
52283633 7840
556635d6
JR
78412000-11-21 Jason Rumney <jasonr@gnu.org>
7842
7843 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
7844 put on the clipboard.
7845 (Fw32_get_clipboard_data): Compare data on clipboard with saved
7846 copy of what Emacs last put there. If they are the same, do not
52283633 7847 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 7848
5b7bde64
MB
78492000-11-22 Miles Bader <miles@gnu.org>
7850
7851 * minibuf.c (Vminibuffer_prompt_properties): New variable.
7852 (syms_of_minibuf): Initialize it.
7853 (read_minibuf): Add properties from Vminibuffer_prompt_properties
7854 to prompt, don't make read-only.
7855
ff23e1dd
GM
78562000-11-21 Gerd Moellmann <gerd@gnu.org>
7857
52283633
SM
7858 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
7859 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 7860
7aaf4388
GM
7861 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
7862
f5f47add 7863 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 7864
ff23e1dd
GM
7865 * term.c, cm.c: Don't try to include termcap.h; see comment there.
7866
37c35586
KH
78672000-11-21 Kenichi Handa <handa@etl.go.jp>
7868
7869 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
7870 ... #endif scope.
7871
ff9ab414
GM
78722000-11-20 Gerd Moellmann <gerd@gnu.org>
7873
52283633 7874 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
7875 screen supports it.
7876
29a01b72
GM
7877 * s/gnu-linux.h: Don't use `#cpu'.
7878
09dfdf85
GM
7879 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
7880 not defined in mman.h.
7881
52283633 7882 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
7883 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
7884 and store an index in the XClientMessageEvent. Storing a
7885 Lisp_Object or pointer can fail on a 64 bit system, since X only
7886 transfers 32 bits.
52283633
SM
7887 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
7888
81459ac9
DL
78892000-11-20 Dave Love <fx@gnu.org>
7890
7891 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
7892
56c13ae6
GM
78932000-11-20 Gerd Moellmann <gerd@gnu.org>
7894
7895 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
7896
495a6df3
KH
78972000-11-20 Kenichi Handa <handa@etl.go.jp>
7898
2bcf3714
KH
7899 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
7900 by WIDTH.
7901
495a6df3
KH
7902 * alloc.c (make_string): Fix previous change. Be sure to make
7903 unibyte string correctly.
7904
6d950f4c
GM
79052000-11-19 Gerd Moellmann <gerd@gnu.org>
7906
39b39373
GM
7907 * window.c (Fwindow_list): Change parameter list to be XEmacs
7908 compatible.
7909 (window_list_1): New function.
7910 (window_loop): Use it instead of Fwindow_list.
7911
b95b34e5
GM
7912 * sysdep.c (emacs_ospeed): New variable.
7913 (toplevel): Don't declare ospeed extern.
7914 (init_baud_rate): Use emacs_ospeed instead of ospeed.
7915
7916 * termcap.c (ospeed): Remove.
7917 (tputs) [!emacs]: Remove unused code.
7918 (tgetent): Avoid a compiler warning.
7919
e83dc917
GM
7920 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
7921 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 7922 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
7923
7924 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
7925 removed.
7926 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
7927 Take the X display as additional argument.
7928 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
7929 `Widget' is a pointer type that's not easily stored in Lisp_Object
7930 form in a portable way.
52283633 7931
6d950f4c
GM
7932 * dispnew.c (update_text_area): Fix last change.
7933
e47306e6
GM
79342000-11-18 Gerd Moellmann <gerd@gnu.org>
7935
fb3cd89b
GM
7936 * xdisp.c: Use BINDING_STACK_SIZE throughout.
7937
7938 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
7939 clear current matrices.
7940
edaa9aed
GM
7941 * buffer.c (mmap_enlarge): Don't print a message on stderr
7942 if mapping new memory at the end of the existing region fails.
7943
e47306e6
GM
7944 * dispnew.c (update_text_area): Don't skip over equal glyphs
7945 when the last current glyph overlaps the glyph to its right.
7946
509633e3
MB
79472000-11-18 Miles Bader <miles@gnu.org>
7948
7949 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
7950 lines that *end* with "..." too (that's the most common case!).
7951
d392e9c5
GM
79522000-11-18 Gerd Moellmann <gerd@gnu.org>
7953
67988445
GM
7954 * xdisp.c (resize_mini_window): Temporarily change to the
7955 mini-window's buffer if necessary.
1bfdbe43 7956
d392e9c5
GM
7957 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
7958 the tooltip obscures less text under it.
7959
79602000-11-17 Gerd Moellmann <gerd@gnu.org>
7961
7962 * puresize.h (BASE_PURESIZE): Increase to 700000.
7963
92bb977f
JR
79642000-11-18 Jason Rumney <jasonr@gnu.org>
7965
7966 * w32term.c (w32_draw_bitmap): Use face to set colors.
7967
26fbf20b
DL
79682000-11-17 Dave Love <fx@gnu.org>
7969
7970 * lread.c (Fload): Fix #ifdef for pcc.
7971
100b593b
GM
79722000-11-17 Gerd Moellmann <gerd@gnu.org>
7973
7974 * xdisp.c (pos_visible_p): Compute the default character height
7975 differently.
7976
a288d0d1
GM
79772000-11-16 Gerd Moellmann <gerd@gnu.org>
7978
cac94de6 7979 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 7980 knowing the line's height; use the default font's height in that case.
cac94de6 7981
a288d0d1
GM
7982 * xfaces.c (weight_table): Add `demi' with the same meaning as
7983 `demibold'.
7984
981fb6f6
KH
79852000-11-16 Kenichi Handa <handa@etl.go.jp>
7986
2cca872d 7987 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
7988 (clear_glyph_row): Delete local static variable null_row.
7989
e5fa381b
JR
79902000-11-15 Jason Rumney <jasonr@gnu.org>
7991
7992 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
7993 (w32_alloc_lighter_color): Use new brightness calculations from
7994 xterm.c. Scale delta to be in the range expected by W32.
7995 (w32_draw_relief_rect): Use frame relief colors.
7996
8e42f043
GM
79972000-11-15 Gerd Moellmann <gerd@gnu.org>
7998
6d133d1f
GM
7999 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
8000 (Qinhibit_default_face_x_resources): New variable.
8001 (syms_of_frame): Initialize it.
8002 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
8003
8004 * xdisp.c (pos_visible_p): Improve function comment.
8005
8006 * lisp.h (BINDING_STACK_SIZE): New macro.
8007
8e42f043
GM
8008 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
8009 reading the directory if readdir returns null and errno is EAGAIN
8010 or EINTR.
8011
e8c87124
SM
80122000-11-14 Stefan Monnier <monnier@cs.yale.edu>
8013
8014 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
8015 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
8016 Set amount_to_scroll to max of dx and scroll_step so that
8017 scroll-conservatively doesn't defeat scroll-step>1.
8018 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
8019 scroll-conservatively for line-at-a-time scrolling.
8020
5f0c971d
GM
80212000-11-14 Gerd Moellmann <gerd@gnu.org>
8022
8023 * window.c (Fpos_visible_in_window_p): Call pos_visible with
8024 extra argument.
8025
8026 * xdisp.c (current_mode_line_height, current_header_line_height):
8027 New variables.
8028 (init_xdisp): Initialize them.
8029 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
8030 and use exact mode line heights if it is set.
8031
8032 * lisp.h (pos_visible_p): Change prototype.
8033
8034 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
8035 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
8036 and current_header_line_height first.
52283633
SM
8037 (current_mode_line_height, current_header_line_height):
8038 Declare extern.
5f0c971d 8039
d7361edf
MB
80402000-11-14 Miles Bader <miles@lsi.nec.co.jp>
8041
8042 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
8043 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
8044 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
8045
ee5e440a
MB
80462000-11-14 Miles Bader <miles@gnu.org>
8047
8048 * xterm.c (x_alloc_lighter_color): Include an additive component
8049 too for dark colors, because FACTOR isn't enough.
8050 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
8051 New macros.
8052
5ca020fc
GM
80532000-11-13 Gerd Moellmann <gerd@gnu.org>
8054
8055 * keyboard.c (show_help_echo): Call message3_nolog with number of
8056 bytes in the help string as 2nd parameter, instead of the number
8057 of characters.
8058
9d348294
MB
80592000-11-13 Miles Bader <miles@gnu.org>
8060
8061 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
8062 (Fload): Use new openp return protocol.
8063 Don't try to use Vload_source_file_function to load .elc files.
8064 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
8065 openp return protocol.
8066 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
8067
1729bb9a
KH
80682000-11-11 Kenichi Handa <handa@etl.go.jp>
8069
4e677396
KH
8070 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
8071
8072 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
8073 Defined these macros.
8074 (NLIST_STRUCT): Avoid re-defining it.
8075
1729bb9a
KH
8076 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
8077 -I/usr/contrib/X11R6/include.
8078 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
8079
a82fe213
JR
80802000-11-10 Jason Rumney <jasonr@gnu.org>
8081
8082 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
8083
8084 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
8085 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
8086
8087 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
8088 (Qw32_charset_vietnamese): New symbol.
8089 (xlfd_charset_of_font): New function.
8090 (w32_load_system_font): Use it.
8091 (x_to_w32_charset): Use Fassoc to find charset info. Special case
8092 when Vw32_charset_info_alist is nil to ensure default face always
8093 has font. Use Fcar and Fcdr for safety.
8094 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
8095 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
8096 pseudo-codepages for special cases.
8097 (w32_to_x_font): New parameter to allow charset portion to be
8098 specified where there is many to one mapping. Callers changed.
8099 (w32_list_fonts): Avoid listing fonts that won't display.
8100
52d89894
GM
81012000-11-10 Gerd Moellmann <gerd@gnu.org>
8102
8103 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
8104 (font_list_1): Renamed from font_list.
8105 (font_list): New function, trying alternative registries from
8106 Vface_alternative_font_registry_alist.
8107 (Finternal_set_alternative_font_registry_alist): New function.
8108 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
8109 Vface_alternative_font_registry_alist.
8110 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 8111
651cd3da
KR
81122000-11-09 Ken Raeburn <raeburn@gnu.org>
8113
8114 * lisp.h (Flooking_at): Declare.
8115
388ac098
GM
81162000-11-09 Gerd Moellmann <gerd@gnu.org>
8117
778fbc46 8118 * dired.c (directory_files_internal): Fix a braino.
52283633 8119
388ac098
GM
8120 * dired.c (directory_files_internal): Add missing GCPRO's.
8121 Some cleanup.
8122
ecaedde1
GM
81232000-11-08 Gerd Moellmann <gerd@gnu.org>
8124
f7eb32aa
GM
8125 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
8126 (resize_mini_window): Return quickly if Vresize_mini_window is
8127 nil. Don't return if Vmax_mini_window_height is nil.
8128
8129 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
8130 (syms_of_xdisp): Initialize them.
8131 (resize_mini_window): Act according to the setting of
8132 Vresize_mini_window.
8133 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
8134
ecaedde1
GM
8135 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
8136 scroll bar widget after configuring it, so that it will appear at
8137 the right position from the start.
8138 (XTredeem_scroll_bar): Cleaned up.
8139
3747ef2c
KH
81402000-11-08 Kenichi Handa <handa@etl.go.jp>
8141
8142 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 8143 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
8144 division by two.
8145
8146 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
8147
03391420
DL
81482000-11-07 Dave Love <fx@gnu.org>
8149
7758f1c1 8150 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
8151
8152 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
8153
b5de343d
GM
81542000-11-07 Gerd Moellmann <gerd@gnu.org>
8155
acad3c0b
GM
8156 * window.c (Fset_window_configuration): Don't try to preserve
8157 point in the current buffer, if that buffer is displayed in more
8158 than one window.
8159
b5de343d
GM
8160 * xfaces.c (lookup_named_face): If default face isn't realized,
8161 try to realize it. Return -1 if not successful.
8162 (Fx_list_fonts): Handle case that face cannot be determined.
8163 (Fface_font): Likewise.
8164
cdb1fe49
GM
81652000-11-06 Gerd Moellmann <gerd@gnu.org>
8166
8167 * window.c (displayed_window_lines): Detect partially
8168 visible lines at the bottom correctly.
8169
d3a67486
SM
81702000-11-06 Stefan Monnier <monnier@cs.yale.edu>
8171
8172 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
8173 when ensuring we don't do visit in indirect buffer.
8174
ff8dd5d5
KH
81752000-11-06 Kenichi Handa <handa@etl.go.jp>
8176
8177 * composite.h (compose_chars_in_text): Add prototype.
8178
8179 * composite.c (Vcomposition_function_table): New variable.
8180 (Qcomposition_function_table): New variable.
8181 (run_composition_function): Call
8182 Vcompose_chars_after_function with three arguments.
8183 (compose_chars_in_text): New function.
8184 (syms_of_composite): Modified the doc-string of
8185 Vcompose_chars_after_function. Declare composition-function-table
8186 as a lisp variable, and initialize it.
8187
8188 * xfns.c (x_encode_text): Suppress producing escape sequences for
8189 composition.
8190
8191 * xselect.c: Include composite.h.
8192 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
8193
d1145f85
AI
81942000-11-05 Andrew Innes <andrewi@gnu.org>
8195
8196 * w32term.c (x_produce_glyphs): Fix typo in enum name.
8197
8198 * sysdep.c (read_input_waiting): Remove extraneous argument to
8199 read_socket_hook.
8200
8201 * w32fns.c (Fx_server_version): Include w32_build_number in the
8202 return list.
8203
8204 * w32heap.c (w32_build_number): New variable.
8205 (cache_system_info): Set it.
8206
8207 * w32heap.h (w32_build_number): Add extern.
8208
8209 * emacs.c (syms_of_emacs): Update docstring for
8210 system-configuration, to reflect the actual usage on MS-Windows.
8211
e85ee976
GM
82122000-10-31 Gerd Moellmann <gerd@gnu.org>
8213
26dcb81b
GM
8214 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
8215 process idle timers while waiting for another event.
8216
52283633 8217 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
8218 the default face are colored.
8219
e85ee976
GM
8220 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
8221 window height hasn't changed.
8222
01b220b6
JR
82232000-10-31 Jason Rumney <jasonr@gnu.org>
8224
8225 * w32term.c (x_produce_glyphs): Handle composite characters.
8226 (x_draw_glyph_string_foreground)
8227 (x_draw_composite_glyph_string_foreground): Restore old font.
8228
4e6b7204
MB
82292000-10-31 Miles Bader <miles@lsi.nec.co.jp>
8230
8231 * minibuf.c (read_minibuf): Reset the undo history just before
8232 starting the recursive-edit.
8233
d4358b37
GM
82342000-10-30 Gerd Moellmann <gerd@gnu.org>
8235
563f68f1
GM
8236 * xfaces.c (menu_face_change_count): New variable.
8237 (Finternal_set_lisp_face_attribute): Increment it for changes
8238 of the `menu' face.
8239 (realize_basic_faces): Reflect changes in the `menu' faces
8240 in menu bars.
8241
82e274d1
GM
8242 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
8243 dy obtained from the iterator's y-position after moving from
8244 scroll_margin_pos to PT; see comment there.
52283633 8245
0dbf9fd2
GM
8246 * xdisp.c (safe_eval_handler): Call add_to_log.
8247
906b3b14
GM
8248 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
8249 is not a symbol or string.
8250
d4358b37
GM
8251 * xdisp.c (echo_area_display): Don't perform a display update from
8252 inside redisplay. The update will happen anyway at the end of
8253 redisplay, and it can confuse redisplay (GC messages while
8254 redisplaying, for instance.)
8255
70c825df
SM
82562000-10-30 Stefan Monnier <monnier@cs.yale.edu>
8257
cf9b4b0b
SM
8258 * xrdb.c (x_load_resources): Use the class name in the defaults.
8259
70c825df
SM
8260 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
8261 (regex_compile): Catch bogus \(\1\).
8262
a1d34b1e
GM
82632000-10-30 Gerd Moellmann <gerd@gnu.org>
8264
cae71efe
GM
8265 * xterm.c (x_alloc_nearest_color): Fix last change to compare
8266 RGB values.
52283633 8267
35efe0a1
GM
8268 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
8269 we have a color cache, check that the cached color equals the
8270 allocated color. If not, clear the color cache.
8271
1d3baf74
GM
8272 * window.c (displayed_window_lines): Change buffers if necessary.
8273 Fix computation of displayed lines.
8274
a1d34b1e
GM
8275 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
8276 update_menu_bindings to DEFVAR_BOOL.
8277
70737ea9
KH
82782000-10-30 Kenichi Handa <handa@etl.go.jp>
8279
70c825df 8280 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 8281
fa0cb51d
KH
8282 * puresize.h (BASE_PURESIZE): Increase to 680000.
8283
70737ea9
KH
8284 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
8285
0e4c08e8
JR
82862000-10-29 Jason Rumney <jasonr@gnu.org>
8287
8288 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
8289
8290 * w32term.c (w32_bdf_per_char_metric): Negate descent.
8291 (w32_cache_char_metrics): Handle possibility that 'x' does not
8292 exist in a BDF font.
8293 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
8294
8295 * w32bdf.h (bdffont): Add nchars.
8296
8297 * w32bdf.c (set_bdf_font_info): Set it.
8298 (w32_BDF_TextOut): Swap byte order of double byte characters.
8299 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
8300
45b84006
EZ
83012000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
8302
8303 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
8304 don't override the colors in frame's param_alist, unless they are
8305 unspecified.
8306
8307 * term.c (reassert_line_highlight): If inverse_video is non-zero,
8308 reverse the effect of the highlight flag.
8309
caf9deee
KR
83102000-10-27 Ken Raeburn <raeburn@gnu.org>
8311
8312 * window.h (Fwindow_live_p): Declare.
8313
ae0b9b46
KR
8314 * undo.c (record_delete): Check that last_undo_buffer is really a
8315 buffer before applying XBUFFER to it.
8316
8317 * keymap.c (where_is_internal): Pass lisp object, not integer, to
8318 Faref.
8319
02067692
SM
83202000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8321
8322 * lisp.h (KEYMAPP): New macro.
8323 (get_keymap): Remove.
8324 (get_keymap_1): Rename get_keymap.
8325
8326 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
8327
8328 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
8329
8330 * xmenu.c (single_submenu): Use KEYMAPP.
8331 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8332 Use KEYMAPP rather than Fkeymapp.
8333
8334 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
8335
8336 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
8337 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8338 Use KEYMAPP rather than Fkeymapp.
8339 (single_submenu): Use KEYMAPP.
8340 (w32_menu_show, w32_dialog_show): Use TRUE.
8341
8342 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
8343
8344 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
8345 (Fkeymapp): Use KEYMAPP.
8346 (get_keymap): Rename from get_keymap_1. Remove old def.
8347 Return t when autoload=0 and error=0 and the keymap needs autoloading.
8348 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
8349 (Fminor_mode_key_binding): Don't raise an error if the binding
8350 is not a keymap.
8351 (Fuse_global_map, Fuse_local_map): Allow autoloading.
8352 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
8353
8354 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
8355 Allow Vspecial_event_map to be autoloaded.
8356 (menu_bar_items): Fetch the keymap rather than using keymapp.
8357 (menu_bar_one_keymap): No need to follow func-indirect any more.
8358 (parse_menu_item): get_keymap_1 -> get_keymap.
8359 (tool_bar_items): Fetch the keymap rather than using keymapp.
8360 (read_key_sequence): Use KEYMAPP.
8361
8362 * intervals.c (get_local_map): Use get_keymap rather than following
8363 function-indirections explicitly.
8364
8365 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
8366
f9d80af3
JR
83672000-10-27 Jason Rumney <jasonr@gnu.org>
8368
8369 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
8370 point, as Windows has oversized fonts.
8371
8372 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
8373
a3ba27da
GM
83742000-10-27 Gerd Moellmann <gerd@gnu.org>
8375
8376 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
8377 (freehook, reallochook): Handle null pointer arguments.
8378 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
8379
aa3b80cc
SM
83802000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8381
8382 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
8383 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
8384 Giving in to popular pressure to shut up the compiler with casts.
8385
e24e84cc
GM
83862000-10-27 Gerd Moellmann <gerd@gnu.org>
8387
8388 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
8389 signed value, and use a default value computed from the font's
8390 maximum descent.
8391
05ea7ef2
MB
83922000-10-27 Miles Bader <miles@lsi.nec.co.jp>
8393
8394 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
8395 that specify a negative underline position can still use underlines.
8396
8397 * window.c (Fpos_visible_in_window_p): Make POS default to
8398 WINDOW's point, not the current buffer's point.
8399
0b95284b
DL
84002000-10-26 Dave Love <fx@gnu.org>
8401
8402 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
8403 when it's necessary.
8404
6c5b90af
GM
84052000-10-26 Gerd Moellmann <gerd@gnu.org>
8406
8b6d9dc9
GM
8407 * window.c (size_window): Compute size difference from sum of old
8408 child window sizes instead of from parent's size.
8409
6bc92b2e
GM
8410 * xdisp.c (pos_visible_p): Change current buffer if necessary.
8411 Handle obscured lines at the top of the window.
8412
8413 * frame.c (Fdelete_frame): Doc fix. Move running the hook
8414 down after the last error condition check.
8415
6c5b90af
GM
8416 * frame.c (Fdelete_frame): Run delete-frame-hook.
8417
42f92d4d
KH
84182000-10-26 Kenichi Handa <handa@etl.go.jp>
8419
8420 * coding.c (decode_coding): Fix previous change (check also
8421 CODING_MODE_LAST_BLOCK).
8422
d97151cb
SM
84232000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8424
e7efc503
SM
8425 * regex.c: More `unsigned char' -> `re_char' changes.
8426 Also change several `int' into `re_wchar_t'.
8427 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
8428 (PUSH_FAILURE_POINTER): Don't cast any more.
8429 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
8430 We want GCC to complain, since this piece of code makes
8431 re_match non-reentrant, which *should* be fixed.
8432 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
8433 (EXTEND_BUFFER): Use RETALLOC.
8434 (SET_LIST_BIT): Don't cast.
8435 (re_wchar_t): New type.
8436 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
8437 that those two functions will always properly return.
8438 (IMMEDIATE_QUIT_CHECK): Cast to void.
8439 (analyse_first): Use recursion rather than an explicit stack.
8440 (re_compile_fastmap): Can't fail anymore.
8441 (re_search_2): Don't check re_compile_fastmap for failure.
8442 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
8443 Now also sets the new value (passed in a new argument).
8444 (re_match_2_internal): Use it.
8445 Also, use a new var `reg' of type size_t when looping through regs
8446 rather than reuse the inappropriate `mcnt'.
8447
d97151cb
SM
8448 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
8449 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
8450 (where_is_internal): Renamed from Fwhere_is_internal.
8451 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
8452 (Fwhere_is_internal): New function wrapping where_is_internal.
8453 (where_is_internal_1): Handle the case where we're filling the cache.
8454 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
8455
d5789b65
MB
84562000-10-25 Miles Bader <miles@gnu.org>
8457
8458 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
8459
4ecda532
GM
84602000-10-25 Gerd Moellmann <gerd@gnu.org>
8461
8462 * window.c (pos_fully_visible_p): Removed.
8463 (Fpos_visible_in_window_p): Use pos_visible_p to determine
8464 if position is visible and/or fully visible.
8465
8466 * lisp.h (pos_visible_p): Add prototype.
8467
8468 * xdisp.c (pos_visible_p): New function.
8469
68c3a137
KH
84702000-10-25 Kenichi Handa <handa@etl.go.jp>
8471
8472 * process.c (send_process): If OBJECT is t, it means that the data
8473 is from C string, but we should encode it. Before calling
8474 setup_raw_text_coding_system, be sure to flush out data by the
8475 previous coding system.
8476
7ae1c032
MB
84772000-10-25 Miles Bader <miles@lsi.nec.co.jp>
8478
ff4dcd4b
MB
8479 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
8480 assignment of startpos to prev when startpos == pos.
8481
7ae1c032
MB
8482 * editfns.c (find_field): Set the field stickiness correctly from
8483 overlay fields. Use renamed `text_property_stickiness'.
8484 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 8485 Only check text properties, not overlays.
7ae1c032
MB
8486 * textprop.c (get_char_property_and_overlay): New function.
8487 (Fget_char_property): Use it.
8488 * intervals.h (get_char_property_and_overlay): Add declaration.
8489
49801145
SM
84902000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8491
8492 * keymap.c: Use AREF, ASET and ASIZE macros.
8493 (Fmake_sparse_keymap): Docstring fix.
8494 (synkey): Remove.
8495 (shadow_lookup): Move up.
8496 Handle the case where lookup-key returns an integer.
8497 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
8498 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
8499 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
8500 Simplify/rewrite the keymap-finding code.
8501 Add check for command shadowing, using shadow_lookup.
8502
39e776cd
SM
85032000-10-24 Stefan Monnier <monnier@cs.yale.edu>
8504
8505 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
8506 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
8507 a symbol.
8508
2488aba5
AI
85092000-10-24 Andrew Innes <andrewi@gnu.org>
8510
8511 * dired.c (directory_files_internal_unwind): New function.
8512 (directory_files_internal): Use it to ensure closedir is called
8513 even if expand-file-name or file-attributes throw, eg. because of
8514 a user interrupt. Also enable immediate_quit while calling
8515 re_search, so that matching can be interrupted as well.
8516
b94fdf61
AI
85172000-10-24 Andrew Innes <andrewi@gnu.org>
8518
8519 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
8520 NT-Emacs only.
8521 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
8522 so that re_search functions only quit when callers expect them to.
8523
85242000-10-24 Kenichi Handa <handa@etl.go.jp>
8525
8526 * regex.c (regex_compile): Change the way of handling a range from
8527 a char less than 256 to a char not less than 256.
8528
1946f901
GM
85292000-10-24 Gerd Moellmann <gerd@gnu.org>
8530
7ae2f10f
GM
8531 * window.c (size_window): Prevent setting window's width or
8532 height to a negative value (esp. with XSETFASTINT).
8533
5dcab13e
GM
8534 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
8535 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
8536 (protect_malloc_state) [GC_MALLOC_CHECK &&
8537 GC_PROTECT_MALLOC_STATE]: New function.
8538 (PROTECT_MALLOC_STATE): New macro.
8539 (__malloc_initialize, morecore, _malloc_internal)
8540 (_free_internal) _realloc_internal): Use it to make _heapinfo
8541 read-only outside of gmalloc.
8542
63e1b552
GM
8543 * keymap.c: Update copyright.
8544
1946f901
GM
8545 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
8546 a symbol.
8547
4fa09beb
GM
85482000-10-24 Colin Walters <walters@cis.ohio-state.edu>
8549
8550 * filelock.c (unlock_all_files): Use unlock_file to expand each
8551 buffer's file_truename before trying remove its lock file.
8552
23afac01
EZ
85532000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
8554
8555 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
8556 or CRLF, decode EOLs.
8557
04448b95
KH
85582000-10-24 Kenichi Handa <handa@etl.go.jp>
8559
8560 * window.c (Fdisplay_buffer): Fix doc.
8561
3090a5a5
JR
85622000-10-23 Jason Rumney <jasonr@gnu.org>
8563
8564 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
8565 ASCII font of default fontset on Windows.
8566
8567 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
8568 xterm.c comment below).
8569
8570 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
8571
a83fee2c
GM
85722000-10-23 Gerd Moellmann <gerd@gnu.org>
8573
8574 * xterm.c (x_connection_closed): Reset handling_signal.
8575
52283633 8576 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 8577
6ffdb539
MB
85782000-10-23 Miles Bader <miles@gnu.org>
8579
8580 * window.c (window_scroll_pixel_based, window_scroll_line_based):
8581 Pass nil for FULLY argument to Fpos_visible_in_window_p to
8582 maintain old behavior.
8583 * minibuf.c (Fminibuffer_complete): Likewise.
8584
7f1c969b
MB
85852000-10-23 Miles Bader <miles@lsi.nec.co.jp>
8586
8587 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
8588 that when a font can't be exactly centered, it errs up rather than
8589 down.
8590
23afac01 85912000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 8592
52283633 8593 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 8594
1a578e9b
AC
85952000-10-23 Andrew Choi <akochoi@i-cable.com>
8596
8597 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
8598
8599 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 8600 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
8601
8602 * emacs.c (main) [macintosh]: Call syms_of_textprop,
8603 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
8604 syms_of_search, x_term_init, and init_keyboard before calling
8605 init_window_once. Also, call syms_of_xmenu.
8606
8607 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
8608 default fontset to Monaco.
8609
8610 * frame.c [macintosh]: Include macterm.h. Remove declarations of
8611 NewMacWindow and DisposeMacWindow.
8612 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
8613 instead of calling NewMacWindow and setting fields of
8614 f->output_data.mac directly. Call init_frame_faces.
8615 (Fdelete_frame) [macintosh]: Remove unused code.
8616 (Fmodify_frame_parameters) [macintosh]: Call
8617 x_set_frame_parameters instead of mac_set_frame_parameters.
8618
8619 * frame.h [macintosh]: Define menu_bar_lines field in struct
8620 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
8621
8622 * keyboard.c [macintosh]: Include macterm.h.
8623 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
8624 and menu_bar_activate_event type events as for X and NT.
8625 (make_lispy_event) [macintosh]: Construct lisp events of type
8626 MENU_BAR_EVENT as for X and NT.
8627
8628 * sysdep.c [macintosh]: Remove declaration for sys_signal.
8629 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
8630 (sys_subshell) [macintosh]: Remove definition entirely.
8631 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
8632 Vwindow_system_version here. Remove initialization of
8633 Vx_bitmap_file_path.
8634 (read_input_waiting): Correct the number of parameters passed to
8635 read_socket_hook.
8636 Move all Macintosh functions to mac/mac.c.
8637
8638 * term.c [macintosh]: Include macterm.h.
8639
8640 * window.c [macintosh]: Include macterm.h.
8641
8642 * xdisp.c [macintosh]: Include macterm.h. Declare
8643 set_frame_menubar and pending_menu_activation.
8644 (echo_area_display) [macintosh]: Do not return if terminal frame
8645 is the selected frame.
8646 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
8647 Allow only the selected frame to set menu bar.
8648 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
8649 calling FRAME_EXTERNAL_MENU_BAR (f).
8650 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
8651
8652 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
8653 and check_x. Declare XCreateGC. Define x_create_gc and
8654 x_free_gc. Initialize font_sort_order.
8655 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
8656 but call x_list_fonts instead of w32_list_fonts.
8657 (Finternal_face_x_get_resource) [macintosh]: Do not call
8658 display_x_get_resource.
8659 (prepare_face_for_display) [macintosh]: Set xgcv.font.
8660 (realize_x_face) [macintosh]: Load the font if it is specified in
8661 ATTRS.
52283633 8662 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 8663
1ffbabe3
SM
86642000-10-22 Stefan Monnier <monnier@cs.yale.edu>
8665
8666 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
8667 is nil: since we go to the end of submap anyway, we'd end up
8668 setting nil to nil.
8669 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
8670 doesn't obey autoload.
8671
bed43f1d
EZ
86722000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8673
1ffbabe3 8674 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 8675
ea4233a7
JR
86762000-10-21 Jason Rumney <jasonr@gnu.org>
8677
8678 * w32term.c (w32_cache_char_metrics): Double check that font is
8679 really fixed pitch before trusting tmPitchAndFamily.
8680
f3d3c491
AI
86812000-10-21 Andrew Innes <andrewi@gnu.org>
8682
8683 * w32gui.h (w32_char_font_type): Move enum from w32term.c
8684
8685 * w32term.h: Extern decl for w32_cache_char_metrics.
8686
8687 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
8688
8689 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
8690 (w32_unload_font): Free per_char array if present.
8691
8692 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
8693 cached information in emulated XFontStruct to handle common cases
8694 quickly. Do not allocate XCharStruct for return.
8695 (w32_native_per_char_metric): New function.
8696 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
8697 allocating one.
8698 (x_produce_glyphs): Don't get an HDC. Change calls to
8699 w32_per_char_metric to match arg change above. Remove calls to
8700 free results.
8701 (w32_get_glyph_overhangs): Ditto.
8702 (w32_cache_char_metrics): New function.
8703
8704 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
8705 ($(BLD)/casefiddle.$(O)): Remove compile command.
8706 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
8707 ($(BLD)/dispnew.obj):
8708 ($(BLD)/keyboard.obj):
8709 ($(BLD)/w32inevt.obj):
8710 ($(BLD)/w32bdf.obj):
8711 ($(BLD)/alloc.obj):
8712 ($(BLD)/buffer.obj):
8713 ($(BLD)/editfns.obj):
8714 ($(BLD)/emacs.obj):
8715 ($(BLD)/fileio.obj):
8716 ($(BLD)/fns.obj):
8717 ($(BLD)/indent.obj):
8718 ($(BLD)/insdel.obj):
8719 ($(BLD)/intervals.obj):
8720 ($(BLD)/minibuf.obj):
8721 ($(BLD)/print.obj):
8722 ($(BLD)/scroll.obj):
8723 ($(BLD)/sysdep.obj):
8724 ($(BLD)/textprop.obj):
8725 ($(BLD)/widget.obj):
f3d3c491
AI
8726 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
8727 ($(BLD)/term.obj): Add dependency on dispextern.h.
8728
52283633
SM
8729 * makefile.nt ($(BLD)\dispnew.obj):
8730 ($(BLD)\keyboard.obj):
8731 ($(BLD)\w32inevt.obj):
8732 ($(BLD)\w32bdf.obj):
8733 ($(BLD)\alloc.obj):
8734 ($(BLD)\buffer.obj):
8735 ($(BLD)\editfns.obj):
8736 ($(BLD)\emacs.obj):
8737 ($(BLD)\fileio.obj):
8738 ($(BLD)\fns.obj):
8739 ($(BLD)\indent.obj):
8740 ($(BLD)\insdel.obj):
8741 ($(BLD)\intervals.obj):
8742 ($(BLD)\minibuf.obj):
8743 ($(BLD)\print.obj):
8744 ($(BLD)\scroll.obj):
8745 ($(BLD)\sysdep.obj):
8746 ($(BLD)\textprop.obj):
8747 ($(BLD)\widget.obj):
f3d3c491
AI
8748 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
8749 ($(BLD)\term.obj): Add dependency on dispextern.h
8750
18ad4821
EZ
87512000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8752
8753 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
8754 with an additional argument of Qt.
8755
de54681a
MB
87562000-10-21 Miles Bader <miles@gnu.org>
8757
8758 * window.c (pos_fully_visible_in_window_p): New function.
8759 (Fpos_visible_in_window_p): Add FULLY argument.
8760 Use pos_fully_visible_in_window_p.
8761 (window_scroll_pixel_based, window_scroll_line_based): Update
8762 calls to Fpos_visible_in_window_p.
8763 * lisp.h (Fpos_visible_in_window_p): Update prototype
8764
13c844fb
GM
87652000-10-20 Gerd Moellmann <gerd@gnu.org>
8766
8767 * alloc.c (toplevel): Conditionalize compilation of mem_*
8768 functions differently.
52283633 8769
d9506268
JR
87702000-10-20 Jason Rumney <jasonr@gnu.org>
8771
8772 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
8773 mem_init where it used to be. mem_z etc not defined otherwise.
8774
8094989b
GM
87752000-10-20 Gerd Moellmann <gerd@gnu.org>
8776
8777 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
8778 GC_MALLOC_CHECK.
8779 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
8780 structure definition and related variabled to the top of the file.
8781 Include this code when GC_MALLOC_CHECK is defined.
8782 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
8783 register/unregister allocated region.
8784 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
8785 which isn't allocated.
8786 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
8787 something which is already in use.
8788 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
8789 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
8790 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
8791 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
8792
8793 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
8794 _malloc_internal instead of malloc.
8795 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
8796 of free.
8797
ea456eb4
AI
87982000-10-20 Andrew Innes <andrewi@gnu.org>
8799
8800 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
8801 Windows.
8802 (my_strftime) <macro>: Don't use macro arg list when redefining as
8803 _strftime_copytm.
8804 (my_strftime) <function>: Supply 0 as ut argument.
8805
e64c3a75
JR
88062000-10-19 Jason Rumney <jasonr@altavista.net>
8807
8808 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
8809 including dispextern.h, as it stops faces from working.
8810
8811 * w32fns.c (Fx_create_frame): Don't bother calling
8812 face-set-after-frame-default since the caller does it for us
8813 anyway. Clean up calls to x_get_arg to be consistent with X.
8814
8815 * w32term.c (x_produce_glyphs): Handle
8816 unibyte_display_via_language_environment correctly.
8817 (w32_draw_box_rect): Fix the calculation of width and height.
8818
8819 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
8820 as it has stopped working.
8821 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
8822 menu-bar.
8823
17401c97
GM
88242000-10-19 Gerd Moellmann <gerd@gnu.org>
8825
8826 * eval.c (skip_debugger): Prevent a compiler warning.
8827 (Fcondition_case): Likewise.
8828 (Fbacktrace_frame): Use a null interactive spec.
8829
773272d8
KH
88302000-10-19 Kenichi Handa <handa@etl.go.jp>
8831
8832 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
8833
a42943e9
GM
88342000-10-18 Gerd Moellmann <gerd@gnu.org>
8835
e50517d9
GM
8836 * strftime.c: Sync with glibc, file version 1.78.
8837 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
8838 should no longer be used according to ISO 8601.
8839
9035a35a
GM
8840 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
8841 no map for meta_prefix_char, don't try to use it as a keymap.
8842 Instead, if T_OK is non-zero, look up a default binding, if any,
8843 otherwise, if T_OK is zero, return nil.
8844
a42943e9
GM
8845 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
8846 (x_to_xcolors, png_load): Use x_query_color.
8847
52283633
SM
8848 * xterm.c (x_color_cells, x_query_colors, x_query_color):
8849 New functions.
a42943e9
GM
8850 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
8851 which can be slow.
8852 (x_copy_color, x_alloc_lighter_color): Likewise.
8853
8854 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
8855 (x_query_color, x_query_colors): Add prototype.
8856
8857 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
8858 check_string_bytes only if not noninteractive, increase count to 50.
8859
00de2987
MB
88602000-10-18 Miles Bader <miles@lsi.nec.co.jp>
8861
8862 * insdel.c (adjust_markers_for_delete): Handle before-insertion
8863 markers correctly.
8864
54918e2b
GM
88652000-10-17 Gerd Moellmann <gerd@gnu.org>
8866
1f0b3fd2
GM
8867 * alloc.c (pure_bytes_used): Renamed from pureptr.
8868 (ALIGN): New macro.
8869 (pure_alloc): New function.
8870 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
8871 Use it.
8872 (Fpurecopy): Use PURE_POINTER_P.
8873
68c5d1db
GM
8874 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
8875 PT has moved backward.
52283633 8876
9a038881
GM
8877 * xdisp.c (cursor_row_p): Take continued lines into account.
8878
361b097f
GM
8879 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
8880 string's size_byte.
8881 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
8882 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
8883 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
8884 string allocated.
8885
54918e2b
GM
8886 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
8887 of selective display off while searching for the next line start.
8888
03ed0806
KH
88892000-10-17 Kenichi Handa <handa@etl.go.jp>
8890
8891 * Makefile.in (term.o): Depend on dispextern.h.
8892
7e05cdaf
SM
88932000-10-16 Stefan Monnier <monnier@cs.yale.edu>
8894
8895 * keymap.c (keymap_memberp): Ensure that nil is not a member.
8896
a6801fd1
GM
88972000-10-16 Gerd Moellmann <gerd@gnu.org>
8898
483de32b
GM
8899 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
8900 the iterator at the beginning, so that they can be set later on,
8901 for instance in reseat_at_next_visible_line_start, without being
8902 overwritten.
8903
a6801fd1
GM
8904 * xfns.c (pbm_format): Add :foreground and :background keywords.
8905 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 8906 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 8907
dbf1fcc1
EZ
89082000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
8909
8910 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
8911
52283633 8912 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
8913
8914 * msdos.c (IT_set_face): Compare highlighted face with the default
8915 face, and invert colors if these faces' colors are identical.
8916 (Fmsdos_remember_default_colors): Don't swap foreground and
8917 background colors in initial_colors[].
8918 (IT_set_frame_parameters): Don't swap frame's foreground and
8919 background pixels. If ALIST includes "(reverse . t)", swap
8920 foreground-color and background-color properties in frame's
8921 param_alist. If the original frame's param_alist doesn't specify
8922 the colors, store unspecified-fg and unspecified-bg, reversed if
8923 required.
8924
8925 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
8926 the colors are unspecified and reversed, reverse fore- and back-
8927 ground in the returned value.
8928 (Fframe_parameter): Ditto.
8929
b41fe2c3 89302000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 8931
3a6b59d9
GM
8932 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
8933 get_last_unchanged_at_beg_row.
8934 (find_first_unchanged_at_end_row): Renamed from
8935 get_first_unchanged_at_end_row.
8936 (find_first_unchanged_at_end_row): Convert assertions to
8937 unconditional tests which abort. When looking for a row in
8938 unchanged text, don't go further back than first_text_row.
8939
b41fe2c3
GM
8940 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
8941 Don't add in the last line's height when deciding if the new
8942 position is below the scroll margin.
9d1af64f 8943
b41fe2c3 89442000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
8945
8946 * editfns.c (Fconstrain_to_field): Check carefully for field
8947 boundaries if either OLD_POS or NEW_POS has a non-nil field
8948 property, even if they're the same.
8949
c412cb7b
KH
89502000-10-16 Kenichi Handa <handa@etl.go.jp>
8951
8952 * xterm.c (x_draw_box_rect): Fix the calculation of width and
8953 height for XFillRectangle.
8954
5586f3eb
SM
89552000-10-15 Stefan Monnier <monnier@cs.yale.edu>
8956
8957 * syntax.c (Fstring_to_syntax): New function extracted from
8958 Fmodify_syntax_entry.
8959 (Fmodify_syntax_entry): Use it and document the ! and | fences.
8960 (skip_chars, Fforward_comment): Remove unused variables.
8961 (syms_of_syntax): Add defsubr for string-to-syntax.
8962 (describe_syntax): Add code for comment and string fences.
8963
db785038
SM
89642000-10-14 Stefan Monnier <monnier@cs.yale.edu>
8965
8966 * keymap.c (access_keymap): Add AUTOLOAD parameter.
8967 Do the meta->esc mapping. Call get_keyelt before returning.
8968 Start scanning from the second element (the first is always `keymap')
8969 to make it easier to detect when we reach a parent map.
8970 Handle the case of inheriting from a symbol whose function is a map.
8971 (Fkeymap_parent): Also handle the `inherit from symbol' case.
8972 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
8973 (get_keyelt, Flookup_key): Update call to access_keymap.
8974 Remove the meta->esc mappings.
8975 (define_as_prefix): Delete old disabled code.
8976 (menu_item_p): New function.
8977 (where_is_internal_1): Skip over the few remaining menu items.
8978 * lisp.h (access_keymap): Update prototype.
8979 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
8980 Update call to access_keymap.
8981 (follow_key, read_key_sequence): Update calls to access_keymap.
8982 Remove the meta->esc mappings.
8983
cafafe0b
GM
89842000-10-13 Gerd Moellmann <gerd@gnu.org>
8985
a2e2a7f6
GM
8986 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
8987 with additional argument.
8988
cafafe0b
GM
8989 * xdisp.c (cursor_row_p): New function.
8990 (try_cursor_movement, display_line): Use it.
52283633 8991
cafafe0b
GM
8992 * xdisp.c (append_space): Also save/restore iterator's current
8993 character and its length.
8994
8995 * xdisp.c (init_from_display_pos): Add an assertion.
8996 (handle_stop): Don't set iterator's add_overlay_start.
8997 (handle_invisible_prop): Likewise.
8998 (load_overlay_strings): If text under an overlay is invisible,
8999 take both before- and after-strings into account when the iterator
9000 is positioned either at the start or at the end of the overlay.
9001 (forward_to_next_line_start): Rewritten.
9002 (reseat_at_next_visible_line_start): Rewritten.
9003 (set_iterator_to_next): Add parameter RESEAT_P.
9004
9005 * dispextern.h (struct it): Remove member add_overlay_start.
9006 (set_iterator_to_next): Change prototype.
9007
c744452b
KH
90082000-10-13 Kenichi Handa <handa@etl.go.jp>
9009
9010 * coding.c (code_convert_region): Be sure to initialize
9011 coding->category_idx.
e4a3f4e1
KH
9012 (decode_coding_string): Set coding->src_multibyte and
9013 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
9014 (encode_coding_string): Set coding->src_multibyte and
9015 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 9016
321fd26f
SM
90172000-10-12 Stefan Monnier <monnier@cs.yale.edu>
9018
9019 * xfns.c (Fx_create_frame): Don't bother calling
9020 face-set-after-frame-default since the caller does it for us anyway.
9021
76832439
EZ
90222000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
9023
9024 * window.c (coordinates_in_window): Fix detection of vertical line
9025 on character terminals.
9026
2483cf58
GM
90272000-10-12 Gerd Moellmann <gerd@gnu.org>
9028
9029 * editfns.c (save_excursion_save): Additionally record the
9030 selected window.
9031 (save_excursion_restore): If buffer was visible in a window, and a
9032 different window was selected, and the old selected window is
9033 still live, restore point in that window.
9034
eb991b25
KH
90352000-10-12 Kenichi Handa <handa@etl.go.jp>
9036
8a0eba09
KH
9037 * xterm.c (x_produce_glyphs): Handle
9038 unibyte_display_via_language_environment correctly.
9039
20401fcc
KH
9040 * regex.c (regex_compile): Change the way of handling a range from
9041 unibyte char to multibyte char.
9042
9043 * syntax.c (skip_chars): Change the way of handling a range from
9044 unibyte char to multibyte char.
9045
eb991b25
KH
9046 * process.c (read_process_output): Cancel previous change.
9047
365dd325
EZ
90482000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
9049
c1b096cb
EZ
9050 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
9051
365dd325
EZ
9052 * charset.c (Ffind_charset_string): Doc fix.
9053 (Ffind_charset_region): Doc fix.
9054
eb483c2b
KH
90552000-10-11 Kenichi Handa <handa@mule.m17n.org>
9056
9057 * process.c (read_process_output): Fix previous change. Adjust
9058 multibyteness of text to insert in a buffer by
52283633 9059 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 9060
b40bfb99
AS
90612000-10-10 Andreas Schwab <schwab@suse.de>
9062
9063 * alloc.c (mark_object): Remove all workarounds installed on
9064 1993-08-08.
9065
caff31d4
KH
90662000-10-10 Kenichi Handa <handa@etl.go.jp>
9067
52283633 9068 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
9069 (base64_encode_1): Make it work for a text of multibyte form.
9070 (Fbase64_decode_region): Allocate sufficient memory for multibyte
9071 case. Don't call str_to_multibyte because base64_decode_1
9072 produces correct multibyte form for eight-bit codes.
52283633 9073 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
9074 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
9075 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
9076 codes.
9077
9078 * charset.h (CHAR_STRING): Optimized for single byte characters.
9079
cba026ef
AS
90802000-10-09 Andreas Schwab <schwab@suse.de>
9081
9082 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
9083 -1 after socket is closed, to fall through to error processing.
9084
1e21fe48
EZ
90852000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
9086
9087 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 9088 variables. If ALIST includes foreground-color or
1e21fe48
EZ
9089 background-color, change also the colors of the default face for
9090 this frame.
9091
a640322e
EZ
90922000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
9093
9094 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
9095 them extern (they are defined on xfaces.c).
9096 (syms_of_msdos): Don't intern and don't staticpro
9097 Qbackground_color and Qforeground_color.
9098
a115794c
EZ
90992000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
9100
9101 * frame.c (Fframe_parameter): For non-windowed frames, if
9102 f->param_alist says foreground or background color is unspecified,
9103 call tty_color_name to return the color name computed from the
9104 frame's current colors.
9105
f5533b63
DL
91062000-10-06 Dave Love <fx@gnu.org>
9107
9108 * terminfo.c (ospeed): Don't declare.
9109
9110 * sysdep.c: Don't include string.h.
9111 (h_errno): Declare conditional also on TRY_AGAIN.
9112
9113 * charset.c (Ffind_charset_string): Doc fix.
9114
52283633 9115 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
9116 (Fbase64_decode_region, Fbase64_decode_string): More explicit
9117 error messages.
9118
2b06561a
DL
91192000-10-05 Dave Love <fx@gnu.org>
9120
9121 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
9122 position like menu-bar.
9123
ca839c85
GM
91242000-10-05 Gerd Moellmann <gerd@gnu.org>
9125
9126 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
9127
9128 * xdisp.c (handle_single_display_prop): Use safe_call1.
9129 (safe_call): Renamed from call_function.
9130 (safe_call1): New function.
9131 (handle_fontified_prop): Use safe_call1 instead of call1.
9132 (safe_eval): Renamed from eval_form.
9133 (safe_eval_handler): Renamed from eval_handler.
9134 (handle_single_display_prop, display_mode_element): Use safe_eval
9135 instead of eval_form.
9136
9137 * xfaces.c (merge_face_heights): Use safe_call instead of
9138 call_function.
9139
9140 * keyboard.c (show_help_echo): Use safe_call instead of
9141 call_function; use safe_eval instead of eval_form.
9142
9143 * lisp.h (safe_call): Renamed from call_function.
9144 (safe_eval): Renamed from eval_form.
9145 (safe_call1): Add prototype.
9146
a3489ece
MB
91472000-10-05 Miles Bader <miles@lsi.nec.co.jp>
9148
9149 * xfns.c (image_ascent): Rearrange ascent calculation for the
9150 has-a-font case.
9151
35810b6f
SM
91522000-10-04 Stefan Monnier <monnier@cs.yale.edu>
9153
9154 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
9155 (where_is_internal_1): Don't bother ignoring menu-items any more.
9156
3dc78168
GM
91572000-10-04 Gerd Moellmann <gerd@gnu.org>
9158
9159 * keyboard.c (update_menu_bindings): New variable.
9160 (parse_menu_item): Use AREF. If update_menu_bindings
9161 is 0, don't update menu bindings.
9162 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
9163
1efc2bb9
EZ
91642000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
9165
9166 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
9167 to `mark_object'.
9168
3f679f55
SM
91692000-10-02 Stefan Monnier <monnier@cs.yale.edu>
9170
9171 * syntax.c (forw_comment): Match nestedness of ender/starter.
9172 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
9173 (prev_char_comstart_first): Remove.
9174 (back_comment): Check two-char comment markers more carefully
9175 to better handle overlapping cases like *//* or /* */* */ ...
9176 Match nestedness of ender/starter.
9177
2021ab61
DL
91782000-10-02 Dave Love <fx@gnu.org>
9179
9180 * config.in (HAVE_GAI_STRERROR): Add undef.
9181
9182 * process.c (Fopen_network_stream): Use it.
9183
9184 * m/alpha.h (NO_REMAP): Don't define.
9185
64e6cc18
GM
91862000-10-02 Gerd Moellmann <gerd@gnu.org>
9187
9188 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
9189 return with a string converted to an integer or vice versa when
9190 Vmocklisp_arguments is t.
9191 (Fsignal): Likewise. The function can return for `quit'.
9192 (struct gcpro): Declare member `var' to point to a volatile
9193 Lisp_Object.
9194
9195 * eval.c (error): Prevent compiler warning.
9196
b1904cd9
SM
91972000-09-30 Stefan Monnier <monnier@cs.yale.edu>
9198
9199 * keymap.c (keymap_memberp): New function.
9200 (Fset_keymap_parent): Use it.
9201 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
9202 Use keymap_memberp to avoid creating cycles.
9203 (access_keymap): Use KEYMAPP.
9204
71c9ec51
GM
92052000-09-30 Gerd Moellmann <gerd@gnu.org>
9206
9207 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
9208 gai_strerror. Make sure xerrno is set if connect fails. Improve
9209 error recovery.
71c9ec51 9210
c70c6b58
JR
92112000-09-29 Jason Rumney <jasonr@gnu.org>
9212
9213 * w32term.c (w32_char_font_type, w32_encode_char)
9214 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
9215 (w32_bdf_per_char_metric): New function.
9216 (w32_per_char_metric): Use it.
9217 (x_draw_glyph_string_background): Always draw background for BDF
9218 glyphs.
9219
9220 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
9221 GDI object which is a scarce resource.
9222
9223 * w32bdf.c (search_file_line): Fix skipping of whitespace.
9224 (get_quoted_string): Fix limit on memchr search.
9225 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
9226 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
9227 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
9228 (get_cached_font_char, cache_char_offset): Use macro
9229 BDF_CODEPOINT_RANGE_COVER_P.
9230 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
9231 (clear_cached_bitmap_slots): New function.
9232 (GET_HEX_VALUE): G-Z, g-z are not hex.
9233 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
9234 (get_bitmap_with_cache): Use new cache implementation.
9235 (create_offscreen_bitmap): New function.
9236 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
9237
9238 * w32term.c (x_produce_glyphs): If the distance from the current
9239 position to the next tab stop is less than a canonical character
9240 width, use the tab stop after that.
9241 (x_draw_glyphs): Handle case START and END are out of bounds more
9242 carefully.
9243 (x_clear_mouse_face): Block/unblock input.
9244 (x_display_and_set_cursor): Don't show a hollow box cursor for
9245 buffers whose cursor_type is nil.
9246
fe01239f
GM
92472000-09-29 Gerd Moellmann <gerd@gnu.org>
9248
52283633 9249 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
9250
9251 * dispextern.h (updating_frame): Declare extern.
9252
e7c52f1f
AS
92532000-09-29 Andreas Schwab <schwab@suse.de>
9254
9255 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
9256
de6e1f7c
GM
92572000-09-29 Gerd Moellmann <gerd@gnu.org>
9258
25126faa
GM
9259 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
9260 use its function definition.
9261 (tool_bar_items): Likewise.
9262
de6e1f7c 9263 * lisp.h (fatal): Declare NO_RETURN.
52283633 9264
454ee39b
KH
92652000-09-29 Kenichi Handa <handa@etl.go.jp>
9266
9267 * keymap.c: Remove the line "#undef NULL".
9268
96301c5f
GM
92692000-09-28 Gerd Moellmann <gerd@gnu.org>
9270
52283633 9271 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 9272
efffeeb4
DL
92732000-09-28 Dave Love <fx@gnu.org>
9274
ecb8b666
DL
9275 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
9276
dc3cd20f
DL
9277 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
9278
9279 * .gdbinit (xreload): Note its need on GNU/Linux.
9280
efffeeb4
DL
9281 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
9282 r_alloc, r_alloc_free.
9283
8610d903
KH
92842000-09-28 Kenichi Handa <handa@etl.go.jp>
9285
9286 * syntax.c (skip_chars): Handle negation correctly.
9287
8901d1ac
GM
92882000-09-27 Gerd Moellmann <gerd@gnu.org>
9289
6f22f1ad
GM
9290 * xfaces.c (realize_default_face): Call set_lface_from_font_name
9291 with non-zero FORCE_P argument.
9292
52283633 9293 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
9294 Add assertions.
9295
9296 * xdisp.c (window_box_height): Add an assertion.
9297
9298 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
9299 tool-bar than is available.
9300 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
9301
36f1966f
DL
93022000-09-27 Dave Love <fx@gnu.org>
9303
efffeeb4 9304 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 9305
31d929e5
GM
93062000-09-26 Gerd Moellmann <gerd@gnu.org>
9307
c98863bf
GM
9308 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
9309 instead of BITS_PER_INT.
9310 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
9311 EMACS_UINT, respectively.
9312 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
9313
9314 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
9315
9316 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
9317
77072ab1
GM
9318 * window.c (freeze_window_starts): Construct last argument for
9319 foreach_window differently.
9320
9321 * xfns.c (x_decode_color): Don't return a Lisp_Object.
9322
9323 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
9324 EMACS_UINT instead of `int' and `unsigned int'.
9325 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
9326
9327 * frame.h (struct frame): Make the `nothing' member of union
9328 output_data an EMACS_INT.
9329
52283633 9330 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
9331 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
9332 size in the sdata structure.
9333 (SDATA_NBYTES, SDATA_DATA): New macros.
9334 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
9335 differently for the different layout of the sdata structure.
9336 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
9337 in sdata.
9338 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
9339 Check that size recorded in the string size and size recorded in
9340 the sdata structure agree.
9341
3e60b029
DL
93422000-09-25 Dave Love <fx@gnu.org>
9343
9344 * buffer.c: Include stdio.h.
9345
9346 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 9347
3e60b029
DL
9348 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
9349
9350 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 9351 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
9352 (__malloc_extra_blocks): Declare as __malloc_size_t.
9353
8ff16b4e
GM
93542000-09-25 Gerd Moellmann <gerd@gnu.org>
9355
755a2ccd
GM
9356 * alloc.c (mark_image): Use GC_NILP instead of NILP.
9357
d8b4516f
GM
9358 * keyboard.c (show_help_echo): Set help_echo_showing_p.
9359 (read_char): If help-echo is showing, preserve the echo area
9360 when redisplaying.
9361
9362 * xdisp.c (help_echo_showing_p): New variable.
9363 (set_message): Reset it to 0.
9364 (init_xdisp): Initialize help_echo_showing_p.
9365
9366 * dispextern.h (help_echo_showing_p): Declare extern.
9367
9368 * config.in: Fix typo in __GNUC_MINOR__.
9369
9370 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
9371
b11af2dd
GM
9372 * s/freebsd.h (POSIX_SIGNALS): Define.
9373
8ff16b4e
GM
9374 * xterm.c (x_clear_mouse_face): Block/unblock input.
9375
844eb643
DL
93762000-09-24 Dave Love <fx@gnu.org>
9377
9378 * fns.c (base64_encode_1): Fix last change.
9379
b30ab1b3
GM
93802000-09-22 Gerd Moellmann <gerd@gnu.org>
9381
9382 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
9383
9384 * xdisp.c (try_window_reusing_current_matrix): More fixes
9385 for the case window has a header-line.
9386
c6cbe5f0
DL
93872000-09-22 Dave Love <fx@gnu.org>
9388
4c7c1f3f
DL
9389 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
9390 a doc string.
9391
9392 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
9393
c6cbe5f0
DL
9394 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
9395
550a625e
GM
93962000-09-21 Gerd Moellmann <gerd@gnu.org>
9397
4c7c1f3f 9398 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
9399 for GCC >= 2.5.
9400
52283633
SM
9401 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
9402 Declare NO_RETURN.
fca99116 9403
80d26f99
GM
9404 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
9405 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
9406 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
9407 warnings.
52283633 9408
80d26f99
GM
9409 * marker.c (byte_char_debug_check): Return void.
9410
623a0aae
GM
9411 * xfns.c (Fx_create_frame): Set default frame parameter value
9412 for tool-bar-lines to 1.
9413
9414 * dispnew.c (scrolling_window): Compare y-positions of rows
9415 equal at the start. Some simplification.
9416
9417 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
9418 reused rows' y-position in the case window has a header-line, and
9419 new window start is greater than old window start.
9420
42ac0ae5
GM
9421 * process.c (process_sent_to): New variable.
9422 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
9423 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
9424 Declare more parameters volatile.
9425
550a625e
GM
9426 * lread.c (Vrecursive_load_depth_limit): New variable.
9427 (Fload): Check recursive loads whose recursion depth exceeds
9428 Vrecursive_load_depth_limit.
9429 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
9430
8320414c
GM
94312000-09-20 Gerd Moellmann <gerd@gnu.org>
9432
f46c275e
GM
9433 * fileio.c (Fread_file_name): Doc fix.
9434
9435 * editfns.c (Fmessage_or_box): Doc fix.
9436
9437 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
9438
b7e11c5b 9439 * xfns.c (xbm_scan): Allow C-style comments.
52283633 9440
8320414c
GM
9441 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
9442 symbols are specified, add color translations to the cache.
52283633 9443 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
9444 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
9445 xpm_cache_color.
9446 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
9447 structures to xpm_init_color_cache.
9448
da1608d9
GM
94492000-09-19 Gerd Moellmann <gerd@gnu.org>
9450
52283633 9451 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 9452
6badfa25
AI
94532000-09-19 Andrew Innes <andrewi@gnu.org>
9454
9455 * makefile.nt (bootstrap-emacs): Don't change directory.
9456
3a5f42bb
KH
94572000-09-19 Kenichi Handa <handa@etl.go.jp>
9458
1b7649bd
KH
9459 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
9460
3a5f42bb
KH
9461 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
9462 If output buffer is too small, signal an appropriated error.
9463
9f83cf0b
DL
94642000-09-18 Dave Love <fx@gnu.org>
9465
52283633 9466 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
9467 (current_active_maps): Remove redundant get_local_map call.
9468
28c7826c
GM
94692000-09-18 Gerd Moellmann <gerd@gnu.org>
9470
5cefa566
GM
9471 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
9472 cursor for buffers whose cursor_type is nil.
52283633 9473
6fed3546
GM
9474 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
9475 a feature to implement that is already implemented.
9476 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
9477 warnings.
9478
9479 * xfns.c (x_clear_image_1): New function.
9480 (x_clear_image): Use it.
52283633 9481 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 9482
05b1f851
GM
9483 * dispnew.c (update_window): Move test for invisible lines
9484 at the top to update_window_line.
9485 (update_window_line): Handle invisible lines here.
9486
f4779de9
GM
9487 * xfns.c (clear_image_cache): Clear current matrices of all
9488 frames sharing an image cache. Block input while freeing
9489 images. Fix timestamp comparison.
9490 (x_clear_image): Also free the mask.
9491
28c7826c
GM
9492 * xfns.c (lookup_image): Block input while loading the image so
9493 that we won't get interrupted in a state where the image isn't yet
9494 set up completely.
9495 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
9496 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
9497 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 9498 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 9499
b7412313
GM
95002000-09-16 Gerd Moellmann <gerd@gnu.org>
9501
9502 * dispnew.c (update_window): Make sure to make desired rows
9503 current even if they are completely invisible at the top
9504 of a window.
9505
47e351a3
GM
95062000-09-15 Gerd Moellmann <gerd@gnu.org>
9507
7f8f1edc
GM
9508 * xfns.c (lookup_image): Build mask before applying an algorithm.
9509 Recognize algorithm `disabled'.
9510 (cross_disabled_images): New variable.
9511 (COLOR_INTENSITY): New macro.
9512 (x_detect_edges): Use COLOR_INTENSITY.
9513 (x_disable_image): New function.
9514 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
9515
9516 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
9517 disabled state, don't apply an image transformation algorithm if
9518 the user specified an image for the disabled state. Use
28c7826c 9519 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
9520 user hasn't specified an image.
9521
ebb8f116
GM
9522 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
9523 allocation functions with the XPM lib.
9524 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
9525 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
9526 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
9527 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 9528 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
9529 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
9530 functions, if possible, because these handle color allocation
9531 failure more gracefully.
9532 (Fimage_mask_p): New function.
9533
47e351a3
GM
9534 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
9535 (Qedge_detection, Qheuristic): New symbols.
9536 (syms_of_xfns): Initialize new symbols.
9537 (lookup_image): Handle `:mask X', `:algorithm emboss', and
9538 `algorithm (edge-detection ...)'.
9539 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
9540 (tiff_format, gif_format, gs_format): Add `:mask'.
9541 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
9542 (GIF_MASK, GS_MASK): New enumerators.
9543 (x_laplace_read_row, x_laplace_write_row): Functions removed.
9544 (emboss_matrix, laplace_matrix): New variables.
9545 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
9546 (x_edge_detection): New functions.
9547 (x_laplace): Rewritten in terms of x_detect_edges.
9548 (x_build_heuristic_mask): If image has a mask, free it.
9549
fe83b953
AI
95502000-09-14 Andrew Innes <andrewi@gnu.org>
9551
9552 * makefile.w32-in: Revert to Unix line endings.
9553
3021e816
AI
95542000-09-14 Andrew Innes <andrewi@gnu.org>
9555
9556 * makefile.w32-in: Standardize indentation somewhat.
9557 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
9558 cater for differences between shells.
9559
9560 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
9561
2a32b5ea
GM
95622000-09-14 Gerd Moellmann <gerd@gnu.org>
9563
9564 * xterm.c (x_produce_glyphs): If the distance from the current
9565 position to the next tab stop is less than a canonical character
9566 width, use the tab stop after that.
9567
b4331e96
DL
95682000-09-14 Dave Love <fx@gnu.org>
9569
9570 * buffer.c (alloc_buffer_text): Fix xmalloc call.
9571
ef9e4345
GM
95722000-09-14 Gerd Moellmann <gerd@gnu.org>
9573
085536c2
GM
9574 * xdisp.c (handle_fontified_prop): While running fontification
9575 functions, bind `fontification-functions' and
9576 `after-change-functions' to nil.
9577
ef9e4345
GM
9578 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
9579 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
9580
9581 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
9582
9583 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
9584 USE_MMAP_FOR_BUFFERS.
9585
9586 * insdel.c (make_gap): Use enlarge_buffer_text.
9587
9588 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
9589 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
9590 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
9591 from former r_alloc_* functions in ralloc.c.
52283633 9592 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
9593 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
9594 (mmap_init) [REL_ALLOC_MMAP]: New function.
9595 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
9596 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
9597 BUFFER_FREE.
9598
9599 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
9600 (enlarge_buffer_text): Add prototype.
9601
9602 * ralloc.c: Remove everything having to do with the use of mmap.
9603
f8608968
GM
96042000-09-13 Gerd Moellmann <gerd@gnu.org>
9605
2a494b2d
GM
9606 * sound.c (Fplay_sound): Doc fix.
9607
8c907a56
GM
9608 * keyboard.c: Avoid some more compiler warnings.
9609 (parse_tool_bar_item): Ignore cached key bindings.
9610
f8608968
GM
9611 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
9612 and allocation of Lisp data.
9613
6ab70e9a
GM
96142000-09-12 Gerd Moellmann <gerd@gnu.org>
9615
d12d0a9b
GM
9616 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
9617 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
9618 defaults first.
9619
6ab70e9a
GM
9620 * lread.c (Fload): Put code checking for recursive loads in #if 0.
9621
63c36c3c
KH
96222000-09-12 Miyashita Hisashi <himi@meadowy.org>
9623
9624 * ccl.c: Comment fixed.
9625 (MAX_MAP_SET_LEVEL): Increased to 30.
9626 (PUSH_MAPPING_STACK): Enclose with do-while block.
9627 (POP_MAPPING_STACK): Likewise.
9628 (stack_idx_of_map_multiple): New variable.
9629 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
9630 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 9631 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
9632 (ccl_driver) <CCL_MapSingle>: Likewise.
9633 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
9634 with the case where looking up process reaches to the end of
9635 map-set, and call CCL programs as the above change.
9636
7ee3bd7b
GM
96372000-09-11 Gerd Moellmann <gerd@gnu.org>
9638
8ec8a5ec
GM
9639 * xfns.c (png_load, jpeg_load): Declare some variables volatile
9640 that might be clobbered by longjmp.
9641 (check_x_display_info, x_decode_color, create_frame_xic)
9642 (Fx_display_backing_store, Fx_display_visual_class)
52283633 9643 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 9644
f74b0705
GM
9645 * lread.c (init_lread): Set Vloads_in_progress to nil.
9646 (Fload): Show list of recursively loaded files, when signaling an
9647 error.
9648
7ee3bd7b
GM
9649 * lread.c (Vloads_in_progress): New variable.
9650 (record_load_unwind): New function.
9651 (Fload): Check for recursive loads.
9652 (syms_of_lread): Initialize Vloads_in_progress.
9653 (read_integer, read1): Avoid some compiler warnings.
9654
9655 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
9656 compiler warnings.
9657
974e1e5b
MB
96582000-09-11 Miles Bader <miles@gnu.org>
9659
9660 * editfns.c (Fbuffer_string): Doc fix.
9661
9824c4e3
GM
96622000-09-10 Gerd Moellmann <gerd@gnu.org>
9663
9664 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
9665
6a72fdd1
KR
96662000-09-09 Ken Raeburn <raeburn@gnu.org>
9667
9668 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
9669 whether to include other header files.
9670
28e6fb66
GM
96712000-09-09 Gerd Moellmann <gerd@gnu.org>
9672
52283633 9673 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 9674 by Fmemq as a boolean.
28e6fb66 9675
7f8b6551
SM
96762000-09-08 Stefan Monnier <monnier@cs.yale.edu>
9677
9678 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
9679
a8710abf
GM
96802000-09-08 Gerd Moellmann <gerd@gnu.org>
9681
d1a02881
GM
9682 * ralloc.c (mmap_fd): Remove initializer which can make it
9683 read-only in a dumped Emacs.
9684 (mmap_fd_1): New variable.
9685 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
9686 restore it from there.
9687 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
9688 unconditionally so that mmap_fd can be initialized there.
9689 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
9690 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
9691 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
9692
c454aac1
GM
9693 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
9694
9695 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 9696 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 9697
fc653ef2
GM
9698 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
9699
3015eec0
GM
9700 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
9701 inheritance.
9702
bfe0ee88
GM
9703 * xdisp.c (try_window_id): When trying to locate cursor in
9704 unchanged rows at the top, handle the case that we can't find it.
9705
a8710abf
GM
9706 * xterm.c (x_draw_glyphs): Handle case START and END are out
9707 of bounds more carefully.
9708
6b7d4ae4
DL
97092000-09-08 Dave Love <fx@gnu.org>
9710
423193c5
DL
9711 * s/sol2.h (REL_ALLOC_MMAP): Define.
9712 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
9713
9714 * ralloc.c: Don't include string.h (redundant).
9715 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
9716 [!MAP_ANON]: Include fcntl.h.
9717 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
9718 (r_alloc, r_re_alloc, r_alloc_free)
9719 (mmap_enlarge, mmap_set_vars): Use it.
9720 (r_alloc_init_fd): New function.
9721 (__morecore) [SYSTEM_MALLOC]: Don't declare.
9722 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
9723 malloc type.
9724
9725 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
9726 Remove vm-limit.o.
9727
6b7d4ae4
DL
9728 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
9729 change to __NetBSD__.
9730
44d31981
KH
97312000-09-08 Kenichi Handa <handa@etl.go.jp>
9732
9733 * search.c (compile_pattern): Check the multibyteness of cached
9734 string and PATTERN.
9735
aad40737
MB
97362000-09-08 Miles Bader <miles@gnu.org>
9737
9738 * xfaces.c (default_face_vector): Function removed.
9739 (Finternal_merge_in_global_face): Restore old global/local
9740 attribute override order. Use inline loop instead of calling
9741 default_face_vector.
9742
91a211b5
GM
97432000-09-07 Gerd Moellmann <gerd@gnu.org>
9744
9745 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
9746 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
9747 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
9748 where necessary, in case POINTER_TYPE is `void'.
9749
03419440
EZ
97502000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
9751
9752 * frame.c (make_terminal_frame): Initialize frame foreground and
9753 background colors to unspecified, for the initial instance of an
9754 MSDOS frame.
9755
f46f845b
GM
97562000-09-07 Gerd Moellmann <gerd@gnu.org>
9757
24f76fbf
GM
9758 * ralloc.c (mmap_find): Fix overlap computation.
9759 (mmap_enlarge): Compute nbytes before trying to find an
9760 overlapping region.
9761
f46f845b
GM
9762 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
9763 instead of `!='.
9764
9765 * lread.c (syms_of_lread): Change value of regexp
9766 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
9767
9768 * xmenu.c (xdialog_show): When looking up the selection in
9769 menu_items, take `quote' boundaries into account; this corresponds
9770 to a nil ITEM in x-popup-dialog.
9771
3c014385
KH
97722000-09-07 Kenichi Handa <handa@etl.go.jp>
9773
fd6f711b
KH
9774 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
9775 not 0x81.
9776 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
9777
3c014385 9778 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
9779 encoding, not decoding. Fix the handling of latin-jisx0201.
9780 Check for the charset katakana-jisx0201 too.
3c014385 9781 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 9782 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 9783
0da3ecef
GM
97842000-09-07 Gerd Moellmann <gerd@gnu.org>
9785
ab0ee409
GM
9786 * xfaces.c (Vparam_value_alist): New variable.
9787 (syms_of_xfaces): Initialize it.
9788 (Finternal_set_lisp_face_attribute): Avoid more consing.
9789
9790 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
9791 specially.
9792 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
9793 (Qbackground_mode): New variable.
9794 (syms_of_frame_1): Initialize Qbackground_mode.
9795
9796 * lisp.h (Qdisplay): Declare extern.
1091dd67 9797
0da3ecef
GM
9798 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
9799 change face on all frames, and change the default for new frames.
9800
b14654b9
DL
98012000-09-07 Dave Love <fx@gnu.org>
9802
9803 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
9804
d24fd56f
KH
98052000-09-07 Kenichi Handa <handa@etl.go.jp>
9806
794f3670
KH
9807 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
9808
0fddd0dc
KH
9809 * charset.c: Include composite.h
9810 (lisp_string_width): New function.
9811 (Fstring_width): Call lisp_string_width instead of strwidth.
9812
9813 * Makefile.in (charset.o): Depends on composite.h.
9814
d24fd56f
KH
9815 * process.c (read_process_output): Before inserting the decoded
9816 text in the buffer, adjust the multibyteness.
9817
fa0b693c
GM
98182000-09-06 Gerd Moellmann <gerd@gnu.org>
9819
52283633 9820 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
9821 buffer's text buffer is null, map new memory.
9822
0a58f946
GM
9823 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
9824 POINTER_TYPE and size_t.
9825 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
9826 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
9827 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
9828 [REL_ALLOC_MMAP]: New macros.
9829 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
9830 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
9831 [REL_ALLOC_MMAP]: New functions.
9832
9833 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
9834 before and after unexec.
9835
9836 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
9837 text buffers if necessary.
9838
9839 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
9840 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
9841 in prototypes.
9842
fa0b693c
GM
9843 * config.in (HAVE_MMAP): Add #undef.
9844
877055f6
GM
98452000-09-05 Gerd Moellmann <gerd@gnu.org>
9846
08ba3862
GM
9847 * frame.c (Qdisplay_type): New variable.
9848 (syms_of_frame_1): Initialize it.
9849 (Fframe_parameter): New function that avoids consing.
9850 (syms_of_frame): Defsubr it.
9851
66ffe51c
GM
9852 * buffer.c (Fother_buffer): Consider buffers as invisible when
9853 they are displayed in a window on an invisible frame.
9854
877055f6
GM
9855 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
9856 get-largest-window always return nil.
9857
bb970e67
GM
98582000-09-04 Gerd Moellmann <gerd@gnu.org>
9859
9860 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
9861 variable; recognize Emacs 19 elc files.
9862
7a3d0e0e
MB
98632000-09-04 Miles Bader <miles@gnu.org>
9864
9865 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
9866 before initially popping up the menu, so the menu doesn't flash
52283633 9867 when the face settings are significantly different from the defaults.
7a3d0e0e 9868
14473664
SM
98692000-09-04 Stefan Monnier <monnier@cs.yale.edu>
9870
9871 * regex.c (WIDE_CHAR_SUPPORT): New macro.
9872 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
9873 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
9874 (BIT_UNIBYTE): Remove.
9875 (re_match_2_internal): Delete corresponding code and streamline the
9876 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
9877 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
9878 (re_wctype_t): New type.
9879 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
9880 (regex_compile): Use them and fix handling of overly long char classes.
9881
c1174479
AI
98822000-09-03 Andrew Innes <andrewi@gnu.org>
9883
f8803e97
AI
9884 * makefile.w32-in: Change to DOS line endings.
9885
c1174479
AI
9886 * s/ms-w32.h (ORDINARY_LINK): New define.
9887
9888 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
9889 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
9890
9891 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
9892 (distclean): Delete them here instead.
9893
44ef7cf6
AI
9894 * w32proc.c (compare_env): Convert to uppercase for comparison,
9895 not lowercase, to match how the native Windows shell works.
9896
49b3bd82
JR
98972000-09-03 Jason Rumney <jasonr@gnu.org>
9898
9899 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
9900 CVS changes the line-ends when checking in/out on DOS/Windows.
9901
9902 * makefile.nt (emacs): Do not change directory to run temacs, as
9903 the load-path is set relative to current directory.
9904
a3d35a39
MB
99052000-09-03 Miles Bader <miles@gnu.org>
9906
9907 * xterm.c (x_alloc_lighter_color_for_widget): New function.
9908
d276b0cf
GM
99092000-09-02 Gerd Moellmann <gerd@gnu.org>
9910
715e84c9
GM
9911 * xdisp.c (redisplay_mode_lines): New function.
9912 (display_mode_lines): Return number of mode lines displayed.
9913 (echo_area_display): Use redisplay_mode_lines to draw garbaged
9914 mode lines. Don't temporarily bind redisplay-dont-pause to t.
9915
8892f40b
GM
9916 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
9917 string.h and strings.h.
9918 (index) [HAVE_INDEX]: Add prototype.
9919
d276b0cf
GM
9920 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
9921 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
9922
9923 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
9924 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9925
38404229
GM
99262000-09-01 Gerd Moellmann <gerd@gnu.org>
9927
9928 * lread.c (read1): Accept `?' as symbol constituent, for
9929 compatiblity with XEmacs.
9930
c0f9ea08
SM
99312000-08-31 Stefan Monnier <monnier@cs.yale.edu>
9932
9933 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
9934 (struct re_pattern_buffer): Remove newline_anchor.
9935 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
9936 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
9937 (re_max_failures, fail_stack): Use size_t rather than unsigned.
9938 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
9939 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
9940 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
9941 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
9942 Get rid of references to newline_anchor.
9943 (regcomp): Allocate and precompute a fastmap.
9944
8c0f83fe
GM
99452000-08-31 Gerd Moellmann <gerd@gnu.org>
9946
9947 * lread.c (openp): GCPRO local variable `filename'.
9948
4bb91c68
SM
99492000-08-30 Stefan Monnier <monnier@cs.yale.edu>
9950
9951 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
9952
9953 * regex.c: Merge some changes from GNU libc. Add prototypes.
9954 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
9955 Use memcmp and memcpy instead of bcopy and bcmp.
9956 (init_syntax_once): Use ISALNUM.
9957 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
9958 (REG_UNSET_VALUE): Remove. Use NULL instead.
9959 (REG_UNSET, re_match_2_internal): Use NULL.
9960 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
9961 New macros.
9962 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
9963 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
9964 (regex_compile): In handle_interval, return an error rather than try to
9965 unfetch the interval if we can't find the closing brace.
9966 Obey the RE_NO_GNU_OPS syntax bit.
9967 (TOLOWER): New macro.
9968 (regcomp): Use it.
9969 (regexec): Allocate regs.start and regs.end as one block.
9970
5226a931
GM
99712000-08-30 Gerd Moellmann <gerd@gnu.org>
9972
868dd24b
GM
9973 * xdisp.c (echo_area_display): Check display_completed instead
9974 of calling detect_input_pending.
9975
9976 * dispnew.c (update_frame): Only set display_completed here; move
9977 the update_begin and update_end calls here from update_frame_1.
9978 (update_frame_1): Don't set display_completed here, don't call
9979 update_begin/update_end.
9980
5226a931
GM
9981 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
9982 instead of store_frame_param.
9983
2a8bd25f
GM
99842000-08-29 Gerd Moellmann <gerd@gnu.org>
9985
9986 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
9987 desired window matrix hasn't been displayed, use the current row
9988 instead. Make sure that only those frame rows are updated for
9989 which there exists a corresponding enabled desired row.
52283633 9990
ba3478d9
MB
99912000-08-29 Miles Bader <miles@gnu.org>
9992
9993 * xfaces.c (default_face_vector): New function.
9994 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
9995
87d0f685
GM
99962000-08-29 Gerd Moellmann <gerd@gnu.org>
9997
9998 * lread.c (openp): Prevent temporary string passed to
9999 Ffile_readable_p from being garbage collected.
10000
6fa86045
DL
100012000-08-28 Dave Love <fx@gnu.org>
10002
10003 * keymap.c (store_in_keymap): Add `static' to declaration.
10004
bb17930d
GM
100052000-08-28 Gerd Moellmann <gerd@gnu.org>
10006
10007 * emacs.c, callint.c, doc.c, editfns.c
10008 (toplevel) [HAVE_STRING_H]: Include string.h.
10009 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
10010 (index): Remove prototypes which might conflict with non-standard
10011 definitions of index/strchr.
10012
10013 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
10014 (rindex): Define only if !HAVE_RINDEX.
10015
10016 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
10017
10018 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
10019
87188200
MB
100202000-08-28 Miles Bader <miles@gnu.org>
10021
10022 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
10023 made inconsistent by a font-related attribute in FROM.
10024 (merge_face_inheritance): Add function comment.
10025
41a68aef
KH
100262000-08-28 Kenichi Handa <handa@etl.go.jp>
10027
10028 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
10029 the 4th arg (PREV_EVENT) Qt to suppress input method.
10030
f7c436c1
SM
100312000-08-27 Stefan Monnier <monnier@cs.yale.edu>
10032
0b32bf0e
SM
10033 * regex.c: Indent cpp directives and remove parens after `defined'.
10034 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
10035 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
10036 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
10037 (re_compile_pattern): Use size_t for length.
10038 (init_syntax_once): Move to a better place.
10039 * regex.h: Merge changes from GNU libc. Indent cpp directives.
10040 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
10041
f7c436c1
SM
10042 * syntax.c (back_comment): Detect cases where a comment-starter is
10043 actually inside another comment as in: /* a // b */ c // d \n.
10044 Make it clear that `comstart_pos' is unused for nested comments.
10045
10046 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
10047 (KEYMAPP): New macro.
10048 (Fkeymap_parent, Fset_keymap_parent): Use it.
10049 (fix_submap_inheritance): Mark it static.
10050 (define_as_prefix, describe_buffer_bindings, describe_command)
10051 (describe_translation, describe_map): Complete prototypes.
10052
10053 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
10054
10055 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
10056 to better match the key-lookup behavior.
10057
6288c62f
GM
100582000-08-27 Gerd Moellmann <gerd@gnu.org>
10059
10060 * xfaces.c (lface_fully_specified_p): Handle :inherit.
10061 (Finternal_set_lisp_face_attribute): Fix typo in error message.
10062
e931344e
EZ
100632000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
10064
10065 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
10066 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
10067 (xterm.o): Depend on coding.h
10068
d10dfeef
KH
100692000-08-26 Kenichi Handa <handa@etl.go.jp>
10070
10071 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
10072 the corresponding '#endif'.
10073
2d73e8d3
MB
100742000-08-26 Miles Bader <miles@gnu.org>
10075
10076 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
10077 * xfaces.c (QCinherit): New variable.
10078 (syms_of_xfaces): Initialize it.
10079 (LFACE_INHERIT): New macro.
10080 (Finternal_get_lisp_face_attribute)
52283633 10081 (merge_face_vector_with_property)
2d73e8d3
MB
10082 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
10083 (check_lface_attrs): Allow new types of face height. Check
10084 inherit attribute.
10085 (CYCLE_CHECK): New macro.
10086 (merge_face_inheritance): New function.
10087 (merge_face_vectors): Merge inherited faces too. Add F and
10088 CYCLE_CHECK arguments.
10089 (merge_face_vector_with_property, Finternal_merge_in_global_face)
10090 (lookup_named_face, lookup_derived_face, realize_named_face)
10091 (face_at_string_position, face_at_buffer_position): Supply
10092 new F and CYCLE_CHECK arguments to merge_face_vectors.
10093 (merge_face_heights): New function.
52283633 10094 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
10095 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
10096 handle relative face heights.
10097 (lface_same_font_attributes_p): Compare heights using EQ.
10098
6ce974d4
KH
100992000-08-26 Kenichi Handa <handa@etl.go.jp>
10100
10101 * charset.c (char_to_string): Check the character validity.
52283633 10102 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 10103
dc1e502d
SM
101042000-08-25 Stefan Monnier <monnier@cs.yale.edu>
10105
10106 * regex.c (PUSH_FAILURE_COUNT): New macro.
10107 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
10108 Handle popping of a register's or a counter's data.
10109 (POP_FAILURE_POINT): Use the new name.
10110 (re_match_2_internal): Push counter data on the stack for succeed_n,
10111 jump_n and set_number_at and remove misleading dead code in succeed_n.
10112
bd9d0f3f
GM
101132000-08-25 Gerd Moellmann <gerd@gnu.org>
10114
10115 * xdisp.c (redisplay_internal): If considering all windows on all
10116 frames, update the display for each frame as soon as possible,
10117 instead of first building all desired matrices for all frames, and
10118 then updating them all.
10119 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
10120
aa5b8e15
GM
101212000-08-24 Gerd Moellmann <gerd@gnu.org>
10122
17494071
GM
10123 * bytecode.c (mark_byte_stack): Add a comment.
10124
52283633
SM
10125 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
10126 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
10127 a graphical frame.
10128
c543db81
KH
101292000-08-24 Kenichi Handa <handa@etl.go.jp>
10130
d246d5f5
KH
10131 * minibuf.c (do_completion): Always use compare-string, not
10132 string-equal because the latter doesn't pay attention to
10133 multibyteness of strings.
10134
c543db81
KH
10135 * process.c (create_process): Don't setup raw-text coding here.
10136 (Fopen_network_stream): Don't set coding->src_multibyte and
10137 coding->dst_multibyte here.
10138 (read_process_output): For process filter, return unibyte string
10139 if default-enable-multibyte-characters is nil.
10140 (send_process): If OBJECT is multibyte text, be sure to encoded it
10141 by the specified coding system for the process. Otherwise, setup
10142 raw-text coding.
52283633 10143 (init_process): Don't initialize default-process-coding-system here.
c543db81 10144
9b47cfe0
EZ
101452000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
10146
10147 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
10148 <scroll-down-aggressively>: Likewise.
10149
f5a36960
KH
101502000-08-23 Kenichi Handa <handa@etl.go.jp>
10151
10152 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
10153 zero. Set coding->produced_char correctly.
10154
69a7ffa7
AI
101552000-08-22 Andrew Innes <andrewi@gnu.org>
10156
10157 * makefile.w32-in: New file.
10158
10159 * unexw32.c (unexec): Ignore old_name, and use the actual location
10160 of the current executable instead. Base new_name on this.
10161
10162 * w32proc.c (create_child): Remove reference to security
10163 descriptor, which isn't needed and doesn't compile with mingw32.
10164
10165 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10166 up dllimport attributes.
10167 (x_update_window_end): Update prototype.
10168
10169 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
10170 extern, which screws up dllimport attributes.
10171
10172 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10173 up dllimport attributes.
10174
10175 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
10176 screws up dllimport attributes.
10177
10178 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10179 up dllimport attributes.
10180 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
10181 screws up dllimport attributes.
10182
10183 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10184 up dllimport attributes.
10185
10186 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
10187 screws up dllimport attributes.
10188
10189 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
10190 screws up dllimport attributes.
10191
10192 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10193 up dllimport attributes.
10194
10195 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
10196 unnecessary extern, which screws up dllimport attributes.
10197 (main): Ditto.
10198
10199 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10200 up dllimport attributes.
10201
10202 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
10203 unnecessary extern, which screws up dllimport attributes.
10204
10205 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
10206 screws up dllimport attributes.
10207
10208 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10209 up dllimport attributes.
10210
10211 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
10212
52283633
SM
10213 * w32bdf.c (search_file_line):
10214 (set_bdf_font_info):
10215 (seek_char):
10216 (w32_get_bdf_glyph):
69a7ffa7
AI
10217 (w32_BDF_to_x_font): Fix compile warnings.
10218
52283633 10219 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
10220
10221 * w32select.c: Include keyboard.h before frame.h.
10222
10223 * w32fns.c (max): Define macro.
10224 (JOHAB_CHARSET): Define if not known.
10225 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
10226 (Fx_show_tip): Synch with X version.
10227
10228 * w32xfns.c: Include keyboard.h before frame.h.
10229
10230 * w32fns.c: Include keyboard.h before frame.h.
10231
10232 * w32term.c: Include keyboard.h before frame.h.
10233
10234 * fontset.c: Include keyboard.h before frame.h.
10235
10236 * w32inevt.c: Include keyboard.h before frame.h.
10237 (MOUSE_MOVED): Define if not known.
10238
10239 * minibuf.c: Include keyboard.h before frame.h.
10240
10241 * keyboard.c: Include keyboard.h before frame.h.
10242
10243 * indent.c: Include keyboard.h before frame.h.
10244
10245 * dispnew.c: Include keyboard.h before frame.h.
10246
10247 * buffer.c: Include keyboard.h before frame.h.
10248
10249 * alloc.c: Include keyboard.h before frame.h.
10250
10251 * print.c: Include keyboard.h before frame.h.
10252
10253 * process.c: Include keyboard.h before frame.h.
10254
10255 * scroll.c: Include keyboard.h before frame.h.
10256
10257 * sysdep.c: Include keyboard.h before frame.h.
10258
10259 * term.c: Include keyboard.h before frame.h.
10260
10261 * window.c: Include keyboard.h before frame.h.
10262
10263 * xdisp.c: Include keyboard.h before frame.h.
10264 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
10265
10266 * frame.c: Include keyboard.h before frame.h.
10267
10268 * w32heap.h: Undefine min, max.
10269
10270 * w32gui.h: Undefine min, max.
10271
10272 * unexw32.c: Change PUCHAR to PCHAR.
10273 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
10274 (relocate_offset):
10275 (get_section_info):
69a7ffa7
AI
10276 (copy_executable_and_dump_data): Remove unnecessary static defs.
10277 (copy_executable_and_dump_data): Fix compile warnings.
10278
10279 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
10280
10281 * w32console.c (min): Define macro.
10282 (clear_frame, write_glyphs): Fix compile warning.
10283
52283633 10284 * w32proc.c (compare_env):
69a7ffa7
AI
10285 (find_child_console): Fix compile warning.
10286
10287 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
10288 sys_errlist instead of _sys_errlist.
10289 (get_emacs_configuration_options): New function.
10290
10291 * s/ms-w32.h (sys_nerr): Provide default definition.
10292 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
10293 name with _ prepended.
10294 (NSIG): Define if not known.
10295 (get_emacs_configuration): Provide extern declaration.
10296 (get_emacs_configuration_options): Provide extern declaration.
10297 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
10298
10299 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 10300 (map_w32_filename):
69a7ffa7
AI
10301 (read_unc_volume): Fix compile warning.
10302
10303 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
10304 definitions from being used.
10305
10306 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
10307
52283633 10308 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
10309 (open_unc_volume): Make arg const.
10310
10311 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
10312 (read_input_waiting): Remove excess parameter.
10313
10314 * w32.c (init_environment): Call _access.
10315 (check_windows_init_file): Call _close.
10316 (init_user_info): Call _putenv.
10317 (init_environment): Call _putenv and _strdup.
10318 (init_ntproc): Reset volume info cache on startup.
10319
10320 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
10321 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
10322 cannot override the CRT malloc.
10323
10324 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
10325 (LINK_FLAGS): Append to original value of LINK_FLAGS.
10326
10327 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
10328 unless we are linking with a static CRT.
10329 (RVA_TO_PTR): Cast result to unsigned char*.
10330
10331 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
10332 (add_volume_info): Use xstrdup.
10333
25060080
SM
103342000-08-22 Stefan Monnier <monnier@cs.yale.edu>
10335
10336 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
10337 (do_completion, Fminibuffer_complete_word): Use it.
10338 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
10339 var so it can take non-boolean values.
10340
6917e6bb
GM
103412000-08-21 Gerd Moellmann <gerd@gnu.org>
10342
acb7cc89 10343 * editfns.c (find_field): Formatting changes.
52283633 10344 (toplevel): Some old-style function forward declarations
acb7cc89
GM
10345 changed to prototypes, some new protypes added, some functions
10346 made static.
10347
10348 * lisp.h (set_time_zone_rule): Add prototype.
10349 (use_dialog_box): External declaration.
10350
0bbfdc25
GM
10351 * keyboard.c (gen_help_event): Add parameter SIZE.
10352 (kbd_buffer_events_waiting): Slightly rewritten.
10353 (clear_event): New function.
10354 (kbd_buffer_get_event): Use it, and clear the input_events of
10355 HELP_EVENTs.
10356 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
10357 don't fill the newly created array with nils.
10358 (toplevel): Convert some old-style function forward declarations
10359 to prototypes.
10360
10361 * keyboard.h (gen_help_event): Change prototype.
10362
10363 * xterm.c (XTread_socket): Change calls to gen_help_event.
10364
10365 * w32term.c (w32_read_socket): Change calls to gen_help_event.
10366
6917e6bb
GM
10367 * eval.c (Fmacroexpand): Doc fix.
10368
e5cd3d11
JR
103692000-08-20 Jason Rumney <jasonr@gnu.org>
10370
10371 * w32term.h (x_display_info_for_display): Remove as this function
10372 does not exist on W32.
10373
10374 * w32term.c (help_echo_window): New variable.
10375 (syms_of_w32term): staticpro it.
10376 (note_mode_line_highlight): Set it.
10377 (XTextExtents16): Removed as there is no equivalent on W32.
10378 (x_compute_glyph_string_overhangs): Incomplete body removed, as
10379 the X way of doing this will not work for W32.
10380 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
10381 (x_draw_image_foreground): Avoid drawing outside of the clip area
10382 when image doesn't have a mask.
10383 (note_mouse_highlight): Process overlays in the right order of
10384 priority. Set help_echo_window.
10385 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
10386 because that's more visible for large images.
10387
10388 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
10389 name to single_keymap_panes.
10390 (w32_menu_show): Set wv->title when dealing with titles.
10391 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
10392
6e69ab8c
MB
103932000-08-21 Miles Bader <miles@gnu.org>
10394
10395 * minibuf.c (do_completion): Try again if we rewrite the input
10396 string, but no completion was done, so that any completion message
10397 will be correct.
10398
511bd4eb
GM
103992000-08-20 Gerd Moellmann <gerd@gnu.org>
10400
10401 * xfaces.c (lface_equal_p): Compare strings differently.
10402 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
10403 (realize_tty_face): Use them.
10404 (syms_of_xfaces): Initialize new variables.
10405 (map_tty_color): New function, extracted from realize_tty_face.
10406 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
10407 foreground or background color, store the new color name in the
10408 realized face; previous code trying to do this had no effect.
10409 (realize_tty_face): Use map_tty_color.
10410 (Fclear_face_cache): Set face_change_count and ensure thorough
10411 redisplay.
10412
1433385f
GM
104132000-08-19 Gerd Moellmann <gerd@gnu.org>
10414
511bd4eb
GM
10415 * undo.c (record_first_change, record_marker_adjustment): Don't
10416 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 10417
419ac0a2
KH
104182000-08-18 Kenichi Handa <handa@etl.go.jp>
10419
10420 * coding.c (decode_coding_string): Set members consumed,
10421 consumed_char, produced, produced_char of *coding correctly. If
10422 decode_coding doesn't consume any byte, don't try anymore.
10423 (encode_coding_string): Likewise.
10424
7eb9e30d
GM
104252000-08-18 Gerd Moellmann <gerd@gnu.org>
10426
511bd4eb
GM
10427 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
10428 conditional have void type, for Standard C compilers.
7eb9e30d
GM
10429
10430 * xdisp.c (redisplay_internal): Compare windows for equality with
10431 EQ, instead of applying XWINDOW to something that might not
10432 be a window.
52283633 10433
dd34a735
KH
104342000-08-18 Kenichi Handa <handa@etl.go.jp>
10435
10436 * fontset.c (Finternal_char_font): Search only the selected frame
10437 for a window of the current buffer.
10438
385ff9e3
GM
104392000-08-18 Gerd Moellmann <gerd@gnu.org>
10440
511bd4eb 10441 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
10442 Lisp_Objects.
10443
385ff9e3
GM
10444 * keyboard.c (kbd_buffer_get_event): Handle the case that the
10445 second half of a HELP_EVENT is found at the start of kbd_buffer.
10446
d6abb4c7
MB
104472000-08-18 Miles Bader <miles@gnu.org>
10448
4618074a
MB
10449 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
10450
d6abb4c7
MB
10451 * editfns.c (save_restriction_save): Rewrite to use markers.
10452 (save_restriction_restore): Rewrite to understand new form of data
10453 saved by save_restriction_save.
10454 (Fsave_restriction): Remove cautionary note in doc-string.
10455
a7b28523
GM
104562000-08-17 Gerd Moellmann <gerd@gnu.org>
10457
10458 * fileio.c (build_annotations): Add a comment explaining the
10459 return value of format-annotate-function. Replace a spurious call
10460 to Flength with a CONSP test. Call format-annotate-function with
10461 a fifth arg specifying how many times the function is been called
10462 in a row, to let it choose temporary buffers appropriately.
10463
03c9ed77
DL
104642000-08-17 Dave Love <fx@gnu.org>
10465
10466 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
10467 declare make_temp_name twice.
10468
52283633 10469 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
10470 (unreadpure): Give it an arg.
10471
10472 * unexalpha.c: Prototype fatal_unexec, mark_x,
10473 update_dynamic_symbols. Declare unexec as void.
10474
10475 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
10476 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
10477
10478 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 10479 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
10480
10481 * alloca.c: Use #error.
10482 [POINTER_TYPE]: Use it.
10483
10484 * eval.c (Fdefvar): Doc fix.
10485
10486 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
10487 INITIALIZE_INTERVAL.
10488
10489 * buffer.h: Avoid DECLARE_INTERVALS.
10490
10491 * config.in: Add size_t.
10492
aae41d97
EZ
104932000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
10494
10495 * w16select.c (set_clipboard_data): If there's not enough memory
10496 to put text into clipboard, return 1, as Fw16_set_clipboard_data
10497 expects. In case of other failures, return 3.
10498 (system_error_msg): New error message.
10499 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
10500 system_error_msg.
10501
65aa5e85
GM
105022000-08-16 Gerd Moellmann <gerd@gnu.org>
10503
10504 * term.c (write_glyphs): Also turn off inverse video after turning
10505 off other appearances in case TS_exit_attribute_mode is not equal
10506 to TS_end_standout_mode.
10507 (insert_glyphs): Turn inverse video on/off for each run of glyphs
10508 with the same face.
10509 (turn_off_face): Reset standout_mode only if
10510 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
10511 is equal to TS_end_standout_mode.
10512
ece23901
KH
105132000-08-16 Kenichi Handa <handa@etl.go.jp>
10514
9d7bcb2e
KH
10515 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
10516 sequence at the end of the source block.
10517
ece23901
KH
10518 * ccl.c (Fccl_program_p): Docstring modified.
10519 (Fccl_execute): Likewise.
10520 (Fccl_execute_on_string): Likewise.
10521
5e30eaa2
EZ
105222000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
10523
10524 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
10525
290602fd
KH
105262000-08-16 Kenichi Handa <handa@etl.go.jp>
10527
10528 The following changes are mainly to fix bugs of
10529 encode/decode-coding-string failing if encoding/decoding return
10530 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
10531 variable conversion_buffer.
10532
10533 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
10534 decrement dst_end to avoid buffer overflow in the later call of
10535 string_as_multibyte
10536
10537 * coding.h (conversion_buffer_size, conversion_buffer)
10538 (get_conversion_buffer): Extern deleted.
10539
10540 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
10541 (conversion_buffer, conversion_buffer_size): Variables deleted.
10542 (get_conversion_buffer): Function deleted.
10543 (struct conversion_buffer): New structure.
10544 (MAX_ALLOCA): New macro.
10545 (allocate_conversion_buffer): New macro.
10546 (extend_conversion_buffer, free_conversion_buffer): New functions.
10547 (ccl_coding_driver): Set coding->result.
10548 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
10549 this is the last block of source.
10550 (encode_coding): Likewise. Handle the source block as the last
10551 one only when the whole source text is consumed.
10552 (decode_coding_string): Handle the case that the output buffer is
10553 too small to decode the whole source text. Use
10554 allocate_conversion_buffer, extend_conversion_buffer and
10555 free_conversion_buffer, not get_conversion_buffer.
10556 (encode_coding_string): Likewise.
10557 (init_coding): Function deleted.
52283633 10558 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
10559
10560 * emacs.c (main): Don't call init_coding.
10561
52283633 10562 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
10563
10564 * term.c (write_glyphs): Use a locally declared conversion_buffer.
10565 (insert_glyphs): Likewise.
10566
10567 * w32console.c (write_glyphs): Use a locally declared
10568 conversion_buffer.
10569
b9f80d41
EZ
105702000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
10571
10572 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
10573 member of display_info is NULL.
10574
32dc52f7
GM
105752000-08-15 Gerd Moellmann <gerd@gnu.org>
10576
52283633 10577 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 10578
32dc52f7 10579 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 10580 appearances with capability `me'.
32dc52f7
GM
10581 (write_glyphs): Switch on inverse video before each face change.
10582
4eb22d33
DL
105832000-08-14 Dave Love <fx@gnu.org>
10584
10585 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
10586 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
10587 (lisp_free): Declare and make static.
10588
10589 * window.c: Fix embedded comment.
10590 (syms_of_window): Fix doc string.
10591
90cbf47e
GM
105922000-08-14 Gerd Moellmann <gerd@gnu.org>
10593
52283633 10594 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
10595 make sure to print `C-' before `M-', like in the manual.
10596
440fc135
GM
105972000-08-11 Gerd Moellmann <gerd@gnu.org>
10598
10599 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
10600 since they aren't relocated anymore.
52283633 10601 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
10602
10603 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 10604 partially visible line which is smaller than the window's height.
440fc135 10605
6e264fad
KH
106062000-08-11 Kenichi Handa <handa@etl.go.jp>
10607
10608 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 10609 the multibyte form of eight-bit-control characters.
6e264fad
KH
10610 (Fccl_execute_on_string): Initialize ccl->multibyte.
10611
10612 * ccl.h (struct ccl_program): New member multibyte.
10613
10614 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
10615
c371f69a
KH
106162000-08-11 Kenichi Handa <handa@etl.go.jp>
10617
10618 * regex.c (regex_compile) <normal_char>: Pay attention to
10619 multibyteness.
10620 (analyse_first) <exactn>: Setup fastmap correctly for
10621 eight-bit-control characters.
10622
106232000-08-11 Kenichi Handa <handa@etl.go.jp>
10624
52283633 10625 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
10626
10627 * keyboard.c (make_lispy_event): Handle the new event type
10628 multibyte_char_keystroke.
10629
10630 * xterm.c: Include coding.h.
10631 (XTread_socket): Work around a bug of XmbLookupString. If the
10632 input is from XIM, decode it according to the current locale. In
10633 that case, generate multibyte_char_keystroke events.
10634
b8ddbe71
KH
106352000-08-11 Kenichi Handa <handa@etl.go.jp>
10636
10637 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
10638 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
10639
47589c8c
GM
106402000-08-10 Gerd Moellmann <gerd@gnu.org>
10641
10642 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
10643 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
10644 (move_it_in_display_line_to): Record iterator's ascent and descent
10645 before producing glyphs, and restore them when we know the glyph
10646 doesn't fit on the line.
10647 (move_it_to): Restructured so that it's easier to debug. If
10648 moving to a vpos, and not moving to an x or character position,
10649 stop as soon as the specified vpos is reached; don't move further
10650 into that line because that might change the computed line height.
10651 (try_cursor_movement): New function, extracted from the cursor
10652 movement branch of redisplay_window. If ending on a partially
10653 visible line, don't try to scroll if the cursor line is taller
10654 than the window.
10655 (redisplay_window): Use try_cursor_movement.
10656
10657 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
10658 because that function doesn't cope with variable-height lines.
10659
10660 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
10661 box cursor because that's better visible for large images.
52283633 10662
c51bacd6
MB
106632000-08-10 Miles Bader <miles@gnu.org>
10664
10665 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
10666
bea56df7
GM
106672000-08-10 Gerd Moellmann <gerd@gnu.org>
10668
10669 * xdisp.c (Vmessages_buffer_name): New variable.
10670 (message_dolog): Use it.
10671 (syms_of_xdisp): Initialize it.
10672
99cd7364
EZ
106732000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
10674
52283633 10675 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
10676 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
10677 redundant now that keyboard.h is included.
10678
7d093d56
EZ
106792000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
10680
10681 * keyboard.c (kbd_buffer_events_waiting): New function.
10682
10683 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
10684
10685 * msdos.c: Include keyboard.h.
10686 (XMenuActivate): Empty no_event events from the event buffer. If
10687 no events are left after that, call clear_input_pending.
10688 (mouse_clear_clicks): New function, code moved from mouse_init.
10689 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
10690 mouse driver to ``forget'' any past clicks.
10691
10692 * Makefile.in (msdos.o): Depend on keyboard.h.
10693
41e757a6
GM
106942000-08-09 Gerd Moellmann <gerd@gnu.org>
10695
8e7bd231
GM
10696 * lisp.h (input_pending): External declaration.
10697
10698 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 10699
8e7bd231
GM
10700 * xdisp.c (echo_area_display): Display thoroughly if input is
10701 pending. Bind redisplay-dont-pause to t during the redisplay.
10702 in case input is pending.
10703
10704 * dispnew.c (Qredisplay_dont_pause): New variable.
10705 (syms_of_display): Initialize and staticpro it.
10706 (update_frame_1): Don't interrupt the display for pending input if
10707 redisplay_dont_pause is set.
52283633 10708
43028b7e
GM
10709 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
10710
41e757a6
GM
10711 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10712
2f2174fa
KH
107132000-08-09 Miles Bader <miles@lsi.nec.co.jp>
10714
10715 * callproc.c (Fcall_process): Terminate the unwind-protect around
10716 the post-read-conversion of coding system.
10717
0a6fd67e
MB
10718 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
10719 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
10720 * buffer.h (overlays_at): Update prototype.
10721 * xdisp.c (next_overlay_change): Update call to overlays_at.
10722 * xfaces.c (face_at_buffer_position): Likewise.
10723 * textprop.c (Fget_char_property): Likewise.
10724 * xterm.c (note_mouse_highlight): Likewise.
10725
0c80756e
MB
10726 * minibuf.c (do_completion): Don't consider a simple change of
10727 case as `completion'.
10728
975f250a
KR
107292000-08-08 Ken Raeburn <raeburn@gnu.org>
10730
52283633 10731 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
10732 * undo.c (record_delete): Make sure last_point_position_buffer is
10733 a buffer before comparing pointers.
10734
10735 * coding.h (decode_coding_string): Declare.
10736
10737 * intervals.h (Fprevious_single_char_property_change): Declare.
10738
10739 * textprop.c (Fprevious_single_char_property_change): Don't do
10740 arithmetic directly on lisp objects.
10741
52283633 10742 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
10743
10744 * keyboard.h (menu_item_eval_property): Declare.
10745
10746 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
10747 reuse as buffer name, instead of recreating (and discarding) every
10748 time a message is logged.
10749 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
10750 (current_message_1, truncate_message_1, set_message_1)
10751 (display_echo_area_1, resize_mini_window_1): Signatures changed.
10752 (current_message, truncate_echo_area, display_echo_area)
10753 (resize_echo_area_axactly): Changed calls.
b347b3fd 10754
975f250a 10755 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 10756 Lisp object.
975f250a 10757 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 10758 must be an integer, not a Lisp object.
975f250a 10759
46dc9912
KH
107602000-08-08 Kenichi Handa <handa@etl.go.jp>
10761
10762 * charset.c (Fchar_width): Doc fix.
10763
9f6d1a6c
GM
107642000-08-08 Gerd Moellmann <gerd@gnu.org>
10765
10766 * charset.c (Fstring_width): Doc fix.
10767
ff3d9573
GM
107682000-08-07 Gerd Moellmann <gerd@gnu.org>
10769
41e757a6 10770 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
10771 line, clear ascent and descent members of the iterator structure;
10772 the height of the continued line does not affect the height of the
10773 continuation line.
10774 (make_cursor_line_fully_visible): Do nothing if cursor is on a
10775 line taller than the window.
10776 (redisplay_window) <forced window start>: Handle case that the
10777 middle of the window is not found in any row.
10778 (dump_glyph_row): Show more information.
10779 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
10780 first text line in a glyph matrix.
10781
10782 * xterm.c (x_draw_image_foreground): Avoid drawing outside
10783 of the clip area when image doesn't have a mask.
10784
70fc58b3
GM
10785 * fns.c (sweep_weak_table): Fix survival conditions for
10786 key-or-value and key-and-value weakness.
10787
10788 * .gdbinit (xhashtable): New command.
10789
ac0e96ee
GM
10790 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
10791 tables out of the list of all weak hash tables.
10792
ff3d9573
GM
10793 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
10794 a new buffer is created, make sure echo_area_buffer[] references
10795 the new buffer.
10796
e0d8827b
EZ
107972000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
10798
10799 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
10800 the doc string.
10801
c6f35378
KH
108022000-08-07 Kenichi Handa <handa@etl.go.jp>
10803
10804 * syntax.c (skip_chars): Fix previous change. Make the handling
10805 of unibyte string consistent with that of regex search.
10806
1fd4c450
GM
108072000-08-05 Gerd Moellmann <gerd@gnu.org>
10808
e49aa397
GM
10809 * xmenu.c (popup_get_selection): Use xfree instead of free.
10810
10811 * fileio.c (Finsert_file_contents): Use xfree instead of free.
10812
10813 * editfns.c (Ftranspose_regions): Use xfree instead of free.
10814
10815 * callproc.c (child_setup): Use xfree instead of free.
10816
10817 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
10818 instead of malloc.
10819 (run_mac_command, closedir): Use `xfree' instead of `free'.
10820
10821 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
10822
10823 * eval.c (error): Use xfree instead of free.
10824
1fd4c450
GM
10825 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
10826
10827 * fns.c: Replace `illegal' with `invalid'.
e49aa397 10828 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 10829
82d497fc
KH
108302000-08-05 Kenichi Handa <handa@etl.go.jp>
10831
10832 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
10833 conversion.
10834
59f953a2
NF
108352000-08-04 Noah Friedman <friedman@splode.com>
10836
10837 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
10838 docstring.
10839
688351f2
GM
108402000-08-04 Gerd Moellmann <gerd@gnu.org>
10841
10842 * syntax.c (skip_chars): Fix typo in error message.
10843
2dad51cc
AS
108442000-08-04 Andreas Schwab <schwab@suse.de>
10845
10846 * m/ia64.h: Moved from s/ia64.h.
10847
99bb2c60
KH
108482000-08-04 Kenichi Handa <handa@etl.go.jp>
10849
082a1df2
KH
10850 * process.c (read_process_output): Big simplification. Handle
10851 composition and post-read-conversion of coding system correctly.
10852 (send_process): Handle composition correctly.
10853
10854 * callproc.c (Fcall_process): Handle post-read-conversion of
10855 coding system if any.
10856
99bb2c60
KH
10857 * coding.c (decode_coding_iso2022): More strict check for handling
10858 single shifting.
082a1df2
KH
10859 (coding_restore_composition): Pay attention to the case that
10860 cmp_data is not set properly (because of invalid code in the
10861 source text).
10862 (run_pre_post_conversion_on_str): Include text properties in the
10863 resulting string.
10864 (decode_coding_string): Set members of coding correctly.
99bb2c60 10865
f4988be7
GM
108662000-08-03 Gerd Moellmann <gerd@gnu.org>
10867
10868 * s/ia64.h: New file.
10869
10870 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
10871 Use NULL instead of 0 at the end of variable argument list of
10872 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
10873 sizeof (int) < sizeof (void *).
10874
10875 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
10876 of variable argument lists of XtVaGetValues and XtVaSetValues.
10877
10878 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
10879 variable argument lists of XtVaGetValues and XtVaSetValues.
10880
ead53494
GM
108812000-08-02 Gerd Moellmann <gerd@gnu.org>
10882
10883 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
10884 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
10885
10886 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
10887 prototype.
10888
10889 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
10890 in call to Fsingle_key_description.
10891
10892 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
10893 Callers changed.
10894
108952000-08-02 Colin Walters <walters@cis.ohio-state.edu>
10896
10897 * window.c (display_buffer_reuse_frames): New variable.
10898 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
10899 frames displaying BUFFER.
52283633 10900 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 10901
10b0f752
MB
109022000-08-01 Miles Bader <miles@gnu.org>
10903
10904 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
10905 when to constrain NEW_POS (they were pretty screwed up before).
10906
16425c4a
EZ
109072000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
10908
10909 * msdos.c (run_msdos_command): Save and restore the master
10910 environment, for the case that child_setup signals an error.
10911 When mirroring slashes in DOS shell commands, don't fail when
10912 argv[2] has embedded blanks.
da288c14
EZ
10913 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
10914 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
10915 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
10916
10917 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
10918 using alloca; free it after run_msdos_command returns.
10919
27f73852
DL
109202000-07-27 Dave Love <fx@gnu.org>
10921
52283633
SM
10922 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
10923 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
10924
10925 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
10926
c0261b5e
EZ
109272000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
10928
10929 * editfns.c (lisp_time_argument): Fix last change.
10930
b548072f
GM
109312000-07-27 Gerd Moellmann <gerd@gnu.org>
10932
3ab82477
GM
10933 * fns.c (Fdelete): Make it work on vectors and strings in addition
10934 to lists.
10935
b548072f
GM
10936 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
10937 (syms_of_fns): Initialize new variables.
52283633 10938 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
10939 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
10940 weakness, with t meaning the same as `key-and-value'.
10941
91ae8751
KH
109422000-07-27 Kenichi Handa <handa@etl.go.jp>
10943
10944 * coding.h (struct coding_system): Member safe_charset deleted.
10945
10946 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
10947 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
10948 New variables.
91ae8751
KH
10949 (coding_safe_chars): New function.
10950 (CODING_SAFE_CHAR_P): New macro.
10951 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 10952 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
10953 (detect_coding_iso2022): New local variable safe_chars.
10954 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
10955 safe_charsets member of the coding system.
10956 (decode_coding_iso2022): New local variable safe_chars.
10957 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
10958 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
10959 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
10960 (ENCODE_UNSAFE_CHARACTER): New macro.
10961 (encode_coding_iso2022): New local variable safe_chars. Check
10962 unsafe chars.
10963 (setup_coding_system): Delete the code to initialize
10964 coding->safe_charses
10965 (intersection, find_safe_codings): New functions.
10966 (Ffind_coding_systems_region_internal): New function.
10967 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
10968 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
10969 variable and initialize it.
10970
10971 * fns.c (char_table_ref_and_index): New function.
10972
10973 * lisp.h (char_table_ref_and_index): Add prototype.
10974
34a7a267
SS
109752000-07-26 Sam Steingold <sds@gnu.org>
10976
10977 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 10978 (Ffloat_time): New built-in Lisp function.
34a7a267 10979
a95cb10a
GM
109802000-07-26 Gerd Moellmann <gerd@gnu.org>
10981
3353ef5a
GM
10982 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
10983 for the character code.
10984
10985 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
10986 GNU/Linux.
10987
a95cb10a
GM
10988 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
10989 if called for a popup menu.
10990 (xmenu_show): Store help string in widget values.
10991
b4a12321
DL
109922000-07-26 Dave Love <fx@gnu.org>
10993
10994 * syswait.h: Move some definitions.
10995 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
10996 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
10997 perspicuous definitions.
10998 (WTERMSIG): Fix bit pattern used.
10999
13f5ad37
KH
110002000-07-26 Kenichi Handa <handa@etl.go.jp>
11001
11002 * print.c (print_object): If vector printing is truncated, print
11003 "..." to indicate it as well as the case of list printing.
11004
070fe99c
GM
110052000-07-25 Gerd Moellmann <gerd@gnu.org>
11006
969065c3
GM
11007 * xdisp.c (next_element_from_display_vector): Improve comments.
11008
11009 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
11010 for the character code, and the rest for the face id as in 20.x.
11011 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
11012
11013 * window.c (window_display_table): Cleaned up.
11014
070fe99c
GM
11015 * syntax.c (Fforward_word): Add last arg nil in call of
11016 Fconstrain_to_field.
11017
bad77ef7
EZ
110182000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
11019
969065c3 11020 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
11021 identical but for the letter-case, don't call
11022 barf_or_query_if_file_exists.
bad77ef7 11023
c28da489
MB
110242000-07-25 Miles Bader <miles@gnu.org>
11025
11026 * editfns.c (find_field): Honor special `boundary' fields.
11027 (Qboundary): New variables.
11028 (syms_of_editfns): Initialize Qboundary.
11029 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
11030 Use scan_buffer instead of find_before_next_newline, because it
11031 allows us to detect the boundary case where there's a newline at
11032 the search limit.
11033 * lisp.h (Fconstrain_to_field): Update external declaration.
11034
e3c31fd5
GM
110352000-07-24 Gerd Moellmann <gerd@gnu.org>
11036
11037 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
11038 if that is nil.
c28da489 11039
c66c29a2
DL
110402000-07-24 Dave Love <fx@gnu.org>
11041
11042 * s/sunos4-0.h, s/sol2.h:
11043 (LIBS_TERMCAP): Move from m/sparc.h.
11044
11045 * m/sparc.h (TERMINFO): Moved to system files (probably only
11046 relevant for sunos4 judging by its vintage).
11047 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
11048 __arch64__.
11049
fbe0a958
EZ
110502000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
11051
11052 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
11053 name to single_keymap_panes.
11054
7d88e5c9
AS
110552000-07-24 Andreas Schwab <schwab@suse.de>
11056
11057 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
11058
e024b101
GM
110592000-07-24 Gerd Moellmann <gerd@gnu.org>
11060
11061 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
11062 parameters instead of using int parameters. Expect FN to accept
11063 EMACS_INT parameters.
11064 (display_echo_area, resize_echo_area_axactly, current_message)
11065 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
11066 with new argument list.
11067 (resize_mini_window_1): New callback function.
11068 (current_message_1, truncate_message_1, set_message_1): Change
52283633 11069 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 11070
25c1a9ce
KH
110712000-07-24 Kenichi Handa <handa@etl.go.jp>
11072
11073 * fontset.c (fontset_ref): Remove INLINE declaration.
11074 (fontset_ref_via_base): Likewise.
11075 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
11076 to downcase.
11077
7f987ac0
EZ
110782000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
11079
11080 * msdos.c (IT_note_mouse_highlight): Process overlays in the
11081 correct order of priority. If help echo was found in an overlay,
11082 use that overlay as the object in which the help echo was found.
11083
e2db3069
MB
110842000-07-22 Miles Bader <miles@gnu.org>
11085
11086 * textprop.c (Fprevious_single_char_property_change): The initial
11087 property value should be from the position preceding POSITION, not
11088 following it.
11089
5e3203e4
EZ
110902000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
11091
11092 * coding.c (syms_of_coding): Doc fix for
11093 inhibit-iso-escape-detection.
11094
62145073
GM
110952000-07-21 Gerd Moellmann <gerd@gnu.org>
11096
c20aeb83
GM
11097 * xterm.c (note_mouse_highlight): Process overlays in the right
11098 order of priority.
34a7a267 11099
743934db
GM
11100 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
11101
11102 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 11103 overlay, use that overlay as the object in which the help was found.
743934db 11104
d1dc7e43 11105 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 11106
62145073
GM
11107 * window.c (foreach_window): Instead of a fake variable argument
11108 list, take one USER_DATA argument.
11109 (foreach_window_1): Likewise, and call callback functions with two
11110 args, the window and USER_DATA.
11111 (struct check_window_data): New struct.
11112 (check_window_containing): Use it.
11113 (window_from_coordinates): Set up a struct check_window_data for
11114 foreach_window.
11115 (add_window_to_list, freeze_window_start): Change parameters
11116 according to new calling convention.
11117
11118 * window.h (foreach_window): Change prototype.
11119
11120 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
11121
111222000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
11123
11124 * xmenu.c (menu_help_callback): Call show_help_echo with
11125 additional arguments OBJECT and POS.
11126
11270583
KH
111272000-07-21 Kenichi Handa <handa@etl.go.jp>
11128
07b14857
KH
11129 * data.c (Faset): Allow storing any multibyte character in a
11130 string. Convert unibyte string to multibyte if necessary.
11131
11270583
KH
11132 * xfns.c (x_encode_text): New function.
11133 (x_set_name): Use x_encode_text.
11134 (x_set_title): Likewise.
11135
11136 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
11137
11138 * xterm.h (x_encode_text): Add prototype.
11139
bc75b4fd
DL
111402000-07-20 Dave Love <fx@gnu.org>
11141
11142 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
11143 xfree, not free.
11144
48c14970
EZ
111452000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
11146
11147 * msdos.c (help_echo_window): New variable.
11148 (syms_of_msdos): Initialize and staticpro it.
11149 (IT_note_mode_line_highlight): Set help_echo_window.
11150 (IT_note_mouse_highlight): Ditto.
11151 (dos_rawgetc): Store help_echo_window in the second event produced
11152 for HELP_EVENTs.
11153
11154 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
11155 Record the object that generated the help echo and the position of
11156 that object in help_echo_object and help_echo_pos. Record that
11157 some glyphs in a row are displayed in mouse-face.
11158 (IT_update_begin): Don't clear mouse highlight unless one of the
11159 enabled glyph rows is marked as being displayed in mouse-face.
11160 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
11161 and position recorded in help_echo_object and help_echo_pos to the
11162 event queue.
11163 (IT_menu_display): Accept a new argument PN: the pane number of
11164 the current menu pane. Record the pane number and the item
11165 number of the item which has associated help string.
11166 (XMenuActivate): Update the prototype for help_callback in
11167 function declaration. Call IT_menu_display with the current menu
11168 pane number as an additional argument. Call help_callback with
11169 two additional arguments: the pane number and the item number of
11170 the menu item associated with the help text.
11171 (help_echo_object, help_echo_pos): New variables.
11172 (syms_of_msdos): Initialize them and staticpro help_echo_object.
11173
11174 * msdos.h (XMenuActivate): Update prototype.
11175
4279296d
GM
111762000-07-19 Gerd Moellmann <gerd@gnu.org>
11177
47db06aa
GM
11178 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
11179 Add some more prototypes.
11180
11181 * xterm.c, xterm.h: Add some more prototypes.
11182
11183 * lisp.h (Fnext_single_char_property_change): Add prototype.
11184
11185 * dispnew.c (direct_output_for_insert): Remove confusing
11186 outer local variable mouse_face_overwritten_p.
11187 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
11188
4279296d
GM
11189 * alloc.c (allocate_string_data): Don't copy old string contents.
11190
670acd62
KH
111912000-07-19 Kenichi Handa <handa@etl.go.jp>
11192
11193 * coding.c (code_convert_region): Delete text properties before
11194 shrinking the conversion region.
11195
7cea38bc
GM
111962000-07-18 Gerd Moellmann <gerd@gnu.org>
11197
dc1cac59
GM
11198 * dispnew.c (update_text_area): Write the whole row if it
11199 has mouse-face in it.
11200
85a8aca9
GM
11201 * xfaces.c (face-alternative-font-family-alist): Remove
11202 DEFVAR_LISP; staticpro instead.
11203
34a7a267 11204 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
11205 new arguments.
11206
11207 * keyboard.c (show_help_echo): Add parameter WINDOW.
11208 (read_char): Call show_help_echo with window extracted from Lisp
11209 help event.
11210 (gen_help_event): Add parameter WINDOW.
11211
11212 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
11213
11214 * xterm.c (help_echo_window): New variable.
52283633 11215 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
11216 (XTread_socket): Pass help_echo_window to gen_help_event.
11217 (syms_of_xterm): Initialize and staticpro help_echo_window.
11218
f8276b77
DL
112192000-07-18 Dave Love <fx@gnu.org>
11220
52283633 11221 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 11222
088831a6
GM
112232000-07-18 Gerd Moellmann <gerd@gnu.org>
11224
3d6cd763
GM
11225 * alloc.c (allocate_string_data): If string had already data
11226 assigned, copy old contents to new string data.
11227
11228 * coding.c (syms_of_coding): Fix typo in spelling of variable
11229 `inhibit-iso-escape-detection'.
11230
088831a6
GM
11231 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
11232
11233 * Makefile.in: Add dependencies on dispextern.h.
11234 (alloca.o): Don't define malloc and define EMACS_FREE instead of
11235 `free'; both can conflict with system header files.
11236
bc8a8d55
KH
112372000-07-18 Kenichi Handa <handa@etl.go.jp>
11238
11239 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
11240 undefined.
11241
069f5950
DL
112422000-07-18 Dave Love <fx@gnu.org>
11243
11244 * window.c (Fwindow_list): Declare arg `window'.
11245
aa96c820
KH
112462000-07-18 Kenichi Handa <handa@etl.go.jp>
11247
11248 * coding.c (setup_coding_system): Don't override the explicitly
11249 specified designations.
11250
06be8d32
MB
112512000-07-15 Miles Bader <miles@gnu.org>
11252
11253 * editfns.c (char_property_eq, char_property_stickiness): Renamed
11254 from `text_property_eq' and `text_property_stickiness', respectively.
11255 (find_field, Fconstrain_to_field, char_property_eq)
11256 (char_property_stickiness): Changed to call char-property functions
11257 instead of text-property-only ones.
11258
11259 * textprop.c (Fnext_single_char_property_change): Made a subr (was
11260 `next_single_char_property_change'). Do more error checking, and
11261 cleanup limit behavior.
11262 (Fprevious_single_char_property_change): New function.
11263 (syms_of_textprop): Initialize new subrs.
11264
11265 * xdisp.c (display_prop_end, invisible_text_between_p):
11266 Call Fnext_single_char_property_change instead of
11267 next_single_char_property_change.
11268
3fddcdc3
JR
112692000-07-15 Jason Rumney <jasonr@gnu.org>
11270
11271 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
11272 after menu is finished with.
11273 (add_menu_item): Only consider wv->title as a menu title.
11274 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
11275
11276 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
11277 null title.
11278 (FONT_REGEXP): Remove unused macro, and its sub-components.
11279 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
11280
11281 * w32term.c (help_echo_object, help_echo_pos): New variables.
11282 (note_mode_line_highlight): Store additional information about the
11283 help-echo in help_echo_object and help_echo_pos. Check both
11284 `local-map' and `keymap' properties for changing the cursor
11285 (note_mouse_highlight): Store additional information about the
11286 help-echo in help_echo_object and help_echo_pos.
11287 (note_tool_bar_highlight): Set help_echo_object to nil and
11288 help_echo_pos to -1.
11289 (w32_read_socket): Use gen_help_event instead of filling
11290 input_events manually.
11291 (syms_of_w32term): Staticpro help_echo_object.
11292 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 11293 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
11294 (x_clear_mouse_face): New function.
11295 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
11296 (x_update_window_begin): No need to turn off the mouse
11297 highlight here.
11298 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 11299 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
11300 (x_fill_stretch_glyph_string): Consume runs of stretch
11301 glyphs instead of a single one.
11302 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11303 with new argument list.
11304 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11305 (x_append_glyph, x_append_composite_glyph)
11306 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11307 changes in struct glyph starting 1999-12-27. See comments for
11308 xterm.c on 2000-07-05.
11309
178c5d9c
SS
113102000-07-14 Sam Steingold <sds@gnu.org>
11311
11312 * xfaces.c (realize_x_face): Fix the last patch:
11313 check `default_face' before dereferencing.
11314
6fe533f6
DL
113152000-07-14 Dave Love <fx@gnu.org>
11316
069f5950 11317 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 11318
dd7b81cf
KH
113192000-07-14 Kenichi Handa <handa@etl.go.jp>
11320
0693904a 11321 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 11322 default_face's fontset, not using the default fontset.
0693904a 11323
dd7b81cf
KH
11324 * coding.c (inhibit_iso_escape_detection): New variable.
11325 (syms_of_coding): Make it a Lisp variable.
11326 (detect_coding_iso2022): If inhibit_iso_escape_detection is
11327 nonzero, ignore ISO2022's escape sequence.
11328
d5aa31d8
GM
113292000-07-14 Gerd Moellmann <gerd@gnu.org>
11330
e5acf0ca
GM
11331 * alloca.c (malloc) [emacs]: Define as xmalloc.
11332
bd23a692
GM
11333 * xfns.c (Fx_show_tip): If frame parameters contain a position,
11334 use that instead of the mouse position. Add parameters DX and DY.
11335
11336 * dispextern.h (Fx_show_tip): Adjust number of parameters
11337 in prototype.
11338
9662da0b
GM
11339 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
11340 if HELP is a function, call it with OBJECT and POS as parameters
11341 to get the help to display.
11342 (gen_help_event, kbd_buffer_store_help_event): New functions.
11343 (kbd_buffer_get_event): Construct the Lisp help-event differently.
11344 (read_char): Call show_help_echo with new parameters.
11345
178c5d9c 11346 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
11347 Add prototypes.
11348
11349 * xterm.c (help_echo_object, help_echo_pos): New variables.
11350 (note_mode_line_highlight): Store additional information about the
11351 help-echo in help_echo_object and help_echo_pos. Check both
11352 `local-map' and `keymap' properties for changing the cursor
11353 (note_mouse_highlight): Store additional information about the
11354 help-echo in help_echo_object and help_echo_pos.
11355 (note_tool_bar_highlight): Set help_echo_object to nil and
11356 help_echo_pos to -1.
11357 (XTread_socket): Use gen_help_event instead of filling
11358 input_events manually.
11359 (syms_of_xterm): Staticpro help_echo_object.
11360
11361 * xmenu.c (menu_highlight_callback): Use
11362 kbd_buffer_store_help_event instead of setting up and input_event
11363 structure manually.
11364
11365 * xdisp.c (eval_form): GCPRO argument sexpr.
11366 (call_function): New function.
11367 (handle_single_display_prop): Use call_function and FUNCTIONP
11368 instead of checking whether if font_height is a symbol and
11369 using eval_form.
11370
11371 * eval.c (internal_condition_case_2): New function.
11372
11373 * lisp.h (FUNCTIONP): New macro.
11374 (internal_condition_case_2, call_function): Add prototypes.
11375
d5aa31d8
GM
11376 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
11377 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
11378 Always set `arg' member of input_events.
11379 (construct_menu_click): Unused function removed.
11380
11381 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
11382
11383 * w32term.c (construct_mouse_click, construct_mouse_wheel)
11384 (construct_drag_n_drop, x_scroll_bar_handle_click)
11385 (w32_read_socket): Always set `arg' member of input_events.
11386
11387 * keyboard.c (show_help_echo): Use eval_form. Add comment.
11388
11389 * lisp.h (eval_form): Add prototype.
11390
11391 * xdisp.c (eval_form): Make it externally visible.
11392
0f1a9b23
GM
113932000-07-13 Gerd Moellmann <gerd@gnu.org>
11394
11395 * xterm.c (x_handle_tool_bar_click): Store the frame in the
11396 frame_or_window slot of TOOL_BAR_EVENT input events instead of
11397 consing. For prefix events, store the frame in the `arg' slot of
11398 the event, otherwise store the key there.
11399 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 11400 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
11401
11402 * xmenu.c (menu_highlight_callback): Store help string in the
11403 `arg' member of the input event; don't cons.
11404 (menubar_selection_callback): Use the `arg' slot of input events
11405 to queue additional information, instead of consing.
11406
11407 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
11408
11409 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
11410 TOOL_BAR_EVENTs.
11411 (w32_read_socket): Adapt to changes in HELP_EVENTs.
11412
11413 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
11414 input events to queue additional information, instead of consing.
11415
11416 * keyboard.c (kbd_buffer_gcpro): Renamed from
11417 kbd_buffer_frame_or_window. Now used for all Lisp objects
11418 referenced from the input queue.
11419 (kbd_buffer_store_event): Always use structure assignment for
11420 copying input events. Record all Lisp objects referenced from
11421 events in kbd_buffer_gcpro.
11422 (kbd_buffer_get_event): Construct Lisp `help-echo' events
11423 differently from input events. Test for prefix menu_bar_events
11424 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
11425 event in kbd_buffer_gcpro to nil.
11426 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
11427 frame_or_window is equal to its arg member as prefix events.
11428 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
11429 used by an input event to nil.
11430 (init_keyboard): Use two times the size of the input queue
11431 for kbd_buffer_gcpro.
11432 (syms_of_keyboard): Likewise.
11433
52283633
SM
11434 * emacs.c (handle_USR2_signal, handle_USR1_signal):
11435 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
11436
11437 * termhooks.h (struct input_event): Add member `arg'.
11438 (MENU_BAR_EVENT): Renamed from menu_bar_event.
11439 (USER_SIGNAL_EVENT): Renamed from user_signal.
11440
11441 * xfaces.c (ASET): Remove definition.
11442
11443 * lisp.h (AREF, ASET, ASIZE): New macros.
11444
11445 * fontset.c (AREF, ASIZE): Remove definitions.
11446
11447 * fns.c (AREF): Remove definition.
178c5d9c 11448
0f1a9b23
GM
11449 * composite.c (AREF): Remove definition.
11450
712eaef2
GM
114512000-07-12 Gerd Moellmann <gerd@gnu.org>
11452
d8ee7803
GM
11453 * dispnew.c (redraw_overlapped_rows): Add missing local.
11454 (scrolling_window): Remove debug code.
11455
712eaef2
GM
11456 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
11457 Before scrolling, turn off a mouse-highlight in the window
11458 being scrolled.
11459
11460 * xterm.c (x_update_window_end): Add parameter
11461 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
11462 redisplay in XTframe_up_to_date.
11463 (x_clear_mouse_face): New function.
11464 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
11465
11466 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
11467 current glyph row.
11468 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
11469 it when any row is written to that contains glyphs highlighted in
11470 mouse-face.
11471 (update_window): Call the window update end hook with new
11472 parameter MOUSE_FACE_OVERWRITTEN_P.
11473 (direct_output_for_insert): Give up if row contains mouse-face.
11474
11475 * dispextern.h (struct redisplay_interface): Add parameter
11476 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
11477 (clear_mouse_face): New function pointer member.
11478
02010917
SM
114792000-07-11 Stefan Monnier <monnier@cs.yale.edu>
11480
11481 * syntax.c (back_comment): Use one switch rather than a few `if's.
11482 Obey open_paren_in_column_0_is_defun_start.
11483 When reverting to the `slow' method, try to nicely handle the case
11484 of nested comments by checking that the comment-starter we found
11485 does indeed match the comment-ender.
11486 (scan_sexps_forward, scan_sexps_forward):
11487 Ignore excessive opening parenthesis rather than throwing an error.
11488
d76c03ea
GM
114892000-07-11 Gerd Moellmann <gerd@gnu.org>
11490
11491 * doc.c (Fsubstitute_command_keys): Handle case that a GC
11492 in Fwhere_is_internal or get_keymap_1 relocates string contents.
11493
11494 * dispnew.c (direct_output_forward_char): Give up if currently
11495 displaying a message instead of the minibuffer contents.
11496
11497 * xterm.c (x_update_window_begin): No need to turn off the mouse
11498 highlight here.
11499 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 11500 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
11501
11502 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
11503 compare the mouse_face_p flags of both rows.
11504
11505 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
11506
d55ead18
EZ
115072000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
11508
11509 * keyboard.c (show_help_echo): Accept additional parameter
11510 ok_to_overwrite_keystroke_echo.
11511 (read_char): Call show_help_echo with a zero
11512 ok_to_overwrite_keystroke_echo argument.
52283633 11513 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
11514 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
11515 ok_to_overwrite_keystroke_echo argument.
11516 * w32menu.c (w32_menu_display_help): Call show_help_echo with
11517 non-zero ok_to_overwrite_keystroke_echo argument.
11518
df75b1a3
GM
115192000-07-10 Gerd Moellmann <gerd@gnu.org>
11520
4b92c49a
GM
11521 * xdisp.c (try_window_id): If changes are all below what is
11522 displayed in the window, and point is in the window, we still
11523 might have to find point on the display.
11524
11525 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
11526 glyphs instead of a single one.
11527 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11528 with new argument list.
11529 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11530
df75b1a3
GM
11531 * keymap.c (get_keymap_1): Add comment that this function can GC.
11532 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
11533 comment that functions can GC.
11534 (Fset_keymap_parent): GCPRO arg KEYMAP.
11535
4314cf3e
EZ
115362000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
11537
11538 * msdos.c (XMenuActivate): After exiting the menu, restore the
11539 echo area message and erase it.
11540
ab49ce15
KH
115412000-07-10 Kenichi Handa <handa@etl.go.jp>
11542
11543 * fontset.c (Ffontset_info): Make the return value more compatible
11544 with that of Emacs 20.
11545
090a072f
GM
115462000-07-07 Gerd Moellmann <gerd@gnu.org>
11547
11548 * eval.c (Fsignal): Handle case that backtrace_list is null.
11549
f92de4a6
KH
115502000-07-07 Kenichi Handa <handa@etl.go.jp>
11551
11552 * ccl.c (Fccl_execute): Typo fixed.
11553
dd8888a1
GM
115542000-07-06 Gerd Moellmann <gerd@gnu.org>
11555
e5c81191 11556 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 11557
dd8888a1
GM
11558 * window.c (Fwindow_list): Reverse list at the end.
11559 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
11560 means allow windows on OWINDOW's frame, only.
11561 (window_loop): Simplified; use Fwindow_list.
11562
11563 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
11564
485266d0
GM
115652000-07-05 Gerd Moellmann <gerd@gnu.org>
11566
11567 * xterm.c (XTread_socket): Increment handling_signal at the start,
11568 decrement it at the end.
11569
11570 * eval.c (handling_signal): New variable.
11571 (Fsignal): Abort if handling_signal is non-zero.
11572
11573 * lisp.h (handling_signal): External declaration.
178c5d9c 11574
485266d0
GM
11575 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
11576
80fcd514
KR
115772000-07-05 Ken Raeburn <raeburn@gnu.org>
11578
11579 Sound support for NetBSD through "Linux emulation" support:
11580 * config.in (HAVE_SOUNDCARD_H): Undef.
11581 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
11582 * Makefile.in (LIBSOUND): New variable.
11583 (LIBES): Include it.
52283633
SM
11584 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
11585 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
11586 (vox_open): Use DEFAULT_SOUND_DEVICE.
11587 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
11588
d5c5cddd
GM
115892000-07-05 Gerd Moellmann <gerd@gnu.org>
11590
11591 * print.c (print_error_message): If Vsignaling_function is set,
11592 show it in *Messages*.
11593
11594 * lisp.h (Vsignaling_function): External declaration.
11595
11596 * eval.c (Vsignaling_function): New variable.
11597 (Fsignal): Compute it.
11598 (syms_of_eval): Staticpro it.
11599
65171e3a
DL
116002000-07-05 Dave Love <fx@gnu.org>
11601
11602 * syswait.h: Use the autoconf recommended approach. Old code
11603 #if'd out in case we need to revert.
11604
178c5d9c 11605 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 11606
e2c46326
AI
116072000-07-05 Andrew Innes <andrewi@gnu.org>
11608
11609 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
11610 when non-NULL instead of __morecore, to take account of buffer
11611 memory. This also solves a problem with spurious memory warnings
11612 on Windows.
11613
11614 * ralloc.c: Make real_morecore non-static.
11615
11616 * eval.c (internal_condition_case): Comment out abort if
11617 interrupt_input_blocked is not zero.
11618
11619 * makefile.nt: Add support for `bootstrap' and related targets.
11620 Include minimal debug info in emacs.exe in release build.
11621 Remove all dependencies on lisp.h, and fixup some others.
11622
11623 * w32.c (init_environment): Install code from 20.7 for providing
11624 default values for environment variables, based on the
11625 executable's own location.
52283633 11626 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
11627 (sys_socket): Install socket inheritance bug fix from 20.7.
11628
11629 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
11630 here via blockinput.h).
11631
a027a91b
SM
116322000-07-05 Stefan Monnier <monnier@cs.yale.edu>
11633
e4b31601
SM
11634 * w32menu.c (w32_menu_display_help):
11635 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
11636
11637 * keyboard.h (show_help_echo): Declare.
11638
11639 * keyboard.c (show_help_echo): New function, extracted from read_char.
11640 Feval its `msg' argument if it's a cons cell.
11641 (read_char): Use it.
4cf8d9d5 11642 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 11643
178c5d9c 11644 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 11645 (note_tool_bar_highlight, XTread_socket):
178c5d9c 11646 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
11647 (dos_rawgetc):
11648 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
11649 (note_tool_bar_highlight, w32_read_socket):
11650 Do not gratuitously ignore non-string `help-echo' properties.
11651
88d75730
GM
116522000-07-05 Gerd Moellmann <gerd@gnu.org>
11653
969f7e79
GM
11654 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
11655
71201b00
GM
11656 * window.c (delete_all_subwindows): Reset Vwindow_list.
11657
88d75730
GM
11658 * xterm.c (x_append_glyph, x_append_composite_glyph)
11659 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11660 changes in struct glyph starting 1999-12-27. Some bit-fields of
11661 struct glyph were not set, which made glyphs unequal when compared
11662 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
11663 effects were the result. This also depended on the contents of
11664 memory returned by xmalloc. If flickering happens again, activate
11665 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 11666 gone with that, chances are that it is caused by something similar.
88d75730
GM
11667
11668 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 11669
88d75730
GM
11670 * dispextern.h: Add some comments.
11671
11672 * window.c (add_window_to_list): Add parameter LIST.
11673 (window_list): Order list so that, for each frame, windows are
11674 in canonical order, and so that frames appear in the list in
11675 the order given by Vframe_list.
11676 (next_window): Reverse the handling of NEXT_P.
11677
53654733
GM
116782000-07-04 Gerd Moellmann <gerd@gnu.org>
11679
87efd256
GM
11680 * window.c (Vwindow_list): New variable.
11681 (make_window, delete_window): Set Vwindow_list to nil.
11682 (check_window_containing): New function.
11683 (window_from_coordinates): Rewritten.
11684 (add_window_to_list, window_list, candidate_window_p)
11685 (decode_next_window_args, next_window): New functions.
52283633 11686 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
11687 (Fwindow_list): New function.
11688 (Fother_window): Cleaned up.
11689 (foreach_window): Add a longer "variable argument list". Let
11690 callback function return 0 to indicate that cycling over windows
11691 should stop.
11692 (foreach_window_1): Likewise.
11693 (freeze_window_start): Return int.
11694 (init_window): New function.
11695 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
11696
11697 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
11698 input_event with bzero.
11699 (main): Call init_window.
11700
53654733
GM
11701 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
11702 a menu filter.
11703
4a8c194f
KH
117042000-07-04 Kenichi Handa <handa@etl.go.jp>
11705
11706 * composite.h (make_composition_value_copy): Extern it.
11707
11708 * composite.c (make_composition_value_copy): New function.
11709
11710 * editfns.c (Fformat): While copying text properties, make each
11711 composition property value a copy.
11712
11713 * fns.c (concat): While copying text properties, make each
11714 composition property value a copy.
11715
831a6cb0
GM
117162000-07-03 Gerd Moellmann <gerd@gnu.org>
11717
2f516940
GM
11718 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
11719
178c5d9c 11720 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
11721 marked already.
11722
831a6cb0
GM
11723 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
11724 include those frames as candidates which have their focus
11725 redirected to the minibuffer frame.
11726
d9c4f922
SM
117272000-07-03 Stefan Monnier <monnier@cs.yale.edu>
11728
11729 * fns.c (Fputhash): Return `value' rather than nil.
11730
3780bc22
GM
117312000-06-30 Gerd Moellmann <gerd@gnu.org>
11732
97d176db
GM
11733 * frame.c (next_frame): Don't check focus redirection in case
11734 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
11735 unless their focus is redirected, which contradicts the
11736 specification of next-frame, and leads to infinite loops in
11737 certain situations when cycling through windows with next-window.
11738
dca9961d
KH
117392000-06-30 Kenichi Handa <handa@etl.go.jp>
11740
11741 * coding.c (code_convert_region): Even if the length of text is
11742 zero, try to convert it if coding->type is coding_type_ccl.
11743 (decode_coding_string, encode_coding_string): Likewise.
11744
d5483ab1
GM
117452000-06-28 Gerd Moellmann <gerd@gnu.org>
11746
af5c25e1 11747 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 11748 the display if windows_or_buffers_changed.
af5c25e1
GM
11749
11750 * dispnew.c (struct row_entry): New structure.
11751 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
11752 (row_table_size, old_lines, new_lines, old_lines_size)
11753 (new_lines_size, run_pool, runs_size, runs): New variables.
11754 (add_row_entry): New function.
11755 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 11756 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
11757 holding them in local variables. Use a larger hash table whose
11758 size depends on glyph matrix sizes. Don't use bzero to clear the
11759 hash table; instead, clear used slots only.
11760
11761 * fns.c (next_almost_prime): Make it externally visible.
11762
11763 * lisp.h (next_almost_prime): Add prototype.
11764
d5483ab1
GM
11765 * s/isc4-0.h (sigunblock): Define.
11766
11767 * s/sco5.h (sigunblock): Define.
11768
93e40f40
DL
117692000-06-27 Dave Love <fx@gnu.org>
11770
11771 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
11772 (moved to osf5-0.h).
11773 [!NOT_C_CODE]: Protect string.h stuff.
11774
11775 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
11776 (sys_siglist, NSIG): Definitions moved here from osf1.h.
11777
3c4b7685
GM
117782000-06-27 Gerd Moellmann <gerd@gnu.org>
11779
97d176db 11780 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
11781 below the last line from the needed window height.
11782
32cad0aa
SM
117832000-06-26 Stefan Monnier <monnier@cs.yale.edu>
11784
11785 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
11786 (Fwidget_get): Use it.
11787 (syms_of_fns): Defsubr it.
11788
2c69ced2
GM
117892000-06-26 Gerd Moellmann <gerd@gnu.org>
11790
178c5d9c 11791 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
11792 display info for XIM.
11793 (xim_open_dpy): Likewise.
11794 (xim_close_dpy): Don't free the display info's XIM.
11795
11796 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
11797
11798 * config.in (USE_XIM): New define.
11799
3fc720e4
GM
11800 * keymap.c (get_keyelt): For menu-items containing a `:filter
11801 FILTER', apply FILTER to the menu-item's definition to get the
11802 real definition to use.
11803
11804 * lisp.h (QCfilter): External declaration.
11805
2c69ced2
GM
11806 * xfns.c (Fimage_size): New function.
11807 (syms_of_xfns): Defsubr it.
11808
f978b2a2
AS
118092000-06-26 Andreas Schwab <schwab@suse.de>
11810
11811 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
11812 Fstring_as_unibyte.
11813
94cc7892
DL
118142000-06-25 Dave Love <fx@gnu.org>
11815
52283633 11816 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
11817
11818 * Makefile.in (blockinput.h): Depend on atimer.h.
11819 (atimer.h): Depend on systime.h.
11820
52283633 11821 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 11822
52283633 11823 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
11824
11825 * lisp.h (swap_in_global_binding): Declare.
11826
b8c24556
KR
118272000-06-24 Ken Raeburn <raeburn@gnu.org>
11828
11829 * process.c (Fopen_network_stream): Turn off atimers for duration
11830 of call to connect. (Patch from Gerd.)
11831
8cf8560b
DL
118322000-06-23 Dave Love <fx@gnu.org>
11833
511c7541
DL
11834 * ralloc.c: Maybe include unistd.h
11835
8cf8560b
DL
11836 * emacs.c (setgrp): Undefine before defining.
11837 (malloc_warning, set_time_zone_rule, index): Prototype.
11838
11839 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
11840 HAVE_STRUCT_TIMEZONE.
11841
11842 * s/osf1.h: Move string.h hack here from alpha.h and make it
11843 conditional.
11844 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
11845 _XOPEN_SOURCE.
11846 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
11847 (SOCKLEN_TYPE): Don't define.
11848
11849 * m/alpha.h: Remove string.h hack.
11850
11851 * s/osf5-0.h: New file.
11852
11853 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
11854 include time.h, done by systime.h.
11855 [__FreeBSD__]: Remove redundant includes.
11856
3fc720e4 11857 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
11858 (delete_temp_file): Return Qnil to avoid warning.
11859
11860 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
11861
11862 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
11863 HAVE_X_WINDOWS.
11864
11865 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
11866
11867 * composite.h (compose_text): Declare.
11868
11869 * xterm.c: Don't include sys/types.h unconditionally. Don't
11870 protect its inclusion with !USG (following xmenu.c).
11871
ea055732
GM
118722000-06-23 Gerd Moellmann <gerd@gnu.org>
11873
11874 * xfns.c (x_create_tip_frame): Initialize frame's colors like
11875 in x_create_frame.
11876
74b01b80
EZ
118772000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11878
11879 * coding.c (decode_eol_post_ccl): Special handling for undecided
11880 and inconsistent EOL types.
11881
64f3a166
GM
118822000-06-22 Gerd Moellmann <gerd@gnu.org>
11883
16cf31f7
GM
11884 * xrdb.c (x_load_resources): Add default resource for scroll bar's
11885 trough color and main window's background color.
11886
52283633 11887 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
11888
11889 * xterm.h (Xt_app_con): External declaration.
11890
11891 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 11892
486a103d
GM
11893 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
11894
64f3a166
GM
11895 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
11896 (handle_invisible_prop): Record the start of invisible text in
11897 it->add_overlay_start.
11898 (struct overlay_entry): Add member `overlay'.
11899 (handle_overlay_change): Simplify.
11900 (next_overlay_string): After having processed overlay strings at the
11901 end of the buffer, record that fact in
11902 it->overlay_strings_at_end_processed_p.
11903 (compare_overlay_entries): If before- and after-strings come
11904 from the same overlay, let before-strings come first.
11905 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
11906 (load_overlay_strings): Take it->add_overlay_start into account
11907 when adding overlay strings.
11908
11909 * dispextern.h (struct it): Add member add_overlay_start.
11910
bb746ea6
DL
119112000-06-22 Dave Love <fx@gnu.org>
11912
11913 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
11914
11915 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
11916
a8f573f3
KH
119172000-06-22 Kenichi Handa <handa@etl.go.jp>
11918
11919 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
11920 is greater than 0.
11921
9f2bbc92
DL
119222000-06-21 Dave Love <fx@gnu.org>
11923
178c5d9c 11924 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 11925
3ee5041c
SM
119262000-06-21 Stefan Monnier <monnier@cs.yale.edu>
11927
11928 * syntax.c (back_comment): Simplify string-parity counting (with
11929 the added benefit of handling multiple string-styles as long as
11930 they are not intertwined).
11931 Jump to the slow code as soon as a comment starter is found in
11932 a "string_lossage" position. Fixes the case: " /* " /* " */.
11933
4c343001
DL
119342000-06-21 Dave Love <fx@gnu.org>
11935
11936 * Makefile.in: Use GETLOADAVG_LIBS.
11937
11938 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
11939 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
11940
e6365855
SM
119412000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11942
11943 * syntax.c (describe_syntax): Recognize the `n'estable bit.
11944 (Fforward_comment, scan_lists):
11945 Check the comstyle of single-char comment-starters.
11946 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
11947 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
11948 Check the comstyle of single-char comment-starters.
11949 Clarify control-flow around the Scomment case.
e6365855 11950
5700d2cc
DL
119512000-06-20 Dave Love <fx@gnu.org>
11952
d355bd8a
SM
11953 * fns.c (make_hash_table, maybe_resize_hash_table):
11954 Cast arg of next_almost_prime.
5700d2cc 11955
178c5d9c 11956 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
11957
11958 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
11959 and unistd.h.
11960
4a27bdfb
GM
119612000-06-20 Gerd Moellmann <gerd@gnu.org>
11962
a61d762c 11963 * keyboard.c (adjust_point_for_property): Check if display
52283633 11964 property should be treated as intangible by looking at its value.
a61d762c 11965
178c5d9c 11966 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
11967 (display_prop_intangible_p): New functions.
11968
11969 * dispextern.h (display_prop_intangible_p): Add prototype.
11970
11971 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 11972
4a27bdfb
GM
11973 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
11974 argument to sigprocmask.
11975
11976 * s/sco5.h (sigblock): Redefined to pass a pointer as second
11977 argument to sigprocmask.
11978
11979 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
11980 sigprocmask_set, and pass a pointer to it to sigprocmask.
11981
11982 * sysdep.c (sigprocmask_set): New variable.
11983
11984 * fileio.c (make_temp_name): Don't use `%s' in string passed to
11985 report_file_error.
11986
427ec082
SS
119872000-06-20 Sam Steingold <sds@gnu.org>
11988
11989 * xrdb.c: Don't declare xmalloc, xrealloc.
11990
8972fe79 119912000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
11992
11993 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
11994 (re_comp): Cast gettext return value to avoid complaints when
11995 !HAVE_LIBINTL.
11996
074b6efe
DL
119972000-06-20 Dave Love <fx@gnu.org>
11998
52283633 11999 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 12000
5700d2cc 12001 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 12002
d355bd8a 12003 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
12004
12005 * m/alpha.h: Don't declare xmalloc, xrealloc.
12006
0af4f205
DL
12007 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
12008
12009 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
12010
12011 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
12012
12013 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
12014 HAVE_GETWD.
12015
074b6efe
DL
12016 * keyboard.h (poll_for_input_1): Declare.
12017
12018 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
12019
12020 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
12021
12022 * doprnt.c: Don't declare xmalloc, xrealloc.
12023
12024 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
12025 (getenv, ctime, getwd): Removed.
12026 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
12027
12028 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
12029 x_set_tool_bar_lines.
12030
12031 * config.in: Add HAVE_GETWD. Move some definitions above
12032 machine/system includes.
12033
68a5e97b
KH
120342000-06-20 Kenichi Handa <handa@etl.go.jp>
12035
95417e1e
KH
12036 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
12037
68a5e97b
KH
12038 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
12039 contain information about ENCODING.
12040
12041 * fontset.c (FONTSET_ASCII): Use the first element of char table
12042 for an ASCII font, not defalt slot.
12043 (fontset_ref_via_base): If FONTSET doesn't contain information for
12044 C, try the default fontset.
12045 (make_fontset): Don't copy the default fontset.
12046 (fontset_font_pattern): Likewise.
12047 (accumulate_font_info): If ELT is nil, use the corresponding
12048 element in the default fontset.
12049
3b4fa1b2
DL
120502000-06-19 Dave Love <fx@gnu.org>
12051
943e731c
DL
12052 * syntax.c (Fparse_partial_sexp): Doc fix.
12053
12054 * regex.h: Test PROTOTYPES as well as __STDC__.
12055
3b4fa1b2
DL
12056 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
12057 errno, strerror. Put text after #endif in comment.
12058
52283633 12059 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
12060
12061 * xterm.c (x_frame_of_widget): Likewise.
12062
cdf0357b
GM
120632000-06-19 Gerd Moellmann <gerd@gnu.org>
12064
12065 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
12066 to Vfundamental_mode_abbrev_table.
12067
12068 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
12069 bogus objects are marked. This slows down GC by ~80 percent, but
12070 it might be worth trying when debugging GC-related problems.
12071 This feature requires conservative stack marking to be enabled.
12072
12073 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
12074 returns XLookupChars, reset `modifiers' to zero.
12075
998e9f8c
DL
120762000-06-19 Dave Love <fx@gnu.org>
12077
12078 * mktime.c: Unprotoized.
12079
18e21ce8 120802000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
12081
12082 * data.c (set_internal): If variable is frame-local,
12083 store the new value immediately into the frame parameter alist.
12084
140c4ac6
KR
120852000-06-19 Ken Raeburn <raeburn@gnu.org>
12086
14358466
KR
12087 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
12088 in the custom handler pointer.
12089
140c4ac6
KR
12090 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
12091 value, or checks for CHAR_META can fail when Lisp_Object is a
12092 union type.
12093 * keymap.c (get_keyelt): Likewise.
12094
10d7bf84
KH
120952000-06-19 Kenichi Handa <handa@etl.go.jp>
12096
12097 * ccl.h (struct ccl_program): New member eol_type.
12098 (struct ccl_spec): New member cr_carryover.
12099
12100 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
12101 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
12102
12103 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
12104 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
12105 (decode_eol_post_ccl): New function.
12106 (decode_coding): Don't detect EOL format here for CCL based coding
12107 systems.
12108 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
12109 decode_eol_post_ccl after running the CCL program.
12110 (code_convert_region): Don't detect EOL format here for CCL based
12111 coding systems.
12112 (decode_coding_string): Likewise.
12113
52e386c2
KR
121142000-06-18 Ken Raeburn <raeburn@gnu.org>
12115
12116 * charset.c (update_charset_table): Use XINT on "iso_final_char"
12117 when treating it as an integer.
12118
12119 * coding.h (encode_coding_string): Declare.
12120
12121 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
12122 it as an integer.
12123
12124 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
12125 "xkeymap" to avoid shadowing the "enum map_type" value that needs
12126 to be passed to get_local_map.
12127
12128 * sound.c (Fplay_sound): Don't call make_number on
12129 Frun_hook_with_args count argument.
12130
12131 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
12132 for lisp objects in X event structure data field, when lisp
12133 objects are represented with unions.
12134 (x_scroll_bar_to_input_event): Ditto.
12135
b357b9d4
KR
121362000-06-16 Ken Raeburn <raeburn@gnu.org>
12137
12138 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
12139 termination of string. Fix sense of test whether
12140 Vline_number_display_limit is an integer.
b357b9d4 12141
a871441d
GM
121422000-06-16 Gerd Moellmann <gerd@gnu.org>
12143
a9021acd
GM
12144 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
12145 only if HAVE_X_WINDOWS.
12146
6344985d
GM
12147 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
12148 of titles.
12149
427ec082 12150 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
12151 out of bounds.
12152
228b083e
EZ
121532000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
12154
12155 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
12156 of its headers.
12157
c25b53a2
KH
121582000-06-15 Kenichi Handa <handa@etl.go.jp>
12159
12160 * coding.c (decode_coding_emacs_mule): Always set src_base at the
12161 start of the while loop.
12162
a6981b11
GM
121632000-06-15 Gerd Moellmann <gerd@gnu.org>
12164
e9924e52
GM
12165 * atimer.c (alarm_signal_handler): Add forward declaration.
12166
a6981b11
GM
12167 * data.c (set_internal): Remove debug code.
12168
25fa6deb
GM
121692000-06-14 Gerd Moellmann <gerd@gnu.org>
12170
dce6b995
GM
12171 * Makefile.in (bootstrap-temacs): Add `-I../src'.
12172
9f817ea4
GM
12173 * unexec.c (toplevel) [COFF]: Include coff.h.
12174
12175 * s/lynxos.h: New file.
12176
12177 * keymap.c (Fsingle_key_description): Enclose function key and
12178 event symbol names in angle brackets.
12179
8a4e3c0c
GM
12180 * xdisp.c (setup_echo_area_for_printing): Call
12181 message_log_maybe_newline if message_buf_print is not set.
12182
12183 * print.c (printchar, strout): Don't check message_buf_print
427ec082 12184 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
12185 function does something useful even when message_buf_print is
12186 already set.
12187
52283633
SM
12188 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
12189 New variables.
25fa6deb
GM
12190 (ensure_echo_area_buffers): Initialize echo buffer's
12191 truncate lines setting to nil.
12192 (with_echo_area_buffer): Don't set the echo buffer's truncate
12193 lines setting here.
8a4e3c0c 12194 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
12195 of message_truncate_lines.
12196 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
12197 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
12198 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
12199
12200 * keyboard.c (read_char): Bind message-truncate-lines to t
12201 while displaying a help-echo.
12202
12203 * lisp.h (Qmessage_truncate_lines): External declaration.
12204
163dcff3
GM
122052000-06-13 Gerd Moellmann <gerd@gnu.org>
12206
1681ead6
GM
12207 * xdisp.c (Vline_number_display_limit): Renamed from
12208 line_number_display_limit.
12209 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
12210 Extend documentation string. Initialize
12211 Vline_number_display_limit to nil meaning no limit.
12212 (decode_mode_spec): Use Vline_number_display_limit with its new
12213 meaning.
12214
163dcff3
GM
12215 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
12216
18e21ce8 122172000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
12218
12219 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 12220
163dcff3
GM
12221 * xfns.c (x_set_frame_parameters): Comment fix.
12222
12223 * frame.c (store_frame_param): Call swap_in_global_binding if the
12224 variable's current binding was chosen based on this frame.
12225
12226 * data.c (swap_in_global_binding): New function.
12227
a704139d
EZ
122282000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12229
12230 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
12231 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
12232
9b6610db
EZ
122332000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12234
12235 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
12236
c68833d2
JR
122372000-06-12 Jason Rumney <jasonr@gnu.org>
12238
12239 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
12240
12241 * w32.h (EMACS_W32_H): Renamed from _NT_H_
12242
12243 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
12244
12245 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
12246
ed1056b3
GM
122472000-06-12 Gerd Moellmann <gerd@gnu.org>
12248
12249 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
12250 (syms_of_xfaces): Defsubr Sdump_colors.
12251 (x_free_colors): Don't treat b&w specially on default visual.
12252 (x_free_dpy_colors): New function.
12253 (free_face_colors): Don't check visual class; it's done
12254 in x_free_colors.
12255
12256 * xterm.c (x_frame_of_widget): New function.
12257 (x_alloc_nearest_color_for_widget): Use it.
12258 (x_copy_dpy_color): New function.
12259 (x_destroy_window): Free various colors.
12260
5050a2ef
KH
122612000-06-12 Kenichi Handa <handa@etl.go.jp>
12262
12263 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
12264
12265 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
12266
12267 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
12268
12269 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
12270
12271 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
12272
fb1b041d
DL
122732000-06-11 Dave Love <fx@gnu.org>
12274
12275 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
12276
ff96b5f4
EZ
122772000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
12278
12279 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
12280
db8eeecd
GM
122812000-06-11 Gerd Moellmann <gerd@gnu.org>
12282
ed1056b3 12283 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
12284 to `XEvent *'.
12285
49b71c5f
KH
122862000-06-10 Kenichi Handa <handa@etl.go.jp>
12287
c479bd55
KH
12288 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
12289 (regex_compile): Fix the code for handling the case of single byte
12290 char and multibyte char being mixed in a range within [...].
12291
ff6a65c2
KH
12292 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
12293 and dst_multibyte members of coding.
12294
49b71c5f
KH
12295 * charset.c (update_charset_table): Update the table
12296 bytes_by_char_head.
12297 (init_charset_once): Initialize elements of bytes_by_char_head to
12298 1 except for leading codes for private charases.
12299
12300 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 12301 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 12302
9e80b57d
KR
123032000-06-09 Ken Raeburn <raeburn@gnu.org>
12304
12305 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
12306 access the data it doesn't point to.
12307
f83fe4b4
GM
123082000-06-08 Gerd Moellmann <gerd@gnu.org>
12309
12310 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 12311 will be translated to a switch-frame event when reading the
f83fe4b4
GM
12312 event queue. This is necessary because Emacs otherwise won't
12313 perform a switch-frame to a new frame until some other event, for
12314 example a keystroke event, forces it to do so. This has various
12315 effects, one visible being that the cursor of a frame created with
12316 C-x 5 2 or switched to with a window manager key binding like
12317 A-TAB stays hollow because selected_window isn't on the newly
12318 focused frame until the switch-frame is performed.
12319
12320 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
12321 generating a switch-frame event if necessary.
12322
12323 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
12324
12325 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
12326 it's an integer.
12327
0890801b
KH
123282000-06-08 Kenichi Handa <handa@etl.go.jp>
12329
52283633 12330 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 12331
173cbca8
GM
123322000-06-07 Gerd Moellmann <gerd@gnu.org>
12333
3091c2a6
GM
12334 * window.c (displayed_window_lines): Take empty lines at
12335 the bottom of a window into account.
427ec082 12336
f38952fe
GM
12337 * window.c (displayed_window_lines): New function.
12338 (Fmove_to_window_line): Use displayed_window_lines to determine
12339 the number of lines to move, instead of using the window's height.
12340
12341 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
12342 to stop reading, even if the form read sets point to a different
12343 value when evaluated.
12344
427ec082 12345 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
12346 put the cursor.
12347
6ba6c818
KH
123482000-06-07 Kenichi Handa <handa@etl.go.jp>
12349
12350 * fileio.c (e_write): Free composition data if stored in
12351 coding->cmp_data.
12352
5f1aea9a
GM
123532000-06-06 Gerd Moellmann <gerd@gnu.org>
12354
666852af
GM
12355 * xdisp.c (display_line): Set row's and iterator's
12356 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
12357 Set cursor even if row ends in the middle of a character.
12358 (dump_glyph_row): Print values of new flags.
12359 (redisplay_window) <cursor movement in unchanged window>: When
12360 point has been moved forward, and PT is at the end of the cursor
12361 row, don't place the cursor in the next row if the cursor row ends
12362 in the middle of a character or at ZV.
12363
12364 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
12365 (struct glyph_row): Add starts_in_middle_of_char_p and
12366 ends_in_middle_of_char_p.
12367 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
12368 ends_in_middle_of_char_p flag.
12369 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
12370
d13f3e2e
GM
12371 * term.c (append_glyph): Revert change of 2000-06-06.
12372
12373 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
12374 padding glyph not fitting on line as whole character not
12375 fitting on line.
12376
5f1aea9a
GM
12377 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
12378 this isn't true for images with `:ascent 100'.
12379
10cda9b0
KH
123802000-06-06 Kenichi Handa <handa@etl.go.jp>
12381
ed00559d
KH
12382 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
12383 as modified if it is originally unmodified.
12384
10cda9b0
KH
12385 * term.c (encode_terminal_code): Change the way to check if
12386 terminal coding does any conversion.
12387 (append_glyph): Set glyph->pixel_width correctly.
12388
12389 * xdisp.c (display_line): While checking line continuation, pay
12390 attention to a padding glyph.
12391
1969fae2
GM
123922000-06-05 Gerd Moellmann <gerd@gnu.org>
12393
12394 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
12395
162ccef4
DL
123962000-06-05 Dave Love <fx@gnu.org>
12397
f19f32dd
DL
12398 * xdisp.c: Include fontset.h.
12399
12400 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
12401
12402 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12403
12404 * dispnew.c: Conditionally include term.h.
12405
12406 * coding.h: Declare code_convert_string_norecord.
12407
12408 * frame.h (struct frame): Use volatile unconditionally.
12409
12410 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
12411
12412 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
12413
12414 * systime.h: Protect against multiple inclusion.
12415 (timezone) [USG5_4]: Define as time_t.
12416
12417 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12418 (Foptimize_char_table, make_temp_name): Declare.
12419
12420 * Makefile.in (xdisp.o): Depend on fontset.h.
12421
12422 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12423
12424 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12425 (Foptimize_char_table, make_temp_name): Declare.
12426
427ec082 12427 * s/irix4-0.h:
162ccef4
DL
12428 * s/irix5-0.h:
12429 * s/netbsd.h: Don't define autoconfiscated MATHERR.
12430
2082fe81
DL
124312000-06-02 Dave Love <fx@gnu.org>
12432
12433 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
12434
dcf671d2
GM
124352000-06-02 Gerd Moellmann <gerd@gnu.org>
12436
12437 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 12438 result face, set flags in that face indicating that colors may not
dcf671d2
GM
12439 be freed.
12440
12441 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
12442 glyph, use the ASCII NUL character to determine the face.
12443
d42122a3
DL
124442000-06-02 Dave Love <fx@gnu.org>
12445
12446 * sysdep.c: Conditionally include stdlib.h, unistd.h.
12447 (VFORK_RETURN_TYPE): Remove.
427ec082 12448
d42122a3
DL
12449 * config.in: Add NO_MATHERR.
12450
dd432f16
DL
124512000-06-01 Dave Love <fx@gnu.org>
12452
90aa4ea8
DL
12453 * cmds.c (internal_self_insert): Don't check
12454 Vbefore_change_function, Vafter_change_function.
12455
12456 * insdel.c (signal_before_change, signal_after_change): Likewise.
12457
12458 * buffer.c (Vbefore_change_function, Vafter_change_function):
12459 Variables and their initializations deleted.
12460
2330c9d4
DL
12461 * callint.c (Fcall_interactively): Doc fix.
12462
dd432f16
DL
12463 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
12464
bf9e8804
DL
124652000-05-31 Dave Love <fx@gnu.org>
12466
12467 * textprop.c: Revert last change -- duplicated.
12468
3694b4ab
GM
124692000-05-31 Gerd Moellmann <gerd@gnu.org>
12470
12471 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
12472 in #if 0.
12473
12474 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
12475
f14156cd
JR
124762000-05-31 Jason Rumney <jasonr@gnu.org>
12477
8119aab8
JR
12478 * search.c (Fre_search_forward, Fre_search_backward)
12479 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
12480
f14156cd
JR
12481 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
12482
4aab9be3
JR
124832000-05-30 Jason Rumney <jasonr@gnu.org>
12484
12485 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
12486 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
12487
52283633 12488 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
12489
12490 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
12491 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
12492 expand a nil default_filename.
12493
12494 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
12495 pointer to glyph_to_pixel_coords, not a frame.
12496
12497 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
12498 coding.h to dependencies.
12499
12500 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
12501
12502 * w32console.c (glyph_to_pixel_coords): Change first parameter to
12503 window pointer to be consistent with w32term.c and xterm.c.
12504
12505 * w32fns.c: Format and doc changes to bring closer to xfns.c.
12506 (VIETNAMESE_CHARSET): Define if not defined in system headers.
12507 (Qline_spacing, Qcenter): New variables.
12508 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
12509 (x_set_line_spacing): New function.
52283633 12510 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
12511 (x_specified_cursor_type): New function.
12512 (x_set_cursor_type): Use it.
12513 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
12514 and icon strings.
12515 (validate_x_resource_name, x_get_resource_string): Measure lengths
12516 of external strings in bytes.
12517 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
12518 GetTextExtentPoint32 with NULL title.
12519 (Fx_create_frame): Initialize Qline_spacing.
12520 (w32_load_system_font): Initialize font->double_byte_p.
12521 (x_to_w32_charset): Use Vw32_charset_info_alist.
12522 (Image, busy cursor, tooltip functions): Merged changes from
12523 xfns.c. Not yet functional on Windows.
12524
12525 * w32gui.h (W32FontStruct): Add double_byte_p member.
12526
12527 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
12528 (emacs_button_translation): Use it.
12529 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
12530 in `mask' to be set.
12531
12532 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
12533 menu strings.
12534
12535 * w32term.c: Format and doc changes to bring closer to xterm.c.
12536 (w32_char_font_type): New enum.
12537 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
12538 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
12539 (w32_encode_char): New function.
12540 (x_encode_char): Removed.
12541 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
12542 x_encode_char and w32_font_is_double_byte.
12543 (x_produce_image_glyph): Use image_ascent.
12544 (x_produce_glyphs): Use new version of w32_per_char_metric and
12545 handle NULL return value. Allow extra line spacing.
12546 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
12547 (w32_get_glyph_overhangs): Remove unicode_p param. Use
12548 w32_font_type member of glyph instead.
12549 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
12550 (fast_find_position): Make sure not to consider rows not visible
12551 in the window.
12552 (w32_read_socket) [WM_MENUSELECT]: Cannot call
12553 w32_menu_display_help with input blocked, as it can abort.
12554 (x_display_and_set_cursor): Choose cursor depending
12555 on buffer-local value of cursor_type.
12556 (x_draw_bar_cursor): Add parameter WIDTH.
12557
12558 * w32term.h (CP_DEFAULT): Define.
12559 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
12560
10fc3187
GM
125612000-05-30 Gerd Moellmann <gerd@gnu.org>
12562
12563 * search.c (Fre_search_forward, Fre_search_backward)
12564 (Fposix_search_backward, Fposix_search_forward): Doc fix.
12565
d0555360
KH
125662000-05-30 Kenichi Handa <handa@etl.go.jp>
12567
12568 * coding.c (detect_coding_iso2022): Fix code for checking
12569 CODING_CATEGORY_MASK_ISO_8_2.
12570
f1ad044f
SM
125712000-05-29 Stefan Monnier <monnier@cs.yale.edu>
12572
12573 * regex.c (PREFETCH_NOLIMIT): New function.
12574 (re_match_2_internal): Use it and adjust the end_match_2 logic.
12575
84ec3b4b
GM
125762000-05-29 Gerd Moellmann <gerd@gnu.org>
12577
66254a13
GM
12578 * syntax.c (find_defun_start): Move test for
12579 open_paren_in_column_0_is_defun_start outside of the loop.
12580
49e70dec
GM
12581 * xdisp.c (redisplay_window): Really switch buffers when
12582 displaying mode lines, and temporarily set selected_frame to the
12583 frame of the window that's redisplayed.
12584
84ec3b4b
GM
12585 * xfaces.c (free_realized_faces): Block/unblock input.
12586 (free_realized_multibyte_face): Ditto.
12587
869a3a14
DL
125882000-05-29 Dave Love <fx@gnu.org>
12589
12590 * textprop.c (Qkeymap): New variable.
12591 (syms_of_textprop): Intern it.
12592
12593 * keymap.c: Include intervals.h.
12594 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
12595
12596 * Makefile.in (keymap.o): Depend on intervals.h.
12597
12598 * keyboard.c (menu_bar_items, tool_bar_items)
12599 (Fexecute_extended_command): Deal with `keymap' property.
12600 (read_key_sequence): Track map from `keymap' property as well as
12601 `local_map'.
12602
12603 * intervals.c (get_local_map): Extra arg to allow looking for
12604 `keymap' too.
12605
12606 * intervals.h (map_property): New enum.
12607 (get_local_map): Extra arg using it.
12608 (Qkeymap): Declare.
12609
84ec3b4b 12610 * lisp.h (get_local_map): Don't declare here.
869a3a14 12611
89d0c844
KH
126122000-05-29 Kenichi Handa <handa@etl.go.jp>
12613
12614 * Makefile.in (callproc.o): Depend on composite.h.
12615
12616 * callproc.c: Include composite.h.
12617 (Fcall_process): Handle composition correctly.
12618
12619 * coding.h (coding_allocate_composition_data): Extern it.
12620 (coding_restore_composition): Likewise.
12621
12622 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
12623 yet allocated, finish decoding with result
12624 CODING_FINISH_INSUFFICIENT_CMP.
12625 (coding_allocate_composition_data): Make it non-static.
12626 (coding_restore_composition): Likewise.
12627
797a084a
EZ
126282000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
12629
12630 * charset.c (syms_of_charset): Revert last change.
12631
cf872af5
EZ
126322000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12633
12634 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
12635 charsets as unibyte, with 1-column screen width. Sent by Kenichi
12636 Handa.
cf872af5 12637
5b1ae051
EZ
126382000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12639
12640 * charset.c (syms_of_charset): Set width of character sets
12641 eight-bit-control and eight-bit-graphic to 1 column.
12642
34ec9ebe
GM
126432000-05-26 Gerd Moellmann <gerd@gnu.org>
12644
12645 * config.in (HAVE_SPEED_T): New define.
12646
12647 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
12648 `extern speed_t'.
12649
dd854dc2
DL
126502000-05-26 Dave Love <fx@gnu.org>
12651
12652 * coding.c (shrink_decoding_region): Initialize eol_conversion.
12653
12654 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
12655 (Fsubr_arity): New function.
12656 (syms_of_data): Install them.
12657
ba9f8f95
KH
126582000-05-26 Kenichi Handa <handa@etl.go.jp>
12659
0f3e0672
KH
12660 * charset.c (init_charset_once): Set the table bytes_by_char_head
12661 correctly.
12662
cebefb44
KH
12663 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
12664 the default fontset to what Emacs uses by default.
0f3e0672
KH
12665 (check_registry_encoding): This function deleted.
12666 (Fset_fontset_font): Remove the adhoc condition for the default
12667 fontset. Allow cons in FONTNAME.
cebefb44 12668
0f3e0672
KH
12669 * fns.c (map_char_table): Ignore char-table entries for
12670 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 12671
7a18af49
KR
126722000-05-25 Ken Raeburn <raeburn@gnu.org>
12673
12674 * emacs.c (main): Initialize keyboard syms before initializing
12675 window code, so face names are available.
12676
d2af47df
SM
126772000-05-25 Stefan Monnier <monnier@cs.yale.edu>
12678
12679 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
12680 of an anchor at the beginning of a shy-group.
12681
fc6a6a4e
GM
126822000-05-25 Gerd Moellmann <gerd@gnu.org>
12683
12684 * xdisp.c (handle_invisible_prop): Don't try to skip over
12685 invisible text if end of text is already reached.
12686
005f0d35
DL
126872000-05-25 Dave Love <fx@gnu.org>
12688
02513cdd
DL
12689 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
12690
005f0d35
DL
12691 * coding.c (encode_eol): Add null statement after label.
12692
89f6ca4e
EZ
126932000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
12694
12695 * w16select.c (Fw16_set_clipboard_data): Fix the change from
12696 2000-05-20.
12697
a4e1759e
KH
126982000-05-25 Kenichi Handa <handa@etl.go.jp>
12699
12700 * ccl.c (ccl_driver): Fix previous change.
12701
eacfd7fe
KH
127022000-05-25 Kenichi Handa <handa@etl.go.jp>
12703
46ab33a9
KH
12704 * coding.c (run_pre_post_conversion_on_str): Set point to the
12705 beginning of buffer before calling coding->post_read_conversion.
12706 (decode_coding_string): Give correct args to
12707 run_pre_post_conversion_on_str.
12708 (encode_coding_string): Likewise.
12709
eacfd7fe
KH
12710 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
12711 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
12712 eight-bit-graphic correctly.
12713
f8569325
DL
127142000-05-24 Kenichi HANDA <handa@etl.go.jp>
12715
12716 * fileio.c (Finsert_file_contents): Even if a file is not found,
12717 execute codes for setting up coding system. Call
12718 after-insert-file-functions unconditionally.
12719
04545643
GM
127202000-05-24 Gerd Moellmann <gerd@gnu.org>
12721
12722 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
12723 BSD_PGRPS are not defined.
12724
747d90ea
KH
127252000-05-24 Kenichi Handa <handa@etl.go.jp>
12726
12727 * charset.c (update_charset_table): Accept nil in LONG_NAME and
12728 DESCRIPTION.
12729 (syms_of_charset): Avoid building same strings.
12730
716e3b88
GM
127312000-05-23 Gerd Moellmann <gerd@gnu.org>
12732
12733 * lread.c (Fload): Add a comment about the meaning of
12734 Vuser_init_file being t.
12735
12736 * puresize.h (BASE_PURESIZE): Increase to 675000.
12737
12738 * s/gnu-linux.h (setpgrp): Don't define it here because this
12739 prevents compilation on GNU/Linux systems with glib 2.2.
12740
12741 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
12742 as setpgid.
427ec082 12743
9aeb39fa
EZ
127442000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
12745
12746 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
12747 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
12748 version.
12749 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
12750
29ced61b
KH
127512000-05-23 Kenichi Handa <handa@etl.go.jp>
12752
52283633 12753 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 12754
3d80f24d
KH
12755 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
12756
52283633 12757 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 12758
29ced61b
KH
12759 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
12760
d7e00792
KH
127612000-05-22 Kenichi Handa <handa@etl.go.jp>
12762
c9d80d38
KH
12763 * keyboard.c (read_char): Allow character codes 128..255 to be
12764 handled by input-method-function.
12765
d7e00792
KH
12766 * insdel.c (adjust_markers_for_replace): Fix previous change.
12767 (adjust_after_replace): If PREV_TEXT is nil, call
12768 adjust_markers_for_insert, not adjust_markers_for_replace.
12769
087121cc 127702000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 12771
087121cc
GM
12772 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
12773 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
12774 [HAVE_GRANDPT]: Define.
12775 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
12776
12777 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
12778 like SYSV_PTYS.
12779
12780 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
12781
12782 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
12783
c9671f81
KH
127842000-05-20 Kenichi Handa <handa@etl.go.jp>
12785
12786 The following changes are to handle 8-bit characters in a
12787 multibyte buffer/string without facing with byte combining
12788 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
12789 eight-bit-graphic (for 0xA0..0xFF) are introduced.
12790
12791 * Makefile.in (fns.o): Depend on charset.h.
12792
12793 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
12794 convert it to unibyte.
12795 (make_string): Use parse_str_as_multibyte, not chars_in_text.
12796
12797 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
12798 apparent char boundary.
12799 (Fset_buffer_multibyte): Convert 8-bit characters in the range
12800 0x80..0x9F to/from multibyte form.
12801
12802 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
12803 to unibyte.
12804
12805 * callproc.c (Fcall_process): Always encode an argument string if
12806 it is multibyte. Setup src_multibyte and dst_multibyte members of
12807 process_coding properly.
ce75fd23 12808
c9671f81
KH
12809 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
12810 SPLIT_NON_ASCII_CHAR.
12811
12812 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
12813 as is.
12814 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
12815
52283633 12816 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 12817 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 12818 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
12819 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
12820 and eight-bit-graphic.
12821 (char_to_string): Likewise. Signal an error for too large
12822 character code.
12823 (char_printable_p): Return 0 for 8-bit characters.
12824 (update_charset_table): Update iso_charset_table only when a final
12825 character is non-negative.
12826 (find_charset_in_text): Renamed from find_charset_in_str.
12827 Arguments and return value changed. Callers changed.
12828 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
12829 be -1 if CHARSET is used only internally.
12830 (Fmake_char_internal): Handle new charsets; eight-bit-control and
12831 eight-bit-graphic.
12832 (Fcharset_after): Simplified.
12833 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
12834 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
12835 (multibyte_chars_in_text): Simplified by assuming there's no
12836 invalid multibyte sequence.
52283633
SM
12837 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12838 (str_as_unibyte): New functions.
12839 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
12840 (init_charset_once): Initialization for
12841 LEADING_CODE_8_BIT_CONTROL.
12842 (syms_of_charset): Intern and staticpro Qeight_bit_control and
12843 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
12844 eight-bit-control and eight-bit-graphic.
12845
52283633
SM
12846 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
12847 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
12848 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
12849 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
12850 (CHARSET_REVERSE_CHARSET): Likewise.
12851 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
12852 eight-bit-graphic.
12853 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
12854 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
12855 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
12856 encounter an invalid multibyte sequence.
12857 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
12858 sequence is always valid.
12859 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 12860 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
12861 (CHAR_STRING): For 8-bit characters, call char_to_string.
12862 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
12863 multibyte sequence is always valid.
12864 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
12865 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12866 (str_as_unibyte): Extern them.
c9671f81 12867 (BCOPY_SHORT): Fix a bug.
52283633 12868 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
12869 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
12870 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
12871 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
12872
bd4bde7f 12873 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 12874 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
12875 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
12876 (EMIT_BYTES): New macros.
12877 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
12878 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
12879 macros deleted.
12880 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
12881 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
12882 check the validity of multibyte sequence.
12883 (decode_coding_emacs_mule): New function.
12884 (encode_coding_emacs_mule): New macro.
12885 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
12886 the source.
12887 (DECODE_ISO_CHARACTER): Just return a character code.
12888 (DECODE_COMPOSITION_START): Set coding->result instead of result.
12889 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
12890 EMIT_CHAR to produced decoded characters. Exit the loop only by
12891 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
12892 block here.
12893 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
12894 only position codes for an invalid character.
12895 (encode_designation_at_bol): Return new destination pointer. 5th
12896 arg DSTP is changed to DST.
12897 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
12898 from the source by ONE_MORE_CHAR. Don't handle the case of last
12899 block here.
12900 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
12901 macros deleted.
52283633
SM
12902 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
12903 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
12904 TWO_MORE_BYTES to fetch a byte from the source.
12905 (encode_eol): Pay attention to coding->src_multibyte.
12906 (detect_coding, detect_eol): Preserve members src_multibyte and
12907 dst_multibyte.
12908 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
12909 (encoding_buffer_size): Set magnification to 3 for all coding
12910 systems that require encoding.
12911 (ccl_coding_driver): For decoding, be sure that the result is
12912 valid multibyte sequence.
12913 (decode_coding): Initialize coding->errors and coding->result.
12914 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
12915 and raw-text, always call decode_eol. Handle the case of last
12916 block here. If not coding->dst_multibyte, convert the resulting
12917 sequence to unibyte.
12918 (encode_coding): Initialize coding->errors and coding->result.
12919 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
12920 and raw-text, always call encode_eol. Handle the case of last
12921 block here.
12922 (shrink_decoding_region, shrink_encoding_region): Detect cases
12923 that we can't skip data more rigidly.
12924 (code_convert_region): Setup src_multibyte and dst_multibyte
12925 members of coding. For decoding, if the buffer is multibyte,
12926 convert the source sequence to unibyte in advance. For encoding,
12927 if the buffer is multibyte, convert the resulting sequence to
12928 multibyte afterward.
12929 (run_pre_post_conversion_on_str): New function.
12930 (code_convert_string): Deleted and divided into the following two.
12931 (decode_coding_string, encode_coding_string): New functions.
12932 (code_convert_string1, code_convert_string_norecord): Call one of
12933 above.
12934 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
12935 MAKE_NON_ASCII_CHAR.
52283633
SM
12936 (Fset_terminal_coding_system_internal)
12937 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
12938 and dst_multibyte members.
12939 (init_coding_once): Initialize iso_code_class with new enum
12940 ISO_control_0 and ISO_control_1.
12941
12942 * coding.h (enum iso_code_class_type): Member ISO_control_code is
12943 devided into ISO_control_0 and ISO_control_1.
12944 (struct coding_system): New members src_multibyte, dst_multibyte,
12945 errors, and result. Delete member fake_multibyte.
12946 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
12947 nonzero.
12948 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
12949 nonzero.
12950
12951 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
12952 (Faset): Likewise.
12953
12954 * editfns.c (Fformat): Be sure to convert 8-bit characters to
12955 multibyte form.
12956 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
12957 combining occurs.
12958 (Ftranspose_region): Delete codes for handling byte combining.
12959
12960 * fileio.c (Finsert_file_contents): Setup src_multibyte and
12961 dst_multibyte members of coding. On handling REPLACE on unibyte
12962 buffer, convert the result of decode_coding to unibyte. On
12963 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 12964 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
12965 multibyteness of the source (buffer or string).
12966
12967 * fns.c (concat): Handle 8-bit characters correctly.
12968 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
12969 unibyte in the result.
12970 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
12971 valid multibyte form in the result.
12972 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
12973 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
12974 return -1, signal an error.
12975 (base64_encode_1): New arg MULTIBYTE. Get each character by
12976 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
12977 character is found, return -1.
12978 (Fbase64_decode_region): Delete codes for handling byte-combining.
12979 Treat each decoded byte as a unibyte character.
12980 (Fbase64_decode_string): Return unibyte string.
12981 (Fcompare_strings, concat, string_byte_to_char): Use
12982 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
12983 FETCH_STRING_CHAR_ADVANCE.
12984 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12985 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
12986
12987 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
12988 SPLIT_NON_ASCII_CHAR.
12989 (fontset_ref_via_base, fontset_set): Likewise
12990
12991 * insdel.c (adjust_markers_for_record_delete): Deleted.
12992 (adjust_markers_for_insert): Argument changed. Caller changed.
12993 (adjust_markers_for_replace): Likewise.
52283633
SM
12994 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
12995 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
12996 (copy_text): Delete unused local varialbe c_save. For converting
12997 to multibyte, be sure to make all 8-bit characters in valid
12998 multibyte form.
12999 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
13000 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13001 (adjust_after_replace, replace_range, del_range_2)
c9671f81 13002 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
13003 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13004 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
13005 handling byte combining.
13006 (adjust_before_replace): Deleted.
427ec082 13007
c9671f81
KH
13008 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
13009 SPLIT_NON_ASCII_CHAR.
13010 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 13011 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
13012 (Fkey_description): Likewise.
13013
13014 * lread.c (read1): On reading multibyte string, be sure to make
13015 all 8-bit chararacters in valid multibyte form.
13016 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13017
13018 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
13019 unconditionally.
13020
13021 * process.c (Fstart_process): GCPRO current_dir before calling
13022 Ffind_operation_coding_system. Encode arguments here.
13023 (create_process): Don't encode arguments here. Setup
13024 src_multibyte and dst_multibyte members of struct coding.
13025 (read_process_output): Setup src_multibyte and dst_multibyte
13026 members of struct coding. If the output is to multibyte buffer,
13027 always decode the output of the process. Adjust the
52283633 13028 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
13029 (send_process): Setup coding->src_multibyte according to the
13030 multibyteness of the source.
13031
52283633 13032 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
13033 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
13034 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
13035
52283633 13036 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
13037
13038 * w16select.c (Fw16_set_clipboard_data): Setup members
13039 src_multibyte and dst_multibyte of coding. Adjusted for the
13040 change for find_charset_in_str.
13041 (Fw16_get_clipboard_data): Likewise.
13042
13043 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
13044 dst_multibyte of coding.
13045 (x_to_w32_font): Likewise.
13046
13047 * w32select.c (Fw32_set_clipboard_data): Setup members
13048 src_multibyte and dst_multibyte of coding. Adjusted for the
13049 change for find_charset_in_str.
13050 (Fw32_get_clipboard_data): Likewise.
13051
13052 * xdisp.c (get_next_display_element): Handle 8-bit characters
13053 correctly.
52283633
SM
13054 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
13055 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
13056
13057 * xselect.c (selection_data_to_lisp_data): Setup members
13058 src_multibyte and dst_multibyte of coding. Adjusted for the
13059 change for find_charset_in_str.
13060 (lisp_data_to_selection_data): Likewise.
13061
5f64c9e0
GM
130622000-05-19 Gerd Moellmann <gerd@gnu.org>
13063
52283633 13064 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 13065
5f64c9e0
GM
13066 * dispextern.h (Vimage_types): Add extern declaration.
13067
13068 * xdisp.c (Vimage_types): Moved here from xfns.c.
13069 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
13070
13071 * xfns.c (Vimages_types): Moved to xdisp.c.
13072 (syms_of_xfns): Move `image-types' to xdisp.c.
13073
13074 * w32fns.c (Vimage_types): Removed.
13075 (syms_of_w32fns): Remove `image-types'.
13076
813086ea
KH
130772000-05-18 Kenichi Handa <handa@etl.go.jp>
13078
13079 * fns.c (map_char_table): Pay attention to character number of
13080 charset. Check the validity of charset at the first level. For
13081 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
13082 the default value.
13083
13084 * fontset.c: Include "buffer.h".
13085 (fs_load_font): If the face has fontset, record the face ID in
13086 that fontset.
13087 (Finternal_char_font): New function.
13088 (accumulate_font_info): New function.
13089 (Ffontset_info): Rewritten for the new fontset implementation.
13090 (syms_of_fontset): Register Vdefault_fontset in the first element
13091 of Vfontset_table. Include Vdefault_fontset in
13092 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
13093 function.
13094
bdaebbf0
DL
130952000-05-16 Dave Love <fx@gnu.org>
13096
13097 * m/iris5d.h: Deleted -- unused.
13098
cb613bb8
GM
130992000-05-16 Gerd Moellmann <gerd@gnu.org>
13100
b15f3b77
GM
13101 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
13102 `invalid' instead of `illegal'.
13103
13104 * indent.c (Fmove_to_column): When ending within a tab, insert
13105 spaces first so that markers at the end of the tab get adjusted.
13106
835c1b36
GM
13107 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
13108 buffer list that wasn't selected in that frame.
13109
cb613bb8
GM
13110 * filelock.c (get_boot_time): To obtain an 8 char file name, which
13111 is needed on mescaline, use a 2 char prefix, and call
13112 make_temp_name with second arg non-zero.
13113
13114 * fileio.c (make_temp_name): New function, extracted from
13115 Fmake_temp_name.
13116 (Fmake_temp_name): Use it.
13117
f685bea9
EZ
131182000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13119
52283633 13120 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 13121
a1b8d58b
GM
131222000-05-15 Gerd Moellmann <gerd@gnu.org>
13123
13124 * Makefile.in (lisp): Add env.elc.
13125
13126 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
13127
a265079f
GM
131282000-05-12 Gerd Moellmann <gerd@gnu.org>
13129
13130 * search.c (Freplace_match): Handle case of `\N' in the
13131 replacement when there's no group N.
13132
da4496b6
GM
131332000-05-11 Gerd Moellmann <gerd@gnu.org>
13134
0ace421a
GM
13135 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
13136 of the message to message_dolog.
13137
1172eb8d
GM
13138 * keyboard.c (read_char): Don't clear current message for help
13139 events; let the code handling help events handle this. Change
13140 code detecting help events that should be ignored.
13141
da4496b6
GM
13142 * xdisp.c (handle_single_display_prop): Don't try to set PT if
13143 we're interating over a string.
13144
0623e40f
DL
131452000-05-09 Dave Love <fx@gnu.org>
13146
13147 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
13148 that offset before writing. Move gcpro region past call of
13149 Ffile_regular_p.
13150
bae2503b
DL
131512000-05-04 Dave Love <fx@gnu.org>
13152
13153 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
13154
ec82fb2f
GM
131552000-05-04 Gerd Moellmann <gerd@gnu.org>
13156
13157 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
13158 of inserted characters when BUF equals the current buffer, and PT
13159 is in front of or equal to FROM.
13160
cbf18892
GM
131612000-05-03 Gerd Moellmann <gerd@gnu.org>
13162
4ff40dd0
GM
13163 * xdisp.c (handle_single_display_prop): If display property value
13164 is invalid, or something not supported on the frame, restore
13165 iterator's position to what it was initially. Make sure to return
13166 0 for invalid and unsupported property values.
13167
cbf18892
GM
13168 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
13169 that x_per_char_metric returns null.
13170
1b0672c3
GM
131712000-05-02 Gerd Moellmann <gerd@gnu.org>
13172
576da55d
GM
13173 * xterm.h (struct face): Add forward declaration.
13174 (struct image): Ditto.
13175 (image_ascent): Add prototype.
13176
13177 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
13178 (x_draw_image_relief, x_draw_image_foreground_1): Call function
13179 image_ascent instead of using IMAGE_ASCENT.
13180
13181 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
13182 (IMAGE_ASCENT): Removed.
13183
13184 * xfns.c (Qcenter): New variable.
13185 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
13186 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
13187 (image_ascent): New function.
13188 (lookup_image): Recognize `:ascent center'.
13189 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
13190 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13191 (xbm_load): Don't set image's ascent here.
13192 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
13193 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
13194 check ascent values here.
13195 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
13196 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
13197 (syms_of_xfns): Initialize Qcenter.
13198
1b0672c3
GM
13199 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
13200 to the limits, increase the limits.
13201
0d7811ed
KH
132022000-05-01 Kenichi Handa <handa@etl.go.jp>
13203
13204 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 13205 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 13206
a943a5ca
GM
132072000-04-28 Gerd Moellmann <gerd@gnu.org>
13208
13209 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
13210 taller than the window.
13211
5dba1e29
KH
132122000-04-28 Kenichi Handa <handa@etl.go.jp>
13213
13214 * xfaces.c (realize_x_face): Fix the argument of the second
13215 xassert. BASE_FACE may not be a face for ASCII.
13216
353964e3
GM
132172000-04-27 Gerd Moellmann <gerd@gnu.org>
13218
c76e04a8
GM
13219 * print.c (print_object): Treat print-length < 0 as nil.
13220
13221 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
13222
13223 * s/freebsd.h (TERMCAP_OBJ): Removed.
13224 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
13225
13226 * lread.c (read1): Don't treat period followed by certain
13227 characters as symbol start.
13228
13229 * xfns.c (slurp_file): New function.
13230 (xbm_image_p): Handle case of in-memory XBM files.
13231 (xbm_scan): Rewritten to work on memory buffers instead of files.
13232 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
13233 Work on memory buffers instead of files. If DATA is null test
13234 if buffer looks like an in-memory XBM file.
13235 (xbm_load_image): Renamed from xbm_load_image_file. Work on
13236 memory buffers instead of files.
13237 (xbm_file_p): New function.
13238 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
13239
353964e3
GM
13240 * lread.c (end_of_file_error): New function.
13241 (read1): Call it instead of signaling `end-of-file' directly.
13242
427ec082 13243 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
13244 with Fprinc instead of Fprin1.
13245
24d744ac
KR
132462000-04-26 Ken Raeburn <raeburn@gnu.org>
13247
13248 * window.c (freeze_window_start): Check that minibuffer scroll
13249 window isn't nil before extracting the window structure pointer
13250 from it.
13251
13252 * undo.c (record_delete): If we hit the end of the undo list, stop
13253 picking elements apart.
13254
7464346d
GM
132552000-04-26 Gerd Moellmann <gerd@gnu.org>
13256
13257 * xdisp.c (display_line): If lines are continued, restore
13258 iterator's ascent/descent information to the values before the
13259 first glyph not fitting on the line.
13260
612839b6
GM
132612000-04-25 Gerd Moellmann <gerd@gnu.org>
13262
13263 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 13264 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
13265
13266 * dispnew.c (increment_matrix_positions): Renamed from
13267 increment_glyph_matrix_buffer_positions.
13268 (increment_row_positions): Renamed from
13269 increment_glyph_row_buffer_positions.
13270
13271 * dispextern.h: Change names of renamed functions from dispnew.c
13272 in prototypes.
13273
cc181e95
GM
132742000-04-24 Gerd Moellmann <gerd@gnu.org>
13275
abfcc168
GM
13276 * fileio.c (Fdo_auto_save): Create directories for auto-save
13277 list file if necessary.
13278
cc181e95
GM
13279 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
13280 from buffer or frame.
13281 (automatic_hscrolling_p): New variable.
13282 (hscroll_windows): Scroll windows horizontally only if automatic
13283 hscrolling is allowed.
13284 (syms_of_xdisp): New variable `automatic-hscrolling'.
13285
13286 * frame.h (struct frame): Add member extra_line_spacing.
13287
13288 * xfns.c (x_set_line_spacing): New function.
13289 (Fx_create_frame): Set line spacing from resources.
13290 (Qline_spacing): New variable.
13291 (syms_of_xfns): Initialize Qline_spacing.
427ec082 13292
cc181e95
GM
13293 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
13294
13295 * buffer.c (init_buffer_once): Handle extra_line_spacing.
13296 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 13297 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
13298 extra_line_spacing from default value.
13299 (init_buffer_once): Initialize default value of extra_line_spacing.
13300
13301 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
13302 and extra3.
13303
13304 * xterm.c (x_produce_glyphs): Remove reference to struct it's
13305 prompt_width. Add extra line spacing.
13306
13307 * term.c (produce_glyphs): Remove reference to struct it's
13308 prompt_width.
13309
13310 * dispextern.h (struct it): Remove member prompt_width, add
13311 extra_line_spacing.
13312
58827478
GM
133132000-04-22 Gerd Moellmann <gerd@gnu.org>
13314
13315 * dispnew.c (update_frame_line): When writing a whole line, make
13316 sure cursor is in the right row afterwards, otherwise a use of
13317 capability `ch' in cmgoto might leave the cursor in the row below.
13318
25a87f42
GM
133192000-04-21 Gerd Moellmann <gerd@gnu.org>
13320
13321 * lisp.h (struct Lisp_Buffer_Cons): Remove.
13322
13323 * keyboard.c (timer_check): Fix typo in comment.
13324
54edf5c2
KH
133252000-04-21 Kenichi Handa <handa@etl.go.jp>
13326
13327 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
13328 name change: ch -> character.
13329
3a64eef5
GM
133302000-04-20 Gerd Moellmann <gerd@gnu.org>
13331
13332 * keyboard.c (echo_message_buffer): New variable.
13333 (echo_now): Set echo_message_buffer to the echo area buffer used
13334 to display the echo.
13335 (cancel_echoing): Reset echo_message_buffer to nil.
13336 (read_char): Code rewritten that handles canceling an echo or
13337 echoing a dash, respectively.
13338
13339 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
13340 directory doesn't exist.
13341
6142fdcb
DL
133422000-04-19 Dave Love <fx@gnu.org>
13343
13344 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
13345 (concat): Don't allow numeric args.
13346 (Fconcat): Doc change.
6142fdcb 13347
ac6b5352
SM
133482000-04-19 Stefan Monnier <monnier@cs.yale.edu>
13349
13350 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
13351 instead define end_match(1|2) more carefully.
13352 Use GET_CHAR_BEFORE_2 for `begline'.
13353
cb9215e4
GM
133542000-04-19 Gerd Moellmann <gerd@gnu.org>
13355
5e3dac3f
GM
13356 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
13357 on 64-bit systems where NULL is defined as `0'.
13358
13359 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
13360 the `variable argument list' to make it work on Alpha.
13361
cb9215e4
GM
13362 * m/alpha.h (_LP64) [!_LP64]: Define.
13363 (ORDINARY_LINK): Define for NetBSD.
13364
13365 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 13366
f532dca0
DL
133672000-04-19 Dave Love <fx@gnu.org>
13368
c750667e
DL
13369 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
13370 change.
13371
13372 * Makefile.in (LIBS): Don't use.
13373 (GETLOADAVG_OBJ): Define again.
13374 (otherobj): Add GETLOADAVG_OBJ.
13375
f532dca0
DL
13376 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
13377
1c7e22fd
GM
133782000-04-18 Gerd Moellmann <gerd@gnu.org>
13379
f6d3257b
GM
13380 * lread.c (read_filtered_event): Cancel and start busy cursor.
13381
427ec082 13382 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
13383 that the per-character metrics may be null.
13384
e10f64e7
GM
133852000-04-17 Gerd Moellmann <gerd@gnu.org>
13386
0daee095
GM
13387 * buffer.c (clone_per_buffer_values): New function.
13388 (Fmake_indirect_buffer): Add optional argument CLONE. Call
13389 clone_per_buffer_values if CLONE is not nil.
13390
e10f64e7
GM
13391 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
13392
38687d43
DL
133932000-04-16 Dave Love <fx@gnu.org>
13394
13395 * Makefile.in: Remove obsolete localcpp stuff.
13396 (GETLOADAVG_OBJ): Don't define.
13397 (obj): Move LIBOBJS...
13398 (otherobj): ... to here.
13399 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
13400 whitespace-only lines after the continuation (Irix).
13401
c21c7262
GM
134022000-04-14 Gerd Moellmann <gerd@gnu.org>
13403
13404 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
13405
13406 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
13407
314767c0
DL
134082000-04-14 Dave Love <fx@gnu.org>
13409
13410 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
13411 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
13412 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
13413 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
13414 NLIST_STRUCT.
13415
13416 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
13417 autoconfiscated HAVE_GETLOADAVG.
13418
13419 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
13420 BROKEN_MKTIME.
13421
a2522dca
GM
134222000-04-14 Gerd Moellmann <gerd@gnu.org>
13423
13424 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 13425 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 13426
33744b5d
DL
134272000-04-14 Dave Love <fx@gnu.org>
13428
c21c7262 13429 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
13430 (INTERVAL_SRC): Convert to make variable.
13431 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
13432 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
13433 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
13434 add LIBOBJS.
13435 (SOME_MACHINE_OBJECTS): Remove interval stuff.
13436 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
13437 (shortlisp): Add facemenu, float-sup, frame.
13438 (SOME_MACHINE_LISP): Remove them from here.
13439 (LIBES): Change unused LDLIBS to autoconf LIBS.
13440
13441 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
13442
9d3d5916
KH
134432000-04-14 Kenichi Handa <handa@etl.go.jp>
13444
13445 * composite.c (update_compositions): If FROM and TO are not in a
13446 valid range, do nothing.
13447
198e3c7a
GM
134482000-04-13 Gerd Moellmann <gerd@gnu.org>
13449
52283633 13450 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 13451
52283633 13452 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
13453
13454 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
13455 as TERMCAP_OBJ.
13456
055a28c9
EZ
134572000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13458
13459 * fileio.c (a_write): Remove redundant semi-colons.
13460 (e_write): Return -1 if failed to write all the data.
13461 This fixes the changes made at 1999-12-15.
13462
f5c75033
DL
134632000-04-12 Dave Love <fx@gnu.org>
13464
13465 * fns.c (mapcar1): Test for null vals to support mapc.
13466 (Fmapc): New function.
13467
0c3cfc51
EZ
134682000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
13469
13470 * msdos.c (NUM_MOUSE_BUTTONS): Define.
13471 (IT_frame_up_to_date): Support the buffer local value of
13472 cursor-type, if defined.
13473
33465a31
DL
134742000-04-10 Dave Love <fx@gnu.org>
13475
13476 * editfns.c (preceding-char, following-char): Doc fix.
13477
6ed56568
KR
134782000-04-10 Ken Raeburn <raeburn@gnu.org>
13479
13480 * Makefile.in (temacs): Revert 2000-03-12 change.
13481
7cf80d4e
JR
134822000-04-10 Jason Rumney <jasonr@gnu.org>
13483
13484 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
13485
34f3f342
GM
134862000-04-10 Gerd Moellmann <gerd@gnu.org>
13487
1a1b1895
GM
13488 * xdisp.c (setup_echo_area_for_printing): Choose an echo
13489 area buffer, if it's not set up yet.
13490
34f3f342
GM
13491 * indent.c (compute_motion): Set immediate_quit.
13492
be0dbdab
GM
134932000-04-09 Gerd Moellmann <gerd@gnu.org>
13494
52283633 13495 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
13496 (realize_tty_face): Suppress boldness if colors are the inverse of
13497 the default colors, and tty_suppress_bold_inverse_default_colors_p
13498 is set.
13499 (Ftty_suppress_bold_inverse_default_colors): New function.
13500 (syms_of_xfaces): Defsubr it.
13501
be0dbdab
GM
13502 * buffer.c (Frestore_buffer_modified_p): New function.
13503 (syms_of_buffer): Defsubr it.
13504
e8413c3b
KR
135052000-04-08 Ken Raeburn <raeburn@gnu.org>
13506
87f67317
KR
13507 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
13508 charset id (int) argument, not a charset (Lisp_Object).
13509
e8413c3b
KR
13510 * coding.h (code_convert_string): Declare.
13511 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
13512 object, as the fourth argument to code_convert_string.
13513
52283633 13514 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
13515 (Fset_fontset_font): Use EQ to compare lisp objects.
13516
7c752c80
KR
135172000-04-05 Ken Raeburn <raeburn@gnu.org>
13518
c0333abc
KR
13519 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
13520 a pointer that looks like a lisp object.
13521 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
13522 zero, instead see whether it's an integer object, since they can't
13523 have intervals.
13524 (GET_INTERVAL_OBJECT): Simply assign to the destination.
13525
52283633
SM
13526 * dispnew.c (allocate_matrices_for_frame_redisplay)
13527 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
13528 to convert between (unsigned) int values and lisp integers.
13529 * keyboard.c (read_key_sequence): Likewise.
13530 * lread.c (substitute_object_recurse): Likewise.
13531 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
13532 * minibuf.c (do_completion, Fminibuffer_complete_word)
13533 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
13534 * term.c (produce_special_glyphs): Likewise.
13535
13536 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
13537 * print.c (print_preprocess, print_object): Likewise.
13538
13539 * search.c (compile_pattern): Use NILP when checking for nil.
13540
74e49b38
KR
13541 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
13542 __OPTIMIZE__]: Provide a GNU C macro version that handles
13543 lisp-object unions.
13544 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
13545 field, to better cope with ENABLE_CHECKING and calls that modify a
13546 Lisp_Object using its old value.
13547
685e5ed2
GM
135482000-04-04 Gerd Moellmann <gerd@gnu.org>
13549
c407c570
GM
13550 * window.c (compare_window_configurations): Signal an error
13551 if parameters C1 or C2 aren't window configurations.
13552
685e5ed2
GM
13553 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
13554 AFTER_POTENTIAL_GC calls around calls to functions that can
13555 signal an error and thus invoke the debugger.
13556
587a49ab
GM
135572000-04-03 Gerd Moellmann <gerd@gnu.org>
13558
62f20204
GM
13559 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
13560 an error if decoding fails.
13561
587a49ab
GM
13562 * keyboard.c (lispy_mouse_names): Variable removed.
13563 (Vlispy_mouse_stem): New variable.
13564 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
13565 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
13566 for any mouse button number. Increase size of mouse_syms and
13567 button_down_location as needed. Call modify_event_symbol with
13568 different arguments.
13569 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
13570 Call modify_event_symbol with different arguments.
13571 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
13572 for any button number. Call modify_event_symbol with different
13573 arguments.
13574 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
13575 Accept a string for NAME_ALIST_OR_STEM.
13576
13577 * lisp.h (larger_vector): Add prototype.
13578
13579 * fns.c (larger_vector): Make externally visible.
13580
13581 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
13582
2d1675e4
SM
135832000-04-02 Stefan Monnier <monnier@cs.yale.edu>
13584
13585 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
13586 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
13587 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
13588 we are between str1 and str2.
13589 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
13590 (PATFETCH): Use `TRANSLATE'.
13591 (PATFETCH_RAW): Fetch multibyte char if applicable.
13592 (PATUNFETCH): Remove.
13593 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
13594 When writing a char, write it directly into the pattern buffer rather
13595 than going needlessly through a temp char-array.
13596 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
13597 multibyte magic and remove the useless `#ifdef emacs'.
13598 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
13599 buffer.
13600
13601 * regex.h (struct re_pattern_buffer): Make field `multibyte'
13602 conditional on `emacs'.
13603
13604 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
13605
cc2d8c6b
KR
136062000-04-01 Ken Raeburn <raeburn@gnu.org>
13607
13608 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
13609 non-union-type versions of XMARK and friends here, because XMARK
13610 and friends won't work on an integer field if NO_UNION_TYPE is not
13611 defined.
52283633 13612 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 13613
52283633 13614 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
13615 (syms_of_composite): Delete local var NARGS, pass an int as first
13616 argument to Fmake_hash_table.
13617
2387b382
KR
13618 * editfns.c (text_property_stickiness): Use NILP to test
13619 Lisp_Object boolean value.
13620 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
13621 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
13622 problems reading from and changing the same lisp value in an
13623 XSETSTRING call.
13624
27660e89
GM
136252000-04-01 Gerd Moellmann <gerd@gnu.org>
13626
13627 * term.c (TN_no_color_video): New variable.
13628 (term_init): Intitialize TN_no_color_video.
13629 (enum no_color_bit): New enumeration.
13630 (MAY_USE_WITH_COLORS_P): New macro.
13631 (turn_on_face): Use it to determine if attributes may be used
13632 combined with colors.
13633
3578db3c
KR
136342000-04-01 Ken Raeburn <raeburn@gnu.org>
13635
13636 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 13637 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
13638 (enlarge_window): Variable sizep now points to Lisp_Object. Use
13639 proper accessor macros.
13640 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
13641 (grow_mini_window): Fix typo getting int value of root->height.
13642
6fc556fd
KR
13643 * xdisp.c (compute_string_pos): Fix order of arguments to
13644 string_pos_nchars_ahead.
13645 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
13646 count arg to variable-arg routines like Frun_hook_with_args and
13647 Fformat.
587a49ab
GM
13648 (back_to_previous_visible_line_start)
13649 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
13650 fixed-arg routines like Fget_char_property and Fmake_string.
13651 (reconsider_clip_changes): Use XINT when comparing integer lisp
13652 objects, or passing them as int arguments.
587a49ab
GM
13653 (mark_window_display_accurate, insert_left_trunc_glyphs)
13654 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
13655 storing or passing integer values as lisp objects.
13656 (set_cursor_from_row, highlight_trailing_whitespace): Use
13657 INTEGERP, not implicit test against zero, for glyph object.
13658 (try_window_id): Don't use make_number when we want an int value.
13659
13660 * xfaces.c (xlfd_symbolic_value): Make last argument a
13661 Lisp_Object, to be consistent with callers.
13662 (Fbitmap_spec_p): Use XINT to get numeric value of height.
13663 (lface_hash): Apply XFASTINT to lisp values before folding in.
13664
13665 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
13666 fill in window width and height. Pass an int, not a lisp object,
13667 as first arg to Finsert.
13668
6e7b2457
GM
136692000-04-01 Gerd Moellmann <gerd@gnu.org>
13670
610d841e
GM
13671 * xfaces.c (realize_basic_faces): Block input while realizing
13672 the faces.
13673
6e7b2457
GM
13674 * keyboard.c (lispy_mouse_names): Add additional mouse names.
13675
13676 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
13677
aa110c0c
GM
136782000-03-31 Gerd Moellmann <gerd@gnu.org>
13679
13680 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 13681 or ASCII, handle case that per-char metric is null.
aa110c0c 13682
8801a864
KR
136832000-03-30 Ken Raeburn <raeburn@gnu.org>
13684
c6129d7e
KR
13685 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
13686
52283633
SM
13687 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
13688 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
13689 pointer, using eassert.
13690 * frame.h (XFRAME): Likewise.
13691
52283633
SM
13692 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
13693 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
13694 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 13695 * data.c (set_internal): Likewise.
52283633
SM
13696 * dispextern.h (WINDOW_WANTS_MODELINE_P)
13697 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
13698 * fileio.c (auto_save_1): Likewise.
13699 * insdel.c (check_markers): Likewise.
13700 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
13701 * undo.c (record_insert): Likewise.
13702 * vmsproc.c (child_sig): Likewise.
13703 * window.c (unshow_buffer, window_loop): Likewise.
13704 * xterm.c (x_erase_phys_cursor): Likewise.
13705
8e7af858
GM
137062000-03-30 Gerd Moellmann <gerd@gnu.org>
13707
13708 * xfns.c (free_image_cache): Free the cache structure itself
13709 last, after all its members have been freed.
13710
13711 * lisp.h (xstrdup): Add prototype.
13712
13713 * alloc.c (xstrdup): Moved here from xfaces.c.
13714 (allocating_for_lisp): Variable removed.
52283633 13715 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
13716
13717 * xfaces.c (realize_tty_face): Use find_symbol_value instead
13718 of Fsymbol_value.
13719 (xstrdup): Moved to alloc.c.
13720
e0b8c689
KR
137212000-03-29 Ken Raeburn <raeburn@gnu.org>
13722
b96f9fb7
KR
13723 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
13724
13725 * emacs.c (main): Fix sense of no-loadup test.
13726
e0b8c689
KR
13727 * config.in (ENABLE_CHECKING): Undef.
13728
13729 * lisp.h (struct interval): Replace "parent" field with a union of
13730 interval pointer and Lisp_Object; add new bitfield to use as
13731 discriminant. Change other flag fields to bitfields.
13732 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
13733 is defined and the supplied test fails, print a message and abort.
13734 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
13735
13736 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
13737 pointers; abort if the value looks like a lisp object.
52283633
SM
13738 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
13739 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
13740 Modify for new interval parent definition.
13741
52283633
SM
13742 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
13743 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
13744 addressable lisp object in the interval structure.
13745 (die): New function.
13746 (suppress_checking): New variable.
13747
13748 * intervals.c (interval_start_pos): Just return 0 if there's no
13749 parent object.
13750
f83c5440
GM
137512000-03-29 Gerd Moellmann <gerd@gnu.org>
13752
13753 * lread.c (read1): Accept `.' (period) as symbol start like in CL
13754 and earlier Emacs versions.
13755
13756 * keyboard.c (Ftop_level): Cancel busy-cursor.
13757
13758 * eval.c (call_debugger): Cancel busy-cursor.
13759
fdce64ff
KH
137602000-03-29 Kenichi Handa <handa@etl.go.jp>
13761
13762 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 13763 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 13764
f6a3f532
SM
137652000-03-28 Stefan Monnier <monnier@cs.yale.edu>
13766
13767 * regex.c (analyse_first): New function obtained by ripping out most
13768 of re_compile_fastmap and generalizing it a little bit so that it
13769 can also just return whether a given (sub)pattern can match the empty
13770 string or not.
13771 (regex_compile): Use `analyse_first' to decide whether the loop-check
13772 needs to be done or not for *, +, *? and +? (the loop check is costly
13773 for non-greedy repetition).
13774 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
13775
e9b309ac
DL
137762000-03-28 Dave Love <fx@gnu.org>
13777
52283633 13778 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 13779
e9b309ac
DL
13780 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
13781
ed0767d8
SM
137822000-03-27 Stefan Monnier <monnier@cs.yale.edu>
13783
13784 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
13785 an expression.
13786 (enum re_opcode_t): Update description of succeed_n.
13787 (PATFETCH): Always define.
13788 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
13789 operators, char classes, shy-groups and intervals).
13790 Optimize special cases of intervals so as to only use succeed_n and
13791 jump_n when really needed.
13792 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
13793 that we don't have to handle the special cases any more.
13794 Simplify on_failure_jump handling as well.
13795
e11e7e46
JR
137962000-03-28 Jason Rumney <jasonr@gnu.org>
13797
13798 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
13799
88faab89
GM
138002000-03-27 Gerd Moellmann <gerd@gnu.org>
13801
182ff242
GM
13802 * s/freebsd.h (GC_SETJMP_WORKS): Define.
13803
13804 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 13805
182ff242
GM
13806 * alloc.c (mark_maybe_object): New function.
13807 (mark_memory): Use it.
13808 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
13809 (setjmp_tested_p, longjmp_done): New variables.
13810 (test_setjmp): New function.
13811 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
13812 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
13813
c1005d06
GM
13814 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
13815 to DEC_TEXT_POS and INC_TEXT_POS.
13816
13817 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
13818 with parameter MULTIBYTE_P.
13819
52283633 13820 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 13821
7439e5b9 13822 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
13823 buffers because it looks for multibyte character byte sequences
13824 which don't exist in unibyte text.
7439e5b9 13825
d9c545da
GM
13826 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
13827
11fd416e 13828 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
13829 [DEBUG_X_COLORS]: New functions.
13830 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
13831
13832 * xfns.c (x_set_cursor_color): Get color reference counts right.
13833
13834 * xterm.c (x_copy_color): New function.
13835 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
13836
13837 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
13838 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
13839 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
13840 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
13841 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
13842 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
13843 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
13844 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
13845 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
13846 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
13847
11fd416e
GM
13848 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
13849 names for handling per-buffer variables.
d9c545da
GM
13850
13851 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
13852 instead of MAX_BUFFER_LOCAL_VARS.
13853 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
13854
13855 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
13856
88faab89
GM
13857 * xfns.c (x_specified_cursor_type): New function.
13858 (x_set_cursor_type): Use it.
13859
13860 * buffer.h (struct buffer): Add cursor_type.
13861
d80f42b7
SM
138622000-03-26 Stefan Monnier <monnier@cs.yale.edu>
13863
13864 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
13865 (print_partial_compiled_pattern, re_compile_fastmap):
13866 Handle new opcode.
d80f42b7
SM
13867 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
13868 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
13869 executing it as well as when popping it off the stack to find infinite
13870 loops in non-greedy repetition operators.
13871
89e80928
GM
138722000-03-26 Gerd Moellmann <gerd@gnu.org>
13873
3d4ff2dd
GM
13874 * doc.c (Qfunction_documentation): New variable.
13875 (syms_of_doc): Initialize Qfunction_documentation.
13876 (Fdocumentation): If FUNCTION is a symbol with non-nil
13877 `function-documentation' property, return a documentation derived
13878 from that.
13879
bd96bd79
GM
13880 * buffer.c (syms_of_buffer): Add default-cursor-type.
13881 (init_buffer_once): Don't let cursor_type have a local value
13882 in every buffer.
13883
19d1bc27
GM
13884 * xterm.c (x_display_and_set_cursor): Choose cursor depending
13885 on buffer-local value of cursor_type.
13886 (x_draw_bar_cursor): Add parameter WIDTH.
13887
13888 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
13889 (init_buffer_once): Set default cursor_type value to t.
13890 Mark cursor_type as local everywhere.
13891 (syms_of_buffer): New per-buffer variable cursor-type.
13892
89e80928
GM
13893 * buffer.h (struct buffer): Remove member local_var_flags,
13894 add local_flags.
13895 (MAX_BUFFER_LOCAL_VARS): New macro.
13896 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
13897 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
13898 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
13899 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
13900
52283633 13901 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
13902
13903 * category.c (Fset_category_table): Use new macros for per-buffer
13904 variables.
13905
13906 * buffer.c (buffer_permanent_local_flags): Make a char array.
13907 (max_buffer_local_idx): New variable.
13908 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
13909 for new handling of per-buffer variables.
13910 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
13911 (init_buffer_once): Initialize per-buffer vars differently.
13912 Set max_buffer_local_idx.
13913
13914 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
13915 variables.
13916
52283633 13917 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
13918
13919 * data.c (do_symval_forwarding, store_symval_forwarding)
13920 (find_symbol_value, set_internal, default_value, Fset_default)
13921 (Fkill_local_variable, Flocal_variable_p): Use new macros for
13922 per-buffer variables.
13923
13924 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
13925
9a0dd3dc
GM
139262000-03-24 Gerd Moellmann <gerd@gnu.org>
13927
b68c375f
GM
13928 * xterm.c (x_term_init): Unblock input around call1 of
13929 Qvendor_specific_keysyms.
13930
9a0dd3dc
GM
13931 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
13932 (find_defun_start): Consider an open parenthesis in column 0
13933 a defun start only if open_paren_in_column_0_is_defun_start is set.
13934 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
13935
7973e637
SM
139362000-03-24 Stefan Monnier <monnier@cs.yale.edu>
13937
13938 * eval.c (Fautoload): Add entry in load-history (if after dump).
13939 * lread.c (load-history): Update docstring.
13940
39210e90
GM
139412000-03-24 Gerd Moellmann <gerd@gnu.org>
13942
13943 * indent.c (Fvertical_motion): Always use the current buffer.
13944 Temporarily change the window's buffer, if necessary.
13945
72db3ab5
GM
139462000-03-23 Gerd Moellmann <gerd@gnu.org>
13947
13948 * xterm.c (fast_find_position): Make sure not to consider rows
13949 not visible in the window.
13950
990b2375
SM
139512000-03-22 Stefan Monnier <monnier@cs.yale.edu>
13952
13953 * regex.c (enum syntaxcode): Provide default for non-Emacs.
13954 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
13955
ff4df011
JR
139562000-03-22 Jason Rumney <jasonr@gnu.org>
13957
13958 * w32menu.c (single_submenu): Set help string to NULL if none.
13959 (w32_menu_show): Set help string correctly.
13960 (add-menu-item): Set help string in MIIM_DATA for menu item.
13961 Load SetMenuItemInfoA explicitly.
13962 (w32_menu_display_help): New function.
427ec082 13963
ff4df011
JR
13964 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
13965 (QCdata): Moved to xdisp.c.
13966
13967 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
13968 (Vw32_charset_to_codepage_alist): Removed.
13969 (Vw32_charset_info_alist): New variable.
52283633
SM
13970 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
13971 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
13972 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
13973 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
13974 with TODO comment.
13975 (w32_codepage_for_font): Use Vw32_charset_info_alist.
13976 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
13977 Define Vw32_charset_info_alist and w32_charset symbols.
13978
139792000-03-22 Jason Rumney <jasonr@gnu.org>
13980
13981 * makefile.nt (w32bdf.obj): Update dependencies.
13982
13983 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
13984
13985 * w32fns.c: Include fontset.h after dispextern.h.
13986 (Fx_create_frame): Do not create fontset.
13987 (w32_load_system_font): Doc fix.
13988 (Fx_close_connection): Free full_name if it is not shared.
13989
13990 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
13991 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
13992 Callers updated.
ff4df011
JR
13993 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
13994 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
13995 (w32_font_is_double_byte): New function, needs body.
13996 (x_append_glyph): Set glyph->glyph_not_available_p.
13997 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13998 it->charset. If it->multibyte_p is zero and it->c is a multibyte
13999 character, convert it to a unibyte character.
14000 (struct glyph_string): Delete member `charset'.
14001 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
14002 calculating it is found.
14003 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14004 the case that per char metric is not available correctly.
14005 (x_fill_glyph_string): Handle the case that the specific glyph is
14006 not available correctly.
14007 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14008 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14009 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14010 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14011 fontset. Don't call FS_LOAD_FONT.
14012
439d5cb4
KR
140132000-03-22 Ken Raeburn <raeburn@gnu.org>
14014
14015 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
14016 (INT_LISPLIKE): New macro.
14017 (NULL_INTERVAL_P): Use it.
52283633
SM
14018 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
14019 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
14020 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
14021
14022 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
14023 explicit references to "parent" field of struct interval and
14024 associated unclean type conversions.
52283633
SM
14025 * intervals.c (create_root_interval, root_interval, rotate_right)
14026 (rotate_left, balance_possible_root_interval, split_interval_right)
14027 (split_interval_left, interval_start_pos, find_interval)
14028 (next_interval, previous_interval, update_interval)
14029 (adjust_intervals_for_insertion, delete_node, delete_interval)
14030 (adjust_intervals_for_deletion, merge_interval_right)
14031 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
14032 (copy_intervals_to_string): Likewise.
439d5cb4
KR
14033 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
14034 Likewise.
14035 * syntax.c (update_syntax_table): Likewise.
14036
14037 * intervals.c (reproduce_tree_obj): New function, like
14038 reproduce_tree but takes a Lisp_Object for the parent. Declare
14039 with prototype.
14040 (graft_intervals_into_buffer): Use it when appropriate.
14041 (reproduce_tree): Declare with prototype.
14042 (balance_possible_root_interval): Check that the parent is a lisp
14043 object before trying to examine its type.
14044
ee1c5b21
GM
140452000-03-22 Gerd Moellmann <gerd@gnu.org>
14046
14047 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
14048 as strings only if both are known to be strings.
14049
14050 * s/openbsd.h (LIBS_TERMCAP): Undef.
14051
1fb352e0
SM
140522000-03-21 Stefan Monnier <monnier@cs.yale.edu>
14053
14054 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
14055 definitions for non-Emacs compilation.
14056 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
14057 outside of `#ifdef emacs'.
14058 (print_partial_compiled_pattern): Update.
14059 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
14060 (re_compile_fastmap): Merge handling of charset and charset_not (for
14061 emacs and non-emacs compilation as well).
14062 Similarly for (not)categoryspec and (not)syntaxspec.
14063 Don't use the fastmap when reaching `anychar' since the added
14064 complexity is not justified.
14065 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
14066 and (not)syntaxspec. Merge (not)categoryspec.
14067
fdaa1f77
KH
140682000-03-22 Kenichi Handa <handa@etl.go.jp>
14069
52283633
SM
14070 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
14071 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 14072 --without-x.
fdaa1f77 14073
d152fb46
DL
140742000-03-21 Dave Love <fx@gnu.org>
14075
14076 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
14077 doc string.
14078
d2cafc8c
GM
140792000-03-21 Gerd Moellmann <gerd@gnu.org>
14080
14081 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
14082 (lface_fully_specified_p): Don't check contents of
14083 LFACE_FONT_INDEX because that attribute is optional.
14084 (realize_x_face): Remove now unwarranted xassert.
14085
9111d4b5
KH
140862000-03-21 Kenichi HANDA <handa@etl.go.jp>
14087
14088 The following changes are to make font selection based on
14089 characters, not charset. In addition, they recover fontset
14090 facilities while utilizing the new font selection mechanism.
14091
6c4bfdc0
KH
14092 * Makefile.in (fontset.o): Depend on dispextern.h.
14093
14094 * alloc.c (mark_face_cache): Don't mark face->registry.
14095
9111d4b5
KH
14096 * dispextern.h (struct glyph): New member glyph_not_available_p.
14097 Use 22 bits for face_id.
14098 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
14099 (struct face): Delete member registry, new member ascii_face.
14100 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
14101 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
14102 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 14103 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
14104
14105 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
14106 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
14107 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
14108 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 14109 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
14110 (fs_free_face_fontset, fontset_font_pattern)
14111 (face_suitable_for_char_p, face_for_char)
14112 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
14113 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
14114 (FS_LOAD_FACE_FONT): New macro.
14115
14116 * fontset.c: All codes rewritten or adjusted for the change of
14117 fontset implementation. Now fontset is represented by char table.
52283633
SM
14118 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
14119 Variables removed.
9111d4b5 14120 (my_strcasecmp): Function removed.
52283633 14121 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 14122 (AREF, ASIZE): New macros.
52283633
SM
14123 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
14124 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
14125 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
14126 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
14127 (fontset_id_valid_p, font_family_registry, fontset_name)
14128 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
14129 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
14130 New functions.
14131 (fs_load_font): New arg FACE. Caller changed.
14132 (fs_query_fontset): Argument changed. Caller changed.
14133 (Fquery_fontset): call fs_query_fontset.
14134 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
14135 Functions removed.
52283633
SM
14136 (clear_fontset_elements, check_registry_encoding)
14137 (check_fontset_name): New functions.
9111d4b5
KH
14138 (syms_of_fontset): Set char-table-extra-slots property of fontset
14139 to 3. Staticpro and initialize Vfontset_table and
14140 Vdefault_fontset. Defsubr fontset_font and fontset_list.
14141
14142 * frame.h (struct frame): Member `fontset_data' removed.
14143 (FRAME_FONTSET_DATA): Macro removed.
14144
14145 * frame.c (make_frame): Don't allocate f->fontset_data.
14146 (Fdelete_frame): Don't free f->fontset_data.
14147
6c4bfdc0
KH
14148 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
14149
9111d4b5
KH
14150 * xdisp.c (charset_at_position): Function removed.
14151 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
14152 (handle_face_prop, reseat_to_string, set_iterator_to_next)
14153 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
14154 Likewise.
14155 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
14156 FACE_FOR_CHARSET.
52283633
SM
14157 (get_next_display_element, append_space)
14158 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
14159
14160 * xfaces.c (Qx_charset_registry, Vface_default_registry):
14161 Variables removed.
14162 (clear_font_table, frame_update_line_height, load_face_font):
14163 Adjusted for the change of fontset implementation.
14164 (load_face_fontset_font): Function removed.
14165 (pixel_point_size): New function.
14166 (font_list): Argument type changed. Caller changed.
14167 (LFACE_FONT): New macro.
14168 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
14169 (set_lface_from_font_name): Type of arg FONTNAME is changed to
14170 Lisp_Object. Determine the font name by actually loading a font
14171 by the specified pattern. Set LFACE_FONT (lface) to the specified
14172 pattern. Even if a font is not found, don't try alternatives.
14173 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
14174 (set_font_frame_param): If `font' is specified in lface, use it.
14175 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
14176 (lface_same_font_attributes_p): Likewise.
14177 (make_realized_face): Arguent changed. Caller changed. Set
14178 face->ascii_face to face itself.
14179 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
14180 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
14181 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
14182 (free_realized_multibyte_face): New function.
14183 (lookup_face, lookup_named_face, lookup_derived_face): Argument
14184 changed. Caller changed.
14185 (try_font_list): Argument type changed.
14186 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
14187 (choose_face_font): Argument changed. Handle fontset properly.
14188 (choose_face_fontset_font): Function removed.
14189 (realize_default_face, realize_named_face): Don't remove the
14190 former face here.
14191 (realize_face): Argument changed. Caller changed. Remove face
52283633 14192 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
14193 (realize_x_face): Argument changed. Caller changed. For a
14194 multibyte character, share fontset with base_face. For a single
52283633 14195 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
14196 (realize_tty_face): Argument changed. Caller changed.
14197 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
14198 (face_at_buffer_position): Don't check multibyte_p for returning
14199 DEFAULT_FACE_ID.
14200 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
14201 FACE_SUITABLE_FOR_CHARSET_P.
14202 (syms_of_xfaces): Remove code for Qx_charset_registry and
14203 Vface_default_registry.
14204
6c4bfdc0
KH
14205 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
14206 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
14207 (x_per_char_metric): Don't try FONT->default_char. Even if
14208 pcm->width is zero, glyph bits may exist.
14209 (x_encode_char): Always initialize char2b->byte1.
14210 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 14211 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
14212 (x_append_glyph): Set glyph->glyph_not_available_p.
14213 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
14214 it->charset. Handle the case that per char metric is not
14215 available. If it->multibyte_p is zero and it->c is a multibyte
14216 character, convert it to a unibyte character.
14217 (struct glyph_string): Delete member `charset'.
14218 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14219 the case that per char metric is not available correctly.
14220 (x_fill_glyph_string): Handle the case that the specific glyph is
14221 not available correctly.
14222 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14223 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14224 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14225 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14226 fontset. Don't call FS_LOAD_FONT.
14227
14228 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
14229 (x_create_tip_frame): Likewise.
14230 (Fx_close_connection): Free full_name of font_info.
14231
14232 * fns.c (optimize_sub_char_table): New function.
14233 (Foptimize_char_table): New function.
14234 (syms_of_fns): Defsubr Soptimize_char_table.
14235
b33dd3b0
GM
142362000-03-20 Gerd Moellmann <gerd@gnu.org>
14237
14238 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
14239 only if buffer is displayed in some window.
14240
14241 * xdisp.c (handle_single_display_prop): Initialize local `value'.
14242 (try_window_reusing_current_matrix): Don't call scroll run
14243 function if run's current and desired position are the same;
14244 this prevents cursor flickering.
14245
4e8a9132
SM
142462000-03-19 Stefan Monnier <monnier@cs.yale.edu>
14247
14248 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
14249
14250 * regex.c (RE_STRING_CHAR): New macro.
14251 (GET_CHAR_AFER_2): Remove.
14252 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
14253 (enum re_opcode_t): Remove on_failure_jump_exclusive.
14254 (print_partial_compiled_pattern, re_compile_fastmap)
14255 (re_match_2_internal): Remove on_failure_jump_exclusive.
14256 (regex_compile): Turn optimizable P+ loops into PP*, so that the
14257 optimization only need to work for * (ie. can use of_keep_string_jump).
14258 Remove the special case for .*\n since it is now covered by the general
14259 optimization.
14260 (re_search_2): Don't bother with `room'.
14261 (skip_one_char): New function.
14262 (skip_noops): Simplify since `memory' is not needed any more.
14263 (mutually_exclusive_p): Restructure slightly to use `switch' and
14264 add handling for "all" remaining cases.
14265 (re_match_2_internal): Change on_failure_jump_smart to use
14266 on_failure_keep_string_jump (and redirect the end-of-loop jump)
14267 rather than on_failure_jump_exclusive.
14268
2136fdd4
GM
142692000-03-19 Gerd Moellmann <gerd@gnu.org>
14270
14271 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
14272 number of bits per RGB because it's everywhere used as the depth
14273 of the visual.
14274
14275 * term.c (calculate_costs): Remove code dealing with X frames.
14276
18e21ce8 142772000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
14278
14279 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
14280
d7b511c4
GM
142812000-03-18 Gerd Moellmann <gerd@gnu.org>
14282
14283 * lread.c (read_integer): Unread the last char not consumed.
14284
16b5d424
GM
142852000-03-17 Gerd Moellmann <gerd@gnu.org>
14286
14287 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 14288 which are in the process of being deleted.
16b5d424 14289
1fa28578
GM
142902000-03-16 Gerd Moellmann <gerd@gnu.org>
14291
83488cce
GM
14292 * Makefile.in (mostlyclean): Add `*.core'.
14293 (clean): Add `bootstrap-emacs'.
14294
1fa28578
GM
14295 * lread.c (read_integer): New function.
14296 (read1): Support read syntax #o, #x, #b, #r.
14297
99633e97
SM
142982000-03-15 Stefan Monnier <monnier@cs.yale.edu>
14299
1fa28578
GM
14300 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
14301 make sure POINTER_TO_OFFSET gives the same value before and after
14302 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
14303 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
14304 (debug): Now only active if > 0 rather than if != 0.
14305 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
14306 (print_partial_compiled_pattern): Add missing `succeed' case. Use
14307 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
14308 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
14309 (store_op1, store_op2, insert_op1, insert_op2)
14310 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
14311 (group_in_compile_stack): Move to after its arg's types are
14312 declared and add a prototype.
99633e97 14313 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 14314 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 14315 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
14316 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
14317 indentation of the greedy-op and shy-group code.
99633e97
SM
14318 (at_(beg|end)line_loc_p): Fix argument's types.
14319 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
14320 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
14321 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
14322 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
14323 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
14324 QUIT unconditionally.
99633e97 14325
699238d9
GM
143262000-03-15 Gerd Moellmann <gerd@gnu.org>
14327
14328 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
14329 a sole completion.
14330
14331 * process.c (send_process): Add a hint that the function
14332 can call Lisp code to its comment.
14333
14334 * lread.c (load_dangerous_libraries): New variable.
14335 (Vbytecomp_version_regexp): New variable.
14336 (safe_to_load_p): New function.
14337 (Fload): Handle files not compiled with Emacs specially.
14338 (syms_of_lread): New Lisp variable load-dangerous-libraries.
14339
34e23e5a
GM
143402000-03-14 Gerd Moellmann <gerd@gnu.org>
14341
9c763cca
GM
14342 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
14343
14344 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
14345 support functions only if HAVE_X11R6_XIM is defined.
14346 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
14347
14348 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
14349
14350 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 14351 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
14352 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
14353
14354 * config.in (HAVE_X_I18N): Moved here from xterm.h.
14355 (HAVE_X11R6_XIM): Define.
14356
14357 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
14358
34e23e5a
GM
14359 * xterm.c (x_term_init): Add support for X resource `synchronous'.
14360 If set, call XSynchronize.
14361
66f0296e
SM
143622000-03-13 Stefan Monnier <monnier@cs.yale.edu>
14363
34e23e5a
GM
14364 * regex.c: Declare a new type `re_char' used throughout the code
14365 for the string char type. It's `const unsigned char' to match the
14366 rest of Emacs. Consistently make sure all pointers to strings use
52283633 14367 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 14368 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
14369 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
14370 code duplication.
66f0296e
SM
14371
14372 * charset.h (GET_CHAR_AFTER_2): Remove.
14373 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
14374
854a025c
KR
143752000-03-12 Ken Raeburn <raeburn@gnu.org>
14376
14377 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
14378 variable before the invocation of YMF_PASS_LDFLAGS, in case both
14379 of them try to use backquotes.
14380
b9d2c7e2
DL
143812000-03-12 Dave Love <fx@gnu.org>
14382
14383 * unexelf.c: Restore changes of 1999-10-19.
14384 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
14385 fix its type and alignment; copy it from current process.
14386
5e5dff44
GM
143872000-03-12 Gerd Moellmann <gerd@gnu.org>
14388
9b2f3c38
GM
14389 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
14390 has been found. Fix bug not computing timer's predecessor.
14391
427ec082 14392 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
14393 file name.
14394
e1cff360
GM
14395 * window.c (Fsave_window_excursion): Doc fix.
14396
52283633 14397 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 14398
e411ce4b
EZ
143992000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
14400
14401 * msdos.c (vga_installed): New function, code moved from
14402 dos_set_window_size.
14403 (Qbar, Qcursor_type, outside_cursor): New variables.
14404 (syms_of_msdos): Intern and staticpro them.
14405 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
14406 shape used outside Emacs when called for the first time.
14407 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
14408 cursor shape used outside Emacs.
14409 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
14410 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
14411 type has changed.
14412 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
14413 parameters specify the cursor. Make qreverse a global
14414 variable (renamed to Qreverse).
14415
80460654
GM
144162000-03-09 Gerd Moellmann <gerd@gnu.org>
14417
14418 * fns.c (Fy_or_n_p): Cancel busy-cursor.
14419
95cd4c40
SM
144202000-03-08 Stefan Monnier <monnier@cs.yale.edu>
14421
14422 This is a big redesign of failure-stack and register handling, prompted
14423 by bugs revealed when trying to add shy-groups. Overall, what happened
14424 is that loops are now structured a little differently, groups can be
14425 shy and the code is a little simpler.
14426
14427 * regex.h: Update the copyright.
14428 (RE_SHY_GROUPS): New value.
14429 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
14430 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
14431
80460654
GM
14432 * regex.c (enum re_opcode_t): Remove jump_past_alt,
14433 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
14434 on_failure_jump_(exclusive, loop and smart). Also fix the comment
14435 for (start|stop)_memory since they now only take one argument (the
14436 second has becomes unnecessary).
52283633 14437 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
14438 (print_compiled_pattern): Use %ld to printf long ints and flush to
14439 make debugging a little easier.
95cd4c40
SM
14440 (union fail_stack_elt): Make the integer unsigned.
14441 (struct fail_stack_type): Add a `frame' element.
14442 (INIT_FAIL_STACK): Init `frame' as well.
14443 (POP_PATTERN_OP): New macro for re_compile_fastmap.
14444 (DEBUG_PUSH, DEBUG_POP): Remove.
14445 (NUM_REG_ITEMS): Remove.
14446 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
14447 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
14448 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 14449 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
14450 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
14451 New macros.
80460654
GM
14452 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
14453 address pushed is not the destination of the jump but the source
14454 of it instead.
95cd4c40
SM
14455 (NUM_FAILURE_ITEMS): Remove.
14456 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
14457 registers before the actual failure point). Don't hardcode any
14458 meaning for str==NULL anymore.
95cd4c40 14459 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
14460 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
14461 Remove.
95cd4c40
SM
14462 (REG_UNSET_VALUE): Use NULL (why not?).
14463 (compile_range): Remove declaration since it doesn't exist.
14464 (struct compile_stack_elt_t): Remove inner_group_offset.
14465 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
14466 (regex_grow_registers): Remove dead code.
14467 (FIXUP_ALT_JUMP): New macro.
80460654
GM
14468 (regex_compile): Add shy-groups Change loops to use
14469 on_failure_jump_smart&jump instead of
14470 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
14471 initial (dummy_failure_)jump. Remove c1_base (looks like unused
14472 variable to me). Use `jump' instead of `jump_past_alt' and don't
14473 bother with push_dummy_failure in alternatives since it is now
14474 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
14475 emacs' for (re)allocating the stack.
14476 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
14477 from loop when bufp->can_be_null rather than jumping to `done'.
14478 Avoid jumping backwards so as to ensure termination. Use
14479 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
14480 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 14481 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
14482 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
14483 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
14484 (lowest_active_reg, highest_active_reg)
14485 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
14486 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
14487 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
14488 variables. Push register (in `start_memory') on the stack rather
14489 than storing it in old_reg(start|end). Remove the cycle detection
14490 from `stop_memory', replaced by the use of on_failure_jump_loop
14491 for greedy loops. Add code for the new on_failure_jump_<foo>.
14492 Remove ad-hoc code in `on_failure_jump' to push more registers in
14493 the case of a loop. Take out code from `maybe_pop_jump' into
14494 separate functions and adapt it to the semantics of
14495 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
14496 and push_dummy_failure. Remove dummy_failure handling and
14497 handling of `failures to jump to on_failure_jump' (this last one
14498 was already dead code, it seems).
14499 (group_match_null_string_p, alt_match_null_string_p)
14500 (common_op_match_null_string_p): Remove.
95cd4c40 14501
7397acc4
DL
145022000-03-08 Dave Love <fx@gnu.org>
14503
14504 * config.in: Don't depend on __STDC__ for volatile.
14505 Add POINTER_TYPE, PTR, PROTOTYPES.
14506
14507 * hftctl.c, strftime.c: Use PROTOTYPES.
14508 * eval.c (find_handler_clause): Likewise.
14509
14510 * mem-limits.h: Use POINTER_TYPE.
14511
14512 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
14513 (memory_warnings): Declare using POINTER_TYPE.
14514
5e91ff9e
GM
145152000-03-08 Gerd Moellmann <gerd@gnu.org>
14516
feab4fba
GM
14517 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
14518
52283633 14519 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 14520
5e91ff9e
GM
14521 * xfns.c: Remove obsolete code in #if 0.
14522 (Fx_focus_frame): New function.
14523
a735b7e1
KH
145242000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14525
14526 * coding.c (coding_category_name): Add coding-category-utf-8,
14527 coding-category-utf-16-be, coding-category-utf-16-le.
14528 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
14529 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
14530 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
14531 (detect_coding_utf_8): New function.
14532 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
14533 UTF_16_LOW_SURROGATE_P): New macros.
14534 (detect_coding_utf_16): New function
14535 (detect_coding_mask): When priorities are specified, skip any
14536 categories that have `nil' coding-system. Fix bug of returning
14537 wrong mask when PRIORITIES is specified and detect_coding_XXX()
14538 returns a mask not set in PRIORITIES.
14539 (detect_eol_type_in_2_octet_form): New function.
14540 (detect_eol): selects detect_eol_type_XXX to call according to
14541 cooding->category_idx.
14542 (detect_coding_system): Remove `nil' coding-system in the result.
14543 (Fupdate_coding_systems_internal): Update all coding-categories.
14544
52283633
SM
14545 * coding.h (CODING_CATEGORY_IDX_UTF_8)
14546 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
14547 New macros.
14548 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
14549 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
14550 (CODING_CATEGORY_IDX_UTF_16_LE)
14551 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
14552 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
14553 (CODING_CATEGORY_MASK_ANY): Include the above macros.
14554 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
14555
9994cc69
GM
145562000-03-07 Gerd Moellmann <gerd@gnu.org>
14557
e9b4e5ff
GM
14558 * doc.c (Fdocumentation_property): If value is not a string,
14559 and doesn't refer to etc/DOC, evaluate it to obtain a string.
14560
f7daf1e1
GM
14561 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
14562 close the display with XtCloseDisplay. This caused a bus error
14563 on OpenWindows.
14564
9994cc69
GM
14565 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
14566 complete but not unique.
14567
4336c705
GM
145682000-03-06 Gerd Moellmann <gerd@gnu.org>
14569
18bb0684
GM
14570 * process.c (send_process): Remove local variable `procname' that
14571 might become invalid when a GC happens. Instead, access the
14572 process name slot directly.
14573
4336c705
GM
14574 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
14575 orig_height if set.
14576
14577 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
14578 orig_height if set.
14579
515d0d0e
EZ
145802000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
14581
14582 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
14583 glyph matrices have been freed.
14584
100b3cbb
GM
145852000-03-05 Gerd Moellmann <gerd@gnu.org>
14586
50df5e5a 14587 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 14588 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
14589
14590 * xfns.c (QCdata): Moved to xdisp.c.
14591
14592 * xdisp.c (QCdata): Moved here from xfns.c.
14593 (syms_of_xdisp): Initialize QCdata.
14594
14595 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
14596
14597 * window.c (coordinates_in_window): Use
14598 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
14599 FRAME_INTERNAL_BORDER_WIDTH.
14600
100b3cbb 14601 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 14602 it is obviously invalid.
100b3cbb
GM
14603
14604 * xterm.c (x_term_init): Create a colormap if not using the
14605 default visual.
14606
14607 * xterm.h (select_visual): Change prototype.
14608
14609 * xfns.c (select_visual): Rewritten. Recognize user-specified
14610 visual classes.
14611 (visual_classes): New variable.
14612
64d739c4
GM
146132000-03-04 Gerd Moellmann <gerd@gnu.org>
14614
14615 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
14616 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
14617 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 14618 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
14619 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
14620 XtNcolormap resources.
14621 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
14622 (Fx_create_frame): Initialize color members of x_output structure.
14623 (xpm_load): Pass colormap to XPM lib.
14624
14625 * xfaces.c (x_free_colors): Access colormap of frame using
14626 FRAME_X_COLORMAP. Be paranoid about freeing black and white
14627 when default colormap is used.
14628
14629 * xterm.c (x_term_init): Set Colormap member of x_display_info
14630 structure. Copy colormap if resource `privateColormap' is
14631 specified (PseudoColor only).
14632 (x_setup_relief_color): Access colormap of frame using
14633 FRAME_X_COLORMAP.
14634
14635 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
14636 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
14637
c3cee013
JR
146382000-03-04 Jason Rumney <jasonr@gnu.org>
14639
14640 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
14641 other non-platform-specific equivalents.
64d739c4 14642 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
14643 specific functions and macros as their w32 equivalents where
14644 non-platform-specifics are not available.
14645 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
14646 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
14647 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
14648 (frame_update_line_height): Use macros to access f->output_data.
14649 (defined_color): Remove FIXME comments; fixed.
14650 (x_face_list_fonts, prepare_face_for_display): Put X specifics
14651 into #ifdef blocks. Add WINDOWSNT blocks.
14652 (Fx_list_fonts): Use macros for accessing font data.
14653 (set_lface_from_font_name): Different default fonts for X and
14654 WINDOWSNT.
14655 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
14656 scalable for backward compatibility.
64d739c4 14657 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
14658 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
14659
64d739c4 14660 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
14661 syms_of_w32faces.
14662
14663 * makefile.nt (w32faces.obj): Remove.
14664 (xfaces.obj): Add.
14665
807cc41c
JR
146662000-03-03 Jason Rumney <jasonr@gnu.org>
14667
14668 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
14669 correct parameters.
14670
0007072a
KR
146712000-03-03 Ken Raeburn <raeburn@gnu.org>
14672
14673 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
14674 standard ELF definitions here if the system header does not.
14675
71a6ba55
GM
146762000-03-03 Gerd Moellmann <gerd@gnu.org>
14677
14678 * xterm.c (PER_CHAR_METRIC): Removed.
14679 (x_per_char_metric_1, x_default_char): New functions.
14680 (x_per_char_metric): If font's default char is invalid, return
14681 metrics of a suitably chosen usable default char.
14682 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
14683 char, replace occurrences of unprintable chars with a suitably
14684 chosen usable default char.
71a6ba55 14685
900fa1f1
GM
146862000-03-02 Gerd Moellmann <gerd@gnu.org>
14687
42f55fe0
GM
14688 * xterm.c (note_mouse_highlight): Return quickly if frame's
14689 glyph matrices have been freed.
14690
14691 * dispnew.c (free_glyphs): Block input while freeing matrices.
14692
900fa1f1
GM
14693 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
14694
52283633
SM
14695 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
14696 Use x_free_colors.
900fa1f1
GM
14697
14698 * dispextern.h (x_free_colors): Add prototype.
14699
14700 * xfaces.c (x_free_colors): New function.
14701 (unload_color, free_face_colors): Use it.
14702
2f950292
EZ
147032000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14704
14705 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
14706
14707 * window.c [MSDOS]: Include msdos.h.
14708
54d04320
DL
147092000-03-02 Dave Love <fx@gnu.org>
14710
14711 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
14712
14713 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
14714 set C_OPTIMIZE_SWITCH for gcc.
14715
0ba93ac4
KH
147162000-03-02 Kenichi Handa <handa@etl.go.jp>
14717
14718 * coding.c (coding_save_composition): Be sure to allocate
14719 composition data area in coding even if there's no composition in
14720 the current run.
14721
a2bc11d4
JR
147222000-03-01 Jason Rumney <jasonr@gnu.org>
14723
14724 * w32term.c: Equivalent changes to those made to xterm.c on
14725 2000-02-25 and 2000-02-24.
14726
14727 * w32fns.c: Equivalent changes to those made to xfns.c on
14728 2000-02-25 and 2000-02-21.
14729
14730 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
14731 correct line-end convention is followed.
14732
14733 * w32menu.c [HAVE_BOXES]: Remove #undef.
14734 (single_keymap_panes): Remove code for simulating checkmarks.
14735 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
14736 Remove code for drawing simulated checkmarks.
14737 (w32_menu_show): make unibyte help string correctly.
14738 (add_menu_item): draw standard Windows checkmarks. Draw radio
14739 buttons as radio buttons if possible.
14740
72d19d75
GM
147412000-03-01 Gerd Moellmann <gerd@gnu.org>
14742
2df636f4
GM
14743 * sysdep.c (start_of_text): Don't define this function for NetBSD
14744 with ELF.
14745
427ec082 14746 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
14747 Don't define.
14748 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
14749 (LINKER): Don't undef if __NetBSD__ is defined.
14750
14751 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
14752
14753 * fileio.c [__NetBSD__]: Define `unix'.
14754
72d19d75
GM
14755 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
14756
ed4d0512
GM
147572000-02-29 Gerd Moellmann <gerd@gnu.org>
14758
50b1039f
GM
14759 * atimer.c (start_atimer): Don't abort when timers are stopped.
14760 (append_atimer_lists): New function.
14761 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
14762 arbitrary lists of stopped and running atimers.
14763
ed4d0512
GM
14764 * atimer.c (cancel_atimer): Handle canceling an atimer when
14765 some timers are stopped.
14766
14767 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
14768 after canceling it.
14769
14770 * fns.c (maybe_resize_hash_table): Handle case of new size
14771 coming out as being the same as old size.
14772
387023ee
JR
147732000-02-27 Jason Rumney <jasonr@gnu.org>
14774
14775 * makefile.nt: Add atimer.h to dependencies.
14776 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
14777 * w32console.c: Only disable window system features for dispextern.h
14778 (initialize_w32_display): Build a display info for the console.
14779 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
14780 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
14781 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
14782 as 2 button mice.
14783 * w32gui.h (struct W32FontStruct): Revert last change after change
14784 to xdisp.c.
14785 * w32menu.c (single_submenu): Set up help string.
14786 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
14787 (w32_dialog_show): Set up help string.
14788 * w32term.c (w32_display_info_for_display): Remove unused function.
14789 (w32_draw_bitmap): Use pre-built bitmaps.
14790 (w32_initialize_display_info): New function to initialize parts of
14791 display info that are common to both GUI and console frames.
14792 (w32_term_init): Use w32_initialize_display_info. Do not set
14793 Vw32_num_mouse_buttons here, as it is not called for console
14794 frames. Build bitmaps for indicating truncated lines etc.
14795 (x_delete_display): Destroy pre-built bitmaps.
14796 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
14797 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
14798
4516715a
DL
147992000-02-27 Dave Love <fx@gnu.org>
14800
14801 * lisp.h: Add a bunch of prototypes.
14802
171ca836
KH
148032000-02-26 Kenichi Handa <handa@etl.go.jp>
14804
14805 * keyboard.c (read_char): Set `usec' correctly.
14806
4013921d
KH
148072000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14808
14809 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
14810 `lambda', set reg[RRR] to the map index.
14811 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
14812 reg[RRR] to 0. Otherwise, set it to -1.
14813
9244a058
GM
148142000-02-25 Gerd Moellmann <gerd@gnu.org>
14815
2df636f4 14816 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 14817
18e21ce8 148182000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 14819
f43d79c1
GM
14820 * fileio.c (Ffile_symlink_p): If result starts with a `/'
14821 and contains a `:', prepend `/:'.
14822
14823 * window.c (select_window_1): If selected_window is nil,
14824 don't "swap out" the buffer's point.
14825 (Fset_window_configuration): Set selected_window to nil
14826 before calling Fselect_window.
14827 (unshow_buffer): Don't set point in buffer from window's point
14828 if another more recently selected window also shows the buffer.
14829
bed0c171
GM
148302000-02-25 Gerd Moellmann <gerd@gnu.org>
14831
449c3c52
GM
14832 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
14833
f5b58615
GM
14834 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
14835 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
14836 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
14837 New variables.
f5b58615
GM
14838 (DEFAULT_BUSY_CURSOR_DELAY): New define.
14839 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
14840 (hide_busy_cursor): New functions.
14841 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
14842
14843 * minibuf.c (read_minibuf): Cancel busy-cursor.
14844
14845 * keyboard.c (command_loop_1): Call start_busy_cursor before
14846 Fcommand_execute and cancel_busy_cursor after it.
14847 (timer_check): Remove busy-cursor code.
14848 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
14849 cursor timer.
14850
14851 * process.c (wait_reading_process_input): Remove busy-cursor code.
14852
14853 * eval.c (Fsignal): Call cancel_busy_cursor instead of
14854 Fx_hide_busy_cursor.
14855
14856 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
14857 Remove prototyoes.
14858 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
14859
14860 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
14861
14862 * xterm.c (XTread_socket): Remove busy-cursor code.
14863
4eb8436f
GM
14864 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
14865 (build_frame_matrix_from_leaf_window): Put code handling
14866 glyph row's not being a slice of a frame row in #if 0.
14867 (sync_window_with_frame_matrix_rows): New function.
14868 (frame_row_to_window): New function.
14869 (mirror_line_dance): Handle copies between windows.
14870
3cb65b0e
GM
14871 * lread.c (Fload): Use `xfree' instead of `free'.
14872 (init_obarray): Use `xmalloc' instead of `malloc'.
14873
bed0c171
GM
14874 * window.c (Fset_window_buffer): Set WINDOW to the window
14875 after decoding.
2add4349
GM
14876 (coordinates_in_window): Take frame's internal border width
14877 into account.
bed0c171 14878
42088c12
GM
148792000-02-24 Gerd Moellmann <gerd@gnu.org>
14880
14881 * xterm.c (x_display_and_set_cursor): Display cursor of
14882 non-selected windows depending on the setting of
14883 cursor_in_non_selected_windows.
14884
14885 * xdisp.c (cursor_in_non_selected_windows): New variable.
14886 (syms_of_xdisp): DEFVAR_BOOL it.
14887
d1e103b2
GM
148882000-02-23 Gerd Moellmann <gerd@gnu.org>
14889
723e779c
GM
14890 * data.c (Fstring_to_number): If number is greater than what
14891 fits into an integer, return a float.
14892
d1e103b2
GM
14893 * eval.c (specbind): Remove references to
14894 keyword_symbols_constant_flag.
14895
14896 * data.c (keyword_symbols_constant_flag): Removed.
14897 (Fmakunbound, set_internal, syms_of_data): Remove references to
14898 keyword_symbols_constant_flag.
14899
14900 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
14901
214f877f
KH
149022000-02-23 Kenichi Handa <handa@etl.go.jp>
14903
14904 * syntax.c (multibyte_syntax_as_symbol): New variable.
14905 (syms_of_syntax): Declare it as a Lisp variable.
14906 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
14907 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
14908 nonzero, treat all multibyte characters as symbol.
52283633 14909 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 14910
130adcb7
EZ
149112000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14912
3cb65b0e 14913 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 14914 a deleted frame.
130adcb7 14915
17cbbf95
GM
149162000-02-21 Gerd Moellmann <gerd@gnu.org>
14917
14918 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
14919
14920 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14921 (x_non_menubar_window_to_frame): Check the busy-cursor window.
14922
beb0bc36
DL
149232000-02-21 Dave Love <fx@gnu.org>
14924
14925 * frame.c (Vmouse_position_function): New variable.
14926 (Fmouse_position): Use it.
14927 (syms_of_frame): Install it.
14928
14929 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
14930
1d92afcd
GM
149312000-02-20 Gerd Moellmann <gerd@gnu.org>
14932
14933 * fileio.c (Finsert_file_contents): Unbind the binding of
14934 standard-output done by temp_output_buffer_setup.
329eed9f
GM
14935
14936 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
14937 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
14938 (specbind, unbind_to): Handle most common case of non-constant
14939 symbol with trivial value specially.
14940
14941 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
14942
18e21ce8 149432000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
14944
14945 * data.c (Fmake_variable_buffer_local): Doc fix.
14946 Init found_for_buffer to 0.
14947 (Fmake_variable_frame_local): If the variable has already
14948 been buffer-local, set the check_frame field.
14949
1d4311c3
EZ
149502000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
14951
14952 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
14953 produced for CODING_MODE_LAST_BLOCK requires.
14954
2dc95ddd
DL
149552000-02-18 Dave Love <fx@gnu.org>
14956
14957 * keyboard.c (echo_keystrokes): Remove declaration.
14958 (Vecho_keystrokes) New variable.
14959 (read_char, record_menu_key, read_key_sequence): Use it to allow
14960 use of float value.
14961 (syms_of_keyboard): Change Vecho_keystrokes declaration.
14962
14963 * lread.c: Undef feature selection macros before defining.
14964
f0930f35
GM
149652000-02-18 Gerd Moellmann <gerd@gnu.org>
14966
14967 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
14968 for symbols other than the symbol in question.
14969
e3d4de90
DL
149702000-02-17 Dave Love <fx@gnu.org>
14971
14972 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
14973
0b378936
GM
149742000-02-17 Gerd Moellmann <gerd@gnu.org>
14975
d621caf7
GM
14976 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
14977
0b378936
GM
14978 * alloc.c (enum mem_type): Compile unconditionally.
14979
3b451f74
EZ
149802000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
14981
14982 * xfaces.c (tty_defined_color): Don't return faulire indication
14983 for unspecified-fg and unspecified-bg pseudo-colors.
14984
10689a01
GM
149852000-02-17 Gerd Moellmann <gerd@gnu.org>
14986
1216f5e4
GM
14987 * alloc.c (mark_object): Don't mark symbol names in pure space.
14988 (gc_sweep): Don't unmark symbol names in pure space.
14989
14990 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
14991 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
14992 [GC_MARK_STACK]: New defines.
427ec082 14993 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
14994 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
14995
14996 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
14997
14998 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
14999 allocate_buffer instead of xmalloc.
15000
15001 * alloc.c (toplevel): Include setjmp.h.
15002 (PURE_POINTER_P): New define.
15003 (enum mem_type) [GC_MARK_STACK]: New enumeration.
15004 (Vdead) [GC_MARK_STACK]: New variable.
15005 (lisp_malloc): Add parameter TYPE, call mem_insert if
15006 GC_MARK_STACK is defined.
15007 (allocate_buffer): New function.
427ec082 15008 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
15009 (free_float) [GC_MARK_STACK]: Set type to Vdead.
15010 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
15011 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
15012 (MEM_NIL) [GC_MARK_STACK]: New define.
15013 (struct mem_node) [GC_MARK_STACK]: New structure.
15014 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
15015 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
15016 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
15017 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
15018 (mark_stack) [GC_MARK_STACK]: New functions.
15019 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
15020 (clear_marks): Removed.
15021 (gc_sweep): Set free conses' car, free floats' type, free
15022 symbols' function to Vdead. Use lisp_free to free buffers.
15023 (init_alloc_once): Initialize Vdead.
15024 (survives_gc_p): Return non-zero for pure objects.
15025
15026 * alloc.c: Add comments throughout the file.
15027
2503c8b1
GM
15028 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
15029 that unblocks alarms.
15030
8389e1e2
GM
15031 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
15032 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
15033 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
15034
10689a01 15035 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 15036
bfc17d18
KH
150372000-02-17 Kenichi Handa <handa@etl.go.jp>
15038
4a09dee0
KH
15039 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
15040 avoid infinite error signaling. Allocate sufficient memory for
15041 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 15042
2b927d02
SM
150432000-02-17 Stefan Monnier <monnier@cs.yale.edu>
15044
15045 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
15046 depends on the previous behavior.
15047
b49cb764
GM
150482000-02-16 Gerd Moellmann <gerd@gnu.org>
15049
15050 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
15051
99e95407
GM
150522000-02-15 Gerd Moellmann <gerd@gnu.org>
15053
15054 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
15055
15056 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 15057 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
15058 write(2).
15059
6ffd3cf7
RS
150602000-02-15 Richard M. Stallman <rms@gnu.org>
15061
15062 * data.c (set_internal): Don't make variable buffer-local
15063 if within a let-binding for the same buffer.
15064 (let_shadows_buffer_binding_p): New function.
15065
15066 * eval.c (specbind): For buffer-local value,
15067 record the current buffer also.
15068 (unbind_to): Cope with that change.
15069
cad53475
GM
150702000-02-15 Gerd Moellmann <gerd@gnu.org>
15071
15072 * window.c (Fsave_window_excursion): Doc fix.
15073
1aa963c8
SM
150742000-02-15 Stefan Monnier <monnier@cs.yale.edu>
15075
15076 * syntax.c (back_comment): Make sure we only consider comment-starters
15077 of the relevant style and return -1 in case of a failure to find the
15078 beginning of the comment.
15079 (Fforward_comment): If back_comment fails, go back to the position just
15080 after the comment-end.
15081 (scan_lists): Add comment describing a very minor bug.
15082
b9b84fd3
SM
150832000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15084
15085 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
15086 `completion-regexp-list' in the docstring.
15087
3a28db80
DL
150882000-02-14 Dave Love <fx@gnu.org>
15089
15090 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
15091
fb4a568d
SM
150922000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15093
15094 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
15095 to Emacs' syntax. Also fix the comment about set/not-set meanings
15096 since Emacs syntax is not the value 0 any more.
15097 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
15098 since it's now part of RE_SYNTAX_EMACS.
15099
1063ebb5
DL
151002000-02-12 Dave Love <fx@gnu.org>
15101
52283633 15102 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 15103
fb07a302
GM
151042000-02-12 Gerd Moellmann <gerd@gnu.org>
15105
15106 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
15107
aaf2320c
DL
151082000-02-12 Dave Love <fx@gnu.org>
15109
15110 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
15111
15112 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
15113 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
15114 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
15115
15116 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
15117
15118 * s/nextstep.h: Don't define HAVE_ALLOCA.
15119
15120 * config.in: Add vfork bits.
15121
eedf8bde
GM
151222000-02-12 Gerd Moellmann <gerd@gnu.org>
15123
15124 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
15125 unwind function to undo the effect of stopping atimers.
15126
52283633 15127 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
15128
15129 * atimer.c (stopped_atimers): New variable.
15130 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
15131 New functions.
15132
15133 * atimer.h (stop_other_atimers, run_all_atimers)
15134 (unwind_stop_other_atimers): Add function prototypes.
427ec082 15135
eedf8bde
GM
15136 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
15137
8476c2f8
KR
151382000-02-11 Ken Raeburn <raeburn@gnu.org>
15139
15140 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
15141 library may depend on jpeg.
15142 (atimer.o): Depends on atimer.c.
15143
0e85e4a3
KH
151442000-02-11 Kenichi Handa <handa@etl.go.jp>
15145
15146 * insdel.c (del_range_1): Call update_compositions.
15147 (del_range_both): Call update_compositions just once..
15148
97fa0cc8
DL
151492000-02-10 Dave Love <fx@gnu.org>
15150
15151 * xfns.c (create_frame_xic): Fix initialization of automatic
15152 aggregates for pcc.
15153
25566a3c
KH
151542000-02-09 Kenichi Handa <handa@etl.go.jp>
15155
15156 * ccl.c (CCL_MAKE_CHAR): New macro.
15157 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
15158 registers by CCL_MAKE_CHAR before calling translate_char.
15159 <CCL_TranslateCharacterConstTbl> Likewise.
15160
69da54ba
DL
151612000-02-08 Dave Love <fx@gnu.org>
15162
15163 * lread.c (__EXTENSIONS__): Define.
15164
f7136ee8
GM
151652000-02-08 Gerd Moellmann <gerd@gnu.org>
15166
15167 * puresize.h (BASE_PURESIZE): Increase to 650000.
15168
7768790b
EZ
151692000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15170
15171 * msdos.c (XMenuActivate): Turn off the cursor after displaying
15172 the help message.
15173
38fd211b
EZ
151742000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15175
15176 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
15177 md, mh, mb, mr, and me to the fake termcap entry.
15178
66e4690f
KR
151792000-02-06 Ken Raeburn <raeburn@gnu.org>
15180
15181 * sound.c (sound_cleanup): Don't call device close routine if the
15182 function pointer is null.
15183
a75dfea0
AI
151842000-02-06 Andrew Innes <andrewi@gnu.org>
15185
15186 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
15187 around image definitions and prototypes.
15188 (gamma_correct) [WINDOWSNT]: New prototype.
15189
15190 * w32term.c (x_make_frame_visible): Replace call to
15191 input_poll_signal with poll_for_input.
15192
15193 * window.c [WINDOWSNT]: Include w32term.h.
15194
15195 * xdisp.c [WINDOWSNT]: Include w32term.h.
15196
15197 * makefile.nt: Add dependencies on w32gui.h.
15198 (OBJ1): Include atimer.obj.
15199 ($(BLD)\atimer.obj): New dependency rule.
15200
15201 * w32.c (sigmask): New function (does nothing).
15202 (sigunblock): Ditto.
15203
15204 * frame.c [WINDOWSNT]: Include w32term.h.
15205
15206 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
15207
15208 * lread.c (syms_of_lread): Fix literal newlines.
15209
15210 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
15211 the string constant limit (2048 bytes) in MSVC.
15212 (main): Ditto.
15213
59ddecde
GM
152142000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
15215
52283633 15216 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
15217 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
15218 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
15219 dispatch the event.
15220
07590973
DL
152212000-02-04 Dave Love <fx@gnu.org>
15222
15223 * fileio.c: Remove some unused vars.
15224 (_GNU_SOURCE): Define (for euidaccess).
15225
15226 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
15227
15228 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
15229 gcpro1, gcpro2.
15230 (read_minibuf): Deal with allow_props correctly.
15231
649351f9
EZ
152322000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
15233
15234 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
15235
66e4690f 152362000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
15237
15238 * search.c (compile_pattern): If a cache entry has a nil regexp,
15239 fill in that entry instead of clobbering a previously cached
15240 string regexp.
15241
66e4690f 152422000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
15243
15244 * puresize.h (BASE_PURESIZE): Increase to 610000.
15245
d240a249
GM
152462000-02-02 Gerd Moellmann <gerd@gnu.org>
15247
15248 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
15249 can GC.
15250
ca91fb26
KH
152512000-02-02 Kenichi Handa <handa@etl.go.jp>
15252
25660570
KH
15253 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
15254 instead of incrementing ic directly.
15255 <CCL_WriteExprConst> Likewise.
15256 <ccl_set_expr>: Set ic to jump_address.
15257
ca91fb26
KH
15258 * fileio.c (e_write): Fix the handling of
15259 CODING_FINISH_INSUFFICIENT_SRC.
15260
2ede9689
DL
152612000-02-01 Dave Love <fx@gnu.org>
15262
15263 * editfns.c (Fpropertize): Doc fix.
15264
15265 * process.c (Fstart_process): Doc fix.
15266
15267 * eval.c: Fix various doc strings not to duplicate information
15268 from help-manyarg-func-alist.
15269
52283633 15270 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
15271
15272 * doc.c (Vhelp_manyarg_func_alist): New variable.
15273 (Fdocumentation): Use it.
15274 (syms_of_doc): Define it.
15275
b6680a0e
GM
152762000-01-31 Gerd Moellmann <gerd@gnu.org>
15277
2cb750ba
GM
15278 * xterm.c (xim_open_dpy): Remove unused local variable.
15279
52283633 15280 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
15281
15282 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
15283 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
15284
b6680a0e
GM
15285 * fns.c (sweep_weak_table): New function.
15286 (sweep_weak_hash_tables): Use it. Keep on marking until there
15287 is no more change.
15288
994c5afe
GM
152892000-01-30 Gerd Moellmann <gerd@gnu.org>
15290
15291 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
15292 that XTread_socket does not crash by trying to call XNoOp on a
15293 closed display.
427ec082 15294
f00276e3
JR
152952000-01-30 Jason Rumney <jasonr@gnu.org>
15296
15297 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15298 Change selected_frame to SELECTED_FRAME ().
15299 (w32_console_mouse_position): Remove #ifndef MULE from around
15300 `insist' parameter.
15301
15302 * makefile.nt: Remove dosfns.obj.
15303
15304 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
15305
15306 * w32fns.c (w32_defined_color): Check for valid frame before
15307 applying gamma correction. Eliminate dependency on frame elsewhere.
15308 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
15309 (w32_to_x_font): Use resx and resy not height_in and width_in.
15310 (x_to_w32_font): Doc fix.
15311 (xlfd_strip_height): New function to strip and return font height.
15312 (w32_font_match): Compare height separately from rest of xlfd
15313 spec, using xlfd_strip_height.
15314
15315 * w32term.c (w32_term_init): Swap resx and height_in, resy and
15316 width_in. Use w32_defined_color in place of defined_color.
15317
15318 * w32faces.c: Merge more of DOS and X specifics in preparation for
15319 merge with xfaces.c.
15320 (defined_color): Remove FIXME comment.
15321 (tty_color_name): Provide w32-specific function.
15322 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
15323
15324 * w32console.c (turn_on_face, turn_off_face): Removed.
15325 (w32_face_attributes): New function.
15326 (Global_variables): Reduce scope where possible.
15327 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
15328 fill attribute.
15329 (hl_mode): Don't modify text attributes.
15330 (write_glyphs): Don't do anything if len <= 0. Use
15331 w32_face_attributes to get attributes for drawing. Write
15332 terminating codes using char_attr_normal.
15333 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
15334 (update_begin, update_end): Likewise.
15335 (vga_stdcolor_name): New function.
15336 (initialize_w32_display): Remove char_attr_reverse and char_attr.
15337 (Fset_screen_color): Remove char_attr_reverse.
15338
b08e8bb2
GM
153392000-01-29 Gerd Moellmann <gerd@gnu.org>
15340
15341 * xfns.c (xic_set_preeditarea): Take window parameter and
15342 window-relative pixel-positions.
15343
15344 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
15345 is its frame's selected window.
15346 (xim_instantiate_callback): Likewise.
15347
15348 * xfns.c (x_create_im): Removed.
15349 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
15350 (supported_xim_styles): Renamed from supported_styles.
15351 (best_xim_style): Renamed from best_style.
15352 (create_frame_xic): Renamed from xic_create_frame.
15353 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 15354
b08e8bb2
GM
153552000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
15356
15357 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
15358 our frames, call XFilterEvent with 2nd parameter `None'.
15359 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
15360 returning XBufferOverflow.
52283633 15361 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
15362 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
15363 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
15364 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
15365 (xim_initialize, xim_close)
15366 [HAVE_X_I18N && HAVE_X11R6]: New functions.
15367 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
15368 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
15369 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
15370
15371 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
15372 and `xim_styles'.
15373 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
15374 `xic_style' and `xic_xfs'.
15375 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
15376 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
15377 (FRAME_XIM): Removed.
15378
15379 * xfns.c (supported_styles): New variable.
15380 (DEFAULT_STYLE, DEFAULT_FONT): New macros
15381 (xic_create_xfontset, best_style, xic_create_frame)
15382 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
15383 (xic_set_xfontset): New functions.
15384
142e109c
DL
153852000-01-28 Dave Love <fx@gnu.org>
15386
15387 * s/irix6-5.h: Revert last change after change to irix5-0.h.
15388
15389 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
15390
b02786f9
GM
153912000-01-28 Gerd Moellmann <gerd@gnu.org>
15392
d060bc9f
GM
15393 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
15394 for *scratch* if it already existed.
15395
b02786f9
GM
15396 * emacs.c (USAGE): New macro.
15397 (main): Use it to display usage information.
15398
2c52d7e4
EZ
153992000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15400
15401 Support for the menu-help feature:
15402
52283633 15403 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
15404
15405 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
15406 part of the line to the termscript file.
15407 (IT_clear_to_end): Clear the entire line, not just its beginning.
15408 (menu_help_message, prev_menu_help_message): New variables.
15409 (IT_menu_make_room): Make room for the help_text member.
15410 (IT_menu_display): New argument disp_help; all callers changed.
15411 If disp_help is non-zero, store the help text of the active menu
15412 item in menu_help_message.
15413 (XMenuAddPane): Initialize the help_text member to NULL.
15414 (XMenuAddSelection): New argument help_text. Store it in the
15415 XMenu structure.
15416 (XMenuActivate): New argument help_callback. If the value of
15417 menu_help_message has changed since the last time, display the
15418 menu help message text while waiting for the mouse to move. Clear
15419 the echo area before exiting.
15420 (XMenuDestroy): Free the help_text member.
15421
ffe0bcd1
GM
154222000-01-27 Gerd Moellmann <gerd@gnu.org>
15423
15424 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
15425 XMenuAddSelection. Pass help callback to XMenuActivate.
15426 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
15427
50dbd23f
EZ
154282000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15429
15430 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
15431 and EMACS_SET_USECS.
15432
f5941bf8
GM
154332000-01-26 Dave Love <fx@gnu.org>
15434
6c67ddee
DL
15435 * editfns.c (Fchar_after, Fchar_before): Doc fix.
15436
f5941bf8
GM
15437 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
15438 an error may be signalled.
15439
9e49c990
GM
154402000-01-26 Gerd Moellmann <gerd@gnu.org>
15441
fc3cb460
GM
15442 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
15443 LD_SWITCH_SYSTEM inherited from irix5-0.h.
15444
9e49c990
GM
15445 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
15446
d0c037d8
GM
154472000-01-25 Gerd Moellmann <gerd@gnu.org>
15448
15449 * charset.c (Fstring): If there is a multibyte char among
15450 the args, always return a multibyte string.
15451
e12489f9
GM
154522000-01-25 Gerd Moellmann <gerd@gnu.org>
15453
15454 * sysdep.c (sys_select): Turn atimers off and on instead of
15455 recording and restoring old alarm handler
15456
15457 * process.c (toplevel): Include atimer.h.
15458 (create_process_1): Rewritten.
15459 (create_process): Use atimers instead of alarm.
15460 (wait_reading_process_input) [hpux]: Turn atimers off instead
15461 of turning off SIGALRM.
15462 (wait_reading_process_input): Turn off atimers instead off
15463 calling stop_polling.
15464
15465 * emacs.c (main): Call init_atimer.
15466
15467 * keyboard.c (toplevel): Include systime.h and atimer.h.
15468 (polling_for_input): Removed because unused.
15469 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
15470 (poll_timer): New variable.
15471 (poll_for_input, poll_for_input_1): New functions.
15472 (start_polling, stop_polling): Rewritten.
15473
15474 * keyboard.h (polling_for_input): Removed.
427ec082 15475
e12489f9
GM
15476 * atimer.h, atimer.c: New files.
15477
15478 * Makefile.in (obj): Add atimer.o.
15479 (atimer.o): New target.
15480
15481 * blockinput.h (pending_atimers): Add extern declaration.
15482 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
15483
15484 * lisp.h (popup_activated_flag): Add extern declaration.
15485
15486 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 15487 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
15488 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
15489
15490 * xterm.c (toplevel): Include atimer.h.
15491 (toolkit_scroll_bar_interaction): New variable.
15492 (Fxt_process_timeouts): Removed.
15493 (x_process_timeouts): New function.
15494 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
15495 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
15496 (x_make_frame_visible): Call poll_for_input_1 instead of
15497 input_poll_signal. Don't call alarm.
15498 (x_initialize): Install timer calling x_process_timeouts.
427ec082 15499
1e5279b9
DL
155002000-01-24 Dave Love <fx@gnu.org>
15501
6c67ddee 15502 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
15503 Don't use -cckr -- apparently not now necessary.
15504
edf6aeb8
EZ
155052000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
15506
15507 * msdos.c (IT_menu_display): Truncate long menu lines at the right
15508 screen boundary.
15509
9badad41
JR
155102000-01-23 Jason Rumney <jasonr@gnu.org>
15511
15512 * w32fns.c (w32_defined_color): Apply gamma correction before
15513 trying to map to the palette.
15514 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
15515 to w32_clear_rect.
15516
15517 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
15518 here. Callers changed to always pass real device context.
15519 (w32_draw_bitmap): Likewise.
15520 (w32_get_glyph_overhangs): Likewise.
52283633 15521 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
15522 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
15523 pfnSetScrollInfo and SetScrollRange.
15524 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
15525 back into MULE characters after decoding them.
15526 (x_get_glyph_face_and_encoding): Likewise.
15527 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
15528 GetCharABCWidthsW fails, since this is defined on Windows 9x.
15529 (x_produce_glyphs): Calculate per char metrics for a character
15530 that we know exists in default font when font_not_found_p is true.
15531
63bd786b
JR
155322000-01-22 Jason Rumney <jasonr@gnu.org>
15533
15534 * makefile.nt (intervals.obj, composite.obj): New modules.
15535 (composite.h): Added as dependency where appropriate.
15536
15537 * w32gui.h (XGCValue): New struct for emulating X GCs.
15538
15539 * w32term.h (XCharStruct): New struct for emulating X.
15540
15541 * w32console.c (turn_on_face, turn_off_face): New functions.
15542 (change_line_highlight): New prototype for new redisplay.
15543 (write_glyphs): Support multibyte text. Support faces.
15544
52283633 15545 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
15546
15547 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
15548 throughout. struct frame * in place of FRAME_PTR.
15549 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 15550 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
15551 (w32_get_arg): Renamed from x_get_arg.
15552 (Fx_file_dialog): New function.
15553 (w32_list_fonts): Check cache before asking system.
15554 (Vw32_enable_synthesized_fonts): New variable.
15555 (Vw32_enable_italics): Obsolete, removed.
15556
15557 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15558 Use SELECTED_FRAME macro.
15559
15560 * w32menu.c: Add skeleton support for help strings on menus.
15561 (add_menu_item): Native checkbox and radio support added, but not
15562 yet enabled due to bugs.
15563 (push_menu_item): Add parameters type, selection and help.
15564 Callers updated.
15565 Formatting changes to reduce unnecessary diffs with xmenu.c.
15566
15567 * w32select.c (Fw32_set_clipboard_data): Update call to
15568 find_charset_in_str.
15569
15570 * w32term.c: Complete rewrite for new redisplay based on new
15571 xterm.c with necessary sections merged back in from old w32term.c.
15572
6ffd3cf7 155732000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
15574
15575 * data.c (set_internal): Further fix in same criterion.
15576
6ffd3cf7 155772000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
15578
15579 * data.c (set_internal): Fix the criteria for whether
15580 to swap out the old cached binding.
15581
60af03f1
DL
155822000-01-19 Dave Love <fx@gnu.org>
15583
15584 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
15585
f9be074f
KH
155862000-01-18 Kenichi Handa <handa@etl.go.jp>
15587
15588 * regex.c (re_compile_fastmap): While checking a range table for
15589 `charset', skip flag bits for a character class correctly.
15590
52b8dbf9
GM
155912000-01-17 Gerd Moellmann <gerd@gnu.org>
15592
d36100c9
GM
15593 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
15594
52283633 15595 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
15596
15597 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 15598 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
15599
15600 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
15601 MENU_ITEMS_ITEM_.*.
15602 (MENU_ITEMS_ITEM_HELP): New enumerator.
15603 (push_menu_item): Add parameter HELP. Record help in menu_items.
15604 (single_menu_item, single_submenu, list_of_items): Call
15605 push_menu_item with new parameter.
15606 (single_submenu): Set help string in widget value.
15607 (menu_highlight_callback): New function.
15608 (set_frame_menubar): Call lw_create_widget with new
15609 parameter list.
15610 (xmenu_show, xdialog_show): Ditto.
15611
3139018f
GM
156122000-01-13 Gerd Moellmann <gerd@gnu.org>
15613
15614 * sound.c (Fplay_sound): Improve doc string.
15615
83c8f461
RS
156162000-01-11 Richard M. Stallman <rms@gnu.org>
15617
15618 * lisp.h (set_internal): Enter the new arg.
15619
15620 * eval.c (specbind): Record buffer-local variables specially,
15621 indicating which buffer's binding was saved.
15622 (unbind_to): Restore buffer-local variables specially
15623 in the proper buffer.
15624
15625 * data.c (set_internal): New arg BUF.
427ec082 15626
83c8f461
RS
15627 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
15628 * data.c (Fset): Pass new arg to set_internal.
15629 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 15630
1fab1775
GM
156312000-01-11 Gerd Moellmann <gerd@gnu.org>
15632
52283633 15633 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 15634
83c8f461 156352000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
15636
15637 * minibuf.c (Ftry_completion): Doc fix.
15638
7a85e4df
GM
156392000-01-11 Gerd Moellmann <gerd@gnu.org>
15640
15641 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
15642 vector, too.
15643
a970dae4
AS
156442000-01-11 Andreas Schwab <schwab@suse.de>
15645
15646 * coding.c (code_convert_region): Initialize total_skip.
15647
c65d14ee
DL
156482000-01-08 Dave Love <fx@gnu.org>
15649
15650 * eval.c (Fuser_variable_p): Check customizability too.
15651
834938d2
GM
156522000-01-07 Gerd Moellmann <gerd@gnu.org>
15653
15654 * minibuf.c (Fcompleting_read): Doc fix.
15655
e0303cd6
GM
156562000-01-05 Gerd Moellmann <gerd@gnu.org>
15657
8a26744b
GM
15658 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
15659 -L /usr/local/lib.
15660
e0303cd6
GM
15661 * xfns.c (x_create_im): New function to set IM and IC of a frame.
15662 Check that input style is supported before trying to create an
15663 IC for it.
15664 (x_window): Call x_create_im.
427ec082 15665
2e471eb5
GM
156662000-01-04 Gerd Moellmann <gerd@gnu.org>
15667
560a7bd2
GM
15668 * xfns.c (current_gif_memory_src): New variable.
15669 (gif_load): Record the address of the current memory source
15670 in current_gif_memory_src.
15671 (gif_read_from_memory): Use current_gif_memory_src.
15672
f9ee84a3
GM
15673 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
15674 macros statement form.
15675
d1299cde
GM
15676 * sound.c (struct sound): Renamed from struct sound_file.
15677 (struct sound): Add members `data' and `header_size'.
15678 (enum sound_attr): Add SOUND_DATA.
15679 (current_sound, current_sound_device): Variables renamed from
15680 sound_file and sound_device.
15681 (parse_sound): Parse :data.
15682 (parse_sound): Handle sound data in strings.
15683 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 15684 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
15685 needed header size.
15686 (wav_play, au_play): Play sounds from string data.
15687
2e471eb5
GM
15688 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
15689
15690 * lisp.h: Add prototype for allocate_string_data.
15691
52283633 15692 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
15693
15694 * alloc.c (mark_buffer): Remove code in #if 0.
15695 (gc_sweep): Ditto.
15696 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
15697 (strings_consed): New variable.
15698 (allocate_string): Set it.
15699 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
15700 (Fmemory_use_counts): Return strings_consed. Use Flist.
15701
15702 * alloc.c: General cleanup in comments etc. Remove conditional
15703 compilation for `standalone'.
15704
15705 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
15706
15707 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
15708 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
15709 (DONT_COPY_FLAG): Removed.
15710 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
15711 (struct sdata, struct sblock): New
15712 (struct string_block): Rewritten.
15713 (STRINGS_IN_STRING_BLOCK): New macro.
15714 (oldest_sblock, current_sblock, total_strings, total_free_strings)
15715 (large_sblocks, string_blocks, string_free_list): New variables.
15716 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
15717 (init_strings): Rewritten.
15718 (allocate_string, allocate_string_data, compact_small_strings)
15719 (free_large_strings, sweep_strings): New functions.
15720 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
15721 (struct string_block_head, current_string_block)
15722 (first_string_block, large_string_blocks, STRING_FULLSIZE)
15723 (STRING_PAD): Removed.
15724 (make_uninit_multibyte_string, make_pure_string): Rewritten.
15725 (Fgarbage_collect): Don't set mark bit in large strings.
15726 (mark_object): Mark strings differently. Mark symbol names
15727 differently.
15728 (survives_gc_p): Test marked strings differently.
427ec082 15729 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
15730 symbol names.
15731 (compact_strings): Removed.
15732
42608ba8
EZ
157332000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
15734
15735 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
15736 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
15737
e0a09e1a
KH
157382000-01-04 Kenichi Handa <handa@etl.go.jp>
15739
dd9f0750 15740 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 15741 in a non-empty buffer.
dd9f0750 15742
3c0f3b15 15743 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 15744
44cd3ae5
GM
157452000-01-03 Gerd Moellmann <gerd@gnu.org>
15746
15747 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
15748 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
15749
15750 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
15751
c182a70f
EZ
157522000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15753
15754 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
15755 need to test for MSDOS frames.
15756
24480d5b
EZ
157572000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15758
15759 * dosfns.c (unspecified_colors): Remove.
15760 (msdos_stdcolor_idx): Use global variables unspecified_fg and
15761 unspecified_bg.
15762 (msdos_stdcolor_name): Return strings for unspecified fore- and
15763 back-ground colors.
15764
15765 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 15766 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
15767 (tty_color_name): Return Lisp strings for unspecified fore- and
15768 back-ground colors.
15769 (Finternal_set_lisp_face_attribute): Remove the special treatment
15770 for Qunspecified_{f,b}g.
52283633 15771 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 15772
047f434a
GM
157732000-01-03 Gerd Moellmann <gerd@gnu.org>
15774
15775 * xdisp.c (reseat_at_next_visible_line_start): Position before
15776 newline only if ending up on a newline.
15777 (next_element_from_ellipsis): Return success. Handle case of
52283633 15778 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
15779 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
15780 returns 0.
15781
d684c676
EZ
157822000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15783
15784 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
15785 (Fcolor_supported_p): Renamed from face-color-supported-p.
15786
5fe1d139
EZ
157872000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15788
15789 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
15790 list of colors renamed to tty-defined-color-alist.
15791 (tty_color_name): Pass the frame to tty-color-by-index.
15792 (realize_tty_face): tty-color-alist is now a function which
15793 accepts the frame as argument.
15794
52283633 15795 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 15796
816be8b8
EZ
157972000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15798
15799 * term.c (insert_glyphs): Pass glyph, not &glyph, to
15800 encode_terminal_code.
15801
b635321e
EZ
158022000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15803
15804 * dispnew.c (mode_line_string): Support termcap frames as well.
15805
9b784e96
GM
158062000-01-01 Gerd Moellmann <gerd@gnu.org>
15807
27189709
GM
15808 * syntax.c (Fforward_word): Undo previous change.
15809
15810 * editfns.c (Fconstrain_to_field): Don't constrain if
15811 inhibit-field-text-motion is non-nil.
15812 (Fline_beginning_position): Undo previous change.
15813 (Fline_end_position): Ditto.
15814
15815 * syntax.c (Fforward_word): Notice field boundaries only if
15816 inhibit-field-text-motion is nil.
15817
15818 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
15819
15820 * editfns.c (Vinhibit_field_text_motion): New variable.
15821 (inhibit-field-text-motion): New DEFVAR_LISP.
15822 (Fline_beginning_position, Fline_end_position): Notice field
15823 boundaries only if inhibit-field-text-motion is nil.
15824
45158a91
GM
15825 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
15826 All calls adjusted.
15827 (x_build_heuristic_mask): Likewise.
15828 (xbm_load_image_from_file): Change error output.
15829 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
15830 (gif_load, gs_load, x_kill_gs_process): Ditto.
15831
9b784e96
GM
15832 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
15833 color indices when accessing raster pixels.
63cec32f
GM
15834 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
15835 one of :file or :data.
15836 (enum pbm_keyword_index): Add PBM_DATA.
15837 (pbm_format): Add :data.
15838 (pbm_image_p): Allow either :file or :data.
15839 (pbm_read_file): New function.
15840 (pbm_scan_number): Rewritten to read from string.
15841 (pbm_load): Support :data.
9b784e96 15842
2cb085db 15843See ChangeLog.8 for earlier changes.
6922b018
KH
15844
15845;; Local Variables:
49b3bd82 15846;; coding: iso-2022-7bit
6922b018 15847;; End:
2a34a036
GM
15848
15849 Copyright (C) 2001 Free Software Foundation, Inc.
15850 Copying and distribution of this file, with or without modification,
15851 are permitted provided the copyright notice and this notice are preserved.