1 2001-10-14 Gerd Moellmann <gerd@gnu.org>
3 * xfns.c, dispnew.c, xterm.c: Put doc strings in comments.
5 2001-10-13 Gerd Moellmann <gerd@gnu.org>
7 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
8 Provide definitions for doc strings in comments.
10 * fns.c: Put doc strings in comments.
12 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
14 * dired.c (file_name_completion): Ignore a candidate directory if
15 it matches an element in completion-ignored-extensions that ends
17 (syms_of_dired) <completion-ignored-extensions>: Mention the above
18 feature in the doc string.
19 (Ffile_name_completion): Ditto.
21 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
23 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
25 * xfns.c (syms_of_xfns): Update calls to Fprovide.
27 * lisp.h (Fprovide): Update prototype.
28 (Ffeaturep, invisible_p): Remove.
30 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
31 (DOLIST, LOOP_PROPVAL): New macros.
32 (invisible_p, invisible_ellipsis_p): Use them.
33 (invisible_noellipsis_p): New function.
34 (syms_of_xdisp): Use empty_string.
36 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
38 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
39 (syms_of_lread) <Vafter_load_alist>: Update docstring.
41 * print.c (Fwith_output_to_temp_buffer): Align with
42 internal_with_output_to_temp_buffer.
43 (print_preprocess): Use traverse_intervals_noorder.
44 (print_object): Update call to traverse_intervals.
46 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
47 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
49 * intervals.c (traverse_intervals_noorder): New function.
50 (search_for_interval, count_intervals): Use it.
51 (traverse_intervals): Use less stack space and drop `depth' arg.
53 * fns.c (Ffeaturep): Add new `subfeature' arg.
54 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
55 (Qsubfeatures): New var.
56 (syms_of_fns): Initialize it.
58 * keymap.c (Fkey_description): Use empty_string.
59 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
60 (syms_of_keymap): Setup inheritance between maps.
61 Don't export Sdescribe_bindings_internal any more.
63 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
65 2001-10-12 Gerd Moellmann <gerd@gnu.org>
67 * xterm.c (notice_overwritten_cursor): Renamed from
68 note_overwritten_text_cursor. Rewritten to take glyph widths into
71 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
73 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
74 multi-line strings without a trailing "\n\".
76 2001-10-12 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
78 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
81 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
83 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
85 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
86 * w32proc.c (sys_spawnve):
87 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
88 * w32.c (check_windows_init_file):
89 * sound.c (Fplay_sound):
90 * emacs.c (init_cmdargs):
91 * process.c (Fstart_process): Update calls to openp.
93 * callproc.c (Vexec_suffixes): New var.
94 (Fcall_process): Update call to openp.
95 (decode_suffixes): New function.
96 (syms_of_callproc): Init exec-suffixes.
98 * lread.c (Vload_suffixes, default_suffixes): New vars.
99 (openp): Take a lisp list of suffixes.
100 Check for file-name-handlers even if the file was absolute already.
101 (syms_of_lread): Declare load-suffixes.
102 (Fload): Fix up call to openp.
103 Don't bother checking for file-name-handler at the very beginning.
105 * keymap.h (Fcopy_keymap): Don't export.
107 * lisp.h (empty_string): Declare.
108 (Vload_suffixes, Vexec_suffixes): Declare.
109 (openp): Update prototype.
111 * emacs.c (empty_string): New var.
112 (syms_of_emacs): Initialize it.
114 * search.c (wordify): Use it.
116 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
117 selected window if it's not displayed there. Handle the case
118 when the window is dedicated.
119 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
121 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
123 * syntax.h (struct gl_state_s): Change the meaning of b_property.
124 Remove left_ok and right_ok.
125 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
126 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
127 new meaning of b_property.
129 * syntax.c (update_syntax_table): Simplify.
130 (Fforward_comment): Don't skip quoted chars when going backward.
132 2001-10-11 Gerd Moellmann <gerd@gnu.org>
134 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
135 in case I is of some unsigned type, in which case
136 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
137 comparison becomes bogus.
139 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
140 (Fuser_full_name): Fix bug treating a float as a fixnum.
142 * data.c (Fstring_to_number): Use make_fixnum_or_float.
144 * lisp.h (make_fixnum_or_float): New macro.
146 * lisp.h (circular_list_error): Add prototype.
148 * data.c (Qcircular_list): New variable.
149 (circular_list_error): New function.
150 (syms_of_data): Initialize it Qcircular_list.
152 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
154 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
155 casefiddle.c, buffer.c: Include keymap.h.
157 2001-10-10 Gerd Moellmann <gerd@gnu.org>
159 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
160 options. From Dave Love <d.love@dl.ac.uk>.
162 2001-10-09 Gerd Moellmann <gerd@gnu.org>
164 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
165 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
167 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
169 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
171 2001-10-08 Andrew Innes <andrewi@gnu.org>
173 * lisp.h [max]: Undef min and max before redefining them.
175 * w32gui.h: Do not undef min and max.
177 * w32heap.h: Do not undef min and max.
179 * s/ms-w32.h: Do not undef min and max.
181 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
183 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
185 2001-10-08 Sam Steingold <sds@gnu.org>
187 * keymap.c (current-active-maps): Quote newlines (compilation error).
189 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
191 * Makefile.in (lisp, shortlisp): Replace bindings.el with
192 bindings.elc, since otherwise doc strings in bindings.el get wrong
195 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
197 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
199 * keyboard.h (map_prompt): Remove.
201 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
202 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
204 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
206 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
208 * keyboard.c (map_prompt): Remove.
209 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
212 * keymap.h: New file. Extracted from lisp.h.
214 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
215 (accessible_keymaps_1): New function.
216 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
217 (Fwhere_is_internal): Use Fcurrent_active_maps.
218 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
219 Insert in current buffer rather than standard-output.
220 Don't call `help-mode'. Export to elisp.
221 (describe_buffer_bindings): New wrapper.
222 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
223 and Sdescribe_buffer_bindings.
225 2001-10-08 Gerd Moellmann <gerd@gnu.org>
227 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
228 Remove code setting signal handler.
230 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
231 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
233 2001-10-08 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
235 * keyboard.c: Don't define min/max.
237 2001-10-08 Gerd Moellmann <gerd@gnu.org>
239 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
240 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
241 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
242 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
243 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
244 Don't define min/max.
246 * lisp.h (min, max): New macros.
248 * puresize.h (BASE_PURESIZE): Increase to 725000.
250 2001-10-08 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
252 * xfaces.c (free_frame_menubar): Add prototype.
254 * lisp.h (init_window): Add prototype.
256 * editfns.c: Include ctype.h.
258 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
259 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
260 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
263 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
264 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
265 `popup_activated_flag' and `title'.
267 * doc.c (Fdocumentation_property): Fix typo in a doc string.
269 * emacs.c (main): Remove extra `;'.
271 * atimer.h (struct atimer): Fix typos in a comment.
273 * atimer.c: Fix typo.
275 * Makefile.in: Fix typo.
277 * README: Remove obsolete part mentioning removed VMS file.
279 2001-10-07 Miles Bader <miles@gnu.org>
281 * Makefile.in (lisp, shortlisp): Add `button.elc'.
283 2001-10-07 Ken Raeburn <raeburn@gnu.org>
285 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
288 * lisp.h (Ffield_end): Declare.
290 2001-10-07 Gerd Moellmann <gerd@gnu.org>
292 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
294 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
296 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
298 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
300 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
301 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
303 * alloc.c (inhibit_garbage_collection): Simplify.
304 (Fmemory_use_counts): Ditto.
306 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
307 (syms_of_data): DEFVAR_INT most-positive-fixnum and
308 most-negative-fixnum.
310 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
311 (FIXNUM_OVERFLOW_P): New macros.
313 2001-10-06 Miles Bader <miles@gnu.org>
315 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
316 scroll_bar_bottom_shadow_pixel fields.
317 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
318 for the shadows, and tell the toolkit about them if we succeed.
319 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
320 Free scroll-bar shadow colors.
321 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
322 Free scroll-bar shadow colors when the background color changes.
323 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
324 Initialize scroll-bar shadow-color fields.
326 2001-10-05 Gerd Moellmann <gerd@gnu.org>
328 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
330 2001-10-05 Miles Bader <miles@gnu.org>
332 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
333 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
334 New functions (were in simple.el).
335 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
336 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
337 (syms_of_minibuf): Initialize them.
339 2001-10-05 Gerd Moellmann <gerd@gnu.org>
341 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
342 (tiff_load): Install them as error and warning handler.
344 2001-10-04 Andrew Innes <andrewi@gnu.org>
346 * w32fns.c (x_to_w32_color): Fix argument to alloca.
347 (w32_load_system_font): Don't believe what GetLanguageFontInfo
348 says; query codepage info directly to determine if font is double byte.
349 (x_to_w32_charset): Handle private format for unknown charsets.
350 Handle wildcards in charset spec, by ignoring them.
351 (w32_codepage_for_font): Fix argument to alloca. Don't remove
352 "*-" prefix from charset.
353 (x_to_w32_font): Enlarge remainder array for safety. Specifically
354 handle the truncated font spec form constructed by font_list_1, so
355 that we correctly identify the charset fields. Don't remove "*-"
357 (w32_list_synthesized_fonts): Fix argument to alloca.
359 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
361 * window.h (MINI_WINDOW_P): Use NILP.
363 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
365 * termhooks.h (struct input_event): Use proper type for `kind'.
367 2001-10-04 Gerd Moellmann <gerd@gnu.org>
369 This handles unknown keysyms better than before. For example,
370 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
371 Emacs formerly completely ignored F5. With the change, it derives
372 a key symbol from the name of the X keysym, `ccaron' in this case.
373 Reported by Martin Buchholz.
375 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
378 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
379 that EVENT->code isn't a function key, use the keysym's name.
381 2001-10-04 Gerd Moellmann <gerd@gnu.org>
383 FOREACH is a macro that should make it easier to loop over Lisp
384 lists with checks for cycles and proper lists.
386 * lisp.h (LIST_END_P, FOREACH): New macros.
388 2001-10-04 Gerd Moellmann <gerd@gnu.org>
390 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
391 called for a lost connection. Prevent dumping core in this case.
392 Instead print the X error, and exit. On user request.
394 * xterm.c (error_msg): New variable.
395 (x_fatal_error_signal): New function.
396 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
397 as fatal_error_signal_hook around the call to XtCloseDisplay.
399 * emacs.c (fatal_error_signal_hook): New variable.
400 (fatal_error_signal): Call that function.
402 2001-10-04 Gerd Moellmann <gerd@gnu.org>
404 With this, Emacs prints how much pure storage it will
405 approximately need in case pure storage overflows while dumping.
407 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
409 (init_alloc_once): Initialize new variables.
410 (PURE_POINTER_P): Use new variables.
411 (pure_alloc): If pure storage overflows, allocate from the heap.
412 (check_pure_size): New function.
413 (Fgarbage_collect): Don't GC if pure storage has overflowed.
415 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
416 (check_pure_size): Add prototype.
418 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
420 2001-10-04 Gerd Moellmann <gerd@gnu.org>
422 This adds a post-gc-hook that's run with GC inhibited.
423 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
425 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
426 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
427 (Fgarbage_collect): Run post-gc-hook.
429 2001-10-04 Gerd Moellmann <gerd@gnu.org>
431 This adds `defvaralias' and `indirect-variable'. Changes not
432 directly related to this feature are there to gain the same
433 performance again as before variable aliases.
435 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
436 code to get and set symbol values, to take defvaralias into account.
438 (Note: the new `constant' bit-flag in symbols would make it
439 possible to define arbitrary read-only variables, e.g. with
442 Documentation is in lispref/variables.texi. Added to NEWS.
444 * lisp.h (enum symbol_interned): New enumeration.
445 (struct Lisp_Symbol): Remove member `obarray', add
446 `indirect_variable', `constant', and `interned'.
447 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
448 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
449 (indirect_variable): Add prototype.
451 * print.c (print_preprocess, print_object): Test internedness of
454 * lread.c (Fintern, Funintern): Set symbol's interned and constant
456 (init_obarray): Likewise for t and nil.
458 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
459 (Fdefvaralias): New function.
460 (specbind): Simplify the test if symbol is a constant.
461 (syms_of_eval): Defsubr Fdefvaralias.
463 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
464 (Qcyclic_variable_indirection): New variable.
465 (Fkeywordp): Check for internedness differently.
466 (Fmakunbound): Simplify the test if symbol is a constant.
467 (indirect_variable, Findirect_variable): New functions.
468 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
470 (let_shadows_buffer_binding_p): Check for variable aliases.
471 (set_internal): Simplify the test if SYMBOL is a constant.
472 If SYMBOL has a buffer-local value and is an alias, use the aliased
474 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
477 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
478 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
481 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
483 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
484 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
485 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
487 2001-10-04 Gerd Moellmann <gerd@gnu.org>
491 2001-10-03 Miles Bader <miles@gnu.org>
493 * callproc.c (syms_of_callproc): Explicitly state in the
494 documentation for `process-environment' that earlier entries take
495 precedence over later ones.
497 2001-10-02 Miles Bader <miles@gnu.org>
499 * textprop.c (Fnext_char_property_change)
500 (Fprevious_char_property_change): Remove reference to non-existant
501 argument OBJECT from doc-string.
503 2001-10-01 Gerd Moellmann <gerd@gnu.org>
505 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
506 (try_window_id): Skip back over lines ending in a newline from a
509 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
512 2001-10-01 Richard M. Stallman <rms@gnu.org>
514 * search.c (Freplace_match): Doc fix.
516 2001-09-28 Andrew Innes <andrewi@gnu.org>
518 * w32menu.c (set_frame_menubar): Take into account that
519 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
522 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
524 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
526 2001-09-28 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
528 * s/gnu-linux.h: Fix a typo in comment.
530 2001-09-28 Andreas Schwab <schwab@suse.de>
532 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
533 nocombreloc, in case -z combreloc is the default.
535 2001-09-28 Gerd Moellmann <gerd@gnu.org>
537 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
538 really going on here.
540 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
542 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
544 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
546 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
547 utf-8, menu-bar, and latin-N.
548 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
550 (lisp): Add latin-N, since they are preloaded.
552 2001-09-27 Gerd Moellmann <gerd@gnu.org>
554 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
555 to the left. Some cleanup.
557 * xdisp.c (display_mode_element): One more case where a string's
558 multibyteness should be used for display.
560 2001-09-26 Gerd Moellmann <gerd@gnu.org>
562 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
565 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
566 of the only temporarily set echoing flag for deciding when
569 * keyboard.c (echo_kboard): Make externally visible.
571 * lisp.h (echo_kboard): Declare extern.
573 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
574 fonts_changed_p if we need larger matrices due to vscrolling.
575 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
576 this round of redisplay if make_cursor_line_fully_visible fails.
577 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
578 (try_cursor_movement, try_scrolling): Use them instead of integers.
580 * dispextern.h (required_matrix_width, required_matrix_height):
583 * dispnew.c (required_matrix_width, required_matrix_height):
585 (allocate_matrices_for_window_redisplay)
586 (allocate_matrices_for_frame_redisplay: Use them.
587 Remove parameters CH_DIM.
589 * xdisp.c (display_mode_lines): Temporarily set selected_frame
590 and selected_window to the frame of the window whose mode-lines
591 are displayed, and to the window itself.
592 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
595 2001-09-25 Gerd Moellmann <gerd@gnu.org>
597 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
598 the image cache under us.
600 * xdisp.c (display_mode_element): If the mode element is a symbol
601 with a string value, use that string's multibyteness for displaying.
603 * keyboard.c (read_char): Don't clear a message for a switch-frame
604 event. From Stefan Monnier <monnier@cs.yale.edu>.
606 * xterm.c (fast_find_position) [0]: Add a presumably more correct
607 version for after 21.1.
609 * xdisp.c (row_containing_pos): Make externally visible.
611 * dispextern.h (row_containing_pos): Add prototype.
613 * process.c (send_process): Disable composition if from_byte < 0.
614 From Kenichi Handa <handa@etl.go.jp>.
616 2001-09-24 Gerd Moellmann <gerd@gnu.org>
618 * xterm.c (refreshicon): Function removed.
620 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
622 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
624 * xterm.c (toplevel): Remove includes in #if 0.
626 * process.c (sigchld_handler) [LINUX]: Don't return from
627 the signal handler at the end of the loop.
629 2001-09-21 Gerd Moellmann <gerd@gnu.org>
631 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
632 Terminate only if kill returns -1, and errno is ESRCH.
634 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
636 * Makefile.in (shortlisp): Add ../lisp/env.elc.
638 2001-09-20 Gerd Moellmann <gerd@gnu.org>
640 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
641 since this function can be called during GC.
643 * callproc.c (Fcall_process): Handle errors from pipe(2).
644 (child_setup): Delete code in #ifdef vipc.
646 2001-09-19 Gerd Moellmann <gerd@gnu.org>
648 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
649 (display_mode_element): Display the string from decode_mode_spec
650 depending on its multibyteness.
652 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
654 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
656 2001-09-18 Gerd Moellmann <gerd@gnu.org>
658 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
659 recursive_edit_unwind.
660 (recursive_edit_unwind): Set kboard state according to
663 * buffer.c (modify_overlay): Don't do nothing if START == END;
664 This can still be a modification, for example when an overlay has
665 a before-string or after-string.
666 (Fdelete_overlay): Prevent redisplay optimizations when deleting
667 an overlay with before-string or after-string.
669 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
670 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
672 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
673 first_unchanged_at_end_row is in front of
674 last_unchanged_at_beg_row. This code should be removed after the
677 2001-09-17 Gerd Moellmann <gerd@gnu.org>
679 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
680 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
682 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
685 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
687 * dired.c (Ffile_attributes): Doc fix.
689 2001-09-14 Gerd Moellmann <gerd@gnu.org>
691 * fileio.c (Ffile_symlink_p): Fix last change.
693 * filelock.c (current_lock_owner): Fix last change.
695 2001-09-13 Gerd Moellmann <gerd@gnu.org>
697 * filelock.c (current_lock_owner): If readlink returns ERANGE,
698 take that to mean that the buffer is too small.
700 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
701 that to mean that the buffer is too small.
703 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
704 current buffer's multibyteness when discarding the iterator's
707 * xfns.c (Fx_window_property): Handle case that property gets
708 deleted between the two calls to XGetWindowProperty.
710 2001-09-11 Gerd Moellmann <gerd@gnu.org>
712 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
714 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
715 in addition to read-only.
717 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
718 to t in addition to read-only.
720 * lisp.h (Qinhibit_modification_hooks): Declare.
722 * insdel.c (Qinhibit_modification_hooks): New variable.
723 (syms_of_insdel): Initialize and staticpro it.
725 * textprop.c (verify_interval_modification): Don't run
726 modification-hooks if inhibit_modification_hooks.
728 * dispnew.c (set_window_cursor_after_update): Fix code
729 finding glyph row containing cursor when cursor_in_echo_area
732 * xdisp.c (init_from_display_pos): Put some code in #if 0.
733 (add_to_log): Use bcopy instead of strcpy.
734 (init_from_display_pos): Use an explicit loop over bytes in
735 overlay strings instead of calling index.
737 2001-09-10 Gerd Moellmann <gerd@gnu.org>
739 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
741 * dispnew.c (direct_output_for_insert): Don't change IT's
742 stop_charpos to something in front of its current position.
744 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
747 2001-09-10 Richard M. Stallman <rms@gnu.org>
749 * frame.c (Fmouse_position): Doc fix.
751 2001-09-07 Gerd Moellmann <gerd@gnu.org>
753 * xdisp.c (init_from_display_pos): Don't compare the result
754 of calling index with NULL.
756 2001-09-06 Gerd Moellmann <gerd@gnu.org>
758 * xfns.c (x_set_background_color): Don't change the colors
759 of the X window of scroll bar widgets.
761 2001-09-05 Andrew Innes <andrewi@gnu.org>
763 * w32fns.c (w32_createwindow): Undo last change.
765 2001-09-05 Gerd Moellmann <gerd@gnu.org>
767 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
769 * xdisp.c (string_buffer_position): Use *single_char_property*
770 functions instead of the *single_property* functions.
772 2001-09-04 Andrew Innes <andrewi@gnu.org>
774 * w32term.c (w32_read_socket): Add more information to debugging
777 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
778 from Emacs frames, so that calls to GetClipBox in w32term.c
779 correctly report when part of a frame is visible (including
780 scrollbars, etc). This prevents repeated redrawing of frames when
781 only a scrollbar is visible.
782 (w32_wnd_proc): Add more frame information to debugging output.
784 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
786 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
788 2001-09-03 Gerd Moellmann <gerd@gnu.org>
790 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
791 help-echo for a string which doesn't have help-echo itself, use
792 get-char-property to obtain the help-echo from the string's buffer
793 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
794 have mouse-face, look ``under'' the string for mouse-face from an
796 (fast_find_position): Add parameter STOP. In the final row, stop
797 before glyphs having STOP as object. Don't consider glyphs that
798 are not from a buffer.
800 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
802 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
804 * fns.c (Fmd5): Doc fix.
806 2001-08-31 Gerd Moellmann <gerd@gnu.org>
808 * composite.c (update_compositions): Do nothing if
809 inhibit-modification-hooks is set.
811 2001-08-30 Gerd Moellmann <gerd@gnu.org>
813 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
814 and check_message_stack if terminating abnormally. We want
815 glyph matrices etc. in a core dump.
817 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
818 (syms_of_xdisp): Initialize them.
819 (handle_single_display_prop): Don't change point, bind `object',
820 `position', and `buffer-position' instead to the object having the
821 `display' property, position in the object and position in the buffer.
823 * fileio.c (Finsert_file_contents): Don't change the multibyteness
824 of the buffer if REPLACE is non-nil.
826 2001-08-29 Gerd Moellmann <gerd@gnu.org>
828 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
830 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
832 * w32term.c (x_set_glyph_string_background_width)
833 (show_mouse_face): Track the last changes in xterm.c.
835 2001-08-28 Gerd Moellmann <gerd@gnu.org>
837 * xterm.c (x_set_glyph_string_background_width): Set the glyph
838 string's background width so that multi-line mouse-face is drawn
839 to the right edge of the window.
840 (show_mouse_face): Set the row's mouse_face_p flag after drawing
843 * dispnew.c (direct_output_for_insert): Set updated_area
844 before inserting/writing glyphs.
846 * xdisp.c (display_mode_element): Use string_byte_to_char to
847 determine character positions in strings, use chars_in_text
849 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
850 a matrix as parameter; this is easier to use from GDB.
852 2001-08-28 Miles Bader <miles@gnu.org>
854 * textprop.c (Fprevious_single_char_property_change)
855 (Fnext_single_char_property_change): Doc fixes.
857 2001-08-27 Gerd Moellmann <gerd@gnu.org>
859 * fileio.c (Finsert_file_contents): Allocate, restore, and
860 free composition data in the case of REPLACE not being nil.
862 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
863 there exist overlay strings with newlines at POS.
864 (text_outside_line_unchanged_p): Return 0 if changes start at
865 START and overlays exist at START. Likewise for END.
866 (try_window_id): Give up if init_to_row_end returns 0.
868 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
871 2001-08-24 Gerd Moellmann <gerd@gnu.org>
873 * keymap.c (access_keymap): Return the cdr of the binding of
874 a generic character instead of its definition (KEY . BINDING).
876 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
877 to 0 also in the REPLACE case.
879 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
881 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
882 open to determine whether file is readable (as for DOS_NT).
884 2001-08-23 Gerd Moellmann <gerd@gnu.org>
886 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
887 coding.type is coding_type_no_conversion or coding_type_raw_text,
888 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
889 non-nil instead of just setting enable_multibyte_characters in the
892 2001-08-22 Gerd Moellmann <gerd@gnu.org>
894 * dispextern.h (struct face_cache): Add member
897 * xfaces.c (menu_face_changed_default): New variable.
898 (menu_face_changed_count): Variable removed.
899 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
900 the menu_face_changed_default flag, otherwise set the FRAME's
901 menu_face_changed_p flag if the `menu' face has been changed.
902 Prevent calling set_font_frame_param if FRAME is t.
903 (make_face_cache): Initialize cache's menu_face_changed_p
904 from menu_face_changed_default.
905 (realize_basic_faces): Look into the frame's face cache to
906 determine if the menu appearance needs updating.
908 * keymap.c (access_keymap): Fix last change to not consider
909 IDX when it has modifiers.
911 2001-08-21 Gerd Moellmann <gerd@gnu.org>
913 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
914 . BINDING) exists, where GENERIC-CHAR is the generic character of
915 the charset of IDX, return BINDING unless there exists a binding
918 2001-08-16 Gerd Moellmann <gerd@gnu.org>
920 * xrdb.c (SYSV): Don't define on Solaris 2.
921 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
923 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
924 of the screen line, not text line, containing IT's current position.
926 2001-08-15 Gerd Moellmann <gerd@gnu.org>
928 * window.c (window_scroll_pixel_based): Don't recenter if
929 PT is partially visible in the window.
931 * xterm.c (expose_window_tree, expose_window, expose_line):
932 Return 1 when overwriting mouse-face.
933 (expose_frame): If mouse-face was overwritten, redo it.
935 * xfaces.c (x_update_menu_appearance): Don't call
936 set_frame_menubar, let the next redisplay do it.
938 2001-08-14 Andrew Innes <andrewi@gnu.org>
940 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
941 drawing glyph string.
943 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
945 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
948 2001-08-14 Gerd Moellmann <gerd@gnu.org>
950 * xfaces.c (x_update_menu_appearance): Save and restore value of
951 interrupt_input_blocked.
953 2001-08-13 Gerd Moellmann <gerd@gnu.org>
955 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
956 a line start, move back to the line start.
958 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
959 exactly when a mini-buffer is active.
961 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
962 in units of 1/8 character on non window-system frames.
963 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
965 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
967 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
970 2001-08-09 Gerd Moellmann <gerd@gnu.org>
972 * keyboard.c (Vpre_help_message): New variable.
973 (syms_of_keyboard): Initialize and staticpro it.
974 (show_help_echo): Record current message before displaying a
975 help-echo, and restore that message when clearing the help.
977 * xfns.c (x_create_im): Remove prototype.
979 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
981 * dispnew.c (adjust_glyph_matrix): Undo last change.
983 2001-08-08 Gerd Moellmann <gerd@gnu.org>
985 * dispnew.c (adjust_glyph_matrix): In the optimization for
986 windows whose height has changed, disable partially visible lines.
988 2001-08-07 Gerd Moellmann <gerd@gnu.org>
990 * window.c (Frecenter): If ARG < 0, and on a window system
991 frame, count in some empty lines when we can't move -ARG lines down.
993 * xdisp.c (start_display): Don't try to determine the continuation
994 lines width if lines are truncated. It's superfluous and leads to
995 incorrect results if POS is not visible in the window after
996 reseating the iterator at the previous line start.
998 2001-08-06 Gerd Moellmann <gerd@gnu.org>
1000 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1002 2001-08-06 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1004 * alloc.c (init_stack): Remove declaration.
1006 2001-08-03 Gerd Moellmann <gerd@gnu.org>
1008 * keyboard.c (read_key_sequence): Check that key is an integer
1009 before comparing it with quit_char.
1010 (add_command_key): Use larger_vector.
1011 (read_char_x_menu_prompt): Instead of converting symbol and
1012 integer events into conses (EVENT . nil), use (EVENT . disabled)
1013 which cannot be confused with valid events.
1014 (read_char): When reading from Vunread_command_events, check for
1015 events of the form (EVENT . disabled) instead of
1018 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
1019 a float, determine the max height from the frame's height.
1021 2001-08-02 Gerd Moellmann <gerd@gnu.org>
1023 * xdisp.c (redisplay_internal): Take message_cleared_p into
1024 account only if minibuf_level == 0.
1026 2001-08-01 Gerd Moellmann <gerd@gnu.org>
1028 * xdisp.c (redisplay_internal): Add a check for the last
1031 * xdisp.c (message_cleared_p): New variable.
1032 (clear_message): Set message_cleared_p when clearing the current
1034 (redisplay_internal): Look at message_cleared_p to capture
1035 the case that the echo area should be cleared.
1037 * keyboard.c (command_loop_1): Fix spelling of
1038 resize_echo_area_exactly.
1040 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
1042 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
1044 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
1045 current matrix when the window gets smaller.
1047 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
1049 * print.c (strout): Cast the character passed to insert_char to
1050 unsigned char, to avoid sign extension when it is promoted to int.
1052 2001-07-31 Gerd Moellmann <gerd@gnu.org>
1054 * fileio.c (Finsert_file_contents): Don't treat a return value
1055 of 0 from emacs_read as an IO error.
1057 2001-07-30 Gerd Moellmann <gerd@gnu.org>
1059 * keyboard.c (abs): New macro.
1060 (double_click_fuzz): New variable.
1061 (make_lispy_event): Use it to determine what makes a double-click.
1062 (syms_of_keyboard): DEFVAR_INT it.
1064 * xmenu.c (set_frame_menubar): Take into account that
1065 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1068 2001-07-27 Gerd Moellmann <gerd@gnu.org>
1070 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
1072 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
1073 of row's visible height.
1075 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
1076 deal with the first overlay string having an image `display' property.
1077 (try_window_reusing_current_matrix, compute_line_metrics):
1078 Fix computation of row's visible height for the case that part of the
1079 row is invisible above and part of the row is at the same time
1080 invisible below the window.
1082 2001-07-26 Gerd Moellmann <gerd@gnu.org>
1084 * xfns.c (x-show-tip): Doc fix.
1086 * xfns.c (Vx_max_tooltip_size): New variable.
1087 (syms_of_xfns): DEFVAR_LISP it.
1088 (Fx_show_tip): Set frame's window_width to the width of the
1089 window. Use a maximum tooltip size specified by
1090 Vx_max_tooltip_size, if that has valid contents.
1091 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
1093 2001-07-26 Andrew Innes <andrewi@gnu.org>
1095 * w32term.c (x_display_list): New variable.
1096 (w32_term_init): Set it.
1098 * w32term.h (x_display_list): New extern.
1100 2001-07-26 Gerd Moellmann <gerd@gnu.org>
1102 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
1103 is non-nil, instead of when redisplaying_p is non-zero.
1105 (mark_window_display_accurate_1): Add an assertion.
1107 2001-07-25 Gerd Moellmann <gerd@gnu.org>
1109 * dispextern.h (struct it): Increase size of ctl_chars to 16.
1111 * xfns.c (Fx_file_dialog): Block/unblock input while processing
1112 events so that we get a chance of processing expose events.
1114 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
1116 2001-07-24 Gerd Moellmann <gerd@gnu.org>
1118 * xfns.c (valid_image_p): Protect better against invalid image
1119 specifications. Previous code could signal an error.
1121 2001-07-23 Gerd Moellmann <gerd@gnu.org>
1123 * indent.c (current_column): Fix column computation in the
1124 presence of display table entries.
1125 (current_column_1, Fmove_to_column, compute_motion): Likewise.
1127 * dispnew.c (adjust_glyph_matrix): In the optimization for
1128 windows whose height has changed, use the new window height
1129 to compute which rows to invalidate.
1131 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
1132 (MAX_10_EXP): New macro.
1135 * coding.c (code_convert_region): Handle the multibyte case if
1136 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
1138 2001-07-20 Gerd Moellmann <gerd@gnu.org>
1140 * dispextern.h (struct face): Change type of `stipple' to
1143 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
1145 2001-07-19 Gerd Moellmann <gerd@gnu.org>
1147 * dispnew.c (update_window): Don't set the cursor at the end
1148 of the update if display update has been paused.
1150 * composite.h (syms_of_composite): Renamed from syms_of_composition.
1152 2001-07-18 Ken Raeburn <raeburn@gnu.org>
1154 * fns.c (Fset_char_table_default): Check that a charset is defined
1155 before checking its dimension.
1157 2001-07-17 Ken Raeburn <raeburn@gnu.org>
1159 * coding.c (setup_coding_system): Don't do any designation based
1160 on reg_bits if charset is not yet defined.
1162 * lisp.h (XVECTOR): Verify correct object type before returning a
1163 pointer, using eassert.
1165 2001-07-17 Gerd Moellmann <gerd@gnu.org>
1167 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
1168 Increase to 4096 because of paste problems reported on GNU/Linux.
1170 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
1172 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
1174 2001-07-16 Gerd Moellmann <gerd@gnu.org>
1176 * fileio.c (unwind_read): Function removed.
1177 (read_non_regular, read_non_regular_quit): New functions.
1178 (Finsert_file_contents): When reading from non-regular files,
1179 arrange to catch a `quit' and terminate the loop. Rearrange
1180 code so that a `quit' when reading from a regular file doesn't
1181 insert text in the buffer.
1183 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
1184 Clear faces afterwards.
1185 (clear_font_table): Take a x_display_info parameter. Don't free
1186 fonts being the default font of any frame on the given display.
1188 2001-07-13 Gerd Moellmann <gerd@gnu.org>
1190 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
1191 instead of CHAR_STRING which can signal an error.
1193 * charset.c (char_to_string_1): Extracted from char_to_string.
1194 Return -1 instead of signaling an error.
1195 (char_to_string): Use it.
1197 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
1199 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
1201 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
1202 is t, don't try to append anything to it.
1204 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
1206 * dired.c (file_name_completion): Pass dp->d_name to
1207 Fstring_match, not elt, which is always nil here.
1209 2001-07-12 Gerd Moellmann <gerd@gnu.org>
1211 * xselect.c (x_decline_selection_request): Handle errors
1212 caused by receivers that have vanished.
1214 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
1215 ignoring events on foreign windows in #if 0. Always dispatch
1216 the event after checking it with x_handle_property_notify.
1218 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
1219 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
1220 TRACE macros to facilitate debugging. Add additional trace statements.
1221 (toplevel): Add prototypes for file-local functions.
1222 (x_atom_to_symbol): Remove DPYINFO parameter.
1224 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
1226 * w32menu.c (menubar_selection_callback, w32_menu_show):
1227 Initialize `entry' to nil.
1228 (w32_dialog_show): Remove unused `save_wv' variable.
1229 (name_is_separator): Recognize "--:foo" and "--foo-bar".
1231 2001-07-11 Gerd Moellmann <gerd@gnu.org>
1233 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
1235 * fileio.c (unwind_read): Print a message when discarding inserted
1236 text or switching the buffer to unibyte. Change parameter.
1237 (Finsert_file_contents): Don't pass VISIT to unwind_read.
1239 * fileio.c (unwind_read): New function.
1240 (Finsert_file_contents): Record it as unwind-function for
1241 the case that reading is interrupted by C-g.
1243 2001-07-10 Gerd Moellmann <gerd@gnu.org>
1245 * dispnew.c (update_window): Don't skip the header-line
1246 update when scrolling_window returns 0.
1248 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
1250 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
1251 for the case that x_decode_color signals an error.
1253 * xdisp.c (add_to_log): Do nothing if called asynchronously.
1255 2001-07-09 Gerd Moellmann <gerd@gnu.org>
1257 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
1258 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
1261 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
1263 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
1264 doc string line for dos-timezone-offset.
1266 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
1267 inline assembly, to avoid compiler warnings.
1268 (syms_of_msdos): Add \n\ at the end of a line in the doc string
1269 line for dos-unsupported-char-glyph.
1271 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
1273 2001-07-05 Gerd Moellmann <gerd@gnu.org>
1275 * sound.c: Include Emacs' header files with #include "...".
1277 * eval.c (specbind): Additionally record the buffer that was
1278 current when a buffer-local or frame-local variable was bound.
1280 2001-07-04 Gerd Moellmann <gerd@gnu.org>
1282 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
1283 to unibyte characters in unibyte buffers.
1285 2001-07-03 Gerd Moellmann <gerd@gnu.org>
1287 * eval.c (specbind): If SYMBOL has a frame-local binding, record
1288 the frame on the binding stack. Change format of entries for
1289 local bindings on the binding stack to '(SYMBOL . WHERE)'.
1290 (unbind_to): Handle unbinding a frame-local variable.
1292 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
1293 glyphs and truncation glyphs at the end of a row from its pixel width.
1294 (dump_glyph_row): Print row's continuation_lines_width.
1295 (try_window_id): Take the shortcut if ZV is visible in the
1296 window, but there are actually no changes at ZV.
1298 2001-07-02 Gerd Moellmann <gerd@gnu.org>
1300 * xterm.h (x_free_dpy_colors): Add prototype.
1302 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
1303 right number of arguments.
1305 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
1306 ($(lwlibdir)TAGS): New target.
1307 (TAGS): Fix dependency list.
1309 * xterm.c (x_list_fonts): Make sure XFreeFont is called
1312 2001-06-30 Gerd Moellmann <gerd@gnu.org>
1314 * emacs.c (main): Remove extern declaration for sys_nerr, which
1315 isn't used and causes a compilation error with GCC 3.0 on
1318 2001-06-27 Gerd Moellmann <gerd@gnu.org>
1320 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
1321 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
1322 (toplevel): Include <signal.h> and syssignal.h.
1324 * sound.c (vox_configure, vox_close): Turn off atimers
1327 2001-06-26 Gerd Moellmann <gerd@gnu.org>
1329 * keyboard.c (read_char) <non_reread>: Record the previous idle
1330 start time before calling timer_stop_idle.
1331 (read_char) <reread_first>: After processing a help-echo event,
1332 restore the previous idle start time.
1334 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
1335 the start of invisible text.
1336 (setup_for_ellipsis): New function.
1337 (next_overlay_string): After all overlay strings have been
1338 processed, display an ellipsis if necessary.
1339 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
1340 (push_it): Initialize display_ellipsis_p on the iterator's stack.
1342 * dispextern.h (struct iterator_stack_entry): Add member
1345 2001-06-25 Gerd Moellmann <gerd@gnu.org>
1347 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
1348 on the value of the wait-for-wm frame parameter.
1350 * xterm.h (struct x_output): Add member wait_for_wm.
1352 * xfns.c (Qwait_for_wm): New variable.
1353 (x_frame_parms): Add entry for `wait-for-wm".
1354 (x_set_wait_for_wm): New function.
1355 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
1356 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
1358 * xdisp.c (try_window_id) <all changes below window end>: Don't
1359 take this shortcut if ZV is visible in the window.
1360 (try_window_id): When checking for window start being in changed
1361 text, don't check that the buffer's size has changed.
1363 2001-06-23 Richard M. Stallman <rms@gnu.org>
1365 * minibuf.c (Fcompleting_read): Doc fix.
1367 2001-06-19 Gerd Moellmann <gerd@gnu.org>
1369 * composite.c (Ffind_composition_internal): Accept ZV
1370 and a string's end position as POS.
1372 2001-06-18 Gerd Moellmann <gerd@gnu.org>
1374 * composite.c (Ffind_composition_internal): Check POS
1377 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
1379 * editfns.c (Fmessage_box): If the frame is not under a window
1380 system, output the message in the echo area.
1382 2001-06-14 Richard M. Stallman <rms@gnu.org>
1384 * xdisp.c (try_window_id): When EOB is visible, don't treat
1385 insertion at EOB as if it were "off the bottom of the screen."
1387 2001-06-11 Andrew Innes <andrewi@gnu.org>
1389 * w32proc.c (create_child): Add new parameter is_gui_app.
1390 (w32_executable_type): Add new parameter is_gui_app.
1391 (sys_spawnve): Use it.
1392 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
1393 SIGQUIT. This matches better how the signals are interpreted by
1394 MSVC compiled programs.
1395 (syms_of_ntproc): Update docstring.
1397 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
1399 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
1400 well otherwise note_mouse_highlight might optimize away highlighting
1401 if we pass over that same overlay again.
1403 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
1405 * lread.c (Fload): Document that the argument is run via
1406 substitute-in-file-name.
1408 2001-05-31 Gerd Moellmann <gerd@gnu.org>
1410 * Makefile.in (bootstrap-doc): New target.
1411 (bootstrap-emacs): Depend on it.
1413 * fileio.c (Fdo_auto_save): Don't try to create the directory of
1414 auto-save-list-file-name when shutting down Emacs, because
1415 creating the directory might signal an error, and leaves
1416 Emacs in a strange state.
1418 * term.c: (tty_cursor_hidden): New variable.
1419 (update_begin): Don't call tty_hide_cursor. Clean up.
1420 (update_end, set_terminal_window, set_scroll_region): Clean up.
1421 (ring_bell, reset_terminal_modes): Clean up.
1422 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
1423 on tty_cursor_hidden.
1424 (write_glyphs): Call tty_hide_cursor.
1426 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
1428 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
1430 2001-05-30 Gerd Moellmann <gerd@gnu.org>
1432 * xfns.c (enum image_value_type): New enumerator
1433 IMAGE_STRING_OR_NIL_VALUE.
1434 (parse_image_spec): Handle it.
1435 (xbm_format, pbm_format): Use it for :foreground and :background.
1436 (xbm_load, pbm_load): Check for nil color names.
1438 * xterm.c (note_mouse_highlight): If an overlapping overlay
1439 exists, but we find that we highlight the same overlay as before,
1440 don't do the highlighting again.
1442 2001-05-29 Gerd Moellmann <gerd@gnu.org>
1444 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
1445 Protect unibyte strings created by replacing their multibyte
1446 equivalents in menu_items.
1448 * keymap.c (Fsingle_key_description): NUL-terminate the string
1449 buffer before calling build_string.
1451 * callproc.c (Fcall_process): Deal with decode_coding returning
1452 CODING_FINISH_INCONSISTENT_EOL.
1454 2001-05-28 Gerd Moellmann <gerd@gnu.org>
1456 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
1457 an item's name with its key description in case the description
1458 is a multibyte string.
1460 * keymap.c (Fsingle_key_description): Create a multibyte string
1463 * macros.c (Fstart_kbd_macro): Doc fix.
1465 * xterm.c (cursor_in_mouse_face_p): New function.
1466 (x_draw_stretch_glyph_string): Use it to choose a different GC
1467 when drawing a cursor within highlighted text.
1469 * editfns.c (char_property_eq): Put in #if 0.
1471 * indent.c (string_display_width): Put in #if 0.
1473 * lread.c (Fload): Remove unused label.
1475 * termcap.c (speeds): Put in #if 0.
1477 2001-05-18 Gerd Moellmann <gerd@gnu.org>
1479 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
1481 * xfaces.c (xlfd_point_size): Don't divide pixel size from
1482 transformation matrix by 10.
1484 2001-05-16 Gerd Moellmann <gerd@gnu.org>
1486 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
1487 only if it's equal to the former foreground pixel color.
1488 (x_set_foreground_color, x_set_background_color)
1489 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
1491 2001-05-16 Dave Love <fx@gnu.org>
1493 * insdel.c (signal_before_change, signal_after_change): Consider a
1494 local change hook which changes the buffer.
1496 * process.c (read_process_output): Don't call signal_after_change
1497 and update_compositions after insert_from_string_before_markers.
1499 2001-05-16 Gerd Moellmann <gerd@gnu.org>
1501 * xfaces.c (split_font_name): Use the right field when
1502 checking for `[...]' syntax.
1504 * buffer.c (copy_overlays): New function.
1505 (clone_per_buffer_values): Use it.
1507 * buffer.h (OVERLAY_PLIST): New macro.
1509 * keymap.c (Fsingle_key_description): Replace a build_string with
1510 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
1512 * fontset.c (Ffontset_info): Check that face is non-null
1513 before accessing its fields.
1515 2001-05-15 Gerd Moellmann <gerd@gnu.org>
1517 * keyboard.c (read_key_sequence): Prevent generating a fake
1520 * xfaces.c (split_font_name): Handle `[...]' for the right
1523 * ccl.c (ccl_driver): Don't copy remaining bytes in case
1524 of CCL_STAT_INVALID_CMD.
1526 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
1528 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
1529 in <var> has no default value yet.
1531 * xfaces.c (try_alternative_families): First try the FAMILY.
1532 And if nothing is found in the end, try again with scalable fonts.
1533 (try_font_list): Let try_alternative_families do a bit more of
1534 the work. Only use FAMILY if it is not nil.
1535 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
1537 2001-05-14 Gerd Moellmann <gerd@gnu.org>
1539 * xterm.c (note_mouse_highlight): Avoid changing the mouse
1540 pointer shape when show_mouse_face has already done it.
1542 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
1545 * xfaces.c (split_font_name): Make sure to leave the loop
1546 with the right value of `i'.
1548 * xfaces.c (split_font_name): Handle matrix transformations
1549 in the pixel and point size fields of XLFD font names.
1550 (xlfd_point_size): Likewise.
1552 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
1554 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
1555 (x_to_w32_font): Add prototype.
1557 * regex.c (malloc, realloc, free) [emacs]: Undefine before
1558 redefining, to avoid compiler warnings.
1560 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
1562 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
1563 (w32_get_bdf_glyph): Cast between unsigned char and char when
1564 passing arguments to subroutines, to shut up compiler warnings.
1565 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
1568 * xfaces.c: Include keyboard.h before frame.h, not after it.
1570 * widget.c: Include keyboard.h before frame.h.
1572 * w32term.h (struct image, struct face): Forward declaration, to
1573 avoid compiler warnings.
1575 2001-05-11 Gerd Moellmann <gerd@gnu.org>
1577 * keyboard.c (read_key_sequence): Don't modify events when
1578 generating fake prefix keys (mode-line, scroll-bar, ...) since
1579 this prevents proper processing of such events when pushed back
1580 into unread-command-events.
1582 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
1583 actually redrawn. Make the function static.
1584 (note_mouse_highlight): Fix a case where the mouse cursor
1585 was changed back to the text cursor.
1587 * xterm.h (clear_mouse_face): Remove prototype.
1589 * xdisp.c (try_window_id): Fix the fix and set the right
1592 * xdisp.c (try_window_id): Fix computation of window end in the
1593 case that lines were deleted at the end of the window. Add some
1594 more debug_method_adds.
1596 * xfaces.c (try_alternative_families): New function.
1597 (try_font_list): Use it. If ATTRS specifies a family, check
1598 fonts from that family first.
1599 (choose_face_font): Remove code setting the family part of
1602 2001-05-10 Gerd Moellmann <gerd@gnu.org>
1604 * xdisp.c (try_window_id): Fix case of all changes before
1607 * xdisp.c (try_window_id): Add some xasserts.
1609 2001-05-09 Gerd Moellmann <gerd@gnu.org>
1611 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
1613 2001-05-09 Dave Love <fx@gnu.org>
1615 * xdisp.c (GIVE_UP): Fix for K&R C.
1617 2001-05-09 Gerd Moellmann <gerd@gnu.org>
1619 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
1621 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
1622 back to the text cursor shape without need.
1624 2001-05-07 Gerd Moellmann <gerd@gnu.org>
1626 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
1628 * dispextern.h (inverse_video): Declare extern.
1630 * keyboard.c (delete_kboard): Handle the case that selected_frame
1631 has been deleted in the course of x_connection_closed.
1633 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
1635 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
1636 Fix the change from 2001-04-30.
1638 2001-05-03 Gerd Moellmann <gerd@gnu.org>
1640 * xfns.c (file_dialog_unmap_cb): New function.
1641 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
1642 where a dialog is closed via the window manager.
1644 * xdisp.c (try_window_id): Cases of changes all in front of
1645 the window start or all below the window end mostly rewritten.
1646 (redisplay_window): Move the tests if try_window_id is
1647 applicable to try_window_id.
1648 (GIVE_UP): New macro.
1650 2001-05-02 Gerd Moellmann <gerd@gnu.org>
1652 * xterm.c (expose_window): Return int. If W is the window
1653 currently being updated, mark the frame garbaged.
1654 Fix computation of rows intersecting the exposed rectangle.
1655 (expose_window_tree): Stop when expose_window returns 0.
1657 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
1658 again if it has already been drawn.
1660 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
1662 * syntax.c (update_syntax_table): Check that oldi has the same
1663 properties as old_prop before deciding not to invalidate.
1665 2001-04-30 Gerd Moellmann <gerd@gnu.org>
1667 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
1668 read-only text that is so because of text properties.
1670 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
1671 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
1672 windows that are components of a Lucid menu bar.
1674 2001-04-27 Gerd Moellmann <gerd@gnu.org>
1676 * term.c (turn_on_face): Fix reverse video handling on terminals
1677 that don't support colors.
1679 2001-04-26 Gerd Moellmann <gerd@gnu.org>
1681 * editfns.c (save_excursion_restore): Don't use XBUFFER on
1684 2001-04-25 Gerd Moellmann <gerd@gnu.org>
1686 * term.c (toggle_highlight): New function.
1687 (turn_on_face): Change handling of reverse video.
1689 * process.c (wait_reading_process_input):
1690 Call record_asynch_buffer_change only if a timer really changed buffers.
1692 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
1693 of the number of overlays to check.
1695 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
1697 * xdisp.c (try_window_id): Fix a case where window_end_pos
1698 and window_end_bytepos were not adjusted.
1700 2001-04-23 Gerd Moellmann <gerd@gnu.org>
1702 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
1705 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
1707 * process.c (wait_reading_process_input) [!subprocesses]:
1708 Don't reference waiting_for_user_input_p, it's not defined in the
1709 branch without async subprocesses support.
1711 2001-04-19 Gerd Moellmann <gerd@gnu.org>
1713 * keyboard.c (delete_kboard): Prevent a dangling reference
1714 from current_kboard to KB, which is freed.
1716 * process.c (wait_reading_process_input):
1717 Call record_asynch_buffer_change after running timers, to make
1718 read_key_sequence aware of buffer changes from under it.
1720 2001-04-18 Gerd Moellmann <gerd@gnu.org>
1722 * xfaces.c (Qscalable_fonts_allowed): New variable.
1723 (realizing_basic_faces_p): Removed.
1724 (x_face_list_fonts): Special handling for realizing_basic_faces_p
1726 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
1727 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
1728 for scalable-fonts-allowed to t.
1730 * fileio.c (Finsert_file_contents): If the file size returned from
1731 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
1732 read from files on a procfs whose contents are generated dynamically.
1734 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
1736 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
1737 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
1738 (__memalign_hook): Make the two prototypes consistent.
1740 2001-04-17 Gerd Moellmann <gerd@gnu.org>
1742 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
1743 matrix of mini-windows.
1745 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
1747 * intervals.c (find_interval): Don't rebalance during signal handling.
1749 2001-04-11 Gerd Moellmann <gerd@gnu.org>
1751 * fns.c: Include blockinput.h.
1753 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
1755 2001-04-10 Gerd Moellmann <gerd@gnu.org>
1757 * fns.c (Fcompare_strings): Fix return values.
1759 * window.c (window_scroll): Change the meaning of N to mean
1760 N screen-fulls or N lines.
1761 (window_scroll_pixel_based, window_scroll_line_based)
1762 (scroll_command, Fscroll_other_window): Change accordingly.
1764 * window.c (window_scroll_pixel_based, Frecenter):
1765 Call window_box_height instead of using it.last_visible_y for the
1766 height of the window.
1768 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
1769 instead of using it.last_visible_y for the height of the window.
1771 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
1772 From Dan Holmsand <dan@eyebee.com>.
1774 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
1775 able to write to hidden and system files. From Dan Holmsand
1778 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
1779 Holmsand <dan@eyebee.com>.
1781 2001-04-09 Gerd Moellmann <gerd@gnu.org>
1783 * fns.c (Fplist_get, Fplist_put): Add QUITs.
1785 * window.c (window_internal_height): Return 1 less if the
1786 window has a header line.
1788 * xdisp.c (try_window_id): When scrolling on a terminal, take
1789 the change of window_internal_height into account.
1791 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
1793 * gmalloc.c (align): If the argument SIZE would overflow
1794 __malloc_ptrdiff_t, fail right away.
1796 2001-04-06 Gerd Moellmann <gerd@gnu.org>
1798 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1799 Make sure the tooltip is completely visible.
1800 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
1802 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
1804 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
1806 2001-04-06 Dave Love <fx@gnu.org>
1808 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
1811 2001-04-06 Gerd Moellmann <gerd@gnu.org>
1813 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
1815 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
1817 2001-04-05 Gerd Moellmann <gerd@gnu.org>
1819 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
1821 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
1823 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
1824 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
1826 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
1827 shell widget's position only if it is non-null.
1829 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
1830 Set f->output_data.x->widget to null after destroying it.
1832 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
1833 FILENAME to bring it in synch with the documentation.
1835 * xfaces.c (realizing_basic_faces_p): Renamed from
1836 realize_default_face_p.
1837 (realize_basic_faces): Set/clear realizing_basic_faces_p.
1838 (realize_default_face): Don't set the flag.
1840 2001-04-04 Gerd Moellmann <gerd@gnu.org>
1842 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
1844 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
1846 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
1847 the buffer that was used for echoing.
1849 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
1850 (first_font_matching): Removed unused function.
1851 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
1852 (may_use_scalable_font_p): Remove parameter FONT; rename
1853 parameter NAME to FONT.
1854 (x_face_list_fonts): Fix missing bounds check.
1855 (realizing_default_face_p): New variable.
1856 (realize_default_face): Set and clear that flag.
1857 (x_face_list_fonts): When called during the realization of the
1858 default face, and no matching fonts are found when ignoring
1859 scalable fonts and fonts matching a regexp from
1860 face-ignored-fonts, try without ignoring fonts.
1862 2001-04-03 Gerd Moellmann <gerd@gnu.org>
1864 * xfns.c (postprocess_image): New function.
1865 (lookup_image): Call it for all image types except PostScript.
1866 (x_kill_gs_process): Call postprocess_image.
1868 * xterm.c (x_use_underline_position_properties): New variable.
1869 (x_draw_glyph_string): Use it.
1870 (syms_of_xterm): DEFVAR_BOOL it.
1872 2001-04-02 Gerd Moellmann <gerd@gnu.org>
1874 * xterm.c (x_alloc_nearest_color_1): New function.
1875 (x_alloc_nearest_color): Use it.
1876 (x_color_cells): Take a Display as argument, instead of a frame.
1877 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
1878 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
1879 (x_initialize): Register cvt_string_to_pixel as resource converter
1880 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
1882 2001-03-30 Gerd Moellmann <gerd@gnu.org>
1884 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
1885 (set_iterator_to_next): If a string from a display property ends,
1886 consider the case that this might also be the end of an
1887 overlay string having the display property.
1889 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
1891 * xdisp.c (reseat_to_string): Undo last change.
1893 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
1894 matrix of a window when the header line changes, when
1895 new rows are allocated, or when the width changes.
1897 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
1899 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
1901 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
1903 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
1906 2001-03-29 Gerd Moellmann <gerd@gnu.org>
1908 * data.c (Fsubr_interactive_form): New function.
1909 (syms_of_data): Defsubr it.
1911 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
1912 (live_float_p, live_misc_p): Return 1 only if the offset of the
1913 pointer in its block is >= 0.
1915 2001-03-28 Paul Eggert <eggert@twinsun.com>
1917 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
1918 microseconds calcuation. Avoid double-rounding problem.
1919 In doc string, warn that the result is approximate.
1921 2001-03-28 Gerd Moellmann <gerd@gnu.org>
1923 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
1924 bind `inhibit-eval-during-redisplay' to t.
1926 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
1928 * xdisp.c (inhibit_eval_during_redisplay)
1929 (Qinhibit_eval_during_redisplay): New variables.
1930 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
1931 don't eval, return nil instead.
1932 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
1933 Initialize Qinhibit_eval_during_redisplay.
1935 * xdisp.c (reseat_to_string): If STRING is multibyte, set
1936 the iterator's multibyte_p flag.
1938 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
1939 instead of setting it to zero; it's incremented for each frame
1940 where the menu face is changed.
1942 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
1943 change bottom shadow accordingly.
1945 * xterm.c (expose_window_tree, expose_frame): Don't compute
1947 (expose_window): Do it here instead.
1948 (x_draw_glyph_string): Fix a computation of the underline position.
1950 * bytecode.c (BYTE_CODE_QUIT): New macro.
1951 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
1953 2001-03-27 Gerd Moellmann <gerd@gnu.org>
1955 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
1956 Give up if matrix starts in an ellipsis.
1957 (init_from_display_pos): Do nothing if POS doesn't specify
1958 a dpvec_index but the iterator has such a position.
1960 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
1962 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
1963 x/y position is (0, 0) after destroying the menu bar, restore
1964 its original position.
1966 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
1967 (init_from_display_pos): Use it.
1968 (try_window_reusing_current_matrix): Don't use cursor_row_p.
1970 2001-03-26 Gerd Moellmann <gerd@gnu.org>
1972 * xdisp.c (try_window_id): Undo last change.
1974 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
1976 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
1978 * buffer.c (syms_of_buffer): Doc fix.
1980 2001-03-26 Gerd Moellmann <gerd@gnu.org>
1982 * xfaces.c (x_update_menu_appearance): Use local variable
1983 popup_path for setting font resources.
1985 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
1987 * frame.c (Fframe_list): Don't reference tip_frame if
1988 HAVE_WINDOW_SYSTEM is not defined.
1990 * emacs.c (main): Update the copyright year. From Werner LEMBERG
1993 2001-03-25 Gerd Moellmann <gerd@gnu.org>
1995 * xdisp.c (init_from_display_pos): Test invisible property
1996 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
1998 * xdisp.c (redisplay_internal) <update one window>: Make sure
1999 last_arrow_position and last_arrow_string are set.
2001 * frame.c (Fframe_list): Don't return a tooltip frame.
2003 2001-03-23 Gerd Moellmann <gerd@gnu.org>
2005 * xdisp.c (mark_window_display_accurate_1): New function,
2006 extracted from mark_window_display_accurate.
2007 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
2008 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
2009 (mark_window_display_accurate): Use it.
2010 (redisplay_internal): Use it for the selected window.
2011 (redisplay_internal): Avoid duplicate mark_window_display_accurate
2012 for the selected frame.
2014 * xdisp.c Use make_number, for readability.
2015 (try_window_id): Disable rows below the window end.
2016 (try_window_reusing_current_matrix): Use cursor_row_p.
2017 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
2019 (init_from_display_pos): If POS specifies a position in a display
2020 vector, maybe get the iterator set up for that ellipsis.
2022 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
2024 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
2026 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
2028 2001-03-23 Gerd Moellmann <gerd@gnu.org>
2030 * xfaces.c (x_update_menu_appearance): Use a different path
2031 for Lucid popup menus.
2033 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
2035 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
2037 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
2038 (string_buffer_position): Use `make_number'.
2040 2001-03-22 Gerd Moellmann <gerd@gnu.org>
2042 * xfaces.c (x_update_menu_appearance): Renamed from
2043 x_set_menu_face_resources. Use different resources for popups.
2045 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
2046 (GC_CHECK_STRING_BYTES): Don't define.
2048 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
2049 Removed, together with subroutines.
2050 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
2051 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
2053 * dispextern.h (x_set_menu_resources_from_menu_face):
2056 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
2057 Remove calls to x_set_menu_resources_from_menu_face.
2059 * xfaces.c (xm_set_menu_resources_from_menu_face):
2060 Remove #ifndef LESSTIF_VERSION.
2062 * xmenu.c: Include widget.h.
2063 (single_submenu): Return int. Some cleanup.
2064 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
2066 2001-03-21 Gerd Moellmann <gerd@gnu.org>
2068 * xterm.c (x_update_window_end): Handle overwritten mouse face
2069 also for tool bar windows.
2070 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2071 DRAW is DRAW_IMAGE_RAISED.
2073 2001-03-20 Gerd Moellmann <gerd@gnu.org>
2075 * print.c (syms_of_print): Doc fixes.
2077 * fns.c (Fmd5): Doc fix.
2079 2001-03-19 Gerd Moellmann <gerd@gnu.org>
2081 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2082 Clear area of the frame not occupied by the scroll bar.
2084 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
2085 tip frame's root window buffer to *tip* right after creating
2088 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
2089 is an integer don't have to be for space characters.
2091 2001-03-16 Gerd Moellmann <gerd@gnu.org>
2093 * indent.c (current_column, current_column_1, Fmove_to_column)
2094 (compute_motion): Handle characters from display vectors differently.
2096 2001-03-15 Kenichi Handa <handa@etl.go.jp>
2098 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
2099 drawing glyph string.
2101 2001-03-15 Gerd Moellmann <gerd@gnu.org>
2103 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
2104 (command_loop_1): Undo last change.
2106 * xterm.c (fast_find_position): Return the correct vpos.
2108 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
2109 non-null, set a per-buffer value in BUF instead of the current buffer.
2110 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
2111 Call store_symval_forwarding with BUF null.
2112 (set_internal): Call store_symval_forwarding with the BUF
2113 parameter passed to set_internal. Formerly, the value was always
2114 set in the current buffer; the buffer recorded in specbind for
2115 this case wasn't used.
2116 (arith_driver): Reindent.
2118 * buffer.c (swap_out_buffer_local_variables):
2119 Call store_symval_forwarding with BUF null.
2121 * lisp.h (store_symval_forwarding): Change prototype.
2123 * eval.c (specbind): Call store_symval_forwarding with BUF null.
2125 2001-03-14 Gerd Moellmann <gerd@gnu.org>
2127 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
2128 FOR_DELETION. Avoid resizing the mini-window of the selected
2129 frame if FOR_DELETION is set.
2130 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
2131 (Fmake_frame_invisible): Change calls to do_switch_frame for new
2134 * window.c (Fset_window_configuration): Change call to
2135 do_switch_frame to new format.
2137 * keyboard.c (quit_throw_to_read_char): Change call to
2138 do_switch_frame to new format.
2140 * lisp.h (do_switch_frame): Change prototype.
2142 * frame.c (Fframe_parameters): In the `buffer-list' frame
2143 parameter, store the buffer list of FRAME, not the list of the
2146 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
2147 box just because the glyph row's full_width_p flag is set.
2149 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
2151 * xdisp.c (highlight_trailing_whitespace): On character terminals,
2152 skip the padding blanks inserted in extend_face_to_end_of_line,
2153 before checking for trailing whitespace.
2155 2001-03-13 Gerd Moellmann <gerd@gnu.org>
2157 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
2158 Remove special handling for LessTif/Motif.
2159 (toplevel): Don't include Xm/Xm.h.
2161 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
2162 Remove workaround code for LessTif; it doesn't work anymore.
2164 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
2167 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
2168 Don't access private scroll bar data; it's no longer necessary with
2169 contemporary LessTif.
2171 * xfaces.c (xm_set_menu_resources_from_menu_face):
2172 Change #if 0 to #ifndef LESSTIF_VERSION.
2174 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
2175 removing button grabs.
2177 2001-03-13 Kenichi Handa <handa@etl.go.jp>
2179 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
2180 and clip-large-size-font as obsolete.
2182 * lread.c (read_multibyte): Check the validity of multibyte
2183 sequence. If invalid, return the first byte.
2185 2001-03-12 Gerd Moellmann <gerd@gnu.org>
2187 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
2188 before running the command; timer functions or process
2189 filters may have set it.
2191 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
2193 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2196 2001-03-12 Gerd Moellmann <gerd@gnu.org>
2198 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
2201 2001-03-09 Gerd Moellmann <gerd@gnu.org>
2203 * dispextern.h (string_buffer_position): Add prototype.
2205 * xdisp.c (string_buffer_position, display_prop_string_p)
2206 (single_display_prop_string_p): New functions.
2208 * xterm.c (note_mouse_highlight): If there's no help-echo on
2209 a string, look at the buffer text ``under'' it.
2211 * keyboard.c (make_lispy_event): Add string info to the event,
2212 analogous to what's done on mode lines.
2213 (read_key_sequence): For a click on a string, consider `local-map'
2214 and `keymap' of that string.
2216 * keyboard.c (make_lispy_event, make_lispy_movement):
2217 Adjust calls to buffer_posn_from_coords to new format.
2219 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
2221 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
2224 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
2225 flags argument to emacs_open; it seems to conflict with O_EXCL.
2227 2001-03-09 Kenichi Handa <handa@etl.go.jp>
2229 * composite.h (struct composition): Change types of members;
2230 glyph_len to unsigned, width to unsigned short.
2232 2001-03-08 Andrew Innes <andrewi@gnu.org>
2234 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
2237 2001-03-08 Gerd Moellmann <gerd@gnu.org>
2239 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
2242 * xterm.c (note_mouse_highlight): Handle mouse-face and
2243 help-echo in strings.
2244 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2245 (fast_find_string_pos): New function.
2247 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
2248 (display_string): Call face_at_string_position with new parameter.
2250 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
2251 Handle `mouse-face'.
2253 * dispextern.h (face_at_string_position): Change prototype.
2255 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
2257 * keyboard.c (make_lispy_event): Avoid generating drag events
2258 if the mouse hasn't actually moved to another buffer position.
2260 2001-03-08 Dave Love <fx@gnu.org>
2262 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
2264 2001-03-08 Gerd Moellmann <gerd@gnu.org>
2266 * process.c (Fset_process_window_size): Fix a typo.
2268 2001-03-08 Kenichi Handa <handa@etl.go.jp>
2270 * coding.c (detect_coding_sjis): Do more rigid check.
2271 (detect_coding_big5): Likewise.
2272 (decode_coding_sjis_big5): Likewise.
2273 (Fdetect_coding_region): Call detect_coding_system with tailing
2274 anchor byte `\0' for more rigid detection.
2275 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
2276 (Fdetect_coding_string): Likewise.
2278 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
2280 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
2281 a string before extracting its data.
2283 2001-03-07 Gerd Moellmann <gerd@gnu.org>
2285 * window.c (Frecenter): Rewrite code handling negative values
2286 of ARG on graphical frames.
2288 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
2290 * window.c (displayed_window_lines): If W->start is outside the
2291 accessible portion of the buffer, call start_display with BEGV or
2292 ZV instead of W->start.
2294 2001-03-07 Gerd Moellmann <gerd@gnu.org>
2296 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
2298 * process.c (Fset_process_filter): Don't crash if the input
2299 file descriptor of PROCESS is closed.
2300 (Fset_process_window_size): Likewise.
2302 2001-03-06 Kenichi Handa <handa@etl.go.jp>
2304 * xterm.c (XTflash): Make the timeout of select shorter, and call
2305 select repeatedly until the desired time expires.
2307 2001-03-06 Gerd Moellmann <gerd@gnu.org>
2309 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
2311 * xfns.c (Fx_create_frame): Clear Vwindow_list.
2313 * lisp.h (Vwindow_list): Declare extern.
2315 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
2317 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
2319 2001-03-06 Gerd Moellmann <gerd@gnu.org>
2321 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
2322 to detect a case where we have to highlight a different region
2323 despite not having left the currently highlighted region.
2324 Set mouse_face_overlay in the x_display_info.
2325 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
2327 * xterm.h (struct x_display_info): Add mouse_face_overlay.
2329 * buffer.c (mouse_face_overlay_overlaps): New function.
2331 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
2332 (Qmouse_face): Declare extern.
2334 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
2335 if face_change_count is non-zero.
2337 2001-03-06 Kenichi Handa <handa@etl.go.jp>
2339 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
2340 that the source is unibyte.
2342 2001-03-05 Dave Love <fx@gnu.org>
2344 * xterm.c (XTmouse_position): Fix typo.
2346 2001-03-05 Gerd Moellmann <gerd@gnu.org>
2348 * minibuf.c (read_minibuf): Clean up the binding stack if
2349 called noninteractively.
2351 2001-03-05 Kenichi Handa <handa@etl.go.jp>
2353 * coding.c (syms_of_coding): Docstring modified.
2355 2001-03-05 Kenichi Handa <handa@etl.go.jp>
2357 * charset.c (char_to_string): If a single byte char has modifier
2358 bits that can't be reflected to the character code, ignore them
2359 instead of signaling an error.
2361 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
2363 * s/msdos.h: Update copyright notice.
2365 * dosfns.h: Update copyright notice.
2367 * dosfns.c: Update copyright notice.
2369 * msdos.c: Update copyright notice.
2371 2001-03-02 Gerd Moellmann <gerd@gnu.org>
2373 * xterm.c (glyph_rect): New function.
2374 (XTmouse_position): Use it to raise the threshold for mouse
2375 movement event generation.
2377 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2379 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
2380 specifies (reverse . t), reverse the initial screen colors.
2381 (IT_set_frame_parameters): If the property is foreground-color,
2382 but we are reversing the colors, set bg_set, not fg_set.
2383 Likewise for setting background-color and reversing: set fg_set.
2384 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
2387 * xfaces.c (Finternal_set_lisp_face_attribute)
2388 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
2391 2001-03-02 Gerd Moellmann <gerd@gnu.org>
2393 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
2394 to a single slash in the middle of file names.
2396 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
2397 Accept only alphanumeric time zone names.
2399 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
2401 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2402 a widget to zero height.
2404 2001-03-01 Gerd Moellmann <gerd@gnu.org>
2406 * window.c (Fwindow_end): Call move_it_past_eol only if
2407 ending up on a partially visible line.
2409 2001-03-01 Dave Love <fx@gnu.org>
2411 * ccl.c (Fccl_execute): Doc fix.
2413 2001-03-01 Gerd Moellmann <gerd@gnu.org>
2415 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
2416 of the tool bar before calling x_figure_window_size.
2418 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
2419 NULL after destroying it, otherwise XTread_socket can access a
2420 destroyed widget when input is unblocked.
2422 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
2424 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
2425 same name as before, although there was a change in fontsets.
2427 2001-02-28 Ken Raeburn <raeburn@gnu.org>
2429 * lisp.h (Fframe_parameter): Declare.
2431 * window.c (set_window_buffer): Field vscroll is an int, not a
2434 2001-02-28 Gerd Moellmann <gerd@gnu.org>
2436 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
2439 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
2442 * alloc.c (toplevel): Include process.h.
2443 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
2444 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
2445 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
2446 (allocate_vector, allocate_hash_table, allocate_window)
2447 (allocate_frame, allocate_process, allocate_other_vector):
2449 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
2450 (mark_maybe_pointer): New function.
2451 (mark_memory): Also mark Lisp data to which only pointers
2452 remain and not Lisp_Objects.
2453 (min_heap_address, max_heap_address): New variables.
2454 (mem_find): Return MEM_NIL if START is below min_heap_address or
2455 above max_heap_address.
2456 (mem_insert): Compute min_heap_address and max_heap_address.
2458 * process.c (make_process): Use allocate_process.
2460 * frame.c (make_frame): Use allocate_frame.
2462 * window.c (make_window, make_dummy_parent): Use allocate_window.
2463 (Fcurrent_window_configuration): Use allocate_other_vector.
2465 * lisp.h (allocate_vectorlike): Remove prototype.
2466 (allocate_vector, allocate_other_vector, allocate_frame)
2467 (allocate_window, allocate_process, allocate_hash_table):
2470 * fns.c (Fdelete, larger_vector): Use allocate_vector.
2471 (make_hash_table, copy_hash_table): Use allocate_hash_table.
2473 2001-02-27 Kenichi Handa <handa@etl.go.jp>
2475 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
2476 treat the produced bytes as a valid multibyte sequence.
2478 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
2479 (ccl_driver) <CCL_WriteMultibyteChar2>:
2480 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
2481 <ccl_finish>: Set ccl->eight_bit_control properly.
2483 * ccl.h (struct ccl_program): New member eight_bit_control.
2485 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
2487 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
2488 accessible_keymaps_char_table.
2489 (accessible_keymaps_char_table): Obey `is_metized'.
2490 (where_is_internal, Fwhere_is_internal): Don't confuse int and
2493 2001-02-26 Gerd Moellmann <gerd@gnu.org>
2495 * dispnew.c: Check HAVE_TERM_H before including term.h.
2497 2001-02-24 Andrew Innes <andrewi@gnu.org>
2499 * makefile.w32-in: Update copyright notice.
2501 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
2503 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
2505 2001-02-24 Kenichi Handa <handa@etl.go.jp>
2507 * Makefile.in (lisp): Add international/utf-8.elc.
2509 * fontset.c (Fnew_fontset): Fix handling of the case that an
2510 element of FONTLIST is a cons of family and registry.
2512 2001-02-23 Jason Rumney <jasonr@gnu.org>
2514 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
2515 to height unconditionally.
2517 * w32term.c (x_set_glyph_string_background_width): Extend the
2518 background face to the end of the drawing area in the text area, only.
2519 (x_insert_glyphs): Call window_box_left to obtain the left
2520 x-coordinate of the area to shift.
2522 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
2525 2001-02-22 Andrew Innes <andrewi@gnu.org>
2527 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
2528 ($(BLD)\dispnew.obj):
2529 ($(BLD)\editfns.obj):
2530 ($(BLD)\fileio.obj):
2531 ($(BLD)\filelock.obj):
2532 ($(BLD)\keyboard.obj):
2533 ($(BLD)\w32proc.obj):
2534 ($(BLD)\process.obj):
2535 ($(BLD)\sysdep.obj): Ditto.
2537 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
2539 ($(BLD)/dispnew.$(O)):
2540 ($(BLD)/editfns.$(O)):
2541 ($(BLD)/fileio.$(O)):
2542 ($(BLD)/filelock.$(O)):
2543 ($(BLD)/keyboard.$(O)):
2544 ($(BLD)/w32proc.$(O)):
2545 ($(BLD)/process.$(O)):
2546 ($(BLD)/sysdep.$(O)): Ditto.
2548 2001-02-22 Gerd Moellmann <gerd@gnu.org>
2550 * xdisp.c (forward_to_next_line_start): When taking the shortcut
2551 at the start of the function, check that the \n in it->c is
2552 from the iterator's current position.
2554 * xdisp.c (handle_single_display_prop): Add parameter
2555 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
2556 properties which replace the display of text with something else.
2557 (handle_display_prop): Call handle_single_display_prop with
2558 additional argument saying if we already replaced text display
2559 with something else. Use AREF.
2560 (with_echo_area_buffer_unwind_data, display_menu_bar)
2561 (decode_mode_spec_coding): Use AREF and ASIZE.
2563 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
2564 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
2565 * vmstime.h: Files removed.
2567 * unexencap.c, unexfx2800.c: Files removed.
2569 * dispnew.c (direct_output_for_insert): Give up if we are showing
2570 a message or just cleared the message because we might need to
2571 resize the echo area window or display an empty echo area.
2573 2001-02-21 Gerd Moellmann <gerd@gnu.org>
2575 * xdisp.c (redisplay_internal): Do the
2576 mark_window_display_accurate after all windows have been
2577 redisplayed because this call resets flags in buffers which are
2578 needed for proper redisplay.
2580 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
2581 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
2584 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
2585 busy_window to hourglass_window, busy_p to hourglass_p.
2587 * msdos.h (struct x_output): Rename busy_window to
2588 hourglass_window, busy_p to hourglass_p.
2590 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
2591 busy_window to hourglass_window, busy_p to hourglass_p.
2593 * xfns.c: Rename everything containing *busy_cursor* and similar
2595 (syms_of_w32fns): Rename x-busy-pointer-shape to
2596 x-hourglass-pointer-shape, display-busy-cursor to
2597 display-hourglass, busy-cursor-delay to hourglass-delay.
2599 * w32fns.c: Rename everything containing *busy_cursor* and similar
2601 (syms_of_w32fns): Rename x-busy-pointer-shape to
2602 x-hourglass-pointer-shape, display-busy-cursor to
2603 display-hourglass, busy-cursor-delay to hourglass-delay.
2605 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
2608 * dispextern.h (start_hourglass, cancel_hourglass)
2609 (display_hourglass_p): Renamed from *busy_cursor*.
2611 2001-02-20 Gerd Moellmann <gerd@gnu.org>
2613 * keyboard.c (read_char): When an event from unread-command-events
2614 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
2616 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
2617 equal to the current buffer.
2619 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
2620 nil, otherwise we're left with truncate_lines t when a message
2621 is printed with message-truncate-lines bound to t.
2623 2001-02-19 Gerd Moellmann <gerd@gnu.org>
2625 * window.c (Fmove_to_window_line): Undo last change.
2626 (displayed_window_lines): Call line_bottom_y to determine
2627 the line's bottom position.
2629 * dispextern.h (line_bottom_y): Add prototype.
2631 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
2632 (pos_visible_p): Use it.
2634 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
2635 set redisplaying_p to 0 here instead of in Frecursive_edit.
2636 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
2639 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
2641 (syms_of_xdisp): Initialize new variables.
2642 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
2643 Specbind `inhibit-menubar-update' when updating the menu bar.
2645 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
2648 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
2651 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
2654 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
2655 to the start of the file.
2657 2001-02-16 Gerd Moellmann <gerd@gnu.org>
2659 * window.c (set_window_buffer): Fix last change.
2661 * window.c (set_window_buffer): Set window's vscroll to 0.
2663 * window.c (coordinates_in_window): Increase width of area
2664 where the vertical line can be dragged.
2666 * xterm.c (x_set_glyph_string_background_width): Extend the
2667 background face to the end of the drawing area in the text
2670 * xdisp.c (handle_single_display_prop): Set iterator's position
2671 to where the `display' property starts, like for images.
2672 (dump_glyph): New function.
2673 (dump_glyph_row): Use it. Dump info about marginal areas.
2675 * dispnew.c (direct_output_for_insert): Recognize more cases where
2676 glyphs can be written instead of being inserted.
2678 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
2679 the left x-coordinate of the area to shift.
2681 * dired.c (directory_files_internal): Set result list to nil
2684 2001-02-15 Kenichi Handa <handa@etl.go.jp>
2686 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
2687 invalid multibyte sequence, treat *SRC as a character of
2690 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
2692 * textprop.c (Fset_text_properties): Doc fix.
2694 2001-02-15 Gerd Moellmann <gerd@gnu.org>
2696 * dispnew.c (update_text_area): Undo change of 2001-01-12.
2698 2001-02-14 Dave Love <fx@gnu.org>
2700 * coding.c: Doc and message fixes.
2702 2001-02-14 Andrew Innes <andrewi@gnu.org>
2704 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
2705 Emacs frame above the screen size.
2707 2001-02-14 Gerd Moellmann <gerd@gnu.org>
2709 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
2711 2001-02-13 Gerd Moellmann <gerd@gnu.org>
2713 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
2714 case that TO ends up beyond ZV after running before-change-functions.
2716 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
2717 the selected window if it is showing the buffer in question.
2719 * dired.c (directory_files_internal): Initialize errno.
2720 (toplevel): Include errno.h.
2722 2001-02-13 Kenichi Handa <handa@etl.go.jp>
2724 * xfaces.c (best_matching_font): New parameter width_ratio.
2725 Multiply avgwidth by width_ratio.
2726 (choose_face_font): Call best_matching_font with width_ratio
2727 calculated from the column width of C.
2729 2001-02-12 Andrew Innes <andrewi@gnu.org>
2731 The following changes are to draw box lines inside characters area
2732 if line-width is negative.
2734 * w32term.c (x_produce_image_glyph): Pay attention to the case that
2735 face->box_line_width is negative.
2736 (x_produce_stretch_glyph): Likewise.
2737 (x_produce_glyphs): Likewise.
2738 (x_estimate_mode_line_height): Likewise.
2739 (x_draw_glyph_string_background): Likewise.
2740 (x_draw_glyph_string_foreground): Likewise.
2741 (x_draw_composite_glyph_string_foreground): Likewise.
2742 (x_draw_glyph_string_box): Likewise.
2743 (x_draw_image_foreground): Likewise.
2744 (x_draw_image_relief): Likewise.
2745 (x_draw_image_foreground_1): Likewise.
2746 (x_draw_image_glyph_string): Likewise.
2748 2001-02-09 Kenichi Handa <handa@etl.go.jp>
2750 The following changes are to draw box lines inside characters area
2751 if line-width is negative.
2753 * xterm.c (x_produce_image_glyph): Pay attention to the case that
2754 face->box_line_width is negative.
2755 (x_produce_stretch_glyph): Likewise.
2756 (x_produce_glyphs): Likewise.
2757 (x_estimate_mode_line_height): Likewise.
2758 (x_draw_glyph_string_background): Likewise.
2759 (x_draw_glyph_string_foreground): Likewise.
2760 (x_draw_composite_glyph_string_foreground): Likewise.
2761 (x_draw_glyph_string_box): Likewise.
2762 (x_draw_image_foreground): Likewise.
2763 (x_draw_image_relief): Likewise.
2764 (x_draw_image_foreground_1): Likewise.
2765 (x_draw_image_glyph_string): Likewise.
2767 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
2768 and :line-width can be negative.
2769 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
2771 2001-02-09 Jason Rumney <jasonr@gnu.org>
2773 * w32term.c (w32_encode_char): Treat eight bit graphic and control
2774 characters the same as ASCII and latin-1.
2775 (x_display_and_set_cursor): Check for the focus frame's selected
2776 window instead of selected_window.
2777 (x_after_update_window_line): Don't clear if frame's internal
2778 border width is zero.
2779 (x_new_font): Don't change a tooltip's size.
2780 (w32_initialize): Set char_ins_del_ok to 1.
2782 * w32fns.c (Fx_show_tip): Fix calls to make_number.
2783 (x_set_font): If font hasn't changed, avoid recomputing
2784 faces and other things.
2785 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
2786 (Fx_create_frame): Add the tool bar height to the frame height.
2787 (x_create_tip_frame): Prevent changing the tooltip's
2788 background color by specifying a color for the default font
2790 (Qcancel_timer): New variable.
2791 (syms_of_w32fns): Initialize and staticpro it.
2792 (Fx_hide_tip, Fx_show_tip): Use it.
2793 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2795 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
2797 * w32.c (init_environment): Duplicate local string before putenv.
2799 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
2801 * charset.c (Fstring): A typo.
2803 2001-02-09 Kenichi Handa <handa@etl.go.jp>
2805 * charset.c (Fstring): If all arguments are less than 256, return
2808 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
2809 return a unibyte string.
2811 * coding.c (code_convert_region): After detecting a coding, if
2812 nothing found, set coding->composing to COMPOSITION_NO.
2813 (decode_coding_string): Likewise.
2815 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
2817 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
2820 2001-02-07 Kenichi Handa <handa@etl.go.jp>
2822 * charset.c (parse_str_to_multibyte): New function.
2824 * charset.h (parse_str_to_multibyte): Extern it.
2826 * print.c (print_string): If we are going to print a unibyte
2827 string into a multibyte buffer, convert the string to multibyte by
2830 2001-02-06 Andrew Innes <andrewi@gnu.org>
2832 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
2833 been created. It seems we can get sent window messages such as
2834 WM_ERASEBKGND before we properly update a frame.
2836 2001-02-06 Gerd Moellmann <gerd@gnu.org>
2838 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
2839 Avoid some unnecessary cursor positioning.
2841 2001-02-05 Gerd Moellmann <gerd@gnu.org>
2843 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
2844 (LFACE_AVGWIDTH): New macro.
2846 (check_lface_attrs): Check LFACE_AVGWIDTH.
2847 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
2848 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
2849 (merge_face_vectors): Check LFACE_AVGWIDTH.
2850 (Finternal_make_lisp_face): Use AREF.
2851 (xm_set_menu_resources_from_menu_face)
2852 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
2853 (Finternal_lisp_face_empty_p): Use AREF.
2854 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
2855 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
2856 Compare average widths..
2857 (best_matching_font): Arrange for comparing average widths.
2859 * dispextern.h (enum lface_attribute_index):
2860 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
2862 2001-02-05 Dave Love <fx@gnu.org>
2864 * puresize.h: Revert last change following loadup.el change.
2866 2001-02-05 Andrew Innes <andrewi@gnu.org>
2868 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
2869 invocation of temacs, to work with Windows 2000.
2870 (bootstrap-emacs): Ditto.
2872 2001-02-05 Gerd Moellmann <gerd@gnu.org>
2874 * xterm.c (x_display_and_set_cursor): Check for the focus
2875 frame's selected window instead of selected_window.
2877 * xdisp.c (try_scrolling): If point is in the line below the
2878 window, make sure to move the iterator at least a canonical
2881 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
2883 2001-02-05 Kenichi Handa <handa@etl.go.jp>
2885 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
2886 If invalid, execute CCL_INVALID_CMD.
2887 (ccl_driver): If the CCL program is terminated because of
2888 CCL_STAT_INVALID_CMD, copy the remaining source data to the
2889 destination instead of throwing them away.
2891 2001-02-02 Gerd Moellmann <gerd@gnu.org>
2893 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
2894 faces and other things.
2896 * xdisp.c (get_next_display_element): Fix case of empty
2897 display table entry.
2899 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
2901 * editfns.c (Fconstrain_to_field): Doc fix.
2903 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
2904 into `thoroughly', to make it consistent with the doc string.
2906 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
2908 2001-02-01 Gerd Moellmann <gerd@gnu.org>
2910 * search.c (search_buffer): Call set_search_regs with a byte
2911 position, not a character position.
2913 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
2916 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
2918 * frame.c (Fmodify_frame_parameters): Doc fix.
2920 2001-01-31 Gerd Moellmann <gerd@gnu.org>
2922 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
2923 identifier which is not reserved by Standard C.
2925 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
2927 * window.c (enum window_part): New enumeration.
2928 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
2930 (coordinates_in_window): Return an enumerator from enum
2931 window_part. Fix handling of right scroll bar.
2932 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
2933 `right-fringe' instead of `left-bitmap-area' and
2934 `right-bitmap-area'. Use enumerators from enum window_part
2935 instead of hard-coded integers.
2936 (check_window_containing, window_from_coordinates):
2937 Use enumerators from enum window_part instead of hard-coded integers.
2938 (syms_of_window): Replace Qleft_bitmap_area and
2939 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
2941 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
2943 * editfns.c (Fformat_time_string): Doc fix.
2945 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
2947 * keymap.c (Fwhere_is_internal): Use the first valid binding
2948 if no ascii binding is found (when firstonly is t).
2950 2001-01-31 Gerd Moellmann <gerd@gnu.org>
2952 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
2953 instead of Finteractive_p.
2955 * lisp.h (interactive_p): Add prototype.
2957 * eval.c (interactive_p): New function.
2958 (Finteractive_p): Use it.
2960 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
2962 2001-01-31 Dave Love <fx@gnu.org>
2964 * .gdbinit (hook-run): Define to run xreload.
2966 * textprop.c (Fset_text_properties): Fix newline in doc string.
2968 2001-01-30 Gerd Moellmann <gerd@gnu.org>
2970 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
2971 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
2973 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
2974 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
2975 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
2977 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
2980 2001-01-30 Dave Love <fx@gnu.org>
2982 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
2985 2001-01-29 Gerd Moellmann <gerd@gnu.org>
2987 * bytecode.c (Fbyte_code) <Bcurrent_column>:
2988 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
2990 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
2992 * textprop.c (Fset_text_properties): Doc fix.
2994 2001-01-29 Gerd Moellmann <gerd@gnu.org>
2996 * xdisp.c (forward_to_next_line_start): Remove xassert.
2998 2001-01-29 Jason Rumney <jasonr@gnu.org>
3000 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
3001 returning without releasing it.
3003 2001-01-29 Kenichi Handa <handa@etl.go.jp>
3005 * w32fns.c (w32_font_match): Allocate three more bytes to regex
3006 for '^', '$', and '\0'.
3008 2001-01-28 Andrew Choi <akochoi@i-cable.com>
3010 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
3011 regex for '^', '$', and '\0'.
3013 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
3014 only if current_sblock has been initialized.
3016 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
3017 terminal frame even if it is the only visible frame.
3019 2001-01-28 Kenichi Handa <handa@etl.go.jp>
3021 * fontset.c (font_family_registry): Even if FONTNAME conform to
3022 XLFD, if it specifies other fields than family and registry,
3023 return FONTANME. New argument FORCE if nonzero cancel that feature.
3024 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
3025 a signle byte character. Don't set FAMILY part to nil here.
3026 It is handled by the caller choose_face_font.
3027 (Fnew_fontset): Call font_family_registry with FORCE 0.
3028 (Fset_fontset_font): Likewise.
3030 2001-01-27 Gerd Moellmann <gerd@gnu.org>
3032 * xdisp.c (display_line): Don't treat a newline as fitting
3035 2001-01-26 Gerd Moellmann <gerd@gnu.org>
3037 * window.c (size_window): Set the window's orig_top to nil when
3038 changing heights, so that a future shrink_mini_window won't
3039 restore a bogus height.
3041 * frame.c (do_switch_frame): If selected frame has a mini-window,
3042 resize that to exact size.
3044 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
3046 * xdisp.c (display_line): Simplify check for glyphs fitting
3047 entirely in the line.
3049 * xfns.c (xic_style): New variable.
3050 (create_frame_xic): Move static variable to global scope for
3051 the case that `static' gets defined away.
3053 2001-01-26 Kenichi Handa <handa@etl.go.jp>
3055 * coding.c (decode_coding): Set a flag for inhibiting
3057 (code_convert_region): Always set saved_coding_symbol.
3058 (decode_coding_string): Likewise. Update coding->symbol when we
3059 encounter a inconsistent eol by the same way as code_convert_region.
3061 2001-01-25 Gerd Moellmann <gerd@gnu.org>
3063 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
3066 * xterm.c (x_after_update_window_line): Don't clear if frame's
3067 internal border width is zero.
3068 (x_clear_area): New function.
3069 (x_after_update_window_line, x_clear_end_of_line)
3070 (x_scroll_bar_create, x_scroll_bar_set_handle)
3071 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
3072 instead of XClearArea.
3074 * xterm.h (x_clear_area): Add prototype.
3076 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
3077 which doesn't seem necessary anymore with Lesstif 0.92.
3079 2001-01-25 Dave Love <fx@gnu.org>
3081 * puresize.h (BASE_PURESIZE): Up to 720000.
3083 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
3085 2001-01-25 Gerd Moellmann <gerd@gnu.org>
3087 * xdisp.c (echo_area_display): Don't call redisplay_internal
3088 when Emacs is shutting down. We can't run hooks etc. that
3089 would be necessary to do a redisplay.
3091 * lread.c (read_integer): Use type EMACS_INT instead of int.
3093 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
3095 * ccl.c (ccl_driver): Fix last change.
3097 2001-01-25 Kenichi Handa <handa@etl.go.jp>
3099 * ccl.h (sturct ccl_program): New member suppress_error.
3101 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
3102 insert error message to the output.
3103 (setup_ccl_program): Initialize ccl->suppress_error to 0.
3105 * coding.h (struct coding_system): New member suppress_error.
3107 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
3108 (Fset_terminal_coding_system_internal): Set the member
3109 suppress_error to 1.
3110 (Fset_safe_terminal_coding_system_internal): Likewise.
3112 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
3114 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
3115 as if it was a `charset'.
3117 2001-01-24 Gerd Moellmann <gerd@gnu.org>
3119 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
3120 value in where_is_cache; the next lookup in the cache returns
3121 something bogus if we do.
3123 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
3125 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
3126 if HAVE_WINDOW_SYSTEM isn't defined.
3128 2001-01-24 Gerd Moellmann <gerd@gnu.org>
3130 * fns.c (sweep_weak_table): Fix code taking items out of
3131 the hash collision chain. Some cleanup.
3133 * xterm.c (x_new_font): Don't change a tooltip's size.
3135 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
3136 background color by specifying a color for the default font
3139 2001-01-24 Kenichi Handa <handa@etl.go.jp>
3141 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
3142 a workaround for SunOS 4's cc.
3143 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
3144 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
3145 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
3148 2001-01-23 Gerd Moellmann <gerd@gnu.org>
3150 * xterm.c (x_set_window_size_1): New function extracted from
3152 (x_set_window_size): Use it.
3153 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
3154 doesn't have a widget, like tooltips.
3156 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
3158 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3160 2001-01-23 Kenichi Handa <handa@etl.go.jp>
3162 * fns.c (Fset_char_table_default): Fix to make sub char-table
3165 2001-01-22 Gerd Moellmann <gerd@gnu.org>
3167 * xdisp.c (build_desired_tool_bar_string): Make sure we have
3168 a desired tool bar string, even if there are no tool bar items.
3170 * xdisp.c (Ftool_bar_lines_needed): New function.
3171 (syms_of_xdisp): Defsubr it.
3173 * editfns.c (Fformat): Don't extend text properties from arguments
3174 to padding chars in the result.
3176 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
3178 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
3180 2001-01-20 Andrew Innes <andrewi@gnu.org>
3182 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
3183 (w32_initialize): Don't set term hooks that aren't actually needed
3186 * xfaces.c (realize_default_face):
3188 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
3190 * xdisp.c (handle_single_display_prop): Remove references to
3191 FRAME_W32_CONSOLE_P.
3193 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
3195 * frame.h (output_method): Remove output_w32_console method.
3196 (FRAME_W32_CONSOLE_P): Remove macro.
3198 * frame.c (Qw32_console): Remove variable.
3199 (Fframep): Remove references to it.
3200 (syms_of_frame): Ditto.
3201 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
3203 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
3206 2001-01-20 Kenichi Handa <handa@etl.go.jp>
3208 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
3210 2001-01-19 Andrew Innes <andrewi@gnu.org>
3212 * w32.c (init_environment): Add a version-independent site-lisp
3213 directory to EMACSLOADPATH, after the version dependent one.
3215 2001-01-19 Gerd Moellmann <gerd@gnu.org>
3217 * editfns.c (Fbuffer_substring): Doc fix.
3219 * xdisp.c (message_dolog, message2, message2_nolog):
3220 Rename parameter LEN to NBYTES.
3222 2001-01-19 Kenichi Handa <handa@etl.go.jp>
3224 * charset.c (strwidth): Use c_string_width.
3225 (c_string_width): New function.
3226 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
3229 * charset.h (c_string_width, lisp_string_width): Extern them.
3231 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
3233 * indent.c (check_composition): Check validity of composition.
3235 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
3236 characters by calling c_string_width.
3237 (x_consider_frame_title): Get byte length of frame tile string
3239 (display_mode_element): Pay attention to width of non-ASCII
3240 characters by calling strwidth.
3242 2001-01-18 Gerd Moellmann <gerd@gnu.org>
3244 * xfns.c (Qcancel_timer): New variable.
3245 (syms_of_xfns): Initialize and staticpro it.
3246 (Fx_hide_tip, Fx_show_tip): Use it.
3247 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
3249 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
3251 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
3253 * window.h (WINDOW_LIVE_P): New macro.
3255 * window.c (window_size_fixed): New variable.
3256 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
3259 * eval.c (specbind): If binding a per-buffer variable which
3260 doesn't have a buffer-local value in the current buffer, change
3261 the global value by changing the value of the symbol bound in all
3262 buffers not having their own value, to make it consistent with
3263 what happens with other buffer-local variables.
3265 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
3267 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
3268 when searching for a newline.
3270 2001-01-18 Kenichi Handa <handa@etl.go.jp>
3272 * xdisp.c (display_string): Fix previous change.
3274 2001-01-18 Jason Rumney <jasonr@gnu.org>
3276 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
3277 GLYPH_DEBUG is defined.
3278 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
3279 true for images with `:ascent 100'.
3280 (x_set_mouse_face_gc): If the last used mouse face has gone in the
3281 meantime, use face MOUSE_FACE_ID.
3282 If first glyph isn't a character glyph, use the ASCII NUL
3283 character to determine the face.
3284 (expose_area): Do not treat left margin specially.
3285 (note_mode_line_highlight): If no local_map, check global keymap.
3286 (note_mouse_highlight): Initialize overlay.
3287 (clear_mouse_face): Don't return if tip_frame is non-nil.
3288 (show_scroll_bars): Remove unused function.
3289 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
3290 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
3292 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
3293 (x_free_frame_resources): Unload relief colors.
3295 2001-01-17 Gerd Moellmann <gerd@gnu.org>
3297 * xdisp.c (forward_to_next_line_start): Avoid calling
3298 get_next_display_element when the newline is already found.
3299 This may change the iterator's position, when its current position is
3300 equal to the iterator's stop_charpos.
3302 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
3303 zero, use this method only at the end of a line.
3305 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
3306 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
3307 if SCALABLE_FONTS_P is set.
3309 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
3310 so that scalable fonts are included.
3312 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
3313 In the cache, use a key containing the information if scalable
3315 (x_load_font): Adapt to change of keys in the font cache.
3317 2001-01-17 Kim F. Storm <storm@filanet.dk>
3319 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
3320 XListFonts to take advantage of font caching.
3322 * xterm.c (x_list_fonts): Ensure caching font information when
3323 called for a null frame, which is the case frequently when Emacs
3326 2001-01-17 Gerd Moellmann <gerd@gnu.org>
3328 * xfns.c (QCconversion): Replaces QCalgorithm.
3330 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
3332 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
3335 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
3336 not everything could be displayed.
3338 * line.h, x-list-font.c: Files removed because unused.
3340 2001-01-17 Andrew Innes <andrewi@gnu.org>
3342 * dired.c (directory_files_internal): Convert result from readdir
3343 to a unibyte string initially, to avoid possible misinterpretation
3344 of some bytes as the internal form of Emacs characters.
3346 2001-01-17 Kenichi Handa <handa@etl.go.jp>
3348 * fns.c (concat): Be sure to avoid putting the same `composition'
3349 property on the adjacent regions.
3351 2001-01-16 Gerd Moellmann <gerd@gnu.org>
3353 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
3354 (Fscroll_right, Fscroll_left): Set it here instead, if called
3357 * buffer.c (Fset_buffer_modified_p): Set buffer's
3358 prevent_redisplay_optimizations_p flag.
3360 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
3361 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
3362 with additional arg.
3364 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
3367 * xdisp.c (redisplay_preserve_echo_area): Add parameter
3368 FROM_WHERE, for debugging.
3370 2001-01-16 Kenichi Handa <handa@etl.go.jp>
3372 * ccl.c (Fregister_ccl_program): Handle the return value of
3373 resolve_symbol_ccl_program correctly.
3374 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
3376 2001-01-15 Gerd Moellmann <gerd@gnu.org>
3378 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
3379 has gone in the meantime, use face MOUSE_FACE_ID.
3381 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
3382 If x_display_info_for_display returns null, don't try to close
3383 the display; we didn't open it.
3385 * dispnew.c (save_or_restore_current_matrices): Function removed.
3386 (save_current_matrix, restore_current_matrix): New functions.
3387 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
3388 restore the frame's current matrix. Due to the glyph pointer
3389 setup done in adjust_glyph_matrix, there is no easy way to make
3390 saving the current matrix in the desired matrix generally correct,
3393 2001-01-15 Kenichi Handa <handa@etl.go.jp>
3395 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
3397 (display_line): Optimize for wide characters.
3398 (display_string): Don't try to display a multi-column character
3399 partially. On ttys, produce more than one truncation glyph for
3400 multi-column characters that don't fit on the line.
3402 2001-01-13 Kenichi Handa <handa@etl.go.jp>
3404 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
3405 Define it instead of WORDS_BIGENDIAN. Caller changed.
3407 2001-01-13 Jason Rumney <jasonr@gnu.org>
3409 * w32fns.c (Fimage_size, image_ascent, lookup_image)
3410 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
3411 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3412 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
3414 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
3415 (x_draw_image_relief, x_draw_image_foreground_1)
3416 (x_draw_image_glyph_string): Adapt to change of image margins.
3418 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
3421 * w32bdf.c (search_file_line, get_cached_font_char)
3422 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
3424 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
3426 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
3427 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
3428 (Fw32_send_sys_command): Remove unused variables.
3429 (w32_msg_pump): Add parentheses.
3431 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
3432 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
3435 2001-01-12 Gerd Moellmann <gerd@gnu.org>
3437 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
3438 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
3439 being a pair of margins.
3440 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
3441 to DEFVAR_LISP. Extend doc.
3443 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
3445 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
3446 pair of integers `(X . Y)', use X for the horizontal and Y for the
3448 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
3449 (parse_image_spec): Check it.
3450 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3451 (tiff_format, gif_format, gs_format):
3452 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
3454 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
3455 (x_draw_image_relief, x_draw_image_foreground_1)
3456 (x_draw_image_glyph_string): Adapt to the change of image margins.
3458 * dispextern.h (struct image): Replace member `margin' with
3459 `hmargin' and `vmargin'.
3461 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
3464 * dispnew.c (update_text_area): Put code which decrements the
3465 stop position when the row's face extends to the end of the
3468 * xfns.c (x_set_mouse_color): Fix color allocation.
3470 * keyboard.c: Call get_local_map with new argument list.
3472 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
3474 * intervals.h (enum map_property): Removed.
3475 (get_local_map): Change prototype.
3477 * keymap.c: Call get_local_map with new argument list.
3478 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
3480 2001-01-11 Gerd Moellmann <gerd@gnu.org>
3482 * xdisp.c (build_desired_tool_bar_string): Correct the computation
3483 of the size needed for the tool bar string. For the last image,
3484 use a `display' property that reaches to the end of the string.
3486 * xselect.c (selection_request_dpyinfo): New variable.
3487 (x_handle_selection_request): Set it.
3488 (x_selection_request_lisp_error): Don't call
3489 x_decline_selection_request if selection request's display has
3492 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
3493 Do the unregister_colors before calling XFreeColors.
3495 2001-01-10 Dave Love <fx@gnu.org>
3497 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
3498 ${SOME_MACHINE_LISP}, not ${lisp}.
3500 2001-01-10 Gerd Moellmann <gerd@gnu.org>
3502 * xdisp.c (display_line): On ttys, produce more than one truncation
3503 glyph for multi-column characters that don't fit on the line.
3505 * xselect.c (x_reply_selection_request): Add a comment.
3507 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
3508 XkbGetNames instead of XkbGetKeyboard.
3510 2001-01-10 Dave Love <fx@gnu.org>
3512 * sysdep.c (random): Revert the declaration.
3514 2001-01-09 Gerd Moellmann <gerd@gnu.org>
3516 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
3517 Call function string_bytes.
3518 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
3520 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
3521 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
3522 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
3523 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
3525 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
3526 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
3527 after sweeping strings, and at the end.
3528 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
3530 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
3531 ensure that pop_message is called.
3533 * keyboard.c (Fexecute_extended_command): Use a
3534 record_unwind_protect to ensure that pop_message is called.
3536 * lisp.h (push_message_unwind): Add prototype.
3538 * xdisp.c (push_message_unwind): New function.
3540 * fileio.c (do_auto_save_unwind): Do the pop_message here
3541 instead of in Fdo_auto_save.
3542 (Fdo_auto_save): Don't call pop_message.
3544 2001-01-08 Ken Raeburn <raeburn@gnu.org>
3546 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
3549 2001-01-08 Gerd Moellmann <gerd@gnu.org>
3551 * window.c (window_scroll_pixel_based): Adjust glyph matrices
3552 when increasing window's vscroll.
3554 * macros.c (Qkbd_macro_termination_hook): New variable.
3555 (syms_of_macros): Initialize and staticpro it.
3556 (pop_kbd_macro): Run kbd-macro-termination-hook.
3558 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
3560 2001-01-07 Dave Love <fx@gnu.org>
3562 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
3563 arglist, for documentation's sake.
3565 2001-01-06 Andrew Innes <andrewi@gnu.org>
3567 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
3570 2001-01-05 Andrew Innes <andrewi@gnu.org>
3572 * term.c (update_end): Don't check updating_frame; for some reason
3573 this can be 0 sometimes, such as after dismissing a popup menu,
3574 and isn't necessary given the explicit frame argument.
3576 2001-01-05 Gerd Moellmann <gerd@gnu.org>
3578 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
3579 on some systems, and an unsigned long on others, like FreeBSD 4.1.
3581 2001-01-04 Gerd Moellmann <gerd@gnu.org>
3583 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
3585 * xfns.c (x_create_tip_frame): Preserve the value of
3586 face_change_count around the creation of the tip frame.
3588 * xfns.c (last_show_tip_args): New variable.
3589 (compute_tip_xy): New function.
3590 (Fx_show_tip): Reuse an existing tip frame, if possible.
3591 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
3593 2001-01-04 Dave Love <fx@gnu.org>
3595 * editfns.c (Fformat): Doc fix.
3597 * systime.h (set_file_times): Prototype.
3599 * widget.h (EmacsFrameSetCharSize_): Prototype.
3601 * sysdep.c (random, srandom): Declare explicitly.
3603 * dispextern.h (move_it_vertically_backward): Declare.
3605 2001-01-04 Gerd Moellmann <gerd@gnu.org>
3607 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
3608 like in Fx_create_frame.
3610 * xfaces.c (set_font_frame_param): Don't do anything for
3611 non-graphical frames.
3613 * window.c (Fdelete_other_windows): Set window's window_end_valid
3614 to nil when changing the window's start. Don't change the
3615 window's start when its top position hasn't changed. If we do,
3616 this will set the window's optional_new_start, which act's like a
3617 force_start during redisplay with C-x 1 M-> under particular
3618 circumstances (see report from Per Starback to emacs-pretest-bug
3621 2001-01-03 Gerd Moellmann <gerd@gnu.org>
3623 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
3624 short cut at the start of the function. Add an assertion.
3625 (reseat_at_next_visible_line_start): Add an assertion.
3627 * window.c (Frecenter): When changing the window start, set the
3628 window's window_end_valid to nil.
3629 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
3631 * dispextern.h (move_it_past_eol): Add prototype.
3633 * xdisp.c (move_it_past_eol): New function.
3635 * window.c (Fwindow_end): Doc fix.
3637 2001-01-03 Dave Love <fx@gnu.org>
3639 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3641 2001-01-03 Gerd Moellmann <gerd@gnu.org>
3643 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
3644 the enabled_p flag of the glyph row at window_end_vpos to 0.
3645 (handle_single_display_prop): Fix last change.
3647 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3649 * window.c (Frecenter): Doc fix.
3651 2001-01-02 Andrew Innes <andrewi@gnu.org>
3653 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
3655 * frame.h (output_method): Add output_w32_console method.
3656 (FRAME_W32_CONSOLE_P): New macro.
3658 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
3659 use output_w32_console method.
3660 (Qw32_console): New Lisp_Object.
3661 (Fframep): Return it.
3662 (syms_of_frame): Init it.
3663 (Fframe_parameters): Report w32console as font for w32_console frames.
3665 * xfaces.c (realize_default_face): Set face foreground and
3666 background to unspecified for w32_console frames.
3667 (realize_face): Realize face cache for w32_console frames.
3668 (realize_tty_face): Accept w32_console frames.
3670 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
3671 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
3672 necessary, even if running interactively.
3674 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
3677 * w32term.c (x_update_begin):
3681 (x_change_line_highlight):
3686 (w32_reassert_line_highlight):
3687 (w32_frame_rehighlight):
3688 (w32_frame_raise_lower): Do nothing if not w32 frame.
3690 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
3692 * w32fns.c (Fx_display_color_cells): Determine correct value, when
3693 system doesn't tell us directly.
3694 (Fx_display_visual_class): Implement properly.
3696 2001-01-02 Gerd Moellmann <gerd@gnu.org>
3698 * window.c (Frecenter): Handle centering in graphical frames
3699 specially. Centering on the basis of line counts doesn't work
3700 reliably with variable-height lines.
3702 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3704 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
3707 * composite.c (run_composition_function): Remove unused var `val'.
3708 (update_compositions): Remove unused variable `hook'.
3710 * intervals.c (get_local_map): Remove unused variable `tem'.
3712 * doprnt.c (doprnt1): Remove unused variable `size'.
3714 * fns.c (Flength): Remove unused variable `tail'.
3715 (Fdelete): Remove unused variable `size'.
3717 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
3720 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
3722 * data.c (find_symbol_value): Remove extra 3rd argument in the
3723 call to swap_in_symval_forwarding.
3725 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
3727 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
3728 (trivial_regexp_p): Remove unused variable `c'.
3729 (boyer_moore): Remove unused variable `k'.
3731 * indent.c (current_column): Remove unused variable `stopchar'.
3732 (Fcompute_motion): Remove unused variable `contin'.
3734 * casefiddle.c (casify_object): Remove unused variable `tolen'.
3736 * dired.c (directory_files_internal): Fix a typo in a comment.
3737 Remove an unused variable `handler'.
3738 (file_name_completion): Remove unused function-scope variable `dp'.
3739 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
3742 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
3744 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
3746 (Fmarker_insertion_type): Remove unused variable `buf'.
3748 * insdel.c (make_gap): Remove unused variable `result'.
3750 * keyboard.c (record_char): Remove unused function-scope var `help'.
3751 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
3752 (menu_bar_items): Remove unused function-scope variable `tem'.
3754 * fontset.c (fontset_ref): Remove unused variable `i'.
3755 (fontset_set): Remove unused variables `j' and `tmp'.
3756 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
3757 (make_fontset_for_ascii_face): Remove unused variable `name'.
3758 (fs_load_font): Remove unused variable `font_idx'.
3759 (fs_query_fontset): Remove unused function-local variable `fontset'.
3760 (list_fontsets): Remove unused variable `tail'.
3761 (Fnew_fontset): Remove unused variables `family' and `registry'.
3762 (accumulate_font_info): Remove unused variable `tmp'.
3763 (Ffontset_font): Remove unused variable `id'.
3764 (syms_of_fontset): Remove unused variable `i'.
3766 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
3768 (lookup_image): Remove unused variable `file'.
3769 (xbm_load): Remove unused variables `bitmap_data', `height', and
3770 `width'. Remove function-local variable `i', leave the
3772 (gif_load): Remove unused variable `inc'.
3774 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
3775 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
3776 leave only the one in the inner block.
3778 * xfaces.c (face_fontset, realize_default_face): Remove unused
3780 (face_at_buffer_position): Remove unused variable `multibyte_p'.
3782 * term.c (encode_terminal_code): Remove unused variable `c'.
3784 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
3785 char *' instead of `char *'.
3787 * category.c (Fcategory_docstring): Remove unused variable `doc'.
3788 (Fget_unused_category): Remove unused variable `docstring_vector'.
3789 (Fchar_category_set): Remove unused variables `val', `charset',
3792 * coding.c (detect_coding_iso2022, setup_coding_system):
3793 Remove unused variable `i'.
3794 (detect_coding_mask): Remove unused variable `idx'.
3795 (detect_coding): Remove unused variable `i'.
3796 (ccl_coding_driver): Remove unused variable `result'.
3797 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
3798 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
3799 (encode_coding_string): Remove unused variables `gcpro1' and
3800 `saved_coding_symbol'.
3801 (Ffind_coding_systems_region_internal): Remove function-local
3802 variable args[], leave only the block-local one.
3803 (code_convert_region1): Remove unused variable `len'.
3805 * charset.c (char_printable_p): Remove unused variable `chars'.
3806 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
3807 (str_to_multibyte): Remove unused variable `c'.
3809 * window.c (size_window): Remove block-local variable `min_size'.
3811 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
3812 `header_line_height'.
3813 (append_space, extend_face_to_end_of_line): Declare `saved_what'
3814 enum display_element_type.
3816 2001-01-02 Gerd Moellmann <gerd@gnu.org>
3818 * xterm.c (x_connection_closed): Catch X errors around all
3819 statements that call X. Save away the error message in a local copy.
3821 * xterm.c (x_connection_closed): Set handling_signal to 0 at
3824 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
3825 in or at the start of invisible text.
3827 * dispnew.c (update_window): Don't check_current_matrix_flags.
3829 2001-01-01 Jason Rumney <jasonr@gnu.org>
3831 * w32fns.c (x_figure_window_size): Do not allow new_height and
3832 new_width of frame to override specified values.
3834 2000-12-30 Kenichi Handa <handa@etl.go.jp>
3836 * composite.c (find_composition): Fix a code for searching backward.
3838 2000-12-29 Gerd Moellmann <gerd@gnu.org>
3840 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
3841 (update_window) [GLYPH_DEBUG]: Call it.
3842 (scrolling_window): Prevent including current rows which are below
3843 what's displayed in the window.
3845 * xdisp.c (try_window_reusing_current_matrix)
3846 <new start <= old start>: Disable rows in the current matrix
3847 which are below the window after scrolling.
3849 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
3850 is zero. It's not worth the complexity.
3851 (invisible_text_between_p): Put in #if 0 because unused.
3853 2000-12-28 Gerd Moellmann <gerd@gnu.org>
3855 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
3856 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
3858 * keyboard.c (echo_char): If C is an integer, always call
3859 push_key_description. Former code could signal an invalid
3862 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
3863 If set, print multibyte text.
3864 (Fsingle_key_description): Call push_key_description with
3865 FORCE_MULTIBYTE set.
3866 (describe_buffer_bindings): Likewise.
3868 * lisp.h (push_key_description): Add prototype.
3870 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
3871 around the call to redisplay_internal.
3873 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
3875 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
3877 2000-12-28 Kenichi Handa <handa@etl.go.jp>
3879 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
3880 (ccl_driver): New local variable `extra_bytes'.
3882 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
3884 * coding.c (setup_coding_system):
3885 Initialize coding->spec.ccl.eight_bit_carryover.
3886 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
3888 2000-12-28 Kenichi Handa <handa@etl.go.jp>
3890 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
3891 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
3892 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
3893 (decode_composition_emacs_mule): New function.
3894 (decode_coding_emacs_mule): Decode composition sequence by calling
3895 decode_composition_emacs_mule.
3896 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
3897 (encode_coding_emacs_mule): Changed from macro to function.
3898 If a text contains compositions, encode them correctly.
3899 (setup_coding_system): Set coding->commong_flags for emacs-mule so
3900 that decoding and encoding are required.
3902 2000-12-27 Gerd Moellmann <gerd@gnu.org>
3904 * xfaces.c (PT_PER_INCH): New macro.
3905 (xlfd_point_size): Compute real point size from font's pixel size.
3906 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
3909 * .gdbinit: Comment out the line pointing to the Lesstif source
3912 * window.c (Frecenter): Use displayed_window_lines instead
3913 of window_internal_height.
3915 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3916 instead of x-toolkit-scroll-bars-p.
3917 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
3919 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3920 instead of x-toolkit-scroll-bars-p.
3921 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
3923 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
3924 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
3925 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
3927 (add_window_display_history, add_frame_display_history)
3928 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
3929 (build_frame_matrix_from_leaf_window): Remove unused code.
3930 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
3932 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
3933 (update_window) [GLYPH_DEBUG]: Likewise.
3934 (syms_of_display): Defsubr dump-redisplay-history.
3936 2000-12-23 Gerd Moellmann <gerd@gnu.org>
3938 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
3939 the end of the prompt. Set echo_after_prompt to the offset
3940 of echoptr in echobuf.
3942 * xdisp.c (init_from_display_pos): Pop until the iterator's
3943 stack is empty; there may be frames for stretch or images
3946 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
3947 (save_or_restore_current_matrix): New function for the same
3948 purpose, but more efficient.
3949 (adjust_frame_glyphs_for_frame_redisplay): Use it.
3951 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
3953 * xdisp.c (syms_of_xdisp): Fix last change.
3955 2000-12-23 Gerd Moellmann <gerd@gnu.org>
3957 * xdisp.c (syms_of_xdisp): Doc fix.
3959 * xdisp.c (redisplay_window): Remove label restore_buffers;
3960 use finish_scroll_bars instead to make sure that scroll bars
3961 are redeemed. If we don't do this, flickering can result from
3962 scroll bars being destroyed and recreated.
3964 2000-12-22 Jason Rumney <jasonr@gnu.org>
3966 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
3967 in the wrong colors when the foreground is not black.
3968 (expose_window): Don't redraw the window that's currently being
3971 2000-12-22 Gerd Moellmann <gerd@gnu.org>
3973 * window.c (size_window): When setting the window's too_small_ok
3974 flag, compare old size with minimum size depending on WIDTH_P,
3975 don't compare with window_min_width.
3977 * window.c (delete_window): Simplify somewhat.
3978 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
3979 freeing window matrices. The flag windows_or_buffers_changed is
3980 set, so the next redisplay will consider all windows; this should
3983 2000-12-22 Kenichi Handa <handa@etl.go.jp>
3985 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
3987 * ccl.h (struct ccl_program): New member cr_consumed.
3989 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
3990 (CCL_READ_CHAR): Handle EOL conversion here.
3991 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
3993 2000-12-21 Gerd Moellmann <gerd@gnu.org>
3995 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
3997 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
3998 otherwise tabs of different size compare equal.
4000 * callint.c (Fcall_interactively): Prevent a compiler warning.
4002 * print.c (print_unwind): Return nil.
4003 (PRINTDECLARE): Initialize all local variables.
4004 (print_preprocess): Add a default case.
4006 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
4008 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
4010 * window.c (delete_window, Fsplit_window)
4011 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
4013 * dispextern.h (ensure_frame_matrix): Function declaration removed.
4015 * dispnew.c (ensure_frame_matrix): Removed.
4016 (save_frame_matrix, restore_frame_matrix): New functions.
4017 (adjust_frame_glyphs_for_frame_redisplay): Use them.
4019 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
4020 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
4022 2000-12-21 Andrew Innes <andrewi@gnu.org>
4024 * w32term.c (x_update_begin): Regenerate the palette here, rather
4025 than for each window.
4027 * w32xfns.c (select_palette): Avoid calling SelectPalette if
4028 palette is NULL, since this corrupts memory! Also get
4029 display_info reference from frame.
4031 2000-12-21 Jason Rumney <jasonr@gnu.org>
4033 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
4035 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
4036 to avoid returning without releasing it.
4038 2000-12-21 Kenichi Handa <handa@etl.go.jp>
4040 * keymap.c (push_key_description): Don't convert eight-bit-control
4041 and eight-bit-graphic to multibyte character.
4043 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
4044 generic character and CODE1 is nil, return the smallest character
4047 2000-12-20 Dave Love <fx@gnu.org>
4049 * s/osf5-0.h (NSIG): Don't redefine.
4051 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
4053 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
4054 excluding menu-bar and tool-bar.
4055 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
4056 (menu_item_p): Remove.
4057 (where_is_internal_1): Don't ignore menu-items.
4059 2000-12-20 Gerd Moellmann <gerd@gnu.org>
4061 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
4064 * window.c (make_window): Initialize window's min_hscroll.
4065 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
4066 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
4068 (struct saved_window): New member min_hscroll.
4069 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
4070 (Fset_window_configuration): Set window's min_hscroll.
4071 (save_window_save): Save window's min_hscroll.
4072 (compare_window_configurations): Compare min_hscroll values.
4074 * window.h (struct window): New member min_hscroll.
4076 * keyboard.c (echo_prompt): Prevent a compiler warning.
4078 * xdisp.c (try_cursor_movement): Fix last change. The real
4079 condition is that PT is at the end of the row, and should
4080 be displayed at the start of the next row.
4082 * xdisp.c (try_cursor_movement): If we end on a partially
4083 visible line, end we already decided to scroll, return -1.
4085 * dispextern.h (ensure_frame_matrix): Add prototype.
4087 * window.c (delete_window, Fsplit_window)
4088 (Fset_window_configuration): Call ensure_frame_matrix.
4090 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
4092 (adjust_frame_glyphs_for_frame_redisplay): If display has been
4093 completed, call fake_current_matrices instead of marking frame
4096 2000-12-20 Jason Rumney <jasonr@gnu.org>
4098 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
4100 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
4102 * fns.c (Frequire): Doc fix.
4104 2000-12-19 Gerd Moellmann <gerd@gnu.org>
4106 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
4108 * dispnew.c (direct_output_for_insert): Fix check for mini-window
4109 currently displaying a message.
4111 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
4113 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
4115 2000-12-18 Andrew Innes <andrewi@gnu.org>
4117 * w32.c (w32_strerror): New function.
4119 * w32.h (w32_strerror): New extern.
4121 * w32fns.c (Fw32_shell_execute): Use it.
4123 2000-12-18 Gerd Moellmann <gerd@gnu.org>
4125 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
4127 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4129 * msdos.c (IT_set_face): Obey inverse_video.
4131 2000-12-18 Kenichi Handa <handa@etl.go.jp>
4133 * dired.c (directory_files_internal): Always return decoded filenames.
4135 2000-12-18 Gerd Moellmann <gerd@gnu.org>
4137 * xterm.c (x_connection_closed): Prevent being called recursively
4138 because of an error condition in XtCloseDisplay.
4140 * xdisp.c (init_iterator): If noninteractive, and the frame's
4141 face cache is null, make one.
4143 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
4145 * process.c (wait_reading_process_input): Check for pending
4146 input when running timers.
4148 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4150 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
4152 2000-12-18 Kenichi Handa <handa@etl.go.jp>
4154 * process.c (read_process_output): Don't run a filter if the code
4155 decoder produces nothing but carryover.
4157 2000-12-17 Andrew Innes <andrewi@gnu.org>
4159 * w32.c (sys_rename): Only check errno against EEXIST, and not
4160 EACCES, when determining whether rename failed because the target
4161 exists. This was resulting in indefinite looping on Windows 9x if
4162 the source file was locked by another process.
4164 * w32fns.c (Ffile_system_info): New function.
4165 (syms_of_w32fns): Defsubr it.
4167 2000-12-17 Gerd Moellmann <gerd@gnu.org>
4169 * window.c (coordinates_in_window): Fix computation for
4170 position on vertical line between mode lines.
4172 * xfns.c (unwind_create_frame): Return t if frame was deleted.
4173 Don't alter tip_frame or tip_window.
4174 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4177 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
4178 Don't alter tip_frame or tip_window.
4179 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4182 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
4184 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
4185 be consistent with the doc string. Reported by NAKAJIMA Mikio
4186 <minakaji@osaka.email.ne.jp>.
4188 2000-12-16 Kenichi Handa <handa@etl.go.jp>
4190 * xfaces.c (Vface_ignored_fonts): New variable.
4191 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
4192 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
4194 2000-12-15 Gerd Moellmann <gerd@gnu.org>
4196 * dispnew.c (update_window): Detect pending input every nth line
4197 updated, i.e. do it depending on real work done, and not on the
4200 * xterm.c (expose_window): Don't redraw the window that's
4201 currently being updated.
4203 * window.c (Fset_window_point): Remove test for
4204 cursor_in_non_selected_windows.
4206 * lread.c (read1): Recognize end of file after `\\'.
4208 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
4209 not unwind_create_frame.
4211 2000-12-15 Dave Love <fx@gnu.org>
4213 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
4216 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
4218 2000-12-15 Kenichi Handa <handa@etl.go.jp>
4220 * coding.c (setup_coding_system): Clear all members of the struct
4221 coding_system at first.
4222 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
4224 (code_convert_region): Don't override coding->src_multibyte and
4225 coding->dst_multibyte.
4227 * fns.c (Fmd5): Docstring improved.
4229 2000-12-15 Miles Bader <miles@gnu.org>
4231 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
4232 are actually marked as mode-lines; otherwise use
4233 estimate_mode_line_height.
4235 2000-12-14 Gerd Moellmann <gerd@gnu.org>
4237 * editfns.c (Fformat): Prevent a buffer overrun when the format
4238 specifies a precision.
4240 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
4242 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
4243 argument is outside the range [2..3].
4245 2000-12-14 Andrew Innes <andrewi@gnu.org>
4247 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
4248 nothing to do. Bind inhibit-quit.
4249 (tip_frame): Make it a Lisp_Object.
4250 (x_create_tip_frame): Set tip_frame after it has been added to
4252 (Fx_show_tip): Don't set tip_frame here.
4253 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
4254 (unwind_create_frame, unwind_create_tip_frame): New functions.
4255 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
4256 while a frame is only partially constructed.
4258 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
4259 (x_free_frame_resources): New function.
4260 (x_destroy_window): Use it.
4262 2000-12-14 Gerd Moellmann <gerd@gnu.org>
4264 * xfns.c (Fx_backspace_delete_keys_p): New function.
4265 (syms_of_xfns): Defsubr it.
4267 * config.in (HAVE_XKBGETKEYBOARD): Add.
4269 2000-12-14 Kenichi Handa <handa@etl.go.jp>
4271 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
4272 Always store string in multibyte representation in echobuf.
4273 (echo_char): Always store string in multibyte representation in
4275 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
4276 (read_key_sequence): Adjusted for the change of echo_prompt.
4278 * fns.c (Fmd5): Docstring improved.
4280 * lisp.h (detect_coding_system): Prototype adjusted.
4282 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
4283 (detect_coding_emacs_mule, detect_coding_iso2022,)
4284 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
4285 (detect_coding_utf_16, detect_coding_ccl): Make them static.
4286 New argument MULTIBYTEP. Callers changed.
4287 (detect_coding_mask, detect_coding_system): New argument
4288 MULTIBYTEP. Callers changed.
4289 (decode_coding_string): Set coding->src_multibyte and
4290 coding->dst_multibyte before calling detect_coding and detect_eol.
4291 Update them after some coding system is detected.
4293 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
4295 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
4297 * keyboard.c (menu_bar_items, tool_bar_items):
4298 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
4300 2000-12-13 Gerd Moellmann <gerd@gnu.org>
4302 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
4304 (unwind_create_frame, unwind_create_tip_frame): New functions.
4305 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
4306 while a frame is only partially constructed.
4308 * xterm.h (x_free_frame_resources): Declare.
4310 * xterm.c (x_free_frame_resources): New function.
4311 (x_destroy_window): Use it.
4313 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
4314 don't interrupt the update for pending input initially, i.e.
4315 update at least some lines.
4317 * keyboard.c (do_mouse_tracking): Make externally visible.
4319 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
4321 * xfns.c (gray_bitmap_bits): Declare `char *'.
4323 2000-12-12 Gerd Moellmann <gerd@gnu.org>
4325 * xdisp.c (display_tool_bar_line): Make sure that tool bar
4326 lines start with a relief line.
4328 2000-12-12 Dave Love <fx@gnu.org>
4330 * window.c (Fdisplay_buffer): Doc fix.
4331 (Fwindow_list): Remove unused var.
4333 * buffer.h (mmap_set_vars): Declare.
4335 * window.h (Fset_window_point): Declare.
4337 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
4339 * msdos.c (fast_find_position): Don't overstep the last window row.
4340 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
4341 variable `area'. When looking for a row under (X,Y), give up if some
4342 of the previous rows is not enabled.
4344 2000-12-12 Gerd Moellmann <gerd@gnu.org>
4346 * window.c (Fset_window_point): If displaying cursors in windows
4347 other than the selected window, make sure redisplay updates
4348 other windows to show the new value of point in the window.
4350 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
4352 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
4353 the buffer is the sole visible buffer when in the mini-buffer.
4355 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4356 Bind `inhibit-read-only' to t.
4357 (unwind_with_echo_area_buffer): Use AREF.
4359 * xfns.c (Fx_hide_tip): Simplified.
4361 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
4364 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
4366 2000-12-11 Gerd Moellmann <gerd@gnu.org>
4368 * xfns.c (Fx_hide_tip): Fix last change.
4370 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
4371 nothing to do. Bind inhibit-quit.
4372 (tip_frame): Make it a Lisp_Object.
4373 (x_create_tip_frame): Set tip_frame after it has been added to
4375 (Fx_show_tip): Don't set tip_frame here.
4377 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
4379 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
4382 * dispextern.h: Change external declaration of tip_frame.
4384 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
4385 return an empty string.
4387 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
4388 of the window's update_mode_line flag, since the former is set by
4389 force-mode-line-update, not the latter. This makes
4390 column-number-mode slightly faster.
4392 * xdisp.c (try_window_id) <all changes above window start>:
4395 2000-12-11 Paul Eggert <eggert@twinsun.com>
4397 * config.in (HAVE_FTELLO): Remove.
4399 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
4400 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
4402 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
4403 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
4405 2000-12-11 Miles Bader <miles@gnu.org>
4407 * window.c (displayed_window_lines): Don't round up when
4408 converting empty space at bottom to lines.
4409 Handle non-newline-terminated final lines properly.
4410 (Fwindow_text_height): New function (used to be in lisp).
4411 (syms_of_window): Initialize it.
4413 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
4415 * syntax.c (scan_lists): Check that the right quote char has the
4416 right Sstring syntax when jumping over strings.
4417 (init_syntax_once): Use Smax rather than 13.
4419 2000-12-09 Miles Bader <miles@gnu.org>
4421 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
4422 with PARTIALLY, inverting the sense.
4423 (window_scroll_pixel_based): Scroll partially visible lines into
4424 place if we hit the beginning or end of the buffer.
4425 (displayed_window_lines): Don't include partially visible lines.
4426 (Fmove_to_window_line): Skip past any partially visible first line.
4428 2000-12-08 Gerd Moellmann <gerd@gnu.org>
4430 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
4432 * tparam.c (tparam1): Change the way buffers are reallocated to be
4433 portable and less obfuscated.
4435 * termcap.c (tgetent): Change the way buffers are reallocated to
4436 be portable and less obfuscated.
4438 * macros.c (store_kbd_macro_char): Change the way buffers are
4439 reallocated to be portable and less obfuscated.
4441 * lread.c (read1): Change the way buffers are reallocated to be
4442 portable and less obfuscated.
4444 * doc.c (Fsubstitute_command_keys): Change the way buffers
4445 are reallocated so that it is portable.
4447 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
4449 * dosfns.c (Ffile_system_info): New function.
4450 (syms_of_dosfns): Defsubr it.
4452 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
4454 * alloc.c (gc_sweep): Add comment.
4456 2000-12-07 Gerd Moellmann <gerd@gnu.org>
4458 * sound.c (vox_configure): Change order of ioctls.
4459 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
4460 Ignore errors when changing volume.
4461 (vox_close): Don't reset the device.
4463 * process.c (read_process_output): Make sure the process marker's
4464 position is valid when the process buffer is changed in
4465 after-change functions. W3 does that.
4467 * xfns.c (x_free_gcs): New function.
4469 * xterm.h (x_free_gcs): Add prototype.
4471 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
4474 * xterm.c (x_destroy_window): Call x_free_gcs so that
4475 resources of non-toolkit X windows will be freed.
4477 2000-12-07 Andrew Innes <andrewi@gnu.org>
4479 * w32fns.c (xlfd_charset_of_font): Fix last change.
4481 2000-12-06 Dave Love <fx@gnu.org>
4483 * md5.h (__P): Don't define -- it comes from config.h.
4485 * strftime.c: Change some #if foo to #ifdef foo.
4487 2000-12-06 Andrew Innes <andrewi@gnu.org>
4489 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
4491 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4492 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
4493 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4495 2000-12-06 Gerd Moellmann <gerd@gnu.org>
4497 * alloc.c (gc_sweep): Prevent symbols read during loadup
4500 * xdisp.c (underlying_face_id): New function.
4501 (handle_face_prop, face_before_or_after_it_pos): Use it
4502 to determine the face ``under'' a string. Let strings inherit
4503 the face of the buffer under them.
4505 * xfaces.c (face_at_string_position): Update function comment.
4507 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
4508 matrix if the window's left position has changed; we need to
4509 redraw it in this case.
4511 * dispextern.h (struct glyph_matrix): Add member window_left_x.
4513 * window.c (coordinates_in_window): Check mouse on mode-line or
4516 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
4517 advertized by the function documentation.
4519 * window.c (syms_of_window): Doc fix.
4521 * sound.c (vox_configure): Set volume for left and right channel.
4522 (sound_cleanup): Return nil.
4524 * xdisp.c (move_it_by_lines): Fix paren typo.
4526 * xterm.c (x_load_font): Don't use the font's max_bounds for
4527 computing the height of the font. If max_bounds' ascent or
4528 descent are greater than the font's ascent or descent, this means
4529 glyphs overlap, which should be handled now by redisplay.
4531 * window.c (Veven_window_heights): New variable.
4532 (syms_of_window): DEFVAR_LISP it.
4533 (Fdisplay_buffer): Check Veven_window_heights before evening the
4536 2000-12-06 Miles Bader <miles@gnu.org>
4538 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
4539 update `default-frame-alist' instead of setting no frame parameters.
4541 2000-12-06 Kenichi Handa <handa@etl.go.jp>
4543 * composite.c (update_compositions): Fix typo (use the correct
4546 2000-12-05 Jason Rumney <jasonr@gnu.org>
4548 * md5.h: Remove underscores from function declarations.
4549 (__attribute__, __alignof__) [!__GNUC__]: Define.
4551 * md5.c: Delay include of md5.h until after namespace cleaning.
4553 * makefile.w32-in (fns.o): Depend on md5.h
4554 (md5.o): New target.
4557 * makefile.nt: Likewise.
4559 2000-12-05 Jason Rumney <jasonr@altavista.net>
4561 * w32term.c (expose_area): Complete last change.
4563 2000-12-05 Ken Raeburn <raeburn@gnu.org>
4565 * minibuf.c: Include intervals.h.
4567 2000-12-05 Jason Rumney <jasonr@gnu.org>
4569 * w32term.c (x_produce_glyphs): If a font for a component of
4570 a composition is not found, use 1 pixel dot ascent and 0 dot
4571 descent value to avoid displaying terribly tall empty boxes.
4572 (expose_area): Pass x-coordinate relative to the exposed
4573 area to x_draw_glyphs instead of a window-relative coordinate.
4575 2000-12-05 Gerd Moellmann <gerd@gnu.org>
4577 * xdisp.c (next_element_from_ellipsis): Save face before selective
4578 display in saved_face_id, and set face_before_selective_p.
4579 (reseat_1): Reset face_before_selective_p.
4580 (append_space, extend_face_to_end_of_line): If iterator's
4581 face_before_selective_p is set, use the face from saved_face_id.
4582 (extend_face_to_end_of_line): For tty frames, make sure to
4583 use the right face id when producing spaces at the end of
4586 * dispextern.h (struct it): Add face_before_selective_p.
4588 * keyboard.c (record_char): Don't record identical help-echo
4589 events in recent_keys.
4591 * xterm.c [USE_X_TOOLKIT]: Close the display.
4592 (xim_close_dpy): Handle case that the display has been closed.
4594 * xterm.c (x_destroy_window): Reset the frame's X window after
4597 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
4598 variable window_width.
4599 (line_draw_cost): Fix code skipping over spaces at the end of the
4600 line when must_write_spaces is not set.
4601 (scrolling_window): Fix code inserting runs in list of all runs.
4603 2000-12-05 Kenichi Handa <handa@etl.go.jp>
4605 * coding.c (setup_coding_system): Be sure to initialize
4606 coding->category_idx.
4608 2000-12-04 Gerd Moellmann <gerd@gnu.org>
4610 * xterm.c (PER_CHAR_METRIC): Removed because not used.
4612 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
4613 area to x_draw_glyphs instead of a window-relative coordinate.
4615 * fileio.c (auto_save_error): Add parameter ERROR. Show the
4616 error in the message.
4618 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
4619 timer after having read a key. It's not good for code reading
4620 several keys in a loop, like an input method.
4622 * fileio.c (Finsert_file_contents): When VISIT is t, don't
4623 record undo information for format-decode.
4625 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
4626 current buffer is read-only, not if it isn't.
4628 * keyboard.c (record_char): Record `help-echo' input events
4629 in recent_keys only if they display some help. Don't record
4630 `help-echo' events as macro char.
4632 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
4634 * editfns.c (save_excursion_restore): Don't move point
4635 in another window if it is showing the wrong buffer.
4636 Avoid the call to Fwindow_live_p, for speed.
4638 2000-12-04 Kenichi Handa <handa@etl.go.jp>
4640 * xfaces.c (struct font_name): New member registry_priority.
4641 (split_font_name): Initialize the above member to zero.
4642 (concat_font_list): New function.
4643 (font_list): Include fonts of all alternative registries.
4644 (FONT_POINT_SIZE_QUANTUM): New macro.
4645 (better_font_p): Ignore point size difference less than
4646 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
4648 * xterm.c (x_produce_glyphs): If a font for a component of
4649 a composition is not found, use 1 pixel dot ascent and 0 dot
4650 descent value to avoid displaying terribly tall empty boxes.
4652 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
4654 2000-12-03 Ken Raeburn <raeburn@gnu.org>
4656 * coding.h (code_convert_string1): Declare.
4658 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
4660 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
4662 2000-12-02 Jason Rumney <jasonr@gnu.org>
4664 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
4665 correctly for single byte character case.
4666 (w32_per_char_metric): Do not try to make any assumptions about
4667 the metrics of BDF fonts.
4668 (x_estimate_mode_line_height): If `mode-line' face
4669 hasn't a font, use that of the frame, as drawing glyphs does.
4670 (note_mouse_highlight): Change the cursor shape on the vertical
4671 border between windows [not enabled].
4673 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
4675 * w32fns.c (Fx_create_frame): Reintroduce the call to
4676 face-set-after-frame-defaults.
4677 (Vx_window_horizontal_drag_shape): New variable.
4678 (syms_of_xfns): DEFVAR_LISP it.
4679 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
4682 2000-12-02 Simon Josefsson <simon@josefsson.org>
4684 * fns.c (Fmd5): Use a different logic to decide the coding system
4687 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
4689 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
4691 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
4693 2000-12-01 Gerd Moellmann <gerd@gnu.org>
4695 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
4696 height for YNegative.
4697 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
4698 height; also see comment there.
4700 * window.c (coordinates_in_window): Handle computations for
4701 positions on the vertical bar and fringes differently for
4702 window-system frames. Consider some pixels near the vertical bar
4703 as on the bar if the frame doesn't have vertical scroll bars.
4704 Associate positions between mode or header lines with the
4705 right window, the left one.
4707 2000-12-01 Jason Rumney <jasonr@gnu.org>
4709 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
4711 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
4714 2000-12-01 Gerd Moellmann <gerd@gnu.org>
4716 * window.c (struct saved_window): Add members orig_top and orig_height.
4717 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
4718 (save_window_save, Fset_window_configuration): Save/restore
4719 window's orig_top and orig_height.
4721 2000-12-01 Jason Rumney <jasonr@gnu.org>
4723 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
4725 * w32fns.c (x_set_cursor_color): Fix last change.
4727 2000-11-30 Gerd Moellmann <gerd@gnu.org>
4729 * xdisp.c (echo_area_display): If cursor is in the echo area, make
4730 sure that the next redisplay displays the minibuffer, so that
4731 the cursor will be replaced with what the minibuffer wants.
4733 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
4734 #ifndef instead of using #if.
4735 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
4736 USE_TOOLKIT_SCROLL_BARS is defined.
4738 2000-11-30 Jason Rumney <jasonr@gnu.org>
4740 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
4743 2000-11-30 Gerd Moellmann <gerd@gnu.org>
4745 * fns.c (Fmd5): Doc fix.
4747 2000-11-30 Simon Josefsson <simon@josefsson.org>
4749 * fns.c (Fmd5): New function.
4750 (syms_of_fns): Defsubr md5.
4752 * Makefile.in (obj): Add md5.o
4754 2000-11-30 Gerd Moellmann <gerd@gnu.org>
4756 * md5.h, md5.c: New files, taken from glibc.
4758 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
4760 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
4761 hasn't a font, use that of the frame, as drawing glyphs does.
4763 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
4765 * eval.c (Frun_hooks): Allow 0 arguments.
4767 2000-11-29 Gerd Moellmann <gerd@gnu.org>
4769 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
4770 is over the menu bar widget, say it's not on the frame.
4772 * xfns.c (Fx_create_frame): Reintroduce the call to
4773 face-set-after-frame-defaults.
4775 * eval.c (Fsignal): Reset handling_signal.
4777 2000-11-28 Jason Rumney <jasonr@gnu.org>
4779 * w32menu.c (add_menu_item): Reset menu item text when changing
4780 type to radio button.
4782 2000-11-28 Gerd Moellmann <gerd@gnu.org>
4784 * xselect.c: Update copyright.
4786 * window.c (coordinates_in_window): If on a mode or header line,
4787 but sufficiently close to its start, return ``on vertical
4788 border''. This gives us a way to drag windows horizontally when
4789 using toolkit scroll bars.
4791 * xterm.c (note_mouse_highlight): Change the cursor shape
4792 on the vertical border between windows.
4794 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
4796 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
4797 (syms_of_xfns): DEFVAR_LISP it.
4798 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
4800 * textprop.c (text_read_only): New function.
4801 (verify_interval_modification): Use it instead of signaling
4802 `text-read-only'. This makes it easier to catch this error
4805 * xdisp.c (forward_to_next_line_start): Check for newlines,
4806 not end of line, which includes CR.
4808 2000-11-28 Kenichi Handa <handa@etl.go.jp>
4810 * coding.c (Ffind_coding_systems_region_internal): Be sure to
4811 include no-conversion.
4813 2000-11-27 Jason Rumney <jasonr@gnu.org>
4815 * w32fns.c (w32_load_system_font): Always mark font as double byte
4816 if codepage is unicode.
4818 2000-11-27 Gerd Moellmann <gerd@gnu.org>
4820 * xdisp.c (forward_to_next_line_start): If already on a newline,
4821 just consume it to avoid unintended skipping over invisible text below.
4823 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
4824 `vertical-line', `mode-line' and `header-line' events.
4826 * xdisp.c (try_window_id): Avoid starting to display in the middle
4827 of a character, a TAB for instance. This is easier than to set
4828 up the iterator exactly, and it's not a frequent case, so the
4829 additional effort wouldn't really pay off.
4831 2000-11-26 Andrew Choi <akochoi@i-cable.com>
4833 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
4836 2000-11-25 Jason Rumney <jasonr@gnu.org>
4838 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
4839 Args to window_from_coordinates should be pixel coordinates.
4841 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
4842 redisplay handles them properly.
4844 2000-11-25 Miles Bader <miles@gnu.org>
4846 * indent.c (compute_motion): Keep pos_byte in sync with pos.
4848 2000-11-24 Jason Rumney <jasonr@gnu.org>
4850 * w32.c (init_environment): Set LANG environment variable based on
4851 locale settings, if not set.
4853 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
4854 making tool bar smaller. When clearing the frame, also
4855 clear current matrices. Clear frame when tool bar disappears.
4856 Don't use more lines for the tool-bar than is available.
4857 (x_change_window_heights): New function.
4859 2000-11-24 Gerd Moellmann <gerd@gnu.org>
4861 * xdisp.c (init_from_display_pos): If POS says we're already after
4862 an overlay string ending at POS, make sure to pop the iterator
4863 because it will be in front of that overlay string. When POS is
4864 ZV, we've thereby also ``processed'' overlay strings at ZV.
4866 * xfaces.c (lface_from_face_name): Function comment fix.
4868 2000-11-24 Miles Bader <miles@gnu.org>
4870 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
4871 apply `mode-line-inverse-video' -- zero means force display using
4872 the default face, non-zero means display using the specialized face.
4873 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
4875 2000-11-23 Kenichi Handa <handa@etl.go.jp>
4877 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
4880 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
4882 * coding.c (decode_coding_emacs_mule): Fix the case of
4883 CODING_EOL_LF, which used uninitialized value of c.
4885 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
4887 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
4889 2000-11-22 Gerd Moellmann <gerd@gnu.org>
4891 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
4894 * frame.h (struct frame): Replace desired_tool_bar_items,
4895 current_tool_bar_items, n_desired_tool_bar_items,
4896 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
4898 * frame.c (make_frame): Change initialization of tool bar
4901 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
4902 Change references to members deleted from struct frame to use the
4905 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
4906 references to members deleted from struct frame to use the new ones.
4908 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
4910 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
4912 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
4913 (note_tool_bar_highlight): Change references to members deleted
4914 from struct frame to use the new ones.
4916 2000-11-23 Miles Bader <miles@gnu.org>
4918 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
4919 the face's inverse-video attribute, rather than overriding it.
4921 2000-11-22 Gerd Moellmann <gerd@gnu.org>
4923 * xfns.c (x_set_tool_bar_lines): Clear internal border when
4924 making tool bar smaller.
4926 2000-11-22 Dave Love <fx@gnu.org>
4928 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
4930 2000-11-22 Miles Bader <miles@gnu.org>
4932 * keyboard.c (Vminibuffer_message_timeout): New variable.
4933 (command_loop_1): Use it to determine message timeout.
4934 (syms_of_keyboard): Initialize it.
4936 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
4938 2000-11-22 Kenichi Handa <handa@etl.go.jp>
4940 * sysdep.c: Move the code for declaring h_errno after #include
4943 2000-11-21 Gerd Moellmann <gerd@gnu.org>
4945 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
4946 the menu bar when the tooltip is unmapped.
4948 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
4949 sole visible buffer when we're currently in the mini-buffer, and
4952 2000-11-21 Jason Rumney <jasonr@gnu.org>
4954 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
4955 put on the clipboard.
4956 (Fw32_get_clipboard_data): Compare data on clipboard with saved
4957 copy of what Emacs last put there. If they are the same, do not
4958 use the clipboard copy to avoid losing data due to coding conversions.
4960 2000-11-22 Miles Bader <miles@gnu.org>
4962 * minibuf.c (Vminibuffer_prompt_properties): New variable.
4963 (syms_of_minibuf): Initialize it.
4964 (read_minibuf): Add properties from Vminibuffer_prompt_properties
4965 to prompt, don't make read-only.
4967 2000-11-21 Gerd Moellmann <gerd@gnu.org>
4969 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
4970 Add BEFORE/AFTER_POTENTIAL_GC.
4972 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
4974 * buffer.c (mmap_free_1): Avoid a compiler warning.
4976 * term.c, cm.c: Don't try to include termcap.h; see comment there.
4978 2000-11-21 Kenichi Handa <handa@etl.go.jp>
4980 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
4983 2000-11-20 Gerd Moellmann <gerd@gnu.org>
4985 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
4988 * s/gnu-linux.h: Don't use `#cpu'.
4990 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
4991 not defined in mman.h.
4993 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
4994 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
4995 and store an index in the XClientMessageEvent. Storing a
4996 Lisp_Object or pointer can fail on a 64 bit system, since X only
4998 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
5000 2000-11-20 Dave Love <fx@gnu.org>
5002 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
5004 2000-11-20 Gerd Moellmann <gerd@gnu.org>
5006 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
5008 2000-11-20 Kenichi Handa <handa@etl.go.jp>
5010 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
5013 * alloc.c (make_string): Fix previous change. Be sure to make
5014 unibyte string correctly.
5016 2000-11-19 Gerd Moellmann <gerd@gnu.org>
5018 * window.c (Fwindow_list): Change parameter list to be XEmacs
5020 (window_list_1): New function.
5021 (window_loop): Use it instead of Fwindow_list.
5023 * sysdep.c (emacs_ospeed): New variable.
5024 (toplevel): Don't declare ospeed extern.
5025 (init_baud_rate): Use emacs_ospeed instead of ospeed.
5027 * termcap.c (ospeed): Remove.
5028 (tputs) [!emacs]: Remove unused code.
5029 (tgetent): Avoid a compiler warning.
5031 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
5032 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
5033 SCROLL_BAR_X_WIDGET with additional argument DPY.
5035 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
5037 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
5038 Take the X display as additional argument.
5039 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
5040 `Widget' is a pointer type that's not easily stored in Lisp_Object
5041 form in a portable way.
5043 * dispnew.c (update_text_area): Fix last change.
5045 2000-11-18 Gerd Moellmann <gerd@gnu.org>
5047 * xdisp.c: Use BINDING_STACK_SIZE throughout.
5049 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
5050 clear current matrices.
5052 * buffer.c (mmap_enlarge): Don't print a message on stderr
5053 if mapping new memory at the end of the existing region fails.
5055 * dispnew.c (update_text_area): Don't skip over equal glyphs
5056 when the last current glyph overlaps the glyph to its right.
5058 2000-11-18 Miles Bader <miles@gnu.org>
5060 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
5061 lines that *end* with "..." too (that's the most common case!).
5063 2000-11-18 Gerd Moellmann <gerd@gnu.org>
5065 * xdisp.c (resize_mini_window): Temporarily change to the
5066 mini-window's buffer if necessary.
5068 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
5069 the tooltip obscures less text under it.
5071 2000-11-17 Gerd Moellmann <gerd@gnu.org>
5073 * puresize.h (BASE_PURESIZE): Increase to 700000.
5075 2000-11-18 Jason Rumney <jasonr@gnu.org>
5077 * w32term.c (w32_draw_bitmap): Use face to set colors.
5079 2000-11-17 Dave Love <fx@gnu.org>
5081 * lread.c (Fload): Fix #ifdef for pcc.
5083 2000-11-17 Gerd Moellmann <gerd@gnu.org>
5085 * xdisp.c (pos_visible_p): Compute the default character height
5088 2000-11-16 Gerd Moellmann <gerd@gnu.org>
5090 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
5091 knowing the line's height; use the default font's height in that case.
5093 * xfaces.c (weight_table): Add `demi' with the same meaning as
5096 2000-11-16 Kenichi Handa <handa@etl.go.jp>
5098 * dispnew.c (null_row): New global static variable.
5099 (clear_glyph_row): Delete local static variable null_row.
5101 2000-11-15 Jason Rumney <jasonr@gnu.org>
5103 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
5104 (w32_alloc_lighter_color): Use new brightness calculations from
5105 xterm.c. Scale delta to be in the range expected by W32.
5106 (w32_draw_relief_rect): Use frame relief colors.
5108 2000-11-15 Gerd Moellmann <gerd@gnu.org>
5110 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
5111 (Qinhibit_default_face_x_resources): New variable.
5112 (syms_of_frame): Initialize it.
5113 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
5115 * xdisp.c (pos_visible_p): Improve function comment.
5117 * lisp.h (BINDING_STACK_SIZE): New macro.
5119 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
5120 reading the directory if readdir returns null and errno is EAGAIN
5123 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
5125 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
5126 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
5127 Set amount_to_scroll to max of dx and scroll_step so that
5128 scroll-conservatively doesn't defeat scroll-step>1.
5129 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
5130 scroll-conservatively for line-at-a-time scrolling.
5132 2000-11-14 Gerd Moellmann <gerd@gnu.org>
5134 * window.c (Fpos_visible_in_window_p): Call pos_visible with
5137 * xdisp.c (current_mode_line_height, current_header_line_height):
5139 (init_xdisp): Initialize them.
5140 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
5141 and use exact mode line heights if it is set.
5143 * lisp.h (pos_visible_p): Change prototype.
5145 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
5146 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
5147 and current_header_line_height first.
5148 (current_mode_line_height, current_header_line_height):
5151 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
5153 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
5154 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
5155 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
5157 2000-11-14 Miles Bader <miles@gnu.org>
5159 * xterm.c (x_alloc_lighter_color): Include an additive component
5160 too for dark colors, because FACTOR isn't enough.
5161 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
5164 2000-11-13 Gerd Moellmann <gerd@gnu.org>
5166 * keyboard.c (show_help_echo): Call message3_nolog with number of
5167 bytes in the help string as 2nd parameter, instead of the number
5170 2000-11-13 Miles Bader <miles@gnu.org>
5172 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
5173 (Fload): Use new openp return protocol.
5174 Don't try to use Vload_source_file_function to load .elc files.
5175 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
5176 openp return protocol.
5177 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
5179 2000-11-11 Kenichi Handa <handa@etl.go.jp>
5181 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
5183 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
5184 Defined these macros.
5185 (NLIST_STRUCT): Avoid re-defining it.
5187 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
5188 -I/usr/contrib/X11R6/include.
5189 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
5191 2000-11-10 Jason Rumney <jasonr@gnu.org>
5193 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
5195 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
5196 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
5198 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
5199 (Qw32_charset_vietnamese): New symbol.
5200 (xlfd_charset_of_font): New function.
5201 (w32_load_system_font): Use it.
5202 (x_to_w32_charset): Use Fassoc to find charset info. Special case
5203 when Vw32_charset_info_alist is nil to ensure default face always
5204 has font. Use Fcar and Fcdr for safety.
5205 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
5206 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
5207 pseudo-codepages for special cases.
5208 (w32_to_x_font): New parameter to allow charset portion to be
5209 specified where there is many to one mapping. Callers changed.
5210 (w32_list_fonts): Avoid listing fonts that won't display.
5212 2000-11-10 Gerd Moellmann <gerd@gnu.org>
5214 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
5215 (font_list_1): Renamed from font_list.
5216 (font_list): New function, trying alternative registries from
5217 Vface_alternative_font_registry_alist.
5218 (Finternal_set_alternative_font_registry_alist): New function.
5219 (syms_of_xfaces): Initialize and Staticpro
5220 Vface_alternative_font_registry_alist.
5221 Defsubr Finternal_set_alternative_font_registry_alist.
5223 2000-11-09 Ken Raeburn <raeburn@gnu.org>
5225 * lisp.h (Flooking_at): Declare.
5227 2000-11-09 Gerd Moellmann <gerd@gnu.org>
5229 * dired.c (directory_files_internal): Fix a braino.
5231 * dired.c (directory_files_internal): Add missing GCPRO's.
5234 2000-11-08 Gerd Moellmann <gerd@gnu.org>
5236 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
5237 (resize_mini_window): Return quickly if Vresize_mini_window is
5238 nil. Don't return if Vmax_mini_window_height is nil.
5240 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
5241 (syms_of_xdisp): Initialize them.
5242 (resize_mini_window): Act according to the setting of
5243 Vresize_mini_window.
5244 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
5246 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
5247 scroll bar widget after configuring it, so that it will appear at
5248 the right position from the start.
5249 (XTredeem_scroll_bar): Cleaned up.
5251 2000-11-08 Kenichi Handa <handa@etl.go.jp>
5253 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5254 font is taller than the frame line, we don't have to bias the
5257 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
5259 2000-11-07 Dave Love <fx@gnu.org>
5261 * config.in (HAVE_MKSTEMP): Add.
5263 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
5265 2000-11-07 Gerd Moellmann <gerd@gnu.org>
5267 * window.c (Fset_window_configuration): Don't try to preserve
5268 point in the current buffer, if that buffer is displayed in more
5271 * xfaces.c (lookup_named_face): If default face isn't realized,
5272 try to realize it. Return -1 if not successful.
5273 (Fx_list_fonts): Handle case that face cannot be determined.
5274 (Fface_font): Likewise.
5276 2000-11-06 Gerd Moellmann <gerd@gnu.org>
5278 * window.c (displayed_window_lines): Detect partially
5279 visible lines at the bottom correctly.
5281 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
5283 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
5284 when ensuring we don't do visit in indirect buffer.
5286 2000-11-06 Kenichi Handa <handa@etl.go.jp>
5288 * composite.h (compose_chars_in_text): Add prototype.
5290 * composite.c (Vcomposition_function_table): New variable.
5291 (Qcomposition_function_table): New variable.
5292 (run_composition_function): Call
5293 Vcompose_chars_after_function with three arguments.
5294 (compose_chars_in_text): New function.
5295 (syms_of_composite): Modified the doc-string of
5296 Vcompose_chars_after_function. Declare composition-function-table
5297 as a lisp variable, and initialize it.
5299 * xfns.c (x_encode_text): Suppress producing escape sequences for
5302 * xselect.c: Include composite.h.
5303 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
5305 2000-11-05 Andrew Innes <andrewi@gnu.org>
5307 * w32term.c (x_produce_glyphs): Fix typo in enum name.
5309 * sysdep.c (read_input_waiting): Remove extraneous argument to
5312 * w32fns.c (Fx_server_version): Include w32_build_number in the
5315 * w32heap.c (w32_build_number): New variable.
5316 (cache_system_info): Set it.
5318 * w32heap.h (w32_build_number): Add extern.
5320 * emacs.c (syms_of_emacs): Update docstring for
5321 system-configuration, to reflect the actual usage on MS-Windows.
5323 2000-10-31 Gerd Moellmann <gerd@gnu.org>
5325 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
5326 process idle timers while waiting for another event.
5328 * dispnew.c (update_frame_line): Handle case where spaces in
5329 the default face are colored.
5331 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
5332 window height hasn't changed.
5334 2000-10-31 Jason Rumney <jasonr@gnu.org>
5336 * w32term.c (x_produce_glyphs): Handle composite characters.
5337 (x_draw_glyph_string_foreground)
5338 (x_draw_composite_glyph_string_foreground): Restore old font.
5340 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
5342 * minibuf.c (read_minibuf): Reset the undo history just before
5343 starting the recursive-edit.
5345 2000-10-30 Gerd Moellmann <gerd@gnu.org>
5347 * xfaces.c (menu_face_change_count): New variable.
5348 (Finternal_set_lisp_face_attribute): Increment it for changes
5350 (realize_basic_faces): Reflect changes in the `menu' faces
5353 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
5354 dy obtained from the iterator's y-position after moving from
5355 scroll_margin_pos to PT; see comment there.
5357 * xdisp.c (safe_eval_handler): Call add_to_log.
5359 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
5360 is not a symbol or string.
5362 * xdisp.c (echo_area_display): Don't perform a display update from
5363 inside redisplay. The update will happen anyway at the end of
5364 redisplay, and it can confuse redisplay (GC messages while
5365 redisplaying, for instance.)
5367 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
5369 * xrdb.c (x_load_resources): Use the class name in the defaults.
5371 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
5372 (regex_compile): Catch bogus \(\1\).
5374 2000-10-30 Gerd Moellmann <gerd@gnu.org>
5376 * xterm.c (x_alloc_nearest_color): Fix last change to compare
5379 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
5380 we have a color cache, check that the cached color equals the
5381 allocated color. If not, clear the color cache.
5383 * window.c (displayed_window_lines): Change buffers if necessary.
5384 Fix computation of displayed lines.
5386 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
5387 update_menu_bindings to DEFVAR_BOOL.
5389 2000-10-30 Kenichi Handa <handa@etl.go.jp>
5391 * search.c (Fset_match_data): Be sure to make search_regs always sane.
5393 * puresize.h (BASE_PURESIZE): Increase to 680000.
5395 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
5397 2000-10-29 Jason Rumney <jasonr@gnu.org>
5399 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
5401 * w32term.c (w32_bdf_per_char_metric): Negate descent.
5402 (w32_cache_char_metrics): Handle possibility that 'x' does not
5403 exist in a BDF font.
5404 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
5406 * w32bdf.h (bdffont): Add nchars.
5408 * w32bdf.c (set_bdf_font_info): Set it.
5409 (w32_BDF_TextOut): Swap byte order of double byte characters.
5410 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
5412 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
5414 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
5415 don't override the colors in frame's param_alist, unless they are
5418 * term.c (reassert_line_highlight): If inverse_video is non-zero,
5419 reverse the effect of the highlight flag.
5421 2000-10-27 Ken Raeburn <raeburn@gnu.org>
5423 * window.h (Fwindow_live_p): Declare.
5425 * undo.c (record_delete): Check that last_undo_buffer is really a
5426 buffer before applying XBUFFER to it.
5428 * keymap.c (where_is_internal): Pass lisp object, not integer, to
5431 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
5433 * lisp.h (KEYMAPP): New macro.
5434 (get_keymap): Remove.
5435 (get_keymap_1): Rename get_keymap.
5437 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
5439 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
5441 * xmenu.c (single_submenu): Use KEYMAPP.
5442 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
5443 Use KEYMAPP rather than Fkeymapp.
5445 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
5447 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
5448 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
5449 Use KEYMAPP rather than Fkeymapp.
5450 (single_submenu): Use KEYMAPP.
5451 (w32_menu_show, w32_dialog_show): Use TRUE.
5453 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
5455 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
5456 (Fkeymapp): Use KEYMAPP.
5457 (get_keymap): Rename from get_keymap_1. Remove old def.
5458 Return t when autoload=0 and error=0 and the keymap needs autoloading.
5459 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
5460 (Fminor_mode_key_binding): Don't raise an error if the binding
5462 (Fuse_global_map, Fuse_local_map): Allow autoloading.
5463 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
5465 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
5466 Allow Vspecial_event_map to be autoloaded.
5467 (menu_bar_items): Fetch the keymap rather than using keymapp.
5468 (menu_bar_one_keymap): No need to follow func-indirect any more.
5469 (parse_menu_item): get_keymap_1 -> get_keymap.
5470 (tool_bar_items): Fetch the keymap rather than using keymapp.
5471 (read_key_sequence): Use KEYMAPP.
5473 * intervals.c (get_local_map): Use get_keymap rather than following
5474 function-indirections explicitly.
5476 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
5478 2000-10-27 Jason Rumney <jasonr@gnu.org>
5480 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
5481 point, as Windows has oversized fonts.
5483 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
5485 2000-10-27 Gerd Moellmann <gerd@gnu.org>
5487 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
5488 (freehook, reallochook): Handle null pointer arguments.
5489 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
5491 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
5493 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
5494 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
5495 Giving in to popular pressure to shut up the compiler with casts.
5497 2000-10-27 Gerd Moellmann <gerd@gnu.org>
5499 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
5500 signed value, and use a default value computed from the font's
5503 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
5505 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
5506 that specify a negative underline position can still use underlines.
5508 * window.c (Fpos_visible_in_window_p): Make POS default to
5509 WINDOW's point, not the current buffer's point.
5511 2000-10-26 Dave Love <fx@gnu.org>
5513 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
5514 when it's necessary.
5516 2000-10-26 Gerd Moellmann <gerd@gnu.org>
5518 * window.c (size_window): Compute size difference from sum of old
5519 child window sizes instead of from parent's size.
5521 * xdisp.c (pos_visible_p): Change current buffer if necessary.
5522 Handle obscured lines at the top of the window.
5524 * frame.c (Fdelete_frame): Doc fix. Move running the hook
5525 down after the last error condition check.
5527 * frame.c (Fdelete_frame): Run delete-frame-hook.
5529 2000-10-26 Kenichi Handa <handa@etl.go.jp>
5531 * coding.c (decode_coding): Fix previous change (check also
5532 CODING_MODE_LAST_BLOCK).
5534 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
5536 * regex.c: More `unsigned char' -> `re_char' changes.
5537 Also change several `int' into `re_wchar_t'.
5538 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
5539 (PUSH_FAILURE_POINTER): Don't cast any more.
5540 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
5541 We want GCC to complain, since this piece of code makes
5542 re_match non-reentrant, which *should* be fixed.
5543 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
5544 (EXTEND_BUFFER): Use RETALLOC.
5545 (SET_LIST_BIT): Don't cast.
5546 (re_wchar_t): New type.
5547 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
5548 that those two functions will always properly return.
5549 (IMMEDIATE_QUIT_CHECK): Cast to void.
5550 (analyse_first): Use recursion rather than an explicit stack.
5551 (re_compile_fastmap): Can't fail anymore.
5552 (re_search_2): Don't check re_compile_fastmap for failure.
5553 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
5554 Now also sets the new value (passed in a new argument).
5555 (re_match_2_internal): Use it.
5556 Also, use a new var `reg' of type size_t when looping through regs
5557 rather than reuse the inappropriate `mcnt'.
5559 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
5560 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
5561 (where_is_internal): Renamed from Fwhere_is_internal.
5562 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
5563 (Fwhere_is_internal): New function wrapping where_is_internal.
5564 (where_is_internal_1): Handle the case where we're filling the cache.
5565 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
5567 2000-10-25 Miles Bader <miles@gnu.org>
5569 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
5571 2000-10-25 Gerd Moellmann <gerd@gnu.org>
5573 * window.c (pos_fully_visible_p): Removed.
5574 (Fpos_visible_in_window_p): Use pos_visible_p to determine
5575 if position is visible and/or fully visible.
5577 * lisp.h (pos_visible_p): Add prototype.
5579 * xdisp.c (pos_visible_p): New function.
5581 2000-10-25 Kenichi Handa <handa@etl.go.jp>
5583 * process.c (send_process): If OBJECT is t, it means that the data
5584 is from C string, but we should encode it. Before calling
5585 setup_raw_text_coding_system, be sure to flush out data by the
5586 previous coding system.
5588 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
5590 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
5591 assignment of startpos to prev when startpos == pos.
5593 * editfns.c (find_field): Set the field stickiness correctly from
5594 overlay fields. Use renamed `text_property_stickiness'.
5595 (text_property_stickiness): Renamed from `char_property_stickiness'.
5596 Only check text properties, not overlays.
5597 * textprop.c (get_char_property_and_overlay): New function.
5598 (Fget_char_property): Use it.
5599 * intervals.h (get_char_property_and_overlay): Add declaration.
5601 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
5603 * keymap.c: Use AREF, ASET and ASIZE macros.
5604 (Fmake_sparse_keymap): Docstring fix.
5606 (shadow_lookup): Move up.
5607 Handle the case where lookup-key returns an integer.
5608 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
5609 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
5610 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
5611 Simplify/rewrite the keymap-finding code.
5612 Add check for command shadowing, using shadow_lookup.
5614 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
5616 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
5617 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
5620 2000-10-24 Andrew Innes <andrewi@gnu.org>
5622 * dired.c (directory_files_internal_unwind): New function.
5623 (directory_files_internal): Use it to ensure closedir is called
5624 even if expand-file-name or file-attributes throw, eg. because of
5625 a user interrupt. Also enable immediate_quit while calling
5626 re_search, so that matching can be interrupted as well.
5628 2000-10-24 Andrew Innes <andrewi@gnu.org>
5630 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
5632 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
5633 so that re_search functions only quit when callers expect them to.
5635 2000-10-24 Kenichi Handa <handa@etl.go.jp>
5637 * regex.c (regex_compile): Change the way of handling a range from
5638 a char less than 256 to a char not less than 256.
5640 2000-10-24 Gerd Moellmann <gerd@gnu.org>
5642 * window.c (size_window): Prevent setting window's width or
5643 height to a negative value (esp. with XSETFASTINT).
5645 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
5646 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
5647 (protect_malloc_state) [GC_MALLOC_CHECK &&
5648 GC_PROTECT_MALLOC_STATE]: New function.
5649 (PROTECT_MALLOC_STATE): New macro.
5650 (__malloc_initialize, morecore, _malloc_internal)
5651 (_free_internal) _realloc_internal): Use it to make _heapinfo
5652 read-only outside of gmalloc.
5654 * keymap.c: Update copyright.
5656 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
5659 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
5661 * filelock.c (unlock_all_files): Use unlock_file to expand each
5662 buffer's file_truename before trying remove its lock file.
5664 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
5666 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
5667 or CRLF, decode EOLs.
5669 2000-10-24 Kenichi Handa <handa@etl.go.jp>
5671 * window.c (Fdisplay_buffer): Fix doc.
5673 2000-10-23 Jason Rumney <jasonr@gnu.org>
5675 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
5676 ASCII font of default fontset on Windows.
5678 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
5679 xterm.c comment below).
5681 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
5683 2000-10-23 Gerd Moellmann <gerd@gnu.org>
5685 * xterm.c (x_connection_closed): Reset handling_signal.
5687 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
5689 2000-10-23 Miles Bader <miles@gnu.org>
5691 * window.c (window_scroll_pixel_based, window_scroll_line_based):
5692 Pass nil for FULLY argument to Fpos_visible_in_window_p to
5693 maintain old behavior.
5694 * minibuf.c (Fminibuffer_complete): Likewise.
5696 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
5698 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
5699 that when a font can't be exactly centered, it errs up rather than
5702 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
5704 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
5706 2000-10-23 Andrew Choi <akochoi@i-cable.com>
5708 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
5710 * dispnew.c [macintosh]: Include macterm.h.
5711 (init_display) [macintosh]: Initialization for window system.
5713 * emacs.c (main) [macintosh]: Call syms_of_textprop,
5714 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
5715 syms_of_search, x_term_init, and init_keyboard before calling
5716 init_window_once. Also, call syms_of_xmenu.
5718 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
5719 default fontset to Monaco.
5721 * frame.c [macintosh]: Include macterm.h. Remove declarations of
5722 NewMacWindow and DisposeMacWindow.
5723 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
5724 instead of calling NewMacWindow and setting fields of
5725 f->output_data.mac directly. Call init_frame_faces.
5726 (Fdelete_frame) [macintosh]: Remove unused code.
5727 (Fmodify_frame_parameters) [macintosh]: Call
5728 x_set_frame_parameters instead of mac_set_frame_parameters.
5730 * frame.h [macintosh]: Define menu_bar_lines field in struct
5731 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
5733 * keyboard.c [macintosh]: Include macterm.h.
5734 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
5735 and menu_bar_activate_event type events as for X and NT.
5736 (make_lispy_event) [macintosh]: Construct lisp events of type
5737 MENU_BAR_EVENT as for X and NT.
5739 * sysdep.c [macintosh]: Remove declaration for sys_signal.
5740 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
5741 (sys_subshell) [macintosh]: Remove definition entirely.
5742 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
5743 Vwindow_system_version here. Remove initialization of
5744 Vx_bitmap_file_path.
5745 (read_input_waiting): Correct the number of parameters passed to
5747 Move all Macintosh functions to mac/mac.c.
5749 * term.c [macintosh]: Include macterm.h.
5751 * window.c [macintosh]: Include macterm.h.
5753 * xdisp.c [macintosh]: Include macterm.h. Declare
5754 set_frame_menubar and pending_menu_activation.
5755 (echo_area_display) [macintosh]: Do not return if terminal frame
5756 is the selected frame.
5757 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
5758 Allow only the selected frame to set menu bar.
5759 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
5760 calling FRAME_EXTERNAL_MENU_BAR (f).
5761 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
5763 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
5764 and check_x. Declare XCreateGC. Define x_create_gc and
5765 x_free_gc. Initialize font_sort_order.
5766 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
5767 but call x_list_fonts instead of w32_list_fonts.
5768 (Finternal_face_x_get_resource) [macintosh]: Do not call
5769 display_x_get_resource.
5770 (prepare_face_for_display) [macintosh]: Set xgcv.font.
5771 (realize_x_face) [macintosh]: Load the font if it is specified in
5773 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
5775 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
5777 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
5778 is nil: since we go to the end of submap anyway, we'd end up
5780 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
5781 doesn't obey autoload.
5783 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5785 * msdos.c (dos_set_window_size): Update screen dimension variables.
5787 2000-10-21 Jason Rumney <jasonr@gnu.org>
5789 * w32term.c (w32_cache_char_metrics): Double check that font is
5790 really fixed pitch before trusting tmPitchAndFamily.
5792 2000-10-21 Andrew Innes <andrewi@gnu.org>
5794 * w32gui.h (w32_char_font_type): Move enum from w32term.c
5796 * w32term.h: Extern decl for w32_cache_char_metrics.
5798 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
5800 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
5801 (w32_unload_font): Free per_char array if present.
5803 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
5804 cached information in emulated XFontStruct to handle common cases
5805 quickly. Do not allocate XCharStruct for return.
5806 (w32_native_per_char_metric): New function.
5807 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
5809 (x_produce_glyphs): Don't get an HDC. Change calls to
5810 w32_per_char_metric to match arg change above. Remove calls to
5812 (w32_get_glyph_overhangs): Ditto.
5813 (w32_cache_char_metrics): New function.
5815 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
5816 ($(BLD)/casefiddle.$(O)): Remove compile command.
5817 ($(BLD)/gmalloc.$(O)): Remove compile command.
5818 ($(BLD)/dispnew.obj):
5819 ($(BLD)/keyboard.obj):
5820 ($(BLD)/w32inevt.obj):
5821 ($(BLD)/w32bdf.obj):
5823 ($(BLD)/buffer.obj):
5824 ($(BLD)/editfns.obj):
5826 ($(BLD)/fileio.obj):
5828 ($(BLD)/indent.obj):
5829 ($(BLD)/insdel.obj):
5830 ($(BLD)/intervals.obj):
5831 ($(BLD)/minibuf.obj):
5833 ($(BLD)/scroll.obj):
5834 ($(BLD)/sysdep.obj):
5835 ($(BLD)/textprop.obj):
5836 ($(BLD)/widget.obj):
5837 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
5838 ($(BLD)/term.obj): Add dependency on dispextern.h.
5840 * makefile.nt ($(BLD)\dispnew.obj):
5841 ($(BLD)\keyboard.obj):
5842 ($(BLD)\w32inevt.obj):
5843 ($(BLD)\w32bdf.obj):
5845 ($(BLD)\buffer.obj):
5846 ($(BLD)\editfns.obj):
5848 ($(BLD)\fileio.obj):
5850 ($(BLD)\indent.obj):
5851 ($(BLD)\insdel.obj):
5852 ($(BLD)\intervals.obj):
5853 ($(BLD)\minibuf.obj):
5855 ($(BLD)\scroll.obj):
5856 ($(BLD)\sysdep.obj):
5857 ($(BLD)\textprop.obj):
5858 ($(BLD)\widget.obj):
5859 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
5860 ($(BLD)\term.obj): Add dependency on dispextern.h
5862 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5864 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
5865 with an additional argument of Qt.
5867 2000-10-21 Miles Bader <miles@gnu.org>
5869 * window.c (pos_fully_visible_in_window_p): New function.
5870 (Fpos_visible_in_window_p): Add FULLY argument.
5871 Use pos_fully_visible_in_window_p.
5872 (window_scroll_pixel_based, window_scroll_line_based): Update
5873 calls to Fpos_visible_in_window_p.
5874 * lisp.h (Fpos_visible_in_window_p): Update prototype
5876 2000-10-20 Gerd Moellmann <gerd@gnu.org>
5878 * alloc.c (toplevel): Conditionalize compilation of mem_*
5879 functions differently.
5881 2000-10-20 Jason Rumney <jasonr@gnu.org>
5883 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
5884 mem_init where it used to be. mem_z etc not defined otherwise.
5886 2000-10-20 Gerd Moellmann <gerd@gnu.org>
5888 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
5890 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
5891 structure definition and related variabled to the top of the file.
5892 Include this code when GC_MALLOC_CHECK is defined.
5893 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
5894 register/unregister allocated region.
5895 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
5896 which isn't allocated.
5897 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
5898 something which is already in use.
5899 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
5900 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
5901 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
5902 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
5904 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
5905 _malloc_internal instead of malloc.
5906 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
5909 2000-10-20 Andrew Innes <andrewi@gnu.org>
5911 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
5913 (my_strftime) <macro>: Don't use macro arg list when redefining as
5915 (my_strftime) <function>: Supply 0 as ut argument.
5917 2000-10-19 Jason Rumney <jasonr@altavista.net>
5919 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
5920 including dispextern.h, as it stops faces from working.
5922 * w32fns.c (Fx_create_frame): Don't bother calling
5923 face-set-after-frame-default since the caller does it for us
5924 anyway. Clean up calls to x_get_arg to be consistent with X.
5926 * w32term.c (x_produce_glyphs): Handle
5927 unibyte_display_via_language_environment correctly.
5928 (w32_draw_box_rect): Fix the calculation of width and height.
5930 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
5931 as it has stopped working.
5932 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
5935 2000-10-19 Gerd Moellmann <gerd@gnu.org>
5937 * eval.c (skip_debugger): Prevent a compiler warning.
5938 (Fcondition_case): Likewise.
5939 (Fbacktrace_frame): Use a null interactive spec.
5941 2000-10-19 Kenichi Handa <handa@etl.go.jp>
5943 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
5945 2000-10-18 Gerd Moellmann <gerd@gnu.org>
5947 * strftime.c: Sync with glibc, file version 1.78.
5948 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
5949 should no longer be used according to ISO 8601.
5951 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
5952 no map for meta_prefix_char, don't try to use it as a keymap.
5953 Instead, if T_OK is non-zero, look up a default binding, if any,
5954 otherwise, if T_OK is zero, return nil.
5956 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
5957 (x_to_xcolors, png_load): Use x_query_color.
5959 * xterm.c (x_color_cells, x_query_colors, x_query_color):
5961 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
5963 (x_copy_color, x_alloc_lighter_color): Likewise.
5965 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
5966 (x_query_color, x_query_colors): Add prototype.
5968 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
5969 check_string_bytes only if not noninteractive, increase count to 50.
5971 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
5973 * insdel.c (adjust_markers_for_delete): Handle before-insertion
5976 2000-10-17 Gerd Moellmann <gerd@gnu.org>
5978 * alloc.c (pure_bytes_used): Renamed from pureptr.
5980 (pure_alloc): New function.
5981 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
5983 (Fpurecopy): Use PURE_POINTER_P.
5985 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
5986 PT has moved backward.
5988 * xdisp.c (cursor_row_p): Take continued lines into account.
5990 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
5992 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
5993 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
5994 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
5997 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
5998 of selective display off while searching for the next line start.
6000 2000-10-17 Kenichi Handa <handa@etl.go.jp>
6002 * Makefile.in (term.o): Depend on dispextern.h.
6004 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
6006 * keymap.c (keymap_memberp): Ensure that nil is not a member.
6008 2000-10-16 Gerd Moellmann <gerd@gnu.org>
6010 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
6011 the iterator at the beginning, so that they can be set later on,
6012 for instance in reseat_at_next_visible_line_start, without being
6015 * xfns.c (pbm_format): Add :foreground and :background keywords.
6016 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
6017 (xbm_load): Recognize foreground and background color specifications.
6019 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
6021 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
6023 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
6025 * msdos.c (IT_set_face): Compare highlighted face with the default
6026 face, and invert colors if these faces' colors are identical.
6027 (Fmsdos_remember_default_colors): Don't swap foreground and
6028 background colors in initial_colors[].
6029 (IT_set_frame_parameters): Don't swap frame's foreground and
6030 background pixels. If ALIST includes "(reverse . t)", swap
6031 foreground-color and background-color properties in frame's
6032 param_alist. If the original frame's param_alist doesn't specify
6033 the colors, store unspecified-fg and unspecified-bg, reversed if
6036 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
6037 the colors are unspecified and reversed, reverse fore- and back-
6038 ground in the returned value.
6039 (Fframe_parameter): Ditto.
6041 2000-10-16 Gerd Moellmann <gerd@gnu.org>
6043 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
6044 get_last_unchanged_at_beg_row.
6045 (find_first_unchanged_at_end_row): Renamed from
6046 get_first_unchanged_at_end_row.
6047 (find_first_unchanged_at_end_row): Convert assertions to
6048 unconditional tests which abort. When looking for a row in
6049 unchanged text, don't go further back than first_text_row.
6051 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
6052 Don't add in the last line's height when deciding if the new
6053 position is below the scroll margin.
6055 2000-10-16 Miles Bader <miles@gnu.org>
6057 * editfns.c (Fconstrain_to_field): Check carefully for field
6058 boundaries if either OLD_POS or NEW_POS has a non-nil field
6059 property, even if they're the same.
6061 2000-10-16 Kenichi Handa <handa@etl.go.jp>
6063 * xterm.c (x_draw_box_rect): Fix the calculation of width and
6064 height for XFillRectangle.
6066 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
6068 * syntax.c (Fstring_to_syntax): New function extracted from
6069 Fmodify_syntax_entry.
6070 (Fmodify_syntax_entry): Use it and document the ! and | fences.
6071 (skip_chars, Fforward_comment): Remove unused variables.
6072 (syms_of_syntax): Add defsubr for string-to-syntax.
6073 (describe_syntax): Add code for comment and string fences.
6075 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
6077 * keymap.c (access_keymap): Add AUTOLOAD parameter.
6078 Do the meta->esc mapping. Call get_keyelt before returning.
6079 Start scanning from the second element (the first is always `keymap')
6080 to make it easier to detect when we reach a parent map.
6081 Handle the case of inheriting from a symbol whose function is a map.
6082 (Fkeymap_parent): Also handle the `inherit from symbol' case.
6083 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
6084 (get_keyelt, Flookup_key): Update call to access_keymap.
6085 Remove the meta->esc mappings.
6086 (define_as_prefix): Delete old disabled code.
6087 (menu_item_p): New function.
6088 (where_is_internal_1): Skip over the few remaining menu items.
6089 * lisp.h (access_keymap): Update prototype.
6090 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
6091 Update call to access_keymap.
6092 (follow_key, read_key_sequence): Update calls to access_keymap.
6093 Remove the meta->esc mappings.
6095 2000-10-13 Gerd Moellmann <gerd@gnu.org>
6097 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
6098 with additional argument.
6100 * xdisp.c (cursor_row_p): New function.
6101 (try_cursor_movement, display_line): Use it.
6103 * xdisp.c (append_space): Also save/restore iterator's current
6104 character and its length.
6106 * xdisp.c (init_from_display_pos): Add an assertion.
6107 (handle_stop): Don't set iterator's add_overlay_start.
6108 (handle_invisible_prop): Likewise.
6109 (load_overlay_strings): If text under an overlay is invisible,
6110 take both before- and after-strings into account when the iterator
6111 is positioned either at the start or at the end of the overlay.
6112 (forward_to_next_line_start): Rewritten.
6113 (reseat_at_next_visible_line_start): Rewritten.
6114 (set_iterator_to_next): Add parameter RESEAT_P.
6116 * dispextern.h (struct it): Remove member add_overlay_start.
6117 (set_iterator_to_next): Change prototype.
6119 2000-10-13 Kenichi Handa <handa@etl.go.jp>
6121 * coding.c (code_convert_region): Be sure to initialize
6122 coding->category_idx.
6123 (decode_coding_string): Set coding->src_multibyte and
6124 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
6125 (encode_coding_string): Set coding->src_multibyte and
6126 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
6128 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
6130 * xfns.c (Fx_create_frame): Don't bother calling
6131 face-set-after-frame-default since the caller does it for us anyway.
6133 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
6135 * window.c (coordinates_in_window): Fix detection of vertical line
6136 on character terminals.
6138 2000-10-12 Gerd Moellmann <gerd@gnu.org>
6140 * editfns.c (save_excursion_save): Additionally record the
6142 (save_excursion_restore): If buffer was visible in a window, and a
6143 different window was selected, and the old selected window is
6144 still live, restore point in that window.
6146 2000-10-12 Kenichi Handa <handa@etl.go.jp>
6148 * xterm.c (x_produce_glyphs): Handle
6149 unibyte_display_via_language_environment correctly.
6151 * regex.c (regex_compile): Change the way of handling a range from
6152 unibyte char to multibyte char.
6154 * syntax.c (skip_chars): Change the way of handling a range from
6155 unibyte char to multibyte char.
6157 * process.c (read_process_output): Cancel previous change.
6159 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
6161 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
6163 * charset.c (Ffind_charset_string): Doc fix.
6164 (Ffind_charset_region): Doc fix.
6166 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
6168 * process.c (read_process_output): Fix previous change. Adjust
6169 multibyteness of text to insert in a buffer by
6170 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
6172 2000-10-10 Andreas Schwab <schwab@suse.de>
6174 * alloc.c (mark_object): Remove all workarounds installed on
6177 2000-10-10 Kenichi Handa <handa@etl.go.jp>
6179 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
6180 (base64_encode_1): Make it work for a text of multibyte form.
6181 (Fbase64_decode_region): Allocate sufficient memory for multibyte
6182 case. Don't call str_to_multibyte because base64_decode_1
6183 produces correct multibyte form for eight-bit codes.
6184 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
6185 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
6186 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
6189 * charset.h (CHAR_STRING): Optimized for single byte characters.
6191 2000-10-09 Andreas Schwab <schwab@suse.de>
6193 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
6194 -1 after socket is closed, to fall through to error processing.
6196 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
6198 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
6199 variables. If ALIST includes foreground-color or
6200 background-color, change also the colors of the default face for
6203 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
6205 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
6206 them extern (they are defined on xfaces.c).
6207 (syms_of_msdos): Don't intern and don't staticpro
6208 Qbackground_color and Qforeground_color.
6210 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
6212 * frame.c (Fframe_parameter): For non-windowed frames, if
6213 f->param_alist says foreground or background color is unspecified,
6214 call tty_color_name to return the color name computed from the
6215 frame's current colors.
6217 2000-10-06 Dave Love <fx@gnu.org>
6219 * terminfo.c (ospeed): Don't declare.
6221 * sysdep.c: Don't include string.h.
6222 (h_errno): Declare conditional also on TRY_AGAIN.
6224 * charset.c (Ffind_charset_string): Doc fix.
6226 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
6227 (Fbase64_decode_region, Fbase64_decode_string): More explicit
6230 2000-10-05 Dave Love <fx@gnu.org>
6232 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
6233 position like menu-bar.
6235 2000-10-05 Gerd Moellmann <gerd@gnu.org>
6237 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
6239 * xdisp.c (handle_single_display_prop): Use safe_call1.
6240 (safe_call): Renamed from call_function.
6241 (safe_call1): New function.
6242 (handle_fontified_prop): Use safe_call1 instead of call1.
6243 (safe_eval): Renamed from eval_form.
6244 (safe_eval_handler): Renamed from eval_handler.
6245 (handle_single_display_prop, display_mode_element): Use safe_eval
6246 instead of eval_form.
6248 * xfaces.c (merge_face_heights): Use safe_call instead of
6251 * keyboard.c (show_help_echo): Use safe_call instead of
6252 call_function; use safe_eval instead of eval_form.
6254 * lisp.h (safe_call): Renamed from call_function.
6255 (safe_eval): Renamed from eval_form.
6256 (safe_call1): Add prototype.
6258 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
6260 * xfns.c (image_ascent): Rearrange ascent calculation for the
6263 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
6265 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
6266 (where_is_internal_1): Don't bother ignoring menu-items any more.
6268 2000-10-04 Gerd Moellmann <gerd@gnu.org>
6270 * keyboard.c (update_menu_bindings): New variable.
6271 (parse_menu_item): Use AREF. If update_menu_bindings
6272 is 0, don't update menu bindings.
6273 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
6275 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
6277 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
6280 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
6282 * syntax.c (forw_comment): Match nestedness of ender/starter.
6283 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
6284 (prev_char_comstart_first): Remove.
6285 (back_comment): Check two-char comment markers more carefully
6286 to better handle overlapping cases like *//* or /* */* */ ...
6287 Match nestedness of ender/starter.
6289 2000-10-02 Dave Love <fx@gnu.org>
6291 * config.in (HAVE_GAI_STRERROR): Add undef.
6293 * process.c (Fopen_network_stream): Use it.
6295 * m/alpha.h (NO_REMAP): Don't define.
6297 2000-10-02 Gerd Moellmann <gerd@gnu.org>
6299 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
6300 return with a string converted to an integer or vice versa when
6301 Vmocklisp_arguments is t.
6302 (Fsignal): Likewise. The function can return for `quit'.
6303 (struct gcpro): Declare member `var' to point to a volatile
6306 * eval.c (error): Prevent compiler warning.
6308 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
6310 * keymap.c (keymap_memberp): New function.
6311 (Fset_keymap_parent): Use it.
6312 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
6313 Use keymap_memberp to avoid creating cycles.
6314 (access_keymap): Use KEYMAPP.
6316 2000-09-30 Gerd Moellmann <gerd@gnu.org>
6318 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
6319 gai_strerror. Make sure xerrno is set if connect fails. Improve
6322 2000-09-29 Jason Rumney <jasonr@gnu.org>
6324 * w32term.c (w32_char_font_type, w32_encode_char)
6325 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
6326 (w32_bdf_per_char_metric): New function.
6327 (w32_per_char_metric): Use it.
6328 (x_draw_glyph_string_background): Always draw background for BDF
6331 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
6332 GDI object which is a scarce resource.
6334 * w32bdf.c (search_file_line): Fix skipping of whitespace.
6335 (get_quoted_string): Fix limit on memchr search.
6336 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
6337 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
6338 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
6339 (get_cached_font_char, cache_char_offset): Use macro
6340 BDF_CODEPOINT_RANGE_COVER_P.
6341 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
6342 (clear_cached_bitmap_slots): New function.
6343 (GET_HEX_VALUE): G-Z, g-z are not hex.
6344 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
6345 (get_bitmap_with_cache): Use new cache implementation.
6346 (create_offscreen_bitmap): New function.
6347 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
6349 * w32term.c (x_produce_glyphs): If the distance from the current
6350 position to the next tab stop is less than a canonical character
6351 width, use the tab stop after that.
6352 (x_draw_glyphs): Handle case START and END are out of bounds more
6354 (x_clear_mouse_face): Block/unblock input.
6355 (x_display_and_set_cursor): Don't show a hollow box cursor for
6356 buffers whose cursor_type is nil.
6358 2000-09-29 Gerd Moellmann <gerd@gnu.org>
6360 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
6362 * dispextern.h (updating_frame): Declare extern.
6364 2000-09-29 Andreas Schwab <schwab@suse.de>
6366 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
6368 2000-09-29 Gerd Moellmann <gerd@gnu.org>
6370 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
6371 use its function definition.
6372 (tool_bar_items): Likewise.
6374 * lisp.h (fatal): Declare NO_RETURN.
6376 2000-09-29 Kenichi Handa <handa@etl.go.jp>
6378 * keymap.c: Remove the line "#undef NULL".
6380 2000-09-28 Gerd Moellmann <gerd@gnu.org>
6382 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
6384 2000-09-28 Dave Love <fx@gnu.org>
6386 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
6388 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
6390 * .gdbinit (xreload): Note its need on GNU/Linux.
6392 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
6393 r_alloc, r_alloc_free.
6395 2000-09-28 Kenichi Handa <handa@etl.go.jp>
6397 * syntax.c (skip_chars): Handle negation correctly.
6399 2000-09-27 Gerd Moellmann <gerd@gnu.org>
6401 * xfaces.c (realize_default_face): Call set_lface_from_font_name
6402 with non-zero FORCE_P argument.
6404 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
6407 * xdisp.c (window_box_height): Add an assertion.
6409 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
6410 tool-bar than is available.
6411 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
6413 2000-09-27 Dave Love <fx@gnu.org>
6415 * s/irix6-5.h: Now works 64-bit. Tidied.
6417 2000-09-26 Gerd Moellmann <gerd@gnu.org>
6419 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
6420 instead of BITS_PER_INT.
6421 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
6422 EMACS_UINT, respectively.
6423 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
6425 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
6427 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
6429 * window.c (freeze_window_starts): Construct last argument for
6430 foreach_window differently.
6432 * xfns.c (x_decode_color): Don't return a Lisp_Object.
6434 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
6435 EMACS_UINT instead of `int' and `unsigned int'.
6436 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
6438 * frame.h (struct frame): Make the `nothing' member of union
6439 output_data an EMACS_INT.
6441 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
6442 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
6443 size in the sdata structure.
6444 (SDATA_NBYTES, SDATA_DATA): New macros.
6445 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
6446 differently for the different layout of the sdata structure.
6447 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
6449 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
6450 Check that size recorded in the string size and size recorded in
6451 the sdata structure agree.
6453 2000-09-25 Dave Love <fx@gnu.org>
6455 * buffer.c: Include stdio.h.
6457 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
6459 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
6461 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
6462 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
6463 (__malloc_extra_blocks): Declare as __malloc_size_t.
6465 2000-09-25 Gerd Moellmann <gerd@gnu.org>
6467 * alloc.c (mark_image): Use GC_NILP instead of NILP.
6469 * keyboard.c (show_help_echo): Set help_echo_showing_p.
6470 (read_char): If help-echo is showing, preserve the echo area
6473 * xdisp.c (help_echo_showing_p): New variable.
6474 (set_message): Reset it to 0.
6475 (init_xdisp): Initialize help_echo_showing_p.
6477 * dispextern.h (help_echo_showing_p): Declare extern.
6479 * config.in: Fix typo in __GNUC_MINOR__.
6481 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
6483 * s/freebsd.h (POSIX_SIGNALS): Define.
6485 * xterm.c (x_clear_mouse_face): Block/unblock input.
6487 2000-09-24 Dave Love <fx@gnu.org>
6489 * fns.c (base64_encode_1): Fix last change.
6491 2000-09-22 Gerd Moellmann <gerd@gnu.org>
6493 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
6495 * xdisp.c (try_window_reusing_current_matrix): More fixes
6496 for the case window has a header-line.
6498 2000-09-22 Dave Love <fx@gnu.org>
6500 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
6503 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
6505 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
6507 2000-09-21 Gerd Moellmann <gerd@gnu.org>
6509 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
6512 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
6515 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
6516 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
6517 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
6520 * marker.c (byte_char_debug_check): Return void.
6522 * xfns.c (Fx_create_frame): Set default frame parameter value
6523 for tool-bar-lines to 1.
6525 * dispnew.c (scrolling_window): Compare y-positions of rows
6526 equal at the start. Some simplification.
6528 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
6529 reused rows' y-position in the case window has a header-line, and
6530 new window start is greater than old window start.
6532 * process.c (process_sent_to): New variable.
6533 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
6534 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
6535 Declare more parameters volatile.
6537 * lread.c (Vrecursive_load_depth_limit): New variable.
6538 (Fload): Check recursive loads whose recursion depth exceeds
6539 Vrecursive_load_depth_limit.
6540 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
6542 2000-09-20 Gerd Moellmann <gerd@gnu.org>
6544 * fileio.c (Fread_file_name): Doc fix.
6546 * editfns.c (Fmessage_or_box): Doc fix.
6548 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
6550 * xfns.c (xbm_scan): Allow C-style comments.
6552 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
6553 symbols are specified, add color translations to the cache.
6554 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
6555 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
6557 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
6558 structures to xpm_init_color_cache.
6560 2000-09-19 Gerd Moellmann <gerd@gnu.org>
6562 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
6564 2000-09-19 Andrew Innes <andrewi@gnu.org>
6566 * makefile.nt (bootstrap-emacs): Don't change directory.
6568 2000-09-19 Kenichi Handa <handa@etl.go.jp>
6570 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
6572 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
6573 If output buffer is too small, signal an appropriated error.
6575 2000-09-18 Dave Love <fx@gnu.org>
6577 * keyboard.c (menu_bar_items, tool_bar_items)
6578 (current_active_maps): Remove redundant get_local_map call.
6580 2000-09-18 Gerd Moellmann <gerd@gnu.org>
6582 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
6583 cursor for buffers whose cursor_type is nil.
6585 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
6586 a feature to implement that is already implemented.
6587 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
6590 * xfns.c (x_clear_image_1): New function.
6591 (x_clear_image): Use it.
6592 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6594 * dispnew.c (update_window): Move test for invisible lines
6595 at the top to update_window_line.
6596 (update_window_line): Handle invisible lines here.
6598 * xfns.c (clear_image_cache): Clear current matrices of all
6599 frames sharing an image cache. Block input while freeing
6600 images. Fix timestamp comparison.
6601 (x_clear_image): Also free the mask.
6603 * xfns.c (lookup_image): Block input while loading the image so
6604 that we won't get interrupted in a state where the image isn't yet
6606 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
6607 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
6608 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
6609 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
6611 2000-09-16 Gerd Moellmann <gerd@gnu.org>
6613 * dispnew.c (update_window): Make sure to make desired rows
6614 current even if they are completely invisible at the top
6617 2000-09-15 Gerd Moellmann <gerd@gnu.org>
6619 * xfns.c (lookup_image): Build mask before applying an algorithm.
6620 Recognize algorithm `disabled'.
6621 (cross_disabled_images): New variable.
6622 (COLOR_INTENSITY): New macro.
6623 (x_detect_edges): Use COLOR_INTENSITY.
6624 (x_disable_image): New function.
6625 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
6627 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
6628 disabled state, don't apply an image transformation algorithm if
6629 the user specified an image for the disabled state. Use
6630 `:algorithm disabled' for creating a disabled item's image if the
6631 user hasn't specified an image.
6633 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
6634 allocation functions with the XPM lib.
6635 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
6636 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
6637 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
6638 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
6639 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
6640 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
6641 functions, if possible, because these handle color allocation
6642 failure more gracefully.
6643 (Fimage_mask_p): New function.
6645 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
6646 (Qedge_detection, Qheuristic): New symbols.
6647 (syms_of_xfns): Initialize new symbols.
6648 (lookup_image): Handle `:mask X', `:algorithm emboss', and
6649 `algorithm (edge-detection ...)'.
6650 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
6651 (tiff_format, gif_format, gs_format): Add `:mask'.
6652 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
6653 (GIF_MASK, GS_MASK): New enumerators.
6654 (x_laplace_read_row, x_laplace_write_row): Functions removed.
6655 (emboss_matrix, laplace_matrix): New variables.
6656 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
6657 (x_edge_detection): New functions.
6658 (x_laplace): Rewritten in terms of x_detect_edges.
6659 (x_build_heuristic_mask): If image has a mask, free it.
6661 2000-09-14 Andrew Innes <andrewi@gnu.org>
6663 * makefile.w32-in: Revert to Unix line endings.
6665 2000-09-14 Andrew Innes <andrewi@gnu.org>
6667 * makefile.w32-in: Standardize indentation somewhat.
6668 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
6669 cater for differences between shells.
6671 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
6673 2000-09-14 Gerd Moellmann <gerd@gnu.org>
6675 * xterm.c (x_produce_glyphs): If the distance from the current
6676 position to the next tab stop is less than a canonical character
6677 width, use the tab stop after that.
6679 2000-09-14 Dave Love <fx@gnu.org>
6681 * buffer.c (alloc_buffer_text): Fix xmalloc call.
6683 2000-09-14 Gerd Moellmann <gerd@gnu.org>
6685 * xdisp.c (handle_fontified_prop): While running fontification
6686 functions, bind `fontification-functions' and
6687 `after-change-functions' to nil.
6689 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
6690 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
6692 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
6694 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
6695 USE_MMAP_FOR_BUFFERS.
6697 * insdel.c (make_gap): Use enlarge_buffer_text.
6699 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
6700 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
6701 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
6702 from former r_alloc_* functions in ralloc.c.
6703 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
6704 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
6705 (mmap_init) [REL_ALLOC_MMAP]: New function.
6706 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
6707 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
6710 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
6711 (enlarge_buffer_text): Add prototype.
6713 * ralloc.c: Remove everything having to do with the use of mmap.
6715 2000-09-13 Gerd Moellmann <gerd@gnu.org>
6717 * sound.c (Fplay_sound): Doc fix.
6719 * keyboard.c: Avoid some more compiler warnings.
6720 (parse_tool_bar_item): Ignore cached key bindings.
6722 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
6723 and allocation of Lisp data.
6725 2000-09-12 Gerd Moellmann <gerd@gnu.org>
6727 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
6728 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
6731 * lread.c (Fload): Put code checking for recursive loads in #if 0.
6733 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
6735 * ccl.c: Comment fixed.
6736 (MAX_MAP_SET_LEVEL): Increased to 30.
6737 (PUSH_MAPPING_STACK): Enclose with do-while block.
6738 (POP_MAPPING_STACK): Likewise.
6739 (stack_idx_of_map_multiple): New variable.
6740 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
6741 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
6742 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
6743 (ccl_driver) <CCL_MapSingle>: Likewise.
6744 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
6745 with the case where looking up process reaches to the end of
6746 map-set, and call CCL programs as the above change.
6748 2000-09-11 Gerd Moellmann <gerd@gnu.org>
6750 * xfns.c (png_load, jpeg_load): Declare some variables volatile
6751 that might be clobbered by longjmp.
6752 (check_x_display_info, x_decode_color, create_frame_xic)
6753 (Fx_display_backing_store, Fx_display_visual_class)
6754 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
6756 * lread.c (init_lread): Set Vloads_in_progress to nil.
6757 (Fload): Show list of recursively loaded files, when signaling an
6760 * lread.c (Vloads_in_progress): New variable.
6761 (record_load_unwind): New function.
6762 (Fload): Check for recursive loads.
6763 (syms_of_lread): Initialize Vloads_in_progress.
6764 (read_integer, read1): Avoid some compiler warnings.
6766 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
6769 2000-09-11 Miles Bader <miles@gnu.org>
6771 * editfns.c (Fbuffer_string): Doc fix.
6773 2000-09-10 Gerd Moellmann <gerd@gnu.org>
6775 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
6777 2000-09-09 Ken Raeburn <raeburn@gnu.org>
6779 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
6780 whether to include other header files.
6782 2000-09-09 Gerd Moellmann <gerd@gnu.org>
6784 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
6785 by Fmemq as a boolean.
6787 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
6789 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
6791 2000-09-08 Gerd Moellmann <gerd@gnu.org>
6793 * ralloc.c (mmap_fd): Remove initializer which can make it
6794 read-only in a dumped Emacs.
6795 (mmap_fd_1): New variable.
6796 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
6797 restore it from there.
6798 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
6799 unconditionally so that mmap_fd can be initialized there.
6800 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
6801 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
6802 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
6804 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
6806 * xdisp.c (dump_glyph_row): Fix printf format string.
6807 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
6809 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
6811 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
6814 * xdisp.c (try_window_id): When trying to locate cursor in
6815 unchanged rows at the top, handle the case that we can't find it.
6817 * xterm.c (x_draw_glyphs): Handle case START and END are out
6818 of bounds more carefully.
6820 2000-09-08 Dave Love <fx@gnu.org>
6822 * s/sol2.h (REL_ALLOC_MMAP): Define.
6823 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
6825 * ralloc.c: Don't include string.h (redundant).
6826 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
6827 [!MAP_ANON]: Include fcntl.h.
6828 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
6829 (r_alloc, r_re_alloc, r_alloc_free)
6830 (mmap_enlarge, mmap_set_vars): Use it.
6831 (r_alloc_init_fd): New function.
6832 (__morecore) [SYSTEM_MALLOC]: Don't declare.
6833 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
6836 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
6839 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
6840 change to __NetBSD__.
6842 2000-09-08 Kenichi Handa <handa@etl.go.jp>
6844 * search.c (compile_pattern): Check the multibyteness of cached
6847 2000-09-08 Miles Bader <miles@gnu.org>
6849 * xfaces.c (default_face_vector): Function removed.
6850 (Finternal_merge_in_global_face): Restore old global/local
6851 attribute override order. Use inline loop instead of calling
6852 default_face_vector.
6854 2000-09-07 Gerd Moellmann <gerd@gnu.org>
6856 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
6857 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
6858 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
6859 where necessary, in case POINTER_TYPE is `void'.
6861 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
6863 * frame.c (make_terminal_frame): Initialize frame foreground and
6864 background colors to unspecified, for the initial instance of an
6867 2000-09-07 Gerd Moellmann <gerd@gnu.org>
6869 * ralloc.c (mmap_find): Fix overlap computation.
6870 (mmap_enlarge): Compute nbytes before trying to find an
6873 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
6876 * lread.c (syms_of_lread): Change value of regexp
6877 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
6879 * xmenu.c (xdialog_show): When looking up the selection in
6880 menu_items, take `quote' boundaries into account; this corresponds
6881 to a nil ITEM in x-popup-dialog.
6883 2000-09-07 Kenichi Handa <handa@etl.go.jp>
6885 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
6887 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
6889 * coding.c (encode_coding_sjis_big5): Use translation table for
6890 encoding, not decoding. Fix the handling of latin-jisx0201.
6891 Check for the charset katakana-jisx0201 too.
6892 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
6893 (detect_coding_sjis): Check the byte sequence more rigidly.
6895 2000-09-07 Gerd Moellmann <gerd@gnu.org>
6897 * xfaces.c (Vparam_value_alist): New variable.
6898 (syms_of_xfaces): Initialize it.
6899 (Finternal_set_lisp_face_attribute): Avoid more consing.
6901 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
6903 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
6904 (Qbackground_mode): New variable.
6905 (syms_of_frame_1): Initialize Qbackground_mode.
6907 * lisp.h (Qdisplay): Declare extern.
6909 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
6910 change face on all frames, and change the default for new frames.
6912 2000-09-07 Dave Love <fx@gnu.org>
6914 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
6916 2000-09-07 Kenichi Handa <handa@etl.go.jp>
6918 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
6920 * charset.c: Include composite.h
6921 (lisp_string_width): New function.
6922 (Fstring_width): Call lisp_string_width instead of strwidth.
6924 * Makefile.in (charset.o): Depends on composite.h.
6926 * process.c (read_process_output): Before inserting the decoded
6927 text in the buffer, adjust the multibyteness.
6929 2000-09-06 Gerd Moellmann <gerd@gnu.org>
6931 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
6932 buffer's text buffer is null, map new memory.
6934 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
6935 POINTER_TYPE and size_t.
6936 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
6937 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
6938 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
6939 [REL_ALLOC_MMAP]: New macros.
6940 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
6941 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
6942 [REL_ALLOC_MMAP]: New functions.
6944 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
6945 before and after unexec.
6947 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
6948 text buffers if necessary.
6950 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
6951 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
6954 * config.in (HAVE_MMAP): Add #undef.
6956 2000-09-05 Gerd Moellmann <gerd@gnu.org>
6958 * frame.c (Qdisplay_type): New variable.
6959 (syms_of_frame_1): Initialize it.
6960 (Fframe_parameter): New function that avoids consing.
6961 (syms_of_frame): Defsubr it.
6963 * buffer.c (Fother_buffer): Consider buffers as invisible when
6964 they are displayed in a window on an invisible frame.
6966 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
6967 get-largest-window always return nil.
6969 2000-09-04 Gerd Moellmann <gerd@gnu.org>
6971 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
6972 variable; recognize Emacs 19 elc files.
6974 2000-09-04 Miles Bader <miles@gnu.org>
6976 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
6977 before initially popping up the menu, so the menu doesn't flash
6978 when the face settings are significantly different from the defaults.
6980 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
6982 * regex.c (WIDE_CHAR_SUPPORT): New macro.
6983 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
6984 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
6985 (BIT_UNIBYTE): Remove.
6986 (re_match_2_internal): Delete corresponding code and streamline the
6987 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
6988 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
6989 (re_wctype_t): New type.
6990 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
6991 (regex_compile): Use them and fix handling of overly long char classes.
6993 2000-09-03 Andrew Innes <andrewi@gnu.org>
6995 * makefile.w32-in: Change to DOS line endings.
6997 * s/ms-w32.h (ORDINARY_LINK): New define.
6999 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
7000 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
7002 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
7003 (distclean): Delete them here instead.
7005 * w32proc.c (compare_env): Convert to uppercase for comparison,
7006 not lowercase, to match how the native Windows shell works.
7008 2000-09-03 Jason Rumney <jasonr@gnu.org>
7010 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
7011 CVS changes the line-ends when checking in/out on DOS/Windows.
7013 * makefile.nt (emacs): Do not change directory to run temacs, as
7014 the load-path is set relative to current directory.
7016 2000-09-03 Miles Bader <miles@gnu.org>
7018 * xterm.c (x_alloc_lighter_color_for_widget): New function.
7020 2000-09-02 Gerd Moellmann <gerd@gnu.org>
7022 * xdisp.c (redisplay_mode_lines): New function.
7023 (display_mode_lines): Return number of mode lines displayed.
7024 (echo_area_display): Use redisplay_mode_lines to draw garbaged
7025 mode lines. Don't temporarily bind redisplay-dont-pause to t.
7027 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
7028 string.h and strings.h.
7029 (index) [HAVE_INDEX]: Add prototype.
7031 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
7032 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
7034 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
7035 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7037 2000-09-01 Gerd Moellmann <gerd@gnu.org>
7039 * lread.c (read1): Accept `?' as symbol constituent, for
7040 compatiblity with XEmacs.
7042 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
7044 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
7045 (struct re_pattern_buffer): Remove newline_anchor.
7046 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
7047 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
7048 (re_max_failures, fail_stack): Use size_t rather than unsigned.
7049 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
7050 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
7051 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
7052 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
7053 Get rid of references to newline_anchor.
7054 (regcomp): Allocate and precompute a fastmap.
7056 2000-08-31 Gerd Moellmann <gerd@gnu.org>
7058 * lread.c (openp): GCPRO local variable `filename'.
7060 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
7062 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
7064 * regex.c: Merge some changes from GNU libc. Add prototypes.
7065 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
7066 Use memcmp and memcpy instead of bcopy and bcmp.
7067 (init_syntax_once): Use ISALNUM.
7068 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
7069 (REG_UNSET_VALUE): Remove. Use NULL instead.
7070 (REG_UNSET, re_match_2_internal): Use NULL.
7071 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
7073 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
7074 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
7075 (regex_compile): In handle_interval, return an error rather than try to
7076 unfetch the interval if we can't find the closing brace.
7077 Obey the RE_NO_GNU_OPS syntax bit.
7078 (TOLOWER): New macro.
7080 (regexec): Allocate regs.start and regs.end as one block.
7082 2000-08-30 Gerd Moellmann <gerd@gnu.org>
7084 * xdisp.c (echo_area_display): Check display_completed instead
7085 of calling detect_input_pending.
7087 * dispnew.c (update_frame): Only set display_completed here; move
7088 the update_begin and update_end calls here from update_frame_1.
7089 (update_frame_1): Don't set display_completed here, don't call
7090 update_begin/update_end.
7092 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
7093 instead of store_frame_param.
7095 2000-08-29 Gerd Moellmann <gerd@gnu.org>
7097 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
7098 desired window matrix hasn't been displayed, use the current row
7099 instead. Make sure that only those frame rows are updated for
7100 which there exists a corresponding enabled desired row.
7102 2000-08-29 Miles Bader <miles@gnu.org>
7104 * xfaces.c (default_face_vector): New function.
7105 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
7107 2000-08-29 Gerd Moellmann <gerd@gnu.org>
7109 * lread.c (openp): Prevent temporary string passed to
7110 Ffile_readable_p from being garbage collected.
7112 2000-08-28 Dave Love <fx@gnu.org>
7114 * keymap.c (store_in_keymap): Add `static' to declaration.
7116 2000-08-28 Gerd Moellmann <gerd@gnu.org>
7118 * emacs.c, callint.c, doc.c, editfns.c
7119 (toplevel) [HAVE_STRING_H]: Include string.h.
7120 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
7121 (index): Remove prototypes which might conflict with non-standard
7122 definitions of index/strchr.
7124 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
7125 (rindex): Define only if !HAVE_RINDEX.
7127 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
7129 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
7131 2000-08-28 Miles Bader <miles@gnu.org>
7133 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
7134 made inconsistent by a font-related attribute in FROM.
7135 (merge_face_inheritance): Add function comment.
7137 2000-08-28 Kenichi Handa <handa@etl.go.jp>
7139 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
7140 the 4th arg (PREV_EVENT) Qt to suppress input method.
7142 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
7144 * regex.c: Indent cpp directives and remove parens after `defined'.
7145 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
7146 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
7147 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
7148 (re_compile_pattern): Use size_t for length.
7149 (init_syntax_once): Move to a better place.
7150 * regex.h: Merge changes from GNU libc. Indent cpp directives.
7151 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
7153 * syntax.c (back_comment): Detect cases where a comment-starter is
7154 actually inside another comment as in: /* a // b */ c // d \n.
7155 Make it clear that `comstart_pos' is unused for nested comments.
7157 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
7158 (KEYMAPP): New macro.
7159 (Fkeymap_parent, Fset_keymap_parent): Use it.
7160 (fix_submap_inheritance): Mark it static.
7161 (define_as_prefix, describe_buffer_bindings, describe_command)
7162 (describe_translation, describe_map): Complete prototypes.
7164 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
7166 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
7167 to better match the key-lookup behavior.
7169 2000-08-27 Gerd Moellmann <gerd@gnu.org>
7171 * xfaces.c (lface_fully_specified_p): Handle :inherit.
7172 (Finternal_set_lisp_face_attribute): Fix typo in error message.
7174 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
7176 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
7177 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
7178 (xterm.o): Depend on coding.h
7180 2000-08-26 Kenichi Handa <handa@etl.go.jp>
7182 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
7183 the corresponding '#endif'.
7185 2000-08-26 Miles Bader <miles@gnu.org>
7187 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
7188 * xfaces.c (QCinherit): New variable.
7189 (syms_of_xfaces): Initialize it.
7190 (LFACE_INHERIT): New macro.
7191 (Finternal_get_lisp_face_attribute)
7192 (merge_face_vector_with_property)
7193 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
7194 (check_lface_attrs): Allow new types of face height. Check
7196 (CYCLE_CHECK): New macro.
7197 (merge_face_inheritance): New function.
7198 (merge_face_vectors): Merge inherited faces too. Add F and
7199 CYCLE_CHECK arguments.
7200 (merge_face_vector_with_property, Finternal_merge_in_global_face)
7201 (lookup_named_face, lookup_derived_face, realize_named_face)
7202 (face_at_string_position, face_at_buffer_position): Supply
7203 new F and CYCLE_CHECK arguments to merge_face_vectors.
7204 (merge_face_heights): New function.
7205 (merge_face_vectors, merge_face_vector_with_property)
7206 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
7207 handle relative face heights.
7208 (lface_same_font_attributes_p): Compare heights using EQ.
7210 2000-08-26 Kenichi Handa <handa@etl.go.jp>
7212 * charset.c (char_to_string): Check the character validity.
7213 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
7215 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
7217 * regex.c (PUSH_FAILURE_COUNT): New macro.
7218 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
7219 Handle popping of a register's or a counter's data.
7220 (POP_FAILURE_POINT): Use the new name.
7221 (re_match_2_internal): Push counter data on the stack for succeed_n,
7222 jump_n and set_number_at and remove misleading dead code in succeed_n.
7224 2000-08-25 Gerd Moellmann <gerd@gnu.org>
7226 * xdisp.c (redisplay_internal): If considering all windows on all
7227 frames, update the display for each frame as soon as possible,
7228 instead of first building all desired matrices for all frames, and
7229 then updating them all.
7230 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
7232 2000-08-24 Gerd Moellmann <gerd@gnu.org>
7234 * bytecode.c (mark_byte_stack): Add a comment.
7236 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
7237 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
7240 2000-08-24 Kenichi Handa <handa@etl.go.jp>
7242 * minibuf.c (do_completion): Always use compare-string, not
7243 string-equal because the latter doesn't pay attention to
7244 multibyteness of strings.
7246 * process.c (create_process): Don't setup raw-text coding here.
7247 (Fopen_network_stream): Don't set coding->src_multibyte and
7248 coding->dst_multibyte here.
7249 (read_process_output): For process filter, return unibyte string
7250 if default-enable-multibyte-characters is nil.
7251 (send_process): If OBJECT is multibyte text, be sure to encoded it
7252 by the specified coding system for the process. Otherwise, setup
7254 (init_process): Don't initialize default-process-coding-system here.
7256 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
7258 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
7259 <scroll-down-aggressively>: Likewise.
7261 2000-08-23 Kenichi Handa <handa@etl.go.jp>
7263 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
7264 zero. Set coding->produced_char correctly.
7266 2000-08-22 Andrew Innes <andrewi@gnu.org>
7268 * makefile.w32-in: New file.
7270 * unexw32.c (unexec): Ignore old_name, and use the actual location
7271 of the current executable instead. Base new_name on this.
7273 * w32proc.c (create_child): Remove reference to security
7274 descriptor, which isn't needed and doesn't compile with mingw32.
7276 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7277 up dllimport attributes.
7278 (x_update_window_end): Update prototype.
7280 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
7281 extern, which screws up dllimport attributes.
7283 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7284 up dllimport attributes.
7286 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
7287 screws up dllimport attributes.
7289 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7290 up dllimport attributes.
7291 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
7292 screws up dllimport attributes.
7294 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7295 up dllimport attributes.
7297 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
7298 screws up dllimport attributes.
7300 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
7301 screws up dllimport attributes.
7303 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7304 up dllimport attributes.
7306 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
7307 unnecessary extern, which screws up dllimport attributes.
7310 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7311 up dllimport attributes.
7313 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
7314 unnecessary extern, which screws up dllimport attributes.
7316 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
7317 screws up dllimport attributes.
7319 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7320 up dllimport attributes.
7322 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
7324 * w32bdf.c (search_file_line):
7325 (set_bdf_font_info):
7327 (w32_get_bdf_glyph):
7328 (w32_BDF_to_x_font): Fix compile warnings.
7330 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
7332 * w32select.c: Include keyboard.h before frame.h.
7334 * w32fns.c (max): Define macro.
7335 (JOHAB_CHARSET): Define if not known.
7336 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
7337 (Fx_show_tip): Synch with X version.
7339 * w32xfns.c: Include keyboard.h before frame.h.
7341 * w32fns.c: Include keyboard.h before frame.h.
7343 * w32term.c: Include keyboard.h before frame.h.
7345 * fontset.c: Include keyboard.h before frame.h.
7347 * w32inevt.c: Include keyboard.h before frame.h.
7348 (MOUSE_MOVED): Define if not known.
7350 * minibuf.c: Include keyboard.h before frame.h.
7352 * keyboard.c: Include keyboard.h before frame.h.
7354 * indent.c: Include keyboard.h before frame.h.
7356 * dispnew.c: Include keyboard.h before frame.h.
7358 * buffer.c: Include keyboard.h before frame.h.
7360 * alloc.c: Include keyboard.h before frame.h.
7362 * print.c: Include keyboard.h before frame.h.
7364 * process.c: Include keyboard.h before frame.h.
7366 * scroll.c: Include keyboard.h before frame.h.
7368 * sysdep.c: Include keyboard.h before frame.h.
7370 * term.c: Include keyboard.h before frame.h.
7372 * window.c: Include keyboard.h before frame.h.
7374 * xdisp.c: Include keyboard.h before frame.h.
7375 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
7377 * frame.c: Include keyboard.h before frame.h.
7379 * w32heap.h: Undefine min, max.
7381 * w32gui.h: Undefine min, max.
7383 * unexw32.c: Change PUCHAR to PCHAR.
7384 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
7387 (copy_executable_and_dump_data): Remove unnecessary static defs.
7388 (copy_executable_and_dump_data): Fix compile warnings.
7390 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
7392 * w32console.c (min): Define macro.
7393 (clear_frame, write_glyphs): Fix compile warning.
7395 * w32proc.c (compare_env):
7396 (find_child_console): Fix compile warning.
7398 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
7399 sys_errlist instead of _sys_errlist.
7400 (get_emacs_configuration_options): New function.
7402 * s/ms-w32.h (sys_nerr): Provide default definition.
7403 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
7404 name with _ prepended.
7405 (NSIG): Define if not known.
7406 (get_emacs_configuration): Provide extern declaration.
7407 (get_emacs_configuration_options): Provide extern declaration.
7408 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
7410 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
7412 (read_unc_volume): Fix compile warning.
7414 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
7415 definitions from being used.
7417 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
7419 * w32.c (unc_volume_file_attributes):
7420 (open_unc_volume): Make arg const.
7422 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
7423 (read_input_waiting): Remove excess parameter.
7425 * w32.c (init_environment): Call _access.
7426 (check_windows_init_file): Call _close.
7427 (init_user_info): Call _putenv.
7428 (init_environment): Call _putenv and _strdup.
7429 (init_ntproc): Reset volume info cache on startup.
7431 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
7432 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
7433 cannot override the CRT malloc.
7435 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
7436 (LINK_FLAGS): Append to original value of LINK_FLAGS.
7438 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
7439 unless we are linking with a static CRT.
7440 (RVA_TO_PTR): Cast result to unsigned char*.
7442 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
7443 (add_volume_info): Use xstrdup.
7445 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
7447 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
7448 (do_completion, Fminibuffer_complete_word): Use it.
7449 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
7450 var so it can take non-boolean values.
7452 2000-08-21 Gerd Moellmann <gerd@gnu.org>
7454 * editfns.c (find_field): Formatting changes.
7455 (toplevel): Some old-style function forward declarations
7456 changed to prototypes, some new protypes added, some functions
7459 * lisp.h (set_time_zone_rule): Add prototype.
7460 (use_dialog_box): External declaration.
7462 * keyboard.c (gen_help_event): Add parameter SIZE.
7463 (kbd_buffer_events_waiting): Slightly rewritten.
7464 (clear_event): New function.
7465 (kbd_buffer_get_event): Use it, and clear the input_events of
7467 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
7468 don't fill the newly created array with nils.
7469 (toplevel): Convert some old-style function forward declarations
7472 * keyboard.h (gen_help_event): Change prototype.
7474 * xterm.c (XTread_socket): Change calls to gen_help_event.
7476 * w32term.c (w32_read_socket): Change calls to gen_help_event.
7478 * eval.c (Fmacroexpand): Doc fix.
7480 2000-08-20 Jason Rumney <jasonr@gnu.org>
7482 * w32term.h (x_display_info_for_display): Remove as this function
7483 does not exist on W32.
7485 * w32term.c (help_echo_window): New variable.
7486 (syms_of_w32term): staticpro it.
7487 (note_mode_line_highlight): Set it.
7488 (XTextExtents16): Removed as there is no equivalent on W32.
7489 (x_compute_glyph_string_overhangs): Incomplete body removed, as
7490 the X way of doing this will not work for W32.
7491 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
7492 (x_draw_image_foreground): Avoid drawing outside of the clip area
7493 when image doesn't have a mask.
7494 (note_mouse_highlight): Process overlays in the right order of
7495 priority. Set help_echo_window.
7496 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
7497 because that's more visible for large images.
7499 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
7500 name to single_keymap_panes.
7501 (w32_menu_show): Set wv->title when dealing with titles.
7502 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
7504 2000-08-21 Miles Bader <miles@gnu.org>
7506 * minibuf.c (do_completion): Try again if we rewrite the input
7507 string, but no completion was done, so that any completion message
7510 2000-08-20 Gerd Moellmann <gerd@gnu.org>
7512 * xfaces.c (lface_equal_p): Compare strings differently.
7513 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
7514 (realize_tty_face): Use them.
7515 (syms_of_xfaces): Initialize new variables.
7516 (map_tty_color): New function, extracted from realize_tty_face.
7517 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
7518 foreground or background color, store the new color name in the
7519 realized face; previous code trying to do this had no effect.
7520 (realize_tty_face): Use map_tty_color.
7521 (Fclear_face_cache): Set face_change_count and ensure thorough
7524 2000-08-19 Gerd Moellmann <gerd@gnu.org>
7526 * undo.c (record_first_change, record_marker_adjustment): Don't
7527 use XBUFFER on last_undo_buffer which might not be a buffer.
7529 2000-08-18 Kenichi Handa <handa@etl.go.jp>
7531 * coding.c (decode_coding_string): Set members consumed,
7532 consumed_char, produced, produced_char of *coding correctly. If
7533 decode_coding doesn't consume any byte, don't try anymore.
7534 (encode_coding_string): Likewise.
7536 2000-08-18 Gerd Moellmann <gerd@gnu.org>
7538 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
7539 conditional have void type, for Standard C compilers.
7541 * xdisp.c (redisplay_internal): Compare windows for equality with
7542 EQ, instead of applying XWINDOW to something that might not
7545 2000-08-18 Kenichi Handa <handa@etl.go.jp>
7547 * fontset.c (Finternal_char_font): Search only the selected frame
7548 for a window of the current buffer.
7550 2000-08-18 Gerd Moellmann <gerd@gnu.org>
7552 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
7555 * keyboard.c (kbd_buffer_get_event): Handle the case that the
7556 second half of a HELP_EVENT is found at the start of kbd_buffer.
7558 2000-08-18 Miles Bader <miles@gnu.org>
7560 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
7562 * editfns.c (save_restriction_save): Rewrite to use markers.
7563 (save_restriction_restore): Rewrite to understand new form of data
7564 saved by save_restriction_save.
7565 (Fsave_restriction): Remove cautionary note in doc-string.
7567 2000-08-17 Gerd Moellmann <gerd@gnu.org>
7569 * fileio.c (build_annotations): Add a comment explaining the
7570 return value of format-annotate-function. Replace a spurious call
7571 to Flength with a CONSP test. Call format-annotate-function with
7572 a fifth arg specifying how many times the function is been called
7573 in a row, to let it choose temporary buffers appropriately.
7575 2000-08-17 Dave Love <fx@gnu.org>
7577 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
7578 declare make_temp_name twice.
7580 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
7581 (unreadpure): Give it an arg.
7583 * unexalpha.c: Prototype fatal_unexec, mark_x,
7584 update_dynamic_symbols. Declare unexec as void.
7586 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
7587 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
7589 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
7590 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
7592 * alloca.c: Use #error.
7593 [POINTER_TYPE]: Use it.
7595 * eval.c (Fdefvar): Doc fix.
7597 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
7598 INITIALIZE_INTERVAL.
7600 * buffer.h: Avoid DECLARE_INTERVALS.
7602 * config.in: Add size_t.
7604 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
7606 * w16select.c (set_clipboard_data): If there's not enough memory
7607 to put text into clipboard, return 1, as Fw16_set_clipboard_data
7608 expects. In case of other failures, return 3.
7609 (system_error_msg): New error message.
7610 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
7613 2000-08-16 Gerd Moellmann <gerd@gnu.org>
7615 * term.c (write_glyphs): Also turn off inverse video after turning
7616 off other appearances in case TS_exit_attribute_mode is not equal
7617 to TS_end_standout_mode.
7618 (insert_glyphs): Turn inverse video on/off for each run of glyphs
7620 (turn_off_face): Reset standout_mode only if
7621 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
7622 is equal to TS_end_standout_mode.
7624 2000-08-16 Kenichi Handa <handa@etl.go.jp>
7626 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
7627 sequence at the end of the source block.
7629 * ccl.c (Fccl_program_p): Docstring modified.
7630 (Fccl_execute): Likewise.
7631 (Fccl_execute_on_string): Likewise.
7633 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
7635 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
7637 2000-08-16 Kenichi Handa <handa@etl.go.jp>
7639 The following changes are mainly to fix bugs of
7640 encode/decode-coding-string failing if encoding/decoding return
7641 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
7642 variable conversion_buffer.
7644 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
7645 decrement dst_end to avoid buffer overflow in the later call of
7648 * coding.h (conversion_buffer_size, conversion_buffer)
7649 (get_conversion_buffer): Extern deleted.
7651 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
7652 (conversion_buffer, conversion_buffer_size): Variables deleted.
7653 (get_conversion_buffer): Function deleted.
7654 (struct conversion_buffer): New structure.
7655 (MAX_ALLOCA): New macro.
7656 (allocate_conversion_buffer): New macro.
7657 (extend_conversion_buffer, free_conversion_buffer): New functions.
7658 (ccl_coding_driver): Set coding->result.
7659 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
7660 this is the last block of source.
7661 (encode_coding): Likewise. Handle the source block as the last
7662 one only when the whole source text is consumed.
7663 (decode_coding_string): Handle the case that the output buffer is
7664 too small to decode the whole source text. Use
7665 allocate_conversion_buffer, extend_conversion_buffer and
7666 free_conversion_buffer, not get_conversion_buffer.
7667 (encode_coding_string): Likewise.
7668 (init_coding): Function deleted.
7669 (init_coding_once): Delete code to initialize conversion_buffer_size.
7671 * emacs.c (main): Don't call init_coding.
7673 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
7675 * term.c (write_glyphs): Use a locally declared conversion_buffer.
7676 (insert_glyphs): Likewise.
7678 * w32console.c (write_glyphs): Use a locally declared
7681 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
7683 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
7684 member of display_info is NULL.
7686 2000-08-15 Gerd Moellmann <gerd@gnu.org>
7688 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
7690 * term.c (turn_off_face): Reset standout_mode when resetting
7691 appearances with capability `me'.
7692 (write_glyphs): Switch on inverse video before each face change.
7694 2000-08-14 Dave Love <fx@gnu.org>
7696 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
7697 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
7698 (lisp_free): Declare and make static.
7700 * window.c: Fix embedded comment.
7701 (syms_of_window): Fix doc string.
7703 2000-08-14 Gerd Moellmann <gerd@gnu.org>
7705 * keymap.c (push_key_description): If C without modifiers is < 32,
7706 make sure to print `C-' before `M-', like in the manual.
7708 2000-08-11 Gerd Moellmann <gerd@gnu.org>
7710 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
7711 since they aren't relocated anymore.
7712 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
7714 * xdisp.c (try_cursor_movement): Fix handling of cursor in
7715 partially visible line which is smaller than the window's height.
7717 2000-08-11 Kenichi Handa <handa@etl.go.jp>
7719 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
7720 the multibyte form of eight-bit-control characters.
7721 (Fccl_execute_on_string): Initialize ccl->multibyte.
7723 * ccl.h (struct ccl_program): New member multibyte.
7725 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
7727 2000-08-11 Kenichi Handa <handa@etl.go.jp>
7729 * regex.c (regex_compile) <normal_char>: Pay attention to
7731 (analyse_first) <exactn>: Setup fastmap correctly for
7732 eight-bit-control characters.
7734 2000-08-11 Kenichi Handa <handa@etl.go.jp>
7736 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
7738 * keyboard.c (make_lispy_event): Handle the new event type
7739 multibyte_char_keystroke.
7741 * xterm.c: Include coding.h.
7742 (XTread_socket): Work around a bug of XmbLookupString. If the
7743 input is from XIM, decode it according to the current locale. In
7744 that case, generate multibyte_char_keystroke events.
7746 2000-08-11 Kenichi Handa <handa@etl.go.jp>
7748 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
7749 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
7751 2000-08-10 Gerd Moellmann <gerd@gnu.org>
7753 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
7754 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
7755 (move_it_in_display_line_to): Record iterator's ascent and descent
7756 before producing glyphs, and restore them when we know the glyph
7757 doesn't fit on the line.
7758 (move_it_to): Restructured so that it's easier to debug. If
7759 moving to a vpos, and not moving to an x or character position,
7760 stop as soon as the specified vpos is reached; don't move further
7761 into that line because that might change the computed line height.
7762 (try_cursor_movement): New function, extracted from the cursor
7763 movement branch of redisplay_window. If ending on a partially
7764 visible line, don't try to scroll if the cursor line is taller
7766 (redisplay_window): Use try_cursor_movement.
7768 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
7769 because that function doesn't cope with variable-height lines.
7771 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
7772 box cursor because that's better visible for large images.
7774 2000-08-10 Miles Bader <miles@gnu.org>
7776 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
7778 2000-08-10 Gerd Moellmann <gerd@gnu.org>
7780 * xdisp.c (Vmessages_buffer_name): New variable.
7781 (message_dolog): Use it.
7782 (syms_of_xdisp): Initialize it.
7784 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
7786 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
7787 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
7788 redundant now that keyboard.h is included.
7790 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
7792 * keyboard.c (kbd_buffer_events_waiting): New function.
7794 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
7796 * msdos.c: Include keyboard.h.
7797 (XMenuActivate): Empty no_event events from the event buffer. If
7798 no events are left after that, call clear_input_pending.
7799 (mouse_clear_clicks): New function, code moved from mouse_init.
7800 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
7801 mouse driver to ``forget'' any past clicks.
7803 * Makefile.in (msdos.o): Depend on keyboard.h.
7805 2000-08-09 Gerd Moellmann <gerd@gnu.org>
7807 * lisp.h (input_pending): External declaration.
7809 * dispextern.h (Qredisplay_dont_pause): Declare extern.
7811 * xdisp.c (echo_area_display): Display thoroughly if input is
7812 pending. Bind redisplay-dont-pause to t during the redisplay.
7813 in case input is pending.
7815 * dispnew.c (Qredisplay_dont_pause): New variable.
7816 (syms_of_display): Initialize and staticpro it.
7817 (update_frame_1): Don't interrupt the display for pending input if
7818 redisplay_dont_pause is set.
7820 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
7822 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
7824 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
7826 * callproc.c (Fcall_process): Terminate the unwind-protect around
7827 the post-read-conversion of coding system.
7829 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
7830 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
7831 * buffer.h (overlays_at): Update prototype.
7832 * xdisp.c (next_overlay_change): Update call to overlays_at.
7833 * xfaces.c (face_at_buffer_position): Likewise.
7834 * textprop.c (Fget_char_property): Likewise.
7835 * xterm.c (note_mouse_highlight): Likewise.
7837 * minibuf.c (do_completion): Don't consider a simple change of
7838 case as `completion'.
7840 2000-08-08 Ken Raeburn <raeburn@gnu.org>
7842 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
7843 * undo.c (record_delete): Make sure last_point_position_buffer is
7844 a buffer before comparing pointers.
7846 * coding.h (decode_coding_string): Declare.
7848 * intervals.h (Fprevious_single_char_property_change): Declare.
7850 * textprop.c (Fprevious_single_char_property_change): Don't do
7851 arithmetic directly on lisp objects.
7853 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
7855 * keyboard.h (menu_item_eval_property): Declare.
7857 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
7858 reuse as buffer name, instead of recreating (and discarding) every
7859 time a message is logged.
7860 (with_echo_area_buffer): Make callback arg A2 a lisp object.
7861 (current_message_1, truncate_message_1, set_message_1)
7862 (display_echo_area_1, resize_mini_window_1): Signatures changed.
7863 (current_message, truncate_echo_area, display_echo_area)
7864 (resize_echo_area_axactly): Changed calls.
7866 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
7868 (Ffind_coding_systems_region_internal): First argument to Fappend
7869 must be an integer, not a Lisp object.
7871 2000-08-08 Kenichi Handa <handa@etl.go.jp>
7873 * charset.c (Fchar_width): Doc fix.
7875 2000-08-08 Gerd Moellmann <gerd@gnu.org>
7877 * charset.c (Fstring_width): Doc fix.
7879 2000-08-07 Gerd Moellmann <gerd@gnu.org>
7881 * xdisp.c (start_display): When starting display on a continuation
7882 line, clear ascent and descent members of the iterator structure;
7883 the height of the continued line does not affect the height of the
7885 (make_cursor_line_fully_visible): Do nothing if cursor is on a
7886 line taller than the window.
7887 (redisplay_window) <forced window start>: Handle case that the
7888 middle of the window is not found in any row.
7889 (dump_glyph_row): Show more information.
7890 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
7891 first text line in a glyph matrix.
7893 * xterm.c (x_draw_image_foreground): Avoid drawing outside
7894 of the clip area when image doesn't have a mask.
7896 * fns.c (sweep_weak_table): Fix survival conditions for
7897 key-or-value and key-and-value weakness.
7899 * .gdbinit (xhashtable): New command.
7901 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
7902 tables out of the list of all weak hash tables.
7904 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
7905 a new buffer is created, make sure echo_area_buffer[] references
7908 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
7910 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
7913 2000-08-07 Kenichi Handa <handa@etl.go.jp>
7915 * syntax.c (skip_chars): Fix previous change. Make the handling
7916 of unibyte string consistent with that of regex search.
7918 2000-08-05 Gerd Moellmann <gerd@gnu.org>
7920 * xmenu.c (popup_get_selection): Use xfree instead of free.
7922 * fileio.c (Finsert_file_contents): Use xfree instead of free.
7924 * editfns.c (Ftranspose_regions): Use xfree instead of free.
7926 * callproc.c (child_setup): Use xfree instead of free.
7928 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
7930 (run_mac_command, closedir): Use `xfree' instead of `free'.
7932 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
7934 * eval.c (error): Use xfree instead of free.
7936 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
7938 * fns.c: Replace `illegal' with `invalid'.
7939 (Fmake_hash_table, make_hash_table): Allow table size of 0.
7941 2000-08-05 Kenichi Handa <handa@etl.go.jp>
7943 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
7946 2000-08-04 Noah Friedman <friedman@splode.com>
7948 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
7951 2000-08-04 Gerd Moellmann <gerd@gnu.org>
7953 * syntax.c (skip_chars): Fix typo in error message.
7955 2000-08-04 Andreas Schwab <schwab@suse.de>
7957 * m/ia64.h: Moved from s/ia64.h.
7959 2000-08-04 Kenichi Handa <handa@etl.go.jp>
7961 * process.c (read_process_output): Big simplification. Handle
7962 composition and post-read-conversion of coding system correctly.
7963 (send_process): Handle composition correctly.
7965 * callproc.c (Fcall_process): Handle post-read-conversion of
7966 coding system if any.
7968 * coding.c (decode_coding_iso2022): More strict check for handling
7970 (coding_restore_composition): Pay attention to the case that
7971 cmp_data is not set properly (because of invalid code in the
7973 (run_pre_post_conversion_on_str): Include text properties in the
7975 (decode_coding_string): Set members of coding correctly.
7977 2000-08-03 Gerd Moellmann <gerd@gnu.org>
7979 * s/ia64.h: New file.
7981 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
7982 Use NULL instead of 0 at the end of variable argument list of
7983 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
7984 sizeof (int) < sizeof (void *).
7986 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
7987 of variable argument lists of XtVaGetValues and XtVaSetValues.
7989 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
7990 variable argument lists of XtVaGetValues and XtVaSetValues.
7992 2000-08-02 Gerd Moellmann <gerd@gnu.org>
7994 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
7995 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
7997 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
8000 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
8001 in call to Fsingle_key_description.
8003 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
8006 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
8008 * window.c (display_buffer_reuse_frames): New variable.
8009 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
8010 frames displaying BUFFER.
8011 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
8013 2000-08-01 Miles Bader <miles@gnu.org>
8015 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
8016 when to constrain NEW_POS (they were pretty screwed up before).
8018 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
8020 * msdos.c (run_msdos_command): Save and restore the master
8021 environment, for the case that child_setup signals an error.
8022 When mirroring slashes in DOS shell commands, don't fail when
8023 argv[2] has embedded blanks.
8024 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
8025 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
8026 (dos_ttraw): Call mouse_setup_buttons.
8028 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
8029 using alloca; free it after run_msdos_command returns.
8031 2000-07-27 Dave Love <fx@gnu.org>
8033 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
8034 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
8036 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
8038 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
8040 * editfns.c (lisp_time_argument): Fix last change.
8042 2000-07-27 Gerd Moellmann <gerd@gnu.org>
8044 * fns.c (Fdelete): Make it work on vectors and strings in addition
8047 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
8048 (syms_of_fns): Initialize new variables.
8049 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
8050 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
8051 weakness, with t meaning the same as `key-and-value'.
8053 2000-07-27 Kenichi Handa <handa@etl.go.jp>
8055 * coding.h (struct coding_system): Member safe_charset deleted.
8057 * coding.c (Qsafe_charsets): This variable deleted.
8058 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
8060 (coding_safe_chars): New function.
8061 (CODING_SAFE_CHAR_P): New macro.
8062 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
8063 checking safe_charsets member of the coding system. Caller changed.
8064 (detect_coding_iso2022): New local variable safe_chars.
8065 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
8066 safe_charsets member of the coding system.
8067 (decode_coding_iso2022): New local variable safe_chars.
8068 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
8069 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
8070 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
8071 (ENCODE_UNSAFE_CHARACTER): New macro.
8072 (encode_coding_iso2022): New local variable safe_chars. Check
8074 (setup_coding_system): Delete the code to initialize
8075 coding->safe_charses
8076 (intersection, find_safe_codings): New functions.
8077 (Ffind_coding_systems_region_internal): New function.
8078 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
8079 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
8080 variable and initialize it.
8082 * fns.c (char_table_ref_and_index): New function.
8084 * lisp.h (char_table_ref_and_index): Add prototype.
8086 2000-07-26 Sam Steingold <sds@gnu.org>
8088 * editfns.c (lisp_time_argument): Added third argument `usec'.
8089 (Ffloat_time): New built-in Lisp function.
8091 2000-07-26 Gerd Moellmann <gerd@gnu.org>
8093 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
8094 for the character code.
8096 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
8099 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
8100 if called for a popup menu.
8101 (xmenu_show): Store help string in widget values.
8103 2000-07-26 Dave Love <fx@gnu.org>
8105 * syswait.h: Move some definitions.
8106 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
8107 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
8108 perspicuous definitions.
8109 (WTERMSIG): Fix bit pattern used.
8111 2000-07-26 Kenichi Handa <handa@etl.go.jp>
8113 * print.c (print_object): If vector printing is truncated, print
8114 "..." to indicate it as well as the case of list printing.
8116 2000-07-25 Gerd Moellmann <gerd@gnu.org>
8118 * xdisp.c (next_element_from_display_vector): Improve comments.
8120 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
8121 for the character code, and the rest for the face id as in 20.x.
8122 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
8124 * window.c (window_display_table): Cleaned up.
8126 * syntax.c (Fforward_word): Add last arg nil in call of
8127 Fconstrain_to_field.
8129 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
8131 * fileio.c (Frename_file) [DOS_NT]: If the file names are
8132 identical but for the letter-case, don't call
8133 barf_or_query_if_file_exists.
8135 2000-07-25 Miles Bader <miles@gnu.org>
8137 * editfns.c (find_field): Honor special `boundary' fields.
8138 (Qboundary): New variables.
8139 (syms_of_editfns): Initialize Qboundary.
8140 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
8141 Use scan_buffer instead of find_before_next_newline, because it
8142 allows us to detect the boundary case where there's a newline at
8144 * lisp.h (Fconstrain_to_field): Update external declaration.
8146 2000-07-24 Gerd Moellmann <gerd@gnu.org>
8148 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
8151 2000-07-24 Dave Love <fx@gnu.org>
8153 * s/sunos4-0.h, s/sol2.h:
8154 (LIBS_TERMCAP): Move from m/sparc.h.
8156 * m/sparc.h (TERMINFO): Moved to system files (probably only
8157 relevant for sunos4 judging by its vintage).
8158 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
8161 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
8163 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
8164 name to single_keymap_panes.
8166 2000-07-24 Andreas Schwab <schwab@suse.de>
8168 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
8170 2000-07-24 Gerd Moellmann <gerd@gnu.org>
8172 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
8173 parameters instead of using int parameters. Expect FN to accept
8174 EMACS_INT parameters.
8175 (display_echo_area, resize_echo_area_axactly, current_message)
8176 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
8177 with new argument list.
8178 (resize_mini_window_1): New callback function.
8179 (current_message_1, truncate_message_1, set_message_1): Change
8180 parameter lists to the new format expected by with_echo_area_buffer.
8182 2000-07-24 Kenichi Handa <handa@etl.go.jp>
8184 * fontset.c (fontset_ref): Remove INLINE declaration.
8185 (fontset_ref_via_base): Likewise.
8186 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
8189 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
8191 * msdos.c (IT_note_mouse_highlight): Process overlays in the
8192 correct order of priority. If help echo was found in an overlay,
8193 use that overlay as the object in which the help echo was found.
8195 2000-07-22 Miles Bader <miles@gnu.org>
8197 * textprop.c (Fprevious_single_char_property_change): The initial
8198 property value should be from the position preceding POSITION, not
8201 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
8203 * coding.c (syms_of_coding): Doc fix for
8204 inhibit-iso-escape-detection.
8206 2000-07-21 Gerd Moellmann <gerd@gnu.org>
8208 * xterm.c (note_mouse_highlight): Process overlays in the right
8211 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
8213 * xterm.c (note_mouse_highlight): If help-echo was found in an
8214 overlay, use that overlay as the object in which the help was found.
8216 * window.c (foreach_window_1): Fix typo reversing an if-condition.
8218 * window.c (foreach_window): Instead of a fake variable argument
8219 list, take one USER_DATA argument.
8220 (foreach_window_1): Likewise, and call callback functions with two
8221 args, the window and USER_DATA.
8222 (struct check_window_data): New struct.
8223 (check_window_containing): Use it.
8224 (window_from_coordinates): Set up a struct check_window_data for
8226 (add_window_to_list, freeze_window_start): Change parameters
8227 according to new calling convention.
8229 * window.h (foreach_window): Change prototype.
8231 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
8233 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
8235 * xmenu.c (menu_help_callback): Call show_help_echo with
8236 additional arguments OBJECT and POS.
8238 2000-07-21 Kenichi Handa <handa@etl.go.jp>
8240 * data.c (Faset): Allow storing any multibyte character in a
8241 string. Convert unibyte string to multibyte if necessary.
8243 * xfns.c (x_encode_text): New function.
8244 (x_set_name): Use x_encode_text.
8245 (x_set_title): Likewise.
8247 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
8249 * xterm.h (x_encode_text): Add prototype.
8251 2000-07-20 Dave Love <fx@gnu.org>
8253 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
8256 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
8258 * msdos.c (help_echo_window): New variable.
8259 (syms_of_msdos): Initialize and staticpro it.
8260 (IT_note_mode_line_highlight): Set help_echo_window.
8261 (IT_note_mouse_highlight): Ditto.
8262 (dos_rawgetc): Store help_echo_window in the second event produced
8265 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
8266 Record the object that generated the help echo and the position of
8267 that object in help_echo_object and help_echo_pos. Record that
8268 some glyphs in a row are displayed in mouse-face.
8269 (IT_update_begin): Don't clear mouse highlight unless one of the
8270 enabled glyph rows is marked as being displayed in mouse-face.
8271 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
8272 and position recorded in help_echo_object and help_echo_pos to the
8274 (IT_menu_display): Accept a new argument PN: the pane number of
8275 the current menu pane. Record the pane number and the item
8276 number of the item which has associated help string.
8277 (XMenuActivate): Update the prototype for help_callback in
8278 function declaration. Call IT_menu_display with the current menu
8279 pane number as an additional argument. Call help_callback with
8280 two additional arguments: the pane number and the item number of
8281 the menu item associated with the help text.
8282 (help_echo_object, help_echo_pos): New variables.
8283 (syms_of_msdos): Initialize them and staticpro help_echo_object.
8285 * msdos.h (XMenuActivate): Update prototype.
8287 2000-07-19 Gerd Moellmann <gerd@gnu.org>
8289 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
8290 Add some more prototypes.
8292 * xterm.c, xterm.h: Add some more prototypes.
8294 * lisp.h (Fnext_single_char_property_change): Add prototype.
8296 * dispnew.c (direct_output_for_insert): Remove confusing
8297 outer local variable mouse_face_overwritten_p.
8298 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
8300 * alloc.c (allocate_string_data): Don't copy old string contents.
8302 2000-07-19 Kenichi Handa <handa@etl.go.jp>
8304 * coding.c (code_convert_region): Delete text properties before
8305 shrinking the conversion region.
8307 2000-07-18 Gerd Moellmann <gerd@gnu.org>
8309 * dispnew.c (update_text_area): Write the whole row if it
8310 has mouse-face in it.
8312 * xfaces.c (face-alternative-font-family-alist): Remove
8313 DEFVAR_LISP; staticpro instead.
8315 * xmenu.c (menu_help_callback): Call show_help_echo with
8318 * keyboard.c (show_help_echo): Add parameter WINDOW.
8319 (read_char): Call show_help_echo with window extracted from Lisp
8321 (gen_help_event): Add parameter WINDOW.
8323 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
8325 * xterm.c (help_echo_window): New variable.
8326 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
8327 (XTread_socket): Pass help_echo_window to gen_help_event.
8328 (syms_of_xterm): Initialize and staticpro help_echo_window.
8330 2000-07-18 Dave Love <fx@gnu.org>
8332 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
8334 2000-07-18 Gerd Moellmann <gerd@gnu.org>
8336 * alloc.c (allocate_string_data): If string had already data
8337 assigned, copy old contents to new string data.
8339 * coding.c (syms_of_coding): Fix typo in spelling of variable
8340 `inhibit-iso-escape-detection'.
8342 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
8344 * Makefile.in: Add dependencies on dispextern.h.
8345 (alloca.o): Don't define malloc and define EMACS_FREE instead of
8346 `free'; both can conflict with system header files.
8348 2000-07-18 Kenichi Handa <handa@etl.go.jp>
8350 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
8353 2000-07-18 Dave Love <fx@gnu.org>
8355 * window.c (Fwindow_list): Declare arg `window'.
8357 2000-07-18 Kenichi Handa <handa@etl.go.jp>
8359 * coding.c (setup_coding_system): Don't override the explicitly
8360 specified designations.
8362 2000-07-15 Miles Bader <miles@gnu.org>
8364 * editfns.c (char_property_eq, char_property_stickiness): Renamed
8365 from `text_property_eq' and `text_property_stickiness', respectively.
8366 (find_field, Fconstrain_to_field, char_property_eq)
8367 (char_property_stickiness): Changed to call char-property functions
8368 instead of text-property-only ones.
8370 * textprop.c (Fnext_single_char_property_change): Made a subr (was
8371 `next_single_char_property_change'). Do more error checking, and
8372 cleanup limit behavior.
8373 (Fprevious_single_char_property_change): New function.
8374 (syms_of_textprop): Initialize new subrs.
8376 * xdisp.c (display_prop_end, invisible_text_between_p):
8377 Call Fnext_single_char_property_change instead of
8378 next_single_char_property_change.
8380 2000-07-15 Jason Rumney <jasonr@gnu.org>
8382 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
8383 after menu is finished with.
8384 (add_menu_item): Only consider wv->title as a menu title.
8385 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
8387 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
8389 (FONT_REGEXP): Remove unused macro, and its sub-components.
8390 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
8392 * w32term.c (help_echo_object, help_echo_pos): New variables.
8393 (note_mode_line_highlight): Store additional information about the
8394 help-echo in help_echo_object and help_echo_pos. Check both
8395 `local-map' and `keymap' properties for changing the cursor
8396 (note_mouse_highlight): Store additional information about the
8397 help-echo in help_echo_object and help_echo_pos.
8398 (note_tool_bar_highlight): Set help_echo_object to nil and
8399 help_echo_pos to -1.
8400 (w32_read_socket): Use gen_help_event instead of filling
8401 input_events manually.
8402 (syms_of_w32term): Staticpro help_echo_object.
8403 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
8404 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
8405 (x_clear_mouse_face): New function.
8406 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
8407 (x_update_window_begin): No need to turn off the mouse
8409 (show_mouse_face): Set the mouse_face_p flag of glyph rows
8410 depending on whether they contain glyphs highlighted in mouse-face.
8411 (x_fill_stretch_glyph_string): Consume runs of stretch
8412 glyphs instead of a single one.
8413 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
8414 with new argument list.
8415 (x_set_glyph_string_gc): Make sure the face's GC is valid.
8416 (x_append_glyph, x_append_composite_glyph)
8417 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
8418 changes in struct glyph starting 1999-12-27. See comments for
8419 xterm.c on 2000-07-05.
8421 2000-07-14 Sam Steingold <sds@gnu.org>
8423 * xfaces.c (realize_x_face): Fix the last patch:
8424 check `default_face' before dereferencing.
8426 2000-07-14 Dave Love <fx@gnu.org>
8428 * syntax.c (back_comment): Add null default in switch (for pcc).
8430 2000-07-14 Kenichi Handa <handa@etl.go.jp>
8432 * xfaces.c (realize_x_face): Make fontset using the base of the
8433 default_face's fontset, not using the default fontset.
8435 * coding.c (inhibit_iso_escape_detection): New variable.
8436 (syms_of_coding): Make it a Lisp variable.
8437 (detect_coding_iso2022): If inhibit_iso_escape_detection is
8438 nonzero, ignore ISO2022's escape sequence.
8440 2000-07-14 Gerd Moellmann <gerd@gnu.org>
8442 * alloca.c (malloc) [emacs]: Define as xmalloc.
8444 * xfns.c (Fx_show_tip): If frame parameters contain a position,
8445 use that instead of the mouse position. Add parameters DX and DY.
8447 * dispextern.h (Fx_show_tip): Adjust number of parameters
8450 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
8451 if HELP is a function, call it with OBJECT and POS as parameters
8452 to get the help to display.
8453 (gen_help_event, kbd_buffer_store_help_event): New functions.
8454 (kbd_buffer_get_event): Construct the Lisp help-event differently.
8455 (read_char): Call show_help_echo with new parameters.
8457 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
8460 * xterm.c (help_echo_object, help_echo_pos): New variables.
8461 (note_mode_line_highlight): Store additional information about the
8462 help-echo in help_echo_object and help_echo_pos. Check both
8463 `local-map' and `keymap' properties for changing the cursor
8464 (note_mouse_highlight): Store additional information about the
8465 help-echo in help_echo_object and help_echo_pos.
8466 (note_tool_bar_highlight): Set help_echo_object to nil and
8467 help_echo_pos to -1.
8468 (XTread_socket): Use gen_help_event instead of filling
8469 input_events manually.
8470 (syms_of_xterm): Staticpro help_echo_object.
8472 * xmenu.c (menu_highlight_callback): Use
8473 kbd_buffer_store_help_event instead of setting up and input_event
8476 * xdisp.c (eval_form): GCPRO argument sexpr.
8477 (call_function): New function.
8478 (handle_single_display_prop): Use call_function and FUNCTIONP
8479 instead of checking whether if font_height is a symbol and
8482 * eval.c (internal_condition_case_2): New function.
8484 * lisp.h (FUNCTIONP): New macro.
8485 (internal_condition_case_2, call_function): Add prototypes.
8487 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
8488 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
8489 Always set `arg' member of input_events.
8490 (construct_menu_click): Unused function removed.
8492 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
8494 * w32term.c (construct_mouse_click, construct_mouse_wheel)
8495 (construct_drag_n_drop, x_scroll_bar_handle_click)
8496 (w32_read_socket): Always set `arg' member of input_events.
8498 * keyboard.c (show_help_echo): Use eval_form. Add comment.
8500 * lisp.h (eval_form): Add prototype.
8502 * xdisp.c (eval_form): Make it externally visible.
8504 2000-07-13 Gerd Moellmann <gerd@gnu.org>
8506 * xterm.c (x_handle_tool_bar_click): Store the frame in the
8507 frame_or_window slot of TOOL_BAR_EVENT input events instead of
8508 consing. For prefix events, store the frame in the `arg' slot of
8509 the event, otherwise store the key there.
8510 (XTread_socket): Instead of consing, use the frame_or_window slot
8511 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
8513 * xmenu.c (menu_highlight_callback): Store help string in the
8514 `arg' member of the input event; don't cons.
8515 (menubar_selection_callback): Use the `arg' slot of input events
8516 to queue additional information, instead of consing.
8518 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
8520 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
8522 (w32_read_socket): Adapt to changes in HELP_EVENTs.
8524 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
8525 input events to queue additional information, instead of consing.
8527 * keyboard.c (kbd_buffer_gcpro): Renamed from
8528 kbd_buffer_frame_or_window. Now used for all Lisp objects
8529 referenced from the input queue.
8530 (kbd_buffer_store_event): Always use structure assignment for
8531 copying input events. Record all Lisp objects referenced from
8532 events in kbd_buffer_gcpro.
8533 (kbd_buffer_get_event): Construct Lisp `help-echo' events
8534 differently from input events. Test for prefix menu_bar_events
8535 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
8536 event in kbd_buffer_gcpro to nil.
8537 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
8538 frame_or_window is equal to its arg member as prefix events.
8539 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
8540 used by an input event to nil.
8541 (init_keyboard): Use two times the size of the input queue
8542 for kbd_buffer_gcpro.
8543 (syms_of_keyboard): Likewise.
8545 * emacs.c (handle_USR2_signal, handle_USR1_signal):
8546 Use USER_SIGNAL_EVENT.
8548 * termhooks.h (struct input_event): Add member `arg'.
8549 (MENU_BAR_EVENT): Renamed from menu_bar_event.
8550 (USER_SIGNAL_EVENT): Renamed from user_signal.
8552 * xfaces.c (ASET): Remove definition.
8554 * lisp.h (AREF, ASET, ASIZE): New macros.
8556 * fontset.c (AREF, ASIZE): Remove definitions.
8558 * fns.c (AREF): Remove definition.
8560 * composite.c (AREF): Remove definition.
8562 2000-07-12 Gerd Moellmann <gerd@gnu.org>
8564 * dispnew.c (redraw_overlapped_rows): Add missing local.
8565 (scrolling_window): Remove debug code.
8567 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
8568 Before scrolling, turn off a mouse-highlight in the window
8571 * xterm.c (x_update_window_end): Add parameter
8572 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
8573 redisplay in XTframe_up_to_date.
8574 (x_clear_mouse_face): New function.
8575 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
8577 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
8579 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
8580 it when any row is written to that contains glyphs highlighted in
8582 (update_window): Call the window update end hook with new
8583 parameter MOUSE_FACE_OVERWRITTEN_P.
8584 (direct_output_for_insert): Give up if row contains mouse-face.
8586 * dispextern.h (struct redisplay_interface): Add parameter
8587 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
8588 (clear_mouse_face): New function pointer member.
8590 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
8592 * syntax.c (back_comment): Use one switch rather than a few `if's.
8593 Obey open_paren_in_column_0_is_defun_start.
8594 When reverting to the `slow' method, try to nicely handle the case
8595 of nested comments by checking that the comment-starter we found
8596 does indeed match the comment-ender.
8597 (scan_sexps_forward, scan_sexps_forward):
8598 Ignore excessive opening parenthesis rather than throwing an error.
8600 2000-07-11 Gerd Moellmann <gerd@gnu.org>
8602 * doc.c (Fsubstitute_command_keys): Handle case that a GC
8603 in Fwhere_is_internal or get_keymap_1 relocates string contents.
8605 * dispnew.c (direct_output_forward_char): Give up if currently
8606 displaying a message instead of the minibuffer contents.
8608 * xterm.c (x_update_window_begin): No need to turn off the mouse
8610 (show_mouse_face): Set the mouse_face_p flag of glyph rows
8611 depending on whether they contain glyphs highlighted in mouse-face.
8613 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
8614 compare the mouse_face_p flags of both rows.
8616 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
8618 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
8620 * keyboard.c (show_help_echo): Accept additional parameter
8621 ok_to_overwrite_keystroke_echo.
8622 (read_char): Call show_help_echo with a zero
8623 ok_to_overwrite_keystroke_echo argument.
8624 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
8625 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
8626 ok_to_overwrite_keystroke_echo argument.
8627 * w32menu.c (w32_menu_display_help): Call show_help_echo with
8628 non-zero ok_to_overwrite_keystroke_echo argument.
8630 2000-07-10 Gerd Moellmann <gerd@gnu.org>
8632 * xdisp.c (try_window_id): If changes are all below what is
8633 displayed in the window, and point is in the window, we still
8634 might have to find point on the display.
8636 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
8637 glyphs instead of a single one.
8638 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
8639 with new argument list.
8640 (x_set_glyph_string_gc): Make sure the face's GC is valid.
8642 * keymap.c (get_keymap_1): Add comment that this function can GC.
8643 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
8644 comment that functions can GC.
8645 (Fset_keymap_parent): GCPRO arg KEYMAP.
8647 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
8649 * msdos.c (XMenuActivate): After exiting the menu, restore the
8650 echo area message and erase it.
8652 2000-07-10 Kenichi Handa <handa@etl.go.jp>
8654 * fontset.c (Ffontset_info): Make the return value more compatible
8655 with that of Emacs 20.
8657 2000-07-07 Gerd Moellmann <gerd@gnu.org>
8659 * eval.c (Fsignal): Handle case that backtrace_list is null.
8661 2000-07-07 Kenichi Handa <handa@etl.go.jp>
8663 * ccl.c (Fccl_execute): Typo fixed.
8665 2000-07-06 Gerd Moellmann <gerd@gnu.org>
8667 * window.c (window_loop): Add missing gcpro1 local variable.
8669 * window.c (Fwindow_list): Reverse list at the end.
8670 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
8671 means allow windows on OWINDOW's frame, only.
8672 (window_loop): Simplified; use Fwindow_list.
8674 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
8676 2000-07-05 Gerd Moellmann <gerd@gnu.org>
8678 * xterm.c (XTread_socket): Increment handling_signal at the start,
8679 decrement it at the end.
8681 * eval.c (handling_signal): New variable.
8682 (Fsignal): Abort if handling_signal is non-zero.
8684 * lisp.h (handling_signal): External declaration.
8686 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
8688 2000-07-05 Ken Raeburn <raeburn@gnu.org>
8690 Sound support for NetBSD through "Linux emulation" support:
8691 * config.in (HAVE_SOUNDCARD_H): Undef.
8692 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
8693 * Makefile.in (LIBSOUND): New variable.
8694 (LIBES): Include it.
8695 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
8696 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
8697 (vox_open): Use DEFAULT_SOUND_DEVICE.
8698 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
8700 2000-07-05 Gerd Moellmann <gerd@gnu.org>
8702 * print.c (print_error_message): If Vsignaling_function is set,
8703 show it in *Messages*.
8705 * lisp.h (Vsignaling_function): External declaration.
8707 * eval.c (Vsignaling_function): New variable.
8708 (Fsignal): Compute it.
8709 (syms_of_eval): Staticpro it.
8711 2000-07-05 Dave Love <fx@gnu.org>
8713 * syswait.h: Use the autoconf recommended approach. Old code
8714 #if'd out in case we need to revert.
8716 * config.in (HAVE_SYS_WAIT_H): Added.
8718 2000-07-05 Andrew Innes <andrewi@gnu.org>
8720 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
8721 when non-NULL instead of __morecore, to take account of buffer
8722 memory. This also solves a problem with spurious memory warnings
8725 * ralloc.c: Make real_morecore non-static.
8727 * eval.c (internal_condition_case): Comment out abort if
8728 interrupt_input_blocked is not zero.
8730 * makefile.nt: Add support for `bootstrap' and related targets.
8731 Include minimal debug info in emacs.exe in release build.
8732 Remove all dependencies on lisp.h, and fixup some others.
8734 * w32.c (init_environment): Install code from 20.7 for providing
8735 default values for environment variables, based on the
8736 executable's own location.
8737 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
8738 (sys_socket): Install socket inheritance bug fix from 20.7.
8740 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
8741 here via blockinput.h).
8743 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
8745 * w32menu.c (w32_menu_display_help):
8746 * xmenu.c (menu_help_callback): Use show_help_echo.
8748 * keyboard.h (show_help_echo): Declare.
8750 * keyboard.c (show_help_echo): New function, extracted from read_char.
8751 Feval its `msg' argument if it's a cons cell.
8752 (read_char): Use it.
8753 (follow_key): Pass `autoload' to get_keyelt.
8755 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
8756 (note_tool_bar_highlight, XTread_socket):
8757 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
8759 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
8760 (note_tool_bar_highlight, w32_read_socket):
8761 Do not gratuitously ignore non-string `help-echo' properties.
8763 2000-07-05 Gerd Moellmann <gerd@gnu.org>
8765 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
8767 * window.c (delete_all_subwindows): Reset Vwindow_list.
8769 * xterm.c (x_append_glyph, x_append_composite_glyph)
8770 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
8771 changes in struct glyph starting 1999-12-27. Some bit-fields of
8772 struct glyph were not set, which made glyphs unequal when compared
8773 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
8774 effects were the result. This also depended on the contents of
8775 memory returned by xmalloc. If flickering happens again, activate
8776 the code in clear_glyph_row that's in #if 0. If the flickering is
8777 gone with that, chances are that it is caused by something similar.
8779 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
8781 * dispextern.h: Add some comments.
8783 * window.c (add_window_to_list): Add parameter LIST.
8784 (window_list): Order list so that, for each frame, windows are
8785 in canonical order, and so that frames appear in the list in
8786 the order given by Vframe_list.
8787 (next_window): Reverse the handling of NEXT_P.
8789 2000-07-04 Gerd Moellmann <gerd@gnu.org>
8791 * window.c (Vwindow_list): New variable.
8792 (make_window, delete_window): Set Vwindow_list to nil.
8793 (check_window_containing): New function.
8794 (window_from_coordinates): Rewritten.
8795 (add_window_to_list, window_list, candidate_window_p)
8796 (decode_next_window_args, next_window): New functions.
8797 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
8798 (Fwindow_list): New function.
8799 (Fother_window): Cleaned up.
8800 (foreach_window): Add a longer "variable argument list". Let
8801 callback function return 0 to indicate that cycling over windows
8803 (foreach_window_1): Likewise.
8804 (freeze_window_start): Return int.
8805 (init_window): New function.
8806 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
8808 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
8809 input_event with bzero.
8810 (main): Call init_window.
8812 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
8815 2000-07-04 Kenichi Handa <handa@etl.go.jp>
8817 * composite.h (make_composition_value_copy): Extern it.
8819 * composite.c (make_composition_value_copy): New function.
8821 * editfns.c (Fformat): While copying text properties, make each
8822 composition property value a copy.
8824 * fns.c (concat): While copying text properties, make each
8825 composition property value a copy.
8827 2000-07-03 Gerd Moellmann <gerd@gnu.org>
8829 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
8831 * fns.c (sweep_weak_table): Mark only objects that are not
8834 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
8835 include those frames as candidates which have their focus
8836 redirected to the minibuffer frame.
8838 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
8840 * fns.c (Fputhash): Return `value' rather than nil.
8842 2000-06-30 Gerd Moellmann <gerd@gnu.org>
8844 * frame.c (next_frame): Don't check focus redirection in case
8845 MINIBUF is a window. Doing so excludes frames using MINIBUF
8846 unless their focus is redirected, which contradicts the
8847 specification of next-frame, and leads to infinite loops in
8848 certain situations when cycling through windows with next-window.
8850 2000-06-30 Kenichi Handa <handa@etl.go.jp>
8852 * coding.c (code_convert_region): Even if the length of text is
8853 zero, try to convert it if coding->type is coding_type_ccl.
8854 (decode_coding_string, encode_coding_string): Likewise.
8856 2000-06-28 Gerd Moellmann <gerd@gnu.org>
8858 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
8859 the display if windows_or_buffers_changed.
8861 * dispnew.c (struct row_entry): New structure.
8862 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
8863 (row_table_size, old_lines, new_lines, old_lines_size)
8864 (new_lines_size, run_pool, runs_size, runs): New variables.
8865 (add_row_entry): New function.
8866 (scrolling_window): Use data structures allocated with xmalloc and
8867 held in global variables, instead of allocating them with alloca and
8868 holding them in local variables. Use a larger hash table whose
8869 size depends on glyph matrix sizes. Don't use bzero to clear the
8870 hash table; instead, clear used slots only.
8872 * fns.c (next_almost_prime): Make it externally visible.
8874 * lisp.h (next_almost_prime): Add prototype.
8876 * s/isc4-0.h (sigunblock): Define.
8878 * s/sco5.h (sigunblock): Define.
8880 2000-06-27 Dave Love <fx@gnu.org>
8882 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
8883 (moved to osf5-0.h).
8884 [!NOT_C_CODE]: Protect string.h stuff.
8886 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
8887 (sys_siglist, NSIG): Definitions moved here from osf1.h.
8889 2000-06-27 Gerd Moellmann <gerd@gnu.org>
8891 * xdisp.c (resize_mini_window): Subtract the extra line spacing
8892 below the last line from the needed window height.
8894 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
8896 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
8897 (Fwidget_get): Use it.
8898 (syms_of_fns): Defsubr it.
8900 2000-06-26 Gerd Moellmann <gerd@gnu.org>
8902 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
8903 display info for XIM.
8904 (xim_open_dpy): Likewise.
8905 (xim_close_dpy): Don't free the display info's XIM.
8907 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
8909 * config.in (USE_XIM): New define.
8911 * keymap.c (get_keyelt): For menu-items containing a `:filter
8912 FILTER', apply FILTER to the menu-item's definition to get the
8913 real definition to use.
8915 * lisp.h (QCfilter): External declaration.
8917 * xfns.c (Fimage_size): New function.
8918 (syms_of_xfns): Defsubr it.
8920 2000-06-26 Andreas Schwab <schwab@suse.de>
8922 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
8925 2000-06-25 Dave Love <fx@gnu.org>
8927 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
8929 * Makefile.in (blockinput.h): Depend on atimer.h.
8930 (atimer.h): Depend on systime.h.
8932 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
8934 * atimer.h: Protect against multiple inclusion. Include systime.h.
8936 * lisp.h (swap_in_global_binding): Declare.
8938 2000-06-24 Ken Raeburn <raeburn@gnu.org>
8940 * process.c (Fopen_network_stream): Turn off atimers for duration
8941 of call to connect. (Patch from Gerd.)
8943 2000-06-23 Dave Love <fx@gnu.org>
8945 * ralloc.c: Maybe include unistd.h
8947 * emacs.c (setgrp): Undefine before defining.
8948 (malloc_warning, set_time_zone_rule, index): Prototype.
8950 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
8951 HAVE_STRUCT_TIMEZONE.
8953 * s/osf1.h: Move string.h hack here from alpha.h and make it
8955 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
8957 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
8958 (SOCKLEN_TYPE): Don't define.
8960 * m/alpha.h: Remove string.h hack.
8962 * s/osf5-0.h: New file.
8964 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
8965 include time.h, done by systime.h.
8966 [__FreeBSD__]: Remove redundant includes.
8968 * callproc.c (setpgrp): Undefine before defining.
8969 (delete_temp_file): Return Qnil to avoid warning.
8971 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
8973 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
8976 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
8978 * composite.h (compose_text): Declare.
8980 * xterm.c: Don't include sys/types.h unconditionally. Don't
8981 protect its inclusion with !USG (following xmenu.c).
8983 2000-06-23 Gerd Moellmann <gerd@gnu.org>
8985 * xfns.c (x_create_tip_frame): Initialize frame's colors like
8988 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8990 * coding.c (decode_eol_post_ccl): Special handling for undecided
8991 and inconsistent EOL types.
8993 2000-06-22 Gerd Moellmann <gerd@gnu.org>
8995 * xrdb.c (x_load_resources): Add default resource for scroll bar's
8996 trough color and main window's background color.
8998 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
9000 * xterm.h (Xt_app_con): External declaration.
9002 * widget.c (EmacsFrameRealize): Fix typo.
9004 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
9006 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
9007 (handle_invisible_prop): Record the start of invisible text in
9008 it->add_overlay_start.
9009 (struct overlay_entry): Add member `overlay'.
9010 (handle_overlay_change): Simplify.
9011 (next_overlay_string): After having processed overlay strings at the
9012 end of the buffer, record that fact in
9013 it->overlay_strings_at_end_processed_p.
9014 (compare_overlay_entries): If before- and after-strings come
9015 from the same overlay, let before-strings come first.
9016 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
9017 (load_overlay_strings): Take it->add_overlay_start into account
9018 when adding overlay strings.
9020 * dispextern.h (struct it): Add member add_overlay_start.
9022 2000-06-22 Dave Love <fx@gnu.org>
9024 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
9026 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
9028 2000-06-22 Kenichi Handa <handa@etl.go.jp>
9030 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
9033 2000-06-21 Dave Love <fx@gnu.org>
9035 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9037 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
9039 * syntax.c (back_comment): Simplify string-parity counting (with
9040 the added benefit of handling multiple string-styles as long as
9041 they are not intertwined).
9042 Jump to the slow code as soon as a comment starter is found in
9043 a "string_lossage" position. Fixes the case: " /* " /* " */.
9045 2000-06-21 Dave Love <fx@gnu.org>
9047 * Makefile.in: Use GETLOADAVG_LIBS.
9049 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
9050 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
9052 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
9054 * syntax.c (describe_syntax): Recognize the `n'estable bit.
9055 (Fforward_comment, scan_lists):
9056 Check the comstyle of single-char comment-starters.
9057 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
9058 we're just at the beginning of the comment (f.ex with (*) ... (*)).
9059 Check the comstyle of single-char comment-starters.
9060 Clarify control-flow around the Scomment case.
9062 2000-06-20 Dave Love <fx@gnu.org>
9064 * fns.c (make_hash_table, maybe_resize_hash_table):
9065 Cast arg of next_almost_prime.
9067 * tparam.c [emacs]: Include lisp.h.
9069 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
9072 2000-06-20 Gerd Moellmann <gerd@gnu.org>
9074 * keyboard.c (adjust_point_for_property): Check if display
9075 property should be treated as intangible by looking at its value.
9077 * xdisp.c (single_display_prop_intangible_p)
9078 (display_prop_intangible_p): New functions.
9080 * dispextern.h (display_prop_intangible_p): Add prototype.
9082 * xdisp.c (dump_glyph_row): Show type of glyph->object.
9084 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
9085 argument to sigprocmask.
9087 * s/sco5.h (sigblock): Redefined to pass a pointer as second
9088 argument to sigprocmask.
9090 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
9091 sigprocmask_set, and pass a pointer to it to sigprocmask.
9093 * sysdep.c (sigprocmask_set): New variable.
9095 * fileio.c (make_temp_name): Don't use `%s' in string passed to
9098 2000-06-20 Sam Steingold <sds@gnu.org>
9100 * xrdb.c: Don't declare xmalloc, xrealloc.
9102 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
9104 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
9105 (re_comp): Cast gettext return value to avoid complaints when
9108 2000-06-20 Dave Love <fx@gnu.org>
9110 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
9112 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
9114 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
9116 * m/alpha.h: Don't declare xmalloc, xrealloc.
9118 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
9120 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
9122 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
9124 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
9127 * keyboard.h (poll_for_input_1): Declare.
9129 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
9131 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
9133 * doprnt.c: Don't declare xmalloc, xrealloc.
9135 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
9136 (getenv, ctime, getwd): Removed.
9137 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
9139 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
9140 x_set_tool_bar_lines.
9142 * config.in: Add HAVE_GETWD. Move some definitions above
9143 machine/system includes.
9145 2000-06-20 Kenichi Handa <handa@etl.go.jp>
9147 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
9149 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
9150 contain information about ENCODING.
9152 * fontset.c (FONTSET_ASCII): Use the first element of char table
9153 for an ASCII font, not defalt slot.
9154 (fontset_ref_via_base): If FONTSET doesn't contain information for
9155 C, try the default fontset.
9156 (make_fontset): Don't copy the default fontset.
9157 (fontset_font_pattern): Likewise.
9158 (accumulate_font_info): If ELT is nil, use the corresponding
9159 element in the default fontset.
9161 2000-06-19 Dave Love <fx@gnu.org>
9163 * syntax.c (Fparse_partial_sexp): Doc fix.
9165 * regex.h: Test PROTOTYPES as well as __STDC__.
9167 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
9168 errno, strerror. Put text after #endif in comment.
9170 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
9172 * xterm.c (x_frame_of_widget): Likewise.
9174 2000-06-19 Gerd Moellmann <gerd@gnu.org>
9176 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
9177 to Vfundamental_mode_abbrev_table.
9179 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
9180 bogus objects are marked. This slows down GC by ~80 percent, but
9181 it might be worth trying when debugging GC-related problems.
9182 This feature requires conservative stack marking to be enabled.
9184 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
9185 returns XLookupChars, reset `modifiers' to zero.
9187 2000-06-19 Dave Love <fx@gnu.org>
9189 * mktime.c: Unprotoized.
9191 2000-06-19 Richard Stallman <rms@gnu.org>
9193 * data.c (set_internal): If variable is frame-local,
9194 store the new value immediately into the frame parameter alist.
9196 2000-06-19 Ken Raeburn <raeburn@gnu.org>
9198 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
9199 in the custom handler pointer.
9201 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
9202 value, or checks for CHAR_META can fail when Lisp_Object is a
9204 * keymap.c (get_keyelt): Likewise.
9206 2000-06-19 Kenichi Handa <handa@etl.go.jp>
9208 * ccl.h (struct ccl_program): New member eol_type.
9209 (struct ccl_spec): New member cr_carryover.
9211 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
9212 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
9214 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
9215 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
9216 (decode_eol_post_ccl): New function.
9217 (decode_coding): Don't detect EOL format here for CCL based coding
9219 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
9220 decode_eol_post_ccl after running the CCL program.
9221 (code_convert_region): Don't detect EOL format here for CCL based
9223 (decode_coding_string): Likewise.
9225 2000-06-18 Ken Raeburn <raeburn@gnu.org>
9227 * charset.c (update_charset_table): Use XINT on "iso_final_char"
9228 when treating it as an integer.
9230 * coding.h (encode_coding_string): Declare.
9232 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
9235 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
9236 "xkeymap" to avoid shadowing the "enum map_type" value that needs
9237 to be passed to get_local_map.
9239 * sound.c (Fplay_sound): Don't call make_number on
9240 Frun_hook_with_args count argument.
9242 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
9243 for lisp objects in X event structure data field, when lisp
9244 objects are represented with unions.
9245 (x_scroll_bar_to_input_event): Ditto.
9247 2000-06-16 Ken Raeburn <raeburn@gnu.org>
9249 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
9250 termination of string. Fix sense of test whether
9251 Vline_number_display_limit is an integer.
9253 2000-06-16 Gerd Moellmann <gerd@gnu.org>
9255 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
9256 only if HAVE_X_WINDOWS.
9258 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
9261 * dispnew.c (update_frame_1): Handle case that cursor vpos is
9264 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
9266 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
9269 2000-06-15 Kenichi Handa <handa@etl.go.jp>
9271 * coding.c (decode_coding_emacs_mule): Always set src_base at the
9272 start of the while loop.
9274 2000-06-15 Gerd Moellmann <gerd@gnu.org>
9276 * atimer.c (alarm_signal_handler): Add forward declaration.
9278 * data.c (set_internal): Remove debug code.
9280 2000-06-14 Gerd Moellmann <gerd@gnu.org>
9282 * Makefile.in (bootstrap-temacs): Add `-I../src'.
9284 * unexec.c (toplevel) [COFF]: Include coff.h.
9286 * s/lynxos.h: New file.
9288 * keymap.c (Fsingle_key_description): Enclose function key and
9289 event symbol names in angle brackets.
9291 * xdisp.c (setup_echo_area_for_printing): Call
9292 message_log_maybe_newline if message_buf_print is not set.
9294 * print.c (printchar, strout): Don't check message_buf_print
9295 before calling setup_echo_area_for_printing because that
9296 function does something useful even when message_buf_print is
9299 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
9301 (ensure_echo_area_buffers): Initialize echo buffer's
9302 truncate lines setting to nil.
9303 (with_echo_area_buffer): Don't set the echo buffer's truncate
9305 (set_message_1): Set it here instead, based on the value
9306 of message_truncate_lines.
9307 (resize_mini_window): Handle case that lines are truncated.
9308 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
9309 DEFVAR_BOOL message-truncate-lines.
9311 * keyboard.c (read_char): Bind message-truncate-lines to t
9312 while displaying a help-echo.
9314 * lisp.h (Qmessage_truncate_lines): External declaration.
9316 2000-06-13 Gerd Moellmann <gerd@gnu.org>
9318 * xdisp.c (Vline_number_display_limit): Renamed from
9319 line_number_display_limit.
9320 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
9321 Extend documentation string. Initialize
9322 Vline_number_display_limit to nil meaning no limit.
9323 (decode_mode_spec): Use Vline_number_display_limit with its new
9326 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
9328 2000-06-13 Richard Stallman <rms@gnu.org>
9330 * frame.c (Fmodify_frame_parameters): Doc fix.
9332 * xfns.c (x_set_frame_parameters): Comment fix.
9334 * frame.c (store_frame_param): Call swap_in_global_binding if the
9335 variable's current binding was chosen based on this frame.
9337 * data.c (swap_in_global_binding): New function.
9339 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
9341 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
9342 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
9344 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
9346 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
9348 2000-06-12 Jason Rumney <jasonr@gnu.org>
9350 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
9352 * w32.h (EMACS_W32_H): Renamed from _NT_H_
9354 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
9356 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
9358 2000-06-12 Gerd Moellmann <gerd@gnu.org>
9360 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
9361 (syms_of_xfaces): Defsubr Sdump_colors.
9362 (x_free_colors): Don't treat b&w specially on default visual.
9363 (x_free_dpy_colors): New function.
9364 (free_face_colors): Don't check visual class; it's done
9367 * xterm.c (x_frame_of_widget): New function.
9368 (x_alloc_nearest_color_for_widget): Use it.
9369 (x_copy_dpy_color): New function.
9370 (x_destroy_window): Free various colors.
9372 2000-06-12 Kenichi Handa <handa@etl.go.jp>
9374 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
9376 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
9378 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
9380 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
9382 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
9384 2000-06-11 Dave Love <fx@gnu.org>
9386 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
9388 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
9390 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
9392 2000-06-11 Gerd Moellmann <gerd@gnu.org>
9394 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
9397 2000-06-10 Kenichi Handa <handa@etl.go.jp>
9399 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
9400 (regex_compile): Fix the code for handling the case of single byte
9401 char and multibyte char being mixed in a range within [...].
9403 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
9404 and dst_multibyte members of coding.
9406 * charset.c (update_charset_table): Update the table
9408 (init_charset_once): Initialize elements of bytes_by_char_head to
9409 1 except for leading codes for private charases.
9411 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
9412 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
9414 2000-06-09 Ken Raeburn <raeburn@gnu.org>
9416 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
9417 access the data it doesn't point to.
9419 2000-06-08 Gerd Moellmann <gerd@gnu.org>
9421 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
9422 will be translated to a switch-frame event when reading the
9423 event queue. This is necessary because Emacs otherwise won't
9424 perform a switch-frame to a new frame until some other event, for
9425 example a keystroke event, forces it to do so. This has various
9426 effects, one visible being that the cursor of a frame created with
9427 C-x 5 2 or switched to with a window manager key binding like
9428 A-TAB stays hollow because selected_window isn't on the newly
9429 focused frame until the switch-frame is performed.
9431 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
9432 generating a switch-frame event if necessary.
9434 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
9436 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
9439 2000-06-08 Kenichi Handa <handa@etl.go.jp>
9441 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
9443 2000-06-07 Gerd Moellmann <gerd@gnu.org>
9445 * window.c (displayed_window_lines): Take empty lines at
9446 the bottom of a window into account.
9448 * window.c (displayed_window_lines): New function.
9449 (Fmove_to_window_line): Use displayed_window_lines to determine
9450 the number of lines to move, instead of using the window's height.
9452 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
9453 to stop reading, even if the form read sets point to a different
9454 value when evaluated.
9456 * xdisp.c (display_line): Fix code deciding in which line to
9459 2000-06-07 Kenichi Handa <handa@etl.go.jp>
9461 * fileio.c (e_write): Free composition data if stored in
9464 2000-06-06 Gerd Moellmann <gerd@gnu.org>
9466 * xdisp.c (display_line): Set row's and iterator's
9467 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
9468 Set cursor even if row ends in the middle of a character.
9469 (dump_glyph_row): Print values of new flags.
9470 (redisplay_window) <cursor movement in unchanged window>: When
9471 point has been moved forward, and PT is at the end of the cursor
9472 row, don't place the cursor in the next row if the cursor row ends
9473 in the middle of a character or at ZV.
9475 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
9476 (struct glyph_row): Add starts_in_middle_of_char_p and
9477 ends_in_middle_of_char_p.
9478 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
9479 ends_in_middle_of_char_p flag.
9480 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
9482 * term.c (append_glyph): Revert change of 2000-06-06.
9484 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
9485 padding glyph not fitting on line as whole character not
9488 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
9489 this isn't true for images with `:ascent 100'.
9491 2000-06-06 Kenichi Handa <handa@etl.go.jp>
9493 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
9494 as modified if it is originally unmodified.
9496 * term.c (encode_terminal_code): Change the way to check if
9497 terminal coding does any conversion.
9498 (append_glyph): Set glyph->pixel_width correctly.
9500 * xdisp.c (display_line): While checking line continuation, pay
9501 attention to a padding glyph.
9503 2000-06-05 Gerd Moellmann <gerd@gnu.org>
9505 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
9507 2000-06-05 Dave Love <fx@gnu.org>
9509 * xdisp.c: Include fontset.h.
9511 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
9513 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
9515 * dispnew.c: Conditionally include term.h.
9517 * coding.h: Declare code_convert_string_norecord.
9519 * frame.h (struct frame): Use volatile unconditionally.
9521 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
9523 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
9525 * systime.h: Protect against multiple inclusion.
9526 (timezone) [USG5_4]: Define as time_t.
9528 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
9529 (Foptimize_char_table, make_temp_name): Declare.
9531 * Makefile.in (xdisp.o): Depend on fontset.h.
9533 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
9535 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
9536 (Foptimize_char_table, make_temp_name): Declare.
9540 * s/netbsd.h: Don't define autoconfiscated MATHERR.
9542 2000-06-02 Dave Love <fx@gnu.org>
9544 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
9546 2000-06-02 Gerd Moellmann <gerd@gnu.org>
9548 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
9549 result face, set flags in that face indicating that colors may not
9552 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
9553 glyph, use the ASCII NUL character to determine the face.
9555 2000-06-02 Dave Love <fx@gnu.org>
9557 * sysdep.c: Conditionally include stdlib.h, unistd.h.
9558 (VFORK_RETURN_TYPE): Remove.
9560 * config.in: Add NO_MATHERR.
9562 2000-06-01 Dave Love <fx@gnu.org>
9564 * cmds.c (internal_self_insert): Don't check
9565 Vbefore_change_function, Vafter_change_function.
9567 * insdel.c (signal_before_change, signal_after_change): Likewise.
9569 * buffer.c (Vbefore_change_function, Vafter_change_function):
9570 Variables and their initializations deleted.
9572 * callint.c (Fcall_interactively): Doc fix.
9574 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
9576 2000-05-31 Dave Love <fx@gnu.org>
9578 * textprop.c: Revert last change -- duplicated.
9580 2000-05-31 Gerd Moellmann <gerd@gnu.org>
9582 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
9585 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
9587 2000-05-31 Jason Rumney <jasonr@gnu.org>
9589 * search.c (Fre_search_forward, Fre_search_backward)
9590 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
9592 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
9594 2000-05-30 Jason Rumney <jasonr@gnu.org>
9596 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
9597 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
9599 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
9601 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
9602 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
9603 expand a nil default_filename.
9605 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
9606 pointer to glyph_to_pixel_coords, not a frame.
9608 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
9609 coding.h to dependencies.
9611 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
9613 * w32console.c (glyph_to_pixel_coords): Change first parameter to
9614 window pointer to be consistent with w32term.c and xterm.c.
9616 * w32fns.c: Format and doc changes to bring closer to xfns.c.
9617 (VIETNAMESE_CHARSET): Define if not defined in system headers.
9618 (Qline_spacing, Qcenter): New variables.
9619 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
9620 (x_set_line_spacing): New function.
9621 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
9622 (x_specified_cursor_type): New function.
9623 (x_set_cursor_type): Use it.
9624 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
9626 (validate_x_resource_name, x_get_resource_string): Measure lengths
9627 of external strings in bytes.
9628 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
9629 GetTextExtentPoint32 with NULL title.
9630 (Fx_create_frame): Initialize Qline_spacing.
9631 (w32_load_system_font): Initialize font->double_byte_p.
9632 (x_to_w32_charset): Use Vw32_charset_info_alist.
9633 (Image, busy cursor, tooltip functions): Merged changes from
9634 xfns.c. Not yet functional on Windows.
9636 * w32gui.h (W32FontStruct): Add double_byte_p member.
9638 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
9639 (emacs_button_translation): Use it.
9640 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
9641 in `mask' to be set.
9643 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
9646 * w32term.c: Format and doc changes to bring closer to xterm.c.
9647 (w32_char_font_type): New enum.
9648 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
9649 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
9650 (w32_encode_char): New function.
9651 (x_encode_char): Removed.
9652 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
9653 x_encode_char and w32_font_is_double_byte.
9654 (x_produce_image_glyph): Use image_ascent.
9655 (x_produce_glyphs): Use new version of w32_per_char_metric and
9656 handle NULL return value. Allow extra line spacing.
9657 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
9658 (w32_get_glyph_overhangs): Remove unicode_p param. Use
9659 w32_font_type member of glyph instead.
9660 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
9661 (fast_find_position): Make sure not to consider rows not visible
9663 (w32_read_socket) [WM_MENUSELECT]: Cannot call
9664 w32_menu_display_help with input blocked, as it can abort.
9665 (x_display_and_set_cursor): Choose cursor depending
9666 on buffer-local value of cursor_type.
9667 (x_draw_bar_cursor): Add parameter WIDTH.
9669 * w32term.h (CP_DEFAULT): Define.
9670 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
9672 2000-05-30 Gerd Moellmann <gerd@gnu.org>
9674 * search.c (Fre_search_forward, Fre_search_backward)
9675 (Fposix_search_backward, Fposix_search_forward): Doc fix.
9677 2000-05-30 Kenichi Handa <handa@etl.go.jp>
9679 * coding.c (detect_coding_iso2022): Fix code for checking
9680 CODING_CATEGORY_MASK_ISO_8_2.
9682 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
9684 * regex.c (PREFETCH_NOLIMIT): New function.
9685 (re_match_2_internal): Use it and adjust the end_match_2 logic.
9687 2000-05-29 Gerd Moellmann <gerd@gnu.org>
9689 * syntax.c (find_defun_start): Move test for
9690 open_paren_in_column_0_is_defun_start outside of the loop.
9692 * xdisp.c (redisplay_window): Really switch buffers when
9693 displaying mode lines, and temporarily set selected_frame to the
9694 frame of the window that's redisplayed.
9696 * xfaces.c (free_realized_faces): Block/unblock input.
9697 (free_realized_multibyte_face): Ditto.
9699 2000-05-29 Dave Love <fx@gnu.org>
9701 * textprop.c (Qkeymap): New variable.
9702 (syms_of_textprop): Intern it.
9704 * keymap.c: Include intervals.h.
9705 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
9707 * Makefile.in (keymap.o): Depend on intervals.h.
9709 * keyboard.c (menu_bar_items, tool_bar_items)
9710 (Fexecute_extended_command): Deal with `keymap' property.
9711 (read_key_sequence): Track map from `keymap' property as well as
9714 * intervals.c (get_local_map): Extra arg to allow looking for
9717 * intervals.h (map_property): New enum.
9718 (get_local_map): Extra arg using it.
9721 * lisp.h (get_local_map): Don't declare here.
9723 2000-05-29 Kenichi Handa <handa@etl.go.jp>
9725 * Makefile.in (callproc.o): Depend on composite.h.
9727 * callproc.c: Include composite.h.
9728 (Fcall_process): Handle composition correctly.
9730 * coding.h (coding_allocate_composition_data): Extern it.
9731 (coding_restore_composition): Likewise.
9733 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
9734 yet allocated, finish decoding with result
9735 CODING_FINISH_INSUFFICIENT_CMP.
9736 (coding_allocate_composition_data): Make it non-static.
9737 (coding_restore_composition): Likewise.
9739 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
9741 * charset.c (syms_of_charset): Revert last change.
9743 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
9745 * term.c (produce_glyphs): Treat characters from the eight-bit-*
9746 charsets as unibyte, with 1-column screen width. Sent by Kenichi
9749 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
9751 * charset.c (syms_of_charset): Set width of character sets
9752 eight-bit-control and eight-bit-graphic to 1 column.
9754 2000-05-26 Gerd Moellmann <gerd@gnu.org>
9756 * config.in (HAVE_SPEED_T): New define.
9758 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
9761 2000-05-26 Dave Love <fx@gnu.org>
9763 * coding.c (shrink_decoding_region): Initialize eol_conversion.
9765 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
9766 (Fsubr_arity): New function.
9767 (syms_of_data): Install them.
9769 2000-05-26 Kenichi Handa <handa@etl.go.jp>
9771 * charset.c (init_charset_once): Set the table bytes_by_char_head
9774 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
9775 the default fontset to what Emacs uses by default.
9776 (check_registry_encoding): This function deleted.
9777 (Fset_fontset_font): Remove the adhoc condition for the default
9778 fontset. Allow cons in FONTNAME.
9780 * fns.c (map_char_table): Ignore char-table entries for
9781 charsets eight-bit-control and eight-bit-graphic.
9783 2000-05-25 Ken Raeburn <raeburn@gnu.org>
9785 * emacs.c (main): Initialize keyboard syms before initializing
9786 window code, so face names are available.
9788 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
9790 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
9791 of an anchor at the beginning of a shy-group.
9793 2000-05-25 Gerd Moellmann <gerd@gnu.org>
9795 * xdisp.c (handle_invisible_prop): Don't try to skip over
9796 invisible text if end of text is already reached.
9798 2000-05-25 Dave Love <fx@gnu.org>
9800 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
9802 * coding.c (encode_eol): Add null statement after label.
9804 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
9806 * w16select.c (Fw16_set_clipboard_data): Fix the change from
9809 2000-05-25 Kenichi Handa <handa@etl.go.jp>
9811 * ccl.c (ccl_driver): Fix previous change.
9813 2000-05-25 Kenichi Handa <handa@etl.go.jp>
9815 * coding.c (run_pre_post_conversion_on_str): Set point to the
9816 beginning of buffer before calling coding->post_read_conversion.
9817 (decode_coding_string): Give correct args to
9818 run_pre_post_conversion_on_str.
9819 (encode_coding_string): Likewise.
9821 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
9822 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
9823 eight-bit-graphic correctly.
9825 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
9827 * fileio.c (Finsert_file_contents): Even if a file is not found,
9828 execute codes for setting up coding system. Call
9829 after-insert-file-functions unconditionally.
9831 2000-05-24 Gerd Moellmann <gerd@gnu.org>
9833 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
9834 BSD_PGRPS are not defined.
9836 2000-05-24 Kenichi Handa <handa@etl.go.jp>
9838 * charset.c (update_charset_table): Accept nil in LONG_NAME and
9840 (syms_of_charset): Avoid building same strings.
9842 2000-05-23 Gerd Moellmann <gerd@gnu.org>
9844 * lread.c (Fload): Add a comment about the meaning of
9845 Vuser_init_file being t.
9847 * puresize.h (BASE_PURESIZE): Increase to 675000.
9849 * s/gnu-linux.h (setpgrp): Don't define it here because this
9850 prevents compilation on GNU/Linux systems with glib 2.2.
9852 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
9855 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
9857 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
9858 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
9860 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
9862 2000-05-23 Kenichi Handa <handa@etl.go.jp>
9864 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9866 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
9868 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
9870 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
9872 2000-05-22 Kenichi Handa <handa@etl.go.jp>
9874 * keyboard.c (read_char): Allow character codes 128..255 to be
9875 handled by input-method-function.
9877 * insdel.c (adjust_markers_for_replace): Fix previous change.
9878 (adjust_after_replace): If PREV_TEXT is nil, call
9879 adjust_markers_for_insert, not adjust_markers_for_replace.
9881 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
9883 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
9884 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
9885 [HAVE_GRANDPT]: Define.
9886 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
9888 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
9891 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
9893 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
9895 2000-05-20 Kenichi Handa <handa@etl.go.jp>
9897 The following changes are to handle 8-bit characters in a
9898 multibyte buffer/string without facing with byte combining
9899 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
9900 eight-bit-graphic (for 0xA0..0xFF) are introduced.
9902 * Makefile.in (fns.o): Depend on charset.h.
9904 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
9905 convert it to unibyte.
9906 (make_string): Use parse_str_as_multibyte, not chars_in_text.
9908 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
9909 apparent char boundary.
9910 (Fset_buffer_multibyte): Convert 8-bit characters in the range
9911 0x80..0x9F to/from multibyte form.
9913 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
9916 * callproc.c (Fcall_process): Always encode an argument string if
9917 it is multibyte. Setup src_multibyte and dst_multibyte members of
9918 process_coding properly.
9920 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
9921 SPLIT_NON_ASCII_CHAR.
9923 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
9925 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
9927 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
9928 (SPLIT_CHARACTER_SEQ): This macro deleted.
9929 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
9930 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
9931 and eight-bit-graphic.
9932 (char_to_string): Likewise. Signal an error for too large
9934 (char_printable_p): Return 0 for 8-bit characters.
9935 (update_charset_table): Update iso_charset_table only when a final
9936 character is non-negative.
9937 (find_charset_in_text): Renamed from find_charset_in_str.
9938 Arguments and return value changed. Callers changed.
9939 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
9940 be -1 if CHARSET is used only internally.
9941 (Fmake_char_internal): Handle new charsets; eight-bit-control and
9943 (Fcharset_after): Simplified.
9944 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
9945 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
9946 (multibyte_chars_in_text): Simplified by assuming there's no
9947 invalid multibyte sequence.
9948 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9949 (str_as_unibyte): New functions.
9950 (Fstring): Simpified by assuming that byte combining never happens.
9951 (init_charset_once): Initialization for
9952 LEADING_CODE_8_BIT_CONTROL.
9953 (syms_of_charset): Intern and staticpro Qeight_bit_control and
9954 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
9955 eight-bit-control and eight-bit-graphic.
9957 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
9958 (CHARSET_8_BIT_GRAPHIC): New macros.
9959 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
9960 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
9961 (CHARSET_REVERSE_CHARSET): Likewise.
9962 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
9964 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
9965 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
9966 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
9967 encounter an invalid multibyte sequence.
9968 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
9969 sequence is always valid.
9970 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
9971 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
9972 (CHAR_STRING): For 8-bit characters, call char_to_string.
9973 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
9974 multibyte sequence is always valid.
9975 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
9976 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9977 (str_as_unibyte): Extern them.
9978 (BCOPY_SHORT): Fix a bug.
9979 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
9980 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
9981 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
9982 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
9984 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
9985 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
9986 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
9987 (EMIT_BYTES): New macros.
9988 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
9989 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
9991 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
9992 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
9993 check the validity of multibyte sequence.
9994 (decode_coding_emacs_mule): New function.
9995 (encode_coding_emacs_mule): New macro.
9996 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
9998 (DECODE_ISO_CHARACTER): Just return a character code.
9999 (DECODE_COMPOSITION_START): Set coding->result instead of result.
10000 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
10001 EMIT_CHAR to produced decoded characters. Exit the loop only by
10002 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
10004 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
10005 only position codes for an invalid character.
10006 (encode_designation_at_bol): Return new destination pointer. 5th
10007 arg DSTP is changed to DST.
10008 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
10009 from the source by ONE_MORE_CHAR. Don't handle the case of last
10011 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
10013 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
10014 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
10015 TWO_MORE_BYTES to fetch a byte from the source.
10016 (encode_eol): Pay attention to coding->src_multibyte.
10017 (detect_coding, detect_eol): Preserve members src_multibyte and
10019 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
10020 (encoding_buffer_size): Set magnification to 3 for all coding
10021 systems that require encoding.
10022 (ccl_coding_driver): For decoding, be sure that the result is
10023 valid multibyte sequence.
10024 (decode_coding): Initialize coding->errors and coding->result.
10025 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
10026 and raw-text, always call decode_eol. Handle the case of last
10027 block here. If not coding->dst_multibyte, convert the resulting
10028 sequence to unibyte.
10029 (encode_coding): Initialize coding->errors and coding->result.
10030 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
10031 and raw-text, always call encode_eol. Handle the case of last
10033 (shrink_decoding_region, shrink_encoding_region): Detect cases
10034 that we can't skip data more rigidly.
10035 (code_convert_region): Setup src_multibyte and dst_multibyte
10036 members of coding. For decoding, if the buffer is multibyte,
10037 convert the source sequence to unibyte in advance. For encoding,
10038 if the buffer is multibyte, convert the resulting sequence to
10039 multibyte afterward.
10040 (run_pre_post_conversion_on_str): New function.
10041 (code_convert_string): Deleted and divided into the following two.
10042 (decode_coding_string, encode_coding_string): New functions.
10043 (code_convert_string1, code_convert_string_norecord): Call one of
10045 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
10046 MAKE_NON_ASCII_CHAR.
10047 (Fset_terminal_coding_system_internal)
10048 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
10049 and dst_multibyte members.
10050 (init_coding_once): Initialize iso_code_class with new enum
10051 ISO_control_0 and ISO_control_1.
10053 * coding.h (enum iso_code_class_type): Member ISO_control_code is
10054 devided into ISO_control_0 and ISO_control_1.
10055 (struct coding_system): New members src_multibyte, dst_multibyte,
10056 errors, and result. Delete member fake_multibyte.
10057 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
10059 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
10062 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
10065 * editfns.c (Fformat): Be sure to convert 8-bit characters to
10067 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
10069 (Ftranspose_region): Delete codes for handling byte combining.
10071 * fileio.c (Finsert_file_contents): Setup src_multibyte and
10072 dst_multibyte members of coding. On handling REPLACE on unibyte
10073 buffer, convert the result of decode_coding to unibyte. On
10074 inserting into a mutibyte buffer, always call code_convert_region.
10075 (e_write): Setup coding->src_multibyte according to the
10076 multibyteness of the source (buffer or string).
10078 * fns.c (concat): Handle 8-bit characters correctly.
10079 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
10080 unibyte in the result.
10081 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
10082 valid multibyte form in the result.
10083 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
10084 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
10085 return -1, signal an error.
10086 (base64_encode_1): New arg MULTIBYTE. Get each character by
10087 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
10088 character is found, return -1.
10089 (Fbase64_decode_region): Delete codes for handling byte-combining.
10090 Treat each decoded byte as a unibyte character.
10091 (Fbase64_decode_string): Return unibyte string.
10092 (Fcompare_strings, concat, string_byte_to_char): Use
10093 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
10094 FETCH_STRING_CHAR_ADVANCE.
10095 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10096 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
10098 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
10099 SPLIT_NON_ASCII_CHAR.
10100 (fontset_ref_via_base, fontset_set): Likewise
10102 * insdel.c (adjust_markers_for_record_delete): Deleted.
10103 (adjust_markers_for_insert): Argument changed. Caller changed.
10104 (adjust_markers_for_replace): Likewise.
10105 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
10106 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
10107 (copy_text): Delete unused local varialbe c_save. For converting
10108 to multibyte, be sure to make all 8-bit characters in valid
10110 (count_size_as_multibyte): Handle 8-bit characters correctly.
10111 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10112 (adjust_after_replace, replace_range, del_range_2)
10113 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
10114 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10115 (adjust_after_replace, replace_range, del_range_2) Delete codes for
10116 handling byte combining.
10117 (adjust_before_replace): Deleted.
10119 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
10120 SPLIT_NON_ASCII_CHAR.
10121 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
10122 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10123 (Fkey_description): Likewise.
10125 * lread.c (read1): On reading multibyte string, be sure to make
10126 all 8-bit chararacters in valid multibyte form.
10127 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10129 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
10132 * process.c (Fstart_process): GCPRO current_dir before calling
10133 Ffind_operation_coding_system. Encode arguments here.
10134 (create_process): Don't encode arguments here. Setup
10135 src_multibyte and dst_multibyte members of struct coding.
10136 (read_process_output): Setup src_multibyte and dst_multibyte
10137 members of struct coding. If the output is to multibyte buffer,
10138 always decode the output of the process. Adjust the
10139 representation of 8-bit characters to the multibyteness of the output.
10140 (send_process): Setup coding->src_multibyte according to the
10141 multibyteness of the source.
10143 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10144 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
10145 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
10147 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
10149 * w16select.c (Fw16_set_clipboard_data): Setup members
10150 src_multibyte and dst_multibyte of coding. Adjusted for the
10151 change for find_charset_in_str.
10152 (Fw16_get_clipboard_data): Likewise.
10154 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
10155 dst_multibyte of coding.
10156 (x_to_w32_font): Likewise.
10158 * w32select.c (Fw32_set_clipboard_data): Setup members
10159 src_multibyte and dst_multibyte of coding. Adjusted for the
10160 change for find_charset_in_str.
10161 (Fw32_get_clipboard_data): Likewise.
10163 * xdisp.c (get_next_display_element): Handle 8-bit characters
10165 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
10166 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
10168 * xselect.c (selection_data_to_lisp_data): Setup members
10169 src_multibyte and dst_multibyte of coding. Adjusted for the
10170 change for find_charset_in_str.
10171 (lisp_data_to_selection_data): Likewise.
10173 2000-05-19 Gerd Moellmann <gerd@gnu.org>
10175 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
10177 * dispextern.h (Vimage_types): Add extern declaration.
10179 * xdisp.c (Vimage_types): Moved here from xfns.c.
10180 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
10182 * xfns.c (Vimages_types): Moved to xdisp.c.
10183 (syms_of_xfns): Move `image-types' to xdisp.c.
10185 * w32fns.c (Vimage_types): Removed.
10186 (syms_of_w32fns): Remove `image-types'.
10188 2000-05-18 Kenichi Handa <handa@etl.go.jp>
10190 * fns.c (map_char_table): Pay attention to character number of
10191 charset. Check the validity of charset at the first level. For
10192 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
10195 * fontset.c: Include "buffer.h".
10196 (fs_load_font): If the face has fontset, record the face ID in
10198 (Finternal_char_font): New function.
10199 (accumulate_font_info): New function.
10200 (Ffontset_info): Rewritten for the new fontset implementation.
10201 (syms_of_fontset): Register Vdefault_fontset in the first element
10202 of Vfontset_table. Include Vdefault_fontset in
10203 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
10206 2000-05-16 Dave Love <fx@gnu.org>
10208 * m/iris5d.h: Deleted -- unused.
10210 2000-05-16 Gerd Moellmann <gerd@gnu.org>
10212 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
10213 `invalid' instead of `illegal'.
10215 * indent.c (Fmove_to_column): When ending within a tab, insert
10216 spaces first so that markers at the end of the tab get adjusted.
10218 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
10219 buffer list that wasn't selected in that frame.
10221 * filelock.c (get_boot_time): To obtain an 8 char file name, which
10222 is needed on mescaline, use a 2 char prefix, and call
10223 make_temp_name with second arg non-zero.
10225 * fileio.c (make_temp_name): New function, extracted from
10227 (Fmake_temp_name): Use it.
10229 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10231 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
10233 2000-05-15 Gerd Moellmann <gerd@gnu.org>
10235 * Makefile.in (lisp): Add env.elc.
10237 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
10239 2000-05-12 Gerd Moellmann <gerd@gnu.org>
10241 * search.c (Freplace_match): Handle case of `\N' in the
10242 replacement when there's no group N.
10244 2000-05-11 Gerd Moellmann <gerd@gnu.org>
10246 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
10247 of the message to message_dolog.
10249 * keyboard.c (read_char): Don't clear current message for help
10250 events; let the code handling help events handle this. Change
10251 code detecting help events that should be ignored.
10253 * xdisp.c (handle_single_display_prop): Don't try to set PT if
10254 we're interating over a string.
10256 2000-05-09 Dave Love <fx@gnu.org>
10258 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
10259 that offset before writing. Move gcpro region past call of
10262 2000-05-04 Dave Love <fx@gnu.org>
10264 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
10266 2000-05-04 Gerd Moellmann <gerd@gnu.org>
10268 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
10269 of inserted characters when BUF equals the current buffer, and PT
10270 is in front of or equal to FROM.
10272 2000-05-03 Gerd Moellmann <gerd@gnu.org>
10274 * xdisp.c (handle_single_display_prop): If display property value
10275 is invalid, or something not supported on the frame, restore
10276 iterator's position to what it was initially. Make sure to return
10277 0 for invalid and unsupported property values.
10279 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
10280 that x_per_char_metric returns null.
10282 2000-05-02 Gerd Moellmann <gerd@gnu.org>
10284 * xterm.h (struct face): Add forward declaration.
10285 (struct image): Ditto.
10286 (image_ascent): Add prototype.
10288 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
10289 (x_draw_image_relief, x_draw_image_foreground_1): Call function
10290 image_ascent instead of using IMAGE_ASCENT.
10292 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
10293 (IMAGE_ASCENT): Removed.
10295 * xfns.c (Qcenter): New variable.
10296 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
10297 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
10298 (image_ascent): New function.
10299 (lookup_image): Recognize `:ascent center'.
10300 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
10301 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10302 (xbm_load): Don't set image's ascent here.
10303 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
10304 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
10305 check ascent values here.
10306 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
10307 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
10308 (syms_of_xfns): Initialize Qcenter.
10310 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
10311 to the limits, increase the limits.
10313 2000-05-01 Kenichi Handa <handa@etl.go.jp>
10315 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
10316 Check Vfont_encoding_alist against the full name of the opened font.
10318 2000-04-28 Gerd Moellmann <gerd@gnu.org>
10320 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
10321 taller than the window.
10323 2000-04-28 Kenichi Handa <handa@etl.go.jp>
10325 * xfaces.c (realize_x_face): Fix the argument of the second
10326 xassert. BASE_FACE may not be a face for ASCII.
10328 2000-04-27 Gerd Moellmann <gerd@gnu.org>
10330 * print.c (print_object): Treat print-length < 0 as nil.
10332 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
10334 * s/freebsd.h (TERMCAP_OBJ): Removed.
10335 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
10337 * lread.c (read1): Don't treat period followed by certain
10338 characters as symbol start.
10340 * xfns.c (slurp_file): New function.
10341 (xbm_image_p): Handle case of in-memory XBM files.
10342 (xbm_scan): Rewritten to work on memory buffers instead of files.
10343 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
10344 Work on memory buffers instead of files. If DATA is null test
10345 if buffer looks like an in-memory XBM file.
10346 (xbm_load_image): Renamed from xbm_load_image_file. Work on
10347 memory buffers instead of files.
10348 (xbm_file_p): New function.
10349 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
10351 * lread.c (end_of_file_error): New function.
10352 (read1): Call it instead of signaling `end-of-file' directly.
10354 * print.c (print_error_message): Print data of `end-of-file'
10355 with Fprinc instead of Fprin1.
10357 2000-04-26 Ken Raeburn <raeburn@gnu.org>
10359 * window.c (freeze_window_start): Check that minibuffer scroll
10360 window isn't nil before extracting the window structure pointer
10363 * undo.c (record_delete): If we hit the end of the undo list, stop
10364 picking elements apart.
10366 2000-04-26 Gerd Moellmann <gerd@gnu.org>
10368 * xdisp.c (display_line): If lines are continued, restore
10369 iterator's ascent/descent information to the values before the
10370 first glyph not fitting on the line.
10372 2000-04-25 Gerd Moellmann <gerd@gnu.org>
10374 * xdisp.c (try_window_id) <all changes above window start>: Adjust
10375 positions in glyph matrix. Don't compute new window end positions.
10377 * dispnew.c (increment_matrix_positions): Renamed from
10378 increment_glyph_matrix_buffer_positions.
10379 (increment_row_positions): Renamed from
10380 increment_glyph_row_buffer_positions.
10382 * dispextern.h: Change names of renamed functions from dispnew.c
10385 2000-04-24 Gerd Moellmann <gerd@gnu.org>
10387 * fileio.c (Fdo_auto_save): Create directories for auto-save
10388 list file if necessary.
10390 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
10391 from buffer or frame.
10392 (automatic_hscrolling_p): New variable.
10393 (hscroll_windows): Scroll windows horizontally only if automatic
10394 hscrolling is allowed.
10395 (syms_of_xdisp): New variable `automatic-hscrolling'.
10397 * frame.h (struct frame): Add member extra_line_spacing.
10399 * xfns.c (x_set_line_spacing): New function.
10400 (Fx_create_frame): Set line spacing from resources.
10401 (Qline_spacing): New variable.
10402 (syms_of_xfns): Initialize Qline_spacing.
10404 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
10406 * buffer.c (init_buffer_once): Handle extra_line_spacing.
10407 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
10408 (reset_buffer): Don't initialize extra2 and extra3. Initialize
10409 extra_line_spacing from default value.
10410 (init_buffer_once): Initialize default value of extra_line_spacing.
10412 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
10415 * xterm.c (x_produce_glyphs): Remove reference to struct it's
10416 prompt_width. Add extra line spacing.
10418 * term.c (produce_glyphs): Remove reference to struct it's
10421 * dispextern.h (struct it): Remove member prompt_width, add
10422 extra_line_spacing.
10424 2000-04-22 Gerd Moellmann <gerd@gnu.org>
10426 * dispnew.c (update_frame_line): When writing a whole line, make
10427 sure cursor is in the right row afterwards, otherwise a use of
10428 capability `ch' in cmgoto might leave the cursor in the row below.
10430 2000-04-21 Gerd Moellmann <gerd@gnu.org>
10432 * lisp.h (struct Lisp_Buffer_Cons): Remove.
10434 * keyboard.c (timer_check): Fix typo in comment.
10436 2000-04-21 Kenichi Handa <handa@etl.go.jp>
10438 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
10439 name change: ch -> character.
10441 2000-04-20 Gerd Moellmann <gerd@gnu.org>
10443 * keyboard.c (echo_message_buffer): New variable.
10444 (echo_now): Set echo_message_buffer to the echo area buffer used
10445 to display the echo.
10446 (cancel_echoing): Reset echo_message_buffer to nil.
10447 (read_char): Code rewritten that handles canceling an echo or
10448 echoing a dash, respectively.
10450 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
10451 directory doesn't exist.
10453 2000-04-19 Dave Love <fx@gnu.org>
10455 * fns.c (syms_of_fns): Defsubr mapc.
10456 (concat): Don't allow numeric args.
10457 (Fconcat): Doc change.
10459 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
10461 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
10462 instead define end_match(1|2) more carefully.
10463 Use GET_CHAR_BEFORE_2 for `begline'.
10465 2000-04-19 Gerd Moellmann <gerd@gnu.org>
10467 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
10468 on 64-bit systems where NULL is defined as `0'.
10470 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
10471 the `variable argument list' to make it work on Alpha.
10473 * m/alpha.h (_LP64) [!_LP64]: Define.
10474 (ORDINARY_LINK): Define for NetBSD.
10476 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
10478 2000-04-19 Dave Love <fx@gnu.org>
10480 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
10483 * Makefile.in (LIBS): Don't use.
10484 (GETLOADAVG_OBJ): Define again.
10485 (otherobj): Add GETLOADAVG_OBJ.
10487 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
10489 2000-04-18 Gerd Moellmann <gerd@gnu.org>
10491 * lread.c (read_filtered_event): Cancel and start busy cursor.
10493 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
10494 that the per-character metrics may be null.
10496 2000-04-17 Gerd Moellmann <gerd@gnu.org>
10498 * buffer.c (clone_per_buffer_values): New function.
10499 (Fmake_indirect_buffer): Add optional argument CLONE. Call
10500 clone_per_buffer_values if CLONE is not nil.
10502 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10504 2000-04-16 Dave Love <fx@gnu.org>
10506 * Makefile.in: Remove obsolete localcpp stuff.
10507 (GETLOADAVG_OBJ): Don't define.
10508 (obj): Move LIBOBJS...
10509 (otherobj): ... to here.
10510 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
10511 whitespace-only lines after the continuation (Irix).
10513 2000-04-14 Gerd Moellmann <gerd@gnu.org>
10515 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
10517 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
10519 2000-04-14 Dave Love <fx@gnu.org>
10521 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
10522 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
10523 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
10524 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
10527 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
10528 autoconfiscated HAVE_GETLOADAVG.
10530 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
10533 2000-04-14 Gerd Moellmann <gerd@gnu.org>
10535 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
10536 (fill_in_lock_file_name): Avoid existing files that aren't links.
10538 2000-04-14 Dave Love <fx@gnu.org>
10540 * Makefile.in (LIBS, LIBOBJS): New variable.
10541 (INTERVAL_SRC): Convert to make variable.
10542 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
10543 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
10544 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
10546 (SOME_MACHINE_OBJECTS): Remove interval stuff.
10547 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
10548 (shortlisp): Add facemenu, float-sup, frame.
10549 (SOME_MACHINE_LISP): Remove them from here.
10550 (LIBES): Change unused LDLIBS to autoconf LIBS.
10552 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
10554 2000-04-14 Kenichi Handa <handa@etl.go.jp>
10556 * composite.c (update_compositions): If FROM and TO are not in a
10557 valid range, do nothing.
10559 2000-04-13 Gerd Moellmann <gerd@gnu.org>
10561 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
10563 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
10565 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
10568 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
10570 * fileio.c (a_write): Remove redundant semi-colons.
10571 (e_write): Return -1 if failed to write all the data.
10572 This fixes the changes made at 1999-12-15.
10574 2000-04-12 Dave Love <fx@gnu.org>
10576 * fns.c (mapcar1): Test for null vals to support mapc.
10577 (Fmapc): New function.
10579 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
10581 * msdos.c (NUM_MOUSE_BUTTONS): Define.
10582 (IT_frame_up_to_date): Support the buffer local value of
10583 cursor-type, if defined.
10585 2000-04-10 Dave Love <fx@gnu.org>
10587 * editfns.c (preceding-char, following-char): Doc fix.
10589 2000-04-10 Ken Raeburn <raeburn@gnu.org>
10591 * Makefile.in (temacs): Revert 2000-03-12 change.
10593 2000-04-10 Jason Rumney <jasonr@gnu.org>
10595 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
10597 2000-04-10 Gerd Moellmann <gerd@gnu.org>
10599 * xdisp.c (setup_echo_area_for_printing): Choose an echo
10600 area buffer, if it's not set up yet.
10602 * indent.c (compute_motion): Set immediate_quit.
10604 2000-04-09 Gerd Moellmann <gerd@gnu.org>
10606 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
10607 (realize_tty_face): Suppress boldness if colors are the inverse of
10608 the default colors, and tty_suppress_bold_inverse_default_colors_p
10610 (Ftty_suppress_bold_inverse_default_colors): New function.
10611 (syms_of_xfaces): Defsubr it.
10613 * buffer.c (Frestore_buffer_modified_p): New function.
10614 (syms_of_buffer): Defsubr it.
10616 2000-04-08 Ken Raeburn <raeburn@gnu.org>
10618 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
10619 charset id (int) argument, not a charset (Lisp_Object).
10621 * coding.h (code_convert_string): Declare.
10622 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
10623 object, as the fourth argument to code_convert_string.
10625 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
10626 (Fset_fontset_font): Use EQ to compare lisp objects.
10628 2000-04-05 Ken Raeburn <raeburn@gnu.org>
10630 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
10631 a pointer that looks like a lisp object.
10632 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
10633 zero, instead see whether it's an integer object, since they can't
10635 (GET_INTERVAL_OBJECT): Simply assign to the destination.
10637 * dispnew.c (allocate_matrices_for_frame_redisplay)
10638 (direct_output_forward_char): Use X(U)INT and make_number as needed
10639 to convert between (unsigned) int values and lisp integers.
10640 * keyboard.c (read_key_sequence): Likewise.
10641 * lread.c (substitute_object_recurse): Likewise.
10642 * fns.c (concat, hash_lookup, hash_remove): Likewise.
10643 * minibuf.c (do_completion, Fminibuffer_complete_word)
10644 (Fminibuffer_completion_help): Likewise.
10645 * term.c (produce_special_glyphs): Likewise.
10647 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
10648 * print.c (print_preprocess, print_object): Likewise.
10650 * search.c (compile_pattern): Use NILP when checking for nil.
10652 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
10653 __OPTIMIZE__]: Provide a GNU C macro version that handles
10654 lisp-object unions.
10655 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
10656 field, to better cope with ENABLE_CHECKING and calls that modify a
10657 Lisp_Object using its old value.
10659 2000-04-04 Gerd Moellmann <gerd@gnu.org>
10661 * window.c (compare_window_configurations): Signal an error
10662 if parameters C1 or C2 aren't window configurations.
10664 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
10665 AFTER_POTENTIAL_GC calls around calls to functions that can
10666 signal an error and thus invoke the debugger.
10668 2000-04-03 Gerd Moellmann <gerd@gnu.org>
10670 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
10671 an error if decoding fails.
10673 * keyboard.c (lispy_mouse_names): Variable removed.
10674 (Vlispy_mouse_stem): New variable.
10675 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
10676 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
10677 for any mouse button number. Increase size of mouse_syms and
10678 button_down_location as needed. Call modify_event_symbol with
10679 different arguments.
10680 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
10681 Call modify_event_symbol with different arguments.
10682 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
10683 for any button number. Call modify_event_symbol with different
10685 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
10686 Accept a string for NAME_ALIST_OR_STEM.
10688 * lisp.h (larger_vector): Add prototype.
10690 * fns.c (larger_vector): Make externally visible.
10692 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
10694 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
10696 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
10697 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
10698 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
10699 we are between str1 and str2.
10700 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
10701 (PATFETCH): Use `TRANSLATE'.
10702 (PATFETCH_RAW): Fetch multibyte char if applicable.
10703 (PATUNFETCH): Remove.
10704 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
10705 When writing a char, write it directly into the pattern buffer rather
10706 than going needlessly through a temp char-array.
10707 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
10708 multibyte magic and remove the useless `#ifdef emacs'.
10709 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
10712 * regex.h (struct re_pattern_buffer): Make field `multibyte'
10713 conditional on `emacs'.
10715 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
10717 2000-04-01 Ken Raeburn <raeburn@gnu.org>
10719 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
10720 non-union-type versions of XMARK and friends here, because XMARK
10721 and friends won't work on an integer field if NO_UNION_TYPE is not
10723 (make_number): Define as a function if it's not defined as a macro.
10725 * composite.c (run_composite_function): Use NILP when checking for nil.
10726 (syms_of_composite): Delete local var NARGS, pass an int as first
10727 argument to Fmake_hash_table.
10729 * editfns.c (text_property_stickiness): Use NILP to test
10730 Lisp_Object boolean value.
10731 (Fmessage_or_box): Don't use NILP to test int variable.
10732 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
10733 problems reading from and changing the same lisp value in an
10736 2000-04-01 Gerd Moellmann <gerd@gnu.org>
10738 * term.c (TN_no_color_video): New variable.
10739 (term_init): Intitialize TN_no_color_video.
10740 (enum no_color_bit): New enumeration.
10741 (MAY_USE_WITH_COLORS_P): New macro.
10742 (turn_on_face): Use it to determine if attributes may be used
10743 combined with colors.
10745 2000-04-01 Ken Raeburn <raeburn@gnu.org>
10747 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
10748 with int lvalues via casts; instead, just yield lisp object lvalues.
10749 (enlarge_window): Variable sizep now points to Lisp_Object. Use
10750 proper accessor macros.
10751 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
10752 (grow_mini_window): Fix typo getting int value of root->height.
10754 * xdisp.c (compute_string_pos): Fix order of arguments to
10755 string_pos_nchars_ahead.
10756 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
10757 count arg to variable-arg routines like Frun_hook_with_args and
10759 (back_to_previous_visible_line_start)
10760 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
10761 fixed-arg routines like Fget_char_property and Fmake_string.
10762 (reconsider_clip_changes): Use XINT when comparing integer lisp
10763 objects, or passing them as int arguments.
10764 (mark_window_display_accurate, insert_left_trunc_glyphs)
10765 (append_space, extend_face_to_end_of_line): Use make_number when
10766 storing or passing integer values as lisp objects.
10767 (set_cursor_from_row, highlight_trailing_whitespace): Use
10768 INTEGERP, not implicit test against zero, for glyph object.
10769 (try_window_id): Don't use make_number when we want an int value.
10771 * xfaces.c (xlfd_symbolic_value): Make last argument a
10772 Lisp_Object, to be consistent with callers.
10773 (Fbitmap_spec_p): Use XINT to get numeric value of height.
10774 (lface_hash): Apply XFASTINT to lisp values before folding in.
10776 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
10777 fill in window width and height. Pass an int, not a lisp object,
10778 as first arg to Finsert.
10780 2000-04-01 Gerd Moellmann <gerd@gnu.org>
10782 * xfaces.c (realize_basic_faces): Block input while realizing
10785 * keyboard.c (lispy_mouse_names): Add additional mouse names.
10787 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
10789 2000-03-31 Gerd Moellmann <gerd@gnu.org>
10791 * xterm.c (x_produce_glyphs): When displaying unibyte text
10792 or ASCII, handle case that per-char metric is null.
10794 2000-03-30 Ken Raeburn <raeburn@gnu.org>
10796 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
10798 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
10799 (XSUBR, XBUFFER): Verify correct object type before returning
10800 pointer, using eassert.
10801 * frame.h (XFRAME): Likewise.
10803 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
10804 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
10805 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
10806 * data.c (set_internal): Likewise.
10807 * dispextern.h (WINDOW_WANTS_MODELINE_P)
10808 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
10809 * fileio.c (auto_save_1): Likewise.
10810 * insdel.c (check_markers): Likewise.
10811 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
10812 * undo.c (record_insert): Likewise.
10813 * vmsproc.c (child_sig): Likewise.
10814 * window.c (unshow_buffer, window_loop): Likewise.
10815 * xterm.c (x_erase_phys_cursor): Likewise.
10817 2000-03-30 Gerd Moellmann <gerd@gnu.org>
10819 * xfns.c (free_image_cache): Free the cache structure itself
10820 last, after all its members have been freed.
10822 * lisp.h (xstrdup): Add prototype.
10824 * alloc.c (xstrdup): Moved here from xfaces.c.
10825 (allocating_for_lisp): Variable removed.
10826 (lisp_malloc): Block input around the calls to malloc and mem_insert.
10828 * xfaces.c (realize_tty_face): Use find_symbol_value instead
10830 (xstrdup): Moved to alloc.c.
10832 2000-03-29 Ken Raeburn <raeburn@gnu.org>
10834 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
10836 * emacs.c (main): Fix sense of no-loadup test.
10838 * config.in (ENABLE_CHECKING): Undef.
10840 * lisp.h (struct interval): Replace "parent" field with a union of
10841 interval pointer and Lisp_Object; add new bitfield to use as
10842 discriminant. Change other flag fields to bitfields.
10843 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
10844 is defined and the supplied test fails, print a message and abort.
10845 (eassert): New macro. Use CHECK to provide an assert-like facility.
10847 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
10848 pointers; abort if the value looks like a lisp object.
10849 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
10850 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
10851 Modify for new interval parent definition.
10853 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
10854 (UNMARK_BALANCE_INTERVALS): Update references that need an
10855 addressable lisp object in the interval structure.
10856 (die): New function.
10857 (suppress_checking): New variable.
10859 * intervals.c (interval_start_pos): Just return 0 if there's no
10862 2000-03-29 Gerd Moellmann <gerd@gnu.org>
10864 * lread.c (read1): Accept `.' (period) as symbol start like in CL
10865 and earlier Emacs versions.
10867 * keyboard.c (Ftop_level): Cancel busy-cursor.
10869 * eval.c (call_debugger): Cancel busy-cursor.
10871 2000-03-29 Kenichi Handa <handa@etl.go.jp>
10873 * search.c (Freplace_match): Adjust multibyteness of the current
10874 buffer and NEWTEXT. Free allocated memory before signaling an error.
10876 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
10878 * regex.c (analyse_first): New function obtained by ripping out most
10879 of re_compile_fastmap and generalizing it a little bit so that it
10880 can also just return whether a given (sub)pattern can match the empty
10882 (regex_compile): Use `analyse_first' to decide whether the loop-check
10883 needs to be done or not for *, +, *? and +? (the loop check is costly
10884 for non-greedy repetition).
10885 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
10887 2000-03-28 Dave Love <fx@gnu.org>
10889 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
10891 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
10893 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
10895 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
10897 (enum re_opcode_t): Update description of succeed_n.
10898 (PATFETCH): Always define.
10899 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
10900 operators, char classes, shy-groups and intervals).
10901 Optimize special cases of intervals so as to only use succeed_n and
10902 jump_n when really needed.
10903 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
10904 that we don't have to handle the special cases any more.
10905 Simplify on_failure_jump handling as well.
10907 2000-03-28 Jason Rumney <jasonr@gnu.org>
10909 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
10911 2000-03-27 Gerd Moellmann <gerd@gnu.org>
10913 * s/freebsd.h (GC_SETJMP_WORKS): Define.
10915 * s/msdos.h (GC_SETJMP_WORKS): Define.
10917 * alloc.c (mark_maybe_object): New function.
10918 (mark_memory): Use it.
10919 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
10920 (setjmp_tested_p, longjmp_done): New variables.
10921 (test_setjmp): New function.
10922 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
10923 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
10925 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
10926 to DEC_TEXT_POS and INC_TEXT_POS.
10928 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
10929 with parameter MULTIBYTE_P.
10931 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
10933 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
10934 buffers because it looks for multibyte character byte sequences
10935 which don't exist in unibyte text.
10937 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
10939 * xfaces.c (register_color, unregister_color, unregister_colors)
10940 [DEBUG_X_COLORS]: New functions.
10941 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
10943 * xfns.c (x_set_cursor_color): Get color reference counts right.
10945 * xterm.c (x_copy_color): New function.
10946 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
10948 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
10949 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
10950 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
10951 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
10952 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
10953 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
10954 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
10955 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
10956 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
10957 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
10959 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
10960 names for handling per-buffer variables.
10962 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
10963 instead of MAX_BUFFER_LOCAL_VARS.
10964 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
10966 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
10968 * xfns.c (x_specified_cursor_type): New function.
10969 (x_set_cursor_type): Use it.
10971 * buffer.h (struct buffer): Add cursor_type.
10973 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
10975 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
10976 (print_partial_compiled_pattern, re_compile_fastmap):
10978 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
10979 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
10980 executing it as well as when popping it off the stack to find infinite
10981 loops in non-greedy repetition operators.
10983 2000-03-26 Gerd Moellmann <gerd@gnu.org>
10985 * doc.c (Qfunction_documentation): New variable.
10986 (syms_of_doc): Initialize Qfunction_documentation.
10987 (Fdocumentation): If FUNCTION is a symbol with non-nil
10988 `function-documentation' property, return a documentation derived
10991 * buffer.c (syms_of_buffer): Add default-cursor-type.
10992 (init_buffer_once): Don't let cursor_type have a local value
10995 * xterm.c (x_display_and_set_cursor): Choose cursor depending
10996 on buffer-local value of cursor_type.
10997 (x_draw_bar_cursor): Add parameter WIDTH.
10999 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
11000 (init_buffer_once): Set default cursor_type value to t.
11001 Mark cursor_type as local everywhere.
11002 (syms_of_buffer): New per-buffer variable cursor-type.
11004 * buffer.h (struct buffer): Remove member local_var_flags,
11006 (MAX_BUFFER_LOCAL_VARS): New macro.
11007 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
11008 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
11009 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
11010 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
11012 * print.c (print_object): Use new macros for per-buffer variables.
11014 * category.c (Fset_category_table): Use new macros for per-buffer
11017 * buffer.c (buffer_permanent_local_flags): Make a char array.
11018 (max_buffer_local_idx): New variable.
11019 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
11020 for new handling of per-buffer variables.
11021 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
11022 (init_buffer_once): Initialize per-buffer vars differently.
11023 Set max_buffer_local_idx.
11025 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
11028 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
11030 * data.c (do_symval_forwarding, store_symval_forwarding)
11031 (find_symbol_value, set_internal, default_value, Fset_default)
11032 (Fkill_local_variable, Flocal_variable_p): Use new macros for
11033 per-buffer variables.
11035 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
11037 2000-03-24 Gerd Moellmann <gerd@gnu.org>
11039 * xterm.c (x_term_init): Unblock input around call1 of
11040 Qvendor_specific_keysyms.
11042 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
11043 (find_defun_start): Consider an open parenthesis in column 0
11044 a defun start only if open_paren_in_column_0_is_defun_start is set.
11045 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
11047 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
11049 * eval.c (Fautoload): Add entry in load-history (if after dump).
11050 * lread.c (load-history): Update docstring.
11052 2000-03-24 Gerd Moellmann <gerd@gnu.org>
11054 * indent.c (Fvertical_motion): Always use the current buffer.
11055 Temporarily change the window's buffer, if necessary.
11057 2000-03-23 Gerd Moellmann <gerd@gnu.org>
11059 * xterm.c (fast_find_position): Make sure not to consider rows
11060 not visible in the window.
11062 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
11064 * regex.c (enum syntaxcode): Provide default for non-Emacs.
11065 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
11067 2000-03-22 Jason Rumney <jasonr@gnu.org>
11069 * w32menu.c (single_submenu): Set help string to NULL if none.
11070 (w32_menu_show): Set help string correctly.
11071 (add-menu-item): Set help string in MIIM_DATA for menu item.
11072 Load SetMenuItemInfoA explicitly.
11073 (w32_menu_display_help): New function.
11075 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
11076 (QCdata): Moved to xdisp.c.
11078 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
11079 (Vw32_charset_to_codepage_alist): Removed.
11080 (Vw32_charset_info_alist): New variable.
11081 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
11082 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
11083 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
11084 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
11086 (w32_codepage_for_font): Use Vw32_charset_info_alist.
11087 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
11088 Define Vw32_charset_info_alist and w32_charset symbols.
11090 2000-03-22 Jason Rumney <jasonr@gnu.org>
11092 * makefile.nt (w32bdf.obj): Update dependencies.
11094 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
11096 * w32fns.c: Include fontset.h after dispextern.h.
11097 (Fx_create_frame): Do not create fontset.
11098 (w32_load_system_font): Doc fix.
11099 (Fx_close_connection): Free full_name if it is not shared.
11101 * w32term.c: Include fontset.h after dispextern.h.
11102 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
11104 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
11105 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
11106 (w32_font_is_double_byte): New function, needs body.
11107 (x_append_glyph): Set glyph->glyph_not_available_p.
11108 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
11109 it->charset. If it->multibyte_p is zero and it->c is a multibyte
11110 character, convert it to a unibyte character.
11111 (struct glyph_string): Delete member `charset'.
11112 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
11113 calculating it is found.
11114 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
11115 the case that per char metric is not available correctly.
11116 (x_fill_glyph_string): Handle the case that the specific glyph is
11117 not available correctly.
11118 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
11119 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
11120 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
11121 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
11122 fontset. Don't call FS_LOAD_FONT.
11124 2000-03-22 Ken Raeburn <raeburn@gnu.org>
11126 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
11127 (INT_LISPLIKE): New macro.
11128 (NULL_INTERVAL_P): Use it.
11129 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
11130 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
11131 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
11133 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
11134 explicit references to "parent" field of struct interval and
11135 associated unclean type conversions.
11136 * intervals.c (create_root_interval, root_interval, rotate_right)
11137 (rotate_left, balance_possible_root_interval, split_interval_right)
11138 (split_interval_left, interval_start_pos, find_interval)
11139 (next_interval, previous_interval, update_interval)
11140 (adjust_intervals_for_insertion, delete_node, delete_interval)
11141 (adjust_intervals_for_deletion, merge_interval_right)
11142 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
11143 (copy_intervals_to_string): Likewise.
11144 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
11146 * syntax.c (update_syntax_table): Likewise.
11148 * intervals.c (reproduce_tree_obj): New function, like
11149 reproduce_tree but takes a Lisp_Object for the parent. Declare
11151 (graft_intervals_into_buffer): Use it when appropriate.
11152 (reproduce_tree): Declare with prototype.
11153 (balance_possible_root_interval): Check that the parent is a lisp
11154 object before trying to examine its type.
11156 2000-03-22 Gerd Moellmann <gerd@gnu.org>
11158 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
11159 as strings only if both are known to be strings.
11161 * s/openbsd.h (LIBS_TERMCAP): Undef.
11163 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
11165 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
11166 definitions for non-Emacs compilation.
11167 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
11168 outside of `#ifdef emacs'.
11169 (print_partial_compiled_pattern): Update.
11170 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
11171 (re_compile_fastmap): Merge handling of charset and charset_not (for
11172 emacs and non-emacs compilation as well).
11173 Similarly for (not)categoryspec and (not)syntaxspec.
11174 Don't use the fastmap when reaching `anychar' since the added
11175 complexity is not justified.
11176 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
11177 and (not)syntaxspec. Merge (not)categoryspec.
11179 2000-03-22 Kenichi Handa <handa@etl.go.jp>
11181 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
11182 (FACE_FOR_CHAR): Define them differently for the configuration of
11185 2000-03-21 Dave Love <fx@gnu.org>
11187 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
11190 2000-03-21 Gerd Moellmann <gerd@gnu.org>
11192 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
11193 (lface_fully_specified_p): Don't check contents of
11194 LFACE_FONT_INDEX because that attribute is optional.
11195 (realize_x_face): Remove now unwarranted xassert.
11197 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
11199 The following changes are to make font selection based on
11200 characters, not charset. In addition, they recover fontset
11201 facilities while utilizing the new font selection mechanism.
11203 * Makefile.in (fontset.o): Depend on dispextern.h.
11205 * alloc.c (mark_face_cache): Don't mark face->registry.
11207 * dispextern.h (struct glyph): New member glyph_not_available_p.
11208 Use 22 bits for face_id.
11209 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
11210 (struct face): Delete member registry, new member ascii_face.
11211 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
11212 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
11213 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
11214 (struct it): Delete member charset, new member glyph_not_available_p.
11216 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
11217 (struct fontset_info, struct fontset_data): Structs removed.
11218 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
11219 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
11220 (fs_load_font, fs_query_fontset): Adjusted for new argument.
11221 (fs_free_face_fontset, fontset_font_pattern)
11222 (face_suitable_for_char_p, face_for_char)
11223 (make_fontset_for_ascii_face): Extern them.
11224 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
11225 (FS_LOAD_FACE_FONT): New macro.
11227 * fontset.c: All codes rewritten or adjusted for the change of
11228 fontset implementation. Now fontset is represented by char table.
11229 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
11231 (my_strcasecmp): Function removed.
11232 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
11233 (AREF, ASIZE): New macros.
11234 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
11235 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
11236 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
11237 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
11238 (fontset_id_valid_p, font_family_registry, fontset_name)
11239 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
11240 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
11242 (fs_load_font): New arg FACE. Caller changed.
11243 (fs_query_fontset): Argument changed. Caller changed.
11244 (Fquery_fontset): call fs_query_fontset.
11245 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
11247 (clear_fontset_elements, check_registry_encoding)
11248 (check_fontset_name): New functions.
11249 (syms_of_fontset): Set char-table-extra-slots property of fontset
11250 to 3. Staticpro and initialize Vfontset_table and
11251 Vdefault_fontset. Defsubr fontset_font and fontset_list.
11253 * frame.h (struct frame): Member `fontset_data' removed.
11254 (FRAME_FONTSET_DATA): Macro removed.
11256 * frame.c (make_frame): Don't allocate f->fontset_data.
11257 (Fdelete_frame): Don't free f->fontset_data.
11259 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
11261 * xdisp.c (charset_at_position): Function removed.
11262 (init_iterator): Don't set member charset of struct `it'.
11263 (handle_face_prop, reseat_to_string, set_iterator_to_next)
11264 (next_element_from_display_vector, insert_left_trunc_glyphs):
11266 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
11268 (get_next_display_element, append_space)
11269 (extend_face_to_end_of_line): Likewise.
11271 * xfaces.c (Qx_charset_registry, Vface_default_registry):
11273 (clear_font_table, frame_update_line_height, load_face_font):
11274 Adjusted for the change of fontset implementation.
11275 (load_face_fontset_font): Function removed.
11276 (pixel_point_size): New function.
11277 (font_list): Argument type changed. Caller changed.
11278 (LFACE_FONT): New macro.
11279 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
11280 (set_lface_from_font_name): Type of arg FONTNAME is changed to
11281 Lisp_Object. Determine the font name by actually loading a font
11282 by the specified pattern. Set LFACE_FONT (lface) to the specified
11283 pattern. Even if a font is not found, don't try alternatives.
11284 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
11285 (set_font_frame_param): If `font' is specified in lface, use it.
11286 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
11287 (lface_same_font_attributes_p): Likewise.
11288 (make_realized_face): Arguent changed. Caller changed. Set
11289 face->ascii_face to face itself.
11290 (free_realized_face): Free face->fontset if face is for ASCII.
11291 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
11292 (deduce_unibyte_registry, x_charset_registry): Functions removed.
11293 (free_realized_multibyte_face): New function.
11294 (lookup_face, lookup_named_face, lookup_derived_face): Argument
11295 changed. Caller changed.
11296 (try_font_list): Argument type changed.
11297 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
11298 (choose_face_font): Argument changed. Handle fontset properly.
11299 (choose_face_fontset_font): Function removed.
11300 (realize_default_face, realize_named_face): Don't remove the
11302 (realize_face): Argument changed. Caller changed. Remove face
11303 with the arg former_face_id in advance. Load font for the new face.
11304 (realize_x_face): Argument changed. Caller changed. For a
11305 multibyte character, share fontset with base_face. For a single
11306 byte character, make a new realized fontset. Don't load a font here.
11307 (realize_tty_face): Argument changed. Caller changed.
11308 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
11309 (face_at_buffer_position): Don't check multibyte_p for returning
11311 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
11312 FACE_SUITABLE_FOR_CHARSET_P.
11313 (syms_of_xfaces): Remove code for Qx_charset_registry and
11314 Vface_default_registry.
11316 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
11317 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
11318 (x_per_char_metric): Don't try FONT->default_char. Even if
11319 pcm->width is zero, glyph bits may exist.
11320 (x_encode_char): Always initialize char2b->byte1.
11321 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
11322 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
11323 (x_append_glyph): Set glyph->glyph_not_available_p.
11324 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
11325 it->charset. Handle the case that per char metric is not
11326 available. If it->multibyte_p is zero and it->c is a multibyte
11327 character, convert it to a unibyte character.
11328 (struct glyph_string): Delete member `charset'.
11329 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
11330 the case that per char metric is not available correctly.
11331 (x_fill_glyph_string): Handle the case that the specific glyph is
11332 not available correctly.
11333 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
11334 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
11335 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
11336 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
11337 fontset. Don't call FS_LOAD_FONT.
11339 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
11340 (x_create_tip_frame): Likewise.
11341 (Fx_close_connection): Free full_name of font_info.
11343 * fns.c (optimize_sub_char_table): New function.
11344 (Foptimize_char_table): New function.
11345 (syms_of_fns): Defsubr Soptimize_char_table.
11347 2000-03-20 Gerd Moellmann <gerd@gnu.org>
11349 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
11350 only if buffer is displayed in some window.
11352 * xdisp.c (handle_single_display_prop): Initialize local `value'.
11353 (try_window_reusing_current_matrix): Don't call scroll run
11354 function if run's current and desired position are the same;
11355 this prevents cursor flickering.
11357 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
11359 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
11361 * regex.c (RE_STRING_CHAR): New macro.
11362 (GET_CHAR_AFER_2): Remove.
11363 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
11364 (enum re_opcode_t): Remove on_failure_jump_exclusive.
11365 (print_partial_compiled_pattern, re_compile_fastmap)
11366 (re_match_2_internal): Remove on_failure_jump_exclusive.
11367 (regex_compile): Turn optimizable P+ loops into PP*, so that the
11368 optimization only need to work for * (ie. can use of_keep_string_jump).
11369 Remove the special case for .*\n since it is now covered by the general
11371 (re_search_2): Don't bother with `room'.
11372 (skip_one_char): New function.
11373 (skip_noops): Simplify since `memory' is not needed any more.
11374 (mutually_exclusive_p): Restructure slightly to use `switch' and
11375 add handling for "all" remaining cases.
11376 (re_match_2_internal): Change on_failure_jump_smart to use
11377 on_failure_keep_string_jump (and redirect the end-of-loop jump)
11378 rather than on_failure_jump_exclusive.
11380 2000-03-19 Gerd Moellmann <gerd@gnu.org>
11382 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
11383 number of bits per RGB because it's everywhere used as the depth
11386 * term.c (calculate_costs): Remove code dealing with X frames.
11388 2000-03-19 Richard M. Stallman <rms@gnu.org>
11390 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
11392 2000-03-18 Gerd Moellmann <gerd@gnu.org>
11394 * lread.c (read_integer): Unread the last char not consumed.
11396 2000-03-17 Gerd Moellmann <gerd@gnu.org>
11398 * xterm.c (x_update_window_cursor): Don't update in frames
11399 which are in the process of being deleted.
11401 2000-03-16 Gerd Moellmann <gerd@gnu.org>
11403 * Makefile.in (mostlyclean): Add `*.core'.
11404 (clean): Add `bootstrap-emacs'.
11406 * lread.c (read_integer): New function.
11407 (read1): Support read syntax #o, #x, #b, #r.
11409 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
11411 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
11412 make sure POINTER_TO_OFFSET gives the same value before and after
11413 PREFETCH. Use `dfail' to guarantee "atomic" matching.
11414 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
11415 (debug): Now only active if > 0 rather than if != 0.
11416 (DEBUG_*): Update for the new meaning of `debug'.
11417 (print_partial_compiled_pattern): Add missing `succeed' case. Use
11418 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
11419 in `succeed_n', `jump_n' and `set_number_at'.
11420 (store_op1, store_op2, insert_op1, insert_op2)
11421 (at_begline_loc_p, at_endline_loc_p): Add prototype.
11422 (group_in_compile_stack): Move to after its arg's types are
11423 declared and add a prototype.
11424 (PATFETCH): Define in terms of PATFETCH_RAW.
11425 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
11426 (QUIT): Redefine as a nop except for NTemacs.
11427 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
11428 indentation of the greedy-op and shy-group code.
11429 (at_(beg|end)line_loc_p): Fix argument's types.
11430 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
11431 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
11432 (MATCHING_IN_FIRST_STRING): Remove.
11433 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
11434 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
11435 QUIT unconditionally.
11437 2000-03-15 Gerd Moellmann <gerd@gnu.org>
11439 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
11442 * process.c (send_process): Add a hint that the function
11443 can call Lisp code to its comment.
11445 * lread.c (load_dangerous_libraries): New variable.
11446 (Vbytecomp_version_regexp): New variable.
11447 (safe_to_load_p): New function.
11448 (Fload): Handle files not compiled with Emacs specially.
11449 (syms_of_lread): New Lisp variable load-dangerous-libraries.
11451 2000-03-14 Gerd Moellmann <gerd@gnu.org>
11453 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
11455 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
11456 support functions only if HAVE_X11R6_XIM is defined.
11457 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
11459 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
11461 * xfns.c (X_I18N_INHIBITED): Don't define.
11462 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
11463 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
11465 * config.in (HAVE_X_I18N): Moved here from xterm.h.
11466 (HAVE_X11R6_XIM): Define.
11468 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
11470 * xterm.c (x_term_init): Add support for X resource `synchronous'.
11471 If set, call XSynchronize.
11473 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
11475 * regex.c: Declare a new type `re_char' used throughout the code
11476 for the string char type. It's `const unsigned char' to match the
11477 rest of Emacs. Consistently make sure all pointers to strings use
11478 it and make sure all pointers into the pattern use `unsigned char'.
11479 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
11480 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
11483 * charset.h (GET_CHAR_AFTER_2): Remove.
11484 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
11486 2000-03-12 Ken Raeburn <raeburn@gnu.org>
11488 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
11489 variable before the invocation of YMF_PASS_LDFLAGS, in case both
11490 of them try to use backquotes.
11492 2000-03-12 Dave Love <fx@gnu.org>
11494 * unexelf.c: Restore changes of 1999-10-19.
11495 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
11496 fix its type and alignment; copy it from current process.
11498 2000-03-12 Gerd Moellmann <gerd@gnu.org>
11500 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
11501 has been found. Fix bug not computing timer's predecessor.
11503 * fileio.c (Fread_file_name): Handle case that DIR contains a
11506 * window.c (Fsave_window_excursion): Doc fix.
11508 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
11510 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
11512 * msdos.c (vga_installed): New function, code moved from
11513 dos_set_window_size.
11514 (Qbar, Qcursor_type, outside_cursor): New variables.
11515 (syms_of_msdos): Intern and staticpro them.
11516 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
11517 shape used outside Emacs when called for the first time.
11518 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
11519 cursor shape used outside Emacs.
11520 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
11521 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
11523 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
11524 parameters specify the cursor. Make qreverse a global
11525 variable (renamed to Qreverse).
11527 2000-03-09 Gerd Moellmann <gerd@gnu.org>
11529 * fns.c (Fy_or_n_p): Cancel busy-cursor.
11531 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
11533 This is a big redesign of failure-stack and register handling, prompted
11534 by bugs revealed when trying to add shy-groups. Overall, what happened
11535 is that loops are now structured a little differently, groups can be
11536 shy and the code is a little simpler.
11538 * regex.h: Update the copyright.
11539 (RE_SHY_GROUPS): New value.
11540 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
11541 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
11543 * regex.c (enum re_opcode_t): Remove jump_past_alt,
11544 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
11545 on_failure_jump_(exclusive, loop and smart). Also fix the comment
11546 for (start|stop)_memory since they now only take one argument (the
11547 second has becomes unnecessary).
11548 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
11549 (print_compiled_pattern): Use %ld to printf long ints and flush to
11550 make debugging a little easier.
11551 (union fail_stack_elt): Make the integer unsigned.
11552 (struct fail_stack_type): Add a `frame' element.
11553 (INIT_FAIL_STACK): Init `frame' as well.
11554 (POP_PATTERN_OP): New macro for re_compile_fastmap.
11555 (DEBUG_PUSH, DEBUG_POP): Remove.
11556 (NUM_REG_ITEMS): Remove.
11557 (NUM_NONREG_ITEMS): Adjust.
11558 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
11559 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
11560 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
11561 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
11563 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
11564 address pushed is not the destination of the jump but the source
11566 (NUM_FAILURE_ITEMS): Remove.
11567 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
11568 registers before the actual failure point). Don't hardcode any
11569 meaning for str==NULL anymore.
11570 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
11571 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
11573 (REG_UNSET_VALUE): Use NULL (why not?).
11574 (compile_range): Remove declaration since it doesn't exist.
11575 (struct compile_stack_elt_t): Remove inner_group_offset.
11576 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
11577 (regex_grow_registers): Remove dead code.
11578 (FIXUP_ALT_JUMP): New macro.
11579 (regex_compile): Add shy-groups Change loops to use
11580 on_failure_jump_smart&jump instead of
11581 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
11582 initial (dummy_failure_)jump. Remove c1_base (looks like unused
11583 variable to me). Use `jump' instead of `jump_past_alt' and don't
11584 bother with push_dummy_failure in alternatives since it is now
11585 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
11586 emacs' for (re)allocating the stack.
11587 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
11588 from loop when bufp->can_be_null rather than jumping to `done'.
11589 Avoid jumping backwards so as to ensure termination. Use
11590 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
11591 backreferences. Remove dead code in handling of `anychar'.
11592 (skip_noops, mutually_exclusive_p): New functions taken from the
11593 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
11594 improve mutually_exclusive_p to handle ".+\n".
11595 (lowest_active_reg, highest_active_reg)
11596 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
11597 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
11598 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
11599 variables. Push register (in `start_memory') on the stack rather
11600 than storing it in old_reg(start|end). Remove the cycle detection
11601 from `stop_memory', replaced by the use of on_failure_jump_loop
11602 for greedy loops. Add code for the new on_failure_jump_<foo>.
11603 Remove ad-hoc code in `on_failure_jump' to push more registers in
11604 the case of a loop. Take out code from `maybe_pop_jump' into
11605 separate functions and adapt it to the semantics of
11606 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
11607 and push_dummy_failure. Remove dummy_failure handling and
11608 handling of `failures to jump to on_failure_jump' (this last one
11609 was already dead code, it seems).
11610 (group_match_null_string_p, alt_match_null_string_p)
11611 (common_op_match_null_string_p): Remove.
11613 2000-03-08 Dave Love <fx@gnu.org>
11615 * config.in: Don't depend on __STDC__ for volatile.
11616 Add POINTER_TYPE, PTR, PROTOTYPES.
11618 * hftctl.c, strftime.c: Use PROTOTYPES.
11619 * eval.c (find_handler_clause): Likewise.
11621 * mem-limits.h: Use POINTER_TYPE.
11623 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
11624 (memory_warnings): Declare using POINTER_TYPE.
11626 2000-03-08 Gerd Moellmann <gerd@gnu.org>
11628 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
11630 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
11632 * xfns.c: Remove obsolete code in #if 0.
11633 (Fx_focus_frame): New function.
11635 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11637 * coding.c (coding_category_name): Add coding-category-utf-8,
11638 coding-category-utf-16-be, coding-category-utf-16-le.
11639 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
11640 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
11641 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
11642 (detect_coding_utf_8): New function.
11643 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
11644 UTF_16_LOW_SURROGATE_P): New macros.
11645 (detect_coding_utf_16): New function
11646 (detect_coding_mask): When priorities are specified, skip any
11647 categories that have `nil' coding-system. Fix bug of returning
11648 wrong mask when PRIORITIES is specified and detect_coding_XXX()
11649 returns a mask not set in PRIORITIES.
11650 (detect_eol_type_in_2_octet_form): New function.
11651 (detect_eol): selects detect_eol_type_XXX to call according to
11652 cooding->category_idx.
11653 (detect_coding_system): Remove `nil' coding-system in the result.
11654 (Fupdate_coding_systems_internal): Update all coding-categories.
11656 * coding.h (CODING_CATEGORY_IDX_UTF_8)
11657 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
11659 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
11660 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
11661 (CODING_CATEGORY_IDX_UTF_16_LE)
11662 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
11663 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
11664 (CODING_CATEGORY_MASK_ANY): Include the above macros.
11665 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
11667 2000-03-07 Gerd Moellmann <gerd@gnu.org>
11669 * doc.c (Fdocumentation_property): If value is not a string,
11670 and doesn't refer to etc/DOC, evaluate it to obtain a string.
11672 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
11673 close the display with XtCloseDisplay. This caused a bus error
11676 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
11677 complete but not unique.
11679 2000-03-06 Gerd Moellmann <gerd@gnu.org>
11681 * process.c (send_process): Remove local variable `procname' that
11682 might become invalid when a GC happens. Instead, access the
11683 process name slot directly.
11685 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
11686 orig_height if set.
11688 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
11689 orig_height if set.
11691 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
11693 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
11694 glyph matrices have been freed.
11696 2000-03-05 Gerd Moellmann <gerd@gnu.org>
11698 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
11699 (bootstrap-temacs): Set LC_ALL to C like for temacs.
11701 * xfns.c (QCdata): Moved to xdisp.c.
11703 * xdisp.c (QCdata): Moved here from xfns.c.
11704 (syms_of_xdisp): Initialize QCdata.
11706 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
11708 * window.c (coordinates_in_window): Use
11709 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
11710 FRAME_INTERNAL_BORDER_WIDTH.
11712 * xdisp.c (try_window_id): Recompute unchanged information if
11713 it is obviously invalid.
11715 * xterm.c (x_term_init): Create a colormap if not using the
11718 * xterm.h (select_visual): Change prototype.
11720 * xfns.c (select_visual): Rewritten. Recognize user-specified
11722 (visual_classes): New variable.
11724 2000-03-04 Gerd Moellmann <gerd@gnu.org>
11726 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
11727 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
11728 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
11729 (x_decode_color): Don't handle allocation of white and black specially.
11730 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
11731 XtNcolormap resources.
11732 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
11733 (Fx_create_frame): Initialize color members of x_output structure.
11734 (xpm_load): Pass colormap to XPM lib.
11736 * xfaces.c (x_free_colors): Access colormap of frame using
11737 FRAME_X_COLORMAP. Be paranoid about freeing black and white
11738 when default colormap is used.
11740 * xterm.c (x_term_init): Set Colormap member of x_display_info
11741 structure. Copy colormap if resource `privateColormap' is
11742 specified (PseudoColor only).
11743 (x_setup_relief_color): Access colormap of frame using
11746 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
11747 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
11749 2000-03-04 Jason Rumney <jasonr@gnu.org>
11751 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
11752 other non-platform-specific equivalents.
11753 [WINDOWSNT]: Include w32term.h, fontset.h and define X
11754 specific functions and macros as their w32 equivalents where
11755 non-platform-specifics are not available.
11756 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
11757 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
11758 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
11759 (frame_update_line_height): Use macros to access f->output_data.
11760 (defined_color): Remove FIXME comments; fixed.
11761 (x_face_list_fonts, prepare_face_for_display): Put X specifics
11762 into #ifdef blocks. Add WINDOWSNT blocks.
11763 (Fx_list_fonts): Use macros for accessing font data.
11764 (set_lface_from_font_name): Different default fonts for X and
11766 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
11767 scalable for backward compatibility.
11768 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
11769 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
11771 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
11774 * makefile.nt (w32faces.obj): Remove.
11777 2000-03-03 Jason Rumney <jasonr@gnu.org>
11779 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
11780 correct parameters.
11782 2000-03-03 Ken Raeburn <raeburn@gnu.org>
11784 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
11785 standard ELF definitions here if the system header does not.
11787 2000-03-03 Gerd Moellmann <gerd@gnu.org>
11789 * xterm.c (PER_CHAR_METRIC): Removed.
11790 (x_per_char_metric_1, x_default_char): New functions.
11791 (x_per_char_metric): If font's default char is invalid, return
11792 metrics of a suitably chosen usable default char.
11793 (x_draw_glyph_string_foreground): If font has an invalid default
11794 char, replace occurrences of unprintable chars with a suitably
11795 chosen usable default char.
11797 2000-03-02 Gerd Moellmann <gerd@gnu.org>
11799 * xterm.c (note_mouse_highlight): Return quickly if frame's
11800 glyph matrices have been freed.
11802 * dispnew.c (free_glyphs): Block input while freeing matrices.
11804 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
11806 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
11809 * dispextern.h (x_free_colors): Add prototype.
11811 * xfaces.c (x_free_colors): New function.
11812 (unload_color, free_face_colors): Use it.
11814 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
11816 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
11818 * window.c [MSDOS]: Include msdos.h.
11820 2000-03-02 Dave Love <fx@gnu.org>
11822 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
11824 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
11825 set C_OPTIMIZE_SWITCH for gcc.
11827 2000-03-02 Kenichi Handa <handa@etl.go.jp>
11829 * coding.c (coding_save_composition): Be sure to allocate
11830 composition data area in coding even if there's no composition in
11833 2000-03-01 Jason Rumney <jasonr@gnu.org>
11835 * w32term.c: Equivalent changes to those made to xterm.c on
11836 2000-02-25 and 2000-02-24.
11838 * w32fns.c: Equivalent changes to those made to xfns.c on
11839 2000-02-25 and 2000-02-21.
11841 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
11842 correct line-end convention is followed.
11844 * w32menu.c [HAVE_BOXES]: Remove #undef.
11845 (single_keymap_panes): Remove code for simulating checkmarks.
11846 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
11847 Remove code for drawing simulated checkmarks.
11848 (w32_menu_show): make unibyte help string correctly.
11849 (add_menu_item): draw standard Windows checkmarks. Draw radio
11850 buttons as radio buttons if possible.
11852 2000-03-01 Gerd Moellmann <gerd@gnu.org>
11854 * sysdep.c (start_of_text): Don't define this function for NetBSD
11857 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
11859 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
11860 (LINKER): Don't undef if __NetBSD__ is defined.
11862 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
11864 * fileio.c [__NetBSD__]: Define `unix'.
11866 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
11868 2000-02-29 Gerd Moellmann <gerd@gnu.org>
11870 * atimer.c (start_atimer): Don't abort when timers are stopped.
11871 (append_atimer_lists): New function.
11872 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
11873 arbitrary lists of stopped and running atimers.
11875 * atimer.c (cancel_atimer): Handle canceling an atimer when
11876 some timers are stopped.
11878 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
11879 after canceling it.
11881 * fns.c (maybe_resize_hash_table): Handle case of new size
11882 coming out as being the same as old size.
11884 2000-02-27 Jason Rumney <jasonr@gnu.org>
11886 * makefile.nt: Add atimer.h to dependencies.
11887 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
11888 * w32console.c: Only disable window system features for dispextern.h
11889 (initialize_w32_display): Build a display info for the console.
11890 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
11891 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
11892 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
11894 * w32gui.h (struct W32FontStruct): Revert last change after change
11896 * w32menu.c (single_submenu): Set up help string.
11897 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
11898 (w32_dialog_show): Set up help string.
11899 * w32term.c (w32_display_info_for_display): Remove unused function.
11900 (w32_draw_bitmap): Use pre-built bitmaps.
11901 (w32_initialize_display_info): New function to initialize parts of
11902 display info that are common to both GUI and console frames.
11903 (w32_term_init): Use w32_initialize_display_info. Do not set
11904 Vw32_num_mouse_buttons here, as it is not called for console
11905 frames. Build bitmaps for indicating truncated lines etc.
11906 (x_delete_display): Destroy pre-built bitmaps.
11907 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
11908 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
11910 2000-02-27 Dave Love <fx@gnu.org>
11912 * lisp.h: Add a bunch of prototypes.
11914 2000-02-26 Kenichi Handa <handa@etl.go.jp>
11916 * keyboard.c (read_char): Set `usec' correctly.
11918 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11920 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
11921 `lambda', set reg[RRR] to the map index.
11922 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
11923 reg[RRR] to 0. Otherwise, set it to -1.
11925 2000-02-25 Gerd Moellmann <gerd@gnu.org>
11927 * emacs.c (main): Remove code snippet commented out with `//'.
11929 2000-02-25 Richard M. Stallman <rms@gnu.org>
11931 * fileio.c (Ffile_symlink_p): If result starts with a `/'
11932 and contains a `:', prepend `/:'.
11934 * window.c (select_window_1): If selected_window is nil,
11935 don't "swap out" the buffer's point.
11936 (Fset_window_configuration): Set selected_window to nil
11937 before calling Fselect_window.
11938 (unshow_buffer): Don't set point in buffer from window's point
11939 if another more recently selected window also shows the buffer.
11941 2000-02-25 Gerd Moellmann <gerd@gnu.org>
11943 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
11945 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
11946 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
11947 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
11949 (DEFAULT_BUSY_CURSOR_DELAY): New define.
11950 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
11951 (hide_busy_cursor): New functions.
11952 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
11954 * minibuf.c (read_minibuf): Cancel busy-cursor.
11956 * keyboard.c (command_loop_1): Call start_busy_cursor before
11957 Fcommand_execute and cancel_busy_cursor after it.
11958 (timer_check): Remove busy-cursor code.
11959 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
11962 * process.c (wait_reading_process_input): Remove busy-cursor code.
11964 * eval.c (Fsignal): Call cancel_busy_cursor instead of
11965 Fx_hide_busy_cursor.
11967 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
11969 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
11971 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
11973 * xterm.c (XTread_socket): Remove busy-cursor code.
11975 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
11976 (build_frame_matrix_from_leaf_window): Put code handling
11977 glyph row's not being a slice of a frame row in #if 0.
11978 (sync_window_with_frame_matrix_rows): New function.
11979 (frame_row_to_window): New function.
11980 (mirror_line_dance): Handle copies between windows.
11982 * lread.c (Fload): Use `xfree' instead of `free'.
11983 (init_obarray): Use `xmalloc' instead of `malloc'.
11985 * window.c (Fset_window_buffer): Set WINDOW to the window
11987 (coordinates_in_window): Take frame's internal border width
11990 2000-02-24 Gerd Moellmann <gerd@gnu.org>
11992 * xterm.c (x_display_and_set_cursor): Display cursor of
11993 non-selected windows depending on the setting of
11994 cursor_in_non_selected_windows.
11996 * xdisp.c (cursor_in_non_selected_windows): New variable.
11997 (syms_of_xdisp): DEFVAR_BOOL it.
11999 2000-02-23 Gerd Moellmann <gerd@gnu.org>
12001 * data.c (Fstring_to_number): If number is greater than what
12002 fits into an integer, return a float.
12004 * eval.c (specbind): Remove references to
12005 keyword_symbols_constant_flag.
12007 * data.c (keyword_symbols_constant_flag): Removed.
12008 (Fmakunbound, set_internal, syms_of_data): Remove references to
12009 keyword_symbols_constant_flag.
12011 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
12013 2000-02-23 Kenichi Handa <handa@etl.go.jp>
12015 * syntax.c (multibyte_syntax_as_symbol): New variable.
12016 (syms_of_syntax): Declare it as a Lisp variable.
12017 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
12018 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
12019 nonzero, treat all multibyte characters as symbol.
12020 (init_syntax_once): Give syntax `word' to all multibyte characters.
12022 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12024 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
12027 2000-02-21 Gerd Moellmann <gerd@gnu.org>
12029 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
12031 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12032 (x_non_menubar_window_to_frame): Check the busy-cursor window.
12034 2000-02-21 Dave Love <fx@gnu.org>
12036 * frame.c (Vmouse_position_function): New variable.
12037 (Fmouse_position): Use it.
12038 (syms_of_frame): Install it.
12040 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
12042 2000-02-20 Gerd Moellmann <gerd@gnu.org>
12044 * fileio.c (Finsert_file_contents): Unbind the binding of
12045 standard-output done by temp_output_buffer_setup.
12047 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
12048 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
12049 (specbind, unbind_to): Handle most common case of non-constant
12050 symbol with trivial value specially.
12052 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
12054 2000-02-20 Richard M. Stallman <rms@gnu.org>
12056 * data.c (Fmake_variable_buffer_local): Doc fix.
12057 Init found_for_buffer to 0.
12058 (Fmake_variable_frame_local): If the variable has already
12059 been buffer-local, set the check_frame field.
12061 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
12063 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
12064 produced for CODING_MODE_LAST_BLOCK requires.
12066 2000-02-18 Dave Love <fx@gnu.org>
12068 * keyboard.c (echo_keystrokes): Remove declaration.
12069 (Vecho_keystrokes) New variable.
12070 (read_char, record_menu_key, read_key_sequence): Use it to allow
12071 use of float value.
12072 (syms_of_keyboard): Change Vecho_keystrokes declaration.
12074 * lread.c: Undef feature selection macros before defining.
12076 2000-02-18 Gerd Moellmann <gerd@gnu.org>
12078 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
12079 for symbols other than the symbol in question.
12081 2000-02-17 Dave Love <fx@gnu.org>
12083 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
12085 2000-02-17 Gerd Moellmann <gerd@gnu.org>
12087 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
12089 * alloc.c (enum mem_type): Compile unconditionally.
12091 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
12093 * xfaces.c (tty_defined_color): Don't return faulire indication
12094 for unspecified-fg and unspecified-bg pseudo-colors.
12096 2000-02-17 Gerd Moellmann <gerd@gnu.org>
12098 * alloc.c (mark_object): Don't mark symbol names in pure space.
12099 (gc_sweep): Don't unmark symbol names in pure space.
12101 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
12102 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
12103 [GC_MARK_STACK]: New defines.
12104 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
12105 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
12107 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
12109 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
12110 allocate_buffer instead of xmalloc.
12112 * alloc.c (toplevel): Include setjmp.h.
12113 (PURE_POINTER_P): New define.
12114 (enum mem_type) [GC_MARK_STACK]: New enumeration.
12115 (Vdead) [GC_MARK_STACK]: New variable.
12116 (lisp_malloc): Add parameter TYPE, call mem_insert if
12117 GC_MARK_STACK is defined.
12118 (allocate_buffer): New function.
12119 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
12120 (free_float) [GC_MARK_STACK]: Set type to Vdead.
12121 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
12122 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
12123 (MEM_NIL) [GC_MARK_STACK]: New define.
12124 (struct mem_node) [GC_MARK_STACK]: New structure.
12125 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
12126 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
12127 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
12128 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
12129 (mark_stack) [GC_MARK_STACK]: New functions.
12130 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
12131 (clear_marks): Removed.
12132 (gc_sweep): Set free conses' car, free floats' type, free
12133 symbols' function to Vdead. Use lisp_free to free buffers.
12134 (init_alloc_once): Initialize Vdead.
12135 (survives_gc_p): Return non-zero for pure objects.
12137 * alloc.c: Add comments throughout the file.
12139 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
12140 that unblocks alarms.
12142 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
12143 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
12144 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
12146 * frame.c (make_frame): Set frame initiallly to `garbaged'.
12148 2000-02-17 Kenichi Handa <handa@etl.go.jp>
12150 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
12151 avoid infinite error signaling. Allocate sufficient memory for
12152 eol_str in the case that eoltype is Lisp_Int.
12154 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
12156 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
12157 depends on the previous behavior.
12159 2000-02-16 Gerd Moellmann <gerd@gnu.org>
12161 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
12163 2000-02-15 Gerd Moellmann <gerd@gnu.org>
12165 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
12167 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
12168 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
12171 2000-02-15 Richard M. Stallman <rms@gnu.org>
12173 * data.c (set_internal): Don't make variable buffer-local
12174 if within a let-binding for the same buffer.
12175 (let_shadows_buffer_binding_p): New function.
12177 * eval.c (specbind): For buffer-local value,
12178 record the current buffer also.
12179 (unbind_to): Cope with that change.
12181 2000-02-15 Gerd Moellmann <gerd@gnu.org>
12183 * window.c (Fsave_window_excursion): Doc fix.
12185 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
12187 * syntax.c (back_comment): Make sure we only consider comment-starters
12188 of the relevant style and return -1 in case of a failure to find the
12189 beginning of the comment.
12190 (Fforward_comment): If back_comment fails, go back to the position just
12191 after the comment-end.
12192 (scan_lists): Add comment describing a very minor bug.
12194 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12196 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
12197 `completion-regexp-list' in the docstring.
12199 2000-02-14 Dave Love <fx@gnu.org>
12201 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
12203 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12205 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
12206 to Emacs' syntax. Also fix the comment about set/not-set meanings
12207 since Emacs syntax is not the value 0 any more.
12208 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
12209 since it's now part of RE_SYNTAX_EMACS.
12211 2000-02-12 Dave Love <fx@gnu.org>
12213 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
12215 2000-02-12 Gerd Moellmann <gerd@gnu.org>
12217 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
12219 2000-02-12 Dave Love <fx@gnu.org>
12221 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
12223 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
12224 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
12225 * s/hpux.h: Don't define HAVE_VFORK.
12227 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
12229 * s/nextstep.h: Don't define HAVE_ALLOCA.
12231 * config.in: Add vfork bits.
12233 2000-02-12 Gerd Moellmann <gerd@gnu.org>
12235 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
12236 unwind function to undo the effect of stopping atimers.
12238 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
12240 * atimer.c (stopped_atimers): New variable.
12241 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
12244 * atimer.h (stop_other_atimers, run_all_atimers)
12245 (unwind_stop_other_atimers): Add function prototypes.
12247 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
12249 2000-02-11 Ken Raeburn <raeburn@gnu.org>
12251 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
12252 library may depend on jpeg.
12253 (atimer.o): Depends on atimer.c.
12255 2000-02-11 Kenichi Handa <handa@etl.go.jp>
12257 * insdel.c (del_range_1): Call update_compositions.
12258 (del_range_both): Call update_compositions just once..
12260 2000-02-10 Dave Love <fx@gnu.org>
12262 * xfns.c (create_frame_xic): Fix initialization of automatic
12263 aggregates for pcc.
12265 2000-02-09 Kenichi Handa <handa@etl.go.jp>
12267 * ccl.c (CCL_MAKE_CHAR): New macro.
12268 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
12269 registers by CCL_MAKE_CHAR before calling translate_char.
12270 <CCL_TranslateCharacterConstTbl> Likewise.
12272 2000-02-08 Dave Love <fx@gnu.org>
12274 * lread.c (__EXTENSIONS__): Define.
12276 2000-02-08 Gerd Moellmann <gerd@gnu.org>
12278 * puresize.h (BASE_PURESIZE): Increase to 650000.
12280 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12282 * msdos.c (XMenuActivate): Turn off the cursor after displaying
12285 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12287 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
12288 md, mh, mb, mr, and me to the fake termcap entry.
12290 2000-02-06 Ken Raeburn <raeburn@gnu.org>
12292 * sound.c (sound_cleanup): Don't call device close routine if the
12293 function pointer is null.
12295 2000-02-06 Andrew Innes <andrewi@gnu.org>
12297 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
12298 around image definitions and prototypes.
12299 (gamma_correct) [WINDOWSNT]: New prototype.
12301 * w32term.c (x_make_frame_visible): Replace call to
12302 input_poll_signal with poll_for_input.
12304 * window.c [WINDOWSNT]: Include w32term.h.
12306 * xdisp.c [WINDOWSNT]: Include w32term.h.
12308 * makefile.nt: Add dependencies on w32gui.h.
12309 (OBJ1): Include atimer.obj.
12310 ($(BLD)\atimer.obj): New dependency rule.
12312 * w32.c (sigmask): New function (does nothing).
12313 (sigunblock): Ditto.
12315 * frame.c [WINDOWSNT]: Include w32term.h.
12317 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
12319 * lread.c (syms_of_lread): Fix literal newlines.
12321 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
12322 the string constant limit (2048 bytes) in MSVC.
12325 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
12327 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
12328 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
12329 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
12330 dispatch the event.
12332 2000-02-04 Dave Love <fx@gnu.org>
12334 * fileio.c: Remove some unused vars.
12335 (_GNU_SOURCE): Define (for euidaccess).
12337 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
12339 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
12341 (read_minibuf): Deal with allow_props correctly.
12343 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
12345 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
12347 2000-02-03 Ken Raeburn <raeburn@gnu.org>
12349 * search.c (compile_pattern): If a cache entry has a nil regexp,
12350 fill in that entry instead of clobbering a previously cached
12353 2000-02-02 Ken Raeburn <raeburn@gnu.org>
12355 * puresize.h (BASE_PURESIZE): Increase to 610000.
12357 2000-02-02 Gerd Moellmann <gerd@gnu.org>
12359 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
12362 2000-02-02 Kenichi Handa <handa@etl.go.jp>
12364 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
12365 instead of incrementing ic directly.
12366 <CCL_WriteExprConst> Likewise.
12367 <ccl_set_expr>: Set ic to jump_address.
12369 * fileio.c (e_write): Fix the handling of
12370 CODING_FINISH_INSUFFICIENT_SRC.
12372 2000-02-01 Dave Love <fx@gnu.org>
12374 * editfns.c (Fpropertize): Doc fix.
12376 * process.c (Fstart_process): Doc fix.
12378 * eval.c: Fix various doc strings not to duplicate information
12379 from help-manyarg-func-alist.
12381 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
12383 * doc.c (Vhelp_manyarg_func_alist): New variable.
12384 (Fdocumentation): Use it.
12385 (syms_of_doc): Define it.
12387 2000-01-31 Gerd Moellmann <gerd@gnu.org>
12389 * xterm.c (xim_open_dpy): Remove unused local variable.
12391 * emacs.c (USAGE): Use term `display options' instead of `X options'.
12393 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
12394 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
12396 * fns.c (sweep_weak_table): New function.
12397 (sweep_weak_hash_tables): Use it. Keep on marking until there
12400 2000-01-30 Gerd Moellmann <gerd@gnu.org>
12402 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
12403 that XTread_socket does not crash by trying to call XNoOp on a
12406 2000-01-30 Jason Rumney <jasonr@gnu.org>
12408 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
12409 Change selected_frame to SELECTED_FRAME ().
12410 (w32_console_mouse_position): Remove #ifndef MULE from around
12411 `insist' parameter.
12413 * makefile.nt: Remove dosfns.obj.
12415 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
12417 * w32fns.c (w32_defined_color): Check for valid frame before
12418 applying gamma correction. Eliminate dependency on frame elsewhere.
12419 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
12420 (w32_to_x_font): Use resx and resy not height_in and width_in.
12421 (x_to_w32_font): Doc fix.
12422 (xlfd_strip_height): New function to strip and return font height.
12423 (w32_font_match): Compare height separately from rest of xlfd
12424 spec, using xlfd_strip_height.
12426 * w32term.c (w32_term_init): Swap resx and height_in, resy and
12427 width_in. Use w32_defined_color in place of defined_color.
12429 * w32faces.c: Merge more of DOS and X specifics in preparation for
12430 merge with xfaces.c.
12431 (defined_color): Remove FIXME comment.
12432 (tty_color_name): Provide w32-specific function.
12433 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
12435 * w32console.c (turn_on_face, turn_off_face): Removed.
12436 (w32_face_attributes): New function.
12437 (Global_variables): Reduce scope where possible.
12438 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
12440 (hl_mode): Don't modify text attributes.
12441 (write_glyphs): Don't do anything if len <= 0. Use
12442 w32_face_attributes to get attributes for drawing. Write
12443 terminating codes using char_attr_normal.
12444 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
12445 (update_begin, update_end): Likewise.
12446 (vga_stdcolor_name): New function.
12447 (initialize_w32_display): Remove char_attr_reverse and char_attr.
12448 (Fset_screen_color): Remove char_attr_reverse.
12450 2000-01-29 Gerd Moellmann <gerd@gnu.org>
12452 * xfns.c (xic_set_preeditarea): Take window parameter and
12453 window-relative pixel-positions.
12455 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
12456 is its frame's selected window.
12457 (xim_instantiate_callback): Likewise.
12459 * xfns.c (x_create_im): Removed.
12460 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
12461 (supported_xim_styles): Renamed from supported_styles.
12462 (best_xim_style): Renamed from best_style.
12463 (create_frame_xic): Renamed from xic_create_frame.
12464 (free_frame_xic): Renamed from xic_destroy_frame.
12466 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
12468 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
12469 our frames, call XFilterEvent with 2nd parameter `None'.
12470 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
12471 returning XBufferOverflow.
12472 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
12473 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
12474 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
12475 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
12476 (xim_initialize, xim_close)
12477 [HAVE_X_I18N && HAVE_X11R6]: New functions.
12478 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
12479 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
12480 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
12482 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
12484 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
12485 `xic_style' and `xic_xfs'.
12486 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
12487 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
12488 (FRAME_XIM): Removed.
12490 * xfns.c (supported_styles): New variable.
12491 (DEFAULT_STYLE, DEFAULT_FONT): New macros
12492 (xic_create_xfontset, best_style, xic_create_frame)
12493 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
12494 (xic_set_xfontset): New functions.
12496 2000-01-28 Dave Love <fx@gnu.org>
12498 * s/irix6-5.h: Revert last change after change to irix5-0.h.
12500 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
12502 2000-01-28 Gerd Moellmann <gerd@gnu.org>
12504 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
12505 for *scratch* if it already existed.
12507 * emacs.c (USAGE): New macro.
12508 (main): Use it to display usage information.
12510 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
12512 Support for the menu-help feature:
12514 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
12516 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
12517 part of the line to the termscript file.
12518 (IT_clear_to_end): Clear the entire line, not just its beginning.
12519 (menu_help_message, prev_menu_help_message): New variables.
12520 (IT_menu_make_room): Make room for the help_text member.
12521 (IT_menu_display): New argument disp_help; all callers changed.
12522 If disp_help is non-zero, store the help text of the active menu
12523 item in menu_help_message.
12524 (XMenuAddPane): Initialize the help_text member to NULL.
12525 (XMenuAddSelection): New argument help_text. Store it in the
12527 (XMenuActivate): New argument help_callback. If the value of
12528 menu_help_message has changed since the last time, display the
12529 menu help message text while waiting for the mouse to move. Clear
12530 the echo area before exiting.
12531 (XMenuDestroy): Free the help_text member.
12533 2000-01-27 Gerd Moellmann <gerd@gnu.org>
12535 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
12536 XMenuAddSelection. Pass help callback to XMenuActivate.
12537 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
12539 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
12541 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
12542 and EMACS_SET_USECS.
12544 2000-01-26 Dave Love <fx@gnu.org>
12546 * editfns.c (Fchar_after, Fchar_before): Doc fix.
12548 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
12549 an error may be signalled.
12551 2000-01-26 Gerd Moellmann <gerd@gnu.org>
12553 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
12554 LD_SWITCH_SYSTEM inherited from irix5-0.h.
12556 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
12558 2000-01-25 Gerd Moellmann <gerd@gnu.org>
12560 * charset.c (Fstring): If there is a multibyte char among
12561 the args, always return a multibyte string.
12563 2000-01-25 Gerd Moellmann <gerd@gnu.org>
12565 * sysdep.c (sys_select): Turn atimers off and on instead of
12566 recording and restoring old alarm handler
12568 * process.c (toplevel): Include atimer.h.
12569 (create_process_1): Rewritten.
12570 (create_process): Use atimers instead of alarm.
12571 (wait_reading_process_input) [hpux]: Turn atimers off instead
12572 of turning off SIGALRM.
12573 (wait_reading_process_input): Turn off atimers instead off
12574 calling stop_polling.
12576 * emacs.c (main): Call init_atimer.
12578 * keyboard.c (toplevel): Include systime.h and atimer.h.
12579 (polling_for_input): Removed because unused.
12580 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
12581 (poll_timer): New variable.
12582 (poll_for_input, poll_for_input_1): New functions.
12583 (start_polling, stop_polling): Rewritten.
12585 * keyboard.h (polling_for_input): Removed.
12587 * atimer.h, atimer.c: New files.
12589 * Makefile.in (obj): Add atimer.o.
12590 (atimer.o): New target.
12592 * blockinput.h (pending_atimers): Add extern declaration.
12593 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
12595 * lisp.h (popup_activated_flag): Add extern declaration.
12597 * xmenu.c (popup_activated_flag): Make externally visible.
12598 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
12599 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
12601 * xterm.c (toplevel): Include atimer.h.
12602 (toolkit_scroll_bar_interaction): New variable.
12603 (Fxt_process_timeouts): Removed.
12604 (x_process_timeouts): New function.
12605 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
12606 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
12607 (x_make_frame_visible): Call poll_for_input_1 instead of
12608 input_poll_signal. Don't call alarm.
12609 (x_initialize): Install timer calling x_process_timeouts.
12611 2000-01-24 Dave Love <fx@gnu.org>
12613 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
12614 Don't use -cckr -- apparently not now necessary.
12616 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
12618 * msdos.c (IT_menu_display): Truncate long menu lines at the right
12621 2000-01-23 Jason Rumney <jasonr@gnu.org>
12623 * w32fns.c (w32_defined_color): Apply gamma correction before
12624 trying to map to the palette.
12625 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
12628 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
12629 here. Callers changed to always pass real device context.
12630 (w32_draw_bitmap): Likewise.
12631 (w32_get_glyph_overhangs): Likewise.
12632 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
12633 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
12634 pfnSetScrollInfo and SetScrollRange.
12635 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
12636 back into MULE characters after decoding them.
12637 (x_get_glyph_face_and_encoding): Likewise.
12638 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
12639 GetCharABCWidthsW fails, since this is defined on Windows 9x.
12640 (x_produce_glyphs): Calculate per char metrics for a character
12641 that we know exists in default font when font_not_found_p is true.
12643 2000-01-22 Jason Rumney <jasonr@gnu.org>
12645 * makefile.nt (intervals.obj, composite.obj): New modules.
12646 (composite.h): Added as dependency where appropriate.
12648 * w32gui.h (XGCValue): New struct for emulating X GCs.
12650 * w32term.h (XCharStruct): New struct for emulating X.
12652 * w32console.c (turn_on_face, turn_off_face): New functions.
12653 (change_line_highlight): New prototype for new redisplay.
12654 (write_glyphs): Support multibyte text. Support faces.
12656 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
12658 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
12659 throughout. struct frame * in place of FRAME_PTR.
12660 Skeleton support for images, toolbars, tooltips from xfns.c.
12661 (Fx_create_frame): Use system default for default scroll bar width.
12662 (w32_get_arg): Renamed from x_get_arg.
12663 (Fx_file_dialog): New function.
12664 (w32_list_fonts): Check cache before asking system.
12665 (Vw32_enable_synthesized_fonts): New variable.
12666 (Vw32_enable_italics): Obsolete, removed.
12668 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
12669 Use SELECTED_FRAME macro.
12671 * w32menu.c: Add skeleton support for help strings on menus.
12672 (add_menu_item): Native checkbox and radio support added, but not
12673 yet enabled due to bugs.
12674 (push_menu_item): Add parameters type, selection and help.
12676 Formatting changes to reduce unnecessary diffs with xmenu.c.
12678 * w32select.c (Fw32_set_clipboard_data): Update call to
12679 find_charset_in_str.
12681 * w32term.c: Complete rewrite for new redisplay based on new
12682 xterm.c with necessary sections merged back in from old w32term.c.
12684 2000-01-21 Richard M. Stallman <rms@gnu.org>
12686 * data.c (set_internal): Further fix in same criterion.
12688 2000-01-20 Richard M. Stallman <rms@gnu.org>
12690 * data.c (set_internal): Fix the criteria for whether
12691 to swap out the old cached binding.
12693 2000-01-19 Dave Love <fx@gnu.org>
12695 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
12697 2000-01-18 Kenichi Handa <handa@etl.go.jp>
12699 * regex.c (re_compile_fastmap): While checking a range table for
12700 `charset', skip flag bits for a character class correctly.
12702 2000-01-17 Gerd Moellmann <gerd@gnu.org>
12704 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
12706 * xfns.c (x_window): Call lw_create_widget with new parameter list.
12708 * widget.c (EmacsFrameSetCharSize): Change size of children first
12709 because of problems with main window geometry management under Lesstif.
12711 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
12712 MENU_ITEMS_ITEM_.*.
12713 (MENU_ITEMS_ITEM_HELP): New enumerator.
12714 (push_menu_item): Add parameter HELP. Record help in menu_items.
12715 (single_menu_item, single_submenu, list_of_items): Call
12716 push_menu_item with new parameter.
12717 (single_submenu): Set help string in widget value.
12718 (menu_highlight_callback): New function.
12719 (set_frame_menubar): Call lw_create_widget with new
12721 (xmenu_show, xdialog_show): Ditto.
12723 2000-01-13 Gerd Moellmann <gerd@gnu.org>
12725 * sound.c (Fplay_sound): Improve doc string.
12727 2000-01-11 Richard M. Stallman <rms@gnu.org>
12729 * lisp.h (set_internal): Enter the new arg.
12731 * eval.c (specbind): Record buffer-local variables specially,
12732 indicating which buffer's binding was saved.
12733 (unbind_to): Restore buffer-local variables specially
12734 in the proper buffer.
12736 * data.c (set_internal): New arg BUF.
12738 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
12739 * data.c (Fset): Pass new arg to set_internal.
12740 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
12742 2000-01-11 Gerd Moellmann <gerd@gnu.org>
12744 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
12746 2000-01-11 Richard M. Stallman <rms@gnu.org>
12748 * minibuf.c (Ftry_completion): Doc fix.
12750 2000-01-11 Gerd Moellmann <gerd@gnu.org>
12752 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
12755 2000-01-11 Andreas Schwab <schwab@suse.de>
12757 * coding.c (code_convert_region): Initialize total_skip.
12759 2000-01-08 Dave Love <fx@gnu.org>
12761 * eval.c (Fuser_variable_p): Check customizability too.
12763 2000-01-07 Gerd Moellmann <gerd@gnu.org>
12765 * minibuf.c (Fcompleting_read): Doc fix.
12767 2000-01-05 Gerd Moellmann <gerd@gnu.org>
12769 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
12772 * xfns.c (x_create_im): New function to set IM and IC of a frame.
12773 Check that input style is supported before trying to create an
12775 (x_window): Call x_create_im.
12777 2000-01-04 Gerd Moellmann <gerd@gnu.org>
12779 * xfns.c (current_gif_memory_src): New variable.
12780 (gif_load): Record the address of the current memory source
12781 in current_gif_memory_src.
12782 (gif_read_from_memory): Use current_gif_memory_src.
12784 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
12785 macros statement form.
12787 * sound.c (struct sound): Renamed from struct sound_file.
12788 (struct sound): Add members `data' and `header_size'.
12789 (enum sound_attr): Add SOUND_DATA.
12790 (current_sound, current_sound_device): Variables renamed from
12791 sound_file and sound_device.
12792 (parse_sound): Parse :data.
12793 (parse_sound): Handle sound data in strings.
12794 (find_sound_type): Function renamed from find_sound_file_type.
12795 (wav_init, au_init): Fail if sound's header_size is smaller than
12796 needed header size.
12797 (wav_play, au_play): Play sounds from string data.
12799 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
12801 * lisp.h: Add prototype for allocate_string_data.
12803 * alloc.c (Fgarbage_collect): Return number of live and free strings.
12805 * alloc.c (mark_buffer): Remove code in #if 0.
12807 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
12808 (strings_consed): New variable.
12809 (allocate_string): Set it.
12810 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
12811 (Fmemory_use_counts): Return strings_consed. Use Flist.
12813 * alloc.c: General cleanup in comments etc. Remove conditional
12814 compilation for `standalone'.
12816 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
12818 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
12819 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
12820 (DONT_COPY_FLAG): Removed.
12821 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
12822 (struct sdata, struct sblock): New
12823 (struct string_block): Rewritten.
12824 (STRINGS_IN_STRING_BLOCK): New macro.
12825 (oldest_sblock, current_sblock, total_strings, total_free_strings)
12826 (large_sblocks, string_blocks, string_free_list): New variables.
12827 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
12828 (init_strings): Rewritten.
12829 (allocate_string, allocate_string_data, compact_small_strings)
12830 (free_large_strings, sweep_strings): New functions.
12831 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
12832 (struct string_block_head, current_string_block)
12833 (first_string_block, large_string_blocks, STRING_FULLSIZE)
12834 (STRING_PAD): Removed.
12835 (make_uninit_multibyte_string, make_pure_string): Rewritten.
12836 (Fgarbage_collect): Don't set mark bit in large strings.
12837 (mark_object): Mark strings differently. Mark symbol names
12839 (survives_gc_p): Test marked strings differently.
12840 (gc_sweep): Sweep strings differently, unmark strings in
12842 (compact_strings): Removed.
12844 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
12846 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
12847 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
12849 2000-01-04 Kenichi Handa <handa@etl.go.jp>
12851 * fileio.c (Finsert_file_contents): Signal error if visiting file
12852 in a non-empty buffer.
12854 * term.c (encode_terminal_code): Fix the previous change.
12856 2000-01-03 Gerd Moellmann <gerd@gnu.org>
12858 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
12859 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
12861 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
12863 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12865 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
12866 need to test for MSDOS frames.
12868 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12870 * dosfns.c (unspecified_colors): Remove.
12871 (msdos_stdcolor_idx): Use global variables unspecified_fg and
12873 (msdos_stdcolor_name): Return strings for unspecified fore- and
12874 back-ground colors.
12876 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
12877 (syms_of_xfaces): Remove their staticpro's.
12878 (tty_color_name): Return Lisp strings for unspecified fore- and
12879 back-ground colors.
12880 (Finternal_set_lisp_face_attribute): Remove the special treatment
12881 for Qunspecified_{f,b}g.
12882 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
12884 2000-01-03 Gerd Moellmann <gerd@gnu.org>
12886 * xdisp.c (reseat_at_next_visible_line_start): Position before
12887 newline only if ending up on a newline.
12888 (next_element_from_ellipsis): Return success. Handle case of
12889 displaying no ellipsis. Fix case of ellipsis defined in display table.
12890 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
12893 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12895 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
12896 (Fcolor_supported_p): Renamed from face-color-supported-p.
12898 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12900 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
12901 list of colors renamed to tty-defined-color-alist.
12902 (tty_color_name): Pass the frame to tty-color-by-index.
12903 (realize_tty_face): tty-color-alist is now a function which
12904 accepts the frame as argument.
12906 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
12908 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12910 * term.c (insert_glyphs): Pass glyph, not &glyph, to
12911 encode_terminal_code.
12913 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12915 * dispnew.c (mode_line_string): Support termcap frames as well.
12917 2000-01-01 Gerd Moellmann <gerd@gnu.org>
12919 * syntax.c (Fforward_word): Undo previous change.
12921 * editfns.c (Fconstrain_to_field): Don't constrain if
12922 inhibit-field-text-motion is non-nil.
12923 (Fline_beginning_position): Undo previous change.
12924 (Fline_end_position): Ditto.
12926 * syntax.c (Fforward_word): Notice field boundaries only if
12927 inhibit-field-text-motion is nil.
12929 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
12931 * editfns.c (Vinhibit_field_text_motion): New variable.
12932 (inhibit-field-text-motion): New DEFVAR_LISP.
12933 (Fline_beginning_position, Fline_end_position): Notice field
12934 boundaries only if inhibit-field-text-motion is nil.
12936 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
12937 All calls adjusted.
12938 (x_build_heuristic_mask): Likewise.
12939 (xbm_load_image_from_file): Change error output.
12940 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
12941 (gif_load, gs_load, x_kill_gs_process): Ditto.
12943 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
12944 color indices when accessing raster pixels.
12945 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
12946 one of :file or :data.
12947 (enum pbm_keyword_index): Add PBM_DATA.
12948 (pbm_format): Add :data.
12949 (pbm_image_p): Allow either :file or :data.
12950 (pbm_read_file): New function.
12951 (pbm_scan_number): Rewritten to read from string.
12952 (pbm_load): Support :data.
12954 See ChangeLog.8 for earlier changes.
12956 ;; Local Variables:
12957 ;; coding: iso-2022-7bit
12960 Copyright (C) 2001 Free Software Foundation, Inc.
12961 Copying and distribution of this file, with or without modification,
12962 are permitted provided the copyright notice and this notice are preserved.