1 2001-11-01 Gerd Moellmann <gerd@gnu.org>
3 * xfns.c (x_build_heuristic_mask): Use four_corners_best
4 instead of IMAGE_BACKGROUND.
6 * xfns.c (four_corners_best): Reindent.
8 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
9 Handle :box so that it is possible to specify sexprs.
11 2001-11-01 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
13 * xfaces.c (Finternal_merge_in_global_face): Reindent.
15 (Finternal_set_alternative_font_registry_alist): Ditto.
16 (Ftty_suppress_bold_inverse_default_colors): Ditto.
18 * xfns.c (x-get-resource): Reindent.
20 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
22 * s/hpux11.h: New file.
24 2001-10-31 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
26 * emacs.c (USAGE1): Show command line option --no-window-system
27 instead of --no-windows in usage.
28 (standard_args): Rename --no-windows to --no-window-system.
29 (bug_reporting_address): Follow Emacs coding conventions.
31 * eval.c (Fcommandp): Doc fix.
32 Change doc-string comments to `new style' [w/`doc:' keyword].
34 * frame.c (Fframe_live_p): Doc fix.
36 * buffer.c (selective-display-ellipses): Doc fix.
38 2001-10-31 Gerd Moellmann <gerd@gnu.org>
40 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
42 * xfaces.c (realize_x_face): If C is not a single-byte character,
43 set the face's colors_copied_bitwise_p instead of the defaulted_p
44 members which have a different meaning.
45 (free_face_colors): Do nothing for a face whose colors have been
48 * dispextern.h (struct face) <colors_copied_bitwise_p>: New
51 2001-10-31 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
53 * marker.c, mocklisp.c: Change doc-string comments to `new style'
56 2001-10-31 Gerd Moellmann <gerd@gnu.org>
58 * fns.c (require_unwind): Return Lisp_Object.
60 2001-10-31 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
62 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
63 (last-input-char): Revert doc-string to be the same as the
64 doc-string of `last-input-event'.
66 * xdisp.c: Fix typos in comments.
68 2001-10-31 Gerd Moellmann <gerd@gnu.org>
70 * window.c (grow_mini_window): Handle case that the root
71 window is already smaller than the nominal mininum height.
73 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
75 * emacs.c (main): Don't call keys_of_macros any more.
77 * lisp.h (keys_of_macros): Remove.
79 * macros.c (keys_of_macros): Remove.
81 * xfaces.c (Fface_attribute_relative_p): Declare args.
83 2001-10-30 Jason Rumney <jasonr@gnu.org>
85 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
86 (enum_font_cb2): Ignore fonts with vertical orientation.
88 2001-10-30 Richard M. Stallman <rms@gnu.org>
90 * keyboard.c (Finput_pending_p): Doc fix.
92 2001-10-30 Gerd Moellmann <gerd@gnu.org>
94 * xterm.c (x_after_update_window_line): Don't run the code
95 clearing in borders for rows whose visible height is 0.
97 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
98 resized_p flag is set. If not set, use the much less flickering
99 method previously used.
101 * dispnew.c (change_frame_size_1): Set frame's resized_p.
103 * frame.h (struct frame) <resized_p>: New member.
105 * lread.c (to_multibyte): Ensure read_buffer is at least twice
106 as large as the number of bytes to convert.
108 * lread.c (to_multibyte): New function.
111 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
113 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
115 2001-10-30 Gerd Moellmann <gerd@gnu.org>
117 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
118 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
119 if the row's fill_line_p is set and drawing the last glyph with
120 DRAW_IMAGE_{RAISED,SUNKEN}.
122 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
124 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
126 * xmenu.c: Include coding.h and charset.h.
127 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
128 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
129 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
130 Explicitly set wv->help. Use `TRUE' rather than `True'.
131 (menu_help_callback): Use empty_string.
133 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
134 (Fx_popup_dialog): Explicitly init f.
135 (w32_menu_display_help): Use empty_string.
137 2001-10-29 Richard M. Stallman <rms@gnu.org>
139 * fns.c (Frequire): Detect recursive try to require the same
140 feature 3 or more levels deep, and get error.
141 (require_unwind): New subroutine.
142 (require_nesting_list): New variable.
143 (syms_of_fns): Init and staticpro it.
145 * print.c (print_object): Clarify indication of insertion type.
147 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
149 * coding.c (syms_of_coding): Document that locale-coding-system is
150 used for decoding input on X.
152 * window.c (Fscroll_left, Fscroll_right): Doc fix.
154 2001-10-29 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
156 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
157 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
159 2001-10-29 Gerd Moellmann <gerd@gnu.org>
161 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
162 use NO_CURSOR if cursor_in_non_selected_windows is false.
164 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
165 the slant attribute if FRAME is t.
167 * xfns.c (x_set_internal_border_width): Set frame garbaged
168 when X window doesn't exist yet.
170 * xterm.c (x_after_update_window_line): Clear internal border
171 in different circumstances.
173 * xterm.c (XTread_socket) <KeyPress>: Don't use
174 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
177 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
179 * m/ibms390.h: New file. From Adam Thornton
180 <athornton@sinenomine.net>.
182 2001-10-28 Gerd Moellmann <gerd@gnu.org>
184 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
186 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
189 2001-10-28 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
191 * emacs.c: Use argv[0] instead of emacs when -t was specified.
193 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
195 Fix typos in comments.
197 * emacs.c (bug_reporting_address): New function.
198 Use it when displaying usage message.
200 * minibuf.c (read_minibuf): Remove unused external declaration of
201 variable `Qread_only'.
203 * keymap.c (access_keymap): Remove unused variable `charset'.
205 2001-10-28 Miles Bader <miles@gnu.org>
207 * xfaces.c (merge_face_heights): Handle TO being relative as well.
208 Remove #ifdef'd-out code.
209 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
210 (syms_of_xfaces): Initialize them.
212 2001-10-27 Jason Rumney <jasonr@gnu.org>
214 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
215 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
216 position using the system caret.
218 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
219 (w32_system_caret_height, w32_system_caret_x)
220 (w32_system_caret_y): New variables for tracking system caret.
221 (w32_initialize): Initialize them.
222 (x_display_and_set_cursor): Make system caret follow the active cursor.
224 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
227 * w32term.c (note_mouse_highlight): Clear old help_echo.
229 2001-10-27 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
231 * xterm.c: Fix typo in a comment.
233 * emacs.c: Fix typos in comments.
234 Remove unnecessary spaces.
235 Change doc-string comments to `new style' [w/`doc:' keyword].
236 (USAGE2): Fix typos in usage string.
238 * xterm.c: Fix typo in a comment.
240 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
243 2001-10-27 Gerd Moellmann <gerd@gnu.org>
245 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
246 instead of 1/2 line_height in the heuristic for skipping
247 farther backward when target_y was not reached.
249 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
250 Display errno only if non-zero.
251 (sound_warning): New function.
252 (vox_configure): Don't treat failing to set sample rate as error.
253 (various places): Improve error messages.
255 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
257 * fileio.c (Faccess_file): Run the argument filename through
258 Fexpand_file_name, before using it.
260 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
261 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
263 2001-10-26 Gerd Moellmann <gerd@gnu.org>
265 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
267 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
268 Fix clearing in the case of scroll bars on the right.
270 2001-10-26 Juanma Barranquero <lektu@terra.es>
272 * w32gui.h (XImage): Add a dummy typedef.
274 2001-10-26 Gerd Moellmann <gerd@gnu.org>
276 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
278 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
280 * frame.c (Fframe_parameter): Fix last change.
282 * fileio.c: Revert last change (which removed old commented-out
283 version of expand-file-name). Add a comment that explains why
284 this old version should not be removed.
286 2001-10-25 Gerd Moellmann <gerd@gnu.org>
288 * frame.c (Fframe_parameter): Fix a bug whereby some
289 ``artificial'' frame parameters, like `minibuffer' were not
290 obtained by calling Fframe_parameters.
292 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
295 * xdisp.c (move_it_vertically_backward): Compute line height
296 differently. Add heuristic to try to be more compatible to 20.x.
298 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
300 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
302 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
305 2001-10-25 Miles Bader <miles@gnu.org>
307 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
308 BG is a pointer to a structure, not a structure.
309 (gif_format, png_format): Add missing commas.
311 2001-10-24 Richard M. Stallman <rms@gnu.org>
313 * xfaces.c (Fface_attributes_as_vector): New function.
314 (syms_of_xfaces): Defsubr it.
316 2001-10-24 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
318 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
321 2001-10-25 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
323 * search.c (scan_newline): Remove unused variable `selective_display'.
325 2001-10-25 Miles Bader <miles@gnu.org>
327 * dispextern.h (struct image): Add `background',
328 `background_valid', and `background_transparent' fields.
329 (image_background, image_background_transparent): New declarations.
330 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
331 * xfns.c (image_background, image_background_transparent)
332 (four_corners_best): New functions.
333 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
334 (gs_format): Add `:background' entry.
335 (lookup_image): Set IMG's background color if specified.
336 (pbm_load, xbm_load_image, png_load): Set IMG's background field
338 (x_clear_image_1): Reset `background_valid' and
339 `background_transparent_valid' fields.
340 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
341 calculating it here. Set IMG's background_transparent field.
342 (enum xpm_keyword_index): Add XPM_BACKGROUND.
343 (enum png_keyword_index): Add PNG_BACKGROUND.
344 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
345 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
346 (enum gif_keyword_index): Add GIF_BACKGROUND.
347 (enum gs_keyword_index): Add GS_BACKGROUND.
348 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
349 Pre-calculate image background color where necessary.
350 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
351 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
352 color to use for image glyph reliefs.
354 2001-10-24 Gerd Moellmann <gerd@gnu.org>
356 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
359 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
360 Fix clearing of area not covered by scroll bar.
362 2001-10-24 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
364 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
366 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
367 (glyph_rect): Remove unused variable `area'.
369 2001-10-24 Gerd Moellmann <gerd@gnu.org>
371 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
373 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
374 (row_containing_pos): Take additional argument DY.
375 Treat rows ending in middle of char differently.
376 (display_line): Handle tabs on window systems differently.
378 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
379 with additional argument.
381 * dispextern.h (row_containing_pos): Adjust prototype.
383 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
384 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
385 (try_window_id, try_window_reusing_current_matrix)
386 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
387 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
389 2001-10-24 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
391 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
393 (HAVE_BOXES): Fix typo in comment.
394 (push_menu_pane): Fix typo in comment.
396 * xdisp.c: (display_prop_string_p): Remove unused local declaration
398 (single_display_prop_string_p): Remove unused local declarations
399 of `Qwhen' and `Qmargin'.
400 (string_buffer_position): Remove unused variable `around'.
401 (store_frame_title): Remove unused variable `width'.
403 * window.c: Don't define max.
404 (coordinates_in_window): Remove unused variable `uy'.
406 * widget.c: Don't define max.
408 * process.c: Don't define max.
409 (create_process): Remove unused variable `buffer'.
411 2001-10-23 Gerd Moellmann <gerd@gnu.org>
413 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
415 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
417 * xfaces.c (Finternal_set_lisp_face_attribute)
418 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
419 frame is on a windowed display.
421 2001-10-23 Gerd Moellmann <gerd@gnu.org>
423 * dispnew.c (sync_window_with_frame_matrix_rows):
424 Fix handling of windows which aren't full-width, fix handling
427 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
429 2001-10-23 Andreas Schwab <schwab@suse.de>
431 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
432 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
434 2001-10-23 Gerd Moellmann <gerd@gnu.org>
436 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
437 REAL_END. Notice if cursor gets overwritten.
438 (notice_overwritten_cursor): Take X positions as parameters.
439 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
440 around call to x_draw_glyphs.
442 2001-10-23 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
444 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
445 instead of C) and usage.
447 * editfns.c (char-to-string): Fix argument names (use CHAR instead
450 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
451 `left', `max_width' and `max_height'.
453 2001-10-23 Gerd Moellmann <gerd@gnu.org>
455 * xdisp.c (display_line): For a tab continued to the next line,
456 set row's ends_in_middle_of_char_p.
458 2001-10-22 Gerd Moellmann <gerd@gnu.org>
460 * xdisp.c (display_line): Fix computation of continuation lines
463 2001-10-22 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
465 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
468 * fileio.c: Remove unused code.
470 2001-10-22 Miles Bader <miles@gnu.org>
472 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
473 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
474 Remove `DOC_STRINGS_IN_COMMENTS' cases.
476 2001-10-21 Jason Rumney <jasonr@gnu.org>
478 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
480 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
482 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
483 (Finsert_string): Avoid the multi-line string literals warning.
485 2001-10-22 Miles Bader <miles@gnu.org>
487 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
488 (Fdocumentation): Don't use it.
489 (syms_of_doc): Don't initialize it.
491 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
492 * print.c (Fwith_output_to_temp_buffer): Likewise.
493 * window.c (Fsave_window_excursion): Likewise.
494 * editfns.c (Fsave_excursion, Fsave_current_buffer)
495 (Fsave_restriction): Likewise.
496 * eval.c (Frun_hooks, Frun_hook_with_args)
497 (Frun_hook_with_args_until_failure)
498 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
499 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
500 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
501 (Funwind_protect, Fcondition_case): Likewise.
502 * coding.c (Ffind_operation_coding_system): Likewise.
503 * keyboard.c (Ftrack_mouse): Likewise.
505 2001-10-21 Miles Bader <miles@gnu.org>
507 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
508 (Fmake_hash_table): Add usage: string to doc string.
509 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
510 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
511 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
512 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
513 (Fml_prefix_argument_loop): Likewise.
515 2001-10-21 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
517 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
519 * sysdep.c (init_sys_modes): Change doc-string comments to `new
520 style' [w/`doc:' keyword].
522 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
523 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
524 comments to `new style' [w/`doc:' keyword].
526 2001-10-21 Jason Rumney <jasonr@gnu.org>
528 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
530 * w32term.c (remember_mouse_glyph): New function.
531 (w32_mouse_position): Use it.
532 (note_mouse_movement): If the mouse moved off the glyph, remember
535 * w32term.h (struct w32_output): Correct spelling of x_compatible.
536 (w32_display_info): Add mouse_face_overlay.
538 * w32term.c (notice_overwritten_cursor): Renamed from
539 note_overwritten_text_cursor. Rewritten to take glyph widths into
541 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
542 (fast_find_string_pos): New function.
543 (fast_find_position): Return the correct vpos. Add parameter
544 STOP. In the final row, stop before glyphs having STOP as object.
545 Don't consider glyphs that are not from a buffer.
546 (fast_find_position) [0]: Add a presumably more correct version
548 (expose_window_tree, expose_frame): Don't compute intersections here.
549 (expose_window): Do it here instead.
550 (expose_window_tree, expose_window, expose_line): Return 1 when
551 overwriting mouse-face.
552 (expose_window): If W is the window currently being updated, mark
554 (expose_frame): If mouse-face was overwritten, redo it.
555 (x_use_underline_position_properties): New variable.
556 (syms_of_xterm): DEFVAR_BOOL it.
557 (x_draw_glyph_string): Add comment to use it in future.
558 (x_draw_glyph_string): Restore clipping after drawing box.
559 Fix a computation of the underline position.
560 (w32_get_glyph_string_clip_rect): Minor cleanup.
561 (x_fill_stretch_glyph_string): Remove an assertion.
562 (x_produce_glyphs): Don't convert multibyte characters
563 to unibyte characters in unibyte buffers.
564 (cursor_in_mouse_face_p): New function.
565 (x_draw_stretch_glyph_string): Use it to choose a different GC
566 when drawing a cursor within highlighted text. Don't draw
567 background again if it has already been drawn.
568 (x_draw_glyph_string_box): Don't draw a full-width
569 box just because the glyph row's full_width_p flag is set.
570 (x_draw_glyphs): Fix computation of rightmost x for
572 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
573 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
574 change bottom shadow accordingly. Some cleanup.
575 (x_update_window_end): Handle overwritten mouse face
576 also for tool bar windows.
577 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
578 DRAW is DRAW_IMAGE_RAISED.
579 (clear_mouse_face): Return 1 if text with mouse face was
580 actually redrawn. Make the function static. Reset
581 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
582 optimize away highlighting if we pass over that same overlay again.
583 (note_mouse_highlight): Call mouse_face_overlay_overlaps
584 to detect a case where we have to highlight a different region
585 despite not having left the currently highlighted region.
586 Set mouse_face_overlay in the x_display_info. Avoid changing the
587 mouse pointer shape when show_mouse_face has already done it, or
588 there is no need. Handle mouse-face and help-echo in strings.
589 (glyph_rect): New function.
590 (w32_mouse_position): Use it to raise the threshold for mouse
591 movement event generation.
592 (w32_initialize_display_info): Initialize the x_display_info's
594 (w32_set_vertical_scroll_bar): Don't clear a zero height
596 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
597 a widget to zero height.
599 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
600 Protect unibyte strings created by replacing their multibyte
601 equivalents in menu_items.
602 (w32_menu_show): Don't overwrite an item's name with its key
603 description in case the description is a multibyte string.
604 (single_submenu): Some cleanup.
606 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
607 (postprocess_image): New function.
608 (lookup_image): Call it for all image types except PostScript.
609 (x_kill_gs_process): Call postprocess_image.
610 (tiff_error_handler, tiff_warning_handler): New functions.
611 (tiff_load): Install them as handlers.
612 (x_kill_gs_process): Recognize if someone has cleared the image
614 (valid_image_p): Protect better against invalid image
615 specifications. Previous code could signal an error.
616 (Fx_hide_tip, Fshow_tip): Doc fix.
617 (Fv_max_tooltip_size): New variable.
618 (syns_of_xfns): DEFVAR_LISP it.
619 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
620 window buffer to *tip* right after creating the frame. Set frame's
621 window_width. Use a maximum tooltip size specified by
622 Vx_max_tooltip_size, if that has valid contents.
623 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
624 Make sure the tooltip is completely visible.
625 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
626 (Fx_create_frame): Adjust the frame's height for presence
627 of the tool bar before calling x_figure_window_size.
628 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
629 when the window gets smaller.
630 (x_set_foreground_color): Set frame's cursor_pixel.
631 (x_set_foreground_color, x_set_background_color): Cleaned up.
632 (x_set_font): Handle case of x_new_fontset returning the same name
633 as before, although there was a change in fontsets.
635 2001-10-21 Miles Bader <miles@gnu.org>
637 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
638 (Flogxor): Add usage: string to doc string.
639 * charset.c (Fstring): Likewise.
640 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
641 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
643 2001-10-21 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
645 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
647 * alloc.c: Reindent DEFUNs with doc: keywords.
649 * abbrev.c (Finsert_abbrev_table_description): Reindent.
651 * frame.c: Change doc-string comments to `new style' [w/`doc:'
654 2001-10-20 Gerd Moellmann <gerd@gnu.org>
656 * (Version 21.1 released.)
658 2001-10-20 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
660 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
662 * xdisp.c (invisible_text_between_p): Put prototype inside #if
665 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
666 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
667 Change doc-string comments to `new style' [w/`doc:' keyword].
669 2001-10-20 Miles Bader <miles@gnu.org>
671 The following changes remove the glyph_row `inverse_p' field,
672 which is never set anymore, due to other changes:
674 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
675 (reassert_line_highlight, change_line_highlight): Declarations removed.
676 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
677 (line_hash_code, row_equal_p, fake_current_matrices)
678 (build_frame_matrix_from_leaf_window, update_frame_line)
679 (update_frame_line, update_frame_line, update_frame_line):
680 Don't use `inverse_p' field.
681 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
682 change_line_highlight_hook.
683 (XTreassert_line_highlight, x_change_line_highlight):
685 (x_fix_overlapping_area, x_write_glyphs, expose_area)
686 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
687 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
689 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
690 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
691 (w32_reassert_line_highlight, x_change_line_highlight):
693 * w32console.c (reassert_line_highlight, change_line_highlight):
695 (initialize_w32_display): Don't set reassert_line_highlight_hook
696 or change_line_highlight_hook.
697 (hl_mode): Function removed.
698 (reset_terminal_modes, set_terminal_modes, update_begin)
699 (update_end, w32_face_attributes, initialize_w32_display):
700 (clear_frame, ins_del_lines): Don't call it.
701 * termhooks.h (reassert_line_highlight_hook)
702 (change_line_highlight_hook): Declarations removed.
703 * term.c (reassert_line_highlight_hook)
704 (change_line_highlight_hook): Variables removed.
705 (reassert_line_highlight, change_line_highlight): Functions removed.
706 * msdos.c (IT_reassert_line_highlight)
707 (IT_change_line_highlight): Functions removed.
708 (internal_terminal_init): Don't set reassert_line_highlight_hook
709 or change_line_highlight_hook.
710 (highlight): Variable removed.
711 (IT_set_face, IT_update_begin, IT_update_end)
712 (IT_set_terminal_modes): Don't set or use it.
714 The following changes remove inverse-video support for terminals
715 that use a `magic cookie' standout mode. Due to changes in the
716 way mode-lines are displayed, such support no longer works
717 anyway, and it's probable that almost no one uses such terminals
720 * term.c (standout_requested): Variable removed.
721 (update_end, highlight_if_desired): Don't use it.
722 (chars_wasted, copybuf): Variables removed.
723 (write_standout_marker): Function removed.
724 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
725 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
726 Don't use `chars_wasted' or `copybuf'.
727 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
728 Set `costs_set' to true.
729 (cursor_to, clear_end_of_line): Test `costs_set' instead of
731 (clear_end_of_line): Function removed.
732 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
733 (clear_to_end): Call `clear_end_of_line' instead of
734 `clear_end_of_line_raw'.
735 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
736 (term_init): Don't set them.
737 Turn off any standout/underline modes that require magic cookies.
738 (ins_del_lines, highlight_if_desired, background_highlight)
739 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
740 Remove special processing for magic-cookie standout modes.
741 (turn_off_face, turn_on_face): Remove special processing for
742 underline magic-cookie glitch.
744 2001-10-19 Richard M. Stallman <rms@gnu.org>
746 * eval.c (syms_of_eval): Doc fixes.
748 2001-10-19 Gerd Moellmann <gerd@gnu.org>
750 * xdisp.c (redisplay_internal): Don't clear echo area if the
751 mini-window is selected.
753 2001-10-19 Miles Bader <miles@gnu.org>
755 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
756 doesn't take precedence if the affected property's value is nil.
758 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
760 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
761 with fields and suggest using `forward-line' to avoid them.
762 * editfns.c (Fline_beginning_position, Fline_end_position):
763 Clarify documentation.
765 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
767 * keymap.c (current_minor_maps): `override' only shadows its
768 correspondent in minor-mode-map-alist, not the whole tail.
770 2001-10-18 Andrew Innes <andrewi@gnu.org>
772 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
773 optimization. The fontp->encoding array was not being initialized
774 correctly when compiled with optimizations by MSVC.
776 2001-10-18 Gerd Moellmann <gerd@gnu.org>
778 * xdisp.c (display_line): Indicate empty lines in active mini-window.
780 2001-10-17 Andrew Innes <andrewi@gnu.org>
782 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
784 * w32fns.c (w32_load_system_font): Cache codepage for font, in
785 font_info.charset field.
787 * w32term.c (w32_encode_char): Get cached codepage from font_info,
788 rather than working it out by calling w32_codepage_for_font for
791 2001-10-17 Andrew Innes <andrewi@gnu.org>
793 * w32term.c (w32_read_socket): Determine clipping rectangle for
794 the entire frame, including areas covered by scrollbars and the
795 menubar. This avoids internal arguments about whether a frame is
796 fully obscured or not.
798 2001-10-17 Gerd Moellmann <gerd@gnu.org>
800 * xdisp.c (try_window_id): Undo last change. Give up if
801 window ends in strings.
803 * xdisp.c (try_window_id): Don't display lines after the window
804 end if the rest of the window after the window end was already blank.
806 * xdisp.c (try_window_id): Remove code that was only there
807 for the release of 21.1.
809 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
811 2001-10-17 Miles Bader <miles@gnu.org>
813 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
814 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
815 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
816 Change doc-string comments to `new style' [w/`doc:' keyword].
817 (DOC_STRINGS_IN_COMMENTS): Macro removed.
818 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
821 2001-10-16 Miles Bader <miles@gnu.org>
823 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
825 2001-10-16 Gerd Moellmann <gerd@gnu.org>
827 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
830 2001-10-16 Ken Raeburn <raeburn@gnu.org>
832 Avoid the assumption that car and cdr slots of cons cells are
833 addressable lvalues; this allows for easier experimentation with
834 other lisp implementations that may not permit such accesses for
835 various reasons. Not quite complete -- buffer.c still needs some
836 work, and w32/mac files need rechecking -- so compile-time
837 enforcement is left disabled for now.
839 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
840 gcc with a union-based Lisp object rep. Redefine as no-op for now.
841 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
842 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
843 (XSETCAR, XSETCDR): New macros.
844 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
845 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
846 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
847 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
849 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
850 * buffer.c (record_buffer, Fbury_buffer)
851 (swap_out_buffer_local_variables, recenter_overlay_lists)
852 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
853 fields of a cons cell respectively.
854 * callint.c (quotify_args, Fcall_interactively): Likewise.
855 * ccl.c (Fregister_code_conversion_map): Likewise.
856 * coding.c (detect_coding_system): Likewise.
857 * composite.c (get_composition_id, make_composition_value_copy):
859 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
860 (swap_in_symval_forwarding, set_internal, Fset_default)
861 (Fmake_variable_buffer_local, Fmake_local_variable)
862 (Fmake_variable_frame_local): Likewise.
863 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
864 * keymap.c (Fset_keymap_parent, store_in_keymap)
865 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
866 * minibuf.c (get_minibuffer): Likewise.
867 * search.c (Fmatch_data): Likewise.
868 * textprop.c (extend_property_ranges): Likewise.
869 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
870 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
872 * w32term.c (x_delete_display): Likewise.
873 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
875 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
876 * doc.c (store_function_docstring): Use XSETCARFASTINT.
877 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
878 (Fread_file_name): Use XSETCAR.
879 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
881 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
882 * frame.c (Fmake_terminal_frame): Use XSETCDR.
883 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
885 * keyboard.c (read_char): Alter list traversal to avoid taking the
886 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
887 (parse_menu_item): Use XSETCAR and XSETCDR.
888 (reach_char_x_menu_prompt): Use XSETCAR.
889 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
890 (Fcommand_execute): Use XSETCDR.
891 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
892 (openp): Change list traversal to avoid using XCAR as lvalue.
893 (read_list): Use XSETCDR.
894 * process.c (wait_reading_process_input): Change wait_for_cell
895 handling to avoid taking addresses of cons cell slots.
896 * xselect.c (x_own_selection, x_handle_selection_clear)
897 (x_clear_frame_selections): Use XSETCDR.
898 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
899 (x_handle_property_notify, x_get_foreign_selection)
900 (x_handle_selection_notify): Use XSETCAR.
902 2001-10-15 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
904 * buffer.c: Put doc strings in comments.
906 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
908 2001-10-15 Sam Steingold <sds@gnu.org>
910 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
912 2001-10-15 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
914 * process.c (process-inherit-coding-system-flag)
915 (get-buffer-process): Do not confuse make-docfile with doc strings
918 * editfns.c (Fchar_to_string): Make doc string consistent with
919 arguments. Put doc strings in comments.
921 * abbrev.c, minibuf.c: Put doc strings in comments.
923 2001-10-15 Gerd Moellmann <gerd@gnu.org>
925 * window.c (window_loop): Don't check for Fother_buffer returning nil.
927 * window.c (select_window_1): Unfreeze window start. Remove a
928 doubled test for WINDOW being live.
930 2001-10-15 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
932 * fns.c (Fmapconcat): Fix typo in a doc string.
934 * dispnew.c (Fsleep_for): Fix typo in a doc string.
936 2001-10-15 Gerd Moellmann <gerd@gnu.org>
938 * xterm.c (x_draw_glyph_string): Restore clipping after
941 2001-10-15 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
943 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
945 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
947 * indent.c (skip_invisible): Use new retval of
948 TEXT_PROP_MEANS_INVISIBLE.
950 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
951 If a parent is reached and noinherit is set, exit immediately.
952 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
954 * s/ms-w32.h (EXEC_SUFFIXES):
955 * s/msdos.h (EXEC_SUFFIXES):
956 * process.h (EXEC_SUFFIXES): Remove.
958 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
959 (decode_suffixes): Remove.
961 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
962 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
963 (invisible_ellipsis_p): Remove.
965 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
966 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
967 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
968 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
969 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
971 2001-10-14 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
973 * lisp.h (Ftop_level): Add prototype.
975 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
976 (XTread_socket): Improve style of comments to follow other
979 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
980 is already prototyped in included lisp.h).
982 * frame.c (Fset_mouse_position): Improve style of comment to
983 follow other comments.
984 (Fset_mouse_pixel_position): Improve style of comment to follow
986 (Fmake_frame_visible): Doc fix and typo in comment.
987 (Fmake_frame_invisible): Doc fix and typo in comment.
988 (Ficonify_frame): Fix typo in comment.
990 2001-10-14 Gerd Moellmann <gerd@gnu.org>
992 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
993 * term.c, alloc.c: Put doc strings in comments.
995 2001-10-13 Gerd Moellmann <gerd@gnu.org>
997 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
998 Provide definitions for doc strings in comments.
1000 * fns.c: Put doc strings in comments.
1002 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
1004 * dired.c (file_name_completion): Ignore a candidate directory if
1005 it matches an element in completion-ignored-extensions that ends
1007 (syms_of_dired) <completion-ignored-extensions>: Mention the above
1008 feature in the doc string.
1009 (Ffile_name_completion): Ditto.
1011 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
1013 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
1015 * xfns.c (syms_of_xfns): Update calls to Fprovide.
1017 * lisp.h (Fprovide): Update prototype.
1018 (Ffeaturep, invisible_p): Remove.
1020 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
1021 (DOLIST, LOOP_PROPVAL): New macros.
1022 (invisible_p, invisible_ellipsis_p): Use them.
1023 (invisible_noellipsis_p): New function.
1024 (syms_of_xdisp): Use empty_string.
1026 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
1028 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
1029 (syms_of_lread) <Vafter_load_alist>: Update docstring.
1031 * print.c (Fwith_output_to_temp_buffer): Align with
1032 internal_with_output_to_temp_buffer.
1033 (print_preprocess): Use traverse_intervals_noorder.
1034 (print_object): Update call to traverse_intervals.
1036 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
1037 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
1039 * intervals.c (traverse_intervals_noorder): New function.
1040 (search_for_interval, count_intervals): Use it.
1041 (traverse_intervals): Use less stack space and drop `depth' arg.
1043 * fns.c (Ffeaturep): Add new `subfeature' arg.
1044 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
1045 (Qsubfeatures): New var.
1046 (syms_of_fns): Initialize it.
1048 * keymap.c (Fkey_description): Use empty_string.
1049 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
1050 (syms_of_keymap): Setup inheritance between maps.
1051 Don't export Sdescribe_bindings_internal any more.
1053 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
1055 2001-10-12 Gerd Moellmann <gerd@gnu.org>
1057 * xterm.c (notice_overwritten_cursor): Renamed from
1058 note_overwritten_text_cursor. Rewritten to take glyph widths into
1061 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
1063 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
1064 multi-line strings without a trailing "\n\".
1066 2001-10-12 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1068 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
1071 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
1073 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
1075 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
1076 * w32proc.c (sys_spawnve):
1077 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
1078 * w32.c (check_windows_init_file):
1079 * sound.c (Fplay_sound):
1080 * emacs.c (init_cmdargs):
1081 * process.c (Fstart_process): Update calls to openp.
1083 * callproc.c (Vexec_suffixes): New var.
1084 (Fcall_process): Update call to openp.
1085 (decode_suffixes): New function.
1086 (syms_of_callproc): Init exec-suffixes.
1088 * lread.c (Vload_suffixes, default_suffixes): New vars.
1089 (openp): Take a lisp list of suffixes.
1090 Check for file-name-handlers even if the file was absolute already.
1091 (syms_of_lread): Declare load-suffixes.
1092 (Fload): Fix up call to openp.
1093 Don't bother checking for file-name-handler at the very beginning.
1095 * keymap.h (Fcopy_keymap): Don't export.
1097 * lisp.h (empty_string): Declare.
1098 (Vload_suffixes, Vexec_suffixes): Declare.
1099 (openp): Update prototype.
1101 * emacs.c (empty_string): New var.
1102 (syms_of_emacs): Initialize it.
1104 * search.c (wordify): Use it.
1106 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
1107 selected window if it's not displayed there. Handle the case
1108 when the window is dedicated.
1109 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
1111 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
1113 * syntax.h (struct gl_state_s): Change the meaning of b_property.
1114 Remove left_ok and right_ok.
1115 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
1116 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
1117 new meaning of b_property.
1119 * syntax.c (update_syntax_table): Simplify.
1120 (Fforward_comment): Don't skip quoted chars when going backward.
1122 2001-10-11 Gerd Moellmann <gerd@gnu.org>
1124 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
1125 in case I is of some unsigned type, in which case
1126 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
1127 comparison becomes bogus.
1129 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
1130 (Fuser_full_name): Fix bug treating a float as a fixnum.
1132 * data.c (Fstring_to_number): Use make_fixnum_or_float.
1134 * lisp.h (make_fixnum_or_float): New macro.
1136 * lisp.h (circular_list_error): Add prototype.
1138 * data.c (Qcircular_list): New variable.
1139 (circular_list_error): New function.
1140 (syms_of_data): Initialize it Qcircular_list.
1142 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
1144 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
1145 casefiddle.c, buffer.c: Include keymap.h.
1147 2001-10-10 Gerd Moellmann <gerd@gnu.org>
1149 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
1150 options. From Dave Love <d.love@dl.ac.uk>.
1152 2001-10-09 Gerd Moellmann <gerd@gnu.org>
1154 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
1155 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1157 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
1159 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1161 2001-10-08 Andrew Innes <andrewi@gnu.org>
1163 * lisp.h [max]: Undef min and max before redefining them.
1165 * w32gui.h: Do not undef min and max.
1167 * w32heap.h: Do not undef min and max.
1169 * s/ms-w32.h: Do not undef min and max.
1171 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1173 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
1175 2001-10-08 Sam Steingold <sds@gnu.org>
1177 * keymap.c (current-active-maps): Quote newlines (compilation error).
1179 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
1181 * Makefile.in (lisp, shortlisp): Replace bindings.el with
1182 bindings.elc, since otherwise doc strings in bindings.el get wrong
1185 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1187 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
1189 * keyboard.h (map_prompt): Remove.
1191 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
1192 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
1194 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
1196 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
1198 * keyboard.c (map_prompt): Remove.
1199 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
1202 * keymap.h: New file. Extracted from lisp.h.
1204 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
1205 (accessible_keymaps_1): New function.
1206 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
1207 (Fwhere_is_internal): Use Fcurrent_active_maps.
1208 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
1209 Insert in current buffer rather than standard-output.
1210 Don't call `help-mode'. Export to elisp.
1211 (describe_buffer_bindings): New wrapper.
1212 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
1213 and Sdescribe_buffer_bindings.
1215 2001-10-08 Gerd Moellmann <gerd@gnu.org>
1217 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
1218 Remove code setting signal handler.
1220 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
1221 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
1223 2001-10-08 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1225 * keyboard.c: Don't define min/max.
1227 2001-10-08 Gerd Moellmann <gerd@gnu.org>
1229 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
1230 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
1231 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
1232 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
1233 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
1234 Don't define min/max.
1236 * lisp.h (min, max): New macros.
1238 * puresize.h (BASE_PURESIZE): Increase to 725000.
1240 2001-10-08 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1242 * xfaces.c (free_frame_menubar): Add prototype.
1244 * lisp.h (init_window): Add prototype.
1246 * editfns.c: Include ctype.h.
1248 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
1249 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
1250 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
1253 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
1254 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
1255 `popup_activated_flag' and `title'.
1257 * doc.c (Fdocumentation_property): Fix typo in a doc string.
1259 * emacs.c (main): Remove extra `;'.
1261 * atimer.h (struct atimer): Fix typos in a comment.
1263 * atimer.c: Fix typo.
1265 * Makefile.in: Fix typo.
1267 * README: Remove obsolete part mentioning removed VMS file.
1269 2001-10-07 Miles Bader <miles@gnu.org>
1271 * Makefile.in (lisp, shortlisp): Add `button.elc'.
1273 2001-10-07 Ken Raeburn <raeburn@gnu.org>
1275 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
1278 * lisp.h (Ffield_end): Declare.
1280 2001-10-07 Gerd Moellmann <gerd@gnu.org>
1282 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
1284 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
1286 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
1288 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
1290 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
1291 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
1293 * alloc.c (inhibit_garbage_collection): Simplify.
1294 (Fmemory_use_counts): Ditto.
1296 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1297 (syms_of_data): DEFVAR_INT most-positive-fixnum and
1298 most-negative-fixnum.
1300 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1301 (FIXNUM_OVERFLOW_P): New macros.
1303 2001-10-06 Miles Bader <miles@gnu.org>
1305 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
1306 scroll_bar_bottom_shadow_pixel fields.
1307 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
1308 for the shadows, and tell the toolkit about them if we succeed.
1309 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
1310 Free scroll-bar shadow colors.
1311 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
1312 Free scroll-bar shadow colors when the background color changes.
1313 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
1314 Initialize scroll-bar shadow-color fields.
1316 2001-10-05 Gerd Moellmann <gerd@gnu.org>
1318 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
1320 2001-10-05 Miles Bader <miles@gnu.org>
1322 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
1323 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
1324 New functions (were in simple.el).
1325 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
1326 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
1327 (syms_of_minibuf): Initialize them.
1329 2001-10-05 Gerd Moellmann <gerd@gnu.org>
1331 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
1332 (tiff_load): Install them as error and warning handler.
1334 2001-10-04 Andrew Innes <andrewi@gnu.org>
1336 * w32fns.c (x_to_w32_color): Fix argument to alloca.
1337 (w32_load_system_font): Don't believe what GetLanguageFontInfo
1338 says; query codepage info directly to determine if font is double byte.
1339 (x_to_w32_charset): Handle private format for unknown charsets.
1340 Handle wildcards in charset spec, by ignoring them.
1341 (w32_codepage_for_font): Fix argument to alloca. Don't remove
1342 "*-" prefix from charset.
1343 (x_to_w32_font): Enlarge remainder array for safety. Specifically
1344 handle the truncated font spec form constructed by font_list_1, so
1345 that we correctly identify the charset fields. Don't remove "*-"
1346 prefix from charset.
1347 (w32_list_synthesized_fonts): Fix argument to alloca.
1349 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
1351 * window.h (MINI_WINDOW_P): Use NILP.
1353 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
1355 * termhooks.h (struct input_event): Use proper type for `kind'.
1357 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1359 This handles unknown keysyms better than before. For example,
1360 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
1361 Emacs formerly completely ignored F5. With the change, it derives
1362 a key symbol from the name of the X keysym, `ccaron' in this case.
1363 Reported by Martin Buchholz.
1365 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
1368 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
1369 that EVENT->code isn't a function key, use the keysym's name.
1371 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1373 FOREACH is a macro that should make it easier to loop over Lisp
1374 lists with checks for cycles and proper lists.
1376 * lisp.h (LIST_END_P, FOREACH): New macros.
1378 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1380 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
1381 called for a lost connection. Prevent dumping core in this case.
1382 Instead print the X error, and exit. On user request.
1384 * xterm.c (error_msg): New variable.
1385 (x_fatal_error_signal): New function.
1386 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
1387 as fatal_error_signal_hook around the call to XtCloseDisplay.
1389 * emacs.c (fatal_error_signal_hook): New variable.
1390 (fatal_error_signal): Call that function.
1392 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1394 With this, Emacs prints how much pure storage it will
1395 approximately need in case pure storage overflows while dumping.
1397 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
1399 (init_alloc_once): Initialize new variables.
1400 (PURE_POINTER_P): Use new variables.
1401 (pure_alloc): If pure storage overflows, allocate from the heap.
1402 (check_pure_size): New function.
1403 (Fgarbage_collect): Don't GC if pure storage has overflowed.
1405 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
1406 (check_pure_size): Add prototype.
1408 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
1410 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1412 This adds a post-gc-hook that's run with GC inhibited.
1413 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
1415 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
1416 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
1417 (Fgarbage_collect): Run post-gc-hook.
1419 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1421 This adds `defvaralias' and `indirect-variable'. Changes not
1422 directly related to this feature are there to gain the same
1423 performance again as before variable aliases.
1425 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
1426 code to get and set symbol values, to take defvaralias into account.
1428 (Note: the new `constant' bit-flag in symbols would make it
1429 possible to define arbitrary read-only variables, e.g. with
1432 Documentation is in lispref/variables.texi. Added to NEWS.
1434 * lisp.h (enum symbol_interned): New enumeration.
1435 (struct Lisp_Symbol): Remove member `obarray', add
1436 `indirect_variable', `constant', and `interned'.
1437 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
1438 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
1439 (indirect_variable): Add prototype.
1441 * print.c (print_preprocess, print_object): Test internedness of
1442 symbols differently.
1444 * lread.c (Fintern, Funintern): Set symbol's interned and constant
1446 (init_obarray): Likewise for t and nil.
1448 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
1449 (Fdefvaralias): New function.
1450 (specbind): Simplify the test if symbol is a constant.
1451 (syms_of_eval): Defsubr Fdefvaralias.
1453 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
1454 (Qcyclic_variable_indirection): New variable.
1455 (Fkeywordp): Check for internedness differently.
1456 (Fmakunbound): Simplify the test if symbol is a constant.
1457 (indirect_variable, Findirect_variable): New functions.
1458 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
1460 (let_shadows_buffer_binding_p): Check for variable aliases.
1461 (set_internal): Simplify the test if SYMBOL is a constant.
1462 If SYMBOL has a buffer-local value and is an alias, use the aliased
1464 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
1467 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
1468 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
1471 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
1473 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
1474 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
1475 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
1477 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1481 2001-10-03 Miles Bader <miles@gnu.org>
1483 * callproc.c (syms_of_callproc): Explicitly state in the
1484 documentation for `process-environment' that earlier entries take
1485 precedence over later ones.
1487 2001-10-02 Miles Bader <miles@gnu.org>
1489 * textprop.c (Fnext_char_property_change)
1490 (Fprevious_char_property_change): Remove reference to non-existant
1491 argument OBJECT from doc-string.
1493 2001-10-01 Gerd Moellmann <gerd@gnu.org>
1495 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
1496 (try_window_id): Skip back over lines ending in a newline from a
1499 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
1502 2001-10-01 Richard M. Stallman <rms@gnu.org>
1504 * search.c (Freplace_match): Doc fix.
1506 2001-09-28 Andrew Innes <andrewi@gnu.org>
1508 * w32menu.c (set_frame_menubar): Take into account that
1509 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1512 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
1514 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
1516 2001-09-28 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1518 * s/gnu-linux.h: Fix a typo in comment.
1520 2001-09-28 Andreas Schwab <schwab@suse.de>
1522 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
1523 nocombreloc, in case -z combreloc is the default.
1525 2001-09-28 Gerd Moellmann <gerd@gnu.org>
1527 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
1528 really going on here.
1530 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
1532 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
1534 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1536 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
1537 utf-8, menu-bar, and latin-N.
1538 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
1539 unconditionally now.
1540 (lisp): Add latin-N, since they are preloaded.
1542 2001-09-27 Gerd Moellmann <gerd@gnu.org>
1544 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
1545 to the left. Some cleanup.
1547 * xdisp.c (display_mode_element): One more case where a string's
1548 multibyteness should be used for display.
1550 2001-09-26 Gerd Moellmann <gerd@gnu.org>
1552 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
1555 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
1556 of the only temporarily set echoing flag for deciding when
1559 * keyboard.c (echo_kboard): Make externally visible.
1561 * lisp.h (echo_kboard): Declare extern.
1563 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
1564 fonts_changed_p if we need larger matrices due to vscrolling.
1565 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
1566 this round of redisplay if make_cursor_line_fully_visible fails.
1567 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
1568 (try_cursor_movement, try_scrolling): Use them instead of integers.
1570 * dispextern.h (required_matrix_width, required_matrix_height):
1573 * dispnew.c (required_matrix_width, required_matrix_height):
1575 (allocate_matrices_for_window_redisplay)
1576 (allocate_matrices_for_frame_redisplay: Use them.
1577 Remove parameters CH_DIM.
1579 * xdisp.c (display_mode_lines): Temporarily set selected_frame
1580 and selected_window to the frame of the window whose mode-lines
1581 are displayed, and to the window itself.
1582 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
1585 2001-09-25 Gerd Moellmann <gerd@gnu.org>
1587 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
1588 the image cache under us.
1590 * xdisp.c (display_mode_element): If the mode element is a symbol
1591 with a string value, use that string's multibyteness for displaying.
1593 * keyboard.c (read_char): Don't clear a message for a switch-frame
1594 event. From Stefan Monnier <monnier@cs.yale.edu>.
1596 * xterm.c (fast_find_position) [0]: Add a presumably more correct
1597 version for after 21.1.
1599 * xdisp.c (row_containing_pos): Make externally visible.
1601 * dispextern.h (row_containing_pos): Add prototype.
1603 * process.c (send_process): Disable composition if from_byte < 0.
1604 From Kenichi Handa <handa@etl.go.jp>.
1606 2001-09-24 Gerd Moellmann <gerd@gnu.org>
1608 * xterm.c (refreshicon): Function removed.
1610 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
1612 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
1614 * xterm.c (toplevel): Remove includes in #if 0.
1616 * process.c (sigchld_handler) [LINUX]: Don't return from
1617 the signal handler at the end of the loop.
1619 2001-09-21 Gerd Moellmann <gerd@gnu.org>
1621 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
1622 Terminate only if kill returns -1, and errno is ESRCH.
1624 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
1626 * Makefile.in (shortlisp): Add ../lisp/env.elc.
1628 2001-09-20 Gerd Moellmann <gerd@gnu.org>
1630 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
1631 since this function can be called during GC.
1633 * callproc.c (Fcall_process): Handle errors from pipe(2).
1634 (child_setup): Delete code in #ifdef vipc.
1636 2001-09-19 Gerd Moellmann <gerd@gnu.org>
1638 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
1639 (display_mode_element): Display the string from decode_mode_spec
1640 depending on its multibyteness.
1642 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
1644 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
1646 2001-09-18 Gerd Moellmann <gerd@gnu.org>
1648 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
1649 recursive_edit_unwind.
1650 (recursive_edit_unwind): Set kboard state according to
1653 * buffer.c (modify_overlay): Don't do nothing if START == END;
1654 This can still be a modification, for example when an overlay has
1655 a before-string or after-string.
1656 (Fdelete_overlay): Prevent redisplay optimizations when deleting
1657 an overlay with before-string or after-string.
1659 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
1660 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
1662 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
1663 first_unchanged_at_end_row is in front of
1664 last_unchanged_at_beg_row. This code should be removed after the
1667 2001-09-17 Gerd Moellmann <gerd@gnu.org>
1669 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
1670 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
1672 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
1675 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
1677 * dired.c (Ffile_attributes): Doc fix.
1679 2001-09-14 Gerd Moellmann <gerd@gnu.org>
1681 * fileio.c (Ffile_symlink_p): Fix last change.
1683 * filelock.c (current_lock_owner): Fix last change.
1685 2001-09-13 Gerd Moellmann <gerd@gnu.org>
1687 * filelock.c (current_lock_owner): If readlink returns ERANGE,
1688 take that to mean that the buffer is too small.
1690 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
1691 that to mean that the buffer is too small.
1693 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
1694 current buffer's multibyteness when discarding the iterator's
1697 * xfns.c (Fx_window_property): Handle case that property gets
1698 deleted between the two calls to XGetWindowProperty.
1700 2001-09-11 Gerd Moellmann <gerd@gnu.org>
1702 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
1704 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
1705 in addition to read-only.
1707 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
1708 to t in addition to read-only.
1710 * lisp.h (Qinhibit_modification_hooks): Declare.
1712 * insdel.c (Qinhibit_modification_hooks): New variable.
1713 (syms_of_insdel): Initialize and staticpro it.
1715 * textprop.c (verify_interval_modification): Don't run
1716 modification-hooks if inhibit_modification_hooks.
1718 * dispnew.c (set_window_cursor_after_update): Fix code
1719 finding glyph row containing cursor when cursor_in_echo_area
1722 * xdisp.c (init_from_display_pos): Put some code in #if 0.
1723 (add_to_log): Use bcopy instead of strcpy.
1724 (init_from_display_pos): Use an explicit loop over bytes in
1725 overlay strings instead of calling index.
1727 2001-09-10 Gerd Moellmann <gerd@gnu.org>
1729 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
1731 * dispnew.c (direct_output_for_insert): Don't change IT's
1732 stop_charpos to something in front of its current position.
1734 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
1737 2001-09-10 Richard M. Stallman <rms@gnu.org>
1739 * frame.c (Fmouse_position): Doc fix.
1741 2001-09-07 Gerd Moellmann <gerd@gnu.org>
1743 * xdisp.c (init_from_display_pos): Don't compare the result
1744 of calling index with NULL.
1746 2001-09-06 Gerd Moellmann <gerd@gnu.org>
1748 * xfns.c (x_set_background_color): Don't change the colors
1749 of the X window of scroll bar widgets.
1751 2001-09-05 Andrew Innes <andrewi@gnu.org>
1753 * w32fns.c (w32_createwindow): Undo last change.
1755 2001-09-05 Gerd Moellmann <gerd@gnu.org>
1757 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
1759 * xdisp.c (string_buffer_position): Use *single_char_property*
1760 functions instead of the *single_property* functions.
1762 2001-09-04 Andrew Innes <andrewi@gnu.org>
1764 * w32term.c (w32_read_socket): Add more information to debugging
1767 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
1768 from Emacs frames, so that calls to GetClipBox in w32term.c
1769 correctly report when part of a frame is visible (including
1770 scrollbars, etc). This prevents repeated redrawing of frames when
1771 only a scrollbar is visible.
1772 (w32_wnd_proc): Add more frame information to debugging output.
1774 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
1776 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
1778 2001-09-03 Gerd Moellmann <gerd@gnu.org>
1780 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
1781 help-echo for a string which doesn't have help-echo itself, use
1782 get-char-property to obtain the help-echo from the string's buffer
1783 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
1784 have mouse-face, look ``under'' the string for mouse-face from an
1786 (fast_find_position): Add parameter STOP. In the final row, stop
1787 before glyphs having STOP as object. Don't consider glyphs that
1788 are not from a buffer.
1790 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
1792 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
1794 * fns.c (Fmd5): Doc fix.
1796 2001-08-31 Gerd Moellmann <gerd@gnu.org>
1798 * composite.c (update_compositions): Do nothing if
1799 inhibit-modification-hooks is set.
1801 2001-08-30 Gerd Moellmann <gerd@gnu.org>
1803 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
1804 and check_message_stack if terminating abnormally. We want
1805 glyph matrices etc. in a core dump.
1807 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
1808 (syms_of_xdisp): Initialize them.
1809 (handle_single_display_prop): Don't change point, bind `object',
1810 `position', and `buffer-position' instead to the object having the
1811 `display' property, position in the object and position in the buffer.
1813 * fileio.c (Finsert_file_contents): Don't change the multibyteness
1814 of the buffer if REPLACE is non-nil.
1816 2001-08-29 Gerd Moellmann <gerd@gnu.org>
1818 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
1820 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
1822 * w32term.c (x_set_glyph_string_background_width)
1823 (show_mouse_face): Track the last changes in xterm.c.
1825 2001-08-28 Gerd Moellmann <gerd@gnu.org>
1827 * xterm.c (x_set_glyph_string_background_width): Set the glyph
1828 string's background width so that multi-line mouse-face is drawn
1829 to the right edge of the window.
1830 (show_mouse_face): Set the row's mouse_face_p flag after drawing
1833 * dispnew.c (direct_output_for_insert): Set updated_area
1834 before inserting/writing glyphs.
1836 * xdisp.c (display_mode_element): Use string_byte_to_char to
1837 determine character positions in strings, use chars_in_text
1838 instead of strwidth.
1839 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
1840 a matrix as parameter; this is easier to use from GDB.
1842 2001-08-28 Miles Bader <miles@gnu.org>
1844 * textprop.c (Fprevious_single_char_property_change)
1845 (Fnext_single_char_property_change): Doc fixes.
1847 2001-08-27 Gerd Moellmann <gerd@gnu.org>
1849 * fileio.c (Finsert_file_contents): Allocate, restore, and
1850 free composition data in the case of REPLACE not being nil.
1852 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
1853 there exist overlay strings with newlines at POS.
1854 (text_outside_line_unchanged_p): Return 0 if changes start at
1855 START and overlays exist at START. Likewise for END.
1856 (try_window_id): Give up if init_to_row_end returns 0.
1858 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
1861 2001-08-24 Gerd Moellmann <gerd@gnu.org>
1863 * keymap.c (access_keymap): Return the cdr of the binding of
1864 a generic character instead of its definition (KEY . BINDING).
1866 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
1867 to 0 also in the REPLACE case.
1869 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
1871 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
1872 open to determine whether file is readable (as for DOS_NT).
1874 2001-08-23 Gerd Moellmann <gerd@gnu.org>
1876 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
1877 coding.type is coding_type_no_conversion or coding_type_raw_text,
1878 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
1879 non-nil instead of just setting enable_multibyte_characters in the
1882 2001-08-22 Gerd Moellmann <gerd@gnu.org>
1884 * dispextern.h (struct face_cache): Add member
1885 menu_face_changed_p.
1887 * xfaces.c (menu_face_changed_default): New variable.
1888 (menu_face_changed_count): Variable removed.
1889 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
1890 the menu_face_changed_default flag, otherwise set the FRAME's
1891 menu_face_changed_p flag if the `menu' face has been changed.
1892 Prevent calling set_font_frame_param if FRAME is t.
1893 (make_face_cache): Initialize cache's menu_face_changed_p
1894 from menu_face_changed_default.
1895 (realize_basic_faces): Look into the frame's face cache to
1896 determine if the menu appearance needs updating.
1898 * keymap.c (access_keymap): Fix last change to not consider
1899 IDX when it has modifiers.
1901 2001-08-21 Gerd Moellmann <gerd@gnu.org>
1903 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
1904 . BINDING) exists, where GENERIC-CHAR is the generic character of
1905 the charset of IDX, return BINDING unless there exists a binding
1908 2001-08-16 Gerd Moellmann <gerd@gnu.org>
1910 * xrdb.c (SYSV): Don't define on Solaris 2.
1911 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
1913 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
1914 of the screen line, not text line, containing IT's current position.
1916 2001-08-15 Gerd Moellmann <gerd@gnu.org>
1918 * window.c (window_scroll_pixel_based): Don't recenter if
1919 PT is partially visible in the window.
1921 * xterm.c (expose_window_tree, expose_window, expose_line):
1922 Return 1 when overwriting mouse-face.
1923 (expose_frame): If mouse-face was overwritten, redo it.
1925 * xfaces.c (x_update_menu_appearance): Don't call
1926 set_frame_menubar, let the next redisplay do it.
1928 2001-08-14 Andrew Innes <andrewi@gnu.org>
1930 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
1931 drawing glyph string.
1933 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
1935 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
1938 2001-08-14 Gerd Moellmann <gerd@gnu.org>
1940 * xfaces.c (x_update_menu_appearance): Save and restore value of
1941 interrupt_input_blocked.
1943 2001-08-13 Gerd Moellmann <gerd@gnu.org>
1945 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
1946 a line start, move back to the line start.
1948 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
1949 exactly when a mini-buffer is active.
1951 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
1952 in units of 1/8 character on non window-system frames.
1953 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
1955 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
1957 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
1960 2001-08-09 Gerd Moellmann <gerd@gnu.org>
1962 * keyboard.c (Vpre_help_message): New variable.
1963 (syms_of_keyboard): Initialize and staticpro it.
1964 (show_help_echo): Record current message before displaying a
1965 help-echo, and restore that message when clearing the help.
1967 * xfns.c (x_create_im): Remove prototype.
1969 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
1971 * dispnew.c (adjust_glyph_matrix): Undo last change.
1973 2001-08-08 Gerd Moellmann <gerd@gnu.org>
1975 * dispnew.c (adjust_glyph_matrix): In the optimization for
1976 windows whose height has changed, disable partially visible lines.
1978 2001-08-07 Gerd Moellmann <gerd@gnu.org>
1980 * window.c (Frecenter): If ARG < 0, and on a window system
1981 frame, count in some empty lines when we can't move -ARG lines down.
1983 * xdisp.c (start_display): Don't try to determine the continuation
1984 lines width if lines are truncated. It's superfluous and leads to
1985 incorrect results if POS is not visible in the window after
1986 reseating the iterator at the previous line start.
1988 2001-08-06 Gerd Moellmann <gerd@gnu.org>
1990 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1992 2001-08-06 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1994 * alloc.c (init_stack): Remove declaration.
1996 2001-08-03 Gerd Moellmann <gerd@gnu.org>
1998 * keyboard.c (read_key_sequence): Check that key is an integer
1999 before comparing it with quit_char.
2000 (add_command_key): Use larger_vector.
2001 (read_char_x_menu_prompt): Instead of converting symbol and
2002 integer events into conses (EVENT . nil), use (EVENT . disabled)
2003 which cannot be confused with valid events.
2004 (read_char): When reading from Vunread_command_events, check for
2005 events of the form (EVENT . disabled) instead of
2008 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
2009 a float, determine the max height from the frame's height.
2011 2001-08-02 Gerd Moellmann <gerd@gnu.org>
2013 * xdisp.c (redisplay_internal): Take message_cleared_p into
2014 account only if minibuf_level == 0.
2016 2001-08-01 Gerd Moellmann <gerd@gnu.org>
2018 * xdisp.c (redisplay_internal): Add a check for the last
2021 * xdisp.c (message_cleared_p): New variable.
2022 (clear_message): Set message_cleared_p when clearing the current
2024 (redisplay_internal): Look at message_cleared_p to capture
2025 the case that the echo area should be cleared.
2027 * keyboard.c (command_loop_1): Fix spelling of
2028 resize_echo_area_exactly.
2030 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
2032 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
2034 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
2035 current matrix when the window gets smaller.
2037 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
2039 * print.c (strout): Cast the character passed to insert_char to
2040 unsigned char, to avoid sign extension when it is promoted to int.
2042 2001-07-31 Gerd Moellmann <gerd@gnu.org>
2044 * fileio.c (Finsert_file_contents): Don't treat a return value
2045 of 0 from emacs_read as an IO error.
2047 2001-07-30 Gerd Moellmann <gerd@gnu.org>
2049 * keyboard.c (abs): New macro.
2050 (double_click_fuzz): New variable.
2051 (make_lispy_event): Use it to determine what makes a double-click.
2052 (syms_of_keyboard): DEFVAR_INT it.
2054 * xmenu.c (set_frame_menubar): Take into account that
2055 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2058 2001-07-27 Gerd Moellmann <gerd@gnu.org>
2060 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
2062 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
2063 of row's visible height.
2065 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
2066 deal with the first overlay string having an image `display' property.
2067 (try_window_reusing_current_matrix, compute_line_metrics):
2068 Fix computation of row's visible height for the case that part of the
2069 row is invisible above and part of the row is at the same time
2070 invisible below the window.
2072 2001-07-26 Gerd Moellmann <gerd@gnu.org>
2074 * xfns.c (x-show-tip): Doc fix.
2076 * xfns.c (Vx_max_tooltip_size): New variable.
2077 (syms_of_xfns): DEFVAR_LISP it.
2078 (Fx_show_tip): Set frame's window_width to the width of the
2079 window. Use a maximum tooltip size specified by
2080 Vx_max_tooltip_size, if that has valid contents.
2081 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2083 2001-07-26 Andrew Innes <andrewi@gnu.org>
2085 * w32term.c (x_display_list): New variable.
2086 (w32_term_init): Set it.
2088 * w32term.h (x_display_list): New extern.
2090 2001-07-26 Gerd Moellmann <gerd@gnu.org>
2092 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
2093 is non-nil, instead of when redisplaying_p is non-zero.
2095 (mark_window_display_accurate_1): Add an assertion.
2097 2001-07-25 Gerd Moellmann <gerd@gnu.org>
2099 * dispextern.h (struct it): Increase size of ctl_chars to 16.
2101 * xfns.c (Fx_file_dialog): Block/unblock input while processing
2102 events so that we get a chance of processing expose events.
2104 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
2106 2001-07-24 Gerd Moellmann <gerd@gnu.org>
2108 * xfns.c (valid_image_p): Protect better against invalid image
2109 specifications. Previous code could signal an error.
2111 2001-07-23 Gerd Moellmann <gerd@gnu.org>
2113 * indent.c (current_column): Fix column computation in the
2114 presence of display table entries.
2115 (current_column_1, Fmove_to_column, compute_motion): Likewise.
2117 * dispnew.c (adjust_glyph_matrix): In the optimization for
2118 windows whose height has changed, use the new window height
2119 to compute which rows to invalidate.
2121 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
2122 (MAX_10_EXP): New macro.
2125 * coding.c (code_convert_region): Handle the multibyte case if
2126 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
2128 2001-07-20 Gerd Moellmann <gerd@gnu.org>
2130 * dispextern.h (struct face): Change type of `stipple' to
2133 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
2135 2001-07-19 Gerd Moellmann <gerd@gnu.org>
2137 * dispnew.c (update_window): Don't set the cursor at the end
2138 of the update if display update has been paused.
2140 * composite.h (syms_of_composite): Renamed from syms_of_composition.
2142 2001-07-18 Ken Raeburn <raeburn@gnu.org>
2144 * fns.c (Fset_char_table_default): Check that a charset is defined
2145 before checking its dimension.
2147 2001-07-17 Ken Raeburn <raeburn@gnu.org>
2149 * coding.c (setup_coding_system): Don't do any designation based
2150 on reg_bits if charset is not yet defined.
2152 * lisp.h (XVECTOR): Verify correct object type before returning a
2153 pointer, using eassert.
2155 2001-07-17 Gerd Moellmann <gerd@gnu.org>
2157 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
2158 Increase to 4096 because of paste problems reported on GNU/Linux.
2160 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
2162 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
2164 2001-07-16 Gerd Moellmann <gerd@gnu.org>
2166 * fileio.c (unwind_read): Function removed.
2167 (read_non_regular, read_non_regular_quit): New functions.
2168 (Finsert_file_contents): When reading from non-regular files,
2169 arrange to catch a `quit' and terminate the loop. Rearrange
2170 code so that a `quit' when reading from a regular file doesn't
2171 insert text in the buffer.
2173 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
2174 Clear faces afterwards.
2175 (clear_font_table): Take a x_display_info parameter. Don't free
2176 fonts being the default font of any frame on the given display.
2178 2001-07-13 Gerd Moellmann <gerd@gnu.org>
2180 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
2181 instead of CHAR_STRING which can signal an error.
2183 * charset.c (char_to_string_1): Extracted from char_to_string.
2184 Return -1 instead of signaling an error.
2185 (char_to_string): Use it.
2187 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
2189 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
2191 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
2192 is t, don't try to append anything to it.
2194 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
2196 * dired.c (file_name_completion): Pass dp->d_name to
2197 Fstring_match, not elt, which is always nil here.
2199 2001-07-12 Gerd Moellmann <gerd@gnu.org>
2201 * xselect.c (x_decline_selection_request): Handle errors
2202 caused by receivers that have vanished.
2204 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
2205 ignoring events on foreign windows in #if 0. Always dispatch
2206 the event after checking it with x_handle_property_notify.
2208 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
2209 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
2210 TRACE macros to facilitate debugging. Add additional trace statements.
2211 (toplevel): Add prototypes for file-local functions.
2212 (x_atom_to_symbol): Remove DPYINFO parameter.
2214 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
2216 * w32menu.c (menubar_selection_callback, w32_menu_show):
2217 Initialize `entry' to nil.
2218 (w32_dialog_show): Remove unused `save_wv' variable.
2219 (name_is_separator): Recognize "--:foo" and "--foo-bar".
2221 2001-07-11 Gerd Moellmann <gerd@gnu.org>
2223 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
2225 * fileio.c (unwind_read): Print a message when discarding inserted
2226 text or switching the buffer to unibyte. Change parameter.
2227 (Finsert_file_contents): Don't pass VISIT to unwind_read.
2229 * fileio.c (unwind_read): New function.
2230 (Finsert_file_contents): Record it as unwind-function for
2231 the case that reading is interrupted by C-g.
2233 2001-07-10 Gerd Moellmann <gerd@gnu.org>
2235 * dispnew.c (update_window): Don't skip the header-line
2236 update when scrolling_window returns 0.
2238 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
2240 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
2241 for the case that x_decode_color signals an error.
2243 * xdisp.c (add_to_log): Do nothing if called asynchronously.
2245 2001-07-09 Gerd Moellmann <gerd@gnu.org>
2247 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
2248 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
2251 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
2253 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
2254 doc string line for dos-timezone-offset.
2256 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
2257 inline assembly, to avoid compiler warnings.
2258 (syms_of_msdos): Add \n\ at the end of a line in the doc string
2259 line for dos-unsupported-char-glyph.
2261 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
2263 2001-07-05 Gerd Moellmann <gerd@gnu.org>
2265 * sound.c: Include Emacs' header files with #include "...".
2267 * eval.c (specbind): Additionally record the buffer that was
2268 current when a buffer-local or frame-local variable was bound.
2270 2001-07-04 Gerd Moellmann <gerd@gnu.org>
2272 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
2273 to unibyte characters in unibyte buffers.
2275 2001-07-03 Gerd Moellmann <gerd@gnu.org>
2277 * eval.c (specbind): If SYMBOL has a frame-local binding, record
2278 the frame on the binding stack. Change format of entries for
2279 local bindings on the binding stack to '(SYMBOL . WHERE)'.
2280 (unbind_to): Handle unbinding a frame-local variable.
2282 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
2283 glyphs and truncation glyphs at the end of a row from its pixel width.
2284 (dump_glyph_row): Print row's continuation_lines_width.
2285 (try_window_id): Take the shortcut if ZV is visible in the
2286 window, but there are actually no changes at ZV.
2288 2001-07-02 Gerd Moellmann <gerd@gnu.org>
2290 * xterm.h (x_free_dpy_colors): Add prototype.
2292 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
2293 right number of arguments.
2295 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
2296 ($(lwlibdir)TAGS): New target.
2297 (TAGS): Fix dependency list.
2299 * xterm.c (x_list_fonts): Make sure XFreeFont is called
2302 2001-06-30 Gerd Moellmann <gerd@gnu.org>
2304 * emacs.c (main): Remove extern declaration for sys_nerr, which
2305 isn't used and causes a compilation error with GCC 3.0 on
2308 2001-06-27 Gerd Moellmann <gerd@gnu.org>
2310 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
2311 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
2312 (toplevel): Include <signal.h> and syssignal.h.
2314 * sound.c (vox_configure, vox_close): Turn off atimers
2317 2001-06-26 Gerd Moellmann <gerd@gnu.org>
2319 * keyboard.c (read_char) <non_reread>: Record the previous idle
2320 start time before calling timer_stop_idle.
2321 (read_char) <reread_first>: After processing a help-echo event,
2322 restore the previous idle start time.
2324 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
2325 the start of invisible text.
2326 (setup_for_ellipsis): New function.
2327 (next_overlay_string): After all overlay strings have been
2328 processed, display an ellipsis if necessary.
2329 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
2330 (push_it): Initialize display_ellipsis_p on the iterator's stack.
2332 * dispextern.h (struct iterator_stack_entry): Add member
2335 2001-06-25 Gerd Moellmann <gerd@gnu.org>
2337 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
2338 on the value of the wait-for-wm frame parameter.
2340 * xterm.h (struct x_output): Add member wait_for_wm.
2342 * xfns.c (Qwait_for_wm): New variable.
2343 (x_frame_parms): Add entry for `wait-for-wm".
2344 (x_set_wait_for_wm): New function.
2345 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
2346 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
2348 * xdisp.c (try_window_id) <all changes below window end>: Don't
2349 take this shortcut if ZV is visible in the window.
2350 (try_window_id): When checking for window start being in changed
2351 text, don't check that the buffer's size has changed.
2353 2001-06-23 Richard M. Stallman <rms@gnu.org>
2355 * minibuf.c (Fcompleting_read): Doc fix.
2357 2001-06-19 Gerd Moellmann <gerd@gnu.org>
2359 * composite.c (Ffind_composition_internal): Accept ZV
2360 and a string's end position as POS.
2362 2001-06-18 Gerd Moellmann <gerd@gnu.org>
2364 * composite.c (Ffind_composition_internal): Check POS
2367 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
2369 * editfns.c (Fmessage_box): If the frame is not under a window
2370 system, output the message in the echo area.
2372 2001-06-14 Richard M. Stallman <rms@gnu.org>
2374 * xdisp.c (try_window_id): When EOB is visible, don't treat
2375 insertion at EOB as if it were "off the bottom of the screen."
2377 2001-06-11 Andrew Innes <andrewi@gnu.org>
2379 * w32proc.c (create_child): Add new parameter is_gui_app.
2380 (w32_executable_type): Add new parameter is_gui_app.
2381 (sys_spawnve): Use it.
2382 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
2383 SIGQUIT. This matches better how the signals are interpreted by
2384 MSVC compiled programs.
2385 (syms_of_ntproc): Update docstring.
2387 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
2389 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
2390 well otherwise note_mouse_highlight might optimize away highlighting
2391 if we pass over that same overlay again.
2393 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
2395 * lread.c (Fload): Document that the argument is run via
2396 substitute-in-file-name.
2398 2001-05-31 Gerd Moellmann <gerd@gnu.org>
2400 * Makefile.in (bootstrap-doc): New target.
2401 (bootstrap-emacs): Depend on it.
2403 * fileio.c (Fdo_auto_save): Don't try to create the directory of
2404 auto-save-list-file-name when shutting down Emacs, because
2405 creating the directory might signal an error, and leaves
2406 Emacs in a strange state.
2408 * term.c: (tty_cursor_hidden): New variable.
2409 (update_begin): Don't call tty_hide_cursor. Clean up.
2410 (update_end, set_terminal_window, set_scroll_region): Clean up.
2411 (ring_bell, reset_terminal_modes): Clean up.
2412 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
2413 on tty_cursor_hidden.
2414 (write_glyphs): Call tty_hide_cursor.
2416 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
2418 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
2420 2001-05-30 Gerd Moellmann <gerd@gnu.org>
2422 * xfns.c (enum image_value_type): New enumerator
2423 IMAGE_STRING_OR_NIL_VALUE.
2424 (parse_image_spec): Handle it.
2425 (xbm_format, pbm_format): Use it for :foreground and :background.
2426 (xbm_load, pbm_load): Check for nil color names.
2428 * xterm.c (note_mouse_highlight): If an overlapping overlay
2429 exists, but we find that we highlight the same overlay as before,
2430 don't do the highlighting again.
2432 2001-05-29 Gerd Moellmann <gerd@gnu.org>
2434 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
2435 Protect unibyte strings created by replacing their multibyte
2436 equivalents in menu_items.
2438 * keymap.c (Fsingle_key_description): NUL-terminate the string
2439 buffer before calling build_string.
2441 * callproc.c (Fcall_process): Deal with decode_coding returning
2442 CODING_FINISH_INCONSISTENT_EOL.
2444 2001-05-28 Gerd Moellmann <gerd@gnu.org>
2446 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
2447 an item's name with its key description in case the description
2448 is a multibyte string.
2450 * keymap.c (Fsingle_key_description): Create a multibyte string
2453 * macros.c (Fstart_kbd_macro): Doc fix.
2455 * xterm.c (cursor_in_mouse_face_p): New function.
2456 (x_draw_stretch_glyph_string): Use it to choose a different GC
2457 when drawing a cursor within highlighted text.
2459 * editfns.c (char_property_eq): Put in #if 0.
2461 * indent.c (string_display_width): Put in #if 0.
2463 * lread.c (Fload): Remove unused label.
2465 * termcap.c (speeds): Put in #if 0.
2467 2001-05-18 Gerd Moellmann <gerd@gnu.org>
2469 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
2471 * xfaces.c (xlfd_point_size): Don't divide pixel size from
2472 transformation matrix by 10.
2474 2001-05-16 Gerd Moellmann <gerd@gnu.org>
2476 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
2477 only if it's equal to the former foreground pixel color.
2478 (x_set_foreground_color, x_set_background_color)
2479 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
2481 2001-05-16 Dave Love <fx@gnu.org>
2483 * insdel.c (signal_before_change, signal_after_change): Consider a
2484 local change hook which changes the buffer.
2486 * process.c (read_process_output): Don't call signal_after_change
2487 and update_compositions after insert_from_string_before_markers.
2489 2001-05-16 Gerd Moellmann <gerd@gnu.org>
2491 * xfaces.c (split_font_name): Use the right field when
2492 checking for `[...]' syntax.
2494 * buffer.c (copy_overlays): New function.
2495 (clone_per_buffer_values): Use it.
2497 * buffer.h (OVERLAY_PLIST): New macro.
2499 * keymap.c (Fsingle_key_description): Replace a build_string with
2500 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
2502 * fontset.c (Ffontset_info): Check that face is non-null
2503 before accessing its fields.
2505 2001-05-15 Gerd Moellmann <gerd@gnu.org>
2507 * keyboard.c (read_key_sequence): Prevent generating a fake
2510 * xfaces.c (split_font_name): Handle `[...]' for the right
2513 * ccl.c (ccl_driver): Don't copy remaining bytes in case
2514 of CCL_STAT_INVALID_CMD.
2516 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
2518 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
2519 in <var> has no default value yet.
2521 * xfaces.c (try_alternative_families): First try the FAMILY.
2522 And if nothing is found in the end, try again with scalable fonts.
2523 (try_font_list): Let try_alternative_families do a bit more of
2524 the work. Only use FAMILY if it is not nil.
2525 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
2527 2001-05-14 Gerd Moellmann <gerd@gnu.org>
2529 * xterm.c (note_mouse_highlight): Avoid changing the mouse
2530 pointer shape when show_mouse_face has already done it.
2532 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
2535 * xfaces.c (split_font_name): Make sure to leave the loop
2536 with the right value of `i'.
2538 * xfaces.c (split_font_name): Handle matrix transformations
2539 in the pixel and point size fields of XLFD font names.
2540 (xlfd_point_size): Likewise.
2542 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
2544 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
2545 (x_to_w32_font): Add prototype.
2547 * regex.c (malloc, realloc, free) [emacs]: Undefine before
2548 redefining, to avoid compiler warnings.
2550 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
2552 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
2553 (w32_get_bdf_glyph): Cast between unsigned char and char when
2554 passing arguments to subroutines, to shut up compiler warnings.
2555 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
2558 * xfaces.c: Include keyboard.h before frame.h, not after it.
2560 * widget.c: Include keyboard.h before frame.h.
2562 * w32term.h (struct image, struct face): Forward declaration, to
2563 avoid compiler warnings.
2565 2001-05-11 Gerd Moellmann <gerd@gnu.org>
2567 * keyboard.c (read_key_sequence): Don't modify events when
2568 generating fake prefix keys (mode-line, scroll-bar, ...) since
2569 this prevents proper processing of such events when pushed back
2570 into unread-command-events.
2572 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
2573 actually redrawn. Make the function static.
2574 (note_mouse_highlight): Fix a case where the mouse cursor
2575 was changed back to the text cursor.
2577 * xterm.h (clear_mouse_face): Remove prototype.
2579 * xdisp.c (try_window_id): Fix the fix and set the right
2582 * xdisp.c (try_window_id): Fix computation of window end in the
2583 case that lines were deleted at the end of the window. Add some
2584 more debug_method_adds.
2586 * xfaces.c (try_alternative_families): New function.
2587 (try_font_list): Use it. If ATTRS specifies a family, check
2588 fonts from that family first.
2589 (choose_face_font): Remove code setting the family part of
2592 2001-05-10 Gerd Moellmann <gerd@gnu.org>
2594 * xdisp.c (try_window_id): Fix case of all changes before
2597 * xdisp.c (try_window_id): Add some xasserts.
2599 2001-05-09 Gerd Moellmann <gerd@gnu.org>
2601 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
2603 2001-05-09 Dave Love <fx@gnu.org>
2605 * xdisp.c (GIVE_UP): Fix for K&R C.
2607 2001-05-09 Gerd Moellmann <gerd@gnu.org>
2609 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
2611 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
2612 back to the text cursor shape without need.
2614 2001-05-07 Gerd Moellmann <gerd@gnu.org>
2616 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
2618 * dispextern.h (inverse_video): Declare extern.
2620 * keyboard.c (delete_kboard): Handle the case that selected_frame
2621 has been deleted in the course of x_connection_closed.
2623 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
2625 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
2626 Fix the change from 2001-04-30.
2628 2001-05-03 Gerd Moellmann <gerd@gnu.org>
2630 * xfns.c (file_dialog_unmap_cb): New function.
2631 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
2632 where a dialog is closed via the window manager.
2634 * xdisp.c (try_window_id): Cases of changes all in front of
2635 the window start or all below the window end mostly rewritten.
2636 (redisplay_window): Move the tests if try_window_id is
2637 applicable to try_window_id.
2638 (GIVE_UP): New macro.
2640 2001-05-02 Gerd Moellmann <gerd@gnu.org>
2642 * xterm.c (expose_window): Return int. If W is the window
2643 currently being updated, mark the frame garbaged.
2644 Fix computation of rows intersecting the exposed rectangle.
2645 (expose_window_tree): Stop when expose_window returns 0.
2647 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
2648 again if it has already been drawn.
2650 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
2652 * syntax.c (update_syntax_table): Check that oldi has the same
2653 properties as old_prop before deciding not to invalidate.
2655 2001-04-30 Gerd Moellmann <gerd@gnu.org>
2657 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
2658 read-only text that is so because of text properties.
2660 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
2661 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
2662 windows that are components of a Lucid menu bar.
2664 2001-04-27 Gerd Moellmann <gerd@gnu.org>
2666 * term.c (turn_on_face): Fix reverse video handling on terminals
2667 that don't support colors.
2669 2001-04-26 Gerd Moellmann <gerd@gnu.org>
2671 * editfns.c (save_excursion_restore): Don't use XBUFFER on
2674 2001-04-25 Gerd Moellmann <gerd@gnu.org>
2676 * term.c (toggle_highlight): New function.
2677 (turn_on_face): Change handling of reverse video.
2679 * process.c (wait_reading_process_input):
2680 Call record_asynch_buffer_change only if a timer really changed buffers.
2682 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
2683 of the number of overlays to check.
2685 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
2687 * xdisp.c (try_window_id): Fix a case where window_end_pos
2688 and window_end_bytepos were not adjusted.
2690 2001-04-23 Gerd Moellmann <gerd@gnu.org>
2692 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
2695 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
2697 * process.c (wait_reading_process_input) [!subprocesses]:
2698 Don't reference waiting_for_user_input_p, it's not defined in the
2699 branch without async subprocesses support.
2701 2001-04-19 Gerd Moellmann <gerd@gnu.org>
2703 * keyboard.c (delete_kboard): Prevent a dangling reference
2704 from current_kboard to KB, which is freed.
2706 * process.c (wait_reading_process_input):
2707 Call record_asynch_buffer_change after running timers, to make
2708 read_key_sequence aware of buffer changes from under it.
2710 2001-04-18 Gerd Moellmann <gerd@gnu.org>
2712 * xfaces.c (Qscalable_fonts_allowed): New variable.
2713 (realizing_basic_faces_p): Removed.
2714 (x_face_list_fonts): Special handling for realizing_basic_faces_p
2716 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
2717 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
2718 for scalable-fonts-allowed to t.
2720 * fileio.c (Finsert_file_contents): If the file size returned from
2721 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
2722 read from files on a procfs whose contents are generated dynamically.
2724 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
2726 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
2727 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
2728 (__memalign_hook): Make the two prototypes consistent.
2730 2001-04-17 Gerd Moellmann <gerd@gnu.org>
2732 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
2733 matrix of mini-windows.
2735 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
2737 * intervals.c (find_interval): Don't rebalance during signal handling.
2739 2001-04-11 Gerd Moellmann <gerd@gnu.org>
2741 * fns.c: Include blockinput.h.
2743 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
2745 2001-04-10 Gerd Moellmann <gerd@gnu.org>
2747 * fns.c (Fcompare_strings): Fix return values.
2749 * window.c (window_scroll): Change the meaning of N to mean
2750 N screen-fulls or N lines.
2751 (window_scroll_pixel_based, window_scroll_line_based)
2752 (scroll_command, Fscroll_other_window): Change accordingly.
2754 * window.c (window_scroll_pixel_based, Frecenter):
2755 Call window_box_height instead of using it.last_visible_y for the
2756 height of the window.
2758 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
2759 instead of using it.last_visible_y for the height of the window.
2761 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
2762 From Dan Holmsand <dan@eyebee.com>.
2764 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
2765 able to write to hidden and system files. From Dan Holmsand
2768 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
2769 Holmsand <dan@eyebee.com>.
2771 2001-04-09 Gerd Moellmann <gerd@gnu.org>
2773 * fns.c (Fplist_get, Fplist_put): Add QUITs.
2775 * window.c (window_internal_height): Return 1 less if the
2776 window has a header line.
2778 * xdisp.c (try_window_id): When scrolling on a terminal, take
2779 the change of window_internal_height into account.
2781 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
2783 * gmalloc.c (align): If the argument SIZE would overflow
2784 __malloc_ptrdiff_t, fail right away.
2786 2001-04-06 Gerd Moellmann <gerd@gnu.org>
2788 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2789 Make sure the tooltip is completely visible.
2790 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
2792 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
2794 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
2796 2001-04-06 Dave Love <fx@gnu.org>
2798 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
2801 2001-04-06 Gerd Moellmann <gerd@gnu.org>
2803 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
2805 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
2807 2001-04-05 Gerd Moellmann <gerd@gnu.org>
2809 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
2811 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
2813 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
2814 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
2816 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
2817 shell widget's position only if it is non-null.
2819 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
2820 Set f->output_data.x->widget to null after destroying it.
2822 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
2823 FILENAME to bring it in synch with the documentation.
2825 * xfaces.c (realizing_basic_faces_p): Renamed from
2826 realize_default_face_p.
2827 (realize_basic_faces): Set/clear realizing_basic_faces_p.
2828 (realize_default_face): Don't set the flag.
2830 2001-04-04 Gerd Moellmann <gerd@gnu.org>
2832 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
2834 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
2836 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
2837 the buffer that was used for echoing.
2839 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
2840 (first_font_matching): Removed unused function.
2841 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
2842 (may_use_scalable_font_p): Remove parameter FONT; rename
2843 parameter NAME to FONT.
2844 (x_face_list_fonts): Fix missing bounds check.
2845 (realizing_default_face_p): New variable.
2846 (realize_default_face): Set and clear that flag.
2847 (x_face_list_fonts): When called during the realization of the
2848 default face, and no matching fonts are found when ignoring
2849 scalable fonts and fonts matching a regexp from
2850 face-ignored-fonts, try without ignoring fonts.
2852 2001-04-03 Gerd Moellmann <gerd@gnu.org>
2854 * xfns.c (postprocess_image): New function.
2855 (lookup_image): Call it for all image types except PostScript.
2856 (x_kill_gs_process): Call postprocess_image.
2858 * xterm.c (x_use_underline_position_properties): New variable.
2859 (x_draw_glyph_string): Use it.
2860 (syms_of_xterm): DEFVAR_BOOL it.
2862 2001-04-02 Gerd Moellmann <gerd@gnu.org>
2864 * xterm.c (x_alloc_nearest_color_1): New function.
2865 (x_alloc_nearest_color): Use it.
2866 (x_color_cells): Take a Display as argument, instead of a frame.
2867 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
2868 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
2869 (x_initialize): Register cvt_string_to_pixel as resource converter
2870 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
2872 2001-03-30 Gerd Moellmann <gerd@gnu.org>
2874 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
2875 (set_iterator_to_next): If a string from a display property ends,
2876 consider the case that this might also be the end of an
2877 overlay string having the display property.
2879 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
2881 * xdisp.c (reseat_to_string): Undo last change.
2883 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
2884 matrix of a window when the header line changes, when
2885 new rows are allocated, or when the width changes.
2887 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
2889 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
2891 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
2893 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
2896 2001-03-29 Gerd Moellmann <gerd@gnu.org>
2898 * data.c (Fsubr_interactive_form): New function.
2899 (syms_of_data): Defsubr it.
2901 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
2902 (live_float_p, live_misc_p): Return 1 only if the offset of the
2903 pointer in its block is >= 0.
2905 2001-03-28 Paul Eggert <eggert@twinsun.com>
2907 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
2908 microseconds calcuation. Avoid double-rounding problem.
2909 In doc string, warn that the result is approximate.
2911 2001-03-28 Gerd Moellmann <gerd@gnu.org>
2913 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
2914 bind `inhibit-eval-during-redisplay' to t.
2916 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
2918 * xdisp.c (inhibit_eval_during_redisplay)
2919 (Qinhibit_eval_during_redisplay): New variables.
2920 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
2921 don't eval, return nil instead.
2922 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
2923 Initialize Qinhibit_eval_during_redisplay.
2925 * xdisp.c (reseat_to_string): If STRING is multibyte, set
2926 the iterator's multibyte_p flag.
2928 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
2929 instead of setting it to zero; it's incremented for each frame
2930 where the menu face is changed.
2932 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
2933 change bottom shadow accordingly.
2935 * xterm.c (expose_window_tree, expose_frame): Don't compute
2937 (expose_window): Do it here instead.
2938 (x_draw_glyph_string): Fix a computation of the underline position.
2940 * bytecode.c (BYTE_CODE_QUIT): New macro.
2941 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
2943 2001-03-27 Gerd Moellmann <gerd@gnu.org>
2945 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
2946 Give up if matrix starts in an ellipsis.
2947 (init_from_display_pos): Do nothing if POS doesn't specify
2948 a dpvec_index but the iterator has such a position.
2950 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
2952 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
2953 x/y position is (0, 0) after destroying the menu bar, restore
2954 its original position.
2956 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
2957 (init_from_display_pos): Use it.
2958 (try_window_reusing_current_matrix): Don't use cursor_row_p.
2960 2001-03-26 Gerd Moellmann <gerd@gnu.org>
2962 * xdisp.c (try_window_id): Undo last change.
2964 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
2966 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
2968 * buffer.c (syms_of_buffer): Doc fix.
2970 2001-03-26 Gerd Moellmann <gerd@gnu.org>
2972 * xfaces.c (x_update_menu_appearance): Use local variable
2973 popup_path for setting font resources.
2975 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
2977 * frame.c (Fframe_list): Don't reference tip_frame if
2978 HAVE_WINDOW_SYSTEM is not defined.
2980 * emacs.c (main): Update the copyright year. From Werner LEMBERG
2983 2001-03-25 Gerd Moellmann <gerd@gnu.org>
2985 * xdisp.c (init_from_display_pos): Test invisible property
2986 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
2988 * xdisp.c (redisplay_internal) <update one window>: Make sure
2989 last_arrow_position and last_arrow_string are set.
2991 * frame.c (Fframe_list): Don't return a tooltip frame.
2993 2001-03-23 Gerd Moellmann <gerd@gnu.org>
2995 * xdisp.c (mark_window_display_accurate_1): New function,
2996 extracted from mark_window_display_accurate.
2997 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
2998 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
2999 (mark_window_display_accurate): Use it.
3000 (redisplay_internal): Use it for the selected window.
3001 (redisplay_internal): Avoid duplicate mark_window_display_accurate
3002 for the selected frame.
3004 * xdisp.c Use make_number, for readability.
3005 (try_window_id): Disable rows below the window end.
3006 (try_window_reusing_current_matrix): Use cursor_row_p.
3007 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
3009 (init_from_display_pos): If POS specifies a position in a display
3010 vector, maybe get the iterator set up for that ellipsis.
3012 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
3014 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
3016 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
3018 2001-03-23 Gerd Moellmann <gerd@gnu.org>
3020 * xfaces.c (x_update_menu_appearance): Use a different path
3021 for Lucid popup menus.
3023 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
3025 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
3027 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
3028 (string_buffer_position): Use `make_number'.
3030 2001-03-22 Gerd Moellmann <gerd@gnu.org>
3032 * xfaces.c (x_update_menu_appearance): Renamed from
3033 x_set_menu_face_resources. Use different resources for popups.
3035 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
3036 (GC_CHECK_STRING_BYTES): Don't define.
3038 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
3039 Removed, together with subroutines.
3040 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
3041 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
3043 * dispextern.h (x_set_menu_resources_from_menu_face):
3046 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
3047 Remove calls to x_set_menu_resources_from_menu_face.
3049 * xfaces.c (xm_set_menu_resources_from_menu_face):
3050 Remove #ifndef LESSTIF_VERSION.
3052 * xmenu.c: Include widget.h.
3053 (single_submenu): Return int. Some cleanup.
3054 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
3056 2001-03-21 Gerd Moellmann <gerd@gnu.org>
3058 * xterm.c (x_update_window_end): Handle overwritten mouse face
3059 also for tool bar windows.
3060 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3061 DRAW is DRAW_IMAGE_RAISED.
3063 2001-03-20 Gerd Moellmann <gerd@gnu.org>
3065 * print.c (syms_of_print): Doc fixes.
3067 * fns.c (Fmd5): Doc fix.
3069 2001-03-19 Gerd Moellmann <gerd@gnu.org>
3071 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3072 Clear area of the frame not occupied by the scroll bar.
3074 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
3075 tip frame's root window buffer to *tip* right after creating
3078 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
3079 is an integer don't have to be for space characters.
3081 2001-03-16 Gerd Moellmann <gerd@gnu.org>
3083 * indent.c (current_column, current_column_1, Fmove_to_column)
3084 (compute_motion): Handle characters from display vectors differently.
3086 2001-03-15 Kenichi Handa <handa@etl.go.jp>
3088 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
3089 drawing glyph string.
3091 2001-03-15 Gerd Moellmann <gerd@gnu.org>
3093 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
3094 (command_loop_1): Undo last change.
3096 * xterm.c (fast_find_position): Return the correct vpos.
3098 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
3099 non-null, set a per-buffer value in BUF instead of the current buffer.
3100 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
3101 Call store_symval_forwarding with BUF null.
3102 (set_internal): Call store_symval_forwarding with the BUF
3103 parameter passed to set_internal. Formerly, the value was always
3104 set in the current buffer; the buffer recorded in specbind for
3105 this case wasn't used.
3106 (arith_driver): Reindent.
3108 * buffer.c (swap_out_buffer_local_variables):
3109 Call store_symval_forwarding with BUF null.
3111 * lisp.h (store_symval_forwarding): Change prototype.
3113 * eval.c (specbind): Call store_symval_forwarding with BUF null.
3115 2001-03-14 Gerd Moellmann <gerd@gnu.org>
3117 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
3118 FOR_DELETION. Avoid resizing the mini-window of the selected
3119 frame if FOR_DELETION is set.
3120 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
3121 (Fmake_frame_invisible): Change calls to do_switch_frame for new
3124 * window.c (Fset_window_configuration): Change call to
3125 do_switch_frame to new format.
3127 * keyboard.c (quit_throw_to_read_char): Change call to
3128 do_switch_frame to new format.
3130 * lisp.h (do_switch_frame): Change prototype.
3132 * frame.c (Fframe_parameters): In the `buffer-list' frame
3133 parameter, store the buffer list of FRAME, not the list of the
3136 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
3137 box just because the glyph row's full_width_p flag is set.
3139 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
3141 * xdisp.c (highlight_trailing_whitespace): On character terminals,
3142 skip the padding blanks inserted in extend_face_to_end_of_line,
3143 before checking for trailing whitespace.
3145 2001-03-13 Gerd Moellmann <gerd@gnu.org>
3147 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
3148 Remove special handling for LessTif/Motif.
3149 (toplevel): Don't include Xm/Xm.h.
3151 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
3152 Remove workaround code for LessTif; it doesn't work anymore.
3154 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
3157 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
3158 Don't access private scroll bar data; it's no longer necessary with
3159 contemporary LessTif.
3161 * xfaces.c (xm_set_menu_resources_from_menu_face):
3162 Change #if 0 to #ifndef LESSTIF_VERSION.
3164 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
3165 removing button grabs.
3167 2001-03-13 Kenichi Handa <handa@etl.go.jp>
3169 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
3170 and clip-large-size-font as obsolete.
3172 * lread.c (read_multibyte): Check the validity of multibyte
3173 sequence. If invalid, return the first byte.
3175 2001-03-12 Gerd Moellmann <gerd@gnu.org>
3177 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
3178 before running the command; timer functions or process
3179 filters may have set it.
3181 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3183 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3186 2001-03-12 Gerd Moellmann <gerd@gnu.org>
3188 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
3191 2001-03-09 Gerd Moellmann <gerd@gnu.org>
3193 * dispextern.h (string_buffer_position): Add prototype.
3195 * xdisp.c (string_buffer_position, display_prop_string_p)
3196 (single_display_prop_string_p): New functions.
3198 * xterm.c (note_mouse_highlight): If there's no help-echo on
3199 a string, look at the buffer text ``under'' it.
3201 * keyboard.c (make_lispy_event): Add string info to the event,
3202 analogous to what's done on mode lines.
3203 (read_key_sequence): For a click on a string, consider `local-map'
3204 and `keymap' of that string.
3206 * keyboard.c (make_lispy_event, make_lispy_movement):
3207 Adjust calls to buffer_posn_from_coords to new format.
3209 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
3211 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
3214 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
3215 flags argument to emacs_open; it seems to conflict with O_EXCL.
3217 2001-03-09 Kenichi Handa <handa@etl.go.jp>
3219 * composite.h (struct composition): Change types of members;
3220 glyph_len to unsigned, width to unsigned short.
3222 2001-03-08 Andrew Innes <andrewi@gnu.org>
3224 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
3227 2001-03-08 Gerd Moellmann <gerd@gnu.org>
3229 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
3232 * xterm.c (note_mouse_highlight): Handle mouse-face and
3233 help-echo in strings.
3234 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3235 (fast_find_string_pos): New function.
3237 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
3238 (display_string): Call face_at_string_position with new parameter.
3240 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
3241 Handle `mouse-face'.
3243 * dispextern.h (face_at_string_position): Change prototype.
3245 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
3247 * keyboard.c (make_lispy_event): Avoid generating drag events
3248 if the mouse hasn't actually moved to another buffer position.
3250 2001-03-08 Dave Love <fx@gnu.org>
3252 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
3254 2001-03-08 Gerd Moellmann <gerd@gnu.org>
3256 * process.c (Fset_process_window_size): Fix a typo.
3258 2001-03-08 Kenichi Handa <handa@etl.go.jp>
3260 * coding.c (detect_coding_sjis): Do more rigid check.
3261 (detect_coding_big5): Likewise.
3262 (decode_coding_sjis_big5): Likewise.
3263 (Fdetect_coding_region): Call detect_coding_system with tailing
3264 anchor byte `\0' for more rigid detection.
3265 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
3266 (Fdetect_coding_string): Likewise.
3268 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
3270 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
3271 a string before extracting its data.
3273 2001-03-07 Gerd Moellmann <gerd@gnu.org>
3275 * window.c (Frecenter): Rewrite code handling negative values
3276 of ARG on graphical frames.
3278 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
3280 * window.c (displayed_window_lines): If W->start is outside the
3281 accessible portion of the buffer, call start_display with BEGV or
3282 ZV instead of W->start.
3284 2001-03-07 Gerd Moellmann <gerd@gnu.org>
3286 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
3288 * process.c (Fset_process_filter): Don't crash if the input
3289 file descriptor of PROCESS is closed.
3290 (Fset_process_window_size): Likewise.
3292 2001-03-06 Kenichi Handa <handa@etl.go.jp>
3294 * xterm.c (XTflash): Make the timeout of select shorter, and call
3295 select repeatedly until the desired time expires.
3297 2001-03-06 Gerd Moellmann <gerd@gnu.org>
3299 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
3301 * xfns.c (Fx_create_frame): Clear Vwindow_list.
3303 * lisp.h (Vwindow_list): Declare extern.
3305 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
3307 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
3309 2001-03-06 Gerd Moellmann <gerd@gnu.org>
3311 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
3312 to detect a case where we have to highlight a different region
3313 despite not having left the currently highlighted region.
3314 Set mouse_face_overlay in the x_display_info.
3315 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
3317 * xterm.h (struct x_display_info): Add mouse_face_overlay.
3319 * buffer.c (mouse_face_overlay_overlaps): New function.
3321 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
3322 (Qmouse_face): Declare extern.
3324 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
3325 if face_change_count is non-zero.
3327 2001-03-06 Kenichi Handa <handa@etl.go.jp>
3329 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
3330 that the source is unibyte.
3332 2001-03-05 Dave Love <fx@gnu.org>
3334 * xterm.c (XTmouse_position): Fix typo.
3336 2001-03-05 Gerd Moellmann <gerd@gnu.org>
3338 * minibuf.c (read_minibuf): Clean up the binding stack if
3339 called noninteractively.
3341 2001-03-05 Kenichi Handa <handa@etl.go.jp>
3343 * coding.c (syms_of_coding): Docstring modified.
3345 2001-03-05 Kenichi Handa <handa@etl.go.jp>
3347 * charset.c (char_to_string): If a single byte char has modifier
3348 bits that can't be reflected to the character code, ignore them
3349 instead of signaling an error.
3351 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
3353 * s/msdos.h: Update copyright notice.
3355 * dosfns.h: Update copyright notice.
3357 * dosfns.c: Update copyright notice.
3359 * msdos.c: Update copyright notice.
3361 2001-03-02 Gerd Moellmann <gerd@gnu.org>
3363 * xterm.c (glyph_rect): New function.
3364 (XTmouse_position): Use it to raise the threshold for mouse
3365 movement event generation.
3367 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
3369 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
3370 specifies (reverse . t), reverse the initial screen colors.
3371 (IT_set_frame_parameters): If the property is foreground-color,
3372 but we are reversing the colors, set bg_set, not fg_set.
3373 Likewise for setting background-color and reversing: set fg_set.
3374 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
3377 * xfaces.c (Finternal_set_lisp_face_attribute)
3378 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
3381 2001-03-02 Gerd Moellmann <gerd@gnu.org>
3383 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
3384 to a single slash in the middle of file names.
3386 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
3387 Accept only alphanumeric time zone names.
3389 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
3391 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
3392 a widget to zero height.
3394 2001-03-01 Gerd Moellmann <gerd@gnu.org>
3396 * window.c (Fwindow_end): Call move_it_past_eol only if
3397 ending up on a partially visible line.
3399 2001-03-01 Dave Love <fx@gnu.org>
3401 * ccl.c (Fccl_execute): Doc fix.
3403 2001-03-01 Gerd Moellmann <gerd@gnu.org>
3405 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
3406 of the tool bar before calling x_figure_window_size.
3408 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
3409 NULL after destroying it, otherwise XTread_socket can access a
3410 destroyed widget when input is unblocked.
3412 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
3414 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
3415 same name as before, although there was a change in fontsets.
3417 2001-02-28 Ken Raeburn <raeburn@gnu.org>
3419 * lisp.h (Fframe_parameter): Declare.
3421 * window.c (set_window_buffer): Field vscroll is an int, not a
3424 2001-02-28 Gerd Moellmann <gerd@gnu.org>
3426 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
3429 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
3432 * alloc.c (toplevel): Include process.h.
3433 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
3434 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
3435 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
3436 (allocate_vector, allocate_hash_table, allocate_window)
3437 (allocate_frame, allocate_process, allocate_other_vector):
3439 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
3440 (mark_maybe_pointer): New function.
3441 (mark_memory): Also mark Lisp data to which only pointers
3442 remain and not Lisp_Objects.
3443 (min_heap_address, max_heap_address): New variables.
3444 (mem_find): Return MEM_NIL if START is below min_heap_address or
3445 above max_heap_address.
3446 (mem_insert): Compute min_heap_address and max_heap_address.
3448 * process.c (make_process): Use allocate_process.
3450 * frame.c (make_frame): Use allocate_frame.
3452 * window.c (make_window, make_dummy_parent): Use allocate_window.
3453 (Fcurrent_window_configuration): Use allocate_other_vector.
3455 * lisp.h (allocate_vectorlike): Remove prototype.
3456 (allocate_vector, allocate_other_vector, allocate_frame)
3457 (allocate_window, allocate_process, allocate_hash_table):
3460 * fns.c (Fdelete, larger_vector): Use allocate_vector.
3461 (make_hash_table, copy_hash_table): Use allocate_hash_table.
3463 2001-02-27 Kenichi Handa <handa@etl.go.jp>
3465 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
3466 treat the produced bytes as a valid multibyte sequence.
3468 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
3469 (ccl_driver) <CCL_WriteMultibyteChar2>:
3470 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
3471 <ccl_finish>: Set ccl->eight_bit_control properly.
3473 * ccl.h (struct ccl_program): New member eight_bit_control.
3475 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
3477 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
3478 accessible_keymaps_char_table.
3479 (accessible_keymaps_char_table): Obey `is_metized'.
3480 (where_is_internal, Fwhere_is_internal): Don't confuse int and
3483 2001-02-26 Gerd Moellmann <gerd@gnu.org>
3485 * dispnew.c: Check HAVE_TERM_H before including term.h.
3487 2001-02-24 Andrew Innes <andrewi@gnu.org>
3489 * makefile.w32-in: Update copyright notice.
3491 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
3493 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
3495 2001-02-24 Kenichi Handa <handa@etl.go.jp>
3497 * Makefile.in (lisp): Add international/utf-8.elc.
3499 * fontset.c (Fnew_fontset): Fix handling of the case that an
3500 element of FONTLIST is a cons of family and registry.
3502 2001-02-23 Jason Rumney <jasonr@gnu.org>
3504 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
3505 to height unconditionally.
3507 * w32term.c (x_set_glyph_string_background_width): Extend the
3508 background face to the end of the drawing area in the text area, only.
3509 (x_insert_glyphs): Call window_box_left to obtain the left
3510 x-coordinate of the area to shift.
3512 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
3515 2001-02-22 Andrew Innes <andrewi@gnu.org>
3517 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
3518 ($(BLD)\dispnew.obj):
3519 ($(BLD)\editfns.obj):
3520 ($(BLD)\fileio.obj):
3521 ($(BLD)\filelock.obj):
3522 ($(BLD)\keyboard.obj):
3523 ($(BLD)\w32proc.obj):
3524 ($(BLD)\process.obj):
3525 ($(BLD)\sysdep.obj): Ditto.
3527 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
3529 ($(BLD)/dispnew.$(O)):
3530 ($(BLD)/editfns.$(O)):
3531 ($(BLD)/fileio.$(O)):
3532 ($(BLD)/filelock.$(O)):
3533 ($(BLD)/keyboard.$(O)):
3534 ($(BLD)/w32proc.$(O)):
3535 ($(BLD)/process.$(O)):
3536 ($(BLD)/sysdep.$(O)): Ditto.
3538 2001-02-22 Gerd Moellmann <gerd@gnu.org>
3540 * xdisp.c (forward_to_next_line_start): When taking the shortcut
3541 at the start of the function, check that the \n in it->c is
3542 from the iterator's current position.
3544 * xdisp.c (handle_single_display_prop): Add parameter
3545 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
3546 properties which replace the display of text with something else.
3547 (handle_display_prop): Call handle_single_display_prop with
3548 additional argument saying if we already replaced text display
3549 with something else. Use AREF.
3550 (with_echo_area_buffer_unwind_data, display_menu_bar)
3551 (decode_mode_spec_coding): Use AREF and ASIZE.
3553 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
3554 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
3555 * vmstime.h: Files removed.
3557 * unexencap.c, unexfx2800.c: Files removed.
3559 * dispnew.c (direct_output_for_insert): Give up if we are showing
3560 a message or just cleared the message because we might need to
3561 resize the echo area window or display an empty echo area.
3563 2001-02-21 Gerd Moellmann <gerd@gnu.org>
3565 * xdisp.c (redisplay_internal): Do the
3566 mark_window_display_accurate after all windows have been
3567 redisplayed because this call resets flags in buffers which are
3568 needed for proper redisplay.
3570 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
3571 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
3574 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3575 busy_window to hourglass_window, busy_p to hourglass_p.
3577 * msdos.h (struct x_output): Rename busy_window to
3578 hourglass_window, busy_p to hourglass_p.
3580 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3581 busy_window to hourglass_window, busy_p to hourglass_p.
3583 * xfns.c: Rename everything containing *busy_cursor* and similar
3585 (syms_of_w32fns): Rename x-busy-pointer-shape to
3586 x-hourglass-pointer-shape, display-busy-cursor to
3587 display-hourglass, busy-cursor-delay to hourglass-delay.
3589 * w32fns.c: Rename everything containing *busy_cursor* and similar
3591 (syms_of_w32fns): Rename x-busy-pointer-shape to
3592 x-hourglass-pointer-shape, display-busy-cursor to
3593 display-hourglass, busy-cursor-delay to hourglass-delay.
3595 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
3598 * dispextern.h (start_hourglass, cancel_hourglass)
3599 (display_hourglass_p): Renamed from *busy_cursor*.
3601 2001-02-20 Gerd Moellmann <gerd@gnu.org>
3603 * keyboard.c (read_char): When an event from unread-command-events
3604 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
3606 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
3607 equal to the current buffer.
3609 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
3610 nil, otherwise we're left with truncate_lines t when a message
3611 is printed with message-truncate-lines bound to t.
3613 2001-02-19 Gerd Moellmann <gerd@gnu.org>
3615 * window.c (Fmove_to_window_line): Undo last change.
3616 (displayed_window_lines): Call line_bottom_y to determine
3617 the line's bottom position.
3619 * dispextern.h (line_bottom_y): Add prototype.
3621 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
3622 (pos_visible_p): Use it.
3624 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
3625 set redisplaying_p to 0 here instead of in Frecursive_edit.
3626 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
3629 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
3631 (syms_of_xdisp): Initialize new variables.
3632 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
3633 Specbind `inhibit-menubar-update' when updating the menu bar.
3635 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
3638 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
3641 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
3644 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
3645 to the start of the file.
3647 2001-02-16 Gerd Moellmann <gerd@gnu.org>
3649 * window.c (set_window_buffer): Fix last change.
3651 * window.c (set_window_buffer): Set window's vscroll to 0.
3653 * window.c (coordinates_in_window): Increase width of area
3654 where the vertical line can be dragged.
3656 * xterm.c (x_set_glyph_string_background_width): Extend the
3657 background face to the end of the drawing area in the text
3660 * xdisp.c (handle_single_display_prop): Set iterator's position
3661 to where the `display' property starts, like for images.
3662 (dump_glyph): New function.
3663 (dump_glyph_row): Use it. Dump info about marginal areas.
3665 * dispnew.c (direct_output_for_insert): Recognize more cases where
3666 glyphs can be written instead of being inserted.
3668 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
3669 the left x-coordinate of the area to shift.
3671 * dired.c (directory_files_internal): Set result list to nil
3674 2001-02-15 Kenichi Handa <handa@etl.go.jp>
3676 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
3677 invalid multibyte sequence, treat *SRC as a character of
3680 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
3682 * textprop.c (Fset_text_properties): Doc fix.
3684 2001-02-15 Gerd Moellmann <gerd@gnu.org>
3686 * dispnew.c (update_text_area): Undo change of 2001-01-12.
3688 2001-02-14 Dave Love <fx@gnu.org>
3690 * coding.c: Doc and message fixes.
3692 2001-02-14 Andrew Innes <andrewi@gnu.org>
3694 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
3695 Emacs frame above the screen size.
3697 2001-02-14 Gerd Moellmann <gerd@gnu.org>
3699 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
3701 2001-02-13 Gerd Moellmann <gerd@gnu.org>
3703 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
3704 case that TO ends up beyond ZV after running before-change-functions.
3706 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
3707 the selected window if it is showing the buffer in question.
3709 * dired.c (directory_files_internal): Initialize errno.
3710 (toplevel): Include errno.h.
3712 2001-02-13 Kenichi Handa <handa@etl.go.jp>
3714 * xfaces.c (best_matching_font): New parameter width_ratio.
3715 Multiply avgwidth by width_ratio.
3716 (choose_face_font): Call best_matching_font with width_ratio
3717 calculated from the column width of C.
3719 2001-02-12 Andrew Innes <andrewi@gnu.org>
3721 The following changes are to draw box lines inside characters area
3722 if line-width is negative.
3724 * w32term.c (x_produce_image_glyph): Pay attention to the case that
3725 face->box_line_width is negative.
3726 (x_produce_stretch_glyph): Likewise.
3727 (x_produce_glyphs): Likewise.
3728 (x_estimate_mode_line_height): Likewise.
3729 (x_draw_glyph_string_background): Likewise.
3730 (x_draw_glyph_string_foreground): Likewise.
3731 (x_draw_composite_glyph_string_foreground): Likewise.
3732 (x_draw_glyph_string_box): Likewise.
3733 (x_draw_image_foreground): Likewise.
3734 (x_draw_image_relief): Likewise.
3735 (x_draw_image_foreground_1): Likewise.
3736 (x_draw_image_glyph_string): Likewise.
3738 2001-02-09 Kenichi Handa <handa@etl.go.jp>
3740 The following changes are to draw box lines inside characters area
3741 if line-width is negative.
3743 * xterm.c (x_produce_image_glyph): Pay attention to the case that
3744 face->box_line_width is negative.
3745 (x_produce_stretch_glyph): Likewise.
3746 (x_produce_glyphs): Likewise.
3747 (x_estimate_mode_line_height): Likewise.
3748 (x_draw_glyph_string_background): Likewise.
3749 (x_draw_glyph_string_foreground): Likewise.
3750 (x_draw_composite_glyph_string_foreground): Likewise.
3751 (x_draw_glyph_string_box): Likewise.
3752 (x_draw_image_foreground): Likewise.
3753 (x_draw_image_relief): Likewise.
3754 (x_draw_image_foreground_1): Likewise.
3755 (x_draw_image_glyph_string): Likewise.
3757 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
3758 and :line-width can be negative.
3759 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
3761 2001-02-09 Jason Rumney <jasonr@gnu.org>
3763 * w32term.c (w32_encode_char): Treat eight bit graphic and control
3764 characters the same as ASCII and latin-1.
3765 (x_display_and_set_cursor): Check for the focus frame's selected
3766 window instead of selected_window.
3767 (x_after_update_window_line): Don't clear if frame's internal
3768 border width is zero.
3769 (x_new_font): Don't change a tooltip's size.
3770 (w32_initialize): Set char_ins_del_ok to 1.
3772 * w32fns.c (Fx_show_tip): Fix calls to make_number.
3773 (x_set_font): If font hasn't changed, avoid recomputing
3774 faces and other things.
3775 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
3776 (Fx_create_frame): Add the tool bar height to the frame height.
3777 (x_create_tip_frame): Prevent changing the tooltip's
3778 background color by specifying a color for the default font
3780 (Qcancel_timer): New variable.
3781 (syms_of_w32fns): Initialize and staticpro it.
3782 (Fx_hide_tip, Fx_show_tip): Use it.
3783 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
3785 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
3787 * w32.c (init_environment): Duplicate local string before putenv.
3789 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
3791 * charset.c (Fstring): A typo.
3793 2001-02-09 Kenichi Handa <handa@etl.go.jp>
3795 * charset.c (Fstring): If all arguments are less than 256, return
3798 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
3799 return a unibyte string.
3801 * coding.c (code_convert_region): After detecting a coding, if
3802 nothing found, set coding->composing to COMPOSITION_NO.
3803 (decode_coding_string): Likewise.
3805 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
3807 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
3810 2001-02-07 Kenichi Handa <handa@etl.go.jp>
3812 * charset.c (parse_str_to_multibyte): New function.
3814 * charset.h (parse_str_to_multibyte): Extern it.
3816 * print.c (print_string): If we are going to print a unibyte
3817 string into a multibyte buffer, convert the string to multibyte by
3820 2001-02-06 Andrew Innes <andrewi@gnu.org>
3822 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
3823 been created. It seems we can get sent window messages such as
3824 WM_ERASEBKGND before we properly update a frame.
3826 2001-02-06 Gerd Moellmann <gerd@gnu.org>
3828 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
3829 Avoid some unnecessary cursor positioning.
3831 2001-02-05 Gerd Moellmann <gerd@gnu.org>
3833 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
3834 (LFACE_AVGWIDTH): New macro.
3836 (check_lface_attrs): Check LFACE_AVGWIDTH.
3837 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3838 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
3839 (merge_face_vectors): Check LFACE_AVGWIDTH.
3840 (Finternal_make_lisp_face): Use AREF.
3841 (xm_set_menu_resources_from_menu_face)
3842 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
3843 (Finternal_lisp_face_empty_p): Use AREF.
3844 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
3845 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
3846 Compare average widths..
3847 (best_matching_font): Arrange for comparing average widths.
3849 * dispextern.h (enum lface_attribute_index):
3850 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
3852 2001-02-05 Dave Love <fx@gnu.org>
3854 * puresize.h: Revert last change following loadup.el change.
3856 2001-02-05 Andrew Innes <andrewi@gnu.org>
3858 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
3859 invocation of temacs, to work with Windows 2000.
3860 (bootstrap-emacs): Ditto.
3862 2001-02-05 Gerd Moellmann <gerd@gnu.org>
3864 * xterm.c (x_display_and_set_cursor): Check for the focus
3865 frame's selected window instead of selected_window.
3867 * xdisp.c (try_scrolling): If point is in the line below the
3868 window, make sure to move the iterator at least a canonical
3871 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
3873 2001-02-05 Kenichi Handa <handa@etl.go.jp>
3875 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
3876 If invalid, execute CCL_INVALID_CMD.
3877 (ccl_driver): If the CCL program is terminated because of
3878 CCL_STAT_INVALID_CMD, copy the remaining source data to the
3879 destination instead of throwing them away.
3881 2001-02-02 Gerd Moellmann <gerd@gnu.org>
3883 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
3884 faces and other things.
3886 * xdisp.c (get_next_display_element): Fix case of empty
3887 display table entry.
3889 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
3891 * editfns.c (Fconstrain_to_field): Doc fix.
3893 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
3894 into `thoroughly', to make it consistent with the doc string.
3896 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
3898 2001-02-01 Gerd Moellmann <gerd@gnu.org>
3900 * search.c (search_buffer): Call set_search_regs with a byte
3901 position, not a character position.
3903 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
3906 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
3908 * frame.c (Fmodify_frame_parameters): Doc fix.
3910 2001-01-31 Gerd Moellmann <gerd@gnu.org>
3912 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
3913 identifier which is not reserved by Standard C.
3915 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
3917 * window.c (enum window_part): New enumeration.
3918 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
3920 (coordinates_in_window): Return an enumerator from enum
3921 window_part. Fix handling of right scroll bar.
3922 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
3923 `right-fringe' instead of `left-bitmap-area' and
3924 `right-bitmap-area'. Use enumerators from enum window_part
3925 instead of hard-coded integers.
3926 (check_window_containing, window_from_coordinates):
3927 Use enumerators from enum window_part instead of hard-coded integers.
3928 (syms_of_window): Replace Qleft_bitmap_area and
3929 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
3931 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
3933 * editfns.c (Fformat_time_string): Doc fix.
3935 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
3937 * keymap.c (Fwhere_is_internal): Use the first valid binding
3938 if no ascii binding is found (when firstonly is t).
3940 2001-01-31 Gerd Moellmann <gerd@gnu.org>
3942 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
3943 instead of Finteractive_p.
3945 * lisp.h (interactive_p): Add prototype.
3947 * eval.c (interactive_p): New function.
3948 (Finteractive_p): Use it.
3950 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
3952 2001-01-31 Dave Love <fx@gnu.org>
3954 * .gdbinit (hook-run): Define to run xreload.
3956 * textprop.c (Fset_text_properties): Fix newline in doc string.
3958 2001-01-30 Gerd Moellmann <gerd@gnu.org>
3960 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
3961 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
3963 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
3964 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
3965 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
3967 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
3970 2001-01-30 Dave Love <fx@gnu.org>
3972 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
3975 2001-01-29 Gerd Moellmann <gerd@gnu.org>
3977 * bytecode.c (Fbyte_code) <Bcurrent_column>:
3978 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
3980 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
3982 * textprop.c (Fset_text_properties): Doc fix.
3984 2001-01-29 Gerd Moellmann <gerd@gnu.org>
3986 * xdisp.c (forward_to_next_line_start): Remove xassert.
3988 2001-01-29 Jason Rumney <jasonr@gnu.org>
3990 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
3991 returning without releasing it.
3993 2001-01-29 Kenichi Handa <handa@etl.go.jp>
3995 * w32fns.c (w32_font_match): Allocate three more bytes to regex
3996 for '^', '$', and '\0'.
3998 2001-01-28 Andrew Choi <akochoi@i-cable.com>
4000 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
4001 regex for '^', '$', and '\0'.
4003 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
4004 only if current_sblock has been initialized.
4006 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
4007 terminal frame even if it is the only visible frame.
4009 2001-01-28 Kenichi Handa <handa@etl.go.jp>
4011 * fontset.c (font_family_registry): Even if FONTNAME conform to
4012 XLFD, if it specifies other fields than family and registry,
4013 return FONTANME. New argument FORCE if nonzero cancel that feature.
4014 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
4015 a signle byte character. Don't set FAMILY part to nil here.
4016 It is handled by the caller choose_face_font.
4017 (Fnew_fontset): Call font_family_registry with FORCE 0.
4018 (Fset_fontset_font): Likewise.
4020 2001-01-27 Gerd Moellmann <gerd@gnu.org>
4022 * xdisp.c (display_line): Don't treat a newline as fitting
4025 2001-01-26 Gerd Moellmann <gerd@gnu.org>
4027 * window.c (size_window): Set the window's orig_top to nil when
4028 changing heights, so that a future shrink_mini_window won't
4029 restore a bogus height.
4031 * frame.c (do_switch_frame): If selected frame has a mini-window,
4032 resize that to exact size.
4034 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
4036 * xdisp.c (display_line): Simplify check for glyphs fitting
4037 entirely in the line.
4039 * xfns.c (xic_style): New variable.
4040 (create_frame_xic): Move static variable to global scope for
4041 the case that `static' gets defined away.
4043 2001-01-26 Kenichi Handa <handa@etl.go.jp>
4045 * coding.c (decode_coding): Set a flag for inhibiting
4047 (code_convert_region): Always set saved_coding_symbol.
4048 (decode_coding_string): Likewise. Update coding->symbol when we
4049 encounter a inconsistent eol by the same way as code_convert_region.
4051 2001-01-25 Gerd Moellmann <gerd@gnu.org>
4053 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
4056 * xterm.c (x_after_update_window_line): Don't clear if frame's
4057 internal border width is zero.
4058 (x_clear_area): New function.
4059 (x_after_update_window_line, x_clear_end_of_line)
4060 (x_scroll_bar_create, x_scroll_bar_set_handle)
4061 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
4062 instead of XClearArea.
4064 * xterm.h (x_clear_area): Add prototype.
4066 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
4067 which doesn't seem necessary anymore with Lesstif 0.92.
4069 2001-01-25 Dave Love <fx@gnu.org>
4071 * puresize.h (BASE_PURESIZE): Up to 720000.
4073 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
4075 2001-01-25 Gerd Moellmann <gerd@gnu.org>
4077 * xdisp.c (echo_area_display): Don't call redisplay_internal
4078 when Emacs is shutting down. We can't run hooks etc. that
4079 would be necessary to do a redisplay.
4081 * lread.c (read_integer): Use type EMACS_INT instead of int.
4083 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
4085 * ccl.c (ccl_driver): Fix last change.
4087 2001-01-25 Kenichi Handa <handa@etl.go.jp>
4089 * ccl.h (sturct ccl_program): New member suppress_error.
4091 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
4092 insert error message to the output.
4093 (setup_ccl_program): Initialize ccl->suppress_error to 0.
4095 * coding.h (struct coding_system): New member suppress_error.
4097 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
4098 (Fset_terminal_coding_system_internal): Set the member
4099 suppress_error to 1.
4100 (Fset_safe_terminal_coding_system_internal): Likewise.
4102 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
4104 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
4105 as if it was a `charset'.
4107 2001-01-24 Gerd Moellmann <gerd@gnu.org>
4109 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
4110 value in where_is_cache; the next lookup in the cache returns
4111 something bogus if we do.
4113 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4115 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
4116 if HAVE_WINDOW_SYSTEM isn't defined.
4118 2001-01-24 Gerd Moellmann <gerd@gnu.org>
4120 * fns.c (sweep_weak_table): Fix code taking items out of
4121 the hash collision chain. Some cleanup.
4123 * xterm.c (x_new_font): Don't change a tooltip's size.
4125 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
4126 background color by specifying a color for the default font
4129 2001-01-24 Kenichi Handa <handa@etl.go.jp>
4131 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
4132 a workaround for SunOS 4's cc.
4133 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
4134 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
4135 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
4138 2001-01-23 Gerd Moellmann <gerd@gnu.org>
4140 * xterm.c (x_set_window_size_1): New function extracted from
4142 (x_set_window_size): Use it.
4143 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
4144 doesn't have a widget, like tooltips.
4146 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
4148 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4150 2001-01-23 Kenichi Handa <handa@etl.go.jp>
4152 * fns.c (Fset_char_table_default): Fix to make sub char-table
4155 2001-01-22 Gerd Moellmann <gerd@gnu.org>
4157 * xdisp.c (build_desired_tool_bar_string): Make sure we have
4158 a desired tool bar string, even if there are no tool bar items.
4160 * xdisp.c (Ftool_bar_lines_needed): New function.
4161 (syms_of_xdisp): Defsubr it.
4163 * editfns.c (Fformat): Don't extend text properties from arguments
4164 to padding chars in the result.
4166 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
4168 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
4170 2001-01-20 Andrew Innes <andrewi@gnu.org>
4172 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
4173 (w32_initialize): Don't set term hooks that aren't actually needed
4176 * xfaces.c (realize_default_face):
4178 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
4180 * xdisp.c (handle_single_display_prop): Remove references to
4181 FRAME_W32_CONSOLE_P.
4183 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
4185 * frame.h (output_method): Remove output_w32_console method.
4186 (FRAME_W32_CONSOLE_P): Remove macro.
4188 * frame.c (Qw32_console): Remove variable.
4189 (Fframep): Remove references to it.
4190 (syms_of_frame): Ditto.
4191 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
4193 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
4196 2001-01-20 Kenichi Handa <handa@etl.go.jp>
4198 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
4200 2001-01-19 Andrew Innes <andrewi@gnu.org>
4202 * w32.c (init_environment): Add a version-independent site-lisp
4203 directory to EMACSLOADPATH, after the version dependent one.
4205 2001-01-19 Gerd Moellmann <gerd@gnu.org>
4207 * editfns.c (Fbuffer_substring): Doc fix.
4209 * xdisp.c (message_dolog, message2, message2_nolog):
4210 Rename parameter LEN to NBYTES.
4212 2001-01-19 Kenichi Handa <handa@etl.go.jp>
4214 * charset.c (strwidth): Use c_string_width.
4215 (c_string_width): New function.
4216 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
4219 * charset.h (c_string_width, lisp_string_width): Extern them.
4221 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
4223 * indent.c (check_composition): Check validity of composition.
4225 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
4226 characters by calling c_string_width.
4227 (x_consider_frame_title): Get byte length of frame tile string
4229 (display_mode_element): Pay attention to width of non-ASCII
4230 characters by calling strwidth.
4232 2001-01-18 Gerd Moellmann <gerd@gnu.org>
4234 * xfns.c (Qcancel_timer): New variable.
4235 (syms_of_xfns): Initialize and staticpro it.
4236 (Fx_hide_tip, Fx_show_tip): Use it.
4237 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
4239 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
4241 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
4243 * window.h (WINDOW_LIVE_P): New macro.
4245 * window.c (window_size_fixed): New variable.
4246 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
4249 * eval.c (specbind): If binding a per-buffer variable which
4250 doesn't have a buffer-local value in the current buffer, change
4251 the global value by changing the value of the symbol bound in all
4252 buffers not having their own value, to make it consistent with
4253 what happens with other buffer-local variables.
4255 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
4257 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
4258 when searching for a newline.
4260 2001-01-18 Kenichi Handa <handa@etl.go.jp>
4262 * xdisp.c (display_string): Fix previous change.
4264 2001-01-18 Jason Rumney <jasonr@gnu.org>
4266 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
4267 GLYPH_DEBUG is defined.
4268 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
4269 true for images with `:ascent 100'.
4270 (x_set_mouse_face_gc): If the last used mouse face has gone in the
4271 meantime, use face MOUSE_FACE_ID.
4272 If first glyph isn't a character glyph, use the ASCII NUL
4273 character to determine the face.
4274 (expose_area): Do not treat left margin specially.
4275 (note_mode_line_highlight): If no local_map, check global keymap.
4276 (note_mouse_highlight): Initialize overlay.
4277 (clear_mouse_face): Don't return if tip_frame is non-nil.
4278 (show_scroll_bars): Remove unused function.
4279 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
4280 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
4282 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
4283 (x_free_frame_resources): Unload relief colors.
4285 2001-01-17 Gerd Moellmann <gerd@gnu.org>
4287 * xdisp.c (forward_to_next_line_start): Avoid calling
4288 get_next_display_element when the newline is already found.
4289 This may change the iterator's position, when its current position is
4290 equal to the iterator's stop_charpos.
4292 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
4293 zero, use this method only at the end of a line.
4295 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
4296 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
4297 if SCALABLE_FONTS_P is set.
4299 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
4300 so that scalable fonts are included.
4302 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
4303 In the cache, use a key containing the information if scalable
4305 (x_load_font): Adapt to change of keys in the font cache.
4307 2001-01-17 Kim F. Storm <storm@filanet.dk>
4309 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
4310 XListFonts to take advantage of font caching.
4312 * xterm.c (x_list_fonts): Ensure caching font information when
4313 called for a null frame, which is the case frequently when Emacs
4316 2001-01-17 Gerd Moellmann <gerd@gnu.org>
4318 * xfns.c (QCconversion): Replaces QCalgorithm.
4320 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
4322 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
4325 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
4326 not everything could be displayed.
4328 * line.h, x-list-font.c: Files removed because unused.
4330 2001-01-17 Andrew Innes <andrewi@gnu.org>
4332 * dired.c (directory_files_internal): Convert result from readdir
4333 to a unibyte string initially, to avoid possible misinterpretation
4334 of some bytes as the internal form of Emacs characters.
4336 2001-01-17 Kenichi Handa <handa@etl.go.jp>
4338 * fns.c (concat): Be sure to avoid putting the same `composition'
4339 property on the adjacent regions.
4341 2001-01-16 Gerd Moellmann <gerd@gnu.org>
4343 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
4344 (Fscroll_right, Fscroll_left): Set it here instead, if called
4347 * buffer.c (Fset_buffer_modified_p): Set buffer's
4348 prevent_redisplay_optimizations_p flag.
4350 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
4351 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
4352 with additional arg.
4354 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
4357 * xdisp.c (redisplay_preserve_echo_area): Add parameter
4358 FROM_WHERE, for debugging.
4360 2001-01-16 Kenichi Handa <handa@etl.go.jp>
4362 * ccl.c (Fregister_ccl_program): Handle the return value of
4363 resolve_symbol_ccl_program correctly.
4364 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
4366 2001-01-15 Gerd Moellmann <gerd@gnu.org>
4368 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
4369 has gone in the meantime, use face MOUSE_FACE_ID.
4371 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
4372 If x_display_info_for_display returns null, don't try to close
4373 the display; we didn't open it.
4375 * dispnew.c (save_or_restore_current_matrices): Function removed.
4376 (save_current_matrix, restore_current_matrix): New functions.
4377 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
4378 restore the frame's current matrix. Due to the glyph pointer
4379 setup done in adjust_glyph_matrix, there is no easy way to make
4380 saving the current matrix in the desired matrix generally correct,
4383 2001-01-15 Kenichi Handa <handa@etl.go.jp>
4385 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
4387 (display_line): Optimize for wide characters.
4388 (display_string): Don't try to display a multi-column character
4389 partially. On ttys, produce more than one truncation glyph for
4390 multi-column characters that don't fit on the line.
4392 2001-01-13 Kenichi Handa <handa@etl.go.jp>
4394 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
4395 Define it instead of WORDS_BIGENDIAN. Caller changed.
4397 2001-01-13 Jason Rumney <jasonr@gnu.org>
4399 * w32fns.c (Fimage_size, image_ascent, lookup_image)
4400 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
4401 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
4402 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
4404 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
4405 (x_draw_image_relief, x_draw_image_foreground_1)
4406 (x_draw_image_glyph_string): Adapt to change of image margins.
4408 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
4411 * w32bdf.c (search_file_line, get_cached_font_char)
4412 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
4414 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
4416 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
4417 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
4418 (Fw32_send_sys_command): Remove unused variables.
4419 (w32_msg_pump): Add parentheses.
4421 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
4422 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
4425 2001-01-12 Gerd Moellmann <gerd@gnu.org>
4427 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
4428 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
4429 being a pair of margins.
4430 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
4431 to DEFVAR_LISP. Extend doc.
4433 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
4435 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
4436 pair of integers `(X . Y)', use X for the horizontal and Y for the
4438 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
4439 (parse_image_spec): Check it.
4440 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
4441 (tiff_format, gif_format, gs_format):
4442 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
4444 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
4445 (x_draw_image_relief, x_draw_image_foreground_1)
4446 (x_draw_image_glyph_string): Adapt to the change of image margins.
4448 * dispextern.h (struct image): Replace member `margin' with
4449 `hmargin' and `vmargin'.
4451 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
4454 * dispnew.c (update_text_area): Put code which decrements the
4455 stop position when the row's face extends to the end of the
4458 * xfns.c (x_set_mouse_color): Fix color allocation.
4460 * keyboard.c: Call get_local_map with new argument list.
4462 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
4464 * intervals.h (enum map_property): Removed.
4465 (get_local_map): Change prototype.
4467 * keymap.c: Call get_local_map with new argument list.
4468 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
4470 2001-01-11 Gerd Moellmann <gerd@gnu.org>
4472 * xdisp.c (build_desired_tool_bar_string): Correct the computation
4473 of the size needed for the tool bar string. For the last image,
4474 use a `display' property that reaches to the end of the string.
4476 * xselect.c (selection_request_dpyinfo): New variable.
4477 (x_handle_selection_request): Set it.
4478 (x_selection_request_lisp_error): Don't call
4479 x_decline_selection_request if selection request's display has
4482 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
4483 Do the unregister_colors before calling XFreeColors.
4485 2001-01-10 Dave Love <fx@gnu.org>
4487 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
4488 ${SOME_MACHINE_LISP}, not ${lisp}.
4490 2001-01-10 Gerd Moellmann <gerd@gnu.org>
4492 * xdisp.c (display_line): On ttys, produce more than one truncation
4493 glyph for multi-column characters that don't fit on the line.
4495 * xselect.c (x_reply_selection_request): Add a comment.
4497 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
4498 XkbGetNames instead of XkbGetKeyboard.
4500 2001-01-10 Dave Love <fx@gnu.org>
4502 * sysdep.c (random): Revert the declaration.
4504 2001-01-09 Gerd Moellmann <gerd@gnu.org>
4506 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
4507 Call function string_bytes.
4508 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
4510 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
4511 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
4512 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
4513 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
4515 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
4516 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
4517 after sweeping strings, and at the end.
4518 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
4520 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
4521 ensure that pop_message is called.
4523 * keyboard.c (Fexecute_extended_command): Use a
4524 record_unwind_protect to ensure that pop_message is called.
4526 * lisp.h (push_message_unwind): Add prototype.
4528 * xdisp.c (push_message_unwind): New function.
4530 * fileio.c (do_auto_save_unwind): Do the pop_message here
4531 instead of in Fdo_auto_save.
4532 (Fdo_auto_save): Don't call pop_message.
4534 2001-01-08 Ken Raeburn <raeburn@gnu.org>
4536 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
4539 2001-01-08 Gerd Moellmann <gerd@gnu.org>
4541 * window.c (window_scroll_pixel_based): Adjust glyph matrices
4542 when increasing window's vscroll.
4544 * macros.c (Qkbd_macro_termination_hook): New variable.
4545 (syms_of_macros): Initialize and staticpro it.
4546 (pop_kbd_macro): Run kbd-macro-termination-hook.
4548 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
4550 2001-01-07 Dave Love <fx@gnu.org>
4552 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
4553 arglist, for documentation's sake.
4555 2001-01-06 Andrew Innes <andrewi@gnu.org>
4557 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
4560 2001-01-05 Andrew Innes <andrewi@gnu.org>
4562 * term.c (update_end): Don't check updating_frame; for some reason
4563 this can be 0 sometimes, such as after dismissing a popup menu,
4564 and isn't necessary given the explicit frame argument.
4566 2001-01-05 Gerd Moellmann <gerd@gnu.org>
4568 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
4569 on some systems, and an unsigned long on others, like FreeBSD 4.1.
4571 2001-01-04 Gerd Moellmann <gerd@gnu.org>
4573 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
4575 * xfns.c (x_create_tip_frame): Preserve the value of
4576 face_change_count around the creation of the tip frame.
4578 * xfns.c (last_show_tip_args): New variable.
4579 (compute_tip_xy): New function.
4580 (Fx_show_tip): Reuse an existing tip frame, if possible.
4581 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
4583 2001-01-04 Dave Love <fx@gnu.org>
4585 * editfns.c (Fformat): Doc fix.
4587 * systime.h (set_file_times): Prototype.
4589 * widget.h (EmacsFrameSetCharSize_): Prototype.
4591 * sysdep.c (random, srandom): Declare explicitly.
4593 * dispextern.h (move_it_vertically_backward): Declare.
4595 2001-01-04 Gerd Moellmann <gerd@gnu.org>
4597 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
4598 like in Fx_create_frame.
4600 * xfaces.c (set_font_frame_param): Don't do anything for
4601 non-graphical frames.
4603 * window.c (Fdelete_other_windows): Set window's window_end_valid
4604 to nil when changing the window's start. Don't change the
4605 window's start when its top position hasn't changed. If we do,
4606 this will set the window's optional_new_start, which act's like a
4607 force_start during redisplay with C-x 1 M-> under particular
4608 circumstances (see report from Per Starback to emacs-pretest-bug
4611 2001-01-03 Gerd Moellmann <gerd@gnu.org>
4613 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
4614 short cut at the start of the function. Add an assertion.
4615 (reseat_at_next_visible_line_start): Add an assertion.
4617 * window.c (Frecenter): When changing the window start, set the
4618 window's window_end_valid to nil.
4619 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
4621 * dispextern.h (move_it_past_eol): Add prototype.
4623 * xdisp.c (move_it_past_eol): New function.
4625 * window.c (Fwindow_end): Doc fix.
4627 2001-01-03 Dave Love <fx@gnu.org>
4629 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
4631 2001-01-03 Gerd Moellmann <gerd@gnu.org>
4633 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
4634 the enabled_p flag of the glyph row at window_end_vpos to 0.
4635 (handle_single_display_prop): Fix last change.
4637 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
4639 * window.c (Frecenter): Doc fix.
4641 2001-01-02 Andrew Innes <andrewi@gnu.org>
4643 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
4645 * frame.h (output_method): Add output_w32_console method.
4646 (FRAME_W32_CONSOLE_P): New macro.
4648 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
4649 use output_w32_console method.
4650 (Qw32_console): New Lisp_Object.
4651 (Fframep): Return it.
4652 (syms_of_frame): Init it.
4653 (Fframe_parameters): Report w32console as font for w32_console frames.
4655 * xfaces.c (realize_default_face): Set face foreground and
4656 background to unspecified for w32_console frames.
4657 (realize_face): Realize face cache for w32_console frames.
4658 (realize_tty_face): Accept w32_console frames.
4660 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
4661 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
4662 necessary, even if running interactively.
4664 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
4667 * w32term.c (x_update_begin):
4671 (x_change_line_highlight):
4676 (w32_reassert_line_highlight):
4677 (w32_frame_rehighlight):
4678 (w32_frame_raise_lower): Do nothing if not w32 frame.
4680 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
4682 * w32fns.c (Fx_display_color_cells): Determine correct value, when
4683 system doesn't tell us directly.
4684 (Fx_display_visual_class): Implement properly.
4686 2001-01-02 Gerd Moellmann <gerd@gnu.org>
4688 * window.c (Frecenter): Handle centering in graphical frames
4689 specially. Centering on the basis of line counts doesn't work
4690 reliably with variable-height lines.
4692 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4694 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
4697 * composite.c (run_composition_function): Remove unused var `val'.
4698 (update_compositions): Remove unused variable `hook'.
4700 * intervals.c (get_local_map): Remove unused variable `tem'.
4702 * doprnt.c (doprnt1): Remove unused variable `size'.
4704 * fns.c (Flength): Remove unused variable `tail'.
4705 (Fdelete): Remove unused variable `size'.
4707 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
4710 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
4712 * data.c (find_symbol_value): Remove extra 3rd argument in the
4713 call to swap_in_symval_forwarding.
4715 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
4717 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
4718 (trivial_regexp_p): Remove unused variable `c'.
4719 (boyer_moore): Remove unused variable `k'.
4721 * indent.c (current_column): Remove unused variable `stopchar'.
4722 (Fcompute_motion): Remove unused variable `contin'.
4724 * casefiddle.c (casify_object): Remove unused variable `tolen'.
4726 * dired.c (directory_files_internal): Fix a typo in a comment.
4727 Remove an unused variable `handler'.
4728 (file_name_completion): Remove unused function-scope variable `dp'.
4729 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
4732 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
4734 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
4736 (Fmarker_insertion_type): Remove unused variable `buf'.
4738 * insdel.c (make_gap): Remove unused variable `result'.
4740 * keyboard.c (record_char): Remove unused function-scope var `help'.
4741 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
4742 (menu_bar_items): Remove unused function-scope variable `tem'.
4744 * fontset.c (fontset_ref): Remove unused variable `i'.
4745 (fontset_set): Remove unused variables `j' and `tmp'.
4746 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
4747 (make_fontset_for_ascii_face): Remove unused variable `name'.
4748 (fs_load_font): Remove unused variable `font_idx'.
4749 (fs_query_fontset): Remove unused function-local variable `fontset'.
4750 (list_fontsets): Remove unused variable `tail'.
4751 (Fnew_fontset): Remove unused variables `family' and `registry'.
4752 (accumulate_font_info): Remove unused variable `tmp'.
4753 (Ffontset_font): Remove unused variable `id'.
4754 (syms_of_fontset): Remove unused variable `i'.
4756 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
4758 (lookup_image): Remove unused variable `file'.
4759 (xbm_load): Remove unused variables `bitmap_data', `height', and
4760 `width'. Remove function-local variable `i', leave the
4762 (gif_load): Remove unused variable `inc'.
4764 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
4765 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
4766 leave only the one in the inner block.
4768 * xfaces.c (face_fontset, realize_default_face): Remove unused
4770 (face_at_buffer_position): Remove unused variable `multibyte_p'.
4772 * term.c (encode_terminal_code): Remove unused variable `c'.
4774 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
4775 char *' instead of `char *'.
4777 * category.c (Fcategory_docstring): Remove unused variable `doc'.
4778 (Fget_unused_category): Remove unused variable `docstring_vector'.
4779 (Fchar_category_set): Remove unused variables `val', `charset',
4782 * coding.c (detect_coding_iso2022, setup_coding_system):
4783 Remove unused variable `i'.
4784 (detect_coding_mask): Remove unused variable `idx'.
4785 (detect_coding): Remove unused variable `i'.
4786 (ccl_coding_driver): Remove unused variable `result'.
4787 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
4788 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
4789 (encode_coding_string): Remove unused variables `gcpro1' and
4790 `saved_coding_symbol'.
4791 (Ffind_coding_systems_region_internal): Remove function-local
4792 variable args[], leave only the block-local one.
4793 (code_convert_region1): Remove unused variable `len'.
4795 * charset.c (char_printable_p): Remove unused variable `chars'.
4796 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
4797 (str_to_multibyte): Remove unused variable `c'.
4799 * window.c (size_window): Remove block-local variable `min_size'.
4801 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
4802 `header_line_height'.
4803 (append_space, extend_face_to_end_of_line): Declare `saved_what'
4804 enum display_element_type.
4806 2001-01-02 Gerd Moellmann <gerd@gnu.org>
4808 * xterm.c (x_connection_closed): Catch X errors around all
4809 statements that call X. Save away the error message in a local copy.
4811 * xterm.c (x_connection_closed): Set handling_signal to 0 at
4814 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
4815 in or at the start of invisible text.
4817 * dispnew.c (update_window): Don't check_current_matrix_flags.
4819 2001-01-01 Jason Rumney <jasonr@gnu.org>
4821 * w32fns.c (x_figure_window_size): Do not allow new_height and
4822 new_width of frame to override specified values.
4824 2000-12-30 Kenichi Handa <handa@etl.go.jp>
4826 * composite.c (find_composition): Fix a code for searching backward.
4828 2000-12-29 Gerd Moellmann <gerd@gnu.org>
4830 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
4831 (update_window) [GLYPH_DEBUG]: Call it.
4832 (scrolling_window): Prevent including current rows which are below
4833 what's displayed in the window.
4835 * xdisp.c (try_window_reusing_current_matrix)
4836 <new start <= old start>: Disable rows in the current matrix
4837 which are below the window after scrolling.
4839 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
4840 is zero. It's not worth the complexity.
4841 (invisible_text_between_p): Put in #if 0 because unused.
4843 2000-12-28 Gerd Moellmann <gerd@gnu.org>
4845 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
4846 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
4848 * keyboard.c (echo_char): If C is an integer, always call
4849 push_key_description. Former code could signal an invalid
4852 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
4853 If set, print multibyte text.
4854 (Fsingle_key_description): Call push_key_description with
4855 FORCE_MULTIBYTE set.
4856 (describe_buffer_bindings): Likewise.
4858 * lisp.h (push_key_description): Add prototype.
4860 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
4861 around the call to redisplay_internal.
4863 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4865 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4867 2000-12-28 Kenichi Handa <handa@etl.go.jp>
4869 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
4870 (ccl_driver): New local variable `extra_bytes'.
4872 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
4874 * coding.c (setup_coding_system):
4875 Initialize coding->spec.ccl.eight_bit_carryover.
4876 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
4878 2000-12-28 Kenichi Handa <handa@etl.go.jp>
4880 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
4881 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
4882 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
4883 (decode_composition_emacs_mule): New function.
4884 (decode_coding_emacs_mule): Decode composition sequence by calling
4885 decode_composition_emacs_mule.
4886 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
4887 (encode_coding_emacs_mule): Changed from macro to function.
4888 If a text contains compositions, encode them correctly.
4889 (setup_coding_system): Set coding->commong_flags for emacs-mule so
4890 that decoding and encoding are required.
4892 2000-12-27 Gerd Moellmann <gerd@gnu.org>
4894 * xfaces.c (PT_PER_INCH): New macro.
4895 (xlfd_point_size): Compute real point size from font's pixel size.
4896 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
4899 * .gdbinit: Comment out the line pointing to the Lesstif source
4902 * window.c (Frecenter): Use displayed_window_lines instead
4903 of window_internal_height.
4905 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4906 instead of x-toolkit-scroll-bars-p.
4907 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
4909 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4910 instead of x-toolkit-scroll-bars-p.
4911 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
4913 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
4914 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
4915 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
4917 (add_window_display_history, add_frame_display_history)
4918 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
4919 (build_frame_matrix_from_leaf_window): Remove unused code.
4920 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
4922 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
4923 (update_window) [GLYPH_DEBUG]: Likewise.
4924 (syms_of_display): Defsubr dump-redisplay-history.
4926 2000-12-23 Gerd Moellmann <gerd@gnu.org>
4928 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
4929 the end of the prompt. Set echo_after_prompt to the offset
4930 of echoptr in echobuf.
4932 * xdisp.c (init_from_display_pos): Pop until the iterator's
4933 stack is empty; there may be frames for stretch or images
4936 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
4937 (save_or_restore_current_matrix): New function for the same
4938 purpose, but more efficient.
4939 (adjust_frame_glyphs_for_frame_redisplay): Use it.
4941 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
4943 * xdisp.c (syms_of_xdisp): Fix last change.
4945 2000-12-23 Gerd Moellmann <gerd@gnu.org>
4947 * xdisp.c (syms_of_xdisp): Doc fix.
4949 * xdisp.c (redisplay_window): Remove label restore_buffers;
4950 use finish_scroll_bars instead to make sure that scroll bars
4951 are redeemed. If we don't do this, flickering can result from
4952 scroll bars being destroyed and recreated.
4954 2000-12-22 Jason Rumney <jasonr@gnu.org>
4956 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
4957 in the wrong colors when the foreground is not black.
4958 (expose_window): Don't redraw the window that's currently being
4961 2000-12-22 Gerd Moellmann <gerd@gnu.org>
4963 * window.c (size_window): When setting the window's too_small_ok
4964 flag, compare old size with minimum size depending on WIDTH_P,
4965 don't compare with window_min_width.
4967 * window.c (delete_window): Simplify somewhat.
4968 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
4969 freeing window matrices. The flag windows_or_buffers_changed is
4970 set, so the next redisplay will consider all windows; this should
4973 2000-12-22 Kenichi Handa <handa@etl.go.jp>
4975 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
4977 * ccl.h (struct ccl_program): New member cr_consumed.
4979 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
4980 (CCL_READ_CHAR): Handle EOL conversion here.
4981 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
4983 2000-12-21 Gerd Moellmann <gerd@gnu.org>
4985 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
4987 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
4988 otherwise tabs of different size compare equal.
4990 * callint.c (Fcall_interactively): Prevent a compiler warning.
4992 * print.c (print_unwind): Return nil.
4993 (PRINTDECLARE): Initialize all local variables.
4994 (print_preprocess): Add a default case.
4996 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
4998 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
5000 * window.c (delete_window, Fsplit_window)
5001 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
5003 * dispextern.h (ensure_frame_matrix): Function declaration removed.
5005 * dispnew.c (ensure_frame_matrix): Removed.
5006 (save_frame_matrix, restore_frame_matrix): New functions.
5007 (adjust_frame_glyphs_for_frame_redisplay): Use them.
5009 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
5010 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
5012 2000-12-21 Andrew Innes <andrewi@gnu.org>
5014 * w32term.c (x_update_begin): Regenerate the palette here, rather
5015 than for each window.
5017 * w32xfns.c (select_palette): Avoid calling SelectPalette if
5018 palette is NULL, since this corrupts memory! Also get
5019 display_info reference from frame.
5021 2000-12-21 Jason Rumney <jasonr@gnu.org>
5023 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
5025 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
5026 to avoid returning without releasing it.
5028 2000-12-21 Kenichi Handa <handa@etl.go.jp>
5030 * keymap.c (push_key_description): Don't convert eight-bit-control
5031 and eight-bit-graphic to multibyte character.
5033 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
5034 generic character and CODE1 is nil, return the smallest character
5037 2000-12-20 Dave Love <fx@gnu.org>
5039 * s/osf5-0.h (NSIG): Don't redefine.
5041 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
5043 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
5044 excluding menu-bar and tool-bar.
5045 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
5046 (menu_item_p): Remove.
5047 (where_is_internal_1): Don't ignore menu-items.
5049 2000-12-20 Gerd Moellmann <gerd@gnu.org>
5051 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
5054 * window.c (make_window): Initialize window's min_hscroll.
5055 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
5056 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
5058 (struct saved_window): New member min_hscroll.
5059 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
5060 (Fset_window_configuration): Set window's min_hscroll.
5061 (save_window_save): Save window's min_hscroll.
5062 (compare_window_configurations): Compare min_hscroll values.
5064 * window.h (struct window): New member min_hscroll.
5066 * keyboard.c (echo_prompt): Prevent a compiler warning.
5068 * xdisp.c (try_cursor_movement): Fix last change. The real
5069 condition is that PT is at the end of the row, and should
5070 be displayed at the start of the next row.
5072 * xdisp.c (try_cursor_movement): If we end on a partially
5073 visible line, end we already decided to scroll, return -1.
5075 * dispextern.h (ensure_frame_matrix): Add prototype.
5077 * window.c (delete_window, Fsplit_window)
5078 (Fset_window_configuration): Call ensure_frame_matrix.
5080 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
5082 (adjust_frame_glyphs_for_frame_redisplay): If display has been
5083 completed, call fake_current_matrices instead of marking frame
5086 2000-12-20 Jason Rumney <jasonr@gnu.org>
5088 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
5090 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5092 * fns.c (Frequire): Doc fix.
5094 2000-12-19 Gerd Moellmann <gerd@gnu.org>
5096 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
5098 * dispnew.c (direct_output_for_insert): Fix check for mini-window
5099 currently displaying a message.
5101 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
5103 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
5105 2000-12-18 Andrew Innes <andrewi@gnu.org>
5107 * w32.c (w32_strerror): New function.
5109 * w32.h (w32_strerror): New extern.
5111 * w32fns.c (Fw32_shell_execute): Use it.
5113 2000-12-18 Gerd Moellmann <gerd@gnu.org>
5115 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
5117 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5119 * msdos.c (IT_set_face): Obey inverse_video.
5121 2000-12-18 Kenichi Handa <handa@etl.go.jp>
5123 * dired.c (directory_files_internal): Always return decoded filenames.
5125 2000-12-18 Gerd Moellmann <gerd@gnu.org>
5127 * xterm.c (x_connection_closed): Prevent being called recursively
5128 because of an error condition in XtCloseDisplay.
5130 * xdisp.c (init_iterator): If noninteractive, and the frame's
5131 face cache is null, make one.
5133 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5135 * process.c (wait_reading_process_input): Check for pending
5136 input when running timers.
5138 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5140 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
5142 2000-12-18 Kenichi Handa <handa@etl.go.jp>
5144 * process.c (read_process_output): Don't run a filter if the code
5145 decoder produces nothing but carryover.
5147 2000-12-17 Andrew Innes <andrewi@gnu.org>
5149 * w32.c (sys_rename): Only check errno against EEXIST, and not
5150 EACCES, when determining whether rename failed because the target
5151 exists. This was resulting in indefinite looping on Windows 9x if
5152 the source file was locked by another process.
5154 * w32fns.c (Ffile_system_info): New function.
5155 (syms_of_w32fns): Defsubr it.
5157 2000-12-17 Gerd Moellmann <gerd@gnu.org>
5159 * window.c (coordinates_in_window): Fix computation for
5160 position on vertical line between mode lines.
5162 * xfns.c (unwind_create_frame): Return t if frame was deleted.
5163 Don't alter tip_frame or tip_window.
5164 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5167 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
5168 Don't alter tip_frame or tip_window.
5169 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5172 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
5174 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
5175 be consistent with the doc string. Reported by NAKAJIMA Mikio
5176 <minakaji@osaka.email.ne.jp>.
5178 2000-12-16 Kenichi Handa <handa@etl.go.jp>
5180 * xfaces.c (Vface_ignored_fonts): New variable.
5181 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
5182 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
5184 2000-12-15 Gerd Moellmann <gerd@gnu.org>
5186 * dispnew.c (update_window): Detect pending input every nth line
5187 updated, i.e. do it depending on real work done, and not on the
5190 * xterm.c (expose_window): Don't redraw the window that's
5191 currently being updated.
5193 * window.c (Fset_window_point): Remove test for
5194 cursor_in_non_selected_windows.
5196 * lread.c (read1): Recognize end of file after `\\'.
5198 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
5199 not unwind_create_frame.
5201 2000-12-15 Dave Love <fx@gnu.org>
5203 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
5206 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
5208 2000-12-15 Kenichi Handa <handa@etl.go.jp>
5210 * coding.c (setup_coding_system): Clear all members of the struct
5211 coding_system at first.
5212 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
5214 (code_convert_region): Don't override coding->src_multibyte and
5215 coding->dst_multibyte.
5217 * fns.c (Fmd5): Docstring improved.
5219 2000-12-15 Miles Bader <miles@gnu.org>
5221 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
5222 are actually marked as mode-lines; otherwise use
5223 estimate_mode_line_height.
5225 2000-12-14 Gerd Moellmann <gerd@gnu.org>
5227 * editfns.c (Fformat): Prevent a buffer overrun when the format
5228 specifies a precision.
5230 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
5232 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
5233 argument is outside the range [2..3].
5235 2000-12-14 Andrew Innes <andrewi@gnu.org>
5237 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
5238 nothing to do. Bind inhibit-quit.
5239 (tip_frame): Make it a Lisp_Object.
5240 (x_create_tip_frame): Set tip_frame after it has been added to
5242 (Fx_show_tip): Don't set tip_frame here.
5243 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
5244 (unwind_create_frame, unwind_create_tip_frame): New functions.
5245 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
5246 while a frame is only partially constructed.
5248 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
5249 (x_free_frame_resources): New function.
5250 (x_destroy_window): Use it.
5252 2000-12-14 Gerd Moellmann <gerd@gnu.org>
5254 * xfns.c (Fx_backspace_delete_keys_p): New function.
5255 (syms_of_xfns): Defsubr it.
5257 * config.in (HAVE_XKBGETKEYBOARD): Add.
5259 2000-12-14 Kenichi Handa <handa@etl.go.jp>
5261 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
5262 Always store string in multibyte representation in echobuf.
5263 (echo_char): Always store string in multibyte representation in
5265 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
5266 (read_key_sequence): Adjusted for the change of echo_prompt.
5268 * fns.c (Fmd5): Docstring improved.
5270 * lisp.h (detect_coding_system): Prototype adjusted.
5272 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
5273 (detect_coding_emacs_mule, detect_coding_iso2022,)
5274 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
5275 (detect_coding_utf_16, detect_coding_ccl): Make them static.
5276 New argument MULTIBYTEP. Callers changed.
5277 (detect_coding_mask, detect_coding_system): New argument
5278 MULTIBYTEP. Callers changed.
5279 (decode_coding_string): Set coding->src_multibyte and
5280 coding->dst_multibyte before calling detect_coding and detect_eol.
5281 Update them after some coding system is detected.
5283 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
5285 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
5287 * keyboard.c (menu_bar_items, tool_bar_items):
5288 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
5290 2000-12-13 Gerd Moellmann <gerd@gnu.org>
5292 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
5294 (unwind_create_frame, unwind_create_tip_frame): New functions.
5295 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
5296 while a frame is only partially constructed.
5298 * xterm.h (x_free_frame_resources): Declare.
5300 * xterm.c (x_free_frame_resources): New function.
5301 (x_destroy_window): Use it.
5303 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
5304 don't interrupt the update for pending input initially, i.e.
5305 update at least some lines.
5307 * keyboard.c (do_mouse_tracking): Make externally visible.
5309 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
5311 * xfns.c (gray_bitmap_bits): Declare `char *'.
5313 2000-12-12 Gerd Moellmann <gerd@gnu.org>
5315 * xdisp.c (display_tool_bar_line): Make sure that tool bar
5316 lines start with a relief line.
5318 2000-12-12 Dave Love <fx@gnu.org>
5320 * window.c (Fdisplay_buffer): Doc fix.
5321 (Fwindow_list): Remove unused var.
5323 * buffer.h (mmap_set_vars): Declare.
5325 * window.h (Fset_window_point): Declare.
5327 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
5329 * msdos.c (fast_find_position): Don't overstep the last window row.
5330 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
5331 variable `area'. When looking for a row under (X,Y), give up if some
5332 of the previous rows is not enabled.
5334 2000-12-12 Gerd Moellmann <gerd@gnu.org>
5336 * window.c (Fset_window_point): If displaying cursors in windows
5337 other than the selected window, make sure redisplay updates
5338 other windows to show the new value of point in the window.
5340 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
5342 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
5343 the buffer is the sole visible buffer when in the mini-buffer.
5345 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
5346 Bind `inhibit-read-only' to t.
5347 (unwind_with_echo_area_buffer): Use AREF.
5349 * xfns.c (Fx_hide_tip): Simplified.
5351 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
5354 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
5356 2000-12-11 Gerd Moellmann <gerd@gnu.org>
5358 * xfns.c (Fx_hide_tip): Fix last change.
5360 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
5361 nothing to do. Bind inhibit-quit.
5362 (tip_frame): Make it a Lisp_Object.
5363 (x_create_tip_frame): Set tip_frame after it has been added to
5365 (Fx_show_tip): Don't set tip_frame here.
5367 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
5369 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
5372 * dispextern.h: Change external declaration of tip_frame.
5374 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
5375 return an empty string.
5377 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
5378 of the window's update_mode_line flag, since the former is set by
5379 force-mode-line-update, not the latter. This makes
5380 column-number-mode slightly faster.
5382 * xdisp.c (try_window_id) <all changes above window start>:
5385 2000-12-11 Paul Eggert <eggert@twinsun.com>
5387 * config.in (HAVE_FTELLO): Remove.
5389 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
5390 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
5392 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
5393 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
5395 2000-12-11 Miles Bader <miles@gnu.org>
5397 * window.c (displayed_window_lines): Don't round up when
5398 converting empty space at bottom to lines.
5399 Handle non-newline-terminated final lines properly.
5400 (Fwindow_text_height): New function (used to be in lisp).
5401 (syms_of_window): Initialize it.
5403 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
5405 * syntax.c (scan_lists): Check that the right quote char has the
5406 right Sstring syntax when jumping over strings.
5407 (init_syntax_once): Use Smax rather than 13.
5409 2000-12-09 Miles Bader <miles@gnu.org>
5411 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
5412 with PARTIALLY, inverting the sense.
5413 (window_scroll_pixel_based): Scroll partially visible lines into
5414 place if we hit the beginning or end of the buffer.
5415 (displayed_window_lines): Don't include partially visible lines.
5416 (Fmove_to_window_line): Skip past any partially visible first line.
5418 2000-12-08 Gerd Moellmann <gerd@gnu.org>
5420 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
5422 * tparam.c (tparam1): Change the way buffers are reallocated to be
5423 portable and less obfuscated.
5425 * termcap.c (tgetent): Change the way buffers are reallocated to
5426 be portable and less obfuscated.
5428 * macros.c (store_kbd_macro_char): Change the way buffers are
5429 reallocated to be portable and less obfuscated.
5431 * lread.c (read1): Change the way buffers are reallocated to be
5432 portable and less obfuscated.
5434 * doc.c (Fsubstitute_command_keys): Change the way buffers
5435 are reallocated so that it is portable.
5437 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
5439 * dosfns.c (Ffile_system_info): New function.
5440 (syms_of_dosfns): Defsubr it.
5442 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
5444 * alloc.c (gc_sweep): Add comment.
5446 2000-12-07 Gerd Moellmann <gerd@gnu.org>
5448 * sound.c (vox_configure): Change order of ioctls.
5449 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
5450 Ignore errors when changing volume.
5451 (vox_close): Don't reset the device.
5453 * process.c (read_process_output): Make sure the process marker's
5454 position is valid when the process buffer is changed in
5455 after-change functions. W3 does that.
5457 * xfns.c (x_free_gcs): New function.
5459 * xterm.h (x_free_gcs): Add prototype.
5461 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
5464 * xterm.c (x_destroy_window): Call x_free_gcs so that
5465 resources of non-toolkit X windows will be freed.
5467 2000-12-07 Andrew Innes <andrewi@gnu.org>
5469 * w32fns.c (xlfd_charset_of_font): Fix last change.
5471 2000-12-06 Dave Love <fx@gnu.org>
5473 * md5.h (__P): Don't define -- it comes from config.h.
5475 * strftime.c: Change some #if foo to #ifdef foo.
5477 2000-12-06 Andrew Innes <andrewi@gnu.org>
5479 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
5481 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
5482 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
5483 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
5485 2000-12-06 Gerd Moellmann <gerd@gnu.org>
5487 * alloc.c (gc_sweep): Prevent symbols read during loadup
5490 * xdisp.c (underlying_face_id): New function.
5491 (handle_face_prop, face_before_or_after_it_pos): Use it
5492 to determine the face ``under'' a string. Let strings inherit
5493 the face of the buffer under them.
5495 * xfaces.c (face_at_string_position): Update function comment.
5497 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
5498 matrix if the window's left position has changed; we need to
5499 redraw it in this case.
5501 * dispextern.h (struct glyph_matrix): Add member window_left_x.
5503 * window.c (coordinates_in_window): Check mouse on mode-line or
5506 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
5507 advertized by the function documentation.
5509 * window.c (syms_of_window): Doc fix.
5511 * sound.c (vox_configure): Set volume for left and right channel.
5512 (sound_cleanup): Return nil.
5514 * xdisp.c (move_it_by_lines): Fix paren typo.
5516 * xterm.c (x_load_font): Don't use the font's max_bounds for
5517 computing the height of the font. If max_bounds' ascent or
5518 descent are greater than the font's ascent or descent, this means
5519 glyphs overlap, which should be handled now by redisplay.
5521 * window.c (Veven_window_heights): New variable.
5522 (syms_of_window): DEFVAR_LISP it.
5523 (Fdisplay_buffer): Check Veven_window_heights before evening the
5526 2000-12-06 Miles Bader <miles@gnu.org>
5528 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
5529 update `default-frame-alist' instead of setting no frame parameters.
5531 2000-12-06 Kenichi Handa <handa@etl.go.jp>
5533 * composite.c (update_compositions): Fix typo (use the correct
5536 2000-12-05 Jason Rumney <jasonr@gnu.org>
5538 * md5.h: Remove underscores from function declarations.
5539 (__attribute__, __alignof__) [!__GNUC__]: Define.
5541 * md5.c: Delay include of md5.h until after namespace cleaning.
5543 * makefile.w32-in (fns.o): Depend on md5.h
5544 (md5.o): New target.
5547 * makefile.nt: Likewise.
5549 2000-12-05 Jason Rumney <jasonr@altavista.net>
5551 * w32term.c (expose_area): Complete last change.
5553 2000-12-05 Ken Raeburn <raeburn@gnu.org>
5555 * minibuf.c: Include intervals.h.
5557 2000-12-05 Jason Rumney <jasonr@gnu.org>
5559 * w32term.c (x_produce_glyphs): If a font for a component of
5560 a composition is not found, use 1 pixel dot ascent and 0 dot
5561 descent value to avoid displaying terribly tall empty boxes.
5562 (expose_area): Pass x-coordinate relative to the exposed
5563 area to x_draw_glyphs instead of a window-relative coordinate.
5565 2000-12-05 Gerd Moellmann <gerd@gnu.org>
5567 * xdisp.c (next_element_from_ellipsis): Save face before selective
5568 display in saved_face_id, and set face_before_selective_p.
5569 (reseat_1): Reset face_before_selective_p.
5570 (append_space, extend_face_to_end_of_line): If iterator's
5571 face_before_selective_p is set, use the face from saved_face_id.
5572 (extend_face_to_end_of_line): For tty frames, make sure to
5573 use the right face id when producing spaces at the end of
5576 * dispextern.h (struct it): Add face_before_selective_p.
5578 * keyboard.c (record_char): Don't record identical help-echo
5579 events in recent_keys.
5581 * xterm.c [USE_X_TOOLKIT]: Close the display.
5582 (xim_close_dpy): Handle case that the display has been closed.
5584 * xterm.c (x_destroy_window): Reset the frame's X window after
5587 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
5588 variable window_width.
5589 (line_draw_cost): Fix code skipping over spaces at the end of the
5590 line when must_write_spaces is not set.
5591 (scrolling_window): Fix code inserting runs in list of all runs.
5593 2000-12-05 Kenichi Handa <handa@etl.go.jp>
5595 * coding.c (setup_coding_system): Be sure to initialize
5596 coding->category_idx.
5598 2000-12-04 Gerd Moellmann <gerd@gnu.org>
5600 * xterm.c (PER_CHAR_METRIC): Removed because not used.
5602 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
5603 area to x_draw_glyphs instead of a window-relative coordinate.
5605 * fileio.c (auto_save_error): Add parameter ERROR. Show the
5606 error in the message.
5608 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
5609 timer after having read a key. It's not good for code reading
5610 several keys in a loop, like an input method.
5612 * fileio.c (Finsert_file_contents): When VISIT is t, don't
5613 record undo information for format-decode.
5615 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
5616 current buffer is read-only, not if it isn't.
5618 * keyboard.c (record_char): Record `help-echo' input events
5619 in recent_keys only if they display some help. Don't record
5620 `help-echo' events as macro char.
5622 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5624 * editfns.c (save_excursion_restore): Don't move point
5625 in another window if it is showing the wrong buffer.
5626 Avoid the call to Fwindow_live_p, for speed.
5628 2000-12-04 Kenichi Handa <handa@etl.go.jp>
5630 * xfaces.c (struct font_name): New member registry_priority.
5631 (split_font_name): Initialize the above member to zero.
5632 (concat_font_list): New function.
5633 (font_list): Include fonts of all alternative registries.
5634 (FONT_POINT_SIZE_QUANTUM): New macro.
5635 (better_font_p): Ignore point size difference less than
5636 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
5638 * xterm.c (x_produce_glyphs): If a font for a component of
5639 a composition is not found, use 1 pixel dot ascent and 0 dot
5640 descent value to avoid displaying terribly tall empty boxes.
5642 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
5644 2000-12-03 Ken Raeburn <raeburn@gnu.org>
5646 * coding.h (code_convert_string1): Declare.
5648 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
5650 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
5652 2000-12-02 Jason Rumney <jasonr@gnu.org>
5654 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
5655 correctly for single byte character case.
5656 (w32_per_char_metric): Do not try to make any assumptions about
5657 the metrics of BDF fonts.
5658 (x_estimate_mode_line_height): If `mode-line' face
5659 hasn't a font, use that of the frame, as drawing glyphs does.
5660 (note_mouse_highlight): Change the cursor shape on the vertical
5661 border between windows [not enabled].
5663 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
5665 * w32fns.c (Fx_create_frame): Reintroduce the call to
5666 face-set-after-frame-defaults.
5667 (Vx_window_horizontal_drag_shape): New variable.
5668 (syms_of_xfns): DEFVAR_LISP it.
5669 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
5672 2000-12-02 Simon Josefsson <simon@josefsson.org>
5674 * fns.c (Fmd5): Use a different logic to decide the coding system
5677 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
5679 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
5681 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
5683 2000-12-01 Gerd Moellmann <gerd@gnu.org>
5685 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
5686 height for YNegative.
5687 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
5688 height; also see comment there.
5690 * window.c (coordinates_in_window): Handle computations for
5691 positions on the vertical bar and fringes differently for
5692 window-system frames. Consider some pixels near the vertical bar
5693 as on the bar if the frame doesn't have vertical scroll bars.
5694 Associate positions between mode or header lines with the
5695 right window, the left one.
5697 2000-12-01 Jason Rumney <jasonr@gnu.org>
5699 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
5701 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
5704 2000-12-01 Gerd Moellmann <gerd@gnu.org>
5706 * window.c (struct saved_window): Add members orig_top and orig_height.
5707 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
5708 (save_window_save, Fset_window_configuration): Save/restore
5709 window's orig_top and orig_height.
5711 2000-12-01 Jason Rumney <jasonr@gnu.org>
5713 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
5715 * w32fns.c (x_set_cursor_color): Fix last change.
5717 2000-11-30 Gerd Moellmann <gerd@gnu.org>
5719 * xdisp.c (echo_area_display): If cursor is in the echo area, make
5720 sure that the next redisplay displays the minibuffer, so that
5721 the cursor will be replaced with what the minibuffer wants.
5723 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
5724 #ifndef instead of using #if.
5725 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
5726 USE_TOOLKIT_SCROLL_BARS is defined.
5728 2000-11-30 Jason Rumney <jasonr@gnu.org>
5730 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
5733 2000-11-30 Gerd Moellmann <gerd@gnu.org>
5735 * fns.c (Fmd5): Doc fix.
5737 2000-11-30 Simon Josefsson <simon@josefsson.org>
5739 * fns.c (Fmd5): New function.
5740 (syms_of_fns): Defsubr md5.
5742 * Makefile.in (obj): Add md5.o
5744 2000-11-30 Gerd Moellmann <gerd@gnu.org>
5746 * md5.h, md5.c: New files, taken from glibc.
5748 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
5750 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
5751 hasn't a font, use that of the frame, as drawing glyphs does.
5753 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
5755 * eval.c (Frun_hooks): Allow 0 arguments.
5757 2000-11-29 Gerd Moellmann <gerd@gnu.org>
5759 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
5760 is over the menu bar widget, say it's not on the frame.
5762 * xfns.c (Fx_create_frame): Reintroduce the call to
5763 face-set-after-frame-defaults.
5765 * eval.c (Fsignal): Reset handling_signal.
5767 2000-11-28 Jason Rumney <jasonr@gnu.org>
5769 * w32menu.c (add_menu_item): Reset menu item text when changing
5770 type to radio button.
5772 2000-11-28 Gerd Moellmann <gerd@gnu.org>
5774 * xselect.c: Update copyright.
5776 * window.c (coordinates_in_window): If on a mode or header line,
5777 but sufficiently close to its start, return ``on vertical
5778 border''. This gives us a way to drag windows horizontally when
5779 using toolkit scroll bars.
5781 * xterm.c (note_mouse_highlight): Change the cursor shape
5782 on the vertical border between windows.
5784 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
5786 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
5787 (syms_of_xfns): DEFVAR_LISP it.
5788 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
5790 * textprop.c (text_read_only): New function.
5791 (verify_interval_modification): Use it instead of signaling
5792 `text-read-only'. This makes it easier to catch this error
5795 * xdisp.c (forward_to_next_line_start): Check for newlines,
5796 not end of line, which includes CR.
5798 2000-11-28 Kenichi Handa <handa@etl.go.jp>
5800 * coding.c (Ffind_coding_systems_region_internal): Be sure to
5801 include no-conversion.
5803 2000-11-27 Jason Rumney <jasonr@gnu.org>
5805 * w32fns.c (w32_load_system_font): Always mark font as double byte
5806 if codepage is unicode.
5808 2000-11-27 Gerd Moellmann <gerd@gnu.org>
5810 * xdisp.c (forward_to_next_line_start): If already on a newline,
5811 just consume it to avoid unintended skipping over invisible text below.
5813 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
5814 `vertical-line', `mode-line' and `header-line' events.
5816 * xdisp.c (try_window_id): Avoid starting to display in the middle
5817 of a character, a TAB for instance. This is easier than to set
5818 up the iterator exactly, and it's not a frequent case, so the
5819 additional effort wouldn't really pay off.
5821 2000-11-26 Andrew Choi <akochoi@i-cable.com>
5823 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
5826 2000-11-25 Jason Rumney <jasonr@gnu.org>
5828 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
5829 Args to window_from_coordinates should be pixel coordinates.
5831 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
5832 redisplay handles them properly.
5834 2000-11-25 Miles Bader <miles@gnu.org>
5836 * indent.c (compute_motion): Keep pos_byte in sync with pos.
5838 2000-11-24 Jason Rumney <jasonr@gnu.org>
5840 * w32.c (init_environment): Set LANG environment variable based on
5841 locale settings, if not set.
5843 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
5844 making tool bar smaller. When clearing the frame, also
5845 clear current matrices. Clear frame when tool bar disappears.
5846 Don't use more lines for the tool-bar than is available.
5847 (x_change_window_heights): New function.
5849 2000-11-24 Gerd Moellmann <gerd@gnu.org>
5851 * xdisp.c (init_from_display_pos): If POS says we're already after
5852 an overlay string ending at POS, make sure to pop the iterator
5853 because it will be in front of that overlay string. When POS is
5854 ZV, we've thereby also ``processed'' overlay strings at ZV.
5856 * xfaces.c (lface_from_face_name): Function comment fix.
5858 2000-11-24 Miles Bader <miles@gnu.org>
5860 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
5861 apply `mode-line-inverse-video' -- zero means force display using
5862 the default face, non-zero means display using the specialized face.
5863 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
5865 2000-11-23 Kenichi Handa <handa@etl.go.jp>
5867 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
5870 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
5872 * coding.c (decode_coding_emacs_mule): Fix the case of
5873 CODING_EOL_LF, which used uninitialized value of c.
5875 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
5877 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
5879 2000-11-22 Gerd Moellmann <gerd@gnu.org>
5881 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
5884 * frame.h (struct frame): Replace desired_tool_bar_items,
5885 current_tool_bar_items, n_desired_tool_bar_items,
5886 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
5888 * frame.c (make_frame): Change initialization of tool bar
5891 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
5892 Change references to members deleted from struct frame to use the
5895 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
5896 references to members deleted from struct frame to use the new ones.
5898 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
5900 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
5902 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
5903 (note_tool_bar_highlight): Change references to members deleted
5904 from struct frame to use the new ones.
5906 2000-11-23 Miles Bader <miles@gnu.org>
5908 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
5909 the face's inverse-video attribute, rather than overriding it.
5911 2000-11-22 Gerd Moellmann <gerd@gnu.org>
5913 * xfns.c (x_set_tool_bar_lines): Clear internal border when
5914 making tool bar smaller.
5916 2000-11-22 Dave Love <fx@gnu.org>
5918 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
5920 2000-11-22 Miles Bader <miles@gnu.org>
5922 * keyboard.c (Vminibuffer_message_timeout): New variable.
5923 (command_loop_1): Use it to determine message timeout.
5924 (syms_of_keyboard): Initialize it.
5926 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
5928 2000-11-22 Kenichi Handa <handa@etl.go.jp>
5930 * sysdep.c: Move the code for declaring h_errno after #include
5933 2000-11-21 Gerd Moellmann <gerd@gnu.org>
5935 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
5936 the menu bar when the tooltip is unmapped.
5938 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
5939 sole visible buffer when we're currently in the mini-buffer, and
5942 2000-11-21 Jason Rumney <jasonr@gnu.org>
5944 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
5945 put on the clipboard.
5946 (Fw32_get_clipboard_data): Compare data on clipboard with saved
5947 copy of what Emacs last put there. If they are the same, do not
5948 use the clipboard copy to avoid losing data due to coding conversions.
5950 2000-11-22 Miles Bader <miles@gnu.org>
5952 * minibuf.c (Vminibuffer_prompt_properties): New variable.
5953 (syms_of_minibuf): Initialize it.
5954 (read_minibuf): Add properties from Vminibuffer_prompt_properties
5955 to prompt, don't make read-only.
5957 2000-11-21 Gerd Moellmann <gerd@gnu.org>
5959 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
5960 Add BEFORE/AFTER_POTENTIAL_GC.
5962 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
5964 * buffer.c (mmap_free_1): Avoid a compiler warning.
5966 * term.c, cm.c: Don't try to include termcap.h; see comment there.
5968 2000-11-21 Kenichi Handa <handa@etl.go.jp>
5970 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
5973 2000-11-20 Gerd Moellmann <gerd@gnu.org>
5975 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
5978 * s/gnu-linux.h: Don't use `#cpu'.
5980 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
5981 not defined in mman.h.
5983 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
5984 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
5985 and store an index in the XClientMessageEvent. Storing a
5986 Lisp_Object or pointer can fail on a 64 bit system, since X only
5988 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
5990 2000-11-20 Dave Love <fx@gnu.org>
5992 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
5994 2000-11-20 Gerd Moellmann <gerd@gnu.org>
5996 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
5998 2000-11-20 Kenichi Handa <handa@etl.go.jp>
6000 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
6003 * alloc.c (make_string): Fix previous change. Be sure to make
6004 unibyte string correctly.
6006 2000-11-19 Gerd Moellmann <gerd@gnu.org>
6008 * window.c (Fwindow_list): Change parameter list to be XEmacs
6010 (window_list_1): New function.
6011 (window_loop): Use it instead of Fwindow_list.
6013 * sysdep.c (emacs_ospeed): New variable.
6014 (toplevel): Don't declare ospeed extern.
6015 (init_baud_rate): Use emacs_ospeed instead of ospeed.
6017 * termcap.c (ospeed): Remove.
6018 (tputs) [!emacs]: Remove unused code.
6019 (tgetent): Avoid a compiler warning.
6021 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
6022 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
6023 SCROLL_BAR_X_WIDGET with additional argument DPY.
6025 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
6027 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
6028 Take the X display as additional argument.
6029 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
6030 `Widget' is a pointer type that's not easily stored in Lisp_Object
6031 form in a portable way.
6033 * dispnew.c (update_text_area): Fix last change.
6035 2000-11-18 Gerd Moellmann <gerd@gnu.org>
6037 * xdisp.c: Use BINDING_STACK_SIZE throughout.
6039 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
6040 clear current matrices.
6042 * buffer.c (mmap_enlarge): Don't print a message on stderr
6043 if mapping new memory at the end of the existing region fails.
6045 * dispnew.c (update_text_area): Don't skip over equal glyphs
6046 when the last current glyph overlaps the glyph to its right.
6048 2000-11-18 Miles Bader <miles@gnu.org>
6050 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
6051 lines that *end* with "..." too (that's the most common case!).
6053 2000-11-18 Gerd Moellmann <gerd@gnu.org>
6055 * xdisp.c (resize_mini_window): Temporarily change to the
6056 mini-window's buffer if necessary.
6058 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
6059 the tooltip obscures less text under it.
6061 2000-11-17 Gerd Moellmann <gerd@gnu.org>
6063 * puresize.h (BASE_PURESIZE): Increase to 700000.
6065 2000-11-18 Jason Rumney <jasonr@gnu.org>
6067 * w32term.c (w32_draw_bitmap): Use face to set colors.
6069 2000-11-17 Dave Love <fx@gnu.org>
6071 * lread.c (Fload): Fix #ifdef for pcc.
6073 2000-11-17 Gerd Moellmann <gerd@gnu.org>
6075 * xdisp.c (pos_visible_p): Compute the default character height
6078 2000-11-16 Gerd Moellmann <gerd@gnu.org>
6080 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
6081 knowing the line's height; use the default font's height in that case.
6083 * xfaces.c (weight_table): Add `demi' with the same meaning as
6086 2000-11-16 Kenichi Handa <handa@etl.go.jp>
6088 * dispnew.c (null_row): New global static variable.
6089 (clear_glyph_row): Delete local static variable null_row.
6091 2000-11-15 Jason Rumney <jasonr@gnu.org>
6093 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
6094 (w32_alloc_lighter_color): Use new brightness calculations from
6095 xterm.c. Scale delta to be in the range expected by W32.
6096 (w32_draw_relief_rect): Use frame relief colors.
6098 2000-11-15 Gerd Moellmann <gerd@gnu.org>
6100 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
6101 (Qinhibit_default_face_x_resources): New variable.
6102 (syms_of_frame): Initialize it.
6103 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
6105 * xdisp.c (pos_visible_p): Improve function comment.
6107 * lisp.h (BINDING_STACK_SIZE): New macro.
6109 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
6110 reading the directory if readdir returns null and errno is EAGAIN
6113 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
6115 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
6116 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
6117 Set amount_to_scroll to max of dx and scroll_step so that
6118 scroll-conservatively doesn't defeat scroll-step>1.
6119 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
6120 scroll-conservatively for line-at-a-time scrolling.
6122 2000-11-14 Gerd Moellmann <gerd@gnu.org>
6124 * window.c (Fpos_visible_in_window_p): Call pos_visible with
6127 * xdisp.c (current_mode_line_height, current_header_line_height):
6129 (init_xdisp): Initialize them.
6130 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
6131 and use exact mode line heights if it is set.
6133 * lisp.h (pos_visible_p): Change prototype.
6135 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
6136 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
6137 and current_header_line_height first.
6138 (current_mode_line_height, current_header_line_height):
6141 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
6143 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
6144 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
6145 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
6147 2000-11-14 Miles Bader <miles@gnu.org>
6149 * xterm.c (x_alloc_lighter_color): Include an additive component
6150 too for dark colors, because FACTOR isn't enough.
6151 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
6154 2000-11-13 Gerd Moellmann <gerd@gnu.org>
6156 * keyboard.c (show_help_echo): Call message3_nolog with number of
6157 bytes in the help string as 2nd parameter, instead of the number
6160 2000-11-13 Miles Bader <miles@gnu.org>
6162 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
6163 (Fload): Use new openp return protocol.
6164 Don't try to use Vload_source_file_function to load .elc files.
6165 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
6166 openp return protocol.
6167 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
6169 2000-11-11 Kenichi Handa <handa@etl.go.jp>
6171 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
6173 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
6174 Defined these macros.
6175 (NLIST_STRUCT): Avoid re-defining it.
6177 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
6178 -I/usr/contrib/X11R6/include.
6179 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
6181 2000-11-10 Jason Rumney <jasonr@gnu.org>
6183 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
6185 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
6186 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
6188 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
6189 (Qw32_charset_vietnamese): New symbol.
6190 (xlfd_charset_of_font): New function.
6191 (w32_load_system_font): Use it.
6192 (x_to_w32_charset): Use Fassoc to find charset info. Special case
6193 when Vw32_charset_info_alist is nil to ensure default face always
6194 has font. Use Fcar and Fcdr for safety.
6195 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
6196 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
6197 pseudo-codepages for special cases.
6198 (w32_to_x_font): New parameter to allow charset portion to be
6199 specified where there is many to one mapping. Callers changed.
6200 (w32_list_fonts): Avoid listing fonts that won't display.
6202 2000-11-10 Gerd Moellmann <gerd@gnu.org>
6204 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
6205 (font_list_1): Renamed from font_list.
6206 (font_list): New function, trying alternative registries from
6207 Vface_alternative_font_registry_alist.
6208 (Finternal_set_alternative_font_registry_alist): New function.
6209 (syms_of_xfaces): Initialize and Staticpro
6210 Vface_alternative_font_registry_alist.
6211 Defsubr Finternal_set_alternative_font_registry_alist.
6213 2000-11-09 Ken Raeburn <raeburn@gnu.org>
6215 * lisp.h (Flooking_at): Declare.
6217 2000-11-09 Gerd Moellmann <gerd@gnu.org>
6219 * dired.c (directory_files_internal): Fix a braino.
6221 * dired.c (directory_files_internal): Add missing GCPRO's.
6224 2000-11-08 Gerd Moellmann <gerd@gnu.org>
6226 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
6227 (resize_mini_window): Return quickly if Vresize_mini_window is
6228 nil. Don't return if Vmax_mini_window_height is nil.
6230 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
6231 (syms_of_xdisp): Initialize them.
6232 (resize_mini_window): Act according to the setting of
6233 Vresize_mini_window.
6234 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
6236 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
6237 scroll bar widget after configuring it, so that it will appear at
6238 the right position from the start.
6239 (XTredeem_scroll_bar): Cleaned up.
6241 2000-11-08 Kenichi Handa <handa@etl.go.jp>
6243 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
6244 font is taller than the frame line, we don't have to bias the
6247 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
6249 2000-11-07 Dave Love <fx@gnu.org>
6251 * config.in (HAVE_MKSTEMP): Add.
6253 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
6255 2000-11-07 Gerd Moellmann <gerd@gnu.org>
6257 * window.c (Fset_window_configuration): Don't try to preserve
6258 point in the current buffer, if that buffer is displayed in more
6261 * xfaces.c (lookup_named_face): If default face isn't realized,
6262 try to realize it. Return -1 if not successful.
6263 (Fx_list_fonts): Handle case that face cannot be determined.
6264 (Fface_font): Likewise.
6266 2000-11-06 Gerd Moellmann <gerd@gnu.org>
6268 * window.c (displayed_window_lines): Detect partially
6269 visible lines at the bottom correctly.
6271 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
6273 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
6274 when ensuring we don't do visit in indirect buffer.
6276 2000-11-06 Kenichi Handa <handa@etl.go.jp>
6278 * composite.h (compose_chars_in_text): Add prototype.
6280 * composite.c (Vcomposition_function_table): New variable.
6281 (Qcomposition_function_table): New variable.
6282 (run_composition_function): Call
6283 Vcompose_chars_after_function with three arguments.
6284 (compose_chars_in_text): New function.
6285 (syms_of_composite): Modified the doc-string of
6286 Vcompose_chars_after_function. Declare composition-function-table
6287 as a lisp variable, and initialize it.
6289 * xfns.c (x_encode_text): Suppress producing escape sequences for
6292 * xselect.c: Include composite.h.
6293 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
6295 2000-11-05 Andrew Innes <andrewi@gnu.org>
6297 * w32term.c (x_produce_glyphs): Fix typo in enum name.
6299 * sysdep.c (read_input_waiting): Remove extraneous argument to
6302 * w32fns.c (Fx_server_version): Include w32_build_number in the
6305 * w32heap.c (w32_build_number): New variable.
6306 (cache_system_info): Set it.
6308 * w32heap.h (w32_build_number): Add extern.
6310 * emacs.c (syms_of_emacs): Update docstring for
6311 system-configuration, to reflect the actual usage on MS-Windows.
6313 2000-10-31 Gerd Moellmann <gerd@gnu.org>
6315 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
6316 process idle timers while waiting for another event.
6318 * dispnew.c (update_frame_line): Handle case where spaces in
6319 the default face are colored.
6321 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
6322 window height hasn't changed.
6324 2000-10-31 Jason Rumney <jasonr@gnu.org>
6326 * w32term.c (x_produce_glyphs): Handle composite characters.
6327 (x_draw_glyph_string_foreground)
6328 (x_draw_composite_glyph_string_foreground): Restore old font.
6330 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
6332 * minibuf.c (read_minibuf): Reset the undo history just before
6333 starting the recursive-edit.
6335 2000-10-30 Gerd Moellmann <gerd@gnu.org>
6337 * xfaces.c (menu_face_change_count): New variable.
6338 (Finternal_set_lisp_face_attribute): Increment it for changes
6340 (realize_basic_faces): Reflect changes in the `menu' faces
6343 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
6344 dy obtained from the iterator's y-position after moving from
6345 scroll_margin_pos to PT; see comment there.
6347 * xdisp.c (safe_eval_handler): Call add_to_log.
6349 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
6350 is not a symbol or string.
6352 * xdisp.c (echo_area_display): Don't perform a display update from
6353 inside redisplay. The update will happen anyway at the end of
6354 redisplay, and it can confuse redisplay (GC messages while
6355 redisplaying, for instance.)
6357 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
6359 * xrdb.c (x_load_resources): Use the class name in the defaults.
6361 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
6362 (regex_compile): Catch bogus \(\1\).
6364 2000-10-30 Gerd Moellmann <gerd@gnu.org>
6366 * xterm.c (x_alloc_nearest_color): Fix last change to compare
6369 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
6370 we have a color cache, check that the cached color equals the
6371 allocated color. If not, clear the color cache.
6373 * window.c (displayed_window_lines): Change buffers if necessary.
6374 Fix computation of displayed lines.
6376 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
6377 update_menu_bindings to DEFVAR_BOOL.
6379 2000-10-30 Kenichi Handa <handa@etl.go.jp>
6381 * search.c (Fset_match_data): Be sure to make search_regs always sane.
6383 * puresize.h (BASE_PURESIZE): Increase to 680000.
6385 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
6387 2000-10-29 Jason Rumney <jasonr@gnu.org>
6389 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
6391 * w32term.c (w32_bdf_per_char_metric): Negate descent.
6392 (w32_cache_char_metrics): Handle possibility that 'x' does not
6393 exist in a BDF font.
6394 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
6396 * w32bdf.h (bdffont): Add nchars.
6398 * w32bdf.c (set_bdf_font_info): Set it.
6399 (w32_BDF_TextOut): Swap byte order of double byte characters.
6400 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
6402 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
6404 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
6405 don't override the colors in frame's param_alist, unless they are
6408 * term.c (reassert_line_highlight): If inverse_video is non-zero,
6409 reverse the effect of the highlight flag.
6411 2000-10-27 Ken Raeburn <raeburn@gnu.org>
6413 * window.h (Fwindow_live_p): Declare.
6415 * undo.c (record_delete): Check that last_undo_buffer is really a
6416 buffer before applying XBUFFER to it.
6418 * keymap.c (where_is_internal): Pass lisp object, not integer, to
6421 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
6423 * lisp.h (KEYMAPP): New macro.
6424 (get_keymap): Remove.
6425 (get_keymap_1): Rename get_keymap.
6427 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
6429 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
6431 * xmenu.c (single_submenu): Use KEYMAPP.
6432 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
6433 Use KEYMAPP rather than Fkeymapp.
6435 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
6437 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
6438 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
6439 Use KEYMAPP rather than Fkeymapp.
6440 (single_submenu): Use KEYMAPP.
6441 (w32_menu_show, w32_dialog_show): Use TRUE.
6443 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
6445 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
6446 (Fkeymapp): Use KEYMAPP.
6447 (get_keymap): Rename from get_keymap_1. Remove old def.
6448 Return t when autoload=0 and error=0 and the keymap needs autoloading.
6449 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
6450 (Fminor_mode_key_binding): Don't raise an error if the binding
6452 (Fuse_global_map, Fuse_local_map): Allow autoloading.
6453 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
6455 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
6456 Allow Vspecial_event_map to be autoloaded.
6457 (menu_bar_items): Fetch the keymap rather than using keymapp.
6458 (menu_bar_one_keymap): No need to follow func-indirect any more.
6459 (parse_menu_item): get_keymap_1 -> get_keymap.
6460 (tool_bar_items): Fetch the keymap rather than using keymapp.
6461 (read_key_sequence): Use KEYMAPP.
6463 * intervals.c (get_local_map): Use get_keymap rather than following
6464 function-indirections explicitly.
6466 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
6468 2000-10-27 Jason Rumney <jasonr@gnu.org>
6470 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
6471 point, as Windows has oversized fonts.
6473 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
6475 2000-10-27 Gerd Moellmann <gerd@gnu.org>
6477 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
6478 (freehook, reallochook): Handle null pointer arguments.
6479 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
6481 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
6483 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
6484 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
6485 Giving in to popular pressure to shut up the compiler with casts.
6487 2000-10-27 Gerd Moellmann <gerd@gnu.org>
6489 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
6490 signed value, and use a default value computed from the font's
6493 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
6495 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
6496 that specify a negative underline position can still use underlines.
6498 * window.c (Fpos_visible_in_window_p): Make POS default to
6499 WINDOW's point, not the current buffer's point.
6501 2000-10-26 Dave Love <fx@gnu.org>
6503 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
6504 when it's necessary.
6506 2000-10-26 Gerd Moellmann <gerd@gnu.org>
6508 * window.c (size_window): Compute size difference from sum of old
6509 child window sizes instead of from parent's size.
6511 * xdisp.c (pos_visible_p): Change current buffer if necessary.
6512 Handle obscured lines at the top of the window.
6514 * frame.c (Fdelete_frame): Doc fix. Move running the hook
6515 down after the last error condition check.
6517 * frame.c (Fdelete_frame): Run delete-frame-hook.
6519 2000-10-26 Kenichi Handa <handa@etl.go.jp>
6521 * coding.c (decode_coding): Fix previous change (check also
6522 CODING_MODE_LAST_BLOCK).
6524 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6526 * regex.c: More `unsigned char' -> `re_char' changes.
6527 Also change several `int' into `re_wchar_t'.
6528 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
6529 (PUSH_FAILURE_POINTER): Don't cast any more.
6530 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
6531 We want GCC to complain, since this piece of code makes
6532 re_match non-reentrant, which *should* be fixed.
6533 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
6534 (EXTEND_BUFFER): Use RETALLOC.
6535 (SET_LIST_BIT): Don't cast.
6536 (re_wchar_t): New type.
6537 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
6538 that those two functions will always properly return.
6539 (IMMEDIATE_QUIT_CHECK): Cast to void.
6540 (analyse_first): Use recursion rather than an explicit stack.
6541 (re_compile_fastmap): Can't fail anymore.
6542 (re_search_2): Don't check re_compile_fastmap for failure.
6543 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
6544 Now also sets the new value (passed in a new argument).
6545 (re_match_2_internal): Use it.
6546 Also, use a new var `reg' of type size_t when looping through regs
6547 rather than reuse the inappropriate `mcnt'.
6549 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
6550 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
6551 (where_is_internal): Renamed from Fwhere_is_internal.
6552 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
6553 (Fwhere_is_internal): New function wrapping where_is_internal.
6554 (where_is_internal_1): Handle the case where we're filling the cache.
6555 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
6557 2000-10-25 Miles Bader <miles@gnu.org>
6559 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
6561 2000-10-25 Gerd Moellmann <gerd@gnu.org>
6563 * window.c (pos_fully_visible_p): Removed.
6564 (Fpos_visible_in_window_p): Use pos_visible_p to determine
6565 if position is visible and/or fully visible.
6567 * lisp.h (pos_visible_p): Add prototype.
6569 * xdisp.c (pos_visible_p): New function.
6571 2000-10-25 Kenichi Handa <handa@etl.go.jp>
6573 * process.c (send_process): If OBJECT is t, it means that the data
6574 is from C string, but we should encode it. Before calling
6575 setup_raw_text_coding_system, be sure to flush out data by the
6576 previous coding system.
6578 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
6580 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
6581 assignment of startpos to prev when startpos == pos.
6583 * editfns.c (find_field): Set the field stickiness correctly from
6584 overlay fields. Use renamed `text_property_stickiness'.
6585 (text_property_stickiness): Renamed from `char_property_stickiness'.
6586 Only check text properties, not overlays.
6587 * textprop.c (get_char_property_and_overlay): New function.
6588 (Fget_char_property): Use it.
6589 * intervals.h (get_char_property_and_overlay): Add declaration.
6591 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6593 * keymap.c: Use AREF, ASET and ASIZE macros.
6594 (Fmake_sparse_keymap): Docstring fix.
6596 (shadow_lookup): Move up.
6597 Handle the case where lookup-key returns an integer.
6598 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
6599 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
6600 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
6601 Simplify/rewrite the keymap-finding code.
6602 Add check for command shadowing, using shadow_lookup.
6604 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
6606 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
6607 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
6610 2000-10-24 Andrew Innes <andrewi@gnu.org>
6612 * dired.c (directory_files_internal_unwind): New function.
6613 (directory_files_internal): Use it to ensure closedir is called
6614 even if expand-file-name or file-attributes throw, eg. because of
6615 a user interrupt. Also enable immediate_quit while calling
6616 re_search, so that matching can be interrupted as well.
6618 2000-10-24 Andrew Innes <andrewi@gnu.org>
6620 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
6622 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
6623 so that re_search functions only quit when callers expect them to.
6625 2000-10-24 Kenichi Handa <handa@etl.go.jp>
6627 * regex.c (regex_compile): Change the way of handling a range from
6628 a char less than 256 to a char not less than 256.
6630 2000-10-24 Gerd Moellmann <gerd@gnu.org>
6632 * window.c (size_window): Prevent setting window's width or
6633 height to a negative value (esp. with XSETFASTINT).
6635 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
6636 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
6637 (protect_malloc_state) [GC_MALLOC_CHECK &&
6638 GC_PROTECT_MALLOC_STATE]: New function.
6639 (PROTECT_MALLOC_STATE): New macro.
6640 (__malloc_initialize, morecore, _malloc_internal)
6641 (_free_internal) _realloc_internal): Use it to make _heapinfo
6642 read-only outside of gmalloc.
6644 * keymap.c: Update copyright.
6646 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
6649 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
6651 * filelock.c (unlock_all_files): Use unlock_file to expand each
6652 buffer's file_truename before trying remove its lock file.
6654 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
6656 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
6657 or CRLF, decode EOLs.
6659 2000-10-24 Kenichi Handa <handa@etl.go.jp>
6661 * window.c (Fdisplay_buffer): Fix doc.
6663 2000-10-23 Jason Rumney <jasonr@gnu.org>
6665 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
6666 ASCII font of default fontset on Windows.
6668 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
6669 xterm.c comment below).
6671 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
6673 2000-10-23 Gerd Moellmann <gerd@gnu.org>
6675 * xterm.c (x_connection_closed): Reset handling_signal.
6677 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
6679 2000-10-23 Miles Bader <miles@gnu.org>
6681 * window.c (window_scroll_pixel_based, window_scroll_line_based):
6682 Pass nil for FULLY argument to Fpos_visible_in_window_p to
6683 maintain old behavior.
6684 * minibuf.c (Fminibuffer_complete): Likewise.
6686 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
6688 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
6689 that when a font can't be exactly centered, it errs up rather than
6692 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
6694 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
6696 2000-10-23 Andrew Choi <akochoi@i-cable.com>
6698 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
6700 * dispnew.c [macintosh]: Include macterm.h.
6701 (init_display) [macintosh]: Initialization for window system.
6703 * emacs.c (main) [macintosh]: Call syms_of_textprop,
6704 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
6705 syms_of_search, x_term_init, and init_keyboard before calling
6706 init_window_once. Also, call syms_of_xmenu.
6708 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
6709 default fontset to Monaco.
6711 * frame.c [macintosh]: Include macterm.h. Remove declarations of
6712 NewMacWindow and DisposeMacWindow.
6713 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
6714 instead of calling NewMacWindow and setting fields of
6715 f->output_data.mac directly. Call init_frame_faces.
6716 (Fdelete_frame) [macintosh]: Remove unused code.
6717 (Fmodify_frame_parameters) [macintosh]: Call
6718 x_set_frame_parameters instead of mac_set_frame_parameters.
6720 * frame.h [macintosh]: Define menu_bar_lines field in struct
6721 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
6723 * keyboard.c [macintosh]: Include macterm.h.
6724 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
6725 and menu_bar_activate_event type events as for X and NT.
6726 (make_lispy_event) [macintosh]: Construct lisp events of type
6727 MENU_BAR_EVENT as for X and NT.
6729 * sysdep.c [macintosh]: Remove declaration for sys_signal.
6730 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
6731 (sys_subshell) [macintosh]: Remove definition entirely.
6732 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
6733 Vwindow_system_version here. Remove initialization of
6734 Vx_bitmap_file_path.
6735 (read_input_waiting): Correct the number of parameters passed to
6737 Move all Macintosh functions to mac/mac.c.
6739 * term.c [macintosh]: Include macterm.h.
6741 * window.c [macintosh]: Include macterm.h.
6743 * xdisp.c [macintosh]: Include macterm.h. Declare
6744 set_frame_menubar and pending_menu_activation.
6745 (echo_area_display) [macintosh]: Do not return if terminal frame
6746 is the selected frame.
6747 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
6748 Allow only the selected frame to set menu bar.
6749 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
6750 calling FRAME_EXTERNAL_MENU_BAR (f).
6751 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
6753 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
6754 and check_x. Declare XCreateGC. Define x_create_gc and
6755 x_free_gc. Initialize font_sort_order.
6756 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
6757 but call x_list_fonts instead of w32_list_fonts.
6758 (Finternal_face_x_get_resource) [macintosh]: Do not call
6759 display_x_get_resource.
6760 (prepare_face_for_display) [macintosh]: Set xgcv.font.
6761 (realize_x_face) [macintosh]: Load the font if it is specified in
6763 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
6765 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
6767 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
6768 is nil: since we go to the end of submap anyway, we'd end up
6770 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
6771 doesn't obey autoload.
6773 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6775 * msdos.c (dos_set_window_size): Update screen dimension variables.
6777 2000-10-21 Jason Rumney <jasonr@gnu.org>
6779 * w32term.c (w32_cache_char_metrics): Double check that font is
6780 really fixed pitch before trusting tmPitchAndFamily.
6782 2000-10-21 Andrew Innes <andrewi@gnu.org>
6784 * w32gui.h (w32_char_font_type): Move enum from w32term.c
6786 * w32term.h: Extern decl for w32_cache_char_metrics.
6788 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
6790 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
6791 (w32_unload_font): Free per_char array if present.
6793 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
6794 cached information in emulated XFontStruct to handle common cases
6795 quickly. Do not allocate XCharStruct for return.
6796 (w32_native_per_char_metric): New function.
6797 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
6799 (x_produce_glyphs): Don't get an HDC. Change calls to
6800 w32_per_char_metric to match arg change above. Remove calls to
6802 (w32_get_glyph_overhangs): Ditto.
6803 (w32_cache_char_metrics): New function.
6805 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
6806 ($(BLD)/casefiddle.$(O)): Remove compile command.
6807 ($(BLD)/gmalloc.$(O)): Remove compile command.
6808 ($(BLD)/dispnew.obj):
6809 ($(BLD)/keyboard.obj):
6810 ($(BLD)/w32inevt.obj):
6811 ($(BLD)/w32bdf.obj):
6813 ($(BLD)/buffer.obj):
6814 ($(BLD)/editfns.obj):
6816 ($(BLD)/fileio.obj):
6818 ($(BLD)/indent.obj):
6819 ($(BLD)/insdel.obj):
6820 ($(BLD)/intervals.obj):
6821 ($(BLD)/minibuf.obj):
6823 ($(BLD)/scroll.obj):
6824 ($(BLD)/sysdep.obj):
6825 ($(BLD)/textprop.obj):
6826 ($(BLD)/widget.obj):
6827 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
6828 ($(BLD)/term.obj): Add dependency on dispextern.h.
6830 * makefile.nt ($(BLD)\dispnew.obj):
6831 ($(BLD)\keyboard.obj):
6832 ($(BLD)\w32inevt.obj):
6833 ($(BLD)\w32bdf.obj):
6835 ($(BLD)\buffer.obj):
6836 ($(BLD)\editfns.obj):
6838 ($(BLD)\fileio.obj):
6840 ($(BLD)\indent.obj):
6841 ($(BLD)\insdel.obj):
6842 ($(BLD)\intervals.obj):
6843 ($(BLD)\minibuf.obj):
6845 ($(BLD)\scroll.obj):
6846 ($(BLD)\sysdep.obj):
6847 ($(BLD)\textprop.obj):
6848 ($(BLD)\widget.obj):
6849 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
6850 ($(BLD)\term.obj): Add dependency on dispextern.h
6852 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6854 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
6855 with an additional argument of Qt.
6857 2000-10-21 Miles Bader <miles@gnu.org>
6859 * window.c (pos_fully_visible_in_window_p): New function.
6860 (Fpos_visible_in_window_p): Add FULLY argument.
6861 Use pos_fully_visible_in_window_p.
6862 (window_scroll_pixel_based, window_scroll_line_based): Update
6863 calls to Fpos_visible_in_window_p.
6864 * lisp.h (Fpos_visible_in_window_p): Update prototype
6866 2000-10-20 Gerd Moellmann <gerd@gnu.org>
6868 * alloc.c (toplevel): Conditionalize compilation of mem_*
6869 functions differently.
6871 2000-10-20 Jason Rumney <jasonr@gnu.org>
6873 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
6874 mem_init where it used to be. mem_z etc not defined otherwise.
6876 2000-10-20 Gerd Moellmann <gerd@gnu.org>
6878 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
6880 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
6881 structure definition and related variabled to the top of the file.
6882 Include this code when GC_MALLOC_CHECK is defined.
6883 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
6884 register/unregister allocated region.
6885 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
6886 which isn't allocated.
6887 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
6888 something which is already in use.
6889 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
6890 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
6891 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
6892 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
6894 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
6895 _malloc_internal instead of malloc.
6896 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
6899 2000-10-20 Andrew Innes <andrewi@gnu.org>
6901 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
6903 (my_strftime) <macro>: Don't use macro arg list when redefining as
6905 (my_strftime) <function>: Supply 0 as ut argument.
6907 2000-10-19 Jason Rumney <jasonr@altavista.net>
6909 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
6910 including dispextern.h, as it stops faces from working.
6912 * w32fns.c (Fx_create_frame): Don't bother calling
6913 face-set-after-frame-default since the caller does it for us
6914 anyway. Clean up calls to x_get_arg to be consistent with X.
6916 * w32term.c (x_produce_glyphs): Handle
6917 unibyte_display_via_language_environment correctly.
6918 (w32_draw_box_rect): Fix the calculation of width and height.
6920 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
6921 as it has stopped working.
6922 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
6925 2000-10-19 Gerd Moellmann <gerd@gnu.org>
6927 * eval.c (skip_debugger): Prevent a compiler warning.
6928 (Fcondition_case): Likewise.
6929 (Fbacktrace_frame): Use a null interactive spec.
6931 2000-10-19 Kenichi Handa <handa@etl.go.jp>
6933 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
6935 2000-10-18 Gerd Moellmann <gerd@gnu.org>
6937 * strftime.c: Sync with glibc, file version 1.78.
6938 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
6939 should no longer be used according to ISO 8601.
6941 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
6942 no map for meta_prefix_char, don't try to use it as a keymap.
6943 Instead, if T_OK is non-zero, look up a default binding, if any,
6944 otherwise, if T_OK is zero, return nil.
6946 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
6947 (x_to_xcolors, png_load): Use x_query_color.
6949 * xterm.c (x_color_cells, x_query_colors, x_query_color):
6951 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
6953 (x_copy_color, x_alloc_lighter_color): Likewise.
6955 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
6956 (x_query_color, x_query_colors): Add prototype.
6958 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
6959 check_string_bytes only if not noninteractive, increase count to 50.
6961 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
6963 * insdel.c (adjust_markers_for_delete): Handle before-insertion
6966 2000-10-17 Gerd Moellmann <gerd@gnu.org>
6968 * alloc.c (pure_bytes_used): Renamed from pureptr.
6970 (pure_alloc): New function.
6971 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
6973 (Fpurecopy): Use PURE_POINTER_P.
6975 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
6976 PT has moved backward.
6978 * xdisp.c (cursor_row_p): Take continued lines into account.
6980 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
6982 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
6983 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
6984 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
6987 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
6988 of selective display off while searching for the next line start.
6990 2000-10-17 Kenichi Handa <handa@etl.go.jp>
6992 * Makefile.in (term.o): Depend on dispextern.h.
6994 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
6996 * keymap.c (keymap_memberp): Ensure that nil is not a member.
6998 2000-10-16 Gerd Moellmann <gerd@gnu.org>
7000 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
7001 the iterator at the beginning, so that they can be set later on,
7002 for instance in reseat_at_next_visible_line_start, without being
7005 * xfns.c (pbm_format): Add :foreground and :background keywords.
7006 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
7007 (xbm_load): Recognize foreground and background color specifications.
7009 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
7011 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
7013 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
7015 * msdos.c (IT_set_face): Compare highlighted face with the default
7016 face, and invert colors if these faces' colors are identical.
7017 (Fmsdos_remember_default_colors): Don't swap foreground and
7018 background colors in initial_colors[].
7019 (IT_set_frame_parameters): Don't swap frame's foreground and
7020 background pixels. If ALIST includes "(reverse . t)", swap
7021 foreground-color and background-color properties in frame's
7022 param_alist. If the original frame's param_alist doesn't specify
7023 the colors, store unspecified-fg and unspecified-bg, reversed if
7026 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
7027 the colors are unspecified and reversed, reverse fore- and back-
7028 ground in the returned value.
7029 (Fframe_parameter): Ditto.
7031 2000-10-16 Gerd Moellmann <gerd@gnu.org>
7033 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
7034 get_last_unchanged_at_beg_row.
7035 (find_first_unchanged_at_end_row): Renamed from
7036 get_first_unchanged_at_end_row.
7037 (find_first_unchanged_at_end_row): Convert assertions to
7038 unconditional tests which abort. When looking for a row in
7039 unchanged text, don't go further back than first_text_row.
7041 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
7042 Don't add in the last line's height when deciding if the new
7043 position is below the scroll margin.
7045 2000-10-16 Miles Bader <miles@gnu.org>
7047 * editfns.c (Fconstrain_to_field): Check carefully for field
7048 boundaries if either OLD_POS or NEW_POS has a non-nil field
7049 property, even if they're the same.
7051 2000-10-16 Kenichi Handa <handa@etl.go.jp>
7053 * xterm.c (x_draw_box_rect): Fix the calculation of width and
7054 height for XFillRectangle.
7056 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
7058 * syntax.c (Fstring_to_syntax): New function extracted from
7059 Fmodify_syntax_entry.
7060 (Fmodify_syntax_entry): Use it and document the ! and | fences.
7061 (skip_chars, Fforward_comment): Remove unused variables.
7062 (syms_of_syntax): Add defsubr for string-to-syntax.
7063 (describe_syntax): Add code for comment and string fences.
7065 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
7067 * keymap.c (access_keymap): Add AUTOLOAD parameter.
7068 Do the meta->esc mapping. Call get_keyelt before returning.
7069 Start scanning from the second element (the first is always `keymap')
7070 to make it easier to detect when we reach a parent map.
7071 Handle the case of inheriting from a symbol whose function is a map.
7072 (Fkeymap_parent): Also handle the `inherit from symbol' case.
7073 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
7074 (get_keyelt, Flookup_key): Update call to access_keymap.
7075 Remove the meta->esc mappings.
7076 (define_as_prefix): Delete old disabled code.
7077 (menu_item_p): New function.
7078 (where_is_internal_1): Skip over the few remaining menu items.
7079 * lisp.h (access_keymap): Update prototype.
7080 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
7081 Update call to access_keymap.
7082 (follow_key, read_key_sequence): Update calls to access_keymap.
7083 Remove the meta->esc mappings.
7085 2000-10-13 Gerd Moellmann <gerd@gnu.org>
7087 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
7088 with additional argument.
7090 * xdisp.c (cursor_row_p): New function.
7091 (try_cursor_movement, display_line): Use it.
7093 * xdisp.c (append_space): Also save/restore iterator's current
7094 character and its length.
7096 * xdisp.c (init_from_display_pos): Add an assertion.
7097 (handle_stop): Don't set iterator's add_overlay_start.
7098 (handle_invisible_prop): Likewise.
7099 (load_overlay_strings): If text under an overlay is invisible,
7100 take both before- and after-strings into account when the iterator
7101 is positioned either at the start or at the end of the overlay.
7102 (forward_to_next_line_start): Rewritten.
7103 (reseat_at_next_visible_line_start): Rewritten.
7104 (set_iterator_to_next): Add parameter RESEAT_P.
7106 * dispextern.h (struct it): Remove member add_overlay_start.
7107 (set_iterator_to_next): Change prototype.
7109 2000-10-13 Kenichi Handa <handa@etl.go.jp>
7111 * coding.c (code_convert_region): Be sure to initialize
7112 coding->category_idx.
7113 (decode_coding_string): Set coding->src_multibyte and
7114 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
7115 (encode_coding_string): Set coding->src_multibyte and
7116 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
7118 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
7120 * xfns.c (Fx_create_frame): Don't bother calling
7121 face-set-after-frame-default since the caller does it for us anyway.
7123 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
7125 * window.c (coordinates_in_window): Fix detection of vertical line
7126 on character terminals.
7128 2000-10-12 Gerd Moellmann <gerd@gnu.org>
7130 * editfns.c (save_excursion_save): Additionally record the
7132 (save_excursion_restore): If buffer was visible in a window, and a
7133 different window was selected, and the old selected window is
7134 still live, restore point in that window.
7136 2000-10-12 Kenichi Handa <handa@etl.go.jp>
7138 * xterm.c (x_produce_glyphs): Handle
7139 unibyte_display_via_language_environment correctly.
7141 * regex.c (regex_compile): Change the way of handling a range from
7142 unibyte char to multibyte char.
7144 * syntax.c (skip_chars): Change the way of handling a range from
7145 unibyte char to multibyte char.
7147 * process.c (read_process_output): Cancel previous change.
7149 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
7151 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
7153 * charset.c (Ffind_charset_string): Doc fix.
7154 (Ffind_charset_region): Doc fix.
7156 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
7158 * process.c (read_process_output): Fix previous change. Adjust
7159 multibyteness of text to insert in a buffer by
7160 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
7162 2000-10-10 Andreas Schwab <schwab@suse.de>
7164 * alloc.c (mark_object): Remove all workarounds installed on
7167 2000-10-10 Kenichi Handa <handa@etl.go.jp>
7169 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
7170 (base64_encode_1): Make it work for a text of multibyte form.
7171 (Fbase64_decode_region): Allocate sufficient memory for multibyte
7172 case. Don't call str_to_multibyte because base64_decode_1
7173 produces correct multibyte form for eight-bit codes.
7174 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
7175 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
7176 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
7179 * charset.h (CHAR_STRING): Optimized for single byte characters.
7181 2000-10-09 Andreas Schwab <schwab@suse.de>
7183 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
7184 -1 after socket is closed, to fall through to error processing.
7186 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
7188 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
7189 variables. If ALIST includes foreground-color or
7190 background-color, change also the colors of the default face for
7193 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
7195 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
7196 them extern (they are defined on xfaces.c).
7197 (syms_of_msdos): Don't intern and don't staticpro
7198 Qbackground_color and Qforeground_color.
7200 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
7202 * frame.c (Fframe_parameter): For non-windowed frames, if
7203 f->param_alist says foreground or background color is unspecified,
7204 call tty_color_name to return the color name computed from the
7205 frame's current colors.
7207 2000-10-06 Dave Love <fx@gnu.org>
7209 * terminfo.c (ospeed): Don't declare.
7211 * sysdep.c: Don't include string.h.
7212 (h_errno): Declare conditional also on TRY_AGAIN.
7214 * charset.c (Ffind_charset_string): Doc fix.
7216 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
7217 (Fbase64_decode_region, Fbase64_decode_string): More explicit
7220 2000-10-05 Dave Love <fx@gnu.org>
7222 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
7223 position like menu-bar.
7225 2000-10-05 Gerd Moellmann <gerd@gnu.org>
7227 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
7229 * xdisp.c (handle_single_display_prop): Use safe_call1.
7230 (safe_call): Renamed from call_function.
7231 (safe_call1): New function.
7232 (handle_fontified_prop): Use safe_call1 instead of call1.
7233 (safe_eval): Renamed from eval_form.
7234 (safe_eval_handler): Renamed from eval_handler.
7235 (handle_single_display_prop, display_mode_element): Use safe_eval
7236 instead of eval_form.
7238 * xfaces.c (merge_face_heights): Use safe_call instead of
7241 * keyboard.c (show_help_echo): Use safe_call instead of
7242 call_function; use safe_eval instead of eval_form.
7244 * lisp.h (safe_call): Renamed from call_function.
7245 (safe_eval): Renamed from eval_form.
7246 (safe_call1): Add prototype.
7248 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
7250 * xfns.c (image_ascent): Rearrange ascent calculation for the
7253 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
7255 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
7256 (where_is_internal_1): Don't bother ignoring menu-items any more.
7258 2000-10-04 Gerd Moellmann <gerd@gnu.org>
7260 * keyboard.c (update_menu_bindings): New variable.
7261 (parse_menu_item): Use AREF. If update_menu_bindings
7262 is 0, don't update menu bindings.
7263 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
7265 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
7267 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
7270 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
7272 * syntax.c (forw_comment): Match nestedness of ender/starter.
7273 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
7274 (prev_char_comstart_first): Remove.
7275 (back_comment): Check two-char comment markers more carefully
7276 to better handle overlapping cases like *//* or /* */* */ ...
7277 Match nestedness of ender/starter.
7279 2000-10-02 Dave Love <fx@gnu.org>
7281 * config.in (HAVE_GAI_STRERROR): Add undef.
7283 * process.c (Fopen_network_stream): Use it.
7285 * m/alpha.h (NO_REMAP): Don't define.
7287 2000-10-02 Gerd Moellmann <gerd@gnu.org>
7289 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
7290 return with a string converted to an integer or vice versa when
7291 Vmocklisp_arguments is t.
7292 (Fsignal): Likewise. The function can return for `quit'.
7293 (struct gcpro): Declare member `var' to point to a volatile
7296 * eval.c (error): Prevent compiler warning.
7298 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
7300 * keymap.c (keymap_memberp): New function.
7301 (Fset_keymap_parent): Use it.
7302 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
7303 Use keymap_memberp to avoid creating cycles.
7304 (access_keymap): Use KEYMAPP.
7306 2000-09-30 Gerd Moellmann <gerd@gnu.org>
7308 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
7309 gai_strerror. Make sure xerrno is set if connect fails. Improve
7312 2000-09-29 Jason Rumney <jasonr@gnu.org>
7314 * w32term.c (w32_char_font_type, w32_encode_char)
7315 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
7316 (w32_bdf_per_char_metric): New function.
7317 (w32_per_char_metric): Use it.
7318 (x_draw_glyph_string_background): Always draw background for BDF
7321 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
7322 GDI object which is a scarce resource.
7324 * w32bdf.c (search_file_line): Fix skipping of whitespace.
7325 (get_quoted_string): Fix limit on memchr search.
7326 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
7327 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
7328 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
7329 (get_cached_font_char, cache_char_offset): Use macro
7330 BDF_CODEPOINT_RANGE_COVER_P.
7331 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
7332 (clear_cached_bitmap_slots): New function.
7333 (GET_HEX_VALUE): G-Z, g-z are not hex.
7334 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
7335 (get_bitmap_with_cache): Use new cache implementation.
7336 (create_offscreen_bitmap): New function.
7337 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
7339 * w32term.c (x_produce_glyphs): If the distance from the current
7340 position to the next tab stop is less than a canonical character
7341 width, use the tab stop after that.
7342 (x_draw_glyphs): Handle case START and END are out of bounds more
7344 (x_clear_mouse_face): Block/unblock input.
7345 (x_display_and_set_cursor): Don't show a hollow box cursor for
7346 buffers whose cursor_type is nil.
7348 2000-09-29 Gerd Moellmann <gerd@gnu.org>
7350 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
7352 * dispextern.h (updating_frame): Declare extern.
7354 2000-09-29 Andreas Schwab <schwab@suse.de>
7356 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
7358 2000-09-29 Gerd Moellmann <gerd@gnu.org>
7360 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
7361 use its function definition.
7362 (tool_bar_items): Likewise.
7364 * lisp.h (fatal): Declare NO_RETURN.
7366 2000-09-29 Kenichi Handa <handa@etl.go.jp>
7368 * keymap.c: Remove the line "#undef NULL".
7370 2000-09-28 Gerd Moellmann <gerd@gnu.org>
7372 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
7374 2000-09-28 Dave Love <fx@gnu.org>
7376 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
7378 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
7380 * .gdbinit (xreload): Note its need on GNU/Linux.
7382 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
7383 r_alloc, r_alloc_free.
7385 2000-09-28 Kenichi Handa <handa@etl.go.jp>
7387 * syntax.c (skip_chars): Handle negation correctly.
7389 2000-09-27 Gerd Moellmann <gerd@gnu.org>
7391 * xfaces.c (realize_default_face): Call set_lface_from_font_name
7392 with non-zero FORCE_P argument.
7394 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
7397 * xdisp.c (window_box_height): Add an assertion.
7399 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
7400 tool-bar than is available.
7401 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
7403 2000-09-27 Dave Love <fx@gnu.org>
7405 * s/irix6-5.h: Now works 64-bit. Tidied.
7407 2000-09-26 Gerd Moellmann <gerd@gnu.org>
7409 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
7410 instead of BITS_PER_INT.
7411 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
7412 EMACS_UINT, respectively.
7413 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
7415 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
7417 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
7419 * window.c (freeze_window_starts): Construct last argument for
7420 foreach_window differently.
7422 * xfns.c (x_decode_color): Don't return a Lisp_Object.
7424 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
7425 EMACS_UINT instead of `int' and `unsigned int'.
7426 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
7428 * frame.h (struct frame): Make the `nothing' member of union
7429 output_data an EMACS_INT.
7431 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
7432 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
7433 size in the sdata structure.
7434 (SDATA_NBYTES, SDATA_DATA): New macros.
7435 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
7436 differently for the different layout of the sdata structure.
7437 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
7439 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
7440 Check that size recorded in the string size and size recorded in
7441 the sdata structure agree.
7443 2000-09-25 Dave Love <fx@gnu.org>
7445 * buffer.c: Include stdio.h.
7447 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
7449 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
7451 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
7452 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
7453 (__malloc_extra_blocks): Declare as __malloc_size_t.
7455 2000-09-25 Gerd Moellmann <gerd@gnu.org>
7457 * alloc.c (mark_image): Use GC_NILP instead of NILP.
7459 * keyboard.c (show_help_echo): Set help_echo_showing_p.
7460 (read_char): If help-echo is showing, preserve the echo area
7463 * xdisp.c (help_echo_showing_p): New variable.
7464 (set_message): Reset it to 0.
7465 (init_xdisp): Initialize help_echo_showing_p.
7467 * dispextern.h (help_echo_showing_p): Declare extern.
7469 * config.in: Fix typo in __GNUC_MINOR__.
7471 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
7473 * s/freebsd.h (POSIX_SIGNALS): Define.
7475 * xterm.c (x_clear_mouse_face): Block/unblock input.
7477 2000-09-24 Dave Love <fx@gnu.org>
7479 * fns.c (base64_encode_1): Fix last change.
7481 2000-09-22 Gerd Moellmann <gerd@gnu.org>
7483 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
7485 * xdisp.c (try_window_reusing_current_matrix): More fixes
7486 for the case window has a header-line.
7488 2000-09-22 Dave Love <fx@gnu.org>
7490 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
7493 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
7495 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
7497 2000-09-21 Gerd Moellmann <gerd@gnu.org>
7499 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
7502 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
7505 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
7506 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
7507 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
7510 * marker.c (byte_char_debug_check): Return void.
7512 * xfns.c (Fx_create_frame): Set default frame parameter value
7513 for tool-bar-lines to 1.
7515 * dispnew.c (scrolling_window): Compare y-positions of rows
7516 equal at the start. Some simplification.
7518 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
7519 reused rows' y-position in the case window has a header-line, and
7520 new window start is greater than old window start.
7522 * process.c (process_sent_to): New variable.
7523 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
7524 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
7525 Declare more parameters volatile.
7527 * lread.c (Vrecursive_load_depth_limit): New variable.
7528 (Fload): Check recursive loads whose recursion depth exceeds
7529 Vrecursive_load_depth_limit.
7530 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
7532 2000-09-20 Gerd Moellmann <gerd@gnu.org>
7534 * fileio.c (Fread_file_name): Doc fix.
7536 * editfns.c (Fmessage_or_box): Doc fix.
7538 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
7540 * xfns.c (xbm_scan): Allow C-style comments.
7542 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
7543 symbols are specified, add color translations to the cache.
7544 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
7545 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
7547 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
7548 structures to xpm_init_color_cache.
7550 2000-09-19 Gerd Moellmann <gerd@gnu.org>
7552 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
7554 2000-09-19 Andrew Innes <andrewi@gnu.org>
7556 * makefile.nt (bootstrap-emacs): Don't change directory.
7558 2000-09-19 Kenichi Handa <handa@etl.go.jp>
7560 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
7562 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
7563 If output buffer is too small, signal an appropriated error.
7565 2000-09-18 Dave Love <fx@gnu.org>
7567 * keyboard.c (menu_bar_items, tool_bar_items)
7568 (current_active_maps): Remove redundant get_local_map call.
7570 2000-09-18 Gerd Moellmann <gerd@gnu.org>
7572 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
7573 cursor for buffers whose cursor_type is nil.
7575 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
7576 a feature to implement that is already implemented.
7577 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
7580 * xfns.c (x_clear_image_1): New function.
7581 (x_clear_image): Use it.
7582 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
7584 * dispnew.c (update_window): Move test for invisible lines
7585 at the top to update_window_line.
7586 (update_window_line): Handle invisible lines here.
7588 * xfns.c (clear_image_cache): Clear current matrices of all
7589 frames sharing an image cache. Block input while freeing
7590 images. Fix timestamp comparison.
7591 (x_clear_image): Also free the mask.
7593 * xfns.c (lookup_image): Block input while loading the image so
7594 that we won't get interrupted in a state where the image isn't yet
7596 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
7597 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
7598 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
7599 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
7601 2000-09-16 Gerd Moellmann <gerd@gnu.org>
7603 * dispnew.c (update_window): Make sure to make desired rows
7604 current even if they are completely invisible at the top
7607 2000-09-15 Gerd Moellmann <gerd@gnu.org>
7609 * xfns.c (lookup_image): Build mask before applying an algorithm.
7610 Recognize algorithm `disabled'.
7611 (cross_disabled_images): New variable.
7612 (COLOR_INTENSITY): New macro.
7613 (x_detect_edges): Use COLOR_INTENSITY.
7614 (x_disable_image): New function.
7615 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
7617 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
7618 disabled state, don't apply an image transformation algorithm if
7619 the user specified an image for the disabled state. Use
7620 `:algorithm disabled' for creating a disabled item's image if the
7621 user hasn't specified an image.
7623 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
7624 allocation functions with the XPM lib.
7625 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
7626 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
7627 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
7628 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
7629 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
7630 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
7631 functions, if possible, because these handle color allocation
7632 failure more gracefully.
7633 (Fimage_mask_p): New function.
7635 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
7636 (Qedge_detection, Qheuristic): New symbols.
7637 (syms_of_xfns): Initialize new symbols.
7638 (lookup_image): Handle `:mask X', `:algorithm emboss', and
7639 `algorithm (edge-detection ...)'.
7640 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
7641 (tiff_format, gif_format, gs_format): Add `:mask'.
7642 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
7643 (GIF_MASK, GS_MASK): New enumerators.
7644 (x_laplace_read_row, x_laplace_write_row): Functions removed.
7645 (emboss_matrix, laplace_matrix): New variables.
7646 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
7647 (x_edge_detection): New functions.
7648 (x_laplace): Rewritten in terms of x_detect_edges.
7649 (x_build_heuristic_mask): If image has a mask, free it.
7651 2000-09-14 Andrew Innes <andrewi@gnu.org>
7653 * makefile.w32-in: Revert to Unix line endings.
7655 2000-09-14 Andrew Innes <andrewi@gnu.org>
7657 * makefile.w32-in: Standardize indentation somewhat.
7658 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
7659 cater for differences between shells.
7661 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
7663 2000-09-14 Gerd Moellmann <gerd@gnu.org>
7665 * xterm.c (x_produce_glyphs): If the distance from the current
7666 position to the next tab stop is less than a canonical character
7667 width, use the tab stop after that.
7669 2000-09-14 Dave Love <fx@gnu.org>
7671 * buffer.c (alloc_buffer_text): Fix xmalloc call.
7673 2000-09-14 Gerd Moellmann <gerd@gnu.org>
7675 * xdisp.c (handle_fontified_prop): While running fontification
7676 functions, bind `fontification-functions' and
7677 `after-change-functions' to nil.
7679 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
7680 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
7682 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
7684 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
7685 USE_MMAP_FOR_BUFFERS.
7687 * insdel.c (make_gap): Use enlarge_buffer_text.
7689 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
7690 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
7691 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
7692 from former r_alloc_* functions in ralloc.c.
7693 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
7694 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
7695 (mmap_init) [REL_ALLOC_MMAP]: New function.
7696 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
7697 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
7700 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
7701 (enlarge_buffer_text): Add prototype.
7703 * ralloc.c: Remove everything having to do with the use of mmap.
7705 2000-09-13 Gerd Moellmann <gerd@gnu.org>
7707 * sound.c (Fplay_sound): Doc fix.
7709 * keyboard.c: Avoid some more compiler warnings.
7710 (parse_tool_bar_item): Ignore cached key bindings.
7712 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
7713 and allocation of Lisp data.
7715 2000-09-12 Gerd Moellmann <gerd@gnu.org>
7717 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
7718 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
7721 * lread.c (Fload): Put code checking for recursive loads in #if 0.
7723 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
7725 * ccl.c: Comment fixed.
7726 (MAX_MAP_SET_LEVEL): Increased to 30.
7727 (PUSH_MAPPING_STACK): Enclose with do-while block.
7728 (POP_MAPPING_STACK): Likewise.
7729 (stack_idx_of_map_multiple): New variable.
7730 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
7731 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
7732 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
7733 (ccl_driver) <CCL_MapSingle>: Likewise.
7734 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
7735 with the case where looking up process reaches to the end of
7736 map-set, and call CCL programs as the above change.
7738 2000-09-11 Gerd Moellmann <gerd@gnu.org>
7740 * xfns.c (png_load, jpeg_load): Declare some variables volatile
7741 that might be clobbered by longjmp.
7742 (check_x_display_info, x_decode_color, create_frame_xic)
7743 (Fx_display_backing_store, Fx_display_visual_class)
7744 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
7746 * lread.c (init_lread): Set Vloads_in_progress to nil.
7747 (Fload): Show list of recursively loaded files, when signaling an
7750 * lread.c (Vloads_in_progress): New variable.
7751 (record_load_unwind): New function.
7752 (Fload): Check for recursive loads.
7753 (syms_of_lread): Initialize Vloads_in_progress.
7754 (read_integer, read1): Avoid some compiler warnings.
7756 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
7759 2000-09-11 Miles Bader <miles@gnu.org>
7761 * editfns.c (Fbuffer_string): Doc fix.
7763 2000-09-10 Gerd Moellmann <gerd@gnu.org>
7765 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
7767 2000-09-09 Ken Raeburn <raeburn@gnu.org>
7769 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
7770 whether to include other header files.
7772 2000-09-09 Gerd Moellmann <gerd@gnu.org>
7774 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
7775 by Fmemq as a boolean.
7777 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
7779 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
7781 2000-09-08 Gerd Moellmann <gerd@gnu.org>
7783 * ralloc.c (mmap_fd): Remove initializer which can make it
7784 read-only in a dumped Emacs.
7785 (mmap_fd_1): New variable.
7786 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
7787 restore it from there.
7788 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
7789 unconditionally so that mmap_fd can be initialized there.
7790 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
7791 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
7792 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
7794 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
7796 * xdisp.c (dump_glyph_row): Fix printf format string.
7797 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
7799 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
7801 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
7804 * xdisp.c (try_window_id): When trying to locate cursor in
7805 unchanged rows at the top, handle the case that we can't find it.
7807 * xterm.c (x_draw_glyphs): Handle case START and END are out
7808 of bounds more carefully.
7810 2000-09-08 Dave Love <fx@gnu.org>
7812 * s/sol2.h (REL_ALLOC_MMAP): Define.
7813 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
7815 * ralloc.c: Don't include string.h (redundant).
7816 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
7817 [!MAP_ANON]: Include fcntl.h.
7818 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
7819 (r_alloc, r_re_alloc, r_alloc_free)
7820 (mmap_enlarge, mmap_set_vars): Use it.
7821 (r_alloc_init_fd): New function.
7822 (__morecore) [SYSTEM_MALLOC]: Don't declare.
7823 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
7826 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
7829 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
7830 change to __NetBSD__.
7832 2000-09-08 Kenichi Handa <handa@etl.go.jp>
7834 * search.c (compile_pattern): Check the multibyteness of cached
7837 2000-09-08 Miles Bader <miles@gnu.org>
7839 * xfaces.c (default_face_vector): Function removed.
7840 (Finternal_merge_in_global_face): Restore old global/local
7841 attribute override order. Use inline loop instead of calling
7842 default_face_vector.
7844 2000-09-07 Gerd Moellmann <gerd@gnu.org>
7846 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
7847 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
7848 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
7849 where necessary, in case POINTER_TYPE is `void'.
7851 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
7853 * frame.c (make_terminal_frame): Initialize frame foreground and
7854 background colors to unspecified, for the initial instance of an
7857 2000-09-07 Gerd Moellmann <gerd@gnu.org>
7859 * ralloc.c (mmap_find): Fix overlap computation.
7860 (mmap_enlarge): Compute nbytes before trying to find an
7863 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
7866 * lread.c (syms_of_lread): Change value of regexp
7867 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
7869 * xmenu.c (xdialog_show): When looking up the selection in
7870 menu_items, take `quote' boundaries into account; this corresponds
7871 to a nil ITEM in x-popup-dialog.
7873 2000-09-07 Kenichi Handa <handa@etl.go.jp>
7875 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
7877 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
7879 * coding.c (encode_coding_sjis_big5): Use translation table for
7880 encoding, not decoding. Fix the handling of latin-jisx0201.
7881 Check for the charset katakana-jisx0201 too.
7882 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
7883 (detect_coding_sjis): Check the byte sequence more rigidly.
7885 2000-09-07 Gerd Moellmann <gerd@gnu.org>
7887 * xfaces.c (Vparam_value_alist): New variable.
7888 (syms_of_xfaces): Initialize it.
7889 (Finternal_set_lisp_face_attribute): Avoid more consing.
7891 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
7893 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
7894 (Qbackground_mode): New variable.
7895 (syms_of_frame_1): Initialize Qbackground_mode.
7897 * lisp.h (Qdisplay): Declare extern.
7899 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
7900 change face on all frames, and change the default for new frames.
7902 2000-09-07 Dave Love <fx@gnu.org>
7904 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
7906 2000-09-07 Kenichi Handa <handa@etl.go.jp>
7908 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
7910 * charset.c: Include composite.h
7911 (lisp_string_width): New function.
7912 (Fstring_width): Call lisp_string_width instead of strwidth.
7914 * Makefile.in (charset.o): Depends on composite.h.
7916 * process.c (read_process_output): Before inserting the decoded
7917 text in the buffer, adjust the multibyteness.
7919 2000-09-06 Gerd Moellmann <gerd@gnu.org>
7921 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
7922 buffer's text buffer is null, map new memory.
7924 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
7925 POINTER_TYPE and size_t.
7926 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
7927 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
7928 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
7929 [REL_ALLOC_MMAP]: New macros.
7930 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
7931 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
7932 [REL_ALLOC_MMAP]: New functions.
7934 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
7935 before and after unexec.
7937 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
7938 text buffers if necessary.
7940 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
7941 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
7944 * config.in (HAVE_MMAP): Add #undef.
7946 2000-09-05 Gerd Moellmann <gerd@gnu.org>
7948 * frame.c (Qdisplay_type): New variable.
7949 (syms_of_frame_1): Initialize it.
7950 (Fframe_parameter): New function that avoids consing.
7951 (syms_of_frame): Defsubr it.
7953 * buffer.c (Fother_buffer): Consider buffers as invisible when
7954 they are displayed in a window on an invisible frame.
7956 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
7957 get-largest-window always return nil.
7959 2000-09-04 Gerd Moellmann <gerd@gnu.org>
7961 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
7962 variable; recognize Emacs 19 elc files.
7964 2000-09-04 Miles Bader <miles@gnu.org>
7966 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
7967 before initially popping up the menu, so the menu doesn't flash
7968 when the face settings are significantly different from the defaults.
7970 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
7972 * regex.c (WIDE_CHAR_SUPPORT): New macro.
7973 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
7974 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
7975 (BIT_UNIBYTE): Remove.
7976 (re_match_2_internal): Delete corresponding code and streamline the
7977 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
7978 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
7979 (re_wctype_t): New type.
7980 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
7981 (regex_compile): Use them and fix handling of overly long char classes.
7983 2000-09-03 Andrew Innes <andrewi@gnu.org>
7985 * makefile.w32-in: Change to DOS line endings.
7987 * s/ms-w32.h (ORDINARY_LINK): New define.
7989 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
7990 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
7992 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
7993 (distclean): Delete them here instead.
7995 * w32proc.c (compare_env): Convert to uppercase for comparison,
7996 not lowercase, to match how the native Windows shell works.
7998 2000-09-03 Jason Rumney <jasonr@gnu.org>
8000 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
8001 CVS changes the line-ends when checking in/out on DOS/Windows.
8003 * makefile.nt (emacs): Do not change directory to run temacs, as
8004 the load-path is set relative to current directory.
8006 2000-09-03 Miles Bader <miles@gnu.org>
8008 * xterm.c (x_alloc_lighter_color_for_widget): New function.
8010 2000-09-02 Gerd Moellmann <gerd@gnu.org>
8012 * xdisp.c (redisplay_mode_lines): New function.
8013 (display_mode_lines): Return number of mode lines displayed.
8014 (echo_area_display): Use redisplay_mode_lines to draw garbaged
8015 mode lines. Don't temporarily bind redisplay-dont-pause to t.
8017 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
8018 string.h and strings.h.
8019 (index) [HAVE_INDEX]: Add prototype.
8021 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
8022 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
8024 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
8025 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8027 2000-09-01 Gerd Moellmann <gerd@gnu.org>
8029 * lread.c (read1): Accept `?' as symbol constituent, for
8030 compatiblity with XEmacs.
8032 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
8034 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
8035 (struct re_pattern_buffer): Remove newline_anchor.
8036 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
8037 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
8038 (re_max_failures, fail_stack): Use size_t rather than unsigned.
8039 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
8040 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
8041 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
8042 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
8043 Get rid of references to newline_anchor.
8044 (regcomp): Allocate and precompute a fastmap.
8046 2000-08-31 Gerd Moellmann <gerd@gnu.org>
8048 * lread.c (openp): GCPRO local variable `filename'.
8050 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
8052 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
8054 * regex.c: Merge some changes from GNU libc. Add prototypes.
8055 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
8056 Use memcmp and memcpy instead of bcopy and bcmp.
8057 (init_syntax_once): Use ISALNUM.
8058 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
8059 (REG_UNSET_VALUE): Remove. Use NULL instead.
8060 (REG_UNSET, re_match_2_internal): Use NULL.
8061 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
8063 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
8064 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
8065 (regex_compile): In handle_interval, return an error rather than try to
8066 unfetch the interval if we can't find the closing brace.
8067 Obey the RE_NO_GNU_OPS syntax bit.
8068 (TOLOWER): New macro.
8070 (regexec): Allocate regs.start and regs.end as one block.
8072 2000-08-30 Gerd Moellmann <gerd@gnu.org>
8074 * xdisp.c (echo_area_display): Check display_completed instead
8075 of calling detect_input_pending.
8077 * dispnew.c (update_frame): Only set display_completed here; move
8078 the update_begin and update_end calls here from update_frame_1.
8079 (update_frame_1): Don't set display_completed here, don't call
8080 update_begin/update_end.
8082 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
8083 instead of store_frame_param.
8085 2000-08-29 Gerd Moellmann <gerd@gnu.org>
8087 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
8088 desired window matrix hasn't been displayed, use the current row
8089 instead. Make sure that only those frame rows are updated for
8090 which there exists a corresponding enabled desired row.
8092 2000-08-29 Miles Bader <miles@gnu.org>
8094 * xfaces.c (default_face_vector): New function.
8095 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
8097 2000-08-29 Gerd Moellmann <gerd@gnu.org>
8099 * lread.c (openp): Prevent temporary string passed to
8100 Ffile_readable_p from being garbage collected.
8102 2000-08-28 Dave Love <fx@gnu.org>
8104 * keymap.c (store_in_keymap): Add `static' to declaration.
8106 2000-08-28 Gerd Moellmann <gerd@gnu.org>
8108 * emacs.c, callint.c, doc.c, editfns.c
8109 (toplevel) [HAVE_STRING_H]: Include string.h.
8110 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
8111 (index): Remove prototypes which might conflict with non-standard
8112 definitions of index/strchr.
8114 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
8115 (rindex): Define only if !HAVE_RINDEX.
8117 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
8119 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
8121 2000-08-28 Miles Bader <miles@gnu.org>
8123 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
8124 made inconsistent by a font-related attribute in FROM.
8125 (merge_face_inheritance): Add function comment.
8127 2000-08-28 Kenichi Handa <handa@etl.go.jp>
8129 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
8130 the 4th arg (PREV_EVENT) Qt to suppress input method.
8132 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
8134 * regex.c: Indent cpp directives and remove parens after `defined'.
8135 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
8136 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
8137 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
8138 (re_compile_pattern): Use size_t for length.
8139 (init_syntax_once): Move to a better place.
8140 * regex.h: Merge changes from GNU libc. Indent cpp directives.
8141 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
8143 * syntax.c (back_comment): Detect cases where a comment-starter is
8144 actually inside another comment as in: /* a // b */ c // d \n.
8145 Make it clear that `comstart_pos' is unused for nested comments.
8147 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
8148 (KEYMAPP): New macro.
8149 (Fkeymap_parent, Fset_keymap_parent): Use it.
8150 (fix_submap_inheritance): Mark it static.
8151 (define_as_prefix, describe_buffer_bindings, describe_command)
8152 (describe_translation, describe_map): Complete prototypes.
8154 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
8156 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
8157 to better match the key-lookup behavior.
8159 2000-08-27 Gerd Moellmann <gerd@gnu.org>
8161 * xfaces.c (lface_fully_specified_p): Handle :inherit.
8162 (Finternal_set_lisp_face_attribute): Fix typo in error message.
8164 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
8166 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
8167 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
8168 (xterm.o): Depend on coding.h
8170 2000-08-26 Kenichi Handa <handa@etl.go.jp>
8172 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
8173 the corresponding '#endif'.
8175 2000-08-26 Miles Bader <miles@gnu.org>
8177 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
8178 * xfaces.c (QCinherit): New variable.
8179 (syms_of_xfaces): Initialize it.
8180 (LFACE_INHERIT): New macro.
8181 (Finternal_get_lisp_face_attribute)
8182 (merge_face_vector_with_property)
8183 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
8184 (check_lface_attrs): Allow new types of face height. Check
8186 (CYCLE_CHECK): New macro.
8187 (merge_face_inheritance): New function.
8188 (merge_face_vectors): Merge inherited faces too. Add F and
8189 CYCLE_CHECK arguments.
8190 (merge_face_vector_with_property, Finternal_merge_in_global_face)
8191 (lookup_named_face, lookup_derived_face, realize_named_face)
8192 (face_at_string_position, face_at_buffer_position): Supply
8193 new F and CYCLE_CHECK arguments to merge_face_vectors.
8194 (merge_face_heights): New function.
8195 (merge_face_vectors, merge_face_vector_with_property)
8196 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
8197 handle relative face heights.
8198 (lface_same_font_attributes_p): Compare heights using EQ.
8200 2000-08-26 Kenichi Handa <handa@etl.go.jp>
8202 * charset.c (char_to_string): Check the character validity.
8203 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
8205 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
8207 * regex.c (PUSH_FAILURE_COUNT): New macro.
8208 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
8209 Handle popping of a register's or a counter's data.
8210 (POP_FAILURE_POINT): Use the new name.
8211 (re_match_2_internal): Push counter data on the stack for succeed_n,
8212 jump_n and set_number_at and remove misleading dead code in succeed_n.
8214 2000-08-25 Gerd Moellmann <gerd@gnu.org>
8216 * xdisp.c (redisplay_internal): If considering all windows on all
8217 frames, update the display for each frame as soon as possible,
8218 instead of first building all desired matrices for all frames, and
8219 then updating them all.
8220 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
8222 2000-08-24 Gerd Moellmann <gerd@gnu.org>
8224 * bytecode.c (mark_byte_stack): Add a comment.
8226 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
8227 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
8230 2000-08-24 Kenichi Handa <handa@etl.go.jp>
8232 * minibuf.c (do_completion): Always use compare-string, not
8233 string-equal because the latter doesn't pay attention to
8234 multibyteness of strings.
8236 * process.c (create_process): Don't setup raw-text coding here.
8237 (Fopen_network_stream): Don't set coding->src_multibyte and
8238 coding->dst_multibyte here.
8239 (read_process_output): For process filter, return unibyte string
8240 if default-enable-multibyte-characters is nil.
8241 (send_process): If OBJECT is multibyte text, be sure to encoded it
8242 by the specified coding system for the process. Otherwise, setup
8244 (init_process): Don't initialize default-process-coding-system here.
8246 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
8248 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
8249 <scroll-down-aggressively>: Likewise.
8251 2000-08-23 Kenichi Handa <handa@etl.go.jp>
8253 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
8254 zero. Set coding->produced_char correctly.
8256 2000-08-22 Andrew Innes <andrewi@gnu.org>
8258 * makefile.w32-in: New file.
8260 * unexw32.c (unexec): Ignore old_name, and use the actual location
8261 of the current executable instead. Base new_name on this.
8263 * w32proc.c (create_child): Remove reference to security
8264 descriptor, which isn't needed and doesn't compile with mingw32.
8266 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8267 up dllimport attributes.
8268 (x_update_window_end): Update prototype.
8270 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
8271 extern, which screws up dllimport attributes.
8273 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8274 up dllimport attributes.
8276 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
8277 screws up dllimport attributes.
8279 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8280 up dllimport attributes.
8281 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
8282 screws up dllimport attributes.
8284 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8285 up dllimport attributes.
8287 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
8288 screws up dllimport attributes.
8290 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
8291 screws up dllimport attributes.
8293 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8294 up dllimport attributes.
8296 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
8297 unnecessary extern, which screws up dllimport attributes.
8300 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8301 up dllimport attributes.
8303 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
8304 unnecessary extern, which screws up dllimport attributes.
8306 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
8307 screws up dllimport attributes.
8309 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8310 up dllimport attributes.
8312 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
8314 * w32bdf.c (search_file_line):
8315 (set_bdf_font_info):
8317 (w32_get_bdf_glyph):
8318 (w32_BDF_to_x_font): Fix compile warnings.
8320 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
8322 * w32select.c: Include keyboard.h before frame.h.
8324 * w32fns.c (max): Define macro.
8325 (JOHAB_CHARSET): Define if not known.
8326 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
8327 (Fx_show_tip): Synch with X version.
8329 * w32xfns.c: Include keyboard.h before frame.h.
8331 * w32fns.c: Include keyboard.h before frame.h.
8333 * w32term.c: Include keyboard.h before frame.h.
8335 * fontset.c: Include keyboard.h before frame.h.
8337 * w32inevt.c: Include keyboard.h before frame.h.
8338 (MOUSE_MOVED): Define if not known.
8340 * minibuf.c: Include keyboard.h before frame.h.
8342 * keyboard.c: Include keyboard.h before frame.h.
8344 * indent.c: Include keyboard.h before frame.h.
8346 * dispnew.c: Include keyboard.h before frame.h.
8348 * buffer.c: Include keyboard.h before frame.h.
8350 * alloc.c: Include keyboard.h before frame.h.
8352 * print.c: Include keyboard.h before frame.h.
8354 * process.c: Include keyboard.h before frame.h.
8356 * scroll.c: Include keyboard.h before frame.h.
8358 * sysdep.c: Include keyboard.h before frame.h.
8360 * term.c: Include keyboard.h before frame.h.
8362 * window.c: Include keyboard.h before frame.h.
8364 * xdisp.c: Include keyboard.h before frame.h.
8365 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
8367 * frame.c: Include keyboard.h before frame.h.
8369 * w32heap.h: Undefine min, max.
8371 * w32gui.h: Undefine min, max.
8373 * unexw32.c: Change PUCHAR to PCHAR.
8374 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
8377 (copy_executable_and_dump_data): Remove unnecessary static defs.
8378 (copy_executable_and_dump_data): Fix compile warnings.
8380 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
8382 * w32console.c (min): Define macro.
8383 (clear_frame, write_glyphs): Fix compile warning.
8385 * w32proc.c (compare_env):
8386 (find_child_console): Fix compile warning.
8388 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
8389 sys_errlist instead of _sys_errlist.
8390 (get_emacs_configuration_options): New function.
8392 * s/ms-w32.h (sys_nerr): Provide default definition.
8393 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
8394 name with _ prepended.
8395 (NSIG): Define if not known.
8396 (get_emacs_configuration): Provide extern declaration.
8397 (get_emacs_configuration_options): Provide extern declaration.
8398 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
8400 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
8402 (read_unc_volume): Fix compile warning.
8404 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
8405 definitions from being used.
8407 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
8409 * w32.c (unc_volume_file_attributes):
8410 (open_unc_volume): Make arg const.
8412 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
8413 (read_input_waiting): Remove excess parameter.
8415 * w32.c (init_environment): Call _access.
8416 (check_windows_init_file): Call _close.
8417 (init_user_info): Call _putenv.
8418 (init_environment): Call _putenv and _strdup.
8419 (init_ntproc): Reset volume info cache on startup.
8421 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
8422 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
8423 cannot override the CRT malloc.
8425 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
8426 (LINK_FLAGS): Append to original value of LINK_FLAGS.
8428 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
8429 unless we are linking with a static CRT.
8430 (RVA_TO_PTR): Cast result to unsigned char*.
8432 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
8433 (add_volume_info): Use xstrdup.
8435 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
8437 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
8438 (do_completion, Fminibuffer_complete_word): Use it.
8439 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
8440 var so it can take non-boolean values.
8442 2000-08-21 Gerd Moellmann <gerd@gnu.org>
8444 * editfns.c (find_field): Formatting changes.
8445 (toplevel): Some old-style function forward declarations
8446 changed to prototypes, some new protypes added, some functions
8449 * lisp.h (set_time_zone_rule): Add prototype.
8450 (use_dialog_box): External declaration.
8452 * keyboard.c (gen_help_event): Add parameter SIZE.
8453 (kbd_buffer_events_waiting): Slightly rewritten.
8454 (clear_event): New function.
8455 (kbd_buffer_get_event): Use it, and clear the input_events of
8457 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
8458 don't fill the newly created array with nils.
8459 (toplevel): Convert some old-style function forward declarations
8462 * keyboard.h (gen_help_event): Change prototype.
8464 * xterm.c (XTread_socket): Change calls to gen_help_event.
8466 * w32term.c (w32_read_socket): Change calls to gen_help_event.
8468 * eval.c (Fmacroexpand): Doc fix.
8470 2000-08-20 Jason Rumney <jasonr@gnu.org>
8472 * w32term.h (x_display_info_for_display): Remove as this function
8473 does not exist on W32.
8475 * w32term.c (help_echo_window): New variable.
8476 (syms_of_w32term): staticpro it.
8477 (note_mode_line_highlight): Set it.
8478 (XTextExtents16): Removed as there is no equivalent on W32.
8479 (x_compute_glyph_string_overhangs): Incomplete body removed, as
8480 the X way of doing this will not work for W32.
8481 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
8482 (x_draw_image_foreground): Avoid drawing outside of the clip area
8483 when image doesn't have a mask.
8484 (note_mouse_highlight): Process overlays in the right order of
8485 priority. Set help_echo_window.
8486 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
8487 because that's more visible for large images.
8489 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
8490 name to single_keymap_panes.
8491 (w32_menu_show): Set wv->title when dealing with titles.
8492 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
8494 2000-08-21 Miles Bader <miles@gnu.org>
8496 * minibuf.c (do_completion): Try again if we rewrite the input
8497 string, but no completion was done, so that any completion message
8500 2000-08-20 Gerd Moellmann <gerd@gnu.org>
8502 * xfaces.c (lface_equal_p): Compare strings differently.
8503 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
8504 (realize_tty_face): Use them.
8505 (syms_of_xfaces): Initialize new variables.
8506 (map_tty_color): New function, extracted from realize_tty_face.
8507 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
8508 foreground or background color, store the new color name in the
8509 realized face; previous code trying to do this had no effect.
8510 (realize_tty_face): Use map_tty_color.
8511 (Fclear_face_cache): Set face_change_count and ensure thorough
8514 2000-08-19 Gerd Moellmann <gerd@gnu.org>
8516 * undo.c (record_first_change, record_marker_adjustment): Don't
8517 use XBUFFER on last_undo_buffer which might not be a buffer.
8519 2000-08-18 Kenichi Handa <handa@etl.go.jp>
8521 * coding.c (decode_coding_string): Set members consumed,
8522 consumed_char, produced, produced_char of *coding correctly. If
8523 decode_coding doesn't consume any byte, don't try anymore.
8524 (encode_coding_string): Likewise.
8526 2000-08-18 Gerd Moellmann <gerd@gnu.org>
8528 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
8529 conditional have void type, for Standard C compilers.
8531 * xdisp.c (redisplay_internal): Compare windows for equality with
8532 EQ, instead of applying XWINDOW to something that might not
8535 2000-08-18 Kenichi Handa <handa@etl.go.jp>
8537 * fontset.c (Finternal_char_font): Search only the selected frame
8538 for a window of the current buffer.
8540 2000-08-18 Gerd Moellmann <gerd@gnu.org>
8542 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
8545 * keyboard.c (kbd_buffer_get_event): Handle the case that the
8546 second half of a HELP_EVENT is found at the start of kbd_buffer.
8548 2000-08-18 Miles Bader <miles@gnu.org>
8550 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
8552 * editfns.c (save_restriction_save): Rewrite to use markers.
8553 (save_restriction_restore): Rewrite to understand new form of data
8554 saved by save_restriction_save.
8555 (Fsave_restriction): Remove cautionary note in doc-string.
8557 2000-08-17 Gerd Moellmann <gerd@gnu.org>
8559 * fileio.c (build_annotations): Add a comment explaining the
8560 return value of format-annotate-function. Replace a spurious call
8561 to Flength with a CONSP test. Call format-annotate-function with
8562 a fifth arg specifying how many times the function is been called
8563 in a row, to let it choose temporary buffers appropriately.
8565 2000-08-17 Dave Love <fx@gnu.org>
8567 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
8568 declare make_temp_name twice.
8570 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
8571 (unreadpure): Give it an arg.
8573 * unexalpha.c: Prototype fatal_unexec, mark_x,
8574 update_dynamic_symbols. Declare unexec as void.
8576 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
8577 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
8579 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
8580 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
8582 * alloca.c: Use #error.
8583 [POINTER_TYPE]: Use it.
8585 * eval.c (Fdefvar): Doc fix.
8587 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
8588 INITIALIZE_INTERVAL.
8590 * buffer.h: Avoid DECLARE_INTERVALS.
8592 * config.in: Add size_t.
8594 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
8596 * w16select.c (set_clipboard_data): If there's not enough memory
8597 to put text into clipboard, return 1, as Fw16_set_clipboard_data
8598 expects. In case of other failures, return 3.
8599 (system_error_msg): New error message.
8600 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
8603 2000-08-16 Gerd Moellmann <gerd@gnu.org>
8605 * term.c (write_glyphs): Also turn off inverse video after turning
8606 off other appearances in case TS_exit_attribute_mode is not equal
8607 to TS_end_standout_mode.
8608 (insert_glyphs): Turn inverse video on/off for each run of glyphs
8610 (turn_off_face): Reset standout_mode only if
8611 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
8612 is equal to TS_end_standout_mode.
8614 2000-08-16 Kenichi Handa <handa@etl.go.jp>
8616 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
8617 sequence at the end of the source block.
8619 * ccl.c (Fccl_program_p): Docstring modified.
8620 (Fccl_execute): Likewise.
8621 (Fccl_execute_on_string): Likewise.
8623 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
8625 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
8627 2000-08-16 Kenichi Handa <handa@etl.go.jp>
8629 The following changes are mainly to fix bugs of
8630 encode/decode-coding-string failing if encoding/decoding return
8631 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
8632 variable conversion_buffer.
8634 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
8635 decrement dst_end to avoid buffer overflow in the later call of
8638 * coding.h (conversion_buffer_size, conversion_buffer)
8639 (get_conversion_buffer): Extern deleted.
8641 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
8642 (conversion_buffer, conversion_buffer_size): Variables deleted.
8643 (get_conversion_buffer): Function deleted.
8644 (struct conversion_buffer): New structure.
8645 (MAX_ALLOCA): New macro.
8646 (allocate_conversion_buffer): New macro.
8647 (extend_conversion_buffer, free_conversion_buffer): New functions.
8648 (ccl_coding_driver): Set coding->result.
8649 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
8650 this is the last block of source.
8651 (encode_coding): Likewise. Handle the source block as the last
8652 one only when the whole source text is consumed.
8653 (decode_coding_string): Handle the case that the output buffer is
8654 too small to decode the whole source text. Use
8655 allocate_conversion_buffer, extend_conversion_buffer and
8656 free_conversion_buffer, not get_conversion_buffer.
8657 (encode_coding_string): Likewise.
8658 (init_coding): Function deleted.
8659 (init_coding_once): Delete code to initialize conversion_buffer_size.
8661 * emacs.c (main): Don't call init_coding.
8663 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
8665 * term.c (write_glyphs): Use a locally declared conversion_buffer.
8666 (insert_glyphs): Likewise.
8668 * w32console.c (write_glyphs): Use a locally declared
8671 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
8673 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
8674 member of display_info is NULL.
8676 2000-08-15 Gerd Moellmann <gerd@gnu.org>
8678 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
8680 * term.c (turn_off_face): Reset standout_mode when resetting
8681 appearances with capability `me'.
8682 (write_glyphs): Switch on inverse video before each face change.
8684 2000-08-14 Dave Love <fx@gnu.org>
8686 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
8687 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
8688 (lisp_free): Declare and make static.
8690 * window.c: Fix embedded comment.
8691 (syms_of_window): Fix doc string.
8693 2000-08-14 Gerd Moellmann <gerd@gnu.org>
8695 * keymap.c (push_key_description): If C without modifiers is < 32,
8696 make sure to print `C-' before `M-', like in the manual.
8698 2000-08-11 Gerd Moellmann <gerd@gnu.org>
8700 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
8701 since they aren't relocated anymore.
8702 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
8704 * xdisp.c (try_cursor_movement): Fix handling of cursor in
8705 partially visible line which is smaller than the window's height.
8707 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8709 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
8710 the multibyte form of eight-bit-control characters.
8711 (Fccl_execute_on_string): Initialize ccl->multibyte.
8713 * ccl.h (struct ccl_program): New member multibyte.
8715 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
8717 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8719 * regex.c (regex_compile) <normal_char>: Pay attention to
8721 (analyse_first) <exactn>: Setup fastmap correctly for
8722 eight-bit-control characters.
8724 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8726 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
8728 * keyboard.c (make_lispy_event): Handle the new event type
8729 multibyte_char_keystroke.
8731 * xterm.c: Include coding.h.
8732 (XTread_socket): Work around a bug of XmbLookupString. If the
8733 input is from XIM, decode it according to the current locale. In
8734 that case, generate multibyte_char_keystroke events.
8736 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8738 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
8739 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
8741 2000-08-10 Gerd Moellmann <gerd@gnu.org>
8743 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
8744 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
8745 (move_it_in_display_line_to): Record iterator's ascent and descent
8746 before producing glyphs, and restore them when we know the glyph
8747 doesn't fit on the line.
8748 (move_it_to): Restructured so that it's easier to debug. If
8749 moving to a vpos, and not moving to an x or character position,
8750 stop as soon as the specified vpos is reached; don't move further
8751 into that line because that might change the computed line height.
8752 (try_cursor_movement): New function, extracted from the cursor
8753 movement branch of redisplay_window. If ending on a partially
8754 visible line, don't try to scroll if the cursor line is taller
8756 (redisplay_window): Use try_cursor_movement.
8758 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
8759 because that function doesn't cope with variable-height lines.
8761 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
8762 box cursor because that's better visible for large images.
8764 2000-08-10 Miles Bader <miles@gnu.org>
8766 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
8768 2000-08-10 Gerd Moellmann <gerd@gnu.org>
8770 * xdisp.c (Vmessages_buffer_name): New variable.
8771 (message_dolog): Use it.
8772 (syms_of_xdisp): Initialize it.
8774 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
8776 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
8777 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
8778 redundant now that keyboard.h is included.
8780 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
8782 * keyboard.c (kbd_buffer_events_waiting): New function.
8784 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
8786 * msdos.c: Include keyboard.h.
8787 (XMenuActivate): Empty no_event events from the event buffer. If
8788 no events are left after that, call clear_input_pending.
8789 (mouse_clear_clicks): New function, code moved from mouse_init.
8790 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
8791 mouse driver to ``forget'' any past clicks.
8793 * Makefile.in (msdos.o): Depend on keyboard.h.
8795 2000-08-09 Gerd Moellmann <gerd@gnu.org>
8797 * lisp.h (input_pending): External declaration.
8799 * dispextern.h (Qredisplay_dont_pause): Declare extern.
8801 * xdisp.c (echo_area_display): Display thoroughly if input is
8802 pending. Bind redisplay-dont-pause to t during the redisplay.
8803 in case input is pending.
8805 * dispnew.c (Qredisplay_dont_pause): New variable.
8806 (syms_of_display): Initialize and staticpro it.
8807 (update_frame_1): Don't interrupt the display for pending input if
8808 redisplay_dont_pause is set.
8810 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
8812 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8814 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
8816 * callproc.c (Fcall_process): Terminate the unwind-protect around
8817 the post-read-conversion of coding system.
8819 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
8820 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
8821 * buffer.h (overlays_at): Update prototype.
8822 * xdisp.c (next_overlay_change): Update call to overlays_at.
8823 * xfaces.c (face_at_buffer_position): Likewise.
8824 * textprop.c (Fget_char_property): Likewise.
8825 * xterm.c (note_mouse_highlight): Likewise.
8827 * minibuf.c (do_completion): Don't consider a simple change of
8828 case as `completion'.
8830 2000-08-08 Ken Raeburn <raeburn@gnu.org>
8832 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
8833 * undo.c (record_delete): Make sure last_point_position_buffer is
8834 a buffer before comparing pointers.
8836 * coding.h (decode_coding_string): Declare.
8838 * intervals.h (Fprevious_single_char_property_change): Declare.
8840 * textprop.c (Fprevious_single_char_property_change): Don't do
8841 arithmetic directly on lisp objects.
8843 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
8845 * keyboard.h (menu_item_eval_property): Declare.
8847 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
8848 reuse as buffer name, instead of recreating (and discarding) every
8849 time a message is logged.
8850 (with_echo_area_buffer): Make callback arg A2 a lisp object.
8851 (current_message_1, truncate_message_1, set_message_1)
8852 (display_echo_area_1, resize_mini_window_1): Signatures changed.
8853 (current_message, truncate_echo_area, display_echo_area)
8854 (resize_echo_area_axactly): Changed calls.
8856 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
8858 (Ffind_coding_systems_region_internal): First argument to Fappend
8859 must be an integer, not a Lisp object.
8861 2000-08-08 Kenichi Handa <handa@etl.go.jp>
8863 * charset.c (Fchar_width): Doc fix.
8865 2000-08-08 Gerd Moellmann <gerd@gnu.org>
8867 * charset.c (Fstring_width): Doc fix.
8869 2000-08-07 Gerd Moellmann <gerd@gnu.org>
8871 * xdisp.c (start_display): When starting display on a continuation
8872 line, clear ascent and descent members of the iterator structure;
8873 the height of the continued line does not affect the height of the
8875 (make_cursor_line_fully_visible): Do nothing if cursor is on a
8876 line taller than the window.
8877 (redisplay_window) <forced window start>: Handle case that the
8878 middle of the window is not found in any row.
8879 (dump_glyph_row): Show more information.
8880 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
8881 first text line in a glyph matrix.
8883 * xterm.c (x_draw_image_foreground): Avoid drawing outside
8884 of the clip area when image doesn't have a mask.
8886 * fns.c (sweep_weak_table): Fix survival conditions for
8887 key-or-value and key-and-value weakness.
8889 * .gdbinit (xhashtable): New command.
8891 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
8892 tables out of the list of all weak hash tables.
8894 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
8895 a new buffer is created, make sure echo_area_buffer[] references
8898 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
8900 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
8903 2000-08-07 Kenichi Handa <handa@etl.go.jp>
8905 * syntax.c (skip_chars): Fix previous change. Make the handling
8906 of unibyte string consistent with that of regex search.
8908 2000-08-05 Gerd Moellmann <gerd@gnu.org>
8910 * xmenu.c (popup_get_selection): Use xfree instead of free.
8912 * fileio.c (Finsert_file_contents): Use xfree instead of free.
8914 * editfns.c (Ftranspose_regions): Use xfree instead of free.
8916 * callproc.c (child_setup): Use xfree instead of free.
8918 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
8920 (run_mac_command, closedir): Use `xfree' instead of `free'.
8922 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
8924 * eval.c (error): Use xfree instead of free.
8926 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
8928 * fns.c: Replace `illegal' with `invalid'.
8929 (Fmake_hash_table, make_hash_table): Allow table size of 0.
8931 2000-08-05 Kenichi Handa <handa@etl.go.jp>
8933 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
8936 2000-08-04 Noah Friedman <friedman@splode.com>
8938 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
8941 2000-08-04 Gerd Moellmann <gerd@gnu.org>
8943 * syntax.c (skip_chars): Fix typo in error message.
8945 2000-08-04 Andreas Schwab <schwab@suse.de>
8947 * m/ia64.h: Moved from s/ia64.h.
8949 2000-08-04 Kenichi Handa <handa@etl.go.jp>
8951 * process.c (read_process_output): Big simplification. Handle
8952 composition and post-read-conversion of coding system correctly.
8953 (send_process): Handle composition correctly.
8955 * callproc.c (Fcall_process): Handle post-read-conversion of
8956 coding system if any.
8958 * coding.c (decode_coding_iso2022): More strict check for handling
8960 (coding_restore_composition): Pay attention to the case that
8961 cmp_data is not set properly (because of invalid code in the
8963 (run_pre_post_conversion_on_str): Include text properties in the
8965 (decode_coding_string): Set members of coding correctly.
8967 2000-08-03 Gerd Moellmann <gerd@gnu.org>
8969 * s/ia64.h: New file.
8971 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
8972 Use NULL instead of 0 at the end of variable argument list of
8973 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
8974 sizeof (int) < sizeof (void *).
8976 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
8977 of variable argument lists of XtVaGetValues and XtVaSetValues.
8979 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
8980 variable argument lists of XtVaGetValues and XtVaSetValues.
8982 2000-08-02 Gerd Moellmann <gerd@gnu.org>
8984 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
8985 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
8987 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
8990 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
8991 in call to Fsingle_key_description.
8993 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
8996 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
8998 * window.c (display_buffer_reuse_frames): New variable.
8999 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
9000 frames displaying BUFFER.
9001 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
9003 2000-08-01 Miles Bader <miles@gnu.org>
9005 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
9006 when to constrain NEW_POS (they were pretty screwed up before).
9008 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
9010 * msdos.c (run_msdos_command): Save and restore the master
9011 environment, for the case that child_setup signals an error.
9012 When mirroring slashes in DOS shell commands, don't fail when
9013 argv[2] has embedded blanks.
9014 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
9015 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
9016 (dos_ttraw): Call mouse_setup_buttons.
9018 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
9019 using alloca; free it after run_msdos_command returns.
9021 2000-07-27 Dave Love <fx@gnu.org>
9023 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
9024 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
9026 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
9028 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
9030 * editfns.c (lisp_time_argument): Fix last change.
9032 2000-07-27 Gerd Moellmann <gerd@gnu.org>
9034 * fns.c (Fdelete): Make it work on vectors and strings in addition
9037 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
9038 (syms_of_fns): Initialize new variables.
9039 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
9040 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
9041 weakness, with t meaning the same as `key-and-value'.
9043 2000-07-27 Kenichi Handa <handa@etl.go.jp>
9045 * coding.h (struct coding_system): Member safe_charset deleted.
9047 * coding.c (Qsafe_charsets): This variable deleted.
9048 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
9050 (coding_safe_chars): New function.
9051 (CODING_SAFE_CHAR_P): New macro.
9052 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
9053 checking safe_charsets member of the coding system. Caller changed.
9054 (detect_coding_iso2022): New local variable safe_chars.
9055 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
9056 safe_charsets member of the coding system.
9057 (decode_coding_iso2022): New local variable safe_chars.
9058 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
9059 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
9060 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
9061 (ENCODE_UNSAFE_CHARACTER): New macro.
9062 (encode_coding_iso2022): New local variable safe_chars. Check
9064 (setup_coding_system): Delete the code to initialize
9065 coding->safe_charses
9066 (intersection, find_safe_codings): New functions.
9067 (Ffind_coding_systems_region_internal): New function.
9068 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
9069 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
9070 variable and initialize it.
9072 * fns.c (char_table_ref_and_index): New function.
9074 * lisp.h (char_table_ref_and_index): Add prototype.
9076 2000-07-26 Sam Steingold <sds@gnu.org>
9078 * editfns.c (lisp_time_argument): Added third argument `usec'.
9079 (Ffloat_time): New built-in Lisp function.
9081 2000-07-26 Gerd Moellmann <gerd@gnu.org>
9083 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
9084 for the character code.
9086 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
9089 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
9090 if called for a popup menu.
9091 (xmenu_show): Store help string in widget values.
9093 2000-07-26 Dave Love <fx@gnu.org>
9095 * syswait.h: Move some definitions.
9096 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
9097 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
9098 perspicuous definitions.
9099 (WTERMSIG): Fix bit pattern used.
9101 2000-07-26 Kenichi Handa <handa@etl.go.jp>
9103 * print.c (print_object): If vector printing is truncated, print
9104 "..." to indicate it as well as the case of list printing.
9106 2000-07-25 Gerd Moellmann <gerd@gnu.org>
9108 * xdisp.c (next_element_from_display_vector): Improve comments.
9110 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
9111 for the character code, and the rest for the face id as in 20.x.
9112 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
9114 * window.c (window_display_table): Cleaned up.
9116 * syntax.c (Fforward_word): Add last arg nil in call of
9117 Fconstrain_to_field.
9119 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
9121 * fileio.c (Frename_file) [DOS_NT]: If the file names are
9122 identical but for the letter-case, don't call
9123 barf_or_query_if_file_exists.
9125 2000-07-25 Miles Bader <miles@gnu.org>
9127 * editfns.c (find_field): Honor special `boundary' fields.
9128 (Qboundary): New variables.
9129 (syms_of_editfns): Initialize Qboundary.
9130 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
9131 Use scan_buffer instead of find_before_next_newline, because it
9132 allows us to detect the boundary case where there's a newline at
9134 * lisp.h (Fconstrain_to_field): Update external declaration.
9136 2000-07-24 Gerd Moellmann <gerd@gnu.org>
9138 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
9141 2000-07-24 Dave Love <fx@gnu.org>
9143 * s/sunos4-0.h, s/sol2.h:
9144 (LIBS_TERMCAP): Move from m/sparc.h.
9146 * m/sparc.h (TERMINFO): Moved to system files (probably only
9147 relevant for sunos4 judging by its vintage).
9148 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
9151 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
9153 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
9154 name to single_keymap_panes.
9156 2000-07-24 Andreas Schwab <schwab@suse.de>
9158 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
9160 2000-07-24 Gerd Moellmann <gerd@gnu.org>
9162 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
9163 parameters instead of using int parameters. Expect FN to accept
9164 EMACS_INT parameters.
9165 (display_echo_area, resize_echo_area_axactly, current_message)
9166 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
9167 with new argument list.
9168 (resize_mini_window_1): New callback function.
9169 (current_message_1, truncate_message_1, set_message_1): Change
9170 parameter lists to the new format expected by with_echo_area_buffer.
9172 2000-07-24 Kenichi Handa <handa@etl.go.jp>
9174 * fontset.c (fontset_ref): Remove INLINE declaration.
9175 (fontset_ref_via_base): Likewise.
9176 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
9179 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
9181 * msdos.c (IT_note_mouse_highlight): Process overlays in the
9182 correct order of priority. If help echo was found in an overlay,
9183 use that overlay as the object in which the help echo was found.
9185 2000-07-22 Miles Bader <miles@gnu.org>
9187 * textprop.c (Fprevious_single_char_property_change): The initial
9188 property value should be from the position preceding POSITION, not
9191 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
9193 * coding.c (syms_of_coding): Doc fix for
9194 inhibit-iso-escape-detection.
9196 2000-07-21 Gerd Moellmann <gerd@gnu.org>
9198 * xterm.c (note_mouse_highlight): Process overlays in the right
9201 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
9203 * xterm.c (note_mouse_highlight): If help-echo was found in an
9204 overlay, use that overlay as the object in which the help was found.
9206 * window.c (foreach_window_1): Fix typo reversing an if-condition.
9208 * window.c (foreach_window): Instead of a fake variable argument
9209 list, take one USER_DATA argument.
9210 (foreach_window_1): Likewise, and call callback functions with two
9211 args, the window and USER_DATA.
9212 (struct check_window_data): New struct.
9213 (check_window_containing): Use it.
9214 (window_from_coordinates): Set up a struct check_window_data for
9216 (add_window_to_list, freeze_window_start): Change parameters
9217 according to new calling convention.
9219 * window.h (foreach_window): Change prototype.
9221 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
9223 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
9225 * xmenu.c (menu_help_callback): Call show_help_echo with
9226 additional arguments OBJECT and POS.
9228 2000-07-21 Kenichi Handa <handa@etl.go.jp>
9230 * data.c (Faset): Allow storing any multibyte character in a
9231 string. Convert unibyte string to multibyte if necessary.
9233 * xfns.c (x_encode_text): New function.
9234 (x_set_name): Use x_encode_text.
9235 (x_set_title): Likewise.
9237 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
9239 * xterm.h (x_encode_text): Add prototype.
9241 2000-07-20 Dave Love <fx@gnu.org>
9243 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
9246 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
9248 * msdos.c (help_echo_window): New variable.
9249 (syms_of_msdos): Initialize and staticpro it.
9250 (IT_note_mode_line_highlight): Set help_echo_window.
9251 (IT_note_mouse_highlight): Ditto.
9252 (dos_rawgetc): Store help_echo_window in the second event produced
9255 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
9256 Record the object that generated the help echo and the position of
9257 that object in help_echo_object and help_echo_pos. Record that
9258 some glyphs in a row are displayed in mouse-face.
9259 (IT_update_begin): Don't clear mouse highlight unless one of the
9260 enabled glyph rows is marked as being displayed in mouse-face.
9261 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
9262 and position recorded in help_echo_object and help_echo_pos to the
9264 (IT_menu_display): Accept a new argument PN: the pane number of
9265 the current menu pane. Record the pane number and the item
9266 number of the item which has associated help string.
9267 (XMenuActivate): Update the prototype for help_callback in
9268 function declaration. Call IT_menu_display with the current menu
9269 pane number as an additional argument. Call help_callback with
9270 two additional arguments: the pane number and the item number of
9271 the menu item associated with the help text.
9272 (help_echo_object, help_echo_pos): New variables.
9273 (syms_of_msdos): Initialize them and staticpro help_echo_object.
9275 * msdos.h (XMenuActivate): Update prototype.
9277 2000-07-19 Gerd Moellmann <gerd@gnu.org>
9279 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
9280 Add some more prototypes.
9282 * xterm.c, xterm.h: Add some more prototypes.
9284 * lisp.h (Fnext_single_char_property_change): Add prototype.
9286 * dispnew.c (direct_output_for_insert): Remove confusing
9287 outer local variable mouse_face_overwritten_p.
9288 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
9290 * alloc.c (allocate_string_data): Don't copy old string contents.
9292 2000-07-19 Kenichi Handa <handa@etl.go.jp>
9294 * coding.c (code_convert_region): Delete text properties before
9295 shrinking the conversion region.
9297 2000-07-18 Gerd Moellmann <gerd@gnu.org>
9299 * dispnew.c (update_text_area): Write the whole row if it
9300 has mouse-face in it.
9302 * xfaces.c (face-alternative-font-family-alist): Remove
9303 DEFVAR_LISP; staticpro instead.
9305 * xmenu.c (menu_help_callback): Call show_help_echo with
9308 * keyboard.c (show_help_echo): Add parameter WINDOW.
9309 (read_char): Call show_help_echo with window extracted from Lisp
9311 (gen_help_event): Add parameter WINDOW.
9313 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
9315 * xterm.c (help_echo_window): New variable.
9316 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
9317 (XTread_socket): Pass help_echo_window to gen_help_event.
9318 (syms_of_xterm): Initialize and staticpro help_echo_window.
9320 2000-07-18 Dave Love <fx@gnu.org>
9322 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
9324 2000-07-18 Gerd Moellmann <gerd@gnu.org>
9326 * alloc.c (allocate_string_data): If string had already data
9327 assigned, copy old contents to new string data.
9329 * coding.c (syms_of_coding): Fix typo in spelling of variable
9330 `inhibit-iso-escape-detection'.
9332 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
9334 * Makefile.in: Add dependencies on dispextern.h.
9335 (alloca.o): Don't define malloc and define EMACS_FREE instead of
9336 `free'; both can conflict with system header files.
9338 2000-07-18 Kenichi Handa <handa@etl.go.jp>
9340 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
9343 2000-07-18 Dave Love <fx@gnu.org>
9345 * window.c (Fwindow_list): Declare arg `window'.
9347 2000-07-18 Kenichi Handa <handa@etl.go.jp>
9349 * coding.c (setup_coding_system): Don't override the explicitly
9350 specified designations.
9352 2000-07-15 Miles Bader <miles@gnu.org>
9354 * editfns.c (char_property_eq, char_property_stickiness): Renamed
9355 from `text_property_eq' and `text_property_stickiness', respectively.
9356 (find_field, Fconstrain_to_field, char_property_eq)
9357 (char_property_stickiness): Changed to call char-property functions
9358 instead of text-property-only ones.
9360 * textprop.c (Fnext_single_char_property_change): Made a subr (was
9361 `next_single_char_property_change'). Do more error checking, and
9362 cleanup limit behavior.
9363 (Fprevious_single_char_property_change): New function.
9364 (syms_of_textprop): Initialize new subrs.
9366 * xdisp.c (display_prop_end, invisible_text_between_p):
9367 Call Fnext_single_char_property_change instead of
9368 next_single_char_property_change.
9370 2000-07-15 Jason Rumney <jasonr@gnu.org>
9372 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
9373 after menu is finished with.
9374 (add_menu_item): Only consider wv->title as a menu title.
9375 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
9377 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
9379 (FONT_REGEXP): Remove unused macro, and its sub-components.
9380 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
9382 * w32term.c (help_echo_object, help_echo_pos): New variables.
9383 (note_mode_line_highlight): Store additional information about the
9384 help-echo in help_echo_object and help_echo_pos. Check both
9385 `local-map' and `keymap' properties for changing the cursor
9386 (note_mouse_highlight): Store additional information about the
9387 help-echo in help_echo_object and help_echo_pos.
9388 (note_tool_bar_highlight): Set help_echo_object to nil and
9389 help_echo_pos to -1.
9390 (w32_read_socket): Use gen_help_event instead of filling
9391 input_events manually.
9392 (syms_of_w32term): Staticpro help_echo_object.
9393 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
9394 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
9395 (x_clear_mouse_face): New function.
9396 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
9397 (x_update_window_begin): No need to turn off the mouse
9399 (show_mouse_face): Set the mouse_face_p flag of glyph rows
9400 depending on whether they contain glyphs highlighted in mouse-face.
9401 (x_fill_stretch_glyph_string): Consume runs of stretch
9402 glyphs instead of a single one.
9403 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
9404 with new argument list.
9405 (x_set_glyph_string_gc): Make sure the face's GC is valid.
9406 (x_append_glyph, x_append_composite_glyph)
9407 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
9408 changes in struct glyph starting 1999-12-27. See comments for
9409 xterm.c on 2000-07-05.
9411 2000-07-14 Sam Steingold <sds@gnu.org>
9413 * xfaces.c (realize_x_face): Fix the last patch:
9414 check `default_face' before dereferencing.
9416 2000-07-14 Dave Love <fx@gnu.org>
9418 * syntax.c (back_comment): Add null default in switch (for pcc).
9420 2000-07-14 Kenichi Handa <handa@etl.go.jp>
9422 * xfaces.c (realize_x_face): Make fontset using the base of the
9423 default_face's fontset, not using the default fontset.
9425 * coding.c (inhibit_iso_escape_detection): New variable.
9426 (syms_of_coding): Make it a Lisp variable.
9427 (detect_coding_iso2022): If inhibit_iso_escape_detection is
9428 nonzero, ignore ISO2022's escape sequence.
9430 2000-07-14 Gerd Moellmann <gerd@gnu.org>
9432 * alloca.c (malloc) [emacs]: Define as xmalloc.
9434 * xfns.c (Fx_show_tip): If frame parameters contain a position,
9435 use that instead of the mouse position. Add parameters DX and DY.
9437 * dispextern.h (Fx_show_tip): Adjust number of parameters
9440 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
9441 if HELP is a function, call it with OBJECT and POS as parameters
9442 to get the help to display.
9443 (gen_help_event, kbd_buffer_store_help_event): New functions.
9444 (kbd_buffer_get_event): Construct the Lisp help-event differently.
9445 (read_char): Call show_help_echo with new parameters.
9447 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9450 * xterm.c (help_echo_object, help_echo_pos): New variables.
9451 (note_mode_line_highlight): Store additional information about the
9452 help-echo in help_echo_object and help_echo_pos. Check both
9453 `local-map' and `keymap' properties for changing the cursor
9454 (note_mouse_highlight): Store additional information about the
9455 help-echo in help_echo_object and help_echo_pos.
9456 (note_tool_bar_highlight): Set help_echo_object to nil and
9457 help_echo_pos to -1.
9458 (XTread_socket): Use gen_help_event instead of filling
9459 input_events manually.
9460 (syms_of_xterm): Staticpro help_echo_object.
9462 * xmenu.c (menu_highlight_callback): Use
9463 kbd_buffer_store_help_event instead of setting up and input_event
9466 * xdisp.c (eval_form): GCPRO argument sexpr.
9467 (call_function): New function.
9468 (handle_single_display_prop): Use call_function and FUNCTIONP
9469 instead of checking whether if font_height is a symbol and
9472 * eval.c (internal_condition_case_2): New function.
9474 * lisp.h (FUNCTIONP): New macro.
9475 (internal_condition_case_2, call_function): Add prototypes.
9477 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
9478 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
9479 Always set `arg' member of input_events.
9480 (construct_menu_click): Unused function removed.
9482 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
9484 * w32term.c (construct_mouse_click, construct_mouse_wheel)
9485 (construct_drag_n_drop, x_scroll_bar_handle_click)
9486 (w32_read_socket): Always set `arg' member of input_events.
9488 * keyboard.c (show_help_echo): Use eval_form. Add comment.
9490 * lisp.h (eval_form): Add prototype.
9492 * xdisp.c (eval_form): Make it externally visible.
9494 2000-07-13 Gerd Moellmann <gerd@gnu.org>
9496 * xterm.c (x_handle_tool_bar_click): Store the frame in the
9497 frame_or_window slot of TOOL_BAR_EVENT input events instead of
9498 consing. For prefix events, store the frame in the `arg' slot of
9499 the event, otherwise store the key there.
9500 (XTread_socket): Instead of consing, use the frame_or_window slot
9501 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
9503 * xmenu.c (menu_highlight_callback): Store help string in the
9504 `arg' member of the input event; don't cons.
9505 (menubar_selection_callback): Use the `arg' slot of input events
9506 to queue additional information, instead of consing.
9508 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
9510 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
9512 (w32_read_socket): Adapt to changes in HELP_EVENTs.
9514 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
9515 input events to queue additional information, instead of consing.
9517 * keyboard.c (kbd_buffer_gcpro): Renamed from
9518 kbd_buffer_frame_or_window. Now used for all Lisp objects
9519 referenced from the input queue.
9520 (kbd_buffer_store_event): Always use structure assignment for
9521 copying input events. Record all Lisp objects referenced from
9522 events in kbd_buffer_gcpro.
9523 (kbd_buffer_get_event): Construct Lisp `help-echo' events
9524 differently from input events. Test for prefix menu_bar_events
9525 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
9526 event in kbd_buffer_gcpro to nil.
9527 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
9528 frame_or_window is equal to its arg member as prefix events.
9529 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
9530 used by an input event to nil.
9531 (init_keyboard): Use two times the size of the input queue
9532 for kbd_buffer_gcpro.
9533 (syms_of_keyboard): Likewise.
9535 * emacs.c (handle_USR2_signal, handle_USR1_signal):
9536 Use USER_SIGNAL_EVENT.
9538 * termhooks.h (struct input_event): Add member `arg'.
9539 (MENU_BAR_EVENT): Renamed from menu_bar_event.
9540 (USER_SIGNAL_EVENT): Renamed from user_signal.
9542 * xfaces.c (ASET): Remove definition.
9544 * lisp.h (AREF, ASET, ASIZE): New macros.
9546 * fontset.c (AREF, ASIZE): Remove definitions.
9548 * fns.c (AREF): Remove definition.
9550 * composite.c (AREF): Remove definition.
9552 2000-07-12 Gerd Moellmann <gerd@gnu.org>
9554 * dispnew.c (redraw_overlapped_rows): Add missing local.
9555 (scrolling_window): Remove debug code.
9557 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
9558 Before scrolling, turn off a mouse-highlight in the window
9561 * xterm.c (x_update_window_end): Add parameter
9562 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
9563 redisplay in XTframe_up_to_date.
9564 (x_clear_mouse_face): New function.
9565 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
9567 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
9569 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
9570 it when any row is written to that contains glyphs highlighted in
9572 (update_window): Call the window update end hook with new
9573 parameter MOUSE_FACE_OVERWRITTEN_P.
9574 (direct_output_for_insert): Give up if row contains mouse-face.
9576 * dispextern.h (struct redisplay_interface): Add parameter
9577 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
9578 (clear_mouse_face): New function pointer member.
9580 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
9582 * syntax.c (back_comment): Use one switch rather than a few `if's.
9583 Obey open_paren_in_column_0_is_defun_start.
9584 When reverting to the `slow' method, try to nicely handle the case
9585 of nested comments by checking that the comment-starter we found
9586 does indeed match the comment-ender.
9587 (scan_sexps_forward, scan_sexps_forward):
9588 Ignore excessive opening parenthesis rather than throwing an error.
9590 2000-07-11 Gerd Moellmann <gerd@gnu.org>
9592 * doc.c (Fsubstitute_command_keys): Handle case that a GC
9593 in Fwhere_is_internal or get_keymap_1 relocates string contents.
9595 * dispnew.c (direct_output_forward_char): Give up if currently
9596 displaying a message instead of the minibuffer contents.
9598 * xterm.c (x_update_window_begin): No need to turn off the mouse
9600 (show_mouse_face): Set the mouse_face_p flag of glyph rows
9601 depending on whether they contain glyphs highlighted in mouse-face.
9603 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
9604 compare the mouse_face_p flags of both rows.
9606 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
9608 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
9610 * keyboard.c (show_help_echo): Accept additional parameter
9611 ok_to_overwrite_keystroke_echo.
9612 (read_char): Call show_help_echo with a zero
9613 ok_to_overwrite_keystroke_echo argument.
9614 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
9615 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
9616 ok_to_overwrite_keystroke_echo argument.
9617 * w32menu.c (w32_menu_display_help): Call show_help_echo with
9618 non-zero ok_to_overwrite_keystroke_echo argument.
9620 2000-07-10 Gerd Moellmann <gerd@gnu.org>
9622 * xdisp.c (try_window_id): If changes are all below what is
9623 displayed in the window, and point is in the window, we still
9624 might have to find point on the display.
9626 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
9627 glyphs instead of a single one.
9628 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
9629 with new argument list.
9630 (x_set_glyph_string_gc): Make sure the face's GC is valid.
9632 * keymap.c (get_keymap_1): Add comment that this function can GC.
9633 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
9634 comment that functions can GC.
9635 (Fset_keymap_parent): GCPRO arg KEYMAP.
9637 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
9639 * msdos.c (XMenuActivate): After exiting the menu, restore the
9640 echo area message and erase it.
9642 2000-07-10 Kenichi Handa <handa@etl.go.jp>
9644 * fontset.c (Ffontset_info): Make the return value more compatible
9645 with that of Emacs 20.
9647 2000-07-07 Gerd Moellmann <gerd@gnu.org>
9649 * eval.c (Fsignal): Handle case that backtrace_list is null.
9651 2000-07-07 Kenichi Handa <handa@etl.go.jp>
9653 * ccl.c (Fccl_execute): Typo fixed.
9655 2000-07-06 Gerd Moellmann <gerd@gnu.org>
9657 * window.c (window_loop): Add missing gcpro1 local variable.
9659 * window.c (Fwindow_list): Reverse list at the end.
9660 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
9661 means allow windows on OWINDOW's frame, only.
9662 (window_loop): Simplified; use Fwindow_list.
9664 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
9666 2000-07-05 Gerd Moellmann <gerd@gnu.org>
9668 * xterm.c (XTread_socket): Increment handling_signal at the start,
9669 decrement it at the end.
9671 * eval.c (handling_signal): New variable.
9672 (Fsignal): Abort if handling_signal is non-zero.
9674 * lisp.h (handling_signal): External declaration.
9676 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
9678 2000-07-05 Ken Raeburn <raeburn@gnu.org>
9680 Sound support for NetBSD through "Linux emulation" support:
9681 * config.in (HAVE_SOUNDCARD_H): Undef.
9682 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
9683 * Makefile.in (LIBSOUND): New variable.
9684 (LIBES): Include it.
9685 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
9686 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
9687 (vox_open): Use DEFAULT_SOUND_DEVICE.
9688 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
9690 2000-07-05 Gerd Moellmann <gerd@gnu.org>
9692 * print.c (print_error_message): If Vsignaling_function is set,
9693 show it in *Messages*.
9695 * lisp.h (Vsignaling_function): External declaration.
9697 * eval.c (Vsignaling_function): New variable.
9698 (Fsignal): Compute it.
9699 (syms_of_eval): Staticpro it.
9701 2000-07-05 Dave Love <fx@gnu.org>
9703 * syswait.h: Use the autoconf recommended approach. Old code
9704 #if'd out in case we need to revert.
9706 * config.in (HAVE_SYS_WAIT_H): Added.
9708 2000-07-05 Andrew Innes <andrewi@gnu.org>
9710 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
9711 when non-NULL instead of __morecore, to take account of buffer
9712 memory. This also solves a problem with spurious memory warnings
9715 * ralloc.c: Make real_morecore non-static.
9717 * eval.c (internal_condition_case): Comment out abort if
9718 interrupt_input_blocked is not zero.
9720 * makefile.nt: Add support for `bootstrap' and related targets.
9721 Include minimal debug info in emacs.exe in release build.
9722 Remove all dependencies on lisp.h, and fixup some others.
9724 * w32.c (init_environment): Install code from 20.7 for providing
9725 default values for environment variables, based on the
9726 executable's own location.
9727 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
9728 (sys_socket): Install socket inheritance bug fix from 20.7.
9730 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
9731 here via blockinput.h).
9733 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
9735 * w32menu.c (w32_menu_display_help):
9736 * xmenu.c (menu_help_callback): Use show_help_echo.
9738 * keyboard.h (show_help_echo): Declare.
9740 * keyboard.c (show_help_echo): New function, extracted from read_char.
9741 Feval its `msg' argument if it's a cons cell.
9742 (read_char): Use it.
9743 (follow_key): Pass `autoload' to get_keyelt.
9745 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
9746 (note_tool_bar_highlight, XTread_socket):
9747 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
9749 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
9750 (note_tool_bar_highlight, w32_read_socket):
9751 Do not gratuitously ignore non-string `help-echo' properties.
9753 2000-07-05 Gerd Moellmann <gerd@gnu.org>
9755 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
9757 * window.c (delete_all_subwindows): Reset Vwindow_list.
9759 * xterm.c (x_append_glyph, x_append_composite_glyph)
9760 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
9761 changes in struct glyph starting 1999-12-27. Some bit-fields of
9762 struct glyph were not set, which made glyphs unequal when compared
9763 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
9764 effects were the result. This also depended on the contents of
9765 memory returned by xmalloc. If flickering happens again, activate
9766 the code in clear_glyph_row that's in #if 0. If the flickering is
9767 gone with that, chances are that it is caused by something similar.
9769 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
9771 * dispextern.h: Add some comments.
9773 * window.c (add_window_to_list): Add parameter LIST.
9774 (window_list): Order list so that, for each frame, windows are
9775 in canonical order, and so that frames appear in the list in
9776 the order given by Vframe_list.
9777 (next_window): Reverse the handling of NEXT_P.
9779 2000-07-04 Gerd Moellmann <gerd@gnu.org>
9781 * window.c (Vwindow_list): New variable.
9782 (make_window, delete_window): Set Vwindow_list to nil.
9783 (check_window_containing): New function.
9784 (window_from_coordinates): Rewritten.
9785 (add_window_to_list, window_list, candidate_window_p)
9786 (decode_next_window_args, next_window): New functions.
9787 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
9788 (Fwindow_list): New function.
9789 (Fother_window): Cleaned up.
9790 (foreach_window): Add a longer "variable argument list". Let
9791 callback function return 0 to indicate that cycling over windows
9793 (foreach_window_1): Likewise.
9794 (freeze_window_start): Return int.
9795 (init_window): New function.
9796 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
9798 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
9799 input_event with bzero.
9800 (main): Call init_window.
9802 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
9805 2000-07-04 Kenichi Handa <handa@etl.go.jp>
9807 * composite.h (make_composition_value_copy): Extern it.
9809 * composite.c (make_composition_value_copy): New function.
9811 * editfns.c (Fformat): While copying text properties, make each
9812 composition property value a copy.
9814 * fns.c (concat): While copying text properties, make each
9815 composition property value a copy.
9817 2000-07-03 Gerd Moellmann <gerd@gnu.org>
9819 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
9821 * fns.c (sweep_weak_table): Mark only objects that are not
9824 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
9825 include those frames as candidates which have their focus
9826 redirected to the minibuffer frame.
9828 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
9830 * fns.c (Fputhash): Return `value' rather than nil.
9832 2000-06-30 Gerd Moellmann <gerd@gnu.org>
9834 * frame.c (next_frame): Don't check focus redirection in case
9835 MINIBUF is a window. Doing so excludes frames using MINIBUF
9836 unless their focus is redirected, which contradicts the
9837 specification of next-frame, and leads to infinite loops in
9838 certain situations when cycling through windows with next-window.
9840 2000-06-30 Kenichi Handa <handa@etl.go.jp>
9842 * coding.c (code_convert_region): Even if the length of text is
9843 zero, try to convert it if coding->type is coding_type_ccl.
9844 (decode_coding_string, encode_coding_string): Likewise.
9846 2000-06-28 Gerd Moellmann <gerd@gnu.org>
9848 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
9849 the display if windows_or_buffers_changed.
9851 * dispnew.c (struct row_entry): New structure.
9852 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
9853 (row_table_size, old_lines, new_lines, old_lines_size)
9854 (new_lines_size, run_pool, runs_size, runs): New variables.
9855 (add_row_entry): New function.
9856 (scrolling_window): Use data structures allocated with xmalloc and
9857 held in global variables, instead of allocating them with alloca and
9858 holding them in local variables. Use a larger hash table whose
9859 size depends on glyph matrix sizes. Don't use bzero to clear the
9860 hash table; instead, clear used slots only.
9862 * fns.c (next_almost_prime): Make it externally visible.
9864 * lisp.h (next_almost_prime): Add prototype.
9866 * s/isc4-0.h (sigunblock): Define.
9868 * s/sco5.h (sigunblock): Define.
9870 2000-06-27 Dave Love <fx@gnu.org>
9872 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
9873 (moved to osf5-0.h).
9874 [!NOT_C_CODE]: Protect string.h stuff.
9876 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
9877 (sys_siglist, NSIG): Definitions moved here from osf1.h.
9879 2000-06-27 Gerd Moellmann <gerd@gnu.org>
9881 * xdisp.c (resize_mini_window): Subtract the extra line spacing
9882 below the last line from the needed window height.
9884 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
9886 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
9887 (Fwidget_get): Use it.
9888 (syms_of_fns): Defsubr it.
9890 2000-06-26 Gerd Moellmann <gerd@gnu.org>
9892 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
9893 display info for XIM.
9894 (xim_open_dpy): Likewise.
9895 (xim_close_dpy): Don't free the display info's XIM.
9897 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
9899 * config.in (USE_XIM): New define.
9901 * keymap.c (get_keyelt): For menu-items containing a `:filter
9902 FILTER', apply FILTER to the menu-item's definition to get the
9903 real definition to use.
9905 * lisp.h (QCfilter): External declaration.
9907 * xfns.c (Fimage_size): New function.
9908 (syms_of_xfns): Defsubr it.
9910 2000-06-26 Andreas Schwab <schwab@suse.de>
9912 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
9915 2000-06-25 Dave Love <fx@gnu.org>
9917 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
9919 * Makefile.in (blockinput.h): Depend on atimer.h.
9920 (atimer.h): Depend on systime.h.
9922 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
9924 * atimer.h: Protect against multiple inclusion. Include systime.h.
9926 * lisp.h (swap_in_global_binding): Declare.
9928 2000-06-24 Ken Raeburn <raeburn@gnu.org>
9930 * process.c (Fopen_network_stream): Turn off atimers for duration
9931 of call to connect. (Patch from Gerd.)
9933 2000-06-23 Dave Love <fx@gnu.org>
9935 * ralloc.c: Maybe include unistd.h
9937 * emacs.c (setgrp): Undefine before defining.
9938 (malloc_warning, set_time_zone_rule, index): Prototype.
9940 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
9941 HAVE_STRUCT_TIMEZONE.
9943 * s/osf1.h: Move string.h hack here from alpha.h and make it
9945 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
9947 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
9948 (SOCKLEN_TYPE): Don't define.
9950 * m/alpha.h: Remove string.h hack.
9952 * s/osf5-0.h: New file.
9954 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
9955 include time.h, done by systime.h.
9956 [__FreeBSD__]: Remove redundant includes.
9958 * callproc.c (setpgrp): Undefine before defining.
9959 (delete_temp_file): Return Qnil to avoid warning.
9961 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
9963 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
9966 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
9968 * composite.h (compose_text): Declare.
9970 * xterm.c: Don't include sys/types.h unconditionally. Don't
9971 protect its inclusion with !USG (following xmenu.c).
9973 2000-06-23 Gerd Moellmann <gerd@gnu.org>
9975 * xfns.c (x_create_tip_frame): Initialize frame's colors like
9978 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
9980 * coding.c (decode_eol_post_ccl): Special handling for undecided
9981 and inconsistent EOL types.
9983 2000-06-22 Gerd Moellmann <gerd@gnu.org>
9985 * xrdb.c (x_load_resources): Add default resource for scroll bar's
9986 trough color and main window's background color.
9988 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
9990 * xterm.h (Xt_app_con): External declaration.
9992 * widget.c (EmacsFrameRealize): Fix typo.
9994 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
9996 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
9997 (handle_invisible_prop): Record the start of invisible text in
9998 it->add_overlay_start.
9999 (struct overlay_entry): Add member `overlay'.
10000 (handle_overlay_change): Simplify.
10001 (next_overlay_string): After having processed overlay strings at the
10002 end of the buffer, record that fact in
10003 it->overlay_strings_at_end_processed_p.
10004 (compare_overlay_entries): If before- and after-strings come
10005 from the same overlay, let before-strings come first.
10006 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
10007 (load_overlay_strings): Take it->add_overlay_start into account
10008 when adding overlay strings.
10010 * dispextern.h (struct it): Add member add_overlay_start.
10012 2000-06-22 Dave Love <fx@gnu.org>
10014 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
10016 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
10018 2000-06-22 Kenichi Handa <handa@etl.go.jp>
10020 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
10023 2000-06-21 Dave Love <fx@gnu.org>
10025 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
10027 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
10029 * syntax.c (back_comment): Simplify string-parity counting (with
10030 the added benefit of handling multiple string-styles as long as
10031 they are not intertwined).
10032 Jump to the slow code as soon as a comment starter is found in
10033 a "string_lossage" position. Fixes the case: " /* " /* " */.
10035 2000-06-21 Dave Love <fx@gnu.org>
10037 * Makefile.in: Use GETLOADAVG_LIBS.
10039 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
10040 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
10042 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10044 * syntax.c (describe_syntax): Recognize the `n'estable bit.
10045 (Fforward_comment, scan_lists):
10046 Check the comstyle of single-char comment-starters.
10047 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
10048 we're just at the beginning of the comment (f.ex with (*) ... (*)).
10049 Check the comstyle of single-char comment-starters.
10050 Clarify control-flow around the Scomment case.
10052 2000-06-20 Dave Love <fx@gnu.org>
10054 * fns.c (make_hash_table, maybe_resize_hash_table):
10055 Cast arg of next_almost_prime.
10057 * tparam.c [emacs]: Include lisp.h.
10059 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
10062 2000-06-20 Gerd Moellmann <gerd@gnu.org>
10064 * keyboard.c (adjust_point_for_property): Check if display
10065 property should be treated as intangible by looking at its value.
10067 * xdisp.c (single_display_prop_intangible_p)
10068 (display_prop_intangible_p): New functions.
10070 * dispextern.h (display_prop_intangible_p): Add prototype.
10072 * xdisp.c (dump_glyph_row): Show type of glyph->object.
10074 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
10075 argument to sigprocmask.
10077 * s/sco5.h (sigblock): Redefined to pass a pointer as second
10078 argument to sigprocmask.
10080 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
10081 sigprocmask_set, and pass a pointer to it to sigprocmask.
10083 * sysdep.c (sigprocmask_set): New variable.
10085 * fileio.c (make_temp_name): Don't use `%s' in string passed to
10088 2000-06-20 Sam Steingold <sds@gnu.org>
10090 * xrdb.c: Don't declare xmalloc, xrealloc.
10092 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10094 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
10095 (re_comp): Cast gettext return value to avoid complaints when
10098 2000-06-20 Dave Love <fx@gnu.org>
10100 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
10102 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
10104 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
10106 * m/alpha.h: Don't declare xmalloc, xrealloc.
10108 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
10110 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
10112 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
10114 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
10117 * keyboard.h (poll_for_input_1): Declare.
10119 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
10121 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
10123 * doprnt.c: Don't declare xmalloc, xrealloc.
10125 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
10126 (getenv, ctime, getwd): Removed.
10127 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
10129 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
10130 x_set_tool_bar_lines.
10132 * config.in: Add HAVE_GETWD. Move some definitions above
10133 machine/system includes.
10135 2000-06-20 Kenichi Handa <handa@etl.go.jp>
10137 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
10139 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
10140 contain information about ENCODING.
10142 * fontset.c (FONTSET_ASCII): Use the first element of char table
10143 for an ASCII font, not defalt slot.
10144 (fontset_ref_via_base): If FONTSET doesn't contain information for
10145 C, try the default fontset.
10146 (make_fontset): Don't copy the default fontset.
10147 (fontset_font_pattern): Likewise.
10148 (accumulate_font_info): If ELT is nil, use the corresponding
10149 element in the default fontset.
10151 2000-06-19 Dave Love <fx@gnu.org>
10153 * syntax.c (Fparse_partial_sexp): Doc fix.
10155 * regex.h: Test PROTOTYPES as well as __STDC__.
10157 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
10158 errno, strerror. Put text after #endif in comment.
10160 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
10162 * xterm.c (x_frame_of_widget): Likewise.
10164 2000-06-19 Gerd Moellmann <gerd@gnu.org>
10166 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
10167 to Vfundamental_mode_abbrev_table.
10169 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
10170 bogus objects are marked. This slows down GC by ~80 percent, but
10171 it might be worth trying when debugging GC-related problems.
10172 This feature requires conservative stack marking to be enabled.
10174 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
10175 returns XLookupChars, reset `modifiers' to zero.
10177 2000-06-19 Dave Love <fx@gnu.org>
10179 * mktime.c: Unprotoized.
10181 2000-06-19 Richard Stallman <rms@gnu.org>
10183 * data.c (set_internal): If variable is frame-local,
10184 store the new value immediately into the frame parameter alist.
10186 2000-06-19 Ken Raeburn <raeburn@gnu.org>
10188 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
10189 in the custom handler pointer.
10191 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
10192 value, or checks for CHAR_META can fail when Lisp_Object is a
10194 * keymap.c (get_keyelt): Likewise.
10196 2000-06-19 Kenichi Handa <handa@etl.go.jp>
10198 * ccl.h (struct ccl_program): New member eol_type.
10199 (struct ccl_spec): New member cr_carryover.
10201 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
10202 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
10204 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
10205 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
10206 (decode_eol_post_ccl): New function.
10207 (decode_coding): Don't detect EOL format here for CCL based coding
10209 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
10210 decode_eol_post_ccl after running the CCL program.
10211 (code_convert_region): Don't detect EOL format here for CCL based
10213 (decode_coding_string): Likewise.
10215 2000-06-18 Ken Raeburn <raeburn@gnu.org>
10217 * charset.c (update_charset_table): Use XINT on "iso_final_char"
10218 when treating it as an integer.
10220 * coding.h (encode_coding_string): Declare.
10222 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
10225 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
10226 "xkeymap" to avoid shadowing the "enum map_type" value that needs
10227 to be passed to get_local_map.
10229 * sound.c (Fplay_sound): Don't call make_number on
10230 Frun_hook_with_args count argument.
10232 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
10233 for lisp objects in X event structure data field, when lisp
10234 objects are represented with unions.
10235 (x_scroll_bar_to_input_event): Ditto.
10237 2000-06-16 Ken Raeburn <raeburn@gnu.org>
10239 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
10240 termination of string. Fix sense of test whether
10241 Vline_number_display_limit is an integer.
10243 2000-06-16 Gerd Moellmann <gerd@gnu.org>
10245 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
10246 only if HAVE_X_WINDOWS.
10248 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
10251 * dispnew.c (update_frame_1): Handle case that cursor vpos is
10254 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
10256 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
10259 2000-06-15 Kenichi Handa <handa@etl.go.jp>
10261 * coding.c (decode_coding_emacs_mule): Always set src_base at the
10262 start of the while loop.
10264 2000-06-15 Gerd Moellmann <gerd@gnu.org>
10266 * atimer.c (alarm_signal_handler): Add forward declaration.
10268 * data.c (set_internal): Remove debug code.
10270 2000-06-14 Gerd Moellmann <gerd@gnu.org>
10272 * Makefile.in (bootstrap-temacs): Add `-I../src'.
10274 * unexec.c (toplevel) [COFF]: Include coff.h.
10276 * s/lynxos.h: New file.
10278 * keymap.c (Fsingle_key_description): Enclose function key and
10279 event symbol names in angle brackets.
10281 * xdisp.c (setup_echo_area_for_printing): Call
10282 message_log_maybe_newline if message_buf_print is not set.
10284 * print.c (printchar, strout): Don't check message_buf_print
10285 before calling setup_echo_area_for_printing because that
10286 function does something useful even when message_buf_print is
10289 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
10291 (ensure_echo_area_buffers): Initialize echo buffer's
10292 truncate lines setting to nil.
10293 (with_echo_area_buffer): Don't set the echo buffer's truncate
10294 lines setting here.
10295 (set_message_1): Set it here instead, based on the value
10296 of message_truncate_lines.
10297 (resize_mini_window): Handle case that lines are truncated.
10298 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
10299 DEFVAR_BOOL message-truncate-lines.
10301 * keyboard.c (read_char): Bind message-truncate-lines to t
10302 while displaying a help-echo.
10304 * lisp.h (Qmessage_truncate_lines): External declaration.
10306 2000-06-13 Gerd Moellmann <gerd@gnu.org>
10308 * xdisp.c (Vline_number_display_limit): Renamed from
10309 line_number_display_limit.
10310 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
10311 Extend documentation string. Initialize
10312 Vline_number_display_limit to nil meaning no limit.
10313 (decode_mode_spec): Use Vline_number_display_limit with its new
10316 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
10318 2000-06-13 Richard Stallman <rms@gnu.org>
10320 * frame.c (Fmodify_frame_parameters): Doc fix.
10322 * xfns.c (x_set_frame_parameters): Comment fix.
10324 * frame.c (store_frame_param): Call swap_in_global_binding if the
10325 variable's current binding was chosen based on this frame.
10327 * data.c (swap_in_global_binding): New function.
10329 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10331 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
10332 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
10334 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10336 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
10338 2000-06-12 Jason Rumney <jasonr@gnu.org>
10340 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
10342 * w32.h (EMACS_W32_H): Renamed from _NT_H_
10344 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
10346 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
10348 2000-06-12 Gerd Moellmann <gerd@gnu.org>
10350 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
10351 (syms_of_xfaces): Defsubr Sdump_colors.
10352 (x_free_colors): Don't treat b&w specially on default visual.
10353 (x_free_dpy_colors): New function.
10354 (free_face_colors): Don't check visual class; it's done
10357 * xterm.c (x_frame_of_widget): New function.
10358 (x_alloc_nearest_color_for_widget): Use it.
10359 (x_copy_dpy_color): New function.
10360 (x_destroy_window): Free various colors.
10362 2000-06-12 Kenichi Handa <handa@etl.go.jp>
10364 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
10366 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
10368 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
10370 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
10372 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
10374 2000-06-11 Dave Love <fx@gnu.org>
10376 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
10378 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
10380 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
10382 2000-06-11 Gerd Moellmann <gerd@gnu.org>
10384 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
10387 2000-06-10 Kenichi Handa <handa@etl.go.jp>
10389 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
10390 (regex_compile): Fix the code for handling the case of single byte
10391 char and multibyte char being mixed in a range within [...].
10393 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
10394 and dst_multibyte members of coding.
10396 * charset.c (update_charset_table): Update the table
10397 bytes_by_char_head.
10398 (init_charset_once): Initialize elements of bytes_by_char_head to
10399 1 except for leading codes for private charases.
10401 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
10402 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
10404 2000-06-09 Ken Raeburn <raeburn@gnu.org>
10406 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
10407 access the data it doesn't point to.
10409 2000-06-08 Gerd Moellmann <gerd@gnu.org>
10411 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
10412 will be translated to a switch-frame event when reading the
10413 event queue. This is necessary because Emacs otherwise won't
10414 perform a switch-frame to a new frame until some other event, for
10415 example a keystroke event, forces it to do so. This has various
10416 effects, one visible being that the cursor of a frame created with
10417 C-x 5 2 or switched to with a window manager key binding like
10418 A-TAB stays hollow because selected_window isn't on the newly
10419 focused frame until the switch-frame is performed.
10421 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
10422 generating a switch-frame event if necessary.
10424 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
10426 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
10429 2000-06-08 Kenichi Handa <handa@etl.go.jp>
10431 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
10433 2000-06-07 Gerd Moellmann <gerd@gnu.org>
10435 * window.c (displayed_window_lines): Take empty lines at
10436 the bottom of a window into account.
10438 * window.c (displayed_window_lines): New function.
10439 (Fmove_to_window_line): Use displayed_window_lines to determine
10440 the number of lines to move, instead of using the window's height.
10442 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
10443 to stop reading, even if the form read sets point to a different
10444 value when evaluated.
10446 * xdisp.c (display_line): Fix code deciding in which line to
10449 2000-06-07 Kenichi Handa <handa@etl.go.jp>
10451 * fileio.c (e_write): Free composition data if stored in
10454 2000-06-06 Gerd Moellmann <gerd@gnu.org>
10456 * xdisp.c (display_line): Set row's and iterator's
10457 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
10458 Set cursor even if row ends in the middle of a character.
10459 (dump_glyph_row): Print values of new flags.
10460 (redisplay_window) <cursor movement in unchanged window>: When
10461 point has been moved forward, and PT is at the end of the cursor
10462 row, don't place the cursor in the next row if the cursor row ends
10463 in the middle of a character or at ZV.
10465 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
10466 (struct glyph_row): Add starts_in_middle_of_char_p and
10467 ends_in_middle_of_char_p.
10468 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
10469 ends_in_middle_of_char_p flag.
10470 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
10472 * term.c (append_glyph): Revert change of 2000-06-06.
10474 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
10475 padding glyph not fitting on line as whole character not
10478 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
10479 this isn't true for images with `:ascent 100'.
10481 2000-06-06 Kenichi Handa <handa@etl.go.jp>
10483 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
10484 as modified if it is originally unmodified.
10486 * term.c (encode_terminal_code): Change the way to check if
10487 terminal coding does any conversion.
10488 (append_glyph): Set glyph->pixel_width correctly.
10490 * xdisp.c (display_line): While checking line continuation, pay
10491 attention to a padding glyph.
10493 2000-06-05 Gerd Moellmann <gerd@gnu.org>
10495 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
10497 2000-06-05 Dave Love <fx@gnu.org>
10499 * xdisp.c: Include fontset.h.
10501 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
10503 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10505 * dispnew.c: Conditionally include term.h.
10507 * coding.h: Declare code_convert_string_norecord.
10509 * frame.h (struct frame): Use volatile unconditionally.
10511 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
10513 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
10515 * systime.h: Protect against multiple inclusion.
10516 (timezone) [USG5_4]: Define as time_t.
10518 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10519 (Foptimize_char_table, make_temp_name): Declare.
10521 * Makefile.in (xdisp.o): Depend on fontset.h.
10523 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10525 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10526 (Foptimize_char_table, make_temp_name): Declare.
10530 * s/netbsd.h: Don't define autoconfiscated MATHERR.
10532 2000-06-02 Dave Love <fx@gnu.org>
10534 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
10536 2000-06-02 Gerd Moellmann <gerd@gnu.org>
10538 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
10539 result face, set flags in that face indicating that colors may not
10542 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
10543 glyph, use the ASCII NUL character to determine the face.
10545 2000-06-02 Dave Love <fx@gnu.org>
10547 * sysdep.c: Conditionally include stdlib.h, unistd.h.
10548 (VFORK_RETURN_TYPE): Remove.
10550 * config.in: Add NO_MATHERR.
10552 2000-06-01 Dave Love <fx@gnu.org>
10554 * cmds.c (internal_self_insert): Don't check
10555 Vbefore_change_function, Vafter_change_function.
10557 * insdel.c (signal_before_change, signal_after_change): Likewise.
10559 * buffer.c (Vbefore_change_function, Vafter_change_function):
10560 Variables and their initializations deleted.
10562 * callint.c (Fcall_interactively): Doc fix.
10564 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
10566 2000-05-31 Dave Love <fx@gnu.org>
10568 * textprop.c: Revert last change -- duplicated.
10570 2000-05-31 Gerd Moellmann <gerd@gnu.org>
10572 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
10575 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
10577 2000-05-31 Jason Rumney <jasonr@gnu.org>
10579 * search.c (Fre_search_forward, Fre_search_backward)
10580 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
10582 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
10584 2000-05-30 Jason Rumney <jasonr@gnu.org>
10586 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
10587 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
10589 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
10591 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
10592 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
10593 expand a nil default_filename.
10595 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
10596 pointer to glyph_to_pixel_coords, not a frame.
10598 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
10599 coding.h to dependencies.
10601 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
10603 * w32console.c (glyph_to_pixel_coords): Change first parameter to
10604 window pointer to be consistent with w32term.c and xterm.c.
10606 * w32fns.c: Format and doc changes to bring closer to xfns.c.
10607 (VIETNAMESE_CHARSET): Define if not defined in system headers.
10608 (Qline_spacing, Qcenter): New variables.
10609 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
10610 (x_set_line_spacing): New function.
10611 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
10612 (x_specified_cursor_type): New function.
10613 (x_set_cursor_type): Use it.
10614 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
10616 (validate_x_resource_name, x_get_resource_string): Measure lengths
10617 of external strings in bytes.
10618 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
10619 GetTextExtentPoint32 with NULL title.
10620 (Fx_create_frame): Initialize Qline_spacing.
10621 (w32_load_system_font): Initialize font->double_byte_p.
10622 (x_to_w32_charset): Use Vw32_charset_info_alist.
10623 (Image, busy cursor, tooltip functions): Merged changes from
10624 xfns.c. Not yet functional on Windows.
10626 * w32gui.h (W32FontStruct): Add double_byte_p member.
10628 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
10629 (emacs_button_translation): Use it.
10630 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
10631 in `mask' to be set.
10633 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
10636 * w32term.c: Format and doc changes to bring closer to xterm.c.
10637 (w32_char_font_type): New enum.
10638 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
10639 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
10640 (w32_encode_char): New function.
10641 (x_encode_char): Removed.
10642 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
10643 x_encode_char and w32_font_is_double_byte.
10644 (x_produce_image_glyph): Use image_ascent.
10645 (x_produce_glyphs): Use new version of w32_per_char_metric and
10646 handle NULL return value. Allow extra line spacing.
10647 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
10648 (w32_get_glyph_overhangs): Remove unicode_p param. Use
10649 w32_font_type member of glyph instead.
10650 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
10651 (fast_find_position): Make sure not to consider rows not visible
10653 (w32_read_socket) [WM_MENUSELECT]: Cannot call
10654 w32_menu_display_help with input blocked, as it can abort.
10655 (x_display_and_set_cursor): Choose cursor depending
10656 on buffer-local value of cursor_type.
10657 (x_draw_bar_cursor): Add parameter WIDTH.
10659 * w32term.h (CP_DEFAULT): Define.
10660 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
10662 2000-05-30 Gerd Moellmann <gerd@gnu.org>
10664 * search.c (Fre_search_forward, Fre_search_backward)
10665 (Fposix_search_backward, Fposix_search_forward): Doc fix.
10667 2000-05-30 Kenichi Handa <handa@etl.go.jp>
10669 * coding.c (detect_coding_iso2022): Fix code for checking
10670 CODING_CATEGORY_MASK_ISO_8_2.
10672 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
10674 * regex.c (PREFETCH_NOLIMIT): New function.
10675 (re_match_2_internal): Use it and adjust the end_match_2 logic.
10677 2000-05-29 Gerd Moellmann <gerd@gnu.org>
10679 * syntax.c (find_defun_start): Move test for
10680 open_paren_in_column_0_is_defun_start outside of the loop.
10682 * xdisp.c (redisplay_window): Really switch buffers when
10683 displaying mode lines, and temporarily set selected_frame to the
10684 frame of the window that's redisplayed.
10686 * xfaces.c (free_realized_faces): Block/unblock input.
10687 (free_realized_multibyte_face): Ditto.
10689 2000-05-29 Dave Love <fx@gnu.org>
10691 * textprop.c (Qkeymap): New variable.
10692 (syms_of_textprop): Intern it.
10694 * keymap.c: Include intervals.h.
10695 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
10697 * Makefile.in (keymap.o): Depend on intervals.h.
10699 * keyboard.c (menu_bar_items, tool_bar_items)
10700 (Fexecute_extended_command): Deal with `keymap' property.
10701 (read_key_sequence): Track map from `keymap' property as well as
10704 * intervals.c (get_local_map): Extra arg to allow looking for
10707 * intervals.h (map_property): New enum.
10708 (get_local_map): Extra arg using it.
10709 (Qkeymap): Declare.
10711 * lisp.h (get_local_map): Don't declare here.
10713 2000-05-29 Kenichi Handa <handa@etl.go.jp>
10715 * Makefile.in (callproc.o): Depend on composite.h.
10717 * callproc.c: Include composite.h.
10718 (Fcall_process): Handle composition correctly.
10720 * coding.h (coding_allocate_composition_data): Extern it.
10721 (coding_restore_composition): Likewise.
10723 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
10724 yet allocated, finish decoding with result
10725 CODING_FINISH_INSUFFICIENT_CMP.
10726 (coding_allocate_composition_data): Make it non-static.
10727 (coding_restore_composition): Likewise.
10729 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
10731 * charset.c (syms_of_charset): Revert last change.
10733 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10735 * term.c (produce_glyphs): Treat characters from the eight-bit-*
10736 charsets as unibyte, with 1-column screen width. Sent by Kenichi
10739 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10741 * charset.c (syms_of_charset): Set width of character sets
10742 eight-bit-control and eight-bit-graphic to 1 column.
10744 2000-05-26 Gerd Moellmann <gerd@gnu.org>
10746 * config.in (HAVE_SPEED_T): New define.
10748 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
10751 2000-05-26 Dave Love <fx@gnu.org>
10753 * coding.c (shrink_decoding_region): Initialize eol_conversion.
10755 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
10756 (Fsubr_arity): New function.
10757 (syms_of_data): Install them.
10759 2000-05-26 Kenichi Handa <handa@etl.go.jp>
10761 * charset.c (init_charset_once): Set the table bytes_by_char_head
10764 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
10765 the default fontset to what Emacs uses by default.
10766 (check_registry_encoding): This function deleted.
10767 (Fset_fontset_font): Remove the adhoc condition for the default
10768 fontset. Allow cons in FONTNAME.
10770 * fns.c (map_char_table): Ignore char-table entries for
10771 charsets eight-bit-control and eight-bit-graphic.
10773 2000-05-25 Ken Raeburn <raeburn@gnu.org>
10775 * emacs.c (main): Initialize keyboard syms before initializing
10776 window code, so face names are available.
10778 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
10780 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
10781 of an anchor at the beginning of a shy-group.
10783 2000-05-25 Gerd Moellmann <gerd@gnu.org>
10785 * xdisp.c (handle_invisible_prop): Don't try to skip over
10786 invisible text if end of text is already reached.
10788 2000-05-25 Dave Love <fx@gnu.org>
10790 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
10792 * coding.c (encode_eol): Add null statement after label.
10794 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
10796 * w16select.c (Fw16_set_clipboard_data): Fix the change from
10799 2000-05-25 Kenichi Handa <handa@etl.go.jp>
10801 * ccl.c (ccl_driver): Fix previous change.
10803 2000-05-25 Kenichi Handa <handa@etl.go.jp>
10805 * coding.c (run_pre_post_conversion_on_str): Set point to the
10806 beginning of buffer before calling coding->post_read_conversion.
10807 (decode_coding_string): Give correct args to
10808 run_pre_post_conversion_on_str.
10809 (encode_coding_string): Likewise.
10811 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
10812 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
10813 eight-bit-graphic correctly.
10815 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
10817 * fileio.c (Finsert_file_contents): Even if a file is not found,
10818 execute codes for setting up coding system. Call
10819 after-insert-file-functions unconditionally.
10821 2000-05-24 Gerd Moellmann <gerd@gnu.org>
10823 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
10824 BSD_PGRPS are not defined.
10826 2000-05-24 Kenichi Handa <handa@etl.go.jp>
10828 * charset.c (update_charset_table): Accept nil in LONG_NAME and
10830 (syms_of_charset): Avoid building same strings.
10832 2000-05-23 Gerd Moellmann <gerd@gnu.org>
10834 * lread.c (Fload): Add a comment about the meaning of
10835 Vuser_init_file being t.
10837 * puresize.h (BASE_PURESIZE): Increase to 675000.
10839 * s/gnu-linux.h (setpgrp): Don't define it here because this
10840 prevents compilation on GNU/Linux systems with glib 2.2.
10842 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
10845 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
10847 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
10848 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
10850 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
10852 2000-05-23 Kenichi Handa <handa@etl.go.jp>
10854 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10856 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
10858 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
10860 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
10862 2000-05-22 Kenichi Handa <handa@etl.go.jp>
10864 * keyboard.c (read_char): Allow character codes 128..255 to be
10865 handled by input-method-function.
10867 * insdel.c (adjust_markers_for_replace): Fix previous change.
10868 (adjust_after_replace): If PREV_TEXT is nil, call
10869 adjust_markers_for_insert, not adjust_markers_for_replace.
10871 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
10873 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
10874 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
10875 [HAVE_GRANDPT]: Define.
10876 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
10878 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
10881 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
10883 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
10885 2000-05-20 Kenichi Handa <handa@etl.go.jp>
10887 The following changes are to handle 8-bit characters in a
10888 multibyte buffer/string without facing with byte combining
10889 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
10890 eight-bit-graphic (for 0xA0..0xFF) are introduced.
10892 * Makefile.in (fns.o): Depend on charset.h.
10894 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
10895 convert it to unibyte.
10896 (make_string): Use parse_str_as_multibyte, not chars_in_text.
10898 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
10899 apparent char boundary.
10900 (Fset_buffer_multibyte): Convert 8-bit characters in the range
10901 0x80..0x9F to/from multibyte form.
10903 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
10906 * callproc.c (Fcall_process): Always encode an argument string if
10907 it is multibyte. Setup src_multibyte and dst_multibyte members of
10908 process_coding properly.
10910 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
10911 SPLIT_NON_ASCII_CHAR.
10913 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
10915 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
10917 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
10918 (SPLIT_CHARACTER_SEQ): This macro deleted.
10919 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
10920 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
10921 and eight-bit-graphic.
10922 (char_to_string): Likewise. Signal an error for too large
10924 (char_printable_p): Return 0 for 8-bit characters.
10925 (update_charset_table): Update iso_charset_table only when a final
10926 character is non-negative.
10927 (find_charset_in_text): Renamed from find_charset_in_str.
10928 Arguments and return value changed. Callers changed.
10929 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
10930 be -1 if CHARSET is used only internally.
10931 (Fmake_char_internal): Handle new charsets; eight-bit-control and
10933 (Fcharset_after): Simplified.
10934 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
10935 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
10936 (multibyte_chars_in_text): Simplified by assuming there's no
10937 invalid multibyte sequence.
10938 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10939 (str_as_unibyte): New functions.
10940 (Fstring): Simpified by assuming that byte combining never happens.
10941 (init_charset_once): Initialization for
10942 LEADING_CODE_8_BIT_CONTROL.
10943 (syms_of_charset): Intern and staticpro Qeight_bit_control and
10944 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
10945 eight-bit-control and eight-bit-graphic.
10947 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
10948 (CHARSET_8_BIT_GRAPHIC): New macros.
10949 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
10950 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
10951 (CHARSET_REVERSE_CHARSET): Likewise.
10952 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
10954 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
10955 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
10956 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
10957 encounter an invalid multibyte sequence.
10958 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
10959 sequence is always valid.
10960 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
10961 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
10962 (CHAR_STRING): For 8-bit characters, call char_to_string.
10963 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
10964 multibyte sequence is always valid.
10965 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
10966 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10967 (str_as_unibyte): Extern them.
10968 (BCOPY_SHORT): Fix a bug.
10969 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
10970 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
10971 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
10972 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
10974 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
10975 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
10976 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
10977 (EMIT_BYTES): New macros.
10978 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
10979 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
10981 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
10982 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
10983 check the validity of multibyte sequence.
10984 (decode_coding_emacs_mule): New function.
10985 (encode_coding_emacs_mule): New macro.
10986 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
10988 (DECODE_ISO_CHARACTER): Just return a character code.
10989 (DECODE_COMPOSITION_START): Set coding->result instead of result.
10990 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
10991 EMIT_CHAR to produced decoded characters. Exit the loop only by
10992 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
10994 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
10995 only position codes for an invalid character.
10996 (encode_designation_at_bol): Return new destination pointer. 5th
10997 arg DSTP is changed to DST.
10998 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
10999 from the source by ONE_MORE_CHAR. Don't handle the case of last
11001 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
11003 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
11004 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
11005 TWO_MORE_BYTES to fetch a byte from the source.
11006 (encode_eol): Pay attention to coding->src_multibyte.
11007 (detect_coding, detect_eol): Preserve members src_multibyte and
11009 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
11010 (encoding_buffer_size): Set magnification to 3 for all coding
11011 systems that require encoding.
11012 (ccl_coding_driver): For decoding, be sure that the result is
11013 valid multibyte sequence.
11014 (decode_coding): Initialize coding->errors and coding->result.
11015 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
11016 and raw-text, always call decode_eol. Handle the case of last
11017 block here. If not coding->dst_multibyte, convert the resulting
11018 sequence to unibyte.
11019 (encode_coding): Initialize coding->errors and coding->result.
11020 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
11021 and raw-text, always call encode_eol. Handle the case of last
11023 (shrink_decoding_region, shrink_encoding_region): Detect cases
11024 that we can't skip data more rigidly.
11025 (code_convert_region): Setup src_multibyte and dst_multibyte
11026 members of coding. For decoding, if the buffer is multibyte,
11027 convert the source sequence to unibyte in advance. For encoding,
11028 if the buffer is multibyte, convert the resulting sequence to
11029 multibyte afterward.
11030 (run_pre_post_conversion_on_str): New function.
11031 (code_convert_string): Deleted and divided into the following two.
11032 (decode_coding_string, encode_coding_string): New functions.
11033 (code_convert_string1, code_convert_string_norecord): Call one of
11035 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
11036 MAKE_NON_ASCII_CHAR.
11037 (Fset_terminal_coding_system_internal)
11038 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
11039 and dst_multibyte members.
11040 (init_coding_once): Initialize iso_code_class with new enum
11041 ISO_control_0 and ISO_control_1.
11043 * coding.h (enum iso_code_class_type): Member ISO_control_code is
11044 devided into ISO_control_0 and ISO_control_1.
11045 (struct coding_system): New members src_multibyte, dst_multibyte,
11046 errors, and result. Delete member fake_multibyte.
11047 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
11049 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
11052 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11055 * editfns.c (Fformat): Be sure to convert 8-bit characters to
11057 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
11059 (Ftranspose_region): Delete codes for handling byte combining.
11061 * fileio.c (Finsert_file_contents): Setup src_multibyte and
11062 dst_multibyte members of coding. On handling REPLACE on unibyte
11063 buffer, convert the result of decode_coding to unibyte. On
11064 inserting into a mutibyte buffer, always call code_convert_region.
11065 (e_write): Setup coding->src_multibyte according to the
11066 multibyteness of the source (buffer or string).
11068 * fns.c (concat): Handle 8-bit characters correctly.
11069 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
11070 unibyte in the result.
11071 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
11072 valid multibyte form in the result.
11073 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11074 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
11075 return -1, signal an error.
11076 (base64_encode_1): New arg MULTIBYTE. Get each character by
11077 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
11078 character is found, return -1.
11079 (Fbase64_decode_region): Delete codes for handling byte-combining.
11080 Treat each decoded byte as a unibyte character.
11081 (Fbase64_decode_string): Return unibyte string.
11082 (Fcompare_strings, concat, string_byte_to_char): Use
11083 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
11084 FETCH_STRING_CHAR_ADVANCE.
11085 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11086 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
11088 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
11089 SPLIT_NON_ASCII_CHAR.
11090 (fontset_ref_via_base, fontset_set): Likewise
11092 * insdel.c (adjust_markers_for_record_delete): Deleted.
11093 (adjust_markers_for_insert): Argument changed. Caller changed.
11094 (adjust_markers_for_replace): Likewise.
11095 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
11096 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
11097 (copy_text): Delete unused local varialbe c_save. For converting
11098 to multibyte, be sure to make all 8-bit characters in valid
11100 (count_size_as_multibyte): Handle 8-bit characters correctly.
11101 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11102 (adjust_after_replace, replace_range, del_range_2)
11103 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
11104 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11105 (adjust_after_replace, replace_range, del_range_2) Delete codes for
11106 handling byte combining.
11107 (adjust_before_replace): Deleted.
11109 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
11110 SPLIT_NON_ASCII_CHAR.
11111 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11112 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11113 (Fkey_description): Likewise.
11115 * lread.c (read1): On reading multibyte string, be sure to make
11116 all 8-bit chararacters in valid multibyte form.
11117 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11119 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
11122 * process.c (Fstart_process): GCPRO current_dir before calling
11123 Ffind_operation_coding_system. Encode arguments here.
11124 (create_process): Don't encode arguments here. Setup
11125 src_multibyte and dst_multibyte members of struct coding.
11126 (read_process_output): Setup src_multibyte and dst_multibyte
11127 members of struct coding. If the output is to multibyte buffer,
11128 always decode the output of the process. Adjust the
11129 representation of 8-bit characters to the multibyteness of the output.
11130 (send_process): Setup coding->src_multibyte according to the
11131 multibyteness of the source.
11133 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11134 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
11135 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
11137 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
11139 * w16select.c (Fw16_set_clipboard_data): Setup members
11140 src_multibyte and dst_multibyte of coding. Adjusted for the
11141 change for find_charset_in_str.
11142 (Fw16_get_clipboard_data): Likewise.
11144 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
11145 dst_multibyte of coding.
11146 (x_to_w32_font): Likewise.
11148 * w32select.c (Fw32_set_clipboard_data): Setup members
11149 src_multibyte and dst_multibyte of coding. Adjusted for the
11150 change for find_charset_in_str.
11151 (Fw32_get_clipboard_data): Likewise.
11153 * xdisp.c (get_next_display_element): Handle 8-bit characters
11155 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
11156 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11158 * xselect.c (selection_data_to_lisp_data): Setup members
11159 src_multibyte and dst_multibyte of coding. Adjusted for the
11160 change for find_charset_in_str.
11161 (lisp_data_to_selection_data): Likewise.
11163 2000-05-19 Gerd Moellmann <gerd@gnu.org>
11165 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
11167 * dispextern.h (Vimage_types): Add extern declaration.
11169 * xdisp.c (Vimage_types): Moved here from xfns.c.
11170 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
11172 * xfns.c (Vimages_types): Moved to xdisp.c.
11173 (syms_of_xfns): Move `image-types' to xdisp.c.
11175 * w32fns.c (Vimage_types): Removed.
11176 (syms_of_w32fns): Remove `image-types'.
11178 2000-05-18 Kenichi Handa <handa@etl.go.jp>
11180 * fns.c (map_char_table): Pay attention to character number of
11181 charset. Check the validity of charset at the first level. For
11182 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
11185 * fontset.c: Include "buffer.h".
11186 (fs_load_font): If the face has fontset, record the face ID in
11188 (Finternal_char_font): New function.
11189 (accumulate_font_info): New function.
11190 (Ffontset_info): Rewritten for the new fontset implementation.
11191 (syms_of_fontset): Register Vdefault_fontset in the first element
11192 of Vfontset_table. Include Vdefault_fontset in
11193 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
11196 2000-05-16 Dave Love <fx@gnu.org>
11198 * m/iris5d.h: Deleted -- unused.
11200 2000-05-16 Gerd Moellmann <gerd@gnu.org>
11202 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
11203 `invalid' instead of `illegal'.
11205 * indent.c (Fmove_to_column): When ending within a tab, insert
11206 spaces first so that markers at the end of the tab get adjusted.
11208 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
11209 buffer list that wasn't selected in that frame.
11211 * filelock.c (get_boot_time): To obtain an 8 char file name, which
11212 is needed on mescaline, use a 2 char prefix, and call
11213 make_temp_name with second arg non-zero.
11215 * fileio.c (make_temp_name): New function, extracted from
11217 (Fmake_temp_name): Use it.
11219 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
11221 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
11223 2000-05-15 Gerd Moellmann <gerd@gnu.org>
11225 * Makefile.in (lisp): Add env.elc.
11227 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
11229 2000-05-12 Gerd Moellmann <gerd@gnu.org>
11231 * search.c (Freplace_match): Handle case of `\N' in the
11232 replacement when there's no group N.
11234 2000-05-11 Gerd Moellmann <gerd@gnu.org>
11236 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
11237 of the message to message_dolog.
11239 * keyboard.c (read_char): Don't clear current message for help
11240 events; let the code handling help events handle this. Change
11241 code detecting help events that should be ignored.
11243 * xdisp.c (handle_single_display_prop): Don't try to set PT if
11244 we're interating over a string.
11246 2000-05-09 Dave Love <fx@gnu.org>
11248 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
11249 that offset before writing. Move gcpro region past call of
11252 2000-05-04 Dave Love <fx@gnu.org>
11254 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
11256 2000-05-04 Gerd Moellmann <gerd@gnu.org>
11258 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
11259 of inserted characters when BUF equals the current buffer, and PT
11260 is in front of or equal to FROM.
11262 2000-05-03 Gerd Moellmann <gerd@gnu.org>
11264 * xdisp.c (handle_single_display_prop): If display property value
11265 is invalid, or something not supported on the frame, restore
11266 iterator's position to what it was initially. Make sure to return
11267 0 for invalid and unsupported property values.
11269 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
11270 that x_per_char_metric returns null.
11272 2000-05-02 Gerd Moellmann <gerd@gnu.org>
11274 * xterm.h (struct face): Add forward declaration.
11275 (struct image): Ditto.
11276 (image_ascent): Add prototype.
11278 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
11279 (x_draw_image_relief, x_draw_image_foreground_1): Call function
11280 image_ascent instead of using IMAGE_ASCENT.
11282 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
11283 (IMAGE_ASCENT): Removed.
11285 * xfns.c (Qcenter): New variable.
11286 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
11287 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
11288 (image_ascent): New function.
11289 (lookup_image): Recognize `:ascent center'.
11290 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
11291 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11292 (xbm_load): Don't set image's ascent here.
11293 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
11294 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
11295 check ascent values here.
11296 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
11297 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
11298 (syms_of_xfns): Initialize Qcenter.
11300 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
11301 to the limits, increase the limits.
11303 2000-05-01 Kenichi Handa <handa@etl.go.jp>
11305 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
11306 Check Vfont_encoding_alist against the full name of the opened font.
11308 2000-04-28 Gerd Moellmann <gerd@gnu.org>
11310 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
11311 taller than the window.
11313 2000-04-28 Kenichi Handa <handa@etl.go.jp>
11315 * xfaces.c (realize_x_face): Fix the argument of the second
11316 xassert. BASE_FACE may not be a face for ASCII.
11318 2000-04-27 Gerd Moellmann <gerd@gnu.org>
11320 * print.c (print_object): Treat print-length < 0 as nil.
11322 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
11324 * s/freebsd.h (TERMCAP_OBJ): Removed.
11325 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
11327 * lread.c (read1): Don't treat period followed by certain
11328 characters as symbol start.
11330 * xfns.c (slurp_file): New function.
11331 (xbm_image_p): Handle case of in-memory XBM files.
11332 (xbm_scan): Rewritten to work on memory buffers instead of files.
11333 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
11334 Work on memory buffers instead of files. If DATA is null test
11335 if buffer looks like an in-memory XBM file.
11336 (xbm_load_image): Renamed from xbm_load_image_file. Work on
11337 memory buffers instead of files.
11338 (xbm_file_p): New function.
11339 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
11341 * lread.c (end_of_file_error): New function.
11342 (read1): Call it instead of signaling `end-of-file' directly.
11344 * print.c (print_error_message): Print data of `end-of-file'
11345 with Fprinc instead of Fprin1.
11347 2000-04-26 Ken Raeburn <raeburn@gnu.org>
11349 * window.c (freeze_window_start): Check that minibuffer scroll
11350 window isn't nil before extracting the window structure pointer
11353 * undo.c (record_delete): If we hit the end of the undo list, stop
11354 picking elements apart.
11356 2000-04-26 Gerd Moellmann <gerd@gnu.org>
11358 * xdisp.c (display_line): If lines are continued, restore
11359 iterator's ascent/descent information to the values before the
11360 first glyph not fitting on the line.
11362 2000-04-25 Gerd Moellmann <gerd@gnu.org>
11364 * xdisp.c (try_window_id) <all changes above window start>: Adjust
11365 positions in glyph matrix. Don't compute new window end positions.
11367 * dispnew.c (increment_matrix_positions): Renamed from
11368 increment_glyph_matrix_buffer_positions.
11369 (increment_row_positions): Renamed from
11370 increment_glyph_row_buffer_positions.
11372 * dispextern.h: Change names of renamed functions from dispnew.c
11375 2000-04-24 Gerd Moellmann <gerd@gnu.org>
11377 * fileio.c (Fdo_auto_save): Create directories for auto-save
11378 list file if necessary.
11380 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
11381 from buffer or frame.
11382 (automatic_hscrolling_p): New variable.
11383 (hscroll_windows): Scroll windows horizontally only if automatic
11384 hscrolling is allowed.
11385 (syms_of_xdisp): New variable `automatic-hscrolling'.
11387 * frame.h (struct frame): Add member extra_line_spacing.
11389 * xfns.c (x_set_line_spacing): New function.
11390 (Fx_create_frame): Set line spacing from resources.
11391 (Qline_spacing): New variable.
11392 (syms_of_xfns): Initialize Qline_spacing.
11394 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
11396 * buffer.c (init_buffer_once): Handle extra_line_spacing.
11397 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
11398 (reset_buffer): Don't initialize extra2 and extra3. Initialize
11399 extra_line_spacing from default value.
11400 (init_buffer_once): Initialize default value of extra_line_spacing.
11402 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
11405 * xterm.c (x_produce_glyphs): Remove reference to struct it's
11406 prompt_width. Add extra line spacing.
11408 * term.c (produce_glyphs): Remove reference to struct it's
11411 * dispextern.h (struct it): Remove member prompt_width, add
11412 extra_line_spacing.
11414 2000-04-22 Gerd Moellmann <gerd@gnu.org>
11416 * dispnew.c (update_frame_line): When writing a whole line, make
11417 sure cursor is in the right row afterwards, otherwise a use of
11418 capability `ch' in cmgoto might leave the cursor in the row below.
11420 2000-04-21 Gerd Moellmann <gerd@gnu.org>
11422 * lisp.h (struct Lisp_Buffer_Cons): Remove.
11424 * keyboard.c (timer_check): Fix typo in comment.
11426 2000-04-21 Kenichi Handa <handa@etl.go.jp>
11428 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
11429 name change: ch -> character.
11431 2000-04-20 Gerd Moellmann <gerd@gnu.org>
11433 * keyboard.c (echo_message_buffer): New variable.
11434 (echo_now): Set echo_message_buffer to the echo area buffer used
11435 to display the echo.
11436 (cancel_echoing): Reset echo_message_buffer to nil.
11437 (read_char): Code rewritten that handles canceling an echo or
11438 echoing a dash, respectively.
11440 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
11441 directory doesn't exist.
11443 2000-04-19 Dave Love <fx@gnu.org>
11445 * fns.c (syms_of_fns): Defsubr mapc.
11446 (concat): Don't allow numeric args.
11447 (Fconcat): Doc change.
11449 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
11451 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
11452 instead define end_match(1|2) more carefully.
11453 Use GET_CHAR_BEFORE_2 for `begline'.
11455 2000-04-19 Gerd Moellmann <gerd@gnu.org>
11457 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
11458 on 64-bit systems where NULL is defined as `0'.
11460 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
11461 the `variable argument list' to make it work on Alpha.
11463 * m/alpha.h (_LP64) [!_LP64]: Define.
11464 (ORDINARY_LINK): Define for NetBSD.
11466 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
11468 2000-04-19 Dave Love <fx@gnu.org>
11470 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
11473 * Makefile.in (LIBS): Don't use.
11474 (GETLOADAVG_OBJ): Define again.
11475 (otherobj): Add GETLOADAVG_OBJ.
11477 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
11479 2000-04-18 Gerd Moellmann <gerd@gnu.org>
11481 * lread.c (read_filtered_event): Cancel and start busy cursor.
11483 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
11484 that the per-character metrics may be null.
11486 2000-04-17 Gerd Moellmann <gerd@gnu.org>
11488 * buffer.c (clone_per_buffer_values): New function.
11489 (Fmake_indirect_buffer): Add optional argument CLONE. Call
11490 clone_per_buffer_values if CLONE is not nil.
11492 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
11494 2000-04-16 Dave Love <fx@gnu.org>
11496 * Makefile.in: Remove obsolete localcpp stuff.
11497 (GETLOADAVG_OBJ): Don't define.
11498 (obj): Move LIBOBJS...
11499 (otherobj): ... to here.
11500 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
11501 whitespace-only lines after the continuation (Irix).
11503 2000-04-14 Gerd Moellmann <gerd@gnu.org>
11505 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
11507 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
11509 2000-04-14 Dave Love <fx@gnu.org>
11511 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
11512 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
11513 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
11514 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
11517 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
11518 autoconfiscated HAVE_GETLOADAVG.
11520 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
11523 2000-04-14 Gerd Moellmann <gerd@gnu.org>
11525 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
11526 (fill_in_lock_file_name): Avoid existing files that aren't links.
11528 2000-04-14 Dave Love <fx@gnu.org>
11530 * Makefile.in (LIBS, LIBOBJS): New variable.
11531 (INTERVAL_SRC): Convert to make variable.
11532 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
11533 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
11534 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
11536 (SOME_MACHINE_OBJECTS): Remove interval stuff.
11537 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
11538 (shortlisp): Add facemenu, float-sup, frame.
11539 (SOME_MACHINE_LISP): Remove them from here.
11540 (LIBES): Change unused LDLIBS to autoconf LIBS.
11542 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
11544 2000-04-14 Kenichi Handa <handa@etl.go.jp>
11546 * composite.c (update_compositions): If FROM and TO are not in a
11547 valid range, do nothing.
11549 2000-04-13 Gerd Moellmann <gerd@gnu.org>
11551 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
11553 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
11555 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
11558 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11560 * fileio.c (a_write): Remove redundant semi-colons.
11561 (e_write): Return -1 if failed to write all the data.
11562 This fixes the changes made at 1999-12-15.
11564 2000-04-12 Dave Love <fx@gnu.org>
11566 * fns.c (mapcar1): Test for null vals to support mapc.
11567 (Fmapc): New function.
11569 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
11571 * msdos.c (NUM_MOUSE_BUTTONS): Define.
11572 (IT_frame_up_to_date): Support the buffer local value of
11573 cursor-type, if defined.
11575 2000-04-10 Dave Love <fx@gnu.org>
11577 * editfns.c (preceding-char, following-char): Doc fix.
11579 2000-04-10 Ken Raeburn <raeburn@gnu.org>
11581 * Makefile.in (temacs): Revert 2000-03-12 change.
11583 2000-04-10 Jason Rumney <jasonr@gnu.org>
11585 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
11587 2000-04-10 Gerd Moellmann <gerd@gnu.org>
11589 * xdisp.c (setup_echo_area_for_printing): Choose an echo
11590 area buffer, if it's not set up yet.
11592 * indent.c (compute_motion): Set immediate_quit.
11594 2000-04-09 Gerd Moellmann <gerd@gnu.org>
11596 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
11597 (realize_tty_face): Suppress boldness if colors are the inverse of
11598 the default colors, and tty_suppress_bold_inverse_default_colors_p
11600 (Ftty_suppress_bold_inverse_default_colors): New function.
11601 (syms_of_xfaces): Defsubr it.
11603 * buffer.c (Frestore_buffer_modified_p): New function.
11604 (syms_of_buffer): Defsubr it.
11606 2000-04-08 Ken Raeburn <raeburn@gnu.org>
11608 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
11609 charset id (int) argument, not a charset (Lisp_Object).
11611 * coding.h (code_convert_string): Declare.
11612 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
11613 object, as the fourth argument to code_convert_string.
11615 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
11616 (Fset_fontset_font): Use EQ to compare lisp objects.
11618 2000-04-05 Ken Raeburn <raeburn@gnu.org>
11620 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
11621 a pointer that looks like a lisp object.
11622 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
11623 zero, instead see whether it's an integer object, since they can't
11625 (GET_INTERVAL_OBJECT): Simply assign to the destination.
11627 * dispnew.c (allocate_matrices_for_frame_redisplay)
11628 (direct_output_forward_char): Use X(U)INT and make_number as needed
11629 to convert between (unsigned) int values and lisp integers.
11630 * keyboard.c (read_key_sequence): Likewise.
11631 * lread.c (substitute_object_recurse): Likewise.
11632 * fns.c (concat, hash_lookup, hash_remove): Likewise.
11633 * minibuf.c (do_completion, Fminibuffer_complete_word)
11634 (Fminibuffer_completion_help): Likewise.
11635 * term.c (produce_special_glyphs): Likewise.
11637 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
11638 * print.c (print_preprocess, print_object): Likewise.
11640 * search.c (compile_pattern): Use NILP when checking for nil.
11642 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
11643 __OPTIMIZE__]: Provide a GNU C macro version that handles
11644 lisp-object unions.
11645 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
11646 field, to better cope with ENABLE_CHECKING and calls that modify a
11647 Lisp_Object using its old value.
11649 2000-04-04 Gerd Moellmann <gerd@gnu.org>
11651 * window.c (compare_window_configurations): Signal an error
11652 if parameters C1 or C2 aren't window configurations.
11654 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
11655 AFTER_POTENTIAL_GC calls around calls to functions that can
11656 signal an error and thus invoke the debugger.
11658 2000-04-03 Gerd Moellmann <gerd@gnu.org>
11660 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
11661 an error if decoding fails.
11663 * keyboard.c (lispy_mouse_names): Variable removed.
11664 (Vlispy_mouse_stem): New variable.
11665 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
11666 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
11667 for any mouse button number. Increase size of mouse_syms and
11668 button_down_location as needed. Call modify_event_symbol with
11669 different arguments.
11670 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
11671 Call modify_event_symbol with different arguments.
11672 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
11673 for any button number. Call modify_event_symbol with different
11675 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
11676 Accept a string for NAME_ALIST_OR_STEM.
11678 * lisp.h (larger_vector): Add prototype.
11680 * fns.c (larger_vector): Make externally visible.
11682 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
11684 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
11686 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
11687 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
11688 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
11689 we are between str1 and str2.
11690 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
11691 (PATFETCH): Use `TRANSLATE'.
11692 (PATFETCH_RAW): Fetch multibyte char if applicable.
11693 (PATUNFETCH): Remove.
11694 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
11695 When writing a char, write it directly into the pattern buffer rather
11696 than going needlessly through a temp char-array.
11697 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
11698 multibyte magic and remove the useless `#ifdef emacs'.
11699 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
11702 * regex.h (struct re_pattern_buffer): Make field `multibyte'
11703 conditional on `emacs'.
11705 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
11707 2000-04-01 Ken Raeburn <raeburn@gnu.org>
11709 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
11710 non-union-type versions of XMARK and friends here, because XMARK
11711 and friends won't work on an integer field if NO_UNION_TYPE is not
11713 (make_number): Define as a function if it's not defined as a macro.
11715 * composite.c (run_composite_function): Use NILP when checking for nil.
11716 (syms_of_composite): Delete local var NARGS, pass an int as first
11717 argument to Fmake_hash_table.
11719 * editfns.c (text_property_stickiness): Use NILP to test
11720 Lisp_Object boolean value.
11721 (Fmessage_or_box): Don't use NILP to test int variable.
11722 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
11723 problems reading from and changing the same lisp value in an
11726 2000-04-01 Gerd Moellmann <gerd@gnu.org>
11728 * term.c (TN_no_color_video): New variable.
11729 (term_init): Intitialize TN_no_color_video.
11730 (enum no_color_bit): New enumeration.
11731 (MAY_USE_WITH_COLORS_P): New macro.
11732 (turn_on_face): Use it to determine if attributes may be used
11733 combined with colors.
11735 2000-04-01 Ken Raeburn <raeburn@gnu.org>
11737 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
11738 with int lvalues via casts; instead, just yield lisp object lvalues.
11739 (enlarge_window): Variable sizep now points to Lisp_Object. Use
11740 proper accessor macros.
11741 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
11742 (grow_mini_window): Fix typo getting int value of root->height.
11744 * xdisp.c (compute_string_pos): Fix order of arguments to
11745 string_pos_nchars_ahead.
11746 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
11747 count arg to variable-arg routines like Frun_hook_with_args and
11749 (back_to_previous_visible_line_start)
11750 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
11751 fixed-arg routines like Fget_char_property and Fmake_string.
11752 (reconsider_clip_changes): Use XINT when comparing integer lisp
11753 objects, or passing them as int arguments.
11754 (mark_window_display_accurate, insert_left_trunc_glyphs)
11755 (append_space, extend_face_to_end_of_line): Use make_number when
11756 storing or passing integer values as lisp objects.
11757 (set_cursor_from_row, highlight_trailing_whitespace): Use
11758 INTEGERP, not implicit test against zero, for glyph object.
11759 (try_window_id): Don't use make_number when we want an int value.
11761 * xfaces.c (xlfd_symbolic_value): Make last argument a
11762 Lisp_Object, to be consistent with callers.
11763 (Fbitmap_spec_p): Use XINT to get numeric value of height.
11764 (lface_hash): Apply XFASTINT to lisp values before folding in.
11766 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
11767 fill in window width and height. Pass an int, not a lisp object,
11768 as first arg to Finsert.
11770 2000-04-01 Gerd Moellmann <gerd@gnu.org>
11772 * xfaces.c (realize_basic_faces): Block input while realizing
11775 * keyboard.c (lispy_mouse_names): Add additional mouse names.
11777 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
11779 2000-03-31 Gerd Moellmann <gerd@gnu.org>
11781 * xterm.c (x_produce_glyphs): When displaying unibyte text
11782 or ASCII, handle case that per-char metric is null.
11784 2000-03-30 Ken Raeburn <raeburn@gnu.org>
11786 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
11788 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
11789 (XSUBR, XBUFFER): Verify correct object type before returning
11790 pointer, using eassert.
11791 * frame.h (XFRAME): Likewise.
11793 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
11794 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
11795 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
11796 * data.c (set_internal): Likewise.
11797 * dispextern.h (WINDOW_WANTS_MODELINE_P)
11798 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
11799 * fileio.c (auto_save_1): Likewise.
11800 * insdel.c (check_markers): Likewise.
11801 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
11802 * undo.c (record_insert): Likewise.
11803 * vmsproc.c (child_sig): Likewise.
11804 * window.c (unshow_buffer, window_loop): Likewise.
11805 * xterm.c (x_erase_phys_cursor): Likewise.
11807 2000-03-30 Gerd Moellmann <gerd@gnu.org>
11809 * xfns.c (free_image_cache): Free the cache structure itself
11810 last, after all its members have been freed.
11812 * lisp.h (xstrdup): Add prototype.
11814 * alloc.c (xstrdup): Moved here from xfaces.c.
11815 (allocating_for_lisp): Variable removed.
11816 (lisp_malloc): Block input around the calls to malloc and mem_insert.
11818 * xfaces.c (realize_tty_face): Use find_symbol_value instead
11820 (xstrdup): Moved to alloc.c.
11822 2000-03-29 Ken Raeburn <raeburn@gnu.org>
11824 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
11826 * emacs.c (main): Fix sense of no-loadup test.
11828 * config.in (ENABLE_CHECKING): Undef.
11830 * lisp.h (struct interval): Replace "parent" field with a union of
11831 interval pointer and Lisp_Object; add new bitfield to use as
11832 discriminant. Change other flag fields to bitfields.
11833 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
11834 is defined and the supplied test fails, print a message and abort.
11835 (eassert): New macro. Use CHECK to provide an assert-like facility.
11837 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
11838 pointers; abort if the value looks like a lisp object.
11839 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
11840 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
11841 Modify for new interval parent definition.
11843 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
11844 (UNMARK_BALANCE_INTERVALS): Update references that need an
11845 addressable lisp object in the interval structure.
11846 (die): New function.
11847 (suppress_checking): New variable.
11849 * intervals.c (interval_start_pos): Just return 0 if there's no
11852 2000-03-29 Gerd Moellmann <gerd@gnu.org>
11854 * lread.c (read1): Accept `.' (period) as symbol start like in CL
11855 and earlier Emacs versions.
11857 * keyboard.c (Ftop_level): Cancel busy-cursor.
11859 * eval.c (call_debugger): Cancel busy-cursor.
11861 2000-03-29 Kenichi Handa <handa@etl.go.jp>
11863 * search.c (Freplace_match): Adjust multibyteness of the current
11864 buffer and NEWTEXT. Free allocated memory before signaling an error.
11866 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
11868 * regex.c (analyse_first): New function obtained by ripping out most
11869 of re_compile_fastmap and generalizing it a little bit so that it
11870 can also just return whether a given (sub)pattern can match the empty
11872 (regex_compile): Use `analyse_first' to decide whether the loop-check
11873 needs to be done or not for *, +, *? and +? (the loop check is costly
11874 for non-greedy repetition).
11875 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
11877 2000-03-28 Dave Love <fx@gnu.org>
11879 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
11881 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
11883 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
11885 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
11887 (enum re_opcode_t): Update description of succeed_n.
11888 (PATFETCH): Always define.
11889 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
11890 operators, char classes, shy-groups and intervals).
11891 Optimize special cases of intervals so as to only use succeed_n and
11892 jump_n when really needed.
11893 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
11894 that we don't have to handle the special cases any more.
11895 Simplify on_failure_jump handling as well.
11897 2000-03-28 Jason Rumney <jasonr@gnu.org>
11899 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
11901 2000-03-27 Gerd Moellmann <gerd@gnu.org>
11903 * s/freebsd.h (GC_SETJMP_WORKS): Define.
11905 * s/msdos.h (GC_SETJMP_WORKS): Define.
11907 * alloc.c (mark_maybe_object): New function.
11908 (mark_memory): Use it.
11909 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
11910 (setjmp_tested_p, longjmp_done): New variables.
11911 (test_setjmp): New function.
11912 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
11913 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
11915 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
11916 to DEC_TEXT_POS and INC_TEXT_POS.
11918 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
11919 with parameter MULTIBYTE_P.
11921 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
11923 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
11924 buffers because it looks for multibyte character byte sequences
11925 which don't exist in unibyte text.
11927 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
11929 * xfaces.c (register_color, unregister_color, unregister_colors)
11930 [DEBUG_X_COLORS]: New functions.
11931 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
11933 * xfns.c (x_set_cursor_color): Get color reference counts right.
11935 * xterm.c (x_copy_color): New function.
11936 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
11938 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
11939 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
11940 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
11941 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
11942 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
11943 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
11944 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
11945 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
11946 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
11947 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
11949 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
11950 names for handling per-buffer variables.
11952 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
11953 instead of MAX_BUFFER_LOCAL_VARS.
11954 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
11956 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
11958 * xfns.c (x_specified_cursor_type): New function.
11959 (x_set_cursor_type): Use it.
11961 * buffer.h (struct buffer): Add cursor_type.
11963 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
11965 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
11966 (print_partial_compiled_pattern, re_compile_fastmap):
11968 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
11969 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
11970 executing it as well as when popping it off the stack to find infinite
11971 loops in non-greedy repetition operators.
11973 2000-03-26 Gerd Moellmann <gerd@gnu.org>
11975 * doc.c (Qfunction_documentation): New variable.
11976 (syms_of_doc): Initialize Qfunction_documentation.
11977 (Fdocumentation): If FUNCTION is a symbol with non-nil
11978 `function-documentation' property, return a documentation derived
11981 * buffer.c (syms_of_buffer): Add default-cursor-type.
11982 (init_buffer_once): Don't let cursor_type have a local value
11985 * xterm.c (x_display_and_set_cursor): Choose cursor depending
11986 on buffer-local value of cursor_type.
11987 (x_draw_bar_cursor): Add parameter WIDTH.
11989 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
11990 (init_buffer_once): Set default cursor_type value to t.
11991 Mark cursor_type as local everywhere.
11992 (syms_of_buffer): New per-buffer variable cursor-type.
11994 * buffer.h (struct buffer): Remove member local_var_flags,
11996 (MAX_BUFFER_LOCAL_VARS): New macro.
11997 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
11998 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
11999 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
12000 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
12002 * print.c (print_object): Use new macros for per-buffer variables.
12004 * category.c (Fset_category_table): Use new macros for per-buffer
12007 * buffer.c (buffer_permanent_local_flags): Make a char array.
12008 (max_buffer_local_idx): New variable.
12009 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
12010 for new handling of per-buffer variables.
12011 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
12012 (init_buffer_once): Initialize per-buffer vars differently.
12013 Set max_buffer_local_idx.
12015 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
12018 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
12020 * data.c (do_symval_forwarding, store_symval_forwarding)
12021 (find_symbol_value, set_internal, default_value, Fset_default)
12022 (Fkill_local_variable, Flocal_variable_p): Use new macros for
12023 per-buffer variables.
12025 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
12027 2000-03-24 Gerd Moellmann <gerd@gnu.org>
12029 * xterm.c (x_term_init): Unblock input around call1 of
12030 Qvendor_specific_keysyms.
12032 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
12033 (find_defun_start): Consider an open parenthesis in column 0
12034 a defun start only if open_paren_in_column_0_is_defun_start is set.
12035 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
12037 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
12039 * eval.c (Fautoload): Add entry in load-history (if after dump).
12040 * lread.c (load-history): Update docstring.
12042 2000-03-24 Gerd Moellmann <gerd@gnu.org>
12044 * indent.c (Fvertical_motion): Always use the current buffer.
12045 Temporarily change the window's buffer, if necessary.
12047 2000-03-23 Gerd Moellmann <gerd@gnu.org>
12049 * xterm.c (fast_find_position): Make sure not to consider rows
12050 not visible in the window.
12052 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
12054 * regex.c (enum syntaxcode): Provide default for non-Emacs.
12055 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
12057 2000-03-22 Jason Rumney <jasonr@gnu.org>
12059 * w32menu.c (single_submenu): Set help string to NULL if none.
12060 (w32_menu_show): Set help string correctly.
12061 (add-menu-item): Set help string in MIIM_DATA for menu item.
12062 Load SetMenuItemInfoA explicitly.
12063 (w32_menu_display_help): New function.
12065 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
12066 (QCdata): Moved to xdisp.c.
12068 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
12069 (Vw32_charset_to_codepage_alist): Removed.
12070 (Vw32_charset_info_alist): New variable.
12071 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
12072 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
12073 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
12074 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
12076 (w32_codepage_for_font): Use Vw32_charset_info_alist.
12077 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
12078 Define Vw32_charset_info_alist and w32_charset symbols.
12080 2000-03-22 Jason Rumney <jasonr@gnu.org>
12082 * makefile.nt (w32bdf.obj): Update dependencies.
12084 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
12086 * w32fns.c: Include fontset.h after dispextern.h.
12087 (Fx_create_frame): Do not create fontset.
12088 (w32_load_system_font): Doc fix.
12089 (Fx_close_connection): Free full_name if it is not shared.
12091 * w32term.c: Include fontset.h after dispextern.h.
12092 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
12094 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
12095 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
12096 (w32_font_is_double_byte): New function, needs body.
12097 (x_append_glyph): Set glyph->glyph_not_available_p.
12098 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12099 it->charset. If it->multibyte_p is zero and it->c is a multibyte
12100 character, convert it to a unibyte character.
12101 (struct glyph_string): Delete member `charset'.
12102 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
12103 calculating it is found.
12104 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12105 the case that per char metric is not available correctly.
12106 (x_fill_glyph_string): Handle the case that the specific glyph is
12107 not available correctly.
12108 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12109 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12110 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12111 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12112 fontset. Don't call FS_LOAD_FONT.
12114 2000-03-22 Ken Raeburn <raeburn@gnu.org>
12116 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
12117 (INT_LISPLIKE): New macro.
12118 (NULL_INTERVAL_P): Use it.
12119 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
12120 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
12121 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
12123 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
12124 explicit references to "parent" field of struct interval and
12125 associated unclean type conversions.
12126 * intervals.c (create_root_interval, root_interval, rotate_right)
12127 (rotate_left, balance_possible_root_interval, split_interval_right)
12128 (split_interval_left, interval_start_pos, find_interval)
12129 (next_interval, previous_interval, update_interval)
12130 (adjust_intervals_for_insertion, delete_node, delete_interval)
12131 (adjust_intervals_for_deletion, merge_interval_right)
12132 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
12133 (copy_intervals_to_string): Likewise.
12134 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
12136 * syntax.c (update_syntax_table): Likewise.
12138 * intervals.c (reproduce_tree_obj): New function, like
12139 reproduce_tree but takes a Lisp_Object for the parent. Declare
12141 (graft_intervals_into_buffer): Use it when appropriate.
12142 (reproduce_tree): Declare with prototype.
12143 (balance_possible_root_interval): Check that the parent is a lisp
12144 object before trying to examine its type.
12146 2000-03-22 Gerd Moellmann <gerd@gnu.org>
12148 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
12149 as strings only if both are known to be strings.
12151 * s/openbsd.h (LIBS_TERMCAP): Undef.
12153 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
12155 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
12156 definitions for non-Emacs compilation.
12157 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
12158 outside of `#ifdef emacs'.
12159 (print_partial_compiled_pattern): Update.
12160 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
12161 (re_compile_fastmap): Merge handling of charset and charset_not (for
12162 emacs and non-emacs compilation as well).
12163 Similarly for (not)categoryspec and (not)syntaxspec.
12164 Don't use the fastmap when reaching `anychar' since the added
12165 complexity is not justified.
12166 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
12167 and (not)syntaxspec. Merge (not)categoryspec.
12169 2000-03-22 Kenichi Handa <handa@etl.go.jp>
12171 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
12172 (FACE_FOR_CHAR): Define them differently for the configuration of
12175 2000-03-21 Dave Love <fx@gnu.org>
12177 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
12180 2000-03-21 Gerd Moellmann <gerd@gnu.org>
12182 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
12183 (lface_fully_specified_p): Don't check contents of
12184 LFACE_FONT_INDEX because that attribute is optional.
12185 (realize_x_face): Remove now unwarranted xassert.
12187 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
12189 The following changes are to make font selection based on
12190 characters, not charset. In addition, they recover fontset
12191 facilities while utilizing the new font selection mechanism.
12193 * Makefile.in (fontset.o): Depend on dispextern.h.
12195 * alloc.c (mark_face_cache): Don't mark face->registry.
12197 * dispextern.h (struct glyph): New member glyph_not_available_p.
12198 Use 22 bits for face_id.
12199 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
12200 (struct face): Delete member registry, new member ascii_face.
12201 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
12202 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
12203 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
12204 (struct it): Delete member charset, new member glyph_not_available_p.
12206 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
12207 (struct fontset_info, struct fontset_data): Structs removed.
12208 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
12209 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
12210 (fs_load_font, fs_query_fontset): Adjusted for new argument.
12211 (fs_free_face_fontset, fontset_font_pattern)
12212 (face_suitable_for_char_p, face_for_char)
12213 (make_fontset_for_ascii_face): Extern them.
12214 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
12215 (FS_LOAD_FACE_FONT): New macro.
12217 * fontset.c: All codes rewritten or adjusted for the change of
12218 fontset implementation. Now fontset is represented by char table.
12219 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
12221 (my_strcasecmp): Function removed.
12222 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
12223 (AREF, ASIZE): New macros.
12224 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
12225 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
12226 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
12227 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
12228 (fontset_id_valid_p, font_family_registry, fontset_name)
12229 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
12230 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
12232 (fs_load_font): New arg FACE. Caller changed.
12233 (fs_query_fontset): Argument changed. Caller changed.
12234 (Fquery_fontset): call fs_query_fontset.
12235 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
12237 (clear_fontset_elements, check_registry_encoding)
12238 (check_fontset_name): New functions.
12239 (syms_of_fontset): Set char-table-extra-slots property of fontset
12240 to 3. Staticpro and initialize Vfontset_table and
12241 Vdefault_fontset. Defsubr fontset_font and fontset_list.
12243 * frame.h (struct frame): Member `fontset_data' removed.
12244 (FRAME_FONTSET_DATA): Macro removed.
12246 * frame.c (make_frame): Don't allocate f->fontset_data.
12247 (Fdelete_frame): Don't free f->fontset_data.
12249 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
12251 * xdisp.c (charset_at_position): Function removed.
12252 (init_iterator): Don't set member charset of struct `it'.
12253 (handle_face_prop, reseat_to_string, set_iterator_to_next)
12254 (next_element_from_display_vector, insert_left_trunc_glyphs):
12256 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
12258 (get_next_display_element, append_space)
12259 (extend_face_to_end_of_line): Likewise.
12261 * xfaces.c (Qx_charset_registry, Vface_default_registry):
12263 (clear_font_table, frame_update_line_height, load_face_font):
12264 Adjusted for the change of fontset implementation.
12265 (load_face_fontset_font): Function removed.
12266 (pixel_point_size): New function.
12267 (font_list): Argument type changed. Caller changed.
12268 (LFACE_FONT): New macro.
12269 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
12270 (set_lface_from_font_name): Type of arg FONTNAME is changed to
12271 Lisp_Object. Determine the font name by actually loading a font
12272 by the specified pattern. Set LFACE_FONT (lface) to the specified
12273 pattern. Even if a font is not found, don't try alternatives.
12274 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
12275 (set_font_frame_param): If `font' is specified in lface, use it.
12276 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
12277 (lface_same_font_attributes_p): Likewise.
12278 (make_realized_face): Arguent changed. Caller changed. Set
12279 face->ascii_face to face itself.
12280 (free_realized_face): Free face->fontset if face is for ASCII.
12281 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
12282 (deduce_unibyte_registry, x_charset_registry): Functions removed.
12283 (free_realized_multibyte_face): New function.
12284 (lookup_face, lookup_named_face, lookup_derived_face): Argument
12285 changed. Caller changed.
12286 (try_font_list): Argument type changed.
12287 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
12288 (choose_face_font): Argument changed. Handle fontset properly.
12289 (choose_face_fontset_font): Function removed.
12290 (realize_default_face, realize_named_face): Don't remove the
12292 (realize_face): Argument changed. Caller changed. Remove face
12293 with the arg former_face_id in advance. Load font for the new face.
12294 (realize_x_face): Argument changed. Caller changed. For a
12295 multibyte character, share fontset with base_face. For a single
12296 byte character, make a new realized fontset. Don't load a font here.
12297 (realize_tty_face): Argument changed. Caller changed.
12298 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
12299 (face_at_buffer_position): Don't check multibyte_p for returning
12301 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
12302 FACE_SUITABLE_FOR_CHARSET_P.
12303 (syms_of_xfaces): Remove code for Qx_charset_registry and
12304 Vface_default_registry.
12306 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
12307 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
12308 (x_per_char_metric): Don't try FONT->default_char. Even if
12309 pcm->width is zero, glyph bits may exist.
12310 (x_encode_char): Always initialize char2b->byte1.
12311 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
12312 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
12313 (x_append_glyph): Set glyph->glyph_not_available_p.
12314 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12315 it->charset. Handle the case that per char metric is not
12316 available. If it->multibyte_p is zero and it->c is a multibyte
12317 character, convert it to a unibyte character.
12318 (struct glyph_string): Delete member `charset'.
12319 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12320 the case that per char metric is not available correctly.
12321 (x_fill_glyph_string): Handle the case that the specific glyph is
12322 not available correctly.
12323 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12324 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12325 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12326 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12327 fontset. Don't call FS_LOAD_FONT.
12329 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
12330 (x_create_tip_frame): Likewise.
12331 (Fx_close_connection): Free full_name of font_info.
12333 * fns.c (optimize_sub_char_table): New function.
12334 (Foptimize_char_table): New function.
12335 (syms_of_fns): Defsubr Soptimize_char_table.
12337 2000-03-20 Gerd Moellmann <gerd@gnu.org>
12339 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
12340 only if buffer is displayed in some window.
12342 * xdisp.c (handle_single_display_prop): Initialize local `value'.
12343 (try_window_reusing_current_matrix): Don't call scroll run
12344 function if run's current and desired position are the same;
12345 this prevents cursor flickering.
12347 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
12349 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
12351 * regex.c (RE_STRING_CHAR): New macro.
12352 (GET_CHAR_AFER_2): Remove.
12353 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
12354 (enum re_opcode_t): Remove on_failure_jump_exclusive.
12355 (print_partial_compiled_pattern, re_compile_fastmap)
12356 (re_match_2_internal): Remove on_failure_jump_exclusive.
12357 (regex_compile): Turn optimizable P+ loops into PP*, so that the
12358 optimization only need to work for * (ie. can use of_keep_string_jump).
12359 Remove the special case for .*\n since it is now covered by the general
12361 (re_search_2): Don't bother with `room'.
12362 (skip_one_char): New function.
12363 (skip_noops): Simplify since `memory' is not needed any more.
12364 (mutually_exclusive_p): Restructure slightly to use `switch' and
12365 add handling for "all" remaining cases.
12366 (re_match_2_internal): Change on_failure_jump_smart to use
12367 on_failure_keep_string_jump (and redirect the end-of-loop jump)
12368 rather than on_failure_jump_exclusive.
12370 2000-03-19 Gerd Moellmann <gerd@gnu.org>
12372 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
12373 number of bits per RGB because it's everywhere used as the depth
12376 * term.c (calculate_costs): Remove code dealing with X frames.
12378 2000-03-19 Richard M. Stallman <rms@gnu.org>
12380 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
12382 2000-03-18 Gerd Moellmann <gerd@gnu.org>
12384 * lread.c (read_integer): Unread the last char not consumed.
12386 2000-03-17 Gerd Moellmann <gerd@gnu.org>
12388 * xterm.c (x_update_window_cursor): Don't update in frames
12389 which are in the process of being deleted.
12391 2000-03-16 Gerd Moellmann <gerd@gnu.org>
12393 * Makefile.in (mostlyclean): Add `*.core'.
12394 (clean): Add `bootstrap-emacs'.
12396 * lread.c (read_integer): New function.
12397 (read1): Support read syntax #o, #x, #b, #r.
12399 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
12401 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
12402 make sure POINTER_TO_OFFSET gives the same value before and after
12403 PREFETCH. Use `dfail' to guarantee "atomic" matching.
12404 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
12405 (debug): Now only active if > 0 rather than if != 0.
12406 (DEBUG_*): Update for the new meaning of `debug'.
12407 (print_partial_compiled_pattern): Add missing `succeed' case. Use
12408 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
12409 in `succeed_n', `jump_n' and `set_number_at'.
12410 (store_op1, store_op2, insert_op1, insert_op2)
12411 (at_begline_loc_p, at_endline_loc_p): Add prototype.
12412 (group_in_compile_stack): Move to after its arg's types are
12413 declared and add a prototype.
12414 (PATFETCH): Define in terms of PATFETCH_RAW.
12415 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
12416 (QUIT): Redefine as a nop except for NTemacs.
12417 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
12418 indentation of the greedy-op and shy-group code.
12419 (at_(beg|end)line_loc_p): Fix argument's types.
12420 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
12421 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
12422 (MATCHING_IN_FIRST_STRING): Remove.
12423 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
12424 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
12425 QUIT unconditionally.
12427 2000-03-15 Gerd Moellmann <gerd@gnu.org>
12429 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
12432 * process.c (send_process): Add a hint that the function
12433 can call Lisp code to its comment.
12435 * lread.c (load_dangerous_libraries): New variable.
12436 (Vbytecomp_version_regexp): New variable.
12437 (safe_to_load_p): New function.
12438 (Fload): Handle files not compiled with Emacs specially.
12439 (syms_of_lread): New Lisp variable load-dangerous-libraries.
12441 2000-03-14 Gerd Moellmann <gerd@gnu.org>
12443 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
12445 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
12446 support functions only if HAVE_X11R6_XIM is defined.
12447 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
12449 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
12451 * xfns.c (X_I18N_INHIBITED): Don't define.
12452 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
12453 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
12455 * config.in (HAVE_X_I18N): Moved here from xterm.h.
12456 (HAVE_X11R6_XIM): Define.
12458 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
12460 * xterm.c (x_term_init): Add support for X resource `synchronous'.
12461 If set, call XSynchronize.
12463 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
12465 * regex.c: Declare a new type `re_char' used throughout the code
12466 for the string char type. It's `const unsigned char' to match the
12467 rest of Emacs. Consistently make sure all pointers to strings use
12468 it and make sure all pointers into the pattern use `unsigned char'.
12469 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
12470 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
12473 * charset.h (GET_CHAR_AFTER_2): Remove.
12474 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
12476 2000-03-12 Ken Raeburn <raeburn@gnu.org>
12478 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
12479 variable before the invocation of YMF_PASS_LDFLAGS, in case both
12480 of them try to use backquotes.
12482 2000-03-12 Dave Love <fx@gnu.org>
12484 * unexelf.c: Restore changes of 1999-10-19.
12485 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
12486 fix its type and alignment; copy it from current process.
12488 2000-03-12 Gerd Moellmann <gerd@gnu.org>
12490 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
12491 has been found. Fix bug not computing timer's predecessor.
12493 * fileio.c (Fread_file_name): Handle case that DIR contains a
12496 * window.c (Fsave_window_excursion): Doc fix.
12498 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
12500 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
12502 * msdos.c (vga_installed): New function, code moved from
12503 dos_set_window_size.
12504 (Qbar, Qcursor_type, outside_cursor): New variables.
12505 (syms_of_msdos): Intern and staticpro them.
12506 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
12507 shape used outside Emacs when called for the first time.
12508 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
12509 cursor shape used outside Emacs.
12510 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
12511 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
12513 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
12514 parameters specify the cursor. Make qreverse a global
12515 variable (renamed to Qreverse).
12517 2000-03-09 Gerd Moellmann <gerd@gnu.org>
12519 * fns.c (Fy_or_n_p): Cancel busy-cursor.
12521 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
12523 This is a big redesign of failure-stack and register handling, prompted
12524 by bugs revealed when trying to add shy-groups. Overall, what happened
12525 is that loops are now structured a little differently, groups can be
12526 shy and the code is a little simpler.
12528 * regex.h: Update the copyright.
12529 (RE_SHY_GROUPS): New value.
12530 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
12531 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
12533 * regex.c (enum re_opcode_t): Remove jump_past_alt,
12534 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
12535 on_failure_jump_(exclusive, loop and smart). Also fix the comment
12536 for (start|stop)_memory since they now only take one argument (the
12537 second has becomes unnecessary).
12538 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
12539 (print_compiled_pattern): Use %ld to printf long ints and flush to
12540 make debugging a little easier.
12541 (union fail_stack_elt): Make the integer unsigned.
12542 (struct fail_stack_type): Add a `frame' element.
12543 (INIT_FAIL_STACK): Init `frame' as well.
12544 (POP_PATTERN_OP): New macro for re_compile_fastmap.
12545 (DEBUG_PUSH, DEBUG_POP): Remove.
12546 (NUM_REG_ITEMS): Remove.
12547 (NUM_NONREG_ITEMS): Adjust.
12548 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
12549 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
12550 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
12551 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
12553 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
12554 address pushed is not the destination of the jump but the source
12556 (NUM_FAILURE_ITEMS): Remove.
12557 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
12558 registers before the actual failure point). Don't hardcode any
12559 meaning for str==NULL anymore.
12560 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
12561 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
12563 (REG_UNSET_VALUE): Use NULL (why not?).
12564 (compile_range): Remove declaration since it doesn't exist.
12565 (struct compile_stack_elt_t): Remove inner_group_offset.
12566 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
12567 (regex_grow_registers): Remove dead code.
12568 (FIXUP_ALT_JUMP): New macro.
12569 (regex_compile): Add shy-groups Change loops to use
12570 on_failure_jump_smart&jump instead of
12571 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
12572 initial (dummy_failure_)jump. Remove c1_base (looks like unused
12573 variable to me). Use `jump' instead of `jump_past_alt' and don't
12574 bother with push_dummy_failure in alternatives since it is now
12575 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
12576 emacs' for (re)allocating the stack.
12577 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
12578 from loop when bufp->can_be_null rather than jumping to `done'.
12579 Avoid jumping backwards so as to ensure termination. Use
12580 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
12581 backreferences. Remove dead code in handling of `anychar'.
12582 (skip_noops, mutually_exclusive_p): New functions taken from the
12583 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
12584 improve mutually_exclusive_p to handle ".+\n".
12585 (lowest_active_reg, highest_active_reg)
12586 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
12587 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
12588 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
12589 variables. Push register (in `start_memory') on the stack rather
12590 than storing it in old_reg(start|end). Remove the cycle detection
12591 from `stop_memory', replaced by the use of on_failure_jump_loop
12592 for greedy loops. Add code for the new on_failure_jump_<foo>.
12593 Remove ad-hoc code in `on_failure_jump' to push more registers in
12594 the case of a loop. Take out code from `maybe_pop_jump' into
12595 separate functions and adapt it to the semantics of
12596 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
12597 and push_dummy_failure. Remove dummy_failure handling and
12598 handling of `failures to jump to on_failure_jump' (this last one
12599 was already dead code, it seems).
12600 (group_match_null_string_p, alt_match_null_string_p)
12601 (common_op_match_null_string_p): Remove.
12603 2000-03-08 Dave Love <fx@gnu.org>
12605 * config.in: Don't depend on __STDC__ for volatile.
12606 Add POINTER_TYPE, PTR, PROTOTYPES.
12608 * hftctl.c, strftime.c: Use PROTOTYPES.
12609 * eval.c (find_handler_clause): Likewise.
12611 * mem-limits.h: Use POINTER_TYPE.
12613 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
12614 (memory_warnings): Declare using POINTER_TYPE.
12616 2000-03-08 Gerd Moellmann <gerd@gnu.org>
12618 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
12620 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
12622 * xfns.c: Remove obsolete code in #if 0.
12623 (Fx_focus_frame): New function.
12625 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12627 * coding.c (coding_category_name): Add coding-category-utf-8,
12628 coding-category-utf-16-be, coding-category-utf-16-le.
12629 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
12630 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
12631 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
12632 (detect_coding_utf_8): New function.
12633 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
12634 UTF_16_LOW_SURROGATE_P): New macros.
12635 (detect_coding_utf_16): New function
12636 (detect_coding_mask): When priorities are specified, skip any
12637 categories that have `nil' coding-system. Fix bug of returning
12638 wrong mask when PRIORITIES is specified and detect_coding_XXX()
12639 returns a mask not set in PRIORITIES.
12640 (detect_eol_type_in_2_octet_form): New function.
12641 (detect_eol): selects detect_eol_type_XXX to call according to
12642 cooding->category_idx.
12643 (detect_coding_system): Remove `nil' coding-system in the result.
12644 (Fupdate_coding_systems_internal): Update all coding-categories.
12646 * coding.h (CODING_CATEGORY_IDX_UTF_8)
12647 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
12649 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
12650 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
12651 (CODING_CATEGORY_IDX_UTF_16_LE)
12652 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
12653 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
12654 (CODING_CATEGORY_MASK_ANY): Include the above macros.
12655 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
12657 2000-03-07 Gerd Moellmann <gerd@gnu.org>
12659 * doc.c (Fdocumentation_property): If value is not a string,
12660 and doesn't refer to etc/DOC, evaluate it to obtain a string.
12662 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
12663 close the display with XtCloseDisplay. This caused a bus error
12666 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
12667 complete but not unique.
12669 2000-03-06 Gerd Moellmann <gerd@gnu.org>
12671 * process.c (send_process): Remove local variable `procname' that
12672 might become invalid when a GC happens. Instead, access the
12673 process name slot directly.
12675 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
12676 orig_height if set.
12678 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
12679 orig_height if set.
12681 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
12683 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
12684 glyph matrices have been freed.
12686 2000-03-05 Gerd Moellmann <gerd@gnu.org>
12688 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
12689 (bootstrap-temacs): Set LC_ALL to C like for temacs.
12691 * xfns.c (QCdata): Moved to xdisp.c.
12693 * xdisp.c (QCdata): Moved here from xfns.c.
12694 (syms_of_xdisp): Initialize QCdata.
12696 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
12698 * window.c (coordinates_in_window): Use
12699 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
12700 FRAME_INTERNAL_BORDER_WIDTH.
12702 * xdisp.c (try_window_id): Recompute unchanged information if
12703 it is obviously invalid.
12705 * xterm.c (x_term_init): Create a colormap if not using the
12708 * xterm.h (select_visual): Change prototype.
12710 * xfns.c (select_visual): Rewritten. Recognize user-specified
12712 (visual_classes): New variable.
12714 2000-03-04 Gerd Moellmann <gerd@gnu.org>
12716 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
12717 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
12718 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
12719 (x_decode_color): Don't handle allocation of white and black specially.
12720 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
12721 XtNcolormap resources.
12722 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
12723 (Fx_create_frame): Initialize color members of x_output structure.
12724 (xpm_load): Pass colormap to XPM lib.
12726 * xfaces.c (x_free_colors): Access colormap of frame using
12727 FRAME_X_COLORMAP. Be paranoid about freeing black and white
12728 when default colormap is used.
12730 * xterm.c (x_term_init): Set Colormap member of x_display_info
12731 structure. Copy colormap if resource `privateColormap' is
12732 specified (PseudoColor only).
12733 (x_setup_relief_color): Access colormap of frame using
12736 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
12737 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
12739 2000-03-04 Jason Rumney <jasonr@gnu.org>
12741 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
12742 other non-platform-specific equivalents.
12743 [WINDOWSNT]: Include w32term.h, fontset.h and define X
12744 specific functions and macros as their w32 equivalents where
12745 non-platform-specifics are not available.
12746 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
12747 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
12748 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
12749 (frame_update_line_height): Use macros to access f->output_data.
12750 (defined_color): Remove FIXME comments; fixed.
12751 (x_face_list_fonts, prepare_face_for_display): Put X specifics
12752 into #ifdef blocks. Add WINDOWSNT blocks.
12753 (Fx_list_fonts): Use macros for accessing font data.
12754 (set_lface_from_font_name): Different default fonts for X and
12756 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
12757 scalable for backward compatibility.
12758 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
12759 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
12761 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
12764 * makefile.nt (w32faces.obj): Remove.
12767 2000-03-03 Jason Rumney <jasonr@gnu.org>
12769 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
12770 correct parameters.
12772 2000-03-03 Ken Raeburn <raeburn@gnu.org>
12774 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
12775 standard ELF definitions here if the system header does not.
12777 2000-03-03 Gerd Moellmann <gerd@gnu.org>
12779 * xterm.c (PER_CHAR_METRIC): Removed.
12780 (x_per_char_metric_1, x_default_char): New functions.
12781 (x_per_char_metric): If font's default char is invalid, return
12782 metrics of a suitably chosen usable default char.
12783 (x_draw_glyph_string_foreground): If font has an invalid default
12784 char, replace occurrences of unprintable chars with a suitably
12785 chosen usable default char.
12787 2000-03-02 Gerd Moellmann <gerd@gnu.org>
12789 * xterm.c (note_mouse_highlight): Return quickly if frame's
12790 glyph matrices have been freed.
12792 * dispnew.c (free_glyphs): Block input while freeing matrices.
12794 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
12796 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
12799 * dispextern.h (x_free_colors): Add prototype.
12801 * xfaces.c (x_free_colors): New function.
12802 (unload_color, free_face_colors): Use it.
12804 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
12806 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
12808 * window.c [MSDOS]: Include msdos.h.
12810 2000-03-02 Dave Love <fx@gnu.org>
12812 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
12814 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
12815 set C_OPTIMIZE_SWITCH for gcc.
12817 2000-03-02 Kenichi Handa <handa@etl.go.jp>
12819 * coding.c (coding_save_composition): Be sure to allocate
12820 composition data area in coding even if there's no composition in
12823 2000-03-01 Jason Rumney <jasonr@gnu.org>
12825 * w32term.c: Equivalent changes to those made to xterm.c on
12826 2000-02-25 and 2000-02-24.
12828 * w32fns.c: Equivalent changes to those made to xfns.c on
12829 2000-02-25 and 2000-02-21.
12831 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
12832 correct line-end convention is followed.
12834 * w32menu.c [HAVE_BOXES]: Remove #undef.
12835 (single_keymap_panes): Remove code for simulating checkmarks.
12836 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
12837 Remove code for drawing simulated checkmarks.
12838 (w32_menu_show): make unibyte help string correctly.
12839 (add_menu_item): draw standard Windows checkmarks. Draw radio
12840 buttons as radio buttons if possible.
12842 2000-03-01 Gerd Moellmann <gerd@gnu.org>
12844 * sysdep.c (start_of_text): Don't define this function for NetBSD
12847 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
12849 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
12850 (LINKER): Don't undef if __NetBSD__ is defined.
12852 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
12854 * fileio.c [__NetBSD__]: Define `unix'.
12856 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
12858 2000-02-29 Gerd Moellmann <gerd@gnu.org>
12860 * atimer.c (start_atimer): Don't abort when timers are stopped.
12861 (append_atimer_lists): New function.
12862 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
12863 arbitrary lists of stopped and running atimers.
12865 * atimer.c (cancel_atimer): Handle canceling an atimer when
12866 some timers are stopped.
12868 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
12869 after canceling it.
12871 * fns.c (maybe_resize_hash_table): Handle case of new size
12872 coming out as being the same as old size.
12874 2000-02-27 Jason Rumney <jasonr@gnu.org>
12876 * makefile.nt: Add atimer.h to dependencies.
12877 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
12878 * w32console.c: Only disable window system features for dispextern.h
12879 (initialize_w32_display): Build a display info for the console.
12880 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
12881 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
12882 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
12884 * w32gui.h (struct W32FontStruct): Revert last change after change
12886 * w32menu.c (single_submenu): Set up help string.
12887 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
12888 (w32_dialog_show): Set up help string.
12889 * w32term.c (w32_display_info_for_display): Remove unused function.
12890 (w32_draw_bitmap): Use pre-built bitmaps.
12891 (w32_initialize_display_info): New function to initialize parts of
12892 display info that are common to both GUI and console frames.
12893 (w32_term_init): Use w32_initialize_display_info. Do not set
12894 Vw32_num_mouse_buttons here, as it is not called for console
12895 frames. Build bitmaps for indicating truncated lines etc.
12896 (x_delete_display): Destroy pre-built bitmaps.
12897 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
12898 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
12900 2000-02-27 Dave Love <fx@gnu.org>
12902 * lisp.h: Add a bunch of prototypes.
12904 2000-02-26 Kenichi Handa <handa@etl.go.jp>
12906 * keyboard.c (read_char): Set `usec' correctly.
12908 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12910 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
12911 `lambda', set reg[RRR] to the map index.
12912 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
12913 reg[RRR] to 0. Otherwise, set it to -1.
12915 2000-02-25 Gerd Moellmann <gerd@gnu.org>
12917 * emacs.c (main): Remove code snippet commented out with `//'.
12919 2000-02-25 Richard M. Stallman <rms@gnu.org>
12921 * fileio.c (Ffile_symlink_p): If result starts with a `/'
12922 and contains a `:', prepend `/:'.
12924 * window.c (select_window_1): If selected_window is nil,
12925 don't "swap out" the buffer's point.
12926 (Fset_window_configuration): Set selected_window to nil
12927 before calling Fselect_window.
12928 (unshow_buffer): Don't set point in buffer from window's point
12929 if another more recently selected window also shows the buffer.
12931 2000-02-25 Gerd Moellmann <gerd@gnu.org>
12933 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
12935 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
12936 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
12937 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
12939 (DEFAULT_BUSY_CURSOR_DELAY): New define.
12940 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
12941 (hide_busy_cursor): New functions.
12942 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
12944 * minibuf.c (read_minibuf): Cancel busy-cursor.
12946 * keyboard.c (command_loop_1): Call start_busy_cursor before
12947 Fcommand_execute and cancel_busy_cursor after it.
12948 (timer_check): Remove busy-cursor code.
12949 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
12952 * process.c (wait_reading_process_input): Remove busy-cursor code.
12954 * eval.c (Fsignal): Call cancel_busy_cursor instead of
12955 Fx_hide_busy_cursor.
12957 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
12959 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
12961 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
12963 * xterm.c (XTread_socket): Remove busy-cursor code.
12965 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
12966 (build_frame_matrix_from_leaf_window): Put code handling
12967 glyph row's not being a slice of a frame row in #if 0.
12968 (sync_window_with_frame_matrix_rows): New function.
12969 (frame_row_to_window): New function.
12970 (mirror_line_dance): Handle copies between windows.
12972 * lread.c (Fload): Use `xfree' instead of `free'.
12973 (init_obarray): Use `xmalloc' instead of `malloc'.
12975 * window.c (Fset_window_buffer): Set WINDOW to the window
12977 (coordinates_in_window): Take frame's internal border width
12980 2000-02-24 Gerd Moellmann <gerd@gnu.org>
12982 * xterm.c (x_display_and_set_cursor): Display cursor of
12983 non-selected windows depending on the setting of
12984 cursor_in_non_selected_windows.
12986 * xdisp.c (cursor_in_non_selected_windows): New variable.
12987 (syms_of_xdisp): DEFVAR_BOOL it.
12989 2000-02-23 Gerd Moellmann <gerd@gnu.org>
12991 * data.c (Fstring_to_number): If number is greater than what
12992 fits into an integer, return a float.
12994 * eval.c (specbind): Remove references to
12995 keyword_symbols_constant_flag.
12997 * data.c (keyword_symbols_constant_flag): Removed.
12998 (Fmakunbound, set_internal, syms_of_data): Remove references to
12999 keyword_symbols_constant_flag.
13001 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
13003 2000-02-23 Kenichi Handa <handa@etl.go.jp>
13005 * syntax.c (multibyte_syntax_as_symbol): New variable.
13006 (syms_of_syntax): Declare it as a Lisp variable.
13007 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
13008 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
13009 nonzero, treat all multibyte characters as symbol.
13010 (init_syntax_once): Give syntax `word' to all multibyte characters.
13012 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13014 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
13017 2000-02-21 Gerd Moellmann <gerd@gnu.org>
13019 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
13021 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13022 (x_non_menubar_window_to_frame): Check the busy-cursor window.
13024 2000-02-21 Dave Love <fx@gnu.org>
13026 * frame.c (Vmouse_position_function): New variable.
13027 (Fmouse_position): Use it.
13028 (syms_of_frame): Install it.
13030 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
13032 2000-02-20 Gerd Moellmann <gerd@gnu.org>
13034 * fileio.c (Finsert_file_contents): Unbind the binding of
13035 standard-output done by temp_output_buffer_setup.
13037 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
13038 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
13039 (specbind, unbind_to): Handle most common case of non-constant
13040 symbol with trivial value specially.
13042 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
13044 2000-02-20 Richard M. Stallman <rms@gnu.org>
13046 * data.c (Fmake_variable_buffer_local): Doc fix.
13047 Init found_for_buffer to 0.
13048 (Fmake_variable_frame_local): If the variable has already
13049 been buffer-local, set the check_frame field.
13051 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
13053 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
13054 produced for CODING_MODE_LAST_BLOCK requires.
13056 2000-02-18 Dave Love <fx@gnu.org>
13058 * keyboard.c (echo_keystrokes): Remove declaration.
13059 (Vecho_keystrokes) New variable.
13060 (read_char, record_menu_key, read_key_sequence): Use it to allow
13061 use of float value.
13062 (syms_of_keyboard): Change Vecho_keystrokes declaration.
13064 * lread.c: Undef feature selection macros before defining.
13066 2000-02-18 Gerd Moellmann <gerd@gnu.org>
13068 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
13069 for symbols other than the symbol in question.
13071 2000-02-17 Dave Love <fx@gnu.org>
13073 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
13075 2000-02-17 Gerd Moellmann <gerd@gnu.org>
13077 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
13079 * alloc.c (enum mem_type): Compile unconditionally.
13081 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
13083 * xfaces.c (tty_defined_color): Don't return faulire indication
13084 for unspecified-fg and unspecified-bg pseudo-colors.
13086 2000-02-17 Gerd Moellmann <gerd@gnu.org>
13088 * alloc.c (mark_object): Don't mark symbol names in pure space.
13089 (gc_sweep): Don't unmark symbol names in pure space.
13091 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
13092 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
13093 [GC_MARK_STACK]: New defines.
13094 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
13095 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
13097 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
13099 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
13100 allocate_buffer instead of xmalloc.
13102 * alloc.c (toplevel): Include setjmp.h.
13103 (PURE_POINTER_P): New define.
13104 (enum mem_type) [GC_MARK_STACK]: New enumeration.
13105 (Vdead) [GC_MARK_STACK]: New variable.
13106 (lisp_malloc): Add parameter TYPE, call mem_insert if
13107 GC_MARK_STACK is defined.
13108 (allocate_buffer): New function.
13109 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
13110 (free_float) [GC_MARK_STACK]: Set type to Vdead.
13111 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
13112 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
13113 (MEM_NIL) [GC_MARK_STACK]: New define.
13114 (struct mem_node) [GC_MARK_STACK]: New structure.
13115 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
13116 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
13117 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
13118 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
13119 (mark_stack) [GC_MARK_STACK]: New functions.
13120 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
13121 (clear_marks): Removed.
13122 (gc_sweep): Set free conses' car, free floats' type, free
13123 symbols' function to Vdead. Use lisp_free to free buffers.
13124 (init_alloc_once): Initialize Vdead.
13125 (survives_gc_p): Return non-zero for pure objects.
13127 * alloc.c: Add comments throughout the file.
13129 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
13130 that unblocks alarms.
13132 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
13133 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
13134 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
13136 * frame.c (make_frame): Set frame initiallly to `garbaged'.
13138 2000-02-17 Kenichi Handa <handa@etl.go.jp>
13140 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
13141 avoid infinite error signaling. Allocate sufficient memory for
13142 eol_str in the case that eoltype is Lisp_Int.
13144 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
13146 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
13147 depends on the previous behavior.
13149 2000-02-16 Gerd Moellmann <gerd@gnu.org>
13151 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
13153 2000-02-15 Gerd Moellmann <gerd@gnu.org>
13155 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
13157 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
13158 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
13161 2000-02-15 Richard M. Stallman <rms@gnu.org>
13163 * data.c (set_internal): Don't make variable buffer-local
13164 if within a let-binding for the same buffer.
13165 (let_shadows_buffer_binding_p): New function.
13167 * eval.c (specbind): For buffer-local value,
13168 record the current buffer also.
13169 (unbind_to): Cope with that change.
13171 2000-02-15 Gerd Moellmann <gerd@gnu.org>
13173 * window.c (Fsave_window_excursion): Doc fix.
13175 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
13177 * syntax.c (back_comment): Make sure we only consider comment-starters
13178 of the relevant style and return -1 in case of a failure to find the
13179 beginning of the comment.
13180 (Fforward_comment): If back_comment fails, go back to the position just
13181 after the comment-end.
13182 (scan_lists): Add comment describing a very minor bug.
13184 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13186 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
13187 `completion-regexp-list' in the docstring.
13189 2000-02-14 Dave Love <fx@gnu.org>
13191 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
13193 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13195 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
13196 to Emacs' syntax. Also fix the comment about set/not-set meanings
13197 since Emacs syntax is not the value 0 any more.
13198 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
13199 since it's now part of RE_SYNTAX_EMACS.
13201 2000-02-12 Dave Love <fx@gnu.org>
13203 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
13205 2000-02-12 Gerd Moellmann <gerd@gnu.org>
13207 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
13209 2000-02-12 Dave Love <fx@gnu.org>
13211 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
13213 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
13214 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
13215 * s/hpux.h: Don't define HAVE_VFORK.
13217 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
13219 * s/nextstep.h: Don't define HAVE_ALLOCA.
13221 * config.in: Add vfork bits.
13223 2000-02-12 Gerd Moellmann <gerd@gnu.org>
13225 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
13226 unwind function to undo the effect of stopping atimers.
13228 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
13230 * atimer.c (stopped_atimers): New variable.
13231 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
13234 * atimer.h (stop_other_atimers, run_all_atimers)
13235 (unwind_stop_other_atimers): Add function prototypes.
13237 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
13239 2000-02-11 Ken Raeburn <raeburn@gnu.org>
13241 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
13242 library may depend on jpeg.
13243 (atimer.o): Depends on atimer.c.
13245 2000-02-11 Kenichi Handa <handa@etl.go.jp>
13247 * insdel.c (del_range_1): Call update_compositions.
13248 (del_range_both): Call update_compositions just once..
13250 2000-02-10 Dave Love <fx@gnu.org>
13252 * xfns.c (create_frame_xic): Fix initialization of automatic
13253 aggregates for pcc.
13255 2000-02-09 Kenichi Handa <handa@etl.go.jp>
13257 * ccl.c (CCL_MAKE_CHAR): New macro.
13258 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
13259 registers by CCL_MAKE_CHAR before calling translate_char.
13260 <CCL_TranslateCharacterConstTbl> Likewise.
13262 2000-02-08 Dave Love <fx@gnu.org>
13264 * lread.c (__EXTENSIONS__): Define.
13266 2000-02-08 Gerd Moellmann <gerd@gnu.org>
13268 * puresize.h (BASE_PURESIZE): Increase to 650000.
13270 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
13272 * msdos.c (XMenuActivate): Turn off the cursor after displaying
13275 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
13277 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
13278 md, mh, mb, mr, and me to the fake termcap entry.
13280 2000-02-06 Ken Raeburn <raeburn@gnu.org>
13282 * sound.c (sound_cleanup): Don't call device close routine if the
13283 function pointer is null.
13285 2000-02-06 Andrew Innes <andrewi@gnu.org>
13287 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
13288 around image definitions and prototypes.
13289 (gamma_correct) [WINDOWSNT]: New prototype.
13291 * w32term.c (x_make_frame_visible): Replace call to
13292 input_poll_signal with poll_for_input.
13294 * window.c [WINDOWSNT]: Include w32term.h.
13296 * xdisp.c [WINDOWSNT]: Include w32term.h.
13298 * makefile.nt: Add dependencies on w32gui.h.
13299 (OBJ1): Include atimer.obj.
13300 ($(BLD)\atimer.obj): New dependency rule.
13302 * w32.c (sigmask): New function (does nothing).
13303 (sigunblock): Ditto.
13305 * frame.c [WINDOWSNT]: Include w32term.h.
13307 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
13309 * lread.c (syms_of_lread): Fix literal newlines.
13311 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
13312 the string constant limit (2048 bytes) in MSVC.
13315 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
13317 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
13318 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
13319 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
13320 dispatch the event.
13322 2000-02-04 Dave Love <fx@gnu.org>
13324 * fileio.c: Remove some unused vars.
13325 (_GNU_SOURCE): Define (for euidaccess).
13327 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
13329 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
13331 (read_minibuf): Deal with allow_props correctly.
13333 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
13335 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
13337 2000-02-03 Ken Raeburn <raeburn@gnu.org>
13339 * search.c (compile_pattern): If a cache entry has a nil regexp,
13340 fill in that entry instead of clobbering a previously cached
13343 2000-02-02 Ken Raeburn <raeburn@gnu.org>
13345 * puresize.h (BASE_PURESIZE): Increase to 610000.
13347 2000-02-02 Gerd Moellmann <gerd@gnu.org>
13349 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
13352 2000-02-02 Kenichi Handa <handa@etl.go.jp>
13354 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
13355 instead of incrementing ic directly.
13356 <CCL_WriteExprConst> Likewise.
13357 <ccl_set_expr>: Set ic to jump_address.
13359 * fileio.c (e_write): Fix the handling of
13360 CODING_FINISH_INSUFFICIENT_SRC.
13362 2000-02-01 Dave Love <fx@gnu.org>
13364 * editfns.c (Fpropertize): Doc fix.
13366 * process.c (Fstart_process): Doc fix.
13368 * eval.c: Fix various doc strings not to duplicate information
13369 from help-manyarg-func-alist.
13371 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
13373 * doc.c (Vhelp_manyarg_func_alist): New variable.
13374 (Fdocumentation): Use it.
13375 (syms_of_doc): Define it.
13377 2000-01-31 Gerd Moellmann <gerd@gnu.org>
13379 * xterm.c (xim_open_dpy): Remove unused local variable.
13381 * emacs.c (USAGE): Use term `display options' instead of `X options'.
13383 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
13384 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13386 * fns.c (sweep_weak_table): New function.
13387 (sweep_weak_hash_tables): Use it. Keep on marking until there
13390 2000-01-30 Gerd Moellmann <gerd@gnu.org>
13392 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
13393 that XTread_socket does not crash by trying to call XNoOp on a
13396 2000-01-30 Jason Rumney <jasonr@gnu.org>
13398 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
13399 Change selected_frame to SELECTED_FRAME ().
13400 (w32_console_mouse_position): Remove #ifndef MULE from around
13401 `insist' parameter.
13403 * makefile.nt: Remove dosfns.obj.
13405 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
13407 * w32fns.c (w32_defined_color): Check for valid frame before
13408 applying gamma correction. Eliminate dependency on frame elsewhere.
13409 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
13410 (w32_to_x_font): Use resx and resy not height_in and width_in.
13411 (x_to_w32_font): Doc fix.
13412 (xlfd_strip_height): New function to strip and return font height.
13413 (w32_font_match): Compare height separately from rest of xlfd
13414 spec, using xlfd_strip_height.
13416 * w32term.c (w32_term_init): Swap resx and height_in, resy and
13417 width_in. Use w32_defined_color in place of defined_color.
13419 * w32faces.c: Merge more of DOS and X specifics in preparation for
13420 merge with xfaces.c.
13421 (defined_color): Remove FIXME comment.
13422 (tty_color_name): Provide w32-specific function.
13423 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
13425 * w32console.c (turn_on_face, turn_off_face): Removed.
13426 (w32_face_attributes): New function.
13427 (Global_variables): Reduce scope where possible.
13428 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
13430 (hl_mode): Don't modify text attributes.
13431 (write_glyphs): Don't do anything if len <= 0. Use
13432 w32_face_attributes to get attributes for drawing. Write
13433 terminating codes using char_attr_normal.
13434 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
13435 (update_begin, update_end): Likewise.
13436 (vga_stdcolor_name): New function.
13437 (initialize_w32_display): Remove char_attr_reverse and char_attr.
13438 (Fset_screen_color): Remove char_attr_reverse.
13440 2000-01-29 Gerd Moellmann <gerd@gnu.org>
13442 * xfns.c (xic_set_preeditarea): Take window parameter and
13443 window-relative pixel-positions.
13445 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
13446 is its frame's selected window.
13447 (xim_instantiate_callback): Likewise.
13449 * xfns.c (x_create_im): Removed.
13450 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
13451 (supported_xim_styles): Renamed from supported_styles.
13452 (best_xim_style): Renamed from best_style.
13453 (create_frame_xic): Renamed from xic_create_frame.
13454 (free_frame_xic): Renamed from xic_destroy_frame.
13456 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
13458 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
13459 our frames, call XFilterEvent with 2nd parameter `None'.
13460 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
13461 returning XBufferOverflow.
13462 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
13463 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
13464 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
13465 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
13466 (xim_initialize, xim_close)
13467 [HAVE_X_I18N && HAVE_X11R6]: New functions.
13468 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
13469 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
13470 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
13472 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
13474 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
13475 `xic_style' and `xic_xfs'.
13476 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
13477 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
13478 (FRAME_XIM): Removed.
13480 * xfns.c (supported_styles): New variable.
13481 (DEFAULT_STYLE, DEFAULT_FONT): New macros
13482 (xic_create_xfontset, best_style, xic_create_frame)
13483 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
13484 (xic_set_xfontset): New functions.
13486 2000-01-28 Dave Love <fx@gnu.org>
13488 * s/irix6-5.h: Revert last change after change to irix5-0.h.
13490 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
13492 2000-01-28 Gerd Moellmann <gerd@gnu.org>
13494 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
13495 for *scratch* if it already existed.
13497 * emacs.c (USAGE): New macro.
13498 (main): Use it to display usage information.
13500 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13502 Support for the menu-help feature:
13504 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
13506 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
13507 part of the line to the termscript file.
13508 (IT_clear_to_end): Clear the entire line, not just its beginning.
13509 (menu_help_message, prev_menu_help_message): New variables.
13510 (IT_menu_make_room): Make room for the help_text member.
13511 (IT_menu_display): New argument disp_help; all callers changed.
13512 If disp_help is non-zero, store the help text of the active menu
13513 item in menu_help_message.
13514 (XMenuAddPane): Initialize the help_text member to NULL.
13515 (XMenuAddSelection): New argument help_text. Store it in the
13517 (XMenuActivate): New argument help_callback. If the value of
13518 menu_help_message has changed since the last time, display the
13519 menu help message text while waiting for the mouse to move. Clear
13520 the echo area before exiting.
13521 (XMenuDestroy): Free the help_text member.
13523 2000-01-27 Gerd Moellmann <gerd@gnu.org>
13525 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
13526 XMenuAddSelection. Pass help callback to XMenuActivate.
13527 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
13529 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13531 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
13532 and EMACS_SET_USECS.
13534 2000-01-26 Dave Love <fx@gnu.org>
13536 * editfns.c (Fchar_after, Fchar_before): Doc fix.
13538 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
13539 an error may be signalled.
13541 2000-01-26 Gerd Moellmann <gerd@gnu.org>
13543 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
13544 LD_SWITCH_SYSTEM inherited from irix5-0.h.
13546 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
13548 2000-01-25 Gerd Moellmann <gerd@gnu.org>
13550 * charset.c (Fstring): If there is a multibyte char among
13551 the args, always return a multibyte string.
13553 2000-01-25 Gerd Moellmann <gerd@gnu.org>
13555 * sysdep.c (sys_select): Turn atimers off and on instead of
13556 recording and restoring old alarm handler
13558 * process.c (toplevel): Include atimer.h.
13559 (create_process_1): Rewritten.
13560 (create_process): Use atimers instead of alarm.
13561 (wait_reading_process_input) [hpux]: Turn atimers off instead
13562 of turning off SIGALRM.
13563 (wait_reading_process_input): Turn off atimers instead off
13564 calling stop_polling.
13566 * emacs.c (main): Call init_atimer.
13568 * keyboard.c (toplevel): Include systime.h and atimer.h.
13569 (polling_for_input): Removed because unused.
13570 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
13571 (poll_timer): New variable.
13572 (poll_for_input, poll_for_input_1): New functions.
13573 (start_polling, stop_polling): Rewritten.
13575 * keyboard.h (polling_for_input): Removed.
13577 * atimer.h, atimer.c: New files.
13579 * Makefile.in (obj): Add atimer.o.
13580 (atimer.o): New target.
13582 * blockinput.h (pending_atimers): Add extern declaration.
13583 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
13585 * lisp.h (popup_activated_flag): Add extern declaration.
13587 * xmenu.c (popup_activated_flag): Make externally visible.
13588 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
13589 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
13591 * xterm.c (toplevel): Include atimer.h.
13592 (toolkit_scroll_bar_interaction): New variable.
13593 (Fxt_process_timeouts): Removed.
13594 (x_process_timeouts): New function.
13595 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
13596 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
13597 (x_make_frame_visible): Call poll_for_input_1 instead of
13598 input_poll_signal. Don't call alarm.
13599 (x_initialize): Install timer calling x_process_timeouts.
13601 2000-01-24 Dave Love <fx@gnu.org>
13603 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
13604 Don't use -cckr -- apparently not now necessary.
13606 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
13608 * msdos.c (IT_menu_display): Truncate long menu lines at the right
13611 2000-01-23 Jason Rumney <jasonr@gnu.org>
13613 * w32fns.c (w32_defined_color): Apply gamma correction before
13614 trying to map to the palette.
13615 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
13618 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
13619 here. Callers changed to always pass real device context.
13620 (w32_draw_bitmap): Likewise.
13621 (w32_get_glyph_overhangs): Likewise.
13622 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
13623 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
13624 pfnSetScrollInfo and SetScrollRange.
13625 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
13626 back into MULE characters after decoding them.
13627 (x_get_glyph_face_and_encoding): Likewise.
13628 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
13629 GetCharABCWidthsW fails, since this is defined on Windows 9x.
13630 (x_produce_glyphs): Calculate per char metrics for a character
13631 that we know exists in default font when font_not_found_p is true.
13633 2000-01-22 Jason Rumney <jasonr@gnu.org>
13635 * makefile.nt (intervals.obj, composite.obj): New modules.
13636 (composite.h): Added as dependency where appropriate.
13638 * w32gui.h (XGCValue): New struct for emulating X GCs.
13640 * w32term.h (XCharStruct): New struct for emulating X.
13642 * w32console.c (turn_on_face, turn_off_face): New functions.
13643 (change_line_highlight): New prototype for new redisplay.
13644 (write_glyphs): Support multibyte text. Support faces.
13646 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
13648 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
13649 throughout. struct frame * in place of FRAME_PTR.
13650 Skeleton support for images, toolbars, tooltips from xfns.c.
13651 (Fx_create_frame): Use system default for default scroll bar width.
13652 (w32_get_arg): Renamed from x_get_arg.
13653 (Fx_file_dialog): New function.
13654 (w32_list_fonts): Check cache before asking system.
13655 (Vw32_enable_synthesized_fonts): New variable.
13656 (Vw32_enable_italics): Obsolete, removed.
13658 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
13659 Use SELECTED_FRAME macro.
13661 * w32menu.c: Add skeleton support for help strings on menus.
13662 (add_menu_item): Native checkbox and radio support added, but not
13663 yet enabled due to bugs.
13664 (push_menu_item): Add parameters type, selection and help.
13666 Formatting changes to reduce unnecessary diffs with xmenu.c.
13668 * w32select.c (Fw32_set_clipboard_data): Update call to
13669 find_charset_in_str.
13671 * w32term.c: Complete rewrite for new redisplay based on new
13672 xterm.c with necessary sections merged back in from old w32term.c.
13674 2000-01-21 Richard M. Stallman <rms@gnu.org>
13676 * data.c (set_internal): Further fix in same criterion.
13678 2000-01-20 Richard M. Stallman <rms@gnu.org>
13680 * data.c (set_internal): Fix the criteria for whether
13681 to swap out the old cached binding.
13683 2000-01-19 Dave Love <fx@gnu.org>
13685 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
13687 2000-01-18 Kenichi Handa <handa@etl.go.jp>
13689 * regex.c (re_compile_fastmap): While checking a range table for
13690 `charset', skip flag bits for a character class correctly.
13692 2000-01-17 Gerd Moellmann <gerd@gnu.org>
13694 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
13696 * xfns.c (x_window): Call lw_create_widget with new parameter list.
13698 * widget.c (EmacsFrameSetCharSize): Change size of children first
13699 because of problems with main window geometry management under Lesstif.
13701 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
13702 MENU_ITEMS_ITEM_.*.
13703 (MENU_ITEMS_ITEM_HELP): New enumerator.
13704 (push_menu_item): Add parameter HELP. Record help in menu_items.
13705 (single_menu_item, single_submenu, list_of_items): Call
13706 push_menu_item with new parameter.
13707 (single_submenu): Set help string in widget value.
13708 (menu_highlight_callback): New function.
13709 (set_frame_menubar): Call lw_create_widget with new
13711 (xmenu_show, xdialog_show): Ditto.
13713 2000-01-13 Gerd Moellmann <gerd@gnu.org>
13715 * sound.c (Fplay_sound): Improve doc string.
13717 2000-01-11 Richard M. Stallman <rms@gnu.org>
13719 * lisp.h (set_internal): Enter the new arg.
13721 * eval.c (specbind): Record buffer-local variables specially,
13722 indicating which buffer's binding was saved.
13723 (unbind_to): Restore buffer-local variables specially
13724 in the proper buffer.
13726 * data.c (set_internal): New arg BUF.
13728 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
13729 * data.c (Fset): Pass new arg to set_internal.
13730 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
13732 2000-01-11 Gerd Moellmann <gerd@gnu.org>
13734 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
13736 2000-01-11 Richard M. Stallman <rms@gnu.org>
13738 * minibuf.c (Ftry_completion): Doc fix.
13740 2000-01-11 Gerd Moellmann <gerd@gnu.org>
13742 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
13745 2000-01-11 Andreas Schwab <schwab@suse.de>
13747 * coding.c (code_convert_region): Initialize total_skip.
13749 2000-01-08 Dave Love <fx@gnu.org>
13751 * eval.c (Fuser_variable_p): Check customizability too.
13753 2000-01-07 Gerd Moellmann <gerd@gnu.org>
13755 * minibuf.c (Fcompleting_read): Doc fix.
13757 2000-01-05 Gerd Moellmann <gerd@gnu.org>
13759 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
13762 * xfns.c (x_create_im): New function to set IM and IC of a frame.
13763 Check that input style is supported before trying to create an
13765 (x_window): Call x_create_im.
13767 2000-01-04 Gerd Moellmann <gerd@gnu.org>
13769 * xfns.c (current_gif_memory_src): New variable.
13770 (gif_load): Record the address of the current memory source
13771 in current_gif_memory_src.
13772 (gif_read_from_memory): Use current_gif_memory_src.
13774 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
13775 macros statement form.
13777 * sound.c (struct sound): Renamed from struct sound_file.
13778 (struct sound): Add members `data' and `header_size'.
13779 (enum sound_attr): Add SOUND_DATA.
13780 (current_sound, current_sound_device): Variables renamed from
13781 sound_file and sound_device.
13782 (parse_sound): Parse :data.
13783 (parse_sound): Handle sound data in strings.
13784 (find_sound_type): Function renamed from find_sound_file_type.
13785 (wav_init, au_init): Fail if sound's header_size is smaller than
13786 needed header size.
13787 (wav_play, au_play): Play sounds from string data.
13789 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
13791 * lisp.h: Add prototype for allocate_string_data.
13793 * alloc.c (Fgarbage_collect): Return number of live and free strings.
13795 * alloc.c (mark_buffer): Remove code in #if 0.
13797 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
13798 (strings_consed): New variable.
13799 (allocate_string): Set it.
13800 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
13801 (Fmemory_use_counts): Return strings_consed. Use Flist.
13803 * alloc.c: General cleanup in comments etc. Remove conditional
13804 compilation for `standalone'.
13806 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
13808 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
13809 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
13810 (DONT_COPY_FLAG): Removed.
13811 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
13812 (struct sdata, struct sblock): New
13813 (struct string_block): Rewritten.
13814 (STRINGS_IN_STRING_BLOCK): New macro.
13815 (oldest_sblock, current_sblock, total_strings, total_free_strings)
13816 (large_sblocks, string_blocks, string_free_list): New variables.
13817 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
13818 (init_strings): Rewritten.
13819 (allocate_string, allocate_string_data, compact_small_strings)
13820 (free_large_strings, sweep_strings): New functions.
13821 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
13822 (struct string_block_head, current_string_block)
13823 (first_string_block, large_string_blocks, STRING_FULLSIZE)
13824 (STRING_PAD): Removed.
13825 (make_uninit_multibyte_string, make_pure_string): Rewritten.
13826 (Fgarbage_collect): Don't set mark bit in large strings.
13827 (mark_object): Mark strings differently. Mark symbol names
13829 (survives_gc_p): Test marked strings differently.
13830 (gc_sweep): Sweep strings differently, unmark strings in
13832 (compact_strings): Removed.
13834 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
13836 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
13837 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
13839 2000-01-04 Kenichi Handa <handa@etl.go.jp>
13841 * fileio.c (Finsert_file_contents): Signal error if visiting file
13842 in a non-empty buffer.
13844 * term.c (encode_terminal_code): Fix the previous change.
13846 2000-01-03 Gerd Moellmann <gerd@gnu.org>
13848 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
13849 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
13851 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
13853 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13855 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
13856 need to test for MSDOS frames.
13858 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13860 * dosfns.c (unspecified_colors): Remove.
13861 (msdos_stdcolor_idx): Use global variables unspecified_fg and
13863 (msdos_stdcolor_name): Return strings for unspecified fore- and
13864 back-ground colors.
13866 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
13867 (syms_of_xfaces): Remove their staticpro's.
13868 (tty_color_name): Return Lisp strings for unspecified fore- and
13869 back-ground colors.
13870 (Finternal_set_lisp_face_attribute): Remove the special treatment
13871 for Qunspecified_{f,b}g.
13872 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
13874 2000-01-03 Gerd Moellmann <gerd@gnu.org>
13876 * xdisp.c (reseat_at_next_visible_line_start): Position before
13877 newline only if ending up on a newline.
13878 (next_element_from_ellipsis): Return success. Handle case of
13879 displaying no ellipsis. Fix case of ellipsis defined in display table.
13880 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
13883 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13885 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
13886 (Fcolor_supported_p): Renamed from face-color-supported-p.
13888 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13890 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
13891 list of colors renamed to tty-defined-color-alist.
13892 (tty_color_name): Pass the frame to tty-color-by-index.
13893 (realize_tty_face): tty-color-alist is now a function which
13894 accepts the frame as argument.
13896 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
13898 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13900 * term.c (insert_glyphs): Pass glyph, not &glyph, to
13901 encode_terminal_code.
13903 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13905 * dispnew.c (mode_line_string): Support termcap frames as well.
13907 2000-01-01 Gerd Moellmann <gerd@gnu.org>
13909 * syntax.c (Fforward_word): Undo previous change.
13911 * editfns.c (Fconstrain_to_field): Don't constrain if
13912 inhibit-field-text-motion is non-nil.
13913 (Fline_beginning_position): Undo previous change.
13914 (Fline_end_position): Ditto.
13916 * syntax.c (Fforward_word): Notice field boundaries only if
13917 inhibit-field-text-motion is nil.
13919 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
13921 * editfns.c (Vinhibit_field_text_motion): New variable.
13922 (inhibit-field-text-motion): New DEFVAR_LISP.
13923 (Fline_beginning_position, Fline_end_position): Notice field
13924 boundaries only if inhibit-field-text-motion is nil.
13926 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
13927 All calls adjusted.
13928 (x_build_heuristic_mask): Likewise.
13929 (xbm_load_image_from_file): Change error output.
13930 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
13931 (gif_load, gs_load, x_kill_gs_process): Ditto.
13933 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
13934 color indices when accessing raster pixels.
13935 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
13936 one of :file or :data.
13937 (enum pbm_keyword_index): Add PBM_DATA.
13938 (pbm_format): Add :data.
13939 (pbm_image_p): Allow either :file or :data.
13940 (pbm_read_file): New function.
13941 (pbm_scan_number): Rewritten to read from string.
13942 (pbm_load): Support :data.
13944 See ChangeLog.8 for earlier changes.
13946 ;; Local Variables:
13947 ;; coding: iso-2022-7bit
13950 Copyright (C) 2001 Free Software Foundation, Inc.
13951 Copying and distribution of this file, with or without modification,
13952 are permitted provided the copyright notice and this notice are preserved.