1 1999-10-09 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3 * print.c (print): When removing objects from Vprint_number_table,
4 only scan the newly added objects.
5 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
6 unconditionally force it to stay in the table.
8 1999-10-09 Gerd Moellmann <gerd@gnu.org>
10 * xfns.c (prepare_image_for_display): Don't try to load image if
11 loading it failed before.
12 (lookup_image, prepare_image_for_display): Remember if loading the
14 (xpm_load): Add missing UNBLOCK_INPUT.
16 * dispextern.h (struct image): New member load_failed_p.
18 1999-10-08 Stefan Monnier <monnier@cs.yale.edu>
20 * fileio.c (Fmake_temp_name): add a reference to `make-temp-file'
23 1999-10-08 Gerd Moellmann <gerd@gnu.org>
25 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
26 Don't call XSetInputFocus because that can generate additional
29 1999-10-07 Jeffrey C Honig <jch@bsdi.com>
31 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
33 1999-10-07 Richard M. Stallman <rms@caffeine.ai.mit.edu>
35 * process.c (wait_reading_process_input): When trying to suck
36 input from one process, for accept-process-output,
37 exit that loop if we get EAGAIN or EWOULDBLOCK.
39 1999-10-07 Gerd Moellmann <gerd@gnu.org>
41 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
42 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
43 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
44 Fpixmap_spec_p and Qpixmap_spec_p.
45 (load_face_colors, check_lface_attrs,
46 merge_face_vector_with_property,
47 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
48 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
51 1999-10-07 Gerd Moellmann <gerd@gnu.org>
53 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
56 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
57 (struct x_resources) [USE_X_TOOLKIT]: New.
58 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
60 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
62 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
64 (syms_of_xfaces): Initialize Qmenu.
65 (realize_basic_faces): Realize face `menu'.
66 (resolve_face_name): New.
67 (lface_from_face_name): Use it.
68 (Finternal_set_lisp_face_attribute): Ditto.
69 (Fpixmap_spec_p): Rewritten. Extend doc string.
71 * xmenu.c (set_frame_menubar, xmenu_show): Call
72 x_set_menu_resources_from_menu_face.
74 * dispextern.h (enum face_id): Add MENU_FACE_ID.
75 (toplevel): Include X11/Intrinsic.h.
77 1999-10-03 Ken'ichi Handa <handa@gnu.org>
79 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
82 1999-09-30 Kenichi Handa <handa@etl.go.jp>
84 * category.c (modify_lower_category_set): Set default value of
87 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
90 1999-09-29 Gerd Moellmann <gerd@gnu.org>
92 * editfns.c (Fpropertize): Renamed from Fproperties.
94 1999-09-29 Gerd Moellmann <gerd@gnu.org>
96 * xdisp.c (resize_mini_window): Do nothing if frame is an X
97 frame that hasn't been initialized yet.
99 1999-09-28 Richard M. Stallman <rms@caffeine.ai.mit.edu>
101 * keymap.c (Fsingle_key_description): Make tem big enough.
102 (describe_buffer_bindings): Make buf big enough.
104 1999-09-27 Richard M. Stallman <rms@caffeine.ai.mit.edu>
106 * intervals.c (get_local_map): Use indirect_function,
107 not Findirect_function.
109 1999-09-27 Dave Love <fx@gnu.org>
111 * cm.h: Remove unneeded declaration of ospeed.
113 1999-09-26 Gerd Moellmann <gerd@gnu.org>
115 * lisp.h (toplevel): Add prototype for
116 next_single_char_property_change.
118 * textprop.c (next_single_char_property_change): New.
120 * xdisp.c (display_prop_end, invisible_text_between_p): Use
121 next_single_char_property_change.
123 1999-09-25 Gerd Moellmann <gerd@gnu.org>
125 * editfns.c (Fproperties): New.
126 (syms_of_editfns): Defsubr it.
128 * xfns.c (lookup_image): Set image's timestamp because it's
129 used when we look it up.
131 1999-09-23 Gerd Moellmann <gerd@gnu.org>
133 * window.c (enlarge_window): Add window parameter instead of using
135 (Fdisplay_buffer): Call it with window parameter instead of
136 setting selected_window.
137 (Fenlarge_window, Fshrink_window): Ditto.
138 (shrink_mini_window): If there is no recorded height and position
139 info, resize mini-window to height 1.
141 * xfns.c (image_error): Use add_to_log.
143 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
144 (load_face_font_or_fontset, load_color,
145 merge_face_vector_with_property): Ditto.
147 * dispextern.h: Add prototype for add_to_log.
149 * xfaces.c (add_to_log): Move to xdisp.c.
151 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
154 1999-09-23 Gerd Moellmann <gerd@gnu.org>
156 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
157 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
159 * xdisp.c (resize_mini_window): Use grow_mini_window and
162 * window.c (window_min_size): Add parameter ignore_fixed_p.
163 (change_window_height): Call window_min_size with new parameter.
164 (shrink_window_lowest_first, save_restore_orig_size,
165 grow_mini_window, shrink_mini_window): New.
166 (make_window, replace_window): Initialize orig_top and
168 (enlarge_window): Renamed from change_window_height. Make it
170 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
171 enlarge_window instead of change_window_height.
173 * window.h (struct window): New members orig_top, orig_height.
174 (toplevel): Add prototypes for grow_mini_window and
175 shrink_mini_window. Remove prototype for change_window_height.
177 1999-09-21 Eli Zaretskii <eliz@gnu.org>
179 * frame.c (frame_name_fnn_p): Fix previous change.
181 1999-09-20 Gerd Moellmann <gerd@gnu.org>
183 * minibuf.c (toplevel): Move include of stdio.h to other includes.
185 * dispnew.c (direct_output_for_insert): Cast arguments to
186 safe_bcopy to char *.
188 * lread.c (readchar): Remove unused variables.
189 (read_filtered_event, read1, Fmapatoms): Ditto.
190 (toplevel): Include intervals.h.
192 * eval.c (Fsignal): Remove unused variables.
193 (Fcommandp, do_autoload): Ditto.
195 * lisp.h: Add prototype for safe_bcopy, fatal.
197 * editfns.c (init_editfns): Remove unused variables.
198 (Fgoto_char, Fchar_after, Fformat): Ditto.
199 (message_text, message_length): Put in #ifndef HAVE_MENUS.
201 * data.c (find_symbol_value): Remove unused variables.
202 (Faref, Fstring_to_number): Ditto.
203 (toplevel): Include stdio.h.
204 (Fnumber_to_string): Cast XINT to long for %ld.
206 * casefiddle.c (casify_object): Remove unused variables.
207 (casify_region): Ditto.
209 * filelock.c (get_boot_time): Put local variable used in
210 conditinally compiled section in #ifdef.
211 (toplevel): Include stdio.h.
213 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
214 keys_of_keymap, syms_of_keymap): Remove unused variables.
216 1999-09-20 Gerd Moellmann <gerd@gnu.org>
218 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
219 whose corresponding window rows have been disabled in
222 1999-09-20 Gerd Moellmann <gerd@gnu.org>
224 * xdisp.c (compute_window_start_on_continuation_line): Handle case
225 that window start is out of range.
226 (handle_display_prop, handle_single_display_prop): Replace
227 marginal area specifications like `left-margin' with `(margin
230 (syms_of_xdisp): Initialize Qmargin.
232 1999-09-19 Gerd Moellmann <gerd@gnu.org>
234 * syntax.c (update_syntax_table, find_defun_start, back_comment,
235 describe_syntax, skip_chars): Remove unused variables.
236 (back_comment, forw_comment): Add braces to if-statement with
237 if-else as dependent statement.
239 * process.c (list_processes_1): Remove unused variables.
240 (Fopen_network_stream, create_process): Add parentheses to
241 conditional expressions.
242 (create_process): Put declaration of sigchld in #if 0.
243 (Fopen_network_stream): Removed unused variables.
244 (Fopen_network_stream, wait_reading_process_input,
245 wait_reading_process_input, send_process, send_process): Ditto.
246 (toplevel): Add prototypes for set_waiting_for_input and
249 * abbrev.c (Fexpand_abbrev): Remove unused variables.
251 * textprop.c (Fset_text_properties): Remove unused variables.
252 (text_property_list, verify_interval_modification,
253 interval_has_all_properties): Ditto.
255 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
256 (Fcall_process): Remove unused variable.
258 * keyboard.c (Frecursive_edit): Remove unused variable.
259 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
260 timer_check, make_lispy_event, menu_bar_items,
261 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
262 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
263 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
264 read_key_sequence): Ditto. Fread_key_sequence,
265 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
266 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
267 used when GOBBLE_FIRST_EVENT is defined in #ifdef
268 (Fexecute_extended_command): Cast XINT to long for %ld.
269 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
270 (toplevel): Include sys/types.h.
272 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
273 (toplevel): Add prototypes for stuff_char, and
274 code_convert_string_norecord.
276 1999-09-19 Gerd Moellmann <gerd@gnu.org>
278 * buffer.h: Add prototype for r_re_alloc.
280 * insdel.c (copy_text): Removed unused variables.
281 (count_combining_after, count_combining_after, insert_1_both,
282 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
283 (adjust_after_replace, replace_range): Add parentheses to logical
284 expressions. Remove unused variables.
285 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
288 * alloc.c (Fgarbage_collect): Remove unused variable.
289 (compact_strings): Add parentheses around assignments in
291 (toplevel): Put declaration of unused function clear_marks
292 in #if 0 like its definition.
294 * lisp.h: Add prototype for shrink_regexp_cache,
295 sweep_weak_hash_tables.
297 1999-09-19 Dave Love <fx@gnu.org>
299 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
301 * doc.c (read_bytecode_char): Declare arg.
303 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
304 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
306 1999-09-18 Richard Stallman <rms@gnu.org>
308 * xdisp.c (echo_area_display): Turn off code that returned
309 without doing anything when using a terminal frame.
311 1999-09-17 Richard M. Stallman <rms@caffeine.ai.mit.edu>
313 * unexelf.c (unexec): Don't get confused by a short section
314 just before the bss section.
316 1999-09-16 Gerd Moellmann <gerd@gnu.org>
318 * emacs.c (main): Remove unused variables.
319 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
321 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
322 init_fileio_once, syms_of_sound, init_xfns, init_fns
323 init_sound, check_message_stack.
325 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
327 * intervals.c (rotate_right, rotate_left): Add braces to avoid
328 ambiguous else warning.
329 (split_interval_left): Remove unused variables.
330 (previous_interval, adjust_intervals_for_deletion,
331 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
332 (icount, idepth, zero_length): Move into #if 0 section below
333 original position where these are used.
335 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
337 * buffer.c (Fkill_buffer): Remove unused variables.
338 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
339 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
340 init_buffer_once, (syms_of_buffer): Ditto.
342 * xrdb.c (get_fallback): Remove unused variable.
343 (x_load_resources): Ditto. Put local variable used for Motif only
346 1999-09-16 Gerd Moellmann <gerd@gnu.org>
348 * minibuf.c (read_minibuf): Remove unused variables.
349 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
350 (do_completion): Move assignment out of conditional context.
351 (Fdisplay_completion_list): Add parentheses to conditional expression.
353 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
355 * lisp.h: Add prototype for no_switch_window.
357 * window.c (Fset_window_buffer): Remove unused variables.
358 (Fset_window_margins): Ditto.
360 * xdisp.c (resize_mini_window): Temporarily set the selected
361 window's or Vminibuf_scroll_window's height to "fixed" around
362 the call the change_window_height.
364 * window.c (window_fixed_size_p): Check window's height_fixed_p
367 * window.h (struct window): New member height_fixed_p.
369 * dispnew.c (direct_output_forward_char): Don't use this method
370 if showing a message or a message was just cleared because we
371 might need to resize the mini-window.
373 1999-09-16 Gerd Moellmann <gerd@gnu.org>
375 * frame.c (Fdelete_frame): Correct local variable pointing to
376 selected frame after selecting new frame.
378 1999-09-15 Richard Stallman <rms@gnu.org>
380 * puresize.h (BASE_PURESIZE): Increase to 525000.
382 * filelock.c (Vtemporary_file_directory): New variable.
383 (syms_of_filelock): Set up Lisp variable.
385 1999-09-15 Gerd Moellmann <gerd@gnu.org>
387 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
388 (encode_terminal_code): Remove unused variables.
389 (turn_off_face): Ditto.
390 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
392 * dispnew.c (update_frame_line): If writing whole desired line,
393 don't clear to end of line if already at the end.
395 1999-09-15 Gerd Moellmann <gerd@gnu.org>
397 * xdisp.c (resize_mini_window): Don't report changed window
398 height if it actually hasn't changed.
400 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
402 (mark_shell_size_user_specified): Put in #if 0 because not used.
403 (create_frame_gcs): Put in #if 0 because currently unused.
404 (first_frame_p): Ditto.
406 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
407 single_submenu, update_frame_menubar, set_frame_menubar,
408 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
411 * print.c (PRINTFULLP): Removed because it is no longer used and
413 (Ferror_message_string): Remove unused variables.
414 (print_object): Cast argument of sprintf to long for `%ld'
415 specifier. Remove unused variable.
417 1999-09-14 Gerd Moellmann <gerd@gnu.org>
419 * sound.c (Fplay_sound): Remove usused variables.
420 (be2hs): Put in #if 0 because it's currently not used.
422 1999-09-14 Ken Raeburn <raeburn@gnu.org>
424 * print.c (Ferror_message_string, print_error_message,
425 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
428 1999-09-14 Gerd Moellmann <gerd@gnu.org>
430 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
432 * frame.c (Fnext_frame): Remove unused variable(s).
433 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
434 (store_frame_param): Add parentheses to conditional expression.
435 (Fmodify_frame_parameters): Remove unused variables.
436 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
439 * xfns.c (x_set_background_color): Remove unused variable(s).
440 (x_set_border_pixel): Ditto.
441 (x_set_menu_bar_lines): Put local variable used only for
442 non-toolkit case in #ifdef/#endif.
443 (x_figure_window_size): Remove unused variable(s).
444 (x_figure_window_size, x_window, lookup_image,
445 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
446 png_load, jpeg_load, gif_load, x_create_tip_frame,
447 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
449 * xterm.c (x_scroll_bar_handle_click): Compile only if
450 not USE_TOOLKIT_SCROLL_BARS.
451 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
453 * dispextern.h: Add prototypes for gamma_correct and
456 * xterm.c (x_produce_glyphs): Remove unused variable(s).
457 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
458 x_set_toolkit_scroll_bar_thumb): Ditto.
459 (x_scroll_bar_create): Move local variable to the
460 conditionally compiled section of code where it is used.
461 (x_scroll_bar_create): Remove unused variable(s).
462 (x_scroll_bar_remove, XTread_socket): Ditto.
463 (XTread_socket) <ConfigureNotify>: Move variables used for
464 non-toolkit case into conditionally compiled section of code.
466 * window.h (freeze_window_starts): Fix typo in prototype.
468 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
471 * lisp.h: Add prototype for debug_print.
473 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
476 * fns.c (SXHASH_COMBINE): Add missing parentheses.
477 (Fchar_table_range, Fset_char_table_default, mapcar1,
478 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
480 * lisp.h: Add prototype for getloadavg.
482 1999-09-14 Andreas Schwab <schwab@gnu.org>
484 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
486 * lisp.h: Declare close_file_unwind.
488 1999-09-14 Richard Stallman <rms@gnu.org>
490 * filelock.c (get_boot_time): Make the temp name in the proper dir.
492 1999-09-13 Gerd Moellmann <gerd@gnu.org>
494 * xdisp.c (redisplay_window): Make sure start_at_line_beg
495 is always set correctly.
497 1999-09-13 Dave Love <fx@gnu.org>
499 * xdisp.c (move_it_in_display_line_to): Make type consistent with
502 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
504 * xdisp.c (QCfile): Move here from xfns.c.
505 (syms_of_xdisp): Initialize it.
506 (message2_nolog): Change for Lisp_Object selected_frame.
507 (message3_nolog, message_with_string, message,
508 setup_echo_area_for_printing, truncate_echo_area,
509 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
511 1999-09-13 Dave Love <fx@gnu.org>
513 * xterm.c: Don't continue #define args for benefit of old cc.
514 (xt_action_hook): Indent #error for benefit of K&R cc.
516 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
518 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
519 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
520 (XRINGBELL): Removed.
522 1999-09-13 Dave Love <fx@gnu.org>
524 * xfns.c (x_put_x_image): Make type consistent with declaration.
526 * fns.c (Fmake_hash_table): Fix string continuation.
528 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
530 * xfns.c (QCfile): Moved to xdisp.c.
531 (syms_of_xfns): Don't initialize QCfile.
532 (check_x_frame): Change for Lisp_Object selected_frame.
533 (check_x_display_info, x_get_resource_string): Ditto.
535 1999-09-13 Gerd Moellmann <gerd@gnu.org>
537 * minibuf.c (choose_minibuf_frame): Don't try to set the
538 mini-buffer window's buffer, if the buffer is invalid.
540 * xfns.c (QCfile): Moved to xdisp.c.
541 (syms_of_xfns): Don't initialize QCfile.
543 * xdisp.c (QCfile): Move here from xfns.c.
544 (syms_of_xdisp): Initialize it.
546 * lisp.h (selected_frame): Add external declaration.
548 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
549 (Fx_store_cut_buffer_internal): Ditto.
550 (Fx_rotate_cut_buffers_internal): Ditto.
552 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
554 (Finternal_set_lisp_face_attribute): Ditto.
555 (Finternal_get_lisp_face_attribute): Ditto.
556 (Finternal_lisp_face_empty_p): Ditto.
559 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
560 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
561 set_terminal_window, set_scroll_region, reassert_line_highlight,
562 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
563 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
564 encode_terminal_code, write_glyphs, term_init): Ditto.
566 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
567 (kbd_input_ast, read_input_waiting): Ditto.
569 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
571 (read_minibuf): Ditto.
573 * keyboard.c (command_loop_1): Change for Lisp_Object
575 (cmd_error_internal, command_loop_1, read_char,
576 kbd_buffer_get_event, read_avail_input,
577 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
578 interrupt_signal, quit_throw_to_read_char): Ditto.
580 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
581 (Ffontset_info): DItto.
583 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
585 * dispnew.c (selected_frame): Make it a Lisp_Object.
586 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
587 (direct_output_for_insert, direct_output_forward_char,
588 init_display): Ditto.
590 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
592 (set_internal): Ditto.
594 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
595 (record_buffer): Ditto.
597 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
598 (do_switch_frame): Change for Lisp_Object selected_frame.
599 (Fselected_frame): Ditto.
600 (Fframe_first_window): Use SELECTED_FRAME.
601 (Fframe_root_window): Change for Lisp_Object selected_frame.
602 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
603 Fprevious_frame, other_visible_frames, Fdelete_frame,
604 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
605 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
606 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
607 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
608 Fset_frame_height, Fset_frame_width): Ditto.
610 1999-09-13 Gerd Moellmann <gerd@gnu.org>
612 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
613 (message3_nolog, message_with_string, message,
614 setup_echo_area_for_printing, truncate_echo_area,
615 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
617 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
618 (Fx_popup_dialog): Ditto.
620 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
621 (check_x_display_info, x_get_resource_string): Ditto.
623 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
624 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
625 (XRINGBELL): Removed.
627 * window.c (Fminibuffer_window): Change for Lisp_Object
629 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
630 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
631 Fcurrent_window_configuration, init_window_once): Ditto.
633 * frame.h (SELECTED_FRAME): New.
635 1999-09-12 Ken Raeburn <raeburn@gnu.org>
637 * category.c (word_boundary_p): Use XCAR and XCDR.
638 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
639 Fregister_code_conversion_map): Likewise.
640 * coding.c (setup_coding_system, detect_coding_system,
641 Ffind_operation_coding_system, Fset_coding_priority_internal):
643 * doc.c (get_doc_string, Fdocumentation,
644 store_function_docstring): Likewise.
645 * editfns.c (save_restriction_restore): Likewise.
646 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
647 skip_debugger, find_handler_clause, Fautoload, Fapply,
648 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
650 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
651 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
652 Fread_file_name): Likewise.
653 * filelock.c (unlock_all_files): Likewise.
654 * insdel.c (Fcombine_after_change_execute): Likewise.
655 * intervals.c (adjust_intervals_for_insertion): Likewise.
656 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
657 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
658 store_in_keymap, Fcopy_keymap, define_as_prefix,
659 current_minor_maps, Faccessible_keymaps,
660 accessible_keymaps_char_table, Fkey_description,
661 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
662 describe_buffer_bindings, describe_map_tree, shadow_lookup,
663 describe_map): Likewise.
664 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
665 read_list, init_lread): Likewise.
666 * search.c (Fmatch_data): Likewise.
667 * sunfns.c (Fsun_menu_internal): Likewise.
668 * syntax.c (describe_syntax): Likewise.
669 * undo.c (record_insert, record_delete, Fundo_boundary,
670 truncate_undo_list): Likewise.
671 * vmsproc.c (child_sig): Likewise.
673 * editfns.c (Fformat): Use XFLOAT_DATA.
675 1999-09-12 Gerd Moellmann <gerd@gnu.org>
677 * keyboard.c (command_loop_1): Resize mini-window to the
678 exact size of a message displayed, if any.
680 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
681 to exact size if exact_p is non-zero.
682 (display_echo_area_1): Call resize_mini_window with
684 (redisplay_internal): Ditto.
685 (resize_echo_area_axactly): New.
687 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
690 * dispextern.h: Change prototype of resize_mini_window.
691 Add prototype for resize_echo_area_axactly.
693 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
694 (syms_of_xfaces): Defsubr accordingly.
696 * xdisp.c (hscroll_window_tree): Choose cursor row from
697 desired or current matrix.
698 (redisplay_internal): Hscroll before updating.
700 1999-09-12 Gerd Moellmann <gerd@gnu.org>
702 * syntax.c (Fforward_word): Use prompt_end_charpos instead
703 of minibuffer_prompt_length.
705 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
706 of minibuffer_prompt_length.
707 (read_minibuf_unwind): Ditto.
708 (Fminibuffer_complete_and_exit): Ditto.
709 (Fminibuffer_complete_word): Ditto.
710 (Fminibuffer_prompt_end): Ditto.
712 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
713 of minibuffer_prompt_length.
714 (Fline_beginning_position): Ditto.
716 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
717 of minibuffer_prompt_length.
718 (Fmake_indirect_buffer): Ditto.
719 (Fkill_buffer): Ditto.
720 (Ferase_buffer): Ditto.
722 * buffer.h (prompt_end_charpos): Replaces
723 minibuffer_prompt_length.
725 * minibuf.c (read_minibuf): Return mini-buffer contents
728 * editfns.c (make_buffer_string_both): Take out the code
729 to handle mini-buffer prompts.
730 (Fbuffer_string): Handle the prompt here, instead.
732 * xfaces.c (lface_from_face_name): Resolve face aliases.
733 (Qmode_line): Replaces Qmodeline.
734 (realize_basic_faces): Use Qmode_line.
735 (syms_of_xfaces): Initialize Qmode_line.
737 1999-09-12 Gerd Moellmann <gerd@gnu.org>
739 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
740 current column after inserting prompt.
741 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
743 * xfaces.c (Qframe_update_face_colors): New.
744 (syms_of_xfaces): Initialize call.
745 (update_face_from_frame_parameter): Call that function when
746 the frame's background changes.
748 1999-09-12 Richard Stallman <rms@gnu.org>
750 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
752 1999-09-12 Ken Raeburn <raeburn@gnu.org>
754 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
755 mark_object, mark_buffer): Use XCAR and XCDR.
756 * bytecode.c (Fbyte_code): Likewise.
757 * callint.c (Fcall_interactively, Fprefix_numeric_value):
759 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
760 getenv_internal): Likewise.
761 * dired.c (file_name_completion): Likewise.
762 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
763 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
764 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
765 * indent.c (Fcompute_motion): Likewise.
766 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
767 list_processes_1, Fstart_process, Fopen_network_stream,
768 wait_reading_process_input, read_process_output_call,
769 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
770 status_notify, wait_reading_process_input): Likewise.
771 * textprop.c (PLIST_ELT_P, property_value, set_properties,
772 extend_property_ranges): Likewise.
773 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
774 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
775 x_report_frame_params, x_set_cursor_type, x_icon_type,
776 x_figure_window_size, Fx_create_frame, w32_load_system_font,
777 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
778 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
779 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
780 x_display_info_for_name, Fx_display_list): Likewise.
781 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
782 Fx_popup_menu, Fx_popup_dialog): Likewise.
783 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
784 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
785 w32_term_init, x_delete_display): Likewise.
786 * xfns.c (x_window_to_frame, x_any_window_to_frame,
787 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
788 x_top_window_to_frame, x_set_frame_parameters,
789 x_report_frame_params, x_set_cursor_type, x_icon_type,
790 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
791 Fx_display_list, x_create_tip_frame): Likewise.
792 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
793 Fx_popup_menu, Fx_popup_dialog): Likewise.
794 * xselect.c (x_own_selection, x_get_local_selection,
795 x_handle_selection_request, x_handle_selection_clear,
796 x_clear_frame_selections, wait_for_property_change_unwind,
797 wait_for_property_change, x_handle_property_notify,
798 copy_multiple_data, x_get_foreign_selection,
799 lisp_data_to_selection_data, clean_local_selection_data,
800 x_handle_selection_notify, Fx_get_selection_internal,
801 x_disown_buffer_selections): Likewise.
802 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
803 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
806 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
808 * bytecode.c (Fbyte_code): Likewise.
809 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
810 fmod_float): Likewise.
812 1999-09-11 Richard Stallman <rms@gnu.org>
814 * xdisp.c (run_window_scroll_functions): If hook functions switch
815 buffers, switch back after.
817 1999-09-11 Ken Raeburn <raeburn@gnu.org>
819 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
820 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
821 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
822 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
823 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
825 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
828 1999-09-10 Richard Stallman <rms@gnu.org>
830 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
831 not RevertToPointerRoot.
832 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
833 Fix the code to clear around the scroll bar.
835 1999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
837 * print.c: Support print-circle and related features.
838 (Vprint_gensym_alist): Removed.
839 (Vprint_circle, Vprint_continuous_numbering, print_number_index
840 Vprint_number_table): New variables.
841 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
842 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
843 (print, print_preprocess, print_preprocess_string, print_object):
844 New/modified functions with print-circle feature. Use
845 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
846 (syms_of_print): Defined new Lisp variables `print-circle',
847 `print-continuous-numbering', `print-number-table'.
849 1999-09-10 Gerd Moellmann <gerd@gnu.org>
851 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
852 as background color specification instead of an integer.
853 (image-cache-eviction-delay): Replaces image-eviction-seconds.
854 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
855 (clear_image_cache, syms_of_xfns): Use it.
856 (Qpostscript): Replaces Qghostscript.
859 (syms_of_xfns): Initialize Qpostscript.
861 1999-09-10 Richard Stallman <rms@gnu.org>
863 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
865 1999-09-09 Richard Stallman <rms@gnu.org>
867 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
869 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
871 1999-09-09 Gerd Moellmann <gerd@gnu.org>
873 * fns.c (Fmakehash): Accept just one optional argument TEST.
875 * xfns.c (QCindex): New.
876 (syms_of_xfns): Initialize QCindex.
877 (gif_load): Use it instead of `:image'.
879 1999-09-09 Richard Stallman <rms@gnu.org>
881 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
882 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
884 1999-09-08 Gerd Moellmann <gerd@gnu.org>
886 * xdisp.c (Qwhen): Replaces QCwhen.
887 (syms_of_xdisp): Initialized it instead of QCwhen.
888 (handle_single_display_prop): Use it instead of QCwhen.
890 1999-09-08 Ken'ichi Handa <handa@gnu.org>
892 * charset.c (translate_char): Reset MSBs of arguments of
894 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
896 1999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
898 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
900 * fns.c (Fbase64_decode_region): Don't place point outside of the
901 current accessible portion.
903 1999-09-07 Richard Stallman <rms@gnu.org>
905 * keymap.c (fix_submap_inheritance): Do nothing if the proper
906 parent is an ancestor of SUBMAP; otherwise, add it as the
909 1999-09-07 Gerd Moellmann <gerd@gnu.org>
911 * xdisp.c (handle_single_display_prop): Change conditional
912 display property to `:when FORM . VALUE'.
914 1999-09-07 Richard Stallman <rms@gnu.org>
916 * fileio.c (Fwrite_region): Doc fix.
918 1999-09-07 Stefan Monnier <monnier@cs.yale.edu>
920 * fileio.c (Qexcl): New variable.
921 (report_file_error): Handle EEXIST specially.
922 (Fwrite_region): Special handling for CONFIRM = `excl'.
923 (syms_of_fileio): Initialize Qexcl.
925 1999-09-07 Gerd Moellmann <gerd@gnu.org>
927 * xfns.c (x_set_foreground_color): Call
928 update_face_from_frame_parameter.
929 (x_set_background_color): Ditto.
930 (x_set_mouse_color): Ditto.
931 (x_set_cursor_color): Ditto.
932 (x_set_border_color): Ditto.
933 (x_set_scroll_bar_foreground): Ditto.
934 (x_set_scroll_bar_background): Ditto.
936 * xfaces.c (recompute_basic_faces): Clear face cache.
937 (Finternal_set_lisp_face_attribute): Modify frame parameters
938 if attributes of certain faces are changed.
939 (update_face_from_frame_parameter): New.
941 * xfaces.c (realize_basic_faces): Realize new basic faces.
943 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
944 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
946 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
947 (syms_of_xfaces): Intialize new symbols.
949 * fns.c (Fmakehash): Take one argument, test, make all the
950 rest keyword arguments.
952 * window.c (Fset_window_margins): Make window the first argument.
953 (set_window_buffer): Call Fset_window_margins with window as first
956 1999-09-07 Gerd Moellmann <gerd@gnu.org>
958 * xfaces.c (Qfringe): Replaces Qmargin.
960 1999-09-07 Kenichi Handa <handa@etl.go.jp>
962 * charset.h: Lots of comments fixed.
963 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
964 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
966 * charset.c : Lots of comments fixed.
967 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
968 (CHAR_COMPONENTS_VALID_P): Name changed from
969 CHAR_COMPONENT_VALID_P. Caller changed.
971 1999-09-06 Richard Stallman <rms@gnu.org>
973 * insdel.c (syms_of_insdel): Define Lisp variable
974 inhibit-modification-hooks.
976 1999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
978 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
981 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
983 1999-09-06 Dave Love <fx@gnu.org>
985 * unexaix.c: New version incorporating Michael Sperber's changes
986 from XEmacs. Should solve problems on AIX 4.3.
988 * lread.c (Vbyte_boolean_vars): New variable.
989 (defvar_bool, syms_of_lread): Use it.
991 1999-09-05 Richard Stallman <rms@gnu.org>
993 * minibuf.c (read_minibuf): Put all three properties on the
994 same range, the whole prompt.
996 1999-09-05 Gerd Moellmann <gerd@gnu.org>
998 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
999 (Fplay_sound, syms_of_sound): Use it.
1000 (parse_sound): Allow float volume values in the range [0, 1].
1001 (Fplay_sound): Ditto.
1003 * window.c (Fset_window_vscroll): Make window the first argument,
1004 amount to scroll the second. Take non-negative vscroll as
1006 (Fwindow_vscroll): Return non-negative vscroll.
1008 * xfns.c (Fx_show_tip): Improve documentation.
1010 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1012 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
1013 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
1014 `top-line' and `top_line' to `header-line' and `header_line'.
1015 Likewise for similar spellings.
1017 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1019 * xdisp.c (row_containing_pos): New.
1020 (try_window_id): Use it.
1022 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
1023 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
1024 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
1025 Likewise for upper-case etc.
1027 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1029 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1030 Fix reference to renamed variable.
1032 1999-09-04 Gerd Moellmann <gerd@gnu.org>
1034 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
1035 (window_fixed_size_p): Use Qwindow_size_fixed instead of
1037 (syms_of_window): Ditto.
1039 * fns.c (Fmakehash): Exchange optional test and size arguments.
1041 1999-09-03 Gerd Moellmann <gerd@gnu.org>
1043 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
1044 under newly created scroll bar.
1045 (expose_window): If window is not yet fully initialized, do
1046 nothing. This can happen when toolkit scroll bars are used and a
1047 window is split. Reconfiguring the scroll bars will generate an
1048 expose for a newly created window.
1050 * frame.h (struct frame): New member `gamma'.
1052 * xfns.c: Include math.h. Add extern declaration for atof in case
1054 (Qscreen_gamma): New.
1055 (struct x_frame_parm_table): Add prototypes, add
1057 (gamma_correct): New function.
1058 (defined_color): Call it.
1059 (x_set_screen_gamma): New.
1060 (x_set_title): Add parameter old_value.
1061 (RES_TYPE_FLOAT): New.
1062 (x_get_arg): Handle RES_TYPE_FLOAT.
1063 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
1064 (lookup_pixel_color): Change call to x_alloc_nearest_color to
1066 (lookup_rgb_color): Ditto.
1067 (syms_of_xfns): Initialize Qscreen_gamma.
1069 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
1070 New. Allocate color for lwlib widgets.
1071 (x_alloc_nearest_color): Change parameter list include the
1072 frame on which to allocate colors. Gamma-correct colors.
1073 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
1076 * xterm.h: Change protorype of x_alloc_nearest_color.
1078 1999-09-03 Richard Stallman <rms@gnu.org>
1080 * callproc.c: Delete the system-independent include of stdlib.h
1081 (leaving only the one in the WINDOWSNT conditional).
1083 1999-09-03 Andrew Choi <choi@cs.hku.hk>
1085 * callproc.c (call-process) [macintosh]: Call mac_run_command in
1086 sysdep.c. The Mac code is modeled after the DOS code.
1088 * dispextern.h [macintosh]: Include macterm.h to define substitute X
1089 Window types and macros.
1091 * frame.h: Do nothing if included a second time.
1092 (enum output_method): Add mac_output frame type.
1093 (union output_data): Add new alternative `mac'.
1094 (FRAME_MAC_P): New macro.
1096 * frame.c (Fframep) [macintosh]: Handle mac frame type.
1097 (syms_of_frame_1): Initialize Qmac.
1098 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
1099 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
1100 (Fmodify_frame_parameters) [macintosh]: Call
1101 mac_set_frame_parameter in macterm.c.
1103 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
1104 (512) because Mac compilers limit local data of a function to 32K.
1106 * make-docfiles.c: Correctly handle input files with Mac-style
1109 * sysdep.c: Define numerous routines to emulate Unix system calls.
1111 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
1112 file of an X Window environment.
1114 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
1115 x-display-grayscale, x-color-defined-p, and x-color-values.
1117 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
1118 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
1119 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
1120 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
1121 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
1122 New functions, replacing POSIX features.
1124 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
1125 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
1126 (InitEmacsPasswdDir, run_mac_command): New subroutines.
1128 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
1129 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
1130 (myPasswdDir, TempDirName, sys_siglist): New variables.
1132 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
1133 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
1134 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
1135 Define empty stubs so Emacs will link.
1137 1999-09-03 Gerd Moellmann <gerd@gnu.org>
1139 * xdisp.c: Use XCAR and XCDR instead of XCONS.
1141 * window.h: New member frozen_window_start_p.
1143 * window.c (foreach_window, foreach_window_1): New.
1144 (freeze_window_start, freeze_window_starts): New.
1145 (make_window): Initialize frozen_window_start_p.
1146 (replace_window): Ditto.
1147 (Fset_window_point): Remove references to deleted variables.
1148 (Fset_window_start): Ditto.
1150 * xdisp.c (Vresize_mini_config, resize_mini_frame,
1151 resize_mini_initial_height): Removed.
1152 (syms_of_xdisp): Remove references to these variables.
1153 (resize_mini_window): Don't save window configuration, freeze
1154 window starts instead. Enlarge window until displaying an empty
1155 buffer, then shrink it. Make the function externally visible.
1156 (redisplay_window): Treat frozen window start like forced start,
1157 but accept point outside of the window.
1159 * dispextern.h: Add function prototype for resize_mini_window.
1161 * minibuf.c (read_minibuf_unwind): Resize mini-window when
1162 reaching minibuf_level 0.
1164 * lisp.h: Remove extern declarations for variables deleted from
1167 * dispnew.c (adjust_frame_glyphs): Remove reference to
1168 Vresize_mini_config.
1170 1999-09-03 Gerd Moellmann <gerd@gnu.org>
1172 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
1173 to USE_TOOLKIT_SCROLL_BARS.
1175 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
1177 (XTset_vertical_scroll_bar): Clarify position computations. Clear
1178 under newly created scroll bar. Put toolkit scroll bars in the
1179 middle of the area reserved for the scroll bar.
1181 1999-09-03 Kenichi Handa <handa@etl.go.jp>
1183 The following changes are for the new handling of mulitbyte
1184 sequence. Now, except for a composite character, no multibyte
1185 character in string/buffer has trailing garbage bytes. For
1186 instance, the length of string "\201\300\300" is now 2, the first
1187 character is Latin-1 A-grave, the second is raw \300.
1189 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
1191 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
1192 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
1193 (PARSE_COMPOSITE_SEQ): New macro.
1194 (PARSE_CHARACTER_SEQ): New macro.
1195 (PARSE_MULTIBYTE_SEQ): New macro.
1196 (CHAR_PRINTABLE_P): New macro.
1197 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
1198 (STRING_CHAR_AND_LENGTH): Likewise.
1199 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
1200 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
1201 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
1203 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
1204 (SPLIT_CHARACTER_SEQ): New macro.
1205 (SPLIT_MULTIBYTE_SEQ): New macro.
1206 (CHAR_COMPONENT_VALID_P): New macro.
1207 (non_ascii_char_to_string): Generate a multibyte sequence as far
1209 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
1210 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
1211 (split_non_ascii_string): Likewise.
1212 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
1213 (char_printable_p): New function.
1214 (translate_char): Check character by NATNUMP instead of INTEGERP.
1215 (unibyte_char_to_multibyte): Call char_valid_p instead of
1216 VALID_MULTIBYTE_CHAR_P.
1217 (Fmake_char_internal): Check the arguments more rigidly.
1218 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
1219 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
1220 (Fmultibyte_char_to_unibyte): Check the validity of character by
1222 (chars_in_text): Call multibyte_chars_in_text.
1223 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
1224 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
1225 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
1227 * data.c (Faset): Adjust the way to check byte-combining
1228 possibility for the new handling of multibyte sequence.
1230 * editfns.c (Fsubst_char_in_region): Likewise.
1232 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
1233 (string_char_to_byte): Likewise.
1234 (string_byte_to_char): Likewise.
1236 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
1237 macro STRING_CHAR_AND_LENGTH. Caller changed.
1239 * insdel.c (count_combining_composition): New function.
1240 (count_combining_before): Adjust the way to check byte-combining
1241 possibility for the new handling of multibyte sequence. Call
1242 count_combining_composition for a composite character.
1243 (count_combining_after): Likewise.
1245 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
1248 * dispextern.h (struct it): Change the size of the member
1251 * xdisp.c (get_next_display_element): Display incomplete multibyte
1252 sequence (e.g. \222\300) by octal form.
1254 1999-09-02 Gerd Moellmann <gerd@gnu.org>
1256 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
1258 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
1259 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
1261 1999-09-02 Gerd Moellmann <gerd@gnu.org>
1263 * buffer.c (set_buffer_internal): Never set
1264 windows_or_buffers_changed.
1266 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
1267 if we have displayed to the bottom of the window.
1269 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
1270 in both directions. Extend documentation.
1272 1999-09-01 Gerd Moellmann <gerd@gnu.org>
1274 * minibuf.c (read_minibuf): Flush display after setting cursor to
1277 1999-08-31 Gerd Moellmann <gerd@gnu.org>
1279 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
1280 already defined. This avoids a warning from buffer.c.
1282 1999-08-30 Gerd Moellmann <gerd@gnu.org>
1284 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
1286 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
1287 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
1288 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
1290 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
1291 once instead of twice.
1292 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
1294 * xterm.c: Remove unused bitmaps.
1295 (continued_bits, continuation_bits, overlay_bits): Change images.
1296 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
1297 instead of FRAME_X_FLAGS_AREA_WIDTH.
1298 (x_after_update_window_line): Ditto.
1299 (x_draw_bitmap): Likewise.
1300 (x_draw_row_bitmaps): Likewise.
1301 (x_draw_glyph_string_box): Likewise.
1302 (x_draw_glyphs): Likewise.
1303 (x_scroll_run): Likewise.
1304 (expose_window_tree): Likewise.
1305 (note_mode_line_highlight): Likewise.
1306 (XTset_vertical_scroll_bar): Likewise.
1307 (x_clip_to_row): Likewise.
1308 (x_set_window_size): Likewise.
1310 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
1313 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
1315 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
1316 FRAME_FLAGS_AREA_WIDTH.
1318 * window.c (coordinates_in_window): Use
1319 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
1320 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
1323 * widget.c (set_frame_size): Set flags_area_extra to
1324 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
1325 (EmacsFrameSetCharSize): Ditto.
1327 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
1328 instead of FRAME_FLAGS_AREA_WIDTH.
1330 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
1331 FRAME_FLAGS_AREA_COLS once.
1332 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
1333 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
1335 1999-08-30 Gerd Moellmann <gerd@gnu.org>
1337 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
1338 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
1340 1999-08-30 Gerd Moellmann <gerd@gnu.org>
1342 * fns.c (QCweakness): Replaces QCweak.
1343 (Fmake_hash_table): Ditto.
1345 (syms_of_fns): Ditto.
1347 1999-08-29 Richard Stallman <rms@gnu.org>
1349 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
1351 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
1353 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
1354 Add support for nested comments.
1356 * syntax.c (lisp_parse_state, back_comment, Fmodify_syntax_entry)
1357 (Fforward_comment, scan_lists, scan_sexps_forward)
1358 (Fparse_partial_sexp): Add support for nested comments.
1359 (forw_comment): New subroutine used in them.
1361 1999-08-28 Ken Raeburn <raeburn@gnu.org>
1363 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
1364 names of structure elements if HIDE_LISP_IMPLEMENTATION is
1365 defined, to help detect code that uses knowledge of the Lisp
1366 internals that it shouldn't have.
1367 (XFLOAT_DATA): New macro.
1369 1999-08-25 Gerd Moellmann <gerd@gnu.org>
1371 * syntax.c (Fforward_word): If in a mini-buffer and moving
1372 backwards, stop in front of the prompt to prevent accidentially
1373 moving into the read-only prompt.
1375 * window.c (Frecenter): Clear frame if called with nil or no arg.
1377 * xdisp.c (resize_mini_window): Don't resize if
1378 Vmax_mini_window_height is nil. Otherwise, use a default if
1379 Vmax_mini_window_height is not ot a number.
1380 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
1382 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
1384 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
1385 * m/iris4d.h: Use unexelf for IRIX 5.*.
1386 * m/iris5d.h: Use unexelf for IRIX 6.*.
1387 * unexsgi.c: Deleted.
1389 * unexelf.c: Auto-detect .sbss section.
1390 (round_up): Make it static.
1391 (unexec): Declare alignment as Elf Word. Skip ``Program
1392 segment above .bss'' test on MIPS without .sbss.
1393 Copy sections .got and .sdata1 sections. Adjust offsets in
1394 sections .sdata, .lit4, .lit8, .got and .sdata1.
1396 1999-08-25 Gerd Moellmann <gerd@gnu.org>
1398 * xdisp.c (try_window_id): Remove typo.
1400 1999-08-24 Gerd Moellmann <gerd@gnu.org>
1402 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
1403 unchanged text at the bottom when computing the cursor position.
1404 (message3_nolog): Raise frame only if minibuffer_auto_raise is
1407 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
1409 1999-08-24 Gerd Moellmann <gerd@gnu.org>
1411 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
1412 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
1413 (syms_of_xfaces): Ditto.
1415 * window.c (Fset_window_point): Reset Vresize_mini_config.
1416 (Fset_window_start): Ditto.
1417 (set_window_buffer): Ditto.
1419 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
1421 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
1422 before calling try_window.
1423 (echo_area_display): If height has changed, update other windows.
1424 (resize_mini_frame, resize_mini_initial_height): New.
1425 (resize_mini_window): Save/restore window configuration
1428 * lisp.h (Vresize_mini_config, resize_mini_frame,
1429 resize_mini_initial_height): Add extern declarations.
1431 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
1434 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
1435 being redefined in jconfig.h.
1437 1999-08-23 Ken'ichi Handa <handa@gnu.org>
1439 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
1441 1999-08-22 Gerd Moellmann <gerd@gnu.org>
1443 * alloc.c (mark_glyph_matrix): Mark strings only.
1445 * xdisp.c (redisplay_internal): Clear garbaged frames after
1446 resizing mini-window.
1448 1999-08-22 Gerd Moellmann <gerd@gnu.org>
1450 * xdisp.c (unwind_with_echo_area_buffer): Use
1451 set_buffer_internal_1 instead of set_buffer_internal.
1452 (with_echo_area_buffer): Ditto.
1454 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
1455 only if buffer is displayed somewhere.
1457 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
1459 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
1461 (modify_region): Ditto.
1463 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
1465 * xdisp.c (Vresize_mini_config): New.
1466 (resize_mini_window): Use it to save restore original window
1468 (syms_of_xdisp): Initialize it.
1470 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
1472 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
1474 * xdisp.c (reconsider_clip_changes): New.
1475 (redisplay_internal, redisplay_window): Call it.
1476 (mark_window_display_accurate, redisplay_internal): Set current
1477 matrix' buffer, begv, zv.
1479 * window.c (Fset_window_hscroll): Set
1480 prevent_redisplay_optimizations_p instead of clip_changed.
1481 (Fset_window_hscroll): Ditto.
1482 (temp_output_buffer_show): Ditto.
1483 (Fset_window_vscroll): Ditto.
1485 * buffer.c (reset_buffer): Set clip_changed to 0 and
1486 prevent_redisplay_optimizations_p to 1.
1487 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
1489 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
1490 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
1491 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
1492 END_UNCHANGED): New.
1493 (struct buffer_text): Add beg_unchanged, end_unchanged,
1494 unchanged_modified, overlay_unchanged_modified.
1496 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
1497 overlay_unchanged_modified): Removed.
1498 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
1499 (unwind_with_echo_area_buffer): Don't restore them.
1500 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
1501 (text_outside_line_unchanged_p, redisplay_internal,
1502 try_scrolling): Use/set buffer-specific beg/end_unchanged.
1503 (redisplay_window): Let try_window_id be called if more than one
1504 window is displayed. Use/set buffer-specific beg/end_unchanged.
1505 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
1507 Use buffer-specific beg/end_unchanged.
1509 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
1510 overlay_unchanged_modified): Remove extern declarations.
1512 * keyboard.c (command_loop_1): Set beg/end_unchanged per
1515 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
1517 (adjust_after_replace): Likewise.
1518 (replace_range, del_range_2, modify_region): Likewise.
1520 * dispnew.c (direct_output_for_insert): Set beg_unchanged
1521 and unchanged_modified per buffer.
1523 * coding.c (code_convert_region): Compute beg/end_unchanged per
1526 * buffer.c (modify_overlay): Compute beg/end_unchanged
1528 (Fget_buffer_create): Initialize new members of the buffer
1531 1999-08-22 Gerd Moellmann <gerd@gnu.org>
1533 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
1535 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
1536 (Qkey_value_weak): Removed.
1537 (make_hash_table): Use nil, `key', `value', t for weakness.
1538 (Fmake_hash_table): Ditto.
1539 (copy_hash_table): New.
1540 (Fcopy_hash_table): New.
1542 1999-08-22 Gerd Moellmann <gerd@gnu.org>
1544 * xfns.c: Call change_frame_size and do_pending_window_change with
1547 1999-08-21 Gerd Moellmann <gerd@gnu.org>
1549 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
1551 (redisplay_internal): Resize mini-window only if text might
1553 (display_echo_area): Reset displayed echo_area_buffer to nil
1554 at the end if we're displaying a nil message.
1556 1999-08-21 Gerd Moellmann <gerd@gnu.org>
1558 * fns.c (hash_lookup): Test with EQ before calling key comparion
1560 (hash_remove): Ditto.
1561 (cmpfn_eq): Removed.
1562 (cmpfn_eql): Don't test with EQ.
1563 (cmpfn_equal): Ditto.
1564 (make_hash_table): Set comparison function for `eq' to null.
1566 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
1567 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
1569 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
1571 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
1572 xterm.c: Call change_frame_size and do_pending_window_change with
1575 * dispnew.c (do_pending_window_change): Add parameter `safe'.
1576 (change_frame_size): Ditto.
1577 (change_frame_size_1): Ditto. Deley size changes if redisplaying
1578 and not called from a safe place.
1579 (window_change_signal): Call change_frame_size with new parameter.
1581 * dispextern.h: Change prototypes for do_pending_window_change
1582 and change_frame_size.
1584 * xfaces.c (face_at_buffer_position): Don't xassert that
1585 window's buffers equals current_buffer; this is not the
1586 case during echo area display.
1588 1999-08-21 Gerd Moellmann <gerd@gnu.org>
1590 * xdisp.c, minibuf.c: Remove conditional compilation on
1591 NO_PROMPT_IN_BUFFER.
1593 * minibuf.c (Fminibuffer_prompt_end): New.
1594 (syms_of_minibuf): Defsubr it. Remove
1595 minibuffer-prompt-in-buffer.
1596 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
1597 Extend documentation.
1599 * xdisp.c (get_next_display_element): Display \r as ^M.
1601 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
1602 under scroll bar widget.
1604 1999-08-21 Gerd Moellmann <gerd@gnu.org>
1606 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
1608 (unwind_redisplay): Return nil.
1609 (clear_garbaged_frames): New.
1610 (redisplay_internal): Use it.
1611 (echo_area_display): Ditto.
1612 (resize_mini_window): Mew.
1613 (display_echo_area_1): Use it to resize echo area window.
1614 (redisplay_internal): Use it to resize active mini-window.
1616 * dispextern.h, lisp.h: Add function prototypes.
1618 * dispnew.c (set_window_cursor_after_update): Do the
1619 cursor_in_echo_area case only for a mini-window showing
1620 a message. Don't let cursor end up after the end of a row.
1622 * xdisp.c (echo_area_glyphs, echo_area_message,
1623 echo_area_glyphs_length, previous_echo_glyphs,
1624 previous_echo_area_message, previous_echo_area_glyphs_length):
1626 (Vmessage_stack, echo_area_buffer, echo_buffer,
1627 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
1628 (message2_nolog): Use set_message and clear_message.
1629 (message3): Rename parameter len to nbytes to make clear what
1631 (message3_nolog): Ditto. Use set_message and clear_message.
1632 (update_echo_area): Rewritten.
1633 (with_echo_area_buffer): New.
1634 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
1635 (setup_echo_area_for_printing): New.
1636 (display_echo_area, display_echo_area_1): New.
1638 (current_message, current_message_1): New.
1639 (push_message, restore_message, pop_message,
1640 check_message_stack): New.
1641 (truncate_echo_area): Rewritten.
1642 (truncate_message_1): New.
1643 (set_message, set_message_1, clear_message): New.
1644 (echo_area_display): Rewritten.
1645 (redisplay_internal): Check for needed echo area update
1647 (redisplay_preserve_echo_area): Rewritten.
1648 (redisplay_window): Check for mini-window displaying echo area
1649 message differently.
1650 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
1651 Remove initialzation of removed variables.
1652 (init_xdisp): Remove references to removed variables.
1654 * dispnew.c (adjust_frame_message_buffer): Removed references
1655 to echo_area_glyphs and previous_echo_glyphs.
1656 (direct_output_for_insert): Check for mini-window displaying
1657 echo area message differently.
1658 (update_frame): Likewise.
1659 (set_window_cursor_after_update): Likewise. In echo area,
1660 don't try to set cursor on rows that aren't enabled.
1662 * print.c: Remove conditional compilation on `standalone'.
1663 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
1664 glyph_to_str_cpy): Remove that section because GLYPHs are no
1665 longer used in that way.
1666 (PRINTDECLARE): Add multibyte.
1667 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
1668 (printbufidx): Removed.
1669 (printchar, strout): Rewritten.
1671 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
1674 (echo_now): Set echo_kboard to the current kboard.
1675 (cancel_echoing): Set echo_kboard to null.
1676 (cmd_error_internal): Use clear_message, remove references
1677 to echo_area_glyphs and echo_area_message.
1678 (command_loop_1): Check for echo area messages differently.
1679 (read_char): Likewise.
1680 (record_menu_key): Use clear_message.
1681 (Fexecute_extended_command): Check for echo area messages
1682 differently. Use push_message, restore_message, pop_message.
1684 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
1687 * emacs.c (shut_down_emacs): Call check_message_stack.
1689 * lisp.h: Add function prototypes and extern declarations for
1690 new functions and variables.
1692 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
1695 * minibuf.c (read_minibuf): Use clear_message instead of
1696 setting echo_area_glyphs.
1697 (Fminibuffer_completion_help): Ditto.
1699 * editfns.c (Fcurrent_message): Rewritten.
1701 * frame.c, window.h: Remove references to echo_area_glyphs
1702 and previous_echo_glyphs.
1704 1999-08-21 Dave Love <fx@gnu.org>
1706 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
1707 * aix4-1.h: Likewise.
1709 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
1711 1999-08-20 Gerd Moellmann <gerd@gnu.org>
1713 * xfns.c: Remove tiff34 prefix from include.
1715 1999-08-20 Dave Love <fx@gnu.org>
1717 * cm.c: Revert previous change.
1719 1999-08-19 Gerd Moellmann <gerd@gnu.org>
1721 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
1722 under scroll bar with width FRAME_SCROLL_BAR_COLS.
1724 1999-08-18 Dave Love <fx@gnu.org>
1726 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
1729 * doprnt.c: Use stdlib.h, unistd.h.
1731 * config.in: Add HAVE_TERMCAP_H.
1733 * cm.c: Use termcap.h.
1735 1999-08-18 Gerd Moellmann <gerd@gnu.org>
1737 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
1738 FRAME_X_WINDOW (f) being null at the of the function. If widgets
1739 cannot be created we will already have crashed earlier. Call
1740 lw_set_main_areas with a null menu-bar widget, so that we have
1741 a reasonable default.
1742 (Fx_create_frame): Rearranged so that Lisp errors during frame
1743 initialization cause less damage. Initialize menu bar widget
1746 1999-08-18 Gerd Moellmann <gerd@gnu.org>
1748 * dispnew.c (update_frame_line): Fix previous change. If writing
1749 whole line clear to end of frame.
1751 1999-08-17 Gerd Moellmann <gerd@gnu.org>
1753 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
1754 and `right-bitmap-area' if position is in the bitmap areas. This
1755 avoids an error when clicking on the bitmap areas. Instead, they
1756 are currently treated like clicks inside the window.
1757 (coordinates_in_window): Return 5 and 6 for bitmap areas.
1758 (Qleft_bitmap_area, Qright_bitmap_area): New.
1759 (syms_of_window): Initialize new symbols.
1761 * dispnew.c (update_frame_line): If writing whole line,
1762 don't write trailing spaces unless we must.
1764 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
1765 (redisplay_internal): Register unwind_redisplay with
1766 register_unwind_protect.
1767 (try_window_reusing_current_matrix): If new start > old start,
1768 give up if start pos of first reusable row is not equal to new
1771 * eval.c (Fsignal): Don't reset redisplaying_p here.
1773 * xterm.c (expose_area): If row extends face to end of line,
1774 write the whole line.
1776 1999-08-16 Gerd Moellmann <gerd@gnu.org>
1778 * dispextern.h (struct it): Remove member
1779 show_trailing_whitespace_p.
1781 * dispnew.c (direct_output_for_insert): Use
1782 Vshow_trailing_whitespace instead of former iterator member
1783 show_trailing_whitespace_p.
1784 (direct_output_forward_char): Don't do it if hightlighting
1785 trailing whitespace.
1787 * xdisp.c (Qshow_trailing_whitespace): Removed.
1788 (Vshow_trailing_whitespace): Added.
1789 (init_iterator): Remove initialization code for
1790 show_trailing_whitespace_p.
1791 (redisplay_internal): Don't try cursor movement in this_line
1792 if showing trailing whitespace.
1793 (redisplay_window): Likewise for cursor movement in current
1794 matrix and try_window_id.
1795 (try_window_reusing_current_matrix): Likewise.
1796 (trailing_whitespace_p): Return 0 if trailing whitespace is
1798 (display_line): Use Vshow_trailing_whitespace instead of
1799 former iterator member show_trailing_whitespace_p.
1800 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
1802 1999-08-16 Gerd Moellmann <gerd@gnu.org>
1804 * window.c (Fpos_visible_in_window_p): Rewritten.
1806 * xfaces.c (add_to_log): Renamed from display_message.
1807 Don't display messages in echo area.
1809 * xterm.c (x_draw_glyph_string_box): Use the background width
1810 of the glyph string for the width of the box.
1812 1999-08-16 Stefan Monnier <monnier@cs.yale.edu>
1814 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
1816 1999-08-16 Geoff Voelker <voelker@cs.washington.edu>
1818 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
1819 background first, and then set other parameters that might
1820 depend upon their new values.
1822 1999-08-15 Gerd Moellmann <gerd@gnu.org>
1824 * xfaces.c (Vfont_list_limit): New.
1825 (syms_of_xfaces): Make it a user-variable.
1826 (DEFAULT_FONT_LIST_LIMIT): New.
1827 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
1828 maximally that number of fonts, otherwise use
1829 DEFAULT_FONT_LIST_LIMIT.
1830 (Fx_font_family_list): Bind `font-list-limit' to higher values
1831 until we have all fonts.
1832 (Fxfont_list): Additionally return the full names of fonts and
1833 their registry and encoding.
1835 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1836 Simplify clearing "under" scroll bar.
1838 * window.c (Qfixed_window_size): New.
1839 (syms_of_window): Initialiaze it.
1840 (check_all_windows): Add return type void.
1841 (window_fixed_size_p): New. Return non-zero if window
1843 (window_min_size_1): New.
1844 (window_min_size): Handle fixed-size windows.
1845 (size_window): New. Rewritten combination of set_window_height and
1846 set_window_width that handles fixed-size windows.
1847 (set_window_height): Call it.
1848 (set_window_width): Call it.
1849 (Fsplit_window): Give an error on attempt to split a fixed-size
1851 (change_window_height): Partly rewritten to handle fixed-size
1854 1999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
1856 * process.c (Fopen_network_stream): Fix previous change.
1858 1999-08-13 Karl Heuer <kwzh@gnu.org>
1860 * xdisp.c (line_number_display_limit_width): New var.
1861 (decode_mode_spec): Use it instead of hardcoded value.
1862 (syms_of_xdisp): Defvar it.
1864 1999-08-13 Richard M. Stallman <rms@gnu.org>
1866 * eval.c (run_hook_list_with_args): Gcpro `globals'.
1867 (run_hook_with_args): Likewise.
1869 * window.h (struct window): New field too_small_ok.
1871 * window.c (set_window_height, set_window_width):
1872 If window starts out "too small", set its too_small_ok flag.
1873 If window's too_small_ok flag is set, don't delete it
1874 unless it is so small it would cause a crash.
1876 1999-08-13 Gerd Moellmann <gerd@gnu.org>
1878 * window.c (MINSIZE): Removed.
1879 (window_min_size): New.
1880 (set_window_height): Use window_min_size.
1881 (change_window_height): Ditto.
1883 1999-08-12 Gerd Moellmann <gerd@gnu.org>
1885 * indent.c (vmotion): Don't add in mini-buffer prompt width
1886 if prompts are inserted into mini-buffer.
1888 1999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
1890 * config.in: Add HAVE_GETADDRINFO.
1891 * process.c (Fopen_network_stream): Use getaddrinfo.
1893 1999-08-11 Gerd Moellmann <gerd@gnu.org>
1895 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
1898 * xdisp.c (face_before_or_after_it_pos): If position after
1899 or before iterator's current position in the buffer is out
1900 of bounds, return the iterator's original face id.
1902 * dispnew.c (mirror_make_current): If desired row isn't enabled,
1903 just swap glyphs pointers between current and desired row.
1904 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
1905 desired matrix method string to current matrix.
1907 1999-08-11 Kenichi Handa <handa@etl.go.jp>
1909 * lisp.h (CHAR_MODIFIER_MASK): New macro.
1911 * lread.c (read_escape): For Control modifier, pay attention to
1912 multibyte character.
1913 (read1): Likewise. Singal error or a multibyte character which
1914 has a modifer bit. Check validity of Shift modifer.
1916 * charset.c (non_ascii_char_to_string): Handle modifier bits as
1917 the same as Lisp reader.
1919 1999-08-10 Richard M. Stallman <rms@gnu.org>
1921 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
1923 1999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
1925 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
1927 1999-08-10 Eli Zaretskii <eliz@gnu.org>
1929 * msdos.c (IT_set_face): Abort if the default face is not realized
1931 (IT_write_glyphs): Reset the screen face to the default face
1932 before writing glyphs.
1934 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
1935 colors from the frame here.
1936 (realize_tty_face) [MSDOS]: Do it here. Update the face
1937 attributes with the actual name of the color taken from the
1940 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
1941 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
1943 * frame.c (Fframe_parameters): Swap foreground and background
1944 colors returned in frame parameters if the frame has reverse in
1945 its parameter alist.
1946 (Fmake_terminal_frame): Make a unique copy of face_alist for
1949 1999-08-07 Richard Stallman <rms@gnu.org>
1951 * buffer.c (Fprevious_overlay_change): Just return
1952 the answer obtained from overlays_at.
1954 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
1955 Use XpmCloseness and attrs.closeness instead.
1957 1999-08-06 Richard Stallman <rms@gnu.org>
1959 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
1961 1999-08-06 Geoff Voelker <voelker@cs.washington.edu>
1963 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
1964 Ffile_attributes_lessp): New functions.
1965 (Fdirectory_files): Use directory_files_internal.
1966 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
1967 Ffile_attributes_lessp.
1969 * w32.c (stat): Check for directory ending in separator when
1970 doing readdir fast path.
1972 * w32fns.c (x_set_icon_type): Support setting frame icons.
1973 * w32term.c (x_bitmap_icon): New function.
1974 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
1976 1999-08-06 Gerd Moellmann <gerd@gnu.org>
1978 * xdisp.c (set_iterator_to_next): After delivering a character
1979 from a display vector, restore face and charset to what they were
1980 before the display vector was processed.
1982 1999-08-06 Gerd Moellmann <gerd@gnu.org>
1984 * xdisp.c (reseat_at_next_visible_line_start): New parameter
1986 (set_iterator_to_next): After delivering last char
1987 from display vector, reseat on next visible line start if
1989 (next_element_from_buffer): Set dpvec_char_len to -1 for
1992 1999-08-06 Gerd Moellmann <gerd@gnu.org>
1994 * xdisp.c (compute_line_metrics): If first line's physical ascent
1995 is larger than its logical ascent, use the physical ascent, and
1996 make the row taller. Set row's overlapping_p flag.
1998 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
1999 (direct_output_for_insert): Ditto.
2001 * dispextern.h (struct glyph_row): Add overlapping_p.
2003 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
2005 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
2006 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
2008 * dispnew.c (direct_output_for_insert): Don't use this method if
2009 row is overlapped by others.
2010 (update_text_area): Write full line if current line is overlapped.
2011 (redraw_overlapped_rows): New.
2012 (update_window): Call it.
2013 (redraw_overlapping_rows): New.
2014 (update_window): Call it.
2015 (scrolling_window): Make sure overlapped_p flag in current rows is
2017 (row_equal_p): Take rows overlapped_p flag into account.
2019 * dispextern.h (struct glyph_row): Add flag overlapped_p.
2021 * xterm.c (x_fix_overlapping_area): New.
2022 (x_redisplay_interface): Add x_fix_overlapping_area.
2024 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
2026 1999-08-06 Gerd Moellmann <gerd@gnu.org>
2028 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
2029 (struct glyph_string): Add member for_overlaps_p.
2030 (x_get_glyph_string_clip_rect): If glyph string draws foreground
2031 of overlapping rows, clip to window bottom.
2032 (x_fill_glyph_string): Add parameter overlaps_p.
2033 (x_fill_composite_glyph_string): Ditto.
2034 (BUILD_GLYPH_STRINGS): Ditto.
2035 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
2036 (x_draw_glyph_string): Don't draw anything but the foreground
2037 if glyph string draws row overlaps.
2039 * dispnew.c (direct_output_for_insert): Don't use this
2040 optimization for rows that overlap others.
2041 (update_window_line): Return non-zero if display has changed.
2042 (update_text_area): Ditto.
2043 (update_window): Record if display has been changed.
2045 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
2047 * dispextern.h (struct redisplay_interface): Add
2048 fix_overlapping_area.
2050 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
2052 * dispextern.h (struct glyph): Add overlaps_vertically_p.
2054 * xterm.c (x_produce_image_glyph): Compute iterator's physical
2056 (x_produce_stretch_glyph): Ditto.
2057 (x_produce_glyphs): Ditto.
2059 * xdisp.c (init_iterator): Reset physical line height info
2060 after producing special glyphs.
2061 (display_toolbar_line): Set physical line height info.
2062 (compute_line_metrics): Ditto.
2063 (display_line): Ditto.
2064 (display_string): Ditto.
2066 * term.c (produce_glyphs): Set iterator's physical height
2069 * dispnew.c (blank_row): Compute glyph row's physical height.
2070 (row_equal_p): Take physical row heights into account.
2071 (direct_output_for_insert): Ditto.
2072 (update_text_area): Ditto.
2074 * dispextern.h (struct glyph_row): Add phys_ascent and
2076 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
2079 1999-08-04 Stefan Monnier <monnier@cs.yale.edu>
2081 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
2083 (no_switch_buffer): New function.
2084 (Fswitch_to_buffer): Call them. Don't get confused
2085 by "same-window" buffers in a dedicated frame.
2087 * window.c (display-buffer): Don't get confused
2088 by "same-window" buffers in a dedicated frame.
2090 1999-08-04 Andreas Schwab <schwab@gnu.org>
2092 * insdel.c (insert_from_string_1): Check gap size against number
2093 of outgoing bytes, not incoming bytes.
2095 1999-08-03 Tom Breton <tob@world.std.com>
2097 * lread.c (read1): Added circular reading code to #N=.
2098 (SUBSTITUTE): New macro.
2099 (seen_list): New variable.
2100 (substitute_object_in_subtree): New function.
2101 (substitute_object_recurse): New function.
2102 (substitute_in_interval): New function.
2104 1999-08-02 Eli Zaretskii <eliz@gnu.org>
2106 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
2108 * frame.c (make_terminal_frame): Don't call init_frame_faces if
2109 noninteractive, for termcap frames as well.
2111 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
2114 1999-08-01 Richard Stallman <rms@gnu.org>
2116 * fns.c (internal_equal): Correct overlay comparison.
2118 1999-07-31 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2120 * xfns.c (x_set_internal_border_width):
2121 Call do_pending_window_change. Don't block input, don't call XFlush.
2122 (x_set_vertical_scroll_bars): Call do_pending_window_change.
2123 (x_set_scroll_bar_width, x_set_font): Likewise.
2125 * frame.c (Fset_frame_height): Call do_pending_window_change.
2126 (Fset_frame_width, Fset_frame_size): Likewise.
2128 * xterm.c (x_set_window_size): When calling change_frame_size,
2129 specify 1 for DELAY.
2131 * widget.c (EmacsFrameSetCharSize): Don't call
2132 do_pending_window_change here.
2134 1999-07-30 Dave Love <fx@gnu.org>
2136 * config.in: Add HAVE_STDLIB_H.
2138 1999-07-30 Richard M. Stallman <rms@gnu.org>
2140 * process.c (create_process): Detect failure of `pipe'.
2142 1999-07-30 Keisuke Nishida <kei@psn.net>
2144 * alloc.c (allocate_vectorlike): Add missing increment.
2146 * data.c (Fdefalias): Call Ffset instead of duplicating code.
2148 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
2149 before calling indirect_function.
2151 1999-07-30 Eli Zaretskii <eliz@gnu.org>
2153 * dispextern.h (load_color, lookup_derived_face): Declare
2156 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
2157 it will be done later.
2159 * frame.c (make_terminal_frame) [MSDOS]: Don't call
2160 init_frame_faces if non-interactive.
2161 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
2162 array with a call to msdos_stdcolor_name. The font name is now
2163 "ms-dos", consistent with realize_tty_face.
2165 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
2168 * window.c (Fset_window_configuration) [MSDOS]: Don't call
2169 x_set_toolbar_lines.
2171 * xfaces.c (load_color): Remove static from definition and remove
2173 [MSDOS]: Add a DOS-specific version of load_color.
2174 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
2175 (lookup_derived_face): New function.
2176 (realize_default_face): Support MSDOS frames.
2177 [MSDOS]: If fore/background colors are unspecified, inherit them
2179 (realize_face): Support MSDOS frames.
2180 (realize_tty_face): Support MSDOS frames.
2181 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
2182 load_color to try to find a suitable approximation. If the face
2183 is inverse-video, swap the foreground and background colors.
2185 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
2188 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
2190 * msdos.h: Remove redundant declarations (most of them are now in
2193 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
2194 Use default frame colors if the face doesn't specify them; invert
2195 the colors if highlight is ON.
2196 (IT_write_glyphs): Rewritten for the new redisplay engine.
2197 (IT_change_line_highlight): Add (unused) parameter Y, since that's
2198 how the hook is called by term.c.
2199 (IT_copy_glyphs): New function, copies an area of the display in
2201 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
2202 redisplay now calls it even if char_ins_del_ok is zero.
2203 (IT_set_frame_parameters): Prototype changed. Calls the new
2204 load_color. Puts the new fore/background colors into the default
2205 face on current frame.
2206 (IT_menu_display): Rewritten to handle the new struct glyph
2207 instead of a char array.
2208 (XMenuActivate): Call lookup_derived_face to create and use
2209 special faces for the pop-up and drop-down menus.
2211 1999-07-29 Gerd Moellmann <gerd@gnu.org>
2213 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
2214 XawScrollbarSetThumb if thumb parameters haven't changed because
2215 that function apparently isn't optimized for this case.
2217 1999-07-29 Eli Zaretskii <eliz@gnu.org>
2219 * msdos.c (getdefdir): Don't return failure indication when
2220 _fixpath sets errno to ENOSYS.
2222 1999-07-28 Gerd Moellmann <gerd@gnu.org>
2224 * xdisp.c (string_char_and_length): New. Use it everywhere
2225 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
2227 1999-07-28 Kenichi Handa <handa@etl.go.jp>
2229 * fns.c (count_combining): New function.
2230 (struct textprop_rec): New structure.
2231 (concat): Copy text properties correctly when byte combining
2234 1999-07-28 Gerd Moellmann <gerd@gnu.org>
2236 * xterm.c (x_setup_relief_color): Don't try smart color allocation
2238 (x_draw_row_bitmaps): If face has stipple, don't switch
2239 to foreground color for clearing areas, and set the fill style.
2241 * xfaces.c (load_face_colors): Load background color if setting
2243 (prepare_face_for_display): Use FillOpaqueStippled instead of
2246 1999-07-26 Ken'ichi Handa <handa@gnu.org>
2248 * xterm.c (x_find_ccl_program): Add casting.
2250 * w32fns.c (w32_find_ccl_program): Add casting.
2252 1999-07-27 Gerd Moellmann <gerd@gnu.org>
2254 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
2256 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
2257 because this will try to access a nonexisting widget.
2259 1999-07-26 Markus Rost <rost@gnu.org>
2261 * fns.c (Fgethash): Fix order of variables (patch by gerd).
2265 1999-07-26 Gerd Moellmann <gerd@gnu.org>
2267 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
2268 value to frame width and height.
2270 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
2271 into account for full-width windows. Don't add scroll bar width
2272 to width of clip rect.
2273 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
2274 (x_set_glyph_string_background_width): Add 1 to background width.
2275 (x_draw_glyphs): Take internal border into account for full-width
2278 1999-07-26 Richard M. Stallman <rms@gnu.org>
2280 * xfns.c (x_set_mouse_color): Always unload the old color.
2281 Don't allow nil as color value.
2282 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
2283 Always unload the old color.
2285 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
2287 1999-07-26 Karl Heuer <kwzh@gnu.org>
2289 * fns.c (Fy_or_n_p): Doc fix.
2291 1999-07-26 Kenichi Handa <handa@etl.go.jp>
2293 * ccl.h (setup_ccl_program): The type is changed to `int'.
2295 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
2296 stored in the following CCL code. Adjusted for the change of
2298 (resolve_symbol_ccl_program): Adjusted for the new style of
2299 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
2300 is resolving failed.
2301 (ccl_get_compiled_code): New function.
2302 (setup_ccl_program): Function type changed from `void' to `int'.
2303 Resolve symbols in CCL_PROG.
2304 (Fccl_program_p): New function.
2305 (Fccl_execute): Get compiled CCL code by just calling
2307 (Fccl_execute_on_string): Likewise.
2308 (Fregister_ccl_program): Adjusted for the change of
2311 * coding.c (setup_coding_system): Get compiled CCL code by just
2312 calling setup_ccl_program.
2314 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
2315 calling setup_ccl_program.
2317 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
2318 calling setup_ccl_program.
2320 1999-07-23 Gerd Moellmann <gerd@gnu.org>
2322 * xfaces.c (frame_update_line_height): Just use the height of the
2323 frame's fontset or font, instead of taking face fonts into
2326 * xdisp.c (get_next_display_element): Display DEL as `^?'.
2328 1999-07-23 Richard M. Stallman <rms@gnu.org>
2330 * window.c (Fsplit_window): For default size, round up for left window.
2332 1999-07-21 Joe Ramey <ramey@ti.com>
2334 * filelock.c (lock_if_free): Return -1 if check_lock_owner
2335 has returned -1 (lockfile exists but is not a symlink?).
2337 1999-07-20 Gerd Moellmann <gerd@gnu.org>
2339 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
2340 because of a change in cursor_gc made in 20.4.
2342 1999-07-19 Gerd Moellmann <gerd@gnu.org>
2344 * xterm.c (x_calc_absolute_position): Subtract menu bar height
2345 for YNegative, if using X toolkit.
2347 * xfns.c (x_real_positions): Don't subtract window borders
2348 from positions returned.
2350 1999-07-17 Gerd Moellmann <gerd@gnu.org>
2352 * xrdb.c (x_load_resources): Set double-click time defaults
2353 for Motif list boxes from double-click-time.
2355 * fns.c (Vhash_table_tests): Remvoed.
2356 (Qhash_table_test): New.
2357 (syms_of_fns): Initialize Qhash_table_test.
2358 (Fmake_hash_table): Look up user-defined tests in symbol prop
2360 (Fdefine_hash_table_test): Store test and hash function as
2361 symbol prop `hash-table-test'.
2362 (make_hash_table): Add parameters user_test and user_hash.
2364 * window.c (set_window_buffer): Set window margins for tty
2366 (Fset_window_margins): Ditto.
2368 * term.c (append_glyph): Use glyph area of iterator instead of
2371 * dispnew.c (update_frame_1): Add left margin width to cursor
2373 (direct_output_for_insert): Ditto.
2374 (direct_output_forward_char): Ditto.
2376 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
2378 * dispextern.h (struct glyph_matrix): Add top_line_p.
2380 1999-07-16 Gerd Moellmann <gerd@gnu.org>
2382 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
2385 * fns.c (cmpfn_eq): Add hash code parameters.
2387 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
2388 (cmpfn_user_defined): Likewise.
2390 1999-07-15 Gerd Moellmann <gerd@gnu.org>
2392 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
2394 * fns.c (maybe_resize_hash_table): Correct computation of
2396 (make_hash_table): Ditto.
2399 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
2401 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
2402 (survives_gc_p): Make it externally visible.
2403 (mark_object): Ditto.
2405 * fns.c (remove_hash_entry): Removed.
2406 (sweep_weak_hash_tables): New.
2408 * print.c (print): Print more information about hash tables.
2410 * xfns.c (image_spec_hash): Removed.
2411 (lookup_image): Use sxhash instead of image_spec_hash.
2412 (image_spec_equal_p): Removed.
2413 (lookup_image): Use Fequal instead of image_spec_equal_p.
2415 1999-07-14 Gerd Moellmann <gerd@gnu.org>
2417 * lisp.h (P_): Moved to top of file.
2419 * fns.c (make_hash_table): Set new members.
2421 * alloc.c (mark_object): Mark hash table's user_hash_function.
2422 Mark index vector for weak hash tables.
2424 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
2425 user_hash_function, cmpfn, and hashfn.
2427 * fns.c (build_hash): Removed.
2428 (hash_test): Removed.
2429 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
2430 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
2432 1999-07-13 Gerd Moellmann <gerd@gnu.org>
2434 * alloc.c (survives_gc_p): New.
2436 * print.c (print): Add hash table handling.
2438 * alloc.c (mark_object): Add code to mark hash tables.
2440 * lisp.h (GC_HASH_TABLE_P): New.
2442 * emacs.c (main): Call init_fns.
2444 * fns.c (init_fns): New.
2446 * fns.c: Add hash table implementation.
2448 * lisp.h (PVEC_HASH_TABLE): New.
2449 (struct Lisp_Hash_Table): New.
2451 (XSET_HASH_TABLE): New.
2452 (HASH_TABLE_P): New.
2453 (CHECK_HASH_TABLE): New.
2454 (DEFAULT_HASH_SIZE): New.
2455 (DEFAULT_REHASH_THRESHOLD): New.
2456 (DEFAULT_REHASH_SIZE): New.
2458 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
2459 (x_write_glyphs): Compute overwritten cursor using real start
2460 and end positions of display.
2461 (x_insert_glyphs): Ditto.
2463 1999-07-10 Gerd Moellmann <gerd@gnu.org>
2465 * keyboard.c (read_char): Use message3_nolog to show help-echo.
2467 * dispnew.c (blank_row): Add y-position as parameter. Compute
2470 * xdisp.c (next_element_from_string): Give padding spaces
2473 * dispnew.c (adjust_glyph_matrix): Some work to support
2474 marginals areas on tty frames in a future version.
2475 (allocate_matrices_for_frame_redisplay): Ditto.
2477 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
2478 to zero if number of glyphs in the row is <= 1.
2480 1999-07-09 Gerd Moellmann <gerd@gnu.org>
2482 * dispnew.c (buffer_posn_from_coords): Take left marginal area
2485 * xdisp.c (handle_display_prop): Don't reset area if handing
2486 a property from a string that came from a `display' property.
2487 (handle_single_display_prop): Don't handle recursive `display'
2489 (handle_single_display_prop): Handle some display property
2490 forms for terminal frames.
2491 (Qimage): Moved here from xfns.c.
2493 * dispextern.h (struct it): New field string_from_display_prop_p.
2495 * xterm.c (x_clip_to_row): Don't let clip_rect include top
2498 1999-07-08 Gerd Moellmann <gerd@gnu.org>
2500 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
2502 * window.c (set_window_buffer): Set window's vscroll to zero.
2504 * xdisp.c (QCwhen): New.
2505 (display_prop_end): New.
2506 (handle_single_display_prop): Use it.
2507 (debug_method_add): Print buffer name if tracing.
2508 (try_window_reusing_current_matrix): Compute visible height
2509 of reused rows. Fix cursor position calculation in case of
2512 * dispextern.h (struct redisplay_interface): Add parameter
2513 cursor_on_p to update_window_end_hook.
2515 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
2517 1999-07-07 Gerd Moellmann <gerd@gnu.org>
2519 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
2520 doesn't become negative when decrementing it.
2522 * eval.c (Fsignal): Reset redisplaying_p to zero.
2524 * xdisp.c (try_window_reusing_current_matrix): Call hooks
2526 (try_window_id): Ditto.
2528 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
2529 (x_scroll_run): Ditto.
2530 (any_help_event_p): New.
2531 (x_initialize): Set it to zero.
2532 (XTread_socket): Clear help echo only if any_help_event_p.
2534 * xdisp.c (init_iterator): Set top_line_p.
2535 (start_display): Use correct initial y if top-line is present.
2536 (make_cursor_line_fully_visible): Bug fixes for top-line.
2537 (try_scrolling): Ditto.
2538 (try_window_reusing_current_matrix): Ditto.
2540 * dispextern.h (struct it): Add top_line_p.
2542 * dispnew.c (shift_glyph_matrix): Move some computations out
2545 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
2548 1999-07-06 Gerd Moellmann <gerd@gnu.org>
2550 * dispnew.c (update_frame_1): When setting cursor in echo area,
2551 skip only over padding spaces at the end.
2553 * xfaces.c (realize_tty_face): Set face's font_name field to
2556 * term.c (update_end): Turn cursor on only if selected window's
2557 cursor_off_p flag is not set.
2559 1999-07-05 Gerd Moellmann <gerd@gnu.org>
2561 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
2562 (TS_cursor_normal): Renamed from TS_end_visual_mode.
2563 (TS_cursor_invisible): New.
2564 (term_init): Initialize TS_cursor_invisible.
2565 (tty_hide_cursor): New.
2566 (tty_show_cursor): New.
2567 (update_end): Show tty cursor.
2568 (update_begin): Hide tty cursor to prevent cursor flickering
2569 during redisplays triggered by timers (stealth fontification).
2571 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
2573 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
2575 (x_handle_toolbar_click): Set modifier bits.
2577 1999-07-04 Gerd Moellmann <gerd@gnu.org>
2579 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
2580 instead of a pointer to a volatile input_event.
2581 (kbd_buffer_store_event): Remove volatile modifier from
2582 declaration of local variable `sp'.
2583 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
2586 1999-07-03 Gerd Moellmann <gerd@gnu.org>
2588 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
2589 only if buffer is modified. Return quickly if changes are
2592 1999-07-02 Gerd Moellmann <gerd@gnu.org>
2594 * dispextern.h (HSCROLL_WINDOWS): Removed.
2596 * xdisp.c (mark_window_display_accurate): Don't set
2598 (redisplay_internal): Don't call redraw_garbaged_frames.
2600 1999-07-01 Gerd Moellmann <gerd@gnu.org>
2602 * xdisp.c (echo_area_display): Don't display truncation marks
2603 for messages because 20.4 doesn't do it either.
2604 (redisplay_window): Case same window start. Instead of giving
2605 up when cursor is partially visible, make it fully visible.
2606 (mark_window_display_accurate): Some cleanup. Record window's
2607 last cursor information.
2608 (debug_method_add): Improved.
2609 (redisplay_internal): Record last cursor info only if not
2610 consider_all_windows_p.
2612 * dispnew.c (update_window): Update top line after scrolling.
2613 (blank_row): Renamed from make_empty_enabled_row.
2614 (increment_glyph_row_buffer_positions): Increment positions
2617 * window.c (Fcoordinates_in_window_p): Add top-line to doc
2620 1999-06-30 Gerd Moellmann <gerd@gnu.org>
2622 * dispnew.c (update_window): Check that updated row is visible.
2624 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
2625 top of window differently.
2627 * xdisp.c (try_window_reusing_current_matrix): Don't do it
2628 if region is showing.
2630 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
2631 avoiding matrix reallocation. Set window_vscroll in matrix.
2633 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
2635 * lwlib-Xm.c: Add function prototypes.
2637 * xdisp.c (debug_method_add): New.
2638 (debug_redisplay_method): Removed.
2639 (try_window_reusing_current_matrix): Handle case where old
2640 window start is the same as new window start.
2642 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
2643 an array instead of a pointer.
2645 * lwlib-Xm.c (xm_update_label): Use val->name to look up
2646 a label string from resources.
2647 (xm_update_label): Add some comments.
2649 * xfns.c (Fx_show_tip): Undo previous change.
2651 * xterm.c (x_append_glyph): Clear glyph->u.val.
2653 * dispextern.h (struct glyph): Increase size of face_id bit-field
2654 for CHAR_GLYPH to 12.
2656 1999-06-29 Gerd Moellmann <gerd@gnu.org>
2658 * xfaces.c (x_charset_registry): Make it externally visible.
2660 1999-06-28 Gerd Moellmann <gerd@gnu.org>
2662 * dispnew.c (update_window): Use mode_line_p flag of rows
2663 instead of WINDOW_WANTS_MODELINE_P.
2665 * xterm.c (clear_mouse_face): Make externally visible.
2667 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
2669 * xterm.c (expose_line): Handle exposure of top-lines.
2671 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
2672 if mouse_face_mouse_frame is null.
2674 * xdisp.c (redisplay_window): If window is echo_area_window,
2675 and update_mode_line is set, update menubar and toolbar.
2677 * dispnew.c (space_glyph): Set its charpos to -1.
2678 (update_frame_1): Ignore trailing padding spaces.
2680 * xdisp.c (next_element_from_c_string): Set position of padding
2683 1999-06-27 Gerd Moellmann <gerd@gnu.org>
2685 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
2688 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
2689 (set_cursor_from_row): Skip over glyphs having a null object at
2691 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
2693 (handle_invisible_prop): Compute next change only when needed.
2694 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
2697 1999-06-26 Gerd Moellmann <gerd@gnu.org>
2699 * xrdb.c (x_load_resources): Don't set resource for double-click
2702 * xdisp.c (try_window_id): Return quickly if all changes are
2703 below the window's current matrix end.
2705 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
2708 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
2709 in desired not in current matrix.
2710 (try_window_reusing_current_matrix): Rotate matrices starting
2711 at start_vpos instead of 0.
2713 * xterm.c (expose_window): Use window_text_bottom_y.
2714 (fast_find_position): Ditto.
2716 * xdisp.c (redisplay_window): Use window_text_bottom_y.
2717 (try_window_reusing_current_matrix): Ditto.
2718 (get_last_unchanged_at_beg_row): Ditto.
2719 (init_iterator): Ditto.
2721 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
2723 (check_matrix_invariants): Use window_text_bottom_y.
2724 (update_window): Ditto.
2725 (scrolling_window): Ditto.
2727 * xdisp.c (window_text_bottom_y): New.
2729 1999-06-25 Gerd Moellmann <gerd@gnu.org>
2731 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
2732 clearing mouse face.
2733 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
2734 event.xcrossing.focus is not set, and focus is in the menu bar,
2735 set focus frame as if event.xcrossing.focus were set.
2737 1999-06-24 Gerd Moellmann <gerd@gnu.org>
2739 * keyboard.c (make_lispy_event): Handle mouse on top lines.
2740 * keyboard.c (make_lispy_movement): Ditto.
2742 * window.c (coordinates_in_window): Return 4 if on top line.
2743 (Fcoordinates_in_window_p): Return `top-line' if on top line.
2745 * xdisp.c (window_box_height): Subtract top line height.
2746 (window_box): Add top line height to top y position if top line
2748 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
2749 the top line row of the window. Set initial y-position to
2750 window's top line height plus delta.
2751 (start_display): Choose start glyph row depending on whether
2752 window has a top line.
2753 (try_scrolling): Take top line height into account for aggressive
2755 (compute_window_start_on_continuation_line): Take top line into
2757 (redisplay_window): Ditto. If top line height has changed,
2758 trigger a new redisplay.
2759 (try_window_reusing_current_matrix): Take top line into account.
2760 (find_last_row_displaying_text): Ditto.
2761 (get_last_unchanged_at_beg_row): DItto.
2762 (try_window_id): Ditto.
2763 (compute_line_metrics): Ditto.
2765 * dispnew.c (shift_glyph_matrix): Compute visible row height
2766 taking top line of window into account.
2767 (update_window): Update top line. If scrolling_window detects
2768 that all rows are equal, only set cursor.
2769 (update_window_line): Call after_update_window_line_hook if
2770 mode_line_p flag of rows has changed.
2771 (scrolling_window): Add parameter top_line_p. Return -1 if
2773 (mode_line_string): Add parameter mode_line_p. Handle strings
2776 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
2777 (MATRIX_FIRST_TEXT_ROW): New.
2778 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
2779 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
2780 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
2781 (MATRIX_TOP_LINE_HEIGHT): New.
2782 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
2783 (CURRENT_TOP_LINE_HEIGHT): New.
2784 (DESIRED_TOP_LINE_HEIGHT): New.
2785 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
2786 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
2787 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
2788 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
2790 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
2792 (x_draw_row_bitmaps): Take top line into account when clearing
2794 (x_estimate_mode_line_height): Replacement for
2795 x_frame_mode_line_height.
2796 (x_get_glyph_string_clip_rect): Take top line into account.
2797 (x_clear_end_of_line): Ditto.
2798 (note_mode_line_highlight): Add parameter mode_line_p. Handle
2800 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
2801 (x_erase_phys_cursor): Take top line into account.
2803 * xdisp.c (window_box_height): Subtract top line height if
2804 window wants a top line.
2805 (display_mode_lines): New.
2806 (redisplay_window): Call it.
2807 (display_mode_line): Add parameters face_id and format.
2809 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
2810 (MATRIX_TOP_LINE_HEIGHT): New.
2812 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
2814 * term.c (estimate_mode_line_height): Renamed from
2815 frame_mode_line_height. Add parameter face_id.
2816 (estimate_mode_line_height_hook): Renamed from
2817 frame_mode_line_height_hook.
2818 (produce_special_glyphs_hook): Removed.
2819 (produce_glyphs_hook): Removed.
2821 1999-06-23 Gerd Moellmann <gerd@gnu.org>
2823 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
2824 (struct glyph_row): Add mode_line_p.
2826 * xfaces.c (realize_basic_faces): Realize face `top-line'.
2828 (syms_of_xfaces): Initialize Qtop_line.
2830 * dispextern.h (TOP_LINE_FACE_ID): New.
2832 * buffer.c (init_buffer_once): Set default for
2833 top_line_format to nil.
2834 (init_buffer_once): Init top_line_format.
2835 (default-top-line-format): New.
2836 (top-line-format): New buffer-local variable.
2838 * buffer.h: Add top_line_format.
2840 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
2842 1999-06-17 Dave Love <fx@gnu.org>
2844 * xfns.c: Move the PNG section before the JPEG one to avoid
2845 problems surrounding setjmp.h/png.h on GNU/Linux.
2847 1999-06-17 Gerd Moellmann <gerd@gnu.org>
2849 * xfns.c (x_kill_gs_process): Don't free colors.
2851 1999-06-17 Dave Love <fx@gnu.org>
2853 * s/gnu-linux.h: Zap spurious ~.
2855 1999-06-16 Gerd Moellmann <gerd@gnu.org>
2857 * xfns.c (gif_load): Improve multi-image support.
2859 1999-06-15 Gerd Moellmann <gerd@gnu.org>
2861 * xfns.c (gif_load): Support multi-image files.
2863 * Makefile.in (LIBGIF): Use libungif.
2865 * configure.in (HAVE_GIF): Use libungif instead of libgif
2866 because the former doesn't contain patented compression code.
2868 * xdisp.c (compute_window_start_on_continuation_line): Don't
2869 do it if line start is too far away from window start.
2871 1999-06-14 Gerd Moellmann <gerd@gnu.org>
2873 * buffer.c (init_buffer_once): Set buffer_local_flags for
2874 scroll_*_aggressively.
2875 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
2876 (init_buffer_once): Set defaults for these variables.
2877 (syms_of_buffer): Add default-scroll-*-aggressively.
2879 * buffer.h (scroll_up_aggressively): New.
2880 (scroll_down_aggressively): New.
2882 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
2883 a static PNG library.
2885 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
2886 in case it's a static library.
2888 * Makefile.in (ctagsfiles): Split so that files starting
2889 with an `x' are found before files starting with `w32'.
2892 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
2894 * xdisp.c (compute_window_start_on_continuation_line): New.
2895 (redisplay_window): Use it.
2897 (reseat_to_string): Use it.
2898 (hscroll_window_tree): Ditto.
2899 (compute_window_start_on_continuation_line): Ditto.
2900 (redisplay_window): Don't force display with a new window start.
2902 1999-06-06 Gerd Moellmann <gerd@gnu.org>
2904 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
2905 if widget not present.
2907 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
2909 1999-06-04 Gerd Moellmann <gerd@gnu.org>
2911 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
2912 value of realize_basic_faces.
2913 (load_face_font_or_fontset): Store full font name in face.
2914 (realize_default_face): Use full font name.
2916 * xlwmenu.c (make_shadow_gcs) ]emacs]: Use x_alloc_nearest_color.
2918 * xterm.c (x_produce_glyphs): Set member char_to_display.
2919 (x_append_glyph): Store char_to_display in glyphs.
2921 * dispextern.h (struct it): Add char_to_display.
2923 * xfns.c (x_set_font): Don't call face-set-after-frame-default
2924 if faces haven't been initialized.
2925 (Fx_create_frame): Call face-set-after-frame-default after
2926 faces have been initialized, and widget has been created.
2928 * puresize.h (BASE_PURESIZE): Increased.
2930 1999-06-01 Gerd Moellmann <gerd@gnu.org>
2932 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
2933 (Finternal_set_lisp_face_attribute): If frame is t when
2934 :font attribute is set, use the selected frame.
2935 (clear_face_cache): Add parameter clear_fonts_p.
2936 (Fclear_face_cache): Add optional parameter thorougly.
2938 * xfaces.c (face_numeric_value): Return -1 if symbol is not
2940 (Fclear_face_cache): New.
2941 (choose_face_fontset_font): If fontset doesn't contain font
2942 pattern for the given charset, use CHARSET_ASCII.
2943 (Finternal_set_lisp_face_attribute): Fix handling of nil
2945 (Finternal_set_lisp_face_attribute): Fix handling of changing
2946 font-related face attributes of the default face.
2947 (set_lface_from_font_name): Set only attributes that aren't
2950 1999-05-31 Gerd Moellmann <gerd@gnu.org>
2952 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
2954 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
2955 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
2956 scalable fonts depending on the setting of SCALABLE_FONTS.
2957 (first_font_matching): List more than one font to find the
2958 first non-scalable matching font.
2959 (sorted_font_list): Let x_face_list_fonts return scalable fonts
2960 depending on SCALABLE_FONTS.
2961 (better_font_p): New parameter compare_pt_p. If zero, don't
2962 compare point sizes of fonts.
2963 (exact_face_match_p) [SCALABLE_FONTS]: New.
2964 (build_scalable_font_name) [SCALABLE_FONTS]: New.
2965 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
2966 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
2967 (syms_of_xfaces): Add scalable-fonts-allowed.
2969 1999-05-26 Gerd Moellmann <gerd@gnu.org>
2971 * xfns.c (png_load): Let PNG lib handle gamma. Construct
2972 mask only if image contains simple transparency information.
2973 Otherwise, combine image with frame background color.
2975 * configure.in (--with-png, HAVE_PNG): New.
2977 * config.in (HAVE_PNG): New.
2979 * Makefile.in: Add PNG library.
2981 * xfns.c: Add PNG support.
2983 1999-05-25 Gerd Moellmann <gerd@gnu.org>
2985 * xdisp.c (init_xdisp): Initialize echo_area_message and
2986 previous_echo_area_message to nil.
2988 * keyboard.c (read_char): Rename local variable echo_area_message
2989 because it shadows the global one.
2991 1999-05-05 Gerd Moellmann <gerd@gnu.org>
2993 * xterm.c (note_mode_line_highlight): Restructured.
2995 * window.c (coordinates_in_window): Handle windows that don't have
2996 a mode line because their buffer's mode-line-format is nil.
2997 Recognize the mode line under x positions that correspond to
2998 flags areas and left scroll bar.
3000 1999-05-02 Dave Love <fx@gnu.org>
3002 * xterm.c (note_mouse_highlight): Separate help-echo processing
3003 from check on mouse-face so that it works generally.
3005 1999-04-21 Gerd Moellmann <gerd@gnu.org>
3007 * sound.c (Fplay_sound): Run hook play-sound-hook.
3008 (Qplay_sound_hook): New.
3010 1999-04-20 Gerd Moellmann <gerd@gnu.org>
3012 * xdisp.c (update_echo_area): Handle echo_area_message.
3014 1999-04-19 Gerd Moellmann <gerd@gnu.org>
3016 * editfns.c (Fmessage): Use message3.
3018 * print.c (printchar): Set echo_area_message to nil.
3021 * minibuf.c (read_minibuf): Reset echo message strings to nil.
3022 (Fminibuffer_completion_help): Ditto.
3024 * keyboard.c (cmd_error_internal): Set echo_areA_message.
3025 (command_loop_1): Test echo_areA_message.
3027 (record_menu_key): Set echo_area_message to nil.
3028 (Fexecute_extended_command): Test echo_area_message.
3029 (Fexecute_extended_command): Handle echo_area_message.
3031 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
3034 * editfns.c (Fcurrent_message): If echo_area_message is set,
3035 return a substring of that string.
3037 * dispnew.c (direct_output_for_insert): Test echo_area_message
3038 in addition to echo_area_glyphs.
3039 (set_window_cursor_after_update): Ditto.
3040 (update_frame_1): Ditto.
3042 * alloc.c (Fgarbage_collect): Use message3_nolog to display
3043 old Lisp message string.
3045 * xdisp.c (echo_area_message): New.
3046 (previous_echo_area_message): New.
3047 (syms_of_xdisp): Initialize and staticpro new variables.
3048 (echo_area_display): Display echo_area_message if set.
3049 (message2_nolog): Set echo_area_message and
3050 previous_echo_area_message.
3051 (echo_area_display): Set previous_echo_area_message.
3052 (redisplay_internal): Display echo area if echo_area_message
3053 or previous_echo_area_message are set.
3054 (redisplay_preserve_echo_area): Test/set echo_area_message and
3055 previous_echo_area_message.
3056 (redisplay_window): Test echo_area_message.
3057 (message3_nolog): New.
3060 * editfns.c (Fformat): Add text properties to the result string
3061 from properties of the format string and properties of string
3064 * textprop.c (text_property_list): New.
3065 (add_text_properties_from_list): New.
3066 (extend_property_ranges): New.
3068 1999-03-29 Gerd Moellmann <gerd@gnu.org>
3070 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
3071 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
3072 Use these symbols for the box face attribute instead of the
3075 1999-03-12 Gerd Moellmann <gerd@gnu.org>
3077 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
3078 Correct wrong test for slant.
3080 1999-03-10 Gerd Moellmann <gerd@gnu.org>
3082 * xfaces.c: Use `unspecified' for unspecified face attributes,
3083 use t and nil for on/off.
3085 1999-03-06 Gerd Moellmann <gerd@gnu.org>
3087 * buffer.c (syms_of_buffer): Extend doc string of
3090 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
3091 (first_font_matching): New.
3092 (set_lface_from_font_name): Use it if font name is a pattern.
3093 (font_field_wildcard_p): Removed.
3095 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
3096 Recompute visible height of rows.
3098 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
3099 Don't accept non-strings for help-echo from overlays.
3101 1999-03-04 Dave Love <fx@gnu.org>
3103 * xterm.c (note_mouse_highlight): Check overlays for help-text
3105 (XTread_socket): Fix compiler warning.
3107 1999-03-05 Gerd Moellmann <gerd@gnu.org>
3109 * xterm.c (note_mouse_highlight): Don't restrict number of
3110 overlay to 10. Call overlays_at so that it doesn't try to
3113 * xdisp.c (compute_line_metrics): Compute glyph row's visible
3116 * dispnew.c (row_equal_p): Compare visible row height, only.
3117 (update_text_area): Draw whole line if visible heights of
3119 (update_window_line): Call after_update_window_line_hook
3120 if visible row height has changed.
3122 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
3123 (struct glyph_row): New member visible_height.
3125 * xfaces.c (font_field_wildcard_p): New.
3126 (set_lface_from_font_name): Remove parameter force_p. Accept
3127 font names containing wildcards.
3129 1999-03-04 Gerd Moellmann <gerd@gnu.org>
3131 * xterm.c (x_after_update_window_line): Clear internal border
3132 when windows_or_buffers_changed.
3134 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
3135 buffer has a nil mode_line_format.
3137 1999-03-03 Gerd Moellmann <gerd@gnu.org>
3139 * xterm.c (x_setup_relief_colors): Use either background color
3142 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
3144 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
3146 * xterm.c (x_draw_box_rect): New.
3147 (x_draw_glyph_string_box): Renamed from
3148 x_draw_glyph_string_relief. Call x_draw_box_rect.
3150 * xfns.c (QCrelief): New.
3151 (syms_of_xfns): Initialize it.
3153 * dispextern.h (struct glyph): Rename left_shadow_p to
3154 left_box_line_p, right_shadow_p to right_box_line_p.
3155 (MAX_RELIEF_THICKNESS): Removed.
3156 (struct it): Rename members having `relief' in their names
3157 to contain `box' instead.
3159 * xfaces.c (realize_x_face): Handle new box attribute values.
3160 (QCrelief, Qbox): Removed.
3161 (QCshadow, QCcolor, Qraised, Qsunken): New.
3162 (syms_of_xfaces): Initialize new symbols.
3164 1999-03-02 Gerd Moellmann <gerd@gnu.org>
3166 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
3168 * xfaces.c (LFACE_RELIEF): Removed.
3169 (merge_face_vector_with_property): Remove handling of `:relief'.
3170 (Finternal_set_lisp_face_attribute): Ditto.
3171 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
3172 (Finternal_get_lisp_face_attribute): Ditto.
3173 (realize_default_face): Ditto.
3174 (lface_hash): Don't compute hash from relief.
3176 * dispextern.h (struct face): Replace member `relief' by
3177 `box_line_width'. Add member `box'.
3178 (face_box_type): New.
3180 * xterm.c (x_produce_glyphs): If face has overline, add overline
3181 thickness + 1 to ascent.
3183 1999-03-01 Gerd Moellmann <gerd@gnu.org>
3185 * xterm.c (x_draw_glyph_string): Draw underline, overline,
3186 strike-through, and boxes.
3187 (x_draw_glyph_string_underline): Removed.
3189 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
3190 (Qoverline, Qstrike_through, Qbox): New.
3191 (syms_of_xfaces): Define these symbols.
3192 (check_lface_attrs): Add checks for overline, strike-through,
3194 (Finternal_set_lisp_face_attribute): Set new attributes.
3195 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
3196 (load_color): Handle new attributes.
3197 (realize_x_face): Ditto.
3198 (merge_face_vector_with_property): Ditto.
3199 (free_face_colors): Ditto.
3200 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
3201 (Finternal_get_lisp_face_attribute): Ditto.
3202 (Finternal_lisp_face_attribute_values): Ditto.
3204 * dispextern.h (lface_attribute_index): Add enumerators for
3205 overstrike, strike-through, and box.
3206 (struct face): Add members for overline, strike-through, and
3209 1999-02-17 Dave Love <fx@gnu.org>
3211 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
3212 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
3215 1999-02-16 Gerd Moellmann <gerd@gnu.org>
3217 * keyboard.c (toolbar_items): Call access_keymap with third
3218 parameter 1, so that we don't get inherited toolbar item
3221 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
3222 the window end vpos when in empty first line of window.
3224 1999-02-15 Gerd Moellmann <gerd@gnu.org>
3226 * xfaces.c (set_font_frame_param): New.
3227 (Finternal_set_lisp_face_attribute): Call it.
3229 Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
3231 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
3232 Accept specifications of color for underline.
3234 1999-02-13 Gerd Moellmann <gerd@gnu.org>
3236 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
3237 `frame' is t, operate on face defaults for new frames. If it
3238 is nil, operate on the selected frame.
3240 1999-02-12 Gerd Moellmann <gerd@gnu.org>
3242 * dispnew.c (check_matrix_invariants): Put it in #if 0.
3243 (update_window): Put the call to check_matrix_invariants in #if 0.
3245 Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
3247 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
3248 Remove definition of UNDERLINE_COLOR.
3250 Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
3252 * xfaces.c (free_face_colors): Free the color for underline.
3254 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
3257 Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
3259 * dispextern.h (UNDERLINE_COLOR): Defined.
3260 (struct face): Added two new members.
3261 underline_color, underline_defaulted_p.
3263 * xfaces.c (merge_face_vector_with_property):
3264 (check_lface_attrs): Accept the string value for underline.
3265 (Finternal_set_lisp_face_attribute): Likewise.
3267 * xfaces.c (load_color): Change the last argument type to enum
3268 lface_attribute_index from int. And addec code for underling coloring.
3269 (load_face_colors): Pass LFACE_*_INDEX to load_color.
3271 1999-02-12 Gerd Moellmann <gerd@gnu.org>
3273 * xfns.c (Fx_image_header): Removed.
3275 1999-02-07 Gerd Moellmann <gerd@gnu.org>
3277 * xterm.c: Don't include <bitmaps/gray>.
3278 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
3280 * xfns.c (Fx_image_header): Add missing `\n\'.
3281 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
3283 1999-02-01 Gerd Moellmann <gerd@gnu.org>
3285 * xterm.c (x_scroll_bar_create): Set background pixel from
3286 specified scroll bar color.
3287 (x_scroll_bar_set_handle): Use scroll bar foreground color.
3289 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
3290 (x_set_scroll_bar_background): Ditto.
3292 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
3294 * xfns.c (x_default_scroll_bar_color_parameter): New.
3295 (Fx_create_frame): Call it.
3297 1999-01-31 Gerd Moellmann <gerd@gnu.org>
3299 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
3300 values in x_output structure.
3301 (Qscroll_bar_foreground, Qscroll_bar_background): New.
3302 (syms_of_xfns): Initialize these symbols.
3304 * xterm.h (struct x_output): Add scroll bar pixel colors.
3306 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
3307 (x_set_scroll_bar_foreground): New.
3308 (x_set_scroll_bar_background): New.
3310 * xlwmenu.c (all_dashes_p): Removed.
3311 (size_menu_item): Call lw_separator_p.
3312 (display_menu_item): Ditto.
3313 (display_menu): Ditto.
3314 (draw_separator): New.
3315 (display_menu_item): Call it.
3316 (separator_height): New.
3317 (size_menu_item): Call it.
3319 * lwlib-Xm.c (all_dashes_p): Removed.
3320 (make_menu_in_widget): Use lw_separator_p. Set Motif separator
3323 * lwlib.c (lw_separator_p): New.
3325 * lwlib.h (enum menu_separator): New.
3327 1999-01-12 Gerd Moellmann <gerd@gnu.org>
3329 * xdisp.c (handle_single_display_prop): New.
3330 (handle_display_prop): Call it.
3331 (handle_raise_prop): Removed.
3332 (handle_height_prop): Removed.
3333 (handle_space_width_prop): Removed.
3334 (handle_face_prop): Remove handling of raised text.
3335 (handle_display_prop): Do it here.
3337 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
3338 (RAISE_PROP_IDX): Removed.
3339 (HEIGHT_PROP_IDX): Removed.
3340 (SPACE_WIDTH_PROP_IDX): Removed.
3342 * xdisp.c (Qdisplay): Replaces Qglyph.
3343 (handle_display_prop): Formerly handle_glyph_prop.
3345 1999-01-11 Gerd Moellmann <gerd@gnu.org>
3347 * xdisp.c (reseat_to_string): Set position in display vector to -1.
3348 (handle_stop): Set position in display vector to -1. Don't
3349 check overlay strings when set up to deliver characters from a
3351 (set_iterator_to_next): At the end of a run of characters from a
3352 display vector, check whether the display vector display replaces
3353 the display of a character.
3355 1999-01-05 Gerd Moellmann <gerd@gnu.org>
3357 * xfaces.c (init_frame_faces): Don't realize faces if frame's
3358 X window hasn't been created yet.
3360 1998-12-06 Gerd Moellmann <gerd@gnu.org>
3364 1998-12-04 Gerd Moellmann <gerd@gnu.org>
3366 * config.in (HAVE_SOUND): New.
3368 * emacs.c (main): Call syms_of_sound and init_sound.
3370 * Makefile.in (obj): Add sound.o.
3372 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
3374 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
3375 (HAVE_SYS_SOUNDCARD_H): New.
3377 1998-12-03 Gerd Moellmann <gerd@gnu.org>
3379 * buffer.h (struct buffer): indicate_empty_lines renamed from
3382 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
3383 (default-indicate-zv-lines): Likewise.
3385 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
3386 to indicate_empty_line_p.
3388 * xdisp.c (reseat_at_next_visible_line_start): Reset method
3389 to next_element_from_buffer.
3391 * frame.c (make_frame): Set n_current_toolbar_items to 0.
3393 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
3396 * xfns.c (xbm_scan): New.
3397 (xbm_read_hexint): Removed.
3398 (xbm_read_bitmap_file_data): Use xbm_scan.
3400 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
3402 1998-12-02 Gerd Moellmann <gerd@gnu.org>
3404 * xfns.c (xbm_read_hexint): New.
3405 (xbm_read_bitmap_file_data): New.
3406 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
3407 instead of XReadBitmapFileData.
3409 * xdisp.c (handle_raise_prop): Compute voffset from current font.
3411 * xfaces.c (face_with_height): New.
3413 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
3414 (eval_form): Renamed from eval_mode_element.
3415 (handle_face_prop): Use it.
3416 (Qheight): Replaces Qsmaller.
3417 (handle_height_prop): Replaces handle_smaller_prop.
3418 (handle_face_prop): If iterator's font_height is not an
3419 integer, evaluate it to get the font height to use.
3421 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
3422 (struct it): Use `font_height' instead of `smaller'.
3424 1998-12-01 Gerd Moellmann <gerd@gnu.org>
3426 * xdisp.c (reseat_1): New.
3428 (move_it_vertically_backward): Ditto.
3429 (redisplay_window): Don't abort when cursor not found in recenter.
3431 1998-11-30 Gerd Moellmann <gerd@gnu.org>
3433 * xdisp.c (reseat_at_next_visible_line_start): When not
3434 currently delivering display elements from the current buffer,
3435 restore buffer position first.
3436 (init_from_display_pos): Don't set IT's position from the
3437 position passed to this function.
3439 1998-11-28 Gerd Moellmann <gerd@gnu.org>
3441 * config.in (PROTO): Removed.
3443 * xterm.h: Change PROTO to P_.
3445 1998-11-26 Gerd Moellmann <gerd@gnu.org>
3447 * xterm.c (take_vertical_position_into_account): New.
3448 (x_produce_image_glyph): Call it.
3449 (x_produce_stretch_glyph): Ditto.
3450 (x_produce_glyphs): Ditto.
3451 (x_fill_glyph_string): Adjust base line for glyph's voffset.
3452 (x_fill_composite_glyph_string): Ditto.
3453 (x_fill_image_glyph_string): Ditto.
3454 (x_fill_stretch_glyph_string): Ditto.
3456 * xdisp.c (display_line): Always compute row height from
3457 max_ascent and max_descent.
3459 * dispextern.h (struct glyph): Add voffset.
3460 (struct it): Replace height by descent, max_height by max_descent.
3462 * xterm.c (x_append_glyph): Set voffset
3463 (x_append_stretch_glyph): Ditto.
3464 (x_produce_image_glyph): Ditto.
3465 (x_produce_glyphs): Take voffset into account.
3466 (x_produce_image_glyph): Ditto.
3467 (x_produce_stretch_glyph): Ditto.
3469 * dispextern.h (struct it): Add voffset.
3470 * xdisp.c (push_it): Save voffset.
3471 (pop_it): Restore it.
3473 * xdisp.c (it_props): Add entry for `raise'.
3474 (handle_raise_prop): New.
3476 * dispextern.h (RAISE_PROP_IDX): New.
3478 * xdisp.c (Qraise): New.
3479 (syms_of_xdisp): Define Qraised.
3481 * xterm.c (x_scroll_bar_move): Clear to the left and right
3482 of toolkit scroll bars differently.
3483 (x_scroll_bar_move): Removed.
3484 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
3486 * dispextern.h: Make it compilable --with-x=no.
3490 * keyboard.c: Ditto.
3497 1998-11-25 Gerd Moellmann <gerd@gnu.org>
3499 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
3501 1998-11-24 Gerd Moellmann <gerd@gnu.org>
3503 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
3504 update slider size, only.
3505 (xm_scroll_callback): Set dragging member of the scroll bar.
3506 (xt_action_hook): Reset last_scroll_bar_part.
3507 (XTredeem_scroll_bar): Reset bar->dragging to nil.
3509 * xlwmenu.c (abort_gracefully): New.
3510 (display_menu): Use it instead of abort.
3513 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
3514 window on newly created frames that don't have one.
3516 1998-11-23 Gerd Moellmann <gerd@gnu.org>
3518 * xdisp.c (restore_overlay_strings): Removed.
3519 (restore_dpvec): Removed.
3520 (init_from_display_pos): Inline both functions above.
3522 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
3523 (parse_image_spec): Handle it.
3524 (xbm_format): Use it.
3525 (xpm_format): Ditto.
3526 (pbm_format): Ditto.
3527 (jpeg_format): Ditto.
3528 (tiff_format): Ditto.
3529 (gif_format): Ditto.
3532 * xdisp.c (set_window_cursor): Removed.
3533 (redisplay_internal): Case cursor motion in cursor line of
3534 selected window; use set_cursor_from_row.
3536 1998-11-22 Gerd Moellmann <gerd@gnu.org>
3538 * widget.c (EmacsFrameSetCharSize): Take widget's border width
3541 1998-11-21 Gerd Moellmann <gerd@gnu.org>
3543 * xterm.c (expose_frame): Redraw menu bar window.
3545 * xdisp.c (display_menu_bar): Record hpos instead of x-position
3548 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
3549 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
3551 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
3552 to determine vertical_scroll_bar_extra.
3553 (EmacsFrameSetCharSize): Ditto.
3554 * xfns.c (x_figure_window_size): Ditto.
3556 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
3557 (x_draw_bitmap): Ditto.
3559 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
3560 * xfaces.c (realize_basic_faces): Realize it.
3562 1998-11-20 Gerd Moellmann <gerd@gnu.org>
3564 * xmenu.c (xmenu_show): Add workaround for remaining button grab
3565 under LessTif Use the widget of the frame as parent for the
3568 1998-11-19 Gerd Moellmann <gerd@gnu.org>
3570 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
3571 When EnterNotify, don't generate a mouse movement event if
3572 notification is from a busy-cursor child window.
3574 * xterm.h (struct x_output): Add busy_window, remove cursor.
3576 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
3577 Use a transparent window to display the busy-cursor.
3578 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
3580 1998-11-17 Gerd Moellmann <gerd@gnu.org>
3582 * xdisp.c (check_window_end): New, for debugging.
3583 (CHECK_WINDOW_END): New.
3584 (try_window_id): Use it.
3586 * xterm.c (process_expose_from_menu): Return int.
3588 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
3589 TOOLBAR_EVENT events in last_nonmenu_event.
3591 1998-11-16 Gerd Moellmann <gerd@gnu.org>
3593 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
3594 window end isn't reliable, so set window_end_valid to nil.
3595 (redisplay_internal): If overlay arrow has changed, set
3596 windows_or_buffers_changed to redisplay thoroughly.
3598 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
3601 * xfns.c (file_dialog_cb): New.
3602 (Fx_file_dialog): New.
3603 * fileio.c (Fread_file_name): Call it.
3605 * xrdb.c (x_load_resources): Add default resoures for file
3608 1998-11-14 Gerd Moellmann <gerd@gnu.org>
3610 * xterm.c (note_mouse_highlight): Don't highlight when popup
3613 * xlwmenu.c (xlwMenuResources): Change previously unused
3615 (size_menu): Take margin into account.
3616 (display_menu_item): Ditto.
3617 (remap_menubar): Ditto.
3618 (draw_arrow): Draw it 3D.
3620 * keyboard.c (timer_check): Inhibit busy cursor around calls to
3621 timer-event-handler. This busy cursor tends to be anoying if
3622 fontifying stealthily.
3624 * dispnew.c (direct_output_for_insert): Give up if current row
3625 contains trailing whitespace.
3627 1998-11-13 Gerd Moellmann <gerd@gnu.org>
3629 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
3631 * xdisp.c (handle_fontified_prop): New.
3632 (Vfontification_functions): New.
3633 (Qfontification_functions): New.
3634 (it_props): Add handle_fontified_prop.
3636 1998-11-12 Gerd Moellmann <gerd@gnu.org>
3638 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
3639 Otherwise, under LessTif, after the popup has gone, all button
3640 press events come in for the frame's widget, and release events
3641 come in for the edit_widget.
3642 * xterm.c (XTread_socket): Remove workaround for that problem.
3643 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
3644 XmScrollBarSetValues.
3645 (SET_SAVED_MENU_EVENT): Give it statement form.
3647 * lwlib-Xm.c (make_menu_in_widget): Set alignment of menu
3648 title after all widgets have been created.
3650 * xfaces.c (display_message): If waiting_for_input, don't display
3653 * window.c (scroll_command): If not acting on current_buffer,
3654 make redisplay consider all windows.
3656 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
3658 * xdisp.c (handle_glyph_prop): Set it->object for images to
3659 the object having the glyph property.
3661 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
3664 1998-11-11 Gerd Moellmann <gerd@gnu.org>
3666 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
3667 (x_term_init): Create the gray pixmap.
3668 (x_setup_relief_color): Use it.
3669 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
3670 internal border at the top of a frame.
3671 (x_init_glyph_string): Likewise.
3672 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
3674 (XTflash): Don't flash the toolbar window.
3676 * xterm.c (XTread_socket): Workaround for LessTif popup menus
3677 in case of ButtonPress events.
3679 1998-11-10 Gerd Moellmann <gerd@gnu.org>
3681 * xrdb.c (x_load_resources): Add grey background colors as
3682 defaults for menus, scroll bars, and dialogs.
3684 * insdel.c (prepare_to_modify_buffer): Move setting
3685 windows_or_buffers_changed from modify_region here.
3687 * xfns.c (Fx_show_tip): Inhibit redisplay.
3688 (Fx_hide_tip): Ditto.
3689 (Fx_image_header): New.
3691 1998-11-09 Gerd Moellmann <gerd@gnu.org>
3693 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
3694 when clearing current window matrices.
3696 1998-11-08 Gerd Moellmann <gerd@gnu.org>
3698 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
3699 position from a string position. Use the right end position
3700 if the property spans a whole overlay string.
3702 1998-11-07 Gerd Moellmann <gerd@gnu.org>
3704 * xmenu.c (menubar_selection_callback): Remove workaround for
3705 Lesstif not calling XmNpopdownCallback because it doesn't
3706 handle the case where users don't select any menu item.
3708 * xlwmenu.c (toggle_button_width): Renamed from
3709 toggle_or_radio_button_width.
3710 (radio_button_width): New.
3711 (size_menu_item): Use new functions.
3712 (draw_shadow_rhombus): New.
3713 (draw_radio): Use radio_button_width and draw_shadow_rhombus.
3714 (draw_toggle): Use toggle_button_width.
3716 * insdel.c (modify_region): Set windows_or_buffers_changed.
3718 * buffer.c (set_buffer_internal): Don't set
3719 windows_or_buffers_changed.
3721 * lwlib-Xm.c (xm_update_toggle): Add callback xm_generic_callback
3722 instead of xm_internal_update_other_instances.
3724 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
3726 * lwlib-Xm.c (make_menu_in_widget): Do help button before managing
3727 children to get it to the right place.
3728 (make_menu_in_widget): Create toggle buttons.
3729 (update_one_menu_entry): Update toggle buttons.
3731 * xmenu.c (menubar_selection_callback): Add workaround for
3732 Lesstif not calling XmNpopdownCallback.
3734 * xdisp.c (eval_mode_element): New.
3735 (eval_mode_handler): New.
3736 (display_mode_element): Use eval_mode_element.
3738 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
3739 Remove code looking at text props of default value.
3741 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
3743 * xlwmenu.c (size_menu_item): Add parameter button_width.
3744 (size_menu): Compute button_width.
3745 (toggle_or_radio_button_width): New.
3748 (draw_shadow_rectangle): Add parameter `down_p'.
3750 * xlwmenuP.h (_window_state): Add button_width.
3752 1998-11-06 Gerd Moellmann <gerd@gnu.org>
3754 * xmenu.c (single_submenu): Set button_type of menu to
3756 (single_submenu): Likewise for panes and menu items.
3757 (set_frame_menubar): Set button_type of menu bar to none.
3758 (xmenu_show): Likewise.
3759 (single_submenu): Set widget values selected slot.
3760 (xmenu_show): Likewise.
3762 * lwlib.c (merge_widget_value): Handle button_type.
3763 (copy_widget_value_tree): Copy button_type.
3765 * lwlib.h (enum button_type): New.
3766 (_widget_value): New member button_type.
3768 * xmenu.c (push_menu_item): Add parameters `type' and
3769 `selected'. Store it in menu_items.
3770 (MENU_ITEMS_ITEM_TYPE): New.
3771 (MENU_ITEMS_ITEM_SELECTED): New.
3772 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
3774 * xfns.c (clear_image_cache): Get the current time, before
3776 (cache_image): Set prev pointer of next image.
3777 (clear_image_cache): Clear current matrices if any image was
3780 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
3782 * xfns.c (x_set_cursor): New.
3783 (Fx_display_busy_cursor): New.
3784 (Fx_undisplay_busy_cursor): New.
3786 * xterm.h (struct x_output): Add busy_cursor.
3788 * xfns.c (Vx_busy_pointer_shape): New.
3789 (x_set_mouse_color): Create busy cursor.
3791 * process.c (wait_reading_process_input): Show and hide busy
3794 * keyboard.c (command_loop_1): Display busy cursor.
3796 * eval.c (Fsignal): Hide busy cursor.
3798 * buffer.c (set_buffer_internal): Don't set
3799 windows_or_buffers_changed.
3801 * xterm.c (redo_mouse_highlight): New.
3803 1998-11-04 Gerd Moellmann <gerd@gnu.org>
3805 * lwlib-Xm.c (make_menu_in_widget): Test for menubar widgets
3806 using XmNrowColumnType.
3808 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
3809 (x_build_heuritic_mask): New.
3810 (lookup_image): Call it.
3812 * xterm.c (note_toolbar_highlight): Always set up help_echo.
3813 (previous_help_echo): New.
3814 (XTread_socket): Generate help event with nil message when
3815 leaving a region with help-echo.
3816 (note_mouse_highlight): Handle `help-echo' over text.
3817 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
3819 (clear_mouse_face): Don't clear if tooltip is shown.
3820 (XTread_socket): Redo mouse-highlight after tooltip is gone.
3821 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
3823 * keyboard.c (Vshow_help_function): New.
3824 (read_char): Use it.
3826 1998-11-03 Gerd Moellmann <gerd@gnu.org>
3828 * xfns.c (x_create_tip_frame): New.
3832 * xterm.c (x_destroy_window): Handle case that we don't have
3835 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
3836 to full_width_p. Add internal_border_p.
3838 1998-11-02 Gerd Moellmann <gerd@gnu.org>
3840 * xterm.c (note_mode_line_highlight): Check the charpos of
3841 the glyph under the mouse pointer before accessing text
3842 properties at that position.
3844 1998-11-01 Gerd Moellmann <gerd@gnu.org>
3846 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
3848 * xdisp.c (auto-raise-toolbar-buttons): New.
3849 (build_desired_toolbar_string): Handle the flag.
3850 (toolbar-button-margin): New.
3851 (toolbar-button-relief): New.
3852 (build_desired_toolbar_string): Use margin and relief.
3854 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
3856 (note_mode_line_highlight): New.
3857 (note_mouse_highlight): Call it.
3859 1998-10-31 Gerd Moellmann <gerd@gnu.org>
3861 * s/freebsd.h (NARROWPROTO): New.
3863 * xdisp.c (display_string): New parameter face_string.
3864 (display_mode_element): When displaying a symbol with a string
3865 value, use text properties from the symbol's default value, maybe.
3867 * xrdb.c (x_load_resources): Add font defaults for menus and
3870 1998-10-30 Gerd Moellmann <gerd@gnu.org>
3872 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
3874 1998-10-29 Gerd Moellmann <gerd@gnu.org>
3876 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
3877 produced for characters with codes < 32 under certain
3880 * xdisp.c (redisplay_window): Handle values of PT in front
3881 of invisible, intangible text.
3882 (try_window_id): Set overlay_arrow_seen to zero before
3884 (display_mode_element): Assign to glyphs written for a mode
3885 line spec `%x' as object the Lisp format string, as position
3886 the position of the `%' in that string.
3887 (display_string): If displaying a C string, optionally get
3888 the face to use from a Lisp string.
3890 * xterm.c (expose_window_tree): Include mode line height.
3892 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
3894 1998-10-27 Gerd Moellmann <gerd@gnu.org>
3896 * xterm.c (note_mouse_highlight): Change mouse pointer shape
3899 1998-10-26 Gerd Moellmann <gerd@gnu.org>
3901 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
3903 * xdisp.c (redisplay_window): If mode line height has changed,
3904 arrange for a thorough immediate redisplay using the correct mode
3906 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
3908 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
3909 (CURRENT_MODE_LINE_HEIGHT): New.
3910 (DESIRED_MODE_LINE_HEIGHT): New.
3912 * keyboard.c (make_lispy_event): Add string and string position
3913 info to mouse-click events.
3914 (read_key_sequence): Handle `local-map' property of mode line
3917 * keyboard.h (POSN_STRING): New.
3919 1998-10-25 Gerd Moellmann <gerd@gnu.org>
3921 * dispnew.c (mode_line_string): Mew.
3923 * xterm.c (xt_action_hook): New.
3924 (x_create_toolkit_scroll_bar): Add action hook.
3925 (xm_scroll_callback): Implement dragging.
3927 * keyboard.c (Qend_scroll): New.
3928 (scroll_bar_parts): Add it.
3930 * termhooks.h (scroll_bar_end_scroll): New.
3932 * xterm.c (XTread_socket): Bug fix.
3934 1998-10-24 Gerd Moellmann <gerd@gnu.org>
3936 * xdisp.c (redisplay_window): Finish scroll bars after
3937 redisplaying toolbar.
3939 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
3940 (syms_of_keyboard): Add Qbottom.
3942 * termhooks.h (scroll_bar_to_top): New.
3943 (scroll_bar_to_bottom): New.
3945 * xdisp.c (redisplay_window): Always resize toolbar window if
3946 auto_resize_toolbar_p is non-zero.
3947 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
3949 (window_box_height): New.
3950 (window_box_width): New.
3951 (window_box_left): New.
3952 (window_box_right): New.
3953 (window_box_edges): New.
3955 1998-10-23 Gerd Moellmann <gerd@gnu.org>
3957 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
3958 XawScrollbarSetThumb in FreeBSD.
3959 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
3962 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
3965 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
3966 (x_term_init): Initialize it.
3968 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
3970 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
3973 1998-10-22 Gerd Moellmann <gerd@gnu.org>
3975 * keyboard.c (make_lispy_event): Handle scroll_bar_click
3976 differently when using toolkit scroll bars.
3978 * xterm.c (x_send_scroll_bar_event): New.
3979 (x_scroll_bar_to_input_event): New.
3980 (xaw3d_scroll_callback): New.
3981 (xaw3d_jump_callback): New.
3982 (xm_scroll_callback): New.
3983 (x_toolkit_scroll_p): New.
3984 (XTread_socket): Handle scroll bar client message.
3985 (x_term_init): Initialize Xatom_Scrollbar.
3986 (x_scroll_bar_create): Set cursor.
3987 (xm_scroll_callback):
3988 (x_create_toolkit_scroll_bar): New.
3989 (x_set_toolkit_scroll_bar_thumb): New.
3990 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
3991 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
3993 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
3995 1998-10-21 Gerd Moellmann <gerd@gnu.org>
3997 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
3998 (XTread_socket): Don't handle mouse button events for scroll bars
3999 if using toolkit scroll bars.
4000 (XTset_vertical_scroll_bar): Set thumb size and position for
4003 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
4005 * xterm.c (XTread_socket): Dispatch expose event to widget
4006 if using toolkit scroll bars.
4007 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
4008 (x_scroll_bar_create): Create and show a scroll bar widget
4009 if using toolkit scroll bars.
4010 (x_scroll_bar_move): Handle tookit scroll bars.
4012 * Makefile.in (LIBW): Use Xaw3d if present.
4014 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
4017 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
4020 * xterm.c (XTset_vertical_scroll_bar): Correct position of
4021 right vertical scroll bar.
4023 1998-10-20 Gerd Moellmann <gerd@gnu.org>
4025 * xfns.c (xpm_load): Support reading XPM images from string
4026 buffers containing data in the same format as an XPM file.
4027 Support `:color-symbols'.
4028 (xpm_format): Add `:data'.
4029 (xpm_keyword_index): Add XPM_DATA.
4030 (syms_of_xfns): Add `:color-symbols'.
4031 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
4032 (xpm_valid_color_symbols_p): New.
4033 (xpm_image_p): Call it.
4035 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
4036 attribute to the image if item is not enabled.
4038 * xfns.c (x_laplace): New.
4039 (x_laplace_read_row): New.
4040 (x_laplace_write_row): New.
4041 (lookup_image): Handle common image attributes here. New
4042 attribute `:algorithm'.
4044 * xfaces.c (clear_face_cache): Call clear_image_cache.
4046 * xterm.c (x_inverted_image_mask): Removed.
4047 (x_draw_image_foreground_1): New.
4048 (x_draw_image_glyph_string): Draw images with mask to a temporary
4049 pixmap to reduce flickering.
4051 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
4052 (display_toolbar_line): Remove parameter `margin'.
4054 1998-10-19 Gerd Moellmann <gerd@gnu.org>
4056 * xdisp.c (toolbar_lines_needed): New.
4057 (auto-resize-toolbars): New.
4059 * xfns.c (cache_image): Correct call to xrealloc.
4061 * dispnew.c (Fset_toolbar_height): Removed.
4063 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
4064 FRAME_MENU_BAR_LINES.
4066 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
4067 instead of FRAME_MENU_BAR_LINES.
4068 (check_frame_size): Ditto.
4070 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
4071 instead of FRAME_MENU_BAR_LINES.
4072 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
4073 (build_frame_matrix): Ditto.
4074 (change_frame_size_1): Ditto.
4076 * frame.h (FRAME_TOOLBAR_LINES): New.
4077 (FRAME_TOP_MARGIN): New.
4079 * window.c (struct save_window_data): Add frame_toolbar_lines.
4080 (Fset_window_configuration): Handle toolbar lines.
4081 (Fcurrent_window_configuration): Save toolbar lines.
4083 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
4085 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
4087 * frame.h (struct frame): Rename top_margin to toolbar_lines.
4089 * xfns.c (x_frame_parms): Add `toolbar-lines'.
4090 (x_set_toolbar_lines): New.
4092 * keyboard.c (cmd_error_internal): Bug fix.
4094 * xterm.c: Remove double include of syssignal.h.
4096 1998-10-18 Gerd Moellmann <gerd@gnu.org>
4098 * xterm.c (x_toolbar_item): New.
4099 (x_handle_toolbar_click): Use it.
4100 (note_toolbar_highlight): Use it.
4102 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
4103 and toolbar_items_vectors.
4105 * xterm.c (help_echo): New.
4106 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
4107 (x_set_glyph_string_gc): Handle them.
4108 (x_after_update_window_line): Don't do anything in pseudo-windows.
4109 (x_produce_image_glyph): Take image margin and face relief into
4111 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
4112 (x_draw_glyph_string_background): Optimize case when face has
4114 (x_setup_relief_color): Take frame instead of glyph string
4116 (x_draw_relief_rect): New.
4117 (x_draw_glyph_string_relief): Call it.
4118 (x_draw_image_glyph_string_foreground): Handle margin and image
4120 (x_draw_image_glyph_string_background): Ditto.
4121 (expose_frame): Redraw toolbar window.
4122 (expose_window): Don't draw cursor for pseudo-windows.
4123 (x_y_to_hpos_vpos): Handle pseudo-windows.
4124 (frame_to_window_pixel_xy): New.
4125 (note_mouse_highlight): Call note_toolbar_highlight.
4126 (x_handle_toolbar_click): New.
4127 (note_toolbar_highlight): New.
4128 (show_mouse_face): Change int parameter `hl' to parameter of
4129 type enum draw_glyphs_face. Handle image highlighting.
4130 (XTread_socket): Return a HELP_EVENT input event if help_echo is
4131 non-nil. Use x_handle_toolbar_click.
4133 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
4135 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
4137 (parse_image_spec): Handle them.
4138 (image_spec_value): Additional parameter found.
4139 (free_image): Remove image from the vector `images' of the
4141 (clear_image_cache): Additional parameter force_p.
4142 (Fclear_image_cache): New.
4143 (x_find_image_file): New.
4144 (xbm_load): Handle `:margin' and `:relief'. Use
4146 (xpm_load): Likewise.
4147 (pbm_load): Likewise.
4148 (jpeg_load): Likewise.
4149 (tiff_load): Likewise.
4150 (gif_load): Likewise.
4152 * keyboard.c (Qhelp_echo): New symbol.
4153 (read_char): Handle `toolbar' and `help_echo' events.
4154 (kbd_buffer_get_event): Handle HELP_ECHO input event.
4155 (make_lispy_event): Handle TOOLBAR_EVENT.
4156 (toolbar_items): New.
4157 (process_toolbar_item): New.
4159 (init_toolbar_items): New.
4160 (append_toolbar_item): New.
4161 (read_char_x_menu_prompt): Handle `toolbar' event.
4162 (read_key_sequence): Ditto.
4164 * xfaces.c (Qtoolbar): New.
4165 (realize_basic_faces): Realize `toolbar' face.
4166 (face_at_string_position): Remove parameter modeline_p, add
4169 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
4172 1998-10-17 Gerd Moellmann <gerd@gnu.org>
4174 * xdisp.c (init_iterator): Replace parameter modeline_p with
4176 (next_element_from_string): Call get_next_display_element
4177 recursively after handling text properties.
4178 (prepare_menu_bars): Call update_toolbar.
4179 (update_toolbar): New.
4180 (build_desired_toolbar_string): New.
4181 (display_toolbar_line): New.
4182 (redisplay_toolbar): New.
4183 (toolbar_item_info): New.
4184 (redisplay_window): Call redisplay_toolbar.
4185 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
4187 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
4189 (clear_desired_matrices): Ditto.
4190 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
4191 (free_glyphs): Free matrices of toolbar window.
4192 (update_frame): Update toolbar window.
4193 (change_frame_size_1): Take toolbar into account.
4194 (Fset_toolbar_height): New.
4196 * dispextern.h (struct it): Remove member modeline_p, add
4198 (struct image): Add members relief and margin.
4199 (IMAGE_ASCENT): Include margin in height.
4201 1998-10-14 Gerd Moellmann <gerd@gnu.org>
4203 * xfns.c (Fclear_image_cache): New.
4205 * xfaces.c (realize_basic_faces): Realize toolbar face.
4206 (face_at_string_position): Remove parameter modeline_p, add
4209 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
4211 1998-10-13 Gerd Moellmann <gerd@gnu.org>
4213 * keyboard.c (syms_of_keyboard): Intern `:help'.
4215 1998-10-12 Gerd Moellmann <gerd@gnu.org>
4217 * xterm.c (note_toolbar_highlight): New.
4218 (note_mouse_highlight): Call it.
4220 * window.c (window_from_coordinates): Additional parameter toolbar_p.
4221 (coordinates_in_window): Handle toolbar window.
4223 * keyboard.c (toolbar_items): New.
4224 (process_toolbar_item): New.
4225 (parse_toolbar_item): New.
4226 (init_toolbar_items): New.
4227 (append_toolbar_item): New.
4229 * dispextern.h (enum toolbar_item_idx): New.
4230 (enum toolbar_item_image): New.
4232 * frame.h (struct frame): Add toolbar-related members.
4234 * xfaces.c (face_at_string_position): Remove assertion that
4235 current_buffer == window's buffer. This is not the case when
4236 called for the toolbar window.
4238 * frame.c (make_frame): Initialize toolbar members.
4240 * alloc.c (mark_object): Mark toolbar data of frames.
4242 * frame.h (struct frame): Add toolbar-related members
4243 toolbar_window, desired_toolbar_items, current_toolbar_items,
4244 desired_toolbar_string, current_toolbar_string,
4245 n_desired_toolbar_items, n_current_toolbar_items. Add
4248 * xterm.c (x_after_update_window_line): Don't draw bitmap
4249 areas for pseudo-windows.
4250 (expose_frame): Handle toolbar window.
4251 (expose_window): Don't do cursor stuff for pseudo-windows.
4253 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
4255 1998-10-11 Gerd Moellmann <gerd@gnu.org>
4257 * frame.c (make_frame): Initialize toolbar_window.
4259 * alloc.c (mark_object): Make the toolbar window.
4261 * dispnew.c (update_frame): Update frame's toolbar_window.
4262 (clear_current_matrices): Likewise.
4263 (clear_desired_matrices): Likewise.
4264 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
4265 (free_glyphs): Free the toolbar window and its matrices.
4267 * frame.h (struct frame): Add toolbar_window.
4269 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
4272 1998-10-10 Gerd Moellmann <gerd@gnu.org>
4274 * dispnew.c (buffer_posn_from_coords): Don't screw up if
4275 window start is not in the range BEGV..ZV.
4277 1998-10-09 Gerd Moellmann <gerd@gnu.org>
4279 * xdisp.c (try_scrolling): Experimentally handle the case
4280 that scroll-preserve-screen-position is set to `always'.
4282 * window.c (Vscroll_preserve_screen_position): Replacement for
4283 scroll_preserve_screen_position.
4285 1998-10-08 Gerd Moellmann <gerd@gnu.org>
4287 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
4291 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
4293 1998-10-06 Gerd Moellmann <gerd@gnu.org>
4295 * minibuf.c (Fminibuffer_complete_word): Fix computation of
4296 i_byte when prompts are inserted into minibuffers.
4298 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
4299 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
4300 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
4302 1998-10-04 Gerd Moellmann <gerd@gnu.org>
4304 * xdisp.c (make_cursor_line_fully_visible): New.
4305 (try_scrolling): New.
4306 (redisplay_window): Move scrolling code to try_scrolling.
4307 (make_cursor_line_fully_visible): Handle case of window too small
4308 to show a single line.
4309 (redisplay_window): Case forced window start---use
4310 make_cursor_line_fully_visible.
4311 (redisplay_window): Case cursor movement via current matrix.
4312 If ending up on a partially visible line, make it fully visible
4313 instead of recentering.
4314 (try_scrolling): Additional parameter scroll_smoothly.
4316 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
4318 1998-09-28 Gerd Moellmann <gerd@gnu.org>
4320 * window.c (window_scroll_pixel_based): Bug fix: vpos used
4321 instead of y-position for scroll-preserved-screen-position.
4323 1998-09-07 Gerd Moellmann <gerd@gnu.org>
4325 * dispnew.c (update_frame_line): If current row is not enabled,
4326 write the whole line.
4328 1998-09-06 Gerd Moellmann <gerd@gnu.org>
4330 * lisp.h (HAVE_FACES): Removed.
4332 * dispextern.h (HAVE_FACES): Removed.
4334 * config.in (HAVE_FACES): Removed.
4336 * dispnew.c (HAVE_FACES): Removed.
4338 * xdisp.c (HAVE_FACES): Removed.
4340 * xfaces.c (HAVE_FACES): Removed.
4342 1998-09-05 Gerd Moellmann <gerd@gnu.org>
4344 * xdisp.c (init_iterator): If face_change_count is non-zero,
4345 free realized faces.
4347 * xfaces.c (free_all_realized_faces): Make it externally visible.
4348 (Finternal_set_lisp_face_attribute): Increment
4349 windows_or_buffers_changed.
4351 * dispnew.c (direct_output_for_insert): Give up if
4352 face_change_count is non-zero.
4353 (direct_output_forward_char): Ditto.
4355 * xfaces.c (face_change_count): New.
4357 1998-09-04 Gerd Moellmann <gerd@gnu.org>
4359 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
4362 1998-09-03 Gerd Moellmann <gerd@gnu.org>
4364 * term.c (Ftty_display_color_p): New.
4366 1998-09-02 Gerd Moellmann <gerd@gnu.org>
4368 * xfaces.c (Ftty_defined_colors): New.
4370 * xterm.c (x_produce_glyphs): Fix computation of
4371 contains_overlapping_glyphs_p for ASCII.
4373 * dispnew.c (Fshow_cursor): Don't change cursor state while
4375 (direct_output_for_insert): If a glyph with lbearing or rbearing
4376 is among the new glyphs, set row flag contains_overlapping_glyph_p.
4378 1998-09-01 Gerd Moellmann <gerd@gnu.org>
4380 * term.c (OUTPUT_IF): Make replacement text have statement form.
4381 (OUTPUT1_IF): Ditto.
4382 (TS_italic_mode, TS_end_italic_mode): Removed.
4383 (TS_bold_mode): Removed.
4384 (TS_underscore_mode, TS_end_underscore_mode): Removed.
4385 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
4386 (TS_enter_reverse_mode): New.
4387 (TS_enter_underline_mode, TS_exit_underline_mode): New.
4388 (TN_magic_cookie_glitch_ul): New.
4389 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
4390 (TS_exit_attribute_mode): New.
4391 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
4392 (TS_set_foreground, TS_set_background): New.
4393 (reset_terminal_modes): Switch colors back to default.
4394 (write_glyphs): Turn face on before writing text, turn it off
4396 (insert_glyphs): Ditto.
4397 (term_init): Initialize new terminal capability variables.
4398 (turn_on_face): Turn a face on.
4399 (turn_off_face): Turn a face off.
4401 * lisp.h (MAKE_GLYPH): Remove test for frame type.
4402 (GLYPH_CHAR): Ditto.
4403 (GLYPH_FACE): Ditto.
4405 * xfaces.c (Vface_tty_color_alist): New.
4406 (face-register-tty-color): New.
4407 (face-clear-tty-colors): New.
4409 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
4410 (struct it): Remove member faces_p since we now always have faces.
4412 1998-08-31 Gerd Moellmann <gerd@gnu.org>
4414 * dispextern.h (struct face): Add tty appearance flags.
4416 * xdisp.c (init_iterator): Always handle faces.
4417 (extend_face_to_end_of_line): Handle tty frames.
4419 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
4422 1998-08-30 Gerd Moellmann <gerd@gnu.org>
4424 * xfaces.c (realize_default_face): Use empty strings to indicate
4425 that the face should use the default foreground/background
4426 color of the terminal. Fill font-related attributes with
4427 appropriate values for tty frames.
4429 * emacs.c (main): Call syms_of_xfaces before init_window_once.
4431 * xfaces.c (realize_default_face): If face `default' is not
4432 yet known, create it.
4434 * frame.c (make_terminal_frame): Call init_frame_faces
4437 * xfaces.c (init_frame_faces): Make it work for tty frames.
4438 (free_frame_faces): Ditto.
4439 (clear_face_cache): Ditto.
4440 (recompute_basic_faces): Ditto.
4441 (Fframe_face_alist): Ditto.
4442 (free_realized_face): Ditto.
4443 (prepare_face_for_display): Ditto.
4444 (clear_face_gcs): Ditto.
4445 (lookup_face): Ditto.
4446 (smaller_face): Ditto.
4447 (realize_default_face): Ditto.
4448 (realize_face): Ditto.
4449 (realize_face): Dispatch to functions depending on the frame type.
4450 (realize_x_face): X way of realizing faces.
4451 (realize_tty_face): TTY way of realizing faces.
4453 1998-08-29 Gerd Moellmann <gerd@gnu.org>
4455 * xfaces.c (realize_face): Remove parameter unibyte_registry,
4457 (lookup_face): Remove local variable unibyte_registry.
4459 1998-08-22 Gerd Moellmann <gerd@gnu.org>
4461 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
4464 * xdisp.c (face_before_or_after_it_pos): Fix computation
4467 * editfns.c (make_buffer_string_both): If prompt in buffer,
4468 prevent start > end.
4470 * indent.c (Fvertical_motion): Set current_buffer to window's
4471 buffer if it isn't already.
4473 1998-08-21 Gerd Moellmann <gerd@gnu.org>
4475 * dispextern.h (GLYPH_DEBUG): Use default 0.
4477 * xdisp.c (it_props): New member `smaller'.
4478 (init_iterator): Initialize it.
4480 (push_it): Save value of `smaller' value on the stack.
4481 (pop_it): Restore `smaller' from the stack.
4482 (handle_smaller_prop): New.
4483 (handle_face_prop): Use `smaller' text property to select a
4486 * dispextern.h (SMALLER_PROP_IDX): New.
4487 (struct it): Add member `smaller'.
4489 * xfaces.c (smaller_face): New.
4491 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
4493 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
4494 total pixel width of window differently.
4496 * xdisp.c (init_iterator): Compute width of mode line differently.
4498 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
4501 * window.c (Fsplit_window): Include width of bitmap areas in
4503 (window_internal_width): Subtract width of bitmap areas from
4506 1998-08-18 Gerd Moellmann <gerd@gnu.org>
4508 * xdisp.c: Functions reordered for better readability.
4510 * dispnew.c (update_text_area): Handle glyphs with arbitrary
4512 (update_window_tree): Parameter no_scrolling_p removed.
4513 (update_single_window): Ditto.
4515 * xterm.c (x_get_char_font_and_encoding): Renamed to
4516 x_get_char_face_and_encoding.
4518 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
4519 if end of current row reached.
4521 * xterm.c (x_get_glyph_face_and_encoding): New.
4522 (x_get_glyph_overhangs): Call it.
4524 * xdisp.c (Qshow_trailing_whitespace): New.
4525 (Qtrailing_whitespace): New.
4526 (enum prop_handled): New.
4527 (struct props, it_props): New.
4528 (next_overlay_change): New. Works like Fnext_overlay_change
4529 but doesn't use xmalloc.
4530 (handle_stop): Restructured.
4531 (face_before_or_after_it_pos): Case iteration over a string: fix
4532 handling of face before current position.
4534 1998-08-16 Gerd Moellmann <gerd@gnu.org>
4536 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
4537 reallocation matrix if fonts_changed_p.
4538 (update_text_area): Handle glyphs with lbearing.
4540 1998-08-14 Gerd Moellmann <gerd@gnu.org>
4542 * xdisp.c (struct props): New.
4544 (compute_prop_info): New.
4547 * textprop.c (validate_interval_range): Make it externally
4550 * dispnew.c (direct_output_for_insert): Remove calls
4551 to compute_stop_pos.
4553 * dispextern.h (struct it): Remove check_charpos,
4554 next_overlay_pos. Add what_changes.
4556 1998-08-10 Gerd Moellmann <gerd@gnu.org>
4558 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
4560 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
4561 face_default_registry instead.
4563 * syntax.c (scan_sexps_forward): Set up syntax table before
4564 jumping to initial state label.
4566 1998-08-09 Gerd Moellmann <gerd@gnu.org>
4568 * dispnew.c (check_matrix_invariants): Handle case of row end pos
4571 1998-08-08 Gerd Moellmann <gerd@gnu.org>
4573 * xdisp.c (redisplay_window): Case cursor movement---if cursor
4574 ends up in partially visible row, try to scroll. Case forced
4575 window start---handle windows not tall enough to show a single
4578 * window.h (struct window): Member dy renamed vscroll.
4580 * xterm.c (x_list_fonts): Re-activate suppression of scalable
4582 (x_draw_stretch_glyph_string): Set clipping if using GC that
4585 * xdisp.c (redisplay_window): Case forced window start -
4586 don't let cursor end on partially visible row. Use desired
4587 matrix to find a suitable PT if it doesn't appear.
4588 (decode_mode_spec): Merged with 20.2.97.
4589 (try_window_reusing_current_matrix): Give up if old or
4590 new display is vscrolled.
4591 (redisplay_window): Reset vscrolling if forced window start,
4594 1998-08-06 Gerd Moellmann <gerd@gnu.org>
4596 * xfaces.c (realize_default_face): Use the fontset name instead of
4597 the alias for the family attribute of the default face because we
4598 can't easily determine a good alias from fontset-alias-alist.
4599 (face_fontset): Use Fquery_fontset to find the fontset.
4600 (font_list): Additional pattern parameter.
4601 (try_font_list): Ditto.
4602 (set_lface_from_font_name): Set face family from font foundry
4604 (font_list): If family contains a hyphen, build pattern differently.
4606 1998-08-05 Gerd Moellmann <gerd@gnu.org>
4608 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
4609 changed instead of setting the frame garbaged.
4611 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
4612 all attribute values. This is wrong if values are unspecified,
4615 * xdisp.c (try_window_id): Give up if window start changed.
4617 * xfaces.c (make_realized_face): Store registry as Lisp object.
4618 (load_face_font_or_fontset): Compute registry of a face
4619 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
4622 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
4625 * alloc.c (mark_face_cache): Mark the registry member of faces.
4627 * dispextern.h (struct face): Make registry a Lisp string.
4629 1998-08-04 Gerd Moellmann <gerd@gnu.org>
4631 * xterm.c (x_get_char_font_and_encoding): Additional parameter
4632 multibyte_p. Handle unibyte text.
4633 (x_append_glyph): Set the multibyte_p flag of glyphs.
4634 (x_produce_image_glyph): Ditto.
4635 (x_append_stretch_glyph): Ditto.
4636 (x_produce_glyphs): Handle unibyte text like ASCII.
4638 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
4640 (pop_it): Restore it.
4641 (face_before_or_after_it_pos): Handle the case that the string or
4643 (get_overlay_strings): Set the multibyte flag of the iterator if
4644 the new overlay string is multibyte.
4645 (get_glyph_property): Likewise.
4646 (get_next_display_element): Don't check for charset changes in
4648 (append_space): Compute face differently for unibyte text.
4649 (extend_face_to_end_of_line): Don't return quickly if face has
4652 * xfaces.c (load_face_font_or_fontset): Store registry and
4653 encoding of the font in the registry member of the face.
4654 (make_realized_face): Additional parameter `registry'.
4655 (free_realized_face): Free the registry of a realized face.
4656 (face_suitable_for_charset_p): Function form of the macro
4657 with the same name in uppercase.
4658 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
4659 (choose_face_font): New parameter unibyte_registry.
4660 (choose_face_fontset_font): Ditto.
4661 (realize_default_face): Remember the registry and encoding of
4662 the specified frame font in Vx_unibyte_registry_and_encoding.
4663 (face_at_buffer_position): Handle unibyte.
4664 (face_at_string_position): Likewise.
4665 (realize_face): New parameter unibyte_registry.
4666 (compute_char_face): Handle the unibyte case.
4668 * dispextern.h (struct glyph): Add bit multibyte_p.
4669 (struct face): New member registry holding the registry and
4670 encoding of the X font of the face.
4671 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
4672 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
4673 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
4675 (struct iterator_stack_entry): Add multibyte_p.
4677 * xdisp.c (string_pos): Use string_char_to_byte.
4678 (char_charset): Removed.
4680 1998-08-03 Gerd Moellmann <gerd@gnu.org>
4682 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
4683 rectangle for a block cursor over an image without a mask.
4684 (x_stretch_block_cursor): Added. Non-zero means don't draw
4685 a block cursor over a stretch as wide as that stretch.
4686 (x_draw_stretch_glyph_string): Use it.
4687 (x_draw_hollow_cursor): Ditto.
4689 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
4690 (read_minibuf): Add front-sticky text property for prompt.
4692 * xdisp.c (char_charset): Return charset of a character,
4693 depending on whether or not multi-byte characters are enabled.
4695 * xfaces.c (Fset_face_charset_registry): Removed.
4696 (x_charset_registry): Determine registry from charset plist.
4698 1998-08-02 Gerd Moellmann <gerd@gnu.org>
4700 * xdisp.c (get_next_display_element): Don't check for charset
4701 changes if multi-byte characters are not enabled.
4703 * xdisp.c (echo_area_display): Use the flush function from the
4704 redisplay interface.
4705 * keyboard.c (detect_input_pending_run_timers): Likewise.
4707 * dispextern.h (produce_*glyphs_hook): Removed.
4708 * term.c (produce_*glyphs): Ditto.
4709 (cursor_to): Remove pixel position parameters.
4711 * dispnew.c: Remove hooks for window-based redisplay, introduce
4712 a redisplay interface structure.
4714 * xterm.c (x_per_char_metric): Return default char metrics if per
4715 char metric exists but contains a zero width. Adobe Courier seems
4716 to contain such characters.
4718 * xdisp.c (compute_line_metrics): Compute the width of rows
4719 without stopping at glyphs with zero width.
4721 1998-08-01 Gerd Moellmann <gerd@gnu.org>
4723 * xdisp.c (display_mode_line): If nothing was displayed at all,
4725 (hscroll_window_tree): Don't subtract 1 from target point if equal
4726 to ZV and window is not the selected window.
4728 * dispnew.c (check_matrix_invariants): Remove check for window
4729 start at BEGV or after newline. This happens in rare cases
4732 1998-07-31 Gerd Moellmann <gerd@gnu.org>
4734 * xfaces.c (x_charset_registry): Use STRING_BYTES.
4735 (syms_of_xfaces): Add Vface_default_registry.
4736 (x_charset_registry): Use it.
4738 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
4739 (redisplay_window): Use it.
4741 * dispnew.c (update_text_area): Handle lbearing of deleted text
4742 by backing up one character.
4744 1998-07-30 Gerd Moellmann <gerd@gnu.org>
4746 * dispnew.c (adjust_glyph_matrix): Use a different check to
4747 decide to do nothing.
4749 * xfaces.c (face_at_string_position): Additional parameter
4750 mode_line_p. If non-zero, merge with the mode line face
4751 instead of the default face.
4752 * dispextern.h (struct it): Add mode_line_p.
4753 * xdisp.c (init_iterator): Set it.
4754 (compute_face_in_string): Use it.
4755 (face_before_or_after_it_pos): Handle strings.
4756 (get_next_display_element): Don't look for relief end in C strings.
4757 (next_element_from_string): Deliver string position instead of
4760 * xterm.c (x_flush): Flush X output buffer.
4763 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
4764 Allow strings as face names.
4766 * xfns.c (forall_images_in_image_cache): Check that frame is
4769 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
4770 it's also called from x_destroy_window. Since this function is
4771 called from X, freeing stuff allocated with xmalloc is dangerous
4774 * xfaces.c (free_realized_faces): Don't clear current matrices
4775 of a frame being destroyed.
4777 * frame.c (make_frame): Call set_window_buffer instead of
4780 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
4781 with an additional argument specifying whether or not hooks may
4783 (Fset_window_buffer): Call it.
4785 * dispnew.c (clear_desired_matrices): Check that frame has
4786 a valid root window before clearing matrices in the window tree.
4787 (clear_current_matrices): Ditto.
4788 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
4789 vchild are valid windows if not nil.
4791 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
4793 (Finternal_set_lisp_face_attribute): Ditto.
4794 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
4795 (Finternal_get_lisp_face_attribute): Ditto.
4796 (Finternal_lisp_face_attribute_values): Ditto.
4797 (syms_of_xfaces): Define the symbol `:reverse-video'.
4799 * xdisp.c (get_glyph_property): Renamed from
4800 fill_iterator_from_glyph_property.
4801 (next_element_from_buffer): Handle case that no `glyph' property
4802 was found correctly.
4803 (display_line): Extend face to end of line only if we have faces.
4805 1998-07-29 Gerd Moellmann <gerd@gnu.org>
4807 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
4808 additional window argument.
4810 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
4811 set_iterator_to_previous_visible_line_start.
4812 (reseat_at_next_visible_line_start): Likewise.
4813 (compute_stop_pos): Renamed from set_iterator_stop_pos.
4814 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
4815 (compute_face_in_buffer): Renamed from
4816 compute_face_at_iterator_position.
4817 (compute_face_in_string): Renamed from
4818 compute_face_at_iterator_string_position.
4819 (get_space_width): Renamed from get_iterator_space_width.
4820 (next_overlay_string): Renamed from
4821 set_iterator_to_next_overlay_string.
4822 (get_overlay_strings): Renamed from
4823 get_overlay_strings_at_iterator_position.
4824 (restore_overlay_strings): Renamed from
4825 setup_overlay_strings_from_glyph_pos.
4826 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
4827 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
4828 (init_to_row_start): Renamed from init_iterator_to_row_start.
4829 (init_to_row_end): Formerly init_iterator_to_next_row_start.
4831 * xterm.c: Merge with 20.2.97.
4832 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
4834 * dispextern.h (struct glyph): Replace text_pos position with
4837 * xdisp.c (this_line_start_pos): Use struct text_pos.
4838 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
4839 (enum move_it_result): Renamed from move_iterator_result.
4840 (string_pos_nchars_ahead): Compute text_pos in a string from a
4841 known text_pos plus a character delta.
4842 (string_pos): Compute text_pos in string from charpos.
4843 (c_string_pos): Likewise for a C string.
4844 (number_of_chars): Return number of characters in a possibly
4845 multi-byte C string.
4846 (check_it): Renamed from check_iterator. Check that charpos and
4847 bytepos are in sync.
4848 (push_it): Renamed from save_iterator_settings.
4849 (pop_it): Renamed from restore_iterator_settings.
4850 (move_it_.*): Renamed from move_iterator_.*.
4851 (charset_at_position): Take charpos/bytepos into account.
4852 (back_to_previous_line_start): Set iterator to previous line start.
4853 (forward_to_next_line_start): Set iterator to next line start.
4854 (back_to_previous_visible_line_start): Renamed from
4855 move_iterator_previous_visible_line_start.
4856 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
4857 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
4858 Handle charpos/bytepos.
4859 (compute_face_at_iterator_position): Handle charpos/bytepos.
4860 (compute_face_at_iterator_string_position): Likewise.
4861 (get_iterator_space_width): Likewise.
4862 (load_overlay_strings): Likewise.
4863 (get_overlay_strings_at_iterator_position): Likewise.
4864 (reseat_iterator): Take a text_pos position argument.
4865 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
4867 (init_iterator): Take additional bytepos parameter.
4868 (reseat_iterator_to_string): Handle charpos/bytepos.
4869 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
4870 (next_element_from_string): Handle charpos/bytepos.
4871 (next_element_from_c_string): Likewise.
4872 (fill_iterator_from_glyph_property): Likewise.
4873 (next_element_from_buffer): Likewise.
4874 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
4875 (move_iterator_in_display_line_to): Handle charpos/bytepos.
4876 (move_it_to): Likewise.
4877 (move_it_vertically_backward): Likewise.
4878 (move_it_vertically): Likewise.
4879 (move_it_by_lines): Likewise.
4880 (hscroll_window_tree): Likewise.
4881 (redisplay_internal): Likewise.
4882 (set_cursor_from_row): Likewise.
4883 (redisplay_window): Likewise.
4884 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
4885 (try_window_reusing_current_matrix): Handle charpos/bytepos.
4886 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
4887 (try_window_id): Handle charpos/bytepos.
4888 (Ftrace_redisplay_toggle): Return Qnil.
4889 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
4890 (insert_left_trunc_glyphs): Likewise.
4892 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
4894 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
4895 (increment_glyph_row_buffer_positions): Ditto.
4896 (copy_glyph_row_contents): Ditto.
4897 (check_matrix_invariants): Add additional checks for charpos/
4898 bytepos consistency.
4899 (direct_output_for_insert): Changed for charpos/bytepos.
4900 (buffer_posn_from_coords): Likewise. Put code dealing with
4901 `direction-reversed' in #if 0.
4903 * xterm.h: Merge with 20.2.97.
4905 * frame.h: Merge with 20.2.97.
4907 * window.h: Merge with 20.2.97. Add window_end_bytepos.
4909 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
4911 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
4912 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
4913 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
4914 (struct it): Various members renamed from .*pos to .*charpos.
4915 (IT_CHARPOS): Access current buffer character position of an
4917 (IT_BYTEPOS): Access current buffer byte position of an iterator.
4918 (IT_STRING_CHARPOS): Access current string character position of
4920 (IT_STRING_BYTEPOS): Access current string byte position of
4922 (globally): Add function prototypes from 20.2.97.
4924 * everywhere: Use P_ instead of PROTO for function prototypes
4925 because everyone else seems to use P_.
4927 * dispextern.h (struct text_pos): Structure describing a charpos/
4928 bytepos position in text.
4929 (BYTEPOS): Access the byte position part of a text_pos.
4930 (CHARPOS): Likewise for the character position.
4931 (SET_TEXT_POS): Set a text_pos from a character and byte position.
4932 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
4933 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
4934 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
4935 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
4936 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
4937 for buffer and string positions.
4938 (struct glyph): Use text_pos.
4939 (struct it): Renamed from display_iterator. Use text_pos.
4941 1998-07-23 Gerd Moellmann <gerd@gnu.org>
4943 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
4946 1998-07-21 Gerd Moellmann <gerd@gnu.org>
4948 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
4949 * xterm.c (x_draw_row_bitmaps): Use it.
4950 * dispnew.c (row_equal_p): Ditto.
4951 (update_window_line): Ditto.
4953 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
4956 * dispextern.h (struct image): Removed member loading_failed_p.
4957 It's probably better to have the chance to try to load an image
4960 1998-07-20 Gerd Moellmann <gerd@gnu.org>
4962 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
4963 at ZV if `indicate-zv-lines' is non-nil.
4964 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
4966 * dispnew.c (row_equal_p): Compare displays_text_p and
4967 ends_at_zv_p flags of rows.
4968 (update_window_line): Ditto.
4970 * buffer.h (struct buffer): New member indicate_zv_lines.
4972 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
4973 (init_buffer_once): New variable `default-indicate-zv-lines'.
4974 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
4976 * xdisp.c (redisplay_window): Don't try moving the cursor
4977 if current glyph row w->last_cursor.vpos isn't enabled.
4979 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
4981 * window.c (Fset_window_vscroll): Allow only negative scroll
4982 values. Others don't seem to make sense, and this way it's easy
4983 to restore a vscroll of zero.
4985 * xterm.c (x_inverted_image_mask): Check that pixmap could be
4987 (x_draw_image_glyph_string_background): Don't clip if pixmap
4988 could not be created.
4990 * xfns.c (xbm_load_image_from_file): Check that pixmap could
4995 * xterm.c (x_get_glyph_overhangs): Take image and stretch
4996 glyphs into account.
4998 * xfaces.c (realize_default_face): Don't set font family of
4999 the default face from the fontset alias name for `fontset-startup'.
5001 * xfns.c (gs_load): Pass frame's pixel foreground and background
5002 color to the Lisp loader.
5004 1998-07-19 Gerd Moellmann <gerd@gnu.org>
5006 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
5009 * configure.in (--with-tiff, HAVE_TIFF): Added.
5011 * config.in (HAVE_TIFF): Added.
5013 * Makefile.in (LIBTIFF): Added.
5015 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
5017 * Makefile.in (LIBJPEG): Added.
5019 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
5020 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
5023 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
5024 where the library is installed in /usr/local/lib, e.g. FreeBSD,
5025 configure must be run with `--x-includes=/usr/X11R6/include:
5026 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
5028 1998-07-18 Gerd Moellmann <gerd@gnu.org>
5030 * config.in (HAVE_JPEG): Added.
5032 * xfns.c (ct_init): Initialize color table used to map RGB colors
5033 from images to X pixel colors.
5034 (ct_free): Free color table.
5035 (ct_lookup): Look an RGB color up.
5036 (ct_allocated_colors): Get vector of allocated colors.
5037 (pbm_image_p): Test if image specification is a valid PPM
5038 image specification.
5039 (pbm_scan_number): Scan a decimal ASCII number from a file.
5040 (pbm_load): Load a PPM image.
5042 * window.c (Fset_window_vscroll): Adjust glyph matrix if
5043 necessary. Take canonical character units as parameter.
5044 (Fwindow_vscroll): Return canonical character units.
5046 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
5047 w->dy to display height for which glyph rows must be allocated.
5049 1998-07-17 Gerd Moellmann <gerd@gnu.org>
5051 * xfaces.c (face_at_string_position): Merge in region face
5052 so that it won't overwrite the font in the region.
5053 (face_at_buffer_position): Ditto.
5054 (realize_basic_faces): Don't realize region face.
5056 * dispextern.h (enum face_id): REGION_FACE_ID removed.
5058 * xterm.c (x_set_glyph_string_background_width): Don't let
5059 cursor face extend to end of line.
5061 * xdisp.c (append_space): If adding space of default face,
5062 make sure glyph ist produced with right face.
5064 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
5065 background color of a glyph string.
5066 (x_draw_glyph_string_background): Call it.
5067 (x_draw_glyph_string_bg_rect): Ditto.
5068 (x_draw_stretch_glyph_string): Ditto.
5070 1998-07-15 Gerd Moellmann <gerd@gnu.org>
5072 * xdisp.c (init_iterator): Initialize it->current_y to the
5073 window's vscroll w->dy.
5075 * window.c (Fwindow_vscroll): Return number of pixels window
5076 is vscrolled smoothly.
5077 (Fset_window_vscroll): Set the number.
5079 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
5080 to_pos in truncated part of a line.
5082 1998-07-14 Gerd Moellmann <gerd@gnu.org>
5084 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
5085 doesn't fit on the line, truncate it, despite truncate_lines nil.
5086 (display_line): Ditto.
5088 * xfns.c: Experimental support for Ghostscript images.
5090 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
5091 (XTread_socket): React on events from Ghostscript.
5092 (expose_frame): If width or height are zero, redraw entire frame.
5093 (XTread_socket): Call expose_frame after receiving event from
5096 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
5097 for Ghostscript support.
5099 * xdisp.c (redisplay_internal): Return quickly if called
5102 * alloc.c (NSTATICS): Increased to 1024.
5104 1998-07-08 Gerd Moellmann <gerd@gnu.org>
5106 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
5107 iterator's glyph row.
5108 (x_produce_stretch_glyph): Call it.
5109 (x_produce_glyphs): Handle `space-width' property; call
5110 x_append_stretch_glyph.
5112 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
5114 (get_iterator_space_width): Determine value of `space-width'
5115 property at iterator's position.
5116 (reseat_iterator): Call it.
5117 (next_element_from_string): Ditto.
5118 (next_element_from_buffer): Ditto.
5119 (init_iterator): Initialize space_width of iterator.
5120 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
5121 moved, but cursor blinks.
5122 (redisplay_internal): Set w->last_cursor_off_p after update.
5124 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
5125 (struct display_iterator): Add new member space_width.
5127 * window.h (struct window): Add last_cursor_off_p.
5129 1998-07-07 Gerd Moellmann <gerd@gnu.org>
5133 * window.c (Fpos_visible_in_window_p): Case window not up to
5134 date---return nil if iterator hasn't reached position.
5136 1998-07-06 Gerd Moellmann <gerd@gnu.org>
5138 * xdisp.c (text_outside_line_unchanged_p): Fix case that
5139 overlays have changed.
5140 (redisplay_window): Case cursor movement. Don't try it if
5141 last_cursor.vpos is out of range.
5143 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
5144 way, the display optimization for the line containing the cursor
5145 is used more frequently, esp. when we have a blinking cursor.
5146 (display_line): Don't set this_line_.* variables.
5148 * xterm.c (x_redraw_cursor): Removed.
5149 (x_display_and_set_cursor): Set cursor type depending on
5150 cursor_off_p flag of window.
5152 * dispnew.c (redraw_cursor_hook): Removed.
5153 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
5154 member of the selected window.
5156 * xfaces.c (Fface_font): Added for compatibility with 20.2.
5158 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
5159 Return glyph area under x/y.
5160 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
5162 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
5165 1998-07-05 Gerd Moellmann <gerd@gnu.org>
5167 * xdisp.c (text_outside_line_unchanged_p): Test if changes
5168 are all outside of a line of text.
5169 (redisplay_internal): Use it.
5171 1998-06-30 Gerd Moellmann <gerd@gnu.org>
5173 * xdisp.c (next_element_from_buffer): After skipping over
5174 invisible text, look for the `glyph' property.
5175 (set_iterator_stop_pos): Ignore check positions in front
5176 of an iterator's current position.
5178 * xterm.c (show_mouse_face): Don't act on rows that don't exist
5179 anymore or which are marked as not having valid contents.
5181 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
5182 realized faces if new attribute value is equal to old value.
5184 1998-06-29 Gerd Moellmann <gerd@gnu.org>
5186 * xfaces.c (Finternal_make_lisp_face): Increment
5187 lface_id_to_name_size when lface_id_to_name is reallocated.
5189 1998-06-27 Gerd Moellmann <gerd@gnu.org>
5191 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
5192 as minimum of endpos and overlay_pos.
5193 (load_overlay_strings): Set next_overlay_pos of iterator to
5194 -1 if we don't have to check for more overlay strings.
5196 1998-05-09 Gerd Moellmann <gerd@gnu.org>
5198 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
5199 do anything if iterator is at ZV because scan_buffer doesn't
5202 * xterm.c (x_encode_char): Inline it.
5203 (x_get_char_font_and_encoding): Simplified.
5204 (x_per_char_metric): Inline it.
5206 * xterm.c (x_draw_glyph_string_relief): Use clipping.
5208 * xdisp.c (get_next_display_element): Check for end of relief
5209 face moved here from next_element_from_buffer.
5211 * xterm.c (x_produce_image_glyph): Add relief thickness.
5212 (x_produce_stretch_glyph): Ditto.
5214 1998-05-08 Gerd Moellmann <gerd@gnu.org>
5216 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
5217 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
5219 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
5220 from a glyph property.
5221 (x_produce_glyphs): Use it.
5223 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
5225 * xterm.c (x_produce_image_glyph): Add to current_x only if
5227 (x_produce_glyphs): Ditto.
5229 * xdisp.c (display_line): Compute row height from glyphs in
5232 * xterm.c (x_draw_image_glyph_string_background): Draw
5233 background of an image glyph string.
5234 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
5235 the background of a glyph string.
5236 (x_draw_image_glyph_string_foreground): Draw the foreground of
5237 an image glyph string.
5238 (x_inverted_image_mask): Return the inverted mask of an image.
5240 * xfns.c (x_draw_image): Removed.
5242 * dispextern.h (struct image_type): Remove drawing function.
5244 * xfaces.c (load_face_colors): Swap colors if face is inverse.
5246 * xdisp.c (get_next_display_element): In marginal areas, translate
5247 newlines, tabs, etc. like normal control characters.
5249 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
5251 (free_realized_faces): Set frame garbaged.
5253 * xfaces.c (syms_of_xfaces): Add defsubr for
5254 internal-lisp-face-attribute-values.
5256 1998-05-07 Gerd Moellmann <gerd@gnu.org>
5258 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
5260 (x_produce_image_glyph): Set IT->nglyphs to 1.
5261 (x_draw_image_glyph_string): Use inverted mask to draw background.
5263 * dispextern.h (struct image_type): Additional clipping rect
5264 parameters for drawing functions.
5266 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
5268 (x_draw_image_glyph_string): Use it and pass the rect to the
5269 image drawing function.
5271 * xdisp.c (fill_iterator_from_glyph_property): Use position of
5272 first character with `glyph' property as image position. Set
5273 iterator back to that position as long as the image hasn't been
5274 consumed with set_iterator_to_next.
5275 (set_cursor_from_row): Accept when glyph with given position is
5276 not found in the row. Set cursor x to end of line in that case,
5277 so that we can hscroll.
5278 (redisplay_internal): Correct computation of delta by which
5279 positions have changed in redisplay optimization for cursor
5280 row of selected window.
5282 * xdisp.c (display_line): Remove start_pos.
5283 (display_line): Fix bug preventing display optimization for
5284 cursor line of selected window.
5285 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
5288 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
5289 (update_text_area): Take glyph pixel width into account
5290 when trying to find a resync point.
5291 (row_equal_p): Compare glyphs in all areas.
5293 1998-05-06 Gerd Moellmann <gerd@gnu.org>
5295 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
5297 * dispextern.h (struct glyph_row): Use unsigned hash value.
5299 * xdisp.c (display_line): Simplified and made faster by setting
5300 the cursor with set_cursor_from_row.
5301 (set_cursor_from_row): Handle rows of desired matrix.
5303 1998-05-05 Gerd Moellmann <gerd@gnu.org>
5305 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
5306 with type != CHAR_GLYPH.
5307 (fill_iterator_from_glyph_property): Return void. Set
5308 method to next_element_from_image.
5309 (next_element_from_image): Dummy function for delivering a
5311 (set_iterator_to_next): Add method next_element_from_image.
5312 (redisplay_window): When recentering, and cursor vpos is -1
5313 after display, assume middle of window is in first line displayed
5314 in window, and display again.
5315 (fill_iterator_from_glyph_property): Assign image glyph
5316 the position of the first character having the glyph property.
5318 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
5319 * xfns.c (x_draw_image): Use it.
5320 * xterm.c (x_produce_image_glyph): Use it.
5322 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
5324 * Makefile.in: Extraneous #define of LIBXPM removed.
5326 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
5327 (x_fill_stretch_glyph_string): Fill a glyph string from a
5329 (x_compute_glyph_string_overhangs): Compute overhangs only
5330 for text glyph strings.
5331 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
5332 (x_draw_glyph_string): Call it.
5334 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
5335 (struct glyph): Add sub-structure for stretchable glyphs.
5336 (GLYPH_EQUAL_P): Compare glyph type and u.val.
5338 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
5341 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
5343 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
5344 setup_iterator_from_glyph_property. Don't do it for terminal
5347 * xterm.c (x_produce_image_glyph): Produce glyph for image
5348 that can't be loaded.
5350 * xfns.c (lookup_image): If image can't be loaded, set its
5351 width and height so that we can draw a rectangle.
5352 (x_draw_image): Draw a rectangle for images that don't have
5354 (make_image): Set hash value.
5355 (image_spec_equal_p): Use image_spec_value.
5357 * xterm.c (expose_frame): Don't try to redraw if basic faces
5358 haven't benn realized yet.
5359 (x_draw_image_glyph_string): Fill background only if image
5360 is not as tall as row.
5362 1998-05-04 Gerd Moellmann <gerd@gnu.org>
5364 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
5365 (LIBX)[HAVE_X11]: Add LIBXPM.
5367 * xfns.c (xpm_image_p): Implementation of image type functions
5371 * dispextern.h (struct image): Add mask pixmap for XPM.
5373 * xfns.c (x_draw_image): Handle images with masks.
5375 * configure.in: --with-xpm added. Code detecting -lXpm added.
5377 * config.in: Add HAVE_XPM.
5379 * xfns.c (xbm_draw): Removed.
5380 (x_draw_image): Default implementation for drawing images.
5381 (xbm_keyword_index): Remove XBM_DEPTH.
5382 (xbm_format): Remove `:depth'.
5383 (xbm_image_spec_from_file): Removed to reduce consing.
5384 (xbm_load_image_from_file): Added for the same reason.
5386 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
5388 (x_draw_image_glyph_string): Pass ybase to image draw function.
5390 * xfns.c (make_image): Set default baseline.
5392 * xterm.c (x_produce_image_glyph): Compute ascent of image
5393 from its height and baseline percentage.
5395 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
5396 (xbm_format): Add description for `:baseline'.
5397 (xbm_image_spec_from_file): Add keywords from original spec to
5399 (xbm_load): Set baseline of image.
5400 (xbm_image_p): Check range for baseline.
5402 * dispextern.h (struct image): Add member baseline.
5404 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
5406 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
5408 * xdisp.c (get_next_display_element): Do character translations
5409 only if delivering characters.
5411 1998-05-03 Gerd Moellmann <gerd@gnu.org>
5413 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
5416 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
5417 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
5419 1998-05-02 Gerd Moellmann <gerd@gnu.org>
5421 * xfns.c (prepare_image_for_display): Set image timestamp.
5422 (clear_image_cache): Clear images if image's timestamp +
5423 Vimage_eviction_seconds is > now.
5424 (syms_of_xfns): New variables image-eviction-seconds, and
5426 (add_image_format): Add to image-types.
5427 (xbm_load): Support new image spec format.
5428 (x_alloc_image_color): Allocate a color for an image.
5430 * dispextern.h (struct image): Add timestamp.
5432 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
5433 vectors of bool-vectors.
5434 (xbm_lisp_object_from_file): Build new format image spec.
5436 1998-05-01 Gerd Moellmann <gerd@gnu.org>
5438 * xfaces.c (init_frame_faces): Initialize image cache.
5439 (free_frame_faces): Free it.
5441 * xterm.c (x_delete_display): Don't free image cache.
5443 * emacs.c (main): Call init_xfns.
5445 1998-04-30 Gerd Moellmann <gerd@gnu.org>
5447 * alloc.c (mark_object): Mark objects in image cache.
5449 * xfns.c (x_set_internal_border_width): Correct call to
5450 widget_store_internal_border_width.
5452 * widget.c (widget_store_internal_border): Return void.
5454 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
5456 (init_x_parm_symbols): Return void.
5457 (x_report_frame_params): Ditto.
5458 (x_set_border_pixel): Ditto.
5459 (syms_of_xfns): Ditto.
5460 (x_destroy_all_bitmaps): Use xfree instead of free.
5462 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
5464 * xterm.c (x_term_init): Initialize image_cache of display info.
5465 (x_delete_display): Free image cache.
5467 * xterm.h (struct x_display_info): Add image_cache.
5469 * xfns.c (make_image_cache): Allocate a new image cache.
5470 (free_image_cache): Free an image cache.
5471 (make_image): Allocate an image.
5472 (free_image): Free an image.
5474 * dispextern.h (struct image): Structure describing an image.
5475 (struct image_cache): Structure describing an image cache.
5477 1998-04-29 Gerd Moellmann <gerd@gnu.org>
5479 * xdisp.c (check_iterator_glyph_property): Return int. Value is
5480 non-zero if iterator is filled with something to return.
5481 (next_element_from_buffer): Immediately return if
5482 setup_iterator_from_glyph_prop has filled iterator with pixmap.
5483 (next_element_from_string): Likewise.
5485 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
5487 * dispextern.h (struct glyph): Add pixmap_id.
5488 (display_element_type): Add DISP_PIXMAP.
5490 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
5493 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
5494 (clear_face_cache): Call it.
5496 * xterm.c (x_query_font): Don't look at empty font table slots.
5497 (x_compute_min_glyph_bounds): Likewise.
5498 (x_term_init): Initialize font_table to null.
5499 (x_load_font): Change allocation of font_info structures so
5500 that it is possible to free fonts.
5502 * xfns.c (Fx_close_connection): Use xfree instead of free.
5503 Only free fonts from filled font table entries.
5505 * xfaces.c (best_matching_font): Support use of scalable fonts.
5506 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
5508 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
5510 * xterm.c (x_term_init): Compute resx and resy.
5512 * xfaces.c (split_font_name): Don't reject scalable fonts.
5514 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
5517 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
5518 point size cannot be determined.
5520 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
5521 width over all fonts on a frame.
5522 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
5523 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
5526 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
5527 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
5528 (x_load_font): Use x_compute_min_char_bounds.
5530 * xterm.h (struct x_display_info): New members smallest_char_width
5531 and smallest_font_height.
5533 1998-04-28 Gerd Moellmann <gerd@gnu.org>
5535 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
5536 the same name if GC of face is zero.
5538 * dispextern.h (struct face): Member non_ascii_gc removed.
5540 * xterm.c (x_get_char_font_and_encoding): Return face's font
5541 for characters < 0177 in default face. Prepare face for
5542 display before returning it.
5543 (x_produce_glyphs): Use it->charset.
5544 (x_get_char_font_and_encoding): Simplified.
5545 (x_encode_char): Remove parameter `font'.
5547 * xfaces.c (choose_face_font): If registry from charset symbol
5548 doesn't contain a `-', make it a pattern by appending "*-*".
5550 * xdisp.c (check_iterator_glyph_property): Adjust limit for
5551 glyph_check_pos computation to character boundary.
5553 1998-04-27 Gerd Moellmann <gerd@gnu.org>
5555 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
5557 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
5558 ASCII face for a given Lisp face id.
5560 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
5562 (reseat_iterator): Set glyph_check_pos. Handle case where
5563 new position is < original position.
5564 (check_iterator_glyph_property): Handle glyph property in strings.
5565 (next_element_from_string): Call above function.
5566 (next_element_from_display_vector): Handle faces in glyphs.
5567 (get_next_display_element): Set face_id of glyphs for
5568 control chars to zero.
5570 * Makefile.in (term.o): Add dependency on dispextern.h.
5572 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
5573 (display_line): Handle marginal areas.
5574 (move_iterator_in_display_line_to): Likewise.
5576 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
5578 * xfaces.c (face_at_buffer_position): Don't merge with nil
5580 (face_at_string_position): Ditto.
5582 * dispextern.h (struct display_iterator): Use a stack of saved
5583 values instead of saving check positions etc. individually.
5585 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
5586 maybe pop the iterator's stack.
5587 (save_iterator_settings): Push a value on iterator's stack.
5588 (get_overlay_strings_at_iterator_position): Use it.
5589 (restore_iterator_settings): Pop the stack.
5590 (set_iterator_to_next_overlay_string): Use it.
5592 * xfaces.c (try_font_list): Use alternative font families.
5594 1998-04-26 Gerd Moellmann <gerd@gnu.org>
5596 * xfaces.c (Fset_face_font_sort_order): Set the order in which
5597 font selection matches fonts.
5598 (Fface_font_sort_order): Return the font sort order.
5599 (best_matching_font): Find best matching font based on sort order.
5600 (cmp_font_names): Sort by given sort order.
5602 * dispextern.h (struct display_iterator): New member faces_p.
5603 * xdisp.c (init_iterator): Initialize it->faces_p.
5604 (compute_face_at_iterator_string_position): Use it.
5605 (compute_face_at_iterator_position): Use it.
5606 (init_iterator): Use it.
5607 (display_mode_line): Ditto.
5609 * xdisp.c (get_next_display_element): Put code choosing a face
5610 when the charset changes in #ifdef HAVE_FACES.
5612 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
5613 lookup_face_for_charset.
5615 * xfaces.c (free_font_names): Renamed from free_split_font_names.
5616 (free_all_realized_faces): Renamed from remove_all_realized_faces.
5618 1998-04-25 Gerd Moellmann <gerd@gnu.org>
5620 * xfaces.c (best_matching_font): Return the name of the best
5621 matching font in an array of font_name structures.
5622 (choose_face_font): Use it.
5623 (choose_face_fontset_font): Use it.
5624 (find_best_weight_font): If final font found has same weight as
5625 the font we started with, return the original font because it is a
5626 better match for the resolution of the display.
5627 (find_best_slant_font): Likewise.
5628 (merge_face_vector_with_property): Check more invalid attribute
5630 (lface_suitable_for_charset_p): Replaced by a macro with the same
5633 1998-04-24 Gerd Moellmann <gerd@gnu.org>
5635 * dispextern.h (struct face): Member
5636 fontset_chosen_for_realization_p removed.
5638 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
5639 end of the collision list, so that we find more specific faces
5641 (lookup_face_for_charset): Look up a new face if face->fontset >=
5642 0, and charset != CHARSET_COMPOSITION.
5644 * xfaces.c (split_font_name): Return zero if point size of font
5645 couldn't be computed.
5646 (realize_default_face): Use ASCII font of a fontset to determine
5647 font-related attributes of the default face.
5648 (face_fontset): Return fontset id for face family.
5649 (font_list): Additional parameter font_pattern. If non-nil,
5650 return fonts matching that pattern.
5652 1998-04-23 Gerd Moellmann <gerd@gnu.org>
5654 * xfaces.c (choose_face_fontset): If new fontset cannot be
5655 constructed, or fontset name cannot be split, return the id of the
5658 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
5659 When Emacs starts, it may be called for the initial frame which
5662 * dispextern.h (struct face): New members foreground_defaulted_p,
5663 background_defaulted_p.
5664 (struct face): Members `mask' and `cache' removed.
5666 * xfaces.c (load_color): Set them.
5667 (free_face_colors): Check them.
5668 (xlfd_point_size): Return -1 if resolution or point size of
5671 * xfaces.c (free_font): Removed.
5672 (load_face_font_or_fontset): Renamed from load_font.
5673 (load_face_font_or_fontset): Use message2 instead of signalling.
5674 (load_color): Likewise.
5675 (load_pixmap): Likewise.
5677 * xterm.h (struct x_display_info): Add screen_dpi.
5678 * xterm.c (x_term_init): Initialize it.
5679 * xfaces.c (xlfd_point_size): Use it.
5680 (split_font_name): Compute numeric XLFD_RESY.
5681 (cmp_font_names): Make fonts with an y-resolution more
5682 similar to that of the frame appear first in the result.
5684 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
5685 is set for the face to cache, add it to the end of the collision
5687 (try_font_list): If fonts for given family and registry cannot
5688 be found, first try to keep the registry, and choose a different
5690 (choose_face_font): Allow nfonts == 0.
5691 (try_font_list): Give up if no font matches given registry.
5693 1998-04-22 Gerd Moellmann <gerd@gnu.org>
5695 * xterm.c (x_get_char_font_and_encoding): Get font_info from
5696 font info id of the face.
5698 * xfaces.c (load_font): Set font_info_id.
5699 (realize_face): Ditto.
5701 * dispextern.h (struct face): Change member font_info to
5704 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
5705 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
5707 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
5708 isn't ASCII, get the ASCII face before adding a space.
5709 (append_space): Likewise.
5710 (insert_left_trunc_glyphs): Initialize truncate_it's charset
5711 to -1 so that it will compute the right face for the truncation
5714 * xfaces.c (realize_face): Set
5715 face->fontset_chosen_for_realization_p.
5716 (lookup_face_for_charset): If fontset wasn't specified originally
5717 and new charset != CHARSET_COMPOSITION, get a new face for that
5720 * dispextern.h (struct face): New member
5721 fontset_chosen_for_realization_p_specified_p. Set to 1 when
5722 realize_face has chosen a fontset to display composite characters
5723 for a Lisp face not specifying a fontset.
5725 * xdisp.c (extend_face_to_end_of_line): Move tests for default
5726 face and line already filled here. Don't do anything if current
5727 face hasn't a relief or has a background equal to the frame
5730 * xfaces.c (split_font_name): Additional parameter numeric_p.
5731 Don't compute numeric values if it is non-zero.
5732 (choose_face_fontset): Call split_font_name with numeric_p == 0.
5733 (choose_face_fontset): Print a message if fontset contains a
5734 font whose name cannot be split into fields.
5736 1998-04-21 Gerd Moellmann <gerd@gnu.org>
5738 * xfaces.c (try_font_list): Try to load a list of fonts,
5739 possibly using less restrictive patterns.
5740 (choose_face_font): Use it.
5742 * xterm.c (x_get_char_font_and_encoding): For charset !=
5743 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
5745 * dispextern.h (struct face): New member font_info.
5747 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
5748 specifying a fontset as well as those not having a fontset.
5749 (free_font): Make it empty.
5750 (realize_face): Use changed load_font.
5752 * xterm.c (x_get_char_font_and_encoding): If face doesn't
5753 fit for charset, get the right one.
5755 * xfaces.c (load_font): Take frame and name parameter, return
5757 (free_font): Likewise.
5758 (split_font_name): Compute numeric values for height, swidth etc.
5759 (cmp_font_names): Use them.
5760 (find_best_width_font): Ditto.
5761 (find_best_height_font): Ditto.
5762 (find_best_weight_font): Ditto.
5763 (find_best_slant_font): Ditto.
5764 (lface_hash): Add weight, slant, swidth and relief to hash value.
5765 (lface_equal_p): Make it faster.
5766 (lface_from_symbol): Use assq_no_quit.
5767 (Fnote_default_face_changed): Removed.
5768 (cmp_font_names): Use strcmp instead of xstricmp.
5769 (face_charset_registries): Removed.
5771 1998-04-20 Gerd Moellmann <gerd@gnu.org>
5773 * frame.h (CHECK_FRAME): Give this macro a statement form.
5774 (CHECK_LIVE_FRAME): Ditto.
5776 * xfaces.c (find_best_width_font): Find the best matching font
5778 (find_best_height_font): Likewise for height.
5779 (find_best_weight_font): Likewise for weight.
5780 (find_best_slant_font): Likewise for slant.
5781 (choose_face_font): Use them.
5782 (get_lface_attributes): Always return frame-local face attrs.
5783 (Finternal_merge_in_global_face): Merge local face with
5784 global face attributes.
5786 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
5787 Lisp face attributes.
5789 1998-04-19 Gerd Moellmann <gerd@gnu.org>
5791 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
5792 and :italic for compatibility.
5793 (Finternal_set_lisp_face_attribute_from_resource): Handle
5794 :bold and :italic. Handle boolean resource values for
5795 :underline and :italic.
5797 * xfns.c (display_x_get_resource): Make it externally visible.
5799 * xfaces.c (lface_from_symbol): Take a frame as parameter.
5800 If that frame is non-null, return the frame-local face.
5801 (Finternal_make_lisp_face): Additional frame argument.
5802 (lface_attributes): Get face attributes from global and frame-local
5804 (Finternal_lisp_face_equal_p): Additional frame argument.
5805 (merge_lisp_face_vector_with_property): Ditto.
5806 (Frealize_basic_faces): Removed.
5807 (Finternal_get_lisp_face_attribute): Additional frame argument.
5808 (Finternal_lisp_face_p): Ditto.
5809 (load_color) [MSDOS]: Removed because it isn't clear how
5810 to do this for MS-DOS.
5812 * xfaces.c (lface_from_symbol): Get global face definition
5813 from face-global-alist.
5815 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
5816 as values for :underline and :inverse-video.
5817 (Finternal_set_lisp_face_attribute): Allow nil values.
5819 1998-04-17 Gerd Moellmann <gerd@gnu.org>
5821 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
5823 * xfaces.c (syms_of_xfaces): Add Vall_faces.
5824 (Finternal_make_lisp_face): Add new face to Vall_faces.
5826 * xdisp.c (echo_area_display): Remove code recomputing faces.
5827 (redisplay_internal): Ditto.
5828 (init_iterator): Do it here.
5830 * xfaces.c (choose_face_font): Check that swidth doesn't change
5831 for subusequent attributes.
5832 (xlfd_point_size): Return int.
5834 * xdisp.c (redisplay_internal, echo_area-display): If realized
5835 faces have been cleared, call recompute_basic_faces.
5837 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
5838 face_attributes_changed_p.
5839 (remove_all_realized_faces): Remove all realized faces on
5841 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
5843 * xdisp.c (redisplay_internal): If face attributes have been
5844 changed since the last redisplay, recompute basic faces.
5845 (echo_area_display): Ditto.
5847 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
5849 * xfaces.c (min_char_bounds): If face cache not yet present,
5850 don't try to get font dimensions from faces.
5852 * xterm.c (x_frame_mode_line_height): If face cache not present
5853 set, return default height.
5855 * alloc.c (mark_face_cache): Check for null faces. Correct
5858 * dispextern.h (struct face): Renamed from struct rface. Member
5859 underline renamed underline_p. Make it a bit-field.
5861 * xfaces.c (init_frame_faces): Allocate face cache.
5862 (free_frame_faces): Free face cache.
5863 (recompute_basic_faces): Realize basic faces only if face cache is
5864 allocated, i.e. after init_frame_faces has been called.
5866 * frame.c (make_frame): Initialze face cache with null.
5868 * xfaces.c (same_size_fonts): Removed.
5870 * xterm.c (x_set_glyph_string_gc): Add post-condition
5872 (x_set_mouse_face_gc): Ditto.
5873 (x_set_mode_line_face_gc): Ditto.
5875 * xfaces.c (realize_default_face): Return int. Value is
5876 zero if frame params don't contain enough information to
5877 realize the default face.
5878 (realize_basic_faces): Ditto.
5879 (init_frame_faces): Realize basic faces.
5881 * xfns.c (x_set_font): First store real font name in frame
5882 parameters, then call recompute_basic_faces.
5884 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
5886 1998-04-16 Gerd Moellmann <gerd@gnu.org>
5888 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
5890 * xfns.c (Fx_face_fixed_p): Removed.
5891 (Fx_list_fonts): Moved to xfaces.c.
5893 * xfaces.c (compute_face_at_buffer_pos): Renamed to
5894 face_at_buffer_position. Parameter charset removed; always
5895 compute face for CHARSET_ASCII.
5896 (face_at_string_position): Renamed from
5897 compute_face_at_string_pos. Parameter charset removed; always
5898 compute for CHARSET_ASCII.
5899 (lookup_face_for_charset): Take frame parameter instead of
5901 (lookup_face): Ditto.
5902 (compute_char_face): Renamed from compute_glyph_face.
5904 * xdisp.c (init_iterator): Initialize charset member.
5905 (reseat_iterator_to_string): Ditto.
5906 (get_charset_at_buffer_position): Determine charset at
5907 buffer position in current_buffer.
5908 (reseat_iterator): Call above function.
5909 (compute_face_at_iterator_position): Call
5910 compute_face_at_buffer_pos.
5911 (compute_face_at_iterator_string_position): Call
5912 compute_face_at_string_pos.
5913 (get_face_from_id): Removed.
5914 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
5915 Call get_charset_at_buffer_position.
5916 (reseat_iterator): Determine face if charset at pos differs
5917 from iterator's charset.
5918 (reseat_iterator_to_glyph_pos): Removed.
5920 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
5921 Determine charset from buffer position.
5922 (compute_string_char_face): Renamed to compute_face_at_string_pos.
5923 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
5925 * dispextern.h (struct display_iterator): Add member charset.
5927 1998-04-15 Gerd Moellmann <gerd@gnu.org>
5929 * xfaces.c (compute_char_face): Removed.
5931 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
5932 with new parameter list.
5934 * xfaces.c (region_face): Removed.
5935 (allocate_face): Removed.
5937 (face_eql): Removed.
5938 (intern_face): Removed.
5939 (clear_face_cache): Removed.
5941 (unload_font): Ditto.
5942 (load_color): Ditto.
5943 (unload_color): Ditto.
5944 (new_computed_face): Ditto.
5945 (intern_computed_face): Ditto.
5946 (ensure_face_ready): Ditto.
5947 (merge_faces): Ditto.
5948 (compute_base_face): Ditto.
5949 (merge_face_list): Ditto.
5950 (Fmake_face_internal): Removed.
5951 (Fset_face_attribute_internal): Ditto.
5952 (face_name_id_number): Removed.
5953 (Fframe_face_alist): Ditto.
5954 (Fset_frame_face_alist): Ditto.
5955 (Finternal_next_face_id): Ditto.
5957 * xterm.h (struct x_output): Remove computed_faces, and
5958 param_faces. Remove macros accessing them.
5960 * xfaces.c: Entirely new face implementation added.
5962 1998-04-11 Gerd Moellmann <gerd@gnu.org>
5964 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
5967 1998-04-10 Gerd Moellmann <gerd@gnu.org>
5969 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
5970 scroll bar window to reduce flickering. Clear entire height.
5972 * xdisp.c (move_iterator_vertically_backward): Set iterator's
5973 current_x and hpos to zero after moving to previous line
5976 1998-04-03 Gerd Moellmann <gerd@gnu.org>
5978 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
5980 * xfaces.c (xlfd_point_size): Compute relative point size of
5981 fonts from font and frame resolution.
5982 (sort_fonts): New function to sort fonts, temporarily setting
5983 font_frame to the frame in effect.
5984 (xlfd_point_size): Take additional frame parameter to be able
5985 to get at the display's resolution.
5987 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
5989 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
5992 1998-03-31 Gerd Moellmann <gerd@gnu.org>
5994 * xfaces.c (choose_face_fontset): Instantiate fontsets.
5996 * fontset.h: Add external declarations for Vfontset_alias_alist
5997 and Vglobal_fontset_alist.
5999 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
6000 (realize_default_face): If frame parameters contain an artificial
6001 font name naming a fontset, set the family of the default face to
6002 the fontset name given by the registry.
6004 * Makefile.in (alloc.o): Add dependency to dispextern.h.
6006 1998-03-22 Gerd Moellmann <gerd@gnu.org>
6008 * alloc.c (mark_object): Add function prototype. Add cast to
6009 Lisp_Object pointer in call to mark_object for symbol names
6010 because this otherwise gives a warning from gcc 2.8.1.
6011 (mark_face_cache): Mark Lisp objects in realized faces.
6013 1998-03-19 Gerd Moellmann <gerd@gnu.org>
6015 * frame.h (struct frame): Add member face_cache.
6017 * alloc.c (mark_object): Mark face cache.
6018 (mark_face_cache): Mark Lisp faces in face cache of frame.
6020 * frame.c (make_frame): Initialize face_cache.
6021 (Fdelete_frame): Free it.
6023 1998-03-18 Gerd Moellmann <gerd@gnu.org>
6025 * xfaces.c: Very first skeleton of functions for face realization,
6026 face merging, face cache etc.
6028 * dispextern.h (struct rface): Realized faces. Will replace
6029 struct face when tested.
6030 (struct face_cache): Realized face caches.
6032 * xdisp.c (init_iterator): Initialize area member of display
6035 1998-03-17 Gerd Moellmann <gerd@gnu.org>
6037 * xterm.c (x_append_glyph): Use it->area to store glyphs.
6039 * dispextern.h (struct display_iterator): New member area.
6041 * xterm.c (note_overwritten_text_cursor): Note when the text
6042 cursor of a window is overwritten.
6044 * xdisp.c (set_cursor_from_row): If PT is not found in the
6045 row, display the cursor at the start of the row.
6047 * dispnew.c (direct_output_forward_char): Call
6048 set_cursor_from_row.
6050 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
6051 position is not in an overlay string, set iterator's position and
6052 method explicitly so.
6053 (set_cursor_from_row): Correct cursor position calculation.
6054 Make it externally visible.
6055 (redisplay_window): Call set_cursor_from_row so that there is only
6056 one place where the cursor position is calculated from a current
6059 * dispextern.h (struct display_iterator): New member
6060 overlay_strings_at_end_processed_p.
6062 * xdisp.c (check_iterator): Perform sanity checks on
6064 (next_element_from_buffer): Check for overlay strings at ZV.
6066 1998-03-16 Gerd Moellmann <gerd@gnu.org>
6068 * buffer.c (init_buffer_once): Add left_margin_width and
6069 right_margin_width to buffer_local_flags.
6071 * dispnew.c (margin_glyphs_to_reserve): Function computing
6072 number of glyphs to reserve for a marginal area.
6073 (adjust_glyph_matrix): Call it.
6074 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
6077 * window.c (Fset_window_margins): Allow floats.
6079 * buffer.c (syms_of_buffer): Add buffer-local variables
6080 left-margin-width and right-margin-width. Add defaults
6081 default-left-margin-width and default-right-margin-width.
6083 * buffer.h (struct buffer): New members left_margin_width
6084 and right_margin_width.
6086 * window.c (Fset_window_margins): Make window the last and
6089 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
6090 flag no_marginal_areas_p differently.
6091 (x_clear_end_of_line): Ditto.
6092 (x_draw_glyph_string_relief): Compute width of relief differently
6093 for rows with flag no_marginal_areas_p.
6095 * dispnew.c (update_window_line): Update marginal areas only
6096 for rows that don't have no_marginal_areas_p set.
6098 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
6099 (display_menu_bar): Ditto.
6101 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
6103 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
6104 marginal areas in window-based redisplay.
6106 * dispextern.h (struct glyph_matrix): New members
6107 left_margin_glyphs and right_margin_glyphs.
6109 1998-03-15 Gerd Moellmann <gerd@gnu.org>
6111 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
6113 * charset.c (non_ascii_char_to_string): Use char type parameters
6114 because the function is used that way from outside. Use unsigned
6117 * window.c (change_window_height): Return void.
6118 (make_dummy_parent): Return void.
6119 (init_window_once): Return void.
6120 (syms_of_window): Ditto.
6121 (keys_of_window): Ditto.
6122 (delete_window): Correct return with and without value.
6124 * buffer.c (record_buffer): Return void.
6126 * marker.c (unchain_marker): Return void.
6128 * window.c (unshow_buffer): Return void.
6129 (replace_window): Ditto.
6130 (delete_window): Ditto.
6132 * term.c (delete_glyphs_hook): Void return type.
6133 (ring_bell_hook): Ditto.
6134 (set_terminal_window_hook): Ditto.
6136 * sysdep.c (init_sigio): Return void.
6138 * xterm.c (x_set_window_size): Return void.
6139 (x_calc_absolute_position): Ditto.
6140 (x_set_offset): Ditto.
6141 (x_focus_on_frame): Ditto.
6142 (x_unfocus_frame): Ditto.
6143 (x_make_frame_visible): Ditto.
6144 (x_make_frame_invisible): Ditto.
6145 (x_iconify_frame): Ditto.
6146 (x_destroy_window): Ditto.
6147 (x_wm_set_window_state): Ditto.
6148 (x_wm_set_icon_pixmap): Ditto.
6149 (x_wm_set_icon_position): Ditto.
6150 (x_initialize): Ditto.
6151 (x_error_quitter): Ditto.
6152 (x_destroy_window): Use xfree instead of free.
6154 * keyboard.c (clear_waiting_for_input): Return void.
6156 * xterm.c (x_wm_set_size_hint): Return void.
6157 (x_raise_frame): Ditto.
6158 (refreshicon): Ditto.
6159 (x_error_catcher): Ditto.
6160 (x_clear_errors): Ditto.
6162 * keyboard.c (record_asynch_buffer_change): Return void.
6164 * xterm.c (XTroï
\0ðoï
\0ðÃâ
\0ðoï
\0ðoï
\0ðTÿ
\0ðLá
\0ðoï
\0ðterminal_window): Ditto.
6165 (x_lower_frame): Ditto.
6166 (x_scroll_bar_clear): Ditto.
6167 (XTflash): Add default case in switch for -Wall.
6168 (construct_mouse_click): Return Qnil.
6169 (cancel_mouse_face): Return void.
6170 (x_queue_event): Use xmalloc instead of malloc.
6171 (x_unqueue_events): Use xfree instead of free.
6173 * ccl.c (ccl_driver): Return int.
6175 * keyboard.c (stop_polling): Return void.
6176 (start_polling): Ditto.
6178 * term.c (keys): Add braces in initializer list for -Wall.
6180 * sysdep.c (tabs_safe_p): Return int.
6181 (init_baud_rate): Return void.
6183 * xterm.c (x_draw_bitmap): Add default case.
6184 (x_setup_relief_colors): Use DefaultScreen instead of
6185 DefaultScreenOfDisplay.
6186 (x_delete_glyphs): Return void.
6187 (construct_menu_click): Put in #if 0 because it isn't called.
6189 * xdisp.c (load_overlay_strings): Remove extraneous argument
6191 (get_overlay_arrow_glyph_row): Add missing return value.
6193 * window.c (set_window_height): Return void.
6194 (set_window_width): Ditto.
6196 * sysdep.c (request_sigio): Return void.
6197 (unrequest_sigio): Ditto.
6198 (get_frame_size): Ditto.
6200 * scroll.c (scroll_cost): Return int.
6201 (do_line_insertion_deletion_costs): Return void.
6203 * frame.c (Fdelete_frame): Use xfree instead of free.
6205 * fileio.c (report_file_error): Return void.
6207 * dispnew.c: Make compilable with -Wall.
6210 * charset.h (CHAR_LEN): Moved here from dispextern.h.
6212 1998-03-14 Gerd Moellmann <gerd@gnu.org>
6214 * xterm.c (x_scroll_bar_move): Clear under scroll bar if height is
6216 (x_setup_relief_color): Free color only for appropriate visual
6219 * xterm.c (expose_window): Fix calculation of intersection of mode
6220 line rectangle with exposed rectangle.
6222 * xdisp.c (redisplay_window): Don't do cursor movement based
6223 on current matrix if w->last_point is not valid.
6225 1998-03-09 Gerd Moellmann <gerd@gnu.org>
6227 * xterm.c (expose_line): Redraw mode line and menu lines
6228 differently because they reach into the scroll bar area.
6230 * xdisp.c (redisplay_window): If redisplaying with same window
6231 start, don't accept cursor on partially visible line.
6233 1998-03-08 Gerd Moellmann <gerd@gnu.org>
6235 * xterm.c (x_set_glyph_string_clipping): Set clip rectangle
6236 for wider mode lines.
6237 (x_draw_glyph_string_relief): Use larger rectangle for mode lines.
6239 * xdisp.c (init_iterator): Increase last_visible_x by vertical
6240 scroll bar width for mode lines.
6242 * dispnew.c (allocate_matrices_for_window_redisplay): Include
6243 vertical scroll bar width in width calculation so that we can
6244 display mode lines wider.
6246 * xdisp.c (redisplay_window): Restore buffers before returning
6247 when fonts have changed.
6249 * dispnew.c (update_window): Mark invisible rows in the current
6252 * xdisp.c (try_window_id): Force update of first row displayed
6254 (dump_glyph_matrix): Extracted from Fdump_glyph_matrix.
6256 1998-03-05 Gerd Moellmann <gerd@gnu.org>
6258 * dispextern.h (struct glyph_row): Member max_ascent renamed
6259 ascent. Member max_descent replaced by height.
6260 (struct display_iterator): Member max_descent replaced by height.
6261 (MATRIX_ROW_PIXEL_HEIGHT): Removed.
6263 * xterm.c (x_alloc_lighter_color): Don't free colors if visual
6264 class makes it unnecessary or dangerous.
6266 * xdisp.c (redisplay_window): Case only point has changed, and
6267 point has moved forward. Move forward over overlay strings.
6268 (display_line): Don't set cursor if first glyph from PT is part of
6269 a continuation line.
6271 1998-02-21 Gerd Moellmann <gerd@gnu.org>
6273 * xdisp.c (start_display): When computing continuation lines
6274 width, add current_x to the continuation lines width because
6275 move_iterator_to will stop in front of the buffer position moved
6278 1998-02-20 Gerd Moellmann <gerd@gnu.org>
6280 * xdisp.c (redisplay_window): Don't try try_window_id if
6281 windows_or_buffers_changed.
6283 * xterm.c (x_alloc_lighter_color): Try both factor and delta to
6285 (x_setup_relief_color): Allocate/ change one relief.
6286 (x_setup_relief_colors): Call above function.
6288 * xterm.h (struct relief): New structure type holding relief info:
6289 GCs, colors, and whether colors are allocated.
6291 * xterm.c (x_alloc_lighter_color): If multiplying by factor
6292 produces the same color, try adding a delta to RGB values.
6293 (x_setup_relief_colors): Free color cells.
6295 * xterm.h (struct x_output): New members white_relief_pixel,
6296 black_relief_pixel holding the foreground colors allocated for
6297 relief GCs. New members white_allocated_p, black_allocated_p.
6299 * xterm.c (x_scroll_run): Don't set updated_window to null.
6300 This resets updated_window when called from scrolling_window.
6302 * dispextern.h (scroll_run_hook): Renamed from line_dance_hook.
6304 * xterm.c (x_scroll_run): Additional window parameter. Set
6305 and reset updated_window.
6307 * dispnew.c (line_dance_hook): Additional window parameter.
6309 * xdisp.c (try_window_reusing_current_matrix): Don't call
6310 update_window_begin/end here. The end function would display the
6311 cursor on a wrong position and the additional functionality of
6312 update_window_begin is not needed anyway. Just set
6314 (try_window_id): Ditto.
6316 * dispnew.c (Fblink_cursor): Remove call to detect_input_pending.
6317 Don't redraw cursor during redisplay.
6319 * xterm.c (x_scroll_run): Renamed from do_line_dance.
6321 * xdisp.c (redisplay_window): For window-based redisplay, alway
6324 * xterm.c (struct glyph_string): New member two_byte_p that is
6325 non-zero if 16-bit drawing functions must be used.
6326 (x_fill_composite_glyph_string): Set it.
6327 (x_fill_glyph_string): Set it.
6328 (x_draw_glyph_string_foreground): Use it.
6329 (x_draw_vertical_border): Make line 1 pixel less tall.
6330 (x_draw_row_bitmaps): Decrease width of area cleared on the left
6331 side by 1 pixel if window is not right-most hasn't vertical scroll
6333 (x_draw_phys_cursor_glyph): Do nothing if phys_cursor.hpos is
6335 (x_draw_glyph_string_foreground): Use XDrawImageStringX if
6338 * xdisp.c (start_display): Check that window start is at line
6339 start if GLYPH_DEBUG != 0.
6341 * window.c (window_scroll_pixel_based): Move assertion to
6344 1998-02-19 Gerd Moellmann <gerd@gnu.org>
6346 * xterm.c (x_redraw_cursor): Don't redraw the cursor if the
6347 frame hasn't the focus.
6349 * window.c (make_window): Initialize dy.
6350 (replace_window): Ditto.
6352 * window.h (window): New member dy specifying the amount by which
6353 a window is scrolled "smoothly".
6355 * xterm.c (x_set_glyph_string_clipping): Don't use glyph string's
6356 y-position because it can be negative.
6357 (x_draw_row_bitmaps): Don't clear with negative y-position like
6359 (x_clear_end_of_line): Same theme as above.
6361 * xterm.c (x_alloc_nearest_color): Allocate a color or, if no
6362 exact match exists, the nearest existing color. Patterned after
6364 (x_alloc_lighter_color): Allocate a color that is lighter or
6365 darker than a given color by a specified factor.
6366 (x_setup_relief_colors): Set up relief line colors based on
6367 the background color of a glyph string face.
6368 (x_draw_glyph_string_relief): Call x_setup_relief_colors.
6370 * xfns.c (x_make_gc): Don't allocate relief GCs.
6371 * widget.c (create_frame_gcs): Don't allocate relief GCs.
6372 (setup_frame_gcs): Don't change relief GCs.
6374 * xterm.h (struct x_output): New member relief_background giving
6375 the background pixel color for which relief GCs can be used.
6376 Set by x_setup_relief_colors.
6378 * xterm.c (x_draw_glyph_string_relief): Draw relief differently
6379 for mode and menu lines.
6381 * xdisp.c (set_next_iterator_stop_pos): No longer static.
6383 * dispnew.c (direct_output_for_insert): Call
6384 set_next_iterator_stop_pos after having changed it2.endpos.
6386 1998-02-17 Gerd Moellmann <gerd@gnu.org>
6388 * dispnew.c (update_window): Work on selected_window, only.
6390 * xterm.c (x_erase_phys_cursor): Return quickly if physical cursor
6391 hpos is >= number of glyphs in the cursor row.
6393 * xdisp.c (try_window_id): Bug fix; update_window_end was not
6396 1998-02-16 Gerd Moellmann <gerd@gnu.org>
6398 * xdisp.c (init_iterator): Increase last_visible_x for mode lines
6401 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate
6402 enough glyphs to display a mode line or menu line which draws over
6405 * xterm.c (XTset_vertical_scroll_bar): Use
6406 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT instead of
6407 VERTICAL_SCROLL_BAR_PIXEL_HEIGHT.
6408 (x_draw_glyphs): Draw over flags areas when drawing a mode line
6410 (x_set_glyph_string_clipping): Set clipping differently if drawing
6411 a mode line or menu line.
6413 * xterm.h (VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
6415 * xterm.c (expose_line): Don't draw bitmaps for mode lines and
6417 (x_scroll_bar_create): Don't clear flags areas.
6418 (x_draw_row_bitmaps): Clear visible row height, only.
6420 * dispnew.c (Fblink_cursor): Moved here from xdisp.c.
6422 1998-02-15 Gerd Moellmann <gerd@gnu.org>
6424 * dispnew.c (direct_output_for_insert): When checking for tabs in
6425 the line, set it2.endpos to ZV.
6427 * window.h (struct window): New member cursor_off_p.
6428 * xterm.c (x_redraw_cursor): Implementation of redraw_cursor_hook
6430 * dispnew.c (redraw_cursor_hook): If non-null, function that can
6431 be called to display or erase the cursor.
6432 * xdisp.c (Fblink_cursor): Blink the cursor of a specified window
6435 * xterm.h (text_cursor_kinds): Enumerators changed to uppercase.
6437 * dispnew.c (update_window_line): Special handling of inverse
6438 lines in #if 0 removed.
6440 * xterm.c (x_write_glyphs): Renamed from XTwrite_glyphs.
6441 (x_insert_glyphs): Renamed from XTinsert_glyphs.
6442 (x_clear_frame): Renamed from XTclear_frame.
6443 (x_clear_end_of_line): Renamed from XTclear_end_of_line.
6444 (x_ins_del_lines): Renamed from XTins_del_lines.
6445 (x_change_line_height): Renamed from XTchange_line_height.
6446 (x_delete_glyphs): Renamed from XTdelete_glyphs.
6447 (x_clear_cursor): Renamed from clear_cursor.
6448 (x_update_begin): Renamed from XTupdate_begin.
6449 (x_update_end): Renamed from XTupdate_end.
6450 (x_update_window_begin): Renamed from XTupdate_window_begin.
6451 (x_update_window_end): Renamed from XTupdate_window_end.
6452 (x_frame_mode_line_height): Renamed from XTframe_mode_line_height.
6453 (x_produce_glyphs): Renamed from XTproduce_glyphs.
6454 (x_produce_special_glyphs): Renamed from XTproduce_special_glyphs.
6455 (x_produce_special_glyphs): Implementation in #if 0 removed.
6457 * xdisp.c (Fdump_redisplay_state): Display row's fill_line_p
6460 * dispnew.c (update_text_area): Handling of glyphs with pixel
6461 width zero removed. Decrement desired stop pos if desired row
6464 * xterm.c (x_fill_glyph_string): Handling of glyphs with pixel
6466 (BUILD_GLYPH_STRINGS): Set glyph string flag
6467 extends_to_end_of_line_p based on row's flag fill_line_p and face
6468 background and stipple. Make sure it works for composite characters.
6470 * xdisp.c (extend_face_to_end_of_line): Set the glyph row flag
6471 fill_line_p. For window-based redisplay, add a space only if
6472 the row is empty so that we know the face to draw.
6474 * dispextern.h (struct glyph_row): New flag fill_line_p. Non-zero
6475 means draw the face of the last glyph in the text area to the
6476 right end of the text area.
6478 * xdisp.c (init_iterator): Show region in window mini-buffer
6481 * dispextern.h (struct display_iterator): Redundant member
6482 region_showing_p removed. Test for region_beg > 0 instead.
6484 * dispnew.c (update_text_area): Clear to end of line if cursor is
6485 beyond the end of the desired line. Necessary because we don't
6486 have a phys_cursor_glyph with which to erase the cursor. We don't
6487 have one because this method of drawing a cursor doesn't work with
6490 * xterm.c (XTinsert_glyphs): Block input.
6492 1998-02-14 Gerd Moellmann <gerd@gnu.org>
6494 * xterm.c (x_set_cursor_gc): Don't use cursor_gc for composite
6496 (x_draw_glyph_string_background): Fill background with background
6497 pixel for the first glyph of a composite character.
6499 * xdisp.c (try_window): Change return type to int. Value is zero
6500 if fonts were loaded during redisplay.
6501 (redisplay_window): Return if fonts have been loaded during
6503 (append_space): New parameter default_face_p.
6505 1998-02-13 Gerd Moellmann <gerd@gnu.org>
6507 * dispnew.c (adjust_glyph_matrix): In case of optimizing C-x 2,
6508 don't let a partially visible line in a current matrix stay
6511 1998-02-09 Gerd Moellmann <gerd@gnu.org>
6513 * minibuf.c (read_minibuf): Put access to minibuffer_prompt_length
6514 in #if PROMPT_IN_BUFFER.
6516 * xdisp.c (display_line): If row ends in ZV, make the space
6517 that is added to place the cursor on it appear in default face.
6519 * xterm.c (expose_area): New function redrawing a single
6521 (expose_line): Use it to redraw all areas of a row.
6523 * dispextern.h (move_operation_enum): New enum
6524 move_operation_enum.
6526 * window.c (window_scroll_pixel_based): Remove now unnecessary
6527 code that made sure that it->current_y doesn't become negative.
6529 * xdisp.c (move_iterator_in_display_line_to): New parameter
6530 op. Special meaning of to_pos <= 0 and to_x < 0 removed.
6531 (move_iterator_to): Ditto.
6533 * dispextern.h (struct glyph_matrix): New member window_width.
6535 * dispnew.c (adjust_glyph_matrix): Set window_width. Optimize
6536 case of changing window height.
6538 * xterm.c (x_draw_row_bitmaps): Don't clear vertical window
6541 * dispextern.h (struct glyph_row): Remove right_to_left_p. RMS
6542 says this aspect of Emacs is currently redesigned.
6544 * xterm.c (x_clip_to_row): Subtract 1 from clip width if we
6545 have to draw a vertical border.
6547 * window.c (window_scroll_pixel_based): When scrolling down by
6548 screen-fulls, make sure it.current_y doesn't get negative because
6549 this would confuse move_iterator_vertically.
6551 * xdisp.c (move_iterator_vertically_backward): Bug fix for
6552 the case continuation lines are involved.
6553 (try_window_id): Don't set the cursor into scroll margins.
6555 1998-02-08 Gerd Moellmann <gerd@gnu.org>
6557 * xterm.c (x_append_glyph): Don't compute left_overhang and
6559 (XTproduce_glyphs): left_overhang and right_overhang removed.
6560 Set it->glyph_row->contains_overlapping_glyphs_p.
6562 * xdisp.c (Fdump_redisplay_state): Output of glyph->left_overhang
6563 and right_overhang removed.
6565 * dispextern.h (struct glyph_row): New member
6566 contains_overlapping_glyphs_p used to optimize glyph drawing.
6567 (struct display_iterator): left_overhang and right_overhang
6569 (struct glyph): Ditto.
6571 * xterm.c (x_draw_relief): Removed.
6572 (x_draw_bitmap): Renamed from draw_bitmap.
6573 (x_draw_glyphs): Completely new implementation of draw_glyphs
6574 capable of handling arbitrary lbearing and rbearing values.
6575 Several sub-functions not mentioned here.
6577 1998-01-30 Gerd Moellmann <gerd@gnu.org>
6579 * xterm.c (x_erase_phys_cursor): Clear area under the cursor only
6580 if displaying hollow box cursor. draw_glyphs should handle
6582 (draw_glyphs): Move start to the left and end to the right if they
6583 overlap with previous or following characters.
6584 (draw_glyphs): If background is cleared for hl == DRAW_CURSOR,
6585 make sure XDrawString uses function GXset. Otherwise the
6586 character under the cursor would be invisible.
6587 (x_draw_bar_cursor): Don't draw over previous character if it
6590 * window.c (get_phys_cursor_glyph): Return the glyph under a
6591 window's physical cursor.
6593 * xterm.c (x_draw_hollow_cursor): Use get_phys_cursor_glyph.
6594 (x_draw_bar_cursor): Ditto.
6595 (x_erase_phys_cursor): Ditto.
6596 (x_phys_cursor_in_rect_p): Ditto.
6597 (x_display_and_set_cursor): Remove reference to w->phys_cursor_glyph.
6599 * window.c (make_window): Remove reference to phys_cursor_glyph.
6600 (replace_window): Ditto.
6602 * window.h (struct window): Remove phys_cursor_glyph. There is
6603 now always a glyph present for placing the cursor on it in
6604 each glyph row, even at the end of a line.
6606 * xdisp.c (append_space): Function to add a space to an iterators
6608 (display_line): Add spaces at the end of lines that are used to
6609 place the cursor on them.
6610 (compute_line_metrics): If row consists of a space only that was
6611 added to place the cursor on it, use that space's height as the
6614 1998-01-29 Gerd Moellmann <gerd@gnu.org>
6616 * xdisp.c (Fdump_redisplay_state): Dump left and right overhang of
6619 1998-01-28 Gerd Moellmann <gerd@gnu.org>
6621 * xterm.c (x_append_glyph): Set overhang of glyph from iterator.
6622 (XTproduce_glyphs): Set it->left_overhang and it->right_overhang.
6624 * dispextern.h (struct glyph): Add left_overhang and
6626 (struct display_iterator): Ditto.
6628 * dispnew.c (direct_output_for_insert): Give up if newly inserted
6629 glyphs have different ascent or descent than original row.
6631 * xdisp.c (compute_line_metrics): Compute row->max_ascent and
6632 row->max_descent only if unknown.
6633 (display_line): Compute row->max_ascent and row->max_descent.
6634 (display_string): Ditto.
6636 * window.h (struct window): New members phys_cursor_ascent and
6637 phys_cursor_descent.
6639 * xterm.c (x_phys_cursor_in_rect_p): Use them.
6640 (x_draw_hollow_cursor): Ditto.
6641 (x_erase_phys_cursor): Ditto.
6642 (x_display_and_set_cursor): Set them.
6643 (x_append_glyph): Don't set glyph members that were removed.
6645 * dispextern.h (struct glyph): Members ascent, descent,
6646 contributes_to_line_height_p removed.
6648 1998-01-25 Gerd Moellmann <gerd@gnu.org>
6650 * dispextern.h (DEFAULT_FACE_ID, MODE_LINE_FACE_ID): Symbolic
6651 names for face ids of frame default face and mode line face.
6653 * xdisp.c (compute_face_at_iterator_string_position): If
6654 displaying a mode line use MODE_LINE_FACE_ID instead of
6657 * xdisp.c (reseat_iterator_to_string): Additional parameter start.
6658 (display_string): Ditto, additional parameter lisp_string.
6659 (display_line): Call display_string with Lisp mini-buffer prompt
6661 (display_menu_bar): Call display_string with Lisp string.
6662 (display_mode_element): Ditto.
6663 (next_element_from_string): Make it work for non-overlay Lisp
6664 strings with field width and precision.
6666 * minibuf.c (minibuffer-prompt-in-buffer): Bound if
6669 * xfaces.c (compute_string_char_face): Fix face computation
6670 for overlay strings.
6672 * xdisp.c (struct overlay_entry): Add member after_string_p.
6673 (load_overlay_strings): Simplify.
6675 * window.c (delete_window): Defer glyph matrix adjustment.
6676 (Fsplit_window): Ditto.
6677 (change_window_height): Ditto.
6678 (Fset_window_configuration): Ditto.
6679 (Fset_window_margins): Ditto.
6680 * frame.c (set_menu_bar_lines): Ditto.
6681 (Fmake_terminal_frame): Ditto.
6682 * dispnew.c (change_frame_size_1): Ditto.
6684 1998-01-24 Gerd Moellmann <gerd@gnu.org>
6686 * xdisp.c (move_iterator_vertically_backward): Change algorithm.
6688 * dispnew.c (direct_output_for_insert): Give up if start
6689 position has overlay strings.
6691 * xdisp.c (display_line): Don't set cursor if row ends in middle
6693 (Fdump_redisplay_state): Print complete row start and end
6695 (redisplay_window): Cursor movement when matrix hasn't changed---
6696 if PT < last_point, maybe move forward if row ends at PT and
6699 * minibuf.c (read_minibuf): Save the value of
6700 minibuffer_prompt_length in minibuf_save_list.
6701 (read_minibuf_unwind): Restore minibuffer_prompt_length.
6703 * xdisp.c (redisplay_window): Add assertion for cursor movement
6704 case, PT < last_point.
6705 (move_iterator_in_display_line_to): If to_pos specified, move
6706 over before-strings.
6708 * dispextern.h (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test
6709 start.string_index > 0.
6711 * xdisp.c (redisplay_internal): Adjust glyphs if fonts_changed_p
6712 is set. Retry redisplay if fonts_changed_p is set before update.
6714 * xterm.c (x_load_font): Set fonts_changed_p.
6716 * xfaces.c (Fset_face_attribute_internal): Set fonts_changed_p.
6718 * dispnew.c (adjust_glyphs_for_font_change): Removed.
6720 * xdisp.c (try_window): Check fonts_changed_p.
6721 (try_window_reusing_current_matrix): Ditto.
6722 (try_window_id): Ditto.
6724 * dispnew.c (adjust_glyphs_for_font_change): Set fonts_changed_p.
6725 (fonts_changed_p): Flag indicating a font change since the last
6726 glyph matrix adjustment.
6728 * xterm.c (x_per_char_metric): Use font->max_bounds as
6729 char metric of the font's default char if the default char
6730 hasn't per char metric itself.
6732 * xfaces.c (Fset_face_attribute_internal): Adjust glyphs
6734 (min_char_bounds): Check face->font != NULL.
6735 (font_min_bounds): Return minimum font metrics. Capture the
6736 case of invalid min_bounds contents.
6737 (min_char_bounds): Call font_min_bounds.
6739 1998-01-22 Gerd Moellmann <gerd@gnu.org>
6741 * xdisp.c (start_display): Don't set it->prompt_width if
6743 (move_iterator_in_display_line_to): Ditto.
6744 (display_line): Don't display prompt via display_string if
6747 * minibuf.c (Fminibuffer_prompt_width): Return value from
6748 current_buffer if PROMPT_IN_BUFFER.
6749 (read_minibuf): If PROMPT_IN_BUFFER, insert prompt into
6750 mini-buffer and make it read-only.
6751 (Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
6752 minibuffer_prompt_length instead of BEGV.
6753 (Fminibuffer_complete_word): Ditto.
6754 (Fminibuffer_complete_word): Ditto.
6756 * insdel.c (del_range_1): If PROMPT_IN_BUFFER, and start position
6757 is less than mini-buffer prompt width, use prompt width as start.
6759 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, and start
6760 position is less than mini-buffer prompt width, use the prompt
6763 * cmds.c (Fbeginning_of_line): If PROMPT_IN_BUFFER, set point to
6764 end of prompt if applied to a mini-buffer and BEG reached.
6766 1998-01-21 Gerd Moellmann <gerd@gnu.org>
6768 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, add prompt
6769 length to start position.
6771 * buffer.c (Fget_buffer_create): Initialize
6772 minibuffer_prompt_length.
6773 (Fmake_indirect_buffer): Ditto.
6774 (Fkill_buffer): Ditto.
6776 * buffer.h (struct buffer): Add member minibuffer_prompt_length
6777 if PROMPT_IN_BUFFER.
6779 1998-01-19 Gerd Moellmann <gerd@gnu.org>
6781 * xdisp.c (next_element_from_string): Make it work for arbitrary
6783 (set_iterator_to_next): Advance to next overlay string only
6784 if it->string is an overlay string.
6786 * dispextern.h (struct display_iterator):
6787 next_ovstr_face_check_pos renamed next_string_face_check_pos.
6789 * xfaces.c (compute_string_char_face): Compute face for
6790 arbitrary Lisp string. Renamed from compute_overlay_string_char_face.
6792 * xdisp.c (next_element_from_string): Renamed from
6793 next_element_from_overlay_string.
6794 (compute_face_at_iterator_string_position): Renamed from
6795 compute_face_at_iterator_overlay_string_position.
6797 * dispextern.h (struct display_iterator): Member overlay_string
6800 * xdisp.c (next_element_from_c_string): Renamed from
6801 next_element_from_string.
6803 * dispextern.h (struct glyph_pos): Reversed meaning of
6804 overlay_string_index and string_index.
6806 * xdisp.c (next_element_from_overlay_string): Fix bug that made
6807 this function always return the first character of an overlay
6810 1998-01-18 Gerd Moellmann <gerd@gnu.org>
6812 * xdisp.c (reseat_iterator): Set next_invisible_check_pos only if
6813 forced or new pos > next_invisible_check_pos.
6814 (redisplay_window): Don't try same window start if PT < window
6816 (move_iterator_vertically): Bug fix satisfying post-condition
6817 when ZV is reached and no newline in front.
6818 (move_iterator_vertically_backward): New implementation.
6819 (move_iterator_vertically_backward): Bug fixes.
6821 * xterm.c (XTmouse_position): Change call to min_char_bounds.
6822 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
6823 (adjust_glyphs_for_font_change): Always adjust.
6825 * dispnew.c (struct dim): Use int.
6827 * xfaces.c (Fset_face_attribute_internal): Set face->font_name;
6828 (allocate_face): Initialize it.
6829 (load_font): Use XLoadQueryFont again instead of x_load_font.
6830 (unload_font): Use XFreeFont again.
6831 (min_char_bounds): Iterate over fonts of faces. Use frame's
6832 font sizes as default. Remove parameter except_last_font_p.
6834 * dispextern.h (struct face): Add font_name.
6836 1998-01-17 Gerd Moellmann <gerd@gnu.org>
6838 * xdisp.c (move_iterator_vertically): Check post-condition. Move
6839 to start of line if ending at ZV and no newline in front.
6840 (move_iterator_to): If to_y specified, always first move to x = 0,
6841 so that move stops at line start instead of line end. This is
6842 probably what callers would expect to happen.
6844 * window.c (window_scroll_pixel_based): Pixel-based scrolling that
6845 can handle different line heights.
6846 (window_scroll_line_based): Formerly window_scroll.
6847 (window_scroll): Call both.
6849 * xdisp.c (start_display): Exclude code if PROMPT_IN_BUFFER.
6850 (move_iterator_in_display_line_to): Ditto.
6851 (display_line): Ditto.
6853 * minibuf.c (read_minibuf): Conditionally insert prompt into
6854 buffer instead of handling prompts specially. Change other
6855 functions accordingly. All such code is in #if PROMPT_IN_BUFFER.
6857 * dispnew.c (adjust_glyph_matrix): Optimize the handling of C-x 2,
6858 upper window. Optimize calls to xrealloc if same width.
6860 * xdisp.c (redisplay_window): Don't use
6861 try_window_reusing_current_matrix if window scroll functions
6864 * dispextern.h (struct display_iterator): Member
6865 redisplay_end_trigger_p removed.
6867 * dispextern.h (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
6868 Renamed to WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
6870 1998-01-16 Gerd Moellmann <gerd@gnu.org>
6872 * xdisp.c (move_iterator_by_lines): Optimize for truncate-lines
6873 nil. Optimize truncate-lines t and moving backward.
6874 (move_iterator_to_previous_visible_line_start): Contains the heart
6875 of the previous set_iterator_to_previous_visible_line_end. Don't
6876 reseat the iterator. Used by move_iterator_by_lines.
6877 (set_iterator_to_previous_visible_line_start): Call function
6879 (move_iterator_in_display_line_to): Check TO_POS before doing
6880 anything else. Otherwise to_pos == PT would move to x of PT+1.
6882 * indent.c (Fvertical_motion): Use display_iterator.
6884 * xdisp.c (move_iterator_by_lines): New function moving by screen
6886 (redisplay_window): Use it.
6887 (move_iterator_to): Correct branch of to_vpos specified.
6888 (move_iterator_vertically_backward): Increment nlines after having
6889 backed up over some lines because the last line was not backed up
6891 (move_iterator_via_matrix): Look for it->pos in the matrix, and
6892 calculate it->vpos and it->current_y relative to this row.
6893 (move_iterator_via_matrix): Set in #if 0. It doesn't seem to
6894 have a big effect and it is complex.
6895 (move_iterator_to): Call to move_iterator_via_matrix in #if 0.
6897 1998-01-15 Gerd Moellmann <gerd@gnu.org>
6899 * xterm.c (x_draw_relief): Simplify drawing and draw so that lines
6900 join nicely. Lines with widths > 2 don't join nicely under X.
6901 * xterm.h (struct x_output): Remove member relief_gc_line_width.
6902 * widget.c (setup_frame_gcs): Initialize relief GC's to line
6903 width 1; remove references to relief_gc_line_width.
6904 * xfns.c (x_make_gc): Ditto.
6906 * xfaces.c (Fset_face_attribute_internal): Set frame garbaged
6908 (Fset_face_attribute_internal): Use XINT instead of XFASTINT
6909 to get a relief because they can be negative.
6911 * xterm.c (x_draw_relief): Correct line drawing positions. Pixel
6912 positions are for the middle of lines under X.
6914 * xdisp.c (try_window_id): Always search for the cursor by setting
6915 w->cursor.vpos = -1. Search in unchanged rows at the top and
6916 bottom if cursor not found in displayed lines.
6917 (display_mode_line): First extend face, then set right shadow
6918 flag. Otherwise the wrong glyph gets the right shadow.
6920 * dispnew.c (direct_output_for_insert): Give up if line contains
6921 a tab. The number of spaces inserted for a tab changes if we
6922 insert glyphs in front of it.
6924 * xterm.c (x_list_fonts): Changes undone because the Lisp
6925 implementation for make-face-smaller, make-face-larger, and
6926 make-face-fixed can do without them.
6928 * xfns.c (Fx_list_fonts): Original x-list-fonts from x-list-font.c
6931 * xdisp.c (try_window_id): First compute beg_unchanged, then
6932 compare with window start pos.
6934 * xfns.c (Fx_face_fixed_p): Determine whether a face has a
6936 (syms_of_xfns): defsubr for x-face-fixed-p.
6938 * xterm.c (x_erase_phys_cursor): If row containing cursor is not
6939 enabled, don't do anything because this row will be newly drawn
6940 anyway and because we can additionally no longer determine the row
6943 * xdisp.c (display_line): Bug fix cursor positioning.
6945 * xfns.c (x-list-fonts): Copied from x-list-fonts.c; #include
6946 removed. x-list-fonts.c is now obsolete.
6947 (Qfixed, Qvariable): Moved here from xfaces.c.
6949 1998-01-14 Gerd Moellmann <gerd@gnu.org>
6951 * xdisp.c (display_line): Set row->ends_at_zv_p based on
6952 FETCH_BYTE for truncated lines.
6953 (display_line): Set cursor differently.
6954 (display_line): Fixed bug setting last_pos_on_this_line wrong
6955 for truncated lines.
6957 * dispnew.c (adjust_glyph_matrix): Always adjust for frame-based
6960 * window.c (Fsplit_window): Adjust glyphs before setting buffer.
6962 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
6963 assertion that character dimensions are not zero.
6965 * xterm.c (x_load_font): adjust_glyphs_for_font_change while
6968 * xdisp.c (decode_mode_spec): Faster implementation of line number
6971 * xterm.c (x_draw_row_bitmaps): Clear flags area before drawing
6972 bitmaps if bitmaps don't fill the entire area.
6973 (draw_bitmap): Draw bitmaps horizontally centered in flags area.
6975 * xterm.h (FRAME_FLAGS_BITMAP_HEIGHT): Macro giving the
6976 pixel height of flags bitmaps.
6978 * frame.h (FRAME_FLAGS_AREA_COLS): Use FRAME_X_FLAGS_AREA_COLS.
6979 (FRAME_FLAGS_AREA_WIDTH): Ditto.
6981 * xterm.h (FRAME_FLAGS_BITMAP_WIDTH): Macro giving the width
6982 in pixels of a flags area of a frame.
6983 (FRAME_X_FLAGS_AREA_WIDTH): Removed.
6984 (FRAME_X_FLAGS_AREA_COLS): Macro giving the number of columns
6985 occupied by a flags area.
6987 1998-01-13 Gerd Moellmann <gerd@gnu.org>
6989 * xdisp.c (hscroll_window_tree): Remove test for non-nil
6992 * dispnew.c (adjust_glyph_matrix): Check redisplay_p if
6995 * xdisp.c (display_line): Correct wrong calculation of row->x for
6996 the case of nglyphs == 1.
6997 (hscroll_window_tree): Renamed from hscroll_windows.
6998 (hscroll_windows): New function calling hscroll_window_tree that
6999 clears desired matrices on a frame when hscroll has been changed.
7000 (redisplay_p): Global flag set during redisplay.
7001 (redisplay_internal): Set and clear redisplay_p.
7003 * xfaces.c (min_char_bounds): Add assertion that width and height
7004 are not zero at the end. Initialize *height and *width to -1,
7005 instead of using BITS_PER_SHORT. If font has min_bounds.width
7006 zero, use its max_bounds.width.
7008 * x-list-font.c (Fx_list_fonts): Check INTEGERP or FLOATP for
7011 1998-01-12 Gerd Moellmann <gerd@acm.org>
7013 * dispnew.c (adjust_glyph_matrix): Do nothing if sizes haven't
7014 changed. Don't clear desired matrices.
7016 * xdisp.c (hscroll_windows): Compute pt after setting
7018 (redisplay_window): Don't do cursor movement based on current
7019 matrix if just_this_one_p is zero.
7021 * x-list-font.c (Fx_list_fonts): Additional parameter fixed.
7022 specifying that fixed-width, variable-width fonts or both
7025 * xfaces.c (Qfixed, Qvariable): Symbols for use by x-list-fonts.
7026 (syms_of_xfaces): Initialize them.
7028 * xterm.c (x_list_fonts): Include auto-scaled fonts. Extend
7031 1998-01-11 Gerd Moellmann <gerd@acm.org>
7033 * xdisp.c (display_mode_line): Extend face to end of line.
7035 * xdisp.c (echo_area_display): Don't call display_string with
7036 echo_area_glyphs_length == 0 which would mean infinite precision.
7037 (redisplay_internal): Adjust window_end_vpos if necessary.
7039 1998-01-07 Gerd Moellmann <gerd@acm.org>
7041 * xdisp.c (display_line): Set it->ends_at_zv_p differently.
7043 1998-01-05 Gerd Moellmann <gerd@acm.org>
7045 * xdisp.c (get_row_start_continuation_line_width): Removed.
7046 (init_iterator_to_row_start): Set it.current_x from row.
7047 (try_window_id): Set it.continuation_lines_width directly from
7050 * xdisp.c (hscroll_windows): Use w->pointm if window is not
7052 (hscroll_windows): Center cursor in window.
7053 (hscroll_windows): Call move_iterator_in_display_line_to.
7055 1998-01-04 Gerd Moellmann <gerd@acm.org>
7057 * xdisp.c (hscroll_windows): Check hscroll < 0.
7058 (redisplay_window): Allow quick cursor movement if overlay arrow
7059 but frame uses window-based redisplay.
7060 (display_line): Take special case for nglyphs == 1 out of #if 0.
7061 (display_line): Set row->ends_at_zv_p after the loop displaying
7062 glyphs because ZV can be in truncated text.
7063 (hscroll_windows): Use init_iterator_to_row_start.
7065 * dispnew.c (scrolling_window): Calculation of overlapping
7067 (row_equal_p): Compare continued_p and continuation_line_p.
7069 1998-01-02 Gerd Moellmann <gerd@acm.org>
7071 * xterm.c (x_get_mode_line_face_gc): Renamed from
7072 x_get_modeline_face_gc.
7074 * xdisp.c (TEXT_PROP_DISTANCE_LIMIT): Max. distance from current
7075 buffer position to look for text properties.
7076 (get_face_from_cursor_pos): Use it.
7077 (compute_face_at_iterator_position): Use it.
7078 (next_element_from_buffer): Use it.
7080 * dispnew.c (scrolling_window): Decrement run's y-position
7081 when extending it backwards.
7083 * xterm.c (do_line_dance): Don't ever copy more than window height.
7085 1998-01-01 Gerd Moellmann <gerd@acm.org>
7087 * xdisp.c (redisplay_window): Cursor motion in unchanged
7088 matrix---use MATRIX_ROW_.*_IN_MIDDLE_OF_CHAR_P.
7089 (init_iterator_to_next_row_start): Special handling of lines
7090 ending in middle of char removed.
7091 (hscroll_windows): Hscroll windows only if window_end_valid is not
7093 (try_window_reusing_current_matrix): Call hscroll_windows.
7094 (init_iterator_to_row_start): Initialize iterator for display
7095 starting at a position given by a glyph_row->start.
7096 (redisplay_window): Don't use vmotion because it gives wrong
7097 results if lines are continued and variable width fonts are used.
7099 * dispextern.h (struct glyph_pos): New member dpvec_index.
7100 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test if row ends in the
7101 the middle of a character.
7102 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test if row starts in
7103 the middle of a character.
7105 * xdisp.c (set_iterator_to_next): Increment it->dpvec_index, reset
7107 (next_element_from_display_vector): Use it->dpvec_index.
7108 (reseat_iterator): Reset it.
7109 (init_iterator): Reset it.
7110 (setup_iterator_dpvec_from_glyph_pos): Set up it->dpvec and
7111 it->pos.dpvec_index from a glyph_pos structure.
7112 (init_iterator_from_glyph_pos): Call the function above.
7113 (reseat_iterator_to_glyph_pos): Ditto.
7115 * dispnew.c (direct_output_forward_char): Don't use this method at
7116 overlay boundaries or near invisible text.
7117 (direct_output_forward_char): Step through glyph row to find
7120 * xterm.c (x_get_cursor_gc): Don't return cursor_gc for font ==
7121 frame font if line height differs from font height.
7123 * xdisp.c (set_iterator_to_next): Renamed from
7124 move_iterator_forward to avoid confusion with other move_.*
7127 * dispextern.h (FACE_RELIEF_P): Renamed from FACE_3D_P.
7129 1997-12-31 Gerd Moellmann <gerd@acm.org>
7131 * xterm.c (x_get_cursor_gc): Renamed from x_cursor_gc to use the
7132 same naming convention as for other GC functions.
7133 (draw_glyphs): Don't fill background when drawing a cursor and
7134 font height is less than line height.
7136 1997-12-30 Gerd Moellmann <gerd@acm.org>
7138 * xdisp.c (init_display_iterator.*): Renamed to shorter names
7141 * xdisp.c (move_iterator_forward): Restore it->len from
7142 it->dpvec_char_len if dpend reached.
7143 (get_next_display_element): Don't consume translated char
7145 (display_line): Don't set this_.* variables if row is continued.
7146 (start_display): Move to start of continuation line if ending
7147 up at end of continued line.
7149 * dispextern.h (struct display_iterator): New member dpvec_char_len.
7151 * xdisp.c (move_iterator_in_display_line_to): Check TO_POS after
7152 checking TO_X and continuation lines.
7153 (get_last_unchanged_at_beg_row): If first_changed_pos is the end
7154 of a continued line, don't consider this line as unchanged because
7155 it may no longer be continued.
7157 1997-12-29 Gerd Moellmann <gerd@acm.org>
7159 * xdisp.c (try_window_id): Catch the case that moving over
7160 continuation lines moves first_unchanged_at_end_row to a row not
7163 * dispextern.h (struct glyph_row): New member
7164 continuation_lines_width. Member continuation_line_p removed.
7165 (MATRIX_ROW_CONTINUATION_LINE_P): Non-zero if row displays a
7167 * xdisp.c (display_line): Set row->continuation_lines_width.
7168 (get_row_start_continuation_line_width): Set continuation lines
7169 width of iterator from continuation lines width of glyph row.
7170 (get_row_start_continuation_line_width): Make it inline.
7171 (set_window_cursor): Make it inline.
7172 (try_window_id): Use MATRIX_ROW_CONTINUATION_LINE_P.
7173 (Fdump_redisplay_state): Ditto.
7175 * dispnew.c (update_window_line): Use MATRIX_ROW_CONTINUATION_LINE_P.
7176 * xterm.c (x_draw_row_bitmaps): Use MATRIX_ROW_CONTINUATION_LINE_P.
7178 * xdisp.c (try_window_id): Set it.hpos and it.current_x to zero
7179 after determining the continuation lines width for
7180 last_unchanged_at_beg_row.
7182 * xterm.c (x_draw_row_bitmaps): Let overlay arrow have precedence.
7184 * xdisp.c (display_mode_line): Handle 3D faces only on frames
7185 which support faces.
7186 (init_display_iterator): Ditto.
7187 (move_iterator_via_matrix): Skip over truncation glyph at the row
7188 start on terminal frames.
7189 (hscroll_windows): Choose hscroll margin differently for window
7190 system and terminal frames.
7192 1997-12-28 Gerd Moellmann <gerd@acm.org>
7194 * xdisp.c (hscroll_windows): Change hscroll of windows.
7195 (redisplay_internal): Call it.
7197 * dispnew.c (direct_output_for_insert): Give up if a glyph
7198 doesn't fit completely on the line.
7199 (direct_output_forward_char): Give up for non-ASCII chars.
7200 (direct_output_forward_char): Set redisplay_performed_directly_p.
7202 * dispextern.h (struct display_iterator): Make first_visible_x
7203 and last_visible_x ints; this is for very long truncated lines.
7205 * xdisp.c (move_iterator_in_display_line_to): Separate check for
7206 MOVE_X_REACHED only if it->nglyphs == 0. This fixes cursor
7207 positioning problems with the mouse.
7208 (move_iterator_in_display_line_to): Truncate lines if it->current_x
7209 >= it->last_visible_x instead of >.
7210 (display_line): Ditto.
7212 * xterm.c (draw_glyphs): Draw rectangles if font could not be
7214 (XTproduce_glyphs): Calculate pixel_width for composite chars and
7215 non-ASCII chars differently. Always produce 1 glyph for composite
7216 chars. If font not found, use CHARSET_WIDTH to calculate width of
7218 (x_get_char_font_and_encoding): Return null if font could not be
7219 loaded. Reset font to null if fontset could not be loaded.
7220 (draw_glyphs): Fill background if font not found.
7221 (draw_glyphs): Unused parameter just_foreground_p removed. New
7222 parameter composite_glyph.
7223 (draw_glyphs): Use enumeration for parameter hl.
7224 (draw_glyphs): Pass a display area relative x-position to
7225 draw_glyphs when calling it recursively for composite chars.
7227 1997-12-27 Gerd Moellmann <gerd@acm.org>
7229 * xterm.c: Patches from handa.etl.go.jp integrated.
7230 (draw_glyphs): Don't rely on x_get_char_font_and_encoding to
7233 * xdisp.c (move_iterator_in_display_line_to): Check to_x
7236 * xterm.c (x_draw_relief): Draw relief lines.
7237 (draw_glyphs): Call x_draw_relief.
7239 1997-12-26 Gerd Moellmann <gerd@acm.org>
7241 * xfns.c (x_make_gc): Create relief GC's.
7243 * widget.c (create_frame_gcs): Create GC's for relief drawing.
7244 (setup_frame_gcs): Initialize them.
7245 (EmacsFrameDestroy): Free them.
7247 * xdisp.c (try_window_id): Get continuation lines width if
7248 last_unchanged_at_beg_row is continued or a continuation line.
7249 (move_iterator_via_matrix): Don't do it for mini-buffer windows.
7250 (redisplay_window): Case point has changed, and it has not
7251 moved off the frame. Don't increment row if PT equals the row
7252 end if the row ends in ZV.
7254 * xterm.c (x_draw_row_bitmaps): New function to draw bitmaps.
7255 (expose_line): Call it.
7256 (x_after_update_window_line): Call it.
7258 * xdisp.c (display_line): Reset continuation_lines_width when ZV
7261 * xterm.c (x_after_update_window_line): Draw continuation line
7264 * dispnew.c (update_window_line): Call
7265 after_update_window_line_hook when row's continuation_line_p
7268 * xterm.c (draw_bitmap): Draw new bitmap CONTINUATION_LINE_BITMAP.
7270 * xdisp.c (display_line): Handle continued lines on window system
7271 frames differently since continuation glyphs are not displayed.
7272 (move_iterator_in_display_line_to): Ditto.
7273 (move_iterator_in_display_line_to): Take the mini-buffer prompt
7275 (move_iterator_vertically_backward): Handle dy == 0 specially.
7276 (redisplay_window): Catch the case of small windows when
7277 recentering where moving back window_height/2 moves us beyond the
7278 top of the display area of the window.
7280 1997-12-18 Gerd Moellmann <gerd@acm.org>
7282 * xdisp.c (move_iterator_vertically_backward): Unused parameter
7285 1997-12-17 Gerd Moellmann <gerd@acm.org>
7287 * dispnew.c (direct_output_forward_char): Correct new cursor
7290 1997-12-16 Gerd Moellmann <gerd@acm.org>
7292 * xterm.c (x_after_update_window_line): Remove unused parameters.
7293 (XTclear_end_of_line): Clear to display_height instead of
7296 * dispnew.c (set_frame_matrix_frame): Make it INLINE.
7297 (update_window_line): Call after_update_window_line_hook if
7298 rows have different y-positions, or different height.
7300 1997-12-14 Gerd Moellmann <gerd@acm.org>
7302 * frame.h (FRAME_MODE_LINE_PIXEL_HEIGHT): Removed.
7304 * window.c (coordinates_in_window): Call frame_mode_line_height.
7306 * xterm.c (x_draw_3d_border): Removed.
7307 (x_draw_row_borders): Removed.
7309 * dispnew.c (update_window): References to
7310 FRAME_MODE_LINE_BORDER_WIDTH removed.
7312 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Removed.
7313 (FRAME_MODE_LINE_HEIGHT): Removed.
7315 * xterm.c (draw_3d_borders_p): Removed.
7316 (draw_glyphs): Ditto.
7317 (XTwrite_glyphs): Ditto.
7318 (expose_line): Ditto.
7319 (x_initialize): Ditto.
7321 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Call
7322 frame_mode_line_height.
7324 * term.c (frame_mode_line_height): Get the pixel height of a
7326 (frame_mode_line_height_hook): Hook to implement system dependent
7329 * xterm.c (x_initialize): Set the hook.
7330 (XTframe_mode_line_height): X version of frame_mode_line_height.
7332 * xdisp.c (echo_area_display): Call gobble_input to flush the X
7334 (display_string): Don't add right truncation mark if line ends in
7336 (init_display_iterator): If called with modeline_p non-zero, set
7337 face_id to 1, which is the id of the mode line face.
7339 * keyboard.c (cmd_error_internal): Write to stderr if selected
7340 frame is Vterminal_frame under X. This is the case when a font
7341 cannot be loaded when Emacs starts. Replace test for
7342 FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
7344 * xfaces.c (compute_overlay_string_char_face): Compute the
7345 face of a character in an overlay string.
7346 * xterm.h (compute_overlay_string_char_face): Prototype.
7347 * xdisp.c (compute_face_at_iterator_overlay_string_position):
7350 * xdisp.c (set_iterator_to_next_overlay_string): Formerly
7351 set_iterator_to_next_overlay.
7352 (struct overlay_entry): Structure used to sort overlay strings.
7353 (compare_overlay_entries): Compare overlay strings.
7354 (load_iterator_with_overlay_strings): Load a chunk of overlay
7356 (get_overlay_strings_at_iterator_position): Call it.
7357 (next_element_from_overlay_string): Set it->object to the overlay
7358 string. Prepare for setting it->position to a string position.
7359 (get_overlay_strings_at_iterator_position): Renamed from
7360 get_overlays_at_iterator_position.
7361 (setup_iterator_overlay_strings_from_glyph_pos): Changed to load
7362 chunks of overlay strings.
7363 (load_overlay_strings): Renamed from load_iterator_overlay_strings.
7365 * dispextern.h (struct display_iterator): New vector
7366 overlay_strings and new member n_overlay_strings---formerly
7367 overlays and n_overlays.
7368 (struct glyph_pos): Remove after_string_p; overlay_index
7369 renamed to string_index.
7371 1997-12-13 Gerd Moellmann <gerd@acm.org>
7373 * xdisp.c (copy_iterator): Increment n_iterator_overlay_vectors
7374 when allocating a vector.
7375 (release_iterator): Removed.
7376 (restore_iterator): Removed.
7377 (copy_iterator): Removed.
7379 1997-12-08 Gerd Moellmann <gerd@acm.org>
7381 * xdisp.c (redisplay_window): Use make_empty_enabled_row for
7382 clearing a mini-buffer window that is not active.
7383 (redisplay_window): Do not scroll one line too early when last
7384 window line is completely visible.
7385 (init_display_iterator): Leave some room to display the cursor
7386 after the last glyph on a continued line.
7388 * xterm.h (struct x_output): trunc_area_extra renamed
7390 (FRAME_X_FLAGS_AREA_WIDTH): Renamed from FRAME_X_TRUNC_WIDTH.
7392 * dispnew.c (update_window_line): Call
7393 after_update_window_line_hook when current row is not enabled
7394 which is the case after a frame has been cleared.
7396 * xdisp.c (display_mode_line): Reset row flags for truncation
7397 on right side for the mode line.
7399 * xterm.c (bitmap_type): Type of bitmap to display in flags
7401 (x_after_update_window_line): Use the enum.
7402 (draw_bitmap): Ditto.
7404 1997-12-07 Gerd Moellmann <gerd@acm.org>
7406 * xterm.c (x_clip_to_row): Include width of both flag areas.
7407 (do_line_dance): Ditto.
7408 (expose_window_tree): Ditto.
7409 * dispnew.c (update_window_line): Call
7410 after_update_window_line_hook for right truncation and continuation.
7411 * xdisp.c (init_display_iterator): Don't subtract width of
7412 continuation glyphs for window-based redisplay.
7413 * xterm.c (draw_bitmap): Draw continuation bitmap.
7414 * widget.c (set_frame_size): Double trunc_area_extra.
7415 (EmacsFrameSetCharSize): Ditto.
7416 * xfns.c (x_figure_window_size): Ditto.
7417 * xterm.c (x_set_window_size): Ditto.
7418 (x_after_update_window_line): Draw right truncation mark.
7420 * xterm.c (draw_glyphs): Bug fix buffer overrun.
7422 * window.h: Include blocker around dispextern.h removed.
7424 * eval.c (Feval): Check interrupt_input_block == 0.
7426 * dispextern.h (struct display_iterator): Former ovstr made a
7427 Lisp_Object overlay_string. New next_ovstr_face_check_pos and
7428 next_ovstr_invisble_check_pos; check at these positions for
7429 face changes and changes in invisible text property.
7430 (struct glyph_pos): Former ovlen now overlay_string_index.
7432 * xdisp.c (setup_iterator_overlays_from_glyph_pos): Set
7434 (set_iterator_to_next_overlay_string): Set overlay_string and
7435 pos.overlay_string_index.
7436 (get_overlays_at_iterator_position): Use overlay_string and
7437 overlay_string_index.
7438 (next_element_from_overlay_string): Use overlay_string and
7439 overlay_string_index.
7440 (move_iterator_forward): Increment overlay_string_index.
7441 (try_window_id): Use overlay_string and overlay_string_index.
7442 (move_iterator_forward): At end of dpvec, maybe use method
7443 next_element_from_overlay_string for the case a character from an
7444 overlay string was translated via a display table.
7445 (reseat_iterator_to_string): Take a Lisp string.
7446 (display_string): Pass a Lisp string to reseat_iterator_to_string.
7447 (compute_face_at_iterator_overlay_string_position): Compute face
7448 based on text properties for an overlay string.
7449 (next_element_from_overlay_string): Check invisible and face text
7451 (set_iterator_to_next_overlay_string): Restore face id before
7452 overlay strings when no more overlay strings are found to return.
7453 Initialize next_ovstr_.*check_pos for each new overlay string
7454 roï
\0ðoï
\0ðÃâ
\0ðoï
\0ðoï
\0ðTÿ
\0ðLá
\0ðoï
\0ðase_face): Made public.
7455 (merge_face_list): Ditto.
7456 (intern_computed_face): Ditto.
7458 * xdisp.c (redisplay_window): Cursor movement in unchanged
7459 window if PT > w->last_point. Goto try_to_scroll if bottom Y
7460 of row is > instead of >= last_y.
7462 * buffer.h (overlays_at): Function prototype.
7464 * xdisp.c (reseat_iterator_to_string): Clear iterator position.
7465 * dispextern.h (GET_NEXT_DISPLAY_ELEMENT): Removed.
7467 * xdisp.c (release_iterator): Release dynamically allocated
7468 memory of a display_iterator.
7469 (copy_iterator): Copy an iterator.
7470 (restore_iterator): Restore an iterator from a backup copy.
7471 (global): Use the functions above.
7472 * window.c (Fpos_visible_in_window_p): Call release_iterator.
7473 * dispnew.c (direct_output_for_insert): Call release_iterator.
7475 * dispextern.h (struct display_iterator): Allocate overlays
7478 1997-12-06 Gerd Moellmann <gerd@acm.org>
7480 * Makefile.in (window.o): Depends on dispextern.h.
7482 * buffer.c (overlays_at): Make it work when extending vectors
7483 and an initial vector of zero size.
7485 * xdisp.c (set_iterator_to_previous_visible_line_end): Renamed
7486 from set_cursor_to_previous_visible_line_end.
7487 (set_iterator_to_next_visible_line_start): Renamed from
7488 set_cursor_to_next_visible_line_end.
7489 (set_next_iterator_stop_pos): Renamed from set_next_stop_pos.
7490 (compute_face_at_iterator_position): Renamed from
7491 compute_cursor_face.
7492 (set_iterator_to_next_overlay_string): Renamed from
7493 cursor_to_next_overlay_string.
7494 (get_overlays_at_iterator_position): Renamed from
7495 get_overlays_for_cursor.
7496 (reseat_iterator): Renamed from reseat_cursor.
7497 (setup_iterator_overlays_from_glyph_pos): Renamed from
7498 setup_overlays_from_pos.
7499 (init_string_iterator): Renamed from init_string_cursor.
7500 (get_next_display_element): Renamed from next_display_element.
7501 (move_iterator_forward): Renamed from advance_display_cursor.
7502 (get_overlays_at_iterator_position): Allocate overlays vector
7505 * xdisp.c: display_cursor renamed display_iterator.
7506 * dispextern.h: Ditto.
7509 1997-12-01 Gerd Moellmann <gerd@acm.org>
7511 * window.c (mark_window_cursors_off): Function comment added.
7512 (window_topmost_p, window_rightmost_p): Removed because not used.
7514 1997-11-30 Gerd Moellmann <gerd@acm.org>
7516 * emacs.c (main): Function prototypes removed in profiling code.
7517 Use safe_bcopy as start of text.
7519 * dispnew.c (update_frame_line): update_line -> update_frame_line;
7520 mirrored_make_current -> make_current.
7522 * xdisp.c: (store_frame_title_char): New function to store a
7523 single character for the frame title with re-allocation of
7525 (init_xdisp): Intialize frame_title_.* variables to null.
7527 * dispnew.c (quit_error_check): Removed.
7529 * eval.c (Fsignal): Call to quit_error_check removed.
7530 * keyboard.c (quit_throw_to_read_char): Ditto.
7532 1997-11-23 Gerd Moellmann <gerd@acm.org>
7534 * xfaces.c (Fset_face_attribute_internal): Allow nil relief
7535 to mean a zero relief.
7537 * .gdbinit (xprintsym): Print a symbol.
7538 (xbacktrace): Print a backtrace of Lisp function calls from
7541 1997-11-19 Gerd Moellmann <gerd@acm.org>
7543 * dispnew.c (new_glyph_matrix): Increment glyph_matrix_count
7545 (glyph_matrix_count, glyph_pool_count): Define unconditionally.
7546 (free_glyph_matrix): Decrement glyph_matrix_count unconditionally.
7547 (check_glyph_memory): Define function body unconditionally.
7549 1997-11-17 Gerd Moellmann <gerd@acm.org>
7551 * dispnew.c (scrolling_window): Alternative version of this
7554 1997-11-16 Gerd Moellmann <gerd@acm.org>
7556 * dispnew.c (make_empty_enabled_row): Make an empty, enabled row
7557 of height CANON_Y_UNIT.
7558 * dispextern.h: Prototype for that function.
7559 * xdisp.c (echo_area_display): Don't use display_string to
7560 produce empty rows. Use make_empty_enabled_row instead.
7562 * dispnew.c (scrolling_window): New version using diff-like
7563 algorithm activated.
7565 1997-11-15 Gerd Moellmann <gerd@acm.org>
7567 * dispnew.c (clear_current_matrices): Clear matrix of menu_bar_window
7568 (clear_desired_matrices): Ditto.
7569 (adjust_frame_glyphs_for_window_redisplay): Use FRAME_WINDOW_WIDTH
7570 for menu_bar_window.
7572 * alloc.c (mark_object): Mark menu_bar_window of frames.
7574 * xterm.c (XTupdate_window_end): Don't display cursor if
7577 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Don't
7579 (update_window): Don't set cursor if pseudo_window_p.
7581 * dispextern.h (WINDOW_WANTS_MODELINE_P): Test pseudo_window_p.
7583 * window.h (struct window): New flag pseudo_window_p set to
7584 1 for windows that aren't really part of the window tree, like
7585 menu_bar_window's of frames.
7586 * window.c (make_window): Initialize it.
7587 (replace_window): Ditto.
7588 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
7590 * frame.c (make_frame): Initialize menu_bar_window to nil.
7592 * xterm.c (XTget_display_info): FACE_SHADOW_THICKNESS renamed
7595 * xfaces.c (copy_face): shadow_thickness -> relief.
7597 (merge_faces): Ditto.
7598 (compute_base_face): Ditto.
7599 (Fset_face_attribute_internal): Ditto.
7600 * dispextern.h (struct face): Ditto.
7602 * dispnew.c (update_frame): Update menu_bar_window of the frame if
7605 * xdisp.c (display_menu_bar): Display the menu bar in
7606 f->menu_bar_window if appropriate.
7607 (display_mode_line): Use MATRIX_MODE_LINE_ROW.
7609 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Allocate
7610 dummy window and window matrices for f->menu_bar_window.
7611 (free_glyphs): Free the dummy window and its glyph matrices.
7613 * frame.h (struct frame): New member menu_bar_window.
7615 1997-11-09 Gerd Moellmann <gerd@acm.org>
7617 * dispnew.c (scrolling_window): New version with diff-like
7620 * xdisp.c (try_window_reusing_current_matrix): If new_start >
7621 old_start always start displaying at start of
7622 first_row_to_display. The previous scheme failed if the last row
7625 * dispnew.c (update_window): Remove cost calculations. Remove
7626 redundant preempt_count calculations.
7628 * xterm.c (x_clip_to_row): Set clipping for non-text rows
7631 * dispnew.c (update_window): Use WINDOW_WANTS_MODELINE_P.
7633 * window.c (syms_of_window): Functions for marginal areas if
7634 WITH_MARGINAL_AREAS is defined.
7636 * xdisp.c (try_window_reusing_current_matrix): Trace fprintf
7639 * dispnew.c (scrolling): Call line_hash_code because hash values
7640 are not set in the frame matrix.
7642 * xdisp.c (try_window_id): Fix scrolling for terminal frames.
7643 (redisplay_window): Check line_ins_del_ok before calling
7645 (try_window_reusing_current_matrix): Give up for terminal frames
7646 if window is not full width or we cannot insert/delete lines.
7647 (try_window_reusing_current_matrix): Fixed scrolling for terminal
7650 * alloc.c (mark_glyph_matrix): Bug fix - pass pointer to
7651 Lisp_Object to mark_object.
7653 * xdisp.c (sync_frame_with_window_matrix_rows): Make frame and
7654 window rows have the same glyph pointers.
7655 (try_window_id): Call it.
7657 * alloc.c (mark_glyph_matrix): Function to mark Lisp objects in
7659 (mark_object): Call it.
7661 * xdisp.c (insert_left_trunc_glyphs): Use 0 object in glyphs for
7663 (display_line): Ditto.
7664 (display_line): Ditto for DISP_CONTINUATION.
7665 (display_line): Truncation on right: test current_x >
7667 (skip_in_display_line_to): Ditto.
7668 (skip_via_matrix): Stop skipping in glyph row at face extending
7669 glyphs or at padding spaces.
7671 * dispnew.c (fill_up_glyph_row_with_spaces): Comment extended.
7673 * xdisp.c (display_line): Use glyph->object == 0 for padding
7675 (redisplay_window): Don't let cursor move over padding
7678 * dispextern.h (struct glyph): Fix comment for object.
7680 1997-11-08 Gerd Moellmann <gerd@acm.org>
7682 * dispextern.h (WINDOW_WANTS_MODELINE_P): Non-zero if a window
7684 * xdisp.c (redisplay_window): Use it.
7685 (display_mode_line): Check that window wants mode line.
7687 1997-11-03 Gerd Moellmann <gerd@acm.org>
7689 * xdisp.c (display_menu_bar): Enable menu bar rows.
7691 * xterm.c (x_draw_hollow_cursor): X positions based on text area.
7692 (x_erase_phys_cursor): Ditto.
7693 (x_draw_bar_cursor): Ditto.
7695 1997-11-02 Gerd Moellmann <gerd@acm.org>
7697 * dispnew.c (update_marginal_area): Update a marginal area.
7698 (update_text_area): Update text area.
7699 (update_window_line): Call both.
7701 * xterm.c (XTclear_end_of_line): Translate coordinates area
7704 * dispnew.c (updated_area): Row area being updated in
7706 (update_window_line): Set it.
7707 (update_marginal_area): Clear to end of line if not in text area.
7709 * window.c (Fset_window_margins): Increment
7710 windows_or_buffer_changed. Adjust glyphs.
7712 * dispextern.h (WINDOW_TEXT_TO_FRAME_PIXEL_X): Convert text
7713 area X coordinates to frame coordinates.
7714 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH): Width of left marginal area.
7715 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH): Same for right area.
7716 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Same for text area.
7718 * xterm.c (draw_glyphs): Use text area width as display width.
7720 * xdisp.c (init_display_info): Subtract widths of marginal areas
7721 from last_visible_x.
7723 * alloc.c (mark_object): Mark objects in glyphs only if they are
7724 overlays. Mark only if current_matrix != 0. Activate the code.
7726 * window.c (Fset_window_margins): Set margins.
7727 (Fwindow_margins): Return margin area widths.
7728 (syms_of_window): Add defsubr's.
7730 * window.h (struct window): left_margin_width, right_margin_width.
7732 * xfns.c (x_set_trunc_area_width): Set truncation pixel width
7735 * frame.h (FRAME_TRUNC_COLS): Number of columns occupied by
7736 truncation/overlay arrow area.
7737 (struct frame): trunc_area_pixel_width, and _cols.
7739 * window.c (Fsplit_window): Use it.
7741 * window.c (Fsplit_window): Set cursor vpos to -1 after
7743 (Fsplit_window): SUbtract/add FRAME_TRUNC_WIDTH for horizontally
7746 * dispnew.c (set_window_cursor_after_update): Accept out
7747 of bounds cursor positions.
7749 * xdisp.c (redisplay_internal): Check that after cursor motion
7750 within line, PT is on same line.
7752 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Don't subtract
7755 * xterm.h (struct x_output): trunc_area_extra.
7756 (CHAR_TO_PIXEL_WIDTH): Add in trunc_area_extra.
7757 (PIXEL_TO_CHAR_WIDTH): Subtract it.
7758 * widget.c (set_frame_size): Set it.
7759 (EmacsFrameSetCharSize): Ditto.
7760 * xfns.c (x_figure_window_size): Ditto.
7761 * xterm.c (x_set_window_size): Ditto.
7763 * dispnew.c (check_matrix_invariants): First try to check window
7766 * xdisp.c (try_window_reusing_current_matrix): Try window
7767 redisplay with different window start.
7769 1997-11-01 Gerd Moellmann <gerd@acm.org>
7771 * window.c (make_window): Set window_end_pos/vpos.
7772 (Fsplit_window): Zero last_cursor, window_end_valid.
7773 (Fset_window_buffer): Set window_end_vpos, zero last_cursor.
7775 * dispnew.c (check_matrix_invariants): Check window_end_pos/vpos.
7777 1997-10-31 Gerd Moellmann <gerd@acm.org>
7779 * window.c (make_window): Initialize last_cursor.
7780 (replace_window): Ditto.
7782 1997-10-29 Gerd Moellmann <gerd@acm.org>
7784 * window.h: New member last_cursor.
7785 * dispnew.c (direct_output_for_insert): Set it.
7786 (direct_output_forward_char): Ditto.
7787 * xdisp.c (redisplay_internal): Ditto.
7789 1997-10-28 Gerd Moellmann <gerd@acm.org>
7791 * xdisp.c (redisplay_internal): Optimization 1 change partially
7792 reverted. Check this again later.
7793 (skip_via_matrix): Remove redundent test for
7794 MATRIX_ROW_DISPLAYS_TEXT_P.
7796 1997-10-27 Gerd Moellmann <gerd@acm.org>
7798 * dispnew.c (update_window_line): Call
7799 after_update_window_line_hook only for interesting constellations.
7800 (free_glyph_matrix): Fix memory leak.
7802 * window.h: Include blocker WINDOW_H_INCLUDED, include
7804 (struct window): phys_cursor_glyph as struct glyph. * window.c
7805 (make_window): Initialize it.
7806 (replace_window): Ditto.
7807 * dispnew.c (free_window_matrices): Remove freeing of
7809 (check_matrix_invariants): Renamed from check_current_matrix_...
7810 * xterm.c: All references to phys_cursor_glyph changed.
7812 * dispextern.h (DISPEXTERN_H_INCLUDED: New include blocker.
7814 * xfaces.c: Comment update.
7816 * window.h (struct window): Make phys_cursor_glyph a struct glyph
7817 pointer. Remove phys_cursor_ascent, descent, etc.
7818 * dispnew.c (free_window_matrices): Free it.
7819 * window.c (make_window): Allocate it.
7820 (replace_window): Ditto.
7821 * xterm.c (x_draw_phys_cursor_glyph): Draw it.
7822 (x_display_and_set_cursor): Fill it.
7823 (x_phys_cursor_in_rect_p): Use it.
7824 (x_draw_hollow_cursor): Ditto.
7825 (x_draw_bar_cursor): Ditto.
7826 (x_erase_phys_cursor): Ditto.
7828 * xdisp.c (skip_in_display_line_to): Use SET_INFO_FROM_CURSOR.
7830 * xterm.c (XTget_display_info): Handle 3D facess.
7831 (draw_glyphs): Ditto.
7833 * xdisp.c (Fdump_redisplay_state): Change interactive spec to "p".
7835 * xfaces.c (Fset_face_attribute_internal): New face attribute
7837 (copy_face): Handle shadow_thickness.
7839 (merge_faces): Ditto.
7840 (compute_base_face): Ditto.
7842 * dispextern.h (struct display_cursor): New member start_of_3d_run_p.
7843 (struct display_info): Ditto.
7844 (SET_INFO_FROM_CURSOR): Transfer it to display_info.
7845 * xdisp.c (compute_cursor_face): Set it.
7846 (advance_display_cursor): Clear it.
7848 * xdisp.c (init_string_cursor): Initialize face_id to -1.
7849 (init_string_cursor): Init face_id to zero.
7851 * dispextern.h (struct face): New member shadow_thickness.
7853 * xdisp.c (compute_cursor_face): Set limit for text property
7856 * dispnew.c (update_window_line): Try to resynch with current line
7857 to prevent mode line flickering.
7859 1997-10-26 Gerd Moellmann <gerd@acm.org>
7861 * dispnew.c (set_window_cursor_after_update): React again
7862 on cursor_in_echo_area >= 0.
7864 * xdisp.c (echo_area_display): Clear desired matrix before
7866 (display_menu_bar): Clear glyph row instead of hoping it is not
7867 enabled. This is safer.
7869 * dispnew.c (check_current_matrix_invariants): Check only
7872 * xdisp.c (try_window_id): Handle window end setting in case of
7873 display to end of window, but only non-text lines displayed.
7875 * dispnew.c (check_current_matrix_invariants): Check nrows for zero.
7876 (check_current_matrix_invariants): Check used counts.
7880 * dispnew.c (scrolling): Use hash codes from rows.
7882 * xdisp.c (Fdump_redisplay_state): Dump current matrix.
7884 * dispnew.c (scrolling_window): Invalidate conflicting runs.
7886 1997-10-25 Gerd Moellmann <gerd@acm.org>
7888 * dispextern.h (struct glyph_matrix): Flag no_scrolling_p.
7889 * dispnew.c (update_window): Use it.
7890 (clear_glyph_matrix): Clear it.
7891 * xdisp.c (try_window_id): Set it.
7893 * dispextern.h (struct glyph_row): New flag ends_at_zv_p.
7895 * xdisp.c (redisplay_internal): Increment glyph positions differently.
7897 * dispextern.h: More comments etc.
7899 1997-10-24 Gerd Moellmann <gerd@acm.org>
7901 * dispnew.c (set_window_cursor_after_update): Set cursor
7902 for cursor_in_echo_area == 0 to (0, 0).
7904 * dispextern.h (struct glyph_row): New flags continuation_line_p
7905 and displays_text_p.
7906 (MATRIX_ROW_DISPLAYS_TEXT_P): Use displays_text_p.
7907 * xdisp.c (display_line): Set them.
7908 (try_window_id): Move to start of continuation line to find out
7909 continuation_line_width.
7910 (first_unchanged_current_row): Don't retract row if continued,
7913 * xterm.c: Map X coordinates.
7915 1997-10-23 Gerd Moellmann <gerd@acm.org>
7917 * dispnew.c (buffer_posn_from_coords): Translate X for right to
7920 * xdisp.c (display_line): Set right_to_left_p after clearing the row.
7922 * xterm.c (XTclear_end_of_line): Respect right_to_left_p.
7924 * xdisp.c (try_window_id): clear desired matrix if not successul.
7926 * xdisp.c (try_window_id): Call update_window_begin_hook/end_hook.
7928 * dispnew.c (update_window_begin_hook, update_winodw_end_hook):
7929 Set this to functions to be called before/after window updates.
7930 (direct_output_for_insert): Call them.
7931 (update_window): Ditto.
7932 (update_frame): Call update_begin/ update_end for windows.
7934 * xterm.c (XTupdate_window_begin): Called before window updates.
7935 (XTupdate_end): Called after window updates.
7936 (x_initialize): Set hooks to above.
7938 * xdisp.c (init_display_info): Initialize c and len of
7941 * xterm.c (x_get_char_font_and_encoding): Bug fix. Don't load
7942 fonts more than once.
7944 1997-10-22 Gerd Moellmann <gerd@acm.org>
7946 * xdisp.c (display_line): Handle most common case of current_x <
7947 last_visible_x separately.
7949 * dispextern.h (display_element_type): DISP_ELLIPSIS removed.
7951 * dispnew.c (update_window_line): Compare pixel widths of glyphs
7952 so that face extending space doesn't compare equal to normal space
7955 * xdisp.c (display_line): Make sure we have a position for
7956 a line end in an otherwise blank line if face is extended.
7958 * dispnew.c (direct_output_for_insert): Increment row end position.
7960 * window.c (Fpos_visible_in_window_p): Use old meaning of
7963 * xdisp.c (init_display_cursor_from_glyph_pos): New.
7965 * dispextern.h (MATRIX_ROW_FIRST_POS): Use row start.
7967 * dispnew.c (increment_glyph_row_buffer_positions): Adjust
7968 start and end positions in rows.
7969 (increment_glyph_row_buffer_positions): Stop adjusting at
7970 glyphs with positions <= 0.
7972 * dispextern.h (struct glyph_pos): Structure desribing a text
7973 position including position in overlay.
7974 (struct glyph_row): Use it for start and end positions.
7975 (struct display_cursor): Use it.
7977 (display_line): Set row start and end positions.
7979 * dispnew.c (copy_row_except_pointers): Use bcopy and struct
7982 1997-10-21 Gerd Moellmann <gerd@acm.org>
7984 * dispnew.c (update_window): Add scrolling_window again. It's
7985 necessary for scroll_step != 0.
7987 * xdisp.c (redisplay_window): Use vmotion for scroll_step
7990 * xdisp.c (last_unchanged_current_row): Use window_end_vpos.
7992 * xterm.c (XTupdate_end): Flush only for messages.
7994 * xdisp.c (try_window_id): Assert last_unchanged_row >=
7995 first_unchanged_row.
7997 * xterm.c (XTupdate_end): Flush if miniwindow.
7999 * dispnew.c (matrix_row_last_pos): New function.
8000 * dispextern.h (MATRIX_ROW_LAST_POS): Call it.
8001 Large comment moved to xdisp.c.
8003 * xdisp.c (redisplay_window): Bug fix: PT set to value > Z.
8004 (skip_via_matrix): Check window_end_valid instead of
8007 * dispnew.c (scroll_glyph_matrix_range): Bug fix.
8008 (update_window): scrolling_window commented out. It has negative
8009 effect most of the time.
8011 * xdisp.c (try_window_id): Correct parameters to
8012 scroll_glyph_matrix_range.
8014 * xterm.c (XTupdate_end): XFlush commented out.
8016 * window.h: Comments for window_end_pos/vpos.
8018 * xdisp.c (skip_to): assert current_buffer is the buffer
8019 of the window in which we are skipping.
8021 * dispnew.c (update_window_line): Optimized clear_end_of_line.
8023 * xterm.c (draw_glyphs): Bug fix. Return window relative X
8026 1997-10-20 Gerd Moellmann <gerd@acm.org>
8028 * dispextern.h (MATRIX_ROW_LAST_POS): Go back one glyph if this is
8029 a face extending glyph.
8031 * xdisp.c (try_window_id): Check if point will appear.
8032 (set_cursor_from_row): Set cursor position from a glyph row.
8034 * dispnew.c (update_window_line): Write entire line if hash
8035 codes of lines differ.
8037 * dispextern.h (MATRIX_ROW_EXTENDS_FACE_P): Value is non-zero
8038 if glyph row has an infinite width glyph at its end.
8040 * xdisp.c (last_unchanged_current_row): Respect partially visible
8041 lines when looking for the last row displaying text.
8042 (try_window_id): Handle partially visible lines better.
8044 1997-10-19 Gerd Moellmann <gerd@acm.org>
8046 * dispnew.c (update_window): Remove unused variable.
8047 (update_window_line): Simplified.
8049 * xterm.c (x_get_char_font_and_encoding): Handle most common
8050 case at the beginning.
8052 * xdisp.c (advance_display_cursor): Dispatch on method and
8053 order if statements by expected call frequency. Fixed unclosed
8056 * xdisp.c (try_window_id): New implementation.
8058 * dispnew.c (increment_glyph_row_buffer_positions): Capture
8059 rows displaying a line end, only.
8061 1997-10-18 Gerd Moellmann <gerd@acm.org>
8063 * window.c (Fpos_visible_in_window_p): Remove use of window_end_vpos.
8065 1997-10-14 Gerd Moellmann <gerd@acm.org>
8067 * xdisp.c (display_line): Mark empty lines not corresponding to
8068 text with position -1.
8070 * xterm.c (x_erase_phys_cursor): Don't bother to erase cursor if
8071 not within window matrix bounds.
8073 * dispextern.h (struct display_cursor): New member REGION_SHOWING_P.
8074 (struct display_info): NGLYPHS_TO_IGNORE removed.
8075 * xdisp.c: References to NGLYPHS_TO_IGNORE removed.
8079 * xdisp.c (init_display_cursor): Set it.
8080 (display_line): Use it to set W->REGION_SHOWING.
8082 * xdisp.c (skip_via_matrix): Check for overlay arrow.
8084 * region-cache.h: functino prototypes with PROTO.
8086 * dispnew.c (buffer_posn_from_coords): Use -1 as skip position.
8088 * xdisp.c (skip_via_matrix): Check for rows that don't contain
8091 * xterm.c (XTmouse_position): Calculate LAST_MOUSE_GLYPH
8092 rectangle based on minimum character bounds.
8094 * keyboard.c (make_lispy_event): mouse clicks; don't do frame
8095 glyph position calculations.
8096 (make_lispy_movement): Use buffer_posn_from_coords and window
8097 relative coordinates.
8099 * xterm.c (construct_mouse_click): Remove #if 0 case.
8101 * dispextern.h (MATRIX_ROW_BOTTOM_Y): Return bottom pixel y of
8104 * xdisp.c (skip_via_matrix): Skip using current matrix if up to
8107 (redisplay_window): Remove code skipping using current matrix.
8109 1997-10-13 Gerd Moellmann <gerd@acm.org>
8111 * xdisp.c (redisplay_window): Use available current matrix to
8112 skip faster when only point is moved withing the window.
8114 * intervals.c: Include stdio.h.
8115 (find_interval): Trace to stderr to catch some nasty error
8116 that did not yet occur again with tracing.
8119 * dispnew.c (shift_glyph_matrix): Experimental code for handling
8120 cursor positioning on partially visible lines.
8121 (set_window_cursor_after_update): Ditto.
8123 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): bug fix.
8125 * window.h (struct window): start_y removed.
8127 * window.c (make_window): start_y removed.
8128 (replace_window): Ditto.
8130 * xdisp.c (last_max_ascent, last_max_descent): Ascent and
8131 descent values of the last line processed by skip_to.
8132 (redisplay_window): Use them.
8133 (skip_to): Set them.
8135 * dispextern.h (struct display_cursor): New member METHOD.
8137 * xdisp.c: Use function member METHOD.
8139 * xdisp.c (set_next_stop_pos): Determine next position at which to
8140 check for face properties, invisible text properties, and overlays.
8141 (compute_cursor_face): Use it.
8142 (get_overlays_for_cursor): Ditto.
8143 (reseat_cursor): Ditto.
8144 (next_display_element): Ditto.
8146 Sun Aug 24 08:50:52 1997 Gerd Moellmann <gerd@acm.org>
8148 * termhooks.h: Some hooks with prototypes.
8150 * term.c: Some hooks with function prototypes.
8152 * xdisp.c (reseat_cursor): Additional argument force_p. Avoid
8153 computing face if possible.
8155 * xdisp.c (next_display_element): Use face from glyph from display
8158 * emacs.c: FreeBSD headers for profiling removed.
8160 * dispnew.c (direct_output_for_insert): Don't use PT-1 for
8161 display cursor, use DEC_POS instread.
8163 * xfaces.c (load_font): Use x_load_font to load fonts so that
8164 all fonts are in the font table.
8165 (unload_font): Don't XFreeFont.
8167 * dispnew.c (row_equal_p): Compare ascent, descent and visible
8170 * xterm.c (draw_glyphs): Use 8-bit functions if possible.
8171 (x_erase_phys_cursor): Clear only visible part of row.
8172 (x_draw_bar_cursor): Set clipping.
8173 (x_draw_hollow_cursor): Ditto.
8174 (x_display_and_set_cursor): Remove clipping.
8175 (expose_window_tree): Take trunc border into account.
8176 (x_phys_cursor_in_rect_p): Test if phys_cursor intersects a rect.
8177 (expose_window): Use it.
8179 * xdisp.c (display_string): Catch case that we are called with
8180 current_x already beyond max_x.
8181 (global): Fix usage of FRAME_WINDOW_P <-> FRAME_WINDOW_REDISPLAY_P.
8182 (init_display_info): Subtract vertical border glyph from
8185 * scroll.c (scrolling_window_1): Removed.
8187 * dispnew.c (adjust_frame_glyphs): Split into two functions,
8188 based on redisplay method used.
8189 (adjust_frame_glyphs_for_frame_redisplay): Part for frame
8191 (adjust_frame_glyphs_for_window_redisplay): Part for purely
8192 window based redisplay.
8194 * frame.h (FRAME_WINDOW_REDISPLAY_P): Changed to not depend
8197 * dispnew.c (adjust_glyph_matrix): Additional parameter W.
8198 Handle own storage for purely window based redisplay.
8199 (allocate_matrices_for_frame_redisplay): Formerly part of
8201 (allocate_matrices_for_window_redisplay): Ditto.
8203 * dispextern.h (struct glyph_matrix): window_top_y,
8206 * dispnew.c (allocate_matrices_for_window_redisplay): Detect
8207 and optimize some common cases of window changes.
8209 * emacs.c (main): Remove own profiling code because 0.95 now
8212 Fri Aug 22 18:46:43 1997 Gerd Moellmann <gerd@acm.org>
8214 * xterm.c (XTupdate_end): Draw horizontal border at right
8216 (expose_window): Draw vertical border.
8217 (XTclear_end_of_line): Accept width <= 0 and height <= 0 but
8220 * xdisp.c (redisplay_internal): Set update_mode_line if paused
8221 for non full width windows only if not window redisplay.
8223 * dispnew.c (update_window_tree): Or paused_p return of called
8226 * xterm.c (x_display_and_set_cursor): Return if hpos/vpos outside
8229 * window.c (Fset_window_configuration): adjust_glyphs being
8231 (Fset_window_configuration): Set frame garbaged if not all
8232 leaf windows reused.
8234 1997-08-21 Gerd Moellmann <gerd@acm.org>
8236 * dispnew.c (clear_glyph_matrix): Additional argument specifiying
8237 that rows should really be cleared. Used for current matrices.
8239 * dispnew.c (scrolling_window): Bug fix.
8240 (line_dance_hook): Formerly line_dance_fn, take only one
8243 * dispextern.h (struct run): Remove current_vpos.
8245 * xterm.c (do_line_dance): Only one parameter.
8247 * xdisp.c (display_line): set continued_p.
8249 * dispextern.h (struct glyph_row): New flag continued_p.
8250 Fix truncated_on_left_p and truncated_on_right_p to be bits.
8253 Thu Aug 21 14:37:34 1997 Gerd Moellmann <gerd@acm.org>
8255 * xdisp.c (skip_vertically_backward): Avoid negative vpos values
8256 when calling skip_to for continued lines.
8258 * dispnew.c (change_frame_size_1): Set frame garbaged.
8260 * xterm.c (expose_window): Check enabled_p of rows.
8262 * xdisp.c (redisplay_internal): Compare line heights before and
8263 now for redisplay optimization 2 (hit).
8264 (display_line): Set this_line_pixel_height.
8266 * xterm.c (x_draw_row_borders): Use FRAME_MODE_LINE_HEIGHT height
8268 (x_clip_to_row): Use MATRIX_ROW_VISIBLE_HEIGHT. Simplified.
8269 (do_line_dance): Simplified and pixel corrected.
8271 * dispnew.c (scrolling_window): Simplified.
8273 * xterm.c (x_draw_3d_border): Inset rectangle by line width.
8275 * dispnew.c (update_window): Add FRAME_MODE_LINE_BORDER_WIDTH
8276 to mode line row->x.
8278 Wed Aug 20 11:23:28 1997 Gerd Moellmann <gerd@acm.org>
8280 * xterm.c (x_get_char_font_and_encoding): Don't let fontset
8281 override font of face.
8282 (draw_glyphs): Correct return value.
8283 (XTclear_end_of_line): Compare differently with output cursor
8285 (x_draw_hollow_cursor): 2 parameters, window and row.
8287 * dispnew.c (update_window_line): If rows have different height
8288 or y, write entire line.
8290 * xdisp.c (compute_line_metrics): reset max_ascent and max_descent
8293 * xfaces.c (Fset_face_attribute_internal): Don't call
8294 frame_update_line_height.
8295 (merge_faces): Don't use default font if new font has different
8298 Tue Aug 19 14:38:05 1997 Gerd Moellmann <gerd@acm.org>
8300 * xterm.c (x_display_and_set_cursor): Use FONT_WIDTH if width
8301 unknown. Some fonts have min_width zero.
8302 (draw_glyphs): Don't draw underlines to the end of the display
8303 line if face is merely extended to that point.
8304 (draw_glyphs): Don't assume background is filled if
8305 just_foreground_p but extending to end of line.
8307 * xterm.c (XTclear_end_of_line): Clip only to display_height - 1
8308 for partially visible last lines.
8309 (x_clip_to_row): Ditto.
8310 (x_clip_to_row): Clip to display_height-1 if y + line_height >
8311 display_height since line_height is really a line distance.
8312 (x_display_and_set_cursor): If cursor on padding glyph, use
8313 min_bounds pixel width.
8315 Mon Aug 18 09:39:18 1997 Gerd Moellmann <gerd@acm.org>
8317 * xterm.c (x_clip_to_row): Height value was 1 too large.
8318 (XTclear_end_of_line): Clip to display area.
8320 * xfns.c (x_figure_window_sizes): Add trunc border width
8321 to frame pixel width.
8323 * xdisp.c (next_display_element): Don't display overlay strings
8324 within invisible text.
8325 (skip_vertically_backward): Skip display lines.
8327 Sat Aug 16 13:13:32 1997 Gerd Moellmann <gerd@acm.org>
8329 * xdisp.c (x_consider_frame_titie): Don't pad with blanks.
8331 * xdisp.c (next_display_element): Next invisible
8332 text check position computed differently.
8334 * dispextern.h (struct display_cursor): last_invisible_text_pos
8335 and display_ellipsis_for_invisible_p removed.
8337 * xdisp.c (next_display_element): Set last_invisible_text_pos
8338 to the last position at which invisible text was found. Don't
8339 decrement cursor.pos for newlines and cr with ellipsis. Set
8340 dpvec for `...' due to invisible text directly.
8341 (redisplay_internal): Don't assert that cursor is at PT after
8342 skip_to. It may be in invisible text.
8344 * keyboard.c (make_lispy_event): For mouse clicks, use
8347 * xdisp.c (next_display_element): Call get_overlays_for_cursor when
8348 next_overlay_pos is reached. Use limit cursor.pos + 100 when
8349 checking for invisible text.
8351 * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed.
8353 * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c
8355 * xfns.c (x_contour_region): Use pixel coordinates from window
8356 cursor instead of WINDOW_TO_FRAME_H/VPOS.
8358 * dispextern.h (FRAME_TO_WINDOW_HPOS, FRAME_TO_WINDOW_VPOS):
8361 * dispnew.c (frame_to_window_hpos, frame_to_window_vpos): Removed.
8363 * xterm.c (x_y_to_hpos_vpos): Get hpos/vpos from window relative
8365 (note_mouse_highlight): Use it.
8367 * xdisp.c (echo_area_display): Ignore calls for terminal frames
8368 under a window system.
8370 * dispnew.c (adjust_frame_glyphs): Call redraw_frame if
8372 (update_window_line): Add width of face padding glyph to
8373 displayed widths of rows.
8375 * xterm.c (x_display_and_set_cursor): Set clipping after
8378 * window.c (Fset_window_configuration): Free only those
8379 window matrices not reused.
8380 (get_leaf_windows): Build vector of leaf windows.
8381 Corrupted archive restored from v77.
8383 * xdisp.c (display_string): stop at >= last_visible_x if truncating
8384 like display_line does.
8386 * xdisp.c (display_mode_line): Don't hscroll mode line.
8388 * xterm.c (draw_glyphs): Wrong run_width computed for horiz. split
8390 (x_scroll_bar_create): #3039 Clear area below scroll bar to remove
8391 garbage between mode lines when splitting windows horiz.
8393 * dispnew.c (direct_output_for_insert): Bug fix.
8395 * dispextern.h (struct display_cursor): New member string_length.
8397 * xdisp.c (next_display_element): Return padding spaces.
8398 (init_string_cursor): take precision and field_width
8399 (display_string): Use string cursor, skip over invisible text.
8401 Thu Aug 14 10:41:41 1997 Gerd Moellmann <gerd@acm.org>
8403 * xterm.c (x_clip_to_row): Clip to partially visible lines.
8404 (x_display_and_set_cursor): Call it.
8405 (draw_glyphs): Call it
8406 (draw_bitmap): Call it.
8408 * dispnew.c (adjust_frame_glyphs): Optimize frame garbaging.
8409 (allocate_leaf_matrix): Return flags.
8410 (row_equal_p): Compare enabled_p.
8412 * xterm.c (x_erase_phys_cursor): Set phys_cursor_on_p to 0
8415 * xterm.c (x_display_and_set_cursor): Bar cursor 1 pixel taller.
8416 (draw_glyphs): Clip height one pixel taller.
8418 * dispnew.c (direct_output_for_insert): Give up for hscrolled
8421 * xdisp.c (display_line): don't scroll mini prompt.
8423 * xdisp.c (echo_area_display): Call update_single_window if
8426 * dispnew.c (update_window_line): Call scrolling_window.
8427 (scrolling_window): work on enabled desired lines only.
8428 (update_single_window): Update a single window like update_frame
8429 does for all windows.
8430 (update_window, update_window_tree): Additional argument
8432 (update_frame): Pass no_scrolling_p to update_window_tree.
8433 (update_window): Don't call scrolling_window if no_scrolling_p.
8435 * xterm.c (x_erase_phys_cursor): Do nothing if type == -1.
8436 Erase under hollow cursor.
8437 (x_display_and_set_cursor): Do nothing if cursor glyph row
8438 not enabled. Draw bar cursor 1 pixel smaller.
8440 * dispnew.c (adjust_frame_glyphs): don't set frame garbaged
8441 since update will follow soon.
8443 * xdisp.c (echo_area_display): Unitialized variable.
8445 * xterm.c (draw_bitmap): previously draw_truncation; draw
8446 overlay arrow bitmap.
8448 * xdisp.c (display_line): for truncated lines, consider everything
8449 up to the final \n as part of the line for cursor positioning.
8451 * xterm.c (draw_truncation): take FRAME_X_TRUNC_WIDTH into account.
8452 (x_after_update_window_line): clear trunc marks.
8454 * xterm.h (FRAME_X_TRUNC_WIDTH).
8456 * frame.h (FRAME_TRUNC_WIDTH): width of area at the left margin
8457 of a window reserved for truncation mark.
8459 * dispextern.h: Take FRAME_TRUNC_WIDTH into account.
8461 * dispnew.c (update_window_line): Call after_update_windwo_line-
8464 * xdisp.c (display_line): Set overlay_arrow_p in row.
8466 * dispextern.h (struct glyph_row): New flag overlay_arrow_p.
8468 * xterm.c (x_after_update_window_line): Draw truncation marks.
8470 * xdisp.c (display_line): Insert truncation for lines with
8473 * xterm.c (x_draw_row_borders): Convert y to frame coords.
8475 (x_display_cursor): Use default font width if width not
8478 * xdisp.c (echo_area_display): set row->y.
8480 * dispnew.c (set_window_cursor_after_update): Don't assume
8481 all rows are enabled.
8483 * xdisp.c (skip_in_display_line_to): Test cursor.position instead
8485 (skip_in_display_line_to): Check cursor.position after call to
8486 next_display_element.
8488 * dispextern.h (CURSOR_AT_P): Test if cursor has reached
8491 * xdisp.c (display_line): Set row->y here.
8492 (skip_in_display_line_to): Test for to_pos after all glyphs
8493 have been added to hpos so that hpos is at the end of all
8495 (start_display): Remove assertion.
8497 * dispnew.c (direct_output_forward_char): Bug fix, = instead of
8499 (update_window): Don't set row->y here.
8501 * xdisp.c (next_display_element): Don't translate control chars
8502 from display table entries.
8504 * dispnew.c (direct_output_for_insert): Set cursor before
8505 update end to prevent cursor flickering. Revert changes to
8506 setting cursor.endpos.
8508 Wed Aug 13 10:46:12 1997 Gerd Moellmann <gerd@acm.org>
8510 * dispnew.c (direct_output_for_insert): Don't set cursor.endpos
8511 to PT because this prevents multi-byte characters from being
8514 * xdisp.c (skip_to, display_line): Advance cursor at end of
8517 * xterm.c (x_draw_3d_borders): Use CapRound. Struct rect
8518 replaced by XRectangle.
8520 * dispnew.c (scrolling_window): New method.
8522 * xterm.c (do_line_dance): New implementation, new method.
8524 * xdisp.c (draw_glyphs): Draw truncation bitmaps. Clip to
8525 visible part of line.
8527 * dispnew.c (update_window_line): Fill inverse video lines
8528 with infinite width space.
8529 (update_window): Handle completely empty matrices.
8530 (set_window_cursor_after_update): Bug fix.
8532 * xterm.c (draw_glyphs): Stop drawing at right window end.
8534 * dispnew.c (update_window_line): Don't ignore spaces, don't
8537 * xdisp.c (compute_line_metrics): Stop adding glyph widths with
8538 the first glyph having width 0.
8540 * xterm.c (draw_glyphs): Let a glyph pixel with of 0 denote
8541 a glyph that extends to the end of the line.
8543 * xdisp.c (display_line): Insert one padding glyph
8545 * xdisp.c (skip_in_display_line_to): Don't subtract shift left
8546 amount from info.current_x.
8547 (display_line): Ditto.
8549 * dispnew.c (direct_output_for_insert): Correct use of cursor.x.
8550 (change_frame_size_1): Correct cursor.x if frame gets too small.
8551 (update_window_line): Start at row->x.
8553 * xdisp.c (redisplay_internal): Correct cursor.x (everwhere
8556 * xterm.c (set_output_cursor): Use window relative X/Y.
8557 (global): Use window relative output cursor x/y.
8558 (draw_glyphs): Remove y param. Pass window relative x/y.
8560 * dispnew.c (update_window): Start rows at start_y.
8561 (update_window): Don't try scrolling because it wouldn't work
8562 with variable height lines, anyway.
8564 * dispextern.h (struct glyph_row): Remove shift_left_by,
8567 * window.h: (struct window): New member start_y.
8569 * window.c (replace_window): Initialize start_y.
8570 (make_window): Ditto.
8572 Tue Aug 12 14:53:04 1997 Gerd Moellmann <gerd@acm.org>
8574 * xterm.c (draw_glyphs): Clip rows that would paint over
8577 * dispnew.c (update_window): Take mode line border into
8580 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Number of pixels
8581 of border around mode line.
8583 * xterm.c (x_draw_row_borders): Bug fix.
8584 (x_erase_phys_cursor): Set pyhs_cursor.x/y before calling
8587 * xterm.c (x_draw_row_border): Experimental; draw 3d borders
8588 around modeline instead of inverting it.
8590 * xterm.c (glyph_to_pixel_coords): Use current matrix.
8592 * dispnew.c (buffer_posn_from_coords): Use SKIP_TO. Now takes
8593 window relative pixel coordinates as arguments.
8595 * keyboard.c (make_lispy_event): Use BUFFER_POSN_FROM_COORDS
8596 with window relative pixel coordinates. Use GLYPH_TO_PIXEL_-
8597 COORDS mit new arguments.
8599 Mon Aug 11 12:32:34 1997 Gerd Moellmann <gerd@acm.org>
8601 * xdisp.c (start_display): Use SKIP_TO instead of SKIP_IN-
8604 * keyboard.c (make_lispy_event): WINDOW_FROM_COORDINATES with
8606 (make_lispy_movement): Same.
8608 * xterm.c (note_mouse_highlight): Use WINDOW_FROM_COORDINATES
8609 with new parameter meaning.
8611 * window.c (Fcoordinates_in_window_p): Convert Lisp params
8612 from canon units to pixels.
8613 (coordinates_in_window): Pixel based.
8614 (Fcoordinates_in_window_p): Convert result pixel values back
8617 * window.h: phys_cursor_ascent + descent instead of height.
8619 * xterm.c (XTget_char_info): Use per char metrics for multi-byte
8620 chars with charset width 1.
8622 * dispnew.c (direct_output_for_insert): Set updated_row.
8624 Sat Aug 9 12:11:44 1997 Gerd Moellmann <gerd@acm.org>
8626 * dispextern.h (struct glyph): Padding flag removed.
8628 Tue Aug 5 09:59:08 1997 Gerd Moellmann <gerd@acm.org>
8630 * sysdep.c (reset_sys_modes): cursor_to with 4 params.
8632 * keyboard.c (interrupt_signal): Cursor_to with 4 params.
8634 * dispnew.c (update_window_line): Use pixels.
8636 * xdisp.c (compute_line_metrics): Correct pixel_width by
8639 * dispextern.h (struct glyph_row): FIRST_SHIFTED_LEFT_GLYPH
8640 removed. Remove references to it everywhere. Reverse_p in
8641 glyph_row -> right_to_left_p. Change references to it.
8643 Mon Aug 4 18:09:27 1997 Gerd Moellmann <gerd@acm.org>
8645 * dispnew.c (direct_output_for_insert): Use INSERT_GLYPHS.
8647 * xterm.c (XTinsert_glyphs): Implement it.
8649 * term.c (insert_glyphs): UPDATING_FRAME may be NULL in case
8650 of a call from DIRECT_OUTPUT_FOR_INSERT.
8652 * window.h (struct cursor_pos): Keeps both matrix positions
8653 and pixel positions.
8654 (struct window): Use it.
8656 * dispnew.c (direct_output_for_insert): New version.
8658 * xdisp.c (redisplay_internal): Don't do anything if it has
8659 already be done directly.
8661 * keyboard.c (command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
8664 Thu Jul 31 15:39:10 1997 Gerd Moellmann <gerd@acm.org>
8666 * xdisp.c (echo_area_display): Use new DISPLAY_STRING.
8668 Wed Jul 30 12:18:03 1997 Gerd Moellmann <gerd@acm.org>
8670 * dispextern.h (struct glyph_row): MAX_ASCENT, MAX_DESCENT.
8671 (struct glyph): ASCENT, DESCENT.
8672 (MATRIX_ROW_PIXEL_HEIGHT): Pixel height of row.
8673 (GLYPH_PIXEL_HEIGHT): Pixel height of glyph.
8675 * xterm.c (XTget_display_info): Correct tab computation.
8677 * term.c (get_display_info): Correct tab computation.
8679 * dispextern.h (struct display_cursor): WHAT_FOUND, SOURCE_OBJECT.
8680 Renamed from CHAR_CURSOR.
8682 Tue Jul 29 12:52:40 1997 Gerd Moellmann <gerd@acm.org>
8684 * xdisp.c (display_text_line): Mostly pixel oriented.
8686 * dispextern.h (struct glyph): BOX_WIDTH -> PIXEL_WIDTH.
8688 * term.c (append_intermediate_glyph): Generate padding glyphs.
8690 * xdisp.c (display_text_line): More into final direction.
8692 * xterm.c (XTget_char_info): Use WHAT field of CHAR_INFO.
8693 (XTget_char_info): Use tabs as multiples of spaces.
8695 * term.c (get_char_info): Use WHAT field of CHAR_INFO.
8696 Use tabs as multiples of spaces.
8698 * dispextern.h (struct char_info ): WHAT field.
8700 * term.c (encode_terminal_code): Don't use GLYPH_CHAR, use
8701 FAST_GLYPH_CHAR instead because GLYPH_CHAR won't remove faces.
8703 Mon Jul 28 14:23:06 1997 Gerd Moellmann <gerd@acm.org>
8705 * dispnew.c (init_char_info): Correct TAB_WIDTH to a reasonable
8707 (init_char_info): Initialize with glyph row.
8709 * term.c (get_char_info): Check WANT_ELLIPSIS_P.
8711 * xterm.c (XTget_char_info): Check WANT_ELLIPSIS_P.
8713 * dispextern.h (struct char_info ): GLYPH_ROW for intermediate
8716 * dispnew.c (init_char_info): Init GLYPH_ROW to NULL. CHAR_CURSOR
8719 * xdisp.c (display_text_line): Use CHAR_CURSOR.
8721 * xterm.c (x_append_intermediate_glyph): Intermediate glyph
8723 (XTget_char_info): Ditto.
8725 * term.c (get_char_info): Intermediate glyph generation.
8726 (append_intermediate_glyph): Ditto.
8728 Sun Jul 27 18:57:24 1997 Gerd Moellmann <gerd@acm.org>
8730 * dispnew.c (compute_char_cursor_face): Compute the face for a
8732 (init_char_cursor): Initialize a CHAR_CURSOR.
8733 (get_char_and_advance): Get next character to display.
8735 * dispextern.h (struct char_cursor): Cursor for iterating over
8736 display text of CURRENT_BUFFER.
8738 Sat Jul 26 13:33:03 1997 Gerd Moellmann <gerd@acm.org>
8740 * term.c (get_char_info): Set MAX_PIXEL_WIDTH in CHAR_INFO.
8742 * dispextern.h (struct char_info ): Use LISP_CHAR_TABLE for DP.
8743 New member MAX_PIXEL_HEIGHT.
8745 * xterm.c (x_per_char_metric): Get per character metrics.
8746 (XTget_char_info): More cases covered.
8748 * term.c (get_char_and_info): Get next character and character
8749 display information.
8750 (get_char_info): Get character display information.
8752 * dispextern.h: Character display information.
8754 * xterm.c (x_get_char_font_and_encoding): Get font and
8756 (XTget_char_info): Get display information about a character.
8758 Wed Jul 23 16:50:18 1997 Gerd Moellmann <gerd@acm.org>
8760 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Height is
8761 zero if window is mini-window.
8763 * xdisp.c: Include xterm.h or w32term.h for FRAME_LINE_HEIGHT.
8764 (try_window): DISPLAY_TEXT_LINE as long as Y < DISPLAY_HEIGHT.
8766 * dispnew.c (assign_row): Assign row pixel height.
8767 (clear_glyph_row): Clear pixel height.
8768 (update_window): Use PIXEL_HEIGHT.
8770 * xdisp.c (display_string): Set row pixel height temporarily.
8771 (display_text_line): Ditto.
8773 * dispextern.h (GLYPH_PIXEL_WIDTH):
8774 (GLYPH_PIXEL_HEIGHT): Get glyph pixel dimension.
8776 * frame.h (FRAME_DEFAULT_PIXEL_LINE_HEIGHT): Get height of
8777 line in default font.
8778 (FRAME_DEFAULT_GLYPH_PIXEL_WIDTH): Get width of character
8780 (FRAME_MODE_LINE_PIXEL_HEIGHT): Get height of mode line.
8782 * xterm.h (FRAME_MODE_LINE_HEIGHT): Return height of mode line
8785 * dispnew.c (allocate_leaf_matrix): Use window pixel macros.
8787 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH):
8788 (WINDOW_DISPLAY_PIXEL_HEIGHT):
8789 (WINDOW_DISPLAY_MODE_LINE_HEIGHT):
8790 (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
8791 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X):
8792 (WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X):
8793 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y):
8794 (WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y): Macros to get various
8795 pixel values related to windows.
8797 Mon Jul 21 12:22:02 1997 Gerd Moellmann <gerd@acm.org>
8799 * xterm.c (XTflash): Flash last line of frame.
8801 * dispextern.h (cursor_in_echo_area): Extern declaration.
8803 * xterm.c (dumpglyphs): 8-bit version to test if my Xserver
8804 freezes stem from 16-bit functions.
8806 * xterm.c (x_display_and_set_cursor): Don't display hollow
8807 cursor in mini windows.
8809 * window.c (replace_window): Initialize PHYS_CURSOR_TYPE.
8810 (make_window): Ditto.
8812 * xterm.c (x_erase_phys_cursor): Erase cursor image.
8813 (x_display_and_set_cursor): Merged version of X_DISPLAY_BOX_CURSOR
8814 and X_DISPLAY_BAR_CURSOR.
8815 (x_display_cursor): Use it.
8816 (x_update_window_cursor): Use it.
8818 * xdisp.c (display_text_line): Set cursor for window even if not
8821 * xterm.c (x_display_bar_cursor): Use HPOS and VPOS instead
8822 of X and Y to denote matrix positions.
8823 (x_display_cursor): Ditto.
8825 * dispnew.c (scrolling_window): Scrolling for windows.
8827 Wed Jul 16 13:37:51 1997 Gerd Moellmann <gerd@acm.org>
8829 * dispnew.c (build_frame_matrix): Work on windows with update
8831 (build_frame_matrix_from_window_tree): Ditto.
8832 (build_frame_matrix_from_leaf_window): Ditto.
8834 * xdisp.c (echo_area_display): Set MUST_BE_UPDATED_P instead of
8835 building frame matrix.
8836 (redisplay_internal): Set window update flags instead of
8837 building frame matrix.
8839 * minibuf.c (read_minibuf): Set MUST_BE_UPDATED_P instead of
8840 building frame matrix.
8842 * window.c (make_window): Initialize new members.
8843 (replace_window): Ditto.
8845 * xfns.c (Fx_create_frame): Don't set PHYS_CURSOR_X to -1.
8846 I don't believe this is really necessary.
8848 * dispnew.c (build_frame_matrix_from_leaf_window): Determine
8851 Tue Jul 15 13:58:33 1997 Gerd Moellmann <gerd@acm.org>
8853 * window.c (mark_window_cursors_off): Mark all cursors in
8856 * xterm.c (x_display_box_cursor): Window paraemter. Use
8858 (glyph_to_pixel_pos): Convert matrix pos -> pixels.
8859 (pixel_to_glyph_pos): Convert pixel pos -> matrix pos.
8860 (x_update_cursor): Work on windows.
8861 (x_display_bar_cursor): Ditto.
8862 (x_draw_single_glyph): Ditto.
8864 * xterm.h: Prototype for X_DISPLAY_CURSOR.
8866 * xterm.c (XTcursor_to): Void return type. Test for
8867 UPDATED_WINDOW. Call x_display_cursor with window.
8868 (x_display_cursor): Void return type. Window instead of frame
8871 * window.h (WINDOW_RIGHTMOST_P, WINDOW_TOPMOST_P): Use functions
8874 * window.c (window_rightmost_p, window_topmost_p): Based on
8877 * dispnew.c (adjust_frame_message_buffer): Allocate with
8878 FRAME_MESSAGE_BUF_SIZE.
8880 * window.h: PHYS_CURSOR_.* added.
8882 * frame.h (struct frame): Cursor information removed.
8884 * frame.h (FRAME_SCROLL_BAR_WIDTH): Removed because unused.
8885 (FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
8887 * window.h (WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
8889 * window.c (window_internal_width): Scroll bars no longer
8892 * xterm.c (XTclear_end_of_line): FRAME_LEFT_SCROLL_BAR_WIDTH
8895 * xfns.c (x_set_scroll_bar_width): FRAME_LEFT_SCROLL_BAR_WIDTH
8898 * xdisp.c (echo_area_display): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
8899 (redisplay_internal): Ditto.
8900 (redisplay_window): Ditto.
8901 (redisplay_window): Ditto.
8902 (display_text_line): Ditto.
8903 (display_mode_line): Ditto.
8905 * minibuf.c (read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
8907 * dispnew.c (set_cursor_to): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
8908 (direct_output_for_insert): Ditto.
8909 (direct_output_forward_char): Ditto.
8910 (update_frame_1): Ditto.
8912 Mon Jul 14 12:30:03 1997 Gerd Moellmann <gerd@acm.org>
8914 * dispnew.c (updated_window): Set by UPDATE_WINDOW to the window
8916 (update_window): Set and clear it.
8918 * dispnew.c (update_window_line, update_window, scrolling_window):
8921 * dispnew.c (build_frame_matrix_from_leaf_window): Add vertical
8922 bar for window borders.
8923 (fill_up_glyph_row_area_with_spaces): Fill an area of a row
8925 (fill_up_glyph_row_with_spaces): Call above function.
8927 * xdisp.c (display_text_line): Don't add vertical bar for
8929 (display_string): Ditto.
8931 * window.c (make_window): Init CURSOR_VPOS/HPOS.
8932 (replace_window): Ditto.
8934 * xterm.c (XTwrite_glyphs): Use selected window cursor position.
8936 * xfns.c (Fx_contour_region): Use selected window cursor position.
8937 (Fx_uncontour_region): Ditto.
8938 (Fx_select_region): Ditto.
8940 * frame.c (make_frame): Remove CURSOR_X/Y.
8942 * xdisp.c (redisplay_internal): Use window cursor position.
8944 * dispnew.c (update_frame_1): Use cursor position of selected
8946 (change_frame_size_1): Ditto.
8948 * xterm.c (XTupdate_begin): Set CURS_X/Y from selected window.
8949 (XTwrite_glyphs): Use cursor position of selected window.
8951 * xfns.c (x_set_scroll_bar_width): Set cursor pos of selected
8954 * dispnew.c (set_cursor_to): Set window cursor position.
8955 (direct_output_for_insert): Use window cursor position.
8956 (init_display): Don't use frame cursor position.
8958 * window.h: CURSOR_VPOS/HPOS added.
8960 * frame.h (struct frame): CURSOR_X/Y removed.
8961 (FRAME_CURSOR_X): Removed.
8962 (FRAME_CURSOR_Y): Ditto.
8964 * dispnew.c (direct_output_for_insert): LAST_POINT_X removed.
8965 (direct_output_forward_char): Ditto.
8967 * xdisp.c (redisplay_internal): LAST_POINT_X and LAST_POINT_Y
8970 * window.c (make_window): LAST_POINT_X and LAST_POINT_Y removed.
8972 * window.h: LAST_POINT_X and LAST_POINT_Y removed.
8974 Sun Jul 13 14:18:24 1997 Gerd Moellmann <gerd@acm.org>
8976 * xdisp.c: Bug fixes using SET_CURSOR with HPOS 0 instead
8977 of FRAME_LEFT_SCROLL_BAR_WIDTH.
8979 * dispextern.h: Changed function names.
8981 * dispnew.c (scrolling): Don't call SCROLLING_1 if WINDOW_SIZE
8983 (clear_window_matrices): Formerly two functions for desired
8985 (update_frame_1): Call CLEAR_DESIRED_MATRICES.
8986 (update_frame): Return return value from UPDATE_FRAME_1.
8988 Sat Jul 12 12:58:48 1997 Gerd Moellmann <gerd@acm.org>
8990 * xdisp.c (try_window): Set WINDOW_END_VPOS with window relative
8993 * frame.c (set_menu_bar_lines): Adjust matrices.
8995 * dispnew.c (set_cursor_to): Set cursor position.
8997 * minibuf.c (read_minibuf): Build frame matrix.
8999 * xdisp.c (this_line_start_hpos): Renamed to
9000 THIS_LINE_START_WINDOW_HPOS to make it clear that this is window
9002 (this_line_vpos): Renamed to THIS_LINE_WINDOW_VPOS for the same
9005 * dispnew.c (build_frame_matrix): Don't clear rows of the
9007 (clear_window_records): Clear window rows.
9008 (clear_frame_records): Clear window and frame rows.
9009 (clear_glyph_matrix): Set all rows of a matrix to empty.
9011 * xdisp.c (echo_area_display): Parameter UPDATE_FRAME_P. Update
9013 (message2_nolog): Pass 1 to ECHO_AREA_DISPLAY. UPDATE_FRAME
9015 (redisplay_internal): Pass 0 to ECHO_AREA_DISPLAY.
9016 (redisplay_internal): Build frame matrix before UPDATE_FRAME.
9018 * dispnew.c (assign_row): Assign one glyph row to another.
9019 (mirrored_make_current): Use it.
9020 (mirror_make_current): Use it.
9021 (update_line): Rely on MIRRORED_MAKE_CURRENT to set flags and
9022 used counters for the current glyph row.
9025 Fri Jul 11 13:16:50 1997 Gerd Moellmann <gerd@acm.org>
9027 * lisp.h: Prototype for SCAN_BUFFER.
9029 * xdisp.c (redisplay_windows): Simplified.
9031 * dispnew.c (window_to_frame_vpos): Convert window to frame vpos
9033 (window_to_frame_hpos): Convert window to frame hpos with checks.
9034 (frame_to_window_vpos): Convert frame to window vpos with checks.
9035 (frame_to_window_hpos): Convert frame to window hpos with checks.
9037 * dispextern.h: PRESERVE_OTHER_COLUMNS removed.
9039 * dispnew.c: PRESERVE_OTHER_COLUMNS removed.
9041 * xdisp.c (redisplay_internal): Another instance of
9042 DISPLAY_TEXT_LINE with window relative VPOS.
9043 (redisplay_internal): Remove PRESERVE_OTHER_COLUMNS.
9045 * dispnew.c (init_desired_glyphs): Do it on window matrices,
9048 * xdisp.c (try_window_id): Use CANCEL_WINDOW_LINE.
9049 (redisplay_internal): Ditto.
9051 * dispnew.c (cancel_window_line): Use window matrix. Changed
9052 name to CANCEL_WINDOW_LINE.
9054 * xdisp.c (try_window_id): Use DISPLAY_TEXT_LINE with window
9057 * dispextern.h (WINDOW_TO_FRAME_VPOS): Convert window vpos
9059 (WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
9060 (FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
9061 (FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
9063 * xdisp.c (try_window_id): Use ADJUST_WINDOW_CHARSTARTS with
9064 window relative VPOS.
9065 (redisplay_internal): Use ADJUST_WINDOW_CHARSTARTS with window
9068 * dispnew.c (adjust_window_charstarts): Use INCREMENT_GLYPH_-
9069 MATRIX_BUFFER_POSITIONS.
9071 * xdisp.c (try_window_id): Use SCROLL_FULL_WIDTH_WINDOW.
9073 * dispextern.h: Prototype for SCROLL_FULL_WIDTH_WINDOW.
9075 * dispnew.c (scroll_frame_lines): Make it work on window
9076 matrix. Change name to scroll_full_width_window.
9078 * xdisp.c (message2_nolog): Don't fwrite NULL message If
9081 Mon Jul 7 14:44:38 1997 Gerd Moellmann <gerd@acm.org>
9083 * dispnew.c (init_desired_glyphs): Clear both frame matrix
9084 and window matrices.
9085 (adjust_window_charstarts): Use window matrix.
9086 (cancel_my_columns): Use window matrix.
9087 (direct_output_for_insert): Use window matrix, only.
9089 * xdisp.c (display_glyphs): Extracted code from DISPLAY_STRING.
9090 (display_string): Call display_glyphs.
9091 (display_menu_bar_string): Display a string in a menu bar line.
9092 (display_menu_bar): Use DISPLAY_MENU_BAR_STRING.
9093 (display_text_line): Use window matrix.
9094 (try_window): Use window relative positions.
9096 Sun Jul 6 17:02:26 1997 Gerd Moellmann <gerd@acm.org>
9098 * dispnew.c (adjust_frame_glyphs): Allocate window matrices from
9100 (allocate_leaf_matrix): Add FRAME_MENU_BAR_LINES to the height of
9103 * window.h (WINDOW_TOPMOST_P): Added.
9105 * xdisp.c (echo_area_display): Use PREPARE_DESIRED_ROW.
9106 (redisplay_window): Ditto.
9107 (display_text_line): Ditto.
9108 (display_menu_bar): Ditto.
9109 (display_mode_line): Ditto.
9110 (display_mode_line): Use window matrix.
9111 (display_string): Use window matrix.
9112 (display_mode_element): Ditto.
9113 (echo_area_display): Don't display if frame has no pools yet.
9114 (echo_area_display): Work with window matrix for mini window.
9115 (redisplay_window): Use window marix for mini window.
9116 (display_text_line): Assume HPOS and VPOS are window relative and
9117 use that for DISPLAY_STRING.
9119 * dispextern.h: Prototype for prepare_desired_row.
9121 * dispnew.c (prepare_desired_row): Replacement for
9124 * dispnew.c (adjust_window_charstarts): Always allocate window
9126 (clear_glyph_row): Only reset used counters and flags.
9128 Sat Jul 5 14:55:44 1997 Gerd Moellmann <gerd@acm.org>
9130 * dispnew.c (scroll_frame_lines): Don't assume first scolled
9132 (realloc_glyph_pool): Don't add 1 to the pool size.
9133 (adjust_glyph_matrix): Don't add 1 to pointers to glyph areas.
9135 * dispnew.c (line_hash_code): Don't use null-glyph end marker.
9136 (line_draw_cost): Ditto.
9137 (update_line): Ditto.
9138 (update_line): Use SPACE_GLYPH.
9139 (count_blanks): Additional parameter LEN.
9141 * xdisp.c (display_text_line): Use SPACE_GLYPH.
9142 (display_text_line): Don't add null-glyph end marker.
9143 (display_string): Use SPACE_GLYPH.
9144 (display_string): Don't use null-glyph end marker.
9146 * term.c (clear_end_of_line): Use SPACE_GLYPH.
9148 * dispnew.c (clear_glyph_row): Don't use null-glyph end markers.
9149 (fill_up_glyph_row_with_spaces): Ditto.
9150 (preserve_other_columns): Add SPACE_GLYPH at then end of desired
9151 rows, instead of null-glyphs.
9152 (direct_output_for_insert): Don't add null-glyph end marker.
9154 * scroll.c (do_direct_scrolling): Change algorithm to construct
9155 vector of lines assigned. Call MIRRORED_LINE_DANCE:
9156 (do_scrolling): Ditto.
9158 * dispnew.c (mirror_line_dance): Mirror line assignments in a
9159 frame matrix in window matrices.
9160 (mirrored_line_dance): Do line assignments during scrolling.
9161 Maybe do corresponding assignments in window matrices.
9162 (check_window_matrix_pointers): Check that window rows and frame
9163 rows agree about glyph pointers.
9164 (check_matrix_pointers): Ditto.
9165 (mirrored_make_current): Make a row of a desired matrix current;
9166 maybe mirror the operation in window matrices.
9167 (mirror_make_current): Make window desired matrix row current when
9168 frame matrix row was made current.
9170 Fri Jul 4 13:27:46 1997 Gerd Moellmann <gerd@acm.org>
9172 * dispnew.c (check_matrix_pointer_lossage): Check against
9173 pointer lossage in matrices.
9174 (get_glyph_matrix_row): Removed.
9176 * scroll.c (do_scrolling): Simplified.
9177 (do_direct_scrolling): Simplified.
9178 (scrolling_1): Pass CURRENT_MATRIX instead of FRAME to
9182 * dispnew.c (ins_del_glyph_rows): Insert/delete rows in a matrix.
9183 (rotate_vector): Removed.
9184 (rotate_pointers): Removed.
9185 (scroll_frame_lines): Simplified.
9187 Thu Jul 3 13:54:21 1997 Gerd Moellmann <gerd@acm.org>
9189 * dispextern.h (MATRIX_ROW_SWAP_CONTENTS): Removed.
9191 * dispnew.c (increment_glyph_matrix_buffer_positions): Does
9193 (clear_glyph_row): Make a glyph row structure empty.
9194 (make_matrix_row_current): Make a glyph row current.
9195 (make_window_matrix_row_current): Perform analogous row swaps
9196 for window matrices.
9197 (update_line): Call make_matrix_row_current.
9199 Wed Jul 2 13:43:35 1997 Gerd Moellmann <gerd@acm.org>
9201 * dispextern.h (SET_MATRIX_ROW_ENABLED_P): Better macro name.
9202 (SET_MATRIX_ROW_INVERSE_P): Better name and HIGHLIGHT_P ->
9204 (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P.
9205 (struct glyph_row): HIGHLIGHT_P -> INVERSE_P
9207 * all files: use above new names.
9209 * dispnew.c (scroll_frame_lines): Simplified. Use
9210 SCROLL_GLYPH_MATRIX.
9211 (make_glyph_row_empty): Mark a glyph row empty.
9212 (increment_glyph_row_buffer_positions): Increment
9213 buffer positions in a glyph row.
9214 (increment_glyph_matrix_buffer_positions): Increment buffer
9215 positions in a range of rows.
9216 (scroll_glyph_matrix): Scroll a glyph matrix.
9217 (swap_glyphs_in_rows): Swap glyphs between rows.
9218 (swap_glyph_pointers): Swap pointers between rows.
9219 (glyph_row_slice_p): Return 1 if one row is a slice of another.
9220 (init_display): Initialize SPACE_GLYPH.
9221 (fill_up_glyph_row_areas_with_spaces): Fill up areas with
9224 Tue Jul 1 13:49:55 1997 Gerd Moellmann <gerd@acm.org>
9226 * xterm.c (dumprectangle): Use vectors in glyph rows.
9228 * xdisp.c (display_text_line): Use vectors in glyph rows.
9229 (display_string): Ditto.
9231 * scroll.c (do_scrolling): Use vectors in glyph rows.
9232 (do_direct_scrolling): Ditto.
9234 * alloc.c (mark_object): Use vectors in glyph rows.
9235 Mark for all frame types.
9237 * dispnew.c (adjust_glyph_matrix): Use vectors to glyphs in
9239 (get_glyph_matrix_row): Ditto.
9240 (matrix_row): Ditto.
9241 (rotate_pointers): Ditto.
9242 (scroll_frame_lines): Ditto.
9243 (preserve_other_columns): Ditto.
9244 (cancel_my_columns): Ditto.
9245 (update_line): Ditto.
9246 (direct_output_for_insert): Ditto.
9248 * dispextern.h (struct glyph_row): Use a vector of pointers
9249 instead of individual members. Use a vector of used counters.
9250 (MATRIX_ROW_SWAP_CONTENTS): Use vectors.
9251 (MATRIX_ROW_GLYPH_START): Ditto.
9252 (MATRIX_ROW_GLYPH_END): Ditto.
9253 (MATRIX_ROW_USED): Ditto.
9254 (MATRIX_ROW_SET_USED): Ditto.
9256 * dispnew.c (line_hash_code): Simplified.
9258 Mon Jun 30 20:39:38 1997 Gerd Moellmann <gerd@acm.org>
9260 * dispnew.c: Prototype for ROTATE_VECTOR, ROTATE_POINTERS,
9262 (preserve_other_columns): Void return.
9263 (cancel_my_columns): Void return type.
9264 (scrolling): Int return type.
9265 (do_pending_window_change): Void return type.
9266 (change_frame_size): Ditto.
9267 (bitch_at_user): Ditto.
9268 (init_display): Ditto.
9269 (syms_of_display): Ditto.
9271 * dispextern.h: add prototypes for REDRAW_FRAME,
9272 REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS,
9273 INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS,
9274 ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS,
9275 DIRECT_OUTPUT_FOR_INSERT, DIRECT_OUTPUT_FORWARD_CHAR,
9276 UPDATE_FRAME, SCROLLING, BUFFER_POSN_FROM_COORDS,
9277 DO_PENDING_WINDOW_CHANGE, CHANGE_FRAME_SIZE, BITCH_AT_USER,
9278 SIT_FOR, INIT_DISPLAY, SYMS_OF_DISPLAY,
9280 * dispnew.c (redraw_frame): FRAME_PTR -> struct frame. Return
9282 (cancel_line): Return void.
9283 (clear_frame_records): Return void.
9285 * dispextern.h (struct glyph): Remove GLYPH, add bit-fields.
9286 (SET_CHAR_GLYPH): Fill a character glyph.
9287 (SET_CHAR_GLYPH_FROM_GLYPH): Set a character glyph from a GLYPH.
9288 (GLYPH_FROM_CHAR_GLYPH): Construct a GLYPH from a character
9290 (CHAR_GLYPH_CHAR_CODE): Return character code of a glyph.
9291 (SET_CHAR_GLYPH_CHAR_CODE): Set character code of a glyph.
9292 (CHAR_GLYPH_FACE_ID): Return face id of a glyph.
9293 (SET_CHAR_GLYPH_FACE_ID): Set face id of a glyph.
9294 (CHAR_GLYPH_PADDING_P): Return padding flag of a glyph.
9295 (SET_CHAR_GLYPH_PADDING_P): Set padding flag.
9296 (CHAR_GLYPH_REVERSE_P): Return reversed flag.
9297 (SET_CHAR_GLYPH_REVERSE_P): Set reversed flag.
9298 (MATRIX_ROW_SWAP_CONTENTS): Swap pointers between rows.
9300 * term.c (reassert_line_highlight): Check CHARS_WASTED == 0.
9302 * window.h (struct window): Add comment that no Lisp data may
9303 come below CURRENT_MATRIX.
9305 * alloc.c (mark_object): Change window mark code to stop with
9306 member CURRENT_MATRIX.
9308 Sat Jun 28 13:54:55 1997 Gerd Moellmann <gerd@acm.org>
9310 * scroll.c (do_scrolling): Change algorithm to use pointers.
9311 (do_direct_scrolling): Ditto.
9313 * dispnew.c (get_glyph_matrix_row): Use pointers stored in rows.
9314 (new_glyph_pool): Formerly new_FRAME_GLYPH_MATRIX.
9315 (free_glyph_pool): Formerly FREE_FRAME_GLYPH_MATRIX
9316 (realloc_glyph_pool): Formerly REALLOC_FRAME_GLYPH_MATRIX.
9317 Returns 1 if pool changed.
9318 (matrix_row): Additional check for lost pointers to glyph rows.
9319 (compute_matrices): Additional parameter DIM_P set means that no
9320 allocation should take place. Addtional parameter
9321 ANY_WINDOWS_CHANGED_P set if any windows matrix has changed.
9322 (compute_leaf_matrix): Additional parameter CHANGED_P set to 1
9323 when window matrix changes. Additional parameter DIM_ONLY_P set
9324 to 1 to indicate that no allocation should take place.
9325 (adjust_frame_glyphs): Construct new glyph pools and glyph
9326 matrices. Optimize frame redraws.
9327 (free_glyphs): Free pools.
9328 (check_glyph_memory): Check pools not freed.
9329 (rotate_pointers): Rotate pointers in a vector of glyph rows.
9330 (scroll_frame_lines): Change algorithm to use pointers.
9331 (update_line): Ditto.
9333 * dispextern.h (struct glyph_row): Use pointers to areas in a row.
9334 (global): All macro names changed from prefix FRAME_MATRIX to
9337 Fri Jun 27 14:51:15 1997 Gerd Moellmann <gerd@acm.org>
9339 * dispextern.h (struct glyph_pool): Replacement for former
9341 (struct glyph_matrix): No longer contains sizes of allocated
9344 * xdisp.c (redisplay_internal): Don't redisplay if frame has
9347 * frame.c (make_frame): Initialize pools.
9349 Thu Jun 26 00:00:55 1997 Gerd Moellmann <gerd@acm.org>
9351 * scroll.c (do_direct_scrolling): Don't assume that the
9352 line moving algorithm has no intermediate steps.
9353 (do_scrolling): Ditto.
9355 * Makefile.in (alloc.o): Add dependency dispextern.h.
9357 * alloc.c: Include dispextern.h for glyph definitions.
9359 * dispnew.c (get_glyph_matrix_row): Return 1 if ROW_INDEX
9360 is legal, return 0 otherwise.
9362 * window.h: Add comment that windows are marked specially.
9364 * alloc.c (mark_object): Mark windows specially.
9367 Wed Jun 25 15:22:58 1997 Gerd Moellmann <gerd@acm.org>
9369 * dispextern.h (struct glyph): Add member OBJECT
9370 referencing a Lisp object from which a glyph was drawn.
9371 Member TEXT_POSITION renamed POSITION.
9372 * xterm.c, xdisp.c, dispnew.c: Rename TEXT_POSITION -> POSITION.
9374 * alloc.c: Include dispextern.h
9375 (mark_object): Mark objects referenced from glyphs.
9377 * frame.c (make_frame): initialize DECODE_MODE_SPEC_BUFFER.
9379 * scroll.c (do_direct_scrolling): Remove TEMP_MATRIX.
9380 (do_scrolling): Ditto.
9382 * frame.h (struct frame): TEMP_MATRIX removed.
9383 DECODE_MODE_SPEC_BUFFER added.
9385 * window.h: TEMP_MATRIX removed.
9387 * scroll.c: OPHYS_LINES removed.
9389 * dispnew.c: OPHYS_LINES and OPHYS_LINES_LENGTH removed.
9390 FRAME_PTR -> struct frame *.
9392 * termhooks.h: Prototypes for INSERT_GLYPHS_HOOK,
9393 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
9395 * term.c: Prototypes for INSERT_GLYPHS_HOOK,
9396 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
9398 * xdisp.c (redisplay_internal): Remove call to VERIFY_CHARSTARTS.
9399 (do_verify_charstarts): Removed.
9401 * frame.c (Fmake_terminal_frame): Adjust glyphs.
9402 (Fdelete_frame): Free glyphs.
9403 (make_frame): Initialize matrix fields in frame.
9405 * config.in (PROTO): added.
9407 * emacs.c (shut_down_emacs): check glyph memory.
9409 * window.c (Fdelete_window): Free window matrices.
9410 (Fset_window_configuration): Ditto.
9411 (Fdelete_window): Adjust glyphs.
9412 (Fsplit_window): Ditto.
9413 (change_window_height): Ditto.
9414 (Fset_window_configuration): Ditto.
9415 (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX.
9416 (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX
9418 * Makefile.in (window.o): Add dependency window.c -> dispextern.h
9420 * window.c: Include dispextern.h
9422 * scroll.c (do_scrolling): Use new glyphs.
9423 (do_direct_scrolling): Ditto.
9425 * xdisp.c: Some function prototypes.
9426 (redisplay_internal): Don't do anything if matrices not yet set.
9427 (redisplay_internal): Use new glyphs.
9428 (try_window_id): Ditto.
9429 (copy_part_of_rope): Ditto.
9430 (display_text_line): Ditto.
9431 (display_menu_bar): Ditto.
9432 (display_mode_line): Ditto.
9433 (display_string): Ditto.
9435 * xterm.c: Prototypes for some local functions.
9436 (dumpglyphs): Use new glyphs.
9437 (XTwrite_glyphs): Ditto.
9438 (dumprectangle): Ditto.
9439 (note_mouse_highlight): Ditto.
9440 (fast_find_position): Ditto.
9441 (show_mouse_face): Ditto.
9442 (x_draw_single_glyph): Ditto.
9443 (x_display_bar_cursor): Ditto.
9444 (x_display_box_cursor): Ditto.
9445 (x_new_font): Adjust glyphs when font change.
9447 * term.c (clear_end_of_line): Use new glyphs.
9448 (write_glyphs): Ditto.
9449 (insert_glyphs): Ditto.
9451 * Makefile.in (term.o): term.c depends on dispextern.h
9453 * term.c: Include dispextern.h
9455 * dispnew.c (direct_output_forward_char): Old glyph functions
9456 removed, new inserted.
9457 (line_hash_code): Use new glyphs.
9458 (line_draw_cost): Ditto
9459 (cancel_line): Ditto
9460 (clear_frame_records): Ditto.
9461 (init_desired_glyphs): Ditto.
9462 (get_display_line): Ditto
9463 (scroll_frame_lines): Ditto.
9464 (preserve_other_columns): Ditto.
9465 (adjust_window_charstarts): Ditto.
9466 (cancel_my_columns): Ditto.
9467 (direct_output_for_insert): Ditto.
9468 (update_frame): Ditto.
9469 (quit_error_check): Made empty.
9470 (scrolling): Use new glyphs.
9471 (count_blanks): Ditto.
9472 (count_match): Ditto.
9473 (update_line): Ditto.
9474 (init_display): Adjust glyphs initially.
9475 (change_frame_size_1): Adjust glyphs.
9477 * dispextern.h: Old glyphs removed, new added.
9479 * xfaces.c (min_char_bounds): Get smallest char in loaded fonts.
9481 * xterm.h: Prototype for min_char_bounds.
9483 * window.h (struct window): Remove old glyphs, add new.
9485 * frame.h (struct frame): Remove old glyphs, add new.
9487 1999-07-20 Dave Love <fx@gnu.org>
9489 * buffer.c (syms_of_buffer): Make
9490 default-enable-multibyte-characters a user variable.
9492 1999-07-14 Richard Stallman <rms@gnu.org>
9494 * Version 20.4 released.
9496 1999-07-14 Richard Stallman <rms@gnu.org>
9498 * filelock.c (lock_file): Do nothing if purifying.
9500 1999-07-10 Richard Stallman <rms@gnu.org>
9502 * xterm.c (x_display_bar_cursor): Use the cursor-color
9503 to display the bar, not the cursor foreground pixel.
9505 1999-07-09 Andrew Innes <andrewi@gnu.org>
9507 * w32console.c (w32_use_full_screen_buffer): New variable.
9508 (syms_of_ntterm): Register it.
9509 (initialize_w32_display): Set initial frame size accordingly,
9510 respecting the LINES and COLUMNS environment variables if set.
9512 * w32inevt.c (w32_console_read_socket): Use it.
9514 1999-07-07 Kenichi Handa <handa@etl.go.jp>
9516 * callproc.c (Fcall_process): Decide coding system for decoding
9517 after we set to the target buffer. If the output goes to a
9518 unibyte buffer, suppress character code conversion.
9520 * fileio.c (Finsert_file_contents): If reading into a unibyte
9521 buffer, suppress character code conversion.
9523 * process.c (create_process): If the output goes to a unibyte
9524 buffer, suppress character code conversion.p
9526 1999-07-07 Andreas Schwab <schwab@gnu.org>
9528 * xdisp.c (line-number-display-limit): Doc fix.
9530 1999-07-05 Richard Stallman <rms@gnu.org>
9532 * callproc.c (Fcall_process): Don't use initializer on coding_systems.
9533 (Fcall_process_region): Likewise.
9535 1999-07-01 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
9537 * callproc.c (init_callproc): Set exec_directory if
9538 installation_directory is non-nil, without a test of exec_path.
9540 1999-07-01 Andrew Innes <andrewi@gnu.org>
9542 * w32xfns.c (drain_message_queue): New function.
9544 * w32term.h (drain_message_queue): Add extern.
9546 * w32proc.c (sys_select): Call MsgWaitForMultipleObjects instead
9547 of WaitForMultipleObjects when user input is allowed, so we can
9548 handle incoming window messages. Call drain_message_queue when
9549 there are messages waiting; this ensures that windows created
9550 indirectly from the lisp thread get processed properly, and don't
9551 hang other applications by failing to respond to broadcasts.
9553 1999-07-01 Andreas Schwab <schwab@gnu.org>
9555 * callint.c (Fcall_interactively): Ignore first element of
9556 event-symbol-elements property.
9558 1999-07-01 Richard Stallman <rms@gnu.org>
9560 * fileio.c (Fread_file_name): Check type of DEFAULT_FILENAME.
9562 1999-07-01 Kenichi Handa <handa@etl.go.jp>
9564 * minibuf.c (read_minibuf): Set the multibyteness of the
9565 minibuffer before inserting `initial' string.
9567 1999-06-30 Richard Stallman <rms@gnu.org>
9569 * xfns.c (x_make_gc): Turn off GCStipple when setting up cursor_gc.
9571 1999-06-29 Richard M. Stallman <rms@gnu.org>
9573 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook):
9574 Move the handling of MALLOC_CHECK_ envvar here.
9575 (main): Moved from here.
9577 1999-06-29 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
9579 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook): New
9580 function, assigned to the global __malloc_initialize_hook pointer.
9581 (main): Move malloc_set_state call into malloc_initialize_hook
9582 so that it happens as early as possible.
9584 1999-06-27 Richard M. Stallman <rms@gnu.org>
9586 * keyboard.c (read_key_sequence): Properly reinitialize
9587 fkey_map after translating thru Vkey_translation_map.
9588 After translating thru Vfunction_key_map, don't reset
9589 keytrans-start to 0.
9591 1999-06-24 Geoff Voelker <voelker@cs.washington.edu>
9593 * w32.c (get_emacs_configuration): Use GetVersionEx to
9594 handle NT5.0 correctly. Include build number in configuration.
9595 w32heap.c (osinfo_cache): New variable.
9596 (cache_system_info): Initialize osinfo_cache.
9597 w32heap.h (osinfo_cache): Declare.
9599 1999-06-24 Richard M. Stallman <rms@gnu.org>
9601 * casefiddle.c (casify_object): Use make_multibyte_string
9602 if we casify a multibyte string.
9604 1999-06-22 Ken'ichi Handa <handa@gnu.org>
9606 * fileio.c: (Finsert_file_contents): In the case of REPLACE, call
9607 del_range_byte instead of del_range_1, set `inserted' to the
9608 number of characters actually inserted.
9610 1999-06-17 Dave Love <fx@gnu.org>
9612 * coding.c (decode_coding_sjis_big5): Avoid compiler warning.
9614 1999-06-18 Paul Eggert <eggert@twinsun.com>
9616 * filelock.c (BOOT_TIME_FILE): New macro.
9617 (get_boot_time): Use it instead of hardwiring the file name.
9618 Check BOOT_TIME_FILE only after inspecting the kernel directly.
9620 1999-06-17 Dave Love <fx@gnu.org>
9622 * xdisp.c (invalid_eol_type): Make it unsigned.
9624 1999-06-17 Karl Heuer <kwzh@gnu.org>
9626 * process.c (send_process): Delete unsafe/redundant assignment.
9628 1999-06-17 Jason Rumney <jasonr@gnu.org>
9630 * w32term.c (dumprectangle): Handle wide characters properly.
9632 1999-06-16 Andrew Innes <andrewi@gnu.org>
9634 * s/ms-w32.h (strerror): Override the default implementation of
9635 strerror, so we can map winsock error codes.
9637 * w32.c (sys_strerror): New function.
9639 * w32fns.c (w32_to_x_weight): Return "demibold" instead of "semibold".
9641 1999-06-15 Ken'ichi Handa <handa@gnu.org>
9643 * buffer.c (syms_of_buffer): Don't make
9644 enable-multibyte-characters customizable.
9646 1999-06-15 Richard M. Stallman <rms@gnu.org>
9648 * editfns.c (Fuser_full_name): Doc fix.
9650 1999-06-14 Tak Ota <ota@atc.sel.sony.com>
9652 * w32bdf.c: (clear_cached_bitmap_slots): Remove.
9653 (get_bitmap_with_cache): Check if CreateBitmap failed.
9654 Adjust cache size dynamically so cache is never larger than the
9655 system limit of GDI resources.
9656 Do cache clearing inline. Move global variables to local scope.
9659 1999-06-13 Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
9661 * unexsgi.c (unexec): Dump the .rodata section from memory
9662 under IRIX6.5 in order to be able to unexec with gcc.
9664 1999-06-11 Greg Hudson <ghudson@MIT.EDU>
9666 * indent.c (compute_motion): Fix boundary case.
9668 1999-06-11 Jason Rumney <jasonr@altavista.net>
9670 * w32term.c (cancel_mouse_face): New function. See equiv
9671 changes to xterm.c on 1996-10-31.
9672 (x_set_window_size): Use cancel_mouse_face.
9673 (w32_read_socket): Use cancel_mouse_face.
9674 Update frame position when size is restored.
9676 1999-06-04 Richard M. Stallman <rms@gnu.org>
9678 * lread.c (Vuser_init_file): New variable.
9679 (syms_of_lread): Set up Lisp variable.
9680 (Fload): Store the file name there, if var was t before.
9682 1999-06-04 Paul Eggert <eggert@twinsun.com>
9684 * filelock.c (get_boot_time): Don't look at /proc/uptime; it
9685 doesn't work if the system date is changed, or if the system
9686 is suspended. Look at the last-modified time of
9687 /var/run/random-seed instead.
9689 1999-06-03 Ken'ichi Handa <handa@gnu.org>
9691 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
9692 japanese-jisx0208-1978 correctly.
9694 1999-06-03 Andrew Innes <andrewi@gnu.org>
9696 * unexw32.c (get_section_info) [_ALPHA_]: Force as much bss data
9697 as possible to be dumped, for safety.
9699 1999-06-02 Ken'ichi Handa <handa@gnu.org>
9701 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
9702 latin-jisx0201 correctly.
9704 1999-05-26 Ken'ichi Handa <handa@gnu.org>
9706 * charset.h (Vcharset_table): Comment fixed.
9708 1999-05-24 Richard Stallman <rms@gnu.org>
9710 * coding.c (syms_of_coding): Doc fix.
9712 * buffer.c (syms_of_buffer): Doc fix.
9714 * filelock.c (lock_if_free): After deleting a stale lock,
9715 try again to lock the file.
9717 1999-05-22 Andrew Innes <andrewi@gnu.org>
9719 * w32inevt.c (maybe_generate_resize_event): Detect changes in the
9720 console window size.
9721 (w32_console_read_socket): Call maybe_generate_resize_event
9722 whenever input events are received, since we don't get told when
9723 the window size changes (as opposed to the buffer size, which we
9726 * w32console.c (clear_frame): Remember that the window width might
9727 be smaller than the screen buffer width.
9728 (write_glyphs): Remove redundant variable attrs. Use
9729 FillConsoleOutputAttribute instead of WriteConsoleOutputAttribute.
9731 1999-05-20 Andrew Innes <andrewi@gnu.org>
9733 * w32term.c (w32_read_socket): Reset the grabbed flag when a frame gains or
9736 * w32fns.c (w32_wnd_proc): Ensure mouse capture is released if
9737 frame loses focus, and that mouse button state is reset. Ditto
9738 when the menu bar is activated.
9740 1999-05-18 Richard Stallman <rms@gnu.org>
9742 * abbrev.c (Fdefine_abbrev): Doc fix.
9744 1999-05-13 Paul Eggert <eggert@twinsun.com>
9746 * filelock.c: Fix performance bug on hosts with large
9747 /var/adm/wtmp files with no boot records.
9749 (boot_time_initialized): New var.
9750 (init_filelock): Initialize it.
9751 (get_boot_time): Use it, instead of nonzero boot_time,
9752 to test whether boot_time is initialized.
9753 Don't invoke utmp routines when dumping.
9755 (get_boot_time): First, try to get the boot time from the
9756 current utmp file, as this can be much faster. Don't try to
9757 get the boot time from utmp and/or wtmp more than once.
9759 (get_boot_time_1): When passed null pointer, don't invoke utmpname.
9760 New arg LATEST. All uses changed.
9762 1999-05-15 Andrew Innes <andrewi@gnu.org>
9764 * w32term.c (dumpglyphs): Use correct colours for drawing
9765 rectangles in place of missing fonts, and make them the right
9768 1999-05-14 Dave Love <fx@gnu.org>
9770 * syntax.c (Fparse_partial_sexp): Correct test for element 8 to be
9773 1999-05-11 Andrew Innes <andrewi@gnu.org>
9775 * w32fns.c (x_to_w32_charset): Reinstall VIETNAMESE_CHARSET
9777 (w32_wnd_proc): Reinstall debugging output.
9778 (w32_wnd_proc): Reinstall SetForegroundWindow change.
9779 (syms_of_w32fns): Reinstall new initializer for
9780 Vw32_phantom_key_code.
9782 * w32fns.c (x_to_w32_charset): Do partial matching of charset
9783 names for most non-European charsets, to cope with wildcards or
9785 (Fw32_send_sys_command): Post WM_SYSCOMMAND rather than sending it
9786 to avoid deadlock when activating the menu bar.
9788 1999-05-10 Ken'ichi Handa <handa@gnu.org>
9790 * search.c (boyer_moore): Get charset base value of `untranslated'
9791 by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
9793 1999-05-10 Andreas Schwab <schwab@gnu.org>
9795 * fileio.c (Fread_file_name): Correct handling of dollars in file
9796 names. Protect dollars in strings put on the file-name-history.
9797 Substitute homedir by `~' also in default_filename.
9799 * xdisp.c (try_window_id): Fix computation of tab_offset when
9800 backing up over a character that is splitted across lines.
9802 1999-05-08 Kenichi HANDA <handa@etl.go.jp>
9804 * coding.c (code_convert_region): If eol format is inconsistent,
9805 change coding->symbol to the sibling coding system of Unix like
9808 1999-05-09 Richard M. Stallman <rms@gnu.org>
9810 * s/irix5-2.h (NO_WTMP_FILE): Define it.
9812 * filelock.c (get_boot_time): Handle NO_WTMP_FILE.
9814 1999-05-05 Andrew Innes <andrewi@gnu.org>
9816 * w32fns.c (w32_strict_painting): New variable.
9817 (w32_wnd_proc): Use it to select repaint rules.
9818 (syms_of_w32fns): Defvar it.
9820 1999-05-04 Andrew Innes <andrewi@gnu.org>
9822 * w32fns.c (x_to_w32_charset): Fix typo: want to map all Japanese
9823 charsets to the standard Windows charset for Japanese.
9825 1999-05-04 Ken'ichi Handa <handa@gnu.org>
9827 * xterm.c (x_load_font): Fix typo (`>' -> `=').
9829 * ccl.h (struct ccl_program): New member stack_idx.
9831 * ccl.c (ccl_prog_stack_struct): Declare it as static.
9832 (ccl_driver): Setup stack_idx and ccl_prog correctly. Update them
9834 (setup_ccl_program): Initialize ccl->stack_idx to 0.
9836 1999-05-03 Jason Rumney <jasonr@altavista.net>
9838 * w32term.c (dumpglyphs): Always fill background for italic fonts.
9840 1999-05-03 Eli Zaretskii <eliz@is.elta.co.il>
9842 * dired.c (make_time): Make argument type be time_t.
9844 1999-05-02 Eli Zaretskii <eliz@is.elta.co.il>
9846 * msdos.c (unibyte_display_via_language_environment): Add extern.
9848 1999-05-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
9850 * xdisp.c (display_text_line): Convert unibyte char to multibyte
9851 if unibyte_display_via_language_environment is set.
9852 (unibyte_display_via_language_environment):
9853 Variable moved from xfns.c and elsewhere.
9854 (syms_of_xfns): Set up Lisp var.
9856 * xfns.c (unibyte_display_via_language_environment):
9857 Variable moved to xdisp.c.
9858 (syms_of_xfns): Don't set up Lisp var here.
9860 * msdos.c (unibyte_display_via_language_environment):
9861 Variable moved to xdisp.c.
9862 (syms_of_msdos): Don't set up Lisp var here.
9864 * w32fns.c (unibyte_display_via_language_environment):
9865 Variable moved to xdisp.c.
9866 (syms_of_w32fns): Don't set up Lisp var here.
9868 1999-05-02 Andrew Innes <andrewi@gnu.org>
9870 * s/ms-w32.h (HAVE_FSYNC): New macro.
9871 (fsync): Map to _commit.
9872 (ftruncate): Map to _chsize.
9874 * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even
9875 for ASCII, if enabled, to avoid memory allocation overhead for
9876 implicit Unicode conversion. Also, recognize that ASCII and
9877 Latin-1 have a trivial conversion to Unicode, so x_2byte_buffer
9878 already contains the Unicode characters in that case.
9879 (construct_drag_n_drop): Remove old code that was
9880 trashing the drop location.
9882 * w32select.c (Fw32_set_clipboard_data): Undo last change to add
9883 nlines to encoding_buffer_size (real bug was in a ccl program in
9884 lisp/international/coding.el).
9886 * w32reg.c (w32_get_string_resource): Check for name in current
9887 user area, and if not found look in the local machine area.
9889 * w32fns.c (w32_list_bdf_fonts): Initialize n_fonts.
9890 (Fw32_shell_execute): New function; used to support browse-url.
9891 (syms_of_w32fns): Register it.
9892 (w32_load_system_font): Force max width to be average
9893 char width for fixed-pitch fonts, to avoid unnecessary redisplay
9895 (x_to_w32_charset): Define VIETNAMESE_CHARSET if not
9897 (syms_of_w32fns): Set Vw32_phantom_key_code to 255.
9899 * unexw32.c (get_section_info): Dump back the entire EMDATA
9900 section if we can put Emacs' initialized data in a separate
9901 section, otherwise use the my_begdata/my_edata method.
9903 * makefile.nt ($(BLD)\w32term.obj): Add dependency on w32heap.h.
9905 * coding.c (decode_eol): Set produced/consumed values to zero if
9906 src_bytes is <= 0 on entry.
9908 1999-05-02 Jason Rumney <jasonr@altavista.net>
9910 * w32term.c (w32_write_glyphs, w32_clear_end_of_line,
9911 w32_clear_frame, clear_cursor, x_display_bar_cursor,
9912 x_display_box_cursor, x_set_window_size): Use phys_cursor_on
9914 (do_line_dance): Updated WRT xterm.c. Use macros where possible.
9915 (dumprectangle): Take into account the width of a left-side
9918 * w32proc.c (sys_kill): Attach to current foreground thread
9919 when grabbing focus; necessary on NT 5.0.
9921 * w32fns.c (w32_wnd_proc) [WM_PAINT]: Use rectangle from
9922 GetUpdateRect rather than BeginPaint.
9923 (w32_wnd_proc): Attach to current foreground thread
9924 when grabbing focus; necessary on NT 5.0.
9925 (w32_wnd_proc) [W32_DEBUG_DISPLAY]: Add output for
9926 debugging display messages.
9927 (w32_to_x_charset): Put wildcard last in unknown charsets to avoid
9930 1999-05-02 Kenichi HANDA <handa@etl.go.jp>
9932 * coding.c (setup_raw_text_coding_system): Call
9933 setup_coding_system to initialize the fields of struct
9934 coding_system correctly.
9936 1999-04-26 Kenichi HANDA <handa@etl.go.jp>
9938 * xterm.c (x_list_fonts): Fix previous change.
9940 1999-04-26 Richard Stallman <rms@gnu.org>
9942 * config.in (HAVE_LIBXP): Add #undef.
9943 * Makefile.in (LIB_MOTIF_EXTRA): Check HAVE_LIBXP.
9945 1999-04-12 Ken'ichi Handa <handa@gnu.org>
9947 * xterm.c (x_list_fonts): Trap X errors so that Emacs doesn't die
9950 1999-04-12 Karl Heuer <kwzh@gnu.org>
9952 * s/freebsd.h (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3.
9954 1999-04-11 Ken'ichi Handa <handa@gnu.org>
9956 * fontset.c (Fset_fontset_font): Fix previous change.
9958 1999-04-09 Ken'ichi Handa <handa@gnu.org>
9960 * fontset.c (Fquery_fontset): Check for fontset aliases here.
9961 (Fnew_fontset, Fset_fontset_font): Don't check for them here.
9963 1999-04-08 Richard Stallman <rms@gnu.org>
9965 * process.c (Faccept_process_output): Check validity of PROCESS.
9967 1999-04-08 Eli Zaretskii <eliz@gnu.org>
9969 * msdos.c (jp_kbd_translate_table): Fix the other \ key.
9971 1999-04-07 Richard Stallman <rms@gnu.org>
9973 * xfns.c (x_set_font): Fix error message.
9975 * fontset.c (Fquery_fontset): Don't check for fontset aliases here.
9976 (Fnew_fontset, Fset_fontset_font): Check for them here.
9977 (Ffontset_info, Fnew_fontset, Fset_fontset_font):
9978 Fix error message syntax.
9980 * buffer.c (Fmake_indirect_buffer): Copy multibyte status
9981 from the base buffer.
9982 (Fset_buffer_multibyte): Copy new multibyte status
9983 into the buffer's indirect buffers.
9985 1999-04-07 Ken'ichi Handa <handa@gnu.org>
9987 * fns.c (base64_encode_1): Don't add unnecessary newline at the
9990 1999-04-06 Richard Stallman <rms@gnu.org>
9992 * dired.c (Ffile_attributes): Doc fix.
9994 * keymap.c (Faccessible_keymaps): Really initialize i_byte.
9995 Convert 0200 to meta only in a unibyte string.
9996 (Fkey_description): Likewise.
9998 * eval.c (do_autoload): Preserve match data.
10000 1999-04-06 Kenichi HANDA <handa@etl.go.jp>
10002 * w32fns.c (x_to_w32_font): Provide sufficient buffer to
10003 encode_coding to avoid carryover.
10005 * coding.c: Add comments for decode_coding and encode_coding.
10007 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
10008 a composite character by skipping its leading code.
10009 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
10012 * coding.c: Add comments for decode_coding and encode_coding.
10014 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
10015 a composite character by skipping its leading code.
10016 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
10019 1999-04-06 Eli Zaretskii <eliz@gnu.org>
10021 * msdos.c (dos_rawgetc): Don't zero out c if private translation
10023 (jp_kbd_translate_table): Support C-\.
10024 (it_kbd_translate_table): Map `>' correctly.
10025 (it_keyboard): Add `>'.
10027 1999-04-06 Richard Stallman <rms@gnu.org>
10029 * intervals.c (graft_intervals_into_buffer): Turn off
10030 inhibit_modification_hooks around calling Fset_text_properties.
10032 1999-04-05 Kenichi HANDA <handa@etl.go.jp>
10034 * xterm.c (dumpglyphs): Be sure to fill the whole background of
10037 1999-04-05 Eli Zaretskii <eliz@gnu.org>
10039 * msdos.c (jp_kbd_translate_table): Fix last change.
10041 1999-04-04 Eli Zaretskii <eliz@gnu.org>
10043 * msdos.c (struct kbd_translate): New struct, for key translation
10044 tables private to certain national keyboard layouts.
10045 (struct dos_keyboard_map): Add a pointer to a private translation
10047 (jp_kbd_translate_table): Private table for the Japanese
10049 (jp_keyboard): Japanese keyboard layout.
10050 (it_kbd_translate_table): Private table for the Italian keyboard.
10051 (it_keyboard): Use it_kbd_translate_table.
10052 (keyboard_layout_list): Add the Japanese keyboard.
10053 (dos_rawgetc): Use the keyboard-private translation table, if
10055 (abort) [__DJGPP_MINOR__ >= 2]: Raise SIGABRT.
10057 1999-04-02 Kenichi HANDA <handa@etl.go.jp>
10059 * xdisp.c (redisplay_window): When we call compute_motion with
10060 HPOS got from w->last_point_x, call it with DID_MOTION 1.
10061 (display_text_line): Stop the loop for processing overlay strings
10062 when we reach the right edge of the window.
10064 1999-03-31 Richard M. Stallman <rms@caffeine.ai.mit.edu>
10066 * doc.c (get_doc_string): When UNIBYTE and DEFINITION are 0,
10067 let the data control whether string is unibyte.
10069 1999-03-30 Richard M. Stallman <rms@gnu.org>
10071 * macros.c (Fexecute_kbd_macro): Save real_this_command.
10072 (pop_kbd_macro): Restore the saved real_this_command.
10073 (Fcall_last_kbd_macro): Set real_this_command to the macro.
10075 1999-03-26 Richard M. Stallman <rms@gnu.org>
10077 * buffer.c (Fset_buffer_modified_p): Don't lock or unlock
10078 if buffer-file-name is nil.
10080 1999-03-25 Jason Rumney <jasonr@altavista.net>
10082 * w32select.c (Fw32_set_clipboard_data): Take into account line
10083 ends when calculating clipboard storage needed for non-ASCII text.
10085 1999-03-25 Andrew Innes <andrewi@gnu.org>
10087 * makefile.nt (PREPARED_HEADERS): Change name of paths.h to epaths.h.
10088 (epaths.h): Renamed from paths.h.
10090 ($(BLD)\filelock.obj):
10091 ($(BLD)\lread.obj):
10092 ($(BLD)\w32fns.obj): Renamed paths.h to epaths.h.
10094 1999-03-23 Ken'ichi Handa <handa@gnu.org>
10096 * coding.c (encode_coding_iso2022): Initialize dummy arguments to
10097 ENCODE_ISO_CHARACTER for the previous change on this macro.
10099 1999-03-23 Kenichi Handa <handa@etl.go.jp>
10101 * xdisp.c (decode_mode_spec_coding): Handle integer value in
10102 eoltype correctly for backward compatibility.
10104 1999-03-20 Kenichi HANDA <handa@etl.go.jp>
10106 * coding.c (ENCODE_ISO_CHARACTER): Check validity of CHARSET. If
10107 invalid, produce the buffer internal byte sequence without encoding.
10109 1999-03-19 Karl Heuer <kwzh@gnu.org>
10111 * editfns.c (Fformat): Accept %i format.
10113 1999-03-17 Karl Heuer <kwzh@gnu.org>
10115 * filelock.c (get_boot_time): Test tempname, not filename.
10117 1999-03-17 Jason Rumney <jasonr@altavista.net>
10119 * w32bdf.h: Merged patches from Meadow.
10121 * w32bdf.c: Merged patches from Meadow.
10123 * w32fns.c (enum_font_cb2): Set the font height to be the
10124 character height, not the cell height.
10125 (Fw32_select_font): Initialize font dialog with current default font.
10126 (Vw32_system_coding_system): New variable.
10127 (w32_strict_filenames): Add comment.
10128 (w32_to_x_font): Decode font name using Vw32_system_coding_system.
10129 (x_to_w32_font): Encode font name using Vw32_system_coding_system.
10130 (syms_of_w32fns): Add w32-system-coding-system.
10132 1999-03-15 Richard M. Stallman <rms@gnu.org>
10134 * xterm.c (XTread_socket) <ConfigureNotify>:
10135 If cursor pos is outside the new frame size, mark cursor as off.
10137 1999-03-14 Ken'ichi Handa <handa@gnu.org>
10139 * xdisp.c (try_window_id): Initialize val.ovstring_chars_done to 0.
10141 * xterm.c (x_load_font): Trap X errors so that Emacs doesn't die
10144 1999-03-14 Richard M. Stallman <rms@gnu.org>
10146 * macros.c (Fexecute_kbd_macro): Initialize executing_macro_iterations
10149 1999-03-14 Jason Rumney <jasonr@altavista.net>
10151 * w32fns.c (w32_strict_fontnames): New variable.
10152 (Fx_create_frame): Formatting fix.
10153 (w32_load_system_font): Keep trying to load non-existant font
10154 if w32_strict_fontnames is nil. Formatting fix.
10155 (syms_of_w32fns): Add w32-strict-fontnames.
10157 * w32term.c (W32_TEXTOUT): Do not multiply nchars by charset_dim.
10158 (dumpglyphs): Formatting fixes.
10160 1999-03-14 Geoff Voelker <voelker@cs.washington.edu>
10162 * w32fns.c (w32_wnd_proc): Handle WM_GETMINMAXINFO message.
10164 1999-03-10 Karl Heuer <kwzh@gnu.org>
10166 * puresize.h (BASE_PURESIZE): Increase to 505000.
10168 1999-03-09 Richard M. Stallman <rms@gnu.org>
10170 * emacs.c (main) [CLASH_DETECTION]: Call init_filelock.
10172 * filelock.c (init_filelock): New function.
10174 1999-03-09 Dave Love <fx@gnu.org>
10176 * fileio.c (Ffile_directory_p): Doc fix.
10178 1999-03-05 Richard M. Stallman <rms@caffeine.ai.mit.edu>
10180 * coding.c (setup_coding_system): Check for CODING_SYSTEM = nil.
10182 1999-03-08 Richard M. Stallman <rms@gnu.org>
10184 * filelock.c (get_boot_time): Reduce scope of #ifdef BOOT_TIME
10185 to only the part that uses get_boot_time_1.
10187 1999-03-07 Dave Love <fx@gnu.org>
10189 * fileio.c (Finsert_file_contents): Use xfree.
10191 1999-03-06 Kenichi Handa <handa@etl.go.jp>
10193 * Makefile.in (callproc.o, coding.o, fileio.o, msdos.o, process.o,
10194 term.o, xselect.o): Depend on ccl.h.
10196 1999-03-05 Geoff Voelker <voelker@cs.washington.edu>
10198 * makefile.nt: Remove common multiple file compilation commands.
10200 1999-03-04 Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
10202 * fns.c (Fbase64_encode_string): Allocate sufficient memory for
10203 newlines added when the arg NO-LINE-BREAK is nil.
10205 1999-03-04 Karl Heuer <kwzh@gnu.org>
10207 * search.c (Fstring_match, Fposix_string_match): Doc fix.
10209 * buffer.c (syms_of_buffer): Doc fix for case-fold-search.
10211 1999-03-04 Dave Love <fx@gnu.org>
10213 * term.c (term_init): Use xmalloc, not malloc.
10215 * callproc.c (Fcall_process): Use xmalloc, xfree.
10217 1999-03-03 Andreas Schwab <schwab@gnu.org>
10219 * eval.c (Fdefconst): Doc fix.
10221 1999-03-01 Kenichi Handa <handa@etl.go.jp>
10223 * coding.c: Comment for ISO 2022 encoding mechanism modified.
10225 1999-03-01 Eli Zaretskii <eliz@gnu.org>
10227 * w16select.c (get_clipboard_data): Always stop at the first null byte.
10229 1999-02-28 Richard M. Stallman <rms@gnu.org>
10231 * filelock.c (get_boot_time): Support FreeBSD way to read boot-time.
10233 * cmds.c (internal_self_insert): Calculate column properly
10234 in overwrite-of-tab case.
10236 1999-02-27 Andreas Schwab <schwab@gnu.org>
10238 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't use unsetenv, it calls
10239 malloc in glibc 2.1.
10241 1999-02-26 Richard Stallman <rms@gnu.org>
10243 * Makefile.in: paths.h and paths.in renamed to epaths.h and epaths.in.
10245 * epaths.in: Renamed from paths.in.
10246 This avoids a conflict with a system header file paths.h on GNU/Linux.
10248 * callproc.c, lread.c, w32fns.c, xfns.c, xrdb.c:
10249 Use epaths.h istead of paths.h.
10251 1999-02-26 Andreas Schwab <schwab@gnu.org>
10253 * emacs.c (main) [DOUG_LEA_MALLOC]: Work around a bug in glibc's
10256 1999-02-25 Dave Love <fx@gnu.org>
10258 * buffer.c (syms_of_buffer): Doc fix for enable-multibyte-characters.
10260 1999-02-25 Richard Stallman <rms@gnu.org>
10262 * filelock.c (get_boot_time): Use WTMP_FILE for file name.
10263 (WTMP_FILE): Default definition in case not defined.
10264 (get_boot_time_1): Test that file exists before trying to read it.
10266 1999-02-25 Ken'ichi Handa <handa@gnu.org>
10268 * keymap.c (push_key_description): If enable-multibyte-characters
10269 is nil and C is single byte, push C as is.
10271 1999-02-24 Kenichi Handa <handa@etl.go.jp>
10273 * keymap.c (push_key_description): If enable-multibyte-characters
10274 is non-nil, try to convert unibyte character to multibyte. For
10275 invalid multibyte character, show all bits by octal form.
10276 (Fsingle_key_description): Check the validity of charset for a
10279 1999-02-23 Richard M. Stallman <rms@gnu.org>
10281 * fileio.c (Ffile_regular_p): Undo previous change.
10283 * eval.c (Fdefconst): Doc fix.
10285 * filelock.c (get_boot_time): Don't use BUFSIZ.
10287 1999-02-22 Andrew Innes <andrewi@gnu.org>
10289 * makefile.nt ($(BLD)\w32bdf.obj): Add missing continuation character.
10290 (EXTRA_LINK): Do version test with strings.
10292 1999-02-22 Andreas Schwab <schwab@gnu.org>
10294 * fns.c (Fbase64_encode_string): Fix last change.
10296 * termhooks.h (event_kind): Add user_signal.
10298 * keyboard.c (Qusr1_signal, Qusr2_signal): New variables.
10299 (syms_of_keyboard): Initialize them.
10300 (lispy_user_signals): New variable.
10301 (make_lispy_event): Handle user_signal event type.
10303 * emacs.c: Don't define Qusr1_signal and Qusr2_signal.
10304 (syms_of_emacs): Don't initialize them.
10305 (handle_USR1_signal, handle_USR2_signal): Set event type to
10306 user_signal instead of non_ascii_keystroke, and use plain integers
10307 as code instead of Lisp symbols.
10309 1999-02-21 Eli Zaretskii <eliz@delysid.gnu.org>
10311 * fileio.c: (lstat) [!S_ISLNK]: Use stat instead of lstat.
10313 1999-02-21 Richard Stallman <rms@gnu.org>
10315 * filelock.c (get_boot_time_1): Put this in #ifdef BOOT_TIME.
10317 * print.c (print_error_message): Don't crash if (cdr data)
10320 1999-02-21 Eli Zaretskii <eliz@gnu.org>
10322 * fileio.c (lstat) [!S_ISLNK]: Use stat instead of lstat.
10324 1999-02-20 Andrew Innes <andrewi@gnu.org>
10326 * vm-limit.c (memory_warnings) [WINDOWSNT]: Reset lim_data on each
10327 run, since size can vary from run to run.
10329 * makefile.nt (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
10330 data is included, to enable profiling.
10331 ($(EMACS)): Map file not needed for emacs.exe.
10333 * emacs.c (main): [!SYSTEM_MALLOC]: Call realloc and free as well
10334 as malloc before calling uninterrupt_malloc, for consistency.
10335 This also enables profiling to work on WINDOWSNT.
10337 1999-02-18 Richard Stallman <rms@gnu.org>
10339 * Makefile.in (emacs.o): Depend on termhooks.h.
10340 (filelock.o): Depend on systime.h.
10342 1999-02-18 Ken'ichi Handa <handa@gnu.org>
10344 * coding.c (Fdecode_sjis_char): Use %x for formatting error message.
10345 (Fdecode_big5_char): Likewise.
10347 1999-02-17 Richard Stallman <rms@gnu.org>
10349 * insdel.c (adjust_markers_for_replace): When doing an insertion
10350 (replacing a region of zero length), handle markers at the
10351 insertion point properly.
10353 1999-02-17 Andrew Innes <andrewi@gnu.org>
10355 * w32fns.c (Vw32_quit_key): New variable.
10356 (post_character_message): Use it.
10357 (syms_of_w32fns): DEFVAR it.
10359 1999-02-16 MORIOKA Tomohiko <morioka@jaist.ac.jp>
10361 * fns.c (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'.
10363 1999-02-16 Richard Stallman <rms@gnu.org>
10365 * filelock.c (within_one_second): New function.
10366 (current_lock_owner): Use that.
10367 (get_boot_time): Use /proc/uptime if available.
10368 Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
10369 (get_boot_time_1): New subroutine taken from get_boot_time.
10371 1999-02-16 Richard Stallman <rms@gnu.org>
10373 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
10374 (syms_of_emacs): Init and staticpro them.
10375 (handle_USR1_signal): Don't run any code, just queue up an event.
10376 (handle_USR2_signal): Likewise.
10378 1999-02-16 Eli Zaretskii <eliz@gnu.org>
10380 * dired.c (Ffile_attributes): If the file's size doesn't fit in
10381 an integer, return it as a float. Doc string fixed.
10383 1999-02-16 Richard Stallman <rms@gnu.org>
10385 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
10386 (syms_of_emacs): Init and staticpro them.
10387 (handle_USR1_signal): Don't run any code, just queue up an event.
10388 (handle_USR2_signal): Likewise.
10390 1999-02-15 Kenichi Handa <handa@etl.go.jp>
10392 * coding.c (Fdecode_sjis_char, Fencode_sjis_char): Handle
10393 ASCII correctly. Signal error on invalid characters.
10394 (Fdecode_big5_char, Fencode_big5_char): Likewise.
10396 1999-02-15 Eli Zaretskii <eliz@gnu.org>
10398 * w16select.c (get_clipboard_data): Work around a bug in Windows95
10399 DOS box which doubles the reported size of text in the clipboard.
10401 1999-02-15 Kenichi Handa <handa@etl.go.jp>
10403 * coding.c (decode_coding_iso2022): Don't set
10404 coding->composed_chars to 0 here.
10405 (setup_coding_system): Set coding->composed_chars to 0 here.
10407 1999-02-10 Richard Stallman <rms@gnu.org>
10409 * fileio.c (Ffile_regular_p): Use lstat.
10411 1999-02-09 Richard Stallman <rms@gnu.org>
10413 * unexelf.c (HAS_SBSS_SECTION): Define this in some cases.
10414 (unexec): Test this instead of specific systems.
10416 * m/macppc.h: New file.
10418 1999-02-08 Dave Love <fx@gnu.org>
10420 * fns.c (Fyes_or_no_p, Fy_or_n_p): Doc fix.
10422 1999-02-08 Ken'ichi Handa <handa@gnu.org>
10424 * coding.c (ccl_coding_driver): On encoding, coding->produced_char
10425 should be set to coding->produced.
10427 1999-02-07 Paul Fisher <rao@gnu.org>
10429 * fns.c (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
10430 (base64_decode_1): Use READ_QUADRUPLET_BYTE.
10432 1999-02-07 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
10434 * editfns.c (Fformat): Doc fix.
10436 1999-02-06 Richard Stallman <rms@gnu.org>
10438 * process.c (syms_of_process): defsubr it.
10439 (Fprocess_running_child_p): New function.
10441 1999-02-05 Andrew Innes <andrewi@gnu.org>
10443 * w32term.c (construct_drag_n_drop): Call DraqQueryPoint before
10444 recording drop position.
10446 1999-02-05 Ken'ichi Handa <handa@gnu.org>
10448 * coding.c (encode_coding_iso2022): Before writing out an invalid
10449 code, reset graphic planes and registers if necessary.
10451 * term.c (encode_terminal_code): Fix previous change.
10453 1999-02-04 Eli Zaretskii <eliz@gnu.org>
10455 * w16select.c (last_clipboard_text, clipboard_storage_size): New
10457 (set_clipboard_data): Save a copy of the text we put into
10458 clipboard in last_clipboard_text.
10459 (get_clipboard_data): If the clipboard text is identical to what
10460 last_clipboard_text holds, pretend there's no data in the clipboard.
10462 1999-02-03 Richard Stallman <rms@gnu.org>
10464 * s/gnu.h (NLIST_STRUCT): Add #undef.
10466 1999-02-03 Eli Zaretskii <eliz@gnu.org>
10468 * w16select.c (Fw16_set_clipboard_data): When the text needs to be
10469 encoded, set its pointer and size as returned by encode_coding.
10471 1999-02-02 Ken'ichi Handa <handa@gnu.org>
10473 * fns.c (Fset_char_table_default): To handle the case that CH is
10474 an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
10476 1999-02-02 Andrew Innes <andrewi@gnu.org>
10478 * w32fns.c (syms_of_w32fns): Change default value of
10479 w32-mouse-move-interval to 0, so that the mouse wheel/rocker on
10480 some mice works properly.
10482 1999-02-02 Eli Zaretskii <eliz@gnu.org>
10484 * w16select.c (set_clipboard_data): Correctly null-terminate the
10485 string to be put into the Windows clipboard. Use xbuf_addr.
10487 1999-02-01 Richard Stallman <rms@gnu.org>
10489 * buffer.c (Fset_buffer_multibyte): Error if buffer is indirect.
10491 1999-01-31 Richard Stallman <rms@gnu.org>
10493 * process.c (process_send_signal): If CURRENT_GROUP is `lambda'
10494 then don't send the signal if the shell owns the terminal.
10495 (Finterrupt_process): Doc change.
10497 1999-01-31 Andrew Innes <andrewi@gnu.org>
10499 * unexw32.c: (ROUND_UP_DST_AND_ZERO): New macro.
10500 (copy_executable_and_dump_data): Use it to ensure alignment slop
10503 1999-01-30 Andrew Innes <andrewi@gnu.org>
10505 * w32.c (init_environment): Change argv[0] to contain the full
10508 * emacs.c (main) [WINDOWSNT]: Pass argv to init_environment.
10510 1999-01-29 Ken'ichi Handa <handa@gnu.org>
10512 * xterm.c (x_new_fontset): For ASCII font, don't use the font name
10513 returned by x_new_font (the resolved one) but use the font name
10514 set in the fontset specification.
10515 (x_load_font): For the height of font, if normarl ascent and
10516 descent value are larger than those in max_bounds field, use the
10519 1999-01-28 Eli Zaretskii <eliz@gnu.org>
10521 * xdisp.c (decode_mode_spec_coding): Fix previous change.
10523 1999-01-27 Geoff Voelker <voelker@cs.washington.edu>
10525 * makefile.nt: Use full path to temacs.exe when dumping.
10527 1999-01-27 Jason Rumney <jasonr@altavista.net>
10529 * w32fns.c (w32_load_system_font): Do not load unlisted fonts if
10531 (enum_fontex_cb1, enum_fontex_cb2): New functions.
10532 (w32_list_bdf_fonts): New parameter; max_names. Callers updated.
10533 (w32_list_synthesized_fonts): New function.
10534 (w32_list_fonts): Use maxnames. Use EnumFontFamiliesEx when
10535 available instead of EnumFontFamilies. List synthesized fonts if
10536 Vw32_enable_italics is non-nil.
10538 1999-01-27 Richard Stallman <rms@gnu.org>
10540 * s/ptx4.h (SETUP_SLAVE_PTY): Use the ptem module if it exists.
10541 Don't complain if ttcompat does not exist.
10543 * w32fns.c (x_set_frame_parameters): gcpro as needed.
10545 1999-01-27 Andrew Innes <andrewi@gnu.org>
10547 * w32fns.c (w32_wnd_proc): Fix bug introduced by previous change;
10548 the lwindow, rwindow and apps keys could not be used as function
10549 keys, because they were being passed to TranslateMessage which
10550 ignores them. Also, key was being changed to SPC.
10552 * makefile.nt: Do make version comparison as strings.
10554 1999-01-27 Eli Zaretskii <eliz@gnu.org>
10556 * coding.c (syms_of_coding): eol-mnemonic-* variables are now
10557 strings, not characters.
10559 * coding.h: Likewise.
10561 * xdisp.c (decode_mode_spec_coding): Display the EOL type as a
10564 1999-01-26 Dave Love <fx@gnu.org>
10566 * emacs.c (main): Up-date copyright.
10568 1999-01-25 Dave Love <fx@gnu.org>
10570 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
10572 1999-01-25 Andreas Schwab <schwab@gnu.org>
10574 * eval.c (Fsignal): Move comment to avoid confusing make-docfile.
10576 1999-01-23 Richard M. Stallman <rms@borg.ai.mit.edu>
10578 * xfns.c (x_set_frame_parameters): gcpro as needed.
10580 * window.c (Fset_window_point): If WINDOW is selected but the
10581 current buffer is not its buffer, don't use Fgoto_char.
10583 1999-01-22 Richard M. Stallman <rms@gnu.org>
10585 * syntax.c (scan_sexps_forward): Delete duplicate code
10586 to set prev_from_syntax, above start of main loop.
10587 At startinstring, check syntax when checking for a match.
10589 1999-01-22 Jason Rumney <jasonr@altavista.net>
10591 * w32bdf.c: New file.
10592 * w32bdf.h: New file.
10593 * makefile.nt: Add w32bdf.c and w32bdf.h.
10595 * w32gui.h: Include w32bdf.h.
10596 (W32FontStruct) Add bdf element.
10598 * w32term.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
10601 * w32term.c (W32_TEXTOUT): New macro.
10602 (dumpglyphs): Support BDF fonts. Use W32_TEXTOUT macro.
10603 Simplify baseline calculation. Detect SJIS by font, not glyph.
10605 (syms_of_w32term): Remove "jisx0212-sjis" from
10606 w32-charset-to-codepage-alist.
10607 Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
10608 Add "ksc5601.1992' to w32-charset-to-codepage-alist.
10610 * w32fns.c (Vw32_bdf_filename_alist): New variable.
10611 (x_destroy_bitmap): Returns void not int.
10612 (x_set_border_pixel): Returns void.
10613 (w32_load_bdf_font): New function.
10614 (w32_load_system_font): New function, was w32_load_font. List
10615 fonts before loading. Explicitly set encoding for SJIS fonts.
10616 Set default_ascent to 0 as comment indicates.
10617 (w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
10618 (w32_unload_font): Support BDF fonts.
10619 (w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
10620 Autodetect whether to use koi8-r instead of iso8859-5.
10621 Associate "ksc5601.1987" with HANGUEL_CHARSET.
10622 Associate "ksc5601.1992" with JOHAB_CHARSET.
10623 (x_to_w32_charset): Make consistent with w32_to_x_charset.
10624 (w32_to_x_font): Add resolution.
10625 (x_to_w32_font): Use font resolution to calculate height if supplied.
10626 (w32_font_match): Handle wildcards anywhere within field.
10627 (enumfont_t): Remove unused head pointer.
10628 (enum_font_cb2): Dereference elfLogFont.
10629 (w32_list_bdf_fonts): New function.
10630 (w32_list_fonts): Use one_w32_dispay_info instead of insisting on
10631 valid frame. Remove MessageBox. Support BDF fonts.
10632 (Fw32_find_bdf_fonts): New function.
10633 (syms_of_w32fns): Add Vw32_bdf_filename_alist and
10634 Sw32_find_bdf_fonts.
10636 1999-01-21 Andrew Innes <andrewi@gnu.org>
10638 * makefile.nt (temacs): Use del to delete file, not rm.
10640 1999-01-19 Richard Stallman <rms@psilocin.ai.mit.edu>
10642 * keyboard.c (read_key_sequence): Fix previous change.
10644 * xterm.c (same_x_server): Detect treat ":0" and "unix:0"
10645 as the same. Treat "myname:0" as the same as those two.
10647 1999-01-19 Jason Rumney <jasonr@altavista.net>
10649 * w32fns.c (x_to_w32_charset): Add iso8859-9.
10650 (w32_to_x_charset): Fix charset mappings.
10652 * w32term.c: Remove codepage macros. Remove redundant BIG5 macros.
10653 (dumpglyphs): Move definitions out of block containing goto.
10654 Remove redundant code for BIG5.
10655 Use w32_codepage_for_font instead of
10656 w32_codepage_for_charset. Add cast to int where float
10657 operation is assigned to int.
10658 (Vw32_charset_to_codepage_alist): New variable.
10659 (w32_codepage_for_charset): Removed.
10660 (w32_codepage_for_font): New function, replacing
10661 w32_codepage_for_charset.
10662 (syms_of_w32term): Add and initialize
10663 w32-charset-to-codepage-alist.
10665 1999-01-17 Richard Stallman <rms@psilocin.ai.mit.edu>
10667 * xselect.c (x_handle_selection_clear): Don't clear the
10668 selection if Emacs still owns it through a different display.
10670 1999-01-17 Andrew Innes <andrewi@gnu.org>
10672 * w32proc.c: (w32_executable_type): Relax the check to identify
10673 cygwin-compiled applications, because the exact dll name varies
10674 with release. Now only require the name to start "cygwin".
10676 * w32heap.h: (ROUND_UP):
10677 (ROUND_DOWN): New macros.
10678 (need_to_recreate_heap): Renamed to using_dynamic_heap.
10679 (init_heap): New extern.
10680 (data_region_size):
10685 (w32_fatal_reload_error):
10686 (get_section_size): Obsolete externs removed.
10688 * w32heap.c: (RVA_TO_PTR): Redefine to convert RVA to address in
10690 (round_to_next): Obsolete function removed.
10691 (preload_heap_section): New variable.
10692 (data_region_size): Obsolete variable removed.
10693 (allocate_heap): Modified to determine end of static heap section
10694 used during preload, and use that as initial base address for
10695 dynamic heap instead of hard-coded value.
10696 (sbrk): Remove call to allocate_heap; handled by init_heap. Skip
10697 calls to commit or decommit pages when allocating from static heap
10698 section during preload.
10699 (recreate_heap): Obsolete function removed.
10700 (init_heap): New function to initialize internal sbrk heap
10701 variables. Uses static heap section during preload, otherwise
10702 calls allocate_heap to reserve a heap region dynamically.
10703 (round_heap): Use ROUND_UP macro instead of round_to_next.
10705 * unexw32.c: Major rewrite to support cleaner method of dumping; a
10706 static "bss" section is used for heap space during preload, and
10707 bss data is now written to the proper section area when dumping.
10708 (need_to_recreate_heap): Renamed to using_dynamic_heap.
10709 (heap_index_in_executable): Obsolete variable removed.
10710 (data_section): New variable.
10711 (data_start_va): Renamed to data_start.
10712 (data_start_file): Obsolete variable removed.
10715 (bss_section_static):
10716 (bss_start_static):
10718 (extra_bss_size_static):
10719 (heap_section): New variables.
10720 (_start): Remove code based on old unexec method. Call init_heap
10721 to initialize sbrk heap.
10722 (close_file_data): Update size of file when closing, so that
10723 unexec doesn't have to work out exact size in advance.
10724 (get_bss_info_from_map_file):
10725 (get_section_size): Obsolete functions removed.
10726 (rva_to_section): Fix minor bug, and add a work-around for a bug
10727 in very old linkers.
10728 (offset_to_section):
10729 (relocate_offset): New functions.
10732 (RVA_TO_SECTION_OFFSET):
10735 (OFFSET_TO_PTR): New macros.
10736 (get_section_info): Modify to support new unexec method;
10737 determines address ranges in process that need dumping, and COFF
10738 sections where data will be dumped. Allows for static and global
10739 bss data to be in separate ranges. No longer relies on knowledge
10741 (copy_executable_and_dump_data_section): Renamed
10742 copy_executable_and_dump_data. Completely rewritten to copy
10743 executable section by section, so that raw data areas can be
10744 expanded to hold dumped data as necessary. Allows for bss data to
10745 be in same section as initialized data. Reduces size of static
10746 heap section to that used during preload.
10747 (dump_bss_and_heap):
10748 (w32_fatal_reload_error):
10750 (map_in_heap): Obsolete functions removed.
10751 (unexec): Rounds off preload heap to nearest page rather than
10752 virtual allocation unit. Modified to match other changes.
10754 * mem-limits.h: (get_lim_data): Use reserved_heap_size instead of
10757 * makefile.nt: (TEMACS_TMP): New macro.
10758 ($(TEMACS)): Output to TEMACS_TMP from link, use post-link
10759 processor to add static heap section in support of new unexec.
10761 * lastfile.c: Include config.h to pick up data layout pragmas.
10762 [WINDOWSNT]: Remove explicit pragma.
10764 1999-01-12 Kenichi Handa <handa@etl.go.jp>
10766 * coding.c (Fdecode_sjis_char): Decode Japanese Katakana character
10768 (Fencode_sjis_char): Encode Japanese Katakana character correctly.
10770 1999-01-11 Dave Love <fx@gnu.org>
10772 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
10774 1999-01-11 Richard Stallman <rms@psilocin.ai.mit.edu>
10776 * keyboard.c (read_key_sequence): In key-translation-map and
10777 function-key-map, handle symbol with array as fn def.
10778 In function-key-map, handle symbol with keymap as fn def,
10779 and autoloaded definitions.
10781 * puresize.h (BASE_PURESIZE): Increment to 500000.
10783 * print.c (Qtemp_buffer_setup_hook): New variable.
10784 (syms_of_print): Init and staticpro that.
10785 (temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
10787 1999-01-11 Kenichi Handa <handa@etl.go.jp>
10789 * insdel.c (del_range_1): Call signal_after_change.
10790 (del_range_byte): Likewise.
10791 (del_range_both): Likewise.
10792 (del_range_2): Don't call signal_after_change.
10794 * xdisp.c (message_dolog): Use insert_1_both to avoid running any
10797 1999-01-07 Richard Stallman <rms@psilocin.ai.mit.edu>
10799 * eval.c (find_handler_clause): If SIG is nil (memory full error),
10800 never run the debugger, and don't bother checking the args
10801 to see whether the debugger should be run.
10803 1999-01-06 Richard Stallman <rms@psilocin.ai.mit.edu>
10805 * keyboard.c (read_key_sequence):
10806 Tell get_keyelt to look handle autoloads.
10807 Handle symbols defined as keymaps, and autoloaded keymaps.
10809 1999-01-06 Kenichi Handa <handa@etl.go.jp>
10811 * search.c (search_buffer): Fix previous change.
10813 1999-01-06 Eli Zaretskii <eliz@gnu.org>
10815 * w16select.c (set_clipboard_data): Terminate the text with a null
10816 character. Don't allow to put binary data into the clipboard.
10817 Return zero in case of success, 1 or 2 otherwise.
10818 (get_clipboard_data): Only bail out if the null character is in
10819 the last 32-byte chunk of clipboard data
10820 (Fw16_set_clipboard_data): Make ok and put_status be unsigned. If
10821 they save binary data, print a message in the echo area saying the
10822 text was not put into the clipboard.
10824 * msdos.c (IT_write_glyphs): Move constant expression out of the loop.
10826 1999-01-06 Andreas Schwab <schwab@gnu.org>
10828 * systty.h [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
10829 _BSD_SOURCE, the latter is always defined.
10831 1999-01-05 Richard Stallman <rms@psilocin.ai.mit.edu>
10833 * fns.c (Frequire): Don't fail to unbind bindings.
10835 1999-01-02 Richard Stallman <rms@psilocin.ai.mit.edu>
10837 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit.
10839 * charset.c (Ffind_charset_region): Fix doc typo.
10841 1998-12-31 Eli Zaretskii <eliz@mescaline.gnu.org>
10843 * msdos.c (IT_write_glyphs): Convert unibyte characters to
10844 multibyte in unibyte buffers only.
10846 * keymap.c (Fdefine_prefix_command): Accept a third argument NAME
10847 and pass it to Fmake_sparse_keymap.
10849 1998-12-29 Richard Stallman <rms@psilocin.ai.mit.edu>
10851 * alloc.c (MMAP_MAX_AREAS): New macro.
10852 (allocate_vectorlike, make_uninit_multibyte_string): Use that.
10853 (init_alloc_once): Use that.
10855 * s/gnu-linux.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
10857 * alloc.c (lisp_malloc, lisp_free): New functions.
10858 Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
10859 Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
10860 (n_interval_blocks, n_float_blocks): New variable.
10861 (n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
10862 (n_marker_blocks, n_string_blocks): New variable.
10863 (init_intervals, make_interval): Set a count variable.
10864 Use lisp_malloc instead of setting allocating_for_lisp.
10865 (init_float, make_float, init_cons, Fcons): Likewise.
10866 (allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
10867 (init_marker, allocate_misc, init_strings): Likewise.
10868 (make_uninit_multibyte_string): Likewise.
10869 (gc_sweep, compact_strings): Decrement the count variables.
10871 * alloc.c (uninterrupt_malloc): Don't store Emacs's hooks
10872 into the old_..._hook variables.
10874 1998-12-28 Richard Stallman <rms@psilocin.ai.mit.edu>
10876 * keyboard.c: In each active map, for each menu bar item, use only
10878 (menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
10879 (menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
10880 (syms_of_keyboard): Staticpro and init it.
10882 * xmenu.c (single_keymap_panes):
10884 1998-12-28 Andrew Innes <andrewi@delysid.gnu.org>
10886 * w32fns.c (w32_msg_pump): Ignore WM_NULL message posted to thread
10887 by complete_deferred_msg.
10888 (post_character_message): Cancel all deferred messages when
10889 quit_char is typed, in order to break out of potential deadlocks.
10890 (cancel_all_deferred_msgs): New function.
10891 (complete_deferred_msg): Don't abort if msg not found; may have
10893 (Fw32_reconstruct_hot_key): Use pre-interned symbols.
10894 (Fw32_send_sys_command): Wait for system command to
10895 complete before returning.
10897 * w32term.c (x_iconify_frame): Wait for frame to be iconified; do
10898 not set async_iconified flag though.
10900 * w32proc.c: (Vw32_start_process_inherit_error_mode): New variable.
10901 (create_child): Use it.
10902 (syms_of_ntproc): Defvar it. Also fix docstrings for
10903 w32-start-process-share-console and w32-start-process-show-window.
10905 * unexw32.c (_start): Force system calls accessing unmounted
10906 devices to fail without prompting.
10908 1998-12-26 Richard Stallman <rms@psilocin.ai.mit.edu>
10910 * emacs.c (main): Call memory_warnings and uninterrupt_malloc
10911 even when starting the dumped Emacs.
10913 * keymap.c (Fsingle_key_description): Handle (control ?x) etc.
10914 (Fkey_description): Handle lists like vectors.
10916 1998-12-21 Kenichi Handa <handa@etl.go.jp>
10918 * callint.c (Fcall_interactively) <'C'>: Give Fread_char Qnil
10919 because of the change of the second argument of Fread_char.
10921 * charset.c (Fcharset_after): Check range. If POS is out of
10924 * keyboard.c (read_char): Don't bind input-method-exit-on-first-char.
10926 * lread.c (Fread_char): Change the meaning of the second argument.
10927 (Fread_event): Likewise.
10928 (Fread_char_exclusive): Likewise.
10930 * print.c (printchar): Fix previous change.
10932 * process.c (read_process_output): Decide the multibyteness of
10933 string given to a process filter by a coding system used for
10934 decoding the process output.
10936 1998-12-21 Eli Zaretskii <eliz@mescaline.gnu.org>
10938 * xterm.c (dumpglyphs): Don't convert 7-bit ASCII characters via
10939 nonascii-translation-table.
10940 * msdos.c (IT_write_glyphs): Likewise.
10941 * fns.c (concat): Likewise.
10942 * charset.c (unibyte_char_to_multibyte): Likewise.
10943 * insdel.c (copy_text, count_size_as_multibyte): Likewise.
10945 1998-12-21 Andreas Schwab <schwab@delysid.gnu.org>
10947 * doc.c (Fdocumentation): Change the doc string for prefix
10948 commands to make it a complete sentence in one line.
10950 1998-12-16 Petri Kaurinkoski <Petri.Kaurinkoski@hut.fi>
10952 * s/irix6-5.h: New file.
10953 * s/irix6-0.h (IRIX6): Define this symbol.
10954 * s/usg5-4.h (TIOCSIGSEND): Don't define this if irix6.
10955 (bcopy, bcmp, bzero): Likewise.
10956 * m/iris4d.h (LIBS_MACHINE): Leave this blank if irix6.5.
10957 (C_SWITCH_MACHINE): New value for irix6.5.
10959 1998-12-15 Richard Stallman <rms@gnu.org>
10961 * fns.c (Fbase64_decode_region, Fbase64_decode_string):
10962 Do free malloc'd memory even in case of failure. Use xfree, not free.
10963 (Fbase64_encode_region, Fbase64_encode_string): Use xfree, not free.
10964 (base64_decode_1): Don't fail for short lines.
10966 * print.c (printchar): Outputting multibyte characters
10967 to echo area always makes it multibyte.
10969 * search.c (search_buffer): Don't use Boyer-Moore
10970 to search for an invalid multibyte code.
10971 In unibyte case, no need to check whether there are translations
10972 in more than one charset; just set charset_base to 0.
10974 1998-12-15 Ken'ichi Handa <handa@delysid.gnu.org>
10976 * print.c (printchar): Cancel previous change.
10978 1998-12-15 Kenichi Handa <handa@etl.go.jp>
10980 * callproc.c: Include "ccl.h".
10981 (Fcall_process): Doc-string modified. Set CODING_MODE_LAST_BLOCK
10982 bit in argument_coding.mode to tell encoding procedure to flush
10983 data. While encoding arguments, if argument_coding uses CCL
10984 program, initialize it again after encoding.
10985 (Fcall_process_region): Doc-string modified. Handle the case that
10988 * ccl.c (CCL_SUCCESS): Don't set ccl->ic.
10989 (ccl_driver) <CCL_End>: Pretend that all source text is consumed.
10990 Set `ic' to the head of this command.
10991 (ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
10992 code for an invalid code.
10993 (setup_ccl_program): If the arg VEC is nil, skip setting ups
10996 * charset.c (Qunknown): New variable.
10997 (init_charset_once): Intern and staticpro Qunknown. Initialize
10998 all elements of Vcharset_symbol_table to Qunknown.
10999 (find_charset_in_str): New arg MULTIBYTE. If it is zero, check
11000 unibyte characters only. For an invalid composition sequence, set
11002 (Ffind_charset_region): Call find_charset_in_str with an
11003 appropriate MULTIBYTE arg. If undefined charsets are found,
11004 include `unknown' is the return value.
11005 (Ffind_charset_string): Likewise.
11006 (Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
11007 (str_cmpchar_id): Max composite character code should be less than
11008 GENERIC_COMPOSITION_CHAR.
11010 * charset.h (find_charset_in_str): Update declaration.
11012 * coding.c (DECODE_DESIGNATION): Jump to label_invalid_code if
11013 final_char is invalid.
11014 (decode_coding): If coding->type is coding_type_ccl, call
11015 ccl_coding_driver even if SRC_BYTES is zero.
11016 (code_convert_region): Update `inserted' correctly after calling
11017 coding->post_read_conversion. Even after the code converter
11018 consumed all source text, call it once more if it is
11019 coding_type_ccl to flush out data.
11021 * fileio.c (Finsert_file_contents): Even if INSERTED is zero, if
11022 CODING is handled by CCL program, call code_convert_region.
11024 * fns.c (string_char_to_byte): Handle invalid multibyte sequence
11026 (string_byte_to_char): Likesize.
11028 * print.c (printchar): When outputting a multibyte character to
11029 echo area, always set message_enable_multibyte to 1.
11031 * process.c (read_process_output): If NBYTES is zero and
11032 CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
11033 and try decoding again.
11034 (Fprocess_send_eof): If the coding system of PROCESS
11035 requires flushing, call send_process with null-string at first.
11037 * w16select.c (Fw16_set_clipboard_data): Call find_charset_in_str
11038 with MULTIBYTE arg 0.
11039 * w32select.c (Fw32_set_clipboard_data): Likewise.
11040 * xselect.c (lisp_data_to_selection_data): Likewise.
11042 1998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
11044 * search.c (Freplace_match): Set OPOINT clearly for the case
11045 where point is in the middle of the text to be replaced.
11047 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
11048 if compute_motion fails to advance at all, don't back it up.
11050 1998-12-10 Geoff Voelker <voelker@cs.washington.edu>
11052 * w32.c (w32_get_long_filename): Handle root dirs correctly.
11054 * s/ms-w32.h (LOCALTIME_CACHE): Define.
11056 1998-12-09 Richard Stallman <rms@gnu.org>
11058 * insdel.c (insert_from_buffer_1): Properly count the size
11059 of output from conversion to multibyte even when input
11060 is split across the gap.
11062 1998-12-09 Karl Heuer <kwzh@gnu.org>
11064 * keyboard.c: Doc fixes.
11066 * s/irix4-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
11068 1998-12-08 Andrew Innes <andrewi@harlequin.co.uk>
11070 * w32select.c (Fw32_get_clipboard_data): Do not delete isolated CR
11071 characters, only convert CRLF to LF.
11073 1998-12-08 Geoff Voelker <voelker@cs.washington.edu>
11075 * makefile.nt: Do string comparision of _NMAKE_VER.
11077 1998-12-06 Eli Zaretskii <eliz@mescaline.gnu.org>
11079 * Makefile.in (msdos.o): Depend on termchar.h, charset.h,
11080 coding.h, and disptab.h
11082 * msdos.c (Vdos_unsupported_char_glyph): New variable.
11083 (syms_of_msdos): DEFVAR_LISP it.
11084 (IT_insert_glyphs, IT_delete_glyphs): New functions which abort Emacs.
11085 (internal_terminal_init): Set up insert_glyphs_hook and
11086 delete_glyphs_hook to call them. Explicitly set char_ins_del_ok to 0.
11087 (unibyte_display_via_language_environment): New variable.
11088 (syms_of_msdos): Devfar it.
11089 (IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
11090 Encode the character codes of the glyphs according to the
11091 terminal_coding in effect.
11093 1998-12-04 Andreas Schwab <schwab@delysid.gnu.org>
11095 * fns.c (Fstring_as_unibyte): Doc fix.
11097 1998-12-03 Andreas Schwab <schwab@delysid.gnu.org>
11099 * charset.h: Declare char_valid_p.
11101 1998-12-03 Eli Zaretskii <eliz@mescaline.gnu.org>
11103 * dosfns.c (dos_cleanup): Flush and fsync the termscript stream.
11105 * msdos.c (init_environment): Record the time we started up.
11106 (IT_reset_terminal_modes): Don't restore the screen if we exit too
11107 fast after startup (aka crash).
11109 1998-12-02 Geoff Voelker <voelker@cs.washington.edu>
11111 * w32.c (check_windows_init_file): Use decode_env_path when
11112 using EMACSLOADPATH.
11114 1998-12-02 Jason Rumney <jasonr@altavista.net>
11116 * w32term.c (dumpglyphs): Use unsigned char arrays.
11117 Use FONT_MAX_WIDTH to detect and fudge proportional fonts
11118 for various languages.
11119 Compensate for fonts that have underhangs (e.g., Thai).
11121 * w32term.h (FONT_MAX_WIDTH): New macro.
11123 1998-12-02 Andrew Innes <andrewi@harlequin.co.uk>
11125 * keyboard.c (Qlanguage_change): New variable.
11126 (syms_of_keyboard): Init it.
11127 (kbd_buffer_get_event) [WINDOWSNT]: Generate language-change events.
11128 (lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
11129 keys; add name for Escape key; extend to 256 elements.
11130 (parse_modifiers): Make non-static.
11132 * keyboard.h (parse_modifiers): Declare prototype.
11134 * termhooks.h (event_kind) [WINDOWSNT]: Define language_change_event.
11136 * w32fns.c (w32_last_error): Fix cut+paste error.
11137 (Vw32_phantom_key_code): New variable.
11138 (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New variables.
11139 (syms_of_w32fns): Init and register them.
11140 (reset_modifiers): Use a more precise test for whether Emacs has
11141 keyboard focus. Synchronize state of all keys that can be used as
11142 modifiers, to overcome problems arising from hot-keys.
11143 (w32_key_to_modifier): Be careful not to call intern() to avoid
11144 requiring thread synchronization.
11145 (w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
11146 (w32_wnd_proc): Ensure lock key indicator lights are updated
11147 promptly on Windows 9x, by passing key events on to the system.
11148 (w32_wnd_proc): Use Vw32_phantom_key_code to stop system
11149 responding to Windows key events when not wanted.
11150 (w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
11151 Ctrl-NumLock into pause by the system.
11152 (w32_wnd_proc): Don't translate key combinations containing any
11153 modifiers other than shift (and capslock).
11154 (w32_wnd_proc): Reset modifier key states when receiving focus (we
11155 can't determine the key states until we have keyboard focus).
11156 (Fw32_toggle_lock_key): New function.
11157 (syms_of_w32fns): Defsubr it.
11159 * w32inevt.c (key_event): Use Vw32_phantom_key_code. Undo the
11160 mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
11161 (w32_console_toggle_lock_key): New function.
11163 * w32term.h (WM_EMACS_TOGGLE_LOCK_KEY): New define.
11165 1998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
11167 * search.c (Freplace_match): Set OPOINT clearly for the case
11168 where point is in the middle of the text to be replaced.
11170 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
11171 if compute_motion fails to advance at all, don't back it up.
11173 1998-11-28 Richard Stallman <rms@psilocin.ai.mit.edu>
11175 * xfns.c (Qouter_window_id): New variable.
11176 (syms_of_xfns): Initialize it.
11177 (x_report_frame_params): Set up outer-window-id parameter.
11179 * keymap.c (Fsingle_key_description): Fix previous change.
11181 1998-11-26 Ken'ichi Handa <handa@delysid.gnu.org>
11183 * lisp.h (Frequire): Update declaration.
11185 1998-11-26 Kenichi Handa <handa@etl.go.jp>
11187 * ccl.c (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
11188 if the charset is ascii.
11189 (ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
11191 * charset.c (non_ascii_char_to_string): If C has modifier bits,
11192 make an appropriate one byte string.
11193 (char_bytes): Handle the case that C is a single byte char or has
11196 * charset.h (CHAR_BYTES): If C has modifier bits, return 1.
11198 * cmds.c (internal_self_insert): If C has modifier bits, insert
11199 appropriate one byte char.
11201 1998-11-25 Richard Stallman <rms@psilocin.ai.mit.edu>
11203 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte):
11204 Clear text properties in the new string.
11206 1998-11-24 Felix Lee <flee@cygnus.com>
11208 * process.c (read_process_output): Call signal_after_change.
11210 1998-11-24 Richard Stallman <rms@psilocin.ai.mit.edu>
11212 * buffer.c (syms_of_buffer): Doc fix.
11214 * keyboard.c (syms_of_keyboard): Doc fix.
11216 1998-11-22 Richard Stallman <rms@psilocin.ai.mit.edu>
11218 * frame.c (Fset_mouse_position): Doc fix.
11220 1998-11-20 Richard Stallman <rms@psilocin.ai.mit.edu>
11222 * keymap.c (Fmake_keymap): Doc fix.
11224 1998-11-17 Kenichi Handa <handa@etl.go.jp>
11226 * category.c (word_boundary_p): If C1 or C2 are composite
11227 characters, test their first components.
11229 1998-11-16 Richard Stallman <rms@sucrose.ai.mit.edu>
11231 * window.c (temp_output_buffer_show): Around temp-buffer-show-hook,
11232 don't do save-excursion, just restore selected window.
11234 * window.c (window_loop): For UNSHOW_BUFFER,
11235 always do consider minibuffer windows.
11237 1998-11-16 Kenichi Handa <handa@etl.go.jp>
11239 * charset.h (SINGLE_BYTE_CHAR_P): Check if C is negative or not.
11241 * charset.c (non_ascii_char_to_string): If C is negative, signal error.
11243 * lisp.h (CHAR_TABLE_REF): Check if IDX is negative or not.
11245 * s/bsdos4.h: New file.
11247 1998-11-16 Kenichi Handa <handa@etl.go.jp>
11249 * Makefile.in (abbrev.o): Depend on charset.h
11250 (bytecode.o): Depend on charset.h.
11252 * bytecode.c: Include charset.h.
11254 * abbrev.c: Include charset.h.
11256 * syntax.h (SYNTAX_ENTRY_INT): For a composite character, check
11257 the first component.
11259 1998-11-13 Ehud Karni <ehud@unix.simonwiesel.co.il>
11261 * m/aviion-intel.h (LIBS_MACHINE): Delete redundant definition.
11263 1998-11-11 Richard Stallman <rms@gnu.org>
11265 * xterm.c (XTread_socket): Fix previous change in case F == 0.
11267 * s/dgux5-4-3.h (BSD_PGRPS): Add #undef.
11269 * s/dgux4.h (BROKEN_FIONREAD): #undef commented out.
11270 (INTERRUPT_INPUT): #define commented out.
11272 * m/aviion-intel.h: New file.
11274 1998-11-11 Eli Zaretskii <eliz@delysid.gnu.org>
11276 * fns.c (MAX_ALLOCA): New macro.
11277 (Fbase64_encode_region, Fbase64_encode_string,
11278 Fbase64_decode_region, Fbase64_decode_string): Don't allocate
11279 more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
11281 1998-11-11 Ken'ichi Handa <handa@delysid.gnu.org>
11283 * insdel.c (byte_combining_error): Error message improved.
11285 * charset.c (char_valid_p): Handle a composite character correctly.
11287 1998-11-11 Kenichi Handa <handa@etl.go.jp>
11289 * charset.c (str_cmpchar_id): Check the byte sequence for
11290 composition more rigidly.
11291 (Fcompose_string): Allow DEL to be composed. Signal error if STR
11292 contains an invalid multibyte sequence.
11294 * xterm.c (x_list_fonts): Don't change the value of maxnames.
11296 1998-11-10 Andrew Innes <andrewi@harlequin.co.uk>
11298 * w32term.h (struct w32_display_info): New element faked_key.
11299 (WM_EMACS_SETKEYBOARDLAYOUT):
11300 (WM_EMACS_REGISTER_HOT_KEY):
11301 (WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
11302 (LEFT_WIN_PRESSED):
11303 (RIGHT_WIN_PRESSED):
11304 (APPS_PRESSED): New console keyboard modifier flags.
11306 * w32term.c (convert_to_key_event): Removed.
11307 (is_dead_key): Copied to w32fns.c.
11308 (w32_read_socket): Generate language_change_event. Modify to work
11309 with keyboard handling changes in w32_wnd_proc.
11311 * w32proc.c (sys_kill): Set extended key flag when faking
11312 Ctrl-Break keystrokes.
11313 (Fw32_get_locale_info): Allow LONGFORM parameter to specify an
11314 arbitrary locale property using a numerical index.
11315 (Vw32_valid_codepages): New variable.
11316 (enum_codepage_fn):
11317 (Fw32_get_valid_codepages):
11318 (Fw32_get_console_codepage):
11319 (Fw32_set_console_codepage):
11320 (Fw32_get_console_output_codepage):
11321 (Fw32_set_console_output_codepage):
11322 (Fw32_get_codepage_charset):
11323 (Fw32_get_valid_keyboard_layouts):
11324 (Fw32_get_keyboard_layout):
11325 (Fw32_set_keyboard_layout): New functions, exposing Windows locale
11326 handling functions.
11327 (syms_of_ntproc): Register them.
11329 * w32inevt.c: Include w32term.h and w32heap.h.
11331 (Vw32_enable_caps_lock):
11332 (Vw32_enable_num_lock):
11333 (Vw32_pass_lwindow_to_system):
11334 (Vw32_pass_rwindow_to_system):
11335 (Vw32_lwindow_modifier):
11336 (Vw32_rwindow_modifier):
11337 (Vw32_apps_modifier):
11338 (Vw32_scroll_lock_modifier):
11339 (w32_key_to_modifier): Add externs.
11340 (w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
11341 Scroll Lock as potential modifiers; exclude numpad keys from
11342 effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
11344 (is_dead_key): Copy from w32fns.c.
11345 (w32_kbd_patch_key): Comment attempt to improve handling of
11346 dead-keys, and system bug relating to same on Windows NT. Work
11347 around the bug by calling ToUnicode and then converting to the
11349 (map_virt_key): Removed obsolete variable.
11350 (lispy_function_keys): Add extern.
11351 (key_event): Major rework of keyboard input handling: optionally
11352 recognize Windows keys and Apps key as modifiers; optionally treat
11353 NumLock, CapsLock and ScrollLock as function keys; let system
11354 translate keystrokes to characters to avoid system bugs relating
11355 to dead-key handling; preserve shift distinction for control
11356 characters. Remove some obsolete code.
11358 * makefile.nt ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
11361 * w32fns.c (Vw32_pass_optional_keys_to_system): Variable removed.
11362 (Vw32_pass_lwindow_to_system):
11363 (Vw32_pass_rwindow_to_system):
11364 (Vw32_lwindow_modifier):
11365 (Vw32_rwindow_modifier):
11366 (Vw32_apps_modifier):
11367 (Vw32_enable_num_lock):
11368 (Vw32_enable_caps_lock):
11369 (Vw32_scroll_lock_modifier): New variables.
11370 (modifier_set): Return toggle state for Scroll Lock.
11371 (w32_key_to_modifier): New function. Returns chosen modifier bit
11373 (w32_get_modifiers): Returns modifier flags for
11374 non-keyboard input events.
11375 (construct_console_modifiers): Renamed from construct_modifiers;
11376 recognize Windows and Apps keys as modifiers.
11377 (w32_get_key_modifiers): New function. Returns modifier flags for
11378 keyboard input events.
11379 (map_keypad_keys): Make non-static. Use second arg as extended
11381 (w32_grabbed_keys): New variable.
11382 (HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
11383 (register_hot_keys):
11384 (unregister_hot_keys):
11386 (w32_parse_hot_key):
11387 (Fw32_register_hot_key):
11388 (Fw32_unregister_hot_key):
11389 (Fw32_registered_hot_keys):
11390 (Fw32_reconstruct_hot_key): New functions to support hotkeys.
11391 (post_character_message): New function.
11392 (w32_msg_pump): Handle new messages for using hotkeys and changing
11393 keyboard layout/language.
11394 (w32_wnd_proc): Major rework of keyboard input handling:
11395 optionally recognize Windows keys and Apps key as modifiers;
11396 optionally treat NumLock, CapsLock and ScrollLock as function
11397 keys; let system translate keystrokes to characters to avoid
11398 system bugs relating to dead-key handling; preserve shift
11399 distinction for control characters; forward keyboard
11400 layout/language changes to lisp; detect and convert hot-key events
11401 to normal keystrokes.
11402 (syms_of_w32fns): Register new functions and variables.
11403 (w32_last_error): New function for use in debugging.
11405 1998-11-10 Kenichi Handa <handa@etl.go.jp>
11407 * category.h (CATEGORY_SET): Adjusted for the change of
11409 (CATEGORY_SET): Likewise.
11411 * charset.c (cmpchar_component): New arg NOERROR. Check
11412 composition char ID more strictly.
11413 (Fcmpchar_component): Call cmpchar_component with NOERROR arg zero.
11414 (Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
11416 (Fcompose_string): Signal error if STR contains a rule-based
11417 composition character.
11419 * charset.h (cmpchar_component): Proto-type adjusted.
11421 1998-11-09 Kenichi Handa <handa@etl.go.jp>
11423 * charset.c (string_to_non_ascii_char): Return correct length for
11424 a charset of dimension 2 and composition character.
11426 1998-11-08 Richard Stallman <rms@sucrose.ai.mit.edu>
11428 * keymap.c (Fsingle_key_description): Handle generic characters.
11430 * process.c (Fprocess_status): Doc fix.
11432 1998-11-06 Ken'ichi Handa <handa@delysid.gnu.org>
11434 * charset.c (init_charset_once): Fix previous change.
11436 1998-11-06 Kenichi Handa <handa@etl.go.jp>
11438 * charset.c (string_to_non_ascii_char): Fix previous change.
11439 (char_valid_p): Check the validity of CHARSET by CHARSET_DEFINED_P.
11441 * charset.h (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
11442 character correctly.
11443 (STRING_CHAR): Handle an invalid charater correctly.
11445 1998-11-05 Kenichi Handa <handa@etl.go.jp>
11447 * charset.c (string_to_non_ascii_char): Fix previous change.
11449 * charset.h (MAKE_NON_ASCII_CHAR): Check validity of CHARSET.
11451 * editfns.c (Fstring_to_char): Don't return a multibyte character
11452 if STRING is a unibyte string.
11454 * indent.c (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte
11457 * xdisp.c (display_text_line): Check validity of a multibyte character.
11458 (display_string): Likewise. Handle an invalid character correctly.
11460 1998-11-05 Karl Heuer <kwzh@gnu.org>
11462 * insdel.c (Fcombine_after_change_execute): Return nil, not junk.
11463 If nothing to do, return immediately.
11464 (syms_of_insdel): Initialize combine_after_change_buffer.
11466 1998-11-05 Richard Stallman <rms@gnu.org>
11468 * xterm.c (XTread_socket): ButtonPress clears f->mouse_moved.
11470 1998-11-04 Geoff Voelker <voelker@cs.washington.edu>
11472 * w32term.c (w32_enable_unicode_output): Rename from
11473 w32_no_unicode_output.
11474 (w32_use_unicode_for_codepage, syms_of_w32term): Use new name
11477 1998-11-04 Jason Rumney <jasonr@altavista.net>
11479 * w32fns.c (w32_list_fonts): Report an error if a frame has not
11482 * w32term.c (dumpglyphs): Use FRAME_FONT for w32_fill_area.
11484 1998-11-04 Kenichi Handa <handa@etl.go.jp>
11486 * charset.c (string_to_non_ascii_char): Change the check for the
11487 varidity of multibyte form.
11488 (update_charset_table): Check validity of BYTES. Don't set
11489 bytes_by_char_head here.
11490 (init_charset_once): Set bytes_by_char_head completely.
11492 * frame.c (do_switch_frame): Cancel previous change.
11494 * print.c (print_string): Check validity of a character.
11497 * sysdep.c [nec_ews_svr4]: Extern *_sobuf.
11499 * m/ews4800.h, s/ux4800.h: New files.
11501 1998-11-03 Theodore Jump <tjump@tertius.com>
11503 * makefile.nt: Compile multiple source files when possible.
11505 * w32faces.c (Qmouse_face): Replace definition with extern decl.
11507 1998-11-03 Andrew Innes <andrewi@delysid.gnu.org>
11509 * w32.c (stat): GetFileInformationByHandle can legitimately fail,
11510 so don't rely on it succeeding.
11512 * w32fns.c (x_to_w32_font): Specify DEFAULT_CHARSET in the w32
11513 LOGFONT struct if x font doesn't specify the charset.
11514 (x_to_w32_charset): Change >= to == when testing results of
11517 1998-11-02 Richard Stallman <rms@sucrose.ai.mit.edu>
11519 * fns.c (Frequire): New arg NOERROR.
11521 1998-11-02 Andrew Innes <andrewi@harlequin.co.uk>
11523 * fileio.c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo.
11525 1998-10-31 Richard Stallman <rms@psilocin.ai.mit.edu>
11527 * xfaces.c (Qmouse_face): Replace definition with extern decl.
11528 (syms_of_xfaces): Initialization deleted.
11530 * textprop.c (Qmouse_face): Variable definition moved here.
11531 (syms_of_textprop): Initialize it.
11533 * data.c (set_internal): For built-in maybe-local vars,
11534 when BINDFLAG is set, do not mark them as local.
11536 1998-10-31 Ken'ichi Handa <handa@delysid.gnu.org>
11538 * insdel.c (replace_range): Fix previous change.
11540 1998-10-31 Kenichi Handa <handa@etl.go.jp>
11542 * editfns.c (Fsubst_char_in_region): Fix previous change.
11543 (Ftranslate_region): Fix previous change.
11545 * fns.c (Fbase64_decode_region): Fix previous change.
11547 * frame.c (do_switch_frame): Update minibuf_window if necessary.
11549 * insdel.c (byte_combining_error): New function.
11550 (CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
11551 (insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
11552 CHECK_BYTE_COMBINING_FOR_INSERT.
11553 (insert_from_buffer_1): Likewise.
11554 (adjust_after_replace): Check the posibility of inhibitted byte
11555 combining correctly.
11556 (replace_range): Before signaling an error for inhibitted byte
11557 combining, recover the buffer in a safe state.
11558 (del_range_2): Check the posibility of inhibitted byte combining
11561 1998-10-30 Andreas Schwab <schwab@delysid.gnu.org>
11563 * xselect.c (Vselection_coding_system): Doc fix.
11565 * fns.c (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
11566 when we have both char and byte position. Fix type clashes.
11568 * eval.c (Fsignal): Use a separate format string when passing
11569 error message string to fatal, in case it contains %'s.
11571 * editfns.c (Fchar_after): Fix type clashes.
11573 * charset.c (Fchar_bytes): Doc fix.
11574 (char_bytes): Fix returned value to match returned type.
11575 (syms_of_charset): Fix type clash in initialisation of
11578 1998-10-29 Geoff Voelker <voelker@cs.washington.edu>
11580 * w32console.c (initialize_w32_display): Use buffer coords
11581 instead of buffer size (which may be larger than the window).
11583 * fileio.c (init_fileio_once): New function.
11585 * emacs.c (main): Invoke init_fileio_once.
11587 1998-10-28 Paul Eggert <eggert@twinsun.com>
11589 * xterm.c (XTread_socket): Check the returned value of
11590 XmbLookupString more carefully.
11592 1998-10-28 Kenichi Handa <handa@etl.go.jp>
11594 * coding.c (DECODE_CHARACTER_ASCII): Check validity of inserted code.
11595 (DECODE_CHARACTER_DIMENSION1): Likewise.
11596 (DECODE_CHARACTER_DIMENSION2): Likewise.
11597 (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
11599 * editfns.c (Fsubst_char_in_region): Fix previous change.
11600 (Ftranslate_region): Fix previous change.
11602 * insdel.c (check_markers): Check if markers are at character boundry.
11603 (adjust_markers_for_insert): Fix previous change.
11604 (count_combining_before): Don't limit the check at BEGV.
11605 (count_combining_after): Don't limit the check at ZV.
11606 (CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
11607 (insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
11608 (insert_from_string_1): Likewise.
11609 (insert_from_buffer_1): Likewise.
11610 (adjust_after_replace): Inhibit bytes combined across region
11611 boundary. Update end_unchanged correctly.
11612 (replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT. Update
11613 end_unchanged correctly.
11614 (del_range_2): Inhibit bytes combined across region boundary.
11615 Update end_unchanged correctly.
11617 1998-10-27 Geoff Voelker <voelker@cs.washington.edu>
11619 * w32.c (check_windows_init_file): Also look in load path specified
11622 * w32console.c (Fset_message_beep): Recognize 'silent.
11623 (w32_sys_ring_bell): Do nothing for the 'silent sound.
11625 * w32fns.c (w32_color_map_lookup): Remove duplicate definition.
11627 * w32select.c (Vnext_selection_coding_system): New variable.
11628 (syms_of_w32select): DEFVAR_LISP it.
11629 (Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
11630 non-nil. Always convert multibyte strings.
11631 (Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
11632 non-nil. Always convert a string that includes non-ASCII characters.
11634 1998-10-27 Richard Stallman <rms@psilocin.ai.mit.edu>
11636 * fns.c (Fbase64_decode_string): Doc fix.
11637 (Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
11640 1998-10-27 Dave Love <fx@gnu.org>
11642 * fns.c (Fbase64_decode_region, Fbase64_encode_region): Fix
11643 newline in doc string.
11645 1998-10-27 Kenichi Handa <handa@etl.go.jp>
11647 * editfns.c (Fsubst_char_in_region): Correctly handle the case
11648 that byte combining before happens.
11649 (Ftranslate_region): Likewise.
11651 * insdel.c (adjust_after_replace): Correctly handle the case that
11652 both byte combining before and byte combining after happen.
11653 (replace_range): Likewise.
11655 1998-10-26 Kenichi Handa <handa@etl.go.jp>
11657 * category.c (syms_of_category): Doc-string modified.
11659 * coding.c (code_convert_region): Kill the work buffer created by
11660 pre-write-conversion.
11662 1998-10-25 Jason Rumney <jasonr@altavista.net>
11664 * emacs.c (main) [HAVE_NTGUI]: Invoke syms_of_fontset().
11666 1998-10-23 Kenichi Handa <handa@etl.go.jp>
11668 * coding.c (code_convert_region): While preserving the orignal
11669 point, pay attention to the byte combining problem.
11671 * fns.c (Fbase64_decode_region): Pay attention to the byte
11674 * insdel.c (adjust_markers_for_insert): Adjust markers by taking
11675 combined_before_bytes and combined_after_bytes into account.
11676 (count_combining_after): Handle the case that LENGTH is zero.
11677 (adjust_after_replace): Record deletion at correct buffer
11678 position. Handle the case that LEN is zero.
11679 (replace_range): Record deletion at correct buffer position.
11680 (del_range_2): Call adjust_makers_for_replace to adjust makers for
11683 1998-10-21 Richard Stallman <rms@psilocin.ai.mit.edu>
11685 * alloc.c (Fgarbage_collect): Block input around most of the function.
11687 1998-10-21 Kenichi Handa <handa@etl.go.jp>
11689 * coding.c (setup_coding_system): Fix setting up
11690 coding->spec.ccl.valid_codes for CCL based coding system.
11691 (code_convert_region): Set point to FROM before inserting the
11692 result of pre-write-funciton. Preserve original point.
11693 (code_convert_string): If coding->type is coding_type_ccl, do
11694 conversion even if the length of conversion region is zero.
11696 * fontset.c: Include frame.h before fontset.h.
11697 (list_fonts_func): Fix prototype.
11699 * frame.c: Include frame.h before fontset.h.
11701 * xterm.c: Likewise.
11703 1998-10-21 Jason Rumney <jasonr@altavista.net>
11705 * x-list-font.c (Fx_list_fonts): Access frame parameters throught
11706 general macros. Don't call x_list_font directory, instead call a
11707 function set in list_fonts_func.
11709 * fontset.h (list_fonts_func): Fix prototype.
11711 1998-10-20 Jason Rumney <jasonr@altavista.net>
11713 * makefile.nt (w32fns.c): Add x-list-font.c to dependancies.
11715 * w32faces.c: Update comments referring to obsolete structs.
11716 (allocate_face, copy_face, face_eql, load_font,
11717 Fpixmap_spec_p, free_frame_faces, new_computed_face,
11718 frame_update_line_height, merge_faces, compute_base_face,
11719 Fset_face_attribute_internal): Use fontset support based on xfaces.c.
11721 * w32fns.c: (Vx_pixel_size_width): New global variable.
11722 (unibyte_display_via_language_environment): New global variable.
11723 (x_set_font): Add support for setting fontsets.
11724 (Fx_create_frame): Add check_w32(). Initialize fontsets. Fix
11725 font names to match xlfd-tight-regexp.
11726 (w32_load_font): Rewrite based on x_load_font.
11727 (x_to_w32_charset, w32_to_x_charset): Add character sets. Use
11728 `iso8859-1' rather than `ansi'.
11729 (w32_to_x_font): Remove `-' from font name. Remove the `-' off the
11730 end. Move charset into `charset registry' field.
11731 (enum_font_cb2): Check charsets match. Include width in font list.
11732 (w32_list_fonts): Rewrite based on x_list_fonts.
11733 Moved from w32term.c to have access to enumfont_t struct.
11734 (Fx_list_fonts): w32 specific version eliminated. Include
11736 (w32_get_font_info, w32_query_font, w32_find_ccl_program): New
11737 functions for fontset support - adapted from x_ equivalents.
11738 (syms_of_w32fns): New lisp variables initialised. Function
11739 pointers for fontset.c set up.
11741 * w32term.c: Include fontset.h. Define codepage macros.
11742 Add ENCODE_BIG5 macro from coding.c.
11743 (w32_no_unicode_output): New variable.
11744 (w32_codepage_for_charset, w32_use_unicode_for_codepage): New
11746 (BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
11747 (dumpglyphs): Rewrite based on xterm.c equivalent.
11748 (x_new_font): Use functionality provided in fontset.c.
11749 (x_new_fontset): New function based on the one in xterm.c.
11750 (syms_of_w32term): Add w32-no-unicode-output flag.
11752 * w32term.h: Remove redundant font_info struct definition.
11753 (Vx_pixel_size_width_font_regexp,
11754 unibyte_display_via_language_environment): Declare variables.
11755 (w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font):
11757 (w32_output): New fields font_baseline and fontset.
11758 (FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
11760 * w32xfns.c: Include charset.h and fontset.h.
11762 1998-10-20 Richard Stallman <rms@psilocin.ai.mit.edu>
11764 * syntax.c (syms_of_syntax): Fix the setup of Qscan_error.
11766 1998-10-20 Eli Zaretskii <eliz@mescaline.gnu.org>
11768 * msdos.c (mouse_init): Reset the button press/release info of the
11770 (mouse_preempted): New variable.
11771 (dos_rawgetc): Don't generate mouse events if mouse is preempted.
11772 (XMenuActivate): Preempt the mouse during menu-handling loop.
11773 Release the current time slice while idling in the menu-handling
11774 loop. Leave the loop only if the user pressed, then released the
11775 same button. Discard all mouse events that are pending in the
11776 event queue before exiting.
11778 1998-10-19 Richard Stallman <rms@psilocin.ai.mit.edu>
11780 * editfns.c (Fformat): Increase buffer size for floating format.
11782 1998-10-17 Kenichi Handa <handa@etl.go.jp>
11784 * charset.c (Vauto_fill_chars, Qauto_fill_chars): New variables.
11785 (syms_of_charset): Staticpro and initialize Qauto_fill_chars.
11786 Declare auto-fill-chars as a Lisp variable and initialize it.
11788 * charset.h (Vauto_fill_chars): Extern it.
11790 * cmds.c (internal_self_insert): Check Vauto_fill_chars.
11792 1998-10-16 Kenichi Handa <handa@etl.go.jp>
11794 * casefiddle.c (casify_object): Use make_string instead of
11795 make_specified_string to cope with byte-combining situation.
11797 * coding.c (decode_coding_iso2022): Set coding->fake_multibyte to
11798 1 when encountered with a code of the range 0x80..0x9F.
11800 1998-10-14 Eli Zaretskii <eliz@mescaline.gnu.org>
11802 * callproc.c (Fcall_process) [MSDOS]: Use $TMPDIR instead of
11803 trying $TMP and $TEMP, since the former is always set in msdos.c.
11804 (Fcall_process_region) [DOS_NT]: When looking for a place to put
11805 the temporary files, check $TMPDIR as well.
11807 1998-10-14 Richard Stallman <rms@psilocin.ai.mit.edu>
11809 * process.c (exec_sentinel, read_process_output):
11810 Restore waiting_for_user_input_p after running Lisp code.
11812 * keyboard.c (parse_menu_item): Avoid initialization for Lisp_Object.
11813 (command_loop): Likewise.
11815 1998-10-14 Kenichi HANDA <handa@etl.go.jp>
11817 * data.c (Faset): Fix previous change.
11819 * fns.c (Ffillarray): Fix previous change.
11821 * insdel.c (adjust_markers_for_combining): This function deleted.
11822 (adjust_markers_for_replace): Correctly adjust marker positions.
11823 Don't record these adjustment because they were recorded already.
11824 (combine_bytes): Don't adjust markers here.
11826 1998-10-13 Richard Stallman <rms@psilocin.ai.mit.edu>
11828 * minibuf.c (Fdisplay_completion_list): Put on mouse-face properties.
11830 1998-10-12 Richard Stallman <rms@psilocin.ai.mit.edu>
11832 * keyboard.c (Fclear_this_command_keys): New function.
11833 (syms_of_keyboard): defsubr it.
11835 * macros.c (Fexecute_kbd_macro): Set real_this_command.
11837 1998-10-12 Kenichi Handa <handa@etl.go.jp>
11839 * ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
11841 * charset.c (Fstring): Call make_string instead of
11842 make_string_from_bytes.
11843 (Ffind_charset_region): Include `composition' in the returned list
11844 if the region contains any composite characters.
11845 (Ffind_charset_string): Include `composition' in the returned list
11846 if the string contains any composite characters.
11847 (find_charset_in_str): Handle CMPCHARP arg correctly.
11849 * coding.c (shrink_decoding_region): If a charset other than ascii
11850 is initially designated to G0, don't shrink the region.
11851 (shrink_encoding_region): Likewise.
11853 * data.c (Faset): If ARRAY is a multibyte string, pay attention to
11854 byte-combining situation.
11856 * fns.c (clear_string_char_byte_cache): New function.
11857 (Ffillarray): Handle multibyte string correctly.
11859 * lisp.h (clear_string_char_byte_cache): Extern it.
11861 * xselect.c (lisp_data_to_selection_data): Call
11862 find_charset_in_str with CMPCHARP arg 0.
11863 * w16select.c (Fw16_set_clipboard_data): Likewise.
11864 * w32select.c (Fw32_set_clipboard_data): Likewise.
11866 1998-10-11 Richard Stallman <rms@psilocin.ai.mit.edu>
11868 * keyboard.c (parse_menu_item): For top level of menu bar,
11869 accept ordinary commands, and treat them just like a keymap.
11871 1998-10-11 Richard Stallman <rms@sucrose.ai.mit.edu>
11873 * xdisp.c (redisplay_window): Clear w->window_end_valid
11874 before running the window-scroll-functions hook, if appropriate.
11876 1998-10-10 Richard Stallman <rms@psilocin.ai.mit.edu>
11878 * data.c (Fstring_to_number): Don't recognize floating point
11881 * window.c (window_loop): New alternative CHECK_ALL_WINDOWS.
11882 (check_all_windows): New function for debugging tests.
11883 (syms_of_window): Initialize it.
11885 * window.c (Qwindow_configuration_p): New variable.
11886 (Fwindow_configuration_frame): New function.
11887 (syms_of_window): defsubr it.
11888 (Fset_window_configuration): Return t if frame is live.
11889 Use Qwindow_configuration_p.
11891 * xfns.c (check_x_display_info): Don't use selected_frame
11894 1998-10-09 Geoff Voelker <voelker@cs.washington.edu>
11896 * w32fns.c (x_create_bitmap_from_file): Skip special files.
11898 1998-10-08 Kenichi Handa <handa@etl.go.jp>
11900 * buffer.h (inhibit_modification_hooks): Extern it.
11902 * buffer.c (inhibit_modification_hooks): New variable.
11903 (init_buffer_once): Initialize inhibit_modification_hooks to 0.
11905 * charset.c (invalid_character): Prepend `0' to octal
11906 representation. Give error sufficient args.
11908 * coding.c (code_convert_region): Set inhibit_modification_hooks
11909 to 1 before calling Fset_text_properties.
11911 * insdel.c (signal_before_change): If inhibit_modification_hooks
11912 is nonzero, do nothing.
11913 (signal_after_change): Likewise.
11915 1998-10-08 Emilio Lopes <Emilio.Lopes@Physik.TU-Muenchen.DE>
11917 * process.c: Doc fixes.
11919 1998-10-08 Richard Stallman <rms@sucrose.ai.mit.edu>
11921 * syntax.c (scan_lists): Bring FROM back into range BEGV...ZV.
11923 1998-10-07 Geoff Voelker <voelker@cs.washington.edu>
11925 * w32.c (init_ntproc): Check for Windows init file.
11926 (term_ntproc): Do not check for it here.
11928 1998-09-28 Kenichi Handa <handa@etl.go.jp>
11930 * coding.c (check_composing_code): Fix previous change. Now it
11931 alwasy returns 0 or -1.
11932 (decode_coding_iso2022): Adjusted for the above change.
11933 (encode_coding_iso2022): When encoding the last block, flush out
11934 tailing garbage bytes.
11935 (setup_coding_system): Delete unnecessary code.
11936 (shrink_decoding_region): Check translation table. If ASCII
11937 should be translated, give up shrinking.
11938 (shrink_encoding_region): Likewise.
11939 (SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
11940 (SHRINK_CONVERSION_REGION): New macro.
11941 (code_convert_region): Call SHRINK_CONVERSION_REGION. Delete text
11943 (code_convert_region): In the case of encoding, always calulate
11944 correct character number.
11945 (code_convert_string): Call SHRINK_CONVERSION_REGION.
11946 (code_convert_region1): Don't delete text properties here.
11948 * insdel.c (adjust_after_replace): Don't delete text properties here.
11950 * term.c (encode_terminal_code): Handle raw 8-bit codes correctly.
11952 1998-09-27 Richard Stallman <rms@psilocin.ai.mit.edu>
11954 * emacs.c (sort_args): Fill extra space with NULL ptrs.
11956 1998-09-26 Kenichi Handa <handa@etl.go.jp>
11958 * coding.h (struct coding_system): New member composed_chars.
11960 * coding.c (check_composing_code): If the current composing
11961 sequence doesn't end properly, return -1.
11962 (DECODE_CHARACTER_ASCII): Update coding->composed_chars.
11963 (DECODE_CHARACTER_DIMENSION1): Likewise.
11964 (decode_coding_iso2022): Check validity of a composing sequence.
11965 (code_convert_string): If the length of text to be converted is
11966 shrunk to zero, don't perform code conversion.
11967 (shrink_decoding_region): Fix previous change.
11969 * editfns.c (Fformat): Check format control characters.
11971 1998-09-25 Kenichi Handa <handa@etl.go.jp>
11973 * coding.c (decode_eol): While decoding DOS-like eol, handle a
11974 single CR code correctly.
11975 (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
11976 CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
11978 1998-09-23 Geoff Voelker <voelker@cs.washington.edu>
11980 * w32fns.c (w32_color_map_lookup): New function.
11981 (x_to_w32_color): Approximate colors ending in numbers if necessary.
11983 1998-09-22 Kenichi Handa <handa@etl.go.jp>
11985 * ccl.c (ccl_driver): Report correct CCL program counter on error.
11987 * xmenu.c (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
11989 (xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
11991 1998-09-22 Kenichi Handa <handa@etl.go.jp>
11993 * callint.c (Fcall_interactively): Don't use input method when
11994 reading a character in the case of `c' code letter.
11996 1998-09-21 Dave Love <fx@gnu.org>
11998 * editfns.c (Fsave_restriction): Doc fix.
12000 1998-09-21 Richard Stallman <rms@gnu.org>
12002 * lread.c (build_load_history): Do add to Vload_history
12003 even when dumping Emacs.
12005 1998-09-18 Kenichi Handa <handa@etl.go.jp>
12007 * ccl.c (CCL_WRITE_CHAR): Don't use bcopy.
12008 (ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
12009 cause error if the program is going to output some bytes. When
12010 outputing a string to notify an error, check the case that
12013 * coding.h (CODING_FINISH_INTERRUPT): New macro.
12015 * coding.c (ccl_coding_driver): If ccl_driver is interrupted by a
12016 user or the CCL program executed an invalid command, return
12017 CODING_FINISH_INTERRUPT.
12018 (code_convert_region): Pay attention to the converters return
12019 value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
12021 1998-09-16 Kenichi Handa <handa@etl.go.jp>
12023 * coding.c (code_convert_region): Update beg_unchanged and
12024 end_unchanged after we delete the source text.
12026 * insdel.c (adjust_markers_for_replace): Don't adjust a byte
12027 position if it is FROM.
12028 (adjust_markers_for_combining): New function.
12029 (combine_bytes): Call adjust_markers_for_combining instead of
12030 adjust_markers_for_replace.
12031 (adjust_after_replace): Record deletion of combining after bytes
12032 with the correct position.
12033 (replace_range): Likewise. Record the actual deletion after
12034 recoding deletions of combining bytes.
12036 * xdisp.c (message_log_check_duplicate): Count byte length of the
12037 latest message correctly.
12039 1998-09-12 Richard Stallman <rms@gnu.org>
12041 * xdisp.c (redisplay_internal): Use TEMP_SET_PT_BOTH
12042 instead of SET_PT_BOTH.
12043 (try_window_id, display_text_line): Likewise.
12045 1998-09-12 Karl Heuer <kwzh@gnu.org>
12047 * data.c (Fmake_local_variable): Doc fix.
12049 1998-09-10 Dave Love <fx@gnu.org>
12051 * print.c (Fwith_output_to_temp_buffer): Doc fix.
12053 1998-09-10 Richard Stallman <rms@gnu.org>
12055 * s/irix6-0.h (TIOCSIGSEND): Add #undef.
12056 (bcopy, bcmp, bzero): Add #undef.
12058 * keyboard.c (command_loop_1): When switching to selected window's bfr,
12059 first exit if selected frame is dead (no live frames remain).
12060 (read_key_sequence): Likewise.
12062 1998-09-10 Karl Heuer <kwzh@gnu.org>
12064 * emacs.c (main): Mention --display and --eval in help.
12066 1998-09-07 Paul Eggert <eggert@twinsun.com>
12068 * editfns.c (emacs_memftime): New function.
12069 (Fformat_time_string): Use it to handle null bytes in formats
12072 1998-09-08 Kenichi Handa <handa@etl.go.jp>
12074 * charset.c (Ffind_charset_region): Optimization for unibyte buffer.
12075 (Ffind_charset_string): For unibyte string, return (ascii).
12077 * editfns.c (Fsubst_char_in_region): Call replace_range with the
12080 * insdel.c (adjust_after_replace): Don't add combining bytes to
12081 the args given to adjust_point. Handle correctly the case that
12082 there are both before and after combining bytes.
12083 (replace_range): Likewise.
12085 1998-09-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
12087 * fns.c (base64_decode_1, base64_encode_1): New functions.
12088 (Fbase64_decode_string, Fbase64_encode_string): New functions.
12089 (Fbase64_decode_region, Fbase64_encode_region): New functions.
12091 1998-09-07 Karl Heuer <kwzh@gnu.org>
12093 * eval.c (error): After enlarging buffer, write to it, not to buf.
12095 * fns.c (Fwidget_put): Return VALUE instead of garbage.
12097 1998-09-07 Kenichi Handa <handa@etl.go.jp>
12099 * charset.h (STRING_CHAR_AND_LENGTH): Return correct value in
12100 ACTUAL_LEN even if LEN is too short to have a valid multibyte form.
12101 (STRING_CHAR_AND_CHAR_LENGTH): Likewise.
12103 * coding.c (ccl_coding_driver): Always calculate correct mulibyte
12104 chars in produced byte sequence.
12105 (Ffind_operation_coding_system): Doc-string fixed.
12107 * insdel.c (count_combining_after): Check also preceding bytes at
12108 POS if all characters in STRING are not character head.
12110 1998-09-06 Paul Eggert <eggert@twinsun.com>
12112 * editfns.c (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
12113 Don't assume that localtime and gmtime return non-NULL.
12115 1998-09-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
12117 * fns.c (Fbase64_decode_string, Fbase64_encode_string,
12118 base64_decode_1, Fbase64_decode_region, Fbase64_encode_region):
12121 1998-09-06 Richard Stallman <rms@gnu.org>
12123 * editfns.c (Fformat): Detect incomplete format spec at string's end.
12125 * lread.c (Fload): Handle case where openp finds a magic file
12126 but it has no `load' handler or that handler calls `load'.
12127 If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
12129 1998-09-04 Dave Love <fx@gnu.org>
12131 * buffer.c (enable-multibyte-characters): Doc fix.
12133 1998-09-02 Geoff Voelker <voelker@cs.washington.edu>
12135 * w32heap.c (allocate_heap): Define NTHEAP_PROBE_BASE by default.
12137 1998-09-01 Kenichi Handa <handa@etl.go.jp>
12139 * editfns.c (Ftranspose_regions): Use BYTE_POS_ADDR to get an
12140 address in buffer from byte-position.
12142 1998-09-01 Eli Zaretskii <eliz@delysid.gnu.org>
12144 * w16select.c (Vnext_selection_coding_system): New variable.
12145 (syms_of_win16select): DEFVAR_LISP it. No need to staticpro
12146 Vselection_coding_system.
12147 (Fw16_set_clipboard_data): Always convert multibyte strings. Use
12148 Vnext_selection_coding_system if non-nil.
12149 (Fw16_get_clipboard_data): Always convert a string that includes
12150 non-ASCII characters. Use Vnext_selection_coding_system if
12153 1998-08-31 Andrew Innes <andrewi@harlequin.co.uk>
12155 * w32fns.c (w32_wnd_proc): Always zero button_state when releasing
12158 1998-08-31 Kenichi Handa <handa@etl.go.jp>
12160 * xterm.c (x_load_font): If SIZE is 0, don't use a name
12161 x_list_font returns.
12163 1998-08-31 Paul Eggert <eggert@twinsun.com>
12165 * lread.c (read1): Don't assume that atof ("-0.0") yields +0.0.
12166 Handle leading '-' uniformly for zeros, infinities, and NaNs.
12168 1998-08-31 Eli Zaretskii <eliz@delysid.gnu.org>
12170 * msdos.c (IT_cmgoto): When tracking echo area messages with the
12171 cursor, save and restore previous cursor position in the
12174 1998-08-31 Kenichi Handa <handa@etl.go.jp>
12176 * charset.c (unibyte_char_to_multibyte):
12177 Vnonacii_translation_table will convert a 7-bit charcater.
12178 (multibyte_char_to_unibyte): Handle the case that
12179 Vnonacii_translation_table converts a multibyte charcater to a
12180 unibyte charcter of less than 128.
12181 (init_charset_once): Initialize nonascii_insert_offset and
12182 Vnonacii_translation_table.
12184 * coding.c (decode_coding): Even if SRC_BYTES is zero, try
12185 processing if CODING requires flushing.
12186 (encode_coding): Likewise.
12187 (code_convert_region): Likewise.
12188 (code_convert_string): Likewise.
12190 * fns.c (concat): If Vnonascii_translation_table is non-nil, try
12191 to convert a character less than 160 to multibyte.
12192 * insdel.c (copy_text): Likewise.
12193 (count_size_as_multibyte): Likewise.
12194 * xterm.c (dumpglyphs): Likewise.
12196 1998-08-29 Paul Eggert <eggert@twinsun.com>
12198 * data.c (arith_driver, float_arith_driver): Compute (- x) by
12199 using negation, not subtraction; this makes a difference with
12200 IEEE floating point arithmetic (and also if integer arithmetic
12201 is ones' complement or signed-magnitude!).
12203 1998-08-29 Karl Heuer <kwzh@gnu.org>
12205 * xfns.c (x_create_bitmap_from_file): Fail immediately if magic.
12207 1998-08-28 Ken'ichi Handa <handa@delysid.gnu.org>
12209 * charset.c (Fchar_bytes): Add \n\ in doc-string.
12211 1998-08-28 Paul Eggert <eggert@twinsun.com>
12213 * s/sol2-4.h (NOT_USING_MOTIF): New macro.
12214 (LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
12215 path only if we're not building with Motif.
12217 1998-08-28 Kenichi Handa <handa@etl.go.jp>
12219 * insdel.c (adjust_after_replace): Fix the code to record undo
12220 information for the case that `before combining' happens. Remove
12221 text properties which are added to the new text by
12224 * coding.c (code_convert_region1): Remove all text properties of
12227 1998-08-28 Kenichi Handa <handa@etl.go.jp>
12229 * charset.h (CHAR_BYTES): New macro.
12231 * charset.c (Fchar_bytes): Now always return 1.
12232 (char_bytes): New function.
12234 * editfns.c (Fposition_bytes): If the arg POSITION is out of
12236 (Fbyte_to_position): If the arg BYTEPOS is out of range, return
12239 * data.c (Faset): Use macro CHAR_BYTES instead of Fchar_bytes.
12240 * fns.c (concat): Likewise.
12241 * insdel.c (count_size_as_multibyte): Likewise.
12242 * xdisp.c (message_dolog): Likewise.
12244 1998-08-27 Kenichi Handa <handa@etl.go.jp>
12246 * coding.c (detect_coding_iso2022): Handle ESC N and ESC O
12247 correctly. They are for SS2 and SS3 respectively.
12248 (ccl_coding_driver): Fix previous change.
12250 1998-08-26 Paul Eggert <eggert@twinsun.com>
12252 * xterm.c (fixup_locale): New function. For now, it resets
12253 LC_TIME to "C" (reverting the 1998-08-07 change), and also
12254 resets LC_MESSAGES to "C".
12255 (x_term_init): Use it to fix up the locale after setlocale
12258 1998-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12260 * xterm.c (x_calc_absolute_position): Cast argument to XFree, in
12261 case it was prototyped the old way.
12263 1998-08-25 Kenichi Handa <handa@etl.go.jp>
12265 * xterm.c (x_list_fonts): Work-around for the case XGetAtomName
12266 returns a null string. This happens when dxpc 3.7 is being used.
12268 1998-08-24 Andreas Schwab <schwab@delysid.gnu.org>
12270 * keyboard.c (input-method-previous-message): Doc fix.
12272 * coding.c (file-coding-system-alist,
12273 select-safe-coding-system-function): Doc fix.
12275 1998-08-23 Kenichi HANDA <handa@etl.go.jp>
12277 * coding.c (detect_coding_iso2022): Don't check the byte length of
12278 succeeding codes (0xa0..0xFF) if the codes follows single shift
12281 1998-08-21 Ken'ichi Handa <handa@delysid.gnu.org>
12283 * coding.c (detect_coding_system): If detect_eol_type returns
12284 CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
12287 See ChangeLog.7 for earlier changes.