(Fdocumentation_property): Remove register declaration for `tem'.
[bpt/emacs.git] / src / ChangeLog
1 1999-10-18 Dave Love <fx@gnu.org>
2
3 * doc.c (Fdocumentation_property): Gcpro `tem'.
4
5 1999-10-18 Kenichi Handa <handa@etl.go.jp>
6
7 * lread.c (Fload): Calculate bytes of filename correctly.
8 (openp): Likewise.
9
10 1999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
11
12 * print.c (print_preprocess): In case print-circle is nil,
13 add OBJ to Vprint_number_table only when OBJ is a symbol.
14
15 1999-10-18 Kenichi Handa <handa@etl.go.jp>
16
17 * coding.c (code_convert_string): Add record_unwind_protect to
18 assure setting inhibit_pre_post_conversion back to zero. Take
19 care of the multibyteness of the working buffer.
20
21 * coding.c (inhibit_pre_post_conversion): New variable.
22 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
23 ignore post-read-conversion and pre-write-conversion property of
24 the coding system.
25 (code_convert_region_unwind): New function.
26 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
27 running pre-write-conversion and post-read-conversion.
28 (code_convert_string): Likewise.
29
30 1999-10-17 Miles Bader <miles@gnu.org>
31
32 * editfns.c: Doc fix.
33
34 1999-10-17 Miles Bader <miles@gnu.org>
35
36 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
37 argument preconditions of find_before_next_newline in the case
38 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
39 was indeed at the edge.
40
41 1999-10-17 Miles Bader <miles@gnu.org>
42
43 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
44 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
45
46 * editfns.c (text_property_eq, text_property_stickiness): Don't
47 use initializers for auto variables of type Lisp_Object.
48 (find_field): Likewise. Use braces around nested ifs.
49 (Fline_end_position): Store the raw eol in a variable, so that the
50 final expression doesn't look so ugly.
51 (Fconstrain_to_field): Doc fix.
52 (preceding_pos): Renamed from `preceeding_pos'.
53 (text_property_stickiness, find_field): Call preceding_pos,
54 not preceeding_pos.
55
56 1999-10-17 Miles Bader <miles@gnu.org>
57
58 * editfns.c (Ffield_string_no_properties): New function.
59 (text_property_stickiness, preceeding_pos): New functions.
60 (Ffield_string): Remove PROPS parameter.
61 (find_field): Add MERGE_AT_BOUNDARY parameter.
62 Rewrite to use stickiness of `field' property to resolve
63 ambiguous cases.
64 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
65 (Fconstrain_to_field): Likewise.
66 (syms_of_editfns): Init Sfield_string_no_properties.
67 (Ffield_string, Ferase_field, Ffield_end):
68 Supply new MERGE_AT_BOUNDARY argument to find_field.
69 (Fline_beginning_position, Fline_end_position): Supply new
70 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
71 Pass a value of Qt for the ONLY_IN_LINE argument to
72 Fconstrain_to_field (only matters if N != 1).
73 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
74 to Fconstrain_to_field.
75
76 * minibuf.c (Fminibuffer_complete_word): Use
77 Ffield_beginning to find the prompt end.
78
79 1999-10-17 Miles Bader <miles@gnu.org>
80
81 * editfns.c (Fconstrain_to_field): Add get/set-current-point
82 behavior when NEW_POS is nil.
83 (find_field): Use XSETFASTINT instead of make_number.
84 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
85 input string by seeing where the field begins, instead of
86 looking at text-properties.
87
88 1999-10-17 Miles Bader <miles@gnu.org>
89
90 * editfns.c (Qfield): New variable.
91 (find_field, Ferase_field, Ffield_string,
92 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
93 (Fline_beginning_position, Fline_end_position): Constrain to any field.
94 (make_buffer_string_both): Remove minibuffer-prompt hack.
95 (syms_of_editfns): Initialize Qfield, and subr entries for
96 field functions above.
97 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
98 minibuf_save_list.
99 Don't initialize minibuffer prompt length.
100 Wrap prompt text-properties around the entire prompt.
101 Add 'prompt text-property to prompt.
102 Get final value with Ffield_string instead of make_buffer_string.
103 (read_minibuf_unwind): Don't restore minibuffer prompt length from
104 minibuf_save_list.
105 (do_completion): Get minibuffer input with Ffield_string
106 instead of Fbuffer_string.
107 Erase minibuffer input with Ferase_field instead of erase_buffer.
108 (Fminibuffer_complete_and_exit): Likewise.
109 Test whether buffer is empty by looking for the 'prompt text
110 property at the end.
111 Set prompt length by looking for the end of the prompt text property,
112 and save prompt length for later use (since there is no longer a
113 buffer variable to get it from).
114 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
115 (syms_of_minibuf): Remove initializations of
116 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
117 * buffer.h (struct buffer): Remove prompt_end_charpos field.
118 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
119 Don't initialize prompt_end_charpos field.
120 * syntax.c (Fforward_word): Likewise.
121 Constrain to any field.
122
123 1999-10-16 Gerd Moellmann <gerd@gnu.org>
124
125 * window.c (enum save_restore_action): New.
126 (save_restore_orig_size): Change parameter list. Add
127 functionality to check for valid orig_top and orig_height members
128 in a window tree.
129 (grow_mini_window): Call save_restore_orig_size with new parameter
130 list.
131 (shrink_mini_window): Restore old window sizes only if old
132 size information is valid in all windows in a window tree.
133
134 1999-10-15 Gerd Moellmann <gerd@gnu.org>
135
136 * xmenu.c (set_frame_menubar): Don't call
137 x_set_menu_resources_from_menu_face here.
138 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
139
140 * xfns.c (gif_load): Fix handling of interlaced GIFs.
141
142 1999-10-14 Dave Love <fx@gnu.org>
143
144 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
145
146 1999-10-14 Gerd Moellmann <gerd@gnu.org>
147
148 * process.c (Fopen_network_stream): Don't loop if gethostbyname
149 fails and h_errno is TRY_AGAIN.
150
151 1999-10-13 Dave Love <fx@gnu.org>
152
153 * filelock.c (lock_file): Move gcpro of `fn'.
154
155 1999-10-10 Gerd Moellmann <gerd@gnu.org>
156
157 * keyboard.c (auto-save-interval): Fix documentation.
158
159 1999-10-09 Richard M. Stallman <rms@caffeine.ai.mit.edu>
160
161 * print.c (print): When removing objects from Vprint_number_table,
162 only scan the newly added objects.
163 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
164 unconditionally force it to stay in the table.
165
166 1999-10-09 Gerd Moellmann <gerd@gnu.org>
167
168 * xfns.c (prepare_image_for_display): Don't try to load image if
169 loading it failed before.
170 (lookup_image, prepare_image_for_display): Remember if loading the
171 image failed.
172 (xpm_load): Add missing UNBLOCK_INPUT.
173
174 * dispextern.h (struct image): New member load_failed_p.
175
176 1999-10-08 Stefan Monnier <monnier@cs.yale.edu>
177
178 * fileio.c (Fmake_temp_name): add a reference to `make-temp-file'
179 in the docstring.
180
181 1999-10-08 Gerd Moellmann <gerd@gnu.org>
182
183 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
184 Don't call XSetInputFocus because that can generate additional
185 FocusIn events.
186
187 1999-10-07 Jeffrey C Honig <jch@bsdi.com>
188
189 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
190
191 1999-10-07 Richard M. Stallman <rms@caffeine.ai.mit.edu>
192
193 * process.c (wait_reading_process_input): When trying to suck
194 input from one process, for accept-process-output,
195 exit that loop if we get EAGAIN or EWOULDBLOCK.
196
197 1999-10-07 Gerd Moellmann <gerd@gnu.org>
198
199 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
200 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
201 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
202 Fpixmap_spec_p and Qpixmap_spec_p.
203 (load_face_colors, check_lface_attrs,
204 merge_face_vector_with_property,
205 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
206 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
207 Fbitmap_spec_p.
208
209 1999-10-07 Gerd Moellmann <gerd@gnu.org>
210
211 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
212 MODE_LINE_FACE_ID.
213
214 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
215 (struct x_resources) [USE_X_TOOLKIT]: New.
216 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
217 [USE_MOTIF]: New.
218 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
219 [USE_LUCID]: New.
220 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
221 (Qmenu): New.
222 (syms_of_xfaces): Initialize Qmenu.
223 (realize_basic_faces): Realize face `menu'.
224 (resolve_face_name): New.
225 (lface_from_face_name): Use it.
226 (Finternal_set_lisp_face_attribute): Ditto.
227 (Fpixmap_spec_p): Rewritten. Extend doc string.
228
229 * xmenu.c (set_frame_menubar, xmenu_show): Call
230 x_set_menu_resources_from_menu_face.
231
232 * dispextern.h (enum face_id): Add MENU_FACE_ID.
233 (toplevel): Include X11/Intrinsic.h.
234
235 1999-10-03 Ken'ichi Handa <handa@gnu.org>
236
237 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
238 correctly.
239
240 1999-09-30 Kenichi Handa <handa@etl.go.jp>
241
242 * category.c (modify_lower_category_set): Set default value of
243 TABLE correctly.
244
245 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
246 size correctly.
247
248 1999-09-29 Gerd Moellmann <gerd@gnu.org>
249
250 * editfns.c (Fpropertize): Renamed from Fproperties.
251
252 1999-09-29 Gerd Moellmann <gerd@gnu.org>
253
254 * xdisp.c (resize_mini_window): Do nothing if frame is an X
255 frame that hasn't been initialized yet.
256
257 1999-09-28 Richard M. Stallman <rms@caffeine.ai.mit.edu>
258
259 * keymap.c (Fsingle_key_description): Make tem big enough.
260 (describe_buffer_bindings): Make buf big enough.
261
262 1999-09-27 Richard M. Stallman <rms@caffeine.ai.mit.edu>
263
264 * intervals.c (get_local_map): Use indirect_function,
265 not Findirect_function.
266
267 1999-09-27 Dave Love <fx@gnu.org>
268
269 * cm.h: Remove unneeded declaration of ospeed.
270
271 1999-09-26 Gerd Moellmann <gerd@gnu.org>
272
273 * lisp.h (toplevel): Add prototype for
274 next_single_char_property_change.
275
276 * textprop.c (next_single_char_property_change): New.
277
278 * xdisp.c (display_prop_end, invisible_text_between_p): Use
279 next_single_char_property_change.
280
281 1999-09-25 Gerd Moellmann <gerd@gnu.org>
282
283 * editfns.c (Fproperties): New.
284 (syms_of_editfns): Defsubr it.
285
286 * xfns.c (lookup_image): Set image's timestamp because it's
287 used when we look it up.
288
289 1999-09-23 Gerd Moellmann <gerd@gnu.org>
290
291 * window.c (enlarge_window): Add window parameter instead of using
292 selected_window.
293 (Fdisplay_buffer): Call it with window parameter instead of
294 setting selected_window.
295 (Fenlarge_window, Fshrink_window): Ditto.
296 (shrink_mini_window): If there is no recorded height and position
297 info, resize mini-window to height 1.
298
299 * xfns.c (image_error): Use add_to_log.
300
301 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
302 (load_face_font_or_fontset, load_color,
303 merge_face_vector_with_property): Ditto.
304
305 * dispextern.h: Add prototype for add_to_log.
306
307 * xfaces.c (add_to_log): Move to xdisp.c.
308
309 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
310 parameter.
311
312 1999-09-23 Gerd Moellmann <gerd@gnu.org>
313
314 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
315 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
316
317 * xdisp.c (resize_mini_window): Use grow_mini_window and
318 shrink_mini_window.
319
320 * window.c (window_min_size): Add parameter ignore_fixed_p.
321 (change_window_height): Call window_min_size with new parameter.
322 (shrink_window_lowest_first, save_restore_orig_size,
323 grow_mini_window, shrink_mini_window): New.
324 (make_window, replace_window): Initialize orig_top and
325 orig_height.
326 (enlarge_window): Renamed from change_window_height. Make it
327 static.
328 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
329 enlarge_window instead of change_window_height.
330
331 * window.h (struct window): New members orig_top, orig_height.
332 (toplevel): Add prototypes for grow_mini_window and
333 shrink_mini_window. Remove prototype for change_window_height.
334
335 1999-09-21 Eli Zaretskii <eliz@gnu.org>
336
337 * frame.c (frame_name_fnn_p): Fix previous change.
338
339 1999-09-20 Gerd Moellmann <gerd@gnu.org>
340
341 * minibuf.c (toplevel): Move include of stdio.h to other includes.
342
343 * dispnew.c (direct_output_for_insert): Cast arguments to
344 safe_bcopy to char *.
345
346 * lread.c (readchar): Remove unused variables.
347 (read_filtered_event, read1, Fmapatoms): Ditto.
348 (toplevel): Include intervals.h.
349
350 * eval.c (Fsignal): Remove unused variables.
351 (Fcommandp, do_autoload): Ditto.
352
353 * lisp.h: Add prototype for safe_bcopy, fatal.
354
355 * editfns.c (init_editfns): Remove unused variables.
356 (Fgoto_char, Fchar_after, Fformat): Ditto.
357 (message_text, message_length): Put in #ifndef HAVE_MENUS.
358
359 * data.c (find_symbol_value): Remove unused variables.
360 (Faref, Fstring_to_number): Ditto.
361 (toplevel): Include stdio.h.
362 (Fnumber_to_string): Cast XINT to long for %ld.
363
364 * casefiddle.c (casify_object): Remove unused variables.
365 (casify_region): Ditto.
366
367 * filelock.c (get_boot_time): Put local variable used in
368 conditinally compiled section in #ifdef.
369 (toplevel): Include stdio.h.
370
371 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
372 keys_of_keymap, syms_of_keymap): Remove unused variables.
373
374 1999-09-20 Gerd Moellmann <gerd@gnu.org>
375
376 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
377 whose corresponding window rows have been disabled in
378 try_window_id.
379
380 1999-09-20 Gerd Moellmann <gerd@gnu.org>
381
382 * xdisp.c (compute_window_start_on_continuation_line): Handle case
383 that window start is out of range.
384 (handle_display_prop, handle_single_display_prop): Replace
385 marginal area specifications like `left-margin' with `(margin
386 left-margin)'.
387 (Qmargin): New.
388 (syms_of_xdisp): Initialize Qmargin.
389
390 1999-09-19 Gerd Moellmann <gerd@gnu.org>
391
392 * syntax.c (update_syntax_table, find_defun_start, back_comment,
393 describe_syntax, skip_chars): Remove unused variables.
394 (back_comment, forw_comment): Add braces to if-statement with
395 if-else as dependent statement.
396
397 * process.c (list_processes_1): Remove unused variables.
398 (Fopen_network_stream, create_process): Add parentheses to
399 conditional expressions.
400 (create_process): Put declaration of sigchld in #if 0.
401 (Fopen_network_stream): Removed unused variables.
402 (Fopen_network_stream, wait_reading_process_input,
403 wait_reading_process_input, send_process, send_process): Ditto.
404 (toplevel): Add prototypes for set_waiting_for_input and
405 keyboard_bit_set.
406
407 * abbrev.c (Fexpand_abbrev): Remove unused variables.
408
409 * textprop.c (Fset_text_properties): Remove unused variables.
410 (text_property_list, verify_interval_modification,
411 interval_has_all_properties): Ditto.
412
413 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
414 (Fcall_process): Remove unused variable.
415
416 * keyboard.c (Frecursive_edit): Remove unused variable.
417 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
418 timer_check, make_lispy_event, menu_bar_items,
419 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
420 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
421 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
422 read_key_sequence): Ditto. Fread_key_sequence,
423 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
424 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
425 used when GOBBLE_FIRST_EVENT is defined in #ifdef
426 (Fexecute_extended_command): Cast XINT to long for %ld.
427 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
428 (toplevel): Include sys/types.h.
429
430 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
431 (toplevel): Add prototypes for stuff_char, and
432 code_convert_string_norecord.
433
434 1999-09-19 Gerd Moellmann <gerd@gnu.org>
435
436 * buffer.h: Add prototype for r_re_alloc.
437
438 * insdel.c (copy_text): Removed unused variables.
439 (count_combining_after, count_combining_after, insert_1_both,
440 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
441 (adjust_after_replace, replace_range): Add parentheses to logical
442 expressions. Remove unused variables.
443 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
444 expression.
445
446 * alloc.c (Fgarbage_collect): Remove unused variable.
447 (compact_strings): Add parentheses around assignments in
448 conditional context.
449 (toplevel): Put declaration of unused function clear_marks
450 in #if 0 like its definition.
451
452 * lisp.h: Add prototype for shrink_regexp_cache,
453 sweep_weak_hash_tables.
454
455 1999-09-19 Dave Love <fx@gnu.org>
456
457 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
458
459 * doc.c (read_bytecode_char): Declare arg.
460
461 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
462 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
463
464 1999-09-18 Richard Stallman <rms@gnu.org>
465
466 * xdisp.c (echo_area_display): Turn off code that returned
467 without doing anything when using a terminal frame.
468
469 1999-09-17 Richard M. Stallman <rms@caffeine.ai.mit.edu>
470
471 * unexelf.c (unexec): Don't get confused by a short section
472 just before the bss section.
473
474 1999-09-16 Gerd Moellmann <gerd@gnu.org>
475
476 * emacs.c (main): Remove unused variables.
477 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
478
479 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
480 init_fileio_once, syms_of_sound, init_xfns, init_fns
481 init_sound, check_message_stack.
482
483 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
484
485 * intervals.c (rotate_right, rotate_left): Add braces to avoid
486 ambiguous else warning.
487 (split_interval_left): Remove unused variables.
488 (previous_interval, adjust_intervals_for_deletion,
489 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
490 (icount, idepth, zero_length): Move into #if 0 section below
491 original position where these are used.
492
493 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
494
495 * buffer.c (Fkill_buffer): Remove unused variables.
496 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
497 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
498 init_buffer_once, (syms_of_buffer): Ditto.
499
500 * xrdb.c (get_fallback): Remove unused variable.
501 (x_load_resources): Ditto. Put local variable used for Motif only
502 in #ifdef USE_MOTIF.
503
504 1999-09-16 Gerd Moellmann <gerd@gnu.org>
505
506 * minibuf.c (read_minibuf): Remove unused variables.
507 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
508 (do_completion): Move assignment out of conditional context.
509 (Fdisplay_completion_list): Add parentheses to conditional expression.
510
511 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
512
513 * lisp.h: Add prototype for no_switch_window.
514
515 * window.c (Fset_window_buffer): Remove unused variables.
516 (Fset_window_margins): Ditto.
517
518 * xdisp.c (resize_mini_window): Temporarily set the selected
519 window's or Vminibuf_scroll_window's height to "fixed" around
520 the call the change_window_height.
521
522 * window.c (window_fixed_size_p): Check window's height_fixed_p
523 flag.
524
525 * window.h (struct window): New member height_fixed_p.
526
527 * dispnew.c (direct_output_forward_char): Don't use this method
528 if showing a message or a message was just cleared because we
529 might need to resize the mini-window.
530
531 1999-09-16 Gerd Moellmann <gerd@gnu.org>
532
533 * frame.c (Fdelete_frame): Correct local variable pointing to
534 selected frame after selecting new frame.
535
536 1999-09-15 Richard Stallman <rms@gnu.org>
537
538 * puresize.h (BASE_PURESIZE): Increase to 525000.
539
540 * filelock.c (Vtemporary_file_directory): New variable.
541 (syms_of_filelock): Set up Lisp variable.
542
543 1999-09-15 Gerd Moellmann <gerd@gnu.org>
544
545 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
546 (encode_terminal_code): Remove unused variables.
547 (turn_off_face): Ditto.
548 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
549
550 * dispnew.c (update_frame_line): If writing whole desired line,
551 don't clear to end of line if already at the end.
552
553 1999-09-15 Gerd Moellmann <gerd@gnu.org>
554
555 * xdisp.c (resize_mini_window): Don't report changed window
556 height if it actually hasn't changed.
557
558 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
559 unused variables.
560 (mark_shell_size_user_specified): Put in #if 0 because not used.
561 (create_frame_gcs): Put in #if 0 because currently unused.
562 (first_frame_p): Ditto.
563
564 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
565 single_submenu, update_frame_menubar, set_frame_menubar,
566 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
567 variables.
568
569 * print.c (PRINTFULLP): Removed because it is no longer used and
570 is misleading.
571 (Ferror_message_string): Remove unused variables.
572 (print_object): Cast argument of sprintf to long for `%ld'
573 specifier. Remove unused variable.
574
575 1999-09-14 Gerd Moellmann <gerd@gnu.org>
576
577 * sound.c (Fplay_sound): Remove usused variables.
578 (be2hs): Put in #if 0 because it's currently not used.
579
580 1999-09-14 Ken Raeburn <raeburn@gnu.org>
581
582 * print.c (Ferror_message_string, print_error_message,
583 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
584 member access.
585
586 1999-09-14 Gerd Moellmann <gerd@gnu.org>
587
588 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
589
590 * frame.c (Fnext_frame): Remove unused variable(s).
591 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
592 (store_frame_param): Add parentheses to conditional expression.
593 (Fmodify_frame_parameters): Remove unused variables.
594 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
595 Ditto.
596
597 * xfns.c (x_set_background_color): Remove unused variable(s).
598 (x_set_border_pixel): Ditto.
599 (x_set_menu_bar_lines): Put local variable used only for
600 non-toolkit case in #ifdef/#endif.
601 (x_figure_window_size): Remove unused variable(s).
602 (x_figure_window_size, x_window, lookup_image,
603 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
604 png_load, jpeg_load, gif_load, x_create_tip_frame,
605 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
606
607 * xterm.c (x_scroll_bar_handle_click): Compile only if
608 not USE_TOOLKIT_SCROLL_BARS.
609 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
610
611 * dispextern.h: Add prototypes for gamma_correct and
612 x_kill_gs_process.
613
614 * xterm.c (x_produce_glyphs): Remove unused variable(s).
615 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
616 x_set_toolkit_scroll_bar_thumb): Ditto.
617 (x_scroll_bar_create): Move local variable to the
618 conditionally compiled section of code where it is used.
619 (x_scroll_bar_create): Remove unused variable(s).
620 (x_scroll_bar_remove, XTread_socket): Ditto.
621 (XTread_socket) <ConfigureNotify>: Move variables used for
622 non-toolkit case into conditionally compiled section of code.
623
624 * window.h (freeze_window_starts): Fix typo in prototype.
625
626 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
627 variable(s).
628
629 * lisp.h: Add prototype for debug_print.
630
631 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
632 to use do-while.
633
634 * fns.c (SXHASH_COMBINE): Add missing parentheses.
635 (Fchar_table_range, Fset_char_table_default, mapcar1,
636 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
637
638 * lisp.h: Add prototype for getloadavg.
639
640 1999-09-14 Andreas Schwab <schwab@gnu.org>
641
642 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
643
644 * lisp.h: Declare close_file_unwind.
645
646 1999-09-14 Richard Stallman <rms@gnu.org>
647
648 * filelock.c (get_boot_time): Make the temp name in the proper dir.
649
650 1999-09-13 Gerd Moellmann <gerd@gnu.org>
651
652 * xdisp.c (redisplay_window): Make sure start_at_line_beg
653 is always set correctly.
654
655 1999-09-13 Dave Love <fx@gnu.org>
656
657 * xdisp.c (move_it_in_display_line_to): Make type consistent with
658 declaration.
659
660 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
661
662 * xdisp.c (QCfile): Move here from xfns.c.
663 (syms_of_xdisp): Initialize it.
664 (message2_nolog): Change for Lisp_Object selected_frame.
665 (message3_nolog, message_with_string, message,
666 setup_echo_area_for_printing, truncate_echo_area,
667 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
668
669 1999-09-13 Dave Love <fx@gnu.org>
670
671 * xterm.c: Don't continue #define args for benefit of old cc.
672 (xt_action_hook): Indent #error for benefit of K&R cc.
673
674 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
675
676 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
677 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
678 (XRINGBELL): Removed.
679
680 1999-09-13 Dave Love <fx@gnu.org>
681
682 * xfns.c (x_put_x_image): Make type consistent with declaration.
683
684 * fns.c (Fmake_hash_table): Fix string continuation.
685
686 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
687
688 * xfns.c (QCfile): Moved to xdisp.c.
689 (syms_of_xfns): Don't initialize QCfile.
690 (check_x_frame): Change for Lisp_Object selected_frame.
691 (check_x_display_info, x_get_resource_string): Ditto.
692
693 1999-09-13 Gerd Moellmann <gerd@gnu.org>
694
695 * minibuf.c (choose_minibuf_frame): Don't try to set the
696 mini-buffer window's buffer, if the buffer is invalid.
697
698 * xfns.c (QCfile): Moved to xdisp.c.
699 (syms_of_xfns): Don't initialize QCfile.
700
701 * xdisp.c (QCfile): Move here from xfns.c.
702 (syms_of_xdisp): Initialize it.
703
704 * lisp.h (selected_frame): Add external declaration.
705
706 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
707 (Fx_store_cut_buffer_internal): Ditto.
708 (Fx_rotate_cut_buffers_internal): Ditto.
709
710 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
711 selected_frame.
712 (Finternal_set_lisp_face_attribute): Ditto.
713 (Finternal_get_lisp_face_attribute): Ditto.
714 (Finternal_lisp_face_empty_p): Ditto.
715 (Fdump_face): Ditto.
716
717 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
718 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
719 set_terminal_window, set_scroll_region, reassert_line_highlight,
720 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
721 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
722 encode_terminal_code, write_glyphs, term_init): Ditto.
723
724 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
725 (kbd_input_ast, read_input_waiting): Ditto.
726
727 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
728 selected_frame.
729 (read_minibuf): Ditto.
730
731 * keyboard.c (command_loop_1): Change for Lisp_Object
732 selected_frame.
733 (cmd_error_internal, command_loop_1, read_char,
734 kbd_buffer_get_event, read_avail_input,
735 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
736 interrupt_signal, quit_throw_to_read_char): Ditto.
737
738 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
739 (Ffontset_info): DItto.
740
741 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
742
743 * dispnew.c (selected_frame): Make it a Lisp_Object.
744 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
745 (direct_output_for_insert, direct_output_forward_char,
746 init_display): Ditto.
747
748 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
749 selected_frame.
750 (set_internal): Ditto.
751
752 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
753 (record_buffer): Ditto.
754
755 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
756 (do_switch_frame): Change for Lisp_Object selected_frame.
757 (Fselected_frame): Ditto.
758 (Fframe_first_window): Use SELECTED_FRAME.
759 (Fframe_root_window): Change for Lisp_Object selected_frame.
760 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
761 Fprevious_frame, other_visible_frames, Fdelete_frame,
762 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
763 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
764 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
765 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
766 Fset_frame_height, Fset_frame_width): Ditto.
767
768 1999-09-13 Gerd Moellmann <gerd@gnu.org>
769
770 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
771 (message3_nolog, message_with_string, message,
772 setup_echo_area_for_printing, truncate_echo_area,
773 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
774
775 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
776 (Fx_popup_dialog): Ditto.
777
778 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
779 (check_x_display_info, x_get_resource_string): Ditto.
780
781 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
782 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
783 (XRINGBELL): Removed.
784
785 * window.c (Fminibuffer_window): Change for Lisp_Object
786 selected_frame.
787 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
788 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
789 Fcurrent_window_configuration, init_window_once): Ditto.
790
791 * frame.h (SELECTED_FRAME): New.
792
793 1999-09-12 Ken Raeburn <raeburn@gnu.org>
794
795 * category.c (word_boundary_p): Use XCAR and XCDR.
796 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
797 Fregister_code_conversion_map): Likewise.
798 * coding.c (setup_coding_system, detect_coding_system,
799 Ffind_operation_coding_system, Fset_coding_priority_internal):
800 Likewise.
801 * doc.c (get_doc_string, Fdocumentation,
802 store_function_docstring): Likewise.
803 * editfns.c (save_restriction_restore): Likewise.
804 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
805 skip_debugger, find_handler_clause, Fautoload, Fapply,
806 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
807 Likewise.
808 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
809 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
810 Fread_file_name): Likewise.
811 * filelock.c (unlock_all_files): Likewise.
812 * insdel.c (Fcombine_after_change_execute): Likewise.
813 * intervals.c (adjust_intervals_for_insertion): Likewise.
814 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
815 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
816 store_in_keymap, Fcopy_keymap, define_as_prefix,
817 current_minor_maps, Faccessible_keymaps,
818 accessible_keymaps_char_table, Fkey_description,
819 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
820 describe_buffer_bindings, describe_map_tree, shadow_lookup,
821 describe_map): Likewise.
822 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
823 read_list, init_lread): Likewise.
824 * search.c (Fmatch_data): Likewise.
825 * sunfns.c (Fsun_menu_internal): Likewise.
826 * syntax.c (describe_syntax): Likewise.
827 * undo.c (record_insert, record_delete, Fundo_boundary,
828 truncate_undo_list): Likewise.
829 * vmsproc.c (child_sig): Likewise.
830
831 * editfns.c (Fformat): Use XFLOAT_DATA.
832
833 1999-09-12 Gerd Moellmann <gerd@gnu.org>
834
835 * keyboard.c (command_loop_1): Resize mini-window to the
836 exact size of a message displayed, if any.
837
838 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
839 to exact size if exact_p is non-zero.
840 (display_echo_area_1): Call resize_mini_window with
841 new parameter.
842 (redisplay_internal): Ditto.
843 (resize_echo_area_axactly): New.
844
845 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
846 new parameter.
847
848 * dispextern.h: Change prototype of resize_mini_window.
849 Add prototype for resize_echo_area_axactly.
850
851 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
852 (syms_of_xfaces): Defsubr accordingly.
853
854 * xdisp.c (hscroll_window_tree): Choose cursor row from
855 desired or current matrix.
856 (redisplay_internal): Hscroll before updating.
857
858 1999-09-12 Gerd Moellmann <gerd@gnu.org>
859
860 * syntax.c (Fforward_word): Use prompt_end_charpos instead
861 of minibuffer_prompt_length.
862
863 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
864 of minibuffer_prompt_length.
865 (read_minibuf_unwind): Ditto.
866 (Fminibuffer_complete_and_exit): Ditto.
867 (Fminibuffer_complete_word): Ditto.
868 (Fminibuffer_prompt_end): Ditto.
869
870 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
871 of minibuffer_prompt_length.
872 (Fline_beginning_position): Ditto.
873
874 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
875 of minibuffer_prompt_length.
876 (Fmake_indirect_buffer): Ditto.
877 (Fkill_buffer): Ditto.
878 (Ferase_buffer): Ditto.
879
880 * buffer.h (prompt_end_charpos): Replaces
881 minibuffer_prompt_length.
882
883 * minibuf.c (read_minibuf): Return mini-buffer contents
884 without the prompt.
885
886 * editfns.c (make_buffer_string_both): Take out the code
887 to handle mini-buffer prompts.
888 (Fbuffer_string): Handle the prompt here, instead.
889
890 * xfaces.c (lface_from_face_name): Resolve face aliases.
891 (Qmode_line): Replaces Qmodeline.
892 (realize_basic_faces): Use Qmode_line.
893 (syms_of_xfaces): Initialize Qmode_line.
894
895 1999-09-12 Gerd Moellmann <gerd@gnu.org>
896
897 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
898 current column after inserting prompt.
899 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
900
901 * xfaces.c (Qframe_update_face_colors): New.
902 (syms_of_xfaces): Initialize call.
903 (update_face_from_frame_parameter): Call that function when
904 the frame's background changes.
905
906 1999-09-12 Richard Stallman <rms@gnu.org>
907
908 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
909
910 1999-09-12 Ken Raeburn <raeburn@gnu.org>
911
912 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
913 mark_object, mark_buffer): Use XCAR and XCDR.
914 * bytecode.c (Fbyte_code): Likewise.
915 * callint.c (Fcall_interactively, Fprefix_numeric_value):
916 Likewise.
917 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
918 getenv_internal): Likewise.
919 * dired.c (file_name_completion): Likewise.
920 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
921 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
922 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
923 * indent.c (Fcompute_motion): Likewise.
924 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
925 list_processes_1, Fstart_process, Fopen_network_stream,
926 wait_reading_process_input, read_process_output_call,
927 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
928 status_notify, wait_reading_process_input): Likewise.
929 * textprop.c (PLIST_ELT_P, property_value, set_properties,
930 extend_property_ranges): Likewise.
931 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
932 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
933 x_report_frame_params, x_set_cursor_type, x_icon_type,
934 x_figure_window_size, Fx_create_frame, w32_load_system_font,
935 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
936 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
937 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
938 x_display_info_for_name, Fx_display_list): Likewise.
939 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
940 Fx_popup_menu, Fx_popup_dialog): Likewise.
941 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
942 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
943 w32_term_init, x_delete_display): Likewise.
944 * xfns.c (x_window_to_frame, x_any_window_to_frame,
945 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
946 x_top_window_to_frame, x_set_frame_parameters,
947 x_report_frame_params, x_set_cursor_type, x_icon_type,
948 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
949 Fx_display_list, x_create_tip_frame): Likewise.
950 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
951 Fx_popup_menu, Fx_popup_dialog): Likewise.
952 * xselect.c (x_own_selection, x_get_local_selection,
953 x_handle_selection_request, x_handle_selection_clear,
954 x_clear_frame_selections, wait_for_property_change_unwind,
955 wait_for_property_change, x_handle_property_notify,
956 copy_multiple_data, x_get_foreign_selection,
957 lisp_data_to_selection_data, clean_local_selection_data,
958 x_handle_selection_notify, Fx_get_selection_internal,
959 x_disown_buffer_selections): Likewise.
960 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
961 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
962 Likewise.
963
964 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
965 XFLOAT_DATA.
966 * bytecode.c (Fbyte_code): Likewise.
967 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
968 fmod_float): Likewise.
969
970 1999-09-11 Richard Stallman <rms@gnu.org>
971
972 * xdisp.c (run_window_scroll_functions): If hook functions switch
973 buffers, switch back after.
974
975 1999-09-11 Ken Raeburn <raeburn@gnu.org>
976
977 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
978 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
979 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
980 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
981 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
982 XCDR.
983 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
984 XCDR.
985
986 1999-09-10 Richard Stallman <rms@gnu.org>
987
988 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
989 not RevertToPointerRoot.
990 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
991 Fix the code to clear around the scroll bar.
992
993 1999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
994
995 * print.c: Support print-circle and related features.
996 (Vprint_gensym_alist): Removed.
997 (Vprint_circle, Vprint_continuous_numbering, print_number_index
998 Vprint_number_table): New variables.
999 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
1000 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
1001 (print, print_preprocess, print_preprocess_string, print_object):
1002 New/modified functions with print-circle feature. Use
1003 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
1004 (syms_of_print): Defined new Lisp variables `print-circle',
1005 `print-continuous-numbering', `print-number-table'.
1006
1007 1999-09-10 Gerd Moellmann <gerd@gnu.org>
1008
1009 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
1010 as background color specification instead of an integer.
1011 (image-cache-eviction-delay): Replaces image-eviction-seconds.
1012 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
1013 (clear_image_cache, syms_of_xfns): Use it.
1014 (Qpostscript): Replaces Qghostscript.
1015 (gs_type): Use it.
1016 (gs_image_p): Ditto.
1017 (syms_of_xfns): Initialize Qpostscript.
1018
1019 1999-09-10 Richard Stallman <rms@gnu.org>
1020
1021 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
1022
1023 1999-09-09 Richard Stallman <rms@gnu.org>
1024
1025 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
1026
1027 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
1028
1029 1999-09-09 Gerd Moellmann <gerd@gnu.org>
1030
1031 * fns.c (Fmakehash): Accept just one optional argument TEST.
1032
1033 * xfns.c (QCindex): New.
1034 (syms_of_xfns): Initialize QCindex.
1035 (gif_load): Use it instead of `:image'.
1036
1037 1999-09-09 Richard Stallman <rms@gnu.org>
1038
1039 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
1040 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
1041
1042 1999-09-08 Gerd Moellmann <gerd@gnu.org>
1043
1044 * xdisp.c (Qwhen): Replaces QCwhen.
1045 (syms_of_xdisp): Initialized it instead of QCwhen.
1046 (handle_single_display_prop): Use it instead of QCwhen.
1047
1048 1999-09-08 Ken'ichi Handa <handa@gnu.org>
1049
1050 * charset.c (translate_char): Reset MSBs of arguments of
1051 MAKE_CHAR.
1052 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
1053
1054 1999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
1055
1056 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
1057
1058 * fns.c (Fbase64_decode_region): Don't place point outside of the
1059 current accessible portion.
1060
1061 1999-09-07 Richard Stallman <rms@gnu.org>
1062
1063 * keymap.c (fix_submap_inheritance): Do nothing if the proper
1064 parent is an ancestor of SUBMAP; otherwise, add it as the
1065 ultimate ancestor.
1066
1067 1999-09-07 Gerd Moellmann <gerd@gnu.org>
1068
1069 * xdisp.c (handle_single_display_prop): Change conditional
1070 display property to `:when FORM . VALUE'.
1071
1072 1999-09-07 Richard Stallman <rms@gnu.org>
1073
1074 * fileio.c (Fwrite_region): Doc fix.
1075
1076 1999-09-07 Stefan Monnier <monnier@cs.yale.edu>
1077
1078 * fileio.c (Qexcl): New variable.
1079 (report_file_error): Handle EEXIST specially.
1080 (Fwrite_region): Special handling for CONFIRM = `excl'.
1081 (syms_of_fileio): Initialize Qexcl.
1082
1083 1999-09-07 Gerd Moellmann <gerd@gnu.org>
1084
1085 * xfns.c (x_set_foreground_color): Call
1086 update_face_from_frame_parameter.
1087 (x_set_background_color): Ditto.
1088 (x_set_mouse_color): Ditto.
1089 (x_set_cursor_color): Ditto.
1090 (x_set_border_color): Ditto.
1091 (x_set_scroll_bar_foreground): Ditto.
1092 (x_set_scroll_bar_background): Ditto.
1093
1094 * xfaces.c (recompute_basic_faces): Clear face cache.
1095 (Finternal_set_lisp_face_attribute): Modify frame parameters
1096 if attributes of certain faces are changed.
1097 (update_face_from_frame_parameter): New.
1098
1099 * xfaces.c (realize_basic_faces): Realize new basic faces.
1100
1101 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
1102 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
1103
1104 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
1105 (syms_of_xfaces): Intialize new symbols.
1106
1107 * fns.c (Fmakehash): Take one argument, test, make all the
1108 rest keyword arguments.
1109
1110 * window.c (Fset_window_margins): Make window the first argument.
1111 (set_window_buffer): Call Fset_window_margins with window as first
1112 argument.
1113
1114 1999-09-07 Gerd Moellmann <gerd@gnu.org>
1115
1116 * xfaces.c (Qfringe): Replaces Qmargin.
1117
1118 1999-09-07 Kenichi Handa <handa@etl.go.jp>
1119
1120 * charset.h: Lots of comments fixed.
1121 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
1122 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
1123
1124 * charset.c : Lots of comments fixed.
1125 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
1126 (CHAR_COMPONENTS_VALID_P): Name changed from
1127 CHAR_COMPONENT_VALID_P. Caller changed.
1128
1129 1999-09-06 Richard Stallman <rms@gnu.org>
1130
1131 * insdel.c (syms_of_insdel): Define Lisp variable
1132 inhibit-modification-hooks.
1133
1134 1999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
1135
1136 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
1137 unexaix.c.
1138
1139 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
1140
1141 1999-09-06 Dave Love <fx@gnu.org>
1142
1143 * unexaix.c: New version incorporating Michael Sperber's changes
1144 from XEmacs. Should solve problems on AIX 4.3.
1145
1146 * lread.c (Vbyte_boolean_vars): New variable.
1147 (defvar_bool, syms_of_lread): Use it.
1148
1149 1999-09-05 Richard Stallman <rms@gnu.org>
1150
1151 * minibuf.c (read_minibuf): Put all three properties on the
1152 same range, the whole prompt.
1153
1154 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1155
1156 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
1157 (Fplay_sound, syms_of_sound): Use it.
1158 (parse_sound): Allow float volume values in the range [0, 1].
1159 (Fplay_sound): Ditto.
1160
1161 * window.c (Fset_window_vscroll): Make window the first argument,
1162 amount to scroll the second. Take non-negative vscroll as
1163 argument.
1164 (Fwindow_vscroll): Return non-negative vscroll.
1165
1166 * xfns.c (Fx_show_tip): Improve documentation.
1167
1168 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1169
1170 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
1171 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
1172 `top-line' and `top_line' to `header-line' and `header_line'.
1173 Likewise for similar spellings.
1174
1175 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1176
1177 * xdisp.c (row_containing_pos): New.
1178 (try_window_id): Use it.
1179
1180 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
1181 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
1182 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
1183 Likewise for upper-case etc.
1184
1185 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1186
1187 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1188 Fix reference to renamed variable.
1189
1190 1999-09-04 Gerd Moellmann <gerd@gnu.org>
1191
1192 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
1193 (window_fixed_size_p): Use Qwindow_size_fixed instead of
1194 Qfixed_window_size.
1195 (syms_of_window): Ditto.
1196
1197 * fns.c (Fmakehash): Exchange optional test and size arguments.
1198
1199 1999-09-03 Gerd Moellmann <gerd@gnu.org>
1200
1201 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
1202 under newly created scroll bar.
1203 (expose_window): If window is not yet fully initialized, do
1204 nothing. This can happen when toolkit scroll bars are used and a
1205 window is split. Reconfiguring the scroll bars will generate an
1206 expose for a newly created window.
1207
1208 * frame.h (struct frame): New member `gamma'.
1209
1210 * xfns.c: Include math.h. Add extern declaration for atof in case
1211 we don't see one.
1212 (Qscreen_gamma): New.
1213 (struct x_frame_parm_table): Add prototypes, add
1214 x_set_screen_gamma.
1215 (gamma_correct): New function.
1216 (defined_color): Call it.
1217 (x_set_screen_gamma): New.
1218 (x_set_title): Add parameter old_value.
1219 (RES_TYPE_FLOAT): New.
1220 (x_get_arg): Handle RES_TYPE_FLOAT.
1221 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
1222 (lookup_pixel_color): Change call to x_alloc_nearest_color to
1223 new prototype.
1224 (lookup_rgb_color): Ditto.
1225 (syms_of_xfns): Initialize Qscreen_gamma.
1226
1227 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
1228 New. Allocate color for lwlib widgets.
1229 (x_alloc_nearest_color): Change parameter list include the
1230 frame on which to allocate colors. Gamma-correct colors.
1231 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
1232 parameter list.
1233
1234 * xterm.h: Change protorype of x_alloc_nearest_color.
1235
1236 1999-09-03 Richard Stallman <rms@gnu.org>
1237
1238 * callproc.c: Delete the system-independent include of stdlib.h
1239 (leaving only the one in the WINDOWSNT conditional).
1240
1241 1999-09-03 Andrew Choi <choi@cs.hku.hk>
1242
1243 * callproc.c (call-process) [macintosh]: Call mac_run_command in
1244 sysdep.c. The Mac code is modeled after the DOS code.
1245
1246 * dispextern.h [macintosh]: Include macterm.h to define substitute X
1247 Window types and macros.
1248
1249 * frame.h: Do nothing if included a second time.
1250 (enum output_method): Add mac_output frame type.
1251 (union output_data): Add new alternative `mac'.
1252 (FRAME_MAC_P): New macro.
1253
1254 * frame.c (Fframep) [macintosh]: Handle mac frame type.
1255 (syms_of_frame_1): Initialize Qmac.
1256 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
1257 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
1258 (Fmodify_frame_parameters) [macintosh]: Call
1259 mac_set_frame_parameter in macterm.c.
1260
1261 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
1262 (512) because Mac compilers limit local data of a function to 32K.
1263
1264 * make-docfiles.c: Correctly handle input files with Mac-style
1265 eol's.
1266
1267 * sysdep.c: Define numerous routines to emulate Unix system calls.
1268
1269 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
1270 file of an X Window environment.
1271
1272 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
1273 x-display-grayscale, x-color-defined-p, and x-color-values.
1274
1275 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
1276 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
1277 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
1278 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
1279 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
1280 New functions, replacing POSIX features.
1281
1282 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
1283 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
1284 (InitEmacsPasswdDir, run_mac_command): New subroutines.
1285
1286 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
1287 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
1288 (myPasswdDir, TempDirName, sys_siglist): New variables.
1289
1290 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
1291 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
1292 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
1293 Define empty stubs so Emacs will link.
1294
1295 1999-09-03 Gerd Moellmann <gerd@gnu.org>
1296
1297 * xdisp.c: Use XCAR and XCDR instead of XCONS.
1298
1299 * window.h: New member frozen_window_start_p.
1300
1301 * window.c (foreach_window, foreach_window_1): New.
1302 (freeze_window_start, freeze_window_starts): New.
1303 (make_window): Initialize frozen_window_start_p.
1304 (replace_window): Ditto.
1305 (Fset_window_point): Remove references to deleted variables.
1306 (Fset_window_start): Ditto.
1307
1308 * xdisp.c (Vresize_mini_config, resize_mini_frame,
1309 resize_mini_initial_height): Removed.
1310 (syms_of_xdisp): Remove references to these variables.
1311 (resize_mini_window): Don't save window configuration, freeze
1312 window starts instead. Enlarge window until displaying an empty
1313 buffer, then shrink it. Make the function externally visible.
1314 (redisplay_window): Treat frozen window start like forced start,
1315 but accept point outside of the window.
1316
1317 * dispextern.h: Add function prototype for resize_mini_window.
1318
1319 * minibuf.c (read_minibuf_unwind): Resize mini-window when
1320 reaching minibuf_level 0.
1321
1322 * lisp.h: Remove extern declarations for variables deleted from
1323 xdisp.c.
1324
1325 * dispnew.c (adjust_frame_glyphs): Remove reference to
1326 Vresize_mini_config.
1327
1328 1999-09-03 Gerd Moellmann <gerd@gnu.org>
1329
1330 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
1331 to USE_TOOLKIT_SCROLL_BARS.
1332
1333 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
1334 here.
1335 (XTset_vertical_scroll_bar): Clarify position computations. Clear
1336 under newly created scroll bar. Put toolkit scroll bars in the
1337 middle of the area reserved for the scroll bar.
1338
1339 1999-09-03 Kenichi Handa <handa@etl.go.jp>
1340
1341 The following changes are for the new handling of mulitbyte
1342 sequence. Now, except for a composite character, no multibyte
1343 character in string/buffer has trailing garbage bytes. For
1344 instance, the length of string "\201\300\300" is now 2, the first
1345 character is Latin-1 A-grave, the second is raw \300.
1346
1347 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
1348 are negative.
1349 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
1350 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
1351 (PARSE_COMPOSITE_SEQ): New macro.
1352 (PARSE_CHARACTER_SEQ): New macro.
1353 (PARSE_MULTIBYTE_SEQ): New macro.
1354 (CHAR_PRINTABLE_P): New macro.
1355 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
1356 (STRING_CHAR_AND_LENGTH): Likewise.
1357 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
1358 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
1359 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
1360
1361 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
1362 (SPLIT_CHARACTER_SEQ): New macro.
1363 (SPLIT_MULTIBYTE_SEQ): New macro.
1364 (CHAR_COMPONENT_VALID_P): New macro.
1365 (non_ascii_char_to_string): Generate a multibyte sequence as far
1366 as possible.
1367 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
1368 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
1369 (split_non_ascii_string): Likewise.
1370 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
1371 (char_printable_p): New function.
1372 (translate_char): Check character by NATNUMP instead of INTEGERP.
1373 (unibyte_char_to_multibyte): Call char_valid_p instead of
1374 VALID_MULTIBYTE_CHAR_P.
1375 (Fmake_char_internal): Check the arguments more rigidly.
1376 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
1377 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
1378 (Fmultibyte_char_to_unibyte): Check the validity of character by
1379 CHAR_VALID_P.
1380 (chars_in_text): Call multibyte_chars_in_text.
1381 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
1382 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
1383 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
1384
1385 * data.c (Faset): Adjust the way to check byte-combining
1386 possibility for the new handling of multibyte sequence.
1387
1388 * editfns.c (Fsubst_char_in_region): Likewise.
1389
1390 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
1391 (string_char_to_byte): Likewise.
1392 (string_byte_to_char): Likewise.
1393
1394 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
1395 macro STRING_CHAR_AND_LENGTH. Caller changed.
1396
1397 * insdel.c (count_combining_composition): New function.
1398 (count_combining_before): Adjust the way to check byte-combining
1399 possibility for the new handling of multibyte sequence. Call
1400 count_combining_composition for a composite character.
1401 (count_combining_after): Likewise.
1402
1403 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
1404 (print): Likewise.
1405
1406 * dispextern.h (struct it): Change the size of the member
1407 `ctl_chars'.
1408
1409 * xdisp.c (get_next_display_element): Display incomplete multibyte
1410 sequence (e.g. \222\300) by octal form.
1411
1412 1999-09-02 Gerd Moellmann <gerd@gnu.org>
1413
1414 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
1415
1416 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
1417 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
1418
1419 1999-09-02 Gerd Moellmann <gerd@gnu.org>
1420
1421 * buffer.c (set_buffer_internal): Never set
1422 windows_or_buffers_changed.
1423
1424 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
1425 if we have displayed to the bottom of the window.
1426
1427 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
1428 in both directions. Extend documentation.
1429
1430 1999-09-01 Gerd Moellmann <gerd@gnu.org>
1431
1432 * minibuf.c (read_minibuf): Flush display after setting cursor to
1433 column 0.
1434
1435 1999-08-31 Gerd Moellmann <gerd@gnu.org>
1436
1437 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
1438 already defined. This avoids a warning from buffer.c.
1439
1440 1999-08-30 Gerd Moellmann <gerd@gnu.org>
1441
1442 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
1443 of both margins.
1444 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
1445 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
1446 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
1447
1448 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
1449 once instead of twice.
1450 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
1451
1452 * xterm.c: Remove unused bitmaps.
1453 (continued_bits, continuation_bits, overlay_bits): Change images.
1454 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
1455 instead of FRAME_X_FLAGS_AREA_WIDTH.
1456 (x_after_update_window_line): Ditto.
1457 (x_draw_bitmap): Likewise.
1458 (x_draw_row_bitmaps): Likewise.
1459 (x_draw_glyph_string_box): Likewise.
1460 (x_draw_glyphs): Likewise.
1461 (x_scroll_run): Likewise.
1462 (expose_window_tree): Likewise.
1463 (note_mode_line_highlight): Likewise.
1464 (XTset_vertical_scroll_bar): Likewise.
1465 (x_clip_to_row): Likewise.
1466 (x_set_window_size): Likewise.
1467
1468 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
1469 of 2 * that value.
1470
1471 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
1472 2 * that value.
1473 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
1474 FRAME_FLAGS_AREA_WIDTH.
1475
1476 * window.c (coordinates_in_window): Use
1477 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
1478 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
1479 instead of twice.
1480
1481 * widget.c (set_frame_size): Set flags_area_extra to
1482 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
1483 (EmacsFrameSetCharSize): Ditto.
1484
1485 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
1486 instead of FRAME_FLAGS_AREA_WIDTH.
1487
1488 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
1489 FRAME_FLAGS_AREA_COLS once.
1490 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
1491 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
1492
1493 1999-08-30 Gerd Moellmann <gerd@gnu.org>
1494
1495 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
1496 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
1497
1498 1999-08-30 Gerd Moellmann <gerd@gnu.org>
1499
1500 * fns.c (QCweakness): Replaces QCweak.
1501 (Fmake_hash_table): Ditto.
1502 (Fmakehash): Ditto.
1503 (syms_of_fns): Ditto.
1504
1505 1999-08-29 Richard Stallman <rms@gnu.org>
1506
1507 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
1508
1509 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
1510
1511 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
1512 Add support for nested comments.
1513
1514 * syntax.c (lisp_parse_state, back_comment, Fmodify_syntax_entry)
1515 (Fforward_comment, scan_lists, scan_sexps_forward)
1516 (Fparse_partial_sexp): Add support for nested comments.
1517 (forw_comment): New subroutine used in them.
1518
1519 1999-08-28 Ken Raeburn <raeburn@gnu.org>
1520
1521 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
1522 names of structure elements if HIDE_LISP_IMPLEMENTATION is
1523 defined, to help detect code that uses knowledge of the Lisp
1524 internals that it shouldn't have.
1525 (XFLOAT_DATA): New macro.
1526
1527 1999-08-25 Gerd Moellmann <gerd@gnu.org>
1528
1529 * syntax.c (Fforward_word): If in a mini-buffer and moving
1530 backwards, stop in front of the prompt to prevent accidentially
1531 moving into the read-only prompt.
1532
1533 * window.c (Frecenter): Clear frame if called with nil or no arg.
1534
1535 * xdisp.c (resize_mini_window): Don't resize if
1536 Vmax_mini_window_height is nil. Otherwise, use a default if
1537 Vmax_mini_window_height is not ot a number.
1538 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
1539
1540 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
1541
1542 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
1543 * m/iris4d.h: Use unexelf for IRIX 5.*.
1544 * m/iris5d.h: Use unexelf for IRIX 6.*.
1545 * unexsgi.c: Deleted.
1546
1547 * unexelf.c: Auto-detect .sbss section.
1548 (round_up): Make it static.
1549 (unexec): Declare alignment as Elf Word. Skip ``Program
1550 segment above .bss'' test on MIPS without .sbss.
1551 Copy sections .got and .sdata1 sections. Adjust offsets in
1552 sections .sdata, .lit4, .lit8, .got and .sdata1.
1553
1554 1999-08-25 Gerd Moellmann <gerd@gnu.org>
1555
1556 * xdisp.c (try_window_id): Remove typo.
1557
1558 1999-08-24 Gerd Moellmann <gerd@gnu.org>
1559
1560 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
1561 unchanged text at the bottom when computing the cursor position.
1562 (message3_nolog): Raise frame only if minibuffer_auto_raise is
1563 set.
1564
1565 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
1566
1567 1999-08-24 Gerd Moellmann <gerd@gnu.org>
1568
1569 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
1570 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
1571 (syms_of_xfaces): Ditto.
1572
1573 * window.c (Fset_window_point): Reset Vresize_mini_config.
1574 (Fset_window_start): Ditto.
1575 (set_window_buffer): Ditto.
1576
1577 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
1578
1579 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
1580 before calling try_window.
1581 (echo_area_display): If height has changed, update other windows.
1582 (resize_mini_frame, resize_mini_initial_height): New.
1583 (resize_mini_window): Save/restore window configuration
1584 differently.
1585
1586 * lisp.h (Vresize_mini_config, resize_mini_frame,
1587 resize_mini_initial_height): Add extern declarations.
1588
1589 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
1590 CANON_X_UNIT.
1591
1592 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
1593 being redefined in jconfig.h.
1594
1595 1999-08-23 Ken'ichi Handa <handa@gnu.org>
1596
1597 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
1598
1599 1999-08-22 Gerd Moellmann <gerd@gnu.org>
1600
1601 * alloc.c (mark_glyph_matrix): Mark strings only.
1602
1603 * xdisp.c (redisplay_internal): Clear garbaged frames after
1604 resizing mini-window.
1605
1606 1999-08-22 Gerd Moellmann <gerd@gnu.org>
1607
1608 * xdisp.c (unwind_with_echo_area_buffer): Use
1609 set_buffer_internal_1 instead of set_buffer_internal.
1610 (with_echo_area_buffer): Ditto.
1611
1612 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
1613 only if buffer is displayed somewhere.
1614
1615 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
1616
1617 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
1618 (gap_right): Ditto.
1619 (modify_region): Ditto.
1620
1621 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
1622
1623 * xdisp.c (Vresize_mini_config): New.
1624 (resize_mini_window): Use it to save restore original window
1625 configuration
1626 (syms_of_xdisp): Initialize it.
1627
1628 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
1629
1630 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
1631
1632 * xdisp.c (reconsider_clip_changes): New.
1633 (redisplay_internal, redisplay_window): Call it.
1634 (mark_window_display_accurate, redisplay_internal): Set current
1635 matrix' buffer, begv, zv.
1636
1637 * window.c (Fset_window_hscroll): Set
1638 prevent_redisplay_optimizations_p instead of clip_changed.
1639 (Fset_window_hscroll): Ditto.
1640 (temp_output_buffer_show): Ditto.
1641 (Fset_window_vscroll): Ditto.
1642
1643 * buffer.c (reset_buffer): Set clip_changed to 0 and
1644 prevent_redisplay_optimizations_p to 1.
1645 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
1646
1647 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
1648 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
1649 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
1650 END_UNCHANGED): New.
1651 (struct buffer_text): Add beg_unchanged, end_unchanged,
1652 unchanged_modified, overlay_unchanged_modified.
1653
1654 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
1655 overlay_unchanged_modified): Removed.
1656 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
1657 (unwind_with_echo_area_buffer): Don't restore them.
1658 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
1659 (text_outside_line_unchanged_p, redisplay_internal,
1660 try_scrolling): Use/set buffer-specific beg/end_unchanged.
1661 (redisplay_window): Let try_window_id be called if more than one
1662 window is displayed. Use/set buffer-specific beg/end_unchanged.
1663 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
1664 try_window_id):
1665 Use buffer-specific beg/end_unchanged.
1666
1667 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
1668 overlay_unchanged_modified): Remove extern declarations.
1669
1670 * keyboard.c (command_loop_1): Set beg/end_unchanged per
1671 buffer.
1672
1673 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
1674 (gap_right): Ditto.
1675 (adjust_after_replace): Likewise.
1676 (replace_range, del_range_2, modify_region): Likewise.
1677
1678 * dispnew.c (direct_output_for_insert): Set beg_unchanged
1679 and unchanged_modified per buffer.
1680
1681 * coding.c (code_convert_region): Compute beg/end_unchanged per
1682 buffer.
1683
1684 * buffer.c (modify_overlay): Compute beg/end_unchanged
1685 per buffer.
1686 (Fget_buffer_create): Initialize new members of the buffer
1687 structure.
1688
1689 1999-08-22 Gerd Moellmann <gerd@gnu.org>
1690
1691 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
1692
1693 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
1694 (Qkey_value_weak): Removed.
1695 (make_hash_table): Use nil, `key', `value', t for weakness.
1696 (Fmake_hash_table): Ditto.
1697 (copy_hash_table): New.
1698 (Fcopy_hash_table): New.
1699
1700 1999-08-22 Gerd Moellmann <gerd@gnu.org>
1701
1702 * xfns.c: Call change_frame_size and do_pending_window_change with
1703 new parameter.
1704
1705 1999-08-21 Gerd Moellmann <gerd@gnu.org>
1706
1707 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
1708 well.
1709 (redisplay_internal): Resize mini-window only if text might
1710 have changed.
1711 (display_echo_area): Reset displayed echo_area_buffer to nil
1712 at the end if we're displaying a nil message.
1713
1714 1999-08-21 Gerd Moellmann <gerd@gnu.org>
1715
1716 * fns.c (hash_lookup): Test with EQ before calling key comparion
1717 function.
1718 (hash_remove): Ditto.
1719 (cmpfn_eq): Removed.
1720 (cmpfn_eql): Don't test with EQ.
1721 (cmpfn_equal): Ditto.
1722 (make_hash_table): Set comparison function for `eq' to null.
1723
1724 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
1725 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
1726
1727 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
1728
1729 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
1730 xterm.c: Call change_frame_size and do_pending_window_change with
1731 new parameter.
1732
1733 * dispnew.c (do_pending_window_change): Add parameter `safe'.
1734 (change_frame_size): Ditto.
1735 (change_frame_size_1): Ditto. Deley size changes if redisplaying
1736 and not called from a safe place.
1737 (window_change_signal): Call change_frame_size with new parameter.
1738
1739 * dispextern.h: Change prototypes for do_pending_window_change
1740 and change_frame_size.
1741
1742 * xfaces.c (face_at_buffer_position): Don't xassert that
1743 window's buffers equals current_buffer; this is not the
1744 case during echo area display.
1745
1746 1999-08-21 Gerd Moellmann <gerd@gnu.org>
1747
1748 * xdisp.c, minibuf.c: Remove conditional compilation on
1749 NO_PROMPT_IN_BUFFER.
1750
1751 * minibuf.c (Fminibuffer_prompt_end): New.
1752 (syms_of_minibuf): Defsubr it. Remove
1753 minibuffer-prompt-in-buffer.
1754 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
1755 Extend documentation.
1756
1757 * xdisp.c (get_next_display_element): Display \r as ^M.
1758
1759 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
1760 under scroll bar widget.
1761
1762 1999-08-21 Gerd Moellmann <gerd@gnu.org>
1763
1764 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
1765 anywhere.
1766 (unwind_redisplay): Return nil.
1767 (clear_garbaged_frames): New.
1768 (redisplay_internal): Use it.
1769 (echo_area_display): Ditto.
1770 (resize_mini_window): Mew.
1771 (display_echo_area_1): Use it to resize echo area window.
1772 (redisplay_internal): Use it to resize active mini-window.
1773
1774 * dispextern.h, lisp.h: Add function prototypes.
1775
1776 * dispnew.c (set_window_cursor_after_update): Do the
1777 cursor_in_echo_area case only for a mini-window showing
1778 a message. Don't let cursor end up after the end of a row.
1779
1780 * xdisp.c (echo_area_glyphs, echo_area_message,
1781 echo_area_glyphs_length, previous_echo_glyphs,
1782 previous_echo_area_message, previous_echo_area_glyphs_length):
1783 Removed.
1784 (Vmessage_stack, echo_area_buffer, echo_buffer,
1785 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
1786 (message2_nolog): Use set_message and clear_message.
1787 (message3): Rename parameter len to nbytes to make clear what
1788 it is.
1789 (message3_nolog): Ditto. Use set_message and clear_message.
1790 (update_echo_area): Rewritten.
1791 (with_echo_area_buffer): New.
1792 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
1793 (setup_echo_area_for_printing): New.
1794 (display_echo_area, display_echo_area_1): New.
1795
1796 (current_message, current_message_1): New.
1797 (push_message, restore_message, pop_message,
1798 check_message_stack): New.
1799 (truncate_echo_area): Rewritten.
1800 (truncate_message_1): New.
1801 (set_message, set_message_1, clear_message): New.
1802 (echo_area_display): Rewritten.
1803 (redisplay_internal): Check for needed echo area update
1804 differently.
1805 (redisplay_preserve_echo_area): Rewritten.
1806 (redisplay_window): Check for mini-window displaying echo area
1807 message differently.
1808 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
1809 Remove initialzation of removed variables.
1810 (init_xdisp): Remove references to removed variables.
1811
1812 * dispnew.c (adjust_frame_message_buffer): Removed references
1813 to echo_area_glyphs and previous_echo_glyphs.
1814 (direct_output_for_insert): Check for mini-window displaying
1815 echo area message differently.
1816 (update_frame): Likewise.
1817 (set_window_cursor_after_update): Likewise. In echo area,
1818 don't try to set cursor on rows that aren't enabled.
1819
1820 * print.c: Remove conditional compilation on `standalone'.
1821 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
1822 glyph_to_str_cpy): Remove that section because GLYPHs are no
1823 longer used in that way.
1824 (PRINTDECLARE): Add multibyte.
1825 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
1826 (printbufidx): Removed.
1827 (printchar, strout): Rewritten.
1828
1829 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
1830 a struct kboard.
1831 (echo_kboard): New.
1832 (echo_now): Set echo_kboard to the current kboard.
1833 (cancel_echoing): Set echo_kboard to null.
1834 (cmd_error_internal): Use clear_message, remove references
1835 to echo_area_glyphs and echo_area_message.
1836 (command_loop_1): Check for echo area messages differently.
1837 (read_char): Likewise.
1838 (record_menu_key): Use clear_message.
1839 (Fexecute_extended_command): Check for echo area messages
1840 differently. Use push_message, restore_message, pop_message.
1841
1842 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
1843 pop_message.
1844
1845 * emacs.c (shut_down_emacs): Call check_message_stack.
1846
1847 * lisp.h: Add function prototypes and extern declarations for
1848 new functions and variables.
1849
1850 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
1851 pop_message.
1852
1853 * minibuf.c (read_minibuf): Use clear_message instead of
1854 setting echo_area_glyphs.
1855 (Fminibuffer_completion_help): Ditto.
1856
1857 * editfns.c (Fcurrent_message): Rewritten.
1858
1859 * frame.c, window.h: Remove references to echo_area_glyphs
1860 and previous_echo_glyphs.
1861
1862 1999-08-21 Dave Love <fx@gnu.org>
1863
1864 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
1865 * aix4-1.h: Likewise.
1866
1867 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
1868
1869 1999-08-20 Gerd Moellmann <gerd@gnu.org>
1870
1871 * xfns.c: Remove tiff34 prefix from include.
1872
1873 1999-08-20 Dave Love <fx@gnu.org>
1874
1875 * cm.c: Revert previous change.
1876
1877 1999-08-19 Gerd Moellmann <gerd@gnu.org>
1878
1879 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
1880 under scroll bar with width FRAME_SCROLL_BAR_COLS.
1881
1882 1999-08-18 Dave Love <fx@gnu.org>
1883
1884 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
1885 stdlib.h.
1886
1887 * doprnt.c: Use stdlib.h, unistd.h.
1888
1889 * config.in: Add HAVE_TERMCAP_H.
1890
1891 * cm.c: Use termcap.h.
1892
1893 1999-08-18 Gerd Moellmann <gerd@gnu.org>
1894
1895 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
1896 FRAME_X_WINDOW (f) being null at the of the function. If widgets
1897 cannot be created we will already have crashed earlier. Call
1898 lw_set_main_areas with a null menu-bar widget, so that we have
1899 a reasonable default.
1900 (Fx_create_frame): Rearranged so that Lisp errors during frame
1901 initialization cause less damage. Initialize menu bar widget
1902 here.
1903
1904 1999-08-18 Gerd Moellmann <gerd@gnu.org>
1905
1906 * dispnew.c (update_frame_line): Fix previous change. If writing
1907 whole line clear to end of frame.
1908
1909 1999-08-17 Gerd Moellmann <gerd@gnu.org>
1910
1911 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
1912 and `right-bitmap-area' if position is in the bitmap areas. This
1913 avoids an error when clicking on the bitmap areas. Instead, they
1914 are currently treated like clicks inside the window.
1915 (coordinates_in_window): Return 5 and 6 for bitmap areas.
1916 (Qleft_bitmap_area, Qright_bitmap_area): New.
1917 (syms_of_window): Initialize new symbols.
1918
1919 * dispnew.c (update_frame_line): If writing whole line,
1920 don't write trailing spaces unless we must.
1921
1922 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
1923 (redisplay_internal): Register unwind_redisplay with
1924 register_unwind_protect.
1925 (try_window_reusing_current_matrix): If new start > old start,
1926 give up if start pos of first reusable row is not equal to new
1927 start.
1928
1929 * eval.c (Fsignal): Don't reset redisplaying_p here.
1930
1931 * xterm.c (expose_area): If row extends face to end of line,
1932 write the whole line.
1933
1934 1999-08-16 Gerd Moellmann <gerd@gnu.org>
1935
1936 * dispextern.h (struct it): Remove member
1937 show_trailing_whitespace_p.
1938
1939 * dispnew.c (direct_output_for_insert): Use
1940 Vshow_trailing_whitespace instead of former iterator member
1941 show_trailing_whitespace_p.
1942 (direct_output_forward_char): Don't do it if hightlighting
1943 trailing whitespace.
1944
1945 * xdisp.c (Qshow_trailing_whitespace): Removed.
1946 (Vshow_trailing_whitespace): Added.
1947 (init_iterator): Remove initialization code for
1948 show_trailing_whitespace_p.
1949 (redisplay_internal): Don't try cursor movement in this_line
1950 if showing trailing whitespace.
1951 (redisplay_window): Likewise for cursor movement in current
1952 matrix and try_window_id.
1953 (try_window_reusing_current_matrix): Likewise.
1954 (trailing_whitespace_p): Return 0 if trailing whitespace is
1955 in front of point.
1956 (display_line): Use Vshow_trailing_whitespace instead of
1957 former iterator member show_trailing_whitespace_p.
1958 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
1959
1960 1999-08-16 Gerd Moellmann <gerd@gnu.org>
1961
1962 * window.c (Fpos_visible_in_window_p): Rewritten.
1963
1964 * xfaces.c (add_to_log): Renamed from display_message.
1965 Don't display messages in echo area.
1966
1967 * xterm.c (x_draw_glyph_string_box): Use the background width
1968 of the glyph string for the width of the box.
1969
1970 1999-08-16 Stefan Monnier <monnier@cs.yale.edu>
1971
1972 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
1973
1974 1999-08-16 Geoff Voelker <voelker@cs.washington.edu>
1975
1976 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
1977 background first, and then set other parameters that might
1978 depend upon their new values.
1979
1980 1999-08-15 Gerd Moellmann <gerd@gnu.org>
1981
1982 * xfaces.c (Vfont_list_limit): New.
1983 (syms_of_xfaces): Make it a user-variable.
1984 (DEFAULT_FONT_LIST_LIMIT): New.
1985 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
1986 maximally that number of fonts, otherwise use
1987 DEFAULT_FONT_LIST_LIMIT.
1988 (Fx_font_family_list): Bind `font-list-limit' to higher values
1989 until we have all fonts.
1990 (Fxfont_list): Additionally return the full names of fonts and
1991 their registry and encoding.
1992
1993 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1994 Simplify clearing "under" scroll bar.
1995
1996 * window.c (Qfixed_window_size): New.
1997 (syms_of_window): Initialiaze it.
1998 (check_all_windows): Add return type void.
1999 (window_fixed_size_p): New. Return non-zero if window
2000 is fixed-size.
2001 (window_min_size_1): New.
2002 (window_min_size): Handle fixed-size windows.
2003 (size_window): New. Rewritten combination of set_window_height and
2004 set_window_width that handles fixed-size windows.
2005 (set_window_height): Call it.
2006 (set_window_width): Call it.
2007 (Fsplit_window): Give an error on attempt to split a fixed-size
2008 window.
2009 (change_window_height): Partly rewritten to handle fixed-size
2010 windows.
2011
2012 1999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
2013
2014 * process.c (Fopen_network_stream): Fix previous change.
2015
2016 1999-08-13 Karl Heuer <kwzh@gnu.org>
2017
2018 * xdisp.c (line_number_display_limit_width): New var.
2019 (decode_mode_spec): Use it instead of hardcoded value.
2020 (syms_of_xdisp): Defvar it.
2021
2022 1999-08-13 Richard M. Stallman <rms@gnu.org>
2023
2024 * eval.c (run_hook_list_with_args): Gcpro `globals'.
2025 (run_hook_with_args): Likewise.
2026
2027 * window.h (struct window): New field too_small_ok.
2028
2029 * window.c (set_window_height, set_window_width):
2030 If window starts out "too small", set its too_small_ok flag.
2031 If window's too_small_ok flag is set, don't delete it
2032 unless it is so small it would cause a crash.
2033
2034 1999-08-13 Gerd Moellmann <gerd@gnu.org>
2035
2036 * window.c (MINSIZE): Removed.
2037 (window_min_size): New.
2038 (set_window_height): Use window_min_size.
2039 (change_window_height): Ditto.
2040
2041 1999-08-12 Gerd Moellmann <gerd@gnu.org>
2042
2043 * indent.c (vmotion): Don't add in mini-buffer prompt width
2044 if prompts are inserted into mini-buffer.
2045
2046 1999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
2047
2048 * config.in: Add HAVE_GETADDRINFO.
2049 * process.c (Fopen_network_stream): Use getaddrinfo.
2050
2051 1999-08-11 Gerd Moellmann <gerd@gnu.org>
2052
2053 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
2054 glyphs to -1.
2055
2056 * xdisp.c (face_before_or_after_it_pos): If position after
2057 or before iterator's current position in the buffer is out
2058 of bounds, return the iterator's original face id.
2059
2060 * dispnew.c (mirror_make_current): If desired row isn't enabled,
2061 just swap glyphs pointers between current and desired row.
2062 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
2063 desired matrix method string to current matrix.
2064
2065 1999-08-11 Kenichi Handa <handa@etl.go.jp>
2066
2067 * lisp.h (CHAR_MODIFIER_MASK): New macro.
2068
2069 * lread.c (read_escape): For Control modifier, pay attention to
2070 multibyte character.
2071 (read1): Likewise. Singal error or a multibyte character which
2072 has a modifer bit. Check validity of Shift modifer.
2073
2074 * charset.c (non_ascii_char_to_string): Handle modifier bits as
2075 the same as Lisp reader.
2076
2077 1999-08-10 Richard M. Stallman <rms@gnu.org>
2078
2079 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
2080
2081 1999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
2082
2083 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
2084
2085 1999-08-10 Eli Zaretskii <eliz@gnu.org>
2086
2087 * msdos.c (IT_set_face): Abort if the default face is not realized
2088 and cached.
2089 (IT_write_glyphs): Reset the screen face to the default face
2090 before writing glyphs.
2091
2092 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
2093 colors from the frame here.
2094 (realize_tty_face) [MSDOS]: Do it here. Update the face
2095 attributes with the actual name of the color taken from the
2096 frame.
2097
2098 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
2099 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
2100
2101 * frame.c (Fframe_parameters): Swap foreground and background
2102 colors returned in frame parameters if the frame has reverse in
2103 its parameter alist.
2104 (Fmake_terminal_frame): Make a unique copy of face_alist for
2105 each frame.
2106
2107 1999-08-07 Richard Stallman <rms@gnu.org>
2108
2109 * buffer.c (Fprevious_overlay_change): Just return
2110 the answer obtained from overlays_at.
2111
2112 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
2113 Use XpmCloseness and attrs.closeness instead.
2114
2115 1999-08-06 Richard Stallman <rms@gnu.org>
2116
2117 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
2118
2119 1999-08-06 Geoff Voelker <voelker@cs.washington.edu>
2120
2121 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
2122 Ffile_attributes_lessp): New functions.
2123 (Fdirectory_files): Use directory_files_internal.
2124 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
2125 Ffile_attributes_lessp.
2126
2127 * w32.c (stat): Check for directory ending in separator when
2128 doing readdir fast path.
2129
2130 * w32fns.c (x_set_icon_type): Support setting frame icons.
2131 * w32term.c (x_bitmap_icon): New function.
2132 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
2133
2134 1999-08-06 Gerd Moellmann <gerd@gnu.org>
2135
2136 * xdisp.c (set_iterator_to_next): After delivering a character
2137 from a display vector, restore face and charset to what they were
2138 before the display vector was processed.
2139
2140 1999-08-06 Gerd Moellmann <gerd@gnu.org>
2141
2142 * xdisp.c (reseat_at_next_visible_line_start): New parameter
2143 on_newline_p.
2144 (set_iterator_to_next): After delivering last char
2145 from display vector, reseat on next visible line start if
2146 dpvec_char_len < 0.
2147 (next_element_from_buffer): Set dpvec_char_len to -1 for
2148 selective display.
2149
2150 1999-08-06 Gerd Moellmann <gerd@gnu.org>
2151
2152 * xdisp.c (compute_line_metrics): If first line's physical ascent
2153 is larger than its logical ascent, use the physical ascent, and
2154 make the row taller. Set row's overlapping_p flag.
2155
2156 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
2157 (direct_output_for_insert): Ditto.
2158
2159 * dispextern.h (struct glyph_row): Add overlapping_p.
2160
2161 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
2162
2163 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
2164 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
2165
2166 * dispnew.c (direct_output_for_insert): Don't use this method if
2167 row is overlapped by others.
2168 (update_text_area): Write full line if current line is overlapped.
2169 (redraw_overlapped_rows): New.
2170 (update_window): Call it.
2171 (redraw_overlapping_rows): New.
2172 (update_window): Call it.
2173 (scrolling_window): Make sure overlapped_p flag in current rows is
2174 unchanged.
2175 (row_equal_p): Take rows overlapped_p flag into account.
2176
2177 * dispextern.h (struct glyph_row): Add flag overlapped_p.
2178
2179 * xterm.c (x_fix_overlapping_area): New.
2180 (x_redisplay_interface): Add x_fix_overlapping_area.
2181
2182 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
2183
2184 1999-08-06 Gerd Moellmann <gerd@gnu.org>
2185
2186 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
2187 (struct glyph_string): Add member for_overlaps_p.
2188 (x_get_glyph_string_clip_rect): If glyph string draws foreground
2189 of overlapping rows, clip to window bottom.
2190 (x_fill_glyph_string): Add parameter overlaps_p.
2191 (x_fill_composite_glyph_string): Ditto.
2192 (BUILD_GLYPH_STRINGS): Ditto.
2193 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
2194 (x_draw_glyph_string): Don't draw anything but the foreground
2195 if glyph string draws row overlaps.
2196
2197 * dispnew.c (direct_output_for_insert): Don't use this
2198 optimization for rows that overlap others.
2199 (update_window_line): Return non-zero if display has changed.
2200 (update_text_area): Ditto.
2201 (update_window): Record if display has been changed.
2202
2203 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
2204
2205 * dispextern.h (struct redisplay_interface): Add
2206 fix_overlapping_area.
2207
2208 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
2209
2210 * dispextern.h (struct glyph): Add overlaps_vertically_p.
2211
2212 * xterm.c (x_produce_image_glyph): Compute iterator's physical
2213 ascent and descent.
2214 (x_produce_stretch_glyph): Ditto.
2215 (x_produce_glyphs): Ditto.
2216
2217 * xdisp.c (init_iterator): Reset physical line height info
2218 after producing special glyphs.
2219 (display_toolbar_line): Set physical line height info.
2220 (compute_line_metrics): Ditto.
2221 (display_line): Ditto.
2222 (display_string): Ditto.
2223
2224 * term.c (produce_glyphs): Set iterator's physical height
2225 information.
2226
2227 * dispnew.c (blank_row): Compute glyph row's physical height.
2228 (row_equal_p): Take physical row heights into account.
2229 (direct_output_for_insert): Ditto.
2230 (update_text_area): Ditto.
2231
2232 * dispextern.h (struct glyph_row): Add phys_ascent and
2233 phys_height.
2234 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
2235 max_phys_descent.
2236
2237 1999-08-04 Stefan Monnier <monnier@cs.yale.edu>
2238
2239 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
2240 Fswitch_to_buffer.
2241 (no_switch_buffer): New function.
2242 (Fswitch_to_buffer): Call them. Don't get confused
2243 by "same-window" buffers in a dedicated frame.
2244
2245 * window.c (display-buffer): Don't get confused
2246 by "same-window" buffers in a dedicated frame.
2247
2248 1999-08-04 Andreas Schwab <schwab@gnu.org>
2249
2250 * insdel.c (insert_from_string_1): Check gap size against number
2251 of outgoing bytes, not incoming bytes.
2252
2253 1999-08-03 Tom Breton <tob@world.std.com>
2254
2255 * lread.c (read1): Added circular reading code to #N=.
2256 (SUBSTITUTE): New macro.
2257 (seen_list): New variable.
2258 (substitute_object_in_subtree): New function.
2259 (substitute_object_recurse): New function.
2260 (substitute_in_interval): New function.
2261
2262 1999-08-02 Eli Zaretskii <eliz@gnu.org>
2263
2264 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
2265
2266 * frame.c (make_terminal_frame): Don't call init_frame_faces if
2267 noninteractive, for termcap frames as well.
2268
2269 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
2270 frames.
2271
2272 1999-08-01 Richard Stallman <rms@gnu.org>
2273
2274 * fns.c (internal_equal): Correct overlay comparison.
2275
2276 1999-07-31 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2277
2278 * xfns.c (x_set_internal_border_width):
2279 Call do_pending_window_change. Don't block input, don't call XFlush.
2280 (x_set_vertical_scroll_bars): Call do_pending_window_change.
2281 (x_set_scroll_bar_width, x_set_font): Likewise.
2282
2283 * frame.c (Fset_frame_height): Call do_pending_window_change.
2284 (Fset_frame_width, Fset_frame_size): Likewise.
2285
2286 * xterm.c (x_set_window_size): When calling change_frame_size,
2287 specify 1 for DELAY.
2288
2289 * widget.c (EmacsFrameSetCharSize): Don't call
2290 do_pending_window_change here.
2291
2292 1999-07-30 Dave Love <fx@gnu.org>
2293
2294 * config.in: Add HAVE_STDLIB_H.
2295
2296 1999-07-30 Richard M. Stallman <rms@gnu.org>
2297
2298 * process.c (create_process): Detect failure of `pipe'.
2299
2300 1999-07-30 Keisuke Nishida <kei@psn.net>
2301
2302 * alloc.c (allocate_vectorlike): Add missing increment.
2303
2304 * data.c (Fdefalias): Call Ffset instead of duplicating code.
2305
2306 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
2307 before calling indirect_function.
2308
2309 1999-07-30 Eli Zaretskii <eliz@gnu.org>
2310
2311 * dispextern.h (load_color, lookup_derived_face): Declare
2312 prototypes.
2313
2314 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
2315 it will be done later.
2316
2317 * frame.c (make_terminal_frame) [MSDOS]: Don't call
2318 init_frame_faces if non-interactive.
2319 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
2320 array with a call to msdos_stdcolor_name. The font name is now
2321 "ms-dos", consistent with realize_tty_face.
2322
2323 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
2324 MSDOS frame.
2325
2326 * window.c (Fset_window_configuration) [MSDOS]: Don't call
2327 x_set_toolbar_lines.
2328
2329 * xfaces.c (load_color): Remove static from definition and remove
2330 prototype.
2331 [MSDOS]: Add a DOS-specific version of load_color.
2332 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
2333 (lookup_derived_face): New function.
2334 (realize_default_face): Support MSDOS frames.
2335 [MSDOS]: If fore/background colors are unspecified, inherit them
2336 from the frame.
2337 (realize_face): Support MSDOS frames.
2338 (realize_tty_face): Support MSDOS frames.
2339 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
2340 load_color to try to find a suitable approximation. If the face
2341 is inverse-video, swap the foreground and background colors.
2342
2343 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
2344 functions.
2345
2346 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
2347
2348 * msdos.h: Remove redundant declarations (most of them are now in
2349 dispextern.h).
2350
2351 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
2352 Use default frame colors if the face doesn't specify them; invert
2353 the colors if highlight is ON.
2354 (IT_write_glyphs): Rewritten for the new redisplay engine.
2355 (IT_change_line_highlight): Add (unused) parameter Y, since that's
2356 how the hook is called by term.c.
2357 (IT_copy_glyphs): New function, copies an area of the display in
2358 video RAM.
2359 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
2360 redisplay now calls it even if char_ins_del_ok is zero.
2361 (IT_set_frame_parameters): Prototype changed. Calls the new
2362 load_color. Puts the new fore/background colors into the default
2363 face on current frame.
2364 (IT_menu_display): Rewritten to handle the new struct glyph
2365 instead of a char array.
2366 (XMenuActivate): Call lookup_derived_face to create and use
2367 special faces for the pop-up and drop-down menus.
2368
2369 1999-07-29 Gerd Moellmann <gerd@gnu.org>
2370
2371 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
2372 XawScrollbarSetThumb if thumb parameters haven't changed because
2373 that function apparently isn't optimized for this case.
2374
2375 1999-07-29 Eli Zaretskii <eliz@gnu.org>
2376
2377 * msdos.c (getdefdir): Don't return failure indication when
2378 _fixpath sets errno to ENOSYS.
2379
2380 1999-07-28 Gerd Moellmann <gerd@gnu.org>
2381
2382 * xdisp.c (string_char_and_length): New. Use it everywhere
2383 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
2384
2385 1999-07-28 Kenichi Handa <handa@etl.go.jp>
2386
2387 * fns.c (count_combining): New function.
2388 (struct textprop_rec): New structure.
2389 (concat): Copy text properties correctly when byte combining
2390 occurs.
2391
2392 1999-07-28 Gerd Moellmann <gerd@gnu.org>
2393
2394 * xterm.c (x_setup_relief_color): Don't try smart color allocation
2395 if display is mono.
2396 (x_draw_row_bitmaps): If face has stipple, don't switch
2397 to foreground color for clearing areas, and set the fill style.
2398
2399 * xfaces.c (load_face_colors): Load background color if setting
2400 stipple, too.
2401 (prepare_face_for_display): Use FillOpaqueStippled instead of
2402 FillStippled.
2403
2404 1999-07-26 Ken'ichi Handa <handa@gnu.org>
2405
2406 * xterm.c (x_find_ccl_program): Add casting.
2407
2408 * w32fns.c (w32_find_ccl_program): Add casting.
2409
2410 1999-07-27 Gerd Moellmann <gerd@gnu.org>
2411
2412 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
2413
2414 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
2415 because this will try to access a nonexisting widget.
2416
2417 1999-07-26 Markus Rost <rost@gnu.org>
2418
2419 * fns.c (Fgethash): Fix order of variables (patch by gerd).
2420 (Fputhash): Ditto.
2421 (Fremhash): Ditto.
2422
2423 1999-07-26 Gerd Moellmann <gerd@gnu.org>
2424
2425 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
2426 value to frame width and height.
2427
2428 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
2429 into account for full-width windows. Don't add scroll bar width
2430 to width of clip rect.
2431 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
2432 (x_set_glyph_string_background_width): Add 1 to background width.
2433 (x_draw_glyphs): Take internal border into account for full-width
2434 lines.
2435
2436 1999-07-26 Richard M. Stallman <rms@gnu.org>
2437
2438 * xfns.c (x_set_mouse_color): Always unload the old color.
2439 Don't allow nil as color value.
2440 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
2441 Always unload the old color.
2442
2443 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
2444
2445 1999-07-26 Karl Heuer <kwzh@gnu.org>
2446
2447 * fns.c (Fy_or_n_p): Doc fix.
2448
2449 1999-07-26 Kenichi Handa <handa@etl.go.jp>
2450
2451 * ccl.h (setup_ccl_program): The type is changed to `int'.
2452
2453 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
2454 stored in the following CCL code. Adjusted for the change of
2455 Vccl_program_table.
2456 (resolve_symbol_ccl_program): Adjusted for the new style of
2457 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
2458 is resolving failed.
2459 (ccl_get_compiled_code): New function.
2460 (setup_ccl_program): Function type changed from `void' to `int'.
2461 Resolve symbols in CCL_PROG.
2462 (Fccl_program_p): New function.
2463 (Fccl_execute): Get compiled CCL code by just calling
2464 setup_ccl_program.
2465 (Fccl_execute_on_string): Likewise.
2466 (Fregister_ccl_program): Adjusted for the change of
2467 Vccl_program_table.
2468
2469 * coding.c (setup_coding_system): Get compiled CCL code by just
2470 calling setup_ccl_program.
2471
2472 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
2473 calling setup_ccl_program.
2474
2475 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
2476 calling setup_ccl_program.
2477
2478 1999-07-23 Gerd Moellmann <gerd@gnu.org>
2479
2480 * xfaces.c (frame_update_line_height): Just use the height of the
2481 frame's fontset or font, instead of taking face fonts into
2482 account.
2483
2484 * xdisp.c (get_next_display_element): Display DEL as `^?'.
2485
2486 1999-07-23 Richard M. Stallman <rms@gnu.org>
2487
2488 * window.c (Fsplit_window): For default size, round up for left window.
2489
2490 1999-07-21 Joe Ramey <ramey@ti.com>
2491
2492 * filelock.c (lock_if_free): Return -1 if check_lock_owner
2493 has returned -1 (lockfile exists but is not a symlink?).
2494
2495 1999-07-20 Gerd Moellmann <gerd@gnu.org>
2496
2497 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
2498 because of a change in cursor_gc made in 20.4.
2499
2500 1999-07-19 Gerd Moellmann <gerd@gnu.org>
2501
2502 * xterm.c (x_calc_absolute_position): Subtract menu bar height
2503 for YNegative, if using X toolkit.
2504
2505 * xfns.c (x_real_positions): Don't subtract window borders
2506 from positions returned.
2507
2508 1999-07-17 Gerd Moellmann <gerd@gnu.org>
2509
2510 * xrdb.c (x_load_resources): Set double-click time defaults
2511 for Motif list boxes from double-click-time.
2512
2513 * fns.c (Vhash_table_tests): Remvoed.
2514 (Qhash_table_test): New.
2515 (syms_of_fns): Initialize Qhash_table_test.
2516 (Fmake_hash_table): Look up user-defined tests in symbol prop
2517 `hash-table-test'.
2518 (Fdefine_hash_table_test): Store test and hash function as
2519 symbol prop `hash-table-test'.
2520 (make_hash_table): Add parameters user_test and user_hash.
2521
2522 * window.c (set_window_buffer): Set window margins for tty
2523 frames, too.
2524 (Fset_window_margins): Ditto.
2525
2526 * term.c (append_glyph): Use glyph area of iterator instead of
2527 always TEXT_AREA.
2528
2529 * dispnew.c (update_frame_1): Add left margin width to cursor
2530 hpos.
2531 (direct_output_for_insert): Ditto.
2532 (direct_output_forward_char): Ditto.
2533
2534 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
2535
2536 * dispextern.h (struct glyph_matrix): Add top_line_p.
2537
2538 1999-07-16 Gerd Moellmann <gerd@gnu.org>
2539
2540 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
2541 instead.
2542
2543 * fns.c (cmpfn_eq): Add hash code parameters.
2544 (cmpfn_eql): Ditto.
2545 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
2546 (cmpfn_user_defined): Likewise.
2547
2548 1999-07-15 Gerd Moellmann <gerd@gnu.org>
2549
2550 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
2551
2552 * fns.c (maybe_resize_hash_table): Correct computation of
2553 index vector size.
2554 (make_hash_table): Ditto.
2555 (Fmakehash): New.
2556
2557 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
2558
2559 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
2560 (survives_gc_p): Make it externally visible.
2561 (mark_object): Ditto.
2562
2563 * fns.c (remove_hash_entry): Removed.
2564 (sweep_weak_hash_tables): New.
2565
2566 * print.c (print): Print more information about hash tables.
2567
2568 * xfns.c (image_spec_hash): Removed.
2569 (lookup_image): Use sxhash instead of image_spec_hash.
2570 (image_spec_equal_p): Removed.
2571 (lookup_image): Use Fequal instead of image_spec_equal_p.
2572
2573 1999-07-14 Gerd Moellmann <gerd@gnu.org>
2574
2575 * lisp.h (P_): Moved to top of file.
2576
2577 * fns.c (make_hash_table): Set new members.
2578
2579 * alloc.c (mark_object): Mark hash table's user_hash_function.
2580 Mark index vector for weak hash tables.
2581
2582 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
2583 user_hash_function, cmpfn, and hashfn.
2584
2585 * fns.c (build_hash): Removed.
2586 (hash_test): Removed.
2587 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
2588 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
2589
2590 1999-07-13 Gerd Moellmann <gerd@gnu.org>
2591
2592 * alloc.c (survives_gc_p): New.
2593
2594 * print.c (print): Add hash table handling.
2595
2596 * alloc.c (mark_object): Add code to mark hash tables.
2597
2598 * lisp.h (GC_HASH_TABLE_P): New.
2599
2600 * emacs.c (main): Call init_fns.
2601
2602 * fns.c (init_fns): New.
2603
2604 * fns.c: Add hash table implementation.
2605
2606 * lisp.h (PVEC_HASH_TABLE): New.
2607 (struct Lisp_Hash_Table): New.
2608 (XHASH_TABLE): New.
2609 (XSET_HASH_TABLE): New.
2610 (HASH_TABLE_P): New.
2611 (CHECK_HASH_TABLE): New.
2612 (DEFAULT_HASH_SIZE): New.
2613 (DEFAULT_REHASH_THRESHOLD): New.
2614 (DEFAULT_REHASH_SIZE): New.
2615
2616 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
2617 (x_write_glyphs): Compute overwritten cursor using real start
2618 and end positions of display.
2619 (x_insert_glyphs): Ditto.
2620
2621 1999-07-10 Gerd Moellmann <gerd@gnu.org>
2622
2623 * keyboard.c (read_char): Use message3_nolog to show help-echo.
2624
2625 * dispnew.c (blank_row): Add y-position as parameter. Compute
2626 visible height.
2627
2628 * xdisp.c (next_element_from_string): Give padding spaces
2629 a position of -1.
2630
2631 * dispnew.c (adjust_glyph_matrix): Some work to support
2632 marginals areas on tty frames in a future version.
2633 (allocate_matrices_for_frame_redisplay): Ditto.
2634
2635 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
2636 to zero if number of glyphs in the row is <= 1.
2637
2638 1999-07-09 Gerd Moellmann <gerd@gnu.org>
2639
2640 * dispnew.c (buffer_posn_from_coords): Take left marginal area
2641 into account.
2642
2643 * xdisp.c (handle_display_prop): Don't reset area if handing
2644 a property from a string that came from a `display' property.
2645 (handle_single_display_prop): Don't handle recursive `display'
2646 properties.
2647 (handle_single_display_prop): Handle some display property
2648 forms for terminal frames.
2649 (Qimage): Moved here from xfns.c.
2650
2651 * dispextern.h (struct it): New field string_from_display_prop_p.
2652
2653 * xterm.c (x_clip_to_row): Don't let clip_rect include top
2654 line.
2655
2656 1999-07-08 Gerd Moellmann <gerd@gnu.org>
2657
2658 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
2659
2660 * window.c (set_window_buffer): Set window's vscroll to zero.
2661
2662 * xdisp.c (QCwhen): New.
2663 (display_prop_end): New.
2664 (handle_single_display_prop): Use it.
2665 (debug_method_add): Print buffer name if tracing.
2666 (try_window_reusing_current_matrix): Compute visible height
2667 of reused rows. Fix cursor position calculation in case of
2668 top-line.
2669
2670 * dispextern.h (struct redisplay_interface): Add parameter
2671 cursor_on_p to update_window_end_hook.
2672
2673 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
2674
2675 1999-07-07 Gerd Moellmann <gerd@gnu.org>
2676
2677 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
2678 doesn't become negative when decrementing it.
2679
2680 * eval.c (Fsignal): Reset redisplaying_p to zero.
2681
2682 * xdisp.c (try_window_reusing_current_matrix): Call hooks
2683 for window update.
2684 (try_window_id): Ditto.
2685
2686 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
2687 (x_scroll_run): Ditto.
2688 (any_help_event_p): New.
2689 (x_initialize): Set it to zero.
2690 (XTread_socket): Clear help echo only if any_help_event_p.
2691
2692 * xdisp.c (init_iterator): Set top_line_p.
2693 (start_display): Use correct initial y if top-line is present.
2694 (make_cursor_line_fully_visible): Bug fixes for top-line.
2695 (try_scrolling): Ditto.
2696 (try_window_reusing_current_matrix): Ditto.
2697
2698 * dispextern.h (struct it): Add top_line_p.
2699
2700 * dispnew.c (shift_glyph_matrix): Move some computations out
2701 of the loop.
2702
2703 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
2704 XFLOATINT.
2705
2706 1999-07-06 Gerd Moellmann <gerd@gnu.org>
2707
2708 * dispnew.c (update_frame_1): When setting cursor in echo area,
2709 skip only over padding spaces at the end.
2710
2711 * xfaces.c (realize_tty_face): Set face's font_name field to
2712 "tty".
2713
2714 * term.c (update_end): Turn cursor on only if selected window's
2715 cursor_off_p flag is not set.
2716
2717 1999-07-05 Gerd Moellmann <gerd@gnu.org>
2718
2719 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
2720 (TS_cursor_normal): Renamed from TS_end_visual_mode.
2721 (TS_cursor_invisible): New.
2722 (term_init): Initialize TS_cursor_invisible.
2723 (tty_hide_cursor): New.
2724 (tty_show_cursor): New.
2725 (update_end): Show tty cursor.
2726 (update_begin): Hide tty cursor to prevent cursor flickering
2727 during redisplays triggered by timers (stealth fontification).
2728
2729 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
2730
2731 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
2732 in scroll bars.
2733 (x_handle_toolbar_click): Set modifier bits.
2734
2735 1999-07-04 Gerd Moellmann <gerd@gnu.org>
2736
2737 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
2738 instead of a pointer to a volatile input_event.
2739 (kbd_buffer_store_event): Remove volatile modifier from
2740 declaration of local variable `sp'.
2741 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
2742 to kbd_fetch_ptr.
2743
2744 1999-07-03 Gerd Moellmann <gerd@gnu.org>
2745
2746 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
2747 only if buffer is modified. Return quickly if changes are
2748 above window start.
2749
2750 1999-07-02 Gerd Moellmann <gerd@gnu.org>
2751
2752 * dispextern.h (HSCROLL_WINDOWS): Removed.
2753
2754 * xdisp.c (mark_window_display_accurate): Don't set
2755 w->region_showing.
2756 (redisplay_internal): Don't call redraw_garbaged_frames.
2757
2758 1999-07-01 Gerd Moellmann <gerd@gnu.org>
2759
2760 * xdisp.c (echo_area_display): Don't display truncation marks
2761 for messages because 20.4 doesn't do it either.
2762 (redisplay_window): Case same window start. Instead of giving
2763 up when cursor is partially visible, make it fully visible.
2764 (mark_window_display_accurate): Some cleanup. Record window's
2765 last cursor information.
2766 (debug_method_add): Improved.
2767 (redisplay_internal): Record last cursor info only if not
2768 consider_all_windows_p.
2769
2770 * dispnew.c (update_window): Update top line after scrolling.
2771 (blank_row): Renamed from make_empty_enabled_row.
2772 (increment_glyph_row_buffer_positions): Increment positions
2773 in buffers, only.
2774
2775 * window.c (Fcoordinates_in_window_p): Add top-line to doc
2776 string.
2777
2778 1999-06-30 Gerd Moellmann <gerd@gnu.org>
2779
2780 * dispnew.c (update_window): Check that updated row is visible.
2781
2782 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
2783 top of window differently.
2784
2785 * xdisp.c (try_window_reusing_current_matrix): Don't do it
2786 if region is showing.
2787
2788 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
2789 avoiding matrix reallocation. Set window_vscroll in matrix.
2790
2791 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
2792
2793 * lwlib-Xm.c: Add function prototypes.
2794
2795 * xdisp.c (debug_method_add): New.
2796 (debug_redisplay_method): Removed.
2797 (try_window_reusing_current_matrix): Handle case where old
2798 window start is the same as new window start.
2799
2800 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
2801 an array instead of a pointer.
2802
2803 * lwlib-Xm.c (xm_update_label): Use val->name to look up
2804 a label string from resources.
2805 (xm_update_label): Add some comments.
2806
2807 * xfns.c (Fx_show_tip): Undo previous change.
2808
2809 * xterm.c (x_append_glyph): Clear glyph->u.val.
2810
2811 * dispextern.h (struct glyph): Increase size of face_id bit-field
2812 for CHAR_GLYPH to 12.
2813
2814 1999-06-29 Gerd Moellmann <gerd@gnu.org>
2815
2816 * xfaces.c (x_charset_registry): Make it externally visible.
2817
2818 1999-06-28 Gerd Moellmann <gerd@gnu.org>
2819
2820 * dispnew.c (update_window): Use mode_line_p flag of rows
2821 instead of WINDOW_WANTS_MODELINE_P.
2822
2823 * xterm.c (clear_mouse_face): Make externally visible.
2824
2825 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
2826
2827 * xterm.c (expose_line): Handle exposure of top-lines.
2828
2829 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
2830 if mouse_face_mouse_frame is null.
2831
2832 * xdisp.c (redisplay_window): If window is echo_area_window,
2833 and update_mode_line is set, update menubar and toolbar.
2834
2835 * dispnew.c (space_glyph): Set its charpos to -1.
2836 (update_frame_1): Ignore trailing padding spaces.
2837
2838 * xdisp.c (next_element_from_c_string): Set position of padding
2839 glyphs to -1.
2840
2841 1999-06-27 Gerd Moellmann <gerd@gnu.org>
2842
2843 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
2844 XQueryColor.
2845
2846 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
2847 (set_cursor_from_row): Skip over glyphs having a null object at
2848 the start of rows.
2849 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
2850 glyphs.
2851 (handle_invisible_prop): Compute next change only when needed.
2852 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
2853 line.
2854
2855 1999-06-26 Gerd Moellmann <gerd@gnu.org>
2856
2857 * xrdb.c (x_load_resources): Don't set resource for double-click
2858 time.
2859
2860 * xdisp.c (try_window_id): Return quickly if all changes are
2861 below the window's current matrix end.
2862
2863 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
2864 parameter.
2865
2866 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
2867 in desired not in current matrix.
2868 (try_window_reusing_current_matrix): Rotate matrices starting
2869 at start_vpos instead of 0.
2870
2871 * xterm.c (expose_window): Use window_text_bottom_y.
2872 (fast_find_position): Ditto.
2873
2874 * xdisp.c (redisplay_window): Use window_text_bottom_y.
2875 (try_window_reusing_current_matrix): Ditto.
2876 (get_last_unchanged_at_beg_row): Ditto.
2877 (init_iterator): Ditto.
2878
2879 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
2880 more row.
2881 (check_matrix_invariants): Use window_text_bottom_y.
2882 (update_window): Ditto.
2883 (scrolling_window): Ditto.
2884
2885 * xdisp.c (window_text_bottom_y): New.
2886
2887 1999-06-25 Gerd Moellmann <gerd@gnu.org>
2888
2889 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
2890 clearing mouse face.
2891 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
2892 event.xcrossing.focus is not set, and focus is in the menu bar,
2893 set focus frame as if event.xcrossing.focus were set.
2894
2895 1999-06-24 Gerd Moellmann <gerd@gnu.org>
2896
2897 * keyboard.c (make_lispy_event): Handle mouse on top lines.
2898 * keyboard.c (make_lispy_movement): Ditto.
2899
2900 * window.c (coordinates_in_window): Return 4 if on top line.
2901 (Fcoordinates_in_window_p): Return `top-line' if on top line.
2902
2903 * xdisp.c (window_box_height): Subtract top line height.
2904 (window_box): Add top line height to top y position if top line
2905 exists.
2906 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
2907 the top line row of the window. Set initial y-position to
2908 window's top line height plus delta.
2909 (start_display): Choose start glyph row depending on whether
2910 window has a top line.
2911 (try_scrolling): Take top line height into account for aggressive
2912 scrolling.
2913 (compute_window_start_on_continuation_line): Take top line into
2914 account.
2915 (redisplay_window): Ditto. If top line height has changed,
2916 trigger a new redisplay.
2917 (try_window_reusing_current_matrix): Take top line into account.
2918 (find_last_row_displaying_text): Ditto.
2919 (get_last_unchanged_at_beg_row): DItto.
2920 (try_window_id): Ditto.
2921 (compute_line_metrics): Ditto.
2922
2923 * dispnew.c (shift_glyph_matrix): Compute visible row height
2924 taking top line of window into account.
2925 (update_window): Update top line. If scrolling_window detects
2926 that all rows are equal, only set cursor.
2927 (update_window_line): Call after_update_window_line_hook if
2928 mode_line_p flag of rows has changed.
2929 (scrolling_window): Add parameter top_line_p. Return -1 if
2930 all rows are equal.
2931 (mode_line_string): Add parameter mode_line_p. Handle strings
2932 in top lines.
2933
2934 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
2935 (MATRIX_FIRST_TEXT_ROW): New.
2936 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
2937 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
2938 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
2939 (MATRIX_TOP_LINE_HEIGHT): New.
2940 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
2941 (CURRENT_TOP_LINE_HEIGHT): New.
2942 (DESIRED_TOP_LINE_HEIGHT): New.
2943 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
2944 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
2945 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
2946 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
2947
2948 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
2949 lines.
2950 (x_draw_row_bitmaps): Take top line into account when clearing
2951 bitmap area.
2952 (x_estimate_mode_line_height): Replacement for
2953 x_frame_mode_line_height.
2954 (x_get_glyph_string_clip_rect): Take top line into account.
2955 (x_clear_end_of_line): Ditto.
2956 (note_mode_line_highlight): Add parameter mode_line_p. Handle
2957 top lines.
2958 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
2959 (x_erase_phys_cursor): Take top line into account.
2960
2961 * xdisp.c (window_box_height): Subtract top line height if
2962 window wants a top line.
2963 (display_mode_lines): New.
2964 (redisplay_window): Call it.
2965 (display_mode_line): Add parameters face_id and format.
2966
2967 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
2968 (MATRIX_TOP_LINE_HEIGHT): New.
2969
2970 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
2971
2972 * term.c (estimate_mode_line_height): Renamed from
2973 frame_mode_line_height. Add parameter face_id.
2974 (estimate_mode_line_height_hook): Renamed from
2975 frame_mode_line_height_hook.
2976 (produce_special_glyphs_hook): Removed.
2977 (produce_glyphs_hook): Removed.
2978
2979 1999-06-23 Gerd Moellmann <gerd@gnu.org>
2980
2981 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
2982 (struct glyph_row): Add mode_line_p.
2983
2984 * xfaces.c (realize_basic_faces): Realize face `top-line'.
2985 (Qtop_line): New.
2986 (syms_of_xfaces): Initialize Qtop_line.
2987
2988 * dispextern.h (TOP_LINE_FACE_ID): New.
2989
2990 * buffer.c (init_buffer_once): Set default for
2991 top_line_format to nil.
2992 (init_buffer_once): Init top_line_format.
2993 (default-top-line-format): New.
2994 (top-line-format): New buffer-local variable.
2995
2996 * buffer.h: Add top_line_format.
2997
2998 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
2999
3000 1999-06-17 Dave Love <fx@gnu.org>
3001
3002 * xfns.c: Move the PNG section before the JPEG one to avoid
3003 problems surrounding setjmp.h/png.h on GNU/Linux.
3004
3005 1999-06-17 Gerd Moellmann <gerd@gnu.org>
3006
3007 * xfns.c (x_kill_gs_process): Don't free colors.
3008
3009 1999-06-17 Dave Love <fx@gnu.org>
3010
3011 * s/gnu-linux.h: Zap spurious ~.
3012
3013 1999-06-16 Gerd Moellmann <gerd@gnu.org>
3014
3015 * xfns.c (gif_load): Improve multi-image support.
3016
3017 1999-06-15 Gerd Moellmann <gerd@gnu.org>
3018
3019 * xfns.c (gif_load): Support multi-image files.
3020
3021 * Makefile.in (LIBGIF): Use libungif.
3022
3023 * configure.in (HAVE_GIF): Use libungif instead of libgif
3024 because the former doesn't contain patented compression code.
3025
3026 * xdisp.c (compute_window_start_on_continuation_line): Don't
3027 do it if line start is too far away from window start.
3028
3029 1999-06-14 Gerd Moellmann <gerd@gnu.org>
3030
3031 * buffer.c (init_buffer_once): Set buffer_local_flags for
3032 scroll_*_aggressively.
3033 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
3034 (init_buffer_once): Set defaults for these variables.
3035 (syms_of_buffer): Add default-scroll-*-aggressively.
3036
3037 * buffer.h (scroll_up_aggressively): New.
3038 (scroll_down_aggressively): New.
3039
3040 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
3041 a static PNG library.
3042
3043 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
3044 in case it's a static library.
3045
3046 * Makefile.in (ctagsfiles): Split so that files starting
3047 with an `x' are found before files starting with `w32'.
3048 (ctagsfiles1): New.
3049 (ctagsfiles2): New.
3050 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
3051
3052 * xdisp.c (compute_window_start_on_continuation_line): New.
3053 (redisplay_window): Use it.
3054 (INFINITY): New.
3055 (reseat_to_string): Use it.
3056 (hscroll_window_tree): Ditto.
3057 (compute_window_start_on_continuation_line): Ditto.
3058 (redisplay_window): Don't force display with a new window start.
3059
3060 1999-06-06 Gerd Moellmann <gerd@gnu.org>
3061
3062 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
3063 if widget not present.
3064
3065 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
3066
3067 1999-06-04 Gerd Moellmann <gerd@gnu.org>
3068
3069 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
3070 value of realize_basic_faces.
3071 (load_face_font_or_fontset): Store full font name in face.
3072 (realize_default_face): Use full font name.
3073
3074 * xlwmenu.c (make_shadow_gcs) ]emacs]: Use x_alloc_nearest_color.
3075
3076 * xterm.c (x_produce_glyphs): Set member char_to_display.
3077 (x_append_glyph): Store char_to_display in glyphs.
3078
3079 * dispextern.h (struct it): Add char_to_display.
3080
3081 * xfns.c (x_set_font): Don't call face-set-after-frame-default
3082 if faces haven't been initialized.
3083 (Fx_create_frame): Call face-set-after-frame-default after
3084 faces have been initialized, and widget has been created.
3085
3086 * puresize.h (BASE_PURESIZE): Increased.
3087
3088 1999-06-01 Gerd Moellmann <gerd@gnu.org>
3089
3090 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
3091 (Finternal_set_lisp_face_attribute): If frame is t when
3092 :font attribute is set, use the selected frame.
3093 (clear_face_cache): Add parameter clear_fonts_p.
3094 (Fclear_face_cache): Add optional parameter thorougly.
3095
3096 * xfaces.c (face_numeric_value): Return -1 if symbol is not
3097 in table.
3098 (Fclear_face_cache): New.
3099 (choose_face_fontset_font): If fontset doesn't contain font
3100 pattern for the given charset, use CHARSET_ASCII.
3101 (Finternal_set_lisp_face_attribute): Fix handling of nil
3102 stipple attribute.
3103 (Finternal_set_lisp_face_attribute): Fix handling of changing
3104 font-related face attributes of the default face.
3105 (set_lface_from_font_name): Set only attributes that aren't
3106 specified.
3107
3108 1999-05-31 Gerd Moellmann <gerd@gnu.org>
3109
3110 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
3111 font support.
3112 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
3113 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
3114 scalable fonts depending on the setting of SCALABLE_FONTS.
3115 (first_font_matching): List more than one font to find the
3116 first non-scalable matching font.
3117 (sorted_font_list): Let x_face_list_fonts return scalable fonts
3118 depending on SCALABLE_FONTS.
3119 (better_font_p): New parameter compare_pt_p. If zero, don't
3120 compare point sizes of fonts.
3121 (exact_face_match_p) [SCALABLE_FONTS]: New.
3122 (build_scalable_font_name) [SCALABLE_FONTS]: New.
3123 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
3124 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
3125 (syms_of_xfaces): Add scalable-fonts-allowed.
3126
3127 1999-05-26 Gerd Moellmann <gerd@gnu.org>
3128
3129 * xfns.c (png_load): Let PNG lib handle gamma. Construct
3130 mask only if image contains simple transparency information.
3131 Otherwise, combine image with frame background color.
3132
3133 * configure.in (--with-png, HAVE_PNG): New.
3134
3135 * config.in (HAVE_PNG): New.
3136
3137 * Makefile.in: Add PNG library.
3138
3139 * xfns.c: Add PNG support.
3140
3141 1999-05-25 Gerd Moellmann <gerd@gnu.org>
3142
3143 * xdisp.c (init_xdisp): Initialize echo_area_message and
3144 previous_echo_area_message to nil.
3145
3146 * keyboard.c (read_char): Rename local variable echo_area_message
3147 because it shadows the global one.
3148
3149 1999-05-05 Gerd Moellmann <gerd@gnu.org>
3150
3151 * xterm.c (note_mode_line_highlight): Restructured.
3152
3153 * window.c (coordinates_in_window): Handle windows that don't have
3154 a mode line because their buffer's mode-line-format is nil.
3155 Recognize the mode line under x positions that correspond to
3156 flags areas and left scroll bar.
3157
3158 1999-05-02 Dave Love <fx@gnu.org>
3159
3160 * xterm.c (note_mouse_highlight): Separate help-echo processing
3161 from check on mouse-face so that it works generally.
3162
3163 1999-04-21 Gerd Moellmann <gerd@gnu.org>
3164
3165 * sound.c (Fplay_sound): Run hook play-sound-hook.
3166 (Qplay_sound_hook): New.
3167
3168 1999-04-20 Gerd Moellmann <gerd@gnu.org>
3169
3170 * xdisp.c (update_echo_area): Handle echo_area_message.
3171
3172 1999-04-19 Gerd Moellmann <gerd@gnu.org>
3173
3174 * editfns.c (Fmessage): Use message3.
3175
3176 * print.c (printchar): Set echo_area_message to nil.
3177 (strout): Ditto.
3178
3179 * minibuf.c (read_minibuf): Reset echo message strings to nil.
3180 (Fminibuffer_completion_help): Ditto.
3181
3182 * keyboard.c (cmd_error_internal): Set echo_areA_message.
3183 (command_loop_1): Test echo_areA_message.
3184 (read_char): Ditto.
3185 (record_menu_key): Set echo_area_message to nil.
3186 (Fexecute_extended_command): Test echo_area_message.
3187 (Fexecute_extended_command): Handle echo_area_message.
3188
3189 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
3190 is set.
3191
3192 * editfns.c (Fcurrent_message): If echo_area_message is set,
3193 return a substring of that string.
3194
3195 * dispnew.c (direct_output_for_insert): Test echo_area_message
3196 in addition to echo_area_glyphs.
3197 (set_window_cursor_after_update): Ditto.
3198 (update_frame_1): Ditto.
3199
3200 * alloc.c (Fgarbage_collect): Use message3_nolog to display
3201 old Lisp message string.
3202
3203 * xdisp.c (echo_area_message): New.
3204 (previous_echo_area_message): New.
3205 (syms_of_xdisp): Initialize and staticpro new variables.
3206 (echo_area_display): Display echo_area_message if set.
3207 (message2_nolog): Set echo_area_message and
3208 previous_echo_area_message.
3209 (echo_area_display): Set previous_echo_area_message.
3210 (redisplay_internal): Display echo area if echo_area_message
3211 or previous_echo_area_message are set.
3212 (redisplay_preserve_echo_area): Test/set echo_area_message and
3213 previous_echo_area_message.
3214 (redisplay_window): Test echo_area_message.
3215 (message3_nolog): New.
3216 (message3): New.
3217
3218 * editfns.c (Fformat): Add text properties to the result string
3219 from properties of the format string and properties of string
3220 arguments.
3221
3222 * textprop.c (text_property_list): New.
3223 (add_text_properties_from_list): New.
3224 (extend_property_ranges): New.
3225
3226 1999-03-29 Gerd Moellmann <gerd@gnu.org>
3227
3228 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
3229 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
3230 Use these symbols for the box face attribute instead of the
3231 removed ones.
3232
3233 1999-03-12 Gerd Moellmann <gerd@gnu.org>
3234
3235 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
3236 Correct wrong test for slant.
3237
3238 1999-03-10 Gerd Moellmann <gerd@gnu.org>
3239
3240 * xfaces.c: Use `unspecified' for unspecified face attributes,
3241 use t and nil for on/off.
3242
3243 1999-03-06 Gerd Moellmann <gerd@gnu.org>
3244
3245 * buffer.c (syms_of_buffer): Extend doc string of
3246 mode-line-format.
3247
3248 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
3249 (first_font_matching): New.
3250 (set_lface_from_font_name): Use it if font name is a pattern.
3251 (font_field_wildcard_p): Removed.
3252
3253 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
3254 Recompute visible height of rows.
3255
3256 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
3257 Don't accept non-strings for help-echo from overlays.
3258
3259 1999-03-04 Dave Love <fx@gnu.org>
3260
3261 * xterm.c (note_mouse_highlight): Check overlays for help-text
3262 property.
3263 (XTread_socket): Fix compiler warning.
3264
3265 1999-03-05 Gerd Moellmann <gerd@gnu.org>
3266
3267 * xterm.c (note_mouse_highlight): Don't restrict number of
3268 overlay to 10. Call overlays_at so that it doesn't try to
3269 extend the vector.
3270
3271 * xdisp.c (compute_line_metrics): Compute glyph row's visible
3272 height.
3273
3274 * dispnew.c (row_equal_p): Compare visible row height, only.
3275 (update_text_area): Draw whole line if visible heights of
3276 rows differ.
3277 (update_window_line): Call after_update_window_line_hook
3278 if visible row height has changed.
3279
3280 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
3281 (struct glyph_row): New member visible_height.
3282
3283 * xfaces.c (font_field_wildcard_p): New.
3284 (set_lface_from_font_name): Remove parameter force_p. Accept
3285 font names containing wildcards.
3286
3287 1999-03-04 Gerd Moellmann <gerd@gnu.org>
3288
3289 * xterm.c (x_after_update_window_line): Clear internal border
3290 when windows_or_buffers_changed.
3291
3292 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
3293 buffer has a nil mode_line_format.
3294
3295 1999-03-03 Gerd Moellmann <gerd@gnu.org>
3296
3297 * xterm.c (x_setup_relief_colors): Use either background color
3298 or specified color.
3299
3300 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
3301
3302 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
3303
3304 * xterm.c (x_draw_box_rect): New.
3305 (x_draw_glyph_string_box): Renamed from
3306 x_draw_glyph_string_relief. Call x_draw_box_rect.
3307
3308 * xfns.c (QCrelief): New.
3309 (syms_of_xfns): Initialize it.
3310
3311 * dispextern.h (struct glyph): Rename left_shadow_p to
3312 left_box_line_p, right_shadow_p to right_box_line_p.
3313 (MAX_RELIEF_THICKNESS): Removed.
3314 (struct it): Rename members having `relief' in their names
3315 to contain `box' instead.
3316
3317 * xfaces.c (realize_x_face): Handle new box attribute values.
3318 (QCrelief, Qbox): Removed.
3319 (QCshadow, QCcolor, Qraised, Qsunken): New.
3320 (syms_of_xfaces): Initialize new symbols.
3321
3322 1999-03-02 Gerd Moellmann <gerd@gnu.org>
3323
3324 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
3325
3326 * xfaces.c (LFACE_RELIEF): Removed.
3327 (merge_face_vector_with_property): Remove handling of `:relief'.
3328 (Finternal_set_lisp_face_attribute): Ditto.
3329 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
3330 (Finternal_get_lisp_face_attribute): Ditto.
3331 (realize_default_face): Ditto.
3332 (lface_hash): Don't compute hash from relief.
3333
3334 * dispextern.h (struct face): Replace member `relief' by
3335 `box_line_width'. Add member `box'.
3336 (face_box_type): New.
3337
3338 * xterm.c (x_produce_glyphs): If face has overline, add overline
3339 thickness + 1 to ascent.
3340
3341 1999-03-01 Gerd Moellmann <gerd@gnu.org>
3342
3343 * xterm.c (x_draw_glyph_string): Draw underline, overline,
3344 strike-through, and boxes.
3345 (x_draw_glyph_string_underline): Removed.
3346
3347 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
3348 (Qoverline, Qstrike_through, Qbox): New.
3349 (syms_of_xfaces): Define these symbols.
3350 (check_lface_attrs): Add checks for overline, strike-through,
3351 and box.
3352 (Finternal_set_lisp_face_attribute): Set new attributes.
3353 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
3354 (load_color): Handle new attributes.
3355 (realize_x_face): Ditto.
3356 (merge_face_vector_with_property): Ditto.
3357 (free_face_colors): Ditto.
3358 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
3359 (Finternal_get_lisp_face_attribute): Ditto.
3360 (Finternal_lisp_face_attribute_values): Ditto.
3361
3362 * dispextern.h (lface_attribute_index): Add enumerators for
3363 overstrike, strike-through, and box.
3364 (struct face): Add members for overline, strike-through, and
3365 box.
3366
3367 1999-02-17 Dave Love <fx@gnu.org>
3368
3369 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
3370 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
3371 files.
3372
3373 1999-02-16 Gerd Moellmann <gerd@gnu.org>
3374
3375 * keyboard.c (toolbar_items): Call access_keymap with third
3376 parameter 1, so that we don't get inherited toolbar item
3377 definitions.
3378
3379 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
3380 the window end vpos when in empty first line of window.
3381
3382 1999-02-15 Gerd Moellmann <gerd@gnu.org>
3383
3384 * xfaces.c (set_font_frame_param): New.
3385 (Finternal_set_lisp_face_attribute): Call it.
3386
3387 Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
3388
3389 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
3390 Accept specifications of color for underline.
3391
3392 1999-02-13 Gerd Moellmann <gerd@gnu.org>
3393
3394 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
3395 `frame' is t, operate on face defaults for new frames. If it
3396 is nil, operate on the selected frame.
3397
3398 1999-02-12 Gerd Moellmann <gerd@gnu.org>
3399
3400 * dispnew.c (check_matrix_invariants): Put it in #if 0.
3401 (update_window): Put the call to check_matrix_invariants in #if 0.
3402
3403 Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
3404
3405 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
3406 Remove definition of UNDERLINE_COLOR.
3407
3408 Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
3409
3410 * xfaces.c (free_face_colors): Free the color for underline.
3411
3412 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
3413 to the GC.
3414
3415 Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
3416
3417 * dispextern.h (UNDERLINE_COLOR): Defined.
3418 (struct face): Added two new members.
3419 underline_color, underline_defaulted_p.
3420
3421 * xfaces.c (merge_face_vector_with_property):
3422 (check_lface_attrs): Accept the string value for underline.
3423 (Finternal_set_lisp_face_attribute): Likewise.
3424
3425 * xfaces.c (load_color): Change the last argument type to enum
3426 lface_attribute_index from int. And addec code for underling coloring.
3427 (load_face_colors): Pass LFACE_*_INDEX to load_color.
3428
3429 1999-02-12 Gerd Moellmann <gerd@gnu.org>
3430
3431 * xfns.c (Fx_image_header): Removed.
3432
3433 1999-02-07 Gerd Moellmann <gerd@gnu.org>
3434
3435 * xterm.c: Don't include <bitmaps/gray>.
3436 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
3437
3438 * xfns.c (Fx_image_header): Add missing `\n\'.
3439 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
3440
3441 1999-02-01 Gerd Moellmann <gerd@gnu.org>
3442
3443 * xterm.c (x_scroll_bar_create): Set background pixel from
3444 specified scroll bar color.
3445 (x_scroll_bar_set_handle): Use scroll bar foreground color.
3446
3447 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
3448 (x_set_scroll_bar_background): Ditto.
3449
3450 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
3451
3452 * xfns.c (x_default_scroll_bar_color_parameter): New.
3453 (Fx_create_frame): Call it.
3454
3455 1999-01-31 Gerd Moellmann <gerd@gnu.org>
3456
3457 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
3458 values in x_output structure.
3459 (Qscroll_bar_foreground, Qscroll_bar_background): New.
3460 (syms_of_xfns): Initialize these symbols.
3461
3462 * xterm.h (struct x_output): Add scroll bar pixel colors.
3463
3464 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
3465 (x_set_scroll_bar_foreground): New.
3466 (x_set_scroll_bar_background): New.
3467
3468 * xlwmenu.c (all_dashes_p): Removed.
3469 (size_menu_item): Call lw_separator_p.
3470 (display_menu_item): Ditto.
3471 (display_menu): Ditto.
3472 (draw_separator): New.
3473 (display_menu_item): Call it.
3474 (separator_height): New.
3475 (size_menu_item): Call it.
3476
3477 * lwlib-Xm.c (all_dashes_p): Removed.
3478 (make_menu_in_widget): Use lw_separator_p. Set Motif separator
3479 type.
3480
3481 * lwlib.c (lw_separator_p): New.
3482
3483 * lwlib.h (enum menu_separator): New.
3484
3485 1999-01-12 Gerd Moellmann <gerd@gnu.org>
3486
3487 * xdisp.c (handle_single_display_prop): New.
3488 (handle_display_prop): Call it.
3489 (handle_raise_prop): Removed.
3490 (handle_height_prop): Removed.
3491 (handle_space_width_prop): Removed.
3492 (handle_face_prop): Remove handling of raised text.
3493 (handle_display_prop): Do it here.
3494
3495 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
3496 (RAISE_PROP_IDX): Removed.
3497 (HEIGHT_PROP_IDX): Removed.
3498 (SPACE_WIDTH_PROP_IDX): Removed.
3499
3500 * xdisp.c (Qdisplay): Replaces Qglyph.
3501 (handle_display_prop): Formerly handle_glyph_prop.
3502
3503 1999-01-11 Gerd Moellmann <gerd@gnu.org>
3504
3505 * xdisp.c (reseat_to_string): Set position in display vector to -1.
3506 (handle_stop): Set position in display vector to -1. Don't
3507 check overlay strings when set up to deliver characters from a
3508 display vector.
3509 (set_iterator_to_next): At the end of a run of characters from a
3510 display vector, check whether the display vector display replaces
3511 the display of a character.
3512
3513 1999-01-05 Gerd Moellmann <gerd@gnu.org>
3514
3515 * xfaces.c (init_frame_faces): Don't realize faces if frame's
3516 X window hasn't been created yet.
3517
3518 1998-12-06 Gerd Moellmann <gerd@gnu.org>
3519
3520 * sound.c: New.
3521
3522 1998-12-04 Gerd Moellmann <gerd@gnu.org>
3523
3524 * config.in (HAVE_SOUND): New.
3525
3526 * emacs.c (main): Call syms_of_sound and init_sound.
3527
3528 * Makefile.in (obj): Add sound.o.
3529
3530 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
3531
3532 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
3533 (HAVE_SYS_SOUNDCARD_H): New.
3534
3535 1998-12-03 Gerd Moellmann <gerd@gnu.org>
3536
3537 * buffer.h (struct buffer): indicate_empty_lines renamed from
3538 indicate_zv_lines.
3539
3540 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
3541 (default-indicate-zv-lines): Likewise.
3542
3543 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
3544 to indicate_empty_line_p.
3545
3546 * xdisp.c (reseat_at_next_visible_line_start): Reset method
3547 to next_element_from_buffer.
3548
3549 * frame.c (make_frame): Set n_current_toolbar_items to 0.
3550
3551 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
3552 and `N-'.
3553
3554 * xfns.c (xbm_scan): New.
3555 (xbm_read_hexint): Removed.
3556 (xbm_read_bitmap_file_data): Use xbm_scan.
3557
3558 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
3559
3560 1998-12-02 Gerd Moellmann <gerd@gnu.org>
3561
3562 * xfns.c (xbm_read_hexint): New.
3563 (xbm_read_bitmap_file_data): New.
3564 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
3565 instead of XReadBitmapFileData.
3566
3567 * xdisp.c (handle_raise_prop): Compute voffset from current font.
3568
3569 * xfaces.c (face_with_height): New.
3570
3571 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
3572 (eval_form): Renamed from eval_mode_element.
3573 (handle_face_prop): Use it.
3574 (Qheight): Replaces Qsmaller.
3575 (handle_height_prop): Replaces handle_smaller_prop.
3576 (handle_face_prop): If iterator's font_height is not an
3577 integer, evaluate it to get the font height to use.
3578
3579 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
3580 (struct it): Use `font_height' instead of `smaller'.
3581
3582 1998-12-01 Gerd Moellmann <gerd@gnu.org>
3583
3584 * xdisp.c (reseat_1): New.
3585 (reseat): Call it.
3586 (move_it_vertically_backward): Ditto.
3587 (redisplay_window): Don't abort when cursor not found in recenter.
3588
3589 1998-11-30 Gerd Moellmann <gerd@gnu.org>
3590
3591 * xdisp.c (reseat_at_next_visible_line_start): When not
3592 currently delivering display elements from the current buffer,
3593 restore buffer position first.
3594 (init_from_display_pos): Don't set IT's position from the
3595 position passed to this function.
3596
3597 1998-11-28 Gerd Moellmann <gerd@gnu.org>
3598
3599 * config.in (PROTO): Removed.
3600
3601 * xterm.h: Change PROTO to P_.
3602
3603 1998-11-26 Gerd Moellmann <gerd@gnu.org>
3604
3605 * xterm.c (take_vertical_position_into_account): New.
3606 (x_produce_image_glyph): Call it.
3607 (x_produce_stretch_glyph): Ditto.
3608 (x_produce_glyphs): Ditto.
3609 (x_fill_glyph_string): Adjust base line for glyph's voffset.
3610 (x_fill_composite_glyph_string): Ditto.
3611 (x_fill_image_glyph_string): Ditto.
3612 (x_fill_stretch_glyph_string): Ditto.
3613
3614 * xdisp.c (display_line): Always compute row height from
3615 max_ascent and max_descent.
3616
3617 * dispextern.h (struct glyph): Add voffset.
3618 (struct it): Replace height by descent, max_height by max_descent.
3619
3620 * xterm.c (x_append_glyph): Set voffset
3621 (x_append_stretch_glyph): Ditto.
3622 (x_produce_image_glyph): Ditto.
3623 (x_produce_glyphs): Take voffset into account.
3624 (x_produce_image_glyph): Ditto.
3625 (x_produce_stretch_glyph): Ditto.
3626
3627 * dispextern.h (struct it): Add voffset.
3628 * xdisp.c (push_it): Save voffset.
3629 (pop_it): Restore it.
3630
3631 * xdisp.c (it_props): Add entry for `raise'.
3632 (handle_raise_prop): New.
3633
3634 * dispextern.h (RAISE_PROP_IDX): New.
3635
3636 * xdisp.c (Qraise): New.
3637 (syms_of_xdisp): Define Qraised.
3638
3639 * xterm.c (x_scroll_bar_move): Clear to the left and right
3640 of toolkit scroll bars differently.
3641 (x_scroll_bar_move): Removed.
3642 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
3643
3644 * dispextern.h: Make it compilable --with-x=no.
3645 * alloc.c: Ditto.
3646 * emacs.c: Ditto.
3647 * dispnew.c: Ditto.
3648 * keyboard.c: Ditto.
3649 * term.c: Ditto.
3650 * xdisp.c: Ditto.
3651 * xfaces.c: Ditto.
3652 * xfns.c: Ditto.
3653 * xmenu.c: Ditto.
3654
3655 1998-11-25 Gerd Moellmann <gerd@gnu.org>
3656
3657 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
3658
3659 1998-11-24 Gerd Moellmann <gerd@gnu.org>
3660
3661 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
3662 update slider size, only.
3663 (xm_scroll_callback): Set dragging member of the scroll bar.
3664 (xt_action_hook): Reset last_scroll_bar_part.
3665 (XTredeem_scroll_bar): Reset bar->dragging to nil.
3666
3667 * xlwmenu.c (abort_gracefully): New.
3668 (display_menu): Use it instead of abort.
3669 (size_menu): Ditto.
3670
3671 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
3672 window on newly created frames that don't have one.
3673
3674 1998-11-23 Gerd Moellmann <gerd@gnu.org>
3675
3676 * xdisp.c (restore_overlay_strings): Removed.
3677 (restore_dpvec): Removed.
3678 (init_from_display_pos): Inline both functions above.
3679
3680 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
3681 (parse_image_spec): Handle it.
3682 (xbm_format): Use it.
3683 (xpm_format): Ditto.
3684 (pbm_format): Ditto.
3685 (jpeg_format): Ditto.
3686 (tiff_format): Ditto.
3687 (gif_format): Ditto.
3688 (gs_format): Ditto.
3689
3690 * xdisp.c (set_window_cursor): Removed.
3691 (redisplay_internal): Case cursor motion in cursor line of
3692 selected window; use set_cursor_from_row.
3693
3694 1998-11-22 Gerd Moellmann <gerd@gnu.org>
3695
3696 * widget.c (EmacsFrameSetCharSize): Take widget's border width
3697 into account.
3698
3699 1998-11-21 Gerd Moellmann <gerd@gnu.org>
3700
3701 * xterm.c (expose_frame): Redraw menu bar window.
3702
3703 * xdisp.c (display_menu_bar): Record hpos instead of x-position
3704 in menu item.
3705
3706 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
3707 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
3708
3709 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
3710 to determine vertical_scroll_bar_extra.
3711 (EmacsFrameSetCharSize): Ditto.
3712 * xfns.c (x_figure_window_size): Ditto.
3713
3714 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
3715 (x_draw_bitmap): Ditto.
3716
3717 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
3718 * xfaces.c (realize_basic_faces): Realize it.
3719
3720 1998-11-20 Gerd Moellmann <gerd@gnu.org>
3721
3722 * xmenu.c (xmenu_show): Add workaround for remaining button grab
3723 under LessTif Use the widget of the frame as parent for the
3724 menu, again.
3725
3726 1998-11-19 Gerd Moellmann <gerd@gnu.org>
3727
3728 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
3729 When EnterNotify, don't generate a mouse movement event if
3730 notification is from a busy-cursor child window.
3731
3732 * xterm.h (struct x_output): Add busy_window, remove cursor.
3733
3734 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
3735 Use a transparent window to display the busy-cursor.
3736 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
3737
3738 1998-11-17 Gerd Moellmann <gerd@gnu.org>
3739
3740 * xdisp.c (check_window_end): New, for debugging.
3741 (CHECK_WINDOW_END): New.
3742 (try_window_id): Use it.
3743
3744 * xterm.c (process_expose_from_menu): Return int.
3745
3746 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
3747 TOOLBAR_EVENT events in last_nonmenu_event.
3748
3749 1998-11-16 Gerd Moellmann <gerd@gnu.org>
3750
3751 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
3752 window end isn't reliable, so set window_end_valid to nil.
3753 (redisplay_internal): If overlay arrow has changed, set
3754 windows_or_buffers_changed to redisplay thoroughly.
3755
3756 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
3757 necessary.
3758
3759 * xfns.c (file_dialog_cb): New.
3760 (Fx_file_dialog): New.
3761 * fileio.c (Fread_file_name): Call it.
3762
3763 * xrdb.c (x_load_resources): Add default resoures for file
3764 selection dialog.
3765
3766 1998-11-14 Gerd Moellmann <gerd@gnu.org>
3767
3768 * xterm.c (note_mouse_highlight): Don't highlight when popup
3769 is active.
3770
3771 * xlwmenu.c (xlwMenuResources): Change previously unused
3772 XtNmargin to 4.
3773 (size_menu): Take margin into account.
3774 (display_menu_item): Ditto.
3775 (remap_menubar): Ditto.
3776 (draw_arrow): Draw it 3D.
3777
3778 * keyboard.c (timer_check): Inhibit busy cursor around calls to
3779 timer-event-handler. This busy cursor tends to be anoying if
3780 fontifying stealthily.
3781
3782 * dispnew.c (direct_output_for_insert): Give up if current row
3783 contains trailing whitespace.
3784
3785 1998-11-13 Gerd Moellmann <gerd@gnu.org>
3786
3787 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
3788
3789 * xdisp.c (handle_fontified_prop): New.
3790 (Vfontification_functions): New.
3791 (Qfontification_functions): New.
3792 (it_props): Add handle_fontified_prop.
3793
3794 1998-11-12 Gerd Moellmann <gerd@gnu.org>
3795
3796 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
3797 Otherwise, under LessTif, after the popup has gone, all button
3798 press events come in for the frame's widget, and release events
3799 come in for the edit_widget.
3800 * xterm.c (XTread_socket): Remove workaround for that problem.
3801 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
3802 XmScrollBarSetValues.
3803 (SET_SAVED_MENU_EVENT): Give it statement form.
3804
3805 * lwlib-Xm.c (make_menu_in_widget): Set alignment of menu
3806 title after all widgets have been created.
3807
3808 * xfaces.c (display_message): If waiting_for_input, don't display
3809 the message.
3810
3811 * window.c (scroll_command): If not acting on current_buffer,
3812 make redisplay consider all windows.
3813
3814 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
3815
3816 * xdisp.c (handle_glyph_prop): Set it->object for images to
3817 the object having the glyph property.
3818
3819 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
3820 invisible.
3821
3822 1998-11-11 Gerd Moellmann <gerd@gnu.org>
3823
3824 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
3825 (x_term_init): Create the gray pixmap.
3826 (x_setup_relief_color): Use it.
3827 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
3828 internal border at the top of a frame.
3829 (x_init_glyph_string): Likewise.
3830 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
3831 full-width lines.
3832 (XTflash): Don't flash the toolbar window.
3833
3834 * xterm.c (XTread_socket): Workaround for LessTif popup menus
3835 in case of ButtonPress events.
3836
3837 1998-11-10 Gerd Moellmann <gerd@gnu.org>
3838
3839 * xrdb.c (x_load_resources): Add grey background colors as
3840 defaults for menus, scroll bars, and dialogs.
3841
3842 * insdel.c (prepare_to_modify_buffer): Move setting
3843 windows_or_buffers_changed from modify_region here.
3844
3845 * xfns.c (Fx_show_tip): Inhibit redisplay.
3846 (Fx_hide_tip): Ditto.
3847 (Fx_image_header): New.
3848
3849 1998-11-09 Gerd Moellmann <gerd@gnu.org>
3850
3851 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
3852 when clearing current window matrices.
3853
3854 1998-11-08 Gerd Moellmann <gerd@gnu.org>
3855
3856 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
3857 position from a string position. Use the right end position
3858 if the property spans a whole overlay string.
3859
3860 1998-11-07 Gerd Moellmann <gerd@gnu.org>
3861
3862 * xmenu.c (menubar_selection_callback): Remove workaround for
3863 Lesstif not calling XmNpopdownCallback because it doesn't
3864 handle the case where users don't select any menu item.
3865
3866 * xlwmenu.c (toggle_button_width): Renamed from
3867 toggle_or_radio_button_width.
3868 (radio_button_width): New.
3869 (size_menu_item): Use new functions.
3870 (draw_shadow_rhombus): New.
3871 (draw_radio): Use radio_button_width and draw_shadow_rhombus.
3872 (draw_toggle): Use toggle_button_width.
3873
3874 * insdel.c (modify_region): Set windows_or_buffers_changed.
3875
3876 * buffer.c (set_buffer_internal): Don't set
3877 windows_or_buffers_changed.
3878
3879 * lwlib-Xm.c (xm_update_toggle): Add callback xm_generic_callback
3880 instead of xm_internal_update_other_instances.
3881
3882 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
3883
3884 * lwlib-Xm.c (make_menu_in_widget): Do help button before managing
3885 children to get it to the right place.
3886 (make_menu_in_widget): Create toggle buttons.
3887 (update_one_menu_entry): Update toggle buttons.
3888
3889 * xmenu.c (menubar_selection_callback): Add workaround for
3890 Lesstif not calling XmNpopdownCallback.
3891
3892 * xdisp.c (eval_mode_element): New.
3893 (eval_mode_handler): New.
3894 (display_mode_element): Use eval_mode_element.
3895
3896 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
3897 Remove code looking at text props of default value.
3898
3899 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
3900
3901 * xlwmenu.c (size_menu_item): Add parameter button_width.
3902 (size_menu): Compute button_width.
3903 (toggle_or_radio_button_width): New.
3904 (draw_toggle): New.
3905 (draw_radio): New.
3906 (draw_shadow_rectangle): Add parameter `down_p'.
3907
3908 * xlwmenuP.h (_window_state): Add button_width.
3909
3910 1998-11-06 Gerd Moellmann <gerd@gnu.org>
3911
3912 * xmenu.c (single_submenu): Set button_type of menu to
3913 BUTTON_TYPE_NONE.
3914 (single_submenu): Likewise for panes and menu items.
3915 (set_frame_menubar): Set button_type of menu bar to none.
3916 (xmenu_show): Likewise.
3917 (single_submenu): Set widget values selected slot.
3918 (xmenu_show): Likewise.
3919
3920 * lwlib.c (merge_widget_value): Handle button_type.
3921 (copy_widget_value_tree): Copy button_type.
3922
3923 * lwlib.h (enum button_type): New.
3924 (_widget_value): New member button_type.
3925
3926 * xmenu.c (push_menu_item): Add parameters `type' and
3927 `selected'. Store it in menu_items.
3928 (MENU_ITEMS_ITEM_TYPE): New.
3929 (MENU_ITEMS_ITEM_SELECTED): New.
3930 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
3931
3932 * xfns.c (clear_image_cache): Get the current time, before
3933 doing anything.
3934 (cache_image): Set prev pointer of next image.
3935 (clear_image_cache): Clear current matrices if any image was
3936 freed.
3937
3938 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
3939
3940 * xfns.c (x_set_cursor): New.
3941 (Fx_display_busy_cursor): New.
3942 (Fx_undisplay_busy_cursor): New.
3943
3944 * xterm.h (struct x_output): Add busy_cursor.
3945
3946 * xfns.c (Vx_busy_pointer_shape): New.
3947 (x_set_mouse_color): Create busy cursor.
3948
3949 * process.c (wait_reading_process_input): Show and hide busy
3950 cursor.
3951
3952 * keyboard.c (command_loop_1): Display busy cursor.
3953
3954 * eval.c (Fsignal): Hide busy cursor.
3955
3956 * buffer.c (set_buffer_internal): Don't set
3957 windows_or_buffers_changed.
3958
3959 * xterm.c (redo_mouse_highlight): New.
3960
3961 1998-11-04 Gerd Moellmann <gerd@gnu.org>
3962
3963 * lwlib-Xm.c (make_menu_in_widget): Test for menubar widgets
3964 using XmNrowColumnType.
3965
3966 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
3967 (x_build_heuritic_mask): New.
3968 (lookup_image): Call it.
3969
3970 * xterm.c (note_toolbar_highlight): Always set up help_echo.
3971 (previous_help_echo): New.
3972 (XTread_socket): Generate help event with nil message when
3973 leaving a region with help-echo.
3974 (note_mouse_highlight): Handle `help-echo' over text.
3975 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
3976 CirculateRequest.
3977 (clear_mouse_face): Don't clear if tooltip is shown.
3978 (XTread_socket): Redo mouse-highlight after tooltip is gone.
3979 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
3980
3981 * keyboard.c (Vshow_help_function): New.
3982 (read_char): Use it.
3983
3984 1998-11-03 Gerd Moellmann <gerd@gnu.org>
3985
3986 * xfns.c (x_create_tip_frame): New.
3987 (Fx_show_tip): New.
3988 (Fx_hide_tip): New.
3989
3990 * xterm.c (x_destroy_window): Handle case that we don't have
3991 a widget.
3992
3993 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
3994 to full_width_p. Add internal_border_p.
3995
3996 1998-11-02 Gerd Moellmann <gerd@gnu.org>
3997
3998 * xterm.c (note_mode_line_highlight): Check the charpos of
3999 the glyph under the mouse pointer before accessing text
4000 properties at that position.
4001
4002 1998-11-01 Gerd Moellmann <gerd@gnu.org>
4003
4004 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
4005
4006 * xdisp.c (auto-raise-toolbar-buttons): New.
4007 (build_desired_toolbar_string): Handle the flag.
4008 (toolbar-button-margin): New.
4009 (toolbar-button-relief): New.
4010 (build_desired_toolbar_string): Use margin and relief.
4011
4012 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
4013 for FreeBSD.
4014 (note_mode_line_highlight): New.
4015 (note_mouse_highlight): Call it.
4016
4017 1998-10-31 Gerd Moellmann <gerd@gnu.org>
4018
4019 * s/freebsd.h (NARROWPROTO): New.
4020
4021 * xdisp.c (display_string): New parameter face_string.
4022 (display_mode_element): When displaying a symbol with a string
4023 value, use text properties from the symbol's default value, maybe.
4024
4025 * xrdb.c (x_load_resources): Add font defaults for menus and
4026 dialogs.
4027
4028 1998-10-30 Gerd Moellmann <gerd@gnu.org>
4029
4030 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
4031
4032 1998-10-29 Gerd Moellmann <gerd@gnu.org>
4033
4034 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
4035 produced for characters with codes < 32 under certain
4036 circumstances.
4037
4038 * xdisp.c (redisplay_window): Handle values of PT in front
4039 of invisible, intangible text.
4040 (try_window_id): Set overlay_arrow_seen to zero before
4041 displaying lines.
4042 (display_mode_element): Assign to glyphs written for a mode
4043 line spec `%x' as object the Lisp format string, as position
4044 the position of the `%' in that string.
4045 (display_string): If displaying a C string, optionally get
4046 the face to use from a Lisp string.
4047
4048 * xterm.c (expose_window_tree): Include mode line height.
4049
4050 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
4051
4052 1998-10-27 Gerd Moellmann <gerd@gnu.org>
4053
4054 * xterm.c (note_mouse_highlight): Change mouse pointer shape
4055 over mode line.
4056
4057 1998-10-26 Gerd Moellmann <gerd@gnu.org>
4058
4059 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
4060
4061 * xdisp.c (redisplay_window): If mode line height has changed,
4062 arrange for a thorough immediate redisplay using the correct mode
4063 line height.
4064 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
4065
4066 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
4067 (CURRENT_MODE_LINE_HEIGHT): New.
4068 (DESIRED_MODE_LINE_HEIGHT): New.
4069
4070 * keyboard.c (make_lispy_event): Add string and string position
4071 info to mouse-click events.
4072 (read_key_sequence): Handle `local-map' property of mode line
4073 strings.
4074
4075 * keyboard.h (POSN_STRING): New.
4076
4077 1998-10-25 Gerd Moellmann <gerd@gnu.org>
4078
4079 * dispnew.c (mode_line_string): Mew.
4080
4081 * xterm.c (xt_action_hook): New.
4082 (x_create_toolkit_scroll_bar): Add action hook.
4083 (xm_scroll_callback): Implement dragging.
4084
4085 * keyboard.c (Qend_scroll): New.
4086 (scroll_bar_parts): Add it.
4087
4088 * termhooks.h (scroll_bar_end_scroll): New.
4089
4090 * xterm.c (XTread_socket): Bug fix.
4091
4092 1998-10-24 Gerd Moellmann <gerd@gnu.org>
4093
4094 * xdisp.c (redisplay_window): Finish scroll bars after
4095 redisplaying toolbar.
4096
4097 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
4098 (syms_of_keyboard): Add Qbottom.
4099
4100 * termhooks.h (scroll_bar_to_top): New.
4101 (scroll_bar_to_bottom): New.
4102
4103 * xdisp.c (redisplay_window): Always resize toolbar window if
4104 auto_resize_toolbar_p is non-zero.
4105 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
4106 (window_box): New.
4107 (window_box_height): New.
4108 (window_box_width): New.
4109 (window_box_left): New.
4110 (window_box_right): New.
4111 (window_box_edges): New.
4112
4113 1998-10-23 Gerd Moellmann <gerd@gnu.org>
4114
4115 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
4116 XawScrollbarSetThumb in FreeBSD.
4117 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
4118 to true.
4119
4120 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
4121 is out of range.
4122
4123 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
4124 (x_term_init): Initialize it.
4125
4126 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
4127
4128 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
4129 cursor.
4130
4131 1998-10-22 Gerd Moellmann <gerd@gnu.org>
4132
4133 * keyboard.c (make_lispy_event): Handle scroll_bar_click
4134 differently when using toolkit scroll bars.
4135
4136 * xterm.c (x_send_scroll_bar_event): New.
4137 (x_scroll_bar_to_input_event): New.
4138 (xaw3d_scroll_callback): New.
4139 (xaw3d_jump_callback): New.
4140 (xm_scroll_callback): New.
4141 (x_toolkit_scroll_p): New.
4142 (XTread_socket): Handle scroll bar client message.
4143 (x_term_init): Initialize Xatom_Scrollbar.
4144 (x_scroll_bar_create): Set cursor.
4145 (xm_scroll_callback):
4146 (x_create_toolkit_scroll_bar): New.
4147 (x_set_toolkit_scroll_bar_thumb): New.
4148 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
4149 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
4150
4151 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
4152
4153 1998-10-21 Gerd Moellmann <gerd@gnu.org>
4154
4155 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
4156 (XTread_socket): Don't handle mouse button events for scroll bars
4157 if using toolkit scroll bars.
4158 (XTset_vertical_scroll_bar): Set thumb size and position for
4159 Athena scroll bar.
4160
4161 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
4162
4163 * xterm.c (XTread_socket): Dispatch expose event to widget
4164 if using toolkit scroll bars.
4165 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
4166 (x_scroll_bar_create): Create and show a scroll bar widget
4167 if using toolkit scroll bars.
4168 (x_scroll_bar_move): Handle tookit scroll bars.
4169
4170 * Makefile.in (LIBW): Use Xaw3d if present.
4171
4172 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
4173 (HAVE_XAW3D): New.
4174
4175 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
4176 (HAVE_XAW3D): New.
4177
4178 * xterm.c (XTset_vertical_scroll_bar): Correct position of
4179 right vertical scroll bar.
4180
4181 1998-10-20 Gerd Moellmann <gerd@gnu.org>
4182
4183 * xfns.c (xpm_load): Support reading XPM images from string
4184 buffers containing data in the same format as an XPM file.
4185 Support `:color-symbols'.
4186 (xpm_format): Add `:data'.
4187 (xpm_keyword_index): Add XPM_DATA.
4188 (syms_of_xfns): Add `:color-symbols'.
4189 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
4190 (xpm_valid_color_symbols_p): New.
4191 (xpm_image_p): Call it.
4192
4193 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
4194 attribute to the image if item is not enabled.
4195
4196 * xfns.c (x_laplace): New.
4197 (x_laplace_read_row): New.
4198 (x_laplace_write_row): New.
4199 (lookup_image): Handle common image attributes here. New
4200 attribute `:algorithm'.
4201
4202 * xfaces.c (clear_face_cache): Call clear_image_cache.
4203
4204 * xterm.c (x_inverted_image_mask): Removed.
4205 (x_draw_image_foreground_1): New.
4206 (x_draw_image_glyph_string): Draw images with mask to a temporary
4207 pixmap to reduce flickering.
4208
4209 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
4210 (display_toolbar_line): Remove parameter `margin'.
4211
4212 1998-10-19 Gerd Moellmann <gerd@gnu.org>
4213
4214 * xdisp.c (toolbar_lines_needed): New.
4215 (auto-resize-toolbars): New.
4216
4217 * xfns.c (cache_image): Correct call to xrealloc.
4218
4219 * dispnew.c (Fset_toolbar_height): Removed.
4220
4221 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
4222 FRAME_MENU_BAR_LINES.
4223
4224 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
4225 instead of FRAME_MENU_BAR_LINES.
4226 (check_frame_size): Ditto.
4227
4228 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
4229 instead of FRAME_MENU_BAR_LINES.
4230 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
4231 (build_frame_matrix): Ditto.
4232 (change_frame_size_1): Ditto.
4233
4234 * frame.h (FRAME_TOOLBAR_LINES): New.
4235 (FRAME_TOP_MARGIN): New.
4236
4237 * window.c (struct save_window_data): Add frame_toolbar_lines.
4238 (Fset_window_configuration): Handle toolbar lines.
4239 (Fcurrent_window_configuration): Save toolbar lines.
4240
4241 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
4242
4243 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
4244
4245 * frame.h (struct frame): Rename top_margin to toolbar_lines.
4246
4247 * xfns.c (x_frame_parms): Add `toolbar-lines'.
4248 (x_set_toolbar_lines): New.
4249
4250 * keyboard.c (cmd_error_internal): Bug fix.
4251
4252 * xterm.c: Remove double include of syssignal.h.
4253
4254 1998-10-18 Gerd Moellmann <gerd@gnu.org>
4255
4256 * xterm.c (x_toolbar_item): New.
4257 (x_handle_toolbar_click): Use it.
4258 (note_toolbar_highlight): Use it.
4259
4260 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
4261 and toolbar_items_vectors.
4262
4263 * xterm.c (help_echo): New.
4264 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
4265 (x_set_glyph_string_gc): Handle them.
4266 (x_after_update_window_line): Don't do anything in pseudo-windows.
4267 (x_produce_image_glyph): Take image margin and face relief into
4268 account.
4269 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
4270 (x_draw_glyph_string_background): Optimize case when face has
4271 relief.
4272 (x_setup_relief_color): Take frame instead of glyph string
4273 parameter.
4274 (x_draw_relief_rect): New.
4275 (x_draw_glyph_string_relief): Call it.
4276 (x_draw_image_glyph_string_foreground): Handle margin and image
4277 relief.
4278 (x_draw_image_glyph_string_background): Ditto.
4279 (expose_frame): Redraw toolbar window.
4280 (expose_window): Don't draw cursor for pseudo-windows.
4281 (x_y_to_hpos_vpos): Handle pseudo-windows.
4282 (frame_to_window_pixel_xy): New.
4283 (note_mouse_highlight): Call note_toolbar_highlight.
4284 (x_handle_toolbar_click): New.
4285 (note_toolbar_highlight): New.
4286 (show_mouse_face): Change int parameter `hl' to parameter of
4287 type enum draw_glyphs_face. Handle image highlighting.
4288 (XTread_socket): Return a HELP_EVENT input event if help_echo is
4289 non-nil. Use x_handle_toolbar_click.
4290
4291 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
4292
4293 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
4294 IMAGE_BOOL_VALUE.
4295 (parse_image_spec): Handle them.
4296 (image_spec_value): Additional parameter found.
4297 (free_image): Remove image from the vector `images' of the
4298 image cache.
4299 (clear_image_cache): Additional parameter force_p.
4300 (Fclear_image_cache): New.
4301 (x_find_image_file): New.
4302 (xbm_load): Handle `:margin' and `:relief'. Use
4303 x_find_image_file.
4304 (xpm_load): Likewise.
4305 (pbm_load): Likewise.
4306 (jpeg_load): Likewise.
4307 (tiff_load): Likewise.
4308 (gif_load): Likewise.
4309
4310 * keyboard.c (Qhelp_echo): New symbol.
4311 (read_char): Handle `toolbar' and `help_echo' events.
4312 (kbd_buffer_get_event): Handle HELP_ECHO input event.
4313 (make_lispy_event): Handle TOOLBAR_EVENT.
4314 (toolbar_items): New.
4315 (process_toolbar_item): New.
4316 (PROP): New.
4317 (init_toolbar_items): New.
4318 (append_toolbar_item): New.
4319 (read_char_x_menu_prompt): Handle `toolbar' event.
4320 (read_key_sequence): Ditto.
4321
4322 * xfaces.c (Qtoolbar): New.
4323 (realize_basic_faces): Realize `toolbar' face.
4324 (face_at_string_position): Remove parameter modeline_p, add
4325 base_face_id.
4326
4327 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
4328 to read data.
4329
4330 1998-10-17 Gerd Moellmann <gerd@gnu.org>
4331
4332 * xdisp.c (init_iterator): Replace parameter modeline_p with
4333 base_face_id.
4334 (next_element_from_string): Call get_next_display_element
4335 recursively after handling text properties.
4336 (prepare_menu_bars): Call update_toolbar.
4337 (update_toolbar): New.
4338 (build_desired_toolbar_string): New.
4339 (display_toolbar_line): New.
4340 (redisplay_toolbar): New.
4341 (toolbar_item_info): New.
4342 (redisplay_window): Call redisplay_toolbar.
4343 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
4344
4345 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
4346 window.
4347 (clear_desired_matrices): Ditto.
4348 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
4349 (free_glyphs): Free matrices of toolbar window.
4350 (update_frame): Update toolbar window.
4351 (change_frame_size_1): Take toolbar into account.
4352 (Fset_toolbar_height): New.
4353
4354 * dispextern.h (struct it): Remove member modeline_p, add
4355 base_face_id.
4356 (struct image): Add members relief and margin.
4357 (IMAGE_ASCENT): Include margin in height.
4358
4359 1998-10-14 Gerd Moellmann <gerd@gnu.org>
4360
4361 * xfns.c (Fclear_image_cache): New.
4362
4363 * xfaces.c (realize_basic_faces): Realize toolbar face.
4364 (face_at_string_position): Remove parameter modeline_p, add
4365 base_face_id.
4366
4367 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
4368
4369 1998-10-13 Gerd Moellmann <gerd@gnu.org>
4370
4371 * keyboard.c (syms_of_keyboard): Intern `:help'.
4372
4373 1998-10-12 Gerd Moellmann <gerd@gnu.org>
4374
4375 * xterm.c (note_toolbar_highlight): New.
4376 (note_mouse_highlight): Call it.
4377
4378 * window.c (window_from_coordinates): Additional parameter toolbar_p.
4379 (coordinates_in_window): Handle toolbar window.
4380
4381 * keyboard.c (toolbar_items): New.
4382 (process_toolbar_item): New.
4383 (parse_toolbar_item): New.
4384 (init_toolbar_items): New.
4385 (append_toolbar_item): New.
4386
4387 * dispextern.h (enum toolbar_item_idx): New.
4388 (enum toolbar_item_image): New.
4389
4390 * frame.h (struct frame): Add toolbar-related members.
4391
4392 * xfaces.c (face_at_string_position): Remove assertion that
4393 current_buffer == window's buffer. This is not the case when
4394 called for the toolbar window.
4395
4396 * frame.c (make_frame): Initialize toolbar members.
4397
4398 * alloc.c (mark_object): Mark toolbar data of frames.
4399
4400 * frame.h (struct frame): Add toolbar-related members
4401 toolbar_window, desired_toolbar_items, current_toolbar_items,
4402 desired_toolbar_string, current_toolbar_string,
4403 n_desired_toolbar_items, n_current_toolbar_items. Add
4404 window_height.
4405
4406 * xterm.c (x_after_update_window_line): Don't draw bitmap
4407 areas for pseudo-windows.
4408 (expose_frame): Handle toolbar window.
4409 (expose_window): Don't do cursor stuff for pseudo-windows.
4410
4411 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
4412
4413 1998-10-11 Gerd Moellmann <gerd@gnu.org>
4414
4415 * frame.c (make_frame): Initialize toolbar_window.
4416
4417 * alloc.c (mark_object): Make the toolbar window.
4418
4419 * dispnew.c (update_frame): Update frame's toolbar_window.
4420 (clear_current_matrices): Likewise.
4421 (clear_desired_matrices): Likewise.
4422 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
4423 (free_glyphs): Free the toolbar window and its matrices.
4424
4425 * frame.h (struct frame): Add toolbar_window.
4426
4427 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
4428 with relief.
4429
4430 1998-10-10 Gerd Moellmann <gerd@gnu.org>
4431
4432 * dispnew.c (buffer_posn_from_coords): Don't screw up if
4433 window start is not in the range BEGV..ZV.
4434
4435 1998-10-09 Gerd Moellmann <gerd@gnu.org>
4436
4437 * xdisp.c (try_scrolling): Experimentally handle the case
4438 that scroll-preserve-screen-position is set to `always'.
4439
4440 * window.c (Vscroll_preserve_screen_position): Replacement for
4441 scroll_preserve_screen_position.
4442
4443 1998-10-08 Gerd Moellmann <gerd@gnu.org>
4444
4445 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
4446 doesn't like it.
4447 * xdisp.c: Ditto.
4448
4449 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
4450
4451 1998-10-06 Gerd Moellmann <gerd@gnu.org>
4452
4453 * minibuf.c (Fminibuffer_complete_word): Fix computation of
4454 i_byte when prompts are inserted into minibuffers.
4455
4456 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
4457 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
4458 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
4459
4460 1998-10-04 Gerd Moellmann <gerd@gnu.org>
4461
4462 * xdisp.c (make_cursor_line_fully_visible): New.
4463 (try_scrolling): New.
4464 (redisplay_window): Move scrolling code to try_scrolling.
4465 (make_cursor_line_fully_visible): Handle case of window too small
4466 to show a single line.
4467 (redisplay_window): Case forced window start---use
4468 make_cursor_line_fully_visible.
4469 (redisplay_window): Case cursor movement via current matrix.
4470 If ending up on a partially visible line, make it fully visible
4471 instead of recentering.
4472 (try_scrolling): Additional parameter scroll_smoothly.
4473
4474 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
4475
4476 1998-09-28 Gerd Moellmann <gerd@gnu.org>
4477
4478 * window.c (window_scroll_pixel_based): Bug fix: vpos used
4479 instead of y-position for scroll-preserved-screen-position.
4480
4481 1998-09-07 Gerd Moellmann <gerd@gnu.org>
4482
4483 * dispnew.c (update_frame_line): If current row is not enabled,
4484 write the whole line.
4485
4486 1998-09-06 Gerd Moellmann <gerd@gnu.org>
4487
4488 * lisp.h (HAVE_FACES): Removed.
4489
4490 * dispextern.h (HAVE_FACES): Removed.
4491
4492 * config.in (HAVE_FACES): Removed.
4493
4494 * dispnew.c (HAVE_FACES): Removed.
4495
4496 * xdisp.c (HAVE_FACES): Removed.
4497
4498 * xfaces.c (HAVE_FACES): Removed.
4499
4500 1998-09-05 Gerd Moellmann <gerd@gnu.org>
4501
4502 * xdisp.c (init_iterator): If face_change_count is non-zero,
4503 free realized faces.
4504
4505 * xfaces.c (free_all_realized_faces): Make it externally visible.
4506 (Finternal_set_lisp_face_attribute): Increment
4507 windows_or_buffers_changed.
4508
4509 * dispnew.c (direct_output_for_insert): Give up if
4510 face_change_count is non-zero.
4511 (direct_output_forward_char): Ditto.
4512
4513 * xfaces.c (face_change_count): New.
4514
4515 1998-09-04 Gerd Moellmann <gerd@gnu.org>
4516
4517 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
4518 of range.
4519
4520 1998-09-03 Gerd Moellmann <gerd@gnu.org>
4521
4522 * term.c (Ftty_display_color_p): New.
4523
4524 1998-09-02 Gerd Moellmann <gerd@gnu.org>
4525
4526 * xfaces.c (Ftty_defined_colors): New.
4527
4528 * xterm.c (x_produce_glyphs): Fix computation of
4529 contains_overlapping_glyphs_p for ASCII.
4530
4531 * dispnew.c (Fshow_cursor): Don't change cursor state while
4532 redisplaying.
4533 (direct_output_for_insert): If a glyph with lbearing or rbearing
4534 is among the new glyphs, set row flag contains_overlapping_glyph_p.
4535
4536 1998-09-01 Gerd Moellmann <gerd@gnu.org>
4537
4538 * term.c (OUTPUT_IF): Make replacement text have statement form.
4539 (OUTPUT1_IF): Ditto.
4540 (TS_italic_mode, TS_end_italic_mode): Removed.
4541 (TS_bold_mode): Removed.
4542 (TS_underscore_mode, TS_end_underscore_mode): Removed.
4543 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
4544 (TS_enter_reverse_mode): New.
4545 (TS_enter_underline_mode, TS_exit_underline_mode): New.
4546 (TN_magic_cookie_glitch_ul): New.
4547 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
4548 (TS_exit_attribute_mode): New.
4549 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
4550 (TS_set_foreground, TS_set_background): New.
4551 (reset_terminal_modes): Switch colors back to default.
4552 (write_glyphs): Turn face on before writing text, turn it off
4553 afterwards.
4554 (insert_glyphs): Ditto.
4555 (term_init): Initialize new terminal capability variables.
4556 (turn_on_face): Turn a face on.
4557 (turn_off_face): Turn a face off.
4558
4559 * lisp.h (MAKE_GLYPH): Remove test for frame type.
4560 (GLYPH_CHAR): Ditto.
4561 (GLYPH_FACE): Ditto.
4562
4563 * xfaces.c (Vface_tty_color_alist): New.
4564 (face-register-tty-color): New.
4565 (face-clear-tty-colors): New.
4566
4567 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
4568 (struct it): Remove member faces_p since we now always have faces.
4569
4570 1998-08-31 Gerd Moellmann <gerd@gnu.org>
4571
4572 * dispextern.h (struct face): Add tty appearance flags.
4573
4574 * xdisp.c (init_iterator): Always handle faces.
4575 (extend_face_to_end_of_line): Handle tty frames.
4576
4577 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
4578 passed in.
4579
4580 1998-08-30 Gerd Moellmann <gerd@gnu.org>
4581
4582 * xfaces.c (realize_default_face): Use empty strings to indicate
4583 that the face should use the default foreground/background
4584 color of the terminal. Fill font-related attributes with
4585 appropriate values for tty frames.
4586
4587 * emacs.c (main): Call syms_of_xfaces before init_window_once.
4588
4589 * xfaces.c (realize_default_face): If face `default' is not
4590 yet known, create it.
4591
4592 * frame.c (make_terminal_frame): Call init_frame_faces
4593 unconditionally.
4594
4595 * xfaces.c (init_frame_faces): Make it work for tty frames.
4596 (free_frame_faces): Ditto.
4597 (clear_face_cache): Ditto.
4598 (recompute_basic_faces): Ditto.
4599 (Fframe_face_alist): Ditto.
4600 (free_realized_face): Ditto.
4601 (prepare_face_for_display): Ditto.
4602 (clear_face_gcs): Ditto.
4603 (lookup_face): Ditto.
4604 (smaller_face): Ditto.
4605 (realize_default_face): Ditto.
4606 (realize_face): Ditto.
4607 (realize_face): Dispatch to functions depending on the frame type.
4608 (realize_x_face): X way of realizing faces.
4609 (realize_tty_face): TTY way of realizing faces.
4610
4611 1998-08-29 Gerd Moellmann <gerd@gnu.org>
4612
4613 * xfaces.c (realize_face): Remove parameter unibyte_registry,
4614 compute it instead.
4615 (lookup_face): Remove local variable unibyte_registry.
4616
4617 1998-08-22 Gerd Moellmann <gerd@gnu.org>
4618
4619 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
4620 1 pixel longer.
4621
4622 * xdisp.c (face_before_or_after_it_pos): Fix computation
4623 of face in buffer.
4624
4625 * editfns.c (make_buffer_string_both): If prompt in buffer,
4626 prevent start > end.
4627
4628 * indent.c (Fvertical_motion): Set current_buffer to window's
4629 buffer if it isn't already.
4630
4631 1998-08-21 Gerd Moellmann <gerd@gnu.org>
4632
4633 * dispextern.h (GLYPH_DEBUG): Use default 0.
4634
4635 * xdisp.c (it_props): New member `smaller'.
4636 (init_iterator): Initialize it.
4637 (Qsmaller): New.
4638 (push_it): Save value of `smaller' value on the stack.
4639 (pop_it): Restore `smaller' from the stack.
4640 (handle_smaller_prop): New.
4641 (handle_face_prop): Use `smaller' text property to select a
4642 suitable face.
4643
4644 * dispextern.h (SMALLER_PROP_IDX): New.
4645 (struct it): Add member `smaller'.
4646
4647 * xfaces.c (smaller_face): New.
4648
4649 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
4650
4651 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
4652 total pixel width of window differently.
4653
4654 * xdisp.c (init_iterator): Compute width of mode line differently.
4655
4656 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
4657 of bitmap areas.
4658
4659 * window.c (Fsplit_window): Include width of bitmap areas in
4660 window width.
4661 (window_internal_width): Subtract width of bitmap areas from
4662 total width.
4663
4664 1998-08-18 Gerd Moellmann <gerd@gnu.org>
4665
4666 * xdisp.c: Functions reordered for better readability.
4667
4668 * dispnew.c (update_text_area): Handle glyphs with arbitrary
4669 lbearing.
4670 (update_window_tree): Parameter no_scrolling_p removed.
4671 (update_single_window): Ditto.
4672
4673 * xterm.c (x_get_char_font_and_encoding): Renamed to
4674 x_get_char_face_and_encoding.
4675
4676 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
4677 if end of current row reached.
4678
4679 * xterm.c (x_get_glyph_face_and_encoding): New.
4680 (x_get_glyph_overhangs): Call it.
4681
4682 * xdisp.c (Qshow_trailing_whitespace): New.
4683 (Qtrailing_whitespace): New.
4684 (enum prop_handled): New.
4685 (struct props, it_props): New.
4686 (next_overlay_change): New. Works like Fnext_overlay_change
4687 but doesn't use xmalloc.
4688 (handle_stop): Restructured.
4689 (face_before_or_after_it_pos): Case iteration over a string: fix
4690 handling of face before current position.
4691
4692 1998-08-16 Gerd Moellmann <gerd@gnu.org>
4693
4694 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
4695 reallocation matrix if fonts_changed_p.
4696 (update_text_area): Handle glyphs with lbearing.
4697
4698 1998-08-14 Gerd Moellmann <gerd@gnu.org>
4699
4700 * xdisp.c (struct props): New.
4701 (it_props): New.
4702 (compute_prop_info): New.
4703 (handle_stop): New.
4704
4705 * textprop.c (validate_interval_range): Make it externally
4706 visible.
4707
4708 * dispnew.c (direct_output_for_insert): Remove calls
4709 to compute_stop_pos.
4710
4711 * dispextern.h (struct it): Remove check_charpos,
4712 next_overlay_pos. Add what_changes.
4713
4714 1998-08-10 Gerd Moellmann <gerd@gnu.org>
4715
4716 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
4717
4718 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
4719 face_default_registry instead.
4720
4721 * syntax.c (scan_sexps_forward): Set up syntax table before
4722 jumping to initial state label.
4723
4724 1998-08-09 Gerd Moellmann <gerd@gnu.org>
4725
4726 * dispnew.c (check_matrix_invariants): Handle case of row end pos
4727 >= ZV specially.
4728
4729 1998-08-08 Gerd Moellmann <gerd@gnu.org>
4730
4731 * xdisp.c (redisplay_window): Case cursor movement---if cursor
4732 ends up in partially visible row, try to scroll. Case forced
4733 window start---handle windows not tall enough to show a single
4734 line.
4735
4736 * window.h (struct window): Member dy renamed vscroll.
4737
4738 * xterm.c (x_list_fonts): Re-activate suppression of scalable
4739 fonts.
4740 (x_draw_stretch_glyph_string): Set clipping if using GC that
4741 hasn't set it yet.
4742
4743 * xdisp.c (redisplay_window): Case forced window start -
4744 don't let cursor end on partially visible row. Use desired
4745 matrix to find a suitable PT if it doesn't appear.
4746 (decode_mode_spec): Merged with 20.2.97.
4747 (try_window_reusing_current_matrix): Give up if old or
4748 new display is vscrolled.
4749 (redisplay_window): Reset vscrolling if forced window start,
4750 or if recentering.
4751
4752 1998-08-06 Gerd Moellmann <gerd@gnu.org>
4753
4754 * xfaces.c (realize_default_face): Use the fontset name instead of
4755 the alias for the family attribute of the default face because we
4756 can't easily determine a good alias from fontset-alias-alist.
4757 (face_fontset): Use Fquery_fontset to find the fontset.
4758 (font_list): Additional pattern parameter.
4759 (try_font_list): Ditto.
4760 (set_lface_from_font_name): Set face family from font foundry
4761 and family.
4762 (font_list): If family contains a hyphen, build pattern differently.
4763
4764 1998-08-05 Gerd Moellmann <gerd@gnu.org>
4765
4766 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
4767 changed instead of setting the frame garbaged.
4768
4769 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
4770 all attribute values. This is wrong if values are unspecified,
4771 i.e. nil.
4772
4773 * xdisp.c (try_window_id): Give up if window start changed.
4774
4775 * xfaces.c (make_realized_face): Store registry as Lisp object.
4776 (load_face_font_or_fontset): Compute registry of a face
4777 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
4778 possible.
4779
4780 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
4781 differently.
4782
4783 * alloc.c (mark_face_cache): Mark the registry member of faces.
4784
4785 * dispextern.h (struct face): Make registry a Lisp string.
4786
4787 1998-08-04 Gerd Moellmann <gerd@gnu.org>
4788
4789 * xterm.c (x_get_char_font_and_encoding): Additional parameter
4790 multibyte_p. Handle unibyte text.
4791 (x_append_glyph): Set the multibyte_p flag of glyphs.
4792 (x_produce_image_glyph): Ditto.
4793 (x_append_stretch_glyph): Ditto.
4794 (x_produce_glyphs): Handle unibyte text like ASCII.
4795
4796 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
4797 stack.
4798 (pop_it): Restore it.
4799 (face_before_or_after_it_pos): Handle the case that the string or
4800 buffer is unibyte.
4801 (get_overlay_strings): Set the multibyte flag of the iterator if
4802 the new overlay string is multibyte.
4803 (get_glyph_property): Likewise.
4804 (get_next_display_element): Don't check for charset changes in
4805 unibyte text.
4806 (append_space): Compute face differently for unibyte text.
4807 (extend_face_to_end_of_line): Don't return quickly if face has
4808 stipple.
4809
4810 * xfaces.c (load_face_font_or_fontset): Store registry and
4811 encoding of the font in the registry member of the face.
4812 (make_realized_face): Additional parameter `registry'.
4813 (free_realized_face): Free the registry of a realized face.
4814 (face_suitable_for_charset_p): Function form of the macro
4815 with the same name in uppercase.
4816 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
4817 (choose_face_font): New parameter unibyte_registry.
4818 (choose_face_fontset_font): Ditto.
4819 (realize_default_face): Remember the registry and encoding of
4820 the specified frame font in Vx_unibyte_registry_and_encoding.
4821 (face_at_buffer_position): Handle unibyte.
4822 (face_at_string_position): Likewise.
4823 (realize_face): New parameter unibyte_registry.
4824 (compute_char_face): Handle the unibyte case.
4825
4826 * dispextern.h (struct glyph): Add bit multibyte_p.
4827 (struct face): New member registry holding the registry and
4828 encoding of the X font of the face.
4829 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
4830 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
4831 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
4832 text.
4833 (struct iterator_stack_entry): Add multibyte_p.
4834
4835 * xdisp.c (string_pos): Use string_char_to_byte.
4836 (char_charset): Removed.
4837
4838 1998-08-03 Gerd Moellmann <gerd@gnu.org>
4839
4840 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
4841 rectangle for a block cursor over an image without a mask.
4842 (x_stretch_block_cursor): Added. Non-zero means don't draw
4843 a block cursor over a stretch as wide as that stretch.
4844 (x_draw_stretch_glyph_string): Use it.
4845 (x_draw_hollow_cursor): Ditto.
4846
4847 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
4848 (read_minibuf): Add front-sticky text property for prompt.
4849
4850 * xdisp.c (char_charset): Return charset of a character,
4851 depending on whether or not multi-byte characters are enabled.
4852
4853 * xfaces.c (Fset_face_charset_registry): Removed.
4854 (x_charset_registry): Determine registry from charset plist.
4855
4856 1998-08-02 Gerd Moellmann <gerd@gnu.org>
4857
4858 * xdisp.c (get_next_display_element): Don't check for charset
4859 changes if multi-byte characters are not enabled.
4860
4861 * xdisp.c (echo_area_display): Use the flush function from the
4862 redisplay interface.
4863 * keyboard.c (detect_input_pending_run_timers): Likewise.
4864
4865 * dispextern.h (produce_*glyphs_hook): Removed.
4866 * term.c (produce_*glyphs): Ditto.
4867 (cursor_to): Remove pixel position parameters.
4868
4869 * dispnew.c: Remove hooks for window-based redisplay, introduce
4870 a redisplay interface structure.
4871
4872 * xterm.c (x_per_char_metric): Return default char metrics if per
4873 char metric exists but contains a zero width. Adobe Courier seems
4874 to contain such characters.
4875
4876 * xdisp.c (compute_line_metrics): Compute the width of rows
4877 without stopping at glyphs with zero width.
4878
4879 1998-08-01 Gerd Moellmann <gerd@gnu.org>
4880
4881 * xdisp.c (display_mode_line): If nothing was displayed at all,
4882 display a space.
4883 (hscroll_window_tree): Don't subtract 1 from target point if equal
4884 to ZV and window is not the selected window.
4885
4886 * dispnew.c (check_matrix_invariants): Remove check for window
4887 start at BEGV or after newline. This happens in rare cases
4888 intentionally.
4889
4890 1998-07-31 Gerd Moellmann <gerd@gnu.org>
4891
4892 * xfaces.c (x_charset_registry): Use STRING_BYTES.
4893 (syms_of_xfaces): Add Vface_default_registry.
4894 (x_charset_registry): Use it.
4895
4896 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
4897 (redisplay_window): Use it.
4898
4899 * dispnew.c (update_text_area): Handle lbearing of deleted text
4900 by backing up one character.
4901
4902 1998-07-30 Gerd Moellmann <gerd@gnu.org>
4903
4904 * dispnew.c (adjust_glyph_matrix): Use a different check to
4905 decide to do nothing.
4906
4907 * xfaces.c (face_at_string_position): Additional parameter
4908 mode_line_p. If non-zero, merge with the mode line face
4909 instead of the default face.
4910 * dispextern.h (struct it): Add mode_line_p.
4911 * xdisp.c (init_iterator): Set it.
4912 (compute_face_in_string): Use it.
4913 (face_before_or_after_it_pos): Handle strings.
4914 (get_next_display_element): Don't look for relief end in C strings.
4915 (next_element_from_string): Deliver string position instead of
4916 buffer position.
4917
4918 * xterm.c (x_flush): Flush X output buffer.
4919 (XTflash): Use it.
4920
4921 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
4922 Allow strings as face names.
4923
4924 * xfns.c (forall_images_in_image_cache): Check that frame is
4925 alive.
4926
4927 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
4928 it's also called from x_destroy_window. Since this function is
4929 called from X, freeing stuff allocated with xmalloc is dangerous
4930 here, anyway.
4931
4932 * xfaces.c (free_realized_faces): Don't clear current matrices
4933 of a frame being destroyed.
4934
4935 * frame.c (make_frame): Call set_window_buffer instead of
4936 Fset_window_buffer.
4937
4938 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
4939 with an additional argument specifying whether or not hooks may
4940 be called.
4941 (Fset_window_buffer): Call it.
4942
4943 * dispnew.c (clear_desired_matrices): Check that frame has
4944 a valid root window before clearing matrices in the window tree.
4945 (clear_current_matrices): Ditto.
4946 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
4947 vchild are valid windows if not nil.
4948
4949 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
4950 for :inverse-video.
4951 (Finternal_set_lisp_face_attribute): Ditto.
4952 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
4953 (Finternal_get_lisp_face_attribute): Ditto.
4954 (Finternal_lisp_face_attribute_values): Ditto.
4955 (syms_of_xfaces): Define the symbol `:reverse-video'.
4956
4957 * xdisp.c (get_glyph_property): Renamed from
4958 fill_iterator_from_glyph_property.
4959 (next_element_from_buffer): Handle case that no `glyph' property
4960 was found correctly.
4961 (display_line): Extend face to end of line only if we have faces.
4962
4963 1998-07-29 Gerd Moellmann <gerd@gnu.org>
4964
4965 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
4966 additional window argument.
4967
4968 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
4969 set_iterator_to_previous_visible_line_start.
4970 (reseat_at_next_visible_line_start): Likewise.
4971 (compute_stop_pos): Renamed from set_iterator_stop_pos.
4972 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
4973 (compute_face_in_buffer): Renamed from
4974 compute_face_at_iterator_position.
4975 (compute_face_in_string): Renamed from
4976 compute_face_at_iterator_string_position.
4977 (get_space_width): Renamed from get_iterator_space_width.
4978 (next_overlay_string): Renamed from
4979 set_iterator_to_next_overlay_string.
4980 (get_overlay_strings): Renamed from
4981 get_overlay_strings_at_iterator_position.
4982 (restore_overlay_strings): Renamed from
4983 setup_overlay_strings_from_glyph_pos.
4984 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
4985 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
4986 (init_to_row_start): Renamed from init_iterator_to_row_start.
4987 (init_to_row_end): Formerly init_iterator_to_next_row_start.
4988
4989 * xterm.c: Merge with 20.2.97.
4990 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
4991
4992 * dispextern.h (struct glyph): Replace text_pos position with
4993 simple charpos.
4994
4995 * xdisp.c (this_line_start_pos): Use struct text_pos.
4996 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
4997 (enum move_it_result): Renamed from move_iterator_result.
4998 (string_pos_nchars_ahead): Compute text_pos in a string from a
4999 known text_pos plus a character delta.
5000 (string_pos): Compute text_pos in string from charpos.
5001 (c_string_pos): Likewise for a C string.
5002 (number_of_chars): Return number of characters in a possibly
5003 multi-byte C string.
5004 (check_it): Renamed from check_iterator. Check that charpos and
5005 bytepos are in sync.
5006 (push_it): Renamed from save_iterator_settings.
5007 (pop_it): Renamed from restore_iterator_settings.
5008 (move_it_.*): Renamed from move_iterator_.*.
5009 (charset_at_position): Take charpos/bytepos into account.
5010 (back_to_previous_line_start): Set iterator to previous line start.
5011 (forward_to_next_line_start): Set iterator to next line start.
5012 (back_to_previous_visible_line_start): Renamed from
5013 move_iterator_previous_visible_line_start.
5014 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
5015 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
5016 Handle charpos/bytepos.
5017 (compute_face_at_iterator_position): Handle charpos/bytepos.
5018 (compute_face_at_iterator_string_position): Likewise.
5019 (get_iterator_space_width): Likewise.
5020 (load_overlay_strings): Likewise.
5021 (get_overlay_strings_at_iterator_position): Likewise.
5022 (reseat_iterator): Take a text_pos position argument.
5023 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
5024 bytepos.
5025 (init_iterator): Take additional bytepos parameter.
5026 (reseat_iterator_to_string): Handle charpos/bytepos.
5027 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
5028 (next_element_from_string): Handle charpos/bytepos.
5029 (next_element_from_c_string): Likewise.
5030 (fill_iterator_from_glyph_property): Likewise.
5031 (next_element_from_buffer): Likewise.
5032 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
5033 (move_iterator_in_display_line_to): Handle charpos/bytepos.
5034 (move_it_to): Likewise.
5035 (move_it_vertically_backward): Likewise.
5036 (move_it_vertically): Likewise.
5037 (move_it_by_lines): Likewise.
5038 (hscroll_window_tree): Likewise.
5039 (redisplay_internal): Likewise.
5040 (set_cursor_from_row): Likewise.
5041 (redisplay_window): Likewise.
5042 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
5043 (try_window_reusing_current_matrix): Handle charpos/bytepos.
5044 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
5045 (try_window_id): Handle charpos/bytepos.
5046 (Ftrace_redisplay_toggle): Return Qnil.
5047 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
5048 (insert_left_trunc_glyphs): Likewise.
5049
5050 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
5051 do a real merge).
5052 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
5053 (increment_glyph_row_buffer_positions): Ditto.
5054 (copy_glyph_row_contents): Ditto.
5055 (check_matrix_invariants): Add additional checks for charpos/
5056 bytepos consistency.
5057 (direct_output_for_insert): Changed for charpos/bytepos.
5058 (buffer_posn_from_coords): Likewise. Put code dealing with
5059 `direction-reversed' in #if 0.
5060
5061 * xterm.h: Merge with 20.2.97.
5062
5063 * frame.h: Merge with 20.2.97.
5064
5065 * window.h: Merge with 20.2.97. Add window_end_bytepos.
5066
5067 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
5068 start.
5069 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
5070 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
5071 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
5072 (struct it): Various members renamed from .*pos to .*charpos.
5073 (IT_CHARPOS): Access current buffer character position of an
5074 iterator.
5075 (IT_BYTEPOS): Access current buffer byte position of an iterator.
5076 (IT_STRING_CHARPOS): Access current string character position of
5077 an iterator.
5078 (IT_STRING_BYTEPOS): Access current string byte position of
5079 an iterator.
5080 (globally): Add function prototypes from 20.2.97.
5081
5082 * everywhere: Use P_ instead of PROTO for function prototypes
5083 because everyone else seems to use P_.
5084
5085 * dispextern.h (struct text_pos): Structure describing a charpos/
5086 bytepos position in text.
5087 (BYTEPOS): Access the byte position part of a text_pos.
5088 (CHARPOS): Likewise for the character position.
5089 (SET_TEXT_POS): Set a text_pos from a character and byte position.
5090 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
5091 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
5092 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
5093 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
5094 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
5095 for buffer and string positions.
5096 (struct glyph): Use text_pos.
5097 (struct it): Renamed from display_iterator. Use text_pos.
5098
5099 1998-07-23 Gerd Moellmann <gerd@gnu.org>
5100
5101 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
5102 pixmap.
5103
5104 1998-07-21 Gerd Moellmann <gerd@gnu.org>
5105
5106 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
5107 * xterm.c (x_draw_row_bitmaps): Use it.
5108 * dispnew.c (row_equal_p): Ditto.
5109 (update_window_line): Ditto.
5110
5111 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
5112 flag of images.
5113
5114 * dispextern.h (struct image): Removed member loading_failed_p.
5115 It's probably better to have the chance to try to load an image
5116 again.
5117
5118 1998-07-20 Gerd Moellmann <gerd@gnu.org>
5119
5120 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
5121 at ZV if `indicate-zv-lines' is non-nil.
5122 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
5123
5124 * dispnew.c (row_equal_p): Compare displays_text_p and
5125 ends_at_zv_p flags of rows.
5126 (update_window_line): Ditto.
5127
5128 * buffer.h (struct buffer): New member indicate_zv_lines.
5129
5130 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
5131 (init_buffer_once): New variable `default-indicate-zv-lines'.
5132 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
5133
5134 * xdisp.c (redisplay_window): Don't try moving the cursor
5135 if current glyph row w->last_cursor.vpos isn't enabled.
5136
5137 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
5138
5139 * window.c (Fset_window_vscroll): Allow only negative scroll
5140 values. Others don't seem to make sense, and this way it's easy
5141 to restore a vscroll of zero.
5142
5143 * xterm.c (x_inverted_image_mask): Check that pixmap could be
5144 allocated.
5145 (x_draw_image_glyph_string_background): Don't clip if pixmap
5146 could not be created.
5147
5148 * xfns.c (xbm_load_image_from_file): Check that pixmap could
5149 be created.
5150 (xbm_load): Ditto.
5151 (gs_load): Ditto.
5152
5153 * xterm.c (x_get_glyph_overhangs): Take image and stretch
5154 glyphs into account.
5155
5156 * xfaces.c (realize_default_face): Don't set font family of
5157 the default face from the fontset alias name for `fontset-startup'.
5158
5159 * xfns.c (gs_load): Pass frame's pixel foreground and background
5160 color to the Lisp loader.
5161
5162 1998-07-19 Gerd Moellmann <gerd@gnu.org>
5163
5164 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
5165 libtiff34.
5166
5167 * configure.in (--with-tiff, HAVE_TIFF): Added.
5168
5169 * config.in (HAVE_TIFF): Added.
5170
5171 * Makefile.in (LIBTIFF): Added.
5172
5173 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
5174
5175 * Makefile.in (LIBJPEG): Added.
5176
5177 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
5178 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
5179 jpeglib.h.
5180
5181 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
5182 where the library is installed in /usr/local/lib, e.g. FreeBSD,
5183 configure must be run with `--x-includes=/usr/X11R6/include:
5184 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
5185
5186 1998-07-18 Gerd Moellmann <gerd@gnu.org>
5187
5188 * config.in (HAVE_JPEG): Added.
5189
5190 * xfns.c (ct_init): Initialize color table used to map RGB colors
5191 from images to X pixel colors.
5192 (ct_free): Free color table.
5193 (ct_lookup): Look an RGB color up.
5194 (ct_allocated_colors): Get vector of allocated colors.
5195 (pbm_image_p): Test if image specification is a valid PPM
5196 image specification.
5197 (pbm_scan_number): Scan a decimal ASCII number from a file.
5198 (pbm_load): Load a PPM image.
5199
5200 * window.c (Fset_window_vscroll): Adjust glyph matrix if
5201 necessary. Take canonical character units as parameter.
5202 (Fwindow_vscroll): Return canonical character units.
5203
5204 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
5205 w->dy to display height for which glyph rows must be allocated.
5206
5207 1998-07-17 Gerd Moellmann <gerd@gnu.org>
5208
5209 * xfaces.c (face_at_string_position): Merge in region face
5210 so that it won't overwrite the font in the region.
5211 (face_at_buffer_position): Ditto.
5212 (realize_basic_faces): Don't realize region face.
5213
5214 * dispextern.h (enum face_id): REGION_FACE_ID removed.
5215
5216 * xterm.c (x_set_glyph_string_background_width): Don't let
5217 cursor face extend to end of line.
5218
5219 * xdisp.c (append_space): If adding space of default face,
5220 make sure glyph ist produced with right face.
5221
5222 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
5223 background color of a glyph string.
5224 (x_draw_glyph_string_background): Call it.
5225 (x_draw_glyph_string_bg_rect): Ditto.
5226 (x_draw_stretch_glyph_string): Ditto.
5227
5228 1998-07-15 Gerd Moellmann <gerd@gnu.org>
5229
5230 * xdisp.c (init_iterator): Initialize it->current_y to the
5231 window's vscroll w->dy.
5232
5233 * window.c (Fwindow_vscroll): Return number of pixels window
5234 is vscrolled smoothly.
5235 (Fset_window_vscroll): Set the number.
5236
5237 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
5238 to_pos in truncated part of a line.
5239
5240 1998-07-14 Gerd Moellmann <gerd@gnu.org>
5241
5242 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
5243 doesn't fit on the line, truncate it, despite truncate_lines nil.
5244 (display_line): Ditto.
5245
5246 * xfns.c: Experimental support for Ghostscript images.
5247
5248 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
5249 (XTread_socket): React on events from Ghostscript.
5250 (expose_frame): If width or height are zero, redraw entire frame.
5251 (XTread_socket): Call expose_frame after receiving event from
5252 Ghostscript.
5253
5254 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
5255 for Ghostscript support.
5256
5257 * xdisp.c (redisplay_internal): Return quickly if called
5258 recursively.
5259
5260 * alloc.c (NSTATICS): Increased to 1024.
5261
5262 1998-07-08 Gerd Moellmann <gerd@gnu.org>
5263
5264 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
5265 iterator's glyph row.
5266 (x_produce_stretch_glyph): Call it.
5267 (x_produce_glyphs): Handle `space-width' property; call
5268 x_append_stretch_glyph.
5269
5270 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
5271 property.
5272 (get_iterator_space_width): Determine value of `space-width'
5273 property at iterator's position.
5274 (reseat_iterator): Call it.
5275 (next_element_from_string): Ditto.
5276 (next_element_from_buffer): Ditto.
5277 (init_iterator): Initialize space_width of iterator.
5278 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
5279 moved, but cursor blinks.
5280 (redisplay_internal): Set w->last_cursor_off_p after update.
5281
5282 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
5283 (struct display_iterator): Add new member space_width.
5284
5285 * window.h (struct window): Add last_cursor_off_p.
5286
5287 1998-07-07 Gerd Moellmann <gerd@gnu.org>
5288
5289 * Saved.
5290
5291 * window.c (Fpos_visible_in_window_p): Case window not up to
5292 date---return nil if iterator hasn't reached position.
5293
5294 1998-07-06 Gerd Moellmann <gerd@gnu.org>
5295
5296 * xdisp.c (text_outside_line_unchanged_p): Fix case that
5297 overlays have changed.
5298 (redisplay_window): Case cursor movement. Don't try it if
5299 last_cursor.vpos is out of range.
5300
5301 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
5302 way, the display optimization for the line containing the cursor
5303 is used more frequently, esp. when we have a blinking cursor.
5304 (display_line): Don't set this_line_.* variables.
5305
5306 * xterm.c (x_redraw_cursor): Removed.
5307 (x_display_and_set_cursor): Set cursor type depending on
5308 cursor_off_p flag of window.
5309
5310 * dispnew.c (redraw_cursor_hook): Removed.
5311 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
5312 member of the selected window.
5313
5314 * xfaces.c (Fface_font): Added for compatibility with 20.2.
5315
5316 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
5317 Return glyph area under x/y.
5318 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
5319
5320 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
5321 after redisplaying.
5322
5323 1998-07-05 Gerd Moellmann <gerd@gnu.org>
5324
5325 * xdisp.c (text_outside_line_unchanged_p): Test if changes
5326 are all outside of a line of text.
5327 (redisplay_internal): Use it.
5328
5329 1998-06-30 Gerd Moellmann <gerd@gnu.org>
5330
5331 * xdisp.c (next_element_from_buffer): After skipping over
5332 invisible text, look for the `glyph' property.
5333 (set_iterator_stop_pos): Ignore check positions in front
5334 of an iterator's current position.
5335
5336 * xterm.c (show_mouse_face): Don't act on rows that don't exist
5337 anymore or which are marked as not having valid contents.
5338
5339 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
5340 realized faces if new attribute value is equal to old value.
5341
5342 1998-06-29 Gerd Moellmann <gerd@gnu.org>
5343
5344 * xfaces.c (Finternal_make_lisp_face): Increment
5345 lface_id_to_name_size when lface_id_to_name is reallocated.
5346
5347 1998-06-27 Gerd Moellmann <gerd@gnu.org>
5348
5349 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
5350 as minimum of endpos and overlay_pos.
5351 (load_overlay_strings): Set next_overlay_pos of iterator to
5352 -1 if we don't have to check for more overlay strings.
5353
5354 1998-05-09 Gerd Moellmann <gerd@gnu.org>
5355
5356 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
5357 do anything if iterator is at ZV because scan_buffer doesn't
5358 work otherwise.
5359
5360 * xterm.c (x_encode_char): Inline it.
5361 (x_get_char_font_and_encoding): Simplified.
5362 (x_per_char_metric): Inline it.
5363
5364 * xterm.c (x_draw_glyph_string_relief): Use clipping.
5365
5366 * xdisp.c (get_next_display_element): Check for end of relief
5367 face moved here from next_element_from_buffer.
5368
5369 * xterm.c (x_produce_image_glyph): Add relief thickness.
5370 (x_produce_stretch_glyph): Ditto.
5371
5372 1998-05-08 Gerd Moellmann <gerd@gnu.org>
5373
5374 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
5375 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
5376
5377 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
5378 from a glyph property.
5379 (x_produce_glyphs): Use it.
5380
5381 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
5382
5383 * xterm.c (x_produce_image_glyph): Add to current_x only if
5384 in text area.
5385 (x_produce_glyphs): Ditto.
5386
5387 * xdisp.c (display_line): Compute row height from glyphs in
5388 marginal areas.
5389
5390 * xterm.c (x_draw_image_glyph_string_background): Draw
5391 background of an image glyph string.
5392 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
5393 the background of a glyph string.
5394 (x_draw_image_glyph_string_foreground): Draw the foreground of
5395 an image glyph string.
5396 (x_inverted_image_mask): Return the inverted mask of an image.
5397
5398 * xfns.c (x_draw_image): Removed.
5399
5400 * dispextern.h (struct image_type): Remove drawing function.
5401
5402 * xfaces.c (load_face_colors): Swap colors if face is inverse.
5403
5404 * xdisp.c (get_next_display_element): In marginal areas, translate
5405 newlines, tabs, etc. like normal control characters.
5406
5407 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
5408 and color.
5409 (free_realized_faces): Set frame garbaged.
5410
5411 * xfaces.c (syms_of_xfaces): Add defsubr for
5412 internal-lisp-face-attribute-values.
5413
5414 1998-05-07 Gerd Moellmann <gerd@gnu.org>
5415
5416 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
5417 full.
5418 (x_produce_image_glyph): Set IT->nglyphs to 1.
5419 (x_draw_image_glyph_string): Use inverted mask to draw background.
5420
5421 * dispextern.h (struct image_type): Additional clipping rect
5422 parameters for drawing functions.
5423
5424 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
5425 a glyph string.
5426 (x_draw_image_glyph_string): Use it and pass the rect to the
5427 image drawing function.
5428
5429 * xdisp.c (fill_iterator_from_glyph_property): Use position of
5430 first character with `glyph' property as image position. Set
5431 iterator back to that position as long as the image hasn't been
5432 consumed with set_iterator_to_next.
5433 (set_cursor_from_row): Accept when glyph with given position is
5434 not found in the row. Set cursor x to end of line in that case,
5435 so that we can hscroll.
5436 (redisplay_internal): Correct computation of delta by which
5437 positions have changed in redisplay optimization for cursor
5438 row of selected window.
5439
5440 * xdisp.c (display_line): Remove start_pos.
5441 (display_line): Fix bug preventing display optimization for
5442 cursor line of selected window.
5443 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
5444 instead.
5445
5446 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
5447 (update_text_area): Take glyph pixel width into account
5448 when trying to find a resync point.
5449 (row_equal_p): Compare glyphs in all areas.
5450
5451 1998-05-06 Gerd Moellmann <gerd@gnu.org>
5452
5453 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
5454
5455 * dispextern.h (struct glyph_row): Use unsigned hash value.
5456
5457 * xdisp.c (display_line): Simplified and made faster by setting
5458 the cursor with set_cursor_from_row.
5459 (set_cursor_from_row): Handle rows of desired matrix.
5460
5461 1998-05-05 Gerd Moellmann <gerd@gnu.org>
5462
5463 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
5464 with type != CHAR_GLYPH.
5465 (fill_iterator_from_glyph_property): Return void. Set
5466 method to next_element_from_image.
5467 (next_element_from_image): Dummy function for delivering a
5468 single image id.
5469 (set_iterator_to_next): Add method next_element_from_image.
5470 (redisplay_window): When recentering, and cursor vpos is -1
5471 after display, assume middle of window is in first line displayed
5472 in window, and display again.
5473 (fill_iterator_from_glyph_property): Assign image glyph
5474 the position of the first character having the glyph property.
5475
5476 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
5477 * xfns.c (x_draw_image): Use it.
5478 * xterm.c (x_produce_image_glyph): Use it.
5479
5480 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
5481
5482 * Makefile.in: Extraneous #define of LIBXPM removed.
5483
5484 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
5485 (x_fill_stretch_glyph_string): Fill a glyph string from a
5486 stretch glyph.
5487 (x_compute_glyph_string_overhangs): Compute overhangs only
5488 for text glyph strings.
5489 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
5490 (x_draw_glyph_string): Call it.
5491
5492 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
5493 (struct glyph): Add sub-structure for stretchable glyphs.
5494 (GLYPH_EQUAL_P): Compare glyph type and u.val.
5495
5496 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
5497 #ifdef HAVE_FACES.
5498
5499 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
5500
5501 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
5502 setup_iterator_from_glyph_property. Don't do it for terminal
5503 frames.
5504
5505 * xterm.c (x_produce_image_glyph): Produce glyph for image
5506 that can't be loaded.
5507
5508 * xfns.c (lookup_image): If image can't be loaded, set its
5509 width and height so that we can draw a rectangle.
5510 (x_draw_image): Draw a rectangle for images that don't have
5511 a pixmap.
5512 (make_image): Set hash value.
5513 (image_spec_equal_p): Use image_spec_value.
5514
5515 * xterm.c (expose_frame): Don't try to redraw if basic faces
5516 haven't benn realized yet.
5517 (x_draw_image_glyph_string): Fill background only if image
5518 is not as tall as row.
5519
5520 1998-05-04 Gerd Moellmann <gerd@gnu.org>
5521
5522 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
5523 (LIBX)[HAVE_X11]: Add LIBXPM.
5524
5525 * xfns.c (xpm_image_p): Implementation of image type functions
5526 for XPM.
5527 (xpm_load): Ditto.
5528
5529 * dispextern.h (struct image): Add mask pixmap for XPM.
5530
5531 * xfns.c (x_draw_image): Handle images with masks.
5532
5533 * configure.in: --with-xpm added. Code detecting -lXpm added.
5534
5535 * config.in: Add HAVE_XPM.
5536
5537 * xfns.c (xbm_draw): Removed.
5538 (x_draw_image): Default implementation for drawing images.
5539 (xbm_keyword_index): Remove XBM_DEPTH.
5540 (xbm_format): Remove `:depth'.
5541 (xbm_image_spec_from_file): Removed to reduce consing.
5542 (xbm_load_image_from_file): Added for the same reason.
5543
5544 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
5545 glyph string.
5546 (x_draw_image_glyph_string): Pass ybase to image draw function.
5547
5548 * xfns.c (make_image): Set default baseline.
5549
5550 * xterm.c (x_produce_image_glyph): Compute ascent of image
5551 from its height and baseline percentage.
5552
5553 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
5554 (xbm_format): Add description for `:baseline'.
5555 (xbm_image_spec_from_file): Add keywords from original spec to
5556 result.
5557 (xbm_load): Set baseline of image.
5558 (xbm_image_p): Check range for baseline.
5559
5560 * dispextern.h (struct image): Add member baseline.
5561
5562 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
5563
5564 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
5565
5566 * xdisp.c (get_next_display_element): Do character translations
5567 only if delivering characters.
5568
5569 1998-05-03 Gerd Moellmann <gerd@gnu.org>
5570
5571 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
5572 DISP_CHARACTER.
5573
5574 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
5575 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
5576
5577 1998-05-02 Gerd Moellmann <gerd@gnu.org>
5578
5579 * xfns.c (prepare_image_for_display): Set image timestamp.
5580 (clear_image_cache): Clear images if image's timestamp +
5581 Vimage_eviction_seconds is > now.
5582 (syms_of_xfns): New variables image-eviction-seconds, and
5583 image-types.
5584 (add_image_format): Add to image-types.
5585 (xbm_load): Support new image spec format.
5586 (x_alloc_image_color): Allocate a color for an image.
5587
5588 * dispextern.h (struct image): Add timestamp.
5589
5590 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
5591 vectors of bool-vectors.
5592 (xbm_lisp_object_from_file): Build new format image spec.
5593
5594 1998-05-01 Gerd Moellmann <gerd@gnu.org>
5595
5596 * xfaces.c (init_frame_faces): Initialize image cache.
5597 (free_frame_faces): Free it.
5598
5599 * xterm.c (x_delete_display): Don't free image cache.
5600
5601 * emacs.c (main): Call init_xfns.
5602
5603 1998-04-30 Gerd Moellmann <gerd@gnu.org>
5604
5605 * alloc.c (mark_object): Mark objects in image cache.
5606
5607 * xfns.c (x_set_internal_border_width): Correct call to
5608 widget_store_internal_border_width.
5609
5610 * widget.c (widget_store_internal_border): Return void.
5611
5612 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
5613 void.
5614 (init_x_parm_symbols): Return void.
5615 (x_report_frame_params): Ditto.
5616 (x_set_border_pixel): Ditto.
5617 (syms_of_xfns): Ditto.
5618 (x_destroy_all_bitmaps): Use xfree instead of free.
5619
5620 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
5621
5622 * xterm.c (x_term_init): Initialize image_cache of display info.
5623 (x_delete_display): Free image cache.
5624
5625 * xterm.h (struct x_display_info): Add image_cache.
5626
5627 * xfns.c (make_image_cache): Allocate a new image cache.
5628 (free_image_cache): Free an image cache.
5629 (make_image): Allocate an image.
5630 (free_image): Free an image.
5631
5632 * dispextern.h (struct image): Structure describing an image.
5633 (struct image_cache): Structure describing an image cache.
5634
5635 1998-04-29 Gerd Moellmann <gerd@gnu.org>
5636
5637 * xdisp.c (check_iterator_glyph_property): Return int. Value is
5638 non-zero if iterator is filled with something to return.
5639 (next_element_from_buffer): Immediately return if
5640 setup_iterator_from_glyph_prop has filled iterator with pixmap.
5641 (next_element_from_string): Likewise.
5642
5643 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
5644
5645 * dispextern.h (struct glyph): Add pixmap_id.
5646 (display_element_type): Add DISP_PIXMAP.
5647
5648 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
5649 malloc/free.
5650
5651 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
5652 (clear_face_cache): Call it.
5653
5654 * xterm.c (x_query_font): Don't look at empty font table slots.
5655 (x_compute_min_glyph_bounds): Likewise.
5656 (x_term_init): Initialize font_table to null.
5657 (x_load_font): Change allocation of font_info structures so
5658 that it is possible to free fonts.
5659
5660 * xfns.c (Fx_close_connection): Use xfree instead of free.
5661 Only free fonts from filled font table entries.
5662
5663 * xfaces.c (best_matching_font): Support use of scalable fonts.
5664 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
5665
5666 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
5667 and resy.
5668 * xterm.c (x_term_init): Compute resx and resy.
5669
5670 * xfaces.c (split_font_name): Don't reject scalable fonts.
5671
5672 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
5673 in #if 0.
5674
5675 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
5676 point size cannot be determined.
5677
5678 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
5679 width over all fonts on a frame.
5680 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
5681 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
5682 macros.
5683
5684 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
5685 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
5686 (x_load_font): Use x_compute_min_char_bounds.
5687
5688 * xterm.h (struct x_display_info): New members smallest_char_width
5689 and smallest_font_height.
5690
5691 1998-04-28 Gerd Moellmann <gerd@gnu.org>
5692
5693 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
5694 the same name if GC of face is zero.
5695
5696 * dispextern.h (struct face): Member non_ascii_gc removed.
5697
5698 * xterm.c (x_get_char_font_and_encoding): Return face's font
5699 for characters < 0177 in default face. Prepare face for
5700 display before returning it.
5701 (x_produce_glyphs): Use it->charset.
5702 (x_get_char_font_and_encoding): Simplified.
5703 (x_encode_char): Remove parameter `font'.
5704
5705 * xfaces.c (choose_face_font): If registry from charset symbol
5706 doesn't contain a `-', make it a pattern by appending "*-*".
5707
5708 * xdisp.c (check_iterator_glyph_property): Adjust limit for
5709 glyph_check_pos computation to character boundary.
5710
5711 1998-04-27 Gerd Moellmann <gerd@gnu.org>
5712
5713 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
5714
5715 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
5716 ASCII face for a given Lisp face id.
5717
5718 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
5719 account.
5720 (reseat_iterator): Set glyph_check_pos. Handle case where
5721 new position is < original position.
5722 (check_iterator_glyph_property): Handle glyph property in strings.
5723 (next_element_from_string): Call above function.
5724 (next_element_from_display_vector): Handle faces in glyphs.
5725 (get_next_display_element): Set face_id of glyphs for
5726 control chars to zero.
5727
5728 * Makefile.in (term.o): Add dependency on dispextern.h.
5729
5730 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
5731 (display_line): Handle marginal areas.
5732 (move_iterator_in_display_line_to): Likewise.
5733
5734 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
5735
5736 * xfaces.c (face_at_buffer_position): Don't merge with nil
5737 text property.
5738 (face_at_string_position): Ditto.
5739
5740 * dispextern.h (struct display_iterator): Use a stack of saved
5741 values instead of saving check positions etc. individually.
5742
5743 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
5744 maybe pop the iterator's stack.
5745 (save_iterator_settings): Push a value on iterator's stack.
5746 (get_overlay_strings_at_iterator_position): Use it.
5747 (restore_iterator_settings): Pop the stack.
5748 (set_iterator_to_next_overlay_string): Use it.
5749
5750 * xfaces.c (try_font_list): Use alternative font families.
5751
5752 1998-04-26 Gerd Moellmann <gerd@gnu.org>
5753
5754 * xfaces.c (Fset_face_font_sort_order): Set the order in which
5755 font selection matches fonts.
5756 (Fface_font_sort_order): Return the font sort order.
5757 (best_matching_font): Find best matching font based on sort order.
5758 (cmp_font_names): Sort by given sort order.
5759
5760 * dispextern.h (struct display_iterator): New member faces_p.
5761 * xdisp.c (init_iterator): Initialize it->faces_p.
5762 (compute_face_at_iterator_string_position): Use it.
5763 (compute_face_at_iterator_position): Use it.
5764 (init_iterator): Use it.
5765 (display_mode_line): Ditto.
5766
5767 * xdisp.c (get_next_display_element): Put code choosing a face
5768 when the charset changes in #ifdef HAVE_FACES.
5769
5770 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
5771 lookup_face_for_charset.
5772
5773 * xfaces.c (free_font_names): Renamed from free_split_font_names.
5774 (free_all_realized_faces): Renamed from remove_all_realized_faces.
5775
5776 1998-04-25 Gerd Moellmann <gerd@gnu.org>
5777
5778 * xfaces.c (best_matching_font): Return the name of the best
5779 matching font in an array of font_name structures.
5780 (choose_face_font): Use it.
5781 (choose_face_fontset_font): Use it.
5782 (find_best_weight_font): If final font found has same weight as
5783 the font we started with, return the original font because it is a
5784 better match for the resolution of the display.
5785 (find_best_slant_font): Likewise.
5786 (merge_face_vector_with_property): Check more invalid attribute
5787 values.
5788 (lface_suitable_for_charset_p): Replaced by a macro with the same
5789 name in upper-case.
5790
5791 1998-04-24 Gerd Moellmann <gerd@gnu.org>
5792
5793 * dispextern.h (struct face): Member
5794 fontset_chosen_for_realization_p removed.
5795
5796 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
5797 end of the collision list, so that we find more specific faces
5798 first.
5799 (lookup_face_for_charset): Look up a new face if face->fontset >=
5800 0, and charset != CHARSET_COMPOSITION.
5801
5802 * xfaces.c (split_font_name): Return zero if point size of font
5803 couldn't be computed.
5804 (realize_default_face): Use ASCII font of a fontset to determine
5805 font-related attributes of the default face.
5806 (face_fontset): Return fontset id for face family.
5807 (font_list): Additional parameter font_pattern. If non-nil,
5808 return fonts matching that pattern.
5809
5810 1998-04-23 Gerd Moellmann <gerd@gnu.org>
5811
5812 * xfaces.c (choose_face_fontset): If new fontset cannot be
5813 constructed, or fontset name cannot be split, return the id of the
5814 standard fontset.
5815
5816 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
5817 When Emacs starts, it may be called for the initial frame which
5818 isn't an X frame.
5819
5820 * dispextern.h (struct face): New members foreground_defaulted_p,
5821 background_defaulted_p.
5822 (struct face): Members `mask' and `cache' removed.
5823
5824 * xfaces.c (load_color): Set them.
5825 (free_face_colors): Check them.
5826 (xlfd_point_size): Return -1 if resolution or point size of
5827 font unknown.
5828
5829 * xfaces.c (free_font): Removed.
5830 (load_face_font_or_fontset): Renamed from load_font.
5831 (load_face_font_or_fontset): Use message2 instead of signalling.
5832 (load_color): Likewise.
5833 (load_pixmap): Likewise.
5834
5835 * xterm.h (struct x_display_info): Add screen_dpi.
5836 * xterm.c (x_term_init): Initialize it.
5837 * xfaces.c (xlfd_point_size): Use it.
5838 (split_font_name): Compute numeric XLFD_RESY.
5839 (cmp_font_names): Make fonts with an y-resolution more
5840 similar to that of the frame appear first in the result.
5841
5842 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
5843 is set for the face to cache, add it to the end of the collision
5844 list.
5845 (try_font_list): If fonts for given family and registry cannot
5846 be found, first try to keep the registry, and choose a different
5847 family.
5848 (choose_face_font): Allow nfonts == 0.
5849 (try_font_list): Give up if no font matches given registry.
5850
5851 1998-04-22 Gerd Moellmann <gerd@gnu.org>
5852
5853 * xterm.c (x_get_char_font_and_encoding): Get font_info from
5854 font info id of the face.
5855
5856 * xfaces.c (load_font): Set font_info_id.
5857 (realize_face): Ditto.
5858
5859 * dispextern.h (struct face): Change member font_info to
5860 font_info_id.
5861
5862 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
5863 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
5864
5865 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
5866 isn't ASCII, get the ASCII face before adding a space.
5867 (append_space): Likewise.
5868 (insert_left_trunc_glyphs): Initialize truncate_it's charset
5869 to -1 so that it will compute the right face for the truncation
5870 glyphs.
5871
5872 * xfaces.c (realize_face): Set
5873 face->fontset_chosen_for_realization_p.
5874 (lookup_face_for_charset): If fontset wasn't specified originally
5875 and new charset != CHARSET_COMPOSITION, get a new face for that
5876 charset.
5877
5878 * dispextern.h (struct face): New member
5879 fontset_chosen_for_realization_p_specified_p. Set to 1 when
5880 realize_face has chosen a fontset to display composite characters
5881 for a Lisp face not specifying a fontset.
5882
5883 * xdisp.c (extend_face_to_end_of_line): Move tests for default
5884 face and line already filled here. Don't do anything if current
5885 face hasn't a relief or has a background equal to the frame
5886 background.
5887
5888 * xfaces.c (split_font_name): Additional parameter numeric_p.
5889 Don't compute numeric values if it is non-zero.
5890 (choose_face_fontset): Call split_font_name with numeric_p == 0.
5891 (choose_face_fontset): Print a message if fontset contains a
5892 font whose name cannot be split into fields.
5893
5894 1998-04-21 Gerd Moellmann <gerd@gnu.org>
5895
5896 * xfaces.c (try_font_list): Try to load a list of fonts,
5897 possibly using less restrictive patterns.
5898 (choose_face_font): Use it.
5899
5900 * xterm.c (x_get_char_font_and_encoding): For charset !=
5901 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
5902
5903 * dispextern.h (struct face): New member font_info.
5904
5905 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
5906 specifying a fontset as well as those not having a fontset.
5907 (free_font): Make it empty.
5908 (realize_face): Use changed load_font.
5909
5910 * xterm.c (x_get_char_font_and_encoding): If face doesn't
5911 fit for charset, get the right one.
5912
5913 * xfaces.c (load_font): Take frame and name parameter, return
5914 font.
5915 (free_font): Likewise.
5916 (split_font_name): Compute numeric values for height, swidth etc.
5917 (cmp_font_names): Use them.
5918 (find_best_width_font): Ditto.
5919 (find_best_height_font): Ditto.
5920 (find_best_weight_font): Ditto.
5921 (find_best_slant_font): Ditto.
5922 (lface_hash): Add weight, slant, swidth and relief to hash value.
5923 (lface_equal_p): Make it faster.
5924 (lface_from_symbol): Use assq_no_quit.
5925 (Fnote_default_face_changed): Removed.
5926 (cmp_font_names): Use strcmp instead of xstricmp.
5927 (face_charset_registries): Removed.
5928
5929 1998-04-20 Gerd Moellmann <gerd@gnu.org>
5930
5931 * frame.h (CHECK_FRAME): Give this macro a statement form.
5932 (CHECK_LIVE_FRAME): Ditto.
5933
5934 * xfaces.c (find_best_width_font): Find the best matching font
5935 for a given width.
5936 (find_best_height_font): Likewise for height.
5937 (find_best_weight_font): Likewise for weight.
5938 (find_best_slant_font): Likewise for slant.
5939 (choose_face_font): Use them.
5940 (get_lface_attributes): Always return frame-local face attrs.
5941 (Finternal_merge_in_global_face): Merge local face with
5942 global face attributes.
5943
5944 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
5945 Lisp face attributes.
5946
5947 1998-04-19 Gerd Moellmann <gerd@gnu.org>
5948
5949 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
5950 and :italic for compatibility.
5951 (Finternal_set_lisp_face_attribute_from_resource): Handle
5952 :bold and :italic. Handle boolean resource values for
5953 :underline and :italic.
5954
5955 * xfns.c (display_x_get_resource): Make it externally visible.
5956
5957 * xfaces.c (lface_from_symbol): Take a frame as parameter.
5958 If that frame is non-null, return the frame-local face.
5959 (Finternal_make_lisp_face): Additional frame argument.
5960 (lface_attributes): Get face attributes from global and frame-local
5961 definitions.
5962 (Finternal_lisp_face_equal_p): Additional frame argument.
5963 (merge_lisp_face_vector_with_property): Ditto.
5964 (Frealize_basic_faces): Removed.
5965 (Finternal_get_lisp_face_attribute): Additional frame argument.
5966 (Finternal_lisp_face_p): Ditto.
5967 (load_color) [MSDOS]: Removed because it isn't clear how
5968 to do this for MS-DOS.
5969
5970 * xfaces.c (lface_from_symbol): Get global face definition
5971 from face-global-alist.
5972
5973 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
5974 as values for :underline and :inverse-video.
5975 (Finternal_set_lisp_face_attribute): Allow nil values.
5976
5977 1998-04-17 Gerd Moellmann <gerd@gnu.org>
5978
5979 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
5980
5981 * xfaces.c (syms_of_xfaces): Add Vall_faces.
5982 (Finternal_make_lisp_face): Add new face to Vall_faces.
5983
5984 * xdisp.c (echo_area_display): Remove code recomputing faces.
5985 (redisplay_internal): Ditto.
5986 (init_iterator): Do it here.
5987
5988 * xfaces.c (choose_face_font): Check that swidth doesn't change
5989 for subusequent attributes.
5990 (xlfd_point_size): Return int.
5991
5992 * xdisp.c (redisplay_internal, echo_area-display): If realized
5993 faces have been cleared, call recompute_basic_faces.
5994
5995 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
5996 face_attributes_changed_p.
5997 (remove_all_realized_faces): Remove all realized faces on
5998 all frames.
5999 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
6000
6001 * xdisp.c (redisplay_internal): If face attributes have been
6002 changed since the last redisplay, recompute basic faces.
6003 (echo_area_display): Ditto.
6004
6005 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
6006
6007 * xfaces.c (min_char_bounds): If face cache not yet present,
6008 don't try to get font dimensions from faces.
6009
6010 * xterm.c (x_frame_mode_line_height): If face cache not present
6011 set, return default height.
6012
6013 * alloc.c (mark_face_cache): Check for null faces. Correct
6014 index bug.
6015
6016 * dispextern.h (struct face): Renamed from struct rface. Member
6017 underline renamed underline_p. Make it a bit-field.
6018
6019 * xfaces.c (init_frame_faces): Allocate face cache.
6020 (free_frame_faces): Free face cache.
6021 (recompute_basic_faces): Realize basic faces only if face cache is
6022 allocated, i.e. after init_frame_faces has been called.
6023
6024 * frame.c (make_frame): Initialze face cache with null.
6025
6026 * xfaces.c (same_size_fonts): Removed.
6027
6028 * xterm.c (x_set_glyph_string_gc): Add post-condition
6029 s->gc != 0.
6030 (x_set_mouse_face_gc): Ditto.
6031 (x_set_mode_line_face_gc): Ditto.
6032
6033 * xfaces.c (realize_default_face): Return int. Value is
6034 zero if frame params don't contain enough information to
6035 realize the default face.
6036 (realize_basic_faces): Ditto.
6037 (init_frame_faces): Realize basic faces.
6038
6039 * xfns.c (x_set_font): First store real font name in frame
6040 parameters, then call recompute_basic_faces.
6041
6042 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
6043
6044 1998-04-16 Gerd Moellmann <gerd@gnu.org>
6045
6046 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
6047
6048 * xfns.c (Fx_face_fixed_p): Removed.
6049 (Fx_list_fonts): Moved to xfaces.c.
6050
6051 * xfaces.c (compute_face_at_buffer_pos): Renamed to
6052 face_at_buffer_position. Parameter charset removed; always
6053 compute face for CHARSET_ASCII.
6054 (face_at_string_position): Renamed from
6055 compute_face_at_string_pos. Parameter charset removed; always
6056 compute for CHARSET_ASCII.
6057 (lookup_face_for_charset): Take frame parameter instead of
6058 face_cache.
6059 (lookup_face): Ditto.
6060 (compute_char_face): Renamed from compute_glyph_face.
6061
6062 * xdisp.c (init_iterator): Initialize charset member.
6063 (reseat_iterator_to_string): Ditto.
6064 (get_charset_at_buffer_position): Determine charset at
6065 buffer position in current_buffer.
6066 (reseat_iterator): Call above function.
6067 (compute_face_at_iterator_position): Call
6068 compute_face_at_buffer_pos.
6069 (compute_face_at_iterator_string_position): Call
6070 compute_face_at_string_pos.
6071 (get_face_from_id): Removed.
6072 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
6073 Call get_charset_at_buffer_position.
6074 (reseat_iterator): Determine face if charset at pos differs
6075 from iterator's charset.
6076 (reseat_iterator_to_glyph_pos): Removed.
6077
6078 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
6079 Determine charset from buffer position.
6080 (compute_string_char_face): Renamed to compute_face_at_string_pos.
6081 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
6082
6083 * dispextern.h (struct display_iterator): Add member charset.
6084
6085 1998-04-15 Gerd Moellmann <gerd@gnu.org>
6086
6087 * xfaces.c (compute_char_face): Removed.
6088
6089 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
6090 with new parameter list.
6091
6092 * xfaces.c (region_face): Removed.
6093 (allocate_face): Removed.
6094 (copy_face): Ditto.
6095 (face_eql): Removed.
6096 (intern_face): Removed.
6097 (clear_face_cache): Removed.
6098 (load_font): Ditto.
6099 (unload_font): Ditto.
6100 (load_color): Ditto.
6101 (unload_color): Ditto.
6102 (new_computed_face): Ditto.
6103 (intern_computed_face): Ditto.
6104 (ensure_face_ready): Ditto.
6105 (merge_faces): Ditto.
6106 (compute_base_face): Ditto.
6107 (merge_face_list): Ditto.
6108 (Fmake_face_internal): Removed.
6109 (Fset_face_attribute_internal): Ditto.
6110 (face_name_id_number): Removed.
6111 (Fframe_face_alist): Ditto.
6112 (Fset_frame_face_alist): Ditto.
6113 (Finternal_next_face_id): Ditto.
6114
6115 * xterm.h (struct x_output): Remove computed_faces, and
6116 param_faces. Remove macros accessing them.
6117
6118 * xfaces.c: Entirely new face implementation added.
6119
6120 1998-04-11 Gerd Moellmann <gerd@gnu.org>
6121
6122 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
6123 `charpos'.
6124
6125 1998-04-10 Gerd Moellmann <gerd@gnu.org>
6126
6127 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
6128 scroll bar window to reduce flickering. Clear entire height.
6129
6130 * xdisp.c (move_iterator_vertically_backward): Set iterator's
6131 current_x and hpos to zero after moving to previous line
6132 start.
6133
6134 1998-04-03 Gerd Moellmann <gerd@gnu.org>
6135
6136 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
6137
6138 * xfaces.c (xlfd_point_size): Compute relative point size of
6139 fonts from font and frame resolution.
6140 (sort_fonts): New function to sort fonts, temporarily setting
6141 font_frame to the frame in effect.
6142 (xlfd_point_size): Take additional frame parameter to be able
6143 to get at the display's resolution.
6144
6145 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
6146 BLACK_PIX_DEFAULT.
6147 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
6148 screen of display.
6149
6150 1998-03-31 Gerd Moellmann <gerd@gnu.org>
6151
6152 * xfaces.c (choose_face_fontset): Instantiate fontsets.
6153
6154 * fontset.h: Add external declarations for Vfontset_alias_alist
6155 and Vglobal_fontset_alist.
6156
6157 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
6158 (realize_default_face): If frame parameters contain an artificial
6159 font name naming a fontset, set the family of the default face to
6160 the fontset name given by the registry.
6161
6162 * Makefile.in (alloc.o): Add dependency to dispextern.h.
6163
6164 1998-03-22 Gerd Moellmann <gerd@gnu.org>
6165
6166 * alloc.c (mark_object): Add function prototype. Add cast to
6167 Lisp_Object pointer in call to mark_object for symbol names
6168 because this otherwise gives a warning from gcc 2.8.1.
6169 (mark_face_cache): Mark Lisp objects in realized faces.
6170
6171 1998-03-19 Gerd Moellmann <gerd@gnu.org>
6172
6173 * frame.h (struct frame): Add member face_cache.
6174
6175 * alloc.c (mark_object): Mark face cache.
6176 (mark_face_cache): Mark Lisp faces in face cache of frame.
6177
6178 * frame.c (make_frame): Initialize face_cache.
6179 (Fdelete_frame): Free it.
6180
6181 1998-03-18 Gerd Moellmann <gerd@gnu.org>
6182
6183 * xfaces.c: Very first skeleton of functions for face realization,
6184 face merging, face cache etc.
6185
6186 * dispextern.h (struct rface): Realized faces. Will replace
6187 struct face when tested.
6188 (struct face_cache): Realized face caches.
6189
6190 * xdisp.c (init_iterator): Initialize area member of display
6191 iterator.
6192
6193 1998-03-17 Gerd Moellmann <gerd@gnu.org>
6194
6195 * xterm.c (x_append_glyph): Use it->area to store glyphs.
6196
6197 * dispextern.h (struct display_iterator): New member area.
6198
6199 * xterm.c (note_overwritten_text_cursor): Note when the text
6200 cursor of a window is overwritten.
6201
6202 * xdisp.c (set_cursor_from_row): If PT is not found in the
6203 row, display the cursor at the start of the row.
6204
6205 * dispnew.c (direct_output_forward_char): Call
6206 set_cursor_from_row.
6207
6208 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
6209 position is not in an overlay string, set iterator's position and
6210 method explicitly so.
6211 (set_cursor_from_row): Correct cursor position calculation.
6212 Make it externally visible.
6213 (redisplay_window): Call set_cursor_from_row so that there is only
6214 one place where the cursor position is calculated from a current
6215 row.
6216
6217 * dispextern.h (struct display_iterator): New member
6218 overlay_strings_at_end_processed_p.
6219
6220 * xdisp.c (check_iterator): Perform sanity checks on
6221 display_iterators.
6222 (next_element_from_buffer): Check for overlay strings at ZV.
6223
6224 1998-03-16 Gerd Moellmann <gerd@gnu.org>
6225
6226 * buffer.c (init_buffer_once): Add left_margin_width and
6227 right_margin_width to buffer_local_flags.
6228
6229 * dispnew.c (margin_glyphs_to_reserve): Function computing
6230 number of glyphs to reserve for a marginal area.
6231 (adjust_glyph_matrix): Call it.
6232 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
6233 is not alive.
6234
6235 * window.c (Fset_window_margins): Allow floats.
6236
6237 * buffer.c (syms_of_buffer): Add buffer-local variables
6238 left-margin-width and right-margin-width. Add defaults
6239 default-left-margin-width and default-right-margin-width.
6240
6241 * buffer.h (struct buffer): New members left_margin_width
6242 and right_margin_width.
6243
6244 * window.c (Fset_window_margins): Make window the last and
6245 optional argument.
6246
6247 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
6248 flag no_marginal_areas_p differently.
6249 (x_clear_end_of_line): Ditto.
6250 (x_draw_glyph_string_relief): Compute width of relief differently
6251 for rows with flag no_marginal_areas_p.
6252
6253 * dispnew.c (update_window_line): Update marginal areas only
6254 for rows that don't have no_marginal_areas_p set.
6255
6256 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
6257 (display_menu_bar): Ditto.
6258
6259 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
6260
6261 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
6262 marginal areas in window-based redisplay.
6263
6264 * dispextern.h (struct glyph_matrix): New members
6265 left_margin_glyphs and right_margin_glyphs.
6266
6267 1998-03-15 Gerd Moellmann <gerd@gnu.org>
6268
6269 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
6270
6271 * charset.c (non_ascii_char_to_string): Use char type parameters
6272 because the function is used that way from outside. Use unsigned
6273 char internally.
6274
6275 * window.c (change_window_height): Return void.
6276 (make_dummy_parent): Return void.
6277 (init_window_once): Return void.
6278 (syms_of_window): Ditto.
6279 (keys_of_window): Ditto.
6280 (delete_window): Correct return with and without value.
6281
6282 * buffer.c (record_buffer): Return void.
6283
6284 * marker.c (unchain_marker): Return void.
6285
6286 * window.c (unshow_buffer): Return void.
6287 (replace_window): Ditto.
6288 (delete_window): Ditto.
6289
6290 * term.c (delete_glyphs_hook): Void return type.
6291 (ring_bell_hook): Ditto.
6292 (set_terminal_window_hook): Ditto.
6293
6294 * sysdep.c (init_sigio): Return void.
6295
6296 * xterm.c (x_set_window_size): Return void.
6297 (x_calc_absolute_position): Ditto.
6298 (x_set_offset): Ditto.
6299 (x_focus_on_frame): Ditto.
6300 (x_unfocus_frame): Ditto.
6301 (x_make_frame_visible): Ditto.
6302 (x_make_frame_invisible): Ditto.
6303 (x_iconify_frame): Ditto.
6304 (x_destroy_window): Ditto.
6305 (x_wm_set_window_state): Ditto.
6306 (x_wm_set_icon_pixmap): Ditto.
6307 (x_wm_set_icon_position): Ditto.
6308 (x_initialize): Ditto.
6309 (x_error_quitter): Ditto.
6310 (x_destroy_window): Use xfree instead of free.
6311
6312 * keyboard.c (clear_waiting_for_input): Return void.
6313
6314 * xterm.c (x_wm_set_size_hint): Return void.
6315 (x_raise_frame): Ditto.
6316 (refreshicon): Ditto.
6317 (x_error_catcher): Ditto.
6318 (x_clear_errors): Ditto.
6319
6320 * keyboard.c (record_asynch_buffer_change): Return void.
6321
6322 * xterm.c (XTroï