1 2001-10-22 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
3 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
6 * fileio.c: Remove unused code.
8 2001-10-22 Miles Bader <miles@gnu.org>
10 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
11 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
12 Remove `DOC_STRINGS_IN_COMMENTS' cases.
14 2001-10-21 Jason Rumney <jasonr@gnu.org>
16 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
18 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
20 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
21 (Finsert_string): Avoid the multi-line string literals warning.
23 2001-10-22 Miles Bader <miles@gnu.org>
25 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
26 (Fdocumentation): Don't use it.
27 (syms_of_doc): Don't initialize it.
29 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
30 * print.c (Fwith_output_to_temp_buffer): Likewise.
31 * window.c (Fsave_window_excursion): Likewise.
32 * editfns.c (Fsave_excursion, Fsave_current_buffer)
33 (Fsave_restriction): Likewise.
34 * eval.c (Frun_hooks, Frun_hook_with_args)
35 (Frun_hook_with_args_until_failure)
36 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
37 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
38 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
39 (Funwind_protect, Fcondition_case): Likewise.
40 * coding.c (Ffind_operation_coding_system): Likewise.
41 * keyboard.c (Ftrack_mouse): Likewise.
43 2001-10-21 Miles Bader <miles@gnu.org>
45 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
46 (Fmake_hash_table): Add usage: string to doc string.
47 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
48 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
49 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
50 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
51 (Fml_prefix_argument_loop): Likewise.
53 2001-10-21 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
55 * fileio.c (Finsert_file_contents): Remove unused variable
58 * sysdep.c (init_sys_modes): Change doc-string comments to `new
59 style' [w/`doc:' keyword].
61 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
62 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
63 comments to `new style' [w/`doc:' keyword].
65 2001-10-21 Jason Rumney <jasonr@gnu.org>
67 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
69 * w32term.c (remember_mouse_glyph): New function.
70 (w32_mouse_position): Use it.
71 (note_mouse_movement): If the mouse moved off the glyph, remember
74 * w32term.h (struct w32_output): Correct spelling of x_compatible.
75 (w32_display_info): Add mouse_face_overlay.
77 * w32term.c (notice_overwritten_cursor): Renamed from
78 note_overwritten_text_cursor. Rewritten to take glyph widths into
80 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
81 (fast_find_string_pos): New function.
82 (fast_find_position): Return the correct vpos. Add parameter
83 STOP. In the final row, stop before glyphs having STOP as object.
84 Don't consider glyphs that are not from a buffer.
85 (fast_find_position) [0]: Add a presumably more correct version
87 (expose_window_tree, expose_frame): Don't compute intersections here.
88 (expose_window): Do it here instead.
89 (expose_window_tree, expose_window, expose_line): Return 1 when
90 overwriting mouse-face.
91 (expose_window): If W is the window currently being updated, mark
93 (expose_frame): If mouse-face was overwritten, redo it.
94 (x_use_underline_position_properties): New variable.
95 (syms_of_xterm): DEFVAR_BOOL it.
96 (x_draw_glyph_string): Add comment to use it in future.
97 (x_draw_glyph_string): Restore clipping after drawing box.
98 Fix a computation of the underline position.
99 (w32_get_glyph_string_clip_rect): Minor cleanup.
100 (x_fill_stretch_glyph_string): Remove an assertion.
101 (x_produce_glyphs): Don't convert multibyte characters
102 to unibyte characters in unibyte buffers.
103 (cursor_in_mouse_face_p): New function.
104 (x_draw_stretch_glyph_string): Use it to choose a different GC
105 when drawing a cursor within highlighted text. Don't draw
106 background again if it has already been drawn.
107 (x_draw_glyph_string_box): Don't draw a full-width
108 box just because the glyph row's full_width_p flag is set.
109 (x_draw_glyphs): Fix computation of rightmost x for
111 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
112 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
113 change bottom shadow accordingly. Some cleanup.
114 (x_update_window_end): Handle overwritten mouse face
115 also for tool bar windows.
116 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
117 DRAW is DRAW_IMAGE_RAISED.
118 (clear_mouse_face): Return 1 if text with mouse face was
119 actually redrawn. Make the function static. Reset
120 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
121 optimize away highlighting if we pass over that same overlay again.
122 (note_mouse_highlight): Call mouse_face_overlay_overlaps
123 to detect a case where we have to highlight a different region
124 despite not having left the currently highlighted region.
125 Set mouse_face_overlay in the x_display_info. Avoid changing the
126 mouse pointer shape when show_mouse_face has already done it, or
127 there is no need. Handle mouse-face and help-echo in strings.
128 (glyph_rect): New function.
129 (w32_mouse_position): Use it to raise the threshold for mouse
130 movement event generation.
131 (w32_initialize_display_info): Initialize the x_display_info's
133 (w32_set_vertical_scroll_bar): Don't clear a zero height
135 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
136 a widget to zero height.
138 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
139 Protect unibyte strings created by replacing their multibyte
140 equivalents in menu_items.
141 (w32_menu_show): Don't overwrite an item's name with its key
142 description in case the description is a multibyte string.
143 (single_submenu): Some cleanup.
145 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
146 (postprocess_image): New function.
147 (lookup_image): Call it for all image types except PostScript.
148 (x_kill_gs_process): Call postprocess_image.
149 (tiff_error_handler, tiff_warning_handler): New functions.
150 (tiff_load): Install them as handlers.
151 (x_kill_gs_process): Recognize if someone has cleared the image
153 (valid_image_p): Protect better against invalid image
154 specifications. Previous code could signal an error.
155 (Fx_hide_tip, Fshow_tip): Doc fix.
156 (Fv_max_tooltip_size): New variable.
157 (syns_of_xfns): DEFVAR_LISP it.
158 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
159 window buffer to *tip* right after creating the frame. Set frame's
160 window_width. Use a maximum tooltip size specified by
161 Vx_max_tooltip_size, if that has valid contents.
162 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
163 Make sure the tooltip is completely visible.
164 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
165 (Fx_create_frame): Adjust the frame's height for presence
166 of the tool bar before calling x_figure_window_size.
167 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
168 when the window gets smaller.
169 (x_set_foreground_color): Set frame's cursor_pixel.
170 (x_set_foreground_color, x_set_background_color): Cleaned up.
171 (x_set_font): Handle case of x_new_fontset returning the same name
172 as before, although there was a change in fontsets.
174 2001-10-21 Miles Bader <miles@gnu.org>
176 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
177 (Flogxor): Add usage: string to doc string.
178 * charset.c (Fstring): Likewise.
179 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
180 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
182 2001-10-21 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
184 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
186 * alloc.c: Reindent DEFUNs with doc: keywords.
188 * abbrev.c (Finsert_abbrev_table_description): Reindent.
190 * frame.c: Change doc-string comments to `new style' [w/`doc:'
193 2001-10-20 Gerd Moellmann <gerd@gnu.org>
195 * (Version 21.1 released.)
197 2001-10-20 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
199 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes
202 * xdisp.c (invisible_text_between_p): Put prototype inside #if
205 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
206 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c: Change
207 doc-string comments to `new style' [w/`doc:' keyword].
209 2001-10-20 Miles Bader <miles@gnu.org>
211 The following changes remove the glyph_row `inverse_p' field,
212 which is never set anymore, due to other changes:
214 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
215 (reassert_line_highlight, change_line_highlight): Declarations removed.
216 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
217 (line_hash_code, row_equal_p, fake_current_matrices)
218 (build_frame_matrix_from_leaf_window, update_frame_line)
219 (update_frame_line, update_frame_line, update_frame_line):
220 Don't use `inverse_p' field.
221 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
222 change_line_highlight_hook.
223 (XTreassert_line_highlight, x_change_line_highlight):
225 (x_fix_overlapping_area, x_write_glyphs, expose_area)
226 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
227 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
229 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
230 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
231 (w32_reassert_line_highlight, x_change_line_highlight):
233 * w32console.c (reassert_line_highlight, change_line_highlight):
235 (initialize_w32_display): Don't set reassert_line_highlight_hook
236 or change_line_highlight_hook.
237 (hl_mode): Function removed.
238 (reset_terminal_modes, set_terminal_modes, update_begin)
239 (update_end, w32_face_attributes, initialize_w32_display):
240 (clear_frame, ins_del_lines): Don't call it.
241 * termhooks.h (reassert_line_highlight_hook)
242 (change_line_highlight_hook): Declarations removed.
243 * term.c (reassert_line_highlight_hook)
244 (change_line_highlight_hook): Variables removed.
245 (reassert_line_highlight, change_line_highlight): Functions removed.
246 * msdos.c (IT_reassert_line_highlight)
247 (IT_change_line_highlight): Functions removed.
248 (internal_terminal_init): Don't set reassert_line_highlight_hook
249 or change_line_highlight_hook.
250 (highlight): Variable removed.
251 (IT_set_face, IT_update_begin, IT_update_end)
252 (IT_set_terminal_modes): Don't set or use it.
254 The following changes remove inverse-video support for terminals
255 that use a `magic cookie' standout mode. Due to changes in the
256 way mode-lines are displayed, such support no longer works
257 anyway, and it's probable that almost no one uses such terminals
260 * term.c (standout_requested): Variable removed.
261 (update_end, highlight_if_desired): Don't use it.
262 (chars_wasted, copybuf): Variables removed.
263 (write_standout_marker): Function removed.
264 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
265 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
266 Don't use `chars_wasted' or `copybuf'.
267 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
268 Set `costs_set' to true.
269 (cursor_to, clear_end_of_line): Test `costs_set' instead of
271 (clear_end_of_line): Function removed.
272 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
273 (clear_to_end): Call `clear_end_of_line' instead of
274 `clear_end_of_line_raw'.
275 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
276 (term_init): Don't set them.
277 Turn off any standout/underline modes that require magic cookies.
278 (ins_del_lines, highlight_if_desired, background_highlight)
279 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
280 Remove special processing for magic-cookie standout modes.
281 (turn_off_face, turn_on_face): Remove special processing for
282 underline magic-cookie glitch.
284 2001-10-19 Richard M. Stallman <rms@gnu.org>
286 * eval.c (syms_of_eval): Doc fixes.
288 2001-10-19 Gerd Moellmann <gerd@gnu.org>
290 * xdisp.c (redisplay_internal): Don't clear echo area if the
291 mini-window is selected.
293 2001-10-19 Miles Bader <miles@gnu.org>
295 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
296 doesn't take precedence if the affected property's value is nil.
298 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
300 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
301 with fields and suggest using `forward-line' to avoid them.
302 * editfns.c (Fline_beginning_position, Fline_end_position):
303 Clarify documentation.
305 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
307 * keymap.c (current_minor_maps): `override' only shadows its
308 correspondent in minor-mode-map-alist, not the whole tail.
310 2001-10-18 Andrew Innes <andrewi@gnu.org>
312 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
313 optimization. The fontp->encoding array was not being initialized
314 correctly when compiled with optimizations by MSVC.
316 2001-10-18 Gerd Moellmann <gerd@gnu.org>
318 * xdisp.c (display_line): Indicate empty lines in active mini-window.
320 2001-10-17 Andrew Innes <andrewi@gnu.org>
322 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
324 * w32fns.c (w32_load_system_font): Cache codepage for font, in
325 font_info.charset field.
327 * w32term.c (w32_encode_char): Get cached codepage from font_info,
328 rather than working it out by calling w32_codepage_for_font for
331 2001-10-17 Andrew Innes <andrewi@gnu.org>
333 * w32term.c (w32_read_socket): Determine clipping rectangle for
334 the entire frame, including areas covered by scrollbars and the
335 menubar. This avoids internal arguments about whether a frame is
336 fully obscured or not.
338 2001-10-17 Gerd Moellmann <gerd@gnu.org>
340 * xdisp.c (try_window_id): Undo last change. Give up if
341 window ends in strings.
343 * xdisp.c (try_window_id): Don't display lines after the window
344 end if the rest of the window after the window end was already blank.
346 * xdisp.c (try_window_id): Remove code that was only there
347 for the release of 21.1.
349 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
351 2001-10-17 Miles Bader <miles@gnu.org>
353 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
354 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
355 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
356 Change doc-string comments to `new style' [w/`doc:' keyword].
357 (DOC_STRINGS_IN_COMMENTS): Macro removed.
358 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
361 2001-10-16 Miles Bader <miles@gnu.org>
363 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
365 2001-10-16 Gerd Moellmann <gerd@gnu.org>
367 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
370 2001-10-16 Ken Raeburn <raeburn@gnu.org>
372 Avoid the assumption that car and cdr slots of cons cells are
373 addressable lvalues; this allows for easier experimentation with
374 other lisp implementations that may not permit such accesses for
375 various reasons. Not quite complete -- buffer.c still needs some
376 work, and w32/mac files need rechecking -- so compile-time
377 enforcement is left disabled for now.
379 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
380 gcc with a union-based Lisp object rep. Redefine as no-op for now.
381 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
382 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
383 (XSETCAR, XSETCDR): New macros.
384 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
385 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
386 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
387 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
389 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
390 * buffer.c (record_buffer, Fbury_buffer)
391 (swap_out_buffer_local_variables, recenter_overlay_lists)
392 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
393 fields of a cons cell respectively.
394 * callint.c (quotify_args, Fcall_interactively): Likewise.
395 * ccl.c (Fregister_code_conversion_map): Likewise.
396 * coding.c (detect_coding_system): Likewise.
397 * composite.c (get_composition_id, make_composition_value_copy):
399 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
400 (swap_in_symval_forwarding, set_internal, Fset_default)
401 (Fmake_variable_buffer_local, Fmake_local_variable)
402 (Fmake_variable_frame_local): Likewise.
403 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
404 * keymap.c (Fset_keymap_parent, store_in_keymap)
405 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap):
407 * minibuf.c (get_minibuffer): Likewise.
408 * search.c (Fmatch_data): Likewise.
409 * textprop.c (extend_property_ranges): Likewise.
410 * undo.c (record_insert, Fundo_boundary, truncate_undo_list):
412 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
414 * w32term.c (x_delete_display): Likewise.
415 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
417 * xterm.c (x_list_fonts, x_load_font, x_delete_display):
419 * doc.c (store_function_docstring): Use XSETCARFASTINT.
420 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
421 (Fread_file_name): Use XSETCAR.
422 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
424 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
425 * frame.c (Fmake_terminal_frame): Use XSETCDR.
426 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
428 * keyboard.c (read_char): Alter list traversal to avoid taking the
429 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
430 (parse_menu_item): Use XSETCAR and XSETCDR.
431 (reach_char_x_menu_prompt): Use XSETCAR.
432 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
433 (Fcommand_execute): Use XSETCDR.
434 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
435 (openp): Change list traversal to avoid using XCAR as lvalue.
436 (read_list): Use XSETCDR.
437 * process.c (wait_reading_process_input): Change wait_for_cell
438 handling to avoid taking addresses of cons cell slots.
439 * xselect.c (x_own_selection, x_handle_selection_clear)
440 (x_clear_frame_selections): Use XSETCDR.
441 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
442 (x_handle_property_notify, x_get_foreign_selection)
443 (x_handle_selection_notify): Use XSETCAR.
445 2001-10-15 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
447 * buffer.c: Put doc strings in comments.
449 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
451 2001-10-15 Sam Steingold <sds@gnu.org>
453 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
455 2001-10-15 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
457 * process.c (process-inherit-coding-system-flag)
458 (get-buffer-process): Do not confuse make-docfile with doc strings
461 * editfns.c (Fchar_to_string): Make doc string consistent with
462 arguments. Put doc strings in comments.
464 * abbrev.c, minibuf.c: Put doc strings in comments.
466 2001-10-15 Gerd Moellmann <gerd@gnu.org>
468 * window.c (window_loop): Don't check for Fother_buffer returning nil.
470 * window.c (select_window_1): Unfreeze window start. Remove a
471 doubled test for WINDOW being live.
473 2001-10-15 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
475 * fns.c (Fmapconcat): Fix typo in a doc string.
477 * dispnew.c (Fsleep_for): Fix typo in a doc string.
479 2001-10-15 Gerd Moellmann <gerd@gnu.org>
481 * xterm.c (x_draw_glyph_string): Restore clipping after
484 2001-10-15 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
486 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
488 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
490 * indent.c (skip_invisible): Use new retval of
491 TEXT_PROP_MEANS_INVISIBLE.
493 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
494 If a parent is reached and noinherit is set, exit immediately.
495 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
497 * s/ms-w32.h (EXEC_SUFFIXES):
498 * s/msdos.h (EXEC_SUFFIXES):
499 * process.h (EXEC_SUFFIXES): Remove.
501 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
502 (decode_suffixes): Remove.
504 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
505 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
506 (invisible_ellipsis_p): Remove.
508 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
509 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
510 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
511 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
512 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
514 2001-10-14 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
516 * lisp.h (Ftop_level): Add prototype.
518 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
519 (XTread_socket): Improve style of comments to follow other
522 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
523 is already prototyped in included lisp.h).
525 * frame.c (Fset_mouse_position): Improve style of comment to
526 follow other comments.
527 (Fset_mouse_pixel_position): Improve style of comment to follow
529 (Fmake_frame_visible): Doc fix and typo in comment.
530 (Fmake_frame_invisible): Doc fix and typo in comment.
531 (Ficonify_frame): Fix typo in comment.
533 2001-10-14 Gerd Moellmann <gerd@gnu.org>
535 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
536 * term.c, alloc.c: Put doc strings in comments.
538 2001-10-13 Gerd Moellmann <gerd@gnu.org>
540 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
541 Provide definitions for doc strings in comments.
543 * fns.c: Put doc strings in comments.
545 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
547 * dired.c (file_name_completion): Ignore a candidate directory if
548 it matches an element in completion-ignored-extensions that ends
550 (syms_of_dired) <completion-ignored-extensions>: Mention the above
551 feature in the doc string.
552 (Ffile_name_completion): Ditto.
554 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
556 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
558 * xfns.c (syms_of_xfns): Update calls to Fprovide.
560 * lisp.h (Fprovide): Update prototype.
561 (Ffeaturep, invisible_p): Remove.
563 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
564 (DOLIST, LOOP_PROPVAL): New macros.
565 (invisible_p, invisible_ellipsis_p): Use them.
566 (invisible_noellipsis_p): New function.
567 (syms_of_xdisp): Use empty_string.
569 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
571 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
572 (syms_of_lread) <Vafter_load_alist>: Update docstring.
574 * print.c (Fwith_output_to_temp_buffer): Align with
575 internal_with_output_to_temp_buffer.
576 (print_preprocess): Use traverse_intervals_noorder.
577 (print_object): Update call to traverse_intervals.
579 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
580 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
582 * intervals.c (traverse_intervals_noorder): New function.
583 (search_for_interval, count_intervals): Use it.
584 (traverse_intervals): Use less stack space and drop `depth' arg.
586 * fns.c (Ffeaturep): Add new `subfeature' arg.
587 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
588 (Qsubfeatures): New var.
589 (syms_of_fns): Initialize it.
591 * keymap.c (Fkey_description): Use empty_string.
592 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
593 (syms_of_keymap): Setup inheritance between maps.
594 Don't export Sdescribe_bindings_internal any more.
596 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
598 2001-10-12 Gerd Moellmann <gerd@gnu.org>
600 * xterm.c (notice_overwritten_cursor): Renamed from
601 note_overwritten_text_cursor. Rewritten to take glyph widths into
604 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
606 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
607 multi-line strings without a trailing "\n\".
609 2001-10-12 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
611 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
614 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
616 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
618 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
619 * w32proc.c (sys_spawnve):
620 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
621 * w32.c (check_windows_init_file):
622 * sound.c (Fplay_sound):
623 * emacs.c (init_cmdargs):
624 * process.c (Fstart_process): Update calls to openp.
626 * callproc.c (Vexec_suffixes): New var.
627 (Fcall_process): Update call to openp.
628 (decode_suffixes): New function.
629 (syms_of_callproc): Init exec-suffixes.
631 * lread.c (Vload_suffixes, default_suffixes): New vars.
632 (openp): Take a lisp list of suffixes.
633 Check for file-name-handlers even if the file was absolute already.
634 (syms_of_lread): Declare load-suffixes.
635 (Fload): Fix up call to openp.
636 Don't bother checking for file-name-handler at the very beginning.
638 * keymap.h (Fcopy_keymap): Don't export.
640 * lisp.h (empty_string): Declare.
641 (Vload_suffixes, Vexec_suffixes): Declare.
642 (openp): Update prototype.
644 * emacs.c (empty_string): New var.
645 (syms_of_emacs): Initialize it.
647 * search.c (wordify): Use it.
649 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
650 selected window if it's not displayed there. Handle the case
651 when the window is dedicated.
652 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
654 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
656 * syntax.h (struct gl_state_s): Change the meaning of b_property.
657 Remove left_ok and right_ok.
658 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
659 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
660 new meaning of b_property.
662 * syntax.c (update_syntax_table): Simplify.
663 (Fforward_comment): Don't skip quoted chars when going backward.
665 2001-10-11 Gerd Moellmann <gerd@gnu.org>
667 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
668 in case I is of some unsigned type, in which case
669 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
670 comparison becomes bogus.
672 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
673 (Fuser_full_name): Fix bug treating a float as a fixnum.
675 * data.c (Fstring_to_number): Use make_fixnum_or_float.
677 * lisp.h (make_fixnum_or_float): New macro.
679 * lisp.h (circular_list_error): Add prototype.
681 * data.c (Qcircular_list): New variable.
682 (circular_list_error): New function.
683 (syms_of_data): Initialize it Qcircular_list.
685 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
687 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
688 casefiddle.c, buffer.c: Include keymap.h.
690 2001-10-10 Gerd Moellmann <gerd@gnu.org>
692 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
693 options. From Dave Love <d.love@dl.ac.uk>.
695 2001-10-09 Gerd Moellmann <gerd@gnu.org>
697 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
698 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
700 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
702 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
704 2001-10-08 Andrew Innes <andrewi@gnu.org>
706 * lisp.h [max]: Undef min and max before redefining them.
708 * w32gui.h: Do not undef min and max.
710 * w32heap.h: Do not undef min and max.
712 * s/ms-w32.h: Do not undef min and max.
714 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
716 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
718 2001-10-08 Sam Steingold <sds@gnu.org>
720 * keymap.c (current-active-maps): Quote newlines (compilation error).
722 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
724 * Makefile.in (lisp, shortlisp): Replace bindings.el with
725 bindings.elc, since otherwise doc strings in bindings.el get wrong
728 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
730 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
732 * keyboard.h (map_prompt): Remove.
734 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
735 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
737 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
739 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
741 * keyboard.c (map_prompt): Remove.
742 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
745 * keymap.h: New file. Extracted from lisp.h.
747 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
748 (accessible_keymaps_1): New function.
749 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
750 (Fwhere_is_internal): Use Fcurrent_active_maps.
751 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
752 Insert in current buffer rather than standard-output.
753 Don't call `help-mode'. Export to elisp.
754 (describe_buffer_bindings): New wrapper.
755 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
756 and Sdescribe_buffer_bindings.
758 2001-10-08 Gerd Moellmann <gerd@gnu.org>
760 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
761 Remove code setting signal handler.
763 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
764 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
766 2001-10-08 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
768 * keyboard.c: Don't define min/max.
770 2001-10-08 Gerd Moellmann <gerd@gnu.org>
772 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
773 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
774 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
775 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
776 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
777 Don't define min/max.
779 * lisp.h (min, max): New macros.
781 * puresize.h (BASE_PURESIZE): Increase to 725000.
783 2001-10-08 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
785 * xfaces.c (free_frame_menubar): Add prototype.
787 * lisp.h (init_window): Add prototype.
789 * editfns.c: Include ctype.h.
791 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
792 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
793 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
796 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
797 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
798 `popup_activated_flag' and `title'.
800 * doc.c (Fdocumentation_property): Fix typo in a doc string.
802 * emacs.c (main): Remove extra `;'.
804 * atimer.h (struct atimer): Fix typos in a comment.
806 * atimer.c: Fix typo.
808 * Makefile.in: Fix typo.
810 * README: Remove obsolete part mentioning removed VMS file.
812 2001-10-07 Miles Bader <miles@gnu.org>
814 * Makefile.in (lisp, shortlisp): Add `button.elc'.
816 2001-10-07 Ken Raeburn <raeburn@gnu.org>
818 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
821 * lisp.h (Ffield_end): Declare.
823 2001-10-07 Gerd Moellmann <gerd@gnu.org>
825 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
827 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
829 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
831 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
833 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
834 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
836 * alloc.c (inhibit_garbage_collection): Simplify.
837 (Fmemory_use_counts): Ditto.
839 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
840 (syms_of_data): DEFVAR_INT most-positive-fixnum and
841 most-negative-fixnum.
843 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
844 (FIXNUM_OVERFLOW_P): New macros.
846 2001-10-06 Miles Bader <miles@gnu.org>
848 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
849 scroll_bar_bottom_shadow_pixel fields.
850 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
851 for the shadows, and tell the toolkit about them if we succeed.
852 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
853 Free scroll-bar shadow colors.
854 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
855 Free scroll-bar shadow colors when the background color changes.
856 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
857 Initialize scroll-bar shadow-color fields.
859 2001-10-05 Gerd Moellmann <gerd@gnu.org>
861 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
863 2001-10-05 Miles Bader <miles@gnu.org>
865 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
866 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
867 New functions (were in simple.el).
868 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
869 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
870 (syms_of_minibuf): Initialize them.
872 2001-10-05 Gerd Moellmann <gerd@gnu.org>
874 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
875 (tiff_load): Install them as error and warning handler.
877 2001-10-04 Andrew Innes <andrewi@gnu.org>
879 * w32fns.c (x_to_w32_color): Fix argument to alloca.
880 (w32_load_system_font): Don't believe what GetLanguageFontInfo
881 says; query codepage info directly to determine if font is double byte.
882 (x_to_w32_charset): Handle private format for unknown charsets.
883 Handle wildcards in charset spec, by ignoring them.
884 (w32_codepage_for_font): Fix argument to alloca. Don't remove
885 "*-" prefix from charset.
886 (x_to_w32_font): Enlarge remainder array for safety. Specifically
887 handle the truncated font spec form constructed by font_list_1, so
888 that we correctly identify the charset fields. Don't remove "*-"
890 (w32_list_synthesized_fonts): Fix argument to alloca.
892 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
894 * window.h (MINI_WINDOW_P): Use NILP.
896 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
898 * termhooks.h (struct input_event): Use proper type for `kind'.
900 2001-10-04 Gerd Moellmann <gerd@gnu.org>
902 This handles unknown keysyms better than before. For example,
903 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
904 Emacs formerly completely ignored F5. With the change, it derives
905 a key symbol from the name of the X keysym, `ccaron' in this case.
906 Reported by Martin Buchholz.
908 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
911 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
912 that EVENT->code isn't a function key, use the keysym's name.
914 2001-10-04 Gerd Moellmann <gerd@gnu.org>
916 FOREACH is a macro that should make it easier to loop over Lisp
917 lists with checks for cycles and proper lists.
919 * lisp.h (LIST_END_P, FOREACH): New macros.
921 2001-10-04 Gerd Moellmann <gerd@gnu.org>
923 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
924 called for a lost connection. Prevent dumping core in this case.
925 Instead print the X error, and exit. On user request.
927 * xterm.c (error_msg): New variable.
928 (x_fatal_error_signal): New function.
929 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
930 as fatal_error_signal_hook around the call to XtCloseDisplay.
932 * emacs.c (fatal_error_signal_hook): New variable.
933 (fatal_error_signal): Call that function.
935 2001-10-04 Gerd Moellmann <gerd@gnu.org>
937 With this, Emacs prints how much pure storage it will
938 approximately need in case pure storage overflows while dumping.
940 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
942 (init_alloc_once): Initialize new variables.
943 (PURE_POINTER_P): Use new variables.
944 (pure_alloc): If pure storage overflows, allocate from the heap.
945 (check_pure_size): New function.
946 (Fgarbage_collect): Don't GC if pure storage has overflowed.
948 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
949 (check_pure_size): Add prototype.
951 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
953 2001-10-04 Gerd Moellmann <gerd@gnu.org>
955 This adds a post-gc-hook that's run with GC inhibited.
956 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
958 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
959 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
960 (Fgarbage_collect): Run post-gc-hook.
962 2001-10-04 Gerd Moellmann <gerd@gnu.org>
964 This adds `defvaralias' and `indirect-variable'. Changes not
965 directly related to this feature are there to gain the same
966 performance again as before variable aliases.
968 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
969 code to get and set symbol values, to take defvaralias into account.
971 (Note: the new `constant' bit-flag in symbols would make it
972 possible to define arbitrary read-only variables, e.g. with
975 Documentation is in lispref/variables.texi. Added to NEWS.
977 * lisp.h (enum symbol_interned): New enumeration.
978 (struct Lisp_Symbol): Remove member `obarray', add
979 `indirect_variable', `constant', and `interned'.
980 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
981 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
982 (indirect_variable): Add prototype.
984 * print.c (print_preprocess, print_object): Test internedness of
987 * lread.c (Fintern, Funintern): Set symbol's interned and constant
989 (init_obarray): Likewise for t and nil.
991 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
992 (Fdefvaralias): New function.
993 (specbind): Simplify the test if symbol is a constant.
994 (syms_of_eval): Defsubr Fdefvaralias.
996 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
997 (Qcyclic_variable_indirection): New variable.
998 (Fkeywordp): Check for internedness differently.
999 (Fmakunbound): Simplify the test if symbol is a constant.
1000 (indirect_variable, Findirect_variable): New functions.
1001 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
1003 (let_shadows_buffer_binding_p): Check for variable aliases.
1004 (set_internal): Simplify the test if SYMBOL is a constant.
1005 If SYMBOL has a buffer-local value and is an alias, use the aliased
1007 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
1010 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
1011 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
1014 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
1016 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
1017 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
1018 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
1020 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1024 2001-10-03 Miles Bader <miles@gnu.org>
1026 * callproc.c (syms_of_callproc): Explicitly state in the
1027 documentation for `process-environment' that earlier entries take
1028 precedence over later ones.
1030 2001-10-02 Miles Bader <miles@gnu.org>
1032 * textprop.c (Fnext_char_property_change)
1033 (Fprevious_char_property_change): Remove reference to non-existant
1034 argument OBJECT from doc-string.
1036 2001-10-01 Gerd Moellmann <gerd@gnu.org>
1038 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
1039 (try_window_id): Skip back over lines ending in a newline from a
1042 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
1045 2001-10-01 Richard M. Stallman <rms@gnu.org>
1047 * search.c (Freplace_match): Doc fix.
1049 2001-09-28 Andrew Innes <andrewi@gnu.org>
1051 * w32menu.c (set_frame_menubar): Take into account that
1052 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1055 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
1057 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
1059 2001-09-28 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1061 * s/gnu-linux.h: Fix a typo in comment.
1063 2001-09-28 Andreas Schwab <schwab@suse.de>
1065 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
1066 nocombreloc, in case -z combreloc is the default.
1068 2001-09-28 Gerd Moellmann <gerd@gnu.org>
1070 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
1071 really going on here.
1073 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
1075 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
1077 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1079 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
1080 utf-8, menu-bar, and latin-N.
1081 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
1082 unconditionally now.
1083 (lisp): Add latin-N, since they are preloaded.
1085 2001-09-27 Gerd Moellmann <gerd@gnu.org>
1087 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
1088 to the left. Some cleanup.
1090 * xdisp.c (display_mode_element): One more case where a string's
1091 multibyteness should be used for display.
1093 2001-09-26 Gerd Moellmann <gerd@gnu.org>
1095 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
1098 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
1099 of the only temporarily set echoing flag for deciding when
1102 * keyboard.c (echo_kboard): Make externally visible.
1104 * lisp.h (echo_kboard): Declare extern.
1106 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
1107 fonts_changed_p if we need larger matrices due to vscrolling.
1108 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
1109 this round of redisplay if make_cursor_line_fully_visible fails.
1110 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
1111 (try_cursor_movement, try_scrolling): Use them instead of integers.
1113 * dispextern.h (required_matrix_width, required_matrix_height):
1116 * dispnew.c (required_matrix_width, required_matrix_height):
1118 (allocate_matrices_for_window_redisplay)
1119 (allocate_matrices_for_frame_redisplay: Use them.
1120 Remove parameters CH_DIM.
1122 * xdisp.c (display_mode_lines): Temporarily set selected_frame
1123 and selected_window to the frame of the window whose mode-lines
1124 are displayed, and to the window itself.
1125 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
1128 2001-09-25 Gerd Moellmann <gerd@gnu.org>
1130 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
1131 the image cache under us.
1133 * xdisp.c (display_mode_element): If the mode element is a symbol
1134 with a string value, use that string's multibyteness for displaying.
1136 * keyboard.c (read_char): Don't clear a message for a switch-frame
1137 event. From Stefan Monnier <monnier@cs.yale.edu>.
1139 * xterm.c (fast_find_position) [0]: Add a presumably more correct
1140 version for after 21.1.
1142 * xdisp.c (row_containing_pos): Make externally visible.
1144 * dispextern.h (row_containing_pos): Add prototype.
1146 * process.c (send_process): Disable composition if from_byte < 0.
1147 From Kenichi Handa <handa@etl.go.jp>.
1149 2001-09-24 Gerd Moellmann <gerd@gnu.org>
1151 * xterm.c (refreshicon): Function removed.
1153 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
1155 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
1157 * xterm.c (toplevel): Remove includes in #if 0.
1159 * process.c (sigchld_handler) [LINUX]: Don't return from
1160 the signal handler at the end of the loop.
1162 2001-09-21 Gerd Moellmann <gerd@gnu.org>
1164 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
1165 Terminate only if kill returns -1, and errno is ESRCH.
1167 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
1169 * Makefile.in (shortlisp): Add ../lisp/env.elc.
1171 2001-09-20 Gerd Moellmann <gerd@gnu.org>
1173 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
1174 since this function can be called during GC.
1176 * callproc.c (Fcall_process): Handle errors from pipe(2).
1177 (child_setup): Delete code in #ifdef vipc.
1179 2001-09-19 Gerd Moellmann <gerd@gnu.org>
1181 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
1182 (display_mode_element): Display the string from decode_mode_spec
1183 depending on its multibyteness.
1185 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
1187 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
1189 2001-09-18 Gerd Moellmann <gerd@gnu.org>
1191 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
1192 recursive_edit_unwind.
1193 (recursive_edit_unwind): Set kboard state according to
1196 * buffer.c (modify_overlay): Don't do nothing if START == END;
1197 This can still be a modification, for example when an overlay has
1198 a before-string or after-string.
1199 (Fdelete_overlay): Prevent redisplay optimizations when deleting
1200 an overlay with before-string or after-string.
1202 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
1203 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
1205 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
1206 first_unchanged_at_end_row is in front of
1207 last_unchanged_at_beg_row. This code should be removed after the
1210 2001-09-17 Gerd Moellmann <gerd@gnu.org>
1212 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
1213 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
1215 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
1218 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
1220 * dired.c (Ffile_attributes): Doc fix.
1222 2001-09-14 Gerd Moellmann <gerd@gnu.org>
1224 * fileio.c (Ffile_symlink_p): Fix last change.
1226 * filelock.c (current_lock_owner): Fix last change.
1228 2001-09-13 Gerd Moellmann <gerd@gnu.org>
1230 * filelock.c (current_lock_owner): If readlink returns ERANGE,
1231 take that to mean that the buffer is too small.
1233 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
1234 that to mean that the buffer is too small.
1236 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
1237 current buffer's multibyteness when discarding the iterator's
1240 * xfns.c (Fx_window_property): Handle case that property gets
1241 deleted between the two calls to XGetWindowProperty.
1243 2001-09-11 Gerd Moellmann <gerd@gnu.org>
1245 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
1247 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
1248 in addition to read-only.
1250 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
1251 to t in addition to read-only.
1253 * lisp.h (Qinhibit_modification_hooks): Declare.
1255 * insdel.c (Qinhibit_modification_hooks): New variable.
1256 (syms_of_insdel): Initialize and staticpro it.
1258 * textprop.c (verify_interval_modification): Don't run
1259 modification-hooks if inhibit_modification_hooks.
1261 * dispnew.c (set_window_cursor_after_update): Fix code
1262 finding glyph row containing cursor when cursor_in_echo_area
1265 * xdisp.c (init_from_display_pos): Put some code in #if 0.
1266 (add_to_log): Use bcopy instead of strcpy.
1267 (init_from_display_pos): Use an explicit loop over bytes in
1268 overlay strings instead of calling index.
1270 2001-09-10 Gerd Moellmann <gerd@gnu.org>
1272 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
1274 * dispnew.c (direct_output_for_insert): Don't change IT's
1275 stop_charpos to something in front of its current position.
1277 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
1280 2001-09-10 Richard M. Stallman <rms@gnu.org>
1282 * frame.c (Fmouse_position): Doc fix.
1284 2001-09-07 Gerd Moellmann <gerd@gnu.org>
1286 * xdisp.c (init_from_display_pos): Don't compare the result
1287 of calling index with NULL.
1289 2001-09-06 Gerd Moellmann <gerd@gnu.org>
1291 * xfns.c (x_set_background_color): Don't change the colors
1292 of the X window of scroll bar widgets.
1294 2001-09-05 Andrew Innes <andrewi@gnu.org>
1296 * w32fns.c (w32_createwindow): Undo last change.
1298 2001-09-05 Gerd Moellmann <gerd@gnu.org>
1300 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
1302 * xdisp.c (string_buffer_position): Use *single_char_property*
1303 functions instead of the *single_property* functions.
1305 2001-09-04 Andrew Innes <andrewi@gnu.org>
1307 * w32term.c (w32_read_socket): Add more information to debugging
1310 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
1311 from Emacs frames, so that calls to GetClipBox in w32term.c
1312 correctly report when part of a frame is visible (including
1313 scrollbars, etc). This prevents repeated redrawing of frames when
1314 only a scrollbar is visible.
1315 (w32_wnd_proc): Add more frame information to debugging output.
1317 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
1319 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
1321 2001-09-03 Gerd Moellmann <gerd@gnu.org>
1323 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
1324 help-echo for a string which doesn't have help-echo itself, use
1325 get-char-property to obtain the help-echo from the string's buffer
1326 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
1327 have mouse-face, look ``under'' the string for mouse-face from an
1329 (fast_find_position): Add parameter STOP. In the final row, stop
1330 before glyphs having STOP as object. Don't consider glyphs that
1331 are not from a buffer.
1333 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
1335 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
1337 * fns.c (Fmd5): Doc fix.
1339 2001-08-31 Gerd Moellmann <gerd@gnu.org>
1341 * composite.c (update_compositions): Do nothing if
1342 inhibit-modification-hooks is set.
1344 2001-08-30 Gerd Moellmann <gerd@gnu.org>
1346 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
1347 and check_message_stack if terminating abnormally. We want
1348 glyph matrices etc. in a core dump.
1350 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
1351 (syms_of_xdisp): Initialize them.
1352 (handle_single_display_prop): Don't change point, bind `object',
1353 `position', and `buffer-position' instead to the object having the
1354 `display' property, position in the object and position in the buffer.
1356 * fileio.c (Finsert_file_contents): Don't change the multibyteness
1357 of the buffer if REPLACE is non-nil.
1359 2001-08-29 Gerd Moellmann <gerd@gnu.org>
1361 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
1363 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
1365 * w32term.c (x_set_glyph_string_background_width)
1366 (show_mouse_face): Track the last changes in xterm.c.
1368 2001-08-28 Gerd Moellmann <gerd@gnu.org>
1370 * xterm.c (x_set_glyph_string_background_width): Set the glyph
1371 string's background width so that multi-line mouse-face is drawn
1372 to the right edge of the window.
1373 (show_mouse_face): Set the row's mouse_face_p flag after drawing
1376 * dispnew.c (direct_output_for_insert): Set updated_area
1377 before inserting/writing glyphs.
1379 * xdisp.c (display_mode_element): Use string_byte_to_char to
1380 determine character positions in strings, use chars_in_text
1381 instead of strwidth.
1382 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
1383 a matrix as parameter; this is easier to use from GDB.
1385 2001-08-28 Miles Bader <miles@gnu.org>
1387 * textprop.c (Fprevious_single_char_property_change)
1388 (Fnext_single_char_property_change): Doc fixes.
1390 2001-08-27 Gerd Moellmann <gerd@gnu.org>
1392 * fileio.c (Finsert_file_contents): Allocate, restore, and
1393 free composition data in the case of REPLACE not being nil.
1395 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
1396 there exist overlay strings with newlines at POS.
1397 (text_outside_line_unchanged_p): Return 0 if changes start at
1398 START and overlays exist at START. Likewise for END.
1399 (try_window_id): Give up if init_to_row_end returns 0.
1401 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
1404 2001-08-24 Gerd Moellmann <gerd@gnu.org>
1406 * keymap.c (access_keymap): Return the cdr of the binding of
1407 a generic character instead of its definition (KEY . BINDING).
1409 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
1410 to 0 also in the REPLACE case.
1412 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
1414 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
1415 open to determine whether file is readable (as for DOS_NT).
1417 2001-08-23 Gerd Moellmann <gerd@gnu.org>
1419 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
1420 coding.type is coding_type_no_conversion or coding_type_raw_text,
1421 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
1422 non-nil instead of just setting enable_multibyte_characters in the
1425 2001-08-22 Gerd Moellmann <gerd@gnu.org>
1427 * dispextern.h (struct face_cache): Add member
1428 menu_face_changed_p.
1430 * xfaces.c (menu_face_changed_default): New variable.
1431 (menu_face_changed_count): Variable removed.
1432 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
1433 the menu_face_changed_default flag, otherwise set the FRAME's
1434 menu_face_changed_p flag if the `menu' face has been changed.
1435 Prevent calling set_font_frame_param if FRAME is t.
1436 (make_face_cache): Initialize cache's menu_face_changed_p
1437 from menu_face_changed_default.
1438 (realize_basic_faces): Look into the frame's face cache to
1439 determine if the menu appearance needs updating.
1441 * keymap.c (access_keymap): Fix last change to not consider
1442 IDX when it has modifiers.
1444 2001-08-21 Gerd Moellmann <gerd@gnu.org>
1446 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
1447 . BINDING) exists, where GENERIC-CHAR is the generic character of
1448 the charset of IDX, return BINDING unless there exists a binding
1451 2001-08-16 Gerd Moellmann <gerd@gnu.org>
1453 * xrdb.c (SYSV): Don't define on Solaris 2.
1454 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
1456 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
1457 of the screen line, not text line, containing IT's current position.
1459 2001-08-15 Gerd Moellmann <gerd@gnu.org>
1461 * window.c (window_scroll_pixel_based): Don't recenter if
1462 PT is partially visible in the window.
1464 * xterm.c (expose_window_tree, expose_window, expose_line):
1465 Return 1 when overwriting mouse-face.
1466 (expose_frame): If mouse-face was overwritten, redo it.
1468 * xfaces.c (x_update_menu_appearance): Don't call
1469 set_frame_menubar, let the next redisplay do it.
1471 2001-08-14 Andrew Innes <andrewi@gnu.org>
1473 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
1474 drawing glyph string.
1476 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
1478 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
1481 2001-08-14 Gerd Moellmann <gerd@gnu.org>
1483 * xfaces.c (x_update_menu_appearance): Save and restore value of
1484 interrupt_input_blocked.
1486 2001-08-13 Gerd Moellmann <gerd@gnu.org>
1488 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
1489 a line start, move back to the line start.
1491 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
1492 exactly when a mini-buffer is active.
1494 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
1495 in units of 1/8 character on non window-system frames.
1496 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
1498 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
1500 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
1503 2001-08-09 Gerd Moellmann <gerd@gnu.org>
1505 * keyboard.c (Vpre_help_message): New variable.
1506 (syms_of_keyboard): Initialize and staticpro it.
1507 (show_help_echo): Record current message before displaying a
1508 help-echo, and restore that message when clearing the help.
1510 * xfns.c (x_create_im): Remove prototype.
1512 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
1514 * dispnew.c (adjust_glyph_matrix): Undo last change.
1516 2001-08-08 Gerd Moellmann <gerd@gnu.org>
1518 * dispnew.c (adjust_glyph_matrix): In the optimization for
1519 windows whose height has changed, disable partially visible lines.
1521 2001-08-07 Gerd Moellmann <gerd@gnu.org>
1523 * window.c (Frecenter): If ARG < 0, and on a window system
1524 frame, count in some empty lines when we can't move -ARG lines down.
1526 * xdisp.c (start_display): Don't try to determine the continuation
1527 lines width if lines are truncated. It's superfluous and leads to
1528 incorrect results if POS is not visible in the window after
1529 reseating the iterator at the previous line start.
1531 2001-08-06 Gerd Moellmann <gerd@gnu.org>
1533 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1535 2001-08-06 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1537 * alloc.c (init_stack): Remove declaration.
1539 2001-08-03 Gerd Moellmann <gerd@gnu.org>
1541 * keyboard.c (read_key_sequence): Check that key is an integer
1542 before comparing it with quit_char.
1543 (add_command_key): Use larger_vector.
1544 (read_char_x_menu_prompt): Instead of converting symbol and
1545 integer events into conses (EVENT . nil), use (EVENT . disabled)
1546 which cannot be confused with valid events.
1547 (read_char): When reading from Vunread_command_events, check for
1548 events of the form (EVENT . disabled) instead of
1551 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
1552 a float, determine the max height from the frame's height.
1554 2001-08-02 Gerd Moellmann <gerd@gnu.org>
1556 * xdisp.c (redisplay_internal): Take message_cleared_p into
1557 account only if minibuf_level == 0.
1559 2001-08-01 Gerd Moellmann <gerd@gnu.org>
1561 * xdisp.c (redisplay_internal): Add a check for the last
1564 * xdisp.c (message_cleared_p): New variable.
1565 (clear_message): Set message_cleared_p when clearing the current
1567 (redisplay_internal): Look at message_cleared_p to capture
1568 the case that the echo area should be cleared.
1570 * keyboard.c (command_loop_1): Fix spelling of
1571 resize_echo_area_exactly.
1573 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
1575 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
1577 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
1578 current matrix when the window gets smaller.
1580 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
1582 * print.c (strout): Cast the character passed to insert_char to
1583 unsigned char, to avoid sign extension when it is promoted to int.
1585 2001-07-31 Gerd Moellmann <gerd@gnu.org>
1587 * fileio.c (Finsert_file_contents): Don't treat a return value
1588 of 0 from emacs_read as an IO error.
1590 2001-07-30 Gerd Moellmann <gerd@gnu.org>
1592 * keyboard.c (abs): New macro.
1593 (double_click_fuzz): New variable.
1594 (make_lispy_event): Use it to determine what makes a double-click.
1595 (syms_of_keyboard): DEFVAR_INT it.
1597 * xmenu.c (set_frame_menubar): Take into account that
1598 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1601 2001-07-27 Gerd Moellmann <gerd@gnu.org>
1603 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
1605 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
1606 of row's visible height.
1608 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
1609 deal with the first overlay string having an image `display' property.
1610 (try_window_reusing_current_matrix, compute_line_metrics):
1611 Fix computation of row's visible height for the case that part of the
1612 row is invisible above and part of the row is at the same time
1613 invisible below the window.
1615 2001-07-26 Gerd Moellmann <gerd@gnu.org>
1617 * xfns.c (x-show-tip): Doc fix.
1619 * xfns.c (Vx_max_tooltip_size): New variable.
1620 (syms_of_xfns): DEFVAR_LISP it.
1621 (Fx_show_tip): Set frame's window_width to the width of the
1622 window. Use a maximum tooltip size specified by
1623 Vx_max_tooltip_size, if that has valid contents.
1624 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
1626 2001-07-26 Andrew Innes <andrewi@gnu.org>
1628 * w32term.c (x_display_list): New variable.
1629 (w32_term_init): Set it.
1631 * w32term.h (x_display_list): New extern.
1633 2001-07-26 Gerd Moellmann <gerd@gnu.org>
1635 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
1636 is non-nil, instead of when redisplaying_p is non-zero.
1638 (mark_window_display_accurate_1): Add an assertion.
1640 2001-07-25 Gerd Moellmann <gerd@gnu.org>
1642 * dispextern.h (struct it): Increase size of ctl_chars to 16.
1644 * xfns.c (Fx_file_dialog): Block/unblock input while processing
1645 events so that we get a chance of processing expose events.
1647 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
1649 2001-07-24 Gerd Moellmann <gerd@gnu.org>
1651 * xfns.c (valid_image_p): Protect better against invalid image
1652 specifications. Previous code could signal an error.
1654 2001-07-23 Gerd Moellmann <gerd@gnu.org>
1656 * indent.c (current_column): Fix column computation in the
1657 presence of display table entries.
1658 (current_column_1, Fmove_to_column, compute_motion): Likewise.
1660 * dispnew.c (adjust_glyph_matrix): In the optimization for
1661 windows whose height has changed, use the new window height
1662 to compute which rows to invalidate.
1664 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
1665 (MAX_10_EXP): New macro.
1668 * coding.c (code_convert_region): Handle the multibyte case if
1669 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
1671 2001-07-20 Gerd Moellmann <gerd@gnu.org>
1673 * dispextern.h (struct face): Change type of `stipple' to
1676 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
1678 2001-07-19 Gerd Moellmann <gerd@gnu.org>
1680 * dispnew.c (update_window): Don't set the cursor at the end
1681 of the update if display update has been paused.
1683 * composite.h (syms_of_composite): Renamed from syms_of_composition.
1685 2001-07-18 Ken Raeburn <raeburn@gnu.org>
1687 * fns.c (Fset_char_table_default): Check that a charset is defined
1688 before checking its dimension.
1690 2001-07-17 Ken Raeburn <raeburn@gnu.org>
1692 * coding.c (setup_coding_system): Don't do any designation based
1693 on reg_bits if charset is not yet defined.
1695 * lisp.h (XVECTOR): Verify correct object type before returning a
1696 pointer, using eassert.
1698 2001-07-17 Gerd Moellmann <gerd@gnu.org>
1700 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
1701 Increase to 4096 because of paste problems reported on GNU/Linux.
1703 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
1705 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
1707 2001-07-16 Gerd Moellmann <gerd@gnu.org>
1709 * fileio.c (unwind_read): Function removed.
1710 (read_non_regular, read_non_regular_quit): New functions.
1711 (Finsert_file_contents): When reading from non-regular files,
1712 arrange to catch a `quit' and terminate the loop. Rearrange
1713 code so that a `quit' when reading from a regular file doesn't
1714 insert text in the buffer.
1716 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
1717 Clear faces afterwards.
1718 (clear_font_table): Take a x_display_info parameter. Don't free
1719 fonts being the default font of any frame on the given display.
1721 2001-07-13 Gerd Moellmann <gerd@gnu.org>
1723 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
1724 instead of CHAR_STRING which can signal an error.
1726 * charset.c (char_to_string_1): Extracted from char_to_string.
1727 Return -1 instead of signaling an error.
1728 (char_to_string): Use it.
1730 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
1732 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
1734 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
1735 is t, don't try to append anything to it.
1737 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
1739 * dired.c (file_name_completion): Pass dp->d_name to
1740 Fstring_match, not elt, which is always nil here.
1742 2001-07-12 Gerd Moellmann <gerd@gnu.org>
1744 * xselect.c (x_decline_selection_request): Handle errors
1745 caused by receivers that have vanished.
1747 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
1748 ignoring events on foreign windows in #if 0. Always dispatch
1749 the event after checking it with x_handle_property_notify.
1751 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
1752 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
1753 TRACE macros to facilitate debugging. Add additional trace statements.
1754 (toplevel): Add prototypes for file-local functions.
1755 (x_atom_to_symbol): Remove DPYINFO parameter.
1757 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
1759 * w32menu.c (menubar_selection_callback, w32_menu_show):
1760 Initialize `entry' to nil.
1761 (w32_dialog_show): Remove unused `save_wv' variable.
1762 (name_is_separator): Recognize "--:foo" and "--foo-bar".
1764 2001-07-11 Gerd Moellmann <gerd@gnu.org>
1766 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
1768 * fileio.c (unwind_read): Print a message when discarding inserted
1769 text or switching the buffer to unibyte. Change parameter.
1770 (Finsert_file_contents): Don't pass VISIT to unwind_read.
1772 * fileio.c (unwind_read): New function.
1773 (Finsert_file_contents): Record it as unwind-function for
1774 the case that reading is interrupted by C-g.
1776 2001-07-10 Gerd Moellmann <gerd@gnu.org>
1778 * dispnew.c (update_window): Don't skip the header-line
1779 update when scrolling_window returns 0.
1781 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
1783 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
1784 for the case that x_decode_color signals an error.
1786 * xdisp.c (add_to_log): Do nothing if called asynchronously.
1788 2001-07-09 Gerd Moellmann <gerd@gnu.org>
1790 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
1791 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
1794 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
1796 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
1797 doc string line for dos-timezone-offset.
1799 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
1800 inline assembly, to avoid compiler warnings.
1801 (syms_of_msdos): Add \n\ at the end of a line in the doc string
1802 line for dos-unsupported-char-glyph.
1804 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
1806 2001-07-05 Gerd Moellmann <gerd@gnu.org>
1808 * sound.c: Include Emacs' header files with #include "...".
1810 * eval.c (specbind): Additionally record the buffer that was
1811 current when a buffer-local or frame-local variable was bound.
1813 2001-07-04 Gerd Moellmann <gerd@gnu.org>
1815 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
1816 to unibyte characters in unibyte buffers.
1818 2001-07-03 Gerd Moellmann <gerd@gnu.org>
1820 * eval.c (specbind): If SYMBOL has a frame-local binding, record
1821 the frame on the binding stack. Change format of entries for
1822 local bindings on the binding stack to '(SYMBOL . WHERE)'.
1823 (unbind_to): Handle unbinding a frame-local variable.
1825 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
1826 glyphs and truncation glyphs at the end of a row from its pixel width.
1827 (dump_glyph_row): Print row's continuation_lines_width.
1828 (try_window_id): Take the shortcut if ZV is visible in the
1829 window, but there are actually no changes at ZV.
1831 2001-07-02 Gerd Moellmann <gerd@gnu.org>
1833 * xterm.h (x_free_dpy_colors): Add prototype.
1835 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
1836 right number of arguments.
1838 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
1839 ($(lwlibdir)TAGS): New target.
1840 (TAGS): Fix dependency list.
1842 * xterm.c (x_list_fonts): Make sure XFreeFont is called
1845 2001-06-30 Gerd Moellmann <gerd@gnu.org>
1847 * emacs.c (main): Remove extern declaration for sys_nerr, which
1848 isn't used and causes a compilation error with GCC 3.0 on
1851 2001-06-27 Gerd Moellmann <gerd@gnu.org>
1853 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
1854 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
1855 (toplevel): Include <signal.h> and syssignal.h.
1857 * sound.c (vox_configure, vox_close): Turn off atimers
1860 2001-06-26 Gerd Moellmann <gerd@gnu.org>
1862 * keyboard.c (read_char) <non_reread>: Record the previous idle
1863 start time before calling timer_stop_idle.
1864 (read_char) <reread_first>: After processing a help-echo event,
1865 restore the previous idle start time.
1867 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
1868 the start of invisible text.
1869 (setup_for_ellipsis): New function.
1870 (next_overlay_string): After all overlay strings have been
1871 processed, display an ellipsis if necessary.
1872 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
1873 (push_it): Initialize display_ellipsis_p on the iterator's stack.
1875 * dispextern.h (struct iterator_stack_entry): Add member
1878 2001-06-25 Gerd Moellmann <gerd@gnu.org>
1880 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
1881 on the value of the wait-for-wm frame parameter.
1883 * xterm.h (struct x_output): Add member wait_for_wm.
1885 * xfns.c (Qwait_for_wm): New variable.
1886 (x_frame_parms): Add entry for `wait-for-wm".
1887 (x_set_wait_for_wm): New function.
1888 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
1889 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
1891 * xdisp.c (try_window_id) <all changes below window end>: Don't
1892 take this shortcut if ZV is visible in the window.
1893 (try_window_id): When checking for window start being in changed
1894 text, don't check that the buffer's size has changed.
1896 2001-06-23 Richard M. Stallman <rms@gnu.org>
1898 * minibuf.c (Fcompleting_read): Doc fix.
1900 2001-06-19 Gerd Moellmann <gerd@gnu.org>
1902 * composite.c (Ffind_composition_internal): Accept ZV
1903 and a string's end position as POS.
1905 2001-06-18 Gerd Moellmann <gerd@gnu.org>
1907 * composite.c (Ffind_composition_internal): Check POS
1910 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
1912 * editfns.c (Fmessage_box): If the frame is not under a window
1913 system, output the message in the echo area.
1915 2001-06-14 Richard M. Stallman <rms@gnu.org>
1917 * xdisp.c (try_window_id): When EOB is visible, don't treat
1918 insertion at EOB as if it were "off the bottom of the screen."
1920 2001-06-11 Andrew Innes <andrewi@gnu.org>
1922 * w32proc.c (create_child): Add new parameter is_gui_app.
1923 (w32_executable_type): Add new parameter is_gui_app.
1924 (sys_spawnve): Use it.
1925 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
1926 SIGQUIT. This matches better how the signals are interpreted by
1927 MSVC compiled programs.
1928 (syms_of_ntproc): Update docstring.
1930 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
1932 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
1933 well otherwise note_mouse_highlight might optimize away highlighting
1934 if we pass over that same overlay again.
1936 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
1938 * lread.c (Fload): Document that the argument is run via
1939 substitute-in-file-name.
1941 2001-05-31 Gerd Moellmann <gerd@gnu.org>
1943 * Makefile.in (bootstrap-doc): New target.
1944 (bootstrap-emacs): Depend on it.
1946 * fileio.c (Fdo_auto_save): Don't try to create the directory of
1947 auto-save-list-file-name when shutting down Emacs, because
1948 creating the directory might signal an error, and leaves
1949 Emacs in a strange state.
1951 * term.c: (tty_cursor_hidden): New variable.
1952 (update_begin): Don't call tty_hide_cursor. Clean up.
1953 (update_end, set_terminal_window, set_scroll_region): Clean up.
1954 (ring_bell, reset_terminal_modes): Clean up.
1955 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
1956 on tty_cursor_hidden.
1957 (write_glyphs): Call tty_hide_cursor.
1959 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
1961 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
1963 2001-05-30 Gerd Moellmann <gerd@gnu.org>
1965 * xfns.c (enum image_value_type): New enumerator
1966 IMAGE_STRING_OR_NIL_VALUE.
1967 (parse_image_spec): Handle it.
1968 (xbm_format, pbm_format): Use it for :foreground and :background.
1969 (xbm_load, pbm_load): Check for nil color names.
1971 * xterm.c (note_mouse_highlight): If an overlapping overlay
1972 exists, but we find that we highlight the same overlay as before,
1973 don't do the highlighting again.
1975 2001-05-29 Gerd Moellmann <gerd@gnu.org>
1977 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
1978 Protect unibyte strings created by replacing their multibyte
1979 equivalents in menu_items.
1981 * keymap.c (Fsingle_key_description): NUL-terminate the string
1982 buffer before calling build_string.
1984 * callproc.c (Fcall_process): Deal with decode_coding returning
1985 CODING_FINISH_INCONSISTENT_EOL.
1987 2001-05-28 Gerd Moellmann <gerd@gnu.org>
1989 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
1990 an item's name with its key description in case the description
1991 is a multibyte string.
1993 * keymap.c (Fsingle_key_description): Create a multibyte string
1996 * macros.c (Fstart_kbd_macro): Doc fix.
1998 * xterm.c (cursor_in_mouse_face_p): New function.
1999 (x_draw_stretch_glyph_string): Use it to choose a different GC
2000 when drawing a cursor within highlighted text.
2002 * editfns.c (char_property_eq): Put in #if 0.
2004 * indent.c (string_display_width): Put in #if 0.
2006 * lread.c (Fload): Remove unused label.
2008 * termcap.c (speeds): Put in #if 0.
2010 2001-05-18 Gerd Moellmann <gerd@gnu.org>
2012 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
2014 * xfaces.c (xlfd_point_size): Don't divide pixel size from
2015 transformation matrix by 10.
2017 2001-05-16 Gerd Moellmann <gerd@gnu.org>
2019 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
2020 only if it's equal to the former foreground pixel color.
2021 (x_set_foreground_color, x_set_background_color)
2022 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
2024 2001-05-16 Dave Love <fx@gnu.org>
2026 * insdel.c (signal_before_change, signal_after_change): Consider a
2027 local change hook which changes the buffer.
2029 * process.c (read_process_output): Don't call signal_after_change
2030 and update_compositions after insert_from_string_before_markers.
2032 2001-05-16 Gerd Moellmann <gerd@gnu.org>
2034 * xfaces.c (split_font_name): Use the right field when
2035 checking for `[...]' syntax.
2037 * buffer.c (copy_overlays): New function.
2038 (clone_per_buffer_values): Use it.
2040 * buffer.h (OVERLAY_PLIST): New macro.
2042 * keymap.c (Fsingle_key_description): Replace a build_string with
2043 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
2045 * fontset.c (Ffontset_info): Check that face is non-null
2046 before accessing its fields.
2048 2001-05-15 Gerd Moellmann <gerd@gnu.org>
2050 * keyboard.c (read_key_sequence): Prevent generating a fake
2053 * xfaces.c (split_font_name): Handle `[...]' for the right
2056 * ccl.c (ccl_driver): Don't copy remaining bytes in case
2057 of CCL_STAT_INVALID_CMD.
2059 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
2061 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
2062 in <var> has no default value yet.
2064 * xfaces.c (try_alternative_families): First try the FAMILY.
2065 And if nothing is found in the end, try again with scalable fonts.
2066 (try_font_list): Let try_alternative_families do a bit more of
2067 the work. Only use FAMILY if it is not nil.
2068 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
2070 2001-05-14 Gerd Moellmann <gerd@gnu.org>
2072 * xterm.c (note_mouse_highlight): Avoid changing the mouse
2073 pointer shape when show_mouse_face has already done it.
2075 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
2078 * xfaces.c (split_font_name): Make sure to leave the loop
2079 with the right value of `i'.
2081 * xfaces.c (split_font_name): Handle matrix transformations
2082 in the pixel and point size fields of XLFD font names.
2083 (xlfd_point_size): Likewise.
2085 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
2087 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
2088 (x_to_w32_font): Add prototype.
2090 * regex.c (malloc, realloc, free) [emacs]: Undefine before
2091 redefining, to avoid compiler warnings.
2093 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
2095 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
2096 (w32_get_bdf_glyph): Cast between unsigned char and char when
2097 passing arguments to subroutines, to shut up compiler warnings.
2098 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
2101 * xfaces.c: Include keyboard.h before frame.h, not after it.
2103 * widget.c: Include keyboard.h before frame.h.
2105 * w32term.h (struct image, struct face): Forward declaration, to
2106 avoid compiler warnings.
2108 2001-05-11 Gerd Moellmann <gerd@gnu.org>
2110 * keyboard.c (read_key_sequence): Don't modify events when
2111 generating fake prefix keys (mode-line, scroll-bar, ...) since
2112 this prevents proper processing of such events when pushed back
2113 into unread-command-events.
2115 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
2116 actually redrawn. Make the function static.
2117 (note_mouse_highlight): Fix a case where the mouse cursor
2118 was changed back to the text cursor.
2120 * xterm.h (clear_mouse_face): Remove prototype.
2122 * xdisp.c (try_window_id): Fix the fix and set the right
2125 * xdisp.c (try_window_id): Fix computation of window end in the
2126 case that lines were deleted at the end of the window. Add some
2127 more debug_method_adds.
2129 * xfaces.c (try_alternative_families): New function.
2130 (try_font_list): Use it. If ATTRS specifies a family, check
2131 fonts from that family first.
2132 (choose_face_font): Remove code setting the family part of
2135 2001-05-10 Gerd Moellmann <gerd@gnu.org>
2137 * xdisp.c (try_window_id): Fix case of all changes before
2140 * xdisp.c (try_window_id): Add some xasserts.
2142 2001-05-09 Gerd Moellmann <gerd@gnu.org>
2144 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
2146 2001-05-09 Dave Love <fx@gnu.org>
2148 * xdisp.c (GIVE_UP): Fix for K&R C.
2150 2001-05-09 Gerd Moellmann <gerd@gnu.org>
2152 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
2154 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
2155 back to the text cursor shape without need.
2157 2001-05-07 Gerd Moellmann <gerd@gnu.org>
2159 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
2161 * dispextern.h (inverse_video): Declare extern.
2163 * keyboard.c (delete_kboard): Handle the case that selected_frame
2164 has been deleted in the course of x_connection_closed.
2166 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
2168 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
2169 Fix the change from 2001-04-30.
2171 2001-05-03 Gerd Moellmann <gerd@gnu.org>
2173 * xfns.c (file_dialog_unmap_cb): New function.
2174 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
2175 where a dialog is closed via the window manager.
2177 * xdisp.c (try_window_id): Cases of changes all in front of
2178 the window start or all below the window end mostly rewritten.
2179 (redisplay_window): Move the tests if try_window_id is
2180 applicable to try_window_id.
2181 (GIVE_UP): New macro.
2183 2001-05-02 Gerd Moellmann <gerd@gnu.org>
2185 * xterm.c (expose_window): Return int. If W is the window
2186 currently being updated, mark the frame garbaged.
2187 Fix computation of rows intersecting the exposed rectangle.
2188 (expose_window_tree): Stop when expose_window returns 0.
2190 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
2191 again if it has already been drawn.
2193 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
2195 * syntax.c (update_syntax_table): Check that oldi has the same
2196 properties as old_prop before deciding not to invalidate.
2198 2001-04-30 Gerd Moellmann <gerd@gnu.org>
2200 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
2201 read-only text that is so because of text properties.
2203 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
2204 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
2205 windows that are components of a Lucid menu bar.
2207 2001-04-27 Gerd Moellmann <gerd@gnu.org>
2209 * term.c (turn_on_face): Fix reverse video handling on terminals
2210 that don't support colors.
2212 2001-04-26 Gerd Moellmann <gerd@gnu.org>
2214 * editfns.c (save_excursion_restore): Don't use XBUFFER on
2217 2001-04-25 Gerd Moellmann <gerd@gnu.org>
2219 * term.c (toggle_highlight): New function.
2220 (turn_on_face): Change handling of reverse video.
2222 * process.c (wait_reading_process_input):
2223 Call record_asynch_buffer_change only if a timer really changed buffers.
2225 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
2226 of the number of overlays to check.
2228 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
2230 * xdisp.c (try_window_id): Fix a case where window_end_pos
2231 and window_end_bytepos were not adjusted.
2233 2001-04-23 Gerd Moellmann <gerd@gnu.org>
2235 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
2238 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
2240 * process.c (wait_reading_process_input) [!subprocesses]:
2241 Don't reference waiting_for_user_input_p, it's not defined in the
2242 branch without async subprocesses support.
2244 2001-04-19 Gerd Moellmann <gerd@gnu.org>
2246 * keyboard.c (delete_kboard): Prevent a dangling reference
2247 from current_kboard to KB, which is freed.
2249 * process.c (wait_reading_process_input):
2250 Call record_asynch_buffer_change after running timers, to make
2251 read_key_sequence aware of buffer changes from under it.
2253 2001-04-18 Gerd Moellmann <gerd@gnu.org>
2255 * xfaces.c (Qscalable_fonts_allowed): New variable.
2256 (realizing_basic_faces_p): Removed.
2257 (x_face_list_fonts): Special handling for realizing_basic_faces_p
2259 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
2260 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
2261 for scalable-fonts-allowed to t.
2263 * fileio.c (Finsert_file_contents): If the file size returned from
2264 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
2265 read from files on a procfs whose contents are generated dynamically.
2267 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
2269 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
2270 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
2271 (__memalign_hook): Make the two prototypes consistent.
2273 2001-04-17 Gerd Moellmann <gerd@gnu.org>
2275 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
2276 matrix of mini-windows.
2278 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
2280 * intervals.c (find_interval): Don't rebalance during signal handling.
2282 2001-04-11 Gerd Moellmann <gerd@gnu.org>
2284 * fns.c: Include blockinput.h.
2286 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
2288 2001-04-10 Gerd Moellmann <gerd@gnu.org>
2290 * fns.c (Fcompare_strings): Fix return values.
2292 * window.c (window_scroll): Change the meaning of N to mean
2293 N screen-fulls or N lines.
2294 (window_scroll_pixel_based, window_scroll_line_based)
2295 (scroll_command, Fscroll_other_window): Change accordingly.
2297 * window.c (window_scroll_pixel_based, Frecenter):
2298 Call window_box_height instead of using it.last_visible_y for the
2299 height of the window.
2301 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
2302 instead of using it.last_visible_y for the height of the window.
2304 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
2305 From Dan Holmsand <dan@eyebee.com>.
2307 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
2308 able to write to hidden and system files. From Dan Holmsand
2311 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
2312 Holmsand <dan@eyebee.com>.
2314 2001-04-09 Gerd Moellmann <gerd@gnu.org>
2316 * fns.c (Fplist_get, Fplist_put): Add QUITs.
2318 * window.c (window_internal_height): Return 1 less if the
2319 window has a header line.
2321 * xdisp.c (try_window_id): When scrolling on a terminal, take
2322 the change of window_internal_height into account.
2324 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
2326 * gmalloc.c (align): If the argument SIZE would overflow
2327 __malloc_ptrdiff_t, fail right away.
2329 2001-04-06 Gerd Moellmann <gerd@gnu.org>
2331 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2332 Make sure the tooltip is completely visible.
2333 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
2335 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
2337 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
2339 2001-04-06 Dave Love <fx@gnu.org>
2341 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
2344 2001-04-06 Gerd Moellmann <gerd@gnu.org>
2346 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
2348 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
2350 2001-04-05 Gerd Moellmann <gerd@gnu.org>
2352 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
2354 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
2356 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
2357 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
2359 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
2360 shell widget's position only if it is non-null.
2362 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
2363 Set f->output_data.x->widget to null after destroying it.
2365 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
2366 FILENAME to bring it in synch with the documentation.
2368 * xfaces.c (realizing_basic_faces_p): Renamed from
2369 realize_default_face_p.
2370 (realize_basic_faces): Set/clear realizing_basic_faces_p.
2371 (realize_default_face): Don't set the flag.
2373 2001-04-04 Gerd Moellmann <gerd@gnu.org>
2375 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
2377 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
2379 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
2380 the buffer that was used for echoing.
2382 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
2383 (first_font_matching): Removed unused function.
2384 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
2385 (may_use_scalable_font_p): Remove parameter FONT; rename
2386 parameter NAME to FONT.
2387 (x_face_list_fonts): Fix missing bounds check.
2388 (realizing_default_face_p): New variable.
2389 (realize_default_face): Set and clear that flag.
2390 (x_face_list_fonts): When called during the realization of the
2391 default face, and no matching fonts are found when ignoring
2392 scalable fonts and fonts matching a regexp from
2393 face-ignored-fonts, try without ignoring fonts.
2395 2001-04-03 Gerd Moellmann <gerd@gnu.org>
2397 * xfns.c (postprocess_image): New function.
2398 (lookup_image): Call it for all image types except PostScript.
2399 (x_kill_gs_process): Call postprocess_image.
2401 * xterm.c (x_use_underline_position_properties): New variable.
2402 (x_draw_glyph_string): Use it.
2403 (syms_of_xterm): DEFVAR_BOOL it.
2405 2001-04-02 Gerd Moellmann <gerd@gnu.org>
2407 * xterm.c (x_alloc_nearest_color_1): New function.
2408 (x_alloc_nearest_color): Use it.
2409 (x_color_cells): Take a Display as argument, instead of a frame.
2410 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
2411 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
2412 (x_initialize): Register cvt_string_to_pixel as resource converter
2413 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
2415 2001-03-30 Gerd Moellmann <gerd@gnu.org>
2417 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
2418 (set_iterator_to_next): If a string from a display property ends,
2419 consider the case that this might also be the end of an
2420 overlay string having the display property.
2422 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
2424 * xdisp.c (reseat_to_string): Undo last change.
2426 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
2427 matrix of a window when the header line changes, when
2428 new rows are allocated, or when the width changes.
2430 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
2432 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
2434 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
2436 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
2439 2001-03-29 Gerd Moellmann <gerd@gnu.org>
2441 * data.c (Fsubr_interactive_form): New function.
2442 (syms_of_data): Defsubr it.
2444 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
2445 (live_float_p, live_misc_p): Return 1 only if the offset of the
2446 pointer in its block is >= 0.
2448 2001-03-28 Paul Eggert <eggert@twinsun.com>
2450 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
2451 microseconds calcuation. Avoid double-rounding problem.
2452 In doc string, warn that the result is approximate.
2454 2001-03-28 Gerd Moellmann <gerd@gnu.org>
2456 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
2457 bind `inhibit-eval-during-redisplay' to t.
2459 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
2461 * xdisp.c (inhibit_eval_during_redisplay)
2462 (Qinhibit_eval_during_redisplay): New variables.
2463 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
2464 don't eval, return nil instead.
2465 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
2466 Initialize Qinhibit_eval_during_redisplay.
2468 * xdisp.c (reseat_to_string): If STRING is multibyte, set
2469 the iterator's multibyte_p flag.
2471 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
2472 instead of setting it to zero; it's incremented for each frame
2473 where the menu face is changed.
2475 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
2476 change bottom shadow accordingly.
2478 * xterm.c (expose_window_tree, expose_frame): Don't compute
2480 (expose_window): Do it here instead.
2481 (x_draw_glyph_string): Fix a computation of the underline position.
2483 * bytecode.c (BYTE_CODE_QUIT): New macro.
2484 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
2486 2001-03-27 Gerd Moellmann <gerd@gnu.org>
2488 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
2489 Give up if matrix starts in an ellipsis.
2490 (init_from_display_pos): Do nothing if POS doesn't specify
2491 a dpvec_index but the iterator has such a position.
2493 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
2495 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
2496 x/y position is (0, 0) after destroying the menu bar, restore
2497 its original position.
2499 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
2500 (init_from_display_pos): Use it.
2501 (try_window_reusing_current_matrix): Don't use cursor_row_p.
2503 2001-03-26 Gerd Moellmann <gerd@gnu.org>
2505 * xdisp.c (try_window_id): Undo last change.
2507 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
2509 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
2511 * buffer.c (syms_of_buffer): Doc fix.
2513 2001-03-26 Gerd Moellmann <gerd@gnu.org>
2515 * xfaces.c (x_update_menu_appearance): Use local variable
2516 popup_path for setting font resources.
2518 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
2520 * frame.c (Fframe_list): Don't reference tip_frame if
2521 HAVE_WINDOW_SYSTEM is not defined.
2523 * emacs.c (main): Update the copyright year. From Werner LEMBERG
2526 2001-03-25 Gerd Moellmann <gerd@gnu.org>
2528 * xdisp.c (init_from_display_pos): Test invisible property
2529 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
2531 * xdisp.c (redisplay_internal) <update one window>: Make sure
2532 last_arrow_position and last_arrow_string are set.
2534 * frame.c (Fframe_list): Don't return a tooltip frame.
2536 2001-03-23 Gerd Moellmann <gerd@gnu.org>
2538 * xdisp.c (mark_window_display_accurate_1): New function,
2539 extracted from mark_window_display_accurate.
2540 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
2541 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
2542 (mark_window_display_accurate): Use it.
2543 (redisplay_internal): Use it for the selected window.
2544 (redisplay_internal): Avoid duplicate mark_window_display_accurate
2545 for the selected frame.
2547 * xdisp.c Use make_number, for readability.
2548 (try_window_id): Disable rows below the window end.
2549 (try_window_reusing_current_matrix): Use cursor_row_p.
2550 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
2552 (init_from_display_pos): If POS specifies a position in a display
2553 vector, maybe get the iterator set up for that ellipsis.
2555 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
2557 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
2559 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
2561 2001-03-23 Gerd Moellmann <gerd@gnu.org>
2563 * xfaces.c (x_update_menu_appearance): Use a different path
2564 for Lucid popup menus.
2566 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
2568 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
2570 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
2571 (string_buffer_position): Use `make_number'.
2573 2001-03-22 Gerd Moellmann <gerd@gnu.org>
2575 * xfaces.c (x_update_menu_appearance): Renamed from
2576 x_set_menu_face_resources. Use different resources for popups.
2578 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
2579 (GC_CHECK_STRING_BYTES): Don't define.
2581 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
2582 Removed, together with subroutines.
2583 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
2584 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
2586 * dispextern.h (x_set_menu_resources_from_menu_face):
2589 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
2590 Remove calls to x_set_menu_resources_from_menu_face.
2592 * xfaces.c (xm_set_menu_resources_from_menu_face):
2593 Remove #ifndef LESSTIF_VERSION.
2595 * xmenu.c: Include widget.h.
2596 (single_submenu): Return int. Some cleanup.
2597 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
2599 2001-03-21 Gerd Moellmann <gerd@gnu.org>
2601 * xterm.c (x_update_window_end): Handle overwritten mouse face
2602 also for tool bar windows.
2603 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2604 DRAW is DRAW_IMAGE_RAISED.
2606 2001-03-20 Gerd Moellmann <gerd@gnu.org>
2608 * print.c (syms_of_print): Doc fixes.
2610 * fns.c (Fmd5): Doc fix.
2612 2001-03-19 Gerd Moellmann <gerd@gnu.org>
2614 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2615 Clear area of the frame not occupied by the scroll bar.
2617 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
2618 tip frame's root window buffer to *tip* right after creating
2621 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
2622 is an integer don't have to be for space characters.
2624 2001-03-16 Gerd Moellmann <gerd@gnu.org>
2626 * indent.c (current_column, current_column_1, Fmove_to_column)
2627 (compute_motion): Handle characters from display vectors differently.
2629 2001-03-15 Kenichi Handa <handa@etl.go.jp>
2631 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
2632 drawing glyph string.
2634 2001-03-15 Gerd Moellmann <gerd@gnu.org>
2636 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
2637 (command_loop_1): Undo last change.
2639 * xterm.c (fast_find_position): Return the correct vpos.
2641 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
2642 non-null, set a per-buffer value in BUF instead of the current buffer.
2643 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
2644 Call store_symval_forwarding with BUF null.
2645 (set_internal): Call store_symval_forwarding with the BUF
2646 parameter passed to set_internal. Formerly, the value was always
2647 set in the current buffer; the buffer recorded in specbind for
2648 this case wasn't used.
2649 (arith_driver): Reindent.
2651 * buffer.c (swap_out_buffer_local_variables):
2652 Call store_symval_forwarding with BUF null.
2654 * lisp.h (store_symval_forwarding): Change prototype.
2656 * eval.c (specbind): Call store_symval_forwarding with BUF null.
2658 2001-03-14 Gerd Moellmann <gerd@gnu.org>
2660 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
2661 FOR_DELETION. Avoid resizing the mini-window of the selected
2662 frame if FOR_DELETION is set.
2663 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
2664 (Fmake_frame_invisible): Change calls to do_switch_frame for new
2667 * window.c (Fset_window_configuration): Change call to
2668 do_switch_frame to new format.
2670 * keyboard.c (quit_throw_to_read_char): Change call to
2671 do_switch_frame to new format.
2673 * lisp.h (do_switch_frame): Change prototype.
2675 * frame.c (Fframe_parameters): In the `buffer-list' frame
2676 parameter, store the buffer list of FRAME, not the list of the
2679 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
2680 box just because the glyph row's full_width_p flag is set.
2682 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
2684 * xdisp.c (highlight_trailing_whitespace): On character terminals,
2685 skip the padding blanks inserted in extend_face_to_end_of_line,
2686 before checking for trailing whitespace.
2688 2001-03-13 Gerd Moellmann <gerd@gnu.org>
2690 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
2691 Remove special handling for LessTif/Motif.
2692 (toplevel): Don't include Xm/Xm.h.
2694 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
2695 Remove workaround code for LessTif; it doesn't work anymore.
2697 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
2700 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
2701 Don't access private scroll bar data; it's no longer necessary with
2702 contemporary LessTif.
2704 * xfaces.c (xm_set_menu_resources_from_menu_face):
2705 Change #if 0 to #ifndef LESSTIF_VERSION.
2707 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
2708 removing button grabs.
2710 2001-03-13 Kenichi Handa <handa@etl.go.jp>
2712 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
2713 and clip-large-size-font as obsolete.
2715 * lread.c (read_multibyte): Check the validity of multibyte
2716 sequence. If invalid, return the first byte.
2718 2001-03-12 Gerd Moellmann <gerd@gnu.org>
2720 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
2721 before running the command; timer functions or process
2722 filters may have set it.
2724 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
2726 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2729 2001-03-12 Gerd Moellmann <gerd@gnu.org>
2731 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
2734 2001-03-09 Gerd Moellmann <gerd@gnu.org>
2736 * dispextern.h (string_buffer_position): Add prototype.
2738 * xdisp.c (string_buffer_position, display_prop_string_p)
2739 (single_display_prop_string_p): New functions.
2741 * xterm.c (note_mouse_highlight): If there's no help-echo on
2742 a string, look at the buffer text ``under'' it.
2744 * keyboard.c (make_lispy_event): Add string info to the event,
2745 analogous to what's done on mode lines.
2746 (read_key_sequence): For a click on a string, consider `local-map'
2747 and `keymap' of that string.
2749 * keyboard.c (make_lispy_event, make_lispy_movement):
2750 Adjust calls to buffer_posn_from_coords to new format.
2752 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
2754 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
2757 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
2758 flags argument to emacs_open; it seems to conflict with O_EXCL.
2760 2001-03-09 Kenichi Handa <handa@etl.go.jp>
2762 * composite.h (struct composition): Change types of members;
2763 glyph_len to unsigned, width to unsigned short.
2765 2001-03-08 Andrew Innes <andrewi@gnu.org>
2767 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
2770 2001-03-08 Gerd Moellmann <gerd@gnu.org>
2772 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
2775 * xterm.c (note_mouse_highlight): Handle mouse-face and
2776 help-echo in strings.
2777 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2778 (fast_find_string_pos): New function.
2780 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
2781 (display_string): Call face_at_string_position with new parameter.
2783 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
2784 Handle `mouse-face'.
2786 * dispextern.h (face_at_string_position): Change prototype.
2788 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
2790 * keyboard.c (make_lispy_event): Avoid generating drag events
2791 if the mouse hasn't actually moved to another buffer position.
2793 2001-03-08 Dave Love <fx@gnu.org>
2795 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
2797 2001-03-08 Gerd Moellmann <gerd@gnu.org>
2799 * process.c (Fset_process_window_size): Fix a typo.
2801 2001-03-08 Kenichi Handa <handa@etl.go.jp>
2803 * coding.c (detect_coding_sjis): Do more rigid check.
2804 (detect_coding_big5): Likewise.
2805 (decode_coding_sjis_big5): Likewise.
2806 (Fdetect_coding_region): Call detect_coding_system with tailing
2807 anchor byte `\0' for more rigid detection.
2808 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
2809 (Fdetect_coding_string): Likewise.
2811 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
2813 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
2814 a string before extracting its data.
2816 2001-03-07 Gerd Moellmann <gerd@gnu.org>
2818 * window.c (Frecenter): Rewrite code handling negative values
2819 of ARG on graphical frames.
2821 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
2823 * window.c (displayed_window_lines): If W->start is outside the
2824 accessible portion of the buffer, call start_display with BEGV or
2825 ZV instead of W->start.
2827 2001-03-07 Gerd Moellmann <gerd@gnu.org>
2829 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
2831 * process.c (Fset_process_filter): Don't crash if the input
2832 file descriptor of PROCESS is closed.
2833 (Fset_process_window_size): Likewise.
2835 2001-03-06 Kenichi Handa <handa@etl.go.jp>
2837 * xterm.c (XTflash): Make the timeout of select shorter, and call
2838 select repeatedly until the desired time expires.
2840 2001-03-06 Gerd Moellmann <gerd@gnu.org>
2842 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
2844 * xfns.c (Fx_create_frame): Clear Vwindow_list.
2846 * lisp.h (Vwindow_list): Declare extern.
2848 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
2850 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
2852 2001-03-06 Gerd Moellmann <gerd@gnu.org>
2854 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
2855 to detect a case where we have to highlight a different region
2856 despite not having left the currently highlighted region.
2857 Set mouse_face_overlay in the x_display_info.
2858 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
2860 * xterm.h (struct x_display_info): Add mouse_face_overlay.
2862 * buffer.c (mouse_face_overlay_overlaps): New function.
2864 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
2865 (Qmouse_face): Declare extern.
2867 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
2868 if face_change_count is non-zero.
2870 2001-03-06 Kenichi Handa <handa@etl.go.jp>
2872 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
2873 that the source is unibyte.
2875 2001-03-05 Dave Love <fx@gnu.org>
2877 * xterm.c (XTmouse_position): Fix typo.
2879 2001-03-05 Gerd Moellmann <gerd@gnu.org>
2881 * minibuf.c (read_minibuf): Clean up the binding stack if
2882 called noninteractively.
2884 2001-03-05 Kenichi Handa <handa@etl.go.jp>
2886 * coding.c (syms_of_coding): Docstring modified.
2888 2001-03-05 Kenichi Handa <handa@etl.go.jp>
2890 * charset.c (char_to_string): If a single byte char has modifier
2891 bits that can't be reflected to the character code, ignore them
2892 instead of signaling an error.
2894 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
2896 * s/msdos.h: Update copyright notice.
2898 * dosfns.h: Update copyright notice.
2900 * dosfns.c: Update copyright notice.
2902 * msdos.c: Update copyright notice.
2904 2001-03-02 Gerd Moellmann <gerd@gnu.org>
2906 * xterm.c (glyph_rect): New function.
2907 (XTmouse_position): Use it to raise the threshold for mouse
2908 movement event generation.
2910 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2912 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
2913 specifies (reverse . t), reverse the initial screen colors.
2914 (IT_set_frame_parameters): If the property is foreground-color,
2915 but we are reversing the colors, set bg_set, not fg_set.
2916 Likewise for setting background-color and reversing: set fg_set.
2917 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
2920 * xfaces.c (Finternal_set_lisp_face_attribute)
2921 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
2924 2001-03-02 Gerd Moellmann <gerd@gnu.org>
2926 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
2927 to a single slash in the middle of file names.
2929 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
2930 Accept only alphanumeric time zone names.
2932 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
2934 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2935 a widget to zero height.
2937 2001-03-01 Gerd Moellmann <gerd@gnu.org>
2939 * window.c (Fwindow_end): Call move_it_past_eol only if
2940 ending up on a partially visible line.
2942 2001-03-01 Dave Love <fx@gnu.org>
2944 * ccl.c (Fccl_execute): Doc fix.
2946 2001-03-01 Gerd Moellmann <gerd@gnu.org>
2948 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
2949 of the tool bar before calling x_figure_window_size.
2951 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
2952 NULL after destroying it, otherwise XTread_socket can access a
2953 destroyed widget when input is unblocked.
2955 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
2957 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
2958 same name as before, although there was a change in fontsets.
2960 2001-02-28 Ken Raeburn <raeburn@gnu.org>
2962 * lisp.h (Fframe_parameter): Declare.
2964 * window.c (set_window_buffer): Field vscroll is an int, not a
2967 2001-02-28 Gerd Moellmann <gerd@gnu.org>
2969 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
2972 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
2975 * alloc.c (toplevel): Include process.h.
2976 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
2977 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
2978 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
2979 (allocate_vector, allocate_hash_table, allocate_window)
2980 (allocate_frame, allocate_process, allocate_other_vector):
2982 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
2983 (mark_maybe_pointer): New function.
2984 (mark_memory): Also mark Lisp data to which only pointers
2985 remain and not Lisp_Objects.
2986 (min_heap_address, max_heap_address): New variables.
2987 (mem_find): Return MEM_NIL if START is below min_heap_address or
2988 above max_heap_address.
2989 (mem_insert): Compute min_heap_address and max_heap_address.
2991 * process.c (make_process): Use allocate_process.
2993 * frame.c (make_frame): Use allocate_frame.
2995 * window.c (make_window, make_dummy_parent): Use allocate_window.
2996 (Fcurrent_window_configuration): Use allocate_other_vector.
2998 * lisp.h (allocate_vectorlike): Remove prototype.
2999 (allocate_vector, allocate_other_vector, allocate_frame)
3000 (allocate_window, allocate_process, allocate_hash_table):
3003 * fns.c (Fdelete, larger_vector): Use allocate_vector.
3004 (make_hash_table, copy_hash_table): Use allocate_hash_table.
3006 2001-02-27 Kenichi Handa <handa@etl.go.jp>
3008 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
3009 treat the produced bytes as a valid multibyte sequence.
3011 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
3012 (ccl_driver) <CCL_WriteMultibyteChar2>:
3013 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
3014 <ccl_finish>: Set ccl->eight_bit_control properly.
3016 * ccl.h (struct ccl_program): New member eight_bit_control.
3018 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
3020 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
3021 accessible_keymaps_char_table.
3022 (accessible_keymaps_char_table): Obey `is_metized'.
3023 (where_is_internal, Fwhere_is_internal): Don't confuse int and
3026 2001-02-26 Gerd Moellmann <gerd@gnu.org>
3028 * dispnew.c: Check HAVE_TERM_H before including term.h.
3030 2001-02-24 Andrew Innes <andrewi@gnu.org>
3032 * makefile.w32-in: Update copyright notice.
3034 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
3036 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
3038 2001-02-24 Kenichi Handa <handa@etl.go.jp>
3040 * Makefile.in (lisp): Add international/utf-8.elc.
3042 * fontset.c (Fnew_fontset): Fix handling of the case that an
3043 element of FONTLIST is a cons of family and registry.
3045 2001-02-23 Jason Rumney <jasonr@gnu.org>
3047 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
3048 to height unconditionally.
3050 * w32term.c (x_set_glyph_string_background_width): Extend the
3051 background face to the end of the drawing area in the text area, only.
3052 (x_insert_glyphs): Call window_box_left to obtain the left
3053 x-coordinate of the area to shift.
3055 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
3058 2001-02-22 Andrew Innes <andrewi@gnu.org>
3060 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
3061 ($(BLD)\dispnew.obj):
3062 ($(BLD)\editfns.obj):
3063 ($(BLD)\fileio.obj):
3064 ($(BLD)\filelock.obj):
3065 ($(BLD)\keyboard.obj):
3066 ($(BLD)\w32proc.obj):
3067 ($(BLD)\process.obj):
3068 ($(BLD)\sysdep.obj): Ditto.
3070 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
3072 ($(BLD)/dispnew.$(O)):
3073 ($(BLD)/editfns.$(O)):
3074 ($(BLD)/fileio.$(O)):
3075 ($(BLD)/filelock.$(O)):
3076 ($(BLD)/keyboard.$(O)):
3077 ($(BLD)/w32proc.$(O)):
3078 ($(BLD)/process.$(O)):
3079 ($(BLD)/sysdep.$(O)): Ditto.
3081 2001-02-22 Gerd Moellmann <gerd@gnu.org>
3083 * xdisp.c (forward_to_next_line_start): When taking the shortcut
3084 at the start of the function, check that the \n in it->c is
3085 from the iterator's current position.
3087 * xdisp.c (handle_single_display_prop): Add parameter
3088 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
3089 properties which replace the display of text with something else.
3090 (handle_display_prop): Call handle_single_display_prop with
3091 additional argument saying if we already replaced text display
3092 with something else. Use AREF.
3093 (with_echo_area_buffer_unwind_data, display_menu_bar)
3094 (decode_mode_spec_coding): Use AREF and ASIZE.
3096 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
3097 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
3098 * vmstime.h: Files removed.
3100 * unexencap.c, unexfx2800.c: Files removed.
3102 * dispnew.c (direct_output_for_insert): Give up if we are showing
3103 a message or just cleared the message because we might need to
3104 resize the echo area window or display an empty echo area.
3106 2001-02-21 Gerd Moellmann <gerd@gnu.org>
3108 * xdisp.c (redisplay_internal): Do the
3109 mark_window_display_accurate after all windows have been
3110 redisplayed because this call resets flags in buffers which are
3111 needed for proper redisplay.
3113 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
3114 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
3117 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3118 busy_window to hourglass_window, busy_p to hourglass_p.
3120 * msdos.h (struct x_output): Rename busy_window to
3121 hourglass_window, busy_p to hourglass_p.
3123 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3124 busy_window to hourglass_window, busy_p to hourglass_p.
3126 * xfns.c: Rename everything containing *busy_cursor* and similar
3128 (syms_of_w32fns): Rename x-busy-pointer-shape to
3129 x-hourglass-pointer-shape, display-busy-cursor to
3130 display-hourglass, busy-cursor-delay to hourglass-delay.
3132 * w32fns.c: Rename everything containing *busy_cursor* and similar
3134 (syms_of_w32fns): Rename x-busy-pointer-shape to
3135 x-hourglass-pointer-shape, display-busy-cursor to
3136 display-hourglass, busy-cursor-delay to hourglass-delay.
3138 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
3141 * dispextern.h (start_hourglass, cancel_hourglass)
3142 (display_hourglass_p): Renamed from *busy_cursor*.
3144 2001-02-20 Gerd Moellmann <gerd@gnu.org>
3146 * keyboard.c (read_char): When an event from unread-command-events
3147 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
3149 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
3150 equal to the current buffer.
3152 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
3153 nil, otherwise we're left with truncate_lines t when a message
3154 is printed with message-truncate-lines bound to t.
3156 2001-02-19 Gerd Moellmann <gerd@gnu.org>
3158 * window.c (Fmove_to_window_line): Undo last change.
3159 (displayed_window_lines): Call line_bottom_y to determine
3160 the line's bottom position.
3162 * dispextern.h (line_bottom_y): Add prototype.
3164 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
3165 (pos_visible_p): Use it.
3167 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
3168 set redisplaying_p to 0 here instead of in Frecursive_edit.
3169 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
3172 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
3174 (syms_of_xdisp): Initialize new variables.
3175 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
3176 Specbind `inhibit-menubar-update' when updating the menu bar.
3178 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
3181 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
3184 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
3187 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
3188 to the start of the file.
3190 2001-02-16 Gerd Moellmann <gerd@gnu.org>
3192 * window.c (set_window_buffer): Fix last change.
3194 * window.c (set_window_buffer): Set window's vscroll to 0.
3196 * window.c (coordinates_in_window): Increase width of area
3197 where the vertical line can be dragged.
3199 * xterm.c (x_set_glyph_string_background_width): Extend the
3200 background face to the end of the drawing area in the text
3203 * xdisp.c (handle_single_display_prop): Set iterator's position
3204 to where the `display' property starts, like for images.
3205 (dump_glyph): New function.
3206 (dump_glyph_row): Use it. Dump info about marginal areas.
3208 * dispnew.c (direct_output_for_insert): Recognize more cases where
3209 glyphs can be written instead of being inserted.
3211 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
3212 the left x-coordinate of the area to shift.
3214 * dired.c (directory_files_internal): Set result list to nil
3217 2001-02-15 Kenichi Handa <handa@etl.go.jp>
3219 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
3220 invalid multibyte sequence, treat *SRC as a character of
3223 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
3225 * textprop.c (Fset_text_properties): Doc fix.
3227 2001-02-15 Gerd Moellmann <gerd@gnu.org>
3229 * dispnew.c (update_text_area): Undo change of 2001-01-12.
3231 2001-02-14 Dave Love <fx@gnu.org>
3233 * coding.c: Doc and message fixes.
3235 2001-02-14 Andrew Innes <andrewi@gnu.org>
3237 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
3238 Emacs frame above the screen size.
3240 2001-02-14 Gerd Moellmann <gerd@gnu.org>
3242 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
3244 2001-02-13 Gerd Moellmann <gerd@gnu.org>
3246 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
3247 case that TO ends up beyond ZV after running before-change-functions.
3249 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
3250 the selected window if it is showing the buffer in question.
3252 * dired.c (directory_files_internal): Initialize errno.
3253 (toplevel): Include errno.h.
3255 2001-02-13 Kenichi Handa <handa@etl.go.jp>
3257 * xfaces.c (best_matching_font): New parameter width_ratio.
3258 Multiply avgwidth by width_ratio.
3259 (choose_face_font): Call best_matching_font with width_ratio
3260 calculated from the column width of C.
3262 2001-02-12 Andrew Innes <andrewi@gnu.org>
3264 The following changes are to draw box lines inside characters area
3265 if line-width is negative.
3267 * w32term.c (x_produce_image_glyph): Pay attention to the case that
3268 face->box_line_width is negative.
3269 (x_produce_stretch_glyph): Likewise.
3270 (x_produce_glyphs): Likewise.
3271 (x_estimate_mode_line_height): Likewise.
3272 (x_draw_glyph_string_background): Likewise.
3273 (x_draw_glyph_string_foreground): Likewise.
3274 (x_draw_composite_glyph_string_foreground): Likewise.
3275 (x_draw_glyph_string_box): Likewise.
3276 (x_draw_image_foreground): Likewise.
3277 (x_draw_image_relief): Likewise.
3278 (x_draw_image_foreground_1): Likewise.
3279 (x_draw_image_glyph_string): Likewise.
3281 2001-02-09 Kenichi Handa <handa@etl.go.jp>
3283 The following changes are to draw box lines inside characters area
3284 if line-width is negative.
3286 * xterm.c (x_produce_image_glyph): Pay attention to the case that
3287 face->box_line_width is negative.
3288 (x_produce_stretch_glyph): Likewise.
3289 (x_produce_glyphs): Likewise.
3290 (x_estimate_mode_line_height): Likewise.
3291 (x_draw_glyph_string_background): Likewise.
3292 (x_draw_glyph_string_foreground): Likewise.
3293 (x_draw_composite_glyph_string_foreground): Likewise.
3294 (x_draw_glyph_string_box): Likewise.
3295 (x_draw_image_foreground): Likewise.
3296 (x_draw_image_relief): Likewise.
3297 (x_draw_image_foreground_1): Likewise.
3298 (x_draw_image_glyph_string): Likewise.
3300 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
3301 and :line-width can be negative.
3302 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
3304 2001-02-09 Jason Rumney <jasonr@gnu.org>
3306 * w32term.c (w32_encode_char): Treat eight bit graphic and control
3307 characters the same as ASCII and latin-1.
3308 (x_display_and_set_cursor): Check for the focus frame's selected
3309 window instead of selected_window.
3310 (x_after_update_window_line): Don't clear if frame's internal
3311 border width is zero.
3312 (x_new_font): Don't change a tooltip's size.
3313 (w32_initialize): Set char_ins_del_ok to 1.
3315 * w32fns.c (Fx_show_tip): Fix calls to make_number.
3316 (x_set_font): If font hasn't changed, avoid recomputing
3317 faces and other things.
3318 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
3319 (Fx_create_frame): Add the tool bar height to the frame height.
3320 (x_create_tip_frame): Prevent changing the tooltip's
3321 background color by specifying a color for the default font
3323 (Qcancel_timer): New variable.
3324 (syms_of_w32fns): Initialize and staticpro it.
3325 (Fx_hide_tip, Fx_show_tip): Use it.
3326 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
3328 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
3330 * w32.c (init_environment): Duplicate local string before putenv.
3332 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
3334 * charset.c (Fstring): A typo.
3336 2001-02-09 Kenichi Handa <handa@etl.go.jp>
3338 * charset.c (Fstring): If all arguments are less than 256, return
3341 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
3342 return a unibyte string.
3344 * coding.c (code_convert_region): After detecting a coding, if
3345 nothing found, set coding->composing to COMPOSITION_NO.
3346 (decode_coding_string): Likewise.
3348 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
3350 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
3353 2001-02-07 Kenichi Handa <handa@etl.go.jp>
3355 * charset.c (parse_str_to_multibyte): New function.
3357 * charset.h (parse_str_to_multibyte): Extern it.
3359 * print.c (print_string): If we are going to print a unibyte
3360 string into a multibyte buffer, convert the string to multibyte by
3363 2001-02-06 Andrew Innes <andrewi@gnu.org>
3365 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
3366 been created. It seems we can get sent window messages such as
3367 WM_ERASEBKGND before we properly update a frame.
3369 2001-02-06 Gerd Moellmann <gerd@gnu.org>
3371 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
3372 Avoid some unnecessary cursor positioning.
3374 2001-02-05 Gerd Moellmann <gerd@gnu.org>
3376 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
3377 (LFACE_AVGWIDTH): New macro.
3379 (check_lface_attrs): Check LFACE_AVGWIDTH.
3380 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3381 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
3382 (merge_face_vectors): Check LFACE_AVGWIDTH.
3383 (Finternal_make_lisp_face): Use AREF.
3384 (xm_set_menu_resources_from_menu_face)
3385 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
3386 (Finternal_lisp_face_empty_p): Use AREF.
3387 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
3388 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
3389 Compare average widths..
3390 (best_matching_font): Arrange for comparing average widths.
3392 * dispextern.h (enum lface_attribute_index):
3393 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
3395 2001-02-05 Dave Love <fx@gnu.org>
3397 * puresize.h: Revert last change following loadup.el change.
3399 2001-02-05 Andrew Innes <andrewi@gnu.org>
3401 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
3402 invocation of temacs, to work with Windows 2000.
3403 (bootstrap-emacs): Ditto.
3405 2001-02-05 Gerd Moellmann <gerd@gnu.org>
3407 * xterm.c (x_display_and_set_cursor): Check for the focus
3408 frame's selected window instead of selected_window.
3410 * xdisp.c (try_scrolling): If point is in the line below the
3411 window, make sure to move the iterator at least a canonical
3414 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
3416 2001-02-05 Kenichi Handa <handa@etl.go.jp>
3418 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
3419 If invalid, execute CCL_INVALID_CMD.
3420 (ccl_driver): If the CCL program is terminated because of
3421 CCL_STAT_INVALID_CMD, copy the remaining source data to the
3422 destination instead of throwing them away.
3424 2001-02-02 Gerd Moellmann <gerd@gnu.org>
3426 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
3427 faces and other things.
3429 * xdisp.c (get_next_display_element): Fix case of empty
3430 display table entry.
3432 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
3434 * editfns.c (Fconstrain_to_field): Doc fix.
3436 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
3437 into `thoroughly', to make it consistent with the doc string.
3439 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
3441 2001-02-01 Gerd Moellmann <gerd@gnu.org>
3443 * search.c (search_buffer): Call set_search_regs with a byte
3444 position, not a character position.
3446 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
3449 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
3451 * frame.c (Fmodify_frame_parameters): Doc fix.
3453 2001-01-31 Gerd Moellmann <gerd@gnu.org>
3455 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
3456 identifier which is not reserved by Standard C.
3458 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
3460 * window.c (enum window_part): New enumeration.
3461 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
3463 (coordinates_in_window): Return an enumerator from enum
3464 window_part. Fix handling of right scroll bar.
3465 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
3466 `right-fringe' instead of `left-bitmap-area' and
3467 `right-bitmap-area'. Use enumerators from enum window_part
3468 instead of hard-coded integers.
3469 (check_window_containing, window_from_coordinates):
3470 Use enumerators from enum window_part instead of hard-coded integers.
3471 (syms_of_window): Replace Qleft_bitmap_area and
3472 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
3474 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
3476 * editfns.c (Fformat_time_string): Doc fix.
3478 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
3480 * keymap.c (Fwhere_is_internal): Use the first valid binding
3481 if no ascii binding is found (when firstonly is t).
3483 2001-01-31 Gerd Moellmann <gerd@gnu.org>
3485 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
3486 instead of Finteractive_p.
3488 * lisp.h (interactive_p): Add prototype.
3490 * eval.c (interactive_p): New function.
3491 (Finteractive_p): Use it.
3493 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
3495 2001-01-31 Dave Love <fx@gnu.org>
3497 * .gdbinit (hook-run): Define to run xreload.
3499 * textprop.c (Fset_text_properties): Fix newline in doc string.
3501 2001-01-30 Gerd Moellmann <gerd@gnu.org>
3503 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
3504 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
3506 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
3507 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
3508 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
3510 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
3513 2001-01-30 Dave Love <fx@gnu.org>
3515 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
3518 2001-01-29 Gerd Moellmann <gerd@gnu.org>
3520 * bytecode.c (Fbyte_code) <Bcurrent_column>:
3521 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
3523 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
3525 * textprop.c (Fset_text_properties): Doc fix.
3527 2001-01-29 Gerd Moellmann <gerd@gnu.org>
3529 * xdisp.c (forward_to_next_line_start): Remove xassert.
3531 2001-01-29 Jason Rumney <jasonr@gnu.org>
3533 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
3534 returning without releasing it.
3536 2001-01-29 Kenichi Handa <handa@etl.go.jp>
3538 * w32fns.c (w32_font_match): Allocate three more bytes to regex
3539 for '^', '$', and '\0'.
3541 2001-01-28 Andrew Choi <akochoi@i-cable.com>
3543 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
3544 regex for '^', '$', and '\0'.
3546 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
3547 only if current_sblock has been initialized.
3549 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
3550 terminal frame even if it is the only visible frame.
3552 2001-01-28 Kenichi Handa <handa@etl.go.jp>
3554 * fontset.c (font_family_registry): Even if FONTNAME conform to
3555 XLFD, if it specifies other fields than family and registry,
3556 return FONTANME. New argument FORCE if nonzero cancel that feature.
3557 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
3558 a signle byte character. Don't set FAMILY part to nil here.
3559 It is handled by the caller choose_face_font.
3560 (Fnew_fontset): Call font_family_registry with FORCE 0.
3561 (Fset_fontset_font): Likewise.
3563 2001-01-27 Gerd Moellmann <gerd@gnu.org>
3565 * xdisp.c (display_line): Don't treat a newline as fitting
3568 2001-01-26 Gerd Moellmann <gerd@gnu.org>
3570 * window.c (size_window): Set the window's orig_top to nil when
3571 changing heights, so that a future shrink_mini_window won't
3572 restore a bogus height.
3574 * frame.c (do_switch_frame): If selected frame has a mini-window,
3575 resize that to exact size.
3577 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
3579 * xdisp.c (display_line): Simplify check for glyphs fitting
3580 entirely in the line.
3582 * xfns.c (xic_style): New variable.
3583 (create_frame_xic): Move static variable to global scope for
3584 the case that `static' gets defined away.
3586 2001-01-26 Kenichi Handa <handa@etl.go.jp>
3588 * coding.c (decode_coding): Set a flag for inhibiting
3590 (code_convert_region): Always set saved_coding_symbol.
3591 (decode_coding_string): Likewise. Update coding->symbol when we
3592 encounter a inconsistent eol by the same way as code_convert_region.
3594 2001-01-25 Gerd Moellmann <gerd@gnu.org>
3596 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
3599 * xterm.c (x_after_update_window_line): Don't clear if frame's
3600 internal border width is zero.
3601 (x_clear_area): New function.
3602 (x_after_update_window_line, x_clear_end_of_line)
3603 (x_scroll_bar_create, x_scroll_bar_set_handle)
3604 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
3605 instead of XClearArea.
3607 * xterm.h (x_clear_area): Add prototype.
3609 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
3610 which doesn't seem necessary anymore with Lesstif 0.92.
3612 2001-01-25 Dave Love <fx@gnu.org>
3614 * puresize.h (BASE_PURESIZE): Up to 720000.
3616 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
3618 2001-01-25 Gerd Moellmann <gerd@gnu.org>
3620 * xdisp.c (echo_area_display): Don't call redisplay_internal
3621 when Emacs is shutting down. We can't run hooks etc. that
3622 would be necessary to do a redisplay.
3624 * lread.c (read_integer): Use type EMACS_INT instead of int.
3626 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
3628 * ccl.c (ccl_driver): Fix last change.
3630 2001-01-25 Kenichi Handa <handa@etl.go.jp>
3632 * ccl.h (sturct ccl_program): New member suppress_error.
3634 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
3635 insert error message to the output.
3636 (setup_ccl_program): Initialize ccl->suppress_error to 0.
3638 * coding.h (struct coding_system): New member suppress_error.
3640 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
3641 (Fset_terminal_coding_system_internal): Set the member
3642 suppress_error to 1.
3643 (Fset_safe_terminal_coding_system_internal): Likewise.
3645 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
3647 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
3648 as if it was a `charset'.
3650 2001-01-24 Gerd Moellmann <gerd@gnu.org>
3652 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
3653 value in where_is_cache; the next lookup in the cache returns
3654 something bogus if we do.
3656 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
3658 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
3659 if HAVE_WINDOW_SYSTEM isn't defined.
3661 2001-01-24 Gerd Moellmann <gerd@gnu.org>
3663 * fns.c (sweep_weak_table): Fix code taking items out of
3664 the hash collision chain. Some cleanup.
3666 * xterm.c (x_new_font): Don't change a tooltip's size.
3668 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
3669 background color by specifying a color for the default font
3672 2001-01-24 Kenichi Handa <handa@etl.go.jp>
3674 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
3675 a workaround for SunOS 4's cc.
3676 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
3677 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
3678 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
3681 2001-01-23 Gerd Moellmann <gerd@gnu.org>
3683 * xterm.c (x_set_window_size_1): New function extracted from
3685 (x_set_window_size): Use it.
3686 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
3687 doesn't have a widget, like tooltips.
3689 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
3691 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3693 2001-01-23 Kenichi Handa <handa@etl.go.jp>
3695 * fns.c (Fset_char_table_default): Fix to make sub char-table
3698 2001-01-22 Gerd Moellmann <gerd@gnu.org>
3700 * xdisp.c (build_desired_tool_bar_string): Make sure we have
3701 a desired tool bar string, even if there are no tool bar items.
3703 * xdisp.c (Ftool_bar_lines_needed): New function.
3704 (syms_of_xdisp): Defsubr it.
3706 * editfns.c (Fformat): Don't extend text properties from arguments
3707 to padding chars in the result.
3709 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
3711 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
3713 2001-01-20 Andrew Innes <andrewi@gnu.org>
3715 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
3716 (w32_initialize): Don't set term hooks that aren't actually needed
3719 * xfaces.c (realize_default_face):
3721 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
3723 * xdisp.c (handle_single_display_prop): Remove references to
3724 FRAME_W32_CONSOLE_P.
3726 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
3728 * frame.h (output_method): Remove output_w32_console method.
3729 (FRAME_W32_CONSOLE_P): Remove macro.
3731 * frame.c (Qw32_console): Remove variable.
3732 (Fframep): Remove references to it.
3733 (syms_of_frame): Ditto.
3734 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
3736 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
3739 2001-01-20 Kenichi Handa <handa@etl.go.jp>
3741 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
3743 2001-01-19 Andrew Innes <andrewi@gnu.org>
3745 * w32.c (init_environment): Add a version-independent site-lisp
3746 directory to EMACSLOADPATH, after the version dependent one.
3748 2001-01-19 Gerd Moellmann <gerd@gnu.org>
3750 * editfns.c (Fbuffer_substring): Doc fix.
3752 * xdisp.c (message_dolog, message2, message2_nolog):
3753 Rename parameter LEN to NBYTES.
3755 2001-01-19 Kenichi Handa <handa@etl.go.jp>
3757 * charset.c (strwidth): Use c_string_width.
3758 (c_string_width): New function.
3759 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
3762 * charset.h (c_string_width, lisp_string_width): Extern them.
3764 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
3766 * indent.c (check_composition): Check validity of composition.
3768 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
3769 characters by calling c_string_width.
3770 (x_consider_frame_title): Get byte length of frame tile string
3772 (display_mode_element): Pay attention to width of non-ASCII
3773 characters by calling strwidth.
3775 2001-01-18 Gerd Moellmann <gerd@gnu.org>
3777 * xfns.c (Qcancel_timer): New variable.
3778 (syms_of_xfns): Initialize and staticpro it.
3779 (Fx_hide_tip, Fx_show_tip): Use it.
3780 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
3782 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
3784 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
3786 * window.h (WINDOW_LIVE_P): New macro.
3788 * window.c (window_size_fixed): New variable.
3789 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
3792 * eval.c (specbind): If binding a per-buffer variable which
3793 doesn't have a buffer-local value in the current buffer, change
3794 the global value by changing the value of the symbol bound in all
3795 buffers not having their own value, to make it consistent with
3796 what happens with other buffer-local variables.
3798 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
3800 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
3801 when searching for a newline.
3803 2001-01-18 Kenichi Handa <handa@etl.go.jp>
3805 * xdisp.c (display_string): Fix previous change.
3807 2001-01-18 Jason Rumney <jasonr@gnu.org>
3809 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
3810 GLYPH_DEBUG is defined.
3811 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
3812 true for images with `:ascent 100'.
3813 (x_set_mouse_face_gc): If the last used mouse face has gone in the
3814 meantime, use face MOUSE_FACE_ID.
3815 If first glyph isn't a character glyph, use the ASCII NUL
3816 character to determine the face.
3817 (expose_area): Do not treat left margin specially.
3818 (note_mode_line_highlight): If no local_map, check global keymap.
3819 (note_mouse_highlight): Initialize overlay.
3820 (clear_mouse_face): Don't return if tip_frame is non-nil.
3821 (show_scroll_bars): Remove unused function.
3822 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
3823 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
3825 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
3826 (x_free_frame_resources): Unload relief colors.
3828 2001-01-17 Gerd Moellmann <gerd@gnu.org>
3830 * xdisp.c (forward_to_next_line_start): Avoid calling
3831 get_next_display_element when the newline is already found.
3832 This may change the iterator's position, when its current position is
3833 equal to the iterator's stop_charpos.
3835 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
3836 zero, use this method only at the end of a line.
3838 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
3839 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
3840 if SCALABLE_FONTS_P is set.
3842 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
3843 so that scalable fonts are included.
3845 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
3846 In the cache, use a key containing the information if scalable
3848 (x_load_font): Adapt to change of keys in the font cache.
3850 2001-01-17 Kim F. Storm <storm@filanet.dk>
3852 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
3853 XListFonts to take advantage of font caching.
3855 * xterm.c (x_list_fonts): Ensure caching font information when
3856 called for a null frame, which is the case frequently when Emacs
3859 2001-01-17 Gerd Moellmann <gerd@gnu.org>
3861 * xfns.c (QCconversion): Replaces QCalgorithm.
3863 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
3865 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
3868 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
3869 not everything could be displayed.
3871 * line.h, x-list-font.c: Files removed because unused.
3873 2001-01-17 Andrew Innes <andrewi@gnu.org>
3875 * dired.c (directory_files_internal): Convert result from readdir
3876 to a unibyte string initially, to avoid possible misinterpretation
3877 of some bytes as the internal form of Emacs characters.
3879 2001-01-17 Kenichi Handa <handa@etl.go.jp>
3881 * fns.c (concat): Be sure to avoid putting the same `composition'
3882 property on the adjacent regions.
3884 2001-01-16 Gerd Moellmann <gerd@gnu.org>
3886 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
3887 (Fscroll_right, Fscroll_left): Set it here instead, if called
3890 * buffer.c (Fset_buffer_modified_p): Set buffer's
3891 prevent_redisplay_optimizations_p flag.
3893 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
3894 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
3895 with additional arg.
3897 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
3900 * xdisp.c (redisplay_preserve_echo_area): Add parameter
3901 FROM_WHERE, for debugging.
3903 2001-01-16 Kenichi Handa <handa@etl.go.jp>
3905 * ccl.c (Fregister_ccl_program): Handle the return value of
3906 resolve_symbol_ccl_program correctly.
3907 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
3909 2001-01-15 Gerd Moellmann <gerd@gnu.org>
3911 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
3912 has gone in the meantime, use face MOUSE_FACE_ID.
3914 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
3915 If x_display_info_for_display returns null, don't try to close
3916 the display; we didn't open it.
3918 * dispnew.c (save_or_restore_current_matrices): Function removed.
3919 (save_current_matrix, restore_current_matrix): New functions.
3920 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
3921 restore the frame's current matrix. Due to the glyph pointer
3922 setup done in adjust_glyph_matrix, there is no easy way to make
3923 saving the current matrix in the desired matrix generally correct,
3926 2001-01-15 Kenichi Handa <handa@etl.go.jp>
3928 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
3930 (display_line): Optimize for wide characters.
3931 (display_string): Don't try to display a multi-column character
3932 partially. On ttys, produce more than one truncation glyph for
3933 multi-column characters that don't fit on the line.
3935 2001-01-13 Kenichi Handa <handa@etl.go.jp>
3937 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
3938 Define it instead of WORDS_BIGENDIAN. Caller changed.
3940 2001-01-13 Jason Rumney <jasonr@gnu.org>
3942 * w32fns.c (Fimage_size, image_ascent, lookup_image)
3943 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
3944 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3945 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
3947 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
3948 (x_draw_image_relief, x_draw_image_foreground_1)
3949 (x_draw_image_glyph_string): Adapt to change of image margins.
3951 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
3954 * w32bdf.c (search_file_line, get_cached_font_char)
3955 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
3957 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
3959 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
3960 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
3961 (Fw32_send_sys_command): Remove unused variables.
3962 (w32_msg_pump): Add parentheses.
3964 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
3965 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
3968 2001-01-12 Gerd Moellmann <gerd@gnu.org>
3970 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
3971 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
3972 being a pair of margins.
3973 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
3974 to DEFVAR_LISP. Extend doc.
3976 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
3978 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
3979 pair of integers `(X . Y)', use X for the horizontal and Y for the
3981 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
3982 (parse_image_spec): Check it.
3983 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3984 (tiff_format, gif_format, gs_format):
3985 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
3987 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
3988 (x_draw_image_relief, x_draw_image_foreground_1)
3989 (x_draw_image_glyph_string): Adapt to the change of image margins.
3991 * dispextern.h (struct image): Replace member `margin' with
3992 `hmargin' and `vmargin'.
3994 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
3997 * dispnew.c (update_text_area): Put code which decrements the
3998 stop position when the row's face extends to the end of the
4001 * xfns.c (x_set_mouse_color): Fix color allocation.
4003 * keyboard.c: Call get_local_map with new argument list.
4005 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
4007 * intervals.h (enum map_property): Removed.
4008 (get_local_map): Change prototype.
4010 * keymap.c: Call get_local_map with new argument list.
4011 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
4013 2001-01-11 Gerd Moellmann <gerd@gnu.org>
4015 * xdisp.c (build_desired_tool_bar_string): Correct the computation
4016 of the size needed for the tool bar string. For the last image,
4017 use a `display' property that reaches to the end of the string.
4019 * xselect.c (selection_request_dpyinfo): New variable.
4020 (x_handle_selection_request): Set it.
4021 (x_selection_request_lisp_error): Don't call
4022 x_decline_selection_request if selection request's display has
4025 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
4026 Do the unregister_colors before calling XFreeColors.
4028 2001-01-10 Dave Love <fx@gnu.org>
4030 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
4031 ${SOME_MACHINE_LISP}, not ${lisp}.
4033 2001-01-10 Gerd Moellmann <gerd@gnu.org>
4035 * xdisp.c (display_line): On ttys, produce more than one truncation
4036 glyph for multi-column characters that don't fit on the line.
4038 * xselect.c (x_reply_selection_request): Add a comment.
4040 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
4041 XkbGetNames instead of XkbGetKeyboard.
4043 2001-01-10 Dave Love <fx@gnu.org>
4045 * sysdep.c (random): Revert the declaration.
4047 2001-01-09 Gerd Moellmann <gerd@gnu.org>
4049 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
4050 Call function string_bytes.
4051 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
4053 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
4054 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
4055 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
4056 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
4058 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
4059 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
4060 after sweeping strings, and at the end.
4061 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
4063 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
4064 ensure that pop_message is called.
4066 * keyboard.c (Fexecute_extended_command): Use a
4067 record_unwind_protect to ensure that pop_message is called.
4069 * lisp.h (push_message_unwind): Add prototype.
4071 * xdisp.c (push_message_unwind): New function.
4073 * fileio.c (do_auto_save_unwind): Do the pop_message here
4074 instead of in Fdo_auto_save.
4075 (Fdo_auto_save): Don't call pop_message.
4077 2001-01-08 Ken Raeburn <raeburn@gnu.org>
4079 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
4082 2001-01-08 Gerd Moellmann <gerd@gnu.org>
4084 * window.c (window_scroll_pixel_based): Adjust glyph matrices
4085 when increasing window's vscroll.
4087 * macros.c (Qkbd_macro_termination_hook): New variable.
4088 (syms_of_macros): Initialize and staticpro it.
4089 (pop_kbd_macro): Run kbd-macro-termination-hook.
4091 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
4093 2001-01-07 Dave Love <fx@gnu.org>
4095 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
4096 arglist, for documentation's sake.
4098 2001-01-06 Andrew Innes <andrewi@gnu.org>
4100 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
4103 2001-01-05 Andrew Innes <andrewi@gnu.org>
4105 * term.c (update_end): Don't check updating_frame; for some reason
4106 this can be 0 sometimes, such as after dismissing a popup menu,
4107 and isn't necessary given the explicit frame argument.
4109 2001-01-05 Gerd Moellmann <gerd@gnu.org>
4111 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
4112 on some systems, and an unsigned long on others, like FreeBSD 4.1.
4114 2001-01-04 Gerd Moellmann <gerd@gnu.org>
4116 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
4118 * xfns.c (x_create_tip_frame): Preserve the value of
4119 face_change_count around the creation of the tip frame.
4121 * xfns.c (last_show_tip_args): New variable.
4122 (compute_tip_xy): New function.
4123 (Fx_show_tip): Reuse an existing tip frame, if possible.
4124 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
4126 2001-01-04 Dave Love <fx@gnu.org>
4128 * editfns.c (Fformat): Doc fix.
4130 * systime.h (set_file_times): Prototype.
4132 * widget.h (EmacsFrameSetCharSize_): Prototype.
4134 * sysdep.c (random, srandom): Declare explicitly.
4136 * dispextern.h (move_it_vertically_backward): Declare.
4138 2001-01-04 Gerd Moellmann <gerd@gnu.org>
4140 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
4141 like in Fx_create_frame.
4143 * xfaces.c (set_font_frame_param): Don't do anything for
4144 non-graphical frames.
4146 * window.c (Fdelete_other_windows): Set window's window_end_valid
4147 to nil when changing the window's start. Don't change the
4148 window's start when its top position hasn't changed. If we do,
4149 this will set the window's optional_new_start, which act's like a
4150 force_start during redisplay with C-x 1 M-> under particular
4151 circumstances (see report from Per Starback to emacs-pretest-bug
4154 2001-01-03 Gerd Moellmann <gerd@gnu.org>
4156 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
4157 short cut at the start of the function. Add an assertion.
4158 (reseat_at_next_visible_line_start): Add an assertion.
4160 * window.c (Frecenter): When changing the window start, set the
4161 window's window_end_valid to nil.
4162 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
4164 * dispextern.h (move_it_past_eol): Add prototype.
4166 * xdisp.c (move_it_past_eol): New function.
4168 * window.c (Fwindow_end): Doc fix.
4170 2001-01-03 Dave Love <fx@gnu.org>
4172 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
4174 2001-01-03 Gerd Moellmann <gerd@gnu.org>
4176 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
4177 the enabled_p flag of the glyph row at window_end_vpos to 0.
4178 (handle_single_display_prop): Fix last change.
4180 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
4182 * window.c (Frecenter): Doc fix.
4184 2001-01-02 Andrew Innes <andrewi@gnu.org>
4186 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
4188 * frame.h (output_method): Add output_w32_console method.
4189 (FRAME_W32_CONSOLE_P): New macro.
4191 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
4192 use output_w32_console method.
4193 (Qw32_console): New Lisp_Object.
4194 (Fframep): Return it.
4195 (syms_of_frame): Init it.
4196 (Fframe_parameters): Report w32console as font for w32_console frames.
4198 * xfaces.c (realize_default_face): Set face foreground and
4199 background to unspecified for w32_console frames.
4200 (realize_face): Realize face cache for w32_console frames.
4201 (realize_tty_face): Accept w32_console frames.
4203 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
4204 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
4205 necessary, even if running interactively.
4207 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
4210 * w32term.c (x_update_begin):
4214 (x_change_line_highlight):
4219 (w32_reassert_line_highlight):
4220 (w32_frame_rehighlight):
4221 (w32_frame_raise_lower): Do nothing if not w32 frame.
4223 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
4225 * w32fns.c (Fx_display_color_cells): Determine correct value, when
4226 system doesn't tell us directly.
4227 (Fx_display_visual_class): Implement properly.
4229 2001-01-02 Gerd Moellmann <gerd@gnu.org>
4231 * window.c (Frecenter): Handle centering in graphical frames
4232 specially. Centering on the basis of line counts doesn't work
4233 reliably with variable-height lines.
4235 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4237 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
4240 * composite.c (run_composition_function): Remove unused var `val'.
4241 (update_compositions): Remove unused variable `hook'.
4243 * intervals.c (get_local_map): Remove unused variable `tem'.
4245 * doprnt.c (doprnt1): Remove unused variable `size'.
4247 * fns.c (Flength): Remove unused variable `tail'.
4248 (Fdelete): Remove unused variable `size'.
4250 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
4253 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
4255 * data.c (find_symbol_value): Remove extra 3rd argument in the
4256 call to swap_in_symval_forwarding.
4258 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
4260 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
4261 (trivial_regexp_p): Remove unused variable `c'.
4262 (boyer_moore): Remove unused variable `k'.
4264 * indent.c (current_column): Remove unused variable `stopchar'.
4265 (Fcompute_motion): Remove unused variable `contin'.
4267 * casefiddle.c (casify_object): Remove unused variable `tolen'.
4269 * dired.c (directory_files_internal): Fix a typo in a comment.
4270 Remove an unused variable `handler'.
4271 (file_name_completion): Remove unused function-scope variable `dp'.
4272 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
4275 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
4277 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
4279 (Fmarker_insertion_type): Remove unused variable `buf'.
4281 * insdel.c (make_gap): Remove unused variable `result'.
4283 * keyboard.c (record_char): Remove unused function-scope var `help'.
4284 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
4285 (menu_bar_items): Remove unused function-scope variable `tem'.
4287 * fontset.c (fontset_ref): Remove unused variable `i'.
4288 (fontset_set): Remove unused variables `j' and `tmp'.
4289 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
4290 (make_fontset_for_ascii_face): Remove unused variable `name'.
4291 (fs_load_font): Remove unused variable `font_idx'.
4292 (fs_query_fontset): Remove unused function-local variable `fontset'.
4293 (list_fontsets): Remove unused variable `tail'.
4294 (Fnew_fontset): Remove unused variables `family' and `registry'.
4295 (accumulate_font_info): Remove unused variable `tmp'.
4296 (Ffontset_font): Remove unused variable `id'.
4297 (syms_of_fontset): Remove unused variable `i'.
4299 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
4301 (lookup_image): Remove unused variable `file'.
4302 (xbm_load): Remove unused variables `bitmap_data', `height', and
4303 `width'. Remove function-local variable `i', leave the
4305 (gif_load): Remove unused variable `inc'.
4307 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
4308 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
4309 leave only the one in the inner block.
4311 * xfaces.c (face_fontset, realize_default_face): Remove unused
4313 (face_at_buffer_position): Remove unused variable `multibyte_p'.
4315 * term.c (encode_terminal_code): Remove unused variable `c'.
4317 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
4318 char *' instead of `char *'.
4320 * category.c (Fcategory_docstring): Remove unused variable `doc'.
4321 (Fget_unused_category): Remove unused variable `docstring_vector'.
4322 (Fchar_category_set): Remove unused variables `val', `charset',
4325 * coding.c (detect_coding_iso2022, setup_coding_system):
4326 Remove unused variable `i'.
4327 (detect_coding_mask): Remove unused variable `idx'.
4328 (detect_coding): Remove unused variable `i'.
4329 (ccl_coding_driver): Remove unused variable `result'.
4330 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
4331 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
4332 (encode_coding_string): Remove unused variables `gcpro1' and
4333 `saved_coding_symbol'.
4334 (Ffind_coding_systems_region_internal): Remove function-local
4335 variable args[], leave only the block-local one.
4336 (code_convert_region1): Remove unused variable `len'.
4338 * charset.c (char_printable_p): Remove unused variable `chars'.
4339 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
4340 (str_to_multibyte): Remove unused variable `c'.
4342 * window.c (size_window): Remove block-local variable `min_size'.
4344 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
4345 `header_line_height'.
4346 (append_space, extend_face_to_end_of_line): Declare `saved_what'
4347 enum display_element_type.
4349 2001-01-02 Gerd Moellmann <gerd@gnu.org>
4351 * xterm.c (x_connection_closed): Catch X errors around all
4352 statements that call X. Save away the error message in a local copy.
4354 * xterm.c (x_connection_closed): Set handling_signal to 0 at
4357 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
4358 in or at the start of invisible text.
4360 * dispnew.c (update_window): Don't check_current_matrix_flags.
4362 2001-01-01 Jason Rumney <jasonr@gnu.org>
4364 * w32fns.c (x_figure_window_size): Do not allow new_height and
4365 new_width of frame to override specified values.
4367 2000-12-30 Kenichi Handa <handa@etl.go.jp>
4369 * composite.c (find_composition): Fix a code for searching backward.
4371 2000-12-29 Gerd Moellmann <gerd@gnu.org>
4373 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
4374 (update_window) [GLYPH_DEBUG]: Call it.
4375 (scrolling_window): Prevent including current rows which are below
4376 what's displayed in the window.
4378 * xdisp.c (try_window_reusing_current_matrix)
4379 <new start <= old start>: Disable rows in the current matrix
4380 which are below the window after scrolling.
4382 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
4383 is zero. It's not worth the complexity.
4384 (invisible_text_between_p): Put in #if 0 because unused.
4386 2000-12-28 Gerd Moellmann <gerd@gnu.org>
4388 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
4389 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
4391 * keyboard.c (echo_char): If C is an integer, always call
4392 push_key_description. Former code could signal an invalid
4395 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
4396 If set, print multibyte text.
4397 (Fsingle_key_description): Call push_key_description with
4398 FORCE_MULTIBYTE set.
4399 (describe_buffer_bindings): Likewise.
4401 * lisp.h (push_key_description): Add prototype.
4403 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
4404 around the call to redisplay_internal.
4406 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4408 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4410 2000-12-28 Kenichi Handa <handa@etl.go.jp>
4412 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
4413 (ccl_driver): New local variable `extra_bytes'.
4415 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
4417 * coding.c (setup_coding_system):
4418 Initialize coding->spec.ccl.eight_bit_carryover.
4419 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
4421 2000-12-28 Kenichi Handa <handa@etl.go.jp>
4423 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
4424 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
4425 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
4426 (decode_composition_emacs_mule): New function.
4427 (decode_coding_emacs_mule): Decode composition sequence by calling
4428 decode_composition_emacs_mule.
4429 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
4430 (encode_coding_emacs_mule): Changed from macro to function.
4431 If a text contains compositions, encode them correctly.
4432 (setup_coding_system): Set coding->commong_flags for emacs-mule so
4433 that decoding and encoding are required.
4435 2000-12-27 Gerd Moellmann <gerd@gnu.org>
4437 * xfaces.c (PT_PER_INCH): New macro.
4438 (xlfd_point_size): Compute real point size from font's pixel size.
4439 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
4442 * .gdbinit: Comment out the line pointing to the Lesstif source
4445 * window.c (Frecenter): Use displayed_window_lines instead
4446 of window_internal_height.
4448 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4449 instead of x-toolkit-scroll-bars-p.
4450 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
4452 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4453 instead of x-toolkit-scroll-bars-p.
4454 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
4456 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
4457 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
4458 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
4460 (add_window_display_history, add_frame_display_history)
4461 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
4462 (build_frame_matrix_from_leaf_window): Remove unused code.
4463 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
4465 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
4466 (update_window) [GLYPH_DEBUG]: Likewise.
4467 (syms_of_display): Defsubr dump-redisplay-history.
4469 2000-12-23 Gerd Moellmann <gerd@gnu.org>
4471 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
4472 the end of the prompt. Set echo_after_prompt to the offset
4473 of echoptr in echobuf.
4475 * xdisp.c (init_from_display_pos): Pop until the iterator's
4476 stack is empty; there may be frames for stretch or images
4479 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
4480 (save_or_restore_current_matrix): New function for the same
4481 purpose, but more efficient.
4482 (adjust_frame_glyphs_for_frame_redisplay): Use it.
4484 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
4486 * xdisp.c (syms_of_xdisp): Fix last change.
4488 2000-12-23 Gerd Moellmann <gerd@gnu.org>
4490 * xdisp.c (syms_of_xdisp): Doc fix.
4492 * xdisp.c (redisplay_window): Remove label restore_buffers;
4493 use finish_scroll_bars instead to make sure that scroll bars
4494 are redeemed. If we don't do this, flickering can result from
4495 scroll bars being destroyed and recreated.
4497 2000-12-22 Jason Rumney <jasonr@gnu.org>
4499 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
4500 in the wrong colors when the foreground is not black.
4501 (expose_window): Don't redraw the window that's currently being
4504 2000-12-22 Gerd Moellmann <gerd@gnu.org>
4506 * window.c (size_window): When setting the window's too_small_ok
4507 flag, compare old size with minimum size depending on WIDTH_P,
4508 don't compare with window_min_width.
4510 * window.c (delete_window): Simplify somewhat.
4511 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
4512 freeing window matrices. The flag windows_or_buffers_changed is
4513 set, so the next redisplay will consider all windows; this should
4516 2000-12-22 Kenichi Handa <handa@etl.go.jp>
4518 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
4520 * ccl.h (struct ccl_program): New member cr_consumed.
4522 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
4523 (CCL_READ_CHAR): Handle EOL conversion here.
4524 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
4526 2000-12-21 Gerd Moellmann <gerd@gnu.org>
4528 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
4530 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
4531 otherwise tabs of different size compare equal.
4533 * callint.c (Fcall_interactively): Prevent a compiler warning.
4535 * print.c (print_unwind): Return nil.
4536 (PRINTDECLARE): Initialize all local variables.
4537 (print_preprocess): Add a default case.
4539 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
4541 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
4543 * window.c (delete_window, Fsplit_window)
4544 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
4546 * dispextern.h (ensure_frame_matrix): Function declaration removed.
4548 * dispnew.c (ensure_frame_matrix): Removed.
4549 (save_frame_matrix, restore_frame_matrix): New functions.
4550 (adjust_frame_glyphs_for_frame_redisplay): Use them.
4552 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
4553 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
4555 2000-12-21 Andrew Innes <andrewi@gnu.org>
4557 * w32term.c (x_update_begin): Regenerate the palette here, rather
4558 than for each window.
4560 * w32xfns.c (select_palette): Avoid calling SelectPalette if
4561 palette is NULL, since this corrupts memory! Also get
4562 display_info reference from frame.
4564 2000-12-21 Jason Rumney <jasonr@gnu.org>
4566 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
4568 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
4569 to avoid returning without releasing it.
4571 2000-12-21 Kenichi Handa <handa@etl.go.jp>
4573 * keymap.c (push_key_description): Don't convert eight-bit-control
4574 and eight-bit-graphic to multibyte character.
4576 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
4577 generic character and CODE1 is nil, return the smallest character
4580 2000-12-20 Dave Love <fx@gnu.org>
4582 * s/osf5-0.h (NSIG): Don't redefine.
4584 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
4586 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
4587 excluding menu-bar and tool-bar.
4588 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
4589 (menu_item_p): Remove.
4590 (where_is_internal_1): Don't ignore menu-items.
4592 2000-12-20 Gerd Moellmann <gerd@gnu.org>
4594 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
4597 * window.c (make_window): Initialize window's min_hscroll.
4598 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
4599 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
4601 (struct saved_window): New member min_hscroll.
4602 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
4603 (Fset_window_configuration): Set window's min_hscroll.
4604 (save_window_save): Save window's min_hscroll.
4605 (compare_window_configurations): Compare min_hscroll values.
4607 * window.h (struct window): New member min_hscroll.
4609 * keyboard.c (echo_prompt): Prevent a compiler warning.
4611 * xdisp.c (try_cursor_movement): Fix last change. The real
4612 condition is that PT is at the end of the row, and should
4613 be displayed at the start of the next row.
4615 * xdisp.c (try_cursor_movement): If we end on a partially
4616 visible line, end we already decided to scroll, return -1.
4618 * dispextern.h (ensure_frame_matrix): Add prototype.
4620 * window.c (delete_window, Fsplit_window)
4621 (Fset_window_configuration): Call ensure_frame_matrix.
4623 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
4625 (adjust_frame_glyphs_for_frame_redisplay): If display has been
4626 completed, call fake_current_matrices instead of marking frame
4629 2000-12-20 Jason Rumney <jasonr@gnu.org>
4631 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
4633 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
4635 * fns.c (Frequire): Doc fix.
4637 2000-12-19 Gerd Moellmann <gerd@gnu.org>
4639 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
4641 * dispnew.c (direct_output_for_insert): Fix check for mini-window
4642 currently displaying a message.
4644 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
4646 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
4648 2000-12-18 Andrew Innes <andrewi@gnu.org>
4650 * w32.c (w32_strerror): New function.
4652 * w32.h (w32_strerror): New extern.
4654 * w32fns.c (Fw32_shell_execute): Use it.
4656 2000-12-18 Gerd Moellmann <gerd@gnu.org>
4658 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
4660 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4662 * msdos.c (IT_set_face): Obey inverse_video.
4664 2000-12-18 Kenichi Handa <handa@etl.go.jp>
4666 * dired.c (directory_files_internal): Always return decoded filenames.
4668 2000-12-18 Gerd Moellmann <gerd@gnu.org>
4670 * xterm.c (x_connection_closed): Prevent being called recursively
4671 because of an error condition in XtCloseDisplay.
4673 * xdisp.c (init_iterator): If noninteractive, and the frame's
4674 face cache is null, make one.
4676 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
4678 * process.c (wait_reading_process_input): Check for pending
4679 input when running timers.
4681 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4683 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
4685 2000-12-18 Kenichi Handa <handa@etl.go.jp>
4687 * process.c (read_process_output): Don't run a filter if the code
4688 decoder produces nothing but carryover.
4690 2000-12-17 Andrew Innes <andrewi@gnu.org>
4692 * w32.c (sys_rename): Only check errno against EEXIST, and not
4693 EACCES, when determining whether rename failed because the target
4694 exists. This was resulting in indefinite looping on Windows 9x if
4695 the source file was locked by another process.
4697 * w32fns.c (Ffile_system_info): New function.
4698 (syms_of_w32fns): Defsubr it.
4700 2000-12-17 Gerd Moellmann <gerd@gnu.org>
4702 * window.c (coordinates_in_window): Fix computation for
4703 position on vertical line between mode lines.
4705 * xfns.c (unwind_create_frame): Return t if frame was deleted.
4706 Don't alter tip_frame or tip_window.
4707 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4710 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
4711 Don't alter tip_frame or tip_window.
4712 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4715 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
4717 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
4718 be consistent with the doc string. Reported by NAKAJIMA Mikio
4719 <minakaji@osaka.email.ne.jp>.
4721 2000-12-16 Kenichi Handa <handa@etl.go.jp>
4723 * xfaces.c (Vface_ignored_fonts): New variable.
4724 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
4725 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
4727 2000-12-15 Gerd Moellmann <gerd@gnu.org>
4729 * dispnew.c (update_window): Detect pending input every nth line
4730 updated, i.e. do it depending on real work done, and not on the
4733 * xterm.c (expose_window): Don't redraw the window that's
4734 currently being updated.
4736 * window.c (Fset_window_point): Remove test for
4737 cursor_in_non_selected_windows.
4739 * lread.c (read1): Recognize end of file after `\\'.
4741 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
4742 not unwind_create_frame.
4744 2000-12-15 Dave Love <fx@gnu.org>
4746 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
4749 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
4751 2000-12-15 Kenichi Handa <handa@etl.go.jp>
4753 * coding.c (setup_coding_system): Clear all members of the struct
4754 coding_system at first.
4755 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
4757 (code_convert_region): Don't override coding->src_multibyte and
4758 coding->dst_multibyte.
4760 * fns.c (Fmd5): Docstring improved.
4762 2000-12-15 Miles Bader <miles@gnu.org>
4764 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
4765 are actually marked as mode-lines; otherwise use
4766 estimate_mode_line_height.
4768 2000-12-14 Gerd Moellmann <gerd@gnu.org>
4770 * editfns.c (Fformat): Prevent a buffer overrun when the format
4771 specifies a precision.
4773 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
4775 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
4776 argument is outside the range [2..3].
4778 2000-12-14 Andrew Innes <andrewi@gnu.org>
4780 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
4781 nothing to do. Bind inhibit-quit.
4782 (tip_frame): Make it a Lisp_Object.
4783 (x_create_tip_frame): Set tip_frame after it has been added to
4785 (Fx_show_tip): Don't set tip_frame here.
4786 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
4787 (unwind_create_frame, unwind_create_tip_frame): New functions.
4788 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
4789 while a frame is only partially constructed.
4791 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
4792 (x_free_frame_resources): New function.
4793 (x_destroy_window): Use it.
4795 2000-12-14 Gerd Moellmann <gerd@gnu.org>
4797 * xfns.c (Fx_backspace_delete_keys_p): New function.
4798 (syms_of_xfns): Defsubr it.
4800 * config.in (HAVE_XKBGETKEYBOARD): Add.
4802 2000-12-14 Kenichi Handa <handa@etl.go.jp>
4804 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
4805 Always store string in multibyte representation in echobuf.
4806 (echo_char): Always store string in multibyte representation in
4808 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
4809 (read_key_sequence): Adjusted for the change of echo_prompt.
4811 * fns.c (Fmd5): Docstring improved.
4813 * lisp.h (detect_coding_system): Prototype adjusted.
4815 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
4816 (detect_coding_emacs_mule, detect_coding_iso2022,)
4817 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
4818 (detect_coding_utf_16, detect_coding_ccl): Make them static.
4819 New argument MULTIBYTEP. Callers changed.
4820 (detect_coding_mask, detect_coding_system): New argument
4821 MULTIBYTEP. Callers changed.
4822 (decode_coding_string): Set coding->src_multibyte and
4823 coding->dst_multibyte before calling detect_coding and detect_eol.
4824 Update them after some coding system is detected.
4826 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
4828 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
4830 * keyboard.c (menu_bar_items, tool_bar_items):
4831 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
4833 2000-12-13 Gerd Moellmann <gerd@gnu.org>
4835 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
4837 (unwind_create_frame, unwind_create_tip_frame): New functions.
4838 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
4839 while a frame is only partially constructed.
4841 * xterm.h (x_free_frame_resources): Declare.
4843 * xterm.c (x_free_frame_resources): New function.
4844 (x_destroy_window): Use it.
4846 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
4847 don't interrupt the update for pending input initially, i.e.
4848 update at least some lines.
4850 * keyboard.c (do_mouse_tracking): Make externally visible.
4852 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
4854 * xfns.c (gray_bitmap_bits): Declare `char *'.
4856 2000-12-12 Gerd Moellmann <gerd@gnu.org>
4858 * xdisp.c (display_tool_bar_line): Make sure that tool bar
4859 lines start with a relief line.
4861 2000-12-12 Dave Love <fx@gnu.org>
4863 * window.c (Fdisplay_buffer): Doc fix.
4864 (Fwindow_list): Remove unused var.
4866 * buffer.h (mmap_set_vars): Declare.
4868 * window.h (Fset_window_point): Declare.
4870 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
4872 * msdos.c (fast_find_position): Don't overstep the last window row.
4873 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
4874 variable `area'. When looking for a row under (X,Y), give up if some
4875 of the previous rows is not enabled.
4877 2000-12-12 Gerd Moellmann <gerd@gnu.org>
4879 * window.c (Fset_window_point): If displaying cursors in windows
4880 other than the selected window, make sure redisplay updates
4881 other windows to show the new value of point in the window.
4883 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
4885 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
4886 the buffer is the sole visible buffer when in the mini-buffer.
4888 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4889 Bind `inhibit-read-only' to t.
4890 (unwind_with_echo_area_buffer): Use AREF.
4892 * xfns.c (Fx_hide_tip): Simplified.
4894 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
4897 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
4899 2000-12-11 Gerd Moellmann <gerd@gnu.org>
4901 * xfns.c (Fx_hide_tip): Fix last change.
4903 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
4904 nothing to do. Bind inhibit-quit.
4905 (tip_frame): Make it a Lisp_Object.
4906 (x_create_tip_frame): Set tip_frame after it has been added to
4908 (Fx_show_tip): Don't set tip_frame here.
4910 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
4912 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
4915 * dispextern.h: Change external declaration of tip_frame.
4917 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
4918 return an empty string.
4920 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
4921 of the window's update_mode_line flag, since the former is set by
4922 force-mode-line-update, not the latter. This makes
4923 column-number-mode slightly faster.
4925 * xdisp.c (try_window_id) <all changes above window start>:
4928 2000-12-11 Paul Eggert <eggert@twinsun.com>
4930 * config.in (HAVE_FTELLO): Remove.
4932 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
4933 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
4935 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
4936 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
4938 2000-12-11 Miles Bader <miles@gnu.org>
4940 * window.c (displayed_window_lines): Don't round up when
4941 converting empty space at bottom to lines.
4942 Handle non-newline-terminated final lines properly.
4943 (Fwindow_text_height): New function (used to be in lisp).
4944 (syms_of_window): Initialize it.
4946 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
4948 * syntax.c (scan_lists): Check that the right quote char has the
4949 right Sstring syntax when jumping over strings.
4950 (init_syntax_once): Use Smax rather than 13.
4952 2000-12-09 Miles Bader <miles@gnu.org>
4954 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
4955 with PARTIALLY, inverting the sense.
4956 (window_scroll_pixel_based): Scroll partially visible lines into
4957 place if we hit the beginning or end of the buffer.
4958 (displayed_window_lines): Don't include partially visible lines.
4959 (Fmove_to_window_line): Skip past any partially visible first line.
4961 2000-12-08 Gerd Moellmann <gerd@gnu.org>
4963 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
4965 * tparam.c (tparam1): Change the way buffers are reallocated to be
4966 portable and less obfuscated.
4968 * termcap.c (tgetent): Change the way buffers are reallocated to
4969 be portable and less obfuscated.
4971 * macros.c (store_kbd_macro_char): Change the way buffers are
4972 reallocated to be portable and less obfuscated.
4974 * lread.c (read1): Change the way buffers are reallocated to be
4975 portable and less obfuscated.
4977 * doc.c (Fsubstitute_command_keys): Change the way buffers
4978 are reallocated so that it is portable.
4980 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
4982 * dosfns.c (Ffile_system_info): New function.
4983 (syms_of_dosfns): Defsubr it.
4985 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
4987 * alloc.c (gc_sweep): Add comment.
4989 2000-12-07 Gerd Moellmann <gerd@gnu.org>
4991 * sound.c (vox_configure): Change order of ioctls.
4992 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
4993 Ignore errors when changing volume.
4994 (vox_close): Don't reset the device.
4996 * process.c (read_process_output): Make sure the process marker's
4997 position is valid when the process buffer is changed in
4998 after-change functions. W3 does that.
5000 * xfns.c (x_free_gcs): New function.
5002 * xterm.h (x_free_gcs): Add prototype.
5004 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
5007 * xterm.c (x_destroy_window): Call x_free_gcs so that
5008 resources of non-toolkit X windows will be freed.
5010 2000-12-07 Andrew Innes <andrewi@gnu.org>
5012 * w32fns.c (xlfd_charset_of_font): Fix last change.
5014 2000-12-06 Dave Love <fx@gnu.org>
5016 * md5.h (__P): Don't define -- it comes from config.h.
5018 * strftime.c: Change some #if foo to #ifdef foo.
5020 2000-12-06 Andrew Innes <andrewi@gnu.org>
5022 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
5024 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
5025 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
5026 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
5028 2000-12-06 Gerd Moellmann <gerd@gnu.org>
5030 * alloc.c (gc_sweep): Prevent symbols read during loadup
5033 * xdisp.c (underlying_face_id): New function.
5034 (handle_face_prop, face_before_or_after_it_pos): Use it
5035 to determine the face ``under'' a string. Let strings inherit
5036 the face of the buffer under them.
5038 * xfaces.c (face_at_string_position): Update function comment.
5040 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
5041 matrix if the window's left position has changed; we need to
5042 redraw it in this case.
5044 * dispextern.h (struct glyph_matrix): Add member window_left_x.
5046 * window.c (coordinates_in_window): Check mouse on mode-line or
5049 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
5050 advertized by the function documentation.
5052 * window.c (syms_of_window): Doc fix.
5054 * sound.c (vox_configure): Set volume for left and right channel.
5055 (sound_cleanup): Return nil.
5057 * xdisp.c (move_it_by_lines): Fix paren typo.
5059 * xterm.c (x_load_font): Don't use the font's max_bounds for
5060 computing the height of the font. If max_bounds' ascent or
5061 descent are greater than the font's ascent or descent, this means
5062 glyphs overlap, which should be handled now by redisplay.
5064 * window.c (Veven_window_heights): New variable.
5065 (syms_of_window): DEFVAR_LISP it.
5066 (Fdisplay_buffer): Check Veven_window_heights before evening the
5069 2000-12-06 Miles Bader <miles@gnu.org>
5071 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
5072 update `default-frame-alist' instead of setting no frame parameters.
5074 2000-12-06 Kenichi Handa <handa@etl.go.jp>
5076 * composite.c (update_compositions): Fix typo (use the correct
5079 2000-12-05 Jason Rumney <jasonr@gnu.org>
5081 * md5.h: Remove underscores from function declarations.
5082 (__attribute__, __alignof__) [!__GNUC__]: Define.
5084 * md5.c: Delay include of md5.h until after namespace cleaning.
5086 * makefile.w32-in (fns.o): Depend on md5.h
5087 (md5.o): New target.
5090 * makefile.nt: Likewise.
5092 2000-12-05 Jason Rumney <jasonr@altavista.net>
5094 * w32term.c (expose_area): Complete last change.
5096 2000-12-05 Ken Raeburn <raeburn@gnu.org>
5098 * minibuf.c: Include intervals.h.
5100 2000-12-05 Jason Rumney <jasonr@gnu.org>
5102 * w32term.c (x_produce_glyphs): If a font for a component of
5103 a composition is not found, use 1 pixel dot ascent and 0 dot
5104 descent value to avoid displaying terribly tall empty boxes.
5105 (expose_area): Pass x-coordinate relative to the exposed
5106 area to x_draw_glyphs instead of a window-relative coordinate.
5108 2000-12-05 Gerd Moellmann <gerd@gnu.org>
5110 * xdisp.c (next_element_from_ellipsis): Save face before selective
5111 display in saved_face_id, and set face_before_selective_p.
5112 (reseat_1): Reset face_before_selective_p.
5113 (append_space, extend_face_to_end_of_line): If iterator's
5114 face_before_selective_p is set, use the face from saved_face_id.
5115 (extend_face_to_end_of_line): For tty frames, make sure to
5116 use the right face id when producing spaces at the end of
5119 * dispextern.h (struct it): Add face_before_selective_p.
5121 * keyboard.c (record_char): Don't record identical help-echo
5122 events in recent_keys.
5124 * xterm.c [USE_X_TOOLKIT]: Close the display.
5125 (xim_close_dpy): Handle case that the display has been closed.
5127 * xterm.c (x_destroy_window): Reset the frame's X window after
5130 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
5131 variable window_width.
5132 (line_draw_cost): Fix code skipping over spaces at the end of the
5133 line when must_write_spaces is not set.
5134 (scrolling_window): Fix code inserting runs in list of all runs.
5136 2000-12-05 Kenichi Handa <handa@etl.go.jp>
5138 * coding.c (setup_coding_system): Be sure to initialize
5139 coding->category_idx.
5141 2000-12-04 Gerd Moellmann <gerd@gnu.org>
5143 * xterm.c (PER_CHAR_METRIC): Removed because not used.
5145 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
5146 area to x_draw_glyphs instead of a window-relative coordinate.
5148 * fileio.c (auto_save_error): Add parameter ERROR. Show the
5149 error in the message.
5151 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
5152 timer after having read a key. It's not good for code reading
5153 several keys in a loop, like an input method.
5155 * fileio.c (Finsert_file_contents): When VISIT is t, don't
5156 record undo information for format-decode.
5158 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
5159 current buffer is read-only, not if it isn't.
5161 * keyboard.c (record_char): Record `help-echo' input events
5162 in recent_keys only if they display some help. Don't record
5163 `help-echo' events as macro char.
5165 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5167 * editfns.c (save_excursion_restore): Don't move point
5168 in another window if it is showing the wrong buffer.
5169 Avoid the call to Fwindow_live_p, for speed.
5171 2000-12-04 Kenichi Handa <handa@etl.go.jp>
5173 * xfaces.c (struct font_name): New member registry_priority.
5174 (split_font_name): Initialize the above member to zero.
5175 (concat_font_list): New function.
5176 (font_list): Include fonts of all alternative registries.
5177 (FONT_POINT_SIZE_QUANTUM): New macro.
5178 (better_font_p): Ignore point size difference less than
5179 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
5181 * xterm.c (x_produce_glyphs): If a font for a component of
5182 a composition is not found, use 1 pixel dot ascent and 0 dot
5183 descent value to avoid displaying terribly tall empty boxes.
5185 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
5187 2000-12-03 Ken Raeburn <raeburn@gnu.org>
5189 * coding.h (code_convert_string1): Declare.
5191 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
5193 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
5195 2000-12-02 Jason Rumney <jasonr@gnu.org>
5197 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
5198 correctly for single byte character case.
5199 (w32_per_char_metric): Do not try to make any assumptions about
5200 the metrics of BDF fonts.
5201 (x_estimate_mode_line_height): If `mode-line' face
5202 hasn't a font, use that of the frame, as drawing glyphs does.
5203 (note_mouse_highlight): Change the cursor shape on the vertical
5204 border between windows [not enabled].
5206 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
5208 * w32fns.c (Fx_create_frame): Reintroduce the call to
5209 face-set-after-frame-defaults.
5210 (Vx_window_horizontal_drag_shape): New variable.
5211 (syms_of_xfns): DEFVAR_LISP it.
5212 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
5215 2000-12-02 Simon Josefsson <simon@josefsson.org>
5217 * fns.c (Fmd5): Use a different logic to decide the coding system
5220 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
5222 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
5224 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
5226 2000-12-01 Gerd Moellmann <gerd@gnu.org>
5228 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
5229 height for YNegative.
5230 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
5231 height; also see comment there.
5233 * window.c (coordinates_in_window): Handle computations for
5234 positions on the vertical bar and fringes differently for
5235 window-system frames. Consider some pixels near the vertical bar
5236 as on the bar if the frame doesn't have vertical scroll bars.
5237 Associate positions between mode or header lines with the
5238 right window, the left one.
5240 2000-12-01 Jason Rumney <jasonr@gnu.org>
5242 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
5244 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
5247 2000-12-01 Gerd Moellmann <gerd@gnu.org>
5249 * window.c (struct saved_window): Add members orig_top and orig_height.
5250 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
5251 (save_window_save, Fset_window_configuration): Save/restore
5252 window's orig_top and orig_height.
5254 2000-12-01 Jason Rumney <jasonr@gnu.org>
5256 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
5258 * w32fns.c (x_set_cursor_color): Fix last change.
5260 2000-11-30 Gerd Moellmann <gerd@gnu.org>
5262 * xdisp.c (echo_area_display): If cursor is in the echo area, make
5263 sure that the next redisplay displays the minibuffer, so that
5264 the cursor will be replaced with what the minibuffer wants.
5266 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
5267 #ifndef instead of using #if.
5268 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
5269 USE_TOOLKIT_SCROLL_BARS is defined.
5271 2000-11-30 Jason Rumney <jasonr@gnu.org>
5273 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
5276 2000-11-30 Gerd Moellmann <gerd@gnu.org>
5278 * fns.c (Fmd5): Doc fix.
5280 2000-11-30 Simon Josefsson <simon@josefsson.org>
5282 * fns.c (Fmd5): New function.
5283 (syms_of_fns): Defsubr md5.
5285 * Makefile.in (obj): Add md5.o
5287 2000-11-30 Gerd Moellmann <gerd@gnu.org>
5289 * md5.h, md5.c: New files, taken from glibc.
5291 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
5293 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
5294 hasn't a font, use that of the frame, as drawing glyphs does.
5296 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
5298 * eval.c (Frun_hooks): Allow 0 arguments.
5300 2000-11-29 Gerd Moellmann <gerd@gnu.org>
5302 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
5303 is over the menu bar widget, say it's not on the frame.
5305 * xfns.c (Fx_create_frame): Reintroduce the call to
5306 face-set-after-frame-defaults.
5308 * eval.c (Fsignal): Reset handling_signal.
5310 2000-11-28 Jason Rumney <jasonr@gnu.org>
5312 * w32menu.c (add_menu_item): Reset menu item text when changing
5313 type to radio button.
5315 2000-11-28 Gerd Moellmann <gerd@gnu.org>
5317 * xselect.c: Update copyright.
5319 * window.c (coordinates_in_window): If on a mode or header line,
5320 but sufficiently close to its start, return ``on vertical
5321 border''. This gives us a way to drag windows horizontally when
5322 using toolkit scroll bars.
5324 * xterm.c (note_mouse_highlight): Change the cursor shape
5325 on the vertical border between windows.
5327 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
5329 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
5330 (syms_of_xfns): DEFVAR_LISP it.
5331 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
5333 * textprop.c (text_read_only): New function.
5334 (verify_interval_modification): Use it instead of signaling
5335 `text-read-only'. This makes it easier to catch this error
5338 * xdisp.c (forward_to_next_line_start): Check for newlines,
5339 not end of line, which includes CR.
5341 2000-11-28 Kenichi Handa <handa@etl.go.jp>
5343 * coding.c (Ffind_coding_systems_region_internal): Be sure to
5344 include no-conversion.
5346 2000-11-27 Jason Rumney <jasonr@gnu.org>
5348 * w32fns.c (w32_load_system_font): Always mark font as double byte
5349 if codepage is unicode.
5351 2000-11-27 Gerd Moellmann <gerd@gnu.org>
5353 * xdisp.c (forward_to_next_line_start): If already on a newline,
5354 just consume it to avoid unintended skipping over invisible text below.
5356 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
5357 `vertical-line', `mode-line' and `header-line' events.
5359 * xdisp.c (try_window_id): Avoid starting to display in the middle
5360 of a character, a TAB for instance. This is easier than to set
5361 up the iterator exactly, and it's not a frequent case, so the
5362 additional effort wouldn't really pay off.
5364 2000-11-26 Andrew Choi <akochoi@i-cable.com>
5366 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
5369 2000-11-25 Jason Rumney <jasonr@gnu.org>
5371 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
5372 Args to window_from_coordinates should be pixel coordinates.
5374 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
5375 redisplay handles them properly.
5377 2000-11-25 Miles Bader <miles@gnu.org>
5379 * indent.c (compute_motion): Keep pos_byte in sync with pos.
5381 2000-11-24 Jason Rumney <jasonr@gnu.org>
5383 * w32.c (init_environment): Set LANG environment variable based on
5384 locale settings, if not set.
5386 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
5387 making tool bar smaller. When clearing the frame, also
5388 clear current matrices. Clear frame when tool bar disappears.
5389 Don't use more lines for the tool-bar than is available.
5390 (x_change_window_heights): New function.
5392 2000-11-24 Gerd Moellmann <gerd@gnu.org>
5394 * xdisp.c (init_from_display_pos): If POS says we're already after
5395 an overlay string ending at POS, make sure to pop the iterator
5396 because it will be in front of that overlay string. When POS is
5397 ZV, we've thereby also ``processed'' overlay strings at ZV.
5399 * xfaces.c (lface_from_face_name): Function comment fix.
5401 2000-11-24 Miles Bader <miles@gnu.org>
5403 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
5404 apply `mode-line-inverse-video' -- zero means force display using
5405 the default face, non-zero means display using the specialized face.
5406 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
5408 2000-11-23 Kenichi Handa <handa@etl.go.jp>
5410 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
5413 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
5415 * coding.c (decode_coding_emacs_mule): Fix the case of
5416 CODING_EOL_LF, which used uninitialized value of c.
5418 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
5420 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
5422 2000-11-22 Gerd Moellmann <gerd@gnu.org>
5424 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
5427 * frame.h (struct frame): Replace desired_tool_bar_items,
5428 current_tool_bar_items, n_desired_tool_bar_items,
5429 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
5431 * frame.c (make_frame): Change initialization of tool bar
5434 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
5435 Change references to members deleted from struct frame to use the
5438 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
5439 references to members deleted from struct frame to use the new ones.
5441 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
5443 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
5445 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
5446 (note_tool_bar_highlight): Change references to members deleted
5447 from struct frame to use the new ones.
5449 2000-11-23 Miles Bader <miles@gnu.org>
5451 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
5452 the face's inverse-video attribute, rather than overriding it.
5454 2000-11-22 Gerd Moellmann <gerd@gnu.org>
5456 * xfns.c (x_set_tool_bar_lines): Clear internal border when
5457 making tool bar smaller.
5459 2000-11-22 Dave Love <fx@gnu.org>
5461 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
5463 2000-11-22 Miles Bader <miles@gnu.org>
5465 * keyboard.c (Vminibuffer_message_timeout): New variable.
5466 (command_loop_1): Use it to determine message timeout.
5467 (syms_of_keyboard): Initialize it.
5469 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
5471 2000-11-22 Kenichi Handa <handa@etl.go.jp>
5473 * sysdep.c: Move the code for declaring h_errno after #include
5476 2000-11-21 Gerd Moellmann <gerd@gnu.org>
5478 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
5479 the menu bar when the tooltip is unmapped.
5481 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
5482 sole visible buffer when we're currently in the mini-buffer, and
5485 2000-11-21 Jason Rumney <jasonr@gnu.org>
5487 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
5488 put on the clipboard.
5489 (Fw32_get_clipboard_data): Compare data on clipboard with saved
5490 copy of what Emacs last put there. If they are the same, do not
5491 use the clipboard copy to avoid losing data due to coding conversions.
5493 2000-11-22 Miles Bader <miles@gnu.org>
5495 * minibuf.c (Vminibuffer_prompt_properties): New variable.
5496 (syms_of_minibuf): Initialize it.
5497 (read_minibuf): Add properties from Vminibuffer_prompt_properties
5498 to prompt, don't make read-only.
5500 2000-11-21 Gerd Moellmann <gerd@gnu.org>
5502 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
5503 Add BEFORE/AFTER_POTENTIAL_GC.
5505 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
5507 * buffer.c (mmap_free_1): Avoid a compiler warning.
5509 * term.c, cm.c: Don't try to include termcap.h; see comment there.
5511 2000-11-21 Kenichi Handa <handa@etl.go.jp>
5513 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
5516 2000-11-20 Gerd Moellmann <gerd@gnu.org>
5518 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
5521 * s/gnu-linux.h: Don't use `#cpu'.
5523 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
5524 not defined in mman.h.
5526 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
5527 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
5528 and store an index in the XClientMessageEvent. Storing a
5529 Lisp_Object or pointer can fail on a 64 bit system, since X only
5531 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
5533 2000-11-20 Dave Love <fx@gnu.org>
5535 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
5537 2000-11-20 Gerd Moellmann <gerd@gnu.org>
5539 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
5541 2000-11-20 Kenichi Handa <handa@etl.go.jp>
5543 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
5546 * alloc.c (make_string): Fix previous change. Be sure to make
5547 unibyte string correctly.
5549 2000-11-19 Gerd Moellmann <gerd@gnu.org>
5551 * window.c (Fwindow_list): Change parameter list to be XEmacs
5553 (window_list_1): New function.
5554 (window_loop): Use it instead of Fwindow_list.
5556 * sysdep.c (emacs_ospeed): New variable.
5557 (toplevel): Don't declare ospeed extern.
5558 (init_baud_rate): Use emacs_ospeed instead of ospeed.
5560 * termcap.c (ospeed): Remove.
5561 (tputs) [!emacs]: Remove unused code.
5562 (tgetent): Avoid a compiler warning.
5564 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
5565 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
5566 SCROLL_BAR_X_WIDGET with additional argument DPY.
5568 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
5570 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
5571 Take the X display as additional argument.
5572 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
5573 `Widget' is a pointer type that's not easily stored in Lisp_Object
5574 form in a portable way.
5576 * dispnew.c (update_text_area): Fix last change.
5578 2000-11-18 Gerd Moellmann <gerd@gnu.org>
5580 * xdisp.c: Use BINDING_STACK_SIZE throughout.
5582 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
5583 clear current matrices.
5585 * buffer.c (mmap_enlarge): Don't print a message on stderr
5586 if mapping new memory at the end of the existing region fails.
5588 * dispnew.c (update_text_area): Don't skip over equal glyphs
5589 when the last current glyph overlaps the glyph to its right.
5591 2000-11-18 Miles Bader <miles@gnu.org>
5593 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
5594 lines that *end* with "..." too (that's the most common case!).
5596 2000-11-18 Gerd Moellmann <gerd@gnu.org>
5598 * xdisp.c (resize_mini_window): Temporarily change to the
5599 mini-window's buffer if necessary.
5601 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
5602 the tooltip obscures less text under it.
5604 2000-11-17 Gerd Moellmann <gerd@gnu.org>
5606 * puresize.h (BASE_PURESIZE): Increase to 700000.
5608 2000-11-18 Jason Rumney <jasonr@gnu.org>
5610 * w32term.c (w32_draw_bitmap): Use face to set colors.
5612 2000-11-17 Dave Love <fx@gnu.org>
5614 * lread.c (Fload): Fix #ifdef for pcc.
5616 2000-11-17 Gerd Moellmann <gerd@gnu.org>
5618 * xdisp.c (pos_visible_p): Compute the default character height
5621 2000-11-16 Gerd Moellmann <gerd@gnu.org>
5623 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
5624 knowing the line's height; use the default font's height in that case.
5626 * xfaces.c (weight_table): Add `demi' with the same meaning as
5629 2000-11-16 Kenichi Handa <handa@etl.go.jp>
5631 * dispnew.c (null_row): New global static variable.
5632 (clear_glyph_row): Delete local static variable null_row.
5634 2000-11-15 Jason Rumney <jasonr@gnu.org>
5636 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
5637 (w32_alloc_lighter_color): Use new brightness calculations from
5638 xterm.c. Scale delta to be in the range expected by W32.
5639 (w32_draw_relief_rect): Use frame relief colors.
5641 2000-11-15 Gerd Moellmann <gerd@gnu.org>
5643 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
5644 (Qinhibit_default_face_x_resources): New variable.
5645 (syms_of_frame): Initialize it.
5646 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
5648 * xdisp.c (pos_visible_p): Improve function comment.
5650 * lisp.h (BINDING_STACK_SIZE): New macro.
5652 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
5653 reading the directory if readdir returns null and errno is EAGAIN
5656 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
5658 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
5659 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
5660 Set amount_to_scroll to max of dx and scroll_step so that
5661 scroll-conservatively doesn't defeat scroll-step>1.
5662 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
5663 scroll-conservatively for line-at-a-time scrolling.
5665 2000-11-14 Gerd Moellmann <gerd@gnu.org>
5667 * window.c (Fpos_visible_in_window_p): Call pos_visible with
5670 * xdisp.c (current_mode_line_height, current_header_line_height):
5672 (init_xdisp): Initialize them.
5673 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
5674 and use exact mode line heights if it is set.
5676 * lisp.h (pos_visible_p): Change prototype.
5678 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
5679 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
5680 and current_header_line_height first.
5681 (current_mode_line_height, current_header_line_height):
5684 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
5686 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
5687 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
5688 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
5690 2000-11-14 Miles Bader <miles@gnu.org>
5692 * xterm.c (x_alloc_lighter_color): Include an additive component
5693 too for dark colors, because FACTOR isn't enough.
5694 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
5697 2000-11-13 Gerd Moellmann <gerd@gnu.org>
5699 * keyboard.c (show_help_echo): Call message3_nolog with number of
5700 bytes in the help string as 2nd parameter, instead of the number
5703 2000-11-13 Miles Bader <miles@gnu.org>
5705 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
5706 (Fload): Use new openp return protocol.
5707 Don't try to use Vload_source_file_function to load .elc files.
5708 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
5709 openp return protocol.
5710 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
5712 2000-11-11 Kenichi Handa <handa@etl.go.jp>
5714 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
5716 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
5717 Defined these macros.
5718 (NLIST_STRUCT): Avoid re-defining it.
5720 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
5721 -I/usr/contrib/X11R6/include.
5722 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
5724 2000-11-10 Jason Rumney <jasonr@gnu.org>
5726 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
5728 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
5729 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
5731 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
5732 (Qw32_charset_vietnamese): New symbol.
5733 (xlfd_charset_of_font): New function.
5734 (w32_load_system_font): Use it.
5735 (x_to_w32_charset): Use Fassoc to find charset info. Special case
5736 when Vw32_charset_info_alist is nil to ensure default face always
5737 has font. Use Fcar and Fcdr for safety.
5738 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
5739 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
5740 pseudo-codepages for special cases.
5741 (w32_to_x_font): New parameter to allow charset portion to be
5742 specified where there is many to one mapping. Callers changed.
5743 (w32_list_fonts): Avoid listing fonts that won't display.
5745 2000-11-10 Gerd Moellmann <gerd@gnu.org>
5747 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
5748 (font_list_1): Renamed from font_list.
5749 (font_list): New function, trying alternative registries from
5750 Vface_alternative_font_registry_alist.
5751 (Finternal_set_alternative_font_registry_alist): New function.
5752 (syms_of_xfaces): Initialize and Staticpro
5753 Vface_alternative_font_registry_alist.
5754 Defsubr Finternal_set_alternative_font_registry_alist.
5756 2000-11-09 Ken Raeburn <raeburn@gnu.org>
5758 * lisp.h (Flooking_at): Declare.
5760 2000-11-09 Gerd Moellmann <gerd@gnu.org>
5762 * dired.c (directory_files_internal): Fix a braino.
5764 * dired.c (directory_files_internal): Add missing GCPRO's.
5767 2000-11-08 Gerd Moellmann <gerd@gnu.org>
5769 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
5770 (resize_mini_window): Return quickly if Vresize_mini_window is
5771 nil. Don't return if Vmax_mini_window_height is nil.
5773 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
5774 (syms_of_xdisp): Initialize them.
5775 (resize_mini_window): Act according to the setting of
5776 Vresize_mini_window.
5777 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
5779 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
5780 scroll bar widget after configuring it, so that it will appear at
5781 the right position from the start.
5782 (XTredeem_scroll_bar): Cleaned up.
5784 2000-11-08 Kenichi Handa <handa@etl.go.jp>
5786 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5787 font is taller than the frame line, we don't have to bias the
5790 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
5792 2000-11-07 Dave Love <fx@gnu.org>
5794 * config.in (HAVE_MKSTEMP): Add.
5796 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
5798 2000-11-07 Gerd Moellmann <gerd@gnu.org>
5800 * window.c (Fset_window_configuration): Don't try to preserve
5801 point in the current buffer, if that buffer is displayed in more
5804 * xfaces.c (lookup_named_face): If default face isn't realized,
5805 try to realize it. Return -1 if not successful.
5806 (Fx_list_fonts): Handle case that face cannot be determined.
5807 (Fface_font): Likewise.
5809 2000-11-06 Gerd Moellmann <gerd@gnu.org>
5811 * window.c (displayed_window_lines): Detect partially
5812 visible lines at the bottom correctly.
5814 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
5816 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
5817 when ensuring we don't do visit in indirect buffer.
5819 2000-11-06 Kenichi Handa <handa@etl.go.jp>
5821 * composite.h (compose_chars_in_text): Add prototype.
5823 * composite.c (Vcomposition_function_table): New variable.
5824 (Qcomposition_function_table): New variable.
5825 (run_composition_function): Call
5826 Vcompose_chars_after_function with three arguments.
5827 (compose_chars_in_text): New function.
5828 (syms_of_composite): Modified the doc-string of
5829 Vcompose_chars_after_function. Declare composition-function-table
5830 as a lisp variable, and initialize it.
5832 * xfns.c (x_encode_text): Suppress producing escape sequences for
5835 * xselect.c: Include composite.h.
5836 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
5838 2000-11-05 Andrew Innes <andrewi@gnu.org>
5840 * w32term.c (x_produce_glyphs): Fix typo in enum name.
5842 * sysdep.c (read_input_waiting): Remove extraneous argument to
5845 * w32fns.c (Fx_server_version): Include w32_build_number in the
5848 * w32heap.c (w32_build_number): New variable.
5849 (cache_system_info): Set it.
5851 * w32heap.h (w32_build_number): Add extern.
5853 * emacs.c (syms_of_emacs): Update docstring for
5854 system-configuration, to reflect the actual usage on MS-Windows.
5856 2000-10-31 Gerd Moellmann <gerd@gnu.org>
5858 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
5859 process idle timers while waiting for another event.
5861 * dispnew.c (update_frame_line): Handle case where spaces in
5862 the default face are colored.
5864 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
5865 window height hasn't changed.
5867 2000-10-31 Jason Rumney <jasonr@gnu.org>
5869 * w32term.c (x_produce_glyphs): Handle composite characters.
5870 (x_draw_glyph_string_foreground)
5871 (x_draw_composite_glyph_string_foreground): Restore old font.
5873 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
5875 * minibuf.c (read_minibuf): Reset the undo history just before
5876 starting the recursive-edit.
5878 2000-10-30 Gerd Moellmann <gerd@gnu.org>
5880 * xfaces.c (menu_face_change_count): New variable.
5881 (Finternal_set_lisp_face_attribute): Increment it for changes
5883 (realize_basic_faces): Reflect changes in the `menu' faces
5886 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
5887 dy obtained from the iterator's y-position after moving from
5888 scroll_margin_pos to PT; see comment there.
5890 * xdisp.c (safe_eval_handler): Call add_to_log.
5892 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
5893 is not a symbol or string.
5895 * xdisp.c (echo_area_display): Don't perform a display update from
5896 inside redisplay. The update will happen anyway at the end of
5897 redisplay, and it can confuse redisplay (GC messages while
5898 redisplaying, for instance.)
5900 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
5902 * xrdb.c (x_load_resources): Use the class name in the defaults.
5904 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
5905 (regex_compile): Catch bogus \(\1\).
5907 2000-10-30 Gerd Moellmann <gerd@gnu.org>
5909 * xterm.c (x_alloc_nearest_color): Fix last change to compare
5912 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
5913 we have a color cache, check that the cached color equals the
5914 allocated color. If not, clear the color cache.
5916 * window.c (displayed_window_lines): Change buffers if necessary.
5917 Fix computation of displayed lines.
5919 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
5920 update_menu_bindings to DEFVAR_BOOL.
5922 2000-10-30 Kenichi Handa <handa@etl.go.jp>
5924 * search.c (Fset_match_data): Be sure to make search_regs always sane.
5926 * puresize.h (BASE_PURESIZE): Increase to 680000.
5928 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
5930 2000-10-29 Jason Rumney <jasonr@gnu.org>
5932 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
5934 * w32term.c (w32_bdf_per_char_metric): Negate descent.
5935 (w32_cache_char_metrics): Handle possibility that 'x' does not
5936 exist in a BDF font.
5937 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
5939 * w32bdf.h (bdffont): Add nchars.
5941 * w32bdf.c (set_bdf_font_info): Set it.
5942 (w32_BDF_TextOut): Swap byte order of double byte characters.
5943 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
5945 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
5947 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
5948 don't override the colors in frame's param_alist, unless they are
5951 * term.c (reassert_line_highlight): If inverse_video is non-zero,
5952 reverse the effect of the highlight flag.
5954 2000-10-27 Ken Raeburn <raeburn@gnu.org>
5956 * window.h (Fwindow_live_p): Declare.
5958 * undo.c (record_delete): Check that last_undo_buffer is really a
5959 buffer before applying XBUFFER to it.
5961 * keymap.c (where_is_internal): Pass lisp object, not integer, to
5964 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
5966 * lisp.h (KEYMAPP): New macro.
5967 (get_keymap): Remove.
5968 (get_keymap_1): Rename get_keymap.
5970 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
5972 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
5974 * xmenu.c (single_submenu): Use KEYMAPP.
5975 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
5976 Use KEYMAPP rather than Fkeymapp.
5978 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
5980 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
5981 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
5982 Use KEYMAPP rather than Fkeymapp.
5983 (single_submenu): Use KEYMAPP.
5984 (w32_menu_show, w32_dialog_show): Use TRUE.
5986 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
5988 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
5989 (Fkeymapp): Use KEYMAPP.
5990 (get_keymap): Rename from get_keymap_1. Remove old def.
5991 Return t when autoload=0 and error=0 and the keymap needs autoloading.
5992 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
5993 (Fminor_mode_key_binding): Don't raise an error if the binding
5995 (Fuse_global_map, Fuse_local_map): Allow autoloading.
5996 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
5998 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
5999 Allow Vspecial_event_map to be autoloaded.
6000 (menu_bar_items): Fetch the keymap rather than using keymapp.
6001 (menu_bar_one_keymap): No need to follow func-indirect any more.
6002 (parse_menu_item): get_keymap_1 -> get_keymap.
6003 (tool_bar_items): Fetch the keymap rather than using keymapp.
6004 (read_key_sequence): Use KEYMAPP.
6006 * intervals.c (get_local_map): Use get_keymap rather than following
6007 function-indirections explicitly.
6009 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
6011 2000-10-27 Jason Rumney <jasonr@gnu.org>
6013 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
6014 point, as Windows has oversized fonts.
6016 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
6018 2000-10-27 Gerd Moellmann <gerd@gnu.org>
6020 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
6021 (freehook, reallochook): Handle null pointer arguments.
6022 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
6024 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
6026 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
6027 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
6028 Giving in to popular pressure to shut up the compiler with casts.
6030 2000-10-27 Gerd Moellmann <gerd@gnu.org>
6032 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
6033 signed value, and use a default value computed from the font's
6036 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
6038 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
6039 that specify a negative underline position can still use underlines.
6041 * window.c (Fpos_visible_in_window_p): Make POS default to
6042 WINDOW's point, not the current buffer's point.
6044 2000-10-26 Dave Love <fx@gnu.org>
6046 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
6047 when it's necessary.
6049 2000-10-26 Gerd Moellmann <gerd@gnu.org>
6051 * window.c (size_window): Compute size difference from sum of old
6052 child window sizes instead of from parent's size.
6054 * xdisp.c (pos_visible_p): Change current buffer if necessary.
6055 Handle obscured lines at the top of the window.
6057 * frame.c (Fdelete_frame): Doc fix. Move running the hook
6058 down after the last error condition check.
6060 * frame.c (Fdelete_frame): Run delete-frame-hook.
6062 2000-10-26 Kenichi Handa <handa@etl.go.jp>
6064 * coding.c (decode_coding): Fix previous change (check also
6065 CODING_MODE_LAST_BLOCK).
6067 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6069 * regex.c: More `unsigned char' -> `re_char' changes.
6070 Also change several `int' into `re_wchar_t'.
6071 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
6072 (PUSH_FAILURE_POINTER): Don't cast any more.
6073 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
6074 We want GCC to complain, since this piece of code makes
6075 re_match non-reentrant, which *should* be fixed.
6076 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
6077 (EXTEND_BUFFER): Use RETALLOC.
6078 (SET_LIST_BIT): Don't cast.
6079 (re_wchar_t): New type.
6080 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
6081 that those two functions will always properly return.
6082 (IMMEDIATE_QUIT_CHECK): Cast to void.
6083 (analyse_first): Use recursion rather than an explicit stack.
6084 (re_compile_fastmap): Can't fail anymore.
6085 (re_search_2): Don't check re_compile_fastmap for failure.
6086 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
6087 Now also sets the new value (passed in a new argument).
6088 (re_match_2_internal): Use it.
6089 Also, use a new var `reg' of type size_t when looping through regs
6090 rather than reuse the inappropriate `mcnt'.
6092 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
6093 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
6094 (where_is_internal): Renamed from Fwhere_is_internal.
6095 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
6096 (Fwhere_is_internal): New function wrapping where_is_internal.
6097 (where_is_internal_1): Handle the case where we're filling the cache.
6098 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
6100 2000-10-25 Miles Bader <miles@gnu.org>
6102 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
6104 2000-10-25 Gerd Moellmann <gerd@gnu.org>
6106 * window.c (pos_fully_visible_p): Removed.
6107 (Fpos_visible_in_window_p): Use pos_visible_p to determine
6108 if position is visible and/or fully visible.
6110 * lisp.h (pos_visible_p): Add prototype.
6112 * xdisp.c (pos_visible_p): New function.
6114 2000-10-25 Kenichi Handa <handa@etl.go.jp>
6116 * process.c (send_process): If OBJECT is t, it means that the data
6117 is from C string, but we should encode it. Before calling
6118 setup_raw_text_coding_system, be sure to flush out data by the
6119 previous coding system.
6121 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
6123 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
6124 assignment of startpos to prev when startpos == pos.
6126 * editfns.c (find_field): Set the field stickiness correctly from
6127 overlay fields. Use renamed `text_property_stickiness'.
6128 (text_property_stickiness): Renamed from `char_property_stickiness'.
6129 Only check text properties, not overlays.
6130 * textprop.c (get_char_property_and_overlay): New function.
6131 (Fget_char_property): Use it.
6132 * intervals.h (get_char_property_and_overlay): Add declaration.
6134 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6136 * keymap.c: Use AREF, ASET and ASIZE macros.
6137 (Fmake_sparse_keymap): Docstring fix.
6139 (shadow_lookup): Move up.
6140 Handle the case where lookup-key returns an integer.
6141 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
6142 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
6143 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
6144 Simplify/rewrite the keymap-finding code.
6145 Add check for command shadowing, using shadow_lookup.
6147 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
6149 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
6150 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
6153 2000-10-24 Andrew Innes <andrewi@gnu.org>
6155 * dired.c (directory_files_internal_unwind): New function.
6156 (directory_files_internal): Use it to ensure closedir is called
6157 even if expand-file-name or file-attributes throw, eg. because of
6158 a user interrupt. Also enable immediate_quit while calling
6159 re_search, so that matching can be interrupted as well.
6161 2000-10-24 Andrew Innes <andrewi@gnu.org>
6163 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
6165 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
6166 so that re_search functions only quit when callers expect them to.
6168 2000-10-24 Kenichi Handa <handa@etl.go.jp>
6170 * regex.c (regex_compile): Change the way of handling a range from
6171 a char less than 256 to a char not less than 256.
6173 2000-10-24 Gerd Moellmann <gerd@gnu.org>
6175 * window.c (size_window): Prevent setting window's width or
6176 height to a negative value (esp. with XSETFASTINT).
6178 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
6179 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
6180 (protect_malloc_state) [GC_MALLOC_CHECK &&
6181 GC_PROTECT_MALLOC_STATE]: New function.
6182 (PROTECT_MALLOC_STATE): New macro.
6183 (__malloc_initialize, morecore, _malloc_internal)
6184 (_free_internal) _realloc_internal): Use it to make _heapinfo
6185 read-only outside of gmalloc.
6187 * keymap.c: Update copyright.
6189 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
6192 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
6194 * filelock.c (unlock_all_files): Use unlock_file to expand each
6195 buffer's file_truename before trying remove its lock file.
6197 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
6199 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
6200 or CRLF, decode EOLs.
6202 2000-10-24 Kenichi Handa <handa@etl.go.jp>
6204 * window.c (Fdisplay_buffer): Fix doc.
6206 2000-10-23 Jason Rumney <jasonr@gnu.org>
6208 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
6209 ASCII font of default fontset on Windows.
6211 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
6212 xterm.c comment below).
6214 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
6216 2000-10-23 Gerd Moellmann <gerd@gnu.org>
6218 * xterm.c (x_connection_closed): Reset handling_signal.
6220 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
6222 2000-10-23 Miles Bader <miles@gnu.org>
6224 * window.c (window_scroll_pixel_based, window_scroll_line_based):
6225 Pass nil for FULLY argument to Fpos_visible_in_window_p to
6226 maintain old behavior.
6227 * minibuf.c (Fminibuffer_complete): Likewise.
6229 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
6231 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
6232 that when a font can't be exactly centered, it errs up rather than
6235 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
6237 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
6239 2000-10-23 Andrew Choi <akochoi@i-cable.com>
6241 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
6243 * dispnew.c [macintosh]: Include macterm.h.
6244 (init_display) [macintosh]: Initialization for window system.
6246 * emacs.c (main) [macintosh]: Call syms_of_textprop,
6247 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
6248 syms_of_search, x_term_init, and init_keyboard before calling
6249 init_window_once. Also, call syms_of_xmenu.
6251 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
6252 default fontset to Monaco.
6254 * frame.c [macintosh]: Include macterm.h. Remove declarations of
6255 NewMacWindow and DisposeMacWindow.
6256 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
6257 instead of calling NewMacWindow and setting fields of
6258 f->output_data.mac directly. Call init_frame_faces.
6259 (Fdelete_frame) [macintosh]: Remove unused code.
6260 (Fmodify_frame_parameters) [macintosh]: Call
6261 x_set_frame_parameters instead of mac_set_frame_parameters.
6263 * frame.h [macintosh]: Define menu_bar_lines field in struct
6264 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
6266 * keyboard.c [macintosh]: Include macterm.h.
6267 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
6268 and menu_bar_activate_event type events as for X and NT.
6269 (make_lispy_event) [macintosh]: Construct lisp events of type
6270 MENU_BAR_EVENT as for X and NT.
6272 * sysdep.c [macintosh]: Remove declaration for sys_signal.
6273 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
6274 (sys_subshell) [macintosh]: Remove definition entirely.
6275 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
6276 Vwindow_system_version here. Remove initialization of
6277 Vx_bitmap_file_path.
6278 (read_input_waiting): Correct the number of parameters passed to
6280 Move all Macintosh functions to mac/mac.c.
6282 * term.c [macintosh]: Include macterm.h.
6284 * window.c [macintosh]: Include macterm.h.
6286 * xdisp.c [macintosh]: Include macterm.h. Declare
6287 set_frame_menubar and pending_menu_activation.
6288 (echo_area_display) [macintosh]: Do not return if terminal frame
6289 is the selected frame.
6290 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
6291 Allow only the selected frame to set menu bar.
6292 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
6293 calling FRAME_EXTERNAL_MENU_BAR (f).
6294 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
6296 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
6297 and check_x. Declare XCreateGC. Define x_create_gc and
6298 x_free_gc. Initialize font_sort_order.
6299 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
6300 but call x_list_fonts instead of w32_list_fonts.
6301 (Finternal_face_x_get_resource) [macintosh]: Do not call
6302 display_x_get_resource.
6303 (prepare_face_for_display) [macintosh]: Set xgcv.font.
6304 (realize_x_face) [macintosh]: Load the font if it is specified in
6306 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
6308 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
6310 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
6311 is nil: since we go to the end of submap anyway, we'd end up
6313 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
6314 doesn't obey autoload.
6316 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6318 * msdos.c (dos_set_window_size): Update screen dimension variables.
6320 2000-10-21 Jason Rumney <jasonr@gnu.org>
6322 * w32term.c (w32_cache_char_metrics): Double check that font is
6323 really fixed pitch before trusting tmPitchAndFamily.
6325 2000-10-21 Andrew Innes <andrewi@gnu.org>
6327 * w32gui.h (w32_char_font_type): Move enum from w32term.c
6329 * w32term.h: Extern decl for w32_cache_char_metrics.
6331 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
6333 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
6334 (w32_unload_font): Free per_char array if present.
6336 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
6337 cached information in emulated XFontStruct to handle common cases
6338 quickly. Do not allocate XCharStruct for return.
6339 (w32_native_per_char_metric): New function.
6340 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
6342 (x_produce_glyphs): Don't get an HDC. Change calls to
6343 w32_per_char_metric to match arg change above. Remove calls to
6345 (w32_get_glyph_overhangs): Ditto.
6346 (w32_cache_char_metrics): New function.
6348 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
6349 ($(BLD)/casefiddle.$(O)): Remove compile command.
6350 ($(BLD)/gmalloc.$(O)): Remove compile command.
6351 ($(BLD)/dispnew.obj):
6352 ($(BLD)/keyboard.obj):
6353 ($(BLD)/w32inevt.obj):
6354 ($(BLD)/w32bdf.obj):
6356 ($(BLD)/buffer.obj):
6357 ($(BLD)/editfns.obj):
6359 ($(BLD)/fileio.obj):
6361 ($(BLD)/indent.obj):
6362 ($(BLD)/insdel.obj):
6363 ($(BLD)/intervals.obj):
6364 ($(BLD)/minibuf.obj):
6366 ($(BLD)/scroll.obj):
6367 ($(BLD)/sysdep.obj):
6368 ($(BLD)/textprop.obj):
6369 ($(BLD)/widget.obj):
6370 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
6371 ($(BLD)/term.obj): Add dependency on dispextern.h.
6373 * makefile.nt ($(BLD)\dispnew.obj):
6374 ($(BLD)\keyboard.obj):
6375 ($(BLD)\w32inevt.obj):
6376 ($(BLD)\w32bdf.obj):
6378 ($(BLD)\buffer.obj):
6379 ($(BLD)\editfns.obj):
6381 ($(BLD)\fileio.obj):
6383 ($(BLD)\indent.obj):
6384 ($(BLD)\insdel.obj):
6385 ($(BLD)\intervals.obj):
6386 ($(BLD)\minibuf.obj):
6388 ($(BLD)\scroll.obj):
6389 ($(BLD)\sysdep.obj):
6390 ($(BLD)\textprop.obj):
6391 ($(BLD)\widget.obj):
6392 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
6393 ($(BLD)\term.obj): Add dependency on dispextern.h
6395 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6397 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
6398 with an additional argument of Qt.
6400 2000-10-21 Miles Bader <miles@gnu.org>
6402 * window.c (pos_fully_visible_in_window_p): New function.
6403 (Fpos_visible_in_window_p): Add FULLY argument.
6404 Use pos_fully_visible_in_window_p.
6405 (window_scroll_pixel_based, window_scroll_line_based): Update
6406 calls to Fpos_visible_in_window_p.
6407 * lisp.h (Fpos_visible_in_window_p): Update prototype
6409 2000-10-20 Gerd Moellmann <gerd@gnu.org>
6411 * alloc.c (toplevel): Conditionalize compilation of mem_*
6412 functions differently.
6414 2000-10-20 Jason Rumney <jasonr@gnu.org>
6416 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
6417 mem_init where it used to be. mem_z etc not defined otherwise.
6419 2000-10-20 Gerd Moellmann <gerd@gnu.org>
6421 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
6423 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
6424 structure definition and related variabled to the top of the file.
6425 Include this code when GC_MALLOC_CHECK is defined.
6426 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
6427 register/unregister allocated region.
6428 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
6429 which isn't allocated.
6430 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
6431 something which is already in use.
6432 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
6433 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
6434 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
6435 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
6437 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
6438 _malloc_internal instead of malloc.
6439 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
6442 2000-10-20 Andrew Innes <andrewi@gnu.org>
6444 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
6446 (my_strftime) <macro>: Don't use macro arg list when redefining as
6448 (my_strftime) <function>: Supply 0 as ut argument.
6450 2000-10-19 Jason Rumney <jasonr@altavista.net>
6452 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
6453 including dispextern.h, as it stops faces from working.
6455 * w32fns.c (Fx_create_frame): Don't bother calling
6456 face-set-after-frame-default since the caller does it for us
6457 anyway. Clean up calls to x_get_arg to be consistent with X.
6459 * w32term.c (x_produce_glyphs): Handle
6460 unibyte_display_via_language_environment correctly.
6461 (w32_draw_box_rect): Fix the calculation of width and height.
6463 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
6464 as it has stopped working.
6465 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
6468 2000-10-19 Gerd Moellmann <gerd@gnu.org>
6470 * eval.c (skip_debugger): Prevent a compiler warning.
6471 (Fcondition_case): Likewise.
6472 (Fbacktrace_frame): Use a null interactive spec.
6474 2000-10-19 Kenichi Handa <handa@etl.go.jp>
6476 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
6478 2000-10-18 Gerd Moellmann <gerd@gnu.org>
6480 * strftime.c: Sync with glibc, file version 1.78.
6481 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
6482 should no longer be used according to ISO 8601.
6484 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
6485 no map for meta_prefix_char, don't try to use it as a keymap.
6486 Instead, if T_OK is non-zero, look up a default binding, if any,
6487 otherwise, if T_OK is zero, return nil.
6489 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
6490 (x_to_xcolors, png_load): Use x_query_color.
6492 * xterm.c (x_color_cells, x_query_colors, x_query_color):
6494 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
6496 (x_copy_color, x_alloc_lighter_color): Likewise.
6498 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
6499 (x_query_color, x_query_colors): Add prototype.
6501 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
6502 check_string_bytes only if not noninteractive, increase count to 50.
6504 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
6506 * insdel.c (adjust_markers_for_delete): Handle before-insertion
6509 2000-10-17 Gerd Moellmann <gerd@gnu.org>
6511 * alloc.c (pure_bytes_used): Renamed from pureptr.
6513 (pure_alloc): New function.
6514 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
6516 (Fpurecopy): Use PURE_POINTER_P.
6518 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
6519 PT has moved backward.
6521 * xdisp.c (cursor_row_p): Take continued lines into account.
6523 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
6525 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
6526 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
6527 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
6530 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
6531 of selective display off while searching for the next line start.
6533 2000-10-17 Kenichi Handa <handa@etl.go.jp>
6535 * Makefile.in (term.o): Depend on dispextern.h.
6537 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
6539 * keymap.c (keymap_memberp): Ensure that nil is not a member.
6541 2000-10-16 Gerd Moellmann <gerd@gnu.org>
6543 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
6544 the iterator at the beginning, so that they can be set later on,
6545 for instance in reseat_at_next_visible_line_start, without being
6548 * xfns.c (pbm_format): Add :foreground and :background keywords.
6549 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
6550 (xbm_load): Recognize foreground and background color specifications.
6552 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
6554 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
6556 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
6558 * msdos.c (IT_set_face): Compare highlighted face with the default
6559 face, and invert colors if these faces' colors are identical.
6560 (Fmsdos_remember_default_colors): Don't swap foreground and
6561 background colors in initial_colors[].
6562 (IT_set_frame_parameters): Don't swap frame's foreground and
6563 background pixels. If ALIST includes "(reverse . t)", swap
6564 foreground-color and background-color properties in frame's
6565 param_alist. If the original frame's param_alist doesn't specify
6566 the colors, store unspecified-fg and unspecified-bg, reversed if
6569 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
6570 the colors are unspecified and reversed, reverse fore- and back-
6571 ground in the returned value.
6572 (Fframe_parameter): Ditto.
6574 2000-10-16 Gerd Moellmann <gerd@gnu.org>
6576 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
6577 get_last_unchanged_at_beg_row.
6578 (find_first_unchanged_at_end_row): Renamed from
6579 get_first_unchanged_at_end_row.
6580 (find_first_unchanged_at_end_row): Convert assertions to
6581 unconditional tests which abort. When looking for a row in
6582 unchanged text, don't go further back than first_text_row.
6584 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
6585 Don't add in the last line's height when deciding if the new
6586 position is below the scroll margin.
6588 2000-10-16 Miles Bader <miles@gnu.org>
6590 * editfns.c (Fconstrain_to_field): Check carefully for field
6591 boundaries if either OLD_POS or NEW_POS has a non-nil field
6592 property, even if they're the same.
6594 2000-10-16 Kenichi Handa <handa@etl.go.jp>
6596 * xterm.c (x_draw_box_rect): Fix the calculation of width and
6597 height for XFillRectangle.
6599 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
6601 * syntax.c (Fstring_to_syntax): New function extracted from
6602 Fmodify_syntax_entry.
6603 (Fmodify_syntax_entry): Use it and document the ! and | fences.
6604 (skip_chars, Fforward_comment): Remove unused variables.
6605 (syms_of_syntax): Add defsubr for string-to-syntax.
6606 (describe_syntax): Add code for comment and string fences.
6608 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
6610 * keymap.c (access_keymap): Add AUTOLOAD parameter.
6611 Do the meta->esc mapping. Call get_keyelt before returning.
6612 Start scanning from the second element (the first is always `keymap')
6613 to make it easier to detect when we reach a parent map.
6614 Handle the case of inheriting from a symbol whose function is a map.
6615 (Fkeymap_parent): Also handle the `inherit from symbol' case.
6616 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
6617 (get_keyelt, Flookup_key): Update call to access_keymap.
6618 Remove the meta->esc mappings.
6619 (define_as_prefix): Delete old disabled code.
6620 (menu_item_p): New function.
6621 (where_is_internal_1): Skip over the few remaining menu items.
6622 * lisp.h (access_keymap): Update prototype.
6623 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
6624 Update call to access_keymap.
6625 (follow_key, read_key_sequence): Update calls to access_keymap.
6626 Remove the meta->esc mappings.
6628 2000-10-13 Gerd Moellmann <gerd@gnu.org>
6630 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
6631 with additional argument.
6633 * xdisp.c (cursor_row_p): New function.
6634 (try_cursor_movement, display_line): Use it.
6636 * xdisp.c (append_space): Also save/restore iterator's current
6637 character and its length.
6639 * xdisp.c (init_from_display_pos): Add an assertion.
6640 (handle_stop): Don't set iterator's add_overlay_start.
6641 (handle_invisible_prop): Likewise.
6642 (load_overlay_strings): If text under an overlay is invisible,
6643 take both before- and after-strings into account when the iterator
6644 is positioned either at the start or at the end of the overlay.
6645 (forward_to_next_line_start): Rewritten.
6646 (reseat_at_next_visible_line_start): Rewritten.
6647 (set_iterator_to_next): Add parameter RESEAT_P.
6649 * dispextern.h (struct it): Remove member add_overlay_start.
6650 (set_iterator_to_next): Change prototype.
6652 2000-10-13 Kenichi Handa <handa@etl.go.jp>
6654 * coding.c (code_convert_region): Be sure to initialize
6655 coding->category_idx.
6656 (decode_coding_string): Set coding->src_multibyte and
6657 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
6658 (encode_coding_string): Set coding->src_multibyte and
6659 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
6661 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
6663 * xfns.c (Fx_create_frame): Don't bother calling
6664 face-set-after-frame-default since the caller does it for us anyway.
6666 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
6668 * window.c (coordinates_in_window): Fix detection of vertical line
6669 on character terminals.
6671 2000-10-12 Gerd Moellmann <gerd@gnu.org>
6673 * editfns.c (save_excursion_save): Additionally record the
6675 (save_excursion_restore): If buffer was visible in a window, and a
6676 different window was selected, and the old selected window is
6677 still live, restore point in that window.
6679 2000-10-12 Kenichi Handa <handa@etl.go.jp>
6681 * xterm.c (x_produce_glyphs): Handle
6682 unibyte_display_via_language_environment correctly.
6684 * regex.c (regex_compile): Change the way of handling a range from
6685 unibyte char to multibyte char.
6687 * syntax.c (skip_chars): Change the way of handling a range from
6688 unibyte char to multibyte char.
6690 * process.c (read_process_output): Cancel previous change.
6692 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
6694 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
6696 * charset.c (Ffind_charset_string): Doc fix.
6697 (Ffind_charset_region): Doc fix.
6699 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
6701 * process.c (read_process_output): Fix previous change. Adjust
6702 multibyteness of text to insert in a buffer by
6703 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
6705 2000-10-10 Andreas Schwab <schwab@suse.de>
6707 * alloc.c (mark_object): Remove all workarounds installed on
6710 2000-10-10 Kenichi Handa <handa@etl.go.jp>
6712 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
6713 (base64_encode_1): Make it work for a text of multibyte form.
6714 (Fbase64_decode_region): Allocate sufficient memory for multibyte
6715 case. Don't call str_to_multibyte because base64_decode_1
6716 produces correct multibyte form for eight-bit codes.
6717 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
6718 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
6719 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
6722 * charset.h (CHAR_STRING): Optimized for single byte characters.
6724 2000-10-09 Andreas Schwab <schwab@suse.de>
6726 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
6727 -1 after socket is closed, to fall through to error processing.
6729 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
6731 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
6732 variables. If ALIST includes foreground-color or
6733 background-color, change also the colors of the default face for
6736 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
6738 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
6739 them extern (they are defined on xfaces.c).
6740 (syms_of_msdos): Don't intern and don't staticpro
6741 Qbackground_color and Qforeground_color.
6743 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
6745 * frame.c (Fframe_parameter): For non-windowed frames, if
6746 f->param_alist says foreground or background color is unspecified,
6747 call tty_color_name to return the color name computed from the
6748 frame's current colors.
6750 2000-10-06 Dave Love <fx@gnu.org>
6752 * terminfo.c (ospeed): Don't declare.
6754 * sysdep.c: Don't include string.h.
6755 (h_errno): Declare conditional also on TRY_AGAIN.
6757 * charset.c (Ffind_charset_string): Doc fix.
6759 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
6760 (Fbase64_decode_region, Fbase64_decode_string): More explicit
6763 2000-10-05 Dave Love <fx@gnu.org>
6765 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
6766 position like menu-bar.
6768 2000-10-05 Gerd Moellmann <gerd@gnu.org>
6770 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
6772 * xdisp.c (handle_single_display_prop): Use safe_call1.
6773 (safe_call): Renamed from call_function.
6774 (safe_call1): New function.
6775 (handle_fontified_prop): Use safe_call1 instead of call1.
6776 (safe_eval): Renamed from eval_form.
6777 (safe_eval_handler): Renamed from eval_handler.
6778 (handle_single_display_prop, display_mode_element): Use safe_eval
6779 instead of eval_form.
6781 * xfaces.c (merge_face_heights): Use safe_call instead of
6784 * keyboard.c (show_help_echo): Use safe_call instead of
6785 call_function; use safe_eval instead of eval_form.
6787 * lisp.h (safe_call): Renamed from call_function.
6788 (safe_eval): Renamed from eval_form.
6789 (safe_call1): Add prototype.
6791 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
6793 * xfns.c (image_ascent): Rearrange ascent calculation for the
6796 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
6798 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
6799 (where_is_internal_1): Don't bother ignoring menu-items any more.
6801 2000-10-04 Gerd Moellmann <gerd@gnu.org>
6803 * keyboard.c (update_menu_bindings): New variable.
6804 (parse_menu_item): Use AREF. If update_menu_bindings
6805 is 0, don't update menu bindings.
6806 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
6808 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
6810 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
6813 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
6815 * syntax.c (forw_comment): Match nestedness of ender/starter.
6816 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
6817 (prev_char_comstart_first): Remove.
6818 (back_comment): Check two-char comment markers more carefully
6819 to better handle overlapping cases like *//* or /* */* */ ...
6820 Match nestedness of ender/starter.
6822 2000-10-02 Dave Love <fx@gnu.org>
6824 * config.in (HAVE_GAI_STRERROR): Add undef.
6826 * process.c (Fopen_network_stream): Use it.
6828 * m/alpha.h (NO_REMAP): Don't define.
6830 2000-10-02 Gerd Moellmann <gerd@gnu.org>
6832 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
6833 return with a string converted to an integer or vice versa when
6834 Vmocklisp_arguments is t.
6835 (Fsignal): Likewise. The function can return for `quit'.
6836 (struct gcpro): Declare member `var' to point to a volatile
6839 * eval.c (error): Prevent compiler warning.
6841 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
6843 * keymap.c (keymap_memberp): New function.
6844 (Fset_keymap_parent): Use it.
6845 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
6846 Use keymap_memberp to avoid creating cycles.
6847 (access_keymap): Use KEYMAPP.
6849 2000-09-30 Gerd Moellmann <gerd@gnu.org>
6851 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
6852 gai_strerror. Make sure xerrno is set if connect fails. Improve
6855 2000-09-29 Jason Rumney <jasonr@gnu.org>
6857 * w32term.c (w32_char_font_type, w32_encode_char)
6858 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
6859 (w32_bdf_per_char_metric): New function.
6860 (w32_per_char_metric): Use it.
6861 (x_draw_glyph_string_background): Always draw background for BDF
6864 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
6865 GDI object which is a scarce resource.
6867 * w32bdf.c (search_file_line): Fix skipping of whitespace.
6868 (get_quoted_string): Fix limit on memchr search.
6869 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
6870 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
6871 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
6872 (get_cached_font_char, cache_char_offset): Use macro
6873 BDF_CODEPOINT_RANGE_COVER_P.
6874 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
6875 (clear_cached_bitmap_slots): New function.
6876 (GET_HEX_VALUE): G-Z, g-z are not hex.
6877 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
6878 (get_bitmap_with_cache): Use new cache implementation.
6879 (create_offscreen_bitmap): New function.
6880 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
6882 * w32term.c (x_produce_glyphs): If the distance from the current
6883 position to the next tab stop is less than a canonical character
6884 width, use the tab stop after that.
6885 (x_draw_glyphs): Handle case START and END are out of bounds more
6887 (x_clear_mouse_face): Block/unblock input.
6888 (x_display_and_set_cursor): Don't show a hollow box cursor for
6889 buffers whose cursor_type is nil.
6891 2000-09-29 Gerd Moellmann <gerd@gnu.org>
6893 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
6895 * dispextern.h (updating_frame): Declare extern.
6897 2000-09-29 Andreas Schwab <schwab@suse.de>
6899 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
6901 2000-09-29 Gerd Moellmann <gerd@gnu.org>
6903 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
6904 use its function definition.
6905 (tool_bar_items): Likewise.
6907 * lisp.h (fatal): Declare NO_RETURN.
6909 2000-09-29 Kenichi Handa <handa@etl.go.jp>
6911 * keymap.c: Remove the line "#undef NULL".
6913 2000-09-28 Gerd Moellmann <gerd@gnu.org>
6915 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
6917 2000-09-28 Dave Love <fx@gnu.org>
6919 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
6921 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
6923 * .gdbinit (xreload): Note its need on GNU/Linux.
6925 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
6926 r_alloc, r_alloc_free.
6928 2000-09-28 Kenichi Handa <handa@etl.go.jp>
6930 * syntax.c (skip_chars): Handle negation correctly.
6932 2000-09-27 Gerd Moellmann <gerd@gnu.org>
6934 * xfaces.c (realize_default_face): Call set_lface_from_font_name
6935 with non-zero FORCE_P argument.
6937 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
6940 * xdisp.c (window_box_height): Add an assertion.
6942 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
6943 tool-bar than is available.
6944 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
6946 2000-09-27 Dave Love <fx@gnu.org>
6948 * s/irix6-5.h: Now works 64-bit. Tidied.
6950 2000-09-26 Gerd Moellmann <gerd@gnu.org>
6952 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
6953 instead of BITS_PER_INT.
6954 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
6955 EMACS_UINT, respectively.
6956 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
6958 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
6960 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
6962 * window.c (freeze_window_starts): Construct last argument for
6963 foreach_window differently.
6965 * xfns.c (x_decode_color): Don't return a Lisp_Object.
6967 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
6968 EMACS_UINT instead of `int' and `unsigned int'.
6969 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
6971 * frame.h (struct frame): Make the `nothing' member of union
6972 output_data an EMACS_INT.
6974 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
6975 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
6976 size in the sdata structure.
6977 (SDATA_NBYTES, SDATA_DATA): New macros.
6978 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
6979 differently for the different layout of the sdata structure.
6980 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
6982 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
6983 Check that size recorded in the string size and size recorded in
6984 the sdata structure agree.
6986 2000-09-25 Dave Love <fx@gnu.org>
6988 * buffer.c: Include stdio.h.
6990 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
6992 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
6994 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
6995 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
6996 (__malloc_extra_blocks): Declare as __malloc_size_t.
6998 2000-09-25 Gerd Moellmann <gerd@gnu.org>
7000 * alloc.c (mark_image): Use GC_NILP instead of NILP.
7002 * keyboard.c (show_help_echo): Set help_echo_showing_p.
7003 (read_char): If help-echo is showing, preserve the echo area
7006 * xdisp.c (help_echo_showing_p): New variable.
7007 (set_message): Reset it to 0.
7008 (init_xdisp): Initialize help_echo_showing_p.
7010 * dispextern.h (help_echo_showing_p): Declare extern.
7012 * config.in: Fix typo in __GNUC_MINOR__.
7014 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
7016 * s/freebsd.h (POSIX_SIGNALS): Define.
7018 * xterm.c (x_clear_mouse_face): Block/unblock input.
7020 2000-09-24 Dave Love <fx@gnu.org>
7022 * fns.c (base64_encode_1): Fix last change.
7024 2000-09-22 Gerd Moellmann <gerd@gnu.org>
7026 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
7028 * xdisp.c (try_window_reusing_current_matrix): More fixes
7029 for the case window has a header-line.
7031 2000-09-22 Dave Love <fx@gnu.org>
7033 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
7036 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
7038 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
7040 2000-09-21 Gerd Moellmann <gerd@gnu.org>
7042 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
7045 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
7048 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
7049 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
7050 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
7053 * marker.c (byte_char_debug_check): Return void.
7055 * xfns.c (Fx_create_frame): Set default frame parameter value
7056 for tool-bar-lines to 1.
7058 * dispnew.c (scrolling_window): Compare y-positions of rows
7059 equal at the start. Some simplification.
7061 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
7062 reused rows' y-position in the case window has a header-line, and
7063 new window start is greater than old window start.
7065 * process.c (process_sent_to): New variable.
7066 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
7067 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
7068 Declare more parameters volatile.
7070 * lread.c (Vrecursive_load_depth_limit): New variable.
7071 (Fload): Check recursive loads whose recursion depth exceeds
7072 Vrecursive_load_depth_limit.
7073 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
7075 2000-09-20 Gerd Moellmann <gerd@gnu.org>
7077 * fileio.c (Fread_file_name): Doc fix.
7079 * editfns.c (Fmessage_or_box): Doc fix.
7081 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
7083 * xfns.c (xbm_scan): Allow C-style comments.
7085 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
7086 symbols are specified, add color translations to the cache.
7087 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
7088 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
7090 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
7091 structures to xpm_init_color_cache.
7093 2000-09-19 Gerd Moellmann <gerd@gnu.org>
7095 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
7097 2000-09-19 Andrew Innes <andrewi@gnu.org>
7099 * makefile.nt (bootstrap-emacs): Don't change directory.
7101 2000-09-19 Kenichi Handa <handa@etl.go.jp>
7103 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
7105 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
7106 If output buffer is too small, signal an appropriated error.
7108 2000-09-18 Dave Love <fx@gnu.org>
7110 * keyboard.c (menu_bar_items, tool_bar_items)
7111 (current_active_maps): Remove redundant get_local_map call.
7113 2000-09-18 Gerd Moellmann <gerd@gnu.org>
7115 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
7116 cursor for buffers whose cursor_type is nil.
7118 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
7119 a feature to implement that is already implemented.
7120 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
7123 * xfns.c (x_clear_image_1): New function.
7124 (x_clear_image): Use it.
7125 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
7127 * dispnew.c (update_window): Move test for invisible lines
7128 at the top to update_window_line.
7129 (update_window_line): Handle invisible lines here.
7131 * xfns.c (clear_image_cache): Clear current matrices of all
7132 frames sharing an image cache. Block input while freeing
7133 images. Fix timestamp comparison.
7134 (x_clear_image): Also free the mask.
7136 * xfns.c (lookup_image): Block input while loading the image so
7137 that we won't get interrupted in a state where the image isn't yet
7139 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
7140 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
7141 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
7142 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
7144 2000-09-16 Gerd Moellmann <gerd@gnu.org>
7146 * dispnew.c (update_window): Make sure to make desired rows
7147 current even if they are completely invisible at the top
7150 2000-09-15 Gerd Moellmann <gerd@gnu.org>
7152 * xfns.c (lookup_image): Build mask before applying an algorithm.
7153 Recognize algorithm `disabled'.
7154 (cross_disabled_images): New variable.
7155 (COLOR_INTENSITY): New macro.
7156 (x_detect_edges): Use COLOR_INTENSITY.
7157 (x_disable_image): New function.
7158 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
7160 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
7161 disabled state, don't apply an image transformation algorithm if
7162 the user specified an image for the disabled state. Use
7163 `:algorithm disabled' for creating a disabled item's image if the
7164 user hasn't specified an image.
7166 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
7167 allocation functions with the XPM lib.
7168 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
7169 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
7170 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
7171 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
7172 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
7173 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
7174 functions, if possible, because these handle color allocation
7175 failure more gracefully.
7176 (Fimage_mask_p): New function.
7178 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
7179 (Qedge_detection, Qheuristic): New symbols.
7180 (syms_of_xfns): Initialize new symbols.
7181 (lookup_image): Handle `:mask X', `:algorithm emboss', and
7182 `algorithm (edge-detection ...)'.
7183 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
7184 (tiff_format, gif_format, gs_format): Add `:mask'.
7185 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
7186 (GIF_MASK, GS_MASK): New enumerators.
7187 (x_laplace_read_row, x_laplace_write_row): Functions removed.
7188 (emboss_matrix, laplace_matrix): New variables.
7189 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
7190 (x_edge_detection): New functions.
7191 (x_laplace): Rewritten in terms of x_detect_edges.
7192 (x_build_heuristic_mask): If image has a mask, free it.
7194 2000-09-14 Andrew Innes <andrewi@gnu.org>
7196 * makefile.w32-in: Revert to Unix line endings.
7198 2000-09-14 Andrew Innes <andrewi@gnu.org>
7200 * makefile.w32-in: Standardize indentation somewhat.
7201 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
7202 cater for differences between shells.
7204 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
7206 2000-09-14 Gerd Moellmann <gerd@gnu.org>
7208 * xterm.c (x_produce_glyphs): If the distance from the current
7209 position to the next tab stop is less than a canonical character
7210 width, use the tab stop after that.
7212 2000-09-14 Dave Love <fx@gnu.org>
7214 * buffer.c (alloc_buffer_text): Fix xmalloc call.
7216 2000-09-14 Gerd Moellmann <gerd@gnu.org>
7218 * xdisp.c (handle_fontified_prop): While running fontification
7219 functions, bind `fontification-functions' and
7220 `after-change-functions' to nil.
7222 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
7223 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
7225 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
7227 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
7228 USE_MMAP_FOR_BUFFERS.
7230 * insdel.c (make_gap): Use enlarge_buffer_text.
7232 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
7233 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
7234 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
7235 from former r_alloc_* functions in ralloc.c.
7236 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
7237 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
7238 (mmap_init) [REL_ALLOC_MMAP]: New function.
7239 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
7240 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
7243 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
7244 (enlarge_buffer_text): Add prototype.
7246 * ralloc.c: Remove everything having to do with the use of mmap.
7248 2000-09-13 Gerd Moellmann <gerd@gnu.org>
7250 * sound.c (Fplay_sound): Doc fix.
7252 * keyboard.c: Avoid some more compiler warnings.
7253 (parse_tool_bar_item): Ignore cached key bindings.
7255 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
7256 and allocation of Lisp data.
7258 2000-09-12 Gerd Moellmann <gerd@gnu.org>
7260 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
7261 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
7264 * lread.c (Fload): Put code checking for recursive loads in #if 0.
7266 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
7268 * ccl.c: Comment fixed.
7269 (MAX_MAP_SET_LEVEL): Increased to 30.
7270 (PUSH_MAPPING_STACK): Enclose with do-while block.
7271 (POP_MAPPING_STACK): Likewise.
7272 (stack_idx_of_map_multiple): New variable.
7273 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
7274 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
7275 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
7276 (ccl_driver) <CCL_MapSingle>: Likewise.
7277 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
7278 with the case where looking up process reaches to the end of
7279 map-set, and call CCL programs as the above change.
7281 2000-09-11 Gerd Moellmann <gerd@gnu.org>
7283 * xfns.c (png_load, jpeg_load): Declare some variables volatile
7284 that might be clobbered by longjmp.
7285 (check_x_display_info, x_decode_color, create_frame_xic)
7286 (Fx_display_backing_store, Fx_display_visual_class)
7287 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
7289 * lread.c (init_lread): Set Vloads_in_progress to nil.
7290 (Fload): Show list of recursively loaded files, when signaling an
7293 * lread.c (Vloads_in_progress): New variable.
7294 (record_load_unwind): New function.
7295 (Fload): Check for recursive loads.
7296 (syms_of_lread): Initialize Vloads_in_progress.
7297 (read_integer, read1): Avoid some compiler warnings.
7299 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
7302 2000-09-11 Miles Bader <miles@gnu.org>
7304 * editfns.c (Fbuffer_string): Doc fix.
7306 2000-09-10 Gerd Moellmann <gerd@gnu.org>
7308 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
7310 2000-09-09 Ken Raeburn <raeburn@gnu.org>
7312 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
7313 whether to include other header files.
7315 2000-09-09 Gerd Moellmann <gerd@gnu.org>
7317 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
7318 by Fmemq as a boolean.
7320 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
7322 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
7324 2000-09-08 Gerd Moellmann <gerd@gnu.org>
7326 * ralloc.c (mmap_fd): Remove initializer which can make it
7327 read-only in a dumped Emacs.
7328 (mmap_fd_1): New variable.
7329 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
7330 restore it from there.
7331 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
7332 unconditionally so that mmap_fd can be initialized there.
7333 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
7334 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
7335 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
7337 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
7339 * xdisp.c (dump_glyph_row): Fix printf format string.
7340 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
7342 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
7344 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
7347 * xdisp.c (try_window_id): When trying to locate cursor in
7348 unchanged rows at the top, handle the case that we can't find it.
7350 * xterm.c (x_draw_glyphs): Handle case START and END are out
7351 of bounds more carefully.
7353 2000-09-08 Dave Love <fx@gnu.org>
7355 * s/sol2.h (REL_ALLOC_MMAP): Define.
7356 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
7358 * ralloc.c: Don't include string.h (redundant).
7359 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
7360 [!MAP_ANON]: Include fcntl.h.
7361 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
7362 (r_alloc, r_re_alloc, r_alloc_free)
7363 (mmap_enlarge, mmap_set_vars): Use it.
7364 (r_alloc_init_fd): New function.
7365 (__morecore) [SYSTEM_MALLOC]: Don't declare.
7366 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
7369 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
7372 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
7373 change to __NetBSD__.
7375 2000-09-08 Kenichi Handa <handa@etl.go.jp>
7377 * search.c (compile_pattern): Check the multibyteness of cached
7380 2000-09-08 Miles Bader <miles@gnu.org>
7382 * xfaces.c (default_face_vector): Function removed.
7383 (Finternal_merge_in_global_face): Restore old global/local
7384 attribute override order. Use inline loop instead of calling
7385 default_face_vector.
7387 2000-09-07 Gerd Moellmann <gerd@gnu.org>
7389 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
7390 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
7391 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
7392 where necessary, in case POINTER_TYPE is `void'.
7394 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
7396 * frame.c (make_terminal_frame): Initialize frame foreground and
7397 background colors to unspecified, for the initial instance of an
7400 2000-09-07 Gerd Moellmann <gerd@gnu.org>
7402 * ralloc.c (mmap_find): Fix overlap computation.
7403 (mmap_enlarge): Compute nbytes before trying to find an
7406 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
7409 * lread.c (syms_of_lread): Change value of regexp
7410 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
7412 * xmenu.c (xdialog_show): When looking up the selection in
7413 menu_items, take `quote' boundaries into account; this corresponds
7414 to a nil ITEM in x-popup-dialog.
7416 2000-09-07 Kenichi Handa <handa@etl.go.jp>
7418 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
7420 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
7422 * coding.c (encode_coding_sjis_big5): Use translation table for
7423 encoding, not decoding. Fix the handling of latin-jisx0201.
7424 Check for the charset katakana-jisx0201 too.
7425 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
7426 (detect_coding_sjis): Check the byte sequence more rigidly.
7428 2000-09-07 Gerd Moellmann <gerd@gnu.org>
7430 * xfaces.c (Vparam_value_alist): New variable.
7431 (syms_of_xfaces): Initialize it.
7432 (Finternal_set_lisp_face_attribute): Avoid more consing.
7434 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
7436 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
7437 (Qbackground_mode): New variable.
7438 (syms_of_frame_1): Initialize Qbackground_mode.
7440 * lisp.h (Qdisplay): Declare extern.
7442 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
7443 change face on all frames, and change the default for new frames.
7445 2000-09-07 Dave Love <fx@gnu.org>
7447 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
7449 2000-09-07 Kenichi Handa <handa@etl.go.jp>
7451 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
7453 * charset.c: Include composite.h
7454 (lisp_string_width): New function.
7455 (Fstring_width): Call lisp_string_width instead of strwidth.
7457 * Makefile.in (charset.o): Depends on composite.h.
7459 * process.c (read_process_output): Before inserting the decoded
7460 text in the buffer, adjust the multibyteness.
7462 2000-09-06 Gerd Moellmann <gerd@gnu.org>
7464 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
7465 buffer's text buffer is null, map new memory.
7467 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
7468 POINTER_TYPE and size_t.
7469 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
7470 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
7471 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
7472 [REL_ALLOC_MMAP]: New macros.
7473 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
7474 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
7475 [REL_ALLOC_MMAP]: New functions.
7477 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
7478 before and after unexec.
7480 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
7481 text buffers if necessary.
7483 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
7484 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
7487 * config.in (HAVE_MMAP): Add #undef.
7489 2000-09-05 Gerd Moellmann <gerd@gnu.org>
7491 * frame.c (Qdisplay_type): New variable.
7492 (syms_of_frame_1): Initialize it.
7493 (Fframe_parameter): New function that avoids consing.
7494 (syms_of_frame): Defsubr it.
7496 * buffer.c (Fother_buffer): Consider buffers as invisible when
7497 they are displayed in a window on an invisible frame.
7499 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
7500 get-largest-window always return nil.
7502 2000-09-04 Gerd Moellmann <gerd@gnu.org>
7504 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
7505 variable; recognize Emacs 19 elc files.
7507 2000-09-04 Miles Bader <miles@gnu.org>
7509 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
7510 before initially popping up the menu, so the menu doesn't flash
7511 when the face settings are significantly different from the defaults.
7513 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
7515 * regex.c (WIDE_CHAR_SUPPORT): New macro.
7516 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
7517 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
7518 (BIT_UNIBYTE): Remove.
7519 (re_match_2_internal): Delete corresponding code and streamline the
7520 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
7521 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
7522 (re_wctype_t): New type.
7523 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
7524 (regex_compile): Use them and fix handling of overly long char classes.
7526 2000-09-03 Andrew Innes <andrewi@gnu.org>
7528 * makefile.w32-in: Change to DOS line endings.
7530 * s/ms-w32.h (ORDINARY_LINK): New define.
7532 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
7533 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
7535 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
7536 (distclean): Delete them here instead.
7538 * w32proc.c (compare_env): Convert to uppercase for comparison,
7539 not lowercase, to match how the native Windows shell works.
7541 2000-09-03 Jason Rumney <jasonr@gnu.org>
7543 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
7544 CVS changes the line-ends when checking in/out on DOS/Windows.
7546 * makefile.nt (emacs): Do not change directory to run temacs, as
7547 the load-path is set relative to current directory.
7549 2000-09-03 Miles Bader <miles@gnu.org>
7551 * xterm.c (x_alloc_lighter_color_for_widget): New function.
7553 2000-09-02 Gerd Moellmann <gerd@gnu.org>
7555 * xdisp.c (redisplay_mode_lines): New function.
7556 (display_mode_lines): Return number of mode lines displayed.
7557 (echo_area_display): Use redisplay_mode_lines to draw garbaged
7558 mode lines. Don't temporarily bind redisplay-dont-pause to t.
7560 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
7561 string.h and strings.h.
7562 (index) [HAVE_INDEX]: Add prototype.
7564 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
7565 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
7567 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
7568 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7570 2000-09-01 Gerd Moellmann <gerd@gnu.org>
7572 * lread.c (read1): Accept `?' as symbol constituent, for
7573 compatiblity with XEmacs.
7575 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
7577 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
7578 (struct re_pattern_buffer): Remove newline_anchor.
7579 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
7580 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
7581 (re_max_failures, fail_stack): Use size_t rather than unsigned.
7582 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
7583 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
7584 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
7585 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
7586 Get rid of references to newline_anchor.
7587 (regcomp): Allocate and precompute a fastmap.
7589 2000-08-31 Gerd Moellmann <gerd@gnu.org>
7591 * lread.c (openp): GCPRO local variable `filename'.
7593 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
7595 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
7597 * regex.c: Merge some changes from GNU libc. Add prototypes.
7598 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
7599 Use memcmp and memcpy instead of bcopy and bcmp.
7600 (init_syntax_once): Use ISALNUM.
7601 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
7602 (REG_UNSET_VALUE): Remove. Use NULL instead.
7603 (REG_UNSET, re_match_2_internal): Use NULL.
7604 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
7606 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
7607 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
7608 (regex_compile): In handle_interval, return an error rather than try to
7609 unfetch the interval if we can't find the closing brace.
7610 Obey the RE_NO_GNU_OPS syntax bit.
7611 (TOLOWER): New macro.
7613 (regexec): Allocate regs.start and regs.end as one block.
7615 2000-08-30 Gerd Moellmann <gerd@gnu.org>
7617 * xdisp.c (echo_area_display): Check display_completed instead
7618 of calling detect_input_pending.
7620 * dispnew.c (update_frame): Only set display_completed here; move
7621 the update_begin and update_end calls here from update_frame_1.
7622 (update_frame_1): Don't set display_completed here, don't call
7623 update_begin/update_end.
7625 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
7626 instead of store_frame_param.
7628 2000-08-29 Gerd Moellmann <gerd@gnu.org>
7630 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
7631 desired window matrix hasn't been displayed, use the current row
7632 instead. Make sure that only those frame rows are updated for
7633 which there exists a corresponding enabled desired row.
7635 2000-08-29 Miles Bader <miles@gnu.org>
7637 * xfaces.c (default_face_vector): New function.
7638 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
7640 2000-08-29 Gerd Moellmann <gerd@gnu.org>
7642 * lread.c (openp): Prevent temporary string passed to
7643 Ffile_readable_p from being garbage collected.
7645 2000-08-28 Dave Love <fx@gnu.org>
7647 * keymap.c (store_in_keymap): Add `static' to declaration.
7649 2000-08-28 Gerd Moellmann <gerd@gnu.org>
7651 * emacs.c, callint.c, doc.c, editfns.c
7652 (toplevel) [HAVE_STRING_H]: Include string.h.
7653 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
7654 (index): Remove prototypes which might conflict with non-standard
7655 definitions of index/strchr.
7657 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
7658 (rindex): Define only if !HAVE_RINDEX.
7660 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
7662 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
7664 2000-08-28 Miles Bader <miles@gnu.org>
7666 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
7667 made inconsistent by a font-related attribute in FROM.
7668 (merge_face_inheritance): Add function comment.
7670 2000-08-28 Kenichi Handa <handa@etl.go.jp>
7672 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
7673 the 4th arg (PREV_EVENT) Qt to suppress input method.
7675 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
7677 * regex.c: Indent cpp directives and remove parens after `defined'.
7678 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
7679 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
7680 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
7681 (re_compile_pattern): Use size_t for length.
7682 (init_syntax_once): Move to a better place.
7683 * regex.h: Merge changes from GNU libc. Indent cpp directives.
7684 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
7686 * syntax.c (back_comment): Detect cases where a comment-starter is
7687 actually inside another comment as in: /* a // b */ c // d \n.
7688 Make it clear that `comstart_pos' is unused for nested comments.
7690 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
7691 (KEYMAPP): New macro.
7692 (Fkeymap_parent, Fset_keymap_parent): Use it.
7693 (fix_submap_inheritance): Mark it static.
7694 (define_as_prefix, describe_buffer_bindings, describe_command)
7695 (describe_translation, describe_map): Complete prototypes.
7697 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
7699 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
7700 to better match the key-lookup behavior.
7702 2000-08-27 Gerd Moellmann <gerd@gnu.org>
7704 * xfaces.c (lface_fully_specified_p): Handle :inherit.
7705 (Finternal_set_lisp_face_attribute): Fix typo in error message.
7707 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
7709 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
7710 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
7711 (xterm.o): Depend on coding.h
7713 2000-08-26 Kenichi Handa <handa@etl.go.jp>
7715 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
7716 the corresponding '#endif'.
7718 2000-08-26 Miles Bader <miles@gnu.org>
7720 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
7721 * xfaces.c (QCinherit): New variable.
7722 (syms_of_xfaces): Initialize it.
7723 (LFACE_INHERIT): New macro.
7724 (Finternal_get_lisp_face_attribute)
7725 (merge_face_vector_with_property)
7726 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
7727 (check_lface_attrs): Allow new types of face height. Check
7729 (CYCLE_CHECK): New macro.
7730 (merge_face_inheritance): New function.
7731 (merge_face_vectors): Merge inherited faces too. Add F and
7732 CYCLE_CHECK arguments.
7733 (merge_face_vector_with_property, Finternal_merge_in_global_face)
7734 (lookup_named_face, lookup_derived_face, realize_named_face)
7735 (face_at_string_position, face_at_buffer_position): Supply
7736 new F and CYCLE_CHECK arguments to merge_face_vectors.
7737 (merge_face_heights): New function.
7738 (merge_face_vectors, merge_face_vector_with_property)
7739 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
7740 handle relative face heights.
7741 (lface_same_font_attributes_p): Compare heights using EQ.
7743 2000-08-26 Kenichi Handa <handa@etl.go.jp>
7745 * charset.c (char_to_string): Check the character validity.
7746 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
7748 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
7750 * regex.c (PUSH_FAILURE_COUNT): New macro.
7751 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
7752 Handle popping of a register's or a counter's data.
7753 (POP_FAILURE_POINT): Use the new name.
7754 (re_match_2_internal): Push counter data on the stack for succeed_n,
7755 jump_n and set_number_at and remove misleading dead code in succeed_n.
7757 2000-08-25 Gerd Moellmann <gerd@gnu.org>
7759 * xdisp.c (redisplay_internal): If considering all windows on all
7760 frames, update the display for each frame as soon as possible,
7761 instead of first building all desired matrices for all frames, and
7762 then updating them all.
7763 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
7765 2000-08-24 Gerd Moellmann <gerd@gnu.org>
7767 * bytecode.c (mark_byte_stack): Add a comment.
7769 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
7770 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
7773 2000-08-24 Kenichi Handa <handa@etl.go.jp>
7775 * minibuf.c (do_completion): Always use compare-string, not
7776 string-equal because the latter doesn't pay attention to
7777 multibyteness of strings.
7779 * process.c (create_process): Don't setup raw-text coding here.
7780 (Fopen_network_stream): Don't set coding->src_multibyte and
7781 coding->dst_multibyte here.
7782 (read_process_output): For process filter, return unibyte string
7783 if default-enable-multibyte-characters is nil.
7784 (send_process): If OBJECT is multibyte text, be sure to encoded it
7785 by the specified coding system for the process. Otherwise, setup
7787 (init_process): Don't initialize default-process-coding-system here.
7789 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
7791 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
7792 <scroll-down-aggressively>: Likewise.
7794 2000-08-23 Kenichi Handa <handa@etl.go.jp>
7796 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
7797 zero. Set coding->produced_char correctly.
7799 2000-08-22 Andrew Innes <andrewi@gnu.org>
7801 * makefile.w32-in: New file.
7803 * unexw32.c (unexec): Ignore old_name, and use the actual location
7804 of the current executable instead. Base new_name on this.
7806 * w32proc.c (create_child): Remove reference to security
7807 descriptor, which isn't needed and doesn't compile with mingw32.
7809 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7810 up dllimport attributes.
7811 (x_update_window_end): Update prototype.
7813 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
7814 extern, which screws up dllimport attributes.
7816 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7817 up dllimport attributes.
7819 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
7820 screws up dllimport attributes.
7822 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7823 up dllimport attributes.
7824 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
7825 screws up dllimport attributes.
7827 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7828 up dllimport attributes.
7830 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
7831 screws up dllimport attributes.
7833 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
7834 screws up dllimport attributes.
7836 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7837 up dllimport attributes.
7839 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
7840 unnecessary extern, which screws up dllimport attributes.
7843 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7844 up dllimport attributes.
7846 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
7847 unnecessary extern, which screws up dllimport attributes.
7849 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
7850 screws up dllimport attributes.
7852 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7853 up dllimport attributes.
7855 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
7857 * w32bdf.c (search_file_line):
7858 (set_bdf_font_info):
7860 (w32_get_bdf_glyph):
7861 (w32_BDF_to_x_font): Fix compile warnings.
7863 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
7865 * w32select.c: Include keyboard.h before frame.h.
7867 * w32fns.c (max): Define macro.
7868 (JOHAB_CHARSET): Define if not known.
7869 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
7870 (Fx_show_tip): Synch with X version.
7872 * w32xfns.c: Include keyboard.h before frame.h.
7874 * w32fns.c: Include keyboard.h before frame.h.
7876 * w32term.c: Include keyboard.h before frame.h.
7878 * fontset.c: Include keyboard.h before frame.h.
7880 * w32inevt.c: Include keyboard.h before frame.h.
7881 (MOUSE_MOVED): Define if not known.
7883 * minibuf.c: Include keyboard.h before frame.h.
7885 * keyboard.c: Include keyboard.h before frame.h.
7887 * indent.c: Include keyboard.h before frame.h.
7889 * dispnew.c: Include keyboard.h before frame.h.
7891 * buffer.c: Include keyboard.h before frame.h.
7893 * alloc.c: Include keyboard.h before frame.h.
7895 * print.c: Include keyboard.h before frame.h.
7897 * process.c: Include keyboard.h before frame.h.
7899 * scroll.c: Include keyboard.h before frame.h.
7901 * sysdep.c: Include keyboard.h before frame.h.
7903 * term.c: Include keyboard.h before frame.h.
7905 * window.c: Include keyboard.h before frame.h.
7907 * xdisp.c: Include keyboard.h before frame.h.
7908 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
7910 * frame.c: Include keyboard.h before frame.h.
7912 * w32heap.h: Undefine min, max.
7914 * w32gui.h: Undefine min, max.
7916 * unexw32.c: Change PUCHAR to PCHAR.
7917 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
7920 (copy_executable_and_dump_data): Remove unnecessary static defs.
7921 (copy_executable_and_dump_data): Fix compile warnings.
7923 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
7925 * w32console.c (min): Define macro.
7926 (clear_frame, write_glyphs): Fix compile warning.
7928 * w32proc.c (compare_env):
7929 (find_child_console): Fix compile warning.
7931 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
7932 sys_errlist instead of _sys_errlist.
7933 (get_emacs_configuration_options): New function.
7935 * s/ms-w32.h (sys_nerr): Provide default definition.
7936 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
7937 name with _ prepended.
7938 (NSIG): Define if not known.
7939 (get_emacs_configuration): Provide extern declaration.
7940 (get_emacs_configuration_options): Provide extern declaration.
7941 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
7943 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
7945 (read_unc_volume): Fix compile warning.
7947 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
7948 definitions from being used.
7950 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
7952 * w32.c (unc_volume_file_attributes):
7953 (open_unc_volume): Make arg const.
7955 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
7956 (read_input_waiting): Remove excess parameter.
7958 * w32.c (init_environment): Call _access.
7959 (check_windows_init_file): Call _close.
7960 (init_user_info): Call _putenv.
7961 (init_environment): Call _putenv and _strdup.
7962 (init_ntproc): Reset volume info cache on startup.
7964 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
7965 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
7966 cannot override the CRT malloc.
7968 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
7969 (LINK_FLAGS): Append to original value of LINK_FLAGS.
7971 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
7972 unless we are linking with a static CRT.
7973 (RVA_TO_PTR): Cast result to unsigned char*.
7975 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
7976 (add_volume_info): Use xstrdup.
7978 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
7980 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
7981 (do_completion, Fminibuffer_complete_word): Use it.
7982 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
7983 var so it can take non-boolean values.
7985 2000-08-21 Gerd Moellmann <gerd@gnu.org>
7987 * editfns.c (find_field): Formatting changes.
7988 (toplevel): Some old-style function forward declarations
7989 changed to prototypes, some new protypes added, some functions
7992 * lisp.h (set_time_zone_rule): Add prototype.
7993 (use_dialog_box): External declaration.
7995 * keyboard.c (gen_help_event): Add parameter SIZE.
7996 (kbd_buffer_events_waiting): Slightly rewritten.
7997 (clear_event): New function.
7998 (kbd_buffer_get_event): Use it, and clear the input_events of
8000 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
8001 don't fill the newly created array with nils.
8002 (toplevel): Convert some old-style function forward declarations
8005 * keyboard.h (gen_help_event): Change prototype.
8007 * xterm.c (XTread_socket): Change calls to gen_help_event.
8009 * w32term.c (w32_read_socket): Change calls to gen_help_event.
8011 * eval.c (Fmacroexpand): Doc fix.
8013 2000-08-20 Jason Rumney <jasonr@gnu.org>
8015 * w32term.h (x_display_info_for_display): Remove as this function
8016 does not exist on W32.
8018 * w32term.c (help_echo_window): New variable.
8019 (syms_of_w32term): staticpro it.
8020 (note_mode_line_highlight): Set it.
8021 (XTextExtents16): Removed as there is no equivalent on W32.
8022 (x_compute_glyph_string_overhangs): Incomplete body removed, as
8023 the X way of doing this will not work for W32.
8024 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
8025 (x_draw_image_foreground): Avoid drawing outside of the clip area
8026 when image doesn't have a mask.
8027 (note_mouse_highlight): Process overlays in the right order of
8028 priority. Set help_echo_window.
8029 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
8030 because that's more visible for large images.
8032 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
8033 name to single_keymap_panes.
8034 (w32_menu_show): Set wv->title when dealing with titles.
8035 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
8037 2000-08-21 Miles Bader <miles@gnu.org>
8039 * minibuf.c (do_completion): Try again if we rewrite the input
8040 string, but no completion was done, so that any completion message
8043 2000-08-20 Gerd Moellmann <gerd@gnu.org>
8045 * xfaces.c (lface_equal_p): Compare strings differently.
8046 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
8047 (realize_tty_face): Use them.
8048 (syms_of_xfaces): Initialize new variables.
8049 (map_tty_color): New function, extracted from realize_tty_face.
8050 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
8051 foreground or background color, store the new color name in the
8052 realized face; previous code trying to do this had no effect.
8053 (realize_tty_face): Use map_tty_color.
8054 (Fclear_face_cache): Set face_change_count and ensure thorough
8057 2000-08-19 Gerd Moellmann <gerd@gnu.org>
8059 * undo.c (record_first_change, record_marker_adjustment): Don't
8060 use XBUFFER on last_undo_buffer which might not be a buffer.
8062 2000-08-18 Kenichi Handa <handa@etl.go.jp>
8064 * coding.c (decode_coding_string): Set members consumed,
8065 consumed_char, produced, produced_char of *coding correctly. If
8066 decode_coding doesn't consume any byte, don't try anymore.
8067 (encode_coding_string): Likewise.
8069 2000-08-18 Gerd Moellmann <gerd@gnu.org>
8071 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
8072 conditional have void type, for Standard C compilers.
8074 * xdisp.c (redisplay_internal): Compare windows for equality with
8075 EQ, instead of applying XWINDOW to something that might not
8078 2000-08-18 Kenichi Handa <handa@etl.go.jp>
8080 * fontset.c (Finternal_char_font): Search only the selected frame
8081 for a window of the current buffer.
8083 2000-08-18 Gerd Moellmann <gerd@gnu.org>
8085 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
8088 * keyboard.c (kbd_buffer_get_event): Handle the case that the
8089 second half of a HELP_EVENT is found at the start of kbd_buffer.
8091 2000-08-18 Miles Bader <miles@gnu.org>
8093 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
8095 * editfns.c (save_restriction_save): Rewrite to use markers.
8096 (save_restriction_restore): Rewrite to understand new form of data
8097 saved by save_restriction_save.
8098 (Fsave_restriction): Remove cautionary note in doc-string.
8100 2000-08-17 Gerd Moellmann <gerd@gnu.org>
8102 * fileio.c (build_annotations): Add a comment explaining the
8103 return value of format-annotate-function. Replace a spurious call
8104 to Flength with a CONSP test. Call format-annotate-function with
8105 a fifth arg specifying how many times the function is been called
8106 in a row, to let it choose temporary buffers appropriately.
8108 2000-08-17 Dave Love <fx@gnu.org>
8110 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
8111 declare make_temp_name twice.
8113 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
8114 (unreadpure): Give it an arg.
8116 * unexalpha.c: Prototype fatal_unexec, mark_x,
8117 update_dynamic_symbols. Declare unexec as void.
8119 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
8120 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
8122 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
8123 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
8125 * alloca.c: Use #error.
8126 [POINTER_TYPE]: Use it.
8128 * eval.c (Fdefvar): Doc fix.
8130 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
8131 INITIALIZE_INTERVAL.
8133 * buffer.h: Avoid DECLARE_INTERVALS.
8135 * config.in: Add size_t.
8137 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
8139 * w16select.c (set_clipboard_data): If there's not enough memory
8140 to put text into clipboard, return 1, as Fw16_set_clipboard_data
8141 expects. In case of other failures, return 3.
8142 (system_error_msg): New error message.
8143 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
8146 2000-08-16 Gerd Moellmann <gerd@gnu.org>
8148 * term.c (write_glyphs): Also turn off inverse video after turning
8149 off other appearances in case TS_exit_attribute_mode is not equal
8150 to TS_end_standout_mode.
8151 (insert_glyphs): Turn inverse video on/off for each run of glyphs
8153 (turn_off_face): Reset standout_mode only if
8154 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
8155 is equal to TS_end_standout_mode.
8157 2000-08-16 Kenichi Handa <handa@etl.go.jp>
8159 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
8160 sequence at the end of the source block.
8162 * ccl.c (Fccl_program_p): Docstring modified.
8163 (Fccl_execute): Likewise.
8164 (Fccl_execute_on_string): Likewise.
8166 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
8168 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
8170 2000-08-16 Kenichi Handa <handa@etl.go.jp>
8172 The following changes are mainly to fix bugs of
8173 encode/decode-coding-string failing if encoding/decoding return
8174 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
8175 variable conversion_buffer.
8177 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
8178 decrement dst_end to avoid buffer overflow in the later call of
8181 * coding.h (conversion_buffer_size, conversion_buffer)
8182 (get_conversion_buffer): Extern deleted.
8184 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
8185 (conversion_buffer, conversion_buffer_size): Variables deleted.
8186 (get_conversion_buffer): Function deleted.
8187 (struct conversion_buffer): New structure.
8188 (MAX_ALLOCA): New macro.
8189 (allocate_conversion_buffer): New macro.
8190 (extend_conversion_buffer, free_conversion_buffer): New functions.
8191 (ccl_coding_driver): Set coding->result.
8192 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
8193 this is the last block of source.
8194 (encode_coding): Likewise. Handle the source block as the last
8195 one only when the whole source text is consumed.
8196 (decode_coding_string): Handle the case that the output buffer is
8197 too small to decode the whole source text. Use
8198 allocate_conversion_buffer, extend_conversion_buffer and
8199 free_conversion_buffer, not get_conversion_buffer.
8200 (encode_coding_string): Likewise.
8201 (init_coding): Function deleted.
8202 (init_coding_once): Delete code to initialize conversion_buffer_size.
8204 * emacs.c (main): Don't call init_coding.
8206 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
8208 * term.c (write_glyphs): Use a locally declared conversion_buffer.
8209 (insert_glyphs): Likewise.
8211 * w32console.c (write_glyphs): Use a locally declared
8214 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
8216 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
8217 member of display_info is NULL.
8219 2000-08-15 Gerd Moellmann <gerd@gnu.org>
8221 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
8223 * term.c (turn_off_face): Reset standout_mode when resetting
8224 appearances with capability `me'.
8225 (write_glyphs): Switch on inverse video before each face change.
8227 2000-08-14 Dave Love <fx@gnu.org>
8229 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
8230 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
8231 (lisp_free): Declare and make static.
8233 * window.c: Fix embedded comment.
8234 (syms_of_window): Fix doc string.
8236 2000-08-14 Gerd Moellmann <gerd@gnu.org>
8238 * keymap.c (push_key_description): If C without modifiers is < 32,
8239 make sure to print `C-' before `M-', like in the manual.
8241 2000-08-11 Gerd Moellmann <gerd@gnu.org>
8243 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
8244 since they aren't relocated anymore.
8245 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
8247 * xdisp.c (try_cursor_movement): Fix handling of cursor in
8248 partially visible line which is smaller than the window's height.
8250 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8252 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
8253 the multibyte form of eight-bit-control characters.
8254 (Fccl_execute_on_string): Initialize ccl->multibyte.
8256 * ccl.h (struct ccl_program): New member multibyte.
8258 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
8260 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8262 * regex.c (regex_compile) <normal_char>: Pay attention to
8264 (analyse_first) <exactn>: Setup fastmap correctly for
8265 eight-bit-control characters.
8267 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8269 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
8271 * keyboard.c (make_lispy_event): Handle the new event type
8272 multibyte_char_keystroke.
8274 * xterm.c: Include coding.h.
8275 (XTread_socket): Work around a bug of XmbLookupString. If the
8276 input is from XIM, decode it according to the current locale. In
8277 that case, generate multibyte_char_keystroke events.
8279 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8281 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
8282 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
8284 2000-08-10 Gerd Moellmann <gerd@gnu.org>
8286 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
8287 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
8288 (move_it_in_display_line_to): Record iterator's ascent and descent
8289 before producing glyphs, and restore them when we know the glyph
8290 doesn't fit on the line.
8291 (move_it_to): Restructured so that it's easier to debug. If
8292 moving to a vpos, and not moving to an x or character position,
8293 stop as soon as the specified vpos is reached; don't move further
8294 into that line because that might change the computed line height.
8295 (try_cursor_movement): New function, extracted from the cursor
8296 movement branch of redisplay_window. If ending on a partially
8297 visible line, don't try to scroll if the cursor line is taller
8299 (redisplay_window): Use try_cursor_movement.
8301 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
8302 because that function doesn't cope with variable-height lines.
8304 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
8305 box cursor because that's better visible for large images.
8307 2000-08-10 Miles Bader <miles@gnu.org>
8309 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
8311 2000-08-10 Gerd Moellmann <gerd@gnu.org>
8313 * xdisp.c (Vmessages_buffer_name): New variable.
8314 (message_dolog): Use it.
8315 (syms_of_xdisp): Initialize it.
8317 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
8319 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
8320 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
8321 redundant now that keyboard.h is included.
8323 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
8325 * keyboard.c (kbd_buffer_events_waiting): New function.
8327 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
8329 * msdos.c: Include keyboard.h.
8330 (XMenuActivate): Empty no_event events from the event buffer. If
8331 no events are left after that, call clear_input_pending.
8332 (mouse_clear_clicks): New function, code moved from mouse_init.
8333 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
8334 mouse driver to ``forget'' any past clicks.
8336 * Makefile.in (msdos.o): Depend on keyboard.h.
8338 2000-08-09 Gerd Moellmann <gerd@gnu.org>
8340 * lisp.h (input_pending): External declaration.
8342 * dispextern.h (Qredisplay_dont_pause): Declare extern.
8344 * xdisp.c (echo_area_display): Display thoroughly if input is
8345 pending. Bind redisplay-dont-pause to t during the redisplay.
8346 in case input is pending.
8348 * dispnew.c (Qredisplay_dont_pause): New variable.
8349 (syms_of_display): Initialize and staticpro it.
8350 (update_frame_1): Don't interrupt the display for pending input if
8351 redisplay_dont_pause is set.
8353 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
8355 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8357 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
8359 * callproc.c (Fcall_process): Terminate the unwind-protect around
8360 the post-read-conversion of coding system.
8362 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
8363 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
8364 * buffer.h (overlays_at): Update prototype.
8365 * xdisp.c (next_overlay_change): Update call to overlays_at.
8366 * xfaces.c (face_at_buffer_position): Likewise.
8367 * textprop.c (Fget_char_property): Likewise.
8368 * xterm.c (note_mouse_highlight): Likewise.
8370 * minibuf.c (do_completion): Don't consider a simple change of
8371 case as `completion'.
8373 2000-08-08 Ken Raeburn <raeburn@gnu.org>
8375 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
8376 * undo.c (record_delete): Make sure last_point_position_buffer is
8377 a buffer before comparing pointers.
8379 * coding.h (decode_coding_string): Declare.
8381 * intervals.h (Fprevious_single_char_property_change): Declare.
8383 * textprop.c (Fprevious_single_char_property_change): Don't do
8384 arithmetic directly on lisp objects.
8386 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
8388 * keyboard.h (menu_item_eval_property): Declare.
8390 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
8391 reuse as buffer name, instead of recreating (and discarding) every
8392 time a message is logged.
8393 (with_echo_area_buffer): Make callback arg A2 a lisp object.
8394 (current_message_1, truncate_message_1, set_message_1)
8395 (display_echo_area_1, resize_mini_window_1): Signatures changed.
8396 (current_message, truncate_echo_area, display_echo_area)
8397 (resize_echo_area_axactly): Changed calls.
8399 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
8401 (Ffind_coding_systems_region_internal): First argument to Fappend
8402 must be an integer, not a Lisp object.
8404 2000-08-08 Kenichi Handa <handa@etl.go.jp>
8406 * charset.c (Fchar_width): Doc fix.
8408 2000-08-08 Gerd Moellmann <gerd@gnu.org>
8410 * charset.c (Fstring_width): Doc fix.
8412 2000-08-07 Gerd Moellmann <gerd@gnu.org>
8414 * xdisp.c (start_display): When starting display on a continuation
8415 line, clear ascent and descent members of the iterator structure;
8416 the height of the continued line does not affect the height of the
8418 (make_cursor_line_fully_visible): Do nothing if cursor is on a
8419 line taller than the window.
8420 (redisplay_window) <forced window start>: Handle case that the
8421 middle of the window is not found in any row.
8422 (dump_glyph_row): Show more information.
8423 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
8424 first text line in a glyph matrix.
8426 * xterm.c (x_draw_image_foreground): Avoid drawing outside
8427 of the clip area when image doesn't have a mask.
8429 * fns.c (sweep_weak_table): Fix survival conditions for
8430 key-or-value and key-and-value weakness.
8432 * .gdbinit (xhashtable): New command.
8434 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
8435 tables out of the list of all weak hash tables.
8437 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
8438 a new buffer is created, make sure echo_area_buffer[] references
8441 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
8443 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
8446 2000-08-07 Kenichi Handa <handa@etl.go.jp>
8448 * syntax.c (skip_chars): Fix previous change. Make the handling
8449 of unibyte string consistent with that of regex search.
8451 2000-08-05 Gerd Moellmann <gerd@gnu.org>
8453 * xmenu.c (popup_get_selection): Use xfree instead of free.
8455 * fileio.c (Finsert_file_contents): Use xfree instead of free.
8457 * editfns.c (Ftranspose_regions): Use xfree instead of free.
8459 * callproc.c (child_setup): Use xfree instead of free.
8461 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
8463 (run_mac_command, closedir): Use `xfree' instead of `free'.
8465 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
8467 * eval.c (error): Use xfree instead of free.
8469 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
8471 * fns.c: Replace `illegal' with `invalid'.
8472 (Fmake_hash_table, make_hash_table): Allow table size of 0.
8474 2000-08-05 Kenichi Handa <handa@etl.go.jp>
8476 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
8479 2000-08-04 Noah Friedman <friedman@splode.com>
8481 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
8484 2000-08-04 Gerd Moellmann <gerd@gnu.org>
8486 * syntax.c (skip_chars): Fix typo in error message.
8488 2000-08-04 Andreas Schwab <schwab@suse.de>
8490 * m/ia64.h: Moved from s/ia64.h.
8492 2000-08-04 Kenichi Handa <handa@etl.go.jp>
8494 * process.c (read_process_output): Big simplification. Handle
8495 composition and post-read-conversion of coding system correctly.
8496 (send_process): Handle composition correctly.
8498 * callproc.c (Fcall_process): Handle post-read-conversion of
8499 coding system if any.
8501 * coding.c (decode_coding_iso2022): More strict check for handling
8503 (coding_restore_composition): Pay attention to the case that
8504 cmp_data is not set properly (because of invalid code in the
8506 (run_pre_post_conversion_on_str): Include text properties in the
8508 (decode_coding_string): Set members of coding correctly.
8510 2000-08-03 Gerd Moellmann <gerd@gnu.org>
8512 * s/ia64.h: New file.
8514 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
8515 Use NULL instead of 0 at the end of variable argument list of
8516 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
8517 sizeof (int) < sizeof (void *).
8519 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
8520 of variable argument lists of XtVaGetValues and XtVaSetValues.
8522 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
8523 variable argument lists of XtVaGetValues and XtVaSetValues.
8525 2000-08-02 Gerd Moellmann <gerd@gnu.org>
8527 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
8528 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
8530 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
8533 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
8534 in call to Fsingle_key_description.
8536 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
8539 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
8541 * window.c (display_buffer_reuse_frames): New variable.
8542 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
8543 frames displaying BUFFER.
8544 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
8546 2000-08-01 Miles Bader <miles@gnu.org>
8548 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
8549 when to constrain NEW_POS (they were pretty screwed up before).
8551 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
8553 * msdos.c (run_msdos_command): Save and restore the master
8554 environment, for the case that child_setup signals an error.
8555 When mirroring slashes in DOS shell commands, don't fail when
8556 argv[2] has embedded blanks.
8557 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
8558 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
8559 (dos_ttraw): Call mouse_setup_buttons.
8561 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
8562 using alloca; free it after run_msdos_command returns.
8564 2000-07-27 Dave Love <fx@gnu.org>
8566 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
8567 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
8569 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
8571 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
8573 * editfns.c (lisp_time_argument): Fix last change.
8575 2000-07-27 Gerd Moellmann <gerd@gnu.org>
8577 * fns.c (Fdelete): Make it work on vectors and strings in addition
8580 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
8581 (syms_of_fns): Initialize new variables.
8582 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
8583 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
8584 weakness, with t meaning the same as `key-and-value'.
8586 2000-07-27 Kenichi Handa <handa@etl.go.jp>
8588 * coding.h (struct coding_system): Member safe_charset deleted.
8590 * coding.c (Qsafe_charsets): This variable deleted.
8591 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
8593 (coding_safe_chars): New function.
8594 (CODING_SAFE_CHAR_P): New macro.
8595 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
8596 checking safe_charsets member of the coding system. Caller changed.
8597 (detect_coding_iso2022): New local variable safe_chars.
8598 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
8599 safe_charsets member of the coding system.
8600 (decode_coding_iso2022): New local variable safe_chars.
8601 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
8602 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
8603 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
8604 (ENCODE_UNSAFE_CHARACTER): New macro.
8605 (encode_coding_iso2022): New local variable safe_chars. Check
8607 (setup_coding_system): Delete the code to initialize
8608 coding->safe_charses
8609 (intersection, find_safe_codings): New functions.
8610 (Ffind_coding_systems_region_internal): New function.
8611 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
8612 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
8613 variable and initialize it.
8615 * fns.c (char_table_ref_and_index): New function.
8617 * lisp.h (char_table_ref_and_index): Add prototype.
8619 2000-07-26 Sam Steingold <sds@gnu.org>
8621 * editfns.c (lisp_time_argument): Added third argument `usec'.
8622 (Ffloat_time): New built-in Lisp function.
8624 2000-07-26 Gerd Moellmann <gerd@gnu.org>
8626 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
8627 for the character code.
8629 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
8632 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
8633 if called for a popup menu.
8634 (xmenu_show): Store help string in widget values.
8636 2000-07-26 Dave Love <fx@gnu.org>
8638 * syswait.h: Move some definitions.
8639 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
8640 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
8641 perspicuous definitions.
8642 (WTERMSIG): Fix bit pattern used.
8644 2000-07-26 Kenichi Handa <handa@etl.go.jp>
8646 * print.c (print_object): If vector printing is truncated, print
8647 "..." to indicate it as well as the case of list printing.
8649 2000-07-25 Gerd Moellmann <gerd@gnu.org>
8651 * xdisp.c (next_element_from_display_vector): Improve comments.
8653 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
8654 for the character code, and the rest for the face id as in 20.x.
8655 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
8657 * window.c (window_display_table): Cleaned up.
8659 * syntax.c (Fforward_word): Add last arg nil in call of
8660 Fconstrain_to_field.
8662 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
8664 * fileio.c (Frename_file) [DOS_NT]: If the file names are
8665 identical but for the letter-case, don't call
8666 barf_or_query_if_file_exists.
8668 2000-07-25 Miles Bader <miles@gnu.org>
8670 * editfns.c (find_field): Honor special `boundary' fields.
8671 (Qboundary): New variables.
8672 (syms_of_editfns): Initialize Qboundary.
8673 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
8674 Use scan_buffer instead of find_before_next_newline, because it
8675 allows us to detect the boundary case where there's a newline at
8677 * lisp.h (Fconstrain_to_field): Update external declaration.
8679 2000-07-24 Gerd Moellmann <gerd@gnu.org>
8681 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
8684 2000-07-24 Dave Love <fx@gnu.org>
8686 * s/sunos4-0.h, s/sol2.h:
8687 (LIBS_TERMCAP): Move from m/sparc.h.
8689 * m/sparc.h (TERMINFO): Moved to system files (probably only
8690 relevant for sunos4 judging by its vintage).
8691 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
8694 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
8696 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
8697 name to single_keymap_panes.
8699 2000-07-24 Andreas Schwab <schwab@suse.de>
8701 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
8703 2000-07-24 Gerd Moellmann <gerd@gnu.org>
8705 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
8706 parameters instead of using int parameters. Expect FN to accept
8707 EMACS_INT parameters.
8708 (display_echo_area, resize_echo_area_axactly, current_message)
8709 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
8710 with new argument list.
8711 (resize_mini_window_1): New callback function.
8712 (current_message_1, truncate_message_1, set_message_1): Change
8713 parameter lists to the new format expected by with_echo_area_buffer.
8715 2000-07-24 Kenichi Handa <handa@etl.go.jp>
8717 * fontset.c (fontset_ref): Remove INLINE declaration.
8718 (fontset_ref_via_base): Likewise.
8719 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
8722 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
8724 * msdos.c (IT_note_mouse_highlight): Process overlays in the
8725 correct order of priority. If help echo was found in an overlay,
8726 use that overlay as the object in which the help echo was found.
8728 2000-07-22 Miles Bader <miles@gnu.org>
8730 * textprop.c (Fprevious_single_char_property_change): The initial
8731 property value should be from the position preceding POSITION, not
8734 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
8736 * coding.c (syms_of_coding): Doc fix for
8737 inhibit-iso-escape-detection.
8739 2000-07-21 Gerd Moellmann <gerd@gnu.org>
8741 * xterm.c (note_mouse_highlight): Process overlays in the right
8744 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
8746 * xterm.c (note_mouse_highlight): If help-echo was found in an
8747 overlay, use that overlay as the object in which the help was found.
8749 * window.c (foreach_window_1): Fix typo reversing an if-condition.
8751 * window.c (foreach_window): Instead of a fake variable argument
8752 list, take one USER_DATA argument.
8753 (foreach_window_1): Likewise, and call callback functions with two
8754 args, the window and USER_DATA.
8755 (struct check_window_data): New struct.
8756 (check_window_containing): Use it.
8757 (window_from_coordinates): Set up a struct check_window_data for
8759 (add_window_to_list, freeze_window_start): Change parameters
8760 according to new calling convention.
8762 * window.h (foreach_window): Change prototype.
8764 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
8766 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
8768 * xmenu.c (menu_help_callback): Call show_help_echo with
8769 additional arguments OBJECT and POS.
8771 2000-07-21 Kenichi Handa <handa@etl.go.jp>
8773 * data.c (Faset): Allow storing any multibyte character in a
8774 string. Convert unibyte string to multibyte if necessary.
8776 * xfns.c (x_encode_text): New function.
8777 (x_set_name): Use x_encode_text.
8778 (x_set_title): Likewise.
8780 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
8782 * xterm.h (x_encode_text): Add prototype.
8784 2000-07-20 Dave Love <fx@gnu.org>
8786 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
8789 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
8791 * msdos.c (help_echo_window): New variable.
8792 (syms_of_msdos): Initialize and staticpro it.
8793 (IT_note_mode_line_highlight): Set help_echo_window.
8794 (IT_note_mouse_highlight): Ditto.
8795 (dos_rawgetc): Store help_echo_window in the second event produced
8798 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
8799 Record the object that generated the help echo and the position of
8800 that object in help_echo_object and help_echo_pos. Record that
8801 some glyphs in a row are displayed in mouse-face.
8802 (IT_update_begin): Don't clear mouse highlight unless one of the
8803 enabled glyph rows is marked as being displayed in mouse-face.
8804 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
8805 and position recorded in help_echo_object and help_echo_pos to the
8807 (IT_menu_display): Accept a new argument PN: the pane number of
8808 the current menu pane. Record the pane number and the item
8809 number of the item which has associated help string.
8810 (XMenuActivate): Update the prototype for help_callback in
8811 function declaration. Call IT_menu_display with the current menu
8812 pane number as an additional argument. Call help_callback with
8813 two additional arguments: the pane number and the item number of
8814 the menu item associated with the help text.
8815 (help_echo_object, help_echo_pos): New variables.
8816 (syms_of_msdos): Initialize them and staticpro help_echo_object.
8818 * msdos.h (XMenuActivate): Update prototype.
8820 2000-07-19 Gerd Moellmann <gerd@gnu.org>
8822 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
8823 Add some more prototypes.
8825 * xterm.c, xterm.h: Add some more prototypes.
8827 * lisp.h (Fnext_single_char_property_change): Add prototype.
8829 * dispnew.c (direct_output_for_insert): Remove confusing
8830 outer local variable mouse_face_overwritten_p.
8831 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
8833 * alloc.c (allocate_string_data): Don't copy old string contents.
8835 2000-07-19 Kenichi Handa <handa@etl.go.jp>
8837 * coding.c (code_convert_region): Delete text properties before
8838 shrinking the conversion region.
8840 2000-07-18 Gerd Moellmann <gerd@gnu.org>
8842 * dispnew.c (update_text_area): Write the whole row if it
8843 has mouse-face in it.
8845 * xfaces.c (face-alternative-font-family-alist): Remove
8846 DEFVAR_LISP; staticpro instead.
8848 * xmenu.c (menu_help_callback): Call show_help_echo with
8851 * keyboard.c (show_help_echo): Add parameter WINDOW.
8852 (read_char): Call show_help_echo with window extracted from Lisp
8854 (gen_help_event): Add parameter WINDOW.
8856 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
8858 * xterm.c (help_echo_window): New variable.
8859 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
8860 (XTread_socket): Pass help_echo_window to gen_help_event.
8861 (syms_of_xterm): Initialize and staticpro help_echo_window.
8863 2000-07-18 Dave Love <fx@gnu.org>
8865 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
8867 2000-07-18 Gerd Moellmann <gerd@gnu.org>
8869 * alloc.c (allocate_string_data): If string had already data
8870 assigned, copy old contents to new string data.
8872 * coding.c (syms_of_coding): Fix typo in spelling of variable
8873 `inhibit-iso-escape-detection'.
8875 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
8877 * Makefile.in: Add dependencies on dispextern.h.
8878 (alloca.o): Don't define malloc and define EMACS_FREE instead of
8879 `free'; both can conflict with system header files.
8881 2000-07-18 Kenichi Handa <handa@etl.go.jp>
8883 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
8886 2000-07-18 Dave Love <fx@gnu.org>
8888 * window.c (Fwindow_list): Declare arg `window'.
8890 2000-07-18 Kenichi Handa <handa@etl.go.jp>
8892 * coding.c (setup_coding_system): Don't override the explicitly
8893 specified designations.
8895 2000-07-15 Miles Bader <miles@gnu.org>
8897 * editfns.c (char_property_eq, char_property_stickiness): Renamed
8898 from `text_property_eq' and `text_property_stickiness', respectively.
8899 (find_field, Fconstrain_to_field, char_property_eq)
8900 (char_property_stickiness): Changed to call char-property functions
8901 instead of text-property-only ones.
8903 * textprop.c (Fnext_single_char_property_change): Made a subr (was
8904 `next_single_char_property_change'). Do more error checking, and
8905 cleanup limit behavior.
8906 (Fprevious_single_char_property_change): New function.
8907 (syms_of_textprop): Initialize new subrs.
8909 * xdisp.c (display_prop_end, invisible_text_between_p):
8910 Call Fnext_single_char_property_change instead of
8911 next_single_char_property_change.
8913 2000-07-15 Jason Rumney <jasonr@gnu.org>
8915 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
8916 after menu is finished with.
8917 (add_menu_item): Only consider wv->title as a menu title.
8918 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
8920 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
8922 (FONT_REGEXP): Remove unused macro, and its sub-components.
8923 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
8925 * w32term.c (help_echo_object, help_echo_pos): New variables.
8926 (note_mode_line_highlight): Store additional information about the
8927 help-echo in help_echo_object and help_echo_pos. Check both
8928 `local-map' and `keymap' properties for changing the cursor
8929 (note_mouse_highlight): Store additional information about the
8930 help-echo in help_echo_object and help_echo_pos.
8931 (note_tool_bar_highlight): Set help_echo_object to nil and
8932 help_echo_pos to -1.
8933 (w32_read_socket): Use gen_help_event instead of filling
8934 input_events manually.
8935 (syms_of_w32term): Staticpro help_echo_object.
8936 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
8937 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
8938 (x_clear_mouse_face): New function.
8939 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
8940 (x_update_window_begin): No need to turn off the mouse
8942 (show_mouse_face): Set the mouse_face_p flag of glyph rows
8943 depending on whether they contain glyphs highlighted in mouse-face.
8944 (x_fill_stretch_glyph_string): Consume runs of stretch
8945 glyphs instead of a single one.
8946 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
8947 with new argument list.
8948 (x_set_glyph_string_gc): Make sure the face's GC is valid.
8949 (x_append_glyph, x_append_composite_glyph)
8950 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
8951 changes in struct glyph starting 1999-12-27. See comments for
8952 xterm.c on 2000-07-05.
8954 2000-07-14 Sam Steingold <sds@gnu.org>
8956 * xfaces.c (realize_x_face): Fix the last patch:
8957 check `default_face' before dereferencing.
8959 2000-07-14 Dave Love <fx@gnu.org>
8961 * syntax.c (back_comment): Add null default in switch (for pcc).
8963 2000-07-14 Kenichi Handa <handa@etl.go.jp>
8965 * xfaces.c (realize_x_face): Make fontset using the base of the
8966 default_face's fontset, not using the default fontset.
8968 * coding.c (inhibit_iso_escape_detection): New variable.
8969 (syms_of_coding): Make it a Lisp variable.
8970 (detect_coding_iso2022): If inhibit_iso_escape_detection is
8971 nonzero, ignore ISO2022's escape sequence.
8973 2000-07-14 Gerd Moellmann <gerd@gnu.org>
8975 * alloca.c (malloc) [emacs]: Define as xmalloc.
8977 * xfns.c (Fx_show_tip): If frame parameters contain a position,
8978 use that instead of the mouse position. Add parameters DX and DY.
8980 * dispextern.h (Fx_show_tip): Adjust number of parameters
8983 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
8984 if HELP is a function, call it with OBJECT and POS as parameters
8985 to get the help to display.
8986 (gen_help_event, kbd_buffer_store_help_event): New functions.
8987 (kbd_buffer_get_event): Construct the Lisp help-event differently.
8988 (read_char): Call show_help_echo with new parameters.
8990 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
8993 * xterm.c (help_echo_object, help_echo_pos): New variables.
8994 (note_mode_line_highlight): Store additional information about the
8995 help-echo in help_echo_object and help_echo_pos. Check both
8996 `local-map' and `keymap' properties for changing the cursor
8997 (note_mouse_highlight): Store additional information about the
8998 help-echo in help_echo_object and help_echo_pos.
8999 (note_tool_bar_highlight): Set help_echo_object to nil and
9000 help_echo_pos to -1.
9001 (XTread_socket): Use gen_help_event instead of filling
9002 input_events manually.
9003 (syms_of_xterm): Staticpro help_echo_object.
9005 * xmenu.c (menu_highlight_callback): Use
9006 kbd_buffer_store_help_event instead of setting up and input_event
9009 * xdisp.c (eval_form): GCPRO argument sexpr.
9010 (call_function): New function.
9011 (handle_single_display_prop): Use call_function and FUNCTIONP
9012 instead of checking whether if font_height is a symbol and
9015 * eval.c (internal_condition_case_2): New function.
9017 * lisp.h (FUNCTIONP): New macro.
9018 (internal_condition_case_2, call_function): Add prototypes.
9020 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
9021 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
9022 Always set `arg' member of input_events.
9023 (construct_menu_click): Unused function removed.
9025 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
9027 * w32term.c (construct_mouse_click, construct_mouse_wheel)
9028 (construct_drag_n_drop, x_scroll_bar_handle_click)
9029 (w32_read_socket): Always set `arg' member of input_events.
9031 * keyboard.c (show_help_echo): Use eval_form. Add comment.
9033 * lisp.h (eval_form): Add prototype.
9035 * xdisp.c (eval_form): Make it externally visible.
9037 2000-07-13 Gerd Moellmann <gerd@gnu.org>
9039 * xterm.c (x_handle_tool_bar_click): Store the frame in the
9040 frame_or_window slot of TOOL_BAR_EVENT input events instead of
9041 consing. For prefix events, store the frame in the `arg' slot of
9042 the event, otherwise store the key there.
9043 (XTread_socket): Instead of consing, use the frame_or_window slot
9044 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
9046 * xmenu.c (menu_highlight_callback): Store help string in the
9047 `arg' member of the input event; don't cons.
9048 (menubar_selection_callback): Use the `arg' slot of input events
9049 to queue additional information, instead of consing.
9051 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
9053 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
9055 (w32_read_socket): Adapt to changes in HELP_EVENTs.
9057 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
9058 input events to queue additional information, instead of consing.
9060 * keyboard.c (kbd_buffer_gcpro): Renamed from
9061 kbd_buffer_frame_or_window. Now used for all Lisp objects
9062 referenced from the input queue.
9063 (kbd_buffer_store_event): Always use structure assignment for
9064 copying input events. Record all Lisp objects referenced from
9065 events in kbd_buffer_gcpro.
9066 (kbd_buffer_get_event): Construct Lisp `help-echo' events
9067 differently from input events. Test for prefix menu_bar_events
9068 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
9069 event in kbd_buffer_gcpro to nil.
9070 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
9071 frame_or_window is equal to its arg member as prefix events.
9072 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
9073 used by an input event to nil.
9074 (init_keyboard): Use two times the size of the input queue
9075 for kbd_buffer_gcpro.
9076 (syms_of_keyboard): Likewise.
9078 * emacs.c (handle_USR2_signal, handle_USR1_signal):
9079 Use USER_SIGNAL_EVENT.
9081 * termhooks.h (struct input_event): Add member `arg'.
9082 (MENU_BAR_EVENT): Renamed from menu_bar_event.
9083 (USER_SIGNAL_EVENT): Renamed from user_signal.
9085 * xfaces.c (ASET): Remove definition.
9087 * lisp.h (AREF, ASET, ASIZE): New macros.
9089 * fontset.c (AREF, ASIZE): Remove definitions.
9091 * fns.c (AREF): Remove definition.
9093 * composite.c (AREF): Remove definition.
9095 2000-07-12 Gerd Moellmann <gerd@gnu.org>
9097 * dispnew.c (redraw_overlapped_rows): Add missing local.
9098 (scrolling_window): Remove debug code.
9100 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
9101 Before scrolling, turn off a mouse-highlight in the window
9104 * xterm.c (x_update_window_end): Add parameter
9105 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
9106 redisplay in XTframe_up_to_date.
9107 (x_clear_mouse_face): New function.
9108 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
9110 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
9112 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
9113 it when any row is written to that contains glyphs highlighted in
9115 (update_window): Call the window update end hook with new
9116 parameter MOUSE_FACE_OVERWRITTEN_P.
9117 (direct_output_for_insert): Give up if row contains mouse-face.
9119 * dispextern.h (struct redisplay_interface): Add parameter
9120 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
9121 (clear_mouse_face): New function pointer member.
9123 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
9125 * syntax.c (back_comment): Use one switch rather than a few `if's.
9126 Obey open_paren_in_column_0_is_defun_start.
9127 When reverting to the `slow' method, try to nicely handle the case
9128 of nested comments by checking that the comment-starter we found
9129 does indeed match the comment-ender.
9130 (scan_sexps_forward, scan_sexps_forward):
9131 Ignore excessive opening parenthesis rather than throwing an error.
9133 2000-07-11 Gerd Moellmann <gerd@gnu.org>
9135 * doc.c (Fsubstitute_command_keys): Handle case that a GC
9136 in Fwhere_is_internal or get_keymap_1 relocates string contents.
9138 * dispnew.c (direct_output_forward_char): Give up if currently
9139 displaying a message instead of the minibuffer contents.
9141 * xterm.c (x_update_window_begin): No need to turn off the mouse
9143 (show_mouse_face): Set the mouse_face_p flag of glyph rows
9144 depending on whether they contain glyphs highlighted in mouse-face.
9146 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
9147 compare the mouse_face_p flags of both rows.
9149 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
9151 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
9153 * keyboard.c (show_help_echo): Accept additional parameter
9154 ok_to_overwrite_keystroke_echo.
9155 (read_char): Call show_help_echo with a zero
9156 ok_to_overwrite_keystroke_echo argument.
9157 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
9158 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
9159 ok_to_overwrite_keystroke_echo argument.
9160 * w32menu.c (w32_menu_display_help): Call show_help_echo with
9161 non-zero ok_to_overwrite_keystroke_echo argument.
9163 2000-07-10 Gerd Moellmann <gerd@gnu.org>
9165 * xdisp.c (try_window_id): If changes are all below what is
9166 displayed in the window, and point is in the window, we still
9167 might have to find point on the display.
9169 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
9170 glyphs instead of a single one.
9171 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
9172 with new argument list.
9173 (x_set_glyph_string_gc): Make sure the face's GC is valid.
9175 * keymap.c (get_keymap_1): Add comment that this function can GC.
9176 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
9177 comment that functions can GC.
9178 (Fset_keymap_parent): GCPRO arg KEYMAP.
9180 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
9182 * msdos.c (XMenuActivate): After exiting the menu, restore the
9183 echo area message and erase it.
9185 2000-07-10 Kenichi Handa <handa@etl.go.jp>
9187 * fontset.c (Ffontset_info): Make the return value more compatible
9188 with that of Emacs 20.
9190 2000-07-07 Gerd Moellmann <gerd@gnu.org>
9192 * eval.c (Fsignal): Handle case that backtrace_list is null.
9194 2000-07-07 Kenichi Handa <handa@etl.go.jp>
9196 * ccl.c (Fccl_execute): Typo fixed.
9198 2000-07-06 Gerd Moellmann <gerd@gnu.org>
9200 * window.c (window_loop): Add missing gcpro1 local variable.
9202 * window.c (Fwindow_list): Reverse list at the end.
9203 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
9204 means allow windows on OWINDOW's frame, only.
9205 (window_loop): Simplified; use Fwindow_list.
9207 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
9209 2000-07-05 Gerd Moellmann <gerd@gnu.org>
9211 * xterm.c (XTread_socket): Increment handling_signal at the start,
9212 decrement it at the end.
9214 * eval.c (handling_signal): New variable.
9215 (Fsignal): Abort if handling_signal is non-zero.
9217 * lisp.h (handling_signal): External declaration.
9219 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
9221 2000-07-05 Ken Raeburn <raeburn@gnu.org>
9223 Sound support for NetBSD through "Linux emulation" support:
9224 * config.in (HAVE_SOUNDCARD_H): Undef.
9225 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
9226 * Makefile.in (LIBSOUND): New variable.
9227 (LIBES): Include it.
9228 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
9229 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
9230 (vox_open): Use DEFAULT_SOUND_DEVICE.
9231 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
9233 2000-07-05 Gerd Moellmann <gerd@gnu.org>
9235 * print.c (print_error_message): If Vsignaling_function is set,
9236 show it in *Messages*.
9238 * lisp.h (Vsignaling_function): External declaration.
9240 * eval.c (Vsignaling_function): New variable.
9241 (Fsignal): Compute it.
9242 (syms_of_eval): Staticpro it.
9244 2000-07-05 Dave Love <fx@gnu.org>
9246 * syswait.h: Use the autoconf recommended approach. Old code
9247 #if'd out in case we need to revert.
9249 * config.in (HAVE_SYS_WAIT_H): Added.
9251 2000-07-05 Andrew Innes <andrewi@gnu.org>
9253 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
9254 when non-NULL instead of __morecore, to take account of buffer
9255 memory. This also solves a problem with spurious memory warnings
9258 * ralloc.c: Make real_morecore non-static.
9260 * eval.c (internal_condition_case): Comment out abort if
9261 interrupt_input_blocked is not zero.
9263 * makefile.nt: Add support for `bootstrap' and related targets.
9264 Include minimal debug info in emacs.exe in release build.
9265 Remove all dependencies on lisp.h, and fixup some others.
9267 * w32.c (init_environment): Install code from 20.7 for providing
9268 default values for environment variables, based on the
9269 executable's own location.
9270 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
9271 (sys_socket): Install socket inheritance bug fix from 20.7.
9273 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
9274 here via blockinput.h).
9276 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
9278 * w32menu.c (w32_menu_display_help):
9279 * xmenu.c (menu_help_callback): Use show_help_echo.
9281 * keyboard.h (show_help_echo): Declare.
9283 * keyboard.c (show_help_echo): New function, extracted from read_char.
9284 Feval its `msg' argument if it's a cons cell.
9285 (read_char): Use it.
9286 (follow_key): Pass `autoload' to get_keyelt.
9288 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
9289 (note_tool_bar_highlight, XTread_socket):
9290 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
9292 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
9293 (note_tool_bar_highlight, w32_read_socket):
9294 Do not gratuitously ignore non-string `help-echo' properties.
9296 2000-07-05 Gerd Moellmann <gerd@gnu.org>
9298 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
9300 * window.c (delete_all_subwindows): Reset Vwindow_list.
9302 * xterm.c (x_append_glyph, x_append_composite_glyph)
9303 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
9304 changes in struct glyph starting 1999-12-27. Some bit-fields of
9305 struct glyph were not set, which made glyphs unequal when compared
9306 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
9307 effects were the result. This also depended on the contents of
9308 memory returned by xmalloc. If flickering happens again, activate
9309 the code in clear_glyph_row that's in #if 0. If the flickering is
9310 gone with that, chances are that it is caused by something similar.
9312 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
9314 * dispextern.h: Add some comments.
9316 * window.c (add_window_to_list): Add parameter LIST.
9317 (window_list): Order list so that, for each frame, windows are
9318 in canonical order, and so that frames appear in the list in
9319 the order given by Vframe_list.
9320 (next_window): Reverse the handling of NEXT_P.
9322 2000-07-04 Gerd Moellmann <gerd@gnu.org>
9324 * window.c (Vwindow_list): New variable.
9325 (make_window, delete_window): Set Vwindow_list to nil.
9326 (check_window_containing): New function.
9327 (window_from_coordinates): Rewritten.
9328 (add_window_to_list, window_list, candidate_window_p)
9329 (decode_next_window_args, next_window): New functions.
9330 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
9331 (Fwindow_list): New function.
9332 (Fother_window): Cleaned up.
9333 (foreach_window): Add a longer "variable argument list". Let
9334 callback function return 0 to indicate that cycling over windows
9336 (foreach_window_1): Likewise.
9337 (freeze_window_start): Return int.
9338 (init_window): New function.
9339 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
9341 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
9342 input_event with bzero.
9343 (main): Call init_window.
9345 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
9348 2000-07-04 Kenichi Handa <handa@etl.go.jp>
9350 * composite.h (make_composition_value_copy): Extern it.
9352 * composite.c (make_composition_value_copy): New function.
9354 * editfns.c (Fformat): While copying text properties, make each
9355 composition property value a copy.
9357 * fns.c (concat): While copying text properties, make each
9358 composition property value a copy.
9360 2000-07-03 Gerd Moellmann <gerd@gnu.org>
9362 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
9364 * fns.c (sweep_weak_table): Mark only objects that are not
9367 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
9368 include those frames as candidates which have their focus
9369 redirected to the minibuffer frame.
9371 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
9373 * fns.c (Fputhash): Return `value' rather than nil.
9375 2000-06-30 Gerd Moellmann <gerd@gnu.org>
9377 * frame.c (next_frame): Don't check focus redirection in case
9378 MINIBUF is a window. Doing so excludes frames using MINIBUF
9379 unless their focus is redirected, which contradicts the
9380 specification of next-frame, and leads to infinite loops in
9381 certain situations when cycling through windows with next-window.
9383 2000-06-30 Kenichi Handa <handa@etl.go.jp>
9385 * coding.c (code_convert_region): Even if the length of text is
9386 zero, try to convert it if coding->type is coding_type_ccl.
9387 (decode_coding_string, encode_coding_string): Likewise.
9389 2000-06-28 Gerd Moellmann <gerd@gnu.org>
9391 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
9392 the display if windows_or_buffers_changed.
9394 * dispnew.c (struct row_entry): New structure.
9395 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
9396 (row_table_size, old_lines, new_lines, old_lines_size)
9397 (new_lines_size, run_pool, runs_size, runs): New variables.
9398 (add_row_entry): New function.
9399 (scrolling_window): Use data structures allocated with xmalloc and
9400 held in global variables, instead of allocating them with alloca and
9401 holding them in local variables. Use a larger hash table whose
9402 size depends on glyph matrix sizes. Don't use bzero to clear the
9403 hash table; instead, clear used slots only.
9405 * fns.c (next_almost_prime): Make it externally visible.
9407 * lisp.h (next_almost_prime): Add prototype.
9409 * s/isc4-0.h (sigunblock): Define.
9411 * s/sco5.h (sigunblock): Define.
9413 2000-06-27 Dave Love <fx@gnu.org>
9415 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
9416 (moved to osf5-0.h).
9417 [!NOT_C_CODE]: Protect string.h stuff.
9419 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
9420 (sys_siglist, NSIG): Definitions moved here from osf1.h.
9422 2000-06-27 Gerd Moellmann <gerd@gnu.org>
9424 * xdisp.c (resize_mini_window): Subtract the extra line spacing
9425 below the last line from the needed window height.
9427 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
9429 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
9430 (Fwidget_get): Use it.
9431 (syms_of_fns): Defsubr it.
9433 2000-06-26 Gerd Moellmann <gerd@gnu.org>
9435 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
9436 display info for XIM.
9437 (xim_open_dpy): Likewise.
9438 (xim_close_dpy): Don't free the display info's XIM.
9440 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
9442 * config.in (USE_XIM): New define.
9444 * keymap.c (get_keyelt): For menu-items containing a `:filter
9445 FILTER', apply FILTER to the menu-item's definition to get the
9446 real definition to use.
9448 * lisp.h (QCfilter): External declaration.
9450 * xfns.c (Fimage_size): New function.
9451 (syms_of_xfns): Defsubr it.
9453 2000-06-26 Andreas Schwab <schwab@suse.de>
9455 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
9458 2000-06-25 Dave Love <fx@gnu.org>
9460 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
9462 * Makefile.in (blockinput.h): Depend on atimer.h.
9463 (atimer.h): Depend on systime.h.
9465 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
9467 * atimer.h: Protect against multiple inclusion. Include systime.h.
9469 * lisp.h (swap_in_global_binding): Declare.
9471 2000-06-24 Ken Raeburn <raeburn@gnu.org>
9473 * process.c (Fopen_network_stream): Turn off atimers for duration
9474 of call to connect. (Patch from Gerd.)
9476 2000-06-23 Dave Love <fx@gnu.org>
9478 * ralloc.c: Maybe include unistd.h
9480 * emacs.c (setgrp): Undefine before defining.
9481 (malloc_warning, set_time_zone_rule, index): Prototype.
9483 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
9484 HAVE_STRUCT_TIMEZONE.
9486 * s/osf1.h: Move string.h hack here from alpha.h and make it
9488 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
9490 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
9491 (SOCKLEN_TYPE): Don't define.
9493 * m/alpha.h: Remove string.h hack.
9495 * s/osf5-0.h: New file.
9497 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
9498 include time.h, done by systime.h.
9499 [__FreeBSD__]: Remove redundant includes.
9501 * callproc.c (setpgrp): Undefine before defining.
9502 (delete_temp_file): Return Qnil to avoid warning.
9504 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
9506 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
9509 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
9511 * composite.h (compose_text): Declare.
9513 * xterm.c: Don't include sys/types.h unconditionally. Don't
9514 protect its inclusion with !USG (following xmenu.c).
9516 2000-06-23 Gerd Moellmann <gerd@gnu.org>
9518 * xfns.c (x_create_tip_frame): Initialize frame's colors like
9521 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
9523 * coding.c (decode_eol_post_ccl): Special handling for undecided
9524 and inconsistent EOL types.
9526 2000-06-22 Gerd Moellmann <gerd@gnu.org>
9528 * xrdb.c (x_load_resources): Add default resource for scroll bar's
9529 trough color and main window's background color.
9531 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
9533 * xterm.h (Xt_app_con): External declaration.
9535 * widget.c (EmacsFrameRealize): Fix typo.
9537 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
9539 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
9540 (handle_invisible_prop): Record the start of invisible text in
9541 it->add_overlay_start.
9542 (struct overlay_entry): Add member `overlay'.
9543 (handle_overlay_change): Simplify.
9544 (next_overlay_string): After having processed overlay strings at the
9545 end of the buffer, record that fact in
9546 it->overlay_strings_at_end_processed_p.
9547 (compare_overlay_entries): If before- and after-strings come
9548 from the same overlay, let before-strings come first.
9549 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
9550 (load_overlay_strings): Take it->add_overlay_start into account
9551 when adding overlay strings.
9553 * dispextern.h (struct it): Add member add_overlay_start.
9555 2000-06-22 Dave Love <fx@gnu.org>
9557 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
9559 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
9561 2000-06-22 Kenichi Handa <handa@etl.go.jp>
9563 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
9566 2000-06-21 Dave Love <fx@gnu.org>
9568 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9570 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
9572 * syntax.c (back_comment): Simplify string-parity counting (with
9573 the added benefit of handling multiple string-styles as long as
9574 they are not intertwined).
9575 Jump to the slow code as soon as a comment starter is found in
9576 a "string_lossage" position. Fixes the case: " /* " /* " */.
9578 2000-06-21 Dave Love <fx@gnu.org>
9580 * Makefile.in: Use GETLOADAVG_LIBS.
9582 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
9583 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
9585 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
9587 * syntax.c (describe_syntax): Recognize the `n'estable bit.
9588 (Fforward_comment, scan_lists):
9589 Check the comstyle of single-char comment-starters.
9590 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
9591 we're just at the beginning of the comment (f.ex with (*) ... (*)).
9592 Check the comstyle of single-char comment-starters.
9593 Clarify control-flow around the Scomment case.
9595 2000-06-20 Dave Love <fx@gnu.org>
9597 * fns.c (make_hash_table, maybe_resize_hash_table):
9598 Cast arg of next_almost_prime.
9600 * tparam.c [emacs]: Include lisp.h.
9602 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
9605 2000-06-20 Gerd Moellmann <gerd@gnu.org>
9607 * keyboard.c (adjust_point_for_property): Check if display
9608 property should be treated as intangible by looking at its value.
9610 * xdisp.c (single_display_prop_intangible_p)
9611 (display_prop_intangible_p): New functions.
9613 * dispextern.h (display_prop_intangible_p): Add prototype.
9615 * xdisp.c (dump_glyph_row): Show type of glyph->object.
9617 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
9618 argument to sigprocmask.
9620 * s/sco5.h (sigblock): Redefined to pass a pointer as second
9621 argument to sigprocmask.
9623 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
9624 sigprocmask_set, and pass a pointer to it to sigprocmask.
9626 * sysdep.c (sigprocmask_set): New variable.
9628 * fileio.c (make_temp_name): Don't use `%s' in string passed to
9631 2000-06-20 Sam Steingold <sds@gnu.org>
9633 * xrdb.c: Don't declare xmalloc, xrealloc.
9635 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
9637 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
9638 (re_comp): Cast gettext return value to avoid complaints when
9641 2000-06-20 Dave Love <fx@gnu.org>
9643 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
9645 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
9647 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
9649 * m/alpha.h: Don't declare xmalloc, xrealloc.
9651 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
9653 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
9655 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
9657 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
9660 * keyboard.h (poll_for_input_1): Declare.
9662 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
9664 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
9666 * doprnt.c: Don't declare xmalloc, xrealloc.
9668 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
9669 (getenv, ctime, getwd): Removed.
9670 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
9672 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
9673 x_set_tool_bar_lines.
9675 * config.in: Add HAVE_GETWD. Move some definitions above
9676 machine/system includes.
9678 2000-06-20 Kenichi Handa <handa@etl.go.jp>
9680 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
9682 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
9683 contain information about ENCODING.
9685 * fontset.c (FONTSET_ASCII): Use the first element of char table
9686 for an ASCII font, not defalt slot.
9687 (fontset_ref_via_base): If FONTSET doesn't contain information for
9688 C, try the default fontset.
9689 (make_fontset): Don't copy the default fontset.
9690 (fontset_font_pattern): Likewise.
9691 (accumulate_font_info): If ELT is nil, use the corresponding
9692 element in the default fontset.
9694 2000-06-19 Dave Love <fx@gnu.org>
9696 * syntax.c (Fparse_partial_sexp): Doc fix.
9698 * regex.h: Test PROTOTYPES as well as __STDC__.
9700 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
9701 errno, strerror. Put text after #endif in comment.
9703 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
9705 * xterm.c (x_frame_of_widget): Likewise.
9707 2000-06-19 Gerd Moellmann <gerd@gnu.org>
9709 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
9710 to Vfundamental_mode_abbrev_table.
9712 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
9713 bogus objects are marked. This slows down GC by ~80 percent, but
9714 it might be worth trying when debugging GC-related problems.
9715 This feature requires conservative stack marking to be enabled.
9717 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
9718 returns XLookupChars, reset `modifiers' to zero.
9720 2000-06-19 Dave Love <fx@gnu.org>
9722 * mktime.c: Unprotoized.
9724 2000-06-19 Richard Stallman <rms@gnu.org>
9726 * data.c (set_internal): If variable is frame-local,
9727 store the new value immediately into the frame parameter alist.
9729 2000-06-19 Ken Raeburn <raeburn@gnu.org>
9731 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
9732 in the custom handler pointer.
9734 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
9735 value, or checks for CHAR_META can fail when Lisp_Object is a
9737 * keymap.c (get_keyelt): Likewise.
9739 2000-06-19 Kenichi Handa <handa@etl.go.jp>
9741 * ccl.h (struct ccl_program): New member eol_type.
9742 (struct ccl_spec): New member cr_carryover.
9744 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
9745 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
9747 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
9748 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
9749 (decode_eol_post_ccl): New function.
9750 (decode_coding): Don't detect EOL format here for CCL based coding
9752 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
9753 decode_eol_post_ccl after running the CCL program.
9754 (code_convert_region): Don't detect EOL format here for CCL based
9756 (decode_coding_string): Likewise.
9758 2000-06-18 Ken Raeburn <raeburn@gnu.org>
9760 * charset.c (update_charset_table): Use XINT on "iso_final_char"
9761 when treating it as an integer.
9763 * coding.h (encode_coding_string): Declare.
9765 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
9768 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
9769 "xkeymap" to avoid shadowing the "enum map_type" value that needs
9770 to be passed to get_local_map.
9772 * sound.c (Fplay_sound): Don't call make_number on
9773 Frun_hook_with_args count argument.
9775 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
9776 for lisp objects in X event structure data field, when lisp
9777 objects are represented with unions.
9778 (x_scroll_bar_to_input_event): Ditto.
9780 2000-06-16 Ken Raeburn <raeburn@gnu.org>
9782 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
9783 termination of string. Fix sense of test whether
9784 Vline_number_display_limit is an integer.
9786 2000-06-16 Gerd Moellmann <gerd@gnu.org>
9788 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
9789 only if HAVE_X_WINDOWS.
9791 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
9794 * dispnew.c (update_frame_1): Handle case that cursor vpos is
9797 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
9799 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
9802 2000-06-15 Kenichi Handa <handa@etl.go.jp>
9804 * coding.c (decode_coding_emacs_mule): Always set src_base at the
9805 start of the while loop.
9807 2000-06-15 Gerd Moellmann <gerd@gnu.org>
9809 * atimer.c (alarm_signal_handler): Add forward declaration.
9811 * data.c (set_internal): Remove debug code.
9813 2000-06-14 Gerd Moellmann <gerd@gnu.org>
9815 * Makefile.in (bootstrap-temacs): Add `-I../src'.
9817 * unexec.c (toplevel) [COFF]: Include coff.h.
9819 * s/lynxos.h: New file.
9821 * keymap.c (Fsingle_key_description): Enclose function key and
9822 event symbol names in angle brackets.
9824 * xdisp.c (setup_echo_area_for_printing): Call
9825 message_log_maybe_newline if message_buf_print is not set.
9827 * print.c (printchar, strout): Don't check message_buf_print
9828 before calling setup_echo_area_for_printing because that
9829 function does something useful even when message_buf_print is
9832 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
9834 (ensure_echo_area_buffers): Initialize echo buffer's
9835 truncate lines setting to nil.
9836 (with_echo_area_buffer): Don't set the echo buffer's truncate
9838 (set_message_1): Set it here instead, based on the value
9839 of message_truncate_lines.
9840 (resize_mini_window): Handle case that lines are truncated.
9841 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
9842 DEFVAR_BOOL message-truncate-lines.
9844 * keyboard.c (read_char): Bind message-truncate-lines to t
9845 while displaying a help-echo.
9847 * lisp.h (Qmessage_truncate_lines): External declaration.
9849 2000-06-13 Gerd Moellmann <gerd@gnu.org>
9851 * xdisp.c (Vline_number_display_limit): Renamed from
9852 line_number_display_limit.
9853 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
9854 Extend documentation string. Initialize
9855 Vline_number_display_limit to nil meaning no limit.
9856 (decode_mode_spec): Use Vline_number_display_limit with its new
9859 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
9861 2000-06-13 Richard Stallman <rms@gnu.org>
9863 * frame.c (Fmodify_frame_parameters): Doc fix.
9865 * xfns.c (x_set_frame_parameters): Comment fix.
9867 * frame.c (store_frame_param): Call swap_in_global_binding if the
9868 variable's current binding was chosen based on this frame.
9870 * data.c (swap_in_global_binding): New function.
9872 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
9874 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
9875 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
9877 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
9879 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
9881 2000-06-12 Jason Rumney <jasonr@gnu.org>
9883 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
9885 * w32.h (EMACS_W32_H): Renamed from _NT_H_
9887 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
9889 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
9891 2000-06-12 Gerd Moellmann <gerd@gnu.org>
9893 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
9894 (syms_of_xfaces): Defsubr Sdump_colors.
9895 (x_free_colors): Don't treat b&w specially on default visual.
9896 (x_free_dpy_colors): New function.
9897 (free_face_colors): Don't check visual class; it's done
9900 * xterm.c (x_frame_of_widget): New function.
9901 (x_alloc_nearest_color_for_widget): Use it.
9902 (x_copy_dpy_color): New function.
9903 (x_destroy_window): Free various colors.
9905 2000-06-12 Kenichi Handa <handa@etl.go.jp>
9907 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
9909 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
9911 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
9913 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
9915 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
9917 2000-06-11 Dave Love <fx@gnu.org>
9919 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
9921 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
9923 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
9925 2000-06-11 Gerd Moellmann <gerd@gnu.org>
9927 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
9930 2000-06-10 Kenichi Handa <handa@etl.go.jp>
9932 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
9933 (regex_compile): Fix the code for handling the case of single byte
9934 char and multibyte char being mixed in a range within [...].
9936 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
9937 and dst_multibyte members of coding.
9939 * charset.c (update_charset_table): Update the table
9941 (init_charset_once): Initialize elements of bytes_by_char_head to
9942 1 except for leading codes for private charases.
9944 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
9945 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
9947 2000-06-09 Ken Raeburn <raeburn@gnu.org>
9949 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
9950 access the data it doesn't point to.
9952 2000-06-08 Gerd Moellmann <gerd@gnu.org>
9954 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
9955 will be translated to a switch-frame event when reading the
9956 event queue. This is necessary because Emacs otherwise won't
9957 perform a switch-frame to a new frame until some other event, for
9958 example a keystroke event, forces it to do so. This has various
9959 effects, one visible being that the cursor of a frame created with
9960 C-x 5 2 or switched to with a window manager key binding like
9961 A-TAB stays hollow because selected_window isn't on the newly
9962 focused frame until the switch-frame is performed.
9964 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
9965 generating a switch-frame event if necessary.
9967 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
9969 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
9972 2000-06-08 Kenichi Handa <handa@etl.go.jp>
9974 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
9976 2000-06-07 Gerd Moellmann <gerd@gnu.org>
9978 * window.c (displayed_window_lines): Take empty lines at
9979 the bottom of a window into account.
9981 * window.c (displayed_window_lines): New function.
9982 (Fmove_to_window_line): Use displayed_window_lines to determine
9983 the number of lines to move, instead of using the window's height.
9985 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
9986 to stop reading, even if the form read sets point to a different
9987 value when evaluated.
9989 * xdisp.c (display_line): Fix code deciding in which line to
9992 2000-06-07 Kenichi Handa <handa@etl.go.jp>
9994 * fileio.c (e_write): Free composition data if stored in
9997 2000-06-06 Gerd Moellmann <gerd@gnu.org>
9999 * xdisp.c (display_line): Set row's and iterator's
10000 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
10001 Set cursor even if row ends in the middle of a character.
10002 (dump_glyph_row): Print values of new flags.
10003 (redisplay_window) <cursor movement in unchanged window>: When
10004 point has been moved forward, and PT is at the end of the cursor
10005 row, don't place the cursor in the next row if the cursor row ends
10006 in the middle of a character or at ZV.
10008 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
10009 (struct glyph_row): Add starts_in_middle_of_char_p and
10010 ends_in_middle_of_char_p.
10011 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
10012 ends_in_middle_of_char_p flag.
10013 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
10015 * term.c (append_glyph): Revert change of 2000-06-06.
10017 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
10018 padding glyph not fitting on line as whole character not
10021 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
10022 this isn't true for images with `:ascent 100'.
10024 2000-06-06 Kenichi Handa <handa@etl.go.jp>
10026 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
10027 as modified if it is originally unmodified.
10029 * term.c (encode_terminal_code): Change the way to check if
10030 terminal coding does any conversion.
10031 (append_glyph): Set glyph->pixel_width correctly.
10033 * xdisp.c (display_line): While checking line continuation, pay
10034 attention to a padding glyph.
10036 2000-06-05 Gerd Moellmann <gerd@gnu.org>
10038 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
10040 2000-06-05 Dave Love <fx@gnu.org>
10042 * xdisp.c: Include fontset.h.
10044 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
10046 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10048 * dispnew.c: Conditionally include term.h.
10050 * coding.h: Declare code_convert_string_norecord.
10052 * frame.h (struct frame): Use volatile unconditionally.
10054 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
10056 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
10058 * systime.h: Protect against multiple inclusion.
10059 (timezone) [USG5_4]: Define as time_t.
10061 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10062 (Foptimize_char_table, make_temp_name): Declare.
10064 * Makefile.in (xdisp.o): Depend on fontset.h.
10066 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10068 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10069 (Foptimize_char_table, make_temp_name): Declare.
10073 * s/netbsd.h: Don't define autoconfiscated MATHERR.
10075 2000-06-02 Dave Love <fx@gnu.org>
10077 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
10079 2000-06-02 Gerd Moellmann <gerd@gnu.org>
10081 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
10082 result face, set flags in that face indicating that colors may not
10085 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
10086 glyph, use the ASCII NUL character to determine the face.
10088 2000-06-02 Dave Love <fx@gnu.org>
10090 * sysdep.c: Conditionally include stdlib.h, unistd.h.
10091 (VFORK_RETURN_TYPE): Remove.
10093 * config.in: Add NO_MATHERR.
10095 2000-06-01 Dave Love <fx@gnu.org>
10097 * cmds.c (internal_self_insert): Don't check
10098 Vbefore_change_function, Vafter_change_function.
10100 * insdel.c (signal_before_change, signal_after_change): Likewise.
10102 * buffer.c (Vbefore_change_function, Vafter_change_function):
10103 Variables and their initializations deleted.
10105 * callint.c (Fcall_interactively): Doc fix.
10107 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
10109 2000-05-31 Dave Love <fx@gnu.org>
10111 * textprop.c: Revert last change -- duplicated.
10113 2000-05-31 Gerd Moellmann <gerd@gnu.org>
10115 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
10118 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
10120 2000-05-31 Jason Rumney <jasonr@gnu.org>
10122 * search.c (Fre_search_forward, Fre_search_backward)
10123 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
10125 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
10127 2000-05-30 Jason Rumney <jasonr@gnu.org>
10129 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
10130 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
10132 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
10134 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
10135 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
10136 expand a nil default_filename.
10138 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
10139 pointer to glyph_to_pixel_coords, not a frame.
10141 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
10142 coding.h to dependencies.
10144 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
10146 * w32console.c (glyph_to_pixel_coords): Change first parameter to
10147 window pointer to be consistent with w32term.c and xterm.c.
10149 * w32fns.c: Format and doc changes to bring closer to xfns.c.
10150 (VIETNAMESE_CHARSET): Define if not defined in system headers.
10151 (Qline_spacing, Qcenter): New variables.
10152 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
10153 (x_set_line_spacing): New function.
10154 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
10155 (x_specified_cursor_type): New function.
10156 (x_set_cursor_type): Use it.
10157 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
10159 (validate_x_resource_name, x_get_resource_string): Measure lengths
10160 of external strings in bytes.
10161 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
10162 GetTextExtentPoint32 with NULL title.
10163 (Fx_create_frame): Initialize Qline_spacing.
10164 (w32_load_system_font): Initialize font->double_byte_p.
10165 (x_to_w32_charset): Use Vw32_charset_info_alist.
10166 (Image, busy cursor, tooltip functions): Merged changes from
10167 xfns.c. Not yet functional on Windows.
10169 * w32gui.h (W32FontStruct): Add double_byte_p member.
10171 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
10172 (emacs_button_translation): Use it.
10173 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
10174 in `mask' to be set.
10176 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
10179 * w32term.c: Format and doc changes to bring closer to xterm.c.
10180 (w32_char_font_type): New enum.
10181 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
10182 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
10183 (w32_encode_char): New function.
10184 (x_encode_char): Removed.
10185 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
10186 x_encode_char and w32_font_is_double_byte.
10187 (x_produce_image_glyph): Use image_ascent.
10188 (x_produce_glyphs): Use new version of w32_per_char_metric and
10189 handle NULL return value. Allow extra line spacing.
10190 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
10191 (w32_get_glyph_overhangs): Remove unicode_p param. Use
10192 w32_font_type member of glyph instead.
10193 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
10194 (fast_find_position): Make sure not to consider rows not visible
10196 (w32_read_socket) [WM_MENUSELECT]: Cannot call
10197 w32_menu_display_help with input blocked, as it can abort.
10198 (x_display_and_set_cursor): Choose cursor depending
10199 on buffer-local value of cursor_type.
10200 (x_draw_bar_cursor): Add parameter WIDTH.
10202 * w32term.h (CP_DEFAULT): Define.
10203 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
10205 2000-05-30 Gerd Moellmann <gerd@gnu.org>
10207 * search.c (Fre_search_forward, Fre_search_backward)
10208 (Fposix_search_backward, Fposix_search_forward): Doc fix.
10210 2000-05-30 Kenichi Handa <handa@etl.go.jp>
10212 * coding.c (detect_coding_iso2022): Fix code for checking
10213 CODING_CATEGORY_MASK_ISO_8_2.
10215 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
10217 * regex.c (PREFETCH_NOLIMIT): New function.
10218 (re_match_2_internal): Use it and adjust the end_match_2 logic.
10220 2000-05-29 Gerd Moellmann <gerd@gnu.org>
10222 * syntax.c (find_defun_start): Move test for
10223 open_paren_in_column_0_is_defun_start outside of the loop.
10225 * xdisp.c (redisplay_window): Really switch buffers when
10226 displaying mode lines, and temporarily set selected_frame to the
10227 frame of the window that's redisplayed.
10229 * xfaces.c (free_realized_faces): Block/unblock input.
10230 (free_realized_multibyte_face): Ditto.
10232 2000-05-29 Dave Love <fx@gnu.org>
10234 * textprop.c (Qkeymap): New variable.
10235 (syms_of_textprop): Intern it.
10237 * keymap.c: Include intervals.h.
10238 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
10240 * Makefile.in (keymap.o): Depend on intervals.h.
10242 * keyboard.c (menu_bar_items, tool_bar_items)
10243 (Fexecute_extended_command): Deal with `keymap' property.
10244 (read_key_sequence): Track map from `keymap' property as well as
10247 * intervals.c (get_local_map): Extra arg to allow looking for
10250 * intervals.h (map_property): New enum.
10251 (get_local_map): Extra arg using it.
10252 (Qkeymap): Declare.
10254 * lisp.h (get_local_map): Don't declare here.
10256 2000-05-29 Kenichi Handa <handa@etl.go.jp>
10258 * Makefile.in (callproc.o): Depend on composite.h.
10260 * callproc.c: Include composite.h.
10261 (Fcall_process): Handle composition correctly.
10263 * coding.h (coding_allocate_composition_data): Extern it.
10264 (coding_restore_composition): Likewise.
10266 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
10267 yet allocated, finish decoding with result
10268 CODING_FINISH_INSUFFICIENT_CMP.
10269 (coding_allocate_composition_data): Make it non-static.
10270 (coding_restore_composition): Likewise.
10272 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
10274 * charset.c (syms_of_charset): Revert last change.
10276 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10278 * term.c (produce_glyphs): Treat characters from the eight-bit-*
10279 charsets as unibyte, with 1-column screen width. Sent by Kenichi
10282 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10284 * charset.c (syms_of_charset): Set width of character sets
10285 eight-bit-control and eight-bit-graphic to 1 column.
10287 2000-05-26 Gerd Moellmann <gerd@gnu.org>
10289 * config.in (HAVE_SPEED_T): New define.
10291 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
10294 2000-05-26 Dave Love <fx@gnu.org>
10296 * coding.c (shrink_decoding_region): Initialize eol_conversion.
10298 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
10299 (Fsubr_arity): New function.
10300 (syms_of_data): Install them.
10302 2000-05-26 Kenichi Handa <handa@etl.go.jp>
10304 * charset.c (init_charset_once): Set the table bytes_by_char_head
10307 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
10308 the default fontset to what Emacs uses by default.
10309 (check_registry_encoding): This function deleted.
10310 (Fset_fontset_font): Remove the adhoc condition for the default
10311 fontset. Allow cons in FONTNAME.
10313 * fns.c (map_char_table): Ignore char-table entries for
10314 charsets eight-bit-control and eight-bit-graphic.
10316 2000-05-25 Ken Raeburn <raeburn@gnu.org>
10318 * emacs.c (main): Initialize keyboard syms before initializing
10319 window code, so face names are available.
10321 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
10323 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
10324 of an anchor at the beginning of a shy-group.
10326 2000-05-25 Gerd Moellmann <gerd@gnu.org>
10328 * xdisp.c (handle_invisible_prop): Don't try to skip over
10329 invisible text if end of text is already reached.
10331 2000-05-25 Dave Love <fx@gnu.org>
10333 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
10335 * coding.c (encode_eol): Add null statement after label.
10337 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
10339 * w16select.c (Fw16_set_clipboard_data): Fix the change from
10342 2000-05-25 Kenichi Handa <handa@etl.go.jp>
10344 * ccl.c (ccl_driver): Fix previous change.
10346 2000-05-25 Kenichi Handa <handa@etl.go.jp>
10348 * coding.c (run_pre_post_conversion_on_str): Set point to the
10349 beginning of buffer before calling coding->post_read_conversion.
10350 (decode_coding_string): Give correct args to
10351 run_pre_post_conversion_on_str.
10352 (encode_coding_string): Likewise.
10354 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
10355 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
10356 eight-bit-graphic correctly.
10358 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
10360 * fileio.c (Finsert_file_contents): Even if a file is not found,
10361 execute codes for setting up coding system. Call
10362 after-insert-file-functions unconditionally.
10364 2000-05-24 Gerd Moellmann <gerd@gnu.org>
10366 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
10367 BSD_PGRPS are not defined.
10369 2000-05-24 Kenichi Handa <handa@etl.go.jp>
10371 * charset.c (update_charset_table): Accept nil in LONG_NAME and
10373 (syms_of_charset): Avoid building same strings.
10375 2000-05-23 Gerd Moellmann <gerd@gnu.org>
10377 * lread.c (Fload): Add a comment about the meaning of
10378 Vuser_init_file being t.
10380 * puresize.h (BASE_PURESIZE): Increase to 675000.
10382 * s/gnu-linux.h (setpgrp): Don't define it here because this
10383 prevents compilation on GNU/Linux systems with glib 2.2.
10385 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
10388 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
10390 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
10391 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
10393 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
10395 2000-05-23 Kenichi Handa <handa@etl.go.jp>
10397 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10399 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
10401 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
10403 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
10405 2000-05-22 Kenichi Handa <handa@etl.go.jp>
10407 * keyboard.c (read_char): Allow character codes 128..255 to be
10408 handled by input-method-function.
10410 * insdel.c (adjust_markers_for_replace): Fix previous change.
10411 (adjust_after_replace): If PREV_TEXT is nil, call
10412 adjust_markers_for_insert, not adjust_markers_for_replace.
10414 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
10416 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
10417 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
10418 [HAVE_GRANDPT]: Define.
10419 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
10421 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
10424 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
10426 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
10428 2000-05-20 Kenichi Handa <handa@etl.go.jp>
10430 The following changes are to handle 8-bit characters in a
10431 multibyte buffer/string without facing with byte combining
10432 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
10433 eight-bit-graphic (for 0xA0..0xFF) are introduced.
10435 * Makefile.in (fns.o): Depend on charset.h.
10437 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
10438 convert it to unibyte.
10439 (make_string): Use parse_str_as_multibyte, not chars_in_text.
10441 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
10442 apparent char boundary.
10443 (Fset_buffer_multibyte): Convert 8-bit characters in the range
10444 0x80..0x9F to/from multibyte form.
10446 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
10449 * callproc.c (Fcall_process): Always encode an argument string if
10450 it is multibyte. Setup src_multibyte and dst_multibyte members of
10451 process_coding properly.
10453 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
10454 SPLIT_NON_ASCII_CHAR.
10456 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
10458 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
10460 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
10461 (SPLIT_CHARACTER_SEQ): This macro deleted.
10462 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
10463 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
10464 and eight-bit-graphic.
10465 (char_to_string): Likewise. Signal an error for too large
10467 (char_printable_p): Return 0 for 8-bit characters.
10468 (update_charset_table): Update iso_charset_table only when a final
10469 character is non-negative.
10470 (find_charset_in_text): Renamed from find_charset_in_str.
10471 Arguments and return value changed. Callers changed.
10472 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
10473 be -1 if CHARSET is used only internally.
10474 (Fmake_char_internal): Handle new charsets; eight-bit-control and
10476 (Fcharset_after): Simplified.
10477 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
10478 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
10479 (multibyte_chars_in_text): Simplified by assuming there's no
10480 invalid multibyte sequence.
10481 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10482 (str_as_unibyte): New functions.
10483 (Fstring): Simpified by assuming that byte combining never happens.
10484 (init_charset_once): Initialization for
10485 LEADING_CODE_8_BIT_CONTROL.
10486 (syms_of_charset): Intern and staticpro Qeight_bit_control and
10487 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
10488 eight-bit-control and eight-bit-graphic.
10490 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
10491 (CHARSET_8_BIT_GRAPHIC): New macros.
10492 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
10493 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
10494 (CHARSET_REVERSE_CHARSET): Likewise.
10495 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
10497 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
10498 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
10499 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
10500 encounter an invalid multibyte sequence.
10501 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
10502 sequence is always valid.
10503 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
10504 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
10505 (CHAR_STRING): For 8-bit characters, call char_to_string.
10506 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
10507 multibyte sequence is always valid.
10508 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
10509 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10510 (str_as_unibyte): Extern them.
10511 (BCOPY_SHORT): Fix a bug.
10512 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
10513 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
10514 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
10515 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
10517 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
10518 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
10519 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
10520 (EMIT_BYTES): New macros.
10521 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
10522 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
10524 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
10525 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
10526 check the validity of multibyte sequence.
10527 (decode_coding_emacs_mule): New function.
10528 (encode_coding_emacs_mule): New macro.
10529 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
10531 (DECODE_ISO_CHARACTER): Just return a character code.
10532 (DECODE_COMPOSITION_START): Set coding->result instead of result.
10533 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
10534 EMIT_CHAR to produced decoded characters. Exit the loop only by
10535 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
10537 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
10538 only position codes for an invalid character.
10539 (encode_designation_at_bol): Return new destination pointer. 5th
10540 arg DSTP is changed to DST.
10541 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
10542 from the source by ONE_MORE_CHAR. Don't handle the case of last
10544 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
10546 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
10547 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
10548 TWO_MORE_BYTES to fetch a byte from the source.
10549 (encode_eol): Pay attention to coding->src_multibyte.
10550 (detect_coding, detect_eol): Preserve members src_multibyte and
10552 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
10553 (encoding_buffer_size): Set magnification to 3 for all coding
10554 systems that require encoding.
10555 (ccl_coding_driver): For decoding, be sure that the result is
10556 valid multibyte sequence.
10557 (decode_coding): Initialize coding->errors and coding->result.
10558 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
10559 and raw-text, always call decode_eol. Handle the case of last
10560 block here. If not coding->dst_multibyte, convert the resulting
10561 sequence to unibyte.
10562 (encode_coding): Initialize coding->errors and coding->result.
10563 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
10564 and raw-text, always call encode_eol. Handle the case of last
10566 (shrink_decoding_region, shrink_encoding_region): Detect cases
10567 that we can't skip data more rigidly.
10568 (code_convert_region): Setup src_multibyte and dst_multibyte
10569 members of coding. For decoding, if the buffer is multibyte,
10570 convert the source sequence to unibyte in advance. For encoding,
10571 if the buffer is multibyte, convert the resulting sequence to
10572 multibyte afterward.
10573 (run_pre_post_conversion_on_str): New function.
10574 (code_convert_string): Deleted and divided into the following two.
10575 (decode_coding_string, encode_coding_string): New functions.
10576 (code_convert_string1, code_convert_string_norecord): Call one of
10578 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
10579 MAKE_NON_ASCII_CHAR.
10580 (Fset_terminal_coding_system_internal)
10581 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
10582 and dst_multibyte members.
10583 (init_coding_once): Initialize iso_code_class with new enum
10584 ISO_control_0 and ISO_control_1.
10586 * coding.h (enum iso_code_class_type): Member ISO_control_code is
10587 devided into ISO_control_0 and ISO_control_1.
10588 (struct coding_system): New members src_multibyte, dst_multibyte,
10589 errors, and result. Delete member fake_multibyte.
10590 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
10592 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
10595 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
10598 * editfns.c (Fformat): Be sure to convert 8-bit characters to
10600 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
10602 (Ftranspose_region): Delete codes for handling byte combining.
10604 * fileio.c (Finsert_file_contents): Setup src_multibyte and
10605 dst_multibyte members of coding. On handling REPLACE on unibyte
10606 buffer, convert the result of decode_coding to unibyte. On
10607 inserting into a mutibyte buffer, always call code_convert_region.
10608 (e_write): Setup coding->src_multibyte according to the
10609 multibyteness of the source (buffer or string).
10611 * fns.c (concat): Handle 8-bit characters correctly.
10612 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
10613 unibyte in the result.
10614 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
10615 valid multibyte form in the result.
10616 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
10617 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
10618 return -1, signal an error.
10619 (base64_encode_1): New arg MULTIBYTE. Get each character by
10620 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
10621 character is found, return -1.
10622 (Fbase64_decode_region): Delete codes for handling byte-combining.
10623 Treat each decoded byte as a unibyte character.
10624 (Fbase64_decode_string): Return unibyte string.
10625 (Fcompare_strings, concat, string_byte_to_char): Use
10626 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
10627 FETCH_STRING_CHAR_ADVANCE.
10628 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10629 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
10631 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
10632 SPLIT_NON_ASCII_CHAR.
10633 (fontset_ref_via_base, fontset_set): Likewise
10635 * insdel.c (adjust_markers_for_record_delete): Deleted.
10636 (adjust_markers_for_insert): Argument changed. Caller changed.
10637 (adjust_markers_for_replace): Likewise.
10638 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
10639 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
10640 (copy_text): Delete unused local varialbe c_save. For converting
10641 to multibyte, be sure to make all 8-bit characters in valid
10643 (count_size_as_multibyte): Handle 8-bit characters correctly.
10644 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10645 (adjust_after_replace, replace_range, del_range_2)
10646 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
10647 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10648 (adjust_after_replace, replace_range, del_range_2) Delete codes for
10649 handling byte combining.
10650 (adjust_before_replace): Deleted.
10652 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
10653 SPLIT_NON_ASCII_CHAR.
10654 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
10655 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10656 (Fkey_description): Likewise.
10658 * lread.c (read1): On reading multibyte string, be sure to make
10659 all 8-bit chararacters in valid multibyte form.
10660 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10662 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
10665 * process.c (Fstart_process): GCPRO current_dir before calling
10666 Ffind_operation_coding_system. Encode arguments here.
10667 (create_process): Don't encode arguments here. Setup
10668 src_multibyte and dst_multibyte members of struct coding.
10669 (read_process_output): Setup src_multibyte and dst_multibyte
10670 members of struct coding. If the output is to multibyte buffer,
10671 always decode the output of the process. Adjust the
10672 representation of 8-bit characters to the multibyteness of the output.
10673 (send_process): Setup coding->src_multibyte according to the
10674 multibyteness of the source.
10676 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10677 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
10678 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
10680 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
10682 * w16select.c (Fw16_set_clipboard_data): Setup members
10683 src_multibyte and dst_multibyte of coding. Adjusted for the
10684 change for find_charset_in_str.
10685 (Fw16_get_clipboard_data): Likewise.
10687 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
10688 dst_multibyte of coding.
10689 (x_to_w32_font): Likewise.
10691 * w32select.c (Fw32_set_clipboard_data): Setup members
10692 src_multibyte and dst_multibyte of coding. Adjusted for the
10693 change for find_charset_in_str.
10694 (Fw32_get_clipboard_data): Likewise.
10696 * xdisp.c (get_next_display_element): Handle 8-bit characters
10698 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
10699 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
10701 * xselect.c (selection_data_to_lisp_data): Setup members
10702 src_multibyte and dst_multibyte of coding. Adjusted for the
10703 change for find_charset_in_str.
10704 (lisp_data_to_selection_data): Likewise.
10706 2000-05-19 Gerd Moellmann <gerd@gnu.org>
10708 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
10710 * dispextern.h (Vimage_types): Add extern declaration.
10712 * xdisp.c (Vimage_types): Moved here from xfns.c.
10713 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
10715 * xfns.c (Vimages_types): Moved to xdisp.c.
10716 (syms_of_xfns): Move `image-types' to xdisp.c.
10718 * w32fns.c (Vimage_types): Removed.
10719 (syms_of_w32fns): Remove `image-types'.
10721 2000-05-18 Kenichi Handa <handa@etl.go.jp>
10723 * fns.c (map_char_table): Pay attention to character number of
10724 charset. Check the validity of charset at the first level. For
10725 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
10728 * fontset.c: Include "buffer.h".
10729 (fs_load_font): If the face has fontset, record the face ID in
10731 (Finternal_char_font): New function.
10732 (accumulate_font_info): New function.
10733 (Ffontset_info): Rewritten for the new fontset implementation.
10734 (syms_of_fontset): Register Vdefault_fontset in the first element
10735 of Vfontset_table. Include Vdefault_fontset in
10736 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
10739 2000-05-16 Dave Love <fx@gnu.org>
10741 * m/iris5d.h: Deleted -- unused.
10743 2000-05-16 Gerd Moellmann <gerd@gnu.org>
10745 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
10746 `invalid' instead of `illegal'.
10748 * indent.c (Fmove_to_column): When ending within a tab, insert
10749 spaces first so that markers at the end of the tab get adjusted.
10751 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
10752 buffer list that wasn't selected in that frame.
10754 * filelock.c (get_boot_time): To obtain an 8 char file name, which
10755 is needed on mescaline, use a 2 char prefix, and call
10756 make_temp_name with second arg non-zero.
10758 * fileio.c (make_temp_name): New function, extracted from
10760 (Fmake_temp_name): Use it.
10762 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10764 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
10766 2000-05-15 Gerd Moellmann <gerd@gnu.org>
10768 * Makefile.in (lisp): Add env.elc.
10770 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
10772 2000-05-12 Gerd Moellmann <gerd@gnu.org>
10774 * search.c (Freplace_match): Handle case of `\N' in the
10775 replacement when there's no group N.
10777 2000-05-11 Gerd Moellmann <gerd@gnu.org>
10779 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
10780 of the message to message_dolog.
10782 * keyboard.c (read_char): Don't clear current message for help
10783 events; let the code handling help events handle this. Change
10784 code detecting help events that should be ignored.
10786 * xdisp.c (handle_single_display_prop): Don't try to set PT if
10787 we're interating over a string.
10789 2000-05-09 Dave Love <fx@gnu.org>
10791 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
10792 that offset before writing. Move gcpro region past call of
10795 2000-05-04 Dave Love <fx@gnu.org>
10797 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
10799 2000-05-04 Gerd Moellmann <gerd@gnu.org>
10801 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
10802 of inserted characters when BUF equals the current buffer, and PT
10803 is in front of or equal to FROM.
10805 2000-05-03 Gerd Moellmann <gerd@gnu.org>
10807 * xdisp.c (handle_single_display_prop): If display property value
10808 is invalid, or something not supported on the frame, restore
10809 iterator's position to what it was initially. Make sure to return
10810 0 for invalid and unsupported property values.
10812 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
10813 that x_per_char_metric returns null.
10815 2000-05-02 Gerd Moellmann <gerd@gnu.org>
10817 * xterm.h (struct face): Add forward declaration.
10818 (struct image): Ditto.
10819 (image_ascent): Add prototype.
10821 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
10822 (x_draw_image_relief, x_draw_image_foreground_1): Call function
10823 image_ascent instead of using IMAGE_ASCENT.
10825 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
10826 (IMAGE_ASCENT): Removed.
10828 * xfns.c (Qcenter): New variable.
10829 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
10830 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
10831 (image_ascent): New function.
10832 (lookup_image): Recognize `:ascent center'.
10833 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
10834 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10835 (xbm_load): Don't set image's ascent here.
10836 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
10837 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
10838 check ascent values here.
10839 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
10840 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
10841 (syms_of_xfns): Initialize Qcenter.
10843 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
10844 to the limits, increase the limits.
10846 2000-05-01 Kenichi Handa <handa@etl.go.jp>
10848 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
10849 Check Vfont_encoding_alist against the full name of the opened font.
10851 2000-04-28 Gerd Moellmann <gerd@gnu.org>
10853 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
10854 taller than the window.
10856 2000-04-28 Kenichi Handa <handa@etl.go.jp>
10858 * xfaces.c (realize_x_face): Fix the argument of the second
10859 xassert. BASE_FACE may not be a face for ASCII.
10861 2000-04-27 Gerd Moellmann <gerd@gnu.org>
10863 * print.c (print_object): Treat print-length < 0 as nil.
10865 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
10867 * s/freebsd.h (TERMCAP_OBJ): Removed.
10868 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
10870 * lread.c (read1): Don't treat period followed by certain
10871 characters as symbol start.
10873 * xfns.c (slurp_file): New function.
10874 (xbm_image_p): Handle case of in-memory XBM files.
10875 (xbm_scan): Rewritten to work on memory buffers instead of files.
10876 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
10877 Work on memory buffers instead of files. If DATA is null test
10878 if buffer looks like an in-memory XBM file.
10879 (xbm_load_image): Renamed from xbm_load_image_file. Work on
10880 memory buffers instead of files.
10881 (xbm_file_p): New function.
10882 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
10884 * lread.c (end_of_file_error): New function.
10885 (read1): Call it instead of signaling `end-of-file' directly.
10887 * print.c (print_error_message): Print data of `end-of-file'
10888 with Fprinc instead of Fprin1.
10890 2000-04-26 Ken Raeburn <raeburn@gnu.org>
10892 * window.c (freeze_window_start): Check that minibuffer scroll
10893 window isn't nil before extracting the window structure pointer
10896 * undo.c (record_delete): If we hit the end of the undo list, stop
10897 picking elements apart.
10899 2000-04-26 Gerd Moellmann <gerd@gnu.org>
10901 * xdisp.c (display_line): If lines are continued, restore
10902 iterator's ascent/descent information to the values before the
10903 first glyph not fitting on the line.
10905 2000-04-25 Gerd Moellmann <gerd@gnu.org>
10907 * xdisp.c (try_window_id) <all changes above window start>: Adjust
10908 positions in glyph matrix. Don't compute new window end positions.
10910 * dispnew.c (increment_matrix_positions): Renamed from
10911 increment_glyph_matrix_buffer_positions.
10912 (increment_row_positions): Renamed from
10913 increment_glyph_row_buffer_positions.
10915 * dispextern.h: Change names of renamed functions from dispnew.c
10918 2000-04-24 Gerd Moellmann <gerd@gnu.org>
10920 * fileio.c (Fdo_auto_save): Create directories for auto-save
10921 list file if necessary.
10923 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
10924 from buffer or frame.
10925 (automatic_hscrolling_p): New variable.
10926 (hscroll_windows): Scroll windows horizontally only if automatic
10927 hscrolling is allowed.
10928 (syms_of_xdisp): New variable `automatic-hscrolling'.
10930 * frame.h (struct frame): Add member extra_line_spacing.
10932 * xfns.c (x_set_line_spacing): New function.
10933 (Fx_create_frame): Set line spacing from resources.
10934 (Qline_spacing): New variable.
10935 (syms_of_xfns): Initialize Qline_spacing.
10937 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
10939 * buffer.c (init_buffer_once): Handle extra_line_spacing.
10940 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
10941 (reset_buffer): Don't initialize extra2 and extra3. Initialize
10942 extra_line_spacing from default value.
10943 (init_buffer_once): Initialize default value of extra_line_spacing.
10945 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
10948 * xterm.c (x_produce_glyphs): Remove reference to struct it's
10949 prompt_width. Add extra line spacing.
10951 * term.c (produce_glyphs): Remove reference to struct it's
10954 * dispextern.h (struct it): Remove member prompt_width, add
10955 extra_line_spacing.
10957 2000-04-22 Gerd Moellmann <gerd@gnu.org>
10959 * dispnew.c (update_frame_line): When writing a whole line, make
10960 sure cursor is in the right row afterwards, otherwise a use of
10961 capability `ch' in cmgoto might leave the cursor in the row below.
10963 2000-04-21 Gerd Moellmann <gerd@gnu.org>
10965 * lisp.h (struct Lisp_Buffer_Cons): Remove.
10967 * keyboard.c (timer_check): Fix typo in comment.
10969 2000-04-21 Kenichi Handa <handa@etl.go.jp>
10971 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
10972 name change: ch -> character.
10974 2000-04-20 Gerd Moellmann <gerd@gnu.org>
10976 * keyboard.c (echo_message_buffer): New variable.
10977 (echo_now): Set echo_message_buffer to the echo area buffer used
10978 to display the echo.
10979 (cancel_echoing): Reset echo_message_buffer to nil.
10980 (read_char): Code rewritten that handles canceling an echo or
10981 echoing a dash, respectively.
10983 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
10984 directory doesn't exist.
10986 2000-04-19 Dave Love <fx@gnu.org>
10988 * fns.c (syms_of_fns): Defsubr mapc.
10989 (concat): Don't allow numeric args.
10990 (Fconcat): Doc change.
10992 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
10994 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
10995 instead define end_match(1|2) more carefully.
10996 Use GET_CHAR_BEFORE_2 for `begline'.
10998 2000-04-19 Gerd Moellmann <gerd@gnu.org>
11000 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
11001 on 64-bit systems where NULL is defined as `0'.
11003 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
11004 the `variable argument list' to make it work on Alpha.
11006 * m/alpha.h (_LP64) [!_LP64]: Define.
11007 (ORDINARY_LINK): Define for NetBSD.
11009 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
11011 2000-04-19 Dave Love <fx@gnu.org>
11013 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
11016 * Makefile.in (LIBS): Don't use.
11017 (GETLOADAVG_OBJ): Define again.
11018 (otherobj): Add GETLOADAVG_OBJ.
11020 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
11022 2000-04-18 Gerd Moellmann <gerd@gnu.org>
11024 * lread.c (read_filtered_event): Cancel and start busy cursor.
11026 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
11027 that the per-character metrics may be null.
11029 2000-04-17 Gerd Moellmann <gerd@gnu.org>
11031 * buffer.c (clone_per_buffer_values): New function.
11032 (Fmake_indirect_buffer): Add optional argument CLONE. Call
11033 clone_per_buffer_values if CLONE is not nil.
11035 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
11037 2000-04-16 Dave Love <fx@gnu.org>
11039 * Makefile.in: Remove obsolete localcpp stuff.
11040 (GETLOADAVG_OBJ): Don't define.
11041 (obj): Move LIBOBJS...
11042 (otherobj): ... to here.
11043 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
11044 whitespace-only lines after the continuation (Irix).
11046 2000-04-14 Gerd Moellmann <gerd@gnu.org>
11048 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
11050 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
11052 2000-04-14 Dave Love <fx@gnu.org>
11054 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
11055 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
11056 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
11057 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
11060 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
11061 autoconfiscated HAVE_GETLOADAVG.
11063 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
11066 2000-04-14 Gerd Moellmann <gerd@gnu.org>
11068 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
11069 (fill_in_lock_file_name): Avoid existing files that aren't links.
11071 2000-04-14 Dave Love <fx@gnu.org>
11073 * Makefile.in (LIBS, LIBOBJS): New variable.
11074 (INTERVAL_SRC): Convert to make variable.
11075 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
11076 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
11077 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
11079 (SOME_MACHINE_OBJECTS): Remove interval stuff.
11080 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
11081 (shortlisp): Add facemenu, float-sup, frame.
11082 (SOME_MACHINE_LISP): Remove them from here.
11083 (LIBES): Change unused LDLIBS to autoconf LIBS.
11085 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
11087 2000-04-14 Kenichi Handa <handa@etl.go.jp>
11089 * composite.c (update_compositions): If FROM and TO are not in a
11090 valid range, do nothing.
11092 2000-04-13 Gerd Moellmann <gerd@gnu.org>
11094 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
11096 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
11098 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
11101 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11103 * fileio.c (a_write): Remove redundant semi-colons.
11104 (e_write): Return -1 if failed to write all the data.
11105 This fixes the changes made at 1999-12-15.
11107 2000-04-12 Dave Love <fx@gnu.org>
11109 * fns.c (mapcar1): Test for null vals to support mapc.
11110 (Fmapc): New function.
11112 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
11114 * msdos.c (NUM_MOUSE_BUTTONS): Define.
11115 (IT_frame_up_to_date): Support the buffer local value of
11116 cursor-type, if defined.
11118 2000-04-10 Dave Love <fx@gnu.org>
11120 * editfns.c (preceding-char, following-char): Doc fix.
11122 2000-04-10 Ken Raeburn <raeburn@gnu.org>
11124 * Makefile.in (temacs): Revert 2000-03-12 change.
11126 2000-04-10 Jason Rumney <jasonr@gnu.org>
11128 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
11130 2000-04-10 Gerd Moellmann <gerd@gnu.org>
11132 * xdisp.c (setup_echo_area_for_printing): Choose an echo
11133 area buffer, if it's not set up yet.
11135 * indent.c (compute_motion): Set immediate_quit.
11137 2000-04-09 Gerd Moellmann <gerd@gnu.org>
11139 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
11140 (realize_tty_face): Suppress boldness if colors are the inverse of
11141 the default colors, and tty_suppress_bold_inverse_default_colors_p
11143 (Ftty_suppress_bold_inverse_default_colors): New function.
11144 (syms_of_xfaces): Defsubr it.
11146 * buffer.c (Frestore_buffer_modified_p): New function.
11147 (syms_of_buffer): Defsubr it.
11149 2000-04-08 Ken Raeburn <raeburn@gnu.org>
11151 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
11152 charset id (int) argument, not a charset (Lisp_Object).
11154 * coding.h (code_convert_string): Declare.
11155 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
11156 object, as the fourth argument to code_convert_string.
11158 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
11159 (Fset_fontset_font): Use EQ to compare lisp objects.
11161 2000-04-05 Ken Raeburn <raeburn@gnu.org>
11163 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
11164 a pointer that looks like a lisp object.
11165 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
11166 zero, instead see whether it's an integer object, since they can't
11168 (GET_INTERVAL_OBJECT): Simply assign to the destination.
11170 * dispnew.c (allocate_matrices_for_frame_redisplay)
11171 (direct_output_forward_char): Use X(U)INT and make_number as needed
11172 to convert between (unsigned) int values and lisp integers.
11173 * keyboard.c (read_key_sequence): Likewise.
11174 * lread.c (substitute_object_recurse): Likewise.
11175 * fns.c (concat, hash_lookup, hash_remove): Likewise.
11176 * minibuf.c (do_completion, Fminibuffer_complete_word)
11177 (Fminibuffer_completion_help): Likewise.
11178 * term.c (produce_special_glyphs): Likewise.
11180 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
11181 * print.c (print_preprocess, print_object): Likewise.
11183 * search.c (compile_pattern): Use NILP when checking for nil.
11185 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
11186 __OPTIMIZE__]: Provide a GNU C macro version that handles
11187 lisp-object unions.
11188 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
11189 field, to better cope with ENABLE_CHECKING and calls that modify a
11190 Lisp_Object using its old value.
11192 2000-04-04 Gerd Moellmann <gerd@gnu.org>
11194 * window.c (compare_window_configurations): Signal an error
11195 if parameters C1 or C2 aren't window configurations.
11197 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
11198 AFTER_POTENTIAL_GC calls around calls to functions that can
11199 signal an error and thus invoke the debugger.
11201 2000-04-03 Gerd Moellmann <gerd@gnu.org>
11203 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
11204 an error if decoding fails.
11206 * keyboard.c (lispy_mouse_names): Variable removed.
11207 (Vlispy_mouse_stem): New variable.
11208 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
11209 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
11210 for any mouse button number. Increase size of mouse_syms and
11211 button_down_location as needed. Call modify_event_symbol with
11212 different arguments.
11213 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
11214 Call modify_event_symbol with different arguments.
11215 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
11216 for any button number. Call modify_event_symbol with different
11218 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
11219 Accept a string for NAME_ALIST_OR_STEM.
11221 * lisp.h (larger_vector): Add prototype.
11223 * fns.c (larger_vector): Make externally visible.
11225 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
11227 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
11229 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
11230 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
11231 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
11232 we are between str1 and str2.
11233 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
11234 (PATFETCH): Use `TRANSLATE'.
11235 (PATFETCH_RAW): Fetch multibyte char if applicable.
11236 (PATUNFETCH): Remove.
11237 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
11238 When writing a char, write it directly into the pattern buffer rather
11239 than going needlessly through a temp char-array.
11240 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
11241 multibyte magic and remove the useless `#ifdef emacs'.
11242 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
11245 * regex.h (struct re_pattern_buffer): Make field `multibyte'
11246 conditional on `emacs'.
11248 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
11250 2000-04-01 Ken Raeburn <raeburn@gnu.org>
11252 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
11253 non-union-type versions of XMARK and friends here, because XMARK
11254 and friends won't work on an integer field if NO_UNION_TYPE is not
11256 (make_number): Define as a function if it's not defined as a macro.
11258 * composite.c (run_composite_function): Use NILP when checking for nil.
11259 (syms_of_composite): Delete local var NARGS, pass an int as first
11260 argument to Fmake_hash_table.
11262 * editfns.c (text_property_stickiness): Use NILP to test
11263 Lisp_Object boolean value.
11264 (Fmessage_or_box): Don't use NILP to test int variable.
11265 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
11266 problems reading from and changing the same lisp value in an
11269 2000-04-01 Gerd Moellmann <gerd@gnu.org>
11271 * term.c (TN_no_color_video): New variable.
11272 (term_init): Intitialize TN_no_color_video.
11273 (enum no_color_bit): New enumeration.
11274 (MAY_USE_WITH_COLORS_P): New macro.
11275 (turn_on_face): Use it to determine if attributes may be used
11276 combined with colors.
11278 2000-04-01 Ken Raeburn <raeburn@gnu.org>
11280 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
11281 with int lvalues via casts; instead, just yield lisp object lvalues.
11282 (enlarge_window): Variable sizep now points to Lisp_Object. Use
11283 proper accessor macros.
11284 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
11285 (grow_mini_window): Fix typo getting int value of root->height.
11287 * xdisp.c (compute_string_pos): Fix order of arguments to
11288 string_pos_nchars_ahead.
11289 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
11290 count arg to variable-arg routines like Frun_hook_with_args and
11292 (back_to_previous_visible_line_start)
11293 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
11294 fixed-arg routines like Fget_char_property and Fmake_string.
11295 (reconsider_clip_changes): Use XINT when comparing integer lisp
11296 objects, or passing them as int arguments.
11297 (mark_window_display_accurate, insert_left_trunc_glyphs)
11298 (append_space, extend_face_to_end_of_line): Use make_number when
11299 storing or passing integer values as lisp objects.
11300 (set_cursor_from_row, highlight_trailing_whitespace): Use
11301 INTEGERP, not implicit test against zero, for glyph object.
11302 (try_window_id): Don't use make_number when we want an int value.
11304 * xfaces.c (xlfd_symbolic_value): Make last argument a
11305 Lisp_Object, to be consistent with callers.
11306 (Fbitmap_spec_p): Use XINT to get numeric value of height.
11307 (lface_hash): Apply XFASTINT to lisp values before folding in.
11309 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
11310 fill in window width and height. Pass an int, not a lisp object,
11311 as first arg to Finsert.
11313 2000-04-01 Gerd Moellmann <gerd@gnu.org>
11315 * xfaces.c (realize_basic_faces): Block input while realizing
11318 * keyboard.c (lispy_mouse_names): Add additional mouse names.
11320 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
11322 2000-03-31 Gerd Moellmann <gerd@gnu.org>
11324 * xterm.c (x_produce_glyphs): When displaying unibyte text
11325 or ASCII, handle case that per-char metric is null.
11327 2000-03-30 Ken Raeburn <raeburn@gnu.org>
11329 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
11331 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
11332 (XSUBR, XBUFFER): Verify correct object type before returning
11333 pointer, using eassert.
11334 * frame.h (XFRAME): Likewise.
11336 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
11337 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
11338 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
11339 * data.c (set_internal): Likewise.
11340 * dispextern.h (WINDOW_WANTS_MODELINE_P)
11341 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
11342 * fileio.c (auto_save_1): Likewise.
11343 * insdel.c (check_markers): Likewise.
11344 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
11345 * undo.c (record_insert): Likewise.
11346 * vmsproc.c (child_sig): Likewise.
11347 * window.c (unshow_buffer, window_loop): Likewise.
11348 * xterm.c (x_erase_phys_cursor): Likewise.
11350 2000-03-30 Gerd Moellmann <gerd@gnu.org>
11352 * xfns.c (free_image_cache): Free the cache structure itself
11353 last, after all its members have been freed.
11355 * lisp.h (xstrdup): Add prototype.
11357 * alloc.c (xstrdup): Moved here from xfaces.c.
11358 (allocating_for_lisp): Variable removed.
11359 (lisp_malloc): Block input around the calls to malloc and mem_insert.
11361 * xfaces.c (realize_tty_face): Use find_symbol_value instead
11363 (xstrdup): Moved to alloc.c.
11365 2000-03-29 Ken Raeburn <raeburn@gnu.org>
11367 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
11369 * emacs.c (main): Fix sense of no-loadup test.
11371 * config.in (ENABLE_CHECKING): Undef.
11373 * lisp.h (struct interval): Replace "parent" field with a union of
11374 interval pointer and Lisp_Object; add new bitfield to use as
11375 discriminant. Change other flag fields to bitfields.
11376 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
11377 is defined and the supplied test fails, print a message and abort.
11378 (eassert): New macro. Use CHECK to provide an assert-like facility.
11380 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
11381 pointers; abort if the value looks like a lisp object.
11382 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
11383 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
11384 Modify for new interval parent definition.
11386 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
11387 (UNMARK_BALANCE_INTERVALS): Update references that need an
11388 addressable lisp object in the interval structure.
11389 (die): New function.
11390 (suppress_checking): New variable.
11392 * intervals.c (interval_start_pos): Just return 0 if there's no
11395 2000-03-29 Gerd Moellmann <gerd@gnu.org>
11397 * lread.c (read1): Accept `.' (period) as symbol start like in CL
11398 and earlier Emacs versions.
11400 * keyboard.c (Ftop_level): Cancel busy-cursor.
11402 * eval.c (call_debugger): Cancel busy-cursor.
11404 2000-03-29 Kenichi Handa <handa@etl.go.jp>
11406 * search.c (Freplace_match): Adjust multibyteness of the current
11407 buffer and NEWTEXT. Free allocated memory before signaling an error.
11409 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
11411 * regex.c (analyse_first): New function obtained by ripping out most
11412 of re_compile_fastmap and generalizing it a little bit so that it
11413 can also just return whether a given (sub)pattern can match the empty
11415 (regex_compile): Use `analyse_first' to decide whether the loop-check
11416 needs to be done or not for *, +, *? and +? (the loop check is costly
11417 for non-greedy repetition).
11418 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
11420 2000-03-28 Dave Love <fx@gnu.org>
11422 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
11424 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
11426 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
11428 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
11430 (enum re_opcode_t): Update description of succeed_n.
11431 (PATFETCH): Always define.
11432 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
11433 operators, char classes, shy-groups and intervals).
11434 Optimize special cases of intervals so as to only use succeed_n and
11435 jump_n when really needed.
11436 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
11437 that we don't have to handle the special cases any more.
11438 Simplify on_failure_jump handling as well.
11440 2000-03-28 Jason Rumney <jasonr@gnu.org>
11442 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
11444 2000-03-27 Gerd Moellmann <gerd@gnu.org>
11446 * s/freebsd.h (GC_SETJMP_WORKS): Define.
11448 * s/msdos.h (GC_SETJMP_WORKS): Define.
11450 * alloc.c (mark_maybe_object): New function.
11451 (mark_memory): Use it.
11452 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
11453 (setjmp_tested_p, longjmp_done): New variables.
11454 (test_setjmp): New function.
11455 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
11456 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
11458 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
11459 to DEC_TEXT_POS and INC_TEXT_POS.
11461 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
11462 with parameter MULTIBYTE_P.
11464 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
11466 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
11467 buffers because it looks for multibyte character byte sequences
11468 which don't exist in unibyte text.
11470 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
11472 * xfaces.c (register_color, unregister_color, unregister_colors)
11473 [DEBUG_X_COLORS]: New functions.
11474 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
11476 * xfns.c (x_set_cursor_color): Get color reference counts right.
11478 * xterm.c (x_copy_color): New function.
11479 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
11481 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
11482 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
11483 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
11484 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
11485 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
11486 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
11487 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
11488 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
11489 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
11490 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
11492 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
11493 names for handling per-buffer variables.
11495 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
11496 instead of MAX_BUFFER_LOCAL_VARS.
11497 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
11499 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
11501 * xfns.c (x_specified_cursor_type): New function.
11502 (x_set_cursor_type): Use it.
11504 * buffer.h (struct buffer): Add cursor_type.
11506 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
11508 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
11509 (print_partial_compiled_pattern, re_compile_fastmap):
11511 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
11512 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
11513 executing it as well as when popping it off the stack to find infinite
11514 loops in non-greedy repetition operators.
11516 2000-03-26 Gerd Moellmann <gerd@gnu.org>
11518 * doc.c (Qfunction_documentation): New variable.
11519 (syms_of_doc): Initialize Qfunction_documentation.
11520 (Fdocumentation): If FUNCTION is a symbol with non-nil
11521 `function-documentation' property, return a documentation derived
11524 * buffer.c (syms_of_buffer): Add default-cursor-type.
11525 (init_buffer_once): Don't let cursor_type have a local value
11528 * xterm.c (x_display_and_set_cursor): Choose cursor depending
11529 on buffer-local value of cursor_type.
11530 (x_draw_bar_cursor): Add parameter WIDTH.
11532 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
11533 (init_buffer_once): Set default cursor_type value to t.
11534 Mark cursor_type as local everywhere.
11535 (syms_of_buffer): New per-buffer variable cursor-type.
11537 * buffer.h (struct buffer): Remove member local_var_flags,
11539 (MAX_BUFFER_LOCAL_VARS): New macro.
11540 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
11541 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
11542 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
11543 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
11545 * print.c (print_object): Use new macros for per-buffer variables.
11547 * category.c (Fset_category_table): Use new macros for per-buffer
11550 * buffer.c (buffer_permanent_local_flags): Make a char array.
11551 (max_buffer_local_idx): New variable.
11552 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
11553 for new handling of per-buffer variables.
11554 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
11555 (init_buffer_once): Initialize per-buffer vars differently.
11556 Set max_buffer_local_idx.
11558 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
11561 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
11563 * data.c (do_symval_forwarding, store_symval_forwarding)
11564 (find_symbol_value, set_internal, default_value, Fset_default)
11565 (Fkill_local_variable, Flocal_variable_p): Use new macros for
11566 per-buffer variables.
11568 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
11570 2000-03-24 Gerd Moellmann <gerd@gnu.org>
11572 * xterm.c (x_term_init): Unblock input around call1 of
11573 Qvendor_specific_keysyms.
11575 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
11576 (find_defun_start): Consider an open parenthesis in column 0
11577 a defun start only if open_paren_in_column_0_is_defun_start is set.
11578 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
11580 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
11582 * eval.c (Fautoload): Add entry in load-history (if after dump).
11583 * lread.c (load-history): Update docstring.
11585 2000-03-24 Gerd Moellmann <gerd@gnu.org>
11587 * indent.c (Fvertical_motion): Always use the current buffer.
11588 Temporarily change the window's buffer, if necessary.
11590 2000-03-23 Gerd Moellmann <gerd@gnu.org>
11592 * xterm.c (fast_find_position): Make sure not to consider rows
11593 not visible in the window.
11595 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
11597 * regex.c (enum syntaxcode): Provide default for non-Emacs.
11598 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
11600 2000-03-22 Jason Rumney <jasonr@gnu.org>
11602 * w32menu.c (single_submenu): Set help string to NULL if none.
11603 (w32_menu_show): Set help string correctly.
11604 (add-menu-item): Set help string in MIIM_DATA for menu item.
11605 Load SetMenuItemInfoA explicitly.
11606 (w32_menu_display_help): New function.
11608 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
11609 (QCdata): Moved to xdisp.c.
11611 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
11612 (Vw32_charset_to_codepage_alist): Removed.
11613 (Vw32_charset_info_alist): New variable.
11614 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
11615 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
11616 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
11617 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
11619 (w32_codepage_for_font): Use Vw32_charset_info_alist.
11620 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
11621 Define Vw32_charset_info_alist and w32_charset symbols.
11623 2000-03-22 Jason Rumney <jasonr@gnu.org>
11625 * makefile.nt (w32bdf.obj): Update dependencies.
11627 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
11629 * w32fns.c: Include fontset.h after dispextern.h.
11630 (Fx_create_frame): Do not create fontset.
11631 (w32_load_system_font): Doc fix.
11632 (Fx_close_connection): Free full_name if it is not shared.
11634 * w32term.c: Include fontset.h after dispextern.h.
11635 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
11637 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
11638 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
11639 (w32_font_is_double_byte): New function, needs body.
11640 (x_append_glyph): Set glyph->glyph_not_available_p.
11641 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
11642 it->charset. If it->multibyte_p is zero and it->c is a multibyte
11643 character, convert it to a unibyte character.
11644 (struct glyph_string): Delete member `charset'.
11645 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
11646 calculating it is found.
11647 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
11648 the case that per char metric is not available correctly.
11649 (x_fill_glyph_string): Handle the case that the specific glyph is
11650 not available correctly.
11651 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
11652 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
11653 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
11654 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
11655 fontset. Don't call FS_LOAD_FONT.
11657 2000-03-22 Ken Raeburn <raeburn@gnu.org>
11659 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
11660 (INT_LISPLIKE): New macro.
11661 (NULL_INTERVAL_P): Use it.
11662 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
11663 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
11664 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
11666 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
11667 explicit references to "parent" field of struct interval and
11668 associated unclean type conversions.
11669 * intervals.c (create_root_interval, root_interval, rotate_right)
11670 (rotate_left, balance_possible_root_interval, split_interval_right)
11671 (split_interval_left, interval_start_pos, find_interval)
11672 (next_interval, previous_interval, update_interval)
11673 (adjust_intervals_for_insertion, delete_node, delete_interval)
11674 (adjust_intervals_for_deletion, merge_interval_right)
11675 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
11676 (copy_intervals_to_string): Likewise.
11677 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
11679 * syntax.c (update_syntax_table): Likewise.
11681 * intervals.c (reproduce_tree_obj): New function, like
11682 reproduce_tree but takes a Lisp_Object for the parent. Declare
11684 (graft_intervals_into_buffer): Use it when appropriate.
11685 (reproduce_tree): Declare with prototype.
11686 (balance_possible_root_interval): Check that the parent is a lisp
11687 object before trying to examine its type.
11689 2000-03-22 Gerd Moellmann <gerd@gnu.org>
11691 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
11692 as strings only if both are known to be strings.
11694 * s/openbsd.h (LIBS_TERMCAP): Undef.
11696 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
11698 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
11699 definitions for non-Emacs compilation.
11700 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
11701 outside of `#ifdef emacs'.
11702 (print_partial_compiled_pattern): Update.
11703 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
11704 (re_compile_fastmap): Merge handling of charset and charset_not (for
11705 emacs and non-emacs compilation as well).
11706 Similarly for (not)categoryspec and (not)syntaxspec.
11707 Don't use the fastmap when reaching `anychar' since the added
11708 complexity is not justified.
11709 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
11710 and (not)syntaxspec. Merge (not)categoryspec.
11712 2000-03-22 Kenichi Handa <handa@etl.go.jp>
11714 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
11715 (FACE_FOR_CHAR): Define them differently for the configuration of
11718 2000-03-21 Dave Love <fx@gnu.org>
11720 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
11723 2000-03-21 Gerd Moellmann <gerd@gnu.org>
11725 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
11726 (lface_fully_specified_p): Don't check contents of
11727 LFACE_FONT_INDEX because that attribute is optional.
11728 (realize_x_face): Remove now unwarranted xassert.
11730 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
11732 The following changes are to make font selection based on
11733 characters, not charset. In addition, they recover fontset
11734 facilities while utilizing the new font selection mechanism.
11736 * Makefile.in (fontset.o): Depend on dispextern.h.
11738 * alloc.c (mark_face_cache): Don't mark face->registry.
11740 * dispextern.h (struct glyph): New member glyph_not_available_p.
11741 Use 22 bits for face_id.
11742 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
11743 (struct face): Delete member registry, new member ascii_face.
11744 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
11745 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
11746 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
11747 (struct it): Delete member charset, new member glyph_not_available_p.
11749 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
11750 (struct fontset_info, struct fontset_data): Structs removed.
11751 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
11752 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
11753 (fs_load_font, fs_query_fontset): Adjusted for new argument.
11754 (fs_free_face_fontset, fontset_font_pattern)
11755 (face_suitable_for_char_p, face_for_char)
11756 (make_fontset_for_ascii_face): Extern them.
11757 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
11758 (FS_LOAD_FACE_FONT): New macro.
11760 * fontset.c: All codes rewritten or adjusted for the change of
11761 fontset implementation. Now fontset is represented by char table.
11762 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
11764 (my_strcasecmp): Function removed.
11765 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
11766 (AREF, ASIZE): New macros.
11767 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
11768 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
11769 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
11770 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
11771 (fontset_id_valid_p, font_family_registry, fontset_name)
11772 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
11773 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
11775 (fs_load_font): New arg FACE. Caller changed.
11776 (fs_query_fontset): Argument changed. Caller changed.
11777 (Fquery_fontset): call fs_query_fontset.
11778 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
11780 (clear_fontset_elements, check_registry_encoding)
11781 (check_fontset_name): New functions.
11782 (syms_of_fontset): Set char-table-extra-slots property of fontset
11783 to 3. Staticpro and initialize Vfontset_table and
11784 Vdefault_fontset. Defsubr fontset_font and fontset_list.
11786 * frame.h (struct frame): Member `fontset_data' removed.
11787 (FRAME_FONTSET_DATA): Macro removed.
11789 * frame.c (make_frame): Don't allocate f->fontset_data.
11790 (Fdelete_frame): Don't free f->fontset_data.
11792 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
11794 * xdisp.c (charset_at_position): Function removed.
11795 (init_iterator): Don't set member charset of struct `it'.
11796 (handle_face_prop, reseat_to_string, set_iterator_to_next)
11797 (next_element_from_display_vector, insert_left_trunc_glyphs):
11799 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
11801 (get_next_display_element, append_space)
11802 (extend_face_to_end_of_line): Likewise.
11804 * xfaces.c (Qx_charset_registry, Vface_default_registry):
11806 (clear_font_table, frame_update_line_height, load_face_font):
11807 Adjusted for the change of fontset implementation.
11808 (load_face_fontset_font): Function removed.
11809 (pixel_point_size): New function.
11810 (font_list): Argument type changed. Caller changed.
11811 (LFACE_FONT): New macro.
11812 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
11813 (set_lface_from_font_name): Type of arg FONTNAME is changed to
11814 Lisp_Object. Determine the font name by actually loading a font
11815 by the specified pattern. Set LFACE_FONT (lface) to the specified
11816 pattern. Even if a font is not found, don't try alternatives.
11817 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
11818 (set_font_frame_param): If `font' is specified in lface, use it.
11819 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
11820 (lface_same_font_attributes_p): Likewise.
11821 (make_realized_face): Arguent changed. Caller changed. Set
11822 face->ascii_face to face itself.
11823 (free_realized_face): Free face->fontset if face is for ASCII.
11824 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
11825 (deduce_unibyte_registry, x_charset_registry): Functions removed.
11826 (free_realized_multibyte_face): New function.
11827 (lookup_face, lookup_named_face, lookup_derived_face): Argument
11828 changed. Caller changed.
11829 (try_font_list): Argument type changed.
11830 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
11831 (choose_face_font): Argument changed. Handle fontset properly.
11832 (choose_face_fontset_font): Function removed.
11833 (realize_default_face, realize_named_face): Don't remove the
11835 (realize_face): Argument changed. Caller changed. Remove face
11836 with the arg former_face_id in advance. Load font for the new face.
11837 (realize_x_face): Argument changed. Caller changed. For a
11838 multibyte character, share fontset with base_face. For a single
11839 byte character, make a new realized fontset. Don't load a font here.
11840 (realize_tty_face): Argument changed. Caller changed.
11841 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
11842 (face_at_buffer_position): Don't check multibyte_p for returning
11844 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
11845 FACE_SUITABLE_FOR_CHARSET_P.
11846 (syms_of_xfaces): Remove code for Qx_charset_registry and
11847 Vface_default_registry.
11849 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
11850 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
11851 (x_per_char_metric): Don't try FONT->default_char. Even if
11852 pcm->width is zero, glyph bits may exist.
11853 (x_encode_char): Always initialize char2b->byte1.
11854 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
11855 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
11856 (x_append_glyph): Set glyph->glyph_not_available_p.
11857 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
11858 it->charset. Handle the case that per char metric is not
11859 available. If it->multibyte_p is zero and it->c is a multibyte
11860 character, convert it to a unibyte character.
11861 (struct glyph_string): Delete member `charset'.
11862 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
11863 the case that per char metric is not available correctly.
11864 (x_fill_glyph_string): Handle the case that the specific glyph is
11865 not available correctly.
11866 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
11867 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
11868 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
11869 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
11870 fontset. Don't call FS_LOAD_FONT.
11872 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
11873 (x_create_tip_frame): Likewise.
11874 (Fx_close_connection): Free full_name of font_info.
11876 * fns.c (optimize_sub_char_table): New function.
11877 (Foptimize_char_table): New function.
11878 (syms_of_fns): Defsubr Soptimize_char_table.
11880 2000-03-20 Gerd Moellmann <gerd@gnu.org>
11882 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
11883 only if buffer is displayed in some window.
11885 * xdisp.c (handle_single_display_prop): Initialize local `value'.
11886 (try_window_reusing_current_matrix): Don't call scroll run
11887 function if run's current and desired position are the same;
11888 this prevents cursor flickering.
11890 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
11892 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
11894 * regex.c (RE_STRING_CHAR): New macro.
11895 (GET_CHAR_AFER_2): Remove.
11896 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
11897 (enum re_opcode_t): Remove on_failure_jump_exclusive.
11898 (print_partial_compiled_pattern, re_compile_fastmap)
11899 (re_match_2_internal): Remove on_failure_jump_exclusive.
11900 (regex_compile): Turn optimizable P+ loops into PP*, so that the
11901 optimization only need to work for * (ie. can use of_keep_string_jump).
11902 Remove the special case for .*\n since it is now covered by the general
11904 (re_search_2): Don't bother with `room'.
11905 (skip_one_char): New function.
11906 (skip_noops): Simplify since `memory' is not needed any more.
11907 (mutually_exclusive_p): Restructure slightly to use `switch' and
11908 add handling for "all" remaining cases.
11909 (re_match_2_internal): Change on_failure_jump_smart to use
11910 on_failure_keep_string_jump (and redirect the end-of-loop jump)
11911 rather than on_failure_jump_exclusive.
11913 2000-03-19 Gerd Moellmann <gerd@gnu.org>
11915 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
11916 number of bits per RGB because it's everywhere used as the depth
11919 * term.c (calculate_costs): Remove code dealing with X frames.
11921 2000-03-19 Richard M. Stallman <rms@gnu.org>
11923 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
11925 2000-03-18 Gerd Moellmann <gerd@gnu.org>
11927 * lread.c (read_integer): Unread the last char not consumed.
11929 2000-03-17 Gerd Moellmann <gerd@gnu.org>
11931 * xterm.c (x_update_window_cursor): Don't update in frames
11932 which are in the process of being deleted.
11934 2000-03-16 Gerd Moellmann <gerd@gnu.org>
11936 * Makefile.in (mostlyclean): Add `*.core'.
11937 (clean): Add `bootstrap-emacs'.
11939 * lread.c (read_integer): New function.
11940 (read1): Support read syntax #o, #x, #b, #r.
11942 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
11944 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
11945 make sure POINTER_TO_OFFSET gives the same value before and after
11946 PREFETCH. Use `dfail' to guarantee "atomic" matching.
11947 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
11948 (debug): Now only active if > 0 rather than if != 0.
11949 (DEBUG_*): Update for the new meaning of `debug'.
11950 (print_partial_compiled_pattern): Add missing `succeed' case. Use
11951 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
11952 in `succeed_n', `jump_n' and `set_number_at'.
11953 (store_op1, store_op2, insert_op1, insert_op2)
11954 (at_begline_loc_p, at_endline_loc_p): Add prototype.
11955 (group_in_compile_stack): Move to after its arg's types are
11956 declared and add a prototype.
11957 (PATFETCH): Define in terms of PATFETCH_RAW.
11958 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
11959 (QUIT): Redefine as a nop except for NTemacs.
11960 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
11961 indentation of the greedy-op and shy-group code.
11962 (at_(beg|end)line_loc_p): Fix argument's types.
11963 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
11964 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
11965 (MATCHING_IN_FIRST_STRING): Remove.
11966 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
11967 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
11968 QUIT unconditionally.
11970 2000-03-15 Gerd Moellmann <gerd@gnu.org>
11972 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
11975 * process.c (send_process): Add a hint that the function
11976 can call Lisp code to its comment.
11978 * lread.c (load_dangerous_libraries): New variable.
11979 (Vbytecomp_version_regexp): New variable.
11980 (safe_to_load_p): New function.
11981 (Fload): Handle files not compiled with Emacs specially.
11982 (syms_of_lread): New Lisp variable load-dangerous-libraries.
11984 2000-03-14 Gerd Moellmann <gerd@gnu.org>
11986 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
11988 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
11989 support functions only if HAVE_X11R6_XIM is defined.
11990 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
11992 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
11994 * xfns.c (X_I18N_INHIBITED): Don't define.
11995 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
11996 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
11998 * config.in (HAVE_X_I18N): Moved here from xterm.h.
11999 (HAVE_X11R6_XIM): Define.
12001 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
12003 * xterm.c (x_term_init): Add support for X resource `synchronous'.
12004 If set, call XSynchronize.
12006 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
12008 * regex.c: Declare a new type `re_char' used throughout the code
12009 for the string char type. It's `const unsigned char' to match the
12010 rest of Emacs. Consistently make sure all pointers to strings use
12011 it and make sure all pointers into the pattern use `unsigned char'.
12012 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
12013 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
12016 * charset.h (GET_CHAR_AFTER_2): Remove.
12017 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
12019 2000-03-12 Ken Raeburn <raeburn@gnu.org>
12021 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
12022 variable before the invocation of YMF_PASS_LDFLAGS, in case both
12023 of them try to use backquotes.
12025 2000-03-12 Dave Love <fx@gnu.org>
12027 * unexelf.c: Restore changes of 1999-10-19.
12028 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
12029 fix its type and alignment; copy it from current process.
12031 2000-03-12 Gerd Moellmann <gerd@gnu.org>
12033 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
12034 has been found. Fix bug not computing timer's predecessor.
12036 * fileio.c (Fread_file_name): Handle case that DIR contains a
12039 * window.c (Fsave_window_excursion): Doc fix.
12041 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
12043 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
12045 * msdos.c (vga_installed): New function, code moved from
12046 dos_set_window_size.
12047 (Qbar, Qcursor_type, outside_cursor): New variables.
12048 (syms_of_msdos): Intern and staticpro them.
12049 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
12050 shape used outside Emacs when called for the first time.
12051 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
12052 cursor shape used outside Emacs.
12053 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
12054 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
12056 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
12057 parameters specify the cursor. Make qreverse a global
12058 variable (renamed to Qreverse).
12060 2000-03-09 Gerd Moellmann <gerd@gnu.org>
12062 * fns.c (Fy_or_n_p): Cancel busy-cursor.
12064 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
12066 This is a big redesign of failure-stack and register handling, prompted
12067 by bugs revealed when trying to add shy-groups. Overall, what happened
12068 is that loops are now structured a little differently, groups can be
12069 shy and the code is a little simpler.
12071 * regex.h: Update the copyright.
12072 (RE_SHY_GROUPS): New value.
12073 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
12074 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
12076 * regex.c (enum re_opcode_t): Remove jump_past_alt,
12077 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
12078 on_failure_jump_(exclusive, loop and smart). Also fix the comment
12079 for (start|stop)_memory since they now only take one argument (the
12080 second has becomes unnecessary).
12081 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
12082 (print_compiled_pattern): Use %ld to printf long ints and flush to
12083 make debugging a little easier.
12084 (union fail_stack_elt): Make the integer unsigned.
12085 (struct fail_stack_type): Add a `frame' element.
12086 (INIT_FAIL_STACK): Init `frame' as well.
12087 (POP_PATTERN_OP): New macro for re_compile_fastmap.
12088 (DEBUG_PUSH, DEBUG_POP): Remove.
12089 (NUM_REG_ITEMS): Remove.
12090 (NUM_NONREG_ITEMS): Adjust.
12091 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
12092 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
12093 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
12094 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
12096 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
12097 address pushed is not the destination of the jump but the source
12099 (NUM_FAILURE_ITEMS): Remove.
12100 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
12101 registers before the actual failure point). Don't hardcode any
12102 meaning for str==NULL anymore.
12103 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
12104 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
12106 (REG_UNSET_VALUE): Use NULL (why not?).
12107 (compile_range): Remove declaration since it doesn't exist.
12108 (struct compile_stack_elt_t): Remove inner_group_offset.
12109 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
12110 (regex_grow_registers): Remove dead code.
12111 (FIXUP_ALT_JUMP): New macro.
12112 (regex_compile): Add shy-groups Change loops to use
12113 on_failure_jump_smart&jump instead of
12114 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
12115 initial (dummy_failure_)jump. Remove c1_base (looks like unused
12116 variable to me). Use `jump' instead of `jump_past_alt' and don't
12117 bother with push_dummy_failure in alternatives since it is now
12118 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
12119 emacs' for (re)allocating the stack.
12120 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
12121 from loop when bufp->can_be_null rather than jumping to `done'.
12122 Avoid jumping backwards so as to ensure termination. Use
12123 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
12124 backreferences. Remove dead code in handling of `anychar'.
12125 (skip_noops, mutually_exclusive_p): New functions taken from the
12126 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
12127 improve mutually_exclusive_p to handle ".+\n".
12128 (lowest_active_reg, highest_active_reg)
12129 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
12130 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
12131 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
12132 variables. Push register (in `start_memory') on the stack rather
12133 than storing it in old_reg(start|end). Remove the cycle detection
12134 from `stop_memory', replaced by the use of on_failure_jump_loop
12135 for greedy loops. Add code for the new on_failure_jump_<foo>.
12136 Remove ad-hoc code in `on_failure_jump' to push more registers in
12137 the case of a loop. Take out code from `maybe_pop_jump' into
12138 separate functions and adapt it to the semantics of
12139 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
12140 and push_dummy_failure. Remove dummy_failure handling and
12141 handling of `failures to jump to on_failure_jump' (this last one
12142 was already dead code, it seems).
12143 (group_match_null_string_p, alt_match_null_string_p)
12144 (common_op_match_null_string_p): Remove.
12146 2000-03-08 Dave Love <fx@gnu.org>
12148 * config.in: Don't depend on __STDC__ for volatile.
12149 Add POINTER_TYPE, PTR, PROTOTYPES.
12151 * hftctl.c, strftime.c: Use PROTOTYPES.
12152 * eval.c (find_handler_clause): Likewise.
12154 * mem-limits.h: Use POINTER_TYPE.
12156 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
12157 (memory_warnings): Declare using POINTER_TYPE.
12159 2000-03-08 Gerd Moellmann <gerd@gnu.org>
12161 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
12163 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
12165 * xfns.c: Remove obsolete code in #if 0.
12166 (Fx_focus_frame): New function.
12168 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12170 * coding.c (coding_category_name): Add coding-category-utf-8,
12171 coding-category-utf-16-be, coding-category-utf-16-le.
12172 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
12173 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
12174 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
12175 (detect_coding_utf_8): New function.
12176 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
12177 UTF_16_LOW_SURROGATE_P): New macros.
12178 (detect_coding_utf_16): New function
12179 (detect_coding_mask): When priorities are specified, skip any
12180 categories that have `nil' coding-system. Fix bug of returning
12181 wrong mask when PRIORITIES is specified and detect_coding_XXX()
12182 returns a mask not set in PRIORITIES.
12183 (detect_eol_type_in_2_octet_form): New function.
12184 (detect_eol): selects detect_eol_type_XXX to call according to
12185 cooding->category_idx.
12186 (detect_coding_system): Remove `nil' coding-system in the result.
12187 (Fupdate_coding_systems_internal): Update all coding-categories.
12189 * coding.h (CODING_CATEGORY_IDX_UTF_8)
12190 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
12192 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
12193 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
12194 (CODING_CATEGORY_IDX_UTF_16_LE)
12195 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
12196 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
12197 (CODING_CATEGORY_MASK_ANY): Include the above macros.
12198 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
12200 2000-03-07 Gerd Moellmann <gerd@gnu.org>
12202 * doc.c (Fdocumentation_property): If value is not a string,
12203 and doesn't refer to etc/DOC, evaluate it to obtain a string.
12205 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
12206 close the display with XtCloseDisplay. This caused a bus error
12209 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
12210 complete but not unique.
12212 2000-03-06 Gerd Moellmann <gerd@gnu.org>
12214 * process.c (send_process): Remove local variable `procname' that
12215 might become invalid when a GC happens. Instead, access the
12216 process name slot directly.
12218 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
12219 orig_height if set.
12221 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
12222 orig_height if set.
12224 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
12226 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
12227 glyph matrices have been freed.
12229 2000-03-05 Gerd Moellmann <gerd@gnu.org>
12231 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
12232 (bootstrap-temacs): Set LC_ALL to C like for temacs.
12234 * xfns.c (QCdata): Moved to xdisp.c.
12236 * xdisp.c (QCdata): Moved here from xfns.c.
12237 (syms_of_xdisp): Initialize QCdata.
12239 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
12241 * window.c (coordinates_in_window): Use
12242 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
12243 FRAME_INTERNAL_BORDER_WIDTH.
12245 * xdisp.c (try_window_id): Recompute unchanged information if
12246 it is obviously invalid.
12248 * xterm.c (x_term_init): Create a colormap if not using the
12251 * xterm.h (select_visual): Change prototype.
12253 * xfns.c (select_visual): Rewritten. Recognize user-specified
12255 (visual_classes): New variable.
12257 2000-03-04 Gerd Moellmann <gerd@gnu.org>
12259 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
12260 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
12261 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
12262 (x_decode_color): Don't handle allocation of white and black specially.
12263 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
12264 XtNcolormap resources.
12265 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
12266 (Fx_create_frame): Initialize color members of x_output structure.
12267 (xpm_load): Pass colormap to XPM lib.
12269 * xfaces.c (x_free_colors): Access colormap of frame using
12270 FRAME_X_COLORMAP. Be paranoid about freeing black and white
12271 when default colormap is used.
12273 * xterm.c (x_term_init): Set Colormap member of x_display_info
12274 structure. Copy colormap if resource `privateColormap' is
12275 specified (PseudoColor only).
12276 (x_setup_relief_color): Access colormap of frame using
12279 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
12280 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
12282 2000-03-04 Jason Rumney <jasonr@gnu.org>
12284 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
12285 other non-platform-specific equivalents.
12286 [WINDOWSNT]: Include w32term.h, fontset.h and define X
12287 specific functions and macros as their w32 equivalents where
12288 non-platform-specifics are not available.
12289 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
12290 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
12291 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
12292 (frame_update_line_height): Use macros to access f->output_data.
12293 (defined_color): Remove FIXME comments; fixed.
12294 (x_face_list_fonts, prepare_face_for_display): Put X specifics
12295 into #ifdef blocks. Add WINDOWSNT blocks.
12296 (Fx_list_fonts): Use macros for accessing font data.
12297 (set_lface_from_font_name): Different default fonts for X and
12299 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
12300 scalable for backward compatibility.
12301 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
12302 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
12304 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
12307 * makefile.nt (w32faces.obj): Remove.
12310 2000-03-03 Jason Rumney <jasonr@gnu.org>
12312 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
12313 correct parameters.
12315 2000-03-03 Ken Raeburn <raeburn@gnu.org>
12317 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
12318 standard ELF definitions here if the system header does not.
12320 2000-03-03 Gerd Moellmann <gerd@gnu.org>
12322 * xterm.c (PER_CHAR_METRIC): Removed.
12323 (x_per_char_metric_1, x_default_char): New functions.
12324 (x_per_char_metric): If font's default char is invalid, return
12325 metrics of a suitably chosen usable default char.
12326 (x_draw_glyph_string_foreground): If font has an invalid default
12327 char, replace occurrences of unprintable chars with a suitably
12328 chosen usable default char.
12330 2000-03-02 Gerd Moellmann <gerd@gnu.org>
12332 * xterm.c (note_mouse_highlight): Return quickly if frame's
12333 glyph matrices have been freed.
12335 * dispnew.c (free_glyphs): Block input while freeing matrices.
12337 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
12339 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
12342 * dispextern.h (x_free_colors): Add prototype.
12344 * xfaces.c (x_free_colors): New function.
12345 (unload_color, free_face_colors): Use it.
12347 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
12349 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
12351 * window.c [MSDOS]: Include msdos.h.
12353 2000-03-02 Dave Love <fx@gnu.org>
12355 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
12357 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
12358 set C_OPTIMIZE_SWITCH for gcc.
12360 2000-03-02 Kenichi Handa <handa@etl.go.jp>
12362 * coding.c (coding_save_composition): Be sure to allocate
12363 composition data area in coding even if there's no composition in
12366 2000-03-01 Jason Rumney <jasonr@gnu.org>
12368 * w32term.c: Equivalent changes to those made to xterm.c on
12369 2000-02-25 and 2000-02-24.
12371 * w32fns.c: Equivalent changes to those made to xfns.c on
12372 2000-02-25 and 2000-02-21.
12374 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
12375 correct line-end convention is followed.
12377 * w32menu.c [HAVE_BOXES]: Remove #undef.
12378 (single_keymap_panes): Remove code for simulating checkmarks.
12379 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
12380 Remove code for drawing simulated checkmarks.
12381 (w32_menu_show): make unibyte help string correctly.
12382 (add_menu_item): draw standard Windows checkmarks. Draw radio
12383 buttons as radio buttons if possible.
12385 2000-03-01 Gerd Moellmann <gerd@gnu.org>
12387 * sysdep.c (start_of_text): Don't define this function for NetBSD
12390 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
12392 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
12393 (LINKER): Don't undef if __NetBSD__ is defined.
12395 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
12397 * fileio.c [__NetBSD__]: Define `unix'.
12399 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
12401 2000-02-29 Gerd Moellmann <gerd@gnu.org>
12403 * atimer.c (start_atimer): Don't abort when timers are stopped.
12404 (append_atimer_lists): New function.
12405 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
12406 arbitrary lists of stopped and running atimers.
12408 * atimer.c (cancel_atimer): Handle canceling an atimer when
12409 some timers are stopped.
12411 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
12412 after canceling it.
12414 * fns.c (maybe_resize_hash_table): Handle case of new size
12415 coming out as being the same as old size.
12417 2000-02-27 Jason Rumney <jasonr@gnu.org>
12419 * makefile.nt: Add atimer.h to dependencies.
12420 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
12421 * w32console.c: Only disable window system features for dispextern.h
12422 (initialize_w32_display): Build a display info for the console.
12423 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
12424 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
12425 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
12427 * w32gui.h (struct W32FontStruct): Revert last change after change
12429 * w32menu.c (single_submenu): Set up help string.
12430 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
12431 (w32_dialog_show): Set up help string.
12432 * w32term.c (w32_display_info_for_display): Remove unused function.
12433 (w32_draw_bitmap): Use pre-built bitmaps.
12434 (w32_initialize_display_info): New function to initialize parts of
12435 display info that are common to both GUI and console frames.
12436 (w32_term_init): Use w32_initialize_display_info. Do not set
12437 Vw32_num_mouse_buttons here, as it is not called for console
12438 frames. Build bitmaps for indicating truncated lines etc.
12439 (x_delete_display): Destroy pre-built bitmaps.
12440 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
12441 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
12443 2000-02-27 Dave Love <fx@gnu.org>
12445 * lisp.h: Add a bunch of prototypes.
12447 2000-02-26 Kenichi Handa <handa@etl.go.jp>
12449 * keyboard.c (read_char): Set `usec' correctly.
12451 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12453 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
12454 `lambda', set reg[RRR] to the map index.
12455 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
12456 reg[RRR] to 0. Otherwise, set it to -1.
12458 2000-02-25 Gerd Moellmann <gerd@gnu.org>
12460 * emacs.c (main): Remove code snippet commented out with `//'.
12462 2000-02-25 Richard M. Stallman <rms@gnu.org>
12464 * fileio.c (Ffile_symlink_p): If result starts with a `/'
12465 and contains a `:', prepend `/:'.
12467 * window.c (select_window_1): If selected_window is nil,
12468 don't "swap out" the buffer's point.
12469 (Fset_window_configuration): Set selected_window to nil
12470 before calling Fselect_window.
12471 (unshow_buffer): Don't set point in buffer from window's point
12472 if another more recently selected window also shows the buffer.
12474 2000-02-25 Gerd Moellmann <gerd@gnu.org>
12476 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
12478 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
12479 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
12480 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
12482 (DEFAULT_BUSY_CURSOR_DELAY): New define.
12483 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
12484 (hide_busy_cursor): New functions.
12485 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
12487 * minibuf.c (read_minibuf): Cancel busy-cursor.
12489 * keyboard.c (command_loop_1): Call start_busy_cursor before
12490 Fcommand_execute and cancel_busy_cursor after it.
12491 (timer_check): Remove busy-cursor code.
12492 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
12495 * process.c (wait_reading_process_input): Remove busy-cursor code.
12497 * eval.c (Fsignal): Call cancel_busy_cursor instead of
12498 Fx_hide_busy_cursor.
12500 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
12502 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
12504 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
12506 * xterm.c (XTread_socket): Remove busy-cursor code.
12508 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
12509 (build_frame_matrix_from_leaf_window): Put code handling
12510 glyph row's not being a slice of a frame row in #if 0.
12511 (sync_window_with_frame_matrix_rows): New function.
12512 (frame_row_to_window): New function.
12513 (mirror_line_dance): Handle copies between windows.
12515 * lread.c (Fload): Use `xfree' instead of `free'.
12516 (init_obarray): Use `xmalloc' instead of `malloc'.
12518 * window.c (Fset_window_buffer): Set WINDOW to the window
12520 (coordinates_in_window): Take frame's internal border width
12523 2000-02-24 Gerd Moellmann <gerd@gnu.org>
12525 * xterm.c (x_display_and_set_cursor): Display cursor of
12526 non-selected windows depending on the setting of
12527 cursor_in_non_selected_windows.
12529 * xdisp.c (cursor_in_non_selected_windows): New variable.
12530 (syms_of_xdisp): DEFVAR_BOOL it.
12532 2000-02-23 Gerd Moellmann <gerd@gnu.org>
12534 * data.c (Fstring_to_number): If number is greater than what
12535 fits into an integer, return a float.
12537 * eval.c (specbind): Remove references to
12538 keyword_symbols_constant_flag.
12540 * data.c (keyword_symbols_constant_flag): Removed.
12541 (Fmakunbound, set_internal, syms_of_data): Remove references to
12542 keyword_symbols_constant_flag.
12544 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
12546 2000-02-23 Kenichi Handa <handa@etl.go.jp>
12548 * syntax.c (multibyte_syntax_as_symbol): New variable.
12549 (syms_of_syntax): Declare it as a Lisp variable.
12550 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
12551 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
12552 nonzero, treat all multibyte characters as symbol.
12553 (init_syntax_once): Give syntax `word' to all multibyte characters.
12555 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12557 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
12560 2000-02-21 Gerd Moellmann <gerd@gnu.org>
12562 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
12564 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12565 (x_non_menubar_window_to_frame): Check the busy-cursor window.
12567 2000-02-21 Dave Love <fx@gnu.org>
12569 * frame.c (Vmouse_position_function): New variable.
12570 (Fmouse_position): Use it.
12571 (syms_of_frame): Install it.
12573 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
12575 2000-02-20 Gerd Moellmann <gerd@gnu.org>
12577 * fileio.c (Finsert_file_contents): Unbind the binding of
12578 standard-output done by temp_output_buffer_setup.
12580 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
12581 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
12582 (specbind, unbind_to): Handle most common case of non-constant
12583 symbol with trivial value specially.
12585 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
12587 2000-02-20 Richard M. Stallman <rms@gnu.org>
12589 * data.c (Fmake_variable_buffer_local): Doc fix.
12590 Init found_for_buffer to 0.
12591 (Fmake_variable_frame_local): If the variable has already
12592 been buffer-local, set the check_frame field.
12594 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
12596 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
12597 produced for CODING_MODE_LAST_BLOCK requires.
12599 2000-02-18 Dave Love <fx@gnu.org>
12601 * keyboard.c (echo_keystrokes): Remove declaration.
12602 (Vecho_keystrokes) New variable.
12603 (read_char, record_menu_key, read_key_sequence): Use it to allow
12604 use of float value.
12605 (syms_of_keyboard): Change Vecho_keystrokes declaration.
12607 * lread.c: Undef feature selection macros before defining.
12609 2000-02-18 Gerd Moellmann <gerd@gnu.org>
12611 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
12612 for symbols other than the symbol in question.
12614 2000-02-17 Dave Love <fx@gnu.org>
12616 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
12618 2000-02-17 Gerd Moellmann <gerd@gnu.org>
12620 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
12622 * alloc.c (enum mem_type): Compile unconditionally.
12624 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
12626 * xfaces.c (tty_defined_color): Don't return faulire indication
12627 for unspecified-fg and unspecified-bg pseudo-colors.
12629 2000-02-17 Gerd Moellmann <gerd@gnu.org>
12631 * alloc.c (mark_object): Don't mark symbol names in pure space.
12632 (gc_sweep): Don't unmark symbol names in pure space.
12634 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
12635 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
12636 [GC_MARK_STACK]: New defines.
12637 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
12638 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
12640 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
12642 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
12643 allocate_buffer instead of xmalloc.
12645 * alloc.c (toplevel): Include setjmp.h.
12646 (PURE_POINTER_P): New define.
12647 (enum mem_type) [GC_MARK_STACK]: New enumeration.
12648 (Vdead) [GC_MARK_STACK]: New variable.
12649 (lisp_malloc): Add parameter TYPE, call mem_insert if
12650 GC_MARK_STACK is defined.
12651 (allocate_buffer): New function.
12652 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
12653 (free_float) [GC_MARK_STACK]: Set type to Vdead.
12654 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
12655 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
12656 (MEM_NIL) [GC_MARK_STACK]: New define.
12657 (struct mem_node) [GC_MARK_STACK]: New structure.
12658 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
12659 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
12660 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
12661 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
12662 (mark_stack) [GC_MARK_STACK]: New functions.
12663 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
12664 (clear_marks): Removed.
12665 (gc_sweep): Set free conses' car, free floats' type, free
12666 symbols' function to Vdead. Use lisp_free to free buffers.
12667 (init_alloc_once): Initialize Vdead.
12668 (survives_gc_p): Return non-zero for pure objects.
12670 * alloc.c: Add comments throughout the file.
12672 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
12673 that unblocks alarms.
12675 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
12676 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
12677 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
12679 * frame.c (make_frame): Set frame initiallly to `garbaged'.
12681 2000-02-17 Kenichi Handa <handa@etl.go.jp>
12683 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
12684 avoid infinite error signaling. Allocate sufficient memory for
12685 eol_str in the case that eoltype is Lisp_Int.
12687 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
12689 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
12690 depends on the previous behavior.
12692 2000-02-16 Gerd Moellmann <gerd@gnu.org>
12694 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
12696 2000-02-15 Gerd Moellmann <gerd@gnu.org>
12698 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
12700 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
12701 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
12704 2000-02-15 Richard M. Stallman <rms@gnu.org>
12706 * data.c (set_internal): Don't make variable buffer-local
12707 if within a let-binding for the same buffer.
12708 (let_shadows_buffer_binding_p): New function.
12710 * eval.c (specbind): For buffer-local value,
12711 record the current buffer also.
12712 (unbind_to): Cope with that change.
12714 2000-02-15 Gerd Moellmann <gerd@gnu.org>
12716 * window.c (Fsave_window_excursion): Doc fix.
12718 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
12720 * syntax.c (back_comment): Make sure we only consider comment-starters
12721 of the relevant style and return -1 in case of a failure to find the
12722 beginning of the comment.
12723 (Fforward_comment): If back_comment fails, go back to the position just
12724 after the comment-end.
12725 (scan_lists): Add comment describing a very minor bug.
12727 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12729 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
12730 `completion-regexp-list' in the docstring.
12732 2000-02-14 Dave Love <fx@gnu.org>
12734 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
12736 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12738 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
12739 to Emacs' syntax. Also fix the comment about set/not-set meanings
12740 since Emacs syntax is not the value 0 any more.
12741 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
12742 since it's now part of RE_SYNTAX_EMACS.
12744 2000-02-12 Dave Love <fx@gnu.org>
12746 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
12748 2000-02-12 Gerd Moellmann <gerd@gnu.org>
12750 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
12752 2000-02-12 Dave Love <fx@gnu.org>
12754 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
12756 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
12757 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
12758 * s/hpux.h: Don't define HAVE_VFORK.
12760 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
12762 * s/nextstep.h: Don't define HAVE_ALLOCA.
12764 * config.in: Add vfork bits.
12766 2000-02-12 Gerd Moellmann <gerd@gnu.org>
12768 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
12769 unwind function to undo the effect of stopping atimers.
12771 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
12773 * atimer.c (stopped_atimers): New variable.
12774 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
12777 * atimer.h (stop_other_atimers, run_all_atimers)
12778 (unwind_stop_other_atimers): Add function prototypes.
12780 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
12782 2000-02-11 Ken Raeburn <raeburn@gnu.org>
12784 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
12785 library may depend on jpeg.
12786 (atimer.o): Depends on atimer.c.
12788 2000-02-11 Kenichi Handa <handa@etl.go.jp>
12790 * insdel.c (del_range_1): Call update_compositions.
12791 (del_range_both): Call update_compositions just once..
12793 2000-02-10 Dave Love <fx@gnu.org>
12795 * xfns.c (create_frame_xic): Fix initialization of automatic
12796 aggregates for pcc.
12798 2000-02-09 Kenichi Handa <handa@etl.go.jp>
12800 * ccl.c (CCL_MAKE_CHAR): New macro.
12801 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
12802 registers by CCL_MAKE_CHAR before calling translate_char.
12803 <CCL_TranslateCharacterConstTbl> Likewise.
12805 2000-02-08 Dave Love <fx@gnu.org>
12807 * lread.c (__EXTENSIONS__): Define.
12809 2000-02-08 Gerd Moellmann <gerd@gnu.org>
12811 * puresize.h (BASE_PURESIZE): Increase to 650000.
12813 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12815 * msdos.c (XMenuActivate): Turn off the cursor after displaying
12818 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12820 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
12821 md, mh, mb, mr, and me to the fake termcap entry.
12823 2000-02-06 Ken Raeburn <raeburn@gnu.org>
12825 * sound.c (sound_cleanup): Don't call device close routine if the
12826 function pointer is null.
12828 2000-02-06 Andrew Innes <andrewi@gnu.org>
12830 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
12831 around image definitions and prototypes.
12832 (gamma_correct) [WINDOWSNT]: New prototype.
12834 * w32term.c (x_make_frame_visible): Replace call to
12835 input_poll_signal with poll_for_input.
12837 * window.c [WINDOWSNT]: Include w32term.h.
12839 * xdisp.c [WINDOWSNT]: Include w32term.h.
12841 * makefile.nt: Add dependencies on w32gui.h.
12842 (OBJ1): Include atimer.obj.
12843 ($(BLD)\atimer.obj): New dependency rule.
12845 * w32.c (sigmask): New function (does nothing).
12846 (sigunblock): Ditto.
12848 * frame.c [WINDOWSNT]: Include w32term.h.
12850 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
12852 * lread.c (syms_of_lread): Fix literal newlines.
12854 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
12855 the string constant limit (2048 bytes) in MSVC.
12858 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
12860 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
12861 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
12862 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
12863 dispatch the event.
12865 2000-02-04 Dave Love <fx@gnu.org>
12867 * fileio.c: Remove some unused vars.
12868 (_GNU_SOURCE): Define (for euidaccess).
12870 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
12872 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
12874 (read_minibuf): Deal with allow_props correctly.
12876 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
12878 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
12880 2000-02-03 Ken Raeburn <raeburn@gnu.org>
12882 * search.c (compile_pattern): If a cache entry has a nil regexp,
12883 fill in that entry instead of clobbering a previously cached
12886 2000-02-02 Ken Raeburn <raeburn@gnu.org>
12888 * puresize.h (BASE_PURESIZE): Increase to 610000.
12890 2000-02-02 Gerd Moellmann <gerd@gnu.org>
12892 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
12895 2000-02-02 Kenichi Handa <handa@etl.go.jp>
12897 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
12898 instead of incrementing ic directly.
12899 <CCL_WriteExprConst> Likewise.
12900 <ccl_set_expr>: Set ic to jump_address.
12902 * fileio.c (e_write): Fix the handling of
12903 CODING_FINISH_INSUFFICIENT_SRC.
12905 2000-02-01 Dave Love <fx@gnu.org>
12907 * editfns.c (Fpropertize): Doc fix.
12909 * process.c (Fstart_process): Doc fix.
12911 * eval.c: Fix various doc strings not to duplicate information
12912 from help-manyarg-func-alist.
12914 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
12916 * doc.c (Vhelp_manyarg_func_alist): New variable.
12917 (Fdocumentation): Use it.
12918 (syms_of_doc): Define it.
12920 2000-01-31 Gerd Moellmann <gerd@gnu.org>
12922 * xterm.c (xim_open_dpy): Remove unused local variable.
12924 * emacs.c (USAGE): Use term `display options' instead of `X options'.
12926 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
12927 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
12929 * fns.c (sweep_weak_table): New function.
12930 (sweep_weak_hash_tables): Use it. Keep on marking until there
12933 2000-01-30 Gerd Moellmann <gerd@gnu.org>
12935 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
12936 that XTread_socket does not crash by trying to call XNoOp on a
12939 2000-01-30 Jason Rumney <jasonr@gnu.org>
12941 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
12942 Change selected_frame to SELECTED_FRAME ().
12943 (w32_console_mouse_position): Remove #ifndef MULE from around
12944 `insist' parameter.
12946 * makefile.nt: Remove dosfns.obj.
12948 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
12950 * w32fns.c (w32_defined_color): Check for valid frame before
12951 applying gamma correction. Eliminate dependency on frame elsewhere.
12952 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
12953 (w32_to_x_font): Use resx and resy not height_in and width_in.
12954 (x_to_w32_font): Doc fix.
12955 (xlfd_strip_height): New function to strip and return font height.
12956 (w32_font_match): Compare height separately from rest of xlfd
12957 spec, using xlfd_strip_height.
12959 * w32term.c (w32_term_init): Swap resx and height_in, resy and
12960 width_in. Use w32_defined_color in place of defined_color.
12962 * w32faces.c: Merge more of DOS and X specifics in preparation for
12963 merge with xfaces.c.
12964 (defined_color): Remove FIXME comment.
12965 (tty_color_name): Provide w32-specific function.
12966 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
12968 * w32console.c (turn_on_face, turn_off_face): Removed.
12969 (w32_face_attributes): New function.
12970 (Global_variables): Reduce scope where possible.
12971 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
12973 (hl_mode): Don't modify text attributes.
12974 (write_glyphs): Don't do anything if len <= 0. Use
12975 w32_face_attributes to get attributes for drawing. Write
12976 terminating codes using char_attr_normal.
12977 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
12978 (update_begin, update_end): Likewise.
12979 (vga_stdcolor_name): New function.
12980 (initialize_w32_display): Remove char_attr_reverse and char_attr.
12981 (Fset_screen_color): Remove char_attr_reverse.
12983 2000-01-29 Gerd Moellmann <gerd@gnu.org>
12985 * xfns.c (xic_set_preeditarea): Take window parameter and
12986 window-relative pixel-positions.
12988 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
12989 is its frame's selected window.
12990 (xim_instantiate_callback): Likewise.
12992 * xfns.c (x_create_im): Removed.
12993 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
12994 (supported_xim_styles): Renamed from supported_styles.
12995 (best_xim_style): Renamed from best_style.
12996 (create_frame_xic): Renamed from xic_create_frame.
12997 (free_frame_xic): Renamed from xic_destroy_frame.
12999 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
13001 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
13002 our frames, call XFilterEvent with 2nd parameter `None'.
13003 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
13004 returning XBufferOverflow.
13005 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
13006 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
13007 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
13008 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
13009 (xim_initialize, xim_close)
13010 [HAVE_X_I18N && HAVE_X11R6]: New functions.
13011 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
13012 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
13013 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
13015 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
13017 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
13018 `xic_style' and `xic_xfs'.
13019 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
13020 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
13021 (FRAME_XIM): Removed.
13023 * xfns.c (supported_styles): New variable.
13024 (DEFAULT_STYLE, DEFAULT_FONT): New macros
13025 (xic_create_xfontset, best_style, xic_create_frame)
13026 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
13027 (xic_set_xfontset): New functions.
13029 2000-01-28 Dave Love <fx@gnu.org>
13031 * s/irix6-5.h: Revert last change after change to irix5-0.h.
13033 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
13035 2000-01-28 Gerd Moellmann <gerd@gnu.org>
13037 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
13038 for *scratch* if it already existed.
13040 * emacs.c (USAGE): New macro.
13041 (main): Use it to display usage information.
13043 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13045 Support for the menu-help feature:
13047 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
13049 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
13050 part of the line to the termscript file.
13051 (IT_clear_to_end): Clear the entire line, not just its beginning.
13052 (menu_help_message, prev_menu_help_message): New variables.
13053 (IT_menu_make_room): Make room for the help_text member.
13054 (IT_menu_display): New argument disp_help; all callers changed.
13055 If disp_help is non-zero, store the help text of the active menu
13056 item in menu_help_message.
13057 (XMenuAddPane): Initialize the help_text member to NULL.
13058 (XMenuAddSelection): New argument help_text. Store it in the
13060 (XMenuActivate): New argument help_callback. If the value of
13061 menu_help_message has changed since the last time, display the
13062 menu help message text while waiting for the mouse to move. Clear
13063 the echo area before exiting.
13064 (XMenuDestroy): Free the help_text member.
13066 2000-01-27 Gerd Moellmann <gerd@gnu.org>
13068 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
13069 XMenuAddSelection. Pass help callback to XMenuActivate.
13070 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
13072 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13074 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
13075 and EMACS_SET_USECS.
13077 2000-01-26 Dave Love <fx@gnu.org>
13079 * editfns.c (Fchar_after, Fchar_before): Doc fix.
13081 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
13082 an error may be signalled.
13084 2000-01-26 Gerd Moellmann <gerd@gnu.org>
13086 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
13087 LD_SWITCH_SYSTEM inherited from irix5-0.h.
13089 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
13091 2000-01-25 Gerd Moellmann <gerd@gnu.org>
13093 * charset.c (Fstring): If there is a multibyte char among
13094 the args, always return a multibyte string.
13096 2000-01-25 Gerd Moellmann <gerd@gnu.org>
13098 * sysdep.c (sys_select): Turn atimers off and on instead of
13099 recording and restoring old alarm handler
13101 * process.c (toplevel): Include atimer.h.
13102 (create_process_1): Rewritten.
13103 (create_process): Use atimers instead of alarm.
13104 (wait_reading_process_input) [hpux]: Turn atimers off instead
13105 of turning off SIGALRM.
13106 (wait_reading_process_input): Turn off atimers instead off
13107 calling stop_polling.
13109 * emacs.c (main): Call init_atimer.
13111 * keyboard.c (toplevel): Include systime.h and atimer.h.
13112 (polling_for_input): Removed because unused.
13113 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
13114 (poll_timer): New variable.
13115 (poll_for_input, poll_for_input_1): New functions.
13116 (start_polling, stop_polling): Rewritten.
13118 * keyboard.h (polling_for_input): Removed.
13120 * atimer.h, atimer.c: New files.
13122 * Makefile.in (obj): Add atimer.o.
13123 (atimer.o): New target.
13125 * blockinput.h (pending_atimers): Add extern declaration.
13126 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
13128 * lisp.h (popup_activated_flag): Add extern declaration.
13130 * xmenu.c (popup_activated_flag): Make externally visible.
13131 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
13132 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
13134 * xterm.c (toplevel): Include atimer.h.
13135 (toolkit_scroll_bar_interaction): New variable.
13136 (Fxt_process_timeouts): Removed.
13137 (x_process_timeouts): New function.
13138 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
13139 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
13140 (x_make_frame_visible): Call poll_for_input_1 instead of
13141 input_poll_signal. Don't call alarm.
13142 (x_initialize): Install timer calling x_process_timeouts.
13144 2000-01-24 Dave Love <fx@gnu.org>
13146 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
13147 Don't use -cckr -- apparently not now necessary.
13149 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
13151 * msdos.c (IT_menu_display): Truncate long menu lines at the right
13154 2000-01-23 Jason Rumney <jasonr@gnu.org>
13156 * w32fns.c (w32_defined_color): Apply gamma correction before
13157 trying to map to the palette.
13158 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
13161 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
13162 here. Callers changed to always pass real device context.
13163 (w32_draw_bitmap): Likewise.
13164 (w32_get_glyph_overhangs): Likewise.
13165 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
13166 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
13167 pfnSetScrollInfo and SetScrollRange.
13168 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
13169 back into MULE characters after decoding them.
13170 (x_get_glyph_face_and_encoding): Likewise.
13171 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
13172 GetCharABCWidthsW fails, since this is defined on Windows 9x.
13173 (x_produce_glyphs): Calculate per char metrics for a character
13174 that we know exists in default font when font_not_found_p is true.
13176 2000-01-22 Jason Rumney <jasonr@gnu.org>
13178 * makefile.nt (intervals.obj, composite.obj): New modules.
13179 (composite.h): Added as dependency where appropriate.
13181 * w32gui.h (XGCValue): New struct for emulating X GCs.
13183 * w32term.h (XCharStruct): New struct for emulating X.
13185 * w32console.c (turn_on_face, turn_off_face): New functions.
13186 (change_line_highlight): New prototype for new redisplay.
13187 (write_glyphs): Support multibyte text. Support faces.
13189 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
13191 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
13192 throughout. struct frame * in place of FRAME_PTR.
13193 Skeleton support for images, toolbars, tooltips from xfns.c.
13194 (Fx_create_frame): Use system default for default scroll bar width.
13195 (w32_get_arg): Renamed from x_get_arg.
13196 (Fx_file_dialog): New function.
13197 (w32_list_fonts): Check cache before asking system.
13198 (Vw32_enable_synthesized_fonts): New variable.
13199 (Vw32_enable_italics): Obsolete, removed.
13201 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
13202 Use SELECTED_FRAME macro.
13204 * w32menu.c: Add skeleton support for help strings on menus.
13205 (add_menu_item): Native checkbox and radio support added, but not
13206 yet enabled due to bugs.
13207 (push_menu_item): Add parameters type, selection and help.
13209 Formatting changes to reduce unnecessary diffs with xmenu.c.
13211 * w32select.c (Fw32_set_clipboard_data): Update call to
13212 find_charset_in_str.
13214 * w32term.c: Complete rewrite for new redisplay based on new
13215 xterm.c with necessary sections merged back in from old w32term.c.
13217 2000-01-21 Richard M. Stallman <rms@gnu.org>
13219 * data.c (set_internal): Further fix in same criterion.
13221 2000-01-20 Richard M. Stallman <rms@gnu.org>
13223 * data.c (set_internal): Fix the criteria for whether
13224 to swap out the old cached binding.
13226 2000-01-19 Dave Love <fx@gnu.org>
13228 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
13230 2000-01-18 Kenichi Handa <handa@etl.go.jp>
13232 * regex.c (re_compile_fastmap): While checking a range table for
13233 `charset', skip flag bits for a character class correctly.
13235 2000-01-17 Gerd Moellmann <gerd@gnu.org>
13237 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
13239 * xfns.c (x_window): Call lw_create_widget with new parameter list.
13241 * widget.c (EmacsFrameSetCharSize): Change size of children first
13242 because of problems with main window geometry management under Lesstif.
13244 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
13245 MENU_ITEMS_ITEM_.*.
13246 (MENU_ITEMS_ITEM_HELP): New enumerator.
13247 (push_menu_item): Add parameter HELP. Record help in menu_items.
13248 (single_menu_item, single_submenu, list_of_items): Call
13249 push_menu_item with new parameter.
13250 (single_submenu): Set help string in widget value.
13251 (menu_highlight_callback): New function.
13252 (set_frame_menubar): Call lw_create_widget with new
13254 (xmenu_show, xdialog_show): Ditto.
13256 2000-01-13 Gerd Moellmann <gerd@gnu.org>
13258 * sound.c (Fplay_sound): Improve doc string.
13260 2000-01-11 Richard M. Stallman <rms@gnu.org>
13262 * lisp.h (set_internal): Enter the new arg.
13264 * eval.c (specbind): Record buffer-local variables specially,
13265 indicating which buffer's binding was saved.
13266 (unbind_to): Restore buffer-local variables specially
13267 in the proper buffer.
13269 * data.c (set_internal): New arg BUF.
13271 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
13272 * data.c (Fset): Pass new arg to set_internal.
13273 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
13275 2000-01-11 Gerd Moellmann <gerd@gnu.org>
13277 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
13279 2000-01-11 Richard M. Stallman <rms@gnu.org>
13281 * minibuf.c (Ftry_completion): Doc fix.
13283 2000-01-11 Gerd Moellmann <gerd@gnu.org>
13285 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
13288 2000-01-11 Andreas Schwab <schwab@suse.de>
13290 * coding.c (code_convert_region): Initialize total_skip.
13292 2000-01-08 Dave Love <fx@gnu.org>
13294 * eval.c (Fuser_variable_p): Check customizability too.
13296 2000-01-07 Gerd Moellmann <gerd@gnu.org>
13298 * minibuf.c (Fcompleting_read): Doc fix.
13300 2000-01-05 Gerd Moellmann <gerd@gnu.org>
13302 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
13305 * xfns.c (x_create_im): New function to set IM and IC of a frame.
13306 Check that input style is supported before trying to create an
13308 (x_window): Call x_create_im.
13310 2000-01-04 Gerd Moellmann <gerd@gnu.org>
13312 * xfns.c (current_gif_memory_src): New variable.
13313 (gif_load): Record the address of the current memory source
13314 in current_gif_memory_src.
13315 (gif_read_from_memory): Use current_gif_memory_src.
13317 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
13318 macros statement form.
13320 * sound.c (struct sound): Renamed from struct sound_file.
13321 (struct sound): Add members `data' and `header_size'.
13322 (enum sound_attr): Add SOUND_DATA.
13323 (current_sound, current_sound_device): Variables renamed from
13324 sound_file and sound_device.
13325 (parse_sound): Parse :data.
13326 (parse_sound): Handle sound data in strings.
13327 (find_sound_type): Function renamed from find_sound_file_type.
13328 (wav_init, au_init): Fail if sound's header_size is smaller than
13329 needed header size.
13330 (wav_play, au_play): Play sounds from string data.
13332 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
13334 * lisp.h: Add prototype for allocate_string_data.
13336 * alloc.c (Fgarbage_collect): Return number of live and free strings.
13338 * alloc.c (mark_buffer): Remove code in #if 0.
13340 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
13341 (strings_consed): New variable.
13342 (allocate_string): Set it.
13343 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
13344 (Fmemory_use_counts): Return strings_consed. Use Flist.
13346 * alloc.c: General cleanup in comments etc. Remove conditional
13347 compilation for `standalone'.
13349 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
13351 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
13352 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
13353 (DONT_COPY_FLAG): Removed.
13354 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
13355 (struct sdata, struct sblock): New
13356 (struct string_block): Rewritten.
13357 (STRINGS_IN_STRING_BLOCK): New macro.
13358 (oldest_sblock, current_sblock, total_strings, total_free_strings)
13359 (large_sblocks, string_blocks, string_free_list): New variables.
13360 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
13361 (init_strings): Rewritten.
13362 (allocate_string, allocate_string_data, compact_small_strings)
13363 (free_large_strings, sweep_strings): New functions.
13364 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
13365 (struct string_block_head, current_string_block)
13366 (first_string_block, large_string_blocks, STRING_FULLSIZE)
13367 (STRING_PAD): Removed.
13368 (make_uninit_multibyte_string, make_pure_string): Rewritten.
13369 (Fgarbage_collect): Don't set mark bit in large strings.
13370 (mark_object): Mark strings differently. Mark symbol names
13372 (survives_gc_p): Test marked strings differently.
13373 (gc_sweep): Sweep strings differently, unmark strings in
13375 (compact_strings): Removed.
13377 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
13379 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
13380 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
13382 2000-01-04 Kenichi Handa <handa@etl.go.jp>
13384 * fileio.c (Finsert_file_contents): Signal error if visiting file
13385 in a non-empty buffer.
13387 * term.c (encode_terminal_code): Fix the previous change.
13389 2000-01-03 Gerd Moellmann <gerd@gnu.org>
13391 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
13392 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
13394 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
13396 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13398 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
13399 need to test for MSDOS frames.
13401 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13403 * dosfns.c (unspecified_colors): Remove.
13404 (msdos_stdcolor_idx): Use global variables unspecified_fg and
13406 (msdos_stdcolor_name): Return strings for unspecified fore- and
13407 back-ground colors.
13409 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
13410 (syms_of_xfaces): Remove their staticpro's.
13411 (tty_color_name): Return Lisp strings for unspecified fore- and
13412 back-ground colors.
13413 (Finternal_set_lisp_face_attribute): Remove the special treatment
13414 for Qunspecified_{f,b}g.
13415 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
13417 2000-01-03 Gerd Moellmann <gerd@gnu.org>
13419 * xdisp.c (reseat_at_next_visible_line_start): Position before
13420 newline only if ending up on a newline.
13421 (next_element_from_ellipsis): Return success. Handle case of
13422 displaying no ellipsis. Fix case of ellipsis defined in display table.
13423 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
13426 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13428 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
13429 (Fcolor_supported_p): Renamed from face-color-supported-p.
13431 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13433 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
13434 list of colors renamed to tty-defined-color-alist.
13435 (tty_color_name): Pass the frame to tty-color-by-index.
13436 (realize_tty_face): tty-color-alist is now a function which
13437 accepts the frame as argument.
13439 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
13441 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13443 * term.c (insert_glyphs): Pass glyph, not &glyph, to
13444 encode_terminal_code.
13446 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13448 * dispnew.c (mode_line_string): Support termcap frames as well.
13450 2000-01-01 Gerd Moellmann <gerd@gnu.org>
13452 * syntax.c (Fforward_word): Undo previous change.
13454 * editfns.c (Fconstrain_to_field): Don't constrain if
13455 inhibit-field-text-motion is non-nil.
13456 (Fline_beginning_position): Undo previous change.
13457 (Fline_end_position): Ditto.
13459 * syntax.c (Fforward_word): Notice field boundaries only if
13460 inhibit-field-text-motion is nil.
13462 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
13464 * editfns.c (Vinhibit_field_text_motion): New variable.
13465 (inhibit-field-text-motion): New DEFVAR_LISP.
13466 (Fline_beginning_position, Fline_end_position): Notice field
13467 boundaries only if inhibit-field-text-motion is nil.
13469 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
13470 All calls adjusted.
13471 (x_build_heuristic_mask): Likewise.
13472 (xbm_load_image_from_file): Change error output.
13473 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
13474 (gif_load, gs_load, x_kill_gs_process): Ditto.
13476 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
13477 color indices when accessing raster pixels.
13478 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
13479 one of :file or :data.
13480 (enum pbm_keyword_index): Add PBM_DATA.
13481 (pbm_format): Add :data.
13482 (pbm_image_p): Allow either :file or :data.
13483 (pbm_read_file): New function.
13484 (pbm_scan_number): Rewritten to read from string.
13485 (pbm_load): Support :data.
13487 See ChangeLog.8 for earlier changes.
13489 ;; Local Variables:
13490 ;; coding: iso-2022-7bit
13493 Copyright (C) 2001 Free Software Foundation, Inc.
13494 Copying and distribution of this file, with or without modification,
13495 are permitted provided the copyright notice and this notice are preserved.