1 2001-11-28 Gerd Moellmann <gerd@gnu.org>
3 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
6 2001-11-28 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
8 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
11 * coding.c (decode_coding_string): Remove unused variable
14 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
16 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
17 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
19 * eval.c: Use AREF and ASIZE.
20 (Ffetch_bytecode): Add the file name to the error message.
22 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
23 which match the end of the file-name.
24 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
25 is not a valid env var, but leave it as is instead.
27 * keymap.c (access_keymap): Handle t bindings like nil bindings.
28 Make nil bindings in char-tables transparent.
29 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
31 2001-11-26 Richard M. Stallman <rms@gnu.org>
33 * textprop.c (set_text_properties_1): Allow START, END in either order.
34 Do nothing if range is empty.
36 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
38 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
41 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
43 * textprop.c (set_text_properties_1): Clearly mark that the
44 interval should not be empty.
46 * intervals.c (graft_intervals_into_buffer):
47 Don't call set_text_properties_1 on an empty interval.
49 2001-11-25 Richard M. Stallman <rms@gnu.org>
51 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
53 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
54 don't lose the data in it.
56 2001-11-25 Juanma Barranquero <lektu@terra.es>
58 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
62 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
64 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
66 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
68 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
70 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
71 Niemitalo <kon@iki.fi>.
73 2001-11-25 Jason Rumney <jasonr@gnu.org>
75 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
77 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
78 (Fx_show_tip): Block input during frame creation.
79 (Fx_show_tip, Fx_hide_tip): Enable.
81 2001-11-24 Richard M. Stallman <rms@gnu.org>
83 * lread.c (Fload): Detect recursive load error for more than 3
84 nestings of the same file.
85 (Vrecursive_load_depth_limit): Variable deleted.
86 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
88 2001-11-24 Jason Rumney <jasonr@gnu.org>
90 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
91 mouse position if either left or top is not specified.
93 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
94 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
95 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
96 (my_create_tip_window): Assign tip_window.
97 (x_create_tip_frame): Use same defaults as X.
98 (compute_tip_xy): Remove unused variable. Use full screen width.
99 (Fx_show_tip): Do not double height. Call ShowWindow directly.
101 * w32term.c (x_after_update_window_line): Doc fix.
102 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
104 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
106 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
107 for all Windowed systems.
109 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
111 * msdos.c (IT_clear_screen): If the frame's faces are not yet
112 realized, use the initial screen colors to clear the screen.
114 2001-11-23 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
116 * textprop.c (Fset_text_properties): Remove unused variables
117 `unchanged', `prev_changed', `s' and `len'.
119 * search.c (Freplace_match): Remove unused variable `inslen'.
121 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
123 2001-11-22 Jason Rumney <jasonr@gnu.org>
125 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
126 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
127 (my_create_tip_window): New function.
128 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
129 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
131 2001-11-20 Jason Rumney <jasonr@gnu.org>
133 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
134 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
136 * w32fns.c (Vw32_system_coding_system): Remove.
137 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
139 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
141 * fileio.c (Fwrite_region): Move choose_write_coding_system to
142 after build_annotations.
144 * syntax.c (describe_syntax): Add dummy arg.
145 (describe_syntax_1): Update call to describe_vector.
147 * category.c (describe_category): Add dummy arg.
148 (describe_category_1): Update call to describe_vector.
150 * keymap.c (Fdescribe_vector): Add `describer' parameter.
151 (describe_command, describe_translation): Add dummy second param.
152 (describe_map): Call elt_describer with two arguments.
153 (describe_vector_princ): Add `fun' parameter.
154 Call it instead of the hardcoded `princ'.
155 (describe_vector): Add arg `args'.
156 Pass it as a new second argument to elt_describer.
158 * keymap.h (describe_vector): Update prototype.
160 * frame.c: Don't include keymap.h any more.
161 (keys_of_frame): Remove.
163 * lisp.h (keys_of_frame): Remove declaration.
165 * emacs.c (main): Don't call `keys_of_frame' any more.
167 2001-11-14 Andreas Schwab <schwab@suse.de>
169 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
170 if defined, 0 otherwise.
171 (MAP_FAILED): Define if not defined and use it to test mmap failure.
172 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
174 2001-11-19 Richard M. Stallman <rms@gnu.org>
176 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
178 2001-11-18 Jason Rumney <jasonr@gnu.org>
180 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
181 (x_draw_bar_cursor): If the background color of the glyph under
182 the cursor equals the frame's cursor color, use the glyph's
183 foreground color for drawing the bar cursor.
184 (x_after_update_window_line): Clear internal border in different
186 (w32_set_vertical_scroll_bar): Check for width and height > 0.
187 (w32_draw_relief_rect): Correct relief by 1 pixel.
188 (x_set_glyph_string_background_width):
189 Set extends_to_end_of_line_p if the row's fill_line_p is set and
190 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
191 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
192 if cursor_in_non_selected_windows is false.
193 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
194 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
195 Notice if cursor gets overwritten.
196 (notice_overwritten_cursor): Renamed from
197 note_overwritten_text_cursor. Rewritten to take glyph widths
198 into account, and to take X positions as parameters.
199 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
200 around call to x_draw_glyphs.
201 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
202 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
203 color to use for image glyph reliefs.
204 (x_draw_image_relief): Accept zero tool_bar_button_relief.
205 (glyph_rect): Remove unused variable `area'.
207 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
209 (x_set_internal_border_width): Set frame garbaged when window
211 (Fx_create_frame): Accept zero tool_bar_button_relief.
212 (x_clear_image_1, four_corners_best, image_background)
213 (image_background_transparent): New functions.
214 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
215 (gs_format): Add `:background' entry.
216 (lookup_image): Set IMG's background color if specified.
217 (pbm_load, xbm_load_image, png_load): Set IMG's background field
219 (x_clear_image_1): Reset `background_valid' and
220 `background_transparent_valid' fields.
221 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
222 calculating it here. Set IMG's background_transparent field.
223 (enum xpm_keyword_index): Add XPM_BACKGROUND.
224 (enum png_keyword_index): Add PNG_BACKGROUND.
225 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
226 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
227 (enum gif_keyword_index): Add GIF_BACKGROUND.
228 (enum gs_keyword_index): Add GS_BACKGROUND.
229 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
230 Pre-calculate image background color where necessary.
231 (x_create_x_image_and_pixmap, xbm_load, gs_load):
232 Use display info's n_cbits entry for screen depth.
233 (Fx_show_tip): Remove unused variables `buffer', `top',
234 `left', `max_width' and `max_height'.
236 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
238 2001-11-18 Gerd Moellmann <gerd@gnu.org>
240 * puresize.h (BASE_PURESIZE): Increase to 750000.
242 2001-11-18 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
244 * frame.c (Fframe_live_p): Doc fix.
246 2001-11-18 Richard M. Stallman <rms@gnu.org>
248 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
249 (message_dolog_marker3): New static variables hold three markers.
250 (syms_of_xdisp): Initialize and staticpro them.
251 (message_dolog): Use message_dolog_marker1..3 instead of
252 allocating markers each time. Unchain them when done.
254 2001-11-17 Richard M. Stallman <rms@gnu.org>
256 * doc.c (Fsnarf_documentation): Doc fix.
258 2001-11-17 Andreas Schwab <schwab@suse.de>
260 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
262 2001-11-17 Richard M. Stallman <rms@gnu.org>
264 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
266 2001-11-17 Jason Rumney <jasonr@gnu.org>
268 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
270 2001-11-17 Gerd Moellmann <gerd@gnu.org>
272 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
273 with invalid position.
275 2001-11-16 Richard M. Stallman <rms@gnu.org>
277 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
279 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
280 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
281 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
283 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
285 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
287 * fileio.c (build_annotations): Split off the tail.
288 (build_annotations_2): New fun. Extracted from build_annotations.
289 (Fwrite_region): Split the call to build_annotations into two
290 calls to build_annotations and build_annotations_2.
292 2001-11-16 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
294 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
295 clear_waiting_for_input with argument.
297 * xterm.h (x_update_cursor): Remove duplicated prototype.
299 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
301 * xterm.c (waiting_for_input): Remove unnecessary declaration.
303 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
305 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
307 * fileio.c (choose_write_coding_system): New fun, extracted
309 (Fwrite_region): Use it.
311 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
312 (funcall_lambda, run_hook_with_args): Make static and add prototype.
313 (ml_apply, find_handler_clause): Add prototype.
315 2001-11-16 Eli Zaretskii <eliz@gnu.org>
317 * config.in: Add #undef HAVE_COFF_H.
319 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
320 Required for ISC 4.1.
322 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
324 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
325 Andrew Wiseman <a.wiseman@btclick.com>.
327 2001-11-16 Kim F. Storm <storm@cua.dk>
329 The following changes are made to clean up the various internal
330 references to the fringes to actually use the term `fringe' for
331 them. Previously, they were called `flags areas', `bitmap areas',
332 `left/right side of windows', or implicitly as `flags' or
335 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
336 Comments fixed. Use renamed symbols.
338 * dispnew.c: Comment fix. Use renamed symbols.
340 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
341 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
342 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
344 * msdos.c: Comment fix.
346 * w32fns.c: Use renamed symbols.
348 * w32term.c: Comment fixes. Use renamed symbols.
349 (fringe_bitmap_type): Renamed from bitmap_type.
350 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
351 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
352 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
354 * w32term.h: Comment fixes. Use renamed symbols.
355 (fringes_extra): Renamed from flags_areas_extra.
356 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
357 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
358 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
359 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
360 (FRAME_X_LEFT_FRINGE_WIDTH):
361 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
362 (FRAME_X_RIGHT_FRINGE_WIDTH):
363 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
365 * widget.c: Use renamed symbols.
367 * window.c: Comment fixes. Use renamed symbols.
368 (coordinates-in-window-p): Doc fix.
370 * xdisp.c: Comment fixes. Use renamed symbols.
372 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
374 * xfns.c: Use renamed symbols.
376 * xterm.c: Comment fixes. Use renamed symbols.
377 (fringe_bitmap_type): Renamed from bitmap_type.
378 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
379 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
380 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
382 * xterm.h: Comment fixes. Use renamed symbols.
383 (fringes_extra): Renamed from flags_areas_extra.
384 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
385 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
386 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
387 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
388 (FRAME_X_LEFT_FRINGE_WIDTH):
389 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
390 (FRAME_X_RIGHT_FRINGE_WIDTH):
391 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
393 2001-11-15 Jason Rumney <jasonr@gnu.org>
395 * w32menu.c (add-menu-item): Make help_echo and radio buttons
396 work for most menu items. From David Ponce
397 <david.ponce@wanadoo.fr>.
399 2001-11-15 Gerd Moellmann <gerd@gnu.org>
401 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
402 Some x_set_* function expect to be called even if old and new
405 * xdisp.c (build_desired_tool_bar_string): Accept zero
406 tool_bar_button_relief.
408 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
410 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
412 * xterm.c (x_draw_bar_cursor): If the background color of the
413 glyph under the cursor equals the frame's cursor color, use
414 the glyph's foreground color for drawing the bar cursor.
416 * dispnew.c (direct_output_forward_char): Fix character/byte
419 2001-11-15 Miles Bader <miles@gnu.org>
421 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
422 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
423 Update arguments to find_field.
424 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
425 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
426 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
427 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
429 2001-11-14 Richard M. Stallman <rms@gnu.org>
431 * editfns.c (Fpropertize): Allow call with 1 arg.
433 * dispextern.h (image_background, image_background_transparent):
434 Conditionalize on HAVE_X_WINDOWS.
436 2001-11-13 Richard M. Stallman <rms@gnu.org>
438 * print.c (Fprin1_to_string): Doc fix.
440 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
442 * floatfns.c (Fceiling, Ffloor): Doc fixes.
444 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
446 * fileio.c (Ffile_accessible_directory_p): Doc fix.
448 * eval.c (syms_of_eval): Doc fix.
450 * coding.c (syms_of_coding): Doc fix.
452 * doc.c (Fsnarf_documentation): Doc fix.
454 * dispnew.c (syms_of_display): Doc fix.
456 * category.c (Fget_unused_category): Doc fix.
458 * buffer.c (syms_of_buffer): Doc fixes.
460 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
462 * print.c (prin1, print): Doc fix.
464 2001-11-14 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
466 * fontset.h: Remove declarations of variables
467 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
469 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
470 `Vclip_large_size_font'.
472 2001-11-13 Jason Rumney <jasonr@gnu.org>
476 2001-11-13 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
478 * xfaces.c (Fface_attributes_as_vector): Doc fix.
480 * w32fns.c (Fx_synchronize): Reindent.
488 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
489 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
490 `new style' [w/`doc:' keyword].
492 * xmenu.c (x-popup-menu): Reindent.
493 (x-popup-dialog): Likewise.
495 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
497 * xdisp.c (Fdump_tool_bar_row): Reindent.
499 * minibuf.c (Fminibuffer_complete_word): Reindent.
500 (Fminibuffer_complete_and_exit): Likewise.
501 (Fminibuffer_completion_help): Likewise.
502 (Fminibuffer_message): Likewise.
504 * fns.c (Freverse): Reindent.
506 * eval.c (Fif): Reindent.
509 * editfns.c (Fuser_real_login_name): Reindent.
510 (Finsert_buffer_substring): Likewise.
511 (Fcompare_buffer_substrings): Likewise.
512 (Fsubst_char_in_region): Likewise.
514 * dispnew.c (Fsit_for): Reindent.
515 (Fframe_or_buffer_changed_p): Likewise.
516 (Finternal_show_cursor_p): Likewise.
517 (syms_of_display): Likewise.
519 * alloc.c (Flist): Reindent.
522 2001-11-12 Richard M. Stallman <rms@gnu.org>
524 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
525 LeaveNotify events. Only FocusIn and FocusOut do that now.
526 (x_display_and_set_cursor): Do display hollow cursors in active
527 minibuffer windows when they are not selected.
529 2001-11-12 Jason Rumney <jasonr@gnu.org>
531 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
532 * w32term.c: Change doc-string comments to `new style'.
533 [w/`doc:' keyword]. Doc fixes.
535 * w32fns.c: Don't define max.
536 (Fx_open_connection): Only execute once.
538 2001-11-12 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
540 * ccl.c: Change macros to use do-while block instead of if-else.
541 Use braces to follow GNU Coding Standards.
543 2001-11-11 Richard M. Stallman <rms@gnu.org>
545 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
547 * lread.c (read_escape): Use end_of_file_error for reporting eof.
549 * insdel.c (replace_range): Use adjust_markers_for_replace
550 instead of adjust_markers_for_delete and adjust_markers_for_insert.
552 * intervals.h: Declare set_text_properties and set_text_properties_1.
554 * textprop.c (set_text_properties_1): New subroutine
555 broken out of set_text_properties.
556 (set_text_properties): Use set_text_properties_1.
558 * intervals.c (graft_intervals_into_buffer):
559 Use set_text_properties_1 to clear out properties.
561 * search.c (Freplace_match): Use replace_range to insert
562 and delete. Don't request property inheritance from
565 2001-11-10 Jason Rumney <jasonr@gnu.org>
567 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
568 vertical fonts. Allow them if face name is explicitly specified.
569 Do not give up if we find a font that cannot be converted to an xlfd.
571 2001-11-10 Gerd Moellmann <gerd@gnu.org>
573 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
574 instead of malloc/free.
576 2001-11-09 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
578 * xfaces.c (merge_face_vectors): Use braces to follow GNU
580 (Finternal_set_lisp_face_attribute): Likewise.
582 * buffer.c (Fbury_buffer): Likewise.
584 * indent.c (current_column_1): Remove unused variable `prev_col'.
586 * coding.c (encode_coding): Use precomputed value of `src'.
587 (encode_coding): Remove unused variable `src_end'.
588 (code_convert_region): Remove unused variables `count'.
590 2001-11-07 Jason Rumney <jasonr@gnu.org>
592 * w32term.c (x_display_and_set_cursor): Do not move system caret
593 if cursor_glyph is NULL.
595 2001-11-07 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
597 * keymap.c (access_keymap): Fix compilation error.
599 2001-11-07 Miles Bader <miles@gnu.org>
601 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
603 2001-11-07 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
605 * intervals.c (graft_intervals_into_buffer):
606 Remove #ifdef'd-out code.
607 (graft_intervals_into_buffer): Remove unused variable `middle'.
609 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
610 code (eval-current-buffer).
611 Change doc-string comments to `new style' [w/`doc:' keyword].
613 2001-11-06 Richard M. Stallman <rms@gnu.org>
615 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
617 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
619 * lread.c (read1): Fix behavior with nested backquoting.
621 * keyboard.c (make_lispy_event): Check integerness and fix
622 Lisp_Object/int mixup.
624 2001-11-06 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
626 * fns.c (copy_hash_table): Remove unused variable `v'.
628 * fontset.c (fontset_font_pattern): Remove unused variable
631 * indent.c (current_column_1): Remove unused variable `prev_col'.
633 2001-11-05 Richard M. Stallman <rms@gnu.org>
635 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
637 * buffer.c (Fkill_buffer): Don't delete auto save file
638 if buffer is modified.
640 2001-11-05 Andrew Innes <andrewi@gnu.org>
642 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
645 2001-11-05 Richard M. Stallman <rms@gnu.org>
647 * unexelf.c (unexec): Minor changes; clean up comments.
649 2001-11-05 Sam Steingold <sds@gnu.org>
651 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
653 2001-11-05 Andreas Schwab <schwab@suse.de>
655 * sound.c (sound_perror): Save errno from being clobbered.
657 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
659 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
660 the program image directly.
662 2001-11-05 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
664 * buffer.h (Fbuffer_local_value): Add prototype.
666 2001-11-04 Richard M. Stallman <rms@gnu.org>
668 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
671 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
672 (record_char): Likewise.
674 * keyboard.c (make_lispy_event): Don't insist a drag event must
675 move to a different buffer position. Instead, check for moving at
676 least double_click_fuzz.
678 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
680 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
682 * indent.c (current_column_1, Fmove_to_column): Separate the code
683 for display-table glyphs from the code buffer text, to fix
686 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
688 * buffer.c (Fbuffer_local_value): New function.
689 (syms_of_buffer): Defsubr it.
691 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
692 value of `cursor-in-non-selected-windows'.
694 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
695 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
696 (syms_of_xdisp): Initialize it.
698 2001-11-04 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
700 * xfns.c (Fx_create_frame): Doc fix.
702 * coding.c: Change doc-string comments to `new style' [w/`doc:'
705 * eval.c (top_level_value, top_level_set): Remove commented and
707 (Fdefvar): Fix usage in doc-string.
709 2001-11-03 Richard M. Stallman <rms@gnu.org>
711 * xfns.c: Include unistd.h, if it exists.
713 * editfns.c: Move the include of ctype.h after unistd.h.
715 * gmalloc.c: Test BROKEN_PROTOTYPES.
717 2001-11-03 Ken Raeburn <raeburn@gnu.org>
719 * lisp.h (CHECK_STRING_CAR): New macro.
720 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
721 treating XCAR and XCDR as lvalues.
722 (openp): Use CHECK_STRING_CAR.
723 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
725 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
727 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
728 (SIGMASKTYPE): Define.
730 * syssignal.h (sigunblock): Don't define if already defined.
732 2001-11-02 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
734 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
735 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
736 Fix typos in comments.
738 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
739 and #ifdef'd-out code.
740 Fix and reindent comments.
742 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
744 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
745 argument `i' in macros.
747 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
750 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
751 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
752 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
753 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
754 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
755 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
756 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
757 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
760 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
761 casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
762 composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
763 eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
764 indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
765 minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
766 sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
767 w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
768 xfaces.c, xmenu.c, xselect.c : Update usage of CHECK_ macros
769 (remove unused second argument).
771 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
773 * syntax.c (describe_syntax): New wrapper.
774 (Finternal_describe_syntax_value): Rename from describe_syntax.
775 Don't insert space at front and \n at the end.
776 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
778 * regex.c (re_wctype): Try to fix some warnings.
779 (regcomp, regexec): Don't forget the __restrict.
781 2001-11-02 Richard M. Stallman <rms@gnu.org>
783 * textprop.c (Fget_char_property): Doc fix.
785 2001-11-02 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
787 * process.c (Fstart_process): Add usage to doc-string.
789 * data.c (Fsetq_default): Ditto.
791 * callint.c (Finteractive): Ditto.
793 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
795 * macros.c: Don't include keymap.h any more.
797 2001-11-01 Richard M. Stallman <rms@gnu.org>
799 * data.c (Fmake_local_variable): Doc fix.
801 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
802 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
804 * keymap.c (Fdescribe_buffer_bindings): Print character property
805 bindings along with or instead of the buffer local map.
806 Make the overriding maps override what they should.
808 2001-11-01 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
810 * window.c (grow_mini_window): Fix typo in comment.
812 2001-11-01 Gerd Moellmann <gerd@gnu.org>
814 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
815 (XTset_vertical_scroll_bar): Likewise.
817 * xfns.c (x_build_heuristic_mask): Use four_corners_best
818 instead of IMAGE_BACKGROUND.
820 * xfns.c (four_corners_best): Reindent.
822 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
823 Handle :box so that it is possible to specify sexprs.
825 2001-11-01 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
827 * xfaces.c (Finternal_merge_in_global_face): Reindent.
829 (Finternal_set_alternative_font_registry_alist): Ditto.
830 (Ftty_suppress_bold_inverse_default_colors): Ditto.
832 * xfns.c (x-get-resource): Reindent.
834 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
836 * s/hpux11.h: New file.
838 2001-10-31 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
840 * emacs.c (USAGE1): Show command line option --no-window-system
841 instead of --no-windows in usage.
842 (standard_args): Rename --no-windows to --no-window-system.
843 (bug_reporting_address): Follow Emacs coding conventions.
845 * eval.c (Fcommandp): Doc fix.
846 Change doc-string comments to `new style' [w/`doc:' keyword].
848 * frame.c (Fframe_live_p): Doc fix.
850 * buffer.c (selective-display-ellipses): Doc fix.
852 2001-10-31 Gerd Moellmann <gerd@gnu.org>
854 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
856 * xfaces.c (realize_x_face): If C is not a single-byte character,
857 set the face's colors_copied_bitwise_p instead of the defaulted_p
858 members which have a different meaning.
859 (free_face_colors): Do nothing for a face whose colors have been
862 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
864 2001-10-31 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
866 * marker.c, mocklisp.c: Change doc-string comments to `new style'
869 2001-10-31 Gerd Moellmann <gerd@gnu.org>
871 * fns.c (require_unwind): Return Lisp_Object.
873 2001-10-31 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
875 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
876 (last-input-char): Revert doc-string to be the same as the
877 doc-string of `last-input-event'.
879 * xdisp.c: Fix typos in comments.
881 2001-10-31 Gerd Moellmann <gerd@gnu.org>
883 * window.c (grow_mini_window): Handle case that the root
884 window is already smaller than the nominal mininum height.
886 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
888 * emacs.c (main): Don't call keys_of_macros any more.
890 * lisp.h (keys_of_macros): Remove.
892 * macros.c (keys_of_macros): Remove.
894 * xfaces.c (Fface_attribute_relative_p): Declare args.
896 2001-10-30 Jason Rumney <jasonr@gnu.org>
898 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
899 (enum_font_cb2): Ignore fonts with vertical orientation.
901 2001-10-30 Richard M. Stallman <rms@gnu.org>
903 * keyboard.c (Finput_pending_p): Doc fix.
905 2001-10-30 Gerd Moellmann <gerd@gnu.org>
907 * xterm.c (x_after_update_window_line): Don't run the code
908 clearing in borders for rows whose visible height is 0.
910 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
911 resized_p flag is set. If not set, use the much less flickering
912 method previously used.
914 * dispnew.c (change_frame_size_1): Set frame's resized_p.
916 * frame.h (struct frame) <resized_p>: New member.
918 * lread.c (to_multibyte): Ensure read_buffer is at least twice
919 as large as the number of bytes to convert.
921 * lread.c (to_multibyte): New function.
924 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
926 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
928 2001-10-30 Gerd Moellmann <gerd@gnu.org>
930 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
931 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
932 if the row's fill_line_p is set and drawing the last glyph with
933 DRAW_IMAGE_{RAISED,SUNKEN}.
935 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
937 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
939 * xmenu.c: Include coding.h and charset.h.
940 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
941 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
942 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
943 Explicitly set wv->help. Use `TRUE' rather than `True'.
944 (menu_help_callback): Use empty_string.
946 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
947 (Fx_popup_dialog): Explicitly init f.
948 (w32_menu_display_help): Use empty_string.
950 2001-10-29 Richard M. Stallman <rms@gnu.org>
952 * fns.c (Frequire): Detect recursive try to require the same
953 feature 3 or more levels deep, and get error.
954 (require_unwind): New subroutine.
955 (require_nesting_list): New variable.
956 (syms_of_fns): Init and staticpro it.
958 * print.c (print_object): Clarify indication of insertion type.
960 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
962 * coding.c (syms_of_coding): Document that locale-coding-system is
963 used for decoding input on X.
965 * window.c (Fscroll_left, Fscroll_right): Doc fix.
967 2001-10-29 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
969 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
970 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
972 2001-10-29 Gerd Moellmann <gerd@gnu.org>
974 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
975 use NO_CURSOR if cursor_in_non_selected_windows is false.
977 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
978 the slant attribute if FRAME is t.
980 * xfns.c (x_set_internal_border_width): Set frame garbaged
981 when X window doesn't exist yet.
983 * xterm.c (x_after_update_window_line): Clear internal border
984 in different circumstances.
986 * xterm.c (XTread_socket) <KeyPress>: Don't use
987 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
990 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
992 * m/ibms390.h: New file. From Adam Thornton
993 <athornton@sinenomine.net>.
995 2001-10-28 Gerd Moellmann <gerd@gnu.org>
997 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
999 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
1002 2001-10-28 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1004 * emacs.c: Use argv[0] instead of emacs when -t was specified.
1006 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
1008 Fix typos in comments.
1010 * emacs.c (bug_reporting_address): New function.
1011 Use it when displaying usage message.
1013 * minibuf.c (read_minibuf): Remove unused external declaration of
1014 variable `Qread_only'.
1016 * keymap.c (access_keymap): Remove unused variable `charset'.
1018 2001-10-28 Miles Bader <miles@gnu.org>
1020 * xfaces.c (merge_face_heights): Handle TO being relative as well.
1021 Remove #ifdef'd-out code.
1022 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
1023 (syms_of_xfaces): Initialize them.
1025 2001-10-27 Jason Rumney <jasonr@gnu.org>
1027 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
1028 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
1029 position using the system caret.
1031 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
1032 (w32_system_caret_height, w32_system_caret_x)
1033 (w32_system_caret_y): New variables for tracking system caret.
1034 (w32_initialize): Initialize them.
1035 (x_display_and_set_cursor): Make system caret follow the active cursor.
1037 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
1040 * w32term.c (note_mouse_highlight): Clear old help_echo.
1042 2001-10-27 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1044 * xterm.c: Fix typo in a comment.
1046 * emacs.c: Fix typos in comments.
1047 Remove unnecessary spaces.
1048 Change doc-string comments to `new style' [w/`doc:' keyword].
1049 (USAGE2): Fix typos in usage string.
1051 * xterm.c: Fix typo in a comment.
1053 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
1056 2001-10-27 Gerd Moellmann <gerd@gnu.org>
1058 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
1059 instead of 1/2 line_height in the heuristic for skipping
1060 farther backward when target_y was not reached.
1062 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
1063 Display errno only if non-zero.
1064 (sound_warning): New function.
1065 (vox_configure): Don't treat failing to set sample rate as error.
1066 (various places): Improve error messages.
1068 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
1070 * fileio.c (Faccess_file): Run the argument filename through
1071 Fexpand_file_name, before using it.
1073 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
1074 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
1076 2001-10-26 Gerd Moellmann <gerd@gnu.org>
1078 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
1080 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1081 Fix clearing in the case of scroll bars on the right.
1083 2001-10-26 Juanma Barranquero <lektu@terra.es>
1085 * w32gui.h (XImage): Add a dummy typedef.
1087 2001-10-26 Gerd Moellmann <gerd@gnu.org>
1089 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
1091 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
1093 * frame.c (Fframe_parameter): Fix last change.
1095 * fileio.c: Revert last change (which removed old commented-out
1096 version of expand-file-name). Add a comment that explains why
1097 this old version should not be removed.
1099 2001-10-25 Gerd Moellmann <gerd@gnu.org>
1101 * frame.c (Fframe_parameter): Fix a bug whereby some
1102 ``artificial'' frame parameters, like `minibuffer' were not
1103 obtained by calling Fframe_parameters.
1105 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
1108 * xdisp.c (move_it_vertically_backward): Compute line height
1109 differently. Add heuristic to try to be more compatible to 20.x.
1111 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
1113 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
1115 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
1118 2001-10-25 Miles Bader <miles@gnu.org>
1120 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
1121 BG is a pointer to a structure, not a structure.
1122 (gif_format, png_format): Add missing commas.
1124 2001-10-24 Richard M. Stallman <rms@gnu.org>
1126 * xfaces.c (Fface_attributes_as_vector): New function.
1127 (syms_of_xfaces): Defsubr it.
1129 2001-10-24 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1131 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
1134 2001-10-25 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1136 * search.c (scan_newline): Remove unused variable `selective_display'.
1138 2001-10-25 Miles Bader <miles@gnu.org>
1140 * dispextern.h (struct image): Add `background',
1141 `background_valid', and `background_transparent' fields.
1142 (image_background, image_background_transparent): New declarations.
1143 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
1144 * xfns.c (image_background, image_background_transparent)
1145 (four_corners_best): New functions.
1146 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
1147 (gs_format): Add `:background' entry.
1148 (lookup_image): Set IMG's background color if specified.
1149 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1151 (x_clear_image_1): Reset `background_valid' and
1152 `background_transparent_valid' fields.
1153 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1154 calculating it here. Set IMG's background_transparent field.
1155 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1156 (enum png_keyword_index): Add PNG_BACKGROUND.
1157 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1158 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1159 (enum gif_keyword_index): Add GIF_BACKGROUND.
1160 (enum gs_keyword_index): Add GS_BACKGROUND.
1161 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
1162 Pre-calculate image background color where necessary.
1163 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1164 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1165 color to use for image glyph reliefs.
1167 2001-10-24 Gerd Moellmann <gerd@gnu.org>
1169 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
1172 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1173 Fix clearing of area not covered by scroll bar.
1175 2001-10-24 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1177 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
1179 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
1180 (glyph_rect): Remove unused variable `area'.
1182 2001-10-24 Gerd Moellmann <gerd@gnu.org>
1184 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
1186 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
1187 (row_containing_pos): Take additional argument DY.
1188 Treat rows ending in middle of char differently.
1189 (display_line): Handle tabs on window systems differently.
1191 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
1192 with additional argument.
1194 * dispextern.h (row_containing_pos): Adjust prototype.
1196 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
1197 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
1198 (try_window_id, try_window_reusing_current_matrix)
1199 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
1200 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
1202 2001-10-24 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1204 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
1206 (HAVE_BOXES): Fix typo in comment.
1207 (push_menu_pane): Fix typo in comment.
1209 * xdisp.c: (display_prop_string_p): Remove unused local declaration
1211 (single_display_prop_string_p): Remove unused local declarations
1212 of `Qwhen' and `Qmargin'.
1213 (string_buffer_position): Remove unused variable `around'.
1214 (store_frame_title): Remove unused variable `width'.
1216 * window.c: Don't define max.
1217 (coordinates_in_window): Remove unused variable `uy'.
1219 * widget.c: Don't define max.
1221 * process.c: Don't define max.
1222 (create_process): Remove unused variable `buffer'.
1224 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1226 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
1228 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
1230 * xfaces.c (Finternal_set_lisp_face_attribute)
1231 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
1232 frame is on a windowed display.
1234 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1236 * dispnew.c (sync_window_with_frame_matrix_rows):
1237 Fix handling of windows which aren't full-width, fix handling
1240 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
1242 2001-10-23 Andreas Schwab <schwab@suse.de>
1244 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
1245 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
1247 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1249 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
1250 REAL_END. Notice if cursor gets overwritten.
1251 (notice_overwritten_cursor): Take X positions as parameters.
1252 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1253 around call to x_draw_glyphs.
1255 2001-10-23 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1257 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
1258 instead of C) and usage.
1260 * editfns.c (char-to-string): Fix argument names (use CHAR instead
1263 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
1264 `left', `max_width' and `max_height'.
1266 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1268 * xdisp.c (display_line): For a tab continued to the next line,
1269 set row's ends_in_middle_of_char_p.
1271 2001-10-22 Gerd Moellmann <gerd@gnu.org>
1273 * xdisp.c (display_line): Fix computation of continuation lines
1276 2001-10-22 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1278 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
1281 * fileio.c: Remove unused code.
1283 2001-10-22 Miles Bader <miles@gnu.org>
1285 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1286 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
1287 Remove `DOC_STRINGS_IN_COMMENTS' cases.
1289 2001-10-21 Jason Rumney <jasonr@gnu.org>
1291 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
1293 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1295 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
1296 (Finsert_string): Avoid the multi-line string literals warning.
1298 2001-10-22 Miles Bader <miles@gnu.org>
1300 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
1301 (Fdocumentation): Don't use it.
1302 (syms_of_doc): Don't initialize it.
1304 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
1305 * print.c (Fwith_output_to_temp_buffer): Likewise.
1306 * window.c (Fsave_window_excursion): Likewise.
1307 * editfns.c (Fsave_excursion, Fsave_current_buffer)
1308 (Fsave_restriction): Likewise.
1309 * eval.c (Frun_hooks, Frun_hook_with_args)
1310 (Frun_hook_with_args_until_failure)
1311 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
1312 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
1313 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
1314 (Funwind_protect, Fcondition_case): Likewise.
1315 * coding.c (Ffind_operation_coding_system): Likewise.
1316 * keyboard.c (Ftrack_mouse): Likewise.
1318 2001-10-21 Miles Bader <miles@gnu.org>
1320 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
1321 (Fmake_hash_table): Add usage: string to doc string.
1322 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
1323 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
1324 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
1325 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
1326 (Fml_prefix_argument_loop): Likewise.
1328 2001-10-21 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1330 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
1332 * sysdep.c (init_sys_modes): Change doc-string comments to `new
1333 style' [w/`doc:' keyword].
1335 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
1336 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
1337 comments to `new style' [w/`doc:' keyword].
1339 2001-10-21 Jason Rumney <jasonr@gnu.org>
1341 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
1343 * w32term.c (remember_mouse_glyph): New function.
1344 (w32_mouse_position): Use it.
1345 (note_mouse_movement): If the mouse moved off the glyph, remember
1348 * w32term.h (struct w32_output): Correct spelling of x_compatible.
1349 (w32_display_info): Add mouse_face_overlay.
1351 * w32term.c (notice_overwritten_cursor): Renamed from
1352 note_overwritten_text_cursor. Rewritten to take glyph widths into
1354 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1355 (fast_find_string_pos): New function.
1356 (fast_find_position): Return the correct vpos. Add parameter
1357 STOP. In the final row, stop before glyphs having STOP as object.
1358 Don't consider glyphs that are not from a buffer.
1359 (fast_find_position) [0]: Add a presumably more correct version
1361 (expose_window_tree, expose_frame): Don't compute intersections here.
1362 (expose_window): Do it here instead.
1363 (expose_window_tree, expose_window, expose_line): Return 1 when
1364 overwriting mouse-face.
1365 (expose_window): If W is the window currently being updated, mark
1367 (expose_frame): If mouse-face was overwritten, redo it.
1368 (x_use_underline_position_properties): New variable.
1369 (syms_of_xterm): DEFVAR_BOOL it.
1370 (x_draw_glyph_string): Add comment to use it in future.
1371 (x_draw_glyph_string): Restore clipping after drawing box.
1372 Fix a computation of the underline position.
1373 (w32_get_glyph_string_clip_rect): Minor cleanup.
1374 (x_fill_stretch_glyph_string): Remove an assertion.
1375 (x_produce_glyphs): Don't convert multibyte characters
1376 to unibyte characters in unibyte buffers.
1377 (cursor_in_mouse_face_p): New function.
1378 (x_draw_stretch_glyph_string): Use it to choose a different GC
1379 when drawing a cursor within highlighted text. Don't draw
1380 background again if it has already been drawn.
1381 (x_draw_glyph_string_box): Don't draw a full-width
1382 box just because the glyph row's full_width_p flag is set.
1383 (x_draw_glyphs): Fix computation of rightmost x for
1385 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1386 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
1387 change bottom shadow accordingly. Some cleanup.
1388 (x_update_window_end): Handle overwritten mouse face
1389 also for tool bar windows.
1390 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1391 DRAW is DRAW_IMAGE_RAISED.
1392 (clear_mouse_face): Return 1 if text with mouse face was
1393 actually redrawn. Make the function static. Reset
1394 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
1395 optimize away highlighting if we pass over that same overlay again.
1396 (note_mouse_highlight): Call mouse_face_overlay_overlaps
1397 to detect a case where we have to highlight a different region
1398 despite not having left the currently highlighted region.
1399 Set mouse_face_overlay in the x_display_info. Avoid changing the
1400 mouse pointer shape when show_mouse_face has already done it, or
1401 there is no need. Handle mouse-face and help-echo in strings.
1402 (glyph_rect): New function.
1403 (w32_mouse_position): Use it to raise the threshold for mouse
1404 movement event generation.
1405 (w32_initialize_display_info): Initialize the x_display_info's
1407 (w32_set_vertical_scroll_bar): Don't clear a zero height
1409 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1410 a widget to zero height.
1412 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
1413 Protect unibyte strings created by replacing their multibyte
1414 equivalents in menu_items.
1415 (w32_menu_show): Don't overwrite an item's name with its key
1416 description in case the description is a multibyte string.
1417 (single_submenu): Some cleanup.
1419 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
1420 (postprocess_image): New function.
1421 (lookup_image): Call it for all image types except PostScript.
1422 (x_kill_gs_process): Call postprocess_image.
1423 (tiff_error_handler, tiff_warning_handler): New functions.
1424 (tiff_load): Install them as handlers.
1425 (x_kill_gs_process): Recognize if someone has cleared the image
1427 (valid_image_p): Protect better against invalid image
1428 specifications. Previous code could signal an error.
1429 (Fx_hide_tip, Fshow_tip): Doc fix.
1430 (Fv_max_tooltip_size): New variable.
1431 (syns_of_xfns): DEFVAR_LISP it.
1432 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
1433 window buffer to *tip* right after creating the frame. Set frame's
1434 window_width. Use a maximum tooltip size specified by
1435 Vx_max_tooltip_size, if that has valid contents.
1436 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1437 Make sure the tooltip is completely visible.
1438 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
1439 (Fx_create_frame): Adjust the frame's height for presence
1440 of the tool bar before calling x_figure_window_size.
1441 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
1442 when the window gets smaller.
1443 (x_set_foreground_color): Set frame's cursor_pixel.
1444 (x_set_foreground_color, x_set_background_color): Cleaned up.
1445 (x_set_font): Handle case of x_new_fontset returning the same name
1446 as before, although there was a change in fontsets.
1448 2001-10-21 Miles Bader <miles@gnu.org>
1450 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
1451 (Flogxor): Add usage: string to doc string.
1452 * charset.c (Fstring): Likewise.
1453 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
1454 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
1456 2001-10-21 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1458 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
1460 * alloc.c: Reindent DEFUNs with doc: keywords.
1462 * abbrev.c (Finsert_abbrev_table_description): Reindent.
1464 * frame.c: Change doc-string comments to `new style' [w/`doc:'
1467 2001-10-20 Gerd Moellmann <gerd@gnu.org>
1469 * (Version 21.1 released.)
1471 2001-10-20 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1473 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
1475 * xdisp.c (invisible_text_between_p): Put prototype inside #if
1478 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
1479 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
1480 Change doc-string comments to `new style' [w/`doc:' keyword].
1482 2001-10-20 Miles Bader <miles@gnu.org>
1484 The following changes remove the glyph_row `inverse_p' field,
1485 which is never set anymore, due to other changes:
1487 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
1488 (reassert_line_highlight, change_line_highlight): Declarations removed.
1489 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
1490 (line_hash_code, row_equal_p, fake_current_matrices)
1491 (build_frame_matrix_from_leaf_window, update_frame_line)
1492 (update_frame_line, update_frame_line, update_frame_line):
1493 Don't use `inverse_p' field.
1494 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
1495 change_line_highlight_hook.
1496 (XTreassert_line_highlight, x_change_line_highlight):
1498 (x_fix_overlapping_area, x_write_glyphs, expose_area)
1499 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1500 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
1502 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
1503 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1504 (w32_reassert_line_highlight, x_change_line_highlight):
1506 * w32console.c (reassert_line_highlight, change_line_highlight):
1508 (initialize_w32_display): Don't set reassert_line_highlight_hook
1509 or change_line_highlight_hook.
1510 (hl_mode): Function removed.
1511 (reset_terminal_modes, set_terminal_modes, update_begin)
1512 (update_end, w32_face_attributes, initialize_w32_display):
1513 (clear_frame, ins_del_lines): Don't call it.
1514 * termhooks.h (reassert_line_highlight_hook)
1515 (change_line_highlight_hook): Declarations removed.
1516 * term.c (reassert_line_highlight_hook)
1517 (change_line_highlight_hook): Variables removed.
1518 (reassert_line_highlight, change_line_highlight): Functions removed.
1519 * msdos.c (IT_reassert_line_highlight)
1520 (IT_change_line_highlight): Functions removed.
1521 (internal_terminal_init): Don't set reassert_line_highlight_hook
1522 or change_line_highlight_hook.
1523 (highlight): Variable removed.
1524 (IT_set_face, IT_update_begin, IT_update_end)
1525 (IT_set_terminal_modes): Don't set or use it.
1527 The following changes remove inverse-video support for terminals
1528 that use a `magic cookie' standout mode. Due to changes in the
1529 way mode-lines are displayed, such support no longer works
1530 anyway, and it's probable that almost no one uses such terminals
1533 * term.c (standout_requested): Variable removed.
1534 (update_end, highlight_if_desired): Don't use it.
1535 (chars_wasted, copybuf): Variables removed.
1536 (write_standout_marker): Function removed.
1537 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
1538 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
1539 Don't use `chars_wasted' or `copybuf'.
1540 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
1541 Set `costs_set' to true.
1542 (cursor_to, clear_end_of_line): Test `costs_set' instead of
1544 (clear_end_of_line): Function removed.
1545 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
1546 (clear_to_end): Call `clear_end_of_line' instead of
1547 `clear_end_of_line_raw'.
1548 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
1549 (term_init): Don't set them.
1550 Turn off any standout/underline modes that require magic cookies.
1551 (ins_del_lines, highlight_if_desired, background_highlight)
1552 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
1553 Remove special processing for magic-cookie standout modes.
1554 (turn_off_face, turn_on_face): Remove special processing for
1555 underline magic-cookie glitch.
1557 2001-10-19 Richard M. Stallman <rms@gnu.org>
1559 * eval.c (syms_of_eval): Doc fixes.
1561 2001-10-19 Gerd Moellmann <gerd@gnu.org>
1563 * xdisp.c (redisplay_internal): Don't clear echo area if the
1564 mini-window is selected.
1566 2001-10-19 Miles Bader <miles@gnu.org>
1568 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
1569 doesn't take precedence if the affected property's value is nil.
1571 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
1573 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
1574 with fields and suggest using `forward-line' to avoid them.
1575 * editfns.c (Fline_beginning_position, Fline_end_position):
1576 Clarify documentation.
1578 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
1580 * keymap.c (current_minor_maps): `override' only shadows its
1581 correspondent in minor-mode-map-alist, not the whole tail.
1583 2001-10-18 Andrew Innes <andrewi@gnu.org>
1585 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
1586 optimization. The fontp->encoding array was not being initialized
1587 correctly when compiled with optimizations by MSVC.
1589 2001-10-18 Gerd Moellmann <gerd@gnu.org>
1591 * xdisp.c (display_line): Indicate empty lines in active mini-window.
1593 2001-10-17 Andrew Innes <andrewi@gnu.org>
1595 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
1597 * w32fns.c (w32_load_system_font): Cache codepage for font, in
1598 font_info.charset field.
1600 * w32term.c (w32_encode_char): Get cached codepage from font_info,
1601 rather than working it out by calling w32_codepage_for_font for
1604 2001-10-17 Andrew Innes <andrewi@gnu.org>
1606 * w32term.c (w32_read_socket): Determine clipping rectangle for
1607 the entire frame, including areas covered by scrollbars and the
1608 menubar. This avoids internal arguments about whether a frame is
1609 fully obscured or not.
1611 2001-10-17 Gerd Moellmann <gerd@gnu.org>
1613 * xdisp.c (try_window_id): Undo last change. Give up if
1614 window ends in strings.
1616 * xdisp.c (try_window_id): Don't display lines after the window
1617 end if the rest of the window after the window end was already blank.
1619 * xdisp.c (try_window_id): Remove code that was only there
1620 for the release of 21.1.
1622 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
1624 2001-10-17 Miles Bader <miles@gnu.org>
1626 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
1627 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
1628 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
1629 Change doc-string comments to `new style' [w/`doc:' keyword].
1630 (DOC_STRINGS_IN_COMMENTS): Macro removed.
1631 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
1634 2001-10-16 Miles Bader <miles@gnu.org>
1636 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
1638 2001-10-16 Gerd Moellmann <gerd@gnu.org>
1640 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
1643 2001-10-16 Ken Raeburn <raeburn@gnu.org>
1645 Avoid the assumption that car and cdr slots of cons cells are
1646 addressable lvalues; this allows for easier experimentation with
1647 other lisp implementations that may not permit such accesses for
1648 various reasons. Not quite complete -- buffer.c still needs some
1649 work, and w32/mac files need rechecking -- so compile-time
1650 enforcement is left disabled for now.
1652 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
1653 gcc with a union-based Lisp object rep. Redefine as no-op for now.
1654 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
1655 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
1656 (XSETCAR, XSETCDR): New macros.
1657 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
1658 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
1659 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
1660 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
1662 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
1663 * buffer.c (record_buffer, Fbury_buffer)
1664 (swap_out_buffer_local_variables, recenter_overlay_lists)
1665 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
1666 fields of a cons cell respectively.
1667 * callint.c (quotify_args, Fcall_interactively): Likewise.
1668 * ccl.c (Fregister_code_conversion_map): Likewise.
1669 * coding.c (detect_coding_system): Likewise.
1670 * composite.c (get_composition_id, make_composition_value_copy):
1672 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
1673 (swap_in_symval_forwarding, set_internal, Fset_default)
1674 (Fmake_variable_buffer_local, Fmake_local_variable)
1675 (Fmake_variable_frame_local): Likewise.
1676 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
1677 * keymap.c (Fset_keymap_parent, store_in_keymap)
1678 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
1679 * minibuf.c (get_minibuffer): Likewise.
1680 * search.c (Fmatch_data): Likewise.
1681 * textprop.c (extend_property_ranges): Likewise.
1682 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
1683 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
1685 * w32term.c (x_delete_display): Likewise.
1686 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
1688 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
1689 * doc.c (store_function_docstring): Use XSETCARFASTINT.
1690 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
1691 (Fread_file_name): Use XSETCAR.
1692 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
1694 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
1695 * frame.c (Fmake_terminal_frame): Use XSETCDR.
1696 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
1698 * keyboard.c (read_char): Alter list traversal to avoid taking the
1699 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
1700 (parse_menu_item): Use XSETCAR and XSETCDR.
1701 (reach_char_x_menu_prompt): Use XSETCAR.
1702 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
1703 (Fcommand_execute): Use XSETCDR.
1704 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
1705 (openp): Change list traversal to avoid using XCAR as lvalue.
1706 (read_list): Use XSETCDR.
1707 * process.c (wait_reading_process_input): Change wait_for_cell
1708 handling to avoid taking addresses of cons cell slots.
1709 * xselect.c (x_own_selection, x_handle_selection_clear)
1710 (x_clear_frame_selections): Use XSETCDR.
1711 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
1712 (x_handle_property_notify, x_get_foreign_selection)
1713 (x_handle_selection_notify): Use XSETCAR.
1715 2001-10-15 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1717 * buffer.c: Put doc strings in comments.
1719 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
1721 2001-10-15 Sam Steingold <sds@gnu.org>
1723 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
1725 2001-10-15 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1727 * process.c (process-inherit-coding-system-flag)
1728 (get-buffer-process): Do not confuse make-docfile with doc strings
1731 * editfns.c (Fchar_to_string): Make doc string consistent with
1732 arguments. Put doc strings in comments.
1734 * abbrev.c, minibuf.c: Put doc strings in comments.
1736 2001-10-15 Gerd Moellmann <gerd@gnu.org>
1738 * window.c (window_loop): Don't check for Fother_buffer returning nil.
1740 * window.c (select_window_1): Unfreeze window start. Remove a
1741 doubled test for WINDOW being live.
1743 2001-10-15 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1745 * fns.c (Fmapconcat): Fix typo in a doc string.
1747 * dispnew.c (Fsleep_for): Fix typo in a doc string.
1749 2001-10-15 Gerd Moellmann <gerd@gnu.org>
1751 * xterm.c (x_draw_glyph_string): Restore clipping after
1754 2001-10-15 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1756 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
1758 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
1760 * indent.c (skip_invisible): Use new retval of
1761 TEXT_PROP_MEANS_INVISIBLE.
1763 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
1764 If a parent is reached and noinherit is set, exit immediately.
1765 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
1767 * s/ms-w32.h (EXEC_SUFFIXES):
1768 * s/msdos.h (EXEC_SUFFIXES):
1769 * process.h (EXEC_SUFFIXES): Remove.
1771 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
1772 (decode_suffixes): Remove.
1774 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
1775 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
1776 (invisible_ellipsis_p): Remove.
1778 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
1779 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
1780 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
1781 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
1782 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
1784 2001-10-14 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1786 * lisp.h (Ftop_level): Add prototype.
1788 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
1789 (XTread_socket): Improve style of comments to follow other
1792 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
1793 is already prototyped in included lisp.h).
1795 * frame.c (Fset_mouse_position): Improve style of comment to
1796 follow other comments.
1797 (Fset_mouse_pixel_position): Improve style of comment to follow
1799 (Fmake_frame_visible): Doc fix and typo in comment.
1800 (Fmake_frame_invisible): Doc fix and typo in comment.
1801 (Ficonify_frame): Fix typo in comment.
1803 2001-10-14 Gerd Moellmann <gerd@gnu.org>
1805 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
1806 * term.c, alloc.c: Put doc strings in comments.
1808 2001-10-13 Gerd Moellmann <gerd@gnu.org>
1810 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
1811 Provide definitions for doc strings in comments.
1813 * fns.c: Put doc strings in comments.
1815 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
1817 * dired.c (file_name_completion): Ignore a candidate directory if
1818 it matches an element in completion-ignored-extensions that ends
1820 (syms_of_dired) <completion-ignored-extensions>: Mention the above
1821 feature in the doc string.
1822 (Ffile_name_completion): Ditto.
1824 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
1826 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
1828 * xfns.c (syms_of_xfns): Update calls to Fprovide.
1830 * lisp.h (Fprovide): Update prototype.
1831 (Ffeaturep, invisible_p): Remove.
1833 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
1834 (DOLIST, LOOP_PROPVAL): New macros.
1835 (invisible_p, invisible_ellipsis_p): Use them.
1836 (invisible_noellipsis_p): New function.
1837 (syms_of_xdisp): Use empty_string.
1839 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
1841 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
1842 (syms_of_lread) <Vafter_load_alist>: Update docstring.
1844 * print.c (Fwith_output_to_temp_buffer): Align with
1845 internal_with_output_to_temp_buffer.
1846 (print_preprocess): Use traverse_intervals_noorder.
1847 (print_object): Update call to traverse_intervals.
1849 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
1850 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
1852 * intervals.c (traverse_intervals_noorder): New function.
1853 (search_for_interval, count_intervals): Use it.
1854 (traverse_intervals): Use less stack space and drop `depth' arg.
1856 * fns.c (Ffeaturep): Add new `subfeature' arg.
1857 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
1858 (Qsubfeatures): New var.
1859 (syms_of_fns): Initialize it.
1861 * keymap.c (Fkey_description): Use empty_string.
1862 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
1863 (syms_of_keymap): Setup inheritance between maps.
1864 Don't export Sdescribe_bindings_internal any more.
1866 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
1868 2001-10-12 Gerd Moellmann <gerd@gnu.org>
1870 * xterm.c (notice_overwritten_cursor): Renamed from
1871 note_overwritten_text_cursor. Rewritten to take glyph widths into
1874 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
1876 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
1877 multi-line strings without a trailing "\n\".
1879 2001-10-12 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
1881 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
1884 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
1886 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
1888 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
1889 * w32proc.c (sys_spawnve):
1890 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
1891 * w32.c (check_windows_init_file):
1892 * sound.c (Fplay_sound):
1893 * emacs.c (init_cmdargs):
1894 * process.c (Fstart_process): Update calls to openp.
1896 * callproc.c (Vexec_suffixes): New var.
1897 (Fcall_process): Update call to openp.
1898 (decode_suffixes): New function.
1899 (syms_of_callproc): Init exec-suffixes.
1901 * lread.c (Vload_suffixes, default_suffixes): New vars.
1902 (openp): Take a lisp list of suffixes.
1903 Check for file-name-handlers even if the file was absolute already.
1904 (syms_of_lread): Declare load-suffixes.
1905 (Fload): Fix up call to openp.
1906 Don't bother checking for file-name-handler at the very beginning.
1908 * keymap.h (Fcopy_keymap): Don't export.
1910 * lisp.h (empty_string): Declare.
1911 (Vload_suffixes, Vexec_suffixes): Declare.
1912 (openp): Update prototype.
1914 * emacs.c (empty_string): New var.
1915 (syms_of_emacs): Initialize it.
1917 * search.c (wordify): Use it.
1919 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
1920 selected window if it's not displayed there. Handle the case
1921 when the window is dedicated.
1922 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
1924 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
1926 * syntax.h (struct gl_state_s): Change the meaning of b_property.
1927 Remove left_ok and right_ok.
1928 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
1929 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
1930 new meaning of b_property.
1932 * syntax.c (update_syntax_table): Simplify.
1933 (Fforward_comment): Don't skip quoted chars when going backward.
1935 2001-10-11 Gerd Moellmann <gerd@gnu.org>
1937 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
1938 in case I is of some unsigned type, in which case
1939 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
1940 comparison becomes bogus.
1942 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
1943 (Fuser_full_name): Fix bug treating a float as a fixnum.
1945 * data.c (Fstring_to_number): Use make_fixnum_or_float.
1947 * lisp.h (make_fixnum_or_float): New macro.
1949 * lisp.h (circular_list_error): Add prototype.
1951 * data.c (Qcircular_list): New variable.
1952 (circular_list_error): New function.
1953 (syms_of_data): Initialize it Qcircular_list.
1955 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
1957 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
1958 casefiddle.c, buffer.c: Include keymap.h.
1960 2001-10-10 Gerd Moellmann <gerd@gnu.org>
1962 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
1963 options. From Dave Love <d.love@dl.ac.uk>.
1965 2001-10-09 Gerd Moellmann <gerd@gnu.org>
1967 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
1968 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1970 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
1972 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1974 2001-10-08 Andrew Innes <andrewi@gnu.org>
1976 * lisp.h [max]: Undef min and max before redefining them.
1978 * w32gui.h: Do not undef min and max.
1980 * w32heap.h: Do not undef min and max.
1982 * s/ms-w32.h: Do not undef min and max.
1984 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1986 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
1988 2001-10-08 Sam Steingold <sds@gnu.org>
1990 * keymap.c (current-active-maps): Quote newlines (compilation error).
1992 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
1994 * Makefile.in (lisp, shortlisp): Replace bindings.el with
1995 bindings.elc, since otherwise doc strings in bindings.el get wrong
1998 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
2000 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
2002 * keyboard.h (map_prompt): Remove.
2004 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
2005 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
2007 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2009 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2011 * keyboard.c (map_prompt): Remove.
2012 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
2015 * keymap.h: New file. Extracted from lisp.h.
2017 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
2018 (accessible_keymaps_1): New function.
2019 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
2020 (Fwhere_is_internal): Use Fcurrent_active_maps.
2021 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
2022 Insert in current buffer rather than standard-output.
2023 Don't call `help-mode'. Export to elisp.
2024 (describe_buffer_bindings): New wrapper.
2025 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
2026 and Sdescribe_buffer_bindings.
2028 2001-10-08 Gerd Moellmann <gerd@gnu.org>
2030 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
2031 Remove code setting signal handler.
2033 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
2034 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
2036 2001-10-08 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
2038 * keyboard.c: Don't define min/max.
2040 2001-10-08 Gerd Moellmann <gerd@gnu.org>
2042 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
2043 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
2044 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
2045 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
2046 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
2047 Don't define min/max.
2049 * lisp.h (min, max): New macros.
2051 * puresize.h (BASE_PURESIZE): Increase to 725000.
2053 2001-10-08 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
2055 * xfaces.c (free_frame_menubar): Add prototype.
2057 * lisp.h (init_window): Add prototype.
2059 * editfns.c: Include ctype.h.
2061 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
2062 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
2063 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
2066 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
2067 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
2068 `popup_activated_flag' and `title'.
2070 * doc.c (Fdocumentation_property): Fix typo in a doc string.
2072 * emacs.c (main): Remove extra `;'.
2074 * atimer.h (struct atimer): Fix typos in a comment.
2076 * atimer.c: Fix typo.
2078 * Makefile.in: Fix typo.
2080 * README: Remove obsolete part mentioning removed VMS file.
2082 2001-10-07 Miles Bader <miles@gnu.org>
2084 * Makefile.in (lisp, shortlisp): Add `button.elc'.
2086 2001-10-07 Ken Raeburn <raeburn@gnu.org>
2088 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
2091 * lisp.h (Ffield_end): Declare.
2093 2001-10-07 Gerd Moellmann <gerd@gnu.org>
2095 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
2097 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
2099 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
2101 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
2103 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
2104 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
2106 * alloc.c (inhibit_garbage_collection): Simplify.
2107 (Fmemory_use_counts): Ditto.
2109 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
2110 (syms_of_data): DEFVAR_INT most-positive-fixnum and
2111 most-negative-fixnum.
2113 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
2114 (FIXNUM_OVERFLOW_P): New macros.
2116 2001-10-06 Miles Bader <miles@gnu.org>
2118 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
2119 scroll_bar_bottom_shadow_pixel fields.
2120 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
2121 for the shadows, and tell the toolkit about them if we succeed.
2122 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
2123 Free scroll-bar shadow colors.
2124 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
2125 Free scroll-bar shadow colors when the background color changes.
2126 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
2127 Initialize scroll-bar shadow-color fields.
2129 2001-10-05 Gerd Moellmann <gerd@gnu.org>
2131 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
2133 2001-10-05 Miles Bader <miles@gnu.org>
2135 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
2136 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
2137 New functions (were in simple.el).
2138 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
2139 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
2140 (syms_of_minibuf): Initialize them.
2142 2001-10-05 Gerd Moellmann <gerd@gnu.org>
2144 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
2145 (tiff_load): Install them as error and warning handler.
2147 2001-10-04 Andrew Innes <andrewi@gnu.org>
2149 * w32fns.c (x_to_w32_color): Fix argument to alloca.
2150 (w32_load_system_font): Don't believe what GetLanguageFontInfo
2151 says; query codepage info directly to determine if font is double byte.
2152 (x_to_w32_charset): Handle private format for unknown charsets.
2153 Handle wildcards in charset spec, by ignoring them.
2154 (w32_codepage_for_font): Fix argument to alloca. Don't remove
2155 "*-" prefix from charset.
2156 (x_to_w32_font): Enlarge remainder array for safety. Specifically
2157 handle the truncated font spec form constructed by font_list_1, so
2158 that we correctly identify the charset fields. Don't remove "*-"
2159 prefix from charset.
2160 (w32_list_synthesized_fonts): Fix argument to alloca.
2162 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
2164 * window.h (MINI_WINDOW_P): Use NILP.
2166 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
2168 * termhooks.h (struct input_event): Use proper type for `kind'.
2170 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2172 This handles unknown keysyms better than before. For example,
2173 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
2174 Emacs formerly completely ignored F5. With the change, it derives
2175 a key symbol from the name of the X keysym, `ccaron' in this case.
2176 Reported by Martin Buchholz.
2178 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
2181 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
2182 that EVENT->code isn't a function key, use the keysym's name.
2184 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2186 FOREACH is a macro that should make it easier to loop over Lisp
2187 lists with checks for cycles and proper lists.
2189 * lisp.h (LIST_END_P, FOREACH): New macros.
2191 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2193 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
2194 called for a lost connection. Prevent dumping core in this case.
2195 Instead print the X error, and exit. On user request.
2197 * xterm.c (error_msg): New variable.
2198 (x_fatal_error_signal): New function.
2199 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
2200 as fatal_error_signal_hook around the call to XtCloseDisplay.
2202 * emacs.c (fatal_error_signal_hook): New variable.
2203 (fatal_error_signal): Call that function.
2205 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2207 With this, Emacs prints how much pure storage it will
2208 approximately need in case pure storage overflows while dumping.
2210 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
2212 (init_alloc_once): Initialize new variables.
2213 (PURE_POINTER_P): Use new variables.
2214 (pure_alloc): If pure storage overflows, allocate from the heap.
2215 (check_pure_size): New function.
2216 (Fgarbage_collect): Don't GC if pure storage has overflowed.
2218 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
2219 (check_pure_size): Add prototype.
2221 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
2223 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2225 This adds a post-gc-hook that's run with GC inhibited.
2226 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
2228 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
2229 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
2230 (Fgarbage_collect): Run post-gc-hook.
2232 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2234 This adds `defvaralias' and `indirect-variable'. Changes not
2235 directly related to this feature are there to gain the same
2236 performance again as before variable aliases.
2238 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
2239 code to get and set symbol values, to take defvaralias into account.
2241 (Note: the new `constant' bit-flag in symbols would make it
2242 possible to define arbitrary read-only variables, e.g. with
2245 Documentation is in lispref/variables.texi. Added to NEWS.
2247 * lisp.h (enum symbol_interned): New enumeration.
2248 (struct Lisp_Symbol): Remove member `obarray', add
2249 `indirect_variable', `constant', and `interned'.
2250 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
2251 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
2252 (indirect_variable): Add prototype.
2254 * print.c (print_preprocess, print_object): Test internedness of
2255 symbols differently.
2257 * lread.c (Fintern, Funintern): Set symbol's interned and constant
2259 (init_obarray): Likewise for t and nil.
2261 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2262 (Fdefvaralias): New function.
2263 (specbind): Simplify the test if symbol is a constant.
2264 (syms_of_eval): Defsubr Fdefvaralias.
2266 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2267 (Qcyclic_variable_indirection): New variable.
2268 (Fkeywordp): Check for internedness differently.
2269 (Fmakunbound): Simplify the test if symbol is a constant.
2270 (indirect_variable, Findirect_variable): New functions.
2271 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
2273 (let_shadows_buffer_binding_p): Check for variable aliases.
2274 (set_internal): Simplify the test if SYMBOL is a constant.
2275 If SYMBOL has a buffer-local value and is an alias, use the aliased
2277 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
2280 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
2281 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
2284 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
2286 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
2287 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
2288 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
2290 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2294 2001-10-03 Miles Bader <miles@gnu.org>
2296 * callproc.c (syms_of_callproc): Explicitly state in the
2297 documentation for `process-environment' that earlier entries take
2298 precedence over later ones.
2300 2001-10-02 Miles Bader <miles@gnu.org>
2302 * textprop.c (Fnext_char_property_change)
2303 (Fprevious_char_property_change): Remove reference to non-existant
2304 argument OBJECT from doc-string.
2306 2001-10-01 Gerd Moellmann <gerd@gnu.org>
2308 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
2309 (try_window_id): Skip back over lines ending in a newline from a
2312 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
2315 2001-10-01 Richard M. Stallman <rms@gnu.org>
2317 * search.c (Freplace_match): Doc fix.
2319 2001-09-28 Andrew Innes <andrewi@gnu.org>
2321 * w32menu.c (set_frame_menubar): Take into account that
2322 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2325 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
2327 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
2329 2001-09-28 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
2331 * s/gnu-linux.h: Fix a typo in comment.
2333 2001-09-28 Andreas Schwab <schwab@suse.de>
2335 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
2336 nocombreloc, in case -z combreloc is the default.
2338 2001-09-28 Gerd Moellmann <gerd@gnu.org>
2340 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
2341 really going on here.
2343 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
2345 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
2347 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2349 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
2350 utf-8, menu-bar, and latin-N.
2351 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
2352 unconditionally now.
2353 (lisp): Add latin-N, since they are preloaded.
2355 2001-09-27 Gerd Moellmann <gerd@gnu.org>
2357 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
2358 to the left. Some cleanup.
2360 * xdisp.c (display_mode_element): One more case where a string's
2361 multibyteness should be used for display.
2363 2001-09-26 Gerd Moellmann <gerd@gnu.org>
2365 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
2368 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
2369 of the only temporarily set echoing flag for deciding when
2372 * keyboard.c (echo_kboard): Make externally visible.
2374 * lisp.h (echo_kboard): Declare extern.
2376 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
2377 fonts_changed_p if we need larger matrices due to vscrolling.
2378 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
2379 this round of redisplay if make_cursor_line_fully_visible fails.
2380 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
2381 (try_cursor_movement, try_scrolling): Use them instead of integers.
2383 * dispextern.h (required_matrix_width, required_matrix_height):
2386 * dispnew.c (required_matrix_width, required_matrix_height):
2388 (allocate_matrices_for_window_redisplay)
2389 (allocate_matrices_for_frame_redisplay: Use them.
2390 Remove parameters CH_DIM.
2392 * xdisp.c (display_mode_lines): Temporarily set selected_frame
2393 and selected_window to the frame of the window whose mode-lines
2394 are displayed, and to the window itself.
2395 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
2398 2001-09-25 Gerd Moellmann <gerd@gnu.org>
2400 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
2401 the image cache under us.
2403 * xdisp.c (display_mode_element): If the mode element is a symbol
2404 with a string value, use that string's multibyteness for displaying.
2406 * keyboard.c (read_char): Don't clear a message for a switch-frame
2407 event. From Stefan Monnier <monnier@cs.yale.edu>.
2409 * xterm.c (fast_find_position) [0]: Add a presumably more correct
2410 version for after 21.1.
2412 * xdisp.c (row_containing_pos): Make externally visible.
2414 * dispextern.h (row_containing_pos): Add prototype.
2416 * process.c (send_process): Disable composition if from_byte < 0.
2417 From Kenichi Handa <handa@etl.go.jp>.
2419 2001-09-24 Gerd Moellmann <gerd@gnu.org>
2421 * xterm.c (refreshicon): Function removed.
2423 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
2425 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
2427 * xterm.c (toplevel): Remove includes in #if 0.
2429 * process.c (sigchld_handler) [LINUX]: Don't return from
2430 the signal handler at the end of the loop.
2432 2001-09-21 Gerd Moellmann <gerd@gnu.org>
2434 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
2435 Terminate only if kill returns -1, and errno is ESRCH.
2437 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
2439 * Makefile.in (shortlisp): Add ../lisp/env.elc.
2441 2001-09-20 Gerd Moellmann <gerd@gnu.org>
2443 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
2444 since this function can be called during GC.
2446 * callproc.c (Fcall_process): Handle errors from pipe(2).
2447 (child_setup): Delete code in #ifdef vipc.
2449 2001-09-19 Gerd Moellmann <gerd@gnu.org>
2451 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
2452 (display_mode_element): Display the string from decode_mode_spec
2453 depending on its multibyteness.
2455 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
2457 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
2459 2001-09-18 Gerd Moellmann <gerd@gnu.org>
2461 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
2462 recursive_edit_unwind.
2463 (recursive_edit_unwind): Set kboard state according to
2466 * buffer.c (modify_overlay): Don't do nothing if START == END;
2467 This can still be a modification, for example when an overlay has
2468 a before-string or after-string.
2469 (Fdelete_overlay): Prevent redisplay optimizations when deleting
2470 an overlay with before-string or after-string.
2472 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
2473 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
2475 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
2476 first_unchanged_at_end_row is in front of
2477 last_unchanged_at_beg_row. This code should be removed after the
2480 2001-09-17 Gerd Moellmann <gerd@gnu.org>
2482 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
2483 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
2485 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
2488 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
2490 * dired.c (Ffile_attributes): Doc fix.
2492 2001-09-14 Gerd Moellmann <gerd@gnu.org>
2494 * fileio.c (Ffile_symlink_p): Fix last change.
2496 * filelock.c (current_lock_owner): Fix last change.
2498 2001-09-13 Gerd Moellmann <gerd@gnu.org>
2500 * filelock.c (current_lock_owner): If readlink returns ERANGE,
2501 take that to mean that the buffer is too small.
2503 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
2504 that to mean that the buffer is too small.
2506 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
2507 current buffer's multibyteness when discarding the iterator's
2510 * xfns.c (Fx_window_property): Handle case that property gets
2511 deleted between the two calls to XGetWindowProperty.
2513 2001-09-11 Gerd Moellmann <gerd@gnu.org>
2515 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
2517 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
2518 in addition to read-only.
2520 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
2521 to t in addition to read-only.
2523 * lisp.h (Qinhibit_modification_hooks): Declare.
2525 * insdel.c (Qinhibit_modification_hooks): New variable.
2526 (syms_of_insdel): Initialize and staticpro it.
2528 * textprop.c (verify_interval_modification): Don't run
2529 modification-hooks if inhibit_modification_hooks.
2531 * dispnew.c (set_window_cursor_after_update): Fix code
2532 finding glyph row containing cursor when cursor_in_echo_area
2535 * xdisp.c (init_from_display_pos): Put some code in #if 0.
2536 (add_to_log): Use bcopy instead of strcpy.
2537 (init_from_display_pos): Use an explicit loop over bytes in
2538 overlay strings instead of calling index.
2540 2001-09-10 Gerd Moellmann <gerd@gnu.org>
2542 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
2544 * dispnew.c (direct_output_for_insert): Don't change IT's
2545 stop_charpos to something in front of its current position.
2547 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
2550 2001-09-10 Richard M. Stallman <rms@gnu.org>
2552 * frame.c (Fmouse_position): Doc fix.
2554 2001-09-07 Gerd Moellmann <gerd@gnu.org>
2556 * xdisp.c (init_from_display_pos): Don't compare the result
2557 of calling index with NULL.
2559 2001-09-06 Gerd Moellmann <gerd@gnu.org>
2561 * xfns.c (x_set_background_color): Don't change the colors
2562 of the X window of scroll bar widgets.
2564 2001-09-05 Andrew Innes <andrewi@gnu.org>
2566 * w32fns.c (w32_createwindow): Undo last change.
2568 2001-09-05 Gerd Moellmann <gerd@gnu.org>
2570 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
2572 * xdisp.c (string_buffer_position): Use *single_char_property*
2573 functions instead of the *single_property* functions.
2575 2001-09-04 Andrew Innes <andrewi@gnu.org>
2577 * w32term.c (w32_read_socket): Add more information to debugging
2580 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
2581 from Emacs frames, so that calls to GetClipBox in w32term.c
2582 correctly report when part of a frame is visible (including
2583 scrollbars, etc). This prevents repeated redrawing of frames when
2584 only a scrollbar is visible.
2585 (w32_wnd_proc): Add more frame information to debugging output.
2587 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
2589 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
2591 2001-09-03 Gerd Moellmann <gerd@gnu.org>
2593 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
2594 help-echo for a string which doesn't have help-echo itself, use
2595 get-char-property to obtain the help-echo from the string's buffer
2596 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
2597 have mouse-face, look ``under'' the string for mouse-face from an
2599 (fast_find_position): Add parameter STOP. In the final row, stop
2600 before glyphs having STOP as object. Don't consider glyphs that
2601 are not from a buffer.
2603 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
2605 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
2607 * fns.c (Fmd5): Doc fix.
2609 2001-08-31 Gerd Moellmann <gerd@gnu.org>
2611 * composite.c (update_compositions): Do nothing if
2612 inhibit-modification-hooks is set.
2614 2001-08-30 Gerd Moellmann <gerd@gnu.org>
2616 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
2617 and check_message_stack if terminating abnormally. We want
2618 glyph matrices etc. in a core dump.
2620 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
2621 (syms_of_xdisp): Initialize them.
2622 (handle_single_display_prop): Don't change point, bind `object',
2623 `position', and `buffer-position' instead to the object having the
2624 `display' property, position in the object and position in the buffer.
2626 * fileio.c (Finsert_file_contents): Don't change the multibyteness
2627 of the buffer if REPLACE is non-nil.
2629 2001-08-29 Gerd Moellmann <gerd@gnu.org>
2631 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
2633 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
2635 * w32term.c (x_set_glyph_string_background_width)
2636 (show_mouse_face): Track the last changes in xterm.c.
2638 2001-08-28 Gerd Moellmann <gerd@gnu.org>
2640 * xterm.c (x_set_glyph_string_background_width): Set the glyph
2641 string's background width so that multi-line mouse-face is drawn
2642 to the right edge of the window.
2643 (show_mouse_face): Set the row's mouse_face_p flag after drawing
2646 * dispnew.c (direct_output_for_insert): Set updated_area
2647 before inserting/writing glyphs.
2649 * xdisp.c (display_mode_element): Use string_byte_to_char to
2650 determine character positions in strings, use chars_in_text
2651 instead of strwidth.
2652 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
2653 a matrix as parameter; this is easier to use from GDB.
2655 2001-08-28 Miles Bader <miles@gnu.org>
2657 * textprop.c (Fprevious_single_char_property_change)
2658 (Fnext_single_char_property_change): Doc fixes.
2660 2001-08-27 Gerd Moellmann <gerd@gnu.org>
2662 * fileio.c (Finsert_file_contents): Allocate, restore, and
2663 free composition data in the case of REPLACE not being nil.
2665 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
2666 there exist overlay strings with newlines at POS.
2667 (text_outside_line_unchanged_p): Return 0 if changes start at
2668 START and overlays exist at START. Likewise for END.
2669 (try_window_id): Give up if init_to_row_end returns 0.
2671 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
2674 2001-08-24 Gerd Moellmann <gerd@gnu.org>
2676 * keymap.c (access_keymap): Return the cdr of the binding of
2677 a generic character instead of its definition (KEY . BINDING).
2679 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
2680 to 0 also in the REPLACE case.
2682 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
2684 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
2685 open to determine whether file is readable (as for DOS_NT).
2687 2001-08-23 Gerd Moellmann <gerd@gnu.org>
2689 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
2690 coding.type is coding_type_no_conversion or coding_type_raw_text,
2691 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
2692 non-nil instead of just setting enable_multibyte_characters in the
2695 2001-08-22 Gerd Moellmann <gerd@gnu.org>
2697 * dispextern.h (struct face_cache): Add member
2698 menu_face_changed_p.
2700 * xfaces.c (menu_face_changed_default): New variable.
2701 (menu_face_changed_count): Variable removed.
2702 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
2703 the menu_face_changed_default flag, otherwise set the FRAME's
2704 menu_face_changed_p flag if the `menu' face has been changed.
2705 Prevent calling set_font_frame_param if FRAME is t.
2706 (make_face_cache): Initialize cache's menu_face_changed_p
2707 from menu_face_changed_default.
2708 (realize_basic_faces): Look into the frame's face cache to
2709 determine if the menu appearance needs updating.
2711 * keymap.c (access_keymap): Fix last change to not consider
2712 IDX when it has modifiers.
2714 2001-08-21 Gerd Moellmann <gerd@gnu.org>
2716 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
2717 . BINDING) exists, where GENERIC-CHAR is the generic character of
2718 the charset of IDX, return BINDING unless there exists a binding
2721 2001-08-16 Gerd Moellmann <gerd@gnu.org>
2723 * xrdb.c (SYSV): Don't define on Solaris 2.
2724 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
2726 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2727 of the screen line, not text line, containing IT's current position.
2729 2001-08-15 Gerd Moellmann <gerd@gnu.org>
2731 * window.c (window_scroll_pixel_based): Don't recenter if
2732 PT is partially visible in the window.
2734 * xterm.c (expose_window_tree, expose_window, expose_line):
2735 Return 1 when overwriting mouse-face.
2736 (expose_frame): If mouse-face was overwritten, redo it.
2738 * xfaces.c (x_update_menu_appearance): Don't call
2739 set_frame_menubar, let the next redisplay do it.
2741 2001-08-14 Andrew Innes <andrewi@gnu.org>
2743 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
2744 drawing glyph string.
2746 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
2748 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
2751 2001-08-14 Gerd Moellmann <gerd@gnu.org>
2753 * xfaces.c (x_update_menu_appearance): Save and restore value of
2754 interrupt_input_blocked.
2756 2001-08-13 Gerd Moellmann <gerd@gnu.org>
2758 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
2759 a line start, move back to the line start.
2761 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
2762 exactly when a mini-buffer is active.
2764 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
2765 in units of 1/8 character on non window-system frames.
2766 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2768 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
2770 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
2773 2001-08-09 Gerd Moellmann <gerd@gnu.org>
2775 * keyboard.c (Vpre_help_message): New variable.
2776 (syms_of_keyboard): Initialize and staticpro it.
2777 (show_help_echo): Record current message before displaying a
2778 help-echo, and restore that message when clearing the help.
2780 * xfns.c (x_create_im): Remove prototype.
2782 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
2784 * dispnew.c (adjust_glyph_matrix): Undo last change.
2786 2001-08-08 Gerd Moellmann <gerd@gnu.org>
2788 * dispnew.c (adjust_glyph_matrix): In the optimization for
2789 windows whose height has changed, disable partially visible lines.
2791 2001-08-07 Gerd Moellmann <gerd@gnu.org>
2793 * window.c (Frecenter): If ARG < 0, and on a window system
2794 frame, count in some empty lines when we can't move -ARG lines down.
2796 * xdisp.c (start_display): Don't try to determine the continuation
2797 lines width if lines are truncated. It's superfluous and leads to
2798 incorrect results if POS is not visible in the window after
2799 reseating the iterator at the previous line start.
2801 2001-08-06 Gerd Moellmann <gerd@gnu.org>
2803 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2805 2001-08-06 Pavel Jan
\e,Bm
\e(Bk <Pavel@Janik.cz>
2807 * alloc.c (init_stack): Remove declaration.
2809 2001-08-03 Gerd Moellmann <gerd@gnu.org>
2811 * keyboard.c (read_key_sequence): Check that key is an integer
2812 before comparing it with quit_char.
2813 (add_command_key): Use larger_vector.
2814 (read_char_x_menu_prompt): Instead of converting symbol and
2815 integer events into conses (EVENT . nil), use (EVENT . disabled)
2816 which cannot be confused with valid events.
2817 (read_char): When reading from Vunread_command_events, check for
2818 events of the form (EVENT . disabled) instead of
2821 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
2822 a float, determine the max height from the frame's height.
2824 2001-08-02 Gerd Moellmann <gerd@gnu.org>
2826 * xdisp.c (redisplay_internal): Take message_cleared_p into
2827 account only if minibuf_level == 0.
2829 2001-08-01 Gerd Moellmann <gerd@gnu.org>
2831 * xdisp.c (redisplay_internal): Add a check for the last
2834 * xdisp.c (message_cleared_p): New variable.
2835 (clear_message): Set message_cleared_p when clearing the current
2837 (redisplay_internal): Look at message_cleared_p to capture
2838 the case that the echo area should be cleared.
2840 * keyboard.c (command_loop_1): Fix spelling of
2841 resize_echo_area_exactly.
2843 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
2845 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
2847 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
2848 current matrix when the window gets smaller.
2850 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
2852 * print.c (strout): Cast the character passed to insert_char to
2853 unsigned char, to avoid sign extension when it is promoted to int.
2855 2001-07-31 Gerd Moellmann <gerd@gnu.org>
2857 * fileio.c (Finsert_file_contents): Don't treat a return value
2858 of 0 from emacs_read as an IO error.
2860 2001-07-30 Gerd Moellmann <gerd@gnu.org>
2862 * keyboard.c (abs): New macro.
2863 (double_click_fuzz): New variable.
2864 (make_lispy_event): Use it to determine what makes a double-click.
2865 (syms_of_keyboard): DEFVAR_INT it.
2867 * xmenu.c (set_frame_menubar): Take into account that
2868 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2871 2001-07-27 Gerd Moellmann <gerd@gnu.org>
2873 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
2875 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
2876 of row's visible height.
2878 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
2879 deal with the first overlay string having an image `display' property.
2880 (try_window_reusing_current_matrix, compute_line_metrics):
2881 Fix computation of row's visible height for the case that part of the
2882 row is invisible above and part of the row is at the same time
2883 invisible below the window.
2885 2001-07-26 Gerd Moellmann <gerd@gnu.org>
2887 * xfns.c (x-show-tip): Doc fix.
2889 * xfns.c (Vx_max_tooltip_size): New variable.
2890 (syms_of_xfns): DEFVAR_LISP it.
2891 (Fx_show_tip): Set frame's window_width to the width of the
2892 window. Use a maximum tooltip size specified by
2893 Vx_max_tooltip_size, if that has valid contents.
2894 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2896 2001-07-26 Andrew Innes <andrewi@gnu.org>
2898 * w32term.c (x_display_list): New variable.
2899 (w32_term_init): Set it.
2901 * w32term.h (x_display_list): New extern.
2903 2001-07-26 Gerd Moellmann <gerd@gnu.org>
2905 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
2906 is non-nil, instead of when redisplaying_p is non-zero.
2908 (mark_window_display_accurate_1): Add an assertion.
2910 2001-07-25 Gerd Moellmann <gerd@gnu.org>
2912 * dispextern.h (struct it): Increase size of ctl_chars to 16.
2914 * xfns.c (Fx_file_dialog): Block/unblock input while processing
2915 events so that we get a chance of processing expose events.
2917 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
2919 2001-07-24 Gerd Moellmann <gerd@gnu.org>
2921 * xfns.c (valid_image_p): Protect better against invalid image
2922 specifications. Previous code could signal an error.
2924 2001-07-23 Gerd Moellmann <gerd@gnu.org>
2926 * indent.c (current_column): Fix column computation in the
2927 presence of display table entries.
2928 (current_column_1, Fmove_to_column, compute_motion): Likewise.
2930 * dispnew.c (adjust_glyph_matrix): In the optimization for
2931 windows whose height has changed, use the new window height
2932 to compute which rows to invalidate.
2934 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
2935 (MAX_10_EXP): New macro.
2938 * coding.c (code_convert_region): Handle the multibyte case if
2939 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
2941 2001-07-20 Gerd Moellmann <gerd@gnu.org>
2943 * dispextern.h (struct face): Change type of `stipple' to
2946 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
2948 2001-07-19 Gerd Moellmann <gerd@gnu.org>
2950 * dispnew.c (update_window): Don't set the cursor at the end
2951 of the update if display update has been paused.
2953 * composite.h (syms_of_composite): Renamed from syms_of_composition.
2955 2001-07-18 Ken Raeburn <raeburn@gnu.org>
2957 * fns.c (Fset_char_table_default): Check that a charset is defined
2958 before checking its dimension.
2960 2001-07-17 Ken Raeburn <raeburn@gnu.org>
2962 * coding.c (setup_coding_system): Don't do any designation based
2963 on reg_bits if charset is not yet defined.
2965 * lisp.h (XVECTOR): Verify correct object type before returning a
2966 pointer, using eassert.
2968 2001-07-17 Gerd Moellmann <gerd@gnu.org>
2970 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
2971 Increase to 4096 because of paste problems reported on GNU/Linux.
2973 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
2975 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
2977 2001-07-16 Gerd Moellmann <gerd@gnu.org>
2979 * fileio.c (unwind_read): Function removed.
2980 (read_non_regular, read_non_regular_quit): New functions.
2981 (Finsert_file_contents): When reading from non-regular files,
2982 arrange to catch a `quit' and terminate the loop. Rearrange
2983 code so that a `quit' when reading from a regular file doesn't
2984 insert text in the buffer.
2986 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
2987 Clear faces afterwards.
2988 (clear_font_table): Take a x_display_info parameter. Don't free
2989 fonts being the default font of any frame on the given display.
2991 2001-07-13 Gerd Moellmann <gerd@gnu.org>
2993 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
2994 instead of CHAR_STRING which can signal an error.
2996 * charset.c (char_to_string_1): Extracted from char_to_string.
2997 Return -1 instead of signaling an error.
2998 (char_to_string): Use it.
3000 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
3002 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
3004 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
3005 is t, don't try to append anything to it.
3007 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
3009 * dired.c (file_name_completion): Pass dp->d_name to
3010 Fstring_match, not elt, which is always nil here.
3012 2001-07-12 Gerd Moellmann <gerd@gnu.org>
3014 * xselect.c (x_decline_selection_request): Handle errors
3015 caused by receivers that have vanished.
3017 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
3018 ignoring events on foreign windows in #if 0. Always dispatch
3019 the event after checking it with x_handle_property_notify.
3021 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
3022 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
3023 TRACE macros to facilitate debugging. Add additional trace statements.
3024 (toplevel): Add prototypes for file-local functions.
3025 (x_atom_to_symbol): Remove DPYINFO parameter.
3027 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
3029 * w32menu.c (menubar_selection_callback, w32_menu_show):
3030 Initialize `entry' to nil.
3031 (w32_dialog_show): Remove unused `save_wv' variable.
3032 (name_is_separator): Recognize "--:foo" and "--foo-bar".
3034 2001-07-11 Gerd Moellmann <gerd@gnu.org>
3036 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
3038 * fileio.c (unwind_read): Print a message when discarding inserted
3039 text or switching the buffer to unibyte. Change parameter.
3040 (Finsert_file_contents): Don't pass VISIT to unwind_read.
3042 * fileio.c (unwind_read): New function.
3043 (Finsert_file_contents): Record it as unwind-function for
3044 the case that reading is interrupted by C-g.
3046 2001-07-10 Gerd Moellmann <gerd@gnu.org>
3048 * dispnew.c (update_window): Don't skip the header-line
3049 update when scrolling_window returns 0.
3051 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
3053 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
3054 for the case that x_decode_color signals an error.
3056 * xdisp.c (add_to_log): Do nothing if called asynchronously.
3058 2001-07-09 Gerd Moellmann <gerd@gnu.org>
3060 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
3061 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
3064 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
3066 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
3067 doc string line for dos-timezone-offset.
3069 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
3070 inline assembly, to avoid compiler warnings.
3071 (syms_of_msdos): Add \n\ at the end of a line in the doc string
3072 line for dos-unsupported-char-glyph.
3074 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
3076 2001-07-05 Gerd Moellmann <gerd@gnu.org>
3078 * sound.c: Include Emacs' header files with #include "...".
3080 * eval.c (specbind): Additionally record the buffer that was
3081 current when a buffer-local or frame-local variable was bound.
3083 2001-07-04 Gerd Moellmann <gerd@gnu.org>
3085 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
3086 to unibyte characters in unibyte buffers.
3088 2001-07-03 Gerd Moellmann <gerd@gnu.org>
3090 * eval.c (specbind): If SYMBOL has a frame-local binding, record
3091 the frame on the binding stack. Change format of entries for
3092 local bindings on the binding stack to '(SYMBOL . WHERE)'.
3093 (unbind_to): Handle unbinding a frame-local variable.
3095 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
3096 glyphs and truncation glyphs at the end of a row from its pixel width.
3097 (dump_glyph_row): Print row's continuation_lines_width.
3098 (try_window_id): Take the shortcut if ZV is visible in the
3099 window, but there are actually no changes at ZV.
3101 2001-07-02 Gerd Moellmann <gerd@gnu.org>
3103 * xterm.h (x_free_dpy_colors): Add prototype.
3105 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
3106 right number of arguments.
3108 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
3109 ($(lwlibdir)TAGS): New target.
3110 (TAGS): Fix dependency list.
3112 * xterm.c (x_list_fonts): Make sure XFreeFont is called
3115 2001-06-30 Gerd Moellmann <gerd@gnu.org>
3117 * emacs.c (main): Remove extern declaration for sys_nerr, which
3118 isn't used and causes a compilation error with GCC 3.0 on
3121 2001-06-27 Gerd Moellmann <gerd@gnu.org>
3123 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3124 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
3125 (toplevel): Include <signal.h> and syssignal.h.
3127 * sound.c (vox_configure, vox_close): Turn off atimers
3130 2001-06-26 Gerd Moellmann <gerd@gnu.org>
3132 * keyboard.c (read_char) <non_reread>: Record the previous idle
3133 start time before calling timer_stop_idle.
3134 (read_char) <reread_first>: After processing a help-echo event,
3135 restore the previous idle start time.
3137 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
3138 the start of invisible text.
3139 (setup_for_ellipsis): New function.
3140 (next_overlay_string): After all overlay strings have been
3141 processed, display an ellipsis if necessary.
3142 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
3143 (push_it): Initialize display_ellipsis_p on the iterator's stack.
3145 * dispextern.h (struct iterator_stack_entry): Add member
3148 2001-06-25 Gerd Moellmann <gerd@gnu.org>
3150 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
3151 on the value of the wait-for-wm frame parameter.
3153 * xterm.h (struct x_output): Add member wait_for_wm.
3155 * xfns.c (Qwait_for_wm): New variable.
3156 (x_frame_parms): Add entry for `wait-for-wm".
3157 (x_set_wait_for_wm): New function.
3158 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
3159 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
3161 * xdisp.c (try_window_id) <all changes below window end>: Don't
3162 take this shortcut if ZV is visible in the window.
3163 (try_window_id): When checking for window start being in changed
3164 text, don't check that the buffer's size has changed.
3166 2001-06-23 Richard M. Stallman <rms@gnu.org>
3168 * minibuf.c (Fcompleting_read): Doc fix.
3170 2001-06-19 Gerd Moellmann <gerd@gnu.org>
3172 * composite.c (Ffind_composition_internal): Accept ZV
3173 and a string's end position as POS.
3175 2001-06-18 Gerd Moellmann <gerd@gnu.org>
3177 * composite.c (Ffind_composition_internal): Check POS
3180 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
3182 * editfns.c (Fmessage_box): If the frame is not under a window
3183 system, output the message in the echo area.
3185 2001-06-14 Richard M. Stallman <rms@gnu.org>
3187 * xdisp.c (try_window_id): When EOB is visible, don't treat
3188 insertion at EOB as if it were "off the bottom of the screen."
3190 2001-06-11 Andrew Innes <andrewi@gnu.org>
3192 * w32proc.c (create_child): Add new parameter is_gui_app.
3193 (w32_executable_type): Add new parameter is_gui_app.
3194 (sys_spawnve): Use it.
3195 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
3196 SIGQUIT. This matches better how the signals are interpreted by
3197 MSVC compiled programs.
3198 (syms_of_ntproc): Update docstring.
3200 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
3202 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
3203 well otherwise note_mouse_highlight might optimize away highlighting
3204 if we pass over that same overlay again.
3206 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
3208 * lread.c (Fload): Document that the argument is run via
3209 substitute-in-file-name.
3211 2001-05-31 Gerd Moellmann <gerd@gnu.org>
3213 * Makefile.in (bootstrap-doc): New target.
3214 (bootstrap-emacs): Depend on it.
3216 * fileio.c (Fdo_auto_save): Don't try to create the directory of
3217 auto-save-list-file-name when shutting down Emacs, because
3218 creating the directory might signal an error, and leaves
3219 Emacs in a strange state.
3221 * term.c: (tty_cursor_hidden): New variable.
3222 (update_begin): Don't call tty_hide_cursor. Clean up.
3223 (update_end, set_terminal_window, set_scroll_region): Clean up.
3224 (ring_bell, reset_terminal_modes): Clean up.
3225 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
3226 on tty_cursor_hidden.
3227 (write_glyphs): Call tty_hide_cursor.
3229 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
3231 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
3233 2001-05-30 Gerd Moellmann <gerd@gnu.org>
3235 * xfns.c (enum image_value_type): New enumerator
3236 IMAGE_STRING_OR_NIL_VALUE.
3237 (parse_image_spec): Handle it.
3238 (xbm_format, pbm_format): Use it for :foreground and :background.
3239 (xbm_load, pbm_load): Check for nil color names.
3241 * xterm.c (note_mouse_highlight): If an overlapping overlay
3242 exists, but we find that we highlight the same overlay as before,
3243 don't do the highlighting again.
3245 2001-05-29 Gerd Moellmann <gerd@gnu.org>
3247 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
3248 Protect unibyte strings created by replacing their multibyte
3249 equivalents in menu_items.
3251 * keymap.c (Fsingle_key_description): NUL-terminate the string
3252 buffer before calling build_string.
3254 * callproc.c (Fcall_process): Deal with decode_coding returning
3255 CODING_FINISH_INCONSISTENT_EOL.
3257 2001-05-28 Gerd Moellmann <gerd@gnu.org>
3259 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3260 an item's name with its key description in case the description
3261 is a multibyte string.
3263 * keymap.c (Fsingle_key_description): Create a multibyte string
3266 * macros.c (Fstart_kbd_macro): Doc fix.
3268 * xterm.c (cursor_in_mouse_face_p): New function.
3269 (x_draw_stretch_glyph_string): Use it to choose a different GC
3270 when drawing a cursor within highlighted text.
3272 * editfns.c (char_property_eq): Put in #if 0.
3274 * indent.c (string_display_width): Put in #if 0.
3276 * lread.c (Fload): Remove unused label.
3278 * termcap.c (speeds): Put in #if 0.
3280 2001-05-18 Gerd Moellmann <gerd@gnu.org>
3282 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
3284 * xfaces.c (xlfd_point_size): Don't divide pixel size from
3285 transformation matrix by 10.
3287 2001-05-16 Gerd Moellmann <gerd@gnu.org>
3289 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
3290 only if it's equal to the former foreground pixel color.
3291 (x_set_foreground_color, x_set_background_color)
3292 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
3294 2001-05-16 Dave Love <fx@gnu.org>
3296 * insdel.c (signal_before_change, signal_after_change): Consider a
3297 local change hook which changes the buffer.
3299 * process.c (read_process_output): Don't call signal_after_change
3300 and update_compositions after insert_from_string_before_markers.
3302 2001-05-16 Gerd Moellmann <gerd@gnu.org>
3304 * xfaces.c (split_font_name): Use the right field when
3305 checking for `[...]' syntax.
3307 * buffer.c (copy_overlays): New function.
3308 (clone_per_buffer_values): Use it.
3310 * buffer.h (OVERLAY_PLIST): New macro.
3312 * keymap.c (Fsingle_key_description): Replace a build_string with
3313 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
3315 * fontset.c (Ffontset_info): Check that face is non-null
3316 before accessing its fields.
3318 2001-05-15 Gerd Moellmann <gerd@gnu.org>
3320 * keyboard.c (read_key_sequence): Prevent generating a fake
3323 * xfaces.c (split_font_name): Handle `[...]' for the right
3326 * ccl.c (ccl_driver): Don't copy remaining bytes in case
3327 of CCL_STAT_INVALID_CMD.
3329 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
3331 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
3332 in <var> has no default value yet.
3334 * xfaces.c (try_alternative_families): First try the FAMILY.
3335 And if nothing is found in the end, try again with scalable fonts.
3336 (try_font_list): Let try_alternative_families do a bit more of
3337 the work. Only use FAMILY if it is not nil.
3338 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
3340 2001-05-14 Gerd Moellmann <gerd@gnu.org>
3342 * xterm.c (note_mouse_highlight): Avoid changing the mouse
3343 pointer shape when show_mouse_face has already done it.
3345 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
3348 * xfaces.c (split_font_name): Make sure to leave the loop
3349 with the right value of `i'.
3351 * xfaces.c (split_font_name): Handle matrix transformations
3352 in the pixel and point size fields of XLFD font names.
3353 (xlfd_point_size): Likewise.
3355 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
3357 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
3358 (x_to_w32_font): Add prototype.
3360 * regex.c (malloc, realloc, free) [emacs]: Undefine before
3361 redefining, to avoid compiler warnings.
3363 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
3365 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
3366 (w32_get_bdf_glyph): Cast between unsigned char and char when
3367 passing arguments to subroutines, to shut up compiler warnings.
3368 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
3371 * xfaces.c: Include keyboard.h before frame.h, not after it.
3373 * widget.c: Include keyboard.h before frame.h.
3375 * w32term.h (struct image, struct face): Forward declaration, to
3376 avoid compiler warnings.
3378 2001-05-11 Gerd Moellmann <gerd@gnu.org>
3380 * keyboard.c (read_key_sequence): Don't modify events when
3381 generating fake prefix keys (mode-line, scroll-bar, ...) since
3382 this prevents proper processing of such events when pushed back
3383 into unread-command-events.
3385 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
3386 actually redrawn. Make the function static.
3387 (note_mouse_highlight): Fix a case where the mouse cursor
3388 was changed back to the text cursor.
3390 * xterm.h (clear_mouse_face): Remove prototype.
3392 * xdisp.c (try_window_id): Fix the fix and set the right
3395 * xdisp.c (try_window_id): Fix computation of window end in the
3396 case that lines were deleted at the end of the window. Add some
3397 more debug_method_adds.
3399 * xfaces.c (try_alternative_families): New function.
3400 (try_font_list): Use it. If ATTRS specifies a family, check
3401 fonts from that family first.
3402 (choose_face_font): Remove code setting the family part of
3405 2001-05-10 Gerd Moellmann <gerd@gnu.org>
3407 * xdisp.c (try_window_id): Fix case of all changes before
3410 * xdisp.c (try_window_id): Add some xasserts.
3412 2001-05-09 Gerd Moellmann <gerd@gnu.org>
3414 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
3416 2001-05-09 Dave Love <fx@gnu.org>
3418 * xdisp.c (GIVE_UP): Fix for K&R C.
3420 2001-05-09 Gerd Moellmann <gerd@gnu.org>
3422 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
3424 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
3425 back to the text cursor shape without need.
3427 2001-05-07 Gerd Moellmann <gerd@gnu.org>
3429 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
3431 * dispextern.h (inverse_video): Declare extern.
3433 * keyboard.c (delete_kboard): Handle the case that selected_frame
3434 has been deleted in the course of x_connection_closed.
3436 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
3438 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
3439 Fix the change from 2001-04-30.
3441 2001-05-03 Gerd Moellmann <gerd@gnu.org>
3443 * xfns.c (file_dialog_unmap_cb): New function.
3444 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
3445 where a dialog is closed via the window manager.
3447 * xdisp.c (try_window_id): Cases of changes all in front of
3448 the window start or all below the window end mostly rewritten.
3449 (redisplay_window): Move the tests if try_window_id is
3450 applicable to try_window_id.
3451 (GIVE_UP): New macro.
3453 2001-05-02 Gerd Moellmann <gerd@gnu.org>
3455 * xterm.c (expose_window): Return int. If W is the window
3456 currently being updated, mark the frame garbaged.
3457 Fix computation of rows intersecting the exposed rectangle.
3458 (expose_window_tree): Stop when expose_window returns 0.
3460 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
3461 again if it has already been drawn.
3463 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
3465 * syntax.c (update_syntax_table): Check that oldi has the same
3466 properties as old_prop before deciding not to invalidate.
3468 2001-04-30 Gerd Moellmann <gerd@gnu.org>
3470 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
3471 read-only text that is so because of text properties.
3473 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
3474 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
3475 windows that are components of a Lucid menu bar.
3477 2001-04-27 Gerd Moellmann <gerd@gnu.org>
3479 * term.c (turn_on_face): Fix reverse video handling on terminals
3480 that don't support colors.
3482 2001-04-26 Gerd Moellmann <gerd@gnu.org>
3484 * editfns.c (save_excursion_restore): Don't use XBUFFER on
3487 2001-04-25 Gerd Moellmann <gerd@gnu.org>
3489 * term.c (toggle_highlight): New function.
3490 (turn_on_face): Change handling of reverse video.
3492 * process.c (wait_reading_process_input):
3493 Call record_asynch_buffer_change only if a timer really changed buffers.
3495 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
3496 of the number of overlays to check.
3498 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
3500 * xdisp.c (try_window_id): Fix a case where window_end_pos
3501 and window_end_bytepos were not adjusted.
3503 2001-04-23 Gerd Moellmann <gerd@gnu.org>
3505 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
3508 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
3510 * process.c (wait_reading_process_input) [!subprocesses]:
3511 Don't reference waiting_for_user_input_p, it's not defined in the
3512 branch without async subprocesses support.
3514 2001-04-19 Gerd Moellmann <gerd@gnu.org>
3516 * keyboard.c (delete_kboard): Prevent a dangling reference
3517 from current_kboard to KB, which is freed.
3519 * process.c (wait_reading_process_input):
3520 Call record_asynch_buffer_change after running timers, to make
3521 read_key_sequence aware of buffer changes from under it.
3523 2001-04-18 Gerd Moellmann <gerd@gnu.org>
3525 * xfaces.c (Qscalable_fonts_allowed): New variable.
3526 (realizing_basic_faces_p): Removed.
3527 (x_face_list_fonts): Special handling for realizing_basic_faces_p
3529 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
3530 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
3531 for scalable-fonts-allowed to t.
3533 * fileio.c (Finsert_file_contents): If the file size returned from
3534 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
3535 read from files on a procfs whose contents are generated dynamically.
3537 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
3539 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
3540 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
3541 (__memalign_hook): Make the two prototypes consistent.
3543 2001-04-17 Gerd Moellmann <gerd@gnu.org>
3545 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
3546 matrix of mini-windows.
3548 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
3550 * intervals.c (find_interval): Don't rebalance during signal handling.
3552 2001-04-11 Gerd Moellmann <gerd@gnu.org>
3554 * fns.c: Include blockinput.h.
3556 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
3558 2001-04-10 Gerd Moellmann <gerd@gnu.org>
3560 * fns.c (Fcompare_strings): Fix return values.
3562 * window.c (window_scroll): Change the meaning of N to mean
3563 N screen-fulls or N lines.
3564 (window_scroll_pixel_based, window_scroll_line_based)
3565 (scroll_command, Fscroll_other_window): Change accordingly.
3567 * window.c (window_scroll_pixel_based, Frecenter):
3568 Call window_box_height instead of using it.last_visible_y for the
3569 height of the window.
3571 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
3572 instead of using it.last_visible_y for the height of the window.
3574 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
3575 From Dan Holmsand <dan@eyebee.com>.
3577 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
3578 able to write to hidden and system files. From Dan Holmsand
3581 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
3582 Holmsand <dan@eyebee.com>.
3584 2001-04-09 Gerd Moellmann <gerd@gnu.org>
3586 * fns.c (Fplist_get, Fplist_put): Add QUITs.
3588 * window.c (window_internal_height): Return 1 less if the
3589 window has a header line.
3591 * xdisp.c (try_window_id): When scrolling on a terminal, take
3592 the change of window_internal_height into account.
3594 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
3596 * gmalloc.c (align): If the argument SIZE would overflow
3597 __malloc_ptrdiff_t, fail right away.
3599 2001-04-06 Gerd Moellmann <gerd@gnu.org>
3601 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3602 Make sure the tooltip is completely visible.
3603 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
3605 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
3607 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
3609 2001-04-06 Dave Love <fx@gnu.org>
3611 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
3614 2001-04-06 Gerd Moellmann <gerd@gnu.org>
3616 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
3618 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
3620 2001-04-05 Gerd Moellmann <gerd@gnu.org>
3622 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
3624 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
3626 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
3627 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
3629 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
3630 shell widget's position only if it is non-null.
3632 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
3633 Set f->output_data.x->widget to null after destroying it.
3635 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
3636 FILENAME to bring it in synch with the documentation.
3638 * xfaces.c (realizing_basic_faces_p): Renamed from
3639 realize_default_face_p.
3640 (realize_basic_faces): Set/clear realizing_basic_faces_p.
3641 (realize_default_face): Don't set the flag.
3643 2001-04-04 Gerd Moellmann <gerd@gnu.org>
3645 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
3647 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
3649 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
3650 the buffer that was used for echoing.
3652 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
3653 (first_font_matching): Removed unused function.
3654 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
3655 (may_use_scalable_font_p): Remove parameter FONT; rename
3656 parameter NAME to FONT.
3657 (x_face_list_fonts): Fix missing bounds check.
3658 (realizing_default_face_p): New variable.
3659 (realize_default_face): Set and clear that flag.
3660 (x_face_list_fonts): When called during the realization of the
3661 default face, and no matching fonts are found when ignoring
3662 scalable fonts and fonts matching a regexp from
3663 face-ignored-fonts, try without ignoring fonts.
3665 2001-04-03 Gerd Moellmann <gerd@gnu.org>
3667 * xfns.c (postprocess_image): New function.
3668 (lookup_image): Call it for all image types except PostScript.
3669 (x_kill_gs_process): Call postprocess_image.
3671 * xterm.c (x_use_underline_position_properties): New variable.
3672 (x_draw_glyph_string): Use it.
3673 (syms_of_xterm): DEFVAR_BOOL it.
3675 2001-04-02 Gerd Moellmann <gerd@gnu.org>
3677 * xterm.c (x_alloc_nearest_color_1): New function.
3678 (x_alloc_nearest_color): Use it.
3679 (x_color_cells): Take a Display as argument, instead of a frame.
3680 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
3681 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
3682 (x_initialize): Register cvt_string_to_pixel as resource converter
3683 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
3685 2001-03-30 Gerd Moellmann <gerd@gnu.org>
3687 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
3688 (set_iterator_to_next): If a string from a display property ends,
3689 consider the case that this might also be the end of an
3690 overlay string having the display property.
3692 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
3694 * xdisp.c (reseat_to_string): Undo last change.
3696 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
3697 matrix of a window when the header line changes, when
3698 new rows are allocated, or when the width changes.
3700 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
3702 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
3704 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
3706 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
3709 2001-03-29 Gerd Moellmann <gerd@gnu.org>
3711 * data.c (Fsubr_interactive_form): New function.
3712 (syms_of_data): Defsubr it.
3714 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
3715 (live_float_p, live_misc_p): Return 1 only if the offset of the
3716 pointer in its block is >= 0.
3718 2001-03-28 Paul Eggert <eggert@twinsun.com>
3720 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
3721 microseconds calcuation. Avoid double-rounding problem.
3722 In doc string, warn that the result is approximate.
3724 2001-03-28 Gerd Moellmann <gerd@gnu.org>
3726 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
3727 bind `inhibit-eval-during-redisplay' to t.
3729 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
3731 * xdisp.c (inhibit_eval_during_redisplay)
3732 (Qinhibit_eval_during_redisplay): New variables.
3733 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
3734 don't eval, return nil instead.
3735 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
3736 Initialize Qinhibit_eval_during_redisplay.
3738 * xdisp.c (reseat_to_string): If STRING is multibyte, set
3739 the iterator's multibyte_p flag.
3741 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
3742 instead of setting it to zero; it's incremented for each frame
3743 where the menu face is changed.
3745 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
3746 change bottom shadow accordingly.
3748 * xterm.c (expose_window_tree, expose_frame): Don't compute
3750 (expose_window): Do it here instead.
3751 (x_draw_glyph_string): Fix a computation of the underline position.
3753 * bytecode.c (BYTE_CODE_QUIT): New macro.
3754 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
3756 2001-03-27 Gerd Moellmann <gerd@gnu.org>
3758 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
3759 Give up if matrix starts in an ellipsis.
3760 (init_from_display_pos): Do nothing if POS doesn't specify
3761 a dpvec_index but the iterator has such a position.
3763 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
3765 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
3766 x/y position is (0, 0) after destroying the menu bar, restore
3767 its original position.
3769 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
3770 (init_from_display_pos): Use it.
3771 (try_window_reusing_current_matrix): Don't use cursor_row_p.
3773 2001-03-26 Gerd Moellmann <gerd@gnu.org>
3775 * xdisp.c (try_window_id): Undo last change.
3777 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
3779 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
3781 * buffer.c (syms_of_buffer): Doc fix.
3783 2001-03-26 Gerd Moellmann <gerd@gnu.org>
3785 * xfaces.c (x_update_menu_appearance): Use local variable
3786 popup_path for setting font resources.
3788 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
3790 * frame.c (Fframe_list): Don't reference tip_frame if
3791 HAVE_WINDOW_SYSTEM is not defined.
3793 * emacs.c (main): Update the copyright year. From Werner LEMBERG
3796 2001-03-25 Gerd Moellmann <gerd@gnu.org>
3798 * xdisp.c (init_from_display_pos): Test invisible property
3799 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
3801 * xdisp.c (redisplay_internal) <update one window>: Make sure
3802 last_arrow_position and last_arrow_string are set.
3804 * frame.c (Fframe_list): Don't return a tooltip frame.
3806 2001-03-23 Gerd Moellmann <gerd@gnu.org>
3808 * xdisp.c (mark_window_display_accurate_1): New function,
3809 extracted from mark_window_display_accurate.
3810 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
3811 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
3812 (mark_window_display_accurate): Use it.
3813 (redisplay_internal): Use it for the selected window.
3814 (redisplay_internal): Avoid duplicate mark_window_display_accurate
3815 for the selected frame.
3817 * xdisp.c Use make_number, for readability.
3818 (try_window_id): Disable rows below the window end.
3819 (try_window_reusing_current_matrix): Use cursor_row_p.
3820 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
3822 (init_from_display_pos): If POS specifies a position in a display
3823 vector, maybe get the iterator set up for that ellipsis.
3825 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
3827 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
3829 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
3831 2001-03-23 Gerd Moellmann <gerd@gnu.org>
3833 * xfaces.c (x_update_menu_appearance): Use a different path
3834 for Lucid popup menus.
3836 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
3838 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
3840 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
3841 (string_buffer_position): Use `make_number'.
3843 2001-03-22 Gerd Moellmann <gerd@gnu.org>
3845 * xfaces.c (x_update_menu_appearance): Renamed from
3846 x_set_menu_face_resources. Use different resources for popups.
3848 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
3849 (GC_CHECK_STRING_BYTES): Don't define.
3851 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
3852 Removed, together with subroutines.
3853 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
3854 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
3856 * dispextern.h (x_set_menu_resources_from_menu_face):
3859 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
3860 Remove calls to x_set_menu_resources_from_menu_face.
3862 * xfaces.c (xm_set_menu_resources_from_menu_face):
3863 Remove #ifndef LESSTIF_VERSION.
3865 * xmenu.c: Include widget.h.
3866 (single_submenu): Return int. Some cleanup.
3867 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
3869 2001-03-21 Gerd Moellmann <gerd@gnu.org>
3871 * xterm.c (x_update_window_end): Handle overwritten mouse face
3872 also for tool bar windows.
3873 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3874 DRAW is DRAW_IMAGE_RAISED.
3876 2001-03-20 Gerd Moellmann <gerd@gnu.org>
3878 * print.c (syms_of_print): Doc fixes.
3880 * fns.c (Fmd5): Doc fix.
3882 2001-03-19 Gerd Moellmann <gerd@gnu.org>
3884 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3885 Clear area of the frame not occupied by the scroll bar.
3887 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
3888 tip frame's root window buffer to *tip* right after creating
3891 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
3892 is an integer don't have to be for space characters.
3894 2001-03-16 Gerd Moellmann <gerd@gnu.org>
3896 * indent.c (current_column, current_column_1, Fmove_to_column)
3897 (compute_motion): Handle characters from display vectors differently.
3899 2001-03-15 Kenichi Handa <handa@etl.go.jp>
3901 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
3902 drawing glyph string.
3904 2001-03-15 Gerd Moellmann <gerd@gnu.org>
3906 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
3907 (command_loop_1): Undo last change.
3909 * xterm.c (fast_find_position): Return the correct vpos.
3911 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
3912 non-null, set a per-buffer value in BUF instead of the current buffer.
3913 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
3914 Call store_symval_forwarding with BUF null.
3915 (set_internal): Call store_symval_forwarding with the BUF
3916 parameter passed to set_internal. Formerly, the value was always
3917 set in the current buffer; the buffer recorded in specbind for
3918 this case wasn't used.
3919 (arith_driver): Reindent.
3921 * buffer.c (swap_out_buffer_local_variables):
3922 Call store_symval_forwarding with BUF null.
3924 * lisp.h (store_symval_forwarding): Change prototype.
3926 * eval.c (specbind): Call store_symval_forwarding with BUF null.
3928 2001-03-14 Gerd Moellmann <gerd@gnu.org>
3930 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
3931 FOR_DELETION. Avoid resizing the mini-window of the selected
3932 frame if FOR_DELETION is set.
3933 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
3934 (Fmake_frame_invisible): Change calls to do_switch_frame for new
3937 * window.c (Fset_window_configuration): Change call to
3938 do_switch_frame to new format.
3940 * keyboard.c (quit_throw_to_read_char): Change call to
3941 do_switch_frame to new format.
3943 * lisp.h (do_switch_frame): Change prototype.
3945 * frame.c (Fframe_parameters): In the `buffer-list' frame
3946 parameter, store the buffer list of FRAME, not the list of the
3949 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
3950 box just because the glyph row's full_width_p flag is set.
3952 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
3954 * xdisp.c (highlight_trailing_whitespace): On character terminals,
3955 skip the padding blanks inserted in extend_face_to_end_of_line,
3956 before checking for trailing whitespace.
3958 2001-03-13 Gerd Moellmann <gerd@gnu.org>
3960 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
3961 Remove special handling for LessTif/Motif.
3962 (toplevel): Don't include Xm/Xm.h.
3964 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
3965 Remove workaround code for LessTif; it doesn't work anymore.
3967 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
3970 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
3971 Don't access private scroll bar data; it's no longer necessary with
3972 contemporary LessTif.
3974 * xfaces.c (xm_set_menu_resources_from_menu_face):
3975 Change #if 0 to #ifndef LESSTIF_VERSION.
3977 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
3978 removing button grabs.
3980 2001-03-13 Kenichi Handa <handa@etl.go.jp>
3982 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
3983 and clip-large-size-font as obsolete.
3985 * lread.c (read_multibyte): Check the validity of multibyte
3986 sequence. If invalid, return the first byte.
3988 2001-03-12 Gerd Moellmann <gerd@gnu.org>
3990 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
3991 before running the command; timer functions or process
3992 filters may have set it.
3994 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3996 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3999 2001-03-12 Gerd Moellmann <gerd@gnu.org>
4001 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
4004 2001-03-09 Gerd Moellmann <gerd@gnu.org>
4006 * dispextern.h (string_buffer_position): Add prototype.
4008 * xdisp.c (string_buffer_position, display_prop_string_p)
4009 (single_display_prop_string_p): New functions.
4011 * xterm.c (note_mouse_highlight): If there's no help-echo on
4012 a string, look at the buffer text ``under'' it.
4014 * keyboard.c (make_lispy_event): Add string info to the event,
4015 analogous to what's done on mode lines.
4016 (read_key_sequence): For a click on a string, consider `local-map'
4017 and `keymap' of that string.
4019 * keyboard.c (make_lispy_event, make_lispy_movement):
4020 Adjust calls to buffer_posn_from_coords to new format.
4022 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
4024 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
4027 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
4028 flags argument to emacs_open; it seems to conflict with O_EXCL.
4030 2001-03-09 Kenichi Handa <handa@etl.go.jp>
4032 * composite.h (struct composition): Change types of members;
4033 glyph_len to unsigned, width to unsigned short.
4035 2001-03-08 Andrew Innes <andrewi@gnu.org>
4037 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
4040 2001-03-08 Gerd Moellmann <gerd@gnu.org>
4042 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
4045 * xterm.c (note_mouse_highlight): Handle mouse-face and
4046 help-echo in strings.
4047 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
4048 (fast_find_string_pos): New function.
4050 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
4051 (display_string): Call face_at_string_position with new parameter.
4053 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
4054 Handle `mouse-face'.
4056 * dispextern.h (face_at_string_position): Change prototype.
4058 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
4060 * keyboard.c (make_lispy_event): Avoid generating drag events
4061 if the mouse hasn't actually moved to another buffer position.
4063 2001-03-08 Dave Love <fx@gnu.org>
4065 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
4067 2001-03-08 Gerd Moellmann <gerd@gnu.org>
4069 * process.c (Fset_process_window_size): Fix a typo.
4071 2001-03-08 Kenichi Handa <handa@etl.go.jp>
4073 * coding.c (detect_coding_sjis): Do more rigid check.
4074 (detect_coding_big5): Likewise.
4075 (decode_coding_sjis_big5): Likewise.
4076 (Fdetect_coding_region): Call detect_coding_system with tailing
4077 anchor byte `\0' for more rigid detection.
4078 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
4079 (Fdetect_coding_string): Likewise.
4081 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
4083 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
4084 a string before extracting its data.
4086 2001-03-07 Gerd Moellmann <gerd@gnu.org>
4088 * window.c (Frecenter): Rewrite code handling negative values
4089 of ARG on graphical frames.
4091 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
4093 * window.c (displayed_window_lines): If W->start is outside the
4094 accessible portion of the buffer, call start_display with BEGV or
4095 ZV instead of W->start.
4097 2001-03-07 Gerd Moellmann <gerd@gnu.org>
4099 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
4101 * process.c (Fset_process_filter): Don't crash if the input
4102 file descriptor of PROCESS is closed.
4103 (Fset_process_window_size): Likewise.
4105 2001-03-06 Kenichi Handa <handa@etl.go.jp>
4107 * xterm.c (XTflash): Make the timeout of select shorter, and call
4108 select repeatedly until the desired time expires.
4110 2001-03-06 Gerd Moellmann <gerd@gnu.org>
4112 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
4114 * xfns.c (Fx_create_frame): Clear Vwindow_list.
4116 * lisp.h (Vwindow_list): Declare extern.
4118 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
4120 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
4122 2001-03-06 Gerd Moellmann <gerd@gnu.org>
4124 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
4125 to detect a case where we have to highlight a different region
4126 despite not having left the currently highlighted region.
4127 Set mouse_face_overlay in the x_display_info.
4128 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
4130 * xterm.h (struct x_display_info): Add mouse_face_overlay.
4132 * buffer.c (mouse_face_overlay_overlaps): New function.
4134 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
4135 (Qmouse_face): Declare extern.
4137 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
4138 if face_change_count is non-zero.
4140 2001-03-06 Kenichi Handa <handa@etl.go.jp>
4142 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
4143 that the source is unibyte.
4145 2001-03-05 Dave Love <fx@gnu.org>
4147 * xterm.c (XTmouse_position): Fix typo.
4149 2001-03-05 Gerd Moellmann <gerd@gnu.org>
4151 * minibuf.c (read_minibuf): Clean up the binding stack if
4152 called noninteractively.
4154 2001-03-05 Kenichi Handa <handa@etl.go.jp>
4156 * coding.c (syms_of_coding): Docstring modified.
4158 2001-03-05 Kenichi Handa <handa@etl.go.jp>
4160 * charset.c (char_to_string): If a single byte char has modifier
4161 bits that can't be reflected to the character code, ignore them
4162 instead of signaling an error.
4164 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
4166 * s/msdos.h: Update copyright notice.
4168 * dosfns.h: Update copyright notice.
4170 * dosfns.c: Update copyright notice.
4172 * msdos.c: Update copyright notice.
4174 2001-03-02 Gerd Moellmann <gerd@gnu.org>
4176 * xterm.c (glyph_rect): New function.
4177 (XTmouse_position): Use it to raise the threshold for mouse
4178 movement event generation.
4180 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4182 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
4183 specifies (reverse . t), reverse the initial screen colors.
4184 (IT_set_frame_parameters): If the property is foreground-color,
4185 but we are reversing the colors, set bg_set, not fg_set.
4186 Likewise for setting background-color and reversing: set fg_set.
4187 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
4190 * xfaces.c (Finternal_set_lisp_face_attribute)
4191 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
4194 2001-03-02 Gerd Moellmann <gerd@gnu.org>
4196 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
4197 to a single slash in the middle of file names.
4199 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
4200 Accept only alphanumeric time zone names.
4202 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
4204 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4205 a widget to zero height.
4207 2001-03-01 Gerd Moellmann <gerd@gnu.org>
4209 * window.c (Fwindow_end): Call move_it_past_eol only if
4210 ending up on a partially visible line.
4212 2001-03-01 Dave Love <fx@gnu.org>
4214 * ccl.c (Fccl_execute): Doc fix.
4216 2001-03-01 Gerd Moellmann <gerd@gnu.org>
4218 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
4219 of the tool bar before calling x_figure_window_size.
4221 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
4222 NULL after destroying it, otherwise XTread_socket can access a
4223 destroyed widget when input is unblocked.
4225 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
4227 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
4228 same name as before, although there was a change in fontsets.
4230 2001-02-28 Ken Raeburn <raeburn@gnu.org>
4232 * lisp.h (Fframe_parameter): Declare.
4234 * window.c (set_window_buffer): Field vscroll is an int, not a
4237 2001-02-28 Gerd Moellmann <gerd@gnu.org>
4239 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
4242 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
4245 * alloc.c (toplevel): Include process.h.
4246 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
4247 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
4248 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
4249 (allocate_vector, allocate_hash_table, allocate_window)
4250 (allocate_frame, allocate_process, allocate_other_vector):
4252 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
4253 (mark_maybe_pointer): New function.
4254 (mark_memory): Also mark Lisp data to which only pointers
4255 remain and not Lisp_Objects.
4256 (min_heap_address, max_heap_address): New variables.
4257 (mem_find): Return MEM_NIL if START is below min_heap_address or
4258 above max_heap_address.
4259 (mem_insert): Compute min_heap_address and max_heap_address.
4261 * process.c (make_process): Use allocate_process.
4263 * frame.c (make_frame): Use allocate_frame.
4265 * window.c (make_window, make_dummy_parent): Use allocate_window.
4266 (Fcurrent_window_configuration): Use allocate_other_vector.
4268 * lisp.h (allocate_vectorlike): Remove prototype.
4269 (allocate_vector, allocate_other_vector, allocate_frame)
4270 (allocate_window, allocate_process, allocate_hash_table):
4273 * fns.c (Fdelete, larger_vector): Use allocate_vector.
4274 (make_hash_table, copy_hash_table): Use allocate_hash_table.
4276 2001-02-27 Kenichi Handa <handa@etl.go.jp>
4278 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
4279 treat the produced bytes as a valid multibyte sequence.
4281 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
4282 (ccl_driver) <CCL_WriteMultibyteChar2>:
4283 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
4284 <ccl_finish>: Set ccl->eight_bit_control properly.
4286 * ccl.h (struct ccl_program): New member eight_bit_control.
4288 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
4290 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
4291 accessible_keymaps_char_table.
4292 (accessible_keymaps_char_table): Obey `is_metized'.
4293 (where_is_internal, Fwhere_is_internal): Don't confuse int and
4296 2001-02-26 Gerd Moellmann <gerd@gnu.org>
4298 * dispnew.c: Check HAVE_TERM_H before including term.h.
4300 2001-02-24 Andrew Innes <andrewi@gnu.org>
4302 * makefile.w32-in: Update copyright notice.
4304 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
4306 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
4308 2001-02-24 Kenichi Handa <handa@etl.go.jp>
4310 * Makefile.in (lisp): Add international/utf-8.elc.
4312 * fontset.c (Fnew_fontset): Fix handling of the case that an
4313 element of FONTLIST is a cons of family and registry.
4315 2001-02-23 Jason Rumney <jasonr@gnu.org>
4317 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
4318 to height unconditionally.
4320 * w32term.c (x_set_glyph_string_background_width): Extend the
4321 background face to the end of the drawing area in the text area, only.
4322 (x_insert_glyphs): Call window_box_left to obtain the left
4323 x-coordinate of the area to shift.
4325 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
4328 2001-02-22 Andrew Innes <andrewi@gnu.org>
4330 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
4331 ($(BLD)\dispnew.obj):
4332 ($(BLD)\editfns.obj):
4333 ($(BLD)\fileio.obj):
4334 ($(BLD)\filelock.obj):
4335 ($(BLD)\keyboard.obj):
4336 ($(BLD)\w32proc.obj):
4337 ($(BLD)\process.obj):
4338 ($(BLD)\sysdep.obj): Ditto.
4340 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
4342 ($(BLD)/dispnew.$(O)):
4343 ($(BLD)/editfns.$(O)):
4344 ($(BLD)/fileio.$(O)):
4345 ($(BLD)/filelock.$(O)):
4346 ($(BLD)/keyboard.$(O)):
4347 ($(BLD)/w32proc.$(O)):
4348 ($(BLD)/process.$(O)):
4349 ($(BLD)/sysdep.$(O)): Ditto.
4351 2001-02-22 Gerd Moellmann <gerd@gnu.org>
4353 * xdisp.c (forward_to_next_line_start): When taking the shortcut
4354 at the start of the function, check that the \n in it->c is
4355 from the iterator's current position.
4357 * xdisp.c (handle_single_display_prop): Add parameter
4358 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
4359 properties which replace the display of text with something else.
4360 (handle_display_prop): Call handle_single_display_prop with
4361 additional argument saying if we already replaced text display
4362 with something else. Use AREF.
4363 (with_echo_area_buffer_unwind_data, display_menu_bar)
4364 (decode_mode_spec_coding): Use AREF and ASIZE.
4366 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
4367 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
4368 * vmstime.h: Files removed.
4370 * unexencap.c, unexfx2800.c: Files removed.
4372 * dispnew.c (direct_output_for_insert): Give up if we are showing
4373 a message or just cleared the message because we might need to
4374 resize the echo area window or display an empty echo area.
4376 2001-02-21 Gerd Moellmann <gerd@gnu.org>
4378 * xdisp.c (redisplay_internal): Do the
4379 mark_window_display_accurate after all windows have been
4380 redisplayed because this call resets flags in buffers which are
4381 needed for proper redisplay.
4383 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
4384 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
4387 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4388 busy_window to hourglass_window, busy_p to hourglass_p.
4390 * msdos.h (struct x_output): Rename busy_window to
4391 hourglass_window, busy_p to hourglass_p.
4393 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4394 busy_window to hourglass_window, busy_p to hourglass_p.
4396 * xfns.c: Rename everything containing *busy_cursor* and similar
4398 (syms_of_w32fns): Rename x-busy-pointer-shape to
4399 x-hourglass-pointer-shape, display-busy-cursor to
4400 display-hourglass, busy-cursor-delay to hourglass-delay.
4402 * w32fns.c: Rename everything containing *busy_cursor* and similar
4404 (syms_of_w32fns): Rename x-busy-pointer-shape to
4405 x-hourglass-pointer-shape, display-busy-cursor to
4406 display-hourglass, busy-cursor-delay to hourglass-delay.
4408 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
4411 * dispextern.h (start_hourglass, cancel_hourglass)
4412 (display_hourglass_p): Renamed from *busy_cursor*.
4414 2001-02-20 Gerd Moellmann <gerd@gnu.org>
4416 * keyboard.c (read_char): When an event from unread-command-events
4417 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
4419 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
4420 equal to the current buffer.
4422 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
4423 nil, otherwise we're left with truncate_lines t when a message
4424 is printed with message-truncate-lines bound to t.
4426 2001-02-19 Gerd Moellmann <gerd@gnu.org>
4428 * window.c (Fmove_to_window_line): Undo last change.
4429 (displayed_window_lines): Call line_bottom_y to determine
4430 the line's bottom position.
4432 * dispextern.h (line_bottom_y): Add prototype.
4434 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
4435 (pos_visible_p): Use it.
4437 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
4438 set redisplaying_p to 0 here instead of in Frecursive_edit.
4439 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
4442 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
4444 (syms_of_xdisp): Initialize new variables.
4445 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
4446 Specbind `inhibit-menubar-update' when updating the menu bar.
4448 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
4451 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
4454 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
4457 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
4458 to the start of the file.
4460 2001-02-16 Gerd Moellmann <gerd@gnu.org>
4462 * window.c (set_window_buffer): Fix last change.
4464 * window.c (set_window_buffer): Set window's vscroll to 0.
4466 * window.c (coordinates_in_window): Increase width of area
4467 where the vertical line can be dragged.
4469 * xterm.c (x_set_glyph_string_background_width): Extend the
4470 background face to the end of the drawing area in the text
4473 * xdisp.c (handle_single_display_prop): Set iterator's position
4474 to where the `display' property starts, like for images.
4475 (dump_glyph): New function.
4476 (dump_glyph_row): Use it. Dump info about marginal areas.
4478 * dispnew.c (direct_output_for_insert): Recognize more cases where
4479 glyphs can be written instead of being inserted.
4481 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
4482 the left x-coordinate of the area to shift.
4484 * dired.c (directory_files_internal): Set result list to nil
4487 2001-02-15 Kenichi Handa <handa@etl.go.jp>
4489 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
4490 invalid multibyte sequence, treat *SRC as a character of
4493 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
4495 * textprop.c (Fset_text_properties): Doc fix.
4497 2001-02-15 Gerd Moellmann <gerd@gnu.org>
4499 * dispnew.c (update_text_area): Undo change of 2001-01-12.
4501 2001-02-14 Dave Love <fx@gnu.org>
4503 * coding.c: Doc and message fixes.
4505 2001-02-14 Andrew Innes <andrewi@gnu.org>
4507 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
4508 Emacs frame above the screen size.
4510 2001-02-14 Gerd Moellmann <gerd@gnu.org>
4512 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
4514 2001-02-13 Gerd Moellmann <gerd@gnu.org>
4516 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
4517 case that TO ends up beyond ZV after running before-change-functions.
4519 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
4520 the selected window if it is showing the buffer in question.
4522 * dired.c (directory_files_internal): Initialize errno.
4523 (toplevel): Include errno.h.
4525 2001-02-13 Kenichi Handa <handa@etl.go.jp>
4527 * xfaces.c (best_matching_font): New parameter width_ratio.
4528 Multiply avgwidth by width_ratio.
4529 (choose_face_font): Call best_matching_font with width_ratio
4530 calculated from the column width of C.
4532 2001-02-12 Andrew Innes <andrewi@gnu.org>
4534 The following changes are to draw box lines inside characters area
4535 if line-width is negative.
4537 * w32term.c (x_produce_image_glyph): Pay attention to the case that
4538 face->box_line_width is negative.
4539 (x_produce_stretch_glyph): Likewise.
4540 (x_produce_glyphs): Likewise.
4541 (x_estimate_mode_line_height): Likewise.
4542 (x_draw_glyph_string_background): Likewise.
4543 (x_draw_glyph_string_foreground): Likewise.
4544 (x_draw_composite_glyph_string_foreground): Likewise.
4545 (x_draw_glyph_string_box): Likewise.
4546 (x_draw_image_foreground): Likewise.
4547 (x_draw_image_relief): Likewise.
4548 (x_draw_image_foreground_1): Likewise.
4549 (x_draw_image_glyph_string): Likewise.
4551 2001-02-09 Kenichi Handa <handa@etl.go.jp>
4553 The following changes are to draw box lines inside characters area
4554 if line-width is negative.
4556 * xterm.c (x_produce_image_glyph): Pay attention to the case that
4557 face->box_line_width is negative.
4558 (x_produce_stretch_glyph): Likewise.
4559 (x_produce_glyphs): Likewise.
4560 (x_estimate_mode_line_height): Likewise.
4561 (x_draw_glyph_string_background): Likewise.
4562 (x_draw_glyph_string_foreground): Likewise.
4563 (x_draw_composite_glyph_string_foreground): Likewise.
4564 (x_draw_glyph_string_box): Likewise.
4565 (x_draw_image_foreground): Likewise.
4566 (x_draw_image_relief): Likewise.
4567 (x_draw_image_foreground_1): Likewise.
4568 (x_draw_image_glyph_string): Likewise.
4570 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
4571 and :line-width can be negative.
4572 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
4574 2001-02-09 Jason Rumney <jasonr@gnu.org>
4576 * w32term.c (w32_encode_char): Treat eight bit graphic and control
4577 characters the same as ASCII and latin-1.
4578 (x_display_and_set_cursor): Check for the focus frame's selected
4579 window instead of selected_window.
4580 (x_after_update_window_line): Don't clear if frame's internal
4581 border width is zero.
4582 (x_new_font): Don't change a tooltip's size.
4583 (w32_initialize): Set char_ins_del_ok to 1.
4585 * w32fns.c (Fx_show_tip): Fix calls to make_number.
4586 (x_set_font): If font hasn't changed, avoid recomputing
4587 faces and other things.
4588 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
4589 (Fx_create_frame): Add the tool bar height to the frame height.
4590 (x_create_tip_frame): Prevent changing the tooltip's
4591 background color by specifying a color for the default font
4593 (Qcancel_timer): New variable.
4594 (syms_of_w32fns): Initialize and staticpro it.
4595 (Fx_hide_tip, Fx_show_tip): Use it.
4596 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
4598 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
4600 * w32.c (init_environment): Duplicate local string before putenv.
4602 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
4604 * charset.c (Fstring): A typo.
4606 2001-02-09 Kenichi Handa <handa@etl.go.jp>
4608 * charset.c (Fstring): If all arguments are less than 256, return
4611 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
4612 return a unibyte string.
4614 * coding.c (code_convert_region): After detecting a coding, if
4615 nothing found, set coding->composing to COMPOSITION_NO.
4616 (decode_coding_string): Likewise.
4618 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
4620 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
4623 2001-02-07 Kenichi Handa <handa@etl.go.jp>
4625 * charset.c (parse_str_to_multibyte): New function.
4627 * charset.h (parse_str_to_multibyte): Extern it.
4629 * print.c (print_string): If we are going to print a unibyte
4630 string into a multibyte buffer, convert the string to multibyte by
4633 2001-02-06 Andrew Innes <andrewi@gnu.org>
4635 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
4636 been created. It seems we can get sent window messages such as
4637 WM_ERASEBKGND before we properly update a frame.
4639 2001-02-06 Gerd Moellmann <gerd@gnu.org>
4641 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
4642 Avoid some unnecessary cursor positioning.
4644 2001-02-05 Gerd Moellmann <gerd@gnu.org>
4646 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
4647 (LFACE_AVGWIDTH): New macro.
4649 (check_lface_attrs): Check LFACE_AVGWIDTH.
4650 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
4651 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
4652 (merge_face_vectors): Check LFACE_AVGWIDTH.
4653 (Finternal_make_lisp_face): Use AREF.
4654 (xm_set_menu_resources_from_menu_face)
4655 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
4656 (Finternal_lisp_face_empty_p): Use AREF.
4657 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
4658 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
4659 Compare average widths..
4660 (best_matching_font): Arrange for comparing average widths.
4662 * dispextern.h (enum lface_attribute_index):
4663 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
4665 2001-02-05 Dave Love <fx@gnu.org>
4667 * puresize.h: Revert last change following loadup.el change.
4669 2001-02-05 Andrew Innes <andrewi@gnu.org>
4671 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
4672 invocation of temacs, to work with Windows 2000.
4673 (bootstrap-emacs): Ditto.
4675 2001-02-05 Gerd Moellmann <gerd@gnu.org>
4677 * xterm.c (x_display_and_set_cursor): Check for the focus
4678 frame's selected window instead of selected_window.
4680 * xdisp.c (try_scrolling): If point is in the line below the
4681 window, make sure to move the iterator at least a canonical
4684 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
4686 2001-02-05 Kenichi Handa <handa@etl.go.jp>
4688 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
4689 If invalid, execute CCL_INVALID_CMD.
4690 (ccl_driver): If the CCL program is terminated because of
4691 CCL_STAT_INVALID_CMD, copy the remaining source data to the
4692 destination instead of throwing them away.
4694 2001-02-02 Gerd Moellmann <gerd@gnu.org>
4696 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
4697 faces and other things.
4699 * xdisp.c (get_next_display_element): Fix case of empty
4700 display table entry.
4702 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
4704 * editfns.c (Fconstrain_to_field): Doc fix.
4706 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
4707 into `thoroughly', to make it consistent with the doc string.
4709 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
4711 2001-02-01 Gerd Moellmann <gerd@gnu.org>
4713 * search.c (search_buffer): Call set_search_regs with a byte
4714 position, not a character position.
4716 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
4719 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
4721 * frame.c (Fmodify_frame_parameters): Doc fix.
4723 2001-01-31 Gerd Moellmann <gerd@gnu.org>
4725 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
4726 identifier which is not reserved by Standard C.
4728 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
4730 * window.c (enum window_part): New enumeration.
4731 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
4733 (coordinates_in_window): Return an enumerator from enum
4734 window_part. Fix handling of right scroll bar.
4735 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
4736 `right-fringe' instead of `left-bitmap-area' and
4737 `right-bitmap-area'. Use enumerators from enum window_part
4738 instead of hard-coded integers.
4739 (check_window_containing, window_from_coordinates):
4740 Use enumerators from enum window_part instead of hard-coded integers.
4741 (syms_of_window): Replace Qleft_bitmap_area and
4742 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
4744 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
4746 * editfns.c (Fformat_time_string): Doc fix.
4748 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
4750 * keymap.c (Fwhere_is_internal): Use the first valid binding
4751 if no ascii binding is found (when firstonly is t).
4753 2001-01-31 Gerd Moellmann <gerd@gnu.org>
4755 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
4756 instead of Finteractive_p.
4758 * lisp.h (interactive_p): Add prototype.
4760 * eval.c (interactive_p): New function.
4761 (Finteractive_p): Use it.
4763 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
4765 2001-01-31 Dave Love <fx@gnu.org>
4767 * .gdbinit (hook-run): Define to run xreload.
4769 * textprop.c (Fset_text_properties): Fix newline in doc string.
4771 2001-01-30 Gerd Moellmann <gerd@gnu.org>
4773 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
4774 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
4776 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
4777 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
4778 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
4780 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
4783 2001-01-30 Dave Love <fx@gnu.org>
4785 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
4788 2001-01-29 Gerd Moellmann <gerd@gnu.org>
4790 * bytecode.c (Fbyte_code) <Bcurrent_column>:
4791 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
4793 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
4795 * textprop.c (Fset_text_properties): Doc fix.
4797 2001-01-29 Gerd Moellmann <gerd@gnu.org>
4799 * xdisp.c (forward_to_next_line_start): Remove xassert.
4801 2001-01-29 Jason Rumney <jasonr@gnu.org>
4803 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
4804 returning without releasing it.
4806 2001-01-29 Kenichi Handa <handa@etl.go.jp>
4808 * w32fns.c (w32_font_match): Allocate three more bytes to regex
4809 for '^', '$', and '\0'.
4811 2001-01-28 Andrew Choi <akochoi@i-cable.com>
4813 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
4814 regex for '^', '$', and '\0'.
4816 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
4817 only if current_sblock has been initialized.
4819 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
4820 terminal frame even if it is the only visible frame.
4822 2001-01-28 Kenichi Handa <handa@etl.go.jp>
4824 * fontset.c (font_family_registry): Even if FONTNAME conform to
4825 XLFD, if it specifies other fields than family and registry,
4826 return FONTANME. New argument FORCE if nonzero cancel that feature.
4827 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
4828 a signle byte character. Don't set FAMILY part to nil here.
4829 It is handled by the caller choose_face_font.
4830 (Fnew_fontset): Call font_family_registry with FORCE 0.
4831 (Fset_fontset_font): Likewise.
4833 2001-01-27 Gerd Moellmann <gerd@gnu.org>
4835 * xdisp.c (display_line): Don't treat a newline as fitting
4838 2001-01-26 Gerd Moellmann <gerd@gnu.org>
4840 * window.c (size_window): Set the window's orig_top to nil when
4841 changing heights, so that a future shrink_mini_window won't
4842 restore a bogus height.
4844 * frame.c (do_switch_frame): If selected frame has a mini-window,
4845 resize that to exact size.
4847 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
4849 * xdisp.c (display_line): Simplify check for glyphs fitting
4850 entirely in the line.
4852 * xfns.c (xic_style): New variable.
4853 (create_frame_xic): Move static variable to global scope for
4854 the case that `static' gets defined away.
4856 2001-01-26 Kenichi Handa <handa@etl.go.jp>
4858 * coding.c (decode_coding): Set a flag for inhibiting
4860 (code_convert_region): Always set saved_coding_symbol.
4861 (decode_coding_string): Likewise. Update coding->symbol when we
4862 encounter a inconsistent eol by the same way as code_convert_region.
4864 2001-01-25 Gerd Moellmann <gerd@gnu.org>
4866 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
4869 * xterm.c (x_after_update_window_line): Don't clear if frame's
4870 internal border width is zero.
4871 (x_clear_area): New function.
4872 (x_after_update_window_line, x_clear_end_of_line)
4873 (x_scroll_bar_create, x_scroll_bar_set_handle)
4874 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
4875 instead of XClearArea.
4877 * xterm.h (x_clear_area): Add prototype.
4879 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
4880 which doesn't seem necessary anymore with Lesstif 0.92.
4882 2001-01-25 Dave Love <fx@gnu.org>
4884 * puresize.h (BASE_PURESIZE): Up to 720000.
4886 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
4888 2001-01-25 Gerd Moellmann <gerd@gnu.org>
4890 * xdisp.c (echo_area_display): Don't call redisplay_internal
4891 when Emacs is shutting down. We can't run hooks etc. that
4892 would be necessary to do a redisplay.
4894 * lread.c (read_integer): Use type EMACS_INT instead of int.
4896 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
4898 * ccl.c (ccl_driver): Fix last change.
4900 2001-01-25 Kenichi Handa <handa@etl.go.jp>
4902 * ccl.h (sturct ccl_program): New member suppress_error.
4904 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
4905 insert error message to the output.
4906 (setup_ccl_program): Initialize ccl->suppress_error to 0.
4908 * coding.h (struct coding_system): New member suppress_error.
4910 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
4911 (Fset_terminal_coding_system_internal): Set the member
4912 suppress_error to 1.
4913 (Fset_safe_terminal_coding_system_internal): Likewise.
4915 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
4917 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
4918 as if it was a `charset'.
4920 2001-01-24 Gerd Moellmann <gerd@gnu.org>
4922 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
4923 value in where_is_cache; the next lookup in the cache returns
4924 something bogus if we do.
4926 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4928 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
4929 if HAVE_WINDOW_SYSTEM isn't defined.
4931 2001-01-24 Gerd Moellmann <gerd@gnu.org>
4933 * fns.c (sweep_weak_table): Fix code taking items out of
4934 the hash collision chain. Some cleanup.
4936 * xterm.c (x_new_font): Don't change a tooltip's size.
4938 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
4939 background color by specifying a color for the default font
4942 2001-01-24 Kenichi Handa <handa@etl.go.jp>
4944 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
4945 a workaround for SunOS 4's cc.
4946 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
4947 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
4948 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
4951 2001-01-23 Gerd Moellmann <gerd@gnu.org>
4953 * xterm.c (x_set_window_size_1): New function extracted from
4955 (x_set_window_size): Use it.
4956 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
4957 doesn't have a widget, like tooltips.
4959 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
4961 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4963 2001-01-23 Kenichi Handa <handa@etl.go.jp>
4965 * fns.c (Fset_char_table_default): Fix to make sub char-table
4968 2001-01-22 Gerd Moellmann <gerd@gnu.org>
4970 * xdisp.c (build_desired_tool_bar_string): Make sure we have
4971 a desired tool bar string, even if there are no tool bar items.
4973 * xdisp.c (Ftool_bar_lines_needed): New function.
4974 (syms_of_xdisp): Defsubr it.
4976 * editfns.c (Fformat): Don't extend text properties from arguments
4977 to padding chars in the result.
4979 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
4981 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
4983 2001-01-20 Andrew Innes <andrewi@gnu.org>
4985 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
4986 (w32_initialize): Don't set term hooks that aren't actually needed
4989 * xfaces.c (realize_default_face):
4991 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
4993 * xdisp.c (handle_single_display_prop): Remove references to
4994 FRAME_W32_CONSOLE_P.
4996 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
4998 * frame.h (output_method): Remove output_w32_console method.
4999 (FRAME_W32_CONSOLE_P): Remove macro.
5001 * frame.c (Qw32_console): Remove variable.
5002 (Fframep): Remove references to it.
5003 (syms_of_frame): Ditto.
5004 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
5006 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
5009 2001-01-20 Kenichi Handa <handa@etl.go.jp>
5011 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
5013 2001-01-19 Andrew Innes <andrewi@gnu.org>
5015 * w32.c (init_environment): Add a version-independent site-lisp
5016 directory to EMACSLOADPATH, after the version dependent one.
5018 2001-01-19 Gerd Moellmann <gerd@gnu.org>
5020 * editfns.c (Fbuffer_substring): Doc fix.
5022 * xdisp.c (message_dolog, message2, message2_nolog):
5023 Rename parameter LEN to NBYTES.
5025 2001-01-19 Kenichi Handa <handa@etl.go.jp>
5027 * charset.c (strwidth): Use c_string_width.
5028 (c_string_width): New function.
5029 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
5032 * charset.h (c_string_width, lisp_string_width): Extern them.
5034 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
5036 * indent.c (check_composition): Check validity of composition.
5038 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
5039 characters by calling c_string_width.
5040 (x_consider_frame_title): Get byte length of frame tile string
5042 (display_mode_element): Pay attention to width of non-ASCII
5043 characters by calling strwidth.
5045 2001-01-18 Gerd Moellmann <gerd@gnu.org>
5047 * xfns.c (Qcancel_timer): New variable.
5048 (syms_of_xfns): Initialize and staticpro it.
5049 (Fx_hide_tip, Fx_show_tip): Use it.
5050 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5052 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
5054 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
5056 * window.h (WINDOW_LIVE_P): New macro.
5058 * window.c (window_size_fixed): New variable.
5059 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
5062 * eval.c (specbind): If binding a per-buffer variable which
5063 doesn't have a buffer-local value in the current buffer, change
5064 the global value by changing the value of the symbol bound in all
5065 buffers not having their own value, to make it consistent with
5066 what happens with other buffer-local variables.
5068 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
5070 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
5071 when searching for a newline.
5073 2001-01-18 Kenichi Handa <handa@etl.go.jp>
5075 * xdisp.c (display_string): Fix previous change.
5077 2001-01-18 Jason Rumney <jasonr@gnu.org>
5079 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
5080 GLYPH_DEBUG is defined.
5081 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
5082 true for images with `:ascent 100'.
5083 (x_set_mouse_face_gc): If the last used mouse face has gone in the
5084 meantime, use face MOUSE_FACE_ID.
5085 If first glyph isn't a character glyph, use the ASCII NUL
5086 character to determine the face.
5087 (expose_area): Do not treat left margin specially.
5088 (note_mode_line_highlight): If no local_map, check global keymap.
5089 (note_mouse_highlight): Initialize overlay.
5090 (clear_mouse_face): Don't return if tip_frame is non-nil.
5091 (show_scroll_bars): Remove unused function.
5092 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
5093 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
5095 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
5096 (x_free_frame_resources): Unload relief colors.
5098 2001-01-17 Gerd Moellmann <gerd@gnu.org>
5100 * xdisp.c (forward_to_next_line_start): Avoid calling
5101 get_next_display_element when the newline is already found.
5102 This may change the iterator's position, when its current position is
5103 equal to the iterator's stop_charpos.
5105 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
5106 zero, use this method only at the end of a line.
5108 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
5109 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
5110 if SCALABLE_FONTS_P is set.
5112 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
5113 so that scalable fonts are included.
5115 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
5116 In the cache, use a key containing the information if scalable
5118 (x_load_font): Adapt to change of keys in the font cache.
5120 2001-01-17 Kim F. Storm <storm@filanet.dk>
5122 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
5123 XListFonts to take advantage of font caching.
5125 * xterm.c (x_list_fonts): Ensure caching font information when
5126 called for a null frame, which is the case frequently when Emacs
5129 2001-01-17 Gerd Moellmann <gerd@gnu.org>
5131 * xfns.c (QCconversion): Replaces QCalgorithm.
5133 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
5135 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
5138 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
5139 not everything could be displayed.
5141 * line.h, x-list-font.c: Files removed because unused.
5143 2001-01-17 Andrew Innes <andrewi@gnu.org>
5145 * dired.c (directory_files_internal): Convert result from readdir
5146 to a unibyte string initially, to avoid possible misinterpretation
5147 of some bytes as the internal form of Emacs characters.
5149 2001-01-17 Kenichi Handa <handa@etl.go.jp>
5151 * fns.c (concat): Be sure to avoid putting the same `composition'
5152 property on the adjacent regions.
5154 2001-01-16 Gerd Moellmann <gerd@gnu.org>
5156 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
5157 (Fscroll_right, Fscroll_left): Set it here instead, if called
5160 * buffer.c (Fset_buffer_modified_p): Set buffer's
5161 prevent_redisplay_optimizations_p flag.
5163 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
5164 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
5165 with additional arg.
5167 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
5170 * xdisp.c (redisplay_preserve_echo_area): Add parameter
5171 FROM_WHERE, for debugging.
5173 2001-01-16 Kenichi Handa <handa@etl.go.jp>
5175 * ccl.c (Fregister_ccl_program): Handle the return value of
5176 resolve_symbol_ccl_program correctly.
5177 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
5179 2001-01-15 Gerd Moellmann <gerd@gnu.org>
5181 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
5182 has gone in the meantime, use face MOUSE_FACE_ID.
5184 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
5185 If x_display_info_for_display returns null, don't try to close
5186 the display; we didn't open it.
5188 * dispnew.c (save_or_restore_current_matrices): Function removed.
5189 (save_current_matrix, restore_current_matrix): New functions.
5190 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
5191 restore the frame's current matrix. Due to the glyph pointer
5192 setup done in adjust_glyph_matrix, there is no easy way to make
5193 saving the current matrix in the desired matrix generally correct,
5196 2001-01-15 Kenichi Handa <handa@etl.go.jp>
5198 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
5200 (display_line): Optimize for wide characters.
5201 (display_string): Don't try to display a multi-column character
5202 partially. On ttys, produce more than one truncation glyph for
5203 multi-column characters that don't fit on the line.
5205 2001-01-13 Kenichi Handa <handa@etl.go.jp>
5207 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
5208 Define it instead of WORDS_BIGENDIAN. Caller changed.
5210 2001-01-13 Jason Rumney <jasonr@gnu.org>
5212 * w32fns.c (Fimage_size, image_ascent, lookup_image)
5213 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
5214 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5215 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
5217 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
5218 (x_draw_image_relief, x_draw_image_foreground_1)
5219 (x_draw_image_glyph_string): Adapt to change of image margins.
5221 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
5224 * w32bdf.c (search_file_line, get_cached_font_char)
5225 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
5227 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
5229 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
5230 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
5231 (Fw32_send_sys_command): Remove unused variables.
5232 (w32_msg_pump): Add parentheses.
5234 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
5235 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
5238 2001-01-12 Gerd Moellmann <gerd@gnu.org>
5240 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
5241 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
5242 being a pair of margins.
5243 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
5244 to DEFVAR_LISP. Extend doc.
5246 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
5248 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
5249 pair of integers `(X . Y)', use X for the horizontal and Y for the
5251 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
5252 (parse_image_spec): Check it.
5253 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5254 (tiff_format, gif_format, gs_format):
5255 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
5257 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
5258 (x_draw_image_relief, x_draw_image_foreground_1)
5259 (x_draw_image_glyph_string): Adapt to the change of image margins.
5261 * dispextern.h (struct image): Replace member `margin' with
5262 `hmargin' and `vmargin'.
5264 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
5267 * dispnew.c (update_text_area): Put code which decrements the
5268 stop position when the row's face extends to the end of the
5271 * xfns.c (x_set_mouse_color): Fix color allocation.
5273 * keyboard.c: Call get_local_map with new argument list.
5275 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
5277 * intervals.h (enum map_property): Removed.
5278 (get_local_map): Change prototype.
5280 * keymap.c: Call get_local_map with new argument list.
5281 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
5283 2001-01-11 Gerd Moellmann <gerd@gnu.org>
5285 * xdisp.c (build_desired_tool_bar_string): Correct the computation
5286 of the size needed for the tool bar string. For the last image,
5287 use a `display' property that reaches to the end of the string.
5289 * xselect.c (selection_request_dpyinfo): New variable.
5290 (x_handle_selection_request): Set it.
5291 (x_selection_request_lisp_error): Don't call
5292 x_decline_selection_request if selection request's display has
5295 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
5296 Do the unregister_colors before calling XFreeColors.
5298 2001-01-10 Dave Love <fx@gnu.org>
5300 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
5301 ${SOME_MACHINE_LISP}, not ${lisp}.
5303 2001-01-10 Gerd Moellmann <gerd@gnu.org>
5305 * xdisp.c (display_line): On ttys, produce more than one truncation
5306 glyph for multi-column characters that don't fit on the line.
5308 * xselect.c (x_reply_selection_request): Add a comment.
5310 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
5311 XkbGetNames instead of XkbGetKeyboard.
5313 2001-01-10 Dave Love <fx@gnu.org>
5315 * sysdep.c (random): Revert the declaration.
5317 2001-01-09 Gerd Moellmann <gerd@gnu.org>
5319 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
5320 Call function string_bytes.
5321 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
5323 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
5324 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
5325 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
5326 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
5328 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
5329 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
5330 after sweeping strings, and at the end.
5331 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
5333 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
5334 ensure that pop_message is called.
5336 * keyboard.c (Fexecute_extended_command): Use a
5337 record_unwind_protect to ensure that pop_message is called.
5339 * lisp.h (push_message_unwind): Add prototype.
5341 * xdisp.c (push_message_unwind): New function.
5343 * fileio.c (do_auto_save_unwind): Do the pop_message here
5344 instead of in Fdo_auto_save.
5345 (Fdo_auto_save): Don't call pop_message.
5347 2001-01-08 Ken Raeburn <raeburn@gnu.org>
5349 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
5352 2001-01-08 Gerd Moellmann <gerd@gnu.org>
5354 * window.c (window_scroll_pixel_based): Adjust glyph matrices
5355 when increasing window's vscroll.
5357 * macros.c (Qkbd_macro_termination_hook): New variable.
5358 (syms_of_macros): Initialize and staticpro it.
5359 (pop_kbd_macro): Run kbd-macro-termination-hook.
5361 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
5363 2001-01-07 Dave Love <fx@gnu.org>
5365 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
5366 arglist, for documentation's sake.
5368 2001-01-06 Andrew Innes <andrewi@gnu.org>
5370 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
5373 2001-01-05 Andrew Innes <andrewi@gnu.org>
5375 * term.c (update_end): Don't check updating_frame; for some reason
5376 this can be 0 sometimes, such as after dismissing a popup menu,
5377 and isn't necessary given the explicit frame argument.
5379 2001-01-05 Gerd Moellmann <gerd@gnu.org>
5381 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
5382 on some systems, and an unsigned long on others, like FreeBSD 4.1.
5384 2001-01-04 Gerd Moellmann <gerd@gnu.org>
5386 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
5388 * xfns.c (x_create_tip_frame): Preserve the value of
5389 face_change_count around the creation of the tip frame.
5391 * xfns.c (last_show_tip_args): New variable.
5392 (compute_tip_xy): New function.
5393 (Fx_show_tip): Reuse an existing tip frame, if possible.
5394 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
5396 2001-01-04 Dave Love <fx@gnu.org>
5398 * editfns.c (Fformat): Doc fix.
5400 * systime.h (set_file_times): Prototype.
5402 * widget.h (EmacsFrameSetCharSize_): Prototype.
5404 * sysdep.c (random, srandom): Declare explicitly.
5406 * dispextern.h (move_it_vertically_backward): Declare.
5408 2001-01-04 Gerd Moellmann <gerd@gnu.org>
5410 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
5411 like in Fx_create_frame.
5413 * xfaces.c (set_font_frame_param): Don't do anything for
5414 non-graphical frames.
5416 * window.c (Fdelete_other_windows): Set window's window_end_valid
5417 to nil when changing the window's start. Don't change the
5418 window's start when its top position hasn't changed. If we do,
5419 this will set the window's optional_new_start, which act's like a
5420 force_start during redisplay with C-x 1 M-> under particular
5421 circumstances (see report from Per Starback to emacs-pretest-bug
5424 2001-01-03 Gerd Moellmann <gerd@gnu.org>
5426 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
5427 short cut at the start of the function. Add an assertion.
5428 (reseat_at_next_visible_line_start): Add an assertion.
5430 * window.c (Frecenter): When changing the window start, set the
5431 window's window_end_valid to nil.
5432 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
5434 * dispextern.h (move_it_past_eol): Add prototype.
5436 * xdisp.c (move_it_past_eol): New function.
5438 * window.c (Fwindow_end): Doc fix.
5440 2001-01-03 Dave Love <fx@gnu.org>
5442 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
5444 2001-01-03 Gerd Moellmann <gerd@gnu.org>
5446 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
5447 the enabled_p flag of the glyph row at window_end_vpos to 0.
5448 (handle_single_display_prop): Fix last change.
5450 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5452 * window.c (Frecenter): Doc fix.
5454 2001-01-02 Andrew Innes <andrewi@gnu.org>
5456 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
5458 * frame.h (output_method): Add output_w32_console method.
5459 (FRAME_W32_CONSOLE_P): New macro.
5461 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
5462 use output_w32_console method.
5463 (Qw32_console): New Lisp_Object.
5464 (Fframep): Return it.
5465 (syms_of_frame): Init it.
5466 (Fframe_parameters): Report w32console as font for w32_console frames.
5468 * xfaces.c (realize_default_face): Set face foreground and
5469 background to unspecified for w32_console frames.
5470 (realize_face): Realize face cache for w32_console frames.
5471 (realize_tty_face): Accept w32_console frames.
5473 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
5474 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
5475 necessary, even if running interactively.
5477 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
5480 * w32term.c (x_update_begin):
5484 (x_change_line_highlight):
5489 (w32_reassert_line_highlight):
5490 (w32_frame_rehighlight):
5491 (w32_frame_raise_lower): Do nothing if not w32 frame.
5493 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
5495 * w32fns.c (Fx_display_color_cells): Determine correct value, when
5496 system doesn't tell us directly.
5497 (Fx_display_visual_class): Implement properly.
5499 2001-01-02 Gerd Moellmann <gerd@gnu.org>
5501 * window.c (Frecenter): Handle centering in graphical frames
5502 specially. Centering on the basis of line counts doesn't work
5503 reliably with variable-height lines.
5505 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5507 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
5510 * composite.c (run_composition_function): Remove unused var `val'.
5511 (update_compositions): Remove unused variable `hook'.
5513 * intervals.c (get_local_map): Remove unused variable `tem'.
5515 * doprnt.c (doprnt1): Remove unused variable `size'.
5517 * fns.c (Flength): Remove unused variable `tail'.
5518 (Fdelete): Remove unused variable `size'.
5520 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
5523 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
5525 * data.c (find_symbol_value): Remove extra 3rd argument in the
5526 call to swap_in_symval_forwarding.
5528 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
5530 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
5531 (trivial_regexp_p): Remove unused variable `c'.
5532 (boyer_moore): Remove unused variable `k'.
5534 * indent.c (current_column): Remove unused variable `stopchar'.
5535 (Fcompute_motion): Remove unused variable `contin'.
5537 * casefiddle.c (casify_object): Remove unused variable `tolen'.
5539 * dired.c (directory_files_internal): Fix a typo in a comment.
5540 Remove an unused variable `handler'.
5541 (file_name_completion): Remove unused function-scope variable `dp'.
5542 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
5545 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
5547 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
5549 (Fmarker_insertion_type): Remove unused variable `buf'.
5551 * insdel.c (make_gap): Remove unused variable `result'.
5553 * keyboard.c (record_char): Remove unused function-scope var `help'.
5554 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
5555 (menu_bar_items): Remove unused function-scope variable `tem'.
5557 * fontset.c (fontset_ref): Remove unused variable `i'.
5558 (fontset_set): Remove unused variables `j' and `tmp'.
5559 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
5560 (make_fontset_for_ascii_face): Remove unused variable `name'.
5561 (fs_load_font): Remove unused variable `font_idx'.
5562 (fs_query_fontset): Remove unused function-local variable `fontset'.
5563 (list_fontsets): Remove unused variable `tail'.
5564 (Fnew_fontset): Remove unused variables `family' and `registry'.
5565 (accumulate_font_info): Remove unused variable `tmp'.
5566 (Ffontset_font): Remove unused variable `id'.
5567 (syms_of_fontset): Remove unused variable `i'.
5569 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
5571 (lookup_image): Remove unused variable `file'.
5572 (xbm_load): Remove unused variables `bitmap_data', `height', and
5573 `width'. Remove function-local variable `i', leave the
5575 (gif_load): Remove unused variable `inc'.
5577 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
5578 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
5579 leave only the one in the inner block.
5581 * xfaces.c (face_fontset, realize_default_face): Remove unused
5583 (face_at_buffer_position): Remove unused variable `multibyte_p'.
5585 * term.c (encode_terminal_code): Remove unused variable `c'.
5587 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
5588 char *' instead of `char *'.
5590 * category.c (Fcategory_docstring): Remove unused variable `doc'.
5591 (Fget_unused_category): Remove unused variable `docstring_vector'.
5592 (Fchar_category_set): Remove unused variables `val', `charset',
5595 * coding.c (detect_coding_iso2022, setup_coding_system):
5596 Remove unused variable `i'.
5597 (detect_coding_mask): Remove unused variable `idx'.
5598 (detect_coding): Remove unused variable `i'.
5599 (ccl_coding_driver): Remove unused variable `result'.
5600 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
5601 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
5602 (encode_coding_string): Remove unused variables `gcpro1' and
5603 `saved_coding_symbol'.
5604 (Ffind_coding_systems_region_internal): Remove function-local
5605 variable args[], leave only the block-local one.
5606 (code_convert_region1): Remove unused variable `len'.
5608 * charset.c (char_printable_p): Remove unused variable `chars'.
5609 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
5610 (str_to_multibyte): Remove unused variable `c'.
5612 * window.c (size_window): Remove block-local variable `min_size'.
5614 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
5615 `header_line_height'.
5616 (append_space, extend_face_to_end_of_line): Declare `saved_what'
5617 enum display_element_type.
5619 2001-01-02 Gerd Moellmann <gerd@gnu.org>
5621 * xterm.c (x_connection_closed): Catch X errors around all
5622 statements that call X. Save away the error message in a local copy.
5624 * xterm.c (x_connection_closed): Set handling_signal to 0 at
5627 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
5628 in or at the start of invisible text.
5630 * dispnew.c (update_window): Don't check_current_matrix_flags.
5632 2001-01-01 Jason Rumney <jasonr@gnu.org>
5634 * w32fns.c (x_figure_window_size): Do not allow new_height and
5635 new_width of frame to override specified values.
5637 2000-12-30 Kenichi Handa <handa@etl.go.jp>
5639 * composite.c (find_composition): Fix a code for searching backward.
5641 2000-12-29 Gerd Moellmann <gerd@gnu.org>
5643 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
5644 (update_window) [GLYPH_DEBUG]: Call it.
5645 (scrolling_window): Prevent including current rows which are below
5646 what's displayed in the window.
5648 * xdisp.c (try_window_reusing_current_matrix)
5649 <new start <= old start>: Disable rows in the current matrix
5650 which are below the window after scrolling.
5652 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
5653 is zero. It's not worth the complexity.
5654 (invisible_text_between_p): Put in #if 0 because unused.
5656 2000-12-28 Gerd Moellmann <gerd@gnu.org>
5658 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
5659 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
5661 * keyboard.c (echo_char): If C is an integer, always call
5662 push_key_description. Former code could signal an invalid
5665 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
5666 If set, print multibyte text.
5667 (Fsingle_key_description): Call push_key_description with
5668 FORCE_MULTIBYTE set.
5669 (describe_buffer_bindings): Likewise.
5671 * lisp.h (push_key_description): Add prototype.
5673 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
5674 around the call to redisplay_internal.
5676 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5678 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5680 2000-12-28 Kenichi Handa <handa@etl.go.jp>
5682 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
5683 (ccl_driver): New local variable `extra_bytes'.
5685 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
5687 * coding.c (setup_coding_system):
5688 Initialize coding->spec.ccl.eight_bit_carryover.
5689 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
5691 2000-12-28 Kenichi Handa <handa@etl.go.jp>
5693 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
5694 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
5695 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
5696 (decode_composition_emacs_mule): New function.
5697 (decode_coding_emacs_mule): Decode composition sequence by calling
5698 decode_composition_emacs_mule.
5699 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
5700 (encode_coding_emacs_mule): Changed from macro to function.
5701 If a text contains compositions, encode them correctly.
5702 (setup_coding_system): Set coding->commong_flags for emacs-mule so
5703 that decoding and encoding are required.
5705 2000-12-27 Gerd Moellmann <gerd@gnu.org>
5707 * xfaces.c (PT_PER_INCH): New macro.
5708 (xlfd_point_size): Compute real point size from font's pixel size.
5709 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
5712 * .gdbinit: Comment out the line pointing to the Lesstif source
5715 * window.c (Frecenter): Use displayed_window_lines instead
5716 of window_internal_height.
5718 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5719 instead of x-toolkit-scroll-bars-p.
5720 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
5722 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5723 instead of x-toolkit-scroll-bars-p.
5724 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
5726 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
5727 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
5728 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
5730 (add_window_display_history, add_frame_display_history)
5731 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
5732 (build_frame_matrix_from_leaf_window): Remove unused code.
5733 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
5735 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
5736 (update_window) [GLYPH_DEBUG]: Likewise.
5737 (syms_of_display): Defsubr dump-redisplay-history.
5739 2000-12-23 Gerd Moellmann <gerd@gnu.org>
5741 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
5742 the end of the prompt. Set echo_after_prompt to the offset
5743 of echoptr in echobuf.
5745 * xdisp.c (init_from_display_pos): Pop until the iterator's
5746 stack is empty; there may be frames for stretch or images
5749 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
5750 (save_or_restore_current_matrix): New function for the same
5751 purpose, but more efficient.
5752 (adjust_frame_glyphs_for_frame_redisplay): Use it.
5754 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
5756 * xdisp.c (syms_of_xdisp): Fix last change.
5758 2000-12-23 Gerd Moellmann <gerd@gnu.org>
5760 * xdisp.c (syms_of_xdisp): Doc fix.
5762 * xdisp.c (redisplay_window): Remove label restore_buffers;
5763 use finish_scroll_bars instead to make sure that scroll bars
5764 are redeemed. If we don't do this, flickering can result from
5765 scroll bars being destroyed and recreated.
5767 2000-12-22 Jason Rumney <jasonr@gnu.org>
5769 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
5770 in the wrong colors when the foreground is not black.
5771 (expose_window): Don't redraw the window that's currently being
5774 2000-12-22 Gerd Moellmann <gerd@gnu.org>
5776 * window.c (size_window): When setting the window's too_small_ok
5777 flag, compare old size with minimum size depending on WIDTH_P,
5778 don't compare with window_min_width.
5780 * window.c (delete_window): Simplify somewhat.
5781 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
5782 freeing window matrices. The flag windows_or_buffers_changed is
5783 set, so the next redisplay will consider all windows; this should
5786 2000-12-22 Kenichi Handa <handa@etl.go.jp>
5788 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
5790 * ccl.h (struct ccl_program): New member cr_consumed.
5792 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
5793 (CCL_READ_CHAR): Handle EOL conversion here.
5794 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
5796 2000-12-21 Gerd Moellmann <gerd@gnu.org>
5798 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
5800 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
5801 otherwise tabs of different size compare equal.
5803 * callint.c (Fcall_interactively): Prevent a compiler warning.
5805 * print.c (print_unwind): Return nil.
5806 (PRINTDECLARE): Initialize all local variables.
5807 (print_preprocess): Add a default case.
5809 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
5811 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
5813 * window.c (delete_window, Fsplit_window)
5814 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
5816 * dispextern.h (ensure_frame_matrix): Function declaration removed.
5818 * dispnew.c (ensure_frame_matrix): Removed.
5819 (save_frame_matrix, restore_frame_matrix): New functions.
5820 (adjust_frame_glyphs_for_frame_redisplay): Use them.
5822 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
5823 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
5825 2000-12-21 Andrew Innes <andrewi@gnu.org>
5827 * w32term.c (x_update_begin): Regenerate the palette here, rather
5828 than for each window.
5830 * w32xfns.c (select_palette): Avoid calling SelectPalette if
5831 palette is NULL, since this corrupts memory! Also get
5832 display_info reference from frame.
5834 2000-12-21 Jason Rumney <jasonr@gnu.org>
5836 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
5838 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
5839 to avoid returning without releasing it.
5841 2000-12-21 Kenichi Handa <handa@etl.go.jp>
5843 * keymap.c (push_key_description): Don't convert eight-bit-control
5844 and eight-bit-graphic to multibyte character.
5846 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
5847 generic character and CODE1 is nil, return the smallest character
5850 2000-12-20 Dave Love <fx@gnu.org>
5852 * s/osf5-0.h (NSIG): Don't redefine.
5854 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
5856 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
5857 excluding menu-bar and tool-bar.
5858 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
5859 (menu_item_p): Remove.
5860 (where_is_internal_1): Don't ignore menu-items.
5862 2000-12-20 Gerd Moellmann <gerd@gnu.org>
5864 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
5867 * window.c (make_window): Initialize window's min_hscroll.
5868 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
5869 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
5871 (struct saved_window): New member min_hscroll.
5872 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
5873 (Fset_window_configuration): Set window's min_hscroll.
5874 (save_window_save): Save window's min_hscroll.
5875 (compare_window_configurations): Compare min_hscroll values.
5877 * window.h (struct window): New member min_hscroll.
5879 * keyboard.c (echo_prompt): Prevent a compiler warning.
5881 * xdisp.c (try_cursor_movement): Fix last change. The real
5882 condition is that PT is at the end of the row, and should
5883 be displayed at the start of the next row.
5885 * xdisp.c (try_cursor_movement): If we end on a partially
5886 visible line, end we already decided to scroll, return -1.
5888 * dispextern.h (ensure_frame_matrix): Add prototype.
5890 * window.c (delete_window, Fsplit_window)
5891 (Fset_window_configuration): Call ensure_frame_matrix.
5893 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
5895 (adjust_frame_glyphs_for_frame_redisplay): If display has been
5896 completed, call fake_current_matrices instead of marking frame
5899 2000-12-20 Jason Rumney <jasonr@gnu.org>
5901 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
5903 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5905 * fns.c (Frequire): Doc fix.
5907 2000-12-19 Gerd Moellmann <gerd@gnu.org>
5909 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
5911 * dispnew.c (direct_output_for_insert): Fix check for mini-window
5912 currently displaying a message.
5914 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
5916 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
5918 2000-12-18 Andrew Innes <andrewi@gnu.org>
5920 * w32.c (w32_strerror): New function.
5922 * w32.h (w32_strerror): New extern.
5924 * w32fns.c (Fw32_shell_execute): Use it.
5926 2000-12-18 Gerd Moellmann <gerd@gnu.org>
5928 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
5930 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5932 * msdos.c (IT_set_face): Obey inverse_video.
5934 2000-12-18 Kenichi Handa <handa@etl.go.jp>
5936 * dired.c (directory_files_internal): Always return decoded filenames.
5938 2000-12-18 Gerd Moellmann <gerd@gnu.org>
5940 * xterm.c (x_connection_closed): Prevent being called recursively
5941 because of an error condition in XtCloseDisplay.
5943 * xdisp.c (init_iterator): If noninteractive, and the frame's
5944 face cache is null, make one.
5946 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5948 * process.c (wait_reading_process_input): Check for pending
5949 input when running timers.
5951 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5953 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
5955 2000-12-18 Kenichi Handa <handa@etl.go.jp>
5957 * process.c (read_process_output): Don't run a filter if the code
5958 decoder produces nothing but carryover.
5960 2000-12-17 Andrew Innes <andrewi@gnu.org>
5962 * w32.c (sys_rename): Only check errno against EEXIST, and not
5963 EACCES, when determining whether rename failed because the target
5964 exists. This was resulting in indefinite looping on Windows 9x if
5965 the source file was locked by another process.
5967 * w32fns.c (Ffile_system_info): New function.
5968 (syms_of_w32fns): Defsubr it.
5970 2000-12-17 Gerd Moellmann <gerd@gnu.org>
5972 * window.c (coordinates_in_window): Fix computation for
5973 position on vertical line between mode lines.
5975 * xfns.c (unwind_create_frame): Return t if frame was deleted.
5976 Don't alter tip_frame or tip_window.
5977 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5980 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
5981 Don't alter tip_frame or tip_window.
5982 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5985 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
5987 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
5988 be consistent with the doc string. Reported by NAKAJIMA Mikio
5989 <minakaji@osaka.email.ne.jp>.
5991 2000-12-16 Kenichi Handa <handa@etl.go.jp>
5993 * xfaces.c (Vface_ignored_fonts): New variable.
5994 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
5995 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
5997 2000-12-15 Gerd Moellmann <gerd@gnu.org>
5999 * dispnew.c (update_window): Detect pending input every nth line
6000 updated, i.e. do it depending on real work done, and not on the
6003 * xterm.c (expose_window): Don't redraw the window that's
6004 currently being updated.
6006 * window.c (Fset_window_point): Remove test for
6007 cursor_in_non_selected_windows.
6009 * lread.c (read1): Recognize end of file after `\\'.
6011 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
6012 not unwind_create_frame.
6014 2000-12-15 Dave Love <fx@gnu.org>
6016 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
6019 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
6021 2000-12-15 Kenichi Handa <handa@etl.go.jp>
6023 * coding.c (setup_coding_system): Clear all members of the struct
6024 coding_system at first.
6025 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
6027 (code_convert_region): Don't override coding->src_multibyte and
6028 coding->dst_multibyte.
6030 * fns.c (Fmd5): Docstring improved.
6032 2000-12-15 Miles Bader <miles@gnu.org>
6034 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
6035 are actually marked as mode-lines; otherwise use
6036 estimate_mode_line_height.
6038 2000-12-14 Gerd Moellmann <gerd@gnu.org>
6040 * editfns.c (Fformat): Prevent a buffer overrun when the format
6041 specifies a precision.
6043 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
6045 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
6046 argument is outside the range [2..3].
6048 2000-12-14 Andrew Innes <andrewi@gnu.org>
6050 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
6051 nothing to do. Bind inhibit-quit.
6052 (tip_frame): Make it a Lisp_Object.
6053 (x_create_tip_frame): Set tip_frame after it has been added to
6055 (Fx_show_tip): Don't set tip_frame here.
6056 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
6057 (unwind_create_frame, unwind_create_tip_frame): New functions.
6058 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6059 while a frame is only partially constructed.
6061 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6062 (x_free_frame_resources): New function.
6063 (x_destroy_window): Use it.
6065 2000-12-14 Gerd Moellmann <gerd@gnu.org>
6067 * xfns.c (Fx_backspace_delete_keys_p): New function.
6068 (syms_of_xfns): Defsubr it.
6070 * config.in (HAVE_XKBGETKEYBOARD): Add.
6072 2000-12-14 Kenichi Handa <handa@etl.go.jp>
6074 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
6075 Always store string in multibyte representation in echobuf.
6076 (echo_char): Always store string in multibyte representation in
6078 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
6079 (read_key_sequence): Adjusted for the change of echo_prompt.
6081 * fns.c (Fmd5): Docstring improved.
6083 * lisp.h (detect_coding_system): Prototype adjusted.
6085 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
6086 (detect_coding_emacs_mule, detect_coding_iso2022,)
6087 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
6088 (detect_coding_utf_16, detect_coding_ccl): Make them static.
6089 New argument MULTIBYTEP. Callers changed.
6090 (detect_coding_mask, detect_coding_system): New argument
6091 MULTIBYTEP. Callers changed.
6092 (decode_coding_string): Set coding->src_multibyte and
6093 coding->dst_multibyte before calling detect_coding and detect_eol.
6094 Update them after some coding system is detected.
6096 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
6098 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
6100 * keyboard.c (menu_bar_items, tool_bar_items):
6101 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
6103 2000-12-13 Gerd Moellmann <gerd@gnu.org>
6105 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
6107 (unwind_create_frame, unwind_create_tip_frame): New functions.
6108 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6109 while a frame is only partially constructed.
6111 * xterm.h (x_free_frame_resources): Declare.
6113 * xterm.c (x_free_frame_resources): New function.
6114 (x_destroy_window): Use it.
6116 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
6117 don't interrupt the update for pending input initially, i.e.
6118 update at least some lines.
6120 * keyboard.c (do_mouse_tracking): Make externally visible.
6122 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
6124 * xfns.c (gray_bitmap_bits): Declare `char *'.
6126 2000-12-12 Gerd Moellmann <gerd@gnu.org>
6128 * xdisp.c (display_tool_bar_line): Make sure that tool bar
6129 lines start with a relief line.
6131 2000-12-12 Dave Love <fx@gnu.org>
6133 * window.c (Fdisplay_buffer): Doc fix.
6134 (Fwindow_list): Remove unused var.
6136 * buffer.h (mmap_set_vars): Declare.
6138 * window.h (Fset_window_point): Declare.
6140 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
6142 * msdos.c (fast_find_position): Don't overstep the last window row.
6143 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
6144 variable `area'. When looking for a row under (X,Y), give up if some
6145 of the previous rows is not enabled.
6147 2000-12-12 Gerd Moellmann <gerd@gnu.org>
6149 * window.c (Fset_window_point): If displaying cursors in windows
6150 other than the selected window, make sure redisplay updates
6151 other windows to show the new value of point in the window.
6153 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
6155 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
6156 the buffer is the sole visible buffer when in the mini-buffer.
6158 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
6159 Bind `inhibit-read-only' to t.
6160 (unwind_with_echo_area_buffer): Use AREF.
6162 * xfns.c (Fx_hide_tip): Simplified.
6164 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
6167 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
6169 2000-12-11 Gerd Moellmann <gerd@gnu.org>
6171 * xfns.c (Fx_hide_tip): Fix last change.
6173 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
6174 nothing to do. Bind inhibit-quit.
6175 (tip_frame): Make it a Lisp_Object.
6176 (x_create_tip_frame): Set tip_frame after it has been added to
6178 (Fx_show_tip): Don't set tip_frame here.
6180 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6182 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
6185 * dispextern.h: Change external declaration of tip_frame.
6187 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
6188 return an empty string.
6190 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
6191 of the window's update_mode_line flag, since the former is set by
6192 force-mode-line-update, not the latter. This makes
6193 column-number-mode slightly faster.
6195 * xdisp.c (try_window_id) <all changes above window start>:
6198 2000-12-11 Paul Eggert <eggert@twinsun.com>
6200 * config.in (HAVE_FTELLO): Remove.
6202 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
6203 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
6205 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
6206 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
6208 2000-12-11 Miles Bader <miles@gnu.org>
6210 * window.c (displayed_window_lines): Don't round up when
6211 converting empty space at bottom to lines.
6212 Handle non-newline-terminated final lines properly.
6213 (Fwindow_text_height): New function (used to be in lisp).
6214 (syms_of_window): Initialize it.
6216 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
6218 * syntax.c (scan_lists): Check that the right quote char has the
6219 right Sstring syntax when jumping over strings.
6220 (init_syntax_once): Use Smax rather than 13.
6222 2000-12-09 Miles Bader <miles@gnu.org>
6224 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
6225 with PARTIALLY, inverting the sense.
6226 (window_scroll_pixel_based): Scroll partially visible lines into
6227 place if we hit the beginning or end of the buffer.
6228 (displayed_window_lines): Don't include partially visible lines.
6229 (Fmove_to_window_line): Skip past any partially visible first line.
6231 2000-12-08 Gerd Moellmann <gerd@gnu.org>
6233 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
6235 * tparam.c (tparam1): Change the way buffers are reallocated to be
6236 portable and less obfuscated.
6238 * termcap.c (tgetent): Change the way buffers are reallocated to
6239 be portable and less obfuscated.
6241 * macros.c (store_kbd_macro_char): Change the way buffers are
6242 reallocated to be portable and less obfuscated.
6244 * lread.c (read1): Change the way buffers are reallocated to be
6245 portable and less obfuscated.
6247 * doc.c (Fsubstitute_command_keys): Change the way buffers
6248 are reallocated so that it is portable.
6250 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
6252 * dosfns.c (Ffile_system_info): New function.
6253 (syms_of_dosfns): Defsubr it.
6255 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
6257 * alloc.c (gc_sweep): Add comment.
6259 2000-12-07 Gerd Moellmann <gerd@gnu.org>
6261 * sound.c (vox_configure): Change order of ioctls.
6262 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
6263 Ignore errors when changing volume.
6264 (vox_close): Don't reset the device.
6266 * process.c (read_process_output): Make sure the process marker's
6267 position is valid when the process buffer is changed in
6268 after-change functions. W3 does that.
6270 * xfns.c (x_free_gcs): New function.
6272 * xterm.h (x_free_gcs): Add prototype.
6274 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
6277 * xterm.c (x_destroy_window): Call x_free_gcs so that
6278 resources of non-toolkit X windows will be freed.
6280 2000-12-07 Andrew Innes <andrewi@gnu.org>
6282 * w32fns.c (xlfd_charset_of_font): Fix last change.
6284 2000-12-06 Dave Love <fx@gnu.org>
6286 * md5.h (__P): Don't define -- it comes from config.h.
6288 * strftime.c: Change some #if foo to #ifdef foo.
6290 2000-12-06 Andrew Innes <andrewi@gnu.org>
6292 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
6294 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
6295 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
6296 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
6298 2000-12-06 Gerd Moellmann <gerd@gnu.org>
6300 * alloc.c (gc_sweep): Prevent symbols read during loadup
6303 * xdisp.c (underlying_face_id): New function.
6304 (handle_face_prop, face_before_or_after_it_pos): Use it
6305 to determine the face ``under'' a string. Let strings inherit
6306 the face of the buffer under them.
6308 * xfaces.c (face_at_string_position): Update function comment.
6310 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
6311 matrix if the window's left position has changed; we need to
6312 redraw it in this case.
6314 * dispextern.h (struct glyph_matrix): Add member window_left_x.
6316 * window.c (coordinates_in_window): Check mouse on mode-line or
6319 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
6320 advertized by the function documentation.
6322 * window.c (syms_of_window): Doc fix.
6324 * sound.c (vox_configure): Set volume for left and right channel.
6325 (sound_cleanup): Return nil.
6327 * xdisp.c (move_it_by_lines): Fix paren typo.
6329 * xterm.c (x_load_font): Don't use the font's max_bounds for
6330 computing the height of the font. If max_bounds' ascent or
6331 descent are greater than the font's ascent or descent, this means
6332 glyphs overlap, which should be handled now by redisplay.
6334 * window.c (Veven_window_heights): New variable.
6335 (syms_of_window): DEFVAR_LISP it.
6336 (Fdisplay_buffer): Check Veven_window_heights before evening the
6339 2000-12-06 Miles Bader <miles@gnu.org>
6341 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
6342 update `default-frame-alist' instead of setting no frame parameters.
6344 2000-12-06 Kenichi Handa <handa@etl.go.jp>
6346 * composite.c (update_compositions): Fix typo (use the correct
6349 2000-12-05 Jason Rumney <jasonr@gnu.org>
6351 * md5.h: Remove underscores from function declarations.
6352 (__attribute__, __alignof__) [!__GNUC__]: Define.
6354 * md5.c: Delay include of md5.h until after namespace cleaning.
6356 * makefile.w32-in (fns.o): Depend on md5.h
6357 (md5.o): New target.
6360 * makefile.nt: Likewise.
6362 2000-12-05 Jason Rumney <jasonr@altavista.net>
6364 * w32term.c (expose_area): Complete last change.
6366 2000-12-05 Ken Raeburn <raeburn@gnu.org>
6368 * minibuf.c: Include intervals.h.
6370 2000-12-05 Jason Rumney <jasonr@gnu.org>
6372 * w32term.c (x_produce_glyphs): If a font for a component of
6373 a composition is not found, use 1 pixel dot ascent and 0 dot
6374 descent value to avoid displaying terribly tall empty boxes.
6375 (expose_area): Pass x-coordinate relative to the exposed
6376 area to x_draw_glyphs instead of a window-relative coordinate.
6378 2000-12-05 Gerd Moellmann <gerd@gnu.org>
6380 * xdisp.c (next_element_from_ellipsis): Save face before selective
6381 display in saved_face_id, and set face_before_selective_p.
6382 (reseat_1): Reset face_before_selective_p.
6383 (append_space, extend_face_to_end_of_line): If iterator's
6384 face_before_selective_p is set, use the face from saved_face_id.
6385 (extend_face_to_end_of_line): For tty frames, make sure to
6386 use the right face id when producing spaces at the end of
6389 * dispextern.h (struct it): Add face_before_selective_p.
6391 * keyboard.c (record_char): Don't record identical help-echo
6392 events in recent_keys.
6394 * xterm.c [USE_X_TOOLKIT]: Close the display.
6395 (xim_close_dpy): Handle case that the display has been closed.
6397 * xterm.c (x_destroy_window): Reset the frame's X window after
6400 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
6401 variable window_width.
6402 (line_draw_cost): Fix code skipping over spaces at the end of the
6403 line when must_write_spaces is not set.
6404 (scrolling_window): Fix code inserting runs in list of all runs.
6406 2000-12-05 Kenichi Handa <handa@etl.go.jp>
6408 * coding.c (setup_coding_system): Be sure to initialize
6409 coding->category_idx.
6411 2000-12-04 Gerd Moellmann <gerd@gnu.org>
6413 * xterm.c (PER_CHAR_METRIC): Removed because not used.
6415 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
6416 area to x_draw_glyphs instead of a window-relative coordinate.
6418 * fileio.c (auto_save_error): Add parameter ERROR. Show the
6419 error in the message.
6421 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
6422 timer after having read a key. It's not good for code reading
6423 several keys in a loop, like an input method.
6425 * fileio.c (Finsert_file_contents): When VISIT is t, don't
6426 record undo information for format-decode.
6428 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
6429 current buffer is read-only, not if it isn't.
6431 * keyboard.c (record_char): Record `help-echo' input events
6432 in recent_keys only if they display some help. Don't record
6433 `help-echo' events as macro char.
6435 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6437 * editfns.c (save_excursion_restore): Don't move point
6438 in another window if it is showing the wrong buffer.
6439 Avoid the call to Fwindow_live_p, for speed.
6441 2000-12-04 Kenichi Handa <handa@etl.go.jp>
6443 * xfaces.c (struct font_name): New member registry_priority.
6444 (split_font_name): Initialize the above member to zero.
6445 (concat_font_list): New function.
6446 (font_list): Include fonts of all alternative registries.
6447 (FONT_POINT_SIZE_QUANTUM): New macro.
6448 (better_font_p): Ignore point size difference less than
6449 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
6451 * xterm.c (x_produce_glyphs): If a font for a component of
6452 a composition is not found, use 1 pixel dot ascent and 0 dot
6453 descent value to avoid displaying terribly tall empty boxes.
6455 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
6457 2000-12-03 Ken Raeburn <raeburn@gnu.org>
6459 * coding.h (code_convert_string1): Declare.
6461 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
6463 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
6465 2000-12-02 Jason Rumney <jasonr@gnu.org>
6467 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
6468 correctly for single byte character case.
6469 (w32_per_char_metric): Do not try to make any assumptions about
6470 the metrics of BDF fonts.
6471 (x_estimate_mode_line_height): If `mode-line' face
6472 hasn't a font, use that of the frame, as drawing glyphs does.
6473 (note_mouse_highlight): Change the cursor shape on the vertical
6474 border between windows [not enabled].
6476 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
6478 * w32fns.c (Fx_create_frame): Reintroduce the call to
6479 face-set-after-frame-defaults.
6480 (Vx_window_horizontal_drag_shape): New variable.
6481 (syms_of_xfns): DEFVAR_LISP it.
6482 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
6485 2000-12-02 Simon Josefsson <simon@josefsson.org>
6487 * fns.c (Fmd5): Use a different logic to decide the coding system
6490 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
6492 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
6494 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
6496 2000-12-01 Gerd Moellmann <gerd@gnu.org>
6498 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
6499 height for YNegative.
6500 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
6501 height; also see comment there.
6503 * window.c (coordinates_in_window): Handle computations for
6504 positions on the vertical bar and fringes differently for
6505 window-system frames. Consider some pixels near the vertical bar
6506 as on the bar if the frame doesn't have vertical scroll bars.
6507 Associate positions between mode or header lines with the
6508 right window, the left one.
6510 2000-12-01 Jason Rumney <jasonr@gnu.org>
6512 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
6514 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
6517 2000-12-01 Gerd Moellmann <gerd@gnu.org>
6519 * window.c (struct saved_window): Add members orig_top and orig_height.
6520 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
6521 (save_window_save, Fset_window_configuration): Save/restore
6522 window's orig_top and orig_height.
6524 2000-12-01 Jason Rumney <jasonr@gnu.org>
6526 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
6528 * w32fns.c (x_set_cursor_color): Fix last change.
6530 2000-11-30 Gerd Moellmann <gerd@gnu.org>
6532 * xdisp.c (echo_area_display): If cursor is in the echo area, make
6533 sure that the next redisplay displays the minibuffer, so that
6534 the cursor will be replaced with what the minibuffer wants.
6536 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
6537 #ifndef instead of using #if.
6538 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
6539 USE_TOOLKIT_SCROLL_BARS is defined.
6541 2000-11-30 Jason Rumney <jasonr@gnu.org>
6543 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
6546 2000-11-30 Gerd Moellmann <gerd@gnu.org>
6548 * fns.c (Fmd5): Doc fix.
6550 2000-11-30 Simon Josefsson <simon@josefsson.org>
6552 * fns.c (Fmd5): New function.
6553 (syms_of_fns): Defsubr md5.
6555 * Makefile.in (obj): Add md5.o
6557 2000-11-30 Gerd Moellmann <gerd@gnu.org>
6559 * md5.h, md5.c: New files, taken from glibc.
6561 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
6563 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
6564 hasn't a font, use that of the frame, as drawing glyphs does.
6566 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
6568 * eval.c (Frun_hooks): Allow 0 arguments.
6570 2000-11-29 Gerd Moellmann <gerd@gnu.org>
6572 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
6573 is over the menu bar widget, say it's not on the frame.
6575 * xfns.c (Fx_create_frame): Reintroduce the call to
6576 face-set-after-frame-defaults.
6578 * eval.c (Fsignal): Reset handling_signal.
6580 2000-11-28 Jason Rumney <jasonr@gnu.org>
6582 * w32menu.c (add_menu_item): Reset menu item text when changing
6583 type to radio button.
6585 2000-11-28 Gerd Moellmann <gerd@gnu.org>
6587 * xselect.c: Update copyright.
6589 * window.c (coordinates_in_window): If on a mode or header line,
6590 but sufficiently close to its start, return ``on vertical
6591 border''. This gives us a way to drag windows horizontally when
6592 using toolkit scroll bars.
6594 * xterm.c (note_mouse_highlight): Change the cursor shape
6595 on the vertical border between windows.
6597 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
6599 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
6600 (syms_of_xfns): DEFVAR_LISP it.
6601 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
6603 * textprop.c (text_read_only): New function.
6604 (verify_interval_modification): Use it instead of signaling
6605 `text-read-only'. This makes it easier to catch this error
6608 * xdisp.c (forward_to_next_line_start): Check for newlines,
6609 not end of line, which includes CR.
6611 2000-11-28 Kenichi Handa <handa@etl.go.jp>
6613 * coding.c (Ffind_coding_systems_region_internal): Be sure to
6614 include no-conversion.
6616 2000-11-27 Jason Rumney <jasonr@gnu.org>
6618 * w32fns.c (w32_load_system_font): Always mark font as double byte
6619 if codepage is unicode.
6621 2000-11-27 Gerd Moellmann <gerd@gnu.org>
6623 * xdisp.c (forward_to_next_line_start): If already on a newline,
6624 just consume it to avoid unintended skipping over invisible text below.
6626 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
6627 `vertical-line', `mode-line' and `header-line' events.
6629 * xdisp.c (try_window_id): Avoid starting to display in the middle
6630 of a character, a TAB for instance. This is easier than to set
6631 up the iterator exactly, and it's not a frequent case, so the
6632 additional effort wouldn't really pay off.
6634 2000-11-26 Andrew Choi <akochoi@i-cable.com>
6636 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
6639 2000-11-25 Jason Rumney <jasonr@gnu.org>
6641 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
6642 Args to window_from_coordinates should be pixel coordinates.
6644 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
6645 redisplay handles them properly.
6647 2000-11-25 Miles Bader <miles@gnu.org>
6649 * indent.c (compute_motion): Keep pos_byte in sync with pos.
6651 2000-11-24 Jason Rumney <jasonr@gnu.org>
6653 * w32.c (init_environment): Set LANG environment variable based on
6654 locale settings, if not set.
6656 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
6657 making tool bar smaller. When clearing the frame, also
6658 clear current matrices. Clear frame when tool bar disappears.
6659 Don't use more lines for the tool-bar than is available.
6660 (x_change_window_heights): New function.
6662 2000-11-24 Gerd Moellmann <gerd@gnu.org>
6664 * xdisp.c (init_from_display_pos): If POS says we're already after
6665 an overlay string ending at POS, make sure to pop the iterator
6666 because it will be in front of that overlay string. When POS is
6667 ZV, we've thereby also ``processed'' overlay strings at ZV.
6669 * xfaces.c (lface_from_face_name): Function comment fix.
6671 2000-11-24 Miles Bader <miles@gnu.org>
6673 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
6674 apply `mode-line-inverse-video' -- zero means force display using
6675 the default face, non-zero means display using the specialized face.
6676 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
6678 2000-11-23 Kenichi Handa <handa@etl.go.jp>
6680 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
6683 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
6685 * coding.c (decode_coding_emacs_mule): Fix the case of
6686 CODING_EOL_LF, which used uninitialized value of c.
6688 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
6690 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
6692 2000-11-22 Gerd Moellmann <gerd@gnu.org>
6694 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
6697 * frame.h (struct frame): Replace desired_tool_bar_items,
6698 current_tool_bar_items, n_desired_tool_bar_items,
6699 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
6701 * frame.c (make_frame): Change initialization of tool bar
6704 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
6705 Change references to members deleted from struct frame to use the
6708 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
6709 references to members deleted from struct frame to use the new ones.
6711 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
6713 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
6715 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
6716 (note_tool_bar_highlight): Change references to members deleted
6717 from struct frame to use the new ones.
6719 2000-11-23 Miles Bader <miles@gnu.org>
6721 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
6722 the face's inverse-video attribute, rather than overriding it.
6724 2000-11-22 Gerd Moellmann <gerd@gnu.org>
6726 * xfns.c (x_set_tool_bar_lines): Clear internal border when
6727 making tool bar smaller.
6729 2000-11-22 Dave Love <fx@gnu.org>
6731 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
6733 2000-11-22 Miles Bader <miles@gnu.org>
6735 * keyboard.c (Vminibuffer_message_timeout): New variable.
6736 (command_loop_1): Use it to determine message timeout.
6737 (syms_of_keyboard): Initialize it.
6739 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
6741 2000-11-22 Kenichi Handa <handa@etl.go.jp>
6743 * sysdep.c: Move the code for declaring h_errno after #include
6746 2000-11-21 Gerd Moellmann <gerd@gnu.org>
6748 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
6749 the menu bar when the tooltip is unmapped.
6751 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
6752 sole visible buffer when we're currently in the mini-buffer, and
6755 2000-11-21 Jason Rumney <jasonr@gnu.org>
6757 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
6758 put on the clipboard.
6759 (Fw32_get_clipboard_data): Compare data on clipboard with saved
6760 copy of what Emacs last put there. If they are the same, do not
6761 use the clipboard copy to avoid losing data due to coding conversions.
6763 2000-11-22 Miles Bader <miles@gnu.org>
6765 * minibuf.c (Vminibuffer_prompt_properties): New variable.
6766 (syms_of_minibuf): Initialize it.
6767 (read_minibuf): Add properties from Vminibuffer_prompt_properties
6768 to prompt, don't make read-only.
6770 2000-11-21 Gerd Moellmann <gerd@gnu.org>
6772 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
6773 Add BEFORE/AFTER_POTENTIAL_GC.
6775 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
6777 * buffer.c (mmap_free_1): Avoid a compiler warning.
6779 * term.c, cm.c: Don't try to include termcap.h; see comment there.
6781 2000-11-21 Kenichi Handa <handa@etl.go.jp>
6783 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
6786 2000-11-20 Gerd Moellmann <gerd@gnu.org>
6788 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
6791 * s/gnu-linux.h: Don't use `#cpu'.
6793 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
6794 not defined in mman.h.
6796 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
6797 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
6798 and store an index in the XClientMessageEvent. Storing a
6799 Lisp_Object or pointer can fail on a 64 bit system, since X only
6801 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
6803 2000-11-20 Dave Love <fx@gnu.org>
6805 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
6807 2000-11-20 Gerd Moellmann <gerd@gnu.org>
6809 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
6811 2000-11-20 Kenichi Handa <handa@etl.go.jp>
6813 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
6816 * alloc.c (make_string): Fix previous change. Be sure to make
6817 unibyte string correctly.
6819 2000-11-19 Gerd Moellmann <gerd@gnu.org>
6821 * window.c (Fwindow_list): Change parameter list to be XEmacs
6823 (window_list_1): New function.
6824 (window_loop): Use it instead of Fwindow_list.
6826 * sysdep.c (emacs_ospeed): New variable.
6827 (toplevel): Don't declare ospeed extern.
6828 (init_baud_rate): Use emacs_ospeed instead of ospeed.
6830 * termcap.c (ospeed): Remove.
6831 (tputs) [!emacs]: Remove unused code.
6832 (tgetent): Avoid a compiler warning.
6834 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
6835 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
6836 SCROLL_BAR_X_WIDGET with additional argument DPY.
6838 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
6840 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
6841 Take the X display as additional argument.
6842 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
6843 `Widget' is a pointer type that's not easily stored in Lisp_Object
6844 form in a portable way.
6846 * dispnew.c (update_text_area): Fix last change.
6848 2000-11-18 Gerd Moellmann <gerd@gnu.org>
6850 * xdisp.c: Use BINDING_STACK_SIZE throughout.
6852 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
6853 clear current matrices.
6855 * buffer.c (mmap_enlarge): Don't print a message on stderr
6856 if mapping new memory at the end of the existing region fails.
6858 * dispnew.c (update_text_area): Don't skip over equal glyphs
6859 when the last current glyph overlaps the glyph to its right.
6861 2000-11-18 Miles Bader <miles@gnu.org>
6863 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
6864 lines that *end* with "..." too (that's the most common case!).
6866 2000-11-18 Gerd Moellmann <gerd@gnu.org>
6868 * xdisp.c (resize_mini_window): Temporarily change to the
6869 mini-window's buffer if necessary.
6871 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
6872 the tooltip obscures less text under it.
6874 2000-11-17 Gerd Moellmann <gerd@gnu.org>
6876 * puresize.h (BASE_PURESIZE): Increase to 700000.
6878 2000-11-18 Jason Rumney <jasonr@gnu.org>
6880 * w32term.c (w32_draw_bitmap): Use face to set colors.
6882 2000-11-17 Dave Love <fx@gnu.org>
6884 * lread.c (Fload): Fix #ifdef for pcc.
6886 2000-11-17 Gerd Moellmann <gerd@gnu.org>
6888 * xdisp.c (pos_visible_p): Compute the default character height
6891 2000-11-16 Gerd Moellmann <gerd@gnu.org>
6893 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
6894 knowing the line's height; use the default font's height in that case.
6896 * xfaces.c (weight_table): Add `demi' with the same meaning as
6899 2000-11-16 Kenichi Handa <handa@etl.go.jp>
6901 * dispnew.c (null_row): New global static variable.
6902 (clear_glyph_row): Delete local static variable null_row.
6904 2000-11-15 Jason Rumney <jasonr@gnu.org>
6906 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
6907 (w32_alloc_lighter_color): Use new brightness calculations from
6908 xterm.c. Scale delta to be in the range expected by W32.
6909 (w32_draw_relief_rect): Use frame relief colors.
6911 2000-11-15 Gerd Moellmann <gerd@gnu.org>
6913 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
6914 (Qinhibit_default_face_x_resources): New variable.
6915 (syms_of_frame): Initialize it.
6916 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
6918 * xdisp.c (pos_visible_p): Improve function comment.
6920 * lisp.h (BINDING_STACK_SIZE): New macro.
6922 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
6923 reading the directory if readdir returns null and errno is EAGAIN
6926 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
6928 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
6929 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
6930 Set amount_to_scroll to max of dx and scroll_step so that
6931 scroll-conservatively doesn't defeat scroll-step>1.
6932 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
6933 scroll-conservatively for line-at-a-time scrolling.
6935 2000-11-14 Gerd Moellmann <gerd@gnu.org>
6937 * window.c (Fpos_visible_in_window_p): Call pos_visible with
6940 * xdisp.c (current_mode_line_height, current_header_line_height):
6942 (init_xdisp): Initialize them.
6943 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
6944 and use exact mode line heights if it is set.
6946 * lisp.h (pos_visible_p): Change prototype.
6948 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
6949 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
6950 and current_header_line_height first.
6951 (current_mode_line_height, current_header_line_height):
6954 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
6956 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
6957 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
6958 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
6960 2000-11-14 Miles Bader <miles@gnu.org>
6962 * xterm.c (x_alloc_lighter_color): Include an additive component
6963 too for dark colors, because FACTOR isn't enough.
6964 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
6967 2000-11-13 Gerd Moellmann <gerd@gnu.org>
6969 * keyboard.c (show_help_echo): Call message3_nolog with number of
6970 bytes in the help string as 2nd parameter, instead of the number
6973 2000-11-13 Miles Bader <miles@gnu.org>
6975 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
6976 (Fload): Use new openp return protocol.
6977 Don't try to use Vload_source_file_function to load .elc files.
6978 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
6979 openp return protocol.
6980 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
6982 2000-11-11 Kenichi Handa <handa@etl.go.jp>
6984 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
6986 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
6987 Defined these macros.
6988 (NLIST_STRUCT): Avoid re-defining it.
6990 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
6991 -I/usr/contrib/X11R6/include.
6992 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
6994 2000-11-10 Jason Rumney <jasonr@gnu.org>
6996 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
6998 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
6999 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
7001 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
7002 (Qw32_charset_vietnamese): New symbol.
7003 (xlfd_charset_of_font): New function.
7004 (w32_load_system_font): Use it.
7005 (x_to_w32_charset): Use Fassoc to find charset info. Special case
7006 when Vw32_charset_info_alist is nil to ensure default face always
7007 has font. Use Fcar and Fcdr for safety.
7008 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
7009 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
7010 pseudo-codepages for special cases.
7011 (w32_to_x_font): New parameter to allow charset portion to be
7012 specified where there is many to one mapping. Callers changed.
7013 (w32_list_fonts): Avoid listing fonts that won't display.
7015 2000-11-10 Gerd Moellmann <gerd@gnu.org>
7017 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
7018 (font_list_1): Renamed from font_list.
7019 (font_list): New function, trying alternative registries from
7020 Vface_alternative_font_registry_alist.
7021 (Finternal_set_alternative_font_registry_alist): New function.
7022 (syms_of_xfaces): Initialize and Staticpro
7023 Vface_alternative_font_registry_alist.
7024 Defsubr Finternal_set_alternative_font_registry_alist.
7026 2000-11-09 Ken Raeburn <raeburn@gnu.org>
7028 * lisp.h (Flooking_at): Declare.
7030 2000-11-09 Gerd Moellmann <gerd@gnu.org>
7032 * dired.c (directory_files_internal): Fix a braino.
7034 * dired.c (directory_files_internal): Add missing GCPRO's.
7037 2000-11-08 Gerd Moellmann <gerd@gnu.org>
7039 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
7040 (resize_mini_window): Return quickly if Vresize_mini_window is
7041 nil. Don't return if Vmax_mini_window_height is nil.
7043 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
7044 (syms_of_xdisp): Initialize them.
7045 (resize_mini_window): Act according to the setting of
7046 Vresize_mini_window.
7047 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
7049 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
7050 scroll bar widget after configuring it, so that it will appear at
7051 the right position from the start.
7052 (XTredeem_scroll_bar): Cleaned up.
7054 2000-11-08 Kenichi Handa <handa@etl.go.jp>
7056 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
7057 font is taller than the frame line, we don't have to bias the
7060 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
7062 2000-11-07 Dave Love <fx@gnu.org>
7064 * config.in (HAVE_MKSTEMP): Add.
7066 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
7068 2000-11-07 Gerd Moellmann <gerd@gnu.org>
7070 * window.c (Fset_window_configuration): Don't try to preserve
7071 point in the current buffer, if that buffer is displayed in more
7074 * xfaces.c (lookup_named_face): If default face isn't realized,
7075 try to realize it. Return -1 if not successful.
7076 (Fx_list_fonts): Handle case that face cannot be determined.
7077 (Fface_font): Likewise.
7079 2000-11-06 Gerd Moellmann <gerd@gnu.org>
7081 * window.c (displayed_window_lines): Detect partially
7082 visible lines at the bottom correctly.
7084 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
7086 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
7087 when ensuring we don't do visit in indirect buffer.
7089 2000-11-06 Kenichi Handa <handa@etl.go.jp>
7091 * composite.h (compose_chars_in_text): Add prototype.
7093 * composite.c (Vcomposition_function_table): New variable.
7094 (Qcomposition_function_table): New variable.
7095 (run_composition_function): Call
7096 Vcompose_chars_after_function with three arguments.
7097 (compose_chars_in_text): New function.
7098 (syms_of_composite): Modified the doc-string of
7099 Vcompose_chars_after_function. Declare composition-function-table
7100 as a lisp variable, and initialize it.
7102 * xfns.c (x_encode_text): Suppress producing escape sequences for
7105 * xselect.c: Include composite.h.
7106 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
7108 2000-11-05 Andrew Innes <andrewi@gnu.org>
7110 * w32term.c (x_produce_glyphs): Fix typo in enum name.
7112 * sysdep.c (read_input_waiting): Remove extraneous argument to
7115 * w32fns.c (Fx_server_version): Include w32_build_number in the
7118 * w32heap.c (w32_build_number): New variable.
7119 (cache_system_info): Set it.
7121 * w32heap.h (w32_build_number): Add extern.
7123 * emacs.c (syms_of_emacs): Update docstring for
7124 system-configuration, to reflect the actual usage on MS-Windows.
7126 2000-10-31 Gerd Moellmann <gerd@gnu.org>
7128 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
7129 process idle timers while waiting for another event.
7131 * dispnew.c (update_frame_line): Handle case where spaces in
7132 the default face are colored.
7134 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
7135 window height hasn't changed.
7137 2000-10-31 Jason Rumney <jasonr@gnu.org>
7139 * w32term.c (x_produce_glyphs): Handle composite characters.
7140 (x_draw_glyph_string_foreground)
7141 (x_draw_composite_glyph_string_foreground): Restore old font.
7143 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
7145 * minibuf.c (read_minibuf): Reset the undo history just before
7146 starting the recursive-edit.
7148 2000-10-30 Gerd Moellmann <gerd@gnu.org>
7150 * xfaces.c (menu_face_change_count): New variable.
7151 (Finternal_set_lisp_face_attribute): Increment it for changes
7153 (realize_basic_faces): Reflect changes in the `menu' faces
7156 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
7157 dy obtained from the iterator's y-position after moving from
7158 scroll_margin_pos to PT; see comment there.
7160 * xdisp.c (safe_eval_handler): Call add_to_log.
7162 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
7163 is not a symbol or string.
7165 * xdisp.c (echo_area_display): Don't perform a display update from
7166 inside redisplay. The update will happen anyway at the end of
7167 redisplay, and it can confuse redisplay (GC messages while
7168 redisplaying, for instance.)
7170 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
7172 * xrdb.c (x_load_resources): Use the class name in the defaults.
7174 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
7175 (regex_compile): Catch bogus \(\1\).
7177 2000-10-30 Gerd Moellmann <gerd@gnu.org>
7179 * xterm.c (x_alloc_nearest_color): Fix last change to compare
7182 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
7183 we have a color cache, check that the cached color equals the
7184 allocated color. If not, clear the color cache.
7186 * window.c (displayed_window_lines): Change buffers if necessary.
7187 Fix computation of displayed lines.
7189 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
7190 update_menu_bindings to DEFVAR_BOOL.
7192 2000-10-30 Kenichi Handa <handa@etl.go.jp>
7194 * search.c (Fset_match_data): Be sure to make search_regs always sane.
7196 * puresize.h (BASE_PURESIZE): Increase to 680000.
7198 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
7200 2000-10-29 Jason Rumney <jasonr@gnu.org>
7202 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
7204 * w32term.c (w32_bdf_per_char_metric): Negate descent.
7205 (w32_cache_char_metrics): Handle possibility that 'x' does not
7206 exist in a BDF font.
7207 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
7209 * w32bdf.h (bdffont): Add nchars.
7211 * w32bdf.c (set_bdf_font_info): Set it.
7212 (w32_BDF_TextOut): Swap byte order of double byte characters.
7213 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
7215 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
7217 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
7218 don't override the colors in frame's param_alist, unless they are
7221 * term.c (reassert_line_highlight): If inverse_video is non-zero,
7222 reverse the effect of the highlight flag.
7224 2000-10-27 Ken Raeburn <raeburn@gnu.org>
7226 * window.h (Fwindow_live_p): Declare.
7228 * undo.c (record_delete): Check that last_undo_buffer is really a
7229 buffer before applying XBUFFER to it.
7231 * keymap.c (where_is_internal): Pass lisp object, not integer, to
7234 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7236 * lisp.h (KEYMAPP): New macro.
7237 (get_keymap): Remove.
7238 (get_keymap_1): Rename get_keymap.
7240 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
7242 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
7244 * xmenu.c (single_submenu): Use KEYMAPP.
7245 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7246 Use KEYMAPP rather than Fkeymapp.
7248 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
7250 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
7251 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7252 Use KEYMAPP rather than Fkeymapp.
7253 (single_submenu): Use KEYMAPP.
7254 (w32_menu_show, w32_dialog_show): Use TRUE.
7256 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
7258 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
7259 (Fkeymapp): Use KEYMAPP.
7260 (get_keymap): Rename from get_keymap_1. Remove old def.
7261 Return t when autoload=0 and error=0 and the keymap needs autoloading.
7262 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
7263 (Fminor_mode_key_binding): Don't raise an error if the binding
7265 (Fuse_global_map, Fuse_local_map): Allow autoloading.
7266 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
7268 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
7269 Allow Vspecial_event_map to be autoloaded.
7270 (menu_bar_items): Fetch the keymap rather than using keymapp.
7271 (menu_bar_one_keymap): No need to follow func-indirect any more.
7272 (parse_menu_item): get_keymap_1 -> get_keymap.
7273 (tool_bar_items): Fetch the keymap rather than using keymapp.
7274 (read_key_sequence): Use KEYMAPP.
7276 * intervals.c (get_local_map): Use get_keymap rather than following
7277 function-indirections explicitly.
7279 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
7281 2000-10-27 Jason Rumney <jasonr@gnu.org>
7283 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
7284 point, as Windows has oversized fonts.
7286 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
7288 2000-10-27 Gerd Moellmann <gerd@gnu.org>
7290 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
7291 (freehook, reallochook): Handle null pointer arguments.
7292 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
7294 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7296 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
7297 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
7298 Giving in to popular pressure to shut up the compiler with casts.
7300 2000-10-27 Gerd Moellmann <gerd@gnu.org>
7302 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
7303 signed value, and use a default value computed from the font's
7306 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
7308 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
7309 that specify a negative underline position can still use underlines.
7311 * window.c (Fpos_visible_in_window_p): Make POS default to
7312 WINDOW's point, not the current buffer's point.
7314 2000-10-26 Dave Love <fx@gnu.org>
7316 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
7317 when it's necessary.
7319 2000-10-26 Gerd Moellmann <gerd@gnu.org>
7321 * window.c (size_window): Compute size difference from sum of old
7322 child window sizes instead of from parent's size.
7324 * xdisp.c (pos_visible_p): Change current buffer if necessary.
7325 Handle obscured lines at the top of the window.
7327 * frame.c (Fdelete_frame): Doc fix. Move running the hook
7328 down after the last error condition check.
7330 * frame.c (Fdelete_frame): Run delete-frame-hook.
7332 2000-10-26 Kenichi Handa <handa@etl.go.jp>
7334 * coding.c (decode_coding): Fix previous change (check also
7335 CODING_MODE_LAST_BLOCK).
7337 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7339 * regex.c: More `unsigned char' -> `re_char' changes.
7340 Also change several `int' into `re_wchar_t'.
7341 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
7342 (PUSH_FAILURE_POINTER): Don't cast any more.
7343 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
7344 We want GCC to complain, since this piece of code makes
7345 re_match non-reentrant, which *should* be fixed.
7346 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
7347 (EXTEND_BUFFER): Use RETALLOC.
7348 (SET_LIST_BIT): Don't cast.
7349 (re_wchar_t): New type.
7350 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
7351 that those two functions will always properly return.
7352 (IMMEDIATE_QUIT_CHECK): Cast to void.
7353 (analyse_first): Use recursion rather than an explicit stack.
7354 (re_compile_fastmap): Can't fail anymore.
7355 (re_search_2): Don't check re_compile_fastmap for failure.
7356 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
7357 Now also sets the new value (passed in a new argument).
7358 (re_match_2_internal): Use it.
7359 Also, use a new var `reg' of type size_t when looping through regs
7360 rather than reuse the inappropriate `mcnt'.
7362 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
7363 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
7364 (where_is_internal): Renamed from Fwhere_is_internal.
7365 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
7366 (Fwhere_is_internal): New function wrapping where_is_internal.
7367 (where_is_internal_1): Handle the case where we're filling the cache.
7368 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
7370 2000-10-25 Miles Bader <miles@gnu.org>
7372 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
7374 2000-10-25 Gerd Moellmann <gerd@gnu.org>
7376 * window.c (pos_fully_visible_p): Removed.
7377 (Fpos_visible_in_window_p): Use pos_visible_p to determine
7378 if position is visible and/or fully visible.
7380 * lisp.h (pos_visible_p): Add prototype.
7382 * xdisp.c (pos_visible_p): New function.
7384 2000-10-25 Kenichi Handa <handa@etl.go.jp>
7386 * process.c (send_process): If OBJECT is t, it means that the data
7387 is from C string, but we should encode it. Before calling
7388 setup_raw_text_coding_system, be sure to flush out data by the
7389 previous coding system.
7391 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
7393 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
7394 assignment of startpos to prev when startpos == pos.
7396 * editfns.c (find_field): Set the field stickiness correctly from
7397 overlay fields. Use renamed `text_property_stickiness'.
7398 (text_property_stickiness): Renamed from `char_property_stickiness'.
7399 Only check text properties, not overlays.
7400 * textprop.c (get_char_property_and_overlay): New function.
7401 (Fget_char_property): Use it.
7402 * intervals.h (get_char_property_and_overlay): Add declaration.
7404 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7406 * keymap.c: Use AREF, ASET and ASIZE macros.
7407 (Fmake_sparse_keymap): Docstring fix.
7409 (shadow_lookup): Move up.
7410 Handle the case where lookup-key returns an integer.
7411 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
7412 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
7413 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
7414 Simplify/rewrite the keymap-finding code.
7415 Add check for command shadowing, using shadow_lookup.
7417 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
7419 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
7420 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
7423 2000-10-24 Andrew Innes <andrewi@gnu.org>
7425 * dired.c (directory_files_internal_unwind): New function.
7426 (directory_files_internal): Use it to ensure closedir is called
7427 even if expand-file-name or file-attributes throw, eg. because of
7428 a user interrupt. Also enable immediate_quit while calling
7429 re_search, so that matching can be interrupted as well.
7431 2000-10-24 Andrew Innes <andrewi@gnu.org>
7433 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
7435 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
7436 so that re_search functions only quit when callers expect them to.
7438 2000-10-24 Kenichi Handa <handa@etl.go.jp>
7440 * regex.c (regex_compile): Change the way of handling a range from
7441 a char less than 256 to a char not less than 256.
7443 2000-10-24 Gerd Moellmann <gerd@gnu.org>
7445 * window.c (size_window): Prevent setting window's width or
7446 height to a negative value (esp. with XSETFASTINT).
7448 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
7449 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
7450 (protect_malloc_state) [GC_MALLOC_CHECK &&
7451 GC_PROTECT_MALLOC_STATE]: New function.
7452 (PROTECT_MALLOC_STATE): New macro.
7453 (__malloc_initialize, morecore, _malloc_internal)
7454 (_free_internal) _realloc_internal): Use it to make _heapinfo
7455 read-only outside of gmalloc.
7457 * keymap.c: Update copyright.
7459 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
7462 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
7464 * filelock.c (unlock_all_files): Use unlock_file to expand each
7465 buffer's file_truename before trying remove its lock file.
7467 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
7469 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
7470 or CRLF, decode EOLs.
7472 2000-10-24 Kenichi Handa <handa@etl.go.jp>
7474 * window.c (Fdisplay_buffer): Fix doc.
7476 2000-10-23 Jason Rumney <jasonr@gnu.org>
7478 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
7479 ASCII font of default fontset on Windows.
7481 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
7482 xterm.c comment below).
7484 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
7486 2000-10-23 Gerd Moellmann <gerd@gnu.org>
7488 * xterm.c (x_connection_closed): Reset handling_signal.
7490 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
7492 2000-10-23 Miles Bader <miles@gnu.org>
7494 * window.c (window_scroll_pixel_based, window_scroll_line_based):
7495 Pass nil for FULLY argument to Fpos_visible_in_window_p to
7496 maintain old behavior.
7497 * minibuf.c (Fminibuffer_complete): Likewise.
7499 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
7501 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
7502 that when a font can't be exactly centered, it errs up rather than
7505 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
7507 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
7509 2000-10-23 Andrew Choi <akochoi@i-cable.com>
7511 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
7513 * dispnew.c [macintosh]: Include macterm.h.
7514 (init_display) [macintosh]: Initialization for window system.
7516 * emacs.c (main) [macintosh]: Call syms_of_textprop,
7517 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
7518 syms_of_search, x_term_init, and init_keyboard before calling
7519 init_window_once. Also, call syms_of_xmenu.
7521 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
7522 default fontset to Monaco.
7524 * frame.c [macintosh]: Include macterm.h. Remove declarations of
7525 NewMacWindow and DisposeMacWindow.
7526 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
7527 instead of calling NewMacWindow and setting fields of
7528 f->output_data.mac directly. Call init_frame_faces.
7529 (Fdelete_frame) [macintosh]: Remove unused code.
7530 (Fmodify_frame_parameters) [macintosh]: Call
7531 x_set_frame_parameters instead of mac_set_frame_parameters.
7533 * frame.h [macintosh]: Define menu_bar_lines field in struct
7534 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
7536 * keyboard.c [macintosh]: Include macterm.h.
7537 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
7538 and menu_bar_activate_event type events as for X and NT.
7539 (make_lispy_event) [macintosh]: Construct lisp events of type
7540 MENU_BAR_EVENT as for X and NT.
7542 * sysdep.c [macintosh]: Remove declaration for sys_signal.
7543 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
7544 (sys_subshell) [macintosh]: Remove definition entirely.
7545 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
7546 Vwindow_system_version here. Remove initialization of
7547 Vx_bitmap_file_path.
7548 (read_input_waiting): Correct the number of parameters passed to
7550 Move all Macintosh functions to mac/mac.c.
7552 * term.c [macintosh]: Include macterm.h.
7554 * window.c [macintosh]: Include macterm.h.
7556 * xdisp.c [macintosh]: Include macterm.h. Declare
7557 set_frame_menubar and pending_menu_activation.
7558 (echo_area_display) [macintosh]: Do not return if terminal frame
7559 is the selected frame.
7560 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
7561 Allow only the selected frame to set menu bar.
7562 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
7563 calling FRAME_EXTERNAL_MENU_BAR (f).
7564 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
7566 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
7567 and check_x. Declare XCreateGC. Define x_create_gc and
7568 x_free_gc. Initialize font_sort_order.
7569 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
7570 but call x_list_fonts instead of w32_list_fonts.
7571 (Finternal_face_x_get_resource) [macintosh]: Do not call
7572 display_x_get_resource.
7573 (prepare_face_for_display) [macintosh]: Set xgcv.font.
7574 (realize_x_face) [macintosh]: Load the font if it is specified in
7576 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
7578 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
7580 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
7581 is nil: since we go to the end of submap anyway, we'd end up
7583 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
7584 doesn't obey autoload.
7586 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7588 * msdos.c (dos_set_window_size): Update screen dimension variables.
7590 2000-10-21 Jason Rumney <jasonr@gnu.org>
7592 * w32term.c (w32_cache_char_metrics): Double check that font is
7593 really fixed pitch before trusting tmPitchAndFamily.
7595 2000-10-21 Andrew Innes <andrewi@gnu.org>
7597 * w32gui.h (w32_char_font_type): Move enum from w32term.c
7599 * w32term.h: Extern decl for w32_cache_char_metrics.
7601 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
7603 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
7604 (w32_unload_font): Free per_char array if present.
7606 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
7607 cached information in emulated XFontStruct to handle common cases
7608 quickly. Do not allocate XCharStruct for return.
7609 (w32_native_per_char_metric): New function.
7610 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
7612 (x_produce_glyphs): Don't get an HDC. Change calls to
7613 w32_per_char_metric to match arg change above. Remove calls to
7615 (w32_get_glyph_overhangs): Ditto.
7616 (w32_cache_char_metrics): New function.
7618 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
7619 ($(BLD)/casefiddle.$(O)): Remove compile command.
7620 ($(BLD)/gmalloc.$(O)): Remove compile command.
7621 ($(BLD)/dispnew.obj):
7622 ($(BLD)/keyboard.obj):
7623 ($(BLD)/w32inevt.obj):
7624 ($(BLD)/w32bdf.obj):
7626 ($(BLD)/buffer.obj):
7627 ($(BLD)/editfns.obj):
7629 ($(BLD)/fileio.obj):
7631 ($(BLD)/indent.obj):
7632 ($(BLD)/insdel.obj):
7633 ($(BLD)/intervals.obj):
7634 ($(BLD)/minibuf.obj):
7636 ($(BLD)/scroll.obj):
7637 ($(BLD)/sysdep.obj):
7638 ($(BLD)/textprop.obj):
7639 ($(BLD)/widget.obj):
7640 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
7641 ($(BLD)/term.obj): Add dependency on dispextern.h.
7643 * makefile.nt ($(BLD)\dispnew.obj):
7644 ($(BLD)\keyboard.obj):
7645 ($(BLD)\w32inevt.obj):
7646 ($(BLD)\w32bdf.obj):
7648 ($(BLD)\buffer.obj):
7649 ($(BLD)\editfns.obj):
7651 ($(BLD)\fileio.obj):
7653 ($(BLD)\indent.obj):
7654 ($(BLD)\insdel.obj):
7655 ($(BLD)\intervals.obj):
7656 ($(BLD)\minibuf.obj):
7658 ($(BLD)\scroll.obj):
7659 ($(BLD)\sysdep.obj):
7660 ($(BLD)\textprop.obj):
7661 ($(BLD)\widget.obj):
7662 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
7663 ($(BLD)\term.obj): Add dependency on dispextern.h
7665 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7667 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
7668 with an additional argument of Qt.
7670 2000-10-21 Miles Bader <miles@gnu.org>
7672 * window.c (pos_fully_visible_in_window_p): New function.
7673 (Fpos_visible_in_window_p): Add FULLY argument.
7674 Use pos_fully_visible_in_window_p.
7675 (window_scroll_pixel_based, window_scroll_line_based): Update
7676 calls to Fpos_visible_in_window_p.
7677 * lisp.h (Fpos_visible_in_window_p): Update prototype
7679 2000-10-20 Gerd Moellmann <gerd@gnu.org>
7681 * alloc.c (toplevel): Conditionalize compilation of mem_*
7682 functions differently.
7684 2000-10-20 Jason Rumney <jasonr@gnu.org>
7686 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
7687 mem_init where it used to be. mem_z etc not defined otherwise.
7689 2000-10-20 Gerd Moellmann <gerd@gnu.org>
7691 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
7693 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
7694 structure definition and related variabled to the top of the file.
7695 Include this code when GC_MALLOC_CHECK is defined.
7696 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
7697 register/unregister allocated region.
7698 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
7699 which isn't allocated.
7700 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
7701 something which is already in use.
7702 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
7703 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
7704 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
7705 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
7707 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
7708 _malloc_internal instead of malloc.
7709 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
7712 2000-10-20 Andrew Innes <andrewi@gnu.org>
7714 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
7716 (my_strftime) <macro>: Don't use macro arg list when redefining as
7718 (my_strftime) <function>: Supply 0 as ut argument.
7720 2000-10-19 Jason Rumney <jasonr@altavista.net>
7722 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
7723 including dispextern.h, as it stops faces from working.
7725 * w32fns.c (Fx_create_frame): Don't bother calling
7726 face-set-after-frame-default since the caller does it for us
7727 anyway. Clean up calls to x_get_arg to be consistent with X.
7729 * w32term.c (x_produce_glyphs): Handle
7730 unibyte_display_via_language_environment correctly.
7731 (w32_draw_box_rect): Fix the calculation of width and height.
7733 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
7734 as it has stopped working.
7735 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
7738 2000-10-19 Gerd Moellmann <gerd@gnu.org>
7740 * eval.c (skip_debugger): Prevent a compiler warning.
7741 (Fcondition_case): Likewise.
7742 (Fbacktrace_frame): Use a null interactive spec.
7744 2000-10-19 Kenichi Handa <handa@etl.go.jp>
7746 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
7748 2000-10-18 Gerd Moellmann <gerd@gnu.org>
7750 * strftime.c: Sync with glibc, file version 1.78.
7751 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
7752 should no longer be used according to ISO 8601.
7754 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
7755 no map for meta_prefix_char, don't try to use it as a keymap.
7756 Instead, if T_OK is non-zero, look up a default binding, if any,
7757 otherwise, if T_OK is zero, return nil.
7759 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
7760 (x_to_xcolors, png_load): Use x_query_color.
7762 * xterm.c (x_color_cells, x_query_colors, x_query_color):
7764 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
7766 (x_copy_color, x_alloc_lighter_color): Likewise.
7768 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
7769 (x_query_color, x_query_colors): Add prototype.
7771 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
7772 check_string_bytes only if not noninteractive, increase count to 50.
7774 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
7776 * insdel.c (adjust_markers_for_delete): Handle before-insertion
7779 2000-10-17 Gerd Moellmann <gerd@gnu.org>
7781 * alloc.c (pure_bytes_used): Renamed from pureptr.
7783 (pure_alloc): New function.
7784 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
7786 (Fpurecopy): Use PURE_POINTER_P.
7788 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
7789 PT has moved backward.
7791 * xdisp.c (cursor_row_p): Take continued lines into account.
7793 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
7795 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
7796 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
7797 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
7800 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
7801 of selective display off while searching for the next line start.
7803 2000-10-17 Kenichi Handa <handa@etl.go.jp>
7805 * Makefile.in (term.o): Depend on dispextern.h.
7807 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
7809 * keymap.c (keymap_memberp): Ensure that nil is not a member.
7811 2000-10-16 Gerd Moellmann <gerd@gnu.org>
7813 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
7814 the iterator at the beginning, so that they can be set later on,
7815 for instance in reseat_at_next_visible_line_start, without being
7818 * xfns.c (pbm_format): Add :foreground and :background keywords.
7819 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
7820 (xbm_load): Recognize foreground and background color specifications.
7822 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
7824 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
7826 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
7828 * msdos.c (IT_set_face): Compare highlighted face with the default
7829 face, and invert colors if these faces' colors are identical.
7830 (Fmsdos_remember_default_colors): Don't swap foreground and
7831 background colors in initial_colors[].
7832 (IT_set_frame_parameters): Don't swap frame's foreground and
7833 background pixels. If ALIST includes "(reverse . t)", swap
7834 foreground-color and background-color properties in frame's
7835 param_alist. If the original frame's param_alist doesn't specify
7836 the colors, store unspecified-fg and unspecified-bg, reversed if
7839 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
7840 the colors are unspecified and reversed, reverse fore- and back-
7841 ground in the returned value.
7842 (Fframe_parameter): Ditto.
7844 2000-10-16 Gerd Moellmann <gerd@gnu.org>
7846 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
7847 get_last_unchanged_at_beg_row.
7848 (find_first_unchanged_at_end_row): Renamed from
7849 get_first_unchanged_at_end_row.
7850 (find_first_unchanged_at_end_row): Convert assertions to
7851 unconditional tests which abort. When looking for a row in
7852 unchanged text, don't go further back than first_text_row.
7854 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
7855 Don't add in the last line's height when deciding if the new
7856 position is below the scroll margin.
7858 2000-10-16 Miles Bader <miles@gnu.org>
7860 * editfns.c (Fconstrain_to_field): Check carefully for field
7861 boundaries if either OLD_POS or NEW_POS has a non-nil field
7862 property, even if they're the same.
7864 2000-10-16 Kenichi Handa <handa@etl.go.jp>
7866 * xterm.c (x_draw_box_rect): Fix the calculation of width and
7867 height for XFillRectangle.
7869 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
7871 * syntax.c (Fstring_to_syntax): New function extracted from
7872 Fmodify_syntax_entry.
7873 (Fmodify_syntax_entry): Use it and document the ! and | fences.
7874 (skip_chars, Fforward_comment): Remove unused variables.
7875 (syms_of_syntax): Add defsubr for string-to-syntax.
7876 (describe_syntax): Add code for comment and string fences.
7878 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
7880 * keymap.c (access_keymap): Add AUTOLOAD parameter.
7881 Do the meta->esc mapping. Call get_keyelt before returning.
7882 Start scanning from the second element (the first is always `keymap')
7883 to make it easier to detect when we reach a parent map.
7884 Handle the case of inheriting from a symbol whose function is a map.
7885 (Fkeymap_parent): Also handle the `inherit from symbol' case.
7886 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
7887 (get_keyelt, Flookup_key): Update call to access_keymap.
7888 Remove the meta->esc mappings.
7889 (define_as_prefix): Delete old disabled code.
7890 (menu_item_p): New function.
7891 (where_is_internal_1): Skip over the few remaining menu items.
7892 * lisp.h (access_keymap): Update prototype.
7893 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
7894 Update call to access_keymap.
7895 (follow_key, read_key_sequence): Update calls to access_keymap.
7896 Remove the meta->esc mappings.
7898 2000-10-13 Gerd Moellmann <gerd@gnu.org>
7900 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
7901 with additional argument.
7903 * xdisp.c (cursor_row_p): New function.
7904 (try_cursor_movement, display_line): Use it.
7906 * xdisp.c (append_space): Also save/restore iterator's current
7907 character and its length.
7909 * xdisp.c (init_from_display_pos): Add an assertion.
7910 (handle_stop): Don't set iterator's add_overlay_start.
7911 (handle_invisible_prop): Likewise.
7912 (load_overlay_strings): If text under an overlay is invisible,
7913 take both before- and after-strings into account when the iterator
7914 is positioned either at the start or at the end of the overlay.
7915 (forward_to_next_line_start): Rewritten.
7916 (reseat_at_next_visible_line_start): Rewritten.
7917 (set_iterator_to_next): Add parameter RESEAT_P.
7919 * dispextern.h (struct it): Remove member add_overlay_start.
7920 (set_iterator_to_next): Change prototype.
7922 2000-10-13 Kenichi Handa <handa@etl.go.jp>
7924 * coding.c (code_convert_region): Be sure to initialize
7925 coding->category_idx.
7926 (decode_coding_string): Set coding->src_multibyte and
7927 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
7928 (encode_coding_string): Set coding->src_multibyte and
7929 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
7931 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
7933 * xfns.c (Fx_create_frame): Don't bother calling
7934 face-set-after-frame-default since the caller does it for us anyway.
7936 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
7938 * window.c (coordinates_in_window): Fix detection of vertical line
7939 on character terminals.
7941 2000-10-12 Gerd Moellmann <gerd@gnu.org>
7943 * editfns.c (save_excursion_save): Additionally record the
7945 (save_excursion_restore): If buffer was visible in a window, and a
7946 different window was selected, and the old selected window is
7947 still live, restore point in that window.
7949 2000-10-12 Kenichi Handa <handa@etl.go.jp>
7951 * xterm.c (x_produce_glyphs): Handle
7952 unibyte_display_via_language_environment correctly.
7954 * regex.c (regex_compile): Change the way of handling a range from
7955 unibyte char to multibyte char.
7957 * syntax.c (skip_chars): Change the way of handling a range from
7958 unibyte char to multibyte char.
7960 * process.c (read_process_output): Cancel previous change.
7962 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
7964 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
7966 * charset.c (Ffind_charset_string): Doc fix.
7967 (Ffind_charset_region): Doc fix.
7969 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
7971 * process.c (read_process_output): Fix previous change. Adjust
7972 multibyteness of text to insert in a buffer by
7973 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
7975 2000-10-10 Andreas Schwab <schwab@suse.de>
7977 * alloc.c (mark_object): Remove all workarounds installed on
7980 2000-10-10 Kenichi Handa <handa@etl.go.jp>
7982 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
7983 (base64_encode_1): Make it work for a text of multibyte form.
7984 (Fbase64_decode_region): Allocate sufficient memory for multibyte
7985 case. Don't call str_to_multibyte because base64_decode_1
7986 produces correct multibyte form for eight-bit codes.
7987 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
7988 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
7989 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
7992 * charset.h (CHAR_STRING): Optimized for single byte characters.
7994 2000-10-09 Andreas Schwab <schwab@suse.de>
7996 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
7997 -1 after socket is closed, to fall through to error processing.
7999 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
8001 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
8002 variables. If ALIST includes foreground-color or
8003 background-color, change also the colors of the default face for
8006 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
8008 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
8009 them extern (they are defined on xfaces.c).
8010 (syms_of_msdos): Don't intern and don't staticpro
8011 Qbackground_color and Qforeground_color.
8013 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
8015 * frame.c (Fframe_parameter): For non-windowed frames, if
8016 f->param_alist says foreground or background color is unspecified,
8017 call tty_color_name to return the color name computed from the
8018 frame's current colors.
8020 2000-10-06 Dave Love <fx@gnu.org>
8022 * terminfo.c (ospeed): Don't declare.
8024 * sysdep.c: Don't include string.h.
8025 (h_errno): Declare conditional also on TRY_AGAIN.
8027 * charset.c (Ffind_charset_string): Doc fix.
8029 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
8030 (Fbase64_decode_region, Fbase64_decode_string): More explicit
8033 2000-10-05 Dave Love <fx@gnu.org>
8035 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
8036 position like menu-bar.
8038 2000-10-05 Gerd Moellmann <gerd@gnu.org>
8040 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
8042 * xdisp.c (handle_single_display_prop): Use safe_call1.
8043 (safe_call): Renamed from call_function.
8044 (safe_call1): New function.
8045 (handle_fontified_prop): Use safe_call1 instead of call1.
8046 (safe_eval): Renamed from eval_form.
8047 (safe_eval_handler): Renamed from eval_handler.
8048 (handle_single_display_prop, display_mode_element): Use safe_eval
8049 instead of eval_form.
8051 * xfaces.c (merge_face_heights): Use safe_call instead of
8054 * keyboard.c (show_help_echo): Use safe_call instead of
8055 call_function; use safe_eval instead of eval_form.
8057 * lisp.h (safe_call): Renamed from call_function.
8058 (safe_eval): Renamed from eval_form.
8059 (safe_call1): Add prototype.
8061 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
8063 * xfns.c (image_ascent): Rearrange ascent calculation for the
8066 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
8068 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
8069 (where_is_internal_1): Don't bother ignoring menu-items any more.
8071 2000-10-04 Gerd Moellmann <gerd@gnu.org>
8073 * keyboard.c (update_menu_bindings): New variable.
8074 (parse_menu_item): Use AREF. If update_menu_bindings
8075 is 0, don't update menu bindings.
8076 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
8078 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
8080 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
8083 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
8085 * syntax.c (forw_comment): Match nestedness of ender/starter.
8086 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
8087 (prev_char_comstart_first): Remove.
8088 (back_comment): Check two-char comment markers more carefully
8089 to better handle overlapping cases like *//* or /* */* */ ...
8090 Match nestedness of ender/starter.
8092 2000-10-02 Dave Love <fx@gnu.org>
8094 * config.in (HAVE_GAI_STRERROR): Add undef.
8096 * process.c (Fopen_network_stream): Use it.
8098 * m/alpha.h (NO_REMAP): Don't define.
8100 2000-10-02 Gerd Moellmann <gerd@gnu.org>
8102 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
8103 return with a string converted to an integer or vice versa when
8104 Vmocklisp_arguments is t.
8105 (Fsignal): Likewise. The function can return for `quit'.
8106 (struct gcpro): Declare member `var' to point to a volatile
8109 * eval.c (error): Prevent compiler warning.
8111 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
8113 * keymap.c (keymap_memberp): New function.
8114 (Fset_keymap_parent): Use it.
8115 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
8116 Use keymap_memberp to avoid creating cycles.
8117 (access_keymap): Use KEYMAPP.
8119 2000-09-30 Gerd Moellmann <gerd@gnu.org>
8121 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
8122 gai_strerror. Make sure xerrno is set if connect fails. Improve
8125 2000-09-29 Jason Rumney <jasonr@gnu.org>
8127 * w32term.c (w32_char_font_type, w32_encode_char)
8128 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
8129 (w32_bdf_per_char_metric): New function.
8130 (w32_per_char_metric): Use it.
8131 (x_draw_glyph_string_background): Always draw background for BDF
8134 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
8135 GDI object which is a scarce resource.
8137 * w32bdf.c (search_file_line): Fix skipping of whitespace.
8138 (get_quoted_string): Fix limit on memchr search.
8139 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
8140 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
8141 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
8142 (get_cached_font_char, cache_char_offset): Use macro
8143 BDF_CODEPOINT_RANGE_COVER_P.
8144 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
8145 (clear_cached_bitmap_slots): New function.
8146 (GET_HEX_VALUE): G-Z, g-z are not hex.
8147 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
8148 (get_bitmap_with_cache): Use new cache implementation.
8149 (create_offscreen_bitmap): New function.
8150 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
8152 * w32term.c (x_produce_glyphs): If the distance from the current
8153 position to the next tab stop is less than a canonical character
8154 width, use the tab stop after that.
8155 (x_draw_glyphs): Handle case START and END are out of bounds more
8157 (x_clear_mouse_face): Block/unblock input.
8158 (x_display_and_set_cursor): Don't show a hollow box cursor for
8159 buffers whose cursor_type is nil.
8161 2000-09-29 Gerd Moellmann <gerd@gnu.org>
8163 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
8165 * dispextern.h (updating_frame): Declare extern.
8167 2000-09-29 Andreas Schwab <schwab@suse.de>
8169 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
8171 2000-09-29 Gerd Moellmann <gerd@gnu.org>
8173 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
8174 use its function definition.
8175 (tool_bar_items): Likewise.
8177 * lisp.h (fatal): Declare NO_RETURN.
8179 2000-09-29 Kenichi Handa <handa@etl.go.jp>
8181 * keymap.c: Remove the line "#undef NULL".
8183 2000-09-28 Gerd Moellmann <gerd@gnu.org>
8185 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
8187 2000-09-28 Dave Love <fx@gnu.org>
8189 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
8191 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
8193 * .gdbinit (xreload): Note its need on GNU/Linux.
8195 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
8196 r_alloc, r_alloc_free.
8198 2000-09-28 Kenichi Handa <handa@etl.go.jp>
8200 * syntax.c (skip_chars): Handle negation correctly.
8202 2000-09-27 Gerd Moellmann <gerd@gnu.org>
8204 * xfaces.c (realize_default_face): Call set_lface_from_font_name
8205 with non-zero FORCE_P argument.
8207 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8210 * xdisp.c (window_box_height): Add an assertion.
8212 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
8213 tool-bar than is available.
8214 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
8216 2000-09-27 Dave Love <fx@gnu.org>
8218 * s/irix6-5.h: Now works 64-bit. Tidied.
8220 2000-09-26 Gerd Moellmann <gerd@gnu.org>
8222 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
8223 instead of BITS_PER_INT.
8224 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
8225 EMACS_UINT, respectively.
8226 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
8228 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
8230 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
8232 * window.c (freeze_window_starts): Construct last argument for
8233 foreach_window differently.
8235 * xfns.c (x_decode_color): Don't return a Lisp_Object.
8237 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
8238 EMACS_UINT instead of `int' and `unsigned int'.
8239 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
8241 * frame.h (struct frame): Make the `nothing' member of union
8242 output_data an EMACS_INT.
8244 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
8245 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
8246 size in the sdata structure.
8247 (SDATA_NBYTES, SDATA_DATA): New macros.
8248 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
8249 differently for the different layout of the sdata structure.
8250 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
8252 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
8253 Check that size recorded in the string size and size recorded in
8254 the sdata structure agree.
8256 2000-09-25 Dave Love <fx@gnu.org>
8258 * buffer.c: Include stdio.h.
8260 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
8262 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
8264 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
8265 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
8266 (__malloc_extra_blocks): Declare as __malloc_size_t.
8268 2000-09-25 Gerd Moellmann <gerd@gnu.org>
8270 * alloc.c (mark_image): Use GC_NILP instead of NILP.
8272 * keyboard.c (show_help_echo): Set help_echo_showing_p.
8273 (read_char): If help-echo is showing, preserve the echo area
8276 * xdisp.c (help_echo_showing_p): New variable.
8277 (set_message): Reset it to 0.
8278 (init_xdisp): Initialize help_echo_showing_p.
8280 * dispextern.h (help_echo_showing_p): Declare extern.
8282 * config.in: Fix typo in __GNUC_MINOR__.
8284 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
8286 * s/freebsd.h (POSIX_SIGNALS): Define.
8288 * xterm.c (x_clear_mouse_face): Block/unblock input.
8290 2000-09-24 Dave Love <fx@gnu.org>
8292 * fns.c (base64_encode_1): Fix last change.
8294 2000-09-22 Gerd Moellmann <gerd@gnu.org>
8296 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
8298 * xdisp.c (try_window_reusing_current_matrix): More fixes
8299 for the case window has a header-line.
8301 2000-09-22 Dave Love <fx@gnu.org>
8303 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
8306 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
8308 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
8310 2000-09-21 Gerd Moellmann <gerd@gnu.org>
8312 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
8315 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
8318 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
8319 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
8320 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
8323 * marker.c (byte_char_debug_check): Return void.
8325 * xfns.c (Fx_create_frame): Set default frame parameter value
8326 for tool-bar-lines to 1.
8328 * dispnew.c (scrolling_window): Compare y-positions of rows
8329 equal at the start. Some simplification.
8331 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
8332 reused rows' y-position in the case window has a header-line, and
8333 new window start is greater than old window start.
8335 * process.c (process_sent_to): New variable.
8336 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
8337 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
8338 Declare more parameters volatile.
8340 * lread.c (Vrecursive_load_depth_limit): New variable.
8341 (Fload): Check recursive loads whose recursion depth exceeds
8342 Vrecursive_load_depth_limit.
8343 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
8345 2000-09-20 Gerd Moellmann <gerd@gnu.org>
8347 * fileio.c (Fread_file_name): Doc fix.
8349 * editfns.c (Fmessage_or_box): Doc fix.
8351 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
8353 * xfns.c (xbm_scan): Allow C-style comments.
8355 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
8356 symbols are specified, add color translations to the cache.
8357 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8358 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
8360 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
8361 structures to xpm_init_color_cache.
8363 2000-09-19 Gerd Moellmann <gerd@gnu.org>
8365 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
8367 2000-09-19 Andrew Innes <andrewi@gnu.org>
8369 * makefile.nt (bootstrap-emacs): Don't change directory.
8371 2000-09-19 Kenichi Handa <handa@etl.go.jp>
8373 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
8375 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
8376 If output buffer is too small, signal an appropriated error.
8378 2000-09-18 Dave Love <fx@gnu.org>
8380 * keyboard.c (menu_bar_items, tool_bar_items)
8381 (current_active_maps): Remove redundant get_local_map call.
8383 2000-09-18 Gerd Moellmann <gerd@gnu.org>
8385 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
8386 cursor for buffers whose cursor_type is nil.
8388 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
8389 a feature to implement that is already implemented.
8390 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
8393 * xfns.c (x_clear_image_1): New function.
8394 (x_clear_image): Use it.
8395 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
8397 * dispnew.c (update_window): Move test for invisible lines
8398 at the top to update_window_line.
8399 (update_window_line): Handle invisible lines here.
8401 * xfns.c (clear_image_cache): Clear current matrices of all
8402 frames sharing an image cache. Block input while freeing
8403 images. Fix timestamp comparison.
8404 (x_clear_image): Also free the mask.
8406 * xfns.c (lookup_image): Block input while loading the image so
8407 that we won't get interrupted in a state where the image isn't yet
8409 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
8410 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
8411 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
8412 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
8414 2000-09-16 Gerd Moellmann <gerd@gnu.org>
8416 * dispnew.c (update_window): Make sure to make desired rows
8417 current even if they are completely invisible at the top
8420 2000-09-15 Gerd Moellmann <gerd@gnu.org>
8422 * xfns.c (lookup_image): Build mask before applying an algorithm.
8423 Recognize algorithm `disabled'.
8424 (cross_disabled_images): New variable.
8425 (COLOR_INTENSITY): New macro.
8426 (x_detect_edges): Use COLOR_INTENSITY.
8427 (x_disable_image): New function.
8428 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
8430 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
8431 disabled state, don't apply an image transformation algorithm if
8432 the user specified an image for the disabled state. Use
8433 `:algorithm disabled' for creating a disabled item's image if the
8434 user hasn't specified an image.
8436 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
8437 allocation functions with the XPM lib.
8438 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
8439 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
8440 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
8441 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
8442 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
8443 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
8444 functions, if possible, because these handle color allocation
8445 failure more gracefully.
8446 (Fimage_mask_p): New function.
8448 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
8449 (Qedge_detection, Qheuristic): New symbols.
8450 (syms_of_xfns): Initialize new symbols.
8451 (lookup_image): Handle `:mask X', `:algorithm emboss', and
8452 `algorithm (edge-detection ...)'.
8453 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
8454 (tiff_format, gif_format, gs_format): Add `:mask'.
8455 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
8456 (GIF_MASK, GS_MASK): New enumerators.
8457 (x_laplace_read_row, x_laplace_write_row): Functions removed.
8458 (emboss_matrix, laplace_matrix): New variables.
8459 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
8460 (x_edge_detection): New functions.
8461 (x_laplace): Rewritten in terms of x_detect_edges.
8462 (x_build_heuristic_mask): If image has a mask, free it.
8464 2000-09-14 Andrew Innes <andrewi@gnu.org>
8466 * makefile.w32-in: Revert to Unix line endings.
8468 2000-09-14 Andrew Innes <andrewi@gnu.org>
8470 * makefile.w32-in: Standardize indentation somewhat.
8471 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
8472 cater for differences between shells.
8474 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
8476 2000-09-14 Gerd Moellmann <gerd@gnu.org>
8478 * xterm.c (x_produce_glyphs): If the distance from the current
8479 position to the next tab stop is less than a canonical character
8480 width, use the tab stop after that.
8482 2000-09-14 Dave Love <fx@gnu.org>
8484 * buffer.c (alloc_buffer_text): Fix xmalloc call.
8486 2000-09-14 Gerd Moellmann <gerd@gnu.org>
8488 * xdisp.c (handle_fontified_prop): While running fontification
8489 functions, bind `fontification-functions' and
8490 `after-change-functions' to nil.
8492 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
8493 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
8495 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
8497 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
8498 USE_MMAP_FOR_BUFFERS.
8500 * insdel.c (make_gap): Use enlarge_buffer_text.
8502 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
8503 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
8504 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
8505 from former r_alloc_* functions in ralloc.c.
8506 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
8507 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
8508 (mmap_init) [REL_ALLOC_MMAP]: New function.
8509 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
8510 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
8513 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
8514 (enlarge_buffer_text): Add prototype.
8516 * ralloc.c: Remove everything having to do with the use of mmap.
8518 2000-09-13 Gerd Moellmann <gerd@gnu.org>
8520 * sound.c (Fplay_sound): Doc fix.
8522 * keyboard.c: Avoid some more compiler warnings.
8523 (parse_tool_bar_item): Ignore cached key bindings.
8525 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
8526 and allocation of Lisp data.
8528 2000-09-12 Gerd Moellmann <gerd@gnu.org>
8530 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
8531 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
8534 * lread.c (Fload): Put code checking for recursive loads in #if 0.
8536 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
8538 * ccl.c: Comment fixed.
8539 (MAX_MAP_SET_LEVEL): Increased to 30.
8540 (PUSH_MAPPING_STACK): Enclose with do-while block.
8541 (POP_MAPPING_STACK): Likewise.
8542 (stack_idx_of_map_multiple): New variable.
8543 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
8544 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
8545 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
8546 (ccl_driver) <CCL_MapSingle>: Likewise.
8547 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
8548 with the case where looking up process reaches to the end of
8549 map-set, and call CCL programs as the above change.
8551 2000-09-11 Gerd Moellmann <gerd@gnu.org>
8553 * xfns.c (png_load, jpeg_load): Declare some variables volatile
8554 that might be clobbered by longjmp.
8555 (check_x_display_info, x_decode_color, create_frame_xic)
8556 (Fx_display_backing_store, Fx_display_visual_class)
8557 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8559 * lread.c (init_lread): Set Vloads_in_progress to nil.
8560 (Fload): Show list of recursively loaded files, when signaling an
8563 * lread.c (Vloads_in_progress): New variable.
8564 (record_load_unwind): New function.
8565 (Fload): Check for recursive loads.
8566 (syms_of_lread): Initialize Vloads_in_progress.
8567 (read_integer, read1): Avoid some compiler warnings.
8569 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
8572 2000-09-11 Miles Bader <miles@gnu.org>
8574 * editfns.c (Fbuffer_string): Doc fix.
8576 2000-09-10 Gerd Moellmann <gerd@gnu.org>
8578 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
8580 2000-09-09 Ken Raeburn <raeburn@gnu.org>
8582 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
8583 whether to include other header files.
8585 2000-09-09 Gerd Moellmann <gerd@gnu.org>
8587 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
8588 by Fmemq as a boolean.
8590 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
8592 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
8594 2000-09-08 Gerd Moellmann <gerd@gnu.org>
8596 * ralloc.c (mmap_fd): Remove initializer which can make it
8597 read-only in a dumped Emacs.
8598 (mmap_fd_1): New variable.
8599 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
8600 restore it from there.
8601 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
8602 unconditionally so that mmap_fd can be initialized there.
8603 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
8604 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
8605 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
8607 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
8609 * xdisp.c (dump_glyph_row): Fix printf format string.
8610 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
8612 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
8614 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
8617 * xdisp.c (try_window_id): When trying to locate cursor in
8618 unchanged rows at the top, handle the case that we can't find it.
8620 * xterm.c (x_draw_glyphs): Handle case START and END are out
8621 of bounds more carefully.
8623 2000-09-08 Dave Love <fx@gnu.org>
8625 * s/sol2.h (REL_ALLOC_MMAP): Define.
8626 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
8628 * ralloc.c: Don't include string.h (redundant).
8629 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
8630 [!MAP_ANON]: Include fcntl.h.
8631 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
8632 (r_alloc, r_re_alloc, r_alloc_free)
8633 (mmap_enlarge, mmap_set_vars): Use it.
8634 (r_alloc_init_fd): New function.
8635 (__morecore) [SYSTEM_MALLOC]: Don't declare.
8636 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
8639 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
8642 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
8643 change to __NetBSD__.
8645 2000-09-08 Kenichi Handa <handa@etl.go.jp>
8647 * search.c (compile_pattern): Check the multibyteness of cached
8650 2000-09-08 Miles Bader <miles@gnu.org>
8652 * xfaces.c (default_face_vector): Function removed.
8653 (Finternal_merge_in_global_face): Restore old global/local
8654 attribute override order. Use inline loop instead of calling
8655 default_face_vector.
8657 2000-09-07 Gerd Moellmann <gerd@gnu.org>
8659 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
8660 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
8661 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
8662 where necessary, in case POINTER_TYPE is `void'.
8664 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
8666 * frame.c (make_terminal_frame): Initialize frame foreground and
8667 background colors to unspecified, for the initial instance of an
8670 2000-09-07 Gerd Moellmann <gerd@gnu.org>
8672 * ralloc.c (mmap_find): Fix overlap computation.
8673 (mmap_enlarge): Compute nbytes before trying to find an
8676 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
8679 * lread.c (syms_of_lread): Change value of regexp
8680 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
8682 * xmenu.c (xdialog_show): When looking up the selection in
8683 menu_items, take `quote' boundaries into account; this corresponds
8684 to a nil ITEM in x-popup-dialog.
8686 2000-09-07 Kenichi Handa <handa@etl.go.jp>
8688 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
8690 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
8692 * coding.c (encode_coding_sjis_big5): Use translation table for
8693 encoding, not decoding. Fix the handling of latin-jisx0201.
8694 Check for the charset katakana-jisx0201 too.
8695 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
8696 (detect_coding_sjis): Check the byte sequence more rigidly.
8698 2000-09-07 Gerd Moellmann <gerd@gnu.org>
8700 * xfaces.c (Vparam_value_alist): New variable.
8701 (syms_of_xfaces): Initialize it.
8702 (Finternal_set_lisp_face_attribute): Avoid more consing.
8704 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
8706 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
8707 (Qbackground_mode): New variable.
8708 (syms_of_frame_1): Initialize Qbackground_mode.
8710 * lisp.h (Qdisplay): Declare extern.
8712 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
8713 change face on all frames, and change the default for new frames.
8715 2000-09-07 Dave Love <fx@gnu.org>
8717 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
8719 2000-09-07 Kenichi Handa <handa@etl.go.jp>
8721 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
8723 * charset.c: Include composite.h
8724 (lisp_string_width): New function.
8725 (Fstring_width): Call lisp_string_width instead of strwidth.
8727 * Makefile.in (charset.o): Depends on composite.h.
8729 * process.c (read_process_output): Before inserting the decoded
8730 text in the buffer, adjust the multibyteness.
8732 2000-09-06 Gerd Moellmann <gerd@gnu.org>
8734 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
8735 buffer's text buffer is null, map new memory.
8737 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
8738 POINTER_TYPE and size_t.
8739 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
8740 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
8741 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
8742 [REL_ALLOC_MMAP]: New macros.
8743 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
8744 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
8745 [REL_ALLOC_MMAP]: New functions.
8747 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
8748 before and after unexec.
8750 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
8751 text buffers if necessary.
8753 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
8754 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
8757 * config.in (HAVE_MMAP): Add #undef.
8759 2000-09-05 Gerd Moellmann <gerd@gnu.org>
8761 * frame.c (Qdisplay_type): New variable.
8762 (syms_of_frame_1): Initialize it.
8763 (Fframe_parameter): New function that avoids consing.
8764 (syms_of_frame): Defsubr it.
8766 * buffer.c (Fother_buffer): Consider buffers as invisible when
8767 they are displayed in a window on an invisible frame.
8769 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
8770 get-largest-window always return nil.
8772 2000-09-04 Gerd Moellmann <gerd@gnu.org>
8774 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
8775 variable; recognize Emacs 19 elc files.
8777 2000-09-04 Miles Bader <miles@gnu.org>
8779 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
8780 before initially popping up the menu, so the menu doesn't flash
8781 when the face settings are significantly different from the defaults.
8783 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
8785 * regex.c (WIDE_CHAR_SUPPORT): New macro.
8786 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
8787 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
8788 (BIT_UNIBYTE): Remove.
8789 (re_match_2_internal): Delete corresponding code and streamline the
8790 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
8791 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
8792 (re_wctype_t): New type.
8793 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
8794 (regex_compile): Use them and fix handling of overly long char classes.
8796 2000-09-03 Andrew Innes <andrewi@gnu.org>
8798 * makefile.w32-in: Change to DOS line endings.
8800 * s/ms-w32.h (ORDINARY_LINK): New define.
8802 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
8803 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
8805 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
8806 (distclean): Delete them here instead.
8808 * w32proc.c (compare_env): Convert to uppercase for comparison,
8809 not lowercase, to match how the native Windows shell works.
8811 2000-09-03 Jason Rumney <jasonr@gnu.org>
8813 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
8814 CVS changes the line-ends when checking in/out on DOS/Windows.
8816 * makefile.nt (emacs): Do not change directory to run temacs, as
8817 the load-path is set relative to current directory.
8819 2000-09-03 Miles Bader <miles@gnu.org>
8821 * xterm.c (x_alloc_lighter_color_for_widget): New function.
8823 2000-09-02 Gerd Moellmann <gerd@gnu.org>
8825 * xdisp.c (redisplay_mode_lines): New function.
8826 (display_mode_lines): Return number of mode lines displayed.
8827 (echo_area_display): Use redisplay_mode_lines to draw garbaged
8828 mode lines. Don't temporarily bind redisplay-dont-pause to t.
8830 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
8831 string.h and strings.h.
8832 (index) [HAVE_INDEX]: Add prototype.
8834 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
8835 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
8837 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
8838 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8840 2000-09-01 Gerd Moellmann <gerd@gnu.org>
8842 * lread.c (read1): Accept `?' as symbol constituent, for
8843 compatiblity with XEmacs.
8845 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
8847 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
8848 (struct re_pattern_buffer): Remove newline_anchor.
8849 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
8850 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
8851 (re_max_failures, fail_stack): Use size_t rather than unsigned.
8852 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
8853 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
8854 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
8855 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
8856 Get rid of references to newline_anchor.
8857 (regcomp): Allocate and precompute a fastmap.
8859 2000-08-31 Gerd Moellmann <gerd@gnu.org>
8861 * lread.c (openp): GCPRO local variable `filename'.
8863 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
8865 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
8867 * regex.c: Merge some changes from GNU libc. Add prototypes.
8868 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
8869 Use memcmp and memcpy instead of bcopy and bcmp.
8870 (init_syntax_once): Use ISALNUM.
8871 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
8872 (REG_UNSET_VALUE): Remove. Use NULL instead.
8873 (REG_UNSET, re_match_2_internal): Use NULL.
8874 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
8876 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
8877 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
8878 (regex_compile): In handle_interval, return an error rather than try to
8879 unfetch the interval if we can't find the closing brace.
8880 Obey the RE_NO_GNU_OPS syntax bit.
8881 (TOLOWER): New macro.
8883 (regexec): Allocate regs.start and regs.end as one block.
8885 2000-08-30 Gerd Moellmann <gerd@gnu.org>
8887 * xdisp.c (echo_area_display): Check display_completed instead
8888 of calling detect_input_pending.
8890 * dispnew.c (update_frame): Only set display_completed here; move
8891 the update_begin and update_end calls here from update_frame_1.
8892 (update_frame_1): Don't set display_completed here, don't call
8893 update_begin/update_end.
8895 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
8896 instead of store_frame_param.
8898 2000-08-29 Gerd Moellmann <gerd@gnu.org>
8900 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
8901 desired window matrix hasn't been displayed, use the current row
8902 instead. Make sure that only those frame rows are updated for
8903 which there exists a corresponding enabled desired row.
8905 2000-08-29 Miles Bader <miles@gnu.org>
8907 * xfaces.c (default_face_vector): New function.
8908 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
8910 2000-08-29 Gerd Moellmann <gerd@gnu.org>
8912 * lread.c (openp): Prevent temporary string passed to
8913 Ffile_readable_p from being garbage collected.
8915 2000-08-28 Dave Love <fx@gnu.org>
8917 * keymap.c (store_in_keymap): Add `static' to declaration.
8919 2000-08-28 Gerd Moellmann <gerd@gnu.org>
8921 * emacs.c, callint.c, doc.c, editfns.c
8922 (toplevel) [HAVE_STRING_H]: Include string.h.
8923 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
8924 (index): Remove prototypes which might conflict with non-standard
8925 definitions of index/strchr.
8927 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
8928 (rindex): Define only if !HAVE_RINDEX.
8930 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
8932 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
8934 2000-08-28 Miles Bader <miles@gnu.org>
8936 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
8937 made inconsistent by a font-related attribute in FROM.
8938 (merge_face_inheritance): Add function comment.
8940 2000-08-28 Kenichi Handa <handa@etl.go.jp>
8942 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
8943 the 4th arg (PREV_EVENT) Qt to suppress input method.
8945 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
8947 * regex.c: Indent cpp directives and remove parens after `defined'.
8948 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
8949 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
8950 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
8951 (re_compile_pattern): Use size_t for length.
8952 (init_syntax_once): Move to a better place.
8953 * regex.h: Merge changes from GNU libc. Indent cpp directives.
8954 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
8956 * syntax.c (back_comment): Detect cases where a comment-starter is
8957 actually inside another comment as in: /* a // b */ c // d \n.
8958 Make it clear that `comstart_pos' is unused for nested comments.
8960 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
8961 (KEYMAPP): New macro.
8962 (Fkeymap_parent, Fset_keymap_parent): Use it.
8963 (fix_submap_inheritance): Mark it static.
8964 (define_as_prefix, describe_buffer_bindings, describe_command)
8965 (describe_translation, describe_map): Complete prototypes.
8967 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
8969 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
8970 to better match the key-lookup behavior.
8972 2000-08-27 Gerd Moellmann <gerd@gnu.org>
8974 * xfaces.c (lface_fully_specified_p): Handle :inherit.
8975 (Finternal_set_lisp_face_attribute): Fix typo in error message.
8977 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
8979 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
8980 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
8981 (xterm.o): Depend on coding.h
8983 2000-08-26 Kenichi Handa <handa@etl.go.jp>
8985 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
8986 the corresponding '#endif'.
8988 2000-08-26 Miles Bader <miles@gnu.org>
8990 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
8991 * xfaces.c (QCinherit): New variable.
8992 (syms_of_xfaces): Initialize it.
8993 (LFACE_INHERIT): New macro.
8994 (Finternal_get_lisp_face_attribute)
8995 (merge_face_vector_with_property)
8996 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
8997 (check_lface_attrs): Allow new types of face height. Check
8999 (CYCLE_CHECK): New macro.
9000 (merge_face_inheritance): New function.
9001 (merge_face_vectors): Merge inherited faces too. Add F and
9002 CYCLE_CHECK arguments.
9003 (merge_face_vector_with_property, Finternal_merge_in_global_face)
9004 (lookup_named_face, lookup_derived_face, realize_named_face)
9005 (face_at_string_position, face_at_buffer_position): Supply
9006 new F and CYCLE_CHECK arguments to merge_face_vectors.
9007 (merge_face_heights): New function.
9008 (merge_face_vectors, merge_face_vector_with_property)
9009 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
9010 handle relative face heights.
9011 (lface_same_font_attributes_p): Compare heights using EQ.
9013 2000-08-26 Kenichi Handa <handa@etl.go.jp>
9015 * charset.c (char_to_string): Check the character validity.
9016 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
9018 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
9020 * regex.c (PUSH_FAILURE_COUNT): New macro.
9021 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
9022 Handle popping of a register's or a counter's data.
9023 (POP_FAILURE_POINT): Use the new name.
9024 (re_match_2_internal): Push counter data on the stack for succeed_n,
9025 jump_n and set_number_at and remove misleading dead code in succeed_n.
9027 2000-08-25 Gerd Moellmann <gerd@gnu.org>
9029 * xdisp.c (redisplay_internal): If considering all windows on all
9030 frames, update the display for each frame as soon as possible,
9031 instead of first building all desired matrices for all frames, and
9032 then updating them all.
9033 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
9035 2000-08-24 Gerd Moellmann <gerd@gnu.org>
9037 * bytecode.c (mark_byte_stack): Add a comment.
9039 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
9040 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
9043 2000-08-24 Kenichi Handa <handa@etl.go.jp>
9045 * minibuf.c (do_completion): Always use compare-string, not
9046 string-equal because the latter doesn't pay attention to
9047 multibyteness of strings.
9049 * process.c (create_process): Don't setup raw-text coding here.
9050 (Fopen_network_stream): Don't set coding->src_multibyte and
9051 coding->dst_multibyte here.
9052 (read_process_output): For process filter, return unibyte string
9053 if default-enable-multibyte-characters is nil.
9054 (send_process): If OBJECT is multibyte text, be sure to encoded it
9055 by the specified coding system for the process. Otherwise, setup
9057 (init_process): Don't initialize default-process-coding-system here.
9059 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
9061 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
9062 <scroll-down-aggressively>: Likewise.
9064 2000-08-23 Kenichi Handa <handa@etl.go.jp>
9066 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
9067 zero. Set coding->produced_char correctly.
9069 2000-08-22 Andrew Innes <andrewi@gnu.org>
9071 * makefile.w32-in: New file.
9073 * unexw32.c (unexec): Ignore old_name, and use the actual location
9074 of the current executable instead. Base new_name on this.
9076 * w32proc.c (create_child): Remove reference to security
9077 descriptor, which isn't needed and doesn't compile with mingw32.
9079 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9080 up dllimport attributes.
9081 (x_update_window_end): Update prototype.
9083 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
9084 extern, which screws up dllimport attributes.
9086 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9087 up dllimport attributes.
9089 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
9090 screws up dllimport attributes.
9092 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9093 up dllimport attributes.
9094 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
9095 screws up dllimport attributes.
9097 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9098 up dllimport attributes.
9100 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
9101 screws up dllimport attributes.
9103 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
9104 screws up dllimport attributes.
9106 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9107 up dllimport attributes.
9109 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
9110 unnecessary extern, which screws up dllimport attributes.
9113 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9114 up dllimport attributes.
9116 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
9117 unnecessary extern, which screws up dllimport attributes.
9119 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
9120 screws up dllimport attributes.
9122 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9123 up dllimport attributes.
9125 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
9127 * w32bdf.c (search_file_line):
9128 (set_bdf_font_info):
9130 (w32_get_bdf_glyph):
9131 (w32_BDF_to_x_font): Fix compile warnings.
9133 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
9135 * w32select.c: Include keyboard.h before frame.h.
9137 * w32fns.c (max): Define macro.
9138 (JOHAB_CHARSET): Define if not known.
9139 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
9140 (Fx_show_tip): Synch with X version.
9142 * w32xfns.c: Include keyboard.h before frame.h.
9144 * w32fns.c: Include keyboard.h before frame.h.
9146 * w32term.c: Include keyboard.h before frame.h.
9148 * fontset.c: Include keyboard.h before frame.h.
9150 * w32inevt.c: Include keyboard.h before frame.h.
9151 (MOUSE_MOVED): Define if not known.
9153 * minibuf.c: Include keyboard.h before frame.h.
9155 * keyboard.c: Include keyboard.h before frame.h.
9157 * indent.c: Include keyboard.h before frame.h.
9159 * dispnew.c: Include keyboard.h before frame.h.
9161 * buffer.c: Include keyboard.h before frame.h.
9163 * alloc.c: Include keyboard.h before frame.h.
9165 * print.c: Include keyboard.h before frame.h.
9167 * process.c: Include keyboard.h before frame.h.
9169 * scroll.c: Include keyboard.h before frame.h.
9171 * sysdep.c: Include keyboard.h before frame.h.
9173 * term.c: Include keyboard.h before frame.h.
9175 * window.c: Include keyboard.h before frame.h.
9177 * xdisp.c: Include keyboard.h before frame.h.
9178 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
9180 * frame.c: Include keyboard.h before frame.h.
9182 * w32heap.h: Undefine min, max.
9184 * w32gui.h: Undefine min, max.
9186 * unexw32.c: Change PUCHAR to PCHAR.
9187 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
9190 (copy_executable_and_dump_data): Remove unnecessary static defs.
9191 (copy_executable_and_dump_data): Fix compile warnings.
9193 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
9195 * w32console.c (min): Define macro.
9196 (clear_frame, write_glyphs): Fix compile warning.
9198 * w32proc.c (compare_env):
9199 (find_child_console): Fix compile warning.
9201 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
9202 sys_errlist instead of _sys_errlist.
9203 (get_emacs_configuration_options): New function.
9205 * s/ms-w32.h (sys_nerr): Provide default definition.
9206 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
9207 name with _ prepended.
9208 (NSIG): Define if not known.
9209 (get_emacs_configuration): Provide extern declaration.
9210 (get_emacs_configuration_options): Provide extern declaration.
9211 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
9213 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
9215 (read_unc_volume): Fix compile warning.
9217 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
9218 definitions from being used.
9220 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
9222 * w32.c (unc_volume_file_attributes):
9223 (open_unc_volume): Make arg const.
9225 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
9226 (read_input_waiting): Remove excess parameter.
9228 * w32.c (init_environment): Call _access.
9229 (check_windows_init_file): Call _close.
9230 (init_user_info): Call _putenv.
9231 (init_environment): Call _putenv and _strdup.
9232 (init_ntproc): Reset volume info cache on startup.
9234 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
9235 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
9236 cannot override the CRT malloc.
9238 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
9239 (LINK_FLAGS): Append to original value of LINK_FLAGS.
9241 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
9242 unless we are linking with a static CRT.
9243 (RVA_TO_PTR): Cast result to unsigned char*.
9245 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
9246 (add_volume_info): Use xstrdup.
9248 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
9250 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
9251 (do_completion, Fminibuffer_complete_word): Use it.
9252 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
9253 var so it can take non-boolean values.
9255 2000-08-21 Gerd Moellmann <gerd@gnu.org>
9257 * editfns.c (find_field): Formatting changes.
9258 (toplevel): Some old-style function forward declarations
9259 changed to prototypes, some new protypes added, some functions
9262 * lisp.h (set_time_zone_rule): Add prototype.
9263 (use_dialog_box): External declaration.
9265 * keyboard.c (gen_help_event): Add parameter SIZE.
9266 (kbd_buffer_events_waiting): Slightly rewritten.
9267 (clear_event): New function.
9268 (kbd_buffer_get_event): Use it, and clear the input_events of
9270 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
9271 don't fill the newly created array with nils.
9272 (toplevel): Convert some old-style function forward declarations
9275 * keyboard.h (gen_help_event): Change prototype.
9277 * xterm.c (XTread_socket): Change calls to gen_help_event.
9279 * w32term.c (w32_read_socket): Change calls to gen_help_event.
9281 * eval.c (Fmacroexpand): Doc fix.
9283 2000-08-20 Jason Rumney <jasonr@gnu.org>
9285 * w32term.h (x_display_info_for_display): Remove as this function
9286 does not exist on W32.
9288 * w32term.c (help_echo_window): New variable.
9289 (syms_of_w32term): staticpro it.
9290 (note_mode_line_highlight): Set it.
9291 (XTextExtents16): Removed as there is no equivalent on W32.
9292 (x_compute_glyph_string_overhangs): Incomplete body removed, as
9293 the X way of doing this will not work for W32.
9294 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
9295 (x_draw_image_foreground): Avoid drawing outside of the clip area
9296 when image doesn't have a mask.
9297 (note_mouse_highlight): Process overlays in the right order of
9298 priority. Set help_echo_window.
9299 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
9300 because that's more visible for large images.
9302 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
9303 name to single_keymap_panes.
9304 (w32_menu_show): Set wv->title when dealing with titles.
9305 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
9307 2000-08-21 Miles Bader <miles@gnu.org>
9309 * minibuf.c (do_completion): Try again if we rewrite the input
9310 string, but no completion was done, so that any completion message
9313 2000-08-20 Gerd Moellmann <gerd@gnu.org>
9315 * xfaces.c (lface_equal_p): Compare strings differently.
9316 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
9317 (realize_tty_face): Use them.
9318 (syms_of_xfaces): Initialize new variables.
9319 (map_tty_color): New function, extracted from realize_tty_face.
9320 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
9321 foreground or background color, store the new color name in the
9322 realized face; previous code trying to do this had no effect.
9323 (realize_tty_face): Use map_tty_color.
9324 (Fclear_face_cache): Set face_change_count and ensure thorough
9327 2000-08-19 Gerd Moellmann <gerd@gnu.org>
9329 * undo.c (record_first_change, record_marker_adjustment): Don't
9330 use XBUFFER on last_undo_buffer which might not be a buffer.
9332 2000-08-18 Kenichi Handa <handa@etl.go.jp>
9334 * coding.c (decode_coding_string): Set members consumed,
9335 consumed_char, produced, produced_char of *coding correctly. If
9336 decode_coding doesn't consume any byte, don't try anymore.
9337 (encode_coding_string): Likewise.
9339 2000-08-18 Gerd Moellmann <gerd@gnu.org>
9341 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
9342 conditional have void type, for Standard C compilers.
9344 * xdisp.c (redisplay_internal): Compare windows for equality with
9345 EQ, instead of applying XWINDOW to something that might not
9348 2000-08-18 Kenichi Handa <handa@etl.go.jp>
9350 * fontset.c (Finternal_char_font): Search only the selected frame
9351 for a window of the current buffer.
9353 2000-08-18 Gerd Moellmann <gerd@gnu.org>
9355 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
9358 * keyboard.c (kbd_buffer_get_event): Handle the case that the
9359 second half of a HELP_EVENT is found at the start of kbd_buffer.
9361 2000-08-18 Miles Bader <miles@gnu.org>
9363 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
9365 * editfns.c (save_restriction_save): Rewrite to use markers.
9366 (save_restriction_restore): Rewrite to understand new form of data
9367 saved by save_restriction_save.
9368 (Fsave_restriction): Remove cautionary note in doc-string.
9370 2000-08-17 Gerd Moellmann <gerd@gnu.org>
9372 * fileio.c (build_annotations): Add a comment explaining the
9373 return value of format-annotate-function. Replace a spurious call
9374 to Flength with a CONSP test. Call format-annotate-function with
9375 a fifth arg specifying how many times the function is been called
9376 in a row, to let it choose temporary buffers appropriately.
9378 2000-08-17 Dave Love <fx@gnu.org>
9380 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
9381 declare make_temp_name twice.
9383 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
9384 (unreadpure): Give it an arg.
9386 * unexalpha.c: Prototype fatal_unexec, mark_x,
9387 update_dynamic_symbols. Declare unexec as void.
9389 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
9390 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
9392 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
9393 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
9395 * alloca.c: Use #error.
9396 [POINTER_TYPE]: Use it.
9398 * eval.c (Fdefvar): Doc fix.
9400 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
9401 INITIALIZE_INTERVAL.
9403 * buffer.h: Avoid DECLARE_INTERVALS.
9405 * config.in: Add size_t.
9407 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
9409 * w16select.c (set_clipboard_data): If there's not enough memory
9410 to put text into clipboard, return 1, as Fw16_set_clipboard_data
9411 expects. In case of other failures, return 3.
9412 (system_error_msg): New error message.
9413 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
9416 2000-08-16 Gerd Moellmann <gerd@gnu.org>
9418 * term.c (write_glyphs): Also turn off inverse video after turning
9419 off other appearances in case TS_exit_attribute_mode is not equal
9420 to TS_end_standout_mode.
9421 (insert_glyphs): Turn inverse video on/off for each run of glyphs
9423 (turn_off_face): Reset standout_mode only if
9424 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
9425 is equal to TS_end_standout_mode.
9427 2000-08-16 Kenichi Handa <handa@etl.go.jp>
9429 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
9430 sequence at the end of the source block.
9432 * ccl.c (Fccl_program_p): Docstring modified.
9433 (Fccl_execute): Likewise.
9434 (Fccl_execute_on_string): Likewise.
9436 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
9438 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
9440 2000-08-16 Kenichi Handa <handa@etl.go.jp>
9442 The following changes are mainly to fix bugs of
9443 encode/decode-coding-string failing if encoding/decoding return
9444 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
9445 variable conversion_buffer.
9447 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
9448 decrement dst_end to avoid buffer overflow in the later call of
9451 * coding.h (conversion_buffer_size, conversion_buffer)
9452 (get_conversion_buffer): Extern deleted.
9454 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
9455 (conversion_buffer, conversion_buffer_size): Variables deleted.
9456 (get_conversion_buffer): Function deleted.
9457 (struct conversion_buffer): New structure.
9458 (MAX_ALLOCA): New macro.
9459 (allocate_conversion_buffer): New macro.
9460 (extend_conversion_buffer, free_conversion_buffer): New functions.
9461 (ccl_coding_driver): Set coding->result.
9462 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
9463 this is the last block of source.
9464 (encode_coding): Likewise. Handle the source block as the last
9465 one only when the whole source text is consumed.
9466 (decode_coding_string): Handle the case that the output buffer is
9467 too small to decode the whole source text. Use
9468 allocate_conversion_buffer, extend_conversion_buffer and
9469 free_conversion_buffer, not get_conversion_buffer.
9470 (encode_coding_string): Likewise.
9471 (init_coding): Function deleted.
9472 (init_coding_once): Delete code to initialize conversion_buffer_size.
9474 * emacs.c (main): Don't call init_coding.
9476 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
9478 * term.c (write_glyphs): Use a locally declared conversion_buffer.
9479 (insert_glyphs): Likewise.
9481 * w32console.c (write_glyphs): Use a locally declared
9484 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
9486 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
9487 member of display_info is NULL.
9489 2000-08-15 Gerd Moellmann <gerd@gnu.org>
9491 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
9493 * term.c (turn_off_face): Reset standout_mode when resetting
9494 appearances with capability `me'.
9495 (write_glyphs): Switch on inverse video before each face change.
9497 2000-08-14 Dave Love <fx@gnu.org>
9499 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
9500 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
9501 (lisp_free): Declare and make static.
9503 * window.c: Fix embedded comment.
9504 (syms_of_window): Fix doc string.
9506 2000-08-14 Gerd Moellmann <gerd@gnu.org>
9508 * keymap.c (push_key_description): If C without modifiers is < 32,
9509 make sure to print `C-' before `M-', like in the manual.
9511 2000-08-11 Gerd Moellmann <gerd@gnu.org>
9513 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
9514 since they aren't relocated anymore.
9515 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
9517 * xdisp.c (try_cursor_movement): Fix handling of cursor in
9518 partially visible line which is smaller than the window's height.
9520 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9522 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
9523 the multibyte form of eight-bit-control characters.
9524 (Fccl_execute_on_string): Initialize ccl->multibyte.
9526 * ccl.h (struct ccl_program): New member multibyte.
9528 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
9530 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9532 * regex.c (regex_compile) <normal_char>: Pay attention to
9534 (analyse_first) <exactn>: Setup fastmap correctly for
9535 eight-bit-control characters.
9537 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9539 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
9541 * keyboard.c (make_lispy_event): Handle the new event type
9542 multibyte_char_keystroke.
9544 * xterm.c: Include coding.h.
9545 (XTread_socket): Work around a bug of XmbLookupString. If the
9546 input is from XIM, decode it according to the current locale. In
9547 that case, generate multibyte_char_keystroke events.
9549 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9551 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
9552 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
9554 2000-08-10 Gerd Moellmann <gerd@gnu.org>
9556 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
9557 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
9558 (move_it_in_display_line_to): Record iterator's ascent and descent
9559 before producing glyphs, and restore them when we know the glyph
9560 doesn't fit on the line.
9561 (move_it_to): Restructured so that it's easier to debug. If
9562 moving to a vpos, and not moving to an x or character position,
9563 stop as soon as the specified vpos is reached; don't move further
9564 into that line because that might change the computed line height.
9565 (try_cursor_movement): New function, extracted from the cursor
9566 movement branch of redisplay_window. If ending on a partially
9567 visible line, don't try to scroll if the cursor line is taller
9569 (redisplay_window): Use try_cursor_movement.
9571 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
9572 because that function doesn't cope with variable-height lines.
9574 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
9575 box cursor because that's better visible for large images.
9577 2000-08-10 Miles Bader <miles@gnu.org>
9579 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
9581 2000-08-10 Gerd Moellmann <gerd@gnu.org>
9583 * xdisp.c (Vmessages_buffer_name): New variable.
9584 (message_dolog): Use it.
9585 (syms_of_xdisp): Initialize it.
9587 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
9589 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
9590 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
9591 redundant now that keyboard.h is included.
9593 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
9595 * keyboard.c (kbd_buffer_events_waiting): New function.
9597 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
9599 * msdos.c: Include keyboard.h.
9600 (XMenuActivate): Empty no_event events from the event buffer. If
9601 no events are left after that, call clear_input_pending.
9602 (mouse_clear_clicks): New function, code moved from mouse_init.
9603 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
9604 mouse driver to ``forget'' any past clicks.
9606 * Makefile.in (msdos.o): Depend on keyboard.h.
9608 2000-08-09 Gerd Moellmann <gerd@gnu.org>
9610 * lisp.h (input_pending): External declaration.
9612 * dispextern.h (Qredisplay_dont_pause): Declare extern.
9614 * xdisp.c (echo_area_display): Display thoroughly if input is
9615 pending. Bind redisplay-dont-pause to t during the redisplay.
9616 in case input is pending.
9618 * dispnew.c (Qredisplay_dont_pause): New variable.
9619 (syms_of_display): Initialize and staticpro it.
9620 (update_frame_1): Don't interrupt the display for pending input if
9621 redisplay_dont_pause is set.
9623 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
9625 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9627 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
9629 * callproc.c (Fcall_process): Terminate the unwind-protect around
9630 the post-read-conversion of coding system.
9632 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
9633 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
9634 * buffer.h (overlays_at): Update prototype.
9635 * xdisp.c (next_overlay_change): Update call to overlays_at.
9636 * xfaces.c (face_at_buffer_position): Likewise.
9637 * textprop.c (Fget_char_property): Likewise.
9638 * xterm.c (note_mouse_highlight): Likewise.
9640 * minibuf.c (do_completion): Don't consider a simple change of
9641 case as `completion'.
9643 2000-08-08 Ken Raeburn <raeburn@gnu.org>
9645 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
9646 * undo.c (record_delete): Make sure last_point_position_buffer is
9647 a buffer before comparing pointers.
9649 * coding.h (decode_coding_string): Declare.
9651 * intervals.h (Fprevious_single_char_property_change): Declare.
9653 * textprop.c (Fprevious_single_char_property_change): Don't do
9654 arithmetic directly on lisp objects.
9656 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
9658 * keyboard.h (menu_item_eval_property): Declare.
9660 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
9661 reuse as buffer name, instead of recreating (and discarding) every
9662 time a message is logged.
9663 (with_echo_area_buffer): Make callback arg A2 a lisp object.
9664 (current_message_1, truncate_message_1, set_message_1)
9665 (display_echo_area_1, resize_mini_window_1): Signatures changed.
9666 (current_message, truncate_echo_area, display_echo_area)
9667 (resize_echo_area_axactly): Changed calls.
9669 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
9671 (Ffind_coding_systems_region_internal): First argument to Fappend
9672 must be an integer, not a Lisp object.
9674 2000-08-08 Kenichi Handa <handa@etl.go.jp>
9676 * charset.c (Fchar_width): Doc fix.
9678 2000-08-08 Gerd Moellmann <gerd@gnu.org>
9680 * charset.c (Fstring_width): Doc fix.
9682 2000-08-07 Gerd Moellmann <gerd@gnu.org>
9684 * xdisp.c (start_display): When starting display on a continuation
9685 line, clear ascent and descent members of the iterator structure;
9686 the height of the continued line does not affect the height of the
9688 (make_cursor_line_fully_visible): Do nothing if cursor is on a
9689 line taller than the window.
9690 (redisplay_window) <forced window start>: Handle case that the
9691 middle of the window is not found in any row.
9692 (dump_glyph_row): Show more information.
9693 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
9694 first text line in a glyph matrix.
9696 * xterm.c (x_draw_image_foreground): Avoid drawing outside
9697 of the clip area when image doesn't have a mask.
9699 * fns.c (sweep_weak_table): Fix survival conditions for
9700 key-or-value and key-and-value weakness.
9702 * .gdbinit (xhashtable): New command.
9704 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
9705 tables out of the list of all weak hash tables.
9707 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
9708 a new buffer is created, make sure echo_area_buffer[] references
9711 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
9713 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
9716 2000-08-07 Kenichi Handa <handa@etl.go.jp>
9718 * syntax.c (skip_chars): Fix previous change. Make the handling
9719 of unibyte string consistent with that of regex search.
9721 2000-08-05 Gerd Moellmann <gerd@gnu.org>
9723 * xmenu.c (popup_get_selection): Use xfree instead of free.
9725 * fileio.c (Finsert_file_contents): Use xfree instead of free.
9727 * editfns.c (Ftranspose_regions): Use xfree instead of free.
9729 * callproc.c (child_setup): Use xfree instead of free.
9731 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
9733 (run_mac_command, closedir): Use `xfree' instead of `free'.
9735 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
9737 * eval.c (error): Use xfree instead of free.
9739 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
9741 * fns.c: Replace `illegal' with `invalid'.
9742 (Fmake_hash_table, make_hash_table): Allow table size of 0.
9744 2000-08-05 Kenichi Handa <handa@etl.go.jp>
9746 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
9749 2000-08-04 Noah Friedman <friedman@splode.com>
9751 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
9754 2000-08-04 Gerd Moellmann <gerd@gnu.org>
9756 * syntax.c (skip_chars): Fix typo in error message.
9758 2000-08-04 Andreas Schwab <schwab@suse.de>
9760 * m/ia64.h: Moved from s/ia64.h.
9762 2000-08-04 Kenichi Handa <handa@etl.go.jp>
9764 * process.c (read_process_output): Big simplification. Handle
9765 composition and post-read-conversion of coding system correctly.
9766 (send_process): Handle composition correctly.
9768 * callproc.c (Fcall_process): Handle post-read-conversion of
9769 coding system if any.
9771 * coding.c (decode_coding_iso2022): More strict check for handling
9773 (coding_restore_composition): Pay attention to the case that
9774 cmp_data is not set properly (because of invalid code in the
9776 (run_pre_post_conversion_on_str): Include text properties in the
9778 (decode_coding_string): Set members of coding correctly.
9780 2000-08-03 Gerd Moellmann <gerd@gnu.org>
9782 * s/ia64.h: New file.
9784 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
9785 Use NULL instead of 0 at the end of variable argument list of
9786 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
9787 sizeof (int) < sizeof (void *).
9789 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
9790 of variable argument lists of XtVaGetValues and XtVaSetValues.
9792 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
9793 variable argument lists of XtVaGetValues and XtVaSetValues.
9795 2000-08-02 Gerd Moellmann <gerd@gnu.org>
9797 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
9798 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
9800 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
9803 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
9804 in call to Fsingle_key_description.
9806 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
9809 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
9811 * window.c (display_buffer_reuse_frames): New variable.
9812 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
9813 frames displaying BUFFER.
9814 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
9816 2000-08-01 Miles Bader <miles@gnu.org>
9818 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
9819 when to constrain NEW_POS (they were pretty screwed up before).
9821 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
9823 * msdos.c (run_msdos_command): Save and restore the master
9824 environment, for the case that child_setup signals an error.
9825 When mirroring slashes in DOS shell commands, don't fail when
9826 argv[2] has embedded blanks.
9827 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
9828 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
9829 (dos_ttraw): Call mouse_setup_buttons.
9831 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
9832 using alloca; free it after run_msdos_command returns.
9834 2000-07-27 Dave Love <fx@gnu.org>
9836 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
9837 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
9839 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
9841 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
9843 * editfns.c (lisp_time_argument): Fix last change.
9845 2000-07-27 Gerd Moellmann <gerd@gnu.org>
9847 * fns.c (Fdelete): Make it work on vectors and strings in addition
9850 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
9851 (syms_of_fns): Initialize new variables.
9852 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
9853 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
9854 weakness, with t meaning the same as `key-and-value'.
9856 2000-07-27 Kenichi Handa <handa@etl.go.jp>
9858 * coding.h (struct coding_system): Member safe_charset deleted.
9860 * coding.c (Qsafe_charsets): This variable deleted.
9861 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
9863 (coding_safe_chars): New function.
9864 (CODING_SAFE_CHAR_P): New macro.
9865 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
9866 checking safe_charsets member of the coding system. Caller changed.
9867 (detect_coding_iso2022): New local variable safe_chars.
9868 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
9869 safe_charsets member of the coding system.
9870 (decode_coding_iso2022): New local variable safe_chars.
9871 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
9872 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
9873 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
9874 (ENCODE_UNSAFE_CHARACTER): New macro.
9875 (encode_coding_iso2022): New local variable safe_chars. Check
9877 (setup_coding_system): Delete the code to initialize
9878 coding->safe_charses
9879 (intersection, find_safe_codings): New functions.
9880 (Ffind_coding_systems_region_internal): New function.
9881 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
9882 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
9883 variable and initialize it.
9885 * fns.c (char_table_ref_and_index): New function.
9887 * lisp.h (char_table_ref_and_index): Add prototype.
9889 2000-07-26 Sam Steingold <sds@gnu.org>
9891 * editfns.c (lisp_time_argument): Added third argument `usec'.
9892 (Ffloat_time): New built-in Lisp function.
9894 2000-07-26 Gerd Moellmann <gerd@gnu.org>
9896 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
9897 for the character code.
9899 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
9902 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
9903 if called for a popup menu.
9904 (xmenu_show): Store help string in widget values.
9906 2000-07-26 Dave Love <fx@gnu.org>
9908 * syswait.h: Move some definitions.
9909 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
9910 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
9911 perspicuous definitions.
9912 (WTERMSIG): Fix bit pattern used.
9914 2000-07-26 Kenichi Handa <handa@etl.go.jp>
9916 * print.c (print_object): If vector printing is truncated, print
9917 "..." to indicate it as well as the case of list printing.
9919 2000-07-25 Gerd Moellmann <gerd@gnu.org>
9921 * xdisp.c (next_element_from_display_vector): Improve comments.
9923 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
9924 for the character code, and the rest for the face id as in 20.x.
9925 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
9927 * window.c (window_display_table): Cleaned up.
9929 * syntax.c (Fforward_word): Add last arg nil in call of
9930 Fconstrain_to_field.
9932 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
9934 * fileio.c (Frename_file) [DOS_NT]: If the file names are
9935 identical but for the letter-case, don't call
9936 barf_or_query_if_file_exists.
9938 2000-07-25 Miles Bader <miles@gnu.org>
9940 * editfns.c (find_field): Honor special `boundary' fields.
9941 (Qboundary): New variables.
9942 (syms_of_editfns): Initialize Qboundary.
9943 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
9944 Use scan_buffer instead of find_before_next_newline, because it
9945 allows us to detect the boundary case where there's a newline at
9947 * lisp.h (Fconstrain_to_field): Update external declaration.
9949 2000-07-24 Gerd Moellmann <gerd@gnu.org>
9951 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
9954 2000-07-24 Dave Love <fx@gnu.org>
9956 * s/sunos4-0.h, s/sol2.h:
9957 (LIBS_TERMCAP): Move from m/sparc.h.
9959 * m/sparc.h (TERMINFO): Moved to system files (probably only
9960 relevant for sunos4 judging by its vintage).
9961 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
9964 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
9966 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
9967 name to single_keymap_panes.
9969 2000-07-24 Andreas Schwab <schwab@suse.de>
9971 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
9973 2000-07-24 Gerd Moellmann <gerd@gnu.org>
9975 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
9976 parameters instead of using int parameters. Expect FN to accept
9977 EMACS_INT parameters.
9978 (display_echo_area, resize_echo_area_axactly, current_message)
9979 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
9980 with new argument list.
9981 (resize_mini_window_1): New callback function.
9982 (current_message_1, truncate_message_1, set_message_1): Change
9983 parameter lists to the new format expected by with_echo_area_buffer.
9985 2000-07-24 Kenichi Handa <handa@etl.go.jp>
9987 * fontset.c (fontset_ref): Remove INLINE declaration.
9988 (fontset_ref_via_base): Likewise.
9989 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
9992 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
9994 * msdos.c (IT_note_mouse_highlight): Process overlays in the
9995 correct order of priority. If help echo was found in an overlay,
9996 use that overlay as the object in which the help echo was found.
9998 2000-07-22 Miles Bader <miles@gnu.org>
10000 * textprop.c (Fprevious_single_char_property_change): The initial
10001 property value should be from the position preceding POSITION, not
10004 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
10006 * coding.c (syms_of_coding): Doc fix for
10007 inhibit-iso-escape-detection.
10009 2000-07-21 Gerd Moellmann <gerd@gnu.org>
10011 * xterm.c (note_mouse_highlight): Process overlays in the right
10014 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
10016 * xterm.c (note_mouse_highlight): If help-echo was found in an
10017 overlay, use that overlay as the object in which the help was found.
10019 * window.c (foreach_window_1): Fix typo reversing an if-condition.
10021 * window.c (foreach_window): Instead of a fake variable argument
10022 list, take one USER_DATA argument.
10023 (foreach_window_1): Likewise, and call callback functions with two
10024 args, the window and USER_DATA.
10025 (struct check_window_data): New struct.
10026 (check_window_containing): Use it.
10027 (window_from_coordinates): Set up a struct check_window_data for
10029 (add_window_to_list, freeze_window_start): Change parameters
10030 according to new calling convention.
10032 * window.h (foreach_window): Change prototype.
10034 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
10036 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
10038 * xmenu.c (menu_help_callback): Call show_help_echo with
10039 additional arguments OBJECT and POS.
10041 2000-07-21 Kenichi Handa <handa@etl.go.jp>
10043 * data.c (Faset): Allow storing any multibyte character in a
10044 string. Convert unibyte string to multibyte if necessary.
10046 * xfns.c (x_encode_text): New function.
10047 (x_set_name): Use x_encode_text.
10048 (x_set_title): Likewise.
10050 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
10052 * xterm.h (x_encode_text): Add prototype.
10054 2000-07-20 Dave Love <fx@gnu.org>
10056 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
10059 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
10061 * msdos.c (help_echo_window): New variable.
10062 (syms_of_msdos): Initialize and staticpro it.
10063 (IT_note_mode_line_highlight): Set help_echo_window.
10064 (IT_note_mouse_highlight): Ditto.
10065 (dos_rawgetc): Store help_echo_window in the second event produced
10068 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
10069 Record the object that generated the help echo and the position of
10070 that object in help_echo_object and help_echo_pos. Record that
10071 some glyphs in a row are displayed in mouse-face.
10072 (IT_update_begin): Don't clear mouse highlight unless one of the
10073 enabled glyph rows is marked as being displayed in mouse-face.
10074 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
10075 and position recorded in help_echo_object and help_echo_pos to the
10077 (IT_menu_display): Accept a new argument PN: the pane number of
10078 the current menu pane. Record the pane number and the item
10079 number of the item which has associated help string.
10080 (XMenuActivate): Update the prototype for help_callback in
10081 function declaration. Call IT_menu_display with the current menu
10082 pane number as an additional argument. Call help_callback with
10083 two additional arguments: the pane number and the item number of
10084 the menu item associated with the help text.
10085 (help_echo_object, help_echo_pos): New variables.
10086 (syms_of_msdos): Initialize them and staticpro help_echo_object.
10088 * msdos.h (XMenuActivate): Update prototype.
10090 2000-07-19 Gerd Moellmann <gerd@gnu.org>
10092 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
10093 Add some more prototypes.
10095 * xterm.c, xterm.h: Add some more prototypes.
10097 * lisp.h (Fnext_single_char_property_change): Add prototype.
10099 * dispnew.c (direct_output_for_insert): Remove confusing
10100 outer local variable mouse_face_overwritten_p.
10101 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
10103 * alloc.c (allocate_string_data): Don't copy old string contents.
10105 2000-07-19 Kenichi Handa <handa@etl.go.jp>
10107 * coding.c (code_convert_region): Delete text properties before
10108 shrinking the conversion region.
10110 2000-07-18 Gerd Moellmann <gerd@gnu.org>
10112 * dispnew.c (update_text_area): Write the whole row if it
10113 has mouse-face in it.
10115 * xfaces.c (face-alternative-font-family-alist): Remove
10116 DEFVAR_LISP; staticpro instead.
10118 * xmenu.c (menu_help_callback): Call show_help_echo with
10121 * keyboard.c (show_help_echo): Add parameter WINDOW.
10122 (read_char): Call show_help_echo with window extracted from Lisp
10124 (gen_help_event): Add parameter WINDOW.
10126 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
10128 * xterm.c (help_echo_window): New variable.
10129 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
10130 (XTread_socket): Pass help_echo_window to gen_help_event.
10131 (syms_of_xterm): Initialize and staticpro help_echo_window.
10133 2000-07-18 Dave Love <fx@gnu.org>
10135 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
10137 2000-07-18 Gerd Moellmann <gerd@gnu.org>
10139 * alloc.c (allocate_string_data): If string had already data
10140 assigned, copy old contents to new string data.
10142 * coding.c (syms_of_coding): Fix typo in spelling of variable
10143 `inhibit-iso-escape-detection'.
10145 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
10147 * Makefile.in: Add dependencies on dispextern.h.
10148 (alloca.o): Don't define malloc and define EMACS_FREE instead of
10149 `free'; both can conflict with system header files.
10151 2000-07-18 Kenichi Handa <handa@etl.go.jp>
10153 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
10156 2000-07-18 Dave Love <fx@gnu.org>
10158 * window.c (Fwindow_list): Declare arg `window'.
10160 2000-07-18 Kenichi Handa <handa@etl.go.jp>
10162 * coding.c (setup_coding_system): Don't override the explicitly
10163 specified designations.
10165 2000-07-15 Miles Bader <miles@gnu.org>
10167 * editfns.c (char_property_eq, char_property_stickiness): Renamed
10168 from `text_property_eq' and `text_property_stickiness', respectively.
10169 (find_field, Fconstrain_to_field, char_property_eq)
10170 (char_property_stickiness): Changed to call char-property functions
10171 instead of text-property-only ones.
10173 * textprop.c (Fnext_single_char_property_change): Made a subr (was
10174 `next_single_char_property_change'). Do more error checking, and
10175 cleanup limit behavior.
10176 (Fprevious_single_char_property_change): New function.
10177 (syms_of_textprop): Initialize new subrs.
10179 * xdisp.c (display_prop_end, invisible_text_between_p):
10180 Call Fnext_single_char_property_change instead of
10181 next_single_char_property_change.
10183 2000-07-15 Jason Rumney <jasonr@gnu.org>
10185 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
10186 after menu is finished with.
10187 (add_menu_item): Only consider wv->title as a menu title.
10188 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
10190 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
10192 (FONT_REGEXP): Remove unused macro, and its sub-components.
10193 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
10195 * w32term.c (help_echo_object, help_echo_pos): New variables.
10196 (note_mode_line_highlight): Store additional information about the
10197 help-echo in help_echo_object and help_echo_pos. Check both
10198 `local-map' and `keymap' properties for changing the cursor
10199 (note_mouse_highlight): Store additional information about the
10200 help-echo in help_echo_object and help_echo_pos.
10201 (note_tool_bar_highlight): Set help_echo_object to nil and
10202 help_echo_pos to -1.
10203 (w32_read_socket): Use gen_help_event instead of filling
10204 input_events manually.
10205 (syms_of_w32term): Staticpro help_echo_object.
10206 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
10207 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
10208 (x_clear_mouse_face): New function.
10209 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
10210 (x_update_window_begin): No need to turn off the mouse
10212 (show_mouse_face): Set the mouse_face_p flag of glyph rows
10213 depending on whether they contain glyphs highlighted in mouse-face.
10214 (x_fill_stretch_glyph_string): Consume runs of stretch
10215 glyphs instead of a single one.
10216 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10217 with new argument list.
10218 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10219 (x_append_glyph, x_append_composite_glyph)
10220 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10221 changes in struct glyph starting 1999-12-27. See comments for
10222 xterm.c on 2000-07-05.
10224 2000-07-14 Sam Steingold <sds@gnu.org>
10226 * xfaces.c (realize_x_face): Fix the last patch:
10227 check `default_face' before dereferencing.
10229 2000-07-14 Dave Love <fx@gnu.org>
10231 * syntax.c (back_comment): Add null default in switch (for pcc).
10233 2000-07-14 Kenichi Handa <handa@etl.go.jp>
10235 * xfaces.c (realize_x_face): Make fontset using the base of the
10236 default_face's fontset, not using the default fontset.
10238 * coding.c (inhibit_iso_escape_detection): New variable.
10239 (syms_of_coding): Make it a Lisp variable.
10240 (detect_coding_iso2022): If inhibit_iso_escape_detection is
10241 nonzero, ignore ISO2022's escape sequence.
10243 2000-07-14 Gerd Moellmann <gerd@gnu.org>
10245 * alloca.c (malloc) [emacs]: Define as xmalloc.
10247 * xfns.c (Fx_show_tip): If frame parameters contain a position,
10248 use that instead of the mouse position. Add parameters DX and DY.
10250 * dispextern.h (Fx_show_tip): Adjust number of parameters
10253 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
10254 if HELP is a function, call it with OBJECT and POS as parameters
10255 to get the help to display.
10256 (gen_help_event, kbd_buffer_store_help_event): New functions.
10257 (kbd_buffer_get_event): Construct the Lisp help-event differently.
10258 (read_char): Call show_help_echo with new parameters.
10260 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
10263 * xterm.c (help_echo_object, help_echo_pos): New variables.
10264 (note_mode_line_highlight): Store additional information about the
10265 help-echo in help_echo_object and help_echo_pos. Check both
10266 `local-map' and `keymap' properties for changing the cursor
10267 (note_mouse_highlight): Store additional information about the
10268 help-echo in help_echo_object and help_echo_pos.
10269 (note_tool_bar_highlight): Set help_echo_object to nil and
10270 help_echo_pos to -1.
10271 (XTread_socket): Use gen_help_event instead of filling
10272 input_events manually.
10273 (syms_of_xterm): Staticpro help_echo_object.
10275 * xmenu.c (menu_highlight_callback): Use
10276 kbd_buffer_store_help_event instead of setting up and input_event
10277 structure manually.
10279 * xdisp.c (eval_form): GCPRO argument sexpr.
10280 (call_function): New function.
10281 (handle_single_display_prop): Use call_function and FUNCTIONP
10282 instead of checking whether if font_height is a symbol and
10285 * eval.c (internal_condition_case_2): New function.
10287 * lisp.h (FUNCTIONP): New macro.
10288 (internal_condition_case_2, call_function): Add prototypes.
10290 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
10291 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
10292 Always set `arg' member of input_events.
10293 (construct_menu_click): Unused function removed.
10295 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
10297 * w32term.c (construct_mouse_click, construct_mouse_wheel)
10298 (construct_drag_n_drop, x_scroll_bar_handle_click)
10299 (w32_read_socket): Always set `arg' member of input_events.
10301 * keyboard.c (show_help_echo): Use eval_form. Add comment.
10303 * lisp.h (eval_form): Add prototype.
10305 * xdisp.c (eval_form): Make it externally visible.
10307 2000-07-13 Gerd Moellmann <gerd@gnu.org>
10309 * xterm.c (x_handle_tool_bar_click): Store the frame in the
10310 frame_or_window slot of TOOL_BAR_EVENT input events instead of
10311 consing. For prefix events, store the frame in the `arg' slot of
10312 the event, otherwise store the key there.
10313 (XTread_socket): Instead of consing, use the frame_or_window slot
10314 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
10316 * xmenu.c (menu_highlight_callback): Store help string in the
10317 `arg' member of the input event; don't cons.
10318 (menubar_selection_callback): Use the `arg' slot of input events
10319 to queue additional information, instead of consing.
10321 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
10323 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
10325 (w32_read_socket): Adapt to changes in HELP_EVENTs.
10327 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
10328 input events to queue additional information, instead of consing.
10330 * keyboard.c (kbd_buffer_gcpro): Renamed from
10331 kbd_buffer_frame_or_window. Now used for all Lisp objects
10332 referenced from the input queue.
10333 (kbd_buffer_store_event): Always use structure assignment for
10334 copying input events. Record all Lisp objects referenced from
10335 events in kbd_buffer_gcpro.
10336 (kbd_buffer_get_event): Construct Lisp `help-echo' events
10337 differently from input events. Test for prefix menu_bar_events
10338 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
10339 event in kbd_buffer_gcpro to nil.
10340 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
10341 frame_or_window is equal to its arg member as prefix events.
10342 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
10343 used by an input event to nil.
10344 (init_keyboard): Use two times the size of the input queue
10345 for kbd_buffer_gcpro.
10346 (syms_of_keyboard): Likewise.
10348 * emacs.c (handle_USR2_signal, handle_USR1_signal):
10349 Use USER_SIGNAL_EVENT.
10351 * termhooks.h (struct input_event): Add member `arg'.
10352 (MENU_BAR_EVENT): Renamed from menu_bar_event.
10353 (USER_SIGNAL_EVENT): Renamed from user_signal.
10355 * xfaces.c (ASET): Remove definition.
10357 * lisp.h (AREF, ASET, ASIZE): New macros.
10359 * fontset.c (AREF, ASIZE): Remove definitions.
10361 * fns.c (AREF): Remove definition.
10363 * composite.c (AREF): Remove definition.
10365 2000-07-12 Gerd Moellmann <gerd@gnu.org>
10367 * dispnew.c (redraw_overlapped_rows): Add missing local.
10368 (scrolling_window): Remove debug code.
10370 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
10371 Before scrolling, turn off a mouse-highlight in the window
10374 * xterm.c (x_update_window_end): Add parameter
10375 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
10376 redisplay in XTframe_up_to_date.
10377 (x_clear_mouse_face): New function.
10378 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
10380 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
10382 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
10383 it when any row is written to that contains glyphs highlighted in
10385 (update_window): Call the window update end hook with new
10386 parameter MOUSE_FACE_OVERWRITTEN_P.
10387 (direct_output_for_insert): Give up if row contains mouse-face.
10389 * dispextern.h (struct redisplay_interface): Add parameter
10390 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
10391 (clear_mouse_face): New function pointer member.
10393 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
10395 * syntax.c (back_comment): Use one switch rather than a few `if's.
10396 Obey open_paren_in_column_0_is_defun_start.
10397 When reverting to the `slow' method, try to nicely handle the case
10398 of nested comments by checking that the comment-starter we found
10399 does indeed match the comment-ender.
10400 (scan_sexps_forward, scan_sexps_forward):
10401 Ignore excessive opening parenthesis rather than throwing an error.
10403 2000-07-11 Gerd Moellmann <gerd@gnu.org>
10405 * doc.c (Fsubstitute_command_keys): Handle case that a GC
10406 in Fwhere_is_internal or get_keymap_1 relocates string contents.
10408 * dispnew.c (direct_output_forward_char): Give up if currently
10409 displaying a message instead of the minibuffer contents.
10411 * xterm.c (x_update_window_begin): No need to turn off the mouse
10413 (show_mouse_face): Set the mouse_face_p flag of glyph rows
10414 depending on whether they contain glyphs highlighted in mouse-face.
10416 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
10417 compare the mouse_face_p flags of both rows.
10419 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
10421 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
10423 * keyboard.c (show_help_echo): Accept additional parameter
10424 ok_to_overwrite_keystroke_echo.
10425 (read_char): Call show_help_echo with a zero
10426 ok_to_overwrite_keystroke_echo argument.
10427 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
10428 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
10429 ok_to_overwrite_keystroke_echo argument.
10430 * w32menu.c (w32_menu_display_help): Call show_help_echo with
10431 non-zero ok_to_overwrite_keystroke_echo argument.
10433 2000-07-10 Gerd Moellmann <gerd@gnu.org>
10435 * xdisp.c (try_window_id): If changes are all below what is
10436 displayed in the window, and point is in the window, we still
10437 might have to find point on the display.
10439 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
10440 glyphs instead of a single one.
10441 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10442 with new argument list.
10443 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10445 * keymap.c (get_keymap_1): Add comment that this function can GC.
10446 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
10447 comment that functions can GC.
10448 (Fset_keymap_parent): GCPRO arg KEYMAP.
10450 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
10452 * msdos.c (XMenuActivate): After exiting the menu, restore the
10453 echo area message and erase it.
10455 2000-07-10 Kenichi Handa <handa@etl.go.jp>
10457 * fontset.c (Ffontset_info): Make the return value more compatible
10458 with that of Emacs 20.
10460 2000-07-07 Gerd Moellmann <gerd@gnu.org>
10462 * eval.c (Fsignal): Handle case that backtrace_list is null.
10464 2000-07-07 Kenichi Handa <handa@etl.go.jp>
10466 * ccl.c (Fccl_execute): Typo fixed.
10468 2000-07-06 Gerd Moellmann <gerd@gnu.org>
10470 * window.c (window_loop): Add missing gcpro1 local variable.
10472 * window.c (Fwindow_list): Reverse list at the end.
10473 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
10474 means allow windows on OWINDOW's frame, only.
10475 (window_loop): Simplified; use Fwindow_list.
10477 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
10479 2000-07-05 Gerd Moellmann <gerd@gnu.org>
10481 * xterm.c (XTread_socket): Increment handling_signal at the start,
10482 decrement it at the end.
10484 * eval.c (handling_signal): New variable.
10485 (Fsignal): Abort if handling_signal is non-zero.
10487 * lisp.h (handling_signal): External declaration.
10489 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
10491 2000-07-05 Ken Raeburn <raeburn@gnu.org>
10493 Sound support for NetBSD through "Linux emulation" support:
10494 * config.in (HAVE_SOUNDCARD_H): Undef.
10495 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
10496 * Makefile.in (LIBSOUND): New variable.
10497 (LIBES): Include it.
10498 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
10499 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
10500 (vox_open): Use DEFAULT_SOUND_DEVICE.
10501 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
10503 2000-07-05 Gerd Moellmann <gerd@gnu.org>
10505 * print.c (print_error_message): If Vsignaling_function is set,
10506 show it in *Messages*.
10508 * lisp.h (Vsignaling_function): External declaration.
10510 * eval.c (Vsignaling_function): New variable.
10511 (Fsignal): Compute it.
10512 (syms_of_eval): Staticpro it.
10514 2000-07-05 Dave Love <fx@gnu.org>
10516 * syswait.h: Use the autoconf recommended approach. Old code
10517 #if'd out in case we need to revert.
10519 * config.in (HAVE_SYS_WAIT_H): Added.
10521 2000-07-05 Andrew Innes <andrewi@gnu.org>
10523 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
10524 when non-NULL instead of __morecore, to take account of buffer
10525 memory. This also solves a problem with spurious memory warnings
10528 * ralloc.c: Make real_morecore non-static.
10530 * eval.c (internal_condition_case): Comment out abort if
10531 interrupt_input_blocked is not zero.
10533 * makefile.nt: Add support for `bootstrap' and related targets.
10534 Include minimal debug info in emacs.exe in release build.
10535 Remove all dependencies on lisp.h, and fixup some others.
10537 * w32.c (init_environment): Install code from 20.7 for providing
10538 default values for environment variables, based on the
10539 executable's own location.
10540 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
10541 (sys_socket): Install socket inheritance bug fix from 20.7.
10543 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
10544 here via blockinput.h).
10546 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
10548 * w32menu.c (w32_menu_display_help):
10549 * xmenu.c (menu_help_callback): Use show_help_echo.
10551 * keyboard.h (show_help_echo): Declare.
10553 * keyboard.c (show_help_echo): New function, extracted from read_char.
10554 Feval its `msg' argument if it's a cons cell.
10555 (read_char): Use it.
10556 (follow_key): Pass `autoload' to get_keyelt.
10558 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
10559 (note_tool_bar_highlight, XTread_socket):
10560 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
10562 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
10563 (note_tool_bar_highlight, w32_read_socket):
10564 Do not gratuitously ignore non-string `help-echo' properties.
10566 2000-07-05 Gerd Moellmann <gerd@gnu.org>
10568 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
10570 * window.c (delete_all_subwindows): Reset Vwindow_list.
10572 * xterm.c (x_append_glyph, x_append_composite_glyph)
10573 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10574 changes in struct glyph starting 1999-12-27. Some bit-fields of
10575 struct glyph were not set, which made glyphs unequal when compared
10576 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
10577 effects were the result. This also depended on the contents of
10578 memory returned by xmalloc. If flickering happens again, activate
10579 the code in clear_glyph_row that's in #if 0. If the flickering is
10580 gone with that, chances are that it is caused by something similar.
10582 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
10584 * dispextern.h: Add some comments.
10586 * window.c (add_window_to_list): Add parameter LIST.
10587 (window_list): Order list so that, for each frame, windows are
10588 in canonical order, and so that frames appear in the list in
10589 the order given by Vframe_list.
10590 (next_window): Reverse the handling of NEXT_P.
10592 2000-07-04 Gerd Moellmann <gerd@gnu.org>
10594 * window.c (Vwindow_list): New variable.
10595 (make_window, delete_window): Set Vwindow_list to nil.
10596 (check_window_containing): New function.
10597 (window_from_coordinates): Rewritten.
10598 (add_window_to_list, window_list, candidate_window_p)
10599 (decode_next_window_args, next_window): New functions.
10600 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
10601 (Fwindow_list): New function.
10602 (Fother_window): Cleaned up.
10603 (foreach_window): Add a longer "variable argument list". Let
10604 callback function return 0 to indicate that cycling over windows
10606 (foreach_window_1): Likewise.
10607 (freeze_window_start): Return int.
10608 (init_window): New function.
10609 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
10611 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
10612 input_event with bzero.
10613 (main): Call init_window.
10615 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
10618 2000-07-04 Kenichi Handa <handa@etl.go.jp>
10620 * composite.h (make_composition_value_copy): Extern it.
10622 * composite.c (make_composition_value_copy): New function.
10624 * editfns.c (Fformat): While copying text properties, make each
10625 composition property value a copy.
10627 * fns.c (concat): While copying text properties, make each
10628 composition property value a copy.
10630 2000-07-03 Gerd Moellmann <gerd@gnu.org>
10632 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
10634 * fns.c (sweep_weak_table): Mark only objects that are not
10637 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
10638 include those frames as candidates which have their focus
10639 redirected to the minibuffer frame.
10641 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
10643 * fns.c (Fputhash): Return `value' rather than nil.
10645 2000-06-30 Gerd Moellmann <gerd@gnu.org>
10647 * frame.c (next_frame): Don't check focus redirection in case
10648 MINIBUF is a window. Doing so excludes frames using MINIBUF
10649 unless their focus is redirected, which contradicts the
10650 specification of next-frame, and leads to infinite loops in
10651 certain situations when cycling through windows with next-window.
10653 2000-06-30 Kenichi Handa <handa@etl.go.jp>
10655 * coding.c (code_convert_region): Even if the length of text is
10656 zero, try to convert it if coding->type is coding_type_ccl.
10657 (decode_coding_string, encode_coding_string): Likewise.
10659 2000-06-28 Gerd Moellmann <gerd@gnu.org>
10661 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
10662 the display if windows_or_buffers_changed.
10664 * dispnew.c (struct row_entry): New structure.
10665 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
10666 (row_table_size, old_lines, new_lines, old_lines_size)
10667 (new_lines_size, run_pool, runs_size, runs): New variables.
10668 (add_row_entry): New function.
10669 (scrolling_window): Use data structures allocated with xmalloc and
10670 held in global variables, instead of allocating them with alloca and
10671 holding them in local variables. Use a larger hash table whose
10672 size depends on glyph matrix sizes. Don't use bzero to clear the
10673 hash table; instead, clear used slots only.
10675 * fns.c (next_almost_prime): Make it externally visible.
10677 * lisp.h (next_almost_prime): Add prototype.
10679 * s/isc4-0.h (sigunblock): Define.
10681 * s/sco5.h (sigunblock): Define.
10683 2000-06-27 Dave Love <fx@gnu.org>
10685 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
10686 (moved to osf5-0.h).
10687 [!NOT_C_CODE]: Protect string.h stuff.
10689 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
10690 (sys_siglist, NSIG): Definitions moved here from osf1.h.
10692 2000-06-27 Gerd Moellmann <gerd@gnu.org>
10694 * xdisp.c (resize_mini_window): Subtract the extra line spacing
10695 below the last line from the needed window height.
10697 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
10699 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
10700 (Fwidget_get): Use it.
10701 (syms_of_fns): Defsubr it.
10703 2000-06-26 Gerd Moellmann <gerd@gnu.org>
10705 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
10706 display info for XIM.
10707 (xim_open_dpy): Likewise.
10708 (xim_close_dpy): Don't free the display info's XIM.
10710 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
10712 * config.in (USE_XIM): New define.
10714 * keymap.c (get_keyelt): For menu-items containing a `:filter
10715 FILTER', apply FILTER to the menu-item's definition to get the
10716 real definition to use.
10718 * lisp.h (QCfilter): External declaration.
10720 * xfns.c (Fimage_size): New function.
10721 (syms_of_xfns): Defsubr it.
10723 2000-06-26 Andreas Schwab <schwab@suse.de>
10725 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
10726 Fstring_as_unibyte.
10728 2000-06-25 Dave Love <fx@gnu.org>
10730 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
10732 * Makefile.in (blockinput.h): Depend on atimer.h.
10733 (atimer.h): Depend on systime.h.
10735 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
10737 * atimer.h: Protect against multiple inclusion. Include systime.h.
10739 * lisp.h (swap_in_global_binding): Declare.
10741 2000-06-24 Ken Raeburn <raeburn@gnu.org>
10743 * process.c (Fopen_network_stream): Turn off atimers for duration
10744 of call to connect. (Patch from Gerd.)
10746 2000-06-23 Dave Love <fx@gnu.org>
10748 * ralloc.c: Maybe include unistd.h
10750 * emacs.c (setgrp): Undefine before defining.
10751 (malloc_warning, set_time_zone_rule, index): Prototype.
10753 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
10754 HAVE_STRUCT_TIMEZONE.
10756 * s/osf1.h: Move string.h hack here from alpha.h and make it
10758 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
10760 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
10761 (SOCKLEN_TYPE): Don't define.
10763 * m/alpha.h: Remove string.h hack.
10765 * s/osf5-0.h: New file.
10767 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
10768 include time.h, done by systime.h.
10769 [__FreeBSD__]: Remove redundant includes.
10771 * callproc.c (setpgrp): Undefine before defining.
10772 (delete_temp_file): Return Qnil to avoid warning.
10774 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
10776 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
10779 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
10781 * composite.h (compose_text): Declare.
10783 * xterm.c: Don't include sys/types.h unconditionally. Don't
10784 protect its inclusion with !USG (following xmenu.c).
10786 2000-06-23 Gerd Moellmann <gerd@gnu.org>
10788 * xfns.c (x_create_tip_frame): Initialize frame's colors like
10791 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10793 * coding.c (decode_eol_post_ccl): Special handling for undecided
10794 and inconsistent EOL types.
10796 2000-06-22 Gerd Moellmann <gerd@gnu.org>
10798 * xrdb.c (x_load_resources): Add default resource for scroll bar's
10799 trough color and main window's background color.
10801 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
10803 * xterm.h (Xt_app_con): External declaration.
10805 * widget.c (EmacsFrameRealize): Fix typo.
10807 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
10809 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
10810 (handle_invisible_prop): Record the start of invisible text in
10811 it->add_overlay_start.
10812 (struct overlay_entry): Add member `overlay'.
10813 (handle_overlay_change): Simplify.
10814 (next_overlay_string): After having processed overlay strings at the
10815 end of the buffer, record that fact in
10816 it->overlay_strings_at_end_processed_p.
10817 (compare_overlay_entries): If before- and after-strings come
10818 from the same overlay, let before-strings come first.
10819 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
10820 (load_overlay_strings): Take it->add_overlay_start into account
10821 when adding overlay strings.
10823 * dispextern.h (struct it): Add member add_overlay_start.
10825 2000-06-22 Dave Love <fx@gnu.org>
10827 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
10829 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
10831 2000-06-22 Kenichi Handa <handa@etl.go.jp>
10833 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
10836 2000-06-21 Dave Love <fx@gnu.org>
10838 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
10840 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
10842 * syntax.c (back_comment): Simplify string-parity counting (with
10843 the added benefit of handling multiple string-styles as long as
10844 they are not intertwined).
10845 Jump to the slow code as soon as a comment starter is found in
10846 a "string_lossage" position. Fixes the case: " /* " /* " */.
10848 2000-06-21 Dave Love <fx@gnu.org>
10850 * Makefile.in: Use GETLOADAVG_LIBS.
10852 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
10853 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
10855 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10857 * syntax.c (describe_syntax): Recognize the `n'estable bit.
10858 (Fforward_comment, scan_lists):
10859 Check the comstyle of single-char comment-starters.
10860 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
10861 we're just at the beginning of the comment (f.ex with (*) ... (*)).
10862 Check the comstyle of single-char comment-starters.
10863 Clarify control-flow around the Scomment case.
10865 2000-06-20 Dave Love <fx@gnu.org>
10867 * fns.c (make_hash_table, maybe_resize_hash_table):
10868 Cast arg of next_almost_prime.
10870 * tparam.c [emacs]: Include lisp.h.
10872 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
10875 2000-06-20 Gerd Moellmann <gerd@gnu.org>
10877 * keyboard.c (adjust_point_for_property): Check if display
10878 property should be treated as intangible by looking at its value.
10880 * xdisp.c (single_display_prop_intangible_p)
10881 (display_prop_intangible_p): New functions.
10883 * dispextern.h (display_prop_intangible_p): Add prototype.
10885 * xdisp.c (dump_glyph_row): Show type of glyph->object.
10887 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
10888 argument to sigprocmask.
10890 * s/sco5.h (sigblock): Redefined to pass a pointer as second
10891 argument to sigprocmask.
10893 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
10894 sigprocmask_set, and pass a pointer to it to sigprocmask.
10896 * sysdep.c (sigprocmask_set): New variable.
10898 * fileio.c (make_temp_name): Don't use `%s' in string passed to
10901 2000-06-20 Sam Steingold <sds@gnu.org>
10903 * xrdb.c: Don't declare xmalloc, xrealloc.
10905 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10907 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
10908 (re_comp): Cast gettext return value to avoid complaints when
10911 2000-06-20 Dave Love <fx@gnu.org>
10913 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
10915 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
10917 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
10919 * m/alpha.h: Don't declare xmalloc, xrealloc.
10921 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
10923 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
10925 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
10927 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
10930 * keyboard.h (poll_for_input_1): Declare.
10932 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
10934 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
10936 * doprnt.c: Don't declare xmalloc, xrealloc.
10938 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
10939 (getenv, ctime, getwd): Removed.
10940 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
10942 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
10943 x_set_tool_bar_lines.
10945 * config.in: Add HAVE_GETWD. Move some definitions above
10946 machine/system includes.
10948 2000-06-20 Kenichi Handa <handa@etl.go.jp>
10950 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
10952 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
10953 contain information about ENCODING.
10955 * fontset.c (FONTSET_ASCII): Use the first element of char table
10956 for an ASCII font, not defalt slot.
10957 (fontset_ref_via_base): If FONTSET doesn't contain information for
10958 C, try the default fontset.
10959 (make_fontset): Don't copy the default fontset.
10960 (fontset_font_pattern): Likewise.
10961 (accumulate_font_info): If ELT is nil, use the corresponding
10962 element in the default fontset.
10964 2000-06-19 Dave Love <fx@gnu.org>
10966 * syntax.c (Fparse_partial_sexp): Doc fix.
10968 * regex.h: Test PROTOTYPES as well as __STDC__.
10970 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
10971 errno, strerror. Put text after #endif in comment.
10973 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
10975 * xterm.c (x_frame_of_widget): Likewise.
10977 2000-06-19 Gerd Moellmann <gerd@gnu.org>
10979 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
10980 to Vfundamental_mode_abbrev_table.
10982 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
10983 bogus objects are marked. This slows down GC by ~80 percent, but
10984 it might be worth trying when debugging GC-related problems.
10985 This feature requires conservative stack marking to be enabled.
10987 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
10988 returns XLookupChars, reset `modifiers' to zero.
10990 2000-06-19 Dave Love <fx@gnu.org>
10992 * mktime.c: Unprotoized.
10994 2000-06-19 Richard Stallman <rms@gnu.org>
10996 * data.c (set_internal): If variable is frame-local,
10997 store the new value immediately into the frame parameter alist.
10999 2000-06-19 Ken Raeburn <raeburn@gnu.org>
11001 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
11002 in the custom handler pointer.
11004 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
11005 value, or checks for CHAR_META can fail when Lisp_Object is a
11007 * keymap.c (get_keyelt): Likewise.
11009 2000-06-19 Kenichi Handa <handa@etl.go.jp>
11011 * ccl.h (struct ccl_program): New member eol_type.
11012 (struct ccl_spec): New member cr_carryover.
11014 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
11015 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
11017 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
11018 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
11019 (decode_eol_post_ccl): New function.
11020 (decode_coding): Don't detect EOL format here for CCL based coding
11022 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
11023 decode_eol_post_ccl after running the CCL program.
11024 (code_convert_region): Don't detect EOL format here for CCL based
11026 (decode_coding_string): Likewise.
11028 2000-06-18 Ken Raeburn <raeburn@gnu.org>
11030 * charset.c (update_charset_table): Use XINT on "iso_final_char"
11031 when treating it as an integer.
11033 * coding.h (encode_coding_string): Declare.
11035 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
11038 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
11039 "xkeymap" to avoid shadowing the "enum map_type" value that needs
11040 to be passed to get_local_map.
11042 * sound.c (Fplay_sound): Don't call make_number on
11043 Frun_hook_with_args count argument.
11045 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
11046 for lisp objects in X event structure data field, when lisp
11047 objects are represented with unions.
11048 (x_scroll_bar_to_input_event): Ditto.
11050 2000-06-16 Ken Raeburn <raeburn@gnu.org>
11052 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
11053 termination of string. Fix sense of test whether
11054 Vline_number_display_limit is an integer.
11056 2000-06-16 Gerd Moellmann <gerd@gnu.org>
11058 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
11059 only if HAVE_X_WINDOWS.
11061 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
11064 * dispnew.c (update_frame_1): Handle case that cursor vpos is
11067 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
11069 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
11072 2000-06-15 Kenichi Handa <handa@etl.go.jp>
11074 * coding.c (decode_coding_emacs_mule): Always set src_base at the
11075 start of the while loop.
11077 2000-06-15 Gerd Moellmann <gerd@gnu.org>
11079 * atimer.c (alarm_signal_handler): Add forward declaration.
11081 * data.c (set_internal): Remove debug code.
11083 2000-06-14 Gerd Moellmann <gerd@gnu.org>
11085 * Makefile.in (bootstrap-temacs): Add `-I../src'.
11087 * unexec.c (toplevel) [COFF]: Include coff.h.
11089 * s/lynxos.h: New file.
11091 * keymap.c (Fsingle_key_description): Enclose function key and
11092 event symbol names in angle brackets.
11094 * xdisp.c (setup_echo_area_for_printing): Call
11095 message_log_maybe_newline if message_buf_print is not set.
11097 * print.c (printchar, strout): Don't check message_buf_print
11098 before calling setup_echo_area_for_printing because that
11099 function does something useful even when message_buf_print is
11102 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
11104 (ensure_echo_area_buffers): Initialize echo buffer's
11105 truncate lines setting to nil.
11106 (with_echo_area_buffer): Don't set the echo buffer's truncate
11107 lines setting here.
11108 (set_message_1): Set it here instead, based on the value
11109 of message_truncate_lines.
11110 (resize_mini_window): Handle case that lines are truncated.
11111 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
11112 DEFVAR_BOOL message-truncate-lines.
11114 * keyboard.c (read_char): Bind message-truncate-lines to t
11115 while displaying a help-echo.
11117 * lisp.h (Qmessage_truncate_lines): External declaration.
11119 2000-06-13 Gerd Moellmann <gerd@gnu.org>
11121 * xdisp.c (Vline_number_display_limit): Renamed from
11122 line_number_display_limit.
11123 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
11124 Extend documentation string. Initialize
11125 Vline_number_display_limit to nil meaning no limit.
11126 (decode_mode_spec): Use Vline_number_display_limit with its new
11129 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
11131 2000-06-13 Richard Stallman <rms@gnu.org>
11133 * frame.c (Fmodify_frame_parameters): Doc fix.
11135 * xfns.c (x_set_frame_parameters): Comment fix.
11137 * frame.c (store_frame_param): Call swap_in_global_binding if the
11138 variable's current binding was chosen based on this frame.
11140 * data.c (swap_in_global_binding): New function.
11142 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11144 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
11145 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
11147 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11149 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
11151 2000-06-12 Jason Rumney <jasonr@gnu.org>
11153 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
11155 * w32.h (EMACS_W32_H): Renamed from _NT_H_
11157 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
11159 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
11161 2000-06-12 Gerd Moellmann <gerd@gnu.org>
11163 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
11164 (syms_of_xfaces): Defsubr Sdump_colors.
11165 (x_free_colors): Don't treat b&w specially on default visual.
11166 (x_free_dpy_colors): New function.
11167 (free_face_colors): Don't check visual class; it's done
11170 * xterm.c (x_frame_of_widget): New function.
11171 (x_alloc_nearest_color_for_widget): Use it.
11172 (x_copy_dpy_color): New function.
11173 (x_destroy_window): Free various colors.
11175 2000-06-12 Kenichi Handa <handa@etl.go.jp>
11177 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
11179 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
11181 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
11183 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
11185 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
11187 2000-06-11 Dave Love <fx@gnu.org>
11189 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
11191 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
11193 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
11195 2000-06-11 Gerd Moellmann <gerd@gnu.org>
11197 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
11200 2000-06-10 Kenichi Handa <handa@etl.go.jp>
11202 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
11203 (regex_compile): Fix the code for handling the case of single byte
11204 char and multibyte char being mixed in a range within [...].
11206 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
11207 and dst_multibyte members of coding.
11209 * charset.c (update_charset_table): Update the table
11210 bytes_by_char_head.
11211 (init_charset_once): Initialize elements of bytes_by_char_head to
11212 1 except for leading codes for private charases.
11214 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
11215 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
11217 2000-06-09 Ken Raeburn <raeburn@gnu.org>
11219 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
11220 access the data it doesn't point to.
11222 2000-06-08 Gerd Moellmann <gerd@gnu.org>
11224 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
11225 will be translated to a switch-frame event when reading the
11226 event queue. This is necessary because Emacs otherwise won't
11227 perform a switch-frame to a new frame until some other event, for
11228 example a keystroke event, forces it to do so. This has various
11229 effects, one visible being that the cursor of a frame created with
11230 C-x 5 2 or switched to with a window manager key binding like
11231 A-TAB stays hollow because selected_window isn't on the newly
11232 focused frame until the switch-frame is performed.
11234 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
11235 generating a switch-frame event if necessary.
11237 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
11239 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
11242 2000-06-08 Kenichi Handa <handa@etl.go.jp>
11244 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
11246 2000-06-07 Gerd Moellmann <gerd@gnu.org>
11248 * window.c (displayed_window_lines): Take empty lines at
11249 the bottom of a window into account.
11251 * window.c (displayed_window_lines): New function.
11252 (Fmove_to_window_line): Use displayed_window_lines to determine
11253 the number of lines to move, instead of using the window's height.
11255 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
11256 to stop reading, even if the form read sets point to a different
11257 value when evaluated.
11259 * xdisp.c (display_line): Fix code deciding in which line to
11262 2000-06-07 Kenichi Handa <handa@etl.go.jp>
11264 * fileio.c (e_write): Free composition data if stored in
11267 2000-06-06 Gerd Moellmann <gerd@gnu.org>
11269 * xdisp.c (display_line): Set row's and iterator's
11270 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
11271 Set cursor even if row ends in the middle of a character.
11272 (dump_glyph_row): Print values of new flags.
11273 (redisplay_window) <cursor movement in unchanged window>: When
11274 point has been moved forward, and PT is at the end of the cursor
11275 row, don't place the cursor in the next row if the cursor row ends
11276 in the middle of a character or at ZV.
11278 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
11279 (struct glyph_row): Add starts_in_middle_of_char_p and
11280 ends_in_middle_of_char_p.
11281 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
11282 ends_in_middle_of_char_p flag.
11283 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
11285 * term.c (append_glyph): Revert change of 2000-06-06.
11287 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
11288 padding glyph not fitting on line as whole character not
11291 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
11292 this isn't true for images with `:ascent 100'.
11294 2000-06-06 Kenichi Handa <handa@etl.go.jp>
11296 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
11297 as modified if it is originally unmodified.
11299 * term.c (encode_terminal_code): Change the way to check if
11300 terminal coding does any conversion.
11301 (append_glyph): Set glyph->pixel_width correctly.
11303 * xdisp.c (display_line): While checking line continuation, pay
11304 attention to a padding glyph.
11306 2000-06-05 Gerd Moellmann <gerd@gnu.org>
11308 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
11310 2000-06-05 Dave Love <fx@gnu.org>
11312 * xdisp.c: Include fontset.h.
11314 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
11316 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11318 * dispnew.c: Conditionally include term.h.
11320 * coding.h: Declare code_convert_string_norecord.
11322 * frame.h (struct frame): Use volatile unconditionally.
11324 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
11326 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
11328 * systime.h: Protect against multiple inclusion.
11329 (timezone) [USG5_4]: Define as time_t.
11331 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11332 (Foptimize_char_table, make_temp_name): Declare.
11334 * Makefile.in (xdisp.o): Depend on fontset.h.
11336 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11338 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11339 (Foptimize_char_table, make_temp_name): Declare.
11343 * s/netbsd.h: Don't define autoconfiscated MATHERR.
11345 2000-06-02 Dave Love <fx@gnu.org>
11347 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
11349 2000-06-02 Gerd Moellmann <gerd@gnu.org>
11351 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
11352 result face, set flags in that face indicating that colors may not
11355 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
11356 glyph, use the ASCII NUL character to determine the face.
11358 2000-06-02 Dave Love <fx@gnu.org>
11360 * sysdep.c: Conditionally include stdlib.h, unistd.h.
11361 (VFORK_RETURN_TYPE): Remove.
11363 * config.in: Add NO_MATHERR.
11365 2000-06-01 Dave Love <fx@gnu.org>
11367 * cmds.c (internal_self_insert): Don't check
11368 Vbefore_change_function, Vafter_change_function.
11370 * insdel.c (signal_before_change, signal_after_change): Likewise.
11372 * buffer.c (Vbefore_change_function, Vafter_change_function):
11373 Variables and their initializations deleted.
11375 * callint.c (Fcall_interactively): Doc fix.
11377 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
11379 2000-05-31 Dave Love <fx@gnu.org>
11381 * textprop.c: Revert last change -- duplicated.
11383 2000-05-31 Gerd Moellmann <gerd@gnu.org>
11385 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
11388 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
11390 2000-05-31 Jason Rumney <jasonr@gnu.org>
11392 * search.c (Fre_search_forward, Fre_search_backward)
11393 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
11395 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
11397 2000-05-30 Jason Rumney <jasonr@gnu.org>
11399 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
11400 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
11402 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
11404 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
11405 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
11406 expand a nil default_filename.
11408 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
11409 pointer to glyph_to_pixel_coords, not a frame.
11411 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
11412 coding.h to dependencies.
11414 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
11416 * w32console.c (glyph_to_pixel_coords): Change first parameter to
11417 window pointer to be consistent with w32term.c and xterm.c.
11419 * w32fns.c: Format and doc changes to bring closer to xfns.c.
11420 (VIETNAMESE_CHARSET): Define if not defined in system headers.
11421 (Qline_spacing, Qcenter): New variables.
11422 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
11423 (x_set_line_spacing): New function.
11424 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
11425 (x_specified_cursor_type): New function.
11426 (x_set_cursor_type): Use it.
11427 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
11429 (validate_x_resource_name, x_get_resource_string): Measure lengths
11430 of external strings in bytes.
11431 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
11432 GetTextExtentPoint32 with NULL title.
11433 (Fx_create_frame): Initialize Qline_spacing.
11434 (w32_load_system_font): Initialize font->double_byte_p.
11435 (x_to_w32_charset): Use Vw32_charset_info_alist.
11436 (Image, busy cursor, tooltip functions): Merged changes from
11437 xfns.c. Not yet functional on Windows.
11439 * w32gui.h (W32FontStruct): Add double_byte_p member.
11441 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
11442 (emacs_button_translation): Use it.
11443 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
11444 in `mask' to be set.
11446 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
11449 * w32term.c: Format and doc changes to bring closer to xterm.c.
11450 (w32_char_font_type): New enum.
11451 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
11452 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
11453 (w32_encode_char): New function.
11454 (x_encode_char): Removed.
11455 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
11456 x_encode_char and w32_font_is_double_byte.
11457 (x_produce_image_glyph): Use image_ascent.
11458 (x_produce_glyphs): Use new version of w32_per_char_metric and
11459 handle NULL return value. Allow extra line spacing.
11460 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
11461 (w32_get_glyph_overhangs): Remove unicode_p param. Use
11462 w32_font_type member of glyph instead.
11463 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
11464 (fast_find_position): Make sure not to consider rows not visible
11466 (w32_read_socket) [WM_MENUSELECT]: Cannot call
11467 w32_menu_display_help with input blocked, as it can abort.
11468 (x_display_and_set_cursor): Choose cursor depending
11469 on buffer-local value of cursor_type.
11470 (x_draw_bar_cursor): Add parameter WIDTH.
11472 * w32term.h (CP_DEFAULT): Define.
11473 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
11475 2000-05-30 Gerd Moellmann <gerd@gnu.org>
11477 * search.c (Fre_search_forward, Fre_search_backward)
11478 (Fposix_search_backward, Fposix_search_forward): Doc fix.
11480 2000-05-30 Kenichi Handa <handa@etl.go.jp>
11482 * coding.c (detect_coding_iso2022): Fix code for checking
11483 CODING_CATEGORY_MASK_ISO_8_2.
11485 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
11487 * regex.c (PREFETCH_NOLIMIT): New function.
11488 (re_match_2_internal): Use it and adjust the end_match_2 logic.
11490 2000-05-29 Gerd Moellmann <gerd@gnu.org>
11492 * syntax.c (find_defun_start): Move test for
11493 open_paren_in_column_0_is_defun_start outside of the loop.
11495 * xdisp.c (redisplay_window): Really switch buffers when
11496 displaying mode lines, and temporarily set selected_frame to the
11497 frame of the window that's redisplayed.
11499 * xfaces.c (free_realized_faces): Block/unblock input.
11500 (free_realized_multibyte_face): Ditto.
11502 2000-05-29 Dave Love <fx@gnu.org>
11504 * textprop.c (Qkeymap): New variable.
11505 (syms_of_textprop): Intern it.
11507 * keymap.c: Include intervals.h.
11508 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
11510 * Makefile.in (keymap.o): Depend on intervals.h.
11512 * keyboard.c (menu_bar_items, tool_bar_items)
11513 (Fexecute_extended_command): Deal with `keymap' property.
11514 (read_key_sequence): Track map from `keymap' property as well as
11517 * intervals.c (get_local_map): Extra arg to allow looking for
11520 * intervals.h (map_property): New enum.
11521 (get_local_map): Extra arg using it.
11522 (Qkeymap): Declare.
11524 * lisp.h (get_local_map): Don't declare here.
11526 2000-05-29 Kenichi Handa <handa@etl.go.jp>
11528 * Makefile.in (callproc.o): Depend on composite.h.
11530 * callproc.c: Include composite.h.
11531 (Fcall_process): Handle composition correctly.
11533 * coding.h (coding_allocate_composition_data): Extern it.
11534 (coding_restore_composition): Likewise.
11536 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
11537 yet allocated, finish decoding with result
11538 CODING_FINISH_INSUFFICIENT_CMP.
11539 (coding_allocate_composition_data): Make it non-static.
11540 (coding_restore_composition): Likewise.
11542 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
11544 * charset.c (syms_of_charset): Revert last change.
11546 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11548 * term.c (produce_glyphs): Treat characters from the eight-bit-*
11549 charsets as unibyte, with 1-column screen width. Sent by Kenichi
11552 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11554 * charset.c (syms_of_charset): Set width of character sets
11555 eight-bit-control and eight-bit-graphic to 1 column.
11557 2000-05-26 Gerd Moellmann <gerd@gnu.org>
11559 * config.in (HAVE_SPEED_T): New define.
11561 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
11564 2000-05-26 Dave Love <fx@gnu.org>
11566 * coding.c (shrink_decoding_region): Initialize eol_conversion.
11568 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
11569 (Fsubr_arity): New function.
11570 (syms_of_data): Install them.
11572 2000-05-26 Kenichi Handa <handa@etl.go.jp>
11574 * charset.c (init_charset_once): Set the table bytes_by_char_head
11577 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
11578 the default fontset to what Emacs uses by default.
11579 (check_registry_encoding): This function deleted.
11580 (Fset_fontset_font): Remove the adhoc condition for the default
11581 fontset. Allow cons in FONTNAME.
11583 * fns.c (map_char_table): Ignore char-table entries for
11584 charsets eight-bit-control and eight-bit-graphic.
11586 2000-05-25 Ken Raeburn <raeburn@gnu.org>
11588 * emacs.c (main): Initialize keyboard syms before initializing
11589 window code, so face names are available.
11591 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
11593 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
11594 of an anchor at the beginning of a shy-group.
11596 2000-05-25 Gerd Moellmann <gerd@gnu.org>
11598 * xdisp.c (handle_invisible_prop): Don't try to skip over
11599 invisible text if end of text is already reached.
11601 2000-05-25 Dave Love <fx@gnu.org>
11603 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
11605 * coding.c (encode_eol): Add null statement after label.
11607 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
11609 * w16select.c (Fw16_set_clipboard_data): Fix the change from
11612 2000-05-25 Kenichi Handa <handa@etl.go.jp>
11614 * ccl.c (ccl_driver): Fix previous change.
11616 2000-05-25 Kenichi Handa <handa@etl.go.jp>
11618 * coding.c (run_pre_post_conversion_on_str): Set point to the
11619 beginning of buffer before calling coding->post_read_conversion.
11620 (decode_coding_string): Give correct args to
11621 run_pre_post_conversion_on_str.
11622 (encode_coding_string): Likewise.
11624 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
11625 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
11626 eight-bit-graphic correctly.
11628 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
11630 * fileio.c (Finsert_file_contents): Even if a file is not found,
11631 execute codes for setting up coding system. Call
11632 after-insert-file-functions unconditionally.
11634 2000-05-24 Gerd Moellmann <gerd@gnu.org>
11636 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
11637 BSD_PGRPS are not defined.
11639 2000-05-24 Kenichi Handa <handa@etl.go.jp>
11641 * charset.c (update_charset_table): Accept nil in LONG_NAME and
11643 (syms_of_charset): Avoid building same strings.
11645 2000-05-23 Gerd Moellmann <gerd@gnu.org>
11647 * lread.c (Fload): Add a comment about the meaning of
11648 Vuser_init_file being t.
11650 * puresize.h (BASE_PURESIZE): Increase to 675000.
11652 * s/gnu-linux.h (setpgrp): Don't define it here because this
11653 prevents compilation on GNU/Linux systems with glib 2.2.
11655 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
11658 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
11660 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
11661 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
11663 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
11665 2000-05-23 Kenichi Handa <handa@etl.go.jp>
11667 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11669 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
11671 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
11673 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
11675 2000-05-22 Kenichi Handa <handa@etl.go.jp>
11677 * keyboard.c (read_char): Allow character codes 128..255 to be
11678 handled by input-method-function.
11680 * insdel.c (adjust_markers_for_replace): Fix previous change.
11681 (adjust_after_replace): If PREV_TEXT is nil, call
11682 adjust_markers_for_insert, not adjust_markers_for_replace.
11684 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
11686 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
11687 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
11688 [HAVE_GRANDPT]: Define.
11689 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
11691 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
11694 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
11696 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
11698 2000-05-20 Kenichi Handa <handa@etl.go.jp>
11700 The following changes are to handle 8-bit characters in a
11701 multibyte buffer/string without facing with byte combining
11702 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
11703 eight-bit-graphic (for 0xA0..0xFF) are introduced.
11705 * Makefile.in (fns.o): Depend on charset.h.
11707 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
11708 convert it to unibyte.
11709 (make_string): Use parse_str_as_multibyte, not chars_in_text.
11711 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
11712 apparent char boundary.
11713 (Fset_buffer_multibyte): Convert 8-bit characters in the range
11714 0x80..0x9F to/from multibyte form.
11716 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
11719 * callproc.c (Fcall_process): Always encode an argument string if
11720 it is multibyte. Setup src_multibyte and dst_multibyte members of
11721 process_coding properly.
11723 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
11724 SPLIT_NON_ASCII_CHAR.
11726 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
11728 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
11730 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
11731 (SPLIT_CHARACTER_SEQ): This macro deleted.
11732 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
11733 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
11734 and eight-bit-graphic.
11735 (char_to_string): Likewise. Signal an error for too large
11737 (char_printable_p): Return 0 for 8-bit characters.
11738 (update_charset_table): Update iso_charset_table only when a final
11739 character is non-negative.
11740 (find_charset_in_text): Renamed from find_charset_in_str.
11741 Arguments and return value changed. Callers changed.
11742 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
11743 be -1 if CHARSET is used only internally.
11744 (Fmake_char_internal): Handle new charsets; eight-bit-control and
11746 (Fcharset_after): Simplified.
11747 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
11748 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
11749 (multibyte_chars_in_text): Simplified by assuming there's no
11750 invalid multibyte sequence.
11751 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
11752 (str_as_unibyte): New functions.
11753 (Fstring): Simpified by assuming that byte combining never happens.
11754 (init_charset_once): Initialization for
11755 LEADING_CODE_8_BIT_CONTROL.
11756 (syms_of_charset): Intern and staticpro Qeight_bit_control and
11757 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
11758 eight-bit-control and eight-bit-graphic.
11760 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
11761 (CHARSET_8_BIT_GRAPHIC): New macros.
11762 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
11763 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
11764 (CHARSET_REVERSE_CHARSET): Likewise.
11765 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
11767 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
11768 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
11769 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
11770 encounter an invalid multibyte sequence.
11771 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
11772 sequence is always valid.
11773 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
11774 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
11775 (CHAR_STRING): For 8-bit characters, call char_to_string.
11776 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
11777 multibyte sequence is always valid.
11778 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
11779 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
11780 (str_as_unibyte): Extern them.
11781 (BCOPY_SHORT): Fix a bug.
11782 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
11783 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
11784 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
11785 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
11787 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
11788 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
11789 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
11790 (EMIT_BYTES): New macros.
11791 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
11792 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
11794 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
11795 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
11796 check the validity of multibyte sequence.
11797 (decode_coding_emacs_mule): New function.
11798 (encode_coding_emacs_mule): New macro.
11799 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
11801 (DECODE_ISO_CHARACTER): Just return a character code.
11802 (DECODE_COMPOSITION_START): Set coding->result instead of result.
11803 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
11804 EMIT_CHAR to produced decoded characters. Exit the loop only by
11805 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
11807 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
11808 only position codes for an invalid character.
11809 (encode_designation_at_bol): Return new destination pointer. 5th
11810 arg DSTP is changed to DST.
11811 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
11812 from the source by ONE_MORE_CHAR. Don't handle the case of last
11814 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
11816 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
11817 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
11818 TWO_MORE_BYTES to fetch a byte from the source.
11819 (encode_eol): Pay attention to coding->src_multibyte.
11820 (detect_coding, detect_eol): Preserve members src_multibyte and
11822 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
11823 (encoding_buffer_size): Set magnification to 3 for all coding
11824 systems that require encoding.
11825 (ccl_coding_driver): For decoding, be sure that the result is
11826 valid multibyte sequence.
11827 (decode_coding): Initialize coding->errors and coding->result.
11828 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
11829 and raw-text, always call decode_eol. Handle the case of last
11830 block here. If not coding->dst_multibyte, convert the resulting
11831 sequence to unibyte.
11832 (encode_coding): Initialize coding->errors and coding->result.
11833 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
11834 and raw-text, always call encode_eol. Handle the case of last
11836 (shrink_decoding_region, shrink_encoding_region): Detect cases
11837 that we can't skip data more rigidly.
11838 (code_convert_region): Setup src_multibyte and dst_multibyte
11839 members of coding. For decoding, if the buffer is multibyte,
11840 convert the source sequence to unibyte in advance. For encoding,
11841 if the buffer is multibyte, convert the resulting sequence to
11842 multibyte afterward.
11843 (run_pre_post_conversion_on_str): New function.
11844 (code_convert_string): Deleted and divided into the following two.
11845 (decode_coding_string, encode_coding_string): New functions.
11846 (code_convert_string1, code_convert_string_norecord): Call one of
11848 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
11849 MAKE_NON_ASCII_CHAR.
11850 (Fset_terminal_coding_system_internal)
11851 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
11852 and dst_multibyte members.
11853 (init_coding_once): Initialize iso_code_class with new enum
11854 ISO_control_0 and ISO_control_1.
11856 * coding.h (enum iso_code_class_type): Member ISO_control_code is
11857 devided into ISO_control_0 and ISO_control_1.
11858 (struct coding_system): New members src_multibyte, dst_multibyte,
11859 errors, and result. Delete member fake_multibyte.
11860 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
11862 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
11865 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11868 * editfns.c (Fformat): Be sure to convert 8-bit characters to
11870 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
11872 (Ftranspose_region): Delete codes for handling byte combining.
11874 * fileio.c (Finsert_file_contents): Setup src_multibyte and
11875 dst_multibyte members of coding. On handling REPLACE on unibyte
11876 buffer, convert the result of decode_coding to unibyte. On
11877 inserting into a mutibyte buffer, always call code_convert_region.
11878 (e_write): Setup coding->src_multibyte according to the
11879 multibyteness of the source (buffer or string).
11881 * fns.c (concat): Handle 8-bit characters correctly.
11882 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
11883 unibyte in the result.
11884 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
11885 valid multibyte form in the result.
11886 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11887 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
11888 return -1, signal an error.
11889 (base64_encode_1): New arg MULTIBYTE. Get each character by
11890 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
11891 character is found, return -1.
11892 (Fbase64_decode_region): Delete codes for handling byte-combining.
11893 Treat each decoded byte as a unibyte character.
11894 (Fbase64_decode_string): Return unibyte string.
11895 (Fcompare_strings, concat, string_byte_to_char): Use
11896 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
11897 FETCH_STRING_CHAR_ADVANCE.
11898 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11899 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
11901 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
11902 SPLIT_NON_ASCII_CHAR.
11903 (fontset_ref_via_base, fontset_set): Likewise
11905 * insdel.c (adjust_markers_for_record_delete): Deleted.
11906 (adjust_markers_for_insert): Argument changed. Caller changed.
11907 (adjust_markers_for_replace): Likewise.
11908 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
11909 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
11910 (copy_text): Delete unused local varialbe c_save. For converting
11911 to multibyte, be sure to make all 8-bit characters in valid
11913 (count_size_as_multibyte): Handle 8-bit characters correctly.
11914 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11915 (adjust_after_replace, replace_range, del_range_2)
11916 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
11917 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11918 (adjust_after_replace, replace_range, del_range_2) Delete codes for
11919 handling byte combining.
11920 (adjust_before_replace): Deleted.
11922 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
11923 SPLIT_NON_ASCII_CHAR.
11924 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11925 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11926 (Fkey_description): Likewise.
11928 * lread.c (read1): On reading multibyte string, be sure to make
11929 all 8-bit chararacters in valid multibyte form.
11930 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11932 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
11935 * process.c (Fstart_process): GCPRO current_dir before calling
11936 Ffind_operation_coding_system. Encode arguments here.
11937 (create_process): Don't encode arguments here. Setup
11938 src_multibyte and dst_multibyte members of struct coding.
11939 (read_process_output): Setup src_multibyte and dst_multibyte
11940 members of struct coding. If the output is to multibyte buffer,
11941 always decode the output of the process. Adjust the
11942 representation of 8-bit characters to the multibyteness of the output.
11943 (send_process): Setup coding->src_multibyte according to the
11944 multibyteness of the source.
11946 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11947 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
11948 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
11950 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
11952 * w16select.c (Fw16_set_clipboard_data): Setup members
11953 src_multibyte and dst_multibyte of coding. Adjusted for the
11954 change for find_charset_in_str.
11955 (Fw16_get_clipboard_data): Likewise.
11957 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
11958 dst_multibyte of coding.
11959 (x_to_w32_font): Likewise.
11961 * w32select.c (Fw32_set_clipboard_data): Setup members
11962 src_multibyte and dst_multibyte of coding. Adjusted for the
11963 change for find_charset_in_str.
11964 (Fw32_get_clipboard_data): Likewise.
11966 * xdisp.c (get_next_display_element): Handle 8-bit characters
11968 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
11969 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11971 * xselect.c (selection_data_to_lisp_data): Setup members
11972 src_multibyte and dst_multibyte of coding. Adjusted for the
11973 change for find_charset_in_str.
11974 (lisp_data_to_selection_data): Likewise.
11976 2000-05-19 Gerd Moellmann <gerd@gnu.org>
11978 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
11980 * dispextern.h (Vimage_types): Add extern declaration.
11982 * xdisp.c (Vimage_types): Moved here from xfns.c.
11983 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
11985 * xfns.c (Vimages_types): Moved to xdisp.c.
11986 (syms_of_xfns): Move `image-types' to xdisp.c.
11988 * w32fns.c (Vimage_types): Removed.
11989 (syms_of_w32fns): Remove `image-types'.
11991 2000-05-18 Kenichi Handa <handa@etl.go.jp>
11993 * fns.c (map_char_table): Pay attention to character number of
11994 charset. Check the validity of charset at the first level. For
11995 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
11998 * fontset.c: Include "buffer.h".
11999 (fs_load_font): If the face has fontset, record the face ID in
12001 (Finternal_char_font): New function.
12002 (accumulate_font_info): New function.
12003 (Ffontset_info): Rewritten for the new fontset implementation.
12004 (syms_of_fontset): Register Vdefault_fontset in the first element
12005 of Vfontset_table. Include Vdefault_fontset in
12006 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
12009 2000-05-16 Dave Love <fx@gnu.org>
12011 * m/iris5d.h: Deleted -- unused.
12013 2000-05-16 Gerd Moellmann <gerd@gnu.org>
12015 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
12016 `invalid' instead of `illegal'.
12018 * indent.c (Fmove_to_column): When ending within a tab, insert
12019 spaces first so that markers at the end of the tab get adjusted.
12021 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
12022 buffer list that wasn't selected in that frame.
12024 * filelock.c (get_boot_time): To obtain an 8 char file name, which
12025 is needed on mescaline, use a 2 char prefix, and call
12026 make_temp_name with second arg non-zero.
12028 * fileio.c (make_temp_name): New function, extracted from
12030 (Fmake_temp_name): Use it.
12032 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12034 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
12036 2000-05-15 Gerd Moellmann <gerd@gnu.org>
12038 * Makefile.in (lisp): Add env.elc.
12040 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
12042 2000-05-12 Gerd Moellmann <gerd@gnu.org>
12044 * search.c (Freplace_match): Handle case of `\N' in the
12045 replacement when there's no group N.
12047 2000-05-11 Gerd Moellmann <gerd@gnu.org>
12049 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
12050 of the message to message_dolog.
12052 * keyboard.c (read_char): Don't clear current message for help
12053 events; let the code handling help events handle this. Change
12054 code detecting help events that should be ignored.
12056 * xdisp.c (handle_single_display_prop): Don't try to set PT if
12057 we're interating over a string.
12059 2000-05-09 Dave Love <fx@gnu.org>
12061 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
12062 that offset before writing. Move gcpro region past call of
12065 2000-05-04 Dave Love <fx@gnu.org>
12067 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
12069 2000-05-04 Gerd Moellmann <gerd@gnu.org>
12071 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
12072 of inserted characters when BUF equals the current buffer, and PT
12073 is in front of or equal to FROM.
12075 2000-05-03 Gerd Moellmann <gerd@gnu.org>
12077 * xdisp.c (handle_single_display_prop): If display property value
12078 is invalid, or something not supported on the frame, restore
12079 iterator's position to what it was initially. Make sure to return
12080 0 for invalid and unsupported property values.
12082 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
12083 that x_per_char_metric returns null.
12085 2000-05-02 Gerd Moellmann <gerd@gnu.org>
12087 * xterm.h (struct face): Add forward declaration.
12088 (struct image): Ditto.
12089 (image_ascent): Add prototype.
12091 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
12092 (x_draw_image_relief, x_draw_image_foreground_1): Call function
12093 image_ascent instead of using IMAGE_ASCENT.
12095 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
12096 (IMAGE_ASCENT): Removed.
12098 * xfns.c (Qcenter): New variable.
12099 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
12100 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
12101 (image_ascent): New function.
12102 (lookup_image): Recognize `:ascent center'.
12103 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
12104 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
12105 (xbm_load): Don't set image's ascent here.
12106 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
12107 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
12108 check ascent values here.
12109 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
12110 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
12111 (syms_of_xfns): Initialize Qcenter.
12113 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
12114 to the limits, increase the limits.
12116 2000-05-01 Kenichi Handa <handa@etl.go.jp>
12118 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
12119 Check Vfont_encoding_alist against the full name of the opened font.
12121 2000-04-28 Gerd Moellmann <gerd@gnu.org>
12123 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
12124 taller than the window.
12126 2000-04-28 Kenichi Handa <handa@etl.go.jp>
12128 * xfaces.c (realize_x_face): Fix the argument of the second
12129 xassert. BASE_FACE may not be a face for ASCII.
12131 2000-04-27 Gerd Moellmann <gerd@gnu.org>
12133 * print.c (print_object): Treat print-length < 0 as nil.
12135 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
12137 * s/freebsd.h (TERMCAP_OBJ): Removed.
12138 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
12140 * lread.c (read1): Don't treat period followed by certain
12141 characters as symbol start.
12143 * xfns.c (slurp_file): New function.
12144 (xbm_image_p): Handle case of in-memory XBM files.
12145 (xbm_scan): Rewritten to work on memory buffers instead of files.
12146 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
12147 Work on memory buffers instead of files. If DATA is null test
12148 if buffer looks like an in-memory XBM file.
12149 (xbm_load_image): Renamed from xbm_load_image_file. Work on
12150 memory buffers instead of files.
12151 (xbm_file_p): New function.
12152 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
12154 * lread.c (end_of_file_error): New function.
12155 (read1): Call it instead of signaling `end-of-file' directly.
12157 * print.c (print_error_message): Print data of `end-of-file'
12158 with Fprinc instead of Fprin1.
12160 2000-04-26 Ken Raeburn <raeburn@gnu.org>
12162 * window.c (freeze_window_start): Check that minibuffer scroll
12163 window isn't nil before extracting the window structure pointer
12166 * undo.c (record_delete): If we hit the end of the undo list, stop
12167 picking elements apart.
12169 2000-04-26 Gerd Moellmann <gerd@gnu.org>
12171 * xdisp.c (display_line): If lines are continued, restore
12172 iterator's ascent/descent information to the values before the
12173 first glyph not fitting on the line.
12175 2000-04-25 Gerd Moellmann <gerd@gnu.org>
12177 * xdisp.c (try_window_id) <all changes above window start>: Adjust
12178 positions in glyph matrix. Don't compute new window end positions.
12180 * dispnew.c (increment_matrix_positions): Renamed from
12181 increment_glyph_matrix_buffer_positions.
12182 (increment_row_positions): Renamed from
12183 increment_glyph_row_buffer_positions.
12185 * dispextern.h: Change names of renamed functions from dispnew.c
12188 2000-04-24 Gerd Moellmann <gerd@gnu.org>
12190 * fileio.c (Fdo_auto_save): Create directories for auto-save
12191 list file if necessary.
12193 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
12194 from buffer or frame.
12195 (automatic_hscrolling_p): New variable.
12196 (hscroll_windows): Scroll windows horizontally only if automatic
12197 hscrolling is allowed.
12198 (syms_of_xdisp): New variable `automatic-hscrolling'.
12200 * frame.h (struct frame): Add member extra_line_spacing.
12202 * xfns.c (x_set_line_spacing): New function.
12203 (Fx_create_frame): Set line spacing from resources.
12204 (Qline_spacing): New variable.
12205 (syms_of_xfns): Initialize Qline_spacing.
12207 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
12209 * buffer.c (init_buffer_once): Handle extra_line_spacing.
12210 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
12211 (reset_buffer): Don't initialize extra2 and extra3. Initialize
12212 extra_line_spacing from default value.
12213 (init_buffer_once): Initialize default value of extra_line_spacing.
12215 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
12218 * xterm.c (x_produce_glyphs): Remove reference to struct it's
12219 prompt_width. Add extra line spacing.
12221 * term.c (produce_glyphs): Remove reference to struct it's
12224 * dispextern.h (struct it): Remove member prompt_width, add
12225 extra_line_spacing.
12227 2000-04-22 Gerd Moellmann <gerd@gnu.org>
12229 * dispnew.c (update_frame_line): When writing a whole line, make
12230 sure cursor is in the right row afterwards, otherwise a use of
12231 capability `ch' in cmgoto might leave the cursor in the row below.
12233 2000-04-21 Gerd Moellmann <gerd@gnu.org>
12235 * lisp.h (struct Lisp_Buffer_Cons): Remove.
12237 * keyboard.c (timer_check): Fix typo in comment.
12239 2000-04-21 Kenichi Handa <handa@etl.go.jp>
12241 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
12242 name change: ch -> character.
12244 2000-04-20 Gerd Moellmann <gerd@gnu.org>
12246 * keyboard.c (echo_message_buffer): New variable.
12247 (echo_now): Set echo_message_buffer to the echo area buffer used
12248 to display the echo.
12249 (cancel_echoing): Reset echo_message_buffer to nil.
12250 (read_char): Code rewritten that handles canceling an echo or
12251 echoing a dash, respectively.
12253 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
12254 directory doesn't exist.
12256 2000-04-19 Dave Love <fx@gnu.org>
12258 * fns.c (syms_of_fns): Defsubr mapc.
12259 (concat): Don't allow numeric args.
12260 (Fconcat): Doc change.
12262 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
12264 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
12265 instead define end_match(1|2) more carefully.
12266 Use GET_CHAR_BEFORE_2 for `begline'.
12268 2000-04-19 Gerd Moellmann <gerd@gnu.org>
12270 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
12271 on 64-bit systems where NULL is defined as `0'.
12273 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
12274 the `variable argument list' to make it work on Alpha.
12276 * m/alpha.h (_LP64) [!_LP64]: Define.
12277 (ORDINARY_LINK): Define for NetBSD.
12279 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
12281 2000-04-19 Dave Love <fx@gnu.org>
12283 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
12286 * Makefile.in (LIBS): Don't use.
12287 (GETLOADAVG_OBJ): Define again.
12288 (otherobj): Add GETLOADAVG_OBJ.
12290 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
12292 2000-04-18 Gerd Moellmann <gerd@gnu.org>
12294 * lread.c (read_filtered_event): Cancel and start busy cursor.
12296 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
12297 that the per-character metrics may be null.
12299 2000-04-17 Gerd Moellmann <gerd@gnu.org>
12301 * buffer.c (clone_per_buffer_values): New function.
12302 (Fmake_indirect_buffer): Add optional argument CLONE. Call
12303 clone_per_buffer_values if CLONE is not nil.
12305 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
12307 2000-04-16 Dave Love <fx@gnu.org>
12309 * Makefile.in: Remove obsolete localcpp stuff.
12310 (GETLOADAVG_OBJ): Don't define.
12311 (obj): Move LIBOBJS...
12312 (otherobj): ... to here.
12313 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
12314 whitespace-only lines after the continuation (Irix).
12316 2000-04-14 Gerd Moellmann <gerd@gnu.org>
12318 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
12320 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
12322 2000-04-14 Dave Love <fx@gnu.org>
12324 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
12325 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
12326 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
12327 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
12330 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
12331 autoconfiscated HAVE_GETLOADAVG.
12333 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
12336 2000-04-14 Gerd Moellmann <gerd@gnu.org>
12338 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
12339 (fill_in_lock_file_name): Avoid existing files that aren't links.
12341 2000-04-14 Dave Love <fx@gnu.org>
12343 * Makefile.in (LIBS, LIBOBJS): New variable.
12344 (INTERVAL_SRC): Convert to make variable.
12345 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
12346 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
12347 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
12349 (SOME_MACHINE_OBJECTS): Remove interval stuff.
12350 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
12351 (shortlisp): Add facemenu, float-sup, frame.
12352 (SOME_MACHINE_LISP): Remove them from here.
12353 (LIBES): Change unused LDLIBS to autoconf LIBS.
12355 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
12357 2000-04-14 Kenichi Handa <handa@etl.go.jp>
12359 * composite.c (update_compositions): If FROM and TO are not in a
12360 valid range, do nothing.
12362 2000-04-13 Gerd Moellmann <gerd@gnu.org>
12364 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
12366 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
12368 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
12371 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
12373 * fileio.c (a_write): Remove redundant semi-colons.
12374 (e_write): Return -1 if failed to write all the data.
12375 This fixes the changes made at 1999-12-15.
12377 2000-04-12 Dave Love <fx@gnu.org>
12379 * fns.c (mapcar1): Test for null vals to support mapc.
12380 (Fmapc): New function.
12382 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
12384 * msdos.c (NUM_MOUSE_BUTTONS): Define.
12385 (IT_frame_up_to_date): Support the buffer local value of
12386 cursor-type, if defined.
12388 2000-04-10 Dave Love <fx@gnu.org>
12390 * editfns.c (preceding-char, following-char): Doc fix.
12392 2000-04-10 Ken Raeburn <raeburn@gnu.org>
12394 * Makefile.in (temacs): Revert 2000-03-12 change.
12396 2000-04-10 Jason Rumney <jasonr@gnu.org>
12398 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
12400 2000-04-10 Gerd Moellmann <gerd@gnu.org>
12402 * xdisp.c (setup_echo_area_for_printing): Choose an echo
12403 area buffer, if it's not set up yet.
12405 * indent.c (compute_motion): Set immediate_quit.
12407 2000-04-09 Gerd Moellmann <gerd@gnu.org>
12409 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
12410 (realize_tty_face): Suppress boldness if colors are the inverse of
12411 the default colors, and tty_suppress_bold_inverse_default_colors_p
12413 (Ftty_suppress_bold_inverse_default_colors): New function.
12414 (syms_of_xfaces): Defsubr it.
12416 * buffer.c (Frestore_buffer_modified_p): New function.
12417 (syms_of_buffer): Defsubr it.
12419 2000-04-08 Ken Raeburn <raeburn@gnu.org>
12421 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
12422 charset id (int) argument, not a charset (Lisp_Object).
12424 * coding.h (code_convert_string): Declare.
12425 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
12426 object, as the fourth argument to code_convert_string.
12428 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
12429 (Fset_fontset_font): Use EQ to compare lisp objects.
12431 2000-04-05 Ken Raeburn <raeburn@gnu.org>
12433 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
12434 a pointer that looks like a lisp object.
12435 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
12436 zero, instead see whether it's an integer object, since they can't
12438 (GET_INTERVAL_OBJECT): Simply assign to the destination.
12440 * dispnew.c (allocate_matrices_for_frame_redisplay)
12441 (direct_output_forward_char): Use X(U)INT and make_number as needed
12442 to convert between (unsigned) int values and lisp integers.
12443 * keyboard.c (read_key_sequence): Likewise.
12444 * lread.c (substitute_object_recurse): Likewise.
12445 * fns.c (concat, hash_lookup, hash_remove): Likewise.
12446 * minibuf.c (do_completion, Fminibuffer_complete_word)
12447 (Fminibuffer_completion_help): Likewise.
12448 * term.c (produce_special_glyphs): Likewise.
12450 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
12451 * print.c (print_preprocess, print_object): Likewise.
12453 * search.c (compile_pattern): Use NILP when checking for nil.
12455 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
12456 __OPTIMIZE__]: Provide a GNU C macro version that handles
12457 lisp-object unions.
12458 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
12459 field, to better cope with ENABLE_CHECKING and calls that modify a
12460 Lisp_Object using its old value.
12462 2000-04-04 Gerd Moellmann <gerd@gnu.org>
12464 * window.c (compare_window_configurations): Signal an error
12465 if parameters C1 or C2 aren't window configurations.
12467 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
12468 AFTER_POTENTIAL_GC calls around calls to functions that can
12469 signal an error and thus invoke the debugger.
12471 2000-04-03 Gerd Moellmann <gerd@gnu.org>
12473 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
12474 an error if decoding fails.
12476 * keyboard.c (lispy_mouse_names): Variable removed.
12477 (Vlispy_mouse_stem): New variable.
12478 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
12479 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
12480 for any mouse button number. Increase size of mouse_syms and
12481 button_down_location as needed. Call modify_event_symbol with
12482 different arguments.
12483 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
12484 Call modify_event_symbol with different arguments.
12485 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
12486 for any button number. Call modify_event_symbol with different
12488 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
12489 Accept a string for NAME_ALIST_OR_STEM.
12491 * lisp.h (larger_vector): Add prototype.
12493 * fns.c (larger_vector): Make externally visible.
12495 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
12497 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
12499 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
12500 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
12501 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
12502 we are between str1 and str2.
12503 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
12504 (PATFETCH): Use `TRANSLATE'.
12505 (PATFETCH_RAW): Fetch multibyte char if applicable.
12506 (PATUNFETCH): Remove.
12507 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
12508 When writing a char, write it directly into the pattern buffer rather
12509 than going needlessly through a temp char-array.
12510 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
12511 multibyte magic and remove the useless `#ifdef emacs'.
12512 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
12515 * regex.h (struct re_pattern_buffer): Make field `multibyte'
12516 conditional on `emacs'.
12518 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
12520 2000-04-01 Ken Raeburn <raeburn@gnu.org>
12522 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
12523 non-union-type versions of XMARK and friends here, because XMARK
12524 and friends won't work on an integer field if NO_UNION_TYPE is not
12526 (make_number): Define as a function if it's not defined as a macro.
12528 * composite.c (run_composite_function): Use NILP when checking for nil.
12529 (syms_of_composite): Delete local var NARGS, pass an int as first
12530 argument to Fmake_hash_table.
12532 * editfns.c (text_property_stickiness): Use NILP to test
12533 Lisp_Object boolean value.
12534 (Fmessage_or_box): Don't use NILP to test int variable.
12535 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
12536 problems reading from and changing the same lisp value in an
12539 2000-04-01 Gerd Moellmann <gerd@gnu.org>
12541 * term.c (TN_no_color_video): New variable.
12542 (term_init): Intitialize TN_no_color_video.
12543 (enum no_color_bit): New enumeration.
12544 (MAY_USE_WITH_COLORS_P): New macro.
12545 (turn_on_face): Use it to determine if attributes may be used
12546 combined with colors.
12548 2000-04-01 Ken Raeburn <raeburn@gnu.org>
12550 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
12551 with int lvalues via casts; instead, just yield lisp object lvalues.
12552 (enlarge_window): Variable sizep now points to Lisp_Object. Use
12553 proper accessor macros.
12554 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
12555 (grow_mini_window): Fix typo getting int value of root->height.
12557 * xdisp.c (compute_string_pos): Fix order of arguments to
12558 string_pos_nchars_ahead.
12559 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
12560 count arg to variable-arg routines like Frun_hook_with_args and
12562 (back_to_previous_visible_line_start)
12563 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
12564 fixed-arg routines like Fget_char_property and Fmake_string.
12565 (reconsider_clip_changes): Use XINT when comparing integer lisp
12566 objects, or passing them as int arguments.
12567 (mark_window_display_accurate, insert_left_trunc_glyphs)
12568 (append_space, extend_face_to_end_of_line): Use make_number when
12569 storing or passing integer values as lisp objects.
12570 (set_cursor_from_row, highlight_trailing_whitespace): Use
12571 INTEGERP, not implicit test against zero, for glyph object.
12572 (try_window_id): Don't use make_number when we want an int value.
12574 * xfaces.c (xlfd_symbolic_value): Make last argument a
12575 Lisp_Object, to be consistent with callers.
12576 (Fbitmap_spec_p): Use XINT to get numeric value of height.
12577 (lface_hash): Apply XFASTINT to lisp values before folding in.
12579 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
12580 fill in window width and height. Pass an int, not a lisp object,
12581 as first arg to Finsert.
12583 2000-04-01 Gerd Moellmann <gerd@gnu.org>
12585 * xfaces.c (realize_basic_faces): Block input while realizing
12588 * keyboard.c (lispy_mouse_names): Add additional mouse names.
12590 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
12592 2000-03-31 Gerd Moellmann <gerd@gnu.org>
12594 * xterm.c (x_produce_glyphs): When displaying unibyte text
12595 or ASCII, handle case that per-char metric is null.
12597 2000-03-30 Ken Raeburn <raeburn@gnu.org>
12599 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
12601 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
12602 (XSUBR, XBUFFER): Verify correct object type before returning
12603 pointer, using eassert.
12604 * frame.h (XFRAME): Likewise.
12606 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
12607 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
12608 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
12609 * data.c (set_internal): Likewise.
12610 * dispextern.h (WINDOW_WANTS_MODELINE_P)
12611 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
12612 * fileio.c (auto_save_1): Likewise.
12613 * insdel.c (check_markers): Likewise.
12614 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
12615 * undo.c (record_insert): Likewise.
12616 * vmsproc.c (child_sig): Likewise.
12617 * window.c (unshow_buffer, window_loop): Likewise.
12618 * xterm.c (x_erase_phys_cursor): Likewise.
12620 2000-03-30 Gerd Moellmann <gerd@gnu.org>
12622 * xfns.c (free_image_cache): Free the cache structure itself
12623 last, after all its members have been freed.
12625 * lisp.h (xstrdup): Add prototype.
12627 * alloc.c (xstrdup): Moved here from xfaces.c.
12628 (allocating_for_lisp): Variable removed.
12629 (lisp_malloc): Block input around the calls to malloc and mem_insert.
12631 * xfaces.c (realize_tty_face): Use find_symbol_value instead
12633 (xstrdup): Moved to alloc.c.
12635 2000-03-29 Ken Raeburn <raeburn@gnu.org>
12637 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
12639 * emacs.c (main): Fix sense of no-loadup test.
12641 * config.in (ENABLE_CHECKING): Undef.
12643 * lisp.h (struct interval): Replace "parent" field with a union of
12644 interval pointer and Lisp_Object; add new bitfield to use as
12645 discriminant. Change other flag fields to bitfields.
12646 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
12647 is defined and the supplied test fails, print a message and abort.
12648 (eassert): New macro. Use CHECK to provide an assert-like facility.
12650 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
12651 pointers; abort if the value looks like a lisp object.
12652 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
12653 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
12654 Modify for new interval parent definition.
12656 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
12657 (UNMARK_BALANCE_INTERVALS): Update references that need an
12658 addressable lisp object in the interval structure.
12659 (die): New function.
12660 (suppress_checking): New variable.
12662 * intervals.c (interval_start_pos): Just return 0 if there's no
12665 2000-03-29 Gerd Moellmann <gerd@gnu.org>
12667 * lread.c (read1): Accept `.' (period) as symbol start like in CL
12668 and earlier Emacs versions.
12670 * keyboard.c (Ftop_level): Cancel busy-cursor.
12672 * eval.c (call_debugger): Cancel busy-cursor.
12674 2000-03-29 Kenichi Handa <handa@etl.go.jp>
12676 * search.c (Freplace_match): Adjust multibyteness of the current
12677 buffer and NEWTEXT. Free allocated memory before signaling an error.
12679 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
12681 * regex.c (analyse_first): New function obtained by ripping out most
12682 of re_compile_fastmap and generalizing it a little bit so that it
12683 can also just return whether a given (sub)pattern can match the empty
12685 (regex_compile): Use `analyse_first' to decide whether the loop-check
12686 needs to be done or not for *, +, *? and +? (the loop check is costly
12687 for non-greedy repetition).
12688 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
12690 2000-03-28 Dave Love <fx@gnu.org>
12692 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
12694 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
12696 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
12698 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
12700 (enum re_opcode_t): Update description of succeed_n.
12701 (PATFETCH): Always define.
12702 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
12703 operators, char classes, shy-groups and intervals).
12704 Optimize special cases of intervals so as to only use succeed_n and
12705 jump_n when really needed.
12706 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
12707 that we don't have to handle the special cases any more.
12708 Simplify on_failure_jump handling as well.
12710 2000-03-28 Jason Rumney <jasonr@gnu.org>
12712 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
12714 2000-03-27 Gerd Moellmann <gerd@gnu.org>
12716 * s/freebsd.h (GC_SETJMP_WORKS): Define.
12718 * s/msdos.h (GC_SETJMP_WORKS): Define.
12720 * alloc.c (mark_maybe_object): New function.
12721 (mark_memory): Use it.
12722 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
12723 (setjmp_tested_p, longjmp_done): New variables.
12724 (test_setjmp): New function.
12725 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
12726 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
12728 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
12729 to DEC_TEXT_POS and INC_TEXT_POS.
12731 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
12732 with parameter MULTIBYTE_P.
12734 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
12736 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
12737 buffers because it looks for multibyte character byte sequences
12738 which don't exist in unibyte text.
12740 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
12742 * xfaces.c (register_color, unregister_color, unregister_colors)
12743 [DEBUG_X_COLORS]: New functions.
12744 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
12746 * xfns.c (x_set_cursor_color): Get color reference counts right.
12748 * xterm.c (x_copy_color): New function.
12749 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
12751 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
12752 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
12753 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
12754 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
12755 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
12756 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
12757 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
12758 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
12759 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
12760 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
12762 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
12763 names for handling per-buffer variables.
12765 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
12766 instead of MAX_BUFFER_LOCAL_VARS.
12767 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
12769 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
12771 * xfns.c (x_specified_cursor_type): New function.
12772 (x_set_cursor_type): Use it.
12774 * buffer.h (struct buffer): Add cursor_type.
12776 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
12778 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
12779 (print_partial_compiled_pattern, re_compile_fastmap):
12781 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
12782 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
12783 executing it as well as when popping it off the stack to find infinite
12784 loops in non-greedy repetition operators.
12786 2000-03-26 Gerd Moellmann <gerd@gnu.org>
12788 * doc.c (Qfunction_documentation): New variable.
12789 (syms_of_doc): Initialize Qfunction_documentation.
12790 (Fdocumentation): If FUNCTION is a symbol with non-nil
12791 `function-documentation' property, return a documentation derived
12794 * buffer.c (syms_of_buffer): Add default-cursor-type.
12795 (init_buffer_once): Don't let cursor_type have a local value
12798 * xterm.c (x_display_and_set_cursor): Choose cursor depending
12799 on buffer-local value of cursor_type.
12800 (x_draw_bar_cursor): Add parameter WIDTH.
12802 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
12803 (init_buffer_once): Set default cursor_type value to t.
12804 Mark cursor_type as local everywhere.
12805 (syms_of_buffer): New per-buffer variable cursor-type.
12807 * buffer.h (struct buffer): Remove member local_var_flags,
12809 (MAX_BUFFER_LOCAL_VARS): New macro.
12810 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
12811 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
12812 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
12813 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
12815 * print.c (print_object): Use new macros for per-buffer variables.
12817 * category.c (Fset_category_table): Use new macros for per-buffer
12820 * buffer.c (buffer_permanent_local_flags): Make a char array.
12821 (max_buffer_local_idx): New variable.
12822 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
12823 for new handling of per-buffer variables.
12824 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
12825 (init_buffer_once): Initialize per-buffer vars differently.
12826 Set max_buffer_local_idx.
12828 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
12831 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
12833 * data.c (do_symval_forwarding, store_symval_forwarding)
12834 (find_symbol_value, set_internal, default_value, Fset_default)
12835 (Fkill_local_variable, Flocal_variable_p): Use new macros for
12836 per-buffer variables.
12838 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
12840 2000-03-24 Gerd Moellmann <gerd@gnu.org>
12842 * xterm.c (x_term_init): Unblock input around call1 of
12843 Qvendor_specific_keysyms.
12845 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
12846 (find_defun_start): Consider an open parenthesis in column 0
12847 a defun start only if open_paren_in_column_0_is_defun_start is set.
12848 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
12850 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
12852 * eval.c (Fautoload): Add entry in load-history (if after dump).
12853 * lread.c (load-history): Update docstring.
12855 2000-03-24 Gerd Moellmann <gerd@gnu.org>
12857 * indent.c (Fvertical_motion): Always use the current buffer.
12858 Temporarily change the window's buffer, if necessary.
12860 2000-03-23 Gerd Moellmann <gerd@gnu.org>
12862 * xterm.c (fast_find_position): Make sure not to consider rows
12863 not visible in the window.
12865 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
12867 * regex.c (enum syntaxcode): Provide default for non-Emacs.
12868 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
12870 2000-03-22 Jason Rumney <jasonr@gnu.org>
12872 * w32menu.c (single_submenu): Set help string to NULL if none.
12873 (w32_menu_show): Set help string correctly.
12874 (add-menu-item): Set help string in MIIM_DATA for menu item.
12875 Load SetMenuItemInfoA explicitly.
12876 (w32_menu_display_help): New function.
12878 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
12879 (QCdata): Moved to xdisp.c.
12881 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
12882 (Vw32_charset_to_codepage_alist): Removed.
12883 (Vw32_charset_info_alist): New variable.
12884 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
12885 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
12886 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
12887 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
12889 (w32_codepage_for_font): Use Vw32_charset_info_alist.
12890 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
12891 Define Vw32_charset_info_alist and w32_charset symbols.
12893 2000-03-22 Jason Rumney <jasonr@gnu.org>
12895 * makefile.nt (w32bdf.obj): Update dependencies.
12897 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
12899 * w32fns.c: Include fontset.h after dispextern.h.
12900 (Fx_create_frame): Do not create fontset.
12901 (w32_load_system_font): Doc fix.
12902 (Fx_close_connection): Free full_name if it is not shared.
12904 * w32term.c: Include fontset.h after dispextern.h.
12905 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
12907 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
12908 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
12909 (w32_font_is_double_byte): New function, needs body.
12910 (x_append_glyph): Set glyph->glyph_not_available_p.
12911 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12912 it->charset. If it->multibyte_p is zero and it->c is a multibyte
12913 character, convert it to a unibyte character.
12914 (struct glyph_string): Delete member `charset'.
12915 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
12916 calculating it is found.
12917 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12918 the case that per char metric is not available correctly.
12919 (x_fill_glyph_string): Handle the case that the specific glyph is
12920 not available correctly.
12921 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12922 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12923 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12924 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12925 fontset. Don't call FS_LOAD_FONT.
12927 2000-03-22 Ken Raeburn <raeburn@gnu.org>
12929 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
12930 (INT_LISPLIKE): New macro.
12931 (NULL_INTERVAL_P): Use it.
12932 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
12933 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
12934 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
12936 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
12937 explicit references to "parent" field of struct interval and
12938 associated unclean type conversions.
12939 * intervals.c (create_root_interval, root_interval, rotate_right)
12940 (rotate_left, balance_possible_root_interval, split_interval_right)
12941 (split_interval_left, interval_start_pos, find_interval)
12942 (next_interval, previous_interval, update_interval)
12943 (adjust_intervals_for_insertion, delete_node, delete_interval)
12944 (adjust_intervals_for_deletion, merge_interval_right)
12945 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
12946 (copy_intervals_to_string): Likewise.
12947 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
12949 * syntax.c (update_syntax_table): Likewise.
12951 * intervals.c (reproduce_tree_obj): New function, like
12952 reproduce_tree but takes a Lisp_Object for the parent. Declare
12954 (graft_intervals_into_buffer): Use it when appropriate.
12955 (reproduce_tree): Declare with prototype.
12956 (balance_possible_root_interval): Check that the parent is a lisp
12957 object before trying to examine its type.
12959 2000-03-22 Gerd Moellmann <gerd@gnu.org>
12961 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
12962 as strings only if both are known to be strings.
12964 * s/openbsd.h (LIBS_TERMCAP): Undef.
12966 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
12968 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
12969 definitions for non-Emacs compilation.
12970 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
12971 outside of `#ifdef emacs'.
12972 (print_partial_compiled_pattern): Update.
12973 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
12974 (re_compile_fastmap): Merge handling of charset and charset_not (for
12975 emacs and non-emacs compilation as well).
12976 Similarly for (not)categoryspec and (not)syntaxspec.
12977 Don't use the fastmap when reaching `anychar' since the added
12978 complexity is not justified.
12979 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
12980 and (not)syntaxspec. Merge (not)categoryspec.
12982 2000-03-22 Kenichi Handa <handa@etl.go.jp>
12984 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
12985 (FACE_FOR_CHAR): Define them differently for the configuration of
12988 2000-03-21 Dave Love <fx@gnu.org>
12990 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
12993 2000-03-21 Gerd Moellmann <gerd@gnu.org>
12995 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
12996 (lface_fully_specified_p): Don't check contents of
12997 LFACE_FONT_INDEX because that attribute is optional.
12998 (realize_x_face): Remove now unwarranted xassert.
13000 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
13002 The following changes are to make font selection based on
13003 characters, not charset. In addition, they recover fontset
13004 facilities while utilizing the new font selection mechanism.
13006 * Makefile.in (fontset.o): Depend on dispextern.h.
13008 * alloc.c (mark_face_cache): Don't mark face->registry.
13010 * dispextern.h (struct glyph): New member glyph_not_available_p.
13011 Use 22 bits for face_id.
13012 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
13013 (struct face): Delete member registry, new member ascii_face.
13014 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
13015 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
13016 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
13017 (struct it): Delete member charset, new member glyph_not_available_p.
13019 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
13020 (struct fontset_info, struct fontset_data): Structs removed.
13021 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
13022 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
13023 (fs_load_font, fs_query_fontset): Adjusted for new argument.
13024 (fs_free_face_fontset, fontset_font_pattern)
13025 (face_suitable_for_char_p, face_for_char)
13026 (make_fontset_for_ascii_face): Extern them.
13027 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
13028 (FS_LOAD_FACE_FONT): New macro.
13030 * fontset.c: All codes rewritten or adjusted for the change of
13031 fontset implementation. Now fontset is represented by char table.
13032 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
13034 (my_strcasecmp): Function removed.
13035 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
13036 (AREF, ASIZE): New macros.
13037 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
13038 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
13039 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
13040 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
13041 (fontset_id_valid_p, font_family_registry, fontset_name)
13042 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
13043 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
13045 (fs_load_font): New arg FACE. Caller changed.
13046 (fs_query_fontset): Argument changed. Caller changed.
13047 (Fquery_fontset): call fs_query_fontset.
13048 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
13050 (clear_fontset_elements, check_registry_encoding)
13051 (check_fontset_name): New functions.
13052 (syms_of_fontset): Set char-table-extra-slots property of fontset
13053 to 3. Staticpro and initialize Vfontset_table and
13054 Vdefault_fontset. Defsubr fontset_font and fontset_list.
13056 * frame.h (struct frame): Member `fontset_data' removed.
13057 (FRAME_FONTSET_DATA): Macro removed.
13059 * frame.c (make_frame): Don't allocate f->fontset_data.
13060 (Fdelete_frame): Don't free f->fontset_data.
13062 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
13064 * xdisp.c (charset_at_position): Function removed.
13065 (init_iterator): Don't set member charset of struct `it'.
13066 (handle_face_prop, reseat_to_string, set_iterator_to_next)
13067 (next_element_from_display_vector, insert_left_trunc_glyphs):
13069 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
13071 (get_next_display_element, append_space)
13072 (extend_face_to_end_of_line): Likewise.
13074 * xfaces.c (Qx_charset_registry, Vface_default_registry):
13076 (clear_font_table, frame_update_line_height, load_face_font):
13077 Adjusted for the change of fontset implementation.
13078 (load_face_fontset_font): Function removed.
13079 (pixel_point_size): New function.
13080 (font_list): Argument type changed. Caller changed.
13081 (LFACE_FONT): New macro.
13082 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
13083 (set_lface_from_font_name): Type of arg FONTNAME is changed to
13084 Lisp_Object. Determine the font name by actually loading a font
13085 by the specified pattern. Set LFACE_FONT (lface) to the specified
13086 pattern. Even if a font is not found, don't try alternatives.
13087 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
13088 (set_font_frame_param): If `font' is specified in lface, use it.
13089 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
13090 (lface_same_font_attributes_p): Likewise.
13091 (make_realized_face): Arguent changed. Caller changed. Set
13092 face->ascii_face to face itself.
13093 (free_realized_face): Free face->fontset if face is for ASCII.
13094 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
13095 (deduce_unibyte_registry, x_charset_registry): Functions removed.
13096 (free_realized_multibyte_face): New function.
13097 (lookup_face, lookup_named_face, lookup_derived_face): Argument
13098 changed. Caller changed.
13099 (try_font_list): Argument type changed.
13100 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
13101 (choose_face_font): Argument changed. Handle fontset properly.
13102 (choose_face_fontset_font): Function removed.
13103 (realize_default_face, realize_named_face): Don't remove the
13105 (realize_face): Argument changed. Caller changed. Remove face
13106 with the arg former_face_id in advance. Load font for the new face.
13107 (realize_x_face): Argument changed. Caller changed. For a
13108 multibyte character, share fontset with base_face. For a single
13109 byte character, make a new realized fontset. Don't load a font here.
13110 (realize_tty_face): Argument changed. Caller changed.
13111 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
13112 (face_at_buffer_position): Don't check multibyte_p for returning
13114 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
13115 FACE_SUITABLE_FOR_CHARSET_P.
13116 (syms_of_xfaces): Remove code for Qx_charset_registry and
13117 Vface_default_registry.
13119 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
13120 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
13121 (x_per_char_metric): Don't try FONT->default_char. Even if
13122 pcm->width is zero, glyph bits may exist.
13123 (x_encode_char): Always initialize char2b->byte1.
13124 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
13125 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
13126 (x_append_glyph): Set glyph->glyph_not_available_p.
13127 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13128 it->charset. Handle the case that per char metric is not
13129 available. If it->multibyte_p is zero and it->c is a multibyte
13130 character, convert it to a unibyte character.
13131 (struct glyph_string): Delete member `charset'.
13132 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
13133 the case that per char metric is not available correctly.
13134 (x_fill_glyph_string): Handle the case that the specific glyph is
13135 not available correctly.
13136 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
13137 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
13138 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
13139 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
13140 fontset. Don't call FS_LOAD_FONT.
13142 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
13143 (x_create_tip_frame): Likewise.
13144 (Fx_close_connection): Free full_name of font_info.
13146 * fns.c (optimize_sub_char_table): New function.
13147 (Foptimize_char_table): New function.
13148 (syms_of_fns): Defsubr Soptimize_char_table.
13150 2000-03-20 Gerd Moellmann <gerd@gnu.org>
13152 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
13153 only if buffer is displayed in some window.
13155 * xdisp.c (handle_single_display_prop): Initialize local `value'.
13156 (try_window_reusing_current_matrix): Don't call scroll run
13157 function if run's current and desired position are the same;
13158 this prevents cursor flickering.
13160 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
13162 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
13164 * regex.c (RE_STRING_CHAR): New macro.
13165 (GET_CHAR_AFER_2): Remove.
13166 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
13167 (enum re_opcode_t): Remove on_failure_jump_exclusive.
13168 (print_partial_compiled_pattern, re_compile_fastmap)
13169 (re_match_2_internal): Remove on_failure_jump_exclusive.
13170 (regex_compile): Turn optimizable P+ loops into PP*, so that the
13171 optimization only need to work for * (ie. can use of_keep_string_jump).
13172 Remove the special case for .*\n since it is now covered by the general
13174 (re_search_2): Don't bother with `room'.
13175 (skip_one_char): New function.
13176 (skip_noops): Simplify since `memory' is not needed any more.
13177 (mutually_exclusive_p): Restructure slightly to use `switch' and
13178 add handling for "all" remaining cases.
13179 (re_match_2_internal): Change on_failure_jump_smart to use
13180 on_failure_keep_string_jump (and redirect the end-of-loop jump)
13181 rather than on_failure_jump_exclusive.
13183 2000-03-19 Gerd Moellmann <gerd@gnu.org>
13185 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
13186 number of bits per RGB because it's everywhere used as the depth
13189 * term.c (calculate_costs): Remove code dealing with X frames.
13191 2000-03-19 Richard M. Stallman <rms@gnu.org>
13193 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
13195 2000-03-18 Gerd Moellmann <gerd@gnu.org>
13197 * lread.c (read_integer): Unread the last char not consumed.
13199 2000-03-17 Gerd Moellmann <gerd@gnu.org>
13201 * xterm.c (x_update_window_cursor): Don't update in frames
13202 which are in the process of being deleted.
13204 2000-03-16 Gerd Moellmann <gerd@gnu.org>
13206 * Makefile.in (mostlyclean): Add `*.core'.
13207 (clean): Add `bootstrap-emacs'.
13209 * lread.c (read_integer): New function.
13210 (read1): Support read syntax #o, #x, #b, #r.
13212 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
13214 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
13215 make sure POINTER_TO_OFFSET gives the same value before and after
13216 PREFETCH. Use `dfail' to guarantee "atomic" matching.
13217 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
13218 (debug): Now only active if > 0 rather than if != 0.
13219 (DEBUG_*): Update for the new meaning of `debug'.
13220 (print_partial_compiled_pattern): Add missing `succeed' case. Use
13221 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
13222 in `succeed_n', `jump_n' and `set_number_at'.
13223 (store_op1, store_op2, insert_op1, insert_op2)
13224 (at_begline_loc_p, at_endline_loc_p): Add prototype.
13225 (group_in_compile_stack): Move to after its arg's types are
13226 declared and add a prototype.
13227 (PATFETCH): Define in terms of PATFETCH_RAW.
13228 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
13229 (QUIT): Redefine as a nop except for NTemacs.
13230 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
13231 indentation of the greedy-op and shy-group code.
13232 (at_(beg|end)line_loc_p): Fix argument's types.
13233 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
13234 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
13235 (MATCHING_IN_FIRST_STRING): Remove.
13236 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
13237 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
13238 QUIT unconditionally.
13240 2000-03-15 Gerd Moellmann <gerd@gnu.org>
13242 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
13245 * process.c (send_process): Add a hint that the function
13246 can call Lisp code to its comment.
13248 * lread.c (load_dangerous_libraries): New variable.
13249 (Vbytecomp_version_regexp): New variable.
13250 (safe_to_load_p): New function.
13251 (Fload): Handle files not compiled with Emacs specially.
13252 (syms_of_lread): New Lisp variable load-dangerous-libraries.
13254 2000-03-14 Gerd Moellmann <gerd@gnu.org>
13256 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
13258 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
13259 support functions only if HAVE_X11R6_XIM is defined.
13260 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
13262 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
13264 * xfns.c (X_I18N_INHIBITED): Don't define.
13265 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
13266 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
13268 * config.in (HAVE_X_I18N): Moved here from xterm.h.
13269 (HAVE_X11R6_XIM): Define.
13271 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
13273 * xterm.c (x_term_init): Add support for X resource `synchronous'.
13274 If set, call XSynchronize.
13276 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
13278 * regex.c: Declare a new type `re_char' used throughout the code
13279 for the string char type. It's `const unsigned char' to match the
13280 rest of Emacs. Consistently make sure all pointers to strings use
13281 it and make sure all pointers into the pattern use `unsigned char'.
13282 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
13283 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
13286 * charset.h (GET_CHAR_AFTER_2): Remove.
13287 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
13289 2000-03-12 Ken Raeburn <raeburn@gnu.org>
13291 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
13292 variable before the invocation of YMF_PASS_LDFLAGS, in case both
13293 of them try to use backquotes.
13295 2000-03-12 Dave Love <fx@gnu.org>
13297 * unexelf.c: Restore changes of 1999-10-19.
13298 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
13299 fix its type and alignment; copy it from current process.
13301 2000-03-12 Gerd Moellmann <gerd@gnu.org>
13303 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
13304 has been found. Fix bug not computing timer's predecessor.
13306 * fileio.c (Fread_file_name): Handle case that DIR contains a
13309 * window.c (Fsave_window_excursion): Doc fix.
13311 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
13313 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
13315 * msdos.c (vga_installed): New function, code moved from
13316 dos_set_window_size.
13317 (Qbar, Qcursor_type, outside_cursor): New variables.
13318 (syms_of_msdos): Intern and staticpro them.
13319 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
13320 shape used outside Emacs when called for the first time.
13321 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
13322 cursor shape used outside Emacs.
13323 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
13324 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
13326 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
13327 parameters specify the cursor. Make qreverse a global
13328 variable (renamed to Qreverse).
13330 2000-03-09 Gerd Moellmann <gerd@gnu.org>
13332 * fns.c (Fy_or_n_p): Cancel busy-cursor.
13334 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
13336 This is a big redesign of failure-stack and register handling, prompted
13337 by bugs revealed when trying to add shy-groups. Overall, what happened
13338 is that loops are now structured a little differently, groups can be
13339 shy and the code is a little simpler.
13341 * regex.h: Update the copyright.
13342 (RE_SHY_GROUPS): New value.
13343 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
13344 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
13346 * regex.c (enum re_opcode_t): Remove jump_past_alt,
13347 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
13348 on_failure_jump_(exclusive, loop and smart). Also fix the comment
13349 for (start|stop)_memory since they now only take one argument (the
13350 second has becomes unnecessary).
13351 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
13352 (print_compiled_pattern): Use %ld to printf long ints and flush to
13353 make debugging a little easier.
13354 (union fail_stack_elt): Make the integer unsigned.
13355 (struct fail_stack_type): Add a `frame' element.
13356 (INIT_FAIL_STACK): Init `frame' as well.
13357 (POP_PATTERN_OP): New macro for re_compile_fastmap.
13358 (DEBUG_PUSH, DEBUG_POP): Remove.
13359 (NUM_REG_ITEMS): Remove.
13360 (NUM_NONREG_ITEMS): Adjust.
13361 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
13362 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
13363 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
13364 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
13366 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
13367 address pushed is not the destination of the jump but the source
13369 (NUM_FAILURE_ITEMS): Remove.
13370 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
13371 registers before the actual failure point). Don't hardcode any
13372 meaning for str==NULL anymore.
13373 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
13374 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
13376 (REG_UNSET_VALUE): Use NULL (why not?).
13377 (compile_range): Remove declaration since it doesn't exist.
13378 (struct compile_stack_elt_t): Remove inner_group_offset.
13379 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
13380 (regex_grow_registers): Remove dead code.
13381 (FIXUP_ALT_JUMP): New macro.
13382 (regex_compile): Add shy-groups Change loops to use
13383 on_failure_jump_smart&jump instead of
13384 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
13385 initial (dummy_failure_)jump. Remove c1_base (looks like unused
13386 variable to me). Use `jump' instead of `jump_past_alt' and don't
13387 bother with push_dummy_failure in alternatives since it is now
13388 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
13389 emacs' for (re)allocating the stack.
13390 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
13391 from loop when bufp->can_be_null rather than jumping to `done'.
13392 Avoid jumping backwards so as to ensure termination. Use
13393 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
13394 backreferences. Remove dead code in handling of `anychar'.
13395 (skip_noops, mutually_exclusive_p): New functions taken from the
13396 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
13397 improve mutually_exclusive_p to handle ".+\n".
13398 (lowest_active_reg, highest_active_reg)
13399 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
13400 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
13401 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
13402 variables. Push register (in `start_memory') on the stack rather
13403 than storing it in old_reg(start|end). Remove the cycle detection
13404 from `stop_memory', replaced by the use of on_failure_jump_loop
13405 for greedy loops. Add code for the new on_failure_jump_<foo>.
13406 Remove ad-hoc code in `on_failure_jump' to push more registers in
13407 the case of a loop. Take out code from `maybe_pop_jump' into
13408 separate functions and adapt it to the semantics of
13409 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
13410 and push_dummy_failure. Remove dummy_failure handling and
13411 handling of `failures to jump to on_failure_jump' (this last one
13412 was already dead code, it seems).
13413 (group_match_null_string_p, alt_match_null_string_p)
13414 (common_op_match_null_string_p): Remove.
13416 2000-03-08 Dave Love <fx@gnu.org>
13418 * config.in: Don't depend on __STDC__ for volatile.
13419 Add POINTER_TYPE, PTR, PROTOTYPES.
13421 * hftctl.c, strftime.c: Use PROTOTYPES.
13422 * eval.c (find_handler_clause): Likewise.
13424 * mem-limits.h: Use POINTER_TYPE.
13426 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
13427 (memory_warnings): Declare using POINTER_TYPE.
13429 2000-03-08 Gerd Moellmann <gerd@gnu.org>
13431 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
13433 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
13435 * xfns.c: Remove obsolete code in #if 0.
13436 (Fx_focus_frame): New function.
13438 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13440 * coding.c (coding_category_name): Add coding-category-utf-8,
13441 coding-category-utf-16-be, coding-category-utf-16-le.
13442 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
13443 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
13444 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
13445 (detect_coding_utf_8): New function.
13446 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
13447 UTF_16_LOW_SURROGATE_P): New macros.
13448 (detect_coding_utf_16): New function
13449 (detect_coding_mask): When priorities are specified, skip any
13450 categories that have `nil' coding-system. Fix bug of returning
13451 wrong mask when PRIORITIES is specified and detect_coding_XXX()
13452 returns a mask not set in PRIORITIES.
13453 (detect_eol_type_in_2_octet_form): New function.
13454 (detect_eol): selects detect_eol_type_XXX to call according to
13455 cooding->category_idx.
13456 (detect_coding_system): Remove `nil' coding-system in the result.
13457 (Fupdate_coding_systems_internal): Update all coding-categories.
13459 * coding.h (CODING_CATEGORY_IDX_UTF_8)
13460 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
13462 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
13463 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
13464 (CODING_CATEGORY_IDX_UTF_16_LE)
13465 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
13466 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
13467 (CODING_CATEGORY_MASK_ANY): Include the above macros.
13468 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
13470 2000-03-07 Gerd Moellmann <gerd@gnu.org>
13472 * doc.c (Fdocumentation_property): If value is not a string,
13473 and doesn't refer to etc/DOC, evaluate it to obtain a string.
13475 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
13476 close the display with XtCloseDisplay. This caused a bus error
13479 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
13480 complete but not unique.
13482 2000-03-06 Gerd Moellmann <gerd@gnu.org>
13484 * process.c (send_process): Remove local variable `procname' that
13485 might become invalid when a GC happens. Instead, access the
13486 process name slot directly.
13488 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
13489 orig_height if set.
13491 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
13492 orig_height if set.
13494 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
13496 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
13497 glyph matrices have been freed.
13499 2000-03-05 Gerd Moellmann <gerd@gnu.org>
13501 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
13502 (bootstrap-temacs): Set LC_ALL to C like for temacs.
13504 * xfns.c (QCdata): Moved to xdisp.c.
13506 * xdisp.c (QCdata): Moved here from xfns.c.
13507 (syms_of_xdisp): Initialize QCdata.
13509 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
13511 * window.c (coordinates_in_window): Use
13512 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
13513 FRAME_INTERNAL_BORDER_WIDTH.
13515 * xdisp.c (try_window_id): Recompute unchanged information if
13516 it is obviously invalid.
13518 * xterm.c (x_term_init): Create a colormap if not using the
13521 * xterm.h (select_visual): Change prototype.
13523 * xfns.c (select_visual): Rewritten. Recognize user-specified
13525 (visual_classes): New variable.
13527 2000-03-04 Gerd Moellmann <gerd@gnu.org>
13529 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
13530 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
13531 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
13532 (x_decode_color): Don't handle allocation of white and black specially.
13533 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
13534 XtNcolormap resources.
13535 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
13536 (Fx_create_frame): Initialize color members of x_output structure.
13537 (xpm_load): Pass colormap to XPM lib.
13539 * xfaces.c (x_free_colors): Access colormap of frame using
13540 FRAME_X_COLORMAP. Be paranoid about freeing black and white
13541 when default colormap is used.
13543 * xterm.c (x_term_init): Set Colormap member of x_display_info
13544 structure. Copy colormap if resource `privateColormap' is
13545 specified (PseudoColor only).
13546 (x_setup_relief_color): Access colormap of frame using
13549 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
13550 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
13552 2000-03-04 Jason Rumney <jasonr@gnu.org>
13554 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
13555 other non-platform-specific equivalents.
13556 [WINDOWSNT]: Include w32term.h, fontset.h and define X
13557 specific functions and macros as their w32 equivalents where
13558 non-platform-specifics are not available.
13559 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
13560 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
13561 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
13562 (frame_update_line_height): Use macros to access f->output_data.
13563 (defined_color): Remove FIXME comments; fixed.
13564 (x_face_list_fonts, prepare_face_for_display): Put X specifics
13565 into #ifdef blocks. Add WINDOWSNT blocks.
13566 (Fx_list_fonts): Use macros for accessing font data.
13567 (set_lface_from_font_name): Different default fonts for X and
13569 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
13570 scalable for backward compatibility.
13571 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
13572 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
13574 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
13577 * makefile.nt (w32faces.obj): Remove.
13580 2000-03-03 Jason Rumney <jasonr@gnu.org>
13582 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
13583 correct parameters.
13585 2000-03-03 Ken Raeburn <raeburn@gnu.org>
13587 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
13588 standard ELF definitions here if the system header does not.
13590 2000-03-03 Gerd Moellmann <gerd@gnu.org>
13592 * xterm.c (PER_CHAR_METRIC): Removed.
13593 (x_per_char_metric_1, x_default_char): New functions.
13594 (x_per_char_metric): If font's default char is invalid, return
13595 metrics of a suitably chosen usable default char.
13596 (x_draw_glyph_string_foreground): If font has an invalid default
13597 char, replace occurrences of unprintable chars with a suitably
13598 chosen usable default char.
13600 2000-03-02 Gerd Moellmann <gerd@gnu.org>
13602 * xterm.c (note_mouse_highlight): Return quickly if frame's
13603 glyph matrices have been freed.
13605 * dispnew.c (free_glyphs): Block input while freeing matrices.
13607 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
13609 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
13612 * dispextern.h (x_free_colors): Add prototype.
13614 * xfaces.c (x_free_colors): New function.
13615 (unload_color, free_face_colors): Use it.
13617 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
13619 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
13621 * window.c [MSDOS]: Include msdos.h.
13623 2000-03-02 Dave Love <fx@gnu.org>
13625 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
13627 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
13628 set C_OPTIMIZE_SWITCH for gcc.
13630 2000-03-02 Kenichi Handa <handa@etl.go.jp>
13632 * coding.c (coding_save_composition): Be sure to allocate
13633 composition data area in coding even if there's no composition in
13636 2000-03-01 Jason Rumney <jasonr@gnu.org>
13638 * w32term.c: Equivalent changes to those made to xterm.c on
13639 2000-02-25 and 2000-02-24.
13641 * w32fns.c: Equivalent changes to those made to xfns.c on
13642 2000-02-25 and 2000-02-21.
13644 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
13645 correct line-end convention is followed.
13647 * w32menu.c [HAVE_BOXES]: Remove #undef.
13648 (single_keymap_panes): Remove code for simulating checkmarks.
13649 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
13650 Remove code for drawing simulated checkmarks.
13651 (w32_menu_show): make unibyte help string correctly.
13652 (add_menu_item): draw standard Windows checkmarks. Draw radio
13653 buttons as radio buttons if possible.
13655 2000-03-01 Gerd Moellmann <gerd@gnu.org>
13657 * sysdep.c (start_of_text): Don't define this function for NetBSD
13660 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
13662 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
13663 (LINKER): Don't undef if __NetBSD__ is defined.
13665 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
13667 * fileio.c [__NetBSD__]: Define `unix'.
13669 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
13671 2000-02-29 Gerd Moellmann <gerd@gnu.org>
13673 * atimer.c (start_atimer): Don't abort when timers are stopped.
13674 (append_atimer_lists): New function.
13675 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
13676 arbitrary lists of stopped and running atimers.
13678 * atimer.c (cancel_atimer): Handle canceling an atimer when
13679 some timers are stopped.
13681 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
13682 after canceling it.
13684 * fns.c (maybe_resize_hash_table): Handle case of new size
13685 coming out as being the same as old size.
13687 2000-02-27 Jason Rumney <jasonr@gnu.org>
13689 * makefile.nt: Add atimer.h to dependencies.
13690 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
13691 * w32console.c: Only disable window system features for dispextern.h
13692 (initialize_w32_display): Build a display info for the console.
13693 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
13694 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
13695 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
13697 * w32gui.h (struct W32FontStruct): Revert last change after change
13699 * w32menu.c (single_submenu): Set up help string.
13700 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
13701 (w32_dialog_show): Set up help string.
13702 * w32term.c (w32_display_info_for_display): Remove unused function.
13703 (w32_draw_bitmap): Use pre-built bitmaps.
13704 (w32_initialize_display_info): New function to initialize parts of
13705 display info that are common to both GUI and console frames.
13706 (w32_term_init): Use w32_initialize_display_info. Do not set
13707 Vw32_num_mouse_buttons here, as it is not called for console
13708 frames. Build bitmaps for indicating truncated lines etc.
13709 (x_delete_display): Destroy pre-built bitmaps.
13710 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
13711 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
13713 2000-02-27 Dave Love <fx@gnu.org>
13715 * lisp.h: Add a bunch of prototypes.
13717 2000-02-26 Kenichi Handa <handa@etl.go.jp>
13719 * keyboard.c (read_char): Set `usec' correctly.
13721 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13723 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
13724 `lambda', set reg[RRR] to the map index.
13725 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
13726 reg[RRR] to 0. Otherwise, set it to -1.
13728 2000-02-25 Gerd Moellmann <gerd@gnu.org>
13730 * emacs.c (main): Remove code snippet commented out with `//'.
13732 2000-02-25 Richard M. Stallman <rms@gnu.org>
13734 * fileio.c (Ffile_symlink_p): If result starts with a `/'
13735 and contains a `:', prepend `/:'.
13737 * window.c (select_window_1): If selected_window is nil,
13738 don't "swap out" the buffer's point.
13739 (Fset_window_configuration): Set selected_window to nil
13740 before calling Fselect_window.
13741 (unshow_buffer): Don't set point in buffer from window's point
13742 if another more recently selected window also shows the buffer.
13744 2000-02-25 Gerd Moellmann <gerd@gnu.org>
13746 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
13748 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
13749 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
13750 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
13752 (DEFAULT_BUSY_CURSOR_DELAY): New define.
13753 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
13754 (hide_busy_cursor): New functions.
13755 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
13757 * minibuf.c (read_minibuf): Cancel busy-cursor.
13759 * keyboard.c (command_loop_1): Call start_busy_cursor before
13760 Fcommand_execute and cancel_busy_cursor after it.
13761 (timer_check): Remove busy-cursor code.
13762 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
13765 * process.c (wait_reading_process_input): Remove busy-cursor code.
13767 * eval.c (Fsignal): Call cancel_busy_cursor instead of
13768 Fx_hide_busy_cursor.
13770 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
13772 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
13774 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
13776 * xterm.c (XTread_socket): Remove busy-cursor code.
13778 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
13779 (build_frame_matrix_from_leaf_window): Put code handling
13780 glyph row's not being a slice of a frame row in #if 0.
13781 (sync_window_with_frame_matrix_rows): New function.
13782 (frame_row_to_window): New function.
13783 (mirror_line_dance): Handle copies between windows.
13785 * lread.c (Fload): Use `xfree' instead of `free'.
13786 (init_obarray): Use `xmalloc' instead of `malloc'.
13788 * window.c (Fset_window_buffer): Set WINDOW to the window
13790 (coordinates_in_window): Take frame's internal border width
13793 2000-02-24 Gerd Moellmann <gerd@gnu.org>
13795 * xterm.c (x_display_and_set_cursor): Display cursor of
13796 non-selected windows depending on the setting of
13797 cursor_in_non_selected_windows.
13799 * xdisp.c (cursor_in_non_selected_windows): New variable.
13800 (syms_of_xdisp): DEFVAR_BOOL it.
13802 2000-02-23 Gerd Moellmann <gerd@gnu.org>
13804 * data.c (Fstring_to_number): If number is greater than what
13805 fits into an integer, return a float.
13807 * eval.c (specbind): Remove references to
13808 keyword_symbols_constant_flag.
13810 * data.c (keyword_symbols_constant_flag): Removed.
13811 (Fmakunbound, set_internal, syms_of_data): Remove references to
13812 keyword_symbols_constant_flag.
13814 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
13816 2000-02-23 Kenichi Handa <handa@etl.go.jp>
13818 * syntax.c (multibyte_syntax_as_symbol): New variable.
13819 (syms_of_syntax): Declare it as a Lisp variable.
13820 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
13821 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
13822 nonzero, treat all multibyte characters as symbol.
13823 (init_syntax_once): Give syntax `word' to all multibyte characters.
13825 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13827 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
13830 2000-02-21 Gerd Moellmann <gerd@gnu.org>
13832 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
13834 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13835 (x_non_menubar_window_to_frame): Check the busy-cursor window.
13837 2000-02-21 Dave Love <fx@gnu.org>
13839 * frame.c (Vmouse_position_function): New variable.
13840 (Fmouse_position): Use it.
13841 (syms_of_frame): Install it.
13843 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
13845 2000-02-20 Gerd Moellmann <gerd@gnu.org>
13847 * fileio.c (Finsert_file_contents): Unbind the binding of
13848 standard-output done by temp_output_buffer_setup.
13850 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
13851 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
13852 (specbind, unbind_to): Handle most common case of non-constant
13853 symbol with trivial value specially.
13855 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
13857 2000-02-20 Richard M. Stallman <rms@gnu.org>
13859 * data.c (Fmake_variable_buffer_local): Doc fix.
13860 Init found_for_buffer to 0.
13861 (Fmake_variable_frame_local): If the variable has already
13862 been buffer-local, set the check_frame field.
13864 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
13866 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
13867 produced for CODING_MODE_LAST_BLOCK requires.
13869 2000-02-18 Dave Love <fx@gnu.org>
13871 * keyboard.c (echo_keystrokes): Remove declaration.
13872 (Vecho_keystrokes) New variable.
13873 (read_char, record_menu_key, read_key_sequence): Use it to allow
13874 use of float value.
13875 (syms_of_keyboard): Change Vecho_keystrokes declaration.
13877 * lread.c: Undef feature selection macros before defining.
13879 2000-02-18 Gerd Moellmann <gerd@gnu.org>
13881 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
13882 for symbols other than the symbol in question.
13884 2000-02-17 Dave Love <fx@gnu.org>
13886 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
13888 2000-02-17 Gerd Moellmann <gerd@gnu.org>
13890 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
13892 * alloc.c (enum mem_type): Compile unconditionally.
13894 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
13896 * xfaces.c (tty_defined_color): Don't return faulire indication
13897 for unspecified-fg and unspecified-bg pseudo-colors.
13899 2000-02-17 Gerd Moellmann <gerd@gnu.org>
13901 * alloc.c (mark_object): Don't mark symbol names in pure space.
13902 (gc_sweep): Don't unmark symbol names in pure space.
13904 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
13905 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
13906 [GC_MARK_STACK]: New defines.
13907 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
13908 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
13910 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
13912 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
13913 allocate_buffer instead of xmalloc.
13915 * alloc.c (toplevel): Include setjmp.h.
13916 (PURE_POINTER_P): New define.
13917 (enum mem_type) [GC_MARK_STACK]: New enumeration.
13918 (Vdead) [GC_MARK_STACK]: New variable.
13919 (lisp_malloc): Add parameter TYPE, call mem_insert if
13920 GC_MARK_STACK is defined.
13921 (allocate_buffer): New function.
13922 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
13923 (free_float) [GC_MARK_STACK]: Set type to Vdead.
13924 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
13925 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
13926 (MEM_NIL) [GC_MARK_STACK]: New define.
13927 (struct mem_node) [GC_MARK_STACK]: New structure.
13928 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
13929 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
13930 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
13931 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
13932 (mark_stack) [GC_MARK_STACK]: New functions.
13933 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
13934 (clear_marks): Removed.
13935 (gc_sweep): Set free conses' car, free floats' type, free
13936 symbols' function to Vdead. Use lisp_free to free buffers.
13937 (init_alloc_once): Initialize Vdead.
13938 (survives_gc_p): Return non-zero for pure objects.
13940 * alloc.c: Add comments throughout the file.
13942 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
13943 that unblocks alarms.
13945 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
13946 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
13947 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
13949 * frame.c (make_frame): Set frame initiallly to `garbaged'.
13951 2000-02-17 Kenichi Handa <handa@etl.go.jp>
13953 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
13954 avoid infinite error signaling. Allocate sufficient memory for
13955 eol_str in the case that eoltype is Lisp_Int.
13957 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
13959 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
13960 depends on the previous behavior.
13962 2000-02-16 Gerd Moellmann <gerd@gnu.org>
13964 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
13966 2000-02-15 Gerd Moellmann <gerd@gnu.org>
13968 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
13970 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
13971 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
13974 2000-02-15 Richard M. Stallman <rms@gnu.org>
13976 * data.c (set_internal): Don't make variable buffer-local
13977 if within a let-binding for the same buffer.
13978 (let_shadows_buffer_binding_p): New function.
13980 * eval.c (specbind): For buffer-local value,
13981 record the current buffer also.
13982 (unbind_to): Cope with that change.
13984 2000-02-15 Gerd Moellmann <gerd@gnu.org>
13986 * window.c (Fsave_window_excursion): Doc fix.
13988 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
13990 * syntax.c (back_comment): Make sure we only consider comment-starters
13991 of the relevant style and return -1 in case of a failure to find the
13992 beginning of the comment.
13993 (Fforward_comment): If back_comment fails, go back to the position just
13994 after the comment-end.
13995 (scan_lists): Add comment describing a very minor bug.
13997 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13999 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
14000 `completion-regexp-list' in the docstring.
14002 2000-02-14 Dave Love <fx@gnu.org>
14004 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
14006 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
14008 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
14009 to Emacs' syntax. Also fix the comment about set/not-set meanings
14010 since Emacs syntax is not the value 0 any more.
14011 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
14012 since it's now part of RE_SYNTAX_EMACS.
14014 2000-02-12 Dave Love <fx@gnu.org>
14016 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
14018 2000-02-12 Gerd Moellmann <gerd@gnu.org>
14020 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
14022 2000-02-12 Dave Love <fx@gnu.org>
14024 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
14026 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
14027 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
14028 * s/hpux.h: Don't define HAVE_VFORK.
14030 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
14032 * s/nextstep.h: Don't define HAVE_ALLOCA.
14034 * config.in: Add vfork bits.
14036 2000-02-12 Gerd Moellmann <gerd@gnu.org>
14038 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
14039 unwind function to undo the effect of stopping atimers.
14041 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
14043 * atimer.c (stopped_atimers): New variable.
14044 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
14047 * atimer.h (stop_other_atimers, run_all_atimers)
14048 (unwind_stop_other_atimers): Add function prototypes.
14050 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
14052 2000-02-11 Ken Raeburn <raeburn@gnu.org>
14054 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
14055 library may depend on jpeg.
14056 (atimer.o): Depends on atimer.c.
14058 2000-02-11 Kenichi Handa <handa@etl.go.jp>
14060 * insdel.c (del_range_1): Call update_compositions.
14061 (del_range_both): Call update_compositions just once..
14063 2000-02-10 Dave Love <fx@gnu.org>
14065 * xfns.c (create_frame_xic): Fix initialization of automatic
14066 aggregates for pcc.
14068 2000-02-09 Kenichi Handa <handa@etl.go.jp>
14070 * ccl.c (CCL_MAKE_CHAR): New macro.
14071 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
14072 registers by CCL_MAKE_CHAR before calling translate_char.
14073 <CCL_TranslateCharacterConstTbl> Likewise.
14075 2000-02-08 Dave Love <fx@gnu.org>
14077 * lread.c (__EXTENSIONS__): Define.
14079 2000-02-08 Gerd Moellmann <gerd@gnu.org>
14081 * puresize.h (BASE_PURESIZE): Increase to 650000.
14083 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14085 * msdos.c (XMenuActivate): Turn off the cursor after displaying
14088 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14090 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
14091 md, mh, mb, mr, and me to the fake termcap entry.
14093 2000-02-06 Ken Raeburn <raeburn@gnu.org>
14095 * sound.c (sound_cleanup): Don't call device close routine if the
14096 function pointer is null.
14098 2000-02-06 Andrew Innes <andrewi@gnu.org>
14100 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
14101 around image definitions and prototypes.
14102 (gamma_correct) [WINDOWSNT]: New prototype.
14104 * w32term.c (x_make_frame_visible): Replace call to
14105 input_poll_signal with poll_for_input.
14107 * window.c [WINDOWSNT]: Include w32term.h.
14109 * xdisp.c [WINDOWSNT]: Include w32term.h.
14111 * makefile.nt: Add dependencies on w32gui.h.
14112 (OBJ1): Include atimer.obj.
14113 ($(BLD)\atimer.obj): New dependency rule.
14115 * w32.c (sigmask): New function (does nothing).
14116 (sigunblock): Ditto.
14118 * frame.c [WINDOWSNT]: Include w32term.h.
14120 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
14122 * lread.c (syms_of_lread): Fix literal newlines.
14124 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
14125 the string constant limit (2048 bytes) in MSVC.
14128 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
14130 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
14131 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
14132 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
14133 dispatch the event.
14135 2000-02-04 Dave Love <fx@gnu.org>
14137 * fileio.c: Remove some unused vars.
14138 (_GNU_SOURCE): Define (for euidaccess).
14140 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
14142 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
14144 (read_minibuf): Deal with allow_props correctly.
14146 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
14148 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
14150 2000-02-03 Ken Raeburn <raeburn@gnu.org>
14152 * search.c (compile_pattern): If a cache entry has a nil regexp,
14153 fill in that entry instead of clobbering a previously cached
14156 2000-02-02 Ken Raeburn <raeburn@gnu.org>
14158 * puresize.h (BASE_PURESIZE): Increase to 610000.
14160 2000-02-02 Gerd Moellmann <gerd@gnu.org>
14162 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
14165 2000-02-02 Kenichi Handa <handa@etl.go.jp>
14167 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
14168 instead of incrementing ic directly.
14169 <CCL_WriteExprConst> Likewise.
14170 <ccl_set_expr>: Set ic to jump_address.
14172 * fileio.c (e_write): Fix the handling of
14173 CODING_FINISH_INSUFFICIENT_SRC.
14175 2000-02-01 Dave Love <fx@gnu.org>
14177 * editfns.c (Fpropertize): Doc fix.
14179 * process.c (Fstart_process): Doc fix.
14181 * eval.c: Fix various doc strings not to duplicate information
14182 from help-manyarg-func-alist.
14184 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
14186 * doc.c (Vhelp_manyarg_func_alist): New variable.
14187 (Fdocumentation): Use it.
14188 (syms_of_doc): Define it.
14190 2000-01-31 Gerd Moellmann <gerd@gnu.org>
14192 * xterm.c (xim_open_dpy): Remove unused local variable.
14194 * emacs.c (USAGE): Use term `display options' instead of `X options'.
14196 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
14197 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14199 * fns.c (sweep_weak_table): New function.
14200 (sweep_weak_hash_tables): Use it. Keep on marking until there
14203 2000-01-30 Gerd Moellmann <gerd@gnu.org>
14205 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
14206 that XTread_socket does not crash by trying to call XNoOp on a
14209 2000-01-30 Jason Rumney <jasonr@gnu.org>
14211 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14212 Change selected_frame to SELECTED_FRAME ().
14213 (w32_console_mouse_position): Remove #ifndef MULE from around
14214 `insist' parameter.
14216 * makefile.nt: Remove dosfns.obj.
14218 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
14220 * w32fns.c (w32_defined_color): Check for valid frame before
14221 applying gamma correction. Eliminate dependency on frame elsewhere.
14222 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
14223 (w32_to_x_font): Use resx and resy not height_in and width_in.
14224 (x_to_w32_font): Doc fix.
14225 (xlfd_strip_height): New function to strip and return font height.
14226 (w32_font_match): Compare height separately from rest of xlfd
14227 spec, using xlfd_strip_height.
14229 * w32term.c (w32_term_init): Swap resx and height_in, resy and
14230 width_in. Use w32_defined_color in place of defined_color.
14232 * w32faces.c: Merge more of DOS and X specifics in preparation for
14233 merge with xfaces.c.
14234 (defined_color): Remove FIXME comment.
14235 (tty_color_name): Provide w32-specific function.
14236 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
14238 * w32console.c (turn_on_face, turn_off_face): Removed.
14239 (w32_face_attributes): New function.
14240 (Global_variables): Reduce scope where possible.
14241 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
14243 (hl_mode): Don't modify text attributes.
14244 (write_glyphs): Don't do anything if len <= 0. Use
14245 w32_face_attributes to get attributes for drawing. Write
14246 terminating codes using char_attr_normal.
14247 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
14248 (update_begin, update_end): Likewise.
14249 (vga_stdcolor_name): New function.
14250 (initialize_w32_display): Remove char_attr_reverse and char_attr.
14251 (Fset_screen_color): Remove char_attr_reverse.
14253 2000-01-29 Gerd Moellmann <gerd@gnu.org>
14255 * xfns.c (xic_set_preeditarea): Take window parameter and
14256 window-relative pixel-positions.
14258 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
14259 is its frame's selected window.
14260 (xim_instantiate_callback): Likewise.
14262 * xfns.c (x_create_im): Removed.
14263 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
14264 (supported_xim_styles): Renamed from supported_styles.
14265 (best_xim_style): Renamed from best_style.
14266 (create_frame_xic): Renamed from xic_create_frame.
14267 (free_frame_xic): Renamed from xic_destroy_frame.
14269 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
14271 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
14272 our frames, call XFilterEvent with 2nd parameter `None'.
14273 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
14274 returning XBufferOverflow.
14275 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
14276 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
14277 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
14278 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
14279 (xim_initialize, xim_close)
14280 [HAVE_X_I18N && HAVE_X11R6]: New functions.
14281 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
14282 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
14283 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
14285 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
14287 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
14288 `xic_style' and `xic_xfs'.
14289 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
14290 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
14291 (FRAME_XIM): Removed.
14293 * xfns.c (supported_styles): New variable.
14294 (DEFAULT_STYLE, DEFAULT_FONT): New macros
14295 (xic_create_xfontset, best_style, xic_create_frame)
14296 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
14297 (xic_set_xfontset): New functions.
14299 2000-01-28 Dave Love <fx@gnu.org>
14301 * s/irix6-5.h: Revert last change after change to irix5-0.h.
14303 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
14305 2000-01-28 Gerd Moellmann <gerd@gnu.org>
14307 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
14308 for *scratch* if it already existed.
14310 * emacs.c (USAGE): New macro.
14311 (main): Use it to display usage information.
14313 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14315 Support for the menu-help feature:
14317 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
14319 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
14320 part of the line to the termscript file.
14321 (IT_clear_to_end): Clear the entire line, not just its beginning.
14322 (menu_help_message, prev_menu_help_message): New variables.
14323 (IT_menu_make_room): Make room for the help_text member.
14324 (IT_menu_display): New argument disp_help; all callers changed.
14325 If disp_help is non-zero, store the help text of the active menu
14326 item in menu_help_message.
14327 (XMenuAddPane): Initialize the help_text member to NULL.
14328 (XMenuAddSelection): New argument help_text. Store it in the
14330 (XMenuActivate): New argument help_callback. If the value of
14331 menu_help_message has changed since the last time, display the
14332 menu help message text while waiting for the mouse to move. Clear
14333 the echo area before exiting.
14334 (XMenuDestroy): Free the help_text member.
14336 2000-01-27 Gerd Moellmann <gerd@gnu.org>
14338 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
14339 XMenuAddSelection. Pass help callback to XMenuActivate.
14340 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
14342 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14344 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
14345 and EMACS_SET_USECS.
14347 2000-01-26 Dave Love <fx@gnu.org>
14349 * editfns.c (Fchar_after, Fchar_before): Doc fix.
14351 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
14352 an error may be signalled.
14354 2000-01-26 Gerd Moellmann <gerd@gnu.org>
14356 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
14357 LD_SWITCH_SYSTEM inherited from irix5-0.h.
14359 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
14361 2000-01-25 Gerd Moellmann <gerd@gnu.org>
14363 * charset.c (Fstring): If there is a multibyte char among
14364 the args, always return a multibyte string.
14366 2000-01-25 Gerd Moellmann <gerd@gnu.org>
14368 * sysdep.c (sys_select): Turn atimers off and on instead of
14369 recording and restoring old alarm handler
14371 * process.c (toplevel): Include atimer.h.
14372 (create_process_1): Rewritten.
14373 (create_process): Use atimers instead of alarm.
14374 (wait_reading_process_input) [hpux]: Turn atimers off instead
14375 of turning off SIGALRM.
14376 (wait_reading_process_input): Turn off atimers instead off
14377 calling stop_polling.
14379 * emacs.c (main): Call init_atimer.
14381 * keyboard.c (toplevel): Include systime.h and atimer.h.
14382 (polling_for_input): Removed because unused.
14383 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
14384 (poll_timer): New variable.
14385 (poll_for_input, poll_for_input_1): New functions.
14386 (start_polling, stop_polling): Rewritten.
14388 * keyboard.h (polling_for_input): Removed.
14390 * atimer.h, atimer.c: New files.
14392 * Makefile.in (obj): Add atimer.o.
14393 (atimer.o): New target.
14395 * blockinput.h (pending_atimers): Add extern declaration.
14396 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
14398 * lisp.h (popup_activated_flag): Add extern declaration.
14400 * xmenu.c (popup_activated_flag): Make externally visible.
14401 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
14402 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
14404 * xterm.c (toplevel): Include atimer.h.
14405 (toolkit_scroll_bar_interaction): New variable.
14406 (Fxt_process_timeouts): Removed.
14407 (x_process_timeouts): New function.
14408 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
14409 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
14410 (x_make_frame_visible): Call poll_for_input_1 instead of
14411 input_poll_signal. Don't call alarm.
14412 (x_initialize): Install timer calling x_process_timeouts.
14414 2000-01-24 Dave Love <fx@gnu.org>
14416 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
14417 Don't use -cckr -- apparently not now necessary.
14419 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
14421 * msdos.c (IT_menu_display): Truncate long menu lines at the right
14424 2000-01-23 Jason Rumney <jasonr@gnu.org>
14426 * w32fns.c (w32_defined_color): Apply gamma correction before
14427 trying to map to the palette.
14428 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
14431 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
14432 here. Callers changed to always pass real device context.
14433 (w32_draw_bitmap): Likewise.
14434 (w32_get_glyph_overhangs): Likewise.
14435 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
14436 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
14437 pfnSetScrollInfo and SetScrollRange.
14438 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
14439 back into MULE characters after decoding them.
14440 (x_get_glyph_face_and_encoding): Likewise.
14441 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
14442 GetCharABCWidthsW fails, since this is defined on Windows 9x.
14443 (x_produce_glyphs): Calculate per char metrics for a character
14444 that we know exists in default font when font_not_found_p is true.
14446 2000-01-22 Jason Rumney <jasonr@gnu.org>
14448 * makefile.nt (intervals.obj, composite.obj): New modules.
14449 (composite.h): Added as dependency where appropriate.
14451 * w32gui.h (XGCValue): New struct for emulating X GCs.
14453 * w32term.h (XCharStruct): New struct for emulating X.
14455 * w32console.c (turn_on_face, turn_off_face): New functions.
14456 (change_line_highlight): New prototype for new redisplay.
14457 (write_glyphs): Support multibyte text. Support faces.
14459 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
14461 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
14462 throughout. struct frame * in place of FRAME_PTR.
14463 Skeleton support for images, toolbars, tooltips from xfns.c.
14464 (Fx_create_frame): Use system default for default scroll bar width.
14465 (w32_get_arg): Renamed from x_get_arg.
14466 (Fx_file_dialog): New function.
14467 (w32_list_fonts): Check cache before asking system.
14468 (Vw32_enable_synthesized_fonts): New variable.
14469 (Vw32_enable_italics): Obsolete, removed.
14471 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14472 Use SELECTED_FRAME macro.
14474 * w32menu.c: Add skeleton support for help strings on menus.
14475 (add_menu_item): Native checkbox and radio support added, but not
14476 yet enabled due to bugs.
14477 (push_menu_item): Add parameters type, selection and help.
14479 Formatting changes to reduce unnecessary diffs with xmenu.c.
14481 * w32select.c (Fw32_set_clipboard_data): Update call to
14482 find_charset_in_str.
14484 * w32term.c: Complete rewrite for new redisplay based on new
14485 xterm.c with necessary sections merged back in from old w32term.c.
14487 2000-01-21 Richard M. Stallman <rms@gnu.org>
14489 * data.c (set_internal): Further fix in same criterion.
14491 2000-01-20 Richard M. Stallman <rms@gnu.org>
14493 * data.c (set_internal): Fix the criteria for whether
14494 to swap out the old cached binding.
14496 2000-01-19 Dave Love <fx@gnu.org>
14498 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
14500 2000-01-18 Kenichi Handa <handa@etl.go.jp>
14502 * regex.c (re_compile_fastmap): While checking a range table for
14503 `charset', skip flag bits for a character class correctly.
14505 2000-01-17 Gerd Moellmann <gerd@gnu.org>
14507 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
14509 * xfns.c (x_window): Call lw_create_widget with new parameter list.
14511 * widget.c (EmacsFrameSetCharSize): Change size of children first
14512 because of problems with main window geometry management under Lesstif.
14514 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
14515 MENU_ITEMS_ITEM_.*.
14516 (MENU_ITEMS_ITEM_HELP): New enumerator.
14517 (push_menu_item): Add parameter HELP. Record help in menu_items.
14518 (single_menu_item, single_submenu, list_of_items): Call
14519 push_menu_item with new parameter.
14520 (single_submenu): Set help string in widget value.
14521 (menu_highlight_callback): New function.
14522 (set_frame_menubar): Call lw_create_widget with new
14524 (xmenu_show, xdialog_show): Ditto.
14526 2000-01-13 Gerd Moellmann <gerd@gnu.org>
14528 * sound.c (Fplay_sound): Improve doc string.
14530 2000-01-11 Richard M. Stallman <rms@gnu.org>
14532 * lisp.h (set_internal): Enter the new arg.
14534 * eval.c (specbind): Record buffer-local variables specially,
14535 indicating which buffer's binding was saved.
14536 (unbind_to): Restore buffer-local variables specially
14537 in the proper buffer.
14539 * data.c (set_internal): New arg BUF.
14541 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
14542 * data.c (Fset): Pass new arg to set_internal.
14543 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
14545 2000-01-11 Gerd Moellmann <gerd@gnu.org>
14547 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
14549 2000-01-11 Richard M. Stallman <rms@gnu.org>
14551 * minibuf.c (Ftry_completion): Doc fix.
14553 2000-01-11 Gerd Moellmann <gerd@gnu.org>
14555 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
14558 2000-01-11 Andreas Schwab <schwab@suse.de>
14560 * coding.c (code_convert_region): Initialize total_skip.
14562 2000-01-08 Dave Love <fx@gnu.org>
14564 * eval.c (Fuser_variable_p): Check customizability too.
14566 2000-01-07 Gerd Moellmann <gerd@gnu.org>
14568 * minibuf.c (Fcompleting_read): Doc fix.
14570 2000-01-05 Gerd Moellmann <gerd@gnu.org>
14572 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
14575 * xfns.c (x_create_im): New function to set IM and IC of a frame.
14576 Check that input style is supported before trying to create an
14578 (x_window): Call x_create_im.
14580 2000-01-04 Gerd Moellmann <gerd@gnu.org>
14582 * xfns.c (current_gif_memory_src): New variable.
14583 (gif_load): Record the address of the current memory source
14584 in current_gif_memory_src.
14585 (gif_read_from_memory): Use current_gif_memory_src.
14587 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
14588 macros statement form.
14590 * sound.c (struct sound): Renamed from struct sound_file.
14591 (struct sound): Add members `data' and `header_size'.
14592 (enum sound_attr): Add SOUND_DATA.
14593 (current_sound, current_sound_device): Variables renamed from
14594 sound_file and sound_device.
14595 (parse_sound): Parse :data.
14596 (parse_sound): Handle sound data in strings.
14597 (find_sound_type): Function renamed from find_sound_file_type.
14598 (wav_init, au_init): Fail if sound's header_size is smaller than
14599 needed header size.
14600 (wav_play, au_play): Play sounds from string data.
14602 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
14604 * lisp.h: Add prototype for allocate_string_data.
14606 * alloc.c (Fgarbage_collect): Return number of live and free strings.
14608 * alloc.c (mark_buffer): Remove code in #if 0.
14610 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
14611 (strings_consed): New variable.
14612 (allocate_string): Set it.
14613 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
14614 (Fmemory_use_counts): Return strings_consed. Use Flist.
14616 * alloc.c: General cleanup in comments etc. Remove conditional
14617 compilation for `standalone'.
14619 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
14621 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
14622 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
14623 (DONT_COPY_FLAG): Removed.
14624 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
14625 (struct sdata, struct sblock): New
14626 (struct string_block): Rewritten.
14627 (STRINGS_IN_STRING_BLOCK): New macro.
14628 (oldest_sblock, current_sblock, total_strings, total_free_strings)
14629 (large_sblocks, string_blocks, string_free_list): New variables.
14630 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
14631 (init_strings): Rewritten.
14632 (allocate_string, allocate_string_data, compact_small_strings)
14633 (free_large_strings, sweep_strings): New functions.
14634 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
14635 (struct string_block_head, current_string_block)
14636 (first_string_block, large_string_blocks, STRING_FULLSIZE)
14637 (STRING_PAD): Removed.
14638 (make_uninit_multibyte_string, make_pure_string): Rewritten.
14639 (Fgarbage_collect): Don't set mark bit in large strings.
14640 (mark_object): Mark strings differently. Mark symbol names
14642 (survives_gc_p): Test marked strings differently.
14643 (gc_sweep): Sweep strings differently, unmark strings in
14645 (compact_strings): Removed.
14647 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
14649 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
14650 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
14652 2000-01-04 Kenichi Handa <handa@etl.go.jp>
14654 * fileio.c (Finsert_file_contents): Signal error if visiting file
14655 in a non-empty buffer.
14657 * term.c (encode_terminal_code): Fix the previous change.
14659 2000-01-03 Gerd Moellmann <gerd@gnu.org>
14661 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
14662 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
14664 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
14666 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14668 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
14669 need to test for MSDOS frames.
14671 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14673 * dosfns.c (unspecified_colors): Remove.
14674 (msdos_stdcolor_idx): Use global variables unspecified_fg and
14676 (msdos_stdcolor_name): Return strings for unspecified fore- and
14677 back-ground colors.
14679 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
14680 (syms_of_xfaces): Remove their staticpro's.
14681 (tty_color_name): Return Lisp strings for unspecified fore- and
14682 back-ground colors.
14683 (Finternal_set_lisp_face_attribute): Remove the special treatment
14684 for Qunspecified_{f,b}g.
14685 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
14687 2000-01-03 Gerd Moellmann <gerd@gnu.org>
14689 * xdisp.c (reseat_at_next_visible_line_start): Position before
14690 newline only if ending up on a newline.
14691 (next_element_from_ellipsis): Return success. Handle case of
14692 displaying no ellipsis. Fix case of ellipsis defined in display table.
14693 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
14696 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14698 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
14699 (Fcolor_supported_p): Renamed from face-color-supported-p.
14701 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14703 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
14704 list of colors renamed to tty-defined-color-alist.
14705 (tty_color_name): Pass the frame to tty-color-by-index.
14706 (realize_tty_face): tty-color-alist is now a function which
14707 accepts the frame as argument.
14709 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
14711 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14713 * term.c (insert_glyphs): Pass glyph, not &glyph, to
14714 encode_terminal_code.
14716 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14718 * dispnew.c (mode_line_string): Support termcap frames as well.
14720 2000-01-01 Gerd Moellmann <gerd@gnu.org>
14722 * syntax.c (Fforward_word): Undo previous change.
14724 * editfns.c (Fconstrain_to_field): Don't constrain if
14725 inhibit-field-text-motion is non-nil.
14726 (Fline_beginning_position): Undo previous change.
14727 (Fline_end_position): Ditto.
14729 * syntax.c (Fforward_word): Notice field boundaries only if
14730 inhibit-field-text-motion is nil.
14732 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
14734 * editfns.c (Vinhibit_field_text_motion): New variable.
14735 (inhibit-field-text-motion): New DEFVAR_LISP.
14736 (Fline_beginning_position, Fline_end_position): Notice field
14737 boundaries only if inhibit-field-text-motion is nil.
14739 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
14740 All calls adjusted.
14741 (x_build_heuristic_mask): Likewise.
14742 (xbm_load_image_from_file): Change error output.
14743 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
14744 (gif_load, gs_load, x_kill_gs_process): Ditto.
14746 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
14747 color indices when accessing raster pixels.
14748 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
14749 one of :file or :data.
14750 (enum pbm_keyword_index): Add PBM_DATA.
14751 (pbm_format): Add :data.
14752 (pbm_image_p): Allow either :file or :data.
14753 (pbm_read_file): New function.
14754 (pbm_scan_number): Rewritten to read from string.
14755 (pbm_load): Support :data.
14757 See ChangeLog.8 for earlier changes.
14759 ;; Local Variables:
14760 ;; coding: iso-2022-7bit
14763 Copyright (C) 2001 Free Software Foundation, Inc.
14764 Copying and distribution of this file, with or without modification,
14765 are permitted provided the copyright notice and this notice are preserved.