1 2001-08-16 Gerd Moellmann <gerd@gnu.org>
3 * xrdb.c (SYSV): Don't define on Solaris 2.
4 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
6 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
7 of the screen line, not text line, containing IT's current
10 2001-08-15 Gerd Moellmann <gerd@gnu.org>
12 * window.c (window_scroll_pixel_based): Don't recenter if
13 PT is partially visible in the window.
15 * xterm.c (expose_window_tree, expose_window, expose_line): Return
16 1 when overwriting mouse-face.
17 (expose_frame): If mouse-face was overwritten, redo it.
19 * xfaces.c (x_update_menu_appearance): Don't call
20 set_frame_menubar, let the next redisplay do it.
22 2001-08-14 Andrew Innes <andrewi@gnu.org>
24 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
27 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
29 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
32 2001-08-14 Gerd Moellmann <gerd@gnu.org>
34 * xfaces.c (x_update_menu_appearance): Save and restore value of
35 interrupt_input_blocked.
37 2001-08-13 Gerd Moellmann <gerd@gnu.org>
39 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
40 a line start, move back to the line start.
42 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
43 exactly when a mini-buffer is active.
45 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
46 in units of 1/8 character on non window-system frames.
47 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
49 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
51 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
54 2001-08-09 Gerd Moellmann <gerd@gnu.org>
56 * keyboard.c (Vpre_help_message): New variable.
57 (syms_of_keyboard): Initialize and staticpro it.
58 (show_help_echo): Record current message before displaying a
59 help-echo, and restore that message when clearing the help.
61 * xfns.c (x_create_im): Remove prototype.
63 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
65 * dispnew.c (adjust_glyph_matrix): Undo last change.
67 2001-08-08 Gerd Moellmann <gerd@gnu.org>
69 * dispnew.c (adjust_glyph_matrix): In the optimization for
70 windows whose height has changed, disable partially visible
73 2001-08-07 Gerd Moellmann <gerd@gnu.org>
75 * window.c (Frecenter): If ARG < 0, and on a window system
76 frame, count in some empty lines when we can't move -ARG lines
79 * xdisp.c (start_display): Don't try to determine the continuation
80 lines width if lines are truncated. It's superfluous and leads to
81 incorrect results if POS is not visible in the window after
82 reseating the iterator at the previous line start.
84 2001-08-06 Gerd Moellmann <gerd@gnu.org>
86 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
88 2001-08-06 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
90 * alloc.c (init_stack): Remove declaration.
92 2001-08-03 Gerd Moellmann <gerd@gnu.org>
94 * keyboard.c (read_key_sequence): Check that key is an integer
95 before comparing it with quit_char.
96 (add_command_key): Use larger_vector.
97 (read_char_x_menu_prompt): Instead of converting symbol and
98 integer events into conses (EVENT . nil), use (EVENT . disabled)
99 which cannot be confused with valid events.
100 (read_char): When reading from Vunread_command_events, check for
101 events of the form (EVENT . disabled) instead of
104 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
105 a float, determine the max height from the frame's height.
107 2001-08-02 Gerd Moellmann <gerd@gnu.org>
109 * xdisp.c (redisplay_internal): Take message_cleared_p into
110 account only if minibuf_level == 0.
112 2001-08-01 Gerd Moellmann <gerd@gnu.org>
114 * xdisp.c (redisplay_internal): Add a check for the last
117 * xdisp.c (message_cleared_p): New variable.
118 (clear_message): Set message_cleared_p when clearing the current
120 (redisplay_internal): Look at message_cleared_p to capture
121 the case that the echo area should be cleared.
123 * keyboard.c (command_loop_1): Fix spelling of
124 resize_echo_area_exactly.
126 * dispextern.h (resize_echo_area_exactly): Fix typo in function
129 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
131 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
132 current matrix when the window gets smaller.
134 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
136 * print.c (strout): Cast the character passed to insert_char to
137 unsigned char, to avoid sign extension when it is promoted to int.
139 2001-07-31 Gerd Moellmann <gerd@gnu.org>
141 * fileio.c (Finsert_file_contents): Don't treat a return value
142 of 0 from emacs_read as an IO error.
144 2001-07-30 Gerd Moellmann <gerd@gnu.org>
146 * keyboard.c (abs): New macro.
147 (double_click_fuzz): New variable.
148 (make_lispy_event): Use it to determine what makes a double-click.
149 (syms_of_keyboard): DEFVAR_INT it.
151 * xmenu.c (set_frame_menubar): Take into account that
152 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
155 2001-07-27 Gerd Moellmann <gerd@gnu.org>
157 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
159 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
160 of row's visible height.
162 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
163 deal with the first overlay string having an image `display'
165 (try_window_reusing_current_matrix, compute_line_metrics): Fix
166 computation of row's visible height for the case that part of the
167 row is invisible above and part of the row is at the same time
168 invisible below the window.
170 2001-07-26 Gerd Moellmann <gerd@gnu.org>
172 * xfns.c (x-show-tip): Doc fix.
174 * xfns.c (Vx_max_tooltip_size): New variable.
175 (syms_of_xfns): DEFVAR_LISP it.
176 (Fx_show_tip): Set frame's window_width to the width of the
177 window. Use a maximum tooltip size specified by
178 Vx_max_tooltip_size, if that has valid contents.
179 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
181 2001-07-26 Andrew Innes <andrewi@gnu.org>
183 * w32term.c (x_display_list): New variable.
184 (w32_term_init): Set it.
186 * w32term.h (x_display_list): New extern.
188 2001-07-26 Gerd Moellmann <gerd@gnu.org>
190 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
191 is non-nil, instead of when redisplaying_p is non-zero. See
193 (mark_window_display_accurate_1): Add an assertion.
195 2001-07-25 Gerd Moellmann <gerd@gnu.org>
197 * dispextern.h (struct it): Increase size of ctl_chars to 16.
199 * xfns.c (Fx_file_dialog): Block/unblock input while processing
200 events so that we get a chance of processing expose events.
202 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
204 2001-07-24 Gerd Moellmann <gerd@gnu.org>
206 * xfns.c (valid_image_p): Protect better against invalid image
207 specifications. Previous code could signal an error.
209 2001-07-23 Gerd Moellmann <gerd@gnu.org>
211 * indent.c (current_column): Fix column computation in the
212 presence of display table entries.
213 (current_column_1, Fmove_to_column, compute_motion): Likewise.
215 * dispnew.c (adjust_glyph_matrix): In the optimization for
216 windows whose height has changed, use the new window height
217 to compute which rows to invalidate.
219 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
220 (MAX_10_EXP): New macro.
223 * coding.c (code_convert_region): Handle the multibyte case if
224 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
226 2001-07-20 Gerd Moellmann <gerd@gnu.org>
228 * dispextern.h (struct face): Change type of `stipple' to
231 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
233 2001-07-19 Gerd Moellmann <gerd@gnu.org>
235 * dispnew.c (update_window): Don't set the cursor at the end
236 of the update if display update has been paused.
238 * composite.h (syms_of_composite): Renamed from
241 2001-07-18 Ken Raeburn <raeburn@gnu.org>
243 * fns.c (Fset_char_table_default): Check that a charset is defined
244 before checking its dimension.
246 2001-07-17 Ken Raeburn <raeburn@gnu.org>
248 * coding.c (setup_coding_system): Don't do any designation based
249 on reg_bits if charset is not yet defined.
251 * lisp.h (XVECTOR): Verify correct object type before returning a
252 pointer, using eassert.
254 2001-07-17 Gerd Moellmann <gerd@gnu.org>
256 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]: Increase
257 to 4096 because of paste problems reported on GNU/Linux.
259 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
261 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
263 2001-07-16 Gerd Moellmann <gerd@gnu.org>
265 * fileio.c (unwind_read): Function removed.
266 (read_non_regular, read_non_regular_quit): New functions.
267 (Finsert_file_contents): When reading from non-regular files,
268 arrange to catch a `quit' and terminate the loop. Rearrange
269 code so that a `quit' when reading from a regular file doesn't
270 insert text in the buffer.
272 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
273 Clear faces afterwards.
274 (clear_font_table): Take a x_display_info parameter. Don't free
275 fonts being the default font of any frame on the given display.
277 2001-07-13 Gerd Moellmann <gerd@gnu.org>
279 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
280 instead of CHAR_STRING which can signal an error.
282 * charset.c (char_to_string_1): Extracted from char_to_string.
283 Return -1 instead of signaling an error.
284 (char_to_string): Use it.
286 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
288 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
290 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
291 is t, don't try to append anything to it.
293 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
295 * dired.c (file_name_completion): Pass dp->d_name to
296 Fstring_match, not elt, which is always nil here.
298 2001-07-12 Gerd Moellmann <gerd@gnu.org>
300 * xselect.c (x_decline_selection_request): Handle errors
301 caused by receivers that have vanished.
303 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
304 ignoring events on foreign windows in #if 0. Always dispatch
305 the event after checking it with x_handle_property_notify.
307 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
308 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
309 TRACE macros to facilitate debugging. Add additional trace statements.
310 (toplevel): Add prototypes for file-local functions.
311 (x_atom_to_symbol): Remove DPYINFO parameter.
313 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
315 * w32menu.c (menubar_selection_callback, w32_menu_show):
316 Initialize `entry' to nil.
317 (w32_dialog_show): Remove unused `save_wv' variable.
318 (name_is_separator): Recognize "--:foo" and "--foo-bar".
320 2001-07-11 Gerd Moellmann <gerd@gnu.org>
322 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
324 * fileio.c (unwind_read): Print a message when discarding inserted
325 text or switching the buffer to unibyte. Change parameter.
326 (Finsert_file_contents): Don't pass VISIT to unwind_read.
328 * fileio.c (unwind_read): New function.
329 (Finsert_file_contents): Record it as unwind-function for
330 the case that reading is interrupted by C-g.
332 2001-07-10 Gerd Moellmann <gerd@gnu.org>
334 * dispnew.c (update_window): Don't skip the header-line
335 update when scrolling_window returns 0.
337 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
339 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
340 for the case that x_decode_color signals an error.
342 * xdisp.c (add_to_log): Do nothing if called asynchronously.
344 2001-07-09 Gerd Moellmann <gerd@gnu.org>
346 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
347 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
350 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
352 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
353 doc string line for dos-timezone-offset.
355 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
356 inline assembly, to avoid compiler warnings.
357 (syms_of_msdos): Add \n\ at the end of a line in the doc string
358 line for dos-unsupported-char-glyph.
360 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
362 2001-07-05 Gerd Moellmann <gerd@gnu.org>
364 * sound.c: Include Emacs' header files with #include "...".
366 * eval.c (specbind): Additionally record the buffer that was
367 current when a buffer-local or frame-local variable was bound.
369 2001-07-04 Gerd Moellmann <gerd@gnu.org>
371 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
372 to unibyte characters in unibyte buffers.
374 2001-07-03 Gerd Moellmann <gerd@gnu.org>
376 * eval.c (specbind): If SYMBOL has a frame-local binding, record
377 the frame on the binding stack. Change format of entries for
378 local bindings on the binding stack to '(SYMBOL . WHERE)'.
379 (unbind_to): Handle unbinding a frame-local variable.
381 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
382 glyphs and truncation glyphs at the end of a row from its pixel width.
383 (dump_glyph_row): Print row's continuation_lines_width.
384 (try_window_id): Take the shortcut if ZV is visible in the
385 window, but there are actually no changes at ZV.
387 2001-07-02 Gerd Moellmann <gerd@gnu.org>
389 * xterm.h (x_free_dpy_colors): Add prototype.
391 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
392 right number of arguments.
394 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
395 ($(lwlibdir)TAGS): New target.
396 (TAGS): Fix dependency list.
398 * xterm.c (x_list_fonts): Make sure XFreeFont is called
401 2001-06-30 Gerd Moellmann <gerd@gnu.org>
403 * emacs.c (main): Remove extern declaration for sys_nerr, which
404 isn't used and causes a compilation error with GCC 3.0 on
407 2001-06-27 Gerd Moellmann <gerd@gnu.org>
409 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
410 SIGIO around the code where Xt might wait for a
411 ConfigureNotifyEvent.
412 (toplevel): Include <signal.h> and syssignal.h.
414 * sound.c (vox_configure, vox_close): Turn off atimers
417 2001-06-26 Gerd Moellmann <gerd@gnu.org>
419 * keyboard.c (read_char) <non_reread>: Record the previous idle
420 start time before calling timer_stop_idle.
421 (read_char) <reread_first>: After processing a help-echo event,
422 restore the previous idle start time.
424 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
425 the start of invisible text.
426 (setup_for_ellipsis): New function.
427 (next_overlay_string): After all overlay strings have been
428 processed, display an ellipsis if necessary.
429 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
430 (push_it): Initialize display_ellipsis_p on the iterator's stack.
432 * dispextern.h (struct iterator_stack_entry): Add member
435 2001-06-25 Gerd Moellmann <gerd@gnu.org>
437 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
438 on the value of the wait-for-wm frame parameter.
440 * xterm.h (struct x_output): Add member wait_for_wm.
442 * xfns.c (Qwait_for_wm): New variable.
443 (x_frame_parms): Add entry for `wait-for-wm".
444 (x_set_wait_for_wm): New function.
445 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
446 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
448 * xdisp.c (try_window_id) <all changes below window end>: Don't
449 take this shortcut if ZV is visible in the window.
450 (try_window_id): When checking for window start being in changed
451 text, don't check that the buffer's size has changed.
453 2001-06-23 Richard M. Stallman <rms@gnu.org>
455 * minibuf.c (Fcompleting_read): Doc fix.
457 2001-06-19 Gerd Moellmann <gerd@gnu.org>
459 * composite.c (Ffind_composition_internal): Accept ZV
460 and a string's end position as POS.
462 2001-06-18 Gerd Moellmann <gerd@gnu.org>
464 * composite.c (Ffind_composition_internal): Check POS
467 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
469 * editfns.c (Fmessage_box): If the frame is not under a window
470 system, output the message in the echo area.
472 2001-06-14 Richard M. Stallman <rms@gnu.org>
474 * xdisp.c (try_window_id): When EOB is visible, don't treat
475 insertion at EOB as if it were "off the bottom of the screen."
477 2001-06-11 Andrew Innes <andrewi@gnu.org>
479 * w32proc.c (create_child): Add new parameter is_gui_app.
480 (w32_executable_type): Add new parameter is_gui_app.
481 (sys_spawnve): Use it.
482 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
483 SIGQUIT. This matches better how the signals are interpreted by
484 MSVC compiled programs.
485 (syms_of_ntproc): Update docstring.
487 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
489 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
490 well otherwise note_mouse_highlight might optimize away highlighting
491 if we pass over that same overlay again.
493 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
495 * lread.c (Fload): Document that the argument is run via
496 substitute-in-file-name.
498 2001-05-31 Gerd Moellmann <gerd@gnu.org>
500 * Makefile.in (bootstrap-doc): New target.
501 (bootstrap-emacs): Depend on it.
503 * fileio.c (Fdo_auto_save): Don't try to create the directory of
504 auto-save-list-file-name when shutting down Emacs, because
505 creating the directory might signal an error, and leaves
506 Emacs in a strange state.
508 * term.c: (tty_cursor_hidden): New variable.
509 (update_begin): Don't call tty_hide_cursor. Clean up.
510 (update_end, set_terminal_window, set_scroll_region): Clean up.
511 (ring_bell, reset_terminal_modes): Clean up.
512 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
513 on tty_cursor_hidden.
514 (write_glyphs): Call tty_hide_cursor.
516 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
518 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
520 2001-05-30 Gerd Moellmann <gerd@gnu.org>
522 * xfns.c (enum image_value_type): New enumerator
523 IMAGE_STRING_OR_NIL_VALUE.
524 (parse_image_spec): Handle it.
525 (xbm_format, pbm_format): Use it for :foreground and :background.
526 (xbm_load, pbm_load): Check for nil color names.
528 * xterm.c (note_mouse_highlight): If an overlapping overlay
529 exists, but we find that we highlight the same overlay as before,
530 don't do the highlighting again.
532 2001-05-29 Gerd Moellmann <gerd@gnu.org>
534 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
535 Protect unibyte strings created by replacing their multibyte
536 equivalents in menu_items.
538 * keymap.c (Fsingle_key_description): NUL-terminate the string
539 buffer before calling build_string.
541 * callproc.c (Fcall_process): Deal with decode_coding returning
542 CODING_FINISH_INCONSISTENT_EOL.
544 2001-05-28 Gerd Moellmann <gerd@gnu.org>
546 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
547 an item's name with its key description in case the description
548 is a multibyte string.
550 * keymap.c (Fsingle_key_description): Create a multibyte string
553 * macros.c (Fstart_kbd_macro): Doc fix.
555 * xterm.c (cursor_in_mouse_face_p): New function.
556 (x_draw_stretch_glyph_string): Use it to choose a different GC
557 when drawing a cursor within highlighted text.
559 * editfns.c (char_property_eq): Put in #if 0.
561 * indent.c (string_display_width): Put in #if 0.
563 * lread.c (Fload): Remove unused label.
565 * termcap.c (speeds): Put in #if 0.
567 2001-05-18 Gerd Moellmann <gerd@gnu.org>
569 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
571 * xfaces.c (xlfd_point_size): Don't divide pixel size from
572 transformation matrix by 10.
574 2001-05-16 Gerd Moellmann <gerd@gnu.org>
576 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
577 only if it's equal to the former foreground pixel color.
578 (x_set_foreground_color, x_set_background_color)
579 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
581 2001-05-16 Dave Love <fx@gnu.org>
583 * insdel.c (signal_before_change, signal_after_change): Consider a
584 local change hook which changes the buffer.
586 * process.c (read_process_output): Don't call signal_after_change
587 and update_compositions after insert_from_string_before_markers.
589 2001-05-16 Gerd Moellmann <gerd@gnu.org>
591 * xfaces.c (split_font_name): Use the right field when
592 checking for `[...]' syntax.
594 * buffer.c (copy_overlays): New function.
595 (clone_per_buffer_values): Use it.
597 * buffer.h (OVERLAY_PLIST): New macro.
599 * keymap.c (Fsingle_key_description): Replace a build_string with
600 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
602 * fontset.c (Ffontset_info): Check that face is non-null
603 before accessing its fields.
605 2001-05-15 Gerd Moellmann <gerd@gnu.org>
607 * keyboard.c (read_key_sequence): Prevent generating a fake
610 * xfaces.c (split_font_name): Handle `[...]' for the right
613 * ccl.c (ccl_driver): Don't copy remaining bytes in case
614 of CCL_STAT_INVALID_CMD.
616 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
618 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
619 in <var> has no default value yet.
621 * xfaces.c (try_alternative_families): First try the FAMILY.
622 And if nothing is found in the end, try again with scalable fonts.
623 (try_font_list): Let try_alternative_families do a bit more of
624 the work. Only use FAMILY if it is not nil.
625 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
627 2001-05-14 Gerd Moellmann <gerd@gnu.org>
629 * xterm.c (note_mouse_highlight): Avoid changing the mouse
630 pointer shape when show_mouse_face has already done it.
632 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
635 * xfaces.c (split_font_name): Make sure to leave the loop
636 with the right value of `i'.
638 * xfaces.c (split_font_name): Handle matrix transformations
639 in the pixel and point size fields of XLFD font names.
640 (xlfd_point_size): Likewise.
642 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
644 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
645 (x_to_w32_font): Add prototype.
647 * regex.c (malloc, realloc, free) [emacs]: Undefine before
648 redefining, to avoid compiler warnings.
650 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
652 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
653 (w32_get_bdf_glyph): Cast between unsigned char and char when
654 passing arguments to subroutines, to shut up compiler warnings.
655 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
658 * xfaces.c: Include keyboard.h before frame.h, not after it.
660 * widget.c: Include keyboard.h before frame.h.
662 * w32term.h (struct image, struct face): Forward declaration, to
663 avoid compiler warnings.
665 2001-05-11 Gerd Moellmann <gerd@gnu.org>
667 * keyboard.c (read_key_sequence): Don't modify events when
668 generating fake prefix keys (mode-line, scroll-bar, ...) since
669 this prevents proper processing of such events when pushed back
670 into unread-command-events.
672 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
673 actually redrawn. Make the function static.
674 (note_mouse_highlight): Fix a case where the mouse cursor
675 was changed back to the text cursor.
677 * xterm.h (clear_mouse_face): Remove prototype.
679 * xdisp.c (try_window_id): Fix the fix and set the right
682 * xdisp.c (try_window_id): Fix computation of window end in the
683 case that lines were deleted at the end of the window. Add some
684 more debug_method_adds.
686 * xfaces.c (try_alternative_families): New function.
687 (try_font_list): Use it. If ATTRS specifies a family, check
688 fonts from that family first.
689 (choose_face_font): Remove code setting the family part of
692 2001-05-10 Gerd Moellmann <gerd@gnu.org>
694 * xdisp.c (try_window_id): Fix case of all changes before
697 * xdisp.c (try_window_id): Add some xasserts.
699 2001-05-09 Gerd Moellmann <gerd@gnu.org>
701 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
703 2001-05-09 Dave Love <fx@gnu.org>
705 * xdisp.c (GIVE_UP): Fix for K&R C.
707 2001-05-09 Gerd Moellmann <gerd@gnu.org>
709 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
711 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
712 back to the text cursor shape without need.
714 2001-05-07 Gerd Moellmann <gerd@gnu.org>
716 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
718 * dispextern.h (inverse_video): Declare extern.
720 * keyboard.c (delete_kboard): Handle the case that selected_frame
721 has been deleted in the course of x_connection_closed.
723 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
725 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
726 Fix the change from 2001-04-30.
728 2001-05-03 Gerd Moellmann <gerd@gnu.org>
730 * xfns.c (file_dialog_unmap_cb): New function.
731 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
732 where a dialog is closed via the window manager.
734 * xdisp.c (try_window_id): Cases of changes all in front of
735 the window start or all below the window end mostly rewritten.
736 (redisplay_window): Move the tests if try_window_id is
737 applicable to try_window_id.
738 (GIVE_UP): New macro.
740 2001-05-02 Gerd Moellmann <gerd@gnu.org>
742 * xterm.c (expose_window): Return int. If W is the window
743 currently being updated, mark the frame garbaged.
744 Fix computation of rows intersecting the exposed rectangle.
745 (expose_window_tree): Stop when expose_window returns 0.
747 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
748 again if it has already been drawn.
750 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
752 * syntax.c (update_syntax_table): Check that oldi has the same
753 properties as old_prop before deciding not to invalidate.
755 2001-04-30 Gerd Moellmann <gerd@gnu.org>
757 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
758 read-only text that is so because of text properties.
760 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
761 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
762 windows that are components of a Lucid menu bar.
764 2001-04-27 Gerd Moellmann <gerd@gnu.org>
766 * term.c (turn_on_face): Fix reverse video handling on terminals
767 that don't support colors.
769 2001-04-26 Gerd Moellmann <gerd@gnu.org>
771 * editfns.c (save_excursion_restore): Don't use XBUFFER on
774 2001-04-25 Gerd Moellmann <gerd@gnu.org>
776 * term.c (toggle_highlight): New function.
777 (turn_on_face): Change handling of reverse video.
779 * process.c (wait_reading_process_input):
780 Call record_asynch_buffer_change only if a timer really changed buffers.
782 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
783 of the number of overlays to check.
785 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
787 * xdisp.c (try_window_id): Fix a case where window_end_pos
788 and window_end_bytepos were not adjusted.
790 2001-04-23 Gerd Moellmann <gerd@gnu.org>
792 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
795 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
797 * process.c (wait_reading_process_input) [!subprocesses]:
798 Don't reference waiting_for_user_input_p, it's not defined in the
799 branch without async subprocesses support.
801 2001-04-19 Gerd Moellmann <gerd@gnu.org>
803 * keyboard.c (delete_kboard): Prevent a dangling reference
804 from current_kboard to KB, which is freed.
806 * process.c (wait_reading_process_input):
807 Call record_asynch_buffer_change after running timers, to make
808 read_key_sequence aware of buffer changes from under it.
810 2001-04-18 Gerd Moellmann <gerd@gnu.org>
812 * xfaces.c (Qscalable_fonts_allowed): New variable.
813 (realizing_basic_faces_p): Removed.
814 (x_face_list_fonts): Special handling for realizing_basic_faces_p
816 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
817 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
818 for scalable-fonts-allowed to t.
820 * fileio.c (Finsert_file_contents): If the file size returned from
821 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
822 read from files on a procfs whose contents are generated dynamically.
824 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
826 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
827 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
828 (__memalign_hook): Make the two prototypes consistent.
830 2001-04-17 Gerd Moellmann <gerd@gnu.org>
832 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
833 matrix of mini-windows.
835 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
837 * intervals.c (find_interval): Don't rebalance during signal handling.
839 2001-04-11 Gerd Moellmann <gerd@gnu.org>
841 * fns.c: Include blockinput.h.
843 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
845 2001-04-10 Gerd Moellmann <gerd@gnu.org>
847 * fns.c (Fcompare_strings): Fix return values.
849 * window.c (window_scroll): Change the meaning of N to mean
850 N screen-fulls or N lines.
851 (window_scroll_pixel_based, window_scroll_line_based)
852 (scroll_command, Fscroll_other_window): Change accordingly.
854 * window.c (window_scroll_pixel_based, Frecenter):
855 Call window_box_height instead of using it.last_visible_y for the
856 height of the window.
858 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
859 instead of using it.last_visible_y for the height of the window.
861 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
862 From Dan Holmsand <dan@eyebee.com>.
864 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
865 able to write to hidden and system files. From Dan Holmsand
868 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
869 Holmsand <dan@eyebee.com>.
871 2001-04-09 Gerd Moellmann <gerd@gnu.org>
873 * fns.c (Fplist_get, Fplist_put): Add QUITs.
875 * window.c (window_internal_height): Return 1 less if the
876 window has a header line.
878 * xdisp.c (try_window_id): When scrolling on a terminal, take
879 the change of window_internal_height into account.
881 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
883 * gmalloc.c (align): If the argument SIZE would overflow
884 __malloc_ptrdiff_t, fail right away.
886 2001-04-06 Gerd Moellmann <gerd@gnu.org>
888 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
889 Make sure the tooltip is completely visible.
890 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
892 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
894 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
896 2001-04-06 Dave Love <fx@gnu.org>
898 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
901 2001-04-06 Gerd Moellmann <gerd@gnu.org>
903 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
905 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
907 2001-04-05 Gerd Moellmann <gerd@gnu.org>
909 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
911 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
913 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
914 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
916 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
917 shell widget's position only if it is non-null.
919 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
920 Set f->output_data.x->widget to null after destroying it.
922 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
923 FILENAME to bring it in synch with the documentation.
925 * xfaces.c (realizing_basic_faces_p): Renamed from
926 realize_default_face_p.
927 (realize_basic_faces): Set/clear realizing_basic_faces_p.
928 (realize_default_face): Don't set the flag.
930 2001-04-04 Gerd Moellmann <gerd@gnu.org>
932 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
934 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
936 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
937 the buffer that was used for echoing.
939 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
940 (first_font_matching): Removed unused function.
941 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
942 (may_use_scalable_font_p): Remove parameter FONT; rename
943 parameter NAME to FONT.
944 (x_face_list_fonts): Fix missing bounds check.
945 (realizing_default_face_p): New variable.
946 (realize_default_face): Set and clear that flag.
947 (x_face_list_fonts): When called during the realization of the
948 default face, and no matching fonts are found when ignoring
949 scalable fonts and fonts matching a regexp from
950 face-ignored-fonts, try without ignoring fonts.
952 2001-04-03 Gerd Moellmann <gerd@gnu.org>
954 * xfns.c (postprocess_image): New function.
955 (lookup_image): Call it for all image types except PostScript.
956 (x_kill_gs_process): Call postprocess_image.
958 * xterm.c (x_use_underline_position_properties): New variable.
959 (x_draw_glyph_string): Use it.
960 (syms_of_xterm): DEFVAR_BOOL it.
962 2001-04-02 Gerd Moellmann <gerd@gnu.org>
964 * xterm.c (x_alloc_nearest_color_1): New function.
965 (x_alloc_nearest_color): Use it.
966 (x_color_cells): Take a Display as argument, instead of a frame.
967 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
968 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
969 (x_initialize): Register cvt_string_to_pixel as resource converter
970 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
972 2001-03-30 Gerd Moellmann <gerd@gnu.org>
974 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
975 (set_iterator_to_next): If a string from a display property ends,
976 consider the case that this might also be the end of an
977 overlay string having the display property.
979 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
981 * xdisp.c (reseat_to_string): Undo last change.
983 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
984 matrix of a window when the header line changes, when
985 new rows are allocated, or when the width changes.
987 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
989 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
991 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
993 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
996 2001-03-29 Gerd Moellmann <gerd@gnu.org>
998 * data.c (Fsubr_interactive_form): New function.
999 (syms_of_data): Defsubr it.
1001 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
1002 (live_float_p, live_misc_p): Return 1 only if the offset of the
1003 pointer in its block is >= 0.
1005 2001-03-28 Paul Eggert <eggert@twinsun.com>
1007 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
1008 microseconds calcuation. Avoid double-rounding problem.
1009 In doc string, warn that the result is approximate.
1011 2001-03-28 Gerd Moellmann <gerd@gnu.org>
1013 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
1014 bind `inhibit-eval-during-redisplay' to t.
1016 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
1018 * xdisp.c (inhibit_eval_during_redisplay)
1019 (Qinhibit_eval_during_redisplay): New variables.
1020 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
1021 don't eval, return nil instead.
1022 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
1023 Initialize Qinhibit_eval_during_redisplay.
1025 * xdisp.c (reseat_to_string): If STRING is multibyte, set
1026 the iterator's multibyte_p flag.
1028 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
1029 instead of setting it to zero; it's incremented for each frame
1030 where the menu face is changed.
1032 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
1033 change bottom shadow accordingly.
1035 * xterm.c (expose_window_tree, expose_frame): Don't compute
1037 (expose_window): Do it here instead.
1038 (x_draw_glyph_string): Fix a computation of the underline position.
1040 * bytecode.c (BYTE_CODE_QUIT): New macro.
1041 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
1043 2001-03-27 Gerd Moellmann <gerd@gnu.org>
1045 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
1046 Give up if matrix starts in an ellipsis.
1047 (init_from_display_pos): Do nothing if POS doesn't specify
1048 a dpvec_index but the iterator has such a position.
1050 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
1052 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
1053 x/y position is (0, 0) after destroying the menu bar, restore
1054 its original position.
1056 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
1057 (init_from_display_pos): Use it.
1058 (try_window_reusing_current_matrix): Don't use cursor_row_p.
1060 2001-03-26 Gerd Moellmann <gerd@gnu.org>
1062 * xdisp.c (try_window_id): Undo last change.
1064 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
1066 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
1068 * buffer.c (syms_of_buffer): Doc fix.
1070 2001-03-26 Gerd Moellmann <gerd@gnu.org>
1072 * xfaces.c (x_update_menu_appearance): Use local variable
1073 popup_path for setting font resources.
1075 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
1077 * frame.c (Fframe_list): Don't reference tip_frame if
1078 HAVE_WINDOW_SYSTEM is not defined.
1080 * emacs.c (main): Update the copyright year. From Werner LEMBERG
1083 2001-03-25 Gerd Moellmann <gerd@gnu.org>
1085 * xdisp.c (init_from_display_pos): Test invisible property
1086 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
1088 * xdisp.c (redisplay_internal) <update one window>: Make sure
1089 last_arrow_position and last_arrow_string are set.
1091 * frame.c (Fframe_list): Don't return a tooltip frame.
1093 2001-03-23 Gerd Moellmann <gerd@gnu.org>
1095 * xdisp.c (mark_window_display_accurate_1): New function,
1096 extracted from mark_window_display_accurate.
1097 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
1098 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
1099 (mark_window_display_accurate): Use it.
1100 (redisplay_internal): Use it for the selected window.
1101 (redisplay_internal): Avoid duplicate mark_window_display_accurate
1102 for the selected frame.
1104 * xdisp.c Use make_number, for readability.
1105 (try_window_id): Disable rows below the window end.
1106 (try_window_reusing_current_matrix): Use cursor_row_p.
1107 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
1109 (init_from_display_pos): If POS specifies a position in a display
1110 vector, maybe get the iterator set up for that ellipsis.
1112 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
1114 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
1116 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
1118 2001-03-23 Gerd Moellmann <gerd@gnu.org>
1120 * xfaces.c (x_update_menu_appearance): Use a different path
1121 for Lucid popup menus.
1123 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
1125 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
1127 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
1128 (string_buffer_position): Use `make_number'.
1130 2001-03-22 Gerd Moellmann <gerd@gnu.org>
1132 * xfaces.c (x_update_menu_appearance): Renamed from
1133 x_set_menu_face_resources. Use different resources for popups.
1135 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
1136 (GC_CHECK_STRING_BYTES): Don't define.
1138 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
1139 Removed, together with subroutines.
1140 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
1141 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
1143 * dispextern.h (x_set_menu_resources_from_menu_face):
1146 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
1147 Remove calls to x_set_menu_resources_from_menu_face.
1149 * xfaces.c (xm_set_menu_resources_from_menu_face):
1150 Remove #ifndef LESSTIF_VERSION.
1152 * xmenu.c: Include widget.h.
1153 (single_submenu): Return int. Some cleanup.
1154 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
1156 2001-03-21 Gerd Moellmann <gerd@gnu.org>
1158 * xterm.c (x_update_window_end): Handle overwritten mouse face
1159 also for tool bar windows.
1160 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1161 DRAW is DRAW_IMAGE_RAISED.
1163 2001-03-20 Gerd Moellmann <gerd@gnu.org>
1165 * print.c (syms_of_print): Doc fixes.
1167 * fns.c (Fmd5): Doc fix.
1169 2001-03-19 Gerd Moellmann <gerd@gnu.org>
1171 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1172 Clear area of the frame not occupied by the scroll bar.
1174 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
1175 tip frame's root window buffer to *tip* right after creating
1178 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
1179 is an integer don't have to be for space characters.
1181 2001-03-16 Gerd Moellmann <gerd@gnu.org>
1183 * indent.c (current_column, current_column_1, Fmove_to_column)
1184 (compute_motion): Handle characters from display vectors differently.
1186 2001-03-15 Kenichi Handa <handa@etl.go.jp>
1188 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
1189 drawing glyph string.
1191 2001-03-15 Gerd Moellmann <gerd@gnu.org>
1193 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
1194 (command_loop_1): Undo last change.
1196 * xterm.c (fast_find_position): Return the correct vpos.
1198 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
1199 non-null, set a per-buffer value in BUF instead of the current buffer.
1200 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
1201 Call store_symval_forwarding with BUF null.
1202 (set_internal): Call store_symval_forwarding with the BUF
1203 parameter passed to set_internal. Formerly, the value was always
1204 set in the current buffer; the buffer recorded in specbind for
1205 this case wasn't used.
1206 (arith_driver): Reindent.
1208 * buffer.c (swap_out_buffer_local_variables):
1209 Call store_symval_forwarding with BUF null.
1211 * lisp.h (store_symval_forwarding): Change prototype.
1213 * eval.c (specbind): Call store_symval_forwarding with BUF null.
1215 2001-03-14 Gerd Moellmann <gerd@gnu.org>
1217 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
1218 FOR_DELETION. Avoid resizing the mini-window of the selected
1219 frame if FOR_DELETION is set.
1220 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
1221 (Fmake_frame_invisible): Change calls to do_switch_frame for new
1224 * window.c (Fset_window_configuration): Change call to
1225 do_switch_frame to new format.
1227 * keyboard.c (quit_throw_to_read_char): Change call to
1228 do_switch_frame to new format.
1230 * lisp.h (do_switch_frame): Change prototype.
1232 * frame.c (Fframe_parameters): In the `buffer-list' frame
1233 parameter, store the buffer list of FRAME, not the list of the
1236 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
1237 box just because the glyph row's full_width_p flag is set.
1239 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
1241 * xdisp.c (highlight_trailing_whitespace): On character terminals,
1242 skip the padding blanks inserted in extend_face_to_end_of_line,
1243 before checking for trailing whitespace.
1245 2001-03-13 Gerd Moellmann <gerd@gnu.org>
1247 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
1248 Remove special handling for LessTif/Motif.
1249 (toplevel): Don't include Xm/Xm.h.
1251 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
1252 Remove workaround code for LessTif; it doesn't work anymore.
1254 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
1257 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
1258 Don't access private scroll bar data; it's no longer necessary with
1259 contemporary LessTif.
1261 * xfaces.c (xm_set_menu_resources_from_menu_face):
1262 Change #if 0 to #ifndef LESSTIF_VERSION.
1264 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
1265 removing button grabs.
1267 2001-03-13 Kenichi Handa <handa@etl.go.jp>
1269 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
1270 and clip-large-size-font as obsolete.
1272 * lread.c (read_multibyte): Check the validity of multibyte
1273 sequence. If invalid, return the first byte.
1275 2001-03-12 Gerd Moellmann <gerd@gnu.org>
1277 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
1278 before running the command; timer functions or process
1279 filters may have set it.
1281 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
1283 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1286 2001-03-12 Gerd Moellmann <gerd@gnu.org>
1288 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
1291 2001-03-09 Gerd Moellmann <gerd@gnu.org>
1293 * dispextern.h (string_buffer_position): Add prototype.
1295 * xdisp.c (string_buffer_position, display_prop_string_p)
1296 (single_display_prop_string_p): New functions.
1298 * xterm.c (note_mouse_highlight): If there's no help-echo on
1299 a string, look at the buffer text ``under'' it.
1301 * keyboard.c (make_lispy_event): Add string info to the event,
1302 analogous to what's done on mode lines.
1303 (read_key_sequence): For a click on a string, consider `local-map'
1304 and `keymap' of that string.
1306 * keyboard.c (make_lispy_event, make_lispy_movement):
1307 Adjust calls to buffer_posn_from_coords to new format.
1309 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
1311 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
1314 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
1315 flags argument to emacs_open; it seems to conflict with O_EXCL.
1317 2001-03-09 Kenichi Handa <handa@etl.go.jp>
1319 * composite.h (struct composition): Change types of members;
1320 glyph_len to unsigned, width to unsigned short.
1322 2001-03-08 Andrew Innes <andrewi@gnu.org>
1324 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
1327 2001-03-08 Gerd Moellmann <gerd@gnu.org>
1329 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
1332 * xterm.c (note_mouse_highlight): Handle mouse-face and
1333 help-echo in strings.
1334 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1335 (fast_find_string_pos): New function.
1337 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
1338 (display_string): Call face_at_string_position with new parameter.
1340 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
1341 Handle `mouse-face'.
1343 * dispextern.h (face_at_string_position): Change prototype.
1345 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
1347 * keyboard.c (make_lispy_event): Avoid generating drag events
1348 if the mouse hasn't actually moved to another buffer position.
1350 2001-03-08 Dave Love <fx@gnu.org>
1352 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
1354 2001-03-08 Gerd Moellmann <gerd@gnu.org>
1356 * process.c (Fset_process_window_size): Fix a typo.
1358 2001-03-08 Kenichi Handa <handa@etl.go.jp>
1360 * coding.c (detect_coding_sjis): Do more rigid check.
1361 (detect_coding_big5): Likewise.
1362 (decode_coding_sjis_big5): Likewise.
1363 (Fdetect_coding_region): Call detect_coding_system with tailing
1364 anchor byte `\0' for more rigid detection.
1365 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
1366 (Fdetect_coding_string): Likewise.
1368 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
1370 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
1371 a string before extracting its data.
1373 2001-03-07 Gerd Moellmann <gerd@gnu.org>
1375 * window.c (Frecenter): Rewrite code handling negative values
1376 of ARG on graphical frames.
1378 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
1380 * window.c (displayed_window_lines): If W->start is outside the
1381 accessible portion of the buffer, call start_display with BEGV or
1382 ZV instead of W->start.
1384 2001-03-07 Gerd Moellmann <gerd@gnu.org>
1386 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
1388 * process.c (Fset_process_filter): Don't crash if the input
1389 file descriptor of PROCESS is closed.
1390 (Fset_process_window_size): Likewise.
1392 2001-03-06 Kenichi Handa <handa@etl.go.jp>
1394 * xterm.c (XTflash): Make the timeout of select shorter, and call
1395 select repeatedly until the desired time expires.
1397 2001-03-06 Gerd Moellmann <gerd@gnu.org>
1399 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
1401 * xfns.c (Fx_create_frame): Clear Vwindow_list.
1403 * lisp.h (Vwindow_list): Declare extern.
1405 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
1407 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
1409 2001-03-06 Gerd Moellmann <gerd@gnu.org>
1411 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
1412 to detect a case where we have to highlight a different region
1413 despite not having left the currently highlighted region.
1414 Set mouse_face_overlay in the x_display_info.
1415 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
1417 * xterm.h (struct x_display_info): Add mouse_face_overlay.
1419 * buffer.c (mouse_face_overlay_overlaps): New function.
1421 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
1422 (Qmouse_face): Declare extern.
1424 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
1425 if face_change_count is non-zero.
1427 2001-03-06 Kenichi Handa <handa@etl.go.jp>
1429 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
1430 that the source is unibyte.
1432 2001-03-05 Dave Love <fx@gnu.org>
1434 * xterm.c (XTmouse_position): Fix typo.
1436 2001-03-05 Gerd Moellmann <gerd@gnu.org>
1438 * minibuf.c (read_minibuf): Clean up the binding stack if
1439 called noninteractively.
1441 2001-03-05 Kenichi Handa <handa@etl.go.jp>
1443 * coding.c (syms_of_coding): Docstring modified.
1445 2001-03-05 Kenichi Handa <handa@etl.go.jp>
1447 * charset.c (char_to_string): If a single byte char has modifier
1448 bits that can't be reflected to the character code, ignore them
1449 instead of signaling an error.
1451 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
1453 * s/msdos.h: Update copyright notice.
1455 * dosfns.h: Update copyright notice.
1457 * dosfns.c: Update copyright notice.
1459 * msdos.c: Update copyright notice.
1461 2001-03-02 Gerd Moellmann <gerd@gnu.org>
1463 * xterm.c (glyph_rect): New function.
1464 (XTmouse_position): Use it to raise the threshold for mouse
1465 movement event generation.
1467 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1469 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
1470 specifies (reverse . t), reverse the initial screen colors.
1471 (IT_set_frame_parameters): If the property is foreground-color,
1472 but we are reversing the colors, set bg_set, not fg_set.
1473 Likewise for setting background-color and reversing: set fg_set.
1474 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
1477 * xfaces.c (Finternal_set_lisp_face_attribute)
1478 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
1481 2001-03-02 Gerd Moellmann <gerd@gnu.org>
1483 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
1484 to a single slash in the middle of file names.
1486 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
1487 Accept only alphanumeric time zone names.
1489 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
1491 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1492 a widget to zero height.
1494 2001-03-01 Gerd Moellmann <gerd@gnu.org>
1496 * window.c (Fwindow_end): Call move_it_past_eol only if
1497 ending up on a partially visible line.
1499 2001-03-01 Dave Love <fx@gnu.org>
1501 * ccl.c (Fccl_execute): Doc fix.
1503 2001-03-01 Gerd Moellmann <gerd@gnu.org>
1505 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
1506 of the tool bar before calling x_figure_window_size.
1508 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
1509 NULL after destroying it, otherwise XTread_socket can access a
1510 destroyed widget when input is unblocked.
1512 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
1514 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
1515 same name as before, although there was a change in fontsets.
1517 2001-02-28 Ken Raeburn <raeburn@gnu.org>
1519 * lisp.h (Fframe_parameter): Declare.
1521 * window.c (set_window_buffer): Field vscroll is an int, not a
1524 2001-02-28 Gerd Moellmann <gerd@gnu.org>
1526 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
1529 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
1532 * alloc.c (toplevel): Include process.h.
1533 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
1534 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
1535 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
1536 (allocate_vector, allocate_hash_table, allocate_window)
1537 (allocate_frame, allocate_process, allocate_other_vector):
1539 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
1540 (mark_maybe_pointer): New function.
1541 (mark_memory): Also mark Lisp data to which only pointers
1542 remain and not Lisp_Objects.
1543 (min_heap_address, max_heap_address): New variables.
1544 (mem_find): Return MEM_NIL if START is below min_heap_address or
1545 above max_heap_address.
1546 (mem_insert): Compute min_heap_address and max_heap_address.
1548 * process.c (make_process): Use allocate_process.
1550 * frame.c (make_frame): Use allocate_frame.
1552 * window.c (make_window, make_dummy_parent): Use allocate_window.
1553 (Fcurrent_window_configuration): Use allocate_other_vector.
1555 * lisp.h (allocate_vectorlike): Remove prototype.
1556 (allocate_vector, allocate_other_vector, allocate_frame)
1557 (allocate_window, allocate_process, allocate_hash_table):
1560 * fns.c (Fdelete, larger_vector): Use allocate_vector.
1561 (make_hash_table, copy_hash_table): Use allocate_hash_table.
1563 2001-02-27 Kenichi Handa <handa@etl.go.jp>
1565 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
1566 treat the produced bytes as a valid multibyte sequence.
1568 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
1569 (ccl_driver) <CCL_WriteMultibyteChar2>:
1570 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
1571 <ccl_finish>: Set ccl->eight_bit_control properly.
1573 * ccl.h (struct ccl_program): New member eight_bit_control.
1575 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
1577 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
1578 accessible_keymaps_char_table.
1579 (accessible_keymaps_char_table): Obey `is_metized'.
1580 (where_is_internal, Fwhere_is_internal): Don't confuse int and
1583 2001-02-26 Gerd Moellmann <gerd@gnu.org>
1585 * dispnew.c: Check HAVE_TERM_H before including term.h.
1587 2001-02-24 Andrew Innes <andrewi@gnu.org>
1589 * makefile.w32-in: Update copyright notice.
1591 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
1593 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
1595 2001-02-24 Kenichi Handa <handa@etl.go.jp>
1597 * Makefile.in (lisp): Add international/utf-8.elc.
1599 * fontset.c (Fnew_fontset): Fix handling of the case that an
1600 element of FONTLIST is a cons of family and registry.
1602 2001-02-23 Jason Rumney <jasonr@gnu.org>
1604 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
1605 to height unconditionally.
1607 * w32term.c (x_set_glyph_string_background_width): Extend the
1608 background face to the end of the drawing area in the text area, only.
1609 (x_insert_glyphs): Call window_box_left to obtain the left
1610 x-coordinate of the area to shift.
1612 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
1615 2001-02-22 Andrew Innes <andrewi@gnu.org>
1617 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
1618 ($(BLD)\dispnew.obj):
1619 ($(BLD)\editfns.obj):
1620 ($(BLD)\fileio.obj):
1621 ($(BLD)\filelock.obj):
1622 ($(BLD)\keyboard.obj):
1623 ($(BLD)\w32proc.obj):
1624 ($(BLD)\process.obj):
1625 ($(BLD)\sysdep.obj): Ditto.
1627 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
1629 ($(BLD)/dispnew.$(O)):
1630 ($(BLD)/editfns.$(O)):
1631 ($(BLD)/fileio.$(O)):
1632 ($(BLD)/filelock.$(O)):
1633 ($(BLD)/keyboard.$(O)):
1634 ($(BLD)/w32proc.$(O)):
1635 ($(BLD)/process.$(O)):
1636 ($(BLD)/sysdep.$(O)): Ditto.
1638 2001-02-22 Gerd Moellmann <gerd@gnu.org>
1640 * xdisp.c (forward_to_next_line_start): When taking the shortcut
1641 at the start of the function, check that the \n in it->c is
1642 from the iterator's current position.
1644 * xdisp.c (handle_single_display_prop): Add parameter
1645 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
1646 properties which replace the display of text with something else.
1647 (handle_display_prop): Call handle_single_display_prop with
1648 additional argument saying if we already replaced text display
1649 with something else. Use AREF.
1650 (with_echo_area_buffer_unwind_data, display_menu_bar)
1651 (decode_mode_spec_coding): Use AREF and ASIZE.
1653 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
1654 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
1655 * vmstime.h: Files removed.
1657 * unexencap.c, unexfx2800.c: Files removed.
1659 * dispnew.c (direct_output_for_insert): Give up if we are showing
1660 a message or just cleared the message because we might need to
1661 resize the echo area window or display an empty echo area.
1663 2001-02-21 Gerd Moellmann <gerd@gnu.org>
1665 * xdisp.c (redisplay_internal): Do the
1666 mark_window_display_accurate after all windows have been
1667 redisplayed because this call resets flags in buffers which are
1668 needed for proper redisplay.
1670 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
1671 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
1674 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1675 busy_window to hourglass_window, busy_p to hourglass_p.
1677 * msdos.h (struct x_output): Rename busy_window to
1678 hourglass_window, busy_p to hourglass_p.
1680 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1681 busy_window to hourglass_window, busy_p to hourglass_p.
1683 * xfns.c: Rename everything containing *busy_cursor* and similar
1685 (syms_of_w32fns): Rename x-busy-pointer-shape to
1686 x-hourglass-pointer-shape, display-busy-cursor to
1687 display-hourglass, busy-cursor-delay to hourglass-delay.
1689 * w32fns.c: Rename everything containing *busy_cursor* and similar
1691 (syms_of_w32fns): Rename x-busy-pointer-shape to
1692 x-hourglass-pointer-shape, display-busy-cursor to
1693 display-hourglass, busy-cursor-delay to hourglass-delay.
1695 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
1698 * dispextern.h (start_hourglass, cancel_hourglass)
1699 (display_hourglass_p): Renamed from *busy_cursor*.
1701 2001-02-20 Gerd Moellmann <gerd@gnu.org>
1703 * keyboard.c (read_char): When an event from unread-command-events
1704 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
1706 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
1707 equal to the current buffer.
1709 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
1710 nil, otherwise we're left with truncate_lines t when a message
1711 is printed with message-truncate-lines bound to t.
1713 2001-02-19 Gerd Moellmann <gerd@gnu.org>
1715 * window.c (Fmove_to_window_line): Undo last change.
1716 (displayed_window_lines): Call line_bottom_y to determine
1717 the line's bottom position.
1719 * dispextern.h (line_bottom_y): Add prototype.
1721 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
1722 (pos_visible_p): Use it.
1724 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
1725 set redisplaying_p to 0 here instead of in Frecursive_edit.
1726 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
1729 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
1731 (syms_of_xdisp): Initialize new variables.
1732 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
1733 Specbind `inhibit-menubar-update' when updating the menu bar.
1735 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
1738 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
1741 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
1744 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
1745 to the start of the file.
1747 2001-02-16 Gerd Moellmann <gerd@gnu.org>
1749 * window.c (set_window_buffer): Fix last change.
1751 * window.c (set_window_buffer): Set window's vscroll to 0.
1753 * window.c (coordinates_in_window): Increase width of area
1754 where the vertical line can be dragged.
1756 * xterm.c (x_set_glyph_string_background_width): Extend the
1757 background face to the end of the drawing area in the text
1760 * xdisp.c (handle_single_display_prop): Set iterator's position
1761 to where the `display' property starts, like for images.
1762 (dump_glyph): New function.
1763 (dump_glyph_row): Use it. Dump info about marginal areas.
1765 * dispnew.c (direct_output_for_insert): Recognize more cases where
1766 glyphs can be written instead of being inserted.
1768 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
1769 the left x-coordinate of the area to shift.
1771 * dired.c (directory_files_internal): Set result list to nil
1774 2001-02-15 Kenichi Handa <handa@etl.go.jp>
1776 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
1777 invalid multibyte sequence, treat *SRC as a character of
1780 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
1782 * textprop.c (Fset_text_properties): Doc fix.
1784 2001-02-15 Gerd Moellmann <gerd@gnu.org>
1786 * dispnew.c (update_text_area): Undo change of 2001-01-12.
1788 2001-02-14 Dave Love <fx@gnu.org>
1790 * coding.c: Doc and message fixes.
1792 2001-02-14 Andrew Innes <andrewi@gnu.org>
1794 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
1795 Emacs frame above the screen size.
1797 2001-02-14 Gerd Moellmann <gerd@gnu.org>
1799 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
1801 2001-02-13 Gerd Moellmann <gerd@gnu.org>
1803 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
1804 case that TO ends up beyond ZV after running before-change-functions.
1806 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
1807 the selected window if it is showing the buffer in question.
1809 * dired.c (directory_files_internal): Initialize errno.
1810 (toplevel): Include errno.h.
1812 2001-02-13 Kenichi Handa <handa@etl.go.jp>
1814 * xfaces.c (best_matching_font): New parameter width_ratio.
1815 Multiply avgwidth by width_ratio.
1816 (choose_face_font): Call best_matching_font with width_ratio
1817 calculated from the column width of C.
1819 2001-02-12 Andrew Innes <andrewi@gnu.org>
1821 The following changes are to draw box lines inside characters area
1822 if line-width is negative.
1824 * w32term.c (x_produce_image_glyph): Pay attention to the case that
1825 face->box_line_width is negative.
1826 (x_produce_stretch_glyph): Likewise.
1827 (x_produce_glyphs): Likewise.
1828 (x_estimate_mode_line_height): Likewise.
1829 (x_draw_glyph_string_background): Likewise.
1830 (x_draw_glyph_string_foreground): Likewise.
1831 (x_draw_composite_glyph_string_foreground): Likewise.
1832 (x_draw_glyph_string_box): Likewise.
1833 (x_draw_image_foreground): Likewise.
1834 (x_draw_image_relief): Likewise.
1835 (x_draw_image_foreground_1): Likewise.
1836 (x_draw_image_glyph_string): Likewise.
1838 2001-02-09 Kenichi Handa <handa@etl.go.jp>
1840 The following changes are to draw box lines inside characters area
1841 if line-width is negative.
1843 * xterm.c (x_produce_image_glyph): Pay attention to the case that
1844 face->box_line_width is negative.
1845 (x_produce_stretch_glyph): Likewise.
1846 (x_produce_glyphs): Likewise.
1847 (x_estimate_mode_line_height): Likewise.
1848 (x_draw_glyph_string_background): Likewise.
1849 (x_draw_glyph_string_foreground): Likewise.
1850 (x_draw_composite_glyph_string_foreground): Likewise.
1851 (x_draw_glyph_string_box): Likewise.
1852 (x_draw_image_foreground): Likewise.
1853 (x_draw_image_relief): Likewise.
1854 (x_draw_image_foreground_1): Likewise.
1855 (x_draw_image_glyph_string): Likewise.
1857 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
1858 and :line-width can be negative.
1859 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
1861 2001-02-09 Jason Rumney <jasonr@gnu.org>
1863 * w32term.c (w32_encode_char): Treat eight bit graphic and control
1864 characters the same as ASCII and latin-1.
1865 (x_display_and_set_cursor): Check for the focus frame's selected
1866 window instead of selected_window.
1867 (x_after_update_window_line): Don't clear if frame's internal
1868 border width is zero.
1869 (x_new_font): Don't change a tooltip's size.
1870 (w32_initialize): Set char_ins_del_ok to 1.
1872 * w32fns.c (Fx_show_tip): Fix calls to make_number.
1873 (x_set_font): If font hasn't changed, avoid recomputing
1874 faces and other things.
1875 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
1876 (Fx_create_frame): Add the tool bar height to the frame height.
1877 (x_create_tip_frame): Prevent changing the tooltip's
1878 background color by specifying a color for the default font
1880 (Qcancel_timer): New variable.
1881 (syms_of_w32fns): Initialize and staticpro it.
1882 (Fx_hide_tip, Fx_show_tip): Use it.
1883 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1885 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
1887 * w32.c (init_environment): Duplicate local string before putenv.
1889 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
1891 * charset.c (Fstring): A typo.
1893 2001-02-09 Kenichi Handa <handa@etl.go.jp>
1895 * charset.c (Fstring): If all arguments are less than 256, return
1898 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
1899 return a unibyte string.
1901 * coding.c (code_convert_region): After detecting a coding, if
1902 nothing found, set coding->composing to COMPOSITION_NO.
1903 (decode_coding_string): Likewise.
1905 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
1907 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
1910 2001-02-07 Kenichi Handa <handa@etl.go.jp>
1912 * charset.c (parse_str_to_multibyte): New function.
1914 * charset.h (parse_str_to_multibyte): Extern it.
1916 * print.c (print_string): If we are going to print a unibyte
1917 string into a multibyte buffer, convert the string to multibyte by
1920 2001-02-06 Andrew Innes <andrewi@gnu.org>
1922 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
1923 been created. It seems we can get sent window messages such as
1924 WM_ERASEBKGND before we properly update a frame.
1926 2001-02-06 Gerd Moellmann <gerd@gnu.org>
1928 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
1929 Avoid some unnecessary cursor positioning.
1931 2001-02-05 Gerd Moellmann <gerd@gnu.org>
1933 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
1934 (LFACE_AVGWIDTH): New macro.
1936 (check_lface_attrs): Check LFACE_AVGWIDTH.
1937 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1938 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
1939 (merge_face_vectors): Check LFACE_AVGWIDTH.
1940 (Finternal_make_lisp_face): Use AREF.
1941 (xm_set_menu_resources_from_menu_face)
1942 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
1943 (Finternal_lisp_face_empty_p): Use AREF.
1944 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
1945 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
1946 Compare average widths..
1947 (best_matching_font): Arrange for comparing average widths.
1949 * dispextern.h (enum lface_attribute_index):
1950 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
1952 2001-02-05 Dave Love <fx@gnu.org>
1954 * puresize.h: Revert last change following loadup.el change.
1956 2001-02-05 Andrew Innes <andrewi@gnu.org>
1958 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
1959 invocation of temacs, to work with Windows 2000.
1960 (bootstrap-emacs): Ditto.
1962 2001-02-05 Gerd Moellmann <gerd@gnu.org>
1964 * xterm.c (x_display_and_set_cursor): Check for the focus
1965 frame's selected window instead of selected_window.
1967 * xdisp.c (try_scrolling): If point is in the line below the
1968 window, make sure to move the iterator at least a canonical
1971 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
1973 2001-02-05 Kenichi Handa <handa@etl.go.jp>
1975 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
1976 If invalid, execute CCL_INVALID_CMD.
1977 (ccl_driver): If the CCL program is terminated because of
1978 CCL_STAT_INVALID_CMD, copy the remaining source data to the
1979 destination instead of throwing them away.
1981 2001-02-02 Gerd Moellmann <gerd@gnu.org>
1983 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
1984 faces and other things.
1986 * xdisp.c (get_next_display_element): Fix case of empty
1987 display table entry.
1989 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1991 * editfns.c (Fconstrain_to_field): Doc fix.
1993 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
1994 into `thoroughly', to make it consistent with the doc string.
1996 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
1998 2001-02-01 Gerd Moellmann <gerd@gnu.org>
2000 * search.c (search_buffer): Call set_search_regs with a byte
2001 position, not a character position.
2003 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
2006 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
2008 * frame.c (Fmodify_frame_parameters): Doc fix.
2010 2001-01-31 Gerd Moellmann <gerd@gnu.org>
2012 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
2013 identifier which is not reserved by Standard C.
2015 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
2017 * window.c (enum window_part): New enumeration.
2018 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
2020 (coordinates_in_window): Return an enumerator from enum
2021 window_part. Fix handling of right scroll bar.
2022 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
2023 `right-fringe' instead of `left-bitmap-area' and
2024 `right-bitmap-area'. Use enumerators from enum window_part
2025 instead of hard-coded integers.
2026 (check_window_containing, window_from_coordinates):
2027 Use enumerators from enum window_part instead of hard-coded integers.
2028 (syms_of_window): Replace Qleft_bitmap_area and
2029 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
2031 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
2033 * editfns.c (Fformat_time_string): Doc fix.
2035 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
2037 * keymap.c (Fwhere_is_internal): Use the first valid binding
2038 if no ascii binding is found (when firstonly is t).
2040 2001-01-31 Gerd Moellmann <gerd@gnu.org>
2042 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
2043 instead of Finteractive_p.
2045 * lisp.h (interactive_p): Add prototype.
2047 * eval.c (interactive_p): New function.
2048 (Finteractive_p): Use it.
2050 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
2052 2001-01-31 Dave Love <fx@gnu.org>
2054 * .gdbinit (hook-run): Define to run xreload.
2056 * textprop.c (Fset_text_properties): Fix newline in doc string.
2058 2001-01-30 Gerd Moellmann <gerd@gnu.org>
2060 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
2061 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
2063 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
2064 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
2065 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
2067 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
2070 2001-01-30 Dave Love <fx@gnu.org>
2072 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
2075 2001-01-29 Gerd Moellmann <gerd@gnu.org>
2077 * bytecode.c (Fbyte_code) <Bcurrent_column>:
2078 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
2080 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
2082 * textprop.c (Fset_text_properties): Doc fix.
2084 2001-01-29 Gerd Moellmann <gerd@gnu.org>
2086 * xdisp.c (forward_to_next_line_start): Remove xassert.
2088 2001-01-29 Jason Rumney <jasonr@gnu.org>
2090 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
2091 returning without releasing it.
2093 2001-01-29 Kenichi Handa <handa@etl.go.jp>
2095 * w32fns.c (w32_font_match): Allocate three more bytes to regex
2096 for '^', '$', and '\0'.
2098 2001-01-28 Andrew Choi <akochoi@i-cable.com>
2100 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
2101 regex for '^', '$', and '\0'.
2103 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
2104 only if current_sblock has been initialized.
2106 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
2107 terminal frame even if it is the only visible frame.
2109 2001-01-28 Kenichi Handa <handa@etl.go.jp>
2111 * fontset.c (font_family_registry): Even if FONTNAME conform to
2112 XLFD, if it specifies other fields than family and registry,
2113 return FONTANME. New argument FORCE if nonzero cancel that feature.
2114 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
2115 a signle byte character. Don't set FAMILY part to nil here.
2116 It is handled by the caller choose_face_font.
2117 (Fnew_fontset): Call font_family_registry with FORCE 0.
2118 (Fset_fontset_font): Likewise.
2120 2001-01-27 Gerd Moellmann <gerd@gnu.org>
2122 * xdisp.c (display_line): Don't treat a newline as fitting
2125 2001-01-26 Gerd Moellmann <gerd@gnu.org>
2127 * window.c (size_window): Set the window's orig_top to nil when
2128 changing heights, so that a future shrink_mini_window won't
2129 restore a bogus height.
2131 * frame.c (do_switch_frame): If selected frame has a mini-window,
2132 resize that to exact size.
2134 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
2136 * xdisp.c (display_line): Simplify check for glyphs fitting
2137 entirely in the line.
2139 * xfns.c (xic_style): New variable.
2140 (create_frame_xic): Move static variable to global scope for
2141 the case that `static' gets defined away.
2143 2001-01-26 Kenichi Handa <handa@etl.go.jp>
2145 * coding.c (decode_coding): Set a flag for inhibiting
2147 (code_convert_region): Always set saved_coding_symbol.
2148 (decode_coding_string): Likewise. Update coding->symbol when we
2149 encounter a inconsistent eol by the same way as code_convert_region.
2151 2001-01-25 Gerd Moellmann <gerd@gnu.org>
2153 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
2156 * xterm.c (x_after_update_window_line): Don't clear if frame's
2157 internal border width is zero.
2158 (x_clear_area): New function.
2159 (x_after_update_window_line, x_clear_end_of_line)
2160 (x_scroll_bar_create, x_scroll_bar_set_handle)
2161 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
2162 instead of XClearArea.
2164 * xterm.h (x_clear_area): Add prototype.
2166 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
2167 which doesn't seem necessary anymore with Lesstif 0.92.
2169 2001-01-25 Dave Love <fx@gnu.org>
2171 * puresize.h (BASE_PURESIZE): Up to 720000.
2173 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
2175 2001-01-25 Gerd Moellmann <gerd@gnu.org>
2177 * xdisp.c (echo_area_display): Don't call redisplay_internal
2178 when Emacs is shutting down. We can't run hooks etc. that
2179 would be necessary to do a redisplay.
2181 * lread.c (read_integer): Use type EMACS_INT instead of int.
2183 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
2185 * ccl.c (ccl_driver): Fix last change.
2187 2001-01-25 Kenichi Handa <handa@etl.go.jp>
2189 * ccl.h (sturct ccl_program): New member suppress_error.
2191 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
2192 insert error message to the output.
2193 (setup_ccl_program): Initialize ccl->suppress_error to 0.
2195 * coding.h (struct coding_system): New member suppress_error.
2197 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
2198 (Fset_terminal_coding_system_internal): Set the member
2199 suppress_error to 1.
2200 (Fset_safe_terminal_coding_system_internal): Likewise.
2202 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
2204 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
2205 as if it was a `charset'.
2207 2001-01-24 Gerd Moellmann <gerd@gnu.org>
2209 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
2210 value in where_is_cache; the next lookup in the cache returns
2211 something bogus if we do.
2213 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
2215 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
2216 if HAVE_WINDOW_SYSTEM isn't defined.
2218 2001-01-24 Gerd Moellmann <gerd@gnu.org>
2220 * fns.c (sweep_weak_table): Fix code taking items out of
2221 the hash collision chain. Some cleanup.
2223 * xterm.c (x_new_font): Don't change a tooltip's size.
2225 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
2226 background color by specifying a color for the default font
2229 2001-01-24 Kenichi Handa <handa@etl.go.jp>
2231 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
2232 a workaround for SunOS 4's cc.
2233 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
2234 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
2235 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
2238 2001-01-23 Gerd Moellmann <gerd@gnu.org>
2240 * xterm.c (x_set_window_size_1): New function extracted from
2242 (x_set_window_size): Use it.
2243 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
2244 doesn't have a widget, like tooltips.
2246 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
2248 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
2250 2001-01-23 Kenichi Handa <handa@etl.go.jp>
2252 * fns.c (Fset_char_table_default): Fix to make sub char-table
2255 2001-01-22 Gerd Moellmann <gerd@gnu.org>
2257 * xdisp.c (build_desired_tool_bar_string): Make sure we have
2258 a desired tool bar string, even if there are no tool bar items.
2260 * xdisp.c (Ftool_bar_lines_needed): New function.
2261 (syms_of_xdisp): Defsubr it.
2263 * editfns.c (Fformat): Don't extend text properties from arguments
2264 to padding chars in the result.
2266 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
2268 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
2270 2001-01-20 Andrew Innes <andrewi@gnu.org>
2272 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
2273 (w32_initialize): Don't set term hooks that aren't actually needed
2276 * xfaces.c (realize_default_face):
2278 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
2280 * xdisp.c (handle_single_display_prop): Remove references to
2281 FRAME_W32_CONSOLE_P.
2283 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
2285 * frame.h (output_method): Remove output_w32_console method.
2286 (FRAME_W32_CONSOLE_P): Remove macro.
2288 * frame.c (Qw32_console): Remove variable.
2289 (Fframep): Remove references to it.
2290 (syms_of_frame): Ditto.
2291 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
2293 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
2296 2001-01-20 Kenichi Handa <handa@etl.go.jp>
2298 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
2300 2001-01-19 Andrew Innes <andrewi@gnu.org>
2302 * w32.c (init_environment): Add a version-independent site-lisp
2303 directory to EMACSLOADPATH, after the version dependent one.
2305 2001-01-19 Gerd Moellmann <gerd@gnu.org>
2307 * editfns.c (Fbuffer_substring): Doc fix.
2309 * xdisp.c (message_dolog, message2, message2_nolog):
2310 Rename parameter LEN to NBYTES.
2312 2001-01-19 Kenichi Handa <handa@etl.go.jp>
2314 * charset.c (strwidth): Use c_string_width.
2315 (c_string_width): New function.
2316 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
2319 * charset.h (c_string_width, lisp_string_width): Extern them.
2321 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
2323 * indent.c (check_composition): Check validity of composition.
2325 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
2326 characters by calling c_string_width.
2327 (x_consider_frame_title): Get byte length of frame tile string
2329 (display_mode_element): Pay attention to width of non-ASCII
2330 characters by calling strwidth.
2332 2001-01-18 Gerd Moellmann <gerd@gnu.org>
2334 * xfns.c (Qcancel_timer): New variable.
2335 (syms_of_xfns): Initialize and staticpro it.
2336 (Fx_hide_tip, Fx_show_tip): Use it.
2337 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2339 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
2341 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
2343 * window.h (WINDOW_LIVE_P): New macro.
2345 * window.c (window_size_fixed): New variable.
2346 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
2349 * eval.c (specbind): If binding a per-buffer variable which
2350 doesn't have a buffer-local value in the current buffer, change
2351 the global value by changing the value of the symbol bound in all
2352 buffers not having their own value, to make it consistent with
2353 what happens with other buffer-local variables.
2355 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
2357 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
2358 when searching for a newline.
2360 2001-01-18 Kenichi Handa <handa@etl.go.jp>
2362 * xdisp.c (display_string): Fix previous change.
2364 2001-01-18 Jason Rumney <jasonr@gnu.org>
2366 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
2367 GLYPH_DEBUG is defined.
2368 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
2369 true for images with `:ascent 100'.
2370 (x_set_mouse_face_gc): If the last used mouse face has gone in the
2371 meantime, use face MOUSE_FACE_ID.
2372 If first glyph isn't a character glyph, use the ASCII NUL
2373 character to determine the face.
2374 (expose_area): Do not treat left margin specially.
2375 (note_mode_line_highlight): If no local_map, check global keymap.
2376 (note_mouse_highlight): Initialize overlay.
2377 (clear_mouse_face): Don't return if tip_frame is non-nil.
2378 (show_scroll_bars): Remove unused function.
2379 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
2380 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
2382 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
2383 (x_free_frame_resources): Unload relief colors.
2385 2001-01-17 Gerd Moellmann <gerd@gnu.org>
2387 * xdisp.c (forward_to_next_line_start): Avoid calling
2388 get_next_display_element when the newline is already found.
2389 This may change the iterator's position, when its current position is
2390 equal to the iterator's stop_charpos.
2392 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
2393 zero, use this method only at the end of a line.
2395 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
2396 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
2397 if SCALABLE_FONTS_P is set.
2399 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
2400 so that scalable fonts are included.
2402 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
2403 In the cache, use a key containing the information if scalable
2405 (x_load_font): Adapt to change of keys in the font cache.
2407 2001-01-17 Kim F. Storm <storm@filanet.dk>
2409 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
2410 XListFonts to take advantage of font caching.
2412 * xterm.c (x_list_fonts): Ensure caching font information when
2413 called for a null frame, which is the case frequently when Emacs
2416 2001-01-17 Gerd Moellmann <gerd@gnu.org>
2418 * xfns.c (QCconversion): Replaces QCalgorithm.
2420 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
2422 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
2425 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
2426 not everything could be displayed.
2428 * line.h, x-list-font.c: Files removed because unused.
2430 2001-01-17 Andrew Innes <andrewi@gnu.org>
2432 * dired.c (directory_files_internal): Convert result from readdir
2433 to a unibyte string initially, to avoid possible misinterpretation
2434 of some bytes as the internal form of Emacs characters.
2436 2001-01-17 Kenichi Handa <handa@etl.go.jp>
2438 * fns.c (concat): Be sure to avoid putting the same `composition'
2439 property on the adjacent regions.
2441 2001-01-16 Gerd Moellmann <gerd@gnu.org>
2443 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
2444 (Fscroll_right, Fscroll_left): Set it here instead, if called
2447 * buffer.c (Fset_buffer_modified_p): Set buffer's
2448 prevent_redisplay_optimizations_p flag.
2450 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
2451 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
2452 with additional arg.
2454 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
2457 * xdisp.c (redisplay_preserve_echo_area): Add parameter
2458 FROM_WHERE, for debugging.
2460 2001-01-16 Kenichi Handa <handa@etl.go.jp>
2462 * ccl.c (Fregister_ccl_program): Handle the return value of
2463 resolve_symbol_ccl_program correctly.
2464 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
2466 2001-01-15 Gerd Moellmann <gerd@gnu.org>
2468 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
2469 has gone in the meantime, use face MOUSE_FACE_ID.
2471 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
2472 If x_display_info_for_display returns null, don't try to close
2473 the display; we didn't open it.
2475 * dispnew.c (save_or_restore_current_matrices): Function removed.
2476 (save_current_matrix, restore_current_matrix): New functions.
2477 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
2478 restore the frame's current matrix. Due to the glyph pointer
2479 setup done in adjust_glyph_matrix, there is no easy way to make
2480 saving the current matrix in the desired matrix generally correct,
2483 2001-01-15 Kenichi Handa <handa@etl.go.jp>
2485 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
2487 (display_line): Optimize for wide characters.
2488 (display_string): Don't try to display a multi-column character
2489 partially. On ttys, produce more than one truncation glyph for
2490 multi-column characters that don't fit on the line.
2492 2001-01-13 Kenichi Handa <handa@etl.go.jp>
2494 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
2495 Define it instead of WORDS_BIGENDIAN. Caller changed.
2497 2001-01-13 Jason Rumney <jasonr@gnu.org>
2499 * w32fns.c (Fimage_size, image_ascent, lookup_image)
2500 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
2501 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2502 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
2504 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
2505 (x_draw_image_relief, x_draw_image_foreground_1)
2506 (x_draw_image_glyph_string): Adapt to change of image margins.
2508 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
2511 * w32bdf.c (search_file_line, get_cached_font_char)
2512 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
2514 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
2516 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
2517 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
2518 (Fw32_send_sys_command): Remove unused variables.
2519 (w32_msg_pump): Add parentheses.
2521 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
2522 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
2525 2001-01-12 Gerd Moellmann <gerd@gnu.org>
2527 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
2528 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
2529 being a pair of margins.
2530 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
2531 to DEFVAR_LISP. Extend doc.
2533 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
2535 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
2536 pair of integers `(X . Y)', use X for the horizontal and Y for the
2538 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
2539 (parse_image_spec): Check it.
2540 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2541 (tiff_format, gif_format, gs_format):
2542 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
2544 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2545 (x_draw_image_relief, x_draw_image_foreground_1)
2546 (x_draw_image_glyph_string): Adapt to the change of image margins.
2548 * dispextern.h (struct image): Replace member `margin' with
2549 `hmargin' and `vmargin'.
2551 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
2554 * dispnew.c (update_text_area): Put code which decrements the
2555 stop position when the row's face extends to the end of the
2558 * xfns.c (x_set_mouse_color): Fix color allocation.
2560 * keyboard.c: Call get_local_map with new argument list.
2562 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
2564 * intervals.h (enum map_property): Removed.
2565 (get_local_map): Change prototype.
2567 * keymap.c: Call get_local_map with new argument list.
2568 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
2570 2001-01-11 Gerd Moellmann <gerd@gnu.org>
2572 * xdisp.c (build_desired_tool_bar_string): Correct the computation
2573 of the size needed for the tool bar string. For the last image,
2574 use a `display' property that reaches to the end of the string.
2576 * xselect.c (selection_request_dpyinfo): New variable.
2577 (x_handle_selection_request): Set it.
2578 (x_selection_request_lisp_error): Don't call
2579 x_decline_selection_request if selection request's display has
2582 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
2583 Do the unregister_colors before calling XFreeColors.
2585 2001-01-10 Dave Love <fx@gnu.org>
2587 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
2588 ${SOME_MACHINE_LISP}, not ${lisp}.
2590 2001-01-10 Gerd Moellmann <gerd@gnu.org>
2592 * xdisp.c (display_line): On ttys, produce more than one truncation
2593 glyph for multi-column characters that don't fit on the line.
2595 * xselect.c (x_reply_selection_request): Add a comment.
2597 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
2598 XkbGetNames instead of XkbGetKeyboard.
2600 2001-01-10 Dave Love <fx@gnu.org>
2602 * sysdep.c (random): Revert the declaration.
2604 2001-01-09 Gerd Moellmann <gerd@gnu.org>
2606 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
2607 Call function string_bytes.
2608 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
2610 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
2611 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
2612 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
2613 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
2615 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
2616 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
2617 after sweeping strings, and at the end.
2618 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
2620 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
2621 ensure that pop_message is called.
2623 * keyboard.c (Fexecute_extended_command): Use a
2624 record_unwind_protect to ensure that pop_message is called.
2626 * lisp.h (push_message_unwind): Add prototype.
2628 * xdisp.c (push_message_unwind): New function.
2630 * fileio.c (do_auto_save_unwind): Do the pop_message here
2631 instead of in Fdo_auto_save.
2632 (Fdo_auto_save): Don't call pop_message.
2634 2001-01-08 Ken Raeburn <raeburn@gnu.org>
2636 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
2639 2001-01-08 Gerd Moellmann <gerd@gnu.org>
2641 * window.c (window_scroll_pixel_based): Adjust glyph matrices
2642 when increasing window's vscroll.
2644 * macros.c (Qkbd_macro_termination_hook): New variable.
2645 (syms_of_macros): Initialize and staticpro it.
2646 (pop_kbd_macro): Run kbd-macro-termination-hook.
2648 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
2650 2001-01-07 Dave Love <fx@gnu.org>
2652 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
2653 arglist, for documentation's sake.
2655 2001-01-06 Andrew Innes <andrewi@gnu.org>
2657 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
2660 2001-01-05 Andrew Innes <andrewi@gnu.org>
2662 * term.c (update_end): Don't check updating_frame; for some reason
2663 this can be 0 sometimes, such as after dismissing a popup menu,
2664 and isn't necessary given the explicit frame argument.
2666 2001-01-05 Gerd Moellmann <gerd@gnu.org>
2668 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
2669 on some systems, and an unsigned long on others, like FreeBSD 4.1.
2671 2001-01-04 Gerd Moellmann <gerd@gnu.org>
2673 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2675 * xfns.c (x_create_tip_frame): Preserve the value of
2676 face_change_count around the creation of the tip frame.
2678 * xfns.c (last_show_tip_args): New variable.
2679 (compute_tip_xy): New function.
2680 (Fx_show_tip): Reuse an existing tip frame, if possible.
2681 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
2683 2001-01-04 Dave Love <fx@gnu.org>
2685 * editfns.c (Fformat): Doc fix.
2687 * systime.h (set_file_times): Prototype.
2689 * widget.h (EmacsFrameSetCharSize_): Prototype.
2691 * sysdep.c (random, srandom): Declare explicitly.
2693 * dispextern.h (move_it_vertically_backward): Declare.
2695 2001-01-04 Gerd Moellmann <gerd@gnu.org>
2697 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
2698 like in Fx_create_frame.
2700 * xfaces.c (set_font_frame_param): Don't do anything for
2701 non-graphical frames.
2703 * window.c (Fdelete_other_windows): Set window's window_end_valid
2704 to nil when changing the window's start. Don't change the
2705 window's start when its top position hasn't changed. If we do,
2706 this will set the window's optional_new_start, which act's like a
2707 force_start during redisplay with C-x 1 M-> under particular
2708 circumstances (see report from Per Starback to emacs-pretest-bug
2711 2001-01-03 Gerd Moellmann <gerd@gnu.org>
2713 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
2714 short cut at the start of the function. Add an assertion.
2715 (reseat_at_next_visible_line_start): Add an assertion.
2717 * window.c (Frecenter): When changing the window start, set the
2718 window's window_end_valid to nil.
2719 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
2721 * dispextern.h (move_it_past_eol): Add prototype.
2723 * xdisp.c (move_it_past_eol): New function.
2725 * window.c (Fwindow_end): Doc fix.
2727 2001-01-03 Dave Love <fx@gnu.org>
2729 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
2731 2001-01-03 Gerd Moellmann <gerd@gnu.org>
2733 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
2734 the enabled_p flag of the glyph row at window_end_vpos to 0.
2735 (handle_single_display_prop): Fix last change.
2737 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2739 * window.c (Frecenter): Doc fix.
2741 2001-01-02 Andrew Innes <andrewi@gnu.org>
2743 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
2745 * frame.h (output_method): Add output_w32_console method.
2746 (FRAME_W32_CONSOLE_P): New macro.
2748 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
2749 use output_w32_console method.
2750 (Qw32_console): New Lisp_Object.
2751 (Fframep): Return it.
2752 (syms_of_frame): Init it.
2753 (Fframe_parameters): Report w32console as font for w32_console frames.
2755 * xfaces.c (realize_default_face): Set face foreground and
2756 background to unspecified for w32_console frames.
2757 (realize_face): Realize face cache for w32_console frames.
2758 (realize_tty_face): Accept w32_console frames.
2760 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
2761 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
2762 necessary, even if running interactively.
2764 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
2767 * w32term.c (x_update_begin):
2771 (x_change_line_highlight):
2776 (w32_reassert_line_highlight):
2777 (w32_frame_rehighlight):
2778 (w32_frame_raise_lower): Do nothing if not w32 frame.
2780 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
2782 * w32fns.c (Fx_display_color_cells): Determine correct value, when
2783 system doesn't tell us directly.
2784 (Fx_display_visual_class): Implement properly.
2786 2001-01-02 Gerd Moellmann <gerd@gnu.org>
2788 * window.c (Frecenter): Handle centering in graphical frames
2789 specially. Centering on the basis of line counts doesn't work
2790 reliably with variable-height lines.
2792 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2794 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
2797 * composite.c (run_composition_function): Remove unused var `val'.
2798 (update_compositions): Remove unused variable `hook'.
2800 * intervals.c (get_local_map): Remove unused variable `tem'.
2802 * doprnt.c (doprnt1): Remove unused variable `size'.
2804 * fns.c (Flength): Remove unused variable `tail'.
2805 (Fdelete): Remove unused variable `size'.
2807 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
2810 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
2812 * data.c (find_symbol_value): Remove extra 3rd argument in the
2813 call to swap_in_symval_forwarding.
2815 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
2817 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
2818 (trivial_regexp_p): Remove unused variable `c'.
2819 (boyer_moore): Remove unused variable `k'.
2821 * indent.c (current_column): Remove unused variable `stopchar'.
2822 (Fcompute_motion): Remove unused variable `contin'.
2824 * casefiddle.c (casify_object): Remove unused variable `tolen'.
2826 * dired.c (directory_files_internal): Fix a typo in a comment.
2827 Remove an unused variable `handler'.
2828 (file_name_completion): Remove unused function-scope variable `dp'.
2829 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
2832 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
2834 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
2836 (Fmarker_insertion_type): Remove unused variable `buf'.
2838 * insdel.c (make_gap): Remove unused variable `result'.
2840 * keyboard.c (record_char): Remove unused function-scope var `help'.
2841 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
2842 (menu_bar_items): Remove unused function-scope variable `tem'.
2844 * fontset.c (fontset_ref): Remove unused variable `i'.
2845 (fontset_set): Remove unused variables `j' and `tmp'.
2846 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
2847 (make_fontset_for_ascii_face): Remove unused variable `name'.
2848 (fs_load_font): Remove unused variable `font_idx'.
2849 (fs_query_fontset): Remove unused function-local variable `fontset'.
2850 (list_fontsets): Remove unused variable `tail'.
2851 (Fnew_fontset): Remove unused variables `family' and `registry'.
2852 (accumulate_font_info): Remove unused variable `tmp'.
2853 (Ffontset_font): Remove unused variable `id'.
2854 (syms_of_fontset): Remove unused variable `i'.
2856 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
2858 (lookup_image): Remove unused variable `file'.
2859 (xbm_load): Remove unused variables `bitmap_data', `height', and
2860 `width'. Remove function-local variable `i', leave the
2862 (gif_load): Remove unused variable `inc'.
2864 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
2865 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
2866 leave only the one in the inner block.
2868 * xfaces.c (face_fontset, realize_default_face): Remove unused
2870 (face_at_buffer_position): Remove unused variable `multibyte_p'.
2872 * term.c (encode_terminal_code): Remove unused variable `c'.
2874 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
2875 char *' instead of `char *'.
2877 * category.c (Fcategory_docstring): Remove unused variable `doc'.
2878 (Fget_unused_category): Remove unused variable `docstring_vector'.
2879 (Fchar_category_set): Remove unused variables `val', `charset',
2882 * coding.c (detect_coding_iso2022, setup_coding_system):
2883 Remove unused variable `i'.
2884 (detect_coding_mask): Remove unused variable `idx'.
2885 (detect_coding): Remove unused variable `i'.
2886 (ccl_coding_driver): Remove unused variable `result'.
2887 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
2888 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
2889 (encode_coding_string): Remove unused variables `gcpro1' and
2890 `saved_coding_symbol'.
2891 (Ffind_coding_systems_region_internal): Remove function-local
2892 variable args[], leave only the block-local one.
2893 (code_convert_region1): Remove unused variable `len'.
2895 * charset.c (char_printable_p): Remove unused variable `chars'.
2896 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
2897 (str_to_multibyte): Remove unused variable `c'.
2899 * window.c (size_window): Remove block-local variable `min_size'.
2901 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
2902 `header_line_height'.
2903 (append_space, extend_face_to_end_of_line): Declare `saved_what'
2904 enum display_element_type.
2906 2001-01-02 Gerd Moellmann <gerd@gnu.org>
2908 * xterm.c (x_connection_closed): Catch X errors around all
2909 statements that call X. Save away the error message in a local copy.
2911 * xterm.c (x_connection_closed): Set handling_signal to 0 at
2914 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
2915 in or at the start of invisible text.
2917 * dispnew.c (update_window): Don't check_current_matrix_flags.
2919 2001-01-01 Jason Rumney <jasonr@gnu.org>
2921 * w32fns.c (x_figure_window_size): Do not allow new_height and
2922 new_width of frame to override specified values.
2924 2000-12-30 Kenichi Handa <handa@etl.go.jp>
2926 * composite.c (find_composition): Fix a code for searching backward.
2928 2000-12-29 Gerd Moellmann <gerd@gnu.org>
2930 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
2931 (update_window) [GLYPH_DEBUG]: Call it.
2932 (scrolling_window): Prevent including current rows which are below
2933 what's displayed in the window.
2935 * xdisp.c (try_window_reusing_current_matrix)
2936 <new start <= old start>: Disable rows in the current matrix
2937 which are below the window after scrolling.
2939 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
2940 is zero. It's not worth the complexity.
2941 (invisible_text_between_p): Put in #if 0 because unused.
2943 2000-12-28 Gerd Moellmann <gerd@gnu.org>
2945 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
2946 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
2948 * keyboard.c (echo_char): If C is an integer, always call
2949 push_key_description. Former code could signal an invalid
2952 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
2953 If set, print multibyte text.
2954 (Fsingle_key_description): Call push_key_description with
2955 FORCE_MULTIBYTE set.
2956 (describe_buffer_bindings): Likewise.
2958 * lisp.h (push_key_description): Add prototype.
2960 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
2961 around the call to redisplay_internal.
2963 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2965 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2967 2000-12-28 Kenichi Handa <handa@etl.go.jp>
2969 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
2970 (ccl_driver): New local variable `extra_bytes'.
2972 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
2974 * coding.c (setup_coding_system):
2975 Initialize coding->spec.ccl.eight_bit_carryover.
2976 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2978 2000-12-28 Kenichi Handa <handa@etl.go.jp>
2980 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
2981 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
2982 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2983 (decode_composition_emacs_mule): New function.
2984 (decode_coding_emacs_mule): Decode composition sequence by calling
2985 decode_composition_emacs_mule.
2986 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
2987 (encode_coding_emacs_mule): Changed from macro to function.
2988 If a text contains compositions, encode them correctly.
2989 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2990 that decoding and encoding are required.
2992 2000-12-27 Gerd Moellmann <gerd@gnu.org>
2994 * xfaces.c (PT_PER_INCH): New macro.
2995 (xlfd_point_size): Compute real point size from font's pixel size.
2996 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2999 * .gdbinit: Comment out the line pointing to the Lesstif source
3002 * window.c (Frecenter): Use displayed_window_lines instead
3003 of window_internal_height.
3005 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3006 instead of x-toolkit-scroll-bars-p.
3007 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
3009 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3010 instead of x-toolkit-scroll-bars-p.
3011 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
3013 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
3014 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
3015 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
3017 (add_window_display_history, add_frame_display_history)
3018 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
3019 (build_frame_matrix_from_leaf_window): Remove unused code.
3020 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
3022 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
3023 (update_window) [GLYPH_DEBUG]: Likewise.
3024 (syms_of_display): Defsubr dump-redisplay-history.
3026 2000-12-23 Gerd Moellmann <gerd@gnu.org>
3028 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
3029 the end of the prompt. Set echo_after_prompt to the offset
3030 of echoptr in echobuf.
3032 * xdisp.c (init_from_display_pos): Pop until the iterator's
3033 stack is empty; there may be frames for stretch or images
3036 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
3037 (save_or_restore_current_matrix): New function for the same
3038 purpose, but more efficient.
3039 (adjust_frame_glyphs_for_frame_redisplay): Use it.
3041 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
3043 * xdisp.c (syms_of_xdisp): Fix last change.
3045 2000-12-23 Gerd Moellmann <gerd@gnu.org>
3047 * xdisp.c (syms_of_xdisp): Doc fix.
3049 * xdisp.c (redisplay_window): Remove label restore_buffers;
3050 use finish_scroll_bars instead to make sure that scroll bars
3051 are redeemed. If we don't do this, flickering can result from
3052 scroll bars being destroyed and recreated.
3054 2000-12-22 Jason Rumney <jasonr@gnu.org>
3056 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
3057 in the wrong colors when the foreground is not black.
3058 (expose_window): Don't redraw the window that's currently being
3061 2000-12-22 Gerd Moellmann <gerd@gnu.org>
3063 * window.c (size_window): When setting the window's too_small_ok
3064 flag, compare old size with minimum size depending on WIDTH_P,
3065 don't compare with window_min_width.
3067 * window.c (delete_window): Simplify somewhat.
3068 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
3069 freeing window matrices. The flag windows_or_buffers_changed is
3070 set, so the next redisplay will consider all windows; this should
3073 2000-12-22 Kenichi Handa <handa@etl.go.jp>
3075 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
3077 * ccl.h (struct ccl_program): New member cr_consumed.
3079 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
3080 (CCL_READ_CHAR): Handle EOL conversion here.
3081 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
3083 2000-12-21 Gerd Moellmann <gerd@gnu.org>
3085 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
3087 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
3088 otherwise tabs of different size compare equal.
3090 * callint.c (Fcall_interactively): Prevent a compiler warning.
3092 * print.c (print_unwind): Return nil.
3093 (PRINTDECLARE): Initialize all local variables.
3094 (print_preprocess): Add a default case.
3096 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
3098 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
3100 * window.c (delete_window, Fsplit_window)
3101 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
3103 * dispextern.h (ensure_frame_matrix): Function declaration removed.
3105 * dispnew.c (ensure_frame_matrix): Removed.
3106 (save_frame_matrix, restore_frame_matrix): New functions.
3107 (adjust_frame_glyphs_for_frame_redisplay): Use them.
3109 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
3110 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
3112 2000-12-21 Andrew Innes <andrewi@gnu.org>
3114 * w32term.c (x_update_begin): Regenerate the palette here, rather
3115 than for each window.
3117 * w32xfns.c (select_palette): Avoid calling SelectPalette if
3118 palette is NULL, since this corrupts memory! Also get
3119 display_info reference from frame.
3121 2000-12-21 Jason Rumney <jasonr@gnu.org>
3123 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
3125 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
3126 to avoid returning without releasing it.
3128 2000-12-21 Kenichi Handa <handa@etl.go.jp>
3130 * keymap.c (push_key_description): Don't convert eight-bit-control
3131 and eight-bit-graphic to multibyte character.
3133 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
3134 generic character and CODE1 is nil, return the smallest character
3137 2000-12-20 Dave Love <fx@gnu.org>
3139 * s/osf5-0.h (NSIG): Don't redefine.
3141 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
3143 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
3144 excluding menu-bar and tool-bar.
3145 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
3146 (menu_item_p): Remove.
3147 (where_is_internal_1): Don't ignore menu-items.
3149 2000-12-20 Gerd Moellmann <gerd@gnu.org>
3151 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
3154 * window.c (make_window): Initialize window's min_hscroll.
3155 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
3156 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
3158 (struct saved_window): New member min_hscroll.
3159 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
3160 (Fset_window_configuration): Set window's min_hscroll.
3161 (save_window_save): Save window's min_hscroll.
3162 (compare_window_configurations): Compare min_hscroll values.
3164 * window.h (struct window): New member min_hscroll.
3166 * keyboard.c (echo_prompt): Prevent a compiler warning.
3168 * xdisp.c (try_cursor_movement): Fix last change. The real
3169 condition is that PT is at the end of the row, and should
3170 be displayed at the start of the next row.
3172 * xdisp.c (try_cursor_movement): If we end on a partially
3173 visible line, end we already decided to scroll, return -1.
3175 * dispextern.h (ensure_frame_matrix): Add prototype.
3177 * window.c (delete_window, Fsplit_window)
3178 (Fset_window_configuration): Call ensure_frame_matrix.
3180 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
3182 (adjust_frame_glyphs_for_frame_redisplay): If display has been
3183 completed, call fake_current_matrices instead of marking frame
3186 2000-12-20 Jason Rumney <jasonr@gnu.org>
3188 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
3190 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3192 * fns.c (Frequire): Doc fix.
3194 2000-12-19 Gerd Moellmann <gerd@gnu.org>
3196 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
3198 * dispnew.c (direct_output_for_insert): Fix check for mini-window
3199 currently displaying a message.
3201 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
3203 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
3205 2000-12-18 Andrew Innes <andrewi@gnu.org>
3207 * w32.c (w32_strerror): New function.
3209 * w32.h (w32_strerror): New extern.
3211 * w32fns.c (Fw32_shell_execute): Use it.
3213 2000-12-18 Gerd Moellmann <gerd@gnu.org>
3215 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
3217 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3219 * msdos.c (IT_set_face): Obey inverse_video.
3221 2000-12-18 Kenichi Handa <handa@etl.go.jp>
3223 * dired.c (directory_files_internal): Always return decoded filenames.
3225 2000-12-18 Gerd Moellmann <gerd@gnu.org>
3227 * xterm.c (x_connection_closed): Prevent being called recursively
3228 because of an error condition in XtCloseDisplay.
3230 * xdisp.c (init_iterator): If noninteractive, and the frame's
3231 face cache is null, make one.
3233 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
3235 * process.c (wait_reading_process_input): Check for pending
3236 input when running timers.
3238 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3240 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
3242 2000-12-18 Kenichi Handa <handa@etl.go.jp>
3244 * process.c (read_process_output): Don't run a filter if the code
3245 decoder produces nothing but carryover.
3247 2000-12-17 Andrew Innes <andrewi@gnu.org>
3249 * w32.c (sys_rename): Only check errno against EEXIST, and not
3250 EACCES, when determining whether rename failed because the target
3251 exists. This was resulting in indefinite looping on Windows 9x if
3252 the source file was locked by another process.
3254 * w32fns.c (Ffile_system_info): New function.
3255 (syms_of_w32fns): Defsubr it.
3257 2000-12-17 Gerd Moellmann <gerd@gnu.org>
3259 * window.c (coordinates_in_window): Fix computation for
3260 position on vertical line between mode lines.
3262 * xfns.c (unwind_create_frame): Return t if frame was deleted.
3263 Don't alter tip_frame or tip_window.
3264 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3267 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
3268 Don't alter tip_frame or tip_window.
3269 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3272 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
3274 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
3275 be consistent with the doc string. Reported by NAKAJIMA Mikio
3276 <minakaji@osaka.email.ne.jp>.
3278 2000-12-16 Kenichi Handa <handa@etl.go.jp>
3280 * xfaces.c (Vface_ignored_fonts): New variable.
3281 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
3282 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
3284 2000-12-15 Gerd Moellmann <gerd@gnu.org>
3286 * dispnew.c (update_window): Detect pending input every nth line
3287 updated, i.e. do it depending on real work done, and not on the
3290 * xterm.c (expose_window): Don't redraw the window that's
3291 currently being updated.
3293 * window.c (Fset_window_point): Remove test for
3294 cursor_in_non_selected_windows.
3296 * lread.c (read1): Recognize end of file after `\\'.
3298 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
3299 not unwind_create_frame.
3301 2000-12-15 Dave Love <fx@gnu.org>
3303 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
3306 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
3308 2000-12-15 Kenichi Handa <handa@etl.go.jp>
3310 * coding.c (setup_coding_system): Clear all members of the struct
3311 coding_system at first.
3312 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
3314 (code_convert_region): Don't override coding->src_multibyte and
3315 coding->dst_multibyte.
3317 * fns.c (Fmd5): Docstring improved.
3319 2000-12-15 Miles Bader <miles@gnu.org>
3321 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
3322 are actually marked as mode-lines; otherwise use
3323 estimate_mode_line_height.
3325 2000-12-14 Gerd Moellmann <gerd@gnu.org>
3327 * editfns.c (Fformat): Prevent a buffer overrun when the format
3328 specifies a precision.
3330 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
3332 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
3333 argument is outside the range [2..3].
3335 2000-12-14 Andrew Innes <andrewi@gnu.org>
3337 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
3338 nothing to do. Bind inhibit-quit.
3339 (tip_frame): Make it a Lisp_Object.
3340 (x_create_tip_frame): Set tip_frame after it has been added to
3342 (Fx_show_tip): Don't set tip_frame here.
3343 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
3344 (unwind_create_frame, unwind_create_tip_frame): New functions.
3345 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3346 while a frame is only partially constructed.
3348 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3349 (x_free_frame_resources): New function.
3350 (x_destroy_window): Use it.
3352 2000-12-14 Gerd Moellmann <gerd@gnu.org>
3354 * xfns.c (Fx_backspace_delete_keys_p): New function.
3355 (syms_of_xfns): Defsubr it.
3357 * config.in (HAVE_XKBGETKEYBOARD): Add.
3359 2000-12-14 Kenichi Handa <handa@etl.go.jp>
3361 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
3362 Always store string in multibyte representation in echobuf.
3363 (echo_char): Always store string in multibyte representation in
3365 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
3366 (read_key_sequence): Adjusted for the change of echo_prompt.
3368 * fns.c (Fmd5): Docstring improved.
3370 * lisp.h (detect_coding_system): Prototype adjusted.
3372 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
3373 (detect_coding_emacs_mule, detect_coding_iso2022,)
3374 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
3375 (detect_coding_utf_16, detect_coding_ccl): Make them static.
3376 New argument MULTIBYTEP. Callers changed.
3377 (detect_coding_mask, detect_coding_system): New argument
3378 MULTIBYTEP. Callers changed.
3379 (decode_coding_string): Set coding->src_multibyte and
3380 coding->dst_multibyte before calling detect_coding and detect_eol.
3381 Update them after some coding system is detected.
3383 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
3385 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
3387 * keyboard.c (menu_bar_items, tool_bar_items):
3388 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
3390 2000-12-13 Gerd Moellmann <gerd@gnu.org>
3392 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
3394 (unwind_create_frame, unwind_create_tip_frame): New functions.
3395 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3396 while a frame is only partially constructed.
3398 * xterm.h (x_free_frame_resources): Declare.
3400 * xterm.c (x_free_frame_resources): New function.
3401 (x_destroy_window): Use it.
3403 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
3404 don't interrupt the update for pending input initially, i.e.
3405 update at least some lines.
3407 * keyboard.c (do_mouse_tracking): Make externally visible.
3409 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
3411 * xfns.c (gray_bitmap_bits): Declare `char *'.
3413 2000-12-12 Gerd Moellmann <gerd@gnu.org>
3415 * xdisp.c (display_tool_bar_line): Make sure that tool bar
3416 lines start with a relief line.
3418 2000-12-12 Dave Love <fx@gnu.org>
3420 * window.c (Fdisplay_buffer): Doc fix.
3421 (Fwindow_list): Remove unused var.
3423 * buffer.h (mmap_set_vars): Declare.
3425 * window.h (Fset_window_point): Declare.
3427 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
3429 * msdos.c (fast_find_position): Don't overstep the last window row.
3430 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
3431 variable `area'. When looking for a row under (X,Y), give up if some
3432 of the previous rows is not enabled.
3434 2000-12-12 Gerd Moellmann <gerd@gnu.org>
3436 * window.c (Fset_window_point): If displaying cursors in windows
3437 other than the selected window, make sure redisplay updates
3438 other windows to show the new value of point in the window.
3440 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
3442 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
3443 the buffer is the sole visible buffer when in the mini-buffer.
3445 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
3446 Bind `inhibit-read-only' to t.
3447 (unwind_with_echo_area_buffer): Use AREF.
3449 * xfns.c (Fx_hide_tip): Simplified.
3451 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
3454 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
3456 2000-12-11 Gerd Moellmann <gerd@gnu.org>
3458 * xfns.c (Fx_hide_tip): Fix last change.
3460 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
3461 nothing to do. Bind inhibit-quit.
3462 (tip_frame): Make it a Lisp_Object.
3463 (x_create_tip_frame): Set tip_frame after it has been added to
3465 (Fx_show_tip): Don't set tip_frame here.
3467 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3469 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
3472 * dispextern.h: Change external declaration of tip_frame.
3474 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
3475 return an empty string.
3477 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
3478 of the window's update_mode_line flag, since the former is set by
3479 force-mode-line-update, not the latter. This makes
3480 column-number-mode slightly faster.
3482 * xdisp.c (try_window_id) <all changes above window start>:
3485 2000-12-11 Paul Eggert <eggert@twinsun.com>
3487 * config.in (HAVE_FTELLO): Remove.
3489 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
3490 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
3492 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
3493 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
3495 2000-12-11 Miles Bader <miles@gnu.org>
3497 * window.c (displayed_window_lines): Don't round up when
3498 converting empty space at bottom to lines.
3499 Handle non-newline-terminated final lines properly.
3500 (Fwindow_text_height): New function (used to be in lisp).
3501 (syms_of_window): Initialize it.
3503 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
3505 * syntax.c (scan_lists): Check that the right quote char has the
3506 right Sstring syntax when jumping over strings.
3507 (init_syntax_once): Use Smax rather than 13.
3509 2000-12-09 Miles Bader <miles@gnu.org>
3511 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
3512 with PARTIALLY, inverting the sense.
3513 (window_scroll_pixel_based): Scroll partially visible lines into
3514 place if we hit the beginning or end of the buffer.
3515 (displayed_window_lines): Don't include partially visible lines.
3516 (Fmove_to_window_line): Skip past any partially visible first line.
3518 2000-12-08 Gerd Moellmann <gerd@gnu.org>
3520 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
3522 * tparam.c (tparam1): Change the way buffers are reallocated to be
3523 portable and less obfuscated.
3525 * termcap.c (tgetent): Change the way buffers are reallocated to
3526 be portable and less obfuscated.
3528 * macros.c (store_kbd_macro_char): Change the way buffers are
3529 reallocated to be portable and less obfuscated.
3531 * lread.c (read1): Change the way buffers are reallocated to be
3532 portable and less obfuscated.
3534 * doc.c (Fsubstitute_command_keys): Change the way buffers
3535 are reallocated so that it is portable.
3537 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
3539 * dosfns.c (Ffile_system_info): New function.
3540 (syms_of_dosfns): Defsubr it.
3542 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
3544 * alloc.c (gc_sweep): Add comment.
3546 2000-12-07 Gerd Moellmann <gerd@gnu.org>
3548 * sound.c (vox_configure): Change order of ioctls.
3549 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
3550 Ignore errors when changing volume.
3551 (vox_close): Don't reset the device.
3553 * process.c (read_process_output): Make sure the process marker's
3554 position is valid when the process buffer is changed in
3555 after-change functions. W3 does that.
3557 * xfns.c (x_free_gcs): New function.
3559 * xterm.h (x_free_gcs): Add prototype.
3561 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
3564 * xterm.c (x_destroy_window): Call x_free_gcs so that
3565 resources of non-toolkit X windows will be freed.
3567 2000-12-07 Andrew Innes <andrewi@gnu.org>
3569 * w32fns.c (xlfd_charset_of_font): Fix last change.
3571 2000-12-06 Dave Love <fx@gnu.org>
3573 * md5.h (__P): Don't define -- it comes from config.h.
3575 * strftime.c: Change some #if foo to #ifdef foo.
3577 2000-12-06 Andrew Innes <andrewi@gnu.org>
3579 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
3581 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
3582 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
3583 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
3585 2000-12-06 Gerd Moellmann <gerd@gnu.org>
3587 * alloc.c (gc_sweep): Prevent symbols read during loadup
3590 * xdisp.c (underlying_face_id): New function.
3591 (handle_face_prop, face_before_or_after_it_pos): Use it
3592 to determine the face ``under'' a string. Let strings inherit
3593 the face of the buffer under them.
3595 * xfaces.c (face_at_string_position): Update function comment.
3597 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
3598 matrix if the window's left position has changed; we need to
3599 redraw it in this case.
3601 * dispextern.h (struct glyph_matrix): Add member window_left_x.
3603 * window.c (coordinates_in_window): Check mouse on mode-line or
3606 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
3607 advertized by the function documentation.
3609 * window.c (syms_of_window): Doc fix.
3611 * sound.c (vox_configure): Set volume for left and right channel.
3612 (sound_cleanup): Return nil.
3614 * xdisp.c (move_it_by_lines): Fix paren typo.
3616 * xterm.c (x_load_font): Don't use the font's max_bounds for
3617 computing the height of the font. If max_bounds' ascent or
3618 descent are greater than the font's ascent or descent, this means
3619 glyphs overlap, which should be handled now by redisplay.
3621 * window.c (Veven_window_heights): New variable.
3622 (syms_of_window): DEFVAR_LISP it.
3623 (Fdisplay_buffer): Check Veven_window_heights before evening the
3626 2000-12-06 Miles Bader <miles@gnu.org>
3628 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
3629 update `default-frame-alist' instead of setting no frame parameters.
3631 2000-12-06 Kenichi Handa <handa@etl.go.jp>
3633 * composite.c (update_compositions): Fix typo (use the correct
3636 2000-12-05 Jason Rumney <jasonr@gnu.org>
3638 * md5.h: Remove underscores from function declarations.
3639 (__attribute__, __alignof__) [!__GNUC__]: Define.
3641 * md5.c: Delay include of md5.h until after namespace cleaning.
3643 * makefile.w32-in (fns.o): Depend on md5.h
3644 (md5.o): New target.
3647 * makefile.nt: Likewise.
3649 2000-12-05 Jason Rumney <jasonr@altavista.net>
3651 * w32term.c (expose_area): Complete last change.
3653 2000-12-05 Ken Raeburn <raeburn@gnu.org>
3655 * minibuf.c: Include intervals.h.
3657 2000-12-05 Jason Rumney <jasonr@gnu.org>
3659 * w32term.c (x_produce_glyphs): If a font for a component of
3660 a composition is not found, use 1 pixel dot ascent and 0 dot
3661 descent value to avoid displaying terribly tall empty boxes.
3662 (expose_area): Pass x-coordinate relative to the exposed
3663 area to x_draw_glyphs instead of a window-relative coordinate.
3665 2000-12-05 Gerd Moellmann <gerd@gnu.org>
3667 * xdisp.c (next_element_from_ellipsis): Save face before selective
3668 display in saved_face_id, and set face_before_selective_p.
3669 (reseat_1): Reset face_before_selective_p.
3670 (append_space, extend_face_to_end_of_line): If iterator's
3671 face_before_selective_p is set, use the face from saved_face_id.
3672 (extend_face_to_end_of_line): For tty frames, make sure to
3673 use the right face id when producing spaces at the end of
3676 * dispextern.h (struct it): Add face_before_selective_p.
3678 * keyboard.c (record_char): Don't record identical help-echo
3679 events in recent_keys.
3681 * xterm.c [USE_X_TOOLKIT]: Close the display.
3682 (xim_close_dpy): Handle case that the display has been closed.
3684 * xterm.c (x_destroy_window): Reset the frame's X window after
3687 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
3688 variable window_width.
3689 (line_draw_cost): Fix code skipping over spaces at the end of the
3690 line when must_write_spaces is not set.
3691 (scrolling_window): Fix code inserting runs in list of all runs.
3693 2000-12-05 Kenichi Handa <handa@etl.go.jp>
3695 * coding.c (setup_coding_system): Be sure to initialize
3696 coding->category_idx.
3698 2000-12-04 Gerd Moellmann <gerd@gnu.org>
3700 * xterm.c (PER_CHAR_METRIC): Removed because not used.
3702 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
3703 area to x_draw_glyphs instead of a window-relative coordinate.
3705 * fileio.c (auto_save_error): Add parameter ERROR. Show the
3706 error in the message.
3708 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
3709 timer after having read a key. It's not good for code reading
3710 several keys in a loop, like an input method.
3712 * fileio.c (Finsert_file_contents): When VISIT is t, don't
3713 record undo information for format-decode.
3715 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
3716 current buffer is read-only, not if it isn't.
3718 * keyboard.c (record_char): Record `help-echo' input events
3719 in recent_keys only if they display some help. Don't record
3720 `help-echo' events as macro char.
3722 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3724 * editfns.c (save_excursion_restore): Don't move point
3725 in another window if it is showing the wrong buffer.
3726 Avoid the call to Fwindow_live_p, for speed.
3728 2000-12-04 Kenichi Handa <handa@etl.go.jp>
3730 * xfaces.c (struct font_name): New member registry_priority.
3731 (split_font_name): Initialize the above member to zero.
3732 (concat_font_list): New function.
3733 (font_list): Include fonts of all alternative registries.
3734 (FONT_POINT_SIZE_QUANTUM): New macro.
3735 (better_font_p): Ignore point size difference less than
3736 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
3738 * xterm.c (x_produce_glyphs): If a font for a component of
3739 a composition is not found, use 1 pixel dot ascent and 0 dot
3740 descent value to avoid displaying terribly tall empty boxes.
3742 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
3744 2000-12-03 Ken Raeburn <raeburn@gnu.org>
3746 * coding.h (code_convert_string1): Declare.
3748 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
3750 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
3752 2000-12-02 Jason Rumney <jasonr@gnu.org>
3754 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
3755 correctly for single byte character case.
3756 (w32_per_char_metric): Do not try to make any assumptions about
3757 the metrics of BDF fonts.
3758 (x_estimate_mode_line_height): If `mode-line' face
3759 hasn't a font, use that of the frame, as drawing glyphs does.
3760 (note_mouse_highlight): Change the cursor shape on the vertical
3761 border between windows [not enabled].
3763 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
3765 * w32fns.c (Fx_create_frame): Reintroduce the call to
3766 face-set-after-frame-defaults.
3767 (Vx_window_horizontal_drag_shape): New variable.
3768 (syms_of_xfns): DEFVAR_LISP it.
3769 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
3772 2000-12-02 Simon Josefsson <simon@josefsson.org>
3774 * fns.c (Fmd5): Use a different logic to decide the coding system
3777 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
3779 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
3781 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
3783 2000-12-01 Gerd Moellmann <gerd@gnu.org>
3785 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
3786 height for YNegative.
3787 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
3788 height; also see comment there.
3790 * window.c (coordinates_in_window): Handle computations for
3791 positions on the vertical bar and fringes differently for
3792 window-system frames. Consider some pixels near the vertical bar
3793 as on the bar if the frame doesn't have vertical scroll bars.
3794 Associate positions between mode or header lines with the
3795 right window, the left one.
3797 2000-12-01 Jason Rumney <jasonr@gnu.org>
3799 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
3801 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
3804 2000-12-01 Gerd Moellmann <gerd@gnu.org>
3806 * window.c (struct saved_window): Add members orig_top and orig_height.
3807 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
3808 (save_window_save, Fset_window_configuration): Save/restore
3809 window's orig_top and orig_height.
3811 2000-12-01 Jason Rumney <jasonr@gnu.org>
3813 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
3815 * w32fns.c (x_set_cursor_color): Fix last change.
3817 2000-11-30 Gerd Moellmann <gerd@gnu.org>
3819 * xdisp.c (echo_area_display): If cursor is in the echo area, make
3820 sure that the next redisplay displays the minibuffer, so that
3821 the cursor will be replaced with what the minibuffer wants.
3823 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
3824 #ifndef instead of using #if.
3825 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
3826 USE_TOOLKIT_SCROLL_BARS is defined.
3828 2000-11-30 Jason Rumney <jasonr@gnu.org>
3830 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
3833 2000-11-30 Gerd Moellmann <gerd@gnu.org>
3835 * fns.c (Fmd5): Doc fix.
3837 2000-11-30 Simon Josefsson <simon@josefsson.org>
3839 * fns.c (Fmd5): New function.
3840 (syms_of_fns): Defsubr md5.
3842 * Makefile.in (obj): Add md5.o
3844 2000-11-30 Gerd Moellmann <gerd@gnu.org>
3846 * md5.h, md5.c: New files, taken from glibc.
3848 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
3850 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
3851 hasn't a font, use that of the frame, as drawing glyphs does.
3853 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
3855 * eval.c (Frun_hooks): Allow 0 arguments.
3857 2000-11-29 Gerd Moellmann <gerd@gnu.org>
3859 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
3860 is over the menu bar widget, say it's not on the frame.
3862 * xfns.c (Fx_create_frame): Reintroduce the call to
3863 face-set-after-frame-defaults.
3865 * eval.c (Fsignal): Reset handling_signal.
3867 2000-11-28 Jason Rumney <jasonr@gnu.org>
3869 * w32menu.c (add_menu_item): Reset menu item text when changing
3870 type to radio button.
3872 2000-11-28 Gerd Moellmann <gerd@gnu.org>
3874 * xselect.c: Update copyright.
3876 * window.c (coordinates_in_window): If on a mode or header line,
3877 but sufficiently close to its start, return ``on vertical
3878 border''. This gives us a way to drag windows horizontally when
3879 using toolkit scroll bars.
3881 * xterm.c (note_mouse_highlight): Change the cursor shape
3882 on the vertical border between windows.
3884 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
3886 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
3887 (syms_of_xfns): DEFVAR_LISP it.
3888 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
3890 * textprop.c (text_read_only): New function.
3891 (verify_interval_modification): Use it instead of signaling
3892 `text-read-only'. This makes it easier to catch this error
3895 * xdisp.c (forward_to_next_line_start): Check for newlines,
3896 not end of line, which includes CR.
3898 2000-11-28 Kenichi Handa <handa@etl.go.jp>
3900 * coding.c (Ffind_coding_systems_region_internal): Be sure to
3901 include no-conversion.
3903 2000-11-27 Jason Rumney <jasonr@gnu.org>
3905 * w32fns.c (w32_load_system_font): Always mark font as double byte
3906 if codepage is unicode.
3908 2000-11-27 Gerd Moellmann <gerd@gnu.org>
3910 * xdisp.c (forward_to_next_line_start): If already on a newline,
3911 just consume it to avoid unintended skipping over invisible text below.
3913 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
3914 `vertical-line', `mode-line' and `header-line' events.
3916 * xdisp.c (try_window_id): Avoid starting to display in the middle
3917 of a character, a TAB for instance. This is easier than to set
3918 up the iterator exactly, and it's not a frequent case, so the
3919 additional effort wouldn't really pay off.
3921 2000-11-26 Andrew Choi <akochoi@i-cable.com>
3923 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
3926 2000-11-25 Jason Rumney <jasonr@gnu.org>
3928 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
3929 Args to window_from_coordinates should be pixel coordinates.
3931 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
3932 redisplay handles them properly.
3934 2000-11-25 Miles Bader <miles@gnu.org>
3936 * indent.c (compute_motion): Keep pos_byte in sync with pos.
3938 2000-11-24 Jason Rumney <jasonr@gnu.org>
3940 * w32.c (init_environment): Set LANG environment variable based on
3941 locale settings, if not set.
3943 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
3944 making tool bar smaller. When clearing the frame, also
3945 clear current matrices. Clear frame when tool bar disappears.
3946 Don't use more lines for the tool-bar than is available.
3947 (x_change_window_heights): New function.
3949 2000-11-24 Gerd Moellmann <gerd@gnu.org>
3951 * xdisp.c (init_from_display_pos): If POS says we're already after
3952 an overlay string ending at POS, make sure to pop the iterator
3953 because it will be in front of that overlay string. When POS is
3954 ZV, we've thereby also ``processed'' overlay strings at ZV.
3956 * xfaces.c (lface_from_face_name): Function comment fix.
3958 2000-11-24 Miles Bader <miles@gnu.org>
3960 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
3961 apply `mode-line-inverse-video' -- zero means force display using
3962 the default face, non-zero means display using the specialized face.
3963 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
3965 2000-11-23 Kenichi Handa <handa@etl.go.jp>
3967 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
3970 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3972 * coding.c (decode_coding_emacs_mule): Fix the case of
3973 CODING_EOL_LF, which used uninitialized value of c.
3975 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3977 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3979 2000-11-22 Gerd Moellmann <gerd@gnu.org>
3981 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3984 * frame.h (struct frame): Replace desired_tool_bar_items,
3985 current_tool_bar_items, n_desired_tool_bar_items,
3986 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
3988 * frame.c (make_frame): Change initialization of tool bar
3991 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
3992 Change references to members deleted from struct frame to use the
3995 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
3996 references to members deleted from struct frame to use the new ones.
3998 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
4000 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
4002 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
4003 (note_tool_bar_highlight): Change references to members deleted
4004 from struct frame to use the new ones.
4006 2000-11-23 Miles Bader <miles@gnu.org>
4008 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
4009 the face's inverse-video attribute, rather than overriding it.
4011 2000-11-22 Gerd Moellmann <gerd@gnu.org>
4013 * xfns.c (x_set_tool_bar_lines): Clear internal border when
4014 making tool bar smaller.
4016 2000-11-22 Dave Love <fx@gnu.org>
4018 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
4020 2000-11-22 Miles Bader <miles@gnu.org>
4022 * keyboard.c (Vminibuffer_message_timeout): New variable.
4023 (command_loop_1): Use it to determine message timeout.
4024 (syms_of_keyboard): Initialize it.
4026 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
4028 2000-11-22 Kenichi Handa <handa@etl.go.jp>
4030 * sysdep.c: Move the code for declaring h_errno after #include
4033 2000-11-21 Gerd Moellmann <gerd@gnu.org>
4035 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
4036 the menu bar when the tooltip is unmapped.
4038 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
4039 sole visible buffer when we're currently in the mini-buffer, and
4042 2000-11-21 Jason Rumney <jasonr@gnu.org>
4044 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
4045 put on the clipboard.
4046 (Fw32_get_clipboard_data): Compare data on clipboard with saved
4047 copy of what Emacs last put there. If they are the same, do not
4048 use the clipboard copy to avoid losing data due to coding conversions.
4050 2000-11-22 Miles Bader <miles@gnu.org>
4052 * minibuf.c (Vminibuffer_prompt_properties): New variable.
4053 (syms_of_minibuf): Initialize it.
4054 (read_minibuf): Add properties from Vminibuffer_prompt_properties
4055 to prompt, don't make read-only.
4057 2000-11-21 Gerd Moellmann <gerd@gnu.org>
4059 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
4060 Add BEFORE/AFTER_POTENTIAL_GC.
4062 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
4064 * buffer.c (mmap_free_1): Avoid a compiler warning.
4066 * term.c, cm.c: Don't try to include termcap.h; see comment there.
4068 2000-11-21 Kenichi Handa <handa@etl.go.jp>
4070 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
4073 2000-11-20 Gerd Moellmann <gerd@gnu.org>
4075 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
4078 * s/gnu-linux.h: Don't use `#cpu'.
4080 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
4081 not defined in mman.h.
4083 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
4084 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
4085 and store an index in the XClientMessageEvent. Storing a
4086 Lisp_Object or pointer can fail on a 64 bit system, since X only
4088 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
4090 2000-11-20 Dave Love <fx@gnu.org>
4092 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
4094 2000-11-20 Gerd Moellmann <gerd@gnu.org>
4096 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
4098 2000-11-20 Kenichi Handa <handa@etl.go.jp>
4100 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
4103 * alloc.c (make_string): Fix previous change. Be sure to make
4104 unibyte string correctly.
4106 2000-11-19 Gerd Moellmann <gerd@gnu.org>
4108 * window.c (Fwindow_list): Change parameter list to be XEmacs
4110 (window_list_1): New function.
4111 (window_loop): Use it instead of Fwindow_list.
4113 * sysdep.c (emacs_ospeed): New variable.
4114 (toplevel): Don't declare ospeed extern.
4115 (init_baud_rate): Use emacs_ospeed instead of ospeed.
4117 * termcap.c (ospeed): Remove.
4118 (tputs) [!emacs]: Remove unused code.
4119 (tgetent): Avoid a compiler warning.
4121 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
4122 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
4123 SCROLL_BAR_X_WIDGET with additional argument DPY.
4125 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
4127 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
4128 Take the X display as additional argument.
4129 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
4130 `Widget' is a pointer type that's not easily stored in Lisp_Object
4131 form in a portable way.
4133 * dispnew.c (update_text_area): Fix last change.
4135 2000-11-18 Gerd Moellmann <gerd@gnu.org>
4137 * xdisp.c: Use BINDING_STACK_SIZE throughout.
4139 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
4140 clear current matrices.
4142 * buffer.c (mmap_enlarge): Don't print a message on stderr
4143 if mapping new memory at the end of the existing region fails.
4145 * dispnew.c (update_text_area): Don't skip over equal glyphs
4146 when the last current glyph overlaps the glyph to its right.
4148 2000-11-18 Miles Bader <miles@gnu.org>
4150 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
4151 lines that *end* with "..." too (that's the most common case!).
4153 2000-11-18 Gerd Moellmann <gerd@gnu.org>
4155 * xdisp.c (resize_mini_window): Temporarily change to the
4156 mini-window's buffer if necessary.
4158 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
4159 the tooltip obscures less text under it.
4161 2000-11-17 Gerd Moellmann <gerd@gnu.org>
4163 * puresize.h (BASE_PURESIZE): Increase to 700000.
4165 2000-11-18 Jason Rumney <jasonr@gnu.org>
4167 * w32term.c (w32_draw_bitmap): Use face to set colors.
4169 2000-11-17 Dave Love <fx@gnu.org>
4171 * lread.c (Fload): Fix #ifdef for pcc.
4173 2000-11-17 Gerd Moellmann <gerd@gnu.org>
4175 * xdisp.c (pos_visible_p): Compute the default character height
4178 2000-11-16 Gerd Moellmann <gerd@gnu.org>
4180 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
4181 knowing the line's height; use the default font's height in that case.
4183 * xfaces.c (weight_table): Add `demi' with the same meaning as
4186 2000-11-16 Kenichi Handa <handa@etl.go.jp>
4188 * dispnew.c (null_row): New global static variable.
4189 (clear_glyph_row): Delete local static variable null_row.
4191 2000-11-15 Jason Rumney <jasonr@gnu.org>
4193 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
4194 (w32_alloc_lighter_color): Use new brightness calculations from
4195 xterm.c. Scale delta to be in the range expected by W32.
4196 (w32_draw_relief_rect): Use frame relief colors.
4198 2000-11-15 Gerd Moellmann <gerd@gnu.org>
4200 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
4201 (Qinhibit_default_face_x_resources): New variable.
4202 (syms_of_frame): Initialize it.
4203 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
4205 * xdisp.c (pos_visible_p): Improve function comment.
4207 * lisp.h (BINDING_STACK_SIZE): New macro.
4209 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
4210 reading the directory if readdir returns null and errno is EAGAIN
4213 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
4215 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
4216 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
4217 Set amount_to_scroll to max of dx and scroll_step so that
4218 scroll-conservatively doesn't defeat scroll-step>1.
4219 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
4220 scroll-conservatively for line-at-a-time scrolling.
4222 2000-11-14 Gerd Moellmann <gerd@gnu.org>
4224 * window.c (Fpos_visible_in_window_p): Call pos_visible with
4227 * xdisp.c (current_mode_line_height, current_header_line_height):
4229 (init_xdisp): Initialize them.
4230 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
4231 and use exact mode line heights if it is set.
4233 * lisp.h (pos_visible_p): Change prototype.
4235 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
4236 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
4237 and current_header_line_height first.
4238 (current_mode_line_height, current_header_line_height):
4241 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
4243 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
4244 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
4245 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
4247 2000-11-14 Miles Bader <miles@gnu.org>
4249 * xterm.c (x_alloc_lighter_color): Include an additive component
4250 too for dark colors, because FACTOR isn't enough.
4251 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
4254 2000-11-13 Gerd Moellmann <gerd@gnu.org>
4256 * keyboard.c (show_help_echo): Call message3_nolog with number of
4257 bytes in the help string as 2nd parameter, instead of the number
4260 2000-11-13 Miles Bader <miles@gnu.org>
4262 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
4263 (Fload): Use new openp return protocol.
4264 Don't try to use Vload_source_file_function to load .elc files.
4265 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
4266 openp return protocol.
4267 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
4269 2000-11-11 Kenichi Handa <handa@etl.go.jp>
4271 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
4273 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
4274 Defined these macros.
4275 (NLIST_STRUCT): Avoid re-defining it.
4277 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
4278 -I/usr/contrib/X11R6/include.
4279 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
4281 2000-11-10 Jason Rumney <jasonr@gnu.org>
4283 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
4285 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
4286 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
4288 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
4289 (Qw32_charset_vietnamese): New symbol.
4290 (xlfd_charset_of_font): New function.
4291 (w32_load_system_font): Use it.
4292 (x_to_w32_charset): Use Fassoc to find charset info. Special case
4293 when Vw32_charset_info_alist is nil to ensure default face always
4294 has font. Use Fcar and Fcdr for safety.
4295 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
4296 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
4297 pseudo-codepages for special cases.
4298 (w32_to_x_font): New parameter to allow charset portion to be
4299 specified where there is many to one mapping. Callers changed.
4300 (w32_list_fonts): Avoid listing fonts that won't display.
4302 2000-11-10 Gerd Moellmann <gerd@gnu.org>
4304 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
4305 (font_list_1): Renamed from font_list.
4306 (font_list): New function, trying alternative registries from
4307 Vface_alternative_font_registry_alist.
4308 (Finternal_set_alternative_font_registry_alist): New function.
4309 (syms_of_xfaces): Initialize and Staticpro
4310 Vface_alternative_font_registry_alist.
4311 Defsubr Finternal_set_alternative_font_registry_alist.
4313 2000-11-09 Ken Raeburn <raeburn@gnu.org>
4315 * lisp.h (Flooking_at): Declare.
4317 2000-11-09 Gerd Moellmann <gerd@gnu.org>
4319 * dired.c (directory_files_internal): Fix a braino.
4321 * dired.c (directory_files_internal): Add missing GCPRO's.
4324 2000-11-08 Gerd Moellmann <gerd@gnu.org>
4326 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
4327 (resize_mini_window): Return quickly if Vresize_mini_window is
4328 nil. Don't return if Vmax_mini_window_height is nil.
4330 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
4331 (syms_of_xdisp): Initialize them.
4332 (resize_mini_window): Act according to the setting of
4333 Vresize_mini_window.
4334 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
4336 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
4337 scroll bar widget after configuring it, so that it will appear at
4338 the right position from the start.
4339 (XTredeem_scroll_bar): Cleaned up.
4341 2000-11-08 Kenichi Handa <handa@etl.go.jp>
4343 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
4344 font is taller than the frame line, we don't have to bias the
4347 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
4349 2000-11-07 Dave Love <fx@gnu.org>
4351 * config.in (HAVE_MKSTEMP): Add.
4353 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
4355 2000-11-07 Gerd Moellmann <gerd@gnu.org>
4357 * window.c (Fset_window_configuration): Don't try to preserve
4358 point in the current buffer, if that buffer is displayed in more
4361 * xfaces.c (lookup_named_face): If default face isn't realized,
4362 try to realize it. Return -1 if not successful.
4363 (Fx_list_fonts): Handle case that face cannot be determined.
4364 (Fface_font): Likewise.
4366 2000-11-06 Gerd Moellmann <gerd@gnu.org>
4368 * window.c (displayed_window_lines): Detect partially
4369 visible lines at the bottom correctly.
4371 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
4373 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
4374 when ensuring we don't do visit in indirect buffer.
4376 2000-11-06 Kenichi Handa <handa@etl.go.jp>
4378 * composite.h (compose_chars_in_text): Add prototype.
4380 * composite.c (Vcomposition_function_table): New variable.
4381 (Qcomposition_function_table): New variable.
4382 (run_composition_function): Call
4383 Vcompose_chars_after_function with three arguments.
4384 (compose_chars_in_text): New function.
4385 (syms_of_composite): Modified the doc-string of
4386 Vcompose_chars_after_function. Declare composition-function-table
4387 as a lisp variable, and initialize it.
4389 * xfns.c (x_encode_text): Suppress producing escape sequences for
4392 * xselect.c: Include composite.h.
4393 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
4395 2000-11-05 Andrew Innes <andrewi@gnu.org>
4397 * w32term.c (x_produce_glyphs): Fix typo in enum name.
4399 * sysdep.c (read_input_waiting): Remove extraneous argument to
4402 * w32fns.c (Fx_server_version): Include w32_build_number in the
4405 * w32heap.c (w32_build_number): New variable.
4406 (cache_system_info): Set it.
4408 * w32heap.h (w32_build_number): Add extern.
4410 * emacs.c (syms_of_emacs): Update docstring for
4411 system-configuration, to reflect the actual usage on MS-Windows.
4413 2000-10-31 Gerd Moellmann <gerd@gnu.org>
4415 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
4416 process idle timers while waiting for another event.
4418 * dispnew.c (update_frame_line): Handle case where spaces in
4419 the default face are colored.
4421 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
4422 window height hasn't changed.
4424 2000-10-31 Jason Rumney <jasonr@gnu.org>
4426 * w32term.c (x_produce_glyphs): Handle composite characters.
4427 (x_draw_glyph_string_foreground)
4428 (x_draw_composite_glyph_string_foreground): Restore old font.
4430 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
4432 * minibuf.c (read_minibuf): Reset the undo history just before
4433 starting the recursive-edit.
4435 2000-10-30 Gerd Moellmann <gerd@gnu.org>
4437 * xfaces.c (menu_face_change_count): New variable.
4438 (Finternal_set_lisp_face_attribute): Increment it for changes
4440 (realize_basic_faces): Reflect changes in the `menu' faces
4443 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
4444 dy obtained from the iterator's y-position after moving from
4445 scroll_margin_pos to PT; see comment there.
4447 * xdisp.c (safe_eval_handler): Call add_to_log.
4449 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
4450 is not a symbol or string.
4452 * xdisp.c (echo_area_display): Don't perform a display update from
4453 inside redisplay. The update will happen anyway at the end of
4454 redisplay, and it can confuse redisplay (GC messages while
4455 redisplaying, for instance.)
4457 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
4459 * xrdb.c (x_load_resources): Use the class name in the defaults.
4461 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
4462 (regex_compile): Catch bogus \(\1\).
4464 2000-10-30 Gerd Moellmann <gerd@gnu.org>
4466 * xterm.c (x_alloc_nearest_color): Fix last change to compare
4469 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
4470 we have a color cache, check that the cached color equals the
4471 allocated color. If not, clear the color cache.
4473 * window.c (displayed_window_lines): Change buffers if necessary.
4474 Fix computation of displayed lines.
4476 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
4477 update_menu_bindings to DEFVAR_BOOL.
4479 2000-10-30 Kenichi Handa <handa@etl.go.jp>
4481 * search.c (Fset_match_data): Be sure to make search_regs always sane.
4483 * puresize.h (BASE_PURESIZE): Increase to 680000.
4485 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
4487 2000-10-29 Jason Rumney <jasonr@gnu.org>
4489 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
4491 * w32term.c (w32_bdf_per_char_metric): Negate descent.
4492 (w32_cache_char_metrics): Handle possibility that 'x' does not
4493 exist in a BDF font.
4494 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
4496 * w32bdf.h (bdffont): Add nchars.
4498 * w32bdf.c (set_bdf_font_info): Set it.
4499 (w32_BDF_TextOut): Swap byte order of double byte characters.
4500 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
4502 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
4504 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
4505 don't override the colors in frame's param_alist, unless they are
4508 * term.c (reassert_line_highlight): If inverse_video is non-zero,
4509 reverse the effect of the highlight flag.
4511 2000-10-27 Ken Raeburn <raeburn@gnu.org>
4513 * window.h (Fwindow_live_p): Declare.
4515 * undo.c (record_delete): Check that last_undo_buffer is really a
4516 buffer before applying XBUFFER to it.
4518 * keymap.c (where_is_internal): Pass lisp object, not integer, to
4521 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4523 * lisp.h (KEYMAPP): New macro.
4524 (get_keymap): Remove.
4525 (get_keymap_1): Rename get_keymap.
4527 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
4529 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
4531 * xmenu.c (single_submenu): Use KEYMAPP.
4532 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4533 Use KEYMAPP rather than Fkeymapp.
4535 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
4537 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
4538 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4539 Use KEYMAPP rather than Fkeymapp.
4540 (single_submenu): Use KEYMAPP.
4541 (w32_menu_show, w32_dialog_show): Use TRUE.
4543 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
4545 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
4546 (Fkeymapp): Use KEYMAPP.
4547 (get_keymap): Rename from get_keymap_1. Remove old def.
4548 Return t when autoload=0 and error=0 and the keymap needs autoloading.
4549 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
4550 (Fminor_mode_key_binding): Don't raise an error if the binding
4552 (Fuse_global_map, Fuse_local_map): Allow autoloading.
4553 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
4555 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
4556 Allow Vspecial_event_map to be autoloaded.
4557 (menu_bar_items): Fetch the keymap rather than using keymapp.
4558 (menu_bar_one_keymap): No need to follow func-indirect any more.
4559 (parse_menu_item): get_keymap_1 -> get_keymap.
4560 (tool_bar_items): Fetch the keymap rather than using keymapp.
4561 (read_key_sequence): Use KEYMAPP.
4563 * intervals.c (get_local_map): Use get_keymap rather than following
4564 function-indirections explicitly.
4566 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
4568 2000-10-27 Jason Rumney <jasonr@gnu.org>
4570 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
4571 point, as Windows has oversized fonts.
4573 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
4575 2000-10-27 Gerd Moellmann <gerd@gnu.org>
4577 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
4578 (freehook, reallochook): Handle null pointer arguments.
4579 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
4581 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4583 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
4584 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
4585 Giving in to popular pressure to shut up the compiler with casts.
4587 2000-10-27 Gerd Moellmann <gerd@gnu.org>
4589 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
4590 signed value, and use a default value computed from the font's
4593 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
4595 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
4596 that specify a negative underline position can still use underlines.
4598 * window.c (Fpos_visible_in_window_p): Make POS default to
4599 WINDOW's point, not the current buffer's point.
4601 2000-10-26 Dave Love <fx@gnu.org>
4603 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
4604 when it's necessary.
4606 2000-10-26 Gerd Moellmann <gerd@gnu.org>
4608 * window.c (size_window): Compute size difference from sum of old
4609 child window sizes instead of from parent's size.
4611 * xdisp.c (pos_visible_p): Change current buffer if necessary.
4612 Handle obscured lines at the top of the window.
4614 * frame.c (Fdelete_frame): Doc fix. Move running the hook
4615 down after the last error condition check.
4617 * frame.c (Fdelete_frame): Run delete-frame-hook.
4619 2000-10-26 Kenichi Handa <handa@etl.go.jp>
4621 * coding.c (decode_coding): Fix previous change (check also
4622 CODING_MODE_LAST_BLOCK).
4624 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4626 * regex.c: More `unsigned char' -> `re_char' changes.
4627 Also change several `int' into `re_wchar_t'.
4628 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
4629 (PUSH_FAILURE_POINTER): Don't cast any more.
4630 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
4631 We want GCC to complain, since this piece of code makes
4632 re_match non-reentrant, which *should* be fixed.
4633 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
4634 (EXTEND_BUFFER): Use RETALLOC.
4635 (SET_LIST_BIT): Don't cast.
4636 (re_wchar_t): New type.
4637 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
4638 that those two functions will always properly return.
4639 (IMMEDIATE_QUIT_CHECK): Cast to void.
4640 (analyse_first): Use recursion rather than an explicit stack.
4641 (re_compile_fastmap): Can't fail anymore.
4642 (re_search_2): Don't check re_compile_fastmap for failure.
4643 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
4644 Now also sets the new value (passed in a new argument).
4645 (re_match_2_internal): Use it.
4646 Also, use a new var `reg' of type size_t when looping through regs
4647 rather than reuse the inappropriate `mcnt'.
4649 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
4650 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
4651 (where_is_internal): Renamed from Fwhere_is_internal.
4652 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
4653 (Fwhere_is_internal): New function wrapping where_is_internal.
4654 (where_is_internal_1): Handle the case where we're filling the cache.
4655 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
4657 2000-10-25 Miles Bader <miles@gnu.org>
4659 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
4661 2000-10-25 Gerd Moellmann <gerd@gnu.org>
4663 * window.c (pos_fully_visible_p): Removed.
4664 (Fpos_visible_in_window_p): Use pos_visible_p to determine
4665 if position is visible and/or fully visible.
4667 * lisp.h (pos_visible_p): Add prototype.
4669 * xdisp.c (pos_visible_p): New function.
4671 2000-10-25 Kenichi Handa <handa@etl.go.jp>
4673 * process.c (send_process): If OBJECT is t, it means that the data
4674 is from C string, but we should encode it. Before calling
4675 setup_raw_text_coding_system, be sure to flush out data by the
4676 previous coding system.
4678 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
4680 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
4681 assignment of startpos to prev when startpos == pos.
4683 * editfns.c (find_field): Set the field stickiness correctly from
4684 overlay fields. Use renamed `text_property_stickiness'.
4685 (text_property_stickiness): Renamed from `char_property_stickiness'.
4686 Only check text properties, not overlays.
4687 * textprop.c (get_char_property_and_overlay): New function.
4688 (Fget_char_property): Use it.
4689 * intervals.h (get_char_property_and_overlay): Add declaration.
4691 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4693 * keymap.c: Use AREF, ASET and ASIZE macros.
4694 (Fmake_sparse_keymap): Docstring fix.
4696 (shadow_lookup): Move up.
4697 Handle the case where lookup-key returns an integer.
4698 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
4699 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
4700 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
4701 Simplify/rewrite the keymap-finding code.
4702 Add check for command shadowing, using shadow_lookup.
4704 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
4706 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
4707 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
4710 2000-10-24 Andrew Innes <andrewi@gnu.org>
4712 * dired.c (directory_files_internal_unwind): New function.
4713 (directory_files_internal): Use it to ensure closedir is called
4714 even if expand-file-name or file-attributes throw, eg. because of
4715 a user interrupt. Also enable immediate_quit while calling
4716 re_search, so that matching can be interrupted as well.
4718 2000-10-24 Andrew Innes <andrewi@gnu.org>
4720 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
4722 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
4723 so that re_search functions only quit when callers expect them to.
4725 2000-10-24 Kenichi Handa <handa@etl.go.jp>
4727 * regex.c (regex_compile): Change the way of handling a range from
4728 a char less than 256 to a char not less than 256.
4730 2000-10-24 Gerd Moellmann <gerd@gnu.org>
4732 * window.c (size_window): Prevent setting window's width or
4733 height to a negative value (esp. with XSETFASTINT).
4735 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
4736 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
4737 (protect_malloc_state) [GC_MALLOC_CHECK &&
4738 GC_PROTECT_MALLOC_STATE]: New function.
4739 (PROTECT_MALLOC_STATE): New macro.
4740 (__malloc_initialize, morecore, _malloc_internal)
4741 (_free_internal) _realloc_internal): Use it to make _heapinfo
4742 read-only outside of gmalloc.
4744 * keymap.c: Update copyright.
4746 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
4749 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
4751 * filelock.c (unlock_all_files): Use unlock_file to expand each
4752 buffer's file_truename before trying remove its lock file.
4754 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
4756 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
4757 or CRLF, decode EOLs.
4759 2000-10-24 Kenichi Handa <handa@etl.go.jp>
4761 * window.c (Fdisplay_buffer): Fix doc.
4763 2000-10-23 Jason Rumney <jasonr@gnu.org>
4765 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
4766 ASCII font of default fontset on Windows.
4768 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
4769 xterm.c comment below).
4771 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
4773 2000-10-23 Gerd Moellmann <gerd@gnu.org>
4775 * xterm.c (x_connection_closed): Reset handling_signal.
4777 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
4779 2000-10-23 Miles Bader <miles@gnu.org>
4781 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4782 Pass nil for FULLY argument to Fpos_visible_in_window_p to
4783 maintain old behavior.
4784 * minibuf.c (Fminibuffer_complete): Likewise.
4786 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
4788 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
4789 that when a font can't be exactly centered, it errs up rather than
4792 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
4794 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
4796 2000-10-23 Andrew Choi <akochoi@i-cable.com>
4798 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
4800 * dispnew.c [macintosh]: Include macterm.h.
4801 (init_display) [macintosh]: Initialization for window system.
4803 * emacs.c (main) [macintosh]: Call syms_of_textprop,
4804 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
4805 syms_of_search, x_term_init, and init_keyboard before calling
4806 init_window_once. Also, call syms_of_xmenu.
4808 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
4809 default fontset to Monaco.
4811 * frame.c [macintosh]: Include macterm.h. Remove declarations of
4812 NewMacWindow and DisposeMacWindow.
4813 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
4814 instead of calling NewMacWindow and setting fields of
4815 f->output_data.mac directly. Call init_frame_faces.
4816 (Fdelete_frame) [macintosh]: Remove unused code.
4817 (Fmodify_frame_parameters) [macintosh]: Call
4818 x_set_frame_parameters instead of mac_set_frame_parameters.
4820 * frame.h [macintosh]: Define menu_bar_lines field in struct
4821 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
4823 * keyboard.c [macintosh]: Include macterm.h.
4824 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
4825 and menu_bar_activate_event type events as for X and NT.
4826 (make_lispy_event) [macintosh]: Construct lisp events of type
4827 MENU_BAR_EVENT as for X and NT.
4829 * sysdep.c [macintosh]: Remove declaration for sys_signal.
4830 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
4831 (sys_subshell) [macintosh]: Remove definition entirely.
4832 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
4833 Vwindow_system_version here. Remove initialization of
4834 Vx_bitmap_file_path.
4835 (read_input_waiting): Correct the number of parameters passed to
4837 Move all Macintosh functions to mac/mac.c.
4839 * term.c [macintosh]: Include macterm.h.
4841 * window.c [macintosh]: Include macterm.h.
4843 * xdisp.c [macintosh]: Include macterm.h. Declare
4844 set_frame_menubar and pending_menu_activation.
4845 (echo_area_display) [macintosh]: Do not return if terminal frame
4846 is the selected frame.
4847 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
4848 Allow only the selected frame to set menu bar.
4849 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
4850 calling FRAME_EXTERNAL_MENU_BAR (f).
4851 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
4853 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
4854 and check_x. Declare XCreateGC. Define x_create_gc and
4855 x_free_gc. Initialize font_sort_order.
4856 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
4857 but call x_list_fonts instead of w32_list_fonts.
4858 (Finternal_face_x_get_resource) [macintosh]: Do not call
4859 display_x_get_resource.
4860 (prepare_face_for_display) [macintosh]: Set xgcv.font.
4861 (realize_x_face) [macintosh]: Load the font if it is specified in
4863 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
4865 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
4867 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
4868 is nil: since we go to the end of submap anyway, we'd end up
4870 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
4871 doesn't obey autoload.
4873 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4875 * msdos.c (dos_set_window_size): Update screen dimension variables.
4877 2000-10-21 Jason Rumney <jasonr@gnu.org>
4879 * w32term.c (w32_cache_char_metrics): Double check that font is
4880 really fixed pitch before trusting tmPitchAndFamily.
4882 2000-10-21 Andrew Innes <andrewi@gnu.org>
4884 * w32gui.h (w32_char_font_type): Move enum from w32term.c
4886 * w32term.h: Extern decl for w32_cache_char_metrics.
4888 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
4890 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
4891 (w32_unload_font): Free per_char array if present.
4893 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
4894 cached information in emulated XFontStruct to handle common cases
4895 quickly. Do not allocate XCharStruct for return.
4896 (w32_native_per_char_metric): New function.
4897 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
4899 (x_produce_glyphs): Don't get an HDC. Change calls to
4900 w32_per_char_metric to match arg change above. Remove calls to
4902 (w32_get_glyph_overhangs): Ditto.
4903 (w32_cache_char_metrics): New function.
4905 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
4906 ($(BLD)/casefiddle.$(O)): Remove compile command.
4907 ($(BLD)/gmalloc.$(O)): Remove compile command.
4908 ($(BLD)/dispnew.obj):
4909 ($(BLD)/keyboard.obj):
4910 ($(BLD)/w32inevt.obj):
4911 ($(BLD)/w32bdf.obj):
4913 ($(BLD)/buffer.obj):
4914 ($(BLD)/editfns.obj):
4916 ($(BLD)/fileio.obj):
4918 ($(BLD)/indent.obj):
4919 ($(BLD)/insdel.obj):
4920 ($(BLD)/intervals.obj):
4921 ($(BLD)/minibuf.obj):
4923 ($(BLD)/scroll.obj):
4924 ($(BLD)/sysdep.obj):
4925 ($(BLD)/textprop.obj):
4926 ($(BLD)/widget.obj):
4927 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
4928 ($(BLD)/term.obj): Add dependency on dispextern.h.
4930 * makefile.nt ($(BLD)\dispnew.obj):
4931 ($(BLD)\keyboard.obj):
4932 ($(BLD)\w32inevt.obj):
4933 ($(BLD)\w32bdf.obj):
4935 ($(BLD)\buffer.obj):
4936 ($(BLD)\editfns.obj):
4938 ($(BLD)\fileio.obj):
4940 ($(BLD)\indent.obj):
4941 ($(BLD)\insdel.obj):
4942 ($(BLD)\intervals.obj):
4943 ($(BLD)\minibuf.obj):
4945 ($(BLD)\scroll.obj):
4946 ($(BLD)\sysdep.obj):
4947 ($(BLD)\textprop.obj):
4948 ($(BLD)\widget.obj):
4949 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
4950 ($(BLD)\term.obj): Add dependency on dispextern.h
4952 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4954 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
4955 with an additional argument of Qt.
4957 2000-10-21 Miles Bader <miles@gnu.org>
4959 * window.c (pos_fully_visible_in_window_p): New function.
4960 (Fpos_visible_in_window_p): Add FULLY argument.
4961 Use pos_fully_visible_in_window_p.
4962 (window_scroll_pixel_based, window_scroll_line_based): Update
4963 calls to Fpos_visible_in_window_p.
4964 * lisp.h (Fpos_visible_in_window_p): Update prototype
4966 2000-10-20 Gerd Moellmann <gerd@gnu.org>
4968 * alloc.c (toplevel): Conditionalize compilation of mem_*
4969 functions differently.
4971 2000-10-20 Jason Rumney <jasonr@gnu.org>
4973 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4974 mem_init where it used to be. mem_z etc not defined otherwise.
4976 2000-10-20 Gerd Moellmann <gerd@gnu.org>
4978 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4980 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4981 structure definition and related variabled to the top of the file.
4982 Include this code when GC_MALLOC_CHECK is defined.
4983 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4984 register/unregister allocated region.
4985 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4986 which isn't allocated.
4987 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4988 something which is already in use.
4989 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4990 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4991 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4992 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4994 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4995 _malloc_internal instead of malloc.
4996 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4999 2000-10-20 Andrew Innes <andrewi@gnu.org>
5001 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
5003 (my_strftime) <macro>: Don't use macro arg list when redefining as
5005 (my_strftime) <function>: Supply 0 as ut argument.
5007 2000-10-19 Jason Rumney <jasonr@altavista.net>
5009 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
5010 including dispextern.h, as it stops faces from working.
5012 * w32fns.c (Fx_create_frame): Don't bother calling
5013 face-set-after-frame-default since the caller does it for us
5014 anyway. Clean up calls to x_get_arg to be consistent with X.
5016 * w32term.c (x_produce_glyphs): Handle
5017 unibyte_display_via_language_environment correctly.
5018 (w32_draw_box_rect): Fix the calculation of width and height.
5020 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
5021 as it has stopped working.
5022 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
5025 2000-10-19 Gerd Moellmann <gerd@gnu.org>
5027 * eval.c (skip_debugger): Prevent a compiler warning.
5028 (Fcondition_case): Likewise.
5029 (Fbacktrace_frame): Use a null interactive spec.
5031 2000-10-19 Kenichi Handa <handa@etl.go.jp>
5033 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
5035 2000-10-18 Gerd Moellmann <gerd@gnu.org>
5037 * strftime.c: Sync with glibc, file version 1.78.
5038 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
5039 should no longer be used according to ISO 8601.
5041 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
5042 no map for meta_prefix_char, don't try to use it as a keymap.
5043 Instead, if T_OK is non-zero, look up a default binding, if any,
5044 otherwise, if T_OK is zero, return nil.
5046 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
5047 (x_to_xcolors, png_load): Use x_query_color.
5049 * xterm.c (x_color_cells, x_query_colors, x_query_color):
5051 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
5053 (x_copy_color, x_alloc_lighter_color): Likewise.
5055 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
5056 (x_query_color, x_query_colors): Add prototype.
5058 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
5059 check_string_bytes only if not noninteractive, increase count to 50.
5061 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
5063 * insdel.c (adjust_markers_for_delete): Handle before-insertion
5066 2000-10-17 Gerd Moellmann <gerd@gnu.org>
5068 * alloc.c (pure_bytes_used): Renamed from pureptr.
5070 (pure_alloc): New function.
5071 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
5073 (Fpurecopy): Use PURE_POINTER_P.
5075 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
5076 PT has moved backward.
5078 * xdisp.c (cursor_row_p): Take continued lines into account.
5080 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
5082 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
5083 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
5084 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
5087 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
5088 of selective display off while searching for the next line start.
5090 2000-10-17 Kenichi Handa <handa@etl.go.jp>
5092 * Makefile.in (term.o): Depend on dispextern.h.
5094 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
5096 * keymap.c (keymap_memberp): Ensure that nil is not a member.
5098 2000-10-16 Gerd Moellmann <gerd@gnu.org>
5100 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
5101 the iterator at the beginning, so that they can be set later on,
5102 for instance in reseat_at_next_visible_line_start, without being
5105 * xfns.c (pbm_format): Add :foreground and :background keywords.
5106 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
5107 (xbm_load): Recognize foreground and background color specifications.
5109 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
5111 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
5113 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
5115 * msdos.c (IT_set_face): Compare highlighted face with the default
5116 face, and invert colors if these faces' colors are identical.
5117 (Fmsdos_remember_default_colors): Don't swap foreground and
5118 background colors in initial_colors[].
5119 (IT_set_frame_parameters): Don't swap frame's foreground and
5120 background pixels. If ALIST includes "(reverse . t)", swap
5121 foreground-color and background-color properties in frame's
5122 param_alist. If the original frame's param_alist doesn't specify
5123 the colors, store unspecified-fg and unspecified-bg, reversed if
5126 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
5127 the colors are unspecified and reversed, reverse fore- and back-
5128 ground in the returned value.
5129 (Fframe_parameter): Ditto.
5131 2000-10-16 Gerd Moellmann <gerd@gnu.org>
5133 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
5134 get_last_unchanged_at_beg_row.
5135 (find_first_unchanged_at_end_row): Renamed from
5136 get_first_unchanged_at_end_row.
5137 (find_first_unchanged_at_end_row): Convert assertions to
5138 unconditional tests which abort. When looking for a row in
5139 unchanged text, don't go further back than first_text_row.
5141 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
5142 Don't add in the last line's height when deciding if the new
5143 position is below the scroll margin.
5145 2000-10-16 Miles Bader <miles@gnu.org>
5147 * editfns.c (Fconstrain_to_field): Check carefully for field
5148 boundaries if either OLD_POS or NEW_POS has a non-nil field
5149 property, even if they're the same.
5151 2000-10-16 Kenichi Handa <handa@etl.go.jp>
5153 * xterm.c (x_draw_box_rect): Fix the calculation of width and
5154 height for XFillRectangle.
5156 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
5158 * syntax.c (Fstring_to_syntax): New function extracted from
5159 Fmodify_syntax_entry.
5160 (Fmodify_syntax_entry): Use it and document the ! and | fences.
5161 (skip_chars, Fforward_comment): Remove unused variables.
5162 (syms_of_syntax): Add defsubr for string-to-syntax.
5163 (describe_syntax): Add code for comment and string fences.
5165 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
5167 * keymap.c (access_keymap): Add AUTOLOAD parameter.
5168 Do the meta->esc mapping. Call get_keyelt before returning.
5169 Start scanning from the second element (the first is always `keymap')
5170 to make it easier to detect when we reach a parent map.
5171 Handle the case of inheriting from a symbol whose function is a map.
5172 (Fkeymap_parent): Also handle the `inherit from symbol' case.
5173 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
5174 (get_keyelt, Flookup_key): Update call to access_keymap.
5175 Remove the meta->esc mappings.
5176 (define_as_prefix): Delete old disabled code.
5177 (menu_item_p): New function.
5178 (where_is_internal_1): Skip over the few remaining menu items.
5179 * lisp.h (access_keymap): Update prototype.
5180 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
5181 Update call to access_keymap.
5182 (follow_key, read_key_sequence): Update calls to access_keymap.
5183 Remove the meta->esc mappings.
5185 2000-10-13 Gerd Moellmann <gerd@gnu.org>
5187 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
5188 with additional argument.
5190 * xdisp.c (cursor_row_p): New function.
5191 (try_cursor_movement, display_line): Use it.
5193 * xdisp.c (append_space): Also save/restore iterator's current
5194 character and its length.
5196 * xdisp.c (init_from_display_pos): Add an assertion.
5197 (handle_stop): Don't set iterator's add_overlay_start.
5198 (handle_invisible_prop): Likewise.
5199 (load_overlay_strings): If text under an overlay is invisible,
5200 take both before- and after-strings into account when the iterator
5201 is positioned either at the start or at the end of the overlay.
5202 (forward_to_next_line_start): Rewritten.
5203 (reseat_at_next_visible_line_start): Rewritten.
5204 (set_iterator_to_next): Add parameter RESEAT_P.
5206 * dispextern.h (struct it): Remove member add_overlay_start.
5207 (set_iterator_to_next): Change prototype.
5209 2000-10-13 Kenichi Handa <handa@etl.go.jp>
5211 * coding.c (code_convert_region): Be sure to initialize
5212 coding->category_idx.
5213 (decode_coding_string): Set coding->src_multibyte and
5214 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
5215 (encode_coding_string): Set coding->src_multibyte and
5216 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
5218 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
5220 * xfns.c (Fx_create_frame): Don't bother calling
5221 face-set-after-frame-default since the caller does it for us anyway.
5223 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
5225 * window.c (coordinates_in_window): Fix detection of vertical line
5226 on character terminals.
5228 2000-10-12 Gerd Moellmann <gerd@gnu.org>
5230 * editfns.c (save_excursion_save): Additionally record the
5232 (save_excursion_restore): If buffer was visible in a window, and a
5233 different window was selected, and the old selected window is
5234 still live, restore point in that window.
5236 2000-10-12 Kenichi Handa <handa@etl.go.jp>
5238 * xterm.c (x_produce_glyphs): Handle
5239 unibyte_display_via_language_environment correctly.
5241 * regex.c (regex_compile): Change the way of handling a range from
5242 unibyte char to multibyte char.
5244 * syntax.c (skip_chars): Change the way of handling a range from
5245 unibyte char to multibyte char.
5247 * process.c (read_process_output): Cancel previous change.
5249 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
5251 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
5253 * charset.c (Ffind_charset_string): Doc fix.
5254 (Ffind_charset_region): Doc fix.
5256 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
5258 * process.c (read_process_output): Fix previous change. Adjust
5259 multibyteness of text to insert in a buffer by
5260 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
5262 2000-10-10 Andreas Schwab <schwab@suse.de>
5264 * alloc.c (mark_object): Remove all workarounds installed on
5267 2000-10-10 Kenichi Handa <handa@etl.go.jp>
5269 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
5270 (base64_encode_1): Make it work for a text of multibyte form.
5271 (Fbase64_decode_region): Allocate sufficient memory for multibyte
5272 case. Don't call str_to_multibyte because base64_decode_1
5273 produces correct multibyte form for eight-bit codes.
5274 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
5275 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
5276 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
5279 * charset.h (CHAR_STRING): Optimized for single byte characters.
5281 2000-10-09 Andreas Schwab <schwab@suse.de>
5283 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
5284 -1 after socket is closed, to fall through to error processing.
5286 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
5288 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
5289 variables. If ALIST includes foreground-color or
5290 background-color, change also the colors of the default face for
5293 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
5295 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
5296 them extern (they are defined on xfaces.c).
5297 (syms_of_msdos): Don't intern and don't staticpro
5298 Qbackground_color and Qforeground_color.
5300 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
5302 * frame.c (Fframe_parameter): For non-windowed frames, if
5303 f->param_alist says foreground or background color is unspecified,
5304 call tty_color_name to return the color name computed from the
5305 frame's current colors.
5307 2000-10-06 Dave Love <fx@gnu.org>
5309 * terminfo.c (ospeed): Don't declare.
5311 * sysdep.c: Don't include string.h.
5312 (h_errno): Declare conditional also on TRY_AGAIN.
5314 * charset.c (Ffind_charset_string): Doc fix.
5316 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
5317 (Fbase64_decode_region, Fbase64_decode_string): More explicit
5320 2000-10-05 Dave Love <fx@gnu.org>
5322 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
5323 position like menu-bar.
5325 2000-10-05 Gerd Moellmann <gerd@gnu.org>
5327 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
5329 * xdisp.c (handle_single_display_prop): Use safe_call1.
5330 (safe_call): Renamed from call_function.
5331 (safe_call1): New function.
5332 (handle_fontified_prop): Use safe_call1 instead of call1.
5333 (safe_eval): Renamed from eval_form.
5334 (safe_eval_handler): Renamed from eval_handler.
5335 (handle_single_display_prop, display_mode_element): Use safe_eval
5336 instead of eval_form.
5338 * xfaces.c (merge_face_heights): Use safe_call instead of
5341 * keyboard.c (show_help_echo): Use safe_call instead of
5342 call_function; use safe_eval instead of eval_form.
5344 * lisp.h (safe_call): Renamed from call_function.
5345 (safe_eval): Renamed from eval_form.
5346 (safe_call1): Add prototype.
5348 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
5350 * xfns.c (image_ascent): Rearrange ascent calculation for the
5353 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
5355 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
5356 (where_is_internal_1): Don't bother ignoring menu-items any more.
5358 2000-10-04 Gerd Moellmann <gerd@gnu.org>
5360 * keyboard.c (update_menu_bindings): New variable.
5361 (parse_menu_item): Use AREF. If update_menu_bindings
5362 is 0, don't update menu bindings.
5363 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
5365 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
5367 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
5370 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
5372 * syntax.c (forw_comment): Match nestedness of ender/starter.
5373 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
5374 (prev_char_comstart_first): Remove.
5375 (back_comment): Check two-char comment markers more carefully
5376 to better handle overlapping cases like *//* or /* */* */ ...
5377 Match nestedness of ender/starter.
5379 2000-10-02 Dave Love <fx@gnu.org>
5381 * config.in (HAVE_GAI_STRERROR): Add undef.
5383 * process.c (Fopen_network_stream): Use it.
5385 * m/alpha.h (NO_REMAP): Don't define.
5387 2000-10-02 Gerd Moellmann <gerd@gnu.org>
5389 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
5390 return with a string converted to an integer or vice versa when
5391 Vmocklisp_arguments is t.
5392 (Fsignal): Likewise. The function can return for `quit'.
5393 (struct gcpro): Declare member `var' to point to a volatile
5396 * eval.c (error): Prevent compiler warning.
5398 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
5400 * keymap.c (keymap_memberp): New function.
5401 (Fset_keymap_parent): Use it.
5402 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
5403 Use keymap_memberp to avoid creating cycles.
5404 (access_keymap): Use KEYMAPP.
5406 2000-09-30 Gerd Moellmann <gerd@gnu.org>
5408 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
5409 gai_strerror. Make sure xerrno is set if connect fails. Improve
5412 2000-09-29 Jason Rumney <jasonr@gnu.org>
5414 * w32term.c (w32_char_font_type, w32_encode_char)
5415 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
5416 (w32_bdf_per_char_metric): New function.
5417 (w32_per_char_metric): Use it.
5418 (x_draw_glyph_string_background): Always draw background for BDF
5421 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
5422 GDI object which is a scarce resource.
5424 * w32bdf.c (search_file_line): Fix skipping of whitespace.
5425 (get_quoted_string): Fix limit on memchr search.
5426 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
5427 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
5428 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
5429 (get_cached_font_char, cache_char_offset): Use macro
5430 BDF_CODEPOINT_RANGE_COVER_P.
5431 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
5432 (clear_cached_bitmap_slots): New function.
5433 (GET_HEX_VALUE): G-Z, g-z are not hex.
5434 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
5435 (get_bitmap_with_cache): Use new cache implementation.
5436 (create_offscreen_bitmap): New function.
5437 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
5439 * w32term.c (x_produce_glyphs): If the distance from the current
5440 position to the next tab stop is less than a canonical character
5441 width, use the tab stop after that.
5442 (x_draw_glyphs): Handle case START and END are out of bounds more
5444 (x_clear_mouse_face): Block/unblock input.
5445 (x_display_and_set_cursor): Don't show a hollow box cursor for
5446 buffers whose cursor_type is nil.
5448 2000-09-29 Gerd Moellmann <gerd@gnu.org>
5450 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
5452 * dispextern.h (updating_frame): Declare extern.
5454 2000-09-29 Andreas Schwab <schwab@suse.de>
5456 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
5458 2000-09-29 Gerd Moellmann <gerd@gnu.org>
5460 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
5461 use its function definition.
5462 (tool_bar_items): Likewise.
5464 * lisp.h (fatal): Declare NO_RETURN.
5466 2000-09-29 Kenichi Handa <handa@etl.go.jp>
5468 * keymap.c: Remove the line "#undef NULL".
5470 2000-09-28 Gerd Moellmann <gerd@gnu.org>
5472 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
5474 2000-09-28 Dave Love <fx@gnu.org>
5476 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
5478 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
5480 * .gdbinit (xreload): Note its need on GNU/Linux.
5482 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
5483 r_alloc, r_alloc_free.
5485 2000-09-28 Kenichi Handa <handa@etl.go.jp>
5487 * syntax.c (skip_chars): Handle negation correctly.
5489 2000-09-27 Gerd Moellmann <gerd@gnu.org>
5491 * xfaces.c (realize_default_face): Call set_lface_from_font_name
5492 with non-zero FORCE_P argument.
5494 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
5497 * xdisp.c (window_box_height): Add an assertion.
5499 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
5500 tool-bar than is available.
5501 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
5503 2000-09-27 Dave Love <fx@gnu.org>
5505 * s/irix6-5.h: Now works 64-bit. Tidied.
5507 2000-09-26 Gerd Moellmann <gerd@gnu.org>
5509 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
5510 instead of BITS_PER_INT.
5511 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
5512 EMACS_UINT, respectively.
5513 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
5515 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
5517 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
5519 * window.c (freeze_window_starts): Construct last argument for
5520 foreach_window differently.
5522 * xfns.c (x_decode_color): Don't return a Lisp_Object.
5524 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
5525 EMACS_UINT instead of `int' and `unsigned int'.
5526 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
5528 * frame.h (struct frame): Make the `nothing' member of union
5529 output_data an EMACS_INT.
5531 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
5532 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
5533 size in the sdata structure.
5534 (SDATA_NBYTES, SDATA_DATA): New macros.
5535 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
5536 differently for the different layout of the sdata structure.
5537 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
5539 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
5540 Check that size recorded in the string size and size recorded in
5541 the sdata structure agree.
5543 2000-09-25 Dave Love <fx@gnu.org>
5545 * buffer.c: Include stdio.h.
5547 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
5549 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
5551 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
5552 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
5553 (__malloc_extra_blocks): Declare as __malloc_size_t.
5555 2000-09-25 Gerd Moellmann <gerd@gnu.org>
5557 * alloc.c (mark_image): Use GC_NILP instead of NILP.
5559 * keyboard.c (show_help_echo): Set help_echo_showing_p.
5560 (read_char): If help-echo is showing, preserve the echo area
5563 * xdisp.c (help_echo_showing_p): New variable.
5564 (set_message): Reset it to 0.
5565 (init_xdisp): Initialize help_echo_showing_p.
5567 * dispextern.h (help_echo_showing_p): Declare extern.
5569 * config.in: Fix typo in __GNUC_MINOR__.
5571 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
5573 * s/freebsd.h (POSIX_SIGNALS): Define.
5575 * xterm.c (x_clear_mouse_face): Block/unblock input.
5577 2000-09-24 Dave Love <fx@gnu.org>
5579 * fns.c (base64_encode_1): Fix last change.
5581 2000-09-22 Gerd Moellmann <gerd@gnu.org>
5583 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
5585 * xdisp.c (try_window_reusing_current_matrix): More fixes
5586 for the case window has a header-line.
5588 2000-09-22 Dave Love <fx@gnu.org>
5590 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
5593 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
5595 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
5597 2000-09-21 Gerd Moellmann <gerd@gnu.org>
5599 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
5602 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
5605 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
5606 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
5607 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
5610 * marker.c (byte_char_debug_check): Return void.
5612 * xfns.c (Fx_create_frame): Set default frame parameter value
5613 for tool-bar-lines to 1.
5615 * dispnew.c (scrolling_window): Compare y-positions of rows
5616 equal at the start. Some simplification.
5618 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
5619 reused rows' y-position in the case window has a header-line, and
5620 new window start is greater than old window start.
5622 * process.c (process_sent_to): New variable.
5623 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
5624 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
5625 Declare more parameters volatile.
5627 * lread.c (Vrecursive_load_depth_limit): New variable.
5628 (Fload): Check recursive loads whose recursion depth exceeds
5629 Vrecursive_load_depth_limit.
5630 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
5632 2000-09-20 Gerd Moellmann <gerd@gnu.org>
5634 * fileio.c (Fread_file_name): Doc fix.
5636 * editfns.c (Fmessage_or_box): Doc fix.
5638 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
5640 * xfns.c (xbm_scan): Allow C-style comments.
5642 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
5643 symbols are specified, add color translations to the cache.
5644 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
5645 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
5647 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
5648 structures to xpm_init_color_cache.
5650 2000-09-19 Gerd Moellmann <gerd@gnu.org>
5652 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
5654 2000-09-19 Andrew Innes <andrewi@gnu.org>
5656 * makefile.nt (bootstrap-emacs): Don't change directory.
5658 2000-09-19 Kenichi Handa <handa@etl.go.jp>
5660 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
5662 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
5663 If output buffer is too small, signal an appropriated error.
5665 2000-09-18 Dave Love <fx@gnu.org>
5667 * keyboard.c (menu_bar_items, tool_bar_items)
5668 (current_active_maps): Remove redundant get_local_map call.
5670 2000-09-18 Gerd Moellmann <gerd@gnu.org>
5672 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
5673 cursor for buffers whose cursor_type is nil.
5675 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
5676 a feature to implement that is already implemented.
5677 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
5680 * xfns.c (x_clear_image_1): New function.
5681 (x_clear_image): Use it.
5682 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
5684 * dispnew.c (update_window): Move test for invisible lines
5685 at the top to update_window_line.
5686 (update_window_line): Handle invisible lines here.
5688 * xfns.c (clear_image_cache): Clear current matrices of all
5689 frames sharing an image cache. Block input while freeing
5690 images. Fix timestamp comparison.
5691 (x_clear_image): Also free the mask.
5693 * xfns.c (lookup_image): Block input while loading the image so
5694 that we won't get interrupted in a state where the image isn't yet
5696 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
5697 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
5698 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
5699 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
5701 2000-09-16 Gerd Moellmann <gerd@gnu.org>
5703 * dispnew.c (update_window): Make sure to make desired rows
5704 current even if they are completely invisible at the top
5707 2000-09-15 Gerd Moellmann <gerd@gnu.org>
5709 * xfns.c (lookup_image): Build mask before applying an algorithm.
5710 Recognize algorithm `disabled'.
5711 (cross_disabled_images): New variable.
5712 (COLOR_INTENSITY): New macro.
5713 (x_detect_edges): Use COLOR_INTENSITY.
5714 (x_disable_image): New function.
5715 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
5717 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
5718 disabled state, don't apply an image transformation algorithm if
5719 the user specified an image for the disabled state. Use
5720 `:algorithm disabled' for creating a disabled item's image if the
5721 user hasn't specified an image.
5723 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
5724 allocation functions with the XPM lib.
5725 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
5726 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
5727 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
5728 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
5729 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
5730 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
5731 functions, if possible, because these handle color allocation
5732 failure more gracefully.
5733 (Fimage_mask_p): New function.
5735 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
5736 (Qedge_detection, Qheuristic): New symbols.
5737 (syms_of_xfns): Initialize new symbols.
5738 (lookup_image): Handle `:mask X', `:algorithm emboss', and
5739 `algorithm (edge-detection ...)'.
5740 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
5741 (tiff_format, gif_format, gs_format): Add `:mask'.
5742 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
5743 (GIF_MASK, GS_MASK): New enumerators.
5744 (x_laplace_read_row, x_laplace_write_row): Functions removed.
5745 (emboss_matrix, laplace_matrix): New variables.
5746 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
5747 (x_edge_detection): New functions.
5748 (x_laplace): Rewritten in terms of x_detect_edges.
5749 (x_build_heuristic_mask): If image has a mask, free it.
5751 2000-09-14 Andrew Innes <andrewi@gnu.org>
5753 * makefile.w32-in: Revert to Unix line endings.
5755 2000-09-14 Andrew Innes <andrewi@gnu.org>
5757 * makefile.w32-in: Standardize indentation somewhat.
5758 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
5759 cater for differences between shells.
5761 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
5763 2000-09-14 Gerd Moellmann <gerd@gnu.org>
5765 * xterm.c (x_produce_glyphs): If the distance from the current
5766 position to the next tab stop is less than a canonical character
5767 width, use the tab stop after that.
5769 2000-09-14 Dave Love <fx@gnu.org>
5771 * buffer.c (alloc_buffer_text): Fix xmalloc call.
5773 2000-09-14 Gerd Moellmann <gerd@gnu.org>
5775 * xdisp.c (handle_fontified_prop): While running fontification
5776 functions, bind `fontification-functions' and
5777 `after-change-functions' to nil.
5779 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
5780 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
5782 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
5784 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
5785 USE_MMAP_FOR_BUFFERS.
5787 * insdel.c (make_gap): Use enlarge_buffer_text.
5789 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
5790 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
5791 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
5792 from former r_alloc_* functions in ralloc.c.
5793 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
5794 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
5795 (mmap_init) [REL_ALLOC_MMAP]: New function.
5796 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
5797 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
5800 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
5801 (enlarge_buffer_text): Add prototype.
5803 * ralloc.c: Remove everything having to do with the use of mmap.
5805 2000-09-13 Gerd Moellmann <gerd@gnu.org>
5807 * sound.c (Fplay_sound): Doc fix.
5809 * keyboard.c: Avoid some more compiler warnings.
5810 (parse_tool_bar_item): Ignore cached key bindings.
5812 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
5813 and allocation of Lisp data.
5815 2000-09-12 Gerd Moellmann <gerd@gnu.org>
5817 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
5818 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
5821 * lread.c (Fload): Put code checking for recursive loads in #if 0.
5823 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
5825 * ccl.c: Comment fixed.
5826 (MAX_MAP_SET_LEVEL): Increased to 30.
5827 (PUSH_MAPPING_STACK): Enclose with do-while block.
5828 (POP_MAPPING_STACK): Likewise.
5829 (stack_idx_of_map_multiple): New variable.
5830 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
5831 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
5832 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
5833 (ccl_driver) <CCL_MapSingle>: Likewise.
5834 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
5835 with the case where looking up process reaches to the end of
5836 map-set, and call CCL programs as the above change.
5838 2000-09-11 Gerd Moellmann <gerd@gnu.org>
5840 * xfns.c (png_load, jpeg_load): Declare some variables volatile
5841 that might be clobbered by longjmp.
5842 (check_x_display_info, x_decode_color, create_frame_xic)
5843 (Fx_display_backing_store, Fx_display_visual_class)
5844 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
5846 * lread.c (init_lread): Set Vloads_in_progress to nil.
5847 (Fload): Show list of recursively loaded files, when signaling an
5850 * lread.c (Vloads_in_progress): New variable.
5851 (record_load_unwind): New function.
5852 (Fload): Check for recursive loads.
5853 (syms_of_lread): Initialize Vloads_in_progress.
5854 (read_integer, read1): Avoid some compiler warnings.
5856 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
5859 2000-09-11 Miles Bader <miles@gnu.org>
5861 * editfns.c (Fbuffer_string): Doc fix.
5863 2000-09-10 Gerd Moellmann <gerd@gnu.org>
5865 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
5867 2000-09-09 Ken Raeburn <raeburn@gnu.org>
5869 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
5870 whether to include other header files.
5872 2000-09-09 Gerd Moellmann <gerd@gnu.org>
5874 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
5875 by Fmemq as a boolean.
5877 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
5879 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
5881 2000-09-08 Gerd Moellmann <gerd@gnu.org>
5883 * ralloc.c (mmap_fd): Remove initializer which can make it
5884 read-only in a dumped Emacs.
5885 (mmap_fd_1): New variable.
5886 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
5887 restore it from there.
5888 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
5889 unconditionally so that mmap_fd can be initialized there.
5890 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
5891 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
5892 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
5894 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
5896 * xdisp.c (dump_glyph_row): Fix printf format string.
5897 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
5899 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
5901 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
5904 * xdisp.c (try_window_id): When trying to locate cursor in
5905 unchanged rows at the top, handle the case that we can't find it.
5907 * xterm.c (x_draw_glyphs): Handle case START and END are out
5908 of bounds more carefully.
5910 2000-09-08 Dave Love <fx@gnu.org>
5912 * s/sol2.h (REL_ALLOC_MMAP): Define.
5913 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
5915 * ralloc.c: Don't include string.h (redundant).
5916 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
5917 [!MAP_ANON]: Include fcntl.h.
5918 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
5919 (r_alloc, r_re_alloc, r_alloc_free)
5920 (mmap_enlarge, mmap_set_vars): Use it.
5921 (r_alloc_init_fd): New function.
5922 (__morecore) [SYSTEM_MALLOC]: Don't declare.
5923 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
5926 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
5929 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
5930 change to __NetBSD__.
5932 2000-09-08 Kenichi Handa <handa@etl.go.jp>
5934 * search.c (compile_pattern): Check the multibyteness of cached
5937 2000-09-08 Miles Bader <miles@gnu.org>
5939 * xfaces.c (default_face_vector): Function removed.
5940 (Finternal_merge_in_global_face): Restore old global/local
5941 attribute override order. Use inline loop instead of calling
5942 default_face_vector.
5944 2000-09-07 Gerd Moellmann <gerd@gnu.org>
5946 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5947 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5948 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5949 where necessary, in case POINTER_TYPE is `void'.
5951 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5953 * frame.c (make_terminal_frame): Initialize frame foreground and
5954 background colors to unspecified, for the initial instance of an
5957 2000-09-07 Gerd Moellmann <gerd@gnu.org>
5959 * ralloc.c (mmap_find): Fix overlap computation.
5960 (mmap_enlarge): Compute nbytes before trying to find an
5963 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5966 * lread.c (syms_of_lread): Change value of regexp
5967 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5969 * xmenu.c (xdialog_show): When looking up the selection in
5970 menu_items, take `quote' boundaries into account; this corresponds
5971 to a nil ITEM in x-popup-dialog.
5973 2000-09-07 Kenichi Handa <handa@etl.go.jp>
5975 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5977 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5979 * coding.c (encode_coding_sjis_big5): Use translation table for
5980 encoding, not decoding. Fix the handling of latin-jisx0201.
5981 Check for the charset katakana-jisx0201 too.
5982 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
5983 (detect_coding_sjis): Check the byte sequence more rigidly.
5985 2000-09-07 Gerd Moellmann <gerd@gnu.org>
5987 * xfaces.c (Vparam_value_alist): New variable.
5988 (syms_of_xfaces): Initialize it.
5989 (Finternal_set_lisp_face_attribute): Avoid more consing.
5991 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5993 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5994 (Qbackground_mode): New variable.
5995 (syms_of_frame_1): Initialize Qbackground_mode.
5997 * lisp.h (Qdisplay): Declare extern.
5999 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
6000 change face on all frames, and change the default for new frames.
6002 2000-09-07 Dave Love <fx@gnu.org>
6004 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
6006 2000-09-07 Kenichi Handa <handa@etl.go.jp>
6008 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
6010 * charset.c: Include composite.h
6011 (lisp_string_width): New function.
6012 (Fstring_width): Call lisp_string_width instead of strwidth.
6014 * Makefile.in (charset.o): Depends on composite.h.
6016 * process.c (read_process_output): Before inserting the decoded
6017 text in the buffer, adjust the multibyteness.
6019 2000-09-06 Gerd Moellmann <gerd@gnu.org>
6021 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
6022 buffer's text buffer is null, map new memory.
6024 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
6025 POINTER_TYPE and size_t.
6026 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
6027 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
6028 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
6029 [REL_ALLOC_MMAP]: New macros.
6030 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
6031 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
6032 [REL_ALLOC_MMAP]: New functions.
6034 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
6035 before and after unexec.
6037 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
6038 text buffers if necessary.
6040 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
6041 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
6044 * config.in (HAVE_MMAP): Add #undef.
6046 2000-09-05 Gerd Moellmann <gerd@gnu.org>
6048 * frame.c (Qdisplay_type): New variable.
6049 (syms_of_frame_1): Initialize it.
6050 (Fframe_parameter): New function that avoids consing.
6051 (syms_of_frame): Defsubr it.
6053 * buffer.c (Fother_buffer): Consider buffers as invisible when
6054 they are displayed in a window on an invisible frame.
6056 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
6057 get-largest-window always return nil.
6059 2000-09-04 Gerd Moellmann <gerd@gnu.org>
6061 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
6062 variable; recognize Emacs 19 elc files.
6064 2000-09-04 Miles Bader <miles@gnu.org>
6066 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
6067 before initially popping up the menu, so the menu doesn't flash
6068 when the face settings are significantly different from the defaults.
6070 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
6072 * regex.c (WIDE_CHAR_SUPPORT): New macro.
6073 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
6074 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
6075 (BIT_UNIBYTE): Remove.
6076 (re_match_2_internal): Delete corresponding code and streamline the
6077 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
6078 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
6079 (re_wctype_t): New type.
6080 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
6081 (regex_compile): Use them and fix handling of overly long char classes.
6083 2000-09-03 Andrew Innes <andrewi@gnu.org>
6085 * makefile.w32-in: Change to DOS line endings.
6087 * s/ms-w32.h (ORDINARY_LINK): New define.
6089 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
6090 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
6092 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
6093 (distclean): Delete them here instead.
6095 * w32proc.c (compare_env): Convert to uppercase for comparison,
6096 not lowercase, to match how the native Windows shell works.
6098 2000-09-03 Jason Rumney <jasonr@gnu.org>
6100 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
6101 CVS changes the line-ends when checking in/out on DOS/Windows.
6103 * makefile.nt (emacs): Do not change directory to run temacs, as
6104 the load-path is set relative to current directory.
6106 2000-09-03 Miles Bader <miles@gnu.org>
6108 * xterm.c (x_alloc_lighter_color_for_widget): New function.
6110 2000-09-02 Gerd Moellmann <gerd@gnu.org>
6112 * xdisp.c (redisplay_mode_lines): New function.
6113 (display_mode_lines): Return number of mode lines displayed.
6114 (echo_area_display): Use redisplay_mode_lines to draw garbaged
6115 mode lines. Don't temporarily bind redisplay-dont-pause to t.
6117 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
6118 string.h and strings.h.
6119 (index) [HAVE_INDEX]: Add prototype.
6121 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
6122 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
6124 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
6125 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6127 2000-09-01 Gerd Moellmann <gerd@gnu.org>
6129 * lread.c (read1): Accept `?' as symbol constituent, for
6130 compatiblity with XEmacs.
6132 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
6134 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
6135 (struct re_pattern_buffer): Remove newline_anchor.
6136 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
6137 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
6138 (re_max_failures, fail_stack): Use size_t rather than unsigned.
6139 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
6140 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
6141 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
6142 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
6143 Get rid of references to newline_anchor.
6144 (regcomp): Allocate and precompute a fastmap.
6146 2000-08-31 Gerd Moellmann <gerd@gnu.org>
6148 * lread.c (openp): GCPRO local variable `filename'.
6150 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
6152 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
6154 * regex.c: Merge some changes from GNU libc. Add prototypes.
6155 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
6156 Use memcmp and memcpy instead of bcopy and bcmp.
6157 (init_syntax_once): Use ISALNUM.
6158 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
6159 (REG_UNSET_VALUE): Remove. Use NULL instead.
6160 (REG_UNSET, re_match_2_internal): Use NULL.
6161 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
6163 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
6164 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
6165 (regex_compile): In handle_interval, return an error rather than try to
6166 unfetch the interval if we can't find the closing brace.
6167 Obey the RE_NO_GNU_OPS syntax bit.
6168 (TOLOWER): New macro.
6170 (regexec): Allocate regs.start and regs.end as one block.
6172 2000-08-30 Gerd Moellmann <gerd@gnu.org>
6174 * xdisp.c (echo_area_display): Check display_completed instead
6175 of calling detect_input_pending.
6177 * dispnew.c (update_frame): Only set display_completed here; move
6178 the update_begin and update_end calls here from update_frame_1.
6179 (update_frame_1): Don't set display_completed here, don't call
6180 update_begin/update_end.
6182 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
6183 instead of store_frame_param.
6185 2000-08-29 Gerd Moellmann <gerd@gnu.org>
6187 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
6188 desired window matrix hasn't been displayed, use the current row
6189 instead. Make sure that only those frame rows are updated for
6190 which there exists a corresponding enabled desired row.
6192 2000-08-29 Miles Bader <miles@gnu.org>
6194 * xfaces.c (default_face_vector): New function.
6195 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
6197 2000-08-29 Gerd Moellmann <gerd@gnu.org>
6199 * lread.c (openp): Prevent temporary string passed to
6200 Ffile_readable_p from being garbage collected.
6202 2000-08-28 Dave Love <fx@gnu.org>
6204 * keymap.c (store_in_keymap): Add `static' to declaration.
6206 2000-08-28 Gerd Moellmann <gerd@gnu.org>
6208 * emacs.c, callint.c, doc.c, editfns.c
6209 (toplevel) [HAVE_STRING_H]: Include string.h.
6210 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
6211 (index): Remove prototypes which might conflict with non-standard
6212 definitions of index/strchr.
6214 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
6215 (rindex): Define only if !HAVE_RINDEX.
6217 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
6219 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
6221 2000-08-28 Miles Bader <miles@gnu.org>
6223 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
6224 made inconsistent by a font-related attribute in FROM.
6225 (merge_face_inheritance): Add function comment.
6227 2000-08-28 Kenichi Handa <handa@etl.go.jp>
6229 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
6230 the 4th arg (PREV_EVENT) Qt to suppress input method.
6232 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
6234 * regex.c: Indent cpp directives and remove parens after `defined'.
6235 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
6236 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
6237 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
6238 (re_compile_pattern): Use size_t for length.
6239 (init_syntax_once): Move to a better place.
6240 * regex.h: Merge changes from GNU libc. Indent cpp directives.
6241 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
6243 * syntax.c (back_comment): Detect cases where a comment-starter is
6244 actually inside another comment as in: /* a // b */ c // d \n.
6245 Make it clear that `comstart_pos' is unused for nested comments.
6247 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
6248 (KEYMAPP): New macro.
6249 (Fkeymap_parent, Fset_keymap_parent): Use it.
6250 (fix_submap_inheritance): Mark it static.
6251 (define_as_prefix, describe_buffer_bindings, describe_command)
6252 (describe_translation, describe_map): Complete prototypes.
6254 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
6256 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
6257 to better match the key-lookup behavior.
6259 2000-08-27 Gerd Moellmann <gerd@gnu.org>
6261 * xfaces.c (lface_fully_specified_p): Handle :inherit.
6262 (Finternal_set_lisp_face_attribute): Fix typo in error message.
6264 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
6266 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
6267 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
6268 (xterm.o): Depend on coding.h
6270 2000-08-26 Kenichi Handa <handa@etl.go.jp>
6272 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
6273 the corresponding '#endif'.
6275 2000-08-26 Miles Bader <miles@gnu.org>
6277 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
6278 * xfaces.c (QCinherit): New variable.
6279 (syms_of_xfaces): Initialize it.
6280 (LFACE_INHERIT): New macro.
6281 (Finternal_get_lisp_face_attribute)
6282 (merge_face_vector_with_property)
6283 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
6284 (check_lface_attrs): Allow new types of face height. Check
6286 (CYCLE_CHECK): New macro.
6287 (merge_face_inheritance): New function.
6288 (merge_face_vectors): Merge inherited faces too. Add F and
6289 CYCLE_CHECK arguments.
6290 (merge_face_vector_with_property, Finternal_merge_in_global_face)
6291 (lookup_named_face, lookup_derived_face, realize_named_face)
6292 (face_at_string_position, face_at_buffer_position): Supply
6293 new F and CYCLE_CHECK arguments to merge_face_vectors.
6294 (merge_face_heights): New function.
6295 (merge_face_vectors, merge_face_vector_with_property)
6296 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
6297 handle relative face heights.
6298 (lface_same_font_attributes_p): Compare heights using EQ.
6300 2000-08-26 Kenichi Handa <handa@etl.go.jp>
6302 * charset.c (char_to_string): Check the character validity.
6303 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6305 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
6307 * regex.c (PUSH_FAILURE_COUNT): New macro.
6308 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
6309 Handle popping of a register's or a counter's data.
6310 (POP_FAILURE_POINT): Use the new name.
6311 (re_match_2_internal): Push counter data on the stack for succeed_n,
6312 jump_n and set_number_at and remove misleading dead code in succeed_n.
6314 2000-08-25 Gerd Moellmann <gerd@gnu.org>
6316 * xdisp.c (redisplay_internal): If considering all windows on all
6317 frames, update the display for each frame as soon as possible,
6318 instead of first building all desired matrices for all frames, and
6319 then updating them all.
6320 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
6322 2000-08-24 Gerd Moellmann <gerd@gnu.org>
6324 * bytecode.c (mark_byte_stack): Add a comment.
6326 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
6327 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
6330 2000-08-24 Kenichi Handa <handa@etl.go.jp>
6332 * minibuf.c (do_completion): Always use compare-string, not
6333 string-equal because the latter doesn't pay attention to
6334 multibyteness of strings.
6336 * process.c (create_process): Don't setup raw-text coding here.
6337 (Fopen_network_stream): Don't set coding->src_multibyte and
6338 coding->dst_multibyte here.
6339 (read_process_output): For process filter, return unibyte string
6340 if default-enable-multibyte-characters is nil.
6341 (send_process): If OBJECT is multibyte text, be sure to encoded it
6342 by the specified coding system for the process. Otherwise, setup
6344 (init_process): Don't initialize default-process-coding-system here.
6346 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
6348 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
6349 <scroll-down-aggressively>: Likewise.
6351 2000-08-23 Kenichi Handa <handa@etl.go.jp>
6353 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
6354 zero. Set coding->produced_char correctly.
6356 2000-08-22 Andrew Innes <andrewi@gnu.org>
6358 * makefile.w32-in: New file.
6360 * unexw32.c (unexec): Ignore old_name, and use the actual location
6361 of the current executable instead. Base new_name on this.
6363 * w32proc.c (create_child): Remove reference to security
6364 descriptor, which isn't needed and doesn't compile with mingw32.
6366 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6367 up dllimport attributes.
6368 (x_update_window_end): Update prototype.
6370 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
6371 extern, which screws up dllimport attributes.
6373 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6374 up dllimport attributes.
6376 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
6377 screws up dllimport attributes.
6379 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6380 up dllimport attributes.
6381 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
6382 screws up dllimport attributes.
6384 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6385 up dllimport attributes.
6387 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
6388 screws up dllimport attributes.
6390 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
6391 screws up dllimport attributes.
6393 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6394 up dllimport attributes.
6396 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
6397 unnecessary extern, which screws up dllimport attributes.
6400 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6401 up dllimport attributes.
6403 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
6404 unnecessary extern, which screws up dllimport attributes.
6406 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
6407 screws up dllimport attributes.
6409 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6410 up dllimport attributes.
6412 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
6414 * w32bdf.c (search_file_line):
6415 (set_bdf_font_info):
6417 (w32_get_bdf_glyph):
6418 (w32_BDF_to_x_font): Fix compile warnings.
6420 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
6422 * w32select.c: Include keyboard.h before frame.h.
6424 * w32fns.c (max): Define macro.
6425 (JOHAB_CHARSET): Define if not known.
6426 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
6427 (Fx_show_tip): Synch with X version.
6429 * w32xfns.c: Include keyboard.h before frame.h.
6431 * w32fns.c: Include keyboard.h before frame.h.
6433 * w32term.c: Include keyboard.h before frame.h.
6435 * fontset.c: Include keyboard.h before frame.h.
6437 * w32inevt.c: Include keyboard.h before frame.h.
6438 (MOUSE_MOVED): Define if not known.
6440 * minibuf.c: Include keyboard.h before frame.h.
6442 * keyboard.c: Include keyboard.h before frame.h.
6444 * indent.c: Include keyboard.h before frame.h.
6446 * dispnew.c: Include keyboard.h before frame.h.
6448 * buffer.c: Include keyboard.h before frame.h.
6450 * alloc.c: Include keyboard.h before frame.h.
6452 * print.c: Include keyboard.h before frame.h.
6454 * process.c: Include keyboard.h before frame.h.
6456 * scroll.c: Include keyboard.h before frame.h.
6458 * sysdep.c: Include keyboard.h before frame.h.
6460 * term.c: Include keyboard.h before frame.h.
6462 * window.c: Include keyboard.h before frame.h.
6464 * xdisp.c: Include keyboard.h before frame.h.
6465 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
6467 * frame.c: Include keyboard.h before frame.h.
6469 * w32heap.h: Undefine min, max.
6471 * w32gui.h: Undefine min, max.
6473 * unexw32.c: Change PUCHAR to PCHAR.
6474 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
6477 (copy_executable_and_dump_data): Remove unnecessary static defs.
6478 (copy_executable_and_dump_data): Fix compile warnings.
6480 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
6482 * w32console.c (min): Define macro.
6483 (clear_frame, write_glyphs): Fix compile warning.
6485 * w32proc.c (compare_env):
6486 (find_child_console): Fix compile warning.
6488 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
6489 sys_errlist instead of _sys_errlist.
6490 (get_emacs_configuration_options): New function.
6492 * s/ms-w32.h (sys_nerr): Provide default definition.
6493 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
6494 name with _ prepended.
6495 (NSIG): Define if not known.
6496 (get_emacs_configuration): Provide extern declaration.
6497 (get_emacs_configuration_options): Provide extern declaration.
6498 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
6500 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
6502 (read_unc_volume): Fix compile warning.
6504 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
6505 definitions from being used.
6507 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
6509 * w32.c (unc_volume_file_attributes):
6510 (open_unc_volume): Make arg const.
6512 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
6513 (read_input_waiting): Remove excess parameter.
6515 * w32.c (init_environment): Call _access.
6516 (check_windows_init_file): Call _close.
6517 (init_user_info): Call _putenv.
6518 (init_environment): Call _putenv and _strdup.
6519 (init_ntproc): Reset volume info cache on startup.
6521 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
6522 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
6523 cannot override the CRT malloc.
6525 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
6526 (LINK_FLAGS): Append to original value of LINK_FLAGS.
6528 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
6529 unless we are linking with a static CRT.
6530 (RVA_TO_PTR): Cast result to unsigned char*.
6532 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
6533 (add_volume_info): Use xstrdup.
6535 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
6537 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
6538 (do_completion, Fminibuffer_complete_word): Use it.
6539 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
6540 var so it can take non-boolean values.
6542 2000-08-21 Gerd Moellmann <gerd@gnu.org>
6544 * editfns.c (find_field): Formatting changes.
6545 (toplevel): Some old-style function forward declarations
6546 changed to prototypes, some new protypes added, some functions
6549 * lisp.h (set_time_zone_rule): Add prototype.
6550 (use_dialog_box): External declaration.
6552 * keyboard.c (gen_help_event): Add parameter SIZE.
6553 (kbd_buffer_events_waiting): Slightly rewritten.
6554 (clear_event): New function.
6555 (kbd_buffer_get_event): Use it, and clear the input_events of
6557 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
6558 don't fill the newly created array with nils.
6559 (toplevel): Convert some old-style function forward declarations
6562 * keyboard.h (gen_help_event): Change prototype.
6564 * xterm.c (XTread_socket): Change calls to gen_help_event.
6566 * w32term.c (w32_read_socket): Change calls to gen_help_event.
6568 * eval.c (Fmacroexpand): Doc fix.
6570 2000-08-20 Jason Rumney <jasonr@gnu.org>
6572 * w32term.h (x_display_info_for_display): Remove as this function
6573 does not exist on W32.
6575 * w32term.c (help_echo_window): New variable.
6576 (syms_of_w32term): staticpro it.
6577 (note_mode_line_highlight): Set it.
6578 (XTextExtents16): Removed as there is no equivalent on W32.
6579 (x_compute_glyph_string_overhangs): Incomplete body removed, as
6580 the X way of doing this will not work for W32.
6581 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
6582 (x_draw_image_foreground): Avoid drawing outside of the clip area
6583 when image doesn't have a mask.
6584 (note_mouse_highlight): Process overlays in the right order of
6585 priority. Set help_echo_window.
6586 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
6587 because that's more visible for large images.
6589 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
6590 name to single_keymap_panes.
6591 (w32_menu_show): Set wv->title when dealing with titles.
6592 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
6594 2000-08-21 Miles Bader <miles@gnu.org>
6596 * minibuf.c (do_completion): Try again if we rewrite the input
6597 string, but no completion was done, so that any completion message
6600 2000-08-20 Gerd Moellmann <gerd@gnu.org>
6602 * xfaces.c (lface_equal_p): Compare strings differently.
6603 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
6604 (realize_tty_face): Use them.
6605 (syms_of_xfaces): Initialize new variables.
6606 (map_tty_color): New function, extracted from realize_tty_face.
6607 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
6608 foreground or background color, store the new color name in the
6609 realized face; previous code trying to do this had no effect.
6610 (realize_tty_face): Use map_tty_color.
6611 (Fclear_face_cache): Set face_change_count and ensure thorough
6614 2000-08-19 Gerd Moellmann <gerd@gnu.org>
6616 * undo.c (record_first_change, record_marker_adjustment): Don't
6617 use XBUFFER on last_undo_buffer which might not be a buffer.
6619 2000-08-18 Kenichi Handa <handa@etl.go.jp>
6621 * coding.c (decode_coding_string): Set members consumed,
6622 consumed_char, produced, produced_char of *coding correctly. If
6623 decode_coding doesn't consume any byte, don't try anymore.
6624 (encode_coding_string): Likewise.
6626 2000-08-18 Gerd Moellmann <gerd@gnu.org>
6628 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
6629 conditional have void type, for Standard C compilers.
6631 * xdisp.c (redisplay_internal): Compare windows for equality with
6632 EQ, instead of applying XWINDOW to something that might not
6635 2000-08-18 Kenichi Handa <handa@etl.go.jp>
6637 * fontset.c (Finternal_char_font): Search only the selected frame
6638 for a window of the current buffer.
6640 2000-08-18 Gerd Moellmann <gerd@gnu.org>
6642 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
6645 * keyboard.c (kbd_buffer_get_event): Handle the case that the
6646 second half of a HELP_EVENT is found at the start of kbd_buffer.
6648 2000-08-18 Miles Bader <miles@gnu.org>
6650 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
6652 * editfns.c (save_restriction_save): Rewrite to use markers.
6653 (save_restriction_restore): Rewrite to understand new form of data
6654 saved by save_restriction_save.
6655 (Fsave_restriction): Remove cautionary note in doc-string.
6657 2000-08-17 Gerd Moellmann <gerd@gnu.org>
6659 * fileio.c (build_annotations): Add a comment explaining the
6660 return value of format-annotate-function. Replace a spurious call
6661 to Flength with a CONSP test. Call format-annotate-function with
6662 a fifth arg specifying how many times the function is been called
6663 in a row, to let it choose temporary buffers appropriately.
6665 2000-08-17 Dave Love <fx@gnu.org>
6667 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
6668 declare make_temp_name twice.
6670 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
6671 (unreadpure): Give it an arg.
6673 * unexalpha.c: Prototype fatal_unexec, mark_x,
6674 update_dynamic_symbols. Declare unexec as void.
6676 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
6677 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
6679 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
6680 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
6682 * alloca.c: Use #error.
6683 [POINTER_TYPE]: Use it.
6685 * eval.c (Fdefvar): Doc fix.
6687 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
6688 INITIALIZE_INTERVAL.
6690 * buffer.h: Avoid DECLARE_INTERVALS.
6692 * config.in: Add size_t.
6694 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
6696 * w16select.c (set_clipboard_data): If there's not enough memory
6697 to put text into clipboard, return 1, as Fw16_set_clipboard_data
6698 expects. In case of other failures, return 3.
6699 (system_error_msg): New error message.
6700 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
6703 2000-08-16 Gerd Moellmann <gerd@gnu.org>
6705 * term.c (write_glyphs): Also turn off inverse video after turning
6706 off other appearances in case TS_exit_attribute_mode is not equal
6707 to TS_end_standout_mode.
6708 (insert_glyphs): Turn inverse video on/off for each run of glyphs
6710 (turn_off_face): Reset standout_mode only if
6711 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
6712 is equal to TS_end_standout_mode.
6714 2000-08-16 Kenichi Handa <handa@etl.go.jp>
6716 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
6717 sequence at the end of the source block.
6719 * ccl.c (Fccl_program_p): Docstring modified.
6720 (Fccl_execute): Likewise.
6721 (Fccl_execute_on_string): Likewise.
6723 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
6725 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
6727 2000-08-16 Kenichi Handa <handa@etl.go.jp>
6729 The following changes are mainly to fix bugs of
6730 encode/decode-coding-string failing if encoding/decoding return
6731 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
6732 variable conversion_buffer.
6734 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
6735 decrement dst_end to avoid buffer overflow in the later call of
6738 * coding.h (conversion_buffer_size, conversion_buffer)
6739 (get_conversion_buffer): Extern deleted.
6741 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
6742 (conversion_buffer, conversion_buffer_size): Variables deleted.
6743 (get_conversion_buffer): Function deleted.
6744 (struct conversion_buffer): New structure.
6745 (MAX_ALLOCA): New macro.
6746 (allocate_conversion_buffer): New macro.
6747 (extend_conversion_buffer, free_conversion_buffer): New functions.
6748 (ccl_coding_driver): Set coding->result.
6749 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
6750 this is the last block of source.
6751 (encode_coding): Likewise. Handle the source block as the last
6752 one only when the whole source text is consumed.
6753 (decode_coding_string): Handle the case that the output buffer is
6754 too small to decode the whole source text. Use
6755 allocate_conversion_buffer, extend_conversion_buffer and
6756 free_conversion_buffer, not get_conversion_buffer.
6757 (encode_coding_string): Likewise.
6758 (init_coding): Function deleted.
6759 (init_coding_once): Delete code to initialize conversion_buffer_size.
6761 * emacs.c (main): Don't call init_coding.
6763 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
6765 * term.c (write_glyphs): Use a locally declared conversion_buffer.
6766 (insert_glyphs): Likewise.
6768 * w32console.c (write_glyphs): Use a locally declared
6771 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
6773 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
6774 member of display_info is NULL.
6776 2000-08-15 Gerd Moellmann <gerd@gnu.org>
6778 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
6780 * term.c (turn_off_face): Reset standout_mode when resetting
6781 appearances with capability `me'.
6782 (write_glyphs): Switch on inverse video before each face change.
6784 2000-08-14 Dave Love <fx@gnu.org>
6786 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
6787 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
6788 (lisp_free): Declare and make static.
6790 * window.c: Fix embedded comment.
6791 (syms_of_window): Fix doc string.
6793 2000-08-14 Gerd Moellmann <gerd@gnu.org>
6795 * keymap.c (push_key_description): If C without modifiers is < 32,
6796 make sure to print `C-' before `M-', like in the manual.
6798 2000-08-11 Gerd Moellmann <gerd@gnu.org>
6800 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
6801 since they aren't relocated anymore.
6802 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
6804 * xdisp.c (try_cursor_movement): Fix handling of cursor in
6805 partially visible line which is smaller than the window's height.
6807 2000-08-11 Kenichi Handa <handa@etl.go.jp>
6809 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
6810 the multibyte form of eight-bit-control characters.
6811 (Fccl_execute_on_string): Initialize ccl->multibyte.
6813 * ccl.h (struct ccl_program): New member multibyte.
6815 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
6817 2000-08-11 Kenichi Handa <handa@etl.go.jp>
6819 * regex.c (regex_compile) <normal_char>: Pay attention to
6821 (analyse_first) <exactn>: Setup fastmap correctly for
6822 eight-bit-control characters.
6824 2000-08-11 Kenichi Handa <handa@etl.go.jp>
6826 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
6828 * keyboard.c (make_lispy_event): Handle the new event type
6829 multibyte_char_keystroke.
6831 * xterm.c: Include coding.h.
6832 (XTread_socket): Work around a bug of XmbLookupString. If the
6833 input is from XIM, decode it according to the current locale. In
6834 that case, generate multibyte_char_keystroke events.
6836 2000-08-11 Kenichi Handa <handa@etl.go.jp>
6838 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
6839 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
6841 2000-08-10 Gerd Moellmann <gerd@gnu.org>
6843 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
6844 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
6845 (move_it_in_display_line_to): Record iterator's ascent and descent
6846 before producing glyphs, and restore them when we know the glyph
6847 doesn't fit on the line.
6848 (move_it_to): Restructured so that it's easier to debug. If
6849 moving to a vpos, and not moving to an x or character position,
6850 stop as soon as the specified vpos is reached; don't move further
6851 into that line because that might change the computed line height.
6852 (try_cursor_movement): New function, extracted from the cursor
6853 movement branch of redisplay_window. If ending on a partially
6854 visible line, don't try to scroll if the cursor line is taller
6856 (redisplay_window): Use try_cursor_movement.
6858 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
6859 because that function doesn't cope with variable-height lines.
6861 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
6862 box cursor because that's better visible for large images.
6864 2000-08-10 Miles Bader <miles@gnu.org>
6866 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
6868 2000-08-10 Gerd Moellmann <gerd@gnu.org>
6870 * xdisp.c (Vmessages_buffer_name): New variable.
6871 (message_dolog): Use it.
6872 (syms_of_xdisp): Initialize it.
6874 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
6876 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
6877 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
6878 redundant now that keyboard.h is included.
6880 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
6882 * keyboard.c (kbd_buffer_events_waiting): New function.
6884 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
6886 * msdos.c: Include keyboard.h.
6887 (XMenuActivate): Empty no_event events from the event buffer. If
6888 no events are left after that, call clear_input_pending.
6889 (mouse_clear_clicks): New function, code moved from mouse_init.
6890 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
6891 mouse driver to ``forget'' any past clicks.
6893 * Makefile.in (msdos.o): Depend on keyboard.h.
6895 2000-08-09 Gerd Moellmann <gerd@gnu.org>
6897 * lisp.h (input_pending): External declaration.
6899 * dispextern.h (Qredisplay_dont_pause): Declare extern.
6901 * xdisp.c (echo_area_display): Display thoroughly if input is
6902 pending. Bind redisplay-dont-pause to t during the redisplay.
6903 in case input is pending.
6905 * dispnew.c (Qredisplay_dont_pause): New variable.
6906 (syms_of_display): Initialize and staticpro it.
6907 (update_frame_1): Don't interrupt the display for pending input if
6908 redisplay_dont_pause is set.
6910 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
6912 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6914 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
6916 * callproc.c (Fcall_process): Terminate the unwind-protect around
6917 the post-read-conversion of coding system.
6919 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
6920 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
6921 * buffer.h (overlays_at): Update prototype.
6922 * xdisp.c (next_overlay_change): Update call to overlays_at.
6923 * xfaces.c (face_at_buffer_position): Likewise.
6924 * textprop.c (Fget_char_property): Likewise.
6925 * xterm.c (note_mouse_highlight): Likewise.
6927 * minibuf.c (do_completion): Don't consider a simple change of
6928 case as `completion'.
6930 2000-08-08 Ken Raeburn <raeburn@gnu.org>
6932 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
6933 * undo.c (record_delete): Make sure last_point_position_buffer is
6934 a buffer before comparing pointers.
6936 * coding.h (decode_coding_string): Declare.
6938 * intervals.h (Fprevious_single_char_property_change): Declare.
6940 * textprop.c (Fprevious_single_char_property_change): Don't do
6941 arithmetic directly on lisp objects.
6943 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
6945 * keyboard.h (menu_item_eval_property): Declare.
6947 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6948 reuse as buffer name, instead of recreating (and discarding) every
6949 time a message is logged.
6950 (with_echo_area_buffer): Make callback arg A2 a lisp object.
6951 (current_message_1, truncate_message_1, set_message_1)
6952 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6953 (current_message, truncate_echo_area, display_echo_area)
6954 (resize_echo_area_axactly): Changed calls.
6956 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
6958 (Ffind_coding_systems_region_internal): First argument to Fappend
6959 must be an integer, not a Lisp object.
6961 2000-08-08 Kenichi Handa <handa@etl.go.jp>
6963 * charset.c (Fchar_width): Doc fix.
6965 2000-08-08 Gerd Moellmann <gerd@gnu.org>
6967 * charset.c (Fstring_width): Doc fix.
6969 2000-08-07 Gerd Moellmann <gerd@gnu.org>
6971 * xdisp.c (start_display): When starting display on a continuation
6972 line, clear ascent and descent members of the iterator structure;
6973 the height of the continued line does not affect the height of the
6975 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6976 line taller than the window.
6977 (redisplay_window) <forced window start>: Handle case that the
6978 middle of the window is not found in any row.
6979 (dump_glyph_row): Show more information.
6980 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6981 first text line in a glyph matrix.
6983 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6984 of the clip area when image doesn't have a mask.
6986 * fns.c (sweep_weak_table): Fix survival conditions for
6987 key-or-value and key-and-value weakness.
6989 * .gdbinit (xhashtable): New command.
6991 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6992 tables out of the list of all weak hash tables.
6994 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6995 a new buffer is created, make sure echo_area_buffer[] references
6998 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
7000 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
7003 2000-08-07 Kenichi Handa <handa@etl.go.jp>
7005 * syntax.c (skip_chars): Fix previous change. Make the handling
7006 of unibyte string consistent with that of regex search.
7008 2000-08-05 Gerd Moellmann <gerd@gnu.org>
7010 * xmenu.c (popup_get_selection): Use xfree instead of free.
7012 * fileio.c (Finsert_file_contents): Use xfree instead of free.
7014 * editfns.c (Ftranspose_regions): Use xfree instead of free.
7016 * callproc.c (child_setup): Use xfree instead of free.
7018 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
7020 (run_mac_command, closedir): Use `xfree' instead of `free'.
7022 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
7024 * eval.c (error): Use xfree instead of free.
7026 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
7028 * fns.c: Replace `illegal' with `invalid'.
7029 (Fmake_hash_table, make_hash_table): Allow table size of 0.
7031 2000-08-05 Kenichi Handa <handa@etl.go.jp>
7033 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
7036 2000-08-04 Noah Friedman <friedman@splode.com>
7038 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
7041 2000-08-04 Gerd Moellmann <gerd@gnu.org>
7043 * syntax.c (skip_chars): Fix typo in error message.
7045 2000-08-04 Andreas Schwab <schwab@suse.de>
7047 * m/ia64.h: Moved from s/ia64.h.
7049 2000-08-04 Kenichi Handa <handa@etl.go.jp>
7051 * process.c (read_process_output): Big simplification. Handle
7052 composition and post-read-conversion of coding system correctly.
7053 (send_process): Handle composition correctly.
7055 * callproc.c (Fcall_process): Handle post-read-conversion of
7056 coding system if any.
7058 * coding.c (decode_coding_iso2022): More strict check for handling
7060 (coding_restore_composition): Pay attention to the case that
7061 cmp_data is not set properly (because of invalid code in the
7063 (run_pre_post_conversion_on_str): Include text properties in the
7065 (decode_coding_string): Set members of coding correctly.
7067 2000-08-03 Gerd Moellmann <gerd@gnu.org>
7069 * s/ia64.h: New file.
7071 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
7072 Use NULL instead of 0 at the end of variable argument list of
7073 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
7074 sizeof (int) < sizeof (void *).
7076 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
7077 of variable argument lists of XtVaGetValues and XtVaSetValues.
7079 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
7080 variable argument lists of XtVaGetValues and XtVaSetValues.
7082 2000-08-02 Gerd Moellmann <gerd@gnu.org>
7084 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
7085 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
7087 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
7090 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
7091 in call to Fsingle_key_description.
7093 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
7096 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
7098 * window.c (display_buffer_reuse_frames): New variable.
7099 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
7100 frames displaying BUFFER.
7101 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
7103 2000-08-01 Miles Bader <miles@gnu.org>
7105 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
7106 when to constrain NEW_POS (they were pretty screwed up before).
7108 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
7110 * msdos.c (run_msdos_command): Save and restore the master
7111 environment, for the case that child_setup signals an error.
7112 When mirroring slashes in DOS shell commands, don't fail when
7113 argv[2] has embedded blanks.
7114 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
7115 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
7116 (dos_ttraw): Call mouse_setup_buttons.
7118 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
7119 using alloca; free it after run_msdos_command returns.
7121 2000-07-27 Dave Love <fx@gnu.org>
7123 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
7124 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
7126 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
7128 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
7130 * editfns.c (lisp_time_argument): Fix last change.
7132 2000-07-27 Gerd Moellmann <gerd@gnu.org>
7134 * fns.c (Fdelete): Make it work on vectors and strings in addition
7137 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
7138 (syms_of_fns): Initialize new variables.
7139 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
7140 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
7141 weakness, with t meaning the same as `key-and-value'.
7143 2000-07-27 Kenichi Handa <handa@etl.go.jp>
7145 * coding.h (struct coding_system): Member safe_charset deleted.
7147 * coding.c (Qsafe_charsets): This variable deleted.
7148 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
7150 (coding_safe_chars): New function.
7151 (CODING_SAFE_CHAR_P): New macro.
7152 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
7153 checking safe_charsets member of the coding system. Caller changed.
7154 (detect_coding_iso2022): New local variable safe_chars.
7155 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
7156 safe_charsets member of the coding system.
7157 (decode_coding_iso2022): New local variable safe_chars.
7158 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
7159 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
7160 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
7161 (ENCODE_UNSAFE_CHARACTER): New macro.
7162 (encode_coding_iso2022): New local variable safe_chars. Check
7164 (setup_coding_system): Delete the code to initialize
7165 coding->safe_charses
7166 (intersection, find_safe_codings): New functions.
7167 (Ffind_coding_systems_region_internal): New function.
7168 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
7169 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
7170 variable and initialize it.
7172 * fns.c (char_table_ref_and_index): New function.
7174 * lisp.h (char_table_ref_and_index): Add prototype.
7176 2000-07-26 Sam Steingold <sds@gnu.org>
7178 * editfns.c (lisp_time_argument): Added third argument `usec'.
7179 (Ffloat_time): New built-in Lisp function.
7181 2000-07-26 Gerd Moellmann <gerd@gnu.org>
7183 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
7184 for the character code.
7186 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
7189 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
7190 if called for a popup menu.
7191 (xmenu_show): Store help string in widget values.
7193 2000-07-26 Dave Love <fx@gnu.org>
7195 * syswait.h: Move some definitions.
7196 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
7197 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
7198 perspicuous definitions.
7199 (WTERMSIG): Fix bit pattern used.
7201 2000-07-26 Kenichi Handa <handa@etl.go.jp>
7203 * print.c (print_object): If vector printing is truncated, print
7204 "..." to indicate it as well as the case of list printing.
7206 2000-07-25 Gerd Moellmann <gerd@gnu.org>
7208 * xdisp.c (next_element_from_display_vector): Improve comments.
7210 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
7211 for the character code, and the rest for the face id as in 20.x.
7212 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
7214 * window.c (window_display_table): Cleaned up.
7216 * syntax.c (Fforward_word): Add last arg nil in call of
7217 Fconstrain_to_field.
7219 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
7221 * fileio.c (Frename_file) [DOS_NT]: If the file names are
7222 identical but for the letter-case, don't call
7223 barf_or_query_if_file_exists.
7225 2000-07-25 Miles Bader <miles@gnu.org>
7227 * editfns.c (find_field): Honor special `boundary' fields.
7228 (Qboundary): New variables.
7229 (syms_of_editfns): Initialize Qboundary.
7230 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
7231 Use scan_buffer instead of find_before_next_newline, because it
7232 allows us to detect the boundary case where there's a newline at
7234 * lisp.h (Fconstrain_to_field): Update external declaration.
7236 2000-07-24 Gerd Moellmann <gerd@gnu.org>
7238 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
7241 2000-07-24 Dave Love <fx@gnu.org>
7243 * s/sunos4-0.h, s/sol2.h:
7244 (LIBS_TERMCAP): Move from m/sparc.h.
7246 * m/sparc.h (TERMINFO): Moved to system files (probably only
7247 relevant for sunos4 judging by its vintage).
7248 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
7251 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
7253 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
7254 name to single_keymap_panes.
7256 2000-07-24 Andreas Schwab <schwab@suse.de>
7258 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
7260 2000-07-24 Gerd Moellmann <gerd@gnu.org>
7262 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
7263 parameters instead of using int parameters. Expect FN to accept
7264 EMACS_INT parameters.
7265 (display_echo_area, resize_echo_area_axactly, current_message)
7266 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
7267 with new argument list.
7268 (resize_mini_window_1): New callback function.
7269 (current_message_1, truncate_message_1, set_message_1): Change
7270 parameter lists to the new format expected by with_echo_area_buffer.
7272 2000-07-24 Kenichi Handa <handa@etl.go.jp>
7274 * fontset.c (fontset_ref): Remove INLINE declaration.
7275 (fontset_ref_via_base): Likewise.
7276 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
7279 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
7281 * msdos.c (IT_note_mouse_highlight): Process overlays in the
7282 correct order of priority. If help echo was found in an overlay,
7283 use that overlay as the object in which the help echo was found.
7285 2000-07-22 Miles Bader <miles@gnu.org>
7287 * textprop.c (Fprevious_single_char_property_change): The initial
7288 property value should be from the position preceding POSITION, not
7291 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
7293 * coding.c (syms_of_coding): Doc fix for
7294 inhibit-iso-escape-detection.
7296 2000-07-21 Gerd Moellmann <gerd@gnu.org>
7298 * xterm.c (note_mouse_highlight): Process overlays in the right
7301 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
7303 * xterm.c (note_mouse_highlight): If help-echo was found in an
7304 overlay, use that overlay as the object in which the help was found.
7306 * window.c (foreach_window_1): Fix typo reversing an if-condition.
7308 * window.c (foreach_window): Instead of a fake variable argument
7309 list, take one USER_DATA argument.
7310 (foreach_window_1): Likewise, and call callback functions with two
7311 args, the window and USER_DATA.
7312 (struct check_window_data): New struct.
7313 (check_window_containing): Use it.
7314 (window_from_coordinates): Set up a struct check_window_data for
7316 (add_window_to_list, freeze_window_start): Change parameters
7317 according to new calling convention.
7319 * window.h (foreach_window): Change prototype.
7321 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
7323 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
7325 * xmenu.c (menu_help_callback): Call show_help_echo with
7326 additional arguments OBJECT and POS.
7328 2000-07-21 Kenichi Handa <handa@etl.go.jp>
7330 * data.c (Faset): Allow storing any multibyte character in a
7331 string. Convert unibyte string to multibyte if necessary.
7333 * xfns.c (x_encode_text): New function.
7334 (x_set_name): Use x_encode_text.
7335 (x_set_title): Likewise.
7337 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
7339 * xterm.h (x_encode_text): Add prototype.
7341 2000-07-20 Dave Love <fx@gnu.org>
7343 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
7346 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
7348 * msdos.c (help_echo_window): New variable.
7349 (syms_of_msdos): Initialize and staticpro it.
7350 (IT_note_mode_line_highlight): Set help_echo_window.
7351 (IT_note_mouse_highlight): Ditto.
7352 (dos_rawgetc): Store help_echo_window in the second event produced
7355 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
7356 Record the object that generated the help echo and the position of
7357 that object in help_echo_object and help_echo_pos. Record that
7358 some glyphs in a row are displayed in mouse-face.
7359 (IT_update_begin): Don't clear mouse highlight unless one of the
7360 enabled glyph rows is marked as being displayed in mouse-face.
7361 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
7362 and position recorded in help_echo_object and help_echo_pos to the
7364 (IT_menu_display): Accept a new argument PN: the pane number of
7365 the current menu pane. Record the pane number and the item
7366 number of the item which has associated help string.
7367 (XMenuActivate): Update the prototype for help_callback in
7368 function declaration. Call IT_menu_display with the current menu
7369 pane number as an additional argument. Call help_callback with
7370 two additional arguments: the pane number and the item number of
7371 the menu item associated with the help text.
7372 (help_echo_object, help_echo_pos): New variables.
7373 (syms_of_msdos): Initialize them and staticpro help_echo_object.
7375 * msdos.h (XMenuActivate): Update prototype.
7377 2000-07-19 Gerd Moellmann <gerd@gnu.org>
7379 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
7380 Add some more prototypes.
7382 * xterm.c, xterm.h: Add some more prototypes.
7384 * lisp.h (Fnext_single_char_property_change): Add prototype.
7386 * dispnew.c (direct_output_for_insert): Remove confusing
7387 outer local variable mouse_face_overwritten_p.
7388 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
7390 * alloc.c (allocate_string_data): Don't copy old string contents.
7392 2000-07-19 Kenichi Handa <handa@etl.go.jp>
7394 * coding.c (code_convert_region): Delete text properties before
7395 shrinking the conversion region.
7397 2000-07-18 Gerd Moellmann <gerd@gnu.org>
7399 * dispnew.c (update_text_area): Write the whole row if it
7400 has mouse-face in it.
7402 * xfaces.c (face-alternative-font-family-alist): Remove
7403 DEFVAR_LISP; staticpro instead.
7405 * xmenu.c (menu_help_callback): Call show_help_echo with
7408 * keyboard.c (show_help_echo): Add parameter WINDOW.
7409 (read_char): Call show_help_echo with window extracted from Lisp
7411 (gen_help_event): Add parameter WINDOW.
7413 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
7415 * xterm.c (help_echo_window): New variable.
7416 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7417 (XTread_socket): Pass help_echo_window to gen_help_event.
7418 (syms_of_xterm): Initialize and staticpro help_echo_window.
7420 2000-07-18 Dave Love <fx@gnu.org>
7422 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
7424 2000-07-18 Gerd Moellmann <gerd@gnu.org>
7426 * alloc.c (allocate_string_data): If string had already data
7427 assigned, copy old contents to new string data.
7429 * coding.c (syms_of_coding): Fix typo in spelling of variable
7430 `inhibit-iso-escape-detection'.
7432 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
7434 * Makefile.in: Add dependencies on dispextern.h.
7435 (alloca.o): Don't define malloc and define EMACS_FREE instead of
7436 `free'; both can conflict with system header files.
7438 2000-07-18 Kenichi Handa <handa@etl.go.jp>
7440 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
7443 2000-07-18 Dave Love <fx@gnu.org>
7445 * window.c (Fwindow_list): Declare arg `window'.
7447 2000-07-18 Kenichi Handa <handa@etl.go.jp>
7449 * coding.c (setup_coding_system): Don't override the explicitly
7450 specified designations.
7452 2000-07-15 Miles Bader <miles@gnu.org>
7454 * editfns.c (char_property_eq, char_property_stickiness): Renamed
7455 from `text_property_eq' and `text_property_stickiness', respectively.
7456 (find_field, Fconstrain_to_field, char_property_eq)
7457 (char_property_stickiness): Changed to call char-property functions
7458 instead of text-property-only ones.
7460 * textprop.c (Fnext_single_char_property_change): Made a subr (was
7461 `next_single_char_property_change'). Do more error checking, and
7462 cleanup limit behavior.
7463 (Fprevious_single_char_property_change): New function.
7464 (syms_of_textprop): Initialize new subrs.
7466 * xdisp.c (display_prop_end, invisible_text_between_p):
7467 Call Fnext_single_char_property_change instead of
7468 next_single_char_property_change.
7470 2000-07-15 Jason Rumney <jasonr@gnu.org>
7472 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
7473 after menu is finished with.
7474 (add_menu_item): Only consider wv->title as a menu title.
7475 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
7477 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
7479 (FONT_REGEXP): Remove unused macro, and its sub-components.
7480 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
7482 * w32term.c (help_echo_object, help_echo_pos): New variables.
7483 (note_mode_line_highlight): Store additional information about the
7484 help-echo in help_echo_object and help_echo_pos. Check both
7485 `local-map' and `keymap' properties for changing the cursor
7486 (note_mouse_highlight): Store additional information about the
7487 help-echo in help_echo_object and help_echo_pos.
7488 (note_tool_bar_highlight): Set help_echo_object to nil and
7489 help_echo_pos to -1.
7490 (w32_read_socket): Use gen_help_event instead of filling
7491 input_events manually.
7492 (syms_of_w32term): Staticpro help_echo_object.
7493 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
7494 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
7495 (x_clear_mouse_face): New function.
7496 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
7497 (x_update_window_begin): No need to turn off the mouse
7499 (show_mouse_face): Set the mouse_face_p flag of glyph rows
7500 depending on whether they contain glyphs highlighted in mouse-face.
7501 (x_fill_stretch_glyph_string): Consume runs of stretch
7502 glyphs instead of a single one.
7503 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7504 with new argument list.
7505 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7506 (x_append_glyph, x_append_composite_glyph)
7507 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7508 changes in struct glyph starting 1999-12-27. See comments for
7509 xterm.c on 2000-07-05.
7511 2000-07-14 Sam Steingold <sds@gnu.org>
7513 * xfaces.c (realize_x_face): Fix the last patch:
7514 check `default_face' before dereferencing.
7516 2000-07-14 Dave Love <fx@gnu.org>
7518 * syntax.c (back_comment): Add null default in switch (for pcc).
7520 2000-07-14 Kenichi Handa <handa@etl.go.jp>
7522 * xfaces.c (realize_x_face): Make fontset using the base of the
7523 default_face's fontset, not using the default fontset.
7525 * coding.c (inhibit_iso_escape_detection): New variable.
7526 (syms_of_coding): Make it a Lisp variable.
7527 (detect_coding_iso2022): If inhibit_iso_escape_detection is
7528 nonzero, ignore ISO2022's escape sequence.
7530 2000-07-14 Gerd Moellmann <gerd@gnu.org>
7532 * alloca.c (malloc) [emacs]: Define as xmalloc.
7534 * xfns.c (Fx_show_tip): If frame parameters contain a position,
7535 use that instead of the mouse position. Add parameters DX and DY.
7537 * dispextern.h (Fx_show_tip): Adjust number of parameters
7540 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
7541 if HELP is a function, call it with OBJECT and POS as parameters
7542 to get the help to display.
7543 (gen_help_event, kbd_buffer_store_help_event): New functions.
7544 (kbd_buffer_get_event): Construct the Lisp help-event differently.
7545 (read_char): Call show_help_echo with new parameters.
7547 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
7550 * xterm.c (help_echo_object, help_echo_pos): New variables.
7551 (note_mode_line_highlight): Store additional information about the
7552 help-echo in help_echo_object and help_echo_pos. Check both
7553 `local-map' and `keymap' properties for changing the cursor
7554 (note_mouse_highlight): Store additional information about the
7555 help-echo in help_echo_object and help_echo_pos.
7556 (note_tool_bar_highlight): Set help_echo_object to nil and
7557 help_echo_pos to -1.
7558 (XTread_socket): Use gen_help_event instead of filling
7559 input_events manually.
7560 (syms_of_xterm): Staticpro help_echo_object.
7562 * xmenu.c (menu_highlight_callback): Use
7563 kbd_buffer_store_help_event instead of setting up and input_event
7566 * xdisp.c (eval_form): GCPRO argument sexpr.
7567 (call_function): New function.
7568 (handle_single_display_prop): Use call_function and FUNCTIONP
7569 instead of checking whether if font_height is a symbol and
7572 * eval.c (internal_condition_case_2): New function.
7574 * lisp.h (FUNCTIONP): New macro.
7575 (internal_condition_case_2, call_function): Add prototypes.
7577 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
7578 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
7579 Always set `arg' member of input_events.
7580 (construct_menu_click): Unused function removed.
7582 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
7584 * w32term.c (construct_mouse_click, construct_mouse_wheel)
7585 (construct_drag_n_drop, x_scroll_bar_handle_click)
7586 (w32_read_socket): Always set `arg' member of input_events.
7588 * keyboard.c (show_help_echo): Use eval_form. Add comment.
7590 * lisp.h (eval_form): Add prototype.
7592 * xdisp.c (eval_form): Make it externally visible.
7594 2000-07-13 Gerd Moellmann <gerd@gnu.org>
7596 * xterm.c (x_handle_tool_bar_click): Store the frame in the
7597 frame_or_window slot of TOOL_BAR_EVENT input events instead of
7598 consing. For prefix events, store the frame in the `arg' slot of
7599 the event, otherwise store the key there.
7600 (XTread_socket): Instead of consing, use the frame_or_window slot
7601 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
7603 * xmenu.c (menu_highlight_callback): Store help string in the
7604 `arg' member of the input event; don't cons.
7605 (menubar_selection_callback): Use the `arg' slot of input events
7606 to queue additional information, instead of consing.
7608 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
7610 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
7612 (w32_read_socket): Adapt to changes in HELP_EVENTs.
7614 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
7615 input events to queue additional information, instead of consing.
7617 * keyboard.c (kbd_buffer_gcpro): Renamed from
7618 kbd_buffer_frame_or_window. Now used for all Lisp objects
7619 referenced from the input queue.
7620 (kbd_buffer_store_event): Always use structure assignment for
7621 copying input events. Record all Lisp objects referenced from
7622 events in kbd_buffer_gcpro.
7623 (kbd_buffer_get_event): Construct Lisp `help-echo' events
7624 differently from input events. Test for prefix menu_bar_events
7625 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
7626 event in kbd_buffer_gcpro to nil.
7627 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
7628 frame_or_window is equal to its arg member as prefix events.
7629 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
7630 used by an input event to nil.
7631 (init_keyboard): Use two times the size of the input queue
7632 for kbd_buffer_gcpro.
7633 (syms_of_keyboard): Likewise.
7635 * emacs.c (handle_USR2_signal, handle_USR1_signal):
7636 Use USER_SIGNAL_EVENT.
7638 * termhooks.h (struct input_event): Add member `arg'.
7639 (MENU_BAR_EVENT): Renamed from menu_bar_event.
7640 (USER_SIGNAL_EVENT): Renamed from user_signal.
7642 * xfaces.c (ASET): Remove definition.
7644 * lisp.h (AREF, ASET, ASIZE): New macros.
7646 * fontset.c (AREF, ASIZE): Remove definitions.
7648 * fns.c (AREF): Remove definition.
7650 * composite.c (AREF): Remove definition.
7652 2000-07-12 Gerd Moellmann <gerd@gnu.org>
7654 * dispnew.c (redraw_overlapped_rows): Add missing local.
7655 (scrolling_window): Remove debug code.
7657 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
7658 Before scrolling, turn off a mouse-highlight in the window
7661 * xterm.c (x_update_window_end): Add parameter
7662 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
7663 redisplay in XTframe_up_to_date.
7664 (x_clear_mouse_face): New function.
7665 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
7667 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
7669 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
7670 it when any row is written to that contains glyphs highlighted in
7672 (update_window): Call the window update end hook with new
7673 parameter MOUSE_FACE_OVERWRITTEN_P.
7674 (direct_output_for_insert): Give up if row contains mouse-face.
7676 * dispextern.h (struct redisplay_interface): Add parameter
7677 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
7678 (clear_mouse_face): New function pointer member.
7680 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
7682 * syntax.c (back_comment): Use one switch rather than a few `if's.
7683 Obey open_paren_in_column_0_is_defun_start.
7684 When reverting to the `slow' method, try to nicely handle the case
7685 of nested comments by checking that the comment-starter we found
7686 does indeed match the comment-ender.
7687 (scan_sexps_forward, scan_sexps_forward):
7688 Ignore excessive opening parenthesis rather than throwing an error.
7690 2000-07-11 Gerd Moellmann <gerd@gnu.org>
7692 * doc.c (Fsubstitute_command_keys): Handle case that a GC
7693 in Fwhere_is_internal or get_keymap_1 relocates string contents.
7695 * dispnew.c (direct_output_forward_char): Give up if currently
7696 displaying a message instead of the minibuffer contents.
7698 * xterm.c (x_update_window_begin): No need to turn off the mouse
7700 (show_mouse_face): Set the mouse_face_p flag of glyph rows
7701 depending on whether they contain glyphs highlighted in mouse-face.
7703 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
7704 compare the mouse_face_p flags of both rows.
7706 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
7708 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
7710 * keyboard.c (show_help_echo): Accept additional parameter
7711 ok_to_overwrite_keystroke_echo.
7712 (read_char): Call show_help_echo with a zero
7713 ok_to_overwrite_keystroke_echo argument.
7714 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
7715 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
7716 ok_to_overwrite_keystroke_echo argument.
7717 * w32menu.c (w32_menu_display_help): Call show_help_echo with
7718 non-zero ok_to_overwrite_keystroke_echo argument.
7720 2000-07-10 Gerd Moellmann <gerd@gnu.org>
7722 * xdisp.c (try_window_id): If changes are all below what is
7723 displayed in the window, and point is in the window, we still
7724 might have to find point on the display.
7726 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
7727 glyphs instead of a single one.
7728 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7729 with new argument list.
7730 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7732 * keymap.c (get_keymap_1): Add comment that this function can GC.
7733 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
7734 comment that functions can GC.
7735 (Fset_keymap_parent): GCPRO arg KEYMAP.
7737 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
7739 * msdos.c (XMenuActivate): After exiting the menu, restore the
7740 echo area message and erase it.
7742 2000-07-10 Kenichi Handa <handa@etl.go.jp>
7744 * fontset.c (Ffontset_info): Make the return value more compatible
7745 with that of Emacs 20.
7747 2000-07-07 Gerd Moellmann <gerd@gnu.org>
7749 * eval.c (Fsignal): Handle case that backtrace_list is null.
7751 2000-07-07 Kenichi Handa <handa@etl.go.jp>
7753 * ccl.c (Fccl_execute): Typo fixed.
7755 2000-07-06 Gerd Moellmann <gerd@gnu.org>
7757 * window.c (window_loop): Add missing gcpro1 local variable.
7759 * window.c (Fwindow_list): Reverse list at the end.
7760 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
7761 means allow windows on OWINDOW's frame, only.
7762 (window_loop): Simplified; use Fwindow_list.
7764 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
7766 2000-07-05 Gerd Moellmann <gerd@gnu.org>
7768 * xterm.c (XTread_socket): Increment handling_signal at the start,
7769 decrement it at the end.
7771 * eval.c (handling_signal): New variable.
7772 (Fsignal): Abort if handling_signal is non-zero.
7774 * lisp.h (handling_signal): External declaration.
7776 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
7778 2000-07-05 Ken Raeburn <raeburn@gnu.org>
7780 Sound support for NetBSD through "Linux emulation" support:
7781 * config.in (HAVE_SOUNDCARD_H): Undef.
7782 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
7783 * Makefile.in (LIBSOUND): New variable.
7784 (LIBES): Include it.
7785 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
7786 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
7787 (vox_open): Use DEFAULT_SOUND_DEVICE.
7788 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
7790 2000-07-05 Gerd Moellmann <gerd@gnu.org>
7792 * print.c (print_error_message): If Vsignaling_function is set,
7793 show it in *Messages*.
7795 * lisp.h (Vsignaling_function): External declaration.
7797 * eval.c (Vsignaling_function): New variable.
7798 (Fsignal): Compute it.
7799 (syms_of_eval): Staticpro it.
7801 2000-07-05 Dave Love <fx@gnu.org>
7803 * syswait.h: Use the autoconf recommended approach. Old code
7804 #if'd out in case we need to revert.
7806 * config.in (HAVE_SYS_WAIT_H): Added.
7808 2000-07-05 Andrew Innes <andrewi@gnu.org>
7810 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
7811 when non-NULL instead of __morecore, to take account of buffer
7812 memory. This also solves a problem with spurious memory warnings
7815 * ralloc.c: Make real_morecore non-static.
7817 * eval.c (internal_condition_case): Comment out abort if
7818 interrupt_input_blocked is not zero.
7820 * makefile.nt: Add support for `bootstrap' and related targets.
7821 Include minimal debug info in emacs.exe in release build.
7822 Remove all dependencies on lisp.h, and fixup some others.
7824 * w32.c (init_environment): Install code from 20.7 for providing
7825 default values for environment variables, based on the
7826 executable's own location.
7827 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
7828 (sys_socket): Install socket inheritance bug fix from 20.7.
7830 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
7831 here via blockinput.h).
7833 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
7835 * w32menu.c (w32_menu_display_help):
7836 * xmenu.c (menu_help_callback): Use show_help_echo.
7838 * keyboard.h (show_help_echo): Declare.
7840 * keyboard.c (show_help_echo): New function, extracted from read_char.
7841 Feval its `msg' argument if it's a cons cell.
7842 (read_char): Use it.
7843 (follow_key): Pass `autoload' to get_keyelt.
7845 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
7846 (note_tool_bar_highlight, XTread_socket):
7847 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
7849 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
7850 (note_tool_bar_highlight, w32_read_socket):
7851 Do not gratuitously ignore non-string `help-echo' properties.
7853 2000-07-05 Gerd Moellmann <gerd@gnu.org>
7855 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
7857 * window.c (delete_all_subwindows): Reset Vwindow_list.
7859 * xterm.c (x_append_glyph, x_append_composite_glyph)
7860 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7861 changes in struct glyph starting 1999-12-27. Some bit-fields of
7862 struct glyph were not set, which made glyphs unequal when compared
7863 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
7864 effects were the result. This also depended on the contents of
7865 memory returned by xmalloc. If flickering happens again, activate
7866 the code in clear_glyph_row that's in #if 0. If the flickering is
7867 gone with that, chances are that it is caused by something similar.
7869 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
7871 * dispextern.h: Add some comments.
7873 * window.c (add_window_to_list): Add parameter LIST.
7874 (window_list): Order list so that, for each frame, windows are
7875 in canonical order, and so that frames appear in the list in
7876 the order given by Vframe_list.
7877 (next_window): Reverse the handling of NEXT_P.
7879 2000-07-04 Gerd Moellmann <gerd@gnu.org>
7881 * window.c (Vwindow_list): New variable.
7882 (make_window, delete_window): Set Vwindow_list to nil.
7883 (check_window_containing): New function.
7884 (window_from_coordinates): Rewritten.
7885 (add_window_to_list, window_list, candidate_window_p)
7886 (decode_next_window_args, next_window): New functions.
7887 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
7888 (Fwindow_list): New function.
7889 (Fother_window): Cleaned up.
7890 (foreach_window): Add a longer "variable argument list". Let
7891 callback function return 0 to indicate that cycling over windows
7893 (foreach_window_1): Likewise.
7894 (freeze_window_start): Return int.
7895 (init_window): New function.
7896 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
7898 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
7899 input_event with bzero.
7900 (main): Call init_window.
7902 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
7905 2000-07-04 Kenichi Handa <handa@etl.go.jp>
7907 * composite.h (make_composition_value_copy): Extern it.
7909 * composite.c (make_composition_value_copy): New function.
7911 * editfns.c (Fformat): While copying text properties, make each
7912 composition property value a copy.
7914 * fns.c (concat): While copying text properties, make each
7915 composition property value a copy.
7917 2000-07-03 Gerd Moellmann <gerd@gnu.org>
7919 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7921 * fns.c (sweep_weak_table): Mark only objects that are not
7924 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7925 include those frames as candidates which have their focus
7926 redirected to the minibuffer frame.
7928 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7930 * fns.c (Fputhash): Return `value' rather than nil.
7932 2000-06-30 Gerd Moellmann <gerd@gnu.org>
7934 * frame.c (next_frame): Don't check focus redirection in case
7935 MINIBUF is a window. Doing so excludes frames using MINIBUF
7936 unless their focus is redirected, which contradicts the
7937 specification of next-frame, and leads to infinite loops in
7938 certain situations when cycling through windows with next-window.
7940 2000-06-30 Kenichi Handa <handa@etl.go.jp>
7942 * coding.c (code_convert_region): Even if the length of text is
7943 zero, try to convert it if coding->type is coding_type_ccl.
7944 (decode_coding_string, encode_coding_string): Likewise.
7946 2000-06-28 Gerd Moellmann <gerd@gnu.org>
7948 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
7949 the display if windows_or_buffers_changed.
7951 * dispnew.c (struct row_entry): New structure.
7952 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7953 (row_table_size, old_lines, new_lines, old_lines_size)
7954 (new_lines_size, run_pool, runs_size, runs): New variables.
7955 (add_row_entry): New function.
7956 (scrolling_window): Use data structures allocated with xmalloc and
7957 held in global variables, instead of allocating them with alloca and
7958 holding them in local variables. Use a larger hash table whose
7959 size depends on glyph matrix sizes. Don't use bzero to clear the
7960 hash table; instead, clear used slots only.
7962 * fns.c (next_almost_prime): Make it externally visible.
7964 * lisp.h (next_almost_prime): Add prototype.
7966 * s/isc4-0.h (sigunblock): Define.
7968 * s/sco5.h (sigunblock): Define.
7970 2000-06-27 Dave Love <fx@gnu.org>
7972 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7973 (moved to osf5-0.h).
7974 [!NOT_C_CODE]: Protect string.h stuff.
7976 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7977 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7979 2000-06-27 Gerd Moellmann <gerd@gnu.org>
7981 * xdisp.c (resize_mini_window): Subtract the extra line spacing
7982 below the last line from the needed window height.
7984 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7986 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7987 (Fwidget_get): Use it.
7988 (syms_of_fns): Defsubr it.
7990 2000-06-26 Gerd Moellmann <gerd@gnu.org>
7992 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
7993 display info for XIM.
7994 (xim_open_dpy): Likewise.
7995 (xim_close_dpy): Don't free the display info's XIM.
7997 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7999 * config.in (USE_XIM): New define.
8001 * keymap.c (get_keyelt): For menu-items containing a `:filter
8002 FILTER', apply FILTER to the menu-item's definition to get the
8003 real definition to use.
8005 * lisp.h (QCfilter): External declaration.
8007 * xfns.c (Fimage_size): New function.
8008 (syms_of_xfns): Defsubr it.
8010 2000-06-26 Andreas Schwab <schwab@suse.de>
8012 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
8015 2000-06-25 Dave Love <fx@gnu.org>
8017 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
8019 * Makefile.in (blockinput.h): Depend on atimer.h.
8020 (atimer.h): Depend on systime.h.
8022 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
8024 * atimer.h: Protect against multiple inclusion. Include systime.h.
8026 * lisp.h (swap_in_global_binding): Declare.
8028 2000-06-24 Ken Raeburn <raeburn@gnu.org>
8030 * process.c (Fopen_network_stream): Turn off atimers for duration
8031 of call to connect. (Patch from Gerd.)
8033 2000-06-23 Dave Love <fx@gnu.org>
8035 * ralloc.c: Maybe include unistd.h
8037 * emacs.c (setgrp): Undefine before defining.
8038 (malloc_warning, set_time_zone_rule, index): Prototype.
8040 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
8041 HAVE_STRUCT_TIMEZONE.
8043 * s/osf1.h: Move string.h hack here from alpha.h and make it
8045 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
8047 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
8048 (SOCKLEN_TYPE): Don't define.
8050 * m/alpha.h: Remove string.h hack.
8052 * s/osf5-0.h: New file.
8054 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
8055 include time.h, done by systime.h.
8056 [__FreeBSD__]: Remove redundant includes.
8058 * callproc.c (setpgrp): Undefine before defining.
8059 (delete_temp_file): Return Qnil to avoid warning.
8061 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
8063 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
8066 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
8068 * composite.h (compose_text): Declare.
8070 * xterm.c: Don't include sys/types.h unconditionally. Don't
8071 protect its inclusion with !USG (following xmenu.c).
8073 2000-06-23 Gerd Moellmann <gerd@gnu.org>
8075 * xfns.c (x_create_tip_frame): Initialize frame's colors like
8078 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8080 * coding.c (decode_eol_post_ccl): Special handling for undecided
8081 and inconsistent EOL types.
8083 2000-06-22 Gerd Moellmann <gerd@gnu.org>
8085 * xrdb.c (x_load_resources): Add default resource for scroll bar's
8086 trough color and main window's background color.
8088 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
8090 * xterm.h (Xt_app_con): External declaration.
8092 * widget.c (EmacsFrameRealize): Fix typo.
8094 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
8096 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
8097 (handle_invisible_prop): Record the start of invisible text in
8098 it->add_overlay_start.
8099 (struct overlay_entry): Add member `overlay'.
8100 (handle_overlay_change): Simplify.
8101 (next_overlay_string): After having processed overlay strings at the
8102 end of the buffer, record that fact in
8103 it->overlay_strings_at_end_processed_p.
8104 (compare_overlay_entries): If before- and after-strings come
8105 from the same overlay, let before-strings come first.
8106 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
8107 (load_overlay_strings): Take it->add_overlay_start into account
8108 when adding overlay strings.
8110 * dispextern.h (struct it): Add member add_overlay_start.
8112 2000-06-22 Dave Love <fx@gnu.org>
8114 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
8116 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
8118 2000-06-22 Kenichi Handa <handa@etl.go.jp>
8120 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
8123 2000-06-21 Dave Love <fx@gnu.org>
8125 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
8127 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
8129 * syntax.c (back_comment): Simplify string-parity counting (with
8130 the added benefit of handling multiple string-styles as long as
8131 they are not intertwined).
8132 Jump to the slow code as soon as a comment starter is found in
8133 a "string_lossage" position. Fixes the case: " /* " /* " */.
8135 2000-06-21 Dave Love <fx@gnu.org>
8137 * Makefile.in: Use GETLOADAVG_LIBS.
8139 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
8140 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
8142 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8144 * syntax.c (describe_syntax): Recognize the `n'estable bit.
8145 (Fforward_comment, scan_lists):
8146 Check the comstyle of single-char comment-starters.
8147 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
8148 we're just at the beginning of the comment (f.ex with (*) ... (*)).
8149 Check the comstyle of single-char comment-starters.
8150 Clarify control-flow around the Scomment case.
8152 2000-06-20 Dave Love <fx@gnu.org>
8154 * fns.c (make_hash_table, maybe_resize_hash_table):
8155 Cast arg of next_almost_prime.
8157 * tparam.c [emacs]: Include lisp.h.
8159 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
8162 2000-06-20 Gerd Moellmann <gerd@gnu.org>
8164 * keyboard.c (adjust_point_for_property): Check if display
8165 property should be treated as intangible by looking at its value.
8167 * xdisp.c (single_display_prop_intangible_p)
8168 (display_prop_intangible_p): New functions.
8170 * dispextern.h (display_prop_intangible_p): Add prototype.
8172 * xdisp.c (dump_glyph_row): Show type of glyph->object.
8174 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
8175 argument to sigprocmask.
8177 * s/sco5.h (sigblock): Redefined to pass a pointer as second
8178 argument to sigprocmask.
8180 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
8181 sigprocmask_set, and pass a pointer to it to sigprocmask.
8183 * sysdep.c (sigprocmask_set): New variable.
8185 * fileio.c (make_temp_name): Don't use `%s' in string passed to
8188 2000-06-20 Sam Steingold <sds@gnu.org>
8190 * xrdb.c: Don't declare xmalloc, xrealloc.
8192 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8194 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
8195 (re_comp): Cast gettext return value to avoid complaints when
8198 2000-06-20 Dave Love <fx@gnu.org>
8200 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
8202 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
8204 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
8206 * m/alpha.h: Don't declare xmalloc, xrealloc.
8208 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
8210 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
8212 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
8214 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
8217 * keyboard.h (poll_for_input_1): Declare.
8219 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
8221 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
8223 * doprnt.c: Don't declare xmalloc, xrealloc.
8225 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
8226 (getenv, ctime, getwd): Removed.
8227 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
8229 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
8230 x_set_tool_bar_lines.
8232 * config.in: Add HAVE_GETWD. Move some definitions above
8233 machine/system includes.
8235 2000-06-20 Kenichi Handa <handa@etl.go.jp>
8237 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
8239 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
8240 contain information about ENCODING.
8242 * fontset.c (FONTSET_ASCII): Use the first element of char table
8243 for an ASCII font, not defalt slot.
8244 (fontset_ref_via_base): If FONTSET doesn't contain information for
8245 C, try the default fontset.
8246 (make_fontset): Don't copy the default fontset.
8247 (fontset_font_pattern): Likewise.
8248 (accumulate_font_info): If ELT is nil, use the corresponding
8249 element in the default fontset.
8251 2000-06-19 Dave Love <fx@gnu.org>
8253 * syntax.c (Fparse_partial_sexp): Doc fix.
8255 * regex.h: Test PROTOTYPES as well as __STDC__.
8257 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
8258 errno, strerror. Put text after #endif in comment.
8260 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
8262 * xterm.c (x_frame_of_widget): Likewise.
8264 2000-06-19 Gerd Moellmann <gerd@gnu.org>
8266 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
8267 to Vfundamental_mode_abbrev_table.
8269 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
8270 bogus objects are marked. This slows down GC by ~80 percent, but
8271 it might be worth trying when debugging GC-related problems.
8272 This feature requires conservative stack marking to be enabled.
8274 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
8275 returns XLookupChars, reset `modifiers' to zero.
8277 2000-06-19 Dave Love <fx@gnu.org>
8279 * mktime.c: Unprotoized.
8281 2000-06-19 Richard Stallman <rms@gnu.org>
8283 * data.c (set_internal): If variable is frame-local,
8284 store the new value immediately into the frame parameter alist.
8286 2000-06-19 Ken Raeburn <raeburn@gnu.org>
8288 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
8289 in the custom handler pointer.
8291 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
8292 value, or checks for CHAR_META can fail when Lisp_Object is a
8294 * keymap.c (get_keyelt): Likewise.
8296 2000-06-19 Kenichi Handa <handa@etl.go.jp>
8298 * ccl.h (struct ccl_program): New member eol_type.
8299 (struct ccl_spec): New member cr_carryover.
8301 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
8302 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
8304 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
8305 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
8306 (decode_eol_post_ccl): New function.
8307 (decode_coding): Don't detect EOL format here for CCL based coding
8309 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
8310 decode_eol_post_ccl after running the CCL program.
8311 (code_convert_region): Don't detect EOL format here for CCL based
8313 (decode_coding_string): Likewise.
8315 2000-06-18 Ken Raeburn <raeburn@gnu.org>
8317 * charset.c (update_charset_table): Use XINT on "iso_final_char"
8318 when treating it as an integer.
8320 * coding.h (encode_coding_string): Declare.
8322 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
8325 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
8326 "xkeymap" to avoid shadowing the "enum map_type" value that needs
8327 to be passed to get_local_map.
8329 * sound.c (Fplay_sound): Don't call make_number on
8330 Frun_hook_with_args count argument.
8332 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
8333 for lisp objects in X event structure data field, when lisp
8334 objects are represented with unions.
8335 (x_scroll_bar_to_input_event): Ditto.
8337 2000-06-16 Ken Raeburn <raeburn@gnu.org>
8339 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
8340 termination of string. Fix sense of test whether
8341 Vline_number_display_limit is an integer.
8343 2000-06-16 Gerd Moellmann <gerd@gnu.org>
8345 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
8346 only if HAVE_X_WINDOWS.
8348 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
8351 * dispnew.c (update_frame_1): Handle case that cursor vpos is
8354 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
8356 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
8359 2000-06-15 Kenichi Handa <handa@etl.go.jp>
8361 * coding.c (decode_coding_emacs_mule): Always set src_base at the
8362 start of the while loop.
8364 2000-06-15 Gerd Moellmann <gerd@gnu.org>
8366 * atimer.c (alarm_signal_handler): Add forward declaration.
8368 * data.c (set_internal): Remove debug code.
8370 2000-06-14 Gerd Moellmann <gerd@gnu.org>
8372 * Makefile.in (bootstrap-temacs): Add `-I../src'.
8374 * unexec.c (toplevel) [COFF]: Include coff.h.
8376 * s/lynxos.h: New file.
8378 * keymap.c (Fsingle_key_description): Enclose function key and
8379 event symbol names in angle brackets.
8381 * xdisp.c (setup_echo_area_for_printing): Call
8382 message_log_maybe_newline if message_buf_print is not set.
8384 * print.c (printchar, strout): Don't check message_buf_print
8385 before calling setup_echo_area_for_printing because that
8386 function does something useful even when message_buf_print is
8389 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
8391 (ensure_echo_area_buffers): Initialize echo buffer's
8392 truncate lines setting to nil.
8393 (with_echo_area_buffer): Don't set the echo buffer's truncate
8395 (set_message_1): Set it here instead, based on the value
8396 of message_truncate_lines.
8397 (resize_mini_window): Handle case that lines are truncated.
8398 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
8399 DEFVAR_BOOL message-truncate-lines.
8401 * keyboard.c (read_char): Bind message-truncate-lines to t
8402 while displaying a help-echo.
8404 * lisp.h (Qmessage_truncate_lines): External declaration.
8406 2000-06-13 Gerd Moellmann <gerd@gnu.org>
8408 * xdisp.c (Vline_number_display_limit): Renamed from
8409 line_number_display_limit.
8410 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
8411 Extend documentation string. Initialize
8412 Vline_number_display_limit to nil meaning no limit.
8413 (decode_mode_spec): Use Vline_number_display_limit with its new
8416 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
8418 2000-06-13 Richard Stallman <rms@gnu.org>
8420 * frame.c (Fmodify_frame_parameters): Doc fix.
8422 * xfns.c (x_set_frame_parameters): Comment fix.
8424 * frame.c (store_frame_param): Call swap_in_global_binding if the
8425 variable's current binding was chosen based on this frame.
8427 * data.c (swap_in_global_binding): New function.
8429 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8431 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
8432 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
8434 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8436 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
8438 2000-06-12 Jason Rumney <jasonr@gnu.org>
8440 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
8442 * w32.h (EMACS_W32_H): Renamed from _NT_H_
8444 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
8446 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
8448 2000-06-12 Gerd Moellmann <gerd@gnu.org>
8450 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
8451 (syms_of_xfaces): Defsubr Sdump_colors.
8452 (x_free_colors): Don't treat b&w specially on default visual.
8453 (x_free_dpy_colors): New function.
8454 (free_face_colors): Don't check visual class; it's done
8457 * xterm.c (x_frame_of_widget): New function.
8458 (x_alloc_nearest_color_for_widget): Use it.
8459 (x_copy_dpy_color): New function.
8460 (x_destroy_window): Free various colors.
8462 2000-06-12 Kenichi Handa <handa@etl.go.jp>
8464 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
8466 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
8468 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
8470 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
8472 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
8474 2000-06-11 Dave Love <fx@gnu.org>
8476 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
8478 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
8480 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
8482 2000-06-11 Gerd Moellmann <gerd@gnu.org>
8484 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
8487 2000-06-10 Kenichi Handa <handa@etl.go.jp>
8489 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
8490 (regex_compile): Fix the code for handling the case of single byte
8491 char and multibyte char being mixed in a range within [...].
8493 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
8494 and dst_multibyte members of coding.
8496 * charset.c (update_charset_table): Update the table
8498 (init_charset_once): Initialize elements of bytes_by_char_head to
8499 1 except for leading codes for private charases.
8501 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
8502 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
8504 2000-06-09 Ken Raeburn <raeburn@gnu.org>
8506 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
8507 access the data it doesn't point to.
8509 2000-06-08 Gerd Moellmann <gerd@gnu.org>
8511 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
8512 will be translated to a switch-frame event when reading the
8513 event queue. This is necessary because Emacs otherwise won't
8514 perform a switch-frame to a new frame until some other event, for
8515 example a keystroke event, forces it to do so. This has various
8516 effects, one visible being that the cursor of a frame created with
8517 C-x 5 2 or switched to with a window manager key binding like
8518 A-TAB stays hollow because selected_window isn't on the newly
8519 focused frame until the switch-frame is performed.
8521 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
8522 generating a switch-frame event if necessary.
8524 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
8526 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
8529 2000-06-08 Kenichi Handa <handa@etl.go.jp>
8531 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
8533 2000-06-07 Gerd Moellmann <gerd@gnu.org>
8535 * window.c (displayed_window_lines): Take empty lines at
8536 the bottom of a window into account.
8538 * window.c (displayed_window_lines): New function.
8539 (Fmove_to_window_line): Use displayed_window_lines to determine
8540 the number of lines to move, instead of using the window's height.
8542 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
8543 to stop reading, even if the form read sets point to a different
8544 value when evaluated.
8546 * xdisp.c (display_line): Fix code deciding in which line to
8549 2000-06-07 Kenichi Handa <handa@etl.go.jp>
8551 * fileio.c (e_write): Free composition data if stored in
8554 2000-06-06 Gerd Moellmann <gerd@gnu.org>
8556 * xdisp.c (display_line): Set row's and iterator's
8557 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
8558 Set cursor even if row ends in the middle of a character.
8559 (dump_glyph_row): Print values of new flags.
8560 (redisplay_window) <cursor movement in unchanged window>: When
8561 point has been moved forward, and PT is at the end of the cursor
8562 row, don't place the cursor in the next row if the cursor row ends
8563 in the middle of a character or at ZV.
8565 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
8566 (struct glyph_row): Add starts_in_middle_of_char_p and
8567 ends_in_middle_of_char_p.
8568 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
8569 ends_in_middle_of_char_p flag.
8570 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
8572 * term.c (append_glyph): Revert change of 2000-06-06.
8574 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
8575 padding glyph not fitting on line as whole character not
8578 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
8579 this isn't true for images with `:ascent 100'.
8581 2000-06-06 Kenichi Handa <handa@etl.go.jp>
8583 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
8584 as modified if it is originally unmodified.
8586 * term.c (encode_terminal_code): Change the way to check if
8587 terminal coding does any conversion.
8588 (append_glyph): Set glyph->pixel_width correctly.
8590 * xdisp.c (display_line): While checking line continuation, pay
8591 attention to a padding glyph.
8593 2000-06-05 Gerd Moellmann <gerd@gnu.org>
8595 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
8597 2000-06-05 Dave Love <fx@gnu.org>
8599 * xdisp.c: Include fontset.h.
8601 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
8603 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8605 * dispnew.c: Conditionally include term.h.
8607 * coding.h: Declare code_convert_string_norecord.
8609 * frame.h (struct frame): Use volatile unconditionally.
8611 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
8613 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
8615 * systime.h: Protect against multiple inclusion.
8616 (timezone) [USG5_4]: Define as time_t.
8618 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8619 (Foptimize_char_table, make_temp_name): Declare.
8621 * Makefile.in (xdisp.o): Depend on fontset.h.
8623 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8625 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8626 (Foptimize_char_table, make_temp_name): Declare.
8630 * s/netbsd.h: Don't define autoconfiscated MATHERR.
8632 2000-06-02 Dave Love <fx@gnu.org>
8634 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
8636 2000-06-02 Gerd Moellmann <gerd@gnu.org>
8638 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
8639 result face, set flags in that face indicating that colors may not
8642 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
8643 glyph, use the ASCII NUL character to determine the face.
8645 2000-06-02 Dave Love <fx@gnu.org>
8647 * sysdep.c: Conditionally include stdlib.h, unistd.h.
8648 (VFORK_RETURN_TYPE): Remove.
8650 * config.in: Add NO_MATHERR.
8652 2000-06-01 Dave Love <fx@gnu.org>
8654 * cmds.c (internal_self_insert): Don't check
8655 Vbefore_change_function, Vafter_change_function.
8657 * insdel.c (signal_before_change, signal_after_change): Likewise.
8659 * buffer.c (Vbefore_change_function, Vafter_change_function):
8660 Variables and their initializations deleted.
8662 * callint.c (Fcall_interactively): Doc fix.
8664 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
8666 2000-05-31 Dave Love <fx@gnu.org>
8668 * textprop.c: Revert last change -- duplicated.
8670 2000-05-31 Gerd Moellmann <gerd@gnu.org>
8672 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
8675 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
8677 2000-05-31 Jason Rumney <jasonr@gnu.org>
8679 * search.c (Fre_search_forward, Fre_search_backward)
8680 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
8682 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
8684 2000-05-30 Jason Rumney <jasonr@gnu.org>
8686 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
8687 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
8689 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
8691 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
8692 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
8693 expand a nil default_filename.
8695 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
8696 pointer to glyph_to_pixel_coords, not a frame.
8698 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
8699 coding.h to dependencies.
8701 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
8703 * w32console.c (glyph_to_pixel_coords): Change first parameter to
8704 window pointer to be consistent with w32term.c and xterm.c.
8706 * w32fns.c: Format and doc changes to bring closer to xfns.c.
8707 (VIETNAMESE_CHARSET): Define if not defined in system headers.
8708 (Qline_spacing, Qcenter): New variables.
8709 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
8710 (x_set_line_spacing): New function.
8711 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
8712 (x_specified_cursor_type): New function.
8713 (x_set_cursor_type): Use it.
8714 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
8716 (validate_x_resource_name, x_get_resource_string): Measure lengths
8717 of external strings in bytes.
8718 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
8719 GetTextExtentPoint32 with NULL title.
8720 (Fx_create_frame): Initialize Qline_spacing.
8721 (w32_load_system_font): Initialize font->double_byte_p.
8722 (x_to_w32_charset): Use Vw32_charset_info_alist.
8723 (Image, busy cursor, tooltip functions): Merged changes from
8724 xfns.c. Not yet functional on Windows.
8726 * w32gui.h (W32FontStruct): Add double_byte_p member.
8728 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
8729 (emacs_button_translation): Use it.
8730 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
8731 in `mask' to be set.
8733 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
8736 * w32term.c: Format and doc changes to bring closer to xterm.c.
8737 (w32_char_font_type): New enum.
8738 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
8739 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
8740 (w32_encode_char): New function.
8741 (x_encode_char): Removed.
8742 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
8743 x_encode_char and w32_font_is_double_byte.
8744 (x_produce_image_glyph): Use image_ascent.
8745 (x_produce_glyphs): Use new version of w32_per_char_metric and
8746 handle NULL return value. Allow extra line spacing.
8747 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
8748 (w32_get_glyph_overhangs): Remove unicode_p param. Use
8749 w32_font_type member of glyph instead.
8750 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
8751 (fast_find_position): Make sure not to consider rows not visible
8753 (w32_read_socket) [WM_MENUSELECT]: Cannot call
8754 w32_menu_display_help with input blocked, as it can abort.
8755 (x_display_and_set_cursor): Choose cursor depending
8756 on buffer-local value of cursor_type.
8757 (x_draw_bar_cursor): Add parameter WIDTH.
8759 * w32term.h (CP_DEFAULT): Define.
8760 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
8762 2000-05-30 Gerd Moellmann <gerd@gnu.org>
8764 * search.c (Fre_search_forward, Fre_search_backward)
8765 (Fposix_search_backward, Fposix_search_forward): Doc fix.
8767 2000-05-30 Kenichi Handa <handa@etl.go.jp>
8769 * coding.c (detect_coding_iso2022): Fix code for checking
8770 CODING_CATEGORY_MASK_ISO_8_2.
8772 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
8774 * regex.c (PREFETCH_NOLIMIT): New function.
8775 (re_match_2_internal): Use it and adjust the end_match_2 logic.
8777 2000-05-29 Gerd Moellmann <gerd@gnu.org>
8779 * syntax.c (find_defun_start): Move test for
8780 open_paren_in_column_0_is_defun_start outside of the loop.
8782 * xdisp.c (redisplay_window): Really switch buffers when
8783 displaying mode lines, and temporarily set selected_frame to the
8784 frame of the window that's redisplayed.
8786 * xfaces.c (free_realized_faces): Block/unblock input.
8787 (free_realized_multibyte_face): Ditto.
8789 2000-05-29 Dave Love <fx@gnu.org>
8791 * textprop.c (Qkeymap): New variable.
8792 (syms_of_textprop): Intern it.
8794 * keymap.c: Include intervals.h.
8795 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
8797 * Makefile.in (keymap.o): Depend on intervals.h.
8799 * keyboard.c (menu_bar_items, tool_bar_items)
8800 (Fexecute_extended_command): Deal with `keymap' property.
8801 (read_key_sequence): Track map from `keymap' property as well as
8804 * intervals.c (get_local_map): Extra arg to allow looking for
8807 * intervals.h (map_property): New enum.
8808 (get_local_map): Extra arg using it.
8811 * lisp.h (get_local_map): Don't declare here.
8813 2000-05-29 Kenichi Handa <handa@etl.go.jp>
8815 * Makefile.in (callproc.o): Depend on composite.h.
8817 * callproc.c: Include composite.h.
8818 (Fcall_process): Handle composition correctly.
8820 * coding.h (coding_allocate_composition_data): Extern it.
8821 (coding_restore_composition): Likewise.
8823 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
8824 yet allocated, finish decoding with result
8825 CODING_FINISH_INSUFFICIENT_CMP.
8826 (coding_allocate_composition_data): Make it non-static.
8827 (coding_restore_composition): Likewise.
8829 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
8831 * charset.c (syms_of_charset): Revert last change.
8833 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8835 * term.c (produce_glyphs): Treat characters from the eight-bit-*
8836 charsets as unibyte, with 1-column screen width. Sent by Kenichi
8839 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8841 * charset.c (syms_of_charset): Set width of character sets
8842 eight-bit-control and eight-bit-graphic to 1 column.
8844 2000-05-26 Gerd Moellmann <gerd@gnu.org>
8846 * config.in (HAVE_SPEED_T): New define.
8848 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
8851 2000-05-26 Dave Love <fx@gnu.org>
8853 * coding.c (shrink_decoding_region): Initialize eol_conversion.
8855 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
8856 (Fsubr_arity): New function.
8857 (syms_of_data): Install them.
8859 2000-05-26 Kenichi Handa <handa@etl.go.jp>
8861 * charset.c (init_charset_once): Set the table bytes_by_char_head
8864 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
8865 the default fontset to what Emacs uses by default.
8866 (check_registry_encoding): This function deleted.
8867 (Fset_fontset_font): Remove the adhoc condition for the default
8868 fontset. Allow cons in FONTNAME.
8870 * fns.c (map_char_table): Ignore char-table entries for
8871 charsets eight-bit-control and eight-bit-graphic.
8873 2000-05-25 Ken Raeburn <raeburn@gnu.org>
8875 * emacs.c (main): Initialize keyboard syms before initializing
8876 window code, so face names are available.
8878 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
8880 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
8881 of an anchor at the beginning of a shy-group.
8883 2000-05-25 Gerd Moellmann <gerd@gnu.org>
8885 * xdisp.c (handle_invisible_prop): Don't try to skip over
8886 invisible text if end of text is already reached.
8888 2000-05-25 Dave Love <fx@gnu.org>
8890 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
8892 * coding.c (encode_eol): Add null statement after label.
8894 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
8896 * w16select.c (Fw16_set_clipboard_data): Fix the change from
8899 2000-05-25 Kenichi Handa <handa@etl.go.jp>
8901 * ccl.c (ccl_driver): Fix previous change.
8903 2000-05-25 Kenichi Handa <handa@etl.go.jp>
8905 * coding.c (run_pre_post_conversion_on_str): Set point to the
8906 beginning of buffer before calling coding->post_read_conversion.
8907 (decode_coding_string): Give correct args to
8908 run_pre_post_conversion_on_str.
8909 (encode_coding_string): Likewise.
8911 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8912 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8913 eight-bit-graphic correctly.
8915 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
8917 * fileio.c (Finsert_file_contents): Even if a file is not found,
8918 execute codes for setting up coding system. Call
8919 after-insert-file-functions unconditionally.
8921 2000-05-24 Gerd Moellmann <gerd@gnu.org>
8923 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8924 BSD_PGRPS are not defined.
8926 2000-05-24 Kenichi Handa <handa@etl.go.jp>
8928 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8930 (syms_of_charset): Avoid building same strings.
8932 2000-05-23 Gerd Moellmann <gerd@gnu.org>
8934 * lread.c (Fload): Add a comment about the meaning of
8935 Vuser_init_file being t.
8937 * puresize.h (BASE_PURESIZE): Increase to 675000.
8939 * s/gnu-linux.h (setpgrp): Don't define it here because this
8940 prevents compilation on GNU/Linux systems with glib 2.2.
8942 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8945 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8947 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8948 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8950 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8952 2000-05-23 Kenichi Handa <handa@etl.go.jp>
8954 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8956 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8958 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
8960 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8962 2000-05-22 Kenichi Handa <handa@etl.go.jp>
8964 * keyboard.c (read_char): Allow character codes 128..255 to be
8965 handled by input-method-function.
8967 * insdel.c (adjust_markers_for_replace): Fix previous change.
8968 (adjust_after_replace): If PREV_TEXT is nil, call
8969 adjust_markers_for_insert, not adjust_markers_for_replace.
8971 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
8973 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8974 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8975 [HAVE_GRANDPT]: Define.
8976 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8978 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8981 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8983 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8985 2000-05-20 Kenichi Handa <handa@etl.go.jp>
8987 The following changes are to handle 8-bit characters in a
8988 multibyte buffer/string without facing with byte combining
8989 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8990 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8992 * Makefile.in (fns.o): Depend on charset.h.
8994 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8995 convert it to unibyte.
8996 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8998 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8999 apparent char boundary.
9000 (Fset_buffer_multibyte): Convert 8-bit characters in the range
9001 0x80..0x9F to/from multibyte form.
9003 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
9006 * callproc.c (Fcall_process): Always encode an argument string if
9007 it is multibyte. Setup src_multibyte and dst_multibyte members of
9008 process_coding properly.
9010 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
9011 SPLIT_NON_ASCII_CHAR.
9013 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
9015 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
9017 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
9018 (SPLIT_CHARACTER_SEQ): This macro deleted.
9019 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
9020 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
9021 and eight-bit-graphic.
9022 (char_to_string): Likewise. Signal an error for too large
9024 (char_printable_p): Return 0 for 8-bit characters.
9025 (update_charset_table): Update iso_charset_table only when a final
9026 character is non-negative.
9027 (find_charset_in_text): Renamed from find_charset_in_str.
9028 Arguments and return value changed. Callers changed.
9029 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
9030 be -1 if CHARSET is used only internally.
9031 (Fmake_char_internal): Handle new charsets; eight-bit-control and
9033 (Fcharset_after): Simplified.
9034 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
9035 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
9036 (multibyte_chars_in_text): Simplified by assuming there's no
9037 invalid multibyte sequence.
9038 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9039 (str_as_unibyte): New functions.
9040 (Fstring): Simpified by assuming that byte combining never happens.
9041 (init_charset_once): Initialization for
9042 LEADING_CODE_8_BIT_CONTROL.
9043 (syms_of_charset): Intern and staticpro Qeight_bit_control and
9044 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
9045 eight-bit-control and eight-bit-graphic.
9047 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
9048 (CHARSET_8_BIT_GRAPHIC): New macros.
9049 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
9050 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
9051 (CHARSET_REVERSE_CHARSET): Likewise.
9052 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
9054 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
9055 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
9056 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
9057 encounter an invalid multibyte sequence.
9058 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
9059 sequence is always valid.
9060 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
9061 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
9062 (CHAR_STRING): For 8-bit characters, call char_to_string.
9063 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
9064 multibyte sequence is always valid.
9065 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
9066 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9067 (str_as_unibyte): Extern them.
9068 (BCOPY_SHORT): Fix a bug.
9069 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
9070 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
9071 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
9072 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
9074 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
9075 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
9076 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
9077 (EMIT_BYTES): New macros.
9078 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
9079 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
9081 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
9082 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
9083 check the validity of multibyte sequence.
9084 (decode_coding_emacs_mule): New function.
9085 (encode_coding_emacs_mule): New macro.
9086 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
9088 (DECODE_ISO_CHARACTER): Just return a character code.
9089 (DECODE_COMPOSITION_START): Set coding->result instead of result.
9090 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
9091 EMIT_CHAR to produced decoded characters. Exit the loop only by
9092 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
9094 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
9095 only position codes for an invalid character.
9096 (encode_designation_at_bol): Return new destination pointer. 5th
9097 arg DSTP is changed to DST.
9098 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
9099 from the source by ONE_MORE_CHAR. Don't handle the case of last
9101 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
9103 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
9104 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
9105 TWO_MORE_BYTES to fetch a byte from the source.
9106 (encode_eol): Pay attention to coding->src_multibyte.
9107 (detect_coding, detect_eol): Preserve members src_multibyte and
9109 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
9110 (encoding_buffer_size): Set magnification to 3 for all coding
9111 systems that require encoding.
9112 (ccl_coding_driver): For decoding, be sure that the result is
9113 valid multibyte sequence.
9114 (decode_coding): Initialize coding->errors and coding->result.
9115 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
9116 and raw-text, always call decode_eol. Handle the case of last
9117 block here. If not coding->dst_multibyte, convert the resulting
9118 sequence to unibyte.
9119 (encode_coding): Initialize coding->errors and coding->result.
9120 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
9121 and raw-text, always call encode_eol. Handle the case of last
9123 (shrink_decoding_region, shrink_encoding_region): Detect cases
9124 that we can't skip data more rigidly.
9125 (code_convert_region): Setup src_multibyte and dst_multibyte
9126 members of coding. For decoding, if the buffer is multibyte,
9127 convert the source sequence to unibyte in advance. For encoding,
9128 if the buffer is multibyte, convert the resulting sequence to
9129 multibyte afterward.
9130 (run_pre_post_conversion_on_str): New function.
9131 (code_convert_string): Deleted and divided into the following two.
9132 (decode_coding_string, encode_coding_string): New functions.
9133 (code_convert_string1, code_convert_string_norecord): Call one of
9135 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
9136 MAKE_NON_ASCII_CHAR.
9137 (Fset_terminal_coding_system_internal)
9138 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
9139 and dst_multibyte members.
9140 (init_coding_once): Initialize iso_code_class with new enum
9141 ISO_control_0 and ISO_control_1.
9143 * coding.h (enum iso_code_class_type): Member ISO_control_code is
9144 devided into ISO_control_0 and ISO_control_1.
9145 (struct coding_system): New members src_multibyte, dst_multibyte,
9146 errors, and result. Delete member fake_multibyte.
9147 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
9149 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
9152 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
9155 * editfns.c (Fformat): Be sure to convert 8-bit characters to
9157 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
9159 (Ftranspose_region): Delete codes for handling byte combining.
9161 * fileio.c (Finsert_file_contents): Setup src_multibyte and
9162 dst_multibyte members of coding. On handling REPLACE on unibyte
9163 buffer, convert the result of decode_coding to unibyte. On
9164 inserting into a mutibyte buffer, always call code_convert_region.
9165 (e_write): Setup coding->src_multibyte according to the
9166 multibyteness of the source (buffer or string).
9168 * fns.c (concat): Handle 8-bit characters correctly.
9169 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
9170 unibyte in the result.
9171 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
9172 valid multibyte form in the result.
9173 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
9174 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
9175 return -1, signal an error.
9176 (base64_encode_1): New arg MULTIBYTE. Get each character by
9177 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
9178 character is found, return -1.
9179 (Fbase64_decode_region): Delete codes for handling byte-combining.
9180 Treat each decoded byte as a unibyte character.
9181 (Fbase64_decode_string): Return unibyte string.
9182 (Fcompare_strings, concat, string_byte_to_char): Use
9183 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
9184 FETCH_STRING_CHAR_ADVANCE.
9185 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9186 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
9188 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
9189 SPLIT_NON_ASCII_CHAR.
9190 (fontset_ref_via_base, fontset_set): Likewise
9192 * insdel.c (adjust_markers_for_record_delete): Deleted.
9193 (adjust_markers_for_insert): Argument changed. Caller changed.
9194 (adjust_markers_for_replace): Likewise.
9195 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
9196 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
9197 (copy_text): Delete unused local varialbe c_save. For converting
9198 to multibyte, be sure to make all 8-bit characters in valid
9200 (count_size_as_multibyte): Handle 8-bit characters correctly.
9201 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9202 (adjust_after_replace, replace_range, del_range_2)
9203 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
9204 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9205 (adjust_after_replace, replace_range, del_range_2) Delete codes for
9206 handling byte combining.
9207 (adjust_before_replace): Deleted.
9209 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
9210 SPLIT_NON_ASCII_CHAR.
9211 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
9212 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9213 (Fkey_description): Likewise.
9215 * lread.c (read1): On reading multibyte string, be sure to make
9216 all 8-bit chararacters in valid multibyte form.
9217 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9219 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
9222 * process.c (Fstart_process): GCPRO current_dir before calling
9223 Ffind_operation_coding_system. Encode arguments here.
9224 (create_process): Don't encode arguments here. Setup
9225 src_multibyte and dst_multibyte members of struct coding.
9226 (read_process_output): Setup src_multibyte and dst_multibyte
9227 members of struct coding. If the output is to multibyte buffer,
9228 always decode the output of the process. Adjust the
9229 representation of 8-bit characters to the multibyteness of the output.
9230 (send_process): Setup coding->src_multibyte according to the
9231 multibyteness of the source.
9233 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9234 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
9235 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
9237 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
9239 * w16select.c (Fw16_set_clipboard_data): Setup members
9240 src_multibyte and dst_multibyte of coding. Adjusted for the
9241 change for find_charset_in_str.
9242 (Fw16_get_clipboard_data): Likewise.
9244 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
9245 dst_multibyte of coding.
9246 (x_to_w32_font): Likewise.
9248 * w32select.c (Fw32_set_clipboard_data): Setup members
9249 src_multibyte and dst_multibyte of coding. Adjusted for the
9250 change for find_charset_in_str.
9251 (Fw32_get_clipboard_data): Likewise.
9253 * xdisp.c (get_next_display_element): Handle 8-bit characters
9255 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
9256 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
9258 * xselect.c (selection_data_to_lisp_data): Setup members
9259 src_multibyte and dst_multibyte of coding. Adjusted for the
9260 change for find_charset_in_str.
9261 (lisp_data_to_selection_data): Likewise.
9263 2000-05-19 Gerd Moellmann <gerd@gnu.org>
9265 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
9267 * dispextern.h (Vimage_types): Add extern declaration.
9269 * xdisp.c (Vimage_types): Moved here from xfns.c.
9270 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
9272 * xfns.c (Vimages_types): Moved to xdisp.c.
9273 (syms_of_xfns): Move `image-types' to xdisp.c.
9275 * w32fns.c (Vimage_types): Removed.
9276 (syms_of_w32fns): Remove `image-types'.
9278 2000-05-18 Kenichi Handa <handa@etl.go.jp>
9280 * fns.c (map_char_table): Pay attention to character number of
9281 charset. Check the validity of charset at the first level. For
9282 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
9285 * fontset.c: Include "buffer.h".
9286 (fs_load_font): If the face has fontset, record the face ID in
9288 (Finternal_char_font): New function.
9289 (accumulate_font_info): New function.
9290 (Ffontset_info): Rewritten for the new fontset implementation.
9291 (syms_of_fontset): Register Vdefault_fontset in the first element
9292 of Vfontset_table. Include Vdefault_fontset in
9293 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
9296 2000-05-16 Dave Love <fx@gnu.org>
9298 * m/iris5d.h: Deleted -- unused.
9300 2000-05-16 Gerd Moellmann <gerd@gnu.org>
9302 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
9303 `invalid' instead of `illegal'.
9305 * indent.c (Fmove_to_column): When ending within a tab, insert
9306 spaces first so that markers at the end of the tab get adjusted.
9308 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
9309 buffer list that wasn't selected in that frame.
9311 * filelock.c (get_boot_time): To obtain an 8 char file name, which
9312 is needed on mescaline, use a 2 char prefix, and call
9313 make_temp_name with second arg non-zero.
9315 * fileio.c (make_temp_name): New function, extracted from
9317 (Fmake_temp_name): Use it.
9319 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
9321 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
9323 2000-05-15 Gerd Moellmann <gerd@gnu.org>
9325 * Makefile.in (lisp): Add env.elc.
9327 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
9329 2000-05-12 Gerd Moellmann <gerd@gnu.org>
9331 * search.c (Freplace_match): Handle case of `\N' in the
9332 replacement when there's no group N.
9334 2000-05-11 Gerd Moellmann <gerd@gnu.org>
9336 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
9337 of the message to message_dolog.
9339 * keyboard.c (read_char): Don't clear current message for help
9340 events; let the code handling help events handle this. Change
9341 code detecting help events that should be ignored.
9343 * xdisp.c (handle_single_display_prop): Don't try to set PT if
9344 we're interating over a string.
9346 2000-05-09 Dave Love <fx@gnu.org>
9348 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
9349 that offset before writing. Move gcpro region past call of
9352 2000-05-04 Dave Love <fx@gnu.org>
9354 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
9356 2000-05-04 Gerd Moellmann <gerd@gnu.org>
9358 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
9359 of inserted characters when BUF equals the current buffer, and PT
9360 is in front of or equal to FROM.
9362 2000-05-03 Gerd Moellmann <gerd@gnu.org>
9364 * xdisp.c (handle_single_display_prop): If display property value
9365 is invalid, or something not supported on the frame, restore
9366 iterator's position to what it was initially. Make sure to return
9367 0 for invalid and unsupported property values.
9369 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
9370 that x_per_char_metric returns null.
9372 2000-05-02 Gerd Moellmann <gerd@gnu.org>
9374 * xterm.h (struct face): Add forward declaration.
9375 (struct image): Ditto.
9376 (image_ascent): Add prototype.
9378 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
9379 (x_draw_image_relief, x_draw_image_foreground_1): Call function
9380 image_ascent instead of using IMAGE_ASCENT.
9382 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
9383 (IMAGE_ASCENT): Removed.
9385 * xfns.c (Qcenter): New variable.
9386 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
9387 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
9388 (image_ascent): New function.
9389 (lookup_image): Recognize `:ascent center'.
9390 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
9391 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9392 (xbm_load): Don't set image's ascent here.
9393 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
9394 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
9395 check ascent values here.
9396 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
9397 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
9398 (syms_of_xfns): Initialize Qcenter.
9400 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
9401 to the limits, increase the limits.
9403 2000-05-01 Kenichi Handa <handa@etl.go.jp>
9405 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
9406 Check Vfont_encoding_alist against the full name of the opened font.
9408 2000-04-28 Gerd Moellmann <gerd@gnu.org>
9410 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
9411 taller than the window.
9413 2000-04-28 Kenichi Handa <handa@etl.go.jp>
9415 * xfaces.c (realize_x_face): Fix the argument of the second
9416 xassert. BASE_FACE may not be a face for ASCII.
9418 2000-04-27 Gerd Moellmann <gerd@gnu.org>
9420 * print.c (print_object): Treat print-length < 0 as nil.
9422 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
9424 * s/freebsd.h (TERMCAP_OBJ): Removed.
9425 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
9427 * lread.c (read1): Don't treat period followed by certain
9428 characters as symbol start.
9430 * xfns.c (slurp_file): New function.
9431 (xbm_image_p): Handle case of in-memory XBM files.
9432 (xbm_scan): Rewritten to work on memory buffers instead of files.
9433 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
9434 Work on memory buffers instead of files. If DATA is null test
9435 if buffer looks like an in-memory XBM file.
9436 (xbm_load_image): Renamed from xbm_load_image_file. Work on
9437 memory buffers instead of files.
9438 (xbm_file_p): New function.
9439 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
9441 * lread.c (end_of_file_error): New function.
9442 (read1): Call it instead of signaling `end-of-file' directly.
9444 * print.c (print_error_message): Print data of `end-of-file'
9445 with Fprinc instead of Fprin1.
9447 2000-04-26 Ken Raeburn <raeburn@gnu.org>
9449 * window.c (freeze_window_start): Check that minibuffer scroll
9450 window isn't nil before extracting the window structure pointer
9453 * undo.c (record_delete): If we hit the end of the undo list, stop
9454 picking elements apart.
9456 2000-04-26 Gerd Moellmann <gerd@gnu.org>
9458 * xdisp.c (display_line): If lines are continued, restore
9459 iterator's ascent/descent information to the values before the
9460 first glyph not fitting on the line.
9462 2000-04-25 Gerd Moellmann <gerd@gnu.org>
9464 * xdisp.c (try_window_id) <all changes above window start>: Adjust
9465 positions in glyph matrix. Don't compute new window end positions.
9467 * dispnew.c (increment_matrix_positions): Renamed from
9468 increment_glyph_matrix_buffer_positions.
9469 (increment_row_positions): Renamed from
9470 increment_glyph_row_buffer_positions.
9472 * dispextern.h: Change names of renamed functions from dispnew.c
9475 2000-04-24 Gerd Moellmann <gerd@gnu.org>
9477 * fileio.c (Fdo_auto_save): Create directories for auto-save
9478 list file if necessary.
9480 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
9481 from buffer or frame.
9482 (automatic_hscrolling_p): New variable.
9483 (hscroll_windows): Scroll windows horizontally only if automatic
9484 hscrolling is allowed.
9485 (syms_of_xdisp): New variable `automatic-hscrolling'.
9487 * frame.h (struct frame): Add member extra_line_spacing.
9489 * xfns.c (x_set_line_spacing): New function.
9490 (Fx_create_frame): Set line spacing from resources.
9491 (Qline_spacing): New variable.
9492 (syms_of_xfns): Initialize Qline_spacing.
9494 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
9496 * buffer.c (init_buffer_once): Handle extra_line_spacing.
9497 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
9498 (reset_buffer): Don't initialize extra2 and extra3. Initialize
9499 extra_line_spacing from default value.
9500 (init_buffer_once): Initialize default value of extra_line_spacing.
9502 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
9505 * xterm.c (x_produce_glyphs): Remove reference to struct it's
9506 prompt_width. Add extra line spacing.
9508 * term.c (produce_glyphs): Remove reference to struct it's
9511 * dispextern.h (struct it): Remove member prompt_width, add
9514 2000-04-22 Gerd Moellmann <gerd@gnu.org>
9516 * dispnew.c (update_frame_line): When writing a whole line, make
9517 sure cursor is in the right row afterwards, otherwise a use of
9518 capability `ch' in cmgoto might leave the cursor in the row below.
9520 2000-04-21 Gerd Moellmann <gerd@gnu.org>
9522 * lisp.h (struct Lisp_Buffer_Cons): Remove.
9524 * keyboard.c (timer_check): Fix typo in comment.
9526 2000-04-21 Kenichi Handa <handa@etl.go.jp>
9528 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
9529 name change: ch -> character.
9531 2000-04-20 Gerd Moellmann <gerd@gnu.org>
9533 * keyboard.c (echo_message_buffer): New variable.
9534 (echo_now): Set echo_message_buffer to the echo area buffer used
9535 to display the echo.
9536 (cancel_echoing): Reset echo_message_buffer to nil.
9537 (read_char): Code rewritten that handles canceling an echo or
9538 echoing a dash, respectively.
9540 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
9541 directory doesn't exist.
9543 2000-04-19 Dave Love <fx@gnu.org>
9545 * fns.c (syms_of_fns): Defsubr mapc.
9546 (concat): Don't allow numeric args.
9547 (Fconcat): Doc change.
9549 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
9551 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
9552 instead define end_match(1|2) more carefully.
9553 Use GET_CHAR_BEFORE_2 for `begline'.
9555 2000-04-19 Gerd Moellmann <gerd@gnu.org>
9557 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
9558 on 64-bit systems where NULL is defined as `0'.
9560 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
9561 the `variable argument list' to make it work on Alpha.
9563 * m/alpha.h (_LP64) [!_LP64]: Define.
9564 (ORDINARY_LINK): Define for NetBSD.
9566 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
9568 2000-04-19 Dave Love <fx@gnu.org>
9570 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
9573 * Makefile.in (LIBS): Don't use.
9574 (GETLOADAVG_OBJ): Define again.
9575 (otherobj): Add GETLOADAVG_OBJ.
9577 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
9579 2000-04-18 Gerd Moellmann <gerd@gnu.org>
9581 * lread.c (read_filtered_event): Cancel and start busy cursor.
9583 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
9584 that the per-character metrics may be null.
9586 2000-04-17 Gerd Moellmann <gerd@gnu.org>
9588 * buffer.c (clone_per_buffer_values): New function.
9589 (Fmake_indirect_buffer): Add optional argument CLONE. Call
9590 clone_per_buffer_values if CLONE is not nil.
9592 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9594 2000-04-16 Dave Love <fx@gnu.org>
9596 * Makefile.in: Remove obsolete localcpp stuff.
9597 (GETLOADAVG_OBJ): Don't define.
9598 (obj): Move LIBOBJS...
9599 (otherobj): ... to here.
9600 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
9601 whitespace-only lines after the continuation (Irix).
9603 2000-04-14 Gerd Moellmann <gerd@gnu.org>
9605 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
9607 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
9609 2000-04-14 Dave Love <fx@gnu.org>
9611 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
9612 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
9613 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
9614 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
9617 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
9618 autoconfiscated HAVE_GETLOADAVG.
9620 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
9623 2000-04-14 Gerd Moellmann <gerd@gnu.org>
9625 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
9626 (fill_in_lock_file_name): Avoid existing files that aren't links.
9628 2000-04-14 Dave Love <fx@gnu.org>
9630 * Makefile.in (LIBS, LIBOBJS): New variable.
9631 (INTERVAL_SRC): Convert to make variable.
9632 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
9633 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
9634 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
9636 (SOME_MACHINE_OBJECTS): Remove interval stuff.
9637 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
9638 (shortlisp): Add facemenu, float-sup, frame.
9639 (SOME_MACHINE_LISP): Remove them from here.
9640 (LIBES): Change unused LDLIBS to autoconf LIBS.
9642 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
9644 2000-04-14 Kenichi Handa <handa@etl.go.jp>
9646 * composite.c (update_compositions): If FROM and TO are not in a
9647 valid range, do nothing.
9649 2000-04-13 Gerd Moellmann <gerd@gnu.org>
9651 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
9653 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
9655 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
9658 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
9660 * fileio.c (a_write): Remove redundant semi-colons.
9661 (e_write): Return -1 if failed to write all the data.
9662 This fixes the changes made at 1999-12-15.
9664 2000-04-12 Dave Love <fx@gnu.org>
9666 * fns.c (mapcar1): Test for null vals to support mapc.
9667 (Fmapc): New function.
9669 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
9671 * msdos.c (NUM_MOUSE_BUTTONS): Define.
9672 (IT_frame_up_to_date): Support the buffer local value of
9673 cursor-type, if defined.
9675 2000-04-10 Dave Love <fx@gnu.org>
9677 * editfns.c (preceding-char, following-char): Doc fix.
9679 2000-04-10 Ken Raeburn <raeburn@gnu.org>
9681 * Makefile.in (temacs): Revert 2000-03-12 change.
9683 2000-04-10 Jason Rumney <jasonr@gnu.org>
9685 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
9687 2000-04-10 Gerd Moellmann <gerd@gnu.org>
9689 * xdisp.c (setup_echo_area_for_printing): Choose an echo
9690 area buffer, if it's not set up yet.
9692 * indent.c (compute_motion): Set immediate_quit.
9694 2000-04-09 Gerd Moellmann <gerd@gnu.org>
9696 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
9697 (realize_tty_face): Suppress boldness if colors are the inverse of
9698 the default colors, and tty_suppress_bold_inverse_default_colors_p
9700 (Ftty_suppress_bold_inverse_default_colors): New function.
9701 (syms_of_xfaces): Defsubr it.
9703 * buffer.c (Frestore_buffer_modified_p): New function.
9704 (syms_of_buffer): Defsubr it.
9706 2000-04-08 Ken Raeburn <raeburn@gnu.org>
9708 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
9709 charset id (int) argument, not a charset (Lisp_Object).
9711 * coding.h (code_convert_string): Declare.
9712 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
9713 object, as the fourth argument to code_convert_string.
9715 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
9716 (Fset_fontset_font): Use EQ to compare lisp objects.
9718 2000-04-05 Ken Raeburn <raeburn@gnu.org>
9720 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
9721 a pointer that looks like a lisp object.
9722 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
9723 zero, instead see whether it's an integer object, since they can't
9725 (GET_INTERVAL_OBJECT): Simply assign to the destination.
9727 * dispnew.c (allocate_matrices_for_frame_redisplay)
9728 (direct_output_forward_char): Use X(U)INT and make_number as needed
9729 to convert between (unsigned) int values and lisp integers.
9730 * keyboard.c (read_key_sequence): Likewise.
9731 * lread.c (substitute_object_recurse): Likewise.
9732 * fns.c (concat, hash_lookup, hash_remove): Likewise.
9733 * minibuf.c (do_completion, Fminibuffer_complete_word)
9734 (Fminibuffer_completion_help): Likewise.
9735 * term.c (produce_special_glyphs): Likewise.
9737 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
9738 * print.c (print_preprocess, print_object): Likewise.
9740 * search.c (compile_pattern): Use NILP when checking for nil.
9742 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
9743 __OPTIMIZE__]: Provide a GNU C macro version that handles
9745 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
9746 field, to better cope with ENABLE_CHECKING and calls that modify a
9747 Lisp_Object using its old value.
9749 2000-04-04 Gerd Moellmann <gerd@gnu.org>
9751 * window.c (compare_window_configurations): Signal an error
9752 if parameters C1 or C2 aren't window configurations.
9754 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
9755 AFTER_POTENTIAL_GC calls around calls to functions that can
9756 signal an error and thus invoke the debugger.
9758 2000-04-03 Gerd Moellmann <gerd@gnu.org>
9760 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
9761 an error if decoding fails.
9763 * keyboard.c (lispy_mouse_names): Variable removed.
9764 (Vlispy_mouse_stem): New variable.
9765 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
9766 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
9767 for any mouse button number. Increase size of mouse_syms and
9768 button_down_location as needed. Call modify_event_symbol with
9769 different arguments.
9770 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
9771 Call modify_event_symbol with different arguments.
9772 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
9773 for any button number. Call modify_event_symbol with different
9775 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
9776 Accept a string for NAME_ALIST_OR_STEM.
9778 * lisp.h (larger_vector): Add prototype.
9780 * fns.c (larger_vector): Make externally visible.
9782 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
9784 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
9786 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
9787 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
9788 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
9789 we are between str1 and str2.
9790 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
9791 (PATFETCH): Use `TRANSLATE'.
9792 (PATFETCH_RAW): Fetch multibyte char if applicable.
9793 (PATUNFETCH): Remove.
9794 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
9795 When writing a char, write it directly into the pattern buffer rather
9796 than going needlessly through a temp char-array.
9797 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
9798 multibyte magic and remove the useless `#ifdef emacs'.
9799 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
9802 * regex.h (struct re_pattern_buffer): Make field `multibyte'
9803 conditional on `emacs'.
9805 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
9807 2000-04-01 Ken Raeburn <raeburn@gnu.org>
9809 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
9810 non-union-type versions of XMARK and friends here, because XMARK
9811 and friends won't work on an integer field if NO_UNION_TYPE is not
9813 (make_number): Define as a function if it's not defined as a macro.
9815 * composite.c (run_composite_function): Use NILP when checking for nil.
9816 (syms_of_composite): Delete local var NARGS, pass an int as first
9817 argument to Fmake_hash_table.
9819 * editfns.c (text_property_stickiness): Use NILP to test
9820 Lisp_Object boolean value.
9821 (Fmessage_or_box): Don't use NILP to test int variable.
9822 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
9823 problems reading from and changing the same lisp value in an
9826 2000-04-01 Gerd Moellmann <gerd@gnu.org>
9828 * term.c (TN_no_color_video): New variable.
9829 (term_init): Intitialize TN_no_color_video.
9830 (enum no_color_bit): New enumeration.
9831 (MAY_USE_WITH_COLORS_P): New macro.
9832 (turn_on_face): Use it to determine if attributes may be used
9833 combined with colors.
9835 2000-04-01 Ken Raeburn <raeburn@gnu.org>
9837 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
9838 with int lvalues via casts; instead, just yield lisp object lvalues.
9839 (enlarge_window): Variable sizep now points to Lisp_Object. Use
9840 proper accessor macros.
9841 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
9842 (grow_mini_window): Fix typo getting int value of root->height.
9844 * xdisp.c (compute_string_pos): Fix order of arguments to
9845 string_pos_nchars_ahead.
9846 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
9847 count arg to variable-arg routines like Frun_hook_with_args and
9849 (back_to_previous_visible_line_start)
9850 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
9851 fixed-arg routines like Fget_char_property and Fmake_string.
9852 (reconsider_clip_changes): Use XINT when comparing integer lisp
9853 objects, or passing them as int arguments.
9854 (mark_window_display_accurate, insert_left_trunc_glyphs)
9855 (append_space, extend_face_to_end_of_line): Use make_number when
9856 storing or passing integer values as lisp objects.
9857 (set_cursor_from_row, highlight_trailing_whitespace): Use
9858 INTEGERP, not implicit test against zero, for glyph object.
9859 (try_window_id): Don't use make_number when we want an int value.
9861 * xfaces.c (xlfd_symbolic_value): Make last argument a
9862 Lisp_Object, to be consistent with callers.
9863 (Fbitmap_spec_p): Use XINT to get numeric value of height.
9864 (lface_hash): Apply XFASTINT to lisp values before folding in.
9866 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
9867 fill in window width and height. Pass an int, not a lisp object,
9868 as first arg to Finsert.
9870 2000-04-01 Gerd Moellmann <gerd@gnu.org>
9872 * xfaces.c (realize_basic_faces): Block input while realizing
9875 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9877 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9879 2000-03-31 Gerd Moellmann <gerd@gnu.org>
9881 * xterm.c (x_produce_glyphs): When displaying unibyte text
9882 or ASCII, handle case that per-char metric is null.
9884 2000-03-30 Ken Raeburn <raeburn@gnu.org>
9886 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9888 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
9889 (XSUBR, XBUFFER): Verify correct object type before returning
9890 pointer, using eassert.
9891 * frame.h (XFRAME): Likewise.
9893 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
9894 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9895 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
9896 * data.c (set_internal): Likewise.
9897 * dispextern.h (WINDOW_WANTS_MODELINE_P)
9898 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
9899 * fileio.c (auto_save_1): Likewise.
9900 * insdel.c (check_markers): Likewise.
9901 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9902 * undo.c (record_insert): Likewise.
9903 * vmsproc.c (child_sig): Likewise.
9904 * window.c (unshow_buffer, window_loop): Likewise.
9905 * xterm.c (x_erase_phys_cursor): Likewise.
9907 2000-03-30 Gerd Moellmann <gerd@gnu.org>
9909 * xfns.c (free_image_cache): Free the cache structure itself
9910 last, after all its members have been freed.
9912 * lisp.h (xstrdup): Add prototype.
9914 * alloc.c (xstrdup): Moved here from xfaces.c.
9915 (allocating_for_lisp): Variable removed.
9916 (lisp_malloc): Block input around the calls to malloc and mem_insert.
9918 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9920 (xstrdup): Moved to alloc.c.
9922 2000-03-29 Ken Raeburn <raeburn@gnu.org>
9924 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9926 * emacs.c (main): Fix sense of no-loadup test.
9928 * config.in (ENABLE_CHECKING): Undef.
9930 * lisp.h (struct interval): Replace "parent" field with a union of
9931 interval pointer and Lisp_Object; add new bitfield to use as
9932 discriminant. Change other flag fields to bitfields.
9933 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
9934 is defined and the supplied test fails, print a message and abort.
9935 (eassert): New macro. Use CHECK to provide an assert-like facility.
9937 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9938 pointers; abort if the value looks like a lisp object.
9939 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
9940 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
9941 Modify for new interval parent definition.
9943 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
9944 (UNMARK_BALANCE_INTERVALS): Update references that need an
9945 addressable lisp object in the interval structure.
9946 (die): New function.
9947 (suppress_checking): New variable.
9949 * intervals.c (interval_start_pos): Just return 0 if there's no
9952 2000-03-29 Gerd Moellmann <gerd@gnu.org>
9954 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9955 and earlier Emacs versions.
9957 * keyboard.c (Ftop_level): Cancel busy-cursor.
9959 * eval.c (call_debugger): Cancel busy-cursor.
9961 2000-03-29 Kenichi Handa <handa@etl.go.jp>
9963 * search.c (Freplace_match): Adjust multibyteness of the current
9964 buffer and NEWTEXT. Free allocated memory before signaling an error.
9966 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9968 * regex.c (analyse_first): New function obtained by ripping out most
9969 of re_compile_fastmap and generalizing it a little bit so that it
9970 can also just return whether a given (sub)pattern can match the empty
9972 (regex_compile): Use `analyse_first' to decide whether the loop-check
9973 needs to be done or not for *, +, *? and +? (the loop check is costly
9974 for non-greedy repetition).
9975 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9977 2000-03-28 Dave Love <fx@gnu.org>
9979 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
9981 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9983 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9985 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9987 (enum re_opcode_t): Update description of succeed_n.
9988 (PATFETCH): Always define.
9989 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9990 operators, char classes, shy-groups and intervals).
9991 Optimize special cases of intervals so as to only use succeed_n and
9992 jump_n when really needed.
9993 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9994 that we don't have to handle the special cases any more.
9995 Simplify on_failure_jump handling as well.
9997 2000-03-28 Jason Rumney <jasonr@gnu.org>
9999 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
10001 2000-03-27 Gerd Moellmann <gerd@gnu.org>
10003 * s/freebsd.h (GC_SETJMP_WORKS): Define.
10005 * s/msdos.h (GC_SETJMP_WORKS): Define.
10007 * alloc.c (mark_maybe_object): New function.
10008 (mark_memory): Use it.
10009 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
10010 (setjmp_tested_p, longjmp_done): New variables.
10011 (test_setjmp): New function.
10012 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
10013 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
10015 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
10016 to DEC_TEXT_POS and INC_TEXT_POS.
10018 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
10019 with parameter MULTIBYTE_P.
10021 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
10023 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
10024 buffers because it looks for multibyte character byte sequences
10025 which don't exist in unibyte text.
10027 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
10029 * xfaces.c (register_color, unregister_color, unregister_colors)
10030 [DEBUG_X_COLORS]: New functions.
10031 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
10033 * xfns.c (x_set_cursor_color): Get color reference counts right.
10035 * xterm.c (x_copy_color): New function.
10036 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
10038 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
10039 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
10040 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
10041 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
10042 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
10043 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
10044 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
10045 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
10046 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
10047 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
10049 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
10050 names for handling per-buffer variables.
10052 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
10053 instead of MAX_BUFFER_LOCAL_VARS.
10054 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
10056 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
10058 * xfns.c (x_specified_cursor_type): New function.
10059 (x_set_cursor_type): Use it.
10061 * buffer.h (struct buffer): Add cursor_type.
10063 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
10065 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
10066 (print_partial_compiled_pattern, re_compile_fastmap):
10068 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
10069 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
10070 executing it as well as when popping it off the stack to find infinite
10071 loops in non-greedy repetition operators.
10073 2000-03-26 Gerd Moellmann <gerd@gnu.org>
10075 * doc.c (Qfunction_documentation): New variable.
10076 (syms_of_doc): Initialize Qfunction_documentation.
10077 (Fdocumentation): If FUNCTION is a symbol with non-nil
10078 `function-documentation' property, return a documentation derived
10081 * buffer.c (syms_of_buffer): Add default-cursor-type.
10082 (init_buffer_once): Don't let cursor_type have a local value
10085 * xterm.c (x_display_and_set_cursor): Choose cursor depending
10086 on buffer-local value of cursor_type.
10087 (x_draw_bar_cursor): Add parameter WIDTH.
10089 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
10090 (init_buffer_once): Set default cursor_type value to t.
10091 Mark cursor_type as local everywhere.
10092 (syms_of_buffer): New per-buffer variable cursor-type.
10094 * buffer.h (struct buffer): Remove member local_var_flags,
10096 (MAX_BUFFER_LOCAL_VARS): New macro.
10097 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
10098 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
10099 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
10100 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
10102 * print.c (print_object): Use new macros for per-buffer variables.
10104 * category.c (Fset_category_table): Use new macros for per-buffer
10107 * buffer.c (buffer_permanent_local_flags): Make a char array.
10108 (max_buffer_local_idx): New variable.
10109 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
10110 for new handling of per-buffer variables.
10111 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
10112 (init_buffer_once): Initialize per-buffer vars differently.
10113 Set max_buffer_local_idx.
10115 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
10118 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
10120 * data.c (do_symval_forwarding, store_symval_forwarding)
10121 (find_symbol_value, set_internal, default_value, Fset_default)
10122 (Fkill_local_variable, Flocal_variable_p): Use new macros for
10123 per-buffer variables.
10125 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
10127 2000-03-24 Gerd Moellmann <gerd@gnu.org>
10129 * xterm.c (x_term_init): Unblock input around call1 of
10130 Qvendor_specific_keysyms.
10132 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
10133 (find_defun_start): Consider an open parenthesis in column 0
10134 a defun start only if open_paren_in_column_0_is_defun_start is set.
10135 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
10137 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
10139 * eval.c (Fautoload): Add entry in load-history (if after dump).
10140 * lread.c (load-history): Update docstring.
10142 2000-03-24 Gerd Moellmann <gerd@gnu.org>
10144 * indent.c (Fvertical_motion): Always use the current buffer.
10145 Temporarily change the window's buffer, if necessary.
10147 2000-03-23 Gerd Moellmann <gerd@gnu.org>
10149 * xterm.c (fast_find_position): Make sure not to consider rows
10150 not visible in the window.
10152 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
10154 * regex.c (enum syntaxcode): Provide default for non-Emacs.
10155 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
10157 2000-03-22 Jason Rumney <jasonr@gnu.org>
10159 * w32menu.c (single_submenu): Set help string to NULL if none.
10160 (w32_menu_show): Set help string correctly.
10161 (add-menu-item): Set help string in MIIM_DATA for menu item.
10162 Load SetMenuItemInfoA explicitly.
10163 (w32_menu_display_help): New function.
10165 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
10166 (QCdata): Moved to xdisp.c.
10168 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
10169 (Vw32_charset_to_codepage_alist): Removed.
10170 (Vw32_charset_info_alist): New variable.
10171 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
10172 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
10173 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
10174 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
10176 (w32_codepage_for_font): Use Vw32_charset_info_alist.
10177 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
10178 Define Vw32_charset_info_alist and w32_charset symbols.
10180 2000-03-22 Jason Rumney <jasonr@gnu.org>
10182 * makefile.nt (w32bdf.obj): Update dependencies.
10184 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
10186 * w32fns.c: Include fontset.h after dispextern.h.
10187 (Fx_create_frame): Do not create fontset.
10188 (w32_load_system_font): Doc fix.
10189 (Fx_close_connection): Free full_name if it is not shared.
10191 * w32term.c: Include fontset.h after dispextern.h.
10192 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
10194 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
10195 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
10196 (w32_font_is_double_byte): New function, needs body.
10197 (x_append_glyph): Set glyph->glyph_not_available_p.
10198 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10199 it->charset. If it->multibyte_p is zero and it->c is a multibyte
10200 character, convert it to a unibyte character.
10201 (struct glyph_string): Delete member `charset'.
10202 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
10203 calculating it is found.
10204 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10205 the case that per char metric is not available correctly.
10206 (x_fill_glyph_string): Handle the case that the specific glyph is
10207 not available correctly.
10208 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10209 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10210 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10211 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10212 fontset. Don't call FS_LOAD_FONT.
10214 2000-03-22 Ken Raeburn <raeburn@gnu.org>
10216 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
10217 (INT_LISPLIKE): New macro.
10218 (NULL_INTERVAL_P): Use it.
10219 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
10220 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
10221 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
10223 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
10224 explicit references to "parent" field of struct interval and
10225 associated unclean type conversions.
10226 * intervals.c (create_root_interval, root_interval, rotate_right)
10227 (rotate_left, balance_possible_root_interval, split_interval_right)
10228 (split_interval_left, interval_start_pos, find_interval)
10229 (next_interval, previous_interval, update_interval)
10230 (adjust_intervals_for_insertion, delete_node, delete_interval)
10231 (adjust_intervals_for_deletion, merge_interval_right)
10232 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
10233 (copy_intervals_to_string): Likewise.
10234 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
10236 * syntax.c (update_syntax_table): Likewise.
10238 * intervals.c (reproduce_tree_obj): New function, like
10239 reproduce_tree but takes a Lisp_Object for the parent. Declare
10241 (graft_intervals_into_buffer): Use it when appropriate.
10242 (reproduce_tree): Declare with prototype.
10243 (balance_possible_root_interval): Check that the parent is a lisp
10244 object before trying to examine its type.
10246 2000-03-22 Gerd Moellmann <gerd@gnu.org>
10248 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
10249 as strings only if both are known to be strings.
10251 * s/openbsd.h (LIBS_TERMCAP): Undef.
10253 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
10255 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
10256 definitions for non-Emacs compilation.
10257 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
10258 outside of `#ifdef emacs'.
10259 (print_partial_compiled_pattern): Update.
10260 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
10261 (re_compile_fastmap): Merge handling of charset and charset_not (for
10262 emacs and non-emacs compilation as well).
10263 Similarly for (not)categoryspec and (not)syntaxspec.
10264 Don't use the fastmap when reaching `anychar' since the added
10265 complexity is not justified.
10266 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
10267 and (not)syntaxspec. Merge (not)categoryspec.
10269 2000-03-22 Kenichi Handa <handa@etl.go.jp>
10271 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
10272 (FACE_FOR_CHAR): Define them differently for the configuration of
10275 2000-03-21 Dave Love <fx@gnu.org>
10277 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
10280 2000-03-21 Gerd Moellmann <gerd@gnu.org>
10282 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
10283 (lface_fully_specified_p): Don't check contents of
10284 LFACE_FONT_INDEX because that attribute is optional.
10285 (realize_x_face): Remove now unwarranted xassert.
10287 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
10289 The following changes are to make font selection based on
10290 characters, not charset. In addition, they recover fontset
10291 facilities while utilizing the new font selection mechanism.
10293 * Makefile.in (fontset.o): Depend on dispextern.h.
10295 * alloc.c (mark_face_cache): Don't mark face->registry.
10297 * dispextern.h (struct glyph): New member glyph_not_available_p.
10298 Use 22 bits for face_id.
10299 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
10300 (struct face): Delete member registry, new member ascii_face.
10301 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
10302 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
10303 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
10304 (struct it): Delete member charset, new member glyph_not_available_p.
10306 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
10307 (struct fontset_info, struct fontset_data): Structs removed.
10308 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
10309 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
10310 (fs_load_font, fs_query_fontset): Adjusted for new argument.
10311 (fs_free_face_fontset, fontset_font_pattern)
10312 (face_suitable_for_char_p, face_for_char)
10313 (make_fontset_for_ascii_face): Extern them.
10314 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
10315 (FS_LOAD_FACE_FONT): New macro.
10317 * fontset.c: All codes rewritten or adjusted for the change of
10318 fontset implementation. Now fontset is represented by char table.
10319 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
10321 (my_strcasecmp): Function removed.
10322 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
10323 (AREF, ASIZE): New macros.
10324 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
10325 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
10326 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
10327 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
10328 (fontset_id_valid_p, font_family_registry, fontset_name)
10329 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
10330 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
10332 (fs_load_font): New arg FACE. Caller changed.
10333 (fs_query_fontset): Argument changed. Caller changed.
10334 (Fquery_fontset): call fs_query_fontset.
10335 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
10337 (clear_fontset_elements, check_registry_encoding)
10338 (check_fontset_name): New functions.
10339 (syms_of_fontset): Set char-table-extra-slots property of fontset
10340 to 3. Staticpro and initialize Vfontset_table and
10341 Vdefault_fontset. Defsubr fontset_font and fontset_list.
10343 * frame.h (struct frame): Member `fontset_data' removed.
10344 (FRAME_FONTSET_DATA): Macro removed.
10346 * frame.c (make_frame): Don't allocate f->fontset_data.
10347 (Fdelete_frame): Don't free f->fontset_data.
10349 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
10351 * xdisp.c (charset_at_position): Function removed.
10352 (init_iterator): Don't set member charset of struct `it'.
10353 (handle_face_prop, reseat_to_string, set_iterator_to_next)
10354 (next_element_from_display_vector, insert_left_trunc_glyphs):
10356 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
10358 (get_next_display_element, append_space)
10359 (extend_face_to_end_of_line): Likewise.
10361 * xfaces.c (Qx_charset_registry, Vface_default_registry):
10363 (clear_font_table, frame_update_line_height, load_face_font):
10364 Adjusted for the change of fontset implementation.
10365 (load_face_fontset_font): Function removed.
10366 (pixel_point_size): New function.
10367 (font_list): Argument type changed. Caller changed.
10368 (LFACE_FONT): New macro.
10369 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
10370 (set_lface_from_font_name): Type of arg FONTNAME is changed to
10371 Lisp_Object. Determine the font name by actually loading a font
10372 by the specified pattern. Set LFACE_FONT (lface) to the specified
10373 pattern. Even if a font is not found, don't try alternatives.
10374 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
10375 (set_font_frame_param): If `font' is specified in lface, use it.
10376 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
10377 (lface_same_font_attributes_p): Likewise.
10378 (make_realized_face): Arguent changed. Caller changed. Set
10379 face->ascii_face to face itself.
10380 (free_realized_face): Free face->fontset if face is for ASCII.
10381 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
10382 (deduce_unibyte_registry, x_charset_registry): Functions removed.
10383 (free_realized_multibyte_face): New function.
10384 (lookup_face, lookup_named_face, lookup_derived_face): Argument
10385 changed. Caller changed.
10386 (try_font_list): Argument type changed.
10387 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
10388 (choose_face_font): Argument changed. Handle fontset properly.
10389 (choose_face_fontset_font): Function removed.
10390 (realize_default_face, realize_named_face): Don't remove the
10392 (realize_face): Argument changed. Caller changed. Remove face
10393 with the arg former_face_id in advance. Load font for the new face.
10394 (realize_x_face): Argument changed. Caller changed. For a
10395 multibyte character, share fontset with base_face. For a single
10396 byte character, make a new realized fontset. Don't load a font here.
10397 (realize_tty_face): Argument changed. Caller changed.
10398 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
10399 (face_at_buffer_position): Don't check multibyte_p for returning
10401 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
10402 FACE_SUITABLE_FOR_CHARSET_P.
10403 (syms_of_xfaces): Remove code for Qx_charset_registry and
10404 Vface_default_registry.
10406 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
10407 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
10408 (x_per_char_metric): Don't try FONT->default_char. Even if
10409 pcm->width is zero, glyph bits may exist.
10410 (x_encode_char): Always initialize char2b->byte1.
10411 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
10412 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
10413 (x_append_glyph): Set glyph->glyph_not_available_p.
10414 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10415 it->charset. Handle the case that per char metric is not
10416 available. If it->multibyte_p is zero and it->c is a multibyte
10417 character, convert it to a unibyte character.
10418 (struct glyph_string): Delete member `charset'.
10419 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10420 the case that per char metric is not available correctly.
10421 (x_fill_glyph_string): Handle the case that the specific glyph is
10422 not available correctly.
10423 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10424 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10425 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10426 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10427 fontset. Don't call FS_LOAD_FONT.
10429 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
10430 (x_create_tip_frame): Likewise.
10431 (Fx_close_connection): Free full_name of font_info.
10433 * fns.c (optimize_sub_char_table): New function.
10434 (Foptimize_char_table): New function.
10435 (syms_of_fns): Defsubr Soptimize_char_table.
10437 2000-03-20 Gerd Moellmann <gerd@gnu.org>
10439 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
10440 only if buffer is displayed in some window.
10442 * xdisp.c (handle_single_display_prop): Initialize local `value'.
10443 (try_window_reusing_current_matrix): Don't call scroll run
10444 function if run's current and desired position are the same;
10445 this prevents cursor flickering.
10447 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
10449 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
10451 * regex.c (RE_STRING_CHAR): New macro.
10452 (GET_CHAR_AFER_2): Remove.
10453 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
10454 (enum re_opcode_t): Remove on_failure_jump_exclusive.
10455 (print_partial_compiled_pattern, re_compile_fastmap)
10456 (re_match_2_internal): Remove on_failure_jump_exclusive.
10457 (regex_compile): Turn optimizable P+ loops into PP*, so that the
10458 optimization only need to work for * (ie. can use of_keep_string_jump).
10459 Remove the special case for .*\n since it is now covered by the general
10461 (re_search_2): Don't bother with `room'.
10462 (skip_one_char): New function.
10463 (skip_noops): Simplify since `memory' is not needed any more.
10464 (mutually_exclusive_p): Restructure slightly to use `switch' and
10465 add handling for "all" remaining cases.
10466 (re_match_2_internal): Change on_failure_jump_smart to use
10467 on_failure_keep_string_jump (and redirect the end-of-loop jump)
10468 rather than on_failure_jump_exclusive.
10470 2000-03-19 Gerd Moellmann <gerd@gnu.org>
10472 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
10473 number of bits per RGB because it's everywhere used as the depth
10476 * term.c (calculate_costs): Remove code dealing with X frames.
10478 2000-03-19 Richard M. Stallman <rms@gnu.org>
10480 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
10482 2000-03-18 Gerd Moellmann <gerd@gnu.org>
10484 * lread.c (read_integer): Unread the last char not consumed.
10486 2000-03-17 Gerd Moellmann <gerd@gnu.org>
10488 * xterm.c (x_update_window_cursor): Don't update in frames
10489 which are in the process of being deleted.
10491 2000-03-16 Gerd Moellmann <gerd@gnu.org>
10493 * Makefile.in (mostlyclean): Add `*.core'.
10494 (clean): Add `bootstrap-emacs'.
10496 * lread.c (read_integer): New function.
10497 (read1): Support read syntax #o, #x, #b, #r.
10499 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
10501 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
10502 make sure POINTER_TO_OFFSET gives the same value before and after
10503 PREFETCH. Use `dfail' to guarantee "atomic" matching.
10504 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
10505 (debug): Now only active if > 0 rather than if != 0.
10506 (DEBUG_*): Update for the new meaning of `debug'.
10507 (print_partial_compiled_pattern): Add missing `succeed' case. Use
10508 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
10509 in `succeed_n', `jump_n' and `set_number_at'.
10510 (store_op1, store_op2, insert_op1, insert_op2)
10511 (at_begline_loc_p, at_endline_loc_p): Add prototype.
10512 (group_in_compile_stack): Move to after its arg's types are
10513 declared and add a prototype.
10514 (PATFETCH): Define in terms of PATFETCH_RAW.
10515 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
10516 (QUIT): Redefine as a nop except for NTemacs.
10517 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
10518 indentation of the greedy-op and shy-group code.
10519 (at_(beg|end)line_loc_p): Fix argument's types.
10520 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
10521 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
10522 (MATCHING_IN_FIRST_STRING): Remove.
10523 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
10524 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
10525 QUIT unconditionally.
10527 2000-03-15 Gerd Moellmann <gerd@gnu.org>
10529 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
10532 * process.c (send_process): Add a hint that the function
10533 can call Lisp code to its comment.
10535 * lread.c (load_dangerous_libraries): New variable.
10536 (Vbytecomp_version_regexp): New variable.
10537 (safe_to_load_p): New function.
10538 (Fload): Handle files not compiled with Emacs specially.
10539 (syms_of_lread): New Lisp variable load-dangerous-libraries.
10541 2000-03-14 Gerd Moellmann <gerd@gnu.org>
10543 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
10545 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
10546 support functions only if HAVE_X11R6_XIM is defined.
10547 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
10549 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
10551 * xfns.c (X_I18N_INHIBITED): Don't define.
10552 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
10553 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
10555 * config.in (HAVE_X_I18N): Moved here from xterm.h.
10556 (HAVE_X11R6_XIM): Define.
10558 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
10560 * xterm.c (x_term_init): Add support for X resource `synchronous'.
10561 If set, call XSynchronize.
10563 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
10565 * regex.c: Declare a new type `re_char' used throughout the code
10566 for the string char type. It's `const unsigned char' to match the
10567 rest of Emacs. Consistently make sure all pointers to strings use
10568 it and make sure all pointers into the pattern use `unsigned char'.
10569 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
10570 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
10573 * charset.h (GET_CHAR_AFTER_2): Remove.
10574 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
10576 2000-03-12 Ken Raeburn <raeburn@gnu.org>
10578 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
10579 variable before the invocation of YMF_PASS_LDFLAGS, in case both
10580 of them try to use backquotes.
10582 2000-03-12 Dave Love <fx@gnu.org>
10584 * unexelf.c: Restore changes of 1999-10-19.
10585 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
10586 fix its type and alignment; copy it from current process.
10588 2000-03-12 Gerd Moellmann <gerd@gnu.org>
10590 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
10591 has been found. Fix bug not computing timer's predecessor.
10593 * fileio.c (Fread_file_name): Handle case that DIR contains a
10596 * window.c (Fsave_window_excursion): Doc fix.
10598 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
10600 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
10602 * msdos.c (vga_installed): New function, code moved from
10603 dos_set_window_size.
10604 (Qbar, Qcursor_type, outside_cursor): New variables.
10605 (syms_of_msdos): Intern and staticpro them.
10606 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
10607 shape used outside Emacs when called for the first time.
10608 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
10609 cursor shape used outside Emacs.
10610 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
10611 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
10613 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
10614 parameters specify the cursor. Make qreverse a global
10615 variable (renamed to Qreverse).
10617 2000-03-09 Gerd Moellmann <gerd@gnu.org>
10619 * fns.c (Fy_or_n_p): Cancel busy-cursor.
10621 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
10623 This is a big redesign of failure-stack and register handling, prompted
10624 by bugs revealed when trying to add shy-groups. Overall, what happened
10625 is that loops are now structured a little differently, groups can be
10626 shy and the code is a little simpler.
10628 * regex.h: Update the copyright.
10629 (RE_SHY_GROUPS): New value.
10630 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
10631 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
10633 * regex.c (enum re_opcode_t): Remove jump_past_alt,
10634 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
10635 on_failure_jump_(exclusive, loop and smart). Also fix the comment
10636 for (start|stop)_memory since they now only take one argument (the
10637 second has becomes unnecessary).
10638 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
10639 (print_compiled_pattern): Use %ld to printf long ints and flush to
10640 make debugging a little easier.
10641 (union fail_stack_elt): Make the integer unsigned.
10642 (struct fail_stack_type): Add a `frame' element.
10643 (INIT_FAIL_STACK): Init `frame' as well.
10644 (POP_PATTERN_OP): New macro for re_compile_fastmap.
10645 (DEBUG_PUSH, DEBUG_POP): Remove.
10646 (NUM_REG_ITEMS): Remove.
10647 (NUM_NONREG_ITEMS): Adjust.
10648 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
10649 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
10650 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
10651 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
10653 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
10654 address pushed is not the destination of the jump but the source
10656 (NUM_FAILURE_ITEMS): Remove.
10657 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
10658 registers before the actual failure point). Don't hardcode any
10659 meaning for str==NULL anymore.
10660 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
10661 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
10663 (REG_UNSET_VALUE): Use NULL (why not?).
10664 (compile_range): Remove declaration since it doesn't exist.
10665 (struct compile_stack_elt_t): Remove inner_group_offset.
10666 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
10667 (regex_grow_registers): Remove dead code.
10668 (FIXUP_ALT_JUMP): New macro.
10669 (regex_compile): Add shy-groups Change loops to use
10670 on_failure_jump_smart&jump instead of
10671 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
10672 initial (dummy_failure_)jump. Remove c1_base (looks like unused
10673 variable to me). Use `jump' instead of `jump_past_alt' and don't
10674 bother with push_dummy_failure in alternatives since it is now
10675 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
10676 emacs' for (re)allocating the stack.
10677 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
10678 from loop when bufp->can_be_null rather than jumping to `done'.
10679 Avoid jumping backwards so as to ensure termination. Use
10680 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
10681 backreferences. Remove dead code in handling of `anychar'.
10682 (skip_noops, mutually_exclusive_p): New functions taken from the
10683 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
10684 improve mutually_exclusive_p to handle ".+\n".
10685 (lowest_active_reg, highest_active_reg)
10686 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
10687 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
10688 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
10689 variables. Push register (in `start_memory') on the stack rather
10690 than storing it in old_reg(start|end). Remove the cycle detection
10691 from `stop_memory', replaced by the use of on_failure_jump_loop
10692 for greedy loops. Add code for the new on_failure_jump_<foo>.
10693 Remove ad-hoc code in `on_failure_jump' to push more registers in
10694 the case of a loop. Take out code from `maybe_pop_jump' into
10695 separate functions and adapt it to the semantics of
10696 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
10697 and push_dummy_failure. Remove dummy_failure handling and
10698 handling of `failures to jump to on_failure_jump' (this last one
10699 was already dead code, it seems).
10700 (group_match_null_string_p, alt_match_null_string_p)
10701 (common_op_match_null_string_p): Remove.
10703 2000-03-08 Dave Love <fx@gnu.org>
10705 * config.in: Don't depend on __STDC__ for volatile.
10706 Add POINTER_TYPE, PTR, PROTOTYPES.
10708 * hftctl.c, strftime.c: Use PROTOTYPES.
10709 * eval.c (find_handler_clause): Likewise.
10711 * mem-limits.h: Use POINTER_TYPE.
10713 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
10714 (memory_warnings): Declare using POINTER_TYPE.
10716 2000-03-08 Gerd Moellmann <gerd@gnu.org>
10718 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
10720 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
10722 * xfns.c: Remove obsolete code in #if 0.
10723 (Fx_focus_frame): New function.
10725 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10727 * coding.c (coding_category_name): Add coding-category-utf-8,
10728 coding-category-utf-16-be, coding-category-utf-16-le.
10729 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
10730 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
10731 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
10732 (detect_coding_utf_8): New function.
10733 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
10734 UTF_16_LOW_SURROGATE_P): New macros.
10735 (detect_coding_utf_16): New function
10736 (detect_coding_mask): When priorities are specified, skip any
10737 categories that have `nil' coding-system. Fix bug of returning
10738 wrong mask when PRIORITIES is specified and detect_coding_XXX()
10739 returns a mask not set in PRIORITIES.
10740 (detect_eol_type_in_2_octet_form): New function.
10741 (detect_eol): selects detect_eol_type_XXX to call according to
10742 cooding->category_idx.
10743 (detect_coding_system): Remove `nil' coding-system in the result.
10744 (Fupdate_coding_systems_internal): Update all coding-categories.
10746 * coding.h (CODING_CATEGORY_IDX_UTF_8)
10747 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
10749 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
10750 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
10751 (CODING_CATEGORY_IDX_UTF_16_LE)
10752 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
10753 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
10754 (CODING_CATEGORY_MASK_ANY): Include the above macros.
10755 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
10757 2000-03-07 Gerd Moellmann <gerd@gnu.org>
10759 * doc.c (Fdocumentation_property): If value is not a string,
10760 and doesn't refer to etc/DOC, evaluate it to obtain a string.
10762 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
10763 close the display with XtCloseDisplay. This caused a bus error
10766 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
10767 complete but not unique.
10769 2000-03-06 Gerd Moellmann <gerd@gnu.org>
10771 * process.c (send_process): Remove local variable `procname' that
10772 might become invalid when a GC happens. Instead, access the
10773 process name slot directly.
10775 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
10776 orig_height if set.
10778 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
10779 orig_height if set.
10781 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
10783 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
10784 glyph matrices have been freed.
10786 2000-03-05 Gerd Moellmann <gerd@gnu.org>
10788 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
10789 (bootstrap-temacs): Set LC_ALL to C like for temacs.
10791 * xfns.c (QCdata): Moved to xdisp.c.
10793 * xdisp.c (QCdata): Moved here from xfns.c.
10794 (syms_of_xdisp): Initialize QCdata.
10796 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
10798 * window.c (coordinates_in_window): Use
10799 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
10800 FRAME_INTERNAL_BORDER_WIDTH.
10802 * xdisp.c (try_window_id): Recompute unchanged information if
10803 it is obviously invalid.
10805 * xterm.c (x_term_init): Create a colormap if not using the
10808 * xterm.h (select_visual): Change prototype.
10810 * xfns.c (select_visual): Rewritten. Recognize user-specified
10812 (visual_classes): New variable.
10814 2000-03-04 Gerd Moellmann <gerd@gnu.org>
10816 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
10817 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
10818 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
10819 (x_decode_color): Don't handle allocation of white and black specially.
10820 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10821 XtNcolormap resources.
10822 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10823 (Fx_create_frame): Initialize color members of x_output structure.
10824 (xpm_load): Pass colormap to XPM lib.
10826 * xfaces.c (x_free_colors): Access colormap of frame using
10827 FRAME_X_COLORMAP. Be paranoid about freeing black and white
10828 when default colormap is used.
10830 * xterm.c (x_term_init): Set Colormap member of x_display_info
10831 structure. Copy colormap if resource `privateColormap' is
10832 specified (PseudoColor only).
10833 (x_setup_relief_color): Access colormap of frame using
10836 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
10837 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
10839 2000-03-04 Jason Rumney <jasonr@gnu.org>
10841 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
10842 other non-platform-specific equivalents.
10843 [WINDOWSNT]: Include w32term.h, fontset.h and define X
10844 specific functions and macros as their w32 equivalents where
10845 non-platform-specifics are not available.
10846 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
10847 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
10848 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
10849 (frame_update_line_height): Use macros to access f->output_data.
10850 (defined_color): Remove FIXME comments; fixed.
10851 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10852 into #ifdef blocks. Add WINDOWSNT blocks.
10853 (Fx_list_fonts): Use macros for accessing font data.
10854 (set_lface_from_font_name): Different default fonts for X and
10856 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10857 scalable for backward compatibility.
10858 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
10859 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10861 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
10864 * makefile.nt (w32faces.obj): Remove.
10867 2000-03-03 Jason Rumney <jasonr@gnu.org>
10869 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10870 correct parameters.
10872 2000-03-03 Ken Raeburn <raeburn@gnu.org>
10874 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10875 standard ELF definitions here if the system header does not.
10877 2000-03-03 Gerd Moellmann <gerd@gnu.org>
10879 * xterm.c (PER_CHAR_METRIC): Removed.
10880 (x_per_char_metric_1, x_default_char): New functions.
10881 (x_per_char_metric): If font's default char is invalid, return
10882 metrics of a suitably chosen usable default char.
10883 (x_draw_glyph_string_foreground): If font has an invalid default
10884 char, replace occurrences of unprintable chars with a suitably
10885 chosen usable default char.
10887 2000-03-02 Gerd Moellmann <gerd@gnu.org>
10889 * xterm.c (note_mouse_highlight): Return quickly if frame's
10890 glyph matrices have been freed.
10892 * dispnew.c (free_glyphs): Block input while freeing matrices.
10894 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10896 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
10899 * dispextern.h (x_free_colors): Add prototype.
10901 * xfaces.c (x_free_colors): New function.
10902 (unload_color, free_face_colors): Use it.
10904 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10906 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10908 * window.c [MSDOS]: Include msdos.h.
10910 2000-03-02 Dave Love <fx@gnu.org>
10912 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10914 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10915 set C_OPTIMIZE_SWITCH for gcc.
10917 2000-03-02 Kenichi Handa <handa@etl.go.jp>
10919 * coding.c (coding_save_composition): Be sure to allocate
10920 composition data area in coding even if there's no composition in
10923 2000-03-01 Jason Rumney <jasonr@gnu.org>
10925 * w32term.c: Equivalent changes to those made to xterm.c on
10926 2000-02-25 and 2000-02-24.
10928 * w32fns.c: Equivalent changes to those made to xfns.c on
10929 2000-02-25 and 2000-02-21.
10931 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10932 correct line-end convention is followed.
10934 * w32menu.c [HAVE_BOXES]: Remove #undef.
10935 (single_keymap_panes): Remove code for simulating checkmarks.
10936 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10937 Remove code for drawing simulated checkmarks.
10938 (w32_menu_show): make unibyte help string correctly.
10939 (add_menu_item): draw standard Windows checkmarks. Draw radio
10940 buttons as radio buttons if possible.
10942 2000-03-01 Gerd Moellmann <gerd@gnu.org>
10944 * sysdep.c (start_of_text): Don't define this function for NetBSD
10947 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
10949 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10950 (LINKER): Don't undef if __NetBSD__ is defined.
10952 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10954 * fileio.c [__NetBSD__]: Define `unix'.
10956 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10958 2000-02-29 Gerd Moellmann <gerd@gnu.org>
10960 * atimer.c (start_atimer): Don't abort when timers are stopped.
10961 (append_atimer_lists): New function.
10962 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10963 arbitrary lists of stopped and running atimers.
10965 * atimer.c (cancel_atimer): Handle canceling an atimer when
10966 some timers are stopped.
10968 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10969 after canceling it.
10971 * fns.c (maybe_resize_hash_table): Handle case of new size
10972 coming out as being the same as old size.
10974 2000-02-27 Jason Rumney <jasonr@gnu.org>
10976 * makefile.nt: Add atimer.h to dependencies.
10977 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10978 * w32console.c: Only disable window system features for dispextern.h
10979 (initialize_w32_display): Build a display info for the console.
10980 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10981 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10982 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10984 * w32gui.h (struct W32FontStruct): Revert last change after change
10986 * w32menu.c (single_submenu): Set up help string.
10987 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10988 (w32_dialog_show): Set up help string.
10989 * w32term.c (w32_display_info_for_display): Remove unused function.
10990 (w32_draw_bitmap): Use pre-built bitmaps.
10991 (w32_initialize_display_info): New function to initialize parts of
10992 display info that are common to both GUI and console frames.
10993 (w32_term_init): Use w32_initialize_display_info. Do not set
10994 Vw32_num_mouse_buttons here, as it is not called for console
10995 frames. Build bitmaps for indicating truncated lines etc.
10996 (x_delete_display): Destroy pre-built bitmaps.
10997 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10998 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
11000 2000-02-27 Dave Love <fx@gnu.org>
11002 * lisp.h: Add a bunch of prototypes.
11004 2000-02-26 Kenichi Handa <handa@etl.go.jp>
11006 * keyboard.c (read_char): Set `usec' correctly.
11008 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11010 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
11011 `lambda', set reg[RRR] to the map index.
11012 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
11013 reg[RRR] to 0. Otherwise, set it to -1.
11015 2000-02-25 Gerd Moellmann <gerd@gnu.org>
11017 * emacs.c (main): Remove code snippet commented out with `//'.
11019 2000-02-25 Richard M. Stallman <rms@gnu.org>
11021 * fileio.c (Ffile_symlink_p): If result starts with a `/'
11022 and contains a `:', prepend `/:'.
11024 * window.c (select_window_1): If selected_window is nil,
11025 don't "swap out" the buffer's point.
11026 (Fset_window_configuration): Set selected_window to nil
11027 before calling Fselect_window.
11028 (unshow_buffer): Don't set point in buffer from window's point
11029 if another more recently selected window also shows the buffer.
11031 2000-02-25 Gerd Moellmann <gerd@gnu.org>
11033 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
11035 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
11036 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
11037 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
11039 (DEFAULT_BUSY_CURSOR_DELAY): New define.
11040 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
11041 (hide_busy_cursor): New functions.
11042 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
11044 * minibuf.c (read_minibuf): Cancel busy-cursor.
11046 * keyboard.c (command_loop_1): Call start_busy_cursor before
11047 Fcommand_execute and cancel_busy_cursor after it.
11048 (timer_check): Remove busy-cursor code.
11049 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
11052 * process.c (wait_reading_process_input): Remove busy-cursor code.
11054 * eval.c (Fsignal): Call cancel_busy_cursor instead of
11055 Fx_hide_busy_cursor.
11057 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
11059 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
11061 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
11063 * xterm.c (XTread_socket): Remove busy-cursor code.
11065 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
11066 (build_frame_matrix_from_leaf_window): Put code handling
11067 glyph row's not being a slice of a frame row in #if 0.
11068 (sync_window_with_frame_matrix_rows): New function.
11069 (frame_row_to_window): New function.
11070 (mirror_line_dance): Handle copies between windows.
11072 * lread.c (Fload): Use `xfree' instead of `free'.
11073 (init_obarray): Use `xmalloc' instead of `malloc'.
11075 * window.c (Fset_window_buffer): Set WINDOW to the window
11077 (coordinates_in_window): Take frame's internal border width
11080 2000-02-24 Gerd Moellmann <gerd@gnu.org>
11082 * xterm.c (x_display_and_set_cursor): Display cursor of
11083 non-selected windows depending on the setting of
11084 cursor_in_non_selected_windows.
11086 * xdisp.c (cursor_in_non_selected_windows): New variable.
11087 (syms_of_xdisp): DEFVAR_BOOL it.
11089 2000-02-23 Gerd Moellmann <gerd@gnu.org>
11091 * data.c (Fstring_to_number): If number is greater than what
11092 fits into an integer, return a float.
11094 * eval.c (specbind): Remove references to
11095 keyword_symbols_constant_flag.
11097 * data.c (keyword_symbols_constant_flag): Removed.
11098 (Fmakunbound, set_internal, syms_of_data): Remove references to
11099 keyword_symbols_constant_flag.
11101 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
11103 2000-02-23 Kenichi Handa <handa@etl.go.jp>
11105 * syntax.c (multibyte_syntax_as_symbol): New variable.
11106 (syms_of_syntax): Declare it as a Lisp variable.
11107 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
11108 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
11109 nonzero, treat all multibyte characters as symbol.
11110 (init_syntax_once): Give syntax `word' to all multibyte characters.
11112 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11114 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
11117 2000-02-21 Gerd Moellmann <gerd@gnu.org>
11119 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
11121 * xfns.c (x_window_to_frame, x_any_window_to_frame)
11122 (x_non_menubar_window_to_frame): Check the busy-cursor window.
11124 2000-02-21 Dave Love <fx@gnu.org>
11126 * frame.c (Vmouse_position_function): New variable.
11127 (Fmouse_position): Use it.
11128 (syms_of_frame): Install it.
11130 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
11132 2000-02-20 Gerd Moellmann <gerd@gnu.org>
11134 * fileio.c (Finsert_file_contents): Unbind the binding of
11135 standard-output done by temp_output_buffer_setup.
11137 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
11138 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
11139 (specbind, unbind_to): Handle most common case of non-constant
11140 symbol with trivial value specially.
11142 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
11144 2000-02-20 Richard M. Stallman <rms@gnu.org>
11146 * data.c (Fmake_variable_buffer_local): Doc fix.
11147 Init found_for_buffer to 0.
11148 (Fmake_variable_frame_local): If the variable has already
11149 been buffer-local, set the check_frame field.
11151 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
11153 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
11154 produced for CODING_MODE_LAST_BLOCK requires.
11156 2000-02-18 Dave Love <fx@gnu.org>
11158 * keyboard.c (echo_keystrokes): Remove declaration.
11159 (Vecho_keystrokes) New variable.
11160 (read_char, record_menu_key, read_key_sequence): Use it to allow
11161 use of float value.
11162 (syms_of_keyboard): Change Vecho_keystrokes declaration.
11164 * lread.c: Undef feature selection macros before defining.
11166 2000-02-18 Gerd Moellmann <gerd@gnu.org>
11168 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
11169 for symbols other than the symbol in question.
11171 2000-02-17 Dave Love <fx@gnu.org>
11173 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
11175 2000-02-17 Gerd Moellmann <gerd@gnu.org>
11177 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
11179 * alloc.c (enum mem_type): Compile unconditionally.
11181 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
11183 * xfaces.c (tty_defined_color): Don't return faulire indication
11184 for unspecified-fg and unspecified-bg pseudo-colors.
11186 2000-02-17 Gerd Moellmann <gerd@gnu.org>
11188 * alloc.c (mark_object): Don't mark symbol names in pure space.
11189 (gc_sweep): Don't unmark symbol names in pure space.
11191 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
11192 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
11193 [GC_MARK_STACK]: New defines.
11194 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
11195 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
11197 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
11199 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
11200 allocate_buffer instead of xmalloc.
11202 * alloc.c (toplevel): Include setjmp.h.
11203 (PURE_POINTER_P): New define.
11204 (enum mem_type) [GC_MARK_STACK]: New enumeration.
11205 (Vdead) [GC_MARK_STACK]: New variable.
11206 (lisp_malloc): Add parameter TYPE, call mem_insert if
11207 GC_MARK_STACK is defined.
11208 (allocate_buffer): New function.
11209 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
11210 (free_float) [GC_MARK_STACK]: Set type to Vdead.
11211 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
11212 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
11213 (MEM_NIL) [GC_MARK_STACK]: New define.
11214 (struct mem_node) [GC_MARK_STACK]: New structure.
11215 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
11216 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
11217 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
11218 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
11219 (mark_stack) [GC_MARK_STACK]: New functions.
11220 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
11221 (clear_marks): Removed.
11222 (gc_sweep): Set free conses' car, free floats' type, free
11223 symbols' function to Vdead. Use lisp_free to free buffers.
11224 (init_alloc_once): Initialize Vdead.
11225 (survives_gc_p): Return non-zero for pure objects.
11227 * alloc.c: Add comments throughout the file.
11229 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
11230 that unblocks alarms.
11232 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
11233 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
11234 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
11236 * frame.c (make_frame): Set frame initiallly to `garbaged'.
11238 2000-02-17 Kenichi Handa <handa@etl.go.jp>
11240 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
11241 avoid infinite error signaling. Allocate sufficient memory for
11242 eol_str in the case that eoltype is Lisp_Int.
11244 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
11246 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
11247 depends on the previous behavior.
11249 2000-02-16 Gerd Moellmann <gerd@gnu.org>
11251 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
11253 2000-02-15 Gerd Moellmann <gerd@gnu.org>
11255 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
11257 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
11258 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
11261 2000-02-15 Richard M. Stallman <rms@gnu.org>
11263 * data.c (set_internal): Don't make variable buffer-local
11264 if within a let-binding for the same buffer.
11265 (let_shadows_buffer_binding_p): New function.
11267 * eval.c (specbind): For buffer-local value,
11268 record the current buffer also.
11269 (unbind_to): Cope with that change.
11271 2000-02-15 Gerd Moellmann <gerd@gnu.org>
11273 * window.c (Fsave_window_excursion): Doc fix.
11275 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
11277 * syntax.c (back_comment): Make sure we only consider comment-starters
11278 of the relevant style and return -1 in case of a failure to find the
11279 beginning of the comment.
11280 (Fforward_comment): If back_comment fails, go back to the position just
11281 after the comment-end.
11282 (scan_lists): Add comment describing a very minor bug.
11284 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11286 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
11287 `completion-regexp-list' in the docstring.
11289 2000-02-14 Dave Love <fx@gnu.org>
11291 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
11293 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11295 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
11296 to Emacs' syntax. Also fix the comment about set/not-set meanings
11297 since Emacs syntax is not the value 0 any more.
11298 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
11299 since it's now part of RE_SYNTAX_EMACS.
11301 2000-02-12 Dave Love <fx@gnu.org>
11303 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
11305 2000-02-12 Gerd Moellmann <gerd@gnu.org>
11307 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
11309 2000-02-12 Dave Love <fx@gnu.org>
11311 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
11313 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
11314 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
11315 * s/hpux.h: Don't define HAVE_VFORK.
11317 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
11319 * s/nextstep.h: Don't define HAVE_ALLOCA.
11321 * config.in: Add vfork bits.
11323 2000-02-12 Gerd Moellmann <gerd@gnu.org>
11325 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
11326 unwind function to undo the effect of stopping atimers.
11328 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
11330 * atimer.c (stopped_atimers): New variable.
11331 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
11334 * atimer.h (stop_other_atimers, run_all_atimers)
11335 (unwind_stop_other_atimers): Add function prototypes.
11337 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
11339 2000-02-11 Ken Raeburn <raeburn@gnu.org>
11341 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
11342 library may depend on jpeg.
11343 (atimer.o): Depends on atimer.c.
11345 2000-02-11 Kenichi Handa <handa@etl.go.jp>
11347 * insdel.c (del_range_1): Call update_compositions.
11348 (del_range_both): Call update_compositions just once..
11350 2000-02-10 Dave Love <fx@gnu.org>
11352 * xfns.c (create_frame_xic): Fix initialization of automatic
11353 aggregates for pcc.
11355 2000-02-09 Kenichi Handa <handa@etl.go.jp>
11357 * ccl.c (CCL_MAKE_CHAR): New macro.
11358 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
11359 registers by CCL_MAKE_CHAR before calling translate_char.
11360 <CCL_TranslateCharacterConstTbl> Likewise.
11362 2000-02-08 Dave Love <fx@gnu.org>
11364 * lread.c (__EXTENSIONS__): Define.
11366 2000-02-08 Gerd Moellmann <gerd@gnu.org>
11368 * puresize.h (BASE_PURESIZE): Increase to 650000.
11370 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11372 * msdos.c (XMenuActivate): Turn off the cursor after displaying
11375 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11377 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
11378 md, mh, mb, mr, and me to the fake termcap entry.
11380 2000-02-06 Ken Raeburn <raeburn@gnu.org>
11382 * sound.c (sound_cleanup): Don't call device close routine if the
11383 function pointer is null.
11385 2000-02-06 Andrew Innes <andrewi@gnu.org>
11387 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
11388 around image definitions and prototypes.
11389 (gamma_correct) [WINDOWSNT]: New prototype.
11391 * w32term.c (x_make_frame_visible): Replace call to
11392 input_poll_signal with poll_for_input.
11394 * window.c [WINDOWSNT]: Include w32term.h.
11396 * xdisp.c [WINDOWSNT]: Include w32term.h.
11398 * makefile.nt: Add dependencies on w32gui.h.
11399 (OBJ1): Include atimer.obj.
11400 ($(BLD)\atimer.obj): New dependency rule.
11402 * w32.c (sigmask): New function (does nothing).
11403 (sigunblock): Ditto.
11405 * frame.c [WINDOWSNT]: Include w32term.h.
11407 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
11409 * lread.c (syms_of_lread): Fix literal newlines.
11411 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
11412 the string constant limit (2048 bytes) in MSVC.
11415 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
11417 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
11418 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
11419 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
11420 dispatch the event.
11422 2000-02-04 Dave Love <fx@gnu.org>
11424 * fileio.c: Remove some unused vars.
11425 (_GNU_SOURCE): Define (for euidaccess).
11427 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
11429 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
11431 (read_minibuf): Deal with allow_props correctly.
11433 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
11435 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
11437 2000-02-03 Ken Raeburn <raeburn@gnu.org>
11439 * search.c (compile_pattern): If a cache entry has a nil regexp,
11440 fill in that entry instead of clobbering a previously cached
11443 2000-02-02 Ken Raeburn <raeburn@gnu.org>
11445 * puresize.h (BASE_PURESIZE): Increase to 610000.
11447 2000-02-02 Gerd Moellmann <gerd@gnu.org>
11449 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
11452 2000-02-02 Kenichi Handa <handa@etl.go.jp>
11454 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
11455 instead of incrementing ic directly.
11456 <CCL_WriteExprConst> Likewise.
11457 <ccl_set_expr>: Set ic to jump_address.
11459 * fileio.c (e_write): Fix the handling of
11460 CODING_FINISH_INSUFFICIENT_SRC.
11462 2000-02-01 Dave Love <fx@gnu.org>
11464 * editfns.c (Fpropertize): Doc fix.
11466 * process.c (Fstart_process): Doc fix.
11468 * eval.c: Fix various doc strings not to duplicate information
11469 from help-manyarg-func-alist.
11471 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
11473 * doc.c (Vhelp_manyarg_func_alist): New variable.
11474 (Fdocumentation): Use it.
11475 (syms_of_doc): Define it.
11477 2000-01-31 Gerd Moellmann <gerd@gnu.org>
11479 * xterm.c (xim_open_dpy): Remove unused local variable.
11481 * emacs.c (USAGE): Use term `display options' instead of `X options'.
11483 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
11484 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11486 * fns.c (sweep_weak_table): New function.
11487 (sweep_weak_hash_tables): Use it. Keep on marking until there
11490 2000-01-30 Gerd Moellmann <gerd@gnu.org>
11492 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
11493 that XTread_socket does not crash by trying to call XNoOp on a
11496 2000-01-30 Jason Rumney <jasonr@gnu.org>
11498 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11499 Change selected_frame to SELECTED_FRAME ().
11500 (w32_console_mouse_position): Remove #ifndef MULE from around
11501 `insist' parameter.
11503 * makefile.nt: Remove dosfns.obj.
11505 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
11507 * w32fns.c (w32_defined_color): Check for valid frame before
11508 applying gamma correction. Eliminate dependency on frame elsewhere.
11509 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
11510 (w32_to_x_font): Use resx and resy not height_in and width_in.
11511 (x_to_w32_font): Doc fix.
11512 (xlfd_strip_height): New function to strip and return font height.
11513 (w32_font_match): Compare height separately from rest of xlfd
11514 spec, using xlfd_strip_height.
11516 * w32term.c (w32_term_init): Swap resx and height_in, resy and
11517 width_in. Use w32_defined_color in place of defined_color.
11519 * w32faces.c: Merge more of DOS and X specifics in preparation for
11520 merge with xfaces.c.
11521 (defined_color): Remove FIXME comment.
11522 (tty_color_name): Provide w32-specific function.
11523 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
11525 * w32console.c (turn_on_face, turn_off_face): Removed.
11526 (w32_face_attributes): New function.
11527 (Global_variables): Reduce scope where possible.
11528 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
11530 (hl_mode): Don't modify text attributes.
11531 (write_glyphs): Don't do anything if len <= 0. Use
11532 w32_face_attributes to get attributes for drawing. Write
11533 terminating codes using char_attr_normal.
11534 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
11535 (update_begin, update_end): Likewise.
11536 (vga_stdcolor_name): New function.
11537 (initialize_w32_display): Remove char_attr_reverse and char_attr.
11538 (Fset_screen_color): Remove char_attr_reverse.
11540 2000-01-29 Gerd Moellmann <gerd@gnu.org>
11542 * xfns.c (xic_set_preeditarea): Take window parameter and
11543 window-relative pixel-positions.
11545 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
11546 is its frame's selected window.
11547 (xim_instantiate_callback): Likewise.
11549 * xfns.c (x_create_im): Removed.
11550 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
11551 (supported_xim_styles): Renamed from supported_styles.
11552 (best_xim_style): Renamed from best_style.
11553 (create_frame_xic): Renamed from xic_create_frame.
11554 (free_frame_xic): Renamed from xic_destroy_frame.
11556 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
11558 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
11559 our frames, call XFilterEvent with 2nd parameter `None'.
11560 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
11561 returning XBufferOverflow.
11562 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
11563 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
11564 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
11565 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
11566 (xim_initialize, xim_close)
11567 [HAVE_X_I18N && HAVE_X11R6]: New functions.
11568 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
11569 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
11570 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
11572 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
11574 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
11575 `xic_style' and `xic_xfs'.
11576 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
11577 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
11578 (FRAME_XIM): Removed.
11580 * xfns.c (supported_styles): New variable.
11581 (DEFAULT_STYLE, DEFAULT_FONT): New macros
11582 (xic_create_xfontset, best_style, xic_create_frame)
11583 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
11584 (xic_set_xfontset): New functions.
11586 2000-01-28 Dave Love <fx@gnu.org>
11588 * s/irix6-5.h: Revert last change after change to irix5-0.h.
11590 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
11592 2000-01-28 Gerd Moellmann <gerd@gnu.org>
11594 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
11595 for *scratch* if it already existed.
11597 * emacs.c (USAGE): New macro.
11598 (main): Use it to display usage information.
11600 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11602 Support for the menu-help feature:
11604 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
11606 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
11607 part of the line to the termscript file.
11608 (IT_clear_to_end): Clear the entire line, not just its beginning.
11609 (menu_help_message, prev_menu_help_message): New variables.
11610 (IT_menu_make_room): Make room for the help_text member.
11611 (IT_menu_display): New argument disp_help; all callers changed.
11612 If disp_help is non-zero, store the help text of the active menu
11613 item in menu_help_message.
11614 (XMenuAddPane): Initialize the help_text member to NULL.
11615 (XMenuAddSelection): New argument help_text. Store it in the
11617 (XMenuActivate): New argument help_callback. If the value of
11618 menu_help_message has changed since the last time, display the
11619 menu help message text while waiting for the mouse to move. Clear
11620 the echo area before exiting.
11621 (XMenuDestroy): Free the help_text member.
11623 2000-01-27 Gerd Moellmann <gerd@gnu.org>
11625 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
11626 XMenuAddSelection. Pass help callback to XMenuActivate.
11627 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
11629 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11631 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
11632 and EMACS_SET_USECS.
11634 2000-01-26 Dave Love <fx@gnu.org>
11636 * editfns.c (Fchar_after, Fchar_before): Doc fix.
11638 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
11639 an error may be signalled.
11641 2000-01-26 Gerd Moellmann <gerd@gnu.org>
11643 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
11644 LD_SWITCH_SYSTEM inherited from irix5-0.h.
11646 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
11648 2000-01-25 Gerd Moellmann <gerd@gnu.org>
11650 * charset.c (Fstring): If there is a multibyte char among
11651 the args, always return a multibyte string.
11653 2000-01-25 Gerd Moellmann <gerd@gnu.org>
11655 * sysdep.c (sys_select): Turn atimers off and on instead of
11656 recording and restoring old alarm handler
11658 * process.c (toplevel): Include atimer.h.
11659 (create_process_1): Rewritten.
11660 (create_process): Use atimers instead of alarm.
11661 (wait_reading_process_input) [hpux]: Turn atimers off instead
11662 of turning off SIGALRM.
11663 (wait_reading_process_input): Turn off atimers instead off
11664 calling stop_polling.
11666 * emacs.c (main): Call init_atimer.
11668 * keyboard.c (toplevel): Include systime.h and atimer.h.
11669 (polling_for_input): Removed because unused.
11670 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
11671 (poll_timer): New variable.
11672 (poll_for_input, poll_for_input_1): New functions.
11673 (start_polling, stop_polling): Rewritten.
11675 * keyboard.h (polling_for_input): Removed.
11677 * atimer.h, atimer.c: New files.
11679 * Makefile.in (obj): Add atimer.o.
11680 (atimer.o): New target.
11682 * blockinput.h (pending_atimers): Add extern declaration.
11683 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
11685 * lisp.h (popup_activated_flag): Add extern declaration.
11687 * xmenu.c (popup_activated_flag): Make externally visible.
11688 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
11689 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
11691 * xterm.c (toplevel): Include atimer.h.
11692 (toolkit_scroll_bar_interaction): New variable.
11693 (Fxt_process_timeouts): Removed.
11694 (x_process_timeouts): New function.
11695 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
11696 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
11697 (x_make_frame_visible): Call poll_for_input_1 instead of
11698 input_poll_signal. Don't call alarm.
11699 (x_initialize): Install timer calling x_process_timeouts.
11701 2000-01-24 Dave Love <fx@gnu.org>
11703 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
11704 Don't use -cckr -- apparently not now necessary.
11706 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
11708 * msdos.c (IT_menu_display): Truncate long menu lines at the right
11711 2000-01-23 Jason Rumney <jasonr@gnu.org>
11713 * w32fns.c (w32_defined_color): Apply gamma correction before
11714 trying to map to the palette.
11715 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
11718 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
11719 here. Callers changed to always pass real device context.
11720 (w32_draw_bitmap): Likewise.
11721 (w32_get_glyph_overhangs): Likewise.
11722 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
11723 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
11724 pfnSetScrollInfo and SetScrollRange.
11725 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
11726 back into MULE characters after decoding them.
11727 (x_get_glyph_face_and_encoding): Likewise.
11728 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
11729 GetCharABCWidthsW fails, since this is defined on Windows 9x.
11730 (x_produce_glyphs): Calculate per char metrics for a character
11731 that we know exists in default font when font_not_found_p is true.
11733 2000-01-22 Jason Rumney <jasonr@gnu.org>
11735 * makefile.nt (intervals.obj, composite.obj): New modules.
11736 (composite.h): Added as dependency where appropriate.
11738 * w32gui.h (XGCValue): New struct for emulating X GCs.
11740 * w32term.h (XCharStruct): New struct for emulating X.
11742 * w32console.c (turn_on_face, turn_off_face): New functions.
11743 (change_line_highlight): New prototype for new redisplay.
11744 (write_glyphs): Support multibyte text. Support faces.
11746 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
11748 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
11749 throughout. struct frame * in place of FRAME_PTR.
11750 Skeleton support for images, toolbars, tooltips from xfns.c.
11751 (Fx_create_frame): Use system default for default scroll bar width.
11752 (w32_get_arg): Renamed from x_get_arg.
11753 (Fx_file_dialog): New function.
11754 (w32_list_fonts): Check cache before asking system.
11755 (Vw32_enable_synthesized_fonts): New variable.
11756 (Vw32_enable_italics): Obsolete, removed.
11758 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11759 Use SELECTED_FRAME macro.
11761 * w32menu.c: Add skeleton support for help strings on menus.
11762 (add_menu_item): Native checkbox and radio support added, but not
11763 yet enabled due to bugs.
11764 (push_menu_item): Add parameters type, selection and help.
11766 Formatting changes to reduce unnecessary diffs with xmenu.c.
11768 * w32select.c (Fw32_set_clipboard_data): Update call to
11769 find_charset_in_str.
11771 * w32term.c: Complete rewrite for new redisplay based on new
11772 xterm.c with necessary sections merged back in from old w32term.c.
11774 2000-01-21 Richard M. Stallman <rms@gnu.org>
11776 * data.c (set_internal): Further fix in same criterion.
11778 2000-01-20 Richard M. Stallman <rms@gnu.org>
11780 * data.c (set_internal): Fix the criteria for whether
11781 to swap out the old cached binding.
11783 2000-01-19 Dave Love <fx@gnu.org>
11785 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
11787 2000-01-18 Kenichi Handa <handa@etl.go.jp>
11789 * regex.c (re_compile_fastmap): While checking a range table for
11790 `charset', skip flag bits for a character class correctly.
11792 2000-01-17 Gerd Moellmann <gerd@gnu.org>
11794 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
11796 * xfns.c (x_window): Call lw_create_widget with new parameter list.
11798 * widget.c (EmacsFrameSetCharSize): Change size of children first
11799 because of problems with main window geometry management under Lesstif.
11801 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
11802 MENU_ITEMS_ITEM_.*.
11803 (MENU_ITEMS_ITEM_HELP): New enumerator.
11804 (push_menu_item): Add parameter HELP. Record help in menu_items.
11805 (single_menu_item, single_submenu, list_of_items): Call
11806 push_menu_item with new parameter.
11807 (single_submenu): Set help string in widget value.
11808 (menu_highlight_callback): New function.
11809 (set_frame_menubar): Call lw_create_widget with new
11811 (xmenu_show, xdialog_show): Ditto.
11813 2000-01-13 Gerd Moellmann <gerd@gnu.org>
11815 * sound.c (Fplay_sound): Improve doc string.
11817 2000-01-11 Richard M. Stallman <rms@gnu.org>
11819 * lisp.h (set_internal): Enter the new arg.
11821 * eval.c (specbind): Record buffer-local variables specially,
11822 indicating which buffer's binding was saved.
11823 (unbind_to): Restore buffer-local variables specially
11824 in the proper buffer.
11826 * data.c (set_internal): New arg BUF.
11828 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
11829 * data.c (Fset): Pass new arg to set_internal.
11830 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
11832 2000-01-11 Gerd Moellmann <gerd@gnu.org>
11834 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
11836 2000-01-11 Richard M. Stallman <rms@gnu.org>
11838 * minibuf.c (Ftry_completion): Doc fix.
11840 2000-01-11 Gerd Moellmann <gerd@gnu.org>
11842 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11845 2000-01-11 Andreas Schwab <schwab@suse.de>
11847 * coding.c (code_convert_region): Initialize total_skip.
11849 2000-01-08 Dave Love <fx@gnu.org>
11851 * eval.c (Fuser_variable_p): Check customizability too.
11853 2000-01-07 Gerd Moellmann <gerd@gnu.org>
11855 * minibuf.c (Fcompleting_read): Doc fix.
11857 2000-01-05 Gerd Moellmann <gerd@gnu.org>
11859 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11862 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11863 Check that input style is supported before trying to create an
11865 (x_window): Call x_create_im.
11867 2000-01-04 Gerd Moellmann <gerd@gnu.org>
11869 * xfns.c (current_gif_memory_src): New variable.
11870 (gif_load): Record the address of the current memory source
11871 in current_gif_memory_src.
11872 (gif_read_from_memory): Use current_gif_memory_src.
11874 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11875 macros statement form.
11877 * sound.c (struct sound): Renamed from struct sound_file.
11878 (struct sound): Add members `data' and `header_size'.
11879 (enum sound_attr): Add SOUND_DATA.
11880 (current_sound, current_sound_device): Variables renamed from
11881 sound_file and sound_device.
11882 (parse_sound): Parse :data.
11883 (parse_sound): Handle sound data in strings.
11884 (find_sound_type): Function renamed from find_sound_file_type.
11885 (wav_init, au_init): Fail if sound's header_size is smaller than
11886 needed header size.
11887 (wav_play, au_play): Play sounds from string data.
11889 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11891 * lisp.h: Add prototype for allocate_string_data.
11893 * alloc.c (Fgarbage_collect): Return number of live and free strings.
11895 * alloc.c (mark_buffer): Remove code in #if 0.
11897 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11898 (strings_consed): New variable.
11899 (allocate_string): Set it.
11900 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11901 (Fmemory_use_counts): Return strings_consed. Use Flist.
11903 * alloc.c: General cleanup in comments etc. Remove conditional
11904 compilation for `standalone'.
11906 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11908 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11909 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11910 (DONT_COPY_FLAG): Removed.
11911 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11912 (struct sdata, struct sblock): New
11913 (struct string_block): Rewritten.
11914 (STRINGS_IN_STRING_BLOCK): New macro.
11915 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11916 (large_sblocks, string_blocks, string_free_list): New variables.
11917 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11918 (init_strings): Rewritten.
11919 (allocate_string, allocate_string_data, compact_small_strings)
11920 (free_large_strings, sweep_strings): New functions.
11921 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11922 (struct string_block_head, current_string_block)
11923 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11924 (STRING_PAD): Removed.
11925 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11926 (Fgarbage_collect): Don't set mark bit in large strings.
11927 (mark_object): Mark strings differently. Mark symbol names
11929 (survives_gc_p): Test marked strings differently.
11930 (gc_sweep): Sweep strings differently, unmark strings in
11932 (compact_strings): Removed.
11934 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11936 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11937 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11939 2000-01-04 Kenichi Handa <handa@etl.go.jp>
11941 * fileio.c (Finsert_file_contents): Signal error if visiting file
11942 in a non-empty buffer.
11944 * term.c (encode_terminal_code): Fix the previous change.
11946 2000-01-03 Gerd Moellmann <gerd@gnu.org>
11948 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11949 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11951 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11953 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11955 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11956 need to test for MSDOS frames.
11958 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11960 * dosfns.c (unspecified_colors): Remove.
11961 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11963 (msdos_stdcolor_name): Return strings for unspecified fore- and
11964 back-ground colors.
11966 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
11967 (syms_of_xfaces): Remove their staticpro's.
11968 (tty_color_name): Return Lisp strings for unspecified fore- and
11969 back-ground colors.
11970 (Finternal_set_lisp_face_attribute): Remove the special treatment
11971 for Qunspecified_{f,b}g.
11972 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
11974 2000-01-03 Gerd Moellmann <gerd@gnu.org>
11976 * xdisp.c (reseat_at_next_visible_line_start): Position before
11977 newline only if ending up on a newline.
11978 (next_element_from_ellipsis): Return success. Handle case of
11979 displaying no ellipsis. Fix case of ellipsis defined in display table.
11980 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11983 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11985 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11986 (Fcolor_supported_p): Renamed from face-color-supported-p.
11988 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11990 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11991 list of colors renamed to tty-defined-color-alist.
11992 (tty_color_name): Pass the frame to tty-color-by-index.
11993 (realize_tty_face): tty-color-alist is now a function which
11994 accepts the frame as argument.
11996 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
11998 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12000 * term.c (insert_glyphs): Pass glyph, not &glyph, to
12001 encode_terminal_code.
12003 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12005 * dispnew.c (mode_line_string): Support termcap frames as well.
12007 2000-01-01 Gerd Moellmann <gerd@gnu.org>
12009 * syntax.c (Fforward_word): Undo previous change.
12011 * editfns.c (Fconstrain_to_field): Don't constrain if
12012 inhibit-field-text-motion is non-nil.
12013 (Fline_beginning_position): Undo previous change.
12014 (Fline_end_position): Ditto.
12016 * syntax.c (Fforward_word): Notice field boundaries only if
12017 inhibit-field-text-motion is nil.
12019 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
12021 * editfns.c (Vinhibit_field_text_motion): New variable.
12022 (inhibit-field-text-motion): New DEFVAR_LISP.
12023 (Fline_beginning_position, Fline_end_position): Notice field
12024 boundaries only if inhibit-field-text-motion is nil.
12026 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
12027 All calls adjusted.
12028 (x_build_heuristic_mask): Likewise.
12029 (xbm_load_image_from_file): Change error output.
12030 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
12031 (gif_load, gs_load, x_kill_gs_process): Ditto.
12033 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
12034 color indices when accessing raster pixels.
12035 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
12036 one of :file or :data.
12037 (enum pbm_keyword_index): Add PBM_DATA.
12038 (pbm_format): Add :data.
12039 (pbm_image_p): Allow either :file or :data.
12040 (pbm_read_file): New function.
12041 (pbm_scan_number): Rewritten to read from string.
12042 (pbm_load): Support :data.
12044 See ChangeLog.8 for earlier changes.
12046 ;; Local Variables:
12047 ;; coding: iso-2022-7bit