]> code.delx.au - gnu-emacs/blob - src/ChangeLog
(Vmode_line_in_non_selected_windows): New variable.
[gnu-emacs] / src / ChangeLog
1 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
4 variables; cus-start.el doesn't need them anymore.
5
6 2002-02-09 Kim F. Storm <storm@cua.dk>
7
8 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
9 reduction. This fixes a display problem where stray newlines were
10 inserted in the window (corrected by C-l). Clarified code (IMHO).
11
12 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
13
14 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
15
16 * xdisp.c (display_mode_lines): Fix last change.
17
18 2002-02-09 Jason Rumney <jasonr@gnu.org>
19
20 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
21 match each other.
22 (w32_load_system_font): Prevent Cleartype fonts from loading.
23 (Fx_show_tip): Ensure tip frames are above other topmost windows.
24
25 2002-02-09 Kim F. Storm <storm@cua.dk>
26
27 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
28 (CURRENT_MODE_LINE_HEIGHT): Use it.
29 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
30
31 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
32 (pos_visible_p, handle_face_prop): Likewise.
33 (display_mode_lines): Likewise, but for the real selected window.
34 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
35
36 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
37 in non-selected windows.
38 (realize_basic_faces): Realize it.
39 (syms_of_term): Intern and staticpro it.
40
41 2002-02-08 Kim F. Storm <storm@cua.dk>
42
43 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
44 Changed mail addresses to emacs-devel@gnu.org.
45
46 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
47
48 * fileio.c (Fsubstitute_in_file_name): If the file name includes
49 ~user, and there's no such user, don't discard everything before
50 ~user.
51
52 * floatfns.c (Fround): Doc fix.
53
54 2002-02-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
55
56 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
57
58 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
59
60 * lisp.h (Fx_file_dialog): Export (for Motif code in fileio.c).
61
62 2002-02-07 Kim F. Storm <storm@cua.dk>
63
64 * keymap.c (where_is_internal): Only check whether definition is
65 remapped if it fulfills is_command_symbol.
66
67 2002-02-07 Andreas Schwab <schwab@suse.de>
68
69 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
70
71 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
72
73 2002-02-06 Kim F. Storm <storm@cua.dk>
74
75 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
76 defining command remapping. Doc updated.
77 (Flookup_key): Remap command through keymap if KEY is a symbol.
78 (is_command_symbol): New function.
79 (Fkey_binding): Use it. New optional argument NO-REMAP.
80 Doc updated. Callers changed. Perform command remapping via
81 recursive call unless that arg is non-nil.
82 (where_is_internal): New argument no_remap. Callers changed.
83 Call recursively to find original key bindings for a remapped
84 comand unless that arg is non-nil.
85 (Fwhere_is_internal): New optional argument NO-REMAP.
86 Doc updated. Callers changed. Pass arg to where_is_internal.
87
88 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
89 (is_command_symbol): Added prototype.
90
91 * keyboard.c (Vthis_original_command): New variable.
92 (syms_of_keyboard): DEFVAR_LISP it.
93 (command_loop_1): Set it, and perform command remapping.
94
95 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
96
97 * keyboard.c (recursive_edit_1): Call cancel_hourglass
98 unconditionally.
99
100 2002-02-06 Jason Rumney <jasonr@gnu.org>
101
102 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
103
104 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
105
106 * charset.c (get_charset_id): Use if-else instead of ?:.
107
108 2002-02-06 Richard M. Stallman <rms@gnu.org>
109
110 * filelock.c (S_ISLNK): Define if not defined.
111
112 2002-02-03 Richard M. Stallman <rms@gnu.org>
113
114 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
115
116 * lread.c (read1): Redesign strategy for force_multibyte and
117 force_singlebyte. Now is_multibyte records whether read_buffer
118 is multibyte. Encountering any multibyte character makes it so.
119
120 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
121
122 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
123 with the same sequence, map that sequence to f10 rather than f0.
124
125 2002-02-03 Andreas Schwab <schwab@suse.de>
126
127 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
128 latter never being defined on GNU/Linux.
129
130 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
131
132 * xfaces.c (realize_default_face): Don't set the weight and slant
133 of the default face to Qnormal, unless these attributes are
134 unspecified.
135
136 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
137
138 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
139 Call cancel_hourglass unconditionally.
140
141 * eval.c (Fsignal): Remove duplicated declaration of
142 the variable `display_hourglass_p'.
143
144 2002-01-31 Richard M. Stallman <rms@gnu.org>
145
146 * editfns.c (region_limit): Nicer error message.
147
148 * coding.c (decode_composition_emacs_mule):
149 Give up if NCOMPONENT gets too large to index `component'.
150
151 * callint.c (check_mark): New arg to specify clearer error message.
152 Callers changed.
153
154 2002-01-27 Richard M. Stallman <rms@gnu.org>
155
156 * minibuf.c (Fcompleting_read): Doc fix.
157
158 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
159
160 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
161 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
162 Fix doc-strings.
163
164 2002-01-26 Richard M. Stallman <rms@gnu.org>
165
166 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
167
168 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
169 and scroll_up_aggressively.
170
171 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
172
173 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
174
175 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
176
177 * textprop.c (Fnext_property_change, Fnext_single_property_change)
178 (Fprevious_property_change, Fprevious_single_property_change):
179 Stay within the narrowed-buffer boundaries.
180
181 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
182
183 * term.c (Ftty_display_color_cells): New function.
184 (syms_of_term): Defsubr it.
185 (Ftty_display_color_cells, Ftty_display_color_p): Change the
186 argument name to DISPLAY. Doc fix.
187
188 * dispextern.h: Add prototype for set_tty_color_mode and
189 tty_setup_colors.
190
191 2002-01-24 Jason Rumney <jasonr@gnu.org>
192
193 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
194 If region left to draw is not what was expected, mark the frame as
195 garbaged.
196
197 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
198 Combine the regions returned by BeginPaint and GetUpdateRect.
199
200 2002-01-23 Jason Rumney <jasonr@gnu.org>
201
202 * w32term.c (x_update_window_begin): Only hide caret if
203 w32_use_visible_system_caret is set.
204 (x_update_window_end): Only show caret if
205 w32_use_visible_system_caret is set.
206 (syms_of_w32term): Handle SystemParametersInfo call failing.
207
208 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
209
210 2002-01-22 Richard M. Stallman <rms@gnu.org>
211
212 * unexelf.c (unexec): Define n so as to cause compilation error
213 for the code where people have often written n instead of nn.
214
215 * .gdbinit (hookpost-run): Defined.
216
217 2002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
218
219 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
220
221 2002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
222
223 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
224 if fullscreen is being set.
225
226 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
227
228 * minibuf.c (Fminibuffer_contents)
229 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
230 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
231
232 2002-01-21 Richard M. Stallman <rms@gnu.org>
233
234 * window.c (check_frame_size): Fix minimum height calculation.
235
236 2002-01-20 Ken Raeburn <raeburn@gnu.org>
237
238 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
239 height before comparison.
240 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
241
242 2002-01-20 Jason Rumney <jasonr@gnu.org>
243
244 * w32term.c (w32_system_caret_width): Remove.
245 (w32_use_visible_system_caret): New user flag.
246 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
247 Windows reports a screen reader running.
248 (x_update_window_begin): Hide the system caret.
249 (x_update_window_end): Show the system caret.
250 (x_display_and_set_cursor): Don't draw a cursor when
251 w32_use_visible_system_caret is set. Do not adjust width.
252
253 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
254 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
255 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
256 the user requests it. Use system default width when creating.
257 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
258
259 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
260 New window messages.
261
262 2002-01-20 Richard M. Stallman <rms@gnu.org>
263
264 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
265
266 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
267
268 * doprnt.c (doprnt1): Fix typos in error call.
269
270 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
271
272 * unexelf.c (unexec) [__sgi]: Support the .got sections.
273
274 2002-01-20 Jason Rumney <jasonr@gnu.org>
275
276 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
277 that Windows returns. If a double check fails, try to guess how
278 ExtTextOut is going to act.
279
280 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
281 in place of stricmp.
282 (w32_list_synthesized_fonts): Removed.
283 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
284 (struct enumfont_t): New element; list.
285 (enum_font_cb2): List all style and charset variations of a font.
286 (Fw32_select_font): New optional argument; include_proportional.
287 Exclude vertical fonts. Exclude proportional fonts unless
288 include_proportional is non-nil.
289 (w32_enable_synthesized_fonts): Change to a boolean.
290 (Fw32_send_sys_command): Doc fix.
291
292 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
293
294 * dispnew.c (update_frame): Move the variable `tem' to the block
295 where it is used.
296
297 2002-01-19 Jason Rumney <jasonr@gnu.org>
298
299 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
300 call to face-set-after-frame-default.
301
302 2002-01-18 Richard M. Stallman <rms@gnu.org>
303
304 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
305 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
306
307 2002-01-17 Richard M. Stallman <rms@gnu.org>
308
309 * window.c (enlarge_window): When exceeding size of parent,
310 directly delete all the siblings instead of trying to resize it.
311
312 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
313
314 * term.c (set_tty_color_mode): Remove unused variable `tem'.
315
316 2002-01-16 Henrik Enberg <henrik@enberg.org>
317
318 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
319
320 2002-01-16 Kim F. Storm <storm@cua.dk>
321
322 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
323 is invisible. This can happen if cursor is on top line of a
324 window, and we switch to a buffer with a header line.
325
326 * w32term.c (x_erase_phys_cursor): Ditto.
327
328 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
329
330 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
331 `dont_resize' only when used.
332
333 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
334
335 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
336
337 * xdisp.c (display_mode_element): When computing charpos, depend
338 on multibyteness of elt, not the text in field.
339
340 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
341
342 * buffer.c (Fkill_all_local_variables): Increment
343 `update_mode_lines' only once.
344
345 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
346
347 * lisp.h (adjust_after_replace_noundo)
348 (Fupdate_coding_systems_internal): Add prototypes.
349
350 * sound.c (Fplay_sound): Initialize header_size also for :data case.
351
352 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
353
354 Support for the --color command-line argument and tty-color-mode
355 frame parameter:
356
357 * term.c (tty_default_color_capabilities, tty_setup_colors)
358 (set_tty_color_mode): New functions.
359 (term_init): Call tty_default_color_capabilities.
360 (Qtty_color_mode_alist): New variable.
361 (syms_of_term): Intern and staticpro it.
362
363 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
364 frames.
365 (do_switch_frame): For termcap frames, switch the tty
366 color mode as specified by the frame's parameters.
367 (Qtty_color_mode): New variable.
368 (syms_of_frame): Intern and staticpro it.
369
370 * emacs.c (USAGE2): Add the --color option.
371 (standard_args): Ditto.
372
373 2002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
374
375 * xterm.h (struct x_output): New members want_fullscreen,
376 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
377 y_pixels_outer_diff.
378 New enum for FULLSCREEN_* constants.
379 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
380 is NULL.
381 (x_fullscreen_adjust): Add prototype.
382
383 * emacs.c (USAGE2): Add the new full-screen arguments.
384 (standard_args): Ditto.
385
386 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
387 New variables.
388 (syms_of_xfns): Intern and staticpro them.
389 (x_frame_parms) <"fullscreen">: New parameter.
390 (x_fullscreen_move, x_set_fullscreen): New functions.
391 (x_set_frame_parameters): Support for Qfullscreen.
392 (x_real_positions): More accurate computation of the frame position.
393 (x_figure_window_size): Support full-screen frames.
394 (Fx_create_frame): Default the fullscreen parameter.
395
396 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
397 (XTread_socket) <Expose>: Call x_check_fullscreen.
398 <ConfigureNotify>: Don't resize to fullscreen.
399 Call x_check_fullscreen_move, and set the want_fullscreen member of
400 output_data.x.
401
402 2002-01-13 Jason Rumney <jasonr@gnu.org>
403
404 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
405 for mice with more than 3 buttons.
406
407 * w32term.c (parse_button): New parameter xbutton. Callers changed.
408 (w32_read_socket): Handle new "XBUTTON" messages.
409
410 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
411 (syms_of_w32fns): DEFVAR_BOOL it.
412 (w32_wnd_proc): Handle new "XBUTTON" messages.
413
414 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
415
416 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
417
418 2002-01-13 Andreas Schwab <schwab@suse.de>
419
420 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
421
422 2002-01-12 Andreas Schwab <schwab@suse.de>
423
424 * .gdbinit (xbuffer): Remove address operator since data is now a
425 pointer.
426
427 2002-01-11 Richard M. Stallman <rms@gnu.org>
428
429 * insdel.c (adjust_after_replace_noundo): New function.
430
431 * coding.c (code_convert_region): Don't copy old text if undo disabled.
432
433 2002-01-09 Jason Rumney <jasonr@gnu.org>
434
435 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
436 when checking for multiple frames.
437
438 2002-01-08 Richard M. Stallman <rms@gnu.org>
439
440 * window.c (delete_window): Rewrite the code for changing the
441 selected window to handle the case where WINDOW is not a leaf.
442
443 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
444
445 * process.c (send_process): Set src_multibyte to 1 after the call
446 top setup_coding_system, not before the call.
447
448 2002-01-07 Jason Rumney <jasonr@gnu.org>
449
450 * xmenu.c (set_frame_menubar, xmenu_show):
451 (xdialog_show): Initialize wv->help to Qnil.
452
453 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
454 (w32_dialog_show): Initialize wv->help to Qnil.
455
456 2002-01-06 Jason Rumney <jasonr@gnu.org>
457
458 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
459
460 * w32menu.c (w32_menu_display_help): Revert last change.
461
462 * xmenu.c (menu_highlight_callback): Revert last change.
463
464 2002-01-06 Andreas Schwab <schwab@suse.de>
465
466 * insdel.c (make_gap_larger): Make sure buffer size does not
467 overflow range of int.
468
469 2002-01-05 Jason Rumney <jasonr@gnu.org>
470
471 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
472 OVERLAPS_P.
473
474 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
475
476 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
477 to the left or to the right of the pointer, put it against
478 the left screen edge.
479 (x_frame_parms): Add missing braces around initializer.
480
481 * w32term.c (x_setup_relief_colors): Don't compute an image's
482 background color if it doesn't have a Pixmap.
483 (notice_overwritten_cursor): Don't depend on
484 output_cursor and updated_area. Compare pixel coordinates with
485 window's cursor pixel coordinates.
486 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
487 Call notice_overwritten_cursor with new arg list.
488 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
489 unconditionally.
490 (x_draw_image_relief): Use predefined macro instead of
491 constant when the value of `tool_bar_button_relief' is negative.
492
493 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
494
495 2002-01-04 Richard M. Stallman <rms@gnu.org>
496
497 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
498
499 2002-01-03 Richard M. Stallman <rms@gnu.org>
500
501 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
502 (Fkey_binding): Try the `keymap' property map first.
503 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
504 minor mode bindings.
505
506 2002-01-03 Kim F. Storm <storm@cua.dk>
507
508 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
509
510 2002-01-02 Richard M. Stallman <rms@gnu.org>
511
512 * keyboard.c (read_key_sequence): Handle the keymap property
513 before minor mode maps.
514
515 * editfns.c (Fformat): Update thissize from field_width
516 based on the actual width, in the string case.
517
518 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
519
520 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
521 when used as truth value to prevent gcc warnings.
522
523 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
524 * w32proc.c: Include <config.h>.
525
526 2002-01-01 Andreas Schwab <schwab@suse.de>
527
528 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
529 not EMACS_INT, to make them compatible with DEFVAR_INT.
530 * lisp.h (max_specpdl_size): Adjust declaration.
531
532 2002-01-01 Richard M. Stallman <rms@gnu.org>
533
534 * print.c (print_object): Test print_escape_nonascii only for
535 unibyte strings.
536 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
537 when outputting to a multibyte buffer.
538
539 2001-12-29 Richard M. Stallman <rms@gnu.org>
540
541 * print.c (print_object): In multibyte string, use hex escapes.
542 Use octal only for unibyte strings.
543 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
544
545 * lread.c (read_escape): New arg BYTEREP for reporting whether
546 escape forces unibyte or multibyte.
547 (read1): When reading a string, take note of that info.
548
549 2001-12-29 Ken Raeburn <raeburn@gnu.org>
550
551 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
552 comparison to test lisp value returned by Fget.
553
554 2001-12-29 Richard M. Stallman <rms@gnu.org>
555
556 * lisp.h (max_specpdl_size): Add declaration.
557
558 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
559
560 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
561 Handle modifier bits. Correct typo in error message.
562
563 2001-12-28 Richard M. Stallman <rms@gnu.org>
564
565 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
566 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
567 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
568 Update calls to Fdefine_abbrev.
569 (write_abbrev): Update for changed data format.
570 Don't list "system" abbrevs.
571 (Fexpand_abbrev): Update use count with new data format.
572 (describe_abbrev): Update for changed data format.
573 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
574
575 * config.in (HAVE_MBSINIT): Add #undef.
576
577 * strftime.c (mbsinit): Define as no-op if not available.
578
579 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
580 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
581
582 * keymap.c (Flookup_key): Error message if key has wrong data type.
583 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
584 (exclude_key): New variable.
585
586 2001-12-28 Gerd Moellmann <gerd@gnu.org>
587
588 * xterm.c (x_setup_relief_colors): Don't compute an image's
589 background color if it doesn't have a Pixmap.
590
591 * xterm.c (notice_overwritten_cursor): Don't depend on
592 output_cursor and updated_area. Compare pixel coordinates with
593 window's cursor pixel coordinates.
594 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
595 Call notice_overwritten_cursor with new arg list.
596 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
597 unconditionally.
598
599 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
600 height of the cursor line to the amount to scroll.
601
602 2001-12-27 Richard M. Stallman <rms@gnu.org>
603
604 * intervals.c (set_point_both): The position after an invisible,
605 intangible character is not an acceptable stopping point.
606
607 2001-12-27 Ken Raeburn <raeburn@gnu.org>
608
609 * window.c (enlarge_window): In new preserve_before code, convert
610 CURBEG from lisp object to integer before doing arithmetic.
611
612 2001-12-27 Richard M. Stallman <rms@gnu.org>
613
614 * bytecode.c (Fbyte_code): Undo previous change.
615
616 2001-12-26 Kim F. Storm <storm@cua.dk>
617
618 * keyboard.c (record_char): Ignore duplicate help-echo events only
619 separated by mouse-movement. When tracking mouse, only record
620 first and last mouse-movement event in same window.
621 Don't record mouse-movement events in keyboard macros.
622
623 2001-12-25 Richard M. Stallman <rms@gnu.org>
624
625 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
626 (Fenlarge_window): New arg PRESERVE_BEFORE.
627
628 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
629 instead of Fstring_as_unibyte.
630
631 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
632
633 The following changes remove mocklisp support:
634
635 * mocklisp.h, mocklisp.c: Files removed.
636
637 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
638 `Qmocklisp' and `Qmocklisp_arguments'.
639 Remove prototype of syms_of_mocklisp.
640
641 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
642
643 * callint.c: Do not include mocklisp.h.
644 (Fcall_interactively): Do not test for mocklisp case.
645
646 * eval.c: Remove variables `Qmocklisp_arguments',
647 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
648 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
649 Do not test for mocklisp case.
650 (Fwhile): Remove unused variable `tem'.
651 (syms_of_eval): Remove variable `moclisp-arguments'.
652
653 * data.c (wrong_type_argument): Remove mocklisp case.
654
655 * doc.c (Fdocumentation): Remove mocklisp case.
656
657 * emacs.c (main): Do not call syms_of_mocklisp.
658
659 2001-12-21 Richard M. Stallman <rms@gnu.org>
660
661 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
662 to the left or to the right of the pointer, put it against
663 the left screen edge.
664
665 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
666
667 * Makefile.in (distclean): Remove .gdbinit if we are building
668 outside the source tree.
669
670 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
671
672 * w32.c (emacs_root_dir): New function.
673
674 * msdos.c (emacs_root_dir): New function.
675
676 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
677 of the current drive as the fallback for default_directory.
678
679 * dired.c (file_name_completion): Run the elements of
680 completion-ignored-extensions through ENCODE_FILE.
681
682 * lisp.h (scmp): Remove prototype, since it's now a static
683 function private to dired.c.
684
685 2001-12-18 Richard M. Stallman <rms@gnu.org>
686
687 * dired.c (scmp): Function moved from minibuf.c.
688 Delete multibyte handling--used only on encoded strings.
689
690 * minibuf.c (scmp): Function moved to dired.c.
691
692 * fns.c (merge): Add QUIT call.
693
694 2001-12-18 Dave Love <fx@gnu.org>
695
696 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
697 language/georgian.el.
698
699 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
700
701 * Makefile.in (lisp, shortlisp): Synchronize with changes to
702 lisp/Makefile.in:DONTCOMPILE.
703
704 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
705
706 * xdisp.c (window_box_height): Do not return negative values.
707 From Gerd Moellmann <gerd@gnu.org>.
708
709 * keyboard.c (head_table): Add missing braces around initializer.
710
711 * term.c (keys): Likewise.
712
713 * xfns.c (x_frame_parms, visual_classes): Likewise.
714
715 2001-12-17 Sam Steingold <sds@gnu.org>
716
717 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
718 patch (COMPOSING_P, not COMPOSING).
719
720 2001-12-17 Richard M. Stallman <rms@gnu.org>
721
722 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
723
724 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
725 before calling decode_coding.
726
727 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
728
729 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
730 instead of only for COMPOSITION_DISABLED.
731
732 2001-12-16 Richard M. Stallman <rms@gnu.org>
733
734 * alloc.c (pure_alloc): After overflow, allocate just a small block.
735
736 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
737
738 * buffer.h (struct buffer): New field `display_error_modiff'.
739 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
740
741 * window.c (Frecenter): Clear display_error_modiff field.
742
743 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
744 Call redisplay_window, but not if display_error_modiff field says no.
745 (redisplay_window_error): New function.
746 (displayed_buffer): New variable.
747 (redisplay_internal, redisplay_windows): Call the new functions
748 instead of redisplay_window directly.
749
750 2001-12-15 Richard M. Stallman <rms@gnu.org>
751
752 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
753
754 2001-12-14 Andrew Innes <andrewi@gnu.org>
755
756 * makefile.w32-in (EMACSLOADPATH): Define.
757 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
758 (bootstrap-temacs): Remove dependency on bootstrap-clean.
759
760 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
761
762 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
763 parameter have a numeric value all the time.
764
765 * w32fns.c (x_report_frame_params): Likewise.
766
767 2001-12-12 Richard M. Stallman <rms@gnu.org>
768
769 * fileio.c (Fwrite_region): Doc fix.
770
771 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
772 (redisplay_internal): Call clear_image_cache only for window terminals.
773
774 2001-12-12 Gerd Moellmann <gerd@gnu.org>
775
776 * xdisp.c (move_it_vertically_backward): Change heuristic
777 for the case that we didn't move far enough initially.
778
779 * window.c (Frecenter): Simplify computation in the case of window
780 system frames and ARG < 0; use window_box_height.
781
782 2001-12-11 Richard M. Stallman <rms@gnu.org>
783
784 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
785 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
786
787 2001-12-11 Andrew Innes <andrewi@gnu.org>
788
789 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
790 arg is negative.
791
792 2001-12-11 Richard M. Stallman <rms@gnu.org>
793
794 * m/hp800.h: Split the __hpux conditional into the parts
795 that are right for GNU/Linux too and the parts that are not.
796 Use the former if GNU_LINUX.
797 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
798
799 * s/gnu-linux.h (GNU_LINUX): Defined.
800
801 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
802
803 * macros.c, msdos.c, w16select.c: Change doc-string comments to
804 `new style' [w/`doc:' keyword].
805
806 2001-12-10 Jason Rumney <jasonr@gnu.org>
807
808 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
809 before using.
810
811 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
812
813 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
814 keyword].
815
816 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
817
818 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
819
820 * s/hpux10.h (srand48): Don't undefine.
821
822 2001-12-09 Jason Rumney <jasonr@gnu.org>
823
824 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
825 Add comment to explain where the struct came from.
826 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
827 (add_menu_item): Process pop-up menus first to avoid memory leak.
828 (add_menu_item, w32_menu_display_help): Use `help' field as
829 Lisp_Object.
830 (w32_free_submenu_strings): Only free owner-drawn strings.
831
832 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
833
834 * COPYING: Moved back.
835
836 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
837 Add parentheses around && within ||.
838
839 * indent.c (compute_motion): Likewise.
840
841 * intervals.c (merge_properties_sticky): Likewise.
842
843 * coding.c (setup_coding_system, shrink_encoding_region)
844 (Fdecode_sjis_char): Likewise.
845
846 2001-12-07 Andreas Schwab <schwab@suse.de>
847
848 * xdisp.c (display_mode_element): Don't read past end of string if
849 it ends with '%'.
850
851 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
852 can hold.
853
854 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
855 from most_positive_fixnum and most_negative_fixnum, resp., and
856 type changed to Lisp_Object.
857 (syms_of_data): DEFVAR_LISP them.
858
859 2001-12-07 Richard M. Stallman <rms@gnu.org>
860
861 * callproc.c (init_callproc): Set Vdata_directory based on the source
862 location whenever Emacs was run uninstalled.
863
864 2001-12-06 Paul Eggert <eggert@twinsun.com>
865
866 * config.in (HAVE_WORKING_VFORK): New #undefs.
867 * process.c (create_process):
868 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
869 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
870 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
871 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
872 * m/intel386.h (HAVE_VFORK): Likewise.
873 * m/mips-siemens.h (HAVE_VFORK): Likewise.
874 * m/mips.h (HAVE_VFORK): Likewise.
875 * s/freebsd.h (vfork): Remove #define.
876 * s/lynxos.h (HAVE_VFORK): Remove #undef.
877 * s/usg5-4-2.h: Fix comment about vfork.
878
879 2001-12-06 Richard M. Stallman <rms@gnu.org>
880
881 * s/hpux10.h (random): Add undef.
882 (HAVE_RANDOM): Define it just once.
883
884 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
885
886 * eval.c: Undo last change: the standard syntax is not wanted.
887
888 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
889
890 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
891 scroll bars of the frame before deleting the frame itself. If the
892 frame has a widget, delete the frame with XtDestroyWidget, and do
893 not call XDestroyWindow before that.
894
895 2001-12-06 Kim F. Storm <storm@cua.dk>
896
897 * xfns.c (x_report_frame_params): Return actual fringe widths.
898
899 * w32fns.c (x_report_frame_params): Return actual fringe widths.
900
901 2001-12-05 Andrew Innes <andrewi@gnu.org>
902
903 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
904 excessively large.
905
906 * insdel.c (make_gap_larger): New function.
907 (make_gap_smaller): New function.
908 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
909 make_gap_smaller if arg is negative.
910
911 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
912
913 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
914 Pass a dummy argument when calling interrupt_signal.
915 (parse_menu_item): Mark disabled items before checking for empty def.
916 (read_char_minibuf_menu_prompt): Make safety more visible.
917 (read_key_sequence): Add a `first_unbound' variable.
918 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
919 unbound prefix as soon as we can detect it.
920
921 * doc.c (Fsnarf_documentation): Add prototype.
922 (get_doc_string): Handle negative arguments.
923 (Fdocumentation): Use AREF and ASIZE.
924 Move the calls to get_doc_string to a single place.
925 Don't confuse an interactive-spec for a docstring reference.
926 (Fdocumentation_property): Take advantage of the fact that
927 get_doc_string now ignores the sign of the docstring position.
928
929 * eval.c: Use standard syntax for usage in docstrings.
930
931 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
932
933 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
934
935 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
936
937 * xterm.c (x_draw_image_relief): Use predefined macro instead of
938 constant when the value of `tool_bar_button_relief' is negative.
939
940 2001-12-02 Richard M. Stallman <rms@gnu.org>
941
942 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
943 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
944
945 * fileio.c (read_non_regular): Delete Fsignal call.
946
947 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
948
949 * lisp.h (run_hook_list_with_args): Undo last change.
950
951 2001-12-01 Gerd Moellmann <gerd@gnu.org>
952
953 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
954
955 2001-12-01 Jason Rumney <jasonr@gnu.org>
956
957 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
958
959 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
960 [!WM_MOUSELEAVE]: Define.
961
962 * w32menu.c (current_popup_menu, get_menu_item_info):
963 (set_menu_item_info): New vars.
964 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
965 (w32_menu_show): Set current_popup_menu.
966 (add_menu_item): Allocate new strings for owner-drawn menu items
967 and help strings.
968 Use owner-draw for disabled menu items again.
969 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
970 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
971
972 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
973 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
974 <WM_EXITMENULOOP>: Free menu strings.
975 <WM_MOUSELEAVE>: Stop tracking mouse.
976 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
977
978 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
979 and mouse face.
980
981 2001-12-01 Kim F. Storm <storm@cua.dk>
982
983 The following changes add left-fringe and right-fringe
984 frame parameters to adjust fringe widths, or remove one or
985 both fringes.
986
987 * frame.h (struct frame): Remove trunc_area_pixel_width and
988 trunc_area_cols fields.
989 (Qleft_fringe, Qright_fringe): Declare.
990 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
991
992 * frame.c (Qleft_fringe, Qright_fringe): New vars.
993 (syms_of_frame): Initialize them.
994
995 * window.c (coordinates_in_window): Handle separate left and right
996 fringe widths.
997
998 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
999 and fringe_cols fields.
1000 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
1001 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
1002 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
1003 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
1004 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
1005 (x_compute_fringe_widths): Add prototype.
1006
1007 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
1008 fill fringe evenly with small dashes.
1009 (x_draw_fringe_bitmap): Clear background if necessary. Align and
1010 clip the new ZV bitmap to avoid jitter between rows.
1011 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
1012 background. Don't draw fringe bitmaps if fringe width is zero.
1013 (x_compute_fringe_widths): New function.
1014 (x_new_font, x_set_window_size_1): Use it.
1015
1016 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
1017 (x_set_frame_parameters): Process `font' parameter before other
1018 parameters as fringe widths depend on it.
1019 (x_set_fringe_width): New function.
1020 (x_figure_window_size): Use x_compute_fringe_widths.
1021 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
1022 parameters.
1023
1024 * widget.c (set_frame_size): Use x_compute_fringe_widths.
1025 (EmacsFrameSetCharSize): Ditto.
1026
1027 * w32term.h: Merged changes from xterm.h.
1028 * w32term.c: Merged changes from xterm.c.
1029 * w32fns.c: Merged changes from xfns.c.
1030
1031 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1032
1033 * COPYING: Removed.
1034
1035 2001-11-29 Dave Love <fx@gnu.org>
1036
1037 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
1038 extra extra slot.
1039 (detect_coding_mask): Fix call of detect_coding_iso2022.
1040
1041 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1042
1043 * fileio.c (file-name-coding-system)
1044 (default-file-name-coding-system): Doc fix (links to referenced
1045 variables added).
1046
1047 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1048
1049 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
1050 Add dummy uses of gcproN variables.
1051
1052 * category.c (describe_category, describe_category_1)
1053 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
1054 (syms_of_category): Don't defsubr Sdescribe_categories.
1055
1056 2001-11-28 Richard M. Stallman <rms@gnu.org>
1057
1058 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
1059
1060 * Makefile.in (lispdir): New variable, referring to build dir.
1061 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
1062
1063 2001-11-28 Andrew Innes <andrewi@gnu.org>
1064
1065 * w32menu.c (w32_menu_display_help): Actually add the new argument
1066 OWNER.
1067
1068 2001-11-28 Jason Rumney <jasonr@gnu.org>
1069
1070 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
1071 menu items. From David Ponce <dponce@wanadoo.fr>.
1072 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
1073 conditionally.
1074 (w32_menu_display_help): New argument OWNER. Rewritten to store a
1075 help event in the owner frame's keyboard buffer.
1076
1077 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
1078 (Fx_show_tip): Don't subtract last width from row width.
1079
1080 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
1081 (w32_read_socket): Use EQ to compare frames.
1082
1083 2001-11-28 Gerd Moellmann <gerd@gnu.org>
1084
1085 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1086 OVERLAPS_P.
1087
1088 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1089
1090 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
1091 `gcpro3' and `gcpro4'.
1092
1093 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
1094
1095 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1096
1097 * ccl.c: Use AREF and ASIZE.
1098
1099 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
1100
1101 * lisp.h (run_hook_list_with_args): Remove.
1102 (LIST_END_P): Fix call to wrong_type_argument.
1103 (make_fixnum_or_float): Use EMACS_INT rather than int.
1104
1105 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
1106
1107 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
1108 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
1109
1110 * eval.c: Use AREF and ASIZE.
1111 (Ffetch_bytecode): Add the file name to the error message.
1112
1113 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
1114 which match the end of the file-name.
1115 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
1116 is not a valid env var, but leave it as is instead.
1117
1118 * keymap.c (access_keymap): Handle t bindings like nil bindings.
1119 Make nil bindings in char-tables transparent.
1120 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
1121
1122 2001-11-26 Richard M. Stallman <rms@gnu.org>
1123
1124 * textprop.c (set_text_properties_1): Allow START, END in either order.
1125 Do nothing if range is empty.
1126
1127 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
1128
1129 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
1130 (clean): Not here.
1131
1132 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1133
1134 * textprop.c (set_text_properties_1): Clearly mark that the
1135 interval should not be empty.
1136
1137 * intervals.c (graft_intervals_into_buffer):
1138 Don't call set_text_properties_1 on an empty interval.
1139
1140 2001-11-25 Richard M. Stallman <rms@gnu.org>
1141
1142 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
1143
1144 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
1145 don't lose the data in it.
1146
1147 2001-11-25 Juanma Barranquero <lektu@terra.es>
1148
1149 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
1150
1151 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
1152
1153 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
1154
1155 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1156
1157 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
1158
1159 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
1160
1161 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
1162 Niemitalo <kon@iki.fi>.
1163
1164 2001-11-25 Jason Rumney <jasonr@gnu.org>
1165
1166 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
1167
1168 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
1169 (Fx_show_tip): Block input during frame creation.
1170 (Fx_show_tip, Fx_hide_tip): Enable.
1171
1172 2001-11-24 Richard M. Stallman <rms@gnu.org>
1173
1174 * lread.c (Fload): Detect recursive load error for more than 3
1175 nestings of the same file.
1176 (Vrecursive_load_depth_limit): Variable deleted.
1177 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
1178
1179 2001-11-24 Jason Rumney <jasonr@gnu.org>
1180
1181 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
1182 mouse position if either left or top is not specified.
1183
1184 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
1185 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
1186 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
1187 (my_create_tip_window): Assign tip_window.
1188 (x_create_tip_frame): Use same defaults as X.
1189 (compute_tip_xy): Remove unused variable. Use full screen width.
1190 (Fx_show_tip): Do not double height. Call ShowWindow directly.
1191
1192 * w32term.c (x_after_update_window_line): Doc fix.
1193 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
1194 frames.
1195 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
1196
1197 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
1198 for all Windowed systems.
1199
1200 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
1201
1202 * msdos.c (IT_clear_screen): If the frame's faces are not yet
1203 realized, use the initial screen colors to clear the screen.
1204
1205 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1206
1207 * textprop.c (Fset_text_properties): Remove unused variables
1208 `unchanged', `prev_changed', `s' and `len'.
1209
1210 * search.c (Freplace_match): Remove unused variable `inslen'.
1211
1212 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
1213
1214 2001-11-22 Jason Rumney <jasonr@gnu.org>
1215
1216 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
1217 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
1218 (my_create_tip_window): New function.
1219 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
1220 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
1221
1222 2001-11-20 Jason Rumney <jasonr@gnu.org>
1223
1224 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
1225 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
1226
1227 * w32fns.c (Vw32_system_coding_system): Remove.
1228 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
1229
1230 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
1231
1232 * fileio.c (Fwrite_region): Move choose_write_coding_system to
1233 after build_annotations.
1234
1235 * syntax.c (describe_syntax): Add dummy arg.
1236 (describe_syntax_1): Update call to describe_vector.
1237
1238 * category.c (describe_category): Add dummy arg.
1239 (describe_category_1): Update call to describe_vector.
1240
1241 * keymap.c (Fdescribe_vector): Add `describer' parameter.
1242 (describe_command, describe_translation): Add dummy second param.
1243 (describe_map): Call elt_describer with two arguments.
1244 (describe_vector_princ): Add `fun' parameter.
1245 Call it instead of the hardcoded `princ'.
1246 (describe_vector): Add arg `args'.
1247 Pass it as a new second argument to elt_describer.
1248
1249 * keymap.h (describe_vector): Update prototype.
1250
1251 * frame.c: Don't include keymap.h any more.
1252 (keys_of_frame): Remove.
1253
1254 * lisp.h (keys_of_frame): Remove declaration.
1255
1256 * emacs.c (main): Don't call `keys_of_frame' any more.
1257
1258 2001-11-14 Andreas Schwab <schwab@suse.de>
1259
1260 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
1261 if defined, 0 otherwise.
1262 (MAP_FAILED): Define if not defined and use it to test mmap failure.
1263 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
1264
1265 2001-11-19 Richard M. Stallman <rms@gnu.org>
1266
1267 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
1268
1269 2001-11-18 Jason Rumney <jasonr@gnu.org>
1270
1271 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
1272 (x_draw_bar_cursor): If the background color of the glyph under
1273 the cursor equals the frame's cursor color, use the glyph's
1274 foreground color for drawing the bar cursor.
1275 (x_after_update_window_line): Clear internal border in different
1276 circumstances.
1277 (w32_set_vertical_scroll_bar): Check for width and height > 0.
1278 (w32_draw_relief_rect): Correct relief by 1 pixel.
1279 (x_set_glyph_string_background_width):
1280 Set extends_to_end_of_line_p if the row's fill_line_p is set and
1281 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
1282 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
1283 if cursor_in_non_selected_windows is false.
1284 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
1285 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
1286 Notice if cursor gets overwritten.
1287 (notice_overwritten_cursor): Renamed from
1288 note_overwritten_text_cursor. Rewritten to take glyph widths
1289 into account, and to take X positions as parameters.
1290 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1291 around call to x_draw_glyphs.
1292 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1293 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1294 color to use for image glyph reliefs.
1295 (x_draw_image_relief): Accept zero tool_bar_button_relief.
1296 (glyph_rect): Remove unused variable `area'.
1297
1298 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
1299 some items.
1300 (x_set_internal_border_width): Set frame garbaged when window
1301 doesn't exist yet.
1302 (Fx_create_frame): Accept zero tool_bar_button_relief.
1303 (x_clear_image_1, four_corners_best, image_background)
1304 (image_background_transparent): New functions.
1305 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
1306 (gs_format): Add `:background' entry.
1307 (lookup_image): Set IMG's background color if specified.
1308 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1309 when appropriate.
1310 (x_clear_image_1): Reset `background_valid' and
1311 `background_transparent_valid' fields.
1312 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1313 calculating it here. Set IMG's background_transparent field.
1314 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1315 (enum png_keyword_index): Add PNG_BACKGROUND.
1316 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1317 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1318 (enum gif_keyword_index): Add GIF_BACKGROUND.
1319 (enum gs_keyword_index): Add GS_BACKGROUND.
1320 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
1321 Pre-calculate image background color where necessary.
1322 (x_create_x_image_and_pixmap, xbm_load, gs_load):
1323 Use display info's n_cbits entry for screen depth.
1324 (Fx_show_tip): Remove unused variables `buffer', `top',
1325 `left', `max_width' and `max_height'.
1326
1327 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
1328
1329 2001-11-18 Gerd Moellmann <gerd@gnu.org>
1330
1331 * puresize.h (BASE_PURESIZE): Increase to 750000.
1332
1333 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1334
1335 * frame.c (Fframe_live_p): Doc fix.
1336
1337 2001-11-18 Richard M. Stallman <rms@gnu.org>
1338
1339 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
1340 (message_dolog_marker3): New static variables hold three markers.
1341 (syms_of_xdisp): Initialize and staticpro them.
1342 (message_dolog): Use message_dolog_marker1..3 instead of
1343 allocating markers each time. Unchain them when done.
1344
1345 2001-11-17 Richard M. Stallman <rms@gnu.org>
1346
1347 * doc.c (Fsnarf_documentation): Doc fix.
1348
1349 2001-11-17 Andreas Schwab <schwab@suse.de>
1350
1351 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
1352
1353 2001-11-17 Richard M. Stallman <rms@gnu.org>
1354
1355 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
1356
1357 2001-11-17 Jason Rumney <jasonr@gnu.org>
1358
1359 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
1360
1361 2001-11-17 Gerd Moellmann <gerd@gnu.org>
1362
1363 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
1364 with invalid position.
1365
1366 2001-11-16 Richard M. Stallman <rms@gnu.org>
1367
1368 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
1369
1370 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
1371 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
1372 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
1373
1374 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
1375
1376 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1377
1378 * fileio.c (build_annotations): Split off the tail.
1379 (build_annotations_2): New fun. Extracted from build_annotations.
1380 (Fwrite_region): Split the call to build_annotations into two
1381 calls to build_annotations and build_annotations_2.
1382
1383 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1384
1385 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
1386 clear_waiting_for_input with argument.
1387
1388 * xterm.h (x_update_cursor): Remove duplicated prototype.
1389
1390 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
1391
1392 * xterm.c (waiting_for_input): Remove unnecessary declaration.
1393
1394 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
1395
1396 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1397
1398 * fileio.c (choose_write_coding_system): New fun, extracted
1399 from Fwrite_region.
1400 (Fwrite_region): Use it.
1401
1402 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
1403 (funcall_lambda, run_hook_with_args): Make static and add prototype.
1404 (ml_apply, find_handler_clause): Add prototype.
1405
1406 2001-11-16 Eli Zaretskii <eliz@gnu.org>
1407
1408 * config.in: Add #undef HAVE_COFF_H.
1409
1410 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
1411 Required for ISC 4.1.
1412
1413 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
1414
1415 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
1416 Andrew Wiseman <a.wiseman@btclick.com>.
1417
1418 2001-11-16 Kim F. Storm <storm@cua.dk>
1419
1420 The following changes are made to clean up the various internal
1421 references to the fringes to actually use the term `fringe' for
1422 them. Previously, they were called `flags areas', `bitmap areas',
1423 `left/right side of windows', or implicitly as `flags' or
1424 `bitmaps':
1425
1426 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
1427 Comments fixed. Use renamed symbols.
1428
1429 * dispnew.c: Comment fix. Use renamed symbols.
1430
1431 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
1432 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
1433 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
1434
1435 * msdos.c: Comment fix.
1436
1437 * w32fns.c: Use renamed symbols.
1438
1439 * w32term.c: Comment fixes. Use renamed symbols.
1440 (fringe_bitmap_type): Renamed from bitmap_type.
1441 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1442 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
1443 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1444
1445 * w32term.h: Comment fixes. Use renamed symbols.
1446 (fringes_extra): Renamed from flags_areas_extra.
1447 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1448 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1449 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1450 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
1451 (FRAME_X_LEFT_FRINGE_WIDTH):
1452 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1453 (FRAME_X_RIGHT_FRINGE_WIDTH):
1454 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1455
1456 * widget.c: Use renamed symbols.
1457
1458 * window.c: Comment fixes. Use renamed symbols.
1459 (coordinates-in-window-p): Doc fix.
1460
1461 * xdisp.c: Comment fixes. Use renamed symbols.
1462
1463 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
1464
1465 * xfns.c: Use renamed symbols.
1466
1467 * xterm.c: Comment fixes. Use renamed symbols.
1468 (fringe_bitmap_type): Renamed from bitmap_type.
1469 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1470 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
1471 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1472
1473 * xterm.h: Comment fixes. Use renamed symbols.
1474 (fringes_extra): Renamed from flags_areas_extra.
1475 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1476 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1477 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1478 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
1479 (FRAME_X_LEFT_FRINGE_WIDTH):
1480 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1481 (FRAME_X_RIGHT_FRINGE_WIDTH):
1482 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1483
1484 2001-11-15 Jason Rumney <jasonr@gnu.org>
1485
1486 * w32menu.c (add-menu-item): Make help_echo and radio buttons
1487 work for most menu items. From David Ponce
1488 <david.ponce@wanadoo.fr>.
1489
1490 2001-11-15 Gerd Moellmann <gerd@gnu.org>
1491
1492 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
1493 Some x_set_* function expect to be called even if old and new
1494 value are equal.
1495
1496 * xdisp.c (build_desired_tool_bar_string): Accept zero
1497 tool_bar_button_relief.
1498
1499 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
1500
1501 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
1502
1503 * xterm.c (x_draw_bar_cursor): If the background color of the
1504 glyph under the cursor equals the frame's cursor color, use
1505 the glyph's foreground color for drawing the bar cursor.
1506
1507 * dispnew.c (direct_output_forward_char): Fix character/byte
1508 position comparison.
1509
1510 2001-11-15 Miles Bader <miles@gnu.org>
1511
1512 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
1513 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
1514 Update arguments to find_field.
1515 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
1516 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
1517 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
1518 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
1519
1520 2001-11-14 Richard M. Stallman <rms@gnu.org>
1521
1522 * editfns.c (Fpropertize): Allow call with 1 arg.
1523
1524 * dispextern.h (image_background, image_background_transparent):
1525 Conditionalize on HAVE_X_WINDOWS.
1526
1527 2001-11-13 Richard M. Stallman <rms@gnu.org>
1528
1529 * print.c (Fprin1_to_string): Doc fix.
1530
1531 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
1532
1533 * floatfns.c (Fceiling, Ffloor): Doc fixes.
1534
1535 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
1536
1537 * fileio.c (Ffile_accessible_directory_p): Doc fix.
1538
1539 * eval.c (syms_of_eval): Doc fix.
1540
1541 * coding.c (syms_of_coding): Doc fix.
1542
1543 * doc.c (Fsnarf_documentation): Doc fix.
1544
1545 * dispnew.c (syms_of_display): Doc fix.
1546
1547 * category.c (Fget_unused_category): Doc fix.
1548
1549 * buffer.c (syms_of_buffer): Doc fixes.
1550
1551 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
1552
1553 * print.c (prin1, print): Doc fix.
1554
1555 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1556
1557 * fontset.h: Remove declarations of variables
1558 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
1559
1560 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
1561 `Vclip_large_size_font'.
1562
1563 2001-11-13 Jason Rumney <jasonr@gnu.org>
1564
1565 * w32fns.c: Doc fix.
1566
1567 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1568
1569 * xfaces.c (Fface_attributes_as_vector): Doc fix.
1570
1571 * w32fns.c (Fx_synchronize): Reindent.
1572
1573 * fns.c: Doc fix.
1574
1575 * emacs.c: Doc fix.
1576
1577 * coding.c: Doc fix.
1578
1579 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
1580 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
1581 `new style' [w/`doc:' keyword].
1582
1583 * xmenu.c (x-popup-menu): Reindent.
1584 (x-popup-dialog): Likewise.
1585
1586 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
1587
1588 * xdisp.c (Fdump_tool_bar_row): Reindent.
1589
1590 * minibuf.c (Fminibuffer_complete_word): Reindent.
1591 (Fminibuffer_complete_and_exit): Likewise.
1592 (Fminibuffer_completion_help): Likewise.
1593 (Fminibuffer_message): Likewise.
1594
1595 * fns.c (Freverse): Reindent.
1596
1597 * eval.c (Fif): Reindent.
1598 (Fand): Likewise.
1599
1600 * editfns.c (Fuser_real_login_name): Reindent.
1601 (Finsert_buffer_substring): Likewise.
1602 (Fcompare_buffer_substrings): Likewise.
1603 (Fsubst_char_in_region): Likewise.
1604
1605 * dispnew.c (Fsit_for): Reindent.
1606 (Fframe_or_buffer_changed_p): Likewise.
1607 (Finternal_show_cursor_p): Likewise.
1608 (syms_of_display): Likewise.
1609
1610 * alloc.c (Flist): Reindent.
1611 (Fvector): Likewise.
1612
1613 2001-11-12 Richard M. Stallman <rms@gnu.org>
1614
1615 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
1616 LeaveNotify events. Only FocusIn and FocusOut do that now.
1617 (x_display_and_set_cursor): Do display hollow cursors in active
1618 minibuffer windows when they are not selected.
1619
1620 2001-11-12 Jason Rumney <jasonr@gnu.org>
1621
1622 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1623 * w32term.c: Change doc-string comments to `new style'.
1624 [w/`doc:' keyword]. Doc fixes.
1625
1626 * w32fns.c: Don't define max.
1627 (Fx_open_connection): Only execute once.
1628
1629 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1630
1631 * ccl.c: Change macros to use do-while block instead of if-else.
1632 Use braces to follow GNU Coding Standards.
1633
1634 2001-11-11 Richard M. Stallman <rms@gnu.org>
1635
1636 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
1637
1638 * lread.c (read_escape): Use end_of_file_error for reporting eof.
1639
1640 * insdel.c (replace_range): Use adjust_markers_for_replace
1641 instead of adjust_markers_for_delete and adjust_markers_for_insert.
1642
1643 * intervals.h: Declare set_text_properties and set_text_properties_1.
1644
1645 * textprop.c (set_text_properties_1): New subroutine
1646 broken out of set_text_properties.
1647 (set_text_properties): Use set_text_properties_1.
1648
1649 * intervals.c (graft_intervals_into_buffer):
1650 Use set_text_properties_1 to clear out properties.
1651
1652 * search.c (Freplace_match): Use replace_range to insert
1653 and delete. Don't request property inheritance from
1654 surrounding text.
1655
1656 2001-11-10 Jason Rumney <jasonr@gnu.org>
1657
1658 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
1659 vertical fonts. Allow them if face name is explicitly specified.
1660 Do not give up if we find a font that cannot be converted to an xlfd.
1661
1662 2001-11-10 Gerd Moellmann <gerd@gnu.org>
1663
1664 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
1665 instead of malloc/free.
1666
1667 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1668
1669 * xfaces.c (merge_face_vectors): Use braces to follow GNU
1670 Coding Standards.
1671 (Finternal_set_lisp_face_attribute): Likewise.
1672
1673 * buffer.c (Fbury_buffer): Likewise.
1674
1675 * indent.c (current_column_1): Remove unused variable `prev_col'.
1676
1677 * coding.c (encode_coding): Use precomputed value of `src'.
1678 (encode_coding): Remove unused variable `src_end'.
1679 (code_convert_region): Remove unused variables `count'.
1680
1681 2001-11-07 Jason Rumney <jasonr@gnu.org>
1682
1683 * w32term.c (x_display_and_set_cursor): Do not move system caret
1684 if cursor_glyph is NULL.
1685
1686 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1687
1688 * keymap.c (access_keymap): Fix compilation error.
1689
1690 2001-11-07 Miles Bader <miles@gnu.org>
1691
1692 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
1693
1694 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1695
1696 * intervals.c (graft_intervals_into_buffer):
1697 Remove #ifdef'd-out code.
1698 (graft_intervals_into_buffer): Remove unused variable `middle'.
1699
1700 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
1701 code (eval-current-buffer).
1702 Change doc-string comments to `new style' [w/`doc:' keyword].
1703
1704 2001-11-06 Richard M. Stallman <rms@gnu.org>
1705
1706 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
1707
1708 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
1709
1710 * lread.c (read1): Fix behavior with nested backquoting.
1711
1712 * keyboard.c (make_lispy_event): Check integerness and fix
1713 Lisp_Object/int mixup.
1714
1715 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1716
1717 * fns.c (copy_hash_table): Remove unused variable `v'.
1718
1719 * fontset.c (fontset_font_pattern): Remove unused variable
1720 `family_registry'.
1721
1722 * indent.c (current_column_1): Remove unused variable `prev_col'.
1723
1724 2001-11-05 Richard M. Stallman <rms@gnu.org>
1725
1726 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
1727
1728 * buffer.c (Fkill_buffer): Don't delete auto save file
1729 if buffer is modified.
1730
1731 2001-11-05 Andrew Innes <andrewi@gnu.org>
1732
1733 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
1734 CHECK_NUMBER_CDR.
1735
1736 2001-11-05 Richard M. Stallman <rms@gnu.org>
1737
1738 * unexelf.c (unexec): Minor changes; clean up comments.
1739
1740 2001-11-05 Sam Steingold <sds@gnu.org>
1741
1742 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
1743
1744 2001-11-05 Andreas Schwab <schwab@suse.de>
1745
1746 * sound.c (sound_perror): Save errno from being clobbered.
1747
1748 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
1749
1750 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
1751 the program image directly.
1752
1753 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1754
1755 * buffer.h (Fbuffer_local_value): Add prototype.
1756
1757 2001-11-04 Richard M. Stallman <rms@gnu.org>
1758
1759 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
1760 and CHECK_BUFFER.
1761
1762 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
1763 (record_char): Likewise.
1764
1765 * keyboard.c (make_lispy_event): Don't insist a drag event must
1766 move to a different buffer position. Instead, check for moving at
1767 least double_click_fuzz.
1768
1769 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
1770
1771 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
1772
1773 * indent.c (current_column_1, Fmove_to_column): Separate the code
1774 for display-table glyphs from the code buffer text, to fix
1775 bugs in the former.
1776
1777 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
1778
1779 * buffer.c (Fbuffer_local_value): New function.
1780 (syms_of_buffer): Defsubr it.
1781
1782 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
1783 value of `cursor-in-non-selected-windows'.
1784
1785 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
1786 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
1787 (syms_of_xdisp): Initialize it.
1788
1789 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1790
1791 * xfns.c (Fx_create_frame): Doc fix.
1792
1793 * coding.c: Change doc-string comments to `new style' [w/`doc:'
1794 keyword].
1795
1796 * eval.c (top_level_value, top_level_set): Remove commented and
1797 #ifdef'd-out code.
1798 (Fdefvar): Fix usage in doc-string.
1799
1800 2001-11-03 Richard M. Stallman <rms@gnu.org>
1801
1802 * xfns.c: Include unistd.h, if it exists.
1803
1804 * editfns.c: Move the include of ctype.h after unistd.h.
1805
1806 * gmalloc.c: Test BROKEN_PROTOTYPES.
1807
1808 2001-11-03 Ken Raeburn <raeburn@gnu.org>
1809
1810 * lisp.h (CHECK_STRING_CAR): New macro.
1811 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
1812 treating XCAR and XCDR as lvalues.
1813 (openp): Use CHECK_STRING_CAR.
1814 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
1815
1816 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
1817
1818 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
1819 (SIGMASKTYPE): Define.
1820
1821 * syssignal.h (sigunblock): Don't define if already defined.
1822
1823 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1824
1825 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
1826 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1827 Fix typos in comments.
1828
1829 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
1830 and #ifdef'd-out code.
1831 Fix and reindent comments.
1832
1833 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
1834
1835 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
1836 argument `i' in macros.
1837
1838 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
1839 `i' in macros.
1840
1841 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
1842 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
1843 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
1844 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
1845 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
1846 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
1847 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
1848 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
1849 in macros.
1850
1851 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
1852 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
1853 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
1854 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
1855 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
1856 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
1857 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
1858 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
1859 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
1860 (remove unused second argument).
1861
1862 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
1863
1864 * syntax.c (describe_syntax): New wrapper.
1865 (Finternal_describe_syntax_value): Rename from describe_syntax.
1866 Don't insert space at front and \n at the end.
1867 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
1868
1869 * regex.c (re_wctype): Try to fix some warnings.
1870 (regcomp, regexec): Don't forget the __restrict.
1871
1872 2001-11-02 Richard M. Stallman <rms@gnu.org>
1873
1874 * textprop.c (Fget_char_property): Doc fix.
1875
1876 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1877
1878 * process.c (Fstart_process): Add usage to doc-string.
1879
1880 * data.c (Fsetq_default): Ditto.
1881
1882 * callint.c (Finteractive): Ditto.
1883
1884 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
1885
1886 * macros.c: Don't include keymap.h any more.
1887
1888 2001-11-01 Richard M. Stallman <rms@gnu.org>
1889
1890 * data.c (Fmake_local_variable): Doc fix.
1891
1892 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
1893 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
1894
1895 * keymap.c (Fdescribe_buffer_bindings): Print character property
1896 bindings along with or instead of the buffer local map.
1897 Make the overriding maps override what they should.
1898
1899 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1900
1901 * window.c (grow_mini_window): Fix typo in comment.
1902
1903 2001-11-01 Gerd Moellmann <gerd@gnu.org>
1904
1905 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
1906 (XTset_vertical_scroll_bar): Likewise.
1907
1908 * xfns.c (x_build_heuristic_mask): Use four_corners_best
1909 instead of IMAGE_BACKGROUND.
1910
1911 * xfns.c (four_corners_best): Reindent.
1912
1913 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
1914 Handle :box so that it is possible to specify sexprs.
1915
1916 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1917
1918 * xfaces.c (Finternal_merge_in_global_face): Reindent.
1919 (Fface_font): Ditto.
1920 (Finternal_set_alternative_font_registry_alist): Ditto.
1921 (Ftty_suppress_bold_inverse_default_colors): Ditto.
1922
1923 * xfns.c (x-get-resource): Reindent.
1924
1925 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
1926
1927 * s/hpux11.h: New file.
1928
1929 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1930
1931 * emacs.c (USAGE1): Show command line option --no-window-system
1932 instead of --no-windows in usage.
1933 (standard_args): Rename --no-windows to --no-window-system.
1934 (bug_reporting_address): Follow Emacs coding conventions.
1935
1936 * eval.c (Fcommandp): Doc fix.
1937 Change doc-string comments to `new style' [w/`doc:' keyword].
1938
1939 * frame.c (Fframe_live_p): Doc fix.
1940
1941 * buffer.c (selective-display-ellipses): Doc fix.
1942
1943 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1944
1945 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
1946
1947 * xfaces.c (realize_x_face): If C is not a single-byte character,
1948 set the face's colors_copied_bitwise_p instead of the defaulted_p
1949 members which have a different meaning.
1950 (free_face_colors): Do nothing for a face whose colors have been
1951 copied bitwise.
1952
1953 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
1954
1955 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1956
1957 * marker.c, mocklisp.c: Change doc-string comments to `new style'
1958 [w/`doc:' keyword].
1959
1960 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1961
1962 * fns.c (require_unwind): Return Lisp_Object.
1963
1964 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1965
1966 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
1967 (last-input-char): Revert doc-string to be the same as the
1968 doc-string of `last-input-event'.
1969
1970 * xdisp.c: Fix typos in comments.
1971
1972 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1973
1974 * window.c (grow_mini_window): Handle case that the root
1975 window is already smaller than the nominal mininum height.
1976
1977 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
1978
1979 * emacs.c (main): Don't call keys_of_macros any more.
1980
1981 * lisp.h (keys_of_macros): Remove.
1982
1983 * macros.c (keys_of_macros): Remove.
1984
1985 * xfaces.c (Fface_attribute_relative_p): Declare args.
1986
1987 2001-10-30 Jason Rumney <jasonr@gnu.org>
1988
1989 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
1990 (enum_font_cb2): Ignore fonts with vertical orientation.
1991
1992 2001-10-30 Richard M. Stallman <rms@gnu.org>
1993
1994 * keyboard.c (Finput_pending_p): Doc fix.
1995
1996 2001-10-30 Gerd Moellmann <gerd@gnu.org>
1997
1998 * xterm.c (x_after_update_window_line): Don't run the code
1999 clearing in borders for rows whose visible height is 0.
2000
2001 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
2002 resized_p flag is set. If not set, use the much less flickering
2003 method previously used.
2004
2005 * dispnew.c (change_frame_size_1): Set frame's resized_p.
2006
2007 * frame.h (struct frame) <resized_p>: New member.
2008
2009 * lread.c (to_multibyte): Ensure read_buffer is at least twice
2010 as large as the number of bytes to convert.
2011
2012 * lread.c (to_multibyte): New function.
2013 (read1): Use it.
2014
2015 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
2016
2017 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
2018
2019 2001-10-30 Gerd Moellmann <gerd@gnu.org>
2020
2021 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
2022 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
2023 if the row's fill_line_p is set and drawing the last glyph with
2024 DRAW_IMAGE_{RAISED,SUNKEN}.
2025
2026 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
2027
2028 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
2029
2030 * xmenu.c: Include coding.h and charset.h.
2031 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
2032 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
2033 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
2034 Explicitly set wv->help. Use `TRUE' rather than `True'.
2035 (menu_help_callback): Use empty_string.
2036
2037 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
2038 (Fx_popup_dialog): Explicitly init f.
2039 (w32_menu_display_help): Use empty_string.
2040
2041 2001-10-29 Richard M. Stallman <rms@gnu.org>
2042
2043 * fns.c (Frequire): Detect recursive try to require the same
2044 feature 3 or more levels deep, and get error.
2045 (require_unwind): New subroutine.
2046 (require_nesting_list): New variable.
2047 (syms_of_fns): Init and staticpro it.
2048
2049 * print.c (print_object): Clarify indication of insertion type.
2050
2051 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
2052
2053 * coding.c (syms_of_coding): Document that locale-coding-system is
2054 used for decoding input on X.
2055
2056 * window.c (Fscroll_left, Fscroll_right): Doc fix.
2057
2058 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2059
2060 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
2061 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
2062
2063 2001-10-29 Gerd Moellmann <gerd@gnu.org>
2064
2065 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
2066 use NO_CURSOR if cursor_in_non_selected_windows is false.
2067
2068 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
2069 the slant attribute if FRAME is t.
2070
2071 * xfns.c (x_set_internal_border_width): Set frame garbaged
2072 when X window doesn't exist yet.
2073
2074 * xterm.c (x_after_update_window_line): Clear internal border
2075 in different circumstances.
2076
2077 * xterm.c (XTread_socket) <KeyPress>: Don't use
2078 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
2079 <handa@etl.go.jp>.
2080
2081 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
2082
2083 * m/ibms390.h: New file. From Adam Thornton
2084 <athornton@sinenomine.net>.
2085
2086 2001-10-28 Gerd Moellmann <gerd@gnu.org>
2087
2088 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
2089
2090 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
2091 a loop counter.
2092
2093 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2094
2095 * emacs.c: Use argv[0] instead of emacs when -t was specified.
2096
2097 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
2098 keyword].
2099 Fix typos in comments.
2100
2101 * emacs.c (bug_reporting_address): New function.
2102 Use it when displaying usage message.
2103
2104 * minibuf.c (read_minibuf): Remove unused external declaration of
2105 variable `Qread_only'.
2106
2107 * keymap.c (access_keymap): Remove unused variable `charset'.
2108
2109 2001-10-28 Miles Bader <miles@gnu.org>
2110
2111 * xfaces.c (merge_face_heights): Handle TO being relative as well.
2112 Remove #ifdef'd-out code.
2113 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
2114 (syms_of_xfaces): Initialize them.
2115
2116 2001-10-27 Jason Rumney <jasonr@gnu.org>
2117
2118 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
2119 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
2120 position using the system caret.
2121
2122 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
2123 (w32_system_caret_height, w32_system_caret_x)
2124 (w32_system_caret_y): New variables for tracking system caret.
2125 (w32_initialize): Initialize them.
2126 (x_display_and_set_cursor): Make system caret follow the active cursor.
2127
2128 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
2129 New messages types.
2130
2131 * w32term.c (note_mouse_highlight): Clear old help_echo.
2132
2133 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2134
2135 * xterm.c: Fix typo in a comment.
2136
2137 * emacs.c: Fix typos in comments.
2138 Remove unnecessary spaces.
2139 Change doc-string comments to `new style' [w/`doc:' keyword].
2140 (USAGE2): Fix typos in usage string.
2141
2142 * xterm.c: Fix typo in a comment.
2143
2144 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
2145 emacs.c.
2146
2147 2001-10-27 Gerd Moellmann <gerd@gnu.org>
2148
2149 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
2150 instead of 1/2 line_height in the heuristic for skipping
2151 farther backward when target_y was not reached.
2152
2153 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
2154 Display errno only if non-zero.
2155 (sound_warning): New function.
2156 (vox_configure): Don't treat failing to set sample rate as error.
2157 (various places): Improve error messages.
2158
2159 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
2160
2161 * fileio.c (Faccess_file): Run the argument filename through
2162 Fexpand_file_name, before using it.
2163
2164 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
2165 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
2166
2167 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2168
2169 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
2170
2171 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2172 Fix clearing in the case of scroll bars on the right.
2173
2174 2001-10-26 Juanma Barranquero <lektu@terra.es>
2175
2176 * w32gui.h (XImage): Add a dummy typedef.
2177
2178 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2179
2180 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
2181
2182 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
2183
2184 * frame.c (Fframe_parameter): Fix last change.
2185
2186 * fileio.c: Revert last change (which removed old commented-out
2187 version of expand-file-name). Add a comment that explains why
2188 this old version should not be removed.
2189
2190 2001-10-25 Gerd Moellmann <gerd@gnu.org>
2191
2192 * frame.c (Fframe_parameter): Fix a bug whereby some
2193 ``artificial'' frame parameters, like `minibuffer' were not
2194 obtained by calling Fframe_parameters.
2195
2196 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
2197 cursor differently.
2198
2199 * xdisp.c (move_it_vertically_backward): Compute line height
2200 differently. Add heuristic to try to be more compatible to 20.x.
2201
2202 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
2203
2204 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
2205
2206 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
2207 boolean.
2208
2209 2001-10-25 Miles Bader <miles@gnu.org>
2210
2211 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
2212 BG is a pointer to a structure, not a structure.
2213 (gif_format, png_format): Add missing commas.
2214
2215 2001-10-24 Richard M. Stallman <rms@gnu.org>
2216
2217 * xfaces.c (Fface_attributes_as_vector): New function.
2218 (syms_of_xfaces): Defsubr it.
2219
2220 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2221
2222 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
2223 variable `area'.
2224
2225 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2226
2227 * search.c (scan_newline): Remove unused variable `selective_display'.
2228
2229 2001-10-25 Miles Bader <miles@gnu.org>
2230
2231 * dispextern.h (struct image): Add `background',
2232 `background_valid', and `background_transparent' fields.
2233 (image_background, image_background_transparent): New declarations.
2234 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
2235 * xfns.c (image_background, image_background_transparent)
2236 (four_corners_best): New functions.
2237 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2238 (gs_format): Add `:background' entry.
2239 (lookup_image): Set IMG's background color if specified.
2240 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2241 when appropriate.
2242 (x_clear_image_1): Reset `background_valid' and
2243 `background_transparent_valid' fields.
2244 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2245 calculating it here. Set IMG's background_transparent field.
2246 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2247 (enum png_keyword_index): Add PNG_BACKGROUND.
2248 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2249 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2250 (enum gif_keyword_index): Add GIF_BACKGROUND.
2251 (enum gs_keyword_index): Add GS_BACKGROUND.
2252 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2253 Pre-calculate image background color where necessary.
2254 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2255 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2256 color to use for image glyph reliefs.
2257
2258 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2259
2260 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
2261 in full-width rows.
2262
2263 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2264 Fix clearing of area not covered by scroll bar.
2265
2266 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2267
2268 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
2269 and `real_start'.
2270 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2271 (glyph_rect): Remove unused variable `area'.
2272
2273 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2274
2275 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
2276
2277 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
2278 (row_containing_pos): Take additional argument DY.
2279 Treat rows ending in middle of char differently.
2280 (display_line): Handle tabs on window systems differently.
2281
2282 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
2283 with additional argument.
2284
2285 * dispextern.h (row_containing_pos): Adjust prototype.
2286
2287 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
2288 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
2289 (try_window_id, try_window_reusing_current_matrix)
2290 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
2291 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
2292
2293 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2294
2295 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
2296 gnuemacs).
2297 (HAVE_BOXES): Fix typo in comment.
2298 (push_menu_pane): Fix typo in comment.
2299
2300 * xdisp.c: (display_prop_string_p): Remove unused local declaration
2301 of `Qwhen'.
2302 (single_display_prop_string_p): Remove unused local declarations
2303 of `Qwhen' and `Qmargin'.
2304 (string_buffer_position): Remove unused variable `around'.
2305 (store_frame_title): Remove unused variable `width'.
2306
2307 * window.c: Don't define max.
2308 (coordinates_in_window): Remove unused variable `uy'.
2309
2310 * widget.c: Don't define max.
2311
2312 * process.c: Don't define max.
2313 (create_process): Remove unused variable `buffer'.
2314
2315 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2316
2317 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
2318
2319 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
2320
2321 * xfaces.c (Finternal_set_lisp_face_attribute)
2322 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
2323 frame is on a windowed display.
2324
2325 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2326
2327 * dispnew.c (sync_window_with_frame_matrix_rows):
2328 Fix handling of windows which aren't full-width, fix handling
2329 of marginal areas.
2330
2331 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
2332
2333 2001-10-23 Andreas Schwab <schwab@suse.de>
2334
2335 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
2336 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
2337
2338 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2339
2340 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
2341 REAL_END. Notice if cursor gets overwritten.
2342 (notice_overwritten_cursor): Take X positions as parameters.
2343 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
2344 around call to x_draw_glyphs.
2345
2346 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2347
2348 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
2349 instead of C) and usage.
2350
2351 * editfns.c (char-to-string): Fix argument names (use CHAR instead
2352 of C) and usage.
2353
2354 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
2355 `left', `max_width' and `max_height'.
2356
2357 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2358
2359 * xdisp.c (display_line): For a tab continued to the next line,
2360 set row's ends_in_middle_of_char_p.
2361
2362 2001-10-22 Gerd Moellmann <gerd@gnu.org>
2363
2364 * xdisp.c (display_line): Fix computation of continuation lines
2365 width for TABs.
2366
2367 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2368
2369 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
2370 `Qlaplace'.
2371
2372 * fileio.c: Remove unused code.
2373
2374 2001-10-22 Miles Bader <miles@gnu.org>
2375
2376 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2377 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
2378 Remove `DOC_STRINGS_IN_COMMENTS' cases.
2379
2380 2001-10-21 Jason Rumney <jasonr@gnu.org>
2381
2382 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
2383
2384 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
2385
2386 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
2387 (Finsert_string): Avoid the multi-line string literals warning.
2388
2389 2001-10-22 Miles Bader <miles@gnu.org>
2390
2391 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
2392 (Fdocumentation): Don't use it.
2393 (syms_of_doc): Don't initialize it.
2394
2395 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
2396 * print.c (Fwith_output_to_temp_buffer): Likewise.
2397 * window.c (Fsave_window_excursion): Likewise.
2398 * editfns.c (Fsave_excursion, Fsave_current_buffer)
2399 (Fsave_restriction): Likewise.
2400 * eval.c (Frun_hooks, Frun_hook_with_args)
2401 (Frun_hook_with_args_until_failure)
2402 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
2403 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
2404 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
2405 (Funwind_protect, Fcondition_case): Likewise.
2406 * coding.c (Ffind_operation_coding_system): Likewise.
2407 * keyboard.c (Ftrack_mouse): Likewise.
2408
2409 2001-10-21 Miles Bader <miles@gnu.org>
2410
2411 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
2412 (Fmake_hash_table): Add usage: string to doc string.
2413 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
2414 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
2415 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
2416 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
2417 (Fml_prefix_argument_loop): Likewise.
2418
2419 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2420
2421 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
2422
2423 * sysdep.c (init_sys_modes): Change doc-string comments to `new
2424 style' [w/`doc:' keyword].
2425
2426 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
2427 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
2428 comments to `new style' [w/`doc:' keyword].
2429
2430 2001-10-21 Jason Rumney <jasonr@gnu.org>
2431
2432 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
2433
2434 * w32term.c (remember_mouse_glyph): New function.
2435 (w32_mouse_position): Use it.
2436 (note_mouse_movement): If the mouse moved off the glyph, remember
2437 its new position.
2438
2439 * w32term.h (struct w32_output): Correct spelling of x_compatible.
2440 (w32_display_info): Add mouse_face_overlay.
2441
2442 * w32term.c (notice_overwritten_cursor): Renamed from
2443 note_overwritten_text_cursor. Rewritten to take glyph widths into
2444 account.
2445 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2446 (fast_find_string_pos): New function.
2447 (fast_find_position): Return the correct vpos. Add parameter
2448 STOP. In the final row, stop before glyphs having STOP as object.
2449 Don't consider glyphs that are not from a buffer.
2450 (fast_find_position) [0]: Add a presumably more correct version
2451 for after 21.1.
2452 (expose_window_tree, expose_frame): Don't compute intersections here.
2453 (expose_window): Do it here instead.
2454 (expose_window_tree, expose_window, expose_line): Return 1 when
2455 overwriting mouse-face.
2456 (expose_window): If W is the window currently being updated, mark
2457 the frame garbaged.
2458 (expose_frame): If mouse-face was overwritten, redo it.
2459 (x_use_underline_position_properties): New variable.
2460 (syms_of_xterm): DEFVAR_BOOL it.
2461 (x_draw_glyph_string): Add comment to use it in future.
2462 (x_draw_glyph_string): Restore clipping after drawing box.
2463 Fix a computation of the underline position.
2464 (w32_get_glyph_string_clip_rect): Minor cleanup.
2465 (x_fill_stretch_glyph_string): Remove an assertion.
2466 (x_produce_glyphs): Don't convert multibyte characters
2467 to unibyte characters in unibyte buffers.
2468 (cursor_in_mouse_face_p): New function.
2469 (x_draw_stretch_glyph_string): Use it to choose a different GC
2470 when drawing a cursor within highlighted text. Don't draw
2471 background again if it has already been drawn.
2472 (x_draw_glyph_string_box): Don't draw a full-width
2473 box just because the glyph row's full_width_p flag is set.
2474 (x_draw_glyphs): Fix computation of rightmost x for
2475 full-width rows.
2476 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2477 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
2478 change bottom shadow accordingly. Some cleanup.
2479 (x_update_window_end): Handle overwritten mouse face
2480 also for tool bar windows.
2481 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2482 DRAW is DRAW_IMAGE_RAISED.
2483 (clear_mouse_face): Return 1 if text with mouse face was
2484 actually redrawn. Make the function static. Reset
2485 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
2486 optimize away highlighting if we pass over that same overlay again.
2487 (note_mouse_highlight): Call mouse_face_overlay_overlaps
2488 to detect a case where we have to highlight a different region
2489 despite not having left the currently highlighted region.
2490 Set mouse_face_overlay in the x_display_info. Avoid changing the
2491 mouse pointer shape when show_mouse_face has already done it, or
2492 there is no need. Handle mouse-face and help-echo in strings.
2493 (glyph_rect): New function.
2494 (w32_mouse_position): Use it to raise the threshold for mouse
2495 movement event generation.
2496 (w32_initialize_display_info): Initialize the x_display_info's
2497 mouse_face_overlay.
2498 (w32_set_vertical_scroll_bar): Don't clear a zero height
2499 or width area.
2500 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2501 a widget to zero height.
2502
2503 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
2504 Protect unibyte strings created by replacing their multibyte
2505 equivalents in menu_items.
2506 (w32_menu_show): Don't overwrite an item's name with its key
2507 description in case the description is a multibyte string.
2508 (single_submenu): Some cleanup.
2509
2510 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
2511 (postprocess_image): New function.
2512 (lookup_image): Call it for all image types except PostScript.
2513 (x_kill_gs_process): Call postprocess_image.
2514 (tiff_error_handler, tiff_warning_handler): New functions.
2515 (tiff_load): Install them as handlers.
2516 (x_kill_gs_process): Recognize if someone has cleared the image
2517 cache under us.
2518 (valid_image_p): Protect better against invalid image
2519 specifications. Previous code could signal an error.
2520 (Fx_hide_tip, Fshow_tip): Doc fix.
2521 (Fv_max_tooltip_size): New variable.
2522 (syns_of_xfns): DEFVAR_LISP it.
2523 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
2524 window buffer to *tip* right after creating the frame. Set frame's
2525 window_width. Use a maximum tooltip size specified by
2526 Vx_max_tooltip_size, if that has valid contents.
2527 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2528 Make sure the tooltip is completely visible.
2529 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2530 (Fx_create_frame): Adjust the frame's height for presence
2531 of the tool bar before calling x_figure_window_size.
2532 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
2533 when the window gets smaller.
2534 (x_set_foreground_color): Set frame's cursor_pixel.
2535 (x_set_foreground_color, x_set_background_color): Cleaned up.
2536 (x_set_font): Handle case of x_new_fontset returning the same name
2537 as before, although there was a change in fontsets.
2538
2539 2001-10-21 Miles Bader <miles@gnu.org>
2540
2541 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
2542 (Flogxor): Add usage: string to doc string.
2543 * charset.c (Fstring): Likewise.
2544 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
2545 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
2546
2547 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2548
2549 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
2550
2551 * alloc.c: Reindent DEFUNs with doc: keywords.
2552
2553 * abbrev.c (Finsert_abbrev_table_description): Reindent.
2554
2555 * frame.c: Change doc-string comments to `new style' [w/`doc:'
2556 keyword].
2557
2558 2001-10-20 Gerd Moellmann <gerd@gnu.org>
2559
2560 * (Version 21.1 released.)
2561
2562 2001-10-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2563
2564 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
2565
2566 * xdisp.c (invisible_text_between_p): Put prototype inside #if
2567 0 because unused.
2568
2569 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
2570 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
2571 Change doc-string comments to `new style' [w/`doc:' keyword].
2572
2573 2001-10-20 Miles Bader <miles@gnu.org>
2574
2575 The following changes remove the glyph_row `inverse_p' field,
2576 which is never set anymore, due to other changes:
2577
2578 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
2579 (reassert_line_highlight, change_line_highlight): Declarations removed.
2580 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
2581 (line_hash_code, row_equal_p, fake_current_matrices)
2582 (build_frame_matrix_from_leaf_window, update_frame_line)
2583 (update_frame_line, update_frame_line, update_frame_line):
2584 Don't use `inverse_p' field.
2585 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
2586 change_line_highlight_hook.
2587 (XTreassert_line_highlight, x_change_line_highlight):
2588 Functions removed.
2589 (x_fix_overlapping_area, x_write_glyphs, expose_area)
2590 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2591 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
2592 `inverse_p' field.
2593 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
2594 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2595 (w32_reassert_line_highlight, x_change_line_highlight):
2596 Functions removed.
2597 * w32console.c (reassert_line_highlight, change_line_highlight):
2598 Functions removed.
2599 (initialize_w32_display): Don't set reassert_line_highlight_hook
2600 or change_line_highlight_hook.
2601 (hl_mode): Function removed.
2602 (reset_terminal_modes, set_terminal_modes, update_begin)
2603 (update_end, w32_face_attributes, initialize_w32_display):
2604 (clear_frame, ins_del_lines): Don't call it.
2605 * termhooks.h (reassert_line_highlight_hook)
2606 (change_line_highlight_hook): Declarations removed.
2607 * term.c (reassert_line_highlight_hook)
2608 (change_line_highlight_hook): Variables removed.
2609 (reassert_line_highlight, change_line_highlight): Functions removed.
2610 * msdos.c (IT_reassert_line_highlight)
2611 (IT_change_line_highlight): Functions removed.
2612 (internal_terminal_init): Don't set reassert_line_highlight_hook
2613 or change_line_highlight_hook.
2614 (highlight): Variable removed.
2615 (IT_set_face, IT_update_begin, IT_update_end)
2616 (IT_set_terminal_modes): Don't set or use it.
2617
2618 The following changes remove inverse-video support for terminals
2619 that use a `magic cookie' standout mode. Due to changes in the
2620 way mode-lines are displayed, such support no longer works
2621 anyway, and it's probable that almost no one uses such terminals
2622 anymore:
2623
2624 * term.c (standout_requested): Variable removed.
2625 (update_end, highlight_if_desired): Don't use it.
2626 (chars_wasted, copybuf): Variables removed.
2627 (write_standout_marker): Function removed.
2628 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
2629 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
2630 Don't use `chars_wasted' or `copybuf'.
2631 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
2632 Set `costs_set' to true.
2633 (cursor_to, clear_end_of_line): Test `costs_set' instead of
2634 `chars_wasted'.
2635 (clear_end_of_line): Function removed.
2636 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
2637 (clear_to_end): Call `clear_end_of_line' instead of
2638 `clear_end_of_line_raw'.
2639 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
2640 (term_init): Don't set them.
2641 Turn off any standout/underline modes that require magic cookies.
2642 (ins_del_lines, highlight_if_desired, background_highlight)
2643 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
2644 Remove special processing for magic-cookie standout modes.
2645 (turn_off_face, turn_on_face): Remove special processing for
2646 underline magic-cookie glitch.
2647
2648 2001-10-19 Richard M. Stallman <rms@gnu.org>
2649
2650 * eval.c (syms_of_eval): Doc fixes.
2651
2652 2001-10-19 Gerd Moellmann <gerd@gnu.org>
2653
2654 * xdisp.c (redisplay_internal): Don't clear echo area if the
2655 mini-window is selected.
2656
2657 2001-10-19 Miles Bader <miles@gnu.org>
2658
2659 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
2660 doesn't take precedence if the affected property's value is nil.
2661
2662 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
2663
2664 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
2665 with fields and suggest using `forward-line' to avoid them.
2666 * editfns.c (Fline_beginning_position, Fline_end_position):
2667 Clarify documentation.
2668
2669 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
2670
2671 * keymap.c (current_minor_maps): `override' only shadows its
2672 correspondent in minor-mode-map-alist, not the whole tail.
2673
2674 2001-10-18 Andrew Innes <andrewi@gnu.org>
2675
2676 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
2677 optimization. The fontp->encoding array was not being initialized
2678 correctly when compiled with optimizations by MSVC.
2679
2680 2001-10-18 Gerd Moellmann <gerd@gnu.org>
2681
2682 * xdisp.c (display_line): Indicate empty lines in active mini-window.
2683
2684 2001-10-17 Andrew Innes <andrewi@gnu.org>
2685
2686 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
2687
2688 * w32fns.c (w32_load_system_font): Cache codepage for font, in
2689 font_info.charset field.
2690
2691 * w32term.c (w32_encode_char): Get cached codepage from font_info,
2692 rather than working it out by calling w32_codepage_for_font for
2693 every glyph.
2694
2695 2001-10-17 Andrew Innes <andrewi@gnu.org>
2696
2697 * w32term.c (w32_read_socket): Determine clipping rectangle for
2698 the entire frame, including areas covered by scrollbars and the
2699 menubar. This avoids internal arguments about whether a frame is
2700 fully obscured or not.
2701
2702 2001-10-17 Gerd Moellmann <gerd@gnu.org>
2703
2704 * xdisp.c (try_window_id): Undo last change. Give up if
2705 window ends in strings.
2706
2707 * xdisp.c (try_window_id): Don't display lines after the window
2708 end if the rest of the window after the window end was already blank.
2709
2710 * xdisp.c (try_window_id): Remove code that was only there
2711 for the release of 21.1.
2712
2713 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
2714
2715 2001-10-17 Miles Bader <miles@gnu.org>
2716
2717 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
2718 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
2719 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
2720 Change doc-string comments to `new style' [w/`doc:' keyword].
2721 (DOC_STRINGS_IN_COMMENTS): Macro removed.
2722 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
2723 out make-docfile.
2724
2725 2001-10-16 Miles Bader <miles@gnu.org>
2726
2727 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
2728
2729 2001-10-16 Gerd Moellmann <gerd@gnu.org>
2730
2731 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
2732 *scratch*.
2733
2734 2001-10-16 Ken Raeburn <raeburn@gnu.org>
2735
2736 Avoid the assumption that car and cdr slots of cons cells are
2737 addressable lvalues; this allows for easier experimentation with
2738 other lisp implementations that may not permit such accesses for
2739 various reasons. Not quite complete -- buffer.c still needs some
2740 work, and w32/mac files need rechecking -- so compile-time
2741 enforcement is left disabled for now.
2742
2743 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
2744 gcc with a union-based Lisp object rep. Redefine as no-op for now.
2745 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
2746 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
2747 (XSETCAR, XSETCDR): New macros.
2748 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
2749 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
2750 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
2751 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
2752 XSETCDR.
2753 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
2754 * buffer.c (record_buffer, Fbury_buffer)
2755 (swap_out_buffer_local_variables, recenter_overlay_lists)
2756 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
2757 fields of a cons cell respectively.
2758 * callint.c (quotify_args, Fcall_interactively): Likewise.
2759 * ccl.c (Fregister_code_conversion_map): Likewise.
2760 * coding.c (detect_coding_system): Likewise.
2761 * composite.c (get_composition_id, make_composition_value_copy):
2762 Likewise.
2763 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
2764 (swap_in_symval_forwarding, set_internal, Fset_default)
2765 (Fmake_variable_buffer_local, Fmake_local_variable)
2766 (Fmake_variable_frame_local): Likewise.
2767 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
2768 * keymap.c (Fset_keymap_parent, store_in_keymap)
2769 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
2770 * minibuf.c (get_minibuffer): Likewise.
2771 * search.c (Fmatch_data): Likewise.
2772 * textprop.c (extend_property_ranges): Likewise.
2773 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
2774 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
2775 Likewise.
2776 * w32term.c (x_delete_display): Likewise.
2777 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
2778 Likewise.
2779 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
2780 * doc.c (store_function_docstring): Use XSETCARFASTINT.
2781 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
2782 (Fread_file_name): Use XSETCAR.
2783 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
2784 CHECK_NUMBER_CDR.
2785 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
2786 * frame.c (Fmake_terminal_frame): Use XSETCDR.
2787 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
2788 CHECK_NUMBER_CDR.
2789 * keyboard.c (read_char): Alter list traversal to avoid taking the
2790 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
2791 (parse_menu_item): Use XSETCAR and XSETCDR.
2792 (reach_char_x_menu_prompt): Use XSETCAR.
2793 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
2794 (Fcommand_execute): Use XSETCDR.
2795 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
2796 (openp): Change list traversal to avoid using XCAR as lvalue.
2797 (read_list): Use XSETCDR.
2798 * process.c (wait_reading_process_input): Change wait_for_cell
2799 handling to avoid taking addresses of cons cell slots.
2800 * xselect.c (x_own_selection, x_handle_selection_clear)
2801 (x_clear_frame_selections): Use XSETCDR.
2802 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
2803 (x_handle_property_notify, x_get_foreign_selection)
2804 (x_handle_selection_notify): Use XSETCAR.
2805
2806 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2807
2808 * buffer.c: Put doc strings in comments.
2809
2810 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
2811
2812 2001-10-15 Sam Steingold <sds@gnu.org>
2813
2814 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
2815
2816 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2817
2818 * process.c (process-inherit-coding-system-flag)
2819 (get-buffer-process): Do not confuse make-docfile with doc strings
2820 in comment.
2821
2822 * editfns.c (Fchar_to_string): Make doc string consistent with
2823 arguments. Put doc strings in comments.
2824
2825 * abbrev.c, minibuf.c: Put doc strings in comments.
2826
2827 2001-10-15 Gerd Moellmann <gerd@gnu.org>
2828
2829 * window.c (window_loop): Don't check for Fother_buffer returning nil.
2830
2831 * window.c (select_window_1): Unfreeze window start. Remove a
2832 doubled test for WINDOW being live.
2833
2834 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2835
2836 * fns.c (Fmapconcat): Fix typo in a doc string.
2837
2838 * dispnew.c (Fsleep_for): Fix typo in a doc string.
2839
2840 2001-10-15 Gerd Moellmann <gerd@gnu.org>
2841
2842 * xterm.c (x_draw_glyph_string): Restore clipping after
2843 drawing box.
2844
2845 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2846
2847 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
2848
2849 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
2850
2851 * indent.c (skip_invisible): Use new retval of
2852 TEXT_PROP_MEANS_INVISIBLE.
2853
2854 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
2855 If a parent is reached and noinherit is set, exit immediately.
2856 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
2857
2858 * s/ms-w32.h (EXEC_SUFFIXES):
2859 * s/msdos.h (EXEC_SUFFIXES):
2860 * process.h (EXEC_SUFFIXES): Remove.
2861
2862 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
2863 (decode_suffixes): Remove.
2864
2865 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
2866 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
2867 (invisible_ellipsis_p): Remove.
2868
2869 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
2870 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
2871 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
2872 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
2873 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
2874
2875 2001-10-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2876
2877 * lisp.h (Ftop_level): Add prototype.
2878
2879 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
2880 (XTread_socket): Improve style of comments to follow other
2881 comments.
2882
2883 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
2884 is already prototyped in included lisp.h).
2885
2886 * frame.c (Fset_mouse_position): Improve style of comment to
2887 follow other comments.
2888 (Fset_mouse_pixel_position): Improve style of comment to follow
2889 other comments.
2890 (Fmake_frame_visible): Doc fix and typo in comment.
2891 (Fmake_frame_invisible): Doc fix and typo in comment.
2892 (Ficonify_frame): Fix typo in comment.
2893
2894 2001-10-14 Gerd Moellmann <gerd@gnu.org>
2895
2896 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
2897 * term.c, alloc.c: Put doc strings in comments.
2898
2899 2001-10-13 Gerd Moellmann <gerd@gnu.org>
2900
2901 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
2902 Provide definitions for doc strings in comments.
2903
2904 * fns.c: Put doc strings in comments.
2905
2906 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
2907
2908 * dired.c (file_name_completion): Ignore a candidate directory if
2909 it matches an element in completion-ignored-extensions that ends
2910 in a slash.
2911 (syms_of_dired) <completion-ignored-extensions>: Mention the above
2912 feature in the doc string.
2913 (Ffile_name_completion): Ditto.
2914
2915 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
2916
2917 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
2918
2919 * xfns.c (syms_of_xfns): Update calls to Fprovide.
2920
2921 * lisp.h (Fprovide): Update prototype.
2922 (Ffeaturep, invisible_p): Remove.
2923
2924 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
2925 (DOLIST, LOOP_PROPVAL): New macros.
2926 (invisible_p, invisible_ellipsis_p): Use them.
2927 (invisible_noellipsis_p): New function.
2928 (syms_of_xdisp): Use empty_string.
2929
2930 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
2931
2932 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
2933 (syms_of_lread) <Vafter_load_alist>: Update docstring.
2934
2935 * print.c (Fwith_output_to_temp_buffer): Align with
2936 internal_with_output_to_temp_buffer.
2937 (print_preprocess): Use traverse_intervals_noorder.
2938 (print_object): Update call to traverse_intervals.
2939
2940 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
2941 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
2942
2943 * intervals.c (traverse_intervals_noorder): New function.
2944 (search_for_interval, count_intervals): Use it.
2945 (traverse_intervals): Use less stack space and drop `depth' arg.
2946
2947 * fns.c (Ffeaturep): Add new `subfeature' arg.
2948 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
2949 (Qsubfeatures): New var.
2950 (syms_of_fns): Initialize it.
2951
2952 * keymap.c (Fkey_description): Use empty_string.
2953 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
2954 (syms_of_keymap): Setup inheritance between maps.
2955 Don't export Sdescribe_bindings_internal any more.
2956
2957 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
2958
2959 2001-10-12 Gerd Moellmann <gerd@gnu.org>
2960
2961 * xterm.c (notice_overwritten_cursor): Renamed from
2962 note_overwritten_text_cursor. Rewritten to take glyph widths into
2963 account.
2964
2965 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
2966
2967 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
2968 multi-line strings without a trailing "\n\".
2969
2970 2001-10-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2971
2972 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
2973 defined.
2974
2975 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
2976
2977 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
2978
2979 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
2980 * w32proc.c (sys_spawnve):
2981 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
2982 * w32.c (check_windows_init_file):
2983 * sound.c (Fplay_sound):
2984 * emacs.c (init_cmdargs):
2985 * process.c (Fstart_process): Update calls to openp.
2986
2987 * callproc.c (Vexec_suffixes): New var.
2988 (Fcall_process): Update call to openp.
2989 (decode_suffixes): New function.
2990 (syms_of_callproc): Init exec-suffixes.
2991
2992 * lread.c (Vload_suffixes, default_suffixes): New vars.
2993 (openp): Take a lisp list of suffixes.
2994 Check for file-name-handlers even if the file was absolute already.
2995 (syms_of_lread): Declare load-suffixes.
2996 (Fload): Fix up call to openp.
2997 Don't bother checking for file-name-handler at the very beginning.
2998
2999 * keymap.h (Fcopy_keymap): Don't export.
3000
3001 * lisp.h (empty_string): Declare.
3002 (Vload_suffixes, Vexec_suffixes): Declare.
3003 (openp): Update prototype.
3004
3005 * emacs.c (empty_string): New var.
3006 (syms_of_emacs): Initialize it.
3007
3008 * search.c (wordify): Use it.
3009
3010 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
3011 selected window if it's not displayed there. Handle the case
3012 when the window is dedicated.
3013 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
3014
3015 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
3016
3017 * syntax.h (struct gl_state_s): Change the meaning of b_property.
3018 Remove left_ok and right_ok.
3019 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
3020 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
3021 new meaning of b_property.
3022
3023 * syntax.c (update_syntax_table): Simplify.
3024 (Fforward_comment): Don't skip quoted chars when going backward.
3025
3026 2001-10-11 Gerd Moellmann <gerd@gnu.org>
3027
3028 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
3029 in case I is of some unsigned type, in which case
3030 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
3031 comparison becomes bogus.
3032
3033 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
3034 (Fuser_full_name): Fix bug treating a float as a fixnum.
3035
3036 * data.c (Fstring_to_number): Use make_fixnum_or_float.
3037
3038 * lisp.h (make_fixnum_or_float): New macro.
3039
3040 * lisp.h (circular_list_error): Add prototype.
3041
3042 * data.c (Qcircular_list): New variable.
3043 (circular_list_error): New function.
3044 (syms_of_data): Initialize it Qcircular_list.
3045
3046 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
3047
3048 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c
3049 * casefiddle.c, buffer.c: Include keymap.h.
3050
3051 2001-10-10 Gerd Moellmann <gerd@gnu.org>
3052
3053 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
3054 options. From Dave Love <d.love@dl.ac.uk>.
3055
3056 2001-10-09 Gerd Moellmann <gerd@gnu.org>
3057
3058 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
3059 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3060
3061 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
3062 unsigned char.
3063 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3064
3065 2001-10-08 Andrew Innes <andrewi@gnu.org>
3066
3067 * lisp.h [max]: Undef min and max before redefining them.
3068
3069 * w32gui.h: Do not undef min and max.
3070
3071 * w32heap.h: Do not undef min and max.
3072
3073 * s/ms-w32.h: Do not undef min and max.
3074
3075 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3076
3077 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
3078
3079 2001-10-08 Sam Steingold <sds@gnu.org>
3080
3081 * keymap.c (current-active-maps): Quote newlines (compilation error).
3082
3083 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
3084
3085 * Makefile.in (lisp, shortlisp): Replace bindings.el with
3086 bindings.elc, since otherwise doc strings in bindings.el get wrong
3087 offsets in etc/DOC.
3088
3089 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3090
3091 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
3092
3093 * keyboard.h (map_prompt): Remove.
3094
3095 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
3096 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
3097
3098 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3099
3100 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3101
3102 * keyboard.c (map_prompt): Remove.
3103 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
3104 Use Fkeymap_prompt.
3105
3106 * keymap.h: New file. Extracted from lisp.h.
3107
3108 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
3109 (accessible_keymaps_1): New function.
3110 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
3111 (Fwhere_is_internal): Use Fcurrent_active_maps.
3112 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
3113 Insert in current buffer rather than standard-output.
3114 Don't call `help-mode'. Export to elisp.
3115 (describe_buffer_bindings): New wrapper.
3116 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
3117 and Sdescribe_buffer_bindings.
3118
3119 2001-10-08 Gerd Moellmann <gerd@gnu.org>
3120
3121 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3122 Remove code setting signal handler.
3123
3124 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
3125 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
3126
3127 2001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3128
3129 * keyboard.c: Don't define min/max.
3130
3131 2001-10-08 Gerd Moellmann <gerd@gnu.org>
3132
3133 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
3134 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
3135 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
3136 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
3137 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
3138 Don't define min/max.
3139
3140 * lisp.h (min, max): New macros.
3141
3142 * puresize.h (BASE_PURESIZE): Increase to 725000.
3143
3144 2001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3145
3146 * xfaces.c (free_frame_menubar): Add prototype.
3147
3148 * lisp.h (init_window): Add prototype.
3149
3150 * editfns.c: Include ctype.h.
3151
3152 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
3153 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
3154 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
3155 variable `sb'.
3156
3157 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
3158 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
3159 `popup_activated_flag' and `title'.
3160
3161 * doc.c (Fdocumentation_property): Fix typo in a doc string.
3162
3163 * emacs.c (main): Remove extra `;'.
3164
3165 * atimer.h (struct atimer): Fix typos in a comment.
3166
3167 * atimer.c: Fix typo.
3168
3169 * Makefile.in: Fix typo.
3170
3171 * README: Remove obsolete part mentioning removed VMS file.
3172
3173 2001-10-07 Miles Bader <miles@gnu.org>
3174
3175 * Makefile.in (lisp, shortlisp): Add `button.elc'.
3176
3177 2001-10-07 Ken Raeburn <raeburn@gnu.org>
3178
3179 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
3180 Lisp_Object.
3181
3182 * lisp.h (Ffield_end): Declare.
3183
3184 2001-10-07 Gerd Moellmann <gerd@gnu.org>
3185
3186 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
3187
3188 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
3189
3190 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
3191
3192 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
3193
3194 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
3195 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
3196
3197 * alloc.c (inhibit_garbage_collection): Simplify.
3198 (Fmemory_use_counts): Ditto.
3199
3200 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
3201 (syms_of_data): DEFVAR_INT most-positive-fixnum and
3202 most-negative-fixnum.
3203
3204 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
3205 (FIXNUM_OVERFLOW_P): New macros.
3206
3207 2001-10-06 Miles Bader <miles@gnu.org>
3208
3209 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
3210 scroll_bar_bottom_shadow_pixel fields.
3211 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
3212 for the shadows, and tell the toolkit about them if we succeed.
3213 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
3214 Free scroll-bar shadow colors.
3215 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
3216 Free scroll-bar shadow colors when the background color changes.
3217 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
3218 Initialize scroll-bar shadow-color fields.
3219
3220 2001-10-05 Gerd Moellmann <gerd@gnu.org>
3221
3222 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
3223
3224 2001-10-05 Miles Bader <miles@gnu.org>
3225
3226 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
3227 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
3228 New functions (were in simple.el).
3229 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3230 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
3231 (syms_of_minibuf): Initialize them.
3232
3233 2001-10-05 Gerd Moellmann <gerd@gnu.org>
3234
3235 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
3236 (tiff_load): Install them as error and warning handler.
3237
3238 2001-10-04 Andrew Innes <andrewi@gnu.org>
3239
3240 * w32fns.c (x_to_w32_color): Fix argument to alloca.
3241 (w32_load_system_font): Don't believe what GetLanguageFontInfo
3242 says; query codepage info directly to determine if font is double byte.
3243 (x_to_w32_charset): Handle private format for unknown charsets.
3244 Handle wildcards in charset spec, by ignoring them.
3245 (w32_codepage_for_font): Fix argument to alloca. Don't remove
3246 "*-" prefix from charset.
3247 (x_to_w32_font): Enlarge remainder array for safety. Specifically
3248 handle the truncated font spec form constructed by font_list_1, so
3249 that we correctly identify the charset fields. Don't remove "*-"
3250 prefix from charset.
3251 (w32_list_synthesized_fonts): Fix argument to alloca.
3252
3253 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
3254
3255 * window.h (MINI_WINDOW_P): Use NILP.
3256
3257 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
3258
3259 * termhooks.h (struct input_event): Use proper type for `kind'.
3260
3261 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3262
3263 This handles unknown keysyms better than before. For example,
3264 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
3265 Emacs formerly completely ignored F5. With the change, it derives
3266 a key symbol from the name of the X keysym, `ccaron' in this case.
3267 Reported by Martin Buchholz.
3268
3269 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
3270 unknown keysyms.
3271
3272 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
3273 that EVENT->code isn't a function key, use the keysym's name.
3274
3275 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3276
3277 FOREACH is a macro that should make it easier to loop over Lisp
3278 lists with checks for cycles and proper lists.
3279
3280 * lisp.h (LIST_END_P, FOREACH): New macros.
3281
3282 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3283
3284 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
3285 called for a lost connection. Prevent dumping core in this case.
3286 Instead print the X error, and exit. On user request.
3287
3288 * xterm.c (error_msg): New variable.
3289 (x_fatal_error_signal): New function.
3290 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
3291 as fatal_error_signal_hook around the call to XtCloseDisplay.
3292
3293 * emacs.c (fatal_error_signal_hook): New variable.
3294 (fatal_error_signal): Call that function.
3295
3296 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3297
3298 With this, Emacs prints how much pure storage it will
3299 approximately need in case pure storage overflows while dumping.
3300
3301 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
3302 New variables.
3303 (init_alloc_once): Initialize new variables.
3304 (PURE_POINTER_P): Use new variables.
3305 (pure_alloc): If pure storage overflows, allocate from the heap.
3306 (check_pure_size): New function.
3307 (Fgarbage_collect): Don't GC if pure storage has overflowed.
3308
3309 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
3310 (check_pure_size): Add prototype.
3311
3312 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
3313
3314 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3315
3316 This adds a post-gc-hook that's run with GC inhibited.
3317 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
3318
3319 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
3320 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
3321 (Fgarbage_collect): Run post-gc-hook.
3322
3323 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3324
3325 This adds `defvaralias' and `indirect-variable'. Changes not
3326 directly related to this feature are there to gain the same
3327 performance again as before variable aliases.
3328
3329 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
3330 code to get and set symbol values, to take defvaralias into account.
3331
3332 (Note: the new `constant' bit-flag in symbols would make it
3333 possible to define arbitrary read-only variables, e.g. with
3334 `defconst'.)
3335
3336 Documentation is in lispref/variables.texi. Added to NEWS.
3337
3338 * lisp.h (enum symbol_interned): New enumeration.
3339 (struct Lisp_Symbol): Remove member `obarray', add
3340 `indirect_variable', `constant', and `interned'.
3341 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
3342 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
3343 (indirect_variable): Add prototype.
3344
3345 * print.c (print_preprocess, print_object): Test internedness of
3346 symbols differently.
3347
3348 * lread.c (Fintern, Funintern): Set symbol's interned and constant
3349 bit-fields.
3350 (init_obarray): Likewise for t and nil.
3351
3352 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3353 (Fdefvaralias): New function.
3354 (specbind): Simplify the test if symbol is a constant.
3355 (syms_of_eval): Defsubr Fdefvaralias.
3356
3357 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3358 (Qcyclic_variable_indirection): New variable.
3359 (Fkeywordp): Check for internedness differently.
3360 (Fmakunbound): Simplify the test if symbol is a constant.
3361 (indirect_variable, Findirect_variable): New functions.
3362 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
3363 aliased symbol.
3364 (let_shadows_buffer_binding_p): Check for variable aliases.
3365 (set_internal): Simplify the test if SYMBOL is a constant.
3366 If SYMBOL has a buffer-local value and is an alias, use the aliased
3367 symbol instead.
3368 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
3369 Sindirect_variable.
3370
3371 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
3372 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
3373 set directly.
3374
3375 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
3376
3377 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
3378 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
3379 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
3380
3381 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3382
3383 * Branch for 21.1.
3384
3385 2001-10-03 Miles Bader <miles@gnu.org>
3386
3387 * callproc.c (syms_of_callproc): Explicitly state in the
3388 documentation for `process-environment' that earlier entries take
3389 precedence over later ones.
3390
3391 2001-10-02 Miles Bader <miles@gnu.org>
3392
3393 * textprop.c (Fnext_char_property_change)
3394 (Fprevious_char_property_change): Remove reference to non-existant
3395 argument OBJECT from doc-string.
3396
3397 2001-10-01 Gerd Moellmann <gerd@gnu.org>
3398
3399 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
3400 (try_window_id): Skip back over lines ending in a newline from a
3401 string.
3402
3403 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
3404 New bit flag
3405
3406 2001-10-01 Richard M. Stallman <rms@gnu.org>
3407
3408 * search.c (Freplace_match): Doc fix.
3409
3410 2001-09-28 Andrew Innes <andrewi@gnu.org>
3411
3412 * w32menu.c (set_frame_menubar): Take into account that
3413 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3414 <raeburn@gnu.org>.
3415
3416 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
3417
3418 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
3419
3420 2001-09-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3421
3422 * s/gnu-linux.h: Fix a typo in comment.
3423
3424 2001-09-28 Andreas Schwab <schwab@suse.de>
3425
3426 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
3427 nocombreloc, in case -z combreloc is the default.
3428
3429 2001-09-28 Gerd Moellmann <gerd@gnu.org>
3430
3431 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
3432 really going on here.
3433
3434 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
3435
3436 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
3437
3438 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
3439
3440 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
3441 utf-8, menu-bar, and latin-N.
3442 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
3443 unconditionally now.
3444 (lisp): Add latin-N, since they are preloaded.
3445
3446 2001-09-27 Gerd Moellmann <gerd@gnu.org>
3447
3448 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
3449 to the left. Some cleanup.
3450
3451 * xdisp.c (display_mode_element): One more case where a string's
3452 multibyteness should be used for display.
3453
3454 2001-09-26 Gerd Moellmann <gerd@gnu.org>
3455
3456 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
3457 reading at EOF.
3458
3459 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
3460 of the only temporarily set echoing flag for deciding when
3461 the cancel echoing.
3462
3463 * keyboard.c (echo_kboard): Make externally visible.
3464
3465 * lisp.h (echo_kboard): Declare extern.
3466
3467 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
3468 fonts_changed_p if we need larger matrices due to vscrolling.
3469 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
3470 this round of redisplay if make_cursor_line_fully_visible fails.
3471 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
3472 (try_cursor_movement, try_scrolling): Use them instead of integers.
3473
3474 * dispextern.h (required_matrix_width, required_matrix_height):
3475 Add prototypes.
3476
3477 * dispnew.c (required_matrix_width, required_matrix_height):
3478 New functions.
3479 (allocate_matrices_for_window_redisplay)
3480 (allocate_matrices_for_frame_redisplay: Use them.
3481 Remove parameters CH_DIM.
3482
3483 * xdisp.c (display_mode_lines): Temporarily set selected_frame
3484 and selected_window to the frame of the window whose mode-lines
3485 are displayed, and to the window itself.
3486 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
3487 here.
3488
3489 2001-09-25 Gerd Moellmann <gerd@gnu.org>
3490
3491 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
3492 the image cache under us.
3493
3494 * xdisp.c (display_mode_element): If the mode element is a symbol
3495 with a string value, use that string's multibyteness for displaying.
3496
3497 * keyboard.c (read_char): Don't clear a message for a switch-frame
3498 event. From Stefan Monnier <monnier@cs.yale.edu>.
3499
3500 * xterm.c (fast_find_position) [0]: Add a presumably more correct
3501 version for after 21.1.
3502
3503 * xdisp.c (row_containing_pos): Make externally visible.
3504
3505 * dispextern.h (row_containing_pos): Add prototype.
3506
3507 * process.c (send_process): Disable composition if from_byte < 0.
3508 From Kenichi Handa <handa@etl.go.jp>.
3509
3510 2001-09-24 Gerd Moellmann <gerd@gnu.org>
3511
3512 * xterm.c (refreshicon): Function removed.
3513
3514 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
3515
3516 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
3517
3518 * xterm.c (toplevel): Remove includes in #if 0.
3519
3520 * process.c (sigchld_handler) [LINUX]: Don't return from
3521 the signal handler at the end of the loop.
3522
3523 2001-09-21 Gerd Moellmann <gerd@gnu.org>
3524
3525 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
3526 Terminate only if kill returns -1, and errno is ESRCH.
3527
3528 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
3529
3530 * Makefile.in (shortlisp): Add ../lisp/env.elc.
3531
3532 2001-09-20 Gerd Moellmann <gerd@gnu.org>
3533
3534 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
3535 since this function can be called during GC.
3536
3537 * callproc.c (Fcall_process): Handle errors from pipe(2).
3538 (child_setup): Delete code in #ifdef vipc.
3539
3540 2001-09-19 Gerd Moellmann <gerd@gnu.org>
3541
3542 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
3543 (display_mode_element): Display the string from decode_mode_spec
3544 depending on its multibyteness.
3545
3546 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
3547
3548 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
3549
3550 2001-09-18 Gerd Moellmann <gerd@gnu.org>
3551
3552 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
3553 recursive_edit_unwind.
3554 (recursive_edit_unwind): Set kboard state according to
3555 SINGLE-KBOARD.
3556
3557 * buffer.c (modify_overlay): Don't do nothing if START == END;
3558 This can still be a modification, for example when an overlay has
3559 a before-string or after-string.
3560 (Fdelete_overlay): Prevent redisplay optimizations when deleting
3561 an overlay with before-string or after-string.
3562
3563 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
3564 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
3565
3566 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
3567 first_unchanged_at_end_row is in front of
3568 last_unchanged_at_beg_row. This code should be removed after the
3569 release of 21.1.
3570
3571 2001-09-17 Gerd Moellmann <gerd@gnu.org>
3572
3573 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
3574 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
3575
3576 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
3577 versions >= 2.95.
3578
3579 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
3580
3581 * dired.c (Ffile_attributes): Doc fix.
3582
3583 2001-09-14 Gerd Moellmann <gerd@gnu.org>
3584
3585 * fileio.c (Ffile_symlink_p): Fix last change.
3586
3587 * filelock.c (current_lock_owner): Fix last change.
3588
3589 2001-09-13 Gerd Moellmann <gerd@gnu.org>
3590
3591 * filelock.c (current_lock_owner): If readlink returns ERANGE,
3592 take that to mean that the buffer is too small.
3593
3594 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
3595 that to mean that the buffer is too small.
3596
3597 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
3598 current buffer's multibyteness when discarding the iterator's
3599 stack.
3600
3601 * xfns.c (Fx_window_property): Handle case that property gets
3602 deleted between the two calls to XGetWindowProperty.
3603
3604 2001-09-11 Gerd Moellmann <gerd@gnu.org>
3605
3606 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
3607
3608 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
3609 in addition to read-only.
3610
3611 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
3612 to t in addition to read-only.
3613
3614 * lisp.h (Qinhibit_modification_hooks): Declare.
3615
3616 * insdel.c (Qinhibit_modification_hooks): New variable.
3617 (syms_of_insdel): Initialize and staticpro it.
3618
3619 * textprop.c (verify_interval_modification): Don't run
3620 modification-hooks if inhibit_modification_hooks.
3621
3622 * dispnew.c (set_window_cursor_after_update): Fix code
3623 finding glyph row containing cursor when cursor_in_echo_area
3624 is >= 0.
3625
3626 * xdisp.c (init_from_display_pos): Put some code in #if 0.
3627 (add_to_log): Use bcopy instead of strcpy.
3628 (init_from_display_pos): Use an explicit loop over bytes in
3629 overlay strings instead of calling index.
3630
3631 2001-09-10 Gerd Moellmann <gerd@gnu.org>
3632
3633 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
3634
3635 * dispnew.c (direct_output_for_insert): Don't change IT's
3636 stop_charpos to something in front of its current position.
3637
3638 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
3639 `format'.
3640
3641 2001-09-10 Richard M. Stallman <rms@gnu.org>
3642
3643 * frame.c (Fmouse_position): Doc fix.
3644
3645 2001-09-07 Gerd Moellmann <gerd@gnu.org>
3646
3647 * xdisp.c (init_from_display_pos): Don't compare the result
3648 of calling index with NULL.
3649
3650 2001-09-06 Gerd Moellmann <gerd@gnu.org>
3651
3652 * xfns.c (x_set_background_color): Don't change the colors
3653 of the X window of scroll bar widgets.
3654
3655 2001-09-05 Andrew Innes <andrewi@gnu.org>
3656
3657 * w32fns.c (w32_createwindow): Undo last change.
3658
3659 2001-09-05 Gerd Moellmann <gerd@gnu.org>
3660
3661 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
3662
3663 * xdisp.c (string_buffer_position): Use *single_char_property*
3664 functions instead of the *single_property* functions.
3665
3666 2001-09-04 Andrew Innes <andrewi@gnu.org>
3667
3668 * w32term.c (w32_read_socket): Add more information to debugging
3669 output.
3670
3671 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
3672 from Emacs frames, so that calls to GetClipBox in w32term.c
3673 correctly report when part of a frame is visible (including
3674 scrollbars, etc). This prevents repeated redrawing of frames when
3675 only a scrollbar is visible.
3676 (w32_wnd_proc): Add more frame information to debugging output.
3677
3678 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
3679
3680 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
3681
3682 2001-09-03 Gerd Moellmann <gerd@gnu.org>
3683
3684 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
3685 help-echo for a string which doesn't have help-echo itself, use
3686 get-char-property to obtain the help-echo from the string's buffer
3687 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
3688 have mouse-face, look ``under'' the string for mouse-face from an
3689 overlay.
3690 (fast_find_position): Add parameter STOP. In the final row, stop
3691 before glyphs having STOP as object. Don't consider glyphs that
3692 are not from a buffer.
3693
3694 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
3695
3696 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
3697
3698 * fns.c (Fmd5): Doc fix.
3699
3700 2001-08-31 Gerd Moellmann <gerd@gnu.org>
3701
3702 * composite.c (update_compositions): Do nothing if
3703 inhibit-modification-hooks is set.
3704
3705 2001-08-30 Gerd Moellmann <gerd@gnu.org>
3706
3707 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
3708 and check_message_stack if terminating abnormally. We want
3709 glyph matrices etc. in a core dump.
3710
3711 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
3712 (syms_of_xdisp): Initialize them.
3713 (handle_single_display_prop): Don't change point, bind `object',
3714 `position', and `buffer-position' instead to the object having the
3715 `display' property, position in the object and position in the buffer.
3716
3717 * fileio.c (Finsert_file_contents): Don't change the multibyteness
3718 of the buffer if REPLACE is non-nil.
3719
3720 2001-08-29 Gerd Moellmann <gerd@gnu.org>
3721
3722 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
3723
3724 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
3725
3726 * w32term.c (x_set_glyph_string_background_width)
3727 (show_mouse_face): Track the last changes in xterm.c.
3728
3729 2001-08-28 Gerd Moellmann <gerd@gnu.org>
3730
3731 * xterm.c (x_set_glyph_string_background_width): Set the glyph
3732 string's background width so that multi-line mouse-face is drawn
3733 to the right edge of the window.
3734 (show_mouse_face): Set the row's mouse_face_p flag after drawing
3735 glyphs.
3736
3737 * dispnew.c (direct_output_for_insert): Set updated_area
3738 before inserting/writing glyphs.
3739
3740 * xdisp.c (display_mode_element): Use string_byte_to_char to
3741 determine character positions in strings, use chars_in_text
3742 instead of strwidth.
3743 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
3744 a matrix as parameter; this is easier to use from GDB.
3745
3746 2001-08-28 Miles Bader <miles@gnu.org>
3747
3748 * textprop.c (Fprevious_single_char_property_change)
3749 (Fnext_single_char_property_change): Doc fixes.
3750
3751 2001-08-27 Gerd Moellmann <gerd@gnu.org>
3752
3753 * fileio.c (Finsert_file_contents): Allocate, restore, and
3754 free composition data in the case of REPLACE not being nil.
3755
3756 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
3757 there exist overlay strings with newlines at POS.
3758 (text_outside_line_unchanged_p): Return 0 if changes start at
3759 START and overlays exist at START. Likewise for END.
3760 (try_window_id): Give up if init_to_row_end returns 0.
3761
3762 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
3763 unconditionally.
3764
3765 2001-08-24 Gerd Moellmann <gerd@gnu.org>
3766
3767 * keymap.c (access_keymap): Return the cdr of the binding of
3768 a generic character instead of its definition (KEY . BINDING).
3769
3770 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
3771 to 0 also in the REPLACE case.
3772
3773 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
3774
3775 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
3776 open to determine whether file is readable (as for DOS_NT).
3777
3778 2001-08-23 Gerd Moellmann <gerd@gnu.org>
3779
3780 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
3781 coding.type is coding_type_no_conversion or coding_type_raw_text,
3782 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
3783 non-nil instead of just setting enable_multibyte_characters in the
3784 buffer to nil.
3785
3786 2001-08-22 Gerd Moellmann <gerd@gnu.org>
3787
3788 * dispextern.h (struct face_cache): Add member
3789 menu_face_changed_p.
3790
3791 * xfaces.c (menu_face_changed_default): New variable.
3792 (menu_face_changed_count): Variable removed.
3793 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
3794 the menu_face_changed_default flag, otherwise set the FRAME's
3795 menu_face_changed_p flag if the `menu' face has been changed.
3796 Prevent calling set_font_frame_param if FRAME is t.
3797 (make_face_cache): Initialize cache's menu_face_changed_p
3798 from menu_face_changed_default.
3799 (realize_basic_faces): Look into the frame's face cache to
3800 determine if the menu appearance needs updating.
3801
3802 * keymap.c (access_keymap): Fix last change to not consider
3803 IDX when it has modifiers.
3804
3805 2001-08-21 Gerd Moellmann <gerd@gnu.org>
3806
3807 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
3808 . BINDING) exists, where GENERIC-CHAR is the generic character of
3809 the charset of IDX, return BINDING unless there exists a binding
3810 for IDX itself.
3811
3812 2001-08-16 Gerd Moellmann <gerd@gnu.org>
3813
3814 * xrdb.c (SYSV): Don't define on Solaris 2.
3815 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
3816
3817 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
3818 of the screen line, not text line, containing IT's current position.
3819
3820 2001-08-15 Gerd Moellmann <gerd@gnu.org>
3821
3822 * window.c (window_scroll_pixel_based): Don't recenter if
3823 PT is partially visible in the window.
3824
3825 * xterm.c (expose_window_tree, expose_window, expose_line):
3826 Return 1 when overwriting mouse-face.
3827 (expose_frame): If mouse-face was overwritten, redo it.
3828
3829 * xfaces.c (x_update_menu_appearance): Don't call
3830 set_frame_menubar, let the next redisplay do it.
3831
3832 2001-08-14 Andrew Innes <andrewi@gnu.org>
3833
3834 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
3835 drawing glyph string.
3836
3837 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
3838
3839 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
3840 running HI-UX/MPP.
3841
3842 2001-08-14 Gerd Moellmann <gerd@gnu.org>
3843
3844 * xfaces.c (x_update_menu_appearance): Save and restore value of
3845 interrupt_input_blocked.
3846
3847 2001-08-13 Gerd Moellmann <gerd@gnu.org>
3848
3849 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
3850 a line start, move back to the line start.
3851
3852 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
3853 exactly when a mini-buffer is active.
3854
3855 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
3856 in units of 1/8 character on non window-system frames.
3857 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
3858
3859 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
3860
3861 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
3862 a doc string.
3863
3864 2001-08-09 Gerd Moellmann <gerd@gnu.org>
3865
3866 * keyboard.c (Vpre_help_message): New variable.
3867 (syms_of_keyboard): Initialize and staticpro it.
3868 (show_help_echo): Record current message before displaying a
3869 help-echo, and restore that message when clearing the help.
3870
3871 * xfns.c (x_create_im): Remove prototype.
3872
3873 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
3874
3875 * dispnew.c (adjust_glyph_matrix): Undo last change.
3876
3877 2001-08-08 Gerd Moellmann <gerd@gnu.org>
3878
3879 * dispnew.c (adjust_glyph_matrix): In the optimization for
3880 windows whose height has changed, disable partially visible lines.
3881
3882 2001-08-07 Gerd Moellmann <gerd@gnu.org>
3883
3884 * window.c (Frecenter): If ARG < 0, and on a window system
3885 frame, count in some empty lines when we can't move -ARG lines down.
3886
3887 * xdisp.c (start_display): Don't try to determine the continuation
3888 lines width if lines are truncated. It's superfluous and leads to
3889 incorrect results if POS is not visible in the window after
3890 reseating the iterator at the previous line start.
3891
3892 2001-08-06 Gerd Moellmann <gerd@gnu.org>
3893
3894 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3895
3896 2001-08-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3897
3898 * alloc.c (init_stack): Remove declaration.
3899
3900 2001-08-03 Gerd Moellmann <gerd@gnu.org>
3901
3902 * keyboard.c (read_key_sequence): Check that key is an integer
3903 before comparing it with quit_char.
3904 (add_command_key): Use larger_vector.
3905 (read_char_x_menu_prompt): Instead of converting symbol and
3906 integer events into conses (EVENT . nil), use (EVENT . disabled)
3907 which cannot be confused with valid events.
3908 (read_char): When reading from Vunread_command_events, check for
3909 events of the form (EVENT . disabled) instead of
3910 (EVENT . nil).
3911
3912 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
3913 a float, determine the max height from the frame's height.
3914
3915 2001-08-02 Gerd Moellmann <gerd@gnu.org>
3916
3917 * xdisp.c (redisplay_internal): Take message_cleared_p into
3918 account only if minibuf_level == 0.
3919
3920 2001-08-01 Gerd Moellmann <gerd@gnu.org>
3921
3922 * xdisp.c (redisplay_internal): Add a check for the last
3923 displayed message.
3924
3925 * xdisp.c (message_cleared_p): New variable.
3926 (clear_message): Set message_cleared_p when clearing the current
3927 message.
3928 (redisplay_internal): Look at message_cleared_p to capture
3929 the case that the echo area should be cleared.
3930
3931 * keyboard.c (command_loop_1): Fix spelling of
3932 resize_echo_area_exactly.
3933
3934 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
3935
3936 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
3937
3938 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
3939 current matrix when the window gets smaller.
3940
3941 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
3942
3943 * print.c (strout): Cast the character passed to insert_char to
3944 unsigned char, to avoid sign extension when it is promoted to int.
3945
3946 2001-07-31 Gerd Moellmann <gerd@gnu.org>
3947
3948 * fileio.c (Finsert_file_contents): Don't treat a return value
3949 of 0 from emacs_read as an IO error.
3950
3951 2001-07-30 Gerd Moellmann <gerd@gnu.org>
3952
3953 * keyboard.c (abs): New macro.
3954 (double_click_fuzz): New variable.
3955 (make_lispy_event): Use it to determine what makes a double-click.
3956 (syms_of_keyboard): DEFVAR_INT it.
3957
3958 * xmenu.c (set_frame_menubar): Take into account that
3959 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3960 <raeburn@gnu.org>.
3961
3962 2001-07-27 Gerd Moellmann <gerd@gnu.org>
3963
3964 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
3965
3966 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
3967 of row's visible height.
3968
3969 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3970 deal with the first overlay string having an image `display' property.
3971 (try_window_reusing_current_matrix, compute_line_metrics):
3972 Fix computation of row's visible height for the case that part of the
3973 row is invisible above and part of the row is at the same time
3974 invisible below the window.
3975
3976 2001-07-26 Gerd Moellmann <gerd@gnu.org>
3977
3978 * xfns.c (x-show-tip): Doc fix.
3979
3980 * xfns.c (Vx_max_tooltip_size): New variable.
3981 (syms_of_xfns): DEFVAR_LISP it.
3982 (Fx_show_tip): Set frame's window_width to the width of the
3983 window. Use a maximum tooltip size specified by
3984 Vx_max_tooltip_size, if that has valid contents.
3985 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3986
3987 2001-07-26 Andrew Innes <andrewi@gnu.org>
3988
3989 * w32term.c (x_display_list): New variable.
3990 (w32_term_init): Set it.
3991
3992 * w32term.h (x_display_list): New extern.
3993
3994 2001-07-26 Gerd Moellmann <gerd@gnu.org>
3995
3996 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3997 is non-nil, instead of when redisplaying_p is non-zero.
3998 See comment there.
3999 (mark_window_display_accurate_1): Add an assertion.
4000
4001 2001-07-25 Gerd Moellmann <gerd@gnu.org>
4002
4003 * dispextern.h (struct it): Increase size of ctl_chars to 16.
4004
4005 * xfns.c (Fx_file_dialog): Block/unblock input while processing
4006 events so that we get a chance of processing expose events.
4007
4008 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
4009
4010 2001-07-24 Gerd Moellmann <gerd@gnu.org>
4011
4012 * xfns.c (valid_image_p): Protect better against invalid image
4013 specifications. Previous code could signal an error.
4014
4015 2001-07-23 Gerd Moellmann <gerd@gnu.org>
4016
4017 * indent.c (current_column): Fix column computation in the
4018 presence of display table entries.
4019 (current_column_1, Fmove_to_column, compute_motion): Likewise.
4020
4021 * dispnew.c (adjust_glyph_matrix): In the optimization for
4022 windows whose height has changed, use the new window height
4023 to compute which rows to invalidate.
4024
4025 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
4026 (MAX_10_EXP): New macro.
4027 (Fformat): Use it.
4028
4029 * coding.c (code_convert_region): Handle the multibyte case if
4030 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
4031
4032 2001-07-20 Gerd Moellmann <gerd@gnu.org>
4033
4034 * dispextern.h (struct face): Change type of `stipple' to
4035 int; it's an ID.
4036
4037 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
4038
4039 2001-07-19 Gerd Moellmann <gerd@gnu.org>
4040
4041 * dispnew.c (update_window): Don't set the cursor at the end
4042 of the update if display update has been paused.
4043
4044 * composite.h (syms_of_composite): Renamed from syms_of_composition.
4045
4046 2001-07-18 Ken Raeburn <raeburn@gnu.org>
4047
4048 * fns.c (Fset_char_table_default): Check that a charset is defined
4049 before checking its dimension.
4050
4051 2001-07-17 Ken Raeburn <raeburn@gnu.org>
4052
4053 * coding.c (setup_coding_system): Don't do any designation based
4054 on reg_bits if charset is not yet defined.
4055
4056 * lisp.h (XVECTOR): Verify correct object type before returning a
4057 pointer, using eassert.
4058
4059 2001-07-17 Gerd Moellmann <gerd@gnu.org>
4060
4061 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
4062 Increase to 4096 because of paste problems reported on GNU/Linux.
4063
4064 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
4065
4066 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
4067
4068 2001-07-16 Gerd Moellmann <gerd@gnu.org>
4069
4070 * fileio.c (unwind_read): Function removed.
4071 (read_non_regular, read_non_regular_quit): New functions.
4072 (Finsert_file_contents): When reading from non-regular files,
4073 arrange to catch a `quit' and terminate the loop. Rearrange
4074 code so that a `quit' when reading from a regular file doesn't
4075 insert text in the buffer.
4076
4077 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
4078 Clear faces afterwards.
4079 (clear_font_table): Take a x_display_info parameter. Don't free
4080 fonts being the default font of any frame on the given display.
4081
4082 2001-07-13 Gerd Moellmann <gerd@gnu.org>
4083
4084 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
4085 instead of CHAR_STRING which can signal an error.
4086
4087 * charset.c (char_to_string_1): Extracted from char_to_string.
4088 Return -1 instead of signaling an error.
4089 (char_to_string): Use it.
4090
4091 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
4092
4093 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
4094
4095 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
4096 is t, don't try to append anything to it.
4097
4098 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
4099
4100 * dired.c (file_name_completion): Pass dp->d_name to
4101 Fstring_match, not elt, which is always nil here.
4102
4103 2001-07-12 Gerd Moellmann <gerd@gnu.org>
4104
4105 * xselect.c (x_decline_selection_request): Handle errors
4106 caused by receivers that have vanished.
4107
4108 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
4109 ignoring events on foreign windows in #if 0. Always dispatch
4110 the event after checking it with x_handle_property_notify.
4111
4112 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
4113 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
4114 TRACE macros to facilitate debugging. Add additional trace statements.
4115 (toplevel): Add prototypes for file-local functions.
4116 (x_atom_to_symbol): Remove DPYINFO parameter.
4117
4118 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
4119
4120 * w32menu.c (menubar_selection_callback, w32_menu_show):
4121 Initialize `entry' to nil.
4122 (w32_dialog_show): Remove unused `save_wv' variable.
4123 (name_is_separator): Recognize "--:foo" and "--foo-bar".
4124
4125 2001-07-11 Gerd Moellmann <gerd@gnu.org>
4126
4127 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
4128
4129 * fileio.c (unwind_read): Print a message when discarding inserted
4130 text or switching the buffer to unibyte. Change parameter.
4131 (Finsert_file_contents): Don't pass VISIT to unwind_read.
4132
4133 * fileio.c (unwind_read): New function.
4134 (Finsert_file_contents): Record it as unwind-function for
4135 the case that reading is interrupted by C-g.
4136
4137 2001-07-10 Gerd Moellmann <gerd@gnu.org>
4138
4139 * dispnew.c (update_window): Don't skip the header-line
4140 update when scrolling_window returns 0.
4141
4142 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
4143
4144 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
4145 for the case that x_decode_color signals an error.
4146
4147 * xdisp.c (add_to_log): Do nothing if called asynchronously.
4148
4149 2001-07-09 Gerd Moellmann <gerd@gnu.org>
4150
4151 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
4152 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
4153 around ioctls.
4154
4155 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
4156
4157 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
4158 doc string line for dos-timezone-offset.
4159
4160 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
4161 inline assembly, to avoid compiler warnings.
4162 (syms_of_msdos): Add \n\ at the end of a line in the doc string
4163 line for dos-unsupported-char-glyph.
4164
4165 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
4166
4167 2001-07-05 Gerd Moellmann <gerd@gnu.org>
4168
4169 * sound.c: Include Emacs' header files with #include "...".
4170
4171 * eval.c (specbind): Additionally record the buffer that was
4172 current when a buffer-local or frame-local variable was bound.
4173
4174 2001-07-04 Gerd Moellmann <gerd@gnu.org>
4175
4176 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
4177 to unibyte characters in unibyte buffers.
4178
4179 2001-07-03 Gerd Moellmann <gerd@gnu.org>
4180
4181 * eval.c (specbind): If SYMBOL has a frame-local binding, record
4182 the frame on the binding stack. Change format of entries for
4183 local bindings on the binding stack to '(SYMBOL . WHERE)'.
4184 (unbind_to): Handle unbinding a frame-local variable.
4185
4186 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
4187 glyphs and truncation glyphs at the end of a row from its pixel width.
4188 (dump_glyph_row): Print row's continuation_lines_width.
4189 (try_window_id): Take the shortcut if ZV is visible in the
4190 window, but there are actually no changes at ZV.
4191
4192 2001-07-02 Gerd Moellmann <gerd@gnu.org>
4193
4194 * xterm.h (x_free_dpy_colors): Add prototype.
4195
4196 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
4197 right number of arguments.
4198
4199 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
4200 ($(lwlibdir)TAGS): New target.
4201 (TAGS): Fix dependency list.
4202
4203 * xterm.c (x_list_fonts): Make sure XFreeFont is called
4204 with input blocked.
4205
4206 2001-06-30 Gerd Moellmann <gerd@gnu.org>
4207
4208 * emacs.c (main): Remove extern declaration for sys_nerr, which
4209 isn't used and causes a compilation error with GCC 3.0 on
4210 FreeBSD 4.3.
4211
4212 2001-06-27 Gerd Moellmann <gerd@gnu.org>
4213
4214 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
4215 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
4216 (toplevel): Include <signal.h> and syssignal.h.
4217
4218 * sound.c (vox_configure, vox_close): Turn off atimers
4219 around ioctls.
4220
4221 2001-06-26 Gerd Moellmann <gerd@gnu.org>
4222
4223 * keyboard.c (read_char) <non_reread>: Record the previous idle
4224 start time before calling timer_stop_idle.
4225 (read_char) <reread_first>: After processing a help-echo event,
4226 restore the previous idle start time.
4227
4228 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
4229 the start of invisible text.
4230 (setup_for_ellipsis): New function.
4231 (next_overlay_string): After all overlay strings have been
4232 processed, display an ellipsis if necessary.
4233 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
4234 (push_it): Initialize display_ellipsis_p on the iterator's stack.
4235
4236 * dispextern.h (struct iterator_stack_entry): Add member
4237 display_ellipsis_p.
4238
4239 2001-06-25 Gerd Moellmann <gerd@gnu.org>
4240
4241 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
4242 on the value of the wait-for-wm frame parameter.
4243
4244 * xterm.h (struct x_output): Add member wait_for_wm.
4245
4246 * xfns.c (Qwait_for_wm): New variable.
4247 (x_frame_parms): Add entry for `wait-for-wm".
4248 (x_set_wait_for_wm): New function.
4249 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
4250 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
4251
4252 * xdisp.c (try_window_id) <all changes below window end>: Don't
4253 take this shortcut if ZV is visible in the window.
4254 (try_window_id): When checking for window start being in changed
4255 text, don't check that the buffer's size has changed.
4256
4257 2001-06-23 Richard M. Stallman <rms@gnu.org>
4258
4259 * minibuf.c (Fcompleting_read): Doc fix.
4260
4261 2001-06-19 Gerd Moellmann <gerd@gnu.org>
4262
4263 * composite.c (Ffind_composition_internal): Accept ZV
4264 and a string's end position as POS.
4265
4266 2001-06-18 Gerd Moellmann <gerd@gnu.org>
4267
4268 * composite.c (Ffind_composition_internal): Check POS
4269 for validity.
4270
4271 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
4272
4273 * editfns.c (Fmessage_box): If the frame is not under a window
4274 system, output the message in the echo area.
4275
4276 2001-06-14 Richard M. Stallman <rms@gnu.org>
4277
4278 * xdisp.c (try_window_id): When EOB is visible, don't treat
4279 insertion at EOB as if it were "off the bottom of the screen."
4280
4281 2001-06-11 Andrew Innes <andrewi@gnu.org>
4282
4283 * w32proc.c (create_child): Add new parameter is_gui_app.
4284 (w32_executable_type): Add new parameter is_gui_app.
4285 (sys_spawnve): Use it.
4286 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
4287 SIGQUIT. This matches better how the signals are interpreted by
4288 MSVC compiled programs.
4289 (syms_of_ntproc): Update docstring.
4290
4291 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
4292
4293 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
4294 well otherwise note_mouse_highlight might optimize away highlighting
4295 if we pass over that same overlay again.
4296
4297 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
4298
4299 * lread.c (Fload): Document that the argument is run via
4300 substitute-in-file-name.
4301
4302 2001-05-31 Gerd Moellmann <gerd@gnu.org>
4303
4304 * Makefile.in (bootstrap-doc): New target.
4305 (bootstrap-emacs): Depend on it.
4306
4307 * fileio.c (Fdo_auto_save): Don't try to create the directory of
4308 auto-save-list-file-name when shutting down Emacs, because
4309 creating the directory might signal an error, and leaves
4310 Emacs in a strange state.
4311
4312 * term.c: (tty_cursor_hidden): New variable.
4313 (update_begin): Don't call tty_hide_cursor. Clean up.
4314 (update_end, set_terminal_window, set_scroll_region): Clean up.
4315 (ring_bell, reset_terminal_modes): Clean up.
4316 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
4317 on tty_cursor_hidden.
4318 (write_glyphs): Call tty_hide_cursor.
4319
4320 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
4321
4322 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
4323
4324 2001-05-30 Gerd Moellmann <gerd@gnu.org>
4325
4326 * xfns.c (enum image_value_type): New enumerator
4327 IMAGE_STRING_OR_NIL_VALUE.
4328 (parse_image_spec): Handle it.
4329 (xbm_format, pbm_format): Use it for :foreground and :background.
4330 (xbm_load, pbm_load): Check for nil color names.
4331
4332 * xterm.c (note_mouse_highlight): If an overlapping overlay
4333 exists, but we find that we highlight the same overlay as before,
4334 don't do the highlighting again.
4335
4336 2001-05-29 Gerd Moellmann <gerd@gnu.org>
4337
4338 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
4339 Protect unibyte strings created by replacing their multibyte
4340 equivalents in menu_items.
4341
4342 * keymap.c (Fsingle_key_description): NUL-terminate the string
4343 buffer before calling build_string.
4344
4345 * callproc.c (Fcall_process): Deal with decode_coding returning
4346 CODING_FINISH_INCONSISTENT_EOL.
4347
4348 2001-05-28 Gerd Moellmann <gerd@gnu.org>
4349
4350 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
4351 an item's name with its key description in case the description
4352 is a multibyte string.
4353
4354 * keymap.c (Fsingle_key_description): Create a multibyte string
4355 only if necessary.
4356
4357 * macros.c (Fstart_kbd_macro): Doc fix.
4358
4359 * xterm.c (cursor_in_mouse_face_p): New function.
4360 (x_draw_stretch_glyph_string): Use it to choose a different GC
4361 when drawing a cursor within highlighted text.
4362
4363 * editfns.c (char_property_eq): Put in #if 0.
4364
4365 * indent.c (string_display_width): Put in #if 0.
4366
4367 * lread.c (Fload): Remove unused label.
4368
4369 * termcap.c (speeds): Put in #if 0.
4370
4371 2001-05-18 Gerd Moellmann <gerd@gnu.org>
4372
4373 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
4374
4375 * xfaces.c (xlfd_point_size): Don't divide pixel size from
4376 transformation matrix by 10.
4377
4378 2001-05-16 Gerd Moellmann <gerd@gnu.org>
4379
4380 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
4381 only if it's equal to the former foreground pixel color.
4382 (x_set_foreground_color, x_set_background_color)
4383 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
4384
4385 2001-05-16 Dave Love <fx@gnu.org>
4386
4387 * insdel.c (signal_before_change, signal_after_change): Consider a
4388 local change hook which changes the buffer.
4389
4390 * process.c (read_process_output): Don't call signal_after_change
4391 and update_compositions after insert_from_string_before_markers.
4392
4393 2001-05-16 Gerd Moellmann <gerd@gnu.org>
4394
4395 * xfaces.c (split_font_name): Use the right field when
4396 checking for `[...]' syntax.
4397
4398 * buffer.c (copy_overlays): New function.
4399 (clone_per_buffer_values): Use it.
4400
4401 * buffer.h (OVERLAY_PLIST): New macro.
4402
4403 * keymap.c (Fsingle_key_description): Replace a build_string with
4404 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
4405
4406 * fontset.c (Ffontset_info): Check that face is non-null
4407 before accessing its fields.
4408
4409 2001-05-15 Gerd Moellmann <gerd@gnu.org>
4410
4411 * keyboard.c (read_key_sequence): Prevent generating a fake
4412 prefix key twice.
4413
4414 * xfaces.c (split_font_name): Handle `[...]' for the right
4415 font name fields.
4416
4417 * ccl.c (ccl_driver): Don't copy remaining bytes in case
4418 of CCL_STAT_INVALID_CMD.
4419
4420 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
4421
4422 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
4423 in <var> has no default value yet.
4424
4425 * xfaces.c (try_alternative_families): First try the FAMILY.
4426 And if nothing is found in the end, try again with scalable fonts.
4427 (try_font_list): Let try_alternative_families do a bit more of
4428 the work. Only use FAMILY if it is not nil.
4429 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
4430
4431 2001-05-14 Gerd Moellmann <gerd@gnu.org>
4432
4433 * xterm.c (note_mouse_highlight): Avoid changing the mouse
4434 pointer shape when show_mouse_face has already done it.
4435
4436 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
4437 full-width rows.
4438
4439 * xfaces.c (split_font_name): Make sure to leave the loop
4440 with the right value of `i'.
4441
4442 * xfaces.c (split_font_name): Handle matrix transformations
4443 in the pixel and point size fields of XLFD font names.
4444 (xlfd_point_size): Likewise.
4445
4446 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
4447
4448 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
4449 (x_to_w32_font): Add prototype.
4450
4451 * regex.c (malloc, realloc, free) [emacs]: Undefine before
4452 redefining, to avoid compiler warnings.
4453
4454 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
4455
4456 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
4457 (w32_get_bdf_glyph): Cast between unsigned char and char when
4458 passing arguments to subroutines, to shut up compiler warnings.
4459 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
4460 GET_HEX_VAL.
4461
4462 * xfaces.c: Include keyboard.h before frame.h, not after it.
4463
4464 * widget.c: Include keyboard.h before frame.h.
4465
4466 * w32term.h (struct image, struct face): Forward declaration, to
4467 avoid compiler warnings.
4468
4469 2001-05-11 Gerd Moellmann <gerd@gnu.org>
4470
4471 * keyboard.c (read_key_sequence): Don't modify events when
4472 generating fake prefix keys (mode-line, scroll-bar, ...) since
4473 this prevents proper processing of such events when pushed back
4474 into unread-command-events.
4475
4476 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
4477 actually redrawn. Make the function static.
4478 (note_mouse_highlight): Fix a case where the mouse cursor
4479 was changed back to the text cursor.
4480
4481 * xterm.h (clear_mouse_face): Remove prototype.
4482
4483 * xdisp.c (try_window_id): Fix the fix and set the right
4484 window_end_vpos.
4485
4486 * xdisp.c (try_window_id): Fix computation of window end in the
4487 case that lines were deleted at the end of the window. Add some
4488 more debug_method_adds.
4489
4490 * xfaces.c (try_alternative_families): New function.
4491 (try_font_list): Use it. If ATTRS specifies a family, check
4492 fonts from that family first.
4493 (choose_face_font): Remove code setting the family part of
4494 the pattern to nil.
4495
4496 2001-05-10 Gerd Moellmann <gerd@gnu.org>
4497
4498 * xdisp.c (try_window_id): Fix case of all changes before
4499 the window start.
4500
4501 * xdisp.c (try_window_id): Add some xasserts.
4502
4503 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4504
4505 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
4506
4507 2001-05-09 Dave Love <fx@gnu.org>
4508
4509 * xdisp.c (GIVE_UP): Fix for K&R C.
4510
4511 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4512
4513 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
4514
4515 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
4516 back to the text cursor shape without need.
4517
4518 2001-05-07 Gerd Moellmann <gerd@gnu.org>
4519
4520 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
4521
4522 * dispextern.h (inverse_video): Declare extern.
4523
4524 * keyboard.c (delete_kboard): Handle the case that selected_frame
4525 has been deleted in the course of x_connection_closed.
4526
4527 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
4528
4529 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
4530 Fix the change from 2001-04-30.
4531
4532 2001-05-03 Gerd Moellmann <gerd@gnu.org>
4533
4534 * xfns.c (file_dialog_unmap_cb): New function.
4535 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
4536 where a dialog is closed via the window manager.
4537
4538 * xdisp.c (try_window_id): Cases of changes all in front of
4539 the window start or all below the window end mostly rewritten.
4540 (redisplay_window): Move the tests if try_window_id is
4541 applicable to try_window_id.
4542 (GIVE_UP): New macro.
4543
4544 2001-05-02 Gerd Moellmann <gerd@gnu.org>
4545
4546 * xterm.c (expose_window): Return int. If W is the window
4547 currently being updated, mark the frame garbaged.
4548 Fix computation of rows intersecting the exposed rectangle.
4549 (expose_window_tree): Stop when expose_window returns 0.
4550
4551 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
4552 again if it has already been drawn.
4553
4554 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
4555
4556 * syntax.c (update_syntax_table): Check that oldi has the same
4557 properties as old_prop before deciding not to invalidate.
4558
4559 2001-04-30 Gerd Moellmann <gerd@gnu.org>
4560
4561 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
4562 read-only text that is so because of text properties.
4563
4564 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
4565 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
4566 windows that are components of a Lucid menu bar.
4567
4568 2001-04-27 Gerd Moellmann <gerd@gnu.org>
4569
4570 * term.c (turn_on_face): Fix reverse video handling on terminals
4571 that don't support colors.
4572
4573 2001-04-26 Gerd Moellmann <gerd@gnu.org>
4574
4575 * editfns.c (save_excursion_restore): Don't use XBUFFER on
4576 a non-buffer.
4577
4578 2001-04-25 Gerd Moellmann <gerd@gnu.org>
4579
4580 * term.c (toggle_highlight): New function.
4581 (turn_on_face): Change handling of reverse video.
4582
4583 * process.c (wait_reading_process_input):
4584 Call record_asynch_buffer_change only if a timer really changed buffers.
4585
4586 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
4587 of the number of overlays to check.
4588
4589 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
4590
4591 * xdisp.c (try_window_id): Fix a case where window_end_pos
4592 and window_end_bytepos were not adjusted.
4593
4594 2001-04-23 Gerd Moellmann <gerd@gnu.org>
4595
4596 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
4597 zero instead of -1.
4598
4599 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
4600
4601 * process.c (wait_reading_process_input) [!subprocesses]:
4602 Don't reference waiting_for_user_input_p, it's not defined in the
4603 branch without async subprocesses support.
4604
4605 2001-04-19 Gerd Moellmann <gerd@gnu.org>
4606
4607 * keyboard.c (delete_kboard): Prevent a dangling reference
4608 from current_kboard to KB, which is freed.
4609
4610 * process.c (wait_reading_process_input):
4611 Call record_asynch_buffer_change after running timers, to make
4612 read_key_sequence aware of buffer changes from under it.
4613
4614 2001-04-18 Gerd Moellmann <gerd@gnu.org>
4615
4616 * xfaces.c (Qscalable_fonts_allowed): New variable.
4617 (realizing_basic_faces_p): Removed.
4618 (x_face_list_fonts): Special handling for realizing_basic_faces_p
4619 removed.
4620 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
4621 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
4622 for scalable-fonts-allowed to t.
4623
4624 * fileio.c (Finsert_file_contents): If the file size returned from
4625 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
4626 read from files on a procfs whose contents are generated dynamically.
4627
4628 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
4629
4630 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
4631 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
4632 (__memalign_hook): Make the two prototypes consistent.
4633
4634 2001-04-17 Gerd Moellmann <gerd@gnu.org>
4635
4636 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
4637 matrix of mini-windows.
4638
4639 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
4640
4641 * intervals.c (find_interval): Don't rebalance during signal handling.
4642
4643 2001-04-11 Gerd Moellmann <gerd@gnu.org>
4644
4645 * fns.c: Include blockinput.h.
4646
4647 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
4648
4649 2001-04-10 Gerd Moellmann <gerd@gnu.org>
4650
4651 * fns.c (Fcompare_strings): Fix return values.
4652
4653 * window.c (window_scroll): Change the meaning of N to mean
4654 N screen-fulls or N lines.
4655 (window_scroll_pixel_based, window_scroll_line_based)
4656 (scroll_command, Fscroll_other_window): Change accordingly.
4657
4658 * window.c (window_scroll_pixel_based, Frecenter):
4659 Call window_box_height instead of using it.last_visible_y for the
4660 height of the window.
4661
4662 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
4663 instead of using it.last_visible_y for the height of the window.
4664
4665 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
4666 From Dan Holmsand <dan@eyebee.com>.
4667
4668 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
4669 able to write to hidden and system files. From Dan Holmsand
4670 <dan@eyebee.com>.
4671
4672 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
4673 Holmsand <dan@eyebee.com>.
4674
4675 2001-04-09 Gerd Moellmann <gerd@gnu.org>
4676
4677 * fns.c (Fplist_get, Fplist_put): Add QUITs.
4678
4679 * window.c (window_internal_height): Return 1 less if the
4680 window has a header line.
4681
4682 * xdisp.c (try_window_id): When scrolling on a terminal, take
4683 the change of window_internal_height into account.
4684
4685 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
4686
4687 * gmalloc.c (align): If the argument SIZE would overflow
4688 __malloc_ptrdiff_t, fail right away.
4689
4690 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4691
4692 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4693 Make sure the tooltip is completely visible.
4694 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
4695
4696 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
4697
4698 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
4699
4700 2001-04-06 Dave Love <fx@gnu.org>
4701
4702 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
4703 Fix test of `from'.
4704
4705 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4706
4707 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
4708
4709 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
4710
4711 2001-04-05 Gerd Moellmann <gerd@gnu.org>
4712
4713 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
4714
4715 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
4716
4717 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
4718 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
4719
4720 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
4721 shell widget's position only if it is non-null.
4722
4723 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
4724 Set f->output_data.x->widget to null after destroying it.
4725
4726 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
4727 FILENAME to bring it in synch with the documentation.
4728
4729 * xfaces.c (realizing_basic_faces_p): Renamed from
4730 realize_default_face_p.
4731 (realize_basic_faces): Set/clear realizing_basic_faces_p.
4732 (realize_default_face): Don't set the flag.
4733
4734 2001-04-04 Gerd Moellmann <gerd@gnu.org>
4735
4736 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
4737
4738 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
4739
4740 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
4741 the buffer that was used for echoing.
4742
4743 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
4744 (first_font_matching): Removed unused function.
4745 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
4746 (may_use_scalable_font_p): Remove parameter FONT; rename
4747 parameter NAME to FONT.
4748 (x_face_list_fonts): Fix missing bounds check.
4749 (realizing_default_face_p): New variable.
4750 (realize_default_face): Set and clear that flag.
4751 (x_face_list_fonts): When called during the realization of the
4752 default face, and no matching fonts are found when ignoring
4753 scalable fonts and fonts matching a regexp from
4754 face-ignored-fonts, try without ignoring fonts.
4755
4756 2001-04-03 Gerd Moellmann <gerd@gnu.org>
4757
4758 * xfns.c (postprocess_image): New function.
4759 (lookup_image): Call it for all image types except PostScript.
4760 (x_kill_gs_process): Call postprocess_image.
4761
4762 * xterm.c (x_use_underline_position_properties): New variable.
4763 (x_draw_glyph_string): Use it.
4764 (syms_of_xterm): DEFVAR_BOOL it.
4765
4766 2001-04-02 Gerd Moellmann <gerd@gnu.org>
4767
4768 * xterm.c (x_alloc_nearest_color_1): New function.
4769 (x_alloc_nearest_color): Use it.
4770 (x_color_cells): Take a Display as argument, instead of a frame.
4771 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
4772 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
4773 (x_initialize): Register cvt_string_to_pixel as resource converter
4774 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
4775
4776 2001-03-30 Gerd Moellmann <gerd@gnu.org>
4777
4778 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
4779 (set_iterator_to_next): If a string from a display property ends,
4780 consider the case that this might also be the end of an
4781 overlay string having the display property.
4782
4783 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
4784
4785 * xdisp.c (reseat_to_string): Undo last change.
4786
4787 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
4788 matrix of a window when the header line changes, when
4789 new rows are allocated, or when the width changes.
4790
4791 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
4792
4793 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
4794
4795 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
4796
4797 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
4798 deprecated.
4799
4800 2001-03-29 Gerd Moellmann <gerd@gnu.org>
4801
4802 * data.c (Fsubr_interactive_form): New function.
4803 (syms_of_data): Defsubr it.
4804
4805 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
4806 (live_float_p, live_misc_p): Return 1 only if the offset of the
4807 pointer in its block is >= 0.
4808
4809 2001-03-28 Paul Eggert <eggert@twinsun.com>
4810
4811 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
4812 microseconds calcuation. Avoid double-rounding problem.
4813 In doc string, warn that the result is approximate.
4814
4815 2001-03-28 Gerd Moellmann <gerd@gnu.org>
4816
4817 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
4818 bind `inhibit-eval-during-redisplay' to t.
4819
4820 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
4821
4822 * xdisp.c (inhibit_eval_during_redisplay)
4823 (Qinhibit_eval_during_redisplay): New variables.
4824 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
4825 don't eval, return nil instead.
4826 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
4827 Initialize Qinhibit_eval_during_redisplay.
4828
4829 * xdisp.c (reseat_to_string): If STRING is multibyte, set
4830 the iterator's multibyte_p flag.
4831
4832 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
4833 instead of setting it to zero; it's incremented for each frame
4834 where the menu face is changed.
4835
4836 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
4837 change bottom shadow accordingly.
4838
4839 * xterm.c (expose_window_tree, expose_frame): Don't compute
4840 intersections here.
4841 (expose_window): Do it here instead.
4842 (x_draw_glyph_string): Fix a computation of the underline position.
4843
4844 * bytecode.c (BYTE_CODE_QUIT): New macro.
4845 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
4846
4847 2001-03-27 Gerd Moellmann <gerd@gnu.org>
4848
4849 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
4850 Give up if matrix starts in an ellipsis.
4851 (init_from_display_pos): Do nothing if POS doesn't specify
4852 a dpvec_index but the iterator has such a position.
4853
4854 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
4855
4856 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
4857 x/y position is (0, 0) after destroying the menu bar, restore
4858 its original position.
4859
4860 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
4861 (init_from_display_pos): Use it.
4862 (try_window_reusing_current_matrix): Don't use cursor_row_p.
4863
4864 2001-03-26 Gerd Moellmann <gerd@gnu.org>
4865
4866 * xdisp.c (try_window_id): Undo last change.
4867
4868 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4869
4870 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
4871
4872 * buffer.c (syms_of_buffer): Doc fix.
4873
4874 2001-03-26 Gerd Moellmann <gerd@gnu.org>
4875
4876 * xfaces.c (x_update_menu_appearance): Use local variable
4877 popup_path for setting font resources.
4878
4879 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
4880
4881 * frame.c (Fframe_list): Don't reference tip_frame if
4882 HAVE_WINDOW_SYSTEM is not defined.
4883
4884 * emacs.c (main): Update the copyright year. From Werner LEMBERG
4885 <wl@gnu.org>.
4886
4887 2001-03-25 Gerd Moellmann <gerd@gnu.org>
4888
4889 * xdisp.c (init_from_display_pos): Test invisible property
4890 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
4891
4892 * xdisp.c (redisplay_internal) <update one window>: Make sure
4893 last_arrow_position and last_arrow_string are set.
4894
4895 * frame.c (Fframe_list): Don't return a tooltip frame.
4896
4897 2001-03-23 Gerd Moellmann <gerd@gnu.org>
4898
4899 * xdisp.c (mark_window_display_accurate_1): New function,
4900 extracted from mark_window_display_accurate.
4901 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
4902 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
4903 (mark_window_display_accurate): Use it.
4904 (redisplay_internal): Use it for the selected window.
4905 (redisplay_internal): Avoid duplicate mark_window_display_accurate
4906 for the selected frame.
4907
4908 * xdisp.c Use make_number, for readability.
4909 (try_window_id): Disable rows below the window end.
4910 (try_window_reusing_current_matrix): Use cursor_row_p.
4911 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
4912 of rows.
4913 (init_from_display_pos): If POS specifies a position in a display
4914 vector, maybe get the iterator set up for that ellipsis.
4915
4916 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
4917
4918 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
4919
4920 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
4921
4922 2001-03-23 Gerd Moellmann <gerd@gnu.org>
4923
4924 * xfaces.c (x_update_menu_appearance): Use a different path
4925 for Lucid popup menus.
4926
4927 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
4928
4929 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
4930
4931 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
4932 (string_buffer_position): Use `make_number'.
4933
4934 2001-03-22 Gerd Moellmann <gerd@gnu.org>
4935
4936 * xfaces.c (x_update_menu_appearance): Renamed from
4937 x_set_menu_face_resources. Use different resources for popups.
4938
4939 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
4940 (GC_CHECK_STRING_BYTES): Don't define.
4941
4942 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
4943 Removed, together with subroutines.
4944 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
4945 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
4946
4947 * dispextern.h (x_set_menu_resources_from_menu_face):
4948 Remove prototype.
4949
4950 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
4951 Remove calls to x_set_menu_resources_from_menu_face.
4952
4953 * xfaces.c (xm_set_menu_resources_from_menu_face):
4954 Remove #ifndef LESSTIF_VERSION.
4955
4956 * xmenu.c: Include widget.h.
4957 (single_submenu): Return int. Some cleanup.
4958 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
4959
4960 2001-03-21 Gerd Moellmann <gerd@gnu.org>
4961
4962 * xterm.c (x_update_window_end): Handle overwritten mouse face
4963 also for tool bar windows.
4964 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
4965 DRAW is DRAW_IMAGE_RAISED.
4966
4967 2001-03-20 Gerd Moellmann <gerd@gnu.org>
4968
4969 * print.c (syms_of_print): Doc fixes.
4970
4971 * fns.c (Fmd5): Doc fix.
4972
4973 2001-03-19 Gerd Moellmann <gerd@gnu.org>
4974
4975 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4976 Clear area of the frame not occupied by the scroll bar.
4977
4978 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
4979 tip frame's root window buffer to *tip* right after creating
4980 the frame.
4981
4982 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
4983 is an integer don't have to be for space characters.
4984
4985 2001-03-16 Gerd Moellmann <gerd@gnu.org>
4986
4987 * indent.c (current_column, current_column_1, Fmove_to_column)
4988 (compute_motion): Handle characters from display vectors differently.
4989
4990 2001-03-15 Kenichi Handa <handa@etl.go.jp>
4991
4992 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
4993 drawing glyph string.
4994
4995 2001-03-15 Gerd Moellmann <gerd@gnu.org>
4996
4997 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
4998 (command_loop_1): Undo last change.
4999
5000 * xterm.c (fast_find_position): Return the correct vpos.
5001
5002 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
5003 non-null, set a per-buffer value in BUF instead of the current buffer.
5004 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
5005 Call store_symval_forwarding with BUF null.
5006 (set_internal): Call store_symval_forwarding with the BUF
5007 parameter passed to set_internal. Formerly, the value was always
5008 set in the current buffer; the buffer recorded in specbind for
5009 this case wasn't used.
5010 (arith_driver): Reindent.
5011
5012 * buffer.c (swap_out_buffer_local_variables):
5013 Call store_symval_forwarding with BUF null.
5014
5015 * lisp.h (store_symval_forwarding): Change prototype.
5016
5017 * eval.c (specbind): Call store_symval_forwarding with BUF null.
5018
5019 2001-03-14 Gerd Moellmann <gerd@gnu.org>
5020
5021 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
5022 FOR_DELETION. Avoid resizing the mini-window of the selected
5023 frame if FOR_DELETION is set.
5024 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
5025 (Fmake_frame_invisible): Change calls to do_switch_frame for new
5026 signature.
5027
5028 * window.c (Fset_window_configuration): Change call to
5029 do_switch_frame to new format.
5030
5031 * keyboard.c (quit_throw_to_read_char): Change call to
5032 do_switch_frame to new format.
5033
5034 * lisp.h (do_switch_frame): Change prototype.
5035
5036 * frame.c (Fframe_parameters): In the `buffer-list' frame
5037 parameter, store the buffer list of FRAME, not the list of the
5038 selected frame.
5039
5040 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
5041 box just because the glyph row's full_width_p flag is set.
5042
5043 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
5044
5045 * xdisp.c (highlight_trailing_whitespace): On character terminals,
5046 skip the padding blanks inserted in extend_face_to_end_of_line,
5047 before checking for trailing whitespace.
5048
5049 2001-03-13 Gerd Moellmann <gerd@gnu.org>
5050
5051 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
5052 Remove special handling for LessTif/Motif.
5053 (toplevel): Don't include Xm/Xm.h.
5054
5055 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
5056 Remove workaround code for LessTif; it doesn't work anymore.
5057
5058 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
5059 Xm/ScrollBarP.h.
5060
5061 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
5062 Don't access private scroll bar data; it's no longer necessary with
5063 contemporary LessTif.
5064
5065 * xfaces.c (xm_set_menu_resources_from_menu_face):
5066 Change #if 0 to #ifndef LESSTIF_VERSION.
5067
5068 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
5069 removing button grabs.
5070
5071 2001-03-13 Kenichi Handa <handa@etl.go.jp>
5072
5073 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
5074 and clip-large-size-font as obsolete.
5075
5076 * lread.c (read_multibyte): Check the validity of multibyte
5077 sequence. If invalid, return the first byte.
5078
5079 2001-03-12 Gerd Moellmann <gerd@gnu.org>
5080
5081 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
5082 before running the command; timer functions or process
5083 filters may have set it.
5084
5085 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
5086
5087 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
5088 Doc fix.
5089
5090 2001-03-12 Gerd Moellmann <gerd@gnu.org>
5091
5092 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
5093 to sprintf.
5094
5095 2001-03-09 Gerd Moellmann <gerd@gnu.org>
5096
5097 * dispextern.h (string_buffer_position): Add prototype.
5098
5099 * xdisp.c (string_buffer_position, display_prop_string_p)
5100 (single_display_prop_string_p): New functions.
5101
5102 * xterm.c (note_mouse_highlight): If there's no help-echo on
5103 a string, look at the buffer text ``under'' it.
5104
5105 * keyboard.c (make_lispy_event): Add string info to the event,
5106 analogous to what's done on mode lines.
5107 (read_key_sequence): For a click on a string, consider `local-map'
5108 and `keymap' of that string.
5109
5110 * keyboard.c (make_lispy_event, make_lispy_movement):
5111 Adjust calls to buffer_posn_from_coords to new format.
5112
5113 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
5114
5115 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
5116 POS; return void.
5117
5118 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
5119 flags argument to emacs_open; it seems to conflict with O_EXCL.
5120
5121 2001-03-09 Kenichi Handa <handa@etl.go.jp>
5122
5123 * composite.h (struct composition): Change types of members;
5124 glyph_len to unsigned, width to unsigned short.
5125
5126 2001-03-08 Andrew Innes <andrewi@gnu.org>
5127
5128 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
5129 menu titles.
5130
5131 2001-03-08 Gerd Moellmann <gerd@gnu.org>
5132
5133 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
5134 instead of nil.
5135
5136 * xterm.c (note_mouse_highlight): Handle mouse-face and
5137 help-echo in strings.
5138 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
5139 (fast_find_string_pos): New function.
5140
5141 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
5142 (display_string): Call face_at_string_position with new parameter.
5143
5144 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
5145 Handle `mouse-face'.
5146
5147 * dispextern.h (face_at_string_position): Change prototype.
5148
5149 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
5150
5151 * keyboard.c (make_lispy_event): Avoid generating drag events
5152 if the mouse hasn't actually moved to another buffer position.
5153
5154 2001-03-08 Dave Love <fx@gnu.org>
5155
5156 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
5157
5158 2001-03-08 Gerd Moellmann <gerd@gnu.org>
5159
5160 * process.c (Fset_process_window_size): Fix a typo.
5161
5162 2001-03-08 Kenichi Handa <handa@etl.go.jp>
5163
5164 * coding.c (detect_coding_sjis): Do more rigid check.
5165 (detect_coding_big5): Likewise.
5166 (decode_coding_sjis_big5): Likewise.
5167 (Fdetect_coding_region): Call detect_coding_system with tailing
5168 anchor byte `\0' for more rigid detection.
5169 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
5170 (Fdetect_coding_string): Likewise.
5171
5172 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
5173
5174 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
5175 a string before extracting its data.
5176
5177 2001-03-07 Gerd Moellmann <gerd@gnu.org>
5178
5179 * window.c (Frecenter): Rewrite code handling negative values
5180 of ARG on graphical frames.
5181
5182 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
5183
5184 * window.c (displayed_window_lines): If W->start is outside the
5185 accessible portion of the buffer, call start_display with BEGV or
5186 ZV instead of W->start.
5187
5188 2001-03-07 Gerd Moellmann <gerd@gnu.org>
5189
5190 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
5191
5192 * process.c (Fset_process_filter): Don't crash if the input
5193 file descriptor of PROCESS is closed.
5194 (Fset_process_window_size): Likewise.
5195
5196 2001-03-06 Kenichi Handa <handa@etl.go.jp>
5197
5198 * xterm.c (XTflash): Make the timeout of select shorter, and call
5199 select repeatedly until the desired time expires.
5200
5201 2001-03-06 Gerd Moellmann <gerd@gnu.org>
5202
5203 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
5204
5205 * xfns.c (Fx_create_frame): Clear Vwindow_list.
5206
5207 * lisp.h (Vwindow_list): Declare extern.
5208
5209 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
5210
5211 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
5212
5213 2001-03-06 Gerd Moellmann <gerd@gnu.org>
5214
5215 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
5216 to detect a case where we have to highlight a different region
5217 despite not having left the currently highlighted region.
5218 Set mouse_face_overlay in the x_display_info.
5219 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
5220
5221 * xterm.h (struct x_display_info): Add mouse_face_overlay.
5222
5223 * buffer.c (mouse_face_overlay_overlaps): New function.
5224
5225 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
5226 (Qmouse_face): Declare extern.
5227
5228 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
5229 if face_change_count is non-zero.
5230
5231 2001-03-06 Kenichi Handa <handa@etl.go.jp>
5232
5233 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
5234 that the source is unibyte.
5235
5236 2001-03-05 Dave Love <fx@gnu.org>
5237
5238 * xterm.c (XTmouse_position): Fix typo.
5239
5240 2001-03-05 Gerd Moellmann <gerd@gnu.org>
5241
5242 * minibuf.c (read_minibuf): Clean up the binding stack if
5243 called noninteractively.
5244
5245 2001-03-05 Kenichi Handa <handa@etl.go.jp>
5246
5247 * coding.c (syms_of_coding): Docstring modified.
5248
5249 2001-03-05 Kenichi Handa <handa@etl.go.jp>
5250
5251 * charset.c (char_to_string): If a single byte char has modifier
5252 bits that can't be reflected to the character code, ignore them
5253 instead of signaling an error.
5254
5255 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
5256
5257 * s/msdos.h: Update copyright notice.
5258
5259 * dosfns.h: Update copyright notice.
5260
5261 * dosfns.c: Update copyright notice.
5262
5263 * msdos.c: Update copyright notice.
5264
5265 2001-03-02 Gerd Moellmann <gerd@gnu.org>
5266
5267 * xterm.c (glyph_rect): New function.
5268 (XTmouse_position): Use it to raise the threshold for mouse
5269 movement event generation.
5270
5271 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5272
5273 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
5274 specifies (reverse . t), reverse the initial screen colors.
5275 (IT_set_frame_parameters): If the property is foreground-color,
5276 but we are reversing the colors, set bg_set, not fg_set.
5277 Likewise for setting background-color and reversing: set fg_set.
5278 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
5279 in effect.
5280
5281 * xfaces.c (Finternal_set_lisp_face_attribute)
5282 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
5283 parameters alist.
5284
5285 2001-03-02 Gerd Moellmann <gerd@gnu.org>
5286
5287 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
5288 to a single slash in the middle of file names.
5289
5290 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
5291 Accept only alphanumeric time zone names.
5292
5293 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
5294 or width area.
5295 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
5296 a widget to zero height.
5297
5298 2001-03-01 Gerd Moellmann <gerd@gnu.org>
5299
5300 * window.c (Fwindow_end): Call move_it_past_eol only if
5301 ending up on a partially visible line.
5302
5303 2001-03-01 Dave Love <fx@gnu.org>
5304
5305 * ccl.c (Fccl_execute): Doc fix.
5306
5307 2001-03-01 Gerd Moellmann <gerd@gnu.org>
5308
5309 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
5310 of the tool bar before calling x_figure_window_size.
5311
5312 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
5313 NULL after destroying it, otherwise XTread_socket can access a
5314 destroyed widget when input is unblocked.
5315
5316 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
5317
5318 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
5319 same name as before, although there was a change in fontsets.
5320
5321 2001-02-28 Ken Raeburn <raeburn@gnu.org>
5322
5323 * lisp.h (Fframe_parameter): Declare.
5324
5325 * window.c (set_window_buffer): Field vscroll is an int, not a
5326 Lisp_Object.
5327
5328 2001-02-28 Gerd Moellmann <gerd@gnu.org>
5329
5330 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
5331 NULL instead.
5332
5333 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
5334 NULL instead.
5335
5336 * alloc.c (toplevel): Include process.h.
5337 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
5338 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
5339 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
5340 (allocate_vector, allocate_hash_table, allocate_window)
5341 (allocate_frame, allocate_process, allocate_other_vector):
5342 New functions.
5343 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
5344 (mark_maybe_pointer): New function.
5345 (mark_memory): Also mark Lisp data to which only pointers
5346 remain and not Lisp_Objects.
5347 (min_heap_address, max_heap_address): New variables.
5348 (mem_find): Return MEM_NIL if START is below min_heap_address or
5349 above max_heap_address.
5350 (mem_insert): Compute min_heap_address and max_heap_address.
5351
5352 * process.c (make_process): Use allocate_process.
5353
5354 * frame.c (make_frame): Use allocate_frame.
5355
5356 * window.c (make_window, make_dummy_parent): Use allocate_window.
5357 (Fcurrent_window_configuration): Use allocate_other_vector.
5358
5359 * lisp.h (allocate_vectorlike): Remove prototype.
5360 (allocate_vector, allocate_other_vector, allocate_frame)
5361 (allocate_window, allocate_process, allocate_hash_table):
5362 Add prototypes.
5363
5364 * fns.c (Fdelete, larger_vector): Use allocate_vector.
5365 (make_hash_table, copy_hash_table): Use allocate_hash_table.
5366
5367 2001-02-27 Kenichi Handa <handa@etl.go.jp>
5368
5369 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
5370 treat the produced bytes as a valid multibyte sequence.
5371
5372 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
5373 (ccl_driver) <CCL_WriteMultibyteChar2>:
5374 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
5375 <ccl_finish>: Set ccl->eight_bit_control properly.
5376
5377 * ccl.h (struct ccl_program): New member eight_bit_control.
5378
5379 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
5380
5381 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
5382 accessible_keymaps_char_table.
5383 (accessible_keymaps_char_table): Obey `is_metized'.
5384 (where_is_internal, Fwhere_is_internal): Don't confuse int and
5385 Lisp_Object.
5386
5387 2001-02-26 Gerd Moellmann <gerd@gnu.org>
5388
5389 * dispnew.c: Check HAVE_TERM_H before including term.h.
5390
5391 2001-02-24 Andrew Innes <andrewi@gnu.org>
5392
5393 * makefile.w32-in: Update copyright notice.
5394
5395 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
5396
5397 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
5398
5399 2001-02-24 Kenichi Handa <handa@etl.go.jp>
5400
5401 * Makefile.in (lisp): Add international/utf-8.elc.
5402
5403 * fontset.c (Fnew_fontset): Fix handling of the case that an
5404 element of FONTLIST is a cons of family and registry.
5405
5406 2001-02-23 Jason Rumney <jasonr@gnu.org>
5407
5408 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
5409 to height unconditionally.
5410
5411 * w32term.c (x_set_glyph_string_background_width): Extend the
5412 background face to the end of the drawing area in the text area, only.
5413 (x_insert_glyphs): Call window_box_left to obtain the left
5414 x-coordinate of the area to shift.
5415
5416 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
5417 safe_run_hooks.
5418
5419 2001-02-22 Andrew Innes <andrewi@gnu.org>
5420
5421 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
5422 ($(BLD)\dispnew.obj):
5423 ($(BLD)\editfns.obj):
5424 ($(BLD)\fileio.obj):
5425 ($(BLD)\filelock.obj):
5426 ($(BLD)\keyboard.obj):
5427 ($(BLD)\w32proc.obj):
5428 ($(BLD)\process.obj):
5429 ($(BLD)\sysdep.obj): Ditto.
5430
5431 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
5432 header files.
5433 ($(BLD)/dispnew.$(O)):
5434 ($(BLD)/editfns.$(O)):
5435 ($(BLD)/fileio.$(O)):
5436 ($(BLD)/filelock.$(O)):
5437 ($(BLD)/keyboard.$(O)):
5438 ($(BLD)/w32proc.$(O)):
5439 ($(BLD)/process.$(O)):
5440 ($(BLD)/sysdep.$(O)): Ditto.
5441
5442 2001-02-22 Gerd Moellmann <gerd@gnu.org>
5443
5444 * xdisp.c (forward_to_next_line_start): When taking the shortcut
5445 at the start of the function, check that the \n in it->c is
5446 from the iterator's current position.
5447
5448 * xdisp.c (handle_single_display_prop): Add parameter
5449 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
5450 properties which replace the display of text with something else.
5451 (handle_display_prop): Call handle_single_display_prop with
5452 additional argument saying if we already replaced text display
5453 with something else. Use AREF.
5454 (with_echo_area_buffer_unwind_data, display_menu_bar)
5455 (decode_mode_spec_coding): Use AREF and ASIZE.
5456
5457 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
5458 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
5459 * vmstime.h: Files removed.
5460
5461 * unexencap.c, unexfx2800.c: Files removed.
5462
5463 * dispnew.c (direct_output_for_insert): Give up if we are showing
5464 a message or just cleared the message because we might need to
5465 resize the echo area window or display an empty echo area.
5466
5467 2001-02-21 Gerd Moellmann <gerd@gnu.org>
5468
5469 * xdisp.c (redisplay_internal): Do the
5470 mark_window_display_accurate after all windows have been
5471 redisplayed because this call resets flags in buffers which are
5472 needed for proper redisplay.
5473
5474 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
5475 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
5476 the old names.
5477
5478 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5479 busy_window to hourglass_window, busy_p to hourglass_p.
5480
5481 * msdos.h (struct x_output): Rename busy_window to
5482 hourglass_window, busy_p to hourglass_p.
5483
5484 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5485 busy_window to hourglass_window, busy_p to hourglass_p.
5486
5487 * xfns.c: Rename everything containing *busy_cursor* and similar
5488 to *hourglass*.
5489 (syms_of_w32fns): Rename x-busy-pointer-shape to
5490 x-hourglass-pointer-shape, display-busy-cursor to
5491 display-hourglass, busy-cursor-delay to hourglass-delay.
5492
5493 * w32fns.c: Rename everything containing *busy_cursor* and similar
5494 to *hourglass*.
5495 (syms_of_w32fns): Rename x-busy-pointer-shape to
5496 x-hourglass-pointer-shape, display-busy-cursor to
5497 display-hourglass, busy-cursor-delay to hourglass-delay.
5498
5499 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
5500 of its busy_p flag.
5501
5502 * dispextern.h (start_hourglass, cancel_hourglass)
5503 (display_hourglass_p): Renamed from *busy_cursor*.
5504
5505 2001-02-20 Gerd Moellmann <gerd@gnu.org>
5506
5507 * keyboard.c (read_char): When an event from unread-command-events
5508 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
5509
5510 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
5511 equal to the current buffer.
5512
5513 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
5514 nil, otherwise we're left with truncate_lines t when a message
5515 is printed with message-truncate-lines bound to t.
5516
5517 2001-02-19 Gerd Moellmann <gerd@gnu.org>
5518
5519 * window.c (Fmove_to_window_line): Undo last change.
5520 (displayed_window_lines): Call line_bottom_y to determine
5521 the line's bottom position.
5522
5523 * dispextern.h (line_bottom_y): Add prototype.
5524
5525 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
5526 (pos_visible_p): Use it.
5527
5528 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
5529 set redisplaying_p to 0 here instead of in Frecursive_edit.
5530 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
5531 set redisplaying_p.
5532
5533 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
5534 New variables.
5535 (syms_of_xdisp): Initialize new variables.
5536 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
5537 Specbind `inhibit-menubar-update' when updating the menu bar.
5538
5539 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
5540 safe_run_hooks.
5541
5542 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
5543 safe_run_hooks.
5544
5545 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
5546 is null.
5547
5548 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
5549 to the start of the file.
5550
5551 2001-02-16 Gerd Moellmann <gerd@gnu.org>
5552
5553 * window.c (set_window_buffer): Fix last change.
5554
5555 * window.c (set_window_buffer): Set window's vscroll to 0.
5556
5557 * window.c (coordinates_in_window): Increase width of area
5558 where the vertical line can be dragged.
5559
5560 * xterm.c (x_set_glyph_string_background_width): Extend the
5561 background face to the end of the drawing area in the text
5562 area, only.
5563
5564 * xdisp.c (handle_single_display_prop): Set iterator's position
5565 to where the `display' property starts, like for images.
5566 (dump_glyph): New function.
5567 (dump_glyph_row): Use it. Dump info about marginal areas.
5568
5569 * dispnew.c (direct_output_for_insert): Recognize more cases where
5570 glyphs can be written instead of being inserted.
5571
5572 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
5573 the left x-coordinate of the area to shift.
5574
5575 * dired.c (directory_files_internal): Set result list to nil
5576 before retrying.
5577
5578 2001-02-15 Kenichi Handa <handa@etl.go.jp>
5579
5580 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
5581 invalid multibyte sequence, treat *SRC as a character of
5582 eight-bit-graphic.
5583
5584 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
5585
5586 * textprop.c (Fset_text_properties): Doc fix.
5587
5588 2001-02-15 Gerd Moellmann <gerd@gnu.org>
5589
5590 * dispnew.c (update_text_area): Undo change of 2001-01-12.
5591
5592 2001-02-14 Dave Love <fx@gnu.org>
5593
5594 * coding.c: Doc and message fixes.
5595
5596 2001-02-14 Andrew Innes <andrewi@gnu.org>
5597
5598 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
5599 Emacs frame above the screen size.
5600
5601 2001-02-14 Gerd Moellmann <gerd@gnu.org>
5602
5603 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
5604
5605 2001-02-13 Gerd Moellmann <gerd@gnu.org>
5606
5607 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
5608 case that TO ends up beyond ZV after running before-change-functions.
5609
5610 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
5611 the selected window if it is showing the buffer in question.
5612
5613 * dired.c (directory_files_internal): Initialize errno.
5614 (toplevel): Include errno.h.
5615
5616 2001-02-13 Kenichi Handa <handa@etl.go.jp>
5617
5618 * xfaces.c (best_matching_font): New parameter width_ratio.
5619 Multiply avgwidth by width_ratio.
5620 (choose_face_font): Call best_matching_font with width_ratio
5621 calculated from the column width of C.
5622
5623 2001-02-12 Andrew Innes <andrewi@gnu.org>
5624
5625 The following changes are to draw box lines inside characters area
5626 if line-width is negative.
5627
5628 * w32term.c (x_produce_image_glyph): Pay attention to the case that
5629 face->box_line_width is negative.
5630 (x_produce_stretch_glyph): Likewise.
5631 (x_produce_glyphs): Likewise.
5632 (x_estimate_mode_line_height): Likewise.
5633 (x_draw_glyph_string_background): Likewise.
5634 (x_draw_glyph_string_foreground): Likewise.
5635 (x_draw_composite_glyph_string_foreground): Likewise.
5636 (x_draw_glyph_string_box): Likewise.
5637 (x_draw_image_foreground): Likewise.
5638 (x_draw_image_relief): Likewise.
5639 (x_draw_image_foreground_1): Likewise.
5640 (x_draw_image_glyph_string): Likewise.
5641
5642 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5643
5644 The following changes are to draw box lines inside characters area
5645 if line-width is negative.
5646
5647 * xterm.c (x_produce_image_glyph): Pay attention to the case that
5648 face->box_line_width is negative.
5649 (x_produce_stretch_glyph): Likewise.
5650 (x_produce_glyphs): Likewise.
5651 (x_estimate_mode_line_height): Likewise.
5652 (x_draw_glyph_string_background): Likewise.
5653 (x_draw_glyph_string_foreground): Likewise.
5654 (x_draw_composite_glyph_string_foreground): Likewise.
5655 (x_draw_glyph_string_box): Likewise.
5656 (x_draw_image_foreground): Likewise.
5657 (x_draw_image_relief): Likewise.
5658 (x_draw_image_foreground_1): Likewise.
5659 (x_draw_image_glyph_string): Likewise.
5660
5661 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
5662 and :line-width can be negative.
5663 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
5664
5665 2001-02-09 Jason Rumney <jasonr@gnu.org>
5666
5667 * w32term.c (w32_encode_char): Treat eight bit graphic and control
5668 characters the same as ASCII and latin-1.
5669 (x_display_and_set_cursor): Check for the focus frame's selected
5670 window instead of selected_window.
5671 (x_after_update_window_line): Don't clear if frame's internal
5672 border width is zero.
5673 (x_new_font): Don't change a tooltip's size.
5674 (w32_initialize): Set char_ins_del_ok to 1.
5675
5676 * w32fns.c (Fx_show_tip): Fix calls to make_number.
5677 (x_set_font): If font hasn't changed, avoid recomputing
5678 faces and other things.
5679 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
5680 (Fx_create_frame): Add the tool bar height to the frame height.
5681 (x_create_tip_frame): Prevent changing the tooltip's
5682 background color by specifying a color for the default font
5683 in .Xdefaults.
5684 (Qcancel_timer): New variable.
5685 (syms_of_w32fns): Initialize and staticpro it.
5686 (Fx_hide_tip, Fx_show_tip): Use it.
5687 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5688 the timer.
5689 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
5690
5691 * w32.c (init_environment): Duplicate local string before putenv.
5692
5693 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
5694
5695 * charset.c (Fstring): A typo.
5696
5697 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5698
5699 * charset.c (Fstring): If all arguments are less than 256, return
5700 a unibyte string.
5701
5702 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
5703 return a unibyte string.
5704
5705 * coding.c (code_convert_region): After detecting a coding, if
5706 nothing found, set coding->composing to COMPOSITION_NO.
5707 (decode_coding_string): Likewise.
5708
5709 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
5710
5711 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
5712 to avoid overflow.
5713
5714 2001-02-07 Kenichi Handa <handa@etl.go.jp>
5715
5716 * charset.c (parse_str_to_multibyte): New function.
5717
5718 * charset.h (parse_str_to_multibyte): Extern it.
5719
5720 * print.c (print_string): If we are going to print a unibyte
5721 string into a multibyte buffer, convert the string to multibyte by
5722 str_to_multibyte.
5723
5724 2001-02-06 Andrew Innes <andrewi@gnu.org>
5725
5726 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
5727 been created. It seems we can get sent window messages such as
5728 WM_ERASEBKGND before we properly update a frame.
5729
5730 2001-02-06 Gerd Moellmann <gerd@gnu.org>
5731
5732 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
5733 Avoid some unnecessary cursor positioning.
5734
5735 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5736
5737 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
5738 (LFACE_AVGWIDTH): New macro.
5739 (LFACEP): Use AREF.
5740 (check_lface_attrs): Check LFACE_AVGWIDTH.
5741 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
5742 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
5743 (merge_face_vectors): Check LFACE_AVGWIDTH.
5744 (Finternal_make_lisp_face): Use AREF.
5745 (xm_set_menu_resources_from_menu_face)
5746 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
5747 (Finternal_lisp_face_empty_p): Use AREF.
5748 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
5749 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
5750 Compare average widths..
5751 (best_matching_font): Arrange for comparing average widths.
5752
5753 * dispextern.h (enum lface_attribute_index):
5754 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
5755
5756 2001-02-05 Dave Love <fx@gnu.org>
5757
5758 * puresize.h: Revert last change following loadup.el change.
5759
5760 2001-02-05 Andrew Innes <andrewi@gnu.org>
5761
5762 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
5763 invocation of temacs, to work with Windows 2000.
5764 (bootstrap-emacs): Ditto.
5765
5766 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5767
5768 * xterm.c (x_display_and_set_cursor): Check for the focus
5769 frame's selected window instead of selected_window.
5770
5771 * xdisp.c (try_scrolling): If point is in the line below the
5772 window, make sure to move the iterator at least a canonical
5773 char height down.
5774
5775 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
5776
5777 2001-02-05 Kenichi Handa <handa@etl.go.jp>
5778
5779 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
5780 If invalid, execute CCL_INVALID_CMD.
5781 (ccl_driver): If the CCL program is terminated because of
5782 CCL_STAT_INVALID_CMD, copy the remaining source data to the
5783 destination instead of throwing them away.
5784
5785 2001-02-02 Gerd Moellmann <gerd@gnu.org>
5786
5787 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
5788 faces and other things.
5789
5790 * xdisp.c (get_next_display_element): Fix case of empty
5791 display table entry.
5792
5793 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
5794
5795 * editfns.c (Fconstrain_to_field): Doc fix.
5796
5797 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
5798 into `thoroughly', to make it consistent with the doc string.
5799
5800 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
5801
5802 2001-02-01 Gerd Moellmann <gerd@gnu.org>
5803
5804 * search.c (search_buffer): Call set_search_regs with a byte
5805 position, not a character position.
5806
5807 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
5808 minibuffer-only,
5809
5810 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
5811
5812 * frame.c (Fmodify_frame_parameters): Doc fix.
5813
5814 2001-01-31 Gerd Moellmann <gerd@gnu.org>
5815
5816 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
5817 identifier which is not reserved by Standard C.
5818
5819 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
5820
5821 * window.c (enum window_part): New enumeration.
5822 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
5823 Qright_bitmap_area.
5824 (coordinates_in_window): Return an enumerator from enum
5825 window_part. Fix handling of right scroll bar.
5826 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
5827 `right-fringe' instead of `left-bitmap-area' and
5828 `right-bitmap-area'. Use enumerators from enum window_part
5829 instead of hard-coded integers.
5830 (check_window_containing, window_from_coordinates):
5831 Use enumerators from enum window_part instead of hard-coded integers.
5832 (syms_of_window): Replace Qleft_bitmap_area and
5833 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
5834
5835 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
5836
5837 * editfns.c (Fformat_time_string): Doc fix.
5838
5839 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
5840
5841 * keymap.c (Fwhere_is_internal): Use the first valid binding
5842 if no ascii binding is found (when firstonly is t).
5843
5844 2001-01-31 Gerd Moellmann <gerd@gnu.org>
5845
5846 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
5847 instead of Finteractive_p.
5848
5849 * lisp.h (interactive_p): Add prototype.
5850
5851 * eval.c (interactive_p): New function.
5852 (Finteractive_p): Use it.
5853
5854 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
5855
5856 2001-01-31 Dave Love <fx@gnu.org>
5857
5858 * .gdbinit (hook-run): Define to run xreload.
5859
5860 * textprop.c (Fset_text_properties): Fix newline in doc string.
5861
5862 2001-01-30 Gerd Moellmann <gerd@gnu.org>
5863
5864 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
5865 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
5866
5867 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
5868 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
5869 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
5870
5871 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
5872 height.
5873
5874 2001-01-30 Dave Love <fx@gnu.org>
5875
5876 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
5877 AFTER_POTENTIAL_GC.
5878
5879 2001-01-29 Gerd Moellmann <gerd@gnu.org>
5880
5881 * bytecode.c (Fbyte_code) <Bcurrent_column>:
5882 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
5883
5884 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
5885
5886 * textprop.c (Fset_text_properties): Doc fix.
5887
5888 2001-01-29 Gerd Moellmann <gerd@gnu.org>
5889
5890 * xdisp.c (forward_to_next_line_start): Remove xassert.
5891
5892 2001-01-29 Jason Rumney <jasonr@gnu.org>
5893
5894 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
5895 returning without releasing it.
5896
5897 2001-01-29 Kenichi Handa <handa@etl.go.jp>
5898
5899 * w32fns.c (w32_font_match): Allocate three more bytes to regex
5900 for '^', '$', and '\0'.
5901
5902 2001-01-28 Andrew Choi <akochoi@i-cable.com>
5903
5904 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
5905 regex for '^', '$', and '\0'.
5906
5907 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
5908 only if current_sblock has been initialized.
5909
5910 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
5911 terminal frame even if it is the only visible frame.
5912
5913 2001-01-28 Kenichi Handa <handa@etl.go.jp>
5914
5915 * fontset.c (font_family_registry): Even if FONTNAME conform to
5916 XLFD, if it specifies other fields than family and registry,
5917 return FONTANME. New argument FORCE if nonzero cancel that feature.
5918 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
5919 a signle byte character. Don't set FAMILY part to nil here.
5920 It is handled by the caller choose_face_font.
5921 (Fnew_fontset): Call font_family_registry with FORCE 0.
5922 (Fset_fontset_font): Likewise.
5923
5924 2001-01-27 Gerd Moellmann <gerd@gnu.org>
5925
5926 * xdisp.c (display_line): Don't treat a newline as fitting
5927 on the line.
5928
5929 2001-01-26 Gerd Moellmann <gerd@gnu.org>
5930
5931 * window.c (size_window): Set the window's orig_top to nil when
5932 changing heights, so that a future shrink_mini_window won't
5933 restore a bogus height.
5934
5935 * frame.c (do_switch_frame): If selected frame has a mini-window,
5936 resize that to exact size.
5937
5938 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
5939
5940 * xdisp.c (display_line): Simplify check for glyphs fitting
5941 entirely in the line.
5942
5943 * xfns.c (xic_style): New variable.
5944 (create_frame_xic): Move static variable to global scope for
5945 the case that `static' gets defined away.
5946
5947 2001-01-26 Kenichi Handa <handa@etl.go.jp>
5948
5949 * coding.c (decode_coding): Set a flag for inhibiting
5950 inconsistent eol.
5951 (code_convert_region): Always set saved_coding_symbol.
5952 (decode_coding_string): Likewise. Update coding->symbol when we
5953 encounter a inconsistent eol by the same way as code_convert_region.
5954
5955 2001-01-25 Gerd Moellmann <gerd@gnu.org>
5956
5957 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
5958 XClearArea.
5959
5960 * xterm.c (x_after_update_window_line): Don't clear if frame's
5961 internal border width is zero.
5962 (x_clear_area): New function.
5963 (x_after_update_window_line, x_clear_end_of_line)
5964 (x_scroll_bar_create, x_scroll_bar_set_handle)
5965 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
5966 instead of XClearArea.
5967
5968 * xterm.h (x_clear_area): Add prototype.
5969
5970 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
5971 which doesn't seem necessary anymore with Lesstif 0.92.
5972
5973 2001-01-25 Dave Love <fx@gnu.org>
5974
5975 * puresize.h (BASE_PURESIZE): Up to 720000.
5976
5977 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
5978
5979 2001-01-25 Gerd Moellmann <gerd@gnu.org>
5980
5981 * xdisp.c (echo_area_display): Don't call redisplay_internal
5982 when Emacs is shutting down. We can't run hooks etc. that
5983 would be necessary to do a redisplay.
5984
5985 * lread.c (read_integer): Use type EMACS_INT instead of int.
5986
5987 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
5988
5989 * ccl.c (ccl_driver): Fix last change.
5990
5991 2001-01-25 Kenichi Handa <handa@etl.go.jp>
5992
5993 * ccl.h (sturct ccl_program): New member suppress_error.
5994
5995 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
5996 insert error message to the output.
5997 (setup_ccl_program): Initialize ccl->suppress_error to 0.
5998
5999 * coding.h (struct coding_system): New member suppress_error.
6000
6001 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
6002 (Fset_terminal_coding_system_internal): Set the member
6003 suppress_error to 1.
6004 (Fset_safe_terminal_coding_system_internal): Likewise.
6005
6006 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
6007
6008 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
6009 as if it was a `charset'.
6010
6011 2001-01-24 Gerd Moellmann <gerd@gnu.org>
6012
6013 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
6014 value in where_is_cache; the next lookup in the cache returns
6015 something bogus if we do.
6016
6017 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6018
6019 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
6020 if HAVE_WINDOW_SYSTEM isn't defined.
6021
6022 2001-01-24 Gerd Moellmann <gerd@gnu.org>
6023
6024 * fns.c (sweep_weak_table): Fix code taking items out of
6025 the hash collision chain. Some cleanup.
6026
6027 * xterm.c (x_new_font): Don't change a tooltip's size.
6028
6029 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
6030 background color by specifying a color for the default font
6031 in .Xdefaults.
6032
6033 2001-01-24 Kenichi Handa <handa@etl.go.jp>
6034
6035 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
6036 a workaround for SunOS 4's cc.
6037 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
6038 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
6039 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
6040 statement.
6041
6042 2001-01-23 Gerd Moellmann <gerd@gnu.org>
6043
6044 * xterm.c (x_set_window_size_1): New function extracted from
6045 x_set_window_size.
6046 (x_set_window_size): Use it.
6047 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
6048 doesn't have a widget, like tooltips.
6049
6050 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
6051
6052 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
6053
6054 2001-01-23 Kenichi Handa <handa@etl.go.jp>
6055
6056 * fns.c (Fset_char_table_default): Fix to make sub char-table
6057 correctly.
6058
6059 2001-01-22 Gerd Moellmann <gerd@gnu.org>
6060
6061 * xdisp.c (build_desired_tool_bar_string): Make sure we have
6062 a desired tool bar string, even if there are no tool bar items.
6063
6064 * xdisp.c (Ftool_bar_lines_needed): New function.
6065 (syms_of_xdisp): Defsubr it.
6066
6067 * editfns.c (Fformat): Don't extend text properties from arguments
6068 to padding chars in the result.
6069
6070 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
6071
6072 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
6073
6074 2001-01-20 Andrew Innes <andrewi@gnu.org>
6075
6076 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
6077 (w32_initialize): Don't set term hooks that aren't actually needed
6078 in windowed mode.
6079
6080 * xfaces.c (realize_default_face):
6081 (realize_face):
6082 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
6083
6084 * xdisp.c (handle_single_display_prop): Remove references to
6085 FRAME_W32_CONSOLE_P.
6086
6087 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
6088
6089 * frame.h (output_method): Remove output_w32_console method.
6090 (FRAME_W32_CONSOLE_P): Remove macro.
6091
6092 * frame.c (Qw32_console): Remove variable.
6093 (Fframep): Remove references to it.
6094 (syms_of_frame): Ditto.
6095 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
6096
6097 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
6098 redefinition.
6099
6100 2001-01-20 Kenichi Handa <handa@etl.go.jp>
6101
6102 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
6103
6104 2001-01-19 Andrew Innes <andrewi@gnu.org>
6105
6106 * w32.c (init_environment): Add a version-independent site-lisp
6107 directory to EMACSLOADPATH, after the version dependent one.
6108
6109 2001-01-19 Gerd Moellmann <gerd@gnu.org>
6110
6111 * editfns.c (Fbuffer_substring): Doc fix.
6112
6113 * xdisp.c (message_dolog, message2, message2_nolog):
6114 Rename parameter LEN to NBYTES.
6115
6116 2001-01-19 Kenichi Handa <handa@etl.go.jp>
6117
6118 * charset.c (strwidth): Use c_string_width.
6119 (c_string_width): New function.
6120 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
6121 Caller changed.
6122
6123 * charset.h (c_string_width, lisp_string_width): Extern them.
6124
6125 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
6126
6127 * indent.c (check_composition): Check validity of composition.
6128
6129 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
6130 characters by calling c_string_width.
6131 (x_consider_frame_title): Get byte length of frame tile string
6132 correctly.
6133 (display_mode_element): Pay attention to width of non-ASCII
6134 characters by calling strwidth.
6135
6136 2001-01-18 Gerd Moellmann <gerd@gnu.org>
6137
6138 * xfns.c (Qcancel_timer): New variable.
6139 (syms_of_xfns): Initialize and staticpro it.
6140 (Fx_hide_tip, Fx_show_tip): Use it.
6141 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6142 the timer.
6143 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
6144
6145 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
6146
6147 * window.h (WINDOW_LIVE_P): New macro.
6148
6149 * window.c (window_size_fixed): New variable.
6150 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
6151 the doc string.
6152
6153 * eval.c (specbind): If binding a per-buffer variable which
6154 doesn't have a buffer-local value in the current buffer, change
6155 the global value by changing the value of the symbol bound in all
6156 buffers not having their own value, to make it consistent with
6157 what happens with other buffer-local variables.
6158
6159 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
6160
6161 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
6162 when searching for a newline.
6163
6164 2001-01-18 Kenichi Handa <handa@etl.go.jp>
6165
6166 * xdisp.c (display_string): Fix previous change.
6167
6168 2001-01-18 Jason Rumney <jasonr@gnu.org>
6169
6170 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
6171 GLYPH_DEBUG is defined.
6172 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
6173 true for images with `:ascent 100'.
6174 (x_set_mouse_face_gc): If the last used mouse face has gone in the
6175 meantime, use face MOUSE_FACE_ID.
6176 If first glyph isn't a character glyph, use the ASCII NUL
6177 character to determine the face.
6178 (expose_area): Do not treat left margin specially.
6179 (note_mode_line_highlight): If no local_map, check global keymap.
6180 (note_mouse_highlight): Initialize overlay.
6181 (clear_mouse_face): Don't return if tip_frame is non-nil.
6182 (show_scroll_bars): Remove unused function.
6183 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
6184 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
6185 Clip to row.
6186 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
6187 (x_free_frame_resources): Unload relief colors.
6188
6189 2001-01-17 Gerd Moellmann <gerd@gnu.org>
6190
6191 * xdisp.c (forward_to_next_line_start): Avoid calling
6192 get_next_display_element when the newline is already found.
6193 This may change the iterator's position, when its current position is
6194 equal to the iterator's stop_charpos.
6195
6196 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
6197 zero, use this method only at the end of a line.
6198
6199 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
6200 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
6201 if SCALABLE_FONTS_P is set.
6202
6203 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
6204 so that scalable fonts are included.
6205
6206 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
6207 In the cache, use a key containing the information if scalable
6208 fonts are included.
6209 (x_load_font): Adapt to change of keys in the font cache.
6210
6211 2001-01-17 Kim F. Storm <storm@filanet.dk>
6212
6213 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
6214 XListFonts to take advantage of font caching.
6215
6216 * xterm.c (x_list_fonts): Ensure caching font information when
6217 called for a null frame, which is the case frequently when Emacs
6218 starts.
6219
6220 2001-01-17 Gerd Moellmann <gerd@gnu.org>
6221
6222 * xfns.c (QCconversion): Replaces QCalgorithm.
6223
6224 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
6225
6226 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
6227 of :algorithm.
6228
6229 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
6230 not everything could be displayed.
6231
6232 * line.h, x-list-font.c: Files removed because unused.
6233
6234 2001-01-17 Andrew Innes <andrewi@gnu.org>
6235
6236 * dired.c (directory_files_internal): Convert result from readdir
6237 to a unibyte string initially, to avoid possible misinterpretation
6238 of some bytes as the internal form of Emacs characters.
6239
6240 2001-01-17 Kenichi Handa <handa@etl.go.jp>
6241
6242 * fns.c (concat): Be sure to avoid putting the same `composition'
6243 property on the adjacent regions.
6244
6245 2001-01-16 Gerd Moellmann <gerd@gnu.org>
6246
6247 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
6248 (Fscroll_right, Fscroll_left): Set it here instead, if called
6249 interactively.
6250
6251 * buffer.c (Fset_buffer_modified_p): Set buffer's
6252 prevent_redisplay_optimizations_p flag.
6253
6254 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
6255 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
6256 with additional arg.
6257
6258 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
6259 Change prototype.
6260
6261 * xdisp.c (redisplay_preserve_echo_area): Add parameter
6262 FROM_WHERE, for debugging.
6263
6264 2001-01-16 Kenichi Handa <handa@etl.go.jp>
6265
6266 * ccl.c (Fregister_ccl_program): Handle the return value of
6267 resolve_symbol_ccl_program correctly.
6268 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
6269
6270 2001-01-15 Gerd Moellmann <gerd@gnu.org>
6271
6272 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
6273 has gone in the meantime, use face MOUSE_FACE_ID.
6274
6275 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
6276 If x_display_info_for_display returns null, don't try to close
6277 the display; we didn't open it.
6278
6279 * dispnew.c (save_or_restore_current_matrices): Function removed.
6280 (save_current_matrix, restore_current_matrix): New functions.
6281 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
6282 restore the frame's current matrix. Due to the glyph pointer
6283 setup done in adjust_glyph_matrix, there is no easy way to make
6284 saving the current matrix in the desired matrix generally correct,
6285 so don't try it.
6286
6287 2001-01-15 Kenichi Handa <handa@etl.go.jp>
6288
6289 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
6290 truncation glyphs.
6291 (display_line): Optimize for wide characters.
6292 (display_string): Don't try to display a multi-column character
6293 partially. On ttys, produce more than one truncation glyph for
6294 multi-column characters that don't fit on the line.
6295
6296 2001-01-13 Kenichi Handa <handa@etl.go.jp>
6297
6298 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
6299 Define it instead of WORDS_BIGENDIAN. Caller changed.
6300
6301 2001-01-13 Jason Rumney <jasonr@gnu.org>
6302
6303 * w32fns.c (Fimage_size, image_ascent, lookup_image)
6304 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
6305 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6306 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
6307
6308 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
6309 (x_draw_image_relief, x_draw_image_foreground_1)
6310 (x_draw_image_glyph_string): Adapt to change of image margins.
6311
6312 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
6313 variables.
6314
6315 * w32bdf.c (search_file_line, get_cached_font_char)
6316 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
6317
6318 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
6319
6320 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
6321 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
6322 (Fw32_send_sys_command): Remove unused variables.
6323 (w32_msg_pump): Add parentheses.
6324
6325 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
6326 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
6327 Add parentheses.
6328
6329 2001-01-12 Gerd Moellmann <gerd@gnu.org>
6330
6331 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
6332 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
6333 being a pair of margins.
6334 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
6335 to DEFVAR_LISP. Extend doc.
6336
6337 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
6338 margins.
6339 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
6340 pair of integers `(X . Y)', use X for the horizontal and Y for the
6341 vertical margin.
6342 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
6343 (parse_image_spec): Check it.
6344 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6345 (tiff_format, gif_format, gs_format):
6346 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
6347
6348 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
6349 (x_draw_image_relief, x_draw_image_foreground_1)
6350 (x_draw_image_glyph_string): Adapt to the change of image margins.
6351
6352 * dispextern.h (struct image): Replace member `margin' with
6353 `hmargin' and `vmargin'.
6354
6355 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
6356 and GLYPHS.
6357
6358 * dispnew.c (update_text_area): Put code which decrements the
6359 stop position when the row's face extends to the end of the
6360 line in #if 0.
6361
6362 * xfns.c (x_set_mouse_color): Fix color allocation.
6363
6364 * keyboard.c: Call get_local_map with new argument list.
6365
6366 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
6367
6368 * intervals.h (enum map_property): Removed.
6369 (get_local_map): Change prototype.
6370
6371 * keymap.c: Call get_local_map with new argument list.
6372 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
6373
6374 2001-01-11 Gerd Moellmann <gerd@gnu.org>
6375
6376 * xdisp.c (build_desired_tool_bar_string): Correct the computation
6377 of the size needed for the tool bar string. For the last image,
6378 use a `display' property that reaches to the end of the string.
6379
6380 * xselect.c (selection_request_dpyinfo): New variable.
6381 (x_handle_selection_request): Set it.
6382 (x_selection_request_lisp_error): Don't call
6383 x_decline_selection_request if selection request's display has
6384 been closed.
6385
6386 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
6387 Do the unregister_colors before calling XFreeColors.
6388
6389 2001-01-10 Dave Love <fx@gnu.org>
6390
6391 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
6392 ${SOME_MACHINE_LISP}, not ${lisp}.
6393
6394 2001-01-10 Gerd Moellmann <gerd@gnu.org>
6395
6396 * xdisp.c (display_line): On ttys, produce more than one truncation
6397 glyph for multi-column characters that don't fit on the line.
6398
6399 * xselect.c (x_reply_selection_request): Add a comment.
6400
6401 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
6402 XkbGetNames instead of XkbGetKeyboard.
6403
6404 2001-01-10 Dave Love <fx@gnu.org>
6405
6406 * sysdep.c (random): Revert the declaration.
6407
6408 2001-01-09 Gerd Moellmann <gerd@gnu.org>
6409
6410 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
6411 Call function string_bytes.
6412 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
6413
6414 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
6415 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
6416 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
6417 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
6418 the current sblock.
6419 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
6420 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
6421 after sweeping strings, and at the end.
6422 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
6423
6424 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
6425 ensure that pop_message is called.
6426
6427 * keyboard.c (Fexecute_extended_command): Use a
6428 record_unwind_protect to ensure that pop_message is called.
6429
6430 * lisp.h (push_message_unwind): Add prototype.
6431
6432 * xdisp.c (push_message_unwind): New function.
6433
6434 * fileio.c (do_auto_save_unwind): Do the pop_message here
6435 instead of in Fdo_auto_save.
6436 (Fdo_auto_save): Don't call pop_message.
6437
6438 2001-01-08 Ken Raeburn <raeburn@gnu.org>
6439
6440 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
6441 in inner block.
6442
6443 2001-01-08 Gerd Moellmann <gerd@gnu.org>
6444
6445 * window.c (window_scroll_pixel_based): Adjust glyph matrices
6446 when increasing window's vscroll.
6447
6448 * macros.c (Qkbd_macro_termination_hook): New variable.
6449 (syms_of_macros): Initialize and staticpro it.
6450 (pop_kbd_macro): Run kbd-macro-termination-hook.
6451
6452 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
6453
6454 2001-01-07 Dave Love <fx@gnu.org>
6455
6456 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
6457 arglist, for documentation's sake.
6458
6459 2001-01-06 Andrew Innes <andrewi@gnu.org>
6460
6461 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
6462 of *.pdb.
6463
6464 2001-01-05 Andrew Innes <andrewi@gnu.org>
6465
6466 * term.c (update_end): Don't check updating_frame; for some reason
6467 this can be 0 sometimes, such as after dismissing a popup menu,
6468 and isn't necessary given the explicit frame argument.
6469
6470 2001-01-05 Gerd Moellmann <gerd@gnu.org>
6471
6472 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
6473 on some systems, and an unsigned long on others, like FreeBSD 4.1.
6474
6475 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6476
6477 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
6478
6479 * xfns.c (x_create_tip_frame): Preserve the value of
6480 face_change_count around the creation of the tip frame.
6481
6482 * xfns.c (last_show_tip_args): New variable.
6483 (compute_tip_xy): New function.
6484 (Fx_show_tip): Reuse an existing tip frame, if possible.
6485 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
6486
6487 2001-01-04 Dave Love <fx@gnu.org>
6488
6489 * editfns.c (Fformat): Doc fix.
6490
6491 * systime.h (set_file_times): Prototype.
6492
6493 * widget.h (EmacsFrameSetCharSize_): Prototype.
6494
6495 * sysdep.c (random, srandom): Declare explicitly.
6496
6497 * dispextern.h (move_it_vertically_backward): Declare.
6498
6499 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6500
6501 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
6502 like in Fx_create_frame.
6503
6504 * xfaces.c (set_font_frame_param): Don't do anything for
6505 non-graphical frames.
6506
6507 * window.c (Fdelete_other_windows): Set window's window_end_valid
6508 to nil when changing the window's start. Don't change the
6509 window's start when its top position hasn't changed. If we do,
6510 this will set the window's optional_new_start, which act's like a
6511 force_start during redisplay with C-x 1 M-> under particular
6512 circumstances (see report from Per Starback to emacs-pretest-bug
6513 from 2000-12-13.).
6514
6515 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6516
6517 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
6518 short cut at the start of the function. Add an assertion.
6519 (reseat_at_next_visible_line_start): Add an assertion.
6520
6521 * window.c (Frecenter): When changing the window start, set the
6522 window's window_end_valid to nil.
6523 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
6524
6525 * dispextern.h (move_it_past_eol): Add prototype.
6526
6527 * xdisp.c (move_it_past_eol): New function.
6528
6529 * window.c (Fwindow_end): Doc fix.
6530
6531 2001-01-03 Dave Love <fx@gnu.org>
6532
6533 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
6534
6535 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6536
6537 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
6538 the enabled_p flag of the glyph row at window_end_vpos to 0.
6539 (handle_single_display_prop): Fix last change.
6540
6541 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6542
6543 * window.c (Frecenter): Doc fix.
6544
6545 2001-01-02 Andrew Innes <andrewi@gnu.org>
6546
6547 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
6548
6549 * frame.h (output_method): Add output_w32_console method.
6550 (FRAME_W32_CONSOLE_P): New macro.
6551
6552 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
6553 use output_w32_console method.
6554 (Qw32_console): New Lisp_Object.
6555 (Fframep): Return it.
6556 (syms_of_frame): Init it.
6557 (Fframe_parameters): Report w32console as font for w32_console frames.
6558
6559 * xfaces.c (realize_default_face): Set face foreground and
6560 background to unspecified for w32_console frames.
6561 (realize_face): Realize face cache for w32_console frames.
6562 (realize_tty_face): Accept w32_console frames.
6563
6564 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
6565 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
6566 necessary, even if running interactively.
6567
6568 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
6569 w32_console frames.
6570
6571 * w32term.c (x_update_begin):
6572 (x_update_end):
6573 (x_clear_frame):
6574 (x_ins_del_lines):
6575 (x_change_line_highlight):
6576 (x_delete_glyphs):
6577 (w32_ring_bell):
6578 (x_update_begin):
6579 (x_update_end):
6580 (w32_reassert_line_highlight):
6581 (w32_frame_rehighlight):
6582 (w32_frame_raise_lower): Do nothing if not w32 frame.
6583
6584 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
6585
6586 * w32fns.c (Fx_display_color_cells): Determine correct value, when
6587 system doesn't tell us directly.
6588 (Fx_display_visual_class): Implement properly.
6589
6590 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6591
6592 * window.c (Frecenter): Handle centering in graphical frames
6593 specially. Centering on the basis of line counts doesn't work
6594 reliably with variable-height lines.
6595
6596 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6597
6598 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
6599 and al[].
6600
6601 * composite.c (run_composition_function): Remove unused var `val'.
6602 (update_compositions): Remove unused variable `hook'.
6603
6604 * intervals.c (get_local_map): Remove unused variable `tem'.
6605
6606 * doprnt.c (doprnt1): Remove unused variable `size'.
6607
6608 * fns.c (Flength): Remove unused variable `tail'.
6609 (Fdelete): Remove unused variable `size'.
6610
6611 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
6612 and `gcpro2'.
6613
6614 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
6615
6616 * data.c (find_symbol_value): Remove extra 3rd argument in the
6617 call to swap_in_symval_forwarding.
6618
6619 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
6620
6621 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
6622 (trivial_regexp_p): Remove unused variable `c'.
6623 (boyer_moore): Remove unused variable `k'.
6624
6625 * indent.c (current_column): Remove unused variable `stopchar'.
6626 (Fcompute_motion): Remove unused variable `contin'.
6627
6628 * casefiddle.c (casify_object): Remove unused variable `tolen'.
6629
6630 * dired.c (directory_files_internal): Fix a typo in a comment.
6631 Remove an unused variable `handler'.
6632 (file_name_completion): Remove unused function-scope variable `dp'.
6633 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
6634 on BSD4_2.
6635
6636 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
6637
6638 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
6639 and `buf'.
6640 (Fmarker_insertion_type): Remove unused variable `buf'.
6641
6642 * insdel.c (make_gap): Remove unused variable `result'.
6643
6644 * keyboard.c (record_char): Remove unused function-scope var `help'.
6645 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
6646 (menu_bar_items): Remove unused function-scope variable `tem'.
6647
6648 * fontset.c (fontset_ref): Remove unused variable `i'.
6649 (fontset_set): Remove unused variables `j' and `tmp'.
6650 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
6651 (make_fontset_for_ascii_face): Remove unused variable `name'.
6652 (fs_load_font): Remove unused variable `font_idx'.
6653 (fs_query_fontset): Remove unused function-local variable `fontset'.
6654 (list_fontsets): Remove unused variable `tail'.
6655 (Fnew_fontset): Remove unused variables `family' and `registry'.
6656 (accumulate_font_info): Remove unused variable `tmp'.
6657 (Ffontset_font): Remove unused variable `id'.
6658 (syms_of_fontset): Remove unused variable `i'.
6659
6660 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
6661 to x_term_init.
6662 (lookup_image): Remove unused variable `file'.
6663 (xbm_load): Remove unused variables `bitmap_data', `height', and
6664 `width'. Remove function-local variable `i', leave the
6665 block-local one.
6666 (gif_load): Remove unused variable `inc'.
6667
6668 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
6669 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
6670 leave only the one in the inner block.
6671
6672 * xfaces.c (face_fontset, realize_default_face): Remove unused
6673 variable `fontset'.
6674 (face_at_buffer_position): Remove unused variable `multibyte_p'.
6675
6676 * term.c (encode_terminal_code): Remove unused variable `c'.
6677
6678 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
6679 char *' instead of `char *'.
6680
6681 * category.c (Fcategory_docstring): Remove unused variable `doc'.
6682 (Fget_unused_category): Remove unused variable `docstring_vector'.
6683 (Fchar_category_set): Remove unused variables `val', `charset',
6684 `c1' and `c2'.
6685
6686 * coding.c (detect_coding_iso2022, setup_coding_system):
6687 Remove unused variable `i'.
6688 (detect_coding_mask): Remove unused variable `idx'.
6689 (detect_coding): Remove unused variable `i'.
6690 (ccl_coding_driver): Remove unused variable `result'.
6691 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
6692 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
6693 (encode_coding_string): Remove unused variables `gcpro1' and
6694 `saved_coding_symbol'.
6695 (Ffind_coding_systems_region_internal): Remove function-local
6696 variable args[], leave only the block-local one.
6697 (code_convert_region1): Remove unused variable `len'.
6698
6699 * charset.c (char_printable_p): Remove unused variable `chars'.
6700 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
6701 (str_to_multibyte): Remove unused variable `c'.
6702
6703 * window.c (size_window): Remove block-local variable `min_size'.
6704
6705 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
6706 `header_line_height'.
6707 (append_space, extend_face_to_end_of_line): Declare `saved_what'
6708 enum display_element_type.
6709
6710 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6711
6712 * xterm.c (x_connection_closed): Catch X errors around all
6713 statements that call X. Save away the error message in a local copy.
6714
6715 * xterm.c (x_connection_closed): Set handling_signal to 0 at
6716 the start.
6717
6718 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
6719 in or at the start of invisible text.
6720
6721 * dispnew.c (update_window): Don't check_current_matrix_flags.
6722
6723 2001-01-01 Jason Rumney <jasonr@gnu.org>
6724
6725 * w32fns.c (x_figure_window_size): Do not allow new_height and
6726 new_width of frame to override specified values.
6727
6728 2000-12-30 Kenichi Handa <handa@etl.go.jp>
6729
6730 * composite.c (find_composition): Fix a code for searching backward.
6731
6732 2000-12-29 Gerd Moellmann <gerd@gnu.org>
6733
6734 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
6735 (update_window) [GLYPH_DEBUG]: Call it.
6736 (scrolling_window): Prevent including current rows which are below
6737 what's displayed in the window.
6738
6739 * xdisp.c (try_window_reusing_current_matrix)
6740 <new start <= old start>: Disable rows in the current matrix
6741 which are below the window after scrolling.
6742
6743 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
6744 is zero. It's not worth the complexity.
6745 (invisible_text_between_p): Put in #if 0 because unused.
6746
6747 2000-12-28 Gerd Moellmann <gerd@gnu.org>
6748
6749 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
6750 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
6751
6752 * keyboard.c (echo_char): If C is an integer, always call
6753 push_key_description. Former code could signal an invalid
6754 character error.
6755
6756 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
6757 If set, print multibyte text.
6758 (Fsingle_key_description): Call push_key_description with
6759 FORCE_MULTIBYTE set.
6760 (describe_buffer_bindings): Likewise.
6761
6762 * lisp.h (push_key_description): Add prototype.
6763
6764 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
6765 around the call to redisplay_internal.
6766
6767 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6768
6769 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6770
6771 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6772
6773 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
6774 (ccl_driver): New local variable `extra_bytes'.
6775
6776 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
6777
6778 * coding.c (setup_coding_system):
6779 Initialize coding->spec.ccl.eight_bit_carryover.
6780 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
6781
6782 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6783
6784 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
6785 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
6786 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
6787 (decode_composition_emacs_mule): New function.
6788 (decode_coding_emacs_mule): Decode composition sequence by calling
6789 decode_composition_emacs_mule.
6790 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
6791 (encode_coding_emacs_mule): Changed from macro to function.
6792 If a text contains compositions, encode them correctly.
6793 (setup_coding_system): Set coding->commong_flags for emacs-mule so
6794 that decoding and encoding are required.
6795
6796 2000-12-27 Gerd Moellmann <gerd@gnu.org>
6797
6798 * xfaces.c (PT_PER_INCH): New macro.
6799 (xlfd_point_size): Compute real point size from font's pixel size.
6800 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
6801 instead of 72.
6802
6803 * .gdbinit: Comment out the line pointing to the Lesstif source
6804 directory.
6805
6806 * window.c (Frecenter): Use displayed_window_lines instead
6807 of window_internal_height.
6808
6809 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6810 instead of x-toolkit-scroll-bars-p.
6811 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6812
6813 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6814 instead of x-toolkit-scroll-bars-p.
6815 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6816
6817 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
6818 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
6819 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
6820 New variables.
6821 (add_window_display_history, add_frame_display_history)
6822 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
6823 (build_frame_matrix_from_leaf_window): Remove unused code.
6824 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
6825 redisplay history.
6826 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
6827 (update_window) [GLYPH_DEBUG]: Likewise.
6828 (syms_of_display): Defsubr dump-redisplay-history.
6829
6830 2000-12-23 Gerd Moellmann <gerd@gnu.org>
6831
6832 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
6833 the end of the prompt. Set echo_after_prompt to the offset
6834 of echoptr in echobuf.
6835
6836 * xdisp.c (init_from_display_pos): Pop until the iterator's
6837 stack is empty; there may be frames for stretch or images
6838 on the stack.
6839
6840 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
6841 (save_or_restore_current_matrix): New function for the same
6842 purpose, but more efficient.
6843 (adjust_frame_glyphs_for_frame_redisplay): Use it.
6844
6845 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
6846
6847 * xdisp.c (syms_of_xdisp): Fix last change.
6848
6849 2000-12-23 Gerd Moellmann <gerd@gnu.org>
6850
6851 * xdisp.c (syms_of_xdisp): Doc fix.
6852
6853 * xdisp.c (redisplay_window): Remove label restore_buffers;
6854 use finish_scroll_bars instead to make sure that scroll bars
6855 are redeemed. If we don't do this, flickering can result from
6856 scroll bars being destroyed and recreated.
6857
6858 2000-12-22 Jason Rumney <jasonr@gnu.org>
6859
6860 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
6861 in the wrong colors when the foreground is not black.
6862 (expose_window): Don't redraw the window that's currently being
6863 updated.
6864
6865 2000-12-22 Gerd Moellmann <gerd@gnu.org>
6866
6867 * window.c (size_window): When setting the window's too_small_ok
6868 flag, compare old size with minimum size depending on WIDTH_P,
6869 don't compare with window_min_width.
6870
6871 * window.c (delete_window): Simplify somewhat.
6872 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
6873 freeing window matrices. The flag windows_or_buffers_changed is
6874 set, so the next redisplay will consider all windows; this should
6875 suffice.
6876
6877 2000-12-22 Kenichi Handa <handa@etl.go.jp>
6878
6879 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
6880
6881 * ccl.h (struct ccl_program): New member cr_consumed.
6882
6883 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
6884 (CCL_READ_CHAR): Handle EOL conversion here.
6885 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
6886
6887 2000-12-21 Gerd Moellmann <gerd@gnu.org>
6888
6889 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6890
6891 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
6892 otherwise tabs of different size compare equal.
6893
6894 * callint.c (Fcall_interactively): Prevent a compiler warning.
6895
6896 * print.c (print_unwind): Return nil.
6897 (PRINTDECLARE): Initialize all local variables.
6898 (print_preprocess): Add a default case.
6899
6900 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
6901
6902 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
6903
6904 * window.c (delete_window, Fsplit_window)
6905 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
6906
6907 * dispextern.h (ensure_frame_matrix): Function declaration removed.
6908
6909 * dispnew.c (ensure_frame_matrix): Removed.
6910 (save_frame_matrix, restore_frame_matrix): New functions.
6911 (adjust_frame_glyphs_for_frame_redisplay): Use them.
6912
6913 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
6914 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
6915
6916 2000-12-21 Andrew Innes <andrewi@gnu.org>
6917
6918 * w32term.c (x_update_begin): Regenerate the palette here, rather
6919 than for each window.
6920
6921 * w32xfns.c (select_palette): Avoid calling SelectPalette if
6922 palette is NULL, since this corrupts memory! Also get
6923 display_info reference from frame.
6924
6925 2000-12-21 Jason Rumney <jasonr@gnu.org>
6926
6927 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
6928
6929 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
6930 to avoid returning without releasing it.
6931
6932 2000-12-21 Kenichi Handa <handa@etl.go.jp>
6933
6934 * keymap.c (push_key_description): Don't convert eight-bit-control
6935 and eight-bit-graphic to multibyte character.
6936
6937 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
6938 generic character and CODE1 is nil, return the smallest character
6939 in CHARSET.
6940
6941 2000-12-20 Dave Love <fx@gnu.org>
6942
6943 * s/osf5-0.h (NSIG): Don't redefine.
6944
6945 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
6946
6947 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
6948 excluding menu-bar and tool-bar.
6949 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
6950 (menu_item_p): Remove.
6951 (where_is_internal_1): Don't ignore menu-items.
6952
6953 2000-12-20 Gerd Moellmann <gerd@gnu.org>
6954
6955 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
6956 into account.
6957
6958 * window.c (make_window): Initialize window's min_hscroll.
6959 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
6960 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
6961 to zero.
6962 (struct saved_window): New member min_hscroll.
6963 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
6964 (Fset_window_configuration): Set window's min_hscroll.
6965 (save_window_save): Save window's min_hscroll.
6966 (compare_window_configurations): Compare min_hscroll values.
6967
6968 * window.h (struct window): New member min_hscroll.
6969
6970 * keyboard.c (echo_prompt): Prevent a compiler warning.
6971
6972 * xdisp.c (try_cursor_movement): Fix last change. The real
6973 condition is that PT is at the end of the row, and should
6974 be displayed at the start of the next row.
6975
6976 * xdisp.c (try_cursor_movement): If we end on a partially
6977 visible line, end we already decided to scroll, return -1.
6978
6979 * dispextern.h (ensure_frame_matrix): Add prototype.
6980
6981 * window.c (delete_window, Fsplit_window)
6982 (Fset_window_configuration): Call ensure_frame_matrix.
6983
6984 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
6985 New functions.
6986 (adjust_frame_glyphs_for_frame_redisplay): If display has been
6987 completed, call fake_current_matrices instead of marking frame
6988 garbaged.
6989
6990 2000-12-20 Jason Rumney <jasonr@gnu.org>
6991
6992 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
6993
6994 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
6995
6996 * fns.c (Frequire): Doc fix.
6997
6998 2000-12-19 Gerd Moellmann <gerd@gnu.org>
6999
7000 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
7001
7002 * dispnew.c (direct_output_for_insert): Fix check for mini-window
7003 currently displaying a message.
7004
7005 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
7006 xterm.h.
7007 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
7008
7009 2000-12-18 Andrew Innes <andrewi@gnu.org>
7010
7011 * w32.c (w32_strerror): New function.
7012
7013 * w32.h (w32_strerror): New extern.
7014
7015 * w32fns.c (Fw32_shell_execute): Use it.
7016
7017 2000-12-18 Gerd Moellmann <gerd@gnu.org>
7018
7019 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
7020
7021 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7022
7023 * msdos.c (IT_set_face): Obey inverse_video.
7024
7025 2000-12-18 Kenichi Handa <handa@etl.go.jp>
7026
7027 * dired.c (directory_files_internal): Always return decoded filenames.
7028
7029 2000-12-18 Gerd Moellmann <gerd@gnu.org>
7030
7031 * xterm.c (x_connection_closed): Prevent being called recursively
7032 because of an error condition in XtCloseDisplay.
7033
7034 * xdisp.c (init_iterator): If noninteractive, and the frame's
7035 face cache is null, make one.
7036
7037 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
7038
7039 * process.c (wait_reading_process_input): Check for pending
7040 input when running timers.
7041
7042 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7043
7044 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
7045
7046 2000-12-18 Kenichi Handa <handa@etl.go.jp>
7047
7048 * process.c (read_process_output): Don't run a filter if the code
7049 decoder produces nothing but carryover.
7050
7051 2000-12-17 Andrew Innes <andrewi@gnu.org>
7052
7053 * w32.c (sys_rename): Only check errno against EEXIST, and not
7054 EACCES, when determining whether rename failed because the target
7055 exists. This was resulting in indefinite looping on Windows 9x if
7056 the source file was locked by another process.
7057
7058 * w32fns.c (Ffile_system_info): New function.
7059 (syms_of_w32fns): Defsubr it.
7060
7061 2000-12-17 Gerd Moellmann <gerd@gnu.org>
7062
7063 * window.c (coordinates_in_window): Fix computation for
7064 position on vertical line between mode lines.
7065
7066 * xfns.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
7071 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
7072 Don't alter tip_frame or tip_window.
7073 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7074 was deleted.
7075
7076 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
7077
7078 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
7079 be consistent with the doc string. Reported by NAKAJIMA Mikio
7080 <minakaji@osaka.email.ne.jp>.
7081
7082 2000-12-16 Kenichi Handa <handa@etl.go.jp>
7083
7084 * xfaces.c (Vface_ignored_fonts): New variable.
7085 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
7086 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
7087
7088 2000-12-15 Gerd Moellmann <gerd@gnu.org>
7089
7090 * dispnew.c (update_window): Detect pending input every nth line
7091 updated, i.e. do it depending on real work done, and not on the
7092 vpos of the line.
7093
7094 * xterm.c (expose_window): Don't redraw the window that's
7095 currently being updated.
7096
7097 * window.c (Fset_window_point): Remove test for
7098 cursor_in_non_selected_windows.
7099
7100 * lread.c (read1): Recognize end of file after `\\'.
7101
7102 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
7103 not unwind_create_frame.
7104
7105 2000-12-15 Dave Love <fx@gnu.org>
7106
7107 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
7108 bcopy & al.
7109
7110 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
7111
7112 2000-12-15 Kenichi Handa <handa@etl.go.jp>
7113
7114 * coding.c (setup_coding_system): Clear all members of the struct
7115 coding_system at first.
7116 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
7117 argument.
7118 (code_convert_region): Don't override coding->src_multibyte and
7119 coding->dst_multibyte.
7120
7121 * fns.c (Fmd5): Docstring improved.
7122
7123 2000-12-15 Miles Bader <miles@gnu.org>
7124
7125 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
7126 are actually marked as mode-lines; otherwise use
7127 estimate_mode_line_height.
7128
7129 2000-12-14 Gerd Moellmann <gerd@gnu.org>
7130
7131 * editfns.c (Fformat): Prevent a buffer overrun when the format
7132 specifies a precision.
7133
7134 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
7135
7136 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
7137 argument is outside the range [2..3].
7138
7139 2000-12-14 Andrew Innes <andrewi@gnu.org>
7140
7141 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
7142 nothing to do. Bind inhibit-quit.
7143 (tip_frame): Make it a Lisp_Object.
7144 (x_create_tip_frame): Set tip_frame after it has been added to
7145 Vframe_list.
7146 (Fx_show_tip): Don't set tip_frame here.
7147 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
7148 (unwind_create_frame, unwind_create_tip_frame): New functions.
7149 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7150 while a frame is only partially constructed.
7151
7152 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7153 (x_free_frame_resources): New function.
7154 (x_destroy_window): Use it.
7155
7156 2000-12-14 Gerd Moellmann <gerd@gnu.org>
7157
7158 * xfns.c (Fx_backspace_delete_keys_p): New function.
7159 (syms_of_xfns): Defsubr it.
7160
7161 * config.in (HAVE_XKBGETKEYBOARD): Add.
7162
7163 2000-12-14 Kenichi Handa <handa@etl.go.jp>
7164
7165 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
7166 Always store string in multibyte representation in echobuf.
7167 (echo_char): Always store string in multibyte representation in
7168 echobuf.
7169 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
7170 (read_key_sequence): Adjusted for the change of echo_prompt.
7171
7172 * fns.c (Fmd5): Docstring improved.
7173
7174 * lisp.h (detect_coding_system): Prototype adjusted.
7175
7176 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
7177 (detect_coding_emacs_mule, detect_coding_iso2022,)
7178 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
7179 (detect_coding_utf_16, detect_coding_ccl): Make them static.
7180 New argument MULTIBYTEP. Callers changed.
7181 (detect_coding_mask, detect_coding_system): New argument
7182 MULTIBYTEP. Callers changed.
7183 (decode_coding_string): Set coding->src_multibyte and
7184 coding->dst_multibyte before calling detect_coding and detect_eol.
7185 Update them after some coding system is detected.
7186
7187 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
7188
7189 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
7190
7191 * keyboard.c (menu_bar_items, tool_bar_items):
7192 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
7193
7194 2000-12-13 Gerd Moellmann <gerd@gnu.org>
7195
7196 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
7197 New variables.
7198 (unwind_create_frame, unwind_create_tip_frame): New functions.
7199 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7200 while a frame is only partially constructed.
7201
7202 * xterm.h (x_free_frame_resources): Declare.
7203
7204 * xterm.c (x_free_frame_resources): New function.
7205 (x_destroy_window): Use it.
7206
7207 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
7208 don't interrupt the update for pending input initially, i.e.
7209 update at least some lines.
7210
7211 * keyboard.c (do_mouse_tracking): Make externally visible.
7212
7213 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
7214
7215 * xfns.c (gray_bitmap_bits): Declare `char *'.
7216
7217 2000-12-12 Gerd Moellmann <gerd@gnu.org>
7218
7219 * xdisp.c (display_tool_bar_line): Make sure that tool bar
7220 lines start with a relief line.
7221
7222 2000-12-12 Dave Love <fx@gnu.org>
7223
7224 * window.c (Fdisplay_buffer): Doc fix.
7225 (Fwindow_list): Remove unused var.
7226
7227 * buffer.h (mmap_set_vars): Declare.
7228
7229 * window.h (Fset_window_point): Declare.
7230
7231 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
7232
7233 * msdos.c (fast_find_position): Don't overstep the last window row.
7234 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
7235 variable `area'. When looking for a row under (X,Y), give up if some
7236 of the previous rows is not enabled.
7237
7238 2000-12-12 Gerd Moellmann <gerd@gnu.org>
7239
7240 * window.c (Fset_window_point): If displaying cursors in windows
7241 other than the selected window, make sure redisplay updates
7242 other windows to show the new value of point in the window.
7243
7244 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
7245
7246 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
7247 the buffer is the sole visible buffer when in the mini-buffer.
7248
7249 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
7250 Bind `inhibit-read-only' to t.
7251 (unwind_with_echo_area_buffer): Use AREF.
7252
7253 * xfns.c (Fx_hide_tip): Simplified.
7254
7255 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
7256 instead of `1'.
7257
7258 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
7259
7260 2000-12-11 Gerd Moellmann <gerd@gnu.org>
7261
7262 * xfns.c (Fx_hide_tip): Fix last change.
7263
7264 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
7265 nothing to do. Bind inhibit-quit.
7266 (tip_frame): Make it a Lisp_Object.
7267 (x_create_tip_frame): Set tip_frame after it has been added to
7268 Vframe_list.
7269 (Fx_show_tip): Don't set tip_frame here.
7270
7271 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7272
7273 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
7274 Lisp_Object.
7275
7276 * dispextern.h: Change external declaration of tip_frame.
7277
7278 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
7279 return an empty string.
7280
7281 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
7282 of the window's update_mode_line flag, since the former is set by
7283 force-mode-line-update, not the latter. This makes
7284 column-number-mode slightly faster.
7285
7286 * xdisp.c (try_window_id) <all changes above window start>:
7287 Set the cursor.
7288
7289 2000-12-11 Paul Eggert <eggert@twinsun.com>
7290
7291 * config.in (HAVE_FTELLO): Remove.
7292 (HAVE_FSEEKO): Add.
7293 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
7294 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
7295 HAVE_FTELLO.
7296 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
7297 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
7298
7299 2000-12-11 Miles Bader <miles@gnu.org>
7300
7301 * window.c (displayed_window_lines): Don't round up when
7302 converting empty space at bottom to lines.
7303 Handle non-newline-terminated final lines properly.
7304 (Fwindow_text_height): New function (used to be in lisp).
7305 (syms_of_window): Initialize it.
7306
7307 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
7308
7309 * syntax.c (scan_lists): Check that the right quote char has the
7310 right Sstring syntax when jumping over strings.
7311 (init_syntax_once): Use Smax rather than 13.
7312
7313 2000-12-09 Miles Bader <miles@gnu.org>
7314
7315 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
7316 with PARTIALLY, inverting the sense.
7317 (window_scroll_pixel_based): Scroll partially visible lines into
7318 place if we hit the beginning or end of the buffer.
7319 (displayed_window_lines): Don't include partially visible lines.
7320 (Fmove_to_window_line): Skip past any partially visible first line.
7321
7322 2000-12-08 Gerd Moellmann <gerd@gnu.org>
7323
7324 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
7325
7326 * tparam.c (tparam1): Change the way buffers are reallocated to be
7327 portable and less obfuscated.
7328
7329 * termcap.c (tgetent): Change the way buffers are reallocated to
7330 be portable and less obfuscated.
7331
7332 * macros.c (store_kbd_macro_char): Change the way buffers are
7333 reallocated to be portable and less obfuscated.
7334
7335 * lread.c (read1): Change the way buffers are reallocated to be
7336 portable and less obfuscated.
7337
7338 * doc.c (Fsubstitute_command_keys): Change the way buffers
7339 are reallocated so that it is portable.
7340
7341 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
7342
7343 * dosfns.c (Ffile_system_info): New function.
7344 (syms_of_dosfns): Defsubr it.
7345
7346 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
7347
7348 * alloc.c (gc_sweep): Add comment.
7349
7350 2000-12-07 Gerd Moellmann <gerd@gnu.org>
7351
7352 * sound.c (vox_configure): Change order of ioctls.
7353 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
7354 Ignore errors when changing volume.
7355 (vox_close): Don't reset the device.
7356
7357 * process.c (read_process_output): Make sure the process marker's
7358 position is valid when the process buffer is changed in
7359 after-change functions. W3 does that.
7360
7361 * xfns.c (x_free_gcs): New function.
7362
7363 * xterm.h (x_free_gcs): Add prototype.
7364
7365 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
7366 freeing GCs here.
7367
7368 * xterm.c (x_destroy_window): Call x_free_gcs so that
7369 resources of non-toolkit X windows will be freed.
7370
7371 2000-12-07 Andrew Innes <andrewi@gnu.org>
7372
7373 * w32fns.c (xlfd_charset_of_font): Fix last change.
7374
7375 2000-12-06 Dave Love <fx@gnu.org>
7376
7377 * md5.h (__P): Don't define -- it comes from config.h.
7378
7379 * strftime.c: Change some #if foo to #ifdef foo.
7380
7381 2000-12-06 Andrew Innes <andrewi@gnu.org>
7382
7383 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
7384
7385 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
7386 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
7387 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
7388
7389 2000-12-06 Gerd Moellmann <gerd@gnu.org>
7390
7391 * alloc.c (gc_sweep): Prevent symbols read during loadup
7392 from being freed.
7393
7394 * xdisp.c (underlying_face_id): New function.
7395 (handle_face_prop, face_before_or_after_it_pos): Use it
7396 to determine the face ``under'' a string. Let strings inherit
7397 the face of the buffer under them.
7398
7399 * xfaces.c (face_at_string_position): Update function comment.
7400
7401 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
7402 matrix if the window's left position has changed; we need to
7403 redraw it in this case.
7404
7405 * dispextern.h (struct glyph_matrix): Add member window_left_x.
7406
7407 * window.c (coordinates_in_window): Check mouse on mode-line or
7408 header-line first.
7409
7410 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
7411 advertized by the function documentation.
7412
7413 * window.c (syms_of_window): Doc fix.
7414
7415 * sound.c (vox_configure): Set volume for left and right channel.
7416 (sound_cleanup): Return nil.
7417
7418 * xdisp.c (move_it_by_lines): Fix paren typo.
7419
7420 * xterm.c (x_load_font): Don't use the font's max_bounds for
7421 computing the height of the font. If max_bounds' ascent or
7422 descent are greater than the font's ascent or descent, this means
7423 glyphs overlap, which should be handled now by redisplay.
7424
7425 * window.c (Veven_window_heights): New variable.
7426 (syms_of_window): DEFVAR_LISP it.
7427 (Fdisplay_buffer): Check Veven_window_heights before evening the
7428 window heights.
7429
7430 2000-12-06 Miles Bader <miles@gnu.org>
7431
7432 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
7433 update `default-frame-alist' instead of setting no frame parameters.
7434
7435 2000-12-06 Kenichi Handa <handa@etl.go.jp>
7436
7437 * composite.c (update_compositions): Fix typo (use the correct
7438 variable).
7439
7440 2000-12-05 Jason Rumney <jasonr@gnu.org>
7441
7442 * md5.h: Remove underscores from function declarations.
7443 (__attribute__, __alignof__) [!__GNUC__]: Define.
7444
7445 * md5.c: Delay include of md5.h until after namespace cleaning.
7446
7447 * makefile.w32-in (fns.o): Depend on md5.h
7448 (md5.o): New target.
7449 (sunfns.o): Remove.
7450
7451 * makefile.nt: Likewise.
7452
7453 2000-12-05 Jason Rumney <jasonr@altavista.net>
7454
7455 * w32term.c (expose_area): Complete last change.
7456
7457 2000-12-05 Ken Raeburn <raeburn@gnu.org>
7458
7459 * minibuf.c: Include intervals.h.
7460
7461 2000-12-05 Jason Rumney <jasonr@gnu.org>
7462
7463 * w32term.c (x_produce_glyphs): If a font for a component of
7464 a composition is not found, use 1 pixel dot ascent and 0 dot
7465 descent value to avoid displaying terribly tall empty boxes.
7466 (expose_area): Pass x-coordinate relative to the exposed
7467 area to x_draw_glyphs instead of a window-relative coordinate.
7468
7469 2000-12-05 Gerd Moellmann <gerd@gnu.org>
7470
7471 * xdisp.c (next_element_from_ellipsis): Save face before selective
7472 display in saved_face_id, and set face_before_selective_p.
7473 (reseat_1): Reset face_before_selective_p.
7474 (append_space, extend_face_to_end_of_line): If iterator's
7475 face_before_selective_p is set, use the face from saved_face_id.
7476 (extend_face_to_end_of_line): For tty frames, make sure to
7477 use the right face id when producing spaces at the end of
7478 the line.
7479
7480 * dispextern.h (struct it): Add face_before_selective_p.
7481
7482 * keyboard.c (record_char): Don't record identical help-echo
7483 events in recent_keys.
7484
7485 * xterm.c [USE_X_TOOLKIT]: Close the display.
7486 (xim_close_dpy): Handle case that the display has been closed.
7487
7488 * xterm.c (x_destroy_window): Reset the frame's X window after
7489 destroying it.
7490
7491 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
7492 variable window_width.
7493 (line_draw_cost): Fix code skipping over spaces at the end of the
7494 line when must_write_spaces is not set.
7495 (scrolling_window): Fix code inserting runs in list of all runs.
7496
7497 2000-12-05 Kenichi Handa <handa@etl.go.jp>
7498
7499 * coding.c (setup_coding_system): Be sure to initialize
7500 coding->category_idx.
7501
7502 2000-12-04 Gerd Moellmann <gerd@gnu.org>
7503
7504 * xterm.c (PER_CHAR_METRIC): Removed because not used.
7505
7506 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
7507 area to x_draw_glyphs instead of a window-relative coordinate.
7508
7509 * fileio.c (auto_save_error): Add parameter ERROR. Show the
7510 error in the message.
7511
7512 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
7513 timer after having read a key. It's not good for code reading
7514 several keys in a loop, like an input method.
7515
7516 * fileio.c (Finsert_file_contents): When VISIT is t, don't
7517 record undo information for format-decode.
7518
7519 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
7520 current buffer is read-only, not if it isn't.
7521
7522 * keyboard.c (record_char): Record `help-echo' input events
7523 in recent_keys only if they display some help. Don't record
7524 `help-echo' events as macro char.
7525
7526 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
7527
7528 * editfns.c (save_excursion_restore): Don't move point
7529 in another window if it is showing the wrong buffer.
7530 Avoid the call to Fwindow_live_p, for speed.
7531
7532 2000-12-04 Kenichi Handa <handa@etl.go.jp>
7533
7534 * xfaces.c (struct font_name): New member registry_priority.
7535 (split_font_name): Initialize the above member to zero.
7536 (concat_font_list): New function.
7537 (font_list): Include fonts of all alternative registries.
7538 (FONT_POINT_SIZE_QUANTUM): New macro.
7539 (better_font_p): Ignore point size difference less than
7540 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
7541
7542 * xterm.c (x_produce_glyphs): If a font for a component of
7543 a composition is not found, use 1 pixel dot ascent and 0 dot
7544 descent value to avoid displaying terribly tall empty boxes.
7545
7546 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
7547
7548 2000-12-03 Ken Raeburn <raeburn@gnu.org>
7549
7550 * coding.h (code_convert_string1): Declare.
7551
7552 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
7553
7554 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
7555
7556 2000-12-02 Jason Rumney <jasonr@gnu.org>
7557
7558 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
7559 correctly for single byte character case.
7560 (w32_per_char_metric): Do not try to make any assumptions about
7561 the metrics of BDF fonts.
7562 (x_estimate_mode_line_height): If `mode-line' face
7563 hasn't a font, use that of the frame, as drawing glyphs does.
7564 (note_mouse_highlight): Change the cursor shape on the vertical
7565 border between windows [not enabled].
7566
7567 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
7568
7569 * w32fns.c (Fx_create_frame): Reintroduce the call to
7570 face-set-after-frame-defaults.
7571 (Vx_window_horizontal_drag_shape): New variable.
7572 (syms_of_xfns): DEFVAR_LISP it.
7573 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
7574 enabled].
7575
7576 2000-12-02 Simon Josefsson <simon@josefsson.org>
7577
7578 * fns.c (Fmd5): Use a different logic to decide the coding system
7579 to use.
7580
7581 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
7582
7583 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
7584
7585 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
7586
7587 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7588
7589 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
7590 height for YNegative.
7591 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
7592 height; also see comment there.
7593
7594 * window.c (coordinates_in_window): Handle computations for
7595 positions on the vertical bar and fringes differently for
7596 window-system frames. Consider some pixels near the vertical bar
7597 as on the bar if the frame doesn't have vertical scroll bars.
7598 Associate positions between mode or header lines with the
7599 right window, the left one.
7600
7601 2000-12-01 Jason Rumney <jasonr@gnu.org>
7602
7603 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
7604
7605 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
7606 invalid frame.
7607
7608 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7609
7610 * window.c (struct saved_window): Add members orig_top and orig_height.
7611 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
7612 (save_window_save, Fset_window_configuration): Save/restore
7613 window's orig_top and orig_height.
7614
7615 2000-12-01 Jason Rumney <jasonr@gnu.org>
7616
7617 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
7618
7619 * w32fns.c (x_set_cursor_color): Fix last change.
7620
7621 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7622
7623 * xdisp.c (echo_area_display): If cursor is in the echo area, make
7624 sure that the next redisplay displays the minibuffer, so that
7625 the cursor will be replaced with what the minibuffer wants.
7626
7627 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
7628 #ifndef instead of using #if.
7629 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
7630 USE_TOOLKIT_SCROLL_BARS is defined.
7631
7632 2000-11-30 Jason Rumney <jasonr@gnu.org>
7633
7634 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
7635 x_display_cursor.
7636
7637 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7638
7639 * fns.c (Fmd5): Doc fix.
7640
7641 2000-11-30 Simon Josefsson <simon@josefsson.org>
7642
7643 * fns.c (Fmd5): New function.
7644 (syms_of_fns): Defsubr md5.
7645
7646 * Makefile.in (obj): Add md5.o
7647
7648 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7649
7650 * md5.h, md5.c: New files, taken from glibc.
7651
7652 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
7653
7654 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
7655 hasn't a font, use that of the frame, as drawing glyphs does.
7656
7657 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
7658
7659 * eval.c (Frun_hooks): Allow 0 arguments.
7660
7661 2000-11-29 Gerd Moellmann <gerd@gnu.org>
7662
7663 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
7664 is over the menu bar widget, say it's not on the frame.
7665
7666 * xfns.c (Fx_create_frame): Reintroduce the call to
7667 face-set-after-frame-defaults.
7668
7669 * eval.c (Fsignal): Reset handling_signal.
7670
7671 2000-11-28 Jason Rumney <jasonr@gnu.org>
7672
7673 * w32menu.c (add_menu_item): Reset menu item text when changing
7674 type to radio button.
7675
7676 2000-11-28 Gerd Moellmann <gerd@gnu.org>
7677
7678 * xselect.c: Update copyright.
7679
7680 * window.c (coordinates_in_window): If on a mode or header line,
7681 but sufficiently close to its start, return ``on vertical
7682 border''. This gives us a way to drag windows horizontally when
7683 using toolkit scroll bars.
7684
7685 * xterm.c (note_mouse_highlight): Change the cursor shape
7686 on the vertical border between windows.
7687
7688 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
7689
7690 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
7691 (syms_of_xfns): DEFVAR_LISP it.
7692 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
7693
7694 * textprop.c (text_read_only): New function.
7695 (verify_interval_modification): Use it instead of signaling
7696 `text-read-only'. This makes it easier to catch this error
7697 with a breakpoint.:
7698
7699 * xdisp.c (forward_to_next_line_start): Check for newlines,
7700 not end of line, which includes CR.
7701
7702 2000-11-28 Kenichi Handa <handa@etl.go.jp>
7703
7704 * coding.c (Ffind_coding_systems_region_internal): Be sure to
7705 include no-conversion.
7706
7707 2000-11-27 Jason Rumney <jasonr@gnu.org>
7708
7709 * w32fns.c (w32_load_system_font): Always mark font as double byte
7710 if codepage is unicode.
7711
7712 2000-11-27 Gerd Moellmann <gerd@gnu.org>
7713
7714 * xdisp.c (forward_to_next_line_start): If already on a newline,
7715 just consume it to avoid unintended skipping over invisible text below.
7716
7717 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
7718 `vertical-line', `mode-line' and `header-line' events.
7719
7720 * xdisp.c (try_window_id): Avoid starting to display in the middle
7721 of a character, a TAB for instance. This is easier than to set
7722 up the iterator exactly, and it's not a frequent case, so the
7723 additional effort wouldn't really pay off.
7724
7725 2000-11-26 Andrew Choi <akochoi@i-cable.com>
7726
7727 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
7728 init_window_once.
7729
7730 2000-11-25 Jason Rumney <jasonr@gnu.org>
7731
7732 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
7733 Args to window_from_coordinates should be pixel coordinates.
7734
7735 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
7736 redisplay handles them properly.
7737
7738 2000-11-25 Miles Bader <miles@gnu.org>
7739
7740 * indent.c (compute_motion): Keep pos_byte in sync with pos.
7741
7742 2000-11-24 Jason Rumney <jasonr@gnu.org>
7743
7744 * w32.c (init_environment): Set LANG environment variable based on
7745 locale settings, if not set.
7746
7747 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
7748 making tool bar smaller. When clearing the frame, also
7749 clear current matrices. Clear frame when tool bar disappears.
7750 Don't use more lines for the tool-bar than is available.
7751 (x_change_window_heights): New function.
7752
7753 2000-11-24 Gerd Moellmann <gerd@gnu.org>
7754
7755 * xdisp.c (init_from_display_pos): If POS says we're already after
7756 an overlay string ending at POS, make sure to pop the iterator
7757 because it will be in front of that overlay string. When POS is
7758 ZV, we've thereby also ``processed'' overlay strings at ZV.
7759
7760 * xfaces.c (lface_from_face_name): Function comment fix.
7761
7762 2000-11-24 Miles Bader <miles@gnu.org>
7763
7764 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
7765 apply `mode-line-inverse-video' -- zero means force display using
7766 the default face, non-zero means display using the specialized face.
7767 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
7768
7769 2000-11-23 Kenichi Handa <handa@etl.go.jp>
7770
7771 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
7772 hard coded `4'.
7773
7774 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
7775
7776 * coding.c (decode_coding_emacs_mule): Fix the case of
7777 CODING_EOL_LF, which used uninitialized value of c.
7778
7779 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
7780
7781 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
7782
7783 2000-11-22 Gerd Moellmann <gerd@gnu.org>
7784
7785 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
7786 buffer object.
7787
7788 * frame.h (struct frame): Replace desired_tool_bar_items,
7789 current_tool_bar_items, n_desired_tool_bar_items,
7790 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
7791
7792 * frame.c (make_frame): Change initialization of tool bar
7793 items accordingly.
7794
7795 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
7796 Change references to members deleted from struct frame to use the
7797 new ones.
7798
7799 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
7800 references to members deleted from struct frame to use the new ones.
7801
7802 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
7803
7804 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
7805
7806 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
7807 (note_tool_bar_highlight): Change references to members deleted
7808 from struct frame to use the new ones.
7809
7810 2000-11-23 Miles Bader <miles@gnu.org>
7811
7812 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
7813 the face's inverse-video attribute, rather than overriding it.
7814
7815 2000-11-22 Gerd Moellmann <gerd@gnu.org>
7816
7817 * xfns.c (x_set_tool_bar_lines): Clear internal border when
7818 making tool bar smaller.
7819
7820 2000-11-22 Dave Love <fx@gnu.org>
7821
7822 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
7823
7824 2000-11-22 Miles Bader <miles@gnu.org>
7825
7826 * keyboard.c (Vminibuffer_message_timeout): New variable.
7827 (command_loop_1): Use it to determine message timeout.
7828 (syms_of_keyboard): Initialize it.
7829
7830 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
7831
7832 2000-11-22 Kenichi Handa <handa@etl.go.jp>
7833
7834 * sysdep.c: Move the code for declaring h_errno after #include
7835 <netdb.h>.
7836
7837 2000-11-21 Gerd Moellmann <gerd@gnu.org>
7838
7839 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
7840 the menu bar when the tooltip is unmapped.
7841
7842 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
7843 sole visible buffer when we're currently in the mini-buffer, and
7844 give up if so.
7845
7846 2000-11-21 Jason Rumney <jasonr@gnu.org>
7847
7848 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
7849 put on the clipboard.
7850 (Fw32_get_clipboard_data): Compare data on clipboard with saved
7851 copy of what Emacs last put there. If they are the same, do not
7852 use the clipboard copy to avoid losing data due to coding conversions.
7853
7854 2000-11-22 Miles Bader <miles@gnu.org>
7855
7856 * minibuf.c (Vminibuffer_prompt_properties): New variable.
7857 (syms_of_minibuf): Initialize it.
7858 (read_minibuf): Add properties from Vminibuffer_prompt_properties
7859 to prompt, don't make read-only.
7860
7861 2000-11-21 Gerd Moellmann <gerd@gnu.org>
7862
7863 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
7864 Add BEFORE/AFTER_POTENTIAL_GC.
7865
7866 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
7867
7868 * buffer.c (mmap_free_1): Avoid a compiler warning.
7869
7870 * term.c, cm.c: Don't try to include termcap.h; see comment there.
7871
7872 2000-11-21 Kenichi Handa <handa@etl.go.jp>
7873
7874 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
7875 ... #endif scope.
7876
7877 2000-11-20 Gerd Moellmann <gerd@gnu.org>
7878
7879 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
7880 screen supports it.
7881
7882 * s/gnu-linux.h: Don't use `#cpu'.
7883
7884 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
7885 not defined in mman.h.
7886
7887 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
7888 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
7889 and store an index in the XClientMessageEvent. Storing a
7890 Lisp_Object or pointer can fail on a 64 bit system, since X only
7891 transfers 32 bits.
7892 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
7893
7894 2000-11-20 Dave Love <fx@gnu.org>
7895
7896 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
7897
7898 2000-11-20 Gerd Moellmann <gerd@gnu.org>
7899
7900 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
7901
7902 2000-11-20 Kenichi Handa <handa@etl.go.jp>
7903
7904 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
7905 by WIDTH.
7906
7907 * alloc.c (make_string): Fix previous change. Be sure to make
7908 unibyte string correctly.
7909
7910 2000-11-19 Gerd Moellmann <gerd@gnu.org>
7911
7912 * window.c (Fwindow_list): Change parameter list to be XEmacs
7913 compatible.
7914 (window_list_1): New function.
7915 (window_loop): Use it instead of Fwindow_list.
7916
7917 * sysdep.c (emacs_ospeed): New variable.
7918 (toplevel): Don't declare ospeed extern.
7919 (init_baud_rate): Use emacs_ospeed instead of ospeed.
7920
7921 * termcap.c (ospeed): Remove.
7922 (tputs) [!emacs]: Remove unused code.
7923 (tgetent): Avoid a compiler warning.
7924
7925 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
7926 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
7927 SCROLL_BAR_X_WIDGET with additional argument DPY.
7928
7929 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
7930 removed.
7931 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
7932 Take the X display as additional argument.
7933 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
7934 `Widget' is a pointer type that's not easily stored in Lisp_Object
7935 form in a portable way.
7936
7937 * dispnew.c (update_text_area): Fix last change.
7938
7939 2000-11-18 Gerd Moellmann <gerd@gnu.org>
7940
7941 * xdisp.c: Use BINDING_STACK_SIZE throughout.
7942
7943 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
7944 clear current matrices.
7945
7946 * buffer.c (mmap_enlarge): Don't print a message on stderr
7947 if mapping new memory at the end of the existing region fails.
7948
7949 * dispnew.c (update_text_area): Don't skip over equal glyphs
7950 when the last current glyph overlaps the glyph to its right.
7951
7952 2000-11-18 Miles Bader <miles@gnu.org>
7953
7954 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
7955 lines that *end* with "..." too (that's the most common case!).
7956
7957 2000-11-18 Gerd Moellmann <gerd@gnu.org>
7958
7959 * xdisp.c (resize_mini_window): Temporarily change to the
7960 mini-window's buffer if necessary.
7961
7962 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
7963 the tooltip obscures less text under it.
7964
7965 2000-11-17 Gerd Moellmann <gerd@gnu.org>
7966
7967 * puresize.h (BASE_PURESIZE): Increase to 700000.
7968
7969 2000-11-18 Jason Rumney <jasonr@gnu.org>
7970
7971 * w32term.c (w32_draw_bitmap): Use face to set colors.
7972
7973 2000-11-17 Dave Love <fx@gnu.org>
7974
7975 * lread.c (Fload): Fix #ifdef for pcc.
7976
7977 2000-11-17 Gerd Moellmann <gerd@gnu.org>
7978
7979 * xdisp.c (pos_visible_p): Compute the default character height
7980 differently.
7981
7982 2000-11-16 Gerd Moellmann <gerd@gnu.org>
7983
7984 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
7985 knowing the line's height; use the default font's height in that case.
7986
7987 * xfaces.c (weight_table): Add `demi' with the same meaning as
7988 `demibold'.
7989
7990 2000-11-16 Kenichi Handa <handa@etl.go.jp>
7991
7992 * dispnew.c (null_row): New global static variable.
7993 (clear_glyph_row): Delete local static variable null_row.
7994
7995 2000-11-15 Jason Rumney <jasonr@gnu.org>
7996
7997 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
7998 (w32_alloc_lighter_color): Use new brightness calculations from
7999 xterm.c. Scale delta to be in the range expected by W32.
8000 (w32_draw_relief_rect): Use frame relief colors.
8001
8002 2000-11-15 Gerd Moellmann <gerd@gnu.org>
8003
8004 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
8005 (Qinhibit_default_face_x_resources): New variable.
8006 (syms_of_frame): Initialize it.
8007 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
8008
8009 * xdisp.c (pos_visible_p): Improve function comment.
8010
8011 * lisp.h (BINDING_STACK_SIZE): New macro.
8012
8013 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
8014 reading the directory if readdir returns null and errno is EAGAIN
8015 or EINTR.
8016
8017 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
8018
8019 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
8020 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
8021 Set amount_to_scroll to max of dx and scroll_step so that
8022 scroll-conservatively doesn't defeat scroll-step>1.
8023 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
8024 scroll-conservatively for line-at-a-time scrolling.
8025
8026 2000-11-14 Gerd Moellmann <gerd@gnu.org>
8027
8028 * window.c (Fpos_visible_in_window_p): Call pos_visible with
8029 extra argument.
8030
8031 * xdisp.c (current_mode_line_height, current_header_line_height):
8032 New variables.
8033 (init_xdisp): Initialize them.
8034 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
8035 and use exact mode line heights if it is set.
8036
8037 * lisp.h (pos_visible_p): Change prototype.
8038
8039 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
8040 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
8041 and current_header_line_height first.
8042 (current_mode_line_height, current_header_line_height):
8043 Declare extern.
8044
8045 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
8046
8047 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
8048 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
8049 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
8050
8051 2000-11-14 Miles Bader <miles@gnu.org>
8052
8053 * xterm.c (x_alloc_lighter_color): Include an additive component
8054 too for dark colors, because FACTOR isn't enough.
8055 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
8056 New macros.
8057
8058 2000-11-13 Gerd Moellmann <gerd@gnu.org>
8059
8060 * keyboard.c (show_help_echo): Call message3_nolog with number of
8061 bytes in the help string as 2nd parameter, instead of the number
8062 of characters.
8063
8064 2000-11-13 Miles Bader <miles@gnu.org>
8065
8066 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
8067 (Fload): Use new openp return protocol.
8068 Don't try to use Vload_source_file_function to load .elc files.
8069 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
8070 openp return protocol.
8071 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
8072
8073 2000-11-11 Kenichi Handa <handa@etl.go.jp>
8074
8075 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
8076
8077 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
8078 Defined these macros.
8079 (NLIST_STRUCT): Avoid re-defining it.
8080
8081 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
8082 -I/usr/contrib/X11R6/include.
8083 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
8084
8085 2000-11-10 Jason Rumney <jasonr@gnu.org>
8086
8087 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
8088
8089 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
8090 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
8091
8092 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
8093 (Qw32_charset_vietnamese): New symbol.
8094 (xlfd_charset_of_font): New function.
8095 (w32_load_system_font): Use it.
8096 (x_to_w32_charset): Use Fassoc to find charset info. Special case
8097 when Vw32_charset_info_alist is nil to ensure default face always
8098 has font. Use Fcar and Fcdr for safety.
8099 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
8100 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
8101 pseudo-codepages for special cases.
8102 (w32_to_x_font): New parameter to allow charset portion to be
8103 specified where there is many to one mapping. Callers changed.
8104 (w32_list_fonts): Avoid listing fonts that won't display.
8105
8106 2000-11-10 Gerd Moellmann <gerd@gnu.org>
8107
8108 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
8109 (font_list_1): Renamed from font_list.
8110 (font_list): New function, trying alternative registries from
8111 Vface_alternative_font_registry_alist.
8112 (Finternal_set_alternative_font_registry_alist): New function.
8113 (syms_of_xfaces): Initialize and Staticpro
8114 Vface_alternative_font_registry_alist.
8115 Defsubr Finternal_set_alternative_font_registry_alist.
8116
8117 2000-11-09 Ken Raeburn <raeburn@gnu.org>
8118
8119 * lisp.h (Flooking_at): Declare.
8120
8121 2000-11-09 Gerd Moellmann <gerd@gnu.org>
8122
8123 * dired.c (directory_files_internal): Fix a braino.
8124
8125 * dired.c (directory_files_internal): Add missing GCPRO's.
8126 Some cleanup.
8127
8128 2000-11-08 Gerd Moellmann <gerd@gnu.org>
8129
8130 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
8131 (resize_mini_window): Return quickly if Vresize_mini_window is
8132 nil. Don't return if Vmax_mini_window_height is nil.
8133
8134 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
8135 (syms_of_xdisp): Initialize them.
8136 (resize_mini_window): Act according to the setting of
8137 Vresize_mini_window.
8138 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
8139
8140 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
8141 scroll bar widget after configuring it, so that it will appear at
8142 the right position from the start.
8143 (XTredeem_scroll_bar): Cleaned up.
8144
8145 2000-11-08 Kenichi Handa <handa@etl.go.jp>
8146
8147 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
8148 font is taller than the frame line, we don't have to bias the
8149 division by two.
8150
8151 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
8152
8153 2000-11-07 Dave Love <fx@gnu.org>
8154
8155 * config.in (HAVE_MKSTEMP): Add.
8156
8157 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
8158
8159 2000-11-07 Gerd Moellmann <gerd@gnu.org>
8160
8161 * window.c (Fset_window_configuration): Don't try to preserve
8162 point in the current buffer, if that buffer is displayed in more
8163 than one window.
8164
8165 * xfaces.c (lookup_named_face): If default face isn't realized,
8166 try to realize it. Return -1 if not successful.
8167 (Fx_list_fonts): Handle case that face cannot be determined.
8168 (Fface_font): Likewise.
8169
8170 2000-11-06 Gerd Moellmann <gerd@gnu.org>
8171
8172 * window.c (displayed_window_lines): Detect partially
8173 visible lines at the bottom correctly.
8174
8175 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
8176
8177 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
8178 when ensuring we don't do visit in indirect buffer.
8179
8180 2000-11-06 Kenichi Handa <handa@etl.go.jp>
8181
8182 * composite.h (compose_chars_in_text): Add prototype.
8183
8184 * composite.c (Vcomposition_function_table): New variable.
8185 (Qcomposition_function_table): New variable.
8186 (run_composition_function): Call
8187 Vcompose_chars_after_function with three arguments.
8188 (compose_chars_in_text): New function.
8189 (syms_of_composite): Modified the doc-string of
8190 Vcompose_chars_after_function. Declare composition-function-table
8191 as a lisp variable, and initialize it.
8192
8193 * xfns.c (x_encode_text): Suppress producing escape sequences for
8194 composition.
8195
8196 * xselect.c: Include composite.h.
8197 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
8198
8199 2000-11-05 Andrew Innes <andrewi@gnu.org>
8200
8201 * w32term.c (x_produce_glyphs): Fix typo in enum name.
8202
8203 * sysdep.c (read_input_waiting): Remove extraneous argument to
8204 read_socket_hook.
8205
8206 * w32fns.c (Fx_server_version): Include w32_build_number in the
8207 return list.
8208
8209 * w32heap.c (w32_build_number): New variable.
8210 (cache_system_info): Set it.
8211
8212 * w32heap.h (w32_build_number): Add extern.
8213
8214 * emacs.c (syms_of_emacs): Update docstring for
8215 system-configuration, to reflect the actual usage on MS-Windows.
8216
8217 2000-10-31 Gerd Moellmann <gerd@gnu.org>
8218
8219 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
8220 process idle timers while waiting for another event.
8221
8222 * dispnew.c (update_frame_line): Handle case where spaces in
8223 the default face are colored.
8224
8225 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
8226 window height hasn't changed.
8227
8228 2000-10-31 Jason Rumney <jasonr@gnu.org>
8229
8230 * w32term.c (x_produce_glyphs): Handle composite characters.
8231 (x_draw_glyph_string_foreground)
8232 (x_draw_composite_glyph_string_foreground): Restore old font.
8233
8234 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
8235
8236 * minibuf.c (read_minibuf): Reset the undo history just before
8237 starting the recursive-edit.
8238
8239 2000-10-30 Gerd Moellmann <gerd@gnu.org>
8240
8241 * xfaces.c (menu_face_change_count): New variable.
8242 (Finternal_set_lisp_face_attribute): Increment it for changes
8243 of the `menu' face.
8244 (realize_basic_faces): Reflect changes in the `menu' faces
8245 in menu bars.
8246
8247 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
8248 dy obtained from the iterator's y-position after moving from
8249 scroll_margin_pos to PT; see comment there.
8250
8251 * xdisp.c (safe_eval_handler): Call add_to_log.
8252
8253 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
8254 is not a symbol or string.
8255
8256 * xdisp.c (echo_area_display): Don't perform a display update from
8257 inside redisplay. The update will happen anyway at the end of
8258 redisplay, and it can confuse redisplay (GC messages while
8259 redisplaying, for instance.)
8260
8261 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
8262
8263 * xrdb.c (x_load_resources): Use the class name in the defaults.
8264
8265 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
8266 (regex_compile): Catch bogus \(\1\).
8267
8268 2000-10-30 Gerd Moellmann <gerd@gnu.org>
8269
8270 * xterm.c (x_alloc_nearest_color): Fix last change to compare
8271 RGB values.
8272
8273 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
8274 we have a color cache, check that the cached color equals the
8275 allocated color. If not, clear the color cache.
8276
8277 * window.c (displayed_window_lines): Change buffers if necessary.
8278 Fix computation of displayed lines.
8279
8280 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
8281 update_menu_bindings to DEFVAR_BOOL.
8282
8283 2000-10-30 Kenichi Handa <handa@etl.go.jp>
8284
8285 * search.c (Fset_match_data): Be sure to make search_regs always sane.
8286
8287 * puresize.h (BASE_PURESIZE): Increase to 680000.
8288
8289 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
8290
8291 2000-10-29 Jason Rumney <jasonr@gnu.org>
8292
8293 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
8294
8295 * w32term.c (w32_bdf_per_char_metric): Negate descent.
8296 (w32_cache_char_metrics): Handle possibility that 'x' does not
8297 exist in a BDF font.
8298 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
8299
8300 * w32bdf.h (bdffont): Add nchars.
8301
8302 * w32bdf.c (set_bdf_font_info): Set it.
8303 (w32_BDF_TextOut): Swap byte order of double byte characters.
8304 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
8305
8306 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
8307
8308 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
8309 don't override the colors in frame's param_alist, unless they are
8310 unspecified.
8311
8312 * term.c (reassert_line_highlight): If inverse_video is non-zero,
8313 reverse the effect of the highlight flag.
8314
8315 2000-10-27 Ken Raeburn <raeburn@gnu.org>
8316
8317 * window.h (Fwindow_live_p): Declare.
8318
8319 * undo.c (record_delete): Check that last_undo_buffer is really a
8320 buffer before applying XBUFFER to it.
8321
8322 * keymap.c (where_is_internal): Pass lisp object, not integer, to
8323 Faref.
8324
8325 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8326
8327 * lisp.h (KEYMAPP): New macro.
8328 (get_keymap): Remove.
8329 (get_keymap_1): Rename get_keymap.
8330
8331 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
8332
8333 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
8334
8335 * xmenu.c (single_submenu): Use KEYMAPP.
8336 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8337 Use KEYMAPP rather than Fkeymapp.
8338
8339 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
8340
8341 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
8342 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8343 Use KEYMAPP rather than Fkeymapp.
8344 (single_submenu): Use KEYMAPP.
8345 (w32_menu_show, w32_dialog_show): Use TRUE.
8346
8347 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
8348
8349 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
8350 (Fkeymapp): Use KEYMAPP.
8351 (get_keymap): Rename from get_keymap_1. Remove old def.
8352 Return t when autoload=0 and error=0 and the keymap needs autoloading.
8353 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
8354 (Fminor_mode_key_binding): Don't raise an error if the binding
8355 is not a keymap.
8356 (Fuse_global_map, Fuse_local_map): Allow autoloading.
8357 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
8358
8359 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
8360 Allow Vspecial_event_map to be autoloaded.
8361 (menu_bar_items): Fetch the keymap rather than using keymapp.
8362 (menu_bar_one_keymap): No need to follow func-indirect any more.
8363 (parse_menu_item): get_keymap_1 -> get_keymap.
8364 (tool_bar_items): Fetch the keymap rather than using keymapp.
8365 (read_key_sequence): Use KEYMAPP.
8366
8367 * intervals.c (get_local_map): Use get_keymap rather than following
8368 function-indirections explicitly.
8369
8370 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
8371
8372 2000-10-27 Jason Rumney <jasonr@gnu.org>
8373
8374 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
8375 point, as Windows has oversized fonts.
8376
8377 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
8378
8379 2000-10-27 Gerd Moellmann <gerd@gnu.org>
8380
8381 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
8382 (freehook, reallochook): Handle null pointer arguments.
8383 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
8384
8385 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8386
8387 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
8388 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
8389 Giving in to popular pressure to shut up the compiler with casts.
8390
8391 2000-10-27 Gerd Moellmann <gerd@gnu.org>
8392
8393 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
8394 signed value, and use a default value computed from the font's
8395 maximum descent.
8396
8397 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
8398
8399 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
8400 that specify a negative underline position can still use underlines.
8401
8402 * window.c (Fpos_visible_in_window_p): Make POS default to
8403 WINDOW's point, not the current buffer's point.
8404
8405 2000-10-26 Dave Love <fx@gnu.org>
8406
8407 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
8408 when it's necessary.
8409
8410 2000-10-26 Gerd Moellmann <gerd@gnu.org>
8411
8412 * window.c (size_window): Compute size difference from sum of old
8413 child window sizes instead of from parent's size.
8414
8415 * xdisp.c (pos_visible_p): Change current buffer if necessary.
8416 Handle obscured lines at the top of the window.
8417
8418 * frame.c (Fdelete_frame): Doc fix. Move running the hook
8419 down after the last error condition check.
8420
8421 * frame.c (Fdelete_frame): Run delete-frame-hook.
8422
8423 2000-10-26 Kenichi Handa <handa@etl.go.jp>
8424
8425 * coding.c (decode_coding): Fix previous change (check also
8426 CODING_MODE_LAST_BLOCK).
8427
8428 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8429
8430 * regex.c: More `unsigned char' -> `re_char' changes.
8431 Also change several `int' into `re_wchar_t'.
8432 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
8433 (PUSH_FAILURE_POINTER): Don't cast any more.
8434 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
8435 We want GCC to complain, since this piece of code makes
8436 re_match non-reentrant, which *should* be fixed.
8437 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
8438 (EXTEND_BUFFER): Use RETALLOC.
8439 (SET_LIST_BIT): Don't cast.
8440 (re_wchar_t): New type.
8441 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
8442 that those two functions will always properly return.
8443 (IMMEDIATE_QUIT_CHECK): Cast to void.
8444 (analyse_first): Use recursion rather than an explicit stack.
8445 (re_compile_fastmap): Can't fail anymore.
8446 (re_search_2): Don't check re_compile_fastmap for failure.
8447 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
8448 Now also sets the new value (passed in a new argument).
8449 (re_match_2_internal): Use it.
8450 Also, use a new var `reg' of type size_t when looping through regs
8451 rather than reuse the inappropriate `mcnt'.
8452
8453 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
8454 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
8455 (where_is_internal): Renamed from Fwhere_is_internal.
8456 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
8457 (Fwhere_is_internal): New function wrapping where_is_internal.
8458 (where_is_internal_1): Handle the case where we're filling the cache.
8459 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
8460
8461 2000-10-25 Miles Bader <miles@gnu.org>
8462
8463 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
8464
8465 2000-10-25 Gerd Moellmann <gerd@gnu.org>
8466
8467 * window.c (pos_fully_visible_p): Removed.
8468 (Fpos_visible_in_window_p): Use pos_visible_p to determine
8469 if position is visible and/or fully visible.
8470
8471 * lisp.h (pos_visible_p): Add prototype.
8472
8473 * xdisp.c (pos_visible_p): New function.
8474
8475 2000-10-25 Kenichi Handa <handa@etl.go.jp>
8476
8477 * process.c (send_process): If OBJECT is t, it means that the data
8478 is from C string, but we should encode it. Before calling
8479 setup_raw_text_coding_system, be sure to flush out data by the
8480 previous coding system.
8481
8482 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
8483
8484 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
8485 assignment of startpos to prev when startpos == pos.
8486
8487 * editfns.c (find_field): Set the field stickiness correctly from
8488 overlay fields. Use renamed `text_property_stickiness'.
8489 (text_property_stickiness): Renamed from `char_property_stickiness'.
8490 Only check text properties, not overlays.
8491 * textprop.c (get_char_property_and_overlay): New function.
8492 (Fget_char_property): Use it.
8493 * intervals.h (get_char_property_and_overlay): Add declaration.
8494
8495 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8496
8497 * keymap.c: Use AREF, ASET and ASIZE macros.
8498 (Fmake_sparse_keymap): Docstring fix.
8499 (synkey): Remove.
8500 (shadow_lookup): Move up.
8501 Handle the case where lookup-key returns an integer.
8502 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
8503 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
8504 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
8505 Simplify/rewrite the keymap-finding code.
8506 Add check for command shadowing, using shadow_lookup.
8507
8508 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
8509
8510 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
8511 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
8512 a symbol.
8513
8514 2000-10-24 Andrew Innes <andrewi@gnu.org>
8515
8516 * dired.c (directory_files_internal_unwind): New function.
8517 (directory_files_internal): Use it to ensure closedir is called
8518 even if expand-file-name or file-attributes throw, eg. because of
8519 a user interrupt. Also enable immediate_quit while calling
8520 re_search, so that matching can be interrupted as well.
8521
8522 2000-10-24 Andrew Innes <andrewi@gnu.org>
8523
8524 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
8525 NT-Emacs only.
8526 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
8527 so that re_search functions only quit when callers expect them to.
8528
8529 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8530
8531 * regex.c (regex_compile): Change the way of handling a range from
8532 a char less than 256 to a char not less than 256.
8533
8534 2000-10-24 Gerd Moellmann <gerd@gnu.org>
8535
8536 * window.c (size_window): Prevent setting window's width or
8537 height to a negative value (esp. with XSETFASTINT).
8538
8539 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
8540 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
8541 (protect_malloc_state) [GC_MALLOC_CHECK &&
8542 GC_PROTECT_MALLOC_STATE]: New function.
8543 (PROTECT_MALLOC_STATE): New macro.
8544 (__malloc_initialize, morecore, _malloc_internal)
8545 (_free_internal) _realloc_internal): Use it to make _heapinfo
8546 read-only outside of gmalloc.
8547
8548 * keymap.c: Update copyright.
8549
8550 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
8551 a symbol.
8552
8553 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
8554
8555 * filelock.c (unlock_all_files): Use unlock_file to expand each
8556 buffer's file_truename before trying remove its lock file.
8557
8558 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
8559
8560 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
8561 or CRLF, decode EOLs.
8562
8563 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8564
8565 * window.c (Fdisplay_buffer): Fix doc.
8566
8567 2000-10-23 Jason Rumney <jasonr@gnu.org>
8568
8569 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
8570 ASCII font of default fontset on Windows.
8571
8572 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
8573 xterm.c comment below).
8574
8575 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
8576
8577 2000-10-23 Gerd Moellmann <gerd@gnu.org>
8578
8579 * xterm.c (x_connection_closed): Reset handling_signal.
8580
8581 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
8582
8583 2000-10-23 Miles Bader <miles@gnu.org>
8584
8585 * window.c (window_scroll_pixel_based, window_scroll_line_based):
8586 Pass nil for FULLY argument to Fpos_visible_in_window_p to
8587 maintain old behavior.
8588 * minibuf.c (Fminibuffer_complete): Likewise.
8589
8590 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
8591
8592 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
8593 that when a font can't be exactly centered, it errs up rather than
8594 down.
8595
8596 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8597
8598 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8599
8600 2000-10-23 Andrew Choi <akochoi@i-cable.com>
8601
8602 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
8603
8604 * dispnew.c [macintosh]: Include macterm.h.
8605 (init_display) [macintosh]: Initialization for window system.
8606
8607 * emacs.c (main) [macintosh]: Call syms_of_textprop,
8608 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
8609 syms_of_search, x_term_init, and init_keyboard before calling
8610 init_window_once. Also, call syms_of_xmenu.
8611
8612 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
8613 default fontset to Monaco.
8614
8615 * frame.c [macintosh]: Include macterm.h. Remove declarations of
8616 NewMacWindow and DisposeMacWindow.
8617 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
8618 instead of calling NewMacWindow and setting fields of
8619 f->output_data.mac directly. Call init_frame_faces.
8620 (Fdelete_frame) [macintosh]: Remove unused code.
8621 (Fmodify_frame_parameters) [macintosh]: Call
8622 x_set_frame_parameters instead of mac_set_frame_parameters.
8623
8624 * frame.h [macintosh]: Define menu_bar_lines field in struct
8625 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
8626
8627 * keyboard.c [macintosh]: Include macterm.h.
8628 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
8629 and menu_bar_activate_event type events as for X and NT.
8630 (make_lispy_event) [macintosh]: Construct lisp events of type
8631 MENU_BAR_EVENT as for X and NT.
8632
8633 * sysdep.c [macintosh]: Remove declaration for sys_signal.
8634 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
8635 (sys_subshell) [macintosh]: Remove definition entirely.
8636 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
8637 Vwindow_system_version here. Remove initialization of
8638 Vx_bitmap_file_path.
8639 (read_input_waiting): Correct the number of parameters passed to
8640 read_socket_hook.
8641 Move all Macintosh functions to mac/mac.c.
8642
8643 * term.c [macintosh]: Include macterm.h.
8644
8645 * window.c [macintosh]: Include macterm.h.
8646
8647 * xdisp.c [macintosh]: Include macterm.h. Declare
8648 set_frame_menubar and pending_menu_activation.
8649 (echo_area_display) [macintosh]: Do not return if terminal frame
8650 is the selected frame.
8651 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
8652 Allow only the selected frame to set menu bar.
8653 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
8654 calling FRAME_EXTERNAL_MENU_BAR (f).
8655 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
8656
8657 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
8658 and check_x. Declare XCreateGC. Define x_create_gc and
8659 x_free_gc. Initialize font_sort_order.
8660 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
8661 but call x_list_fonts instead of w32_list_fonts.
8662 (Finternal_face_x_get_resource) [macintosh]: Do not call
8663 display_x_get_resource.
8664 (prepare_face_for_display) [macintosh]: Set xgcv.font.
8665 (realize_x_face) [macintosh]: Load the font if it is specified in
8666 ATTRS.
8667 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
8668
8669 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
8670
8671 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
8672 is nil: since we go to the end of submap anyway, we'd end up
8673 setting nil to nil.
8674 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
8675 doesn't obey autoload.
8676
8677 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8678
8679 * msdos.c (dos_set_window_size): Update screen dimension variables.
8680
8681 2000-10-21 Jason Rumney <jasonr@gnu.org>
8682
8683 * w32term.c (w32_cache_char_metrics): Double check that font is
8684 really fixed pitch before trusting tmPitchAndFamily.
8685
8686 2000-10-21 Andrew Innes <andrewi@gnu.org>
8687
8688 * w32gui.h (w32_char_font_type): Move enum from w32term.c
8689
8690 * w32term.h: Extern decl for w32_cache_char_metrics.
8691
8692 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
8693
8694 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
8695 (w32_unload_font): Free per_char array if present.
8696
8697 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
8698 cached information in emulated XFontStruct to handle common cases
8699 quickly. Do not allocate XCharStruct for return.
8700 (w32_native_per_char_metric): New function.
8701 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
8702 allocating one.
8703 (x_produce_glyphs): Don't get an HDC. Change calls to
8704 w32_per_char_metric to match arg change above. Remove calls to
8705 free results.
8706 (w32_get_glyph_overhangs): Ditto.
8707 (w32_cache_char_metrics): New function.
8708
8709 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
8710 ($(BLD)/casefiddle.$(O)): Remove compile command.
8711 ($(BLD)/gmalloc.$(O)): Remove compile command.
8712 ($(BLD)/dispnew.obj):
8713 ($(BLD)/keyboard.obj):
8714 ($(BLD)/w32inevt.obj):
8715 ($(BLD)/w32bdf.obj):
8716 ($(BLD)/alloc.obj):
8717 ($(BLD)/buffer.obj):
8718 ($(BLD)/editfns.obj):
8719 ($(BLD)/emacs.obj):
8720 ($(BLD)/fileio.obj):
8721 ($(BLD)/fns.obj):
8722 ($(BLD)/indent.obj):
8723 ($(BLD)/insdel.obj):
8724 ($(BLD)/intervals.obj):
8725 ($(BLD)/minibuf.obj):
8726 ($(BLD)/print.obj):
8727 ($(BLD)/scroll.obj):
8728 ($(BLD)/sysdep.obj):
8729 ($(BLD)/textprop.obj):
8730 ($(BLD)/widget.obj):
8731 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
8732 ($(BLD)/term.obj): Add dependency on dispextern.h.
8733
8734 * makefile.nt ($(BLD)\dispnew.obj):
8735 ($(BLD)\keyboard.obj):
8736 ($(BLD)\w32inevt.obj):
8737 ($(BLD)\w32bdf.obj):
8738 ($(BLD)\alloc.obj):
8739 ($(BLD)\buffer.obj):
8740 ($(BLD)\editfns.obj):
8741 ($(BLD)\emacs.obj):
8742 ($(BLD)\fileio.obj):
8743 ($(BLD)\fns.obj):
8744 ($(BLD)\indent.obj):
8745 ($(BLD)\insdel.obj):
8746 ($(BLD)\intervals.obj):
8747 ($(BLD)\minibuf.obj):
8748 ($(BLD)\print.obj):
8749 ($(BLD)\scroll.obj):
8750 ($(BLD)\sysdep.obj):
8751 ($(BLD)\textprop.obj):
8752 ($(BLD)\widget.obj):
8753 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
8754 ($(BLD)\term.obj): Add dependency on dispextern.h
8755
8756 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8757
8758 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
8759 with an additional argument of Qt.
8760
8761 2000-10-21 Miles Bader <miles@gnu.org>
8762
8763 * window.c (pos_fully_visible_in_window_p): New function.
8764 (Fpos_visible_in_window_p): Add FULLY argument.
8765 Use pos_fully_visible_in_window_p.
8766 (window_scroll_pixel_based, window_scroll_line_based): Update
8767 calls to Fpos_visible_in_window_p.
8768 * lisp.h (Fpos_visible_in_window_p): Update prototype
8769
8770 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8771
8772 * alloc.c (toplevel): Conditionalize compilation of mem_*
8773 functions differently.
8774
8775 2000-10-20 Jason Rumney <jasonr@gnu.org>
8776
8777 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
8778 mem_init where it used to be. mem_z etc not defined otherwise.
8779
8780 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8781
8782 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
8783 GC_MALLOC_CHECK.
8784 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
8785 structure definition and related variabled to the top of the file.
8786 Include this code when GC_MALLOC_CHECK is defined.
8787 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
8788 register/unregister allocated region.
8789 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
8790 which isn't allocated.
8791 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
8792 something which is already in use.
8793 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
8794 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
8795 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
8796 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
8797
8798 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
8799 _malloc_internal instead of malloc.
8800 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
8801 of free.
8802
8803 2000-10-20 Andrew Innes <andrewi@gnu.org>
8804
8805 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
8806 Windows.
8807 (my_strftime) <macro>: Don't use macro arg list when redefining as
8808 _strftime_copytm.
8809 (my_strftime) <function>: Supply 0 as ut argument.
8810
8811 2000-10-19 Jason Rumney <jasonr@altavista.net>
8812
8813 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
8814 including dispextern.h, as it stops faces from working.
8815
8816 * w32fns.c (Fx_create_frame): Don't bother calling
8817 face-set-after-frame-default since the caller does it for us
8818 anyway. Clean up calls to x_get_arg to be consistent with X.
8819
8820 * w32term.c (x_produce_glyphs): Handle
8821 unibyte_display_via_language_environment correctly.
8822 (w32_draw_box_rect): Fix the calculation of width and height.
8823
8824 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
8825 as it has stopped working.
8826 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
8827 menu-bar.
8828
8829 2000-10-19 Gerd Moellmann <gerd@gnu.org>
8830
8831 * eval.c (skip_debugger): Prevent a compiler warning.
8832 (Fcondition_case): Likewise.
8833 (Fbacktrace_frame): Use a null interactive spec.
8834
8835 2000-10-19 Kenichi Handa <handa@etl.go.jp>
8836
8837 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
8838
8839 2000-10-18 Gerd Moellmann <gerd@gnu.org>
8840
8841 * strftime.c: Sync with glibc, file version 1.78.
8842 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
8843 should no longer be used according to ISO 8601.
8844
8845 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
8846 no map for meta_prefix_char, don't try to use it as a keymap.
8847 Instead, if T_OK is non-zero, look up a default binding, if any,
8848 otherwise, if T_OK is zero, return nil.
8849
8850 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
8851 (x_to_xcolors, png_load): Use x_query_color.
8852
8853 * xterm.c (x_color_cells, x_query_colors, x_query_color):
8854 New functions.
8855 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
8856 which can be slow.
8857 (x_copy_color, x_alloc_lighter_color): Likewise.
8858
8859 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
8860 (x_query_color, x_query_colors): Add prototype.
8861
8862 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
8863 check_string_bytes only if not noninteractive, increase count to 50.
8864
8865 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
8866
8867 * insdel.c (adjust_markers_for_delete): Handle before-insertion
8868 markers correctly.
8869
8870 2000-10-17 Gerd Moellmann <gerd@gnu.org>
8871
8872 * alloc.c (pure_bytes_used): Renamed from pureptr.
8873 (ALIGN): New macro.
8874 (pure_alloc): New function.
8875 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
8876 Use it.
8877 (Fpurecopy): Use PURE_POINTER_P.
8878
8879 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
8880 PT has moved backward.
8881
8882 * xdisp.c (cursor_row_p): Take continued lines into account.
8883
8884 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
8885 string's size_byte.
8886 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
8887 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
8888 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
8889 string allocated.
8890
8891 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
8892 of selective display off while searching for the next line start.
8893
8894 2000-10-17 Kenichi Handa <handa@etl.go.jp>
8895
8896 * Makefile.in (term.o): Depend on dispextern.h.
8897
8898 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
8899
8900 * keymap.c (keymap_memberp): Ensure that nil is not a member.
8901
8902 2000-10-16 Gerd Moellmann <gerd@gnu.org>
8903
8904 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
8905 the iterator at the beginning, so that they can be set later on,
8906 for instance in reseat_at_next_visible_line_start, without being
8907 overwritten.
8908
8909 * xfns.c (pbm_format): Add :foreground and :background keywords.
8910 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
8911 (xbm_load): Recognize foreground and background color specifications.
8912
8913 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
8914
8915 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
8916
8917 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
8918
8919 * msdos.c (IT_set_face): Compare highlighted face with the default
8920 face, and invert colors if these faces' colors are identical.
8921 (Fmsdos_remember_default_colors): Don't swap foreground and
8922 background colors in initial_colors[].
8923 (IT_set_frame_parameters): Don't swap frame's foreground and
8924 background pixels. If ALIST includes "(reverse . t)", swap
8925 foreground-color and background-color properties in frame's
8926 param_alist. If the original frame's param_alist doesn't specify
8927 the colors, store unspecified-fg and unspecified-bg, reversed if
8928 required.
8929
8930 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
8931 the colors are unspecified and reversed, reverse fore- and back-
8932 ground in the returned value.
8933 (Fframe_parameter): Ditto.
8934
8935 2000-10-16 Gerd Moellmann <gerd@gnu.org>
8936
8937 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
8938 get_last_unchanged_at_beg_row.
8939 (find_first_unchanged_at_end_row): Renamed from
8940 get_first_unchanged_at_end_row.
8941 (find_first_unchanged_at_end_row): Convert assertions to
8942 unconditional tests which abort. When looking for a row in
8943 unchanged text, don't go further back than first_text_row.
8944
8945 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
8946 Don't add in the last line's height when deciding if the new
8947 position is below the scroll margin.
8948
8949 2000-10-16 Miles Bader <miles@gnu.org>
8950
8951 * editfns.c (Fconstrain_to_field): Check carefully for field
8952 boundaries if either OLD_POS or NEW_POS has a non-nil field
8953 property, even if they're the same.
8954
8955 2000-10-16 Kenichi Handa <handa@etl.go.jp>
8956
8957 * xterm.c (x_draw_box_rect): Fix the calculation of width and
8958 height for XFillRectangle.
8959
8960 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
8961
8962 * syntax.c (Fstring_to_syntax): New function extracted from
8963 Fmodify_syntax_entry.
8964 (Fmodify_syntax_entry): Use it and document the ! and | fences.
8965 (skip_chars, Fforward_comment): Remove unused variables.
8966 (syms_of_syntax): Add defsubr for string-to-syntax.
8967 (describe_syntax): Add code for comment and string fences.
8968
8969 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
8970
8971 * keymap.c (access_keymap): Add AUTOLOAD parameter.
8972 Do the meta->esc mapping. Call get_keyelt before returning.
8973 Start scanning from the second element (the first is always `keymap')
8974 to make it easier to detect when we reach a parent map.
8975 Handle the case of inheriting from a symbol whose function is a map.
8976 (Fkeymap_parent): Also handle the `inherit from symbol' case.
8977 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
8978 (get_keyelt, Flookup_key): Update call to access_keymap.
8979 Remove the meta->esc mappings.
8980 (define_as_prefix): Delete old disabled code.
8981 (menu_item_p): New function.
8982 (where_is_internal_1): Skip over the few remaining menu items.
8983 * lisp.h (access_keymap): Update prototype.
8984 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
8985 Update call to access_keymap.
8986 (follow_key, read_key_sequence): Update calls to access_keymap.
8987 Remove the meta->esc mappings.
8988
8989 2000-10-13 Gerd Moellmann <gerd@gnu.org>
8990
8991 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
8992 with additional argument.
8993
8994 * xdisp.c (cursor_row_p): New function.
8995 (try_cursor_movement, display_line): Use it.
8996
8997 * xdisp.c (append_space): Also save/restore iterator's current
8998 character and its length.
8999
9000 * xdisp.c (init_from_display_pos): Add an assertion.
9001 (handle_stop): Don't set iterator's add_overlay_start.
9002 (handle_invisible_prop): Likewise.
9003 (load_overlay_strings): If text under an overlay is invisible,
9004 take both before- and after-strings into account when the iterator
9005 is positioned either at the start or at the end of the overlay.
9006 (forward_to_next_line_start): Rewritten.
9007 (reseat_at_next_visible_line_start): Rewritten.
9008 (set_iterator_to_next): Add parameter RESEAT_P.
9009
9010 * dispextern.h (struct it): Remove member add_overlay_start.
9011 (set_iterator_to_next): Change prototype.
9012
9013 2000-10-13 Kenichi Handa <handa@etl.go.jp>
9014
9015 * coding.c (code_convert_region): Be sure to initialize
9016 coding->category_idx.
9017 (decode_coding_string): Set coding->src_multibyte and
9018 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
9019 (encode_coding_string): Set coding->src_multibyte and
9020 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
9021
9022 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
9023
9024 * xfns.c (Fx_create_frame): Don't bother calling
9025 face-set-after-frame-default since the caller does it for us anyway.
9026
9027 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
9028
9029 * window.c (coordinates_in_window): Fix detection of vertical line
9030 on character terminals.
9031
9032 2000-10-12 Gerd Moellmann <gerd@gnu.org>
9033
9034 * editfns.c (save_excursion_save): Additionally record the
9035 selected window.
9036 (save_excursion_restore): If buffer was visible in a window, and a
9037 different window was selected, and the old selected window is
9038 still live, restore point in that window.
9039
9040 2000-10-12 Kenichi Handa <handa@etl.go.jp>
9041
9042 * xterm.c (x_produce_glyphs): Handle
9043 unibyte_display_via_language_environment correctly.
9044
9045 * regex.c (regex_compile): Change the way of handling a range from
9046 unibyte char to multibyte char.
9047
9048 * syntax.c (skip_chars): Change the way of handling a range from
9049 unibyte char to multibyte char.
9050
9051 * process.c (read_process_output): Cancel previous change.
9052
9053 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
9054
9055 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
9056
9057 * charset.c (Ffind_charset_string): Doc fix.
9058 (Ffind_charset_region): Doc fix.
9059
9060 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
9061
9062 * process.c (read_process_output): Fix previous change. Adjust
9063 multibyteness of text to insert in a buffer by
9064 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
9065
9066 2000-10-10 Andreas Schwab <schwab@suse.de>
9067
9068 * alloc.c (mark_object): Remove all workarounds installed on
9069 1993-08-08.
9070
9071 2000-10-10 Kenichi Handa <handa@etl.go.jp>
9072
9073 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
9074 (base64_encode_1): Make it work for a text of multibyte form.
9075 (Fbase64_decode_region): Allocate sufficient memory for multibyte
9076 case. Don't call str_to_multibyte because base64_decode_1
9077 produces correct multibyte form for eight-bit codes.
9078 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
9079 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
9080 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
9081 codes.
9082
9083 * charset.h (CHAR_STRING): Optimized for single byte characters.
9084
9085 2000-10-09 Andreas Schwab <schwab@suse.de>
9086
9087 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
9088 -1 after socket is closed, to fall through to error processing.
9089
9090 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
9091
9092 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
9093 variables. If ALIST includes foreground-color or
9094 background-color, change also the colors of the default face for
9095 this frame.
9096
9097 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
9098
9099 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
9100 them extern (they are defined on xfaces.c).
9101 (syms_of_msdos): Don't intern and don't staticpro
9102 Qbackground_color and Qforeground_color.
9103
9104 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
9105
9106 * frame.c (Fframe_parameter): For non-windowed frames, if
9107 f->param_alist says foreground or background color is unspecified,
9108 call tty_color_name to return the color name computed from the
9109 frame's current colors.
9110
9111 2000-10-06 Dave Love <fx@gnu.org>
9112
9113 * terminfo.c (ospeed): Don't declare.
9114
9115 * sysdep.c: Don't include string.h.
9116 (h_errno): Declare conditional also on TRY_AGAIN.
9117
9118 * charset.c (Ffind_charset_string): Doc fix.
9119
9120 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
9121 (Fbase64_decode_region, Fbase64_decode_string): More explicit
9122 error messages.
9123
9124 2000-10-05 Dave Love <fx@gnu.org>
9125
9126 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
9127 position like menu-bar.
9128
9129 2000-10-05 Gerd Moellmann <gerd@gnu.org>
9130
9131 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
9132
9133 * xdisp.c (handle_single_display_prop): Use safe_call1.
9134 (safe_call): Renamed from call_function.
9135 (safe_call1): New function.
9136 (handle_fontified_prop): Use safe_call1 instead of call1.
9137 (safe_eval): Renamed from eval_form.
9138 (safe_eval_handler): Renamed from eval_handler.
9139 (handle_single_display_prop, display_mode_element): Use safe_eval
9140 instead of eval_form.
9141
9142 * xfaces.c (merge_face_heights): Use safe_call instead of
9143 call_function.
9144
9145 * keyboard.c (show_help_echo): Use safe_call instead of
9146 call_function; use safe_eval instead of eval_form.
9147
9148 * lisp.h (safe_call): Renamed from call_function.
9149 (safe_eval): Renamed from eval_form.
9150 (safe_call1): Add prototype.
9151
9152 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
9153
9154 * xfns.c (image_ascent): Rearrange ascent calculation for the
9155 has-a-font case.
9156
9157 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
9158
9159 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
9160 (where_is_internal_1): Don't bother ignoring menu-items any more.
9161
9162 2000-10-04 Gerd Moellmann <gerd@gnu.org>
9163
9164 * keyboard.c (update_menu_bindings): New variable.
9165 (parse_menu_item): Use AREF. If update_menu_bindings
9166 is 0, don't update menu bindings.
9167 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
9168
9169 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
9170
9171 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
9172 to `mark_object'.
9173
9174 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
9175
9176 * syntax.c (forw_comment): Match nestedness of ender/starter.
9177 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
9178 (prev_char_comstart_first): Remove.
9179 (back_comment): Check two-char comment markers more carefully
9180 to better handle overlapping cases like *//* or /* */* */ ...
9181 Match nestedness of ender/starter.
9182
9183 2000-10-02 Dave Love <fx@gnu.org>
9184
9185 * config.in (HAVE_GAI_STRERROR): Add undef.
9186
9187 * process.c (Fopen_network_stream): Use it.
9188
9189 * m/alpha.h (NO_REMAP): Don't define.
9190
9191 2000-10-02 Gerd Moellmann <gerd@gnu.org>
9192
9193 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
9194 return with a string converted to an integer or vice versa when
9195 Vmocklisp_arguments is t.
9196 (Fsignal): Likewise. The function can return for `quit'.
9197 (struct gcpro): Declare member `var' to point to a volatile
9198 Lisp_Object.
9199
9200 * eval.c (error): Prevent compiler warning.
9201
9202 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
9203
9204 * keymap.c (keymap_memberp): New function.
9205 (Fset_keymap_parent): Use it.
9206 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
9207 Use keymap_memberp to avoid creating cycles.
9208 (access_keymap): Use KEYMAPP.
9209
9210 2000-09-30 Gerd Moellmann <gerd@gnu.org>
9211
9212 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
9213 gai_strerror. Make sure xerrno is set if connect fails. Improve
9214 error recovery.
9215
9216 2000-09-29 Jason Rumney <jasonr@gnu.org>
9217
9218 * w32term.c (w32_char_font_type, w32_encode_char)
9219 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
9220 (w32_bdf_per_char_metric): New function.
9221 (w32_per_char_metric): Use it.
9222 (x_draw_glyph_string_background): Always draw background for BDF
9223 glyphs.
9224
9225 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
9226 GDI object which is a scarce resource.
9227
9228 * w32bdf.c (search_file_line): Fix skipping of whitespace.
9229 (get_quoted_string): Fix limit on memchr search.
9230 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
9231 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
9232 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
9233 (get_cached_font_char, cache_char_offset): Use macro
9234 BDF_CODEPOINT_RANGE_COVER_P.
9235 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
9236 (clear_cached_bitmap_slots): New function.
9237 (GET_HEX_VALUE): G-Z, g-z are not hex.
9238 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
9239 (get_bitmap_with_cache): Use new cache implementation.
9240 (create_offscreen_bitmap): New function.
9241 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
9242
9243 * w32term.c (x_produce_glyphs): If the distance from the current
9244 position to the next tab stop is less than a canonical character
9245 width, use the tab stop after that.
9246 (x_draw_glyphs): Handle case START and END are out of bounds more
9247 carefully.
9248 (x_clear_mouse_face): Block/unblock input.
9249 (x_display_and_set_cursor): Don't show a hollow box cursor for
9250 buffers whose cursor_type is nil.
9251
9252 2000-09-29 Gerd Moellmann <gerd@gnu.org>
9253
9254 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
9255
9256 * dispextern.h (updating_frame): Declare extern.
9257
9258 2000-09-29 Andreas Schwab <schwab@suse.de>
9259
9260 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
9261
9262 2000-09-29 Gerd Moellmann <gerd@gnu.org>
9263
9264 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
9265 use its function definition.
9266 (tool_bar_items): Likewise.
9267
9268 * lisp.h (fatal): Declare NO_RETURN.
9269
9270 2000-09-29 Kenichi Handa <handa@etl.go.jp>
9271
9272 * keymap.c: Remove the line "#undef NULL".
9273
9274 2000-09-28 Gerd Moellmann <gerd@gnu.org>
9275
9276 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
9277
9278 2000-09-28 Dave Love <fx@gnu.org>
9279
9280 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
9281
9282 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
9283
9284 * .gdbinit (xreload): Note its need on GNU/Linux.
9285
9286 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
9287 r_alloc, r_alloc_free.
9288
9289 2000-09-28 Kenichi Handa <handa@etl.go.jp>
9290
9291 * syntax.c (skip_chars): Handle negation correctly.
9292
9293 2000-09-27 Gerd Moellmann <gerd@gnu.org>
9294
9295 * xfaces.c (realize_default_face): Call set_lface_from_font_name
9296 with non-zero FORCE_P argument.
9297
9298 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
9299 Add assertions.
9300
9301 * xdisp.c (window_box_height): Add an assertion.
9302
9303 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
9304 tool-bar than is available.
9305 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
9306
9307 2000-09-27 Dave Love <fx@gnu.org>
9308
9309 * s/irix6-5.h: Now works 64-bit. Tidied.
9310
9311 2000-09-26 Gerd Moellmann <gerd@gnu.org>
9312
9313 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
9314 instead of BITS_PER_INT.
9315 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
9316 EMACS_UINT, respectively.
9317 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
9318
9319 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
9320
9321 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
9322
9323 * window.c (freeze_window_starts): Construct last argument for
9324 foreach_window differently.
9325
9326 * xfns.c (x_decode_color): Don't return a Lisp_Object.
9327
9328 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
9329 EMACS_UINT instead of `int' and `unsigned int'.
9330 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
9331
9332 * frame.h (struct frame): Make the `nothing' member of union
9333 output_data an EMACS_INT.
9334
9335 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
9336 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
9337 size in the sdata structure.
9338 (SDATA_NBYTES, SDATA_DATA): New macros.
9339 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
9340 differently for the different layout of the sdata structure.
9341 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
9342 in sdata.
9343 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
9344 Check that size recorded in the string size and size recorded in
9345 the sdata structure agree.
9346
9347 2000-09-25 Dave Love <fx@gnu.org>
9348
9349 * buffer.c: Include stdio.h.
9350
9351 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
9352
9353 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
9354
9355 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
9356 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
9357 (__malloc_extra_blocks): Declare as __malloc_size_t.
9358
9359 2000-09-25 Gerd Moellmann <gerd@gnu.org>
9360
9361 * alloc.c (mark_image): Use GC_NILP instead of NILP.
9362
9363 * keyboard.c (show_help_echo): Set help_echo_showing_p.
9364 (read_char): If help-echo is showing, preserve the echo area
9365 when redisplaying.
9366
9367 * xdisp.c (help_echo_showing_p): New variable.
9368 (set_message): Reset it to 0.
9369 (init_xdisp): Initialize help_echo_showing_p.
9370
9371 * dispextern.h (help_echo_showing_p): Declare extern.
9372
9373 * config.in: Fix typo in __GNUC_MINOR__.
9374
9375 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
9376
9377 * s/freebsd.h (POSIX_SIGNALS): Define.
9378
9379 * xterm.c (x_clear_mouse_face): Block/unblock input.
9380
9381 2000-09-24 Dave Love <fx@gnu.org>
9382
9383 * fns.c (base64_encode_1): Fix last change.
9384
9385 2000-09-22 Gerd Moellmann <gerd@gnu.org>
9386
9387 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
9388
9389 * xdisp.c (try_window_reusing_current_matrix): More fixes
9390 for the case window has a header-line.
9391
9392 2000-09-22 Dave Love <fx@gnu.org>
9393
9394 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
9395 a doc string.
9396
9397 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
9398
9399 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
9400
9401 2000-09-21 Gerd Moellmann <gerd@gnu.org>
9402
9403 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
9404 for GCC >= 2.5.
9405
9406 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
9407 Declare NO_RETURN.
9408
9409 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
9410 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
9411 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
9412 warnings.
9413
9414 * marker.c (byte_char_debug_check): Return void.
9415
9416 * xfns.c (Fx_create_frame): Set default frame parameter value
9417 for tool-bar-lines to 1.
9418
9419 * dispnew.c (scrolling_window): Compare y-positions of rows
9420 equal at the start. Some simplification.
9421
9422 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
9423 reused rows' y-position in the case window has a header-line, and
9424 new window start is greater than old window start.
9425
9426 * process.c (process_sent_to): New variable.
9427 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
9428 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
9429 Declare more parameters volatile.
9430
9431 * lread.c (Vrecursive_load_depth_limit): New variable.
9432 (Fload): Check recursive loads whose recursion depth exceeds
9433 Vrecursive_load_depth_limit.
9434 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
9435
9436 2000-09-20 Gerd Moellmann <gerd@gnu.org>
9437
9438 * fileio.c (Fread_file_name): Doc fix.
9439
9440 * editfns.c (Fmessage_or_box): Doc fix.
9441
9442 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
9443
9444 * xfns.c (xbm_scan): Allow C-style comments.
9445
9446 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
9447 symbols are specified, add color translations to the cache.
9448 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
9449 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
9450 xpm_cache_color.
9451 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
9452 structures to xpm_init_color_cache.
9453
9454 2000-09-19 Gerd Moellmann <gerd@gnu.org>
9455
9456 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
9457
9458 2000-09-19 Andrew Innes <andrewi@gnu.org>
9459
9460 * makefile.nt (bootstrap-emacs): Don't change directory.
9461
9462 2000-09-19 Kenichi Handa <handa@etl.go.jp>
9463
9464 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
9465
9466 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
9467 If output buffer is too small, signal an appropriated error.
9468
9469 2000-09-18 Dave Love <fx@gnu.org>
9470
9471 * keyboard.c (menu_bar_items, tool_bar_items)
9472 (current_active_maps): Remove redundant get_local_map call.
9473
9474 2000-09-18 Gerd Moellmann <gerd@gnu.org>
9475
9476 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
9477 cursor for buffers whose cursor_type is nil.
9478
9479 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
9480 a feature to implement that is already implemented.
9481 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
9482 warnings.
9483
9484 * xfns.c (x_clear_image_1): New function.
9485 (x_clear_image): Use it.
9486 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
9487
9488 * dispnew.c (update_window): Move test for invisible lines
9489 at the top to update_window_line.
9490 (update_window_line): Handle invisible lines here.
9491
9492 * xfns.c (clear_image_cache): Clear current matrices of all
9493 frames sharing an image cache. Block input while freeing
9494 images. Fix timestamp comparison.
9495 (x_clear_image): Also free the mask.
9496
9497 * xfns.c (lookup_image): Block input while loading the image so
9498 that we won't get interrupted in a state where the image isn't yet
9499 set up completely.
9500 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
9501 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
9502 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
9503 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
9504
9505 2000-09-16 Gerd Moellmann <gerd@gnu.org>
9506
9507 * dispnew.c (update_window): Make sure to make desired rows
9508 current even if they are completely invisible at the top
9509 of a window.
9510
9511 2000-09-15 Gerd Moellmann <gerd@gnu.org>
9512
9513 * xfns.c (lookup_image): Build mask before applying an algorithm.
9514 Recognize algorithm `disabled'.
9515 (cross_disabled_images): New variable.
9516 (COLOR_INTENSITY): New macro.
9517 (x_detect_edges): Use COLOR_INTENSITY.
9518 (x_disable_image): New function.
9519 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
9520
9521 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
9522 disabled state, don't apply an image transformation algorithm if
9523 the user specified an image for the disabled state. Use
9524 `:algorithm disabled' for creating a disabled item's image if the
9525 user hasn't specified an image.
9526
9527 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
9528 allocation functions with the XPM lib.
9529 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
9530 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
9531 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
9532 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
9533 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
9534 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
9535 functions, if possible, because these handle color allocation
9536 failure more gracefully.
9537 (Fimage_mask_p): New function.
9538
9539 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
9540 (Qedge_detection, Qheuristic): New symbols.
9541 (syms_of_xfns): Initialize new symbols.
9542 (lookup_image): Handle `:mask X', `:algorithm emboss', and
9543 `algorithm (edge-detection ...)'.
9544 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
9545 (tiff_format, gif_format, gs_format): Add `:mask'.
9546 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
9547 (GIF_MASK, GS_MASK): New enumerators.
9548 (x_laplace_read_row, x_laplace_write_row): Functions removed.
9549 (emboss_matrix, laplace_matrix): New variables.
9550 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
9551 (x_edge_detection): New functions.
9552 (x_laplace): Rewritten in terms of x_detect_edges.
9553 (x_build_heuristic_mask): If image has a mask, free it.
9554
9555 2000-09-14 Andrew Innes <andrewi@gnu.org>
9556
9557 * makefile.w32-in: Revert to Unix line endings.
9558
9559 2000-09-14 Andrew Innes <andrewi@gnu.org>
9560
9561 * makefile.w32-in: Standardize indentation somewhat.
9562 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
9563 cater for differences between shells.
9564
9565 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
9566
9567 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9568
9569 * xterm.c (x_produce_glyphs): If the distance from the current
9570 position to the next tab stop is less than a canonical character
9571 width, use the tab stop after that.
9572
9573 2000-09-14 Dave Love <fx@gnu.org>
9574
9575 * buffer.c (alloc_buffer_text): Fix xmalloc call.
9576
9577 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9578
9579 * xdisp.c (handle_fontified_prop): While running fontification
9580 functions, bind `fontification-functions' and
9581 `after-change-functions' to nil.
9582
9583 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
9584 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
9585
9586 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
9587
9588 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
9589 USE_MMAP_FOR_BUFFERS.
9590
9591 * insdel.c (make_gap): Use enlarge_buffer_text.
9592
9593 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
9594 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
9595 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
9596 from former r_alloc_* functions in ralloc.c.
9597 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
9598 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
9599 (mmap_init) [REL_ALLOC_MMAP]: New function.
9600 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
9601 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
9602 BUFFER_FREE.
9603
9604 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
9605 (enlarge_buffer_text): Add prototype.
9606
9607 * ralloc.c: Remove everything having to do with the use of mmap.
9608
9609 2000-09-13 Gerd Moellmann <gerd@gnu.org>
9610
9611 * sound.c (Fplay_sound): Doc fix.
9612
9613 * keyboard.c: Avoid some more compiler warnings.
9614 (parse_tool_bar_item): Ignore cached key bindings.
9615
9616 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
9617 and allocation of Lisp data.
9618
9619 2000-09-12 Gerd Moellmann <gerd@gnu.org>
9620
9621 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
9622 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
9623 defaults first.
9624
9625 * lread.c (Fload): Put code checking for recursive loads in #if 0.
9626
9627 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
9628
9629 * ccl.c: Comment fixed.
9630 (MAX_MAP_SET_LEVEL): Increased to 30.
9631 (PUSH_MAPPING_STACK): Enclose with do-while block.
9632 (POP_MAPPING_STACK): Likewise.
9633 (stack_idx_of_map_multiple): New variable.
9634 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
9635 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
9636 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
9637 (ccl_driver) <CCL_MapSingle>: Likewise.
9638 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
9639 with the case where looking up process reaches to the end of
9640 map-set, and call CCL programs as the above change.
9641
9642 2000-09-11 Gerd Moellmann <gerd@gnu.org>
9643
9644 * xfns.c (png_load, jpeg_load): Declare some variables volatile
9645 that might be clobbered by longjmp.
9646 (check_x_display_info, x_decode_color, create_frame_xic)
9647 (Fx_display_backing_store, Fx_display_visual_class)
9648 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
9649
9650 * lread.c (init_lread): Set Vloads_in_progress to nil.
9651 (Fload): Show list of recursively loaded files, when signaling an
9652 error.
9653
9654 * lread.c (Vloads_in_progress): New variable.
9655 (record_load_unwind): New function.
9656 (Fload): Check for recursive loads.
9657 (syms_of_lread): Initialize Vloads_in_progress.
9658 (read_integer, read1): Avoid some compiler warnings.
9659
9660 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
9661 compiler warnings.
9662
9663 2000-09-11 Miles Bader <miles@gnu.org>
9664
9665 * editfns.c (Fbuffer_string): Doc fix.
9666
9667 2000-09-10 Gerd Moellmann <gerd@gnu.org>
9668
9669 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
9670
9671 2000-09-09 Ken Raeburn <raeburn@gnu.org>
9672
9673 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
9674 whether to include other header files.
9675
9676 2000-09-09 Gerd Moellmann <gerd@gnu.org>
9677
9678 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9679 by Fmemq as a boolean.
9680
9681 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
9682
9683 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
9684
9685 2000-09-08 Gerd Moellmann <gerd@gnu.org>
9686
9687 * ralloc.c (mmap_fd): Remove initializer which can make it
9688 read-only in a dumped Emacs.
9689 (mmap_fd_1): New variable.
9690 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
9691 restore it from there.
9692 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
9693 unconditionally so that mmap_fd can be initialized there.
9694 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
9695 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
9696 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
9697
9698 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
9699
9700 * xdisp.c (dump_glyph_row): Fix printf format string.
9701 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
9702
9703 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
9704
9705 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
9706 inheritance.
9707
9708 * xdisp.c (try_window_id): When trying to locate cursor in
9709 unchanged rows at the top, handle the case that we can't find it.
9710
9711 * xterm.c (x_draw_glyphs): Handle case START and END are out
9712 of bounds more carefully.
9713
9714 2000-09-08 Dave Love <fx@gnu.org>
9715
9716 * s/sol2.h (REL_ALLOC_MMAP): Define.
9717 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
9718
9719 * ralloc.c: Don't include string.h (redundant).
9720 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
9721 [!MAP_ANON]: Include fcntl.h.
9722 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
9723 (r_alloc, r_re_alloc, r_alloc_free)
9724 (mmap_enlarge, mmap_set_vars): Use it.
9725 (r_alloc_init_fd): New function.
9726 (__morecore) [SYSTEM_MALLOC]: Don't declare.
9727 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
9728 malloc type.
9729
9730 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
9731 Remove vm-limit.o.
9732
9733 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
9734 change to __NetBSD__.
9735
9736 2000-09-08 Kenichi Handa <handa@etl.go.jp>
9737
9738 * search.c (compile_pattern): Check the multibyteness of cached
9739 string and PATTERN.
9740
9741 2000-09-08 Miles Bader <miles@gnu.org>
9742
9743 * xfaces.c (default_face_vector): Function removed.
9744 (Finternal_merge_in_global_face): Restore old global/local
9745 attribute override order. Use inline loop instead of calling
9746 default_face_vector.
9747
9748 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9749
9750 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
9751 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
9752 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
9753 where necessary, in case POINTER_TYPE is `void'.
9754
9755 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
9756
9757 * frame.c (make_terminal_frame): Initialize frame foreground and
9758 background colors to unspecified, for the initial instance of an
9759 MSDOS frame.
9760
9761 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9762
9763 * ralloc.c (mmap_find): Fix overlap computation.
9764 (mmap_enlarge): Compute nbytes before trying to find an
9765 overlapping region.
9766
9767 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
9768 instead of `!='.
9769
9770 * lread.c (syms_of_lread): Change value of regexp
9771 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
9772
9773 * xmenu.c (xdialog_show): When looking up the selection in
9774 menu_items, take `quote' boundaries into account; this corresponds
9775 to a nil ITEM in x-popup-dialog.
9776
9777 2000-09-07 Kenichi Handa <handa@etl.go.jp>
9778
9779 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
9780 not 0x81.
9781 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
9782
9783 * coding.c (encode_coding_sjis_big5): Use translation table for
9784 encoding, not decoding. Fix the handling of latin-jisx0201.
9785 Check for the charset katakana-jisx0201 too.
9786 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
9787 (detect_coding_sjis): Check the byte sequence more rigidly.
9788
9789 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9790
9791 * xfaces.c (Vparam_value_alist): New variable.
9792 (syms_of_xfaces): Initialize it.
9793 (Finternal_set_lisp_face_attribute): Avoid more consing.
9794
9795 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
9796 specially.
9797 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
9798 (Qbackground_mode): New variable.
9799 (syms_of_frame_1): Initialize Qbackground_mode.
9800
9801 * lisp.h (Qdisplay): Declare extern.
9802
9803 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
9804 change face on all frames, and change the default for new frames.
9805
9806 2000-09-07 Dave Love <fx@gnu.org>
9807
9808 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
9809
9810 2000-09-07 Kenichi Handa <handa@etl.go.jp>
9811
9812 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
9813
9814 * charset.c: Include composite.h
9815 (lisp_string_width): New function.
9816 (Fstring_width): Call lisp_string_width instead of strwidth.
9817
9818 * Makefile.in (charset.o): Depends on composite.h.
9819
9820 * process.c (read_process_output): Before inserting the decoded
9821 text in the buffer, adjust the multibyteness.
9822
9823 2000-09-06 Gerd Moellmann <gerd@gnu.org>
9824
9825 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
9826 buffer's text buffer is null, map new memory.
9827
9828 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
9829 POINTER_TYPE and size_t.
9830 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
9831 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
9832 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
9833 [REL_ALLOC_MMAP]: New macros.
9834 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
9835 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
9836 [REL_ALLOC_MMAP]: New functions.
9837
9838 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
9839 before and after unexec.
9840
9841 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
9842 text buffers if necessary.
9843
9844 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
9845 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
9846 in prototypes.
9847
9848 * config.in (HAVE_MMAP): Add #undef.
9849
9850 2000-09-05 Gerd Moellmann <gerd@gnu.org>
9851
9852 * frame.c (Qdisplay_type): New variable.
9853 (syms_of_frame_1): Initialize it.
9854 (Fframe_parameter): New function that avoids consing.
9855 (syms_of_frame): Defsubr it.
9856
9857 * buffer.c (Fother_buffer): Consider buffers as invisible when
9858 they are displayed in a window on an invisible frame.
9859
9860 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
9861 get-largest-window always return nil.
9862
9863 2000-09-04 Gerd Moellmann <gerd@gnu.org>
9864
9865 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
9866 variable; recognize Emacs 19 elc files.
9867
9868 2000-09-04 Miles Bader <miles@gnu.org>
9869
9870 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
9871 before initially popping up the menu, so the menu doesn't flash
9872 when the face settings are significantly different from the defaults.
9873
9874 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
9875
9876 * regex.c (WIDE_CHAR_SUPPORT): New macro.
9877 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
9878 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
9879 (BIT_UNIBYTE): Remove.
9880 (re_match_2_internal): Delete corresponding code and streamline the
9881 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
9882 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
9883 (re_wctype_t): New type.
9884 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
9885 (regex_compile): Use them and fix handling of overly long char classes.
9886
9887 2000-09-03 Andrew Innes <andrewi@gnu.org>
9888
9889 * makefile.w32-in: Change to DOS line endings.
9890
9891 * s/ms-w32.h (ORDINARY_LINK): New define.
9892
9893 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
9894 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
9895
9896 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
9897 (distclean): Delete them here instead.
9898
9899 * w32proc.c (compare_env): Convert to uppercase for comparison,
9900 not lowercase, to match how the native Windows shell works.
9901
9902 2000-09-03 Jason Rumney <jasonr@gnu.org>
9903
9904 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
9905 CVS changes the line-ends when checking in/out on DOS/Windows.
9906
9907 * makefile.nt (emacs): Do not change directory to run temacs, as
9908 the load-path is set relative to current directory.
9909
9910 2000-09-03 Miles Bader <miles@gnu.org>
9911
9912 * xterm.c (x_alloc_lighter_color_for_widget): New function.
9913
9914 2000-09-02 Gerd Moellmann <gerd@gnu.org>
9915
9916 * xdisp.c (redisplay_mode_lines): New function.
9917 (display_mode_lines): Return number of mode lines displayed.
9918 (echo_area_display): Use redisplay_mode_lines to draw garbaged
9919 mode lines. Don't temporarily bind redisplay-dont-pause to t.
9920
9921 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
9922 string.h and strings.h.
9923 (index) [HAVE_INDEX]: Add prototype.
9924
9925 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
9926 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
9927
9928 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
9929 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9930
9931 2000-09-01 Gerd Moellmann <gerd@gnu.org>
9932
9933 * lread.c (read1): Accept `?' as symbol constituent, for
9934 compatiblity with XEmacs.
9935
9936 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
9937
9938 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
9939 (struct re_pattern_buffer): Remove newline_anchor.
9940 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
9941 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
9942 (re_max_failures, fail_stack): Use size_t rather than unsigned.
9943 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
9944 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
9945 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
9946 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
9947 Get rid of references to newline_anchor.
9948 (regcomp): Allocate and precompute a fastmap.
9949
9950 2000-08-31 Gerd Moellmann <gerd@gnu.org>
9951
9952 * lread.c (openp): GCPRO local variable `filename'.
9953
9954 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
9955
9956 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
9957
9958 * regex.c: Merge some changes from GNU libc. Add prototypes.
9959 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
9960 Use memcmp and memcpy instead of bcopy and bcmp.
9961 (init_syntax_once): Use ISALNUM.
9962 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
9963 (REG_UNSET_VALUE): Remove. Use NULL instead.
9964 (REG_UNSET, re_match_2_internal): Use NULL.
9965 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
9966 New macros.
9967 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
9968 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
9969 (regex_compile): In handle_interval, return an error rather than try to
9970 unfetch the interval if we can't find the closing brace.
9971 Obey the RE_NO_GNU_OPS syntax bit.
9972 (TOLOWER): New macro.
9973 (regcomp): Use it.
9974 (regexec): Allocate regs.start and regs.end as one block.
9975
9976 2000-08-30 Gerd Moellmann <gerd@gnu.org>
9977
9978 * xdisp.c (echo_area_display): Check display_completed instead
9979 of calling detect_input_pending.
9980
9981 * dispnew.c (update_frame): Only set display_completed here; move
9982 the update_begin and update_end calls here from update_frame_1.
9983 (update_frame_1): Don't set display_completed here, don't call
9984 update_begin/update_end.
9985
9986 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
9987 instead of store_frame_param.
9988
9989 2000-08-29 Gerd Moellmann <gerd@gnu.org>
9990
9991 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
9992 desired window matrix hasn't been displayed, use the current row
9993 instead. Make sure that only those frame rows are updated for
9994 which there exists a corresponding enabled desired row.
9995
9996 2000-08-29 Miles Bader <miles@gnu.org>
9997
9998 * xfaces.c (default_face_vector): New function.
9999 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
10000
10001 2000-08-29 Gerd Moellmann <gerd@gnu.org>
10002
10003 * lread.c (openp): Prevent temporary string passed to
10004 Ffile_readable_p from being garbage collected.
10005
10006 2000-08-28 Dave Love <fx@gnu.org>
10007
10008 * keymap.c (store_in_keymap): Add `static' to declaration.
10009
10010 2000-08-28 Gerd Moellmann <gerd@gnu.org>
10011
10012 * emacs.c, callint.c, doc.c, editfns.c
10013 (toplevel) [HAVE_STRING_H]: Include string.h.
10014 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
10015 (index): Remove prototypes which might conflict with non-standard
10016 definitions of index/strchr.
10017
10018 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
10019 (rindex): Define only if !HAVE_RINDEX.
10020
10021 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
10022
10023 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
10024
10025 2000-08-28 Miles Bader <miles@gnu.org>
10026
10027 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
10028 made inconsistent by a font-related attribute in FROM.
10029 (merge_face_inheritance): Add function comment.
10030
10031 2000-08-28 Kenichi Handa <handa@etl.go.jp>
10032
10033 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
10034 the 4th arg (PREV_EVENT) Qt to suppress input method.
10035
10036 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
10037
10038 * regex.c: Indent cpp directives and remove parens after `defined'.
10039 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
10040 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
10041 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
10042 (re_compile_pattern): Use size_t for length.
10043 (init_syntax_once): Move to a better place.
10044 * regex.h: Merge changes from GNU libc. Indent cpp directives.
10045 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
10046
10047 * syntax.c (back_comment): Detect cases where a comment-starter is
10048 actually inside another comment as in: /* a // b */ c // d \n.
10049 Make it clear that `comstart_pos' is unused for nested comments.
10050
10051 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
10052 (KEYMAPP): New macro.
10053 (Fkeymap_parent, Fset_keymap_parent): Use it.
10054 (fix_submap_inheritance): Mark it static.
10055 (define_as_prefix, describe_buffer_bindings, describe_command)
10056 (describe_translation, describe_map): Complete prototypes.
10057
10058 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
10059
10060 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
10061 to better match the key-lookup behavior.
10062
10063 2000-08-27 Gerd Moellmann <gerd@gnu.org>
10064
10065 * xfaces.c (lface_fully_specified_p): Handle :inherit.
10066 (Finternal_set_lisp_face_attribute): Fix typo in error message.
10067
10068 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
10069
10070 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
10071 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
10072 (xterm.o): Depend on coding.h
10073
10074 2000-08-26 Kenichi Handa <handa@etl.go.jp>
10075
10076 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
10077 the corresponding '#endif'.
10078
10079 2000-08-26 Miles Bader <miles@gnu.org>
10080
10081 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
10082 * xfaces.c (QCinherit): New variable.
10083 (syms_of_xfaces): Initialize it.
10084 (LFACE_INHERIT): New macro.
10085 (Finternal_get_lisp_face_attribute)
10086 (merge_face_vector_with_property)
10087 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
10088 (check_lface_attrs): Allow new types of face height. Check
10089 inherit attribute.
10090 (CYCLE_CHECK): New macro.
10091 (merge_face_inheritance): New function.
10092 (merge_face_vectors): Merge inherited faces too. Add F and
10093 CYCLE_CHECK arguments.
10094 (merge_face_vector_with_property, Finternal_merge_in_global_face)
10095 (lookup_named_face, lookup_derived_face, realize_named_face)
10096 (face_at_string_position, face_at_buffer_position): Supply
10097 new F and CYCLE_CHECK arguments to merge_face_vectors.
10098 (merge_face_heights): New function.
10099 (merge_face_vectors, merge_face_vector_with_property)
10100 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
10101 handle relative face heights.
10102 (lface_same_font_attributes_p): Compare heights using EQ.
10103
10104 2000-08-26 Kenichi Handa <handa@etl.go.jp>
10105
10106 * charset.c (char_to_string): Check the character validity.
10107 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
10108
10109 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
10110
10111 * regex.c (PUSH_FAILURE_COUNT): New macro.
10112 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
10113 Handle popping of a register's or a counter's data.
10114 (POP_FAILURE_POINT): Use the new name.
10115 (re_match_2_internal): Push counter data on the stack for succeed_n,
10116 jump_n and set_number_at and remove misleading dead code in succeed_n.
10117
10118 2000-08-25 Gerd Moellmann <gerd@gnu.org>
10119
10120 * xdisp.c (redisplay_internal): If considering all windows on all
10121 frames, update the display for each frame as soon as possible,
10122 instead of first building all desired matrices for all frames, and
10123 then updating them all.
10124 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
10125
10126 2000-08-24 Gerd Moellmann <gerd@gnu.org>
10127
10128 * bytecode.c (mark_byte_stack): Add a comment.
10129
10130 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
10131 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
10132 a graphical frame.
10133
10134 2000-08-24 Kenichi Handa <handa@etl.go.jp>
10135
10136 * minibuf.c (do_completion): Always use compare-string, not
10137 string-equal because the latter doesn't pay attention to
10138 multibyteness of strings.
10139
10140 * process.c (create_process): Don't setup raw-text coding here.
10141 (Fopen_network_stream): Don't set coding->src_multibyte and
10142 coding->dst_multibyte here.
10143 (read_process_output): For process filter, return unibyte string
10144 if default-enable-multibyte-characters is nil.
10145 (send_process): If OBJECT is multibyte text, be sure to encoded it
10146 by the specified coding system for the process. Otherwise, setup
10147 raw-text coding.
10148 (init_process): Don't initialize default-process-coding-system here.
10149
10150 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
10151
10152 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
10153 <scroll-down-aggressively>: Likewise.
10154
10155 2000-08-23 Kenichi Handa <handa@etl.go.jp>
10156
10157 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
10158 zero. Set coding->produced_char correctly.
10159
10160 2000-08-22 Andrew Innes <andrewi@gnu.org>
10161
10162 * makefile.w32-in: New file.
10163
10164 * unexw32.c (unexec): Ignore old_name, and use the actual location
10165 of the current executable instead. Base new_name on this.
10166
10167 * w32proc.c (create_child): Remove reference to security
10168 descriptor, which isn't needed and doesn't compile with mingw32.
10169
10170 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10171 up dllimport attributes.
10172 (x_update_window_end): Update prototype.
10173
10174 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
10175 extern, which screws up dllimport attributes.
10176
10177 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10178 up dllimport attributes.
10179
10180 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
10181 screws up dllimport attributes.
10182
10183 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10184 up dllimport attributes.
10185 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
10186 screws up dllimport attributes.
10187
10188 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10189 up dllimport attributes.
10190
10191 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
10192 screws up dllimport attributes.
10193
10194 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
10195 screws up dllimport attributes.
10196
10197 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10198 up dllimport attributes.
10199
10200 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
10201 unnecessary extern, which screws up dllimport attributes.
10202 (main): Ditto.
10203
10204 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10205 up dllimport attributes.
10206
10207 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
10208 unnecessary extern, which screws up dllimport attributes.
10209
10210 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
10211 screws up dllimport attributes.
10212
10213 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10214 up dllimport attributes.
10215
10216 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
10217
10218 * w32bdf.c (search_file_line):
10219 (set_bdf_font_info):
10220 (seek_char):
10221 (w32_get_bdf_glyph):
10222 (w32_BDF_to_x_font): Fix compile warnings.
10223
10224 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
10225
10226 * w32select.c: Include keyboard.h before frame.h.
10227
10228 * w32fns.c (max): Define macro.
10229 (JOHAB_CHARSET): Define if not known.
10230 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
10231 (Fx_show_tip): Synch with X version.
10232
10233 * w32xfns.c: Include keyboard.h before frame.h.
10234
10235 * w32fns.c: Include keyboard.h before frame.h.
10236
10237 * w32term.c: Include keyboard.h before frame.h.
10238
10239 * fontset.c: Include keyboard.h before frame.h.
10240
10241 * w32inevt.c: Include keyboard.h before frame.h.
10242 (MOUSE_MOVED): Define if not known.
10243
10244 * minibuf.c: Include keyboard.h before frame.h.
10245
10246 * keyboard.c: Include keyboard.h before frame.h.
10247
10248 * indent.c: Include keyboard.h before frame.h.
10249
10250 * dispnew.c: Include keyboard.h before frame.h.
10251
10252 * buffer.c: Include keyboard.h before frame.h.
10253
10254 * alloc.c: Include keyboard.h before frame.h.
10255
10256 * print.c: Include keyboard.h before frame.h.
10257
10258 * process.c: Include keyboard.h before frame.h.
10259
10260 * scroll.c: Include keyboard.h before frame.h.
10261
10262 * sysdep.c: Include keyboard.h before frame.h.
10263
10264 * term.c: Include keyboard.h before frame.h.
10265
10266 * window.c: Include keyboard.h before frame.h.
10267
10268 * xdisp.c: Include keyboard.h before frame.h.
10269 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
10270
10271 * frame.c: Include keyboard.h before frame.h.
10272
10273 * w32heap.h: Undefine min, max.
10274
10275 * w32gui.h: Undefine min, max.
10276
10277 * unexw32.c: Change PUCHAR to PCHAR.
10278 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
10279 (relocate_offset):
10280 (get_section_info):
10281 (copy_executable_and_dump_data): Remove unnecessary static defs.
10282 (copy_executable_and_dump_data): Fix compile warnings.
10283
10284 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
10285
10286 * w32console.c (min): Define macro.
10287 (clear_frame, write_glyphs): Fix compile warning.
10288
10289 * w32proc.c (compare_env):
10290 (find_child_console): Fix compile warning.
10291
10292 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
10293 sys_errlist instead of _sys_errlist.
10294 (get_emacs_configuration_options): New function.
10295
10296 * s/ms-w32.h (sys_nerr): Provide default definition.
10297 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
10298 name with _ prepended.
10299 (NSIG): Define if not known.
10300 (get_emacs_configuration): Provide extern declaration.
10301 (get_emacs_configuration_options): Provide extern declaration.
10302 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
10303
10304 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
10305 (map_w32_filename):
10306 (read_unc_volume): Fix compile warning.
10307
10308 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
10309 definitions from being used.
10310
10311 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
10312
10313 * w32.c (unc_volume_file_attributes):
10314 (open_unc_volume): Make arg const.
10315
10316 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
10317 (read_input_waiting): Remove excess parameter.
10318
10319 * w32.c (init_environment): Call _access.
10320 (check_windows_init_file): Call _close.
10321 (init_user_info): Call _putenv.
10322 (init_environment): Call _putenv and _strdup.
10323 (init_ntproc): Reset volume info cache on startup.
10324
10325 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
10326 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
10327 cannot override the CRT malloc.
10328
10329 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
10330 (LINK_FLAGS): Append to original value of LINK_FLAGS.
10331
10332 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
10333 unless we are linking with a static CRT.
10334 (RVA_TO_PTR): Cast result to unsigned char*.
10335
10336 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
10337 (add_volume_info): Use xstrdup.
10338
10339 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
10340
10341 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
10342 (do_completion, Fminibuffer_complete_word): Use it.
10343 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
10344 var so it can take non-boolean values.
10345
10346 2000-08-21 Gerd Moellmann <gerd@gnu.org>
10347
10348 * editfns.c (find_field): Formatting changes.
10349 (toplevel): Some old-style function forward declarations
10350 changed to prototypes, some new protypes added, some functions
10351 made static.
10352
10353 * lisp.h (set_time_zone_rule): Add prototype.
10354 (use_dialog_box): External declaration.
10355
10356 * keyboard.c (gen_help_event): Add parameter SIZE.
10357 (kbd_buffer_events_waiting): Slightly rewritten.
10358 (clear_event): New function.
10359 (kbd_buffer_get_event): Use it, and clear the input_events of
10360 HELP_EVENTs.
10361 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
10362 don't fill the newly created array with nils.
10363 (toplevel): Convert some old-style function forward declarations
10364 to prototypes.
10365
10366 * keyboard.h (gen_help_event): Change prototype.
10367
10368 * xterm.c (XTread_socket): Change calls to gen_help_event.
10369
10370 * w32term.c (w32_read_socket): Change calls to gen_help_event.
10371
10372 * eval.c (Fmacroexpand): Doc fix.
10373
10374 2000-08-20 Jason Rumney <jasonr@gnu.org>
10375
10376 * w32term.h (x_display_info_for_display): Remove as this function
10377 does not exist on W32.
10378
10379 * w32term.c (help_echo_window): New variable.
10380 (syms_of_w32term): staticpro it.
10381 (note_mode_line_highlight): Set it.
10382 (XTextExtents16): Removed as there is no equivalent on W32.
10383 (x_compute_glyph_string_overhangs): Incomplete body removed, as
10384 the X way of doing this will not work for W32.
10385 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
10386 (x_draw_image_foreground): Avoid drawing outside of the clip area
10387 when image doesn't have a mask.
10388 (note_mouse_highlight): Process overlays in the right order of
10389 priority. Set help_echo_window.
10390 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
10391 because that's more visible for large images.
10392
10393 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
10394 name to single_keymap_panes.
10395 (w32_menu_show): Set wv->title when dealing with titles.
10396 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
10397
10398 2000-08-21 Miles Bader <miles@gnu.org>
10399
10400 * minibuf.c (do_completion): Try again if we rewrite the input
10401 string, but no completion was done, so that any completion message
10402 will be correct.
10403
10404 2000-08-20 Gerd Moellmann <gerd@gnu.org>
10405
10406 * xfaces.c (lface_equal_p): Compare strings differently.
10407 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
10408 (realize_tty_face): Use them.
10409 (syms_of_xfaces): Initialize new variables.
10410 (map_tty_color): New function, extracted from realize_tty_face.
10411 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
10412 foreground or background color, store the new color name in the
10413 realized face; previous code trying to do this had no effect.
10414 (realize_tty_face): Use map_tty_color.
10415 (Fclear_face_cache): Set face_change_count and ensure thorough
10416 redisplay.
10417
10418 2000-08-19 Gerd Moellmann <gerd@gnu.org>
10419
10420 * undo.c (record_first_change, record_marker_adjustment): Don't
10421 use XBUFFER on last_undo_buffer which might not be a buffer.
10422
10423 2000-08-18 Kenichi Handa <handa@etl.go.jp>
10424
10425 * coding.c (decode_coding_string): Set members consumed,
10426 consumed_char, produced, produced_char of *coding correctly. If
10427 decode_coding doesn't consume any byte, don't try anymore.
10428 (encode_coding_string): Likewise.
10429
10430 2000-08-18 Gerd Moellmann <gerd@gnu.org>
10431
10432 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
10433 conditional have void type, for Standard C compilers.
10434
10435 * xdisp.c (redisplay_internal): Compare windows for equality with
10436 EQ, instead of applying XWINDOW to something that might not
10437 be a window.
10438
10439 2000-08-18 Kenichi Handa <handa@etl.go.jp>
10440
10441 * fontset.c (Finternal_char_font): Search only the selected frame
10442 for a window of the current buffer.
10443
10444 2000-08-18 Gerd Moellmann <gerd@gnu.org>
10445
10446 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
10447 Lisp_Objects.
10448
10449 * keyboard.c (kbd_buffer_get_event): Handle the case that the
10450 second half of a HELP_EVENT is found at the start of kbd_buffer.
10451
10452 2000-08-18 Miles Bader <miles@gnu.org>
10453
10454 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
10455
10456 * editfns.c (save_restriction_save): Rewrite to use markers.
10457 (save_restriction_restore): Rewrite to understand new form of data
10458 saved by save_restriction_save.
10459 (Fsave_restriction): Remove cautionary note in doc-string.
10460
10461 2000-08-17 Gerd Moellmann <gerd@gnu.org>
10462
10463 * fileio.c (build_annotations): Add a comment explaining the
10464 return value of format-annotate-function. Replace a spurious call
10465 to Flength with a CONSP test. Call format-annotate-function with
10466 a fifth arg specifying how many times the function is been called
10467 in a row, to let it choose temporary buffers appropriately.
10468
10469 2000-08-17 Dave Love <fx@gnu.org>
10470
10471 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
10472 declare make_temp_name twice.
10473
10474 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
10475 (unreadpure): Give it an arg.
10476
10477 * unexalpha.c: Prototype fatal_unexec, mark_x,
10478 update_dynamic_symbols. Declare unexec as void.
10479
10480 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
10481 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
10482
10483 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
10484 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
10485
10486 * alloca.c: Use #error.
10487 [POINTER_TYPE]: Use it.
10488
10489 * eval.c (Fdefvar): Doc fix.
10490
10491 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
10492 INITIALIZE_INTERVAL.
10493
10494 * buffer.h: Avoid DECLARE_INTERVALS.
10495
10496 * config.in: Add size_t.
10497
10498 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
10499
10500 * w16select.c (set_clipboard_data): If there's not enough memory
10501 to put text into clipboard, return 1, as Fw16_set_clipboard_data
10502 expects. In case of other failures, return 3.
10503 (system_error_msg): New error message.
10504 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
10505 system_error_msg.
10506
10507 2000-08-16 Gerd Moellmann <gerd@gnu.org>
10508
10509 * term.c (write_glyphs): Also turn off inverse video after turning
10510 off other appearances in case TS_exit_attribute_mode is not equal
10511 to TS_end_standout_mode.
10512 (insert_glyphs): Turn inverse video on/off for each run of glyphs
10513 with the same face.
10514 (turn_off_face): Reset standout_mode only if
10515 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
10516 is equal to TS_end_standout_mode.
10517
10518 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10519
10520 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
10521 sequence at the end of the source block.
10522
10523 * ccl.c (Fccl_program_p): Docstring modified.
10524 (Fccl_execute): Likewise.
10525 (Fccl_execute_on_string): Likewise.
10526
10527 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
10528
10529 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
10530
10531 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10532
10533 The following changes are mainly to fix bugs of
10534 encode/decode-coding-string failing if encoding/decoding return
10535 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
10536 variable conversion_buffer.
10537
10538 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
10539 decrement dst_end to avoid buffer overflow in the later call of
10540 string_as_multibyte
10541
10542 * coding.h (conversion_buffer_size, conversion_buffer)
10543 (get_conversion_buffer): Extern deleted.
10544
10545 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
10546 (conversion_buffer, conversion_buffer_size): Variables deleted.
10547 (get_conversion_buffer): Function deleted.
10548 (struct conversion_buffer): New structure.
10549 (MAX_ALLOCA): New macro.
10550 (allocate_conversion_buffer): New macro.
10551 (extend_conversion_buffer, free_conversion_buffer): New functions.
10552 (ccl_coding_driver): Set coding->result.
10553 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
10554 this is the last block of source.
10555 (encode_coding): Likewise. Handle the source block as the last
10556 one only when the whole source text is consumed.
10557 (decode_coding_string): Handle the case that the output buffer is
10558 too small to decode the whole source text. Use
10559 allocate_conversion_buffer, extend_conversion_buffer and
10560 free_conversion_buffer, not get_conversion_buffer.
10561 (encode_coding_string): Likewise.
10562 (init_coding): Function deleted.
10563 (init_coding_once): Delete code to initialize conversion_buffer_size.
10564
10565 * emacs.c (main): Don't call init_coding.
10566
10567 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
10568
10569 * term.c (write_glyphs): Use a locally declared conversion_buffer.
10570 (insert_glyphs): Likewise.
10571
10572 * w32console.c (write_glyphs): Use a locally declared
10573 conversion_buffer.
10574
10575 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
10576
10577 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
10578 member of display_info is NULL.
10579
10580 2000-08-15 Gerd Moellmann <gerd@gnu.org>
10581
10582 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
10583
10584 * term.c (turn_off_face): Reset standout_mode when resetting
10585 appearances with capability `me'.
10586 (write_glyphs): Switch on inverse video before each face change.
10587
10588 2000-08-14 Dave Love <fx@gnu.org>
10589
10590 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
10591 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
10592 (lisp_free): Declare and make static.
10593
10594 * window.c: Fix embedded comment.
10595 (syms_of_window): Fix doc string.
10596
10597 2000-08-14 Gerd Moellmann <gerd@gnu.org>
10598
10599 * keymap.c (push_key_description): If C without modifiers is < 32,
10600 make sure to print `C-' before `M-', like in the manual.
10601
10602 2000-08-11 Gerd Moellmann <gerd@gnu.org>
10603
10604 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
10605 since they aren't relocated anymore.
10606 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
10607
10608 * xdisp.c (try_cursor_movement): Fix handling of cursor in
10609 partially visible line which is smaller than the window's height.
10610
10611 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10612
10613 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
10614 the multibyte form of eight-bit-control characters.
10615 (Fccl_execute_on_string): Initialize ccl->multibyte.
10616
10617 * ccl.h (struct ccl_program): New member multibyte.
10618
10619 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
10620
10621 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10622
10623 * regex.c (regex_compile) <normal_char>: Pay attention to
10624 multibyteness.
10625 (analyse_first) <exactn>: Setup fastmap correctly for
10626 eight-bit-control characters.
10627
10628 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10629
10630 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
10631
10632 * keyboard.c (make_lispy_event): Handle the new event type
10633 multibyte_char_keystroke.
10634
10635 * xterm.c: Include coding.h.
10636 (XTread_socket): Work around a bug of XmbLookupString. If the
10637 input is from XIM, decode it according to the current locale. In
10638 that case, generate multibyte_char_keystroke events.
10639
10640 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10641
10642 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
10643 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
10644
10645 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10646
10647 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
10648 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
10649 (move_it_in_display_line_to): Record iterator's ascent and descent
10650 before producing glyphs, and restore them when we know the glyph
10651 doesn't fit on the line.
10652 (move_it_to): Restructured so that it's easier to debug. If
10653 moving to a vpos, and not moving to an x or character position,
10654 stop as soon as the specified vpos is reached; don't move further
10655 into that line because that might change the computed line height.
10656 (try_cursor_movement): New function, extracted from the cursor
10657 movement branch of redisplay_window. If ending on a partially
10658 visible line, don't try to scroll if the cursor line is taller
10659 than the window.
10660 (redisplay_window): Use try_cursor_movement.
10661
10662 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
10663 because that function doesn't cope with variable-height lines.
10664
10665 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
10666 box cursor because that's better visible for large images.
10667
10668 2000-08-10 Miles Bader <miles@gnu.org>
10669
10670 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
10671
10672 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10673
10674 * xdisp.c (Vmessages_buffer_name): New variable.
10675 (message_dolog): Use it.
10676 (syms_of_xdisp): Initialize it.
10677
10678 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
10679
10680 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
10681 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
10682 redundant now that keyboard.h is included.
10683
10684 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
10685
10686 * keyboard.c (kbd_buffer_events_waiting): New function.
10687
10688 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
10689
10690 * msdos.c: Include keyboard.h.
10691 (XMenuActivate): Empty no_event events from the event buffer. If
10692 no events are left after that, call clear_input_pending.
10693 (mouse_clear_clicks): New function, code moved from mouse_init.
10694 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
10695 mouse driver to ``forget'' any past clicks.
10696
10697 * Makefile.in (msdos.o): Depend on keyboard.h.
10698
10699 2000-08-09 Gerd Moellmann <gerd@gnu.org>
10700
10701 * lisp.h (input_pending): External declaration.
10702
10703 * dispextern.h (Qredisplay_dont_pause): Declare extern.
10704
10705 * xdisp.c (echo_area_display): Display thoroughly if input is
10706 pending. Bind redisplay-dont-pause to t during the redisplay.
10707 in case input is pending.
10708
10709 * dispnew.c (Qredisplay_dont_pause): New variable.
10710 (syms_of_display): Initialize and staticpro it.
10711 (update_frame_1): Don't interrupt the display for pending input if
10712 redisplay_dont_pause is set.
10713
10714 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
10715
10716 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10717
10718 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
10719
10720 * callproc.c (Fcall_process): Terminate the unwind-protect around
10721 the post-read-conversion of coding system.
10722
10723 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
10724 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
10725 * buffer.h (overlays_at): Update prototype.
10726 * xdisp.c (next_overlay_change): Update call to overlays_at.
10727 * xfaces.c (face_at_buffer_position): Likewise.
10728 * textprop.c (Fget_char_property): Likewise.
10729 * xterm.c (note_mouse_highlight): Likewise.
10730
10731 * minibuf.c (do_completion): Don't consider a simple change of
10732 case as `completion'.
10733
10734 2000-08-08 Ken Raeburn <raeburn@gnu.org>
10735
10736 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
10737 * undo.c (record_delete): Make sure last_point_position_buffer is
10738 a buffer before comparing pointers.
10739
10740 * coding.h (decode_coding_string): Declare.
10741
10742 * intervals.h (Fprevious_single_char_property_change): Declare.
10743
10744 * textprop.c (Fprevious_single_char_property_change): Don't do
10745 arithmetic directly on lisp objects.
10746
10747 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
10748
10749 * keyboard.h (menu_item_eval_property): Declare.
10750
10751 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
10752 reuse as buffer name, instead of recreating (and discarding) every
10753 time a message is logged.
10754 (with_echo_area_buffer): Make callback arg A2 a lisp object.
10755 (current_message_1, truncate_message_1, set_message_1)
10756 (display_echo_area_1, resize_mini_window_1): Signatures changed.
10757 (current_message, truncate_echo_area, display_echo_area)
10758 (resize_echo_area_axactly): Changed calls.
10759
10760 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
10761 Lisp object.
10762 (Ffind_coding_systems_region_internal): First argument to Fappend
10763 must be an integer, not a Lisp object.
10764
10765 2000-08-08 Kenichi Handa <handa@etl.go.jp>
10766
10767 * charset.c (Fchar_width): Doc fix.
10768
10769 2000-08-08 Gerd Moellmann <gerd@gnu.org>
10770
10771 * charset.c (Fstring_width): Doc fix.
10772
10773 2000-08-07 Gerd Moellmann <gerd@gnu.org>
10774
10775 * xdisp.c (start_display): When starting display on a continuation
10776 line, clear ascent and descent members of the iterator structure;
10777 the height of the continued line does not affect the height of the
10778 continuation line.
10779 (make_cursor_line_fully_visible): Do nothing if cursor is on a
10780 line taller than the window.
10781 (redisplay_window) <forced window start>: Handle case that the
10782 middle of the window is not found in any row.
10783 (dump_glyph_row): Show more information.
10784 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
10785 first text line in a glyph matrix.
10786
10787 * xterm.c (x_draw_image_foreground): Avoid drawing outside
10788 of the clip area when image doesn't have a mask.
10789
10790 * fns.c (sweep_weak_table): Fix survival conditions for
10791 key-or-value and key-and-value weakness.
10792
10793 * .gdbinit (xhashtable): New command.
10794
10795 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
10796 tables out of the list of all weak hash tables.
10797
10798 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
10799 a new buffer is created, make sure echo_area_buffer[] references
10800 the new buffer.
10801
10802 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
10803
10804 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
10805 the doc string.
10806
10807 2000-08-07 Kenichi Handa <handa@etl.go.jp>
10808
10809 * syntax.c (skip_chars): Fix previous change. Make the handling
10810 of unibyte string consistent with that of regex search.
10811
10812 2000-08-05 Gerd Moellmann <gerd@gnu.org>
10813
10814 * xmenu.c (popup_get_selection): Use xfree instead of free.
10815
10816 * fileio.c (Finsert_file_contents): Use xfree instead of free.
10817
10818 * editfns.c (Ftranspose_regions): Use xfree instead of free.
10819
10820 * callproc.c (child_setup): Use xfree instead of free.
10821
10822 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
10823 instead of malloc.
10824 (run_mac_command, closedir): Use `xfree' instead of `free'.
10825
10826 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
10827
10828 * eval.c (error): Use xfree instead of free.
10829
10830 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
10831
10832 * fns.c: Replace `illegal' with `invalid'.
10833 (Fmake_hash_table, make_hash_table): Allow table size of 0.
10834
10835 2000-08-05 Kenichi Handa <handa@etl.go.jp>
10836
10837 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
10838 conversion.
10839
10840 2000-08-04 Noah Friedman <friedman@splode.com>
10841
10842 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
10843 docstring.
10844
10845 2000-08-04 Gerd Moellmann <gerd@gnu.org>
10846
10847 * syntax.c (skip_chars): Fix typo in error message.
10848
10849 2000-08-04 Andreas Schwab <schwab@suse.de>
10850
10851 * m/ia64.h: Moved from s/ia64.h.
10852
10853 2000-08-04 Kenichi Handa <handa@etl.go.jp>
10854
10855 * process.c (read_process_output): Big simplification. Handle
10856 composition and post-read-conversion of coding system correctly.
10857 (send_process): Handle composition correctly.
10858
10859 * callproc.c (Fcall_process): Handle post-read-conversion of
10860 coding system if any.
10861
10862 * coding.c (decode_coding_iso2022): More strict check for handling
10863 single shifting.
10864 (coding_restore_composition): Pay attention to the case that
10865 cmp_data is not set properly (because of invalid code in the
10866 source text).
10867 (run_pre_post_conversion_on_str): Include text properties in the
10868 resulting string.
10869 (decode_coding_string): Set members of coding correctly.
10870
10871 2000-08-03 Gerd Moellmann <gerd@gnu.org>
10872
10873 * s/ia64.h: New file.
10874
10875 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
10876 Use NULL instead of 0 at the end of variable argument list of
10877 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
10878 sizeof (int) < sizeof (void *).
10879
10880 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
10881 of variable argument lists of XtVaGetValues and XtVaSetValues.
10882
10883 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
10884 variable argument lists of XtVaGetValues and XtVaSetValues.
10885
10886 2000-08-02 Gerd Moellmann <gerd@gnu.org>
10887
10888 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
10889 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
10890
10891 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
10892 prototype.
10893
10894 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
10895 in call to Fsingle_key_description.
10896
10897 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
10898 Callers changed.
10899
10900 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
10901
10902 * window.c (display_buffer_reuse_frames): New variable.
10903 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
10904 frames displaying BUFFER.
10905 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
10906
10907 2000-08-01 Miles Bader <miles@gnu.org>
10908
10909 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
10910 when to constrain NEW_POS (they were pretty screwed up before).
10911
10912 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
10913
10914 * msdos.c (run_msdos_command): Save and restore the master
10915 environment, for the case that child_setup signals an error.
10916 When mirroring slashes in DOS shell commands, don't fail when
10917 argv[2] has embedded blanks.
10918 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
10919 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
10920 (dos_ttraw): Call mouse_setup_buttons.
10921
10922 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
10923 using alloca; free it after run_msdos_command returns.
10924
10925 2000-07-27 Dave Love <fx@gnu.org>
10926
10927 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
10928 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
10929
10930 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
10931
10932 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
10933
10934 * editfns.c (lisp_time_argument): Fix last change.
10935
10936 2000-07-27 Gerd Moellmann <gerd@gnu.org>
10937
10938 * fns.c (Fdelete): Make it work on vectors and strings in addition
10939 to lists.
10940
10941 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
10942 (syms_of_fns): Initialize new variables.
10943 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
10944 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
10945 weakness, with t meaning the same as `key-and-value'.
10946
10947 2000-07-27 Kenichi Handa <handa@etl.go.jp>
10948
10949 * coding.h (struct coding_system): Member safe_charset deleted.
10950
10951 * coding.c (Qsafe_charsets): This variable deleted.
10952 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
10953 New variables.
10954 (coding_safe_chars): New function.
10955 (CODING_SAFE_CHAR_P): New macro.
10956 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
10957 checking safe_charsets member of the coding system. Caller changed.
10958 (detect_coding_iso2022): New local variable safe_chars.
10959 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
10960 safe_charsets member of the coding system.
10961 (decode_coding_iso2022): New local variable safe_chars.
10962 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
10963 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
10964 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
10965 (ENCODE_UNSAFE_CHARACTER): New macro.
10966 (encode_coding_iso2022): New local variable safe_chars. Check
10967 unsafe chars.
10968 (setup_coding_system): Delete the code to initialize
10969 coding->safe_charses
10970 (intersection, find_safe_codings): New functions.
10971 (Ffind_coding_systems_region_internal): New function.
10972 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
10973 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
10974 variable and initialize it.
10975
10976 * fns.c (char_table_ref_and_index): New function.
10977
10978 * lisp.h (char_table_ref_and_index): Add prototype.
10979
10980 2000-07-26 Sam Steingold <sds@gnu.org>
10981
10982 * editfns.c (lisp_time_argument): Added third argument `usec'.
10983 (Ffloat_time): New built-in Lisp function.
10984
10985 2000-07-26 Gerd Moellmann <gerd@gnu.org>
10986
10987 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
10988 for the character code.
10989
10990 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
10991 GNU/Linux.
10992
10993 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
10994 if called for a popup menu.
10995 (xmenu_show): Store help string in widget values.
10996
10997 2000-07-26 Dave Love <fx@gnu.org>
10998
10999 * syswait.h: Move some definitions.
11000 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
11001 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
11002 perspicuous definitions.
11003 (WTERMSIG): Fix bit pattern used.
11004
11005 2000-07-26 Kenichi Handa <handa@etl.go.jp>
11006
11007 * print.c (print_object): If vector printing is truncated, print
11008 "..." to indicate it as well as the case of list printing.
11009
11010 2000-07-25 Gerd Moellmann <gerd@gnu.org>
11011
11012 * xdisp.c (next_element_from_display_vector): Improve comments.
11013
11014 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
11015 for the character code, and the rest for the face id as in 20.x.
11016 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
11017
11018 * window.c (window_display_table): Cleaned up.
11019
11020 * syntax.c (Fforward_word): Add last arg nil in call of
11021 Fconstrain_to_field.
11022
11023 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
11024
11025 * fileio.c (Frename_file) [DOS_NT]: If the file names are
11026 identical but for the letter-case, don't call
11027 barf_or_query_if_file_exists.
11028
11029 2000-07-25 Miles Bader <miles@gnu.org>
11030
11031 * editfns.c (find_field): Honor special `boundary' fields.
11032 (Qboundary): New variables.
11033 (syms_of_editfns): Initialize Qboundary.
11034 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
11035 Use scan_buffer instead of find_before_next_newline, because it
11036 allows us to detect the boundary case where there's a newline at
11037 the search limit.
11038 * lisp.h (Fconstrain_to_field): Update external declaration.
11039
11040 2000-07-24 Gerd Moellmann <gerd@gnu.org>
11041
11042 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
11043 if that is nil.
11044
11045 2000-07-24 Dave Love <fx@gnu.org>
11046
11047 * s/sunos4-0.h, s/sol2.h:
11048 (LIBS_TERMCAP): Move from m/sparc.h.
11049
11050 * m/sparc.h (TERMINFO): Moved to system files (probably only
11051 relevant for sunos4 judging by its vintage).
11052 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
11053 __arch64__.
11054
11055 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
11056
11057 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
11058 name to single_keymap_panes.
11059
11060 2000-07-24 Andreas Schwab <schwab@suse.de>
11061
11062 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
11063
11064 2000-07-24 Gerd Moellmann <gerd@gnu.org>
11065
11066 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
11067 parameters instead of using int parameters. Expect FN to accept
11068 EMACS_INT parameters.
11069 (display_echo_area, resize_echo_area_axactly, current_message)
11070 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
11071 with new argument list.
11072 (resize_mini_window_1): New callback function.
11073 (current_message_1, truncate_message_1, set_message_1): Change
11074 parameter lists to the new format expected by with_echo_area_buffer.
11075
11076 2000-07-24 Kenichi Handa <handa@etl.go.jp>
11077
11078 * fontset.c (fontset_ref): Remove INLINE declaration.
11079 (fontset_ref_via_base): Likewise.
11080 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
11081 to downcase.
11082
11083 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
11084
11085 * msdos.c (IT_note_mouse_highlight): Process overlays in the
11086 correct order of priority. If help echo was found in an overlay,
11087 use that overlay as the object in which the help echo was found.
11088
11089 2000-07-22 Miles Bader <miles@gnu.org>
11090
11091 * textprop.c (Fprevious_single_char_property_change): The initial
11092 property value should be from the position preceding POSITION, not
11093 following it.
11094
11095 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
11096
11097 * coding.c (syms_of_coding): Doc fix for
11098 inhibit-iso-escape-detection.
11099
11100 2000-07-21 Gerd Moellmann <gerd@gnu.org>
11101
11102 * xterm.c (note_mouse_highlight): Process overlays in the right
11103 order of priority.
11104
11105 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
11106
11107 * xterm.c (note_mouse_highlight): If help-echo was found in an
11108 overlay, use that overlay as the object in which the help was found.
11109
11110 * window.c (foreach_window_1): Fix typo reversing an if-condition.
11111
11112 * window.c (foreach_window): Instead of a fake variable argument
11113 list, take one USER_DATA argument.
11114 (foreach_window_1): Likewise, and call callback functions with two
11115 args, the window and USER_DATA.
11116 (struct check_window_data): New struct.
11117 (check_window_containing): Use it.
11118 (window_from_coordinates): Set up a struct check_window_data for
11119 foreach_window.
11120 (add_window_to_list, freeze_window_start): Change parameters
11121 according to new calling convention.
11122
11123 * window.h (foreach_window): Change prototype.
11124
11125 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
11126
11127 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
11128
11129 * xmenu.c (menu_help_callback): Call show_help_echo with
11130 additional arguments OBJECT and POS.
11131
11132 2000-07-21 Kenichi Handa <handa@etl.go.jp>
11133
11134 * data.c (Faset): Allow storing any multibyte character in a
11135 string. Convert unibyte string to multibyte if necessary.
11136
11137 * xfns.c (x_encode_text): New function.
11138 (x_set_name): Use x_encode_text.
11139 (x_set_title): Likewise.
11140
11141 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
11142
11143 * xterm.h (x_encode_text): Add prototype.
11144
11145 2000-07-20 Dave Love <fx@gnu.org>
11146
11147 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
11148 xfree, not free.
11149
11150 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
11151
11152 * msdos.c (help_echo_window): New variable.
11153 (syms_of_msdos): Initialize and staticpro it.
11154 (IT_note_mode_line_highlight): Set help_echo_window.
11155 (IT_note_mouse_highlight): Ditto.
11156 (dos_rawgetc): Store help_echo_window in the second event produced
11157 for HELP_EVENTs.
11158
11159 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
11160 Record the object that generated the help echo and the position of
11161 that object in help_echo_object and help_echo_pos. Record that
11162 some glyphs in a row are displayed in mouse-face.
11163 (IT_update_begin): Don't clear mouse highlight unless one of the
11164 enabled glyph rows is marked as being displayed in mouse-face.
11165 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
11166 and position recorded in help_echo_object and help_echo_pos to the
11167 event queue.
11168 (IT_menu_display): Accept a new argument PN: the pane number of
11169 the current menu pane. Record the pane number and the item
11170 number of the item which has associated help string.
11171 (XMenuActivate): Update the prototype for help_callback in
11172 function declaration. Call IT_menu_display with the current menu
11173 pane number as an additional argument. Call help_callback with
11174 two additional arguments: the pane number and the item number of
11175 the menu item associated with the help text.
11176 (help_echo_object, help_echo_pos): New variables.
11177 (syms_of_msdos): Initialize them and staticpro help_echo_object.
11178
11179 * msdos.h (XMenuActivate): Update prototype.
11180
11181 2000-07-19 Gerd Moellmann <gerd@gnu.org>
11182
11183 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
11184 Add some more prototypes.
11185
11186 * xterm.c, xterm.h: Add some more prototypes.
11187
11188 * lisp.h (Fnext_single_char_property_change): Add prototype.
11189
11190 * dispnew.c (direct_output_for_insert): Remove confusing
11191 outer local variable mouse_face_overwritten_p.
11192 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
11193
11194 * alloc.c (allocate_string_data): Don't copy old string contents.
11195
11196 2000-07-19 Kenichi Handa <handa@etl.go.jp>
11197
11198 * coding.c (code_convert_region): Delete text properties before
11199 shrinking the conversion region.
11200
11201 2000-07-18 Gerd Moellmann <gerd@gnu.org>
11202
11203 * dispnew.c (update_text_area): Write the whole row if it
11204 has mouse-face in it.
11205
11206 * xfaces.c (face-alternative-font-family-alist): Remove
11207 DEFVAR_LISP; staticpro instead.
11208
11209 * xmenu.c (menu_help_callback): Call show_help_echo with
11210 new arguments.
11211
11212 * keyboard.c (show_help_echo): Add parameter WINDOW.
11213 (read_char): Call show_help_echo with window extracted from Lisp
11214 help event.
11215 (gen_help_event): Add parameter WINDOW.
11216
11217 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
11218
11219 * xterm.c (help_echo_window): New variable.
11220 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
11221 (XTread_socket): Pass help_echo_window to gen_help_event.
11222 (syms_of_xterm): Initialize and staticpro help_echo_window.
11223
11224 2000-07-18 Dave Love <fx@gnu.org>
11225
11226 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
11227
11228 2000-07-18 Gerd Moellmann <gerd@gnu.org>
11229
11230 * alloc.c (allocate_string_data): If string had already data
11231 assigned, copy old contents to new string data.
11232
11233 * coding.c (syms_of_coding): Fix typo in spelling of variable
11234 `inhibit-iso-escape-detection'.
11235
11236 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
11237
11238 * Makefile.in: Add dependencies on dispextern.h.
11239 (alloca.o): Don't define malloc and define EMACS_FREE instead of
11240 `free'; both can conflict with system header files.
11241
11242 2000-07-18 Kenichi Handa <handa@etl.go.jp>
11243
11244 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
11245 undefined.
11246
11247 2000-07-18 Dave Love <fx@gnu.org>
11248
11249 * window.c (Fwindow_list): Declare arg `window'.
11250
11251 2000-07-18 Kenichi Handa <handa@etl.go.jp>
11252
11253 * coding.c (setup_coding_system): Don't override the explicitly
11254 specified designations.
11255
11256 2000-07-15 Miles Bader <miles@gnu.org>
11257
11258 * editfns.c (char_property_eq, char_property_stickiness): Renamed
11259 from `text_property_eq' and `text_property_stickiness', respectively.
11260 (find_field, Fconstrain_to_field, char_property_eq)
11261 (char_property_stickiness): Changed to call char-property functions
11262 instead of text-property-only ones.
11263
11264 * textprop.c (Fnext_single_char_property_change): Made a subr (was
11265 `next_single_char_property_change'). Do more error checking, and
11266 cleanup limit behavior.
11267 (Fprevious_single_char_property_change): New function.
11268 (syms_of_textprop): Initialize new subrs.
11269
11270 * xdisp.c (display_prop_end, invisible_text_between_p):
11271 Call Fnext_single_char_property_change instead of
11272 next_single_char_property_change.
11273
11274 2000-07-15 Jason Rumney <jasonr@gnu.org>
11275
11276 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
11277 after menu is finished with.
11278 (add_menu_item): Only consider wv->title as a menu title.
11279 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
11280
11281 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
11282 null title.
11283 (FONT_REGEXP): Remove unused macro, and its sub-components.
11284 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
11285
11286 * w32term.c (help_echo_object, help_echo_pos): New variables.
11287 (note_mode_line_highlight): Store additional information about the
11288 help-echo in help_echo_object and help_echo_pos. Check both
11289 `local-map' and `keymap' properties for changing the cursor
11290 (note_mouse_highlight): Store additional information about the
11291 help-echo in help_echo_object and help_echo_pos.
11292 (note_tool_bar_highlight): Set help_echo_object to nil and
11293 help_echo_pos to -1.
11294 (w32_read_socket): Use gen_help_event instead of filling
11295 input_events manually.
11296 (syms_of_w32term): Staticpro help_echo_object.
11297 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
11298 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
11299 (x_clear_mouse_face): New function.
11300 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
11301 (x_update_window_begin): No need to turn off the mouse
11302 highlight here.
11303 (show_mouse_face): Set the mouse_face_p flag of glyph rows
11304 depending on whether they contain glyphs highlighted in mouse-face.
11305 (x_fill_stretch_glyph_string): Consume runs of stretch
11306 glyphs instead of a single one.
11307 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11308 with new argument list.
11309 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11310 (x_append_glyph, x_append_composite_glyph)
11311 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11312 changes in struct glyph starting 1999-12-27. See comments for
11313 xterm.c on 2000-07-05.
11314
11315 2000-07-14 Sam Steingold <sds@gnu.org>
11316
11317 * xfaces.c (realize_x_face): Fix the last patch:
11318 check `default_face' before dereferencing.
11319
11320 2000-07-14 Dave Love <fx@gnu.org>
11321
11322 * syntax.c (back_comment): Add null default in switch (for pcc).
11323
11324 2000-07-14 Kenichi Handa <handa@etl.go.jp>
11325
11326 * xfaces.c (realize_x_face): Make fontset using the base of the
11327 default_face's fontset, not using the default fontset.
11328
11329 * coding.c (inhibit_iso_escape_detection): New variable.
11330 (syms_of_coding): Make it a Lisp variable.
11331 (detect_coding_iso2022): If inhibit_iso_escape_detection is
11332 nonzero, ignore ISO2022's escape sequence.
11333
11334 2000-07-14 Gerd Moellmann <gerd@gnu.org>
11335
11336 * alloca.c (malloc) [emacs]: Define as xmalloc.
11337
11338 * xfns.c (Fx_show_tip): If frame parameters contain a position,
11339 use that instead of the mouse position. Add parameters DX and DY.
11340
11341 * dispextern.h (Fx_show_tip): Adjust number of parameters
11342 in prototype.
11343
11344 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
11345 if HELP is a function, call it with OBJECT and POS as parameters
11346 to get the help to display.
11347 (gen_help_event, kbd_buffer_store_help_event): New functions.
11348 (kbd_buffer_get_event): Construct the Lisp help-event differently.
11349 (read_char): Call show_help_echo with new parameters.
11350
11351 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
11352 Add prototypes.
11353
11354 * xterm.c (help_echo_object, help_echo_pos): New variables.
11355 (note_mode_line_highlight): Store additional information about the
11356 help-echo in help_echo_object and help_echo_pos. Check both
11357 `local-map' and `keymap' properties for changing the cursor
11358 (note_mouse_highlight): Store additional information about the
11359 help-echo in help_echo_object and help_echo_pos.
11360 (note_tool_bar_highlight): Set help_echo_object to nil and
11361 help_echo_pos to -1.
11362 (XTread_socket): Use gen_help_event instead of filling
11363 input_events manually.
11364 (syms_of_xterm): Staticpro help_echo_object.
11365
11366 * xmenu.c (menu_highlight_callback): Use
11367 kbd_buffer_store_help_event instead of setting up and input_event
11368 structure manually.
11369
11370 * xdisp.c (eval_form): GCPRO argument sexpr.
11371 (call_function): New function.
11372 (handle_single_display_prop): Use call_function and FUNCTIONP
11373 instead of checking whether if font_height is a symbol and
11374 using eval_form.
11375
11376 * eval.c (internal_condition_case_2): New function.
11377
11378 * lisp.h (FUNCTIONP): New macro.
11379 (internal_condition_case_2, call_function): Add prototypes.
11380
11381 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
11382 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
11383 Always set `arg' member of input_events.
11384 (construct_menu_click): Unused function removed.
11385
11386 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
11387
11388 * w32term.c (construct_mouse_click, construct_mouse_wheel)
11389 (construct_drag_n_drop, x_scroll_bar_handle_click)
11390 (w32_read_socket): Always set `arg' member of input_events.
11391
11392 * keyboard.c (show_help_echo): Use eval_form. Add comment.
11393
11394 * lisp.h (eval_form): Add prototype.
11395
11396 * xdisp.c (eval_form): Make it externally visible.
11397
11398 2000-07-13 Gerd Moellmann <gerd@gnu.org>
11399
11400 * xterm.c (x_handle_tool_bar_click): Store the frame in the
11401 frame_or_window slot of TOOL_BAR_EVENT input events instead of
11402 consing. For prefix events, store the frame in the `arg' slot of
11403 the event, otherwise store the key there.
11404 (XTread_socket): Instead of consing, use the frame_or_window slot
11405 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
11406
11407 * xmenu.c (menu_highlight_callback): Store help string in the
11408 `arg' member of the input event; don't cons.
11409 (menubar_selection_callback): Use the `arg' slot of input events
11410 to queue additional information, instead of consing.
11411
11412 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
11413
11414 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
11415 TOOL_BAR_EVENTs.
11416 (w32_read_socket): Adapt to changes in HELP_EVENTs.
11417
11418 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
11419 input events to queue additional information, instead of consing.
11420
11421 * keyboard.c (kbd_buffer_gcpro): Renamed from
11422 kbd_buffer_frame_or_window. Now used for all Lisp objects
11423 referenced from the input queue.
11424 (kbd_buffer_store_event): Always use structure assignment for
11425 copying input events. Record all Lisp objects referenced from
11426 events in kbd_buffer_gcpro.
11427 (kbd_buffer_get_event): Construct Lisp `help-echo' events
11428 differently from input events. Test for prefix menu_bar_events
11429 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
11430 event in kbd_buffer_gcpro to nil.
11431 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
11432 frame_or_window is equal to its arg member as prefix events.
11433 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
11434 used by an input event to nil.
11435 (init_keyboard): Use two times the size of the input queue
11436 for kbd_buffer_gcpro.
11437 (syms_of_keyboard): Likewise.
11438
11439 * emacs.c (handle_USR2_signal, handle_USR1_signal):
11440 Use USER_SIGNAL_EVENT.
11441
11442 * termhooks.h (struct input_event): Add member `arg'.
11443 (MENU_BAR_EVENT): Renamed from menu_bar_event.
11444 (USER_SIGNAL_EVENT): Renamed from user_signal.
11445
11446 * xfaces.c (ASET): Remove definition.
11447
11448 * lisp.h (AREF, ASET, ASIZE): New macros.
11449
11450 * fontset.c (AREF, ASIZE): Remove definitions.
11451
11452 * fns.c (AREF): Remove definition.
11453
11454 * composite.c (AREF): Remove definition.
11455
11456 2000-07-12 Gerd Moellmann <gerd@gnu.org>
11457
11458 * dispnew.c (redraw_overlapped_rows): Add missing local.
11459 (scrolling_window): Remove debug code.
11460
11461 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
11462 Before scrolling, turn off a mouse-highlight in the window
11463 being scrolled.
11464
11465 * xterm.c (x_update_window_end): Add parameter
11466 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
11467 redisplay in XTframe_up_to_date.
11468 (x_clear_mouse_face): New function.
11469 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
11470
11471 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
11472 current glyph row.
11473 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
11474 it when any row is written to that contains glyphs highlighted in
11475 mouse-face.
11476 (update_window): Call the window update end hook with new
11477 parameter MOUSE_FACE_OVERWRITTEN_P.
11478 (direct_output_for_insert): Give up if row contains mouse-face.
11479
11480 * dispextern.h (struct redisplay_interface): Add parameter
11481 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
11482 (clear_mouse_face): New function pointer member.
11483
11484 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
11485
11486 * syntax.c (back_comment): Use one switch rather than a few `if's.
11487 Obey open_paren_in_column_0_is_defun_start.
11488 When reverting to the `slow' method, try to nicely handle the case
11489 of nested comments by checking that the comment-starter we found
11490 does indeed match the comment-ender.
11491 (scan_sexps_forward, scan_sexps_forward):
11492 Ignore excessive opening parenthesis rather than throwing an error.
11493
11494 2000-07-11 Gerd Moellmann <gerd@gnu.org>
11495
11496 * doc.c (Fsubstitute_command_keys): Handle case that a GC
11497 in Fwhere_is_internal or get_keymap_1 relocates string contents.
11498
11499 * dispnew.c (direct_output_forward_char): Give up if currently
11500 displaying a message instead of the minibuffer contents.
11501
11502 * xterm.c (x_update_window_begin): No need to turn off the mouse
11503 highlight here.
11504 (show_mouse_face): Set the mouse_face_p flag of glyph rows
11505 depending on whether they contain glyphs highlighted in mouse-face.
11506
11507 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
11508 compare the mouse_face_p flags of both rows.
11509
11510 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
11511
11512 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
11513
11514 * keyboard.c (show_help_echo): Accept additional parameter
11515 ok_to_overwrite_keystroke_echo.
11516 (read_char): Call show_help_echo with a zero
11517 ok_to_overwrite_keystroke_echo argument.
11518 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
11519 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
11520 ok_to_overwrite_keystroke_echo argument.
11521 * w32menu.c (w32_menu_display_help): Call show_help_echo with
11522 non-zero ok_to_overwrite_keystroke_echo argument.
11523
11524 2000-07-10 Gerd Moellmann <gerd@gnu.org>
11525
11526 * xdisp.c (try_window_id): If changes are all below what is
11527 displayed in the window, and point is in the window, we still
11528 might have to find point on the display.
11529
11530 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
11531 glyphs instead of a single one.
11532 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11533 with new argument list.
11534 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11535
11536 * keymap.c (get_keymap_1): Add comment that this function can GC.
11537 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
11538 comment that functions can GC.
11539 (Fset_keymap_parent): GCPRO arg KEYMAP.
11540
11541 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
11542
11543 * msdos.c (XMenuActivate): After exiting the menu, restore the
11544 echo area message and erase it.
11545
11546 2000-07-10 Kenichi Handa <handa@etl.go.jp>
11547
11548 * fontset.c (Ffontset_info): Make the return value more compatible
11549 with that of Emacs 20.
11550
11551 2000-07-07 Gerd Moellmann <gerd@gnu.org>
11552
11553 * eval.c (Fsignal): Handle case that backtrace_list is null.
11554
11555 2000-07-07 Kenichi Handa <handa@etl.go.jp>
11556
11557 * ccl.c (Fccl_execute): Typo fixed.
11558
11559 2000-07-06 Gerd Moellmann <gerd@gnu.org>
11560
11561 * window.c (window_loop): Add missing gcpro1 local variable.
11562
11563 * window.c (Fwindow_list): Reverse list at the end.
11564 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
11565 means allow windows on OWINDOW's frame, only.
11566 (window_loop): Simplified; use Fwindow_list.
11567
11568 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
11569
11570 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11571
11572 * xterm.c (XTread_socket): Increment handling_signal at the start,
11573 decrement it at the end.
11574
11575 * eval.c (handling_signal): New variable.
11576 (Fsignal): Abort if handling_signal is non-zero.
11577
11578 * lisp.h (handling_signal): External declaration.
11579
11580 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
11581
11582 2000-07-05 Ken Raeburn <raeburn@gnu.org>
11583
11584 Sound support for NetBSD through "Linux emulation" support:
11585 * config.in (HAVE_SOUNDCARD_H): Undef.
11586 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
11587 * Makefile.in (LIBSOUND): New variable.
11588 (LIBES): Include it.
11589 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
11590 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
11591 (vox_open): Use DEFAULT_SOUND_DEVICE.
11592 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
11593
11594 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11595
11596 * print.c (print_error_message): If Vsignaling_function is set,
11597 show it in *Messages*.
11598
11599 * lisp.h (Vsignaling_function): External declaration.
11600
11601 * eval.c (Vsignaling_function): New variable.
11602 (Fsignal): Compute it.
11603 (syms_of_eval): Staticpro it.
11604
11605 2000-07-05 Dave Love <fx@gnu.org>
11606
11607 * syswait.h: Use the autoconf recommended approach. Old code
11608 #if'd out in case we need to revert.
11609
11610 * config.in (HAVE_SYS_WAIT_H): Added.
11611
11612 2000-07-05 Andrew Innes <andrewi@gnu.org>
11613
11614 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
11615 when non-NULL instead of __morecore, to take account of buffer
11616 memory. This also solves a problem with spurious memory warnings
11617 on Windows.
11618
11619 * ralloc.c: Make real_morecore non-static.
11620
11621 * eval.c (internal_condition_case): Comment out abort if
11622 interrupt_input_blocked is not zero.
11623
11624 * makefile.nt: Add support for `bootstrap' and related targets.
11625 Include minimal debug info in emacs.exe in release build.
11626 Remove all dependencies on lisp.h, and fixup some others.
11627
11628 * w32.c (init_environment): Install code from 20.7 for providing
11629 default values for environment variables, based on the
11630 executable's own location.
11631 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
11632 (sys_socket): Install socket inheritance bug fix from 20.7.
11633
11634 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
11635 here via blockinput.h).
11636
11637 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
11638
11639 * w32menu.c (w32_menu_display_help):
11640 * xmenu.c (menu_help_callback): Use show_help_echo.
11641
11642 * keyboard.h (show_help_echo): Declare.
11643
11644 * keyboard.c (show_help_echo): New function, extracted from read_char.
11645 Feval its `msg' argument if it's a cons cell.
11646 (read_char): Use it.
11647 (follow_key): Pass `autoload' to get_keyelt.
11648
11649 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
11650 (note_tool_bar_highlight, XTread_socket):
11651 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
11652 (dos_rawgetc):
11653 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
11654 (note_tool_bar_highlight, w32_read_socket):
11655 Do not gratuitously ignore non-string `help-echo' properties.
11656
11657 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11658
11659 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
11660
11661 * window.c (delete_all_subwindows): Reset Vwindow_list.
11662
11663 * xterm.c (x_append_glyph, x_append_composite_glyph)
11664 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11665 changes in struct glyph starting 1999-12-27. Some bit-fields of
11666 struct glyph were not set, which made glyphs unequal when compared
11667 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
11668 effects were the result. This also depended on the contents of
11669 memory returned by xmalloc. If flickering happens again, activate
11670 the code in clear_glyph_row that's in #if 0. If the flickering is
11671 gone with that, chances are that it is caused by something similar.
11672
11673 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
11674
11675 * dispextern.h: Add some comments.
11676
11677 * window.c (add_window_to_list): Add parameter LIST.
11678 (window_list): Order list so that, for each frame, windows are
11679 in canonical order, and so that frames appear in the list in
11680 the order given by Vframe_list.
11681 (next_window): Reverse the handling of NEXT_P.
11682
11683 2000-07-04 Gerd Moellmann <gerd@gnu.org>
11684
11685 * window.c (Vwindow_list): New variable.
11686 (make_window, delete_window): Set Vwindow_list to nil.
11687 (check_window_containing): New function.
11688 (window_from_coordinates): Rewritten.
11689 (add_window_to_list, window_list, candidate_window_p)
11690 (decode_next_window_args, next_window): New functions.
11691 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
11692 (Fwindow_list): New function.
11693 (Fother_window): Cleaned up.
11694 (foreach_window): Add a longer "variable argument list". Let
11695 callback function return 0 to indicate that cycling over windows
11696 should stop.
11697 (foreach_window_1): Likewise.
11698 (freeze_window_start): Return int.
11699 (init_window): New function.
11700 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
11701
11702 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
11703 input_event with bzero.
11704 (main): Call init_window.
11705
11706 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
11707 a menu filter.
11708
11709 2000-07-04 Kenichi Handa <handa@etl.go.jp>
11710
11711 * composite.h (make_composition_value_copy): Extern it.
11712
11713 * composite.c (make_composition_value_copy): New function.
11714
11715 * editfns.c (Fformat): While copying text properties, make each
11716 composition property value a copy.
11717
11718 * fns.c (concat): While copying text properties, make each
11719 composition property value a copy.
11720
11721 2000-07-03 Gerd Moellmann <gerd@gnu.org>
11722
11723 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
11724
11725 * fns.c (sweep_weak_table): Mark only objects that are not
11726 marked already.
11727
11728 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
11729 include those frames as candidates which have their focus
11730 redirected to the minibuffer frame.
11731
11732 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
11733
11734 * fns.c (Fputhash): Return `value' rather than nil.
11735
11736 2000-06-30 Gerd Moellmann <gerd@gnu.org>
11737
11738 * frame.c (next_frame): Don't check focus redirection in case
11739 MINIBUF is a window. Doing so excludes frames using MINIBUF
11740 unless their focus is redirected, which contradicts the
11741 specification of next-frame, and leads to infinite loops in
11742 certain situations when cycling through windows with next-window.
11743
11744 2000-06-30 Kenichi Handa <handa@etl.go.jp>
11745
11746 * coding.c (code_convert_region): Even if the length of text is
11747 zero, try to convert it if coding->type is coding_type_ccl.
11748 (decode_coding_string, encode_coding_string): Likewise.
11749
11750 2000-06-28 Gerd Moellmann <gerd@gnu.org>
11751
11752 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
11753 the display if windows_or_buffers_changed.
11754
11755 * dispnew.c (struct row_entry): New structure.
11756 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
11757 (row_table_size, old_lines, new_lines, old_lines_size)
11758 (new_lines_size, run_pool, runs_size, runs): New variables.
11759 (add_row_entry): New function.
11760 (scrolling_window): Use data structures allocated with xmalloc and
11761 held in global variables, instead of allocating them with alloca and
11762 holding them in local variables. Use a larger hash table whose
11763 size depends on glyph matrix sizes. Don't use bzero to clear the
11764 hash table; instead, clear used slots only.
11765
11766 * fns.c (next_almost_prime): Make it externally visible.
11767
11768 * lisp.h (next_almost_prime): Add prototype.
11769
11770 * s/isc4-0.h (sigunblock): Define.
11771
11772 * s/sco5.h (sigunblock): Define.
11773
11774 2000-06-27 Dave Love <fx@gnu.org>
11775
11776 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
11777 (moved to osf5-0.h).
11778 [!NOT_C_CODE]: Protect string.h stuff.
11779
11780 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
11781 (sys_siglist, NSIG): Definitions moved here from osf1.h.
11782
11783 2000-06-27 Gerd Moellmann <gerd@gnu.org>
11784
11785 * xdisp.c (resize_mini_window): Subtract the extra line spacing
11786 below the last line from the needed window height.
11787
11788 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
11789
11790 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
11791 (Fwidget_get): Use it.
11792 (syms_of_fns): Defsubr it.
11793
11794 2000-06-26 Gerd Moellmann <gerd@gnu.org>
11795
11796 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
11797 display info for XIM.
11798 (xim_open_dpy): Likewise.
11799 (xim_close_dpy): Don't free the display info's XIM.
11800
11801 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
11802
11803 * config.in (USE_XIM): New define.
11804
11805 * keymap.c (get_keyelt): For menu-items containing a `:filter
11806 FILTER', apply FILTER to the menu-item's definition to get the
11807 real definition to use.
11808
11809 * lisp.h (QCfilter): External declaration.
11810
11811 * xfns.c (Fimage_size): New function.
11812 (syms_of_xfns): Defsubr it.
11813
11814 2000-06-26 Andreas Schwab <schwab@suse.de>
11815
11816 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
11817 Fstring_as_unibyte.
11818
11819 2000-06-25 Dave Love <fx@gnu.org>
11820
11821 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
11822
11823 * Makefile.in (blockinput.h): Depend on atimer.h.
11824 (atimer.h): Depend on systime.h.
11825
11826 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
11827
11828 * atimer.h: Protect against multiple inclusion. Include systime.h.
11829
11830 * lisp.h (swap_in_global_binding): Declare.
11831
11832 2000-06-24 Ken Raeburn <raeburn@gnu.org>
11833
11834 * process.c (Fopen_network_stream): Turn off atimers for duration
11835 of call to connect. (Patch from Gerd.)
11836
11837 2000-06-23 Dave Love <fx@gnu.org>
11838
11839 * ralloc.c: Maybe include unistd.h
11840
11841 * emacs.c (setgrp): Undefine before defining.
11842 (malloc_warning, set_time_zone_rule, index): Prototype.
11843
11844 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
11845 HAVE_STRUCT_TIMEZONE.
11846
11847 * s/osf1.h: Move string.h hack here from alpha.h and make it
11848 conditional.
11849 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
11850 _XOPEN_SOURCE.
11851 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
11852 (SOCKLEN_TYPE): Don't define.
11853
11854 * m/alpha.h: Remove string.h hack.
11855
11856 * s/osf5-0.h: New file.
11857
11858 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
11859 include time.h, done by systime.h.
11860 [__FreeBSD__]: Remove redundant includes.
11861
11862 * callproc.c (setpgrp): Undefine before defining.
11863 (delete_temp_file): Return Qnil to avoid warning.
11864
11865 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
11866
11867 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
11868 HAVE_X_WINDOWS.
11869
11870 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
11871
11872 * composite.h (compose_text): Declare.
11873
11874 * xterm.c: Don't include sys/types.h unconditionally. Don't
11875 protect its inclusion with !USG (following xmenu.c).
11876
11877 2000-06-23 Gerd Moellmann <gerd@gnu.org>
11878
11879 * xfns.c (x_create_tip_frame): Initialize frame's colors like
11880 in x_create_frame.
11881
11882 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11883
11884 * coding.c (decode_eol_post_ccl): Special handling for undecided
11885 and inconsistent EOL types.
11886
11887 2000-06-22 Gerd Moellmann <gerd@gnu.org>
11888
11889 * xrdb.c (x_load_resources): Add default resource for scroll bar's
11890 trough color and main window's background color.
11891
11892 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
11893
11894 * xterm.h (Xt_app_con): External declaration.
11895
11896 * widget.c (EmacsFrameRealize): Fix typo.
11897
11898 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
11899
11900 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
11901 (handle_invisible_prop): Record the start of invisible text in
11902 it->add_overlay_start.
11903 (struct overlay_entry): Add member `overlay'.
11904 (handle_overlay_change): Simplify.
11905 (next_overlay_string): After having processed overlay strings at the
11906 end of the buffer, record that fact in
11907 it->overlay_strings_at_end_processed_p.
11908 (compare_overlay_entries): If before- and after-strings come
11909 from the same overlay, let before-strings come first.
11910 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
11911 (load_overlay_strings): Take it->add_overlay_start into account
11912 when adding overlay strings.
11913
11914 * dispextern.h (struct it): Add member add_overlay_start.
11915
11916 2000-06-22 Dave Love <fx@gnu.org>
11917
11918 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
11919
11920 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
11921
11922 2000-06-22 Kenichi Handa <handa@etl.go.jp>
11923
11924 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
11925 is greater than 0.
11926
11927 2000-06-21 Dave Love <fx@gnu.org>
11928
11929 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
11930
11931 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
11932
11933 * syntax.c (back_comment): Simplify string-parity counting (with
11934 the added benefit of handling multiple string-styles as long as
11935 they are not intertwined).
11936 Jump to the slow code as soon as a comment starter is found in
11937 a "string_lossage" position. Fixes the case: " /* " /* " */.
11938
11939 2000-06-21 Dave Love <fx@gnu.org>
11940
11941 * Makefile.in: Use GETLOADAVG_LIBS.
11942
11943 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
11944 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
11945
11946 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11947
11948 * syntax.c (describe_syntax): Recognize the `n'estable bit.
11949 (Fforward_comment, scan_lists):
11950 Check the comstyle of single-char comment-starters.
11951 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
11952 we're just at the beginning of the comment (f.ex with (*) ... (*)).
11953 Check the comstyle of single-char comment-starters.
11954 Clarify control-flow around the Scomment case.
11955
11956 2000-06-20 Dave Love <fx@gnu.org>
11957
11958 * fns.c (make_hash_table, maybe_resize_hash_table):
11959 Cast arg of next_almost_prime.
11960
11961 * tparam.c [emacs]: Include lisp.h.
11962
11963 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
11964 and unistd.h.
11965
11966 2000-06-20 Gerd Moellmann <gerd@gnu.org>
11967
11968 * keyboard.c (adjust_point_for_property): Check if display
11969 property should be treated as intangible by looking at its value.
11970
11971 * xdisp.c (single_display_prop_intangible_p)
11972 (display_prop_intangible_p): New functions.
11973
11974 * dispextern.h (display_prop_intangible_p): Add prototype.
11975
11976 * xdisp.c (dump_glyph_row): Show type of glyph->object.
11977
11978 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
11979 argument to sigprocmask.
11980
11981 * s/sco5.h (sigblock): Redefined to pass a pointer as second
11982 argument to sigprocmask.
11983
11984 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
11985 sigprocmask_set, and pass a pointer to it to sigprocmask.
11986
11987 * sysdep.c (sigprocmask_set): New variable.
11988
11989 * fileio.c (make_temp_name): Don't use `%s' in string passed to
11990 report_file_error.
11991
11992 2000-06-20 Sam Steingold <sds@gnu.org>
11993
11994 * xrdb.c: Don't declare xmalloc, xrealloc.
11995
11996 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11997
11998 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
11999 (re_comp): Cast gettext return value to avoid complaints when
12000 !HAVE_LIBINTL.
12001
12002 2000-06-20 Dave Love <fx@gnu.org>
12003
12004 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
12005
12006 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
12007
12008 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
12009
12010 * m/alpha.h: Don't declare xmalloc, xrealloc.
12011
12012 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
12013
12014 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
12015
12016 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
12017
12018 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
12019 HAVE_GETWD.
12020
12021 * keyboard.h (poll_for_input_1): Declare.
12022
12023 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
12024
12025 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
12026
12027 * doprnt.c: Don't declare xmalloc, xrealloc.
12028
12029 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
12030 (getenv, ctime, getwd): Removed.
12031 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
12032
12033 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
12034 x_set_tool_bar_lines.
12035
12036 * config.in: Add HAVE_GETWD. Move some definitions above
12037 machine/system includes.
12038
12039 2000-06-20 Kenichi Handa <handa@etl.go.jp>
12040
12041 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
12042
12043 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
12044 contain information about ENCODING.
12045
12046 * fontset.c (FONTSET_ASCII): Use the first element of char table
12047 for an ASCII font, not defalt slot.
12048 (fontset_ref_via_base): If FONTSET doesn't contain information for
12049 C, try the default fontset.
12050 (make_fontset): Don't copy the default fontset.
12051 (fontset_font_pattern): Likewise.
12052 (accumulate_font_info): If ELT is nil, use the corresponding
12053 element in the default fontset.
12054
12055 2000-06-19 Dave Love <fx@gnu.org>
12056
12057 * syntax.c (Fparse_partial_sexp): Doc fix.
12058
12059 * regex.h: Test PROTOTYPES as well as __STDC__.
12060
12061 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
12062 errno, strerror. Put text after #endif in comment.
12063
12064 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
12065
12066 * xterm.c (x_frame_of_widget): Likewise.
12067
12068 2000-06-19 Gerd Moellmann <gerd@gnu.org>
12069
12070 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
12071 to Vfundamental_mode_abbrev_table.
12072
12073 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
12074 bogus objects are marked. This slows down GC by ~80 percent, but
12075 it might be worth trying when debugging GC-related problems.
12076 This feature requires conservative stack marking to be enabled.
12077
12078 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
12079 returns XLookupChars, reset `modifiers' to zero.
12080
12081 2000-06-19 Dave Love <fx@gnu.org>
12082
12083 * mktime.c: Unprotoized.
12084
12085 2000-06-19 Richard Stallman <rms@gnu.org>
12086
12087 * data.c (set_internal): If variable is frame-local,
12088 store the new value immediately into the frame parameter alist.
12089
12090 2000-06-19 Ken Raeburn <raeburn@gnu.org>
12091
12092 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
12093 in the custom handler pointer.
12094
12095 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
12096 value, or checks for CHAR_META can fail when Lisp_Object is a
12097 union type.
12098 * keymap.c (get_keyelt): Likewise.
12099
12100 2000-06-19 Kenichi Handa <handa@etl.go.jp>
12101
12102 * ccl.h (struct ccl_program): New member eol_type.
12103 (struct ccl_spec): New member cr_carryover.
12104
12105 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
12106 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
12107
12108 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
12109 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
12110 (decode_eol_post_ccl): New function.
12111 (decode_coding): Don't detect EOL format here for CCL based coding
12112 systems.
12113 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
12114 decode_eol_post_ccl after running the CCL program.
12115 (code_convert_region): Don't detect EOL format here for CCL based
12116 coding systems.
12117 (decode_coding_string): Likewise.
12118
12119 2000-06-18 Ken Raeburn <raeburn@gnu.org>
12120
12121 * charset.c (update_charset_table): Use XINT on "iso_final_char"
12122 when treating it as an integer.
12123
12124 * coding.h (encode_coding_string): Declare.
12125
12126 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
12127 it as an integer.
12128
12129 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
12130 "xkeymap" to avoid shadowing the "enum map_type" value that needs
12131 to be passed to get_local_map.
12132
12133 * sound.c (Fplay_sound): Don't call make_number on
12134 Frun_hook_with_args count argument.
12135
12136 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
12137 for lisp objects in X event structure data field, when lisp
12138 objects are represented with unions.
12139 (x_scroll_bar_to_input_event): Ditto.
12140
12141 2000-06-16 Ken Raeburn <raeburn@gnu.org>
12142
12143 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
12144 termination of string. Fix sense of test whether
12145 Vline_number_display_limit is an integer.
12146
12147 2000-06-16 Gerd Moellmann <gerd@gnu.org>
12148
12149 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
12150 only if HAVE_X_WINDOWS.
12151
12152 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
12153 of titles.
12154
12155 * dispnew.c (update_frame_1): Handle case that cursor vpos is
12156 out of bounds.
12157
12158 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
12159
12160 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
12161 of its headers.
12162
12163 2000-06-15 Kenichi Handa <handa@etl.go.jp>
12164
12165 * coding.c (decode_coding_emacs_mule): Always set src_base at the
12166 start of the while loop.
12167
12168 2000-06-15 Gerd Moellmann <gerd@gnu.org>
12169
12170 * atimer.c (alarm_signal_handler): Add forward declaration.
12171
12172 * data.c (set_internal): Remove debug code.
12173
12174 2000-06-14 Gerd Moellmann <gerd@gnu.org>
12175
12176 * Makefile.in (bootstrap-temacs): Add `-I../src'.
12177
12178 * unexec.c (toplevel) [COFF]: Include coff.h.
12179
12180 * s/lynxos.h: New file.
12181
12182 * keymap.c (Fsingle_key_description): Enclose function key and
12183 event symbol names in angle brackets.
12184
12185 * xdisp.c (setup_echo_area_for_printing): Call
12186 message_log_maybe_newline if message_buf_print is not set.
12187
12188 * print.c (printchar, strout): Don't check message_buf_print
12189 before calling setup_echo_area_for_printing because that
12190 function does something useful even when message_buf_print is
12191 already set.
12192
12193 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
12194 New variables.
12195 (ensure_echo_area_buffers): Initialize echo buffer's
12196 truncate lines setting to nil.
12197 (with_echo_area_buffer): Don't set the echo buffer's truncate
12198 lines setting here.
12199 (set_message_1): Set it here instead, based on the value
12200 of message_truncate_lines.
12201 (resize_mini_window): Handle case that lines are truncated.
12202 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
12203 DEFVAR_BOOL message-truncate-lines.
12204
12205 * keyboard.c (read_char): Bind message-truncate-lines to t
12206 while displaying a help-echo.
12207
12208 * lisp.h (Qmessage_truncate_lines): External declaration.
12209
12210 2000-06-13 Gerd Moellmann <gerd@gnu.org>
12211
12212 * xdisp.c (Vline_number_display_limit): Renamed from
12213 line_number_display_limit.
12214 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
12215 Extend documentation string. Initialize
12216 Vline_number_display_limit to nil meaning no limit.
12217 (decode_mode_spec): Use Vline_number_display_limit with its new
12218 meaning.
12219
12220 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
12221
12222 2000-06-13 Richard Stallman <rms@gnu.org>
12223
12224 * frame.c (Fmodify_frame_parameters): Doc fix.
12225
12226 * xfns.c (x_set_frame_parameters): Comment fix.
12227
12228 * frame.c (store_frame_param): Call swap_in_global_binding if the
12229 variable's current binding was chosen based on this frame.
12230
12231 * data.c (swap_in_global_binding): New function.
12232
12233 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12234
12235 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
12236 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
12237
12238 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12239
12240 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
12241
12242 2000-06-12 Jason Rumney <jasonr@gnu.org>
12243
12244 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
12245
12246 * w32.h (EMACS_W32_H): Renamed from _NT_H_
12247
12248 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
12249
12250 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
12251
12252 2000-06-12 Gerd Moellmann <gerd@gnu.org>
12253
12254 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
12255 (syms_of_xfaces): Defsubr Sdump_colors.
12256 (x_free_colors): Don't treat b&w specially on default visual.
12257 (x_free_dpy_colors): New function.
12258 (free_face_colors): Don't check visual class; it's done
12259 in x_free_colors.
12260
12261 * xterm.c (x_frame_of_widget): New function.
12262 (x_alloc_nearest_color_for_widget): Use it.
12263 (x_copy_dpy_color): New function.
12264 (x_destroy_window): Free various colors.
12265
12266 2000-06-12 Kenichi Handa <handa@etl.go.jp>
12267
12268 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
12269
12270 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
12271
12272 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
12273
12274 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
12275
12276 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
12277
12278 2000-06-11 Dave Love <fx@gnu.org>
12279
12280 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
12281
12282 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
12283
12284 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
12285
12286 2000-06-11 Gerd Moellmann <gerd@gnu.org>
12287
12288 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
12289 to `XEvent *'.
12290
12291 2000-06-10 Kenichi Handa <handa@etl.go.jp>
12292
12293 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
12294 (regex_compile): Fix the code for handling the case of single byte
12295 char and multibyte char being mixed in a range within [...].
12296
12297 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
12298 and dst_multibyte members of coding.
12299
12300 * charset.c (update_charset_table): Update the table
12301 bytes_by_char_head.
12302 (init_charset_once): Initialize elements of bytes_by_char_head to
12303 1 except for leading codes for private charases.
12304
12305 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
12306 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
12307
12308 2000-06-09 Ken Raeburn <raeburn@gnu.org>
12309
12310 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
12311 access the data it doesn't point to.
12312
12313 2000-06-08 Gerd Moellmann <gerd@gnu.org>
12314
12315 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
12316 will be translated to a switch-frame event when reading the
12317 event queue. This is necessary because Emacs otherwise won't
12318 perform a switch-frame to a new frame until some other event, for
12319 example a keystroke event, forces it to do so. This has various
12320 effects, one visible being that the cursor of a frame created with
12321 C-x 5 2 or switched to with a window manager key binding like
12322 A-TAB stays hollow because selected_window isn't on the newly
12323 focused frame until the switch-frame is performed.
12324
12325 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
12326 generating a switch-frame event if necessary.
12327
12328 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
12329
12330 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
12331 it's an integer.
12332
12333 2000-06-08 Kenichi Handa <handa@etl.go.jp>
12334
12335 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
12336
12337 2000-06-07 Gerd Moellmann <gerd@gnu.org>
12338
12339 * window.c (displayed_window_lines): Take empty lines at
12340 the bottom of a window into account.
12341
12342 * window.c (displayed_window_lines): New function.
12343 (Fmove_to_window_line): Use displayed_window_lines to determine
12344 the number of lines to move, instead of using the window's height.
12345
12346 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
12347 to stop reading, even if the form read sets point to a different
12348 value when evaluated.
12349
12350 * xdisp.c (display_line): Fix code deciding in which line to
12351 put the cursor.
12352
12353 2000-06-07 Kenichi Handa <handa@etl.go.jp>
12354
12355 * fileio.c (e_write): Free composition data if stored in
12356 coding->cmp_data.
12357
12358 2000-06-06 Gerd Moellmann <gerd@gnu.org>
12359
12360 * xdisp.c (display_line): Set row's and iterator's
12361 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
12362 Set cursor even if row ends in the middle of a character.
12363 (dump_glyph_row): Print values of new flags.
12364 (redisplay_window) <cursor movement in unchanged window>: When
12365 point has been moved forward, and PT is at the end of the cursor
12366 row, don't place the cursor in the next row if the cursor row ends
12367 in the middle of a character or at ZV.
12368
12369 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
12370 (struct glyph_row): Add starts_in_middle_of_char_p and
12371 ends_in_middle_of_char_p.
12372 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
12373 ends_in_middle_of_char_p flag.
12374 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
12375
12376 * term.c (append_glyph): Revert change of 2000-06-06.
12377
12378 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
12379 padding glyph not fitting on line as whole character not
12380 fitting on line.
12381
12382 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
12383 this isn't true for images with `:ascent 100'.
12384
12385 2000-06-06 Kenichi Handa <handa@etl.go.jp>
12386
12387 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
12388 as modified if it is originally unmodified.
12389
12390 * term.c (encode_terminal_code): Change the way to check if
12391 terminal coding does any conversion.
12392 (append_glyph): Set glyph->pixel_width correctly.
12393
12394 * xdisp.c (display_line): While checking line continuation, pay
12395 attention to a padding glyph.
12396
12397 2000-06-05 Gerd Moellmann <gerd@gnu.org>
12398
12399 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
12400
12401 2000-06-05 Dave Love <fx@gnu.org>
12402
12403 * xdisp.c: Include fontset.h.
12404
12405 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
12406
12407 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12408
12409 * dispnew.c: Conditionally include term.h.
12410
12411 * coding.h: Declare code_convert_string_norecord.
12412
12413 * frame.h (struct frame): Use volatile unconditionally.
12414
12415 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
12416
12417 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
12418
12419 * systime.h: Protect against multiple inclusion.
12420 (timezone) [USG5_4]: Define as time_t.
12421
12422 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12423 (Foptimize_char_table, make_temp_name): Declare.
12424
12425 * Makefile.in (xdisp.o): Depend on fontset.h.
12426
12427 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12428
12429 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12430 (Foptimize_char_table, make_temp_name): Declare.
12431
12432 * s/irix4-0.h:
12433 * s/irix5-0.h:
12434 * s/netbsd.h: Don't define autoconfiscated MATHERR.
12435
12436 2000-06-02 Dave Love <fx@gnu.org>
12437
12438 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
12439
12440 2000-06-02 Gerd Moellmann <gerd@gnu.org>
12441
12442 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
12443 result face, set flags in that face indicating that colors may not
12444 be freed.
12445
12446 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
12447 glyph, use the ASCII NUL character to determine the face.
12448
12449 2000-06-02 Dave Love <fx@gnu.org>
12450
12451 * sysdep.c: Conditionally include stdlib.h, unistd.h.
12452 (VFORK_RETURN_TYPE): Remove.
12453
12454 * config.in: Add NO_MATHERR.
12455
12456 2000-06-01 Dave Love <fx@gnu.org>
12457
12458 * cmds.c (internal_self_insert): Don't check
12459 Vbefore_change_function, Vafter_change_function.
12460
12461 * insdel.c (signal_before_change, signal_after_change): Likewise.
12462
12463 * buffer.c (Vbefore_change_function, Vafter_change_function):
12464 Variables and their initializations deleted.
12465
12466 * callint.c (Fcall_interactively): Doc fix.
12467
12468 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
12469
12470 2000-05-31 Dave Love <fx@gnu.org>
12471
12472 * textprop.c: Revert last change -- duplicated.
12473
12474 2000-05-31 Gerd Moellmann <gerd@gnu.org>
12475
12476 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
12477 in #if 0.
12478
12479 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
12480
12481 2000-05-31 Jason Rumney <jasonr@gnu.org>
12482
12483 * search.c (Fre_search_forward, Fre_search_backward)
12484 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
12485
12486 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
12487
12488 2000-05-30 Jason Rumney <jasonr@gnu.org>
12489
12490 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
12491 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
12492
12493 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
12494
12495 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
12496 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
12497 expand a nil default_filename.
12498
12499 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
12500 pointer to glyph_to_pixel_coords, not a frame.
12501
12502 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
12503 coding.h to dependencies.
12504
12505 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
12506
12507 * w32console.c (glyph_to_pixel_coords): Change first parameter to
12508 window pointer to be consistent with w32term.c and xterm.c.
12509
12510 * w32fns.c: Format and doc changes to bring closer to xfns.c.
12511 (VIETNAMESE_CHARSET): Define if not defined in system headers.
12512 (Qline_spacing, Qcenter): New variables.
12513 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
12514 (x_set_line_spacing): New function.
12515 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
12516 (x_specified_cursor_type): New function.
12517 (x_set_cursor_type): Use it.
12518 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
12519 and icon strings.
12520 (validate_x_resource_name, x_get_resource_string): Measure lengths
12521 of external strings in bytes.
12522 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
12523 GetTextExtentPoint32 with NULL title.
12524 (Fx_create_frame): Initialize Qline_spacing.
12525 (w32_load_system_font): Initialize font->double_byte_p.
12526 (x_to_w32_charset): Use Vw32_charset_info_alist.
12527 (Image, busy cursor, tooltip functions): Merged changes from
12528 xfns.c. Not yet functional on Windows.
12529
12530 * w32gui.h (W32FontStruct): Add double_byte_p member.
12531
12532 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
12533 (emacs_button_translation): Use it.
12534 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
12535 in `mask' to be set.
12536
12537 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
12538 menu strings.
12539
12540 * w32term.c: Format and doc changes to bring closer to xterm.c.
12541 (w32_char_font_type): New enum.
12542 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
12543 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
12544 (w32_encode_char): New function.
12545 (x_encode_char): Removed.
12546 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
12547 x_encode_char and w32_font_is_double_byte.
12548 (x_produce_image_glyph): Use image_ascent.
12549 (x_produce_glyphs): Use new version of w32_per_char_metric and
12550 handle NULL return value. Allow extra line spacing.
12551 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
12552 (w32_get_glyph_overhangs): Remove unicode_p param. Use
12553 w32_font_type member of glyph instead.
12554 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
12555 (fast_find_position): Make sure not to consider rows not visible
12556 in the window.
12557 (w32_read_socket) [WM_MENUSELECT]: Cannot call
12558 w32_menu_display_help with input blocked, as it can abort.
12559 (x_display_and_set_cursor): Choose cursor depending
12560 on buffer-local value of cursor_type.
12561 (x_draw_bar_cursor): Add parameter WIDTH.
12562
12563 * w32term.h (CP_DEFAULT): Define.
12564 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
12565
12566 2000-05-30 Gerd Moellmann <gerd@gnu.org>
12567
12568 * search.c (Fre_search_forward, Fre_search_backward)
12569 (Fposix_search_backward, Fposix_search_forward): Doc fix.
12570
12571 2000-05-30 Kenichi Handa <handa@etl.go.jp>
12572
12573 * coding.c (detect_coding_iso2022): Fix code for checking
12574 CODING_CATEGORY_MASK_ISO_8_2.
12575
12576 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
12577
12578 * regex.c (PREFETCH_NOLIMIT): New function.
12579 (re_match_2_internal): Use it and adjust the end_match_2 logic.
12580
12581 2000-05-29 Gerd Moellmann <gerd@gnu.org>
12582
12583 * syntax.c (find_defun_start): Move test for
12584 open_paren_in_column_0_is_defun_start outside of the loop.
12585
12586 * xdisp.c (redisplay_window): Really switch buffers when
12587 displaying mode lines, and temporarily set selected_frame to the
12588 frame of the window that's redisplayed.
12589
12590 * xfaces.c (free_realized_faces): Block/unblock input.
12591 (free_realized_multibyte_face): Ditto.
12592
12593 2000-05-29 Dave Love <fx@gnu.org>
12594
12595 * textprop.c (Qkeymap): New variable.
12596 (syms_of_textprop): Intern it.
12597
12598 * keymap.c: Include intervals.h.
12599 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
12600
12601 * Makefile.in (keymap.o): Depend on intervals.h.
12602
12603 * keyboard.c (menu_bar_items, tool_bar_items)
12604 (Fexecute_extended_command): Deal with `keymap' property.
12605 (read_key_sequence): Track map from `keymap' property as well as
12606 `local_map'.
12607
12608 * intervals.c (get_local_map): Extra arg to allow looking for
12609 `keymap' too.
12610
12611 * intervals.h (map_property): New enum.
12612 (get_local_map): Extra arg using it.
12613 (Qkeymap): Declare.
12614
12615 * lisp.h (get_local_map): Don't declare here.
12616
12617 2000-05-29 Kenichi Handa <handa@etl.go.jp>
12618
12619 * Makefile.in (callproc.o): Depend on composite.h.
12620
12621 * callproc.c: Include composite.h.
12622 (Fcall_process): Handle composition correctly.
12623
12624 * coding.h (coding_allocate_composition_data): Extern it.
12625 (coding_restore_composition): Likewise.
12626
12627 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
12628 yet allocated, finish decoding with result
12629 CODING_FINISH_INSUFFICIENT_CMP.
12630 (coding_allocate_composition_data): Make it non-static.
12631 (coding_restore_composition): Likewise.
12632
12633 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
12634
12635 * charset.c (syms_of_charset): Revert last change.
12636
12637 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12638
12639 * term.c (produce_glyphs): Treat characters from the eight-bit-*
12640 charsets as unibyte, with 1-column screen width. Sent by Kenichi
12641 Handa.
12642
12643 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12644
12645 * charset.c (syms_of_charset): Set width of character sets
12646 eight-bit-control and eight-bit-graphic to 1 column.
12647
12648 2000-05-26 Gerd Moellmann <gerd@gnu.org>
12649
12650 * config.in (HAVE_SPEED_T): New define.
12651
12652 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
12653 `extern speed_t'.
12654
12655 2000-05-26 Dave Love <fx@gnu.org>
12656
12657 * coding.c (shrink_decoding_region): Initialize eol_conversion.
12658
12659 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
12660 (Fsubr_arity): New function.
12661 (syms_of_data): Install them.
12662
12663 2000-05-26 Kenichi Handa <handa@etl.go.jp>
12664
12665 * charset.c (init_charset_once): Set the table bytes_by_char_head
12666 correctly.
12667
12668 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
12669 the default fontset to what Emacs uses by default.
12670 (check_registry_encoding): This function deleted.
12671 (Fset_fontset_font): Remove the adhoc condition for the default
12672 fontset. Allow cons in FONTNAME.
12673
12674 * fns.c (map_char_table): Ignore char-table entries for
12675 charsets eight-bit-control and eight-bit-graphic.
12676
12677 2000-05-25 Ken Raeburn <raeburn@gnu.org>
12678
12679 * emacs.c (main): Initialize keyboard syms before initializing
12680 window code, so face names are available.
12681
12682 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
12683
12684 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
12685 of an anchor at the beginning of a shy-group.
12686
12687 2000-05-25 Gerd Moellmann <gerd@gnu.org>
12688
12689 * xdisp.c (handle_invisible_prop): Don't try to skip over
12690 invisible text if end of text is already reached.
12691
12692 2000-05-25 Dave Love <fx@gnu.org>
12693
12694 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
12695
12696 * coding.c (encode_eol): Add null statement after label.
12697
12698 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
12699
12700 * w16select.c (Fw16_set_clipboard_data): Fix the change from
12701 2000-05-20.
12702
12703 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12704
12705 * ccl.c (ccl_driver): Fix previous change.
12706
12707 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12708
12709 * coding.c (run_pre_post_conversion_on_str): Set point to the
12710 beginning of buffer before calling coding->post_read_conversion.
12711 (decode_coding_string): Give correct args to
12712 run_pre_post_conversion_on_str.
12713 (encode_coding_string): Likewise.
12714
12715 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
12716 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
12717 eight-bit-graphic correctly.
12718
12719 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
12720
12721 * fileio.c (Finsert_file_contents): Even if a file is not found,
12722 execute codes for setting up coding system. Call
12723 after-insert-file-functions unconditionally.
12724
12725 2000-05-24 Gerd Moellmann <gerd@gnu.org>
12726
12727 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
12728 BSD_PGRPS are not defined.
12729
12730 2000-05-24 Kenichi Handa <handa@etl.go.jp>
12731
12732 * charset.c (update_charset_table): Accept nil in LONG_NAME and
12733 DESCRIPTION.
12734 (syms_of_charset): Avoid building same strings.
12735
12736 2000-05-23 Gerd Moellmann <gerd@gnu.org>
12737
12738 * lread.c (Fload): Add a comment about the meaning of
12739 Vuser_init_file being t.
12740
12741 * puresize.h (BASE_PURESIZE): Increase to 675000.
12742
12743 * s/gnu-linux.h (setpgrp): Don't define it here because this
12744 prevents compilation on GNU/Linux systems with glib 2.2.
12745
12746 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
12747 as setpgid.
12748
12749 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
12750
12751 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
12752 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
12753 version.
12754 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
12755
12756 2000-05-23 Kenichi Handa <handa@etl.go.jp>
12757
12758 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12759
12760 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
12761
12762 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
12763
12764 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
12765
12766 2000-05-22 Kenichi Handa <handa@etl.go.jp>
12767
12768 * keyboard.c (read_char): Allow character codes 128..255 to be
12769 handled by input-method-function.
12770
12771 * insdel.c (adjust_markers_for_replace): Fix previous change.
12772 (adjust_after_replace): If PREV_TEXT is nil, call
12773 adjust_markers_for_insert, not adjust_markers_for_replace.
12774
12775 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
12776
12777 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
12778 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
12779 [HAVE_GRANDPT]: Define.
12780 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
12781
12782 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
12783 like SYSV_PTYS.
12784
12785 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
12786
12787 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
12788
12789 2000-05-20 Kenichi Handa <handa@etl.go.jp>
12790
12791 The following changes are to handle 8-bit characters in a
12792 multibyte buffer/string without facing with byte combining
12793 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
12794 eight-bit-graphic (for 0xA0..0xFF) are introduced.
12795
12796 * Makefile.in (fns.o): Depend on charset.h.
12797
12798 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
12799 convert it to unibyte.
12800 (make_string): Use parse_str_as_multibyte, not chars_in_text.
12801
12802 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
12803 apparent char boundary.
12804 (Fset_buffer_multibyte): Convert 8-bit characters in the range
12805 0x80..0x9F to/from multibyte form.
12806
12807 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
12808 to unibyte.
12809
12810 * callproc.c (Fcall_process): Always encode an argument string if
12811 it is multibyte. Setup src_multibyte and dst_multibyte members of
12812 process_coding properly.
12813
12814 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
12815 SPLIT_NON_ASCII_CHAR.
12816
12817 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
12818 as is.
12819 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
12820
12821 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
12822 (SPLIT_CHARACTER_SEQ): This macro deleted.
12823 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
12824 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
12825 and eight-bit-graphic.
12826 (char_to_string): Likewise. Signal an error for too large
12827 character code.
12828 (char_printable_p): Return 0 for 8-bit characters.
12829 (update_charset_table): Update iso_charset_table only when a final
12830 character is non-negative.
12831 (find_charset_in_text): Renamed from find_charset_in_str.
12832 Arguments and return value changed. Callers changed.
12833 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
12834 be -1 if CHARSET is used only internally.
12835 (Fmake_char_internal): Handle new charsets; eight-bit-control and
12836 eight-bit-graphic.
12837 (Fcharset_after): Simplified.
12838 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
12839 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
12840 (multibyte_chars_in_text): Simplified by assuming there's no
12841 invalid multibyte sequence.
12842 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12843 (str_as_unibyte): New functions.
12844 (Fstring): Simpified by assuming that byte combining never happens.
12845 (init_charset_once): Initialization for
12846 LEADING_CODE_8_BIT_CONTROL.
12847 (syms_of_charset): Intern and staticpro Qeight_bit_control and
12848 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
12849 eight-bit-control and eight-bit-graphic.
12850
12851 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
12852 (CHARSET_8_BIT_GRAPHIC): New macros.
12853 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
12854 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
12855 (CHARSET_REVERSE_CHARSET): Likewise.
12856 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
12857 eight-bit-graphic.
12858 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
12859 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
12860 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
12861 encounter an invalid multibyte sequence.
12862 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
12863 sequence is always valid.
12864 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
12865 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
12866 (CHAR_STRING): For 8-bit characters, call char_to_string.
12867 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
12868 multibyte sequence is always valid.
12869 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
12870 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12871 (str_as_unibyte): Extern them.
12872 (BCOPY_SHORT): Fix a bug.
12873 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
12874 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
12875 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
12876 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
12877
12878 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
12879 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
12880 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
12881 (EMIT_BYTES): New macros.
12882 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
12883 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
12884 macros deleted.
12885 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
12886 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
12887 check the validity of multibyte sequence.
12888 (decode_coding_emacs_mule): New function.
12889 (encode_coding_emacs_mule): New macro.
12890 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
12891 the source.
12892 (DECODE_ISO_CHARACTER): Just return a character code.
12893 (DECODE_COMPOSITION_START): Set coding->result instead of result.
12894 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
12895 EMIT_CHAR to produced decoded characters. Exit the loop only by
12896 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
12897 block here.
12898 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
12899 only position codes for an invalid character.
12900 (encode_designation_at_bol): Return new destination pointer. 5th
12901 arg DSTP is changed to DST.
12902 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
12903 from the source by ONE_MORE_CHAR. Don't handle the case of last
12904 block here.
12905 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
12906 macros deleted.
12907 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
12908 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
12909 TWO_MORE_BYTES to fetch a byte from the source.
12910 (encode_eol): Pay attention to coding->src_multibyte.
12911 (detect_coding, detect_eol): Preserve members src_multibyte and
12912 dst_multibyte.
12913 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
12914 (encoding_buffer_size): Set magnification to 3 for all coding
12915 systems that require encoding.
12916 (ccl_coding_driver): For decoding, be sure that the result is
12917 valid multibyte sequence.
12918 (decode_coding): Initialize coding->errors and coding->result.
12919 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
12920 and raw-text, always call decode_eol. Handle the case of last
12921 block here. If not coding->dst_multibyte, convert the resulting
12922 sequence to unibyte.
12923 (encode_coding): Initialize coding->errors and coding->result.
12924 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
12925 and raw-text, always call encode_eol. Handle the case of last
12926 block here.
12927 (shrink_decoding_region, shrink_encoding_region): Detect cases
12928 that we can't skip data more rigidly.
12929 (code_convert_region): Setup src_multibyte and dst_multibyte
12930 members of coding. For decoding, if the buffer is multibyte,
12931 convert the source sequence to unibyte in advance. For encoding,
12932 if the buffer is multibyte, convert the resulting sequence to
12933 multibyte afterward.
12934 (run_pre_post_conversion_on_str): New function.
12935 (code_convert_string): Deleted and divided into the following two.
12936 (decode_coding_string, encode_coding_string): New functions.
12937 (code_convert_string1, code_convert_string_norecord): Call one of
12938 above.
12939 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
12940 MAKE_NON_ASCII_CHAR.
12941 (Fset_terminal_coding_system_internal)
12942 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
12943 and dst_multibyte members.
12944 (init_coding_once): Initialize iso_code_class with new enum
12945 ISO_control_0 and ISO_control_1.
12946
12947 * coding.h (enum iso_code_class_type): Member ISO_control_code is
12948 devided into ISO_control_0 and ISO_control_1.
12949 (struct coding_system): New members src_multibyte, dst_multibyte,
12950 errors, and result. Delete member fake_multibyte.
12951 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
12952 nonzero.
12953 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
12954 nonzero.
12955
12956 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
12957 (Faset): Likewise.
12958
12959 * editfns.c (Fformat): Be sure to convert 8-bit characters to
12960 multibyte form.
12961 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
12962 combining occurs.
12963 (Ftranspose_region): Delete codes for handling byte combining.
12964
12965 * fileio.c (Finsert_file_contents): Setup src_multibyte and
12966 dst_multibyte members of coding. On handling REPLACE on unibyte
12967 buffer, convert the result of decode_coding to unibyte. On
12968 inserting into a mutibyte buffer, always call code_convert_region.
12969 (e_write): Setup coding->src_multibyte according to the
12970 multibyteness of the source (buffer or string).
12971
12972 * fns.c (concat): Handle 8-bit characters correctly.
12973 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
12974 unibyte in the result.
12975 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
12976 valid multibyte form in the result.
12977 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
12978 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
12979 return -1, signal an error.
12980 (base64_encode_1): New arg MULTIBYTE. Get each character by
12981 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
12982 character is found, return -1.
12983 (Fbase64_decode_region): Delete codes for handling byte-combining.
12984 Treat each decoded byte as a unibyte character.
12985 (Fbase64_decode_string): Return unibyte string.
12986 (Fcompare_strings, concat, string_byte_to_char): Use
12987 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
12988 FETCH_STRING_CHAR_ADVANCE.
12989 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12990 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
12991
12992 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
12993 SPLIT_NON_ASCII_CHAR.
12994 (fontset_ref_via_base, fontset_set): Likewise
12995
12996 * insdel.c (adjust_markers_for_record_delete): Deleted.
12997 (adjust_markers_for_insert): Argument changed. Caller changed.
12998 (adjust_markers_for_replace): Likewise.
12999 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
13000 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
13001 (copy_text): Delete unused local varialbe c_save. For converting
13002 to multibyte, be sure to make all 8-bit characters in valid
13003 multibyte form.
13004 (count_size_as_multibyte): Handle 8-bit characters correctly.
13005 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13006 (adjust_after_replace, replace_range, del_range_2)
13007 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
13008 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13009 (adjust_after_replace, replace_range, del_range_2) Delete codes for
13010 handling byte combining.
13011 (adjust_before_replace): Deleted.
13012
13013 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
13014 SPLIT_NON_ASCII_CHAR.
13015 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13016 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13017 (Fkey_description): Likewise.
13018
13019 * lread.c (read1): On reading multibyte string, be sure to make
13020 all 8-bit chararacters in valid multibyte form.
13021 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13022
13023 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
13024 unconditionally.
13025
13026 * process.c (Fstart_process): GCPRO current_dir before calling
13027 Ffind_operation_coding_system. Encode arguments here.
13028 (create_process): Don't encode arguments here. Setup
13029 src_multibyte and dst_multibyte members of struct coding.
13030 (read_process_output): Setup src_multibyte and dst_multibyte
13031 members of struct coding. If the output is to multibyte buffer,
13032 always decode the output of the process. Adjust the
13033 representation of 8-bit characters to the multibyteness of the output.
13034 (send_process): Setup coding->src_multibyte according to the
13035 multibyteness of the source.
13036
13037 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13038 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
13039 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
13040
13041 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
13042
13043 * w16select.c (Fw16_set_clipboard_data): Setup members
13044 src_multibyte and dst_multibyte of coding. Adjusted for the
13045 change for find_charset_in_str.
13046 (Fw16_get_clipboard_data): Likewise.
13047
13048 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
13049 dst_multibyte of coding.
13050 (x_to_w32_font): Likewise.
13051
13052 * w32select.c (Fw32_set_clipboard_data): Setup members
13053 src_multibyte and dst_multibyte of coding. Adjusted for the
13054 change for find_charset_in_str.
13055 (Fw32_get_clipboard_data): Likewise.
13056
13057 * xdisp.c (get_next_display_element): Handle 8-bit characters
13058 correctly.
13059 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
13060 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13061
13062 * xselect.c (selection_data_to_lisp_data): Setup members
13063 src_multibyte and dst_multibyte of coding. Adjusted for the
13064 change for find_charset_in_str.
13065 (lisp_data_to_selection_data): Likewise.
13066
13067 2000-05-19 Gerd Moellmann <gerd@gnu.org>
13068
13069 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
13070
13071 * dispextern.h (Vimage_types): Add extern declaration.
13072
13073 * xdisp.c (Vimage_types): Moved here from xfns.c.
13074 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
13075
13076 * xfns.c (Vimages_types): Moved to xdisp.c.
13077 (syms_of_xfns): Move `image-types' to xdisp.c.
13078
13079 * w32fns.c (Vimage_types): Removed.
13080 (syms_of_w32fns): Remove `image-types'.
13081
13082 2000-05-18 Kenichi Handa <handa@etl.go.jp>
13083
13084 * fns.c (map_char_table): Pay attention to character number of
13085 charset. Check the validity of charset at the first level. For
13086 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
13087 the default value.
13088
13089 * fontset.c: Include "buffer.h".
13090 (fs_load_font): If the face has fontset, record the face ID in
13091 that fontset.
13092 (Finternal_char_font): New function.
13093 (accumulate_font_info): New function.
13094 (Ffontset_info): Rewritten for the new fontset implementation.
13095 (syms_of_fontset): Register Vdefault_fontset in the first element
13096 of Vfontset_table. Include Vdefault_fontset in
13097 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
13098 function.
13099
13100 2000-05-16 Dave Love <fx@gnu.org>
13101
13102 * m/iris5d.h: Deleted -- unused.
13103
13104 2000-05-16 Gerd Moellmann <gerd@gnu.org>
13105
13106 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
13107 `invalid' instead of `illegal'.
13108
13109 * indent.c (Fmove_to_column): When ending within a tab, insert
13110 spaces first so that markers at the end of the tab get adjusted.
13111
13112 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
13113 buffer list that wasn't selected in that frame.
13114
13115 * filelock.c (get_boot_time): To obtain an 8 char file name, which
13116 is needed on mescaline, use a 2 char prefix, and call
13117 make_temp_name with second arg non-zero.
13118
13119 * fileio.c (make_temp_name): New function, extracted from
13120 Fmake_temp_name.
13121 (Fmake_temp_name): Use it.
13122
13123 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13124
13125 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
13126
13127 2000-05-15 Gerd Moellmann <gerd@gnu.org>
13128
13129 * Makefile.in (lisp): Add env.elc.
13130
13131 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
13132
13133 2000-05-12 Gerd Moellmann <gerd@gnu.org>
13134
13135 * search.c (Freplace_match): Handle case of `\N' in the
13136 replacement when there's no group N.
13137
13138 2000-05-11 Gerd Moellmann <gerd@gnu.org>
13139
13140 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
13141 of the message to message_dolog.
13142
13143 * keyboard.c (read_char): Don't clear current message for help
13144 events; let the code handling help events handle this. Change
13145 code detecting help events that should be ignored.
13146
13147 * xdisp.c (handle_single_display_prop): Don't try to set PT if
13148 we're interating over a string.
13149
13150 2000-05-09 Dave Love <fx@gnu.org>
13151
13152 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
13153 that offset before writing. Move gcpro region past call of
13154 Ffile_regular_p.
13155
13156 2000-05-04 Dave Love <fx@gnu.org>
13157
13158 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
13159
13160 2000-05-04 Gerd Moellmann <gerd@gnu.org>
13161
13162 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
13163 of inserted characters when BUF equals the current buffer, and PT
13164 is in front of or equal to FROM.
13165
13166 2000-05-03 Gerd Moellmann <gerd@gnu.org>
13167
13168 * xdisp.c (handle_single_display_prop): If display property value
13169 is invalid, or something not supported on the frame, restore
13170 iterator's position to what it was initially. Make sure to return
13171 0 for invalid and unsupported property values.
13172
13173 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
13174 that x_per_char_metric returns null.
13175
13176 2000-05-02 Gerd Moellmann <gerd@gnu.org>
13177
13178 * xterm.h (struct face): Add forward declaration.
13179 (struct image): Ditto.
13180 (image_ascent): Add prototype.
13181
13182 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
13183 (x_draw_image_relief, x_draw_image_foreground_1): Call function
13184 image_ascent instead of using IMAGE_ASCENT.
13185
13186 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
13187 (IMAGE_ASCENT): Removed.
13188
13189 * xfns.c (Qcenter): New variable.
13190 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
13191 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
13192 (image_ascent): New function.
13193 (lookup_image): Recognize `:ascent center'.
13194 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
13195 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13196 (xbm_load): Don't set image's ascent here.
13197 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
13198 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
13199 check ascent values here.
13200 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
13201 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
13202 (syms_of_xfns): Initialize Qcenter.
13203
13204 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
13205 to the limits, increase the limits.
13206
13207 2000-05-01 Kenichi Handa <handa@etl.go.jp>
13208
13209 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
13210 Check Vfont_encoding_alist against the full name of the opened font.
13211
13212 2000-04-28 Gerd Moellmann <gerd@gnu.org>
13213
13214 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
13215 taller than the window.
13216
13217 2000-04-28 Kenichi Handa <handa@etl.go.jp>
13218
13219 * xfaces.c (realize_x_face): Fix the argument of the second
13220 xassert. BASE_FACE may not be a face for ASCII.
13221
13222 2000-04-27 Gerd Moellmann <gerd@gnu.org>
13223
13224 * print.c (print_object): Treat print-length < 0 as nil.
13225
13226 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
13227
13228 * s/freebsd.h (TERMCAP_OBJ): Removed.
13229 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
13230
13231 * lread.c (read1): Don't treat period followed by certain
13232 characters as symbol start.
13233
13234 * xfns.c (slurp_file): New function.
13235 (xbm_image_p): Handle case of in-memory XBM files.
13236 (xbm_scan): Rewritten to work on memory buffers instead of files.
13237 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
13238 Work on memory buffers instead of files. If DATA is null test
13239 if buffer looks like an in-memory XBM file.
13240 (xbm_load_image): Renamed from xbm_load_image_file. Work on
13241 memory buffers instead of files.
13242 (xbm_file_p): New function.
13243 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
13244
13245 * lread.c (end_of_file_error): New function.
13246 (read1): Call it instead of signaling `end-of-file' directly.
13247
13248 * print.c (print_error_message): Print data of `end-of-file'
13249 with Fprinc instead of Fprin1.
13250
13251 2000-04-26 Ken Raeburn <raeburn@gnu.org>
13252
13253 * window.c (freeze_window_start): Check that minibuffer scroll
13254 window isn't nil before extracting the window structure pointer
13255 from it.
13256
13257 * undo.c (record_delete): If we hit the end of the undo list, stop
13258 picking elements apart.
13259
13260 2000-04-26 Gerd Moellmann <gerd@gnu.org>
13261
13262 * xdisp.c (display_line): If lines are continued, restore
13263 iterator's ascent/descent information to the values before the
13264 first glyph not fitting on the line.
13265
13266 2000-04-25 Gerd Moellmann <gerd@gnu.org>
13267
13268 * xdisp.c (try_window_id) <all changes above window start>: Adjust
13269 positions in glyph matrix. Don't compute new window end positions.
13270
13271 * dispnew.c (increment_matrix_positions): Renamed from
13272 increment_glyph_matrix_buffer_positions.
13273 (increment_row_positions): Renamed from
13274 increment_glyph_row_buffer_positions.
13275
13276 * dispextern.h: Change names of renamed functions from dispnew.c
13277 in prototypes.
13278
13279 2000-04-24 Gerd Moellmann <gerd@gnu.org>
13280
13281 * fileio.c (Fdo_auto_save): Create directories for auto-save
13282 list file if necessary.
13283
13284 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
13285 from buffer or frame.
13286 (automatic_hscrolling_p): New variable.
13287 (hscroll_windows): Scroll windows horizontally only if automatic
13288 hscrolling is allowed.
13289 (syms_of_xdisp): New variable `automatic-hscrolling'.
13290
13291 * frame.h (struct frame): Add member extra_line_spacing.
13292
13293 * xfns.c (x_set_line_spacing): New function.
13294 (Fx_create_frame): Set line spacing from resources.
13295 (Qline_spacing): New variable.
13296 (syms_of_xfns): Initialize Qline_spacing.
13297
13298 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
13299
13300 * buffer.c (init_buffer_once): Handle extra_line_spacing.
13301 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
13302 (reset_buffer): Don't initialize extra2 and extra3. Initialize
13303 extra_line_spacing from default value.
13304 (init_buffer_once): Initialize default value of extra_line_spacing.
13305
13306 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
13307 and extra3.
13308
13309 * xterm.c (x_produce_glyphs): Remove reference to struct it's
13310 prompt_width. Add extra line spacing.
13311
13312 * term.c (produce_glyphs): Remove reference to struct it's
13313 prompt_width.
13314
13315 * dispextern.h (struct it): Remove member prompt_width, add
13316 extra_line_spacing.
13317
13318 2000-04-22 Gerd Moellmann <gerd@gnu.org>
13319
13320 * dispnew.c (update_frame_line): When writing a whole line, make
13321 sure cursor is in the right row afterwards, otherwise a use of
13322 capability `ch' in cmgoto might leave the cursor in the row below.
13323
13324 2000-04-21 Gerd Moellmann <gerd@gnu.org>
13325
13326 * lisp.h (struct Lisp_Buffer_Cons): Remove.
13327
13328 * keyboard.c (timer_check): Fix typo in comment.
13329
13330 2000-04-21 Kenichi Handa <handa@etl.go.jp>
13331
13332 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
13333 name change: ch -> character.
13334
13335 2000-04-20 Gerd Moellmann <gerd@gnu.org>
13336
13337 * keyboard.c (echo_message_buffer): New variable.
13338 (echo_now): Set echo_message_buffer to the echo area buffer used
13339 to display the echo.
13340 (cancel_echoing): Reset echo_message_buffer to nil.
13341 (read_char): Code rewritten that handles canceling an echo or
13342 echoing a dash, respectively.
13343
13344 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
13345 directory doesn't exist.
13346
13347 2000-04-19 Dave Love <fx@gnu.org>
13348
13349 * fns.c (syms_of_fns): Defsubr mapc.
13350 (concat): Don't allow numeric args.
13351 (Fconcat): Doc change.
13352
13353 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
13354
13355 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
13356 instead define end_match(1|2) more carefully.
13357 Use GET_CHAR_BEFORE_2 for `begline'.
13358
13359 2000-04-19 Gerd Moellmann <gerd@gnu.org>
13360
13361 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
13362 on 64-bit systems where NULL is defined as `0'.
13363
13364 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
13365 the `variable argument list' to make it work on Alpha.
13366
13367 * m/alpha.h (_LP64) [!_LP64]: Define.
13368 (ORDINARY_LINK): Define for NetBSD.
13369
13370 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
13371
13372 2000-04-19 Dave Love <fx@gnu.org>
13373
13374 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
13375 change.
13376
13377 * Makefile.in (LIBS): Don't use.
13378 (GETLOADAVG_OBJ): Define again.
13379 (otherobj): Add GETLOADAVG_OBJ.
13380
13381 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
13382
13383 2000-04-18 Gerd Moellmann <gerd@gnu.org>
13384
13385 * lread.c (read_filtered_event): Cancel and start busy cursor.
13386
13387 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
13388 that the per-character metrics may be null.
13389
13390 2000-04-17 Gerd Moellmann <gerd@gnu.org>
13391
13392 * buffer.c (clone_per_buffer_values): New function.
13393 (Fmake_indirect_buffer): Add optional argument CLONE. Call
13394 clone_per_buffer_values if CLONE is not nil.
13395
13396 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
13397
13398 2000-04-16 Dave Love <fx@gnu.org>
13399
13400 * Makefile.in: Remove obsolete localcpp stuff.
13401 (GETLOADAVG_OBJ): Don't define.
13402 (obj): Move LIBOBJS...
13403 (otherobj): ... to here.
13404 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
13405 whitespace-only lines after the continuation (Irix).
13406
13407 2000-04-14 Gerd Moellmann <gerd@gnu.org>
13408
13409 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
13410
13411 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
13412
13413 2000-04-14 Dave Love <fx@gnu.org>
13414
13415 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
13416 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
13417 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
13418 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
13419 NLIST_STRUCT.
13420
13421 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
13422 autoconfiscated HAVE_GETLOADAVG.
13423
13424 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
13425 BROKEN_MKTIME.
13426
13427 2000-04-14 Gerd Moellmann <gerd@gnu.org>
13428
13429 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
13430 (fill_in_lock_file_name): Avoid existing files that aren't links.
13431
13432 2000-04-14 Dave Love <fx@gnu.org>
13433
13434 * Makefile.in (LIBS, LIBOBJS): New variable.
13435 (INTERVAL_SRC): Convert to make variable.
13436 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
13437 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
13438 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
13439 add LIBOBJS.
13440 (SOME_MACHINE_OBJECTS): Remove interval stuff.
13441 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
13442 (shortlisp): Add facemenu, float-sup, frame.
13443 (SOME_MACHINE_LISP): Remove them from here.
13444 (LIBES): Change unused LDLIBS to autoconf LIBS.
13445
13446 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
13447
13448 2000-04-14 Kenichi Handa <handa@etl.go.jp>
13449
13450 * composite.c (update_compositions): If FROM and TO are not in a
13451 valid range, do nothing.
13452
13453 2000-04-13 Gerd Moellmann <gerd@gnu.org>
13454
13455 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
13456
13457 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
13458
13459 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
13460 as TERMCAP_OBJ.
13461
13462 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13463
13464 * fileio.c (a_write): Remove redundant semi-colons.
13465 (e_write): Return -1 if failed to write all the data.
13466 This fixes the changes made at 1999-12-15.
13467
13468 2000-04-12 Dave Love <fx@gnu.org>
13469
13470 * fns.c (mapcar1): Test for null vals to support mapc.
13471 (Fmapc): New function.
13472
13473 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
13474
13475 * msdos.c (NUM_MOUSE_BUTTONS): Define.
13476 (IT_frame_up_to_date): Support the buffer local value of
13477 cursor-type, if defined.
13478
13479 2000-04-10 Dave Love <fx@gnu.org>
13480
13481 * editfns.c (preceding-char, following-char): Doc fix.
13482
13483 2000-04-10 Ken Raeburn <raeburn@gnu.org>
13484
13485 * Makefile.in (temacs): Revert 2000-03-12 change.
13486
13487 2000-04-10 Jason Rumney <jasonr@gnu.org>
13488
13489 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
13490
13491 2000-04-10 Gerd Moellmann <gerd@gnu.org>
13492
13493 * xdisp.c (setup_echo_area_for_printing): Choose an echo
13494 area buffer, if it's not set up yet.
13495
13496 * indent.c (compute_motion): Set immediate_quit.
13497
13498 2000-04-09 Gerd Moellmann <gerd@gnu.org>
13499
13500 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
13501 (realize_tty_face): Suppress boldness if colors are the inverse of
13502 the default colors, and tty_suppress_bold_inverse_default_colors_p
13503 is set.
13504 (Ftty_suppress_bold_inverse_default_colors): New function.
13505 (syms_of_xfaces): Defsubr it.
13506
13507 * buffer.c (Frestore_buffer_modified_p): New function.
13508 (syms_of_buffer): Defsubr it.
13509
13510 2000-04-08 Ken Raeburn <raeburn@gnu.org>
13511
13512 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
13513 charset id (int) argument, not a charset (Lisp_Object).
13514
13515 * coding.h (code_convert_string): Declare.
13516 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
13517 object, as the fourth argument to code_convert_string.
13518
13519 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
13520 (Fset_fontset_font): Use EQ to compare lisp objects.
13521
13522 2000-04-05 Ken Raeburn <raeburn@gnu.org>
13523
13524 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
13525 a pointer that looks like a lisp object.
13526 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
13527 zero, instead see whether it's an integer object, since they can't
13528 have intervals.
13529 (GET_INTERVAL_OBJECT): Simply assign to the destination.
13530
13531 * dispnew.c (allocate_matrices_for_frame_redisplay)
13532 (direct_output_forward_char): Use X(U)INT and make_number as needed
13533 to convert between (unsigned) int values and lisp integers.
13534 * keyboard.c (read_key_sequence): Likewise.
13535 * lread.c (substitute_object_recurse): Likewise.
13536 * fns.c (concat, hash_lookup, hash_remove): Likewise.
13537 * minibuf.c (do_completion, Fminibuffer_complete_word)
13538 (Fminibuffer_completion_help): Likewise.
13539 * term.c (produce_special_glyphs): Likewise.
13540
13541 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
13542 * print.c (print_preprocess, print_object): Likewise.
13543
13544 * search.c (compile_pattern): Use NILP when checking for nil.
13545
13546 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
13547 __OPTIMIZE__]: Provide a GNU C macro version that handles
13548 lisp-object unions.
13549 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
13550 field, to better cope with ENABLE_CHECKING and calls that modify a
13551 Lisp_Object using its old value.
13552
13553 2000-04-04 Gerd Moellmann <gerd@gnu.org>
13554
13555 * window.c (compare_window_configurations): Signal an error
13556 if parameters C1 or C2 aren't window configurations.
13557
13558 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
13559 AFTER_POTENTIAL_GC calls around calls to functions that can
13560 signal an error and thus invoke the debugger.
13561
13562 2000-04-03 Gerd Moellmann <gerd@gnu.org>
13563
13564 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
13565 an error if decoding fails.
13566
13567 * keyboard.c (lispy_mouse_names): Variable removed.
13568 (Vlispy_mouse_stem): New variable.
13569 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
13570 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
13571 for any mouse button number. Increase size of mouse_syms and
13572 button_down_location as needed. Call modify_event_symbol with
13573 different arguments.
13574 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
13575 Call modify_event_symbol with different arguments.
13576 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
13577 for any button number. Call modify_event_symbol with different
13578 arguments.
13579 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
13580 Accept a string for NAME_ALIST_OR_STEM.
13581
13582 * lisp.h (larger_vector): Add prototype.
13583
13584 * fns.c (larger_vector): Make externally visible.
13585
13586 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
13587
13588 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
13589
13590 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
13591 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
13592 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
13593 we are between str1 and str2.
13594 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
13595 (PATFETCH): Use `TRANSLATE'.
13596 (PATFETCH_RAW): Fetch multibyte char if applicable.
13597 (PATUNFETCH): Remove.
13598 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
13599 When writing a char, write it directly into the pattern buffer rather
13600 than going needlessly through a temp char-array.
13601 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
13602 multibyte magic and remove the useless `#ifdef emacs'.
13603 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
13604 buffer.
13605
13606 * regex.h (struct re_pattern_buffer): Make field `multibyte'
13607 conditional on `emacs'.
13608
13609 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
13610
13611 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13612
13613 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
13614 non-union-type versions of XMARK and friends here, because XMARK
13615 and friends won't work on an integer field if NO_UNION_TYPE is not
13616 defined.
13617 (make_number): Define as a function if it's not defined as a macro.
13618
13619 * composite.c (run_composite_function): Use NILP when checking for nil.
13620 (syms_of_composite): Delete local var NARGS, pass an int as first
13621 argument to Fmake_hash_table.
13622
13623 * editfns.c (text_property_stickiness): Use NILP to test
13624 Lisp_Object boolean value.
13625 (Fmessage_or_box): Don't use NILP to test int variable.
13626 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
13627 problems reading from and changing the same lisp value in an
13628 XSETSTRING call.
13629
13630 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13631
13632 * term.c (TN_no_color_video): New variable.
13633 (term_init): Intitialize TN_no_color_video.
13634 (enum no_color_bit): New enumeration.
13635 (MAY_USE_WITH_COLORS_P): New macro.
13636 (turn_on_face): Use it to determine if attributes may be used
13637 combined with colors.
13638
13639 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13640
13641 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
13642 with int lvalues via casts; instead, just yield lisp object lvalues.
13643 (enlarge_window): Variable sizep now points to Lisp_Object. Use
13644 proper accessor macros.
13645 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
13646 (grow_mini_window): Fix typo getting int value of root->height.
13647
13648 * xdisp.c (compute_string_pos): Fix order of arguments to
13649 string_pos_nchars_ahead.
13650 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
13651 count arg to variable-arg routines like Frun_hook_with_args and
13652 Fformat.
13653 (back_to_previous_visible_line_start)
13654 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
13655 fixed-arg routines like Fget_char_property and Fmake_string.
13656 (reconsider_clip_changes): Use XINT when comparing integer lisp
13657 objects, or passing them as int arguments.
13658 (mark_window_display_accurate, insert_left_trunc_glyphs)
13659 (append_space, extend_face_to_end_of_line): Use make_number when
13660 storing or passing integer values as lisp objects.
13661 (set_cursor_from_row, highlight_trailing_whitespace): Use
13662 INTEGERP, not implicit test against zero, for glyph object.
13663 (try_window_id): Don't use make_number when we want an int value.
13664
13665 * xfaces.c (xlfd_symbolic_value): Make last argument a
13666 Lisp_Object, to be consistent with callers.
13667 (Fbitmap_spec_p): Use XINT to get numeric value of height.
13668 (lface_hash): Apply XFASTINT to lisp values before folding in.
13669
13670 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
13671 fill in window width and height. Pass an int, not a lisp object,
13672 as first arg to Finsert.
13673
13674 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13675
13676 * xfaces.c (realize_basic_faces): Block input while realizing
13677 the faces.
13678
13679 * keyboard.c (lispy_mouse_names): Add additional mouse names.
13680
13681 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
13682
13683 2000-03-31 Gerd Moellmann <gerd@gnu.org>
13684
13685 * xterm.c (x_produce_glyphs): When displaying unibyte text
13686 or ASCII, handle case that per-char metric is null.
13687
13688 2000-03-30 Ken Raeburn <raeburn@gnu.org>
13689
13690 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
13691
13692 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
13693 (XSUBR, XBUFFER): Verify correct object type before returning
13694 pointer, using eassert.
13695 * frame.h (XFRAME): Likewise.
13696
13697 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
13698 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
13699 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
13700 * data.c (set_internal): Likewise.
13701 * dispextern.h (WINDOW_WANTS_MODELINE_P)
13702 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
13703 * fileio.c (auto_save_1): Likewise.
13704 * insdel.c (check_markers): Likewise.
13705 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
13706 * undo.c (record_insert): Likewise.
13707 * vmsproc.c (child_sig): Likewise.
13708 * window.c (unshow_buffer, window_loop): Likewise.
13709 * xterm.c (x_erase_phys_cursor): Likewise.
13710
13711 2000-03-30 Gerd Moellmann <gerd@gnu.org>
13712
13713 * xfns.c (free_image_cache): Free the cache structure itself
13714 last, after all its members have been freed.
13715
13716 * lisp.h (xstrdup): Add prototype.
13717
13718 * alloc.c (xstrdup): Moved here from xfaces.c.
13719 (allocating_for_lisp): Variable removed.
13720 (lisp_malloc): Block input around the calls to malloc and mem_insert.
13721
13722 * xfaces.c (realize_tty_face): Use find_symbol_value instead
13723 of Fsymbol_value.
13724 (xstrdup): Moved to alloc.c.
13725
13726 2000-03-29 Ken Raeburn <raeburn@gnu.org>
13727
13728 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
13729
13730 * emacs.c (main): Fix sense of no-loadup test.
13731
13732 * config.in (ENABLE_CHECKING): Undef.
13733
13734 * lisp.h (struct interval): Replace "parent" field with a union of
13735 interval pointer and Lisp_Object; add new bitfield to use as
13736 discriminant. Change other flag fields to bitfields.
13737 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
13738 is defined and the supplied test fails, print a message and abort.
13739 (eassert): New macro. Use CHECK to provide an assert-like facility.
13740
13741 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
13742 pointers; abort if the value looks like a lisp object.
13743 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
13744 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
13745 Modify for new interval parent definition.
13746
13747 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
13748 (UNMARK_BALANCE_INTERVALS): Update references that need an
13749 addressable lisp object in the interval structure.
13750 (die): New function.
13751 (suppress_checking): New variable.
13752
13753 * intervals.c (interval_start_pos): Just return 0 if there's no
13754 parent object.
13755
13756 2000-03-29 Gerd Moellmann <gerd@gnu.org>
13757
13758 * lread.c (read1): Accept `.' (period) as symbol start like in CL
13759 and earlier Emacs versions.
13760
13761 * keyboard.c (Ftop_level): Cancel busy-cursor.
13762
13763 * eval.c (call_debugger): Cancel busy-cursor.
13764
13765 2000-03-29 Kenichi Handa <handa@etl.go.jp>
13766
13767 * search.c (Freplace_match): Adjust multibyteness of the current
13768 buffer and NEWTEXT. Free allocated memory before signaling an error.
13769
13770 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
13771
13772 * regex.c (analyse_first): New function obtained by ripping out most
13773 of re_compile_fastmap and generalizing it a little bit so that it
13774 can also just return whether a given (sub)pattern can match the empty
13775 string or not.
13776 (regex_compile): Use `analyse_first' to decide whether the loop-check
13777 needs to be done or not for *, +, *? and +? (the loop check is costly
13778 for non-greedy repetition).
13779 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
13780
13781 2000-03-28 Dave Love <fx@gnu.org>
13782
13783 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
13784
13785 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
13786
13787 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
13788
13789 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
13790 an expression.
13791 (enum re_opcode_t): Update description of succeed_n.
13792 (PATFETCH): Always define.
13793 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
13794 operators, char classes, shy-groups and intervals).
13795 Optimize special cases of intervals so as to only use succeed_n and
13796 jump_n when really needed.
13797 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
13798 that we don't have to handle the special cases any more.
13799 Simplify on_failure_jump handling as well.
13800
13801 2000-03-28 Jason Rumney <jasonr@gnu.org>
13802
13803 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
13804
13805 2000-03-27 Gerd Moellmann <gerd@gnu.org>
13806
13807 * s/freebsd.h (GC_SETJMP_WORKS): Define.
13808
13809 * s/msdos.h (GC_SETJMP_WORKS): Define.
13810
13811 * alloc.c (mark_maybe_object): New function.
13812 (mark_memory): Use it.
13813 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
13814 (setjmp_tested_p, longjmp_done): New variables.
13815 (test_setjmp): New function.
13816 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
13817 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
13818
13819 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
13820 to DEC_TEXT_POS and INC_TEXT_POS.
13821
13822 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
13823 with parameter MULTIBYTE_P.
13824
13825 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
13826
13827 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
13828 buffers because it looks for multibyte character byte sequences
13829 which don't exist in unibyte text.
13830
13831 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
13832
13833 * xfaces.c (register_color, unregister_color, unregister_colors)
13834 [DEBUG_X_COLORS]: New functions.
13835 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
13836
13837 * xfns.c (x_set_cursor_color): Get color reference counts right.
13838
13839 * xterm.c (x_copy_color): New function.
13840 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
13841
13842 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
13843 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
13844 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
13845 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
13846 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
13847 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
13848 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
13849 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
13850 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
13851 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
13852
13853 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
13854 names for handling per-buffer variables.
13855
13856 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
13857 instead of MAX_BUFFER_LOCAL_VARS.
13858 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
13859
13860 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
13861
13862 * xfns.c (x_specified_cursor_type): New function.
13863 (x_set_cursor_type): Use it.
13864
13865 * buffer.h (struct buffer): Add cursor_type.
13866
13867 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
13868
13869 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
13870 (print_partial_compiled_pattern, re_compile_fastmap):
13871 Handle new opcode.
13872 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
13873 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
13874 executing it as well as when popping it off the stack to find infinite
13875 loops in non-greedy repetition operators.
13876
13877 2000-03-26 Gerd Moellmann <gerd@gnu.org>
13878
13879 * doc.c (Qfunction_documentation): New variable.
13880 (syms_of_doc): Initialize Qfunction_documentation.
13881 (Fdocumentation): If FUNCTION is a symbol with non-nil
13882 `function-documentation' property, return a documentation derived
13883 from that.
13884
13885 * buffer.c (syms_of_buffer): Add default-cursor-type.
13886 (init_buffer_once): Don't let cursor_type have a local value
13887 in every buffer.
13888
13889 * xterm.c (x_display_and_set_cursor): Choose cursor depending
13890 on buffer-local value of cursor_type.
13891 (x_draw_bar_cursor): Add parameter WIDTH.
13892
13893 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
13894 (init_buffer_once): Set default cursor_type value to t.
13895 Mark cursor_type as local everywhere.
13896 (syms_of_buffer): New per-buffer variable cursor-type.
13897
13898 * buffer.h (struct buffer): Remove member local_var_flags,
13899 add local_flags.
13900 (MAX_BUFFER_LOCAL_VARS): New macro.
13901 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
13902 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
13903 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
13904 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
13905
13906 * print.c (print_object): Use new macros for per-buffer variables.
13907
13908 * category.c (Fset_category_table): Use new macros for per-buffer
13909 variables.
13910
13911 * buffer.c (buffer_permanent_local_flags): Make a char array.
13912 (max_buffer_local_idx): New variable.
13913 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
13914 for new handling of per-buffer variables.
13915 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
13916 (init_buffer_once): Initialize per-buffer vars differently.
13917 Set max_buffer_local_idx.
13918
13919 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
13920 variables.
13921
13922 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
13923
13924 * data.c (do_symval_forwarding, store_symval_forwarding)
13925 (find_symbol_value, set_internal, default_value, Fset_default)
13926 (Fkill_local_variable, Flocal_variable_p): Use new macros for
13927 per-buffer variables.
13928
13929 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
13930
13931 2000-03-24 Gerd Moellmann <gerd@gnu.org>
13932
13933 * xterm.c (x_term_init): Unblock input around call1 of
13934 Qvendor_specific_keysyms.
13935
13936 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
13937 (find_defun_start): Consider an open parenthesis in column 0
13938 a defun start only if open_paren_in_column_0_is_defun_start is set.
13939 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
13940
13941 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
13942
13943 * eval.c (Fautoload): Add entry in load-history (if after dump).
13944 * lread.c (load-history): Update docstring.
13945
13946 2000-03-24 Gerd Moellmann <gerd@gnu.org>
13947
13948 * indent.c (Fvertical_motion): Always use the current buffer.
13949 Temporarily change the window's buffer, if necessary.
13950
13951 2000-03-23 Gerd Moellmann <gerd@gnu.org>
13952
13953 * xterm.c (fast_find_position): Make sure not to consider rows
13954 not visible in the window.
13955
13956 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
13957
13958 * regex.c (enum syntaxcode): Provide default for non-Emacs.
13959 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
13960
13961 2000-03-22 Jason Rumney <jasonr@gnu.org>
13962
13963 * w32menu.c (single_submenu): Set help string to NULL if none.
13964 (w32_menu_show): Set help string correctly.
13965 (add-menu-item): Set help string in MIIM_DATA for menu item.
13966 Load SetMenuItemInfoA explicitly.
13967 (w32_menu_display_help): New function.
13968
13969 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
13970 (QCdata): Moved to xdisp.c.
13971
13972 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
13973 (Vw32_charset_to_codepage_alist): Removed.
13974 (Vw32_charset_info_alist): New variable.
13975 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
13976 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
13977 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
13978 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
13979 with TODO comment.
13980 (w32_codepage_for_font): Use Vw32_charset_info_alist.
13981 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
13982 Define Vw32_charset_info_alist and w32_charset symbols.
13983
13984 2000-03-22 Jason Rumney <jasonr@gnu.org>
13985
13986 * makefile.nt (w32bdf.obj): Update dependencies.
13987
13988 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
13989
13990 * w32fns.c: Include fontset.h after dispextern.h.
13991 (Fx_create_frame): Do not create fontset.
13992 (w32_load_system_font): Doc fix.
13993 (Fx_close_connection): Free full_name if it is not shared.
13994
13995 * w32term.c: Include fontset.h after dispextern.h.
13996 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
13997 Callers updated.
13998 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
13999 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
14000 (w32_font_is_double_byte): New function, needs body.
14001 (x_append_glyph): Set glyph->glyph_not_available_p.
14002 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
14003 it->charset. If it->multibyte_p is zero and it->c is a multibyte
14004 character, convert it to a unibyte character.
14005 (struct glyph_string): Delete member `charset'.
14006 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
14007 calculating it is found.
14008 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14009 the case that per char metric is not available correctly.
14010 (x_fill_glyph_string): Handle the case that the specific glyph is
14011 not available correctly.
14012 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14013 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14014 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14015 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14016 fontset. Don't call FS_LOAD_FONT.
14017
14018 2000-03-22 Ken Raeburn <raeburn@gnu.org>
14019
14020 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
14021 (INT_LISPLIKE): New macro.
14022 (NULL_INTERVAL_P): Use it.
14023 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
14024 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
14025 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
14026
14027 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
14028 explicit references to "parent" field of struct interval and
14029 associated unclean type conversions.
14030 * intervals.c (create_root_interval, root_interval, rotate_right)
14031 (rotate_left, balance_possible_root_interval, split_interval_right)
14032 (split_interval_left, interval_start_pos, find_interval)
14033 (next_interval, previous_interval, update_interval)
14034 (adjust_intervals_for_insertion, delete_node, delete_interval)
14035 (adjust_intervals_for_deletion, merge_interval_right)
14036 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
14037 (copy_intervals_to_string): Likewise.
14038 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
14039 Likewise.
14040 * syntax.c (update_syntax_table): Likewise.
14041
14042 * intervals.c (reproduce_tree_obj): New function, like
14043 reproduce_tree but takes a Lisp_Object for the parent. Declare
14044 with prototype.
14045 (graft_intervals_into_buffer): Use it when appropriate.
14046 (reproduce_tree): Declare with prototype.
14047 (balance_possible_root_interval): Check that the parent is a lisp
14048 object before trying to examine its type.
14049
14050 2000-03-22 Gerd Moellmann <gerd@gnu.org>
14051
14052 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
14053 as strings only if both are known to be strings.
14054
14055 * s/openbsd.h (LIBS_TERMCAP): Undef.
14056
14057 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
14058
14059 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
14060 definitions for non-Emacs compilation.
14061 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
14062 outside of `#ifdef emacs'.
14063 (print_partial_compiled_pattern): Update.
14064 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
14065 (re_compile_fastmap): Merge handling of charset and charset_not (for
14066 emacs and non-emacs compilation as well).
14067 Similarly for (not)categoryspec and (not)syntaxspec.
14068 Don't use the fastmap when reaching `anychar' since the added
14069 complexity is not justified.
14070 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
14071 and (not)syntaxspec. Merge (not)categoryspec.
14072
14073 2000-03-22 Kenichi Handa <handa@etl.go.jp>
14074
14075 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
14076 (FACE_FOR_CHAR): Define them differently for the configuration of
14077 --without-x.
14078
14079 2000-03-21 Dave Love <fx@gnu.org>
14080
14081 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
14082 doc string.
14083
14084 2000-03-21 Gerd Moellmann <gerd@gnu.org>
14085
14086 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
14087 (lface_fully_specified_p): Don't check contents of
14088 LFACE_FONT_INDEX because that attribute is optional.
14089 (realize_x_face): Remove now unwarranted xassert.
14090
14091 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
14092
14093 The following changes are to make font selection based on
14094 characters, not charset. In addition, they recover fontset
14095 facilities while utilizing the new font selection mechanism.
14096
14097 * Makefile.in (fontset.o): Depend on dispextern.h.
14098
14099 * alloc.c (mark_face_cache): Don't mark face->registry.
14100
14101 * dispextern.h (struct glyph): New member glyph_not_available_p.
14102 Use 22 bits for face_id.
14103 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
14104 (struct face): Delete member registry, new member ascii_face.
14105 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
14106 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
14107 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
14108 (struct it): Delete member charset, new member glyph_not_available_p.
14109
14110 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
14111 (struct fontset_info, struct fontset_data): Structs removed.
14112 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
14113 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
14114 (fs_load_font, fs_query_fontset): Adjusted for new argument.
14115 (fs_free_face_fontset, fontset_font_pattern)
14116 (face_suitable_for_char_p, face_for_char)
14117 (make_fontset_for_ascii_face): Extern them.
14118 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
14119 (FS_LOAD_FACE_FONT): New macro.
14120
14121 * fontset.c: All codes rewritten or adjusted for the change of
14122 fontset implementation. Now fontset is represented by char table.
14123 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
14124 Variables removed.
14125 (my_strcasecmp): Function removed.
14126 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
14127 (AREF, ASIZE): New macros.
14128 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
14129 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
14130 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
14131 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
14132 (fontset_id_valid_p, font_family_registry, fontset_name)
14133 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
14134 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
14135 New functions.
14136 (fs_load_font): New arg FACE. Caller changed.
14137 (fs_query_fontset): Argument changed. Caller changed.
14138 (Fquery_fontset): call fs_query_fontset.
14139 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
14140 Functions removed.
14141 (clear_fontset_elements, check_registry_encoding)
14142 (check_fontset_name): New functions.
14143 (syms_of_fontset): Set char-table-extra-slots property of fontset
14144 to 3. Staticpro and initialize Vfontset_table and
14145 Vdefault_fontset. Defsubr fontset_font and fontset_list.
14146
14147 * frame.h (struct frame): Member `fontset_data' removed.
14148 (FRAME_FONTSET_DATA): Macro removed.
14149
14150 * frame.c (make_frame): Don't allocate f->fontset_data.
14151 (Fdelete_frame): Don't free f->fontset_data.
14152
14153 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
14154
14155 * xdisp.c (charset_at_position): Function removed.
14156 (init_iterator): Don't set member charset of struct `it'.
14157 (handle_face_prop, reseat_to_string, set_iterator_to_next)
14158 (next_element_from_display_vector, insert_left_trunc_glyphs):
14159 Likewise.
14160 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
14161 FACE_FOR_CHARSET.
14162 (get_next_display_element, append_space)
14163 (extend_face_to_end_of_line): Likewise.
14164
14165 * xfaces.c (Qx_charset_registry, Vface_default_registry):
14166 Variables removed.
14167 (clear_font_table, frame_update_line_height, load_face_font):
14168 Adjusted for the change of fontset implementation.
14169 (load_face_fontset_font): Function removed.
14170 (pixel_point_size): New function.
14171 (font_list): Argument type changed. Caller changed.
14172 (LFACE_FONT): New macro.
14173 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
14174 (set_lface_from_font_name): Type of arg FONTNAME is changed to
14175 Lisp_Object. Determine the font name by actually loading a font
14176 by the specified pattern. Set LFACE_FONT (lface) to the specified
14177 pattern. Even if a font is not found, don't try alternatives.
14178 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
14179 (set_font_frame_param): If `font' is specified in lface, use it.
14180 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
14181 (lface_same_font_attributes_p): Likewise.
14182 (make_realized_face): Arguent changed. Caller changed. Set
14183 face->ascii_face to face itself.
14184 (free_realized_face): Free face->fontset if face is for ASCII.
14185 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
14186 (deduce_unibyte_registry, x_charset_registry): Functions removed.
14187 (free_realized_multibyte_face): New function.
14188 (lookup_face, lookup_named_face, lookup_derived_face): Argument
14189 changed. Caller changed.
14190 (try_font_list): Argument type changed.
14191 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
14192 (choose_face_font): Argument changed. Handle fontset properly.
14193 (choose_face_fontset_font): Function removed.
14194 (realize_default_face, realize_named_face): Don't remove the
14195 former face here.
14196 (realize_face): Argument changed. Caller changed. Remove face
14197 with the arg former_face_id in advance. Load font for the new face.
14198 (realize_x_face): Argument changed. Caller changed. For a
14199 multibyte character, share fontset with base_face. For a single
14200 byte character, make a new realized fontset. Don't load a font here.
14201 (realize_tty_face): Argument changed. Caller changed.
14202 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
14203 (face_at_buffer_position): Don't check multibyte_p for returning
14204 DEFAULT_FACE_ID.
14205 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
14206 FACE_SUITABLE_FOR_CHARSET_P.
14207 (syms_of_xfaces): Remove code for Qx_charset_registry and
14208 Vface_default_registry.
14209
14210 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
14211 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
14212 (x_per_char_metric): Don't try FONT->default_char. Even if
14213 pcm->width is zero, glyph bits may exist.
14214 (x_encode_char): Always initialize char2b->byte1.
14215 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
14216 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
14217 (x_append_glyph): Set glyph->glyph_not_available_p.
14218 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
14219 it->charset. Handle the case that per char metric is not
14220 available. If it->multibyte_p is zero and it->c is a multibyte
14221 character, convert it to a unibyte character.
14222 (struct glyph_string): Delete member `charset'.
14223 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14224 the case that per char metric is not available correctly.
14225 (x_fill_glyph_string): Handle the case that the specific glyph is
14226 not available correctly.
14227 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14228 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14229 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14230 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14231 fontset. Don't call FS_LOAD_FONT.
14232
14233 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
14234 (x_create_tip_frame): Likewise.
14235 (Fx_close_connection): Free full_name of font_info.
14236
14237 * fns.c (optimize_sub_char_table): New function.
14238 (Foptimize_char_table): New function.
14239 (syms_of_fns): Defsubr Soptimize_char_table.
14240
14241 2000-03-20 Gerd Moellmann <gerd@gnu.org>
14242
14243 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
14244 only if buffer is displayed in some window.
14245
14246 * xdisp.c (handle_single_display_prop): Initialize local `value'.
14247 (try_window_reusing_current_matrix): Don't call scroll run
14248 function if run's current and desired position are the same;
14249 this prevents cursor flickering.
14250
14251 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
14252
14253 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
14254
14255 * regex.c (RE_STRING_CHAR): New macro.
14256 (GET_CHAR_AFER_2): Remove.
14257 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
14258 (enum re_opcode_t): Remove on_failure_jump_exclusive.
14259 (print_partial_compiled_pattern, re_compile_fastmap)
14260 (re_match_2_internal): Remove on_failure_jump_exclusive.
14261 (regex_compile): Turn optimizable P+ loops into PP*, so that the
14262 optimization only need to work for * (ie. can use of_keep_string_jump).
14263 Remove the special case for .*\n since it is now covered by the general
14264 optimization.
14265 (re_search_2): Don't bother with `room'.
14266 (skip_one_char): New function.
14267 (skip_noops): Simplify since `memory' is not needed any more.
14268 (mutually_exclusive_p): Restructure slightly to use `switch' and
14269 add handling for "all" remaining cases.
14270 (re_match_2_internal): Change on_failure_jump_smart to use
14271 on_failure_keep_string_jump (and redirect the end-of-loop jump)
14272 rather than on_failure_jump_exclusive.
14273
14274 2000-03-19 Gerd Moellmann <gerd@gnu.org>
14275
14276 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
14277 number of bits per RGB because it's everywhere used as the depth
14278 of the visual.
14279
14280 * term.c (calculate_costs): Remove code dealing with X frames.
14281
14282 2000-03-19 Richard M. Stallman <rms@gnu.org>
14283
14284 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
14285
14286 2000-03-18 Gerd Moellmann <gerd@gnu.org>
14287
14288 * lread.c (read_integer): Unread the last char not consumed.
14289
14290 2000-03-17 Gerd Moellmann <gerd@gnu.org>
14291
14292 * xterm.c (x_update_window_cursor): Don't update in frames
14293 which are in the process of being deleted.
14294
14295 2000-03-16 Gerd Moellmann <gerd@gnu.org>
14296
14297 * Makefile.in (mostlyclean): Add `*.core'.
14298 (clean): Add `bootstrap-emacs'.
14299
14300 * lread.c (read_integer): New function.
14301 (read1): Support read syntax #o, #x, #b, #r.
14302
14303 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
14304
14305 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
14306 make sure POINTER_TO_OFFSET gives the same value before and after
14307 PREFETCH. Use `dfail' to guarantee "atomic" matching.
14308 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
14309 (debug): Now only active if > 0 rather than if != 0.
14310 (DEBUG_*): Update for the new meaning of `debug'.
14311 (print_partial_compiled_pattern): Add missing `succeed' case. Use
14312 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
14313 in `succeed_n', `jump_n' and `set_number_at'.
14314 (store_op1, store_op2, insert_op1, insert_op2)
14315 (at_begline_loc_p, at_endline_loc_p): Add prototype.
14316 (group_in_compile_stack): Move to after its arg's types are
14317 declared and add a prototype.
14318 (PATFETCH): Define in terms of PATFETCH_RAW.
14319 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
14320 (QUIT): Redefine as a nop except for NTemacs.
14321 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
14322 indentation of the greedy-op and shy-group code.
14323 (at_(beg|end)line_loc_p): Fix argument's types.
14324 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
14325 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
14326 (MATCHING_IN_FIRST_STRING): Remove.
14327 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
14328 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
14329 QUIT unconditionally.
14330
14331 2000-03-15 Gerd Moellmann <gerd@gnu.org>
14332
14333 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
14334 a sole completion.
14335
14336 * process.c (send_process): Add a hint that the function
14337 can call Lisp code to its comment.
14338
14339 * lread.c (load_dangerous_libraries): New variable.
14340 (Vbytecomp_version_regexp): New variable.
14341 (safe_to_load_p): New function.
14342 (Fload): Handle files not compiled with Emacs specially.
14343 (syms_of_lread): New Lisp variable load-dangerous-libraries.
14344
14345 2000-03-14 Gerd Moellmann <gerd@gnu.org>
14346
14347 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
14348
14349 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
14350 support functions only if HAVE_X11R6_XIM is defined.
14351 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
14352
14353 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
14354
14355 * xfns.c (X_I18N_INHIBITED): Don't define.
14356 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
14357 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
14358
14359 * config.in (HAVE_X_I18N): Moved here from xterm.h.
14360 (HAVE_X11R6_XIM): Define.
14361
14362 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
14363
14364 * xterm.c (x_term_init): Add support for X resource `synchronous'.
14365 If set, call XSynchronize.
14366
14367 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
14368
14369 * regex.c: Declare a new type `re_char' used throughout the code
14370 for the string char type. It's `const unsigned char' to match the
14371 rest of Emacs. Consistently make sure all pointers to strings use
14372 it and make sure all pointers into the pattern use `unsigned char'.
14373 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
14374 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
14375 code duplication.
14376
14377 * charset.h (GET_CHAR_AFTER_2): Remove.
14378 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
14379
14380 2000-03-12 Ken Raeburn <raeburn@gnu.org>
14381
14382 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
14383 variable before the invocation of YMF_PASS_LDFLAGS, in case both
14384 of them try to use backquotes.
14385
14386 2000-03-12 Dave Love <fx@gnu.org>
14387
14388 * unexelf.c: Restore changes of 1999-10-19.
14389 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
14390 fix its type and alignment; copy it from current process.
14391
14392 2000-03-12 Gerd Moellmann <gerd@gnu.org>
14393
14394 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
14395 has been found. Fix bug not computing timer's predecessor.
14396
14397 * fileio.c (Fread_file_name): Handle case that DIR contains a
14398 file name.
14399
14400 * window.c (Fsave_window_excursion): Doc fix.
14401
14402 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
14403
14404 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
14405
14406 * msdos.c (vga_installed): New function, code moved from
14407 dos_set_window_size.
14408 (Qbar, Qcursor_type, outside_cursor): New variables.
14409 (syms_of_msdos): Intern and staticpro them.
14410 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
14411 shape used outside Emacs when called for the first time.
14412 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
14413 cursor shape used outside Emacs.
14414 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
14415 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
14416 type has changed.
14417 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
14418 parameters specify the cursor. Make qreverse a global
14419 variable (renamed to Qreverse).
14420
14421 2000-03-09 Gerd Moellmann <gerd@gnu.org>
14422
14423 * fns.c (Fy_or_n_p): Cancel busy-cursor.
14424
14425 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
14426
14427 This is a big redesign of failure-stack and register handling, prompted
14428 by bugs revealed when trying to add shy-groups. Overall, what happened
14429 is that loops are now structured a little differently, groups can be
14430 shy and the code is a little simpler.
14431
14432 * regex.h: Update the copyright.
14433 (RE_SHY_GROUPS): New value.
14434 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
14435 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
14436
14437 * regex.c (enum re_opcode_t): Remove jump_past_alt,
14438 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
14439 on_failure_jump_(exclusive, loop and smart). Also fix the comment
14440 for (start|stop)_memory since they now only take one argument (the
14441 second has becomes unnecessary).
14442 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
14443 (print_compiled_pattern): Use %ld to printf long ints and flush to
14444 make debugging a little easier.
14445 (union fail_stack_elt): Make the integer unsigned.
14446 (struct fail_stack_type): Add a `frame' element.
14447 (INIT_FAIL_STACK): Init `frame' as well.
14448 (POP_PATTERN_OP): New macro for re_compile_fastmap.
14449 (DEBUG_PUSH, DEBUG_POP): Remove.
14450 (NUM_REG_ITEMS): Remove.
14451 (NUM_NONREG_ITEMS): Adjust.
14452 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
14453 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
14454 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
14455 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
14456 New macros.
14457 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
14458 address pushed is not the destination of the jump but the source
14459 of it instead.
14460 (NUM_FAILURE_ITEMS): Remove.
14461 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
14462 registers before the actual failure point). Don't hardcode any
14463 meaning for str==NULL anymore.
14464 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
14465 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
14466 Remove.
14467 (REG_UNSET_VALUE): Use NULL (why not?).
14468 (compile_range): Remove declaration since it doesn't exist.
14469 (struct compile_stack_elt_t): Remove inner_group_offset.
14470 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
14471 (regex_grow_registers): Remove dead code.
14472 (FIXUP_ALT_JUMP): New macro.
14473 (regex_compile): Add shy-groups Change loops to use
14474 on_failure_jump_smart&jump instead of
14475 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
14476 initial (dummy_failure_)jump. Remove c1_base (looks like unused
14477 variable to me). Use `jump' instead of `jump_past_alt' and don't
14478 bother with push_dummy_failure in alternatives since it is now
14479 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
14480 emacs' for (re)allocating the stack.
14481 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
14482 from loop when bufp->can_be_null rather than jumping to `done'.
14483 Avoid jumping backwards so as to ensure termination. Use
14484 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
14485 backreferences. Remove dead code in handling of `anychar'.
14486 (skip_noops, mutually_exclusive_p): New functions taken from the
14487 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
14488 improve mutually_exclusive_p to handle ".+\n".
14489 (lowest_active_reg, highest_active_reg)
14490 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
14491 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
14492 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
14493 variables. Push register (in `start_memory') on the stack rather
14494 than storing it in old_reg(start|end). Remove the cycle detection
14495 from `stop_memory', replaced by the use of on_failure_jump_loop
14496 for greedy loops. Add code for the new on_failure_jump_<foo>.
14497 Remove ad-hoc code in `on_failure_jump' to push more registers in
14498 the case of a loop. Take out code from `maybe_pop_jump' into
14499 separate functions and adapt it to the semantics of
14500 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
14501 and push_dummy_failure. Remove dummy_failure handling and
14502 handling of `failures to jump to on_failure_jump' (this last one
14503 was already dead code, it seems).
14504 (group_match_null_string_p, alt_match_null_string_p)
14505 (common_op_match_null_string_p): Remove.
14506
14507 2000-03-08 Dave Love <fx@gnu.org>
14508
14509 * config.in: Don't depend on __STDC__ for volatile.
14510 Add POINTER_TYPE, PTR, PROTOTYPES.
14511
14512 * hftctl.c, strftime.c: Use PROTOTYPES.
14513 * eval.c (find_handler_clause): Likewise.
14514
14515 * mem-limits.h: Use POINTER_TYPE.
14516
14517 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
14518 (memory_warnings): Declare using POINTER_TYPE.
14519
14520 2000-03-08 Gerd Moellmann <gerd@gnu.org>
14521
14522 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
14523
14524 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
14525
14526 * xfns.c: Remove obsolete code in #if 0.
14527 (Fx_focus_frame): New function.
14528
14529 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14530
14531 * coding.c (coding_category_name): Add coding-category-utf-8,
14532 coding-category-utf-16-be, coding-category-utf-16-le.
14533 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
14534 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
14535 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
14536 (detect_coding_utf_8): New function.
14537 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
14538 UTF_16_LOW_SURROGATE_P): New macros.
14539 (detect_coding_utf_16): New function
14540 (detect_coding_mask): When priorities are specified, skip any
14541 categories that have `nil' coding-system. Fix bug of returning
14542 wrong mask when PRIORITIES is specified and detect_coding_XXX()
14543 returns a mask not set in PRIORITIES.
14544 (detect_eol_type_in_2_octet_form): New function.
14545 (detect_eol): selects detect_eol_type_XXX to call according to
14546 cooding->category_idx.
14547 (detect_coding_system): Remove `nil' coding-system in the result.
14548 (Fupdate_coding_systems_internal): Update all coding-categories.
14549
14550 * coding.h (CODING_CATEGORY_IDX_UTF_8)
14551 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
14552 New macros.
14553 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
14554 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
14555 (CODING_CATEGORY_IDX_UTF_16_LE)
14556 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
14557 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
14558 (CODING_CATEGORY_MASK_ANY): Include the above macros.
14559 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
14560
14561 2000-03-07 Gerd Moellmann <gerd@gnu.org>
14562
14563 * doc.c (Fdocumentation_property): If value is not a string,
14564 and doesn't refer to etc/DOC, evaluate it to obtain a string.
14565
14566 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
14567 close the display with XtCloseDisplay. This caused a bus error
14568 on OpenWindows.
14569
14570 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
14571 complete but not unique.
14572
14573 2000-03-06 Gerd Moellmann <gerd@gnu.org>
14574
14575 * process.c (send_process): Remove local variable `procname' that
14576 might become invalid when a GC happens. Instead, access the
14577 process name slot directly.
14578
14579 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
14580 orig_height if set.
14581
14582 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
14583 orig_height if set.
14584
14585 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
14586
14587 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
14588 glyph matrices have been freed.
14589
14590 2000-03-05 Gerd Moellmann <gerd@gnu.org>
14591
14592 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
14593 (bootstrap-temacs): Set LC_ALL to C like for temacs.
14594
14595 * xfns.c (QCdata): Moved to xdisp.c.
14596
14597 * xdisp.c (QCdata): Moved here from xfns.c.
14598 (syms_of_xdisp): Initialize QCdata.
14599
14600 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
14601
14602 * window.c (coordinates_in_window): Use
14603 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
14604 FRAME_INTERNAL_BORDER_WIDTH.
14605
14606 * xdisp.c (try_window_id): Recompute unchanged information if
14607 it is obviously invalid.
14608
14609 * xterm.c (x_term_init): Create a colormap if not using the
14610 default visual.
14611
14612 * xterm.h (select_visual): Change prototype.
14613
14614 * xfns.c (select_visual): Rewritten. Recognize user-specified
14615 visual classes.
14616 (visual_classes): New variable.
14617
14618 2000-03-04 Gerd Moellmann <gerd@gnu.org>
14619
14620 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
14621 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
14622 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
14623 (x_decode_color): Don't handle allocation of white and black specially.
14624 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
14625 XtNcolormap resources.
14626 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
14627 (Fx_create_frame): Initialize color members of x_output structure.
14628 (xpm_load): Pass colormap to XPM lib.
14629
14630 * xfaces.c (x_free_colors): Access colormap of frame using
14631 FRAME_X_COLORMAP. Be paranoid about freeing black and white
14632 when default colormap is used.
14633
14634 * xterm.c (x_term_init): Set Colormap member of x_display_info
14635 structure. Copy colormap if resource `privateColormap' is
14636 specified (PseudoColor only).
14637 (x_setup_relief_color): Access colormap of frame using
14638 FRAME_X_COLORMAP.
14639
14640 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
14641 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
14642
14643 2000-03-04 Jason Rumney <jasonr@gnu.org>
14644
14645 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
14646 other non-platform-specific equivalents.
14647 [WINDOWSNT]: Include w32term.h, fontset.h and define X
14648 specific functions and macros as their w32 equivalents where
14649 non-platform-specifics are not available.
14650 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
14651 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
14652 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
14653 (frame_update_line_height): Use macros to access f->output_data.
14654 (defined_color): Remove FIXME comments; fixed.
14655 (x_face_list_fonts, prepare_face_for_display): Put X specifics
14656 into #ifdef blocks. Add WINDOWSNT blocks.
14657 (Fx_list_fonts): Use macros for accessing font data.
14658 (set_lface_from_font_name): Different default fonts for X and
14659 WINDOWSNT.
14660 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
14661 scalable for backward compatibility.
14662 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
14663 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
14664
14665 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
14666 syms_of_w32faces.
14667
14668 * makefile.nt (w32faces.obj): Remove.
14669 (xfaces.obj): Add.
14670
14671 2000-03-03 Jason Rumney <jasonr@gnu.org>
14672
14673 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
14674 correct parameters.
14675
14676 2000-03-03 Ken Raeburn <raeburn@gnu.org>
14677
14678 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
14679 standard ELF definitions here if the system header does not.
14680
14681 2000-03-03 Gerd Moellmann <gerd@gnu.org>
14682
14683 * xterm.c (PER_CHAR_METRIC): Removed.
14684 (x_per_char_metric_1, x_default_char): New functions.
14685 (x_per_char_metric): If font's default char is invalid, return
14686 metrics of a suitably chosen usable default char.
14687 (x_draw_glyph_string_foreground): If font has an invalid default
14688 char, replace occurrences of unprintable chars with a suitably
14689 chosen usable default char.
14690
14691 2000-03-02 Gerd Moellmann <gerd@gnu.org>
14692
14693 * xterm.c (note_mouse_highlight): Return quickly if frame's
14694 glyph matrices have been freed.
14695
14696 * dispnew.c (free_glyphs): Block input while freeing matrices.
14697
14698 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
14699
14700 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
14701 Use x_free_colors.
14702
14703 * dispextern.h (x_free_colors): Add prototype.
14704
14705 * xfaces.c (x_free_colors): New function.
14706 (unload_color, free_face_colors): Use it.
14707
14708 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14709
14710 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
14711
14712 * window.c [MSDOS]: Include msdos.h.
14713
14714 2000-03-02 Dave Love <fx@gnu.org>
14715
14716 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
14717
14718 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
14719 set C_OPTIMIZE_SWITCH for gcc.
14720
14721 2000-03-02 Kenichi Handa <handa@etl.go.jp>
14722
14723 * coding.c (coding_save_composition): Be sure to allocate
14724 composition data area in coding even if there's no composition in
14725 the current run.
14726
14727 2000-03-01 Jason Rumney <jasonr@gnu.org>
14728
14729 * w32term.c: Equivalent changes to those made to xterm.c on
14730 2000-02-25 and 2000-02-24.
14731
14732 * w32fns.c: Equivalent changes to those made to xfns.c on
14733 2000-02-25 and 2000-02-21.
14734
14735 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
14736 correct line-end convention is followed.
14737
14738 * w32menu.c [HAVE_BOXES]: Remove #undef.
14739 (single_keymap_panes): Remove code for simulating checkmarks.
14740 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
14741 Remove code for drawing simulated checkmarks.
14742 (w32_menu_show): make unibyte help string correctly.
14743 (add_menu_item): draw standard Windows checkmarks. Draw radio
14744 buttons as radio buttons if possible.
14745
14746 2000-03-01 Gerd Moellmann <gerd@gnu.org>
14747
14748 * sysdep.c (start_of_text): Don't define this function for NetBSD
14749 with ELF.
14750
14751 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
14752 Don't define.
14753 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
14754 (LINKER): Don't undef if __NetBSD__ is defined.
14755
14756 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
14757
14758 * fileio.c [__NetBSD__]: Define `unix'.
14759
14760 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
14761
14762 2000-02-29 Gerd Moellmann <gerd@gnu.org>
14763
14764 * atimer.c (start_atimer): Don't abort when timers are stopped.
14765 (append_atimer_lists): New function.
14766 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
14767 arbitrary lists of stopped and running atimers.
14768
14769 * atimer.c (cancel_atimer): Handle canceling an atimer when
14770 some timers are stopped.
14771
14772 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
14773 after canceling it.
14774
14775 * fns.c (maybe_resize_hash_table): Handle case of new size
14776 coming out as being the same as old size.
14777
14778 2000-02-27 Jason Rumney <jasonr@gnu.org>
14779
14780 * makefile.nt: Add atimer.h to dependencies.
14781 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
14782 * w32console.c: Only disable window system features for dispextern.h
14783 (initialize_w32_display): Build a display info for the console.
14784 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
14785 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
14786 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
14787 as 2 button mice.
14788 * w32gui.h (struct W32FontStruct): Revert last change after change
14789 to xdisp.c.
14790 * w32menu.c (single_submenu): Set up help string.
14791 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
14792 (w32_dialog_show): Set up help string.
14793 * w32term.c (w32_display_info_for_display): Remove unused function.
14794 (w32_draw_bitmap): Use pre-built bitmaps.
14795 (w32_initialize_display_info): New function to initialize parts of
14796 display info that are common to both GUI and console frames.
14797 (w32_term_init): Use w32_initialize_display_info. Do not set
14798 Vw32_num_mouse_buttons here, as it is not called for console
14799 frames. Build bitmaps for indicating truncated lines etc.
14800 (x_delete_display): Destroy pre-built bitmaps.
14801 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
14802 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
14803
14804 2000-02-27 Dave Love <fx@gnu.org>
14805
14806 * lisp.h: Add a bunch of prototypes.
14807
14808 2000-02-26 Kenichi Handa <handa@etl.go.jp>
14809
14810 * keyboard.c (read_char): Set `usec' correctly.
14811
14812 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14813
14814 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
14815 `lambda', set reg[RRR] to the map index.
14816 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
14817 reg[RRR] to 0. Otherwise, set it to -1.
14818
14819 2000-02-25 Gerd Moellmann <gerd@gnu.org>
14820
14821 * emacs.c (main): Remove code snippet commented out with `//'.
14822
14823 2000-02-25 Richard M. Stallman <rms@gnu.org>
14824
14825 * fileio.c (Ffile_symlink_p): If result starts with a `/'
14826 and contains a `:', prepend `/:'.
14827
14828 * window.c (select_window_1): If selected_window is nil,
14829 don't "swap out" the buffer's point.
14830 (Fset_window_configuration): Set selected_window to nil
14831 before calling Fselect_window.
14832 (unshow_buffer): Don't set point in buffer from window's point
14833 if another more recently selected window also shows the buffer.
14834
14835 2000-02-25 Gerd Moellmann <gerd@gnu.org>
14836
14837 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
14838
14839 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
14840 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
14841 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
14842 New variables.
14843 (DEFAULT_BUSY_CURSOR_DELAY): New define.
14844 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
14845 (hide_busy_cursor): New functions.
14846 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
14847
14848 * minibuf.c (read_minibuf): Cancel busy-cursor.
14849
14850 * keyboard.c (command_loop_1): Call start_busy_cursor before
14851 Fcommand_execute and cancel_busy_cursor after it.
14852 (timer_check): Remove busy-cursor code.
14853 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
14854 cursor timer.
14855
14856 * process.c (wait_reading_process_input): Remove busy-cursor code.
14857
14858 * eval.c (Fsignal): Call cancel_busy_cursor instead of
14859 Fx_hide_busy_cursor.
14860
14861 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
14862 Remove prototyoes.
14863 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
14864
14865 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
14866
14867 * xterm.c (XTread_socket): Remove busy-cursor code.
14868
14869 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
14870 (build_frame_matrix_from_leaf_window): Put code handling
14871 glyph row's not being a slice of a frame row in #if 0.
14872 (sync_window_with_frame_matrix_rows): New function.
14873 (frame_row_to_window): New function.
14874 (mirror_line_dance): Handle copies between windows.
14875
14876 * lread.c (Fload): Use `xfree' instead of `free'.
14877 (init_obarray): Use `xmalloc' instead of `malloc'.
14878
14879 * window.c (Fset_window_buffer): Set WINDOW to the window
14880 after decoding.
14881 (coordinates_in_window): Take frame's internal border width
14882 into account.
14883
14884 2000-02-24 Gerd Moellmann <gerd@gnu.org>
14885
14886 * xterm.c (x_display_and_set_cursor): Display cursor of
14887 non-selected windows depending on the setting of
14888 cursor_in_non_selected_windows.
14889
14890 * xdisp.c (cursor_in_non_selected_windows): New variable.
14891 (syms_of_xdisp): DEFVAR_BOOL it.
14892
14893 2000-02-23 Gerd Moellmann <gerd@gnu.org>
14894
14895 * data.c (Fstring_to_number): If number is greater than what
14896 fits into an integer, return a float.
14897
14898 * eval.c (specbind): Remove references to
14899 keyword_symbols_constant_flag.
14900
14901 * data.c (keyword_symbols_constant_flag): Removed.
14902 (Fmakunbound, set_internal, syms_of_data): Remove references to
14903 keyword_symbols_constant_flag.
14904
14905 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
14906
14907 2000-02-23 Kenichi Handa <handa@etl.go.jp>
14908
14909 * syntax.c (multibyte_syntax_as_symbol): New variable.
14910 (syms_of_syntax): Declare it as a Lisp variable.
14911 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
14912 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
14913 nonzero, treat all multibyte characters as symbol.
14914 (init_syntax_once): Give syntax `word' to all multibyte characters.
14915
14916 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14917
14918 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
14919 a deleted frame.
14920
14921 2000-02-21 Gerd Moellmann <gerd@gnu.org>
14922
14923 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
14924
14925 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14926 (x_non_menubar_window_to_frame): Check the busy-cursor window.
14927
14928 2000-02-21 Dave Love <fx@gnu.org>
14929
14930 * frame.c (Vmouse_position_function): New variable.
14931 (Fmouse_position): Use it.
14932 (syms_of_frame): Install it.
14933
14934 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
14935
14936 2000-02-20 Gerd Moellmann <gerd@gnu.org>
14937
14938 * fileio.c (Finsert_file_contents): Unbind the binding of
14939 standard-output done by temp_output_buffer_setup.
14940
14941 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
14942 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
14943 (specbind, unbind_to): Handle most common case of non-constant
14944 symbol with trivial value specially.
14945
14946 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
14947
14948 2000-02-20 Richard M. Stallman <rms@gnu.org>
14949
14950 * data.c (Fmake_variable_buffer_local): Doc fix.
14951 Init found_for_buffer to 0.
14952 (Fmake_variable_frame_local): If the variable has already
14953 been buffer-local, set the check_frame field.
14954
14955 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
14956
14957 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
14958 produced for CODING_MODE_LAST_BLOCK requires.
14959
14960 2000-02-18 Dave Love <fx@gnu.org>
14961
14962 * keyboard.c (echo_keystrokes): Remove declaration.
14963 (Vecho_keystrokes) New variable.
14964 (read_char, record_menu_key, read_key_sequence): Use it to allow
14965 use of float value.
14966 (syms_of_keyboard): Change Vecho_keystrokes declaration.
14967
14968 * lread.c: Undef feature selection macros before defining.
14969
14970 2000-02-18 Gerd Moellmann <gerd@gnu.org>
14971
14972 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
14973 for symbols other than the symbol in question.
14974
14975 2000-02-17 Dave Love <fx@gnu.org>
14976
14977 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
14978
14979 2000-02-17 Gerd Moellmann <gerd@gnu.org>
14980
14981 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
14982
14983 * alloc.c (enum mem_type): Compile unconditionally.
14984
14985 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
14986
14987 * xfaces.c (tty_defined_color): Don't return faulire indication
14988 for unspecified-fg and unspecified-bg pseudo-colors.
14989
14990 2000-02-17 Gerd Moellmann <gerd@gnu.org>
14991
14992 * alloc.c (mark_object): Don't mark symbol names in pure space.
14993 (gc_sweep): Don't unmark symbol names in pure space.
14994
14995 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
14996 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
14997 [GC_MARK_STACK]: New defines.
14998 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
14999 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
15000
15001 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
15002
15003 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
15004 allocate_buffer instead of xmalloc.
15005
15006 * alloc.c (toplevel): Include setjmp.h.
15007 (PURE_POINTER_P): New define.
15008 (enum mem_type) [GC_MARK_STACK]: New enumeration.
15009 (Vdead) [GC_MARK_STACK]: New variable.
15010 (lisp_malloc): Add parameter TYPE, call mem_insert if
15011 GC_MARK_STACK is defined.
15012 (allocate_buffer): New function.
15013 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
15014 (free_float) [GC_MARK_STACK]: Set type to Vdead.
15015 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
15016 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
15017 (MEM_NIL) [GC_MARK_STACK]: New define.
15018 (struct mem_node) [GC_MARK_STACK]: New structure.
15019 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
15020 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
15021 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
15022 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
15023 (mark_stack) [GC_MARK_STACK]: New functions.
15024 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
15025 (clear_marks): Removed.
15026 (gc_sweep): Set free conses' car, free floats' type, free
15027 symbols' function to Vdead. Use lisp_free to free buffers.
15028 (init_alloc_once): Initialize Vdead.
15029 (survives_gc_p): Return non-zero for pure objects.
15030
15031 * alloc.c: Add comments throughout the file.
15032
15033 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
15034 that unblocks alarms.
15035
15036 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
15037 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
15038 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
15039
15040 * frame.c (make_frame): Set frame initiallly to `garbaged'.
15041
15042 2000-02-17 Kenichi Handa <handa@etl.go.jp>
15043
15044 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
15045 avoid infinite error signaling. Allocate sufficient memory for
15046 eol_str in the case that eoltype is Lisp_Int.
15047
15048 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
15049
15050 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
15051 depends on the previous behavior.
15052
15053 2000-02-16 Gerd Moellmann <gerd@gnu.org>
15054
15055 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
15056
15057 2000-02-15 Gerd Moellmann <gerd@gnu.org>
15058
15059 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
15060
15061 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
15062 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
15063 write(2).
15064
15065 2000-02-15 Richard M. Stallman <rms@gnu.org>
15066
15067 * data.c (set_internal): Don't make variable buffer-local
15068 if within a let-binding for the same buffer.
15069 (let_shadows_buffer_binding_p): New function.
15070
15071 * eval.c (specbind): For buffer-local value,
15072 record the current buffer also.
15073 (unbind_to): Cope with that change.
15074
15075 2000-02-15 Gerd Moellmann <gerd@gnu.org>
15076
15077 * window.c (Fsave_window_excursion): Doc fix.
15078
15079 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
15080
15081 * syntax.c (back_comment): Make sure we only consider comment-starters
15082 of the relevant style and return -1 in case of a failure to find the
15083 beginning of the comment.
15084 (Fforward_comment): If back_comment fails, go back to the position just
15085 after the comment-end.
15086 (scan_lists): Add comment describing a very minor bug.
15087
15088 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15089
15090 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
15091 `completion-regexp-list' in the docstring.
15092
15093 2000-02-14 Dave Love <fx@gnu.org>
15094
15095 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
15096
15097 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15098
15099 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
15100 to Emacs' syntax. Also fix the comment about set/not-set meanings
15101 since Emacs syntax is not the value 0 any more.
15102 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
15103 since it's now part of RE_SYNTAX_EMACS.
15104
15105 2000-02-12 Dave Love <fx@gnu.org>
15106
15107 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
15108
15109 2000-02-12 Gerd Moellmann <gerd@gnu.org>
15110
15111 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
15112
15113 2000-02-12 Dave Love <fx@gnu.org>
15114
15115 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
15116
15117 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
15118 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
15119 * s/hpux.h: Don't define HAVE_VFORK.
15120
15121 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
15122
15123 * s/nextstep.h: Don't define HAVE_ALLOCA.
15124
15125 * config.in: Add vfork bits.
15126
15127 2000-02-12 Gerd Moellmann <gerd@gnu.org>
15128
15129 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
15130 unwind function to undo the effect of stopping atimers.
15131
15132 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
15133
15134 * atimer.c (stopped_atimers): New variable.
15135 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
15136 New functions.
15137
15138 * atimer.h (stop_other_atimers, run_all_atimers)
15139 (unwind_stop_other_atimers): Add function prototypes.
15140
15141 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
15142
15143 2000-02-11 Ken Raeburn <raeburn@gnu.org>
15144
15145 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
15146 library may depend on jpeg.
15147 (atimer.o): Depends on atimer.c.
15148
15149 2000-02-11 Kenichi Handa <handa@etl.go.jp>
15150
15151 * insdel.c (del_range_1): Call update_compositions.
15152 (del_range_both): Call update_compositions just once..
15153
15154 2000-02-10 Dave Love <fx@gnu.org>
15155
15156 * xfns.c (create_frame_xic): Fix initialization of automatic
15157 aggregates for pcc.
15158
15159 2000-02-09 Kenichi Handa <handa@etl.go.jp>
15160
15161 * ccl.c (CCL_MAKE_CHAR): New macro.
15162 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
15163 registers by CCL_MAKE_CHAR before calling translate_char.
15164 <CCL_TranslateCharacterConstTbl> Likewise.
15165
15166 2000-02-08 Dave Love <fx@gnu.org>
15167
15168 * lread.c (__EXTENSIONS__): Define.
15169
15170 2000-02-08 Gerd Moellmann <gerd@gnu.org>
15171
15172 * puresize.h (BASE_PURESIZE): Increase to 650000.
15173
15174 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15175
15176 * msdos.c (XMenuActivate): Turn off the cursor after displaying
15177 the help message.
15178
15179 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15180
15181 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
15182 md, mh, mb, mr, and me to the fake termcap entry.
15183
15184 2000-02-06 Ken Raeburn <raeburn@gnu.org>
15185
15186 * sound.c (sound_cleanup): Don't call device close routine if the
15187 function pointer is null.
15188
15189 2000-02-06 Andrew Innes <andrewi@gnu.org>
15190
15191 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
15192 around image definitions and prototypes.
15193 (gamma_correct) [WINDOWSNT]: New prototype.
15194
15195 * w32term.c (x_make_frame_visible): Replace call to
15196 input_poll_signal with poll_for_input.
15197
15198 * window.c [WINDOWSNT]: Include w32term.h.
15199
15200 * xdisp.c [WINDOWSNT]: Include w32term.h.
15201
15202 * makefile.nt: Add dependencies on w32gui.h.
15203 (OBJ1): Include atimer.obj.
15204 ($(BLD)\atimer.obj): New dependency rule.
15205
15206 * w32.c (sigmask): New function (does nothing).
15207 (sigunblock): Ditto.
15208
15209 * frame.c [WINDOWSNT]: Include w32term.h.
15210
15211 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
15212
15213 * lread.c (syms_of_lread): Fix literal newlines.
15214
15215 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
15216 the string constant limit (2048 bytes) in MSVC.
15217 (main): Ditto.
15218
15219 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
15220
15221 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
15222 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
15223 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
15224 dispatch the event.
15225
15226 2000-02-04 Dave Love <fx@gnu.org>
15227
15228 * fileio.c: Remove some unused vars.
15229 (_GNU_SOURCE): Define (for euidaccess).
15230
15231 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
15232
15233 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
15234 gcpro1, gcpro2.
15235 (read_minibuf): Deal with allow_props correctly.
15236
15237 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
15238
15239 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
15240
15241 2000-02-03 Ken Raeburn <raeburn@gnu.org>
15242
15243 * search.c (compile_pattern): If a cache entry has a nil regexp,
15244 fill in that entry instead of clobbering a previously cached
15245 string regexp.
15246
15247 2000-02-02 Ken Raeburn <raeburn@gnu.org>
15248
15249 * puresize.h (BASE_PURESIZE): Increase to 610000.
15250
15251 2000-02-02 Gerd Moellmann <gerd@gnu.org>
15252
15253 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
15254 can GC.
15255
15256 2000-02-02 Kenichi Handa <handa@etl.go.jp>
15257
15258 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
15259 instead of incrementing ic directly.
15260 <CCL_WriteExprConst> Likewise.
15261 <ccl_set_expr>: Set ic to jump_address.
15262
15263 * fileio.c (e_write): Fix the handling of
15264 CODING_FINISH_INSUFFICIENT_SRC.
15265
15266 2000-02-01 Dave Love <fx@gnu.org>
15267
15268 * editfns.c (Fpropertize): Doc fix.
15269
15270 * process.c (Fstart_process): Doc fix.
15271
15272 * eval.c: Fix various doc strings not to duplicate information
15273 from help-manyarg-func-alist.
15274
15275 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
15276
15277 * doc.c (Vhelp_manyarg_func_alist): New variable.
15278 (Fdocumentation): Use it.
15279 (syms_of_doc): Define it.
15280
15281 2000-01-31 Gerd Moellmann <gerd@gnu.org>
15282
15283 * xterm.c (xim_open_dpy): Remove unused local variable.
15284
15285 * emacs.c (USAGE): Use term `display options' instead of `X options'.
15286
15287 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
15288 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
15289
15290 * fns.c (sweep_weak_table): New function.
15291 (sweep_weak_hash_tables): Use it. Keep on marking until there
15292 is no more change.
15293
15294 2000-01-30 Gerd Moellmann <gerd@gnu.org>
15295
15296 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
15297 that XTread_socket does not crash by trying to call XNoOp on a
15298 closed display.
15299
15300 2000-01-30 Jason Rumney <jasonr@gnu.org>
15301
15302 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15303 Change selected_frame to SELECTED_FRAME ().
15304 (w32_console_mouse_position): Remove #ifndef MULE from around
15305 `insist' parameter.
15306
15307 * makefile.nt: Remove dosfns.obj.
15308
15309 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
15310
15311 * w32fns.c (w32_defined_color): Check for valid frame before
15312 applying gamma correction. Eliminate dependency on frame elsewhere.
15313 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
15314 (w32_to_x_font): Use resx and resy not height_in and width_in.
15315 (x_to_w32_font): Doc fix.
15316 (xlfd_strip_height): New function to strip and return font height.
15317 (w32_font_match): Compare height separately from rest of xlfd
15318 spec, using xlfd_strip_height.
15319
15320 * w32term.c (w32_term_init): Swap resx and height_in, resy and
15321 width_in. Use w32_defined_color in place of defined_color.
15322
15323 * w32faces.c: Merge more of DOS and X specifics in preparation for
15324 merge with xfaces.c.
15325 (defined_color): Remove FIXME comment.
15326 (tty_color_name): Provide w32-specific function.
15327 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
15328
15329 * w32console.c (turn_on_face, turn_off_face): Removed.
15330 (w32_face_attributes): New function.
15331 (Global_variables): Reduce scope where possible.
15332 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
15333 fill attribute.
15334 (hl_mode): Don't modify text attributes.
15335 (write_glyphs): Don't do anything if len <= 0. Use
15336 w32_face_attributes to get attributes for drawing. Write
15337 terminating codes using char_attr_normal.
15338 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
15339 (update_begin, update_end): Likewise.
15340 (vga_stdcolor_name): New function.
15341 (initialize_w32_display): Remove char_attr_reverse and char_attr.
15342 (Fset_screen_color): Remove char_attr_reverse.
15343
15344 2000-01-29 Gerd Moellmann <gerd@gnu.org>
15345
15346 * xfns.c (xic_set_preeditarea): Take window parameter and
15347 window-relative pixel-positions.
15348
15349 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
15350 is its frame's selected window.
15351 (xim_instantiate_callback): Likewise.
15352
15353 * xfns.c (x_create_im): Removed.
15354 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
15355 (supported_xim_styles): Renamed from supported_styles.
15356 (best_xim_style): Renamed from best_style.
15357 (create_frame_xic): Renamed from xic_create_frame.
15358 (free_frame_xic): Renamed from xic_destroy_frame.
15359
15360 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
15361
15362 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
15363 our frames, call XFilterEvent with 2nd parameter `None'.
15364 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
15365 returning XBufferOverflow.
15366 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
15367 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
15368 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
15369 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
15370 (xim_initialize, xim_close)
15371 [HAVE_X_I18N && HAVE_X11R6]: New functions.
15372 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
15373 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
15374 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
15375
15376 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
15377 and `xim_styles'.
15378 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
15379 `xic_style' and `xic_xfs'.
15380 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
15381 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
15382 (FRAME_XIM): Removed.
15383
15384 * xfns.c (supported_styles): New variable.
15385 (DEFAULT_STYLE, DEFAULT_FONT): New macros
15386 (xic_create_xfontset, best_style, xic_create_frame)
15387 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
15388 (xic_set_xfontset): New functions.
15389
15390 2000-01-28 Dave Love <fx@gnu.org>
15391
15392 * s/irix6-5.h: Revert last change after change to irix5-0.h.
15393
15394 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
15395
15396 2000-01-28 Gerd Moellmann <gerd@gnu.org>
15397
15398 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
15399 for *scratch* if it already existed.
15400
15401 * emacs.c (USAGE): New macro.
15402 (main): Use it to display usage information.
15403
15404 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15405
15406 Support for the menu-help feature:
15407
15408 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
15409
15410 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
15411 part of the line to the termscript file.
15412 (IT_clear_to_end): Clear the entire line, not just its beginning.
15413 (menu_help_message, prev_menu_help_message): New variables.
15414 (IT_menu_make_room): Make room for the help_text member.
15415 (IT_menu_display): New argument disp_help; all callers changed.
15416 If disp_help is non-zero, store the help text of the active menu
15417 item in menu_help_message.
15418 (XMenuAddPane): Initialize the help_text member to NULL.
15419 (XMenuAddSelection): New argument help_text. Store it in the
15420 XMenu structure.
15421 (XMenuActivate): New argument help_callback. If the value of
15422 menu_help_message has changed since the last time, display the
15423 menu help message text while waiting for the mouse to move. Clear
15424 the echo area before exiting.
15425 (XMenuDestroy): Free the help_text member.
15426
15427 2000-01-27 Gerd Moellmann <gerd@gnu.org>
15428
15429 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
15430 XMenuAddSelection. Pass help callback to XMenuActivate.
15431 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
15432
15433 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15434
15435 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
15436 and EMACS_SET_USECS.
15437
15438 2000-01-26 Dave Love <fx@gnu.org>
15439
15440 * editfns.c (Fchar_after, Fchar_before): Doc fix.
15441
15442 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
15443 an error may be signalled.
15444
15445 2000-01-26 Gerd Moellmann <gerd@gnu.org>
15446
15447 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
15448 LD_SWITCH_SYSTEM inherited from irix5-0.h.
15449
15450 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
15451
15452 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15453
15454 * charset.c (Fstring): If there is a multibyte char among
15455 the args, always return a multibyte string.
15456
15457 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15458
15459 * sysdep.c (sys_select): Turn atimers off and on instead of
15460 recording and restoring old alarm handler
15461
15462 * process.c (toplevel): Include atimer.h.
15463 (create_process_1): Rewritten.
15464 (create_process): Use atimers instead of alarm.
15465 (wait_reading_process_input) [hpux]: Turn atimers off instead
15466 of turning off SIGALRM.
15467 (wait_reading_process_input): Turn off atimers instead off
15468 calling stop_polling.
15469
15470 * emacs.c (main): Call init_atimer.
15471
15472 * keyboard.c (toplevel): Include systime.h and atimer.h.
15473 (polling_for_input): Removed because unused.
15474 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
15475 (poll_timer): New variable.
15476 (poll_for_input, poll_for_input_1): New functions.
15477 (start_polling, stop_polling): Rewritten.
15478
15479 * keyboard.h (polling_for_input): Removed.
15480
15481 * atimer.h, atimer.c: New files.
15482
15483 * Makefile.in (obj): Add atimer.o.
15484 (atimer.o): New target.
15485
15486 * blockinput.h (pending_atimers): Add extern declaration.
15487 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
15488
15489 * lisp.h (popup_activated_flag): Add extern declaration.
15490
15491 * xmenu.c (popup_activated_flag): Make externally visible.
15492 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
15493 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
15494
15495 * xterm.c (toplevel): Include atimer.h.
15496 (toolkit_scroll_bar_interaction): New variable.
15497 (Fxt_process_timeouts): Removed.
15498 (x_process_timeouts): New function.
15499 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
15500 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
15501 (x_make_frame_visible): Call poll_for_input_1 instead of
15502 input_poll_signal. Don't call alarm.
15503 (x_initialize): Install timer calling x_process_timeouts.
15504
15505 2000-01-24 Dave Love <fx@gnu.org>
15506
15507 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
15508 Don't use -cckr -- apparently not now necessary.
15509
15510 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
15511
15512 * msdos.c (IT_menu_display): Truncate long menu lines at the right
15513 screen boundary.
15514
15515 2000-01-23 Jason Rumney <jasonr@gnu.org>
15516
15517 * w32fns.c (w32_defined_color): Apply gamma correction before
15518 trying to map to the palette.
15519 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
15520 to w32_clear_rect.
15521
15522 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
15523 here. Callers changed to always pass real device context.
15524 (w32_draw_bitmap): Likewise.
15525 (w32_get_glyph_overhangs): Likewise.
15526 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
15527 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
15528 pfnSetScrollInfo and SetScrollRange.
15529 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
15530 back into MULE characters after decoding them.
15531 (x_get_glyph_face_and_encoding): Likewise.
15532 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
15533 GetCharABCWidthsW fails, since this is defined on Windows 9x.
15534 (x_produce_glyphs): Calculate per char metrics for a character
15535 that we know exists in default font when font_not_found_p is true.
15536
15537 2000-01-22 Jason Rumney <jasonr@gnu.org>
15538
15539 * makefile.nt (intervals.obj, composite.obj): New modules.
15540 (composite.h): Added as dependency where appropriate.
15541
15542 * w32gui.h (XGCValue): New struct for emulating X GCs.
15543
15544 * w32term.h (XCharStruct): New struct for emulating X.
15545
15546 * w32console.c (turn_on_face, turn_off_face): New functions.
15547 (change_line_highlight): New prototype for new redisplay.
15548 (write_glyphs): Support multibyte text. Support faces.
15549
15550 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
15551
15552 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
15553 throughout. struct frame * in place of FRAME_PTR.
15554 Skeleton support for images, toolbars, tooltips from xfns.c.
15555 (Fx_create_frame): Use system default for default scroll bar width.
15556 (w32_get_arg): Renamed from x_get_arg.
15557 (Fx_file_dialog): New function.
15558 (w32_list_fonts): Check cache before asking system.
15559 (Vw32_enable_synthesized_fonts): New variable.
15560 (Vw32_enable_italics): Obsolete, removed.
15561
15562 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15563 Use SELECTED_FRAME macro.
15564
15565 * w32menu.c: Add skeleton support for help strings on menus.
15566 (add_menu_item): Native checkbox and radio support added, but not
15567 yet enabled due to bugs.
15568 (push_menu_item): Add parameters type, selection and help.
15569 Callers updated.
15570 Formatting changes to reduce unnecessary diffs with xmenu.c.
15571
15572 * w32select.c (Fw32_set_clipboard_data): Update call to
15573 find_charset_in_str.
15574
15575 * w32term.c: Complete rewrite for new redisplay based on new
15576 xterm.c with necessary sections merged back in from old w32term.c.
15577
15578 2000-01-21 Richard M. Stallman <rms@gnu.org>
15579
15580 * data.c (set_internal): Further fix in same criterion.
15581
15582 2000-01-20 Richard M. Stallman <rms@gnu.org>
15583
15584 * data.c (set_internal): Fix the criteria for whether
15585 to swap out the old cached binding.
15586
15587 2000-01-19 Dave Love <fx@gnu.org>
15588
15589 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
15590
15591 2000-01-18 Kenichi Handa <handa@etl.go.jp>
15592
15593 * regex.c (re_compile_fastmap): While checking a range table for
15594 `charset', skip flag bits for a character class correctly.
15595
15596 2000-01-17 Gerd Moellmann <gerd@gnu.org>
15597
15598 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
15599
15600 * xfns.c (x_window): Call lw_create_widget with new parameter list.
15601
15602 * widget.c (EmacsFrameSetCharSize): Change size of children first
15603 because of problems with main window geometry management under Lesstif.
15604
15605 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
15606 MENU_ITEMS_ITEM_.*.
15607 (MENU_ITEMS_ITEM_HELP): New enumerator.
15608 (push_menu_item): Add parameter HELP. Record help in menu_items.
15609 (single_menu_item, single_submenu, list_of_items): Call
15610 push_menu_item with new parameter.
15611 (single_submenu): Set help string in widget value.
15612 (menu_highlight_callback): New function.
15613 (set_frame_menubar): Call lw_create_widget with new
15614 parameter list.
15615 (xmenu_show, xdialog_show): Ditto.
15616
15617 2000-01-13 Gerd Moellmann <gerd@gnu.org>
15618
15619 * sound.c (Fplay_sound): Improve doc string.
15620
15621 2000-01-11 Richard M. Stallman <rms@gnu.org>
15622
15623 * lisp.h (set_internal): Enter the new arg.
15624
15625 * eval.c (specbind): Record buffer-local variables specially,
15626 indicating which buffer's binding was saved.
15627 (unbind_to): Restore buffer-local variables specially
15628 in the proper buffer.
15629
15630 * data.c (set_internal): New arg BUF.
15631
15632 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
15633 * data.c (Fset): Pass new arg to set_internal.
15634 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
15635
15636 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15637
15638 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
15639
15640 2000-01-11 Richard M. Stallman <rms@gnu.org>
15641
15642 * minibuf.c (Ftry_completion): Doc fix.
15643
15644 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15645
15646 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
15647 vector, too.
15648
15649 2000-01-11 Andreas Schwab <schwab@suse.de>
15650
15651 * coding.c (code_convert_region): Initialize total_skip.
15652
15653 2000-01-08 Dave Love <fx@gnu.org>
15654
15655 * eval.c (Fuser_variable_p): Check customizability too.
15656
15657 2000-01-07 Gerd Moellmann <gerd@gnu.org>
15658
15659 * minibuf.c (Fcompleting_read): Doc fix.
15660
15661 2000-01-05 Gerd Moellmann <gerd@gnu.org>
15662
15663 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
15664 -L /usr/local/lib.
15665
15666 * xfns.c (x_create_im): New function to set IM and IC of a frame.
15667 Check that input style is supported before trying to create an
15668 IC for it.
15669 (x_window): Call x_create_im.
15670
15671 2000-01-04 Gerd Moellmann <gerd@gnu.org>
15672
15673 * xfns.c (current_gif_memory_src): New variable.
15674 (gif_load): Record the address of the current memory source
15675 in current_gif_memory_src.
15676 (gif_read_from_memory): Use current_gif_memory_src.
15677
15678 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
15679 macros statement form.
15680
15681 * sound.c (struct sound): Renamed from struct sound_file.
15682 (struct sound): Add members `data' and `header_size'.
15683 (enum sound_attr): Add SOUND_DATA.
15684 (current_sound, current_sound_device): Variables renamed from
15685 sound_file and sound_device.
15686 (parse_sound): Parse :data.
15687 (parse_sound): Handle sound data in strings.
15688 (find_sound_type): Function renamed from find_sound_file_type.
15689 (wav_init, au_init): Fail if sound's header_size is smaller than
15690 needed header size.
15691 (wav_play, au_play): Play sounds from string data.
15692
15693 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
15694
15695 * lisp.h: Add prototype for allocate_string_data.
15696
15697 * alloc.c (Fgarbage_collect): Return number of live and free strings.
15698
15699 * alloc.c (mark_buffer): Remove code in #if 0.
15700 (gc_sweep): Ditto.
15701 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
15702 (strings_consed): New variable.
15703 (allocate_string): Set it.
15704 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
15705 (Fmemory_use_counts): Return strings_consed. Use Flist.
15706
15707 * alloc.c: General cleanup in comments etc. Remove conditional
15708 compilation for `standalone'.
15709
15710 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
15711
15712 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
15713 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
15714 (DONT_COPY_FLAG): Removed.
15715 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
15716 (struct sdata, struct sblock): New
15717 (struct string_block): Rewritten.
15718 (STRINGS_IN_STRING_BLOCK): New macro.
15719 (oldest_sblock, current_sblock, total_strings, total_free_strings)
15720 (large_sblocks, string_blocks, string_free_list): New variables.
15721 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
15722 (init_strings): Rewritten.
15723 (allocate_string, allocate_string_data, compact_small_strings)
15724 (free_large_strings, sweep_strings): New functions.
15725 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
15726 (struct string_block_head, current_string_block)
15727 (first_string_block, large_string_blocks, STRING_FULLSIZE)
15728 (STRING_PAD): Removed.
15729 (make_uninit_multibyte_string, make_pure_string): Rewritten.
15730 (Fgarbage_collect): Don't set mark bit in large strings.
15731 (mark_object): Mark strings differently. Mark symbol names
15732 differently.
15733 (survives_gc_p): Test marked strings differently.
15734 (gc_sweep): Sweep strings differently, unmark strings in
15735 symbol names.
15736 (compact_strings): Removed.
15737
15738 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
15739
15740 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
15741 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
15742
15743 2000-01-04 Kenichi Handa <handa@etl.go.jp>
15744
15745 * fileio.c (Finsert_file_contents): Signal error if visiting file
15746 in a non-empty buffer.
15747
15748 * term.c (encode_terminal_code): Fix the previous change.
15749
15750 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15751
15752 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
15753 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
15754
15755 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
15756
15757 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15758
15759 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
15760 need to test for MSDOS frames.
15761
15762 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15763
15764 * dosfns.c (unspecified_colors): Remove.
15765 (msdos_stdcolor_idx): Use global variables unspecified_fg and
15766 unspecified_bg.
15767 (msdos_stdcolor_name): Return strings for unspecified fore- and
15768 back-ground colors.
15769
15770 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
15771 (syms_of_xfaces): Remove their staticpro's.
15772 (tty_color_name): Return Lisp strings for unspecified fore- and
15773 back-ground colors.
15774 (Finternal_set_lisp_face_attribute): Remove the special treatment
15775 for Qunspecified_{f,b}g.
15776 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
15777
15778 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15779
15780 * xdisp.c (reseat_at_next_visible_line_start): Position before
15781 newline only if ending up on a newline.
15782 (next_element_from_ellipsis): Return success. Handle case of
15783 displaying no ellipsis. Fix case of ellipsis defined in display table.
15784 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
15785 returns 0.
15786
15787 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15788
15789 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
15790 (Fcolor_supported_p): Renamed from face-color-supported-p.
15791
15792 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15793
15794 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
15795 list of colors renamed to tty-defined-color-alist.
15796 (tty_color_name): Pass the frame to tty-color-by-index.
15797 (realize_tty_face): tty-color-alist is now a function which
15798 accepts the frame as argument.
15799
15800 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
15801
15802 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15803
15804 * term.c (insert_glyphs): Pass glyph, not &glyph, to
15805 encode_terminal_code.
15806
15807 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15808
15809 * dispnew.c (mode_line_string): Support termcap frames as well.
15810
15811 2000-01-01 Gerd Moellmann <gerd@gnu.org>
15812
15813 * syntax.c (Fforward_word): Undo previous change.
15814
15815 * editfns.c (Fconstrain_to_field): Don't constrain if
15816 inhibit-field-text-motion is non-nil.
15817 (Fline_beginning_position): Undo previous change.
15818 (Fline_end_position): Ditto.
15819
15820 * syntax.c (Fforward_word): Notice field boundaries only if
15821 inhibit-field-text-motion is nil.
15822
15823 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
15824
15825 * editfns.c (Vinhibit_field_text_motion): New variable.
15826 (inhibit-field-text-motion): New DEFVAR_LISP.
15827 (Fline_beginning_position, Fline_end_position): Notice field
15828 boundaries only if inhibit-field-text-motion is nil.
15829
15830 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
15831 All calls adjusted.
15832 (x_build_heuristic_mask): Likewise.
15833 (xbm_load_image_from_file): Change error output.
15834 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
15835 (gif_load, gs_load, x_kill_gs_process): Ditto.
15836
15837 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
15838 color indices when accessing raster pixels.
15839 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
15840 one of :file or :data.
15841 (enum pbm_keyword_index): Add PBM_DATA.
15842 (pbm_format): Add :data.
15843 (pbm_image_p): Allow either :file or :data.
15844 (pbm_read_file): New function.
15845 (pbm_scan_number): Rewritten to read from string.
15846 (pbm_load): Support :data.
15847
15848 See ChangeLog.8 for earlier changes.
15849
15850 ;; Local Variables:
15851 ;; coding: iso-2022-7bit
15852 ;; End:
15853
15854 Copyright (C) 2001 Free Software Foundation, Inc.
15855 Copying and distribution of this file, with or without modification,
15856 are permitted provided the copyright notice and this notice are preserved.