1 2002-02-09 Kim F. Storm <storm@cua.dk>
3 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
4 reduction. This fixes a display problem where stray newlines were
5 inserted in the window (corrected by C-l). Clarified code (IMHO).
7 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
9 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
11 * xdisp.c (display_mode_lines): Fix last change.
13 2002-02-09 Jason Rumney <jasonr@gnu.org>
15 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
17 (w32_load_system_font): Prevent Cleartype fonts from loading.
18 (Fx_show_tip): Ensure tip frames are above other topmost windows.
20 2002-02-09 Kim F. Storm <storm@cua.dk>
22 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
23 (CURRENT_MODE_LINE_HEIGHT): Use it.
24 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
26 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
27 (pos_visible_p, handle_face_prop): Likewise.
28 (display_mode_lines): Likewise, but for the real selected window.
29 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
31 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
32 in non-selected windows.
33 (realize_basic_faces): Realize it.
34 (syms_of_term): Intern and staticpro it.
36 2002-02-08 Kim F. Storm <storm@cua.dk>
38 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
39 Changed mail addresses to emacs-devel@gnu.org.
41 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
43 * fileio.c (Fsubstitute_in_file_name): If the file name includes
44 ~user, and there's no such user, don't discard everything before
47 * floatfns.c (Fround): Doc fix.
49 2002-02-08 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
51 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
53 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
55 * lisp.h (Fx_file_dialog): Export (for Motif code in fileio.c).
57 2002-02-07 Kim F. Storm <storm@cua.dk>
59 * keymap.c (where_is_internal): Only check whether definition is
60 remapped if it fulfills is_command_symbol.
62 2002-02-07 Andreas Schwab <schwab@suse.de>
64 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
66 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
68 2002-02-06 Kim F. Storm <storm@cua.dk>
70 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
71 defining command remapping. Doc updated.
72 (Flookup_key): Remap command through keymap if KEY is a symbol.
73 (is_command_symbol): New function.
74 (Fkey_binding): Use it. New optional argument NO-REMAP.
75 Doc updated. Callers changed. Perform command remapping via
76 recursive call unless that arg is non-nil.
77 (where_is_internal): New argument no_remap. Callers changed.
78 Call recursively to find original key bindings for a remapped
79 comand unless that arg is non-nil.
80 (Fwhere_is_internal): New optional argument NO-REMAP.
81 Doc updated. Callers changed. Pass arg to where_is_internal.
83 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
84 (is_command_symbol): Added prototype.
86 * keyboard.c (Vthis_original_command): New variable.
87 (syms_of_keyboard): DEFVAR_LISP it.
88 (command_loop_1): Set it, and perform command remapping.
90 2002-02-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
92 * keyboard.c (recursive_edit_1): Call cancel_hourglass
95 2002-02-06 Jason Rumney <jasonr@gnu.org>
97 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
99 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
101 * charset.c (get_charset_id): Use if-else instead of ?:.
103 2002-02-06 Richard M. Stallman <rms@gnu.org>
105 * filelock.c (S_ISLNK): Define if not defined.
107 2002-02-03 Richard M. Stallman <rms@gnu.org>
109 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
111 * lread.c (read1): Redesign strategy for force_multibyte and
112 force_singlebyte. Now is_multibyte records whether read_buffer
113 is multibyte. Encountering any multibyte character makes it so.
115 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
117 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
118 with the same sequence, map that sequence to f10 rather than f0.
120 2002-02-03 Andreas Schwab <schwab@suse.de>
122 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
123 latter never being defined on GNU/Linux.
125 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
127 * xfaces.c (realize_default_face): Don't set the weight and slant
128 of the default face to Qnormal, unless these attributes are
131 2002-02-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
133 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
134 Call cancel_hourglass unconditionally.
136 * eval.c (Fsignal): Remove duplicated declaration of
137 the variable `display_hourglass_p'.
139 2002-01-31 Richard M. Stallman <rms@gnu.org>
141 * editfns.c (region_limit): Nicer error message.
143 * coding.c (decode_composition_emacs_mule):
144 Give up if NCOMPONENT gets too large to index `component'.
146 * callint.c (check_mark): New arg to specify clearer error message.
149 2002-01-27 Richard M. Stallman <rms@gnu.org>
151 * minibuf.c (Fcompleting_read): Doc fix.
153 2002-01-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
155 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
156 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
159 2002-01-26 Richard M. Stallman <rms@gnu.org>
161 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
163 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
164 and scroll_up_aggressively.
166 2002-01-26 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
168 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
170 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
172 * textprop.c (Fnext_property_change, Fnext_single_property_change)
173 (Fprevious_property_change, Fprevious_single_property_change):
174 Stay within the narrowed-buffer boundaries.
176 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
178 * term.c (Ftty_display_color_cells): New function.
179 (syms_of_term): Defsubr it.
180 (Ftty_display_color_cells, Ftty_display_color_p): Change the
181 argument name to DISPLAY. Doc fix.
183 * dispextern.h: Add prototype for set_tty_color_mode and
186 2002-01-24 Jason Rumney <jasonr@gnu.org>
188 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
189 If region left to draw is not what was expected, mark the frame as
192 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
193 Combine the regions returned by BeginPaint and GetUpdateRect.
195 2002-01-23 Jason Rumney <jasonr@gnu.org>
197 * w32term.c (x_update_window_begin): Only hide caret if
198 w32_use_visible_system_caret is set.
199 (x_update_window_end): Only show caret if
200 w32_use_visible_system_caret is set.
201 (syms_of_w32term): Handle SystemParametersInfo call failing.
203 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
205 2002-01-22 Richard M. Stallman <rms@gnu.org>
207 * unexelf.c (unexec): Define n so as to cause compilation error
208 for the code where people have often written n instead of nn.
210 * .gdbinit (hookpost-run): Defined.
212 2002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
214 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
216 2002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
218 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
219 if fullscreen is being set.
221 2002-01-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
223 * minibuf.c (Fminibuffer_contents)
224 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
225 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
227 2002-01-21 Richard M. Stallman <rms@gnu.org>
229 * window.c (check_frame_size): Fix minimum height calculation.
231 2002-01-20 Ken Raeburn <raeburn@gnu.org>
233 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
234 height before comparison.
235 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
237 2002-01-20 Jason Rumney <jasonr@gnu.org>
239 * w32term.c (w32_system_caret_width): Remove.
240 (w32_use_visible_system_caret): New user flag.
241 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
242 Windows reports a screen reader running.
243 (x_update_window_begin): Hide the system caret.
244 (x_update_window_end): Show the system caret.
245 (x_display_and_set_cursor): Don't draw a cursor when
246 w32_use_visible_system_caret is set. Do not adjust width.
248 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
249 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
250 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
251 the user requests it. Use system default width when creating.
252 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
254 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
257 2002-01-20 Richard M. Stallman <rms@gnu.org>
259 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
261 2002-01-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
263 * doprnt.c (doprnt1): Fix typos in error call.
265 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
267 * unexelf.c (unexec) [__sgi]: Support the .got sections.
269 2002-01-20 Jason Rumney <jasonr@gnu.org>
271 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
272 that Windows returns. If a double check fails, try to guess how
273 ExtTextOut is going to act.
275 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
277 (w32_list_synthesized_fonts): Removed.
278 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
279 (struct enumfont_t): New element; list.
280 (enum_font_cb2): List all style and charset variations of a font.
281 (Fw32_select_font): New optional argument; include_proportional.
282 Exclude vertical fonts. Exclude proportional fonts unless
283 include_proportional is non-nil.
284 (w32_enable_synthesized_fonts): Change to a boolean.
285 (Fw32_send_sys_command): Doc fix.
287 2002-01-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
289 * dispnew.c (update_frame): Move the variable `tem' to the block
292 2002-01-19 Jason Rumney <jasonr@gnu.org>
294 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
295 call to face-set-after-frame-default.
297 2002-01-18 Richard M. Stallman <rms@gnu.org>
299 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
300 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
302 2002-01-17 Richard M. Stallman <rms@gnu.org>
304 * window.c (enlarge_window): When exceeding size of parent,
305 directly delete all the siblings instead of trying to resize it.
307 2002-01-17 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
309 * term.c (set_tty_color_mode): Remove unused variable `tem'.
311 2002-01-16 Henrik Enberg <henrik@enberg.org>
313 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
315 2002-01-16 Kim F. Storm <storm@cua.dk>
317 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
318 is invisible. This can happen if cursor is on top line of a
319 window, and we switch to a buffer with a header line.
321 * w32term.c (x_erase_phys_cursor): Ditto.
323 2002-01-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
325 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
326 `dont_resize' only when used.
328 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
330 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
332 * xdisp.c (display_mode_element): When computing charpos, depend
333 on multibyteness of elt, not the text in field.
335 2002-01-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
337 * buffer.c (Fkill_all_local_variables): Increment
338 `update_mode_lines' only once.
340 2002-01-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
342 * lisp.h (adjust_after_replace_noundo)
343 (Fupdate_coding_systems_internal): Add prototypes.
345 * sound.c (Fplay_sound): Initialize header_size also for :data case.
347 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
349 Support for the --color command-line argument and tty-color-mode
352 * term.c (tty_default_color_capabilities, tty_setup_colors)
353 (set_tty_color_mode): New functions.
354 (term_init): Call tty_default_color_capabilities.
355 (Qtty_color_mode_alist): New variable.
356 (syms_of_term): Intern and staticpro it.
358 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
360 (do_switch_frame): For termcap frames, switch the tty
361 color mode as specified by the frame's parameters.
362 (Qtty_color_mode): New variable.
363 (syms_of_frame): Intern and staticpro it.
365 * emacs.c (USAGE2): Add the --color option.
366 (standard_args): Ditto.
368 2002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
370 * xterm.h (struct x_output): New members want_fullscreen,
371 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
373 New enum for FULLSCREEN_* constants.
374 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
376 (x_fullscreen_adjust): Add prototype.
378 * emacs.c (USAGE2): Add the new full-screen arguments.
379 (standard_args): Ditto.
381 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
383 (syms_of_xfns): Intern and staticpro them.
384 (x_frame_parms) <"fullscreen">: New parameter.
385 (x_fullscreen_move, x_set_fullscreen): New functions.
386 (x_set_frame_parameters): Support for Qfullscreen.
387 (x_real_positions): More accurate computation of the frame position.
388 (x_figure_window_size): Support full-screen frames.
389 (Fx_create_frame): Default the fullscreen parameter.
391 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
392 (XTread_socket) <Expose>: Call x_check_fullscreen.
393 <ConfigureNotify>: Don't resize to fullscreen.
394 Call x_check_fullscreen_move, and set the want_fullscreen member of
397 2002-01-13 Jason Rumney <jasonr@gnu.org>
399 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
400 for mice with more than 3 buttons.
402 * w32term.c (parse_button): New parameter xbutton. Callers changed.
403 (w32_read_socket): Handle new "XBUTTON" messages.
405 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
406 (syms_of_w32fns): DEFVAR_BOOL it.
407 (w32_wnd_proc): Handle new "XBUTTON" messages.
409 2002-01-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
411 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
413 2002-01-13 Andreas Schwab <schwab@suse.de>
415 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
417 2002-01-12 Andreas Schwab <schwab@suse.de>
419 * .gdbinit (xbuffer): Remove address operator since data is now a
422 2002-01-11 Richard M. Stallman <rms@gnu.org>
424 * insdel.c (adjust_after_replace_noundo): New function.
426 * coding.c (code_convert_region): Don't copy old text if undo disabled.
428 2002-01-09 Jason Rumney <jasonr@gnu.org>
430 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
431 when checking for multiple frames.
433 2002-01-08 Richard M. Stallman <rms@gnu.org>
435 * window.c (delete_window): Rewrite the code for changing the
436 selected window to handle the case where WINDOW is not a leaf.
438 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
440 * process.c (send_process): Set src_multibyte to 1 after the call
441 top setup_coding_system, not before the call.
443 2002-01-07 Jason Rumney <jasonr@gnu.org>
445 * xmenu.c (set_frame_menubar, xmenu_show):
446 (xdialog_show): Initialize wv->help to Qnil.
448 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
449 (w32_dialog_show): Initialize wv->help to Qnil.
451 2002-01-06 Jason Rumney <jasonr@gnu.org>
453 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
455 * w32menu.c (w32_menu_display_help): Revert last change.
457 * xmenu.c (menu_highlight_callback): Revert last change.
459 2002-01-06 Andreas Schwab <schwab@suse.de>
461 * insdel.c (make_gap_larger): Make sure buffer size does not
462 overflow range of int.
464 2002-01-05 Jason Rumney <jasonr@gnu.org>
466 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
469 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
471 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
472 to the left or to the right of the pointer, put it against
473 the left screen edge.
474 (x_frame_parms): Add missing braces around initializer.
476 * w32term.c (x_setup_relief_colors): Don't compute an image's
477 background color if it doesn't have a Pixmap.
478 (notice_overwritten_cursor): Don't depend on
479 output_cursor and updated_area. Compare pixel coordinates with
480 window's cursor pixel coordinates.
481 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
482 Call notice_overwritten_cursor with new arg list.
483 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
485 (x_draw_image_relief): Use predefined macro instead of
486 constant when the value of `tool_bar_button_relief' is negative.
488 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
490 2002-01-04 Richard M. Stallman <rms@gnu.org>
492 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
494 2002-01-03 Richard M. Stallman <rms@gnu.org>
496 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
497 (Fkey_binding): Try the `keymap' property map first.
498 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
501 2002-01-03 Kim F. Storm <storm@cua.dk>
503 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
505 2002-01-02 Richard M. Stallman <rms@gnu.org>
507 * keyboard.c (read_key_sequence): Handle the keymap property
508 before minor mode maps.
510 * editfns.c (Fformat): Update thissize from field_width
511 based on the actual width, in the string case.
513 2002-01-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
515 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
516 when used as truth value to prevent gcc warnings.
518 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
519 * w32proc.c: Include <config.h>.
521 2002-01-01 Andreas Schwab <schwab@suse.de>
523 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
524 not EMACS_INT, to make them compatible with DEFVAR_INT.
525 * lisp.h (max_specpdl_size): Adjust declaration.
527 2002-01-01 Richard M. Stallman <rms@gnu.org>
529 * print.c (print_object): Test print_escape_nonascii only for
531 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
532 when outputting to a multibyte buffer.
534 2001-12-29 Richard M. Stallman <rms@gnu.org>
536 * print.c (print_object): In multibyte string, use hex escapes.
537 Use octal only for unibyte strings.
538 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
540 * lread.c (read_escape): New arg BYTEREP for reporting whether
541 escape forces unibyte or multibyte.
542 (read1): When reading a string, take note of that info.
544 2001-12-29 Ken Raeburn <raeburn@gnu.org>
546 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
547 comparison to test lisp value returned by Fget.
549 2001-12-29 Richard M. Stallman <rms@gnu.org>
551 * lisp.h (max_specpdl_size): Add declaration.
553 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
555 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
556 Handle modifier bits. Correct typo in error message.
558 2001-12-28 Richard M. Stallman <rms@gnu.org>
560 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
561 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
562 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
563 Update calls to Fdefine_abbrev.
564 (write_abbrev): Update for changed data format.
565 Don't list "system" abbrevs.
566 (Fexpand_abbrev): Update use count with new data format.
567 (describe_abbrev): Update for changed data format.
568 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
570 * config.in (HAVE_MBSINIT): Add #undef.
572 * strftime.c (mbsinit): Define as no-op if not available.
574 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
575 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
577 * keymap.c (Flookup_key): Error message if key has wrong data type.
578 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
579 (exclude_key): New variable.
581 2001-12-28 Gerd Moellmann <gerd@gnu.org>
583 * xterm.c (x_setup_relief_colors): Don't compute an image's
584 background color if it doesn't have a Pixmap.
586 * xterm.c (notice_overwritten_cursor): Don't depend on
587 output_cursor and updated_area. Compare pixel coordinates with
588 window's cursor pixel coordinates.
589 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
590 Call notice_overwritten_cursor with new arg list.
591 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
594 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
595 height of the cursor line to the amount to scroll.
597 2001-12-27 Richard M. Stallman <rms@gnu.org>
599 * intervals.c (set_point_both): The position after an invisible,
600 intangible character is not an acceptable stopping point.
602 2001-12-27 Ken Raeburn <raeburn@gnu.org>
604 * window.c (enlarge_window): In new preserve_before code, convert
605 CURBEG from lisp object to integer before doing arithmetic.
607 2001-12-27 Richard M. Stallman <rms@gnu.org>
609 * bytecode.c (Fbyte_code): Undo previous change.
611 2001-12-26 Kim F. Storm <storm@cua.dk>
613 * keyboard.c (record_char): Ignore duplicate help-echo events only
614 separated by mouse-movement. When tracking mouse, only record
615 first and last mouse-movement event in same window.
616 Don't record mouse-movement events in keyboard macros.
618 2001-12-25 Richard M. Stallman <rms@gnu.org>
620 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
621 (Fenlarge_window): New arg PRESERVE_BEFORE.
623 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
624 instead of Fstring_as_unibyte.
626 2001-12-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
628 The following changes remove mocklisp support:
630 * mocklisp.h, mocklisp.c: Files removed.
632 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
633 `Qmocklisp' and `Qmocklisp_arguments'.
634 Remove prototype of syms_of_mocklisp.
636 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
638 * callint.c: Do not include mocklisp.h.
639 (Fcall_interactively): Do not test for mocklisp case.
641 * eval.c: Remove variables `Qmocklisp_arguments',
642 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
643 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
644 Do not test for mocklisp case.
645 (Fwhile): Remove unused variable `tem'.
646 (syms_of_eval): Remove variable `moclisp-arguments'.
648 * data.c (wrong_type_argument): Remove mocklisp case.
650 * doc.c (Fdocumentation): Remove mocklisp case.
652 * emacs.c (main): Do not call syms_of_mocklisp.
654 2001-12-21 Richard M. Stallman <rms@gnu.org>
656 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
657 to the left or to the right of the pointer, put it against
658 the left screen edge.
660 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
662 * Makefile.in (distclean): Remove .gdbinit if we are building
663 outside the source tree.
665 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
667 * w32.c (emacs_root_dir): New function.
669 * msdos.c (emacs_root_dir): New function.
671 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
672 of the current drive as the fallback for default_directory.
674 * dired.c (file_name_completion): Run the elements of
675 completion-ignored-extensions through ENCODE_FILE.
677 * lisp.h (scmp): Remove prototype, since it's now a static
678 function private to dired.c.
680 2001-12-18 Richard M. Stallman <rms@gnu.org>
682 * dired.c (scmp): Function moved from minibuf.c.
683 Delete multibyte handling--used only on encoded strings.
685 * minibuf.c (scmp): Function moved to dired.c.
687 * fns.c (merge): Add QUIT call.
689 2001-12-18 Dave Love <fx@gnu.org>
691 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
692 language/georgian.el.
694 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
696 * Makefile.in (lisp, shortlisp): Synchronize with changes to
697 lisp/Makefile.in:DONTCOMPILE.
699 2001-12-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
701 * xdisp.c (window_box_height): Do not return negative values.
702 From Gerd Moellmann <gerd@gnu.org>.
704 * keyboard.c (head_table): Add missing braces around initializer.
706 * term.c (keys): Likewise.
708 * xfns.c (x_frame_parms, visual_classes): Likewise.
710 2001-12-17 Sam Steingold <sds@gnu.org>
712 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
713 patch (COMPOSING_P, not COMPOSING).
715 2001-12-17 Richard M. Stallman <rms@gnu.org>
717 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
719 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
720 before calling decode_coding.
722 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
724 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
725 instead of only for COMPOSITION_DISABLED.
727 2001-12-16 Richard M. Stallman <rms@gnu.org>
729 * alloc.c (pure_alloc): After overflow, allocate just a small block.
731 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
733 * buffer.h (struct buffer): New field `display_error_modiff'.
734 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
736 * window.c (Frecenter): Clear display_error_modiff field.
738 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
739 Call redisplay_window, but not if display_error_modiff field says no.
740 (redisplay_window_error): New function.
741 (displayed_buffer): New variable.
742 (redisplay_internal, redisplay_windows): Call the new functions
743 instead of redisplay_window directly.
745 2001-12-15 Richard M. Stallman <rms@gnu.org>
747 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
749 2001-12-14 Andrew Innes <andrewi@gnu.org>
751 * makefile.w32-in (EMACSLOADPATH): Define.
752 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
753 (bootstrap-temacs): Remove dependency on bootstrap-clean.
755 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
757 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
758 parameter have a numeric value all the time.
760 * w32fns.c (x_report_frame_params): Likewise.
762 2001-12-12 Richard M. Stallman <rms@gnu.org>
764 * fileio.c (Fwrite_region): Doc fix.
766 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
767 (redisplay_internal): Call clear_image_cache only for window terminals.
769 2001-12-12 Gerd Moellmann <gerd@gnu.org>
771 * xdisp.c (move_it_vertically_backward): Change heuristic
772 for the case that we didn't move far enough initially.
774 * window.c (Frecenter): Simplify computation in the case of window
775 system frames and ARG < 0; use window_box_height.
777 2001-12-11 Richard M. Stallman <rms@gnu.org>
779 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
780 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
782 2001-12-11 Andrew Innes <andrewi@gnu.org>
784 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
787 2001-12-11 Richard M. Stallman <rms@gnu.org>
789 * m/hp800.h: Split the __hpux conditional into the parts
790 that are right for GNU/Linux too and the parts that are not.
791 Use the former if GNU_LINUX.
792 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
794 * s/gnu-linux.h (GNU_LINUX): Defined.
796 2001-12-11 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
798 * macros.c, msdos.c, w16select.c: Change doc-string comments to
799 `new style' [w/`doc:' keyword].
801 2001-12-10 Jason Rumney <jasonr@gnu.org>
803 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
806 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
808 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
811 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
813 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
815 * s/hpux10.h (srand48): Don't undefine.
817 2001-12-09 Jason Rumney <jasonr@gnu.org>
819 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
820 Add comment to explain where the struct came from.
821 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
822 (add_menu_item): Process pop-up menus first to avoid memory leak.
823 (add_menu_item, w32_menu_display_help): Use `help' field as
825 (w32_free_submenu_strings): Only free owner-drawn strings.
827 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
829 * COPYING: Moved back.
831 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
832 Add parentheses around && within ||.
834 * indent.c (compute_motion): Likewise.
836 * intervals.c (merge_properties_sticky): Likewise.
838 * coding.c (setup_coding_system, shrink_encoding_region)
839 (Fdecode_sjis_char): Likewise.
841 2001-12-07 Andreas Schwab <schwab@suse.de>
843 * xdisp.c (display_mode_element): Don't read past end of string if
846 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
849 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
850 from most_positive_fixnum and most_negative_fixnum, resp., and
851 type changed to Lisp_Object.
852 (syms_of_data): DEFVAR_LISP them.
854 2001-12-07 Richard M. Stallman <rms@gnu.org>
856 * callproc.c (init_callproc): Set Vdata_directory based on the source
857 location whenever Emacs was run uninstalled.
859 2001-12-06 Paul Eggert <eggert@twinsun.com>
861 * config.in (HAVE_WORKING_VFORK): New #undefs.
862 * process.c (create_process):
863 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
864 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
865 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
866 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
867 * m/intel386.h (HAVE_VFORK): Likewise.
868 * m/mips-siemens.h (HAVE_VFORK): Likewise.
869 * m/mips.h (HAVE_VFORK): Likewise.
870 * s/freebsd.h (vfork): Remove #define.
871 * s/lynxos.h (HAVE_VFORK): Remove #undef.
872 * s/usg5-4-2.h: Fix comment about vfork.
874 2001-12-06 Richard M. Stallman <rms@gnu.org>
876 * s/hpux10.h (random): Add undef.
877 (HAVE_RANDOM): Define it just once.
879 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
881 * eval.c: Undo last change: the standard syntax is not wanted.
883 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
885 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
886 scroll bars of the frame before deleting the frame itself. If the
887 frame has a widget, delete the frame with XtDestroyWidget, and do
888 not call XDestroyWindow before that.
890 2001-12-06 Kim F. Storm <storm@cua.dk>
892 * xfns.c (x_report_frame_params): Return actual fringe widths.
894 * w32fns.c (x_report_frame_params): Return actual fringe widths.
896 2001-12-05 Andrew Innes <andrewi@gnu.org>
898 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
901 * insdel.c (make_gap_larger): New function.
902 (make_gap_smaller): New function.
903 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
904 make_gap_smaller if arg is negative.
906 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
908 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
909 Pass a dummy argument when calling interrupt_signal.
910 (parse_menu_item): Mark disabled items before checking for empty def.
911 (read_char_minibuf_menu_prompt): Make safety more visible.
912 (read_key_sequence): Add a `first_unbound' variable.
913 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
914 unbound prefix as soon as we can detect it.
916 * doc.c (Fsnarf_documentation): Add prototype.
917 (get_doc_string): Handle negative arguments.
918 (Fdocumentation): Use AREF and ASIZE.
919 Move the calls to get_doc_string to a single place.
920 Don't confuse an interactive-spec for a docstring reference.
921 (Fdocumentation_property): Take advantage of the fact that
922 get_doc_string now ignores the sign of the docstring position.
924 * eval.c: Use standard syntax for usage in docstrings.
926 2001-12-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
928 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
930 2001-12-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
932 * xterm.c (x_draw_image_relief): Use predefined macro instead of
933 constant when the value of `tool_bar_button_relief' is negative.
935 2001-12-02 Richard M. Stallman <rms@gnu.org>
937 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
938 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
940 * fileio.c (read_non_regular): Delete Fsignal call.
942 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
944 * lisp.h (run_hook_list_with_args): Undo last change.
946 2001-12-01 Gerd Moellmann <gerd@gnu.org>
948 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
950 2001-12-01 Jason Rumney <jasonr@gnu.org>
952 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
954 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
955 [!WM_MOUSELEAVE]: Define.
957 * w32menu.c (current_popup_menu, get_menu_item_info):
958 (set_menu_item_info): New vars.
959 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
960 (w32_menu_show): Set current_popup_menu.
961 (add_menu_item): Allocate new strings for owner-drawn menu items
963 Use owner-draw for disabled menu items again.
964 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
965 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
967 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
968 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
969 <WM_EXITMENULOOP>: Free menu strings.
970 <WM_MOUSELEAVE>: Stop tracking mouse.
971 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
973 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
976 2001-12-01 Kim F. Storm <storm@cua.dk>
978 The following changes add left-fringe and right-fringe
979 frame parameters to adjust fringe widths, or remove one or
982 * frame.h (struct frame): Remove trunc_area_pixel_width and
983 trunc_area_cols fields.
984 (Qleft_fringe, Qright_fringe): Declare.
985 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
987 * frame.c (Qleft_fringe, Qright_fringe): New vars.
988 (syms_of_frame): Initialize them.
990 * window.c (coordinates_in_window): Handle separate left and right
993 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
994 and fringe_cols fields.
995 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
996 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
997 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
998 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
999 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
1000 (x_compute_fringe_widths): Add prototype.
1002 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
1003 fill fringe evenly with small dashes.
1004 (x_draw_fringe_bitmap): Clear background if necessary. Align and
1005 clip the new ZV bitmap to avoid jitter between rows.
1006 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
1007 background. Don't draw fringe bitmaps if fringe width is zero.
1008 (x_compute_fringe_widths): New function.
1009 (x_new_font, x_set_window_size_1): Use it.
1011 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
1012 (x_set_frame_parameters): Process `font' parameter before other
1013 parameters as fringe widths depend on it.
1014 (x_set_fringe_width): New function.
1015 (x_figure_window_size): Use x_compute_fringe_widths.
1016 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
1019 * widget.c (set_frame_size): Use x_compute_fringe_widths.
1020 (EmacsFrameSetCharSize): Ditto.
1022 * w32term.h: Merged changes from xterm.h.
1023 * w32term.c: Merged changes from xterm.c.
1024 * w32fns.c: Merged changes from xfns.c.
1026 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1030 2001-11-29 Dave Love <fx@gnu.org>
1032 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
1034 (detect_coding_mask): Fix call of detect_coding_iso2022.
1036 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1038 * fileio.c (file-name-coding-system)
1039 (default-file-name-coding-system): Doc fix (links to referenced
1042 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1044 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
1045 Add dummy uses of gcproN variables.
1047 * category.c (describe_category, describe_category_1)
1048 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
1049 (syms_of_category): Don't defsubr Sdescribe_categories.
1051 2001-11-28 Richard M. Stallman <rms@gnu.org>
1053 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
1055 * Makefile.in (lispdir): New variable, referring to build dir.
1056 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
1058 2001-11-28 Andrew Innes <andrewi@gnu.org>
1060 * w32menu.c (w32_menu_display_help): Actually add the new argument
1063 2001-11-28 Jason Rumney <jasonr@gnu.org>
1065 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
1066 menu items. From David Ponce <dponce@wanadoo.fr>.
1067 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
1069 (w32_menu_display_help): New argument OWNER. Rewritten to store a
1070 help event in the owner frame's keyboard buffer.
1072 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
1073 (Fx_show_tip): Don't subtract last width from row width.
1075 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
1076 (w32_read_socket): Use EQ to compare frames.
1078 2001-11-28 Gerd Moellmann <gerd@gnu.org>
1080 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1083 2001-11-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1085 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
1086 `gcpro3' and `gcpro4'.
1088 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
1090 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1092 * ccl.c: Use AREF and ASIZE.
1094 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
1096 * lisp.h (run_hook_list_with_args): Remove.
1097 (LIST_END_P): Fix call to wrong_type_argument.
1098 (make_fixnum_or_float): Use EMACS_INT rather than int.
1100 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
1102 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
1103 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
1105 * eval.c: Use AREF and ASIZE.
1106 (Ffetch_bytecode): Add the file name to the error message.
1108 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
1109 which match the end of the file-name.
1110 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
1111 is not a valid env var, but leave it as is instead.
1113 * keymap.c (access_keymap): Handle t bindings like nil bindings.
1114 Make nil bindings in char-tables transparent.
1115 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
1117 2001-11-26 Richard M. Stallman <rms@gnu.org>
1119 * textprop.c (set_text_properties_1): Allow START, END in either order.
1120 Do nothing if range is empty.
1122 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
1124 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
1127 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1129 * textprop.c (set_text_properties_1): Clearly mark that the
1130 interval should not be empty.
1132 * intervals.c (graft_intervals_into_buffer):
1133 Don't call set_text_properties_1 on an empty interval.
1135 2001-11-25 Richard M. Stallman <rms@gnu.org>
1137 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
1139 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
1140 don't lose the data in it.
1142 2001-11-25 Juanma Barranquero <lektu@terra.es>
1144 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
1146 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
1148 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
1150 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1152 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
1154 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
1156 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
1157 Niemitalo <kon@iki.fi>.
1159 2001-11-25 Jason Rumney <jasonr@gnu.org>
1161 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
1163 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
1164 (Fx_show_tip): Block input during frame creation.
1165 (Fx_show_tip, Fx_hide_tip): Enable.
1167 2001-11-24 Richard M. Stallman <rms@gnu.org>
1169 * lread.c (Fload): Detect recursive load error for more than 3
1170 nestings of the same file.
1171 (Vrecursive_load_depth_limit): Variable deleted.
1172 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
1174 2001-11-24 Jason Rumney <jasonr@gnu.org>
1176 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
1177 mouse position if either left or top is not specified.
1179 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
1180 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
1181 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
1182 (my_create_tip_window): Assign tip_window.
1183 (x_create_tip_frame): Use same defaults as X.
1184 (compute_tip_xy): Remove unused variable. Use full screen width.
1185 (Fx_show_tip): Do not double height. Call ShowWindow directly.
1187 * w32term.c (x_after_update_window_line): Doc fix.
1188 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
1190 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
1192 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
1193 for all Windowed systems.
1195 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
1197 * msdos.c (IT_clear_screen): If the frame's faces are not yet
1198 realized, use the initial screen colors to clear the screen.
1200 2001-11-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1202 * textprop.c (Fset_text_properties): Remove unused variables
1203 `unchanged', `prev_changed', `s' and `len'.
1205 * search.c (Freplace_match): Remove unused variable `inslen'.
1207 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
1209 2001-11-22 Jason Rumney <jasonr@gnu.org>
1211 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
1212 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
1213 (my_create_tip_window): New function.
1214 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
1215 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
1217 2001-11-20 Jason Rumney <jasonr@gnu.org>
1219 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
1220 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
1222 * w32fns.c (Vw32_system_coding_system): Remove.
1223 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
1225 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
1227 * fileio.c (Fwrite_region): Move choose_write_coding_system to
1228 after build_annotations.
1230 * syntax.c (describe_syntax): Add dummy arg.
1231 (describe_syntax_1): Update call to describe_vector.
1233 * category.c (describe_category): Add dummy arg.
1234 (describe_category_1): Update call to describe_vector.
1236 * keymap.c (Fdescribe_vector): Add `describer' parameter.
1237 (describe_command, describe_translation): Add dummy second param.
1238 (describe_map): Call elt_describer with two arguments.
1239 (describe_vector_princ): Add `fun' parameter.
1240 Call it instead of the hardcoded `princ'.
1241 (describe_vector): Add arg `args'.
1242 Pass it as a new second argument to elt_describer.
1244 * keymap.h (describe_vector): Update prototype.
1246 * frame.c: Don't include keymap.h any more.
1247 (keys_of_frame): Remove.
1249 * lisp.h (keys_of_frame): Remove declaration.
1251 * emacs.c (main): Don't call `keys_of_frame' any more.
1253 2001-11-14 Andreas Schwab <schwab@suse.de>
1255 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
1256 if defined, 0 otherwise.
1257 (MAP_FAILED): Define if not defined and use it to test mmap failure.
1258 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
1260 2001-11-19 Richard M. Stallman <rms@gnu.org>
1262 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
1264 2001-11-18 Jason Rumney <jasonr@gnu.org>
1266 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
1267 (x_draw_bar_cursor): If the background color of the glyph under
1268 the cursor equals the frame's cursor color, use the glyph's
1269 foreground color for drawing the bar cursor.
1270 (x_after_update_window_line): Clear internal border in different
1272 (w32_set_vertical_scroll_bar): Check for width and height > 0.
1273 (w32_draw_relief_rect): Correct relief by 1 pixel.
1274 (x_set_glyph_string_background_width):
1275 Set extends_to_end_of_line_p if the row's fill_line_p is set and
1276 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
1277 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
1278 if cursor_in_non_selected_windows is false.
1279 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
1280 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
1281 Notice if cursor gets overwritten.
1282 (notice_overwritten_cursor): Renamed from
1283 note_overwritten_text_cursor. Rewritten to take glyph widths
1284 into account, and to take X positions as parameters.
1285 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1286 around call to x_draw_glyphs.
1287 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1288 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1289 color to use for image glyph reliefs.
1290 (x_draw_image_relief): Accept zero tool_bar_button_relief.
1291 (glyph_rect): Remove unused variable `area'.
1293 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
1295 (x_set_internal_border_width): Set frame garbaged when window
1297 (Fx_create_frame): Accept zero tool_bar_button_relief.
1298 (x_clear_image_1, four_corners_best, image_background)
1299 (image_background_transparent): New functions.
1300 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
1301 (gs_format): Add `:background' entry.
1302 (lookup_image): Set IMG's background color if specified.
1303 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1305 (x_clear_image_1): Reset `background_valid' and
1306 `background_transparent_valid' fields.
1307 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1308 calculating it here. Set IMG's background_transparent field.
1309 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1310 (enum png_keyword_index): Add PNG_BACKGROUND.
1311 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1312 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1313 (enum gif_keyword_index): Add GIF_BACKGROUND.
1314 (enum gs_keyword_index): Add GS_BACKGROUND.
1315 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
1316 Pre-calculate image background color where necessary.
1317 (x_create_x_image_and_pixmap, xbm_load, gs_load):
1318 Use display info's n_cbits entry for screen depth.
1319 (Fx_show_tip): Remove unused variables `buffer', `top',
1320 `left', `max_width' and `max_height'.
1322 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
1324 2001-11-18 Gerd Moellmann <gerd@gnu.org>
1326 * puresize.h (BASE_PURESIZE): Increase to 750000.
1328 2001-11-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1330 * frame.c (Fframe_live_p): Doc fix.
1332 2001-11-18 Richard M. Stallman <rms@gnu.org>
1334 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
1335 (message_dolog_marker3): New static variables hold three markers.
1336 (syms_of_xdisp): Initialize and staticpro them.
1337 (message_dolog): Use message_dolog_marker1..3 instead of
1338 allocating markers each time. Unchain them when done.
1340 2001-11-17 Richard M. Stallman <rms@gnu.org>
1342 * doc.c (Fsnarf_documentation): Doc fix.
1344 2001-11-17 Andreas Schwab <schwab@suse.de>
1346 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
1348 2001-11-17 Richard M. Stallman <rms@gnu.org>
1350 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
1352 2001-11-17 Jason Rumney <jasonr@gnu.org>
1354 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
1356 2001-11-17 Gerd Moellmann <gerd@gnu.org>
1358 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
1359 with invalid position.
1361 2001-11-16 Richard M. Stallman <rms@gnu.org>
1363 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
1365 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
1366 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
1367 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
1369 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
1371 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1373 * fileio.c (build_annotations): Split off the tail.
1374 (build_annotations_2): New fun. Extracted from build_annotations.
1375 (Fwrite_region): Split the call to build_annotations into two
1376 calls to build_annotations and build_annotations_2.
1378 2001-11-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1380 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
1381 clear_waiting_for_input with argument.
1383 * xterm.h (x_update_cursor): Remove duplicated prototype.
1385 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
1387 * xterm.c (waiting_for_input): Remove unnecessary declaration.
1389 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
1391 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1393 * fileio.c (choose_write_coding_system): New fun, extracted
1395 (Fwrite_region): Use it.
1397 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
1398 (funcall_lambda, run_hook_with_args): Make static and add prototype.
1399 (ml_apply, find_handler_clause): Add prototype.
1401 2001-11-16 Eli Zaretskii <eliz@gnu.org>
1403 * config.in: Add #undef HAVE_COFF_H.
1405 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
1406 Required for ISC 4.1.
1408 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
1410 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
1411 Andrew Wiseman <a.wiseman@btclick.com>.
1413 2001-11-16 Kim F. Storm <storm@cua.dk>
1415 The following changes are made to clean up the various internal
1416 references to the fringes to actually use the term `fringe' for
1417 them. Previously, they were called `flags areas', `bitmap areas',
1418 `left/right side of windows', or implicitly as `flags' or
1421 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
1422 Comments fixed. Use renamed symbols.
1424 * dispnew.c: Comment fix. Use renamed symbols.
1426 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
1427 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
1428 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
1430 * msdos.c: Comment fix.
1432 * w32fns.c: Use renamed symbols.
1434 * w32term.c: Comment fixes. Use renamed symbols.
1435 (fringe_bitmap_type): Renamed from bitmap_type.
1436 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1437 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
1438 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1440 * w32term.h: Comment fixes. Use renamed symbols.
1441 (fringes_extra): Renamed from flags_areas_extra.
1442 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1443 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1444 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1445 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
1446 (FRAME_X_LEFT_FRINGE_WIDTH):
1447 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1448 (FRAME_X_RIGHT_FRINGE_WIDTH):
1449 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1451 * widget.c: Use renamed symbols.
1453 * window.c: Comment fixes. Use renamed symbols.
1454 (coordinates-in-window-p): Doc fix.
1456 * xdisp.c: Comment fixes. Use renamed symbols.
1458 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
1460 * xfns.c: Use renamed symbols.
1462 * xterm.c: Comment fixes. Use renamed symbols.
1463 (fringe_bitmap_type): Renamed from bitmap_type.
1464 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1465 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
1466 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1468 * xterm.h: Comment fixes. Use renamed symbols.
1469 (fringes_extra): Renamed from flags_areas_extra.
1470 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1471 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1472 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1473 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
1474 (FRAME_X_LEFT_FRINGE_WIDTH):
1475 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1476 (FRAME_X_RIGHT_FRINGE_WIDTH):
1477 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1479 2001-11-15 Jason Rumney <jasonr@gnu.org>
1481 * w32menu.c (add-menu-item): Make help_echo and radio buttons
1482 work for most menu items. From David Ponce
1483 <david.ponce@wanadoo.fr>.
1485 2001-11-15 Gerd Moellmann <gerd@gnu.org>
1487 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
1488 Some x_set_* function expect to be called even if old and new
1491 * xdisp.c (build_desired_tool_bar_string): Accept zero
1492 tool_bar_button_relief.
1494 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
1496 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
1498 * xterm.c (x_draw_bar_cursor): If the background color of the
1499 glyph under the cursor equals the frame's cursor color, use
1500 the glyph's foreground color for drawing the bar cursor.
1502 * dispnew.c (direct_output_forward_char): Fix character/byte
1503 position comparison.
1505 2001-11-15 Miles Bader <miles@gnu.org>
1507 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
1508 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
1509 Update arguments to find_field.
1510 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
1511 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
1512 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
1513 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
1515 2001-11-14 Richard M. Stallman <rms@gnu.org>
1517 * editfns.c (Fpropertize): Allow call with 1 arg.
1519 * dispextern.h (image_background, image_background_transparent):
1520 Conditionalize on HAVE_X_WINDOWS.
1522 2001-11-13 Richard M. Stallman <rms@gnu.org>
1524 * print.c (Fprin1_to_string): Doc fix.
1526 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
1528 * floatfns.c (Fceiling, Ffloor): Doc fixes.
1530 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
1532 * fileio.c (Ffile_accessible_directory_p): Doc fix.
1534 * eval.c (syms_of_eval): Doc fix.
1536 * coding.c (syms_of_coding): Doc fix.
1538 * doc.c (Fsnarf_documentation): Doc fix.
1540 * dispnew.c (syms_of_display): Doc fix.
1542 * category.c (Fget_unused_category): Doc fix.
1544 * buffer.c (syms_of_buffer): Doc fixes.
1546 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
1548 * print.c (prin1, print): Doc fix.
1550 2001-11-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1552 * fontset.h: Remove declarations of variables
1553 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
1555 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
1556 `Vclip_large_size_font'.
1558 2001-11-13 Jason Rumney <jasonr@gnu.org>
1560 * w32fns.c: Doc fix.
1562 2001-11-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1564 * xfaces.c (Fface_attributes_as_vector): Doc fix.
1566 * w32fns.c (Fx_synchronize): Reindent.
1572 * coding.c: Doc fix.
1574 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
1575 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
1576 `new style' [w/`doc:' keyword].
1578 * xmenu.c (x-popup-menu): Reindent.
1579 (x-popup-dialog): Likewise.
1581 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
1583 * xdisp.c (Fdump_tool_bar_row): Reindent.
1585 * minibuf.c (Fminibuffer_complete_word): Reindent.
1586 (Fminibuffer_complete_and_exit): Likewise.
1587 (Fminibuffer_completion_help): Likewise.
1588 (Fminibuffer_message): Likewise.
1590 * fns.c (Freverse): Reindent.
1592 * eval.c (Fif): Reindent.
1595 * editfns.c (Fuser_real_login_name): Reindent.
1596 (Finsert_buffer_substring): Likewise.
1597 (Fcompare_buffer_substrings): Likewise.
1598 (Fsubst_char_in_region): Likewise.
1600 * dispnew.c (Fsit_for): Reindent.
1601 (Fframe_or_buffer_changed_p): Likewise.
1602 (Finternal_show_cursor_p): Likewise.
1603 (syms_of_display): Likewise.
1605 * alloc.c (Flist): Reindent.
1606 (Fvector): Likewise.
1608 2001-11-12 Richard M. Stallman <rms@gnu.org>
1610 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
1611 LeaveNotify events. Only FocusIn and FocusOut do that now.
1612 (x_display_and_set_cursor): Do display hollow cursors in active
1613 minibuffer windows when they are not selected.
1615 2001-11-12 Jason Rumney <jasonr@gnu.org>
1617 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1618 * w32term.c: Change doc-string comments to `new style'.
1619 [w/`doc:' keyword]. Doc fixes.
1621 * w32fns.c: Don't define max.
1622 (Fx_open_connection): Only execute once.
1624 2001-11-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1626 * ccl.c: Change macros to use do-while block instead of if-else.
1627 Use braces to follow GNU Coding Standards.
1629 2001-11-11 Richard M. Stallman <rms@gnu.org>
1631 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
1633 * lread.c (read_escape): Use end_of_file_error for reporting eof.
1635 * insdel.c (replace_range): Use adjust_markers_for_replace
1636 instead of adjust_markers_for_delete and adjust_markers_for_insert.
1638 * intervals.h: Declare set_text_properties and set_text_properties_1.
1640 * textprop.c (set_text_properties_1): New subroutine
1641 broken out of set_text_properties.
1642 (set_text_properties): Use set_text_properties_1.
1644 * intervals.c (graft_intervals_into_buffer):
1645 Use set_text_properties_1 to clear out properties.
1647 * search.c (Freplace_match): Use replace_range to insert
1648 and delete. Don't request property inheritance from
1651 2001-11-10 Jason Rumney <jasonr@gnu.org>
1653 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
1654 vertical fonts. Allow them if face name is explicitly specified.
1655 Do not give up if we find a font that cannot be converted to an xlfd.
1657 2001-11-10 Gerd Moellmann <gerd@gnu.org>
1659 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
1660 instead of malloc/free.
1662 2001-11-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1664 * xfaces.c (merge_face_vectors): Use braces to follow GNU
1666 (Finternal_set_lisp_face_attribute): Likewise.
1668 * buffer.c (Fbury_buffer): Likewise.
1670 * indent.c (current_column_1): Remove unused variable `prev_col'.
1672 * coding.c (encode_coding): Use precomputed value of `src'.
1673 (encode_coding): Remove unused variable `src_end'.
1674 (code_convert_region): Remove unused variables `count'.
1676 2001-11-07 Jason Rumney <jasonr@gnu.org>
1678 * w32term.c (x_display_and_set_cursor): Do not move system caret
1679 if cursor_glyph is NULL.
1681 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1683 * keymap.c (access_keymap): Fix compilation error.
1685 2001-11-07 Miles Bader <miles@gnu.org>
1687 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
1689 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1691 * intervals.c (graft_intervals_into_buffer):
1692 Remove #ifdef'd-out code.
1693 (graft_intervals_into_buffer): Remove unused variable `middle'.
1695 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
1696 code (eval-current-buffer).
1697 Change doc-string comments to `new style' [w/`doc:' keyword].
1699 2001-11-06 Richard M. Stallman <rms@gnu.org>
1701 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
1703 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
1705 * lread.c (read1): Fix behavior with nested backquoting.
1707 * keyboard.c (make_lispy_event): Check integerness and fix
1708 Lisp_Object/int mixup.
1710 2001-11-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1712 * fns.c (copy_hash_table): Remove unused variable `v'.
1714 * fontset.c (fontset_font_pattern): Remove unused variable
1717 * indent.c (current_column_1): Remove unused variable `prev_col'.
1719 2001-11-05 Richard M. Stallman <rms@gnu.org>
1721 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
1723 * buffer.c (Fkill_buffer): Don't delete auto save file
1724 if buffer is modified.
1726 2001-11-05 Andrew Innes <andrewi@gnu.org>
1728 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
1731 2001-11-05 Richard M. Stallman <rms@gnu.org>
1733 * unexelf.c (unexec): Minor changes; clean up comments.
1735 2001-11-05 Sam Steingold <sds@gnu.org>
1737 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
1739 2001-11-05 Andreas Schwab <schwab@suse.de>
1741 * sound.c (sound_perror): Save errno from being clobbered.
1743 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
1745 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
1746 the program image directly.
1748 2001-11-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1750 * buffer.h (Fbuffer_local_value): Add prototype.
1752 2001-11-04 Richard M. Stallman <rms@gnu.org>
1754 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
1757 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
1758 (record_char): Likewise.
1760 * keyboard.c (make_lispy_event): Don't insist a drag event must
1761 move to a different buffer position. Instead, check for moving at
1762 least double_click_fuzz.
1764 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
1766 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
1768 * indent.c (current_column_1, Fmove_to_column): Separate the code
1769 for display-table glyphs from the code buffer text, to fix
1772 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
1774 * buffer.c (Fbuffer_local_value): New function.
1775 (syms_of_buffer): Defsubr it.
1777 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
1778 value of `cursor-in-non-selected-windows'.
1780 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
1781 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
1782 (syms_of_xdisp): Initialize it.
1784 2001-11-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1786 * xfns.c (Fx_create_frame): Doc fix.
1788 * coding.c: Change doc-string comments to `new style' [w/`doc:'
1791 * eval.c (top_level_value, top_level_set): Remove commented and
1793 (Fdefvar): Fix usage in doc-string.
1795 2001-11-03 Richard M. Stallman <rms@gnu.org>
1797 * xfns.c: Include unistd.h, if it exists.
1799 * editfns.c: Move the include of ctype.h after unistd.h.
1801 * gmalloc.c: Test BROKEN_PROTOTYPES.
1803 2001-11-03 Ken Raeburn <raeburn@gnu.org>
1805 * lisp.h (CHECK_STRING_CAR): New macro.
1806 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
1807 treating XCAR and XCDR as lvalues.
1808 (openp): Use CHECK_STRING_CAR.
1809 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
1811 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
1813 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
1814 (SIGMASKTYPE): Define.
1816 * syssignal.h (sigunblock): Don't define if already defined.
1818 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1820 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
1821 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1822 Fix typos in comments.
1824 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
1825 and #ifdef'd-out code.
1826 Fix and reindent comments.
1828 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
1830 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
1831 argument `i' in macros.
1833 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
1836 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
1837 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
1838 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
1839 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
1840 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
1841 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
1842 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
1843 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
1846 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
1847 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
1848 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
1849 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
1850 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
1851 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
1852 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
1853 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
1854 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
1855 (remove unused second argument).
1857 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
1859 * syntax.c (describe_syntax): New wrapper.
1860 (Finternal_describe_syntax_value): Rename from describe_syntax.
1861 Don't insert space at front and \n at the end.
1862 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
1864 * regex.c (re_wctype): Try to fix some warnings.
1865 (regcomp, regexec): Don't forget the __restrict.
1867 2001-11-02 Richard M. Stallman <rms@gnu.org>
1869 * textprop.c (Fget_char_property): Doc fix.
1871 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1873 * process.c (Fstart_process): Add usage to doc-string.
1875 * data.c (Fsetq_default): Ditto.
1877 * callint.c (Finteractive): Ditto.
1879 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
1881 * macros.c: Don't include keymap.h any more.
1883 2001-11-01 Richard M. Stallman <rms@gnu.org>
1885 * data.c (Fmake_local_variable): Doc fix.
1887 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
1888 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
1890 * keymap.c (Fdescribe_buffer_bindings): Print character property
1891 bindings along with or instead of the buffer local map.
1892 Make the overriding maps override what they should.
1894 2001-11-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1896 * window.c (grow_mini_window): Fix typo in comment.
1898 2001-11-01 Gerd Moellmann <gerd@gnu.org>
1900 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
1901 (XTset_vertical_scroll_bar): Likewise.
1903 * xfns.c (x_build_heuristic_mask): Use four_corners_best
1904 instead of IMAGE_BACKGROUND.
1906 * xfns.c (four_corners_best): Reindent.
1908 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
1909 Handle :box so that it is possible to specify sexprs.
1911 2001-11-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1913 * xfaces.c (Finternal_merge_in_global_face): Reindent.
1914 (Fface_font): Ditto.
1915 (Finternal_set_alternative_font_registry_alist): Ditto.
1916 (Ftty_suppress_bold_inverse_default_colors): Ditto.
1918 * xfns.c (x-get-resource): Reindent.
1920 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
1922 * s/hpux11.h: New file.
1924 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1926 * emacs.c (USAGE1): Show command line option --no-window-system
1927 instead of --no-windows in usage.
1928 (standard_args): Rename --no-windows to --no-window-system.
1929 (bug_reporting_address): Follow Emacs coding conventions.
1931 * eval.c (Fcommandp): Doc fix.
1932 Change doc-string comments to `new style' [w/`doc:' keyword].
1934 * frame.c (Fframe_live_p): Doc fix.
1936 * buffer.c (selective-display-ellipses): Doc fix.
1938 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1940 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
1942 * xfaces.c (realize_x_face): If C is not a single-byte character,
1943 set the face's colors_copied_bitwise_p instead of the defaulted_p
1944 members which have a different meaning.
1945 (free_face_colors): Do nothing for a face whose colors have been
1948 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
1950 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1952 * marker.c, mocklisp.c: Change doc-string comments to `new style'
1955 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1957 * fns.c (require_unwind): Return Lisp_Object.
1959 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1961 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
1962 (last-input-char): Revert doc-string to be the same as the
1963 doc-string of `last-input-event'.
1965 * xdisp.c: Fix typos in comments.
1967 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1969 * window.c (grow_mini_window): Handle case that the root
1970 window is already smaller than the nominal mininum height.
1972 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
1974 * emacs.c (main): Don't call keys_of_macros any more.
1976 * lisp.h (keys_of_macros): Remove.
1978 * macros.c (keys_of_macros): Remove.
1980 * xfaces.c (Fface_attribute_relative_p): Declare args.
1982 2001-10-30 Jason Rumney <jasonr@gnu.org>
1984 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
1985 (enum_font_cb2): Ignore fonts with vertical orientation.
1987 2001-10-30 Richard M. Stallman <rms@gnu.org>
1989 * keyboard.c (Finput_pending_p): Doc fix.
1991 2001-10-30 Gerd Moellmann <gerd@gnu.org>
1993 * xterm.c (x_after_update_window_line): Don't run the code
1994 clearing in borders for rows whose visible height is 0.
1996 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
1997 resized_p flag is set. If not set, use the much less flickering
1998 method previously used.
2000 * dispnew.c (change_frame_size_1): Set frame's resized_p.
2002 * frame.h (struct frame) <resized_p>: New member.
2004 * lread.c (to_multibyte): Ensure read_buffer is at least twice
2005 as large as the number of bytes to convert.
2007 * lread.c (to_multibyte): New function.
2010 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
2012 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
2014 2001-10-30 Gerd Moellmann <gerd@gnu.org>
2016 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
2017 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
2018 if the row's fill_line_p is set and drawing the last glyph with
2019 DRAW_IMAGE_{RAISED,SUNKEN}.
2021 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
2023 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
2025 * xmenu.c: Include coding.h and charset.h.
2026 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
2027 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
2028 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
2029 Explicitly set wv->help. Use `TRUE' rather than `True'.
2030 (menu_help_callback): Use empty_string.
2032 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
2033 (Fx_popup_dialog): Explicitly init f.
2034 (w32_menu_display_help): Use empty_string.
2036 2001-10-29 Richard M. Stallman <rms@gnu.org>
2038 * fns.c (Frequire): Detect recursive try to require the same
2039 feature 3 or more levels deep, and get error.
2040 (require_unwind): New subroutine.
2041 (require_nesting_list): New variable.
2042 (syms_of_fns): Init and staticpro it.
2044 * print.c (print_object): Clarify indication of insertion type.
2046 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
2048 * coding.c (syms_of_coding): Document that locale-coding-system is
2049 used for decoding input on X.
2051 * window.c (Fscroll_left, Fscroll_right): Doc fix.
2053 2001-10-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2055 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
2056 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
2058 2001-10-29 Gerd Moellmann <gerd@gnu.org>
2060 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
2061 use NO_CURSOR if cursor_in_non_selected_windows is false.
2063 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
2064 the slant attribute if FRAME is t.
2066 * xfns.c (x_set_internal_border_width): Set frame garbaged
2067 when X window doesn't exist yet.
2069 * xterm.c (x_after_update_window_line): Clear internal border
2070 in different circumstances.
2072 * xterm.c (XTread_socket) <KeyPress>: Don't use
2073 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
2076 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
2078 * m/ibms390.h: New file. From Adam Thornton
2079 <athornton@sinenomine.net>.
2081 2001-10-28 Gerd Moellmann <gerd@gnu.org>
2083 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
2085 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
2088 2001-10-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2090 * emacs.c: Use argv[0] instead of emacs when -t was specified.
2092 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
2094 Fix typos in comments.
2096 * emacs.c (bug_reporting_address): New function.
2097 Use it when displaying usage message.
2099 * minibuf.c (read_minibuf): Remove unused external declaration of
2100 variable `Qread_only'.
2102 * keymap.c (access_keymap): Remove unused variable `charset'.
2104 2001-10-28 Miles Bader <miles@gnu.org>
2106 * xfaces.c (merge_face_heights): Handle TO being relative as well.
2107 Remove #ifdef'd-out code.
2108 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
2109 (syms_of_xfaces): Initialize them.
2111 2001-10-27 Jason Rumney <jasonr@gnu.org>
2113 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
2114 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
2115 position using the system caret.
2117 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
2118 (w32_system_caret_height, w32_system_caret_x)
2119 (w32_system_caret_y): New variables for tracking system caret.
2120 (w32_initialize): Initialize them.
2121 (x_display_and_set_cursor): Make system caret follow the active cursor.
2123 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
2126 * w32term.c (note_mouse_highlight): Clear old help_echo.
2128 2001-10-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2130 * xterm.c: Fix typo in a comment.
2132 * emacs.c: Fix typos in comments.
2133 Remove unnecessary spaces.
2134 Change doc-string comments to `new style' [w/`doc:' keyword].
2135 (USAGE2): Fix typos in usage string.
2137 * xterm.c: Fix typo in a comment.
2139 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
2142 2001-10-27 Gerd Moellmann <gerd@gnu.org>
2144 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
2145 instead of 1/2 line_height in the heuristic for skipping
2146 farther backward when target_y was not reached.
2148 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
2149 Display errno only if non-zero.
2150 (sound_warning): New function.
2151 (vox_configure): Don't treat failing to set sample rate as error.
2152 (various places): Improve error messages.
2154 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
2156 * fileio.c (Faccess_file): Run the argument filename through
2157 Fexpand_file_name, before using it.
2159 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
2160 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
2162 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2164 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
2166 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2167 Fix clearing in the case of scroll bars on the right.
2169 2001-10-26 Juanma Barranquero <lektu@terra.es>
2171 * w32gui.h (XImage): Add a dummy typedef.
2173 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2175 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
2177 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
2179 * frame.c (Fframe_parameter): Fix last change.
2181 * fileio.c: Revert last change (which removed old commented-out
2182 version of expand-file-name). Add a comment that explains why
2183 this old version should not be removed.
2185 2001-10-25 Gerd Moellmann <gerd@gnu.org>
2187 * frame.c (Fframe_parameter): Fix a bug whereby some
2188 ``artificial'' frame parameters, like `minibuffer' were not
2189 obtained by calling Fframe_parameters.
2191 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
2194 * xdisp.c (move_it_vertically_backward): Compute line height
2195 differently. Add heuristic to try to be more compatible to 20.x.
2197 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
2199 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
2201 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
2204 2001-10-25 Miles Bader <miles@gnu.org>
2206 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
2207 BG is a pointer to a structure, not a structure.
2208 (gif_format, png_format): Add missing commas.
2210 2001-10-24 Richard M. Stallman <rms@gnu.org>
2212 * xfaces.c (Fface_attributes_as_vector): New function.
2213 (syms_of_xfaces): Defsubr it.
2215 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2217 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
2220 2001-10-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2222 * search.c (scan_newline): Remove unused variable `selective_display'.
2224 2001-10-25 Miles Bader <miles@gnu.org>
2226 * dispextern.h (struct image): Add `background',
2227 `background_valid', and `background_transparent' fields.
2228 (image_background, image_background_transparent): New declarations.
2229 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
2230 * xfns.c (image_background, image_background_transparent)
2231 (four_corners_best): New functions.
2232 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2233 (gs_format): Add `:background' entry.
2234 (lookup_image): Set IMG's background color if specified.
2235 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2237 (x_clear_image_1): Reset `background_valid' and
2238 `background_transparent_valid' fields.
2239 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2240 calculating it here. Set IMG's background_transparent field.
2241 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2242 (enum png_keyword_index): Add PNG_BACKGROUND.
2243 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2244 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2245 (enum gif_keyword_index): Add GIF_BACKGROUND.
2246 (enum gs_keyword_index): Add GS_BACKGROUND.
2247 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2248 Pre-calculate image background color where necessary.
2249 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2250 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2251 color to use for image glyph reliefs.
2253 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2255 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
2258 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2259 Fix clearing of area not covered by scroll bar.
2261 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2263 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
2265 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2266 (glyph_rect): Remove unused variable `area'.
2268 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2270 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
2272 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
2273 (row_containing_pos): Take additional argument DY.
2274 Treat rows ending in middle of char differently.
2275 (display_line): Handle tabs on window systems differently.
2277 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
2278 with additional argument.
2280 * dispextern.h (row_containing_pos): Adjust prototype.
2282 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
2283 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
2284 (try_window_id, try_window_reusing_current_matrix)
2285 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
2286 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
2288 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2290 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
2292 (HAVE_BOXES): Fix typo in comment.
2293 (push_menu_pane): Fix typo in comment.
2295 * xdisp.c: (display_prop_string_p): Remove unused local declaration
2297 (single_display_prop_string_p): Remove unused local declarations
2298 of `Qwhen' and `Qmargin'.
2299 (string_buffer_position): Remove unused variable `around'.
2300 (store_frame_title): Remove unused variable `width'.
2302 * window.c: Don't define max.
2303 (coordinates_in_window): Remove unused variable `uy'.
2305 * widget.c: Don't define max.
2307 * process.c: Don't define max.
2308 (create_process): Remove unused variable `buffer'.
2310 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2312 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
2314 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
2316 * xfaces.c (Finternal_set_lisp_face_attribute)
2317 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
2318 frame is on a windowed display.
2320 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2322 * dispnew.c (sync_window_with_frame_matrix_rows):
2323 Fix handling of windows which aren't full-width, fix handling
2326 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
2328 2001-10-23 Andreas Schwab <schwab@suse.de>
2330 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
2331 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
2333 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2335 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
2336 REAL_END. Notice if cursor gets overwritten.
2337 (notice_overwritten_cursor): Take X positions as parameters.
2338 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
2339 around call to x_draw_glyphs.
2341 2001-10-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2343 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
2344 instead of C) and usage.
2346 * editfns.c (char-to-string): Fix argument names (use CHAR instead
2349 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
2350 `left', `max_width' and `max_height'.
2352 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2354 * xdisp.c (display_line): For a tab continued to the next line,
2355 set row's ends_in_middle_of_char_p.
2357 2001-10-22 Gerd Moellmann <gerd@gnu.org>
2359 * xdisp.c (display_line): Fix computation of continuation lines
2362 2001-10-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2364 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
2367 * fileio.c: Remove unused code.
2369 2001-10-22 Miles Bader <miles@gnu.org>
2371 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2372 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
2373 Remove `DOC_STRINGS_IN_COMMENTS' cases.
2375 2001-10-21 Jason Rumney <jasonr@gnu.org>
2377 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
2379 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
2381 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
2382 (Finsert_string): Avoid the multi-line string literals warning.
2384 2001-10-22 Miles Bader <miles@gnu.org>
2386 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
2387 (Fdocumentation): Don't use it.
2388 (syms_of_doc): Don't initialize it.
2390 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
2391 * print.c (Fwith_output_to_temp_buffer): Likewise.
2392 * window.c (Fsave_window_excursion): Likewise.
2393 * editfns.c (Fsave_excursion, Fsave_current_buffer)
2394 (Fsave_restriction): Likewise.
2395 * eval.c (Frun_hooks, Frun_hook_with_args)
2396 (Frun_hook_with_args_until_failure)
2397 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
2398 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
2399 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
2400 (Funwind_protect, Fcondition_case): Likewise.
2401 * coding.c (Ffind_operation_coding_system): Likewise.
2402 * keyboard.c (Ftrack_mouse): Likewise.
2404 2001-10-21 Miles Bader <miles@gnu.org>
2406 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
2407 (Fmake_hash_table): Add usage: string to doc string.
2408 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
2409 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
2410 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
2411 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
2412 (Fml_prefix_argument_loop): Likewise.
2414 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2416 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
2418 * sysdep.c (init_sys_modes): Change doc-string comments to `new
2419 style' [w/`doc:' keyword].
2421 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
2422 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
2423 comments to `new style' [w/`doc:' keyword].
2425 2001-10-21 Jason Rumney <jasonr@gnu.org>
2427 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
2429 * w32term.c (remember_mouse_glyph): New function.
2430 (w32_mouse_position): Use it.
2431 (note_mouse_movement): If the mouse moved off the glyph, remember
2434 * w32term.h (struct w32_output): Correct spelling of x_compatible.
2435 (w32_display_info): Add mouse_face_overlay.
2437 * w32term.c (notice_overwritten_cursor): Renamed from
2438 note_overwritten_text_cursor. Rewritten to take glyph widths into
2440 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2441 (fast_find_string_pos): New function.
2442 (fast_find_position): Return the correct vpos. Add parameter
2443 STOP. In the final row, stop before glyphs having STOP as object.
2444 Don't consider glyphs that are not from a buffer.
2445 (fast_find_position) [0]: Add a presumably more correct version
2447 (expose_window_tree, expose_frame): Don't compute intersections here.
2448 (expose_window): Do it here instead.
2449 (expose_window_tree, expose_window, expose_line): Return 1 when
2450 overwriting mouse-face.
2451 (expose_window): If W is the window currently being updated, mark
2453 (expose_frame): If mouse-face was overwritten, redo it.
2454 (x_use_underline_position_properties): New variable.
2455 (syms_of_xterm): DEFVAR_BOOL it.
2456 (x_draw_glyph_string): Add comment to use it in future.
2457 (x_draw_glyph_string): Restore clipping after drawing box.
2458 Fix a computation of the underline position.
2459 (w32_get_glyph_string_clip_rect): Minor cleanup.
2460 (x_fill_stretch_glyph_string): Remove an assertion.
2461 (x_produce_glyphs): Don't convert multibyte characters
2462 to unibyte characters in unibyte buffers.
2463 (cursor_in_mouse_face_p): New function.
2464 (x_draw_stretch_glyph_string): Use it to choose a different GC
2465 when drawing a cursor within highlighted text. Don't draw
2466 background again if it has already been drawn.
2467 (x_draw_glyph_string_box): Don't draw a full-width
2468 box just because the glyph row's full_width_p flag is set.
2469 (x_draw_glyphs): Fix computation of rightmost x for
2471 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2472 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
2473 change bottom shadow accordingly. Some cleanup.
2474 (x_update_window_end): Handle overwritten mouse face
2475 also for tool bar windows.
2476 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2477 DRAW is DRAW_IMAGE_RAISED.
2478 (clear_mouse_face): Return 1 if text with mouse face was
2479 actually redrawn. Make the function static. Reset
2480 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
2481 optimize away highlighting if we pass over that same overlay again.
2482 (note_mouse_highlight): Call mouse_face_overlay_overlaps
2483 to detect a case where we have to highlight a different region
2484 despite not having left the currently highlighted region.
2485 Set mouse_face_overlay in the x_display_info. Avoid changing the
2486 mouse pointer shape when show_mouse_face has already done it, or
2487 there is no need. Handle mouse-face and help-echo in strings.
2488 (glyph_rect): New function.
2489 (w32_mouse_position): Use it to raise the threshold for mouse
2490 movement event generation.
2491 (w32_initialize_display_info): Initialize the x_display_info's
2493 (w32_set_vertical_scroll_bar): Don't clear a zero height
2495 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2496 a widget to zero height.
2498 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
2499 Protect unibyte strings created by replacing their multibyte
2500 equivalents in menu_items.
2501 (w32_menu_show): Don't overwrite an item's name with its key
2502 description in case the description is a multibyte string.
2503 (single_submenu): Some cleanup.
2505 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
2506 (postprocess_image): New function.
2507 (lookup_image): Call it for all image types except PostScript.
2508 (x_kill_gs_process): Call postprocess_image.
2509 (tiff_error_handler, tiff_warning_handler): New functions.
2510 (tiff_load): Install them as handlers.
2511 (x_kill_gs_process): Recognize if someone has cleared the image
2513 (valid_image_p): Protect better against invalid image
2514 specifications. Previous code could signal an error.
2515 (Fx_hide_tip, Fshow_tip): Doc fix.
2516 (Fv_max_tooltip_size): New variable.
2517 (syns_of_xfns): DEFVAR_LISP it.
2518 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
2519 window buffer to *tip* right after creating the frame. Set frame's
2520 window_width. Use a maximum tooltip size specified by
2521 Vx_max_tooltip_size, if that has valid contents.
2522 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2523 Make sure the tooltip is completely visible.
2524 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2525 (Fx_create_frame): Adjust the frame's height for presence
2526 of the tool bar before calling x_figure_window_size.
2527 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
2528 when the window gets smaller.
2529 (x_set_foreground_color): Set frame's cursor_pixel.
2530 (x_set_foreground_color, x_set_background_color): Cleaned up.
2531 (x_set_font): Handle case of x_new_fontset returning the same name
2532 as before, although there was a change in fontsets.
2534 2001-10-21 Miles Bader <miles@gnu.org>
2536 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
2537 (Flogxor): Add usage: string to doc string.
2538 * charset.c (Fstring): Likewise.
2539 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
2540 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
2542 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2544 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
2546 * alloc.c: Reindent DEFUNs with doc: keywords.
2548 * abbrev.c (Finsert_abbrev_table_description): Reindent.
2550 * frame.c: Change doc-string comments to `new style' [w/`doc:'
2553 2001-10-20 Gerd Moellmann <gerd@gnu.org>
2555 * (Version 21.1 released.)
2557 2001-10-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2559 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
2561 * xdisp.c (invisible_text_between_p): Put prototype inside #if
2564 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
2565 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
2566 Change doc-string comments to `new style' [w/`doc:' keyword].
2568 2001-10-20 Miles Bader <miles@gnu.org>
2570 The following changes remove the glyph_row `inverse_p' field,
2571 which is never set anymore, due to other changes:
2573 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
2574 (reassert_line_highlight, change_line_highlight): Declarations removed.
2575 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
2576 (line_hash_code, row_equal_p, fake_current_matrices)
2577 (build_frame_matrix_from_leaf_window, update_frame_line)
2578 (update_frame_line, update_frame_line, update_frame_line):
2579 Don't use `inverse_p' field.
2580 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
2581 change_line_highlight_hook.
2582 (XTreassert_line_highlight, x_change_line_highlight):
2584 (x_fix_overlapping_area, x_write_glyphs, expose_area)
2585 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2586 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
2588 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
2589 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2590 (w32_reassert_line_highlight, x_change_line_highlight):
2592 * w32console.c (reassert_line_highlight, change_line_highlight):
2594 (initialize_w32_display): Don't set reassert_line_highlight_hook
2595 or change_line_highlight_hook.
2596 (hl_mode): Function removed.
2597 (reset_terminal_modes, set_terminal_modes, update_begin)
2598 (update_end, w32_face_attributes, initialize_w32_display):
2599 (clear_frame, ins_del_lines): Don't call it.
2600 * termhooks.h (reassert_line_highlight_hook)
2601 (change_line_highlight_hook): Declarations removed.
2602 * term.c (reassert_line_highlight_hook)
2603 (change_line_highlight_hook): Variables removed.
2604 (reassert_line_highlight, change_line_highlight): Functions removed.
2605 * msdos.c (IT_reassert_line_highlight)
2606 (IT_change_line_highlight): Functions removed.
2607 (internal_terminal_init): Don't set reassert_line_highlight_hook
2608 or change_line_highlight_hook.
2609 (highlight): Variable removed.
2610 (IT_set_face, IT_update_begin, IT_update_end)
2611 (IT_set_terminal_modes): Don't set or use it.
2613 The following changes remove inverse-video support for terminals
2614 that use a `magic cookie' standout mode. Due to changes in the
2615 way mode-lines are displayed, such support no longer works
2616 anyway, and it's probable that almost no one uses such terminals
2619 * term.c (standout_requested): Variable removed.
2620 (update_end, highlight_if_desired): Don't use it.
2621 (chars_wasted, copybuf): Variables removed.
2622 (write_standout_marker): Function removed.
2623 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
2624 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
2625 Don't use `chars_wasted' or `copybuf'.
2626 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
2627 Set `costs_set' to true.
2628 (cursor_to, clear_end_of_line): Test `costs_set' instead of
2630 (clear_end_of_line): Function removed.
2631 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
2632 (clear_to_end): Call `clear_end_of_line' instead of
2633 `clear_end_of_line_raw'.
2634 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
2635 (term_init): Don't set them.
2636 Turn off any standout/underline modes that require magic cookies.
2637 (ins_del_lines, highlight_if_desired, background_highlight)
2638 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
2639 Remove special processing for magic-cookie standout modes.
2640 (turn_off_face, turn_on_face): Remove special processing for
2641 underline magic-cookie glitch.
2643 2001-10-19 Richard M. Stallman <rms@gnu.org>
2645 * eval.c (syms_of_eval): Doc fixes.
2647 2001-10-19 Gerd Moellmann <gerd@gnu.org>
2649 * xdisp.c (redisplay_internal): Don't clear echo area if the
2650 mini-window is selected.
2652 2001-10-19 Miles Bader <miles@gnu.org>
2654 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
2655 doesn't take precedence if the affected property's value is nil.
2657 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
2659 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
2660 with fields and suggest using `forward-line' to avoid them.
2661 * editfns.c (Fline_beginning_position, Fline_end_position):
2662 Clarify documentation.
2664 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
2666 * keymap.c (current_minor_maps): `override' only shadows its
2667 correspondent in minor-mode-map-alist, not the whole tail.
2669 2001-10-18 Andrew Innes <andrewi@gnu.org>
2671 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
2672 optimization. The fontp->encoding array was not being initialized
2673 correctly when compiled with optimizations by MSVC.
2675 2001-10-18 Gerd Moellmann <gerd@gnu.org>
2677 * xdisp.c (display_line): Indicate empty lines in active mini-window.
2679 2001-10-17 Andrew Innes <andrewi@gnu.org>
2681 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
2683 * w32fns.c (w32_load_system_font): Cache codepage for font, in
2684 font_info.charset field.
2686 * w32term.c (w32_encode_char): Get cached codepage from font_info,
2687 rather than working it out by calling w32_codepage_for_font for
2690 2001-10-17 Andrew Innes <andrewi@gnu.org>
2692 * w32term.c (w32_read_socket): Determine clipping rectangle for
2693 the entire frame, including areas covered by scrollbars and the
2694 menubar. This avoids internal arguments about whether a frame is
2695 fully obscured or not.
2697 2001-10-17 Gerd Moellmann <gerd@gnu.org>
2699 * xdisp.c (try_window_id): Undo last change. Give up if
2700 window ends in strings.
2702 * xdisp.c (try_window_id): Don't display lines after the window
2703 end if the rest of the window after the window end was already blank.
2705 * xdisp.c (try_window_id): Remove code that was only there
2706 for the release of 21.1.
2708 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
2710 2001-10-17 Miles Bader <miles@gnu.org>
2712 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
2713 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
2714 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
2715 Change doc-string comments to `new style' [w/`doc:' keyword].
2716 (DOC_STRINGS_IN_COMMENTS): Macro removed.
2717 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
2720 2001-10-16 Miles Bader <miles@gnu.org>
2722 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
2724 2001-10-16 Gerd Moellmann <gerd@gnu.org>
2726 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
2729 2001-10-16 Ken Raeburn <raeburn@gnu.org>
2731 Avoid the assumption that car and cdr slots of cons cells are
2732 addressable lvalues; this allows for easier experimentation with
2733 other lisp implementations that may not permit such accesses for
2734 various reasons. Not quite complete -- buffer.c still needs some
2735 work, and w32/mac files need rechecking -- so compile-time
2736 enforcement is left disabled for now.
2738 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
2739 gcc with a union-based Lisp object rep. Redefine as no-op for now.
2740 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
2741 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
2742 (XSETCAR, XSETCDR): New macros.
2743 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
2744 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
2745 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
2746 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
2748 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
2749 * buffer.c (record_buffer, Fbury_buffer)
2750 (swap_out_buffer_local_variables, recenter_overlay_lists)
2751 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
2752 fields of a cons cell respectively.
2753 * callint.c (quotify_args, Fcall_interactively): Likewise.
2754 * ccl.c (Fregister_code_conversion_map): Likewise.
2755 * coding.c (detect_coding_system): Likewise.
2756 * composite.c (get_composition_id, make_composition_value_copy):
2758 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
2759 (swap_in_symval_forwarding, set_internal, Fset_default)
2760 (Fmake_variable_buffer_local, Fmake_local_variable)
2761 (Fmake_variable_frame_local): Likewise.
2762 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
2763 * keymap.c (Fset_keymap_parent, store_in_keymap)
2764 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
2765 * minibuf.c (get_minibuffer): Likewise.
2766 * search.c (Fmatch_data): Likewise.
2767 * textprop.c (extend_property_ranges): Likewise.
2768 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
2769 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
2771 * w32term.c (x_delete_display): Likewise.
2772 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
2774 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
2775 * doc.c (store_function_docstring): Use XSETCARFASTINT.
2776 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
2777 (Fread_file_name): Use XSETCAR.
2778 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
2780 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
2781 * frame.c (Fmake_terminal_frame): Use XSETCDR.
2782 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
2784 * keyboard.c (read_char): Alter list traversal to avoid taking the
2785 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
2786 (parse_menu_item): Use XSETCAR and XSETCDR.
2787 (reach_char_x_menu_prompt): Use XSETCAR.
2788 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
2789 (Fcommand_execute): Use XSETCDR.
2790 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
2791 (openp): Change list traversal to avoid using XCAR as lvalue.
2792 (read_list): Use XSETCDR.
2793 * process.c (wait_reading_process_input): Change wait_for_cell
2794 handling to avoid taking addresses of cons cell slots.
2795 * xselect.c (x_own_selection, x_handle_selection_clear)
2796 (x_clear_frame_selections): Use XSETCDR.
2797 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
2798 (x_handle_property_notify, x_get_foreign_selection)
2799 (x_handle_selection_notify): Use XSETCAR.
2801 2001-10-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2803 * buffer.c: Put doc strings in comments.
2805 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
2807 2001-10-15 Sam Steingold <sds@gnu.org>
2809 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
2811 2001-10-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2813 * process.c (process-inherit-coding-system-flag)
2814 (get-buffer-process): Do not confuse make-docfile with doc strings
2817 * editfns.c (Fchar_to_string): Make doc string consistent with
2818 arguments. Put doc strings in comments.
2820 * abbrev.c, minibuf.c: Put doc strings in comments.
2822 2001-10-15 Gerd Moellmann <gerd@gnu.org>
2824 * window.c (window_loop): Don't check for Fother_buffer returning nil.
2826 * window.c (select_window_1): Unfreeze window start. Remove a
2827 doubled test for WINDOW being live.
2829 2001-10-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2831 * fns.c (Fmapconcat): Fix typo in a doc string.
2833 * dispnew.c (Fsleep_for): Fix typo in a doc string.
2835 2001-10-15 Gerd Moellmann <gerd@gnu.org>
2837 * xterm.c (x_draw_glyph_string): Restore clipping after
2840 2001-10-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2842 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
2844 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
2846 * indent.c (skip_invisible): Use new retval of
2847 TEXT_PROP_MEANS_INVISIBLE.
2849 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
2850 If a parent is reached and noinherit is set, exit immediately.
2851 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
2853 * s/ms-w32.h (EXEC_SUFFIXES):
2854 * s/msdos.h (EXEC_SUFFIXES):
2855 * process.h (EXEC_SUFFIXES): Remove.
2857 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
2858 (decode_suffixes): Remove.
2860 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
2861 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
2862 (invisible_ellipsis_p): Remove.
2864 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
2865 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
2866 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
2867 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
2868 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
2870 2001-10-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2872 * lisp.h (Ftop_level): Add prototype.
2874 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
2875 (XTread_socket): Improve style of comments to follow other
2878 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
2879 is already prototyped in included lisp.h).
2881 * frame.c (Fset_mouse_position): Improve style of comment to
2882 follow other comments.
2883 (Fset_mouse_pixel_position): Improve style of comment to follow
2885 (Fmake_frame_visible): Doc fix and typo in comment.
2886 (Fmake_frame_invisible): Doc fix and typo in comment.
2887 (Ficonify_frame): Fix typo in comment.
2889 2001-10-14 Gerd Moellmann <gerd@gnu.org>
2891 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
2892 * term.c, alloc.c: Put doc strings in comments.
2894 2001-10-13 Gerd Moellmann <gerd@gnu.org>
2896 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
2897 Provide definitions for doc strings in comments.
2899 * fns.c: Put doc strings in comments.
2901 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
2903 * dired.c (file_name_completion): Ignore a candidate directory if
2904 it matches an element in completion-ignored-extensions that ends
2906 (syms_of_dired) <completion-ignored-extensions>: Mention the above
2907 feature in the doc string.
2908 (Ffile_name_completion): Ditto.
2910 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
2912 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
2914 * xfns.c (syms_of_xfns): Update calls to Fprovide.
2916 * lisp.h (Fprovide): Update prototype.
2917 (Ffeaturep, invisible_p): Remove.
2919 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
2920 (DOLIST, LOOP_PROPVAL): New macros.
2921 (invisible_p, invisible_ellipsis_p): Use them.
2922 (invisible_noellipsis_p): New function.
2923 (syms_of_xdisp): Use empty_string.
2925 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
2927 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
2928 (syms_of_lread) <Vafter_load_alist>: Update docstring.
2930 * print.c (Fwith_output_to_temp_buffer): Align with
2931 internal_with_output_to_temp_buffer.
2932 (print_preprocess): Use traverse_intervals_noorder.
2933 (print_object): Update call to traverse_intervals.
2935 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
2936 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
2938 * intervals.c (traverse_intervals_noorder): New function.
2939 (search_for_interval, count_intervals): Use it.
2940 (traverse_intervals): Use less stack space and drop `depth' arg.
2942 * fns.c (Ffeaturep): Add new `subfeature' arg.
2943 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
2944 (Qsubfeatures): New var.
2945 (syms_of_fns): Initialize it.
2947 * keymap.c (Fkey_description): Use empty_string.
2948 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
2949 (syms_of_keymap): Setup inheritance between maps.
2950 Don't export Sdescribe_bindings_internal any more.
2952 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
2954 2001-10-12 Gerd Moellmann <gerd@gnu.org>
2956 * xterm.c (notice_overwritten_cursor): Renamed from
2957 note_overwritten_text_cursor. Rewritten to take glyph widths into
2960 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
2962 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
2963 multi-line strings without a trailing "\n\".
2965 2001-10-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2967 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
2970 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
2972 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
2974 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
2975 * w32proc.c (sys_spawnve):
2976 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
2977 * w32.c (check_windows_init_file):
2978 * sound.c (Fplay_sound):
2979 * emacs.c (init_cmdargs):
2980 * process.c (Fstart_process): Update calls to openp.
2982 * callproc.c (Vexec_suffixes): New var.
2983 (Fcall_process): Update call to openp.
2984 (decode_suffixes): New function.
2985 (syms_of_callproc): Init exec-suffixes.
2987 * lread.c (Vload_suffixes, default_suffixes): New vars.
2988 (openp): Take a lisp list of suffixes.
2989 Check for file-name-handlers even if the file was absolute already.
2990 (syms_of_lread): Declare load-suffixes.
2991 (Fload): Fix up call to openp.
2992 Don't bother checking for file-name-handler at the very beginning.
2994 * keymap.h (Fcopy_keymap): Don't export.
2996 * lisp.h (empty_string): Declare.
2997 (Vload_suffixes, Vexec_suffixes): Declare.
2998 (openp): Update prototype.
3000 * emacs.c (empty_string): New var.
3001 (syms_of_emacs): Initialize it.
3003 * search.c (wordify): Use it.
3005 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
3006 selected window if it's not displayed there. Handle the case
3007 when the window is dedicated.
3008 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
3010 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
3012 * syntax.h (struct gl_state_s): Change the meaning of b_property.
3013 Remove left_ok and right_ok.
3014 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
3015 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
3016 new meaning of b_property.
3018 * syntax.c (update_syntax_table): Simplify.
3019 (Fforward_comment): Don't skip quoted chars when going backward.
3021 2001-10-11 Gerd Moellmann <gerd@gnu.org>
3023 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
3024 in case I is of some unsigned type, in which case
3025 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
3026 comparison becomes bogus.
3028 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
3029 (Fuser_full_name): Fix bug treating a float as a fixnum.
3031 * data.c (Fstring_to_number): Use make_fixnum_or_float.
3033 * lisp.h (make_fixnum_or_float): New macro.
3035 * lisp.h (circular_list_error): Add prototype.
3037 * data.c (Qcircular_list): New variable.
3038 (circular_list_error): New function.
3039 (syms_of_data): Initialize it Qcircular_list.
3041 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
3043 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c
3044 * casefiddle.c, buffer.c: Include keymap.h.
3046 2001-10-10 Gerd Moellmann <gerd@gnu.org>
3048 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
3049 options. From Dave Love <d.love@dl.ac.uk>.
3051 2001-10-09 Gerd Moellmann <gerd@gnu.org>
3053 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
3054 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3056 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
3058 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3060 2001-10-08 Andrew Innes <andrewi@gnu.org>
3062 * lisp.h [max]: Undef min and max before redefining them.
3064 * w32gui.h: Do not undef min and max.
3066 * w32heap.h: Do not undef min and max.
3068 * s/ms-w32.h: Do not undef min and max.
3070 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3072 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
3074 2001-10-08 Sam Steingold <sds@gnu.org>
3076 * keymap.c (current-active-maps): Quote newlines (compilation error).
3078 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
3080 * Makefile.in (lisp, shortlisp): Replace bindings.el with
3081 bindings.elc, since otherwise doc strings in bindings.el get wrong
3084 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3086 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
3088 * keyboard.h (map_prompt): Remove.
3090 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
3091 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
3093 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3095 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3097 * keyboard.c (map_prompt): Remove.
3098 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
3101 * keymap.h: New file. Extracted from lisp.h.
3103 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
3104 (accessible_keymaps_1): New function.
3105 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
3106 (Fwhere_is_internal): Use Fcurrent_active_maps.
3107 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
3108 Insert in current buffer rather than standard-output.
3109 Don't call `help-mode'. Export to elisp.
3110 (describe_buffer_bindings): New wrapper.
3111 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
3112 and Sdescribe_buffer_bindings.
3114 2001-10-08 Gerd Moellmann <gerd@gnu.org>
3116 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3117 Remove code setting signal handler.
3119 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
3120 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
3122 2001-10-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3124 * keyboard.c: Don't define min/max.
3126 2001-10-08 Gerd Moellmann <gerd@gnu.org>
3128 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
3129 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
3130 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
3131 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
3132 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
3133 Don't define min/max.
3135 * lisp.h (min, max): New macros.
3137 * puresize.h (BASE_PURESIZE): Increase to 725000.
3139 2001-10-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3141 * xfaces.c (free_frame_menubar): Add prototype.
3143 * lisp.h (init_window): Add prototype.
3145 * editfns.c: Include ctype.h.
3147 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
3148 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
3149 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
3152 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
3153 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
3154 `popup_activated_flag' and `title'.
3156 * doc.c (Fdocumentation_property): Fix typo in a doc string.
3158 * emacs.c (main): Remove extra `;'.
3160 * atimer.h (struct atimer): Fix typos in a comment.
3162 * atimer.c: Fix typo.
3164 * Makefile.in: Fix typo.
3166 * README: Remove obsolete part mentioning removed VMS file.
3168 2001-10-07 Miles Bader <miles@gnu.org>
3170 * Makefile.in (lisp, shortlisp): Add `button.elc'.
3172 2001-10-07 Ken Raeburn <raeburn@gnu.org>
3174 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
3177 * lisp.h (Ffield_end): Declare.
3179 2001-10-07 Gerd Moellmann <gerd@gnu.org>
3181 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
3183 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
3185 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
3187 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
3189 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
3190 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
3192 * alloc.c (inhibit_garbage_collection): Simplify.
3193 (Fmemory_use_counts): Ditto.
3195 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
3196 (syms_of_data): DEFVAR_INT most-positive-fixnum and
3197 most-negative-fixnum.
3199 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
3200 (FIXNUM_OVERFLOW_P): New macros.
3202 2001-10-06 Miles Bader <miles@gnu.org>
3204 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
3205 scroll_bar_bottom_shadow_pixel fields.
3206 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
3207 for the shadows, and tell the toolkit about them if we succeed.
3208 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
3209 Free scroll-bar shadow colors.
3210 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
3211 Free scroll-bar shadow colors when the background color changes.
3212 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
3213 Initialize scroll-bar shadow-color fields.
3215 2001-10-05 Gerd Moellmann <gerd@gnu.org>
3217 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
3219 2001-10-05 Miles Bader <miles@gnu.org>
3221 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
3222 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
3223 New functions (were in simple.el).
3224 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3225 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
3226 (syms_of_minibuf): Initialize them.
3228 2001-10-05 Gerd Moellmann <gerd@gnu.org>
3230 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
3231 (tiff_load): Install them as error and warning handler.
3233 2001-10-04 Andrew Innes <andrewi@gnu.org>
3235 * w32fns.c (x_to_w32_color): Fix argument to alloca.
3236 (w32_load_system_font): Don't believe what GetLanguageFontInfo
3237 says; query codepage info directly to determine if font is double byte.
3238 (x_to_w32_charset): Handle private format for unknown charsets.
3239 Handle wildcards in charset spec, by ignoring them.
3240 (w32_codepage_for_font): Fix argument to alloca. Don't remove
3241 "*-" prefix from charset.
3242 (x_to_w32_font): Enlarge remainder array for safety. Specifically
3243 handle the truncated font spec form constructed by font_list_1, so
3244 that we correctly identify the charset fields. Don't remove "*-"
3245 prefix from charset.
3246 (w32_list_synthesized_fonts): Fix argument to alloca.
3248 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
3250 * window.h (MINI_WINDOW_P): Use NILP.
3252 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
3254 * termhooks.h (struct input_event): Use proper type for `kind'.
3256 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3258 This handles unknown keysyms better than before. For example,
3259 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
3260 Emacs formerly completely ignored F5. With the change, it derives
3261 a key symbol from the name of the X keysym, `ccaron' in this case.
3262 Reported by Martin Buchholz.
3264 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
3267 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
3268 that EVENT->code isn't a function key, use the keysym's name.
3270 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3272 FOREACH is a macro that should make it easier to loop over Lisp
3273 lists with checks for cycles and proper lists.
3275 * lisp.h (LIST_END_P, FOREACH): New macros.
3277 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3279 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
3280 called for a lost connection. Prevent dumping core in this case.
3281 Instead print the X error, and exit. On user request.
3283 * xterm.c (error_msg): New variable.
3284 (x_fatal_error_signal): New function.
3285 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
3286 as fatal_error_signal_hook around the call to XtCloseDisplay.
3288 * emacs.c (fatal_error_signal_hook): New variable.
3289 (fatal_error_signal): Call that function.
3291 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3293 With this, Emacs prints how much pure storage it will
3294 approximately need in case pure storage overflows while dumping.
3296 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
3298 (init_alloc_once): Initialize new variables.
3299 (PURE_POINTER_P): Use new variables.
3300 (pure_alloc): If pure storage overflows, allocate from the heap.
3301 (check_pure_size): New function.
3302 (Fgarbage_collect): Don't GC if pure storage has overflowed.
3304 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
3305 (check_pure_size): Add prototype.
3307 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
3309 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3311 This adds a post-gc-hook that's run with GC inhibited.
3312 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
3314 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
3315 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
3316 (Fgarbage_collect): Run post-gc-hook.
3318 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3320 This adds `defvaralias' and `indirect-variable'. Changes not
3321 directly related to this feature are there to gain the same
3322 performance again as before variable aliases.
3324 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
3325 code to get and set symbol values, to take defvaralias into account.
3327 (Note: the new `constant' bit-flag in symbols would make it
3328 possible to define arbitrary read-only variables, e.g. with
3331 Documentation is in lispref/variables.texi. Added to NEWS.
3333 * lisp.h (enum symbol_interned): New enumeration.
3334 (struct Lisp_Symbol): Remove member `obarray', add
3335 `indirect_variable', `constant', and `interned'.
3336 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
3337 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
3338 (indirect_variable): Add prototype.
3340 * print.c (print_preprocess, print_object): Test internedness of
3341 symbols differently.
3343 * lread.c (Fintern, Funintern): Set symbol's interned and constant
3345 (init_obarray): Likewise for t and nil.
3347 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3348 (Fdefvaralias): New function.
3349 (specbind): Simplify the test if symbol is a constant.
3350 (syms_of_eval): Defsubr Fdefvaralias.
3352 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3353 (Qcyclic_variable_indirection): New variable.
3354 (Fkeywordp): Check for internedness differently.
3355 (Fmakunbound): Simplify the test if symbol is a constant.
3356 (indirect_variable, Findirect_variable): New functions.
3357 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
3359 (let_shadows_buffer_binding_p): Check for variable aliases.
3360 (set_internal): Simplify the test if SYMBOL is a constant.
3361 If SYMBOL has a buffer-local value and is an alias, use the aliased
3363 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
3366 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
3367 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
3370 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
3372 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
3373 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
3374 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
3376 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3380 2001-10-03 Miles Bader <miles@gnu.org>
3382 * callproc.c (syms_of_callproc): Explicitly state in the
3383 documentation for `process-environment' that earlier entries take
3384 precedence over later ones.
3386 2001-10-02 Miles Bader <miles@gnu.org>
3388 * textprop.c (Fnext_char_property_change)
3389 (Fprevious_char_property_change): Remove reference to non-existant
3390 argument OBJECT from doc-string.
3392 2001-10-01 Gerd Moellmann <gerd@gnu.org>
3394 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
3395 (try_window_id): Skip back over lines ending in a newline from a
3398 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
3401 2001-10-01 Richard M. Stallman <rms@gnu.org>
3403 * search.c (Freplace_match): Doc fix.
3405 2001-09-28 Andrew Innes <andrewi@gnu.org>
3407 * w32menu.c (set_frame_menubar): Take into account that
3408 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3411 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
3413 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
3415 2001-09-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3417 * s/gnu-linux.h: Fix a typo in comment.
3419 2001-09-28 Andreas Schwab <schwab@suse.de>
3421 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
3422 nocombreloc, in case -z combreloc is the default.
3424 2001-09-28 Gerd Moellmann <gerd@gnu.org>
3426 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
3427 really going on here.
3429 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
3431 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
3433 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
3435 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
3436 utf-8, menu-bar, and latin-N.
3437 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
3438 unconditionally now.
3439 (lisp): Add latin-N, since they are preloaded.
3441 2001-09-27 Gerd Moellmann <gerd@gnu.org>
3443 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
3444 to the left. Some cleanup.
3446 * xdisp.c (display_mode_element): One more case where a string's
3447 multibyteness should be used for display.
3449 2001-09-26 Gerd Moellmann <gerd@gnu.org>
3451 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
3454 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
3455 of the only temporarily set echoing flag for deciding when
3458 * keyboard.c (echo_kboard): Make externally visible.
3460 * lisp.h (echo_kboard): Declare extern.
3462 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
3463 fonts_changed_p if we need larger matrices due to vscrolling.
3464 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
3465 this round of redisplay if make_cursor_line_fully_visible fails.
3466 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
3467 (try_cursor_movement, try_scrolling): Use them instead of integers.
3469 * dispextern.h (required_matrix_width, required_matrix_height):
3472 * dispnew.c (required_matrix_width, required_matrix_height):
3474 (allocate_matrices_for_window_redisplay)
3475 (allocate_matrices_for_frame_redisplay: Use them.
3476 Remove parameters CH_DIM.
3478 * xdisp.c (display_mode_lines): Temporarily set selected_frame
3479 and selected_window to the frame of the window whose mode-lines
3480 are displayed, and to the window itself.
3481 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
3484 2001-09-25 Gerd Moellmann <gerd@gnu.org>
3486 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
3487 the image cache under us.
3489 * xdisp.c (display_mode_element): If the mode element is a symbol
3490 with a string value, use that string's multibyteness for displaying.
3492 * keyboard.c (read_char): Don't clear a message for a switch-frame
3493 event. From Stefan Monnier <monnier@cs.yale.edu>.
3495 * xterm.c (fast_find_position) [0]: Add a presumably more correct
3496 version for after 21.1.
3498 * xdisp.c (row_containing_pos): Make externally visible.
3500 * dispextern.h (row_containing_pos): Add prototype.
3502 * process.c (send_process): Disable composition if from_byte < 0.
3503 From Kenichi Handa <handa@etl.go.jp>.
3505 2001-09-24 Gerd Moellmann <gerd@gnu.org>
3507 * xterm.c (refreshicon): Function removed.
3509 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
3511 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
3513 * xterm.c (toplevel): Remove includes in #if 0.
3515 * process.c (sigchld_handler) [LINUX]: Don't return from
3516 the signal handler at the end of the loop.
3518 2001-09-21 Gerd Moellmann <gerd@gnu.org>
3520 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
3521 Terminate only if kill returns -1, and errno is ESRCH.
3523 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
3525 * Makefile.in (shortlisp): Add ../lisp/env.elc.
3527 2001-09-20 Gerd Moellmann <gerd@gnu.org>
3529 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
3530 since this function can be called during GC.
3532 * callproc.c (Fcall_process): Handle errors from pipe(2).
3533 (child_setup): Delete code in #ifdef vipc.
3535 2001-09-19 Gerd Moellmann <gerd@gnu.org>
3537 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
3538 (display_mode_element): Display the string from decode_mode_spec
3539 depending on its multibyteness.
3541 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
3543 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
3545 2001-09-18 Gerd Moellmann <gerd@gnu.org>
3547 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
3548 recursive_edit_unwind.
3549 (recursive_edit_unwind): Set kboard state according to
3552 * buffer.c (modify_overlay): Don't do nothing if START == END;
3553 This can still be a modification, for example when an overlay has
3554 a before-string or after-string.
3555 (Fdelete_overlay): Prevent redisplay optimizations when deleting
3556 an overlay with before-string or after-string.
3558 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
3559 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
3561 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
3562 first_unchanged_at_end_row is in front of
3563 last_unchanged_at_beg_row. This code should be removed after the
3566 2001-09-17 Gerd Moellmann <gerd@gnu.org>
3568 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
3569 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
3571 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
3574 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
3576 * dired.c (Ffile_attributes): Doc fix.
3578 2001-09-14 Gerd Moellmann <gerd@gnu.org>
3580 * fileio.c (Ffile_symlink_p): Fix last change.
3582 * filelock.c (current_lock_owner): Fix last change.
3584 2001-09-13 Gerd Moellmann <gerd@gnu.org>
3586 * filelock.c (current_lock_owner): If readlink returns ERANGE,
3587 take that to mean that the buffer is too small.
3589 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
3590 that to mean that the buffer is too small.
3592 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
3593 current buffer's multibyteness when discarding the iterator's
3596 * xfns.c (Fx_window_property): Handle case that property gets
3597 deleted between the two calls to XGetWindowProperty.
3599 2001-09-11 Gerd Moellmann <gerd@gnu.org>
3601 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
3603 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
3604 in addition to read-only.
3606 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
3607 to t in addition to read-only.
3609 * lisp.h (Qinhibit_modification_hooks): Declare.
3611 * insdel.c (Qinhibit_modification_hooks): New variable.
3612 (syms_of_insdel): Initialize and staticpro it.
3614 * textprop.c (verify_interval_modification): Don't run
3615 modification-hooks if inhibit_modification_hooks.
3617 * dispnew.c (set_window_cursor_after_update): Fix code
3618 finding glyph row containing cursor when cursor_in_echo_area
3621 * xdisp.c (init_from_display_pos): Put some code in #if 0.
3622 (add_to_log): Use bcopy instead of strcpy.
3623 (init_from_display_pos): Use an explicit loop over bytes in
3624 overlay strings instead of calling index.
3626 2001-09-10 Gerd Moellmann <gerd@gnu.org>
3628 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
3630 * dispnew.c (direct_output_for_insert): Don't change IT's
3631 stop_charpos to something in front of its current position.
3633 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
3636 2001-09-10 Richard M. Stallman <rms@gnu.org>
3638 * frame.c (Fmouse_position): Doc fix.
3640 2001-09-07 Gerd Moellmann <gerd@gnu.org>
3642 * xdisp.c (init_from_display_pos): Don't compare the result
3643 of calling index with NULL.
3645 2001-09-06 Gerd Moellmann <gerd@gnu.org>
3647 * xfns.c (x_set_background_color): Don't change the colors
3648 of the X window of scroll bar widgets.
3650 2001-09-05 Andrew Innes <andrewi@gnu.org>
3652 * w32fns.c (w32_createwindow): Undo last change.
3654 2001-09-05 Gerd Moellmann <gerd@gnu.org>
3656 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
3658 * xdisp.c (string_buffer_position): Use *single_char_property*
3659 functions instead of the *single_property* functions.
3661 2001-09-04 Andrew Innes <andrewi@gnu.org>
3663 * w32term.c (w32_read_socket): Add more information to debugging
3666 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
3667 from Emacs frames, so that calls to GetClipBox in w32term.c
3668 correctly report when part of a frame is visible (including
3669 scrollbars, etc). This prevents repeated redrawing of frames when
3670 only a scrollbar is visible.
3671 (w32_wnd_proc): Add more frame information to debugging output.
3673 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
3675 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
3677 2001-09-03 Gerd Moellmann <gerd@gnu.org>
3679 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
3680 help-echo for a string which doesn't have help-echo itself, use
3681 get-char-property to obtain the help-echo from the string's buffer
3682 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
3683 have mouse-face, look ``under'' the string for mouse-face from an
3685 (fast_find_position): Add parameter STOP. In the final row, stop
3686 before glyphs having STOP as object. Don't consider glyphs that
3687 are not from a buffer.
3689 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
3691 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
3693 * fns.c (Fmd5): Doc fix.
3695 2001-08-31 Gerd Moellmann <gerd@gnu.org>
3697 * composite.c (update_compositions): Do nothing if
3698 inhibit-modification-hooks is set.
3700 2001-08-30 Gerd Moellmann <gerd@gnu.org>
3702 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
3703 and check_message_stack if terminating abnormally. We want
3704 glyph matrices etc. in a core dump.
3706 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
3707 (syms_of_xdisp): Initialize them.
3708 (handle_single_display_prop): Don't change point, bind `object',
3709 `position', and `buffer-position' instead to the object having the
3710 `display' property, position in the object and position in the buffer.
3712 * fileio.c (Finsert_file_contents): Don't change the multibyteness
3713 of the buffer if REPLACE is non-nil.
3715 2001-08-29 Gerd Moellmann <gerd@gnu.org>
3717 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
3719 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
3721 * w32term.c (x_set_glyph_string_background_width)
3722 (show_mouse_face): Track the last changes in xterm.c.
3724 2001-08-28 Gerd Moellmann <gerd@gnu.org>
3726 * xterm.c (x_set_glyph_string_background_width): Set the glyph
3727 string's background width so that multi-line mouse-face is drawn
3728 to the right edge of the window.
3729 (show_mouse_face): Set the row's mouse_face_p flag after drawing
3732 * dispnew.c (direct_output_for_insert): Set updated_area
3733 before inserting/writing glyphs.
3735 * xdisp.c (display_mode_element): Use string_byte_to_char to
3736 determine character positions in strings, use chars_in_text
3737 instead of strwidth.
3738 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
3739 a matrix as parameter; this is easier to use from GDB.
3741 2001-08-28 Miles Bader <miles@gnu.org>
3743 * textprop.c (Fprevious_single_char_property_change)
3744 (Fnext_single_char_property_change): Doc fixes.
3746 2001-08-27 Gerd Moellmann <gerd@gnu.org>
3748 * fileio.c (Finsert_file_contents): Allocate, restore, and
3749 free composition data in the case of REPLACE not being nil.
3751 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
3752 there exist overlay strings with newlines at POS.
3753 (text_outside_line_unchanged_p): Return 0 if changes start at
3754 START and overlays exist at START. Likewise for END.
3755 (try_window_id): Give up if init_to_row_end returns 0.
3757 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
3760 2001-08-24 Gerd Moellmann <gerd@gnu.org>
3762 * keymap.c (access_keymap): Return the cdr of the binding of
3763 a generic character instead of its definition (KEY . BINDING).
3765 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
3766 to 0 also in the REPLACE case.
3768 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
3770 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
3771 open to determine whether file is readable (as for DOS_NT).
3773 2001-08-23 Gerd Moellmann <gerd@gnu.org>
3775 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
3776 coding.type is coding_type_no_conversion or coding_type_raw_text,
3777 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
3778 non-nil instead of just setting enable_multibyte_characters in the
3781 2001-08-22 Gerd Moellmann <gerd@gnu.org>
3783 * dispextern.h (struct face_cache): Add member
3784 menu_face_changed_p.
3786 * xfaces.c (menu_face_changed_default): New variable.
3787 (menu_face_changed_count): Variable removed.
3788 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
3789 the menu_face_changed_default flag, otherwise set the FRAME's
3790 menu_face_changed_p flag if the `menu' face has been changed.
3791 Prevent calling set_font_frame_param if FRAME is t.
3792 (make_face_cache): Initialize cache's menu_face_changed_p
3793 from menu_face_changed_default.
3794 (realize_basic_faces): Look into the frame's face cache to
3795 determine if the menu appearance needs updating.
3797 * keymap.c (access_keymap): Fix last change to not consider
3798 IDX when it has modifiers.
3800 2001-08-21 Gerd Moellmann <gerd@gnu.org>
3802 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
3803 . BINDING) exists, where GENERIC-CHAR is the generic character of
3804 the charset of IDX, return BINDING unless there exists a binding
3807 2001-08-16 Gerd Moellmann <gerd@gnu.org>
3809 * xrdb.c (SYSV): Don't define on Solaris 2.
3810 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
3812 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
3813 of the screen line, not text line, containing IT's current position.
3815 2001-08-15 Gerd Moellmann <gerd@gnu.org>
3817 * window.c (window_scroll_pixel_based): Don't recenter if
3818 PT is partially visible in the window.
3820 * xterm.c (expose_window_tree, expose_window, expose_line):
3821 Return 1 when overwriting mouse-face.
3822 (expose_frame): If mouse-face was overwritten, redo it.
3824 * xfaces.c (x_update_menu_appearance): Don't call
3825 set_frame_menubar, let the next redisplay do it.
3827 2001-08-14 Andrew Innes <andrewi@gnu.org>
3829 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
3830 drawing glyph string.
3832 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
3834 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
3837 2001-08-14 Gerd Moellmann <gerd@gnu.org>
3839 * xfaces.c (x_update_menu_appearance): Save and restore value of
3840 interrupt_input_blocked.
3842 2001-08-13 Gerd Moellmann <gerd@gnu.org>
3844 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
3845 a line start, move back to the line start.
3847 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
3848 exactly when a mini-buffer is active.
3850 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
3851 in units of 1/8 character on non window-system frames.
3852 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
3854 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
3856 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
3859 2001-08-09 Gerd Moellmann <gerd@gnu.org>
3861 * keyboard.c (Vpre_help_message): New variable.
3862 (syms_of_keyboard): Initialize and staticpro it.
3863 (show_help_echo): Record current message before displaying a
3864 help-echo, and restore that message when clearing the help.
3866 * xfns.c (x_create_im): Remove prototype.
3868 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
3870 * dispnew.c (adjust_glyph_matrix): Undo last change.
3872 2001-08-08 Gerd Moellmann <gerd@gnu.org>
3874 * dispnew.c (adjust_glyph_matrix): In the optimization for
3875 windows whose height has changed, disable partially visible lines.
3877 2001-08-07 Gerd Moellmann <gerd@gnu.org>
3879 * window.c (Frecenter): If ARG < 0, and on a window system
3880 frame, count in some empty lines when we can't move -ARG lines down.
3882 * xdisp.c (start_display): Don't try to determine the continuation
3883 lines width if lines are truncated. It's superfluous and leads to
3884 incorrect results if POS is not visible in the window after
3885 reseating the iterator at the previous line start.
3887 2001-08-06 Gerd Moellmann <gerd@gnu.org>
3889 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3891 2001-08-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3893 * alloc.c (init_stack): Remove declaration.
3895 2001-08-03 Gerd Moellmann <gerd@gnu.org>
3897 * keyboard.c (read_key_sequence): Check that key is an integer
3898 before comparing it with quit_char.
3899 (add_command_key): Use larger_vector.
3900 (read_char_x_menu_prompt): Instead of converting symbol and
3901 integer events into conses (EVENT . nil), use (EVENT . disabled)
3902 which cannot be confused with valid events.
3903 (read_char): When reading from Vunread_command_events, check for
3904 events of the form (EVENT . disabled) instead of
3907 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
3908 a float, determine the max height from the frame's height.
3910 2001-08-02 Gerd Moellmann <gerd@gnu.org>
3912 * xdisp.c (redisplay_internal): Take message_cleared_p into
3913 account only if minibuf_level == 0.
3915 2001-08-01 Gerd Moellmann <gerd@gnu.org>
3917 * xdisp.c (redisplay_internal): Add a check for the last
3920 * xdisp.c (message_cleared_p): New variable.
3921 (clear_message): Set message_cleared_p when clearing the current
3923 (redisplay_internal): Look at message_cleared_p to capture
3924 the case that the echo area should be cleared.
3926 * keyboard.c (command_loop_1): Fix spelling of
3927 resize_echo_area_exactly.
3929 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
3931 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
3933 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
3934 current matrix when the window gets smaller.
3936 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
3938 * print.c (strout): Cast the character passed to insert_char to
3939 unsigned char, to avoid sign extension when it is promoted to int.
3941 2001-07-31 Gerd Moellmann <gerd@gnu.org>
3943 * fileio.c (Finsert_file_contents): Don't treat a return value
3944 of 0 from emacs_read as an IO error.
3946 2001-07-30 Gerd Moellmann <gerd@gnu.org>
3948 * keyboard.c (abs): New macro.
3949 (double_click_fuzz): New variable.
3950 (make_lispy_event): Use it to determine what makes a double-click.
3951 (syms_of_keyboard): DEFVAR_INT it.
3953 * xmenu.c (set_frame_menubar): Take into account that
3954 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3957 2001-07-27 Gerd Moellmann <gerd@gnu.org>
3959 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
3961 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
3962 of row's visible height.
3964 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3965 deal with the first overlay string having an image `display' property.
3966 (try_window_reusing_current_matrix, compute_line_metrics):
3967 Fix computation of row's visible height for the case that part of the
3968 row is invisible above and part of the row is at the same time
3969 invisible below the window.
3971 2001-07-26 Gerd Moellmann <gerd@gnu.org>
3973 * xfns.c (x-show-tip): Doc fix.
3975 * xfns.c (Vx_max_tooltip_size): New variable.
3976 (syms_of_xfns): DEFVAR_LISP it.
3977 (Fx_show_tip): Set frame's window_width to the width of the
3978 window. Use a maximum tooltip size specified by
3979 Vx_max_tooltip_size, if that has valid contents.
3980 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3982 2001-07-26 Andrew Innes <andrewi@gnu.org>
3984 * w32term.c (x_display_list): New variable.
3985 (w32_term_init): Set it.
3987 * w32term.h (x_display_list): New extern.
3989 2001-07-26 Gerd Moellmann <gerd@gnu.org>
3991 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3992 is non-nil, instead of when redisplaying_p is non-zero.
3994 (mark_window_display_accurate_1): Add an assertion.
3996 2001-07-25 Gerd Moellmann <gerd@gnu.org>
3998 * dispextern.h (struct it): Increase size of ctl_chars to 16.
4000 * xfns.c (Fx_file_dialog): Block/unblock input while processing
4001 events so that we get a chance of processing expose events.
4003 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
4005 2001-07-24 Gerd Moellmann <gerd@gnu.org>
4007 * xfns.c (valid_image_p): Protect better against invalid image
4008 specifications. Previous code could signal an error.
4010 2001-07-23 Gerd Moellmann <gerd@gnu.org>
4012 * indent.c (current_column): Fix column computation in the
4013 presence of display table entries.
4014 (current_column_1, Fmove_to_column, compute_motion): Likewise.
4016 * dispnew.c (adjust_glyph_matrix): In the optimization for
4017 windows whose height has changed, use the new window height
4018 to compute which rows to invalidate.
4020 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
4021 (MAX_10_EXP): New macro.
4024 * coding.c (code_convert_region): Handle the multibyte case if
4025 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
4027 2001-07-20 Gerd Moellmann <gerd@gnu.org>
4029 * dispextern.h (struct face): Change type of `stipple' to
4032 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
4034 2001-07-19 Gerd Moellmann <gerd@gnu.org>
4036 * dispnew.c (update_window): Don't set the cursor at the end
4037 of the update if display update has been paused.
4039 * composite.h (syms_of_composite): Renamed from syms_of_composition.
4041 2001-07-18 Ken Raeburn <raeburn@gnu.org>
4043 * fns.c (Fset_char_table_default): Check that a charset is defined
4044 before checking its dimension.
4046 2001-07-17 Ken Raeburn <raeburn@gnu.org>
4048 * coding.c (setup_coding_system): Don't do any designation based
4049 on reg_bits if charset is not yet defined.
4051 * lisp.h (XVECTOR): Verify correct object type before returning a
4052 pointer, using eassert.
4054 2001-07-17 Gerd Moellmann <gerd@gnu.org>
4056 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
4057 Increase to 4096 because of paste problems reported on GNU/Linux.
4059 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
4061 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
4063 2001-07-16 Gerd Moellmann <gerd@gnu.org>
4065 * fileio.c (unwind_read): Function removed.
4066 (read_non_regular, read_non_regular_quit): New functions.
4067 (Finsert_file_contents): When reading from non-regular files,
4068 arrange to catch a `quit' and terminate the loop. Rearrange
4069 code so that a `quit' when reading from a regular file doesn't
4070 insert text in the buffer.
4072 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
4073 Clear faces afterwards.
4074 (clear_font_table): Take a x_display_info parameter. Don't free
4075 fonts being the default font of any frame on the given display.
4077 2001-07-13 Gerd Moellmann <gerd@gnu.org>
4079 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
4080 instead of CHAR_STRING which can signal an error.
4082 * charset.c (char_to_string_1): Extracted from char_to_string.
4083 Return -1 instead of signaling an error.
4084 (char_to_string): Use it.
4086 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
4088 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
4090 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
4091 is t, don't try to append anything to it.
4093 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
4095 * dired.c (file_name_completion): Pass dp->d_name to
4096 Fstring_match, not elt, which is always nil here.
4098 2001-07-12 Gerd Moellmann <gerd@gnu.org>
4100 * xselect.c (x_decline_selection_request): Handle errors
4101 caused by receivers that have vanished.
4103 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
4104 ignoring events on foreign windows in #if 0. Always dispatch
4105 the event after checking it with x_handle_property_notify.
4107 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
4108 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
4109 TRACE macros to facilitate debugging. Add additional trace statements.
4110 (toplevel): Add prototypes for file-local functions.
4111 (x_atom_to_symbol): Remove DPYINFO parameter.
4113 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
4115 * w32menu.c (menubar_selection_callback, w32_menu_show):
4116 Initialize `entry' to nil.
4117 (w32_dialog_show): Remove unused `save_wv' variable.
4118 (name_is_separator): Recognize "--:foo" and "--foo-bar".
4120 2001-07-11 Gerd Moellmann <gerd@gnu.org>
4122 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
4124 * fileio.c (unwind_read): Print a message when discarding inserted
4125 text or switching the buffer to unibyte. Change parameter.
4126 (Finsert_file_contents): Don't pass VISIT to unwind_read.
4128 * fileio.c (unwind_read): New function.
4129 (Finsert_file_contents): Record it as unwind-function for
4130 the case that reading is interrupted by C-g.
4132 2001-07-10 Gerd Moellmann <gerd@gnu.org>
4134 * dispnew.c (update_window): Don't skip the header-line
4135 update when scrolling_window returns 0.
4137 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
4139 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
4140 for the case that x_decode_color signals an error.
4142 * xdisp.c (add_to_log): Do nothing if called asynchronously.
4144 2001-07-09 Gerd Moellmann <gerd@gnu.org>
4146 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
4147 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
4150 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
4152 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
4153 doc string line for dos-timezone-offset.
4155 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
4156 inline assembly, to avoid compiler warnings.
4157 (syms_of_msdos): Add \n\ at the end of a line in the doc string
4158 line for dos-unsupported-char-glyph.
4160 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
4162 2001-07-05 Gerd Moellmann <gerd@gnu.org>
4164 * sound.c: Include Emacs' header files with #include "...".
4166 * eval.c (specbind): Additionally record the buffer that was
4167 current when a buffer-local or frame-local variable was bound.
4169 2001-07-04 Gerd Moellmann <gerd@gnu.org>
4171 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
4172 to unibyte characters in unibyte buffers.
4174 2001-07-03 Gerd Moellmann <gerd@gnu.org>
4176 * eval.c (specbind): If SYMBOL has a frame-local binding, record
4177 the frame on the binding stack. Change format of entries for
4178 local bindings on the binding stack to '(SYMBOL . WHERE)'.
4179 (unbind_to): Handle unbinding a frame-local variable.
4181 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
4182 glyphs and truncation glyphs at the end of a row from its pixel width.
4183 (dump_glyph_row): Print row's continuation_lines_width.
4184 (try_window_id): Take the shortcut if ZV is visible in the
4185 window, but there are actually no changes at ZV.
4187 2001-07-02 Gerd Moellmann <gerd@gnu.org>
4189 * xterm.h (x_free_dpy_colors): Add prototype.
4191 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
4192 right number of arguments.
4194 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
4195 ($(lwlibdir)TAGS): New target.
4196 (TAGS): Fix dependency list.
4198 * xterm.c (x_list_fonts): Make sure XFreeFont is called
4201 2001-06-30 Gerd Moellmann <gerd@gnu.org>
4203 * emacs.c (main): Remove extern declaration for sys_nerr, which
4204 isn't used and causes a compilation error with GCC 3.0 on
4207 2001-06-27 Gerd Moellmann <gerd@gnu.org>
4209 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
4210 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
4211 (toplevel): Include <signal.h> and syssignal.h.
4213 * sound.c (vox_configure, vox_close): Turn off atimers
4216 2001-06-26 Gerd Moellmann <gerd@gnu.org>
4218 * keyboard.c (read_char) <non_reread>: Record the previous idle
4219 start time before calling timer_stop_idle.
4220 (read_char) <reread_first>: After processing a help-echo event,
4221 restore the previous idle start time.
4223 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
4224 the start of invisible text.
4225 (setup_for_ellipsis): New function.
4226 (next_overlay_string): After all overlay strings have been
4227 processed, display an ellipsis if necessary.
4228 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
4229 (push_it): Initialize display_ellipsis_p on the iterator's stack.
4231 * dispextern.h (struct iterator_stack_entry): Add member
4234 2001-06-25 Gerd Moellmann <gerd@gnu.org>
4236 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
4237 on the value of the wait-for-wm frame parameter.
4239 * xterm.h (struct x_output): Add member wait_for_wm.
4241 * xfns.c (Qwait_for_wm): New variable.
4242 (x_frame_parms): Add entry for `wait-for-wm".
4243 (x_set_wait_for_wm): New function.
4244 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
4245 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
4247 * xdisp.c (try_window_id) <all changes below window end>: Don't
4248 take this shortcut if ZV is visible in the window.
4249 (try_window_id): When checking for window start being in changed
4250 text, don't check that the buffer's size has changed.
4252 2001-06-23 Richard M. Stallman <rms@gnu.org>
4254 * minibuf.c (Fcompleting_read): Doc fix.
4256 2001-06-19 Gerd Moellmann <gerd@gnu.org>
4258 * composite.c (Ffind_composition_internal): Accept ZV
4259 and a string's end position as POS.
4261 2001-06-18 Gerd Moellmann <gerd@gnu.org>
4263 * composite.c (Ffind_composition_internal): Check POS
4266 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
4268 * editfns.c (Fmessage_box): If the frame is not under a window
4269 system, output the message in the echo area.
4271 2001-06-14 Richard M. Stallman <rms@gnu.org>
4273 * xdisp.c (try_window_id): When EOB is visible, don't treat
4274 insertion at EOB as if it were "off the bottom of the screen."
4276 2001-06-11 Andrew Innes <andrewi@gnu.org>
4278 * w32proc.c (create_child): Add new parameter is_gui_app.
4279 (w32_executable_type): Add new parameter is_gui_app.
4280 (sys_spawnve): Use it.
4281 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
4282 SIGQUIT. This matches better how the signals are interpreted by
4283 MSVC compiled programs.
4284 (syms_of_ntproc): Update docstring.
4286 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
4288 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
4289 well otherwise note_mouse_highlight might optimize away highlighting
4290 if we pass over that same overlay again.
4292 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
4294 * lread.c (Fload): Document that the argument is run via
4295 substitute-in-file-name.
4297 2001-05-31 Gerd Moellmann <gerd@gnu.org>
4299 * Makefile.in (bootstrap-doc): New target.
4300 (bootstrap-emacs): Depend on it.
4302 * fileio.c (Fdo_auto_save): Don't try to create the directory of
4303 auto-save-list-file-name when shutting down Emacs, because
4304 creating the directory might signal an error, and leaves
4305 Emacs in a strange state.
4307 * term.c: (tty_cursor_hidden): New variable.
4308 (update_begin): Don't call tty_hide_cursor. Clean up.
4309 (update_end, set_terminal_window, set_scroll_region): Clean up.
4310 (ring_bell, reset_terminal_modes): Clean up.
4311 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
4312 on tty_cursor_hidden.
4313 (write_glyphs): Call tty_hide_cursor.
4315 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
4317 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
4319 2001-05-30 Gerd Moellmann <gerd@gnu.org>
4321 * xfns.c (enum image_value_type): New enumerator
4322 IMAGE_STRING_OR_NIL_VALUE.
4323 (parse_image_spec): Handle it.
4324 (xbm_format, pbm_format): Use it for :foreground and :background.
4325 (xbm_load, pbm_load): Check for nil color names.
4327 * xterm.c (note_mouse_highlight): If an overlapping overlay
4328 exists, but we find that we highlight the same overlay as before,
4329 don't do the highlighting again.
4331 2001-05-29 Gerd Moellmann <gerd@gnu.org>
4333 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
4334 Protect unibyte strings created by replacing their multibyte
4335 equivalents in menu_items.
4337 * keymap.c (Fsingle_key_description): NUL-terminate the string
4338 buffer before calling build_string.
4340 * callproc.c (Fcall_process): Deal with decode_coding returning
4341 CODING_FINISH_INCONSISTENT_EOL.
4343 2001-05-28 Gerd Moellmann <gerd@gnu.org>
4345 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
4346 an item's name with its key description in case the description
4347 is a multibyte string.
4349 * keymap.c (Fsingle_key_description): Create a multibyte string
4352 * macros.c (Fstart_kbd_macro): Doc fix.
4354 * xterm.c (cursor_in_mouse_face_p): New function.
4355 (x_draw_stretch_glyph_string): Use it to choose a different GC
4356 when drawing a cursor within highlighted text.
4358 * editfns.c (char_property_eq): Put in #if 0.
4360 * indent.c (string_display_width): Put in #if 0.
4362 * lread.c (Fload): Remove unused label.
4364 * termcap.c (speeds): Put in #if 0.
4366 2001-05-18 Gerd Moellmann <gerd@gnu.org>
4368 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
4370 * xfaces.c (xlfd_point_size): Don't divide pixel size from
4371 transformation matrix by 10.
4373 2001-05-16 Gerd Moellmann <gerd@gnu.org>
4375 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
4376 only if it's equal to the former foreground pixel color.
4377 (x_set_foreground_color, x_set_background_color)
4378 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
4380 2001-05-16 Dave Love <fx@gnu.org>
4382 * insdel.c (signal_before_change, signal_after_change): Consider a
4383 local change hook which changes the buffer.
4385 * process.c (read_process_output): Don't call signal_after_change
4386 and update_compositions after insert_from_string_before_markers.
4388 2001-05-16 Gerd Moellmann <gerd@gnu.org>
4390 * xfaces.c (split_font_name): Use the right field when
4391 checking for `[...]' syntax.
4393 * buffer.c (copy_overlays): New function.
4394 (clone_per_buffer_values): Use it.
4396 * buffer.h (OVERLAY_PLIST): New macro.
4398 * keymap.c (Fsingle_key_description): Replace a build_string with
4399 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
4401 * fontset.c (Ffontset_info): Check that face is non-null
4402 before accessing its fields.
4404 2001-05-15 Gerd Moellmann <gerd@gnu.org>
4406 * keyboard.c (read_key_sequence): Prevent generating a fake
4409 * xfaces.c (split_font_name): Handle `[...]' for the right
4412 * ccl.c (ccl_driver): Don't copy remaining bytes in case
4413 of CCL_STAT_INVALID_CMD.
4415 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
4417 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
4418 in <var> has no default value yet.
4420 * xfaces.c (try_alternative_families): First try the FAMILY.
4421 And if nothing is found in the end, try again with scalable fonts.
4422 (try_font_list): Let try_alternative_families do a bit more of
4423 the work. Only use FAMILY if it is not nil.
4424 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
4426 2001-05-14 Gerd Moellmann <gerd@gnu.org>
4428 * xterm.c (note_mouse_highlight): Avoid changing the mouse
4429 pointer shape when show_mouse_face has already done it.
4431 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
4434 * xfaces.c (split_font_name): Make sure to leave the loop
4435 with the right value of `i'.
4437 * xfaces.c (split_font_name): Handle matrix transformations
4438 in the pixel and point size fields of XLFD font names.
4439 (xlfd_point_size): Likewise.
4441 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
4443 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
4444 (x_to_w32_font): Add prototype.
4446 * regex.c (malloc, realloc, free) [emacs]: Undefine before
4447 redefining, to avoid compiler warnings.
4449 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
4451 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
4452 (w32_get_bdf_glyph): Cast between unsigned char and char when
4453 passing arguments to subroutines, to shut up compiler warnings.
4454 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
4457 * xfaces.c: Include keyboard.h before frame.h, not after it.
4459 * widget.c: Include keyboard.h before frame.h.
4461 * w32term.h (struct image, struct face): Forward declaration, to
4462 avoid compiler warnings.
4464 2001-05-11 Gerd Moellmann <gerd@gnu.org>
4466 * keyboard.c (read_key_sequence): Don't modify events when
4467 generating fake prefix keys (mode-line, scroll-bar, ...) since
4468 this prevents proper processing of such events when pushed back
4469 into unread-command-events.
4471 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
4472 actually redrawn. Make the function static.
4473 (note_mouse_highlight): Fix a case where the mouse cursor
4474 was changed back to the text cursor.
4476 * xterm.h (clear_mouse_face): Remove prototype.
4478 * xdisp.c (try_window_id): Fix the fix and set the right
4481 * xdisp.c (try_window_id): Fix computation of window end in the
4482 case that lines were deleted at the end of the window. Add some
4483 more debug_method_adds.
4485 * xfaces.c (try_alternative_families): New function.
4486 (try_font_list): Use it. If ATTRS specifies a family, check
4487 fonts from that family first.
4488 (choose_face_font): Remove code setting the family part of
4491 2001-05-10 Gerd Moellmann <gerd@gnu.org>
4493 * xdisp.c (try_window_id): Fix case of all changes before
4496 * xdisp.c (try_window_id): Add some xasserts.
4498 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4500 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
4502 2001-05-09 Dave Love <fx@gnu.org>
4504 * xdisp.c (GIVE_UP): Fix for K&R C.
4506 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4508 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
4510 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
4511 back to the text cursor shape without need.
4513 2001-05-07 Gerd Moellmann <gerd@gnu.org>
4515 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
4517 * dispextern.h (inverse_video): Declare extern.
4519 * keyboard.c (delete_kboard): Handle the case that selected_frame
4520 has been deleted in the course of x_connection_closed.
4522 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
4524 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
4525 Fix the change from 2001-04-30.
4527 2001-05-03 Gerd Moellmann <gerd@gnu.org>
4529 * xfns.c (file_dialog_unmap_cb): New function.
4530 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
4531 where a dialog is closed via the window manager.
4533 * xdisp.c (try_window_id): Cases of changes all in front of
4534 the window start or all below the window end mostly rewritten.
4535 (redisplay_window): Move the tests if try_window_id is
4536 applicable to try_window_id.
4537 (GIVE_UP): New macro.
4539 2001-05-02 Gerd Moellmann <gerd@gnu.org>
4541 * xterm.c (expose_window): Return int. If W is the window
4542 currently being updated, mark the frame garbaged.
4543 Fix computation of rows intersecting the exposed rectangle.
4544 (expose_window_tree): Stop when expose_window returns 0.
4546 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
4547 again if it has already been drawn.
4549 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
4551 * syntax.c (update_syntax_table): Check that oldi has the same
4552 properties as old_prop before deciding not to invalidate.
4554 2001-04-30 Gerd Moellmann <gerd@gnu.org>
4556 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
4557 read-only text that is so because of text properties.
4559 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
4560 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
4561 windows that are components of a Lucid menu bar.
4563 2001-04-27 Gerd Moellmann <gerd@gnu.org>
4565 * term.c (turn_on_face): Fix reverse video handling on terminals
4566 that don't support colors.
4568 2001-04-26 Gerd Moellmann <gerd@gnu.org>
4570 * editfns.c (save_excursion_restore): Don't use XBUFFER on
4573 2001-04-25 Gerd Moellmann <gerd@gnu.org>
4575 * term.c (toggle_highlight): New function.
4576 (turn_on_face): Change handling of reverse video.
4578 * process.c (wait_reading_process_input):
4579 Call record_asynch_buffer_change only if a timer really changed buffers.
4581 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
4582 of the number of overlays to check.
4584 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
4586 * xdisp.c (try_window_id): Fix a case where window_end_pos
4587 and window_end_bytepos were not adjusted.
4589 2001-04-23 Gerd Moellmann <gerd@gnu.org>
4591 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
4594 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
4596 * process.c (wait_reading_process_input) [!subprocesses]:
4597 Don't reference waiting_for_user_input_p, it's not defined in the
4598 branch without async subprocesses support.
4600 2001-04-19 Gerd Moellmann <gerd@gnu.org>
4602 * keyboard.c (delete_kboard): Prevent a dangling reference
4603 from current_kboard to KB, which is freed.
4605 * process.c (wait_reading_process_input):
4606 Call record_asynch_buffer_change after running timers, to make
4607 read_key_sequence aware of buffer changes from under it.
4609 2001-04-18 Gerd Moellmann <gerd@gnu.org>
4611 * xfaces.c (Qscalable_fonts_allowed): New variable.
4612 (realizing_basic_faces_p): Removed.
4613 (x_face_list_fonts): Special handling for realizing_basic_faces_p
4615 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
4616 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
4617 for scalable-fonts-allowed to t.
4619 * fileio.c (Finsert_file_contents): If the file size returned from
4620 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
4621 read from files on a procfs whose contents are generated dynamically.
4623 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
4625 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
4626 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
4627 (__memalign_hook): Make the two prototypes consistent.
4629 2001-04-17 Gerd Moellmann <gerd@gnu.org>
4631 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
4632 matrix of mini-windows.
4634 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
4636 * intervals.c (find_interval): Don't rebalance during signal handling.
4638 2001-04-11 Gerd Moellmann <gerd@gnu.org>
4640 * fns.c: Include blockinput.h.
4642 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
4644 2001-04-10 Gerd Moellmann <gerd@gnu.org>
4646 * fns.c (Fcompare_strings): Fix return values.
4648 * window.c (window_scroll): Change the meaning of N to mean
4649 N screen-fulls or N lines.
4650 (window_scroll_pixel_based, window_scroll_line_based)
4651 (scroll_command, Fscroll_other_window): Change accordingly.
4653 * window.c (window_scroll_pixel_based, Frecenter):
4654 Call window_box_height instead of using it.last_visible_y for the
4655 height of the window.
4657 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
4658 instead of using it.last_visible_y for the height of the window.
4660 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
4661 From Dan Holmsand <dan@eyebee.com>.
4663 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
4664 able to write to hidden and system files. From Dan Holmsand
4667 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
4668 Holmsand <dan@eyebee.com>.
4670 2001-04-09 Gerd Moellmann <gerd@gnu.org>
4672 * fns.c (Fplist_get, Fplist_put): Add QUITs.
4674 * window.c (window_internal_height): Return 1 less if the
4675 window has a header line.
4677 * xdisp.c (try_window_id): When scrolling on a terminal, take
4678 the change of window_internal_height into account.
4680 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
4682 * gmalloc.c (align): If the argument SIZE would overflow
4683 __malloc_ptrdiff_t, fail right away.
4685 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4687 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4688 Make sure the tooltip is completely visible.
4689 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
4691 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
4693 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
4695 2001-04-06 Dave Love <fx@gnu.org>
4697 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
4700 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4702 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
4704 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
4706 2001-04-05 Gerd Moellmann <gerd@gnu.org>
4708 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
4710 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
4712 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
4713 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
4715 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
4716 shell widget's position only if it is non-null.
4718 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
4719 Set f->output_data.x->widget to null after destroying it.
4721 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
4722 FILENAME to bring it in synch with the documentation.
4724 * xfaces.c (realizing_basic_faces_p): Renamed from
4725 realize_default_face_p.
4726 (realize_basic_faces): Set/clear realizing_basic_faces_p.
4727 (realize_default_face): Don't set the flag.
4729 2001-04-04 Gerd Moellmann <gerd@gnu.org>
4731 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
4733 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
4735 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
4736 the buffer that was used for echoing.
4738 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
4739 (first_font_matching): Removed unused function.
4740 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
4741 (may_use_scalable_font_p): Remove parameter FONT; rename
4742 parameter NAME to FONT.
4743 (x_face_list_fonts): Fix missing bounds check.
4744 (realizing_default_face_p): New variable.
4745 (realize_default_face): Set and clear that flag.
4746 (x_face_list_fonts): When called during the realization of the
4747 default face, and no matching fonts are found when ignoring
4748 scalable fonts and fonts matching a regexp from
4749 face-ignored-fonts, try without ignoring fonts.
4751 2001-04-03 Gerd Moellmann <gerd@gnu.org>
4753 * xfns.c (postprocess_image): New function.
4754 (lookup_image): Call it for all image types except PostScript.
4755 (x_kill_gs_process): Call postprocess_image.
4757 * xterm.c (x_use_underline_position_properties): New variable.
4758 (x_draw_glyph_string): Use it.
4759 (syms_of_xterm): DEFVAR_BOOL it.
4761 2001-04-02 Gerd Moellmann <gerd@gnu.org>
4763 * xterm.c (x_alloc_nearest_color_1): New function.
4764 (x_alloc_nearest_color): Use it.
4765 (x_color_cells): Take a Display as argument, instead of a frame.
4766 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
4767 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
4768 (x_initialize): Register cvt_string_to_pixel as resource converter
4769 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
4771 2001-03-30 Gerd Moellmann <gerd@gnu.org>
4773 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
4774 (set_iterator_to_next): If a string from a display property ends,
4775 consider the case that this might also be the end of an
4776 overlay string having the display property.
4778 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
4780 * xdisp.c (reseat_to_string): Undo last change.
4782 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
4783 matrix of a window when the header line changes, when
4784 new rows are allocated, or when the width changes.
4786 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
4788 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
4790 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
4792 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
4795 2001-03-29 Gerd Moellmann <gerd@gnu.org>
4797 * data.c (Fsubr_interactive_form): New function.
4798 (syms_of_data): Defsubr it.
4800 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
4801 (live_float_p, live_misc_p): Return 1 only if the offset of the
4802 pointer in its block is >= 0.
4804 2001-03-28 Paul Eggert <eggert@twinsun.com>
4806 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
4807 microseconds calcuation. Avoid double-rounding problem.
4808 In doc string, warn that the result is approximate.
4810 2001-03-28 Gerd Moellmann <gerd@gnu.org>
4812 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
4813 bind `inhibit-eval-during-redisplay' to t.
4815 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
4817 * xdisp.c (inhibit_eval_during_redisplay)
4818 (Qinhibit_eval_during_redisplay): New variables.
4819 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
4820 don't eval, return nil instead.
4821 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
4822 Initialize Qinhibit_eval_during_redisplay.
4824 * xdisp.c (reseat_to_string): If STRING is multibyte, set
4825 the iterator's multibyte_p flag.
4827 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
4828 instead of setting it to zero; it's incremented for each frame
4829 where the menu face is changed.
4831 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
4832 change bottom shadow accordingly.
4834 * xterm.c (expose_window_tree, expose_frame): Don't compute
4836 (expose_window): Do it here instead.
4837 (x_draw_glyph_string): Fix a computation of the underline position.
4839 * bytecode.c (BYTE_CODE_QUIT): New macro.
4840 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
4842 2001-03-27 Gerd Moellmann <gerd@gnu.org>
4844 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
4845 Give up if matrix starts in an ellipsis.
4846 (init_from_display_pos): Do nothing if POS doesn't specify
4847 a dpvec_index but the iterator has such a position.
4849 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
4851 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
4852 x/y position is (0, 0) after destroying the menu bar, restore
4853 its original position.
4855 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
4856 (init_from_display_pos): Use it.
4857 (try_window_reusing_current_matrix): Don't use cursor_row_p.
4859 2001-03-26 Gerd Moellmann <gerd@gnu.org>
4861 * xdisp.c (try_window_id): Undo last change.
4863 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4865 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
4867 * buffer.c (syms_of_buffer): Doc fix.
4869 2001-03-26 Gerd Moellmann <gerd@gnu.org>
4871 * xfaces.c (x_update_menu_appearance): Use local variable
4872 popup_path for setting font resources.
4874 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
4876 * frame.c (Fframe_list): Don't reference tip_frame if
4877 HAVE_WINDOW_SYSTEM is not defined.
4879 * emacs.c (main): Update the copyright year. From Werner LEMBERG
4882 2001-03-25 Gerd Moellmann <gerd@gnu.org>
4884 * xdisp.c (init_from_display_pos): Test invisible property
4885 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
4887 * xdisp.c (redisplay_internal) <update one window>: Make sure
4888 last_arrow_position and last_arrow_string are set.
4890 * frame.c (Fframe_list): Don't return a tooltip frame.
4892 2001-03-23 Gerd Moellmann <gerd@gnu.org>
4894 * xdisp.c (mark_window_display_accurate_1): New function,
4895 extracted from mark_window_display_accurate.
4896 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
4897 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
4898 (mark_window_display_accurate): Use it.
4899 (redisplay_internal): Use it for the selected window.
4900 (redisplay_internal): Avoid duplicate mark_window_display_accurate
4901 for the selected frame.
4903 * xdisp.c Use make_number, for readability.
4904 (try_window_id): Disable rows below the window end.
4905 (try_window_reusing_current_matrix): Use cursor_row_p.
4906 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
4908 (init_from_display_pos): If POS specifies a position in a display
4909 vector, maybe get the iterator set up for that ellipsis.
4911 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
4913 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
4915 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
4917 2001-03-23 Gerd Moellmann <gerd@gnu.org>
4919 * xfaces.c (x_update_menu_appearance): Use a different path
4920 for Lucid popup menus.
4922 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
4924 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
4926 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
4927 (string_buffer_position): Use `make_number'.
4929 2001-03-22 Gerd Moellmann <gerd@gnu.org>
4931 * xfaces.c (x_update_menu_appearance): Renamed from
4932 x_set_menu_face_resources. Use different resources for popups.
4934 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
4935 (GC_CHECK_STRING_BYTES): Don't define.
4937 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
4938 Removed, together with subroutines.
4939 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
4940 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
4942 * dispextern.h (x_set_menu_resources_from_menu_face):
4945 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
4946 Remove calls to x_set_menu_resources_from_menu_face.
4948 * xfaces.c (xm_set_menu_resources_from_menu_face):
4949 Remove #ifndef LESSTIF_VERSION.
4951 * xmenu.c: Include widget.h.
4952 (single_submenu): Return int. Some cleanup.
4953 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
4955 2001-03-21 Gerd Moellmann <gerd@gnu.org>
4957 * xterm.c (x_update_window_end): Handle overwritten mouse face
4958 also for tool bar windows.
4959 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
4960 DRAW is DRAW_IMAGE_RAISED.
4962 2001-03-20 Gerd Moellmann <gerd@gnu.org>
4964 * print.c (syms_of_print): Doc fixes.
4966 * fns.c (Fmd5): Doc fix.
4968 2001-03-19 Gerd Moellmann <gerd@gnu.org>
4970 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4971 Clear area of the frame not occupied by the scroll bar.
4973 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
4974 tip frame's root window buffer to *tip* right after creating
4977 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
4978 is an integer don't have to be for space characters.
4980 2001-03-16 Gerd Moellmann <gerd@gnu.org>
4982 * indent.c (current_column, current_column_1, Fmove_to_column)
4983 (compute_motion): Handle characters from display vectors differently.
4985 2001-03-15 Kenichi Handa <handa@etl.go.jp>
4987 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
4988 drawing glyph string.
4990 2001-03-15 Gerd Moellmann <gerd@gnu.org>
4992 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
4993 (command_loop_1): Undo last change.
4995 * xterm.c (fast_find_position): Return the correct vpos.
4997 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
4998 non-null, set a per-buffer value in BUF instead of the current buffer.
4999 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
5000 Call store_symval_forwarding with BUF null.
5001 (set_internal): Call store_symval_forwarding with the BUF
5002 parameter passed to set_internal. Formerly, the value was always
5003 set in the current buffer; the buffer recorded in specbind for
5004 this case wasn't used.
5005 (arith_driver): Reindent.
5007 * buffer.c (swap_out_buffer_local_variables):
5008 Call store_symval_forwarding with BUF null.
5010 * lisp.h (store_symval_forwarding): Change prototype.
5012 * eval.c (specbind): Call store_symval_forwarding with BUF null.
5014 2001-03-14 Gerd Moellmann <gerd@gnu.org>
5016 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
5017 FOR_DELETION. Avoid resizing the mini-window of the selected
5018 frame if FOR_DELETION is set.
5019 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
5020 (Fmake_frame_invisible): Change calls to do_switch_frame for new
5023 * window.c (Fset_window_configuration): Change call to
5024 do_switch_frame to new format.
5026 * keyboard.c (quit_throw_to_read_char): Change call to
5027 do_switch_frame to new format.
5029 * lisp.h (do_switch_frame): Change prototype.
5031 * frame.c (Fframe_parameters): In the `buffer-list' frame
5032 parameter, store the buffer list of FRAME, not the list of the
5035 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
5036 box just because the glyph row's full_width_p flag is set.
5038 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
5040 * xdisp.c (highlight_trailing_whitespace): On character terminals,
5041 skip the padding blanks inserted in extend_face_to_end_of_line,
5042 before checking for trailing whitespace.
5044 2001-03-13 Gerd Moellmann <gerd@gnu.org>
5046 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
5047 Remove special handling for LessTif/Motif.
5048 (toplevel): Don't include Xm/Xm.h.
5050 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
5051 Remove workaround code for LessTif; it doesn't work anymore.
5053 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
5056 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
5057 Don't access private scroll bar data; it's no longer necessary with
5058 contemporary LessTif.
5060 * xfaces.c (xm_set_menu_resources_from_menu_face):
5061 Change #if 0 to #ifndef LESSTIF_VERSION.
5063 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
5064 removing button grabs.
5066 2001-03-13 Kenichi Handa <handa@etl.go.jp>
5068 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
5069 and clip-large-size-font as obsolete.
5071 * lread.c (read_multibyte): Check the validity of multibyte
5072 sequence. If invalid, return the first byte.
5074 2001-03-12 Gerd Moellmann <gerd@gnu.org>
5076 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
5077 before running the command; timer functions or process
5078 filters may have set it.
5080 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
5082 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
5085 2001-03-12 Gerd Moellmann <gerd@gnu.org>
5087 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
5090 2001-03-09 Gerd Moellmann <gerd@gnu.org>
5092 * dispextern.h (string_buffer_position): Add prototype.
5094 * xdisp.c (string_buffer_position, display_prop_string_p)
5095 (single_display_prop_string_p): New functions.
5097 * xterm.c (note_mouse_highlight): If there's no help-echo on
5098 a string, look at the buffer text ``under'' it.
5100 * keyboard.c (make_lispy_event): Add string info to the event,
5101 analogous to what's done on mode lines.
5102 (read_key_sequence): For a click on a string, consider `local-map'
5103 and `keymap' of that string.
5105 * keyboard.c (make_lispy_event, make_lispy_movement):
5106 Adjust calls to buffer_posn_from_coords to new format.
5108 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
5110 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
5113 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
5114 flags argument to emacs_open; it seems to conflict with O_EXCL.
5116 2001-03-09 Kenichi Handa <handa@etl.go.jp>
5118 * composite.h (struct composition): Change types of members;
5119 glyph_len to unsigned, width to unsigned short.
5121 2001-03-08 Andrew Innes <andrewi@gnu.org>
5123 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
5126 2001-03-08 Gerd Moellmann <gerd@gnu.org>
5128 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
5131 * xterm.c (note_mouse_highlight): Handle mouse-face and
5132 help-echo in strings.
5133 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
5134 (fast_find_string_pos): New function.
5136 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
5137 (display_string): Call face_at_string_position with new parameter.
5139 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
5140 Handle `mouse-face'.
5142 * dispextern.h (face_at_string_position): Change prototype.
5144 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
5146 * keyboard.c (make_lispy_event): Avoid generating drag events
5147 if the mouse hasn't actually moved to another buffer position.
5149 2001-03-08 Dave Love <fx@gnu.org>
5151 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
5153 2001-03-08 Gerd Moellmann <gerd@gnu.org>
5155 * process.c (Fset_process_window_size): Fix a typo.
5157 2001-03-08 Kenichi Handa <handa@etl.go.jp>
5159 * coding.c (detect_coding_sjis): Do more rigid check.
5160 (detect_coding_big5): Likewise.
5161 (decode_coding_sjis_big5): Likewise.
5162 (Fdetect_coding_region): Call detect_coding_system with tailing
5163 anchor byte `\0' for more rigid detection.
5164 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
5165 (Fdetect_coding_string): Likewise.
5167 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
5169 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
5170 a string before extracting its data.
5172 2001-03-07 Gerd Moellmann <gerd@gnu.org>
5174 * window.c (Frecenter): Rewrite code handling negative values
5175 of ARG on graphical frames.
5177 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
5179 * window.c (displayed_window_lines): If W->start is outside the
5180 accessible portion of the buffer, call start_display with BEGV or
5181 ZV instead of W->start.
5183 2001-03-07 Gerd Moellmann <gerd@gnu.org>
5185 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
5187 * process.c (Fset_process_filter): Don't crash if the input
5188 file descriptor of PROCESS is closed.
5189 (Fset_process_window_size): Likewise.
5191 2001-03-06 Kenichi Handa <handa@etl.go.jp>
5193 * xterm.c (XTflash): Make the timeout of select shorter, and call
5194 select repeatedly until the desired time expires.
5196 2001-03-06 Gerd Moellmann <gerd@gnu.org>
5198 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
5200 * xfns.c (Fx_create_frame): Clear Vwindow_list.
5202 * lisp.h (Vwindow_list): Declare extern.
5204 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
5206 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
5208 2001-03-06 Gerd Moellmann <gerd@gnu.org>
5210 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
5211 to detect a case where we have to highlight a different region
5212 despite not having left the currently highlighted region.
5213 Set mouse_face_overlay in the x_display_info.
5214 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
5216 * xterm.h (struct x_display_info): Add mouse_face_overlay.
5218 * buffer.c (mouse_face_overlay_overlaps): New function.
5220 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
5221 (Qmouse_face): Declare extern.
5223 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
5224 if face_change_count is non-zero.
5226 2001-03-06 Kenichi Handa <handa@etl.go.jp>
5228 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
5229 that the source is unibyte.
5231 2001-03-05 Dave Love <fx@gnu.org>
5233 * xterm.c (XTmouse_position): Fix typo.
5235 2001-03-05 Gerd Moellmann <gerd@gnu.org>
5237 * minibuf.c (read_minibuf): Clean up the binding stack if
5238 called noninteractively.
5240 2001-03-05 Kenichi Handa <handa@etl.go.jp>
5242 * coding.c (syms_of_coding): Docstring modified.
5244 2001-03-05 Kenichi Handa <handa@etl.go.jp>
5246 * charset.c (char_to_string): If a single byte char has modifier
5247 bits that can't be reflected to the character code, ignore them
5248 instead of signaling an error.
5250 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
5252 * s/msdos.h: Update copyright notice.
5254 * dosfns.h: Update copyright notice.
5256 * dosfns.c: Update copyright notice.
5258 * msdos.c: Update copyright notice.
5260 2001-03-02 Gerd Moellmann <gerd@gnu.org>
5262 * xterm.c (glyph_rect): New function.
5263 (XTmouse_position): Use it to raise the threshold for mouse
5264 movement event generation.
5266 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5268 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
5269 specifies (reverse . t), reverse the initial screen colors.
5270 (IT_set_frame_parameters): If the property is foreground-color,
5271 but we are reversing the colors, set bg_set, not fg_set.
5272 Likewise for setting background-color and reversing: set fg_set.
5273 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
5276 * xfaces.c (Finternal_set_lisp_face_attribute)
5277 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
5280 2001-03-02 Gerd Moellmann <gerd@gnu.org>
5282 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
5283 to a single slash in the middle of file names.
5285 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
5286 Accept only alphanumeric time zone names.
5288 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
5290 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
5291 a widget to zero height.
5293 2001-03-01 Gerd Moellmann <gerd@gnu.org>
5295 * window.c (Fwindow_end): Call move_it_past_eol only if
5296 ending up on a partially visible line.
5298 2001-03-01 Dave Love <fx@gnu.org>
5300 * ccl.c (Fccl_execute): Doc fix.
5302 2001-03-01 Gerd Moellmann <gerd@gnu.org>
5304 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
5305 of the tool bar before calling x_figure_window_size.
5307 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
5308 NULL after destroying it, otherwise XTread_socket can access a
5309 destroyed widget when input is unblocked.
5311 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
5313 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
5314 same name as before, although there was a change in fontsets.
5316 2001-02-28 Ken Raeburn <raeburn@gnu.org>
5318 * lisp.h (Fframe_parameter): Declare.
5320 * window.c (set_window_buffer): Field vscroll is an int, not a
5323 2001-02-28 Gerd Moellmann <gerd@gnu.org>
5325 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
5328 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
5331 * alloc.c (toplevel): Include process.h.
5332 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
5333 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
5334 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
5335 (allocate_vector, allocate_hash_table, allocate_window)
5336 (allocate_frame, allocate_process, allocate_other_vector):
5338 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
5339 (mark_maybe_pointer): New function.
5340 (mark_memory): Also mark Lisp data to which only pointers
5341 remain and not Lisp_Objects.
5342 (min_heap_address, max_heap_address): New variables.
5343 (mem_find): Return MEM_NIL if START is below min_heap_address or
5344 above max_heap_address.
5345 (mem_insert): Compute min_heap_address and max_heap_address.
5347 * process.c (make_process): Use allocate_process.
5349 * frame.c (make_frame): Use allocate_frame.
5351 * window.c (make_window, make_dummy_parent): Use allocate_window.
5352 (Fcurrent_window_configuration): Use allocate_other_vector.
5354 * lisp.h (allocate_vectorlike): Remove prototype.
5355 (allocate_vector, allocate_other_vector, allocate_frame)
5356 (allocate_window, allocate_process, allocate_hash_table):
5359 * fns.c (Fdelete, larger_vector): Use allocate_vector.
5360 (make_hash_table, copy_hash_table): Use allocate_hash_table.
5362 2001-02-27 Kenichi Handa <handa@etl.go.jp>
5364 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
5365 treat the produced bytes as a valid multibyte sequence.
5367 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
5368 (ccl_driver) <CCL_WriteMultibyteChar2>:
5369 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
5370 <ccl_finish>: Set ccl->eight_bit_control properly.
5372 * ccl.h (struct ccl_program): New member eight_bit_control.
5374 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
5376 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
5377 accessible_keymaps_char_table.
5378 (accessible_keymaps_char_table): Obey `is_metized'.
5379 (where_is_internal, Fwhere_is_internal): Don't confuse int and
5382 2001-02-26 Gerd Moellmann <gerd@gnu.org>
5384 * dispnew.c: Check HAVE_TERM_H before including term.h.
5386 2001-02-24 Andrew Innes <andrewi@gnu.org>
5388 * makefile.w32-in: Update copyright notice.
5390 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
5392 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
5394 2001-02-24 Kenichi Handa <handa@etl.go.jp>
5396 * Makefile.in (lisp): Add international/utf-8.elc.
5398 * fontset.c (Fnew_fontset): Fix handling of the case that an
5399 element of FONTLIST is a cons of family and registry.
5401 2001-02-23 Jason Rumney <jasonr@gnu.org>
5403 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
5404 to height unconditionally.
5406 * w32term.c (x_set_glyph_string_background_width): Extend the
5407 background face to the end of the drawing area in the text area, only.
5408 (x_insert_glyphs): Call window_box_left to obtain the left
5409 x-coordinate of the area to shift.
5411 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
5414 2001-02-22 Andrew Innes <andrewi@gnu.org>
5416 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
5417 ($(BLD)\dispnew.obj):
5418 ($(BLD)\editfns.obj):
5419 ($(BLD)\fileio.obj):
5420 ($(BLD)\filelock.obj):
5421 ($(BLD)\keyboard.obj):
5422 ($(BLD)\w32proc.obj):
5423 ($(BLD)\process.obj):
5424 ($(BLD)\sysdep.obj): Ditto.
5426 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
5428 ($(BLD)/dispnew.$(O)):
5429 ($(BLD)/editfns.$(O)):
5430 ($(BLD)/fileio.$(O)):
5431 ($(BLD)/filelock.$(O)):
5432 ($(BLD)/keyboard.$(O)):
5433 ($(BLD)/w32proc.$(O)):
5434 ($(BLD)/process.$(O)):
5435 ($(BLD)/sysdep.$(O)): Ditto.
5437 2001-02-22 Gerd Moellmann <gerd@gnu.org>
5439 * xdisp.c (forward_to_next_line_start): When taking the shortcut
5440 at the start of the function, check that the \n in it->c is
5441 from the iterator's current position.
5443 * xdisp.c (handle_single_display_prop): Add parameter
5444 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
5445 properties which replace the display of text with something else.
5446 (handle_display_prop): Call handle_single_display_prop with
5447 additional argument saying if we already replaced text display
5448 with something else. Use AREF.
5449 (with_echo_area_buffer_unwind_data, display_menu_bar)
5450 (decode_mode_spec_coding): Use AREF and ASIZE.
5452 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
5453 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
5454 * vmstime.h: Files removed.
5456 * unexencap.c, unexfx2800.c: Files removed.
5458 * dispnew.c (direct_output_for_insert): Give up if we are showing
5459 a message or just cleared the message because we might need to
5460 resize the echo area window or display an empty echo area.
5462 2001-02-21 Gerd Moellmann <gerd@gnu.org>
5464 * xdisp.c (redisplay_internal): Do the
5465 mark_window_display_accurate after all windows have been
5466 redisplayed because this call resets flags in buffers which are
5467 needed for proper redisplay.
5469 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
5470 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
5473 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5474 busy_window to hourglass_window, busy_p to hourglass_p.
5476 * msdos.h (struct x_output): Rename busy_window to
5477 hourglass_window, busy_p to hourglass_p.
5479 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5480 busy_window to hourglass_window, busy_p to hourglass_p.
5482 * xfns.c: Rename everything containing *busy_cursor* and similar
5484 (syms_of_w32fns): Rename x-busy-pointer-shape to
5485 x-hourglass-pointer-shape, display-busy-cursor to
5486 display-hourglass, busy-cursor-delay to hourglass-delay.
5488 * w32fns.c: Rename everything containing *busy_cursor* and similar
5490 (syms_of_w32fns): Rename x-busy-pointer-shape to
5491 x-hourglass-pointer-shape, display-busy-cursor to
5492 display-hourglass, busy-cursor-delay to hourglass-delay.
5494 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
5497 * dispextern.h (start_hourglass, cancel_hourglass)
5498 (display_hourglass_p): Renamed from *busy_cursor*.
5500 2001-02-20 Gerd Moellmann <gerd@gnu.org>
5502 * keyboard.c (read_char): When an event from unread-command-events
5503 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
5505 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
5506 equal to the current buffer.
5508 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
5509 nil, otherwise we're left with truncate_lines t when a message
5510 is printed with message-truncate-lines bound to t.
5512 2001-02-19 Gerd Moellmann <gerd@gnu.org>
5514 * window.c (Fmove_to_window_line): Undo last change.
5515 (displayed_window_lines): Call line_bottom_y to determine
5516 the line's bottom position.
5518 * dispextern.h (line_bottom_y): Add prototype.
5520 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
5521 (pos_visible_p): Use it.
5523 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
5524 set redisplaying_p to 0 here instead of in Frecursive_edit.
5525 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
5528 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
5530 (syms_of_xdisp): Initialize new variables.
5531 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
5532 Specbind `inhibit-menubar-update' when updating the menu bar.
5534 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
5537 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
5540 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
5543 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
5544 to the start of the file.
5546 2001-02-16 Gerd Moellmann <gerd@gnu.org>
5548 * window.c (set_window_buffer): Fix last change.
5550 * window.c (set_window_buffer): Set window's vscroll to 0.
5552 * window.c (coordinates_in_window): Increase width of area
5553 where the vertical line can be dragged.
5555 * xterm.c (x_set_glyph_string_background_width): Extend the
5556 background face to the end of the drawing area in the text
5559 * xdisp.c (handle_single_display_prop): Set iterator's position
5560 to where the `display' property starts, like for images.
5561 (dump_glyph): New function.
5562 (dump_glyph_row): Use it. Dump info about marginal areas.
5564 * dispnew.c (direct_output_for_insert): Recognize more cases where
5565 glyphs can be written instead of being inserted.
5567 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
5568 the left x-coordinate of the area to shift.
5570 * dired.c (directory_files_internal): Set result list to nil
5573 2001-02-15 Kenichi Handa <handa@etl.go.jp>
5575 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
5576 invalid multibyte sequence, treat *SRC as a character of
5579 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
5581 * textprop.c (Fset_text_properties): Doc fix.
5583 2001-02-15 Gerd Moellmann <gerd@gnu.org>
5585 * dispnew.c (update_text_area): Undo change of 2001-01-12.
5587 2001-02-14 Dave Love <fx@gnu.org>
5589 * coding.c: Doc and message fixes.
5591 2001-02-14 Andrew Innes <andrewi@gnu.org>
5593 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
5594 Emacs frame above the screen size.
5596 2001-02-14 Gerd Moellmann <gerd@gnu.org>
5598 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
5600 2001-02-13 Gerd Moellmann <gerd@gnu.org>
5602 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
5603 case that TO ends up beyond ZV after running before-change-functions.
5605 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
5606 the selected window if it is showing the buffer in question.
5608 * dired.c (directory_files_internal): Initialize errno.
5609 (toplevel): Include errno.h.
5611 2001-02-13 Kenichi Handa <handa@etl.go.jp>
5613 * xfaces.c (best_matching_font): New parameter width_ratio.
5614 Multiply avgwidth by width_ratio.
5615 (choose_face_font): Call best_matching_font with width_ratio
5616 calculated from the column width of C.
5618 2001-02-12 Andrew Innes <andrewi@gnu.org>
5620 The following changes are to draw box lines inside characters area
5621 if line-width is negative.
5623 * w32term.c (x_produce_image_glyph): Pay attention to the case that
5624 face->box_line_width is negative.
5625 (x_produce_stretch_glyph): Likewise.
5626 (x_produce_glyphs): Likewise.
5627 (x_estimate_mode_line_height): Likewise.
5628 (x_draw_glyph_string_background): Likewise.
5629 (x_draw_glyph_string_foreground): Likewise.
5630 (x_draw_composite_glyph_string_foreground): Likewise.
5631 (x_draw_glyph_string_box): Likewise.
5632 (x_draw_image_foreground): Likewise.
5633 (x_draw_image_relief): Likewise.
5634 (x_draw_image_foreground_1): Likewise.
5635 (x_draw_image_glyph_string): Likewise.
5637 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5639 The following changes are to draw box lines inside characters area
5640 if line-width is negative.
5642 * xterm.c (x_produce_image_glyph): Pay attention to the case that
5643 face->box_line_width is negative.
5644 (x_produce_stretch_glyph): Likewise.
5645 (x_produce_glyphs): Likewise.
5646 (x_estimate_mode_line_height): Likewise.
5647 (x_draw_glyph_string_background): Likewise.
5648 (x_draw_glyph_string_foreground): Likewise.
5649 (x_draw_composite_glyph_string_foreground): Likewise.
5650 (x_draw_glyph_string_box): Likewise.
5651 (x_draw_image_foreground): Likewise.
5652 (x_draw_image_relief): Likewise.
5653 (x_draw_image_foreground_1): Likewise.
5654 (x_draw_image_glyph_string): Likewise.
5656 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
5657 and :line-width can be negative.
5658 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
5660 2001-02-09 Jason Rumney <jasonr@gnu.org>
5662 * w32term.c (w32_encode_char): Treat eight bit graphic and control
5663 characters the same as ASCII and latin-1.
5664 (x_display_and_set_cursor): Check for the focus frame's selected
5665 window instead of selected_window.
5666 (x_after_update_window_line): Don't clear if frame's internal
5667 border width is zero.
5668 (x_new_font): Don't change a tooltip's size.
5669 (w32_initialize): Set char_ins_del_ok to 1.
5671 * w32fns.c (Fx_show_tip): Fix calls to make_number.
5672 (x_set_font): If font hasn't changed, avoid recomputing
5673 faces and other things.
5674 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
5675 (Fx_create_frame): Add the tool bar height to the frame height.
5676 (x_create_tip_frame): Prevent changing the tooltip's
5677 background color by specifying a color for the default font
5679 (Qcancel_timer): New variable.
5680 (syms_of_w32fns): Initialize and staticpro it.
5681 (Fx_hide_tip, Fx_show_tip): Use it.
5682 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5684 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
5686 * w32.c (init_environment): Duplicate local string before putenv.
5688 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
5690 * charset.c (Fstring): A typo.
5692 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5694 * charset.c (Fstring): If all arguments are less than 256, return
5697 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
5698 return a unibyte string.
5700 * coding.c (code_convert_region): After detecting a coding, if
5701 nothing found, set coding->composing to COMPOSITION_NO.
5702 (decode_coding_string): Likewise.
5704 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
5706 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
5709 2001-02-07 Kenichi Handa <handa@etl.go.jp>
5711 * charset.c (parse_str_to_multibyte): New function.
5713 * charset.h (parse_str_to_multibyte): Extern it.
5715 * print.c (print_string): If we are going to print a unibyte
5716 string into a multibyte buffer, convert the string to multibyte by
5719 2001-02-06 Andrew Innes <andrewi@gnu.org>
5721 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
5722 been created. It seems we can get sent window messages such as
5723 WM_ERASEBKGND before we properly update a frame.
5725 2001-02-06 Gerd Moellmann <gerd@gnu.org>
5727 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
5728 Avoid some unnecessary cursor positioning.
5730 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5732 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
5733 (LFACE_AVGWIDTH): New macro.
5735 (check_lface_attrs): Check LFACE_AVGWIDTH.
5736 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
5737 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
5738 (merge_face_vectors): Check LFACE_AVGWIDTH.
5739 (Finternal_make_lisp_face): Use AREF.
5740 (xm_set_menu_resources_from_menu_face)
5741 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
5742 (Finternal_lisp_face_empty_p): Use AREF.
5743 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
5744 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
5745 Compare average widths..
5746 (best_matching_font): Arrange for comparing average widths.
5748 * dispextern.h (enum lface_attribute_index):
5749 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
5751 2001-02-05 Dave Love <fx@gnu.org>
5753 * puresize.h: Revert last change following loadup.el change.
5755 2001-02-05 Andrew Innes <andrewi@gnu.org>
5757 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
5758 invocation of temacs, to work with Windows 2000.
5759 (bootstrap-emacs): Ditto.
5761 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5763 * xterm.c (x_display_and_set_cursor): Check for the focus
5764 frame's selected window instead of selected_window.
5766 * xdisp.c (try_scrolling): If point is in the line below the
5767 window, make sure to move the iterator at least a canonical
5770 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
5772 2001-02-05 Kenichi Handa <handa@etl.go.jp>
5774 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
5775 If invalid, execute CCL_INVALID_CMD.
5776 (ccl_driver): If the CCL program is terminated because of
5777 CCL_STAT_INVALID_CMD, copy the remaining source data to the
5778 destination instead of throwing them away.
5780 2001-02-02 Gerd Moellmann <gerd@gnu.org>
5782 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
5783 faces and other things.
5785 * xdisp.c (get_next_display_element): Fix case of empty
5786 display table entry.
5788 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
5790 * editfns.c (Fconstrain_to_field): Doc fix.
5792 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
5793 into `thoroughly', to make it consistent with the doc string.
5795 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
5797 2001-02-01 Gerd Moellmann <gerd@gnu.org>
5799 * search.c (search_buffer): Call set_search_regs with a byte
5800 position, not a character position.
5802 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
5805 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
5807 * frame.c (Fmodify_frame_parameters): Doc fix.
5809 2001-01-31 Gerd Moellmann <gerd@gnu.org>
5811 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
5812 identifier which is not reserved by Standard C.
5814 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
5816 * window.c (enum window_part): New enumeration.
5817 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
5819 (coordinates_in_window): Return an enumerator from enum
5820 window_part. Fix handling of right scroll bar.
5821 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
5822 `right-fringe' instead of `left-bitmap-area' and
5823 `right-bitmap-area'. Use enumerators from enum window_part
5824 instead of hard-coded integers.
5825 (check_window_containing, window_from_coordinates):
5826 Use enumerators from enum window_part instead of hard-coded integers.
5827 (syms_of_window): Replace Qleft_bitmap_area and
5828 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
5830 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
5832 * editfns.c (Fformat_time_string): Doc fix.
5834 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
5836 * keymap.c (Fwhere_is_internal): Use the first valid binding
5837 if no ascii binding is found (when firstonly is t).
5839 2001-01-31 Gerd Moellmann <gerd@gnu.org>
5841 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
5842 instead of Finteractive_p.
5844 * lisp.h (interactive_p): Add prototype.
5846 * eval.c (interactive_p): New function.
5847 (Finteractive_p): Use it.
5849 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
5851 2001-01-31 Dave Love <fx@gnu.org>
5853 * .gdbinit (hook-run): Define to run xreload.
5855 * textprop.c (Fset_text_properties): Fix newline in doc string.
5857 2001-01-30 Gerd Moellmann <gerd@gnu.org>
5859 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
5860 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
5862 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
5863 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
5864 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
5866 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
5869 2001-01-30 Dave Love <fx@gnu.org>
5871 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
5874 2001-01-29 Gerd Moellmann <gerd@gnu.org>
5876 * bytecode.c (Fbyte_code) <Bcurrent_column>:
5877 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
5879 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
5881 * textprop.c (Fset_text_properties): Doc fix.
5883 2001-01-29 Gerd Moellmann <gerd@gnu.org>
5885 * xdisp.c (forward_to_next_line_start): Remove xassert.
5887 2001-01-29 Jason Rumney <jasonr@gnu.org>
5889 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
5890 returning without releasing it.
5892 2001-01-29 Kenichi Handa <handa@etl.go.jp>
5894 * w32fns.c (w32_font_match): Allocate three more bytes to regex
5895 for '^', '$', and '\0'.
5897 2001-01-28 Andrew Choi <akochoi@i-cable.com>
5899 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
5900 regex for '^', '$', and '\0'.
5902 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
5903 only if current_sblock has been initialized.
5905 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
5906 terminal frame even if it is the only visible frame.
5908 2001-01-28 Kenichi Handa <handa@etl.go.jp>
5910 * fontset.c (font_family_registry): Even if FONTNAME conform to
5911 XLFD, if it specifies other fields than family and registry,
5912 return FONTANME. New argument FORCE if nonzero cancel that feature.
5913 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
5914 a signle byte character. Don't set FAMILY part to nil here.
5915 It is handled by the caller choose_face_font.
5916 (Fnew_fontset): Call font_family_registry with FORCE 0.
5917 (Fset_fontset_font): Likewise.
5919 2001-01-27 Gerd Moellmann <gerd@gnu.org>
5921 * xdisp.c (display_line): Don't treat a newline as fitting
5924 2001-01-26 Gerd Moellmann <gerd@gnu.org>
5926 * window.c (size_window): Set the window's orig_top to nil when
5927 changing heights, so that a future shrink_mini_window won't
5928 restore a bogus height.
5930 * frame.c (do_switch_frame): If selected frame has a mini-window,
5931 resize that to exact size.
5933 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
5935 * xdisp.c (display_line): Simplify check for glyphs fitting
5936 entirely in the line.
5938 * xfns.c (xic_style): New variable.
5939 (create_frame_xic): Move static variable to global scope for
5940 the case that `static' gets defined away.
5942 2001-01-26 Kenichi Handa <handa@etl.go.jp>
5944 * coding.c (decode_coding): Set a flag for inhibiting
5946 (code_convert_region): Always set saved_coding_symbol.
5947 (decode_coding_string): Likewise. Update coding->symbol when we
5948 encounter a inconsistent eol by the same way as code_convert_region.
5950 2001-01-25 Gerd Moellmann <gerd@gnu.org>
5952 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
5955 * xterm.c (x_after_update_window_line): Don't clear if frame's
5956 internal border width is zero.
5957 (x_clear_area): New function.
5958 (x_after_update_window_line, x_clear_end_of_line)
5959 (x_scroll_bar_create, x_scroll_bar_set_handle)
5960 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
5961 instead of XClearArea.
5963 * xterm.h (x_clear_area): Add prototype.
5965 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
5966 which doesn't seem necessary anymore with Lesstif 0.92.
5968 2001-01-25 Dave Love <fx@gnu.org>
5970 * puresize.h (BASE_PURESIZE): Up to 720000.
5972 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
5974 2001-01-25 Gerd Moellmann <gerd@gnu.org>
5976 * xdisp.c (echo_area_display): Don't call redisplay_internal
5977 when Emacs is shutting down. We can't run hooks etc. that
5978 would be necessary to do a redisplay.
5980 * lread.c (read_integer): Use type EMACS_INT instead of int.
5982 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
5984 * ccl.c (ccl_driver): Fix last change.
5986 2001-01-25 Kenichi Handa <handa@etl.go.jp>
5988 * ccl.h (sturct ccl_program): New member suppress_error.
5990 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
5991 insert error message to the output.
5992 (setup_ccl_program): Initialize ccl->suppress_error to 0.
5994 * coding.h (struct coding_system): New member suppress_error.
5996 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
5997 (Fset_terminal_coding_system_internal): Set the member
5998 suppress_error to 1.
5999 (Fset_safe_terminal_coding_system_internal): Likewise.
6001 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
6003 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
6004 as if it was a `charset'.
6006 2001-01-24 Gerd Moellmann <gerd@gnu.org>
6008 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
6009 value in where_is_cache; the next lookup in the cache returns
6010 something bogus if we do.
6012 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6014 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
6015 if HAVE_WINDOW_SYSTEM isn't defined.
6017 2001-01-24 Gerd Moellmann <gerd@gnu.org>
6019 * fns.c (sweep_weak_table): Fix code taking items out of
6020 the hash collision chain. Some cleanup.
6022 * xterm.c (x_new_font): Don't change a tooltip's size.
6024 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
6025 background color by specifying a color for the default font
6028 2001-01-24 Kenichi Handa <handa@etl.go.jp>
6030 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
6031 a workaround for SunOS 4's cc.
6032 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
6033 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
6034 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
6037 2001-01-23 Gerd Moellmann <gerd@gnu.org>
6039 * xterm.c (x_set_window_size_1): New function extracted from
6041 (x_set_window_size): Use it.
6042 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
6043 doesn't have a widget, like tooltips.
6045 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
6047 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
6049 2001-01-23 Kenichi Handa <handa@etl.go.jp>
6051 * fns.c (Fset_char_table_default): Fix to make sub char-table
6054 2001-01-22 Gerd Moellmann <gerd@gnu.org>
6056 * xdisp.c (build_desired_tool_bar_string): Make sure we have
6057 a desired tool bar string, even if there are no tool bar items.
6059 * xdisp.c (Ftool_bar_lines_needed): New function.
6060 (syms_of_xdisp): Defsubr it.
6062 * editfns.c (Fformat): Don't extend text properties from arguments
6063 to padding chars in the result.
6065 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
6067 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
6069 2001-01-20 Andrew Innes <andrewi@gnu.org>
6071 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
6072 (w32_initialize): Don't set term hooks that aren't actually needed
6075 * xfaces.c (realize_default_face):
6077 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
6079 * xdisp.c (handle_single_display_prop): Remove references to
6080 FRAME_W32_CONSOLE_P.
6082 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
6084 * frame.h (output_method): Remove output_w32_console method.
6085 (FRAME_W32_CONSOLE_P): Remove macro.
6087 * frame.c (Qw32_console): Remove variable.
6088 (Fframep): Remove references to it.
6089 (syms_of_frame): Ditto.
6090 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
6092 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
6095 2001-01-20 Kenichi Handa <handa@etl.go.jp>
6097 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
6099 2001-01-19 Andrew Innes <andrewi@gnu.org>
6101 * w32.c (init_environment): Add a version-independent site-lisp
6102 directory to EMACSLOADPATH, after the version dependent one.
6104 2001-01-19 Gerd Moellmann <gerd@gnu.org>
6106 * editfns.c (Fbuffer_substring): Doc fix.
6108 * xdisp.c (message_dolog, message2, message2_nolog):
6109 Rename parameter LEN to NBYTES.
6111 2001-01-19 Kenichi Handa <handa@etl.go.jp>
6113 * charset.c (strwidth): Use c_string_width.
6114 (c_string_width): New function.
6115 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
6118 * charset.h (c_string_width, lisp_string_width): Extern them.
6120 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
6122 * indent.c (check_composition): Check validity of composition.
6124 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
6125 characters by calling c_string_width.
6126 (x_consider_frame_title): Get byte length of frame tile string
6128 (display_mode_element): Pay attention to width of non-ASCII
6129 characters by calling strwidth.
6131 2001-01-18 Gerd Moellmann <gerd@gnu.org>
6133 * xfns.c (Qcancel_timer): New variable.
6134 (syms_of_xfns): Initialize and staticpro it.
6135 (Fx_hide_tip, Fx_show_tip): Use it.
6136 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6138 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
6140 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
6142 * window.h (WINDOW_LIVE_P): New macro.
6144 * window.c (window_size_fixed): New variable.
6145 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
6148 * eval.c (specbind): If binding a per-buffer variable which
6149 doesn't have a buffer-local value in the current buffer, change
6150 the global value by changing the value of the symbol bound in all
6151 buffers not having their own value, to make it consistent with
6152 what happens with other buffer-local variables.
6154 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
6156 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
6157 when searching for a newline.
6159 2001-01-18 Kenichi Handa <handa@etl.go.jp>
6161 * xdisp.c (display_string): Fix previous change.
6163 2001-01-18 Jason Rumney <jasonr@gnu.org>
6165 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
6166 GLYPH_DEBUG is defined.
6167 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
6168 true for images with `:ascent 100'.
6169 (x_set_mouse_face_gc): If the last used mouse face has gone in the
6170 meantime, use face MOUSE_FACE_ID.
6171 If first glyph isn't a character glyph, use the ASCII NUL
6172 character to determine the face.
6173 (expose_area): Do not treat left margin specially.
6174 (note_mode_line_highlight): If no local_map, check global keymap.
6175 (note_mouse_highlight): Initialize overlay.
6176 (clear_mouse_face): Don't return if tip_frame is non-nil.
6177 (show_scroll_bars): Remove unused function.
6178 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
6179 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
6181 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
6182 (x_free_frame_resources): Unload relief colors.
6184 2001-01-17 Gerd Moellmann <gerd@gnu.org>
6186 * xdisp.c (forward_to_next_line_start): Avoid calling
6187 get_next_display_element when the newline is already found.
6188 This may change the iterator's position, when its current position is
6189 equal to the iterator's stop_charpos.
6191 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
6192 zero, use this method only at the end of a line.
6194 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
6195 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
6196 if SCALABLE_FONTS_P is set.
6198 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
6199 so that scalable fonts are included.
6201 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
6202 In the cache, use a key containing the information if scalable
6204 (x_load_font): Adapt to change of keys in the font cache.
6206 2001-01-17 Kim F. Storm <storm@filanet.dk>
6208 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
6209 XListFonts to take advantage of font caching.
6211 * xterm.c (x_list_fonts): Ensure caching font information when
6212 called for a null frame, which is the case frequently when Emacs
6215 2001-01-17 Gerd Moellmann <gerd@gnu.org>
6217 * xfns.c (QCconversion): Replaces QCalgorithm.
6219 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
6221 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
6224 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
6225 not everything could be displayed.
6227 * line.h, x-list-font.c: Files removed because unused.
6229 2001-01-17 Andrew Innes <andrewi@gnu.org>
6231 * dired.c (directory_files_internal): Convert result from readdir
6232 to a unibyte string initially, to avoid possible misinterpretation
6233 of some bytes as the internal form of Emacs characters.
6235 2001-01-17 Kenichi Handa <handa@etl.go.jp>
6237 * fns.c (concat): Be sure to avoid putting the same `composition'
6238 property on the adjacent regions.
6240 2001-01-16 Gerd Moellmann <gerd@gnu.org>
6242 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
6243 (Fscroll_right, Fscroll_left): Set it here instead, if called
6246 * buffer.c (Fset_buffer_modified_p): Set buffer's
6247 prevent_redisplay_optimizations_p flag.
6249 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
6250 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
6251 with additional arg.
6253 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
6256 * xdisp.c (redisplay_preserve_echo_area): Add parameter
6257 FROM_WHERE, for debugging.
6259 2001-01-16 Kenichi Handa <handa@etl.go.jp>
6261 * ccl.c (Fregister_ccl_program): Handle the return value of
6262 resolve_symbol_ccl_program correctly.
6263 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
6265 2001-01-15 Gerd Moellmann <gerd@gnu.org>
6267 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
6268 has gone in the meantime, use face MOUSE_FACE_ID.
6270 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
6271 If x_display_info_for_display returns null, don't try to close
6272 the display; we didn't open it.
6274 * dispnew.c (save_or_restore_current_matrices): Function removed.
6275 (save_current_matrix, restore_current_matrix): New functions.
6276 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
6277 restore the frame's current matrix. Due to the glyph pointer
6278 setup done in adjust_glyph_matrix, there is no easy way to make
6279 saving the current matrix in the desired matrix generally correct,
6282 2001-01-15 Kenichi Handa <handa@etl.go.jp>
6284 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
6286 (display_line): Optimize for wide characters.
6287 (display_string): Don't try to display a multi-column character
6288 partially. On ttys, produce more than one truncation glyph for
6289 multi-column characters that don't fit on the line.
6291 2001-01-13 Kenichi Handa <handa@etl.go.jp>
6293 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
6294 Define it instead of WORDS_BIGENDIAN. Caller changed.
6296 2001-01-13 Jason Rumney <jasonr@gnu.org>
6298 * w32fns.c (Fimage_size, image_ascent, lookup_image)
6299 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
6300 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6301 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
6303 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
6304 (x_draw_image_relief, x_draw_image_foreground_1)
6305 (x_draw_image_glyph_string): Adapt to change of image margins.
6307 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
6310 * w32bdf.c (search_file_line, get_cached_font_char)
6311 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
6313 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
6315 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
6316 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
6317 (Fw32_send_sys_command): Remove unused variables.
6318 (w32_msg_pump): Add parentheses.
6320 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
6321 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
6324 2001-01-12 Gerd Moellmann <gerd@gnu.org>
6326 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
6327 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
6328 being a pair of margins.
6329 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
6330 to DEFVAR_LISP. Extend doc.
6332 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
6334 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
6335 pair of integers `(X . Y)', use X for the horizontal and Y for the
6337 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
6338 (parse_image_spec): Check it.
6339 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6340 (tiff_format, gif_format, gs_format):
6341 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
6343 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
6344 (x_draw_image_relief, x_draw_image_foreground_1)
6345 (x_draw_image_glyph_string): Adapt to the change of image margins.
6347 * dispextern.h (struct image): Replace member `margin' with
6348 `hmargin' and `vmargin'.
6350 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
6353 * dispnew.c (update_text_area): Put code which decrements the
6354 stop position when the row's face extends to the end of the
6357 * xfns.c (x_set_mouse_color): Fix color allocation.
6359 * keyboard.c: Call get_local_map with new argument list.
6361 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
6363 * intervals.h (enum map_property): Removed.
6364 (get_local_map): Change prototype.
6366 * keymap.c: Call get_local_map with new argument list.
6367 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
6369 2001-01-11 Gerd Moellmann <gerd@gnu.org>
6371 * xdisp.c (build_desired_tool_bar_string): Correct the computation
6372 of the size needed for the tool bar string. For the last image,
6373 use a `display' property that reaches to the end of the string.
6375 * xselect.c (selection_request_dpyinfo): New variable.
6376 (x_handle_selection_request): Set it.
6377 (x_selection_request_lisp_error): Don't call
6378 x_decline_selection_request if selection request's display has
6381 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
6382 Do the unregister_colors before calling XFreeColors.
6384 2001-01-10 Dave Love <fx@gnu.org>
6386 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
6387 ${SOME_MACHINE_LISP}, not ${lisp}.
6389 2001-01-10 Gerd Moellmann <gerd@gnu.org>
6391 * xdisp.c (display_line): On ttys, produce more than one truncation
6392 glyph for multi-column characters that don't fit on the line.
6394 * xselect.c (x_reply_selection_request): Add a comment.
6396 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
6397 XkbGetNames instead of XkbGetKeyboard.
6399 2001-01-10 Dave Love <fx@gnu.org>
6401 * sysdep.c (random): Revert the declaration.
6403 2001-01-09 Gerd Moellmann <gerd@gnu.org>
6405 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
6406 Call function string_bytes.
6407 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
6409 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
6410 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
6411 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
6412 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
6414 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
6415 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
6416 after sweeping strings, and at the end.
6417 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
6419 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
6420 ensure that pop_message is called.
6422 * keyboard.c (Fexecute_extended_command): Use a
6423 record_unwind_protect to ensure that pop_message is called.
6425 * lisp.h (push_message_unwind): Add prototype.
6427 * xdisp.c (push_message_unwind): New function.
6429 * fileio.c (do_auto_save_unwind): Do the pop_message here
6430 instead of in Fdo_auto_save.
6431 (Fdo_auto_save): Don't call pop_message.
6433 2001-01-08 Ken Raeburn <raeburn@gnu.org>
6435 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
6438 2001-01-08 Gerd Moellmann <gerd@gnu.org>
6440 * window.c (window_scroll_pixel_based): Adjust glyph matrices
6441 when increasing window's vscroll.
6443 * macros.c (Qkbd_macro_termination_hook): New variable.
6444 (syms_of_macros): Initialize and staticpro it.
6445 (pop_kbd_macro): Run kbd-macro-termination-hook.
6447 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
6449 2001-01-07 Dave Love <fx@gnu.org>
6451 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
6452 arglist, for documentation's sake.
6454 2001-01-06 Andrew Innes <andrewi@gnu.org>
6456 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
6459 2001-01-05 Andrew Innes <andrewi@gnu.org>
6461 * term.c (update_end): Don't check updating_frame; for some reason
6462 this can be 0 sometimes, such as after dismissing a popup menu,
6463 and isn't necessary given the explicit frame argument.
6465 2001-01-05 Gerd Moellmann <gerd@gnu.org>
6467 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
6468 on some systems, and an unsigned long on others, like FreeBSD 4.1.
6470 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6472 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
6474 * xfns.c (x_create_tip_frame): Preserve the value of
6475 face_change_count around the creation of the tip frame.
6477 * xfns.c (last_show_tip_args): New variable.
6478 (compute_tip_xy): New function.
6479 (Fx_show_tip): Reuse an existing tip frame, if possible.
6480 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
6482 2001-01-04 Dave Love <fx@gnu.org>
6484 * editfns.c (Fformat): Doc fix.
6486 * systime.h (set_file_times): Prototype.
6488 * widget.h (EmacsFrameSetCharSize_): Prototype.
6490 * sysdep.c (random, srandom): Declare explicitly.
6492 * dispextern.h (move_it_vertically_backward): Declare.
6494 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6496 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
6497 like in Fx_create_frame.
6499 * xfaces.c (set_font_frame_param): Don't do anything for
6500 non-graphical frames.
6502 * window.c (Fdelete_other_windows): Set window's window_end_valid
6503 to nil when changing the window's start. Don't change the
6504 window's start when its top position hasn't changed. If we do,
6505 this will set the window's optional_new_start, which act's like a
6506 force_start during redisplay with C-x 1 M-> under particular
6507 circumstances (see report from Per Starback to emacs-pretest-bug
6510 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6512 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
6513 short cut at the start of the function. Add an assertion.
6514 (reseat_at_next_visible_line_start): Add an assertion.
6516 * window.c (Frecenter): When changing the window start, set the
6517 window's window_end_valid to nil.
6518 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
6520 * dispextern.h (move_it_past_eol): Add prototype.
6522 * xdisp.c (move_it_past_eol): New function.
6524 * window.c (Fwindow_end): Doc fix.
6526 2001-01-03 Dave Love <fx@gnu.org>
6528 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
6530 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6532 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
6533 the enabled_p flag of the glyph row at window_end_vpos to 0.
6534 (handle_single_display_prop): Fix last change.
6536 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6538 * window.c (Frecenter): Doc fix.
6540 2001-01-02 Andrew Innes <andrewi@gnu.org>
6542 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
6544 * frame.h (output_method): Add output_w32_console method.
6545 (FRAME_W32_CONSOLE_P): New macro.
6547 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
6548 use output_w32_console method.
6549 (Qw32_console): New Lisp_Object.
6550 (Fframep): Return it.
6551 (syms_of_frame): Init it.
6552 (Fframe_parameters): Report w32console as font for w32_console frames.
6554 * xfaces.c (realize_default_face): Set face foreground and
6555 background to unspecified for w32_console frames.
6556 (realize_face): Realize face cache for w32_console frames.
6557 (realize_tty_face): Accept w32_console frames.
6559 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
6560 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
6561 necessary, even if running interactively.
6563 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
6566 * w32term.c (x_update_begin):
6570 (x_change_line_highlight):
6575 (w32_reassert_line_highlight):
6576 (w32_frame_rehighlight):
6577 (w32_frame_raise_lower): Do nothing if not w32 frame.
6579 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
6581 * w32fns.c (Fx_display_color_cells): Determine correct value, when
6582 system doesn't tell us directly.
6583 (Fx_display_visual_class): Implement properly.
6585 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6587 * window.c (Frecenter): Handle centering in graphical frames
6588 specially. Centering on the basis of line counts doesn't work
6589 reliably with variable-height lines.
6591 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6593 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
6596 * composite.c (run_composition_function): Remove unused var `val'.
6597 (update_compositions): Remove unused variable `hook'.
6599 * intervals.c (get_local_map): Remove unused variable `tem'.
6601 * doprnt.c (doprnt1): Remove unused variable `size'.
6603 * fns.c (Flength): Remove unused variable `tail'.
6604 (Fdelete): Remove unused variable `size'.
6606 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
6609 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
6611 * data.c (find_symbol_value): Remove extra 3rd argument in the
6612 call to swap_in_symval_forwarding.
6614 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
6616 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
6617 (trivial_regexp_p): Remove unused variable `c'.
6618 (boyer_moore): Remove unused variable `k'.
6620 * indent.c (current_column): Remove unused variable `stopchar'.
6621 (Fcompute_motion): Remove unused variable `contin'.
6623 * casefiddle.c (casify_object): Remove unused variable `tolen'.
6625 * dired.c (directory_files_internal): Fix a typo in a comment.
6626 Remove an unused variable `handler'.
6627 (file_name_completion): Remove unused function-scope variable `dp'.
6628 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
6631 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
6633 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
6635 (Fmarker_insertion_type): Remove unused variable `buf'.
6637 * insdel.c (make_gap): Remove unused variable `result'.
6639 * keyboard.c (record_char): Remove unused function-scope var `help'.
6640 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
6641 (menu_bar_items): Remove unused function-scope variable `tem'.
6643 * fontset.c (fontset_ref): Remove unused variable `i'.
6644 (fontset_set): Remove unused variables `j' and `tmp'.
6645 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
6646 (make_fontset_for_ascii_face): Remove unused variable `name'.
6647 (fs_load_font): Remove unused variable `font_idx'.
6648 (fs_query_fontset): Remove unused function-local variable `fontset'.
6649 (list_fontsets): Remove unused variable `tail'.
6650 (Fnew_fontset): Remove unused variables `family' and `registry'.
6651 (accumulate_font_info): Remove unused variable `tmp'.
6652 (Ffontset_font): Remove unused variable `id'.
6653 (syms_of_fontset): Remove unused variable `i'.
6655 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
6657 (lookup_image): Remove unused variable `file'.
6658 (xbm_load): Remove unused variables `bitmap_data', `height', and
6659 `width'. Remove function-local variable `i', leave the
6661 (gif_load): Remove unused variable `inc'.
6663 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
6664 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
6665 leave only the one in the inner block.
6667 * xfaces.c (face_fontset, realize_default_face): Remove unused
6669 (face_at_buffer_position): Remove unused variable `multibyte_p'.
6671 * term.c (encode_terminal_code): Remove unused variable `c'.
6673 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
6674 char *' instead of `char *'.
6676 * category.c (Fcategory_docstring): Remove unused variable `doc'.
6677 (Fget_unused_category): Remove unused variable `docstring_vector'.
6678 (Fchar_category_set): Remove unused variables `val', `charset',
6681 * coding.c (detect_coding_iso2022, setup_coding_system):
6682 Remove unused variable `i'.
6683 (detect_coding_mask): Remove unused variable `idx'.
6684 (detect_coding): Remove unused variable `i'.
6685 (ccl_coding_driver): Remove unused variable `result'.
6686 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
6687 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
6688 (encode_coding_string): Remove unused variables `gcpro1' and
6689 `saved_coding_symbol'.
6690 (Ffind_coding_systems_region_internal): Remove function-local
6691 variable args[], leave only the block-local one.
6692 (code_convert_region1): Remove unused variable `len'.
6694 * charset.c (char_printable_p): Remove unused variable `chars'.
6695 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
6696 (str_to_multibyte): Remove unused variable `c'.
6698 * window.c (size_window): Remove block-local variable `min_size'.
6700 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
6701 `header_line_height'.
6702 (append_space, extend_face_to_end_of_line): Declare `saved_what'
6703 enum display_element_type.
6705 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6707 * xterm.c (x_connection_closed): Catch X errors around all
6708 statements that call X. Save away the error message in a local copy.
6710 * xterm.c (x_connection_closed): Set handling_signal to 0 at
6713 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
6714 in or at the start of invisible text.
6716 * dispnew.c (update_window): Don't check_current_matrix_flags.
6718 2001-01-01 Jason Rumney <jasonr@gnu.org>
6720 * w32fns.c (x_figure_window_size): Do not allow new_height and
6721 new_width of frame to override specified values.
6723 2000-12-30 Kenichi Handa <handa@etl.go.jp>
6725 * composite.c (find_composition): Fix a code for searching backward.
6727 2000-12-29 Gerd Moellmann <gerd@gnu.org>
6729 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
6730 (update_window) [GLYPH_DEBUG]: Call it.
6731 (scrolling_window): Prevent including current rows which are below
6732 what's displayed in the window.
6734 * xdisp.c (try_window_reusing_current_matrix)
6735 <new start <= old start>: Disable rows in the current matrix
6736 which are below the window after scrolling.
6738 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
6739 is zero. It's not worth the complexity.
6740 (invisible_text_between_p): Put in #if 0 because unused.
6742 2000-12-28 Gerd Moellmann <gerd@gnu.org>
6744 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
6745 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
6747 * keyboard.c (echo_char): If C is an integer, always call
6748 push_key_description. Former code could signal an invalid
6751 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
6752 If set, print multibyte text.
6753 (Fsingle_key_description): Call push_key_description with
6754 FORCE_MULTIBYTE set.
6755 (describe_buffer_bindings): Likewise.
6757 * lisp.h (push_key_description): Add prototype.
6759 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
6760 around the call to redisplay_internal.
6762 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6764 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6766 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6768 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
6769 (ccl_driver): New local variable `extra_bytes'.
6771 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
6773 * coding.c (setup_coding_system):
6774 Initialize coding->spec.ccl.eight_bit_carryover.
6775 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
6777 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6779 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
6780 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
6781 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
6782 (decode_composition_emacs_mule): New function.
6783 (decode_coding_emacs_mule): Decode composition sequence by calling
6784 decode_composition_emacs_mule.
6785 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
6786 (encode_coding_emacs_mule): Changed from macro to function.
6787 If a text contains compositions, encode them correctly.
6788 (setup_coding_system): Set coding->commong_flags for emacs-mule so
6789 that decoding and encoding are required.
6791 2000-12-27 Gerd Moellmann <gerd@gnu.org>
6793 * xfaces.c (PT_PER_INCH): New macro.
6794 (xlfd_point_size): Compute real point size from font's pixel size.
6795 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
6798 * .gdbinit: Comment out the line pointing to the Lesstif source
6801 * window.c (Frecenter): Use displayed_window_lines instead
6802 of window_internal_height.
6804 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6805 instead of x-toolkit-scroll-bars-p.
6806 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6808 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6809 instead of x-toolkit-scroll-bars-p.
6810 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6812 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
6813 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
6814 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
6816 (add_window_display_history, add_frame_display_history)
6817 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
6818 (build_frame_matrix_from_leaf_window): Remove unused code.
6819 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
6821 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
6822 (update_window) [GLYPH_DEBUG]: Likewise.
6823 (syms_of_display): Defsubr dump-redisplay-history.
6825 2000-12-23 Gerd Moellmann <gerd@gnu.org>
6827 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
6828 the end of the prompt. Set echo_after_prompt to the offset
6829 of echoptr in echobuf.
6831 * xdisp.c (init_from_display_pos): Pop until the iterator's
6832 stack is empty; there may be frames for stretch or images
6835 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
6836 (save_or_restore_current_matrix): New function for the same
6837 purpose, but more efficient.
6838 (adjust_frame_glyphs_for_frame_redisplay): Use it.
6840 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
6842 * xdisp.c (syms_of_xdisp): Fix last change.
6844 2000-12-23 Gerd Moellmann <gerd@gnu.org>
6846 * xdisp.c (syms_of_xdisp): Doc fix.
6848 * xdisp.c (redisplay_window): Remove label restore_buffers;
6849 use finish_scroll_bars instead to make sure that scroll bars
6850 are redeemed. If we don't do this, flickering can result from
6851 scroll bars being destroyed and recreated.
6853 2000-12-22 Jason Rumney <jasonr@gnu.org>
6855 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
6856 in the wrong colors when the foreground is not black.
6857 (expose_window): Don't redraw the window that's currently being
6860 2000-12-22 Gerd Moellmann <gerd@gnu.org>
6862 * window.c (size_window): When setting the window's too_small_ok
6863 flag, compare old size with minimum size depending on WIDTH_P,
6864 don't compare with window_min_width.
6866 * window.c (delete_window): Simplify somewhat.
6867 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
6868 freeing window matrices. The flag windows_or_buffers_changed is
6869 set, so the next redisplay will consider all windows; this should
6872 2000-12-22 Kenichi Handa <handa@etl.go.jp>
6874 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
6876 * ccl.h (struct ccl_program): New member cr_consumed.
6878 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
6879 (CCL_READ_CHAR): Handle EOL conversion here.
6880 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
6882 2000-12-21 Gerd Moellmann <gerd@gnu.org>
6884 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6886 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
6887 otherwise tabs of different size compare equal.
6889 * callint.c (Fcall_interactively): Prevent a compiler warning.
6891 * print.c (print_unwind): Return nil.
6892 (PRINTDECLARE): Initialize all local variables.
6893 (print_preprocess): Add a default case.
6895 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
6897 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
6899 * window.c (delete_window, Fsplit_window)
6900 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
6902 * dispextern.h (ensure_frame_matrix): Function declaration removed.
6904 * dispnew.c (ensure_frame_matrix): Removed.
6905 (save_frame_matrix, restore_frame_matrix): New functions.
6906 (adjust_frame_glyphs_for_frame_redisplay): Use them.
6908 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
6909 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
6911 2000-12-21 Andrew Innes <andrewi@gnu.org>
6913 * w32term.c (x_update_begin): Regenerate the palette here, rather
6914 than for each window.
6916 * w32xfns.c (select_palette): Avoid calling SelectPalette if
6917 palette is NULL, since this corrupts memory! Also get
6918 display_info reference from frame.
6920 2000-12-21 Jason Rumney <jasonr@gnu.org>
6922 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
6924 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
6925 to avoid returning without releasing it.
6927 2000-12-21 Kenichi Handa <handa@etl.go.jp>
6929 * keymap.c (push_key_description): Don't convert eight-bit-control
6930 and eight-bit-graphic to multibyte character.
6932 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
6933 generic character and CODE1 is nil, return the smallest character
6936 2000-12-20 Dave Love <fx@gnu.org>
6938 * s/osf5-0.h (NSIG): Don't redefine.
6940 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
6942 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
6943 excluding menu-bar and tool-bar.
6944 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
6945 (menu_item_p): Remove.
6946 (where_is_internal_1): Don't ignore menu-items.
6948 2000-12-20 Gerd Moellmann <gerd@gnu.org>
6950 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
6953 * window.c (make_window): Initialize window's min_hscroll.
6954 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
6955 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
6957 (struct saved_window): New member min_hscroll.
6958 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
6959 (Fset_window_configuration): Set window's min_hscroll.
6960 (save_window_save): Save window's min_hscroll.
6961 (compare_window_configurations): Compare min_hscroll values.
6963 * window.h (struct window): New member min_hscroll.
6965 * keyboard.c (echo_prompt): Prevent a compiler warning.
6967 * xdisp.c (try_cursor_movement): Fix last change. The real
6968 condition is that PT is at the end of the row, and should
6969 be displayed at the start of the next row.
6971 * xdisp.c (try_cursor_movement): If we end on a partially
6972 visible line, end we already decided to scroll, return -1.
6974 * dispextern.h (ensure_frame_matrix): Add prototype.
6976 * window.c (delete_window, Fsplit_window)
6977 (Fset_window_configuration): Call ensure_frame_matrix.
6979 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
6981 (adjust_frame_glyphs_for_frame_redisplay): If display has been
6982 completed, call fake_current_matrices instead of marking frame
6985 2000-12-20 Jason Rumney <jasonr@gnu.org>
6987 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
6989 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
6991 * fns.c (Frequire): Doc fix.
6993 2000-12-19 Gerd Moellmann <gerd@gnu.org>
6995 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
6997 * dispnew.c (direct_output_for_insert): Fix check for mini-window
6998 currently displaying a message.
7000 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
7002 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
7004 2000-12-18 Andrew Innes <andrewi@gnu.org>
7006 * w32.c (w32_strerror): New function.
7008 * w32.h (w32_strerror): New extern.
7010 * w32fns.c (Fw32_shell_execute): Use it.
7012 2000-12-18 Gerd Moellmann <gerd@gnu.org>
7014 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
7016 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7018 * msdos.c (IT_set_face): Obey inverse_video.
7020 2000-12-18 Kenichi Handa <handa@etl.go.jp>
7022 * dired.c (directory_files_internal): Always return decoded filenames.
7024 2000-12-18 Gerd Moellmann <gerd@gnu.org>
7026 * xterm.c (x_connection_closed): Prevent being called recursively
7027 because of an error condition in XtCloseDisplay.
7029 * xdisp.c (init_iterator): If noninteractive, and the frame's
7030 face cache is null, make one.
7032 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
7034 * process.c (wait_reading_process_input): Check for pending
7035 input when running timers.
7037 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7039 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
7041 2000-12-18 Kenichi Handa <handa@etl.go.jp>
7043 * process.c (read_process_output): Don't run a filter if the code
7044 decoder produces nothing but carryover.
7046 2000-12-17 Andrew Innes <andrewi@gnu.org>
7048 * w32.c (sys_rename): Only check errno against EEXIST, and not
7049 EACCES, when determining whether rename failed because the target
7050 exists. This was resulting in indefinite looping on Windows 9x if
7051 the source file was locked by another process.
7053 * w32fns.c (Ffile_system_info): New function.
7054 (syms_of_w32fns): Defsubr it.
7056 2000-12-17 Gerd Moellmann <gerd@gnu.org>
7058 * window.c (coordinates_in_window): Fix computation for
7059 position on vertical line between mode lines.
7061 * xfns.c (unwind_create_frame): Return t if frame was deleted.
7062 Don't alter tip_frame or tip_window.
7063 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7066 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
7067 Don't alter tip_frame or tip_window.
7068 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7071 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
7073 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
7074 be consistent with the doc string. Reported by NAKAJIMA Mikio
7075 <minakaji@osaka.email.ne.jp>.
7077 2000-12-16 Kenichi Handa <handa@etl.go.jp>
7079 * xfaces.c (Vface_ignored_fonts): New variable.
7080 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
7081 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
7083 2000-12-15 Gerd Moellmann <gerd@gnu.org>
7085 * dispnew.c (update_window): Detect pending input every nth line
7086 updated, i.e. do it depending on real work done, and not on the
7089 * xterm.c (expose_window): Don't redraw the window that's
7090 currently being updated.
7092 * window.c (Fset_window_point): Remove test for
7093 cursor_in_non_selected_windows.
7095 * lread.c (read1): Recognize end of file after `\\'.
7097 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
7098 not unwind_create_frame.
7100 2000-12-15 Dave Love <fx@gnu.org>
7102 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
7105 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
7107 2000-12-15 Kenichi Handa <handa@etl.go.jp>
7109 * coding.c (setup_coding_system): Clear all members of the struct
7110 coding_system at first.
7111 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
7113 (code_convert_region): Don't override coding->src_multibyte and
7114 coding->dst_multibyte.
7116 * fns.c (Fmd5): Docstring improved.
7118 2000-12-15 Miles Bader <miles@gnu.org>
7120 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
7121 are actually marked as mode-lines; otherwise use
7122 estimate_mode_line_height.
7124 2000-12-14 Gerd Moellmann <gerd@gnu.org>
7126 * editfns.c (Fformat): Prevent a buffer overrun when the format
7127 specifies a precision.
7129 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
7131 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
7132 argument is outside the range [2..3].
7134 2000-12-14 Andrew Innes <andrewi@gnu.org>
7136 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
7137 nothing to do. Bind inhibit-quit.
7138 (tip_frame): Make it a Lisp_Object.
7139 (x_create_tip_frame): Set tip_frame after it has been added to
7141 (Fx_show_tip): Don't set tip_frame here.
7142 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
7143 (unwind_create_frame, unwind_create_tip_frame): New functions.
7144 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7145 while a frame is only partially constructed.
7147 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7148 (x_free_frame_resources): New function.
7149 (x_destroy_window): Use it.
7151 2000-12-14 Gerd Moellmann <gerd@gnu.org>
7153 * xfns.c (Fx_backspace_delete_keys_p): New function.
7154 (syms_of_xfns): Defsubr it.
7156 * config.in (HAVE_XKBGETKEYBOARD): Add.
7158 2000-12-14 Kenichi Handa <handa@etl.go.jp>
7160 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
7161 Always store string in multibyte representation in echobuf.
7162 (echo_char): Always store string in multibyte representation in
7164 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
7165 (read_key_sequence): Adjusted for the change of echo_prompt.
7167 * fns.c (Fmd5): Docstring improved.
7169 * lisp.h (detect_coding_system): Prototype adjusted.
7171 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
7172 (detect_coding_emacs_mule, detect_coding_iso2022,)
7173 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
7174 (detect_coding_utf_16, detect_coding_ccl): Make them static.
7175 New argument MULTIBYTEP. Callers changed.
7176 (detect_coding_mask, detect_coding_system): New argument
7177 MULTIBYTEP. Callers changed.
7178 (decode_coding_string): Set coding->src_multibyte and
7179 coding->dst_multibyte before calling detect_coding and detect_eol.
7180 Update them after some coding system is detected.
7182 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
7184 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
7186 * keyboard.c (menu_bar_items, tool_bar_items):
7187 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
7189 2000-12-13 Gerd Moellmann <gerd@gnu.org>
7191 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
7193 (unwind_create_frame, unwind_create_tip_frame): New functions.
7194 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7195 while a frame is only partially constructed.
7197 * xterm.h (x_free_frame_resources): Declare.
7199 * xterm.c (x_free_frame_resources): New function.
7200 (x_destroy_window): Use it.
7202 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
7203 don't interrupt the update for pending input initially, i.e.
7204 update at least some lines.
7206 * keyboard.c (do_mouse_tracking): Make externally visible.
7208 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
7210 * xfns.c (gray_bitmap_bits): Declare `char *'.
7212 2000-12-12 Gerd Moellmann <gerd@gnu.org>
7214 * xdisp.c (display_tool_bar_line): Make sure that tool bar
7215 lines start with a relief line.
7217 2000-12-12 Dave Love <fx@gnu.org>
7219 * window.c (Fdisplay_buffer): Doc fix.
7220 (Fwindow_list): Remove unused var.
7222 * buffer.h (mmap_set_vars): Declare.
7224 * window.h (Fset_window_point): Declare.
7226 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
7228 * msdos.c (fast_find_position): Don't overstep the last window row.
7229 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
7230 variable `area'. When looking for a row under (X,Y), give up if some
7231 of the previous rows is not enabled.
7233 2000-12-12 Gerd Moellmann <gerd@gnu.org>
7235 * window.c (Fset_window_point): If displaying cursors in windows
7236 other than the selected window, make sure redisplay updates
7237 other windows to show the new value of point in the window.
7239 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
7241 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
7242 the buffer is the sole visible buffer when in the mini-buffer.
7244 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
7245 Bind `inhibit-read-only' to t.
7246 (unwind_with_echo_area_buffer): Use AREF.
7248 * xfns.c (Fx_hide_tip): Simplified.
7250 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
7253 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
7255 2000-12-11 Gerd Moellmann <gerd@gnu.org>
7257 * xfns.c (Fx_hide_tip): Fix last change.
7259 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
7260 nothing to do. Bind inhibit-quit.
7261 (tip_frame): Make it a Lisp_Object.
7262 (x_create_tip_frame): Set tip_frame after it has been added to
7264 (Fx_show_tip): Don't set tip_frame here.
7266 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7268 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
7271 * dispextern.h: Change external declaration of tip_frame.
7273 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
7274 return an empty string.
7276 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
7277 of the window's update_mode_line flag, since the former is set by
7278 force-mode-line-update, not the latter. This makes
7279 column-number-mode slightly faster.
7281 * xdisp.c (try_window_id) <all changes above window start>:
7284 2000-12-11 Paul Eggert <eggert@twinsun.com>
7286 * config.in (HAVE_FTELLO): Remove.
7288 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
7289 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
7291 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
7292 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
7294 2000-12-11 Miles Bader <miles@gnu.org>
7296 * window.c (displayed_window_lines): Don't round up when
7297 converting empty space at bottom to lines.
7298 Handle non-newline-terminated final lines properly.
7299 (Fwindow_text_height): New function (used to be in lisp).
7300 (syms_of_window): Initialize it.
7302 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
7304 * syntax.c (scan_lists): Check that the right quote char has the
7305 right Sstring syntax when jumping over strings.
7306 (init_syntax_once): Use Smax rather than 13.
7308 2000-12-09 Miles Bader <miles@gnu.org>
7310 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
7311 with PARTIALLY, inverting the sense.
7312 (window_scroll_pixel_based): Scroll partially visible lines into
7313 place if we hit the beginning or end of the buffer.
7314 (displayed_window_lines): Don't include partially visible lines.
7315 (Fmove_to_window_line): Skip past any partially visible first line.
7317 2000-12-08 Gerd Moellmann <gerd@gnu.org>
7319 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
7321 * tparam.c (tparam1): Change the way buffers are reallocated to be
7322 portable and less obfuscated.
7324 * termcap.c (tgetent): Change the way buffers are reallocated to
7325 be portable and less obfuscated.
7327 * macros.c (store_kbd_macro_char): Change the way buffers are
7328 reallocated to be portable and less obfuscated.
7330 * lread.c (read1): Change the way buffers are reallocated to be
7331 portable and less obfuscated.
7333 * doc.c (Fsubstitute_command_keys): Change the way buffers
7334 are reallocated so that it is portable.
7336 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
7338 * dosfns.c (Ffile_system_info): New function.
7339 (syms_of_dosfns): Defsubr it.
7341 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
7343 * alloc.c (gc_sweep): Add comment.
7345 2000-12-07 Gerd Moellmann <gerd@gnu.org>
7347 * sound.c (vox_configure): Change order of ioctls.
7348 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
7349 Ignore errors when changing volume.
7350 (vox_close): Don't reset the device.
7352 * process.c (read_process_output): Make sure the process marker's
7353 position is valid when the process buffer is changed in
7354 after-change functions. W3 does that.
7356 * xfns.c (x_free_gcs): New function.
7358 * xterm.h (x_free_gcs): Add prototype.
7360 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
7363 * xterm.c (x_destroy_window): Call x_free_gcs so that
7364 resources of non-toolkit X windows will be freed.
7366 2000-12-07 Andrew Innes <andrewi@gnu.org>
7368 * w32fns.c (xlfd_charset_of_font): Fix last change.
7370 2000-12-06 Dave Love <fx@gnu.org>
7372 * md5.h (__P): Don't define -- it comes from config.h.
7374 * strftime.c: Change some #if foo to #ifdef foo.
7376 2000-12-06 Andrew Innes <andrewi@gnu.org>
7378 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
7380 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
7381 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
7382 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
7384 2000-12-06 Gerd Moellmann <gerd@gnu.org>
7386 * alloc.c (gc_sweep): Prevent symbols read during loadup
7389 * xdisp.c (underlying_face_id): New function.
7390 (handle_face_prop, face_before_or_after_it_pos): Use it
7391 to determine the face ``under'' a string. Let strings inherit
7392 the face of the buffer under them.
7394 * xfaces.c (face_at_string_position): Update function comment.
7396 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
7397 matrix if the window's left position has changed; we need to
7398 redraw it in this case.
7400 * dispextern.h (struct glyph_matrix): Add member window_left_x.
7402 * window.c (coordinates_in_window): Check mouse on mode-line or
7405 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
7406 advertized by the function documentation.
7408 * window.c (syms_of_window): Doc fix.
7410 * sound.c (vox_configure): Set volume for left and right channel.
7411 (sound_cleanup): Return nil.
7413 * xdisp.c (move_it_by_lines): Fix paren typo.
7415 * xterm.c (x_load_font): Don't use the font's max_bounds for
7416 computing the height of the font. If max_bounds' ascent or
7417 descent are greater than the font's ascent or descent, this means
7418 glyphs overlap, which should be handled now by redisplay.
7420 * window.c (Veven_window_heights): New variable.
7421 (syms_of_window): DEFVAR_LISP it.
7422 (Fdisplay_buffer): Check Veven_window_heights before evening the
7425 2000-12-06 Miles Bader <miles@gnu.org>
7427 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
7428 update `default-frame-alist' instead of setting no frame parameters.
7430 2000-12-06 Kenichi Handa <handa@etl.go.jp>
7432 * composite.c (update_compositions): Fix typo (use the correct
7435 2000-12-05 Jason Rumney <jasonr@gnu.org>
7437 * md5.h: Remove underscores from function declarations.
7438 (__attribute__, __alignof__) [!__GNUC__]: Define.
7440 * md5.c: Delay include of md5.h until after namespace cleaning.
7442 * makefile.w32-in (fns.o): Depend on md5.h
7443 (md5.o): New target.
7446 * makefile.nt: Likewise.
7448 2000-12-05 Jason Rumney <jasonr@altavista.net>
7450 * w32term.c (expose_area): Complete last change.
7452 2000-12-05 Ken Raeburn <raeburn@gnu.org>
7454 * minibuf.c: Include intervals.h.
7456 2000-12-05 Jason Rumney <jasonr@gnu.org>
7458 * w32term.c (x_produce_glyphs): If a font for a component of
7459 a composition is not found, use 1 pixel dot ascent and 0 dot
7460 descent value to avoid displaying terribly tall empty boxes.
7461 (expose_area): Pass x-coordinate relative to the exposed
7462 area to x_draw_glyphs instead of a window-relative coordinate.
7464 2000-12-05 Gerd Moellmann <gerd@gnu.org>
7466 * xdisp.c (next_element_from_ellipsis): Save face before selective
7467 display in saved_face_id, and set face_before_selective_p.
7468 (reseat_1): Reset face_before_selective_p.
7469 (append_space, extend_face_to_end_of_line): If iterator's
7470 face_before_selective_p is set, use the face from saved_face_id.
7471 (extend_face_to_end_of_line): For tty frames, make sure to
7472 use the right face id when producing spaces at the end of
7475 * dispextern.h (struct it): Add face_before_selective_p.
7477 * keyboard.c (record_char): Don't record identical help-echo
7478 events in recent_keys.
7480 * xterm.c [USE_X_TOOLKIT]: Close the display.
7481 (xim_close_dpy): Handle case that the display has been closed.
7483 * xterm.c (x_destroy_window): Reset the frame's X window after
7486 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
7487 variable window_width.
7488 (line_draw_cost): Fix code skipping over spaces at the end of the
7489 line when must_write_spaces is not set.
7490 (scrolling_window): Fix code inserting runs in list of all runs.
7492 2000-12-05 Kenichi Handa <handa@etl.go.jp>
7494 * coding.c (setup_coding_system): Be sure to initialize
7495 coding->category_idx.
7497 2000-12-04 Gerd Moellmann <gerd@gnu.org>
7499 * xterm.c (PER_CHAR_METRIC): Removed because not used.
7501 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
7502 area to x_draw_glyphs instead of a window-relative coordinate.
7504 * fileio.c (auto_save_error): Add parameter ERROR. Show the
7505 error in the message.
7507 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
7508 timer after having read a key. It's not good for code reading
7509 several keys in a loop, like an input method.
7511 * fileio.c (Finsert_file_contents): When VISIT is t, don't
7512 record undo information for format-decode.
7514 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
7515 current buffer is read-only, not if it isn't.
7517 * keyboard.c (record_char): Record `help-echo' input events
7518 in recent_keys only if they display some help. Don't record
7519 `help-echo' events as macro char.
7521 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
7523 * editfns.c (save_excursion_restore): Don't move point
7524 in another window if it is showing the wrong buffer.
7525 Avoid the call to Fwindow_live_p, for speed.
7527 2000-12-04 Kenichi Handa <handa@etl.go.jp>
7529 * xfaces.c (struct font_name): New member registry_priority.
7530 (split_font_name): Initialize the above member to zero.
7531 (concat_font_list): New function.
7532 (font_list): Include fonts of all alternative registries.
7533 (FONT_POINT_SIZE_QUANTUM): New macro.
7534 (better_font_p): Ignore point size difference less than
7535 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
7537 * xterm.c (x_produce_glyphs): If a font for a component of
7538 a composition is not found, use 1 pixel dot ascent and 0 dot
7539 descent value to avoid displaying terribly tall empty boxes.
7541 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
7543 2000-12-03 Ken Raeburn <raeburn@gnu.org>
7545 * coding.h (code_convert_string1): Declare.
7547 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
7549 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
7551 2000-12-02 Jason Rumney <jasonr@gnu.org>
7553 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
7554 correctly for single byte character case.
7555 (w32_per_char_metric): Do not try to make any assumptions about
7556 the metrics of BDF fonts.
7557 (x_estimate_mode_line_height): If `mode-line' face
7558 hasn't a font, use that of the frame, as drawing glyphs does.
7559 (note_mouse_highlight): Change the cursor shape on the vertical
7560 border between windows [not enabled].
7562 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
7564 * w32fns.c (Fx_create_frame): Reintroduce the call to
7565 face-set-after-frame-defaults.
7566 (Vx_window_horizontal_drag_shape): New variable.
7567 (syms_of_xfns): DEFVAR_LISP it.
7568 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
7571 2000-12-02 Simon Josefsson <simon@josefsson.org>
7573 * fns.c (Fmd5): Use a different logic to decide the coding system
7576 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
7578 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
7580 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
7582 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7584 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
7585 height for YNegative.
7586 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
7587 height; also see comment there.
7589 * window.c (coordinates_in_window): Handle computations for
7590 positions on the vertical bar and fringes differently for
7591 window-system frames. Consider some pixels near the vertical bar
7592 as on the bar if the frame doesn't have vertical scroll bars.
7593 Associate positions between mode or header lines with the
7594 right window, the left one.
7596 2000-12-01 Jason Rumney <jasonr@gnu.org>
7598 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
7600 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
7603 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7605 * window.c (struct saved_window): Add members orig_top and orig_height.
7606 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
7607 (save_window_save, Fset_window_configuration): Save/restore
7608 window's orig_top and orig_height.
7610 2000-12-01 Jason Rumney <jasonr@gnu.org>
7612 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
7614 * w32fns.c (x_set_cursor_color): Fix last change.
7616 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7618 * xdisp.c (echo_area_display): If cursor is in the echo area, make
7619 sure that the next redisplay displays the minibuffer, so that
7620 the cursor will be replaced with what the minibuffer wants.
7622 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
7623 #ifndef instead of using #if.
7624 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
7625 USE_TOOLKIT_SCROLL_BARS is defined.
7627 2000-11-30 Jason Rumney <jasonr@gnu.org>
7629 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
7632 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7634 * fns.c (Fmd5): Doc fix.
7636 2000-11-30 Simon Josefsson <simon@josefsson.org>
7638 * fns.c (Fmd5): New function.
7639 (syms_of_fns): Defsubr md5.
7641 * Makefile.in (obj): Add md5.o
7643 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7645 * md5.h, md5.c: New files, taken from glibc.
7647 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
7649 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
7650 hasn't a font, use that of the frame, as drawing glyphs does.
7652 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
7654 * eval.c (Frun_hooks): Allow 0 arguments.
7656 2000-11-29 Gerd Moellmann <gerd@gnu.org>
7658 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
7659 is over the menu bar widget, say it's not on the frame.
7661 * xfns.c (Fx_create_frame): Reintroduce the call to
7662 face-set-after-frame-defaults.
7664 * eval.c (Fsignal): Reset handling_signal.
7666 2000-11-28 Jason Rumney <jasonr@gnu.org>
7668 * w32menu.c (add_menu_item): Reset menu item text when changing
7669 type to radio button.
7671 2000-11-28 Gerd Moellmann <gerd@gnu.org>
7673 * xselect.c: Update copyright.
7675 * window.c (coordinates_in_window): If on a mode or header line,
7676 but sufficiently close to its start, return ``on vertical
7677 border''. This gives us a way to drag windows horizontally when
7678 using toolkit scroll bars.
7680 * xterm.c (note_mouse_highlight): Change the cursor shape
7681 on the vertical border between windows.
7683 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
7685 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
7686 (syms_of_xfns): DEFVAR_LISP it.
7687 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
7689 * textprop.c (text_read_only): New function.
7690 (verify_interval_modification): Use it instead of signaling
7691 `text-read-only'. This makes it easier to catch this error
7694 * xdisp.c (forward_to_next_line_start): Check for newlines,
7695 not end of line, which includes CR.
7697 2000-11-28 Kenichi Handa <handa@etl.go.jp>
7699 * coding.c (Ffind_coding_systems_region_internal): Be sure to
7700 include no-conversion.
7702 2000-11-27 Jason Rumney <jasonr@gnu.org>
7704 * w32fns.c (w32_load_system_font): Always mark font as double byte
7705 if codepage is unicode.
7707 2000-11-27 Gerd Moellmann <gerd@gnu.org>
7709 * xdisp.c (forward_to_next_line_start): If already on a newline,
7710 just consume it to avoid unintended skipping over invisible text below.
7712 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
7713 `vertical-line', `mode-line' and `header-line' events.
7715 * xdisp.c (try_window_id): Avoid starting to display in the middle
7716 of a character, a TAB for instance. This is easier than to set
7717 up the iterator exactly, and it's not a frequent case, so the
7718 additional effort wouldn't really pay off.
7720 2000-11-26 Andrew Choi <akochoi@i-cable.com>
7722 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
7725 2000-11-25 Jason Rumney <jasonr@gnu.org>
7727 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
7728 Args to window_from_coordinates should be pixel coordinates.
7730 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
7731 redisplay handles them properly.
7733 2000-11-25 Miles Bader <miles@gnu.org>
7735 * indent.c (compute_motion): Keep pos_byte in sync with pos.
7737 2000-11-24 Jason Rumney <jasonr@gnu.org>
7739 * w32.c (init_environment): Set LANG environment variable based on
7740 locale settings, if not set.
7742 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
7743 making tool bar smaller. When clearing the frame, also
7744 clear current matrices. Clear frame when tool bar disappears.
7745 Don't use more lines for the tool-bar than is available.
7746 (x_change_window_heights): New function.
7748 2000-11-24 Gerd Moellmann <gerd@gnu.org>
7750 * xdisp.c (init_from_display_pos): If POS says we're already after
7751 an overlay string ending at POS, make sure to pop the iterator
7752 because it will be in front of that overlay string. When POS is
7753 ZV, we've thereby also ``processed'' overlay strings at ZV.
7755 * xfaces.c (lface_from_face_name): Function comment fix.
7757 2000-11-24 Miles Bader <miles@gnu.org>
7759 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
7760 apply `mode-line-inverse-video' -- zero means force display using
7761 the default face, non-zero means display using the specialized face.
7762 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
7764 2000-11-23 Kenichi Handa <handa@etl.go.jp>
7766 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
7769 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
7771 * coding.c (decode_coding_emacs_mule): Fix the case of
7772 CODING_EOL_LF, which used uninitialized value of c.
7774 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
7776 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
7778 2000-11-22 Gerd Moellmann <gerd@gnu.org>
7780 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
7783 * frame.h (struct frame): Replace desired_tool_bar_items,
7784 current_tool_bar_items, n_desired_tool_bar_items,
7785 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
7787 * frame.c (make_frame): Change initialization of tool bar
7790 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
7791 Change references to members deleted from struct frame to use the
7794 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
7795 references to members deleted from struct frame to use the new ones.
7797 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
7799 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
7801 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
7802 (note_tool_bar_highlight): Change references to members deleted
7803 from struct frame to use the new ones.
7805 2000-11-23 Miles Bader <miles@gnu.org>
7807 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
7808 the face's inverse-video attribute, rather than overriding it.
7810 2000-11-22 Gerd Moellmann <gerd@gnu.org>
7812 * xfns.c (x_set_tool_bar_lines): Clear internal border when
7813 making tool bar smaller.
7815 2000-11-22 Dave Love <fx@gnu.org>
7817 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
7819 2000-11-22 Miles Bader <miles@gnu.org>
7821 * keyboard.c (Vminibuffer_message_timeout): New variable.
7822 (command_loop_1): Use it to determine message timeout.
7823 (syms_of_keyboard): Initialize it.
7825 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
7827 2000-11-22 Kenichi Handa <handa@etl.go.jp>
7829 * sysdep.c: Move the code for declaring h_errno after #include
7832 2000-11-21 Gerd Moellmann <gerd@gnu.org>
7834 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
7835 the menu bar when the tooltip is unmapped.
7837 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
7838 sole visible buffer when we're currently in the mini-buffer, and
7841 2000-11-21 Jason Rumney <jasonr@gnu.org>
7843 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
7844 put on the clipboard.
7845 (Fw32_get_clipboard_data): Compare data on clipboard with saved
7846 copy of what Emacs last put there. If they are the same, do not
7847 use the clipboard copy to avoid losing data due to coding conversions.
7849 2000-11-22 Miles Bader <miles@gnu.org>
7851 * minibuf.c (Vminibuffer_prompt_properties): New variable.
7852 (syms_of_minibuf): Initialize it.
7853 (read_minibuf): Add properties from Vminibuffer_prompt_properties
7854 to prompt, don't make read-only.
7856 2000-11-21 Gerd Moellmann <gerd@gnu.org>
7858 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
7859 Add BEFORE/AFTER_POTENTIAL_GC.
7861 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
7863 * buffer.c (mmap_free_1): Avoid a compiler warning.
7865 * term.c, cm.c: Don't try to include termcap.h; see comment there.
7867 2000-11-21 Kenichi Handa <handa@etl.go.jp>
7869 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
7872 2000-11-20 Gerd Moellmann <gerd@gnu.org>
7874 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
7877 * s/gnu-linux.h: Don't use `#cpu'.
7879 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
7880 not defined in mman.h.
7882 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
7883 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
7884 and store an index in the XClientMessageEvent. Storing a
7885 Lisp_Object or pointer can fail on a 64 bit system, since X only
7887 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
7889 2000-11-20 Dave Love <fx@gnu.org>
7891 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
7893 2000-11-20 Gerd Moellmann <gerd@gnu.org>
7895 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
7897 2000-11-20 Kenichi Handa <handa@etl.go.jp>
7899 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
7902 * alloc.c (make_string): Fix previous change. Be sure to make
7903 unibyte string correctly.
7905 2000-11-19 Gerd Moellmann <gerd@gnu.org>
7907 * window.c (Fwindow_list): Change parameter list to be XEmacs
7909 (window_list_1): New function.
7910 (window_loop): Use it instead of Fwindow_list.
7912 * sysdep.c (emacs_ospeed): New variable.
7913 (toplevel): Don't declare ospeed extern.
7914 (init_baud_rate): Use emacs_ospeed instead of ospeed.
7916 * termcap.c (ospeed): Remove.
7917 (tputs) [!emacs]: Remove unused code.
7918 (tgetent): Avoid a compiler warning.
7920 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
7921 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
7922 SCROLL_BAR_X_WIDGET with additional argument DPY.
7924 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
7926 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
7927 Take the X display as additional argument.
7928 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
7929 `Widget' is a pointer type that's not easily stored in Lisp_Object
7930 form in a portable way.
7932 * dispnew.c (update_text_area): Fix last change.
7934 2000-11-18 Gerd Moellmann <gerd@gnu.org>
7936 * xdisp.c: Use BINDING_STACK_SIZE throughout.
7938 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
7939 clear current matrices.
7941 * buffer.c (mmap_enlarge): Don't print a message on stderr
7942 if mapping new memory at the end of the existing region fails.
7944 * dispnew.c (update_text_area): Don't skip over equal glyphs
7945 when the last current glyph overlaps the glyph to its right.
7947 2000-11-18 Miles Bader <miles@gnu.org>
7949 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
7950 lines that *end* with "..." too (that's the most common case!).
7952 2000-11-18 Gerd Moellmann <gerd@gnu.org>
7954 * xdisp.c (resize_mini_window): Temporarily change to the
7955 mini-window's buffer if necessary.
7957 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
7958 the tooltip obscures less text under it.
7960 2000-11-17 Gerd Moellmann <gerd@gnu.org>
7962 * puresize.h (BASE_PURESIZE): Increase to 700000.
7964 2000-11-18 Jason Rumney <jasonr@gnu.org>
7966 * w32term.c (w32_draw_bitmap): Use face to set colors.
7968 2000-11-17 Dave Love <fx@gnu.org>
7970 * lread.c (Fload): Fix #ifdef for pcc.
7972 2000-11-17 Gerd Moellmann <gerd@gnu.org>
7974 * xdisp.c (pos_visible_p): Compute the default character height
7977 2000-11-16 Gerd Moellmann <gerd@gnu.org>
7979 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
7980 knowing the line's height; use the default font's height in that case.
7982 * xfaces.c (weight_table): Add `demi' with the same meaning as
7985 2000-11-16 Kenichi Handa <handa@etl.go.jp>
7987 * dispnew.c (null_row): New global static variable.
7988 (clear_glyph_row): Delete local static variable null_row.
7990 2000-11-15 Jason Rumney <jasonr@gnu.org>
7992 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
7993 (w32_alloc_lighter_color): Use new brightness calculations from
7994 xterm.c. Scale delta to be in the range expected by W32.
7995 (w32_draw_relief_rect): Use frame relief colors.
7997 2000-11-15 Gerd Moellmann <gerd@gnu.org>
7999 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
8000 (Qinhibit_default_face_x_resources): New variable.
8001 (syms_of_frame): Initialize it.
8002 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
8004 * xdisp.c (pos_visible_p): Improve function comment.
8006 * lisp.h (BINDING_STACK_SIZE): New macro.
8008 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
8009 reading the directory if readdir returns null and errno is EAGAIN
8012 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
8014 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
8015 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
8016 Set amount_to_scroll to max of dx and scroll_step so that
8017 scroll-conservatively doesn't defeat scroll-step>1.
8018 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
8019 scroll-conservatively for line-at-a-time scrolling.
8021 2000-11-14 Gerd Moellmann <gerd@gnu.org>
8023 * window.c (Fpos_visible_in_window_p): Call pos_visible with
8026 * xdisp.c (current_mode_line_height, current_header_line_height):
8028 (init_xdisp): Initialize them.
8029 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
8030 and use exact mode line heights if it is set.
8032 * lisp.h (pos_visible_p): Change prototype.
8034 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
8035 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
8036 and current_header_line_height first.
8037 (current_mode_line_height, current_header_line_height):
8040 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
8042 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
8043 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
8044 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
8046 2000-11-14 Miles Bader <miles@gnu.org>
8048 * xterm.c (x_alloc_lighter_color): Include an additive component
8049 too for dark colors, because FACTOR isn't enough.
8050 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
8053 2000-11-13 Gerd Moellmann <gerd@gnu.org>
8055 * keyboard.c (show_help_echo): Call message3_nolog with number of
8056 bytes in the help string as 2nd parameter, instead of the number
8059 2000-11-13 Miles Bader <miles@gnu.org>
8061 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
8062 (Fload): Use new openp return protocol.
8063 Don't try to use Vload_source_file_function to load .elc files.
8064 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
8065 openp return protocol.
8066 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
8068 2000-11-11 Kenichi Handa <handa@etl.go.jp>
8070 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
8072 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
8073 Defined these macros.
8074 (NLIST_STRUCT): Avoid re-defining it.
8076 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
8077 -I/usr/contrib/X11R6/include.
8078 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
8080 2000-11-10 Jason Rumney <jasonr@gnu.org>
8082 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
8084 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
8085 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
8087 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
8088 (Qw32_charset_vietnamese): New symbol.
8089 (xlfd_charset_of_font): New function.
8090 (w32_load_system_font): Use it.
8091 (x_to_w32_charset): Use Fassoc to find charset info. Special case
8092 when Vw32_charset_info_alist is nil to ensure default face always
8093 has font. Use Fcar and Fcdr for safety.
8094 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
8095 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
8096 pseudo-codepages for special cases.
8097 (w32_to_x_font): New parameter to allow charset portion to be
8098 specified where there is many to one mapping. Callers changed.
8099 (w32_list_fonts): Avoid listing fonts that won't display.
8101 2000-11-10 Gerd Moellmann <gerd@gnu.org>
8103 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
8104 (font_list_1): Renamed from font_list.
8105 (font_list): New function, trying alternative registries from
8106 Vface_alternative_font_registry_alist.
8107 (Finternal_set_alternative_font_registry_alist): New function.
8108 (syms_of_xfaces): Initialize and Staticpro
8109 Vface_alternative_font_registry_alist.
8110 Defsubr Finternal_set_alternative_font_registry_alist.
8112 2000-11-09 Ken Raeburn <raeburn@gnu.org>
8114 * lisp.h (Flooking_at): Declare.
8116 2000-11-09 Gerd Moellmann <gerd@gnu.org>
8118 * dired.c (directory_files_internal): Fix a braino.
8120 * dired.c (directory_files_internal): Add missing GCPRO's.
8123 2000-11-08 Gerd Moellmann <gerd@gnu.org>
8125 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
8126 (resize_mini_window): Return quickly if Vresize_mini_window is
8127 nil. Don't return if Vmax_mini_window_height is nil.
8129 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
8130 (syms_of_xdisp): Initialize them.
8131 (resize_mini_window): Act according to the setting of
8132 Vresize_mini_window.
8133 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
8135 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
8136 scroll bar widget after configuring it, so that it will appear at
8137 the right position from the start.
8138 (XTredeem_scroll_bar): Cleaned up.
8140 2000-11-08 Kenichi Handa <handa@etl.go.jp>
8142 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
8143 font is taller than the frame line, we don't have to bias the
8146 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
8148 2000-11-07 Dave Love <fx@gnu.org>
8150 * config.in (HAVE_MKSTEMP): Add.
8152 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
8154 2000-11-07 Gerd Moellmann <gerd@gnu.org>
8156 * window.c (Fset_window_configuration): Don't try to preserve
8157 point in the current buffer, if that buffer is displayed in more
8160 * xfaces.c (lookup_named_face): If default face isn't realized,
8161 try to realize it. Return -1 if not successful.
8162 (Fx_list_fonts): Handle case that face cannot be determined.
8163 (Fface_font): Likewise.
8165 2000-11-06 Gerd Moellmann <gerd@gnu.org>
8167 * window.c (displayed_window_lines): Detect partially
8168 visible lines at the bottom correctly.
8170 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
8172 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
8173 when ensuring we don't do visit in indirect buffer.
8175 2000-11-06 Kenichi Handa <handa@etl.go.jp>
8177 * composite.h (compose_chars_in_text): Add prototype.
8179 * composite.c (Vcomposition_function_table): New variable.
8180 (Qcomposition_function_table): New variable.
8181 (run_composition_function): Call
8182 Vcompose_chars_after_function with three arguments.
8183 (compose_chars_in_text): New function.
8184 (syms_of_composite): Modified the doc-string of
8185 Vcompose_chars_after_function. Declare composition-function-table
8186 as a lisp variable, and initialize it.
8188 * xfns.c (x_encode_text): Suppress producing escape sequences for
8191 * xselect.c: Include composite.h.
8192 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
8194 2000-11-05 Andrew Innes <andrewi@gnu.org>
8196 * w32term.c (x_produce_glyphs): Fix typo in enum name.
8198 * sysdep.c (read_input_waiting): Remove extraneous argument to
8201 * w32fns.c (Fx_server_version): Include w32_build_number in the
8204 * w32heap.c (w32_build_number): New variable.
8205 (cache_system_info): Set it.
8207 * w32heap.h (w32_build_number): Add extern.
8209 * emacs.c (syms_of_emacs): Update docstring for
8210 system-configuration, to reflect the actual usage on MS-Windows.
8212 2000-10-31 Gerd Moellmann <gerd@gnu.org>
8214 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
8215 process idle timers while waiting for another event.
8217 * dispnew.c (update_frame_line): Handle case where spaces in
8218 the default face are colored.
8220 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
8221 window height hasn't changed.
8223 2000-10-31 Jason Rumney <jasonr@gnu.org>
8225 * w32term.c (x_produce_glyphs): Handle composite characters.
8226 (x_draw_glyph_string_foreground)
8227 (x_draw_composite_glyph_string_foreground): Restore old font.
8229 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
8231 * minibuf.c (read_minibuf): Reset the undo history just before
8232 starting the recursive-edit.
8234 2000-10-30 Gerd Moellmann <gerd@gnu.org>
8236 * xfaces.c (menu_face_change_count): New variable.
8237 (Finternal_set_lisp_face_attribute): Increment it for changes
8239 (realize_basic_faces): Reflect changes in the `menu' faces
8242 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
8243 dy obtained from the iterator's y-position after moving from
8244 scroll_margin_pos to PT; see comment there.
8246 * xdisp.c (safe_eval_handler): Call add_to_log.
8248 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
8249 is not a symbol or string.
8251 * xdisp.c (echo_area_display): Don't perform a display update from
8252 inside redisplay. The update will happen anyway at the end of
8253 redisplay, and it can confuse redisplay (GC messages while
8254 redisplaying, for instance.)
8256 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
8258 * xrdb.c (x_load_resources): Use the class name in the defaults.
8260 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
8261 (regex_compile): Catch bogus \(\1\).
8263 2000-10-30 Gerd Moellmann <gerd@gnu.org>
8265 * xterm.c (x_alloc_nearest_color): Fix last change to compare
8268 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
8269 we have a color cache, check that the cached color equals the
8270 allocated color. If not, clear the color cache.
8272 * window.c (displayed_window_lines): Change buffers if necessary.
8273 Fix computation of displayed lines.
8275 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
8276 update_menu_bindings to DEFVAR_BOOL.
8278 2000-10-30 Kenichi Handa <handa@etl.go.jp>
8280 * search.c (Fset_match_data): Be sure to make search_regs always sane.
8282 * puresize.h (BASE_PURESIZE): Increase to 680000.
8284 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
8286 2000-10-29 Jason Rumney <jasonr@gnu.org>
8288 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
8290 * w32term.c (w32_bdf_per_char_metric): Negate descent.
8291 (w32_cache_char_metrics): Handle possibility that 'x' does not
8292 exist in a BDF font.
8293 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
8295 * w32bdf.h (bdffont): Add nchars.
8297 * w32bdf.c (set_bdf_font_info): Set it.
8298 (w32_BDF_TextOut): Swap byte order of double byte characters.
8299 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
8301 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
8303 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
8304 don't override the colors in frame's param_alist, unless they are
8307 * term.c (reassert_line_highlight): If inverse_video is non-zero,
8308 reverse the effect of the highlight flag.
8310 2000-10-27 Ken Raeburn <raeburn@gnu.org>
8312 * window.h (Fwindow_live_p): Declare.
8314 * undo.c (record_delete): Check that last_undo_buffer is really a
8315 buffer before applying XBUFFER to it.
8317 * keymap.c (where_is_internal): Pass lisp object, not integer, to
8320 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8322 * lisp.h (KEYMAPP): New macro.
8323 (get_keymap): Remove.
8324 (get_keymap_1): Rename get_keymap.
8326 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
8328 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
8330 * xmenu.c (single_submenu): Use KEYMAPP.
8331 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8332 Use KEYMAPP rather than Fkeymapp.
8334 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
8336 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
8337 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8338 Use KEYMAPP rather than Fkeymapp.
8339 (single_submenu): Use KEYMAPP.
8340 (w32_menu_show, w32_dialog_show): Use TRUE.
8342 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
8344 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
8345 (Fkeymapp): Use KEYMAPP.
8346 (get_keymap): Rename from get_keymap_1. Remove old def.
8347 Return t when autoload=0 and error=0 and the keymap needs autoloading.
8348 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
8349 (Fminor_mode_key_binding): Don't raise an error if the binding
8351 (Fuse_global_map, Fuse_local_map): Allow autoloading.
8352 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
8354 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
8355 Allow Vspecial_event_map to be autoloaded.
8356 (menu_bar_items): Fetch the keymap rather than using keymapp.
8357 (menu_bar_one_keymap): No need to follow func-indirect any more.
8358 (parse_menu_item): get_keymap_1 -> get_keymap.
8359 (tool_bar_items): Fetch the keymap rather than using keymapp.
8360 (read_key_sequence): Use KEYMAPP.
8362 * intervals.c (get_local_map): Use get_keymap rather than following
8363 function-indirections explicitly.
8365 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
8367 2000-10-27 Jason Rumney <jasonr@gnu.org>
8369 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
8370 point, as Windows has oversized fonts.
8372 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
8374 2000-10-27 Gerd Moellmann <gerd@gnu.org>
8376 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
8377 (freehook, reallochook): Handle null pointer arguments.
8378 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
8380 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8382 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
8383 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
8384 Giving in to popular pressure to shut up the compiler with casts.
8386 2000-10-27 Gerd Moellmann <gerd@gnu.org>
8388 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
8389 signed value, and use a default value computed from the font's
8392 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
8394 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
8395 that specify a negative underline position can still use underlines.
8397 * window.c (Fpos_visible_in_window_p): Make POS default to
8398 WINDOW's point, not the current buffer's point.
8400 2000-10-26 Dave Love <fx@gnu.org>
8402 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
8403 when it's necessary.
8405 2000-10-26 Gerd Moellmann <gerd@gnu.org>
8407 * window.c (size_window): Compute size difference from sum of old
8408 child window sizes instead of from parent's size.
8410 * xdisp.c (pos_visible_p): Change current buffer if necessary.
8411 Handle obscured lines at the top of the window.
8413 * frame.c (Fdelete_frame): Doc fix. Move running the hook
8414 down after the last error condition check.
8416 * frame.c (Fdelete_frame): Run delete-frame-hook.
8418 2000-10-26 Kenichi Handa <handa@etl.go.jp>
8420 * coding.c (decode_coding): Fix previous change (check also
8421 CODING_MODE_LAST_BLOCK).
8423 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8425 * regex.c: More `unsigned char' -> `re_char' changes.
8426 Also change several `int' into `re_wchar_t'.
8427 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
8428 (PUSH_FAILURE_POINTER): Don't cast any more.
8429 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
8430 We want GCC to complain, since this piece of code makes
8431 re_match non-reentrant, which *should* be fixed.
8432 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
8433 (EXTEND_BUFFER): Use RETALLOC.
8434 (SET_LIST_BIT): Don't cast.
8435 (re_wchar_t): New type.
8436 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
8437 that those two functions will always properly return.
8438 (IMMEDIATE_QUIT_CHECK): Cast to void.
8439 (analyse_first): Use recursion rather than an explicit stack.
8440 (re_compile_fastmap): Can't fail anymore.
8441 (re_search_2): Don't check re_compile_fastmap for failure.
8442 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
8443 Now also sets the new value (passed in a new argument).
8444 (re_match_2_internal): Use it.
8445 Also, use a new var `reg' of type size_t when looping through regs
8446 rather than reuse the inappropriate `mcnt'.
8448 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
8449 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
8450 (where_is_internal): Renamed from Fwhere_is_internal.
8451 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
8452 (Fwhere_is_internal): New function wrapping where_is_internal.
8453 (where_is_internal_1): Handle the case where we're filling the cache.
8454 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
8456 2000-10-25 Miles Bader <miles@gnu.org>
8458 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
8460 2000-10-25 Gerd Moellmann <gerd@gnu.org>
8462 * window.c (pos_fully_visible_p): Removed.
8463 (Fpos_visible_in_window_p): Use pos_visible_p to determine
8464 if position is visible and/or fully visible.
8466 * lisp.h (pos_visible_p): Add prototype.
8468 * xdisp.c (pos_visible_p): New function.
8470 2000-10-25 Kenichi Handa <handa@etl.go.jp>
8472 * process.c (send_process): If OBJECT is t, it means that the data
8473 is from C string, but we should encode it. Before calling
8474 setup_raw_text_coding_system, be sure to flush out data by the
8475 previous coding system.
8477 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
8479 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
8480 assignment of startpos to prev when startpos == pos.
8482 * editfns.c (find_field): Set the field stickiness correctly from
8483 overlay fields. Use renamed `text_property_stickiness'.
8484 (text_property_stickiness): Renamed from `char_property_stickiness'.
8485 Only check text properties, not overlays.
8486 * textprop.c (get_char_property_and_overlay): New function.
8487 (Fget_char_property): Use it.
8488 * intervals.h (get_char_property_and_overlay): Add declaration.
8490 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8492 * keymap.c: Use AREF, ASET and ASIZE macros.
8493 (Fmake_sparse_keymap): Docstring fix.
8495 (shadow_lookup): Move up.
8496 Handle the case where lookup-key returns an integer.
8497 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
8498 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
8499 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
8500 Simplify/rewrite the keymap-finding code.
8501 Add check for command shadowing, using shadow_lookup.
8503 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
8505 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
8506 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
8509 2000-10-24 Andrew Innes <andrewi@gnu.org>
8511 * dired.c (directory_files_internal_unwind): New function.
8512 (directory_files_internal): Use it to ensure closedir is called
8513 even if expand-file-name or file-attributes throw, eg. because of
8514 a user interrupt. Also enable immediate_quit while calling
8515 re_search, so that matching can be interrupted as well.
8517 2000-10-24 Andrew Innes <andrewi@gnu.org>
8519 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
8521 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
8522 so that re_search functions only quit when callers expect them to.
8524 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8526 * regex.c (regex_compile): Change the way of handling a range from
8527 a char less than 256 to a char not less than 256.
8529 2000-10-24 Gerd Moellmann <gerd@gnu.org>
8531 * window.c (size_window): Prevent setting window's width or
8532 height to a negative value (esp. with XSETFASTINT).
8534 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
8535 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
8536 (protect_malloc_state) [GC_MALLOC_CHECK &&
8537 GC_PROTECT_MALLOC_STATE]: New function.
8538 (PROTECT_MALLOC_STATE): New macro.
8539 (__malloc_initialize, morecore, _malloc_internal)
8540 (_free_internal) _realloc_internal): Use it to make _heapinfo
8541 read-only outside of gmalloc.
8543 * keymap.c: Update copyright.
8545 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
8548 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
8550 * filelock.c (unlock_all_files): Use unlock_file to expand each
8551 buffer's file_truename before trying remove its lock file.
8553 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
8555 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
8556 or CRLF, decode EOLs.
8558 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8560 * window.c (Fdisplay_buffer): Fix doc.
8562 2000-10-23 Jason Rumney <jasonr@gnu.org>
8564 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
8565 ASCII font of default fontset on Windows.
8567 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
8568 xterm.c comment below).
8570 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
8572 2000-10-23 Gerd Moellmann <gerd@gnu.org>
8574 * xterm.c (x_connection_closed): Reset handling_signal.
8576 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
8578 2000-10-23 Miles Bader <miles@gnu.org>
8580 * window.c (window_scroll_pixel_based, window_scroll_line_based):
8581 Pass nil for FULLY argument to Fpos_visible_in_window_p to
8582 maintain old behavior.
8583 * minibuf.c (Fminibuffer_complete): Likewise.
8585 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
8587 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
8588 that when a font can't be exactly centered, it errs up rather than
8591 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8593 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8595 2000-10-23 Andrew Choi <akochoi@i-cable.com>
8597 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
8599 * dispnew.c [macintosh]: Include macterm.h.
8600 (init_display) [macintosh]: Initialization for window system.
8602 * emacs.c (main) [macintosh]: Call syms_of_textprop,
8603 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
8604 syms_of_search, x_term_init, and init_keyboard before calling
8605 init_window_once. Also, call syms_of_xmenu.
8607 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
8608 default fontset to Monaco.
8610 * frame.c [macintosh]: Include macterm.h. Remove declarations of
8611 NewMacWindow and DisposeMacWindow.
8612 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
8613 instead of calling NewMacWindow and setting fields of
8614 f->output_data.mac directly. Call init_frame_faces.
8615 (Fdelete_frame) [macintosh]: Remove unused code.
8616 (Fmodify_frame_parameters) [macintosh]: Call
8617 x_set_frame_parameters instead of mac_set_frame_parameters.
8619 * frame.h [macintosh]: Define menu_bar_lines field in struct
8620 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
8622 * keyboard.c [macintosh]: Include macterm.h.
8623 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
8624 and menu_bar_activate_event type events as for X and NT.
8625 (make_lispy_event) [macintosh]: Construct lisp events of type
8626 MENU_BAR_EVENT as for X and NT.
8628 * sysdep.c [macintosh]: Remove declaration for sys_signal.
8629 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
8630 (sys_subshell) [macintosh]: Remove definition entirely.
8631 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
8632 Vwindow_system_version here. Remove initialization of
8633 Vx_bitmap_file_path.
8634 (read_input_waiting): Correct the number of parameters passed to
8636 Move all Macintosh functions to mac/mac.c.
8638 * term.c [macintosh]: Include macterm.h.
8640 * window.c [macintosh]: Include macterm.h.
8642 * xdisp.c [macintosh]: Include macterm.h. Declare
8643 set_frame_menubar and pending_menu_activation.
8644 (echo_area_display) [macintosh]: Do not return if terminal frame
8645 is the selected frame.
8646 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
8647 Allow only the selected frame to set menu bar.
8648 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
8649 calling FRAME_EXTERNAL_MENU_BAR (f).
8650 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
8652 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
8653 and check_x. Declare XCreateGC. Define x_create_gc and
8654 x_free_gc. Initialize font_sort_order.
8655 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
8656 but call x_list_fonts instead of w32_list_fonts.
8657 (Finternal_face_x_get_resource) [macintosh]: Do not call
8658 display_x_get_resource.
8659 (prepare_face_for_display) [macintosh]: Set xgcv.font.
8660 (realize_x_face) [macintosh]: Load the font if it is specified in
8662 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
8664 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
8666 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
8667 is nil: since we go to the end of submap anyway, we'd end up
8669 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
8670 doesn't obey autoload.
8672 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8674 * msdos.c (dos_set_window_size): Update screen dimension variables.
8676 2000-10-21 Jason Rumney <jasonr@gnu.org>
8678 * w32term.c (w32_cache_char_metrics): Double check that font is
8679 really fixed pitch before trusting tmPitchAndFamily.
8681 2000-10-21 Andrew Innes <andrewi@gnu.org>
8683 * w32gui.h (w32_char_font_type): Move enum from w32term.c
8685 * w32term.h: Extern decl for w32_cache_char_metrics.
8687 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
8689 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
8690 (w32_unload_font): Free per_char array if present.
8692 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
8693 cached information in emulated XFontStruct to handle common cases
8694 quickly. Do not allocate XCharStruct for return.
8695 (w32_native_per_char_metric): New function.
8696 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
8698 (x_produce_glyphs): Don't get an HDC. Change calls to
8699 w32_per_char_metric to match arg change above. Remove calls to
8701 (w32_get_glyph_overhangs): Ditto.
8702 (w32_cache_char_metrics): New function.
8704 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
8705 ($(BLD)/casefiddle.$(O)): Remove compile command.
8706 ($(BLD)/gmalloc.$(O)): Remove compile command.
8707 ($(BLD)/dispnew.obj):
8708 ($(BLD)/keyboard.obj):
8709 ($(BLD)/w32inevt.obj):
8710 ($(BLD)/w32bdf.obj):
8712 ($(BLD)/buffer.obj):
8713 ($(BLD)/editfns.obj):
8715 ($(BLD)/fileio.obj):
8717 ($(BLD)/indent.obj):
8718 ($(BLD)/insdel.obj):
8719 ($(BLD)/intervals.obj):
8720 ($(BLD)/minibuf.obj):
8722 ($(BLD)/scroll.obj):
8723 ($(BLD)/sysdep.obj):
8724 ($(BLD)/textprop.obj):
8725 ($(BLD)/widget.obj):
8726 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
8727 ($(BLD)/term.obj): Add dependency on dispextern.h.
8729 * makefile.nt ($(BLD)\dispnew.obj):
8730 ($(BLD)\keyboard.obj):
8731 ($(BLD)\w32inevt.obj):
8732 ($(BLD)\w32bdf.obj):
8734 ($(BLD)\buffer.obj):
8735 ($(BLD)\editfns.obj):
8737 ($(BLD)\fileio.obj):
8739 ($(BLD)\indent.obj):
8740 ($(BLD)\insdel.obj):
8741 ($(BLD)\intervals.obj):
8742 ($(BLD)\minibuf.obj):
8744 ($(BLD)\scroll.obj):
8745 ($(BLD)\sysdep.obj):
8746 ($(BLD)\textprop.obj):
8747 ($(BLD)\widget.obj):
8748 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
8749 ($(BLD)\term.obj): Add dependency on dispextern.h
8751 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8753 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
8754 with an additional argument of Qt.
8756 2000-10-21 Miles Bader <miles@gnu.org>
8758 * window.c (pos_fully_visible_in_window_p): New function.
8759 (Fpos_visible_in_window_p): Add FULLY argument.
8760 Use pos_fully_visible_in_window_p.
8761 (window_scroll_pixel_based, window_scroll_line_based): Update
8762 calls to Fpos_visible_in_window_p.
8763 * lisp.h (Fpos_visible_in_window_p): Update prototype
8765 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8767 * alloc.c (toplevel): Conditionalize compilation of mem_*
8768 functions differently.
8770 2000-10-20 Jason Rumney <jasonr@gnu.org>
8772 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
8773 mem_init where it used to be. mem_z etc not defined otherwise.
8775 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8777 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
8779 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
8780 structure definition and related variabled to the top of the file.
8781 Include this code when GC_MALLOC_CHECK is defined.
8782 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
8783 register/unregister allocated region.
8784 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
8785 which isn't allocated.
8786 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
8787 something which is already in use.
8788 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
8789 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
8790 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
8791 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
8793 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
8794 _malloc_internal instead of malloc.
8795 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
8798 2000-10-20 Andrew Innes <andrewi@gnu.org>
8800 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
8802 (my_strftime) <macro>: Don't use macro arg list when redefining as
8804 (my_strftime) <function>: Supply 0 as ut argument.
8806 2000-10-19 Jason Rumney <jasonr@altavista.net>
8808 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
8809 including dispextern.h, as it stops faces from working.
8811 * w32fns.c (Fx_create_frame): Don't bother calling
8812 face-set-after-frame-default since the caller does it for us
8813 anyway. Clean up calls to x_get_arg to be consistent with X.
8815 * w32term.c (x_produce_glyphs): Handle
8816 unibyte_display_via_language_environment correctly.
8817 (w32_draw_box_rect): Fix the calculation of width and height.
8819 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
8820 as it has stopped working.
8821 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
8824 2000-10-19 Gerd Moellmann <gerd@gnu.org>
8826 * eval.c (skip_debugger): Prevent a compiler warning.
8827 (Fcondition_case): Likewise.
8828 (Fbacktrace_frame): Use a null interactive spec.
8830 2000-10-19 Kenichi Handa <handa@etl.go.jp>
8832 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
8834 2000-10-18 Gerd Moellmann <gerd@gnu.org>
8836 * strftime.c: Sync with glibc, file version 1.78.
8837 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
8838 should no longer be used according to ISO 8601.
8840 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
8841 no map for meta_prefix_char, don't try to use it as a keymap.
8842 Instead, if T_OK is non-zero, look up a default binding, if any,
8843 otherwise, if T_OK is zero, return nil.
8845 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
8846 (x_to_xcolors, png_load): Use x_query_color.
8848 * xterm.c (x_color_cells, x_query_colors, x_query_color):
8850 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
8852 (x_copy_color, x_alloc_lighter_color): Likewise.
8854 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
8855 (x_query_color, x_query_colors): Add prototype.
8857 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
8858 check_string_bytes only if not noninteractive, increase count to 50.
8860 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
8862 * insdel.c (adjust_markers_for_delete): Handle before-insertion
8865 2000-10-17 Gerd Moellmann <gerd@gnu.org>
8867 * alloc.c (pure_bytes_used): Renamed from pureptr.
8869 (pure_alloc): New function.
8870 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
8872 (Fpurecopy): Use PURE_POINTER_P.
8874 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
8875 PT has moved backward.
8877 * xdisp.c (cursor_row_p): Take continued lines into account.
8879 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
8881 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
8882 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
8883 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
8886 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
8887 of selective display off while searching for the next line start.
8889 2000-10-17 Kenichi Handa <handa@etl.go.jp>
8891 * Makefile.in (term.o): Depend on dispextern.h.
8893 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
8895 * keymap.c (keymap_memberp): Ensure that nil is not a member.
8897 2000-10-16 Gerd Moellmann <gerd@gnu.org>
8899 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
8900 the iterator at the beginning, so that they can be set later on,
8901 for instance in reseat_at_next_visible_line_start, without being
8904 * xfns.c (pbm_format): Add :foreground and :background keywords.
8905 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
8906 (xbm_load): Recognize foreground and background color specifications.
8908 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
8910 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
8912 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
8914 * msdos.c (IT_set_face): Compare highlighted face with the default
8915 face, and invert colors if these faces' colors are identical.
8916 (Fmsdos_remember_default_colors): Don't swap foreground and
8917 background colors in initial_colors[].
8918 (IT_set_frame_parameters): Don't swap frame's foreground and
8919 background pixels. If ALIST includes "(reverse . t)", swap
8920 foreground-color and background-color properties in frame's
8921 param_alist. If the original frame's param_alist doesn't specify
8922 the colors, store unspecified-fg and unspecified-bg, reversed if
8925 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
8926 the colors are unspecified and reversed, reverse fore- and back-
8927 ground in the returned value.
8928 (Fframe_parameter): Ditto.
8930 2000-10-16 Gerd Moellmann <gerd@gnu.org>
8932 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
8933 get_last_unchanged_at_beg_row.
8934 (find_first_unchanged_at_end_row): Renamed from
8935 get_first_unchanged_at_end_row.
8936 (find_first_unchanged_at_end_row): Convert assertions to
8937 unconditional tests which abort. When looking for a row in
8938 unchanged text, don't go further back than first_text_row.
8940 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
8941 Don't add in the last line's height when deciding if the new
8942 position is below the scroll margin.
8944 2000-10-16 Miles Bader <miles@gnu.org>
8946 * editfns.c (Fconstrain_to_field): Check carefully for field
8947 boundaries if either OLD_POS or NEW_POS has a non-nil field
8948 property, even if they're the same.
8950 2000-10-16 Kenichi Handa <handa@etl.go.jp>
8952 * xterm.c (x_draw_box_rect): Fix the calculation of width and
8953 height for XFillRectangle.
8955 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
8957 * syntax.c (Fstring_to_syntax): New function extracted from
8958 Fmodify_syntax_entry.
8959 (Fmodify_syntax_entry): Use it and document the ! and | fences.
8960 (skip_chars, Fforward_comment): Remove unused variables.
8961 (syms_of_syntax): Add defsubr for string-to-syntax.
8962 (describe_syntax): Add code for comment and string fences.
8964 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
8966 * keymap.c (access_keymap): Add AUTOLOAD parameter.
8967 Do the meta->esc mapping. Call get_keyelt before returning.
8968 Start scanning from the second element (the first is always `keymap')
8969 to make it easier to detect when we reach a parent map.
8970 Handle the case of inheriting from a symbol whose function is a map.
8971 (Fkeymap_parent): Also handle the `inherit from symbol' case.
8972 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
8973 (get_keyelt, Flookup_key): Update call to access_keymap.
8974 Remove the meta->esc mappings.
8975 (define_as_prefix): Delete old disabled code.
8976 (menu_item_p): New function.
8977 (where_is_internal_1): Skip over the few remaining menu items.
8978 * lisp.h (access_keymap): Update prototype.
8979 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
8980 Update call to access_keymap.
8981 (follow_key, read_key_sequence): Update calls to access_keymap.
8982 Remove the meta->esc mappings.
8984 2000-10-13 Gerd Moellmann <gerd@gnu.org>
8986 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
8987 with additional argument.
8989 * xdisp.c (cursor_row_p): New function.
8990 (try_cursor_movement, display_line): Use it.
8992 * xdisp.c (append_space): Also save/restore iterator's current
8993 character and its length.
8995 * xdisp.c (init_from_display_pos): Add an assertion.
8996 (handle_stop): Don't set iterator's add_overlay_start.
8997 (handle_invisible_prop): Likewise.
8998 (load_overlay_strings): If text under an overlay is invisible,
8999 take both before- and after-strings into account when the iterator
9000 is positioned either at the start or at the end of the overlay.
9001 (forward_to_next_line_start): Rewritten.
9002 (reseat_at_next_visible_line_start): Rewritten.
9003 (set_iterator_to_next): Add parameter RESEAT_P.
9005 * dispextern.h (struct it): Remove member add_overlay_start.
9006 (set_iterator_to_next): Change prototype.
9008 2000-10-13 Kenichi Handa <handa@etl.go.jp>
9010 * coding.c (code_convert_region): Be sure to initialize
9011 coding->category_idx.
9012 (decode_coding_string): Set coding->src_multibyte and
9013 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
9014 (encode_coding_string): Set coding->src_multibyte and
9015 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
9017 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
9019 * xfns.c (Fx_create_frame): Don't bother calling
9020 face-set-after-frame-default since the caller does it for us anyway.
9022 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
9024 * window.c (coordinates_in_window): Fix detection of vertical line
9025 on character terminals.
9027 2000-10-12 Gerd Moellmann <gerd@gnu.org>
9029 * editfns.c (save_excursion_save): Additionally record the
9031 (save_excursion_restore): If buffer was visible in a window, and a
9032 different window was selected, and the old selected window is
9033 still live, restore point in that window.
9035 2000-10-12 Kenichi Handa <handa@etl.go.jp>
9037 * xterm.c (x_produce_glyphs): Handle
9038 unibyte_display_via_language_environment correctly.
9040 * regex.c (regex_compile): Change the way of handling a range from
9041 unibyte char to multibyte char.
9043 * syntax.c (skip_chars): Change the way of handling a range from
9044 unibyte char to multibyte char.
9046 * process.c (read_process_output): Cancel previous change.
9048 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
9050 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
9052 * charset.c (Ffind_charset_string): Doc fix.
9053 (Ffind_charset_region): Doc fix.
9055 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
9057 * process.c (read_process_output): Fix previous change. Adjust
9058 multibyteness of text to insert in a buffer by
9059 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
9061 2000-10-10 Andreas Schwab <schwab@suse.de>
9063 * alloc.c (mark_object): Remove all workarounds installed on
9066 2000-10-10 Kenichi Handa <handa@etl.go.jp>
9068 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
9069 (base64_encode_1): Make it work for a text of multibyte form.
9070 (Fbase64_decode_region): Allocate sufficient memory for multibyte
9071 case. Don't call str_to_multibyte because base64_decode_1
9072 produces correct multibyte form for eight-bit codes.
9073 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
9074 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
9075 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
9078 * charset.h (CHAR_STRING): Optimized for single byte characters.
9080 2000-10-09 Andreas Schwab <schwab@suse.de>
9082 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
9083 -1 after socket is closed, to fall through to error processing.
9085 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
9087 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
9088 variables. If ALIST includes foreground-color or
9089 background-color, change also the colors of the default face for
9092 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
9094 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
9095 them extern (they are defined on xfaces.c).
9096 (syms_of_msdos): Don't intern and don't staticpro
9097 Qbackground_color and Qforeground_color.
9099 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
9101 * frame.c (Fframe_parameter): For non-windowed frames, if
9102 f->param_alist says foreground or background color is unspecified,
9103 call tty_color_name to return the color name computed from the
9104 frame's current colors.
9106 2000-10-06 Dave Love <fx@gnu.org>
9108 * terminfo.c (ospeed): Don't declare.
9110 * sysdep.c: Don't include string.h.
9111 (h_errno): Declare conditional also on TRY_AGAIN.
9113 * charset.c (Ffind_charset_string): Doc fix.
9115 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
9116 (Fbase64_decode_region, Fbase64_decode_string): More explicit
9119 2000-10-05 Dave Love <fx@gnu.org>
9121 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
9122 position like menu-bar.
9124 2000-10-05 Gerd Moellmann <gerd@gnu.org>
9126 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
9128 * xdisp.c (handle_single_display_prop): Use safe_call1.
9129 (safe_call): Renamed from call_function.
9130 (safe_call1): New function.
9131 (handle_fontified_prop): Use safe_call1 instead of call1.
9132 (safe_eval): Renamed from eval_form.
9133 (safe_eval_handler): Renamed from eval_handler.
9134 (handle_single_display_prop, display_mode_element): Use safe_eval
9135 instead of eval_form.
9137 * xfaces.c (merge_face_heights): Use safe_call instead of
9140 * keyboard.c (show_help_echo): Use safe_call instead of
9141 call_function; use safe_eval instead of eval_form.
9143 * lisp.h (safe_call): Renamed from call_function.
9144 (safe_eval): Renamed from eval_form.
9145 (safe_call1): Add prototype.
9147 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
9149 * xfns.c (image_ascent): Rearrange ascent calculation for the
9152 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
9154 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
9155 (where_is_internal_1): Don't bother ignoring menu-items any more.
9157 2000-10-04 Gerd Moellmann <gerd@gnu.org>
9159 * keyboard.c (update_menu_bindings): New variable.
9160 (parse_menu_item): Use AREF. If update_menu_bindings
9161 is 0, don't update menu bindings.
9162 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
9164 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
9166 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
9169 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
9171 * syntax.c (forw_comment): Match nestedness of ender/starter.
9172 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
9173 (prev_char_comstart_first): Remove.
9174 (back_comment): Check two-char comment markers more carefully
9175 to better handle overlapping cases like *//* or /* */* */ ...
9176 Match nestedness of ender/starter.
9178 2000-10-02 Dave Love <fx@gnu.org>
9180 * config.in (HAVE_GAI_STRERROR): Add undef.
9182 * process.c (Fopen_network_stream): Use it.
9184 * m/alpha.h (NO_REMAP): Don't define.
9186 2000-10-02 Gerd Moellmann <gerd@gnu.org>
9188 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
9189 return with a string converted to an integer or vice versa when
9190 Vmocklisp_arguments is t.
9191 (Fsignal): Likewise. The function can return for `quit'.
9192 (struct gcpro): Declare member `var' to point to a volatile
9195 * eval.c (error): Prevent compiler warning.
9197 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
9199 * keymap.c (keymap_memberp): New function.
9200 (Fset_keymap_parent): Use it.
9201 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
9202 Use keymap_memberp to avoid creating cycles.
9203 (access_keymap): Use KEYMAPP.
9205 2000-09-30 Gerd Moellmann <gerd@gnu.org>
9207 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
9208 gai_strerror. Make sure xerrno is set if connect fails. Improve
9211 2000-09-29 Jason Rumney <jasonr@gnu.org>
9213 * w32term.c (w32_char_font_type, w32_encode_char)
9214 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
9215 (w32_bdf_per_char_metric): New function.
9216 (w32_per_char_metric): Use it.
9217 (x_draw_glyph_string_background): Always draw background for BDF
9220 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
9221 GDI object which is a scarce resource.
9223 * w32bdf.c (search_file_line): Fix skipping of whitespace.
9224 (get_quoted_string): Fix limit on memchr search.
9225 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
9226 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
9227 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
9228 (get_cached_font_char, cache_char_offset): Use macro
9229 BDF_CODEPOINT_RANGE_COVER_P.
9230 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
9231 (clear_cached_bitmap_slots): New function.
9232 (GET_HEX_VALUE): G-Z, g-z are not hex.
9233 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
9234 (get_bitmap_with_cache): Use new cache implementation.
9235 (create_offscreen_bitmap): New function.
9236 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
9238 * w32term.c (x_produce_glyphs): If the distance from the current
9239 position to the next tab stop is less than a canonical character
9240 width, use the tab stop after that.
9241 (x_draw_glyphs): Handle case START and END are out of bounds more
9243 (x_clear_mouse_face): Block/unblock input.
9244 (x_display_and_set_cursor): Don't show a hollow box cursor for
9245 buffers whose cursor_type is nil.
9247 2000-09-29 Gerd Moellmann <gerd@gnu.org>
9249 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
9251 * dispextern.h (updating_frame): Declare extern.
9253 2000-09-29 Andreas Schwab <schwab@suse.de>
9255 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
9257 2000-09-29 Gerd Moellmann <gerd@gnu.org>
9259 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
9260 use its function definition.
9261 (tool_bar_items): Likewise.
9263 * lisp.h (fatal): Declare NO_RETURN.
9265 2000-09-29 Kenichi Handa <handa@etl.go.jp>
9267 * keymap.c: Remove the line "#undef NULL".
9269 2000-09-28 Gerd Moellmann <gerd@gnu.org>
9271 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
9273 2000-09-28 Dave Love <fx@gnu.org>
9275 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
9277 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
9279 * .gdbinit (xreload): Note its need on GNU/Linux.
9281 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
9282 r_alloc, r_alloc_free.
9284 2000-09-28 Kenichi Handa <handa@etl.go.jp>
9286 * syntax.c (skip_chars): Handle negation correctly.
9288 2000-09-27 Gerd Moellmann <gerd@gnu.org>
9290 * xfaces.c (realize_default_face): Call set_lface_from_font_name
9291 with non-zero FORCE_P argument.
9293 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
9296 * xdisp.c (window_box_height): Add an assertion.
9298 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
9299 tool-bar than is available.
9300 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
9302 2000-09-27 Dave Love <fx@gnu.org>
9304 * s/irix6-5.h: Now works 64-bit. Tidied.
9306 2000-09-26 Gerd Moellmann <gerd@gnu.org>
9308 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
9309 instead of BITS_PER_INT.
9310 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
9311 EMACS_UINT, respectively.
9312 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
9314 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
9316 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
9318 * window.c (freeze_window_starts): Construct last argument for
9319 foreach_window differently.
9321 * xfns.c (x_decode_color): Don't return a Lisp_Object.
9323 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
9324 EMACS_UINT instead of `int' and `unsigned int'.
9325 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
9327 * frame.h (struct frame): Make the `nothing' member of union
9328 output_data an EMACS_INT.
9330 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
9331 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
9332 size in the sdata structure.
9333 (SDATA_NBYTES, SDATA_DATA): New macros.
9334 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
9335 differently for the different layout of the sdata structure.
9336 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
9338 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
9339 Check that size recorded in the string size and size recorded in
9340 the sdata structure agree.
9342 2000-09-25 Dave Love <fx@gnu.org>
9344 * buffer.c: Include stdio.h.
9346 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
9348 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
9350 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
9351 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
9352 (__malloc_extra_blocks): Declare as __malloc_size_t.
9354 2000-09-25 Gerd Moellmann <gerd@gnu.org>
9356 * alloc.c (mark_image): Use GC_NILP instead of NILP.
9358 * keyboard.c (show_help_echo): Set help_echo_showing_p.
9359 (read_char): If help-echo is showing, preserve the echo area
9362 * xdisp.c (help_echo_showing_p): New variable.
9363 (set_message): Reset it to 0.
9364 (init_xdisp): Initialize help_echo_showing_p.
9366 * dispextern.h (help_echo_showing_p): Declare extern.
9368 * config.in: Fix typo in __GNUC_MINOR__.
9370 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
9372 * s/freebsd.h (POSIX_SIGNALS): Define.
9374 * xterm.c (x_clear_mouse_face): Block/unblock input.
9376 2000-09-24 Dave Love <fx@gnu.org>
9378 * fns.c (base64_encode_1): Fix last change.
9380 2000-09-22 Gerd Moellmann <gerd@gnu.org>
9382 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
9384 * xdisp.c (try_window_reusing_current_matrix): More fixes
9385 for the case window has a header-line.
9387 2000-09-22 Dave Love <fx@gnu.org>
9389 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
9392 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
9394 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
9396 2000-09-21 Gerd Moellmann <gerd@gnu.org>
9398 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
9401 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
9404 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
9405 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
9406 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
9409 * marker.c (byte_char_debug_check): Return void.
9411 * xfns.c (Fx_create_frame): Set default frame parameter value
9412 for tool-bar-lines to 1.
9414 * dispnew.c (scrolling_window): Compare y-positions of rows
9415 equal at the start. Some simplification.
9417 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
9418 reused rows' y-position in the case window has a header-line, and
9419 new window start is greater than old window start.
9421 * process.c (process_sent_to): New variable.
9422 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
9423 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
9424 Declare more parameters volatile.
9426 * lread.c (Vrecursive_load_depth_limit): New variable.
9427 (Fload): Check recursive loads whose recursion depth exceeds
9428 Vrecursive_load_depth_limit.
9429 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
9431 2000-09-20 Gerd Moellmann <gerd@gnu.org>
9433 * fileio.c (Fread_file_name): Doc fix.
9435 * editfns.c (Fmessage_or_box): Doc fix.
9437 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
9439 * xfns.c (xbm_scan): Allow C-style comments.
9441 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
9442 symbols are specified, add color translations to the cache.
9443 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
9444 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
9446 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
9447 structures to xpm_init_color_cache.
9449 2000-09-19 Gerd Moellmann <gerd@gnu.org>
9451 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
9453 2000-09-19 Andrew Innes <andrewi@gnu.org>
9455 * makefile.nt (bootstrap-emacs): Don't change directory.
9457 2000-09-19 Kenichi Handa <handa@etl.go.jp>
9459 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
9461 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
9462 If output buffer is too small, signal an appropriated error.
9464 2000-09-18 Dave Love <fx@gnu.org>
9466 * keyboard.c (menu_bar_items, tool_bar_items)
9467 (current_active_maps): Remove redundant get_local_map call.
9469 2000-09-18 Gerd Moellmann <gerd@gnu.org>
9471 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
9472 cursor for buffers whose cursor_type is nil.
9474 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
9475 a feature to implement that is already implemented.
9476 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
9479 * xfns.c (x_clear_image_1): New function.
9480 (x_clear_image): Use it.
9481 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
9483 * dispnew.c (update_window): Move test for invisible lines
9484 at the top to update_window_line.
9485 (update_window_line): Handle invisible lines here.
9487 * xfns.c (clear_image_cache): Clear current matrices of all
9488 frames sharing an image cache. Block input while freeing
9489 images. Fix timestamp comparison.
9490 (x_clear_image): Also free the mask.
9492 * xfns.c (lookup_image): Block input while loading the image so
9493 that we won't get interrupted in a state where the image isn't yet
9495 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
9496 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
9497 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
9498 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
9500 2000-09-16 Gerd Moellmann <gerd@gnu.org>
9502 * dispnew.c (update_window): Make sure to make desired rows
9503 current even if they are completely invisible at the top
9506 2000-09-15 Gerd Moellmann <gerd@gnu.org>
9508 * xfns.c (lookup_image): Build mask before applying an algorithm.
9509 Recognize algorithm `disabled'.
9510 (cross_disabled_images): New variable.
9511 (COLOR_INTENSITY): New macro.
9512 (x_detect_edges): Use COLOR_INTENSITY.
9513 (x_disable_image): New function.
9514 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
9516 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
9517 disabled state, don't apply an image transformation algorithm if
9518 the user specified an image for the disabled state. Use
9519 `:algorithm disabled' for creating a disabled item's image if the
9520 user hasn't specified an image.
9522 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
9523 allocation functions with the XPM lib.
9524 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
9525 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
9526 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
9527 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
9528 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
9529 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
9530 functions, if possible, because these handle color allocation
9531 failure more gracefully.
9532 (Fimage_mask_p): New function.
9534 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
9535 (Qedge_detection, Qheuristic): New symbols.
9536 (syms_of_xfns): Initialize new symbols.
9537 (lookup_image): Handle `:mask X', `:algorithm emboss', and
9538 `algorithm (edge-detection ...)'.
9539 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
9540 (tiff_format, gif_format, gs_format): Add `:mask'.
9541 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
9542 (GIF_MASK, GS_MASK): New enumerators.
9543 (x_laplace_read_row, x_laplace_write_row): Functions removed.
9544 (emboss_matrix, laplace_matrix): New variables.
9545 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
9546 (x_edge_detection): New functions.
9547 (x_laplace): Rewritten in terms of x_detect_edges.
9548 (x_build_heuristic_mask): If image has a mask, free it.
9550 2000-09-14 Andrew Innes <andrewi@gnu.org>
9552 * makefile.w32-in: Revert to Unix line endings.
9554 2000-09-14 Andrew Innes <andrewi@gnu.org>
9556 * makefile.w32-in: Standardize indentation somewhat.
9557 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
9558 cater for differences between shells.
9560 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
9562 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9564 * xterm.c (x_produce_glyphs): If the distance from the current
9565 position to the next tab stop is less than a canonical character
9566 width, use the tab stop after that.
9568 2000-09-14 Dave Love <fx@gnu.org>
9570 * buffer.c (alloc_buffer_text): Fix xmalloc call.
9572 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9574 * xdisp.c (handle_fontified_prop): While running fontification
9575 functions, bind `fontification-functions' and
9576 `after-change-functions' to nil.
9578 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
9579 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
9581 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
9583 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
9584 USE_MMAP_FOR_BUFFERS.
9586 * insdel.c (make_gap): Use enlarge_buffer_text.
9588 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
9589 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
9590 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
9591 from former r_alloc_* functions in ralloc.c.
9592 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
9593 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
9594 (mmap_init) [REL_ALLOC_MMAP]: New function.
9595 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
9596 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
9599 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
9600 (enlarge_buffer_text): Add prototype.
9602 * ralloc.c: Remove everything having to do with the use of mmap.
9604 2000-09-13 Gerd Moellmann <gerd@gnu.org>
9606 * sound.c (Fplay_sound): Doc fix.
9608 * keyboard.c: Avoid some more compiler warnings.
9609 (parse_tool_bar_item): Ignore cached key bindings.
9611 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
9612 and allocation of Lisp data.
9614 2000-09-12 Gerd Moellmann <gerd@gnu.org>
9616 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
9617 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
9620 * lread.c (Fload): Put code checking for recursive loads in #if 0.
9622 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
9624 * ccl.c: Comment fixed.
9625 (MAX_MAP_SET_LEVEL): Increased to 30.
9626 (PUSH_MAPPING_STACK): Enclose with do-while block.
9627 (POP_MAPPING_STACK): Likewise.
9628 (stack_idx_of_map_multiple): New variable.
9629 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
9630 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
9631 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
9632 (ccl_driver) <CCL_MapSingle>: Likewise.
9633 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
9634 with the case where looking up process reaches to the end of
9635 map-set, and call CCL programs as the above change.
9637 2000-09-11 Gerd Moellmann <gerd@gnu.org>
9639 * xfns.c (png_load, jpeg_load): Declare some variables volatile
9640 that might be clobbered by longjmp.
9641 (check_x_display_info, x_decode_color, create_frame_xic)
9642 (Fx_display_backing_store, Fx_display_visual_class)
9643 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
9645 * lread.c (init_lread): Set Vloads_in_progress to nil.
9646 (Fload): Show list of recursively loaded files, when signaling an
9649 * lread.c (Vloads_in_progress): New variable.
9650 (record_load_unwind): New function.
9651 (Fload): Check for recursive loads.
9652 (syms_of_lread): Initialize Vloads_in_progress.
9653 (read_integer, read1): Avoid some compiler warnings.
9655 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
9658 2000-09-11 Miles Bader <miles@gnu.org>
9660 * editfns.c (Fbuffer_string): Doc fix.
9662 2000-09-10 Gerd Moellmann <gerd@gnu.org>
9664 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
9666 2000-09-09 Ken Raeburn <raeburn@gnu.org>
9668 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
9669 whether to include other header files.
9671 2000-09-09 Gerd Moellmann <gerd@gnu.org>
9673 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9674 by Fmemq as a boolean.
9676 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
9678 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
9680 2000-09-08 Gerd Moellmann <gerd@gnu.org>
9682 * ralloc.c (mmap_fd): Remove initializer which can make it
9683 read-only in a dumped Emacs.
9684 (mmap_fd_1): New variable.
9685 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
9686 restore it from there.
9687 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
9688 unconditionally so that mmap_fd can be initialized there.
9689 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
9690 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
9691 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
9693 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
9695 * xdisp.c (dump_glyph_row): Fix printf format string.
9696 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
9698 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
9700 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
9703 * xdisp.c (try_window_id): When trying to locate cursor in
9704 unchanged rows at the top, handle the case that we can't find it.
9706 * xterm.c (x_draw_glyphs): Handle case START and END are out
9707 of bounds more carefully.
9709 2000-09-08 Dave Love <fx@gnu.org>
9711 * s/sol2.h (REL_ALLOC_MMAP): Define.
9712 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
9714 * ralloc.c: Don't include string.h (redundant).
9715 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
9716 [!MAP_ANON]: Include fcntl.h.
9717 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
9718 (r_alloc, r_re_alloc, r_alloc_free)
9719 (mmap_enlarge, mmap_set_vars): Use it.
9720 (r_alloc_init_fd): New function.
9721 (__morecore) [SYSTEM_MALLOC]: Don't declare.
9722 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
9725 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
9728 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
9729 change to __NetBSD__.
9731 2000-09-08 Kenichi Handa <handa@etl.go.jp>
9733 * search.c (compile_pattern): Check the multibyteness of cached
9736 2000-09-08 Miles Bader <miles@gnu.org>
9738 * xfaces.c (default_face_vector): Function removed.
9739 (Finternal_merge_in_global_face): Restore old global/local
9740 attribute override order. Use inline loop instead of calling
9741 default_face_vector.
9743 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9745 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
9746 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
9747 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
9748 where necessary, in case POINTER_TYPE is `void'.
9750 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
9752 * frame.c (make_terminal_frame): Initialize frame foreground and
9753 background colors to unspecified, for the initial instance of an
9756 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9758 * ralloc.c (mmap_find): Fix overlap computation.
9759 (mmap_enlarge): Compute nbytes before trying to find an
9762 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
9765 * lread.c (syms_of_lread): Change value of regexp
9766 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
9768 * xmenu.c (xdialog_show): When looking up the selection in
9769 menu_items, take `quote' boundaries into account; this corresponds
9770 to a nil ITEM in x-popup-dialog.
9772 2000-09-07 Kenichi Handa <handa@etl.go.jp>
9774 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
9776 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
9778 * coding.c (encode_coding_sjis_big5): Use translation table for
9779 encoding, not decoding. Fix the handling of latin-jisx0201.
9780 Check for the charset katakana-jisx0201 too.
9781 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
9782 (detect_coding_sjis): Check the byte sequence more rigidly.
9784 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9786 * xfaces.c (Vparam_value_alist): New variable.
9787 (syms_of_xfaces): Initialize it.
9788 (Finternal_set_lisp_face_attribute): Avoid more consing.
9790 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
9792 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
9793 (Qbackground_mode): New variable.
9794 (syms_of_frame_1): Initialize Qbackground_mode.
9796 * lisp.h (Qdisplay): Declare extern.
9798 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
9799 change face on all frames, and change the default for new frames.
9801 2000-09-07 Dave Love <fx@gnu.org>
9803 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
9805 2000-09-07 Kenichi Handa <handa@etl.go.jp>
9807 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
9809 * charset.c: Include composite.h
9810 (lisp_string_width): New function.
9811 (Fstring_width): Call lisp_string_width instead of strwidth.
9813 * Makefile.in (charset.o): Depends on composite.h.
9815 * process.c (read_process_output): Before inserting the decoded
9816 text in the buffer, adjust the multibyteness.
9818 2000-09-06 Gerd Moellmann <gerd@gnu.org>
9820 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
9821 buffer's text buffer is null, map new memory.
9823 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
9824 POINTER_TYPE and size_t.
9825 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
9826 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
9827 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
9828 [REL_ALLOC_MMAP]: New macros.
9829 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
9830 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
9831 [REL_ALLOC_MMAP]: New functions.
9833 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
9834 before and after unexec.
9836 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
9837 text buffers if necessary.
9839 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
9840 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
9843 * config.in (HAVE_MMAP): Add #undef.
9845 2000-09-05 Gerd Moellmann <gerd@gnu.org>
9847 * frame.c (Qdisplay_type): New variable.
9848 (syms_of_frame_1): Initialize it.
9849 (Fframe_parameter): New function that avoids consing.
9850 (syms_of_frame): Defsubr it.
9852 * buffer.c (Fother_buffer): Consider buffers as invisible when
9853 they are displayed in a window on an invisible frame.
9855 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
9856 get-largest-window always return nil.
9858 2000-09-04 Gerd Moellmann <gerd@gnu.org>
9860 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
9861 variable; recognize Emacs 19 elc files.
9863 2000-09-04 Miles Bader <miles@gnu.org>
9865 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
9866 before initially popping up the menu, so the menu doesn't flash
9867 when the face settings are significantly different from the defaults.
9869 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
9871 * regex.c (WIDE_CHAR_SUPPORT): New macro.
9872 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
9873 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
9874 (BIT_UNIBYTE): Remove.
9875 (re_match_2_internal): Delete corresponding code and streamline the
9876 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
9877 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
9878 (re_wctype_t): New type.
9879 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
9880 (regex_compile): Use them and fix handling of overly long char classes.
9882 2000-09-03 Andrew Innes <andrewi@gnu.org>
9884 * makefile.w32-in: Change to DOS line endings.
9886 * s/ms-w32.h (ORDINARY_LINK): New define.
9888 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
9889 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
9891 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
9892 (distclean): Delete them here instead.
9894 * w32proc.c (compare_env): Convert to uppercase for comparison,
9895 not lowercase, to match how the native Windows shell works.
9897 2000-09-03 Jason Rumney <jasonr@gnu.org>
9899 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
9900 CVS changes the line-ends when checking in/out on DOS/Windows.
9902 * makefile.nt (emacs): Do not change directory to run temacs, as
9903 the load-path is set relative to current directory.
9905 2000-09-03 Miles Bader <miles@gnu.org>
9907 * xterm.c (x_alloc_lighter_color_for_widget): New function.
9909 2000-09-02 Gerd Moellmann <gerd@gnu.org>
9911 * xdisp.c (redisplay_mode_lines): New function.
9912 (display_mode_lines): Return number of mode lines displayed.
9913 (echo_area_display): Use redisplay_mode_lines to draw garbaged
9914 mode lines. Don't temporarily bind redisplay-dont-pause to t.
9916 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
9917 string.h and strings.h.
9918 (index) [HAVE_INDEX]: Add prototype.
9920 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
9921 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
9923 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
9924 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9926 2000-09-01 Gerd Moellmann <gerd@gnu.org>
9928 * lread.c (read1): Accept `?' as symbol constituent, for
9929 compatiblity with XEmacs.
9931 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
9933 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
9934 (struct re_pattern_buffer): Remove newline_anchor.
9935 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
9936 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
9937 (re_max_failures, fail_stack): Use size_t rather than unsigned.
9938 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
9939 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
9940 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
9941 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
9942 Get rid of references to newline_anchor.
9943 (regcomp): Allocate and precompute a fastmap.
9945 2000-08-31 Gerd Moellmann <gerd@gnu.org>
9947 * lread.c (openp): GCPRO local variable `filename'.
9949 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
9951 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
9953 * regex.c: Merge some changes from GNU libc. Add prototypes.
9954 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
9955 Use memcmp and memcpy instead of bcopy and bcmp.
9956 (init_syntax_once): Use ISALNUM.
9957 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
9958 (REG_UNSET_VALUE): Remove. Use NULL instead.
9959 (REG_UNSET, re_match_2_internal): Use NULL.
9960 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
9962 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
9963 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
9964 (regex_compile): In handle_interval, return an error rather than try to
9965 unfetch the interval if we can't find the closing brace.
9966 Obey the RE_NO_GNU_OPS syntax bit.
9967 (TOLOWER): New macro.
9969 (regexec): Allocate regs.start and regs.end as one block.
9971 2000-08-30 Gerd Moellmann <gerd@gnu.org>
9973 * xdisp.c (echo_area_display): Check display_completed instead
9974 of calling detect_input_pending.
9976 * dispnew.c (update_frame): Only set display_completed here; move
9977 the update_begin and update_end calls here from update_frame_1.
9978 (update_frame_1): Don't set display_completed here, don't call
9979 update_begin/update_end.
9981 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
9982 instead of store_frame_param.
9984 2000-08-29 Gerd Moellmann <gerd@gnu.org>
9986 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
9987 desired window matrix hasn't been displayed, use the current row
9988 instead. Make sure that only those frame rows are updated for
9989 which there exists a corresponding enabled desired row.
9991 2000-08-29 Miles Bader <miles@gnu.org>
9993 * xfaces.c (default_face_vector): New function.
9994 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
9996 2000-08-29 Gerd Moellmann <gerd@gnu.org>
9998 * lread.c (openp): Prevent temporary string passed to
9999 Ffile_readable_p from being garbage collected.
10001 2000-08-28 Dave Love <fx@gnu.org>
10003 * keymap.c (store_in_keymap): Add `static' to declaration.
10005 2000-08-28 Gerd Moellmann <gerd@gnu.org>
10007 * emacs.c, callint.c, doc.c, editfns.c
10008 (toplevel) [HAVE_STRING_H]: Include string.h.
10009 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
10010 (index): Remove prototypes which might conflict with non-standard
10011 definitions of index/strchr.
10013 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
10014 (rindex): Define only if !HAVE_RINDEX.
10016 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
10018 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
10020 2000-08-28 Miles Bader <miles@gnu.org>
10022 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
10023 made inconsistent by a font-related attribute in FROM.
10024 (merge_face_inheritance): Add function comment.
10026 2000-08-28 Kenichi Handa <handa@etl.go.jp>
10028 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
10029 the 4th arg (PREV_EVENT) Qt to suppress input method.
10031 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
10033 * regex.c: Indent cpp directives and remove parens after `defined'.
10034 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
10035 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
10036 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
10037 (re_compile_pattern): Use size_t for length.
10038 (init_syntax_once): Move to a better place.
10039 * regex.h: Merge changes from GNU libc. Indent cpp directives.
10040 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
10042 * syntax.c (back_comment): Detect cases where a comment-starter is
10043 actually inside another comment as in: /* a // b */ c // d \n.
10044 Make it clear that `comstart_pos' is unused for nested comments.
10046 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
10047 (KEYMAPP): New macro.
10048 (Fkeymap_parent, Fset_keymap_parent): Use it.
10049 (fix_submap_inheritance): Mark it static.
10050 (define_as_prefix, describe_buffer_bindings, describe_command)
10051 (describe_translation, describe_map): Complete prototypes.
10053 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
10055 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
10056 to better match the key-lookup behavior.
10058 2000-08-27 Gerd Moellmann <gerd@gnu.org>
10060 * xfaces.c (lface_fully_specified_p): Handle :inherit.
10061 (Finternal_set_lisp_face_attribute): Fix typo in error message.
10063 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
10065 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
10066 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
10067 (xterm.o): Depend on coding.h
10069 2000-08-26 Kenichi Handa <handa@etl.go.jp>
10071 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
10072 the corresponding '#endif'.
10074 2000-08-26 Miles Bader <miles@gnu.org>
10076 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
10077 * xfaces.c (QCinherit): New variable.
10078 (syms_of_xfaces): Initialize it.
10079 (LFACE_INHERIT): New macro.
10080 (Finternal_get_lisp_face_attribute)
10081 (merge_face_vector_with_property)
10082 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
10083 (check_lface_attrs): Allow new types of face height. Check
10085 (CYCLE_CHECK): New macro.
10086 (merge_face_inheritance): New function.
10087 (merge_face_vectors): Merge inherited faces too. Add F and
10088 CYCLE_CHECK arguments.
10089 (merge_face_vector_with_property, Finternal_merge_in_global_face)
10090 (lookup_named_face, lookup_derived_face, realize_named_face)
10091 (face_at_string_position, face_at_buffer_position): Supply
10092 new F and CYCLE_CHECK arguments to merge_face_vectors.
10093 (merge_face_heights): New function.
10094 (merge_face_vectors, merge_face_vector_with_property)
10095 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
10096 handle relative face heights.
10097 (lface_same_font_attributes_p): Compare heights using EQ.
10099 2000-08-26 Kenichi Handa <handa@etl.go.jp>
10101 * charset.c (char_to_string): Check the character validity.
10102 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
10104 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
10106 * regex.c (PUSH_FAILURE_COUNT): New macro.
10107 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
10108 Handle popping of a register's or a counter's data.
10109 (POP_FAILURE_POINT): Use the new name.
10110 (re_match_2_internal): Push counter data on the stack for succeed_n,
10111 jump_n and set_number_at and remove misleading dead code in succeed_n.
10113 2000-08-25 Gerd Moellmann <gerd@gnu.org>
10115 * xdisp.c (redisplay_internal): If considering all windows on all
10116 frames, update the display for each frame as soon as possible,
10117 instead of first building all desired matrices for all frames, and
10118 then updating them all.
10119 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
10121 2000-08-24 Gerd Moellmann <gerd@gnu.org>
10123 * bytecode.c (mark_byte_stack): Add a comment.
10125 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
10126 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
10129 2000-08-24 Kenichi Handa <handa@etl.go.jp>
10131 * minibuf.c (do_completion): Always use compare-string, not
10132 string-equal because the latter doesn't pay attention to
10133 multibyteness of strings.
10135 * process.c (create_process): Don't setup raw-text coding here.
10136 (Fopen_network_stream): Don't set coding->src_multibyte and
10137 coding->dst_multibyte here.
10138 (read_process_output): For process filter, return unibyte string
10139 if default-enable-multibyte-characters is nil.
10140 (send_process): If OBJECT is multibyte text, be sure to encoded it
10141 by the specified coding system for the process. Otherwise, setup
10143 (init_process): Don't initialize default-process-coding-system here.
10145 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
10147 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
10148 <scroll-down-aggressively>: Likewise.
10150 2000-08-23 Kenichi Handa <handa@etl.go.jp>
10152 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
10153 zero. Set coding->produced_char correctly.
10155 2000-08-22 Andrew Innes <andrewi@gnu.org>
10157 * makefile.w32-in: New file.
10159 * unexw32.c (unexec): Ignore old_name, and use the actual location
10160 of the current executable instead. Base new_name on this.
10162 * w32proc.c (create_child): Remove reference to security
10163 descriptor, which isn't needed and doesn't compile with mingw32.
10165 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10166 up dllimport attributes.
10167 (x_update_window_end): Update prototype.
10169 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
10170 extern, which screws up dllimport attributes.
10172 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10173 up dllimport attributes.
10175 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
10176 screws up dllimport attributes.
10178 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10179 up dllimport attributes.
10180 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
10181 screws up dllimport attributes.
10183 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10184 up dllimport attributes.
10186 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
10187 screws up dllimport attributes.
10189 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
10190 screws up dllimport attributes.
10192 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10193 up dllimport attributes.
10195 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
10196 unnecessary extern, which screws up dllimport attributes.
10199 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10200 up dllimport attributes.
10202 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
10203 unnecessary extern, which screws up dllimport attributes.
10205 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
10206 screws up dllimport attributes.
10208 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10209 up dllimport attributes.
10211 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
10213 * w32bdf.c (search_file_line):
10214 (set_bdf_font_info):
10216 (w32_get_bdf_glyph):
10217 (w32_BDF_to_x_font): Fix compile warnings.
10219 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
10221 * w32select.c: Include keyboard.h before frame.h.
10223 * w32fns.c (max): Define macro.
10224 (JOHAB_CHARSET): Define if not known.
10225 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
10226 (Fx_show_tip): Synch with X version.
10228 * w32xfns.c: Include keyboard.h before frame.h.
10230 * w32fns.c: Include keyboard.h before frame.h.
10232 * w32term.c: Include keyboard.h before frame.h.
10234 * fontset.c: Include keyboard.h before frame.h.
10236 * w32inevt.c: Include keyboard.h before frame.h.
10237 (MOUSE_MOVED): Define if not known.
10239 * minibuf.c: Include keyboard.h before frame.h.
10241 * keyboard.c: Include keyboard.h before frame.h.
10243 * indent.c: Include keyboard.h before frame.h.
10245 * dispnew.c: Include keyboard.h before frame.h.
10247 * buffer.c: Include keyboard.h before frame.h.
10249 * alloc.c: Include keyboard.h before frame.h.
10251 * print.c: Include keyboard.h before frame.h.
10253 * process.c: Include keyboard.h before frame.h.
10255 * scroll.c: Include keyboard.h before frame.h.
10257 * sysdep.c: Include keyboard.h before frame.h.
10259 * term.c: Include keyboard.h before frame.h.
10261 * window.c: Include keyboard.h before frame.h.
10263 * xdisp.c: Include keyboard.h before frame.h.
10264 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
10266 * frame.c: Include keyboard.h before frame.h.
10268 * w32heap.h: Undefine min, max.
10270 * w32gui.h: Undefine min, max.
10272 * unexw32.c: Change PUCHAR to PCHAR.
10273 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
10275 (get_section_info):
10276 (copy_executable_and_dump_data): Remove unnecessary static defs.
10277 (copy_executable_and_dump_data): Fix compile warnings.
10279 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
10281 * w32console.c (min): Define macro.
10282 (clear_frame, write_glyphs): Fix compile warning.
10284 * w32proc.c (compare_env):
10285 (find_child_console): Fix compile warning.
10287 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
10288 sys_errlist instead of _sys_errlist.
10289 (get_emacs_configuration_options): New function.
10291 * s/ms-w32.h (sys_nerr): Provide default definition.
10292 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
10293 name with _ prepended.
10294 (NSIG): Define if not known.
10295 (get_emacs_configuration): Provide extern declaration.
10296 (get_emacs_configuration_options): Provide extern declaration.
10297 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
10299 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
10300 (map_w32_filename):
10301 (read_unc_volume): Fix compile warning.
10303 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
10304 definitions from being used.
10306 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
10308 * w32.c (unc_volume_file_attributes):
10309 (open_unc_volume): Make arg const.
10311 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
10312 (read_input_waiting): Remove excess parameter.
10314 * w32.c (init_environment): Call _access.
10315 (check_windows_init_file): Call _close.
10316 (init_user_info): Call _putenv.
10317 (init_environment): Call _putenv and _strdup.
10318 (init_ntproc): Reset volume info cache on startup.
10320 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
10321 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
10322 cannot override the CRT malloc.
10324 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
10325 (LINK_FLAGS): Append to original value of LINK_FLAGS.
10327 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
10328 unless we are linking with a static CRT.
10329 (RVA_TO_PTR): Cast result to unsigned char*.
10331 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
10332 (add_volume_info): Use xstrdup.
10334 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
10336 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
10337 (do_completion, Fminibuffer_complete_word): Use it.
10338 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
10339 var so it can take non-boolean values.
10341 2000-08-21 Gerd Moellmann <gerd@gnu.org>
10343 * editfns.c (find_field): Formatting changes.
10344 (toplevel): Some old-style function forward declarations
10345 changed to prototypes, some new protypes added, some functions
10348 * lisp.h (set_time_zone_rule): Add prototype.
10349 (use_dialog_box): External declaration.
10351 * keyboard.c (gen_help_event): Add parameter SIZE.
10352 (kbd_buffer_events_waiting): Slightly rewritten.
10353 (clear_event): New function.
10354 (kbd_buffer_get_event): Use it, and clear the input_events of
10356 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
10357 don't fill the newly created array with nils.
10358 (toplevel): Convert some old-style function forward declarations
10361 * keyboard.h (gen_help_event): Change prototype.
10363 * xterm.c (XTread_socket): Change calls to gen_help_event.
10365 * w32term.c (w32_read_socket): Change calls to gen_help_event.
10367 * eval.c (Fmacroexpand): Doc fix.
10369 2000-08-20 Jason Rumney <jasonr@gnu.org>
10371 * w32term.h (x_display_info_for_display): Remove as this function
10372 does not exist on W32.
10374 * w32term.c (help_echo_window): New variable.
10375 (syms_of_w32term): staticpro it.
10376 (note_mode_line_highlight): Set it.
10377 (XTextExtents16): Removed as there is no equivalent on W32.
10378 (x_compute_glyph_string_overhangs): Incomplete body removed, as
10379 the X way of doing this will not work for W32.
10380 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
10381 (x_draw_image_foreground): Avoid drawing outside of the clip area
10382 when image doesn't have a mask.
10383 (note_mouse_highlight): Process overlays in the right order of
10384 priority. Set help_echo_window.
10385 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
10386 because that's more visible for large images.
10388 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
10389 name to single_keymap_panes.
10390 (w32_menu_show): Set wv->title when dealing with titles.
10391 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
10393 2000-08-21 Miles Bader <miles@gnu.org>
10395 * minibuf.c (do_completion): Try again if we rewrite the input
10396 string, but no completion was done, so that any completion message
10399 2000-08-20 Gerd Moellmann <gerd@gnu.org>
10401 * xfaces.c (lface_equal_p): Compare strings differently.
10402 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
10403 (realize_tty_face): Use them.
10404 (syms_of_xfaces): Initialize new variables.
10405 (map_tty_color): New function, extracted from realize_tty_face.
10406 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
10407 foreground or background color, store the new color name in the
10408 realized face; previous code trying to do this had no effect.
10409 (realize_tty_face): Use map_tty_color.
10410 (Fclear_face_cache): Set face_change_count and ensure thorough
10413 2000-08-19 Gerd Moellmann <gerd@gnu.org>
10415 * undo.c (record_first_change, record_marker_adjustment): Don't
10416 use XBUFFER on last_undo_buffer which might not be a buffer.
10418 2000-08-18 Kenichi Handa <handa@etl.go.jp>
10420 * coding.c (decode_coding_string): Set members consumed,
10421 consumed_char, produced, produced_char of *coding correctly. If
10422 decode_coding doesn't consume any byte, don't try anymore.
10423 (encode_coding_string): Likewise.
10425 2000-08-18 Gerd Moellmann <gerd@gnu.org>
10427 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
10428 conditional have void type, for Standard C compilers.
10430 * xdisp.c (redisplay_internal): Compare windows for equality with
10431 EQ, instead of applying XWINDOW to something that might not
10434 2000-08-18 Kenichi Handa <handa@etl.go.jp>
10436 * fontset.c (Finternal_char_font): Search only the selected frame
10437 for a window of the current buffer.
10439 2000-08-18 Gerd Moellmann <gerd@gnu.org>
10441 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
10444 * keyboard.c (kbd_buffer_get_event): Handle the case that the
10445 second half of a HELP_EVENT is found at the start of kbd_buffer.
10447 2000-08-18 Miles Bader <miles@gnu.org>
10449 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
10451 * editfns.c (save_restriction_save): Rewrite to use markers.
10452 (save_restriction_restore): Rewrite to understand new form of data
10453 saved by save_restriction_save.
10454 (Fsave_restriction): Remove cautionary note in doc-string.
10456 2000-08-17 Gerd Moellmann <gerd@gnu.org>
10458 * fileio.c (build_annotations): Add a comment explaining the
10459 return value of format-annotate-function. Replace a spurious call
10460 to Flength with a CONSP test. Call format-annotate-function with
10461 a fifth arg specifying how many times the function is been called
10462 in a row, to let it choose temporary buffers appropriately.
10464 2000-08-17 Dave Love <fx@gnu.org>
10466 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
10467 declare make_temp_name twice.
10469 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
10470 (unreadpure): Give it an arg.
10472 * unexalpha.c: Prototype fatal_unexec, mark_x,
10473 update_dynamic_symbols. Declare unexec as void.
10475 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
10476 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
10478 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
10479 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
10481 * alloca.c: Use #error.
10482 [POINTER_TYPE]: Use it.
10484 * eval.c (Fdefvar): Doc fix.
10486 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
10487 INITIALIZE_INTERVAL.
10489 * buffer.h: Avoid DECLARE_INTERVALS.
10491 * config.in: Add size_t.
10493 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
10495 * w16select.c (set_clipboard_data): If there's not enough memory
10496 to put text into clipboard, return 1, as Fw16_set_clipboard_data
10497 expects. In case of other failures, return 3.
10498 (system_error_msg): New error message.
10499 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
10502 2000-08-16 Gerd Moellmann <gerd@gnu.org>
10504 * term.c (write_glyphs): Also turn off inverse video after turning
10505 off other appearances in case TS_exit_attribute_mode is not equal
10506 to TS_end_standout_mode.
10507 (insert_glyphs): Turn inverse video on/off for each run of glyphs
10508 with the same face.
10509 (turn_off_face): Reset standout_mode only if
10510 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
10511 is equal to TS_end_standout_mode.
10513 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10515 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
10516 sequence at the end of the source block.
10518 * ccl.c (Fccl_program_p): Docstring modified.
10519 (Fccl_execute): Likewise.
10520 (Fccl_execute_on_string): Likewise.
10522 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
10524 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
10526 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10528 The following changes are mainly to fix bugs of
10529 encode/decode-coding-string failing if encoding/decoding return
10530 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
10531 variable conversion_buffer.
10533 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
10534 decrement dst_end to avoid buffer overflow in the later call of
10535 string_as_multibyte
10537 * coding.h (conversion_buffer_size, conversion_buffer)
10538 (get_conversion_buffer): Extern deleted.
10540 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
10541 (conversion_buffer, conversion_buffer_size): Variables deleted.
10542 (get_conversion_buffer): Function deleted.
10543 (struct conversion_buffer): New structure.
10544 (MAX_ALLOCA): New macro.
10545 (allocate_conversion_buffer): New macro.
10546 (extend_conversion_buffer, free_conversion_buffer): New functions.
10547 (ccl_coding_driver): Set coding->result.
10548 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
10549 this is the last block of source.
10550 (encode_coding): Likewise. Handle the source block as the last
10551 one only when the whole source text is consumed.
10552 (decode_coding_string): Handle the case that the output buffer is
10553 too small to decode the whole source text. Use
10554 allocate_conversion_buffer, extend_conversion_buffer and
10555 free_conversion_buffer, not get_conversion_buffer.
10556 (encode_coding_string): Likewise.
10557 (init_coding): Function deleted.
10558 (init_coding_once): Delete code to initialize conversion_buffer_size.
10560 * emacs.c (main): Don't call init_coding.
10562 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
10564 * term.c (write_glyphs): Use a locally declared conversion_buffer.
10565 (insert_glyphs): Likewise.
10567 * w32console.c (write_glyphs): Use a locally declared
10570 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
10572 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
10573 member of display_info is NULL.
10575 2000-08-15 Gerd Moellmann <gerd@gnu.org>
10577 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
10579 * term.c (turn_off_face): Reset standout_mode when resetting
10580 appearances with capability `me'.
10581 (write_glyphs): Switch on inverse video before each face change.
10583 2000-08-14 Dave Love <fx@gnu.org>
10585 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
10586 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
10587 (lisp_free): Declare and make static.
10589 * window.c: Fix embedded comment.
10590 (syms_of_window): Fix doc string.
10592 2000-08-14 Gerd Moellmann <gerd@gnu.org>
10594 * keymap.c (push_key_description): If C without modifiers is < 32,
10595 make sure to print `C-' before `M-', like in the manual.
10597 2000-08-11 Gerd Moellmann <gerd@gnu.org>
10599 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
10600 since they aren't relocated anymore.
10601 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
10603 * xdisp.c (try_cursor_movement): Fix handling of cursor in
10604 partially visible line which is smaller than the window's height.
10606 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10608 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
10609 the multibyte form of eight-bit-control characters.
10610 (Fccl_execute_on_string): Initialize ccl->multibyte.
10612 * ccl.h (struct ccl_program): New member multibyte.
10614 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
10616 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10618 * regex.c (regex_compile) <normal_char>: Pay attention to
10620 (analyse_first) <exactn>: Setup fastmap correctly for
10621 eight-bit-control characters.
10623 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10625 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
10627 * keyboard.c (make_lispy_event): Handle the new event type
10628 multibyte_char_keystroke.
10630 * xterm.c: Include coding.h.
10631 (XTread_socket): Work around a bug of XmbLookupString. If the
10632 input is from XIM, decode it according to the current locale. In
10633 that case, generate multibyte_char_keystroke events.
10635 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10637 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
10638 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
10640 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10642 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
10643 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
10644 (move_it_in_display_line_to): Record iterator's ascent and descent
10645 before producing glyphs, and restore them when we know the glyph
10646 doesn't fit on the line.
10647 (move_it_to): Restructured so that it's easier to debug. If
10648 moving to a vpos, and not moving to an x or character position,
10649 stop as soon as the specified vpos is reached; don't move further
10650 into that line because that might change the computed line height.
10651 (try_cursor_movement): New function, extracted from the cursor
10652 movement branch of redisplay_window. If ending on a partially
10653 visible line, don't try to scroll if the cursor line is taller
10655 (redisplay_window): Use try_cursor_movement.
10657 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
10658 because that function doesn't cope with variable-height lines.
10660 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
10661 box cursor because that's better visible for large images.
10663 2000-08-10 Miles Bader <miles@gnu.org>
10665 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
10667 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10669 * xdisp.c (Vmessages_buffer_name): New variable.
10670 (message_dolog): Use it.
10671 (syms_of_xdisp): Initialize it.
10673 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
10675 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
10676 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
10677 redundant now that keyboard.h is included.
10679 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
10681 * keyboard.c (kbd_buffer_events_waiting): New function.
10683 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
10685 * msdos.c: Include keyboard.h.
10686 (XMenuActivate): Empty no_event events from the event buffer. If
10687 no events are left after that, call clear_input_pending.
10688 (mouse_clear_clicks): New function, code moved from mouse_init.
10689 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
10690 mouse driver to ``forget'' any past clicks.
10692 * Makefile.in (msdos.o): Depend on keyboard.h.
10694 2000-08-09 Gerd Moellmann <gerd@gnu.org>
10696 * lisp.h (input_pending): External declaration.
10698 * dispextern.h (Qredisplay_dont_pause): Declare extern.
10700 * xdisp.c (echo_area_display): Display thoroughly if input is
10701 pending. Bind redisplay-dont-pause to t during the redisplay.
10702 in case input is pending.
10704 * dispnew.c (Qredisplay_dont_pause): New variable.
10705 (syms_of_display): Initialize and staticpro it.
10706 (update_frame_1): Don't interrupt the display for pending input if
10707 redisplay_dont_pause is set.
10709 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
10711 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10713 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
10715 * callproc.c (Fcall_process): Terminate the unwind-protect around
10716 the post-read-conversion of coding system.
10718 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
10719 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
10720 * buffer.h (overlays_at): Update prototype.
10721 * xdisp.c (next_overlay_change): Update call to overlays_at.
10722 * xfaces.c (face_at_buffer_position): Likewise.
10723 * textprop.c (Fget_char_property): Likewise.
10724 * xterm.c (note_mouse_highlight): Likewise.
10726 * minibuf.c (do_completion): Don't consider a simple change of
10727 case as `completion'.
10729 2000-08-08 Ken Raeburn <raeburn@gnu.org>
10731 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
10732 * undo.c (record_delete): Make sure last_point_position_buffer is
10733 a buffer before comparing pointers.
10735 * coding.h (decode_coding_string): Declare.
10737 * intervals.h (Fprevious_single_char_property_change): Declare.
10739 * textprop.c (Fprevious_single_char_property_change): Don't do
10740 arithmetic directly on lisp objects.
10742 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
10744 * keyboard.h (menu_item_eval_property): Declare.
10746 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
10747 reuse as buffer name, instead of recreating (and discarding) every
10748 time a message is logged.
10749 (with_echo_area_buffer): Make callback arg A2 a lisp object.
10750 (current_message_1, truncate_message_1, set_message_1)
10751 (display_echo_area_1, resize_mini_window_1): Signatures changed.
10752 (current_message, truncate_echo_area, display_echo_area)
10753 (resize_echo_area_axactly): Changed calls.
10755 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
10757 (Ffind_coding_systems_region_internal): First argument to Fappend
10758 must be an integer, not a Lisp object.
10760 2000-08-08 Kenichi Handa <handa@etl.go.jp>
10762 * charset.c (Fchar_width): Doc fix.
10764 2000-08-08 Gerd Moellmann <gerd@gnu.org>
10766 * charset.c (Fstring_width): Doc fix.
10768 2000-08-07 Gerd Moellmann <gerd@gnu.org>
10770 * xdisp.c (start_display): When starting display on a continuation
10771 line, clear ascent and descent members of the iterator structure;
10772 the height of the continued line does not affect the height of the
10774 (make_cursor_line_fully_visible): Do nothing if cursor is on a
10775 line taller than the window.
10776 (redisplay_window) <forced window start>: Handle case that the
10777 middle of the window is not found in any row.
10778 (dump_glyph_row): Show more information.
10779 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
10780 first text line in a glyph matrix.
10782 * xterm.c (x_draw_image_foreground): Avoid drawing outside
10783 of the clip area when image doesn't have a mask.
10785 * fns.c (sweep_weak_table): Fix survival conditions for
10786 key-or-value and key-and-value weakness.
10788 * .gdbinit (xhashtable): New command.
10790 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
10791 tables out of the list of all weak hash tables.
10793 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
10794 a new buffer is created, make sure echo_area_buffer[] references
10797 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
10799 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
10802 2000-08-07 Kenichi Handa <handa@etl.go.jp>
10804 * syntax.c (skip_chars): Fix previous change. Make the handling
10805 of unibyte string consistent with that of regex search.
10807 2000-08-05 Gerd Moellmann <gerd@gnu.org>
10809 * xmenu.c (popup_get_selection): Use xfree instead of free.
10811 * fileio.c (Finsert_file_contents): Use xfree instead of free.
10813 * editfns.c (Ftranspose_regions): Use xfree instead of free.
10815 * callproc.c (child_setup): Use xfree instead of free.
10817 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
10819 (run_mac_command, closedir): Use `xfree' instead of `free'.
10821 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
10823 * eval.c (error): Use xfree instead of free.
10825 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
10827 * fns.c: Replace `illegal' with `invalid'.
10828 (Fmake_hash_table, make_hash_table): Allow table size of 0.
10830 2000-08-05 Kenichi Handa <handa@etl.go.jp>
10832 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
10835 2000-08-04 Noah Friedman <friedman@splode.com>
10837 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
10840 2000-08-04 Gerd Moellmann <gerd@gnu.org>
10842 * syntax.c (skip_chars): Fix typo in error message.
10844 2000-08-04 Andreas Schwab <schwab@suse.de>
10846 * m/ia64.h: Moved from s/ia64.h.
10848 2000-08-04 Kenichi Handa <handa@etl.go.jp>
10850 * process.c (read_process_output): Big simplification. Handle
10851 composition and post-read-conversion of coding system correctly.
10852 (send_process): Handle composition correctly.
10854 * callproc.c (Fcall_process): Handle post-read-conversion of
10855 coding system if any.
10857 * coding.c (decode_coding_iso2022): More strict check for handling
10859 (coding_restore_composition): Pay attention to the case that
10860 cmp_data is not set properly (because of invalid code in the
10862 (run_pre_post_conversion_on_str): Include text properties in the
10864 (decode_coding_string): Set members of coding correctly.
10866 2000-08-03 Gerd Moellmann <gerd@gnu.org>
10868 * s/ia64.h: New file.
10870 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
10871 Use NULL instead of 0 at the end of variable argument list of
10872 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
10873 sizeof (int) < sizeof (void *).
10875 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
10876 of variable argument lists of XtVaGetValues and XtVaSetValues.
10878 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
10879 variable argument lists of XtVaGetValues and XtVaSetValues.
10881 2000-08-02 Gerd Moellmann <gerd@gnu.org>
10883 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
10884 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
10886 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
10889 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
10890 in call to Fsingle_key_description.
10892 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
10895 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
10897 * window.c (display_buffer_reuse_frames): New variable.
10898 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
10899 frames displaying BUFFER.
10900 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
10902 2000-08-01 Miles Bader <miles@gnu.org>
10904 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
10905 when to constrain NEW_POS (they were pretty screwed up before).
10907 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
10909 * msdos.c (run_msdos_command): Save and restore the master
10910 environment, for the case that child_setup signals an error.
10911 When mirroring slashes in DOS shell commands, don't fail when
10912 argv[2] has embedded blanks.
10913 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
10914 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
10915 (dos_ttraw): Call mouse_setup_buttons.
10917 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
10918 using alloca; free it after run_msdos_command returns.
10920 2000-07-27 Dave Love <fx@gnu.org>
10922 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
10923 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
10925 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
10927 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
10929 * editfns.c (lisp_time_argument): Fix last change.
10931 2000-07-27 Gerd Moellmann <gerd@gnu.org>
10933 * fns.c (Fdelete): Make it work on vectors and strings in addition
10936 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
10937 (syms_of_fns): Initialize new variables.
10938 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
10939 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
10940 weakness, with t meaning the same as `key-and-value'.
10942 2000-07-27 Kenichi Handa <handa@etl.go.jp>
10944 * coding.h (struct coding_system): Member safe_charset deleted.
10946 * coding.c (Qsafe_charsets): This variable deleted.
10947 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
10949 (coding_safe_chars): New function.
10950 (CODING_SAFE_CHAR_P): New macro.
10951 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
10952 checking safe_charsets member of the coding system. Caller changed.
10953 (detect_coding_iso2022): New local variable safe_chars.
10954 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
10955 safe_charsets member of the coding system.
10956 (decode_coding_iso2022): New local variable safe_chars.
10957 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
10958 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
10959 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
10960 (ENCODE_UNSAFE_CHARACTER): New macro.
10961 (encode_coding_iso2022): New local variable safe_chars. Check
10963 (setup_coding_system): Delete the code to initialize
10964 coding->safe_charses
10965 (intersection, find_safe_codings): New functions.
10966 (Ffind_coding_systems_region_internal): New function.
10967 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
10968 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
10969 variable and initialize it.
10971 * fns.c (char_table_ref_and_index): New function.
10973 * lisp.h (char_table_ref_and_index): Add prototype.
10975 2000-07-26 Sam Steingold <sds@gnu.org>
10977 * editfns.c (lisp_time_argument): Added third argument `usec'.
10978 (Ffloat_time): New built-in Lisp function.
10980 2000-07-26 Gerd Moellmann <gerd@gnu.org>
10982 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
10983 for the character code.
10985 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
10988 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
10989 if called for a popup menu.
10990 (xmenu_show): Store help string in widget values.
10992 2000-07-26 Dave Love <fx@gnu.org>
10994 * syswait.h: Move some definitions.
10995 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
10996 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
10997 perspicuous definitions.
10998 (WTERMSIG): Fix bit pattern used.
11000 2000-07-26 Kenichi Handa <handa@etl.go.jp>
11002 * print.c (print_object): If vector printing is truncated, print
11003 "..." to indicate it as well as the case of list printing.
11005 2000-07-25 Gerd Moellmann <gerd@gnu.org>
11007 * xdisp.c (next_element_from_display_vector): Improve comments.
11009 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
11010 for the character code, and the rest for the face id as in 20.x.
11011 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
11013 * window.c (window_display_table): Cleaned up.
11015 * syntax.c (Fforward_word): Add last arg nil in call of
11016 Fconstrain_to_field.
11018 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
11020 * fileio.c (Frename_file) [DOS_NT]: If the file names are
11021 identical but for the letter-case, don't call
11022 barf_or_query_if_file_exists.
11024 2000-07-25 Miles Bader <miles@gnu.org>
11026 * editfns.c (find_field): Honor special `boundary' fields.
11027 (Qboundary): New variables.
11028 (syms_of_editfns): Initialize Qboundary.
11029 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
11030 Use scan_buffer instead of find_before_next_newline, because it
11031 allows us to detect the boundary case where there's a newline at
11033 * lisp.h (Fconstrain_to_field): Update external declaration.
11035 2000-07-24 Gerd Moellmann <gerd@gnu.org>
11037 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
11040 2000-07-24 Dave Love <fx@gnu.org>
11042 * s/sunos4-0.h, s/sol2.h:
11043 (LIBS_TERMCAP): Move from m/sparc.h.
11045 * m/sparc.h (TERMINFO): Moved to system files (probably only
11046 relevant for sunos4 judging by its vintage).
11047 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
11050 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
11052 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
11053 name to single_keymap_panes.
11055 2000-07-24 Andreas Schwab <schwab@suse.de>
11057 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
11059 2000-07-24 Gerd Moellmann <gerd@gnu.org>
11061 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
11062 parameters instead of using int parameters. Expect FN to accept
11063 EMACS_INT parameters.
11064 (display_echo_area, resize_echo_area_axactly, current_message)
11065 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
11066 with new argument list.
11067 (resize_mini_window_1): New callback function.
11068 (current_message_1, truncate_message_1, set_message_1): Change
11069 parameter lists to the new format expected by with_echo_area_buffer.
11071 2000-07-24 Kenichi Handa <handa@etl.go.jp>
11073 * fontset.c (fontset_ref): Remove INLINE declaration.
11074 (fontset_ref_via_base): Likewise.
11075 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
11078 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
11080 * msdos.c (IT_note_mouse_highlight): Process overlays in the
11081 correct order of priority. If help echo was found in an overlay,
11082 use that overlay as the object in which the help echo was found.
11084 2000-07-22 Miles Bader <miles@gnu.org>
11086 * textprop.c (Fprevious_single_char_property_change): The initial
11087 property value should be from the position preceding POSITION, not
11090 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
11092 * coding.c (syms_of_coding): Doc fix for
11093 inhibit-iso-escape-detection.
11095 2000-07-21 Gerd Moellmann <gerd@gnu.org>
11097 * xterm.c (note_mouse_highlight): Process overlays in the right
11100 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
11102 * xterm.c (note_mouse_highlight): If help-echo was found in an
11103 overlay, use that overlay as the object in which the help was found.
11105 * window.c (foreach_window_1): Fix typo reversing an if-condition.
11107 * window.c (foreach_window): Instead of a fake variable argument
11108 list, take one USER_DATA argument.
11109 (foreach_window_1): Likewise, and call callback functions with two
11110 args, the window and USER_DATA.
11111 (struct check_window_data): New struct.
11112 (check_window_containing): Use it.
11113 (window_from_coordinates): Set up a struct check_window_data for
11115 (add_window_to_list, freeze_window_start): Change parameters
11116 according to new calling convention.
11118 * window.h (foreach_window): Change prototype.
11120 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
11122 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
11124 * xmenu.c (menu_help_callback): Call show_help_echo with
11125 additional arguments OBJECT and POS.
11127 2000-07-21 Kenichi Handa <handa@etl.go.jp>
11129 * data.c (Faset): Allow storing any multibyte character in a
11130 string. Convert unibyte string to multibyte if necessary.
11132 * xfns.c (x_encode_text): New function.
11133 (x_set_name): Use x_encode_text.
11134 (x_set_title): Likewise.
11136 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
11138 * xterm.h (x_encode_text): Add prototype.
11140 2000-07-20 Dave Love <fx@gnu.org>
11142 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
11145 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
11147 * msdos.c (help_echo_window): New variable.
11148 (syms_of_msdos): Initialize and staticpro it.
11149 (IT_note_mode_line_highlight): Set help_echo_window.
11150 (IT_note_mouse_highlight): Ditto.
11151 (dos_rawgetc): Store help_echo_window in the second event produced
11154 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
11155 Record the object that generated the help echo and the position of
11156 that object in help_echo_object and help_echo_pos. Record that
11157 some glyphs in a row are displayed in mouse-face.
11158 (IT_update_begin): Don't clear mouse highlight unless one of the
11159 enabled glyph rows is marked as being displayed in mouse-face.
11160 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
11161 and position recorded in help_echo_object and help_echo_pos to the
11163 (IT_menu_display): Accept a new argument PN: the pane number of
11164 the current menu pane. Record the pane number and the item
11165 number of the item which has associated help string.
11166 (XMenuActivate): Update the prototype for help_callback in
11167 function declaration. Call IT_menu_display with the current menu
11168 pane number as an additional argument. Call help_callback with
11169 two additional arguments: the pane number and the item number of
11170 the menu item associated with the help text.
11171 (help_echo_object, help_echo_pos): New variables.
11172 (syms_of_msdos): Initialize them and staticpro help_echo_object.
11174 * msdos.h (XMenuActivate): Update prototype.
11176 2000-07-19 Gerd Moellmann <gerd@gnu.org>
11178 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
11179 Add some more prototypes.
11181 * xterm.c, xterm.h: Add some more prototypes.
11183 * lisp.h (Fnext_single_char_property_change): Add prototype.
11185 * dispnew.c (direct_output_for_insert): Remove confusing
11186 outer local variable mouse_face_overwritten_p.
11187 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
11189 * alloc.c (allocate_string_data): Don't copy old string contents.
11191 2000-07-19 Kenichi Handa <handa@etl.go.jp>
11193 * coding.c (code_convert_region): Delete text properties before
11194 shrinking the conversion region.
11196 2000-07-18 Gerd Moellmann <gerd@gnu.org>
11198 * dispnew.c (update_text_area): Write the whole row if it
11199 has mouse-face in it.
11201 * xfaces.c (face-alternative-font-family-alist): Remove
11202 DEFVAR_LISP; staticpro instead.
11204 * xmenu.c (menu_help_callback): Call show_help_echo with
11207 * keyboard.c (show_help_echo): Add parameter WINDOW.
11208 (read_char): Call show_help_echo with window extracted from Lisp
11210 (gen_help_event): Add parameter WINDOW.
11212 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
11214 * xterm.c (help_echo_window): New variable.
11215 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
11216 (XTread_socket): Pass help_echo_window to gen_help_event.
11217 (syms_of_xterm): Initialize and staticpro help_echo_window.
11219 2000-07-18 Dave Love <fx@gnu.org>
11221 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
11223 2000-07-18 Gerd Moellmann <gerd@gnu.org>
11225 * alloc.c (allocate_string_data): If string had already data
11226 assigned, copy old contents to new string data.
11228 * coding.c (syms_of_coding): Fix typo in spelling of variable
11229 `inhibit-iso-escape-detection'.
11231 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
11233 * Makefile.in: Add dependencies on dispextern.h.
11234 (alloca.o): Don't define malloc and define EMACS_FREE instead of
11235 `free'; both can conflict with system header files.
11237 2000-07-18 Kenichi Handa <handa@etl.go.jp>
11239 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
11242 2000-07-18 Dave Love <fx@gnu.org>
11244 * window.c (Fwindow_list): Declare arg `window'.
11246 2000-07-18 Kenichi Handa <handa@etl.go.jp>
11248 * coding.c (setup_coding_system): Don't override the explicitly
11249 specified designations.
11251 2000-07-15 Miles Bader <miles@gnu.org>
11253 * editfns.c (char_property_eq, char_property_stickiness): Renamed
11254 from `text_property_eq' and `text_property_stickiness', respectively.
11255 (find_field, Fconstrain_to_field, char_property_eq)
11256 (char_property_stickiness): Changed to call char-property functions
11257 instead of text-property-only ones.
11259 * textprop.c (Fnext_single_char_property_change): Made a subr (was
11260 `next_single_char_property_change'). Do more error checking, and
11261 cleanup limit behavior.
11262 (Fprevious_single_char_property_change): New function.
11263 (syms_of_textprop): Initialize new subrs.
11265 * xdisp.c (display_prop_end, invisible_text_between_p):
11266 Call Fnext_single_char_property_change instead of
11267 next_single_char_property_change.
11269 2000-07-15 Jason Rumney <jasonr@gnu.org>
11271 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
11272 after menu is finished with.
11273 (add_menu_item): Only consider wv->title as a menu title.
11274 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
11276 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
11278 (FONT_REGEXP): Remove unused macro, and its sub-components.
11279 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
11281 * w32term.c (help_echo_object, help_echo_pos): New variables.
11282 (note_mode_line_highlight): Store additional information about the
11283 help-echo in help_echo_object and help_echo_pos. Check both
11284 `local-map' and `keymap' properties for changing the cursor
11285 (note_mouse_highlight): Store additional information about the
11286 help-echo in help_echo_object and help_echo_pos.
11287 (note_tool_bar_highlight): Set help_echo_object to nil and
11288 help_echo_pos to -1.
11289 (w32_read_socket): Use gen_help_event instead of filling
11290 input_events manually.
11291 (syms_of_w32term): Staticpro help_echo_object.
11292 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
11293 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
11294 (x_clear_mouse_face): New function.
11295 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
11296 (x_update_window_begin): No need to turn off the mouse
11298 (show_mouse_face): Set the mouse_face_p flag of glyph rows
11299 depending on whether they contain glyphs highlighted in mouse-face.
11300 (x_fill_stretch_glyph_string): Consume runs of stretch
11301 glyphs instead of a single one.
11302 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11303 with new argument list.
11304 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11305 (x_append_glyph, x_append_composite_glyph)
11306 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11307 changes in struct glyph starting 1999-12-27. See comments for
11308 xterm.c on 2000-07-05.
11310 2000-07-14 Sam Steingold <sds@gnu.org>
11312 * xfaces.c (realize_x_face): Fix the last patch:
11313 check `default_face' before dereferencing.
11315 2000-07-14 Dave Love <fx@gnu.org>
11317 * syntax.c (back_comment): Add null default in switch (for pcc).
11319 2000-07-14 Kenichi Handa <handa@etl.go.jp>
11321 * xfaces.c (realize_x_face): Make fontset using the base of the
11322 default_face's fontset, not using the default fontset.
11324 * coding.c (inhibit_iso_escape_detection): New variable.
11325 (syms_of_coding): Make it a Lisp variable.
11326 (detect_coding_iso2022): If inhibit_iso_escape_detection is
11327 nonzero, ignore ISO2022's escape sequence.
11329 2000-07-14 Gerd Moellmann <gerd@gnu.org>
11331 * alloca.c (malloc) [emacs]: Define as xmalloc.
11333 * xfns.c (Fx_show_tip): If frame parameters contain a position,
11334 use that instead of the mouse position. Add parameters DX and DY.
11336 * dispextern.h (Fx_show_tip): Adjust number of parameters
11339 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
11340 if HELP is a function, call it with OBJECT and POS as parameters
11341 to get the help to display.
11342 (gen_help_event, kbd_buffer_store_help_event): New functions.
11343 (kbd_buffer_get_event): Construct the Lisp help-event differently.
11344 (read_char): Call show_help_echo with new parameters.
11346 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
11349 * xterm.c (help_echo_object, help_echo_pos): New variables.
11350 (note_mode_line_highlight): Store additional information about the
11351 help-echo in help_echo_object and help_echo_pos. Check both
11352 `local-map' and `keymap' properties for changing the cursor
11353 (note_mouse_highlight): Store additional information about the
11354 help-echo in help_echo_object and help_echo_pos.
11355 (note_tool_bar_highlight): Set help_echo_object to nil and
11356 help_echo_pos to -1.
11357 (XTread_socket): Use gen_help_event instead of filling
11358 input_events manually.
11359 (syms_of_xterm): Staticpro help_echo_object.
11361 * xmenu.c (menu_highlight_callback): Use
11362 kbd_buffer_store_help_event instead of setting up and input_event
11363 structure manually.
11365 * xdisp.c (eval_form): GCPRO argument sexpr.
11366 (call_function): New function.
11367 (handle_single_display_prop): Use call_function and FUNCTIONP
11368 instead of checking whether if font_height is a symbol and
11371 * eval.c (internal_condition_case_2): New function.
11373 * lisp.h (FUNCTIONP): New macro.
11374 (internal_condition_case_2, call_function): Add prototypes.
11376 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
11377 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
11378 Always set `arg' member of input_events.
11379 (construct_menu_click): Unused function removed.
11381 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
11383 * w32term.c (construct_mouse_click, construct_mouse_wheel)
11384 (construct_drag_n_drop, x_scroll_bar_handle_click)
11385 (w32_read_socket): Always set `arg' member of input_events.
11387 * keyboard.c (show_help_echo): Use eval_form. Add comment.
11389 * lisp.h (eval_form): Add prototype.
11391 * xdisp.c (eval_form): Make it externally visible.
11393 2000-07-13 Gerd Moellmann <gerd@gnu.org>
11395 * xterm.c (x_handle_tool_bar_click): Store the frame in the
11396 frame_or_window slot of TOOL_BAR_EVENT input events instead of
11397 consing. For prefix events, store the frame in the `arg' slot of
11398 the event, otherwise store the key there.
11399 (XTread_socket): Instead of consing, use the frame_or_window slot
11400 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
11402 * xmenu.c (menu_highlight_callback): Store help string in the
11403 `arg' member of the input event; don't cons.
11404 (menubar_selection_callback): Use the `arg' slot of input events
11405 to queue additional information, instead of consing.
11407 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
11409 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
11411 (w32_read_socket): Adapt to changes in HELP_EVENTs.
11413 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
11414 input events to queue additional information, instead of consing.
11416 * keyboard.c (kbd_buffer_gcpro): Renamed from
11417 kbd_buffer_frame_or_window. Now used for all Lisp objects
11418 referenced from the input queue.
11419 (kbd_buffer_store_event): Always use structure assignment for
11420 copying input events. Record all Lisp objects referenced from
11421 events in kbd_buffer_gcpro.
11422 (kbd_buffer_get_event): Construct Lisp `help-echo' events
11423 differently from input events. Test for prefix menu_bar_events
11424 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
11425 event in kbd_buffer_gcpro to nil.
11426 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
11427 frame_or_window is equal to its arg member as prefix events.
11428 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
11429 used by an input event to nil.
11430 (init_keyboard): Use two times the size of the input queue
11431 for kbd_buffer_gcpro.
11432 (syms_of_keyboard): Likewise.
11434 * emacs.c (handle_USR2_signal, handle_USR1_signal):
11435 Use USER_SIGNAL_EVENT.
11437 * termhooks.h (struct input_event): Add member `arg'.
11438 (MENU_BAR_EVENT): Renamed from menu_bar_event.
11439 (USER_SIGNAL_EVENT): Renamed from user_signal.
11441 * xfaces.c (ASET): Remove definition.
11443 * lisp.h (AREF, ASET, ASIZE): New macros.
11445 * fontset.c (AREF, ASIZE): Remove definitions.
11447 * fns.c (AREF): Remove definition.
11449 * composite.c (AREF): Remove definition.
11451 2000-07-12 Gerd Moellmann <gerd@gnu.org>
11453 * dispnew.c (redraw_overlapped_rows): Add missing local.
11454 (scrolling_window): Remove debug code.
11456 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
11457 Before scrolling, turn off a mouse-highlight in the window
11460 * xterm.c (x_update_window_end): Add parameter
11461 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
11462 redisplay in XTframe_up_to_date.
11463 (x_clear_mouse_face): New function.
11464 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
11466 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
11468 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
11469 it when any row is written to that contains glyphs highlighted in
11471 (update_window): Call the window update end hook with new
11472 parameter MOUSE_FACE_OVERWRITTEN_P.
11473 (direct_output_for_insert): Give up if row contains mouse-face.
11475 * dispextern.h (struct redisplay_interface): Add parameter
11476 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
11477 (clear_mouse_face): New function pointer member.
11479 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
11481 * syntax.c (back_comment): Use one switch rather than a few `if's.
11482 Obey open_paren_in_column_0_is_defun_start.
11483 When reverting to the `slow' method, try to nicely handle the case
11484 of nested comments by checking that the comment-starter we found
11485 does indeed match the comment-ender.
11486 (scan_sexps_forward, scan_sexps_forward):
11487 Ignore excessive opening parenthesis rather than throwing an error.
11489 2000-07-11 Gerd Moellmann <gerd@gnu.org>
11491 * doc.c (Fsubstitute_command_keys): Handle case that a GC
11492 in Fwhere_is_internal or get_keymap_1 relocates string contents.
11494 * dispnew.c (direct_output_forward_char): Give up if currently
11495 displaying a message instead of the minibuffer contents.
11497 * xterm.c (x_update_window_begin): No need to turn off the mouse
11499 (show_mouse_face): Set the mouse_face_p flag of glyph rows
11500 depending on whether they contain glyphs highlighted in mouse-face.
11502 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
11503 compare the mouse_face_p flags of both rows.
11505 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
11507 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
11509 * keyboard.c (show_help_echo): Accept additional parameter
11510 ok_to_overwrite_keystroke_echo.
11511 (read_char): Call show_help_echo with a zero
11512 ok_to_overwrite_keystroke_echo argument.
11513 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
11514 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
11515 ok_to_overwrite_keystroke_echo argument.
11516 * w32menu.c (w32_menu_display_help): Call show_help_echo with
11517 non-zero ok_to_overwrite_keystroke_echo argument.
11519 2000-07-10 Gerd Moellmann <gerd@gnu.org>
11521 * xdisp.c (try_window_id): If changes are all below what is
11522 displayed in the window, and point is in the window, we still
11523 might have to find point on the display.
11525 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
11526 glyphs instead of a single one.
11527 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11528 with new argument list.
11529 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11531 * keymap.c (get_keymap_1): Add comment that this function can GC.
11532 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
11533 comment that functions can GC.
11534 (Fset_keymap_parent): GCPRO arg KEYMAP.
11536 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
11538 * msdos.c (XMenuActivate): After exiting the menu, restore the
11539 echo area message and erase it.
11541 2000-07-10 Kenichi Handa <handa@etl.go.jp>
11543 * fontset.c (Ffontset_info): Make the return value more compatible
11544 with that of Emacs 20.
11546 2000-07-07 Gerd Moellmann <gerd@gnu.org>
11548 * eval.c (Fsignal): Handle case that backtrace_list is null.
11550 2000-07-07 Kenichi Handa <handa@etl.go.jp>
11552 * ccl.c (Fccl_execute): Typo fixed.
11554 2000-07-06 Gerd Moellmann <gerd@gnu.org>
11556 * window.c (window_loop): Add missing gcpro1 local variable.
11558 * window.c (Fwindow_list): Reverse list at the end.
11559 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
11560 means allow windows on OWINDOW's frame, only.
11561 (window_loop): Simplified; use Fwindow_list.
11563 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
11565 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11567 * xterm.c (XTread_socket): Increment handling_signal at the start,
11568 decrement it at the end.
11570 * eval.c (handling_signal): New variable.
11571 (Fsignal): Abort if handling_signal is non-zero.
11573 * lisp.h (handling_signal): External declaration.
11575 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
11577 2000-07-05 Ken Raeburn <raeburn@gnu.org>
11579 Sound support for NetBSD through "Linux emulation" support:
11580 * config.in (HAVE_SOUNDCARD_H): Undef.
11581 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
11582 * Makefile.in (LIBSOUND): New variable.
11583 (LIBES): Include it.
11584 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
11585 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
11586 (vox_open): Use DEFAULT_SOUND_DEVICE.
11587 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
11589 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11591 * print.c (print_error_message): If Vsignaling_function is set,
11592 show it in *Messages*.
11594 * lisp.h (Vsignaling_function): External declaration.
11596 * eval.c (Vsignaling_function): New variable.
11597 (Fsignal): Compute it.
11598 (syms_of_eval): Staticpro it.
11600 2000-07-05 Dave Love <fx@gnu.org>
11602 * syswait.h: Use the autoconf recommended approach. Old code
11603 #if'd out in case we need to revert.
11605 * config.in (HAVE_SYS_WAIT_H): Added.
11607 2000-07-05 Andrew Innes <andrewi@gnu.org>
11609 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
11610 when non-NULL instead of __morecore, to take account of buffer
11611 memory. This also solves a problem with spurious memory warnings
11614 * ralloc.c: Make real_morecore non-static.
11616 * eval.c (internal_condition_case): Comment out abort if
11617 interrupt_input_blocked is not zero.
11619 * makefile.nt: Add support for `bootstrap' and related targets.
11620 Include minimal debug info in emacs.exe in release build.
11621 Remove all dependencies on lisp.h, and fixup some others.
11623 * w32.c (init_environment): Install code from 20.7 for providing
11624 default values for environment variables, based on the
11625 executable's own location.
11626 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
11627 (sys_socket): Install socket inheritance bug fix from 20.7.
11629 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
11630 here via blockinput.h).
11632 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
11634 * w32menu.c (w32_menu_display_help):
11635 * xmenu.c (menu_help_callback): Use show_help_echo.
11637 * keyboard.h (show_help_echo): Declare.
11639 * keyboard.c (show_help_echo): New function, extracted from read_char.
11640 Feval its `msg' argument if it's a cons cell.
11641 (read_char): Use it.
11642 (follow_key): Pass `autoload' to get_keyelt.
11644 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
11645 (note_tool_bar_highlight, XTread_socket):
11646 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
11648 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
11649 (note_tool_bar_highlight, w32_read_socket):
11650 Do not gratuitously ignore non-string `help-echo' properties.
11652 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11654 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
11656 * window.c (delete_all_subwindows): Reset Vwindow_list.
11658 * xterm.c (x_append_glyph, x_append_composite_glyph)
11659 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11660 changes in struct glyph starting 1999-12-27. Some bit-fields of
11661 struct glyph were not set, which made glyphs unequal when compared
11662 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
11663 effects were the result. This also depended on the contents of
11664 memory returned by xmalloc. If flickering happens again, activate
11665 the code in clear_glyph_row that's in #if 0. If the flickering is
11666 gone with that, chances are that it is caused by something similar.
11668 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
11670 * dispextern.h: Add some comments.
11672 * window.c (add_window_to_list): Add parameter LIST.
11673 (window_list): Order list so that, for each frame, windows are
11674 in canonical order, and so that frames appear in the list in
11675 the order given by Vframe_list.
11676 (next_window): Reverse the handling of NEXT_P.
11678 2000-07-04 Gerd Moellmann <gerd@gnu.org>
11680 * window.c (Vwindow_list): New variable.
11681 (make_window, delete_window): Set Vwindow_list to nil.
11682 (check_window_containing): New function.
11683 (window_from_coordinates): Rewritten.
11684 (add_window_to_list, window_list, candidate_window_p)
11685 (decode_next_window_args, next_window): New functions.
11686 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
11687 (Fwindow_list): New function.
11688 (Fother_window): Cleaned up.
11689 (foreach_window): Add a longer "variable argument list". Let
11690 callback function return 0 to indicate that cycling over windows
11692 (foreach_window_1): Likewise.
11693 (freeze_window_start): Return int.
11694 (init_window): New function.
11695 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
11697 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
11698 input_event with bzero.
11699 (main): Call init_window.
11701 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
11704 2000-07-04 Kenichi Handa <handa@etl.go.jp>
11706 * composite.h (make_composition_value_copy): Extern it.
11708 * composite.c (make_composition_value_copy): New function.
11710 * editfns.c (Fformat): While copying text properties, make each
11711 composition property value a copy.
11713 * fns.c (concat): While copying text properties, make each
11714 composition property value a copy.
11716 2000-07-03 Gerd Moellmann <gerd@gnu.org>
11718 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
11720 * fns.c (sweep_weak_table): Mark only objects that are not
11723 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
11724 include those frames as candidates which have their focus
11725 redirected to the minibuffer frame.
11727 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
11729 * fns.c (Fputhash): Return `value' rather than nil.
11731 2000-06-30 Gerd Moellmann <gerd@gnu.org>
11733 * frame.c (next_frame): Don't check focus redirection in case
11734 MINIBUF is a window. Doing so excludes frames using MINIBUF
11735 unless their focus is redirected, which contradicts the
11736 specification of next-frame, and leads to infinite loops in
11737 certain situations when cycling through windows with next-window.
11739 2000-06-30 Kenichi Handa <handa@etl.go.jp>
11741 * coding.c (code_convert_region): Even if the length of text is
11742 zero, try to convert it if coding->type is coding_type_ccl.
11743 (decode_coding_string, encode_coding_string): Likewise.
11745 2000-06-28 Gerd Moellmann <gerd@gnu.org>
11747 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
11748 the display if windows_or_buffers_changed.
11750 * dispnew.c (struct row_entry): New structure.
11751 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
11752 (row_table_size, old_lines, new_lines, old_lines_size)
11753 (new_lines_size, run_pool, runs_size, runs): New variables.
11754 (add_row_entry): New function.
11755 (scrolling_window): Use data structures allocated with xmalloc and
11756 held in global variables, instead of allocating them with alloca and
11757 holding them in local variables. Use a larger hash table whose
11758 size depends on glyph matrix sizes. Don't use bzero to clear the
11759 hash table; instead, clear used slots only.
11761 * fns.c (next_almost_prime): Make it externally visible.
11763 * lisp.h (next_almost_prime): Add prototype.
11765 * s/isc4-0.h (sigunblock): Define.
11767 * s/sco5.h (sigunblock): Define.
11769 2000-06-27 Dave Love <fx@gnu.org>
11771 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
11772 (moved to osf5-0.h).
11773 [!NOT_C_CODE]: Protect string.h stuff.
11775 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
11776 (sys_siglist, NSIG): Definitions moved here from osf1.h.
11778 2000-06-27 Gerd Moellmann <gerd@gnu.org>
11780 * xdisp.c (resize_mini_window): Subtract the extra line spacing
11781 below the last line from the needed window height.
11783 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
11785 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
11786 (Fwidget_get): Use it.
11787 (syms_of_fns): Defsubr it.
11789 2000-06-26 Gerd Moellmann <gerd@gnu.org>
11791 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
11792 display info for XIM.
11793 (xim_open_dpy): Likewise.
11794 (xim_close_dpy): Don't free the display info's XIM.
11796 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
11798 * config.in (USE_XIM): New define.
11800 * keymap.c (get_keyelt): For menu-items containing a `:filter
11801 FILTER', apply FILTER to the menu-item's definition to get the
11802 real definition to use.
11804 * lisp.h (QCfilter): External declaration.
11806 * xfns.c (Fimage_size): New function.
11807 (syms_of_xfns): Defsubr it.
11809 2000-06-26 Andreas Schwab <schwab@suse.de>
11811 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
11812 Fstring_as_unibyte.
11814 2000-06-25 Dave Love <fx@gnu.org>
11816 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
11818 * Makefile.in (blockinput.h): Depend on atimer.h.
11819 (atimer.h): Depend on systime.h.
11821 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
11823 * atimer.h: Protect against multiple inclusion. Include systime.h.
11825 * lisp.h (swap_in_global_binding): Declare.
11827 2000-06-24 Ken Raeburn <raeburn@gnu.org>
11829 * process.c (Fopen_network_stream): Turn off atimers for duration
11830 of call to connect. (Patch from Gerd.)
11832 2000-06-23 Dave Love <fx@gnu.org>
11834 * ralloc.c: Maybe include unistd.h
11836 * emacs.c (setgrp): Undefine before defining.
11837 (malloc_warning, set_time_zone_rule, index): Prototype.
11839 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
11840 HAVE_STRUCT_TIMEZONE.
11842 * s/osf1.h: Move string.h hack here from alpha.h and make it
11844 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
11846 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
11847 (SOCKLEN_TYPE): Don't define.
11849 * m/alpha.h: Remove string.h hack.
11851 * s/osf5-0.h: New file.
11853 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
11854 include time.h, done by systime.h.
11855 [__FreeBSD__]: Remove redundant includes.
11857 * callproc.c (setpgrp): Undefine before defining.
11858 (delete_temp_file): Return Qnil to avoid warning.
11860 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
11862 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
11865 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
11867 * composite.h (compose_text): Declare.
11869 * xterm.c: Don't include sys/types.h unconditionally. Don't
11870 protect its inclusion with !USG (following xmenu.c).
11872 2000-06-23 Gerd Moellmann <gerd@gnu.org>
11874 * xfns.c (x_create_tip_frame): Initialize frame's colors like
11877 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11879 * coding.c (decode_eol_post_ccl): Special handling for undecided
11880 and inconsistent EOL types.
11882 2000-06-22 Gerd Moellmann <gerd@gnu.org>
11884 * xrdb.c (x_load_resources): Add default resource for scroll bar's
11885 trough color and main window's background color.
11887 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
11889 * xterm.h (Xt_app_con): External declaration.
11891 * widget.c (EmacsFrameRealize): Fix typo.
11893 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
11895 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
11896 (handle_invisible_prop): Record the start of invisible text in
11897 it->add_overlay_start.
11898 (struct overlay_entry): Add member `overlay'.
11899 (handle_overlay_change): Simplify.
11900 (next_overlay_string): After having processed overlay strings at the
11901 end of the buffer, record that fact in
11902 it->overlay_strings_at_end_processed_p.
11903 (compare_overlay_entries): If before- and after-strings come
11904 from the same overlay, let before-strings come first.
11905 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
11906 (load_overlay_strings): Take it->add_overlay_start into account
11907 when adding overlay strings.
11909 * dispextern.h (struct it): Add member add_overlay_start.
11911 2000-06-22 Dave Love <fx@gnu.org>
11913 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
11915 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
11917 2000-06-22 Kenichi Handa <handa@etl.go.jp>
11919 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
11922 2000-06-21 Dave Love <fx@gnu.org>
11924 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
11926 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
11928 * syntax.c (back_comment): Simplify string-parity counting (with
11929 the added benefit of handling multiple string-styles as long as
11930 they are not intertwined).
11931 Jump to the slow code as soon as a comment starter is found in
11932 a "string_lossage" position. Fixes the case: " /* " /* " */.
11934 2000-06-21 Dave Love <fx@gnu.org>
11936 * Makefile.in: Use GETLOADAVG_LIBS.
11938 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
11939 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
11941 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11943 * syntax.c (describe_syntax): Recognize the `n'estable bit.
11944 (Fforward_comment, scan_lists):
11945 Check the comstyle of single-char comment-starters.
11946 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
11947 we're just at the beginning of the comment (f.ex with (*) ... (*)).
11948 Check the comstyle of single-char comment-starters.
11949 Clarify control-flow around the Scomment case.
11951 2000-06-20 Dave Love <fx@gnu.org>
11953 * fns.c (make_hash_table, maybe_resize_hash_table):
11954 Cast arg of next_almost_prime.
11956 * tparam.c [emacs]: Include lisp.h.
11958 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
11961 2000-06-20 Gerd Moellmann <gerd@gnu.org>
11963 * keyboard.c (adjust_point_for_property): Check if display
11964 property should be treated as intangible by looking at its value.
11966 * xdisp.c (single_display_prop_intangible_p)
11967 (display_prop_intangible_p): New functions.
11969 * dispextern.h (display_prop_intangible_p): Add prototype.
11971 * xdisp.c (dump_glyph_row): Show type of glyph->object.
11973 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
11974 argument to sigprocmask.
11976 * s/sco5.h (sigblock): Redefined to pass a pointer as second
11977 argument to sigprocmask.
11979 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
11980 sigprocmask_set, and pass a pointer to it to sigprocmask.
11982 * sysdep.c (sigprocmask_set): New variable.
11984 * fileio.c (make_temp_name): Don't use `%s' in string passed to
11987 2000-06-20 Sam Steingold <sds@gnu.org>
11989 * xrdb.c: Don't declare xmalloc, xrealloc.
11991 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11993 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
11994 (re_comp): Cast gettext return value to avoid complaints when
11997 2000-06-20 Dave Love <fx@gnu.org>
11999 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
12001 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
12003 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
12005 * m/alpha.h: Don't declare xmalloc, xrealloc.
12007 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
12009 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
12011 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
12013 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
12016 * keyboard.h (poll_for_input_1): Declare.
12018 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
12020 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
12022 * doprnt.c: Don't declare xmalloc, xrealloc.
12024 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
12025 (getenv, ctime, getwd): Removed.
12026 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
12028 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
12029 x_set_tool_bar_lines.
12031 * config.in: Add HAVE_GETWD. Move some definitions above
12032 machine/system includes.
12034 2000-06-20 Kenichi Handa <handa@etl.go.jp>
12036 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
12038 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
12039 contain information about ENCODING.
12041 * fontset.c (FONTSET_ASCII): Use the first element of char table
12042 for an ASCII font, not defalt slot.
12043 (fontset_ref_via_base): If FONTSET doesn't contain information for
12044 C, try the default fontset.
12045 (make_fontset): Don't copy the default fontset.
12046 (fontset_font_pattern): Likewise.
12047 (accumulate_font_info): If ELT is nil, use the corresponding
12048 element in the default fontset.
12050 2000-06-19 Dave Love <fx@gnu.org>
12052 * syntax.c (Fparse_partial_sexp): Doc fix.
12054 * regex.h: Test PROTOTYPES as well as __STDC__.
12056 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
12057 errno, strerror. Put text after #endif in comment.
12059 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
12061 * xterm.c (x_frame_of_widget): Likewise.
12063 2000-06-19 Gerd Moellmann <gerd@gnu.org>
12065 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
12066 to Vfundamental_mode_abbrev_table.
12068 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
12069 bogus objects are marked. This slows down GC by ~80 percent, but
12070 it might be worth trying when debugging GC-related problems.
12071 This feature requires conservative stack marking to be enabled.
12073 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
12074 returns XLookupChars, reset `modifiers' to zero.
12076 2000-06-19 Dave Love <fx@gnu.org>
12078 * mktime.c: Unprotoized.
12080 2000-06-19 Richard Stallman <rms@gnu.org>
12082 * data.c (set_internal): If variable is frame-local,
12083 store the new value immediately into the frame parameter alist.
12085 2000-06-19 Ken Raeburn <raeburn@gnu.org>
12087 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
12088 in the custom handler pointer.
12090 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
12091 value, or checks for CHAR_META can fail when Lisp_Object is a
12093 * keymap.c (get_keyelt): Likewise.
12095 2000-06-19 Kenichi Handa <handa@etl.go.jp>
12097 * ccl.h (struct ccl_program): New member eol_type.
12098 (struct ccl_spec): New member cr_carryover.
12100 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
12101 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
12103 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
12104 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
12105 (decode_eol_post_ccl): New function.
12106 (decode_coding): Don't detect EOL format here for CCL based coding
12108 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
12109 decode_eol_post_ccl after running the CCL program.
12110 (code_convert_region): Don't detect EOL format here for CCL based
12112 (decode_coding_string): Likewise.
12114 2000-06-18 Ken Raeburn <raeburn@gnu.org>
12116 * charset.c (update_charset_table): Use XINT on "iso_final_char"
12117 when treating it as an integer.
12119 * coding.h (encode_coding_string): Declare.
12121 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
12124 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
12125 "xkeymap" to avoid shadowing the "enum map_type" value that needs
12126 to be passed to get_local_map.
12128 * sound.c (Fplay_sound): Don't call make_number on
12129 Frun_hook_with_args count argument.
12131 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
12132 for lisp objects in X event structure data field, when lisp
12133 objects are represented with unions.
12134 (x_scroll_bar_to_input_event): Ditto.
12136 2000-06-16 Ken Raeburn <raeburn@gnu.org>
12138 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
12139 termination of string. Fix sense of test whether
12140 Vline_number_display_limit is an integer.
12142 2000-06-16 Gerd Moellmann <gerd@gnu.org>
12144 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
12145 only if HAVE_X_WINDOWS.
12147 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
12150 * dispnew.c (update_frame_1): Handle case that cursor vpos is
12153 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
12155 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
12158 2000-06-15 Kenichi Handa <handa@etl.go.jp>
12160 * coding.c (decode_coding_emacs_mule): Always set src_base at the
12161 start of the while loop.
12163 2000-06-15 Gerd Moellmann <gerd@gnu.org>
12165 * atimer.c (alarm_signal_handler): Add forward declaration.
12167 * data.c (set_internal): Remove debug code.
12169 2000-06-14 Gerd Moellmann <gerd@gnu.org>
12171 * Makefile.in (bootstrap-temacs): Add `-I../src'.
12173 * unexec.c (toplevel) [COFF]: Include coff.h.
12175 * s/lynxos.h: New file.
12177 * keymap.c (Fsingle_key_description): Enclose function key and
12178 event symbol names in angle brackets.
12180 * xdisp.c (setup_echo_area_for_printing): Call
12181 message_log_maybe_newline if message_buf_print is not set.
12183 * print.c (printchar, strout): Don't check message_buf_print
12184 before calling setup_echo_area_for_printing because that
12185 function does something useful even when message_buf_print is
12188 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
12190 (ensure_echo_area_buffers): Initialize echo buffer's
12191 truncate lines setting to nil.
12192 (with_echo_area_buffer): Don't set the echo buffer's truncate
12193 lines setting here.
12194 (set_message_1): Set it here instead, based on the value
12195 of message_truncate_lines.
12196 (resize_mini_window): Handle case that lines are truncated.
12197 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
12198 DEFVAR_BOOL message-truncate-lines.
12200 * keyboard.c (read_char): Bind message-truncate-lines to t
12201 while displaying a help-echo.
12203 * lisp.h (Qmessage_truncate_lines): External declaration.
12205 2000-06-13 Gerd Moellmann <gerd@gnu.org>
12207 * xdisp.c (Vline_number_display_limit): Renamed from
12208 line_number_display_limit.
12209 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
12210 Extend documentation string. Initialize
12211 Vline_number_display_limit to nil meaning no limit.
12212 (decode_mode_spec): Use Vline_number_display_limit with its new
12215 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
12217 2000-06-13 Richard Stallman <rms@gnu.org>
12219 * frame.c (Fmodify_frame_parameters): Doc fix.
12221 * xfns.c (x_set_frame_parameters): Comment fix.
12223 * frame.c (store_frame_param): Call swap_in_global_binding if the
12224 variable's current binding was chosen based on this frame.
12226 * data.c (swap_in_global_binding): New function.
12228 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12230 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
12231 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
12233 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12235 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
12237 2000-06-12 Jason Rumney <jasonr@gnu.org>
12239 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
12241 * w32.h (EMACS_W32_H): Renamed from _NT_H_
12243 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
12245 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
12247 2000-06-12 Gerd Moellmann <gerd@gnu.org>
12249 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
12250 (syms_of_xfaces): Defsubr Sdump_colors.
12251 (x_free_colors): Don't treat b&w specially on default visual.
12252 (x_free_dpy_colors): New function.
12253 (free_face_colors): Don't check visual class; it's done
12256 * xterm.c (x_frame_of_widget): New function.
12257 (x_alloc_nearest_color_for_widget): Use it.
12258 (x_copy_dpy_color): New function.
12259 (x_destroy_window): Free various colors.
12261 2000-06-12 Kenichi Handa <handa@etl.go.jp>
12263 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
12265 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
12267 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
12269 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
12271 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
12273 2000-06-11 Dave Love <fx@gnu.org>
12275 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
12277 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
12279 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
12281 2000-06-11 Gerd Moellmann <gerd@gnu.org>
12283 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
12286 2000-06-10 Kenichi Handa <handa@etl.go.jp>
12288 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
12289 (regex_compile): Fix the code for handling the case of single byte
12290 char and multibyte char being mixed in a range within [...].
12292 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
12293 and dst_multibyte members of coding.
12295 * charset.c (update_charset_table): Update the table
12296 bytes_by_char_head.
12297 (init_charset_once): Initialize elements of bytes_by_char_head to
12298 1 except for leading codes for private charases.
12300 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
12301 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
12303 2000-06-09 Ken Raeburn <raeburn@gnu.org>
12305 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
12306 access the data it doesn't point to.
12308 2000-06-08 Gerd Moellmann <gerd@gnu.org>
12310 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
12311 will be translated to a switch-frame event when reading the
12312 event queue. This is necessary because Emacs otherwise won't
12313 perform a switch-frame to a new frame until some other event, for
12314 example a keystroke event, forces it to do so. This has various
12315 effects, one visible being that the cursor of a frame created with
12316 C-x 5 2 or switched to with a window manager key binding like
12317 A-TAB stays hollow because selected_window isn't on the newly
12318 focused frame until the switch-frame is performed.
12320 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
12321 generating a switch-frame event if necessary.
12323 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
12325 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
12328 2000-06-08 Kenichi Handa <handa@etl.go.jp>
12330 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
12332 2000-06-07 Gerd Moellmann <gerd@gnu.org>
12334 * window.c (displayed_window_lines): Take empty lines at
12335 the bottom of a window into account.
12337 * window.c (displayed_window_lines): New function.
12338 (Fmove_to_window_line): Use displayed_window_lines to determine
12339 the number of lines to move, instead of using the window's height.
12341 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
12342 to stop reading, even if the form read sets point to a different
12343 value when evaluated.
12345 * xdisp.c (display_line): Fix code deciding in which line to
12348 2000-06-07 Kenichi Handa <handa@etl.go.jp>
12350 * fileio.c (e_write): Free composition data if stored in
12353 2000-06-06 Gerd Moellmann <gerd@gnu.org>
12355 * xdisp.c (display_line): Set row's and iterator's
12356 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
12357 Set cursor even if row ends in the middle of a character.
12358 (dump_glyph_row): Print values of new flags.
12359 (redisplay_window) <cursor movement in unchanged window>: When
12360 point has been moved forward, and PT is at the end of the cursor
12361 row, don't place the cursor in the next row if the cursor row ends
12362 in the middle of a character or at ZV.
12364 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
12365 (struct glyph_row): Add starts_in_middle_of_char_p and
12366 ends_in_middle_of_char_p.
12367 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
12368 ends_in_middle_of_char_p flag.
12369 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
12371 * term.c (append_glyph): Revert change of 2000-06-06.
12373 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
12374 padding glyph not fitting on line as whole character not
12377 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
12378 this isn't true for images with `:ascent 100'.
12380 2000-06-06 Kenichi Handa <handa@etl.go.jp>
12382 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
12383 as modified if it is originally unmodified.
12385 * term.c (encode_terminal_code): Change the way to check if
12386 terminal coding does any conversion.
12387 (append_glyph): Set glyph->pixel_width correctly.
12389 * xdisp.c (display_line): While checking line continuation, pay
12390 attention to a padding glyph.
12392 2000-06-05 Gerd Moellmann <gerd@gnu.org>
12394 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
12396 2000-06-05 Dave Love <fx@gnu.org>
12398 * xdisp.c: Include fontset.h.
12400 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
12402 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12404 * dispnew.c: Conditionally include term.h.
12406 * coding.h: Declare code_convert_string_norecord.
12408 * frame.h (struct frame): Use volatile unconditionally.
12410 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
12412 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
12414 * systime.h: Protect against multiple inclusion.
12415 (timezone) [USG5_4]: Define as time_t.
12417 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12418 (Foptimize_char_table, make_temp_name): Declare.
12420 * Makefile.in (xdisp.o): Depend on fontset.h.
12422 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12424 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12425 (Foptimize_char_table, make_temp_name): Declare.
12429 * s/netbsd.h: Don't define autoconfiscated MATHERR.
12431 2000-06-02 Dave Love <fx@gnu.org>
12433 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
12435 2000-06-02 Gerd Moellmann <gerd@gnu.org>
12437 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
12438 result face, set flags in that face indicating that colors may not
12441 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
12442 glyph, use the ASCII NUL character to determine the face.
12444 2000-06-02 Dave Love <fx@gnu.org>
12446 * sysdep.c: Conditionally include stdlib.h, unistd.h.
12447 (VFORK_RETURN_TYPE): Remove.
12449 * config.in: Add NO_MATHERR.
12451 2000-06-01 Dave Love <fx@gnu.org>
12453 * cmds.c (internal_self_insert): Don't check
12454 Vbefore_change_function, Vafter_change_function.
12456 * insdel.c (signal_before_change, signal_after_change): Likewise.
12458 * buffer.c (Vbefore_change_function, Vafter_change_function):
12459 Variables and their initializations deleted.
12461 * callint.c (Fcall_interactively): Doc fix.
12463 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
12465 2000-05-31 Dave Love <fx@gnu.org>
12467 * textprop.c: Revert last change -- duplicated.
12469 2000-05-31 Gerd Moellmann <gerd@gnu.org>
12471 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
12474 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
12476 2000-05-31 Jason Rumney <jasonr@gnu.org>
12478 * search.c (Fre_search_forward, Fre_search_backward)
12479 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
12481 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
12483 2000-05-30 Jason Rumney <jasonr@gnu.org>
12485 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
12486 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
12488 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
12490 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
12491 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
12492 expand a nil default_filename.
12494 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
12495 pointer to glyph_to_pixel_coords, not a frame.
12497 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
12498 coding.h to dependencies.
12500 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
12502 * w32console.c (glyph_to_pixel_coords): Change first parameter to
12503 window pointer to be consistent with w32term.c and xterm.c.
12505 * w32fns.c: Format and doc changes to bring closer to xfns.c.
12506 (VIETNAMESE_CHARSET): Define if not defined in system headers.
12507 (Qline_spacing, Qcenter): New variables.
12508 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
12509 (x_set_line_spacing): New function.
12510 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
12511 (x_specified_cursor_type): New function.
12512 (x_set_cursor_type): Use it.
12513 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
12515 (validate_x_resource_name, x_get_resource_string): Measure lengths
12516 of external strings in bytes.
12517 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
12518 GetTextExtentPoint32 with NULL title.
12519 (Fx_create_frame): Initialize Qline_spacing.
12520 (w32_load_system_font): Initialize font->double_byte_p.
12521 (x_to_w32_charset): Use Vw32_charset_info_alist.
12522 (Image, busy cursor, tooltip functions): Merged changes from
12523 xfns.c. Not yet functional on Windows.
12525 * w32gui.h (W32FontStruct): Add double_byte_p member.
12527 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
12528 (emacs_button_translation): Use it.
12529 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
12530 in `mask' to be set.
12532 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
12535 * w32term.c: Format and doc changes to bring closer to xterm.c.
12536 (w32_char_font_type): New enum.
12537 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
12538 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
12539 (w32_encode_char): New function.
12540 (x_encode_char): Removed.
12541 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
12542 x_encode_char and w32_font_is_double_byte.
12543 (x_produce_image_glyph): Use image_ascent.
12544 (x_produce_glyphs): Use new version of w32_per_char_metric and
12545 handle NULL return value. Allow extra line spacing.
12546 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
12547 (w32_get_glyph_overhangs): Remove unicode_p param. Use
12548 w32_font_type member of glyph instead.
12549 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
12550 (fast_find_position): Make sure not to consider rows not visible
12552 (w32_read_socket) [WM_MENUSELECT]: Cannot call
12553 w32_menu_display_help with input blocked, as it can abort.
12554 (x_display_and_set_cursor): Choose cursor depending
12555 on buffer-local value of cursor_type.
12556 (x_draw_bar_cursor): Add parameter WIDTH.
12558 * w32term.h (CP_DEFAULT): Define.
12559 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
12561 2000-05-30 Gerd Moellmann <gerd@gnu.org>
12563 * search.c (Fre_search_forward, Fre_search_backward)
12564 (Fposix_search_backward, Fposix_search_forward): Doc fix.
12566 2000-05-30 Kenichi Handa <handa@etl.go.jp>
12568 * coding.c (detect_coding_iso2022): Fix code for checking
12569 CODING_CATEGORY_MASK_ISO_8_2.
12571 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
12573 * regex.c (PREFETCH_NOLIMIT): New function.
12574 (re_match_2_internal): Use it and adjust the end_match_2 logic.
12576 2000-05-29 Gerd Moellmann <gerd@gnu.org>
12578 * syntax.c (find_defun_start): Move test for
12579 open_paren_in_column_0_is_defun_start outside of the loop.
12581 * xdisp.c (redisplay_window): Really switch buffers when
12582 displaying mode lines, and temporarily set selected_frame to the
12583 frame of the window that's redisplayed.
12585 * xfaces.c (free_realized_faces): Block/unblock input.
12586 (free_realized_multibyte_face): Ditto.
12588 2000-05-29 Dave Love <fx@gnu.org>
12590 * textprop.c (Qkeymap): New variable.
12591 (syms_of_textprop): Intern it.
12593 * keymap.c: Include intervals.h.
12594 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
12596 * Makefile.in (keymap.o): Depend on intervals.h.
12598 * keyboard.c (menu_bar_items, tool_bar_items)
12599 (Fexecute_extended_command): Deal with `keymap' property.
12600 (read_key_sequence): Track map from `keymap' property as well as
12603 * intervals.c (get_local_map): Extra arg to allow looking for
12606 * intervals.h (map_property): New enum.
12607 (get_local_map): Extra arg using it.
12608 (Qkeymap): Declare.
12610 * lisp.h (get_local_map): Don't declare here.
12612 2000-05-29 Kenichi Handa <handa@etl.go.jp>
12614 * Makefile.in (callproc.o): Depend on composite.h.
12616 * callproc.c: Include composite.h.
12617 (Fcall_process): Handle composition correctly.
12619 * coding.h (coding_allocate_composition_data): Extern it.
12620 (coding_restore_composition): Likewise.
12622 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
12623 yet allocated, finish decoding with result
12624 CODING_FINISH_INSUFFICIENT_CMP.
12625 (coding_allocate_composition_data): Make it non-static.
12626 (coding_restore_composition): Likewise.
12628 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
12630 * charset.c (syms_of_charset): Revert last change.
12632 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12634 * term.c (produce_glyphs): Treat characters from the eight-bit-*
12635 charsets as unibyte, with 1-column screen width. Sent by Kenichi
12638 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12640 * charset.c (syms_of_charset): Set width of character sets
12641 eight-bit-control and eight-bit-graphic to 1 column.
12643 2000-05-26 Gerd Moellmann <gerd@gnu.org>
12645 * config.in (HAVE_SPEED_T): New define.
12647 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
12650 2000-05-26 Dave Love <fx@gnu.org>
12652 * coding.c (shrink_decoding_region): Initialize eol_conversion.
12654 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
12655 (Fsubr_arity): New function.
12656 (syms_of_data): Install them.
12658 2000-05-26 Kenichi Handa <handa@etl.go.jp>
12660 * charset.c (init_charset_once): Set the table bytes_by_char_head
12663 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
12664 the default fontset to what Emacs uses by default.
12665 (check_registry_encoding): This function deleted.
12666 (Fset_fontset_font): Remove the adhoc condition for the default
12667 fontset. Allow cons in FONTNAME.
12669 * fns.c (map_char_table): Ignore char-table entries for
12670 charsets eight-bit-control and eight-bit-graphic.
12672 2000-05-25 Ken Raeburn <raeburn@gnu.org>
12674 * emacs.c (main): Initialize keyboard syms before initializing
12675 window code, so face names are available.
12677 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
12679 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
12680 of an anchor at the beginning of a shy-group.
12682 2000-05-25 Gerd Moellmann <gerd@gnu.org>
12684 * xdisp.c (handle_invisible_prop): Don't try to skip over
12685 invisible text if end of text is already reached.
12687 2000-05-25 Dave Love <fx@gnu.org>
12689 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
12691 * coding.c (encode_eol): Add null statement after label.
12693 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
12695 * w16select.c (Fw16_set_clipboard_data): Fix the change from
12698 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12700 * ccl.c (ccl_driver): Fix previous change.
12702 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12704 * coding.c (run_pre_post_conversion_on_str): Set point to the
12705 beginning of buffer before calling coding->post_read_conversion.
12706 (decode_coding_string): Give correct args to
12707 run_pre_post_conversion_on_str.
12708 (encode_coding_string): Likewise.
12710 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
12711 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
12712 eight-bit-graphic correctly.
12714 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
12716 * fileio.c (Finsert_file_contents): Even if a file is not found,
12717 execute codes for setting up coding system. Call
12718 after-insert-file-functions unconditionally.
12720 2000-05-24 Gerd Moellmann <gerd@gnu.org>
12722 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
12723 BSD_PGRPS are not defined.
12725 2000-05-24 Kenichi Handa <handa@etl.go.jp>
12727 * charset.c (update_charset_table): Accept nil in LONG_NAME and
12729 (syms_of_charset): Avoid building same strings.
12731 2000-05-23 Gerd Moellmann <gerd@gnu.org>
12733 * lread.c (Fload): Add a comment about the meaning of
12734 Vuser_init_file being t.
12736 * puresize.h (BASE_PURESIZE): Increase to 675000.
12738 * s/gnu-linux.h (setpgrp): Don't define it here because this
12739 prevents compilation on GNU/Linux systems with glib 2.2.
12741 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
12744 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
12746 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
12747 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
12749 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
12751 2000-05-23 Kenichi Handa <handa@etl.go.jp>
12753 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12755 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
12757 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
12759 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
12761 2000-05-22 Kenichi Handa <handa@etl.go.jp>
12763 * keyboard.c (read_char): Allow character codes 128..255 to be
12764 handled by input-method-function.
12766 * insdel.c (adjust_markers_for_replace): Fix previous change.
12767 (adjust_after_replace): If PREV_TEXT is nil, call
12768 adjust_markers_for_insert, not adjust_markers_for_replace.
12770 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
12772 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
12773 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
12774 [HAVE_GRANDPT]: Define.
12775 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
12777 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
12780 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
12782 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
12784 2000-05-20 Kenichi Handa <handa@etl.go.jp>
12786 The following changes are to handle 8-bit characters in a
12787 multibyte buffer/string without facing with byte combining
12788 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
12789 eight-bit-graphic (for 0xA0..0xFF) are introduced.
12791 * Makefile.in (fns.o): Depend on charset.h.
12793 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
12794 convert it to unibyte.
12795 (make_string): Use parse_str_as_multibyte, not chars_in_text.
12797 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
12798 apparent char boundary.
12799 (Fset_buffer_multibyte): Convert 8-bit characters in the range
12800 0x80..0x9F to/from multibyte form.
12802 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
12805 * callproc.c (Fcall_process): Always encode an argument string if
12806 it is multibyte. Setup src_multibyte and dst_multibyte members of
12807 process_coding properly.
12809 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
12810 SPLIT_NON_ASCII_CHAR.
12812 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
12814 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
12816 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
12817 (SPLIT_CHARACTER_SEQ): This macro deleted.
12818 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
12819 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
12820 and eight-bit-graphic.
12821 (char_to_string): Likewise. Signal an error for too large
12823 (char_printable_p): Return 0 for 8-bit characters.
12824 (update_charset_table): Update iso_charset_table only when a final
12825 character is non-negative.
12826 (find_charset_in_text): Renamed from find_charset_in_str.
12827 Arguments and return value changed. Callers changed.
12828 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
12829 be -1 if CHARSET is used only internally.
12830 (Fmake_char_internal): Handle new charsets; eight-bit-control and
12832 (Fcharset_after): Simplified.
12833 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
12834 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
12835 (multibyte_chars_in_text): Simplified by assuming there's no
12836 invalid multibyte sequence.
12837 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12838 (str_as_unibyte): New functions.
12839 (Fstring): Simpified by assuming that byte combining never happens.
12840 (init_charset_once): Initialization for
12841 LEADING_CODE_8_BIT_CONTROL.
12842 (syms_of_charset): Intern and staticpro Qeight_bit_control and
12843 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
12844 eight-bit-control and eight-bit-graphic.
12846 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
12847 (CHARSET_8_BIT_GRAPHIC): New macros.
12848 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
12849 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
12850 (CHARSET_REVERSE_CHARSET): Likewise.
12851 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
12853 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
12854 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
12855 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
12856 encounter an invalid multibyte sequence.
12857 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
12858 sequence is always valid.
12859 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
12860 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
12861 (CHAR_STRING): For 8-bit characters, call char_to_string.
12862 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
12863 multibyte sequence is always valid.
12864 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
12865 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12866 (str_as_unibyte): Extern them.
12867 (BCOPY_SHORT): Fix a bug.
12868 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
12869 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
12870 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
12871 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
12873 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
12874 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
12875 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
12876 (EMIT_BYTES): New macros.
12877 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
12878 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
12880 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
12881 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
12882 check the validity of multibyte sequence.
12883 (decode_coding_emacs_mule): New function.
12884 (encode_coding_emacs_mule): New macro.
12885 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
12887 (DECODE_ISO_CHARACTER): Just return a character code.
12888 (DECODE_COMPOSITION_START): Set coding->result instead of result.
12889 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
12890 EMIT_CHAR to produced decoded characters. Exit the loop only by
12891 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
12893 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
12894 only position codes for an invalid character.
12895 (encode_designation_at_bol): Return new destination pointer. 5th
12896 arg DSTP is changed to DST.
12897 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
12898 from the source by ONE_MORE_CHAR. Don't handle the case of last
12900 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
12902 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
12903 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
12904 TWO_MORE_BYTES to fetch a byte from the source.
12905 (encode_eol): Pay attention to coding->src_multibyte.
12906 (detect_coding, detect_eol): Preserve members src_multibyte and
12908 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
12909 (encoding_buffer_size): Set magnification to 3 for all coding
12910 systems that require encoding.
12911 (ccl_coding_driver): For decoding, be sure that the result is
12912 valid multibyte sequence.
12913 (decode_coding): Initialize coding->errors and coding->result.
12914 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
12915 and raw-text, always call decode_eol. Handle the case of last
12916 block here. If not coding->dst_multibyte, convert the resulting
12917 sequence to unibyte.
12918 (encode_coding): Initialize coding->errors and coding->result.
12919 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
12920 and raw-text, always call encode_eol. Handle the case of last
12922 (shrink_decoding_region, shrink_encoding_region): Detect cases
12923 that we can't skip data more rigidly.
12924 (code_convert_region): Setup src_multibyte and dst_multibyte
12925 members of coding. For decoding, if the buffer is multibyte,
12926 convert the source sequence to unibyte in advance. For encoding,
12927 if the buffer is multibyte, convert the resulting sequence to
12928 multibyte afterward.
12929 (run_pre_post_conversion_on_str): New function.
12930 (code_convert_string): Deleted and divided into the following two.
12931 (decode_coding_string, encode_coding_string): New functions.
12932 (code_convert_string1, code_convert_string_norecord): Call one of
12934 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
12935 MAKE_NON_ASCII_CHAR.
12936 (Fset_terminal_coding_system_internal)
12937 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
12938 and dst_multibyte members.
12939 (init_coding_once): Initialize iso_code_class with new enum
12940 ISO_control_0 and ISO_control_1.
12942 * coding.h (enum iso_code_class_type): Member ISO_control_code is
12943 devided into ISO_control_0 and ISO_control_1.
12944 (struct coding_system): New members src_multibyte, dst_multibyte,
12945 errors, and result. Delete member fake_multibyte.
12946 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
12948 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
12951 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
12954 * editfns.c (Fformat): Be sure to convert 8-bit characters to
12956 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
12958 (Ftranspose_region): Delete codes for handling byte combining.
12960 * fileio.c (Finsert_file_contents): Setup src_multibyte and
12961 dst_multibyte members of coding. On handling REPLACE on unibyte
12962 buffer, convert the result of decode_coding to unibyte. On
12963 inserting into a mutibyte buffer, always call code_convert_region.
12964 (e_write): Setup coding->src_multibyte according to the
12965 multibyteness of the source (buffer or string).
12967 * fns.c (concat): Handle 8-bit characters correctly.
12968 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
12969 unibyte in the result.
12970 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
12971 valid multibyte form in the result.
12972 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
12973 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
12974 return -1, signal an error.
12975 (base64_encode_1): New arg MULTIBYTE. Get each character by
12976 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
12977 character is found, return -1.
12978 (Fbase64_decode_region): Delete codes for handling byte-combining.
12979 Treat each decoded byte as a unibyte character.
12980 (Fbase64_decode_string): Return unibyte string.
12981 (Fcompare_strings, concat, string_byte_to_char): Use
12982 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
12983 FETCH_STRING_CHAR_ADVANCE.
12984 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12985 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
12987 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
12988 SPLIT_NON_ASCII_CHAR.
12989 (fontset_ref_via_base, fontset_set): Likewise
12991 * insdel.c (adjust_markers_for_record_delete): Deleted.
12992 (adjust_markers_for_insert): Argument changed. Caller changed.
12993 (adjust_markers_for_replace): Likewise.
12994 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
12995 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
12996 (copy_text): Delete unused local varialbe c_save. For converting
12997 to multibyte, be sure to make all 8-bit characters in valid
12999 (count_size_as_multibyte): Handle 8-bit characters correctly.
13000 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13001 (adjust_after_replace, replace_range, del_range_2)
13002 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
13003 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13004 (adjust_after_replace, replace_range, del_range_2) Delete codes for
13005 handling byte combining.
13006 (adjust_before_replace): Deleted.
13008 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
13009 SPLIT_NON_ASCII_CHAR.
13010 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13011 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13012 (Fkey_description): Likewise.
13014 * lread.c (read1): On reading multibyte string, be sure to make
13015 all 8-bit chararacters in valid multibyte form.
13016 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13018 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
13021 * process.c (Fstart_process): GCPRO current_dir before calling
13022 Ffind_operation_coding_system. Encode arguments here.
13023 (create_process): Don't encode arguments here. Setup
13024 src_multibyte and dst_multibyte members of struct coding.
13025 (read_process_output): Setup src_multibyte and dst_multibyte
13026 members of struct coding. If the output is to multibyte buffer,
13027 always decode the output of the process. Adjust the
13028 representation of 8-bit characters to the multibyteness of the output.
13029 (send_process): Setup coding->src_multibyte according to the
13030 multibyteness of the source.
13032 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13033 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
13034 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
13036 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
13038 * w16select.c (Fw16_set_clipboard_data): Setup members
13039 src_multibyte and dst_multibyte of coding. Adjusted for the
13040 change for find_charset_in_str.
13041 (Fw16_get_clipboard_data): Likewise.
13043 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
13044 dst_multibyte of coding.
13045 (x_to_w32_font): Likewise.
13047 * w32select.c (Fw32_set_clipboard_data): Setup members
13048 src_multibyte and dst_multibyte of coding. Adjusted for the
13049 change for find_charset_in_str.
13050 (Fw32_get_clipboard_data): Likewise.
13052 * xdisp.c (get_next_display_element): Handle 8-bit characters
13054 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
13055 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13057 * xselect.c (selection_data_to_lisp_data): Setup members
13058 src_multibyte and dst_multibyte of coding. Adjusted for the
13059 change for find_charset_in_str.
13060 (lisp_data_to_selection_data): Likewise.
13062 2000-05-19 Gerd Moellmann <gerd@gnu.org>
13064 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
13066 * dispextern.h (Vimage_types): Add extern declaration.
13068 * xdisp.c (Vimage_types): Moved here from xfns.c.
13069 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
13071 * xfns.c (Vimages_types): Moved to xdisp.c.
13072 (syms_of_xfns): Move `image-types' to xdisp.c.
13074 * w32fns.c (Vimage_types): Removed.
13075 (syms_of_w32fns): Remove `image-types'.
13077 2000-05-18 Kenichi Handa <handa@etl.go.jp>
13079 * fns.c (map_char_table): Pay attention to character number of
13080 charset. Check the validity of charset at the first level. For
13081 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
13084 * fontset.c: Include "buffer.h".
13085 (fs_load_font): If the face has fontset, record the face ID in
13087 (Finternal_char_font): New function.
13088 (accumulate_font_info): New function.
13089 (Ffontset_info): Rewritten for the new fontset implementation.
13090 (syms_of_fontset): Register Vdefault_fontset in the first element
13091 of Vfontset_table. Include Vdefault_fontset in
13092 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
13095 2000-05-16 Dave Love <fx@gnu.org>
13097 * m/iris5d.h: Deleted -- unused.
13099 2000-05-16 Gerd Moellmann <gerd@gnu.org>
13101 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
13102 `invalid' instead of `illegal'.
13104 * indent.c (Fmove_to_column): When ending within a tab, insert
13105 spaces first so that markers at the end of the tab get adjusted.
13107 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
13108 buffer list that wasn't selected in that frame.
13110 * filelock.c (get_boot_time): To obtain an 8 char file name, which
13111 is needed on mescaline, use a 2 char prefix, and call
13112 make_temp_name with second arg non-zero.
13114 * fileio.c (make_temp_name): New function, extracted from
13116 (Fmake_temp_name): Use it.
13118 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13120 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
13122 2000-05-15 Gerd Moellmann <gerd@gnu.org>
13124 * Makefile.in (lisp): Add env.elc.
13126 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
13128 2000-05-12 Gerd Moellmann <gerd@gnu.org>
13130 * search.c (Freplace_match): Handle case of `\N' in the
13131 replacement when there's no group N.
13133 2000-05-11 Gerd Moellmann <gerd@gnu.org>
13135 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
13136 of the message to message_dolog.
13138 * keyboard.c (read_char): Don't clear current message for help
13139 events; let the code handling help events handle this. Change
13140 code detecting help events that should be ignored.
13142 * xdisp.c (handle_single_display_prop): Don't try to set PT if
13143 we're interating over a string.
13145 2000-05-09 Dave Love <fx@gnu.org>
13147 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
13148 that offset before writing. Move gcpro region past call of
13151 2000-05-04 Dave Love <fx@gnu.org>
13153 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
13155 2000-05-04 Gerd Moellmann <gerd@gnu.org>
13157 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
13158 of inserted characters when BUF equals the current buffer, and PT
13159 is in front of or equal to FROM.
13161 2000-05-03 Gerd Moellmann <gerd@gnu.org>
13163 * xdisp.c (handle_single_display_prop): If display property value
13164 is invalid, or something not supported on the frame, restore
13165 iterator's position to what it was initially. Make sure to return
13166 0 for invalid and unsupported property values.
13168 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
13169 that x_per_char_metric returns null.
13171 2000-05-02 Gerd Moellmann <gerd@gnu.org>
13173 * xterm.h (struct face): Add forward declaration.
13174 (struct image): Ditto.
13175 (image_ascent): Add prototype.
13177 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
13178 (x_draw_image_relief, x_draw_image_foreground_1): Call function
13179 image_ascent instead of using IMAGE_ASCENT.
13181 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
13182 (IMAGE_ASCENT): Removed.
13184 * xfns.c (Qcenter): New variable.
13185 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
13186 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
13187 (image_ascent): New function.
13188 (lookup_image): Recognize `:ascent center'.
13189 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
13190 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13191 (xbm_load): Don't set image's ascent here.
13192 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
13193 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
13194 check ascent values here.
13195 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
13196 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
13197 (syms_of_xfns): Initialize Qcenter.
13199 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
13200 to the limits, increase the limits.
13202 2000-05-01 Kenichi Handa <handa@etl.go.jp>
13204 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
13205 Check Vfont_encoding_alist against the full name of the opened font.
13207 2000-04-28 Gerd Moellmann <gerd@gnu.org>
13209 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
13210 taller than the window.
13212 2000-04-28 Kenichi Handa <handa@etl.go.jp>
13214 * xfaces.c (realize_x_face): Fix the argument of the second
13215 xassert. BASE_FACE may not be a face for ASCII.
13217 2000-04-27 Gerd Moellmann <gerd@gnu.org>
13219 * print.c (print_object): Treat print-length < 0 as nil.
13221 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
13223 * s/freebsd.h (TERMCAP_OBJ): Removed.
13224 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
13226 * lread.c (read1): Don't treat period followed by certain
13227 characters as symbol start.
13229 * xfns.c (slurp_file): New function.
13230 (xbm_image_p): Handle case of in-memory XBM files.
13231 (xbm_scan): Rewritten to work on memory buffers instead of files.
13232 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
13233 Work on memory buffers instead of files. If DATA is null test
13234 if buffer looks like an in-memory XBM file.
13235 (xbm_load_image): Renamed from xbm_load_image_file. Work on
13236 memory buffers instead of files.
13237 (xbm_file_p): New function.
13238 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
13240 * lread.c (end_of_file_error): New function.
13241 (read1): Call it instead of signaling `end-of-file' directly.
13243 * print.c (print_error_message): Print data of `end-of-file'
13244 with Fprinc instead of Fprin1.
13246 2000-04-26 Ken Raeburn <raeburn@gnu.org>
13248 * window.c (freeze_window_start): Check that minibuffer scroll
13249 window isn't nil before extracting the window structure pointer
13252 * undo.c (record_delete): If we hit the end of the undo list, stop
13253 picking elements apart.
13255 2000-04-26 Gerd Moellmann <gerd@gnu.org>
13257 * xdisp.c (display_line): If lines are continued, restore
13258 iterator's ascent/descent information to the values before the
13259 first glyph not fitting on the line.
13261 2000-04-25 Gerd Moellmann <gerd@gnu.org>
13263 * xdisp.c (try_window_id) <all changes above window start>: Adjust
13264 positions in glyph matrix. Don't compute new window end positions.
13266 * dispnew.c (increment_matrix_positions): Renamed from
13267 increment_glyph_matrix_buffer_positions.
13268 (increment_row_positions): Renamed from
13269 increment_glyph_row_buffer_positions.
13271 * dispextern.h: Change names of renamed functions from dispnew.c
13274 2000-04-24 Gerd Moellmann <gerd@gnu.org>
13276 * fileio.c (Fdo_auto_save): Create directories for auto-save
13277 list file if necessary.
13279 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
13280 from buffer or frame.
13281 (automatic_hscrolling_p): New variable.
13282 (hscroll_windows): Scroll windows horizontally only if automatic
13283 hscrolling is allowed.
13284 (syms_of_xdisp): New variable `automatic-hscrolling'.
13286 * frame.h (struct frame): Add member extra_line_spacing.
13288 * xfns.c (x_set_line_spacing): New function.
13289 (Fx_create_frame): Set line spacing from resources.
13290 (Qline_spacing): New variable.
13291 (syms_of_xfns): Initialize Qline_spacing.
13293 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
13295 * buffer.c (init_buffer_once): Handle extra_line_spacing.
13296 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
13297 (reset_buffer): Don't initialize extra2 and extra3. Initialize
13298 extra_line_spacing from default value.
13299 (init_buffer_once): Initialize default value of extra_line_spacing.
13301 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
13304 * xterm.c (x_produce_glyphs): Remove reference to struct it's
13305 prompt_width. Add extra line spacing.
13307 * term.c (produce_glyphs): Remove reference to struct it's
13310 * dispextern.h (struct it): Remove member prompt_width, add
13311 extra_line_spacing.
13313 2000-04-22 Gerd Moellmann <gerd@gnu.org>
13315 * dispnew.c (update_frame_line): When writing a whole line, make
13316 sure cursor is in the right row afterwards, otherwise a use of
13317 capability `ch' in cmgoto might leave the cursor in the row below.
13319 2000-04-21 Gerd Moellmann <gerd@gnu.org>
13321 * lisp.h (struct Lisp_Buffer_Cons): Remove.
13323 * keyboard.c (timer_check): Fix typo in comment.
13325 2000-04-21 Kenichi Handa <handa@etl.go.jp>
13327 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
13328 name change: ch -> character.
13330 2000-04-20 Gerd Moellmann <gerd@gnu.org>
13332 * keyboard.c (echo_message_buffer): New variable.
13333 (echo_now): Set echo_message_buffer to the echo area buffer used
13334 to display the echo.
13335 (cancel_echoing): Reset echo_message_buffer to nil.
13336 (read_char): Code rewritten that handles canceling an echo or
13337 echoing a dash, respectively.
13339 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
13340 directory doesn't exist.
13342 2000-04-19 Dave Love <fx@gnu.org>
13344 * fns.c (syms_of_fns): Defsubr mapc.
13345 (concat): Don't allow numeric args.
13346 (Fconcat): Doc change.
13348 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
13350 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
13351 instead define end_match(1|2) more carefully.
13352 Use GET_CHAR_BEFORE_2 for `begline'.
13354 2000-04-19 Gerd Moellmann <gerd@gnu.org>
13356 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
13357 on 64-bit systems where NULL is defined as `0'.
13359 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
13360 the `variable argument list' to make it work on Alpha.
13362 * m/alpha.h (_LP64) [!_LP64]: Define.
13363 (ORDINARY_LINK): Define for NetBSD.
13365 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
13367 2000-04-19 Dave Love <fx@gnu.org>
13369 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
13372 * Makefile.in (LIBS): Don't use.
13373 (GETLOADAVG_OBJ): Define again.
13374 (otherobj): Add GETLOADAVG_OBJ.
13376 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
13378 2000-04-18 Gerd Moellmann <gerd@gnu.org>
13380 * lread.c (read_filtered_event): Cancel and start busy cursor.
13382 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
13383 that the per-character metrics may be null.
13385 2000-04-17 Gerd Moellmann <gerd@gnu.org>
13387 * buffer.c (clone_per_buffer_values): New function.
13388 (Fmake_indirect_buffer): Add optional argument CLONE. Call
13389 clone_per_buffer_values if CLONE is not nil.
13391 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
13393 2000-04-16 Dave Love <fx@gnu.org>
13395 * Makefile.in: Remove obsolete localcpp stuff.
13396 (GETLOADAVG_OBJ): Don't define.
13397 (obj): Move LIBOBJS...
13398 (otherobj): ... to here.
13399 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
13400 whitespace-only lines after the continuation (Irix).
13402 2000-04-14 Gerd Moellmann <gerd@gnu.org>
13404 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
13406 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
13408 2000-04-14 Dave Love <fx@gnu.org>
13410 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
13411 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
13412 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
13413 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
13416 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
13417 autoconfiscated HAVE_GETLOADAVG.
13419 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
13422 2000-04-14 Gerd Moellmann <gerd@gnu.org>
13424 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
13425 (fill_in_lock_file_name): Avoid existing files that aren't links.
13427 2000-04-14 Dave Love <fx@gnu.org>
13429 * Makefile.in (LIBS, LIBOBJS): New variable.
13430 (INTERVAL_SRC): Convert to make variable.
13431 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
13432 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
13433 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
13435 (SOME_MACHINE_OBJECTS): Remove interval stuff.
13436 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
13437 (shortlisp): Add facemenu, float-sup, frame.
13438 (SOME_MACHINE_LISP): Remove them from here.
13439 (LIBES): Change unused LDLIBS to autoconf LIBS.
13441 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
13443 2000-04-14 Kenichi Handa <handa@etl.go.jp>
13445 * composite.c (update_compositions): If FROM and TO are not in a
13446 valid range, do nothing.
13448 2000-04-13 Gerd Moellmann <gerd@gnu.org>
13450 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
13452 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
13454 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
13457 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13459 * fileio.c (a_write): Remove redundant semi-colons.
13460 (e_write): Return -1 if failed to write all the data.
13461 This fixes the changes made at 1999-12-15.
13463 2000-04-12 Dave Love <fx@gnu.org>
13465 * fns.c (mapcar1): Test for null vals to support mapc.
13466 (Fmapc): New function.
13468 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
13470 * msdos.c (NUM_MOUSE_BUTTONS): Define.
13471 (IT_frame_up_to_date): Support the buffer local value of
13472 cursor-type, if defined.
13474 2000-04-10 Dave Love <fx@gnu.org>
13476 * editfns.c (preceding-char, following-char): Doc fix.
13478 2000-04-10 Ken Raeburn <raeburn@gnu.org>
13480 * Makefile.in (temacs): Revert 2000-03-12 change.
13482 2000-04-10 Jason Rumney <jasonr@gnu.org>
13484 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
13486 2000-04-10 Gerd Moellmann <gerd@gnu.org>
13488 * xdisp.c (setup_echo_area_for_printing): Choose an echo
13489 area buffer, if it's not set up yet.
13491 * indent.c (compute_motion): Set immediate_quit.
13493 2000-04-09 Gerd Moellmann <gerd@gnu.org>
13495 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
13496 (realize_tty_face): Suppress boldness if colors are the inverse of
13497 the default colors, and tty_suppress_bold_inverse_default_colors_p
13499 (Ftty_suppress_bold_inverse_default_colors): New function.
13500 (syms_of_xfaces): Defsubr it.
13502 * buffer.c (Frestore_buffer_modified_p): New function.
13503 (syms_of_buffer): Defsubr it.
13505 2000-04-08 Ken Raeburn <raeburn@gnu.org>
13507 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
13508 charset id (int) argument, not a charset (Lisp_Object).
13510 * coding.h (code_convert_string): Declare.
13511 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
13512 object, as the fourth argument to code_convert_string.
13514 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
13515 (Fset_fontset_font): Use EQ to compare lisp objects.
13517 2000-04-05 Ken Raeburn <raeburn@gnu.org>
13519 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
13520 a pointer that looks like a lisp object.
13521 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
13522 zero, instead see whether it's an integer object, since they can't
13524 (GET_INTERVAL_OBJECT): Simply assign to the destination.
13526 * dispnew.c (allocate_matrices_for_frame_redisplay)
13527 (direct_output_forward_char): Use X(U)INT and make_number as needed
13528 to convert between (unsigned) int values and lisp integers.
13529 * keyboard.c (read_key_sequence): Likewise.
13530 * lread.c (substitute_object_recurse): Likewise.
13531 * fns.c (concat, hash_lookup, hash_remove): Likewise.
13532 * minibuf.c (do_completion, Fminibuffer_complete_word)
13533 (Fminibuffer_completion_help): Likewise.
13534 * term.c (produce_special_glyphs): Likewise.
13536 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
13537 * print.c (print_preprocess, print_object): Likewise.
13539 * search.c (compile_pattern): Use NILP when checking for nil.
13541 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
13542 __OPTIMIZE__]: Provide a GNU C macro version that handles
13543 lisp-object unions.
13544 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
13545 field, to better cope with ENABLE_CHECKING and calls that modify a
13546 Lisp_Object using its old value.
13548 2000-04-04 Gerd Moellmann <gerd@gnu.org>
13550 * window.c (compare_window_configurations): Signal an error
13551 if parameters C1 or C2 aren't window configurations.
13553 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
13554 AFTER_POTENTIAL_GC calls around calls to functions that can
13555 signal an error and thus invoke the debugger.
13557 2000-04-03 Gerd Moellmann <gerd@gnu.org>
13559 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
13560 an error if decoding fails.
13562 * keyboard.c (lispy_mouse_names): Variable removed.
13563 (Vlispy_mouse_stem): New variable.
13564 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
13565 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
13566 for any mouse button number. Increase size of mouse_syms and
13567 button_down_location as needed. Call modify_event_symbol with
13568 different arguments.
13569 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
13570 Call modify_event_symbol with different arguments.
13571 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
13572 for any button number. Call modify_event_symbol with different
13574 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
13575 Accept a string for NAME_ALIST_OR_STEM.
13577 * lisp.h (larger_vector): Add prototype.
13579 * fns.c (larger_vector): Make externally visible.
13581 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
13583 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
13585 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
13586 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
13587 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
13588 we are between str1 and str2.
13589 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
13590 (PATFETCH): Use `TRANSLATE'.
13591 (PATFETCH_RAW): Fetch multibyte char if applicable.
13592 (PATUNFETCH): Remove.
13593 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
13594 When writing a char, write it directly into the pattern buffer rather
13595 than going needlessly through a temp char-array.
13596 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
13597 multibyte magic and remove the useless `#ifdef emacs'.
13598 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
13601 * regex.h (struct re_pattern_buffer): Make field `multibyte'
13602 conditional on `emacs'.
13604 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
13606 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13608 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
13609 non-union-type versions of XMARK and friends here, because XMARK
13610 and friends won't work on an integer field if NO_UNION_TYPE is not
13612 (make_number): Define as a function if it's not defined as a macro.
13614 * composite.c (run_composite_function): Use NILP when checking for nil.
13615 (syms_of_composite): Delete local var NARGS, pass an int as first
13616 argument to Fmake_hash_table.
13618 * editfns.c (text_property_stickiness): Use NILP to test
13619 Lisp_Object boolean value.
13620 (Fmessage_or_box): Don't use NILP to test int variable.
13621 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
13622 problems reading from and changing the same lisp value in an
13625 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13627 * term.c (TN_no_color_video): New variable.
13628 (term_init): Intitialize TN_no_color_video.
13629 (enum no_color_bit): New enumeration.
13630 (MAY_USE_WITH_COLORS_P): New macro.
13631 (turn_on_face): Use it to determine if attributes may be used
13632 combined with colors.
13634 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13636 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
13637 with int lvalues via casts; instead, just yield lisp object lvalues.
13638 (enlarge_window): Variable sizep now points to Lisp_Object. Use
13639 proper accessor macros.
13640 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
13641 (grow_mini_window): Fix typo getting int value of root->height.
13643 * xdisp.c (compute_string_pos): Fix order of arguments to
13644 string_pos_nchars_ahead.
13645 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
13646 count arg to variable-arg routines like Frun_hook_with_args and
13648 (back_to_previous_visible_line_start)
13649 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
13650 fixed-arg routines like Fget_char_property and Fmake_string.
13651 (reconsider_clip_changes): Use XINT when comparing integer lisp
13652 objects, or passing them as int arguments.
13653 (mark_window_display_accurate, insert_left_trunc_glyphs)
13654 (append_space, extend_face_to_end_of_line): Use make_number when
13655 storing or passing integer values as lisp objects.
13656 (set_cursor_from_row, highlight_trailing_whitespace): Use
13657 INTEGERP, not implicit test against zero, for glyph object.
13658 (try_window_id): Don't use make_number when we want an int value.
13660 * xfaces.c (xlfd_symbolic_value): Make last argument a
13661 Lisp_Object, to be consistent with callers.
13662 (Fbitmap_spec_p): Use XINT to get numeric value of height.
13663 (lface_hash): Apply XFASTINT to lisp values before folding in.
13665 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
13666 fill in window width and height. Pass an int, not a lisp object,
13667 as first arg to Finsert.
13669 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13671 * xfaces.c (realize_basic_faces): Block input while realizing
13674 * keyboard.c (lispy_mouse_names): Add additional mouse names.
13676 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
13678 2000-03-31 Gerd Moellmann <gerd@gnu.org>
13680 * xterm.c (x_produce_glyphs): When displaying unibyte text
13681 or ASCII, handle case that per-char metric is null.
13683 2000-03-30 Ken Raeburn <raeburn@gnu.org>
13685 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
13687 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
13688 (XSUBR, XBUFFER): Verify correct object type before returning
13689 pointer, using eassert.
13690 * frame.h (XFRAME): Likewise.
13692 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
13693 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
13694 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
13695 * data.c (set_internal): Likewise.
13696 * dispextern.h (WINDOW_WANTS_MODELINE_P)
13697 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
13698 * fileio.c (auto_save_1): Likewise.
13699 * insdel.c (check_markers): Likewise.
13700 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
13701 * undo.c (record_insert): Likewise.
13702 * vmsproc.c (child_sig): Likewise.
13703 * window.c (unshow_buffer, window_loop): Likewise.
13704 * xterm.c (x_erase_phys_cursor): Likewise.
13706 2000-03-30 Gerd Moellmann <gerd@gnu.org>
13708 * xfns.c (free_image_cache): Free the cache structure itself
13709 last, after all its members have been freed.
13711 * lisp.h (xstrdup): Add prototype.
13713 * alloc.c (xstrdup): Moved here from xfaces.c.
13714 (allocating_for_lisp): Variable removed.
13715 (lisp_malloc): Block input around the calls to malloc and mem_insert.
13717 * xfaces.c (realize_tty_face): Use find_symbol_value instead
13719 (xstrdup): Moved to alloc.c.
13721 2000-03-29 Ken Raeburn <raeburn@gnu.org>
13723 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
13725 * emacs.c (main): Fix sense of no-loadup test.
13727 * config.in (ENABLE_CHECKING): Undef.
13729 * lisp.h (struct interval): Replace "parent" field with a union of
13730 interval pointer and Lisp_Object; add new bitfield to use as
13731 discriminant. Change other flag fields to bitfields.
13732 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
13733 is defined and the supplied test fails, print a message and abort.
13734 (eassert): New macro. Use CHECK to provide an assert-like facility.
13736 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
13737 pointers; abort if the value looks like a lisp object.
13738 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
13739 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
13740 Modify for new interval parent definition.
13742 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
13743 (UNMARK_BALANCE_INTERVALS): Update references that need an
13744 addressable lisp object in the interval structure.
13745 (die): New function.
13746 (suppress_checking): New variable.
13748 * intervals.c (interval_start_pos): Just return 0 if there's no
13751 2000-03-29 Gerd Moellmann <gerd@gnu.org>
13753 * lread.c (read1): Accept `.' (period) as symbol start like in CL
13754 and earlier Emacs versions.
13756 * keyboard.c (Ftop_level): Cancel busy-cursor.
13758 * eval.c (call_debugger): Cancel busy-cursor.
13760 2000-03-29 Kenichi Handa <handa@etl.go.jp>
13762 * search.c (Freplace_match): Adjust multibyteness of the current
13763 buffer and NEWTEXT. Free allocated memory before signaling an error.
13765 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
13767 * regex.c (analyse_first): New function obtained by ripping out most
13768 of re_compile_fastmap and generalizing it a little bit so that it
13769 can also just return whether a given (sub)pattern can match the empty
13771 (regex_compile): Use `analyse_first' to decide whether the loop-check
13772 needs to be done or not for *, +, *? and +? (the loop check is costly
13773 for non-greedy repetition).
13774 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
13776 2000-03-28 Dave Love <fx@gnu.org>
13778 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
13780 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
13782 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
13784 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
13786 (enum re_opcode_t): Update description of succeed_n.
13787 (PATFETCH): Always define.
13788 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
13789 operators, char classes, shy-groups and intervals).
13790 Optimize special cases of intervals so as to only use succeed_n and
13791 jump_n when really needed.
13792 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
13793 that we don't have to handle the special cases any more.
13794 Simplify on_failure_jump handling as well.
13796 2000-03-28 Jason Rumney <jasonr@gnu.org>
13798 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
13800 2000-03-27 Gerd Moellmann <gerd@gnu.org>
13802 * s/freebsd.h (GC_SETJMP_WORKS): Define.
13804 * s/msdos.h (GC_SETJMP_WORKS): Define.
13806 * alloc.c (mark_maybe_object): New function.
13807 (mark_memory): Use it.
13808 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
13809 (setjmp_tested_p, longjmp_done): New variables.
13810 (test_setjmp): New function.
13811 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
13812 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
13814 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
13815 to DEC_TEXT_POS and INC_TEXT_POS.
13817 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
13818 with parameter MULTIBYTE_P.
13820 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
13822 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
13823 buffers because it looks for multibyte character byte sequences
13824 which don't exist in unibyte text.
13826 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
13828 * xfaces.c (register_color, unregister_color, unregister_colors)
13829 [DEBUG_X_COLORS]: New functions.
13830 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
13832 * xfns.c (x_set_cursor_color): Get color reference counts right.
13834 * xterm.c (x_copy_color): New function.
13835 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
13837 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
13838 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
13839 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
13840 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
13841 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
13842 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
13843 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
13844 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
13845 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
13846 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
13848 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
13849 names for handling per-buffer variables.
13851 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
13852 instead of MAX_BUFFER_LOCAL_VARS.
13853 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
13855 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
13857 * xfns.c (x_specified_cursor_type): New function.
13858 (x_set_cursor_type): Use it.
13860 * buffer.h (struct buffer): Add cursor_type.
13862 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
13864 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
13865 (print_partial_compiled_pattern, re_compile_fastmap):
13867 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
13868 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
13869 executing it as well as when popping it off the stack to find infinite
13870 loops in non-greedy repetition operators.
13872 2000-03-26 Gerd Moellmann <gerd@gnu.org>
13874 * doc.c (Qfunction_documentation): New variable.
13875 (syms_of_doc): Initialize Qfunction_documentation.
13876 (Fdocumentation): If FUNCTION is a symbol with non-nil
13877 `function-documentation' property, return a documentation derived
13880 * buffer.c (syms_of_buffer): Add default-cursor-type.
13881 (init_buffer_once): Don't let cursor_type have a local value
13884 * xterm.c (x_display_and_set_cursor): Choose cursor depending
13885 on buffer-local value of cursor_type.
13886 (x_draw_bar_cursor): Add parameter WIDTH.
13888 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
13889 (init_buffer_once): Set default cursor_type value to t.
13890 Mark cursor_type as local everywhere.
13891 (syms_of_buffer): New per-buffer variable cursor-type.
13893 * buffer.h (struct buffer): Remove member local_var_flags,
13895 (MAX_BUFFER_LOCAL_VARS): New macro.
13896 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
13897 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
13898 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
13899 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
13901 * print.c (print_object): Use new macros for per-buffer variables.
13903 * category.c (Fset_category_table): Use new macros for per-buffer
13906 * buffer.c (buffer_permanent_local_flags): Make a char array.
13907 (max_buffer_local_idx): New variable.
13908 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
13909 for new handling of per-buffer variables.
13910 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
13911 (init_buffer_once): Initialize per-buffer vars differently.
13912 Set max_buffer_local_idx.
13914 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
13917 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
13919 * data.c (do_symval_forwarding, store_symval_forwarding)
13920 (find_symbol_value, set_internal, default_value, Fset_default)
13921 (Fkill_local_variable, Flocal_variable_p): Use new macros for
13922 per-buffer variables.
13924 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
13926 2000-03-24 Gerd Moellmann <gerd@gnu.org>
13928 * xterm.c (x_term_init): Unblock input around call1 of
13929 Qvendor_specific_keysyms.
13931 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
13932 (find_defun_start): Consider an open parenthesis in column 0
13933 a defun start only if open_paren_in_column_0_is_defun_start is set.
13934 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
13936 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
13938 * eval.c (Fautoload): Add entry in load-history (if after dump).
13939 * lread.c (load-history): Update docstring.
13941 2000-03-24 Gerd Moellmann <gerd@gnu.org>
13943 * indent.c (Fvertical_motion): Always use the current buffer.
13944 Temporarily change the window's buffer, if necessary.
13946 2000-03-23 Gerd Moellmann <gerd@gnu.org>
13948 * xterm.c (fast_find_position): Make sure not to consider rows
13949 not visible in the window.
13951 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
13953 * regex.c (enum syntaxcode): Provide default for non-Emacs.
13954 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
13956 2000-03-22 Jason Rumney <jasonr@gnu.org>
13958 * w32menu.c (single_submenu): Set help string to NULL if none.
13959 (w32_menu_show): Set help string correctly.
13960 (add-menu-item): Set help string in MIIM_DATA for menu item.
13961 Load SetMenuItemInfoA explicitly.
13962 (w32_menu_display_help): New function.
13964 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
13965 (QCdata): Moved to xdisp.c.
13967 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
13968 (Vw32_charset_to_codepage_alist): Removed.
13969 (Vw32_charset_info_alist): New variable.
13970 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
13971 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
13972 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
13973 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
13975 (w32_codepage_for_font): Use Vw32_charset_info_alist.
13976 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
13977 Define Vw32_charset_info_alist and w32_charset symbols.
13979 2000-03-22 Jason Rumney <jasonr@gnu.org>
13981 * makefile.nt (w32bdf.obj): Update dependencies.
13983 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
13985 * w32fns.c: Include fontset.h after dispextern.h.
13986 (Fx_create_frame): Do not create fontset.
13987 (w32_load_system_font): Doc fix.
13988 (Fx_close_connection): Free full_name if it is not shared.
13990 * w32term.c: Include fontset.h after dispextern.h.
13991 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
13993 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
13994 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
13995 (w32_font_is_double_byte): New function, needs body.
13996 (x_append_glyph): Set glyph->glyph_not_available_p.
13997 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13998 it->charset. If it->multibyte_p is zero and it->c is a multibyte
13999 character, convert it to a unibyte character.
14000 (struct glyph_string): Delete member `charset'.
14001 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
14002 calculating it is found.
14003 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14004 the case that per char metric is not available correctly.
14005 (x_fill_glyph_string): Handle the case that the specific glyph is
14006 not available correctly.
14007 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14008 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14009 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14010 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14011 fontset. Don't call FS_LOAD_FONT.
14013 2000-03-22 Ken Raeburn <raeburn@gnu.org>
14015 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
14016 (INT_LISPLIKE): New macro.
14017 (NULL_INTERVAL_P): Use it.
14018 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
14019 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
14020 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
14022 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
14023 explicit references to "parent" field of struct interval and
14024 associated unclean type conversions.
14025 * intervals.c (create_root_interval, root_interval, rotate_right)
14026 (rotate_left, balance_possible_root_interval, split_interval_right)
14027 (split_interval_left, interval_start_pos, find_interval)
14028 (next_interval, previous_interval, update_interval)
14029 (adjust_intervals_for_insertion, delete_node, delete_interval)
14030 (adjust_intervals_for_deletion, merge_interval_right)
14031 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
14032 (copy_intervals_to_string): Likewise.
14033 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
14035 * syntax.c (update_syntax_table): Likewise.
14037 * intervals.c (reproduce_tree_obj): New function, like
14038 reproduce_tree but takes a Lisp_Object for the parent. Declare
14040 (graft_intervals_into_buffer): Use it when appropriate.
14041 (reproduce_tree): Declare with prototype.
14042 (balance_possible_root_interval): Check that the parent is a lisp
14043 object before trying to examine its type.
14045 2000-03-22 Gerd Moellmann <gerd@gnu.org>
14047 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
14048 as strings only if both are known to be strings.
14050 * s/openbsd.h (LIBS_TERMCAP): Undef.
14052 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
14054 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
14055 definitions for non-Emacs compilation.
14056 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
14057 outside of `#ifdef emacs'.
14058 (print_partial_compiled_pattern): Update.
14059 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
14060 (re_compile_fastmap): Merge handling of charset and charset_not (for
14061 emacs and non-emacs compilation as well).
14062 Similarly for (not)categoryspec and (not)syntaxspec.
14063 Don't use the fastmap when reaching `anychar' since the added
14064 complexity is not justified.
14065 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
14066 and (not)syntaxspec. Merge (not)categoryspec.
14068 2000-03-22 Kenichi Handa <handa@etl.go.jp>
14070 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
14071 (FACE_FOR_CHAR): Define them differently for the configuration of
14074 2000-03-21 Dave Love <fx@gnu.org>
14076 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
14079 2000-03-21 Gerd Moellmann <gerd@gnu.org>
14081 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
14082 (lface_fully_specified_p): Don't check contents of
14083 LFACE_FONT_INDEX because that attribute is optional.
14084 (realize_x_face): Remove now unwarranted xassert.
14086 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
14088 The following changes are to make font selection based on
14089 characters, not charset. In addition, they recover fontset
14090 facilities while utilizing the new font selection mechanism.
14092 * Makefile.in (fontset.o): Depend on dispextern.h.
14094 * alloc.c (mark_face_cache): Don't mark face->registry.
14096 * dispextern.h (struct glyph): New member glyph_not_available_p.
14097 Use 22 bits for face_id.
14098 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
14099 (struct face): Delete member registry, new member ascii_face.
14100 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
14101 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
14102 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
14103 (struct it): Delete member charset, new member glyph_not_available_p.
14105 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
14106 (struct fontset_info, struct fontset_data): Structs removed.
14107 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
14108 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
14109 (fs_load_font, fs_query_fontset): Adjusted for new argument.
14110 (fs_free_face_fontset, fontset_font_pattern)
14111 (face_suitable_for_char_p, face_for_char)
14112 (make_fontset_for_ascii_face): Extern them.
14113 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
14114 (FS_LOAD_FACE_FONT): New macro.
14116 * fontset.c: All codes rewritten or adjusted for the change of
14117 fontset implementation. Now fontset is represented by char table.
14118 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
14120 (my_strcasecmp): Function removed.
14121 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
14122 (AREF, ASIZE): New macros.
14123 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
14124 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
14125 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
14126 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
14127 (fontset_id_valid_p, font_family_registry, fontset_name)
14128 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
14129 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
14131 (fs_load_font): New arg FACE. Caller changed.
14132 (fs_query_fontset): Argument changed. Caller changed.
14133 (Fquery_fontset): call fs_query_fontset.
14134 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
14136 (clear_fontset_elements, check_registry_encoding)
14137 (check_fontset_name): New functions.
14138 (syms_of_fontset): Set char-table-extra-slots property of fontset
14139 to 3. Staticpro and initialize Vfontset_table and
14140 Vdefault_fontset. Defsubr fontset_font and fontset_list.
14142 * frame.h (struct frame): Member `fontset_data' removed.
14143 (FRAME_FONTSET_DATA): Macro removed.
14145 * frame.c (make_frame): Don't allocate f->fontset_data.
14146 (Fdelete_frame): Don't free f->fontset_data.
14148 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
14150 * xdisp.c (charset_at_position): Function removed.
14151 (init_iterator): Don't set member charset of struct `it'.
14152 (handle_face_prop, reseat_to_string, set_iterator_to_next)
14153 (next_element_from_display_vector, insert_left_trunc_glyphs):
14155 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
14157 (get_next_display_element, append_space)
14158 (extend_face_to_end_of_line): Likewise.
14160 * xfaces.c (Qx_charset_registry, Vface_default_registry):
14162 (clear_font_table, frame_update_line_height, load_face_font):
14163 Adjusted for the change of fontset implementation.
14164 (load_face_fontset_font): Function removed.
14165 (pixel_point_size): New function.
14166 (font_list): Argument type changed. Caller changed.
14167 (LFACE_FONT): New macro.
14168 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
14169 (set_lface_from_font_name): Type of arg FONTNAME is changed to
14170 Lisp_Object. Determine the font name by actually loading a font
14171 by the specified pattern. Set LFACE_FONT (lface) to the specified
14172 pattern. Even if a font is not found, don't try alternatives.
14173 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
14174 (set_font_frame_param): If `font' is specified in lface, use it.
14175 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
14176 (lface_same_font_attributes_p): Likewise.
14177 (make_realized_face): Arguent changed. Caller changed. Set
14178 face->ascii_face to face itself.
14179 (free_realized_face): Free face->fontset if face is for ASCII.
14180 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
14181 (deduce_unibyte_registry, x_charset_registry): Functions removed.
14182 (free_realized_multibyte_face): New function.
14183 (lookup_face, lookup_named_face, lookup_derived_face): Argument
14184 changed. Caller changed.
14185 (try_font_list): Argument type changed.
14186 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
14187 (choose_face_font): Argument changed. Handle fontset properly.
14188 (choose_face_fontset_font): Function removed.
14189 (realize_default_face, realize_named_face): Don't remove the
14191 (realize_face): Argument changed. Caller changed. Remove face
14192 with the arg former_face_id in advance. Load font for the new face.
14193 (realize_x_face): Argument changed. Caller changed. For a
14194 multibyte character, share fontset with base_face. For a single
14195 byte character, make a new realized fontset. Don't load a font here.
14196 (realize_tty_face): Argument changed. Caller changed.
14197 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
14198 (face_at_buffer_position): Don't check multibyte_p for returning
14200 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
14201 FACE_SUITABLE_FOR_CHARSET_P.
14202 (syms_of_xfaces): Remove code for Qx_charset_registry and
14203 Vface_default_registry.
14205 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
14206 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
14207 (x_per_char_metric): Don't try FONT->default_char. Even if
14208 pcm->width is zero, glyph bits may exist.
14209 (x_encode_char): Always initialize char2b->byte1.
14210 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
14211 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
14212 (x_append_glyph): Set glyph->glyph_not_available_p.
14213 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
14214 it->charset. Handle the case that per char metric is not
14215 available. If it->multibyte_p is zero and it->c is a multibyte
14216 character, convert it to a unibyte character.
14217 (struct glyph_string): Delete member `charset'.
14218 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14219 the case that per char metric is not available correctly.
14220 (x_fill_glyph_string): Handle the case that the specific glyph is
14221 not available correctly.
14222 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14223 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14224 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14225 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14226 fontset. Don't call FS_LOAD_FONT.
14228 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
14229 (x_create_tip_frame): Likewise.
14230 (Fx_close_connection): Free full_name of font_info.
14232 * fns.c (optimize_sub_char_table): New function.
14233 (Foptimize_char_table): New function.
14234 (syms_of_fns): Defsubr Soptimize_char_table.
14236 2000-03-20 Gerd Moellmann <gerd@gnu.org>
14238 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
14239 only if buffer is displayed in some window.
14241 * xdisp.c (handle_single_display_prop): Initialize local `value'.
14242 (try_window_reusing_current_matrix): Don't call scroll run
14243 function if run's current and desired position are the same;
14244 this prevents cursor flickering.
14246 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
14248 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
14250 * regex.c (RE_STRING_CHAR): New macro.
14251 (GET_CHAR_AFER_2): Remove.
14252 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
14253 (enum re_opcode_t): Remove on_failure_jump_exclusive.
14254 (print_partial_compiled_pattern, re_compile_fastmap)
14255 (re_match_2_internal): Remove on_failure_jump_exclusive.
14256 (regex_compile): Turn optimizable P+ loops into PP*, so that the
14257 optimization only need to work for * (ie. can use of_keep_string_jump).
14258 Remove the special case for .*\n since it is now covered by the general
14260 (re_search_2): Don't bother with `room'.
14261 (skip_one_char): New function.
14262 (skip_noops): Simplify since `memory' is not needed any more.
14263 (mutually_exclusive_p): Restructure slightly to use `switch' and
14264 add handling for "all" remaining cases.
14265 (re_match_2_internal): Change on_failure_jump_smart to use
14266 on_failure_keep_string_jump (and redirect the end-of-loop jump)
14267 rather than on_failure_jump_exclusive.
14269 2000-03-19 Gerd Moellmann <gerd@gnu.org>
14271 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
14272 number of bits per RGB because it's everywhere used as the depth
14275 * term.c (calculate_costs): Remove code dealing with X frames.
14277 2000-03-19 Richard M. Stallman <rms@gnu.org>
14279 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
14281 2000-03-18 Gerd Moellmann <gerd@gnu.org>
14283 * lread.c (read_integer): Unread the last char not consumed.
14285 2000-03-17 Gerd Moellmann <gerd@gnu.org>
14287 * xterm.c (x_update_window_cursor): Don't update in frames
14288 which are in the process of being deleted.
14290 2000-03-16 Gerd Moellmann <gerd@gnu.org>
14292 * Makefile.in (mostlyclean): Add `*.core'.
14293 (clean): Add `bootstrap-emacs'.
14295 * lread.c (read_integer): New function.
14296 (read1): Support read syntax #o, #x, #b, #r.
14298 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
14300 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
14301 make sure POINTER_TO_OFFSET gives the same value before and after
14302 PREFETCH. Use `dfail' to guarantee "atomic" matching.
14303 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
14304 (debug): Now only active if > 0 rather than if != 0.
14305 (DEBUG_*): Update for the new meaning of `debug'.
14306 (print_partial_compiled_pattern): Add missing `succeed' case. Use
14307 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
14308 in `succeed_n', `jump_n' and `set_number_at'.
14309 (store_op1, store_op2, insert_op1, insert_op2)
14310 (at_begline_loc_p, at_endline_loc_p): Add prototype.
14311 (group_in_compile_stack): Move to after its arg's types are
14312 declared and add a prototype.
14313 (PATFETCH): Define in terms of PATFETCH_RAW.
14314 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
14315 (QUIT): Redefine as a nop except for NTemacs.
14316 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
14317 indentation of the greedy-op and shy-group code.
14318 (at_(beg|end)line_loc_p): Fix argument's types.
14319 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
14320 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
14321 (MATCHING_IN_FIRST_STRING): Remove.
14322 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
14323 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
14324 QUIT unconditionally.
14326 2000-03-15 Gerd Moellmann <gerd@gnu.org>
14328 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
14331 * process.c (send_process): Add a hint that the function
14332 can call Lisp code to its comment.
14334 * lread.c (load_dangerous_libraries): New variable.
14335 (Vbytecomp_version_regexp): New variable.
14336 (safe_to_load_p): New function.
14337 (Fload): Handle files not compiled with Emacs specially.
14338 (syms_of_lread): New Lisp variable load-dangerous-libraries.
14340 2000-03-14 Gerd Moellmann <gerd@gnu.org>
14342 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
14344 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
14345 support functions only if HAVE_X11R6_XIM is defined.
14346 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
14348 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
14350 * xfns.c (X_I18N_INHIBITED): Don't define.
14351 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
14352 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
14354 * config.in (HAVE_X_I18N): Moved here from xterm.h.
14355 (HAVE_X11R6_XIM): Define.
14357 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
14359 * xterm.c (x_term_init): Add support for X resource `synchronous'.
14360 If set, call XSynchronize.
14362 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
14364 * regex.c: Declare a new type `re_char' used throughout the code
14365 for the string char type. It's `const unsigned char' to match the
14366 rest of Emacs. Consistently make sure all pointers to strings use
14367 it and make sure all pointers into the pattern use `unsigned char'.
14368 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
14369 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
14372 * charset.h (GET_CHAR_AFTER_2): Remove.
14373 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
14375 2000-03-12 Ken Raeburn <raeburn@gnu.org>
14377 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
14378 variable before the invocation of YMF_PASS_LDFLAGS, in case both
14379 of them try to use backquotes.
14381 2000-03-12 Dave Love <fx@gnu.org>
14383 * unexelf.c: Restore changes of 1999-10-19.
14384 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
14385 fix its type and alignment; copy it from current process.
14387 2000-03-12 Gerd Moellmann <gerd@gnu.org>
14389 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
14390 has been found. Fix bug not computing timer's predecessor.
14392 * fileio.c (Fread_file_name): Handle case that DIR contains a
14395 * window.c (Fsave_window_excursion): Doc fix.
14397 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
14399 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
14401 * msdos.c (vga_installed): New function, code moved from
14402 dos_set_window_size.
14403 (Qbar, Qcursor_type, outside_cursor): New variables.
14404 (syms_of_msdos): Intern and staticpro them.
14405 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
14406 shape used outside Emacs when called for the first time.
14407 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
14408 cursor shape used outside Emacs.
14409 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
14410 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
14412 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
14413 parameters specify the cursor. Make qreverse a global
14414 variable (renamed to Qreverse).
14416 2000-03-09 Gerd Moellmann <gerd@gnu.org>
14418 * fns.c (Fy_or_n_p): Cancel busy-cursor.
14420 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
14422 This is a big redesign of failure-stack and register handling, prompted
14423 by bugs revealed when trying to add shy-groups. Overall, what happened
14424 is that loops are now structured a little differently, groups can be
14425 shy and the code is a little simpler.
14427 * regex.h: Update the copyright.
14428 (RE_SHY_GROUPS): New value.
14429 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
14430 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
14432 * regex.c (enum re_opcode_t): Remove jump_past_alt,
14433 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
14434 on_failure_jump_(exclusive, loop and smart). Also fix the comment
14435 for (start|stop)_memory since they now only take one argument (the
14436 second has becomes unnecessary).
14437 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
14438 (print_compiled_pattern): Use %ld to printf long ints and flush to
14439 make debugging a little easier.
14440 (union fail_stack_elt): Make the integer unsigned.
14441 (struct fail_stack_type): Add a `frame' element.
14442 (INIT_FAIL_STACK): Init `frame' as well.
14443 (POP_PATTERN_OP): New macro for re_compile_fastmap.
14444 (DEBUG_PUSH, DEBUG_POP): Remove.
14445 (NUM_REG_ITEMS): Remove.
14446 (NUM_NONREG_ITEMS): Adjust.
14447 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
14448 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
14449 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
14450 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
14452 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
14453 address pushed is not the destination of the jump but the source
14455 (NUM_FAILURE_ITEMS): Remove.
14456 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
14457 registers before the actual failure point). Don't hardcode any
14458 meaning for str==NULL anymore.
14459 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
14460 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
14462 (REG_UNSET_VALUE): Use NULL (why not?).
14463 (compile_range): Remove declaration since it doesn't exist.
14464 (struct compile_stack_elt_t): Remove inner_group_offset.
14465 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
14466 (regex_grow_registers): Remove dead code.
14467 (FIXUP_ALT_JUMP): New macro.
14468 (regex_compile): Add shy-groups Change loops to use
14469 on_failure_jump_smart&jump instead of
14470 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
14471 initial (dummy_failure_)jump. Remove c1_base (looks like unused
14472 variable to me). Use `jump' instead of `jump_past_alt' and don't
14473 bother with push_dummy_failure in alternatives since it is now
14474 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
14475 emacs' for (re)allocating the stack.
14476 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
14477 from loop when bufp->can_be_null rather than jumping to `done'.
14478 Avoid jumping backwards so as to ensure termination. Use
14479 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
14480 backreferences. Remove dead code in handling of `anychar'.
14481 (skip_noops, mutually_exclusive_p): New functions taken from the
14482 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
14483 improve mutually_exclusive_p to handle ".+\n".
14484 (lowest_active_reg, highest_active_reg)
14485 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
14486 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
14487 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
14488 variables. Push register (in `start_memory') on the stack rather
14489 than storing it in old_reg(start|end). Remove the cycle detection
14490 from `stop_memory', replaced by the use of on_failure_jump_loop
14491 for greedy loops. Add code for the new on_failure_jump_<foo>.
14492 Remove ad-hoc code in `on_failure_jump' to push more registers in
14493 the case of a loop. Take out code from `maybe_pop_jump' into
14494 separate functions and adapt it to the semantics of
14495 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
14496 and push_dummy_failure. Remove dummy_failure handling and
14497 handling of `failures to jump to on_failure_jump' (this last one
14498 was already dead code, it seems).
14499 (group_match_null_string_p, alt_match_null_string_p)
14500 (common_op_match_null_string_p): Remove.
14502 2000-03-08 Dave Love <fx@gnu.org>
14504 * config.in: Don't depend on __STDC__ for volatile.
14505 Add POINTER_TYPE, PTR, PROTOTYPES.
14507 * hftctl.c, strftime.c: Use PROTOTYPES.
14508 * eval.c (find_handler_clause): Likewise.
14510 * mem-limits.h: Use POINTER_TYPE.
14512 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
14513 (memory_warnings): Declare using POINTER_TYPE.
14515 2000-03-08 Gerd Moellmann <gerd@gnu.org>
14517 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
14519 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
14521 * xfns.c: Remove obsolete code in #if 0.
14522 (Fx_focus_frame): New function.
14524 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14526 * coding.c (coding_category_name): Add coding-category-utf-8,
14527 coding-category-utf-16-be, coding-category-utf-16-le.
14528 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
14529 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
14530 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
14531 (detect_coding_utf_8): New function.
14532 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
14533 UTF_16_LOW_SURROGATE_P): New macros.
14534 (detect_coding_utf_16): New function
14535 (detect_coding_mask): When priorities are specified, skip any
14536 categories that have `nil' coding-system. Fix bug of returning
14537 wrong mask when PRIORITIES is specified and detect_coding_XXX()
14538 returns a mask not set in PRIORITIES.
14539 (detect_eol_type_in_2_octet_form): New function.
14540 (detect_eol): selects detect_eol_type_XXX to call according to
14541 cooding->category_idx.
14542 (detect_coding_system): Remove `nil' coding-system in the result.
14543 (Fupdate_coding_systems_internal): Update all coding-categories.
14545 * coding.h (CODING_CATEGORY_IDX_UTF_8)
14546 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
14548 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
14549 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
14550 (CODING_CATEGORY_IDX_UTF_16_LE)
14551 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
14552 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
14553 (CODING_CATEGORY_MASK_ANY): Include the above macros.
14554 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
14556 2000-03-07 Gerd Moellmann <gerd@gnu.org>
14558 * doc.c (Fdocumentation_property): If value is not a string,
14559 and doesn't refer to etc/DOC, evaluate it to obtain a string.
14561 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
14562 close the display with XtCloseDisplay. This caused a bus error
14565 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
14566 complete but not unique.
14568 2000-03-06 Gerd Moellmann <gerd@gnu.org>
14570 * process.c (send_process): Remove local variable `procname' that
14571 might become invalid when a GC happens. Instead, access the
14572 process name slot directly.
14574 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
14575 orig_height if set.
14577 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
14578 orig_height if set.
14580 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
14582 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
14583 glyph matrices have been freed.
14585 2000-03-05 Gerd Moellmann <gerd@gnu.org>
14587 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
14588 (bootstrap-temacs): Set LC_ALL to C like for temacs.
14590 * xfns.c (QCdata): Moved to xdisp.c.
14592 * xdisp.c (QCdata): Moved here from xfns.c.
14593 (syms_of_xdisp): Initialize QCdata.
14595 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
14597 * window.c (coordinates_in_window): Use
14598 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
14599 FRAME_INTERNAL_BORDER_WIDTH.
14601 * xdisp.c (try_window_id): Recompute unchanged information if
14602 it is obviously invalid.
14604 * xterm.c (x_term_init): Create a colormap if not using the
14607 * xterm.h (select_visual): Change prototype.
14609 * xfns.c (select_visual): Rewritten. Recognize user-specified
14611 (visual_classes): New variable.
14613 2000-03-04 Gerd Moellmann <gerd@gnu.org>
14615 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
14616 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
14617 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
14618 (x_decode_color): Don't handle allocation of white and black specially.
14619 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
14620 XtNcolormap resources.
14621 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
14622 (Fx_create_frame): Initialize color members of x_output structure.
14623 (xpm_load): Pass colormap to XPM lib.
14625 * xfaces.c (x_free_colors): Access colormap of frame using
14626 FRAME_X_COLORMAP. Be paranoid about freeing black and white
14627 when default colormap is used.
14629 * xterm.c (x_term_init): Set Colormap member of x_display_info
14630 structure. Copy colormap if resource `privateColormap' is
14631 specified (PseudoColor only).
14632 (x_setup_relief_color): Access colormap of frame using
14635 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
14636 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
14638 2000-03-04 Jason Rumney <jasonr@gnu.org>
14640 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
14641 other non-platform-specific equivalents.
14642 [WINDOWSNT]: Include w32term.h, fontset.h and define X
14643 specific functions and macros as their w32 equivalents where
14644 non-platform-specifics are not available.
14645 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
14646 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
14647 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
14648 (frame_update_line_height): Use macros to access f->output_data.
14649 (defined_color): Remove FIXME comments; fixed.
14650 (x_face_list_fonts, prepare_face_for_display): Put X specifics
14651 into #ifdef blocks. Add WINDOWSNT blocks.
14652 (Fx_list_fonts): Use macros for accessing font data.
14653 (set_lface_from_font_name): Different default fonts for X and
14655 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
14656 scalable for backward compatibility.
14657 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
14658 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
14660 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
14663 * makefile.nt (w32faces.obj): Remove.
14666 2000-03-03 Jason Rumney <jasonr@gnu.org>
14668 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
14669 correct parameters.
14671 2000-03-03 Ken Raeburn <raeburn@gnu.org>
14673 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
14674 standard ELF definitions here if the system header does not.
14676 2000-03-03 Gerd Moellmann <gerd@gnu.org>
14678 * xterm.c (PER_CHAR_METRIC): Removed.
14679 (x_per_char_metric_1, x_default_char): New functions.
14680 (x_per_char_metric): If font's default char is invalid, return
14681 metrics of a suitably chosen usable default char.
14682 (x_draw_glyph_string_foreground): If font has an invalid default
14683 char, replace occurrences of unprintable chars with a suitably
14684 chosen usable default char.
14686 2000-03-02 Gerd Moellmann <gerd@gnu.org>
14688 * xterm.c (note_mouse_highlight): Return quickly if frame's
14689 glyph matrices have been freed.
14691 * dispnew.c (free_glyphs): Block input while freeing matrices.
14693 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
14695 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
14698 * dispextern.h (x_free_colors): Add prototype.
14700 * xfaces.c (x_free_colors): New function.
14701 (unload_color, free_face_colors): Use it.
14703 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14705 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
14707 * window.c [MSDOS]: Include msdos.h.
14709 2000-03-02 Dave Love <fx@gnu.org>
14711 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
14713 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
14714 set C_OPTIMIZE_SWITCH for gcc.
14716 2000-03-02 Kenichi Handa <handa@etl.go.jp>
14718 * coding.c (coding_save_composition): Be sure to allocate
14719 composition data area in coding even if there's no composition in
14722 2000-03-01 Jason Rumney <jasonr@gnu.org>
14724 * w32term.c: Equivalent changes to those made to xterm.c on
14725 2000-02-25 and 2000-02-24.
14727 * w32fns.c: Equivalent changes to those made to xfns.c on
14728 2000-02-25 and 2000-02-21.
14730 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
14731 correct line-end convention is followed.
14733 * w32menu.c [HAVE_BOXES]: Remove #undef.
14734 (single_keymap_panes): Remove code for simulating checkmarks.
14735 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
14736 Remove code for drawing simulated checkmarks.
14737 (w32_menu_show): make unibyte help string correctly.
14738 (add_menu_item): draw standard Windows checkmarks. Draw radio
14739 buttons as radio buttons if possible.
14741 2000-03-01 Gerd Moellmann <gerd@gnu.org>
14743 * sysdep.c (start_of_text): Don't define this function for NetBSD
14746 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
14748 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
14749 (LINKER): Don't undef if __NetBSD__ is defined.
14751 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
14753 * fileio.c [__NetBSD__]: Define `unix'.
14755 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
14757 2000-02-29 Gerd Moellmann <gerd@gnu.org>
14759 * atimer.c (start_atimer): Don't abort when timers are stopped.
14760 (append_atimer_lists): New function.
14761 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
14762 arbitrary lists of stopped and running atimers.
14764 * atimer.c (cancel_atimer): Handle canceling an atimer when
14765 some timers are stopped.
14767 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
14768 after canceling it.
14770 * fns.c (maybe_resize_hash_table): Handle case of new size
14771 coming out as being the same as old size.
14773 2000-02-27 Jason Rumney <jasonr@gnu.org>
14775 * makefile.nt: Add atimer.h to dependencies.
14776 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
14777 * w32console.c: Only disable window system features for dispextern.h
14778 (initialize_w32_display): Build a display info for the console.
14779 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
14780 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
14781 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
14783 * w32gui.h (struct W32FontStruct): Revert last change after change
14785 * w32menu.c (single_submenu): Set up help string.
14786 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
14787 (w32_dialog_show): Set up help string.
14788 * w32term.c (w32_display_info_for_display): Remove unused function.
14789 (w32_draw_bitmap): Use pre-built bitmaps.
14790 (w32_initialize_display_info): New function to initialize parts of
14791 display info that are common to both GUI and console frames.
14792 (w32_term_init): Use w32_initialize_display_info. Do not set
14793 Vw32_num_mouse_buttons here, as it is not called for console
14794 frames. Build bitmaps for indicating truncated lines etc.
14795 (x_delete_display): Destroy pre-built bitmaps.
14796 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
14797 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
14799 2000-02-27 Dave Love <fx@gnu.org>
14801 * lisp.h: Add a bunch of prototypes.
14803 2000-02-26 Kenichi Handa <handa@etl.go.jp>
14805 * keyboard.c (read_char): Set `usec' correctly.
14807 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14809 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
14810 `lambda', set reg[RRR] to the map index.
14811 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
14812 reg[RRR] to 0. Otherwise, set it to -1.
14814 2000-02-25 Gerd Moellmann <gerd@gnu.org>
14816 * emacs.c (main): Remove code snippet commented out with `//'.
14818 2000-02-25 Richard M. Stallman <rms@gnu.org>
14820 * fileio.c (Ffile_symlink_p): If result starts with a `/'
14821 and contains a `:', prepend `/:'.
14823 * window.c (select_window_1): If selected_window is nil,
14824 don't "swap out" the buffer's point.
14825 (Fset_window_configuration): Set selected_window to nil
14826 before calling Fselect_window.
14827 (unshow_buffer): Don't set point in buffer from window's point
14828 if another more recently selected window also shows the buffer.
14830 2000-02-25 Gerd Moellmann <gerd@gnu.org>
14832 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
14834 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
14835 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
14836 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
14838 (DEFAULT_BUSY_CURSOR_DELAY): New define.
14839 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
14840 (hide_busy_cursor): New functions.
14841 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
14843 * minibuf.c (read_minibuf): Cancel busy-cursor.
14845 * keyboard.c (command_loop_1): Call start_busy_cursor before
14846 Fcommand_execute and cancel_busy_cursor after it.
14847 (timer_check): Remove busy-cursor code.
14848 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
14851 * process.c (wait_reading_process_input): Remove busy-cursor code.
14853 * eval.c (Fsignal): Call cancel_busy_cursor instead of
14854 Fx_hide_busy_cursor.
14856 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
14858 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
14860 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
14862 * xterm.c (XTread_socket): Remove busy-cursor code.
14864 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
14865 (build_frame_matrix_from_leaf_window): Put code handling
14866 glyph row's not being a slice of a frame row in #if 0.
14867 (sync_window_with_frame_matrix_rows): New function.
14868 (frame_row_to_window): New function.
14869 (mirror_line_dance): Handle copies between windows.
14871 * lread.c (Fload): Use `xfree' instead of `free'.
14872 (init_obarray): Use `xmalloc' instead of `malloc'.
14874 * window.c (Fset_window_buffer): Set WINDOW to the window
14876 (coordinates_in_window): Take frame's internal border width
14879 2000-02-24 Gerd Moellmann <gerd@gnu.org>
14881 * xterm.c (x_display_and_set_cursor): Display cursor of
14882 non-selected windows depending on the setting of
14883 cursor_in_non_selected_windows.
14885 * xdisp.c (cursor_in_non_selected_windows): New variable.
14886 (syms_of_xdisp): DEFVAR_BOOL it.
14888 2000-02-23 Gerd Moellmann <gerd@gnu.org>
14890 * data.c (Fstring_to_number): If number is greater than what
14891 fits into an integer, return a float.
14893 * eval.c (specbind): Remove references to
14894 keyword_symbols_constant_flag.
14896 * data.c (keyword_symbols_constant_flag): Removed.
14897 (Fmakunbound, set_internal, syms_of_data): Remove references to
14898 keyword_symbols_constant_flag.
14900 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
14902 2000-02-23 Kenichi Handa <handa@etl.go.jp>
14904 * syntax.c (multibyte_syntax_as_symbol): New variable.
14905 (syms_of_syntax): Declare it as a Lisp variable.
14906 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
14907 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
14908 nonzero, treat all multibyte characters as symbol.
14909 (init_syntax_once): Give syntax `word' to all multibyte characters.
14911 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14913 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
14916 2000-02-21 Gerd Moellmann <gerd@gnu.org>
14918 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
14920 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14921 (x_non_menubar_window_to_frame): Check the busy-cursor window.
14923 2000-02-21 Dave Love <fx@gnu.org>
14925 * frame.c (Vmouse_position_function): New variable.
14926 (Fmouse_position): Use it.
14927 (syms_of_frame): Install it.
14929 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
14931 2000-02-20 Gerd Moellmann <gerd@gnu.org>
14933 * fileio.c (Finsert_file_contents): Unbind the binding of
14934 standard-output done by temp_output_buffer_setup.
14936 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
14937 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
14938 (specbind, unbind_to): Handle most common case of non-constant
14939 symbol with trivial value specially.
14941 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
14943 2000-02-20 Richard M. Stallman <rms@gnu.org>
14945 * data.c (Fmake_variable_buffer_local): Doc fix.
14946 Init found_for_buffer to 0.
14947 (Fmake_variable_frame_local): If the variable has already
14948 been buffer-local, set the check_frame field.
14950 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
14952 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
14953 produced for CODING_MODE_LAST_BLOCK requires.
14955 2000-02-18 Dave Love <fx@gnu.org>
14957 * keyboard.c (echo_keystrokes): Remove declaration.
14958 (Vecho_keystrokes) New variable.
14959 (read_char, record_menu_key, read_key_sequence): Use it to allow
14960 use of float value.
14961 (syms_of_keyboard): Change Vecho_keystrokes declaration.
14963 * lread.c: Undef feature selection macros before defining.
14965 2000-02-18 Gerd Moellmann <gerd@gnu.org>
14967 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
14968 for symbols other than the symbol in question.
14970 2000-02-17 Dave Love <fx@gnu.org>
14972 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
14974 2000-02-17 Gerd Moellmann <gerd@gnu.org>
14976 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
14978 * alloc.c (enum mem_type): Compile unconditionally.
14980 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
14982 * xfaces.c (tty_defined_color): Don't return faulire indication
14983 for unspecified-fg and unspecified-bg pseudo-colors.
14985 2000-02-17 Gerd Moellmann <gerd@gnu.org>
14987 * alloc.c (mark_object): Don't mark symbol names in pure space.
14988 (gc_sweep): Don't unmark symbol names in pure space.
14990 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
14991 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
14992 [GC_MARK_STACK]: New defines.
14993 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
14994 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
14996 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
14998 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
14999 allocate_buffer instead of xmalloc.
15001 * alloc.c (toplevel): Include setjmp.h.
15002 (PURE_POINTER_P): New define.
15003 (enum mem_type) [GC_MARK_STACK]: New enumeration.
15004 (Vdead) [GC_MARK_STACK]: New variable.
15005 (lisp_malloc): Add parameter TYPE, call mem_insert if
15006 GC_MARK_STACK is defined.
15007 (allocate_buffer): New function.
15008 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
15009 (free_float) [GC_MARK_STACK]: Set type to Vdead.
15010 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
15011 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
15012 (MEM_NIL) [GC_MARK_STACK]: New define.
15013 (struct mem_node) [GC_MARK_STACK]: New structure.
15014 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
15015 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
15016 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
15017 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
15018 (mark_stack) [GC_MARK_STACK]: New functions.
15019 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
15020 (clear_marks): Removed.
15021 (gc_sweep): Set free conses' car, free floats' type, free
15022 symbols' function to Vdead. Use lisp_free to free buffers.
15023 (init_alloc_once): Initialize Vdead.
15024 (survives_gc_p): Return non-zero for pure objects.
15026 * alloc.c: Add comments throughout the file.
15028 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
15029 that unblocks alarms.
15031 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
15032 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
15033 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
15035 * frame.c (make_frame): Set frame initiallly to `garbaged'.
15037 2000-02-17 Kenichi Handa <handa@etl.go.jp>
15039 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
15040 avoid infinite error signaling. Allocate sufficient memory for
15041 eol_str in the case that eoltype is Lisp_Int.
15043 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
15045 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
15046 depends on the previous behavior.
15048 2000-02-16 Gerd Moellmann <gerd@gnu.org>
15050 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
15052 2000-02-15 Gerd Moellmann <gerd@gnu.org>
15054 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
15056 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
15057 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
15060 2000-02-15 Richard M. Stallman <rms@gnu.org>
15062 * data.c (set_internal): Don't make variable buffer-local
15063 if within a let-binding for the same buffer.
15064 (let_shadows_buffer_binding_p): New function.
15066 * eval.c (specbind): For buffer-local value,
15067 record the current buffer also.
15068 (unbind_to): Cope with that change.
15070 2000-02-15 Gerd Moellmann <gerd@gnu.org>
15072 * window.c (Fsave_window_excursion): Doc fix.
15074 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
15076 * syntax.c (back_comment): Make sure we only consider comment-starters
15077 of the relevant style and return -1 in case of a failure to find the
15078 beginning of the comment.
15079 (Fforward_comment): If back_comment fails, go back to the position just
15080 after the comment-end.
15081 (scan_lists): Add comment describing a very minor bug.
15083 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15085 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
15086 `completion-regexp-list' in the docstring.
15088 2000-02-14 Dave Love <fx@gnu.org>
15090 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
15092 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15094 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
15095 to Emacs' syntax. Also fix the comment about set/not-set meanings
15096 since Emacs syntax is not the value 0 any more.
15097 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
15098 since it's now part of RE_SYNTAX_EMACS.
15100 2000-02-12 Dave Love <fx@gnu.org>
15102 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
15104 2000-02-12 Gerd Moellmann <gerd@gnu.org>
15106 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
15108 2000-02-12 Dave Love <fx@gnu.org>
15110 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
15112 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
15113 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
15114 * s/hpux.h: Don't define HAVE_VFORK.
15116 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
15118 * s/nextstep.h: Don't define HAVE_ALLOCA.
15120 * config.in: Add vfork bits.
15122 2000-02-12 Gerd Moellmann <gerd@gnu.org>
15124 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
15125 unwind function to undo the effect of stopping atimers.
15127 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
15129 * atimer.c (stopped_atimers): New variable.
15130 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
15133 * atimer.h (stop_other_atimers, run_all_atimers)
15134 (unwind_stop_other_atimers): Add function prototypes.
15136 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
15138 2000-02-11 Ken Raeburn <raeburn@gnu.org>
15140 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
15141 library may depend on jpeg.
15142 (atimer.o): Depends on atimer.c.
15144 2000-02-11 Kenichi Handa <handa@etl.go.jp>
15146 * insdel.c (del_range_1): Call update_compositions.
15147 (del_range_both): Call update_compositions just once..
15149 2000-02-10 Dave Love <fx@gnu.org>
15151 * xfns.c (create_frame_xic): Fix initialization of automatic
15152 aggregates for pcc.
15154 2000-02-09 Kenichi Handa <handa@etl.go.jp>
15156 * ccl.c (CCL_MAKE_CHAR): New macro.
15157 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
15158 registers by CCL_MAKE_CHAR before calling translate_char.
15159 <CCL_TranslateCharacterConstTbl> Likewise.
15161 2000-02-08 Dave Love <fx@gnu.org>
15163 * lread.c (__EXTENSIONS__): Define.
15165 2000-02-08 Gerd Moellmann <gerd@gnu.org>
15167 * puresize.h (BASE_PURESIZE): Increase to 650000.
15169 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15171 * msdos.c (XMenuActivate): Turn off the cursor after displaying
15174 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15176 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
15177 md, mh, mb, mr, and me to the fake termcap entry.
15179 2000-02-06 Ken Raeburn <raeburn@gnu.org>
15181 * sound.c (sound_cleanup): Don't call device close routine if the
15182 function pointer is null.
15184 2000-02-06 Andrew Innes <andrewi@gnu.org>
15186 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
15187 around image definitions and prototypes.
15188 (gamma_correct) [WINDOWSNT]: New prototype.
15190 * w32term.c (x_make_frame_visible): Replace call to
15191 input_poll_signal with poll_for_input.
15193 * window.c [WINDOWSNT]: Include w32term.h.
15195 * xdisp.c [WINDOWSNT]: Include w32term.h.
15197 * makefile.nt: Add dependencies on w32gui.h.
15198 (OBJ1): Include atimer.obj.
15199 ($(BLD)\atimer.obj): New dependency rule.
15201 * w32.c (sigmask): New function (does nothing).
15202 (sigunblock): Ditto.
15204 * frame.c [WINDOWSNT]: Include w32term.h.
15206 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
15208 * lread.c (syms_of_lread): Fix literal newlines.
15210 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
15211 the string constant limit (2048 bytes) in MSVC.
15214 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
15216 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
15217 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
15218 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
15219 dispatch the event.
15221 2000-02-04 Dave Love <fx@gnu.org>
15223 * fileio.c: Remove some unused vars.
15224 (_GNU_SOURCE): Define (for euidaccess).
15226 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
15228 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
15230 (read_minibuf): Deal with allow_props correctly.
15232 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
15234 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
15236 2000-02-03 Ken Raeburn <raeburn@gnu.org>
15238 * search.c (compile_pattern): If a cache entry has a nil regexp,
15239 fill in that entry instead of clobbering a previously cached
15242 2000-02-02 Ken Raeburn <raeburn@gnu.org>
15244 * puresize.h (BASE_PURESIZE): Increase to 610000.
15246 2000-02-02 Gerd Moellmann <gerd@gnu.org>
15248 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
15251 2000-02-02 Kenichi Handa <handa@etl.go.jp>
15253 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
15254 instead of incrementing ic directly.
15255 <CCL_WriteExprConst> Likewise.
15256 <ccl_set_expr>: Set ic to jump_address.
15258 * fileio.c (e_write): Fix the handling of
15259 CODING_FINISH_INSUFFICIENT_SRC.
15261 2000-02-01 Dave Love <fx@gnu.org>
15263 * editfns.c (Fpropertize): Doc fix.
15265 * process.c (Fstart_process): Doc fix.
15267 * eval.c: Fix various doc strings not to duplicate information
15268 from help-manyarg-func-alist.
15270 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
15272 * doc.c (Vhelp_manyarg_func_alist): New variable.
15273 (Fdocumentation): Use it.
15274 (syms_of_doc): Define it.
15276 2000-01-31 Gerd Moellmann <gerd@gnu.org>
15278 * xterm.c (xim_open_dpy): Remove unused local variable.
15280 * emacs.c (USAGE): Use term `display options' instead of `X options'.
15282 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
15283 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
15285 * fns.c (sweep_weak_table): New function.
15286 (sweep_weak_hash_tables): Use it. Keep on marking until there
15289 2000-01-30 Gerd Moellmann <gerd@gnu.org>
15291 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
15292 that XTread_socket does not crash by trying to call XNoOp on a
15295 2000-01-30 Jason Rumney <jasonr@gnu.org>
15297 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15298 Change selected_frame to SELECTED_FRAME ().
15299 (w32_console_mouse_position): Remove #ifndef MULE from around
15300 `insist' parameter.
15302 * makefile.nt: Remove dosfns.obj.
15304 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
15306 * w32fns.c (w32_defined_color): Check for valid frame before
15307 applying gamma correction. Eliminate dependency on frame elsewhere.
15308 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
15309 (w32_to_x_font): Use resx and resy not height_in and width_in.
15310 (x_to_w32_font): Doc fix.
15311 (xlfd_strip_height): New function to strip and return font height.
15312 (w32_font_match): Compare height separately from rest of xlfd
15313 spec, using xlfd_strip_height.
15315 * w32term.c (w32_term_init): Swap resx and height_in, resy and
15316 width_in. Use w32_defined_color in place of defined_color.
15318 * w32faces.c: Merge more of DOS and X specifics in preparation for
15319 merge with xfaces.c.
15320 (defined_color): Remove FIXME comment.
15321 (tty_color_name): Provide w32-specific function.
15322 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
15324 * w32console.c (turn_on_face, turn_off_face): Removed.
15325 (w32_face_attributes): New function.
15326 (Global_variables): Reduce scope where possible.
15327 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
15329 (hl_mode): Don't modify text attributes.
15330 (write_glyphs): Don't do anything if len <= 0. Use
15331 w32_face_attributes to get attributes for drawing. Write
15332 terminating codes using char_attr_normal.
15333 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
15334 (update_begin, update_end): Likewise.
15335 (vga_stdcolor_name): New function.
15336 (initialize_w32_display): Remove char_attr_reverse and char_attr.
15337 (Fset_screen_color): Remove char_attr_reverse.
15339 2000-01-29 Gerd Moellmann <gerd@gnu.org>
15341 * xfns.c (xic_set_preeditarea): Take window parameter and
15342 window-relative pixel-positions.
15344 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
15345 is its frame's selected window.
15346 (xim_instantiate_callback): Likewise.
15348 * xfns.c (x_create_im): Removed.
15349 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
15350 (supported_xim_styles): Renamed from supported_styles.
15351 (best_xim_style): Renamed from best_style.
15352 (create_frame_xic): Renamed from xic_create_frame.
15353 (free_frame_xic): Renamed from xic_destroy_frame.
15355 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
15357 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
15358 our frames, call XFilterEvent with 2nd parameter `None'.
15359 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
15360 returning XBufferOverflow.
15361 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
15362 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
15363 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
15364 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
15365 (xim_initialize, xim_close)
15366 [HAVE_X_I18N && HAVE_X11R6]: New functions.
15367 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
15368 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
15369 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
15371 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
15373 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
15374 `xic_style' and `xic_xfs'.
15375 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
15376 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
15377 (FRAME_XIM): Removed.
15379 * xfns.c (supported_styles): New variable.
15380 (DEFAULT_STYLE, DEFAULT_FONT): New macros
15381 (xic_create_xfontset, best_style, xic_create_frame)
15382 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
15383 (xic_set_xfontset): New functions.
15385 2000-01-28 Dave Love <fx@gnu.org>
15387 * s/irix6-5.h: Revert last change after change to irix5-0.h.
15389 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
15391 2000-01-28 Gerd Moellmann <gerd@gnu.org>
15393 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
15394 for *scratch* if it already existed.
15396 * emacs.c (USAGE): New macro.
15397 (main): Use it to display usage information.
15399 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15401 Support for the menu-help feature:
15403 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
15405 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
15406 part of the line to the termscript file.
15407 (IT_clear_to_end): Clear the entire line, not just its beginning.
15408 (menu_help_message, prev_menu_help_message): New variables.
15409 (IT_menu_make_room): Make room for the help_text member.
15410 (IT_menu_display): New argument disp_help; all callers changed.
15411 If disp_help is non-zero, store the help text of the active menu
15412 item in menu_help_message.
15413 (XMenuAddPane): Initialize the help_text member to NULL.
15414 (XMenuAddSelection): New argument help_text. Store it in the
15416 (XMenuActivate): New argument help_callback. If the value of
15417 menu_help_message has changed since the last time, display the
15418 menu help message text while waiting for the mouse to move. Clear
15419 the echo area before exiting.
15420 (XMenuDestroy): Free the help_text member.
15422 2000-01-27 Gerd Moellmann <gerd@gnu.org>
15424 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
15425 XMenuAddSelection. Pass help callback to XMenuActivate.
15426 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
15428 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15430 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
15431 and EMACS_SET_USECS.
15433 2000-01-26 Dave Love <fx@gnu.org>
15435 * editfns.c (Fchar_after, Fchar_before): Doc fix.
15437 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
15438 an error may be signalled.
15440 2000-01-26 Gerd Moellmann <gerd@gnu.org>
15442 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
15443 LD_SWITCH_SYSTEM inherited from irix5-0.h.
15445 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
15447 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15449 * charset.c (Fstring): If there is a multibyte char among
15450 the args, always return a multibyte string.
15452 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15454 * sysdep.c (sys_select): Turn atimers off and on instead of
15455 recording and restoring old alarm handler
15457 * process.c (toplevel): Include atimer.h.
15458 (create_process_1): Rewritten.
15459 (create_process): Use atimers instead of alarm.
15460 (wait_reading_process_input) [hpux]: Turn atimers off instead
15461 of turning off SIGALRM.
15462 (wait_reading_process_input): Turn off atimers instead off
15463 calling stop_polling.
15465 * emacs.c (main): Call init_atimer.
15467 * keyboard.c (toplevel): Include systime.h and atimer.h.
15468 (polling_for_input): Removed because unused.
15469 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
15470 (poll_timer): New variable.
15471 (poll_for_input, poll_for_input_1): New functions.
15472 (start_polling, stop_polling): Rewritten.
15474 * keyboard.h (polling_for_input): Removed.
15476 * atimer.h, atimer.c: New files.
15478 * Makefile.in (obj): Add atimer.o.
15479 (atimer.o): New target.
15481 * blockinput.h (pending_atimers): Add extern declaration.
15482 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
15484 * lisp.h (popup_activated_flag): Add extern declaration.
15486 * xmenu.c (popup_activated_flag): Make externally visible.
15487 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
15488 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
15490 * xterm.c (toplevel): Include atimer.h.
15491 (toolkit_scroll_bar_interaction): New variable.
15492 (Fxt_process_timeouts): Removed.
15493 (x_process_timeouts): New function.
15494 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
15495 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
15496 (x_make_frame_visible): Call poll_for_input_1 instead of
15497 input_poll_signal. Don't call alarm.
15498 (x_initialize): Install timer calling x_process_timeouts.
15500 2000-01-24 Dave Love <fx@gnu.org>
15502 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
15503 Don't use -cckr -- apparently not now necessary.
15505 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
15507 * msdos.c (IT_menu_display): Truncate long menu lines at the right
15510 2000-01-23 Jason Rumney <jasonr@gnu.org>
15512 * w32fns.c (w32_defined_color): Apply gamma correction before
15513 trying to map to the palette.
15514 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
15517 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
15518 here. Callers changed to always pass real device context.
15519 (w32_draw_bitmap): Likewise.
15520 (w32_get_glyph_overhangs): Likewise.
15521 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
15522 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
15523 pfnSetScrollInfo and SetScrollRange.
15524 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
15525 back into MULE characters after decoding them.
15526 (x_get_glyph_face_and_encoding): Likewise.
15527 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
15528 GetCharABCWidthsW fails, since this is defined on Windows 9x.
15529 (x_produce_glyphs): Calculate per char metrics for a character
15530 that we know exists in default font when font_not_found_p is true.
15532 2000-01-22 Jason Rumney <jasonr@gnu.org>
15534 * makefile.nt (intervals.obj, composite.obj): New modules.
15535 (composite.h): Added as dependency where appropriate.
15537 * w32gui.h (XGCValue): New struct for emulating X GCs.
15539 * w32term.h (XCharStruct): New struct for emulating X.
15541 * w32console.c (turn_on_face, turn_off_face): New functions.
15542 (change_line_highlight): New prototype for new redisplay.
15543 (write_glyphs): Support multibyte text. Support faces.
15545 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
15547 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
15548 throughout. struct frame * in place of FRAME_PTR.
15549 Skeleton support for images, toolbars, tooltips from xfns.c.
15550 (Fx_create_frame): Use system default for default scroll bar width.
15551 (w32_get_arg): Renamed from x_get_arg.
15552 (Fx_file_dialog): New function.
15553 (w32_list_fonts): Check cache before asking system.
15554 (Vw32_enable_synthesized_fonts): New variable.
15555 (Vw32_enable_italics): Obsolete, removed.
15557 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15558 Use SELECTED_FRAME macro.
15560 * w32menu.c: Add skeleton support for help strings on menus.
15561 (add_menu_item): Native checkbox and radio support added, but not
15562 yet enabled due to bugs.
15563 (push_menu_item): Add parameters type, selection and help.
15565 Formatting changes to reduce unnecessary diffs with xmenu.c.
15567 * w32select.c (Fw32_set_clipboard_data): Update call to
15568 find_charset_in_str.
15570 * w32term.c: Complete rewrite for new redisplay based on new
15571 xterm.c with necessary sections merged back in from old w32term.c.
15573 2000-01-21 Richard M. Stallman <rms@gnu.org>
15575 * data.c (set_internal): Further fix in same criterion.
15577 2000-01-20 Richard M. Stallman <rms@gnu.org>
15579 * data.c (set_internal): Fix the criteria for whether
15580 to swap out the old cached binding.
15582 2000-01-19 Dave Love <fx@gnu.org>
15584 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
15586 2000-01-18 Kenichi Handa <handa@etl.go.jp>
15588 * regex.c (re_compile_fastmap): While checking a range table for
15589 `charset', skip flag bits for a character class correctly.
15591 2000-01-17 Gerd Moellmann <gerd@gnu.org>
15593 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
15595 * xfns.c (x_window): Call lw_create_widget with new parameter list.
15597 * widget.c (EmacsFrameSetCharSize): Change size of children first
15598 because of problems with main window geometry management under Lesstif.
15600 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
15601 MENU_ITEMS_ITEM_.*.
15602 (MENU_ITEMS_ITEM_HELP): New enumerator.
15603 (push_menu_item): Add parameter HELP. Record help in menu_items.
15604 (single_menu_item, single_submenu, list_of_items): Call
15605 push_menu_item with new parameter.
15606 (single_submenu): Set help string in widget value.
15607 (menu_highlight_callback): New function.
15608 (set_frame_menubar): Call lw_create_widget with new
15610 (xmenu_show, xdialog_show): Ditto.
15612 2000-01-13 Gerd Moellmann <gerd@gnu.org>
15614 * sound.c (Fplay_sound): Improve doc string.
15616 2000-01-11 Richard M. Stallman <rms@gnu.org>
15618 * lisp.h (set_internal): Enter the new arg.
15620 * eval.c (specbind): Record buffer-local variables specially,
15621 indicating which buffer's binding was saved.
15622 (unbind_to): Restore buffer-local variables specially
15623 in the proper buffer.
15625 * data.c (set_internal): New arg BUF.
15627 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
15628 * data.c (Fset): Pass new arg to set_internal.
15629 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
15631 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15633 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
15635 2000-01-11 Richard M. Stallman <rms@gnu.org>
15637 * minibuf.c (Ftry_completion): Doc fix.
15639 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15641 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
15644 2000-01-11 Andreas Schwab <schwab@suse.de>
15646 * coding.c (code_convert_region): Initialize total_skip.
15648 2000-01-08 Dave Love <fx@gnu.org>
15650 * eval.c (Fuser_variable_p): Check customizability too.
15652 2000-01-07 Gerd Moellmann <gerd@gnu.org>
15654 * minibuf.c (Fcompleting_read): Doc fix.
15656 2000-01-05 Gerd Moellmann <gerd@gnu.org>
15658 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
15661 * xfns.c (x_create_im): New function to set IM and IC of a frame.
15662 Check that input style is supported before trying to create an
15664 (x_window): Call x_create_im.
15666 2000-01-04 Gerd Moellmann <gerd@gnu.org>
15668 * xfns.c (current_gif_memory_src): New variable.
15669 (gif_load): Record the address of the current memory source
15670 in current_gif_memory_src.
15671 (gif_read_from_memory): Use current_gif_memory_src.
15673 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
15674 macros statement form.
15676 * sound.c (struct sound): Renamed from struct sound_file.
15677 (struct sound): Add members `data' and `header_size'.
15678 (enum sound_attr): Add SOUND_DATA.
15679 (current_sound, current_sound_device): Variables renamed from
15680 sound_file and sound_device.
15681 (parse_sound): Parse :data.
15682 (parse_sound): Handle sound data in strings.
15683 (find_sound_type): Function renamed from find_sound_file_type.
15684 (wav_init, au_init): Fail if sound's header_size is smaller than
15685 needed header size.
15686 (wav_play, au_play): Play sounds from string data.
15688 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
15690 * lisp.h: Add prototype for allocate_string_data.
15692 * alloc.c (Fgarbage_collect): Return number of live and free strings.
15694 * alloc.c (mark_buffer): Remove code in #if 0.
15696 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
15697 (strings_consed): New variable.
15698 (allocate_string): Set it.
15699 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
15700 (Fmemory_use_counts): Return strings_consed. Use Flist.
15702 * alloc.c: General cleanup in comments etc. Remove conditional
15703 compilation for `standalone'.
15705 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
15707 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
15708 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
15709 (DONT_COPY_FLAG): Removed.
15710 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
15711 (struct sdata, struct sblock): New
15712 (struct string_block): Rewritten.
15713 (STRINGS_IN_STRING_BLOCK): New macro.
15714 (oldest_sblock, current_sblock, total_strings, total_free_strings)
15715 (large_sblocks, string_blocks, string_free_list): New variables.
15716 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
15717 (init_strings): Rewritten.
15718 (allocate_string, allocate_string_data, compact_small_strings)
15719 (free_large_strings, sweep_strings): New functions.
15720 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
15721 (struct string_block_head, current_string_block)
15722 (first_string_block, large_string_blocks, STRING_FULLSIZE)
15723 (STRING_PAD): Removed.
15724 (make_uninit_multibyte_string, make_pure_string): Rewritten.
15725 (Fgarbage_collect): Don't set mark bit in large strings.
15726 (mark_object): Mark strings differently. Mark symbol names
15728 (survives_gc_p): Test marked strings differently.
15729 (gc_sweep): Sweep strings differently, unmark strings in
15731 (compact_strings): Removed.
15733 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
15735 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
15736 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
15738 2000-01-04 Kenichi Handa <handa@etl.go.jp>
15740 * fileio.c (Finsert_file_contents): Signal error if visiting file
15741 in a non-empty buffer.
15743 * term.c (encode_terminal_code): Fix the previous change.
15745 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15747 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
15748 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
15750 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
15752 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15754 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
15755 need to test for MSDOS frames.
15757 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15759 * dosfns.c (unspecified_colors): Remove.
15760 (msdos_stdcolor_idx): Use global variables unspecified_fg and
15762 (msdos_stdcolor_name): Return strings for unspecified fore- and
15763 back-ground colors.
15765 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
15766 (syms_of_xfaces): Remove their staticpro's.
15767 (tty_color_name): Return Lisp strings for unspecified fore- and
15768 back-ground colors.
15769 (Finternal_set_lisp_face_attribute): Remove the special treatment
15770 for Qunspecified_{f,b}g.
15771 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
15773 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15775 * xdisp.c (reseat_at_next_visible_line_start): Position before
15776 newline only if ending up on a newline.
15777 (next_element_from_ellipsis): Return success. Handle case of
15778 displaying no ellipsis. Fix case of ellipsis defined in display table.
15779 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
15782 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15784 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
15785 (Fcolor_supported_p): Renamed from face-color-supported-p.
15787 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15789 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
15790 list of colors renamed to tty-defined-color-alist.
15791 (tty_color_name): Pass the frame to tty-color-by-index.
15792 (realize_tty_face): tty-color-alist is now a function which
15793 accepts the frame as argument.
15795 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
15797 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15799 * term.c (insert_glyphs): Pass glyph, not &glyph, to
15800 encode_terminal_code.
15802 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15804 * dispnew.c (mode_line_string): Support termcap frames as well.
15806 2000-01-01 Gerd Moellmann <gerd@gnu.org>
15808 * syntax.c (Fforward_word): Undo previous change.
15810 * editfns.c (Fconstrain_to_field): Don't constrain if
15811 inhibit-field-text-motion is non-nil.
15812 (Fline_beginning_position): Undo previous change.
15813 (Fline_end_position): Ditto.
15815 * syntax.c (Fforward_word): Notice field boundaries only if
15816 inhibit-field-text-motion is nil.
15818 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
15820 * editfns.c (Vinhibit_field_text_motion): New variable.
15821 (inhibit-field-text-motion): New DEFVAR_LISP.
15822 (Fline_beginning_position, Fline_end_position): Notice field
15823 boundaries only if inhibit-field-text-motion is nil.
15825 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
15826 All calls adjusted.
15827 (x_build_heuristic_mask): Likewise.
15828 (xbm_load_image_from_file): Change error output.
15829 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
15830 (gif_load, gs_load, x_kill_gs_process): Ditto.
15832 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
15833 color indices when accessing raster pixels.
15834 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
15835 one of :file or :data.
15836 (enum pbm_keyword_index): Add PBM_DATA.
15837 (pbm_format): Add :data.
15838 (pbm_image_p): Allow either :file or :data.
15839 (pbm_read_file): New function.
15840 (pbm_scan_number): Rewritten to read from string.
15841 (pbm_load): Support :data.
15843 See ChangeLog.8 for earlier changes.
15845 ;; Local Variables:
15846 ;; coding: iso-2022-7bit
15849 Copyright (C) 2001 Free Software Foundation, Inc.
15850 Copying and distribution of this file, with or without modification,
15851 are permitted provided the copyright notice and this notice are preserved.