1 1999-10-13 Dave Love <fx@gnu.org>
3 * filelock.c (lock_file): Move gcpro of `fn'.
5 1999-10-10 Gerd Moellmann <gerd@gnu.org>
7 * keyboard.c (auto-save-interval): Fix documentation.
9 1999-10-09 Richard M. Stallman <rms@caffeine.ai.mit.edu>
11 * print.c (print): When removing objects from Vprint_number_table,
12 only scan the newly added objects.
13 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
14 unconditionally force it to stay in the table.
16 1999-10-09 Gerd Moellmann <gerd@gnu.org>
18 * xfns.c (prepare_image_for_display): Don't try to load image if
19 loading it failed before.
20 (lookup_image, prepare_image_for_display): Remember if loading the
22 (xpm_load): Add missing UNBLOCK_INPUT.
24 * dispextern.h (struct image): New member load_failed_p.
26 1999-10-08 Stefan Monnier <monnier@cs.yale.edu>
28 * fileio.c (Fmake_temp_name): add a reference to `make-temp-file'
31 1999-10-08 Gerd Moellmann <gerd@gnu.org>
33 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
34 Don't call XSetInputFocus because that can generate additional
37 1999-10-07 Jeffrey C Honig <jch@bsdi.com>
39 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
41 1999-10-07 Richard M. Stallman <rms@caffeine.ai.mit.edu>
43 * process.c (wait_reading_process_input): When trying to suck
44 input from one process, for accept-process-output,
45 exit that loop if we get EAGAIN or EWOULDBLOCK.
47 1999-10-07 Gerd Moellmann <gerd@gnu.org>
49 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
50 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
51 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
52 Fpixmap_spec_p and Qpixmap_spec_p.
53 (load_face_colors, check_lface_attrs,
54 merge_face_vector_with_property,
55 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
56 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
59 1999-10-07 Gerd Moellmann <gerd@gnu.org>
61 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
64 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
65 (struct x_resources) [USE_X_TOOLKIT]: New.
66 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
68 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
70 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
72 (syms_of_xfaces): Initialize Qmenu.
73 (realize_basic_faces): Realize face `menu'.
74 (resolve_face_name): New.
75 (lface_from_face_name): Use it.
76 (Finternal_set_lisp_face_attribute): Ditto.
77 (Fpixmap_spec_p): Rewritten. Extend doc string.
79 * xmenu.c (set_frame_menubar, xmenu_show): Call
80 x_set_menu_resources_from_menu_face.
82 * dispextern.h (enum face_id): Add MENU_FACE_ID.
83 (toplevel): Include X11/Intrinsic.h.
85 1999-10-03 Ken'ichi Handa <handa@gnu.org>
87 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
90 1999-09-30 Kenichi Handa <handa@etl.go.jp>
92 * category.c (modify_lower_category_set): Set default value of
95 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
98 1999-09-29 Gerd Moellmann <gerd@gnu.org>
100 * editfns.c (Fpropertize): Renamed from Fproperties.
102 1999-09-29 Gerd Moellmann <gerd@gnu.org>
104 * xdisp.c (resize_mini_window): Do nothing if frame is an X
105 frame that hasn't been initialized yet.
107 1999-09-28 Richard M. Stallman <rms@caffeine.ai.mit.edu>
109 * keymap.c (Fsingle_key_description): Make tem big enough.
110 (describe_buffer_bindings): Make buf big enough.
112 1999-09-27 Richard M. Stallman <rms@caffeine.ai.mit.edu>
114 * intervals.c (get_local_map): Use indirect_function,
115 not Findirect_function.
117 1999-09-27 Dave Love <fx@gnu.org>
119 * cm.h: Remove unneeded declaration of ospeed.
121 1999-09-26 Gerd Moellmann <gerd@gnu.org>
123 * lisp.h (toplevel): Add prototype for
124 next_single_char_property_change.
126 * textprop.c (next_single_char_property_change): New.
128 * xdisp.c (display_prop_end, invisible_text_between_p): Use
129 next_single_char_property_change.
131 1999-09-25 Gerd Moellmann <gerd@gnu.org>
133 * editfns.c (Fproperties): New.
134 (syms_of_editfns): Defsubr it.
136 * xfns.c (lookup_image): Set image's timestamp because it's
137 used when we look it up.
139 1999-09-23 Gerd Moellmann <gerd@gnu.org>
141 * window.c (enlarge_window): Add window parameter instead of using
143 (Fdisplay_buffer): Call it with window parameter instead of
144 setting selected_window.
145 (Fenlarge_window, Fshrink_window): Ditto.
146 (shrink_mini_window): If there is no recorded height and position
147 info, resize mini-window to height 1.
149 * xfns.c (image_error): Use add_to_log.
151 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
152 (load_face_font_or_fontset, load_color,
153 merge_face_vector_with_property): Ditto.
155 * dispextern.h: Add prototype for add_to_log.
157 * xfaces.c (add_to_log): Move to xdisp.c.
159 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
162 1999-09-23 Gerd Moellmann <gerd@gnu.org>
164 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
165 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
167 * xdisp.c (resize_mini_window): Use grow_mini_window and
170 * window.c (window_min_size): Add parameter ignore_fixed_p.
171 (change_window_height): Call window_min_size with new parameter.
172 (shrink_window_lowest_first, save_restore_orig_size,
173 grow_mini_window, shrink_mini_window): New.
174 (make_window, replace_window): Initialize orig_top and
176 (enlarge_window): Renamed from change_window_height. Make it
178 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
179 enlarge_window instead of change_window_height.
181 * window.h (struct window): New members orig_top, orig_height.
182 (toplevel): Add prototypes for grow_mini_window and
183 shrink_mini_window. Remove prototype for change_window_height.
185 1999-09-21 Eli Zaretskii <eliz@gnu.org>
187 * frame.c (frame_name_fnn_p): Fix previous change.
189 1999-09-20 Gerd Moellmann <gerd@gnu.org>
191 * minibuf.c (toplevel): Move include of stdio.h to other includes.
193 * dispnew.c (direct_output_for_insert): Cast arguments to
194 safe_bcopy to char *.
196 * lread.c (readchar): Remove unused variables.
197 (read_filtered_event, read1, Fmapatoms): Ditto.
198 (toplevel): Include intervals.h.
200 * eval.c (Fsignal): Remove unused variables.
201 (Fcommandp, do_autoload): Ditto.
203 * lisp.h: Add prototype for safe_bcopy, fatal.
205 * editfns.c (init_editfns): Remove unused variables.
206 (Fgoto_char, Fchar_after, Fformat): Ditto.
207 (message_text, message_length): Put in #ifndef HAVE_MENUS.
209 * data.c (find_symbol_value): Remove unused variables.
210 (Faref, Fstring_to_number): Ditto.
211 (toplevel): Include stdio.h.
212 (Fnumber_to_string): Cast XINT to long for %ld.
214 * casefiddle.c (casify_object): Remove unused variables.
215 (casify_region): Ditto.
217 * filelock.c (get_boot_time): Put local variable used in
218 conditinally compiled section in #ifdef.
219 (toplevel): Include stdio.h.
221 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
222 keys_of_keymap, syms_of_keymap): Remove unused variables.
224 1999-09-20 Gerd Moellmann <gerd@gnu.org>
226 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
227 whose corresponding window rows have been disabled in
230 1999-09-20 Gerd Moellmann <gerd@gnu.org>
232 * xdisp.c (compute_window_start_on_continuation_line): Handle case
233 that window start is out of range.
234 (handle_display_prop, handle_single_display_prop): Replace
235 marginal area specifications like `left-margin' with `(margin
238 (syms_of_xdisp): Initialize Qmargin.
240 1999-09-19 Gerd Moellmann <gerd@gnu.org>
242 * syntax.c (update_syntax_table, find_defun_start, back_comment,
243 describe_syntax, skip_chars): Remove unused variables.
244 (back_comment, forw_comment): Add braces to if-statement with
245 if-else as dependent statement.
247 * process.c (list_processes_1): Remove unused variables.
248 (Fopen_network_stream, create_process): Add parentheses to
249 conditional expressions.
250 (create_process): Put declaration of sigchld in #if 0.
251 (Fopen_network_stream): Removed unused variables.
252 (Fopen_network_stream, wait_reading_process_input,
253 wait_reading_process_input, send_process, send_process): Ditto.
254 (toplevel): Add prototypes for set_waiting_for_input and
257 * abbrev.c (Fexpand_abbrev): Remove unused variables.
259 * textprop.c (Fset_text_properties): Remove unused variables.
260 (text_property_list, verify_interval_modification,
261 interval_has_all_properties): Ditto.
263 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
264 (Fcall_process): Remove unused variable.
266 * keyboard.c (Frecursive_edit): Remove unused variable.
267 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
268 timer_check, make_lispy_event, menu_bar_items,
269 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
270 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
271 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
272 read_key_sequence): Ditto. Fread_key_sequence,
273 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
274 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
275 used when GOBBLE_FIRST_EVENT is defined in #ifdef
276 (Fexecute_extended_command): Cast XINT to long for %ld.
277 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
278 (toplevel): Include sys/types.h.
280 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
281 (toplevel): Add prototypes for stuff_char, and
282 code_convert_string_norecord.
284 1999-09-19 Gerd Moellmann <gerd@gnu.org>
286 * buffer.h: Add prototype for r_re_alloc.
288 * insdel.c (copy_text): Removed unused variables.
289 (count_combining_after, count_combining_after, insert_1_both,
290 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
291 (adjust_after_replace, replace_range): Add parentheses to logical
292 expressions. Remove unused variables.
293 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
296 * alloc.c (Fgarbage_collect): Remove unused variable.
297 (compact_strings): Add parentheses around assignments in
299 (toplevel): Put declaration of unused function clear_marks
300 in #if 0 like its definition.
302 * lisp.h: Add prototype for shrink_regexp_cache,
303 sweep_weak_hash_tables.
305 1999-09-19 Dave Love <fx@gnu.org>
307 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
309 * doc.c (read_bytecode_char): Declare arg.
311 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
312 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
314 1999-09-18 Richard Stallman <rms@gnu.org>
316 * xdisp.c (echo_area_display): Turn off code that returned
317 without doing anything when using a terminal frame.
319 1999-09-17 Richard M. Stallman <rms@caffeine.ai.mit.edu>
321 * unexelf.c (unexec): Don't get confused by a short section
322 just before the bss section.
324 1999-09-16 Gerd Moellmann <gerd@gnu.org>
326 * emacs.c (main): Remove unused variables.
327 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
329 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
330 init_fileio_once, syms_of_sound, init_xfns, init_fns
331 init_sound, check_message_stack.
333 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
335 * intervals.c (rotate_right, rotate_left): Add braces to avoid
336 ambiguous else warning.
337 (split_interval_left): Remove unused variables.
338 (previous_interval, adjust_intervals_for_deletion,
339 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
340 (icount, idepth, zero_length): Move into #if 0 section below
341 original position where these are used.
343 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
345 * buffer.c (Fkill_buffer): Remove unused variables.
346 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
347 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
348 init_buffer_once, (syms_of_buffer): Ditto.
350 * xrdb.c (get_fallback): Remove unused variable.
351 (x_load_resources): Ditto. Put local variable used for Motif only
354 1999-09-16 Gerd Moellmann <gerd@gnu.org>
356 * minibuf.c (read_minibuf): Remove unused variables.
357 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
358 (do_completion): Move assignment out of conditional context.
359 (Fdisplay_completion_list): Add parentheses to conditional expression.
361 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
363 * lisp.h: Add prototype for no_switch_window.
365 * window.c (Fset_window_buffer): Remove unused variables.
366 (Fset_window_margins): Ditto.
368 * xdisp.c (resize_mini_window): Temporarily set the selected
369 window's or Vminibuf_scroll_window's height to "fixed" around
370 the call the change_window_height.
372 * window.c (window_fixed_size_p): Check window's height_fixed_p
375 * window.h (struct window): New member height_fixed_p.
377 * dispnew.c (direct_output_forward_char): Don't use this method
378 if showing a message or a message was just cleared because we
379 might need to resize the mini-window.
381 1999-09-16 Gerd Moellmann <gerd@gnu.org>
383 * frame.c (Fdelete_frame): Correct local variable pointing to
384 selected frame after selecting new frame.
386 1999-09-15 Richard Stallman <rms@gnu.org>
388 * puresize.h (BASE_PURESIZE): Increase to 525000.
390 * filelock.c (Vtemporary_file_directory): New variable.
391 (syms_of_filelock): Set up Lisp variable.
393 1999-09-15 Gerd Moellmann <gerd@gnu.org>
395 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
396 (encode_terminal_code): Remove unused variables.
397 (turn_off_face): Ditto.
398 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
400 * dispnew.c (update_frame_line): If writing whole desired line,
401 don't clear to end of line if already at the end.
403 1999-09-15 Gerd Moellmann <gerd@gnu.org>
405 * xdisp.c (resize_mini_window): Don't report changed window
406 height if it actually hasn't changed.
408 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
410 (mark_shell_size_user_specified): Put in #if 0 because not used.
411 (create_frame_gcs): Put in #if 0 because currently unused.
412 (first_frame_p): Ditto.
414 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
415 single_submenu, update_frame_menubar, set_frame_menubar,
416 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
419 * print.c (PRINTFULLP): Removed because it is no longer used and
421 (Ferror_message_string): Remove unused variables.
422 (print_object): Cast argument of sprintf to long for `%ld'
423 specifier. Remove unused variable.
425 1999-09-14 Gerd Moellmann <gerd@gnu.org>
427 * sound.c (Fplay_sound): Remove usused variables.
428 (be2hs): Put in #if 0 because it's currently not used.
430 1999-09-14 Ken Raeburn <raeburn@gnu.org>
432 * print.c (Ferror_message_string, print_error_message,
433 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
436 1999-09-14 Gerd Moellmann <gerd@gnu.org>
438 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
440 * frame.c (Fnext_frame): Remove unused variable(s).
441 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
442 (store_frame_param): Add parentheses to conditional expression.
443 (Fmodify_frame_parameters): Remove unused variables.
444 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
447 * xfns.c (x_set_background_color): Remove unused variable(s).
448 (x_set_border_pixel): Ditto.
449 (x_set_menu_bar_lines): Put local variable used only for
450 non-toolkit case in #ifdef/#endif.
451 (x_figure_window_size): Remove unused variable(s).
452 (x_figure_window_size, x_window, lookup_image,
453 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
454 png_load, jpeg_load, gif_load, x_create_tip_frame,
455 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
457 * xterm.c (x_scroll_bar_handle_click): Compile only if
458 not USE_TOOLKIT_SCROLL_BARS.
459 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
461 * dispextern.h: Add prototypes for gamma_correct and
464 * xterm.c (x_produce_glyphs): Remove unused variable(s).
465 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
466 x_set_toolkit_scroll_bar_thumb): Ditto.
467 (x_scroll_bar_create): Move local variable to the
468 conditionally compiled section of code where it is used.
469 (x_scroll_bar_create): Remove unused variable(s).
470 (x_scroll_bar_remove, XTread_socket): Ditto.
471 (XTread_socket) <ConfigureNotify>: Move variables used for
472 non-toolkit case into conditionally compiled section of code.
474 * window.h (freeze_window_starts): Fix typo in prototype.
476 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
479 * lisp.h: Add prototype for debug_print.
481 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
484 * fns.c (SXHASH_COMBINE): Add missing parentheses.
485 (Fchar_table_range, Fset_char_table_default, mapcar1,
486 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
488 * lisp.h: Add prototype for getloadavg.
490 1999-09-14 Andreas Schwab <schwab@gnu.org>
492 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
494 * lisp.h: Declare close_file_unwind.
496 1999-09-14 Richard Stallman <rms@gnu.org>
498 * filelock.c (get_boot_time): Make the temp name in the proper dir.
500 1999-09-13 Gerd Moellmann <gerd@gnu.org>
502 * xdisp.c (redisplay_window): Make sure start_at_line_beg
503 is always set correctly.
505 1999-09-13 Dave Love <fx@gnu.org>
507 * xdisp.c (move_it_in_display_line_to): Make type consistent with
510 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
512 * xdisp.c (QCfile): Move here from xfns.c.
513 (syms_of_xdisp): Initialize it.
514 (message2_nolog): Change for Lisp_Object selected_frame.
515 (message3_nolog, message_with_string, message,
516 setup_echo_area_for_printing, truncate_echo_area,
517 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
519 1999-09-13 Dave Love <fx@gnu.org>
521 * xterm.c: Don't continue #define args for benefit of old cc.
522 (xt_action_hook): Indent #error for benefit of K&R cc.
524 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
526 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
527 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
528 (XRINGBELL): Removed.
530 1999-09-13 Dave Love <fx@gnu.org>
532 * xfns.c (x_put_x_image): Make type consistent with declaration.
534 * fns.c (Fmake_hash_table): Fix string continuation.
536 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
538 * xfns.c (QCfile): Moved to xdisp.c.
539 (syms_of_xfns): Don't initialize QCfile.
540 (check_x_frame): Change for Lisp_Object selected_frame.
541 (check_x_display_info, x_get_resource_string): Ditto.
543 1999-09-13 Gerd Moellmann <gerd@gnu.org>
545 * minibuf.c (choose_minibuf_frame): Don't try to set the
546 mini-buffer window's buffer, if the buffer is invalid.
548 * xfns.c (QCfile): Moved to xdisp.c.
549 (syms_of_xfns): Don't initialize QCfile.
551 * xdisp.c (QCfile): Move here from xfns.c.
552 (syms_of_xdisp): Initialize it.
554 * lisp.h (selected_frame): Add external declaration.
556 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
557 (Fx_store_cut_buffer_internal): Ditto.
558 (Fx_rotate_cut_buffers_internal): Ditto.
560 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
562 (Finternal_set_lisp_face_attribute): Ditto.
563 (Finternal_get_lisp_face_attribute): Ditto.
564 (Finternal_lisp_face_empty_p): Ditto.
567 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
568 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
569 set_terminal_window, set_scroll_region, reassert_line_highlight,
570 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
571 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
572 encode_terminal_code, write_glyphs, term_init): Ditto.
574 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
575 (kbd_input_ast, read_input_waiting): Ditto.
577 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
579 (read_minibuf): Ditto.
581 * keyboard.c (command_loop_1): Change for Lisp_Object
583 (cmd_error_internal, command_loop_1, read_char,
584 kbd_buffer_get_event, read_avail_input,
585 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
586 interrupt_signal, quit_throw_to_read_char): Ditto.
588 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
589 (Ffontset_info): DItto.
591 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
593 * dispnew.c (selected_frame): Make it a Lisp_Object.
594 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
595 (direct_output_for_insert, direct_output_forward_char,
596 init_display): Ditto.
598 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
600 (set_internal): Ditto.
602 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
603 (record_buffer): Ditto.
605 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
606 (do_switch_frame): Change for Lisp_Object selected_frame.
607 (Fselected_frame): Ditto.
608 (Fframe_first_window): Use SELECTED_FRAME.
609 (Fframe_root_window): Change for Lisp_Object selected_frame.
610 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
611 Fprevious_frame, other_visible_frames, Fdelete_frame,
612 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
613 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
614 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
615 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
616 Fset_frame_height, Fset_frame_width): Ditto.
618 1999-09-13 Gerd Moellmann <gerd@gnu.org>
620 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
621 (message3_nolog, message_with_string, message,
622 setup_echo_area_for_printing, truncate_echo_area,
623 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
625 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
626 (Fx_popup_dialog): Ditto.
628 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
629 (check_x_display_info, x_get_resource_string): Ditto.
631 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
632 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
633 (XRINGBELL): Removed.
635 * window.c (Fminibuffer_window): Change for Lisp_Object
637 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
638 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
639 Fcurrent_window_configuration, init_window_once): Ditto.
641 * frame.h (SELECTED_FRAME): New.
643 1999-09-12 Ken Raeburn <raeburn@gnu.org>
645 * category.c (word_boundary_p): Use XCAR and XCDR.
646 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
647 Fregister_code_conversion_map): Likewise.
648 * coding.c (setup_coding_system, detect_coding_system,
649 Ffind_operation_coding_system, Fset_coding_priority_internal):
651 * doc.c (get_doc_string, Fdocumentation,
652 store_function_docstring): Likewise.
653 * editfns.c (save_restriction_restore): Likewise.
654 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
655 skip_debugger, find_handler_clause, Fautoload, Fapply,
656 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
658 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
659 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
660 Fread_file_name): Likewise.
661 * filelock.c (unlock_all_files): Likewise.
662 * insdel.c (Fcombine_after_change_execute): Likewise.
663 * intervals.c (adjust_intervals_for_insertion): Likewise.
664 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
665 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
666 store_in_keymap, Fcopy_keymap, define_as_prefix,
667 current_minor_maps, Faccessible_keymaps,
668 accessible_keymaps_char_table, Fkey_description,
669 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
670 describe_buffer_bindings, describe_map_tree, shadow_lookup,
671 describe_map): Likewise.
672 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
673 read_list, init_lread): Likewise.
674 * search.c (Fmatch_data): Likewise.
675 * sunfns.c (Fsun_menu_internal): Likewise.
676 * syntax.c (describe_syntax): Likewise.
677 * undo.c (record_insert, record_delete, Fundo_boundary,
678 truncate_undo_list): Likewise.
679 * vmsproc.c (child_sig): Likewise.
681 * editfns.c (Fformat): Use XFLOAT_DATA.
683 1999-09-12 Gerd Moellmann <gerd@gnu.org>
685 * keyboard.c (command_loop_1): Resize mini-window to the
686 exact size of a message displayed, if any.
688 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
689 to exact size if exact_p is non-zero.
690 (display_echo_area_1): Call resize_mini_window with
692 (redisplay_internal): Ditto.
693 (resize_echo_area_axactly): New.
695 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
698 * dispextern.h: Change prototype of resize_mini_window.
699 Add prototype for resize_echo_area_axactly.
701 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
702 (syms_of_xfaces): Defsubr accordingly.
704 * xdisp.c (hscroll_window_tree): Choose cursor row from
705 desired or current matrix.
706 (redisplay_internal): Hscroll before updating.
708 1999-09-12 Gerd Moellmann <gerd@gnu.org>
710 * syntax.c (Fforward_word): Use prompt_end_charpos instead
711 of minibuffer_prompt_length.
713 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
714 of minibuffer_prompt_length.
715 (read_minibuf_unwind): Ditto.
716 (Fminibuffer_complete_and_exit): Ditto.
717 (Fminibuffer_complete_word): Ditto.
718 (Fminibuffer_prompt_end): Ditto.
720 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
721 of minibuffer_prompt_length.
722 (Fline_beginning_position): Ditto.
724 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
725 of minibuffer_prompt_length.
726 (Fmake_indirect_buffer): Ditto.
727 (Fkill_buffer): Ditto.
728 (Ferase_buffer): Ditto.
730 * buffer.h (prompt_end_charpos): Replaces
731 minibuffer_prompt_length.
733 * minibuf.c (read_minibuf): Return mini-buffer contents
736 * editfns.c (make_buffer_string_both): Take out the code
737 to handle mini-buffer prompts.
738 (Fbuffer_string): Handle the prompt here, instead.
740 * xfaces.c (lface_from_face_name): Resolve face aliases.
741 (Qmode_line): Replaces Qmodeline.
742 (realize_basic_faces): Use Qmode_line.
743 (syms_of_xfaces): Initialize Qmode_line.
745 1999-09-12 Gerd Moellmann <gerd@gnu.org>
747 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
748 current column after inserting prompt.
749 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
751 * xfaces.c (Qframe_update_face_colors): New.
752 (syms_of_xfaces): Initialize call.
753 (update_face_from_frame_parameter): Call that function when
754 the frame's background changes.
756 1999-09-12 Richard Stallman <rms@gnu.org>
758 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
760 1999-09-12 Ken Raeburn <raeburn@gnu.org>
762 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
763 mark_object, mark_buffer): Use XCAR and XCDR.
764 * bytecode.c (Fbyte_code): Likewise.
765 * callint.c (Fcall_interactively, Fprefix_numeric_value):
767 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
768 getenv_internal): Likewise.
769 * dired.c (file_name_completion): Likewise.
770 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
771 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
772 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
773 * indent.c (Fcompute_motion): Likewise.
774 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
775 list_processes_1, Fstart_process, Fopen_network_stream,
776 wait_reading_process_input, read_process_output_call,
777 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
778 status_notify, wait_reading_process_input): Likewise.
779 * textprop.c (PLIST_ELT_P, property_value, set_properties,
780 extend_property_ranges): Likewise.
781 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
782 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
783 x_report_frame_params, x_set_cursor_type, x_icon_type,
784 x_figure_window_size, Fx_create_frame, w32_load_system_font,
785 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
786 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
787 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
788 x_display_info_for_name, Fx_display_list): Likewise.
789 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
790 Fx_popup_menu, Fx_popup_dialog): Likewise.
791 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
792 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
793 w32_term_init, x_delete_display): Likewise.
794 * xfns.c (x_window_to_frame, x_any_window_to_frame,
795 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
796 x_top_window_to_frame, x_set_frame_parameters,
797 x_report_frame_params, x_set_cursor_type, x_icon_type,
798 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
799 Fx_display_list, x_create_tip_frame): Likewise.
800 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
801 Fx_popup_menu, Fx_popup_dialog): Likewise.
802 * xselect.c (x_own_selection, x_get_local_selection,
803 x_handle_selection_request, x_handle_selection_clear,
804 x_clear_frame_selections, wait_for_property_change_unwind,
805 wait_for_property_change, x_handle_property_notify,
806 copy_multiple_data, x_get_foreign_selection,
807 lisp_data_to_selection_data, clean_local_selection_data,
808 x_handle_selection_notify, Fx_get_selection_internal,
809 x_disown_buffer_selections): Likewise.
810 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
811 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
814 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
816 * bytecode.c (Fbyte_code): Likewise.
817 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
818 fmod_float): Likewise.
820 1999-09-11 Richard Stallman <rms@gnu.org>
822 * xdisp.c (run_window_scroll_functions): If hook functions switch
823 buffers, switch back after.
825 1999-09-11 Ken Raeburn <raeburn@gnu.org>
827 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
828 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
829 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
830 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
831 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
833 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
836 1999-09-10 Richard Stallman <rms@gnu.org>
838 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
839 not RevertToPointerRoot.
840 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
841 Fix the code to clear around the scroll bar.
843 1999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
845 * print.c: Support print-circle and related features.
846 (Vprint_gensym_alist): Removed.
847 (Vprint_circle, Vprint_continuous_numbering, print_number_index
848 Vprint_number_table): New variables.
849 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
850 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
851 (print, print_preprocess, print_preprocess_string, print_object):
852 New/modified functions with print-circle feature. Use
853 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
854 (syms_of_print): Defined new Lisp variables `print-circle',
855 `print-continuous-numbering', `print-number-table'.
857 1999-09-10 Gerd Moellmann <gerd@gnu.org>
859 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
860 as background color specification instead of an integer.
861 (image-cache-eviction-delay): Replaces image-eviction-seconds.
862 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
863 (clear_image_cache, syms_of_xfns): Use it.
864 (Qpostscript): Replaces Qghostscript.
867 (syms_of_xfns): Initialize Qpostscript.
869 1999-09-10 Richard Stallman <rms@gnu.org>
871 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
873 1999-09-09 Richard Stallman <rms@gnu.org>
875 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
877 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
879 1999-09-09 Gerd Moellmann <gerd@gnu.org>
881 * fns.c (Fmakehash): Accept just one optional argument TEST.
883 * xfns.c (QCindex): New.
884 (syms_of_xfns): Initialize QCindex.
885 (gif_load): Use it instead of `:image'.
887 1999-09-09 Richard Stallman <rms@gnu.org>
889 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
890 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
892 1999-09-08 Gerd Moellmann <gerd@gnu.org>
894 * xdisp.c (Qwhen): Replaces QCwhen.
895 (syms_of_xdisp): Initialized it instead of QCwhen.
896 (handle_single_display_prop): Use it instead of QCwhen.
898 1999-09-08 Ken'ichi Handa <handa@gnu.org>
900 * charset.c (translate_char): Reset MSBs of arguments of
902 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
904 1999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
906 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
908 * fns.c (Fbase64_decode_region): Don't place point outside of the
909 current accessible portion.
911 1999-09-07 Richard Stallman <rms@gnu.org>
913 * keymap.c (fix_submap_inheritance): Do nothing if the proper
914 parent is an ancestor of SUBMAP; otherwise, add it as the
917 1999-09-07 Gerd Moellmann <gerd@gnu.org>
919 * xdisp.c (handle_single_display_prop): Change conditional
920 display property to `:when FORM . VALUE'.
922 1999-09-07 Richard Stallman <rms@gnu.org>
924 * fileio.c (Fwrite_region): Doc fix.
926 1999-09-07 Stefan Monnier <monnier@cs.yale.edu>
928 * fileio.c (Qexcl): New variable.
929 (report_file_error): Handle EEXIST specially.
930 (Fwrite_region): Special handling for CONFIRM = `excl'.
931 (syms_of_fileio): Initialize Qexcl.
933 1999-09-07 Gerd Moellmann <gerd@gnu.org>
935 * xfns.c (x_set_foreground_color): Call
936 update_face_from_frame_parameter.
937 (x_set_background_color): Ditto.
938 (x_set_mouse_color): Ditto.
939 (x_set_cursor_color): Ditto.
940 (x_set_border_color): Ditto.
941 (x_set_scroll_bar_foreground): Ditto.
942 (x_set_scroll_bar_background): Ditto.
944 * xfaces.c (recompute_basic_faces): Clear face cache.
945 (Finternal_set_lisp_face_attribute): Modify frame parameters
946 if attributes of certain faces are changed.
947 (update_face_from_frame_parameter): New.
949 * xfaces.c (realize_basic_faces): Realize new basic faces.
951 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
952 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
954 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
955 (syms_of_xfaces): Intialize new symbols.
957 * fns.c (Fmakehash): Take one argument, test, make all the
958 rest keyword arguments.
960 * window.c (Fset_window_margins): Make window the first argument.
961 (set_window_buffer): Call Fset_window_margins with window as first
964 1999-09-07 Gerd Moellmann <gerd@gnu.org>
966 * xfaces.c (Qfringe): Replaces Qmargin.
968 1999-09-07 Kenichi Handa <handa@etl.go.jp>
970 * charset.h: Lots of comments fixed.
971 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
972 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
974 * charset.c : Lots of comments fixed.
975 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
976 (CHAR_COMPONENTS_VALID_P): Name changed from
977 CHAR_COMPONENT_VALID_P. Caller changed.
979 1999-09-06 Richard Stallman <rms@gnu.org>
981 * insdel.c (syms_of_insdel): Define Lisp variable
982 inhibit-modification-hooks.
984 1999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
986 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
989 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
991 1999-09-06 Dave Love <fx@gnu.org>
993 * unexaix.c: New version incorporating Michael Sperber's changes
994 from XEmacs. Should solve problems on AIX 4.3.
996 * lread.c (Vbyte_boolean_vars): New variable.
997 (defvar_bool, syms_of_lread): Use it.
999 1999-09-05 Richard Stallman <rms@gnu.org>
1001 * minibuf.c (read_minibuf): Put all three properties on the
1002 same range, the whole prompt.
1004 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1006 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
1007 (Fplay_sound, syms_of_sound): Use it.
1008 (parse_sound): Allow float volume values in the range [0, 1].
1009 (Fplay_sound): Ditto.
1011 * window.c (Fset_window_vscroll): Make window the first argument,
1012 amount to scroll the second. Take non-negative vscroll as
1014 (Fwindow_vscroll): Return non-negative vscroll.
1016 * xfns.c (Fx_show_tip): Improve documentation.
1018 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1020 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
1021 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
1022 `top-line' and `top_line' to `header-line' and `header_line'.
1023 Likewise for similar spellings.
1025 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1027 * xdisp.c (row_containing_pos): New.
1028 (try_window_id): Use it.
1030 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
1031 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
1032 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
1033 Likewise for upper-case etc.
1035 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1037 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1038 Fix reference to renamed variable.
1040 1999-09-04 Gerd Moellmann <gerd@gnu.org>
1042 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
1043 (window_fixed_size_p): Use Qwindow_size_fixed instead of
1045 (syms_of_window): Ditto.
1047 * fns.c (Fmakehash): Exchange optional test and size arguments.
1049 1999-09-03 Gerd Moellmann <gerd@gnu.org>
1051 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
1052 under newly created scroll bar.
1053 (expose_window): If window is not yet fully initialized, do
1054 nothing. This can happen when toolkit scroll bars are used and a
1055 window is split. Reconfiguring the scroll bars will generate an
1056 expose for a newly created window.
1058 * frame.h (struct frame): New member `gamma'.
1060 * xfns.c: Include math.h. Add extern declaration for atof in case
1062 (Qscreen_gamma): New.
1063 (struct x_frame_parm_table): Add prototypes, add
1065 (gamma_correct): New function.
1066 (defined_color): Call it.
1067 (x_set_screen_gamma): New.
1068 (x_set_title): Add parameter old_value.
1069 (RES_TYPE_FLOAT): New.
1070 (x_get_arg): Handle RES_TYPE_FLOAT.
1071 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
1072 (lookup_pixel_color): Change call to x_alloc_nearest_color to
1074 (lookup_rgb_color): Ditto.
1075 (syms_of_xfns): Initialize Qscreen_gamma.
1077 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
1078 New. Allocate color for lwlib widgets.
1079 (x_alloc_nearest_color): Change parameter list include the
1080 frame on which to allocate colors. Gamma-correct colors.
1081 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
1084 * xterm.h: Change protorype of x_alloc_nearest_color.
1086 1999-09-03 Richard Stallman <rms@gnu.org>
1088 * callproc.c: Delete the system-independent include of stdlib.h
1089 (leaving only the one in the WINDOWSNT conditional).
1091 1999-09-03 Andrew Choi <choi@cs.hku.hk>
1093 * callproc.c (call-process) [macintosh]: Call mac_run_command in
1094 sysdep.c. The Mac code is modeled after the DOS code.
1096 * dispextern.h [macintosh]: Include macterm.h to define substitute X
1097 Window types and macros.
1099 * frame.h: Do nothing if included a second time.
1100 (enum output_method): Add mac_output frame type.
1101 (union output_data): Add new alternative `mac'.
1102 (FRAME_MAC_P): New macro.
1104 * frame.c (Fframep) [macintosh]: Handle mac frame type.
1105 (syms_of_frame_1): Initialize Qmac.
1106 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
1107 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
1108 (Fmodify_frame_parameters) [macintosh]: Call
1109 mac_set_frame_parameter in macterm.c.
1111 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
1112 (512) because Mac compilers limit local data of a function to 32K.
1114 * make-docfiles.c: Correctly handle input files with Mac-style
1117 * sysdep.c: Define numerous routines to emulate Unix system calls.
1119 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
1120 file of an X Window environment.
1122 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
1123 x-display-grayscale, x-color-defined-p, and x-color-values.
1125 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
1126 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
1127 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
1128 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
1129 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
1130 New functions, replacing POSIX features.
1132 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
1133 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
1134 (InitEmacsPasswdDir, run_mac_command): New subroutines.
1136 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
1137 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
1138 (myPasswdDir, TempDirName, sys_siglist): New variables.
1140 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
1141 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
1142 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
1143 Define empty stubs so Emacs will link.
1145 1999-09-03 Gerd Moellmann <gerd@gnu.org>
1147 * xdisp.c: Use XCAR and XCDR instead of XCONS.
1149 * window.h: New member frozen_window_start_p.
1151 * window.c (foreach_window, foreach_window_1): New.
1152 (freeze_window_start, freeze_window_starts): New.
1153 (make_window): Initialize frozen_window_start_p.
1154 (replace_window): Ditto.
1155 (Fset_window_point): Remove references to deleted variables.
1156 (Fset_window_start): Ditto.
1158 * xdisp.c (Vresize_mini_config, resize_mini_frame,
1159 resize_mini_initial_height): Removed.
1160 (syms_of_xdisp): Remove references to these variables.
1161 (resize_mini_window): Don't save window configuration, freeze
1162 window starts instead. Enlarge window until displaying an empty
1163 buffer, then shrink it. Make the function externally visible.
1164 (redisplay_window): Treat frozen window start like forced start,
1165 but accept point outside of the window.
1167 * dispextern.h: Add function prototype for resize_mini_window.
1169 * minibuf.c (read_minibuf_unwind): Resize mini-window when
1170 reaching minibuf_level 0.
1172 * lisp.h: Remove extern declarations for variables deleted from
1175 * dispnew.c (adjust_frame_glyphs): Remove reference to
1176 Vresize_mini_config.
1178 1999-09-03 Gerd Moellmann <gerd@gnu.org>
1180 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
1181 to USE_TOOLKIT_SCROLL_BARS.
1183 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
1185 (XTset_vertical_scroll_bar): Clarify position computations. Clear
1186 under newly created scroll bar. Put toolkit scroll bars in the
1187 middle of the area reserved for the scroll bar.
1189 1999-09-03 Kenichi Handa <handa@etl.go.jp>
1191 The following changes are for the new handling of mulitbyte
1192 sequence. Now, except for a composite character, no multibyte
1193 character in string/buffer has trailing garbage bytes. For
1194 instance, the length of string "\201\300\300" is now 2, the first
1195 character is Latin-1 A-grave, the second is raw \300.
1197 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
1199 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
1200 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
1201 (PARSE_COMPOSITE_SEQ): New macro.
1202 (PARSE_CHARACTER_SEQ): New macro.
1203 (PARSE_MULTIBYTE_SEQ): New macro.
1204 (CHAR_PRINTABLE_P): New macro.
1205 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
1206 (STRING_CHAR_AND_LENGTH): Likewise.
1207 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
1208 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
1209 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
1211 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
1212 (SPLIT_CHARACTER_SEQ): New macro.
1213 (SPLIT_MULTIBYTE_SEQ): New macro.
1214 (CHAR_COMPONENT_VALID_P): New macro.
1215 (non_ascii_char_to_string): Generate a multibyte sequence as far
1217 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
1218 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
1219 (split_non_ascii_string): Likewise.
1220 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
1221 (char_printable_p): New function.
1222 (translate_char): Check character by NATNUMP instead of INTEGERP.
1223 (unibyte_char_to_multibyte): Call char_valid_p instead of
1224 VALID_MULTIBYTE_CHAR_P.
1225 (Fmake_char_internal): Check the arguments more rigidly.
1226 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
1227 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
1228 (Fmultibyte_char_to_unibyte): Check the validity of character by
1230 (chars_in_text): Call multibyte_chars_in_text.
1231 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
1232 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
1233 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
1235 * data.c (Faset): Adjust the way to check byte-combining
1236 possibility for the new handling of multibyte sequence.
1238 * editfns.c (Fsubst_char_in_region): Likewise.
1240 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
1241 (string_char_to_byte): Likewise.
1242 (string_byte_to_char): Likewise.
1244 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
1245 macro STRING_CHAR_AND_LENGTH. Caller changed.
1247 * insdel.c (count_combining_composition): New function.
1248 (count_combining_before): Adjust the way to check byte-combining
1249 possibility for the new handling of multibyte sequence. Call
1250 count_combining_composition for a composite character.
1251 (count_combining_after): Likewise.
1253 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
1256 * dispextern.h (struct it): Change the size of the member
1259 * xdisp.c (get_next_display_element): Display incomplete multibyte
1260 sequence (e.g. \222\300) by octal form.
1262 1999-09-02 Gerd Moellmann <gerd@gnu.org>
1264 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
1266 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
1267 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
1269 1999-09-02 Gerd Moellmann <gerd@gnu.org>
1271 * buffer.c (set_buffer_internal): Never set
1272 windows_or_buffers_changed.
1274 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
1275 if we have displayed to the bottom of the window.
1277 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
1278 in both directions. Extend documentation.
1280 1999-09-01 Gerd Moellmann <gerd@gnu.org>
1282 * minibuf.c (read_minibuf): Flush display after setting cursor to
1285 1999-08-31 Gerd Moellmann <gerd@gnu.org>
1287 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
1288 already defined. This avoids a warning from buffer.c.
1290 1999-08-30 Gerd Moellmann <gerd@gnu.org>
1292 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
1294 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
1295 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
1296 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
1298 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
1299 once instead of twice.
1300 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
1302 * xterm.c: Remove unused bitmaps.
1303 (continued_bits, continuation_bits, overlay_bits): Change images.
1304 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
1305 instead of FRAME_X_FLAGS_AREA_WIDTH.
1306 (x_after_update_window_line): Ditto.
1307 (x_draw_bitmap): Likewise.
1308 (x_draw_row_bitmaps): Likewise.
1309 (x_draw_glyph_string_box): Likewise.
1310 (x_draw_glyphs): Likewise.
1311 (x_scroll_run): Likewise.
1312 (expose_window_tree): Likewise.
1313 (note_mode_line_highlight): Likewise.
1314 (XTset_vertical_scroll_bar): Likewise.
1315 (x_clip_to_row): Likewise.
1316 (x_set_window_size): Likewise.
1318 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
1321 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
1323 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
1324 FRAME_FLAGS_AREA_WIDTH.
1326 * window.c (coordinates_in_window): Use
1327 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
1328 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
1331 * widget.c (set_frame_size): Set flags_area_extra to
1332 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
1333 (EmacsFrameSetCharSize): Ditto.
1335 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
1336 instead of FRAME_FLAGS_AREA_WIDTH.
1338 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
1339 FRAME_FLAGS_AREA_COLS once.
1340 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
1341 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
1343 1999-08-30 Gerd Moellmann <gerd@gnu.org>
1345 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
1346 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
1348 1999-08-30 Gerd Moellmann <gerd@gnu.org>
1350 * fns.c (QCweakness): Replaces QCweak.
1351 (Fmake_hash_table): Ditto.
1353 (syms_of_fns): Ditto.
1355 1999-08-29 Richard Stallman <rms@gnu.org>
1357 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
1359 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
1361 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
1362 Add support for nested comments.
1364 * syntax.c (lisp_parse_state, back_comment, Fmodify_syntax_entry)
1365 (Fforward_comment, scan_lists, scan_sexps_forward)
1366 (Fparse_partial_sexp): Add support for nested comments.
1367 (forw_comment): New subroutine used in them.
1369 1999-08-28 Ken Raeburn <raeburn@gnu.org>
1371 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
1372 names of structure elements if HIDE_LISP_IMPLEMENTATION is
1373 defined, to help detect code that uses knowledge of the Lisp
1374 internals that it shouldn't have.
1375 (XFLOAT_DATA): New macro.
1377 1999-08-25 Gerd Moellmann <gerd@gnu.org>
1379 * syntax.c (Fforward_word): If in a mini-buffer and moving
1380 backwards, stop in front of the prompt to prevent accidentially
1381 moving into the read-only prompt.
1383 * window.c (Frecenter): Clear frame if called with nil or no arg.
1385 * xdisp.c (resize_mini_window): Don't resize if
1386 Vmax_mini_window_height is nil. Otherwise, use a default if
1387 Vmax_mini_window_height is not ot a number.
1388 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
1390 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
1392 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
1393 * m/iris4d.h: Use unexelf for IRIX 5.*.
1394 * m/iris5d.h: Use unexelf for IRIX 6.*.
1395 * unexsgi.c: Deleted.
1397 * unexelf.c: Auto-detect .sbss section.
1398 (round_up): Make it static.
1399 (unexec): Declare alignment as Elf Word. Skip ``Program
1400 segment above .bss'' test on MIPS without .sbss.
1401 Copy sections .got and .sdata1 sections. Adjust offsets in
1402 sections .sdata, .lit4, .lit8, .got and .sdata1.
1404 1999-08-25 Gerd Moellmann <gerd@gnu.org>
1406 * xdisp.c (try_window_id): Remove typo.
1408 1999-08-24 Gerd Moellmann <gerd@gnu.org>
1410 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
1411 unchanged text at the bottom when computing the cursor position.
1412 (message3_nolog): Raise frame only if minibuffer_auto_raise is
1415 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
1417 1999-08-24 Gerd Moellmann <gerd@gnu.org>
1419 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
1420 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
1421 (syms_of_xfaces): Ditto.
1423 * window.c (Fset_window_point): Reset Vresize_mini_config.
1424 (Fset_window_start): Ditto.
1425 (set_window_buffer): Ditto.
1427 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
1429 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
1430 before calling try_window.
1431 (echo_area_display): If height has changed, update other windows.
1432 (resize_mini_frame, resize_mini_initial_height): New.
1433 (resize_mini_window): Save/restore window configuration
1436 * lisp.h (Vresize_mini_config, resize_mini_frame,
1437 resize_mini_initial_height): Add extern declarations.
1439 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
1442 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
1443 being redefined in jconfig.h.
1445 1999-08-23 Ken'ichi Handa <handa@gnu.org>
1447 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
1449 1999-08-22 Gerd Moellmann <gerd@gnu.org>
1451 * alloc.c (mark_glyph_matrix): Mark strings only.
1453 * xdisp.c (redisplay_internal): Clear garbaged frames after
1454 resizing mini-window.
1456 1999-08-22 Gerd Moellmann <gerd@gnu.org>
1458 * xdisp.c (unwind_with_echo_area_buffer): Use
1459 set_buffer_internal_1 instead of set_buffer_internal.
1460 (with_echo_area_buffer): Ditto.
1462 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
1463 only if buffer is displayed somewhere.
1465 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
1467 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
1469 (modify_region): Ditto.
1471 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
1473 * xdisp.c (Vresize_mini_config): New.
1474 (resize_mini_window): Use it to save restore original window
1476 (syms_of_xdisp): Initialize it.
1478 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
1480 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
1482 * xdisp.c (reconsider_clip_changes): New.
1483 (redisplay_internal, redisplay_window): Call it.
1484 (mark_window_display_accurate, redisplay_internal): Set current
1485 matrix' buffer, begv, zv.
1487 * window.c (Fset_window_hscroll): Set
1488 prevent_redisplay_optimizations_p instead of clip_changed.
1489 (Fset_window_hscroll): Ditto.
1490 (temp_output_buffer_show): Ditto.
1491 (Fset_window_vscroll): Ditto.
1493 * buffer.c (reset_buffer): Set clip_changed to 0 and
1494 prevent_redisplay_optimizations_p to 1.
1495 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
1497 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
1498 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
1499 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
1500 END_UNCHANGED): New.
1501 (struct buffer_text): Add beg_unchanged, end_unchanged,
1502 unchanged_modified, overlay_unchanged_modified.
1504 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
1505 overlay_unchanged_modified): Removed.
1506 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
1507 (unwind_with_echo_area_buffer): Don't restore them.
1508 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
1509 (text_outside_line_unchanged_p, redisplay_internal,
1510 try_scrolling): Use/set buffer-specific beg/end_unchanged.
1511 (redisplay_window): Let try_window_id be called if more than one
1512 window is displayed. Use/set buffer-specific beg/end_unchanged.
1513 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
1515 Use buffer-specific beg/end_unchanged.
1517 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
1518 overlay_unchanged_modified): Remove extern declarations.
1520 * keyboard.c (command_loop_1): Set beg/end_unchanged per
1523 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
1525 (adjust_after_replace): Likewise.
1526 (replace_range, del_range_2, modify_region): Likewise.
1528 * dispnew.c (direct_output_for_insert): Set beg_unchanged
1529 and unchanged_modified per buffer.
1531 * coding.c (code_convert_region): Compute beg/end_unchanged per
1534 * buffer.c (modify_overlay): Compute beg/end_unchanged
1536 (Fget_buffer_create): Initialize new members of the buffer
1539 1999-08-22 Gerd Moellmann <gerd@gnu.org>
1541 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
1543 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
1544 (Qkey_value_weak): Removed.
1545 (make_hash_table): Use nil, `key', `value', t for weakness.
1546 (Fmake_hash_table): Ditto.
1547 (copy_hash_table): New.
1548 (Fcopy_hash_table): New.
1550 1999-08-22 Gerd Moellmann <gerd@gnu.org>
1552 * xfns.c: Call change_frame_size and do_pending_window_change with
1555 1999-08-21 Gerd Moellmann <gerd@gnu.org>
1557 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
1559 (redisplay_internal): Resize mini-window only if text might
1561 (display_echo_area): Reset displayed echo_area_buffer to nil
1562 at the end if we're displaying a nil message.
1564 1999-08-21 Gerd Moellmann <gerd@gnu.org>
1566 * fns.c (hash_lookup): Test with EQ before calling key comparion
1568 (hash_remove): Ditto.
1569 (cmpfn_eq): Removed.
1570 (cmpfn_eql): Don't test with EQ.
1571 (cmpfn_equal): Ditto.
1572 (make_hash_table): Set comparison function for `eq' to null.
1574 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
1575 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
1577 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
1579 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
1580 xterm.c: Call change_frame_size and do_pending_window_change with
1583 * dispnew.c (do_pending_window_change): Add parameter `safe'.
1584 (change_frame_size): Ditto.
1585 (change_frame_size_1): Ditto. Deley size changes if redisplaying
1586 and not called from a safe place.
1587 (window_change_signal): Call change_frame_size with new parameter.
1589 * dispextern.h: Change prototypes for do_pending_window_change
1590 and change_frame_size.
1592 * xfaces.c (face_at_buffer_position): Don't xassert that
1593 window's buffers equals current_buffer; this is not the
1594 case during echo area display.
1596 1999-08-21 Gerd Moellmann <gerd@gnu.org>
1598 * xdisp.c, minibuf.c: Remove conditional compilation on
1599 NO_PROMPT_IN_BUFFER.
1601 * minibuf.c (Fminibuffer_prompt_end): New.
1602 (syms_of_minibuf): Defsubr it. Remove
1603 minibuffer-prompt-in-buffer.
1604 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
1605 Extend documentation.
1607 * xdisp.c (get_next_display_element): Display \r as ^M.
1609 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
1610 under scroll bar widget.
1612 1999-08-21 Gerd Moellmann <gerd@gnu.org>
1614 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
1616 (unwind_redisplay): Return nil.
1617 (clear_garbaged_frames): New.
1618 (redisplay_internal): Use it.
1619 (echo_area_display): Ditto.
1620 (resize_mini_window): Mew.
1621 (display_echo_area_1): Use it to resize echo area window.
1622 (redisplay_internal): Use it to resize active mini-window.
1624 * dispextern.h, lisp.h: Add function prototypes.
1626 * dispnew.c (set_window_cursor_after_update): Do the
1627 cursor_in_echo_area case only for a mini-window showing
1628 a message. Don't let cursor end up after the end of a row.
1630 * xdisp.c (echo_area_glyphs, echo_area_message,
1631 echo_area_glyphs_length, previous_echo_glyphs,
1632 previous_echo_area_message, previous_echo_area_glyphs_length):
1634 (Vmessage_stack, echo_area_buffer, echo_buffer,
1635 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
1636 (message2_nolog): Use set_message and clear_message.
1637 (message3): Rename parameter len to nbytes to make clear what
1639 (message3_nolog): Ditto. Use set_message and clear_message.
1640 (update_echo_area): Rewritten.
1641 (with_echo_area_buffer): New.
1642 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
1643 (setup_echo_area_for_printing): New.
1644 (display_echo_area, display_echo_area_1): New.
1646 (current_message, current_message_1): New.
1647 (push_message, restore_message, pop_message,
1648 check_message_stack): New.
1649 (truncate_echo_area): Rewritten.
1650 (truncate_message_1): New.
1651 (set_message, set_message_1, clear_message): New.
1652 (echo_area_display): Rewritten.
1653 (redisplay_internal): Check for needed echo area update
1655 (redisplay_preserve_echo_area): Rewritten.
1656 (redisplay_window): Check for mini-window displaying echo area
1657 message differently.
1658 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
1659 Remove initialzation of removed variables.
1660 (init_xdisp): Remove references to removed variables.
1662 * dispnew.c (adjust_frame_message_buffer): Removed references
1663 to echo_area_glyphs and previous_echo_glyphs.
1664 (direct_output_for_insert): Check for mini-window displaying
1665 echo area message differently.
1666 (update_frame): Likewise.
1667 (set_window_cursor_after_update): Likewise. In echo area,
1668 don't try to set cursor on rows that aren't enabled.
1670 * print.c: Remove conditional compilation on `standalone'.
1671 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
1672 glyph_to_str_cpy): Remove that section because GLYPHs are no
1673 longer used in that way.
1674 (PRINTDECLARE): Add multibyte.
1675 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
1676 (printbufidx): Removed.
1677 (printchar, strout): Rewritten.
1679 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
1682 (echo_now): Set echo_kboard to the current kboard.
1683 (cancel_echoing): Set echo_kboard to null.
1684 (cmd_error_internal): Use clear_message, remove references
1685 to echo_area_glyphs and echo_area_message.
1686 (command_loop_1): Check for echo area messages differently.
1687 (read_char): Likewise.
1688 (record_menu_key): Use clear_message.
1689 (Fexecute_extended_command): Check for echo area messages
1690 differently. Use push_message, restore_message, pop_message.
1692 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
1695 * emacs.c (shut_down_emacs): Call check_message_stack.
1697 * lisp.h: Add function prototypes and extern declarations for
1698 new functions and variables.
1700 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
1703 * minibuf.c (read_minibuf): Use clear_message instead of
1704 setting echo_area_glyphs.
1705 (Fminibuffer_completion_help): Ditto.
1707 * editfns.c (Fcurrent_message): Rewritten.
1709 * frame.c, window.h: Remove references to echo_area_glyphs
1710 and previous_echo_glyphs.
1712 1999-08-21 Dave Love <fx@gnu.org>
1714 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
1715 * aix4-1.h: Likewise.
1717 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
1719 1999-08-20 Gerd Moellmann <gerd@gnu.org>
1721 * xfns.c: Remove tiff34 prefix from include.
1723 1999-08-20 Dave Love <fx@gnu.org>
1725 * cm.c: Revert previous change.
1727 1999-08-19 Gerd Moellmann <gerd@gnu.org>
1729 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
1730 under scroll bar with width FRAME_SCROLL_BAR_COLS.
1732 1999-08-18 Dave Love <fx@gnu.org>
1734 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
1737 * doprnt.c: Use stdlib.h, unistd.h.
1739 * config.in: Add HAVE_TERMCAP_H.
1741 * cm.c: Use termcap.h.
1743 1999-08-18 Gerd Moellmann <gerd@gnu.org>
1745 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
1746 FRAME_X_WINDOW (f) being null at the of the function. If widgets
1747 cannot be created we will already have crashed earlier. Call
1748 lw_set_main_areas with a null menu-bar widget, so that we have
1749 a reasonable default.
1750 (Fx_create_frame): Rearranged so that Lisp errors during frame
1751 initialization cause less damage. Initialize menu bar widget
1754 1999-08-18 Gerd Moellmann <gerd@gnu.org>
1756 * dispnew.c (update_frame_line): Fix previous change. If writing
1757 whole line clear to end of frame.
1759 1999-08-17 Gerd Moellmann <gerd@gnu.org>
1761 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
1762 and `right-bitmap-area' if position is in the bitmap areas. This
1763 avoids an error when clicking on the bitmap areas. Instead, they
1764 are currently treated like clicks inside the window.
1765 (coordinates_in_window): Return 5 and 6 for bitmap areas.
1766 (Qleft_bitmap_area, Qright_bitmap_area): New.
1767 (syms_of_window): Initialize new symbols.
1769 * dispnew.c (update_frame_line): If writing whole line,
1770 don't write trailing spaces unless we must.
1772 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
1773 (redisplay_internal): Register unwind_redisplay with
1774 register_unwind_protect.
1775 (try_window_reusing_current_matrix): If new start > old start,
1776 give up if start pos of first reusable row is not equal to new
1779 * eval.c (Fsignal): Don't reset redisplaying_p here.
1781 * xterm.c (expose_area): If row extends face to end of line,
1782 write the whole line.
1784 1999-08-16 Gerd Moellmann <gerd@gnu.org>
1786 * dispextern.h (struct it): Remove member
1787 show_trailing_whitespace_p.
1789 * dispnew.c (direct_output_for_insert): Use
1790 Vshow_trailing_whitespace instead of former iterator member
1791 show_trailing_whitespace_p.
1792 (direct_output_forward_char): Don't do it if hightlighting
1793 trailing whitespace.
1795 * xdisp.c (Qshow_trailing_whitespace): Removed.
1796 (Vshow_trailing_whitespace): Added.
1797 (init_iterator): Remove initialization code for
1798 show_trailing_whitespace_p.
1799 (redisplay_internal): Don't try cursor movement in this_line
1800 if showing trailing whitespace.
1801 (redisplay_window): Likewise for cursor movement in current
1802 matrix and try_window_id.
1803 (try_window_reusing_current_matrix): Likewise.
1804 (trailing_whitespace_p): Return 0 if trailing whitespace is
1806 (display_line): Use Vshow_trailing_whitespace instead of
1807 former iterator member show_trailing_whitespace_p.
1808 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
1810 1999-08-16 Gerd Moellmann <gerd@gnu.org>
1812 * window.c (Fpos_visible_in_window_p): Rewritten.
1814 * xfaces.c (add_to_log): Renamed from display_message.
1815 Don't display messages in echo area.
1817 * xterm.c (x_draw_glyph_string_box): Use the background width
1818 of the glyph string for the width of the box.
1820 1999-08-16 Stefan Monnier <monnier@cs.yale.edu>
1822 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
1824 1999-08-16 Geoff Voelker <voelker@cs.washington.edu>
1826 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
1827 background first, and then set other parameters that might
1828 depend upon their new values.
1830 1999-08-15 Gerd Moellmann <gerd@gnu.org>
1832 * xfaces.c (Vfont_list_limit): New.
1833 (syms_of_xfaces): Make it a user-variable.
1834 (DEFAULT_FONT_LIST_LIMIT): New.
1835 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
1836 maximally that number of fonts, otherwise use
1837 DEFAULT_FONT_LIST_LIMIT.
1838 (Fx_font_family_list): Bind `font-list-limit' to higher values
1839 until we have all fonts.
1840 (Fxfont_list): Additionally return the full names of fonts and
1841 their registry and encoding.
1843 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1844 Simplify clearing "under" scroll bar.
1846 * window.c (Qfixed_window_size): New.
1847 (syms_of_window): Initialiaze it.
1848 (check_all_windows): Add return type void.
1849 (window_fixed_size_p): New. Return non-zero if window
1851 (window_min_size_1): New.
1852 (window_min_size): Handle fixed-size windows.
1853 (size_window): New. Rewritten combination of set_window_height and
1854 set_window_width that handles fixed-size windows.
1855 (set_window_height): Call it.
1856 (set_window_width): Call it.
1857 (Fsplit_window): Give an error on attempt to split a fixed-size
1859 (change_window_height): Partly rewritten to handle fixed-size
1862 1999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
1864 * process.c (Fopen_network_stream): Fix previous change.
1866 1999-08-13 Karl Heuer <kwzh@gnu.org>
1868 * xdisp.c (line_number_display_limit_width): New var.
1869 (decode_mode_spec): Use it instead of hardcoded value.
1870 (syms_of_xdisp): Defvar it.
1872 1999-08-13 Richard M. Stallman <rms@gnu.org>
1874 * eval.c (run_hook_list_with_args): Gcpro `globals'.
1875 (run_hook_with_args): Likewise.
1877 * window.h (struct window): New field too_small_ok.
1879 * window.c (set_window_height, set_window_width):
1880 If window starts out "too small", set its too_small_ok flag.
1881 If window's too_small_ok flag is set, don't delete it
1882 unless it is so small it would cause a crash.
1884 1999-08-13 Gerd Moellmann <gerd@gnu.org>
1886 * window.c (MINSIZE): Removed.
1887 (window_min_size): New.
1888 (set_window_height): Use window_min_size.
1889 (change_window_height): Ditto.
1891 1999-08-12 Gerd Moellmann <gerd@gnu.org>
1893 * indent.c (vmotion): Don't add in mini-buffer prompt width
1894 if prompts are inserted into mini-buffer.
1896 1999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
1898 * config.in: Add HAVE_GETADDRINFO.
1899 * process.c (Fopen_network_stream): Use getaddrinfo.
1901 1999-08-11 Gerd Moellmann <gerd@gnu.org>
1903 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
1906 * xdisp.c (face_before_or_after_it_pos): If position after
1907 or before iterator's current position in the buffer is out
1908 of bounds, return the iterator's original face id.
1910 * dispnew.c (mirror_make_current): If desired row isn't enabled,
1911 just swap glyphs pointers between current and desired row.
1912 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
1913 desired matrix method string to current matrix.
1915 1999-08-11 Kenichi Handa <handa@etl.go.jp>
1917 * lisp.h (CHAR_MODIFIER_MASK): New macro.
1919 * lread.c (read_escape): For Control modifier, pay attention to
1920 multibyte character.
1921 (read1): Likewise. Singal error or a multibyte character which
1922 has a modifer bit. Check validity of Shift modifer.
1924 * charset.c (non_ascii_char_to_string): Handle modifier bits as
1925 the same as Lisp reader.
1927 1999-08-10 Richard M. Stallman <rms@gnu.org>
1929 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
1931 1999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
1933 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
1935 1999-08-10 Eli Zaretskii <eliz@gnu.org>
1937 * msdos.c (IT_set_face): Abort if the default face is not realized
1939 (IT_write_glyphs): Reset the screen face to the default face
1940 before writing glyphs.
1942 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
1943 colors from the frame here.
1944 (realize_tty_face) [MSDOS]: Do it here. Update the face
1945 attributes with the actual name of the color taken from the
1948 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
1949 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
1951 * frame.c (Fframe_parameters): Swap foreground and background
1952 colors returned in frame parameters if the frame has reverse in
1953 its parameter alist.
1954 (Fmake_terminal_frame): Make a unique copy of face_alist for
1957 1999-08-07 Richard Stallman <rms@gnu.org>
1959 * buffer.c (Fprevious_overlay_change): Just return
1960 the answer obtained from overlays_at.
1962 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
1963 Use XpmCloseness and attrs.closeness instead.
1965 1999-08-06 Richard Stallman <rms@gnu.org>
1967 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
1969 1999-08-06 Geoff Voelker <voelker@cs.washington.edu>
1971 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
1972 Ffile_attributes_lessp): New functions.
1973 (Fdirectory_files): Use directory_files_internal.
1974 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
1975 Ffile_attributes_lessp.
1977 * w32.c (stat): Check for directory ending in separator when
1978 doing readdir fast path.
1980 * w32fns.c (x_set_icon_type): Support setting frame icons.
1981 * w32term.c (x_bitmap_icon): New function.
1982 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
1984 1999-08-06 Gerd Moellmann <gerd@gnu.org>
1986 * xdisp.c (set_iterator_to_next): After delivering a character
1987 from a display vector, restore face and charset to what they were
1988 before the display vector was processed.
1990 1999-08-06 Gerd Moellmann <gerd@gnu.org>
1992 * xdisp.c (reseat_at_next_visible_line_start): New parameter
1994 (set_iterator_to_next): After delivering last char
1995 from display vector, reseat on next visible line start if
1997 (next_element_from_buffer): Set dpvec_char_len to -1 for
2000 1999-08-06 Gerd Moellmann <gerd@gnu.org>
2002 * xdisp.c (compute_line_metrics): If first line's physical ascent
2003 is larger than its logical ascent, use the physical ascent, and
2004 make the row taller. Set row's overlapping_p flag.
2006 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
2007 (direct_output_for_insert): Ditto.
2009 * dispextern.h (struct glyph_row): Add overlapping_p.
2011 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
2013 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
2014 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
2016 * dispnew.c (direct_output_for_insert): Don't use this method if
2017 row is overlapped by others.
2018 (update_text_area): Write full line if current line is overlapped.
2019 (redraw_overlapped_rows): New.
2020 (update_window): Call it.
2021 (redraw_overlapping_rows): New.
2022 (update_window): Call it.
2023 (scrolling_window): Make sure overlapped_p flag in current rows is
2025 (row_equal_p): Take rows overlapped_p flag into account.
2027 * dispextern.h (struct glyph_row): Add flag overlapped_p.
2029 * xterm.c (x_fix_overlapping_area): New.
2030 (x_redisplay_interface): Add x_fix_overlapping_area.
2032 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
2034 1999-08-06 Gerd Moellmann <gerd@gnu.org>
2036 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
2037 (struct glyph_string): Add member for_overlaps_p.
2038 (x_get_glyph_string_clip_rect): If glyph string draws foreground
2039 of overlapping rows, clip to window bottom.
2040 (x_fill_glyph_string): Add parameter overlaps_p.
2041 (x_fill_composite_glyph_string): Ditto.
2042 (BUILD_GLYPH_STRINGS): Ditto.
2043 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
2044 (x_draw_glyph_string): Don't draw anything but the foreground
2045 if glyph string draws row overlaps.
2047 * dispnew.c (direct_output_for_insert): Don't use this
2048 optimization for rows that overlap others.
2049 (update_window_line): Return non-zero if display has changed.
2050 (update_text_area): Ditto.
2051 (update_window): Record if display has been changed.
2053 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
2055 * dispextern.h (struct redisplay_interface): Add
2056 fix_overlapping_area.
2058 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
2060 * dispextern.h (struct glyph): Add overlaps_vertically_p.
2062 * xterm.c (x_produce_image_glyph): Compute iterator's physical
2064 (x_produce_stretch_glyph): Ditto.
2065 (x_produce_glyphs): Ditto.
2067 * xdisp.c (init_iterator): Reset physical line height info
2068 after producing special glyphs.
2069 (display_toolbar_line): Set physical line height info.
2070 (compute_line_metrics): Ditto.
2071 (display_line): Ditto.
2072 (display_string): Ditto.
2074 * term.c (produce_glyphs): Set iterator's physical height
2077 * dispnew.c (blank_row): Compute glyph row's physical height.
2078 (row_equal_p): Take physical row heights into account.
2079 (direct_output_for_insert): Ditto.
2080 (update_text_area): Ditto.
2082 * dispextern.h (struct glyph_row): Add phys_ascent and
2084 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
2087 1999-08-04 Stefan Monnier <monnier@cs.yale.edu>
2089 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
2091 (no_switch_buffer): New function.
2092 (Fswitch_to_buffer): Call them. Don't get confused
2093 by "same-window" buffers in a dedicated frame.
2095 * window.c (display-buffer): Don't get confused
2096 by "same-window" buffers in a dedicated frame.
2098 1999-08-04 Andreas Schwab <schwab@gnu.org>
2100 * insdel.c (insert_from_string_1): Check gap size against number
2101 of outgoing bytes, not incoming bytes.
2103 1999-08-03 Tom Breton <tob@world.std.com>
2105 * lread.c (read1): Added circular reading code to #N=.
2106 (SUBSTITUTE): New macro.
2107 (seen_list): New variable.
2108 (substitute_object_in_subtree): New function.
2109 (substitute_object_recurse): New function.
2110 (substitute_in_interval): New function.
2112 1999-08-02 Eli Zaretskii <eliz@gnu.org>
2114 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
2116 * frame.c (make_terminal_frame): Don't call init_frame_faces if
2117 noninteractive, for termcap frames as well.
2119 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
2122 1999-08-01 Richard Stallman <rms@gnu.org>
2124 * fns.c (internal_equal): Correct overlay comparison.
2126 1999-07-31 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2128 * xfns.c (x_set_internal_border_width):
2129 Call do_pending_window_change. Don't block input, don't call XFlush.
2130 (x_set_vertical_scroll_bars): Call do_pending_window_change.
2131 (x_set_scroll_bar_width, x_set_font): Likewise.
2133 * frame.c (Fset_frame_height): Call do_pending_window_change.
2134 (Fset_frame_width, Fset_frame_size): Likewise.
2136 * xterm.c (x_set_window_size): When calling change_frame_size,
2137 specify 1 for DELAY.
2139 * widget.c (EmacsFrameSetCharSize): Don't call
2140 do_pending_window_change here.
2142 1999-07-30 Dave Love <fx@gnu.org>
2144 * config.in: Add HAVE_STDLIB_H.
2146 1999-07-30 Richard M. Stallman <rms@gnu.org>
2148 * process.c (create_process): Detect failure of `pipe'.
2150 1999-07-30 Keisuke Nishida <kei@psn.net>
2152 * alloc.c (allocate_vectorlike): Add missing increment.
2154 * data.c (Fdefalias): Call Ffset instead of duplicating code.
2156 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
2157 before calling indirect_function.
2159 1999-07-30 Eli Zaretskii <eliz@gnu.org>
2161 * dispextern.h (load_color, lookup_derived_face): Declare
2164 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
2165 it will be done later.
2167 * frame.c (make_terminal_frame) [MSDOS]: Don't call
2168 init_frame_faces if non-interactive.
2169 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
2170 array with a call to msdos_stdcolor_name. The font name is now
2171 "ms-dos", consistent with realize_tty_face.
2173 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
2176 * window.c (Fset_window_configuration) [MSDOS]: Don't call
2177 x_set_toolbar_lines.
2179 * xfaces.c (load_color): Remove static from definition and remove
2181 [MSDOS]: Add a DOS-specific version of load_color.
2182 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
2183 (lookup_derived_face): New function.
2184 (realize_default_face): Support MSDOS frames.
2185 [MSDOS]: If fore/background colors are unspecified, inherit them
2187 (realize_face): Support MSDOS frames.
2188 (realize_tty_face): Support MSDOS frames.
2189 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
2190 load_color to try to find a suitable approximation. If the face
2191 is inverse-video, swap the foreground and background colors.
2193 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
2196 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
2198 * msdos.h: Remove redundant declarations (most of them are now in
2201 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
2202 Use default frame colors if the face doesn't specify them; invert
2203 the colors if highlight is ON.
2204 (IT_write_glyphs): Rewritten for the new redisplay engine.
2205 (IT_change_line_highlight): Add (unused) parameter Y, since that's
2206 how the hook is called by term.c.
2207 (IT_copy_glyphs): New function, copies an area of the display in
2209 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
2210 redisplay now calls it even if char_ins_del_ok is zero.
2211 (IT_set_frame_parameters): Prototype changed. Calls the new
2212 load_color. Puts the new fore/background colors into the default
2213 face on current frame.
2214 (IT_menu_display): Rewritten to handle the new struct glyph
2215 instead of a char array.
2216 (XMenuActivate): Call lookup_derived_face to create and use
2217 special faces for the pop-up and drop-down menus.
2219 1999-07-29 Gerd Moellmann <gerd@gnu.org>
2221 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
2222 XawScrollbarSetThumb if thumb parameters haven't changed because
2223 that function apparently isn't optimized for this case.
2225 1999-07-29 Eli Zaretskii <eliz@gnu.org>
2227 * msdos.c (getdefdir): Don't return failure indication when
2228 _fixpath sets errno to ENOSYS.
2230 1999-07-28 Gerd Moellmann <gerd@gnu.org>
2232 * xdisp.c (string_char_and_length): New. Use it everywhere
2233 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
2235 1999-07-28 Kenichi Handa <handa@etl.go.jp>
2237 * fns.c (count_combining): New function.
2238 (struct textprop_rec): New structure.
2239 (concat): Copy text properties correctly when byte combining
2242 1999-07-28 Gerd Moellmann <gerd@gnu.org>
2244 * xterm.c (x_setup_relief_color): Don't try smart color allocation
2246 (x_draw_row_bitmaps): If face has stipple, don't switch
2247 to foreground color for clearing areas, and set the fill style.
2249 * xfaces.c (load_face_colors): Load background color if setting
2251 (prepare_face_for_display): Use FillOpaqueStippled instead of
2254 1999-07-26 Ken'ichi Handa <handa@gnu.org>
2256 * xterm.c (x_find_ccl_program): Add casting.
2258 * w32fns.c (w32_find_ccl_program): Add casting.
2260 1999-07-27 Gerd Moellmann <gerd@gnu.org>
2262 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
2264 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
2265 because this will try to access a nonexisting widget.
2267 1999-07-26 Markus Rost <rost@gnu.org>
2269 * fns.c (Fgethash): Fix order of variables (patch by gerd).
2273 1999-07-26 Gerd Moellmann <gerd@gnu.org>
2275 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
2276 value to frame width and height.
2278 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
2279 into account for full-width windows. Don't add scroll bar width
2280 to width of clip rect.
2281 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
2282 (x_set_glyph_string_background_width): Add 1 to background width.
2283 (x_draw_glyphs): Take internal border into account for full-width
2286 1999-07-26 Richard M. Stallman <rms@gnu.org>
2288 * xfns.c (x_set_mouse_color): Always unload the old color.
2289 Don't allow nil as color value.
2290 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
2291 Always unload the old color.
2293 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
2295 1999-07-26 Karl Heuer <kwzh@gnu.org>
2297 * fns.c (Fy_or_n_p): Doc fix.
2299 1999-07-26 Kenichi Handa <handa@etl.go.jp>
2301 * ccl.h (setup_ccl_program): The type is changed to `int'.
2303 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
2304 stored in the following CCL code. Adjusted for the change of
2306 (resolve_symbol_ccl_program): Adjusted for the new style of
2307 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
2308 is resolving failed.
2309 (ccl_get_compiled_code): New function.
2310 (setup_ccl_program): Function type changed from `void' to `int'.
2311 Resolve symbols in CCL_PROG.
2312 (Fccl_program_p): New function.
2313 (Fccl_execute): Get compiled CCL code by just calling
2315 (Fccl_execute_on_string): Likewise.
2316 (Fregister_ccl_program): Adjusted for the change of
2319 * coding.c (setup_coding_system): Get compiled CCL code by just
2320 calling setup_ccl_program.
2322 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
2323 calling setup_ccl_program.
2325 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
2326 calling setup_ccl_program.
2328 1999-07-23 Gerd Moellmann <gerd@gnu.org>
2330 * xfaces.c (frame_update_line_height): Just use the height of the
2331 frame's fontset or font, instead of taking face fonts into
2334 * xdisp.c (get_next_display_element): Display DEL as `^?'.
2336 1999-07-23 Richard M. Stallman <rms@gnu.org>
2338 * window.c (Fsplit_window): For default size, round up for left window.
2340 1999-07-21 Joe Ramey <ramey@ti.com>
2342 * filelock.c (lock_if_free): Return -1 if check_lock_owner
2343 has returned -1 (lockfile exists but is not a symlink?).
2345 1999-07-20 Gerd Moellmann <gerd@gnu.org>
2347 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
2348 because of a change in cursor_gc made in 20.4.
2350 1999-07-19 Gerd Moellmann <gerd@gnu.org>
2352 * xterm.c (x_calc_absolute_position): Subtract menu bar height
2353 for YNegative, if using X toolkit.
2355 * xfns.c (x_real_positions): Don't subtract window borders
2356 from positions returned.
2358 1999-07-17 Gerd Moellmann <gerd@gnu.org>
2360 * xrdb.c (x_load_resources): Set double-click time defaults
2361 for Motif list boxes from double-click-time.
2363 * fns.c (Vhash_table_tests): Remvoed.
2364 (Qhash_table_test): New.
2365 (syms_of_fns): Initialize Qhash_table_test.
2366 (Fmake_hash_table): Look up user-defined tests in symbol prop
2368 (Fdefine_hash_table_test): Store test and hash function as
2369 symbol prop `hash-table-test'.
2370 (make_hash_table): Add parameters user_test and user_hash.
2372 * window.c (set_window_buffer): Set window margins for tty
2374 (Fset_window_margins): Ditto.
2376 * term.c (append_glyph): Use glyph area of iterator instead of
2379 * dispnew.c (update_frame_1): Add left margin width to cursor
2381 (direct_output_for_insert): Ditto.
2382 (direct_output_forward_char): Ditto.
2384 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
2386 * dispextern.h (struct glyph_matrix): Add top_line_p.
2388 1999-07-16 Gerd Moellmann <gerd@gnu.org>
2390 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
2393 * fns.c (cmpfn_eq): Add hash code parameters.
2395 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
2396 (cmpfn_user_defined): Likewise.
2398 1999-07-15 Gerd Moellmann <gerd@gnu.org>
2400 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
2402 * fns.c (maybe_resize_hash_table): Correct computation of
2404 (make_hash_table): Ditto.
2407 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
2409 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
2410 (survives_gc_p): Make it externally visible.
2411 (mark_object): Ditto.
2413 * fns.c (remove_hash_entry): Removed.
2414 (sweep_weak_hash_tables): New.
2416 * print.c (print): Print more information about hash tables.
2418 * xfns.c (image_spec_hash): Removed.
2419 (lookup_image): Use sxhash instead of image_spec_hash.
2420 (image_spec_equal_p): Removed.
2421 (lookup_image): Use Fequal instead of image_spec_equal_p.
2423 1999-07-14 Gerd Moellmann <gerd@gnu.org>
2425 * lisp.h (P_): Moved to top of file.
2427 * fns.c (make_hash_table): Set new members.
2429 * alloc.c (mark_object): Mark hash table's user_hash_function.
2430 Mark index vector for weak hash tables.
2432 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
2433 user_hash_function, cmpfn, and hashfn.
2435 * fns.c (build_hash): Removed.
2436 (hash_test): Removed.
2437 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
2438 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
2440 1999-07-13 Gerd Moellmann <gerd@gnu.org>
2442 * alloc.c (survives_gc_p): New.
2444 * print.c (print): Add hash table handling.
2446 * alloc.c (mark_object): Add code to mark hash tables.
2448 * lisp.h (GC_HASH_TABLE_P): New.
2450 * emacs.c (main): Call init_fns.
2452 * fns.c (init_fns): New.
2454 * fns.c: Add hash table implementation.
2456 * lisp.h (PVEC_HASH_TABLE): New.
2457 (struct Lisp_Hash_Table): New.
2459 (XSET_HASH_TABLE): New.
2460 (HASH_TABLE_P): New.
2461 (CHECK_HASH_TABLE): New.
2462 (DEFAULT_HASH_SIZE): New.
2463 (DEFAULT_REHASH_THRESHOLD): New.
2464 (DEFAULT_REHASH_SIZE): New.
2466 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
2467 (x_write_glyphs): Compute overwritten cursor using real start
2468 and end positions of display.
2469 (x_insert_glyphs): Ditto.
2471 1999-07-10 Gerd Moellmann <gerd@gnu.org>
2473 * keyboard.c (read_char): Use message3_nolog to show help-echo.
2475 * dispnew.c (blank_row): Add y-position as parameter. Compute
2478 * xdisp.c (next_element_from_string): Give padding spaces
2481 * dispnew.c (adjust_glyph_matrix): Some work to support
2482 marginals areas on tty frames in a future version.
2483 (allocate_matrices_for_frame_redisplay): Ditto.
2485 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
2486 to zero if number of glyphs in the row is <= 1.
2488 1999-07-09 Gerd Moellmann <gerd@gnu.org>
2490 * dispnew.c (buffer_posn_from_coords): Take left marginal area
2493 * xdisp.c (handle_display_prop): Don't reset area if handing
2494 a property from a string that came from a `display' property.
2495 (handle_single_display_prop): Don't handle recursive `display'
2497 (handle_single_display_prop): Handle some display property
2498 forms for terminal frames.
2499 (Qimage): Moved here from xfns.c.
2501 * dispextern.h (struct it): New field string_from_display_prop_p.
2503 * xterm.c (x_clip_to_row): Don't let clip_rect include top
2506 1999-07-08 Gerd Moellmann <gerd@gnu.org>
2508 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
2510 * window.c (set_window_buffer): Set window's vscroll to zero.
2512 * xdisp.c (QCwhen): New.
2513 (display_prop_end): New.
2514 (handle_single_display_prop): Use it.
2515 (debug_method_add): Print buffer name if tracing.
2516 (try_window_reusing_current_matrix): Compute visible height
2517 of reused rows. Fix cursor position calculation in case of
2520 * dispextern.h (struct redisplay_interface): Add parameter
2521 cursor_on_p to update_window_end_hook.
2523 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
2525 1999-07-07 Gerd Moellmann <gerd@gnu.org>
2527 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
2528 doesn't become negative when decrementing it.
2530 * eval.c (Fsignal): Reset redisplaying_p to zero.
2532 * xdisp.c (try_window_reusing_current_matrix): Call hooks
2534 (try_window_id): Ditto.
2536 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
2537 (x_scroll_run): Ditto.
2538 (any_help_event_p): New.
2539 (x_initialize): Set it to zero.
2540 (XTread_socket): Clear help echo only if any_help_event_p.
2542 * xdisp.c (init_iterator): Set top_line_p.
2543 (start_display): Use correct initial y if top-line is present.
2544 (make_cursor_line_fully_visible): Bug fixes for top-line.
2545 (try_scrolling): Ditto.
2546 (try_window_reusing_current_matrix): Ditto.
2548 * dispextern.h (struct it): Add top_line_p.
2550 * dispnew.c (shift_glyph_matrix): Move some computations out
2553 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
2556 1999-07-06 Gerd Moellmann <gerd@gnu.org>
2558 * dispnew.c (update_frame_1): When setting cursor in echo area,
2559 skip only over padding spaces at the end.
2561 * xfaces.c (realize_tty_face): Set face's font_name field to
2564 * term.c (update_end): Turn cursor on only if selected window's
2565 cursor_off_p flag is not set.
2567 1999-07-05 Gerd Moellmann <gerd@gnu.org>
2569 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
2570 (TS_cursor_normal): Renamed from TS_end_visual_mode.
2571 (TS_cursor_invisible): New.
2572 (term_init): Initialize TS_cursor_invisible.
2573 (tty_hide_cursor): New.
2574 (tty_show_cursor): New.
2575 (update_end): Show tty cursor.
2576 (update_begin): Hide tty cursor to prevent cursor flickering
2577 during redisplays triggered by timers (stealth fontification).
2579 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
2581 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
2583 (x_handle_toolbar_click): Set modifier bits.
2585 1999-07-04 Gerd Moellmann <gerd@gnu.org>
2587 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
2588 instead of a pointer to a volatile input_event.
2589 (kbd_buffer_store_event): Remove volatile modifier from
2590 declaration of local variable `sp'.
2591 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
2594 1999-07-03 Gerd Moellmann <gerd@gnu.org>
2596 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
2597 only if buffer is modified. Return quickly if changes are
2600 1999-07-02 Gerd Moellmann <gerd@gnu.org>
2602 * dispextern.h (HSCROLL_WINDOWS): Removed.
2604 * xdisp.c (mark_window_display_accurate): Don't set
2606 (redisplay_internal): Don't call redraw_garbaged_frames.
2608 1999-07-01 Gerd Moellmann <gerd@gnu.org>
2610 * xdisp.c (echo_area_display): Don't display truncation marks
2611 for messages because 20.4 doesn't do it either.
2612 (redisplay_window): Case same window start. Instead of giving
2613 up when cursor is partially visible, make it fully visible.
2614 (mark_window_display_accurate): Some cleanup. Record window's
2615 last cursor information.
2616 (debug_method_add): Improved.
2617 (redisplay_internal): Record last cursor info only if not
2618 consider_all_windows_p.
2620 * dispnew.c (update_window): Update top line after scrolling.
2621 (blank_row): Renamed from make_empty_enabled_row.
2622 (increment_glyph_row_buffer_positions): Increment positions
2625 * window.c (Fcoordinates_in_window_p): Add top-line to doc
2628 1999-06-30 Gerd Moellmann <gerd@gnu.org>
2630 * dispnew.c (update_window): Check that updated row is visible.
2632 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
2633 top of window differently.
2635 * xdisp.c (try_window_reusing_current_matrix): Don't do it
2636 if region is showing.
2638 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
2639 avoiding matrix reallocation. Set window_vscroll in matrix.
2641 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
2643 * lwlib-Xm.c: Add function prototypes.
2645 * xdisp.c (debug_method_add): New.
2646 (debug_redisplay_method): Removed.
2647 (try_window_reusing_current_matrix): Handle case where old
2648 window start is the same as new window start.
2650 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
2651 an array instead of a pointer.
2653 * lwlib-Xm.c (xm_update_label): Use val->name to look up
2654 a label string from resources.
2655 (xm_update_label): Add some comments.
2657 * xfns.c (Fx_show_tip): Undo previous change.
2659 * xterm.c (x_append_glyph): Clear glyph->u.val.
2661 * dispextern.h (struct glyph): Increase size of face_id bit-field
2662 for CHAR_GLYPH to 12.
2664 1999-06-29 Gerd Moellmann <gerd@gnu.org>
2666 * xfaces.c (x_charset_registry): Make it externally visible.
2668 1999-06-28 Gerd Moellmann <gerd@gnu.org>
2670 * dispnew.c (update_window): Use mode_line_p flag of rows
2671 instead of WINDOW_WANTS_MODELINE_P.
2673 * xterm.c (clear_mouse_face): Make externally visible.
2675 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
2677 * xterm.c (expose_line): Handle exposure of top-lines.
2679 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
2680 if mouse_face_mouse_frame is null.
2682 * xdisp.c (redisplay_window): If window is echo_area_window,
2683 and update_mode_line is set, update menubar and toolbar.
2685 * dispnew.c (space_glyph): Set its charpos to -1.
2686 (update_frame_1): Ignore trailing padding spaces.
2688 * xdisp.c (next_element_from_c_string): Set position of padding
2691 1999-06-27 Gerd Moellmann <gerd@gnu.org>
2693 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
2696 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
2697 (set_cursor_from_row): Skip over glyphs having a null object at
2699 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
2701 (handle_invisible_prop): Compute next change only when needed.
2702 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
2705 1999-06-26 Gerd Moellmann <gerd@gnu.org>
2707 * xrdb.c (x_load_resources): Don't set resource for double-click
2710 * xdisp.c (try_window_id): Return quickly if all changes are
2711 below the window's current matrix end.
2713 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
2716 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
2717 in desired not in current matrix.
2718 (try_window_reusing_current_matrix): Rotate matrices starting
2719 at start_vpos instead of 0.
2721 * xterm.c (expose_window): Use window_text_bottom_y.
2722 (fast_find_position): Ditto.
2724 * xdisp.c (redisplay_window): Use window_text_bottom_y.
2725 (try_window_reusing_current_matrix): Ditto.
2726 (get_last_unchanged_at_beg_row): Ditto.
2727 (init_iterator): Ditto.
2729 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
2731 (check_matrix_invariants): Use window_text_bottom_y.
2732 (update_window): Ditto.
2733 (scrolling_window): Ditto.
2735 * xdisp.c (window_text_bottom_y): New.
2737 1999-06-25 Gerd Moellmann <gerd@gnu.org>
2739 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
2740 clearing mouse face.
2741 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
2742 event.xcrossing.focus is not set, and focus is in the menu bar,
2743 set focus frame as if event.xcrossing.focus were set.
2745 1999-06-24 Gerd Moellmann <gerd@gnu.org>
2747 * keyboard.c (make_lispy_event): Handle mouse on top lines.
2748 * keyboard.c (make_lispy_movement): Ditto.
2750 * window.c (coordinates_in_window): Return 4 if on top line.
2751 (Fcoordinates_in_window_p): Return `top-line' if on top line.
2753 * xdisp.c (window_box_height): Subtract top line height.
2754 (window_box): Add top line height to top y position if top line
2756 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
2757 the top line row of the window. Set initial y-position to
2758 window's top line height plus delta.
2759 (start_display): Choose start glyph row depending on whether
2760 window has a top line.
2761 (try_scrolling): Take top line height into account for aggressive
2763 (compute_window_start_on_continuation_line): Take top line into
2765 (redisplay_window): Ditto. If top line height has changed,
2766 trigger a new redisplay.
2767 (try_window_reusing_current_matrix): Take top line into account.
2768 (find_last_row_displaying_text): Ditto.
2769 (get_last_unchanged_at_beg_row): DItto.
2770 (try_window_id): Ditto.
2771 (compute_line_metrics): Ditto.
2773 * dispnew.c (shift_glyph_matrix): Compute visible row height
2774 taking top line of window into account.
2775 (update_window): Update top line. If scrolling_window detects
2776 that all rows are equal, only set cursor.
2777 (update_window_line): Call after_update_window_line_hook if
2778 mode_line_p flag of rows has changed.
2779 (scrolling_window): Add parameter top_line_p. Return -1 if
2781 (mode_line_string): Add parameter mode_line_p. Handle strings
2784 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
2785 (MATRIX_FIRST_TEXT_ROW): New.
2786 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
2787 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
2788 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
2789 (MATRIX_TOP_LINE_HEIGHT): New.
2790 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
2791 (CURRENT_TOP_LINE_HEIGHT): New.
2792 (DESIRED_TOP_LINE_HEIGHT): New.
2793 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
2794 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
2795 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
2796 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
2798 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
2800 (x_draw_row_bitmaps): Take top line into account when clearing
2802 (x_estimate_mode_line_height): Replacement for
2803 x_frame_mode_line_height.
2804 (x_get_glyph_string_clip_rect): Take top line into account.
2805 (x_clear_end_of_line): Ditto.
2806 (note_mode_line_highlight): Add parameter mode_line_p. Handle
2808 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
2809 (x_erase_phys_cursor): Take top line into account.
2811 * xdisp.c (window_box_height): Subtract top line height if
2812 window wants a top line.
2813 (display_mode_lines): New.
2814 (redisplay_window): Call it.
2815 (display_mode_line): Add parameters face_id and format.
2817 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
2818 (MATRIX_TOP_LINE_HEIGHT): New.
2820 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
2822 * term.c (estimate_mode_line_height): Renamed from
2823 frame_mode_line_height. Add parameter face_id.
2824 (estimate_mode_line_height_hook): Renamed from
2825 frame_mode_line_height_hook.
2826 (produce_special_glyphs_hook): Removed.
2827 (produce_glyphs_hook): Removed.
2829 1999-06-23 Gerd Moellmann <gerd@gnu.org>
2831 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
2832 (struct glyph_row): Add mode_line_p.
2834 * xfaces.c (realize_basic_faces): Realize face `top-line'.
2836 (syms_of_xfaces): Initialize Qtop_line.
2838 * dispextern.h (TOP_LINE_FACE_ID): New.
2840 * buffer.c (init_buffer_once): Set default for
2841 top_line_format to nil.
2842 (init_buffer_once): Init top_line_format.
2843 (default-top-line-format): New.
2844 (top-line-format): New buffer-local variable.
2846 * buffer.h: Add top_line_format.
2848 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
2850 1999-06-17 Dave Love <fx@gnu.org>
2852 * xfns.c: Move the PNG section before the JPEG one to avoid
2853 problems surrounding setjmp.h/png.h on GNU/Linux.
2855 1999-06-17 Gerd Moellmann <gerd@gnu.org>
2857 * xfns.c (x_kill_gs_process): Don't free colors.
2859 1999-06-17 Dave Love <fx@gnu.org>
2861 * s/gnu-linux.h: Zap spurious ~.
2863 1999-06-16 Gerd Moellmann <gerd@gnu.org>
2865 * xfns.c (gif_load): Improve multi-image support.
2867 1999-06-15 Gerd Moellmann <gerd@gnu.org>
2869 * xfns.c (gif_load): Support multi-image files.
2871 * Makefile.in (LIBGIF): Use libungif.
2873 * configure.in (HAVE_GIF): Use libungif instead of libgif
2874 because the former doesn't contain patented compression code.
2876 * xdisp.c (compute_window_start_on_continuation_line): Don't
2877 do it if line start is too far away from window start.
2879 1999-06-14 Gerd Moellmann <gerd@gnu.org>
2881 * buffer.c (init_buffer_once): Set buffer_local_flags for
2882 scroll_*_aggressively.
2883 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
2884 (init_buffer_once): Set defaults for these variables.
2885 (syms_of_buffer): Add default-scroll-*-aggressively.
2887 * buffer.h (scroll_up_aggressively): New.
2888 (scroll_down_aggressively): New.
2890 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
2891 a static PNG library.
2893 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
2894 in case it's a static library.
2896 * Makefile.in (ctagsfiles): Split so that files starting
2897 with an `x' are found before files starting with `w32'.
2900 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
2902 * xdisp.c (compute_window_start_on_continuation_line): New.
2903 (redisplay_window): Use it.
2905 (reseat_to_string): Use it.
2906 (hscroll_window_tree): Ditto.
2907 (compute_window_start_on_continuation_line): Ditto.
2908 (redisplay_window): Don't force display with a new window start.
2910 1999-06-06 Gerd Moellmann <gerd@gnu.org>
2912 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
2913 if widget not present.
2915 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
2917 1999-06-04 Gerd Moellmann <gerd@gnu.org>
2919 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
2920 value of realize_basic_faces.
2921 (load_face_font_or_fontset): Store full font name in face.
2922 (realize_default_face): Use full font name.
2924 * xlwmenu.c (make_shadow_gcs) ]emacs]: Use x_alloc_nearest_color.
2926 * xterm.c (x_produce_glyphs): Set member char_to_display.
2927 (x_append_glyph): Store char_to_display in glyphs.
2929 * dispextern.h (struct it): Add char_to_display.
2931 * xfns.c (x_set_font): Don't call face-set-after-frame-default
2932 if faces haven't been initialized.
2933 (Fx_create_frame): Call face-set-after-frame-default after
2934 faces have been initialized, and widget has been created.
2936 * puresize.h (BASE_PURESIZE): Increased.
2938 1999-06-01 Gerd Moellmann <gerd@gnu.org>
2940 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
2941 (Finternal_set_lisp_face_attribute): If frame is t when
2942 :font attribute is set, use the selected frame.
2943 (clear_face_cache): Add parameter clear_fonts_p.
2944 (Fclear_face_cache): Add optional parameter thorougly.
2946 * xfaces.c (face_numeric_value): Return -1 if symbol is not
2948 (Fclear_face_cache): New.
2949 (choose_face_fontset_font): If fontset doesn't contain font
2950 pattern for the given charset, use CHARSET_ASCII.
2951 (Finternal_set_lisp_face_attribute): Fix handling of nil
2953 (Finternal_set_lisp_face_attribute): Fix handling of changing
2954 font-related face attributes of the default face.
2955 (set_lface_from_font_name): Set only attributes that aren't
2958 1999-05-31 Gerd Moellmann <gerd@gnu.org>
2960 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
2962 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
2963 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
2964 scalable fonts depending on the setting of SCALABLE_FONTS.
2965 (first_font_matching): List more than one font to find the
2966 first non-scalable matching font.
2967 (sorted_font_list): Let x_face_list_fonts return scalable fonts
2968 depending on SCALABLE_FONTS.
2969 (better_font_p): New parameter compare_pt_p. If zero, don't
2970 compare point sizes of fonts.
2971 (exact_face_match_p) [SCALABLE_FONTS]: New.
2972 (build_scalable_font_name) [SCALABLE_FONTS]: New.
2973 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
2974 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
2975 (syms_of_xfaces): Add scalable-fonts-allowed.
2977 1999-05-26 Gerd Moellmann <gerd@gnu.org>
2979 * xfns.c (png_load): Let PNG lib handle gamma. Construct
2980 mask only if image contains simple transparency information.
2981 Otherwise, combine image with frame background color.
2983 * configure.in (--with-png, HAVE_PNG): New.
2985 * config.in (HAVE_PNG): New.
2987 * Makefile.in: Add PNG library.
2989 * xfns.c: Add PNG support.
2991 1999-05-25 Gerd Moellmann <gerd@gnu.org>
2993 * xdisp.c (init_xdisp): Initialize echo_area_message and
2994 previous_echo_area_message to nil.
2996 * keyboard.c (read_char): Rename local variable echo_area_message
2997 because it shadows the global one.
2999 1999-05-05 Gerd Moellmann <gerd@gnu.org>
3001 * xterm.c (note_mode_line_highlight): Restructured.
3003 * window.c (coordinates_in_window): Handle windows that don't have
3004 a mode line because their buffer's mode-line-format is nil.
3005 Recognize the mode line under x positions that correspond to
3006 flags areas and left scroll bar.
3008 1999-05-02 Dave Love <fx@gnu.org>
3010 * xterm.c (note_mouse_highlight): Separate help-echo processing
3011 from check on mouse-face so that it works generally.
3013 1999-04-21 Gerd Moellmann <gerd@gnu.org>
3015 * sound.c (Fplay_sound): Run hook play-sound-hook.
3016 (Qplay_sound_hook): New.
3018 1999-04-20 Gerd Moellmann <gerd@gnu.org>
3020 * xdisp.c (update_echo_area): Handle echo_area_message.
3022 1999-04-19 Gerd Moellmann <gerd@gnu.org>
3024 * editfns.c (Fmessage): Use message3.
3026 * print.c (printchar): Set echo_area_message to nil.
3029 * minibuf.c (read_minibuf): Reset echo message strings to nil.
3030 (Fminibuffer_completion_help): Ditto.
3032 * keyboard.c (cmd_error_internal): Set echo_areA_message.
3033 (command_loop_1): Test echo_areA_message.
3035 (record_menu_key): Set echo_area_message to nil.
3036 (Fexecute_extended_command): Test echo_area_message.
3037 (Fexecute_extended_command): Handle echo_area_message.
3039 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
3042 * editfns.c (Fcurrent_message): If echo_area_message is set,
3043 return a substring of that string.
3045 * dispnew.c (direct_output_for_insert): Test echo_area_message
3046 in addition to echo_area_glyphs.
3047 (set_window_cursor_after_update): Ditto.
3048 (update_frame_1): Ditto.
3050 * alloc.c (Fgarbage_collect): Use message3_nolog to display
3051 old Lisp message string.
3053 * xdisp.c (echo_area_message): New.
3054 (previous_echo_area_message): New.
3055 (syms_of_xdisp): Initialize and staticpro new variables.
3056 (echo_area_display): Display echo_area_message if set.
3057 (message2_nolog): Set echo_area_message and
3058 previous_echo_area_message.
3059 (echo_area_display): Set previous_echo_area_message.
3060 (redisplay_internal): Display echo area if echo_area_message
3061 or previous_echo_area_message are set.
3062 (redisplay_preserve_echo_area): Test/set echo_area_message and
3063 previous_echo_area_message.
3064 (redisplay_window): Test echo_area_message.
3065 (message3_nolog): New.
3068 * editfns.c (Fformat): Add text properties to the result string
3069 from properties of the format string and properties of string
3072 * textprop.c (text_property_list): New.
3073 (add_text_properties_from_list): New.
3074 (extend_property_ranges): New.
3076 1999-03-29 Gerd Moellmann <gerd@gnu.org>
3078 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
3079 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
3080 Use these symbols for the box face attribute instead of the
3083 1999-03-12 Gerd Moellmann <gerd@gnu.org>
3085 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
3086 Correct wrong test for slant.
3088 1999-03-10 Gerd Moellmann <gerd@gnu.org>
3090 * xfaces.c: Use `unspecified' for unspecified face attributes,
3091 use t and nil for on/off.
3093 1999-03-06 Gerd Moellmann <gerd@gnu.org>
3095 * buffer.c (syms_of_buffer): Extend doc string of
3098 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
3099 (first_font_matching): New.
3100 (set_lface_from_font_name): Use it if font name is a pattern.
3101 (font_field_wildcard_p): Removed.
3103 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
3104 Recompute visible height of rows.
3106 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
3107 Don't accept non-strings for help-echo from overlays.
3109 1999-03-04 Dave Love <fx@gnu.org>
3111 * xterm.c (note_mouse_highlight): Check overlays for help-text
3113 (XTread_socket): Fix compiler warning.
3115 1999-03-05 Gerd Moellmann <gerd@gnu.org>
3117 * xterm.c (note_mouse_highlight): Don't restrict number of
3118 overlay to 10. Call overlays_at so that it doesn't try to
3121 * xdisp.c (compute_line_metrics): Compute glyph row's visible
3124 * dispnew.c (row_equal_p): Compare visible row height, only.
3125 (update_text_area): Draw whole line if visible heights of
3127 (update_window_line): Call after_update_window_line_hook
3128 if visible row height has changed.
3130 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
3131 (struct glyph_row): New member visible_height.
3133 * xfaces.c (font_field_wildcard_p): New.
3134 (set_lface_from_font_name): Remove parameter force_p. Accept
3135 font names containing wildcards.
3137 1999-03-04 Gerd Moellmann <gerd@gnu.org>
3139 * xterm.c (x_after_update_window_line): Clear internal border
3140 when windows_or_buffers_changed.
3142 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
3143 buffer has a nil mode_line_format.
3145 1999-03-03 Gerd Moellmann <gerd@gnu.org>
3147 * xterm.c (x_setup_relief_colors): Use either background color
3150 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
3152 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
3154 * xterm.c (x_draw_box_rect): New.
3155 (x_draw_glyph_string_box): Renamed from
3156 x_draw_glyph_string_relief. Call x_draw_box_rect.
3158 * xfns.c (QCrelief): New.
3159 (syms_of_xfns): Initialize it.
3161 * dispextern.h (struct glyph): Rename left_shadow_p to
3162 left_box_line_p, right_shadow_p to right_box_line_p.
3163 (MAX_RELIEF_THICKNESS): Removed.
3164 (struct it): Rename members having `relief' in their names
3165 to contain `box' instead.
3167 * xfaces.c (realize_x_face): Handle new box attribute values.
3168 (QCrelief, Qbox): Removed.
3169 (QCshadow, QCcolor, Qraised, Qsunken): New.
3170 (syms_of_xfaces): Initialize new symbols.
3172 1999-03-02 Gerd Moellmann <gerd@gnu.org>
3174 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
3176 * xfaces.c (LFACE_RELIEF): Removed.
3177 (merge_face_vector_with_property): Remove handling of `:relief'.
3178 (Finternal_set_lisp_face_attribute): Ditto.
3179 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
3180 (Finternal_get_lisp_face_attribute): Ditto.
3181 (realize_default_face): Ditto.
3182 (lface_hash): Don't compute hash from relief.
3184 * dispextern.h (struct face): Replace member `relief' by
3185 `box_line_width'. Add member `box'.
3186 (face_box_type): New.
3188 * xterm.c (x_produce_glyphs): If face has overline, add overline
3189 thickness + 1 to ascent.
3191 1999-03-01 Gerd Moellmann <gerd@gnu.org>
3193 * xterm.c (x_draw_glyph_string): Draw underline, overline,
3194 strike-through, and boxes.
3195 (x_draw_glyph_string_underline): Removed.
3197 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
3198 (Qoverline, Qstrike_through, Qbox): New.
3199 (syms_of_xfaces): Define these symbols.
3200 (check_lface_attrs): Add checks for overline, strike-through,
3202 (Finternal_set_lisp_face_attribute): Set new attributes.
3203 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
3204 (load_color): Handle new attributes.
3205 (realize_x_face): Ditto.
3206 (merge_face_vector_with_property): Ditto.
3207 (free_face_colors): Ditto.
3208 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
3209 (Finternal_get_lisp_face_attribute): Ditto.
3210 (Finternal_lisp_face_attribute_values): Ditto.
3212 * dispextern.h (lface_attribute_index): Add enumerators for
3213 overstrike, strike-through, and box.
3214 (struct face): Add members for overline, strike-through, and
3217 1999-02-17 Dave Love <fx@gnu.org>
3219 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
3220 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
3223 1999-02-16 Gerd Moellmann <gerd@gnu.org>
3225 * keyboard.c (toolbar_items): Call access_keymap with third
3226 parameter 1, so that we don't get inherited toolbar item
3229 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
3230 the window end vpos when in empty first line of window.
3232 1999-02-15 Gerd Moellmann <gerd@gnu.org>
3234 * xfaces.c (set_font_frame_param): New.
3235 (Finternal_set_lisp_face_attribute): Call it.
3237 Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
3239 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
3240 Accept specifications of color for underline.
3242 1999-02-13 Gerd Moellmann <gerd@gnu.org>
3244 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
3245 `frame' is t, operate on face defaults for new frames. If it
3246 is nil, operate on the selected frame.
3248 1999-02-12 Gerd Moellmann <gerd@gnu.org>
3250 * dispnew.c (check_matrix_invariants): Put it in #if 0.
3251 (update_window): Put the call to check_matrix_invariants in #if 0.
3253 Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
3255 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
3256 Remove definition of UNDERLINE_COLOR.
3258 Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
3260 * xfaces.c (free_face_colors): Free the color for underline.
3262 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
3265 Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
3267 * dispextern.h (UNDERLINE_COLOR): Defined.
3268 (struct face): Added two new members.
3269 underline_color, underline_defaulted_p.
3271 * xfaces.c (merge_face_vector_with_property):
3272 (check_lface_attrs): Accept the string value for underline.
3273 (Finternal_set_lisp_face_attribute): Likewise.
3275 * xfaces.c (load_color): Change the last argument type to enum
3276 lface_attribute_index from int. And addec code for underling coloring.
3277 (load_face_colors): Pass LFACE_*_INDEX to load_color.
3279 1999-02-12 Gerd Moellmann <gerd@gnu.org>
3281 * xfns.c (Fx_image_header): Removed.
3283 1999-02-07 Gerd Moellmann <gerd@gnu.org>
3285 * xterm.c: Don't include <bitmaps/gray>.
3286 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
3288 * xfns.c (Fx_image_header): Add missing `\n\'.
3289 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
3291 1999-02-01 Gerd Moellmann <gerd@gnu.org>
3293 * xterm.c (x_scroll_bar_create): Set background pixel from
3294 specified scroll bar color.
3295 (x_scroll_bar_set_handle): Use scroll bar foreground color.
3297 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
3298 (x_set_scroll_bar_background): Ditto.
3300 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
3302 * xfns.c (x_default_scroll_bar_color_parameter): New.
3303 (Fx_create_frame): Call it.
3305 1999-01-31 Gerd Moellmann <gerd@gnu.org>
3307 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
3308 values in x_output structure.
3309 (Qscroll_bar_foreground, Qscroll_bar_background): New.
3310 (syms_of_xfns): Initialize these symbols.
3312 * xterm.h (struct x_output): Add scroll bar pixel colors.
3314 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
3315 (x_set_scroll_bar_foreground): New.
3316 (x_set_scroll_bar_background): New.
3318 * xlwmenu.c (all_dashes_p): Removed.
3319 (size_menu_item): Call lw_separator_p.
3320 (display_menu_item): Ditto.
3321 (display_menu): Ditto.
3322 (draw_separator): New.
3323 (display_menu_item): Call it.
3324 (separator_height): New.
3325 (size_menu_item): Call it.
3327 * lwlib-Xm.c (all_dashes_p): Removed.
3328 (make_menu_in_widget): Use lw_separator_p. Set Motif separator
3331 * lwlib.c (lw_separator_p): New.
3333 * lwlib.h (enum menu_separator): New.
3335 1999-01-12 Gerd Moellmann <gerd@gnu.org>
3337 * xdisp.c (handle_single_display_prop): New.
3338 (handle_display_prop): Call it.
3339 (handle_raise_prop): Removed.
3340 (handle_height_prop): Removed.
3341 (handle_space_width_prop): Removed.
3342 (handle_face_prop): Remove handling of raised text.
3343 (handle_display_prop): Do it here.
3345 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
3346 (RAISE_PROP_IDX): Removed.
3347 (HEIGHT_PROP_IDX): Removed.
3348 (SPACE_WIDTH_PROP_IDX): Removed.
3350 * xdisp.c (Qdisplay): Replaces Qglyph.
3351 (handle_display_prop): Formerly handle_glyph_prop.
3353 1999-01-11 Gerd Moellmann <gerd@gnu.org>
3355 * xdisp.c (reseat_to_string): Set position in display vector to -1.
3356 (handle_stop): Set position in display vector to -1. Don't
3357 check overlay strings when set up to deliver characters from a
3359 (set_iterator_to_next): At the end of a run of characters from a
3360 display vector, check whether the display vector display replaces
3361 the display of a character.
3363 1999-01-05 Gerd Moellmann <gerd@gnu.org>
3365 * xfaces.c (init_frame_faces): Don't realize faces if frame's
3366 X window hasn't been created yet.
3368 1998-12-06 Gerd Moellmann <gerd@gnu.org>
3372 1998-12-04 Gerd Moellmann <gerd@gnu.org>
3374 * config.in (HAVE_SOUND): New.
3376 * emacs.c (main): Call syms_of_sound and init_sound.
3378 * Makefile.in (obj): Add sound.o.
3380 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
3382 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
3383 (HAVE_SYS_SOUNDCARD_H): New.
3385 1998-12-03 Gerd Moellmann <gerd@gnu.org>
3387 * buffer.h (struct buffer): indicate_empty_lines renamed from
3390 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
3391 (default-indicate-zv-lines): Likewise.
3393 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
3394 to indicate_empty_line_p.
3396 * xdisp.c (reseat_at_next_visible_line_start): Reset method
3397 to next_element_from_buffer.
3399 * frame.c (make_frame): Set n_current_toolbar_items to 0.
3401 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
3404 * xfns.c (xbm_scan): New.
3405 (xbm_read_hexint): Removed.
3406 (xbm_read_bitmap_file_data): Use xbm_scan.
3408 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
3410 1998-12-02 Gerd Moellmann <gerd@gnu.org>
3412 * xfns.c (xbm_read_hexint): New.
3413 (xbm_read_bitmap_file_data): New.
3414 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
3415 instead of XReadBitmapFileData.
3417 * xdisp.c (handle_raise_prop): Compute voffset from current font.
3419 * xfaces.c (face_with_height): New.
3421 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
3422 (eval_form): Renamed from eval_mode_element.
3423 (handle_face_prop): Use it.
3424 (Qheight): Replaces Qsmaller.
3425 (handle_height_prop): Replaces handle_smaller_prop.
3426 (handle_face_prop): If iterator's font_height is not an
3427 integer, evaluate it to get the font height to use.
3429 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
3430 (struct it): Use `font_height' instead of `smaller'.
3432 1998-12-01 Gerd Moellmann <gerd@gnu.org>
3434 * xdisp.c (reseat_1): New.
3436 (move_it_vertically_backward): Ditto.
3437 (redisplay_window): Don't abort when cursor not found in recenter.
3439 1998-11-30 Gerd Moellmann <gerd@gnu.org>
3441 * xdisp.c (reseat_at_next_visible_line_start): When not
3442 currently delivering display elements from the current buffer,
3443 restore buffer position first.
3444 (init_from_display_pos): Don't set IT's position from the
3445 position passed to this function.
3447 1998-11-28 Gerd Moellmann <gerd@gnu.org>
3449 * config.in (PROTO): Removed.
3451 * xterm.h: Change PROTO to P_.
3453 1998-11-26 Gerd Moellmann <gerd@gnu.org>
3455 * xterm.c (take_vertical_position_into_account): New.
3456 (x_produce_image_glyph): Call it.
3457 (x_produce_stretch_glyph): Ditto.
3458 (x_produce_glyphs): Ditto.
3459 (x_fill_glyph_string): Adjust base line for glyph's voffset.
3460 (x_fill_composite_glyph_string): Ditto.
3461 (x_fill_image_glyph_string): Ditto.
3462 (x_fill_stretch_glyph_string): Ditto.
3464 * xdisp.c (display_line): Always compute row height from
3465 max_ascent and max_descent.
3467 * dispextern.h (struct glyph): Add voffset.
3468 (struct it): Replace height by descent, max_height by max_descent.
3470 * xterm.c (x_append_glyph): Set voffset
3471 (x_append_stretch_glyph): Ditto.
3472 (x_produce_image_glyph): Ditto.
3473 (x_produce_glyphs): Take voffset into account.
3474 (x_produce_image_glyph): Ditto.
3475 (x_produce_stretch_glyph): Ditto.
3477 * dispextern.h (struct it): Add voffset.
3478 * xdisp.c (push_it): Save voffset.
3479 (pop_it): Restore it.
3481 * xdisp.c (it_props): Add entry for `raise'.
3482 (handle_raise_prop): New.
3484 * dispextern.h (RAISE_PROP_IDX): New.
3486 * xdisp.c (Qraise): New.
3487 (syms_of_xdisp): Define Qraised.
3489 * xterm.c (x_scroll_bar_move): Clear to the left and right
3490 of toolkit scroll bars differently.
3491 (x_scroll_bar_move): Removed.
3492 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
3494 * dispextern.h: Make it compilable --with-x=no.
3498 * keyboard.c: Ditto.
3505 1998-11-25 Gerd Moellmann <gerd@gnu.org>
3507 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
3509 1998-11-24 Gerd Moellmann <gerd@gnu.org>
3511 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
3512 update slider size, only.
3513 (xm_scroll_callback): Set dragging member of the scroll bar.
3514 (xt_action_hook): Reset last_scroll_bar_part.
3515 (XTredeem_scroll_bar): Reset bar->dragging to nil.
3517 * xlwmenu.c (abort_gracefully): New.
3518 (display_menu): Use it instead of abort.
3521 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
3522 window on newly created frames that don't have one.
3524 1998-11-23 Gerd Moellmann <gerd@gnu.org>
3526 * xdisp.c (restore_overlay_strings): Removed.
3527 (restore_dpvec): Removed.
3528 (init_from_display_pos): Inline both functions above.
3530 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
3531 (parse_image_spec): Handle it.
3532 (xbm_format): Use it.
3533 (xpm_format): Ditto.
3534 (pbm_format): Ditto.
3535 (jpeg_format): Ditto.
3536 (tiff_format): Ditto.
3537 (gif_format): Ditto.
3540 * xdisp.c (set_window_cursor): Removed.
3541 (redisplay_internal): Case cursor motion in cursor line of
3542 selected window; use set_cursor_from_row.
3544 1998-11-22 Gerd Moellmann <gerd@gnu.org>
3546 * widget.c (EmacsFrameSetCharSize): Take widget's border width
3549 1998-11-21 Gerd Moellmann <gerd@gnu.org>
3551 * xterm.c (expose_frame): Redraw menu bar window.
3553 * xdisp.c (display_menu_bar): Record hpos instead of x-position
3556 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
3557 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
3559 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
3560 to determine vertical_scroll_bar_extra.
3561 (EmacsFrameSetCharSize): Ditto.
3562 * xfns.c (x_figure_window_size): Ditto.
3564 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
3565 (x_draw_bitmap): Ditto.
3567 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
3568 * xfaces.c (realize_basic_faces): Realize it.
3570 1998-11-20 Gerd Moellmann <gerd@gnu.org>
3572 * xmenu.c (xmenu_show): Add workaround for remaining button grab
3573 under LessTif Use the widget of the frame as parent for the
3576 1998-11-19 Gerd Moellmann <gerd@gnu.org>
3578 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
3579 When EnterNotify, don't generate a mouse movement event if
3580 notification is from a busy-cursor child window.
3582 * xterm.h (struct x_output): Add busy_window, remove cursor.
3584 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
3585 Use a transparent window to display the busy-cursor.
3586 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
3588 1998-11-17 Gerd Moellmann <gerd@gnu.org>
3590 * xdisp.c (check_window_end): New, for debugging.
3591 (CHECK_WINDOW_END): New.
3592 (try_window_id): Use it.
3594 * xterm.c (process_expose_from_menu): Return int.
3596 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
3597 TOOLBAR_EVENT events in last_nonmenu_event.
3599 1998-11-16 Gerd Moellmann <gerd@gnu.org>
3601 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
3602 window end isn't reliable, so set window_end_valid to nil.
3603 (redisplay_internal): If overlay arrow has changed, set
3604 windows_or_buffers_changed to redisplay thoroughly.
3606 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
3609 * xfns.c (file_dialog_cb): New.
3610 (Fx_file_dialog): New.
3611 * fileio.c (Fread_file_name): Call it.
3613 * xrdb.c (x_load_resources): Add default resoures for file
3616 1998-11-14 Gerd Moellmann <gerd@gnu.org>
3618 * xterm.c (note_mouse_highlight): Don't highlight when popup
3621 * xlwmenu.c (xlwMenuResources): Change previously unused
3623 (size_menu): Take margin into account.
3624 (display_menu_item): Ditto.
3625 (remap_menubar): Ditto.
3626 (draw_arrow): Draw it 3D.
3628 * keyboard.c (timer_check): Inhibit busy cursor around calls to
3629 timer-event-handler. This busy cursor tends to be anoying if
3630 fontifying stealthily.
3632 * dispnew.c (direct_output_for_insert): Give up if current row
3633 contains trailing whitespace.
3635 1998-11-13 Gerd Moellmann <gerd@gnu.org>
3637 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
3639 * xdisp.c (handle_fontified_prop): New.
3640 (Vfontification_functions): New.
3641 (Qfontification_functions): New.
3642 (it_props): Add handle_fontified_prop.
3644 1998-11-12 Gerd Moellmann <gerd@gnu.org>
3646 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
3647 Otherwise, under LessTif, after the popup has gone, all button
3648 press events come in for the frame's widget, and release events
3649 come in for the edit_widget.
3650 * xterm.c (XTread_socket): Remove workaround for that problem.
3651 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
3652 XmScrollBarSetValues.
3653 (SET_SAVED_MENU_EVENT): Give it statement form.
3655 * lwlib-Xm.c (make_menu_in_widget): Set alignment of menu
3656 title after all widgets have been created.
3658 * xfaces.c (display_message): If waiting_for_input, don't display
3661 * window.c (scroll_command): If not acting on current_buffer,
3662 make redisplay consider all windows.
3664 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
3666 * xdisp.c (handle_glyph_prop): Set it->object for images to
3667 the object having the glyph property.
3669 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
3672 1998-11-11 Gerd Moellmann <gerd@gnu.org>
3674 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
3675 (x_term_init): Create the gray pixmap.
3676 (x_setup_relief_color): Use it.
3677 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
3678 internal border at the top of a frame.
3679 (x_init_glyph_string): Likewise.
3680 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
3682 (XTflash): Don't flash the toolbar window.
3684 * xterm.c (XTread_socket): Workaround for LessTif popup menus
3685 in case of ButtonPress events.
3687 1998-11-10 Gerd Moellmann <gerd@gnu.org>
3689 * xrdb.c (x_load_resources): Add grey background colors as
3690 defaults for menus, scroll bars, and dialogs.
3692 * insdel.c (prepare_to_modify_buffer): Move setting
3693 windows_or_buffers_changed from modify_region here.
3695 * xfns.c (Fx_show_tip): Inhibit redisplay.
3696 (Fx_hide_tip): Ditto.
3697 (Fx_image_header): New.
3699 1998-11-09 Gerd Moellmann <gerd@gnu.org>
3701 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
3702 when clearing current window matrices.
3704 1998-11-08 Gerd Moellmann <gerd@gnu.org>
3706 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
3707 position from a string position. Use the right end position
3708 if the property spans a whole overlay string.
3710 1998-11-07 Gerd Moellmann <gerd@gnu.org>
3712 * xmenu.c (menubar_selection_callback): Remove workaround for
3713 Lesstif not calling XmNpopdownCallback because it doesn't
3714 handle the case where users don't select any menu item.
3716 * xlwmenu.c (toggle_button_width): Renamed from
3717 toggle_or_radio_button_width.
3718 (radio_button_width): New.
3719 (size_menu_item): Use new functions.
3720 (draw_shadow_rhombus): New.
3721 (draw_radio): Use radio_button_width and draw_shadow_rhombus.
3722 (draw_toggle): Use toggle_button_width.
3724 * insdel.c (modify_region): Set windows_or_buffers_changed.
3726 * buffer.c (set_buffer_internal): Don't set
3727 windows_or_buffers_changed.
3729 * lwlib-Xm.c (xm_update_toggle): Add callback xm_generic_callback
3730 instead of xm_internal_update_other_instances.
3732 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
3734 * lwlib-Xm.c (make_menu_in_widget): Do help button before managing
3735 children to get it to the right place.
3736 (make_menu_in_widget): Create toggle buttons.
3737 (update_one_menu_entry): Update toggle buttons.
3739 * xmenu.c (menubar_selection_callback): Add workaround for
3740 Lesstif not calling XmNpopdownCallback.
3742 * xdisp.c (eval_mode_element): New.
3743 (eval_mode_handler): New.
3744 (display_mode_element): Use eval_mode_element.
3746 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
3747 Remove code looking at text props of default value.
3749 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
3751 * xlwmenu.c (size_menu_item): Add parameter button_width.
3752 (size_menu): Compute button_width.
3753 (toggle_or_radio_button_width): New.
3756 (draw_shadow_rectangle): Add parameter `down_p'.
3758 * xlwmenuP.h (_window_state): Add button_width.
3760 1998-11-06 Gerd Moellmann <gerd@gnu.org>
3762 * xmenu.c (single_submenu): Set button_type of menu to
3764 (single_submenu): Likewise for panes and menu items.
3765 (set_frame_menubar): Set button_type of menu bar to none.
3766 (xmenu_show): Likewise.
3767 (single_submenu): Set widget values selected slot.
3768 (xmenu_show): Likewise.
3770 * lwlib.c (merge_widget_value): Handle button_type.
3771 (copy_widget_value_tree): Copy button_type.
3773 * lwlib.h (enum button_type): New.
3774 (_widget_value): New member button_type.
3776 * xmenu.c (push_menu_item): Add parameters `type' and
3777 `selected'. Store it in menu_items.
3778 (MENU_ITEMS_ITEM_TYPE): New.
3779 (MENU_ITEMS_ITEM_SELECTED): New.
3780 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
3782 * xfns.c (clear_image_cache): Get the current time, before
3784 (cache_image): Set prev pointer of next image.
3785 (clear_image_cache): Clear current matrices if any image was
3788 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
3790 * xfns.c (x_set_cursor): New.
3791 (Fx_display_busy_cursor): New.
3792 (Fx_undisplay_busy_cursor): New.
3794 * xterm.h (struct x_output): Add busy_cursor.
3796 * xfns.c (Vx_busy_pointer_shape): New.
3797 (x_set_mouse_color): Create busy cursor.
3799 * process.c (wait_reading_process_input): Show and hide busy
3802 * keyboard.c (command_loop_1): Display busy cursor.
3804 * eval.c (Fsignal): Hide busy cursor.
3806 * buffer.c (set_buffer_internal): Don't set
3807 windows_or_buffers_changed.
3809 * xterm.c (redo_mouse_highlight): New.
3811 1998-11-04 Gerd Moellmann <gerd@gnu.org>
3813 * lwlib-Xm.c (make_menu_in_widget): Test for menubar widgets
3814 using XmNrowColumnType.
3816 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
3817 (x_build_heuritic_mask): New.
3818 (lookup_image): Call it.
3820 * xterm.c (note_toolbar_highlight): Always set up help_echo.
3821 (previous_help_echo): New.
3822 (XTread_socket): Generate help event with nil message when
3823 leaving a region with help-echo.
3824 (note_mouse_highlight): Handle `help-echo' over text.
3825 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
3827 (clear_mouse_face): Don't clear if tooltip is shown.
3828 (XTread_socket): Redo mouse-highlight after tooltip is gone.
3829 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
3831 * keyboard.c (Vshow_help_function): New.
3832 (read_char): Use it.
3834 1998-11-03 Gerd Moellmann <gerd@gnu.org>
3836 * xfns.c (x_create_tip_frame): New.
3840 * xterm.c (x_destroy_window): Handle case that we don't have
3843 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
3844 to full_width_p. Add internal_border_p.
3846 1998-11-02 Gerd Moellmann <gerd@gnu.org>
3848 * xterm.c (note_mode_line_highlight): Check the charpos of
3849 the glyph under the mouse pointer before accessing text
3850 properties at that position.
3852 1998-11-01 Gerd Moellmann <gerd@gnu.org>
3854 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
3856 * xdisp.c (auto-raise-toolbar-buttons): New.
3857 (build_desired_toolbar_string): Handle the flag.
3858 (toolbar-button-margin): New.
3859 (toolbar-button-relief): New.
3860 (build_desired_toolbar_string): Use margin and relief.
3862 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
3864 (note_mode_line_highlight): New.
3865 (note_mouse_highlight): Call it.
3867 1998-10-31 Gerd Moellmann <gerd@gnu.org>
3869 * s/freebsd.h (NARROWPROTO): New.
3871 * xdisp.c (display_string): New parameter face_string.
3872 (display_mode_element): When displaying a symbol with a string
3873 value, use text properties from the symbol's default value, maybe.
3875 * xrdb.c (x_load_resources): Add font defaults for menus and
3878 1998-10-30 Gerd Moellmann <gerd@gnu.org>
3880 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
3882 1998-10-29 Gerd Moellmann <gerd@gnu.org>
3884 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
3885 produced for characters with codes < 32 under certain
3888 * xdisp.c (redisplay_window): Handle values of PT in front
3889 of invisible, intangible text.
3890 (try_window_id): Set overlay_arrow_seen to zero before
3892 (display_mode_element): Assign to glyphs written for a mode
3893 line spec `%x' as object the Lisp format string, as position
3894 the position of the `%' in that string.
3895 (display_string): If displaying a C string, optionally get
3896 the face to use from a Lisp string.
3898 * xterm.c (expose_window_tree): Include mode line height.
3900 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
3902 1998-10-27 Gerd Moellmann <gerd@gnu.org>
3904 * xterm.c (note_mouse_highlight): Change mouse pointer shape
3907 1998-10-26 Gerd Moellmann <gerd@gnu.org>
3909 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
3911 * xdisp.c (redisplay_window): If mode line height has changed,
3912 arrange for a thorough immediate redisplay using the correct mode
3914 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
3916 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
3917 (CURRENT_MODE_LINE_HEIGHT): New.
3918 (DESIRED_MODE_LINE_HEIGHT): New.
3920 * keyboard.c (make_lispy_event): Add string and string position
3921 info to mouse-click events.
3922 (read_key_sequence): Handle `local-map' property of mode line
3925 * keyboard.h (POSN_STRING): New.
3927 1998-10-25 Gerd Moellmann <gerd@gnu.org>
3929 * dispnew.c (mode_line_string): Mew.
3931 * xterm.c (xt_action_hook): New.
3932 (x_create_toolkit_scroll_bar): Add action hook.
3933 (xm_scroll_callback): Implement dragging.
3935 * keyboard.c (Qend_scroll): New.
3936 (scroll_bar_parts): Add it.
3938 * termhooks.h (scroll_bar_end_scroll): New.
3940 * xterm.c (XTread_socket): Bug fix.
3942 1998-10-24 Gerd Moellmann <gerd@gnu.org>
3944 * xdisp.c (redisplay_window): Finish scroll bars after
3945 redisplaying toolbar.
3947 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
3948 (syms_of_keyboard): Add Qbottom.
3950 * termhooks.h (scroll_bar_to_top): New.
3951 (scroll_bar_to_bottom): New.
3953 * xdisp.c (redisplay_window): Always resize toolbar window if
3954 auto_resize_toolbar_p is non-zero.
3955 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
3957 (window_box_height): New.
3958 (window_box_width): New.
3959 (window_box_left): New.
3960 (window_box_right): New.
3961 (window_box_edges): New.
3963 1998-10-23 Gerd Moellmann <gerd@gnu.org>
3965 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
3966 XawScrollbarSetThumb in FreeBSD.
3967 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
3970 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
3973 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
3974 (x_term_init): Initialize it.
3976 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
3978 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
3981 1998-10-22 Gerd Moellmann <gerd@gnu.org>
3983 * keyboard.c (make_lispy_event): Handle scroll_bar_click
3984 differently when using toolkit scroll bars.
3986 * xterm.c (x_send_scroll_bar_event): New.
3987 (x_scroll_bar_to_input_event): New.
3988 (xaw3d_scroll_callback): New.
3989 (xaw3d_jump_callback): New.
3990 (xm_scroll_callback): New.
3991 (x_toolkit_scroll_p): New.
3992 (XTread_socket): Handle scroll bar client message.
3993 (x_term_init): Initialize Xatom_Scrollbar.
3994 (x_scroll_bar_create): Set cursor.
3995 (xm_scroll_callback):
3996 (x_create_toolkit_scroll_bar): New.
3997 (x_set_toolkit_scroll_bar_thumb): New.
3998 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
3999 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
4001 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
4003 1998-10-21 Gerd Moellmann <gerd@gnu.org>
4005 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
4006 (XTread_socket): Don't handle mouse button events for scroll bars
4007 if using toolkit scroll bars.
4008 (XTset_vertical_scroll_bar): Set thumb size and position for
4011 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
4013 * xterm.c (XTread_socket): Dispatch expose event to widget
4014 if using toolkit scroll bars.
4015 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
4016 (x_scroll_bar_create): Create and show a scroll bar widget
4017 if using toolkit scroll bars.
4018 (x_scroll_bar_move): Handle tookit scroll bars.
4020 * Makefile.in (LIBW): Use Xaw3d if present.
4022 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
4025 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
4028 * xterm.c (XTset_vertical_scroll_bar): Correct position of
4029 right vertical scroll bar.
4031 1998-10-20 Gerd Moellmann <gerd@gnu.org>
4033 * xfns.c (xpm_load): Support reading XPM images from string
4034 buffers containing data in the same format as an XPM file.
4035 Support `:color-symbols'.
4036 (xpm_format): Add `:data'.
4037 (xpm_keyword_index): Add XPM_DATA.
4038 (syms_of_xfns): Add `:color-symbols'.
4039 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
4040 (xpm_valid_color_symbols_p): New.
4041 (xpm_image_p): Call it.
4043 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
4044 attribute to the image if item is not enabled.
4046 * xfns.c (x_laplace): New.
4047 (x_laplace_read_row): New.
4048 (x_laplace_write_row): New.
4049 (lookup_image): Handle common image attributes here. New
4050 attribute `:algorithm'.
4052 * xfaces.c (clear_face_cache): Call clear_image_cache.
4054 * xterm.c (x_inverted_image_mask): Removed.
4055 (x_draw_image_foreground_1): New.
4056 (x_draw_image_glyph_string): Draw images with mask to a temporary
4057 pixmap to reduce flickering.
4059 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
4060 (display_toolbar_line): Remove parameter `margin'.
4062 1998-10-19 Gerd Moellmann <gerd@gnu.org>
4064 * xdisp.c (toolbar_lines_needed): New.
4065 (auto-resize-toolbars): New.
4067 * xfns.c (cache_image): Correct call to xrealloc.
4069 * dispnew.c (Fset_toolbar_height): Removed.
4071 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
4072 FRAME_MENU_BAR_LINES.
4074 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
4075 instead of FRAME_MENU_BAR_LINES.
4076 (check_frame_size): Ditto.
4078 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
4079 instead of FRAME_MENU_BAR_LINES.
4080 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
4081 (build_frame_matrix): Ditto.
4082 (change_frame_size_1): Ditto.
4084 * frame.h (FRAME_TOOLBAR_LINES): New.
4085 (FRAME_TOP_MARGIN): New.
4087 * window.c (struct save_window_data): Add frame_toolbar_lines.
4088 (Fset_window_configuration): Handle toolbar lines.
4089 (Fcurrent_window_configuration): Save toolbar lines.
4091 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
4093 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
4095 * frame.h (struct frame): Rename top_margin to toolbar_lines.
4097 * xfns.c (x_frame_parms): Add `toolbar-lines'.
4098 (x_set_toolbar_lines): New.
4100 * keyboard.c (cmd_error_internal): Bug fix.
4102 * xterm.c: Remove double include of syssignal.h.
4104 1998-10-18 Gerd Moellmann <gerd@gnu.org>
4106 * xterm.c (x_toolbar_item): New.
4107 (x_handle_toolbar_click): Use it.
4108 (note_toolbar_highlight): Use it.
4110 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
4111 and toolbar_items_vectors.
4113 * xterm.c (help_echo): New.
4114 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
4115 (x_set_glyph_string_gc): Handle them.
4116 (x_after_update_window_line): Don't do anything in pseudo-windows.
4117 (x_produce_image_glyph): Take image margin and face relief into
4119 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
4120 (x_draw_glyph_string_background): Optimize case when face has
4122 (x_setup_relief_color): Take frame instead of glyph string
4124 (x_draw_relief_rect): New.
4125 (x_draw_glyph_string_relief): Call it.
4126 (x_draw_image_glyph_string_foreground): Handle margin and image
4128 (x_draw_image_glyph_string_background): Ditto.
4129 (expose_frame): Redraw toolbar window.
4130 (expose_window): Don't draw cursor for pseudo-windows.
4131 (x_y_to_hpos_vpos): Handle pseudo-windows.
4132 (frame_to_window_pixel_xy): New.
4133 (note_mouse_highlight): Call note_toolbar_highlight.
4134 (x_handle_toolbar_click): New.
4135 (note_toolbar_highlight): New.
4136 (show_mouse_face): Change int parameter `hl' to parameter of
4137 type enum draw_glyphs_face. Handle image highlighting.
4138 (XTread_socket): Return a HELP_EVENT input event if help_echo is
4139 non-nil. Use x_handle_toolbar_click.
4141 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
4143 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
4145 (parse_image_spec): Handle them.
4146 (image_spec_value): Additional parameter found.
4147 (free_image): Remove image from the vector `images' of the
4149 (clear_image_cache): Additional parameter force_p.
4150 (Fclear_image_cache): New.
4151 (x_find_image_file): New.
4152 (xbm_load): Handle `:margin' and `:relief'. Use
4154 (xpm_load): Likewise.
4155 (pbm_load): Likewise.
4156 (jpeg_load): Likewise.
4157 (tiff_load): Likewise.
4158 (gif_load): Likewise.
4160 * keyboard.c (Qhelp_echo): New symbol.
4161 (read_char): Handle `toolbar' and `help_echo' events.
4162 (kbd_buffer_get_event): Handle HELP_ECHO input event.
4163 (make_lispy_event): Handle TOOLBAR_EVENT.
4164 (toolbar_items): New.
4165 (process_toolbar_item): New.
4167 (init_toolbar_items): New.
4168 (append_toolbar_item): New.
4169 (read_char_x_menu_prompt): Handle `toolbar' event.
4170 (read_key_sequence): Ditto.
4172 * xfaces.c (Qtoolbar): New.
4173 (realize_basic_faces): Realize `toolbar' face.
4174 (face_at_string_position): Remove parameter modeline_p, add
4177 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
4180 1998-10-17 Gerd Moellmann <gerd@gnu.org>
4182 * xdisp.c (init_iterator): Replace parameter modeline_p with
4184 (next_element_from_string): Call get_next_display_element
4185 recursively after handling text properties.
4186 (prepare_menu_bars): Call update_toolbar.
4187 (update_toolbar): New.
4188 (build_desired_toolbar_string): New.
4189 (display_toolbar_line): New.
4190 (redisplay_toolbar): New.
4191 (toolbar_item_info): New.
4192 (redisplay_window): Call redisplay_toolbar.
4193 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
4195 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
4197 (clear_desired_matrices): Ditto.
4198 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
4199 (free_glyphs): Free matrices of toolbar window.
4200 (update_frame): Update toolbar window.
4201 (change_frame_size_1): Take toolbar into account.
4202 (Fset_toolbar_height): New.
4204 * dispextern.h (struct it): Remove member modeline_p, add
4206 (struct image): Add members relief and margin.
4207 (IMAGE_ASCENT): Include margin in height.
4209 1998-10-14 Gerd Moellmann <gerd@gnu.org>
4211 * xfns.c (Fclear_image_cache): New.
4213 * xfaces.c (realize_basic_faces): Realize toolbar face.
4214 (face_at_string_position): Remove parameter modeline_p, add
4217 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
4219 1998-10-13 Gerd Moellmann <gerd@gnu.org>
4221 * keyboard.c (syms_of_keyboard): Intern `:help'.
4223 1998-10-12 Gerd Moellmann <gerd@gnu.org>
4225 * xterm.c (note_toolbar_highlight): New.
4226 (note_mouse_highlight): Call it.
4228 * window.c (window_from_coordinates): Additional parameter toolbar_p.
4229 (coordinates_in_window): Handle toolbar window.
4231 * keyboard.c (toolbar_items): New.
4232 (process_toolbar_item): New.
4233 (parse_toolbar_item): New.
4234 (init_toolbar_items): New.
4235 (append_toolbar_item): New.
4237 * dispextern.h (enum toolbar_item_idx): New.
4238 (enum toolbar_item_image): New.
4240 * frame.h (struct frame): Add toolbar-related members.
4242 * xfaces.c (face_at_string_position): Remove assertion that
4243 current_buffer == window's buffer. This is not the case when
4244 called for the toolbar window.
4246 * frame.c (make_frame): Initialize toolbar members.
4248 * alloc.c (mark_object): Mark toolbar data of frames.
4250 * frame.h (struct frame): Add toolbar-related members
4251 toolbar_window, desired_toolbar_items, current_toolbar_items,
4252 desired_toolbar_string, current_toolbar_string,
4253 n_desired_toolbar_items, n_current_toolbar_items. Add
4256 * xterm.c (x_after_update_window_line): Don't draw bitmap
4257 areas for pseudo-windows.
4258 (expose_frame): Handle toolbar window.
4259 (expose_window): Don't do cursor stuff for pseudo-windows.
4261 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
4263 1998-10-11 Gerd Moellmann <gerd@gnu.org>
4265 * frame.c (make_frame): Initialize toolbar_window.
4267 * alloc.c (mark_object): Make the toolbar window.
4269 * dispnew.c (update_frame): Update frame's toolbar_window.
4270 (clear_current_matrices): Likewise.
4271 (clear_desired_matrices): Likewise.
4272 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
4273 (free_glyphs): Free the toolbar window and its matrices.
4275 * frame.h (struct frame): Add toolbar_window.
4277 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
4280 1998-10-10 Gerd Moellmann <gerd@gnu.org>
4282 * dispnew.c (buffer_posn_from_coords): Don't screw up if
4283 window start is not in the range BEGV..ZV.
4285 1998-10-09 Gerd Moellmann <gerd@gnu.org>
4287 * xdisp.c (try_scrolling): Experimentally handle the case
4288 that scroll-preserve-screen-position is set to `always'.
4290 * window.c (Vscroll_preserve_screen_position): Replacement for
4291 scroll_preserve_screen_position.
4293 1998-10-08 Gerd Moellmann <gerd@gnu.org>
4295 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
4299 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
4301 1998-10-06 Gerd Moellmann <gerd@gnu.org>
4303 * minibuf.c (Fminibuffer_complete_word): Fix computation of
4304 i_byte when prompts are inserted into minibuffers.
4306 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
4307 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
4308 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
4310 1998-10-04 Gerd Moellmann <gerd@gnu.org>
4312 * xdisp.c (make_cursor_line_fully_visible): New.
4313 (try_scrolling): New.
4314 (redisplay_window): Move scrolling code to try_scrolling.
4315 (make_cursor_line_fully_visible): Handle case of window too small
4316 to show a single line.
4317 (redisplay_window): Case forced window start---use
4318 make_cursor_line_fully_visible.
4319 (redisplay_window): Case cursor movement via current matrix.
4320 If ending up on a partially visible line, make it fully visible
4321 instead of recentering.
4322 (try_scrolling): Additional parameter scroll_smoothly.
4324 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
4326 1998-09-28 Gerd Moellmann <gerd@gnu.org>
4328 * window.c (window_scroll_pixel_based): Bug fix: vpos used
4329 instead of y-position for scroll-preserved-screen-position.
4331 1998-09-07 Gerd Moellmann <gerd@gnu.org>
4333 * dispnew.c (update_frame_line): If current row is not enabled,
4334 write the whole line.
4336 1998-09-06 Gerd Moellmann <gerd@gnu.org>
4338 * lisp.h (HAVE_FACES): Removed.
4340 * dispextern.h (HAVE_FACES): Removed.
4342 * config.in (HAVE_FACES): Removed.
4344 * dispnew.c (HAVE_FACES): Removed.
4346 * xdisp.c (HAVE_FACES): Removed.
4348 * xfaces.c (HAVE_FACES): Removed.
4350 1998-09-05 Gerd Moellmann <gerd@gnu.org>
4352 * xdisp.c (init_iterator): If face_change_count is non-zero,
4353 free realized faces.
4355 * xfaces.c (free_all_realized_faces): Make it externally visible.
4356 (Finternal_set_lisp_face_attribute): Increment
4357 windows_or_buffers_changed.
4359 * dispnew.c (direct_output_for_insert): Give up if
4360 face_change_count is non-zero.
4361 (direct_output_forward_char): Ditto.
4363 * xfaces.c (face_change_count): New.
4365 1998-09-04 Gerd Moellmann <gerd@gnu.org>
4367 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
4370 1998-09-03 Gerd Moellmann <gerd@gnu.org>
4372 * term.c (Ftty_display_color_p): New.
4374 1998-09-02 Gerd Moellmann <gerd@gnu.org>
4376 * xfaces.c (Ftty_defined_colors): New.
4378 * xterm.c (x_produce_glyphs): Fix computation of
4379 contains_overlapping_glyphs_p for ASCII.
4381 * dispnew.c (Fshow_cursor): Don't change cursor state while
4383 (direct_output_for_insert): If a glyph with lbearing or rbearing
4384 is among the new glyphs, set row flag contains_overlapping_glyph_p.
4386 1998-09-01 Gerd Moellmann <gerd@gnu.org>
4388 * term.c (OUTPUT_IF): Make replacement text have statement form.
4389 (OUTPUT1_IF): Ditto.
4390 (TS_italic_mode, TS_end_italic_mode): Removed.
4391 (TS_bold_mode): Removed.
4392 (TS_underscore_mode, TS_end_underscore_mode): Removed.
4393 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
4394 (TS_enter_reverse_mode): New.
4395 (TS_enter_underline_mode, TS_exit_underline_mode): New.
4396 (TN_magic_cookie_glitch_ul): New.
4397 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
4398 (TS_exit_attribute_mode): New.
4399 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
4400 (TS_set_foreground, TS_set_background): New.
4401 (reset_terminal_modes): Switch colors back to default.
4402 (write_glyphs): Turn face on before writing text, turn it off
4404 (insert_glyphs): Ditto.
4405 (term_init): Initialize new terminal capability variables.
4406 (turn_on_face): Turn a face on.
4407 (turn_off_face): Turn a face off.
4409 * lisp.h (MAKE_GLYPH): Remove test for frame type.
4410 (GLYPH_CHAR): Ditto.
4411 (GLYPH_FACE): Ditto.
4413 * xfaces.c (Vface_tty_color_alist): New.
4414 (face-register-tty-color): New.
4415 (face-clear-tty-colors): New.
4417 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
4418 (struct it): Remove member faces_p since we now always have faces.
4420 1998-08-31 Gerd Moellmann <gerd@gnu.org>
4422 * dispextern.h (struct face): Add tty appearance flags.
4424 * xdisp.c (init_iterator): Always handle faces.
4425 (extend_face_to_end_of_line): Handle tty frames.
4427 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
4430 1998-08-30 Gerd Moellmann <gerd@gnu.org>
4432 * xfaces.c (realize_default_face): Use empty strings to indicate
4433 that the face should use the default foreground/background
4434 color of the terminal. Fill font-related attributes with
4435 appropriate values for tty frames.
4437 * emacs.c (main): Call syms_of_xfaces before init_window_once.
4439 * xfaces.c (realize_default_face): If face `default' is not
4440 yet known, create it.
4442 * frame.c (make_terminal_frame): Call init_frame_faces
4445 * xfaces.c (init_frame_faces): Make it work for tty frames.
4446 (free_frame_faces): Ditto.
4447 (clear_face_cache): Ditto.
4448 (recompute_basic_faces): Ditto.
4449 (Fframe_face_alist): Ditto.
4450 (free_realized_face): Ditto.
4451 (prepare_face_for_display): Ditto.
4452 (clear_face_gcs): Ditto.
4453 (lookup_face): Ditto.
4454 (smaller_face): Ditto.
4455 (realize_default_face): Ditto.
4456 (realize_face): Ditto.
4457 (realize_face): Dispatch to functions depending on the frame type.
4458 (realize_x_face): X way of realizing faces.
4459 (realize_tty_face): TTY way of realizing faces.
4461 1998-08-29 Gerd Moellmann <gerd@gnu.org>
4463 * xfaces.c (realize_face): Remove parameter unibyte_registry,
4465 (lookup_face): Remove local variable unibyte_registry.
4467 1998-08-22 Gerd Moellmann <gerd@gnu.org>
4469 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
4472 * xdisp.c (face_before_or_after_it_pos): Fix computation
4475 * editfns.c (make_buffer_string_both): If prompt in buffer,
4476 prevent start > end.
4478 * indent.c (Fvertical_motion): Set current_buffer to window's
4479 buffer if it isn't already.
4481 1998-08-21 Gerd Moellmann <gerd@gnu.org>
4483 * dispextern.h (GLYPH_DEBUG): Use default 0.
4485 * xdisp.c (it_props): New member `smaller'.
4486 (init_iterator): Initialize it.
4488 (push_it): Save value of `smaller' value on the stack.
4489 (pop_it): Restore `smaller' from the stack.
4490 (handle_smaller_prop): New.
4491 (handle_face_prop): Use `smaller' text property to select a
4494 * dispextern.h (SMALLER_PROP_IDX): New.
4495 (struct it): Add member `smaller'.
4497 * xfaces.c (smaller_face): New.
4499 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
4501 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
4502 total pixel width of window differently.
4504 * xdisp.c (init_iterator): Compute width of mode line differently.
4506 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
4509 * window.c (Fsplit_window): Include width of bitmap areas in
4511 (window_internal_width): Subtract width of bitmap areas from
4514 1998-08-18 Gerd Moellmann <gerd@gnu.org>
4516 * xdisp.c: Functions reordered for better readability.
4518 * dispnew.c (update_text_area): Handle glyphs with arbitrary
4520 (update_window_tree): Parameter no_scrolling_p removed.
4521 (update_single_window): Ditto.
4523 * xterm.c (x_get_char_font_and_encoding): Renamed to
4524 x_get_char_face_and_encoding.
4526 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
4527 if end of current row reached.
4529 * xterm.c (x_get_glyph_face_and_encoding): New.
4530 (x_get_glyph_overhangs): Call it.
4532 * xdisp.c (Qshow_trailing_whitespace): New.
4533 (Qtrailing_whitespace): New.
4534 (enum prop_handled): New.
4535 (struct props, it_props): New.
4536 (next_overlay_change): New. Works like Fnext_overlay_change
4537 but doesn't use xmalloc.
4538 (handle_stop): Restructured.
4539 (face_before_or_after_it_pos): Case iteration over a string: fix
4540 handling of face before current position.
4542 1998-08-16 Gerd Moellmann <gerd@gnu.org>
4544 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
4545 reallocation matrix if fonts_changed_p.
4546 (update_text_area): Handle glyphs with lbearing.
4548 1998-08-14 Gerd Moellmann <gerd@gnu.org>
4550 * xdisp.c (struct props): New.
4552 (compute_prop_info): New.
4555 * textprop.c (validate_interval_range): Make it externally
4558 * dispnew.c (direct_output_for_insert): Remove calls
4559 to compute_stop_pos.
4561 * dispextern.h (struct it): Remove check_charpos,
4562 next_overlay_pos. Add what_changes.
4564 1998-08-10 Gerd Moellmann <gerd@gnu.org>
4566 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
4568 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
4569 face_default_registry instead.
4571 * syntax.c (scan_sexps_forward): Set up syntax table before
4572 jumping to initial state label.
4574 1998-08-09 Gerd Moellmann <gerd@gnu.org>
4576 * dispnew.c (check_matrix_invariants): Handle case of row end pos
4579 1998-08-08 Gerd Moellmann <gerd@gnu.org>
4581 * xdisp.c (redisplay_window): Case cursor movement---if cursor
4582 ends up in partially visible row, try to scroll. Case forced
4583 window start---handle windows not tall enough to show a single
4586 * window.h (struct window): Member dy renamed vscroll.
4588 * xterm.c (x_list_fonts): Re-activate suppression of scalable
4590 (x_draw_stretch_glyph_string): Set clipping if using GC that
4593 * xdisp.c (redisplay_window): Case forced window start -
4594 don't let cursor end on partially visible row. Use desired
4595 matrix to find a suitable PT if it doesn't appear.
4596 (decode_mode_spec): Merged with 20.2.97.
4597 (try_window_reusing_current_matrix): Give up if old or
4598 new display is vscrolled.
4599 (redisplay_window): Reset vscrolling if forced window start,
4602 1998-08-06 Gerd Moellmann <gerd@gnu.org>
4604 * xfaces.c (realize_default_face): Use the fontset name instead of
4605 the alias for the family attribute of the default face because we
4606 can't easily determine a good alias from fontset-alias-alist.
4607 (face_fontset): Use Fquery_fontset to find the fontset.
4608 (font_list): Additional pattern parameter.
4609 (try_font_list): Ditto.
4610 (set_lface_from_font_name): Set face family from font foundry
4612 (font_list): If family contains a hyphen, build pattern differently.
4614 1998-08-05 Gerd Moellmann <gerd@gnu.org>
4616 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
4617 changed instead of setting the frame garbaged.
4619 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
4620 all attribute values. This is wrong if values are unspecified,
4623 * xdisp.c (try_window_id): Give up if window start changed.
4625 * xfaces.c (make_realized_face): Store registry as Lisp object.
4626 (load_face_font_or_fontset): Compute registry of a face
4627 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
4630 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
4633 * alloc.c (mark_face_cache): Mark the registry member of faces.
4635 * dispextern.h (struct face): Make registry a Lisp string.
4637 1998-08-04 Gerd Moellmann <gerd@gnu.org>
4639 * xterm.c (x_get_char_font_and_encoding): Additional parameter
4640 multibyte_p. Handle unibyte text.
4641 (x_append_glyph): Set the multibyte_p flag of glyphs.
4642 (x_produce_image_glyph): Ditto.
4643 (x_append_stretch_glyph): Ditto.
4644 (x_produce_glyphs): Handle unibyte text like ASCII.
4646 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
4648 (pop_it): Restore it.
4649 (face_before_or_after_it_pos): Handle the case that the string or
4651 (get_overlay_strings): Set the multibyte flag of the iterator if
4652 the new overlay string is multibyte.
4653 (get_glyph_property): Likewise.
4654 (get_next_display_element): Don't check for charset changes in
4656 (append_space): Compute face differently for unibyte text.
4657 (extend_face_to_end_of_line): Don't return quickly if face has
4660 * xfaces.c (load_face_font_or_fontset): Store registry and
4661 encoding of the font in the registry member of the face.
4662 (make_realized_face): Additional parameter `registry'.
4663 (free_realized_face): Free the registry of a realized face.
4664 (face_suitable_for_charset_p): Function form of the macro
4665 with the same name in uppercase.
4666 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
4667 (choose_face_font): New parameter unibyte_registry.
4668 (choose_face_fontset_font): Ditto.
4669 (realize_default_face): Remember the registry and encoding of
4670 the specified frame font in Vx_unibyte_registry_and_encoding.
4671 (face_at_buffer_position): Handle unibyte.
4672 (face_at_string_position): Likewise.
4673 (realize_face): New parameter unibyte_registry.
4674 (compute_char_face): Handle the unibyte case.
4676 * dispextern.h (struct glyph): Add bit multibyte_p.
4677 (struct face): New member registry holding the registry and
4678 encoding of the X font of the face.
4679 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
4680 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
4681 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
4683 (struct iterator_stack_entry): Add multibyte_p.
4685 * xdisp.c (string_pos): Use string_char_to_byte.
4686 (char_charset): Removed.
4688 1998-08-03 Gerd Moellmann <gerd@gnu.org>
4690 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
4691 rectangle for a block cursor over an image without a mask.
4692 (x_stretch_block_cursor): Added. Non-zero means don't draw
4693 a block cursor over a stretch as wide as that stretch.
4694 (x_draw_stretch_glyph_string): Use it.
4695 (x_draw_hollow_cursor): Ditto.
4697 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
4698 (read_minibuf): Add front-sticky text property for prompt.
4700 * xdisp.c (char_charset): Return charset of a character,
4701 depending on whether or not multi-byte characters are enabled.
4703 * xfaces.c (Fset_face_charset_registry): Removed.
4704 (x_charset_registry): Determine registry from charset plist.
4706 1998-08-02 Gerd Moellmann <gerd@gnu.org>
4708 * xdisp.c (get_next_display_element): Don't check for charset
4709 changes if multi-byte characters are not enabled.
4711 * xdisp.c (echo_area_display): Use the flush function from the
4712 redisplay interface.
4713 * keyboard.c (detect_input_pending_run_timers): Likewise.
4715 * dispextern.h (produce_*glyphs_hook): Removed.
4716 * term.c (produce_*glyphs): Ditto.
4717 (cursor_to): Remove pixel position parameters.
4719 * dispnew.c: Remove hooks for window-based redisplay, introduce
4720 a redisplay interface structure.
4722 * xterm.c (x_per_char_metric): Return default char metrics if per
4723 char metric exists but contains a zero width. Adobe Courier seems
4724 to contain such characters.
4726 * xdisp.c (compute_line_metrics): Compute the width of rows
4727 without stopping at glyphs with zero width.
4729 1998-08-01 Gerd Moellmann <gerd@gnu.org>
4731 * xdisp.c (display_mode_line): If nothing was displayed at all,
4733 (hscroll_window_tree): Don't subtract 1 from target point if equal
4734 to ZV and window is not the selected window.
4736 * dispnew.c (check_matrix_invariants): Remove check for window
4737 start at BEGV or after newline. This happens in rare cases
4740 1998-07-31 Gerd Moellmann <gerd@gnu.org>
4742 * xfaces.c (x_charset_registry): Use STRING_BYTES.
4743 (syms_of_xfaces): Add Vface_default_registry.
4744 (x_charset_registry): Use it.
4746 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
4747 (redisplay_window): Use it.
4749 * dispnew.c (update_text_area): Handle lbearing of deleted text
4750 by backing up one character.
4752 1998-07-30 Gerd Moellmann <gerd@gnu.org>
4754 * dispnew.c (adjust_glyph_matrix): Use a different check to
4755 decide to do nothing.
4757 * xfaces.c (face_at_string_position): Additional parameter
4758 mode_line_p. If non-zero, merge with the mode line face
4759 instead of the default face.
4760 * dispextern.h (struct it): Add mode_line_p.
4761 * xdisp.c (init_iterator): Set it.
4762 (compute_face_in_string): Use it.
4763 (face_before_or_after_it_pos): Handle strings.
4764 (get_next_display_element): Don't look for relief end in C strings.
4765 (next_element_from_string): Deliver string position instead of
4768 * xterm.c (x_flush): Flush X output buffer.
4771 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
4772 Allow strings as face names.
4774 * xfns.c (forall_images_in_image_cache): Check that frame is
4777 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
4778 it's also called from x_destroy_window. Since this function is
4779 called from X, freeing stuff allocated with xmalloc is dangerous
4782 * xfaces.c (free_realized_faces): Don't clear current matrices
4783 of a frame being destroyed.
4785 * frame.c (make_frame): Call set_window_buffer instead of
4788 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
4789 with an additional argument specifying whether or not hooks may
4791 (Fset_window_buffer): Call it.
4793 * dispnew.c (clear_desired_matrices): Check that frame has
4794 a valid root window before clearing matrices in the window tree.
4795 (clear_current_matrices): Ditto.
4796 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
4797 vchild are valid windows if not nil.
4799 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
4801 (Finternal_set_lisp_face_attribute): Ditto.
4802 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
4803 (Finternal_get_lisp_face_attribute): Ditto.
4804 (Finternal_lisp_face_attribute_values): Ditto.
4805 (syms_of_xfaces): Define the symbol `:reverse-video'.
4807 * xdisp.c (get_glyph_property): Renamed from
4808 fill_iterator_from_glyph_property.
4809 (next_element_from_buffer): Handle case that no `glyph' property
4810 was found correctly.
4811 (display_line): Extend face to end of line only if we have faces.
4813 1998-07-29 Gerd Moellmann <gerd@gnu.org>
4815 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
4816 additional window argument.
4818 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
4819 set_iterator_to_previous_visible_line_start.
4820 (reseat_at_next_visible_line_start): Likewise.
4821 (compute_stop_pos): Renamed from set_iterator_stop_pos.
4822 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
4823 (compute_face_in_buffer): Renamed from
4824 compute_face_at_iterator_position.
4825 (compute_face_in_string): Renamed from
4826 compute_face_at_iterator_string_position.
4827 (get_space_width): Renamed from get_iterator_space_width.
4828 (next_overlay_string): Renamed from
4829 set_iterator_to_next_overlay_string.
4830 (get_overlay_strings): Renamed from
4831 get_overlay_strings_at_iterator_position.
4832 (restore_overlay_strings): Renamed from
4833 setup_overlay_strings_from_glyph_pos.
4834 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
4835 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
4836 (init_to_row_start): Renamed from init_iterator_to_row_start.
4837 (init_to_row_end): Formerly init_iterator_to_next_row_start.
4839 * xterm.c: Merge with 20.2.97.
4840 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
4842 * dispextern.h (struct glyph): Replace text_pos position with
4845 * xdisp.c (this_line_start_pos): Use struct text_pos.
4846 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
4847 (enum move_it_result): Renamed from move_iterator_result.
4848 (string_pos_nchars_ahead): Compute text_pos in a string from a
4849 known text_pos plus a character delta.
4850 (string_pos): Compute text_pos in string from charpos.
4851 (c_string_pos): Likewise for a C string.
4852 (number_of_chars): Return number of characters in a possibly
4853 multi-byte C string.
4854 (check_it): Renamed from check_iterator. Check that charpos and
4855 bytepos are in sync.
4856 (push_it): Renamed from save_iterator_settings.
4857 (pop_it): Renamed from restore_iterator_settings.
4858 (move_it_.*): Renamed from move_iterator_.*.
4859 (charset_at_position): Take charpos/bytepos into account.
4860 (back_to_previous_line_start): Set iterator to previous line start.
4861 (forward_to_next_line_start): Set iterator to next line start.
4862 (back_to_previous_visible_line_start): Renamed from
4863 move_iterator_previous_visible_line_start.
4864 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
4865 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
4866 Handle charpos/bytepos.
4867 (compute_face_at_iterator_position): Handle charpos/bytepos.
4868 (compute_face_at_iterator_string_position): Likewise.
4869 (get_iterator_space_width): Likewise.
4870 (load_overlay_strings): Likewise.
4871 (get_overlay_strings_at_iterator_position): Likewise.
4872 (reseat_iterator): Take a text_pos position argument.
4873 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
4875 (init_iterator): Take additional bytepos parameter.
4876 (reseat_iterator_to_string): Handle charpos/bytepos.
4877 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
4878 (next_element_from_string): Handle charpos/bytepos.
4879 (next_element_from_c_string): Likewise.
4880 (fill_iterator_from_glyph_property): Likewise.
4881 (next_element_from_buffer): Likewise.
4882 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
4883 (move_iterator_in_display_line_to): Handle charpos/bytepos.
4884 (move_it_to): Likewise.
4885 (move_it_vertically_backward): Likewise.
4886 (move_it_vertically): Likewise.
4887 (move_it_by_lines): Likewise.
4888 (hscroll_window_tree): Likewise.
4889 (redisplay_internal): Likewise.
4890 (set_cursor_from_row): Likewise.
4891 (redisplay_window): Likewise.
4892 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
4893 (try_window_reusing_current_matrix): Handle charpos/bytepos.
4894 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
4895 (try_window_id): Handle charpos/bytepos.
4896 (Ftrace_redisplay_toggle): Return Qnil.
4897 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
4898 (insert_left_trunc_glyphs): Likewise.
4900 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
4902 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
4903 (increment_glyph_row_buffer_positions): Ditto.
4904 (copy_glyph_row_contents): Ditto.
4905 (check_matrix_invariants): Add additional checks for charpos/
4906 bytepos consistency.
4907 (direct_output_for_insert): Changed for charpos/bytepos.
4908 (buffer_posn_from_coords): Likewise. Put code dealing with
4909 `direction-reversed' in #if 0.
4911 * xterm.h: Merge with 20.2.97.
4913 * frame.h: Merge with 20.2.97.
4915 * window.h: Merge with 20.2.97. Add window_end_bytepos.
4917 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
4919 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
4920 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
4921 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
4922 (struct it): Various members renamed from .*pos to .*charpos.
4923 (IT_CHARPOS): Access current buffer character position of an
4925 (IT_BYTEPOS): Access current buffer byte position of an iterator.
4926 (IT_STRING_CHARPOS): Access current string character position of
4928 (IT_STRING_BYTEPOS): Access current string byte position of
4930 (globally): Add function prototypes from 20.2.97.
4932 * everywhere: Use P_ instead of PROTO for function prototypes
4933 because everyone else seems to use P_.
4935 * dispextern.h (struct text_pos): Structure describing a charpos/
4936 bytepos position in text.
4937 (BYTEPOS): Access the byte position part of a text_pos.
4938 (CHARPOS): Likewise for the character position.
4939 (SET_TEXT_POS): Set a text_pos from a character and byte position.
4940 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
4941 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
4942 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
4943 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
4944 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
4945 for buffer and string positions.
4946 (struct glyph): Use text_pos.
4947 (struct it): Renamed from display_iterator. Use text_pos.
4949 1998-07-23 Gerd Moellmann <gerd@gnu.org>
4951 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
4954 1998-07-21 Gerd Moellmann <gerd@gnu.org>
4956 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
4957 * xterm.c (x_draw_row_bitmaps): Use it.
4958 * dispnew.c (row_equal_p): Ditto.
4959 (update_window_line): Ditto.
4961 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
4964 * dispextern.h (struct image): Removed member loading_failed_p.
4965 It's probably better to have the chance to try to load an image
4968 1998-07-20 Gerd Moellmann <gerd@gnu.org>
4970 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
4971 at ZV if `indicate-zv-lines' is non-nil.
4972 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
4974 * dispnew.c (row_equal_p): Compare displays_text_p and
4975 ends_at_zv_p flags of rows.
4976 (update_window_line): Ditto.
4978 * buffer.h (struct buffer): New member indicate_zv_lines.
4980 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
4981 (init_buffer_once): New variable `default-indicate-zv-lines'.
4982 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
4984 * xdisp.c (redisplay_window): Don't try moving the cursor
4985 if current glyph row w->last_cursor.vpos isn't enabled.
4987 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
4989 * window.c (Fset_window_vscroll): Allow only negative scroll
4990 values. Others don't seem to make sense, and this way it's easy
4991 to restore a vscroll of zero.
4993 * xterm.c (x_inverted_image_mask): Check that pixmap could be
4995 (x_draw_image_glyph_string_background): Don't clip if pixmap
4996 could not be created.
4998 * xfns.c (xbm_load_image_from_file): Check that pixmap could
5003 * xterm.c (x_get_glyph_overhangs): Take image and stretch
5004 glyphs into account.
5006 * xfaces.c (realize_default_face): Don't set font family of
5007 the default face from the fontset alias name for `fontset-startup'.
5009 * xfns.c (gs_load): Pass frame's pixel foreground and background
5010 color to the Lisp loader.
5012 1998-07-19 Gerd Moellmann <gerd@gnu.org>
5014 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
5017 * configure.in (--with-tiff, HAVE_TIFF): Added.
5019 * config.in (HAVE_TIFF): Added.
5021 * Makefile.in (LIBTIFF): Added.
5023 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
5025 * Makefile.in (LIBJPEG): Added.
5027 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
5028 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
5031 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
5032 where the library is installed in /usr/local/lib, e.g. FreeBSD,
5033 configure must be run with `--x-includes=/usr/X11R6/include:
5034 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
5036 1998-07-18 Gerd Moellmann <gerd@gnu.org>
5038 * config.in (HAVE_JPEG): Added.
5040 * xfns.c (ct_init): Initialize color table used to map RGB colors
5041 from images to X pixel colors.
5042 (ct_free): Free color table.
5043 (ct_lookup): Look an RGB color up.
5044 (ct_allocated_colors): Get vector of allocated colors.
5045 (pbm_image_p): Test if image specification is a valid PPM
5046 image specification.
5047 (pbm_scan_number): Scan a decimal ASCII number from a file.
5048 (pbm_load): Load a PPM image.
5050 * window.c (Fset_window_vscroll): Adjust glyph matrix if
5051 necessary. Take canonical character units as parameter.
5052 (Fwindow_vscroll): Return canonical character units.
5054 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
5055 w->dy to display height for which glyph rows must be allocated.
5057 1998-07-17 Gerd Moellmann <gerd@gnu.org>
5059 * xfaces.c (face_at_string_position): Merge in region face
5060 so that it won't overwrite the font in the region.
5061 (face_at_buffer_position): Ditto.
5062 (realize_basic_faces): Don't realize region face.
5064 * dispextern.h (enum face_id): REGION_FACE_ID removed.
5066 * xterm.c (x_set_glyph_string_background_width): Don't let
5067 cursor face extend to end of line.
5069 * xdisp.c (append_space): If adding space of default face,
5070 make sure glyph ist produced with right face.
5072 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
5073 background color of a glyph string.
5074 (x_draw_glyph_string_background): Call it.
5075 (x_draw_glyph_string_bg_rect): Ditto.
5076 (x_draw_stretch_glyph_string): Ditto.
5078 1998-07-15 Gerd Moellmann <gerd@gnu.org>
5080 * xdisp.c (init_iterator): Initialize it->current_y to the
5081 window's vscroll w->dy.
5083 * window.c (Fwindow_vscroll): Return number of pixels window
5084 is vscrolled smoothly.
5085 (Fset_window_vscroll): Set the number.
5087 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
5088 to_pos in truncated part of a line.
5090 1998-07-14 Gerd Moellmann <gerd@gnu.org>
5092 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
5093 doesn't fit on the line, truncate it, despite truncate_lines nil.
5094 (display_line): Ditto.
5096 * xfns.c: Experimental support for Ghostscript images.
5098 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
5099 (XTread_socket): React on events from Ghostscript.
5100 (expose_frame): If width or height are zero, redraw entire frame.
5101 (XTread_socket): Call expose_frame after receiving event from
5104 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
5105 for Ghostscript support.
5107 * xdisp.c (redisplay_internal): Return quickly if called
5110 * alloc.c (NSTATICS): Increased to 1024.
5112 1998-07-08 Gerd Moellmann <gerd@gnu.org>
5114 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
5115 iterator's glyph row.
5116 (x_produce_stretch_glyph): Call it.
5117 (x_produce_glyphs): Handle `space-width' property; call
5118 x_append_stretch_glyph.
5120 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
5122 (get_iterator_space_width): Determine value of `space-width'
5123 property at iterator's position.
5124 (reseat_iterator): Call it.
5125 (next_element_from_string): Ditto.
5126 (next_element_from_buffer): Ditto.
5127 (init_iterator): Initialize space_width of iterator.
5128 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
5129 moved, but cursor blinks.
5130 (redisplay_internal): Set w->last_cursor_off_p after update.
5132 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
5133 (struct display_iterator): Add new member space_width.
5135 * window.h (struct window): Add last_cursor_off_p.
5137 1998-07-07 Gerd Moellmann <gerd@gnu.org>
5141 * window.c (Fpos_visible_in_window_p): Case window not up to
5142 date---return nil if iterator hasn't reached position.
5144 1998-07-06 Gerd Moellmann <gerd@gnu.org>
5146 * xdisp.c (text_outside_line_unchanged_p): Fix case that
5147 overlays have changed.
5148 (redisplay_window): Case cursor movement. Don't try it if
5149 last_cursor.vpos is out of range.
5151 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
5152 way, the display optimization for the line containing the cursor
5153 is used more frequently, esp. when we have a blinking cursor.
5154 (display_line): Don't set this_line_.* variables.
5156 * xterm.c (x_redraw_cursor): Removed.
5157 (x_display_and_set_cursor): Set cursor type depending on
5158 cursor_off_p flag of window.
5160 * dispnew.c (redraw_cursor_hook): Removed.
5161 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
5162 member of the selected window.
5164 * xfaces.c (Fface_font): Added for compatibility with 20.2.
5166 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
5167 Return glyph area under x/y.
5168 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
5170 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
5173 1998-07-05 Gerd Moellmann <gerd@gnu.org>
5175 * xdisp.c (text_outside_line_unchanged_p): Test if changes
5176 are all outside of a line of text.
5177 (redisplay_internal): Use it.
5179 1998-06-30 Gerd Moellmann <gerd@gnu.org>
5181 * xdisp.c (next_element_from_buffer): After skipping over
5182 invisible text, look for the `glyph' property.
5183 (set_iterator_stop_pos): Ignore check positions in front
5184 of an iterator's current position.
5186 * xterm.c (show_mouse_face): Don't act on rows that don't exist
5187 anymore or which are marked as not having valid contents.
5189 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
5190 realized faces if new attribute value is equal to old value.
5192 1998-06-29 Gerd Moellmann <gerd@gnu.org>
5194 * xfaces.c (Finternal_make_lisp_face): Increment
5195 lface_id_to_name_size when lface_id_to_name is reallocated.
5197 1998-06-27 Gerd Moellmann <gerd@gnu.org>
5199 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
5200 as minimum of endpos and overlay_pos.
5201 (load_overlay_strings): Set next_overlay_pos of iterator to
5202 -1 if we don't have to check for more overlay strings.
5204 1998-05-09 Gerd Moellmann <gerd@gnu.org>
5206 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
5207 do anything if iterator is at ZV because scan_buffer doesn't
5210 * xterm.c (x_encode_char): Inline it.
5211 (x_get_char_font_and_encoding): Simplified.
5212 (x_per_char_metric): Inline it.
5214 * xterm.c (x_draw_glyph_string_relief): Use clipping.
5216 * xdisp.c (get_next_display_element): Check for end of relief
5217 face moved here from next_element_from_buffer.
5219 * xterm.c (x_produce_image_glyph): Add relief thickness.
5220 (x_produce_stretch_glyph): Ditto.
5222 1998-05-08 Gerd Moellmann <gerd@gnu.org>
5224 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
5225 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
5227 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
5228 from a glyph property.
5229 (x_produce_glyphs): Use it.
5231 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
5233 * xterm.c (x_produce_image_glyph): Add to current_x only if
5235 (x_produce_glyphs): Ditto.
5237 * xdisp.c (display_line): Compute row height from glyphs in
5240 * xterm.c (x_draw_image_glyph_string_background): Draw
5241 background of an image glyph string.
5242 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
5243 the background of a glyph string.
5244 (x_draw_image_glyph_string_foreground): Draw the foreground of
5245 an image glyph string.
5246 (x_inverted_image_mask): Return the inverted mask of an image.
5248 * xfns.c (x_draw_image): Removed.
5250 * dispextern.h (struct image_type): Remove drawing function.
5252 * xfaces.c (load_face_colors): Swap colors if face is inverse.
5254 * xdisp.c (get_next_display_element): In marginal areas, translate
5255 newlines, tabs, etc. like normal control characters.
5257 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
5259 (free_realized_faces): Set frame garbaged.
5261 * xfaces.c (syms_of_xfaces): Add defsubr for
5262 internal-lisp-face-attribute-values.
5264 1998-05-07 Gerd Moellmann <gerd@gnu.org>
5266 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
5268 (x_produce_image_glyph): Set IT->nglyphs to 1.
5269 (x_draw_image_glyph_string): Use inverted mask to draw background.
5271 * dispextern.h (struct image_type): Additional clipping rect
5272 parameters for drawing functions.
5274 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
5276 (x_draw_image_glyph_string): Use it and pass the rect to the
5277 image drawing function.
5279 * xdisp.c (fill_iterator_from_glyph_property): Use position of
5280 first character with `glyph' property as image position. Set
5281 iterator back to that position as long as the image hasn't been
5282 consumed with set_iterator_to_next.
5283 (set_cursor_from_row): Accept when glyph with given position is
5284 not found in the row. Set cursor x to end of line in that case,
5285 so that we can hscroll.
5286 (redisplay_internal): Correct computation of delta by which
5287 positions have changed in redisplay optimization for cursor
5288 row of selected window.
5290 * xdisp.c (display_line): Remove start_pos.
5291 (display_line): Fix bug preventing display optimization for
5292 cursor line of selected window.
5293 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
5296 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
5297 (update_text_area): Take glyph pixel width into account
5298 when trying to find a resync point.
5299 (row_equal_p): Compare glyphs in all areas.
5301 1998-05-06 Gerd Moellmann <gerd@gnu.org>
5303 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
5305 * dispextern.h (struct glyph_row): Use unsigned hash value.
5307 * xdisp.c (display_line): Simplified and made faster by setting
5308 the cursor with set_cursor_from_row.
5309 (set_cursor_from_row): Handle rows of desired matrix.
5311 1998-05-05 Gerd Moellmann <gerd@gnu.org>
5313 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
5314 with type != CHAR_GLYPH.
5315 (fill_iterator_from_glyph_property): Return void. Set
5316 method to next_element_from_image.
5317 (next_element_from_image): Dummy function for delivering a
5319 (set_iterator_to_next): Add method next_element_from_image.
5320 (redisplay_window): When recentering, and cursor vpos is -1
5321 after display, assume middle of window is in first line displayed
5322 in window, and display again.
5323 (fill_iterator_from_glyph_property): Assign image glyph
5324 the position of the first character having the glyph property.
5326 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
5327 * xfns.c (x_draw_image): Use it.
5328 * xterm.c (x_produce_image_glyph): Use it.
5330 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
5332 * Makefile.in: Extraneous #define of LIBXPM removed.
5334 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
5335 (x_fill_stretch_glyph_string): Fill a glyph string from a
5337 (x_compute_glyph_string_overhangs): Compute overhangs only
5338 for text glyph strings.
5339 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
5340 (x_draw_glyph_string): Call it.
5342 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
5343 (struct glyph): Add sub-structure for stretchable glyphs.
5344 (GLYPH_EQUAL_P): Compare glyph type and u.val.
5346 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
5349 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
5351 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
5352 setup_iterator_from_glyph_property. Don't do it for terminal
5355 * xterm.c (x_produce_image_glyph): Produce glyph for image
5356 that can't be loaded.
5358 * xfns.c (lookup_image): If image can't be loaded, set its
5359 width and height so that we can draw a rectangle.
5360 (x_draw_image): Draw a rectangle for images that don't have
5362 (make_image): Set hash value.
5363 (image_spec_equal_p): Use image_spec_value.
5365 * xterm.c (expose_frame): Don't try to redraw if basic faces
5366 haven't benn realized yet.
5367 (x_draw_image_glyph_string): Fill background only if image
5368 is not as tall as row.
5370 1998-05-04 Gerd Moellmann <gerd@gnu.org>
5372 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
5373 (LIBX)[HAVE_X11]: Add LIBXPM.
5375 * xfns.c (xpm_image_p): Implementation of image type functions
5379 * dispextern.h (struct image): Add mask pixmap for XPM.
5381 * xfns.c (x_draw_image): Handle images with masks.
5383 * configure.in: --with-xpm added. Code detecting -lXpm added.
5385 * config.in: Add HAVE_XPM.
5387 * xfns.c (xbm_draw): Removed.
5388 (x_draw_image): Default implementation for drawing images.
5389 (xbm_keyword_index): Remove XBM_DEPTH.
5390 (xbm_format): Remove `:depth'.
5391 (xbm_image_spec_from_file): Removed to reduce consing.
5392 (xbm_load_image_from_file): Added for the same reason.
5394 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
5396 (x_draw_image_glyph_string): Pass ybase to image draw function.
5398 * xfns.c (make_image): Set default baseline.
5400 * xterm.c (x_produce_image_glyph): Compute ascent of image
5401 from its height and baseline percentage.
5403 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
5404 (xbm_format): Add description for `:baseline'.
5405 (xbm_image_spec_from_file): Add keywords from original spec to
5407 (xbm_load): Set baseline of image.
5408 (xbm_image_p): Check range for baseline.
5410 * dispextern.h (struct image): Add member baseline.
5412 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
5414 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
5416 * xdisp.c (get_next_display_element): Do character translations
5417 only if delivering characters.
5419 1998-05-03 Gerd Moellmann <gerd@gnu.org>
5421 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
5424 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
5425 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
5427 1998-05-02 Gerd Moellmann <gerd@gnu.org>
5429 * xfns.c (prepare_image_for_display): Set image timestamp.
5430 (clear_image_cache): Clear images if image's timestamp +
5431 Vimage_eviction_seconds is > now.
5432 (syms_of_xfns): New variables image-eviction-seconds, and
5434 (add_image_format): Add to image-types.
5435 (xbm_load): Support new image spec format.
5436 (x_alloc_image_color): Allocate a color for an image.
5438 * dispextern.h (struct image): Add timestamp.
5440 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
5441 vectors of bool-vectors.
5442 (xbm_lisp_object_from_file): Build new format image spec.
5444 1998-05-01 Gerd Moellmann <gerd@gnu.org>
5446 * xfaces.c (init_frame_faces): Initialize image cache.
5447 (free_frame_faces): Free it.
5449 * xterm.c (x_delete_display): Don't free image cache.
5451 * emacs.c (main): Call init_xfns.
5453 1998-04-30 Gerd Moellmann <gerd@gnu.org>
5455 * alloc.c (mark_object): Mark objects in image cache.
5457 * xfns.c (x_set_internal_border_width): Correct call to
5458 widget_store_internal_border_width.
5460 * widget.c (widget_store_internal_border): Return void.
5462 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
5464 (init_x_parm_symbols): Return void.
5465 (x_report_frame_params): Ditto.
5466 (x_set_border_pixel): Ditto.
5467 (syms_of_xfns): Ditto.
5468 (x_destroy_all_bitmaps): Use xfree instead of free.
5470 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
5472 * xterm.c (x_term_init): Initialize image_cache of display info.
5473 (x_delete_display): Free image cache.
5475 * xterm.h (struct x_display_info): Add image_cache.
5477 * xfns.c (make_image_cache): Allocate a new image cache.
5478 (free_image_cache): Free an image cache.
5479 (make_image): Allocate an image.
5480 (free_image): Free an image.
5482 * dispextern.h (struct image): Structure describing an image.
5483 (struct image_cache): Structure describing an image cache.
5485 1998-04-29 Gerd Moellmann <gerd@gnu.org>
5487 * xdisp.c (check_iterator_glyph_property): Return int. Value is
5488 non-zero if iterator is filled with something to return.
5489 (next_element_from_buffer): Immediately return if
5490 setup_iterator_from_glyph_prop has filled iterator with pixmap.
5491 (next_element_from_string): Likewise.
5493 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
5495 * dispextern.h (struct glyph): Add pixmap_id.
5496 (display_element_type): Add DISP_PIXMAP.
5498 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
5501 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
5502 (clear_face_cache): Call it.
5504 * xterm.c (x_query_font): Don't look at empty font table slots.
5505 (x_compute_min_glyph_bounds): Likewise.
5506 (x_term_init): Initialize font_table to null.
5507 (x_load_font): Change allocation of font_info structures so
5508 that it is possible to free fonts.
5510 * xfns.c (Fx_close_connection): Use xfree instead of free.
5511 Only free fonts from filled font table entries.
5513 * xfaces.c (best_matching_font): Support use of scalable fonts.
5514 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
5516 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
5518 * xterm.c (x_term_init): Compute resx and resy.
5520 * xfaces.c (split_font_name): Don't reject scalable fonts.
5522 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
5525 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
5526 point size cannot be determined.
5528 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
5529 width over all fonts on a frame.
5530 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
5531 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
5534 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
5535 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
5536 (x_load_font): Use x_compute_min_char_bounds.
5538 * xterm.h (struct x_display_info): New members smallest_char_width
5539 and smallest_font_height.
5541 1998-04-28 Gerd Moellmann <gerd@gnu.org>
5543 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
5544 the same name if GC of face is zero.
5546 * dispextern.h (struct face): Member non_ascii_gc removed.
5548 * xterm.c (x_get_char_font_and_encoding): Return face's font
5549 for characters < 0177 in default face. Prepare face for
5550 display before returning it.
5551 (x_produce_glyphs): Use it->charset.
5552 (x_get_char_font_and_encoding): Simplified.
5553 (x_encode_char): Remove parameter `font'.
5555 * xfaces.c (choose_face_font): If registry from charset symbol
5556 doesn't contain a `-', make it a pattern by appending "*-*".
5558 * xdisp.c (check_iterator_glyph_property): Adjust limit for
5559 glyph_check_pos computation to character boundary.
5561 1998-04-27 Gerd Moellmann <gerd@gnu.org>
5563 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
5565 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
5566 ASCII face for a given Lisp face id.
5568 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
5570 (reseat_iterator): Set glyph_check_pos. Handle case where
5571 new position is < original position.
5572 (check_iterator_glyph_property): Handle glyph property in strings.
5573 (next_element_from_string): Call above function.
5574 (next_element_from_display_vector): Handle faces in glyphs.
5575 (get_next_display_element): Set face_id of glyphs for
5576 control chars to zero.
5578 * Makefile.in (term.o): Add dependency on dispextern.h.
5580 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
5581 (display_line): Handle marginal areas.
5582 (move_iterator_in_display_line_to): Likewise.
5584 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
5586 * xfaces.c (face_at_buffer_position): Don't merge with nil
5588 (face_at_string_position): Ditto.
5590 * dispextern.h (struct display_iterator): Use a stack of saved
5591 values instead of saving check positions etc. individually.
5593 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
5594 maybe pop the iterator's stack.
5595 (save_iterator_settings): Push a value on iterator's stack.
5596 (get_overlay_strings_at_iterator_position): Use it.
5597 (restore_iterator_settings): Pop the stack.
5598 (set_iterator_to_next_overlay_string): Use it.
5600 * xfaces.c (try_font_list): Use alternative font families.
5602 1998-04-26 Gerd Moellmann <gerd@gnu.org>
5604 * xfaces.c (Fset_face_font_sort_order): Set the order in which
5605 font selection matches fonts.
5606 (Fface_font_sort_order): Return the font sort order.
5607 (best_matching_font): Find best matching font based on sort order.
5608 (cmp_font_names): Sort by given sort order.
5610 * dispextern.h (struct display_iterator): New member faces_p.
5611 * xdisp.c (init_iterator): Initialize it->faces_p.
5612 (compute_face_at_iterator_string_position): Use it.
5613 (compute_face_at_iterator_position): Use it.
5614 (init_iterator): Use it.
5615 (display_mode_line): Ditto.
5617 * xdisp.c (get_next_display_element): Put code choosing a face
5618 when the charset changes in #ifdef HAVE_FACES.
5620 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
5621 lookup_face_for_charset.
5623 * xfaces.c (free_font_names): Renamed from free_split_font_names.
5624 (free_all_realized_faces): Renamed from remove_all_realized_faces.
5626 1998-04-25 Gerd Moellmann <gerd@gnu.org>
5628 * xfaces.c (best_matching_font): Return the name of the best
5629 matching font in an array of font_name structures.
5630 (choose_face_font): Use it.
5631 (choose_face_fontset_font): Use it.
5632 (find_best_weight_font): If final font found has same weight as
5633 the font we started with, return the original font because it is a
5634 better match for the resolution of the display.
5635 (find_best_slant_font): Likewise.
5636 (merge_face_vector_with_property): Check more invalid attribute
5638 (lface_suitable_for_charset_p): Replaced by a macro with the same
5641 1998-04-24 Gerd Moellmann <gerd@gnu.org>
5643 * dispextern.h (struct face): Member
5644 fontset_chosen_for_realization_p removed.
5646 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
5647 end of the collision list, so that we find more specific faces
5649 (lookup_face_for_charset): Look up a new face if face->fontset >=
5650 0, and charset != CHARSET_COMPOSITION.
5652 * xfaces.c (split_font_name): Return zero if point size of font
5653 couldn't be computed.
5654 (realize_default_face): Use ASCII font of a fontset to determine
5655 font-related attributes of the default face.
5656 (face_fontset): Return fontset id for face family.
5657 (font_list): Additional parameter font_pattern. If non-nil,
5658 return fonts matching that pattern.
5660 1998-04-23 Gerd Moellmann <gerd@gnu.org>
5662 * xfaces.c (choose_face_fontset): If new fontset cannot be
5663 constructed, or fontset name cannot be split, return the id of the
5666 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
5667 When Emacs starts, it may be called for the initial frame which
5670 * dispextern.h (struct face): New members foreground_defaulted_p,
5671 background_defaulted_p.
5672 (struct face): Members `mask' and `cache' removed.
5674 * xfaces.c (load_color): Set them.
5675 (free_face_colors): Check them.
5676 (xlfd_point_size): Return -1 if resolution or point size of
5679 * xfaces.c (free_font): Removed.
5680 (load_face_font_or_fontset): Renamed from load_font.
5681 (load_face_font_or_fontset): Use message2 instead of signalling.
5682 (load_color): Likewise.
5683 (load_pixmap): Likewise.
5685 * xterm.h (struct x_display_info): Add screen_dpi.
5686 * xterm.c (x_term_init): Initialize it.
5687 * xfaces.c (xlfd_point_size): Use it.
5688 (split_font_name): Compute numeric XLFD_RESY.
5689 (cmp_font_names): Make fonts with an y-resolution more
5690 similar to that of the frame appear first in the result.
5692 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
5693 is set for the face to cache, add it to the end of the collision
5695 (try_font_list): If fonts for given family and registry cannot
5696 be found, first try to keep the registry, and choose a different
5698 (choose_face_font): Allow nfonts == 0.
5699 (try_font_list): Give up if no font matches given registry.
5701 1998-04-22 Gerd Moellmann <gerd@gnu.org>
5703 * xterm.c (x_get_char_font_and_encoding): Get font_info from
5704 font info id of the face.
5706 * xfaces.c (load_font): Set font_info_id.
5707 (realize_face): Ditto.
5709 * dispextern.h (struct face): Change member font_info to
5712 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
5713 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
5715 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
5716 isn't ASCII, get the ASCII face before adding a space.
5717 (append_space): Likewise.
5718 (insert_left_trunc_glyphs): Initialize truncate_it's charset
5719 to -1 so that it will compute the right face for the truncation
5722 * xfaces.c (realize_face): Set
5723 face->fontset_chosen_for_realization_p.
5724 (lookup_face_for_charset): If fontset wasn't specified originally
5725 and new charset != CHARSET_COMPOSITION, get a new face for that
5728 * dispextern.h (struct face): New member
5729 fontset_chosen_for_realization_p_specified_p. Set to 1 when
5730 realize_face has chosen a fontset to display composite characters
5731 for a Lisp face not specifying a fontset.
5733 * xdisp.c (extend_face_to_end_of_line): Move tests for default
5734 face and line already filled here. Don't do anything if current
5735 face hasn't a relief or has a background equal to the frame
5738 * xfaces.c (split_font_name): Additional parameter numeric_p.
5739 Don't compute numeric values if it is non-zero.
5740 (choose_face_fontset): Call split_font_name with numeric_p == 0.
5741 (choose_face_fontset): Print a message if fontset contains a
5742 font whose name cannot be split into fields.
5744 1998-04-21 Gerd Moellmann <gerd@gnu.org>
5746 * xfaces.c (try_font_list): Try to load a list of fonts,
5747 possibly using less restrictive patterns.
5748 (choose_face_font): Use it.
5750 * xterm.c (x_get_char_font_and_encoding): For charset !=
5751 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
5753 * dispextern.h (struct face): New member font_info.
5755 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
5756 specifying a fontset as well as those not having a fontset.
5757 (free_font): Make it empty.
5758 (realize_face): Use changed load_font.
5760 * xterm.c (x_get_char_font_and_encoding): If face doesn't
5761 fit for charset, get the right one.
5763 * xfaces.c (load_font): Take frame and name parameter, return
5765 (free_font): Likewise.
5766 (split_font_name): Compute numeric values for height, swidth etc.
5767 (cmp_font_names): Use them.
5768 (find_best_width_font): Ditto.
5769 (find_best_height_font): Ditto.
5770 (find_best_weight_font): Ditto.
5771 (find_best_slant_font): Ditto.
5772 (lface_hash): Add weight, slant, swidth and relief to hash value.
5773 (lface_equal_p): Make it faster.
5774 (lface_from_symbol): Use assq_no_quit.
5775 (Fnote_default_face_changed): Removed.
5776 (cmp_font_names): Use strcmp instead of xstricmp.
5777 (face_charset_registries): Removed.
5779 1998-04-20 Gerd Moellmann <gerd@gnu.org>
5781 * frame.h (CHECK_FRAME): Give this macro a statement form.
5782 (CHECK_LIVE_FRAME): Ditto.
5784 * xfaces.c (find_best_width_font): Find the best matching font
5786 (find_best_height_font): Likewise for height.
5787 (find_best_weight_font): Likewise for weight.
5788 (find_best_slant_font): Likewise for slant.
5789 (choose_face_font): Use them.
5790 (get_lface_attributes): Always return frame-local face attrs.
5791 (Finternal_merge_in_global_face): Merge local face with
5792 global face attributes.
5794 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
5795 Lisp face attributes.
5797 1998-04-19 Gerd Moellmann <gerd@gnu.org>
5799 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
5800 and :italic for compatibility.
5801 (Finternal_set_lisp_face_attribute_from_resource): Handle
5802 :bold and :italic. Handle boolean resource values for
5803 :underline and :italic.
5805 * xfns.c (display_x_get_resource): Make it externally visible.
5807 * xfaces.c (lface_from_symbol): Take a frame as parameter.
5808 If that frame is non-null, return the frame-local face.
5809 (Finternal_make_lisp_face): Additional frame argument.
5810 (lface_attributes): Get face attributes from global and frame-local
5812 (Finternal_lisp_face_equal_p): Additional frame argument.
5813 (merge_lisp_face_vector_with_property): Ditto.
5814 (Frealize_basic_faces): Removed.
5815 (Finternal_get_lisp_face_attribute): Additional frame argument.
5816 (Finternal_lisp_face_p): Ditto.
5817 (load_color) [MSDOS]: Removed because it isn't clear how
5818 to do this for MS-DOS.
5820 * xfaces.c (lface_from_symbol): Get global face definition
5821 from face-global-alist.
5823 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
5824 as values for :underline and :inverse-video.
5825 (Finternal_set_lisp_face_attribute): Allow nil values.
5827 1998-04-17 Gerd Moellmann <gerd@gnu.org>
5829 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
5831 * xfaces.c (syms_of_xfaces): Add Vall_faces.
5832 (Finternal_make_lisp_face): Add new face to Vall_faces.
5834 * xdisp.c (echo_area_display): Remove code recomputing faces.
5835 (redisplay_internal): Ditto.
5836 (init_iterator): Do it here.
5838 * xfaces.c (choose_face_font): Check that swidth doesn't change
5839 for subusequent attributes.
5840 (xlfd_point_size): Return int.
5842 * xdisp.c (redisplay_internal, echo_area-display): If realized
5843 faces have been cleared, call recompute_basic_faces.
5845 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
5846 face_attributes_changed_p.
5847 (remove_all_realized_faces): Remove all realized faces on
5849 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
5851 * xdisp.c (redisplay_internal): If face attributes have been
5852 changed since the last redisplay, recompute basic faces.
5853 (echo_area_display): Ditto.
5855 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
5857 * xfaces.c (min_char_bounds): If face cache not yet present,
5858 don't try to get font dimensions from faces.
5860 * xterm.c (x_frame_mode_line_height): If face cache not present
5861 set, return default height.
5863 * alloc.c (mark_face_cache): Check for null faces. Correct
5866 * dispextern.h (struct face): Renamed from struct rface. Member
5867 underline renamed underline_p. Make it a bit-field.
5869 * xfaces.c (init_frame_faces): Allocate face cache.
5870 (free_frame_faces): Free face cache.
5871 (recompute_basic_faces): Realize basic faces only if face cache is
5872 allocated, i.e. after init_frame_faces has been called.
5874 * frame.c (make_frame): Initialze face cache with null.
5876 * xfaces.c (same_size_fonts): Removed.
5878 * xterm.c (x_set_glyph_string_gc): Add post-condition
5880 (x_set_mouse_face_gc): Ditto.
5881 (x_set_mode_line_face_gc): Ditto.
5883 * xfaces.c (realize_default_face): Return int. Value is
5884 zero if frame params don't contain enough information to
5885 realize the default face.
5886 (realize_basic_faces): Ditto.
5887 (init_frame_faces): Realize basic faces.
5889 * xfns.c (x_set_font): First store real font name in frame
5890 parameters, then call recompute_basic_faces.
5892 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
5894 1998-04-16 Gerd Moellmann <gerd@gnu.org>
5896 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
5898 * xfns.c (Fx_face_fixed_p): Removed.
5899 (Fx_list_fonts): Moved to xfaces.c.
5901 * xfaces.c (compute_face_at_buffer_pos): Renamed to
5902 face_at_buffer_position. Parameter charset removed; always
5903 compute face for CHARSET_ASCII.
5904 (face_at_string_position): Renamed from
5905 compute_face_at_string_pos. Parameter charset removed; always
5906 compute for CHARSET_ASCII.
5907 (lookup_face_for_charset): Take frame parameter instead of
5909 (lookup_face): Ditto.
5910 (compute_char_face): Renamed from compute_glyph_face.
5912 * xdisp.c (init_iterator): Initialize charset member.
5913 (reseat_iterator_to_string): Ditto.
5914 (get_charset_at_buffer_position): Determine charset at
5915 buffer position in current_buffer.
5916 (reseat_iterator): Call above function.
5917 (compute_face_at_iterator_position): Call
5918 compute_face_at_buffer_pos.
5919 (compute_face_at_iterator_string_position): Call
5920 compute_face_at_string_pos.
5921 (get_face_from_id): Removed.
5922 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
5923 Call get_charset_at_buffer_position.
5924 (reseat_iterator): Determine face if charset at pos differs
5925 from iterator's charset.
5926 (reseat_iterator_to_glyph_pos): Removed.
5928 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
5929 Determine charset from buffer position.
5930 (compute_string_char_face): Renamed to compute_face_at_string_pos.
5931 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
5933 * dispextern.h (struct display_iterator): Add member charset.
5935 1998-04-15 Gerd Moellmann <gerd@gnu.org>
5937 * xfaces.c (compute_char_face): Removed.
5939 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
5940 with new parameter list.
5942 * xfaces.c (region_face): Removed.
5943 (allocate_face): Removed.
5945 (face_eql): Removed.
5946 (intern_face): Removed.
5947 (clear_face_cache): Removed.
5949 (unload_font): Ditto.
5950 (load_color): Ditto.
5951 (unload_color): Ditto.
5952 (new_computed_face): Ditto.
5953 (intern_computed_face): Ditto.
5954 (ensure_face_ready): Ditto.
5955 (merge_faces): Ditto.
5956 (compute_base_face): Ditto.
5957 (merge_face_list): Ditto.
5958 (Fmake_face_internal): Removed.
5959 (Fset_face_attribute_internal): Ditto.
5960 (face_name_id_number): Removed.
5961 (Fframe_face_alist): Ditto.
5962 (Fset_frame_face_alist): Ditto.
5963 (Finternal_next_face_id): Ditto.
5965 * xterm.h (struct x_output): Remove computed_faces, and
5966 param_faces. Remove macros accessing them.
5968 * xfaces.c: Entirely new face implementation added.
5970 1998-04-11 Gerd Moellmann <gerd@gnu.org>
5972 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
5975 1998-04-10 Gerd Moellmann <gerd@gnu.org>
5977 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
5978 scroll bar window to reduce flickering. Clear entire height.
5980 * xdisp.c (move_iterator_vertically_backward): Set iterator's
5981 current_x and hpos to zero after moving to previous line
5984 1998-04-03 Gerd Moellmann <gerd@gnu.org>
5986 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
5988 * xfaces.c (xlfd_point_size): Compute relative point size of
5989 fonts from font and frame resolution.
5990 (sort_fonts): New function to sort fonts, temporarily setting
5991 font_frame to the frame in effect.
5992 (xlfd_point_size): Take additional frame parameter to be able
5993 to get at the display's resolution.
5995 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
5997 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
6000 1998-03-31 Gerd Moellmann <gerd@gnu.org>
6002 * xfaces.c (choose_face_fontset): Instantiate fontsets.
6004 * fontset.h: Add external declarations for Vfontset_alias_alist
6005 and Vglobal_fontset_alist.
6007 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
6008 (realize_default_face): If frame parameters contain an artificial
6009 font name naming a fontset, set the family of the default face to
6010 the fontset name given by the registry.
6012 * Makefile.in (alloc.o): Add dependency to dispextern.h.
6014 1998-03-22 Gerd Moellmann <gerd@gnu.org>
6016 * alloc.c (mark_object): Add function prototype. Add cast to
6017 Lisp_Object pointer in call to mark_object for symbol names
6018 because this otherwise gives a warning from gcc 2.8.1.
6019 (mark_face_cache): Mark Lisp objects in realized faces.
6021 1998-03-19 Gerd Moellmann <gerd@gnu.org>
6023 * frame.h (struct frame): Add member face_cache.
6025 * alloc.c (mark_object): Mark face cache.
6026 (mark_face_cache): Mark Lisp faces in face cache of frame.
6028 * frame.c (make_frame): Initialize face_cache.
6029 (Fdelete_frame): Free it.
6031 1998-03-18 Gerd Moellmann <gerd@gnu.org>
6033 * xfaces.c: Very first skeleton of functions for face realization,
6034 face merging, face cache etc.
6036 * dispextern.h (struct rface): Realized faces. Will replace
6037 struct face when tested.
6038 (struct face_cache): Realized face caches.
6040 * xdisp.c (init_iterator): Initialize area member of display
6043 1998-03-17 Gerd Moellmann <gerd@gnu.org>
6045 * xterm.c (x_append_glyph): Use it->area to store glyphs.
6047 * dispextern.h (struct display_iterator): New member area.
6049 * xterm.c (note_overwritten_text_cursor): Note when the text
6050 cursor of a window is overwritten.
6052 * xdisp.c (set_cursor_from_row): If PT is not found in the
6053 row, display the cursor at the start of the row.
6055 * dispnew.c (direct_output_forward_char): Call
6056 set_cursor_from_row.
6058 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
6059 position is not in an overlay string, set iterator's position and
6060 method explicitly so.
6061 (set_cursor_from_row): Correct cursor position calculation.
6062 Make it externally visible.
6063 (redisplay_window): Call set_cursor_from_row so that there is only
6064 one place where the cursor position is calculated from a current
6067 * dispextern.h (struct display_iterator): New member
6068 overlay_strings_at_end_processed_p.
6070 * xdisp.c (check_iterator): Perform sanity checks on
6072 (next_element_from_buffer): Check for overlay strings at ZV.
6074 1998-03-16 Gerd Moellmann <gerd@gnu.org>
6076 * buffer.c (init_buffer_once): Add left_margin_width and
6077 right_margin_width to buffer_local_flags.
6079 * dispnew.c (margin_glyphs_to_reserve): Function computing
6080 number of glyphs to reserve for a marginal area.
6081 (adjust_glyph_matrix): Call it.
6082 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
6085 * window.c (Fset_window_margins): Allow floats.
6087 * buffer.c (syms_of_buffer): Add buffer-local variables
6088 left-margin-width and right-margin-width. Add defaults
6089 default-left-margin-width and default-right-margin-width.
6091 * buffer.h (struct buffer): New members left_margin_width
6092 and right_margin_width.
6094 * window.c (Fset_window_margins): Make window the last and
6097 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
6098 flag no_marginal_areas_p differently.
6099 (x_clear_end_of_line): Ditto.
6100 (x_draw_glyph_string_relief): Compute width of relief differently
6101 for rows with flag no_marginal_areas_p.
6103 * dispnew.c (update_window_line): Update marginal areas only
6104 for rows that don't have no_marginal_areas_p set.
6106 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
6107 (display_menu_bar): Ditto.
6109 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
6111 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
6112 marginal areas in window-based redisplay.
6114 * dispextern.h (struct glyph_matrix): New members
6115 left_margin_glyphs and right_margin_glyphs.
6117 1998-03-15 Gerd Moellmann <gerd@gnu.org>
6119 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
6121 * charset.c (non_ascii_char_to_string): Use char type parameters
6122 because the function is used that way from outside. Use unsigned
6125 * window.c (change_window_height): Return void.
6126 (make_dummy_parent): Return void.
6127 (init_window_once): Return void.
6128 (syms_of_window): Ditto.
6129 (keys_of_window): Ditto.
6130 (delete_window): Correct return with and without value.
6132 * buffer.c (record_buffer): Return void.
6134 * marker.c (unchain_marker): Return void.
6136 * window.c (unshow_buffer): Return void.
6137 (replace_window): Ditto.
6138 (delete_window): Ditto.
6140 * term.c (delete_glyphs_hook): Void return type.
6141 (ring_bell_hook): Ditto.
6142 (set_terminal_window_hook): Ditto.
6144 * sysdep.c (init_sigio): Return void.
6146 * xterm.c (x_set_window_size): Return void.
6147 (x_calc_absolute_position): Ditto.
6148 (x_set_offset): Ditto.
6149 (x_focus_on_frame): Ditto.
6150 (x_unfocus_frame): Ditto.
6151 (x_make_frame_visible): Ditto.
6152 (x_make_frame_invisible): Ditto.
6153 (x_iconify_frame): Ditto.
6154 (x_destroy_window): Ditto.
6155 (x_wm_set_window_state): Ditto.
6156 (x_wm_set_icon_pixmap): Ditto.
6157 (x_wm_set_icon_position): Ditto.
6158 (x_initialize): Ditto.
6159 (x_error_quitter): Ditto.
6160 (x_destroy_window): Use xfree instead of free.
6162 * keyboard.c (clear_waiting_for_input): Return void.
6164 * xterm.c (x_wm_set_size_hint): Return void.
6165 (x_raise_frame): Ditto.
6166 (refreshicon): Ditto.
6167 (x_error_catcher): Ditto.
6168 (x_clear_errors): Ditto.
6170 * keyboard.c (record_asynch_buffer_change): Return void.
6172 * xterm.c (XTroï
\0ðoï
\0ðÃâ
\0ðoï
\0ðoï
\0ðTÿ
\0ðLá
\0ðoï
\0ðterminal_window): Ditto.
6173 (x_lower_frame): Ditto.
6174 (x_scroll_bar_clear): Ditto.
6175 (XTflash): Add default case in switch for -Wall.
6176 (construct_mouse_click): Return Qnil.
6177 (cancel_mouse_face): Return void.
6178 (x_queue_event): Use xmalloc instead of malloc.
6179 (x_unqueue_events): Use xfree instead of free.
6181 * ccl.c (ccl_driver): Return int.
6183 * keyboard.c (stop_polling): Return void.
6184 (start_polling): Ditto.
6186 * term.c (keys): Add braces in initializer list for -Wall.
6188 * sysdep.c (tabs_safe_p): Return int.
6189 (init_baud_rate): Return void.
6191 * xterm.c (x_draw_bitmap): Add default case.
6192 (x_setup_relief_colors): Use DefaultScreen instead of
6193 DefaultScreenOfDisplay.
6194 (x_delete_glyphs): Return void.
6195 (construct_menu_click): Put in #if 0 because it isn't called.
6197 * xdisp.c (load_overlay_strings): Remove extraneous argument
6199 (get_overlay_arrow_glyph_row): Add missing return value.
6201 * window.c (set_window_height): Return void.
6202 (set_window_width): Ditto.
6204 * sysdep.c (request_sigio): Return void.
6205 (unrequest_sigio): Ditto.
6206 (get_frame_size): Ditto.
6208 * scroll.c (scroll_cost): Return int.
6209 (do_line_insertion_deletion_costs): Return void.
6211 * frame.c (Fdelete_frame): Use xfree instead of free.
6213 * fileio.c (report_file_error): Return void.
6215 * dispnew.c: Make compilable with -Wall.
6218 * charset.h (CHAR_LEN): Moved here from dispextern.h.
6220 1998-03-14 Gerd Moellmann <gerd@gnu.org>
6222 * xterm.c (x_scroll_bar_move): Clear under scroll bar if height is
6224 (x_setup_relief_color): Free color only for appropriate visual
6227 * xterm.c (expose_window): Fix calculation of intersection of mode
6228 line rectangle with exposed rectangle.
6230 * xdisp.c (redisplay_window): Don't do cursor movement based
6231 on current matrix if w->last_point is not valid.
6233 1998-03-09 Gerd Moellmann <gerd@gnu.org>
6235 * xterm.c (expose_line): Redraw mode line and menu lines
6236 differently because they reach into the scroll bar area.
6238 * xdisp.c (redisplay_window): If redisplaying with same window
6239 start, don't accept cursor on partially visible line.
6241 1998-03-08 Gerd Moellmann <gerd@gnu.org>
6243 * xterm.c (x_set_glyph_string_clipping): Set clip rectangle
6244 for wider mode lines.
6245 (x_draw_glyph_string_relief): Use larger rectangle for mode lines.
6247 * xdisp.c (init_iterator): Increase last_visible_x by vertical
6248 scroll bar width for mode lines.
6250 * dispnew.c (allocate_matrices_for_window_redisplay): Include
6251 vertical scroll bar width in width calculation so that we can
6252 display mode lines wider.
6254 * xdisp.c (redisplay_window): Restore buffers before returning
6255 when fonts have changed.
6257 * dispnew.c (update_window): Mark invisible rows in the current
6260 * xdisp.c (try_window_id): Force update of first row displayed
6262 (dump_glyph_matrix): Extracted from Fdump_glyph_matrix.
6264 1998-03-05 Gerd Moellmann <gerd@gnu.org>
6266 * dispextern.h (struct glyph_row): Member max_ascent renamed
6267 ascent. Member max_descent replaced by height.
6268 (struct display_iterator): Member max_descent replaced by height.
6269 (MATRIX_ROW_PIXEL_HEIGHT): Removed.
6271 * xterm.c (x_alloc_lighter_color): Don't free colors if visual
6272 class makes it unnecessary or dangerous.
6274 * xdisp.c (redisplay_window): Case only point has changed, and
6275 point has moved forward. Move forward over overlay strings.
6276 (display_line): Don't set cursor if first glyph from PT is part of
6277 a continuation line.
6279 1998-02-21 Gerd Moellmann <gerd@gnu.org>
6281 * xdisp.c (start_display): When computing continuation lines
6282 width, add current_x to the continuation lines width because
6283 move_iterator_to will stop in front of the buffer position moved
6286 1998-02-20 Gerd Moellmann <gerd@gnu.org>
6288 * xdisp.c (redisplay_window): Don't try try_window_id if
6289 windows_or_buffers_changed.
6291 * xterm.c (x_alloc_lighter_color): Try both factor and delta to
6293 (x_setup_relief_color): Allocate/ change one relief.
6294 (x_setup_relief_colors): Call above function.
6296 * xterm.h (struct relief): New structure type holding relief info:
6297 GCs, colors, and whether colors are allocated.
6299 * xterm.c (x_alloc_lighter_color): If multiplying by factor
6300 produces the same color, try adding a delta to RGB values.
6301 (x_setup_relief_colors): Free color cells.
6303 * xterm.h (struct x_output): New members white_relief_pixel,
6304 black_relief_pixel holding the foreground colors allocated for
6305 relief GCs. New members white_allocated_p, black_allocated_p.
6307 * xterm.c (x_scroll_run): Don't set updated_window to null.
6308 This resets updated_window when called from scrolling_window.
6310 * dispextern.h (scroll_run_hook): Renamed from line_dance_hook.
6312 * xterm.c (x_scroll_run): Additional window parameter. Set
6313 and reset updated_window.
6315 * dispnew.c (line_dance_hook): Additional window parameter.
6317 * xdisp.c (try_window_reusing_current_matrix): Don't call
6318 update_window_begin/end here. The end function would display the
6319 cursor on a wrong position and the additional functionality of
6320 update_window_begin is not needed anyway. Just set
6322 (try_window_id): Ditto.
6324 * dispnew.c (Fblink_cursor): Remove call to detect_input_pending.
6325 Don't redraw cursor during redisplay.
6327 * xterm.c (x_scroll_run): Renamed from do_line_dance.
6329 * xdisp.c (redisplay_window): For window-based redisplay, alway
6332 * xterm.c (struct glyph_string): New member two_byte_p that is
6333 non-zero if 16-bit drawing functions must be used.
6334 (x_fill_composite_glyph_string): Set it.
6335 (x_fill_glyph_string): Set it.
6336 (x_draw_glyph_string_foreground): Use it.
6337 (x_draw_vertical_border): Make line 1 pixel less tall.
6338 (x_draw_row_bitmaps): Decrease width of area cleared on the left
6339 side by 1 pixel if window is not right-most hasn't vertical scroll
6341 (x_draw_phys_cursor_glyph): Do nothing if phys_cursor.hpos is
6343 (x_draw_glyph_string_foreground): Use XDrawImageStringX if
6346 * xdisp.c (start_display): Check that window start is at line
6347 start if GLYPH_DEBUG != 0.
6349 * window.c (window_scroll_pixel_based): Move assertion to
6352 1998-02-19 Gerd Moellmann <gerd@gnu.org>
6354 * xterm.c (x_redraw_cursor): Don't redraw the cursor if the
6355 frame hasn't the focus.
6357 * window.c (make_window): Initialize dy.
6358 (replace_window): Ditto.
6360 * window.h (window): New member dy specifying the amount by which
6361 a window is scrolled "smoothly".
6363 * xterm.c (x_set_glyph_string_clipping): Don't use glyph string's
6364 y-position because it can be negative.
6365 (x_draw_row_bitmaps): Don't clear with negative y-position like
6367 (x_clear_end_of_line): Same theme as above.
6369 * xterm.c (x_alloc_nearest_color): Allocate a color or, if no
6370 exact match exists, the nearest existing color. Patterned after
6372 (x_alloc_lighter_color): Allocate a color that is lighter or
6373 darker than a given color by a specified factor.
6374 (x_setup_relief_colors): Set up relief line colors based on
6375 the background color of a glyph string face.
6376 (x_draw_glyph_string_relief): Call x_setup_relief_colors.
6378 * xfns.c (x_make_gc): Don't allocate relief GCs.
6379 * widget.c (create_frame_gcs): Don't allocate relief GCs.
6380 (setup_frame_gcs): Don't change relief GCs.
6382 * xterm.h (struct x_output): New member relief_background giving
6383 the background pixel color for which relief GCs can be used.
6384 Set by x_setup_relief_colors.
6386 * xterm.c (x_draw_glyph_string_relief): Draw relief differently
6387 for mode and menu lines.
6389 * xdisp.c (set_next_iterator_stop_pos): No longer static.
6391 * dispnew.c (direct_output_for_insert): Call
6392 set_next_iterator_stop_pos after having changed it2.endpos.
6394 1998-02-17 Gerd Moellmann <gerd@gnu.org>
6396 * dispnew.c (update_window): Work on selected_window, only.
6398 * xterm.c (x_erase_phys_cursor): Return quickly if physical cursor
6399 hpos is >= number of glyphs in the cursor row.
6401 * xdisp.c (try_window_id): Bug fix; update_window_end was not
6404 1998-02-16 Gerd Moellmann <gerd@gnu.org>
6406 * xdisp.c (init_iterator): Increase last_visible_x for mode lines
6409 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate
6410 enough glyphs to display a mode line or menu line which draws over
6413 * xterm.c (XTset_vertical_scroll_bar): Use
6414 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT instead of
6415 VERTICAL_SCROLL_BAR_PIXEL_HEIGHT.
6416 (x_draw_glyphs): Draw over flags areas when drawing a mode line
6418 (x_set_glyph_string_clipping): Set clipping differently if drawing
6419 a mode line or menu line.
6421 * xterm.h (VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
6423 * xterm.c (expose_line): Don't draw bitmaps for mode lines and
6425 (x_scroll_bar_create): Don't clear flags areas.
6426 (x_draw_row_bitmaps): Clear visible row height, only.
6428 * dispnew.c (Fblink_cursor): Moved here from xdisp.c.
6430 1998-02-15 Gerd Moellmann <gerd@gnu.org>
6432 * dispnew.c (direct_output_for_insert): When checking for tabs in
6433 the line, set it2.endpos to ZV.
6435 * window.h (struct window): New member cursor_off_p.
6436 * xterm.c (x_redraw_cursor): Implementation of redraw_cursor_hook
6438 * dispnew.c (redraw_cursor_hook): If non-null, function that can
6439 be called to display or erase the cursor.
6440 * xdisp.c (Fblink_cursor): Blink the cursor of a specified window
6443 * xterm.h (text_cursor_kinds): Enumerators changed to uppercase.
6445 * dispnew.c (update_window_line): Special handling of inverse
6446 lines in #if 0 removed.
6448 * xterm.c (x_write_glyphs): Renamed from XTwrite_glyphs.
6449 (x_insert_glyphs): Renamed from XTinsert_glyphs.
6450 (x_clear_frame): Renamed from XTclear_frame.
6451 (x_clear_end_of_line): Renamed from XTclear_end_of_line.
6452 (x_ins_del_lines): Renamed from XTins_del_lines.
6453 (x_change_line_height): Renamed from XTchange_line_height.
6454 (x_delete_glyphs): Renamed from XTdelete_glyphs.
6455 (x_clear_cursor): Renamed from clear_cursor.
6456 (x_update_begin): Renamed from XTupdate_begin.
6457 (x_update_end): Renamed from XTupdate_end.
6458 (x_update_window_begin): Renamed from XTupdate_window_begin.
6459 (x_update_window_end): Renamed from XTupdate_window_end.
6460 (x_frame_mode_line_height): Renamed from XTframe_mode_line_height.
6461 (x_produce_glyphs): Renamed from XTproduce_glyphs.
6462 (x_produce_special_glyphs): Renamed from XTproduce_special_glyphs.
6463 (x_produce_special_glyphs): Implementation in #if 0 removed.
6465 * xdisp.c (Fdump_redisplay_state): Display row's fill_line_p
6468 * dispnew.c (update_text_area): Handling of glyphs with pixel
6469 width zero removed. Decrement desired stop pos if desired row
6472 * xterm.c (x_fill_glyph_string): Handling of glyphs with pixel
6474 (BUILD_GLYPH_STRINGS): Set glyph string flag
6475 extends_to_end_of_line_p based on row's flag fill_line_p and face
6476 background and stipple. Make sure it works for composite characters.
6478 * xdisp.c (extend_face_to_end_of_line): Set the glyph row flag
6479 fill_line_p. For window-based redisplay, add a space only if
6480 the row is empty so that we know the face to draw.
6482 * dispextern.h (struct glyph_row): New flag fill_line_p. Non-zero
6483 means draw the face of the last glyph in the text area to the
6484 right end of the text area.
6486 * xdisp.c (init_iterator): Show region in window mini-buffer
6489 * dispextern.h (struct display_iterator): Redundant member
6490 region_showing_p removed. Test for region_beg > 0 instead.
6492 * dispnew.c (update_text_area): Clear to end of line if cursor is
6493 beyond the end of the desired line. Necessary because we don't
6494 have a phys_cursor_glyph with which to erase the cursor. We don't
6495 have one because this method of drawing a cursor doesn't work with
6498 * xterm.c (XTinsert_glyphs): Block input.
6500 1998-02-14 Gerd Moellmann <gerd@gnu.org>
6502 * xterm.c (x_set_cursor_gc): Don't use cursor_gc for composite
6504 (x_draw_glyph_string_background): Fill background with background
6505 pixel for the first glyph of a composite character.
6507 * xdisp.c (try_window): Change return type to int. Value is zero
6508 if fonts were loaded during redisplay.
6509 (redisplay_window): Return if fonts have been loaded during
6511 (append_space): New parameter default_face_p.
6513 1998-02-13 Gerd Moellmann <gerd@gnu.org>
6515 * dispnew.c (adjust_glyph_matrix): In case of optimizing C-x 2,
6516 don't let a partially visible line in a current matrix stay
6519 1998-02-09 Gerd Moellmann <gerd@gnu.org>
6521 * minibuf.c (read_minibuf): Put access to minibuffer_prompt_length
6522 in #if PROMPT_IN_BUFFER.
6524 * xdisp.c (display_line): If row ends in ZV, make the space
6525 that is added to place the cursor on it appear in default face.
6527 * xterm.c (expose_area): New function redrawing a single
6529 (expose_line): Use it to redraw all areas of a row.
6531 * dispextern.h (move_operation_enum): New enum
6532 move_operation_enum.
6534 * window.c (window_scroll_pixel_based): Remove now unnecessary
6535 code that made sure that it->current_y doesn't become negative.
6537 * xdisp.c (move_iterator_in_display_line_to): New parameter
6538 op. Special meaning of to_pos <= 0 and to_x < 0 removed.
6539 (move_iterator_to): Ditto.
6541 * dispextern.h (struct glyph_matrix): New member window_width.
6543 * dispnew.c (adjust_glyph_matrix): Set window_width. Optimize
6544 case of changing window height.
6546 * xterm.c (x_draw_row_bitmaps): Don't clear vertical window
6549 * dispextern.h (struct glyph_row): Remove right_to_left_p. RMS
6550 says this aspect of Emacs is currently redesigned.
6552 * xterm.c (x_clip_to_row): Subtract 1 from clip width if we
6553 have to draw a vertical border.
6555 * window.c (window_scroll_pixel_based): When scrolling down by
6556 screen-fulls, make sure it.current_y doesn't get negative because
6557 this would confuse move_iterator_vertically.
6559 * xdisp.c (move_iterator_vertically_backward): Bug fix for
6560 the case continuation lines are involved.
6561 (try_window_id): Don't set the cursor into scroll margins.
6563 1998-02-08 Gerd Moellmann <gerd@gnu.org>
6565 * xterm.c (x_append_glyph): Don't compute left_overhang and
6567 (XTproduce_glyphs): left_overhang and right_overhang removed.
6568 Set it->glyph_row->contains_overlapping_glyphs_p.
6570 * xdisp.c (Fdump_redisplay_state): Output of glyph->left_overhang
6571 and right_overhang removed.
6573 * dispextern.h (struct glyph_row): New member
6574 contains_overlapping_glyphs_p used to optimize glyph drawing.
6575 (struct display_iterator): left_overhang and right_overhang
6577 (struct glyph): Ditto.
6579 * xterm.c (x_draw_relief): Removed.
6580 (x_draw_bitmap): Renamed from draw_bitmap.
6581 (x_draw_glyphs): Completely new implementation of draw_glyphs
6582 capable of handling arbitrary lbearing and rbearing values.
6583 Several sub-functions not mentioned here.
6585 1998-01-30 Gerd Moellmann <gerd@gnu.org>
6587 * xterm.c (x_erase_phys_cursor): Clear area under the cursor only
6588 if displaying hollow box cursor. draw_glyphs should handle
6590 (draw_glyphs): Move start to the left and end to the right if they
6591 overlap with previous or following characters.
6592 (draw_glyphs): If background is cleared for hl == DRAW_CURSOR,
6593 make sure XDrawString uses function GXset. Otherwise the
6594 character under the cursor would be invisible.
6595 (x_draw_bar_cursor): Don't draw over previous character if it
6598 * window.c (get_phys_cursor_glyph): Return the glyph under a
6599 window's physical cursor.
6601 * xterm.c (x_draw_hollow_cursor): Use get_phys_cursor_glyph.
6602 (x_draw_bar_cursor): Ditto.
6603 (x_erase_phys_cursor): Ditto.
6604 (x_phys_cursor_in_rect_p): Ditto.
6605 (x_display_and_set_cursor): Remove reference to w->phys_cursor_glyph.
6607 * window.c (make_window): Remove reference to phys_cursor_glyph.
6608 (replace_window): Ditto.
6610 * window.h (struct window): Remove phys_cursor_glyph. There is
6611 now always a glyph present for placing the cursor on it in
6612 each glyph row, even at the end of a line.
6614 * xdisp.c (append_space): Function to add a space to an iterators
6616 (display_line): Add spaces at the end of lines that are used to
6617 place the cursor on them.
6618 (compute_line_metrics): If row consists of a space only that was
6619 added to place the cursor on it, use that space's height as the
6622 1998-01-29 Gerd Moellmann <gerd@gnu.org>
6624 * xdisp.c (Fdump_redisplay_state): Dump left and right overhang of
6627 1998-01-28 Gerd Moellmann <gerd@gnu.org>
6629 * xterm.c (x_append_glyph): Set overhang of glyph from iterator.
6630 (XTproduce_glyphs): Set it->left_overhang and it->right_overhang.
6632 * dispextern.h (struct glyph): Add left_overhang and
6634 (struct display_iterator): Ditto.
6636 * dispnew.c (direct_output_for_insert): Give up if newly inserted
6637 glyphs have different ascent or descent than original row.
6639 * xdisp.c (compute_line_metrics): Compute row->max_ascent and
6640 row->max_descent only if unknown.
6641 (display_line): Compute row->max_ascent and row->max_descent.
6642 (display_string): Ditto.
6644 * window.h (struct window): New members phys_cursor_ascent and
6645 phys_cursor_descent.
6647 * xterm.c (x_phys_cursor_in_rect_p): Use them.
6648 (x_draw_hollow_cursor): Ditto.
6649 (x_erase_phys_cursor): Ditto.
6650 (x_display_and_set_cursor): Set them.
6651 (x_append_glyph): Don't set glyph members that were removed.
6653 * dispextern.h (struct glyph): Members ascent, descent,
6654 contributes_to_line_height_p removed.
6656 1998-01-25 Gerd Moellmann <gerd@gnu.org>
6658 * dispextern.h (DEFAULT_FACE_ID, MODE_LINE_FACE_ID): Symbolic
6659 names for face ids of frame default face and mode line face.
6661 * xdisp.c (compute_face_at_iterator_string_position): If
6662 displaying a mode line use MODE_LINE_FACE_ID instead of
6665 * xdisp.c (reseat_iterator_to_string): Additional parameter start.
6666 (display_string): Ditto, additional parameter lisp_string.
6667 (display_line): Call display_string with Lisp mini-buffer prompt
6669 (display_menu_bar): Call display_string with Lisp string.
6670 (display_mode_element): Ditto.
6671 (next_element_from_string): Make it work for non-overlay Lisp
6672 strings with field width and precision.
6674 * minibuf.c (minibuffer-prompt-in-buffer): Bound if
6677 * xfaces.c (compute_string_char_face): Fix face computation
6678 for overlay strings.
6680 * xdisp.c (struct overlay_entry): Add member after_string_p.
6681 (load_overlay_strings): Simplify.
6683 * window.c (delete_window): Defer glyph matrix adjustment.
6684 (Fsplit_window): Ditto.
6685 (change_window_height): Ditto.
6686 (Fset_window_configuration): Ditto.
6687 (Fset_window_margins): Ditto.
6688 * frame.c (set_menu_bar_lines): Ditto.
6689 (Fmake_terminal_frame): Ditto.
6690 * dispnew.c (change_frame_size_1): Ditto.
6692 1998-01-24 Gerd Moellmann <gerd@gnu.org>
6694 * xdisp.c (move_iterator_vertically_backward): Change algorithm.
6696 * dispnew.c (direct_output_for_insert): Give up if start
6697 position has overlay strings.
6699 * xdisp.c (display_line): Don't set cursor if row ends in middle
6701 (Fdump_redisplay_state): Print complete row start and end
6703 (redisplay_window): Cursor movement when matrix hasn't changed---
6704 if PT < last_point, maybe move forward if row ends at PT and
6707 * minibuf.c (read_minibuf): Save the value of
6708 minibuffer_prompt_length in minibuf_save_list.
6709 (read_minibuf_unwind): Restore minibuffer_prompt_length.
6711 * xdisp.c (redisplay_window): Add assertion for cursor movement
6712 case, PT < last_point.
6713 (move_iterator_in_display_line_to): If to_pos specified, move
6714 over before-strings.
6716 * dispextern.h (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test
6717 start.string_index > 0.
6719 * xdisp.c (redisplay_internal): Adjust glyphs if fonts_changed_p
6720 is set. Retry redisplay if fonts_changed_p is set before update.
6722 * xterm.c (x_load_font): Set fonts_changed_p.
6724 * xfaces.c (Fset_face_attribute_internal): Set fonts_changed_p.
6726 * dispnew.c (adjust_glyphs_for_font_change): Removed.
6728 * xdisp.c (try_window): Check fonts_changed_p.
6729 (try_window_reusing_current_matrix): Ditto.
6730 (try_window_id): Ditto.
6732 * dispnew.c (adjust_glyphs_for_font_change): Set fonts_changed_p.
6733 (fonts_changed_p): Flag indicating a font change since the last
6734 glyph matrix adjustment.
6736 * xterm.c (x_per_char_metric): Use font->max_bounds as
6737 char metric of the font's default char if the default char
6738 hasn't per char metric itself.
6740 * xfaces.c (Fset_face_attribute_internal): Adjust glyphs
6742 (min_char_bounds): Check face->font != NULL.
6743 (font_min_bounds): Return minimum font metrics. Capture the
6744 case of invalid min_bounds contents.
6745 (min_char_bounds): Call font_min_bounds.
6747 1998-01-22 Gerd Moellmann <gerd@gnu.org>
6749 * xdisp.c (start_display): Don't set it->prompt_width if
6751 (move_iterator_in_display_line_to): Ditto.
6752 (display_line): Don't display prompt via display_string if
6755 * minibuf.c (Fminibuffer_prompt_width): Return value from
6756 current_buffer if PROMPT_IN_BUFFER.
6757 (read_minibuf): If PROMPT_IN_BUFFER, insert prompt into
6758 mini-buffer and make it read-only.
6759 (Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
6760 minibuffer_prompt_length instead of BEGV.
6761 (Fminibuffer_complete_word): Ditto.
6762 (Fminibuffer_complete_word): Ditto.
6764 * insdel.c (del_range_1): If PROMPT_IN_BUFFER, and start position
6765 is less than mini-buffer prompt width, use prompt width as start.
6767 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, and start
6768 position is less than mini-buffer prompt width, use the prompt
6771 * cmds.c (Fbeginning_of_line): If PROMPT_IN_BUFFER, set point to
6772 end of prompt if applied to a mini-buffer and BEG reached.
6774 1998-01-21 Gerd Moellmann <gerd@gnu.org>
6776 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, add prompt
6777 length to start position.
6779 * buffer.c (Fget_buffer_create): Initialize
6780 minibuffer_prompt_length.
6781 (Fmake_indirect_buffer): Ditto.
6782 (Fkill_buffer): Ditto.
6784 * buffer.h (struct buffer): Add member minibuffer_prompt_length
6785 if PROMPT_IN_BUFFER.
6787 1998-01-19 Gerd Moellmann <gerd@gnu.org>
6789 * xdisp.c (next_element_from_string): Make it work for arbitrary
6791 (set_iterator_to_next): Advance to next overlay string only
6792 if it->string is an overlay string.
6794 * dispextern.h (struct display_iterator):
6795 next_ovstr_face_check_pos renamed next_string_face_check_pos.
6797 * xfaces.c (compute_string_char_face): Compute face for
6798 arbitrary Lisp string. Renamed from compute_overlay_string_char_face.
6800 * xdisp.c (next_element_from_string): Renamed from
6801 next_element_from_overlay_string.
6802 (compute_face_at_iterator_string_position): Renamed from
6803 compute_face_at_iterator_overlay_string_position.
6805 * dispextern.h (struct display_iterator): Member overlay_string
6808 * xdisp.c (next_element_from_c_string): Renamed from
6809 next_element_from_string.
6811 * dispextern.h (struct glyph_pos): Reversed meaning of
6812 overlay_string_index and string_index.
6814 * xdisp.c (next_element_from_overlay_string): Fix bug that made
6815 this function always return the first character of an overlay
6818 1998-01-18 Gerd Moellmann <gerd@gnu.org>
6820 * xdisp.c (reseat_iterator): Set next_invisible_check_pos only if
6821 forced or new pos > next_invisible_check_pos.
6822 (redisplay_window): Don't try same window start if PT < window
6824 (move_iterator_vertically): Bug fix satisfying post-condition
6825 when ZV is reached and no newline in front.
6826 (move_iterator_vertically_backward): New implementation.
6827 (move_iterator_vertically_backward): Bug fixes.
6829 * xterm.c (XTmouse_position): Change call to min_char_bounds.
6830 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
6831 (adjust_glyphs_for_font_change): Always adjust.
6833 * dispnew.c (struct dim): Use int.
6835 * xfaces.c (Fset_face_attribute_internal): Set face->font_name;
6836 (allocate_face): Initialize it.
6837 (load_font): Use XLoadQueryFont again instead of x_load_font.
6838 (unload_font): Use XFreeFont again.
6839 (min_char_bounds): Iterate over fonts of faces. Use frame's
6840 font sizes as default. Remove parameter except_last_font_p.
6842 * dispextern.h (struct face): Add font_name.
6844 1998-01-17 Gerd Moellmann <gerd@gnu.org>
6846 * xdisp.c (move_iterator_vertically): Check post-condition. Move
6847 to start of line if ending at ZV and no newline in front.
6848 (move_iterator_to): If to_y specified, always first move to x = 0,
6849 so that move stops at line start instead of line end. This is
6850 probably what callers would expect to happen.
6852 * window.c (window_scroll_pixel_based): Pixel-based scrolling that
6853 can handle different line heights.
6854 (window_scroll_line_based): Formerly window_scroll.
6855 (window_scroll): Call both.
6857 * xdisp.c (start_display): Exclude code if PROMPT_IN_BUFFER.
6858 (move_iterator_in_display_line_to): Ditto.
6859 (display_line): Ditto.
6861 * minibuf.c (read_minibuf): Conditionally insert prompt into
6862 buffer instead of handling prompts specially. Change other
6863 functions accordingly. All such code is in #if PROMPT_IN_BUFFER.
6865 * dispnew.c (adjust_glyph_matrix): Optimize the handling of C-x 2,
6866 upper window. Optimize calls to xrealloc if same width.
6868 * xdisp.c (redisplay_window): Don't use
6869 try_window_reusing_current_matrix if window scroll functions
6872 * dispextern.h (struct display_iterator): Member
6873 redisplay_end_trigger_p removed.
6875 * dispextern.h (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
6876 Renamed to WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
6878 1998-01-16 Gerd Moellmann <gerd@gnu.org>
6880 * xdisp.c (move_iterator_by_lines): Optimize for truncate-lines
6881 nil. Optimize truncate-lines t and moving backward.
6882 (move_iterator_to_previous_visible_line_start): Contains the heart
6883 of the previous set_iterator_to_previous_visible_line_end. Don't
6884 reseat the iterator. Used by move_iterator_by_lines.
6885 (set_iterator_to_previous_visible_line_start): Call function
6887 (move_iterator_in_display_line_to): Check TO_POS before doing
6888 anything else. Otherwise to_pos == PT would move to x of PT+1.
6890 * indent.c (Fvertical_motion): Use display_iterator.
6892 * xdisp.c (move_iterator_by_lines): New function moving by screen
6894 (redisplay_window): Use it.
6895 (move_iterator_to): Correct branch of to_vpos specified.
6896 (move_iterator_vertically_backward): Increment nlines after having
6897 backed up over some lines because the last line was not backed up
6899 (move_iterator_via_matrix): Look for it->pos in the matrix, and
6900 calculate it->vpos and it->current_y relative to this row.
6901 (move_iterator_via_matrix): Set in #if 0. It doesn't seem to
6902 have a big effect and it is complex.
6903 (move_iterator_to): Call to move_iterator_via_matrix in #if 0.
6905 1998-01-15 Gerd Moellmann <gerd@gnu.org>
6907 * xterm.c (x_draw_relief): Simplify drawing and draw so that lines
6908 join nicely. Lines with widths > 2 don't join nicely under X.
6909 * xterm.h (struct x_output): Remove member relief_gc_line_width.
6910 * widget.c (setup_frame_gcs): Initialize relief GC's to line
6911 width 1; remove references to relief_gc_line_width.
6912 * xfns.c (x_make_gc): Ditto.
6914 * xfaces.c (Fset_face_attribute_internal): Set frame garbaged
6916 (Fset_face_attribute_internal): Use XINT instead of XFASTINT
6917 to get a relief because they can be negative.
6919 * xterm.c (x_draw_relief): Correct line drawing positions. Pixel
6920 positions are for the middle of lines under X.
6922 * xdisp.c (try_window_id): Always search for the cursor by setting
6923 w->cursor.vpos = -1. Search in unchanged rows at the top and
6924 bottom if cursor not found in displayed lines.
6925 (display_mode_line): First extend face, then set right shadow
6926 flag. Otherwise the wrong glyph gets the right shadow.
6928 * dispnew.c (direct_output_for_insert): Give up if line contains
6929 a tab. The number of spaces inserted for a tab changes if we
6930 insert glyphs in front of it.
6932 * xterm.c (x_list_fonts): Changes undone because the Lisp
6933 implementation for make-face-smaller, make-face-larger, and
6934 make-face-fixed can do without them.
6936 * xfns.c (Fx_list_fonts): Original x-list-fonts from x-list-font.c
6939 * xdisp.c (try_window_id): First compute beg_unchanged, then
6940 compare with window start pos.
6942 * xfns.c (Fx_face_fixed_p): Determine whether a face has a
6944 (syms_of_xfns): defsubr for x-face-fixed-p.
6946 * xterm.c (x_erase_phys_cursor): If row containing cursor is not
6947 enabled, don't do anything because this row will be newly drawn
6948 anyway and because we can additionally no longer determine the row
6951 * xdisp.c (display_line): Bug fix cursor positioning.
6953 * xfns.c (x-list-fonts): Copied from x-list-fonts.c; #include
6954 removed. x-list-fonts.c is now obsolete.
6955 (Qfixed, Qvariable): Moved here from xfaces.c.
6957 1998-01-14 Gerd Moellmann <gerd@gnu.org>
6959 * xdisp.c (display_line): Set row->ends_at_zv_p based on
6960 FETCH_BYTE for truncated lines.
6961 (display_line): Set cursor differently.
6962 (display_line): Fixed bug setting last_pos_on_this_line wrong
6963 for truncated lines.
6965 * dispnew.c (adjust_glyph_matrix): Always adjust for frame-based
6968 * window.c (Fsplit_window): Adjust glyphs before setting buffer.
6970 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
6971 assertion that character dimensions are not zero.
6973 * xterm.c (x_load_font): adjust_glyphs_for_font_change while
6976 * xdisp.c (decode_mode_spec): Faster implementation of line number
6979 * xterm.c (x_draw_row_bitmaps): Clear flags area before drawing
6980 bitmaps if bitmaps don't fill the entire area.
6981 (draw_bitmap): Draw bitmaps horizontally centered in flags area.
6983 * xterm.h (FRAME_FLAGS_BITMAP_HEIGHT): Macro giving the
6984 pixel height of flags bitmaps.
6986 * frame.h (FRAME_FLAGS_AREA_COLS): Use FRAME_X_FLAGS_AREA_COLS.
6987 (FRAME_FLAGS_AREA_WIDTH): Ditto.
6989 * xterm.h (FRAME_FLAGS_BITMAP_WIDTH): Macro giving the width
6990 in pixels of a flags area of a frame.
6991 (FRAME_X_FLAGS_AREA_WIDTH): Removed.
6992 (FRAME_X_FLAGS_AREA_COLS): Macro giving the number of columns
6993 occupied by a flags area.
6995 1998-01-13 Gerd Moellmann <gerd@gnu.org>
6997 * xdisp.c (hscroll_window_tree): Remove test for non-nil
7000 * dispnew.c (adjust_glyph_matrix): Check redisplay_p if
7003 * xdisp.c (display_line): Correct wrong calculation of row->x for
7004 the case of nglyphs == 1.
7005 (hscroll_window_tree): Renamed from hscroll_windows.
7006 (hscroll_windows): New function calling hscroll_window_tree that
7007 clears desired matrices on a frame when hscroll has been changed.
7008 (redisplay_p): Global flag set during redisplay.
7009 (redisplay_internal): Set and clear redisplay_p.
7011 * xfaces.c (min_char_bounds): Add assertion that width and height
7012 are not zero at the end. Initialize *height and *width to -1,
7013 instead of using BITS_PER_SHORT. If font has min_bounds.width
7014 zero, use its max_bounds.width.
7016 * x-list-font.c (Fx_list_fonts): Check INTEGERP or FLOATP for
7019 1998-01-12 Gerd Moellmann <gerd@acm.org>
7021 * dispnew.c (adjust_glyph_matrix): Do nothing if sizes haven't
7022 changed. Don't clear desired matrices.
7024 * xdisp.c (hscroll_windows): Compute pt after setting
7026 (redisplay_window): Don't do cursor movement based on current
7027 matrix if just_this_one_p is zero.
7029 * x-list-font.c (Fx_list_fonts): Additional parameter fixed.
7030 specifying that fixed-width, variable-width fonts or both
7033 * xfaces.c (Qfixed, Qvariable): Symbols for use by x-list-fonts.
7034 (syms_of_xfaces): Initialize them.
7036 * xterm.c (x_list_fonts): Include auto-scaled fonts. Extend
7039 1998-01-11 Gerd Moellmann <gerd@acm.org>
7041 * xdisp.c (display_mode_line): Extend face to end of line.
7043 * xdisp.c (echo_area_display): Don't call display_string with
7044 echo_area_glyphs_length == 0 which would mean infinite precision.
7045 (redisplay_internal): Adjust window_end_vpos if necessary.
7047 1998-01-07 Gerd Moellmann <gerd@acm.org>
7049 * xdisp.c (display_line): Set it->ends_at_zv_p differently.
7051 1998-01-05 Gerd Moellmann <gerd@acm.org>
7053 * xdisp.c (get_row_start_continuation_line_width): Removed.
7054 (init_iterator_to_row_start): Set it.current_x from row.
7055 (try_window_id): Set it.continuation_lines_width directly from
7058 * xdisp.c (hscroll_windows): Use w->pointm if window is not
7060 (hscroll_windows): Center cursor in window.
7061 (hscroll_windows): Call move_iterator_in_display_line_to.
7063 1998-01-04 Gerd Moellmann <gerd@acm.org>
7065 * xdisp.c (hscroll_windows): Check hscroll < 0.
7066 (redisplay_window): Allow quick cursor movement if overlay arrow
7067 but frame uses window-based redisplay.
7068 (display_line): Take special case for nglyphs == 1 out of #if 0.
7069 (display_line): Set row->ends_at_zv_p after the loop displaying
7070 glyphs because ZV can be in truncated text.
7071 (hscroll_windows): Use init_iterator_to_row_start.
7073 * dispnew.c (scrolling_window): Calculation of overlapping
7075 (row_equal_p): Compare continued_p and continuation_line_p.
7077 1998-01-02 Gerd Moellmann <gerd@acm.org>
7079 * xterm.c (x_get_mode_line_face_gc): Renamed from
7080 x_get_modeline_face_gc.
7082 * xdisp.c (TEXT_PROP_DISTANCE_LIMIT): Max. distance from current
7083 buffer position to look for text properties.
7084 (get_face_from_cursor_pos): Use it.
7085 (compute_face_at_iterator_position): Use it.
7086 (next_element_from_buffer): Use it.
7088 * dispnew.c (scrolling_window): Decrement run's y-position
7089 when extending it backwards.
7091 * xterm.c (do_line_dance): Don't ever copy more than window height.
7093 1998-01-01 Gerd Moellmann <gerd@acm.org>
7095 * xdisp.c (redisplay_window): Cursor motion in unchanged
7096 matrix---use MATRIX_ROW_.*_IN_MIDDLE_OF_CHAR_P.
7097 (init_iterator_to_next_row_start): Special handling of lines
7098 ending in middle of char removed.
7099 (hscroll_windows): Hscroll windows only if window_end_valid is not
7101 (try_window_reusing_current_matrix): Call hscroll_windows.
7102 (init_iterator_to_row_start): Initialize iterator for display
7103 starting at a position given by a glyph_row->start.
7104 (redisplay_window): Don't use vmotion because it gives wrong
7105 results if lines are continued and variable width fonts are used.
7107 * dispextern.h (struct glyph_pos): New member dpvec_index.
7108 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test if row ends in the
7109 the middle of a character.
7110 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test if row starts in
7111 the middle of a character.
7113 * xdisp.c (set_iterator_to_next): Increment it->dpvec_index, reset
7115 (next_element_from_display_vector): Use it->dpvec_index.
7116 (reseat_iterator): Reset it.
7117 (init_iterator): Reset it.
7118 (setup_iterator_dpvec_from_glyph_pos): Set up it->dpvec and
7119 it->pos.dpvec_index from a glyph_pos structure.
7120 (init_iterator_from_glyph_pos): Call the function above.
7121 (reseat_iterator_to_glyph_pos): Ditto.
7123 * dispnew.c (direct_output_forward_char): Don't use this method at
7124 overlay boundaries or near invisible text.
7125 (direct_output_forward_char): Step through glyph row to find
7128 * xterm.c (x_get_cursor_gc): Don't return cursor_gc for font ==
7129 frame font if line height differs from font height.
7131 * xdisp.c (set_iterator_to_next): Renamed from
7132 move_iterator_forward to avoid confusion with other move_.*
7135 * dispextern.h (FACE_RELIEF_P): Renamed from FACE_3D_P.
7137 1997-12-31 Gerd Moellmann <gerd@acm.org>
7139 * xterm.c (x_get_cursor_gc): Renamed from x_cursor_gc to use the
7140 same naming convention as for other GC functions.
7141 (draw_glyphs): Don't fill background when drawing a cursor and
7142 font height is less than line height.
7144 1997-12-30 Gerd Moellmann <gerd@acm.org>
7146 * xdisp.c (init_display_iterator.*): Renamed to shorter names
7149 * xdisp.c (move_iterator_forward): Restore it->len from
7150 it->dpvec_char_len if dpend reached.
7151 (get_next_display_element): Don't consume translated char
7153 (display_line): Don't set this_.* variables if row is continued.
7154 (start_display): Move to start of continuation line if ending
7155 up at end of continued line.
7157 * dispextern.h (struct display_iterator): New member dpvec_char_len.
7159 * xdisp.c (move_iterator_in_display_line_to): Check TO_POS after
7160 checking TO_X and continuation lines.
7161 (get_last_unchanged_at_beg_row): If first_changed_pos is the end
7162 of a continued line, don't consider this line as unchanged because
7163 it may no longer be continued.
7165 1997-12-29 Gerd Moellmann <gerd@acm.org>
7167 * xdisp.c (try_window_id): Catch the case that moving over
7168 continuation lines moves first_unchanged_at_end_row to a row not
7171 * dispextern.h (struct glyph_row): New member
7172 continuation_lines_width. Member continuation_line_p removed.
7173 (MATRIX_ROW_CONTINUATION_LINE_P): Non-zero if row displays a
7175 * xdisp.c (display_line): Set row->continuation_lines_width.
7176 (get_row_start_continuation_line_width): Set continuation lines
7177 width of iterator from continuation lines width of glyph row.
7178 (get_row_start_continuation_line_width): Make it inline.
7179 (set_window_cursor): Make it inline.
7180 (try_window_id): Use MATRIX_ROW_CONTINUATION_LINE_P.
7181 (Fdump_redisplay_state): Ditto.
7183 * dispnew.c (update_window_line): Use MATRIX_ROW_CONTINUATION_LINE_P.
7184 * xterm.c (x_draw_row_bitmaps): Use MATRIX_ROW_CONTINUATION_LINE_P.
7186 * xdisp.c (try_window_id): Set it.hpos and it.current_x to zero
7187 after determining the continuation lines width for
7188 last_unchanged_at_beg_row.
7190 * xterm.c (x_draw_row_bitmaps): Let overlay arrow have precedence.
7192 * xdisp.c (display_mode_line): Handle 3D faces only on frames
7193 which support faces.
7194 (init_display_iterator): Ditto.
7195 (move_iterator_via_matrix): Skip over truncation glyph at the row
7196 start on terminal frames.
7197 (hscroll_windows): Choose hscroll margin differently for window
7198 system and terminal frames.
7200 1997-12-28 Gerd Moellmann <gerd@acm.org>
7202 * xdisp.c (hscroll_windows): Change hscroll of windows.
7203 (redisplay_internal): Call it.
7205 * dispnew.c (direct_output_for_insert): Give up if a glyph
7206 doesn't fit completely on the line.
7207 (direct_output_forward_char): Give up for non-ASCII chars.
7208 (direct_output_forward_char): Set redisplay_performed_directly_p.
7210 * dispextern.h (struct display_iterator): Make first_visible_x
7211 and last_visible_x ints; this is for very long truncated lines.
7213 * xdisp.c (move_iterator_in_display_line_to): Separate check for
7214 MOVE_X_REACHED only if it->nglyphs == 0. This fixes cursor
7215 positioning problems with the mouse.
7216 (move_iterator_in_display_line_to): Truncate lines if it->current_x
7217 >= it->last_visible_x instead of >.
7218 (display_line): Ditto.
7220 * xterm.c (draw_glyphs): Draw rectangles if font could not be
7222 (XTproduce_glyphs): Calculate pixel_width for composite chars and
7223 non-ASCII chars differently. Always produce 1 glyph for composite
7224 chars. If font not found, use CHARSET_WIDTH to calculate width of
7226 (x_get_char_font_and_encoding): Return null if font could not be
7227 loaded. Reset font to null if fontset could not be loaded.
7228 (draw_glyphs): Fill background if font not found.
7229 (draw_glyphs): Unused parameter just_foreground_p removed. New
7230 parameter composite_glyph.
7231 (draw_glyphs): Use enumeration for parameter hl.
7232 (draw_glyphs): Pass a display area relative x-position to
7233 draw_glyphs when calling it recursively for composite chars.
7235 1997-12-27 Gerd Moellmann <gerd@acm.org>
7237 * xterm.c: Patches from handa.etl.go.jp integrated.
7238 (draw_glyphs): Don't rely on x_get_char_font_and_encoding to
7241 * xdisp.c (move_iterator_in_display_line_to): Check to_x
7244 * xterm.c (x_draw_relief): Draw relief lines.
7245 (draw_glyphs): Call x_draw_relief.
7247 1997-12-26 Gerd Moellmann <gerd@acm.org>
7249 * xfns.c (x_make_gc): Create relief GC's.
7251 * widget.c (create_frame_gcs): Create GC's for relief drawing.
7252 (setup_frame_gcs): Initialize them.
7253 (EmacsFrameDestroy): Free them.
7255 * xdisp.c (try_window_id): Get continuation lines width if
7256 last_unchanged_at_beg_row is continued or a continuation line.
7257 (move_iterator_via_matrix): Don't do it for mini-buffer windows.
7258 (redisplay_window): Case point has changed, and it has not
7259 moved off the frame. Don't increment row if PT equals the row
7260 end if the row ends in ZV.
7262 * xterm.c (x_draw_row_bitmaps): New function to draw bitmaps.
7263 (expose_line): Call it.
7264 (x_after_update_window_line): Call it.
7266 * xdisp.c (display_line): Reset continuation_lines_width when ZV
7269 * xterm.c (x_after_update_window_line): Draw continuation line
7272 * dispnew.c (update_window_line): Call
7273 after_update_window_line_hook when row's continuation_line_p
7276 * xterm.c (draw_bitmap): Draw new bitmap CONTINUATION_LINE_BITMAP.
7278 * xdisp.c (display_line): Handle continued lines on window system
7279 frames differently since continuation glyphs are not displayed.
7280 (move_iterator_in_display_line_to): Ditto.
7281 (move_iterator_in_display_line_to): Take the mini-buffer prompt
7283 (move_iterator_vertically_backward): Handle dy == 0 specially.
7284 (redisplay_window): Catch the case of small windows when
7285 recentering where moving back window_height/2 moves us beyond the
7286 top of the display area of the window.
7288 1997-12-18 Gerd Moellmann <gerd@acm.org>
7290 * xdisp.c (move_iterator_vertically_backward): Unused parameter
7293 1997-12-17 Gerd Moellmann <gerd@acm.org>
7295 * dispnew.c (direct_output_forward_char): Correct new cursor
7298 1997-12-16 Gerd Moellmann <gerd@acm.org>
7300 * xterm.c (x_after_update_window_line): Remove unused parameters.
7301 (XTclear_end_of_line): Clear to display_height instead of
7304 * dispnew.c (set_frame_matrix_frame): Make it INLINE.
7305 (update_window_line): Call after_update_window_line_hook if
7306 rows have different y-positions, or different height.
7308 1997-12-14 Gerd Moellmann <gerd@acm.org>
7310 * frame.h (FRAME_MODE_LINE_PIXEL_HEIGHT): Removed.
7312 * window.c (coordinates_in_window): Call frame_mode_line_height.
7314 * xterm.c (x_draw_3d_border): Removed.
7315 (x_draw_row_borders): Removed.
7317 * dispnew.c (update_window): References to
7318 FRAME_MODE_LINE_BORDER_WIDTH removed.
7320 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Removed.
7321 (FRAME_MODE_LINE_HEIGHT): Removed.
7323 * xterm.c (draw_3d_borders_p): Removed.
7324 (draw_glyphs): Ditto.
7325 (XTwrite_glyphs): Ditto.
7326 (expose_line): Ditto.
7327 (x_initialize): Ditto.
7329 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Call
7330 frame_mode_line_height.
7332 * term.c (frame_mode_line_height): Get the pixel height of a
7334 (frame_mode_line_height_hook): Hook to implement system dependent
7337 * xterm.c (x_initialize): Set the hook.
7338 (XTframe_mode_line_height): X version of frame_mode_line_height.
7340 * xdisp.c (echo_area_display): Call gobble_input to flush the X
7342 (display_string): Don't add right truncation mark if line ends in
7344 (init_display_iterator): If called with modeline_p non-zero, set
7345 face_id to 1, which is the id of the mode line face.
7347 * keyboard.c (cmd_error_internal): Write to stderr if selected
7348 frame is Vterminal_frame under X. This is the case when a font
7349 cannot be loaded when Emacs starts. Replace test for
7350 FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
7352 * xfaces.c (compute_overlay_string_char_face): Compute the
7353 face of a character in an overlay string.
7354 * xterm.h (compute_overlay_string_char_face): Prototype.
7355 * xdisp.c (compute_face_at_iterator_overlay_string_position):
7358 * xdisp.c (set_iterator_to_next_overlay_string): Formerly
7359 set_iterator_to_next_overlay.
7360 (struct overlay_entry): Structure used to sort overlay strings.
7361 (compare_overlay_entries): Compare overlay strings.
7362 (load_iterator_with_overlay_strings): Load a chunk of overlay
7364 (get_overlay_strings_at_iterator_position): Call it.
7365 (next_element_from_overlay_string): Set it->object to the overlay
7366 string. Prepare for setting it->position to a string position.
7367 (get_overlay_strings_at_iterator_position): Renamed from
7368 get_overlays_at_iterator_position.
7369 (setup_iterator_overlay_strings_from_glyph_pos): Changed to load
7370 chunks of overlay strings.
7371 (load_overlay_strings): Renamed from load_iterator_overlay_strings.
7373 * dispextern.h (struct display_iterator): New vector
7374 overlay_strings and new member n_overlay_strings---formerly
7375 overlays and n_overlays.
7376 (struct glyph_pos): Remove after_string_p; overlay_index
7377 renamed to string_index.
7379 1997-12-13 Gerd Moellmann <gerd@acm.org>
7381 * xdisp.c (copy_iterator): Increment n_iterator_overlay_vectors
7382 when allocating a vector.
7383 (release_iterator): Removed.
7384 (restore_iterator): Removed.
7385 (copy_iterator): Removed.
7387 1997-12-08 Gerd Moellmann <gerd@acm.org>
7389 * xdisp.c (redisplay_window): Use make_empty_enabled_row for
7390 clearing a mini-buffer window that is not active.
7391 (redisplay_window): Do not scroll one line too early when last
7392 window line is completely visible.
7393 (init_display_iterator): Leave some room to display the cursor
7394 after the last glyph on a continued line.
7396 * xterm.h (struct x_output): trunc_area_extra renamed
7398 (FRAME_X_FLAGS_AREA_WIDTH): Renamed from FRAME_X_TRUNC_WIDTH.
7400 * dispnew.c (update_window_line): Call
7401 after_update_window_line_hook when current row is not enabled
7402 which is the case after a frame has been cleared.
7404 * xdisp.c (display_mode_line): Reset row flags for truncation
7405 on right side for the mode line.
7407 * xterm.c (bitmap_type): Type of bitmap to display in flags
7409 (x_after_update_window_line): Use the enum.
7410 (draw_bitmap): Ditto.
7412 1997-12-07 Gerd Moellmann <gerd@acm.org>
7414 * xterm.c (x_clip_to_row): Include width of both flag areas.
7415 (do_line_dance): Ditto.
7416 (expose_window_tree): Ditto.
7417 * dispnew.c (update_window_line): Call
7418 after_update_window_line_hook for right truncation and continuation.
7419 * xdisp.c (init_display_iterator): Don't subtract width of
7420 continuation glyphs for window-based redisplay.
7421 * xterm.c (draw_bitmap): Draw continuation bitmap.
7422 * widget.c (set_frame_size): Double trunc_area_extra.
7423 (EmacsFrameSetCharSize): Ditto.
7424 * xfns.c (x_figure_window_size): Ditto.
7425 * xterm.c (x_set_window_size): Ditto.
7426 (x_after_update_window_line): Draw right truncation mark.
7428 * xterm.c (draw_glyphs): Bug fix buffer overrun.
7430 * window.h: Include blocker around dispextern.h removed.
7432 * eval.c (Feval): Check interrupt_input_block == 0.
7434 * dispextern.h (struct display_iterator): Former ovstr made a
7435 Lisp_Object overlay_string. New next_ovstr_face_check_pos and
7436 next_ovstr_invisble_check_pos; check at these positions for
7437 face changes and changes in invisible text property.
7438 (struct glyph_pos): Former ovlen now overlay_string_index.
7440 * xdisp.c (setup_iterator_overlays_from_glyph_pos): Set
7442 (set_iterator_to_next_overlay_string): Set overlay_string and
7443 pos.overlay_string_index.
7444 (get_overlays_at_iterator_position): Use overlay_string and
7445 overlay_string_index.
7446 (next_element_from_overlay_string): Use overlay_string and
7447 overlay_string_index.
7448 (move_iterator_forward): Increment overlay_string_index.
7449 (try_window_id): Use overlay_string and overlay_string_index.
7450 (move_iterator_forward): At end of dpvec, maybe use method
7451 next_element_from_overlay_string for the case a character from an
7452 overlay string was translated via a display table.
7453 (reseat_iterator_to_string): Take a Lisp string.
7454 (display_string): Pass a Lisp string to reseat_iterator_to_string.
7455 (compute_face_at_iterator_overlay_string_position): Compute face
7456 based on text properties for an overlay string.
7457 (next_element_from_overlay_string): Check invisible and face text
7459 (set_iterator_to_next_overlay_string): Restore face id before
7460 overlay strings when no more overlay strings are found to return.
7461 Initialize next_ovstr_.*check_pos for each new overlay string
7462 roï
\0ðoï
\0ðÃâ
\0ðoï
\0ðoï
\0ðTÿ
\0ðLá
\0ðoï
\0ðase_face): Made public.
7463 (merge_face_list): Ditto.
7464 (intern_computed_face): Ditto.
7466 * xdisp.c (redisplay_window): Cursor movement in unchanged
7467 window if PT > w->last_point. Goto try_to_scroll if bottom Y
7468 of row is > instead of >= last_y.
7470 * buffer.h (overlays_at): Function prototype.
7472 * xdisp.c (reseat_iterator_to_string): Clear iterator position.
7473 * dispextern.h (GET_NEXT_DISPLAY_ELEMENT): Removed.
7475 * xdisp.c (release_iterator): Release dynamically allocated
7476 memory of a display_iterator.
7477 (copy_iterator): Copy an iterator.
7478 (restore_iterator): Restore an iterator from a backup copy.
7479 (global): Use the functions above.
7480 * window.c (Fpos_visible_in_window_p): Call release_iterator.
7481 * dispnew.c (direct_output_for_insert): Call release_iterator.
7483 * dispextern.h (struct display_iterator): Allocate overlays
7486 1997-12-06 Gerd Moellmann <gerd@acm.org>
7488 * Makefile.in (window.o): Depends on dispextern.h.
7490 * buffer.c (overlays_at): Make it work when extending vectors
7491 and an initial vector of zero size.
7493 * xdisp.c (set_iterator_to_previous_visible_line_end): Renamed
7494 from set_cursor_to_previous_visible_line_end.
7495 (set_iterator_to_next_visible_line_start): Renamed from
7496 set_cursor_to_next_visible_line_end.
7497 (set_next_iterator_stop_pos): Renamed from set_next_stop_pos.
7498 (compute_face_at_iterator_position): Renamed from
7499 compute_cursor_face.
7500 (set_iterator_to_next_overlay_string): Renamed from
7501 cursor_to_next_overlay_string.
7502 (get_overlays_at_iterator_position): Renamed from
7503 get_overlays_for_cursor.
7504 (reseat_iterator): Renamed from reseat_cursor.
7505 (setup_iterator_overlays_from_glyph_pos): Renamed from
7506 setup_overlays_from_pos.
7507 (init_string_iterator): Renamed from init_string_cursor.
7508 (get_next_display_element): Renamed from next_display_element.
7509 (move_iterator_forward): Renamed from advance_display_cursor.
7510 (get_overlays_at_iterator_position): Allocate overlays vector
7513 * xdisp.c: display_cursor renamed display_iterator.
7514 * dispextern.h: Ditto.
7517 1997-12-01 Gerd Moellmann <gerd@acm.org>
7519 * window.c (mark_window_cursors_off): Function comment added.
7520 (window_topmost_p, window_rightmost_p): Removed because not used.
7522 1997-11-30 Gerd Moellmann <gerd@acm.org>
7524 * emacs.c (main): Function prototypes removed in profiling code.
7525 Use safe_bcopy as start of text.
7527 * dispnew.c (update_frame_line): update_line -> update_frame_line;
7528 mirrored_make_current -> make_current.
7530 * xdisp.c: (store_frame_title_char): New function to store a
7531 single character for the frame title with re-allocation of
7533 (init_xdisp): Intialize frame_title_.* variables to null.
7535 * dispnew.c (quit_error_check): Removed.
7537 * eval.c (Fsignal): Call to quit_error_check removed.
7538 * keyboard.c (quit_throw_to_read_char): Ditto.
7540 1997-11-23 Gerd Moellmann <gerd@acm.org>
7542 * xfaces.c (Fset_face_attribute_internal): Allow nil relief
7543 to mean a zero relief.
7545 * .gdbinit (xprintsym): Print a symbol.
7546 (xbacktrace): Print a backtrace of Lisp function calls from
7549 1997-11-19 Gerd Moellmann <gerd@acm.org>
7551 * dispnew.c (new_glyph_matrix): Increment glyph_matrix_count
7553 (glyph_matrix_count, glyph_pool_count): Define unconditionally.
7554 (free_glyph_matrix): Decrement glyph_matrix_count unconditionally.
7555 (check_glyph_memory): Define function body unconditionally.
7557 1997-11-17 Gerd Moellmann <gerd@acm.org>
7559 * dispnew.c (scrolling_window): Alternative version of this
7562 1997-11-16 Gerd Moellmann <gerd@acm.org>
7564 * dispnew.c (make_empty_enabled_row): Make an empty, enabled row
7565 of height CANON_Y_UNIT.
7566 * dispextern.h: Prototype for that function.
7567 * xdisp.c (echo_area_display): Don't use display_string to
7568 produce empty rows. Use make_empty_enabled_row instead.
7570 * dispnew.c (scrolling_window): New version using diff-like
7571 algorithm activated.
7573 1997-11-15 Gerd Moellmann <gerd@acm.org>
7575 * dispnew.c (clear_current_matrices): Clear matrix of menu_bar_window
7576 (clear_desired_matrices): Ditto.
7577 (adjust_frame_glyphs_for_window_redisplay): Use FRAME_WINDOW_WIDTH
7578 for menu_bar_window.
7580 * alloc.c (mark_object): Mark menu_bar_window of frames.
7582 * xterm.c (XTupdate_window_end): Don't display cursor if
7585 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Don't
7587 (update_window): Don't set cursor if pseudo_window_p.
7589 * dispextern.h (WINDOW_WANTS_MODELINE_P): Test pseudo_window_p.
7591 * window.h (struct window): New flag pseudo_window_p set to
7592 1 for windows that aren't really part of the window tree, like
7593 menu_bar_window's of frames.
7594 * window.c (make_window): Initialize it.
7595 (replace_window): Ditto.
7596 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
7598 * frame.c (make_frame): Initialize menu_bar_window to nil.
7600 * xterm.c (XTget_display_info): FACE_SHADOW_THICKNESS renamed
7603 * xfaces.c (copy_face): shadow_thickness -> relief.
7605 (merge_faces): Ditto.
7606 (compute_base_face): Ditto.
7607 (Fset_face_attribute_internal): Ditto.
7608 * dispextern.h (struct face): Ditto.
7610 * dispnew.c (update_frame): Update menu_bar_window of the frame if
7613 * xdisp.c (display_menu_bar): Display the menu bar in
7614 f->menu_bar_window if appropriate.
7615 (display_mode_line): Use MATRIX_MODE_LINE_ROW.
7617 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Allocate
7618 dummy window and window matrices for f->menu_bar_window.
7619 (free_glyphs): Free the dummy window and its glyph matrices.
7621 * frame.h (struct frame): New member menu_bar_window.
7623 1997-11-09 Gerd Moellmann <gerd@acm.org>
7625 * dispnew.c (scrolling_window): New version with diff-like
7628 * xdisp.c (try_window_reusing_current_matrix): If new_start >
7629 old_start always start displaying at start of
7630 first_row_to_display. The previous scheme failed if the last row
7633 * dispnew.c (update_window): Remove cost calculations. Remove
7634 redundant preempt_count calculations.
7636 * xterm.c (x_clip_to_row): Set clipping for non-text rows
7639 * dispnew.c (update_window): Use WINDOW_WANTS_MODELINE_P.
7641 * window.c (syms_of_window): Functions for marginal areas if
7642 WITH_MARGINAL_AREAS is defined.
7644 * xdisp.c (try_window_reusing_current_matrix): Trace fprintf
7647 * dispnew.c (scrolling): Call line_hash_code because hash values
7648 are not set in the frame matrix.
7650 * xdisp.c (try_window_id): Fix scrolling for terminal frames.
7651 (redisplay_window): Check line_ins_del_ok before calling
7653 (try_window_reusing_current_matrix): Give up for terminal frames
7654 if window is not full width or we cannot insert/delete lines.
7655 (try_window_reusing_current_matrix): Fixed scrolling for terminal
7658 * alloc.c (mark_glyph_matrix): Bug fix - pass pointer to
7659 Lisp_Object to mark_object.
7661 * xdisp.c (sync_frame_with_window_matrix_rows): Make frame and
7662 window rows have the same glyph pointers.
7663 (try_window_id): Call it.
7665 * alloc.c (mark_glyph_matrix): Function to mark Lisp objects in
7667 (mark_object): Call it.
7669 * xdisp.c (insert_left_trunc_glyphs): Use 0 object in glyphs for
7671 (display_line): Ditto.
7672 (display_line): Ditto for DISP_CONTINUATION.
7673 (display_line): Truncation on right: test current_x >
7675 (skip_in_display_line_to): Ditto.
7676 (skip_via_matrix): Stop skipping in glyph row at face extending
7677 glyphs or at padding spaces.
7679 * dispnew.c (fill_up_glyph_row_with_spaces): Comment extended.
7681 * xdisp.c (display_line): Use glyph->object == 0 for padding
7683 (redisplay_window): Don't let cursor move over padding
7686 * dispextern.h (struct glyph): Fix comment for object.
7688 1997-11-08 Gerd Moellmann <gerd@acm.org>
7690 * dispextern.h (WINDOW_WANTS_MODELINE_P): Non-zero if a window
7692 * xdisp.c (redisplay_window): Use it.
7693 (display_mode_line): Check that window wants mode line.
7695 1997-11-03 Gerd Moellmann <gerd@acm.org>
7697 * xdisp.c (display_menu_bar): Enable menu bar rows.
7699 * xterm.c (x_draw_hollow_cursor): X positions based on text area.
7700 (x_erase_phys_cursor): Ditto.
7701 (x_draw_bar_cursor): Ditto.
7703 1997-11-02 Gerd Moellmann <gerd@acm.org>
7705 * dispnew.c (update_marginal_area): Update a marginal area.
7706 (update_text_area): Update text area.
7707 (update_window_line): Call both.
7709 * xterm.c (XTclear_end_of_line): Translate coordinates area
7712 * dispnew.c (updated_area): Row area being updated in
7714 (update_window_line): Set it.
7715 (update_marginal_area): Clear to end of line if not in text area.
7717 * window.c (Fset_window_margins): Increment
7718 windows_or_buffer_changed. Adjust glyphs.
7720 * dispextern.h (WINDOW_TEXT_TO_FRAME_PIXEL_X): Convert text
7721 area X coordinates to frame coordinates.
7722 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH): Width of left marginal area.
7723 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH): Same for right area.
7724 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Same for text area.
7726 * xterm.c (draw_glyphs): Use text area width as display width.
7728 * xdisp.c (init_display_info): Subtract widths of marginal areas
7729 from last_visible_x.
7731 * alloc.c (mark_object): Mark objects in glyphs only if they are
7732 overlays. Mark only if current_matrix != 0. Activate the code.
7734 * window.c (Fset_window_margins): Set margins.
7735 (Fwindow_margins): Return margin area widths.
7736 (syms_of_window): Add defsubr's.
7738 * window.h (struct window): left_margin_width, right_margin_width.
7740 * xfns.c (x_set_trunc_area_width): Set truncation pixel width
7743 * frame.h (FRAME_TRUNC_COLS): Number of columns occupied by
7744 truncation/overlay arrow area.
7745 (struct frame): trunc_area_pixel_width, and _cols.
7747 * window.c (Fsplit_window): Use it.
7749 * window.c (Fsplit_window): Set cursor vpos to -1 after
7751 (Fsplit_window): SUbtract/add FRAME_TRUNC_WIDTH for horizontally
7754 * dispnew.c (set_window_cursor_after_update): Accept out
7755 of bounds cursor positions.
7757 * xdisp.c (redisplay_internal): Check that after cursor motion
7758 within line, PT is on same line.
7760 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Don't subtract
7763 * xterm.h (struct x_output): trunc_area_extra.
7764 (CHAR_TO_PIXEL_WIDTH): Add in trunc_area_extra.
7765 (PIXEL_TO_CHAR_WIDTH): Subtract it.
7766 * widget.c (set_frame_size): Set it.
7767 (EmacsFrameSetCharSize): Ditto.
7768 * xfns.c (x_figure_window_size): Ditto.
7769 * xterm.c (x_set_window_size): Ditto.
7771 * dispnew.c (check_matrix_invariants): First try to check window
7774 * xdisp.c (try_window_reusing_current_matrix): Try window
7775 redisplay with different window start.
7777 1997-11-01 Gerd Moellmann <gerd@acm.org>
7779 * window.c (make_window): Set window_end_pos/vpos.
7780 (Fsplit_window): Zero last_cursor, window_end_valid.
7781 (Fset_window_buffer): Set window_end_vpos, zero last_cursor.
7783 * dispnew.c (check_matrix_invariants): Check window_end_pos/vpos.
7785 1997-10-31 Gerd Moellmann <gerd@acm.org>
7787 * window.c (make_window): Initialize last_cursor.
7788 (replace_window): Ditto.
7790 1997-10-29 Gerd Moellmann <gerd@acm.org>
7792 * window.h: New member last_cursor.
7793 * dispnew.c (direct_output_for_insert): Set it.
7794 (direct_output_forward_char): Ditto.
7795 * xdisp.c (redisplay_internal): Ditto.
7797 1997-10-28 Gerd Moellmann <gerd@acm.org>
7799 * xdisp.c (redisplay_internal): Optimization 1 change partially
7800 reverted. Check this again later.
7801 (skip_via_matrix): Remove redundent test for
7802 MATRIX_ROW_DISPLAYS_TEXT_P.
7804 1997-10-27 Gerd Moellmann <gerd@acm.org>
7806 * dispnew.c (update_window_line): Call
7807 after_update_window_line_hook only for interesting constellations.
7808 (free_glyph_matrix): Fix memory leak.
7810 * window.h: Include blocker WINDOW_H_INCLUDED, include
7812 (struct window): phys_cursor_glyph as struct glyph. * window.c
7813 (make_window): Initialize it.
7814 (replace_window): Ditto.
7815 * dispnew.c (free_window_matrices): Remove freeing of
7817 (check_matrix_invariants): Renamed from check_current_matrix_...
7818 * xterm.c: All references to phys_cursor_glyph changed.
7820 * dispextern.h (DISPEXTERN_H_INCLUDED: New include blocker.
7822 * xfaces.c: Comment update.
7824 * window.h (struct window): Make phys_cursor_glyph a struct glyph
7825 pointer. Remove phys_cursor_ascent, descent, etc.
7826 * dispnew.c (free_window_matrices): Free it.
7827 * window.c (make_window): Allocate it.
7828 (replace_window): Ditto.
7829 * xterm.c (x_draw_phys_cursor_glyph): Draw it.
7830 (x_display_and_set_cursor): Fill it.
7831 (x_phys_cursor_in_rect_p): Use it.
7832 (x_draw_hollow_cursor): Ditto.
7833 (x_draw_bar_cursor): Ditto.
7834 (x_erase_phys_cursor): Ditto.
7836 * xdisp.c (skip_in_display_line_to): Use SET_INFO_FROM_CURSOR.
7838 * xterm.c (XTget_display_info): Handle 3D facess.
7839 (draw_glyphs): Ditto.
7841 * xdisp.c (Fdump_redisplay_state): Change interactive spec to "p".
7843 * xfaces.c (Fset_face_attribute_internal): New face attribute
7845 (copy_face): Handle shadow_thickness.
7847 (merge_faces): Ditto.
7848 (compute_base_face): Ditto.
7850 * dispextern.h (struct display_cursor): New member start_of_3d_run_p.
7851 (struct display_info): Ditto.
7852 (SET_INFO_FROM_CURSOR): Transfer it to display_info.
7853 * xdisp.c (compute_cursor_face): Set it.
7854 (advance_display_cursor): Clear it.
7856 * xdisp.c (init_string_cursor): Initialize face_id to -1.
7857 (init_string_cursor): Init face_id to zero.
7859 * dispextern.h (struct face): New member shadow_thickness.
7861 * xdisp.c (compute_cursor_face): Set limit for text property
7864 * dispnew.c (update_window_line): Try to resynch with current line
7865 to prevent mode line flickering.
7867 1997-10-26 Gerd Moellmann <gerd@acm.org>
7869 * dispnew.c (set_window_cursor_after_update): React again
7870 on cursor_in_echo_area >= 0.
7872 * xdisp.c (echo_area_display): Clear desired matrix before
7874 (display_menu_bar): Clear glyph row instead of hoping it is not
7875 enabled. This is safer.
7877 * dispnew.c (check_current_matrix_invariants): Check only
7880 * xdisp.c (try_window_id): Handle window end setting in case of
7881 display to end of window, but only non-text lines displayed.
7883 * dispnew.c (check_current_matrix_invariants): Check nrows for zero.
7884 (check_current_matrix_invariants): Check used counts.
7888 * dispnew.c (scrolling): Use hash codes from rows.
7890 * xdisp.c (Fdump_redisplay_state): Dump current matrix.
7892 * dispnew.c (scrolling_window): Invalidate conflicting runs.
7894 1997-10-25 Gerd Moellmann <gerd@acm.org>
7896 * dispextern.h (struct glyph_matrix): Flag no_scrolling_p.
7897 * dispnew.c (update_window): Use it.
7898 (clear_glyph_matrix): Clear it.
7899 * xdisp.c (try_window_id): Set it.
7901 * dispextern.h (struct glyph_row): New flag ends_at_zv_p.
7903 * xdisp.c (redisplay_internal): Increment glyph positions differently.
7905 * dispextern.h: More comments etc.
7907 1997-10-24 Gerd Moellmann <gerd@acm.org>
7909 * dispnew.c (set_window_cursor_after_update): Set cursor
7910 for cursor_in_echo_area == 0 to (0, 0).
7912 * dispextern.h (struct glyph_row): New flags continuation_line_p
7913 and displays_text_p.
7914 (MATRIX_ROW_DISPLAYS_TEXT_P): Use displays_text_p.
7915 * xdisp.c (display_line): Set them.
7916 (try_window_id): Move to start of continuation line to find out
7917 continuation_line_width.
7918 (first_unchanged_current_row): Don't retract row if continued,
7921 * xterm.c: Map X coordinates.
7923 1997-10-23 Gerd Moellmann <gerd@acm.org>
7925 * dispnew.c (buffer_posn_from_coords): Translate X for right to
7928 * xdisp.c (display_line): Set right_to_left_p after clearing the row.
7930 * xterm.c (XTclear_end_of_line): Respect right_to_left_p.
7932 * xdisp.c (try_window_id): clear desired matrix if not successul.
7934 * xdisp.c (try_window_id): Call update_window_begin_hook/end_hook.
7936 * dispnew.c (update_window_begin_hook, update_winodw_end_hook):
7937 Set this to functions to be called before/after window updates.
7938 (direct_output_for_insert): Call them.
7939 (update_window): Ditto.
7940 (update_frame): Call update_begin/ update_end for windows.
7942 * xterm.c (XTupdate_window_begin): Called before window updates.
7943 (XTupdate_end): Called after window updates.
7944 (x_initialize): Set hooks to above.
7946 * xdisp.c (init_display_info): Initialize c and len of
7949 * xterm.c (x_get_char_font_and_encoding): Bug fix. Don't load
7950 fonts more than once.
7952 1997-10-22 Gerd Moellmann <gerd@acm.org>
7954 * xdisp.c (display_line): Handle most common case of current_x <
7955 last_visible_x separately.
7957 * dispextern.h (display_element_type): DISP_ELLIPSIS removed.
7959 * dispnew.c (update_window_line): Compare pixel widths of glyphs
7960 so that face extending space doesn't compare equal to normal space
7963 * xdisp.c (display_line): Make sure we have a position for
7964 a line end in an otherwise blank line if face is extended.
7966 * dispnew.c (direct_output_for_insert): Increment row end position.
7968 * window.c (Fpos_visible_in_window_p): Use old meaning of
7971 * xdisp.c (init_display_cursor_from_glyph_pos): New.
7973 * dispextern.h (MATRIX_ROW_FIRST_POS): Use row start.
7975 * dispnew.c (increment_glyph_row_buffer_positions): Adjust
7976 start and end positions in rows.
7977 (increment_glyph_row_buffer_positions): Stop adjusting at
7978 glyphs with positions <= 0.
7980 * dispextern.h (struct glyph_pos): Structure desribing a text
7981 position including position in overlay.
7982 (struct glyph_row): Use it for start and end positions.
7983 (struct display_cursor): Use it.
7985 (display_line): Set row start and end positions.
7987 * dispnew.c (copy_row_except_pointers): Use bcopy and struct
7990 1997-10-21 Gerd Moellmann <gerd@acm.org>
7992 * dispnew.c (update_window): Add scrolling_window again. It's
7993 necessary for scroll_step != 0.
7995 * xdisp.c (redisplay_window): Use vmotion for scroll_step
7998 * xdisp.c (last_unchanged_current_row): Use window_end_vpos.
8000 * xterm.c (XTupdate_end): Flush only for messages.
8002 * xdisp.c (try_window_id): Assert last_unchanged_row >=
8003 first_unchanged_row.
8005 * xterm.c (XTupdate_end): Flush if miniwindow.
8007 * dispnew.c (matrix_row_last_pos): New function.
8008 * dispextern.h (MATRIX_ROW_LAST_POS): Call it.
8009 Large comment moved to xdisp.c.
8011 * xdisp.c (redisplay_window): Bug fix: PT set to value > Z.
8012 (skip_via_matrix): Check window_end_valid instead of
8015 * dispnew.c (scroll_glyph_matrix_range): Bug fix.
8016 (update_window): scrolling_window commented out. It has negative
8017 effect most of the time.
8019 * xdisp.c (try_window_id): Correct parameters to
8020 scroll_glyph_matrix_range.
8022 * xterm.c (XTupdate_end): XFlush commented out.
8024 * window.h: Comments for window_end_pos/vpos.
8026 * xdisp.c (skip_to): assert current_buffer is the buffer
8027 of the window in which we are skipping.
8029 * dispnew.c (update_window_line): Optimized clear_end_of_line.
8031 * xterm.c (draw_glyphs): Bug fix. Return window relative X
8034 1997-10-20 Gerd Moellmann <gerd@acm.org>
8036 * dispextern.h (MATRIX_ROW_LAST_POS): Go back one glyph if this is
8037 a face extending glyph.
8039 * xdisp.c (try_window_id): Check if point will appear.
8040 (set_cursor_from_row): Set cursor position from a glyph row.
8042 * dispnew.c (update_window_line): Write entire line if hash
8043 codes of lines differ.
8045 * dispextern.h (MATRIX_ROW_EXTENDS_FACE_P): Value is non-zero
8046 if glyph row has an infinite width glyph at its end.
8048 * xdisp.c (last_unchanged_current_row): Respect partially visible
8049 lines when looking for the last row displaying text.
8050 (try_window_id): Handle partially visible lines better.
8052 1997-10-19 Gerd Moellmann <gerd@acm.org>
8054 * dispnew.c (update_window): Remove unused variable.
8055 (update_window_line): Simplified.
8057 * xterm.c (x_get_char_font_and_encoding): Handle most common
8058 case at the beginning.
8060 * xdisp.c (advance_display_cursor): Dispatch on method and
8061 order if statements by expected call frequency. Fixed unclosed
8064 * xdisp.c (try_window_id): New implementation.
8066 * dispnew.c (increment_glyph_row_buffer_positions): Capture
8067 rows displaying a line end, only.
8069 1997-10-18 Gerd Moellmann <gerd@acm.org>
8071 * window.c (Fpos_visible_in_window_p): Remove use of window_end_vpos.
8073 1997-10-14 Gerd Moellmann <gerd@acm.org>
8075 * xdisp.c (display_line): Mark empty lines not corresponding to
8076 text with position -1.
8078 * xterm.c (x_erase_phys_cursor): Don't bother to erase cursor if
8079 not within window matrix bounds.
8081 * dispextern.h (struct display_cursor): New member REGION_SHOWING_P.
8082 (struct display_info): NGLYPHS_TO_IGNORE removed.
8083 * xdisp.c: References to NGLYPHS_TO_IGNORE removed.
8087 * xdisp.c (init_display_cursor): Set it.
8088 (display_line): Use it to set W->REGION_SHOWING.
8090 * xdisp.c (skip_via_matrix): Check for overlay arrow.
8092 * region-cache.h: functino prototypes with PROTO.
8094 * dispnew.c (buffer_posn_from_coords): Use -1 as skip position.
8096 * xdisp.c (skip_via_matrix): Check for rows that don't contain
8099 * xterm.c (XTmouse_position): Calculate LAST_MOUSE_GLYPH
8100 rectangle based on minimum character bounds.
8102 * keyboard.c (make_lispy_event): mouse clicks; don't do frame
8103 glyph position calculations.
8104 (make_lispy_movement): Use buffer_posn_from_coords and window
8105 relative coordinates.
8107 * xterm.c (construct_mouse_click): Remove #if 0 case.
8109 * dispextern.h (MATRIX_ROW_BOTTOM_Y): Return bottom pixel y of
8112 * xdisp.c (skip_via_matrix): Skip using current matrix if up to
8115 (redisplay_window): Remove code skipping using current matrix.
8117 1997-10-13 Gerd Moellmann <gerd@acm.org>
8119 * xdisp.c (redisplay_window): Use available current matrix to
8120 skip faster when only point is moved withing the window.
8122 * intervals.c: Include stdio.h.
8123 (find_interval): Trace to stderr to catch some nasty error
8124 that did not yet occur again with tracing.
8127 * dispnew.c (shift_glyph_matrix): Experimental code for handling
8128 cursor positioning on partially visible lines.
8129 (set_window_cursor_after_update): Ditto.
8131 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): bug fix.
8133 * window.h (struct window): start_y removed.
8135 * window.c (make_window): start_y removed.
8136 (replace_window): Ditto.
8138 * xdisp.c (last_max_ascent, last_max_descent): Ascent and
8139 descent values of the last line processed by skip_to.
8140 (redisplay_window): Use them.
8141 (skip_to): Set them.
8143 * dispextern.h (struct display_cursor): New member METHOD.
8145 * xdisp.c: Use function member METHOD.
8147 * xdisp.c (set_next_stop_pos): Determine next position at which to
8148 check for face properties, invisible text properties, and overlays.
8149 (compute_cursor_face): Use it.
8150 (get_overlays_for_cursor): Ditto.
8151 (reseat_cursor): Ditto.
8152 (next_display_element): Ditto.
8154 Sun Aug 24 08:50:52 1997 Gerd Moellmann <gerd@acm.org>
8156 * termhooks.h: Some hooks with prototypes.
8158 * term.c: Some hooks with function prototypes.
8160 * xdisp.c (reseat_cursor): Additional argument force_p. Avoid
8161 computing face if possible.
8163 * xdisp.c (next_display_element): Use face from glyph from display
8166 * emacs.c: FreeBSD headers for profiling removed.
8168 * dispnew.c (direct_output_for_insert): Don't use PT-1 for
8169 display cursor, use DEC_POS instread.
8171 * xfaces.c (load_font): Use x_load_font to load fonts so that
8172 all fonts are in the font table.
8173 (unload_font): Don't XFreeFont.
8175 * dispnew.c (row_equal_p): Compare ascent, descent and visible
8178 * xterm.c (draw_glyphs): Use 8-bit functions if possible.
8179 (x_erase_phys_cursor): Clear only visible part of row.
8180 (x_draw_bar_cursor): Set clipping.
8181 (x_draw_hollow_cursor): Ditto.
8182 (x_display_and_set_cursor): Remove clipping.
8183 (expose_window_tree): Take trunc border into account.
8184 (x_phys_cursor_in_rect_p): Test if phys_cursor intersects a rect.
8185 (expose_window): Use it.
8187 * xdisp.c (display_string): Catch case that we are called with
8188 current_x already beyond max_x.
8189 (global): Fix usage of FRAME_WINDOW_P <-> FRAME_WINDOW_REDISPLAY_P.
8190 (init_display_info): Subtract vertical border glyph from
8193 * scroll.c (scrolling_window_1): Removed.
8195 * dispnew.c (adjust_frame_glyphs): Split into two functions,
8196 based on redisplay method used.
8197 (adjust_frame_glyphs_for_frame_redisplay): Part for frame
8199 (adjust_frame_glyphs_for_window_redisplay): Part for purely
8200 window based redisplay.
8202 * frame.h (FRAME_WINDOW_REDISPLAY_P): Changed to not depend
8205 * dispnew.c (adjust_glyph_matrix): Additional parameter W.
8206 Handle own storage for purely window based redisplay.
8207 (allocate_matrices_for_frame_redisplay): Formerly part of
8209 (allocate_matrices_for_window_redisplay): Ditto.
8211 * dispextern.h (struct glyph_matrix): window_top_y,
8214 * dispnew.c (allocate_matrices_for_window_redisplay): Detect
8215 and optimize some common cases of window changes.
8217 * emacs.c (main): Remove own profiling code because 0.95 now
8220 Fri Aug 22 18:46:43 1997 Gerd Moellmann <gerd@acm.org>
8222 * xterm.c (XTupdate_end): Draw horizontal border at right
8224 (expose_window): Draw vertical border.
8225 (XTclear_end_of_line): Accept width <= 0 and height <= 0 but
8228 * xdisp.c (redisplay_internal): Set update_mode_line if paused
8229 for non full width windows only if not window redisplay.
8231 * dispnew.c (update_window_tree): Or paused_p return of called
8234 * xterm.c (x_display_and_set_cursor): Return if hpos/vpos outside
8237 * window.c (Fset_window_configuration): adjust_glyphs being
8239 (Fset_window_configuration): Set frame garbaged if not all
8240 leaf windows reused.
8242 1997-08-21 Gerd Moellmann <gerd@acm.org>
8244 * dispnew.c (clear_glyph_matrix): Additional argument specifiying
8245 that rows should really be cleared. Used for current matrices.
8247 * dispnew.c (scrolling_window): Bug fix.
8248 (line_dance_hook): Formerly line_dance_fn, take only one
8251 * dispextern.h (struct run): Remove current_vpos.
8253 * xterm.c (do_line_dance): Only one parameter.
8255 * xdisp.c (display_line): set continued_p.
8257 * dispextern.h (struct glyph_row): New flag continued_p.
8258 Fix truncated_on_left_p and truncated_on_right_p to be bits.
8261 Thu Aug 21 14:37:34 1997 Gerd Moellmann <gerd@acm.org>
8263 * xdisp.c (skip_vertically_backward): Avoid negative vpos values
8264 when calling skip_to for continued lines.
8266 * dispnew.c (change_frame_size_1): Set frame garbaged.
8268 * xterm.c (expose_window): Check enabled_p of rows.
8270 * xdisp.c (redisplay_internal): Compare line heights before and
8271 now for redisplay optimization 2 (hit).
8272 (display_line): Set this_line_pixel_height.
8274 * xterm.c (x_draw_row_borders): Use FRAME_MODE_LINE_HEIGHT height
8276 (x_clip_to_row): Use MATRIX_ROW_VISIBLE_HEIGHT. Simplified.
8277 (do_line_dance): Simplified and pixel corrected.
8279 * dispnew.c (scrolling_window): Simplified.
8281 * xterm.c (x_draw_3d_border): Inset rectangle by line width.
8283 * dispnew.c (update_window): Add FRAME_MODE_LINE_BORDER_WIDTH
8284 to mode line row->x.
8286 Wed Aug 20 11:23:28 1997 Gerd Moellmann <gerd@acm.org>
8288 * xterm.c (x_get_char_font_and_encoding): Don't let fontset
8289 override font of face.
8290 (draw_glyphs): Correct return value.
8291 (XTclear_end_of_line): Compare differently with output cursor
8293 (x_draw_hollow_cursor): 2 parameters, window and row.
8295 * dispnew.c (update_window_line): If rows have different height
8296 or y, write entire line.
8298 * xdisp.c (compute_line_metrics): reset max_ascent and max_descent
8301 * xfaces.c (Fset_face_attribute_internal): Don't call
8302 frame_update_line_height.
8303 (merge_faces): Don't use default font if new font has different
8306 Tue Aug 19 14:38:05 1997 Gerd Moellmann <gerd@acm.org>
8308 * xterm.c (x_display_and_set_cursor): Use FONT_WIDTH if width
8309 unknown. Some fonts have min_width zero.
8310 (draw_glyphs): Don't draw underlines to the end of the display
8311 line if face is merely extended to that point.
8312 (draw_glyphs): Don't assume background is filled if
8313 just_foreground_p but extending to end of line.
8315 * xterm.c (XTclear_end_of_line): Clip only to display_height - 1
8316 for partially visible last lines.
8317 (x_clip_to_row): Ditto.
8318 (x_clip_to_row): Clip to display_height-1 if y + line_height >
8319 display_height since line_height is really a line distance.
8320 (x_display_and_set_cursor): If cursor on padding glyph, use
8321 min_bounds pixel width.
8323 Mon Aug 18 09:39:18 1997 Gerd Moellmann <gerd@acm.org>
8325 * xterm.c (x_clip_to_row): Height value was 1 too large.
8326 (XTclear_end_of_line): Clip to display area.
8328 * xfns.c (x_figure_window_sizes): Add trunc border width
8329 to frame pixel width.
8331 * xdisp.c (next_display_element): Don't display overlay strings
8332 within invisible text.
8333 (skip_vertically_backward): Skip display lines.
8335 Sat Aug 16 13:13:32 1997 Gerd Moellmann <gerd@acm.org>
8337 * xdisp.c (x_consider_frame_titie): Don't pad with blanks.
8339 * xdisp.c (next_display_element): Next invisible
8340 text check position computed differently.
8342 * dispextern.h (struct display_cursor): last_invisible_text_pos
8343 and display_ellipsis_for_invisible_p removed.
8345 * xdisp.c (next_display_element): Set last_invisible_text_pos
8346 to the last position at which invisible text was found. Don't
8347 decrement cursor.pos for newlines and cr with ellipsis. Set
8348 dpvec for `...' due to invisible text directly.
8349 (redisplay_internal): Don't assert that cursor is at PT after
8350 skip_to. It may be in invisible text.
8352 * keyboard.c (make_lispy_event): For mouse clicks, use
8355 * xdisp.c (next_display_element): Call get_overlays_for_cursor when
8356 next_overlay_pos is reached. Use limit cursor.pos + 100 when
8357 checking for invisible text.
8359 * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed.
8361 * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c
8363 * xfns.c (x_contour_region): Use pixel coordinates from window
8364 cursor instead of WINDOW_TO_FRAME_H/VPOS.
8366 * dispextern.h (FRAME_TO_WINDOW_HPOS, FRAME_TO_WINDOW_VPOS):
8369 * dispnew.c (frame_to_window_hpos, frame_to_window_vpos): Removed.
8371 * xterm.c (x_y_to_hpos_vpos): Get hpos/vpos from window relative
8373 (note_mouse_highlight): Use it.
8375 * xdisp.c (echo_area_display): Ignore calls for terminal frames
8376 under a window system.
8378 * dispnew.c (adjust_frame_glyphs): Call redraw_frame if
8380 (update_window_line): Add width of face padding glyph to
8381 displayed widths of rows.
8383 * xterm.c (x_display_and_set_cursor): Set clipping after
8386 * window.c (Fset_window_configuration): Free only those
8387 window matrices not reused.
8388 (get_leaf_windows): Build vector of leaf windows.
8389 Corrupted archive restored from v77.
8391 * xdisp.c (display_string): stop at >= last_visible_x if truncating
8392 like display_line does.
8394 * xdisp.c (display_mode_line): Don't hscroll mode line.
8396 * xterm.c (draw_glyphs): Wrong run_width computed for horiz. split
8398 (x_scroll_bar_create): #3039 Clear area below scroll bar to remove
8399 garbage between mode lines when splitting windows horiz.
8401 * dispnew.c (direct_output_for_insert): Bug fix.
8403 * dispextern.h (struct display_cursor): New member string_length.
8405 * xdisp.c (next_display_element): Return padding spaces.
8406 (init_string_cursor): take precision and field_width
8407 (display_string): Use string cursor, skip over invisible text.
8409 Thu Aug 14 10:41:41 1997 Gerd Moellmann <gerd@acm.org>
8411 * xterm.c (x_clip_to_row): Clip to partially visible lines.
8412 (x_display_and_set_cursor): Call it.
8413 (draw_glyphs): Call it
8414 (draw_bitmap): Call it.
8416 * dispnew.c (adjust_frame_glyphs): Optimize frame garbaging.
8417 (allocate_leaf_matrix): Return flags.
8418 (row_equal_p): Compare enabled_p.
8420 * xterm.c (x_erase_phys_cursor): Set phys_cursor_on_p to 0
8423 * xterm.c (x_display_and_set_cursor): Bar cursor 1 pixel taller.
8424 (draw_glyphs): Clip height one pixel taller.
8426 * dispnew.c (direct_output_for_insert): Give up for hscrolled
8429 * xdisp.c (display_line): don't scroll mini prompt.
8431 * xdisp.c (echo_area_display): Call update_single_window if
8434 * dispnew.c (update_window_line): Call scrolling_window.
8435 (scrolling_window): work on enabled desired lines only.
8436 (update_single_window): Update a single window like update_frame
8437 does for all windows.
8438 (update_window, update_window_tree): Additional argument
8440 (update_frame): Pass no_scrolling_p to update_window_tree.
8441 (update_window): Don't call scrolling_window if no_scrolling_p.
8443 * xterm.c (x_erase_phys_cursor): Do nothing if type == -1.
8444 Erase under hollow cursor.
8445 (x_display_and_set_cursor): Do nothing if cursor glyph row
8446 not enabled. Draw bar cursor 1 pixel smaller.
8448 * dispnew.c (adjust_frame_glyphs): don't set frame garbaged
8449 since update will follow soon.
8451 * xdisp.c (echo_area_display): Unitialized variable.
8453 * xterm.c (draw_bitmap): previously draw_truncation; draw
8454 overlay arrow bitmap.
8456 * xdisp.c (display_line): for truncated lines, consider everything
8457 up to the final \n as part of the line for cursor positioning.
8459 * xterm.c (draw_truncation): take FRAME_X_TRUNC_WIDTH into account.
8460 (x_after_update_window_line): clear trunc marks.
8462 * xterm.h (FRAME_X_TRUNC_WIDTH).
8464 * frame.h (FRAME_TRUNC_WIDTH): width of area at the left margin
8465 of a window reserved for truncation mark.
8467 * dispextern.h: Take FRAME_TRUNC_WIDTH into account.
8469 * dispnew.c (update_window_line): Call after_update_windwo_line-
8472 * xdisp.c (display_line): Set overlay_arrow_p in row.
8474 * dispextern.h (struct glyph_row): New flag overlay_arrow_p.
8476 * xterm.c (x_after_update_window_line): Draw truncation marks.
8478 * xdisp.c (display_line): Insert truncation for lines with
8481 * xterm.c (x_draw_row_borders): Convert y to frame coords.
8483 (x_display_cursor): Use default font width if width not
8486 * xdisp.c (echo_area_display): set row->y.
8488 * dispnew.c (set_window_cursor_after_update): Don't assume
8489 all rows are enabled.
8491 * xdisp.c (skip_in_display_line_to): Test cursor.position instead
8493 (skip_in_display_line_to): Check cursor.position after call to
8494 next_display_element.
8496 * dispextern.h (CURSOR_AT_P): Test if cursor has reached
8499 * xdisp.c (display_line): Set row->y here.
8500 (skip_in_display_line_to): Test for to_pos after all glyphs
8501 have been added to hpos so that hpos is at the end of all
8503 (start_display): Remove assertion.
8505 * dispnew.c (direct_output_forward_char): Bug fix, = instead of
8507 (update_window): Don't set row->y here.
8509 * xdisp.c (next_display_element): Don't translate control chars
8510 from display table entries.
8512 * dispnew.c (direct_output_for_insert): Set cursor before
8513 update end to prevent cursor flickering. Revert changes to
8514 setting cursor.endpos.
8516 Wed Aug 13 10:46:12 1997 Gerd Moellmann <gerd@acm.org>
8518 * dispnew.c (direct_output_for_insert): Don't set cursor.endpos
8519 to PT because this prevents multi-byte characters from being
8522 * xdisp.c (skip_to, display_line): Advance cursor at end of
8525 * xterm.c (x_draw_3d_borders): Use CapRound. Struct rect
8526 replaced by XRectangle.
8528 * dispnew.c (scrolling_window): New method.
8530 * xterm.c (do_line_dance): New implementation, new method.
8532 * xdisp.c (draw_glyphs): Draw truncation bitmaps. Clip to
8533 visible part of line.
8535 * dispnew.c (update_window_line): Fill inverse video lines
8536 with infinite width space.
8537 (update_window): Handle completely empty matrices.
8538 (set_window_cursor_after_update): Bug fix.
8540 * xterm.c (draw_glyphs): Stop drawing at right window end.
8542 * dispnew.c (update_window_line): Don't ignore spaces, don't
8545 * xdisp.c (compute_line_metrics): Stop adding glyph widths with
8546 the first glyph having width 0.
8548 * xterm.c (draw_glyphs): Let a glyph pixel with of 0 denote
8549 a glyph that extends to the end of the line.
8551 * xdisp.c (display_line): Insert one padding glyph
8553 * xdisp.c (skip_in_display_line_to): Don't subtract shift left
8554 amount from info.current_x.
8555 (display_line): Ditto.
8557 * dispnew.c (direct_output_for_insert): Correct use of cursor.x.
8558 (change_frame_size_1): Correct cursor.x if frame gets too small.
8559 (update_window_line): Start at row->x.
8561 * xdisp.c (redisplay_internal): Correct cursor.x (everwhere
8564 * xterm.c (set_output_cursor): Use window relative X/Y.
8565 (global): Use window relative output cursor x/y.
8566 (draw_glyphs): Remove y param. Pass window relative x/y.
8568 * dispnew.c (update_window): Start rows at start_y.
8569 (update_window): Don't try scrolling because it wouldn't work
8570 with variable height lines, anyway.
8572 * dispextern.h (struct glyph_row): Remove shift_left_by,
8575 * window.h: (struct window): New member start_y.
8577 * window.c (replace_window): Initialize start_y.
8578 (make_window): Ditto.
8580 Tue Aug 12 14:53:04 1997 Gerd Moellmann <gerd@acm.org>
8582 * xterm.c (draw_glyphs): Clip rows that would paint over
8585 * dispnew.c (update_window): Take mode line border into
8588 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Number of pixels
8589 of border around mode line.
8591 * xterm.c (x_draw_row_borders): Bug fix.
8592 (x_erase_phys_cursor): Set pyhs_cursor.x/y before calling
8595 * xterm.c (x_draw_row_border): Experimental; draw 3d borders
8596 around modeline instead of inverting it.
8598 * xterm.c (glyph_to_pixel_coords): Use current matrix.
8600 * dispnew.c (buffer_posn_from_coords): Use SKIP_TO. Now takes
8601 window relative pixel coordinates as arguments.
8603 * keyboard.c (make_lispy_event): Use BUFFER_POSN_FROM_COORDS
8604 with window relative pixel coordinates. Use GLYPH_TO_PIXEL_-
8605 COORDS mit new arguments.
8607 Mon Aug 11 12:32:34 1997 Gerd Moellmann <gerd@acm.org>
8609 * xdisp.c (start_display): Use SKIP_TO instead of SKIP_IN-
8612 * keyboard.c (make_lispy_event): WINDOW_FROM_COORDINATES with
8614 (make_lispy_movement): Same.
8616 * xterm.c (note_mouse_highlight): Use WINDOW_FROM_COORDINATES
8617 with new parameter meaning.
8619 * window.c (Fcoordinates_in_window_p): Convert Lisp params
8620 from canon units to pixels.
8621 (coordinates_in_window): Pixel based.
8622 (Fcoordinates_in_window_p): Convert result pixel values back
8625 * window.h: phys_cursor_ascent + descent instead of height.
8627 * xterm.c (XTget_char_info): Use per char metrics for multi-byte
8628 chars with charset width 1.
8630 * dispnew.c (direct_output_for_insert): Set updated_row.
8632 Sat Aug 9 12:11:44 1997 Gerd Moellmann <gerd@acm.org>
8634 * dispextern.h (struct glyph): Padding flag removed.
8636 Tue Aug 5 09:59:08 1997 Gerd Moellmann <gerd@acm.org>
8638 * sysdep.c (reset_sys_modes): cursor_to with 4 params.
8640 * keyboard.c (interrupt_signal): Cursor_to with 4 params.
8642 * dispnew.c (update_window_line): Use pixels.
8644 * xdisp.c (compute_line_metrics): Correct pixel_width by
8647 * dispextern.h (struct glyph_row): FIRST_SHIFTED_LEFT_GLYPH
8648 removed. Remove references to it everywhere. Reverse_p in
8649 glyph_row -> right_to_left_p. Change references to it.
8651 Mon Aug 4 18:09:27 1997 Gerd Moellmann <gerd@acm.org>
8653 * dispnew.c (direct_output_for_insert): Use INSERT_GLYPHS.
8655 * xterm.c (XTinsert_glyphs): Implement it.
8657 * term.c (insert_glyphs): UPDATING_FRAME may be NULL in case
8658 of a call from DIRECT_OUTPUT_FOR_INSERT.
8660 * window.h (struct cursor_pos): Keeps both matrix positions
8661 and pixel positions.
8662 (struct window): Use it.
8664 * dispnew.c (direct_output_for_insert): New version.
8666 * xdisp.c (redisplay_internal): Don't do anything if it has
8667 already be done directly.
8669 * keyboard.c (command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
8672 Thu Jul 31 15:39:10 1997 Gerd Moellmann <gerd@acm.org>
8674 * xdisp.c (echo_area_display): Use new DISPLAY_STRING.
8676 Wed Jul 30 12:18:03 1997 Gerd Moellmann <gerd@acm.org>
8678 * dispextern.h (struct glyph_row): MAX_ASCENT, MAX_DESCENT.
8679 (struct glyph): ASCENT, DESCENT.
8680 (MATRIX_ROW_PIXEL_HEIGHT): Pixel height of row.
8681 (GLYPH_PIXEL_HEIGHT): Pixel height of glyph.
8683 * xterm.c (XTget_display_info): Correct tab computation.
8685 * term.c (get_display_info): Correct tab computation.
8687 * dispextern.h (struct display_cursor): WHAT_FOUND, SOURCE_OBJECT.
8688 Renamed from CHAR_CURSOR.
8690 Tue Jul 29 12:52:40 1997 Gerd Moellmann <gerd@acm.org>
8692 * xdisp.c (display_text_line): Mostly pixel oriented.
8694 * dispextern.h (struct glyph): BOX_WIDTH -> PIXEL_WIDTH.
8696 * term.c (append_intermediate_glyph): Generate padding glyphs.
8698 * xdisp.c (display_text_line): More into final direction.
8700 * xterm.c (XTget_char_info): Use WHAT field of CHAR_INFO.
8701 (XTget_char_info): Use tabs as multiples of spaces.
8703 * term.c (get_char_info): Use WHAT field of CHAR_INFO.
8704 Use tabs as multiples of spaces.
8706 * dispextern.h (struct char_info ): WHAT field.
8708 * term.c (encode_terminal_code): Don't use GLYPH_CHAR, use
8709 FAST_GLYPH_CHAR instead because GLYPH_CHAR won't remove faces.
8711 Mon Jul 28 14:23:06 1997 Gerd Moellmann <gerd@acm.org>
8713 * dispnew.c (init_char_info): Correct TAB_WIDTH to a reasonable
8715 (init_char_info): Initialize with glyph row.
8717 * term.c (get_char_info): Check WANT_ELLIPSIS_P.
8719 * xterm.c (XTget_char_info): Check WANT_ELLIPSIS_P.
8721 * dispextern.h (struct char_info ): GLYPH_ROW for intermediate
8724 * dispnew.c (init_char_info): Init GLYPH_ROW to NULL. CHAR_CURSOR
8727 * xdisp.c (display_text_line): Use CHAR_CURSOR.
8729 * xterm.c (x_append_intermediate_glyph): Intermediate glyph
8731 (XTget_char_info): Ditto.
8733 * term.c (get_char_info): Intermediate glyph generation.
8734 (append_intermediate_glyph): Ditto.
8736 Sun Jul 27 18:57:24 1997 Gerd Moellmann <gerd@acm.org>
8738 * dispnew.c (compute_char_cursor_face): Compute the face for a
8740 (init_char_cursor): Initialize a CHAR_CURSOR.
8741 (get_char_and_advance): Get next character to display.
8743 * dispextern.h (struct char_cursor): Cursor for iterating over
8744 display text of CURRENT_BUFFER.
8746 Sat Jul 26 13:33:03 1997 Gerd Moellmann <gerd@acm.org>
8748 * term.c (get_char_info): Set MAX_PIXEL_WIDTH in CHAR_INFO.
8750 * dispextern.h (struct char_info ): Use LISP_CHAR_TABLE for DP.
8751 New member MAX_PIXEL_HEIGHT.
8753 * xterm.c (x_per_char_metric): Get per character metrics.
8754 (XTget_char_info): More cases covered.
8756 * term.c (get_char_and_info): Get next character and character
8757 display information.
8758 (get_char_info): Get character display information.
8760 * dispextern.h: Character display information.
8762 * xterm.c (x_get_char_font_and_encoding): Get font and
8764 (XTget_char_info): Get display information about a character.
8766 Wed Jul 23 16:50:18 1997 Gerd Moellmann <gerd@acm.org>
8768 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Height is
8769 zero if window is mini-window.
8771 * xdisp.c: Include xterm.h or w32term.h for FRAME_LINE_HEIGHT.
8772 (try_window): DISPLAY_TEXT_LINE as long as Y < DISPLAY_HEIGHT.
8774 * dispnew.c (assign_row): Assign row pixel height.
8775 (clear_glyph_row): Clear pixel height.
8776 (update_window): Use PIXEL_HEIGHT.
8778 * xdisp.c (display_string): Set row pixel height temporarily.
8779 (display_text_line): Ditto.
8781 * dispextern.h (GLYPH_PIXEL_WIDTH):
8782 (GLYPH_PIXEL_HEIGHT): Get glyph pixel dimension.
8784 * frame.h (FRAME_DEFAULT_PIXEL_LINE_HEIGHT): Get height of
8785 line in default font.
8786 (FRAME_DEFAULT_GLYPH_PIXEL_WIDTH): Get width of character
8788 (FRAME_MODE_LINE_PIXEL_HEIGHT): Get height of mode line.
8790 * xterm.h (FRAME_MODE_LINE_HEIGHT): Return height of mode line
8793 * dispnew.c (allocate_leaf_matrix): Use window pixel macros.
8795 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH):
8796 (WINDOW_DISPLAY_PIXEL_HEIGHT):
8797 (WINDOW_DISPLAY_MODE_LINE_HEIGHT):
8798 (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
8799 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X):
8800 (WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X):
8801 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y):
8802 (WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y): Macros to get various
8803 pixel values related to windows.
8805 Mon Jul 21 12:22:02 1997 Gerd Moellmann <gerd@acm.org>
8807 * xterm.c (XTflash): Flash last line of frame.
8809 * dispextern.h (cursor_in_echo_area): Extern declaration.
8811 * xterm.c (dumpglyphs): 8-bit version to test if my Xserver
8812 freezes stem from 16-bit functions.
8814 * xterm.c (x_display_and_set_cursor): Don't display hollow
8815 cursor in mini windows.
8817 * window.c (replace_window): Initialize PHYS_CURSOR_TYPE.
8818 (make_window): Ditto.
8820 * xterm.c (x_erase_phys_cursor): Erase cursor image.
8821 (x_display_and_set_cursor): Merged version of X_DISPLAY_BOX_CURSOR
8822 and X_DISPLAY_BAR_CURSOR.
8823 (x_display_cursor): Use it.
8824 (x_update_window_cursor): Use it.
8826 * xdisp.c (display_text_line): Set cursor for window even if not
8829 * xterm.c (x_display_bar_cursor): Use HPOS and VPOS instead
8830 of X and Y to denote matrix positions.
8831 (x_display_cursor): Ditto.
8833 * dispnew.c (scrolling_window): Scrolling for windows.
8835 Wed Jul 16 13:37:51 1997 Gerd Moellmann <gerd@acm.org>
8837 * dispnew.c (build_frame_matrix): Work on windows with update
8839 (build_frame_matrix_from_window_tree): Ditto.
8840 (build_frame_matrix_from_leaf_window): Ditto.
8842 * xdisp.c (echo_area_display): Set MUST_BE_UPDATED_P instead of
8843 building frame matrix.
8844 (redisplay_internal): Set window update flags instead of
8845 building frame matrix.
8847 * minibuf.c (read_minibuf): Set MUST_BE_UPDATED_P instead of
8848 building frame matrix.
8850 * window.c (make_window): Initialize new members.
8851 (replace_window): Ditto.
8853 * xfns.c (Fx_create_frame): Don't set PHYS_CURSOR_X to -1.
8854 I don't believe this is really necessary.
8856 * dispnew.c (build_frame_matrix_from_leaf_window): Determine
8859 Tue Jul 15 13:58:33 1997 Gerd Moellmann <gerd@acm.org>
8861 * window.c (mark_window_cursors_off): Mark all cursors in
8864 * xterm.c (x_display_box_cursor): Window paraemter. Use
8866 (glyph_to_pixel_pos): Convert matrix pos -> pixels.
8867 (pixel_to_glyph_pos): Convert pixel pos -> matrix pos.
8868 (x_update_cursor): Work on windows.
8869 (x_display_bar_cursor): Ditto.
8870 (x_draw_single_glyph): Ditto.
8872 * xterm.h: Prototype for X_DISPLAY_CURSOR.
8874 * xterm.c (XTcursor_to): Void return type. Test for
8875 UPDATED_WINDOW. Call x_display_cursor with window.
8876 (x_display_cursor): Void return type. Window instead of frame
8879 * window.h (WINDOW_RIGHTMOST_P, WINDOW_TOPMOST_P): Use functions
8882 * window.c (window_rightmost_p, window_topmost_p): Based on
8885 * dispnew.c (adjust_frame_message_buffer): Allocate with
8886 FRAME_MESSAGE_BUF_SIZE.
8888 * window.h: PHYS_CURSOR_.* added.
8890 * frame.h (struct frame): Cursor information removed.
8892 * frame.h (FRAME_SCROLL_BAR_WIDTH): Removed because unused.
8893 (FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
8895 * window.h (WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
8897 * window.c (window_internal_width): Scroll bars no longer
8900 * xterm.c (XTclear_end_of_line): FRAME_LEFT_SCROLL_BAR_WIDTH
8903 * xfns.c (x_set_scroll_bar_width): FRAME_LEFT_SCROLL_BAR_WIDTH
8906 * xdisp.c (echo_area_display): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
8907 (redisplay_internal): Ditto.
8908 (redisplay_window): Ditto.
8909 (redisplay_window): Ditto.
8910 (display_text_line): Ditto.
8911 (display_mode_line): Ditto.
8913 * minibuf.c (read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
8915 * dispnew.c (set_cursor_to): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
8916 (direct_output_for_insert): Ditto.
8917 (direct_output_forward_char): Ditto.
8918 (update_frame_1): Ditto.
8920 Mon Jul 14 12:30:03 1997 Gerd Moellmann <gerd@acm.org>
8922 * dispnew.c (updated_window): Set by UPDATE_WINDOW to the window
8924 (update_window): Set and clear it.
8926 * dispnew.c (update_window_line, update_window, scrolling_window):
8929 * dispnew.c (build_frame_matrix_from_leaf_window): Add vertical
8930 bar for window borders.
8931 (fill_up_glyph_row_area_with_spaces): Fill an area of a row
8933 (fill_up_glyph_row_with_spaces): Call above function.
8935 * xdisp.c (display_text_line): Don't add vertical bar for
8937 (display_string): Ditto.
8939 * window.c (make_window): Init CURSOR_VPOS/HPOS.
8940 (replace_window): Ditto.
8942 * xterm.c (XTwrite_glyphs): Use selected window cursor position.
8944 * xfns.c (Fx_contour_region): Use selected window cursor position.
8945 (Fx_uncontour_region): Ditto.
8946 (Fx_select_region): Ditto.
8948 * frame.c (make_frame): Remove CURSOR_X/Y.
8950 * xdisp.c (redisplay_internal): Use window cursor position.
8952 * dispnew.c (update_frame_1): Use cursor position of selected
8954 (change_frame_size_1): Ditto.
8956 * xterm.c (XTupdate_begin): Set CURS_X/Y from selected window.
8957 (XTwrite_glyphs): Use cursor position of selected window.
8959 * xfns.c (x_set_scroll_bar_width): Set cursor pos of selected
8962 * dispnew.c (set_cursor_to): Set window cursor position.
8963 (direct_output_for_insert): Use window cursor position.
8964 (init_display): Don't use frame cursor position.
8966 * window.h: CURSOR_VPOS/HPOS added.
8968 * frame.h (struct frame): CURSOR_X/Y removed.
8969 (FRAME_CURSOR_X): Removed.
8970 (FRAME_CURSOR_Y): Ditto.
8972 * dispnew.c (direct_output_for_insert): LAST_POINT_X removed.
8973 (direct_output_forward_char): Ditto.
8975 * xdisp.c (redisplay_internal): LAST_POINT_X and LAST_POINT_Y
8978 * window.c (make_window): LAST_POINT_X and LAST_POINT_Y removed.
8980 * window.h: LAST_POINT_X and LAST_POINT_Y removed.
8982 Sun Jul 13 14:18:24 1997 Gerd Moellmann <gerd@acm.org>
8984 * xdisp.c: Bug fixes using SET_CURSOR with HPOS 0 instead
8985 of FRAME_LEFT_SCROLL_BAR_WIDTH.
8987 * dispextern.h: Changed function names.
8989 * dispnew.c (scrolling): Don't call SCROLLING_1 if WINDOW_SIZE
8991 (clear_window_matrices): Formerly two functions for desired
8993 (update_frame_1): Call CLEAR_DESIRED_MATRICES.
8994 (update_frame): Return return value from UPDATE_FRAME_1.
8996 Sat Jul 12 12:58:48 1997 Gerd Moellmann <gerd@acm.org>
8998 * xdisp.c (try_window): Set WINDOW_END_VPOS with window relative
9001 * frame.c (set_menu_bar_lines): Adjust matrices.
9003 * dispnew.c (set_cursor_to): Set cursor position.
9005 * minibuf.c (read_minibuf): Build frame matrix.
9007 * xdisp.c (this_line_start_hpos): Renamed to
9008 THIS_LINE_START_WINDOW_HPOS to make it clear that this is window
9010 (this_line_vpos): Renamed to THIS_LINE_WINDOW_VPOS for the same
9013 * dispnew.c (build_frame_matrix): Don't clear rows of the
9015 (clear_window_records): Clear window rows.
9016 (clear_frame_records): Clear window and frame rows.
9017 (clear_glyph_matrix): Set all rows of a matrix to empty.
9019 * xdisp.c (echo_area_display): Parameter UPDATE_FRAME_P. Update
9021 (message2_nolog): Pass 1 to ECHO_AREA_DISPLAY. UPDATE_FRAME
9023 (redisplay_internal): Pass 0 to ECHO_AREA_DISPLAY.
9024 (redisplay_internal): Build frame matrix before UPDATE_FRAME.
9026 * dispnew.c (assign_row): Assign one glyph row to another.
9027 (mirrored_make_current): Use it.
9028 (mirror_make_current): Use it.
9029 (update_line): Rely on MIRRORED_MAKE_CURRENT to set flags and
9030 used counters for the current glyph row.
9033 Fri Jul 11 13:16:50 1997 Gerd Moellmann <gerd@acm.org>
9035 * lisp.h: Prototype for SCAN_BUFFER.
9037 * xdisp.c (redisplay_windows): Simplified.
9039 * dispnew.c (window_to_frame_vpos): Convert window to frame vpos
9041 (window_to_frame_hpos): Convert window to frame hpos with checks.
9042 (frame_to_window_vpos): Convert frame to window vpos with checks.
9043 (frame_to_window_hpos): Convert frame to window hpos with checks.
9045 * dispextern.h: PRESERVE_OTHER_COLUMNS removed.
9047 * dispnew.c: PRESERVE_OTHER_COLUMNS removed.
9049 * xdisp.c (redisplay_internal): Another instance of
9050 DISPLAY_TEXT_LINE with window relative VPOS.
9051 (redisplay_internal): Remove PRESERVE_OTHER_COLUMNS.
9053 * dispnew.c (init_desired_glyphs): Do it on window matrices,
9056 * xdisp.c (try_window_id): Use CANCEL_WINDOW_LINE.
9057 (redisplay_internal): Ditto.
9059 * dispnew.c (cancel_window_line): Use window matrix. Changed
9060 name to CANCEL_WINDOW_LINE.
9062 * xdisp.c (try_window_id): Use DISPLAY_TEXT_LINE with window
9065 * dispextern.h (WINDOW_TO_FRAME_VPOS): Convert window vpos
9067 (WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
9068 (FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
9069 (FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
9071 * xdisp.c (try_window_id): Use ADJUST_WINDOW_CHARSTARTS with
9072 window relative VPOS.
9073 (redisplay_internal): Use ADJUST_WINDOW_CHARSTARTS with window
9076 * dispnew.c (adjust_window_charstarts): Use INCREMENT_GLYPH_-
9077 MATRIX_BUFFER_POSITIONS.
9079 * xdisp.c (try_window_id): Use SCROLL_FULL_WIDTH_WINDOW.
9081 * dispextern.h: Prototype for SCROLL_FULL_WIDTH_WINDOW.
9083 * dispnew.c (scroll_frame_lines): Make it work on window
9084 matrix. Change name to scroll_full_width_window.
9086 * xdisp.c (message2_nolog): Don't fwrite NULL message If
9089 Mon Jul 7 14:44:38 1997 Gerd Moellmann <gerd@acm.org>
9091 * dispnew.c (init_desired_glyphs): Clear both frame matrix
9092 and window matrices.
9093 (adjust_window_charstarts): Use window matrix.
9094 (cancel_my_columns): Use window matrix.
9095 (direct_output_for_insert): Use window matrix, only.
9097 * xdisp.c (display_glyphs): Extracted code from DISPLAY_STRING.
9098 (display_string): Call display_glyphs.
9099 (display_menu_bar_string): Display a string in a menu bar line.
9100 (display_menu_bar): Use DISPLAY_MENU_BAR_STRING.
9101 (display_text_line): Use window matrix.
9102 (try_window): Use window relative positions.
9104 Sun Jul 6 17:02:26 1997 Gerd Moellmann <gerd@acm.org>
9106 * dispnew.c (adjust_frame_glyphs): Allocate window matrices from
9108 (allocate_leaf_matrix): Add FRAME_MENU_BAR_LINES to the height of
9111 * window.h (WINDOW_TOPMOST_P): Added.
9113 * xdisp.c (echo_area_display): Use PREPARE_DESIRED_ROW.
9114 (redisplay_window): Ditto.
9115 (display_text_line): Ditto.
9116 (display_menu_bar): Ditto.
9117 (display_mode_line): Ditto.
9118 (display_mode_line): Use window matrix.
9119 (display_string): Use window matrix.
9120 (display_mode_element): Ditto.
9121 (echo_area_display): Don't display if frame has no pools yet.
9122 (echo_area_display): Work with window matrix for mini window.
9123 (redisplay_window): Use window marix for mini window.
9124 (display_text_line): Assume HPOS and VPOS are window relative and
9125 use that for DISPLAY_STRING.
9127 * dispextern.h: Prototype for prepare_desired_row.
9129 * dispnew.c (prepare_desired_row): Replacement for
9132 * dispnew.c (adjust_window_charstarts): Always allocate window
9134 (clear_glyph_row): Only reset used counters and flags.
9136 Sat Jul 5 14:55:44 1997 Gerd Moellmann <gerd@acm.org>
9138 * dispnew.c (scroll_frame_lines): Don't assume first scolled
9140 (realloc_glyph_pool): Don't add 1 to the pool size.
9141 (adjust_glyph_matrix): Don't add 1 to pointers to glyph areas.
9143 * dispnew.c (line_hash_code): Don't use null-glyph end marker.
9144 (line_draw_cost): Ditto.
9145 (update_line): Ditto.
9146 (update_line): Use SPACE_GLYPH.
9147 (count_blanks): Additional parameter LEN.
9149 * xdisp.c (display_text_line): Use SPACE_GLYPH.
9150 (display_text_line): Don't add null-glyph end marker.
9151 (display_string): Use SPACE_GLYPH.
9152 (display_string): Don't use null-glyph end marker.
9154 * term.c (clear_end_of_line): Use SPACE_GLYPH.
9156 * dispnew.c (clear_glyph_row): Don't use null-glyph end markers.
9157 (fill_up_glyph_row_with_spaces): Ditto.
9158 (preserve_other_columns): Add SPACE_GLYPH at then end of desired
9159 rows, instead of null-glyphs.
9160 (direct_output_for_insert): Don't add null-glyph end marker.
9162 * scroll.c (do_direct_scrolling): Change algorithm to construct
9163 vector of lines assigned. Call MIRRORED_LINE_DANCE:
9164 (do_scrolling): Ditto.
9166 * dispnew.c (mirror_line_dance): Mirror line assignments in a
9167 frame matrix in window matrices.
9168 (mirrored_line_dance): Do line assignments during scrolling.
9169 Maybe do corresponding assignments in window matrices.
9170 (check_window_matrix_pointers): Check that window rows and frame
9171 rows agree about glyph pointers.
9172 (check_matrix_pointers): Ditto.
9173 (mirrored_make_current): Make a row of a desired matrix current;
9174 maybe mirror the operation in window matrices.
9175 (mirror_make_current): Make window desired matrix row current when
9176 frame matrix row was made current.
9178 Fri Jul 4 13:27:46 1997 Gerd Moellmann <gerd@acm.org>
9180 * dispnew.c (check_matrix_pointer_lossage): Check against
9181 pointer lossage in matrices.
9182 (get_glyph_matrix_row): Removed.
9184 * scroll.c (do_scrolling): Simplified.
9185 (do_direct_scrolling): Simplified.
9186 (scrolling_1): Pass CURRENT_MATRIX instead of FRAME to
9190 * dispnew.c (ins_del_glyph_rows): Insert/delete rows in a matrix.
9191 (rotate_vector): Removed.
9192 (rotate_pointers): Removed.
9193 (scroll_frame_lines): Simplified.
9195 Thu Jul 3 13:54:21 1997 Gerd Moellmann <gerd@acm.org>
9197 * dispextern.h (MATRIX_ROW_SWAP_CONTENTS): Removed.
9199 * dispnew.c (increment_glyph_matrix_buffer_positions): Does
9201 (clear_glyph_row): Make a glyph row structure empty.
9202 (make_matrix_row_current): Make a glyph row current.
9203 (make_window_matrix_row_current): Perform analogous row swaps
9204 for window matrices.
9205 (update_line): Call make_matrix_row_current.
9207 Wed Jul 2 13:43:35 1997 Gerd Moellmann <gerd@acm.org>
9209 * dispextern.h (SET_MATRIX_ROW_ENABLED_P): Better macro name.
9210 (SET_MATRIX_ROW_INVERSE_P): Better name and HIGHLIGHT_P ->
9212 (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P.
9213 (struct glyph_row): HIGHLIGHT_P -> INVERSE_P
9215 * all files: use above new names.
9217 * dispnew.c (scroll_frame_lines): Simplified. Use
9218 SCROLL_GLYPH_MATRIX.
9219 (make_glyph_row_empty): Mark a glyph row empty.
9220 (increment_glyph_row_buffer_positions): Increment
9221 buffer positions in a glyph row.
9222 (increment_glyph_matrix_buffer_positions): Increment buffer
9223 positions in a range of rows.
9224 (scroll_glyph_matrix): Scroll a glyph matrix.
9225 (swap_glyphs_in_rows): Swap glyphs between rows.
9226 (swap_glyph_pointers): Swap pointers between rows.
9227 (glyph_row_slice_p): Return 1 if one row is a slice of another.
9228 (init_display): Initialize SPACE_GLYPH.
9229 (fill_up_glyph_row_areas_with_spaces): Fill up areas with
9232 Tue Jul 1 13:49:55 1997 Gerd Moellmann <gerd@acm.org>
9234 * xterm.c (dumprectangle): Use vectors in glyph rows.
9236 * xdisp.c (display_text_line): Use vectors in glyph rows.
9237 (display_string): Ditto.
9239 * scroll.c (do_scrolling): Use vectors in glyph rows.
9240 (do_direct_scrolling): Ditto.
9242 * alloc.c (mark_object): Use vectors in glyph rows.
9243 Mark for all frame types.
9245 * dispnew.c (adjust_glyph_matrix): Use vectors to glyphs in
9247 (get_glyph_matrix_row): Ditto.
9248 (matrix_row): Ditto.
9249 (rotate_pointers): Ditto.
9250 (scroll_frame_lines): Ditto.
9251 (preserve_other_columns): Ditto.
9252 (cancel_my_columns): Ditto.
9253 (update_line): Ditto.
9254 (direct_output_for_insert): Ditto.
9256 * dispextern.h (struct glyph_row): Use a vector of pointers
9257 instead of individual members. Use a vector of used counters.
9258 (MATRIX_ROW_SWAP_CONTENTS): Use vectors.
9259 (MATRIX_ROW_GLYPH_START): Ditto.
9260 (MATRIX_ROW_GLYPH_END): Ditto.
9261 (MATRIX_ROW_USED): Ditto.
9262 (MATRIX_ROW_SET_USED): Ditto.
9264 * dispnew.c (line_hash_code): Simplified.
9266 Mon Jun 30 20:39:38 1997 Gerd Moellmann <gerd@acm.org>
9268 * dispnew.c: Prototype for ROTATE_VECTOR, ROTATE_POINTERS,
9270 (preserve_other_columns): Void return.
9271 (cancel_my_columns): Void return type.
9272 (scrolling): Int return type.
9273 (do_pending_window_change): Void return type.
9274 (change_frame_size): Ditto.
9275 (bitch_at_user): Ditto.
9276 (init_display): Ditto.
9277 (syms_of_display): Ditto.
9279 * dispextern.h: add prototypes for REDRAW_FRAME,
9280 REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS,
9281 INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS,
9282 ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS,
9283 DIRECT_OUTPUT_FOR_INSERT, DIRECT_OUTPUT_FORWARD_CHAR,
9284 UPDATE_FRAME, SCROLLING, BUFFER_POSN_FROM_COORDS,
9285 DO_PENDING_WINDOW_CHANGE, CHANGE_FRAME_SIZE, BITCH_AT_USER,
9286 SIT_FOR, INIT_DISPLAY, SYMS_OF_DISPLAY,
9288 * dispnew.c (redraw_frame): FRAME_PTR -> struct frame. Return
9290 (cancel_line): Return void.
9291 (clear_frame_records): Return void.
9293 * dispextern.h (struct glyph): Remove GLYPH, add bit-fields.
9294 (SET_CHAR_GLYPH): Fill a character glyph.
9295 (SET_CHAR_GLYPH_FROM_GLYPH): Set a character glyph from a GLYPH.
9296 (GLYPH_FROM_CHAR_GLYPH): Construct a GLYPH from a character
9298 (CHAR_GLYPH_CHAR_CODE): Return character code of a glyph.
9299 (SET_CHAR_GLYPH_CHAR_CODE): Set character code of a glyph.
9300 (CHAR_GLYPH_FACE_ID): Return face id of a glyph.
9301 (SET_CHAR_GLYPH_FACE_ID): Set face id of a glyph.
9302 (CHAR_GLYPH_PADDING_P): Return padding flag of a glyph.
9303 (SET_CHAR_GLYPH_PADDING_P): Set padding flag.
9304 (CHAR_GLYPH_REVERSE_P): Return reversed flag.
9305 (SET_CHAR_GLYPH_REVERSE_P): Set reversed flag.
9306 (MATRIX_ROW_SWAP_CONTENTS): Swap pointers between rows.
9308 * term.c (reassert_line_highlight): Check CHARS_WASTED == 0.
9310 * window.h (struct window): Add comment that no Lisp data may
9311 come below CURRENT_MATRIX.
9313 * alloc.c (mark_object): Change window mark code to stop with
9314 member CURRENT_MATRIX.
9316 Sat Jun 28 13:54:55 1997 Gerd Moellmann <gerd@acm.org>
9318 * scroll.c (do_scrolling): Change algorithm to use pointers.
9319 (do_direct_scrolling): Ditto.
9321 * dispnew.c (get_glyph_matrix_row): Use pointers stored in rows.
9322 (new_glyph_pool): Formerly new_FRAME_GLYPH_MATRIX.
9323 (free_glyph_pool): Formerly FREE_FRAME_GLYPH_MATRIX
9324 (realloc_glyph_pool): Formerly REALLOC_FRAME_GLYPH_MATRIX.
9325 Returns 1 if pool changed.
9326 (matrix_row): Additional check for lost pointers to glyph rows.
9327 (compute_matrices): Additional parameter DIM_P set means that no
9328 allocation should take place. Addtional parameter
9329 ANY_WINDOWS_CHANGED_P set if any windows matrix has changed.
9330 (compute_leaf_matrix): Additional parameter CHANGED_P set to 1
9331 when window matrix changes. Additional parameter DIM_ONLY_P set
9332 to 1 to indicate that no allocation should take place.
9333 (adjust_frame_glyphs): Construct new glyph pools and glyph
9334 matrices. Optimize frame redraws.
9335 (free_glyphs): Free pools.
9336 (check_glyph_memory): Check pools not freed.
9337 (rotate_pointers): Rotate pointers in a vector of glyph rows.
9338 (scroll_frame_lines): Change algorithm to use pointers.
9339 (update_line): Ditto.
9341 * dispextern.h (struct glyph_row): Use pointers to areas in a row.
9342 (global): All macro names changed from prefix FRAME_MATRIX to
9345 Fri Jun 27 14:51:15 1997 Gerd Moellmann <gerd@acm.org>
9347 * dispextern.h (struct glyph_pool): Replacement for former
9349 (struct glyph_matrix): No longer contains sizes of allocated
9352 * xdisp.c (redisplay_internal): Don't redisplay if frame has
9355 * frame.c (make_frame): Initialize pools.
9357 Thu Jun 26 00:00:55 1997 Gerd Moellmann <gerd@acm.org>
9359 * scroll.c (do_direct_scrolling): Don't assume that the
9360 line moving algorithm has no intermediate steps.
9361 (do_scrolling): Ditto.
9363 * Makefile.in (alloc.o): Add dependency dispextern.h.
9365 * alloc.c: Include dispextern.h for glyph definitions.
9367 * dispnew.c (get_glyph_matrix_row): Return 1 if ROW_INDEX
9368 is legal, return 0 otherwise.
9370 * window.h: Add comment that windows are marked specially.
9372 * alloc.c (mark_object): Mark windows specially.
9375 Wed Jun 25 15:22:58 1997 Gerd Moellmann <gerd@acm.org>
9377 * dispextern.h (struct glyph): Add member OBJECT
9378 referencing a Lisp object from which a glyph was drawn.
9379 Member TEXT_POSITION renamed POSITION.
9380 * xterm.c, xdisp.c, dispnew.c: Rename TEXT_POSITION -> POSITION.
9382 * alloc.c: Include dispextern.h
9383 (mark_object): Mark objects referenced from glyphs.
9385 * frame.c (make_frame): initialize DECODE_MODE_SPEC_BUFFER.
9387 * scroll.c (do_direct_scrolling): Remove TEMP_MATRIX.
9388 (do_scrolling): Ditto.
9390 * frame.h (struct frame): TEMP_MATRIX removed.
9391 DECODE_MODE_SPEC_BUFFER added.
9393 * window.h: TEMP_MATRIX removed.
9395 * scroll.c: OPHYS_LINES removed.
9397 * dispnew.c: OPHYS_LINES and OPHYS_LINES_LENGTH removed.
9398 FRAME_PTR -> struct frame *.
9400 * termhooks.h: Prototypes for INSERT_GLYPHS_HOOK,
9401 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
9403 * term.c: Prototypes for INSERT_GLYPHS_HOOK,
9404 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
9406 * xdisp.c (redisplay_internal): Remove call to VERIFY_CHARSTARTS.
9407 (do_verify_charstarts): Removed.
9409 * frame.c (Fmake_terminal_frame): Adjust glyphs.
9410 (Fdelete_frame): Free glyphs.
9411 (make_frame): Initialize matrix fields in frame.
9413 * config.in (PROTO): added.
9415 * emacs.c (shut_down_emacs): check glyph memory.
9417 * window.c (Fdelete_window): Free window matrices.
9418 (Fset_window_configuration): Ditto.
9419 (Fdelete_window): Adjust glyphs.
9420 (Fsplit_window): Ditto.
9421 (change_window_height): Ditto.
9422 (Fset_window_configuration): Ditto.
9423 (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX.
9424 (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX
9426 * Makefile.in (window.o): Add dependency window.c -> dispextern.h
9428 * window.c: Include dispextern.h
9430 * scroll.c (do_scrolling): Use new glyphs.
9431 (do_direct_scrolling): Ditto.
9433 * xdisp.c: Some function prototypes.
9434 (redisplay_internal): Don't do anything if matrices not yet set.
9435 (redisplay_internal): Use new glyphs.
9436 (try_window_id): Ditto.
9437 (copy_part_of_rope): Ditto.
9438 (display_text_line): Ditto.
9439 (display_menu_bar): Ditto.
9440 (display_mode_line): Ditto.
9441 (display_string): Ditto.
9443 * xterm.c: Prototypes for some local functions.
9444 (dumpglyphs): Use new glyphs.
9445 (XTwrite_glyphs): Ditto.
9446 (dumprectangle): Ditto.
9447 (note_mouse_highlight): Ditto.
9448 (fast_find_position): Ditto.
9449 (show_mouse_face): Ditto.
9450 (x_draw_single_glyph): Ditto.
9451 (x_display_bar_cursor): Ditto.
9452 (x_display_box_cursor): Ditto.
9453 (x_new_font): Adjust glyphs when font change.
9455 * term.c (clear_end_of_line): Use new glyphs.
9456 (write_glyphs): Ditto.
9457 (insert_glyphs): Ditto.
9459 * Makefile.in (term.o): term.c depends on dispextern.h
9461 * term.c: Include dispextern.h
9463 * dispnew.c (direct_output_forward_char): Old glyph functions
9464 removed, new inserted.
9465 (line_hash_code): Use new glyphs.
9466 (line_draw_cost): Ditto
9467 (cancel_line): Ditto
9468 (clear_frame_records): Ditto.
9469 (init_desired_glyphs): Ditto.
9470 (get_display_line): Ditto
9471 (scroll_frame_lines): Ditto.
9472 (preserve_other_columns): Ditto.
9473 (adjust_window_charstarts): Ditto.
9474 (cancel_my_columns): Ditto.
9475 (direct_output_for_insert): Ditto.
9476 (update_frame): Ditto.
9477 (quit_error_check): Made empty.
9478 (scrolling): Use new glyphs.
9479 (count_blanks): Ditto.
9480 (count_match): Ditto.
9481 (update_line): Ditto.
9482 (init_display): Adjust glyphs initially.
9483 (change_frame_size_1): Adjust glyphs.
9485 * dispextern.h: Old glyphs removed, new added.
9487 * xfaces.c (min_char_bounds): Get smallest char in loaded fonts.
9489 * xterm.h: Prototype for min_char_bounds.
9491 * window.h (struct window): Remove old glyphs, add new.
9493 * frame.h (struct frame): Remove old glyphs, add new.
9495 1999-07-20 Dave Love <fx@gnu.org>
9497 * buffer.c (syms_of_buffer): Make
9498 default-enable-multibyte-characters a user variable.
9500 1999-07-14 Richard Stallman <rms@gnu.org>
9502 * Version 20.4 released.
9504 1999-07-14 Richard Stallman <rms@gnu.org>
9506 * filelock.c (lock_file): Do nothing if purifying.
9508 1999-07-10 Richard Stallman <rms@gnu.org>
9510 * xterm.c (x_display_bar_cursor): Use the cursor-color
9511 to display the bar, not the cursor foreground pixel.
9513 1999-07-09 Andrew Innes <andrewi@gnu.org>
9515 * w32console.c (w32_use_full_screen_buffer): New variable.
9516 (syms_of_ntterm): Register it.
9517 (initialize_w32_display): Set initial frame size accordingly,
9518 respecting the LINES and COLUMNS environment variables if set.
9520 * w32inevt.c (w32_console_read_socket): Use it.
9522 1999-07-07 Kenichi Handa <handa@etl.go.jp>
9524 * callproc.c (Fcall_process): Decide coding system for decoding
9525 after we set to the target buffer. If the output goes to a
9526 unibyte buffer, suppress character code conversion.
9528 * fileio.c (Finsert_file_contents): If reading into a unibyte
9529 buffer, suppress character code conversion.
9531 * process.c (create_process): If the output goes to a unibyte
9532 buffer, suppress character code conversion.p
9534 1999-07-07 Andreas Schwab <schwab@gnu.org>
9536 * xdisp.c (line-number-display-limit): Doc fix.
9538 1999-07-05 Richard Stallman <rms@gnu.org>
9540 * callproc.c (Fcall_process): Don't use initializer on coding_systems.
9541 (Fcall_process_region): Likewise.
9543 1999-07-01 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
9545 * callproc.c (init_callproc): Set exec_directory if
9546 installation_directory is non-nil, without a test of exec_path.
9548 1999-07-01 Andrew Innes <andrewi@gnu.org>
9550 * w32xfns.c (drain_message_queue): New function.
9552 * w32term.h (drain_message_queue): Add extern.
9554 * w32proc.c (sys_select): Call MsgWaitForMultipleObjects instead
9555 of WaitForMultipleObjects when user input is allowed, so we can
9556 handle incoming window messages. Call drain_message_queue when
9557 there are messages waiting; this ensures that windows created
9558 indirectly from the lisp thread get processed properly, and don't
9559 hang other applications by failing to respond to broadcasts.
9561 1999-07-01 Andreas Schwab <schwab@gnu.org>
9563 * callint.c (Fcall_interactively): Ignore first element of
9564 event-symbol-elements property.
9566 1999-07-01 Richard Stallman <rms@gnu.org>
9568 * fileio.c (Fread_file_name): Check type of DEFAULT_FILENAME.
9570 1999-07-01 Kenichi Handa <handa@etl.go.jp>
9572 * minibuf.c (read_minibuf): Set the multibyteness of the
9573 minibuffer before inserting `initial' string.
9575 1999-06-30 Richard Stallman <rms@gnu.org>
9577 * xfns.c (x_make_gc): Turn off GCStipple when setting up cursor_gc.
9579 1999-06-29 Richard M. Stallman <rms@gnu.org>
9581 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook):
9582 Move the handling of MALLOC_CHECK_ envvar here.
9583 (main): Moved from here.
9585 1999-06-29 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
9587 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook): New
9588 function, assigned to the global __malloc_initialize_hook pointer.
9589 (main): Move malloc_set_state call into malloc_initialize_hook
9590 so that it happens as early as possible.
9592 1999-06-27 Richard M. Stallman <rms@gnu.org>
9594 * keyboard.c (read_key_sequence): Properly reinitialize
9595 fkey_map after translating thru Vkey_translation_map.
9596 After translating thru Vfunction_key_map, don't reset
9597 keytrans-start to 0.
9599 1999-06-24 Geoff Voelker <voelker@cs.washington.edu>
9601 * w32.c (get_emacs_configuration): Use GetVersionEx to
9602 handle NT5.0 correctly. Include build number in configuration.
9603 w32heap.c (osinfo_cache): New variable.
9604 (cache_system_info): Initialize osinfo_cache.
9605 w32heap.h (osinfo_cache): Declare.
9607 1999-06-24 Richard M. Stallman <rms@gnu.org>
9609 * casefiddle.c (casify_object): Use make_multibyte_string
9610 if we casify a multibyte string.
9612 1999-06-22 Ken'ichi Handa <handa@gnu.org>
9614 * fileio.c: (Finsert_file_contents): In the case of REPLACE, call
9615 del_range_byte instead of del_range_1, set `inserted' to the
9616 number of characters actually inserted.
9618 1999-06-17 Dave Love <fx@gnu.org>
9620 * coding.c (decode_coding_sjis_big5): Avoid compiler warning.
9622 1999-06-18 Paul Eggert <eggert@twinsun.com>
9624 * filelock.c (BOOT_TIME_FILE): New macro.
9625 (get_boot_time): Use it instead of hardwiring the file name.
9626 Check BOOT_TIME_FILE only after inspecting the kernel directly.
9628 1999-06-17 Dave Love <fx@gnu.org>
9630 * xdisp.c (invalid_eol_type): Make it unsigned.
9632 1999-06-17 Karl Heuer <kwzh@gnu.org>
9634 * process.c (send_process): Delete unsafe/redundant assignment.
9636 1999-06-17 Jason Rumney <jasonr@gnu.org>
9638 * w32term.c (dumprectangle): Handle wide characters properly.
9640 1999-06-16 Andrew Innes <andrewi@gnu.org>
9642 * s/ms-w32.h (strerror): Override the default implementation of
9643 strerror, so we can map winsock error codes.
9645 * w32.c (sys_strerror): New function.
9647 * w32fns.c (w32_to_x_weight): Return "demibold" instead of "semibold".
9649 1999-06-15 Ken'ichi Handa <handa@gnu.org>
9651 * buffer.c (syms_of_buffer): Don't make
9652 enable-multibyte-characters customizable.
9654 1999-06-15 Richard M. Stallman <rms@gnu.org>
9656 * editfns.c (Fuser_full_name): Doc fix.
9658 1999-06-14 Tak Ota <ota@atc.sel.sony.com>
9660 * w32bdf.c: (clear_cached_bitmap_slots): Remove.
9661 (get_bitmap_with_cache): Check if CreateBitmap failed.
9662 Adjust cache size dynamically so cache is never larger than the
9663 system limit of GDI resources.
9664 Do cache clearing inline. Move global variables to local scope.
9667 1999-06-13 Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
9669 * unexsgi.c (unexec): Dump the .rodata section from memory
9670 under IRIX6.5 in order to be able to unexec with gcc.
9672 1999-06-11 Greg Hudson <ghudson@MIT.EDU>
9674 * indent.c (compute_motion): Fix boundary case.
9676 1999-06-11 Jason Rumney <jasonr@altavista.net>
9678 * w32term.c (cancel_mouse_face): New function. See equiv
9679 changes to xterm.c on 1996-10-31.
9680 (x_set_window_size): Use cancel_mouse_face.
9681 (w32_read_socket): Use cancel_mouse_face.
9682 Update frame position when size is restored.
9684 1999-06-04 Richard M. Stallman <rms@gnu.org>
9686 * lread.c (Vuser_init_file): New variable.
9687 (syms_of_lread): Set up Lisp variable.
9688 (Fload): Store the file name there, if var was t before.
9690 1999-06-04 Paul Eggert <eggert@twinsun.com>
9692 * filelock.c (get_boot_time): Don't look at /proc/uptime; it
9693 doesn't work if the system date is changed, or if the system
9694 is suspended. Look at the last-modified time of
9695 /var/run/random-seed instead.
9697 1999-06-03 Ken'ichi Handa <handa@gnu.org>
9699 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
9700 japanese-jisx0208-1978 correctly.
9702 1999-06-03 Andrew Innes <andrewi@gnu.org>
9704 * unexw32.c (get_section_info) [_ALPHA_]: Force as much bss data
9705 as possible to be dumped, for safety.
9707 1999-06-02 Ken'ichi Handa <handa@gnu.org>
9709 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
9710 latin-jisx0201 correctly.
9712 1999-05-26 Ken'ichi Handa <handa@gnu.org>
9714 * charset.h (Vcharset_table): Comment fixed.
9716 1999-05-24 Richard Stallman <rms@gnu.org>
9718 * coding.c (syms_of_coding): Doc fix.
9720 * buffer.c (syms_of_buffer): Doc fix.
9722 * filelock.c (lock_if_free): After deleting a stale lock,
9723 try again to lock the file.
9725 1999-05-22 Andrew Innes <andrewi@gnu.org>
9727 * w32inevt.c (maybe_generate_resize_event): Detect changes in the
9728 console window size.
9729 (w32_console_read_socket): Call maybe_generate_resize_event
9730 whenever input events are received, since we don't get told when
9731 the window size changes (as opposed to the buffer size, which we
9734 * w32console.c (clear_frame): Remember that the window width might
9735 be smaller than the screen buffer width.
9736 (write_glyphs): Remove redundant variable attrs. Use
9737 FillConsoleOutputAttribute instead of WriteConsoleOutputAttribute.
9739 1999-05-20 Andrew Innes <andrewi@gnu.org>
9741 * w32term.c (w32_read_socket): Reset the grabbed flag when a frame gains or
9744 * w32fns.c (w32_wnd_proc): Ensure mouse capture is released if
9745 frame loses focus, and that mouse button state is reset. Ditto
9746 when the menu bar is activated.
9748 1999-05-18 Richard Stallman <rms@gnu.org>
9750 * abbrev.c (Fdefine_abbrev): Doc fix.
9752 1999-05-13 Paul Eggert <eggert@twinsun.com>
9754 * filelock.c: Fix performance bug on hosts with large
9755 /var/adm/wtmp files with no boot records.
9757 (boot_time_initialized): New var.
9758 (init_filelock): Initialize it.
9759 (get_boot_time): Use it, instead of nonzero boot_time,
9760 to test whether boot_time is initialized.
9761 Don't invoke utmp routines when dumping.
9763 (get_boot_time): First, try to get the boot time from the
9764 current utmp file, as this can be much faster. Don't try to
9765 get the boot time from utmp and/or wtmp more than once.
9767 (get_boot_time_1): When passed null pointer, don't invoke utmpname.
9768 New arg LATEST. All uses changed.
9770 1999-05-15 Andrew Innes <andrewi@gnu.org>
9772 * w32term.c (dumpglyphs): Use correct colours for drawing
9773 rectangles in place of missing fonts, and make them the right
9776 1999-05-14 Dave Love <fx@gnu.org>
9778 * syntax.c (Fparse_partial_sexp): Correct test for element 8 to be
9781 1999-05-11 Andrew Innes <andrewi@gnu.org>
9783 * w32fns.c (x_to_w32_charset): Reinstall VIETNAMESE_CHARSET
9785 (w32_wnd_proc): Reinstall debugging output.
9786 (w32_wnd_proc): Reinstall SetForegroundWindow change.
9787 (syms_of_w32fns): Reinstall new initializer for
9788 Vw32_phantom_key_code.
9790 * w32fns.c (x_to_w32_charset): Do partial matching of charset
9791 names for most non-European charsets, to cope with wildcards or
9793 (Fw32_send_sys_command): Post WM_SYSCOMMAND rather than sending it
9794 to avoid deadlock when activating the menu bar.
9796 1999-05-10 Ken'ichi Handa <handa@gnu.org>
9798 * search.c (boyer_moore): Get charset base value of `untranslated'
9799 by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
9801 1999-05-10 Andreas Schwab <schwab@gnu.org>
9803 * fileio.c (Fread_file_name): Correct handling of dollars in file
9804 names. Protect dollars in strings put on the file-name-history.
9805 Substitute homedir by `~' also in default_filename.
9807 * xdisp.c (try_window_id): Fix computation of tab_offset when
9808 backing up over a character that is splitted across lines.
9810 1999-05-08 Kenichi HANDA <handa@etl.go.jp>
9812 * coding.c (code_convert_region): If eol format is inconsistent,
9813 change coding->symbol to the sibling coding system of Unix like
9816 1999-05-09 Richard M. Stallman <rms@gnu.org>
9818 * s/irix5-2.h (NO_WTMP_FILE): Define it.
9820 * filelock.c (get_boot_time): Handle NO_WTMP_FILE.
9822 1999-05-05 Andrew Innes <andrewi@gnu.org>
9824 * w32fns.c (w32_strict_painting): New variable.
9825 (w32_wnd_proc): Use it to select repaint rules.
9826 (syms_of_w32fns): Defvar it.
9828 1999-05-04 Andrew Innes <andrewi@gnu.org>
9830 * w32fns.c (x_to_w32_charset): Fix typo: want to map all Japanese
9831 charsets to the standard Windows charset for Japanese.
9833 1999-05-04 Ken'ichi Handa <handa@gnu.org>
9835 * xterm.c (x_load_font): Fix typo (`>' -> `=').
9837 * ccl.h (struct ccl_program): New member stack_idx.
9839 * ccl.c (ccl_prog_stack_struct): Declare it as static.
9840 (ccl_driver): Setup stack_idx and ccl_prog correctly. Update them
9842 (setup_ccl_program): Initialize ccl->stack_idx to 0.
9844 1999-05-03 Jason Rumney <jasonr@altavista.net>
9846 * w32term.c (dumpglyphs): Always fill background for italic fonts.
9848 1999-05-03 Eli Zaretskii <eliz@is.elta.co.il>
9850 * dired.c (make_time): Make argument type be time_t.
9852 1999-05-02 Eli Zaretskii <eliz@is.elta.co.il>
9854 * msdos.c (unibyte_display_via_language_environment): Add extern.
9856 1999-05-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
9858 * xdisp.c (display_text_line): Convert unibyte char to multibyte
9859 if unibyte_display_via_language_environment is set.
9860 (unibyte_display_via_language_environment):
9861 Variable moved from xfns.c and elsewhere.
9862 (syms_of_xfns): Set up Lisp var.
9864 * xfns.c (unibyte_display_via_language_environment):
9865 Variable moved to xdisp.c.
9866 (syms_of_xfns): Don't set up Lisp var here.
9868 * msdos.c (unibyte_display_via_language_environment):
9869 Variable moved to xdisp.c.
9870 (syms_of_msdos): Don't set up Lisp var here.
9872 * w32fns.c (unibyte_display_via_language_environment):
9873 Variable moved to xdisp.c.
9874 (syms_of_w32fns): Don't set up Lisp var here.
9876 1999-05-02 Andrew Innes <andrewi@gnu.org>
9878 * s/ms-w32.h (HAVE_FSYNC): New macro.
9879 (fsync): Map to _commit.
9880 (ftruncate): Map to _chsize.
9882 * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even
9883 for ASCII, if enabled, to avoid memory allocation overhead for
9884 implicit Unicode conversion. Also, recognize that ASCII and
9885 Latin-1 have a trivial conversion to Unicode, so x_2byte_buffer
9886 already contains the Unicode characters in that case.
9887 (construct_drag_n_drop): Remove old code that was
9888 trashing the drop location.
9890 * w32select.c (Fw32_set_clipboard_data): Undo last change to add
9891 nlines to encoding_buffer_size (real bug was in a ccl program in
9892 lisp/international/coding.el).
9894 * w32reg.c (w32_get_string_resource): Check for name in current
9895 user area, and if not found look in the local machine area.
9897 * w32fns.c (w32_list_bdf_fonts): Initialize n_fonts.
9898 (Fw32_shell_execute): New function; used to support browse-url.
9899 (syms_of_w32fns): Register it.
9900 (w32_load_system_font): Force max width to be average
9901 char width for fixed-pitch fonts, to avoid unnecessary redisplay
9903 (x_to_w32_charset): Define VIETNAMESE_CHARSET if not
9905 (syms_of_w32fns): Set Vw32_phantom_key_code to 255.
9907 * unexw32.c (get_section_info): Dump back the entire EMDATA
9908 section if we can put Emacs' initialized data in a separate
9909 section, otherwise use the my_begdata/my_edata method.
9911 * makefile.nt ($(BLD)\w32term.obj): Add dependency on w32heap.h.
9913 * coding.c (decode_eol): Set produced/consumed values to zero if
9914 src_bytes is <= 0 on entry.
9916 1999-05-02 Jason Rumney <jasonr@altavista.net>
9918 * w32term.c (w32_write_glyphs, w32_clear_end_of_line,
9919 w32_clear_frame, clear_cursor, x_display_bar_cursor,
9920 x_display_box_cursor, x_set_window_size): Use phys_cursor_on
9922 (do_line_dance): Updated WRT xterm.c. Use macros where possible.
9923 (dumprectangle): Take into account the width of a left-side
9926 * w32proc.c (sys_kill): Attach to current foreground thread
9927 when grabbing focus; necessary on NT 5.0.
9929 * w32fns.c (w32_wnd_proc) [WM_PAINT]: Use rectangle from
9930 GetUpdateRect rather than BeginPaint.
9931 (w32_wnd_proc): Attach to current foreground thread
9932 when grabbing focus; necessary on NT 5.0.
9933 (w32_wnd_proc) [W32_DEBUG_DISPLAY]: Add output for
9934 debugging display messages.
9935 (w32_to_x_charset): Put wildcard last in unknown charsets to avoid
9938 1999-05-02 Kenichi HANDA <handa@etl.go.jp>
9940 * coding.c (setup_raw_text_coding_system): Call
9941 setup_coding_system to initialize the fields of struct
9942 coding_system correctly.
9944 1999-04-26 Kenichi HANDA <handa@etl.go.jp>
9946 * xterm.c (x_list_fonts): Fix previous change.
9948 1999-04-26 Richard Stallman <rms@gnu.org>
9950 * config.in (HAVE_LIBXP): Add #undef.
9951 * Makefile.in (LIB_MOTIF_EXTRA): Check HAVE_LIBXP.
9953 1999-04-12 Ken'ichi Handa <handa@gnu.org>
9955 * xterm.c (x_list_fonts): Trap X errors so that Emacs doesn't die
9958 1999-04-12 Karl Heuer <kwzh@gnu.org>
9960 * s/freebsd.h (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3.
9962 1999-04-11 Ken'ichi Handa <handa@gnu.org>
9964 * fontset.c (Fset_fontset_font): Fix previous change.
9966 1999-04-09 Ken'ichi Handa <handa@gnu.org>
9968 * fontset.c (Fquery_fontset): Check for fontset aliases here.
9969 (Fnew_fontset, Fset_fontset_font): Don't check for them here.
9971 1999-04-08 Richard Stallman <rms@gnu.org>
9973 * process.c (Faccept_process_output): Check validity of PROCESS.
9975 1999-04-08 Eli Zaretskii <eliz@gnu.org>
9977 * msdos.c (jp_kbd_translate_table): Fix the other \ key.
9979 1999-04-07 Richard Stallman <rms@gnu.org>
9981 * xfns.c (x_set_font): Fix error message.
9983 * fontset.c (Fquery_fontset): Don't check for fontset aliases here.
9984 (Fnew_fontset, Fset_fontset_font): Check for them here.
9985 (Ffontset_info, Fnew_fontset, Fset_fontset_font):
9986 Fix error message syntax.
9988 * buffer.c (Fmake_indirect_buffer): Copy multibyte status
9989 from the base buffer.
9990 (Fset_buffer_multibyte): Copy new multibyte status
9991 into the buffer's indirect buffers.
9993 1999-04-07 Ken'ichi Handa <handa@gnu.org>
9995 * fns.c (base64_encode_1): Don't add unnecessary newline at the
9998 1999-04-06 Richard Stallman <rms@gnu.org>
10000 * dired.c (Ffile_attributes): Doc fix.
10002 * keymap.c (Faccessible_keymaps): Really initialize i_byte.
10003 Convert 0200 to meta only in a unibyte string.
10004 (Fkey_description): Likewise.
10006 * eval.c (do_autoload): Preserve match data.
10008 1999-04-06 Kenichi HANDA <handa@etl.go.jp>
10010 * w32fns.c (x_to_w32_font): Provide sufficient buffer to
10011 encode_coding to avoid carryover.
10013 * coding.c: Add comments for decode_coding and encode_coding.
10015 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
10016 a composite character by skipping its leading code.
10017 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
10020 * coding.c: Add comments for decode_coding and encode_coding.
10022 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
10023 a composite character by skipping its leading code.
10024 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
10027 1999-04-06 Eli Zaretskii <eliz@gnu.org>
10029 * msdos.c (dos_rawgetc): Don't zero out c if private translation
10031 (jp_kbd_translate_table): Support C-\.
10032 (it_kbd_translate_table): Map `>' correctly.
10033 (it_keyboard): Add `>'.
10035 1999-04-06 Richard Stallman <rms@gnu.org>
10037 * intervals.c (graft_intervals_into_buffer): Turn off
10038 inhibit_modification_hooks around calling Fset_text_properties.
10040 1999-04-05 Kenichi HANDA <handa@etl.go.jp>
10042 * xterm.c (dumpglyphs): Be sure to fill the whole background of
10045 1999-04-05 Eli Zaretskii <eliz@gnu.org>
10047 * msdos.c (jp_kbd_translate_table): Fix last change.
10049 1999-04-04 Eli Zaretskii <eliz@gnu.org>
10051 * msdos.c (struct kbd_translate): New struct, for key translation
10052 tables private to certain national keyboard layouts.
10053 (struct dos_keyboard_map): Add a pointer to a private translation
10055 (jp_kbd_translate_table): Private table for the Japanese
10057 (jp_keyboard): Japanese keyboard layout.
10058 (it_kbd_translate_table): Private table for the Italian keyboard.
10059 (it_keyboard): Use it_kbd_translate_table.
10060 (keyboard_layout_list): Add the Japanese keyboard.
10061 (dos_rawgetc): Use the keyboard-private translation table, if
10063 (abort) [__DJGPP_MINOR__ >= 2]: Raise SIGABRT.
10065 1999-04-02 Kenichi HANDA <handa@etl.go.jp>
10067 * xdisp.c (redisplay_window): When we call compute_motion with
10068 HPOS got from w->last_point_x, call it with DID_MOTION 1.
10069 (display_text_line): Stop the loop for processing overlay strings
10070 when we reach the right edge of the window.
10072 1999-03-31 Richard M. Stallman <rms@caffeine.ai.mit.edu>
10074 * doc.c (get_doc_string): When UNIBYTE and DEFINITION are 0,
10075 let the data control whether string is unibyte.
10077 1999-03-30 Richard M. Stallman <rms@gnu.org>
10079 * macros.c (Fexecute_kbd_macro): Save real_this_command.
10080 (pop_kbd_macro): Restore the saved real_this_command.
10081 (Fcall_last_kbd_macro): Set real_this_command to the macro.
10083 1999-03-26 Richard M. Stallman <rms@gnu.org>
10085 * buffer.c (Fset_buffer_modified_p): Don't lock or unlock
10086 if buffer-file-name is nil.
10088 1999-03-25 Jason Rumney <jasonr@altavista.net>
10090 * w32select.c (Fw32_set_clipboard_data): Take into account line
10091 ends when calculating clipboard storage needed for non-ASCII text.
10093 1999-03-25 Andrew Innes <andrewi@gnu.org>
10095 * makefile.nt (PREPARED_HEADERS): Change name of paths.h to epaths.h.
10096 (epaths.h): Renamed from paths.h.
10098 ($(BLD)\filelock.obj):
10099 ($(BLD)\lread.obj):
10100 ($(BLD)\w32fns.obj): Renamed paths.h to epaths.h.
10102 1999-03-23 Ken'ichi Handa <handa@gnu.org>
10104 * coding.c (encode_coding_iso2022): Initialize dummy arguments to
10105 ENCODE_ISO_CHARACTER for the previous change on this macro.
10107 1999-03-23 Kenichi Handa <handa@etl.go.jp>
10109 * xdisp.c (decode_mode_spec_coding): Handle integer value in
10110 eoltype correctly for backward compatibility.
10112 1999-03-20 Kenichi HANDA <handa@etl.go.jp>
10114 * coding.c (ENCODE_ISO_CHARACTER): Check validity of CHARSET. If
10115 invalid, produce the buffer internal byte sequence without encoding.
10117 1999-03-19 Karl Heuer <kwzh@gnu.org>
10119 * editfns.c (Fformat): Accept %i format.
10121 1999-03-17 Karl Heuer <kwzh@gnu.org>
10123 * filelock.c (get_boot_time): Test tempname, not filename.
10125 1999-03-17 Jason Rumney <jasonr@altavista.net>
10127 * w32bdf.h: Merged patches from Meadow.
10129 * w32bdf.c: Merged patches from Meadow.
10131 * w32fns.c (enum_font_cb2): Set the font height to be the
10132 character height, not the cell height.
10133 (Fw32_select_font): Initialize font dialog with current default font.
10134 (Vw32_system_coding_system): New variable.
10135 (w32_strict_filenames): Add comment.
10136 (w32_to_x_font): Decode font name using Vw32_system_coding_system.
10137 (x_to_w32_font): Encode font name using Vw32_system_coding_system.
10138 (syms_of_w32fns): Add w32-system-coding-system.
10140 1999-03-15 Richard M. Stallman <rms@gnu.org>
10142 * xterm.c (XTread_socket) <ConfigureNotify>:
10143 If cursor pos is outside the new frame size, mark cursor as off.
10145 1999-03-14 Ken'ichi Handa <handa@gnu.org>
10147 * xdisp.c (try_window_id): Initialize val.ovstring_chars_done to 0.
10149 * xterm.c (x_load_font): Trap X errors so that Emacs doesn't die
10152 1999-03-14 Richard M. Stallman <rms@gnu.org>
10154 * macros.c (Fexecute_kbd_macro): Initialize executing_macro_iterations
10157 1999-03-14 Jason Rumney <jasonr@altavista.net>
10159 * w32fns.c (w32_strict_fontnames): New variable.
10160 (Fx_create_frame): Formatting fix.
10161 (w32_load_system_font): Keep trying to load non-existant font
10162 if w32_strict_fontnames is nil. Formatting fix.
10163 (syms_of_w32fns): Add w32-strict-fontnames.
10165 * w32term.c (W32_TEXTOUT): Do not multiply nchars by charset_dim.
10166 (dumpglyphs): Formatting fixes.
10168 1999-03-14 Geoff Voelker <voelker@cs.washington.edu>
10170 * w32fns.c (w32_wnd_proc): Handle WM_GETMINMAXINFO message.
10172 1999-03-10 Karl Heuer <kwzh@gnu.org>
10174 * puresize.h (BASE_PURESIZE): Increase to 505000.
10176 1999-03-09 Richard M. Stallman <rms@gnu.org>
10178 * emacs.c (main) [CLASH_DETECTION]: Call init_filelock.
10180 * filelock.c (init_filelock): New function.
10182 1999-03-09 Dave Love <fx@gnu.org>
10184 * fileio.c (Ffile_directory_p): Doc fix.
10186 1999-03-05 Richard M. Stallman <rms@caffeine.ai.mit.edu>
10188 * coding.c (setup_coding_system): Check for CODING_SYSTEM = nil.
10190 1999-03-08 Richard M. Stallman <rms@gnu.org>
10192 * filelock.c (get_boot_time): Reduce scope of #ifdef BOOT_TIME
10193 to only the part that uses get_boot_time_1.
10195 1999-03-07 Dave Love <fx@gnu.org>
10197 * fileio.c (Finsert_file_contents): Use xfree.
10199 1999-03-06 Kenichi Handa <handa@etl.go.jp>
10201 * Makefile.in (callproc.o, coding.o, fileio.o, msdos.o, process.o,
10202 term.o, xselect.o): Depend on ccl.h.
10204 1999-03-05 Geoff Voelker <voelker@cs.washington.edu>
10206 * makefile.nt: Remove common multiple file compilation commands.
10208 1999-03-04 Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
10210 * fns.c (Fbase64_encode_string): Allocate sufficient memory for
10211 newlines added when the arg NO-LINE-BREAK is nil.
10213 1999-03-04 Karl Heuer <kwzh@gnu.org>
10215 * search.c (Fstring_match, Fposix_string_match): Doc fix.
10217 * buffer.c (syms_of_buffer): Doc fix for case-fold-search.
10219 1999-03-04 Dave Love <fx@gnu.org>
10221 * term.c (term_init): Use xmalloc, not malloc.
10223 * callproc.c (Fcall_process): Use xmalloc, xfree.
10225 1999-03-03 Andreas Schwab <schwab@gnu.org>
10227 * eval.c (Fdefconst): Doc fix.
10229 1999-03-01 Kenichi Handa <handa@etl.go.jp>
10231 * coding.c: Comment for ISO 2022 encoding mechanism modified.
10233 1999-03-01 Eli Zaretskii <eliz@gnu.org>
10235 * w16select.c (get_clipboard_data): Always stop at the first null byte.
10237 1999-02-28 Richard M. Stallman <rms@gnu.org>
10239 * filelock.c (get_boot_time): Support FreeBSD way to read boot-time.
10241 * cmds.c (internal_self_insert): Calculate column properly
10242 in overwrite-of-tab case.
10244 1999-02-27 Andreas Schwab <schwab@gnu.org>
10246 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't use unsetenv, it calls
10247 malloc in glibc 2.1.
10249 1999-02-26 Richard Stallman <rms@gnu.org>
10251 * Makefile.in: paths.h and paths.in renamed to epaths.h and epaths.in.
10253 * epaths.in: Renamed from paths.in.
10254 This avoids a conflict with a system header file paths.h on GNU/Linux.
10256 * callproc.c, lread.c, w32fns.c, xfns.c, xrdb.c:
10257 Use epaths.h istead of paths.h.
10259 1999-02-26 Andreas Schwab <schwab@gnu.org>
10261 * emacs.c (main) [DOUG_LEA_MALLOC]: Work around a bug in glibc's
10264 1999-02-25 Dave Love <fx@gnu.org>
10266 * buffer.c (syms_of_buffer): Doc fix for enable-multibyte-characters.
10268 1999-02-25 Richard Stallman <rms@gnu.org>
10270 * filelock.c (get_boot_time): Use WTMP_FILE for file name.
10271 (WTMP_FILE): Default definition in case not defined.
10272 (get_boot_time_1): Test that file exists before trying to read it.
10274 1999-02-25 Ken'ichi Handa <handa@gnu.org>
10276 * keymap.c (push_key_description): If enable-multibyte-characters
10277 is nil and C is single byte, push C as is.
10279 1999-02-24 Kenichi Handa <handa@etl.go.jp>
10281 * keymap.c (push_key_description): If enable-multibyte-characters
10282 is non-nil, try to convert unibyte character to multibyte. For
10283 invalid multibyte character, show all bits by octal form.
10284 (Fsingle_key_description): Check the validity of charset for a
10287 1999-02-23 Richard M. Stallman <rms@gnu.org>
10289 * fileio.c (Ffile_regular_p): Undo previous change.
10291 * eval.c (Fdefconst): Doc fix.
10293 * filelock.c (get_boot_time): Don't use BUFSIZ.
10295 1999-02-22 Andrew Innes <andrewi@gnu.org>
10297 * makefile.nt ($(BLD)\w32bdf.obj): Add missing continuation character.
10298 (EXTRA_LINK): Do version test with strings.
10300 1999-02-22 Andreas Schwab <schwab@gnu.org>
10302 * fns.c (Fbase64_encode_string): Fix last change.
10304 * termhooks.h (event_kind): Add user_signal.
10306 * keyboard.c (Qusr1_signal, Qusr2_signal): New variables.
10307 (syms_of_keyboard): Initialize them.
10308 (lispy_user_signals): New variable.
10309 (make_lispy_event): Handle user_signal event type.
10311 * emacs.c: Don't define Qusr1_signal and Qusr2_signal.
10312 (syms_of_emacs): Don't initialize them.
10313 (handle_USR1_signal, handle_USR2_signal): Set event type to
10314 user_signal instead of non_ascii_keystroke, and use plain integers
10315 as code instead of Lisp symbols.
10317 1999-02-21 Eli Zaretskii <eliz@delysid.gnu.org>
10319 * fileio.c: (lstat) [!S_ISLNK]: Use stat instead of lstat.
10321 1999-02-21 Richard Stallman <rms@gnu.org>
10323 * filelock.c (get_boot_time_1): Put this in #ifdef BOOT_TIME.
10325 * print.c (print_error_message): Don't crash if (cdr data)
10328 1999-02-21 Eli Zaretskii <eliz@gnu.org>
10330 * fileio.c (lstat) [!S_ISLNK]: Use stat instead of lstat.
10332 1999-02-20 Andrew Innes <andrewi@gnu.org>
10334 * vm-limit.c (memory_warnings) [WINDOWSNT]: Reset lim_data on each
10335 run, since size can vary from run to run.
10337 * makefile.nt (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
10338 data is included, to enable profiling.
10339 ($(EMACS)): Map file not needed for emacs.exe.
10341 * emacs.c (main): [!SYSTEM_MALLOC]: Call realloc and free as well
10342 as malloc before calling uninterrupt_malloc, for consistency.
10343 This also enables profiling to work on WINDOWSNT.
10345 1999-02-18 Richard Stallman <rms@gnu.org>
10347 * Makefile.in (emacs.o): Depend on termhooks.h.
10348 (filelock.o): Depend on systime.h.
10350 1999-02-18 Ken'ichi Handa <handa@gnu.org>
10352 * coding.c (Fdecode_sjis_char): Use %x for formatting error message.
10353 (Fdecode_big5_char): Likewise.
10355 1999-02-17 Richard Stallman <rms@gnu.org>
10357 * insdel.c (adjust_markers_for_replace): When doing an insertion
10358 (replacing a region of zero length), handle markers at the
10359 insertion point properly.
10361 1999-02-17 Andrew Innes <andrewi@gnu.org>
10363 * w32fns.c (Vw32_quit_key): New variable.
10364 (post_character_message): Use it.
10365 (syms_of_w32fns): DEFVAR it.
10367 1999-02-16 MORIOKA Tomohiko <morioka@jaist.ac.jp>
10369 * fns.c (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'.
10371 1999-02-16 Richard Stallman <rms@gnu.org>
10373 * filelock.c (within_one_second): New function.
10374 (current_lock_owner): Use that.
10375 (get_boot_time): Use /proc/uptime if available.
10376 Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
10377 (get_boot_time_1): New subroutine taken from get_boot_time.
10379 1999-02-16 Richard Stallman <rms@gnu.org>
10381 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
10382 (syms_of_emacs): Init and staticpro them.
10383 (handle_USR1_signal): Don't run any code, just queue up an event.
10384 (handle_USR2_signal): Likewise.
10386 1999-02-16 Eli Zaretskii <eliz@gnu.org>
10388 * dired.c (Ffile_attributes): If the file's size doesn't fit in
10389 an integer, return it as a float. Doc string fixed.
10391 1999-02-16 Richard Stallman <rms@gnu.org>
10393 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
10394 (syms_of_emacs): Init and staticpro them.
10395 (handle_USR1_signal): Don't run any code, just queue up an event.
10396 (handle_USR2_signal): Likewise.
10398 1999-02-15 Kenichi Handa <handa@etl.go.jp>
10400 * coding.c (Fdecode_sjis_char, Fencode_sjis_char): Handle
10401 ASCII correctly. Signal error on invalid characters.
10402 (Fdecode_big5_char, Fencode_big5_char): Likewise.
10404 1999-02-15 Eli Zaretskii <eliz@gnu.org>
10406 * w16select.c (get_clipboard_data): Work around a bug in Windows95
10407 DOS box which doubles the reported size of text in the clipboard.
10409 1999-02-15 Kenichi Handa <handa@etl.go.jp>
10411 * coding.c (decode_coding_iso2022): Don't set
10412 coding->composed_chars to 0 here.
10413 (setup_coding_system): Set coding->composed_chars to 0 here.
10415 1999-02-10 Richard Stallman <rms@gnu.org>
10417 * fileio.c (Ffile_regular_p): Use lstat.
10419 1999-02-09 Richard Stallman <rms@gnu.org>
10421 * unexelf.c (HAS_SBSS_SECTION): Define this in some cases.
10422 (unexec): Test this instead of specific systems.
10424 * m/macppc.h: New file.
10426 1999-02-08 Dave Love <fx@gnu.org>
10428 * fns.c (Fyes_or_no_p, Fy_or_n_p): Doc fix.
10430 1999-02-08 Ken'ichi Handa <handa@gnu.org>
10432 * coding.c (ccl_coding_driver): On encoding, coding->produced_char
10433 should be set to coding->produced.
10435 1999-02-07 Paul Fisher <rao@gnu.org>
10437 * fns.c (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
10438 (base64_decode_1): Use READ_QUADRUPLET_BYTE.
10440 1999-02-07 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
10442 * editfns.c (Fformat): Doc fix.
10444 1999-02-06 Richard Stallman <rms@gnu.org>
10446 * process.c (syms_of_process): defsubr it.
10447 (Fprocess_running_child_p): New function.
10449 1999-02-05 Andrew Innes <andrewi@gnu.org>
10451 * w32term.c (construct_drag_n_drop): Call DraqQueryPoint before
10452 recording drop position.
10454 1999-02-05 Ken'ichi Handa <handa@gnu.org>
10456 * coding.c (encode_coding_iso2022): Before writing out an invalid
10457 code, reset graphic planes and registers if necessary.
10459 * term.c (encode_terminal_code): Fix previous change.
10461 1999-02-04 Eli Zaretskii <eliz@gnu.org>
10463 * w16select.c (last_clipboard_text, clipboard_storage_size): New
10465 (set_clipboard_data): Save a copy of the text we put into
10466 clipboard in last_clipboard_text.
10467 (get_clipboard_data): If the clipboard text is identical to what
10468 last_clipboard_text holds, pretend there's no data in the clipboard.
10470 1999-02-03 Richard Stallman <rms@gnu.org>
10472 * s/gnu.h (NLIST_STRUCT): Add #undef.
10474 1999-02-03 Eli Zaretskii <eliz@gnu.org>
10476 * w16select.c (Fw16_set_clipboard_data): When the text needs to be
10477 encoded, set its pointer and size as returned by encode_coding.
10479 1999-02-02 Ken'ichi Handa <handa@gnu.org>
10481 * fns.c (Fset_char_table_default): To handle the case that CH is
10482 an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
10484 1999-02-02 Andrew Innes <andrewi@gnu.org>
10486 * w32fns.c (syms_of_w32fns): Change default value of
10487 w32-mouse-move-interval to 0, so that the mouse wheel/rocker on
10488 some mice works properly.
10490 1999-02-02 Eli Zaretskii <eliz@gnu.org>
10492 * w16select.c (set_clipboard_data): Correctly null-terminate the
10493 string to be put into the Windows clipboard. Use xbuf_addr.
10495 1999-02-01 Richard Stallman <rms@gnu.org>
10497 * buffer.c (Fset_buffer_multibyte): Error if buffer is indirect.
10499 1999-01-31 Richard Stallman <rms@gnu.org>
10501 * process.c (process_send_signal): If CURRENT_GROUP is `lambda'
10502 then don't send the signal if the shell owns the terminal.
10503 (Finterrupt_process): Doc change.
10505 1999-01-31 Andrew Innes <andrewi@gnu.org>
10507 * unexw32.c: (ROUND_UP_DST_AND_ZERO): New macro.
10508 (copy_executable_and_dump_data): Use it to ensure alignment slop
10511 1999-01-30 Andrew Innes <andrewi@gnu.org>
10513 * w32.c (init_environment): Change argv[0] to contain the full
10516 * emacs.c (main) [WINDOWSNT]: Pass argv to init_environment.
10518 1999-01-29 Ken'ichi Handa <handa@gnu.org>
10520 * xterm.c (x_new_fontset): For ASCII font, don't use the font name
10521 returned by x_new_font (the resolved one) but use the font name
10522 set in the fontset specification.
10523 (x_load_font): For the height of font, if normarl ascent and
10524 descent value are larger than those in max_bounds field, use the
10527 1999-01-28 Eli Zaretskii <eliz@gnu.org>
10529 * xdisp.c (decode_mode_spec_coding): Fix previous change.
10531 1999-01-27 Geoff Voelker <voelker@cs.washington.edu>
10533 * makefile.nt: Use full path to temacs.exe when dumping.
10535 1999-01-27 Jason Rumney <jasonr@altavista.net>
10537 * w32fns.c (w32_load_system_font): Do not load unlisted fonts if
10539 (enum_fontex_cb1, enum_fontex_cb2): New functions.
10540 (w32_list_bdf_fonts): New parameter; max_names. Callers updated.
10541 (w32_list_synthesized_fonts): New function.
10542 (w32_list_fonts): Use maxnames. Use EnumFontFamiliesEx when
10543 available instead of EnumFontFamilies. List synthesized fonts if
10544 Vw32_enable_italics is non-nil.
10546 1999-01-27 Richard Stallman <rms@gnu.org>
10548 * s/ptx4.h (SETUP_SLAVE_PTY): Use the ptem module if it exists.
10549 Don't complain if ttcompat does not exist.
10551 * w32fns.c (x_set_frame_parameters): gcpro as needed.
10553 1999-01-27 Andrew Innes <andrewi@gnu.org>
10555 * w32fns.c (w32_wnd_proc): Fix bug introduced by previous change;
10556 the lwindow, rwindow and apps keys could not be used as function
10557 keys, because they were being passed to TranslateMessage which
10558 ignores them. Also, key was being changed to SPC.
10560 * makefile.nt: Do make version comparison as strings.
10562 1999-01-27 Eli Zaretskii <eliz@gnu.org>
10564 * coding.c (syms_of_coding): eol-mnemonic-* variables are now
10565 strings, not characters.
10567 * coding.h: Likewise.
10569 * xdisp.c (decode_mode_spec_coding): Display the EOL type as a
10572 1999-01-26 Dave Love <fx@gnu.org>
10574 * emacs.c (main): Up-date copyright.
10576 1999-01-25 Dave Love <fx@gnu.org>
10578 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
10580 1999-01-25 Andreas Schwab <schwab@gnu.org>
10582 * eval.c (Fsignal): Move comment to avoid confusing make-docfile.
10584 1999-01-23 Richard M. Stallman <rms@borg.ai.mit.edu>
10586 * xfns.c (x_set_frame_parameters): gcpro as needed.
10588 * window.c (Fset_window_point): If WINDOW is selected but the
10589 current buffer is not its buffer, don't use Fgoto_char.
10591 1999-01-22 Richard M. Stallman <rms@gnu.org>
10593 * syntax.c (scan_sexps_forward): Delete duplicate code
10594 to set prev_from_syntax, above start of main loop.
10595 At startinstring, check syntax when checking for a match.
10597 1999-01-22 Jason Rumney <jasonr@altavista.net>
10599 * w32bdf.c: New file.
10600 * w32bdf.h: New file.
10601 * makefile.nt: Add w32bdf.c and w32bdf.h.
10603 * w32gui.h: Include w32bdf.h.
10604 (W32FontStruct) Add bdf element.
10606 * w32term.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
10609 * w32term.c (W32_TEXTOUT): New macro.
10610 (dumpglyphs): Support BDF fonts. Use W32_TEXTOUT macro.
10611 Simplify baseline calculation. Detect SJIS by font, not glyph.
10613 (syms_of_w32term): Remove "jisx0212-sjis" from
10614 w32-charset-to-codepage-alist.
10615 Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
10616 Add "ksc5601.1992' to w32-charset-to-codepage-alist.
10618 * w32fns.c (Vw32_bdf_filename_alist): New variable.
10619 (x_destroy_bitmap): Returns void not int.
10620 (x_set_border_pixel): Returns void.
10621 (w32_load_bdf_font): New function.
10622 (w32_load_system_font): New function, was w32_load_font. List
10623 fonts before loading. Explicitly set encoding for SJIS fonts.
10624 Set default_ascent to 0 as comment indicates.
10625 (w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
10626 (w32_unload_font): Support BDF fonts.
10627 (w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
10628 Autodetect whether to use koi8-r instead of iso8859-5.
10629 Associate "ksc5601.1987" with HANGUEL_CHARSET.
10630 Associate "ksc5601.1992" with JOHAB_CHARSET.
10631 (x_to_w32_charset): Make consistent with w32_to_x_charset.
10632 (w32_to_x_font): Add resolution.
10633 (x_to_w32_font): Use font resolution to calculate height if supplied.
10634 (w32_font_match): Handle wildcards anywhere within field.
10635 (enumfont_t): Remove unused head pointer.
10636 (enum_font_cb2): Dereference elfLogFont.
10637 (w32_list_bdf_fonts): New function.
10638 (w32_list_fonts): Use one_w32_dispay_info instead of insisting on
10639 valid frame. Remove MessageBox. Support BDF fonts.
10640 (Fw32_find_bdf_fonts): New function.
10641 (syms_of_w32fns): Add Vw32_bdf_filename_alist and
10642 Sw32_find_bdf_fonts.
10644 1999-01-21 Andrew Innes <andrewi@gnu.org>
10646 * makefile.nt (temacs): Use del to delete file, not rm.
10648 1999-01-19 Richard Stallman <rms@psilocin.ai.mit.edu>
10650 * keyboard.c (read_key_sequence): Fix previous change.
10652 * xterm.c (same_x_server): Detect treat ":0" and "unix:0"
10653 as the same. Treat "myname:0" as the same as those two.
10655 1999-01-19 Jason Rumney <jasonr@altavista.net>
10657 * w32fns.c (x_to_w32_charset): Add iso8859-9.
10658 (w32_to_x_charset): Fix charset mappings.
10660 * w32term.c: Remove codepage macros. Remove redundant BIG5 macros.
10661 (dumpglyphs): Move definitions out of block containing goto.
10662 Remove redundant code for BIG5.
10663 Use w32_codepage_for_font instead of
10664 w32_codepage_for_charset. Add cast to int where float
10665 operation is assigned to int.
10666 (Vw32_charset_to_codepage_alist): New variable.
10667 (w32_codepage_for_charset): Removed.
10668 (w32_codepage_for_font): New function, replacing
10669 w32_codepage_for_charset.
10670 (syms_of_w32term): Add and initialize
10671 w32-charset-to-codepage-alist.
10673 1999-01-17 Richard Stallman <rms@psilocin.ai.mit.edu>
10675 * xselect.c (x_handle_selection_clear): Don't clear the
10676 selection if Emacs still owns it through a different display.
10678 1999-01-17 Andrew Innes <andrewi@gnu.org>
10680 * w32proc.c: (w32_executable_type): Relax the check to identify
10681 cygwin-compiled applications, because the exact dll name varies
10682 with release. Now only require the name to start "cygwin".
10684 * w32heap.h: (ROUND_UP):
10685 (ROUND_DOWN): New macros.
10686 (need_to_recreate_heap): Renamed to using_dynamic_heap.
10687 (init_heap): New extern.
10688 (data_region_size):
10693 (w32_fatal_reload_error):
10694 (get_section_size): Obsolete externs removed.
10696 * w32heap.c: (RVA_TO_PTR): Redefine to convert RVA to address in
10698 (round_to_next): Obsolete function removed.
10699 (preload_heap_section): New variable.
10700 (data_region_size): Obsolete variable removed.
10701 (allocate_heap): Modified to determine end of static heap section
10702 used during preload, and use that as initial base address for
10703 dynamic heap instead of hard-coded value.
10704 (sbrk): Remove call to allocate_heap; handled by init_heap. Skip
10705 calls to commit or decommit pages when allocating from static heap
10706 section during preload.
10707 (recreate_heap): Obsolete function removed.
10708 (init_heap): New function to initialize internal sbrk heap
10709 variables. Uses static heap section during preload, otherwise
10710 calls allocate_heap to reserve a heap region dynamically.
10711 (round_heap): Use ROUND_UP macro instead of round_to_next.
10713 * unexw32.c: Major rewrite to support cleaner method of dumping; a
10714 static "bss" section is used for heap space during preload, and
10715 bss data is now written to the proper section area when dumping.
10716 (need_to_recreate_heap): Renamed to using_dynamic_heap.
10717 (heap_index_in_executable): Obsolete variable removed.
10718 (data_section): New variable.
10719 (data_start_va): Renamed to data_start.
10720 (data_start_file): Obsolete variable removed.
10723 (bss_section_static):
10724 (bss_start_static):
10726 (extra_bss_size_static):
10727 (heap_section): New variables.
10728 (_start): Remove code based on old unexec method. Call init_heap
10729 to initialize sbrk heap.
10730 (close_file_data): Update size of file when closing, so that
10731 unexec doesn't have to work out exact size in advance.
10732 (get_bss_info_from_map_file):
10733 (get_section_size): Obsolete functions removed.
10734 (rva_to_section): Fix minor bug, and add a work-around for a bug
10735 in very old linkers.
10736 (offset_to_section):
10737 (relocate_offset): New functions.
10740 (RVA_TO_SECTION_OFFSET):
10743 (OFFSET_TO_PTR): New macros.
10744 (get_section_info): Modify to support new unexec method;
10745 determines address ranges in process that need dumping, and COFF
10746 sections where data will be dumped. Allows for static and global
10747 bss data to be in separate ranges. No longer relies on knowledge
10749 (copy_executable_and_dump_data_section): Renamed
10750 copy_executable_and_dump_data. Completely rewritten to copy
10751 executable section by section, so that raw data areas can be
10752 expanded to hold dumped data as necessary. Allows for bss data to
10753 be in same section as initialized data. Reduces size of static
10754 heap section to that used during preload.
10755 (dump_bss_and_heap):
10756 (w32_fatal_reload_error):
10758 (map_in_heap): Obsolete functions removed.
10759 (unexec): Rounds off preload heap to nearest page rather than
10760 virtual allocation unit. Modified to match other changes.
10762 * mem-limits.h: (get_lim_data): Use reserved_heap_size instead of
10765 * makefile.nt: (TEMACS_TMP): New macro.
10766 ($(TEMACS)): Output to TEMACS_TMP from link, use post-link
10767 processor to add static heap section in support of new unexec.
10769 * lastfile.c: Include config.h to pick up data layout pragmas.
10770 [WINDOWSNT]: Remove explicit pragma.
10772 1999-01-12 Kenichi Handa <handa@etl.go.jp>
10774 * coding.c (Fdecode_sjis_char): Decode Japanese Katakana character
10776 (Fencode_sjis_char): Encode Japanese Katakana character correctly.
10778 1999-01-11 Dave Love <fx@gnu.org>
10780 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
10782 1999-01-11 Richard Stallman <rms@psilocin.ai.mit.edu>
10784 * keyboard.c (read_key_sequence): In key-translation-map and
10785 function-key-map, handle symbol with array as fn def.
10786 In function-key-map, handle symbol with keymap as fn def,
10787 and autoloaded definitions.
10789 * puresize.h (BASE_PURESIZE): Increment to 500000.
10791 * print.c (Qtemp_buffer_setup_hook): New variable.
10792 (syms_of_print): Init and staticpro that.
10793 (temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
10795 1999-01-11 Kenichi Handa <handa@etl.go.jp>
10797 * insdel.c (del_range_1): Call signal_after_change.
10798 (del_range_byte): Likewise.
10799 (del_range_both): Likewise.
10800 (del_range_2): Don't call signal_after_change.
10802 * xdisp.c (message_dolog): Use insert_1_both to avoid running any
10805 1999-01-07 Richard Stallman <rms@psilocin.ai.mit.edu>
10807 * eval.c (find_handler_clause): If SIG is nil (memory full error),
10808 never run the debugger, and don't bother checking the args
10809 to see whether the debugger should be run.
10811 1999-01-06 Richard Stallman <rms@psilocin.ai.mit.edu>
10813 * keyboard.c (read_key_sequence):
10814 Tell get_keyelt to look handle autoloads.
10815 Handle symbols defined as keymaps, and autoloaded keymaps.
10817 1999-01-06 Kenichi Handa <handa@etl.go.jp>
10819 * search.c (search_buffer): Fix previous change.
10821 1999-01-06 Eli Zaretskii <eliz@gnu.org>
10823 * w16select.c (set_clipboard_data): Terminate the text with a null
10824 character. Don't allow to put binary data into the clipboard.
10825 Return zero in case of success, 1 or 2 otherwise.
10826 (get_clipboard_data): Only bail out if the null character is in
10827 the last 32-byte chunk of clipboard data
10828 (Fw16_set_clipboard_data): Make ok and put_status be unsigned. If
10829 they save binary data, print a message in the echo area saying the
10830 text was not put into the clipboard.
10832 * msdos.c (IT_write_glyphs): Move constant expression out of the loop.
10834 1999-01-06 Andreas Schwab <schwab@gnu.org>
10836 * systty.h [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
10837 _BSD_SOURCE, the latter is always defined.
10839 1999-01-05 Richard Stallman <rms@psilocin.ai.mit.edu>
10841 * fns.c (Frequire): Don't fail to unbind bindings.
10843 1999-01-02 Richard Stallman <rms@psilocin.ai.mit.edu>
10845 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit.
10847 * charset.c (Ffind_charset_region): Fix doc typo.
10849 1998-12-31 Eli Zaretskii <eliz@mescaline.gnu.org>
10851 * msdos.c (IT_write_glyphs): Convert unibyte characters to
10852 multibyte in unibyte buffers only.
10854 * keymap.c (Fdefine_prefix_command): Accept a third argument NAME
10855 and pass it to Fmake_sparse_keymap.
10857 1998-12-29 Richard Stallman <rms@psilocin.ai.mit.edu>
10859 * alloc.c (MMAP_MAX_AREAS): New macro.
10860 (allocate_vectorlike, make_uninit_multibyte_string): Use that.
10861 (init_alloc_once): Use that.
10863 * s/gnu-linux.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
10865 * alloc.c (lisp_malloc, lisp_free): New functions.
10866 Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
10867 Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
10868 (n_interval_blocks, n_float_blocks): New variable.
10869 (n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
10870 (n_marker_blocks, n_string_blocks): New variable.
10871 (init_intervals, make_interval): Set a count variable.
10872 Use lisp_malloc instead of setting allocating_for_lisp.
10873 (init_float, make_float, init_cons, Fcons): Likewise.
10874 (allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
10875 (init_marker, allocate_misc, init_strings): Likewise.
10876 (make_uninit_multibyte_string): Likewise.
10877 (gc_sweep, compact_strings): Decrement the count variables.
10879 * alloc.c (uninterrupt_malloc): Don't store Emacs's hooks
10880 into the old_..._hook variables.
10882 1998-12-28 Richard Stallman <rms@psilocin.ai.mit.edu>
10884 * keyboard.c: In each active map, for each menu bar item, use only
10886 (menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
10887 (menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
10888 (syms_of_keyboard): Staticpro and init it.
10890 * xmenu.c (single_keymap_panes):
10892 1998-12-28 Andrew Innes <andrewi@delysid.gnu.org>
10894 * w32fns.c (w32_msg_pump): Ignore WM_NULL message posted to thread
10895 by complete_deferred_msg.
10896 (post_character_message): Cancel all deferred messages when
10897 quit_char is typed, in order to break out of potential deadlocks.
10898 (cancel_all_deferred_msgs): New function.
10899 (complete_deferred_msg): Don't abort if msg not found; may have
10901 (Fw32_reconstruct_hot_key): Use pre-interned symbols.
10902 (Fw32_send_sys_command): Wait for system command to
10903 complete before returning.
10905 * w32term.c (x_iconify_frame): Wait for frame to be iconified; do
10906 not set async_iconified flag though.
10908 * w32proc.c: (Vw32_start_process_inherit_error_mode): New variable.
10909 (create_child): Use it.
10910 (syms_of_ntproc): Defvar it. Also fix docstrings for
10911 w32-start-process-share-console and w32-start-process-show-window.
10913 * unexw32.c (_start): Force system calls accessing unmounted
10914 devices to fail without prompting.
10916 1998-12-26 Richard Stallman <rms@psilocin.ai.mit.edu>
10918 * emacs.c (main): Call memory_warnings and uninterrupt_malloc
10919 even when starting the dumped Emacs.
10921 * keymap.c (Fsingle_key_description): Handle (control ?x) etc.
10922 (Fkey_description): Handle lists like vectors.
10924 1998-12-21 Kenichi Handa <handa@etl.go.jp>
10926 * callint.c (Fcall_interactively) <'C'>: Give Fread_char Qnil
10927 because of the change of the second argument of Fread_char.
10929 * charset.c (Fcharset_after): Check range. If POS is out of
10932 * keyboard.c (read_char): Don't bind input-method-exit-on-first-char.
10934 * lread.c (Fread_char): Change the meaning of the second argument.
10935 (Fread_event): Likewise.
10936 (Fread_char_exclusive): Likewise.
10938 * print.c (printchar): Fix previous change.
10940 * process.c (read_process_output): Decide the multibyteness of
10941 string given to a process filter by a coding system used for
10942 decoding the process output.
10944 1998-12-21 Eli Zaretskii <eliz@mescaline.gnu.org>
10946 * xterm.c (dumpglyphs): Don't convert 7-bit ASCII characters via
10947 nonascii-translation-table.
10948 * msdos.c (IT_write_glyphs): Likewise.
10949 * fns.c (concat): Likewise.
10950 * charset.c (unibyte_char_to_multibyte): Likewise.
10951 * insdel.c (copy_text, count_size_as_multibyte): Likewise.
10953 1998-12-21 Andreas Schwab <schwab@delysid.gnu.org>
10955 * doc.c (Fdocumentation): Change the doc string for prefix
10956 commands to make it a complete sentence in one line.
10958 1998-12-16 Petri Kaurinkoski <Petri.Kaurinkoski@hut.fi>
10960 * s/irix6-5.h: New file.
10961 * s/irix6-0.h (IRIX6): Define this symbol.
10962 * s/usg5-4.h (TIOCSIGSEND): Don't define this if irix6.
10963 (bcopy, bcmp, bzero): Likewise.
10964 * m/iris4d.h (LIBS_MACHINE): Leave this blank if irix6.5.
10965 (C_SWITCH_MACHINE): New value for irix6.5.
10967 1998-12-15 Richard Stallman <rms@gnu.org>
10969 * fns.c (Fbase64_decode_region, Fbase64_decode_string):
10970 Do free malloc'd memory even in case of failure. Use xfree, not free.
10971 (Fbase64_encode_region, Fbase64_encode_string): Use xfree, not free.
10972 (base64_decode_1): Don't fail for short lines.
10974 * print.c (printchar): Outputting multibyte characters
10975 to echo area always makes it multibyte.
10977 * search.c (search_buffer): Don't use Boyer-Moore
10978 to search for an invalid multibyte code.
10979 In unibyte case, no need to check whether there are translations
10980 in more than one charset; just set charset_base to 0.
10982 1998-12-15 Ken'ichi Handa <handa@delysid.gnu.org>
10984 * print.c (printchar): Cancel previous change.
10986 1998-12-15 Kenichi Handa <handa@etl.go.jp>
10988 * callproc.c: Include "ccl.h".
10989 (Fcall_process): Doc-string modified. Set CODING_MODE_LAST_BLOCK
10990 bit in argument_coding.mode to tell encoding procedure to flush
10991 data. While encoding arguments, if argument_coding uses CCL
10992 program, initialize it again after encoding.
10993 (Fcall_process_region): Doc-string modified. Handle the case that
10996 * ccl.c (CCL_SUCCESS): Don't set ccl->ic.
10997 (ccl_driver) <CCL_End>: Pretend that all source text is consumed.
10998 Set `ic' to the head of this command.
10999 (ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
11000 code for an invalid code.
11001 (setup_ccl_program): If the arg VEC is nil, skip setting ups
11004 * charset.c (Qunknown): New variable.
11005 (init_charset_once): Intern and staticpro Qunknown. Initialize
11006 all elements of Vcharset_symbol_table to Qunknown.
11007 (find_charset_in_str): New arg MULTIBYTE. If it is zero, check
11008 unibyte characters only. For an invalid composition sequence, set
11010 (Ffind_charset_region): Call find_charset_in_str with an
11011 appropriate MULTIBYTE arg. If undefined charsets are found,
11012 include `unknown' is the return value.
11013 (Ffind_charset_string): Likewise.
11014 (Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
11015 (str_cmpchar_id): Max composite character code should be less than
11016 GENERIC_COMPOSITION_CHAR.
11018 * charset.h (find_charset_in_str): Update declaration.
11020 * coding.c (DECODE_DESIGNATION): Jump to label_invalid_code if
11021 final_char is invalid.
11022 (decode_coding): If coding->type is coding_type_ccl, call
11023 ccl_coding_driver even if SRC_BYTES is zero.
11024 (code_convert_region): Update `inserted' correctly after calling
11025 coding->post_read_conversion. Even after the code converter
11026 consumed all source text, call it once more if it is
11027 coding_type_ccl to flush out data.
11029 * fileio.c (Finsert_file_contents): Even if INSERTED is zero, if
11030 CODING is handled by CCL program, call code_convert_region.
11032 * fns.c (string_char_to_byte): Handle invalid multibyte sequence
11034 (string_byte_to_char): Likesize.
11036 * print.c (printchar): When outputting a multibyte character to
11037 echo area, always set message_enable_multibyte to 1.
11039 * process.c (read_process_output): If NBYTES is zero and
11040 CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
11041 and try decoding again.
11042 (Fprocess_send_eof): If the coding system of PROCESS
11043 requires flushing, call send_process with null-string at first.
11045 * w16select.c (Fw16_set_clipboard_data): Call find_charset_in_str
11046 with MULTIBYTE arg 0.
11047 * w32select.c (Fw32_set_clipboard_data): Likewise.
11048 * xselect.c (lisp_data_to_selection_data): Likewise.
11050 1998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
11052 * search.c (Freplace_match): Set OPOINT clearly for the case
11053 where point is in the middle of the text to be replaced.
11055 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
11056 if compute_motion fails to advance at all, don't back it up.
11058 1998-12-10 Geoff Voelker <voelker@cs.washington.edu>
11060 * w32.c (w32_get_long_filename): Handle root dirs correctly.
11062 * s/ms-w32.h (LOCALTIME_CACHE): Define.
11064 1998-12-09 Richard Stallman <rms@gnu.org>
11066 * insdel.c (insert_from_buffer_1): Properly count the size
11067 of output from conversion to multibyte even when input
11068 is split across the gap.
11070 1998-12-09 Karl Heuer <kwzh@gnu.org>
11072 * keyboard.c: Doc fixes.
11074 * s/irix4-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
11076 1998-12-08 Andrew Innes <andrewi@harlequin.co.uk>
11078 * w32select.c (Fw32_get_clipboard_data): Do not delete isolated CR
11079 characters, only convert CRLF to LF.
11081 1998-12-08 Geoff Voelker <voelker@cs.washington.edu>
11083 * makefile.nt: Do string comparision of _NMAKE_VER.
11085 1998-12-06 Eli Zaretskii <eliz@mescaline.gnu.org>
11087 * Makefile.in (msdos.o): Depend on termchar.h, charset.h,
11088 coding.h, and disptab.h
11090 * msdos.c (Vdos_unsupported_char_glyph): New variable.
11091 (syms_of_msdos): DEFVAR_LISP it.
11092 (IT_insert_glyphs, IT_delete_glyphs): New functions which abort Emacs.
11093 (internal_terminal_init): Set up insert_glyphs_hook and
11094 delete_glyphs_hook to call them. Explicitly set char_ins_del_ok to 0.
11095 (unibyte_display_via_language_environment): New variable.
11096 (syms_of_msdos): Devfar it.
11097 (IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
11098 Encode the character codes of the glyphs according to the
11099 terminal_coding in effect.
11101 1998-12-04 Andreas Schwab <schwab@delysid.gnu.org>
11103 * fns.c (Fstring_as_unibyte): Doc fix.
11105 1998-12-03 Andreas Schwab <schwab@delysid.gnu.org>
11107 * charset.h: Declare char_valid_p.
11109 1998-12-03 Eli Zaretskii <eliz@mescaline.gnu.org>
11111 * dosfns.c (dos_cleanup): Flush and fsync the termscript stream.
11113 * msdos.c (init_environment): Record the time we started up.
11114 (IT_reset_terminal_modes): Don't restore the screen if we exit too
11115 fast after startup (aka crash).
11117 1998-12-02 Geoff Voelker <voelker@cs.washington.edu>
11119 * w32.c (check_windows_init_file): Use decode_env_path when
11120 using EMACSLOADPATH.
11122 1998-12-02 Jason Rumney <jasonr@altavista.net>
11124 * w32term.c (dumpglyphs): Use unsigned char arrays.
11125 Use FONT_MAX_WIDTH to detect and fudge proportional fonts
11126 for various languages.
11127 Compensate for fonts that have underhangs (e.g., Thai).
11129 * w32term.h (FONT_MAX_WIDTH): New macro.
11131 1998-12-02 Andrew Innes <andrewi@harlequin.co.uk>
11133 * keyboard.c (Qlanguage_change): New variable.
11134 (syms_of_keyboard): Init it.
11135 (kbd_buffer_get_event) [WINDOWSNT]: Generate language-change events.
11136 (lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
11137 keys; add name for Escape key; extend to 256 elements.
11138 (parse_modifiers): Make non-static.
11140 * keyboard.h (parse_modifiers): Declare prototype.
11142 * termhooks.h (event_kind) [WINDOWSNT]: Define language_change_event.
11144 * w32fns.c (w32_last_error): Fix cut+paste error.
11145 (Vw32_phantom_key_code): New variable.
11146 (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New variables.
11147 (syms_of_w32fns): Init and register them.
11148 (reset_modifiers): Use a more precise test for whether Emacs has
11149 keyboard focus. Synchronize state of all keys that can be used as
11150 modifiers, to overcome problems arising from hot-keys.
11151 (w32_key_to_modifier): Be careful not to call intern() to avoid
11152 requiring thread synchronization.
11153 (w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
11154 (w32_wnd_proc): Ensure lock key indicator lights are updated
11155 promptly on Windows 9x, by passing key events on to the system.
11156 (w32_wnd_proc): Use Vw32_phantom_key_code to stop system
11157 responding to Windows key events when not wanted.
11158 (w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
11159 Ctrl-NumLock into pause by the system.
11160 (w32_wnd_proc): Don't translate key combinations containing any
11161 modifiers other than shift (and capslock).
11162 (w32_wnd_proc): Reset modifier key states when receiving focus (we
11163 can't determine the key states until we have keyboard focus).
11164 (Fw32_toggle_lock_key): New function.
11165 (syms_of_w32fns): Defsubr it.
11167 * w32inevt.c (key_event): Use Vw32_phantom_key_code. Undo the
11168 mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
11169 (w32_console_toggle_lock_key): New function.
11171 * w32term.h (WM_EMACS_TOGGLE_LOCK_KEY): New define.
11173 1998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
11175 * search.c (Freplace_match): Set OPOINT clearly for the case
11176 where point is in the middle of the text to be replaced.
11178 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
11179 if compute_motion fails to advance at all, don't back it up.
11181 1998-11-28 Richard Stallman <rms@psilocin.ai.mit.edu>
11183 * xfns.c (Qouter_window_id): New variable.
11184 (syms_of_xfns): Initialize it.
11185 (x_report_frame_params): Set up outer-window-id parameter.
11187 * keymap.c (Fsingle_key_description): Fix previous change.
11189 1998-11-26 Ken'ichi Handa <handa@delysid.gnu.org>
11191 * lisp.h (Frequire): Update declaration.
11193 1998-11-26 Kenichi Handa <handa@etl.go.jp>
11195 * ccl.c (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
11196 if the charset is ascii.
11197 (ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
11199 * charset.c (non_ascii_char_to_string): If C has modifier bits,
11200 make an appropriate one byte string.
11201 (char_bytes): Handle the case that C is a single byte char or has
11204 * charset.h (CHAR_BYTES): If C has modifier bits, return 1.
11206 * cmds.c (internal_self_insert): If C has modifier bits, insert
11207 appropriate one byte char.
11209 1998-11-25 Richard Stallman <rms@psilocin.ai.mit.edu>
11211 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte):
11212 Clear text properties in the new string.
11214 1998-11-24 Felix Lee <flee@cygnus.com>
11216 * process.c (read_process_output): Call signal_after_change.
11218 1998-11-24 Richard Stallman <rms@psilocin.ai.mit.edu>
11220 * buffer.c (syms_of_buffer): Doc fix.
11222 * keyboard.c (syms_of_keyboard): Doc fix.
11224 1998-11-22 Richard Stallman <rms@psilocin.ai.mit.edu>
11226 * frame.c (Fset_mouse_position): Doc fix.
11228 1998-11-20 Richard Stallman <rms@psilocin.ai.mit.edu>
11230 * keymap.c (Fmake_keymap): Doc fix.
11232 1998-11-17 Kenichi Handa <handa@etl.go.jp>
11234 * category.c (word_boundary_p): If C1 or C2 are composite
11235 characters, test their first components.
11237 1998-11-16 Richard Stallman <rms@sucrose.ai.mit.edu>
11239 * window.c (temp_output_buffer_show): Around temp-buffer-show-hook,
11240 don't do save-excursion, just restore selected window.
11242 * window.c (window_loop): For UNSHOW_BUFFER,
11243 always do consider minibuffer windows.
11245 1998-11-16 Kenichi Handa <handa@etl.go.jp>
11247 * charset.h (SINGLE_BYTE_CHAR_P): Check if C is negative or not.
11249 * charset.c (non_ascii_char_to_string): If C is negative, signal error.
11251 * lisp.h (CHAR_TABLE_REF): Check if IDX is negative or not.
11253 * s/bsdos4.h: New file.
11255 1998-11-16 Kenichi Handa <handa@etl.go.jp>
11257 * Makefile.in (abbrev.o): Depend on charset.h
11258 (bytecode.o): Depend on charset.h.
11260 * bytecode.c: Include charset.h.
11262 * abbrev.c: Include charset.h.
11264 * syntax.h (SYNTAX_ENTRY_INT): For a composite character, check
11265 the first component.
11267 1998-11-13 Ehud Karni <ehud@unix.simonwiesel.co.il>
11269 * m/aviion-intel.h (LIBS_MACHINE): Delete redundant definition.
11271 1998-11-11 Richard Stallman <rms@gnu.org>
11273 * xterm.c (XTread_socket): Fix previous change in case F == 0.
11275 * s/dgux5-4-3.h (BSD_PGRPS): Add #undef.
11277 * s/dgux4.h (BROKEN_FIONREAD): #undef commented out.
11278 (INTERRUPT_INPUT): #define commented out.
11280 * m/aviion-intel.h: New file.
11282 1998-11-11 Eli Zaretskii <eliz@delysid.gnu.org>
11284 * fns.c (MAX_ALLOCA): New macro.
11285 (Fbase64_encode_region, Fbase64_encode_string,
11286 Fbase64_decode_region, Fbase64_decode_string): Don't allocate
11287 more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
11289 1998-11-11 Ken'ichi Handa <handa@delysid.gnu.org>
11291 * insdel.c (byte_combining_error): Error message improved.
11293 * charset.c (char_valid_p): Handle a composite character correctly.
11295 1998-11-11 Kenichi Handa <handa@etl.go.jp>
11297 * charset.c (str_cmpchar_id): Check the byte sequence for
11298 composition more rigidly.
11299 (Fcompose_string): Allow DEL to be composed. Signal error if STR
11300 contains an invalid multibyte sequence.
11302 * xterm.c (x_list_fonts): Don't change the value of maxnames.
11304 1998-11-10 Andrew Innes <andrewi@harlequin.co.uk>
11306 * w32term.h (struct w32_display_info): New element faked_key.
11307 (WM_EMACS_SETKEYBOARDLAYOUT):
11308 (WM_EMACS_REGISTER_HOT_KEY):
11309 (WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
11310 (LEFT_WIN_PRESSED):
11311 (RIGHT_WIN_PRESSED):
11312 (APPS_PRESSED): New console keyboard modifier flags.
11314 * w32term.c (convert_to_key_event): Removed.
11315 (is_dead_key): Copied to w32fns.c.
11316 (w32_read_socket): Generate language_change_event. Modify to work
11317 with keyboard handling changes in w32_wnd_proc.
11319 * w32proc.c (sys_kill): Set extended key flag when faking
11320 Ctrl-Break keystrokes.
11321 (Fw32_get_locale_info): Allow LONGFORM parameter to specify an
11322 arbitrary locale property using a numerical index.
11323 (Vw32_valid_codepages): New variable.
11324 (enum_codepage_fn):
11325 (Fw32_get_valid_codepages):
11326 (Fw32_get_console_codepage):
11327 (Fw32_set_console_codepage):
11328 (Fw32_get_console_output_codepage):
11329 (Fw32_set_console_output_codepage):
11330 (Fw32_get_codepage_charset):
11331 (Fw32_get_valid_keyboard_layouts):
11332 (Fw32_get_keyboard_layout):
11333 (Fw32_set_keyboard_layout): New functions, exposing Windows locale
11334 handling functions.
11335 (syms_of_ntproc): Register them.
11337 * w32inevt.c: Include w32term.h and w32heap.h.
11339 (Vw32_enable_caps_lock):
11340 (Vw32_enable_num_lock):
11341 (Vw32_pass_lwindow_to_system):
11342 (Vw32_pass_rwindow_to_system):
11343 (Vw32_lwindow_modifier):
11344 (Vw32_rwindow_modifier):
11345 (Vw32_apps_modifier):
11346 (Vw32_scroll_lock_modifier):
11347 (w32_key_to_modifier): Add externs.
11348 (w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
11349 Scroll Lock as potential modifiers; exclude numpad keys from
11350 effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
11352 (is_dead_key): Copy from w32fns.c.
11353 (w32_kbd_patch_key): Comment attempt to improve handling of
11354 dead-keys, and system bug relating to same on Windows NT. Work
11355 around the bug by calling ToUnicode and then converting to the
11357 (map_virt_key): Removed obsolete variable.
11358 (lispy_function_keys): Add extern.
11359 (key_event): Major rework of keyboard input handling: optionally
11360 recognize Windows keys and Apps key as modifiers; optionally treat
11361 NumLock, CapsLock and ScrollLock as function keys; let system
11362 translate keystrokes to characters to avoid system bugs relating
11363 to dead-key handling; preserve shift distinction for control
11364 characters. Remove some obsolete code.
11366 * makefile.nt ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
11369 * w32fns.c (Vw32_pass_optional_keys_to_system): Variable removed.
11370 (Vw32_pass_lwindow_to_system):
11371 (Vw32_pass_rwindow_to_system):
11372 (Vw32_lwindow_modifier):
11373 (Vw32_rwindow_modifier):
11374 (Vw32_apps_modifier):
11375 (Vw32_enable_num_lock):
11376 (Vw32_enable_caps_lock):
11377 (Vw32_scroll_lock_modifier): New variables.
11378 (modifier_set): Return toggle state for Scroll Lock.
11379 (w32_key_to_modifier): New function. Returns chosen modifier bit
11381 (w32_get_modifiers): Returns modifier flags for
11382 non-keyboard input events.
11383 (construct_console_modifiers): Renamed from construct_modifiers;
11384 recognize Windows and Apps keys as modifiers.
11385 (w32_get_key_modifiers): New function. Returns modifier flags for
11386 keyboard input events.
11387 (map_keypad_keys): Make non-static. Use second arg as extended
11389 (w32_grabbed_keys): New variable.
11390 (HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
11391 (register_hot_keys):
11392 (unregister_hot_keys):
11394 (w32_parse_hot_key):
11395 (Fw32_register_hot_key):
11396 (Fw32_unregister_hot_key):
11397 (Fw32_registered_hot_keys):
11398 (Fw32_reconstruct_hot_key): New functions to support hotkeys.
11399 (post_character_message): New function.
11400 (w32_msg_pump): Handle new messages for using hotkeys and changing
11401 keyboard layout/language.
11402 (w32_wnd_proc): Major rework of keyboard input handling:
11403 optionally recognize Windows keys and Apps key as modifiers;
11404 optionally treat NumLock, CapsLock and ScrollLock as function
11405 keys; let system translate keystrokes to characters to avoid
11406 system bugs relating to dead-key handling; preserve shift
11407 distinction for control characters; forward keyboard
11408 layout/language changes to lisp; detect and convert hot-key events
11409 to normal keystrokes.
11410 (syms_of_w32fns): Register new functions and variables.
11411 (w32_last_error): New function for use in debugging.
11413 1998-11-10 Kenichi Handa <handa@etl.go.jp>
11415 * category.h (CATEGORY_SET): Adjusted for the change of
11417 (CATEGORY_SET): Likewise.
11419 * charset.c (cmpchar_component): New arg NOERROR. Check
11420 composition char ID more strictly.
11421 (Fcmpchar_component): Call cmpchar_component with NOERROR arg zero.
11422 (Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
11424 (Fcompose_string): Signal error if STR contains a rule-based
11425 composition character.
11427 * charset.h (cmpchar_component): Proto-type adjusted.
11429 1998-11-09 Kenichi Handa <handa@etl.go.jp>
11431 * charset.c (string_to_non_ascii_char): Return correct length for
11432 a charset of dimension 2 and composition character.
11434 1998-11-08 Richard Stallman <rms@sucrose.ai.mit.edu>
11436 * keymap.c (Fsingle_key_description): Handle generic characters.
11438 * process.c (Fprocess_status): Doc fix.
11440 1998-11-06 Ken'ichi Handa <handa@delysid.gnu.org>
11442 * charset.c (init_charset_once): Fix previous change.
11444 1998-11-06 Kenichi Handa <handa@etl.go.jp>
11446 * charset.c (string_to_non_ascii_char): Fix previous change.
11447 (char_valid_p): Check the validity of CHARSET by CHARSET_DEFINED_P.
11449 * charset.h (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
11450 character correctly.
11451 (STRING_CHAR): Handle an invalid charater correctly.
11453 1998-11-05 Kenichi Handa <handa@etl.go.jp>
11455 * charset.c (string_to_non_ascii_char): Fix previous change.
11457 * charset.h (MAKE_NON_ASCII_CHAR): Check validity of CHARSET.
11459 * editfns.c (Fstring_to_char): Don't return a multibyte character
11460 if STRING is a unibyte string.
11462 * indent.c (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte
11465 * xdisp.c (display_text_line): Check validity of a multibyte character.
11466 (display_string): Likewise. Handle an invalid character correctly.
11468 1998-11-05 Karl Heuer <kwzh@gnu.org>
11470 * insdel.c (Fcombine_after_change_execute): Return nil, not junk.
11471 If nothing to do, return immediately.
11472 (syms_of_insdel): Initialize combine_after_change_buffer.
11474 1998-11-05 Richard Stallman <rms@gnu.org>
11476 * xterm.c (XTread_socket): ButtonPress clears f->mouse_moved.
11478 1998-11-04 Geoff Voelker <voelker@cs.washington.edu>
11480 * w32term.c (w32_enable_unicode_output): Rename from
11481 w32_no_unicode_output.
11482 (w32_use_unicode_for_codepage, syms_of_w32term): Use new name
11485 1998-11-04 Jason Rumney <jasonr@altavista.net>
11487 * w32fns.c (w32_list_fonts): Report an error if a frame has not
11490 * w32term.c (dumpglyphs): Use FRAME_FONT for w32_fill_area.
11492 1998-11-04 Kenichi Handa <handa@etl.go.jp>
11494 * charset.c (string_to_non_ascii_char): Change the check for the
11495 varidity of multibyte form.
11496 (update_charset_table): Check validity of BYTES. Don't set
11497 bytes_by_char_head here.
11498 (init_charset_once): Set bytes_by_char_head completely.
11500 * frame.c (do_switch_frame): Cancel previous change.
11502 * print.c (print_string): Check validity of a character.
11505 * sysdep.c [nec_ews_svr4]: Extern *_sobuf.
11507 * m/ews4800.h, s/ux4800.h: New files.
11509 1998-11-03 Theodore Jump <tjump@tertius.com>
11511 * makefile.nt: Compile multiple source files when possible.
11513 * w32faces.c (Qmouse_face): Replace definition with extern decl.
11515 1998-11-03 Andrew Innes <andrewi@delysid.gnu.org>
11517 * w32.c (stat): GetFileInformationByHandle can legitimately fail,
11518 so don't rely on it succeeding.
11520 * w32fns.c (x_to_w32_font): Specify DEFAULT_CHARSET in the w32
11521 LOGFONT struct if x font doesn't specify the charset.
11522 (x_to_w32_charset): Change >= to == when testing results of
11525 1998-11-02 Richard Stallman <rms@sucrose.ai.mit.edu>
11527 * fns.c (Frequire): New arg NOERROR.
11529 1998-11-02 Andrew Innes <andrewi@harlequin.co.uk>
11531 * fileio.c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo.
11533 1998-10-31 Richard Stallman <rms@psilocin.ai.mit.edu>
11535 * xfaces.c (Qmouse_face): Replace definition with extern decl.
11536 (syms_of_xfaces): Initialization deleted.
11538 * textprop.c (Qmouse_face): Variable definition moved here.
11539 (syms_of_textprop): Initialize it.
11541 * data.c (set_internal): For built-in maybe-local vars,
11542 when BINDFLAG is set, do not mark them as local.
11544 1998-10-31 Ken'ichi Handa <handa@delysid.gnu.org>
11546 * insdel.c (replace_range): Fix previous change.
11548 1998-10-31 Kenichi Handa <handa@etl.go.jp>
11550 * editfns.c (Fsubst_char_in_region): Fix previous change.
11551 (Ftranslate_region): Fix previous change.
11553 * fns.c (Fbase64_decode_region): Fix previous change.
11555 * frame.c (do_switch_frame): Update minibuf_window if necessary.
11557 * insdel.c (byte_combining_error): New function.
11558 (CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
11559 (insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
11560 CHECK_BYTE_COMBINING_FOR_INSERT.
11561 (insert_from_buffer_1): Likewise.
11562 (adjust_after_replace): Check the posibility of inhibitted byte
11563 combining correctly.
11564 (replace_range): Before signaling an error for inhibitted byte
11565 combining, recover the buffer in a safe state.
11566 (del_range_2): Check the posibility of inhibitted byte combining
11569 1998-10-30 Andreas Schwab <schwab@delysid.gnu.org>
11571 * xselect.c (Vselection_coding_system): Doc fix.
11573 * fns.c (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
11574 when we have both char and byte position. Fix type clashes.
11576 * eval.c (Fsignal): Use a separate format string when passing
11577 error message string to fatal, in case it contains %'s.
11579 * editfns.c (Fchar_after): Fix type clashes.
11581 * charset.c (Fchar_bytes): Doc fix.
11582 (char_bytes): Fix returned value to match returned type.
11583 (syms_of_charset): Fix type clash in initialisation of
11586 1998-10-29 Geoff Voelker <voelker@cs.washington.edu>
11588 * w32console.c (initialize_w32_display): Use buffer coords
11589 instead of buffer size (which may be larger than the window).
11591 * fileio.c (init_fileio_once): New function.
11593 * emacs.c (main): Invoke init_fileio_once.
11595 1998-10-28 Paul Eggert <eggert@twinsun.com>
11597 * xterm.c (XTread_socket): Check the returned value of
11598 XmbLookupString more carefully.
11600 1998-10-28 Kenichi Handa <handa@etl.go.jp>
11602 * coding.c (DECODE_CHARACTER_ASCII): Check validity of inserted code.
11603 (DECODE_CHARACTER_DIMENSION1): Likewise.
11604 (DECODE_CHARACTER_DIMENSION2): Likewise.
11605 (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
11607 * editfns.c (Fsubst_char_in_region): Fix previous change.
11608 (Ftranslate_region): Fix previous change.
11610 * insdel.c (check_markers): Check if markers are at character boundry.
11611 (adjust_markers_for_insert): Fix previous change.
11612 (count_combining_before): Don't limit the check at BEGV.
11613 (count_combining_after): Don't limit the check at ZV.
11614 (CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
11615 (insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
11616 (insert_from_string_1): Likewise.
11617 (insert_from_buffer_1): Likewise.
11618 (adjust_after_replace): Inhibit bytes combined across region
11619 boundary. Update end_unchanged correctly.
11620 (replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT. Update
11621 end_unchanged correctly.
11622 (del_range_2): Inhibit bytes combined across region boundary.
11623 Update end_unchanged correctly.
11625 1998-10-27 Geoff Voelker <voelker@cs.washington.edu>
11627 * w32.c (check_windows_init_file): Also look in load path specified
11630 * w32console.c (Fset_message_beep): Recognize 'silent.
11631 (w32_sys_ring_bell): Do nothing for the 'silent sound.
11633 * w32fns.c (w32_color_map_lookup): Remove duplicate definition.
11635 * w32select.c (Vnext_selection_coding_system): New variable.
11636 (syms_of_w32select): DEFVAR_LISP it.
11637 (Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
11638 non-nil. Always convert multibyte strings.
11639 (Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
11640 non-nil. Always convert a string that includes non-ASCII characters.
11642 1998-10-27 Richard Stallman <rms@psilocin.ai.mit.edu>
11644 * fns.c (Fbase64_decode_string): Doc fix.
11645 (Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
11648 1998-10-27 Dave Love <fx@gnu.org>
11650 * fns.c (Fbase64_decode_region, Fbase64_encode_region): Fix
11651 newline in doc string.
11653 1998-10-27 Kenichi Handa <handa@etl.go.jp>
11655 * editfns.c (Fsubst_char_in_region): Correctly handle the case
11656 that byte combining before happens.
11657 (Ftranslate_region): Likewise.
11659 * insdel.c (adjust_after_replace): Correctly handle the case that
11660 both byte combining before and byte combining after happen.
11661 (replace_range): Likewise.
11663 1998-10-26 Kenichi Handa <handa@etl.go.jp>
11665 * category.c (syms_of_category): Doc-string modified.
11667 * coding.c (code_convert_region): Kill the work buffer created by
11668 pre-write-conversion.
11670 1998-10-25 Jason Rumney <jasonr@altavista.net>
11672 * emacs.c (main) [HAVE_NTGUI]: Invoke syms_of_fontset().
11674 1998-10-23 Kenichi Handa <handa@etl.go.jp>
11676 * coding.c (code_convert_region): While preserving the orignal
11677 point, pay attention to the byte combining problem.
11679 * fns.c (Fbase64_decode_region): Pay attention to the byte
11682 * insdel.c (adjust_markers_for_insert): Adjust markers by taking
11683 combined_before_bytes and combined_after_bytes into account.
11684 (count_combining_after): Handle the case that LENGTH is zero.
11685 (adjust_after_replace): Record deletion at correct buffer
11686 position. Handle the case that LEN is zero.
11687 (replace_range): Record deletion at correct buffer position.
11688 (del_range_2): Call adjust_makers_for_replace to adjust makers for
11691 1998-10-21 Richard Stallman <rms@psilocin.ai.mit.edu>
11693 * alloc.c (Fgarbage_collect): Block input around most of the function.
11695 1998-10-21 Kenichi Handa <handa@etl.go.jp>
11697 * coding.c (setup_coding_system): Fix setting up
11698 coding->spec.ccl.valid_codes for CCL based coding system.
11699 (code_convert_region): Set point to FROM before inserting the
11700 result of pre-write-funciton. Preserve original point.
11701 (code_convert_string): If coding->type is coding_type_ccl, do
11702 conversion even if the length of conversion region is zero.
11704 * fontset.c: Include frame.h before fontset.h.
11705 (list_fonts_func): Fix prototype.
11707 * frame.c: Include frame.h before fontset.h.
11709 * xterm.c: Likewise.
11711 1998-10-21 Jason Rumney <jasonr@altavista.net>
11713 * x-list-font.c (Fx_list_fonts): Access frame parameters throught
11714 general macros. Don't call x_list_font directory, instead call a
11715 function set in list_fonts_func.
11717 * fontset.h (list_fonts_func): Fix prototype.
11719 1998-10-20 Jason Rumney <jasonr@altavista.net>
11721 * makefile.nt (w32fns.c): Add x-list-font.c to dependancies.
11723 * w32faces.c: Update comments referring to obsolete structs.
11724 (allocate_face, copy_face, face_eql, load_font,
11725 Fpixmap_spec_p, free_frame_faces, new_computed_face,
11726 frame_update_line_height, merge_faces, compute_base_face,
11727 Fset_face_attribute_internal): Use fontset support based on xfaces.c.
11729 * w32fns.c: (Vx_pixel_size_width): New global variable.
11730 (unibyte_display_via_language_environment): New global variable.
11731 (x_set_font): Add support for setting fontsets.
11732 (Fx_create_frame): Add check_w32(). Initialize fontsets. Fix
11733 font names to match xlfd-tight-regexp.
11734 (w32_load_font): Rewrite based on x_load_font.
11735 (x_to_w32_charset, w32_to_x_charset): Add character sets. Use
11736 `iso8859-1' rather than `ansi'.
11737 (w32_to_x_font): Remove `-' from font name. Remove the `-' off the
11738 end. Move charset into `charset registry' field.
11739 (enum_font_cb2): Check charsets match. Include width in font list.
11740 (w32_list_fonts): Rewrite based on x_list_fonts.
11741 Moved from w32term.c to have access to enumfont_t struct.
11742 (Fx_list_fonts): w32 specific version eliminated. Include
11744 (w32_get_font_info, w32_query_font, w32_find_ccl_program): New
11745 functions for fontset support - adapted from x_ equivalents.
11746 (syms_of_w32fns): New lisp variables initialised. Function
11747 pointers for fontset.c set up.
11749 * w32term.c: Include fontset.h. Define codepage macros.
11750 Add ENCODE_BIG5 macro from coding.c.
11751 (w32_no_unicode_output): New variable.
11752 (w32_codepage_for_charset, w32_use_unicode_for_codepage): New
11754 (BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
11755 (dumpglyphs): Rewrite based on xterm.c equivalent.
11756 (x_new_font): Use functionality provided in fontset.c.
11757 (x_new_fontset): New function based on the one in xterm.c.
11758 (syms_of_w32term): Add w32-no-unicode-output flag.
11760 * w32term.h: Remove redundant font_info struct definition.
11761 (Vx_pixel_size_width_font_regexp,
11762 unibyte_display_via_language_environment): Declare variables.
11763 (w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font):
11765 (w32_output): New fields font_baseline and fontset.
11766 (FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
11768 * w32xfns.c: Include charset.h and fontset.h.
11770 1998-10-20 Richard Stallman <rms@psilocin.ai.mit.edu>
11772 * syntax.c (syms_of_syntax): Fix the setup of Qscan_error.
11774 1998-10-20 Eli Zaretskii <eliz@mescaline.gnu.org>
11776 * msdos.c (mouse_init): Reset the button press/release info of the
11778 (mouse_preempted): New variable.
11779 (dos_rawgetc): Don't generate mouse events if mouse is preempted.
11780 (XMenuActivate): Preempt the mouse during menu-handling loop.
11781 Release the current time slice while idling in the menu-handling
11782 loop. Leave the loop only if the user pressed, then released the
11783 same button. Discard all mouse events that are pending in the
11784 event queue before exiting.
11786 1998-10-19 Richard Stallman <rms@psilocin.ai.mit.edu>
11788 * editfns.c (Fformat): Increase buffer size for floating format.
11790 1998-10-17 Kenichi Handa <handa@etl.go.jp>
11792 * charset.c (Vauto_fill_chars, Qauto_fill_chars): New variables.
11793 (syms_of_charset): Staticpro and initialize Qauto_fill_chars.
11794 Declare auto-fill-chars as a Lisp variable and initialize it.
11796 * charset.h (Vauto_fill_chars): Extern it.
11798 * cmds.c (internal_self_insert): Check Vauto_fill_chars.
11800 1998-10-16 Kenichi Handa <handa@etl.go.jp>
11802 * casefiddle.c (casify_object): Use make_string instead of
11803 make_specified_string to cope with byte-combining situation.
11805 * coding.c (decode_coding_iso2022): Set coding->fake_multibyte to
11806 1 when encountered with a code of the range 0x80..0x9F.
11808 1998-10-14 Eli Zaretskii <eliz@mescaline.gnu.org>
11810 * callproc.c (Fcall_process) [MSDOS]: Use $TMPDIR instead of
11811 trying $TMP and $TEMP, since the former is always set in msdos.c.
11812 (Fcall_process_region) [DOS_NT]: When looking for a place to put
11813 the temporary files, check $TMPDIR as well.
11815 1998-10-14 Richard Stallman <rms@psilocin.ai.mit.edu>
11817 * process.c (exec_sentinel, read_process_output):
11818 Restore waiting_for_user_input_p after running Lisp code.
11820 * keyboard.c (parse_menu_item): Avoid initialization for Lisp_Object.
11821 (command_loop): Likewise.
11823 1998-10-14 Kenichi HANDA <handa@etl.go.jp>
11825 * data.c (Faset): Fix previous change.
11827 * fns.c (Ffillarray): Fix previous change.
11829 * insdel.c (adjust_markers_for_combining): This function deleted.
11830 (adjust_markers_for_replace): Correctly adjust marker positions.
11831 Don't record these adjustment because they were recorded already.
11832 (combine_bytes): Don't adjust markers here.
11834 1998-10-13 Richard Stallman <rms@psilocin.ai.mit.edu>
11836 * minibuf.c (Fdisplay_completion_list): Put on mouse-face properties.
11838 1998-10-12 Richard Stallman <rms@psilocin.ai.mit.edu>
11840 * keyboard.c (Fclear_this_command_keys): New function.
11841 (syms_of_keyboard): defsubr it.
11843 * macros.c (Fexecute_kbd_macro): Set real_this_command.
11845 1998-10-12 Kenichi Handa <handa@etl.go.jp>
11847 * ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
11849 * charset.c (Fstring): Call make_string instead of
11850 make_string_from_bytes.
11851 (Ffind_charset_region): Include `composition' in the returned list
11852 if the region contains any composite characters.
11853 (Ffind_charset_string): Include `composition' in the returned list
11854 if the string contains any composite characters.
11855 (find_charset_in_str): Handle CMPCHARP arg correctly.
11857 * coding.c (shrink_decoding_region): If a charset other than ascii
11858 is initially designated to G0, don't shrink the region.
11859 (shrink_encoding_region): Likewise.
11861 * data.c (Faset): If ARRAY is a multibyte string, pay attention to
11862 byte-combining situation.
11864 * fns.c (clear_string_char_byte_cache): New function.
11865 (Ffillarray): Handle multibyte string correctly.
11867 * lisp.h (clear_string_char_byte_cache): Extern it.
11869 * xselect.c (lisp_data_to_selection_data): Call
11870 find_charset_in_str with CMPCHARP arg 0.
11871 * w16select.c (Fw16_set_clipboard_data): Likewise.
11872 * w32select.c (Fw32_set_clipboard_data): Likewise.
11874 1998-10-11 Richard Stallman <rms@psilocin.ai.mit.edu>
11876 * keyboard.c (parse_menu_item): For top level of menu bar,
11877 accept ordinary commands, and treat them just like a keymap.
11879 1998-10-11 Richard Stallman <rms@sucrose.ai.mit.edu>
11881 * xdisp.c (redisplay_window): Clear w->window_end_valid
11882 before running the window-scroll-functions hook, if appropriate.
11884 1998-10-10 Richard Stallman <rms@psilocin.ai.mit.edu>
11886 * data.c (Fstring_to_number): Don't recognize floating point
11889 * window.c (window_loop): New alternative CHECK_ALL_WINDOWS.
11890 (check_all_windows): New function for debugging tests.
11891 (syms_of_window): Initialize it.
11893 * window.c (Qwindow_configuration_p): New variable.
11894 (Fwindow_configuration_frame): New function.
11895 (syms_of_window): defsubr it.
11896 (Fset_window_configuration): Return t if frame is live.
11897 Use Qwindow_configuration_p.
11899 * xfns.c (check_x_display_info): Don't use selected_frame
11902 1998-10-09 Geoff Voelker <voelker@cs.washington.edu>
11904 * w32fns.c (x_create_bitmap_from_file): Skip special files.
11906 1998-10-08 Kenichi Handa <handa@etl.go.jp>
11908 * buffer.h (inhibit_modification_hooks): Extern it.
11910 * buffer.c (inhibit_modification_hooks): New variable.
11911 (init_buffer_once): Initialize inhibit_modification_hooks to 0.
11913 * charset.c (invalid_character): Prepend `0' to octal
11914 representation. Give error sufficient args.
11916 * coding.c (code_convert_region): Set inhibit_modification_hooks
11917 to 1 before calling Fset_text_properties.
11919 * insdel.c (signal_before_change): If inhibit_modification_hooks
11920 is nonzero, do nothing.
11921 (signal_after_change): Likewise.
11923 1998-10-08 Emilio Lopes <Emilio.Lopes@Physik.TU-Muenchen.DE>
11925 * process.c: Doc fixes.
11927 1998-10-08 Richard Stallman <rms@sucrose.ai.mit.edu>
11929 * syntax.c (scan_lists): Bring FROM back into range BEGV...ZV.
11931 1998-10-07 Geoff Voelker <voelker@cs.washington.edu>
11933 * w32.c (init_ntproc): Check for Windows init file.
11934 (term_ntproc): Do not check for it here.
11936 1998-09-28 Kenichi Handa <handa@etl.go.jp>
11938 * coding.c (check_composing_code): Fix previous change. Now it
11939 alwasy returns 0 or -1.
11940 (decode_coding_iso2022): Adjusted for the above change.
11941 (encode_coding_iso2022): When encoding the last block, flush out
11942 tailing garbage bytes.
11943 (setup_coding_system): Delete unnecessary code.
11944 (shrink_decoding_region): Check translation table. If ASCII
11945 should be translated, give up shrinking.
11946 (shrink_encoding_region): Likewise.
11947 (SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
11948 (SHRINK_CONVERSION_REGION): New macro.
11949 (code_convert_region): Call SHRINK_CONVERSION_REGION. Delete text
11951 (code_convert_region): In the case of encoding, always calulate
11952 correct character number.
11953 (code_convert_string): Call SHRINK_CONVERSION_REGION.
11954 (code_convert_region1): Don't delete text properties here.
11956 * insdel.c (adjust_after_replace): Don't delete text properties here.
11958 * term.c (encode_terminal_code): Handle raw 8-bit codes correctly.
11960 1998-09-27 Richard Stallman <rms@psilocin.ai.mit.edu>
11962 * emacs.c (sort_args): Fill extra space with NULL ptrs.
11964 1998-09-26 Kenichi Handa <handa@etl.go.jp>
11966 * coding.h (struct coding_system): New member composed_chars.
11968 * coding.c (check_composing_code): If the current composing
11969 sequence doesn't end properly, return -1.
11970 (DECODE_CHARACTER_ASCII): Update coding->composed_chars.
11971 (DECODE_CHARACTER_DIMENSION1): Likewise.
11972 (decode_coding_iso2022): Check validity of a composing sequence.
11973 (code_convert_string): If the length of text to be converted is
11974 shrunk to zero, don't perform code conversion.
11975 (shrink_decoding_region): Fix previous change.
11977 * editfns.c (Fformat): Check format control characters.
11979 1998-09-25 Kenichi Handa <handa@etl.go.jp>
11981 * coding.c (decode_eol): While decoding DOS-like eol, handle a
11982 single CR code correctly.
11983 (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
11984 CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
11986 1998-09-23 Geoff Voelker <voelker@cs.washington.edu>
11988 * w32fns.c (w32_color_map_lookup): New function.
11989 (x_to_w32_color): Approximate colors ending in numbers if necessary.
11991 1998-09-22 Kenichi Handa <handa@etl.go.jp>
11993 * ccl.c (ccl_driver): Report correct CCL program counter on error.
11995 * xmenu.c (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
11997 (xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
11999 1998-09-22 Kenichi Handa <handa@etl.go.jp>
12001 * callint.c (Fcall_interactively): Don't use input method when
12002 reading a character in the case of `c' code letter.
12004 1998-09-21 Dave Love <fx@gnu.org>
12006 * editfns.c (Fsave_restriction): Doc fix.
12008 1998-09-21 Richard Stallman <rms@gnu.org>
12010 * lread.c (build_load_history): Do add to Vload_history
12011 even when dumping Emacs.
12013 1998-09-18 Kenichi Handa <handa@etl.go.jp>
12015 * ccl.c (CCL_WRITE_CHAR): Don't use bcopy.
12016 (ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
12017 cause error if the program is going to output some bytes. When
12018 outputing a string to notify an error, check the case that
12021 * coding.h (CODING_FINISH_INTERRUPT): New macro.
12023 * coding.c (ccl_coding_driver): If ccl_driver is interrupted by a
12024 user or the CCL program executed an invalid command, return
12025 CODING_FINISH_INTERRUPT.
12026 (code_convert_region): Pay attention to the converters return
12027 value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
12029 1998-09-16 Kenichi Handa <handa@etl.go.jp>
12031 * coding.c (code_convert_region): Update beg_unchanged and
12032 end_unchanged after we delete the source text.
12034 * insdel.c (adjust_markers_for_replace): Don't adjust a byte
12035 position if it is FROM.
12036 (adjust_markers_for_combining): New function.
12037 (combine_bytes): Call adjust_markers_for_combining instead of
12038 adjust_markers_for_replace.
12039 (adjust_after_replace): Record deletion of combining after bytes
12040 with the correct position.
12041 (replace_range): Likewise. Record the actual deletion after
12042 recoding deletions of combining bytes.
12044 * xdisp.c (message_log_check_duplicate): Count byte length of the
12045 latest message correctly.
12047 1998-09-12 Richard Stallman <rms@gnu.org>
12049 * xdisp.c (redisplay_internal): Use TEMP_SET_PT_BOTH
12050 instead of SET_PT_BOTH.
12051 (try_window_id, display_text_line): Likewise.
12053 1998-09-12 Karl Heuer <kwzh@gnu.org>
12055 * data.c (Fmake_local_variable): Doc fix.
12057 1998-09-10 Dave Love <fx@gnu.org>
12059 * print.c (Fwith_output_to_temp_buffer): Doc fix.
12061 1998-09-10 Richard Stallman <rms@gnu.org>
12063 * s/irix6-0.h (TIOCSIGSEND): Add #undef.
12064 (bcopy, bcmp, bzero): Add #undef.
12066 * keyboard.c (command_loop_1): When switching to selected window's bfr,
12067 first exit if selected frame is dead (no live frames remain).
12068 (read_key_sequence): Likewise.
12070 1998-09-10 Karl Heuer <kwzh@gnu.org>
12072 * emacs.c (main): Mention --display and --eval in help.
12074 1998-09-07 Paul Eggert <eggert@twinsun.com>
12076 * editfns.c (emacs_memftime): New function.
12077 (Fformat_time_string): Use it to handle null bytes in formats
12080 1998-09-08 Kenichi Handa <handa@etl.go.jp>
12082 * charset.c (Ffind_charset_region): Optimization for unibyte buffer.
12083 (Ffind_charset_string): For unibyte string, return (ascii).
12085 * editfns.c (Fsubst_char_in_region): Call replace_range with the
12088 * insdel.c (adjust_after_replace): Don't add combining bytes to
12089 the args given to adjust_point. Handle correctly the case that
12090 there are both before and after combining bytes.
12091 (replace_range): Likewise.
12093 1998-09-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
12095 * fns.c (base64_decode_1, base64_encode_1): New functions.
12096 (Fbase64_decode_string, Fbase64_encode_string): New functions.
12097 (Fbase64_decode_region, Fbase64_encode_region): New functions.
12099 1998-09-07 Karl Heuer <kwzh@gnu.org>
12101 * eval.c (error): After enlarging buffer, write to it, not to buf.
12103 * fns.c (Fwidget_put): Return VALUE instead of garbage.
12105 1998-09-07 Kenichi Handa <handa@etl.go.jp>
12107 * charset.h (STRING_CHAR_AND_LENGTH): Return correct value in
12108 ACTUAL_LEN even if LEN is too short to have a valid multibyte form.
12109 (STRING_CHAR_AND_CHAR_LENGTH): Likewise.
12111 * coding.c (ccl_coding_driver): Always calculate correct mulibyte
12112 chars in produced byte sequence.
12113 (Ffind_operation_coding_system): Doc-string fixed.
12115 * insdel.c (count_combining_after): Check also preceding bytes at
12116 POS if all characters in STRING are not character head.
12118 1998-09-06 Paul Eggert <eggert@twinsun.com>
12120 * editfns.c (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
12121 Don't assume that localtime and gmtime return non-NULL.
12123 1998-09-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
12125 * fns.c (Fbase64_decode_string, Fbase64_encode_string,
12126 base64_decode_1, Fbase64_decode_region, Fbase64_encode_region):
12129 1998-09-06 Richard Stallman <rms@gnu.org>
12131 * editfns.c (Fformat): Detect incomplete format spec at string's end.
12133 * lread.c (Fload): Handle case where openp finds a magic file
12134 but it has no `load' handler or that handler calls `load'.
12135 If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
12137 1998-09-04 Dave Love <fx@gnu.org>
12139 * buffer.c (enable-multibyte-characters): Doc fix.
12141 1998-09-02 Geoff Voelker <voelker@cs.washington.edu>
12143 * w32heap.c (allocate_heap): Define NTHEAP_PROBE_BASE by default.
12145 1998-09-01 Kenichi Handa <handa@etl.go.jp>
12147 * editfns.c (Ftranspose_regions): Use BYTE_POS_ADDR to get an
12148 address in buffer from byte-position.
12150 1998-09-01 Eli Zaretskii <eliz@delysid.gnu.org>
12152 * w16select.c (Vnext_selection_coding_system): New variable.
12153 (syms_of_win16select): DEFVAR_LISP it. No need to staticpro
12154 Vselection_coding_system.
12155 (Fw16_set_clipboard_data): Always convert multibyte strings. Use
12156 Vnext_selection_coding_system if non-nil.
12157 (Fw16_get_clipboard_data): Always convert a string that includes
12158 non-ASCII characters. Use Vnext_selection_coding_system if
12161 1998-08-31 Andrew Innes <andrewi@harlequin.co.uk>
12163 * w32fns.c (w32_wnd_proc): Always zero button_state when releasing
12166 1998-08-31 Kenichi Handa <handa@etl.go.jp>
12168 * xterm.c (x_load_font): If SIZE is 0, don't use a name
12169 x_list_font returns.
12171 1998-08-31 Paul Eggert <eggert@twinsun.com>
12173 * lread.c (read1): Don't assume that atof ("-0.0") yields +0.0.
12174 Handle leading '-' uniformly for zeros, infinities, and NaNs.
12176 1998-08-31 Eli Zaretskii <eliz@delysid.gnu.org>
12178 * msdos.c (IT_cmgoto): When tracking echo area messages with the
12179 cursor, save and restore previous cursor position in the
12182 1998-08-31 Kenichi Handa <handa@etl.go.jp>
12184 * charset.c (unibyte_char_to_multibyte):
12185 Vnonacii_translation_table will convert a 7-bit charcater.
12186 (multibyte_char_to_unibyte): Handle the case that
12187 Vnonacii_translation_table converts a multibyte charcater to a
12188 unibyte charcter of less than 128.
12189 (init_charset_once): Initialize nonascii_insert_offset and
12190 Vnonacii_translation_table.
12192 * coding.c (decode_coding): Even if SRC_BYTES is zero, try
12193 processing if CODING requires flushing.
12194 (encode_coding): Likewise.
12195 (code_convert_region): Likewise.
12196 (code_convert_string): Likewise.
12198 * fns.c (concat): If Vnonascii_translation_table is non-nil, try
12199 to convert a character less than 160 to multibyte.
12200 * insdel.c (copy_text): Likewise.
12201 (count_size_as_multibyte): Likewise.
12202 * xterm.c (dumpglyphs): Likewise.
12204 1998-08-29 Paul Eggert <eggert@twinsun.com>
12206 * data.c (arith_driver, float_arith_driver): Compute (- x) by
12207 using negation, not subtraction; this makes a difference with
12208 IEEE floating point arithmetic (and also if integer arithmetic
12209 is ones' complement or signed-magnitude!).
12211 1998-08-29 Karl Heuer <kwzh@gnu.org>
12213 * xfns.c (x_create_bitmap_from_file): Fail immediately if magic.
12215 1998-08-28 Ken'ichi Handa <handa@delysid.gnu.org>
12217 * charset.c (Fchar_bytes): Add \n\ in doc-string.
12219 1998-08-28 Paul Eggert <eggert@twinsun.com>
12221 * s/sol2-4.h (NOT_USING_MOTIF): New macro.
12222 (LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
12223 path only if we're not building with Motif.
12225 1998-08-28 Kenichi Handa <handa@etl.go.jp>
12227 * insdel.c (adjust_after_replace): Fix the code to record undo
12228 information for the case that `before combining' happens. Remove
12229 text properties which are added to the new text by
12232 * coding.c (code_convert_region1): Remove all text properties of
12235 1998-08-28 Kenichi Handa <handa@etl.go.jp>
12237 * charset.h (CHAR_BYTES): New macro.
12239 * charset.c (Fchar_bytes): Now always return 1.
12240 (char_bytes): New function.
12242 * editfns.c (Fposition_bytes): If the arg POSITION is out of
12244 (Fbyte_to_position): If the arg BYTEPOS is out of range, return
12247 * data.c (Faset): Use macro CHAR_BYTES instead of Fchar_bytes.
12248 * fns.c (concat): Likewise.
12249 * insdel.c (count_size_as_multibyte): Likewise.
12250 * xdisp.c (message_dolog): Likewise.
12252 1998-08-27 Kenichi Handa <handa@etl.go.jp>
12254 * coding.c (detect_coding_iso2022): Handle ESC N and ESC O
12255 correctly. They are for SS2 and SS3 respectively.
12256 (ccl_coding_driver): Fix previous change.
12258 1998-08-26 Paul Eggert <eggert@twinsun.com>
12260 * xterm.c (fixup_locale): New function. For now, it resets
12261 LC_TIME to "C" (reverting the 1998-08-07 change), and also
12262 resets LC_MESSAGES to "C".
12263 (x_term_init): Use it to fix up the locale after setlocale
12266 1998-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12268 * xterm.c (x_calc_absolute_position): Cast argument to XFree, in
12269 case it was prototyped the old way.
12271 1998-08-25 Kenichi Handa <handa@etl.go.jp>
12273 * xterm.c (x_list_fonts): Work-around for the case XGetAtomName
12274 returns a null string. This happens when dxpc 3.7 is being used.
12276 1998-08-24 Andreas Schwab <schwab@delysid.gnu.org>
12278 * keyboard.c (input-method-previous-message): Doc fix.
12280 * coding.c (file-coding-system-alist,
12281 select-safe-coding-system-function): Doc fix.
12283 1998-08-23 Kenichi HANDA <handa@etl.go.jp>
12285 * coding.c (detect_coding_iso2022): Don't check the byte length of
12286 succeeding codes (0xa0..0xFF) if the codes follows single shift
12289 1998-08-21 Ken'ichi Handa <handa@delysid.gnu.org>
12291 * coding.c (detect_coding_system): If detect_eol_type returns
12292 CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
12295 See ChangeLog.7 for earlier changes.