(comment-find): New function.
[emacs.git] / src / ChangeLog
blob9e5d8f5af24248c1560985b6863f0e2fc97034d5
1 1999-11-28  Gerd Moellmann  <gerd@gnu.org>
3         * window.c (Fwindow_end): Don't call temp_set_pt_both with
4         out of range position.
6         * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>: 
7         Switch off busy-cursor by setting inhibit_busy_cursor to 2.
9 1999-11-28  Eli Zaretskii  <eliz@is.elta.co.il>
11         * charset.c (Fmake_char_internal): Print the charset ID when
12         signalling an error.
14         * emacs.c (synchronize_locale): Avoid compiler warnings about
15         pointer type mismatch.
17 1999-11-26  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
19         * editfns.c (Fdelete_field): Make it noninteractive.  Return nil.
21 1999-11-26  Gerd Moellmann  <gerd@gnu.org>
23         * puresize.h (BASE_PURESIZE): Increase to 550000.
25         * textprop.c (set_text_properties): New function.  Like
26         Fset_text_properties, but with additional parameter
27         SIGNAL_AFTER_CHANGE_P.  If that is nil, don't signal after
28         changes.
29         (Fset_text_properties): Use it.
31         * insdel.c (insert_1_both): Call set_text_properties with last
32         parameter nil so that no after changes will be signaled.
34         * lisp.h: Add prototype for set_text_properties.
36         * xfaces.c (set_lface_from_font_name): Fix previous change.
37         (recompute_basic_faces): Change assert to abort.
39 1999-11-25  Dave Love  <fx@gnu.org>
41         * fns.c (Fnthcdr, Fnreverse): Inline cdr.
42         (Fmember, Fdelq, Fdelete): Inline car.
43         (Fy_or_n_p): Doc fix.
45 1999-11-25  Gerd Moellmann  <gerd@gnu.org>
47         * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
48         Callers changed.  If specified font name is bogus, and may_fail_p
49         is not set, try to use a reasonable default.
51         * dispnew.c (direct_output_for_insert): Set glyph row's
52         displays_text_p flag.  Correct window's window_end_vpos if
53         necessary.
55 1999-11-25  Paul Eggert  <eggert@twinsun.com>
57         * emacs.c (fixup_locale): Don't bother to record initial locale.
58         (synchronize_locale): If the desired locale is nil,
59         treat it as if it were the empty string,
60         so that we set the locale from the environment.
62 1999-11-25  Kenichi Handa  <handa@etl.go.jp>
64         * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
65         of the current buffer via Fset.
67 1999-11-24  Dave Love  <fx@gnu.org>
69         * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
71         * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
73         * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
75 1999-11-24  Gerd Moellmann  <gerd@gnu.org>
77         * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
79         * emacs.c (PVEC_FLAG): New variable.
81 1999-11-23  Gerd Moellmann  <gerd@gnu.org>
83         * unexaix.c (unexec): Use unsigned instead of uintptr_t because
84         that fails on IBM PowerPC, AIX 4.2.
85         
86 1999-11-22  Eli Zaretskii  <eliz@is.elta.co.il>
88         * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
89         string of mode-line-format.  Remove the obsolete %t.
91 1999-11-22  Gerd Moellmann  <gerd@gnu.org>
93         * dispnew.c (direct_output_for_insert): Increment glyph positions
94         for glyphs from buffer text only.
96         * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
97         (gdb_data_seg_bits): New variables.
98         
99         * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
100         work on systems not allowing enumerators > INT_MAX, and it
101         won't work if EMACS_INT is long long.
103 1999-11-22  Paul Eggert  <eggert@twinsun.com>
105         Port to SunOS 4.1.x again.  Help out with Alpha port.
106         Rename messages-locale to system-messages-locale,
107         and likewise for time-locale.
108         
109         * callproc.c (strerror): Remove decl.
110         * fileio.c (strerror): Likewise.
111         * process.c (strerror): Likewise.
112         * emacs.c (strerror): Likewise.
113         (Vsystem_messages_locale): Renamed from Vmessages_locale.
114         All uses changed.
115         (Vprevious_system_messages_locale): Likewise, from
116         Vprevious_messages_locale.
117         (Vsystem_time_locale): Likewise, from Vtime_locale.
118         (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
119         (ABORT_RETURN_TYPE): New macro.
120         (abort): Return type is now ABORT_RETURN_TYPE.
121         (main): Always invoke init_signals, even if POSIX_SIGNALS is not
122         defined.
123         (syms_of_emacs): messages-locale -> system-messages-locale,
124         previous-messages-locale -> previous-system-messages-locale,
125         time-locale -> system-time-locale,
126         previous-time-locale -> previous-system-time-locale.
128         * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
129         (const): Do not define; that's config.h's job.
130         (<limits.h>): Include if HAVE_LIMITS_H is defined.
131         (CHAR_BIT): Move test for definedness outside of limits.h condition.
132         (<stddef.h>): Include if STDC_HEADERS is defined.
133         (FREE_RETURN_TYPE): New macro.
134         (free): Return type is now FREE_RETURN_TYPE.
136         * lisp.h (synchronize_system_time_locale): Renamed from
137         synchronize_time_locale.  All uses changed.
138         (synchronize_system_messages_locale): Likewise, from
139         synchronize_messages_locale.
141         * m/alpha.h (malloc, realloc, calloc): Remove decls;
142         stdlib.h now does this.
144         * process.c (sys_siglist): Remove.
146         * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
147         New macros.
149         * syntax.c (scan_sexps_forward): Use abort, not assert.
151         * sysdep.c (my_sys_siglist): New var.
152         (sys_siglist): New macro.  Remove old initialized vars of same name.
153         (init_signals): Initialize sys_siglist.
155         * xfns.c (abort): Remove decl; stdlib.h now does this.
157 1999-11-18  Dave Love  <fx@gnu.org>
159         * filelock.c: Add forward declaration for get_boot_time_1.
161         * dispnew.c (Finternal_show_cursor_p): Fix doc string.
163 1999-11-18  Gerd Moellmann  <gerd@gnu.org>
165         * buffer.h (struct buffer_text): Add comment about moving
166         buffer text if REL_ALLOC is defined.
168 1999-11-18  Kenichi Handa  <handa@etl.go.jp>
170         * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
172         * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
173         memory for push_key_description.
175         * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
176         allocate memory for push_key_description.
177         (describe_buffer_bindings): Likewise.
179 1999-11-17  Gerd Moellmann  <gerd@gnu.org>
181         * xfns.c (Fx_show_busy_cursor): Doc-fix.
182         (Fx_hide_busy_cursor): Ditto.
184 1999-11-17  Marco Walther <walther@siemens-pyramid.com>
186         * unexsni.c (unexec): Handle .rel.dyn section.
188 1999-11-16  Dave Love  <fx@gnu.org>
190         * doc.c (Fdocumentation): Remove gcpro here too.
192 1999-11-16  Gerd Moellmann  <gerd@gnu.org>
194         * keyboard.c (command_loop_1): Remove no_redisplay.
196 1999-11-16  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
198         * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
199         in noninteractive.
201 1999-11-14  Gerd Moellmann  <gerd@gnu.org>
203         * xdisp.c (ensure_echo_area_buffers): New.
204         (with_echo_area_buffer): Use it.
205         (setup_echo_area_for_printing): Ditto.
207         * buffer.c (indicate-empty-lines): Doc-fix.
209 1999-11-12  Gerd Moellmann  <gerd@gnu.org>
211         * term.c (term_init): If "op" isn't available, don't support color
212         because we can't switch back to the default foreground and
213         background.
215         * doc.c (Fdocumentation_property): Remove GCPRO because
216         Fsubstitute_command_keys gcpro's the string.
218 1999-11-12  Kenichi Handa  <handa@etl.go.jp>
220         * editfns.c (Ftranslate_region): Check the buffer multibyteness.
222 1999-11-11  Gerd Moellmann  <gerd@gnu.org>
224         * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
225         lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
226         buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
228 1999-11-10  Gerd Moellmann  <gerd@gnu.org>
230         * xfns.c (QCuser_data): Removed.
231         (syms_of_xfns): Initialization of QCuser_data removed.
232         (parse_image_spec): Don't handle :user-data specially.  Allow
233         unknown keys.  Remove parameter ALLOW_OTHER_KEYS.
234         (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
235         (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
236         parse_image_spec accordingly.
238 1999-11-09  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
240         * cmds.c (Fbeginning_of_line): Doc fix.
241         (Fend_of_line): Doc fix.
243         * editfns.c (Fline_beginning_position): If N is not 1,
244         pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
246         * syntax.c (Fforward_word): Handle fields even if would have hit
247         an edge of the buffer.  Return nil if affected by fields.
249 1999-11-09  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
251         * editfns.c (preceding_pos): Function deleted.
252         (text_property_stickiness): Decrement POS directly.
253         Fix a confusion that used PT instead of POS.
255         * editfns.c (find_field): Properly handle the case
256         of a field boundary where `field' inherits from neither side.
258         * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
259         (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
261 1999-11-08  Gerd Moellmann  <gerd@gnu.org>
263         * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
264         BEFORE_POTENTIAL_GC before DISCARD.
266 1999-11-07  Gerd Moellmann  <gerd@gnu.org>
268         * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
270         * lisp.h: Add prototype for unmark_byte_stack.
272         * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
273         (unmark_byte_stack): Renamed from relocate_byte_pcs.  Use
274         XUNMARK.
276         * xdisp.c (resize_mini_window): Fix computation of needed
277         mini-window height.
279         * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
280         compilation on USE_TEXT_PROPERTIES.
282         * Fbyte_code: Use block statements in cases and declare v1 and v2
283         locally there.  Rearrange case statements so that thos most
284         frequently executed come first.  Avoid goto's in frequently
285         executed cases.
287 1999-11-05  Gerd Moellmann  <gerd@gnu.org>
289         * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
290         AFTER_POTENTIAL_GC around internal_catch.
292         * alloc.c (Fgarbage_collect): Call mark_byte_stack and
293         relocate_byte_pcs.
294         (init_alloc_once, init_alloc): Set byte_stack_list to null.
296         * eval.c (struct catchtag): Add member byte_stack.
297         (internal_catch, Fcondition_case, internal_condition_case)
298         (internal_condition_case_1): Save value of byte_stack_list in
299         catchtag.
300         (unwind_to_catch): Restore byte_stack_list from catchtag.
302         * lisp.h: Add prototypes for new functions in bytecode.c.
303         Add extern declaration for byte_stack_list.
305         * bytecode.c (struct byte_stack): New.
306         (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
307         (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
308         (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
309         (HANDLE_RELOCATION): Removed.
310         (Fbyte_code): Use byte_stack structures.
312         * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
314         * buffer.c (syms_of_buffer): Extend documentation of
315         mode-line-format.
317 1999-11-04  Gerd Moellmann  <gerd@gnu.org>
319         * editfns.c (Fdelete_field): Renamed from Ferase_field.
321         * minibuf.c (do_completion, Fminibuffer_complete_word): Use
322         Ferase_field instead of Fdelete_field.
324 1999-11-03  Gerd Moellmann  <gerd@gnu.org>
326         * dispnew.c (Finternal_show_cursor): Change it to set the
327         cursor on/off, not toggle its state.
328         (Finternal_show_cursor_p): New.
329         (syms_of_display): Defsubr Sinternal_show_cursor_p.
331 1999-11-03  Dave Love  <fx@gnu.org>
333         * charset.c (split_non_ascii_string): Define return value.
335 1999-11-03  Gerd Moellmann  <gerd@gnu.org>
337         * minibuf.c (string_to_object): New.
338         (read_minibuf_noninteractive): New.
339         (read_minibuf): Call read_minibuf_noninteractive if
340         noninteractive.  Use string_to_object.
342         * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
344 1999-11-02  Dave Love  <fx@gnu.org>
346         * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
348         * process.c: Define _GNU_SOURCE before config.h to get strsignal
349         declared with glibc2.
351 1999-11-02  Gerd Moellmann  <gerd@gnu.org>
353         * lisp.h (QUIT): Give it statement form.
355 1999-11-02  Dave Love  <fx@gnu.org>
357         * eval.c (init_eval): Conditionalize declaration of gcpro_level.
359 1999-11-02  Gerd Moellmann  <gerd@gnu.org>
361         * xfns.c (QCuser_data): New.
362         (syms_of_xfns): Initialize QCuser_data.
363         (parse_image_spec): Ignore :user-data DATA properties.
365         * xdisp.c (display_line): Set charpos of first glyph in blank
366         lines not corresponding to any text to -1, even if no glyphs are
367         filled in in that line.
369 1999-11-01  Gerd Moellmann  <gerd@gnu.org>
371         * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using 
372         png_get_sRGB in #ifdef.
374         * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
375         (syms_of_display): Use the new name.
377         * textprop.c (verify_interval_modification): Signal text-read-only
378         instead of calling error.
380         * data.c (Qtext_read_only): New built-in error.
381         (syms_of_data): Initialize it.
383         * lisp.h: Add extern declaration for Qtext_read_only.
385         * syntax.c: Remove whitespace after open or in front of closing
386         parentheses.
388 1999-11-01  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
390         * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
392 1999-10-31  Gerd Moellmann  <gerd@gnu.org>
394         * xdisp.c (resize_mini_window): Compute needed height differently.
396         * fns.c (Flength): Unroll loop over lists.
398         * xdisp.c (append_space): Return non-zero if space was appended.
399         (display_line): Set charpos of first glyph to -1 only if that
400         glyph is the space added by append_glyph.
402 1999-10-30  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
404         * print.c (strout): Consider `noninteractive' and use stdout
405         only when PRINTCHARFUN is t.
407         * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
408         (gcpro_level): Declare it extern.
409         [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
410         Alternate definitions that set `level' and increment `gcpro_level'.
411         [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
413         * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
414         (init_eval) [DEBUG_GCPRO]: Initialize it.
415         (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
416         from remaining gcprolist.
418 1999-10-29  Kenichi Handa  <handa@etl.go.jp>
420         * coding.c (code_convert_region): Update `dst' correctly.
422 1999-10-28  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
424         * regex.c (POP_FAILURE_POINT): Use failure_id.integer
425         as arg to DEBUG_POP and DEBUG_PRINT.
427 1999-10-28  Gerd Moellmann  <gerd@gnu.org>
429         * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
430         (Frassoc): Rewritten.
432 1999-10-27  Noah Friedman  <friedman@splode.com>
434         * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
435         Define PTY_NAME_SPRINTF.
436         Redefine PTY_TTY_NAME_SPRINTF.
437         * config.in: Add undef for HAVE_DEV_PTMX.
439 1999-10-26  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
441         * regex.c (POP_FAILURE_POINT): Use failure_id.integer
442         as arg to DEBUG_POP and DEBUG_PRINT.
444 1999-10-27  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
446         * data.c (Qad_activate_internal): Renamed from Qad_activate.
447         (Ffset): Call Qad_activate_internal.
448         (syms_of_data): Initialize Qad_activate_internal.
450 1999-10-27  Gerd Moellmann  <gerd@gnu.org>
452         * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
453         Vterminal_frame is selected and Vwindow_system is non-nil.
455 1999-10-26  Gerd Moellmann  <gerd@gnu.org>
457         * xdisp.c (echo_area_display): Put previous change in #if 0.
459         * emacs.c (standard_args): Add `file' as synonym for `visit',
460         `execute' as synonym for `eval'.
461         (main): Add new options to usage message.
463 1999-10-25  Gerd Moellmann  <gerd@gnu.org>
465         * data.c (Qhash_table): New.
466         (Ftype_of): Return it for hash tables.
467         (syms_of_data): Initialize Qhash_table.
469 1999-10-25  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
471         * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
473 1999-10-24  Ken Raeburn  <raeburn@raeburn.org>
475         * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
476         lisp.h.
478         * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
479         Fbuffer_local_variables, Fother_buffer, record_buffer,
480         set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
481         swap_out_buffer_local_variables, overlays_at, overlays_in,
482         overlay_touches_p, overlay_strings, recenter_overlay_lists,
483         fix_overlays_in_range, fix_overlays_before, Foverlay_get,
484         Foverlay_put, report_overlay_modification, evaporate_overlays):
485         Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
486         references.
487         * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
488         swap_in_symval_forwarding, set_internal, default_value,
489         Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
490         Fmake_variable_frame_local, Flocal_variable_p,
491         Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
492         Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
493         * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
494         * emacs.c (main): Likewise.
495         * fontset.c (fs_load_font, fs_register_fontset,
496         CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
497         Fnew_fontset, Fset_fontset_font): Likewise.
498         * frame.c (do_switch_frame, next_frame, prev_frame,
499         other_visible_frames, Fdelete_frame, Fvisible_frame_list):
500         Likewise.
501         * keyboard.c (read_char, help_char_p, event_to_kboard,
502         kbd_buffer_get_event, timer_start_idle, timer_check,
503         make_lispy_event, apply_modifiers, reorder_modifiers,
504         Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
505         menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
506         tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
507         Fcommand_execute, Fexecute_extended_command): Likewise.
508         * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
509         Fall_completions): Likewise.
510         * window.c (Fset_window_margins): Likewise.
512         * callint.c (quotify_args): Don't explicitly use struct
513         Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
515         * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
516         (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
517         if __ELF__ is defined.
519 1999-10-24  Gerd Moellmann  <gerd@gnu.org>
521         * window.c (Fnext_window): Add a QUIT in the loop.
523 1999-10-23  Gerd Moellmann  <gerd@gnu.org>
525         * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs): 
526         New targets.
528 1999-10-22  Dave Love  <fx@gnu.org>
530         * emacs.c (main): Enable profiling conditional on __linux also.
532 1999-10-20  Gerd Moellmann  <gerd@gnu.org>
534         * xrdb.c (x_load_resources): Set default resources for resource
535         classes instead of for the specific Emacs.
537 1999-10-19  Gerd Moellmann  <gerd@gnu.org>
539         * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
540         defines it that way.
541         
542         * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
543         if selected_frame is equal to Vterminal_frame.
545 1999-10-19  Paul Eggert  <eggert@twinsun.com>
546         
547         Add support for large files, 64-bit Solaris, system locale codings.
548         
549         * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
550         when dumping, so that the dumped Emacs doesn't have stray locale info.
551         (dired.o): Depend on systime.h.
552         (editfns.o): Depend on coding.h.
554         * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
555         dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
556         keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
557         unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
558         w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
559         Include <config.h> before any system include files.
561         * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
562         fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
563         m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
564         xmenu.c, xterm.c:
565         Do not include <stdlib.h>, as <config.h> does this now.
567         * callproc.c (Fcall_process):
568         Synchronize messages locale before invoking strerror.
569         Decode resulting string with locale-coding-system.
571         * coding.c (Vlocale_coding_system): New var.
572         (syms_of_coding): Adjust to above change.
573         (emacs_strerror): New function.
575         * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
576         
577         * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
578         HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
579         HAVE_STRSIGNAL): New macros.
580         (BITS_PER_LONG): Default to 64 if _LP64 is defined.
581         <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
583         * dired.c: Include "systime.h".
584         (Ffile_attributes): Do not cast s.st_size to int; this loses
585         information if int is 32 bits but st_size and EMACS_INT are larger.
586         Treat large device numbers like large inode numbers.
588         * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
590         * editfns.c: Include coding.h.
591         (emacs_strftime): Remove decl.
592         (emacs_strftimeu): New decl.
593         (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
594         Use emacs_strftimeu instead of emacs_strftime.
595         (Fformat_time_string): Convert format string using
596         Vlocale_coding_system, and convert result back.  Synchronize time
597         locale before invoking lower level function.  Invoke
598         emacs_memftimeu, passing ut, instead of emacs_memftime.
599         
600         * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
601         (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
602         Vprevious_time_locale): New variables.
603         (main): Invoke setlocale early, so that initial error messages are
604         localized properly.  But skip locale-setting if LC_ALL is "C".
605         Fix up locale when it's safe to do so.
606         (fixup_locale): Moved here from xterm.c.
607         (synchronize_locale, synchronize_time_locale,
608         synchronize_messages_locale): New functions.
609         (syms_of_emacs): Accommodate above changes.
611         * fileio.c (report_file_error): Convert strerror output according
612         to Vlocale_coding_system.
613         (Finsert_file_contents): Check for arithmetic overflow in
614         computations that depend on file size.  Report IO errors
615         with emacs_strerror, not strerror.
617         * fns.c (Fgethash): Declare dflt parameter.
619         * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
620         is defined; that's config.h's job.
622         * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
623         default these values to long, BITS_PER_LONG, and unsigned long.
624         (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
625         (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
626         (code_convert_string_norecord, fixup_locale,
627         synchronize_messages_locale, synchronize_time_locale,
628         emacs_open, emacs_close, emacs_read, emacs_write): New decls.
629         All Emacs callers of open, close, read, write changed to use
630         emacs_open, emacs_close, emacs_read, emacs_write.
632         * lread.c (file_offset, file_tell): New macros.  All uses of ftell
633         changed to file_tell.
634         (saved_doc_string_position, prev_saved_doc_string_position): Now
635         of type file_offset.
636         (init_lread): Do not fix locale here; fixup_locale now does this.
638         * m/amdahl.h, s/usg5-4.h:
639         (NSIG): Remove.
640         (NSIG_MINIMUM): New macro.
642         * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
643         m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
644         s/umips.h, s/usg5-4.h:
645         (SIGIO): Do not undef.
646         (BROKEN_SIGIO): New macro.
648         * m/ustation.h:
649         (SIGTSTP): Do not undef.
650         (BROKEN_SIGTSTP): New macro.
652         * s/gnu-linux.h:
653         (SIGPOLL, SIGURG): Do not undef.
654         (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
656         * s/ptx4.h:
657         (SIGINFO): Do not undef.
658         (BROKEN_SIGINFO): New macros.
659         
660         * m/delta.h, s/ptx.h, s/template.h: Doc fix.
662         * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
663         some Emacs-related changes merged.
665         * print.c (float_to_string): Prepend "-" to representation of a
666         NaN if the NaN is negative.
668         * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
669         (wait_reading_process_input): Use emacs_strerror, not strerror.
670         
671         * process.c (status_message, sigchld_handler): Synchronize locale,
672         then use strsignal istead of sys_siglist.
673         * w32proc.c (sys_wait): Likewise.
674         
675         * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
676         s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
677         s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
678         s/usg5-2.h, s/usg5-3.h, s/xenix.h:
679         (open, close, read, write, INTERRUPTIBLE_OPEN,
680         INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
682         * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
684         * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
685         sys_open, open): Remove.
686         (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
687         the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
688         macros are no longer used.
689         (emacs_open): Renamed from sys_open.  Merge BSD4_1 version.
690         (emacs_close): Renamed from sys_close.
691         (emacs_read): Renamed from sys_read.
692         (emacs_write): Renamed from sys_write.
693         (sys_siglist): Do not declare if HAVE_STRSIGNAL.
694         (dup2): Do not print error on failure; the real dup2 doesn't.
695         (strsignal): New function, defined if !HAVE_STRSIGNAL.
697         * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
698         is defined.
699         (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
700         (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
701         (strsignal): Declare if !HAVE_STRSIGNAL.
703         * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
704         (ElfW): Define in terms of ElfExpandBitsW.
706         * w32proc.c (sys_siglist): Remove decl.
708         * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
709         with ANSI C.
710         (display_string): Declare face_string_pos arg.
712         * xfns.c (Fx_show_tip): Declare timeout param.
714         * xterm.c: No need to include locale.h.
715         (x_alloc_lighter_color, x_setup_relief_color):
716         Pass arg as double, not float, for compatibility with ANSI C.
717         (fixup_locale): Move to emacs.c.
718         (x_term_init): Do not setlocale or fixup locale; the main program
719         does this now.
721 1999-10-18  Dave Love  <fx@gnu.org>
723         * doc.c (Fdocumentation_property): Gcpro `tem'.
725 1999-10-18  Kenichi Handa  <handa@etl.go.jp>
727         * lread.c (Fload): Calculate bytes of filename correctly.
728         (openp): Likewise.
730 1999-10-18  Keisuke Nishida  <kxn30@po.cwru.edu>
732         * print.c (print_preprocess): In case print-circle is nil,
733         add OBJ to Vprint_number_table only when OBJ is a symbol.
735 1999-10-18  Kenichi Handa  <handa@etl.go.jp>
737         * coding.c (code_convert_string): Add record_unwind_protect to
738         assure setting inhibit_pre_post_conversion back to zero.  Take
739         care of the multibyteness of the working buffer.
741         * coding.c (inhibit_pre_post_conversion): New variable.
742         (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
743         ignore post-read-conversion and pre-write-conversion property of
744         the coding system.
745         (code_convert_region_unwind): New function.
746         (code_convert_region): Set inhibit_pre_post_conversion to 1 while
747         running pre-write-conversion and post-read-conversion.
748         (code_convert_string): Likewise.
750 1999-10-17  Miles Bader  <miles@gnu.org>
752         * editfns.c: Doc fix.
754 1999-10-17  Miles Bader  <miles@gnu.org>
756         * editfns.c (Fconstrain_to_field): Make sure we don't violate the
757         argument preconditions of find_before_next_newline in the case
758         where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
759         was indeed at the edge.
761 1999-10-17  Miles Bader  <miles@gnu.org>
763         * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
764         ESCAPE_FROM_EDGE parameter to Ffield_beginning.
766         * editfns.c (text_property_eq, text_property_stickiness): Don't
767         use initializers for auto variables of type Lisp_Object.
768         (find_field): Likewise.  Use braces around nested ifs.
769         (Fline_end_position): Store the raw eol in a variable, so that the
770         final expression doesn't look so ugly.
771         (Fconstrain_to_field): Doc fix.
772         (preceding_pos): Renamed from `preceeding_pos'.
773         (text_property_stickiness, find_field): Call preceding_pos,
774         not preceeding_pos.
776 1999-10-17  Miles Bader  <miles@gnu.org>
778         * editfns.c (Ffield_string_no_properties): New function.
779         (text_property_stickiness, preceeding_pos): New functions.
780         (Ffield_string): Remove PROPS parameter.
781         (find_field): Add MERGE_AT_BOUNDARY parameter.
782         Rewrite to use stickiness of `field' property to resolve
783         ambiguous cases.
784         (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
785         (Fconstrain_to_field): Likewise.
786         (syms_of_editfns): Init Sfield_string_no_properties.
787         (Ffield_string, Ferase_field, Ffield_end): 
788         Supply new MERGE_AT_BOUNDARY argument to find_field.
789         (Fline_beginning_position, Fline_end_position): Supply new
790         ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
791         Pass a value of Qt for the ONLY_IN_LINE argument to
792         Fconstrain_to_field (only matters if N != 1).
793         * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
794         to Fconstrain_to_field.
796         * minibuf.c (Fminibuffer_complete_word): Use
797         Ffield_beginning to find the prompt end.
799 1999-10-17  Miles Bader  <miles@gnu.org>
801         * editfns.c (Fconstrain_to_field): Add get/set-current-point
802         behavior when NEW_POS is nil.
803         (find_field): Use XSETFASTINT instead of make_number.
804         * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
805         input string by seeing where the field begins, instead of
806         looking at text-properties.
808 1999-10-17  Miles Bader  <miles@gnu.org>
810         * editfns.c (Qfield): New variable.
811         (find_field, Ferase_field, Ffield_string,
812         Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
813         (Fline_beginning_position, Fline_end_position): Constrain to any field.
814         (make_buffer_string_both): Remove minibuffer-prompt hack.
815         (syms_of_editfns): Initialize Qfield, and subr entries for
816         field functions above.
817         * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
818         minibuf_save_list.
819         Don't initialize minibuffer prompt length.
820         Wrap prompt text-properties around the entire prompt.
821         Add 'prompt text-property to prompt.
822         Get final value with Ffield_string instead of make_buffer_string.
823         (read_minibuf_unwind): Don't restore minibuffer prompt length from
824         minibuf_save_list.
825         (do_completion): Get minibuffer input with Ffield_string
826         instead of Fbuffer_string.
827         Erase minibuffer input with Ferase_field instead of erase_buffer.
828         (Fminibuffer_complete_and_exit): Likewise.
829         Test whether buffer is empty by looking for the 'prompt text
830         property at the end.
831         Set prompt length by looking for the end of the prompt text property,
832         and save prompt length for later use (since there is no longer a
833         buffer variable to get it from).
834         (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
835         (syms_of_minibuf): Remove initializations of
836         Sminibuffer_prompt_width and Sminibuffer_prompt_end.
837         * buffer.h (struct buffer): Remove prompt_end_charpos field.
838         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer): 
839         Don't initialize prompt_end_charpos field.
840         * syntax.c (Fforward_word): Likewise.
841         Constrain to any field.
843 1999-10-16  Gerd Moellmann  <gerd@gnu.org>
845         * window.c (enum save_restore_action): New.
846         (save_restore_orig_size): Change parameter list.  Add
847         functionality to check for valid orig_top and orig_height members
848         in a window tree.
849         (grow_mini_window): Call save_restore_orig_size with new parameter
850         list.
851         (shrink_mini_window): Restore old window sizes only if old
852         size information is valid in all windows in a window tree.
853         
854 1999-10-15  Gerd Moellmann  <gerd@gnu.org>
856         * xmenu.c (set_frame_menubar): Don't call
857         x_set_menu_resources_from_menu_face here.
858         (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
860         * xfns.c (gif_load): Fix handling of interlaced GIFs.
862 1999-10-14  Dave Love  <fx@gnu.org>
864         * xdisp.c (handle_fontified_prop): GCPRO `pos'.
866 1999-10-14  Gerd Moellmann  <gerd@gnu.org>
868         * process.c (Fopen_network_stream): Don't loop if gethostbyname
869         fails and h_errno is TRY_AGAIN.
871 1999-10-13  Dave Love  <fx@gnu.org>
873         * filelock.c (lock_file): Move gcpro of `fn'.
875 1999-10-10  Gerd Moellmann  <gerd@gnu.org>
877         * keyboard.c (auto-save-interval): Fix documentation.
878         
879 1999-10-09  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
881         * print.c (print): When removing objects from Vprint_number_table,
882         only scan the newly added objects.
883         (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
884         unconditionally force it to stay in the table.
886 1999-10-09  Gerd Moellmann  <gerd@gnu.org>
888         * xfns.c (prepare_image_for_display): Don't try to load image if
889         loading it failed before.
890         (lookup_image, prepare_image_for_display): Remember if loading the
891         image failed.
892         (xpm_load): Add missing UNBLOCK_INPUT.
894         * dispextern.h (struct image): New member load_failed_p.
896 1999-10-08  Stefan Monnier  <monnier@cs.yale.edu>
898         * fileio.c (Fmake_temp_name): add a reference to `make-temp-file'
899         in the docstring.
901 1999-10-08  Gerd Moellmann  <gerd@gnu.org>
903         * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
904         Don't call XSetInputFocus because that can generate additional
905         FocusIn events.
906         
907 1999-10-07  Jeffrey C Honig <jch@bsdi.com>
909         * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
911 1999-10-07  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
913         * process.c (wait_reading_process_input): When trying to suck
914         input from one process, for accept-process-output,
915         exit that loop if we get EAGAIN or EWOULDBLOCK.
917 1999-10-07  Gerd Moellmann  <gerd@gnu.org>
919         * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
920         (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
921         (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
922         Fpixmap_spec_p and Qpixmap_spec_p.
923         (load_face_colors, check_lface_attrs,
924         merge_face_vector_with_property,
925         Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
926         (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
927         Fbitmap_spec_p.
929 1999-10-07  Gerd Moellmann  <gerd@gnu.org>
931         * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
932         MODE_LINE_FACE_ID.
934         * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
935         (struct x_resources) [USE_X_TOOLKIT]: New.
936         (xm_apply_resources, xm_set_menu_resources_from_menu_face)
937         [USE_MOTIF]: New.
938         (xl_apply_resources, xl_set_menu_resources_from_menu_face)
939         [USE_LUCID]: New.
940         (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
941         (Qmenu): New.
942         (syms_of_xfaces): Initialize Qmenu.
943         (realize_basic_faces): Realize face `menu'.
944         (resolve_face_name): New.
945         (lface_from_face_name): Use it.
946         (Finternal_set_lisp_face_attribute): Ditto.
947         (Fpixmap_spec_p): Rewritten.  Extend doc string.
949         * xmenu.c (set_frame_menubar, xmenu_show): Call
950         x_set_menu_resources_from_menu_face.
952         * dispextern.h (enum face_id): Add MENU_FACE_ID.
953         (toplevel): Include X11/Intrinsic.h.
955 1999-10-03  Ken'ichi Handa  <handa@gnu.org>
957         * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
958         correctly.
960 1999-09-30  Kenichi Handa  <handa@etl.go.jp>
962         * category.c (modify_lower_category_set): Set default value of
963         TABLE correctly.
965         * minibuf.c (Fminibuffer_complete_word): Calculate string byte
966         size correctly.
968 1999-09-29  Gerd Moellmann  <gerd@gnu.org>
970         * editfns.c (Fpropertize): Renamed from Fproperties.
972 1999-09-29  Gerd Moellmann  <gerd@gnu.org>
974         * xdisp.c (resize_mini_window): Do nothing if frame is an X
975         frame that hasn't been initialized yet.
977 1999-09-28  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
979         * keymap.c (Fsingle_key_description): Make tem big enough.
980         (describe_buffer_bindings): Make buf big enough.
982 1999-09-27  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
984         * intervals.c (get_local_map): Use indirect_function,
985         not Findirect_function.
987 1999-09-27  Dave Love  <fx@gnu.org>
989         * cm.h: Remove unneeded declaration of ospeed.
991 1999-09-26  Gerd Moellmann  <gerd@gnu.org>
993         * lisp.h (toplevel): Add prototype for
994         next_single_char_property_change.
996         * textprop.c (next_single_char_property_change): New.
998         * xdisp.c (display_prop_end, invisible_text_between_p): Use
999         next_single_char_property_change.
1001 1999-09-25  Gerd Moellmann  <gerd@gnu.org>
1003         * editfns.c (Fproperties): New.
1004         (syms_of_editfns): Defsubr it.
1006         * xfns.c (lookup_image): Set image's timestamp because it's
1007         used when we look it up.
1009 1999-09-23  Gerd Moellmann  <gerd@gnu.org>
1011         * window.c (enlarge_window): Add window parameter instead of using
1012         selected_window.
1013         (Fdisplay_buffer): Call it with window parameter instead of
1014         setting selected_window.
1015         (Fenlarge_window, Fshrink_window): Ditto.
1016         (shrink_mini_window): If there is no recorded height and position
1017         info, resize mini-window to height 1.
1019         * xfns.c (image_error): Use add_to_log.
1021         * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
1022         (load_face_font_or_fontset, load_color,
1023         merge_face_vector_with_property): Ditto.
1025         * dispextern.h: Add prototype for add_to_log.
1027         * xfaces.c (add_to_log): Move to xdisp.c.
1029         * xdisp.c (add_to_log): Moved from xfaces.c.  Remove frame
1030         parameter.
1032 1999-09-23  Gerd Moellmann  <gerd@gnu.org>
1034         * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
1035         USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
1037         * xdisp.c (resize_mini_window): Use grow_mini_window and
1038         shrink_mini_window.
1040         * window.c (window_min_size): Add parameter ignore_fixed_p.
1041         (change_window_height): Call window_min_size with new parameter.
1042         (shrink_window_lowest_first, save_restore_orig_size,
1043         grow_mini_window, shrink_mini_window): New.
1044         (make_window, replace_window): Initialize orig_top and
1045         orig_height.
1046         (enlarge_window): Renamed from change_window_height.  Make it
1047         static.
1048         (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
1049         enlarge_window instead of change_window_height.
1051         * window.h (struct window): New members orig_top, orig_height.
1052         (toplevel): Add prototypes for grow_mini_window and
1053         shrink_mini_window.  Remove prototype for change_window_height.
1055 1999-09-21  Eli Zaretskii  <eliz@gnu.org>
1057         * frame.c (frame_name_fnn_p): Fix previous change.
1059 1999-09-20  Gerd Moellmann  <gerd@gnu.org>
1061         * minibuf.c (toplevel): Move include of stdio.h to other includes.
1063         * dispnew.c (direct_output_for_insert): Cast arguments to
1064         safe_bcopy to char *.
1066         * lread.c (readchar): Remove unused variables.
1067         (read_filtered_event, read1, Fmapatoms): Ditto.
1068         (toplevel): Include intervals.h.
1070         * eval.c (Fsignal): Remove unused variables.
1071         (Fcommandp, do_autoload): Ditto.
1073         * lisp.h: Add prototype for safe_bcopy, fatal.
1075         * editfns.c (init_editfns): Remove unused variables.
1076         (Fgoto_char, Fchar_after, Fformat): Ditto.
1077         (message_text, message_length): Put in #ifndef HAVE_MENUS.
1079         * data.c (find_symbol_value): Remove unused variables.
1080         (Faref, Fstring_to_number): Ditto.
1081         (toplevel): Include stdio.h.
1082         (Fnumber_to_string): Cast XINT to long for %ld.
1084         * casefiddle.c (casify_object): Remove unused variables.
1085         (casify_region): Ditto.
1087         * filelock.c (get_boot_time): Put local variable used in 
1088         conditinally compiled section in #ifdef.
1089         (toplevel): Include stdio.h.
1091         * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
1092         keys_of_keymap, syms_of_keymap): Remove unused variables.
1094 1999-09-20  Gerd Moellmann  <gerd@gnu.org>
1096         * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
1097         whose corresponding window rows have been disabled in
1098         try_window_id.
1100 1999-09-20  Gerd Moellmann  <gerd@gnu.org>
1102         * xdisp.c (compute_window_start_on_continuation_line): Handle case
1103         that window start is out of range.
1104         (handle_display_prop, handle_single_display_prop): Replace
1105         marginal area specifications like `left-margin' with `(margin
1106         left-margin)'.
1107         (Qmargin): New.
1108         (syms_of_xdisp): Initialize Qmargin.
1110 1999-09-19  Gerd Moellmann  <gerd@gnu.org>
1112         * syntax.c (update_syntax_table, find_defun_start, back_comment,
1113         describe_syntax, skip_chars): Remove unused variables.
1114         (back_comment, forw_comment): Add braces to if-statement with
1115         if-else as dependent statement.
1117         * process.c (list_processes_1): Remove unused variables.
1118         (Fopen_network_stream, create_process): Add parentheses to
1119         conditional expressions.
1120         (create_process): Put declaration of sigchld in #if 0.
1121         (Fopen_network_stream): Removed unused variables.
1122         (Fopen_network_stream, wait_reading_process_input,
1123         wait_reading_process_input, send_process, send_process): Ditto.
1124         (toplevel): Add prototypes for set_waiting_for_input and
1125         keyboard_bit_set.
1127         * abbrev.c (Fexpand_abbrev): Remove unused variables.
1129         * textprop.c (Fset_text_properties): Remove unused variables.
1130         (text_property_list, verify_interval_modification,
1131         interval_has_all_properties): Ditto.
1133         * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
1134         (Fcall_process): Remove unused variable.
1136         * keyboard.c (Frecursive_edit): Remove unused variable.
1137         (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
1138         timer_check, make_lispy_event, menu_bar_items,
1139         menu_bar_one_keymap, menu_bar_item, parse_menu_item,
1140         parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
1141         kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
1142         read_key_sequence): Ditto.  Fread_key_sequence,
1143         Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
1144         (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
1145         used when GOBBLE_FIRST_EVENT is defined in #ifdef
1146         (Fexecute_extended_command): Cast XINT to long for %ld.
1147         (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
1148         (toplevel): Include sys/types.h.
1150         * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
1151         (toplevel): Add prototypes for stuff_char, and
1152         code_convert_string_norecord.
1154 1999-09-19  Gerd Moellmann  <gerd@gnu.org>
1156         * buffer.h: Add prototype for r_re_alloc.
1158         * insdel.c (copy_text): Removed unused variables.
1159         (count_combining_after, count_combining_after, insert_1_both,
1160         insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
1161         (adjust_after_replace, replace_range): Add parentheses to logical
1162         expressions.  Remove unused variables.
1163         (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
1164         expression.
1166         * alloc.c (Fgarbage_collect): Remove unused variable.
1167         (compact_strings): Add parentheses around assignments in
1168         conditional context.
1169         (toplevel): Put declaration of unused function clear_marks
1170         in #if 0 like its definition.
1172         * lisp.h: Add prototype for shrink_regexp_cache,
1173         sweep_weak_hash_tables.
1175 1999-09-19  Dave Love  <fx@gnu.org>
1177         * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
1179         * doc.c (read_bytecode_char): Declare arg.
1181         * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
1182         read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
1184 1999-09-18  Richard Stallman  <rms@gnu.org>
1186         * xdisp.c (echo_area_display): Turn off code that returned
1187         without doing anything when using a terminal frame.
1189 1999-09-17  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
1191         * unexelf.c (unexec): Don't get confused by a short section
1192         just before the bss section.
1194 1999-09-16  Gerd Moellmann  <gerd@gnu.org>
1196         * emacs.c (main): Remove unused variables.
1197         (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
1199         * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
1200         init_fileio_once, syms_of_sound, init_xfns, init_fns
1201         init_sound, check_message_stack.
1203         * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
1205         * intervals.c (rotate_right, rotate_left): Add braces to avoid
1206         ambiguous else warning.
1207         (split_interval_left): Remove unused variables.
1208         (previous_interval, adjust_intervals_for_deletion,
1209         set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
1210         (icount, idepth, zero_length): Move into #if 0 section below
1211         original position where these are used.
1213         * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
1215         * buffer.c (Fkill_buffer): Remove unused variables.
1216         (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
1217         fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
1218         init_buffer_once, (syms_of_buffer): Ditto.
1220         * xrdb.c (get_fallback): Remove unused variable.
1221         (x_load_resources): Ditto.  Put local variable used for Motif only
1222         in #ifdef USE_MOTIF.
1224 1999-09-16  Gerd Moellmann  <gerd@gnu.org>
1226         * minibuf.c (read_minibuf): Remove unused variables.
1227         (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
1228         (do_completion): Move assignment out of conditional context.
1229         (Fdisplay_completion_list): Add parentheses to conditional expression.
1231         * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
1233         * lisp.h: Add prototype for no_switch_window.
1235         * window.c (Fset_window_buffer): Remove unused variables.
1236         (Fset_window_margins): Ditto.
1238         * xdisp.c (resize_mini_window): Temporarily set the selected
1239         window's or Vminibuf_scroll_window's height to "fixed" around
1240         the call the change_window_height.
1242         * window.c (window_fixed_size_p): Check window's height_fixed_p
1243         flag.
1245         * window.h (struct window): New member height_fixed_p.
1247         * dispnew.c (direct_output_forward_char): Don't use this method
1248         if showing a message or a message was just cleared because we
1249         might need to resize the mini-window.
1251 1999-09-16  Gerd Moellmann  <gerd@gnu.org>
1253         * frame.c (Fdelete_frame): Correct local variable pointing to
1254         selected frame after selecting new frame.
1256 1999-09-15  Richard Stallman  <rms@gnu.org>
1258         * puresize.h (BASE_PURESIZE): Increase to 525000.
1260         * filelock.c (Vtemporary_file_directory): New variable.
1261         (syms_of_filelock): Set up Lisp variable.
1263 1999-09-15  Gerd Moellmann  <gerd@gnu.org>
1265         * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
1266         (encode_terminal_code): Remove unused variables.
1267         (turn_off_face): Ditto.
1268         (toplevel): Include termcap.h if HAVE_TERMCAP_H.
1270         * dispnew.c (update_frame_line): If writing whole desired line,
1271         don't clear to end of line if already at the end.
1273 1999-09-15  Gerd Moellmann  <gerd@gnu.org>
1275         * xdisp.c (resize_mini_window): Don't report changed window
1276         height if it actually hasn't changed.
1278         * widget.c (set_frame_size, EmacsFrameSetCharSize):  Remove 
1279         unused variables.
1280         (mark_shell_size_user_specified): Put in #if 0 because not used.
1281         (create_frame_gcs): Put in #if 0 because currently unused.
1282         (first_frame_p): Ditto.
1284         * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
1285         single_submenu, update_frame_menubar, set_frame_menubar,
1286         free_frame_menubar, xmenu_show, xdialog_show): Remove unused
1287         variables.
1289         * print.c (PRINTFULLP): Removed because it is no longer used and
1290         is misleading.
1291         (Ferror_message_string): Remove unused variables.
1292         (print_object): Cast argument of sprintf to long for `%ld'
1293         specifier.  Remove unused variable.
1295 1999-09-14  Gerd Moellmann  <gerd@gnu.org>
1297         * sound.c (Fplay_sound): Remove usused variables.
1298         (be2hs): Put in #if 0 because it's currently not used.
1300 1999-09-14  Ken Raeburn  <raeburn@gnu.org>
1302         * print.c (Ferror_message_string, print_error_message,
1303         print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
1304         member access.
1306 1999-09-14  Gerd Moellmann  <gerd@gnu.org>
1308         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
1310         * frame.c (Fnext_frame): Remove unused variable(s).
1311         (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
1312         (store_frame_param): Add parentheses to conditional expression.
1313         (Fmodify_frame_parameters): Remove unused variables.
1314         (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
1315         Ditto.
1317         * xfns.c (x_set_background_color): Remove unused variable(s).
1318         (x_set_border_pixel): Ditto.
1319         (x_set_menu_bar_lines): Put local variable used only for
1320         non-toolkit case in #ifdef/#endif.
1321         (x_figure_window_size): Remove unused variable(s).
1322         (x_figure_window_size, x_window, lookup_image, 
1323         xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
1324         png_load, jpeg_load, gif_load, x_create_tip_frame,
1325         x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
1327         * xterm.c (x_scroll_bar_handle_click): Compile only if
1328         not USE_TOOLKIT_SCROLL_BARS.
1329         (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
1331         * dispextern.h: Add prototypes for gamma_correct and
1332         x_kill_gs_process.
1334         * xterm.c (x_produce_glyphs): Remove unused variable(s).
1335         (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
1336         x_set_toolkit_scroll_bar_thumb): Ditto.
1337         (x_scroll_bar_create): Move local variable to the
1338         conditionally compiled section of code where it is used.
1339         (x_scroll_bar_create): Remove unused variable(s).
1340         (x_scroll_bar_remove, XTread_socket): Ditto.
1341         (XTread_socket) <ConfigureNotify>: Move variables used for
1342         non-toolkit case into conditionally compiled section of code.
1344         * window.h (freeze_window_starts): Fix typo in prototype.
1346         * xdisp.c (display_echo_area_1, try_window_id): Remove unused
1347         variable(s).
1349         * lisp.h: Add prototype for debug_print.
1351         * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
1352         to use do-while.
1354         * fns.c (SXHASH_COMBINE): Add missing parentheses.
1355         (Fchar_table_range, Fset_char_table_default, mapcar1,
1356         Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
1358         * lisp.h: Add prototype for getloadavg.
1360 1999-09-14  Andreas Schwab  <schwab@gnu.org>
1362         * process.c (Fopen_network_stream): Avoid socket decriptor leak.
1364         * lisp.h: Declare close_file_unwind.
1366 1999-09-14  Richard Stallman  <rms@gnu.org>
1368         * filelock.c (get_boot_time): Make the temp name in the proper dir.
1370 1999-09-13  Gerd Moellmann  <gerd@gnu.org>
1372         * xdisp.c (redisplay_window): Make sure start_at_line_beg
1373         is always set correctly.
1375 1999-09-13  Dave Love  <fx@gnu.org>
1377         * xdisp.c (move_it_in_display_line_to): Make type consistent with
1378         declaration.
1380 1999-09-13  Gerd Moellmann  <gerd@delysid.gnu.org>
1382         * xdisp.c (QCfile): Move here from xfns.c.
1383         (syms_of_xdisp): Initialize it.
1384         (message2_nolog): Change for Lisp_Object selected_frame.
1385         (message3_nolog, message_with_string, message,
1386         setup_echo_area_for_printing, truncate_echo_area,
1387         prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
1389 1999-09-13  Dave Love  <fx@gnu.org>
1391         * xterm.c: Don't continue #define args for benefit of old cc.
1392         (xt_action_hook): Indent #error for benefit of K&R cc.
1394 1999-09-13  Gerd Moellmann  <gerd@delysid.gnu.org>
1396         * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
1397         (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
1398         (XRINGBELL): Removed.
1400 1999-09-13  Dave Love  <fx@gnu.org>
1402         * xfns.c (x_put_x_image): Make type consistent with declaration.
1404         * fns.c (Fmake_hash_table): Fix string continuation.
1406 1999-09-13  Gerd Moellmann  <gerd@delysid.gnu.org>
1408         * xfns.c (QCfile): Moved to xdisp.c.
1409         (syms_of_xfns): Don't initialize QCfile.
1410         (check_x_frame): Change for Lisp_Object selected_frame.
1411         (check_x_display_info, x_get_resource_string): Ditto.
1413 1999-09-13  Gerd Moellmann  <gerd@gnu.org>
1415         * minibuf.c (choose_minibuf_frame): Don't try to set the
1416         mini-buffer window's buffer, if the buffer is invalid.
1418         * xfns.c (QCfile): Moved to xdisp.c.
1419         (syms_of_xfns): Don't initialize QCfile.
1421         * xdisp.c (QCfile): Move here from xfns.c.
1422         (syms_of_xdisp): Initialize it.
1424         * lisp.h (selected_frame): Add external declaration.
1426         * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
1427         (Fx_store_cut_buffer_internal): Ditto.
1428         (Fx_rotate_cut_buffers_internal): Ditto.
1430         * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
1431         selected_frame.
1432         (Finternal_set_lisp_face_attribute): Ditto.
1433         (Finternal_get_lisp_face_attribute): Ditto.
1434         (Finternal_lisp_face_empty_p): Ditto.
1435         (Fdump_face): Ditto.
1437         * term.c (OUTPUT): Change for Lisp_Object selected_frame.
1438         (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
1439         set_terminal_window, set_scroll_region, reassert_line_highlight,
1440         change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
1441         clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
1442         encode_terminal_code, write_glyphs, term_init): Ditto.
1444         * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
1445         (kbd_input_ast, read_input_waiting): Ditto.
1447         * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
1448         selected_frame.
1449         (read_minibuf): Ditto.
1451         * keyboard.c (command_loop_1): Change for Lisp_Object
1452         selected_frame.
1453         (cmd_error_internal, command_loop_1, read_char,
1454         kbd_buffer_get_event, read_avail_input,
1455         read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
1456         interrupt_signal, quit_throw_to_read_char): Ditto.
1458         * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
1459         (Ffontset_info): DItto.
1461         * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
1463         * dispnew.c (selected_frame): Make it a Lisp_Object.
1464         (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
1465         (direct_output_for_insert, direct_output_forward_char,
1466         init_display): Ditto.
1468         * data.c (swap_in_symval_forwarding): Change for Lisp_Object
1469         selected_frame.
1470         (set_internal): Ditto.
1472         * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
1473         (record_buffer): Ditto.
1475         * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
1476         (do_switch_frame): Change for Lisp_Object selected_frame.
1477         (Fselected_frame): Ditto.
1478         (Fframe_first_window): Use SELECTED_FRAME.
1479         (Fframe_root_window): Change for Lisp_Object selected_frame.
1480         (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
1481         Fprevious_frame, other_visible_frames, Fdelete_frame,
1482         Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
1483         Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
1484         Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
1485         Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
1486         Fset_frame_height, Fset_frame_width): Ditto.
1488 1999-09-13  Gerd Moellmann  <gerd@gnu.org>
1490         * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
1491         (message3_nolog, message_with_string, message,
1492         setup_echo_area_for_printing, truncate_echo_area,
1493         prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
1495         * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
1496         (Fx_popup_dialog): Ditto.
1498         * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
1499         (check_x_display_info, x_get_resource_string): Ditto.
1501         * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
1502         (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
1503         (XRINGBELL): Removed.
1505         * window.c (Fminibuffer_window): Change for Lisp_Object
1506         selected_frame.
1507         (Fwindow_at, Fprevious_window, window_loop, select_window_1,
1508         display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
1509         Fcurrent_window_configuration, init_window_once): Ditto.
1511         * frame.h (SELECTED_FRAME): New.
1513 1999-09-12  Ken Raeburn  <raeburn@gnu.org>
1515         * category.c (word_boundary_p): Use XCAR and XCDR.
1516         * ccl.c (ccl_driver, resolve_symbol_ccl_program,
1517         Fregister_code_conversion_map): Likewise.
1518         * coding.c (setup_coding_system, detect_coding_system,
1519         Ffind_operation_coding_system, Fset_coding_priority_internal):
1520         Likewise.
1521         * doc.c (get_doc_string, Fdocumentation,
1522         store_function_docstring): Likewise.
1523         * editfns.c (save_restriction_restore): Likewise.
1524         * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
1525         skip_debugger, find_handler_clause, Fautoload, Fapply,
1526         run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
1527         Likewise.
1528         * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
1529         Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
1530         Fread_file_name): Likewise.
1531         * filelock.c (unlock_all_files): Likewise.
1532         * insdel.c (Fcombine_after_change_execute): Likewise.
1533         * intervals.c (adjust_intervals_for_insertion): Likewise.
1534         * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
1535         Fset_keymap_parent, fix_submap_inheritance, access_keymap,
1536         store_in_keymap, Fcopy_keymap, define_as_prefix,
1537         current_minor_maps, Faccessible_keymaps,
1538         accessible_keymaps_char_table, Fkey_description,
1539         Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
1540         describe_buffer_bindings, describe_map_tree, shadow_lookup,
1541         describe_map): Likewise.
1542         * lread.c (Fload, load_unwind, close_load_descs, read_vector,
1543         read_list, init_lread): Likewise.
1544         * search.c (Fmatch_data): Likewise.
1545         * sunfns.c (Fsun_menu_internal): Likewise.
1546         * syntax.c (describe_syntax): Likewise.
1547         * undo.c (record_insert, record_delete, Fundo_boundary,
1548         truncate_undo_list): Likewise.
1549         * vmsproc.c (child_sig): Likewise.
1551         * editfns.c (Fformat): Use XFLOAT_DATA.
1553 1999-09-12  Gerd Moellmann  <gerd@gnu.org>
1555         * keyboard.c (command_loop_1): Resize mini-window to the
1556         exact size of a message displayed, if any.
1558         * xdisp.c (resize_mini_window): Add parameter exact_p.  Resize
1559         to exact size if exact_p is non-zero.
1560         (display_echo_area_1): Call resize_mini_window with
1561         new parameter.
1562         (redisplay_internal): Ditto.
1563         (resize_echo_area_axactly): New.
1565         * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
1566         new parameter.
1568         * dispextern.h: Change prototype of resize_mini_window.
1569         Add prototype for resize_echo_area_axactly.
1571         * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
1572         (syms_of_xfaces): Defsubr accordingly.
1574         * xdisp.c (hscroll_window_tree): Choose cursor row from
1575         desired or current matrix.
1576         (redisplay_internal): Hscroll before updating.
1578 1999-09-12  Gerd Moellmann  <gerd@gnu.org>
1580         * syntax.c (Fforward_word): Use prompt_end_charpos instead
1581         of minibuffer_prompt_length.
1583         * minibuf.c (read_minibuf): Use prompt_end_charpos instead
1584         of minibuffer_prompt_length.
1585         (read_minibuf_unwind): Ditto.
1586         (Fminibuffer_complete_and_exit): Ditto.
1587         (Fminibuffer_complete_word): Ditto.
1588         (Fminibuffer_prompt_end): Ditto.
1590         * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
1591         of minibuffer_prompt_length.
1592         (Fline_beginning_position): Ditto.
1594         * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
1595         of minibuffer_prompt_length.
1596         (Fmake_indirect_buffer): Ditto.
1597         (Fkill_buffer): Ditto.
1598         (Ferase_buffer): Ditto.
1600         * buffer.h (prompt_end_charpos): Replaces
1601         minibuffer_prompt_length.
1603         * minibuf.c (read_minibuf): Return mini-buffer contents 
1604         without the prompt.
1606         * editfns.c (make_buffer_string_both): Take out the code
1607         to handle mini-buffer prompts.
1608         (Fbuffer_string): Handle the prompt here, instead.
1610         * xfaces.c (lface_from_face_name): Resolve face aliases.
1611         (Qmode_line): Replaces Qmodeline.
1612         (realize_basic_faces): Use Qmode_line.
1613         (syms_of_xfaces): Initialize Qmode_line.
1615 1999-09-12  Gerd Moellmann  <gerd@gnu.org>
1617         * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
1618         current column after inserting prompt.
1619         (Fminibuffer_prompt_width): Return minibuf_prompt_width.
1621         * xfaces.c (Qframe_update_face_colors): New.
1622         (syms_of_xfaces): Initialize call.
1623         (update_face_from_frame_parameter): Call that function when
1624         the frame's background changes.
1626 1999-09-12  Richard Stallman  <rms@gnu.org>
1628         * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
1630 1999-09-12  Ken Raeburn  <raeburn@gnu.org>
1632         * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
1633         mark_object, mark_buffer): Use XCAR and XCDR.
1634         * bytecode.c (Fbyte_code): Likewise.
1635         * callint.c (Fcall_interactively, Fprefix_numeric_value):
1636         Likewise.
1637         * callproc.c (Fcall_process, Fcall_process_region, child_setup,
1638         getenv_internal): Likewise.
1639         * dired.c (file_name_completion): Likewise.
1640         * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
1641         assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
1642         Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
1643         * indent.c (Fcompute_motion): Likewise.
1644         * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
1645         list_processes_1, Fstart_process, Fopen_network_stream,
1646         wait_reading_process_input, read_process_output_call,
1647         kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
1648         status_notify, wait_reading_process_input): Likewise.
1649         * textprop.c (PLIST_ELT_P, property_value, set_properties,
1650         extend_property_ranges): Likewise.
1651         * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
1652         * w32fns.c (x_window_to_frame, x_set_frame_parameters,
1653         x_report_frame_params, x_set_cursor_type, x_icon_type,
1654         x_figure_window_size, Fx_create_frame, w32_load_system_font,
1655         w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
1656         w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
1657         Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
1658         x_display_info_for_name, Fx_display_list): Likewise.
1659         * w32menu.c (menubar_id_to_frame, single_keymap_panes,
1660         Fx_popup_menu, Fx_popup_dialog): Likewise.
1661         * w32proc.c (Fw32_set_keyboard_layout): Likewise.
1662         * w32term.c (x_window_to_scroll_bar, w32_read_socket,
1663         w32_term_init, x_delete_display): Likewise.
1664         * xfns.c (x_window_to_frame, x_any_window_to_frame,
1665         x_non_menubar_window_to_frame, x_menubar_window_to_frame,
1666         x_top_window_to_frame, x_set_frame_parameters,
1667         x_report_frame_params, x_set_cursor_type, x_icon_type,
1668         x_figure_window_size, Fx_create_frame, x_display_info_for_name,
1669         Fx_display_list, x_create_tip_frame): Likewise.
1670         * xmenu.c (menubar_id_to_frame, single_keymap_panes,
1671         Fx_popup_menu, Fx_popup_dialog): Likewise.
1672         * xselect.c (x_own_selection, x_get_local_selection,
1673         x_handle_selection_request, x_handle_selection_clear,
1674         x_clear_frame_selections, wait_for_property_change_unwind,
1675         wait_for_property_change, x_handle_property_notify,
1676         copy_multiple_data, x_get_foreign_selection,
1677         lisp_data_to_selection_data, clean_local_selection_data,
1678         x_handle_selection_notify, Fx_get_selection_internal,
1679         x_disown_buffer_selections): Likewise.
1680         * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
1681         x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
1682         Likewise.
1684         * alloc.c (make_float, make_pure_float, Fpurecopy): Use
1685         XFLOAT_DATA.
1686         * bytecode.c (Fbyte_code): Likewise.
1687         * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
1688         fmod_float): Likewise.
1690 1999-09-11  Richard Stallman  <rms@gnu.org>
1692         * xdisp.c (run_window_scroll_functions): If hook functions switch
1693         buffers, switch back after.
1695 1999-09-11  Ken Raeburn  <raeburn@gnu.org>
1697         * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
1698         * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
1699         (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
1700         * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
1701         POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
1702         XCDR.
1703         * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
1704         XCDR.
1706 1999-09-10  Richard Stallman  <rms@gnu.org>
1708         * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
1709         not RevertToPointerRoot.
1710         (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1711         Fix the code to clear around the scroll bar.
1713 1999-09-10  Keisuke Nishida  <kxn30@po.cwru.edu>
1715         * print.c: Support print-circle and related features.
1716         (Vprint_gensym_alist): Removed.
1717         (Vprint_circle, Vprint_continuous_numbering, print_number_index
1718         Vprint_number_table): New variables.
1719         (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
1720         (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
1721         (print, print_preprocess, print_preprocess_string, print_object):
1722         New/modified functions with print-circle feature.  Use
1723         Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
1724         (syms_of_print): Defined new Lisp variables `print-circle',
1725         `print-continuous-numbering', `print-number-table'.
1727 1999-09-10  Gerd Moellmann  <gerd@gnu.org>
1729         * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
1730         as background color specification instead of an integer.
1731         (image-cache-eviction-delay): Replaces image-eviction-seconds.
1732         (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
1733         (clear_image_cache, syms_of_xfns): Use it.
1734         (Qpostscript): Replaces Qghostscript.
1735         (gs_type): Use it.
1736         (gs_image_p): Ditto.
1737         (syms_of_xfns): Initialize Qpostscript.
1739 1999-09-10  Richard Stallman  <rms@gnu.org>
1741         * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
1743 1999-09-09  Richard Stallman  <rms@gnu.org>
1745         * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
1747         * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
1749 1999-09-09  Gerd Moellmann  <gerd@gnu.org>
1751         * fns.c (Fmakehash): Accept just one optional argument TEST.
1753         * xfns.c (QCindex): New.
1754         (syms_of_xfns): Initialize QCindex.
1755         (gif_load): Use it instead of `:image'.
1757 1999-09-09  Richard Stallman  <rms@gnu.org>
1759         * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
1760         (Fwrite_region) [DOS_NT]: Handle `excl' here too.
1762 1999-09-08  Gerd Moellmann  <gerd@gnu.org>
1764         * xdisp.c (Qwhen): Replaces QCwhen.
1765         (syms_of_xdisp): Initialized it instead of QCwhen.
1766         (handle_single_display_prop): Use it instead of QCwhen.
1768 1999-09-08  Ken'ichi Handa  <handa@gnu.org>
1770         * charset.c (translate_char): Reset MSBs of arguments of
1771         MAKE_CHAR.
1772         (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
1774 1999-09-08  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1776         * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
1778         * fns.c (Fbase64_decode_region): Don't place point outside of the
1779         current accessible portion.
1781 1999-09-07  Richard Stallman  <rms@gnu.org>
1783         * keymap.c (fix_submap_inheritance): Do nothing if the proper
1784         parent is an ancestor of SUBMAP; otherwise, add it as the
1785         ultimate ancestor.
1787 1999-09-07  Gerd Moellmann  <gerd@gnu.org>
1789         * xdisp.c (handle_single_display_prop): Change conditional
1790         display property to `:when FORM . VALUE'.
1792 1999-09-07  Richard Stallman  <rms@gnu.org>
1794         * fileio.c (Fwrite_region): Doc fix.
1796 1999-09-07  Stefan Monnier  <monnier@cs.yale.edu>
1798         * fileio.c (Qexcl): New variable.
1799         (report_file_error): Handle EEXIST specially.
1800         (Fwrite_region): Special handling for CONFIRM = `excl'.
1801         (syms_of_fileio): Initialize Qexcl.
1803 1999-09-07  Gerd Moellmann  <gerd@gnu.org>
1805         * xfns.c (x_set_foreground_color): Call
1806         update_face_from_frame_parameter.
1807         (x_set_background_color): Ditto.
1808         (x_set_mouse_color): Ditto.
1809         (x_set_cursor_color): Ditto.
1810         (x_set_border_color): Ditto.
1811         (x_set_scroll_bar_foreground): Ditto.
1812         (x_set_scroll_bar_background): Ditto.
1814         * xfaces.c (recompute_basic_faces): Clear face cache.
1815         (Finternal_set_lisp_face_attribute): Modify frame parameters
1816         if attributes of certain faces are changed.
1817         (update_face_from_frame_parameter): New.
1819         * xfaces.c (realize_basic_faces): Realize new basic faces.
1821         * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
1822         CURSOR_FACE_ID, MOUSE_FACE_ID): New.
1824         * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
1825         (syms_of_xfaces): Intialize new symbols.
1827         * fns.c (Fmakehash): Take one argument, test, make all the
1828         rest keyword arguments.
1830         * window.c (Fset_window_margins): Make window the first argument.
1831         (set_window_buffer): Call Fset_window_margins with window as first
1832         argument.
1834 1999-09-07  Gerd Moellmann  <gerd@gnu.org>
1836         * xfaces.c (Qfringe): Replaces Qmargin.
1838 1999-09-07  Kenichi Handa  <handa@etl.go.jp>
1840         * charset.h: Lots of comments fixed.
1841         (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
1842         (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
1844         * charset.c : Lots of comments fixed.
1845         (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
1846         (CHAR_COMPONENTS_VALID_P): Name changed from
1847         CHAR_COMPONENT_VALID_P.  Caller changed.
1849 1999-09-06  Richard Stallman  <rms@gnu.org>
1851         * insdel.c (syms_of_insdel): Define Lisp variable
1852         inhibit-modification-hooks.
1854 1999-09-06  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
1856         * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
1857         unexaix.c.
1859         * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
1861 1999-09-06  Dave Love  <fx@gnu.org>
1863         * unexaix.c: New version incorporating Michael Sperber's changes
1864         from XEmacs.  Should solve problems on AIX 4.3.
1866         * lread.c (Vbyte_boolean_vars): New variable.
1867         (defvar_bool, syms_of_lread): Use it.
1869 1999-09-05  Richard Stallman  <rms@gnu.org>
1871         * minibuf.c (read_minibuf): Put all three properties on the
1872         same range, the whole prompt.
1874 1999-09-05  Gerd Moellmann  <gerd@gnu.org>
1876         * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
1877         (Fplay_sound, syms_of_sound): Use it.
1878         (parse_sound): Allow float volume values in the range [0, 1].
1879         (Fplay_sound): Ditto.
1881         * window.c (Fset_window_vscroll): Make window the first argument,
1882         amount to scroll the second.  Take non-negative vscroll as
1883         argument.
1884         (Fwindow_vscroll): Return non-negative vscroll.
1886         * xfns.c (Fx_show_tip): Improve documentation.
1888 1999-09-05  Gerd Moellmann  <gerd@gnu.org>
1890         * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
1891         window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
1892         `top-line' and `top_line' to `header-line' and `header_line'.
1893         Likewise for similar spellings.
1895 1999-09-05  Gerd Moellmann  <gerd@gnu.org>
1897         * xdisp.c (row_containing_pos): New.
1898         (try_window_id): Use it.
1900         * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
1901         lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
1902         Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
1903         Likewise for upper-case etc.
1905 1999-09-05  Gerd Moellmann  <gerd@gnu.org>
1907         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1908         Fix reference to renamed variable.
1910 1999-09-04  Gerd Moellmann  <gerd@gnu.org>
1912         * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
1913         (window_fixed_size_p): Use Qwindow_size_fixed instead of 
1914         Qfixed_window_size.
1915         (syms_of_window): Ditto.
1917         * fns.c (Fmakehash): Exchange optional test and size arguments.
1919 1999-09-03  Gerd Moellmann  <gerd@gnu.org>
1921         * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
1922         under newly created scroll bar.
1923         (expose_window): If window is not yet fully initialized, do
1924         nothing.  This can happen when toolkit scroll bars are used and a
1925         window is split.  Reconfiguring the scroll bars will generate an
1926         expose for a newly created window.
1928         * frame.h (struct frame): New member `gamma'.
1930         * xfns.c: Include math.h.  Add extern declaration for atof in case
1931         we don't see one.
1932         (Qscreen_gamma): New.
1933         (struct x_frame_parm_table): Add prototypes, add
1934         x_set_screen_gamma.
1935         (gamma_correct): New function.
1936         (defined_color): Call it.
1937         (x_set_screen_gamma): New.
1938         (x_set_title): Add parameter old_value.
1939         (RES_TYPE_FLOAT): New.
1940         (x_get_arg): Handle RES_TYPE_FLOAT.
1941         (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
1942         (lookup_pixel_color): Change call to x_alloc_nearest_color to
1943         new prototype.
1944         (lookup_rgb_color): Ditto.
1945         (syms_of_xfns): Initialize Qscreen_gamma.
1947         * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
1948         New.  Allocate color for lwlib widgets.
1949         (x_alloc_nearest_color): Change parameter list include the
1950         frame on which to allocate colors.  Gamma-correct colors.
1951         (x_alloc_lighter_color): Call x_alloc_lighter_color with new
1952         parameter list.
1954         * xterm.h: Change protorype of x_alloc_nearest_color.
1956 1999-09-03  Richard Stallman  <rms@gnu.org>
1958         * callproc.c: Delete the system-independent include of stdlib.h
1959         (leaving only the one in the WINDOWSNT conditional).
1961 1999-09-03  Andrew Choi  <choi@cs.hku.hk>
1963         * callproc.c (call-process) [macintosh]: Call mac_run_command in
1964         sysdep.c.  The Mac code is modeled after the DOS code.
1965         
1966         * dispextern.h [macintosh]: Include macterm.h to define substitute X
1967         Window types and macros.
1969         * frame.h: Do nothing if included a second time.
1970         (enum output_method): Add mac_output frame type.
1971         (union output_data): Add new alternative `mac'.
1972         (FRAME_MAC_P): New macro.
1973         
1974         * frame.c (Fframep) [macintosh]: Handle mac frame type.
1975         (syms_of_frame_1): Initialize Qmac.
1976         (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
1977         (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
1978         (Fmodify_frame_parameters) [macintosh]: Call
1979         mac_set_frame_parameter in macterm.c.
1980         
1981         * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
1982         (512) because Mac compilers limit local data of a function to 32K.
1983         
1984         * make-docfiles.c: Correctly handle input files with Mac-style
1985         eol's.
1986         
1987         * sysdep.c: Define numerous routines to emulate Unix system calls.
1988         
1989         * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
1990         file of an X Window environment.
1991         
1992         * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
1993         x-display-grayscale, x-color-defined-p, and x-color-values.
1994         
1995         * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
1996         (open, creat, unlink, read, write, rename, fopen, pause, alarm)
1997         (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
1998         (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
1999         (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
2000         New functions, replacing POSIX features.
2001         
2002         * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
2003         (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
2004         (InitEmacsPasswdDir, run_mac_command): New subroutines.
2006         * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
2007         (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
2008         (myPasswdDir, TempDirName, sys_siglist): New variables.
2010         * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
2011         (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
2012         (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
2013         Define empty stubs so Emacs will link.
2015 1999-09-03  Gerd Moellmann  <gerd@gnu.org>
2017         * xdisp.c: Use XCAR and XCDR instead of XCONS.
2019         * window.h: New member frozen_window_start_p.
2021         * window.c (foreach_window, foreach_window_1): New.
2022         (freeze_window_start, freeze_window_starts): New.
2023         (make_window): Initialize frozen_window_start_p.
2024         (replace_window): Ditto.
2025         (Fset_window_point): Remove references to deleted variables.
2026         (Fset_window_start): Ditto.
2028         * xdisp.c (Vresize_mini_config, resize_mini_frame,
2029         resize_mini_initial_height): Removed.
2030         (syms_of_xdisp): Remove references to these variables.
2031         (resize_mini_window): Don't save window configuration, freeze
2032         window starts instead.  Enlarge window until displaying an empty
2033         buffer, then shrink it.  Make the function externally visible.
2034         (redisplay_window): Treat frozen window start like forced start,
2035         but accept point outside of the window.
2037         * dispextern.h: Add function prototype for resize_mini_window.
2039         * minibuf.c (read_minibuf_unwind): Resize mini-window when
2040         reaching minibuf_level 0.
2042         * lisp.h: Remove extern declarations for variables deleted from
2043         xdisp.c.
2045         * dispnew.c (adjust_frame_glyphs): Remove reference to
2046         Vresize_mini_config.
2048 1999-09-03  Gerd Moellmann  <gerd@gnu.org>
2050         * xfns.c (x_set_scroll_bar_width): Change conditional compilation
2051         to USE_TOOLKIT_SCROLL_BARS.
2053         * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
2054         here.
2055         (XTset_vertical_scroll_bar): Clarify position computations.  Clear
2056         under newly created scroll bar.  Put toolkit scroll bars in the
2057         middle of the area reserved for the scroll bar.
2059 1999-09-03  Kenichi Handa  <handa@etl.go.jp>
2061         The following changes are for the new handling of mulitbyte
2062         sequence.  Now, except for a composite character, no multibyte
2063         character in string/buffer has trailing garbage bytes.  For
2064         instance, the length of string "\201\300\300" is now 2, the first
2065         character is Latin-1 A-grave, the second is raw \300.
2067         * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
2068         are negative.
2069         (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
2070         (VALID_MULTIBYTE_CHAR_P): This macro deleted.
2071         (PARSE_COMPOSITE_SEQ): New macro.
2072         (PARSE_CHARACTER_SEQ): New macro.
2073         (PARSE_MULTIBYTE_SEQ): New macro. 
2074         (CHAR_PRINTABLE_P): New macro.
2075         (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
2076         (STRING_CHAR_AND_LENGTH): Likewise.
2077         (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
2078         (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
2079         (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
2081         * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
2082         (SPLIT_CHARACTER_SEQ): New macro.
2083         (SPLIT_MULTIBYTE_SEQ): New macro.
2084         (CHAR_COMPONENT_VALID_P): New macro.
2085         (non_ascii_char_to_string): Generate a multibyte sequence as far
2086         as possible.
2087         (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
2088         deleted.  Caller changed.  Use the macro SPLIT_MULTIBYTE_SEQ.
2089         (split_non_ascii_string): Likewise.
2090         (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
2091         (char_printable_p): New function.
2092         (translate_char): Check character by NATNUMP instead of INTEGERP.
2093         (unibyte_char_to_multibyte): Call char_valid_p instead of
2094         VALID_MULTIBYTE_CHAR_P.
2095         (Fmake_char_internal): Check the arguments more rigidly.
2096         (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
2097         (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
2098         (Fmultibyte_char_to_unibyte): Check the validity of character by
2099         CHAR_VALID_P.
2100         (chars_in_text): Call multibyte_chars_in_text.
2101         (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
2102         (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
2103         STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
2105         * data.c (Faset): Adjust the way to check byte-combining
2106         possibility for the new handling of multibyte sequence.
2108         * editfns.c (Fsubst_char_in_region): Likewise.
2110         * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
2111         (string_char_to_byte): Likewise.
2112         (string_byte_to_char): Likewise.
2114         * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C.  Use the
2115         macro STRING_CHAR_AND_LENGTH.  Caller changed.
2117         * insdel.c (count_combining_composition): New function.
2118         (count_combining_before): Adjust the way to check byte-combining
2119         possibility for the new handling of multibyte sequence.  Call
2120         count_combining_composition for a composite character.
2121         (count_combining_after): Likewise.
2123         * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
2124         (print): Likewise.
2126         * dispextern.h (struct it): Change the size of the member
2127         `ctl_chars'.
2129         * xdisp.c (get_next_display_element): Display incomplete multibyte
2130         sequence (e.g. \222\300) by octal form.
2132 1999-09-02  Gerd Moellmann  <gerd@gnu.org>
2134         * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
2136         * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
2137         (cmpfn_eql, sxhash): Use XFLOAT_DATA.
2139 1999-09-02  Gerd Moellmann  <gerd@gnu.org>
2141         * buffer.c (set_buffer_internal): Never set
2142         windows_or_buffers_changed.
2144         * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
2145         if we have displayed to the bottom of the window.
2147         * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
2148         in both directions.  Extend documentation.
2150 1999-09-01  Gerd Moellmann  <gerd@gnu.org>
2152         * minibuf.c (read_minibuf): Flush display after setting cursor to
2153         column 0.
2155 1999-08-31  Gerd Moellmann  <gerd@gnu.org>
2157         * s/freebsd.h (__FreeBSD_version): Don't define it if it is
2158         already defined.  This avoids a warning from buffer.c.
2160 1999-08-30  Gerd Moellmann  <gerd@gnu.org>
2162         * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
2163         of both margins.
2164         (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
2165         (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
2166         (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
2168         * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
2169         once instead of twice.
2170         (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
2172         * xterm.c: Remove unused bitmaps.
2173         (continued_bits, continuation_bits, overlay_bits): Change images.
2174         (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
2175         instead of FRAME_X_FLAGS_AREA_WIDTH.
2176         (x_after_update_window_line): Ditto.
2177         (x_draw_bitmap): Likewise.
2178         (x_draw_row_bitmaps): Likewise.
2179         (x_draw_glyph_string_box): Likewise.
2180         (x_draw_glyphs): Likewise.
2181         (x_scroll_run): Likewise.
2182         (expose_window_tree): Likewise.
2183         (note_mode_line_highlight): Likewise.
2184         (XTset_vertical_scroll_bar): Likewise.
2185         (x_clip_to_row): Likewise.
2186         (x_set_window_size): Likewise.
2188         * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
2189         of 2 * that value.
2191         * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
2192         2 * that value.
2193         (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
2194         FRAME_FLAGS_AREA_WIDTH.
2196         * window.c (coordinates_in_window): Use
2197         FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
2198         (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
2199         instead of twice.
2201         * widget.c (set_frame_size): Set flags_area_extra to 
2202         FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
2203         (EmacsFrameSetCharSize): Ditto.
2205         * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
2206         instead of FRAME_FLAGS_AREA_WIDTH.
2208         * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
2209         FRAME_FLAGS_AREA_COLS once.
2210         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
2211         FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
2213 1999-08-30  Gerd Moellmann  <gerd@gnu.org>
2215         * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
2216         in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
2218 1999-08-30  Gerd Moellmann  <gerd@gnu.org>
2220         * fns.c (QCweakness): Replaces QCweak.
2221         (Fmake_hash_table): Ditto.
2222         (Fmakehash): Ditto.
2223         (syms_of_fns): Ditto.
2225 1999-08-29  Richard Stallman  <rms@gnu.org>
2227         * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
2229         * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
2231         * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
2232         Add support for nested comments.
2234         * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
2235         Consolidate the forward comment code into the new `forw_comment'.
2236         (forw_comment): New subroutine.  Added support for nested comments.
2237         (lisp_parse_state, back_comment, Fmodify_syntax_entry)
2238         (Fparse_partial_sexp): Add support for nested comments.
2240 1999-08-28  Ken Raeburn  <raeburn@gnu.org>
2242         * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
2243         names of structure elements if HIDE_LISP_IMPLEMENTATION is
2244         defined, to help detect code that uses knowledge of the Lisp
2245         internals that it shouldn't have.
2246         (XFLOAT_DATA): New macro.
2248 1999-08-25  Gerd Moellmann  <gerd@gnu.org>
2250         * syntax.c (Fforward_word): If in a mini-buffer and moving
2251         backwards, stop in front of the prompt to prevent accidentially
2252         moving into the read-only prompt.
2254         * window.c (Frecenter): Clear frame if called with nil or no arg.
2256         * xdisp.c (resize_mini_window): Don't resize if
2257         Vmax_mini_window_height is nil.  Otherwise, use a default if
2258         Vmax_mini_window_height is not ot a number.
2259         (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
2261 1999-08-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
2263         * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
2264         * m/iris4d.h: Use unexelf for IRIX 5.*.
2265         * m/iris5d.h: Use unexelf for IRIX 6.*.
2266         * unexsgi.c: Deleted.
2268         * unexelf.c: Auto-detect .sbss section.
2269         (round_up): Make it static.
2270         (unexec): Declare alignment as Elf Word.  Skip ``Program
2271         segment above .bss'' test on MIPS without .sbss.
2272         Copy sections .got and .sdata1 sections.  Adjust offsets in
2273         sections .sdata, .lit4, .lit8, .got and .sdata1.
2275 1999-08-25  Gerd Moellmann  <gerd@gnu.org>
2277         * xdisp.c (try_window_id): Remove typo.
2279 1999-08-24  Gerd Moellmann  <gerd@gnu.org>
2281         * xdisp.c (try_window_id): Recognize case that PT == ZV and in
2282         unchanged text at the bottom when computing the cursor position.
2283         (message3_nolog): Raise frame only if minibuffer_auto_raise is
2284         set.
2286         * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
2288 1999-08-24  Gerd Moellmann  <gerd@gnu.org>
2290         * xfaces.c (Qmargin): Replacement for Qbitmap_area.
2291         (realize_basic_faces): Replace Qmargin for Qbitmap_area.
2292         (syms_of_xfaces): Ditto.
2294         * window.c (Fset_window_point): Reset Vresize_mini_config.
2295         (Fset_window_start): Ditto.
2296         (set_window_buffer): Ditto.
2298         * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
2300         * xdisp.c (redisplay_window): Don't ever test just_this_one_p
2301         before calling try_window.
2302         (echo_area_display): If height has changed, update other windows.
2303         (resize_mini_frame, resize_mini_initial_height): New.
2304         (resize_mini_window): Save/restore window configuration
2305         differently.
2307         * lisp.h (Vresize_mini_config, resize_mini_frame, 
2308         resize_mini_initial_height): Add extern declarations.
2310         * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
2311         CANON_X_UNIT.
2313         * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
2314         being redefined in jconfig.h.
2316 1999-08-23  Ken'ichi Handa  <handa@gnu.org>
2318         * coding.h: Include "ccl.h" instead of "../src/ccl.h".
2320 1999-08-22  Gerd Moellmann  <gerd@gnu.org>
2322         * alloc.c (mark_glyph_matrix): Mark strings only.
2324         * xdisp.c (redisplay_internal): Clear garbaged frames after
2325         resizing mini-window.
2327 1999-08-22  Gerd Moellmann  <gerd@gnu.org>
2329         * xdisp.c (unwind_with_echo_area_buffer): Use
2330         set_buffer_internal_1 instead of set_buffer_internal.
2331         (with_echo_area_buffer): Ditto.
2333         * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
2334         only if buffer is displayed somewhere.
2336         * buffer.h (BUF_COMPUTE_UNCHANGED): New.
2338         * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
2339         (gap_right): Ditto.
2340         (modify_region): Ditto.
2342         * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
2344         * xdisp.c (Vresize_mini_config): New.
2345         (resize_mini_window): Use it to save restore original window
2346         configuration
2347         (syms_of_xdisp): Initialize it.
2349         * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
2351         * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
2353         * xdisp.c (reconsider_clip_changes): New.
2354         (redisplay_internal, redisplay_window): Call it.
2355         (mark_window_display_accurate, redisplay_internal): Set current
2356         matrix' buffer, begv, zv.
2358         * window.c (Fset_window_hscroll): Set
2359         prevent_redisplay_optimizations_p instead of clip_changed.
2360         (Fset_window_hscroll): Ditto.
2361         (temp_output_buffer_show): Ditto.
2362         (Fset_window_vscroll): Ditto.
2364         * buffer.c (reset_buffer): Set clip_changed to 0 and
2365         prevent_redisplay_optimizations_p to 1.
2366         (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
2368         * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
2369         BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
2370         BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
2371         END_UNCHANGED): New.
2372         (struct buffer_text):  Add beg_unchanged, end_unchanged,
2373         unchanged_modified, overlay_unchanged_modified.
2375         * window.h (beg_unchanged, end_unchanged, unchanged_modified,
2376         overlay_unchanged_modified): Removed.
2377         (with_echo_area_unwind_data): Don't save beg/end_unchanged.
2378         (unwind_with_echo_area_buffer): Don't restore them.
2379         (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
2380         (text_outside_line_unchanged_p, redisplay_internal,
2381         try_scrolling): Use/set buffer-specific beg/end_unchanged.
2382         (redisplay_window): Let try_window_id be called if more than one
2383         window is displayed.  Use/set buffer-specific beg/end_unchanged.
2384         (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
2385         try_window_id):
2386         Use buffer-specific beg/end_unchanged.
2388         * window.h (beg_unchanged, end_unchanged, unchanged_modified,
2389         overlay_unchanged_modified): Remove extern declarations.
2391         * keyboard.c (command_loop_1):  Set beg/end_unchanged per
2392         buffer.
2394         * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
2395         (gap_right): Ditto.
2396         (adjust_after_replace): Likewise.
2397         (replace_range, del_range_2, modify_region): Likewise.
2399         * dispnew.c (direct_output_for_insert):  Set beg_unchanged
2400         and unchanged_modified per buffer.
2402         * coding.c (code_convert_region): Compute beg/end_unchanged per
2403         buffer.
2405         * buffer.c (modify_overlay): Compute beg/end_unchanged
2406         per buffer.
2407         (Fget_buffer_create): Initialize new members of the buffer 
2408         structure.
2410 1999-08-22  Gerd Moellmann  <gerd@gnu.org>
2412         * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
2414         * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
2415         (Qkey_value_weak):  Removed.
2416         (make_hash_table): Use nil, `key', `value', t for weakness.
2417         (Fmake_hash_table): Ditto.
2418         (copy_hash_table): New.
2419         (Fcopy_hash_table): New.
2421 1999-08-22  Gerd Moellmann  <gerd@gnu.org>
2423         * xfns.c: Call change_frame_size and do_pending_window_change with
2424         new parameter.  
2426 1999-08-21  Gerd Moellmann  <gerd@gnu.org>
2428         * xdisp.c (resize_mini_window): Do it for truncate-lines t as
2429         well.
2430         (redisplay_internal): Resize mini-window only if text might 
2431         have changed.
2432         (display_echo_area): Reset displayed echo_area_buffer to nil
2433         at the end if we're displaying a nil message.
2435 1999-08-21  Gerd Moellmann  <gerd@gnu.org>
2436         
2437         * fns.c (hash_lookup): Test with EQ before calling key comparion
2438         function.
2439         (hash_remove): Ditto.
2440         (cmpfn_eq): Removed.
2441         (cmpfn_eql): Don't test with EQ.
2442         (cmpfn_equal): Ditto.
2443         (make_hash_table): Set comparison function for `eq' to null.
2445         * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
2446         Remove conditional compilation on NO_PROMPT_IN_BUFFER.
2448         * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
2450         * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
2451         xterm.c: Call change_frame_size and do_pending_window_change with
2452         new parameter.
2454         * dispnew.c (do_pending_window_change): Add parameter `safe'.
2455         (change_frame_size): Ditto.
2456         (change_frame_size_1): Ditto.  Deley size changes if redisplaying
2457         and not called from a safe place.
2458         (window_change_signal): Call change_frame_size with new parameter.
2460         * dispextern.h: Change prototypes for do_pending_window_change
2461         and change_frame_size.
2463         * xfaces.c (face_at_buffer_position): Don't xassert that
2464         window's buffers equals current_buffer; this is not the 
2465         case during echo area display.
2467 1999-08-21  Gerd Moellmann  <gerd@gnu.org>
2469         * xdisp.c, minibuf.c: Remove conditional compilation on
2470         NO_PROMPT_IN_BUFFER.
2472         * minibuf.c (Fminibuffer_prompt_end): New.
2473         (syms_of_minibuf): Defsubr it.  Remove
2474         minibuffer-prompt-in-buffer.
2475         (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
2476         Extend documentation.
2478         * xdisp.c (get_next_display_element): Display \r as ^M.
2480         * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
2481         under scroll bar widget.
2483 1999-08-21  Gerd Moellmann  <gerd@gnu.org>
2485         * xdisp.c (minibuffer_scroll_overlap): Removed because not used
2486         anywhere.
2487         (unwind_redisplay): Return nil.
2488         (clear_garbaged_frames): New.
2489         (redisplay_internal): Use it.
2490         (echo_area_display): Ditto.
2491         (resize_mini_window): Mew.
2492         (display_echo_area_1): Use it to resize echo area window.
2493         (redisplay_internal): Use it to resize active mini-window.
2495         * dispextern.h, lisp.h: Add function prototypes.
2497         * dispnew.c (set_window_cursor_after_update): Do the 
2498         cursor_in_echo_area case only for a mini-window showing
2499         a message.  Don't let cursor end up after the end of a row.
2501         * xdisp.c (echo_area_glyphs, echo_area_message,
2502         echo_area_glyphs_length, previous_echo_glyphs,
2503         previous_echo_area_message, previous_echo_area_glyphs_length):
2504         Removed.
2505         (Vmessage_stack, echo_area_buffer, echo_buffer,
2506         display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
2507         (message2_nolog): Use set_message and clear_message.
2508         (message3): Rename parameter len to nbytes to make clear what
2509         it is.
2510         (message3_nolog): Ditto.  Use set_message and clear_message.
2511         (update_echo_area): Rewritten.
2512         (with_echo_area_buffer): New.
2513         (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
2514         (setup_echo_area_for_printing): New.
2515         (display_echo_area, display_echo_area_1): New.
2517         (current_message, current_message_1): New.
2518         (push_message, restore_message, pop_message, 
2519         check_message_stack): New.
2520         (truncate_echo_area): Rewritten.
2521         (truncate_message_1): New.
2522         (set_message, set_message_1, clear_message): New.
2523         (echo_area_display): Rewritten.
2524         (redisplay_internal): Check for needed echo area update
2525         differently.
2526         (redisplay_preserve_echo_area): Rewritten.
2527         (redisplay_window): Check for mini-window displaying echo area 
2528         message differently.
2529         (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
2530         Remove initialzation of removed variables.
2531         (init_xdisp): Remove references to removed variables.
2533         * dispnew.c (adjust_frame_message_buffer): Removed references
2534         to echo_area_glyphs and previous_echo_glyphs.
2535         (direct_output_for_insert): Check for mini-window displaying
2536         echo area message differently.
2537         (update_frame): Likewise.
2538         (set_window_cursor_after_update): Likewise.  In echo area,
2539         don't try to set cursor on rows that aren't enabled.
2541         * print.c: Remove conditional compilation on `standalone'.
2542         (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
2543         glyph_to_str_cpy):  Remove that section because GLYPHs are no 
2544         longer used in that way.
2545         (PRINTDECLARE): Add multibyte.
2546         (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
2547         (printbufidx): Removed.
2548         (printchar, strout): Rewritten.
2550         * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
2551         a struct kboard.
2552         (echo_kboard): New.
2553         (echo_now): Set echo_kboard to the current kboard.
2554         (cancel_echoing): Set echo_kboard to null.
2555         (cmd_error_internal): Use clear_message, remove references
2556         to echo_area_glyphs and echo_area_message.
2557         (command_loop_1): Check for echo area messages differently.
2558         (read_char): Likewise.
2559         (record_menu_key): Use clear_message.
2560         (Fexecute_extended_command):  Check for echo area messages
2561         differently.  Use push_message, restore_message, pop_message.
2563         * alloc.c (Fgarbage_collect): Use push_message, restore_message,
2564         pop_message.
2566         * emacs.c (shut_down_emacs): Call check_message_stack.
2568         * lisp.h: Add function prototypes and extern declarations for
2569         new functions and variables.
2571         * fileio.c (Fdo_auto_save): Use push_message, restore_message,
2572         pop_message.
2574         * minibuf.c (read_minibuf): Use clear_message instead of 
2575         setting echo_area_glyphs.
2576         (Fminibuffer_completion_help): Ditto.
2578         * editfns.c (Fcurrent_message): Rewritten.
2580         * frame.c, window.h: Remove references to echo_area_glyphs
2581         and previous_echo_glyphs.
2583 1999-08-21  Dave Love  <fx@gnu.org>
2585         * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
2586         * aix4-1.h: Likewise.
2588         * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
2590 1999-08-20  Gerd Moellmann  <gerd@gnu.org>
2592         * xfns.c: Remove tiff34 prefix from include.
2594 1999-08-20  Dave Love  <fx@gnu.org>
2596         * cm.c: Revert previous change.
2598 1999-08-19  Gerd Moellmann  <gerd@gnu.org>
2600         * xterm.c (XTset_vertical_scroll_bar): Fix previous change.  Clear
2601         under scroll bar with width FRAME_SCROLL_BAR_COLS.
2603 1999-08-18  Dave Love  <fx@gnu.org>
2605         * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
2606         stdlib.h.
2608         * doprnt.c: Use stdlib.h, unistd.h.
2610         * config.in: Add HAVE_TERMCAP_H.
2612         * cm.c: Use termcap.h.
2614 1999-08-18  Gerd Moellmann  <gerd@gnu.org>
2616         * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
2617         FRAME_X_WINDOW (f) being null at the of the function.  If widgets
2618         cannot be created we will already have crashed earlier.  Call
2619         lw_set_main_areas with a null menu-bar widget, so that we have
2620         a reasonable default.
2621         (Fx_create_frame): Rearranged so that Lisp errors during frame
2622         initialization cause less damage.  Initialize menu bar widget
2623         here.
2625 1999-08-18  Gerd Moellmann  <gerd@gnu.org>
2626         
2627         * dispnew.c (update_frame_line): Fix previous change.  If writing
2628         whole line clear to end of frame.
2630 1999-08-17  Gerd Moellmann  <gerd@gnu.org>
2632         * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
2633         and `right-bitmap-area' if position is in the bitmap areas.  This
2634         avoids an error when clicking on the bitmap areas.  Instead, they
2635         are currently treated like clicks inside the window.
2636         (coordinates_in_window): Return 5 and 6 for bitmap areas.
2637         (Qleft_bitmap_area, Qright_bitmap_area): New.
2638         (syms_of_window): Initialize new symbols.
2640         * dispnew.c (update_frame_line): If writing whole line,
2641         don't write trailing spaces unless we must.
2643         * xdisp.c (unwind_redisplay): New.  Resets flag redisplaying_p.
2644         (redisplay_internal): Register unwind_redisplay with
2645         register_unwind_protect.
2646         (try_window_reusing_current_matrix): If new start > old start,
2647         give up if start pos of first reusable row is not equal to new
2648         start.
2650         * eval.c (Fsignal): Don't reset redisplaying_p here.
2652         * xterm.c (expose_area): If row extends face to end of line,
2653         write the whole line.
2655 1999-08-16  Gerd Moellmann  <gerd@gnu.org>
2657         * dispextern.h (struct it): Remove member
2658         show_trailing_whitespace_p.
2660         * dispnew.c (direct_output_for_insert): Use
2661         Vshow_trailing_whitespace instead of former iterator member
2662         show_trailing_whitespace_p.
2663         (direct_output_forward_char): Don't do it if hightlighting
2664         trailing whitespace.
2666         * xdisp.c (Qshow_trailing_whitespace): Removed.
2667         (Vshow_trailing_whitespace): Added.
2668         (init_iterator): Remove initialization code for
2669         show_trailing_whitespace_p.
2670         (redisplay_internal): Don't try cursor movement in this_line
2671         if showing trailing whitespace.
2672         (redisplay_window): Likewise for cursor movement in current
2673         matrix and try_window_id.
2674         (try_window_reusing_current_matrix): Likewise.
2675         (trailing_whitespace_p): Return 0 if trailing whitespace is
2676         in front of point.
2677         (display_line): Use Vshow_trailing_whitespace instead of
2678         former iterator member show_trailing_whitespace_p.
2679         (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
2681 1999-08-16  Gerd Moellmann  <gerd@gnu.org>
2683         * window.c (Fpos_visible_in_window_p): Rewritten.
2685         * xfaces.c (add_to_log): Renamed from display_message.
2686         Don't display messages in echo area.
2688         * xterm.c (x_draw_glyph_string_box): Use the background width
2689         of the glyph string for the width of the box.
2691 1999-08-16  Stefan Monnier  <monnier@cs.yale.edu>
2693         * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
2695 1999-08-16  Geoff Voelker  <voelker@cs.washington.edu>
2697         * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
2698         background first, and then set other parameters that might
2699         depend upon their new values.
2701 1999-08-15  Gerd Moellmann  <gerd@gnu.org>
2703         * xfaces.c (Vfont_list_limit): New.
2704         (syms_of_xfaces): Make it a user-variable.
2705         (DEFAULT_FONT_LIST_LIMIT): New.
2706         (sorted_font_list): If Vfont_list_limit is an integer > 0, list
2707         maximally that number of fonts, otherwise use
2708         DEFAULT_FONT_LIST_LIMIT.
2709         (Fx_font_family_list): Bind `font-list-limit' to higher values 
2710         until we have all fonts.
2711         (Fxfont_list): Additionally return the full names of fonts and
2712         their registry and encoding.
2714         * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: 
2715         Simplify clearing "under" scroll bar.
2717         * window.c (Qfixed_window_size): New.
2718         (syms_of_window): Initialiaze it.
2719         (check_all_windows): Add return type void.
2720         (window_fixed_size_p): New.  Return non-zero if window
2721         is fixed-size.
2722         (window_min_size_1): New.
2723         (window_min_size): Handle fixed-size windows.
2724         (size_window): New. Rewritten combination of set_window_height and
2725         set_window_width that handles fixed-size windows.
2726         (set_window_height): Call it.
2727         (set_window_width): Call it.
2728         (Fsplit_window): Give an error on attempt to split a fixed-size
2729         window.
2730         (change_window_height): Partly rewritten to handle fixed-size
2731         windows.
2733 1999-08-13  Wolfgang Rupprecht  <wolfgang@wsrcc.com>
2735         * process.c (Fopen_network_stream): Fix previous change.
2737 1999-08-13  Karl Heuer  <kwzh@gnu.org>
2739         * xdisp.c (line_number_display_limit_width): New var.
2740         (decode_mode_spec): Use it instead of hardcoded value.
2741         (syms_of_xdisp): Defvar it.
2743 1999-08-13  Richard M. Stallman  <rms@gnu.org>
2745         * eval.c (run_hook_list_with_args): Gcpro `globals'.
2746         (run_hook_with_args): Likewise.
2748         * window.h (struct window): New field too_small_ok.
2750         * window.c (set_window_height, set_window_width): 
2751         If window starts out "too small", set its too_small_ok flag.
2752         If window's too_small_ok flag is set, don't delete it
2753         unless it is so small it would cause a crash.
2755 1999-08-13  Gerd Moellmann  <gerd@gnu.org>
2757         * window.c (MINSIZE): Removed.
2758         (window_min_size): New.
2759         (set_window_height): Use window_min_size.
2760         (change_window_height): Ditto.
2762 1999-08-12  Gerd Moellmann  <gerd@gnu.org>
2764         * indent.c (vmotion): Don't add in mini-buffer prompt width
2765         if prompts are inserted into mini-buffer.
2767 1999-08-12  Wolfgang Rupprecht  <wolfgang@wsrcc.com>
2769         * config.in: Add HAVE_GETADDRINFO.
2770         * process.c (Fopen_network_stream): Use getaddrinfo.
2772 1999-08-11  Gerd Moellmann  <gerd@gnu.org>
2774         * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
2775         glyphs to -1.
2777         * xdisp.c (face_before_or_after_it_pos): If position after
2778         or before iterator's current position in the buffer is out
2779         of bounds, return the iterator's original face id.
2781         * dispnew.c (mirror_make_current): If desired row isn't enabled,
2782         just swap glyphs pointers between current and desired row.
2783         (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
2784         desired matrix method string to current matrix.
2786 1999-08-11  Kenichi Handa  <handa@etl.go.jp>
2788         * lisp.h (CHAR_MODIFIER_MASK): New macro.
2790         * lread.c (read_escape): For Control modifier, pay attention to
2791         multibyte character.
2792         (read1): Likewise.  Singal error or a multibyte character which
2793         has a modifer bit.  Check validity of Shift modifer.
2795         * charset.c (non_ascii_char_to_string): Handle modifier bits as
2796         the same as Lisp reader.
2798 1999-08-10  Richard M. Stallman  <rms@gnu.org>
2800         * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
2802 1999-08-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
2804         * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
2806 1999-08-10  Eli Zaretskii  <eliz@gnu.org>
2808         * msdos.c (IT_set_face): Abort if the default face is not realized
2809         and cached.
2810         (IT_write_glyphs): Reset the screen face to the default face
2811         before writing glyphs.
2813         * xfaces.c (realize_default_face) [MSDOS]: Don't take default
2814         colors from the frame here.
2815         (realize_tty_face) [MSDOS]: Do it here.  Update the face
2816         attributes with the actual name of the color taken from the
2817         frame.
2819         * dosfns.c (msdos_stdcolor_name): Remove const from return value.
2820         * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
2822         * frame.c (Fframe_parameters): Swap foreground and background
2823         colors returned in frame parameters if the frame has reverse in
2824         its parameter alist.
2825         (Fmake_terminal_frame): Make a unique copy of face_alist for
2826         each frame.
2828 1999-08-07  Richard Stallman  <rms@gnu.org>
2830         * buffer.c (Fprevious_overlay_change): Just return
2831         the answer obtained from overlays_at.
2833         * xfns.c (xpm_load) [!XpmAllocCloseColors]:
2834         Use XpmCloseness and attrs.closeness instead.
2836 1999-08-06  Richard Stallman  <rms@gnu.org>
2838         * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
2840 1999-08-06  Geoff Voelker  <voelker@cs.washington.edu>
2842         * dired.c (directory_files_internal, Fdirectory_files_and_attributes, 
2843         Ffile_attributes_lessp): New functions.
2844         (Fdirectory_files): Use directory_files_internal.
2845         (syms_of_dired): Initialize Fdirectory_files_and_attributes,
2846         Ffile_attributes_lessp.
2848         * w32.c (stat): Check for directory ending in separator when
2849         doing readdir fast path.
2851         * w32fns.c (x_set_icon_type): Support setting frame icons.
2852         * w32term.c (x_bitmap_icon): New function.
2853         (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
2854         
2855 1999-08-06  Gerd Moellmann  <gerd@gnu.org>
2857         * xdisp.c (set_iterator_to_next): After delivering a character
2858         from a display vector, restore face and charset to what they were
2859         before the display vector was processed.
2861 1999-08-06  Gerd Moellmann  <gerd@gnu.org>
2863         * xdisp.c (reseat_at_next_visible_line_start): New parameter
2864         on_newline_p.
2865         (set_iterator_to_next):  After delivering last char
2866         from display vector, reseat on next visible line start if 
2867         dpvec_char_len < 0.
2868         (next_element_from_buffer): Set dpvec_char_len to -1 for
2869         selective display.
2871 1999-08-06  Gerd Moellmann  <gerd@gnu.org>
2873         * xdisp.c (compute_line_metrics): If first line's physical ascent
2874          is larger than its logical ascent, use the physical ascent, and
2875          make the row taller.  Set row's overlapping_p flag.
2877         * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
2878         (direct_output_for_insert): Ditto.
2880         * dispextern.h (struct glyph_row): Add overlapping_p.
2882         * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
2884         * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
2885         (MATRIX_ROW_OVERLAPS_SUCC_P): New.
2887         * dispnew.c (direct_output_for_insert): Don't use this method if
2888         row is overlapped by others.
2889         (update_text_area): Write full line if current line is overlapped.
2890         (redraw_overlapped_rows): New.
2891         (update_window): Call it.
2892         (redraw_overlapping_rows): New.
2893         (update_window): Call it.
2894         (scrolling_window): Make sure overlapped_p flag in current rows is
2895         unchanged.
2896         (row_equal_p): Take rows overlapped_p flag into account.
2898         * dispextern.h (struct glyph_row): Add flag overlapped_p.
2900         * xterm.c (x_fix_overlapping_area): New.
2901         (x_redisplay_interface): Add x_fix_overlapping_area.
2903         * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
2905 1999-08-06  Gerd Moellmann  <gerd@gnu.org>
2907         * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
2908         (struct glyph_string): Add member for_overlaps_p.
2909         (x_get_glyph_string_clip_rect): If glyph string draws foreground
2910         of overlapping rows, clip to window bottom.
2911         (x_fill_glyph_string): Add parameter overlaps_p.
2912         (x_fill_composite_glyph_string): Ditto.
2913         (BUILD_GLYPH_STRINGS): Ditto.
2914         (BUILD_CHAR_GLYPH_STRINGS): Ditto.
2915         (x_draw_glyph_string): Don't draw anything but the foreground
2916         if glyph string draws row overlaps.
2918         * dispnew.c (direct_output_for_insert): Don't use this
2919         optimization for rows that overlap others.
2920         (update_window_line): Return non-zero if display has changed.
2921         (update_text_area): Ditto.
2922         (update_window): Record if display has been changed.
2924         * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
2926         * dispextern.h (struct redisplay_interface): Add
2927         fix_overlapping_area.
2929         * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
2931         * dispextern.h (struct glyph): Add overlaps_vertically_p.
2933         * xterm.c (x_produce_image_glyph): Compute iterator's physical
2934         ascent and descent.
2935         (x_produce_stretch_glyph): Ditto.
2936         (x_produce_glyphs): Ditto.
2938         * xdisp.c (init_iterator): Reset physical line height info
2939         after producing special glyphs.
2940         (display_toolbar_line): Set physical line height info.
2941         (compute_line_metrics): Ditto.
2942         (display_line): Ditto.
2943         (display_string): Ditto.
2945         * term.c (produce_glyphs): Set iterator's physical height
2946         information.
2948         * dispnew.c (blank_row): Compute glyph row's physical height.
2949         (row_equal_p): Take physical row heights into account.
2950         (direct_output_for_insert): Ditto.
2951         (update_text_area): Ditto.
2953         * dispextern.h (struct glyph_row): Add phys_ascent and
2954         phys_height.
2955         (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
2956         max_phys_descent.
2958 1999-08-04  Stefan Monnier  <monnier@cs.yale.edu>
2960         * buffer.c (switch_to_buffer_1): New subroutine, taken out from
2961         Fswitch_to_buffer.
2962         (no_switch_buffer): New function.
2963         (Fswitch_to_buffer): Call them.  Don't get confused
2964         by "same-window" buffers in a dedicated frame.
2966         * window.c (display-buffer): Don't get confused
2967         by "same-window" buffers in a dedicated frame.
2969 1999-08-04  Andreas Schwab  <schwab@gnu.org>
2971         * insdel.c (insert_from_string_1): Check gap size against number
2972         of outgoing bytes, not incoming bytes.
2974 1999-08-03  Tom Breton  <tob@world.std.com>
2976         * lread.c (read1): Added circular reading code to #N=.
2977         (SUBSTITUTE): New macro.
2978         (seen_list): New variable.
2979         (substitute_object_in_subtree): New function.
2980         (substitute_object_recurse): New function.
2981         (substitute_in_interval): New function.
2983 1999-08-02  Eli Zaretskii  <eliz@gnu.org>
2985         * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
2987         * frame.c (make_terminal_frame): Don't call init_frame_faces if
2988         noninteractive, for termcap frames as well.
2990         * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
2991         frames.
2993 1999-08-01  Richard Stallman  <rms@gnu.org>
2995         * fns.c (internal_equal): Correct overlay comparison.
2997 1999-07-31  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
2999         * xfns.c (x_set_internal_border_width): 
3000         Call do_pending_window_change.  Don't block input, don't call XFlush.
3001         (x_set_vertical_scroll_bars): Call do_pending_window_change.
3002         (x_set_scroll_bar_width, x_set_font): Likewise.
3004         * frame.c (Fset_frame_height): Call do_pending_window_change.
3005         (Fset_frame_width, Fset_frame_size): Likewise.
3007         * xterm.c (x_set_window_size): When calling change_frame_size,
3008         specify 1 for DELAY.
3010         * widget.c (EmacsFrameSetCharSize): Don't call
3011         do_pending_window_change here.
3013 1999-07-30  Dave Love  <fx@gnu.org>
3015         * config.in: Add HAVE_STDLIB_H.
3017 1999-07-30  Richard M. Stallman  <rms@gnu.org>
3019         * process.c (create_process): Detect failure of `pipe'.
3021 1999-07-30  Keisuke Nishida  <kei@psn.net>
3023         * alloc.c (allocate_vectorlike): Add missing increment.
3025         * data.c (Fdefalias): Call Ffset instead of duplicating code.
3027         * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
3028         before calling indirect_function.
3030 1999-07-30  Eli Zaretskii  <eliz@gnu.org>
3032         * dispextern.h (load_color, lookup_derived_face): Declare
3033         prototypes.
3035         * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
3036         it will be done later.
3038         * frame.c (make_terminal_frame) [MSDOS]: Don't call
3039         init_frame_faces if non-interactive.
3040         (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
3041         array with a call to msdos_stdcolor_name.  The font name is now
3042         "ms-dos", consistent with realize_tty_face.
3044         * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
3045         MSDOS frame.
3047         * window.c (Fset_window_configuration) [MSDOS]: Don't call
3048         x_set_toolbar_lines.
3050         * xfaces.c (load_color): Remove static from definition and remove
3051         prototype.
3052         [MSDOS]: Add a DOS-specific version of load_color.
3053         (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
3054         (lookup_derived_face): New function.
3055         (realize_default_face): Support MSDOS frames.
3056         [MSDOS]: If fore/background colors are unspecified, inherit them
3057         from the frame.
3058         (realize_face): Support MSDOS frames.
3059         (realize_tty_face): Support MSDOS frames.
3060         [MSDOS]: If the face color is not in Vface_tty_color_alist, call
3061         load_color to try to find a suitable approximation.  If the face
3062         is inverse-video, swap the foreground and background colors.
3064         * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
3065         functions.
3067         * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
3069         * msdos.h: Remove redundant declarations (most of them are now in
3070         dispextern.h).
3072         * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
3073         Use default frame colors if the face doesn't specify them; invert
3074         the colors if highlight is ON.
3075         (IT_write_glyphs): Rewritten for the new redisplay engine.
3076         (IT_change_line_highlight): Add (unused) parameter Y, since that's
3077         how the hook is called by term.c.
3078         (IT_copy_glyphs): New function, copies an area of the display in
3079         video RAM.
3080         (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
3081         redisplay now calls it even if char_ins_del_ok is zero.
3082         (IT_set_frame_parameters): Prototype changed.  Calls the new
3083         load_color.  Puts the new fore/background colors into the default
3084         face on current frame.
3085         (IT_menu_display): Rewritten to handle the new struct glyph
3086         instead of a char array.
3087         (XMenuActivate): Call lookup_derived_face to create and use
3088         special faces for the pop-up and drop-down menus.
3090 1999-07-29  Gerd Moellmann  <gerd@gnu.org>
3092         * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
3093         XawScrollbarSetThumb if thumb parameters haven't changed because
3094         that function apparently isn't optimized for this case.
3096 1999-07-29  Eli Zaretskii  <eliz@gnu.org>
3098         * msdos.c (getdefdir): Don't return failure indication when
3099         _fixpath sets errno to ENOSYS.
3101 1999-07-28  Gerd Moellmann  <gerd@gnu.org>
3103         * xdisp.c (string_char_and_length): New.  Use it everywhere
3104         instead of STRING_CHAR_AND_LENGTH in xdisp.c.
3106 1999-07-28  Kenichi Handa  <handa@etl.go.jp>
3108         * fns.c (count_combining): New function.
3109         (struct textprop_rec): New structure.
3110         (concat): Copy text properties correctly when byte combining
3111         occurs.
3113 1999-07-28  Gerd Moellmann  <gerd@gnu.org>
3115         * xterm.c (x_setup_relief_color): Don't try smart color allocation
3116         if display is mono.
3117         (x_draw_row_bitmaps): If face has stipple, don't switch
3118         to foreground color for clearing areas, and set the fill style.
3120         * xfaces.c (load_face_colors): Load background color if setting
3121         stipple, too.
3122         (prepare_face_for_display): Use FillOpaqueStippled instead of 
3123         FillStippled.
3125 1999-07-26  Ken'ichi Handa  <handa@gnu.org>
3127         * xterm.c (x_find_ccl_program): Add casting.
3129         * w32fns.c (w32_find_ccl_program): Add casting.
3131 1999-07-27  Gerd Moellmann  <gerd@gnu.org>
3133         * dispextern.h (struct glyph_row): Flag internal_border_p removed.
3135         * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
3136         because this will try to access a nonexisting widget.
3138 1999-07-26  Markus Rost  <rost@gnu.org>
3140         * fns.c (Fgethash): Fix order of variables (patch by gerd). 
3141         (Fputhash): Ditto.
3142         (Fremhash): Ditto.
3144 1999-07-26  Gerd Moellmann <gerd@gnu.org>
3145         
3146         * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
3147         value to frame width and height.
3149         * xterm.c (x_get_glyph_string_clip_rect): Take internal border
3150         into account for full-width windows.  Don't add scroll bar width
3151         to width of clip rect.
3152         (x_draw_glyph_string_box): Add 1 to right x of full width lines.
3153         (x_set_glyph_string_background_width): Add 1 to background width.
3154         (x_draw_glyphs): Take internal border into account for full-width
3155         lines.
3157 1999-07-26  Richard M. Stallman  <rms@gnu.org>
3159         * xfns.c (x_set_mouse_color): Always unload the old color.
3160         Don't allow nil as color value.
3161         (x_set_cursor_color, x_set_background_color, x_set_foreground_color): 
3162         Always unload the old color.
3164         * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
3166 1999-07-26  Karl Heuer  <kwzh@gnu.org>
3168         * fns.c (Fy_or_n_p): Doc fix.
3170 1999-07-26  Kenichi Handa  <handa@etl.go.jp>
3172         * ccl.h (setup_ccl_program): The type is changed to `int'.
3174         * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
3175         stored in the following CCL code.  Adjusted for the change of
3176         Vccl_program_table.
3177         (resolve_symbol_ccl_program): Adjusted for the new style of
3178         embedded symbols (SYMBOL . PROP) in CCL compiled code.   Return Qt
3179         is resolving failed.
3180         (ccl_get_compiled_code): New function.
3181         (setup_ccl_program): Function type changed from `void' to `int'.
3182         Resolve symbols in CCL_PROG.
3183         (Fccl_program_p): New function.
3184         (Fccl_execute): Get compiled CCL code by just calling
3185         setup_ccl_program.
3186         (Fccl_execute_on_string): Likewise.
3187         (Fregister_ccl_program): Adjusted for the change of
3188         Vccl_program_table.
3190         * coding.c (setup_coding_system): Get compiled CCL code by just
3191         calling setup_ccl_program.
3193         * xterm.c (x_find_ccl_program): Get compiled CCL code by just
3194         calling setup_ccl_program.
3196         * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
3197         calling setup_ccl_program.
3199 1999-07-23  Gerd Moellmann  <gerd@gnu.org>
3201         * xfaces.c (frame_update_line_height): Just use the height of the
3202         frame's fontset or font, instead of taking face fonts into
3203         account.
3205         * xdisp.c (get_next_display_element): Display DEL as `^?'.
3207 1999-07-23  Richard M. Stallman  <rms@gnu.org>
3209         * window.c (Fsplit_window): For default size, round up for left window.
3211 1999-07-21  Joe Ramey  <ramey@ti.com>
3213         * filelock.c (lock_if_free): Return -1 if check_lock_owner
3214         has returned -1 (lockfile exists but is not a symlink?).
3216 1999-07-20  Gerd Moellmann  <gerd@gnu.org>
3218         * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
3219         because of a change in cursor_gc made in 20.4.
3221 1999-07-19  Gerd Moellmann  <gerd@gnu.org>
3223         * xterm.c (x_calc_absolute_position): Subtract menu bar height
3224         for YNegative, if using X toolkit.
3226         * xfns.c (x_real_positions): Don't subtract window borders 
3227         from positions returned.
3229 1999-07-17  Gerd Moellmann  <gerd@gnu.org>
3231         * xrdb.c (x_load_resources): Set double-click time defaults
3232         for Motif list boxes from double-click-time.
3234         * fns.c (Vhash_table_tests): Remvoed.
3235         (Qhash_table_test): New.
3236         (syms_of_fns): Initialize Qhash_table_test.
3237         (Fmake_hash_table): Look up user-defined tests in symbol prop
3238         `hash-table-test'.
3239         (Fdefine_hash_table_test): Store test and hash function as
3240         symbol prop `hash-table-test'.
3241         (make_hash_table): Add parameters user_test and user_hash.
3243         * window.c (set_window_buffer): Set window margins for tty
3244         frames, too.
3245         (Fset_window_margins): Ditto.
3247         * term.c (append_glyph): Use glyph area of iterator instead of
3248         always TEXT_AREA.
3250         * dispnew.c (update_frame_1): Add left margin width to cursor
3251         hpos.
3252         (direct_output_for_insert): Ditto.
3253         (direct_output_forward_char): Ditto.
3255         * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
3257         * dispextern.h (struct glyph_matrix): Add top_line_p.
3259 1999-07-16  Gerd Moellmann  <gerd@gnu.org>
3261         * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed.  Use FRAME_WINDOW_P
3262         instead.
3264         * fns.c (cmpfn_eq): Add hash code parameters.
3265         (cmpfn_eql): Ditto.
3266         (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
3267         (cmpfn_user_defined): Likewise.
3269 1999-07-15  Gerd Moellmann  <gerd@gnu.org>
3271         * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
3273         * fns.c (maybe_resize_hash_table): Correct computation of
3274         index vector size.
3275         (make_hash_table): Ditto.
3276         (Fmakehash): New.
3278         * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
3280         * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
3281         (survives_gc_p): Make it externally visible.
3282         (mark_object): Ditto.
3284         * fns.c (remove_hash_entry): Removed.
3285         (sweep_weak_hash_tables): New.
3287         * print.c (print): Print more information about hash tables.
3289         * xfns.c (image_spec_hash): Removed.
3290         (lookup_image): Use sxhash instead of image_spec_hash.
3291         (image_spec_equal_p): Removed.
3292         (lookup_image): Use Fequal instead of image_spec_equal_p.
3294 1999-07-14  Gerd Moellmann  <gerd@gnu.org>
3296         * lisp.h (P_): Moved to top of file.
3298         * fns.c (make_hash_table): Set new members.
3300         * alloc.c (mark_object): Mark hash table's user_hash_function.
3301         Mark index vector for weak hash tables.
3303         * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
3304         user_hash_function, cmpfn, and hashfn.
3306         * fns.c (build_hash): Removed.
3307         (hash_test): Removed.
3308         (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
3309         (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
3311 1999-07-13  Gerd Moellmann  <gerd@gnu.org>
3313         * alloc.c (survives_gc_p): New.
3315         * print.c (print): Add hash table handling.
3317         * alloc.c (mark_object): Add code to mark hash tables.
3319         * lisp.h (GC_HASH_TABLE_P): New.
3321         * emacs.c (main): Call init_fns.
3323         * fns.c (init_fns): New.
3325         * fns.c: Add hash table implementation.
3327         * lisp.h (PVEC_HASH_TABLE): New.
3328         (struct Lisp_Hash_Table): New.
3329         (XHASH_TABLE): New.
3330         (XSET_HASH_TABLE): New.
3331         (HASH_TABLE_P): New.
3332         (CHECK_HASH_TABLE): New.
3333         (DEFAULT_HASH_SIZE): New.
3334         (DEFAULT_REHASH_THRESHOLD): New.
3335         (DEFAULT_REHASH_SIZE): New.
3337         * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
3338         (x_write_glyphs): Compute overwritten cursor using real start
3339         and end positions of display.
3340         (x_insert_glyphs): Ditto.
3342 1999-07-10  Gerd Moellmann  <gerd@gnu.org>
3344         * keyboard.c (read_char): Use message3_nolog to show help-echo.
3346         * dispnew.c (blank_row): Add y-position as parameter.  Compute
3347         visible height.
3349         * xdisp.c (next_element_from_string): Give padding spaces
3350         a position of -1.
3352         * dispnew.c (adjust_glyph_matrix): Some work to support 
3353         marginals areas on tty frames in a future version.
3354         (allocate_matrices_for_frame_redisplay): Ditto.
3356         * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
3357         to zero if number of glyphs in the row is <= 1.
3359 1999-07-09  Gerd Moellmann  <gerd@gnu.org>
3361         * dispnew.c (buffer_posn_from_coords): Take left marginal area
3362         into account.
3364         * xdisp.c (handle_display_prop): Don't reset area if handing
3365         a property from a string that came from a `display' property.
3366         (handle_single_display_prop): Don't handle recursive `display'
3367         properties.
3368         (handle_single_display_prop): Handle some display property
3369         forms for terminal frames.
3370         (Qimage): Moved here from xfns.c.
3372         * dispextern.h (struct it): New field string_from_display_prop_p.
3374         * xterm.c (x_clip_to_row): Don't let clip_rect include top
3375         line.
3377 1999-07-08  Gerd Moellmann  <gerd@gnu.org>
3379         * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
3381         * window.c (set_window_buffer): Set window's vscroll to zero.
3383         * xdisp.c (QCwhen): New.
3384         (display_prop_end): New.
3385         (handle_single_display_prop): Use it.
3386         (debug_method_add): Print buffer name if tracing.
3387         (try_window_reusing_current_matrix): Compute visible height
3388         of reused rows.  Fix cursor position calculation in case of
3389         top-line.
3391         * dispextern.h (struct redisplay_interface): Add parameter
3392         cursor_on_p to update_window_end_hook.
3394         * xterm.c (x_update_window_end): Add parameter cursor_on_p.
3396 1999-07-07  Gerd Moellmann  <gerd@gnu.org>
3398         * xdisp.c (redisplay_internal): Ensure that redisplayinp_p 
3399         doesn't become negative when decrementing it.
3401         * eval.c (Fsignal): Reset redisplaying_p to zero.
3403         * xdisp.c (try_window_reusing_current_matrix): Call hooks
3404         for window update.
3405         (try_window_id): Ditto.
3407         * xterm.c (x_clear_end_of_line): Handle top-line correctly.
3408         (x_scroll_run): Ditto.
3409         (any_help_event_p): New.
3410         (x_initialize): Set it to zero.
3411         (XTread_socket): Clear help echo only if any_help_event_p.
3413         * xdisp.c (init_iterator): Set top_line_p.
3414         (start_display): Use correct initial y if top-line is present.
3415         (make_cursor_line_fully_visible): Bug fixes for top-line.
3416         (try_scrolling): Ditto.
3417         (try_window_reusing_current_matrix): Ditto.
3419         * dispextern.h (struct it): Add top_line_p.
3421         * dispnew.c (shift_glyph_matrix): Move some computations out
3422         of the loop.
3424         * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and 
3425         XFLOATINT.
3427 1999-07-06  Gerd Moellmann  <gerd@gnu.org>
3429         * dispnew.c (update_frame_1): When setting cursor in echo area,
3430         skip only over padding spaces at the end.
3432         * xfaces.c (realize_tty_face): Set face's font_name field to
3433         "tty".
3435         * term.c (update_end): Turn cursor on only if selected window's
3436         cursor_off_p flag is not set.
3438 1999-07-05  Gerd Moellmann  <gerd@gnu.org>
3440         * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
3441         (TS_cursor_normal): Renamed from TS_end_visual_mode.
3442         (TS_cursor_invisible):  New.
3443         (term_init): Initialize TS_cursor_invisible.
3444         (tty_hide_cursor): New.
3445         (tty_show_cursor): New.
3446         (update_end): Show tty cursor.
3447         (update_begin): Hide tty cursor to prevent cursor flickering
3448         during redisplays triggered by timers (stealth fontification).
3450         * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
3452         * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
3453         in scroll bars.
3454         (x_handle_toolbar_click): Set modifier bits.
3456 1999-07-04  Gerd Moellmann  <gerd@gnu.org>
3458         * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
3459         instead of a pointer to a volatile input_event.
3460         (kbd_buffer_store_event): Remove volatile modifier from 
3461         declaration of local variable `sp'.
3462         (Fdiscard_input): Don't cast when assigning kbd_store_ptr
3463         to kbd_fetch_ptr.
3465 1999-07-03  Gerd Moellmann  <gerd@gnu.org>
3467         * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
3468         only if buffer is modified.  Return quickly if changes are
3469         above window start.
3471 1999-07-02  Gerd Moellmann  <gerd@gnu.org>
3473         * dispextern.h (HSCROLL_WINDOWS): Removed.
3475         * xdisp.c (mark_window_display_accurate): Don't set
3476         w->region_showing.
3477         (redisplay_internal): Don't call redraw_garbaged_frames.
3479 1999-07-01  Gerd Moellmann  <gerd@gnu.org>
3481         * xdisp.c (echo_area_display): Don't display truncation marks
3482         for messages because 20.4 doesn't do it either.
3483         (redisplay_window): Case same window start.  Instead of giving
3484         up when cursor is partially visible, make it fully visible.
3485         (mark_window_display_accurate): Some cleanup.  Record window's
3486         last cursor information.
3487         (debug_method_add): Improved.
3488         (redisplay_internal): Record last cursor info only if not
3489         consider_all_windows_p.
3491         * dispnew.c (update_window): Update top line after scrolling.
3492         (blank_row): Renamed from make_empty_enabled_row.
3493         (increment_glyph_row_buffer_positions): Increment positions
3494         in buffers, only.
3496         * window.c (Fcoordinates_in_window_p): Add top-line to doc
3497         string.
3499 1999-06-30  Gerd Moellmann  <gerd@gnu.org>
3501         * dispnew.c (update_window): Check that updated row is visible.
3503         * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
3504         top of window differently.
3506         * xdisp.c (try_window_reusing_current_matrix): Don't do it
3507         if region is showing.
3509         * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
3510         avoiding matrix reallocation.  Set window_vscroll in matrix.
3512         * dispextern.h (struct glyph_matrix): Add member window_vscroll.
3514         * lwlib-Xm.c: Add function prototypes.
3516         * xdisp.c (debug_method_add): New.
3517         (debug_redisplay_method): Removed.
3518         (try_window_reusing_current_matrix): Handle case where old
3519         window start is the same as new window start.
3521         * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
3522         an array instead of a pointer.
3524         * lwlib-Xm.c (xm_update_label): Use val->name to look up
3525         a label string from resources.
3526         (xm_update_label): Add some comments.
3528         * xfns.c (Fx_show_tip): Undo previous change.
3530         * xterm.c (x_append_glyph): Clear glyph->u.val.
3532         * dispextern.h (struct glyph): Increase size of face_id bit-field
3533         for CHAR_GLYPH to 12.
3535 1999-06-29  Gerd Moellmann  <gerd@gnu.org>
3537         * xfaces.c (x_charset_registry): Make it externally visible.
3539 1999-06-28  Gerd Moellmann  <gerd@gnu.org>
3541         * dispnew.c (update_window): Use mode_line_p flag of rows 
3542         instead of WINDOW_WANTS_MODELINE_P.
3544         * xterm.c (clear_mouse_face): Make externally visible.
3546         * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
3548         * xterm.c (expose_line): Handle exposure of top-lines.
3550         * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
3551         if mouse_face_mouse_frame is null.
3553         * xdisp.c (redisplay_window): If window is echo_area_window,
3554         and update_mode_line is set, update menubar and toolbar.
3556         * dispnew.c (space_glyph): Set its charpos to -1.
3557         (update_frame_1): Ignore trailing padding spaces.
3559         * xdisp.c (next_element_from_c_string): Set position of padding
3560         glyphs to -1.
3562 1999-06-27  Gerd Moellmann  <gerd@gnu.org>
3564         * xfns.c (x_laplace_read_row): Use XQueryColors instead of
3565         XQueryColor.
3567         * xdisp.c (display_menu_bar): Remove unwarranted assertion.
3568         (set_cursor_from_row): Skip over glyphs having a null object at
3569         the start of rows.
3570         (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
3571         glyphs.
3572         (handle_invisible_prop): Compute next change only when needed.
3573         (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
3574         line.
3576 1999-06-26  Gerd Moellmann  <gerd@gnu.org>
3578         * xrdb.c (x_load_resources): Don't set resource for double-click
3579         time.
3581         * xdisp.c (try_window_id): Return quickly if all changes are
3582         below the window's current matrix end.
3584         * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
3585         parameter.
3587         * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
3588         in desired not in current matrix.
3589         (try_window_reusing_current_matrix): Rotate matrices starting
3590         at start_vpos instead of 0.
3592         * xterm.c (expose_window): Use window_text_bottom_y.
3593         (fast_find_position): Ditto.
3595         * xdisp.c (redisplay_window): Use window_text_bottom_y.
3596         (try_window_reusing_current_matrix): Ditto.
3597         (get_last_unchanged_at_beg_row): Ditto.
3598         (init_iterator): Ditto.
3600         * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
3601         more row.
3602         (check_matrix_invariants): Use window_text_bottom_y.
3603         (update_window): Ditto.
3604         (scrolling_window): Ditto.
3606         * xdisp.c (window_text_bottom_y): New.
3608 1999-06-25  Gerd Moellmann  <gerd@gnu.org>
3610         * xterm.c (XTread_socket): Set mouse_face_frame to zero after
3611         clearing mouse face.
3612         (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
3613         event.xcrossing.focus is not set, and focus is in the menu bar,
3614         set focus frame as if event.xcrossing.focus were set.
3616 1999-06-24  Gerd Moellmann  <gerd@gnu.org>
3618         * keyboard.c (make_lispy_event): Handle mouse on top lines.
3619         * keyboard.c (make_lispy_movement): Ditto.
3621         * window.c (coordinates_in_window): Return 4 if on top line.
3622         (Fcoordinates_in_window_p): Return `top-line' if on top line.
3624         * xdisp.c (window_box_height): Subtract top line height.
3625         (window_box): Add top line height to top y position if top line
3626         exists.
3627         (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
3628         the top line row of the window.  Set initial y-position to
3629         window's top line height plus delta.
3630         (start_display): Choose start glyph row depending on whether
3631         window has a top line.
3632         (try_scrolling): Take top line height into account for aggressive
3633         scrolling.
3634         (compute_window_start_on_continuation_line): Take top line into
3635         account.
3636         (redisplay_window): Ditto.  If top line height has changed, 
3637         trigger a new redisplay.
3638         (try_window_reusing_current_matrix): Take top line into account.
3639         (find_last_row_displaying_text): Ditto.
3640         (get_last_unchanged_at_beg_row): DItto.
3641         (try_window_id): Ditto.
3642         (compute_line_metrics): Ditto.
3644         * dispnew.c (shift_glyph_matrix): Compute visible row height
3645         taking top line of window into account.
3646         (update_window): Update top line.  If scrolling_window detects
3647         that all rows are equal, only set cursor.
3648         (update_window_line): Call after_update_window_line_hook if
3649         mode_line_p flag of rows has changed.
3650         (scrolling_window): Add parameter top_line_p.  Return -1 if
3651         all rows are equal.
3652         (mode_line_string): Add parameter mode_line_p.  Handle strings
3653         in top lines.
3655         * dispextern.h (MATRIX_TOP_LINE_ROW): New.
3656         (MATRIX_FIRST_TEXT_ROW): New.
3657         (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
3658         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
3659         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
3660         (MATRIX_TOP_LINE_HEIGHT): New.
3661         (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
3662         (CURRENT_TOP_LINE_HEIGHT): New.
3663         (DESIRED_TOP_LINE_HEIGHT): New.
3664         (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
3665         (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
3666         WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
3667         (WINDOW_DISPLAY_TEXT_HEIGHT): New.
3669         * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
3670         lines.
3671         (x_draw_row_bitmaps): Take top line into account when clearing
3672         bitmap area.
3673         (x_estimate_mode_line_height): Replacement for
3674         x_frame_mode_line_height.
3675         (x_get_glyph_string_clip_rect): Take top line into account.
3676         (x_clear_end_of_line): Ditto.
3677         (note_mode_line_highlight): Add parameter mode_line_p.  Handle
3678         top lines.
3679         (note_mouse_highlight): Call note_mode_line_highlight for top lines.
3680         (x_erase_phys_cursor): Take top line into account.
3682         * xdisp.c (window_box_height): Subtract top line height if
3683         window wants a top line.
3684         (display_mode_lines): New.
3685         (redisplay_window): Call it.
3686         (display_mode_line): Add parameters face_id and format.
3688         * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
3689         (MATRIX_TOP_LINE_HEIGHT): New.
3691         * xterm.c (x_frame_mode_line_height): Add parameter face_id.
3693         * term.c (estimate_mode_line_height): Renamed from
3694         frame_mode_line_height.  Add parameter face_id.
3695         (estimate_mode_line_height_hook): Renamed from
3696         frame_mode_line_height_hook.
3697         (produce_special_glyphs_hook): Removed.
3698         (produce_glyphs_hook): Removed.
3700 1999-06-23  Gerd Moellmann  <gerd@gnu.org>
3702         * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
3703         (struct glyph_row): Add mode_line_p.
3705         * xfaces.c (realize_basic_faces): Realize face `top-line'.
3706         (Qtop_line): New.
3707         (syms_of_xfaces): Initialize Qtop_line.
3709         * dispextern.h (TOP_LINE_FACE_ID): New.
3711         * buffer.c (init_buffer_once): Set default for
3712         top_line_format to nil.
3713         (init_buffer_once): Init top_line_format.
3714         (default-top-line-format): New.
3715         (top-line-format): New buffer-local variable.
3717         * buffer.h: Add top_line_format.
3719         * xdisp.c (overlay_arrow_changed_p): Removed because not used.
3721 1999-06-17  Dave Love  <fx@gnu.org>
3723         * xfns.c: Move the PNG section before the JPEG one to avoid
3724         problems surrounding setjmp.h/png.h on GNU/Linux.
3725         
3726 1999-06-17  Gerd Moellmann  <gerd@gnu.org>
3728         * xfns.c (x_kill_gs_process): Don't free colors.
3730 1999-06-17  Dave Love  <fx@gnu.org>
3732         * s/gnu-linux.h: Zap spurious ~.
3734 1999-06-16  Gerd Moellmann  <gerd@gnu.org>
3736         * xfns.c (gif_load): Improve multi-image support.
3738 1999-06-15  Gerd Moellmann  <gerd@gnu.org>
3740         * xfns.c (gif_load): Support multi-image files.
3742         * Makefile.in (LIBGIF): Use libungif.
3744         * configure.in (HAVE_GIF): Use libungif instead of libgif
3745         because the former doesn't contain patented compression code.
3747         * xdisp.c (compute_window_start_on_continuation_line): Don't
3748         do it if line start is too far away from window start.
3750 1999-06-14  Gerd Moellmann  <gerd@gnu.org>
3752         * buffer.c (init_buffer_once): Set buffer_local_flags for
3753         scroll_*_aggressively.
3754         (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
3755         (init_buffer_once): Set defaults for these variables.
3756         (syms_of_buffer): Add default-scroll-*-aggressively.
3758         * buffer.h (scroll_up_aggressively): New.
3759         (scroll_down_aggressively):  New.
3761         * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
3762         a static PNG library.
3764         * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
3765         in case it's a static library.
3767         * Makefile.in (ctagsfiles): Split so that files starting
3768         with an `x' are found before files starting with `w32'.
3769         (ctagsfiles1): New.
3770         (ctagsfiles2): New.
3771         (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
3773         * xdisp.c (compute_window_start_on_continuation_line): New.
3774         (redisplay_window): Use it.
3775         (INFINITY): New.
3776         (reseat_to_string): Use it.
3777         (hscroll_window_tree): Ditto.
3778         (compute_window_start_on_continuation_line): Ditto.
3779         (redisplay_window): Don't force display with a new window start.
3781 1999-06-06  Gerd Moellmann  <gerd@gnu.org>
3783         * xfns.c (x_report_frame_params): Don't report `outer-window-id'
3784         if widget not present.
3786         * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
3788 1999-06-04  Gerd Moellmann  <gerd@gnu.org>
3790         * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
3791         value of realize_basic_faces.
3792         (load_face_font_or_fontset): Store full font name in face.
3793         (realize_default_face): Use full font name.
3795         * xlwmenu.c (make_shadow_gcs) ]emacs]: Use x_alloc_nearest_color.
3797         * xterm.c (x_produce_glyphs): Set member char_to_display.
3798         (x_append_glyph): Store char_to_display in glyphs.
3800         * dispextern.h (struct it): Add char_to_display.
3802         * xfns.c (x_set_font): Don't call face-set-after-frame-default
3803         if faces haven't been initialized.
3804         (Fx_create_frame): Call face-set-after-frame-default after
3805         faces have been initialized, and widget has been created.
3807         * puresize.h (BASE_PURESIZE): Increased.
3809 1999-06-01  Gerd Moellmann  <gerd@gnu.org>
3811         * xfaces.c (set_lface_from_font_name): Add parameter force_p.
3812         (Finternal_set_lisp_face_attribute): If frame is t when
3813         :font attribute is set, use the selected frame.
3814         (clear_face_cache): Add parameter clear_fonts_p.
3815         (Fclear_face_cache): Add optional parameter thorougly.
3817         * xfaces.c (face_numeric_value): Return -1 if symbol is not
3818         in table.
3819         (Fclear_face_cache): New.
3820         (choose_face_fontset_font): If fontset doesn't contain font
3821         pattern for the given charset, use CHARSET_ASCII.
3822         (Finternal_set_lisp_face_attribute): Fix handling of nil
3823         stipple attribute.
3824         (Finternal_set_lisp_face_attribute): Fix handling of changing
3825         font-related face attributes of the default face.
3826         (set_lface_from_font_name): Set only attributes that aren't
3827         specified.
3829 1999-05-31  Gerd Moellmann  <gerd@gnu.org>
3831         * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
3832         font support.
3833         (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
3834         (x_face_list_fonts): Add parameter scalable_fonts_p.  Handle
3835         scalable fonts depending on the setting of SCALABLE_FONTS.
3836         (first_font_matching): List more than one font to find the
3837         first non-scalable matching font.
3838         (sorted_font_list): Let x_face_list_fonts return scalable fonts
3839         depending on SCALABLE_FONTS.
3840         (better_font_p): New parameter compare_pt_p.  If zero, don't
3841         compare point sizes of fonts.
3842         (exact_face_match_p) [SCALABLE_FONTS]: New.
3843         (build_scalable_font_name) [SCALABLE_FONTS]: New.
3844         (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
3845         (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
3846         (syms_of_xfaces):  Add scalable-fonts-allowed.
3848 1999-05-26  Gerd Moellmann  <gerd@gnu.org>
3850         * xfns.c (png_load): Let PNG lib handle gamma.  Construct
3851         mask only if image contains simple transparency information.
3852         Otherwise, combine image with frame background color.
3854         * configure.in (--with-png, HAVE_PNG): New.
3856         * config.in (HAVE_PNG): New.
3858         * Makefile.in: Add PNG library.
3860         * xfns.c: Add PNG support.
3862 1999-05-25  Gerd Moellmann  <gerd@gnu.org>
3864         * xdisp.c (init_xdisp): Initialize echo_area_message and
3865         previous_echo_area_message to nil.
3867         * keyboard.c (read_char): Rename local variable echo_area_message
3868         because it shadows the global one.
3870 1999-05-05  Gerd Moellmann  <gerd@gnu.org>
3872         * xterm.c (note_mode_line_highlight): Restructured.
3874         * window.c (coordinates_in_window): Handle windows that don't have
3875         a mode line because their buffer's mode-line-format is nil.
3876         Recognize the mode line under x positions that correspond to
3877         flags areas and left scroll bar.
3879 1999-05-02  Dave Love  <fx@gnu.org>
3881         * xterm.c (note_mouse_highlight): Separate help-echo processing
3882         from check on mouse-face so that it works generally.
3884 1999-04-21  Gerd Moellmann  <gerd@gnu.org>
3886         * sound.c (Fplay_sound): Run hook play-sound-hook.
3887         (Qplay_sound_hook): New.
3889 1999-04-20  Gerd Moellmann  <gerd@gnu.org>
3891         * xdisp.c (update_echo_area): Handle echo_area_message.
3893 1999-04-19  Gerd Moellmann  <gerd@gnu.org>
3895         * editfns.c (Fmessage): Use message3.
3897         * print.c (printchar): Set echo_area_message to nil.
3898         (strout): Ditto.
3900         * minibuf.c (read_minibuf): Reset echo message strings to nil.
3901         (Fminibuffer_completion_help): Ditto.
3903         * keyboard.c (cmd_error_internal): Set echo_areA_message.
3904         (command_loop_1): Test echo_areA_message.
3905         (read_char): Ditto.
3906         (record_menu_key): Set echo_area_message to nil.
3907         (Fexecute_extended_command): Test echo_area_message.
3908         (Fexecute_extended_command): Handle echo_area_message.
3910         * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
3911         is set.
3913         * editfns.c (Fcurrent_message): If echo_area_message is set,
3914         return a substring of that string.
3916         * dispnew.c (direct_output_for_insert): Test echo_area_message
3917         in addition to echo_area_glyphs.
3918         (set_window_cursor_after_update): Ditto.
3919         (update_frame_1): Ditto.
3921         * alloc.c (Fgarbage_collect): Use message3_nolog to display
3922         old Lisp message string.
3924         * xdisp.c (echo_area_message): New.
3925         (previous_echo_area_message): New.
3926         (syms_of_xdisp): Initialize and staticpro new variables.
3927         (echo_area_display): Display echo_area_message if set.
3928         (message2_nolog): Set echo_area_message and
3929         previous_echo_area_message.
3930         (echo_area_display): Set previous_echo_area_message.
3931         (redisplay_internal): Display echo area if echo_area_message
3932         or previous_echo_area_message are set.
3933         (redisplay_preserve_echo_area): Test/set echo_area_message and
3934         previous_echo_area_message.
3935         (redisplay_window): Test echo_area_message.
3936         (message3_nolog): New.
3937         (message3): New.
3939         * editfns.c (Fformat): Add text properties to the result string
3940         from properties of the format string and properties of string
3941         arguments.
3943         * textprop.c (text_property_list): New.
3944         (add_text_properties_from_list): New.
3945         (extend_property_ranges): New.
3947 1999-03-29  Gerd Moellmann  <gerd@gnu.org>
3949         * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
3950         (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
3951         Use these symbols for the box face attribute instead of the
3952         removed ones.
3954 1999-03-12  Gerd Moellmann  <gerd@gnu.org>
3956         * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
3957         Correct wrong test for slant.
3959 1999-03-10  Gerd Moellmann  <gerd@gnu.org>
3961         * xfaces.c: Use `unspecified' for unspecified face attributes,
3962         use t and nil for on/off.
3964 1999-03-06  Gerd Moellmann  <gerd@gnu.org>
3966         * buffer.c (syms_of_buffer): Extend doc string of
3967         mode-line-format.
3969         * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
3970         (first_font_matching): New.
3971         (set_lface_from_font_name): Use it if font name is a pattern.
3972         (font_field_wildcard_p): Removed.
3974         * dispnew.c (shift_glyph_matrix): Add `window' parameter.
3975         Recompute visible height of rows.
3977         * xterm.c (note_mouse_highlight): Reorder code for help-echo.
3978         Don't accept non-strings for help-echo from overlays.
3980 1999-03-04  Dave Love  <fx@gnu.org>
3982         * xterm.c (note_mouse_highlight): Check overlays for help-text
3983         property.
3984         (XTread_socket): Fix compiler warning.
3985         
3986 1999-03-05  Gerd Moellmann  <gerd@gnu.org>
3988         * xterm.c (note_mouse_highlight): Don't restrict number of 
3989         overlay to 10.  Call overlays_at so that it doesn't try to
3990         extend the vector.
3992         * xdisp.c (compute_line_metrics): Compute glyph row's visible
3993         height.
3995         * dispnew.c (row_equal_p): Compare visible row height, only.
3996         (update_text_area): Draw whole line if visible heights of
3997         rows differ.
3998         (update_window_line): Call after_update_window_line_hook
3999         if visible row height has changed.
4001         * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
4002         (struct glyph_row): New member visible_height.
4004         * xfaces.c (font_field_wildcard_p): New.
4005         (set_lface_from_font_name): Remove parameter force_p.  Accept
4006         font names containing wildcards.
4008 1999-03-04  Gerd Moellmann  <gerd@gnu.org>
4010         * xterm.c (x_after_update_window_line): Clear internal border
4011         when windows_or_buffers_changed.
4013         * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
4014         buffer has a nil mode_line_format.
4016 1999-03-03  Gerd Moellmann  <gerd@gnu.org>
4018         * xterm.c (x_setup_relief_colors): Use either background color
4019         or specified color.
4021         * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
4023         * dispextern.h (struct face): Add use_box_color_for_shadows_p.
4025         * xterm.c (x_draw_box_rect): New.
4026         (x_draw_glyph_string_box): Renamed from
4027         x_draw_glyph_string_relief.  Call x_draw_box_rect.
4029         * xfns.c (QCrelief): New.
4030         (syms_of_xfns): Initialize it.
4032         * dispextern.h (struct glyph): Rename left_shadow_p to
4033         left_box_line_p, right_shadow_p to right_box_line_p.
4034         (MAX_RELIEF_THICKNESS): Removed.
4035         (struct it): Rename members having `relief' in their names
4036         to contain `box' instead.
4038         * xfaces.c (realize_x_face): Handle new box attribute values.
4039         (QCrelief, Qbox): Removed.
4040         (QCshadow, QCcolor, Qraised, Qsunken): New.
4041         (syms_of_xfaces): Initialize new symbols.
4043 1999-03-02  Gerd Moellmann  <gerd@gnu.org>
4045         * dispextern.h (LFACE_RELIEF_INDEX): Removed.
4047         * xfaces.c (LFACE_RELIEF): Removed.
4048         (merge_face_vector_with_property): Remove handling of `:relief'.
4049         (Finternal_set_lisp_face_attribute): Ditto.
4050         (Finternal_set_lisp_face_attribute_from_resource): Ditto.
4051         (Finternal_get_lisp_face_attribute): Ditto.
4052         (realize_default_face): Ditto.
4053         (lface_hash): Don't compute hash from relief.
4055         * dispextern.h (struct face): Replace member `relief' by
4056         `box_line_width'.  Add member `box'.
4057         (face_box_type): New.
4059         * xterm.c (x_produce_glyphs): If face has overline, add overline
4060         thickness + 1 to ascent.
4062 1999-03-01  Gerd Moellmann  <gerd@gnu.org>
4064         * xterm.c (x_draw_glyph_string): Draw underline, overline,
4065         strike-through, and boxes.
4066         (x_draw_glyph_string_underline): Removed.
4068         * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
4069         (Qoverline, Qstrike_through, Qbox): New.
4070         (syms_of_xfaces): Define these symbols.
4071         (check_lface_attrs): Add checks for overline, strike-through,
4072         and box.
4073         (Finternal_set_lisp_face_attribute): Set new attributes.
4074         (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
4075         (load_color): Handle new attributes.
4076         (realize_x_face): Ditto.
4077         (merge_face_vector_with_property): Ditto.
4078         (free_face_colors): Ditto.
4079         (Finternal_set_lisp_face_attribute_from_resource): Ditto.
4080         (Finternal_get_lisp_face_attribute): Ditto.
4081         (Finternal_lisp_face_attribute_values): Ditto.
4083         * dispextern.h (lface_attribute_index): Add enumerators for
4084         overstrike, strike-through, and box.
4085         (struct face): Add members for overline, strike-through, and
4086         box.
4088 1999-02-17  Dave Love  <fx@gnu.org>
4090         * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
4091         s/template.h (NARROWPROTO): Define on the basis of relevant X cf
4092         files.
4094 1999-02-16  Gerd Moellmann  <gerd@gnu.org>
4096         * keyboard.c (toolbar_items): Call access_keymap with third
4097         parameter 1, so that we don't get inherited toolbar item
4098         definitions.
4100         * xdisp.c (redisplay_internal): In optimization 1, don't decrement
4101         the window end vpos when in empty first line of window.
4103 1999-02-15  Gerd Moellmann  <gerd@gnu.org>
4105         * xfaces.c (set_font_frame_param): New.
4106         (Finternal_set_lisp_face_attribute): Call it.
4108 Sun Feb 14 10:54:02 1999  Masatake Yamato  <masata-y@is.aist-nara.ac.jp>
4110         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
4111         Accept specifications of color for underline.
4113 1999-02-13  Gerd Moellmann  <gerd@gnu.org>
4115         * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
4116         `frame' is t, operate on face defaults for new frames.  If it
4117         is nil, operate on the selected frame.
4119 1999-02-12  Gerd Moellmann  <gerd@gnu.org>
4121         * dispnew.c (check_matrix_invariants): Put it in #if 0.
4122         (update_window): Put the call to check_matrix_invariants in #if 0.
4124 Sun Feb  7 09:58:49 1999  Masatake Yamato  <masata-y@is.aist-nara.ac.jp>
4126         * dispextern.h: Remove all else block of UNDERLINE_COLOR.
4127         Remove definition of UNDERLINE_COLOR.
4129 Mon Jan  4 04:43:41 1999  Masatake Yamato  <masata-y@is.aist-nara.ac.jp>
4131         * xfaces.c (free_face_colors): Free the color for underline.
4133         * xterm.c (x_draw_glyph_string_underline): Set the color for underline
4134         to the GC.
4136 Sun Jan  3 08:41:10 1999  Masatake Yamato  <masata-y@is.aist-nara.ac.jp>
4138         * dispextern.h  (UNDERLINE_COLOR): Defined.
4139         (struct face): Added two new members.
4140         underline_color, underline_defaulted_p.
4142         * xfaces.c (merge_face_vector_with_property): 
4143         (check_lface_attrs): Accept the string value for underline.
4144         (Finternal_set_lisp_face_attribute): Likewise. 
4146         * xfaces.c (load_color): Change the last argument type to enum
4147         lface_attribute_index from int. And addec code for underling coloring.
4148         (load_face_colors): Pass LFACE_*_INDEX to load_color.
4149         
4150 1999-02-12  Gerd Moellmann  <gerd@gnu.org>
4152         * xfns.c (Fx_image_header): Removed.
4154 1999-02-07  Gerd Moellmann  <gerd@gnu.org>
4156         * xterm.c: Don't include <bitmaps/gray>.
4157         (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
4159         * xfns.c (Fx_image_header): Add missing `\n\'.
4160         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
4162 1999-02-01  Gerd Moellmann  <gerd@gnu.org>
4164         * xterm.c (x_scroll_bar_create): Set background pixel from
4165         specified scroll bar color.
4166         (x_scroll_bar_set_handle): Use scroll bar foreground color.
4168         * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
4169         (x_set_scroll_bar_background): Ditto.
4171         * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
4173         * xfns.c (x_default_scroll_bar_color_parameter): New.
4174         (Fx_create_frame): Call it.
4176 1999-01-31  Gerd Moellmann  <gerd@gnu.org>
4178         * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
4179         values in x_output structure.  
4180         (Qscroll_bar_foreground, Qscroll_bar_background): New.
4181         (syms_of_xfns): Initialize these symbols.
4183         * xterm.h (struct x_output): Add scroll bar pixel colors.
4185         * xfns.c (x_frame_parms): Add entries for scroll bar colors.
4186         (x_set_scroll_bar_foreground): New.
4187         (x_set_scroll_bar_background): New.
4189         * xlwmenu.c (all_dashes_p): Removed.
4190         (size_menu_item): Call lw_separator_p.
4191         (display_menu_item): Ditto.
4192         (display_menu): Ditto.
4193         (draw_separator): New.
4194         (display_menu_item): Call it.
4195         (separator_height): New.
4196         (size_menu_item): Call it.
4198         * lwlib-Xm.c (all_dashes_p): Removed.
4199         (make_menu_in_widget): Use lw_separator_p.  Set Motif separator
4200         type.
4202         * lwlib.c (lw_separator_p): New.
4204         * lwlib.h (enum menu_separator): New.
4206 1999-01-12  Gerd Moellmann  <gerd@gnu.org>
4208         * xdisp.c (handle_single_display_prop): New.
4209         (handle_display_prop): Call it.
4210         (handle_raise_prop): Removed.
4211         (handle_height_prop): Removed.
4212         (handle_space_width_prop): Removed.
4213         (handle_face_prop): Remove handling of raised text.
4214         (handle_display_prop): Do it here.
4216         * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
4217         (RAISE_PROP_IDX): Removed.
4218         (HEIGHT_PROP_IDX): Removed.
4219         (SPACE_WIDTH_PROP_IDX): Removed.
4221         * xdisp.c (Qdisplay): Replaces Qglyph.
4222         (handle_display_prop): Formerly handle_glyph_prop.
4224 1999-01-11  Gerd Moellmann  <gerd@gnu.org>
4226         * xdisp.c (reseat_to_string): Set position in display vector to -1.
4227         (handle_stop): Set position in display vector to -1.  Don't
4228         check overlay strings when set up to deliver characters from a
4229         display vector.
4230         (set_iterator_to_next): At the end of a run of characters from a
4231         display vector, check whether the display vector display replaces
4232         the display of a character.
4234 1999-01-05  Gerd Moellmann  <gerd@gnu.org>
4236         * xfaces.c (init_frame_faces): Don't realize faces if frame's
4237         X window hasn't been created yet.
4239 1998-12-06  Gerd Moellmann  <gerd@gnu.org>
4241         * sound.c: New.
4243 1998-12-04  Gerd Moellmann  <gerd@gnu.org>
4245         * config.in (HAVE_SOUND): New.
4247         * emacs.c (main): Call syms_of_sound and init_sound.
4249         * Makefile.in (obj): Add sound.o.
4251         * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
4253         * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
4254         (HAVE_SYS_SOUNDCARD_H): New.
4256 1998-12-03  Gerd Moellmann  <gerd@gnu.org>
4258         * buffer.h (struct buffer): indicate_empty_lines renamed from
4259         indicate_zv_lines.
4261         * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
4262         (default-indicate-zv-lines): Likewise.
4264         * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
4265         to indicate_empty_line_p.
4267         * xdisp.c (reseat_at_next_visible_line_start): Reset method
4268         to next_element_from_buffer.
4270         * frame.c (make_frame): Set n_current_toolbar_items to 0.
4272         * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
4273         and `N-'.
4275         * xfns.c (xbm_scan): New.
4276         (xbm_read_hexint): Removed.
4277         (xbm_read_bitmap_file_data): Use xbm_scan.
4279         * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
4281 1998-12-02  Gerd Moellmann  <gerd@gnu.org>
4283         * xfns.c (xbm_read_hexint): New.
4284         (xbm_read_bitmap_file_data): New.
4285         (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
4286         instead of XReadBitmapFileData.
4288         * xdisp.c (handle_raise_prop): Compute voffset from current font.
4290         * xfaces.c (face_with_height): New.
4292         * xdisp.c (eval_handler): Renamed from eval_mode_handler.
4293         (eval_form): Renamed from eval_mode_element.
4294         (handle_face_prop): Use it.
4295         (Qheight): Replaces Qsmaller.
4296         (handle_height_prop): Replaces handle_smaller_prop.
4297         (handle_face_prop): If iterator's font_height is not an 
4298         integer, evaluate it to get the font height to use.
4300         * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
4301         (struct it): Use `font_height' instead of `smaller'.
4303 1998-12-01  Gerd Moellmann  <gerd@gnu.org>
4305         * xdisp.c (reseat_1): New.
4306         (reseat): Call it.
4307         (move_it_vertically_backward): Ditto.
4308         (redisplay_window): Don't abort when cursor not found in recenter.
4310 1998-11-30  Gerd Moellmann  <gerd@gnu.org>
4312         * xdisp.c (reseat_at_next_visible_line_start): When not
4313         currently delivering display elements from the current buffer,
4314         restore buffer position first.
4315         (init_from_display_pos): Don't set IT's position from the
4316         position passed to this function.
4318 1998-11-28  Gerd Moellmann  <gerd@gnu.org>
4320         * config.in (PROTO): Removed.
4322         * xterm.h: Change PROTO to P_.
4324 1998-11-26  Gerd Moellmann  <gerd@gnu.org>
4326         * xterm.c (take_vertical_position_into_account): New.
4327         (x_produce_image_glyph): Call it.
4328         (x_produce_stretch_glyph): Ditto.
4329         (x_produce_glyphs): Ditto.
4330         (x_fill_glyph_string): Adjust base line for glyph's voffset.
4331         (x_fill_composite_glyph_string): Ditto.
4332         (x_fill_image_glyph_string): Ditto.
4333         (x_fill_stretch_glyph_string): Ditto.
4335         * xdisp.c (display_line): Always compute row height from
4336         max_ascent and max_descent.
4338         * dispextern.h (struct glyph): Add voffset.
4339         (struct it): Replace height by descent, max_height by max_descent.
4341         * xterm.c (x_append_glyph): Set voffset
4342         (x_append_stretch_glyph): Ditto.
4343         (x_produce_image_glyph): Ditto.
4344         (x_produce_glyphs): Take voffset into account.
4345         (x_produce_image_glyph): Ditto.
4346         (x_produce_stretch_glyph): Ditto.
4348         * dispextern.h (struct it): Add voffset.
4349         * xdisp.c (push_it): Save voffset.
4350         (pop_it): Restore it.
4352         * xdisp.c (it_props): Add entry for `raise'.
4353         (handle_raise_prop): New.
4355         * dispextern.h (RAISE_PROP_IDX): New.
4357         * xdisp.c (Qraise): New.
4358         (syms_of_xdisp): Define Qraised.
4360         * xterm.c (x_scroll_bar_move): Clear to the left and right
4361         of toolkit scroll bars differently.
4362         (x_scroll_bar_move): Removed.
4363         (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
4365         * dispextern.h: Make it compilable --with-x=no.
4366         * alloc.c: Ditto.
4367         * emacs.c: Ditto.
4368         * dispnew.c: Ditto.
4369         * keyboard.c: Ditto.
4370         * term.c: Ditto.
4371         * xdisp.c: Ditto.
4372         * xfaces.c: Ditto.
4373         * xfns.c: Ditto.
4374         * xmenu.c: Ditto.
4376 1998-11-25  Gerd Moellmann  <gerd@gnu.org>
4378         * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
4380 1998-11-24  Gerd Moellmann  <gerd@gnu.org>
4382         * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
4383         update slider size, only.
4384         (xm_scroll_callback): Set dragging member of the scroll bar.
4385         (xt_action_hook): Reset last_scroll_bar_part.
4386         (XTredeem_scroll_bar): Reset bar->dragging to nil.
4388         * xlwmenu.c (abort_gracefully): New.
4389         (display_menu): Use it instead of abort.
4390         (size_menu): Ditto.
4392         * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
4393         window on newly created frames that don't have one.
4395 1998-11-23  Gerd Moellmann  <gerd@gnu.org>
4397         * xdisp.c (restore_overlay_strings): Removed.
4398         (restore_dpvec): Removed.
4399         (init_from_display_pos): Inline both functions above.
4401         * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
4402         (parse_image_spec): Handle it.
4403         (xbm_format): Use it.
4404         (xpm_format): Ditto.
4405         (pbm_format): Ditto.
4406         (jpeg_format): Ditto.
4407         (tiff_format): Ditto.
4408         (gif_format): Ditto.
4409         (gs_format): Ditto.
4411         * xdisp.c (set_window_cursor): Removed.
4412         (redisplay_internal): Case cursor motion in cursor line of
4413         selected window; use set_cursor_from_row.
4415 1998-11-22  Gerd Moellmann  <gerd@gnu.org>
4417         * widget.c (EmacsFrameSetCharSize): Take widget's border width
4418         into account.
4420 1998-11-21  Gerd Moellmann  <gerd@gnu.org>
4422         * xterm.c (expose_frame): Redraw menu bar window.
4424         * xdisp.c (display_menu_bar): Record hpos instead of x-position
4425         in menu item.
4427         * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
4428         of FRAME_TOOLBAR_LINES.  Use `f' instead of `frame'.
4430         * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
4431         to determine vertical_scroll_bar_extra.
4432         (EmacsFrameSetCharSize): Ditto.
4433         * xfns.c (x_figure_window_size): Ditto.
4435         * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
4436         (x_draw_bitmap): Ditto.
4438         * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
4439         * xfaces.c (realize_basic_faces): Realize it.
4441 1998-11-20  Gerd Moellmann  <gerd@gnu.org>
4443         * xmenu.c (xmenu_show): Add workaround for remaining button grab
4444         under LessTif   Use the widget of the frame as parent for the 
4445         menu, again.
4447 1998-11-19  Gerd Moellmann  <gerd@gnu.org>
4449         * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
4450         When EnterNotify, don't generate a mouse movement event if
4451         notification is from a busy-cursor child window.
4453         * xterm.h (struct x_output): Add busy_window, remove cursor.
4455         * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
4456         Use a transparent window to display the busy-cursor.
4457         (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
4459 1998-11-17  Gerd Moellmann  <gerd@gnu.org>
4461         * xdisp.c (check_window_end): New, for debugging.
4462         (CHECK_WINDOW_END): New.
4463         (try_window_id): Use it.
4465         * xterm.c (process_expose_from_menu): Return int.
4467         * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
4468         TOOLBAR_EVENT events in last_nonmenu_event.
4470 1998-11-16  Gerd Moellmann  <gerd@gnu.org>
4472         * xdisp.c (redisplay_window): If windows_or_buffers_changed,
4473         window end isn't reliable, so set window_end_valid to nil.
4474         (redisplay_internal): If overlay arrow has changed, set
4475         windows_or_buffers_changed to redisplay thoroughly.
4477         * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
4478         necessary.
4480         * xfns.c (file_dialog_cb): New.
4481         (Fx_file_dialog): New.
4482         * fileio.c (Fread_file_name): Call it.
4484         * xrdb.c (x_load_resources): Add default resoures for file 
4485         selection dialog.
4487 1998-11-14  Gerd Moellmann  <gerd@gnu.org>
4489         * xterm.c (note_mouse_highlight): Don't highlight when popup
4490         is active.
4492         * xlwmenu.c (xlwMenuResources): Change previously unused 
4493         XtNmargin to 4.
4494         (size_menu): Take margin into account.
4495         (display_menu_item): Ditto.
4496         (remap_menubar): Ditto.
4497         (draw_arrow): Draw it 3D.
4499         * keyboard.c (timer_check): Inhibit busy cursor around calls to
4500         timer-event-handler.  This busy cursor tends to be anoying if
4501         fontifying stealthily.
4503         * dispnew.c (direct_output_for_insert): Give up if current row
4504         contains trailing whitespace.
4506 1998-11-13  Gerd Moellmann  <gerd@gnu.org>
4508         * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
4510         * xdisp.c (handle_fontified_prop): New.
4511         (Vfontification_functions): New.
4512         (Qfontification_functions): New.
4513         (it_props): Add handle_fontified_prop.
4515 1998-11-12  Gerd Moellmann  <gerd@gnu.org>
4517         * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
4518         Otherwise, under LessTif, after the popup has gone, all button
4519         press events come in for the frame's widget, and release events
4520         come in for the edit_widget.
4521         * xterm.c (XTread_socket): Remove workaround for that problem.
4522         (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
4523         XmScrollBarSetValues.
4524         (SET_SAVED_MENU_EVENT): Give it statement form.
4526         * lwlib-Xm.c (make_menu_in_widget): Set alignment of menu
4527         title after all widgets have been created.
4529         * xfaces.c (display_message): If waiting_for_input, don't display
4530         the message.
4532         * window.c (scroll_command): If not acting on current_buffer,
4533         make redisplay consider all windows.
4535         * xfns.c (Fx_hide_tip): Return t if tooltip was open.
4537         * xdisp.c (handle_glyph_prop): Set it->object for images to
4538         the object having the glyph property.
4540         * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
4541         invisible.
4543 1998-11-11  Gerd Moellmann  <gerd@gnu.org>
4545         * xterm.h (struct x_display_info): Add gray pixmap.  * xterm.c
4546         (x_term_init): Create the gray pixmap.
4547         (x_setup_relief_color): Use it.
4548         (x_get_glyph_string_clip_rect): Draw a toolbar window over the
4549         internal border at the top of a frame.
4550         (x_init_glyph_string): Likewise.
4551         (x_draw_glyph_string_relief): Correct right x by 1 pixel for 
4552         full-width lines.
4553         (XTflash): Don't flash the toolbar window.
4555         * xterm.c (XTread_socket): Workaround for LessTif popup menus
4556         in case of ButtonPress events.
4558 1998-11-10  Gerd Moellmann  <gerd@gnu.org>
4560         * xrdb.c (x_load_resources): Add grey background colors as
4561         defaults for menus, scroll bars, and dialogs.
4563         * insdel.c (prepare_to_modify_buffer): Move setting
4564         windows_or_buffers_changed from modify_region here.
4566         * xfns.c (Fx_show_tip): Inhibit redisplay.
4567         (Fx_hide_tip): Ditto.
4568         (Fx_image_header): New.
4570 1998-11-09  Gerd Moellmann  <gerd@gnu.org>
4572         * dispnew.c (clear_window_matrices): Set window_end_valid to nil
4573         when clearing current window matrices.
4575 1998-11-08  Gerd Moellmann  <gerd@gnu.org>
4577         * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
4578         position from a string position.  Use the right end position
4579         if the property spans a whole overlay string.
4581 1998-11-07  Gerd Moellmann  <gerd@gnu.org>
4583         * xmenu.c (menubar_selection_callback): Remove workaround for
4584         Lesstif not calling XmNpopdownCallback because it doesn't
4585         handle the case where users don't select any menu item.
4587         * xlwmenu.c (toggle_button_width): Renamed from
4588         toggle_or_radio_button_width.
4589         (radio_button_width): New.
4590         (size_menu_item): Use new functions.
4591         (draw_shadow_rhombus): New.
4592         (draw_radio): Use radio_button_width and draw_shadow_rhombus.
4593         (draw_toggle): Use toggle_button_width.
4595         * insdel.c (modify_region): Set windows_or_buffers_changed.
4597         * buffer.c (set_buffer_internal): Don't set
4598         windows_or_buffers_changed.
4600         * lwlib-Xm.c (xm_update_toggle): Add callback xm_generic_callback
4601         instead of xm_internal_update_other_instances.
4603         * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
4605         * lwlib-Xm.c (make_menu_in_widget): Do help button before managing
4606         children to get it to the right place.
4607         (make_menu_in_widget): Create toggle buttons.
4608         (update_one_menu_entry): Update toggle buttons.
4610         * xmenu.c (menubar_selection_callback): Add workaround for
4611         Lesstif not calling XmNpopdownCallback.
4613         * xdisp.c (eval_mode_element): New.
4614         (eval_mode_handler): New.
4615         (display_mode_element): Use eval_mode_element.
4617         * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
4618         Remove code looking at text props of default value.
4620         * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
4622         * xlwmenu.c (size_menu_item): Add parameter button_width.
4623         (size_menu): Compute button_width.
4624         (toggle_or_radio_button_width): New.
4625         (draw_toggle): New.
4626         (draw_radio): New.
4627         (draw_shadow_rectangle): Add parameter `down_p'.
4629         * xlwmenuP.h (_window_state): Add button_width.
4631 1998-11-06  Gerd Moellmann  <gerd@gnu.org>
4633         * xmenu.c (single_submenu): Set button_type of menu to 
4634         BUTTON_TYPE_NONE.
4635         (single_submenu): Likewise for panes and menu items.
4636         (set_frame_menubar): Set button_type of menu bar to none.
4637         (xmenu_show): Likewise.
4638         (single_submenu): Set widget values selected slot.
4639         (xmenu_show): Likewise.
4641         * lwlib.c (merge_widget_value): Handle button_type.
4642         (copy_widget_value_tree): Copy button_type.
4644         * lwlib.h (enum button_type): New.
4645         (_widget_value): New member button_type.
4647         * xmenu.c (push_menu_item): Add parameters `type' and
4648         `selected'. Store it in menu_items.
4649         (MENU_ITEMS_ITEM_TYPE): New.
4650         (MENU_ITEMS_ITEM_SELECTED): New.
4651         (MENU_ITEMS_ITEM_LENGTH): Increase by two.
4653         * xfns.c (clear_image_cache): Get the current time, before
4654         doing anything.
4655         (cache_image): Set prev pointer of next image.
4656         (clear_image_cache): Clear current matrices if any image was
4657         freed.
4659         * xterm.c (XTread_socket): Set inhibit_busy_cursor.
4661         * xfns.c (x_set_cursor): New.
4662         (Fx_display_busy_cursor): New.
4663         (Fx_undisplay_busy_cursor): New.
4665         * xterm.h (struct x_output): Add busy_cursor.
4667         * xfns.c (Vx_busy_pointer_shape): New.
4668         (x_set_mouse_color): Create busy cursor.
4670         * process.c (wait_reading_process_input): Show and hide busy
4671         cursor.
4673         * keyboard.c (command_loop_1): Display busy cursor.
4675         * eval.c (Fsignal): Hide busy cursor.
4677         * buffer.c (set_buffer_internal): Don't set
4678         windows_or_buffers_changed.
4680         * xterm.c (redo_mouse_highlight): New.
4682 1998-11-04  Gerd Moellmann  <gerd@gnu.org>
4684         * lwlib-Xm.c (make_menu_in_widget): Test for menubar widgets
4685         using XmNrowColumnType.
4687         * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
4688         (x_build_heuritic_mask): New.
4689         (lookup_image): Call it.
4691         * xterm.c (note_toolbar_highlight): Always set up help_echo.
4692         (previous_help_echo): New.
4693         (XTread_socket): Generate help event with nil message when
4694         leaving a region with help-echo.
4695         (note_mouse_highlight): Handle `help-echo' over text.
4696         (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
4697         CirculateRequest.
4698         (clear_mouse_face): Don't clear if tooltip is shown.
4699         (XTread_socket): Redo mouse-highlight after tooltip is gone.
4700         Avoid SET_FRAME_GARBAGED when tooltip is mapped.
4702         * keyboard.c (Vshow_help_function): New.
4703         (read_char): Use it.
4705 1998-11-03  Gerd Moellmann  <gerd@gnu.org>
4707         * xfns.c (x_create_tip_frame): New.
4708         (Fx_show_tip): New.
4709         (Fx_hide_tip): New.
4711         * xterm.c (x_destroy_window): Handle case that we don't have 
4712         a widget.
4714         * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
4715         to full_width_p.  Add internal_border_p.
4717 1998-11-02  Gerd Moellmann  <gerd@gnu.org>
4719         * xterm.c (note_mode_line_highlight): Check the charpos of
4720         the glyph under the mouse pointer before accessing text
4721         properties at that position.
4723 1998-11-01  Gerd Moellmann  <gerd@gnu.org>
4725         * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
4727         * xdisp.c (auto-raise-toolbar-buttons): New.
4728         (build_desired_toolbar_string): Handle the flag.
4729         (toolbar-button-margin): New.
4730         (toolbar-button-relief): New.
4731         (build_desired_toolbar_string): Use margin and relief.
4733         * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
4734         for FreeBSD.
4735         (note_mode_line_highlight): New.
4736         (note_mouse_highlight): Call it.
4738 1998-10-31  Gerd Moellmann  <gerd@gnu.org>
4740         * s/freebsd.h (NARROWPROTO): New.
4742         * xdisp.c (display_string): New parameter face_string.
4743         (display_mode_element): When displaying a symbol with a string
4744         value, use text properties from the symbol's default value, maybe.
4746         * xrdb.c (x_load_resources): Add font defaults for menus and
4747         dialogs.
4749 1998-10-30  Gerd Moellmann  <gerd@gnu.org>
4751         * xfns.c (Fx_create_frame): Try 12pt Courier font first.
4753 1998-10-29  Gerd Moellmann  <gerd@gnu.org>
4755         * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
4756         produced for characters with codes < 32 under certain
4757         circumstances.
4759         * xdisp.c (redisplay_window): Handle values of PT in front
4760         of invisible, intangible text.
4761         (try_window_id): Set overlay_arrow_seen to zero before 
4762         displaying lines.
4763         (display_mode_element): Assign to glyphs written for a mode
4764         line spec `%x' as object the Lisp format string, as position
4765         the position of the `%' in that string.
4766         (display_string): If displaying a C string, optionally get
4767         the face to use from a Lisp string.
4769         * xterm.c (expose_window_tree): Include mode line height.
4771         * xfns.c (Fx_create_frame): Add toolbar height to frame height.
4773 1998-10-27  Gerd Moellmann  <gerd@gnu.org>
4775         * xterm.c (note_mouse_highlight): Change mouse pointer shape
4776         over mode line.
4778 1998-10-26  Gerd Moellmann  <gerd@gnu.org>
4780         * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
4782         * xdisp.c (redisplay_window): If mode line height has changed,
4783          arrange for a thorough immediate redisplay using the correct mode
4784          line height.
4785          (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
4787         * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
4788         (CURRENT_MODE_LINE_HEIGHT): New.
4789         (DESIRED_MODE_LINE_HEIGHT): New.
4791         * keyboard.c (make_lispy_event): Add string and string position
4792         info to mouse-click events.
4793         (read_key_sequence): Handle `local-map' property of mode line
4794         strings.
4796         * keyboard.h (POSN_STRING): New.
4798 1998-10-25  Gerd Moellmann  <gerd@gnu.org>
4800         * dispnew.c (mode_line_string): Mew.
4802         * xterm.c (xt_action_hook): New.
4803         (x_create_toolkit_scroll_bar): Add action hook.
4804         (xm_scroll_callback): Implement dragging.
4806         * keyboard.c (Qend_scroll): New.
4807         (scroll_bar_parts): Add it.
4809         * termhooks.h (scroll_bar_end_scroll): New.
4811         * xterm.c (XTread_socket): Bug fix.
4813 1998-10-24  Gerd Moellmann  <gerd@gnu.org>
4815         * xdisp.c (redisplay_window): Finish scroll bars after
4816         redisplaying toolbar.
4818         * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
4819         (syms_of_keyboard): Add Qbottom.
4821         * termhooks.h (scroll_bar_to_top): New.
4822         (scroll_bar_to_bottom): New.
4824         * xdisp.c (redisplay_window): Always resize toolbar window if
4825         auto_resize_toolbar_p is non-zero.
4826         (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
4827         (window_box): New.
4828         (window_box_height): New.
4829         (window_box_width): New.
4830         (window_box_left): New.
4831         (window_box_right): New.
4832         (window_box_edges): New.
4834 1998-10-23  Gerd Moellmann  <gerd@gnu.org>
4836         * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
4837         XawScrollbarSetThumb in FreeBSD.
4838         (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
4839         to true.
4841         * window.c (get_phys_cursor_glyph): Return null if cursor vpos
4842         is out of range.
4844         * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
4845         (x_term_init): Initialize it.
4847         * xterm.h (struct x_display_info): Add scroll_bar_pixel.
4849         * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
4850         cursor.
4852 1998-10-22  Gerd Moellmann  <gerd@gnu.org>
4854         * keyboard.c (make_lispy_event): Handle scroll_bar_click
4855         differently when using toolkit scroll bars.
4857         * xterm.c (x_send_scroll_bar_event): New.
4858         (x_scroll_bar_to_input_event): New.
4859         (xaw3d_scroll_callback): New.
4860         (xaw3d_jump_callback): New.
4861         (xm_scroll_callback): New.
4862         (x_toolkit_scroll_p): New.
4863         (XTread_socket): Handle scroll bar client message.
4864         (x_term_init): Initialize Xatom_Scrollbar.
4865         (x_scroll_bar_create): Set cursor.
4866         (xm_scroll_callback):
4867         (x_create_toolkit_scroll_bar): New.
4868         (x_set_toolkit_scroll_bar_thumb): New.
4869         (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
4870         (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
4872         * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
4874 1998-10-21  Gerd Moellmann  <gerd@gnu.org>
4876         * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
4877         (XTread_socket): Don't handle mouse button events for scroll bars
4878         if using toolkit scroll bars.
4879         (XTset_vertical_scroll_bar): Set thumb size and position for
4880         Athena scroll bar.
4882         * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
4884         * xterm.c (XTread_socket): Dispatch expose event to widget
4885         if using toolkit scroll bars.
4886         (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
4887         (x_scroll_bar_create): Create and show a scroll bar widget 
4888         if using toolkit scroll bars.
4889         (x_scroll_bar_move): Handle tookit scroll bars.
4891         * Makefile.in (LIBW): Use Xaw3d if present.
4893         * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
4894         (HAVE_XAW3D): New.
4895         
4896         * config.in (USE_TOOLKIT_SCROLL_BARS): New.
4897         (HAVE_XAW3D): New.
4899         * xterm.c (XTset_vertical_scroll_bar): Correct position of 
4900         right vertical scroll bar.
4902 1998-10-20  Gerd Moellmann  <gerd@gnu.org>
4904         * xfns.c (xpm_load): Support reading XPM images from string
4905         buffers containing data in the same format as an XPM file.
4906         Support `:color-symbols'.
4907         (xpm_format): Add `:data'.
4908         (xpm_keyword_index): Add XPM_DATA.
4909         (syms_of_xfns): Add `:color-symbols'.
4910         (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
4911         (xpm_valid_color_symbols_p): New.
4912         (xpm_image_p): Call it.
4914         * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
4915         attribute to the image if item is not enabled.
4917         * xfns.c (x_laplace): New.
4918         (x_laplace_read_row): New.
4919         (x_laplace_write_row): New.
4920         (lookup_image): Handle common image attributes here.  New
4921         attribute `:algorithm'.
4923         * xfaces.c (clear_face_cache): Call clear_image_cache.
4925         * xterm.c (x_inverted_image_mask): Removed.
4926         (x_draw_image_foreground_1): New.
4927         (x_draw_image_glyph_string): Draw images with mask to a temporary
4928         pixmap to reduce flickering.
4930         * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
4931         (display_toolbar_line): Remove parameter `margin'.
4933 1998-10-19  Gerd Moellmann  <gerd@gnu.org>
4935         * xdisp.c (toolbar_lines_needed): New.
4936         (auto-resize-toolbars): New.
4938         * xfns.c (cache_image): Correct call to xrealloc.
4940         * dispnew.c (Fset_toolbar_height): Removed.
4942         * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
4943         FRAME_MENU_BAR_LINES.
4945         * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
4946         instead of FRAME_MENU_BAR_LINES.
4947         (check_frame_size): Ditto.
4949         * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
4950         instead of FRAME_MENU_BAR_LINES.
4951         (adjust_frame_glyphs_for_frame_redisplay): Ditto.
4952         (build_frame_matrix): Ditto.
4953         (change_frame_size_1): Ditto.
4955         * frame.h (FRAME_TOOLBAR_LINES): New.
4956         (FRAME_TOP_MARGIN): New.
4958         * window.c (struct save_window_data): Add frame_toolbar_lines.
4959         (Fset_window_configuration): Handle toolbar lines.
4960         (Fcurrent_window_configuration): Save toolbar lines.
4962         * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
4964         * xfns.c (Fx_create_frame): Add default parameter for toolbar.
4966         * frame.h (struct frame): Rename top_margin to toolbar_lines.
4968         * xfns.c (x_frame_parms): Add `toolbar-lines'.
4969         (x_set_toolbar_lines): New.
4971         * keyboard.c (cmd_error_internal): Bug fix.
4973         * xterm.c: Remove double include of syssignal.h.
4975 1998-10-18  Gerd Moellmann  <gerd@gnu.org>
4977         * xterm.c (x_toolbar_item): New.
4978         (x_handle_toolbar_click): Use it.
4979         (note_toolbar_highlight): Use it.
4981         * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
4982         and toolbar_items_vectors.
4984         * xterm.c (help_echo): New.
4985         (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
4986         (x_set_glyph_string_gc): Handle them.
4987         (x_after_update_window_line): Don't do anything in pseudo-windows.
4988         (x_produce_image_glyph): Take image margin and face relief into
4989         account.
4990         (x_get_glyph_string_clip_rect): Handle pseudo-windows.
4991         (x_draw_glyph_string_background): Optimize case when face has
4992         relief.
4993         (x_setup_relief_color): Take frame instead of glyph string
4994         parameter.
4995         (x_draw_relief_rect): New.
4996         (x_draw_glyph_string_relief): Call it.
4997         (x_draw_image_glyph_string_foreground): Handle margin and image
4998         relief.
4999         (x_draw_image_glyph_string_background): Ditto.
5000         (expose_frame): Redraw toolbar window.
5001         (expose_window): Don't draw cursor for pseudo-windows.
5002         (x_y_to_hpos_vpos): Handle pseudo-windows.
5003         (frame_to_window_pixel_xy): New.
5004         (note_mouse_highlight): Call note_toolbar_highlight.
5005         (x_handle_toolbar_click): New.
5006         (note_toolbar_highlight): New.
5007         (show_mouse_face): Change int parameter `hl' to parameter of
5008         type enum draw_glyphs_face.  Handle image highlighting.
5009         (XTread_socket): Return a HELP_EVENT input event if help_echo is
5010         non-nil.  Use x_handle_toolbar_click.
5012         * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
5014         * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
5015         IMAGE_BOOL_VALUE.
5016         (parse_image_spec): Handle them.
5017         (image_spec_value): Additional parameter found.
5018         (free_image): Remove image from the vector `images' of the 
5019         image cache.
5020         (clear_image_cache): Additional parameter force_p.
5021         (Fclear_image_cache): New.
5022         (x_find_image_file): New.
5023         (xbm_load): Handle `:margin' and `:relief'.  Use
5024         x_find_image_file.
5025         (xpm_load): Likewise.
5026         (pbm_load): Likewise.
5027         (jpeg_load): Likewise.
5028         (tiff_load): Likewise.
5029         (gif_load): Likewise.
5031         * keyboard.c (Qhelp_echo): New symbol.
5032         (read_char): Handle `toolbar' and `help_echo' events.
5033         (kbd_buffer_get_event): Handle HELP_ECHO input event.
5034         (make_lispy_event): Handle TOOLBAR_EVENT.
5035         (toolbar_items): New.
5036         (process_toolbar_item): New.
5037         (PROP): New.
5038         (init_toolbar_items): New.
5039         (append_toolbar_item): New.
5040         (read_char_x_menu_prompt): Handle `toolbar' event.
5041         (read_key_sequence): Ditto.
5043         * xfaces.c (Qtoolbar): New.
5044         (realize_basic_faces): Realize `toolbar' face.
5045         (face_at_string_position): Remove parameter modeline_p, add
5046         base_face_id.
5048         * xfns.c (xbm_load_image_from_file): Don't use Xmu function
5049         to read data.
5051 1998-10-17  Gerd Moellmann  <gerd@gnu.org>
5053         * xdisp.c (init_iterator): Replace parameter modeline_p with
5054         base_face_id.
5055         (next_element_from_string): Call get_next_display_element
5056         recursively after handling text properties.
5057         (prepare_menu_bars): Call update_toolbar.
5058         (update_toolbar): New.
5059         (build_desired_toolbar_string): New.
5060         (display_toolbar_line): New.
5061         (redisplay_toolbar): New.
5062         (toolbar_item_info): New.
5063         (redisplay_window): Call redisplay_toolbar.
5064         (Fdump_toolbar_row): New.  Defined if compiled with GLYPH_DEBUG.
5066         * dispnew.c (clear_current_matrices): Clear matrices of toolbar
5067         window.
5068         (clear_desired_matrices): Ditto.
5069         (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
5070         (free_glyphs): Free matrices of toolbar window.
5071         (update_frame): Update toolbar window.
5072         (change_frame_size_1): Take toolbar into account.
5073         (Fset_toolbar_height): New.
5075         * dispextern.h (struct it): Remove member modeline_p, add
5076         base_face_id.
5077         (struct image): Add members relief and margin.
5078         (IMAGE_ASCENT): Include margin in height.
5080 1998-10-14  Gerd Moellmann  <gerd@gnu.org>
5082         * xfns.c (Fclear_image_cache): New.
5084         * xfaces.c (realize_basic_faces): Realize toolbar face.
5085         (face_at_string_position): Remove parameter modeline_p, add
5086         base_face_id.
5088         * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
5090 1998-10-13  Gerd Moellmann  <gerd@gnu.org>
5092         * keyboard.c (syms_of_keyboard): Intern `:help'.
5094 1998-10-12  Gerd Moellmann  <gerd@gnu.org>
5096         * xterm.c (note_toolbar_highlight): New.
5097         (note_mouse_highlight): Call it.
5099         * window.c (window_from_coordinates): Additional parameter toolbar_p.
5100         (coordinates_in_window): Handle toolbar window.
5102         * keyboard.c (toolbar_items): New.
5103         (process_toolbar_item): New.
5104         (parse_toolbar_item): New.
5105         (init_toolbar_items): New.
5106         (append_toolbar_item): New.
5108         * dispextern.h (enum toolbar_item_idx): New.
5109         (enum toolbar_item_image): New.
5111         * frame.h (struct frame): Add toolbar-related members.
5113         * xfaces.c (face_at_string_position): Remove assertion that
5114         current_buffer == window's buffer.  This is not the case when
5115         called for the toolbar window.
5117         * frame.c (make_frame): Initialize toolbar members.
5119         * alloc.c (mark_object): Mark toolbar data of frames.
5121         * frame.h (struct frame): Add toolbar-related members
5122         toolbar_window, desired_toolbar_items, current_toolbar_items,
5123         desired_toolbar_string, current_toolbar_string,
5124         n_desired_toolbar_items, n_current_toolbar_items.  Add
5125         window_height.
5127         * xterm.c (x_after_update_window_line): Don't draw bitmap
5128         areas for pseudo-windows.
5129         (expose_frame): Handle toolbar window.
5130         (expose_window): Don't do cursor stuff for pseudo-windows.
5132         * xdisp.c (display_menu_bar): Correct calls to init_iterator.
5134 1998-10-11  Gerd Moellmann  <gerd@gnu.org>
5136         * frame.c (make_frame): Initialize toolbar_window.
5138         * alloc.c (mark_object): Make the toolbar window.
5140         * dispnew.c (update_frame): Update frame's toolbar_window.
5141         (clear_current_matrices): Likewise.
5142         (clear_desired_matrices): Likewise.
5143         (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
5144         (free_glyphs): Free the toolbar window and its matrices.
5146         * frame.h (struct frame): Add toolbar_window.
5148         * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
5149         with relief.
5151 1998-10-10  Gerd Moellmann  <gerd@gnu.org>
5153         * dispnew.c (buffer_posn_from_coords): Don't screw up if 
5154         window start is not in the range BEGV..ZV.
5156 1998-10-09  Gerd Moellmann  <gerd@gnu.org>
5158         * xdisp.c (try_scrolling): Experimentally handle the case
5159         that scroll-preserve-screen-position is set to `always'.
5161         * window.c (Vscroll_preserve_screen_position): Replacement for
5162         scroll_preserve_screen_position.
5164 1998-10-08  Gerd Moellmann  <gerd@gnu.org>
5166         * dispnew.c: Don't initialize auto structs; the HP/UX compiler
5167         doesn't like it.
5168         * xdisp.c: Ditto.
5170         * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
5172 1998-10-06  Gerd Moellmann  <gerd@gnu.org>
5174         * minibuf.c (Fminibuffer_complete_word): Fix computation of 
5175         i_byte when prompts are inserted into minibuffers.
5177         * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
5178         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
5179         (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
5181 1998-10-04  Gerd Moellmann  <gerd@gnu.org>
5183         * xdisp.c (make_cursor_line_fully_visible): New.
5184         (try_scrolling): New.
5185         (redisplay_window): Move scrolling code to try_scrolling.
5186         (make_cursor_line_fully_visible): Handle case of window too small
5187         to show a single line.
5188         (redisplay_window): Case forced window start---use
5189         make_cursor_line_fully_visible.
5190         (redisplay_window): Case cursor movement via current matrix.
5191         If ending up on a partially visible line, make it fully visible
5192         instead of recentering.
5193         (try_scrolling): Additional parameter scroll_smoothly.
5195         * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
5197 1998-09-28  Gerd Moellmann  <gerd@gnu.org>
5199         * window.c (window_scroll_pixel_based): Bug fix: vpos used
5200         instead of y-position for scroll-preserved-screen-position.
5202 1998-09-07  Gerd Moellmann  <gerd@gnu.org>
5204         * dispnew.c (update_frame_line): If current row is not enabled,
5205         write the whole line.
5207 1998-09-06  Gerd Moellmann  <gerd@gnu.org>
5209         * lisp.h (HAVE_FACES): Removed.
5211         * dispextern.h (HAVE_FACES): Removed.
5213         * config.in (HAVE_FACES): Removed.
5215         * dispnew.c (HAVE_FACES): Removed.
5217         * xdisp.c (HAVE_FACES): Removed.
5219         * xfaces.c (HAVE_FACES): Removed.
5221 1998-09-05  Gerd Moellmann  <gerd@gnu.org>
5223         * xdisp.c (init_iterator): If face_change_count is non-zero,
5224         free realized faces.
5226         * xfaces.c (free_all_realized_faces): Make it externally visible.
5227         (Finternal_set_lisp_face_attribute): Increment
5228         windows_or_buffers_changed.
5230         * dispnew.c (direct_output_for_insert): Give up if
5231         face_change_count is non-zero.
5232         (direct_output_forward_char): Ditto.
5234         * xfaces.c (face_change_count): New.
5236 1998-09-04  Gerd Moellmann  <gerd@gnu.org>
5238         * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
5239         of range.
5241 1998-09-03  Gerd Moellmann  <gerd@gnu.org>
5243         * term.c (Ftty_display_color_p): New.
5245 1998-09-02  Gerd Moellmann  <gerd@gnu.org>
5247         * xfaces.c (Ftty_defined_colors): New.
5249         * xterm.c (x_produce_glyphs): Fix computation of
5250         contains_overlapping_glyphs_p for ASCII.
5252         * dispnew.c (Fshow_cursor): Don't change cursor state while
5253         redisplaying.
5254         (direct_output_for_insert): If a glyph with lbearing or rbearing
5255         is among the new glyphs, set row flag contains_overlapping_glyph_p.
5257 1998-09-01  Gerd Moellmann  <gerd@gnu.org>
5259         * term.c (OUTPUT_IF): Make replacement text have statement form.
5260         (OUTPUT1_IF): Ditto.
5261         (TS_italic_mode, TS_end_italic_mode): Removed.
5262         (TS_bold_mode): Removed.
5263         (TS_underscore_mode, TS_end_underscore_mode): Removed.
5264         (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
5265         (TS_enter_reverse_mode): New.
5266         (TS_enter_underline_mode, TS_exit_underline_mode): New.
5267         (TN_magic_cookie_glitch_ul): New.
5268         (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
5269         (TS_exit_attribute_mode): New.
5270         (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
5271         (TS_set_foreground, TS_set_background): New.
5272         (reset_terminal_modes): Switch colors back to default.
5273         (write_glyphs): Turn face on before writing text, turn it off
5274         afterwards.
5275         (insert_glyphs): Ditto.
5276         (term_init): Initialize new terminal capability variables.
5277         (turn_on_face): Turn a face on.
5278         (turn_off_face): Turn a face off.
5280         * lisp.h (MAKE_GLYPH): Remove test for frame type.
5281         (GLYPH_CHAR): Ditto.
5282         (GLYPH_FACE): Ditto.
5284         * xfaces.c (Vface_tty_color_alist): New.
5285         (face-register-tty-color): New.
5286         (face-clear-tty-colors): New.
5288         * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
5289         (struct it): Remove member faces_p since we now always have faces.
5291 1998-08-31  Gerd Moellmann  <gerd@gnu.org>
5293         * dispextern.h (struct face): Add tty appearance flags.
5295         * xdisp.c (init_iterator): Always handle faces.
5296         (extend_face_to_end_of_line): Handle tty frames.
5298         * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
5299         passed in.
5301 1998-08-30  Gerd Moellmann  <gerd@gnu.org>
5303         * xfaces.c (realize_default_face): Use empty strings to indicate
5304         that the face should use the default foreground/background
5305         color of the terminal.  Fill font-related attributes with 
5306         appropriate values for tty frames.
5308         * emacs.c (main): Call syms_of_xfaces before init_window_once.
5310         * xfaces.c (realize_default_face): If face `default' is not
5311         yet known, create it.
5313         * frame.c (make_terminal_frame): Call init_frame_faces
5314         unconditionally.
5316         * xfaces.c (init_frame_faces): Make it work for tty frames.
5317         (free_frame_faces): Ditto.
5318         (clear_face_cache): Ditto.
5319         (recompute_basic_faces): Ditto.
5320         (Fframe_face_alist): Ditto.
5321         (free_realized_face): Ditto.
5322         (prepare_face_for_display): Ditto.
5323         (clear_face_gcs): Ditto.
5324         (lookup_face): Ditto.
5325         (smaller_face): Ditto.
5326         (realize_default_face): Ditto.
5327         (realize_face): Ditto.
5328         (realize_face): Dispatch to functions depending on the frame type.
5329         (realize_x_face): X way of realizing faces.
5330         (realize_tty_face): TTY way of realizing faces.
5332 1998-08-29  Gerd Moellmann  <gerd@gnu.org>
5334         * xfaces.c (realize_face): Remove parameter unibyte_registry,
5335         compute it instead.
5336         (lookup_face): Remove local variable unibyte_registry.
5338 1998-08-22  Gerd Moellmann  <gerd@gnu.org>
5340         * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
5341         1 pixel longer.
5343         * xdisp.c (face_before_or_after_it_pos): Fix computation 
5344         of face in buffer.
5346         * editfns.c (make_buffer_string_both): If prompt in buffer,
5347         prevent start > end.
5349         * indent.c (Fvertical_motion): Set current_buffer to window's
5350         buffer if it isn't already.
5352 1998-08-21  Gerd Moellmann  <gerd@gnu.org>
5354         * dispextern.h (GLYPH_DEBUG): Use default 0.
5356         * xdisp.c (it_props): New member `smaller'.
5357         (init_iterator): Initialize it.
5358         (Qsmaller): New.
5359         (push_it): Save value of `smaller' value on the stack.
5360         (pop_it): Restore `smaller' from the stack.
5361         (handle_smaller_prop): New.
5362         (handle_face_prop): Use `smaller' text property to select a
5363         suitable face.
5365         * dispextern.h (SMALLER_PROP_IDX): New.
5366         (struct it): Add member `smaller'.
5368         * xfaces.c (smaller_face): New.
5370         * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
5372         * dispnew.c (allocate_matrices_for_window_redisplay): Compute
5373         total pixel width of window differently.
5375         * xdisp.c (init_iterator): Compute width of mode line differently.
5377         * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
5378         of bitmap areas.
5380         * window.c (Fsplit_window): Include width of bitmap areas in
5381         window width.
5382         (window_internal_width): Subtract width of bitmap areas from
5383         total width.
5385 1998-08-18  Gerd Moellmann  <gerd@gnu.org>
5387         * xdisp.c: Functions reordered for better readability.
5389         * dispnew.c (update_text_area): Handle glyphs with arbitrary
5390         lbearing.
5391         (update_window_tree): Parameter no_scrolling_p removed.
5392         (update_single_window): Ditto.
5394         * xterm.c (x_get_char_font_and_encoding): Renamed to
5395         x_get_char_face_and_encoding.
5397         * dispnew.c (update_text_area): Don't call get_glyph_overhangs
5398         if end of current row reached.
5400         * xterm.c (x_get_glyph_face_and_encoding): New.
5401         (x_get_glyph_overhangs): Call it.
5403         * xdisp.c (Qshow_trailing_whitespace): New.
5404         (Qtrailing_whitespace): New.
5405         (enum prop_handled): New.
5406         (struct props, it_props): New.
5407         (next_overlay_change): New.  Works like Fnext_overlay_change
5408         but doesn't use xmalloc.
5409         (handle_stop): Restructured.
5410         (face_before_or_after_it_pos): Case iteration over a string: fix
5411         handling of face before current position.
5413 1998-08-16  Gerd Moellmann  <gerd@gnu.org>
5415         * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
5416         reallocation matrix if fonts_changed_p.
5417         (update_text_area): Handle glyphs with lbearing.
5419 1998-08-14  Gerd Moellmann  <gerd@gnu.org>
5421         * xdisp.c (struct props): New.
5422         (it_props): New.
5423         (compute_prop_info): New.
5424         (handle_stop): New.
5426         * textprop.c (validate_interval_range): Make it externally
5427         visible.
5429         * dispnew.c (direct_output_for_insert): Remove calls
5430         to compute_stop_pos.
5432         * dispextern.h (struct it): Remove check_charpos,
5433         next_overlay_pos.  Add what_changes.
5435 1998-08-10  Gerd Moellmann  <gerd@gnu.org>
5437         * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
5439         * xfaces.c (Vx_unibyte_registry_and_encoding): Removed.  Use
5440         face_default_registry instead.
5442         * syntax.c (scan_sexps_forward): Set up syntax table before
5443         jumping to initial state label.
5445 1998-08-09  Gerd Moellmann  <gerd@gnu.org>
5447         * dispnew.c (check_matrix_invariants): Handle case of row end pos
5448         >= ZV specially.
5450 1998-08-08  Gerd Moellmann  <gerd@gnu.org>
5452         * xdisp.c (redisplay_window): Case cursor movement---if cursor
5453         ends up in partially visible row, try to scroll.  Case forced
5454         window start---handle windows not tall enough to show a single
5455         line.
5457         * window.h (struct window): Member dy renamed vscroll.
5459         * xterm.c (x_list_fonts): Re-activate suppression of scalable
5460         fonts.
5461         (x_draw_stretch_glyph_string): Set clipping if using GC that
5462         hasn't set it yet.
5464         * xdisp.c (redisplay_window): Case forced window start -
5465         don't let cursor end on partially visible row.  Use desired
5466         matrix to find a suitable PT if it doesn't appear.
5467         (decode_mode_spec): Merged with 20.2.97.
5468         (try_window_reusing_current_matrix): Give up if old or
5469         new display is vscrolled.
5470         (redisplay_window): Reset vscrolling if forced window start,
5471         or if recentering.
5473 1998-08-06  Gerd Moellmann  <gerd@gnu.org>
5475         * xfaces.c (realize_default_face): Use the fontset name instead of
5476         the alias for the family attribute of the default face because we
5477         can't easily determine a good alias from fontset-alias-alist.
5478         (face_fontset): Use Fquery_fontset to find the fontset.
5479         (font_list): Additional pattern parameter.
5480         (try_font_list): Ditto.
5481         (set_lface_from_font_name): Set face family from font foundry
5482         and family.
5483         (font_list): If family contains a hyphen, build pattern differently.
5485 1998-08-05  Gerd Moellmann  <gerd@gnu.org>
5487         * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
5488         changed instead of setting the frame garbaged.
5490         * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
5491         all attribute values.  This is wrong if values are unspecified,
5492         i.e. nil.
5494         * xdisp.c (try_window_id): Give up if window start changed.
5496         * xfaces.c (make_realized_face): Store registry as Lisp object.
5497         (load_face_font_or_fontset): Compute registry of a face
5498         differently.  Make it `eq' to Vx_unibyte_registry_and_encoding if
5499         possible.
5501         * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
5502         differently.
5504         * alloc.c (mark_face_cache): Mark the registry member of faces.
5506         * dispextern.h (struct face): Make registry a Lisp string.
5508 1998-08-04  Gerd Moellmann  <gerd@gnu.org>
5510         * xterm.c (x_get_char_font_and_encoding): Additional parameter
5511         multibyte_p.  Handle unibyte text.
5512         (x_append_glyph): Set the multibyte_p flag of glyphs.
5513         (x_produce_image_glyph): Ditto.
5514         (x_append_stretch_glyph): Ditto.
5515         (x_produce_glyphs): Handle unibyte text like ASCII.
5517         * xdisp.c (push_it): Save the multibyte flag of an iterator on the
5518         stack.
5519         (pop_it): Restore it.
5520         (face_before_or_after_it_pos): Handle the case that the string or
5521         buffer is unibyte.
5522         (get_overlay_strings): Set the multibyte flag of the iterator if
5523         the new overlay string is multibyte.
5524         (get_glyph_property): Likewise.
5525         (get_next_display_element): Don't check for charset changes in
5526         unibyte text.
5527         (append_space): Compute face differently for unibyte text.
5528         (extend_face_to_end_of_line): Don't return quickly if face has
5529         stipple.
5531         * xfaces.c (load_face_font_or_fontset): Store registry and
5532         encoding of the font in the registry member of the face.
5533         (make_realized_face): Additional parameter `registry'.
5534         (free_realized_face): Free the registry of a realized face.
5535         (face_suitable_for_charset_p): Function form of the macro
5536         with the same name in uppercase.
5537         (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
5538         (choose_face_font): New parameter unibyte_registry.
5539         (choose_face_fontset_font): Ditto.
5540         (realize_default_face): Remember the registry and encoding of
5541         the specified frame font in Vx_unibyte_registry_and_encoding.
5542         (face_at_buffer_position): Handle unibyte.
5543         (face_at_string_position): Likewise.
5544         (realize_face): New parameter unibyte_registry.  
5545         (compute_char_face): Handle the unibyte case.
5547         * dispextern.h (struct glyph): Add bit multibyte_p.
5548         (struct face): New member registry holding the registry and
5549         encoding of the X font of the face.
5550         (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
5551         (enum face_id): Add BASIC_FACE_ID_SENTINEL.
5552         (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
5553         text.
5554         (struct iterator_stack_entry): Add multibyte_p.
5556         * xdisp.c (string_pos): Use string_char_to_byte.
5557         (char_charset): Removed.
5559 1998-08-03  Gerd Moellmann  <gerd@gnu.org>
5561         * xterm.c (x_draw_image_glyph_string_foreground): Draw a
5562         rectangle for a block cursor over an image without a mask.
5563         (x_stretch_block_cursor): Added.  Non-zero means don't draw
5564         a block cursor over a stretch as wide as that stretch.
5565         (x_draw_stretch_glyph_string): Use it.
5566         (x_draw_hollow_cursor): Ditto.
5568         * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
5569         (read_minibuf): Add front-sticky text property for prompt.
5571         * xdisp.c (char_charset): Return charset of a character,
5572         depending on whether or not multi-byte characters are enabled.
5574         * xfaces.c (Fset_face_charset_registry): Removed.
5575         (x_charset_registry): Determine registry from charset plist.
5577 1998-08-02  Gerd Moellmann  <gerd@gnu.org>
5579         * xdisp.c (get_next_display_element): Don't check for charset
5580         changes if multi-byte characters are not enabled.
5581         
5582         * xdisp.c (echo_area_display): Use the flush function from the
5583         redisplay interface.  
5584         * keyboard.c (detect_input_pending_run_timers): Likewise.
5586         * dispextern.h (produce_*glyphs_hook): Removed.
5587         * term.c (produce_*glyphs): Ditto.
5588         (cursor_to): Remove pixel position parameters.
5590         * dispnew.c: Remove hooks for window-based redisplay, introduce
5591         a redisplay interface structure.
5593         * xterm.c (x_per_char_metric): Return default char metrics if per
5594         char metric exists but contains a zero width.  Adobe Courier seems
5595         to contain such characters.
5597         * xdisp.c (compute_line_metrics): Compute the width of rows
5598         without stopping at glyphs with zero width.
5600 1998-08-01  Gerd Moellmann  <gerd@gnu.org>
5602         * xdisp.c (display_mode_line): If nothing was displayed at all,
5603         display a space.
5604         (hscroll_window_tree): Don't subtract 1 from target point if equal
5605         to ZV and window is not the selected window.
5607         * dispnew.c (check_matrix_invariants): Remove check for window
5608         start at BEGV or after newline.  This happens in rare cases
5609         intentionally.
5611 1998-07-31  Gerd Moellmann  <gerd@gnu.org>
5613         * xfaces.c (x_charset_registry): Use STRING_BYTES.
5614         (syms_of_xfaces): Add Vface_default_registry.
5615         (x_charset_registry): Use it.
5617         * xdisp.c (run_window_scroll_functions): Run window scroll functions.
5618         (redisplay_window): Use it.
5620         * dispnew.c (update_text_area): Handle lbearing of deleted text
5621         by backing up one character.
5623 1998-07-30  Gerd Moellmann  <gerd@gnu.org>
5625         * dispnew.c (adjust_glyph_matrix): Use a different check to 
5626         decide to do nothing.
5628         * xfaces.c (face_at_string_position): Additional parameter
5629         mode_line_p.  If non-zero, merge with the mode line face
5630         instead of the default face.
5631         * dispextern.h (struct it): Add mode_line_p.
5632         * xdisp.c (init_iterator): Set it.
5633         (compute_face_in_string): Use it.
5634         (face_before_or_after_it_pos): Handle strings.
5635         (get_next_display_element): Don't look for relief end in C strings.
5636         (next_element_from_string): Deliver string position instead of
5637         buffer position.
5639         * xterm.c (x_flush): Flush X output buffer.
5640         (XTflash): Use it.
5642         * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
5643         Allow strings as face names.
5645         * xfns.c (forall_images_in_image_cache): Check that frame is
5646         alive.
5648         * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
5649         it's also called from x_destroy_window.  Since this function is
5650         called from X, freeing stuff allocated with xmalloc is dangerous
5651         here, anyway.
5653         * xfaces.c (free_realized_faces): Don't clear current matrices
5654         of a frame being destroyed.
5656         * frame.c (make_frame): Call set_window_buffer instead of 
5657         Fset_window_buffer.
5659         * window.c (set_window_buffer): Extracted from Fset_window_buffer,
5660         with an additional argument specifying whether or not hooks may
5661         be called.
5662         (Fset_window_buffer): Call it.
5664         * dispnew.c (clear_desired_matrices): Check that frame has
5665         a valid root window before clearing matrices in the window tree.
5666         (clear_current_matrices): Ditto.
5667         (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
5668         vchild are valid windows if not nil.
5670         * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
5671         for :inverse-video.
5672         (Finternal_set_lisp_face_attribute): Ditto.
5673         (Finternal_set_lisp_face_attribute_from_resource): Ditto.
5674         (Finternal_get_lisp_face_attribute): Ditto.
5675         (Finternal_lisp_face_attribute_values): Ditto.
5676         (syms_of_xfaces): Define the symbol `:reverse-video'.
5678         * xdisp.c (get_glyph_property): Renamed from
5679         fill_iterator_from_glyph_property.
5680         (next_element_from_buffer): Handle case that no `glyph' property
5681         was found correctly.
5682         (display_line): Extend face to end of line only if we have faces.
5684 1998-07-29  Gerd Moellmann  <gerd@gnu.org>
5686         * dispnew.c (Fshow_cursor): Renamed from blink_cursor.  Take
5687         additional window argument.
5689         * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
5690         set_iterator_to_previous_visible_line_start.
5691         (reseat_at_next_visible_line_start): Likewise.
5692         (compute_stop_pos): Renamed from set_iterator_stop_pos.
5693         (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
5694         (compute_face_in_buffer): Renamed from
5695         compute_face_at_iterator_position.
5696         (compute_face_in_string): Renamed from
5697         compute_face_at_iterator_string_position.
5698         (get_space_width): Renamed from get_iterator_space_width.
5699         (next_overlay_string): Renamed from
5700         set_iterator_to_next_overlay_string.
5701         (get_overlay_strings): Renamed from
5702         get_overlay_strings_at_iterator_position.
5703         (restore_overlay_strings): Renamed from
5704         setup_overlay_strings_from_glyph_pos.
5705         (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
5706         (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
5707         (init_to_row_start): Renamed from init_iterator_to_row_start.
5708         (init_to_row_end): Formerly init_iterator_to_next_row_start.
5710         * xterm.c: Merge with 20.2.97.
5711         (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
5713         * dispextern.h (struct glyph): Replace text_pos position with
5714         simple charpos.
5716         * xdisp.c (this_line_start_pos): Use struct text_pos.
5717         (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
5718         (enum move_it_result): Renamed from move_iterator_result.
5719         (string_pos_nchars_ahead): Compute text_pos in a string from a
5720         known text_pos plus a character delta.
5721         (string_pos): Compute text_pos in string from charpos.
5722         (c_string_pos): Likewise for a C string.
5723         (number_of_chars): Return number of characters in a possibly
5724         multi-byte C string.
5725         (check_it): Renamed from check_iterator.  Check that charpos and
5726         bytepos are in sync.
5727         (push_it): Renamed from save_iterator_settings.
5728         (pop_it): Renamed from restore_iterator_settings.
5729         (move_it_.*): Renamed from move_iterator_.*.
5730         (charset_at_position): Take charpos/bytepos into account.
5731         (back_to_previous_line_start): Set iterator to previous line start.
5732         (forward_to_next_line_start): Set iterator to next line start.
5733         (back_to_previous_visible_line_start): Renamed from 
5734         move_iterator_previous_visible_line_start.
5735         (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
5736         (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
5737         Handle charpos/bytepos.
5738         (compute_face_at_iterator_position): Handle charpos/bytepos.
5739         (compute_face_at_iterator_string_position): Likewise.
5740         (get_iterator_space_width): Likewise.
5741         (load_overlay_strings): Likewise.
5742         (get_overlay_strings_at_iterator_position): Likewise.
5743         (reseat_iterator): Take a text_pos position argument.
5744         (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
5745         bytepos.
5746         (init_iterator): Take additional bytepos parameter.
5747         (reseat_iterator_to_string): Handle charpos/bytepos.
5748         (start_display): Take a text_pos parameter.  Handle charpos/bytepos.
5749         (next_element_from_string): Handle charpos/bytepos.
5750         (next_element_from_c_string): Likewise.
5751         (fill_iterator_from_glyph_property): Likewise.
5752         (next_element_from_buffer): Likewise.
5753         (set_iterator_to_next): Increment charpos and bytepos of an iterator.
5754         (move_iterator_in_display_line_to): Handle charpos/bytepos.
5755         (move_it_to): Likewise.
5756         (move_it_vertically_backward): Likewise.
5757         (move_it_vertically): Likewise.
5758         (move_it_by_lines): Likewise.
5759         (hscroll_window_tree): Likewise.
5760         (redisplay_internal): Likewise.
5761         (set_cursor_from_row): Likewise.
5762         (redisplay_window): Likewise.
5763         (try_window): Take a text_pos parameter.  Handle charpos/bytepos.
5764         (try_window_reusing_current_matrix): Handle charpos/bytepos.
5765         (get_first_unchanged_at_end_row): Compute and return delta_bytes.
5766         (try_window_id): Handle charpos/bytepos.
5767         (Ftrace_redisplay_toggle): Return Qnil.
5768         (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
5769         (insert_left_trunc_glyphs): Likewise.
5771         * dispnew.c: `Merge' with 20.2.97 (it's really too different to
5772         do a real merge).
5773         (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
5774         (increment_glyph_row_buffer_positions): Ditto.
5775         (copy_glyph_row_contents): Ditto.
5776         (check_matrix_invariants): Add additional checks for charpos/
5777         bytepos consistency.
5778         (direct_output_for_insert): Changed for charpos/bytepos.
5779         (buffer_posn_from_coords): Likewise.  Put code dealing with 
5780         `direction-reversed' in #if 0.
5782         * xterm.h: Merge with 20.2.97.
5783         
5784         * frame.h: Merge with 20.2.97.
5786         * window.h: Merge with 20.2.97.  Add window_end_bytepos.
5788         * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
5789         start.
5790         (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
5791         (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
5792         (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
5793         (struct it): Various members renamed from .*pos to .*charpos.
5794         (IT_CHARPOS): Access current buffer character position of an
5795         iterator.
5796         (IT_BYTEPOS): Access current buffer byte position of an iterator.
5797         (IT_STRING_CHARPOS): Access current string character position of
5798         an iterator.
5799         (IT_STRING_BYTEPOS): Access current string byte position of
5800         an iterator.
5801         (globally): Add function prototypes from 20.2.97.
5803         * everywhere: Use P_ instead of PROTO for function prototypes
5804         because everyone else seems to use P_.
5806         * dispextern.h (struct text_pos): Structure describing a charpos/
5807         bytepos position in text.
5808         (BYTEPOS): Access the byte position part of a text_pos.
5809         (CHARPOS): Likewise for the character position.
5810         (SET_TEXT_POS): Set a text_pos from a character and byte position.
5811         (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
5812         (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
5813         (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
5814         (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
5815         (struct display_pos): Renamed from glyph_pos. Use struct text_pos
5816         for buffer and string positions.
5817         (struct glyph): Use text_pos.
5818         (struct it): Renamed from display_iterator.  Use text_pos.
5820 1998-07-23  Gerd Moellmann  <gerd@gnu.org>
5822         * xfns.c (x_kill_gs_process): Get image colors from XImage of a
5823         pixmap.
5825 1998-07-21  Gerd Moellmann  <gerd@gnu.org>
5827         * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
5828         * xterm.c (x_draw_row_bitmaps): Use it.
5829         * dispnew.c (row_equal_p): Ditto.
5830         (update_window_line): Ditto.
5832         * xfns.c (prepare_image_for_display): Don't set loading_failed_p
5833         flag of images.
5835         * dispextern.h (struct image): Removed member loading_failed_p.
5836         It's probably better to have the chance to try to load an image
5837         again.
5839 1998-07-20  Gerd Moellmann  <gerd@gnu.org>
5841         * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
5842         at ZV if `indicate-zv-lines' is non-nil.
5843         (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
5845         * dispnew.c (row_equal_p): Compare displays_text_p and
5846         ends_at_zv_p flags of rows.
5847         (update_window_line): Ditto.
5849         * buffer.h (struct buffer): New member indicate_zv_lines.
5851         * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
5852         (init_buffer_once): New variable `default-indicate-zv-lines'.
5853         (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
5855         * xdisp.c (redisplay_window): Don't try moving the cursor
5856         if current glyph row w->last_cursor.vpos isn't enabled.
5858         * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
5860         * window.c (Fset_window_vscroll): Allow only negative scroll
5861         values.  Others don't seem to make sense, and this way it's easy
5862         to restore a vscroll of zero.
5864         * xterm.c (x_inverted_image_mask): Check that pixmap could be
5865         allocated.
5866         (x_draw_image_glyph_string_background): Don't clip if pixmap
5867         could not be created.
5869         * xfns.c (xbm_load_image_from_file): Check that pixmap could
5870         be created.
5871         (xbm_load): Ditto.
5872         (gs_load): Ditto.
5874         * xterm.c (x_get_glyph_overhangs): Take image and stretch
5875         glyphs into account.
5877         * xfaces.c (realize_default_face): Don't set font family of
5878         the default face from the fontset alias name for `fontset-startup'.
5880         * xfns.c (gs_load): Pass frame's pixel foreground and background
5881         color to the Lisp loader.
5883 1998-07-19  Gerd Moellmann  <gerd@gnu.org>
5885         * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
5886         libtiff34.
5888         * configure.in (--with-tiff, HAVE_TIFF): Added.
5890         * config.in (HAVE_TIFF): Added.
5892         * Makefile.in (LIBTIFF): Added.
5894         * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
5896         * Makefile.in (LIBJPEG): Added.
5898         * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
5899         RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
5900         jpeglib.h.
5902         * configure.in (HAVE_JPEG, --with-jpeg): Added.  On systems 
5903         where the library is installed in /usr/local/lib, e.g. FreeBSD,
5904         configure must be run with `--x-includes=/usr/X11R6/include:
5905         /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
5907 1998-07-18  Gerd Moellmann  <gerd@gnu.org>
5909         * config.in (HAVE_JPEG): Added.
5911         * xfns.c (ct_init): Initialize color table used to map RGB colors
5912         from images to X pixel colors.
5913         (ct_free): Free color table.
5914         (ct_lookup): Look an RGB color up.
5915         (ct_allocated_colors): Get vector of allocated colors.
5916         (pbm_image_p): Test if image specification is a valid PPM 
5917         image specification.
5918         (pbm_scan_number): Scan a decimal ASCII number from a file.
5919         (pbm_load): Load a PPM image.
5921         * window.c (Fset_window_vscroll): Adjust glyph matrix if
5922         necessary.  Take canonical character units as parameter.
5923         (Fwindow_vscroll): Return canonical character units.
5925         * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
5926         w->dy to display height for which glyph rows must be allocated.
5928 1998-07-17  Gerd Moellmann  <gerd@gnu.org>
5930         * xfaces.c (face_at_string_position): Merge in region face
5931         so that it won't overwrite the font in the region.
5932         (face_at_buffer_position): Ditto.
5933         (realize_basic_faces): Don't realize region face.
5935         * dispextern.h (enum face_id): REGION_FACE_ID removed.
5937         * xterm.c (x_set_glyph_string_background_width): Don't let
5938         cursor face extend to end of line.
5940         * xdisp.c (append_space): If adding space of default face,
5941         make sure glyph ist produced with right face.
5943         * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
5944         background color of a glyph string.
5945         (x_draw_glyph_string_background): Call it.
5946         (x_draw_glyph_string_bg_rect): Ditto.
5947         (x_draw_stretch_glyph_string): Ditto.
5949 1998-07-15  Gerd Moellmann  <gerd@gnu.org>
5951         * xdisp.c (init_iterator): Initialize it->current_y to the
5952         window's vscroll w->dy.
5954         * window.c (Fwindow_vscroll): Return number of pixels window
5955         is vscrolled smoothly.
5956         (Fset_window_vscroll): Set the number.
5958         * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
5959         to_pos in truncated part of a line.
5961 1998-07-14  Gerd Moellmann  <gerd@gnu.org>
5963         * xdisp.c (move_iterator_in_display_line_to): If very first glyph
5964         doesn't fit on the line, truncate it, despite truncate_lines nil.
5965         (display_line): Ditto.
5967         * xfns.c: Experimental support for Ghostscript images.
5969         * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
5970         (XTread_socket): React on events from Ghostscript.
5971         (expose_frame): If width or height are zero, redraw entire frame.
5972         (XTread_socket): Call expose_frame after receiving event from
5973         Ghostscript.
5975         * xterm.h (struct x_display_info): Add atoms DONE and PAGE
5976         for Ghostscript support.
5978         * xdisp.c (redisplay_internal): Return quickly if called
5979         recursively.
5981         * alloc.c (NSTATICS): Increased to 1024.
5983 1998-07-08  Gerd Moellmann  <gerd@gnu.org>
5985         * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
5986         iterator's glyph row.
5987         (x_produce_stretch_glyph): Call it.
5988         (x_produce_glyphs): Handle `space-width' property; call
5989         x_append_stretch_glyph.
5991         * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
5992         property.
5993         (get_iterator_space_width): Determine value of `space-width'
5994         property at iterator's position.
5995         (reseat_iterator): Call it.
5996         (next_element_from_string): Ditto.
5997         (next_element_from_buffer): Ditto.
5998         (init_iterator): Initialize space_width of iterator.
5999         (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
6000         moved, but cursor blinks.
6001         (redisplay_internal): Set w->last_cursor_off_p after update.
6003         * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
6004         (struct display_iterator): Add new member space_width.
6006         * window.h (struct window): Add last_cursor_off_p.
6008 1998-07-07  Gerd Moellmann  <gerd@gnu.org>
6010         * Saved.
6012         * window.c (Fpos_visible_in_window_p): Case window not up to
6013         date---return nil if iterator hasn't reached position.
6015 1998-07-06  Gerd Moellmann  <gerd@gnu.org>
6017         * xdisp.c (text_outside_line_unchanged_p): Fix case that
6018         overlays have changed.
6019         (redisplay_window): Case cursor movement.  Don't try it if
6020         last_cursor.vpos is out of range.
6022         * xdisp.c (set_cursor_from_row): Set this_line_.* variables.  This
6023         way, the display optimization for the line containing the cursor
6024         is used more frequently, esp. when we have a blinking cursor.
6025         (display_line): Don't set this_line_.* variables.
6027         * xterm.c (x_redraw_cursor): Removed.
6028         (x_display_and_set_cursor): Set cursor type depending on
6029         cursor_off_p flag of window.
6031         * dispnew.c (redraw_cursor_hook): Removed.
6032         (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
6033         member of the selected window.
6035         * xfaces.c (Fface_font): Added for compatibility with 20.2.
6037         * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
6038         Return glyph area under x/y.
6039         (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
6041         * keyboard.c (detect_input_pending_run_timers): Call gobble_input
6042         after redisplaying.
6044 1998-07-05  Gerd Moellmann  <gerd@gnu.org>
6046         * xdisp.c (text_outside_line_unchanged_p): Test if changes
6047         are all outside of a line of text.
6048         (redisplay_internal): Use it.
6050 1998-06-30  Gerd Moellmann  <gerd@gnu.org>
6052         * xdisp.c (next_element_from_buffer): After skipping over
6053         invisible text, look for the `glyph' property.
6054         (set_iterator_stop_pos): Ignore check positions in front
6055         of an iterator's current position.
6057         * xterm.c (show_mouse_face): Don't act on rows that don't exist
6058         anymore or which are marked as not having valid contents.
6060         * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
6061         realized faces if new attribute value is equal to old value.
6063 1998-06-29  Gerd Moellmann  <gerd@gnu.org>
6065         * xfaces.c (Finternal_make_lisp_face): Increment
6066         lface_id_to_name_size when lface_id_to_name is reallocated.
6068 1998-06-27  Gerd Moellmann  <gerd@gnu.org>
6070         * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
6071         as minimum of endpos and overlay_pos.
6072         (load_overlay_strings): Set next_overlay_pos of iterator to
6073         -1 if we don't have to check for more overlay strings.
6075 1998-05-09  Gerd Moellmann  <gerd@gnu.org>
6077         * xdisp.c (set_iterator_to_next_visible_line_start): Don't
6078         do anything if iterator is at ZV because scan_buffer doesn't
6079         work otherwise.
6081         * xterm.c (x_encode_char): Inline it.
6082         (x_get_char_font_and_encoding): Simplified.
6083         (x_per_char_metric): Inline it.
6085         * xterm.c (x_draw_glyph_string_relief): Use clipping.
6087         * xdisp.c (get_next_display_element): Check for end of relief
6088         face moved here from next_element_from_buffer.
6090         * xterm.c (x_produce_image_glyph): Add relief thickness.
6091         (x_produce_stretch_glyph): Ditto.
6093 1998-05-08  Gerd Moellmann  <gerd@gnu.org>
6095         * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
6096         property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
6098         * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
6099         from a glyph property.
6100         (x_produce_glyphs): Use it.
6102         * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
6104         * xterm.c (x_produce_image_glyph): Add to current_x only if 
6105         in text area.
6106         (x_produce_glyphs): Ditto.
6108         * xdisp.c (display_line): Compute row height from glyphs in 
6109         marginal areas.
6111         * xterm.c (x_draw_image_glyph_string_background): Draw 
6112         background of an image glyph string.
6113         (x_draw_glyph_string_bg_rect): Draw a rectangular region of 
6114         the background of a glyph string.
6115         (x_draw_image_glyph_string_foreground): Draw the foreground of
6116         an image glyph string.
6117         (x_inverted_image_mask): Return the inverted mask of an image.
6119         * xfns.c (x_draw_image): Removed.
6121         * dispextern.h (struct image_type): Remove drawing function.
6123         * xfaces.c (load_face_colors): Swap colors if face is inverse.
6125         * xdisp.c (get_next_display_element): In marginal areas, translate
6126         newlines, tabs, etc. like normal control characters.
6128         * xfaces.c (Fface_color_supported_p): Transpose parameters frame
6129         and color.
6130         (free_realized_faces): Set frame garbaged.
6132         * xfaces.c (syms_of_xfaces): Add defsubr for
6133         internal-lisp-face-attribute-values.
6135 1998-05-07  Gerd Moellmann  <gerd@gnu.org>
6137         * xterm.c (x_produce_image_glyph): Don't add glyph if area is
6138         full.
6139         (x_produce_image_glyph): Set IT->nglyphs to 1.
6140         (x_draw_image_glyph_string): Use inverted mask to draw background.
6142         * dispextern.h (struct image_type): Additional clipping rect
6143         parameters for drawing functions.
6145         * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for 
6146         a glyph string.
6147         (x_draw_image_glyph_string): Use it and pass the rect to the
6148         image drawing function.
6150         * xdisp.c (fill_iterator_from_glyph_property): Use position of
6151         first character with `glyph' property as image position.  Set
6152         iterator back to that position as long as the image hasn't been
6153         consumed with set_iterator_to_next.
6154         (set_cursor_from_row): Accept when glyph with given position is
6155         not found in the row.  Set cursor x to end of line in that case,
6156         so that we can hscroll.
6157         (redisplay_internal): Correct computation of delta by which
6158         positions have changed in redisplay optimization for cursor
6159         row of selected window.
6161         * xdisp.c (display_line): Remove start_pos.
6162         (display_line): Fix bug preventing display optimization for 
6163         cursor line of selected window.
6164         (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
6165         instead.
6167         * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
6168         (update_text_area): Take glyph pixel width into account
6169         when trying to find a resync point.
6170         (row_equal_p): Compare glyphs in all areas.
6172 1998-05-06  Gerd Moellmann  <gerd@gnu.org>
6174         * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
6176         * dispextern.h (struct glyph_row): Use unsigned hash value.
6178         * xdisp.c (display_line): Simplified and made faster by setting
6179         the cursor with set_cursor_from_row.
6180         (set_cursor_from_row): Handle rows of desired matrix.
6182 1998-05-05  Gerd Moellmann  <gerd@gnu.org>
6184         * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
6185         with type != CHAR_GLYPH.
6186         (fill_iterator_from_glyph_property): Return void.  Set
6187         method to next_element_from_image.
6188         (next_element_from_image): Dummy function for delivering a
6189         single image id.
6190         (set_iterator_to_next): Add method next_element_from_image.
6191         (redisplay_window): When recentering, and cursor vpos is -1
6192         after display, assume middle of window is in first line displayed
6193         in window, and display again.
6194         (fill_iterator_from_glyph_property): Assign image glyph 
6195         the position of the first character having the glyph property.
6197         * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
6198         * xfns.c (x_draw_image): Use it.
6199         * xterm.c (x_produce_image_glyph): Use it.
6201         * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
6203         * Makefile.in: Extraneous #define of LIBXPM removed.
6205         * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
6206         (x_fill_stretch_glyph_string): Fill a glyph string from a 
6207         stretch glyph.
6208         (x_compute_glyph_string_overhangs): Compute overhangs only
6209         for text glyph strings.
6210         (x_draw_stretch_glyph_string): Draw a stretch glyph string.
6211         (x_draw_glyph_string): Call it.
6213         * dispextern.h (glyph_type): Add STRETCH_GLYPH.
6214         (struct glyph): Add sub-structure for stretchable glyphs.
6215         (GLYPH_EQUAL_P): Compare glyph type and u.val.
6217         * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
6218         #ifdef HAVE_FACES.
6220         * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
6222         * xdisp.c (fill_iterator_from_glyph_property): Renamed from
6223         setup_iterator_from_glyph_property.  Don't do it for terminal
6224         frames.
6226         * xterm.c (x_produce_image_glyph): Produce glyph for image
6227         that can't be loaded.
6229         * xfns.c (lookup_image): If image can't be loaded, set its
6230         width and height so that we can draw a rectangle.
6231         (x_draw_image): Draw a rectangle for images that don't have
6232         a pixmap.
6233         (make_image): Set hash value.
6234         (image_spec_equal_p): Use image_spec_value.
6236         * xterm.c (expose_frame): Don't try to redraw if basic faces
6237         haven't benn realized yet.
6238         (x_draw_image_glyph_string): Fill background only if image 
6239         is not as tall as row.
6241 1998-05-04  Gerd Moellmann  <gerd@gnu.org>
6243         * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
6244         (LIBX)[HAVE_X11]: Add LIBXPM.
6246         * xfns.c (xpm_image_p): Implementation of image type functions
6247         for XPM.
6248         (xpm_load): Ditto.
6250         * dispextern.h (struct image): Add mask pixmap for XPM.
6252         * xfns.c (x_draw_image): Handle images with masks.
6254         * configure.in: --with-xpm added.  Code detecting -lXpm added.
6256         * config.in: Add HAVE_XPM.
6258         * xfns.c (xbm_draw): Removed.
6259         (x_draw_image): Default implementation for drawing images.
6260         (xbm_keyword_index): Remove XBM_DEPTH.
6261         (xbm_format): Remove `:depth'.
6262         (xbm_image_spec_from_file): Removed to reduce consing.
6263         (xbm_load_image_from_file): Added for the same reason. 
6265         * xterm.c (x_fill_image_glyph_string): Don't set ybase of 
6266         glyph string.
6267         (x_draw_image_glyph_string): Pass ybase to image draw function.
6269         * xfns.c (make_image): Set default baseline.
6271         * xterm.c (x_produce_image_glyph): Compute ascent of image
6272         from its height and baseline percentage.
6274         * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
6275         (xbm_format): Add description for `:baseline'.
6276         (xbm_image_spec_from_file): Add keywords from original spec to
6277         result.
6278         (xbm_load): Set baseline of image.
6279         (xbm_image_p): Check range for baseline.
6281         * dispextern.h (struct image): Add member baseline.
6283         * xdisp.c (dump_glyph_matrix): Handle image glyphs.
6285         * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
6287         * xdisp.c (get_next_display_element): Do character translations
6288         only if delivering characters.
6290 1998-05-03  Gerd Moellmann  <gerd@gnu.org>
6292         * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for 
6293         DISP_CHARACTER.
6295         * xterm.c (x_produce_image_glyph): Poduce image glyphs.
6296         (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
6298 1998-05-02  Gerd Moellmann  <gerd@gnu.org>
6300         * xfns.c (prepare_image_for_display): Set image timestamp.
6301         (clear_image_cache): Clear images if image's timestamp +
6302         Vimage_eviction_seconds is > now.
6303         (syms_of_xfns): New variables image-eviction-seconds, and
6304         image-types.
6305         (add_image_format): Add to image-types.
6306         (xbm_load): Support new image spec format.
6307         (x_alloc_image_color): Allocate a color for an image.
6309         * dispextern.h (struct image): Add timestamp.
6311         * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
6312         vectors of bool-vectors.
6313         (xbm_lisp_object_from_file): Build new format image spec.
6315 1998-05-01  Gerd Moellmann  <gerd@gnu.org>
6317         * xfaces.c (init_frame_faces): Initialize image cache.
6318         (free_frame_faces): Free it.
6320         * xterm.c (x_delete_display): Don't free image cache.
6322         * emacs.c (main): Call init_xfns.
6324 1998-04-30  Gerd Moellmann  <gerd@gnu.org>
6326         * alloc.c (mark_object): Mark objects in image cache.
6328         * xfns.c (x_set_internal_border_width): Correct call to 
6329         widget_store_internal_border_width.
6331         * widget.c (widget_store_internal_border): Return void.
6333         * xfns.c (x_destroy_bitmap): Use xfree instead of free.  Return
6334         void.
6335         (init_x_parm_symbols): Return void.
6336         (x_report_frame_params): Ditto.
6337         (x_set_border_pixel): Ditto.
6338         (syms_of_xfns): Ditto.
6339         (x_destroy_all_bitmaps): Use xfree instead of free.
6341         * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
6343         * xterm.c (x_term_init): Initialize image_cache of display info.
6344         (x_delete_display): Free image cache.
6346         * xterm.h (struct x_display_info): Add image_cache.
6348         * xfns.c (make_image_cache): Allocate a new image cache.
6349         (free_image_cache): Free an image cache.
6350         (make_image): Allocate an image.
6351         (free_image): Free an image.
6353         * dispextern.h (struct image): Structure describing an image.
6354         (struct image_cache): Structure describing an image cache.
6356 1998-04-29  Gerd Moellmann  <gerd@gnu.org>
6358         * xdisp.c (check_iterator_glyph_property): Return int.  Value is
6359         non-zero if iterator is filled with something to return.
6360         (next_element_from_buffer): Immediately return if
6361         setup_iterator_from_glyph_prop has filled iterator with pixmap.
6362         (next_element_from_string): Likewise.
6364         * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
6366         * dispextern.h (struct glyph): Add pixmap_id.
6367         (display_element_type): Add DISP_PIXMAP.
6369         * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
6370         malloc/free.
6372         * xfaces.c (clear_font_table): Free fonts not used by fontsets.
6373         (clear_face_cache): Call it.
6375         * xterm.c (x_query_font): Don't look at empty font table slots.
6376         (x_compute_min_glyph_bounds): Likewise.
6377         (x_term_init): Initialize font_table to null.
6378         (x_load_font): Change allocation of font_info structures so
6379         that it is possible to free fonts.
6381         * xfns.c (Fx_close_connection): Use xfree instead of free. 
6382         Only free fonts from filled font table entries.
6384         * xfaces.c (best_matching_font): Support use of scalable fonts.
6385         (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
6387         * xterm.h (struct x_display_info): Remove screen_dpi, add resx
6388         and resy.
6389         * xterm.c (x_term_init): Compute resx and resy.
6391         * xfaces.c (split_font_name): Don't reject scalable fonts.
6393         * xterm.c (x_list_fonts): Set code exclusing scalable fonts 
6394         in #if 0.
6396         * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
6397         point size cannot be determined.
6399         * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
6400         width over all fonts on a frame.
6401         (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
6402         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
6403         macros.
6405         * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
6406         (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
6407         (x_load_font): Use x_compute_min_char_bounds.
6409         * xterm.h (struct x_display_info): New members smallest_char_width
6410         and smallest_font_height.
6412 1998-04-28  Gerd Moellmann  <gerd@gnu.org>
6414         * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
6415         the same name if GC of face is zero.
6417         * dispextern.h (struct face): Member non_ascii_gc removed.
6419         * xterm.c (x_get_char_font_and_encoding): Return face's font
6420         for characters < 0177 in default face.  Prepare face for 
6421         display before returning it.
6422         (x_produce_glyphs): Use it->charset.
6423         (x_get_char_font_and_encoding): Simplified.
6424         (x_encode_char): Remove parameter `font'.
6426         * xfaces.c (choose_face_font): If registry from charset symbol
6427         doesn't contain a `-', make it a pattern by appending "*-*".
6429         * xdisp.c (check_iterator_glyph_property): Adjust limit for
6430         glyph_check_pos computation to character boundary.
6432 1998-04-27  Gerd Moellmann  <gerd@gnu.org>
6434         * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
6436         * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
6437         ASCII face for a given Lisp face id.
6439         * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
6440         account.
6441         (reseat_iterator): Set glyph_check_pos. Handle case where 
6442         new position is < original position.
6443         (check_iterator_glyph_property): Handle glyph property in strings.
6444         (next_element_from_string): Call above function.
6445         (next_element_from_display_vector): Handle faces in glyphs.
6446         (get_next_display_element): Set face_id of glyphs for
6447         control chars to zero.
6449         * Makefile.in (term.o): Add dependency on dispextern.h.
6451         * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
6452         (display_line): Handle marginal areas.
6453         (move_iterator_in_display_line_to): Likewise.
6455         * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
6457         * xfaces.c (face_at_buffer_position): Don't merge with nil
6458         text property.
6459         (face_at_string_position): Ditto.
6461         * dispextern.h (struct display_iterator): Use a stack of saved
6462         values instead of saving check positions etc. individually.
6464         * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
6465         maybe pop the iterator's stack.
6466         (save_iterator_settings): Push a value on iterator's stack.
6467         (get_overlay_strings_at_iterator_position): Use it.
6468         (restore_iterator_settings): Pop the stack.
6469         (set_iterator_to_next_overlay_string): Use it.
6471         * xfaces.c (try_font_list): Use alternative font families.
6473 1998-04-26  Gerd Moellmann  <gerd@gnu.org>
6475         * xfaces.c (Fset_face_font_sort_order): Set the order in which
6476         font selection matches fonts.
6477         (Fface_font_sort_order): Return the font sort order.
6478         (best_matching_font): Find best matching font based on sort order.
6479         (cmp_font_names): Sort by given sort order.
6481         * dispextern.h (struct display_iterator): New member faces_p.
6482         * xdisp.c (init_iterator): Initialize it->faces_p.
6483         (compute_face_at_iterator_string_position): Use it.
6484         (compute_face_at_iterator_position): Use it.
6485         (init_iterator): Use it.
6486         (display_mode_line): Ditto.
6488         * xdisp.c (get_next_display_element): Put code choosing a face
6489         when the charset changes in #ifdef HAVE_FACES.
6491         * dispextern.h (FACE_FOR_CHARSET): Replacement for function 
6492         lookup_face_for_charset.
6494         * xfaces.c (free_font_names): Renamed from free_split_font_names.
6495         (free_all_realized_faces): Renamed from remove_all_realized_faces.
6497 1998-04-25  Gerd Moellmann  <gerd@gnu.org>
6499         * xfaces.c (best_matching_font): Return the name of the best
6500         matching font in an array of font_name structures.
6501         (choose_face_font): Use it.
6502         (choose_face_fontset_font): Use it.
6503         (find_best_weight_font): If final font found has same weight as
6504         the font we started with, return the original font because it is a
6505         better match for the resolution of the display.
6506         (find_best_slant_font): Likewise.
6507         (merge_face_vector_with_property): Check more invalid attribute
6508         values.
6509         (lface_suitable_for_charset_p): Replaced by a macro with the same
6510         name in upper-case.
6512 1998-04-24  Gerd Moellmann  <gerd@gnu.org>
6514         * dispextern.h (struct face): Member
6515         fontset_chosen_for_realization_p removed.
6517         * xfaces.c (cache_face): If face->fontset >= 0, add face to the
6518         end of the collision list, so that we find more specific faces
6519         first.
6520         (lookup_face_for_charset): Look up a new face if face->fontset >=
6521         0, and charset != CHARSET_COMPOSITION.
6523         * xfaces.c (split_font_name): Return zero if point size of font
6524         couldn't be computed.
6525         (realize_default_face): Use ASCII font of a fontset to determine
6526         font-related attributes of the default face.
6527         (face_fontset): Return fontset id for face family.
6528         (font_list): Additional parameter font_pattern.  If non-nil,
6529         return fonts matching that pattern.
6531 1998-04-23  Gerd Moellmann  <gerd@gnu.org>
6533         * xfaces.c (choose_face_fontset): If new fontset cannot be
6534         constructed, or fontset name cannot be split, return the id of the
6535         standard fontset.
6537         * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
6538         When Emacs starts, it may be called for the initial frame which
6539         isn't an X frame.
6541         * dispextern.h (struct face): New members foreground_defaulted_p,
6542         background_defaulted_p.
6543         (struct face): Members `mask' and `cache' removed.
6545         * xfaces.c (load_color): Set them.
6546         (free_face_colors): Check them.
6547         (xlfd_point_size): Return -1 if resolution or point size of 
6548         font unknown.
6550         * xfaces.c (free_font): Removed.
6551         (load_face_font_or_fontset): Renamed from load_font.
6552         (load_face_font_or_fontset): Use message2 instead of signalling.
6553         (load_color): Likewise.
6554         (load_pixmap): Likewise.
6556         * xterm.h (struct x_display_info): Add screen_dpi.
6557         * xterm.c (x_term_init): Initialize it.
6558         * xfaces.c (xlfd_point_size): Use it.
6559         (split_font_name): Compute numeric XLFD_RESY.
6560         (cmp_font_names): Make fonts with an y-resolution more 
6561         similar to that of the frame appear first in the result.
6563         * xfaces.c (cache_face): If fontset_chosen_for_realization_p
6564         is set for the face to cache, add it to the end of the collision
6565         list.
6566         (try_font_list): If fonts for given family and registry cannot
6567         be found, first try to keep the registry, and choose a different
6568         family.
6569         (choose_face_font): Allow nfonts == 0.
6570         (try_font_list): Give up if no font matches given registry.
6572 1998-04-22  Gerd Moellmann  <gerd@gnu.org>
6574         * xterm.c (x_get_char_font_and_encoding): Get font_info from
6575         font info id of the face.
6577         * xfaces.c (load_font): Set font_info_id.
6578         (realize_face): Ditto.
6580         * dispextern.h (struct face): Change member font_info to
6581         font_info_id.
6583         * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
6584         (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
6586         * xdisp.c (extend_face_to_end_of_line): If IT's current charset
6587         isn't ASCII, get the ASCII face before adding a space.
6588         (append_space): Likewise.
6589         (insert_left_trunc_glyphs): Initialize truncate_it's charset
6590         to -1 so that it will compute the right face for the truncation
6591         glyphs.
6593         * xfaces.c (realize_face): Set
6594         face->fontset_chosen_for_realization_p.
6595         (lookup_face_for_charset): If fontset wasn't specified originally
6596         and new charset != CHARSET_COMPOSITION, get a new face for that
6597         charset.
6599         * dispextern.h (struct face): New member
6600         fontset_chosen_for_realization_p_specified_p.  Set to 1 when
6601         realize_face has chosen a fontset to display composite characters
6602         for a Lisp face not specifying a fontset.
6604         * xdisp.c (extend_face_to_end_of_line): Move tests for default
6605         face and line already filled here.  Don't do anything if current
6606         face hasn't a relief or has a background equal to the frame
6607         background.
6609         * xfaces.c (split_font_name): Additional parameter numeric_p.
6610         Don't compute numeric values if it is non-zero.
6611         (choose_face_fontset): Call split_font_name with numeric_p == 0.
6612         (choose_face_fontset): Print a message if fontset contains a 
6613         font whose name cannot be split into fields.
6615 1998-04-21  Gerd Moellmann  <gerd@gnu.org>
6617         * xfaces.c (try_font_list): Try to load a list of fonts, 
6618         possibly using less restrictive patterns.
6619         (choose_face_font): Use it.
6621         * xterm.c (x_get_char_font_and_encoding): For charset !=
6622         CHARSET_ASCII use font_info of face if face hasn't a fontset set.
6624         * dispextern.h (struct face): New member font_info.
6626         * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
6627         specifying a fontset as well as those not having a fontset.
6628         (free_font): Make it empty.
6629         (realize_face): Use changed load_font.
6631         * xterm.c (x_get_char_font_and_encoding): If face doesn't
6632         fit for charset, get the right one.
6634         * xfaces.c (load_font): Take frame and name parameter, return
6635         font.
6636         (free_font): Likewise.
6637         (split_font_name): Compute numeric values for height, swidth etc.
6638         (cmp_font_names): Use them.
6639         (find_best_width_font): Ditto.
6640         (find_best_height_font): Ditto.
6641         (find_best_weight_font): Ditto.
6642         (find_best_slant_font): Ditto.
6643         (lface_hash): Add weight, slant, swidth and relief to hash value.
6644         (lface_equal_p): Make it faster.
6645         (lface_from_symbol): Use assq_no_quit.
6646         (Fnote_default_face_changed): Removed.
6647         (cmp_font_names): Use strcmp instead of xstricmp.
6648         (face_charset_registries): Removed.
6650 1998-04-20  Gerd Moellmann  <gerd@gnu.org>
6652         * frame.h (CHECK_FRAME): Give this macro a statement form.
6653         (CHECK_LIVE_FRAME): Ditto.
6655         * xfaces.c (find_best_width_font): Find the best matching font
6656         for a given width.
6657         (find_best_height_font): Likewise for height.
6658         (find_best_weight_font): Likewise for weight.
6659         (find_best_slant_font): Likewise for slant.
6660         (choose_face_font): Use them.
6661         (get_lface_attributes): Always return frame-local face attrs.
6662         (Finternal_merge_in_global_face): Merge local face with 
6663         global face attributes.
6665         * xfaces.c (check_lface_attrs, check_lface): Check consistency of
6666         Lisp face attributes.
6668 1998-04-19  Gerd Moellmann  <gerd@gnu.org>
6670         * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
6671         and :italic for compatibility.
6672         (Finternal_set_lisp_face_attribute_from_resource): Handle
6673         :bold and :italic.  Handle boolean resource values for 
6674         :underline and :italic.
6676         * xfns.c (display_x_get_resource): Make it externally visible.
6678         * xfaces.c (lface_from_symbol): Take a frame as parameter.
6679         If that frame is non-null, return the frame-local face.
6680         (Finternal_make_lisp_face): Additional frame argument.
6681         (lface_attributes): Get face attributes from global and frame-local
6682         definitions.
6683         (Finternal_lisp_face_equal_p): Additional frame argument.
6684         (merge_lisp_face_vector_with_property): Ditto.
6685         (Frealize_basic_faces): Removed.
6686         (Finternal_get_lisp_face_attribute): Additional frame argument.
6687         (Finternal_lisp_face_p): Ditto.
6688         (load_color) [MSDOS]: Removed because it isn't clear how
6689         to do this for MS-DOS.
6691         * xfaces.c (lface_from_symbol): Get global face definition
6692         from face-global-alist.
6694         * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
6695         as values for :underline and :inverse-video.
6696         (Finternal_set_lisp_face_attribute): Allow nil values.
6698 1998-04-17  Gerd Moellmann  <gerd@gnu.org>
6700         * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
6702         * xfaces.c (syms_of_xfaces): Add Vall_faces.
6703         (Finternal_make_lisp_face): Add new face to Vall_faces.
6705         * xdisp.c (echo_area_display): Remove code recomputing faces.
6706         (redisplay_internal): Ditto.
6707         (init_iterator): Do it here.
6709         * xfaces.c (choose_face_font): Check that swidth doesn't change
6710         for subusequent attributes.
6711         (xlfd_point_size): Return int.
6713         * xdisp.c (redisplay_internal, echo_area-display): If realized
6714         faces have been cleared, call recompute_basic_faces.
6716         * xfaces.c (recompute_basic_faces): Free realized faces.  Reset
6717         face_attributes_changed_p.
6718         (remove_all_realized_faces): Remove all realized faces on 
6719         all frames.
6720         (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
6722         * xdisp.c (redisplay_internal): If face attributes have been
6723         changed since the last redisplay, recompute basic faces.
6724         (echo_area_display): Ditto.
6726         * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
6728         * xfaces.c (min_char_bounds): If face cache not yet present,
6729         don't try to get font dimensions from faces.
6731         * xterm.c (x_frame_mode_line_height): If face cache not present
6732         set, return default height.
6734         * alloc.c (mark_face_cache): Check for null faces.  Correct
6735         index bug.
6737         * dispextern.h (struct face): Renamed from struct rface.  Member
6738         underline renamed underline_p.  Make it a bit-field.
6740         * xfaces.c (init_frame_faces): Allocate face cache.
6741         (free_frame_faces): Free face cache.
6742         (recompute_basic_faces): Realize basic faces only if face cache is
6743         allocated, i.e. after init_frame_faces has been called.
6745         * frame.c (make_frame): Initialze face cache with null.
6747         * xfaces.c (same_size_fonts): Removed.
6749         * xterm.c (x_set_glyph_string_gc): Add post-condition 
6750         s->gc != 0.
6751         (x_set_mouse_face_gc): Ditto.
6752         (x_set_mode_line_face_gc): Ditto.
6754         * xfaces.c (realize_default_face): Return int.  Value is 
6755         zero if frame params don't contain enough information to 
6756         realize the default face.
6757         (realize_basic_faces): Ditto.
6758         (init_frame_faces): Realize basic faces.
6760         * xfns.c (x_set_font): First store real font name in frame
6761         parameters, then call recompute_basic_faces.
6763         * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
6765 1998-04-16  Gerd Moellmann  <gerd@gnu.org>
6767         * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
6769         * xfns.c (Fx_face_fixed_p): Removed.
6770         (Fx_list_fonts): Moved to xfaces.c.
6772         * xfaces.c (compute_face_at_buffer_pos): Renamed to
6773         face_at_buffer_position.  Parameter charset removed; always
6774         compute face for CHARSET_ASCII.
6775         (face_at_string_position): Renamed from
6776         compute_face_at_string_pos. Parameter charset removed; always
6777         compute for CHARSET_ASCII.
6778         (lookup_face_for_charset): Take frame parameter instead of 
6779         face_cache.
6780         (lookup_face): Ditto.
6781         (compute_char_face): Renamed from compute_glyph_face.
6783         * xdisp.c (init_iterator): Initialize charset member.
6784         (reseat_iterator_to_string): Ditto.
6785         (get_charset_at_buffer_position): Determine charset at
6786         buffer position in current_buffer.
6787         (reseat_iterator): Call above function.
6788         (compute_face_at_iterator_position): Call
6789         compute_face_at_buffer_pos.
6790         (compute_face_at_iterator_string_position): Call
6791         compute_face_at_string_pos.
6792         (get_face_from_id): Removed.
6793         (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
6794         Call get_charset_at_buffer_position.
6795         (reseat_iterator): Determine face if charset at pos differs
6796         from iterator's charset.
6797         (reseat_iterator_to_glyph_pos): Removed.
6799         * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
6800         Determine charset from buffer position.
6801         (compute_string_char_face): Renamed to compute_face_at_string_pos.
6802         (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
6804         * dispextern.h (struct display_iterator): Add member charset.
6806 1998-04-15  Gerd Moellmann  <gerd@gnu.org>
6808         * xfaces.c (compute_char_face): Removed.
6810         * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
6811         with new parameter list.
6813         * xfaces.c (region_face): Removed.
6814         (allocate_face): Removed.
6815         (copy_face): Ditto.
6816         (face_eql): Removed.
6817         (intern_face): Removed.
6818         (clear_face_cache): Removed.
6819         (load_font): Ditto.
6820         (unload_font): Ditto.
6821         (load_color): Ditto.
6822         (unload_color): Ditto.
6823         (new_computed_face): Ditto.
6824         (intern_computed_face): Ditto.
6825         (ensure_face_ready): Ditto.
6826         (merge_faces): Ditto.
6827         (compute_base_face): Ditto.
6828         (merge_face_list): Ditto.
6829         (Fmake_face_internal): Removed.
6830         (Fset_face_attribute_internal): Ditto.
6831         (face_name_id_number): Removed.
6832         (Fframe_face_alist): Ditto.
6833         (Fset_frame_face_alist): Ditto.
6834         (Finternal_next_face_id): Ditto.
6836         * xterm.h (struct x_output): Remove computed_faces, and
6837         param_faces.  Remove macros accessing them.
6839         * xfaces.c: Entirely new face implementation added.
6841 1998-04-11  Gerd Moellmann  <gerd@gnu.org>
6843         * dispextern.h (struct glyph_pos): Member `bufpos' renamed
6844         `charpos'.
6846 1998-04-10  Gerd Moellmann  <gerd@gnu.org>
6848         * xterm.c (x_scroll_bar_move): Clear only regions not covered by
6849         scroll bar window to reduce flickering.  Clear entire height.
6851         * xdisp.c (move_iterator_vertically_backward): Set iterator's
6852         current_x and hpos to zero after moving to previous line
6853         start.
6855 1998-04-03  Gerd Moellmann  <gerd@gnu.org>
6857         * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
6859         * xfaces.c (xlfd_point_size): Compute relative point size of
6860         fonts from font and frame resolution.
6861         (sort_fonts): New function to sort fonts, temporarily setting
6862         font_frame to the frame in effect.
6863         (xlfd_point_size): Take additional frame parameter to be able
6864         to get at the display's resolution.
6866         * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
6867         BLACK_PIX_DEFAULT.
6868         (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
6869         screen of display.
6871 1998-03-31  Gerd Moellmann  <gerd@gnu.org>
6873         * xfaces.c (choose_face_fontset): Instantiate fontsets.
6875         * fontset.h: Add external declarations for Vfontset_alias_alist
6876         and Vglobal_fontset_alist.
6878         * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
6879         (realize_default_face): If frame parameters contain an artificial
6880         font name naming a fontset, set the family of the default face to
6881         the fontset name given by the registry.
6883         * Makefile.in (alloc.o): Add dependency to dispextern.h.
6885 1998-03-22  Gerd Moellmann  <gerd@gnu.org>
6887         * alloc.c (mark_object): Add function prototype.  Add cast to
6888         Lisp_Object pointer in call to mark_object for symbol names
6889         because this otherwise gives a warning from gcc 2.8.1.
6890         (mark_face_cache): Mark Lisp objects in realized faces.
6892 1998-03-19  Gerd Moellmann  <gerd@gnu.org>
6894         * frame.h (struct frame): Add member face_cache.
6896         * alloc.c (mark_object): Mark face cache.
6897         (mark_face_cache): Mark Lisp faces in face cache of frame.
6899         * frame.c (make_frame): Initialize face_cache.
6900         (Fdelete_frame): Free it.
6902 1998-03-18  Gerd Moellmann  <gerd@gnu.org>
6904         * xfaces.c: Very first skeleton of functions for face realization,
6905         face merging, face cache etc.
6907         * dispextern.h (struct rface): Realized faces.  Will replace
6908         struct face when tested.
6909         (struct face_cache): Realized face caches.
6911         * xdisp.c (init_iterator): Initialize area member of display
6912         iterator.
6914 1998-03-17  Gerd Moellmann  <gerd@gnu.org>
6916         * xterm.c (x_append_glyph): Use it->area to store glyphs.
6918         * dispextern.h (struct display_iterator): New member area.
6920         * xterm.c (note_overwritten_text_cursor): Note when the text
6921         cursor of a window is overwritten.
6923         * xdisp.c (set_cursor_from_row): If PT is not found in the
6924         row, display the cursor at the start of the row.
6926         * dispnew.c (direct_output_forward_char): Call
6927         set_cursor_from_row.
6929         * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
6930         position is not in an overlay string, set iterator's position and
6931         method explicitly so.
6932         (set_cursor_from_row): Correct cursor position calculation. 
6933         Make it externally visible.
6934         (redisplay_window): Call set_cursor_from_row so that there is only
6935         one place where the cursor position is calculated from a current
6936         row.
6938         * dispextern.h (struct display_iterator): New member
6939         overlay_strings_at_end_processed_p.
6941         * xdisp.c (check_iterator): Perform sanity checks on
6942         display_iterators.
6943         (next_element_from_buffer): Check for overlay strings at ZV.
6945 1998-03-16  Gerd Moellmann  <gerd@gnu.org>
6947         * buffer.c (init_buffer_once): Add left_margin_width and
6948         right_margin_width to buffer_local_flags.
6950         * dispnew.c (margin_glyphs_to_reserve): Function computing
6951         number of glyphs to reserve for a marginal area.
6952         (adjust_glyph_matrix): Call it.
6953         (adjust_frame_glyphs_for_frame_redisplay): Return if frame
6954         is not alive.
6956         * window.c (Fset_window_margins): Allow floats.
6958         * buffer.c (syms_of_buffer): Add buffer-local variables
6959         left-margin-width and right-margin-width.  Add defaults
6960         default-left-margin-width and default-right-margin-width.
6962         * buffer.h (struct buffer): New members left_margin_width
6963         and right_margin_width.
6965         * window.c (Fset_window_margins): Make window the last and
6966         optional argument.
6968         * xterm.c (x_draw_glyphs): Compute x-positions for rows with
6969         flag no_marginal_areas_p differently.
6970         (x_clear_end_of_line): Ditto.
6971         (x_draw_glyph_string_relief): Compute width of relief differently
6972         for rows with flag no_marginal_areas_p.
6974         * dispnew.c (update_window_line): Update marginal areas only
6975         for rows that don't have no_marginal_areas_p set.
6977         * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
6978         (display_menu_bar): Ditto.
6980         * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
6982         * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
6983         marginal areas in window-based redisplay.
6985         * dispextern.h (struct glyph_matrix): New members
6986         left_margin_glyphs and right_margin_glyphs.
6988 1998-03-15  Gerd Moellmann  <gerd@gnu.org>
6990         * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
6992         * charset.c (non_ascii_char_to_string): Use char type parameters
6993         because the function is used that way from outside.  Use unsigned
6994         char internally.
6996         * window.c (change_window_height): Return void.
6997         (make_dummy_parent): Return void.
6998         (init_window_once): Return void.
6999         (syms_of_window): Ditto.
7000         (keys_of_window): Ditto.
7001         (delete_window): Correct return with and without value.
7003         * buffer.c (record_buffer): Return void.
7005         * marker.c (unchain_marker): Return void.
7007         * window.c (unshow_buffer): Return void.
7008         (replace_window): Ditto.
7009         (delete_window): Ditto.
7011         * term.c (delete_glyphs_hook): Void return type.
7012         (ring_bell_hook): Ditto.
7013         (set_terminal_window_hook): Ditto.
7015         * sysdep.c (init_sigio): Return void.
7017         * xterm.c (x_set_window_size): Return void.
7018         (x_calc_absolute_position): Ditto.
7019         (x_set_offset): Ditto.
7020         (x_focus_on_frame): Ditto.
7021         (x_unfocus_frame): Ditto.
7022         (x_make_frame_visible): Ditto.
7023         (x_make_frame_invisible): Ditto.
7024         (x_iconify_frame): Ditto.
7025         (x_destroy_window): Ditto.
7026         (x_wm_set_window_state): Ditto.
7027         (x_wm_set_icon_pixmap): Ditto.
7028         (x_wm_set_icon_position): Ditto.
7029         (x_initialize): Ditto.
7030         (x_error_quitter): Ditto.
7031         (x_destroy_window): Use xfree instead of free.
7033         * keyboard.c (clear_waiting_for_input): Return void.
7035         * xterm.c (x_wm_set_size_hint): Return void.
7036         (x_raise_frame): Ditto.
7037         (refreshicon): Ditto.
7038         (x_error_catcher): Ditto.
7039         (x_clear_errors): Ditto.
7041         * keyboard.c (record_asynch_buffer_change): Return void.
7043         * xterm.c (XTroï\0ðoï\0ðÃâ\0ðoï\0ðoï\0ðTÿ\0ðLá\0ðoï\0ðterminal_window): Ditto.
7044         (x_lower_frame): Ditto.
7045         (x_scroll_bar_clear): Ditto.
7046         (XTflash): Add default case in switch for -Wall.
7047         (construct_mouse_click): Return Qnil.
7048         (cancel_mouse_face): Return void.
7049         (x_queue_event): Use xmalloc instead of malloc.
7050         (x_unqueue_events): Use xfree instead of free.
7052         * ccl.c (ccl_driver): Return int.
7054         * keyboard.c (stop_polling): Return void.
7055         (start_polling): Ditto.
7057         * term.c (keys): Add braces in initializer list for -Wall.
7059         * sysdep.c (tabs_safe_p): Return int.
7060         (init_baud_rate): Return void.
7062         * xterm.c (x_draw_bitmap): Add default case.
7063         (x_setup_relief_colors): Use DefaultScreen instead of
7064         DefaultScreenOfDisplay.
7065         (x_delete_glyphs): Return void.
7066         (construct_menu_click): Put in #if 0 because it isn't called.
7068         * xdisp.c (load_overlay_strings): Remove extraneous argument
7069         in call to qsort.
7070         (get_overlay_arrow_glyph_row): Add missing return value.
7072         * window.c (set_window_height): Return void.
7073         (set_window_width): Ditto.
7075         * sysdep.c (request_sigio): Return void.
7076         (unrequest_sigio): Ditto.
7077         (get_frame_size): Ditto.
7079         * scroll.c (scroll_cost): Return int.
7080         (do_line_insertion_deletion_costs): Return void.
7082         * frame.c (Fdelete_frame): Use xfree instead of free.
7084         * fileio.c (report_file_error): Return void.
7086         * dispnew.c: Make compilable with -Wall.
7087         * term.c: Ditto.
7089         * charset.h (CHAR_LEN): Moved here from dispextern.h.
7091 1998-03-14  Gerd Moellmann  <gerd@gnu.org>
7093         * xterm.c (x_scroll_bar_move): Clear under scroll bar if height is
7094         increased.
7095         (x_setup_relief_color): Free color only for appropriate visual
7096         classes.
7098         * xterm.c (expose_window): Fix calculation of intersection of mode
7099         line rectangle with exposed rectangle.
7101         * xdisp.c (redisplay_window): Don't do cursor movement based
7102         on current matrix if w->last_point is not valid.
7104 1998-03-09  Gerd Moellmann  <gerd@gnu.org>
7106         * xterm.c (expose_line): Redraw mode line and menu lines
7107         differently because they reach into the scroll bar area.
7109         * xdisp.c (redisplay_window): If redisplaying with same window
7110         start, don't accept cursor on partially visible line.
7112 1998-03-08  Gerd Moellmann  <gerd@gnu.org>
7114         * xterm.c (x_set_glyph_string_clipping): Set clip rectangle
7115         for wider mode lines.
7116         (x_draw_glyph_string_relief): Use larger rectangle for mode lines.
7118         * xdisp.c (init_iterator): Increase last_visible_x by vertical
7119         scroll bar width for mode lines.
7121         * dispnew.c (allocate_matrices_for_window_redisplay): Include
7122         vertical scroll bar width in width calculation so that we can
7123         display mode lines wider.
7125         * xdisp.c (redisplay_window): Restore buffers before returning
7126         when fonts have changed.
7128         * dispnew.c (update_window): Mark invisible rows in the current
7129         matrix invalid.
7131         * xdisp.c (try_window_id): Force update of first row displayed
7132         at window end.
7133         (dump_glyph_matrix): Extracted from Fdump_glyph_matrix.
7135 1998-03-05  Gerd Moellmann  <gerd@gnu.org>
7137         * dispextern.h (struct glyph_row): Member max_ascent renamed
7138         ascent.  Member max_descent replaced by height.
7139         (struct display_iterator): Member max_descent replaced by height.
7140         (MATRIX_ROW_PIXEL_HEIGHT): Removed.
7142         * xterm.c (x_alloc_lighter_color): Don't free colors if visual
7143         class makes it unnecessary or dangerous.
7145         * xdisp.c (redisplay_window): Case only point has changed, and
7146         point has moved forward.  Move forward over overlay strings.
7147         (display_line): Don't set cursor if first glyph from PT is part of
7148         a continuation line.
7150 1998-02-21  Gerd Moellmann  <gerd@gnu.org>
7152         * xdisp.c (start_display): When computing continuation lines
7153         width, add current_x to the continuation lines width because
7154         move_iterator_to will stop in front of the buffer position moved
7155         to.
7157 1998-02-20  Gerd Moellmann  <gerd@gnu.org>
7159         * xdisp.c (redisplay_window): Don't try try_window_id if
7160         windows_or_buffers_changed.
7162         * xterm.c (x_alloc_lighter_color): Try both factor and delta to
7163         determine a color.
7164         (x_setup_relief_color): Allocate/ change one relief.
7165         (x_setup_relief_colors): Call above function.
7167         * xterm.h (struct relief): New structure type holding relief info:
7168         GCs, colors, and whether colors are allocated.
7170         * xterm.c (x_alloc_lighter_color): If multiplying by factor 
7171         produces the same color, try adding a delta to RGB values.
7172         (x_setup_relief_colors): Free color cells.
7174         * xterm.h (struct x_output): New members white_relief_pixel, 
7175         black_relief_pixel holding the foreground colors allocated for
7176         relief GCs.  New members white_allocated_p, black_allocated_p.
7178         * xterm.c (x_scroll_run): Don't set updated_window to null.
7179         This resets updated_window when called from scrolling_window.
7181         * dispextern.h (scroll_run_hook): Renamed from line_dance_hook.
7182         
7183         * xterm.c (x_scroll_run): Additional window parameter.  Set
7184         and reset updated_window.
7186         * dispnew.c (line_dance_hook): Additional window parameter.
7188         * xdisp.c (try_window_reusing_current_matrix): Don't call
7189         update_window_begin/end here.  The end function would display the
7190         cursor on a wrong position and the additional functionality of
7191         update_window_begin is not needed anyway.  Just set
7192         updated_window.
7193         (try_window_id): Ditto.
7195         * dispnew.c (Fblink_cursor): Remove call to detect_input_pending.
7196         Don't redraw cursor during redisplay.
7198         * xterm.c (x_scroll_run): Renamed from do_line_dance.
7200         * xdisp.c (redisplay_window): For window-based redisplay, alway
7201         try try_window_id.
7203         * xterm.c (struct glyph_string): New member two_byte_p that is
7204         non-zero if 16-bit drawing functions must be used.
7205         (x_fill_composite_glyph_string): Set it.
7206         (x_fill_glyph_string): Set it.
7207         (x_draw_glyph_string_foreground): Use it.
7208         (x_draw_vertical_border): Make line 1 pixel less tall.
7209         (x_draw_row_bitmaps): Decrease width of area cleared on the left
7210         side by 1 pixel if window is not right-most hasn't vertical scroll
7211         bars.
7212         (x_draw_phys_cursor_glyph): Do nothing if phys_cursor.hpos is
7213         out of bounds.
7214         (x_draw_glyph_string_foreground): Use XDrawImageStringX if
7215         hl == DRAW_CURSOR.
7217         * xdisp.c (start_display): Check that window start is at line
7218         start if GLYPH_DEBUG != 0.
7220         * window.c (window_scroll_pixel_based): Move assertion to
7221         start_display.
7223 1998-02-19  Gerd Moellmann  <gerd@gnu.org>
7225         * xterm.c (x_redraw_cursor): Don't redraw the cursor if the 
7226         frame hasn't the focus.
7228         * window.c (make_window): Initialize dy.
7229         (replace_window): Ditto.
7231         * window.h (window): New member dy specifying the amount by which
7232         a window is scrolled "smoothly".
7234         * xterm.c (x_set_glyph_string_clipping): Don't use glyph string's
7235         y-position because it can be negative. 
7236         (x_draw_row_bitmaps): Don't clear with negative y-position like
7237         above.
7238         (x_clear_end_of_line): Same theme as above.
7240         * xterm.c (x_alloc_nearest_color): Allocate a color or, if no
7241         exact match exists, the nearest existing color.  Patterned after
7242         defined_color.
7243         (x_alloc_lighter_color): Allocate a color that is lighter or
7244         darker than a given color by a specified factor.
7245         (x_setup_relief_colors): Set up relief line colors based on 
7246         the background color of a glyph string face.
7247         (x_draw_glyph_string_relief): Call x_setup_relief_colors.
7249         * xfns.c (x_make_gc): Don't allocate relief GCs.
7250         * widget.c (create_frame_gcs): Don't allocate relief GCs.
7251         (setup_frame_gcs): Don't change relief GCs.
7253         * xterm.h (struct x_output): New member relief_background giving
7254         the background pixel color for which relief GCs can be used.
7255         Set by x_setup_relief_colors.
7257         * xterm.c (x_draw_glyph_string_relief): Draw relief differently
7258         for mode and menu lines.
7260         * xdisp.c (set_next_iterator_stop_pos): No longer static.
7262         * dispnew.c (direct_output_for_insert): Call
7263         set_next_iterator_stop_pos after having changed it2.endpos.
7265 1998-02-17  Gerd Moellmann  <gerd@gnu.org>
7267         * dispnew.c (update_window): Work on selected_window, only.
7269         * xterm.c (x_erase_phys_cursor): Return quickly if physical cursor
7270         hpos is >= number of glyphs in the cursor row.
7272         * xdisp.c (try_window_id): Bug fix; update_window_end was not
7273         called.
7275 1998-02-16  Gerd Moellmann  <gerd@gnu.org>
7277         * xdisp.c (init_iterator): Increase last_visible_x for mode lines
7278         and menu lines.
7280         * dispnew.c (allocate_matrices_for_window_redisplay): Allocate
7281         enough glyphs to display a mode line or menu line which draws over
7282         flags areas.
7284         * xterm.c (XTset_vertical_scroll_bar): Use
7285         WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT instead of
7286         VERTICAL_SCROLL_BAR_PIXEL_HEIGHT.
7287         (x_draw_glyphs): Draw over flags areas when drawing a mode line 
7288         or menu.
7289         (x_set_glyph_string_clipping): Set clipping differently if drawing
7290         a mode line or menu line.
7292         * xterm.h (VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
7294         * xterm.c (expose_line): Don't draw bitmaps for mode lines and
7295         menu lines.
7296         (x_scroll_bar_create): Don't clear flags areas.
7297         (x_draw_row_bitmaps): Clear visible row height, only.
7299         * dispnew.c (Fblink_cursor): Moved here from xdisp.c.
7301 1998-02-15  Gerd Moellmann  <gerd@gnu.org>
7303         * dispnew.c (direct_output_for_insert): When checking for tabs in
7304         the line, set it2.endpos to ZV.
7305         
7306         * window.h (struct window): New member cursor_off_p.
7307         * xterm.c (x_redraw_cursor): Implementation of redraw_cursor_hook
7308         for X.
7309         * dispnew.c (redraw_cursor_hook): If non-null, function that can
7310         be called to display or erase the cursor.
7311         * xdisp.c (Fblink_cursor): Blink the cursor of a specified window
7312         or selected_window.
7314         * xterm.h (text_cursor_kinds): Enumerators changed to uppercase.
7316         * dispnew.c (update_window_line): Special handling of inverse
7317         lines in #if 0 removed.
7319         * xterm.c (x_write_glyphs): Renamed from XTwrite_glyphs.
7320         (x_insert_glyphs): Renamed from XTinsert_glyphs.
7321         (x_clear_frame): Renamed from XTclear_frame.
7322         (x_clear_end_of_line): Renamed from XTclear_end_of_line.
7323         (x_ins_del_lines): Renamed from XTins_del_lines.
7324         (x_change_line_height): Renamed from XTchange_line_height.
7325         (x_delete_glyphs): Renamed from XTdelete_glyphs.
7326         (x_clear_cursor): Renamed from clear_cursor.
7327         (x_update_begin): Renamed from XTupdate_begin.
7328         (x_update_end): Renamed from XTupdate_end.
7329         (x_update_window_begin): Renamed from XTupdate_window_begin.
7330         (x_update_window_end): Renamed from XTupdate_window_end.
7331         (x_frame_mode_line_height): Renamed from XTframe_mode_line_height.
7332         (x_produce_glyphs): Renamed from XTproduce_glyphs.
7333         (x_produce_special_glyphs): Renamed from XTproduce_special_glyphs.
7334         (x_produce_special_glyphs): Implementation in #if 0 removed.
7336         * xdisp.c (Fdump_redisplay_state): Display row's fill_line_p
7337         flag in the dump.
7339         * dispnew.c (update_text_area): Handling of glyphs with pixel
7340         width zero removed.  Decrement desired stop pos if desired row
7341         fills its line.
7343         * xterm.c (x_fill_glyph_string): Handling of glyphs with pixel
7344         width zero removed.
7345         (BUILD_GLYPH_STRINGS): Set glyph string flag
7346         extends_to_end_of_line_p based on row's flag fill_line_p and face
7347         background and stipple.  Make sure it works for composite characters.
7349         * xdisp.c (extend_face_to_end_of_line): Set the glyph row flag
7350         fill_line_p.  For window-based redisplay, add a space only if
7351         the row is empty so that we know the face to draw.
7353         * dispextern.h (struct glyph_row): New flag fill_line_p.  Non-zero
7354         means draw the face of the last glyph in the text area to the
7355         right end of the text area.
7357         * xdisp.c (init_iterator): Show region in window mini-buffer
7358         window refers to.
7360         * dispextern.h (struct display_iterator): Redundant member 
7361         region_showing_p removed.  Test for region_beg > 0 instead.
7363         * dispnew.c (update_text_area): Clear to end of line if cursor is
7364         beyond the end of the desired line.  Necessary because we don't
7365         have a phys_cursor_glyph with which to erase the cursor.  We don't
7366         have one because this method of drawing a cursor doesn't work with
7367         lbearing/rbearing.
7369         * xterm.c (XTinsert_glyphs): Block input.
7371 1998-02-14  Gerd Moellmann  <gerd@gnu.org>
7373         * xterm.c (x_set_cursor_gc): Don't use cursor_gc for composite
7374         glyph strings.
7375         (x_draw_glyph_string_background): Fill background with background
7376         pixel for the first glyph of a composite character.
7378         * xdisp.c (try_window): Change return type to int.  Value is zero
7379         if fonts were loaded during redisplay.
7380         (redisplay_window): Return if fonts have been loaded during
7381         redisplay.
7382         (append_space): New parameter default_face_p.
7384 1998-02-13  Gerd Moellmann  <gerd@gnu.org>
7386         * dispnew.c (adjust_glyph_matrix): In case of optimizing C-x 2,
7387         don't let a partially visible line in a current matrix stay
7388         enabled.
7390 1998-02-09  Gerd Moellmann  <gerd@gnu.org>
7392         * minibuf.c (read_minibuf): Put access to minibuffer_prompt_length
7393         in #if PROMPT_IN_BUFFER.
7395         * xdisp.c (display_line): If row ends in ZV, make the space
7396         that is added to place the cursor on it appear in default face.
7398         * xterm.c (expose_area): New function redrawing a single 
7399         glyph row area.
7400         (expose_line): Use it to redraw all areas of a row.
7402         * dispextern.h (move_operation_enum): New enum
7403         move_operation_enum.
7405         * window.c (window_scroll_pixel_based): Remove now unnecessary
7406         code that made sure that it->current_y doesn't become negative.
7408         * xdisp.c (move_iterator_in_display_line_to): New parameter
7409         op.  Special meaning of to_pos <= 0 and to_x < 0 removed.
7410         (move_iterator_to): Ditto.
7412         * dispextern.h (struct glyph_matrix): New member window_width.
7414         * dispnew.c (adjust_glyph_matrix): Set window_width.  Optimize
7415         case of changing window height.
7417         * xterm.c (x_draw_row_bitmaps): Don't clear vertical window
7418         border to the left. 
7420         * dispextern.h (struct glyph_row): Remove right_to_left_p.  RMS
7421         says this aspect of Emacs is currently redesigned.
7423         * xterm.c (x_clip_to_row): Subtract 1 from clip width if we
7424         have to draw a vertical border.
7426         * window.c (window_scroll_pixel_based): When scrolling down by
7427         screen-fulls, make sure it.current_y doesn't get negative because
7428         this would confuse move_iterator_vertically.
7430         * xdisp.c (move_iterator_vertically_backward): Bug fix for
7431         the case continuation lines are involved.
7432         (try_window_id): Don't set the cursor into scroll margins.
7434 1998-02-08  Gerd Moellmann  <gerd@gnu.org>
7436         * xterm.c (x_append_glyph): Don't compute left_overhang and
7437         right_overhang.
7438         (XTproduce_glyphs): left_overhang and right_overhang removed.
7439         Set it->glyph_row->contains_overlapping_glyphs_p.
7441         * xdisp.c (Fdump_redisplay_state): Output of glyph->left_overhang
7442         and right_overhang removed.
7444         * dispextern.h (struct glyph_row): New member
7445         contains_overlapping_glyphs_p used to optimize glyph drawing.
7446         (struct display_iterator): left_overhang and right_overhang
7447         removed.
7448         (struct glyph): Ditto.
7450         * xterm.c (x_draw_relief): Removed.
7451         (x_draw_bitmap): Renamed from draw_bitmap.
7452         (x_draw_glyphs): Completely new implementation of draw_glyphs
7453         capable of handling arbitrary lbearing and rbearing values.
7454         Several sub-functions not mentioned here.
7456 1998-01-30  Gerd Moellmann  <gerd@gnu.org>
7458         * xterm.c (x_erase_phys_cursor): Clear area under the cursor only
7459         if displaying hollow box cursor.  draw_glyphs should handle 
7460         other cases.
7461         (draw_glyphs): Move start to the left and end to the right if they
7462         overlap with previous or following characters.  
7463         (draw_glyphs): If background is cleared for hl == DRAW_CURSOR,
7464         make sure XDrawString uses function GXset.  Otherwise the 
7465         character under the cursor would be invisible.
7466         (x_draw_bar_cursor): Don't draw over previous character if it
7467         has right_overhang.
7469         * window.c (get_phys_cursor_glyph): Return the glyph under a
7470         window's physical cursor.
7471         
7472         * xterm.c (x_draw_hollow_cursor): Use get_phys_cursor_glyph.
7473         (x_draw_bar_cursor): Ditto.
7474         (x_erase_phys_cursor): Ditto.
7475         (x_phys_cursor_in_rect_p): Ditto.
7476         (x_display_and_set_cursor): Remove reference to w->phys_cursor_glyph.
7478         * window.c (make_window): Remove reference to phys_cursor_glyph.
7479         (replace_window): Ditto.
7481         * window.h (struct window): Remove phys_cursor_glyph.  There is
7482         now always a glyph present for placing the cursor on it in 
7483         each glyph row, even at the end of a line.
7485         * xdisp.c (append_space): Function to add a space to an iterators
7486         glyph row.
7487         (display_line): Add spaces at the end of lines that are used to
7488         place the cursor on them.
7489         (compute_line_metrics): If row consists of a space only that was
7490         added to place the cursor on it, use that space's height as the 
7491         line height.
7493 1998-01-29  Gerd Moellmann  <gerd@gnu.org>
7495         * xdisp.c (Fdump_redisplay_state): Dump left and right overhang of
7496         glyphs.
7498 1998-01-28  Gerd Moellmann  <gerd@gnu.org>
7500         * xterm.c (x_append_glyph): Set overhang of glyph from iterator.
7501         (XTproduce_glyphs): Set it->left_overhang and it->right_overhang.
7503         * dispextern.h (struct glyph): Add left_overhang and
7504         right_overhang.  
7505         (struct display_iterator): Ditto.
7507         * dispnew.c (direct_output_for_insert): Give up if newly inserted
7508         glyphs have different ascent or descent than original row.
7510         * xdisp.c (compute_line_metrics): Compute row->max_ascent and
7511         row->max_descent only if unknown.
7512         (display_line): Compute row->max_ascent and row->max_descent.
7513         (display_string): Ditto.
7515         * window.h (struct window): New members phys_cursor_ascent and
7516         phys_cursor_descent.  
7518         * xterm.c (x_phys_cursor_in_rect_p): Use them.
7519         (x_draw_hollow_cursor): Ditto.
7520         (x_erase_phys_cursor): Ditto.
7521         (x_display_and_set_cursor): Set them.
7522         (x_append_glyph): Don't set glyph members that were removed.
7524         * dispextern.h (struct glyph): Members ascent, descent,
7525         contributes_to_line_height_p removed.
7527 1998-01-25  Gerd Moellmann  <gerd@gnu.org>
7529         * dispextern.h (DEFAULT_FACE_ID, MODE_LINE_FACE_ID): Symbolic
7530         names for face ids of frame default face and mode line face.
7532         * xdisp.c (compute_face_at_iterator_string_position): If
7533         displaying a mode line use MODE_LINE_FACE_ID instead of
7534         DEFAULT_FACE_ID.
7536         * xdisp.c (reseat_iterator_to_string): Additional parameter start.
7537         (display_string): Ditto, additional parameter lisp_string.
7538         (display_line): Call display_string with Lisp mini-buffer prompt
7539         string.
7540         (display_menu_bar): Call display_string with Lisp string.
7541         (display_mode_element): Ditto.
7542         (next_element_from_string): Make it work for non-overlay Lisp
7543         strings with field width and precision.
7545         * minibuf.c (minibuffer-prompt-in-buffer): Bound if
7546         PROMPT_IN_BUFFER.
7548         * xfaces.c (compute_string_char_face): Fix face computation
7549         for overlay strings.
7551         * xdisp.c (struct overlay_entry): Add member after_string_p.
7552         (load_overlay_strings): Simplify.
7554         * window.c (delete_window): Defer glyph matrix adjustment.
7555         (Fsplit_window): Ditto.
7556         (change_window_height): Ditto.
7557         (Fset_window_configuration): Ditto.
7558         (Fset_window_margins): Ditto.
7559         * frame.c (set_menu_bar_lines): Ditto.
7560         (Fmake_terminal_frame): Ditto.
7561         * dispnew.c (change_frame_size_1): Ditto.
7563 1998-01-24  Gerd Moellmann  <gerd@gnu.org>
7565         * xdisp.c (move_iterator_vertically_backward): Change algorithm.
7567         * dispnew.c (direct_output_for_insert): Give up if start 
7568         position has overlay strings.
7570         * xdisp.c (display_line): Don't set cursor if row ends in middle
7571         of overlay string.
7572         (Fdump_redisplay_state): Print complete row start and end
7573         position.
7574         (redisplay_window): Cursor movement when matrix hasn't changed---
7575         if PT < last_point, maybe move forward if row ends at PT and
7576         in middle of char.
7578         * minibuf.c (read_minibuf): Save the value of
7579         minibuffer_prompt_length in minibuf_save_list.
7580         (read_minibuf_unwind): Restore minibuffer_prompt_length.
7582         * xdisp.c (redisplay_window): Add assertion for cursor movement
7583         case, PT < last_point.
7584         (move_iterator_in_display_line_to): If to_pos specified, move
7585         over before-strings.
7587         * dispextern.h (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test
7588         start.string_index > 0.
7590         * xdisp.c (redisplay_internal): Adjust glyphs if fonts_changed_p
7591         is set.  Retry redisplay if fonts_changed_p is set before update.
7593         * xterm.c (x_load_font): Set fonts_changed_p.
7595         * xfaces.c (Fset_face_attribute_internal): Set fonts_changed_p.
7597         * dispnew.c (adjust_glyphs_for_font_change): Removed.
7599         * xdisp.c (try_window): Check fonts_changed_p.
7600         (try_window_reusing_current_matrix): Ditto.
7601         (try_window_id): Ditto.
7603         * dispnew.c (adjust_glyphs_for_font_change): Set fonts_changed_p.
7604         (fonts_changed_p): Flag indicating a font change since the last
7605         glyph matrix adjustment.
7607         * xterm.c (x_per_char_metric): Use font->max_bounds as
7608         char metric of the font's default char if the default char
7609         hasn't per char metric itself.
7611         * xfaces.c (Fset_face_attribute_internal): Adjust glyphs
7612         for font change.
7613         (min_char_bounds): Check face->font != NULL.
7614         (font_min_bounds): Return minimum font metrics.  Capture the 
7615         case of invalid min_bounds contents.
7616         (min_char_bounds): Call font_min_bounds.
7618 1998-01-22  Gerd Moellmann  <gerd@gnu.org>
7620         * xdisp.c (start_display): Don't set it->prompt_width if
7621         PROMPT_IN_BUFFER.
7622         (move_iterator_in_display_line_to): Ditto.
7623         (display_line): Don't display prompt via display_string if
7624         PROMPT_IN_BUFFER.
7626         * minibuf.c (Fminibuffer_prompt_width): Return value from
7627         current_buffer if PROMPT_IN_BUFFER.
7628         (read_minibuf): If PROMPT_IN_BUFFER, insert prompt into 
7629         mini-buffer and make it read-only.
7630         (Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
7631         minibuffer_prompt_length instead of BEGV.
7632         (Fminibuffer_complete_word): Ditto.
7633         (Fminibuffer_complete_word): Ditto.
7635         * insdel.c (del_range_1): If PROMPT_IN_BUFFER, and start position
7636         is less than mini-buffer prompt width, use prompt width as start.
7638         * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, and start
7639         position is less than mini-buffer prompt width, use the prompt
7640         width as start.
7642         * cmds.c (Fbeginning_of_line): If PROMPT_IN_BUFFER, set point to
7643         end of prompt if applied to a mini-buffer and BEG reached.
7645 1998-01-21  Gerd Moellmann  <gerd@gnu.org>
7647         * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, add prompt
7648         length to start position.
7650         * buffer.c (Fget_buffer_create): Initialize
7651         minibuffer_prompt_length.
7652         (Fmake_indirect_buffer): Ditto.
7653         (Fkill_buffer): Ditto.
7655         * buffer.h (struct buffer): Add member minibuffer_prompt_length
7656         if PROMPT_IN_BUFFER.
7658 1998-01-19  Gerd Moellmann  <gerd@gnu.org>
7660         * xdisp.c (next_element_from_string): Make it work for arbitrary
7661         Lisp strings.
7662         (set_iterator_to_next): Advance to next overlay string only
7663         if it->string is an overlay string.
7665         * dispextern.h (struct display_iterator):
7666         next_ovstr_face_check_pos renamed next_string_face_check_pos.
7668         * xfaces.c (compute_string_char_face): Compute face for 
7669         arbitrary Lisp string.  Renamed from compute_overlay_string_char_face.
7671         * xdisp.c (next_element_from_string): Renamed from
7672         next_element_from_overlay_string.
7673         (compute_face_at_iterator_string_position): Renamed from 
7674         compute_face_at_iterator_overlay_string_position.
7676         * dispextern.h (struct display_iterator): Member overlay_string
7677         renamed string.
7679         * xdisp.c (next_element_from_c_string): Renamed from
7680         next_element_from_string.
7682         * dispextern.h (struct glyph_pos): Reversed meaning of
7683         overlay_string_index and string_index.
7685         * xdisp.c (next_element_from_overlay_string): Fix bug that made
7686         this function always return the first character of an overlay
7687         string.
7689 1998-01-18  Gerd Moellmann  <gerd@gnu.org>
7691         * xdisp.c (reseat_iterator): Set next_invisible_check_pos only if
7692         forced or new pos > next_invisible_check_pos.
7693         (redisplay_window): Don't try same window start if PT < window
7694         start.
7695         (move_iterator_vertically): Bug fix satisfying post-condition
7696         when ZV is reached and no newline in front.
7697         (move_iterator_vertically_backward): New implementation.
7698         (move_iterator_vertically_backward): Bug fixes.
7700         * xterm.c (XTmouse_position): Change call to min_char_bounds.
7701         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
7702         (adjust_glyphs_for_font_change): Always adjust.
7704         * dispnew.c (struct dim): Use int.
7706         * xfaces.c (Fset_face_attribute_internal): Set face->font_name;
7707         (allocate_face): Initialize it.
7708         (load_font): Use XLoadQueryFont again instead of x_load_font.
7709         (unload_font): Use XFreeFont again.
7710         (min_char_bounds): Iterate over fonts of faces.  Use frame's
7711         font sizes as default.  Remove parameter except_last_font_p.
7713         * dispextern.h (struct face): Add font_name.
7715 1998-01-17  Gerd Moellmann  <gerd@gnu.org>
7717         * xdisp.c (move_iterator_vertically): Check post-condition.  Move
7718         to start of line if ending at ZV and no newline in front.
7719         (move_iterator_to): If to_y specified, always first move to x = 0,
7720         so that move stops at line start instead of line end.  This is
7721         probably what callers would expect to happen.
7723         * window.c (window_scroll_pixel_based): Pixel-based scrolling that
7724         can handle different line heights.
7725         (window_scroll_line_based): Formerly window_scroll.
7726         (window_scroll): Call both.
7728         * xdisp.c (start_display): Exclude code if PROMPT_IN_BUFFER.
7729         (move_iterator_in_display_line_to): Ditto.
7730         (display_line): Ditto.
7732         * minibuf.c (read_minibuf): Conditionally insert prompt into
7733         buffer instead of handling prompts specially.  Change other
7734         functions accordingly.  All such code is in #if PROMPT_IN_BUFFER.
7736         * dispnew.c (adjust_glyph_matrix): Optimize the handling of C-x 2,
7737         upper window.  Optimize calls to xrealloc if same width.
7739         * xdisp.c (redisplay_window): Don't use
7740         try_window_reusing_current_matrix if window scroll functions
7741         exist.
7743         * dispextern.h (struct display_iterator): Member
7744         redisplay_end_trigger_p removed.
7746         * dispextern.h (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
7747         Renamed to WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
7749 1998-01-16  Gerd Moellmann  <gerd@gnu.org>
7751         * xdisp.c (move_iterator_by_lines): Optimize for truncate-lines
7752         nil.  Optimize truncate-lines t and moving backward.
7753         (move_iterator_to_previous_visible_line_start): Contains the heart
7754         of the previous set_iterator_to_previous_visible_line_end.  Don't
7755         reseat the iterator.  Used by move_iterator_by_lines.
7756         (set_iterator_to_previous_visible_line_start): Call function
7757         above.
7758         (move_iterator_in_display_line_to): Check TO_POS before doing
7759         anything else.  Otherwise to_pos == PT would move to x of PT+1.
7761         * indent.c (Fvertical_motion): Use display_iterator.
7763         * xdisp.c (move_iterator_by_lines): New function moving by screen
7764         lines.
7765         (redisplay_window): Use it.
7766         (move_iterator_to): Correct branch of to_vpos specified.
7767         (move_iterator_vertically_backward): Increment nlines after having
7768         backed up over some lines because the last line was not backed up
7769         over.
7770         (move_iterator_via_matrix): Look for it->pos in the matrix, and
7771         calculate it->vpos and it->current_y relative to this row.
7772         (move_iterator_via_matrix): Set in #if 0.  It doesn't seem to 
7773         have a big effect and it is complex.
7774         (move_iterator_to): Call to move_iterator_via_matrix in #if 0.
7776 1998-01-15  Gerd Moellmann  <gerd@gnu.org>
7778         * xterm.c (x_draw_relief): Simplify drawing and draw so that lines
7779         join nicely.  Lines with widths > 2 don't join nicely under X.
7780         * xterm.h (struct x_output): Remove member relief_gc_line_width.
7781         * widget.c (setup_frame_gcs): Initialize relief GC's to line
7782         width 1; remove references to relief_gc_line_width.
7783         * xfns.c (x_make_gc): Ditto.
7785         * xfaces.c (Fset_face_attribute_internal): Set frame garbaged
7786         if relief changes.
7787         (Fset_face_attribute_internal): Use XINT instead of XFASTINT
7788         to get a relief because they can be negative.
7790         * xterm.c (x_draw_relief): Correct line drawing positions.  Pixel
7791         positions are for the middle of lines under X.
7793         * xdisp.c (try_window_id): Always search for the cursor by setting
7794         w->cursor.vpos = -1.  Search in unchanged rows at the top and
7795         bottom if cursor not found in displayed lines.
7796         (display_mode_line): First extend face, then set right shadow 
7797         flag.  Otherwise the wrong glyph gets the right shadow.
7799         * dispnew.c (direct_output_for_insert): Give up if line contains
7800         a tab.  The number of spaces inserted for a tab changes if we
7801         insert glyphs in front of it.
7803         * xterm.c (x_list_fonts): Changes undone because the Lisp
7804         implementation for make-face-smaller, make-face-larger, and
7805         make-face-fixed can do without them.
7807         * xfns.c (Fx_list_fonts): Original x-list-fonts from x-list-font.c
7808         inserted.
7810         * xdisp.c (try_window_id): First compute beg_unchanged, then
7811         compare with window start pos.
7813         * xfns.c (Fx_face_fixed_p): Determine whether a face has a
7814         fixed-width font.
7815         (syms_of_xfns): defsubr for x-face-fixed-p.
7817         * xterm.c (x_erase_phys_cursor): If row containing cursor is not
7818         enabled, don't do anything because this row will be newly drawn
7819         anyway and because we can additionally no longer determine the row
7820         height.
7822         * xdisp.c (display_line): Bug fix cursor positioning.
7824         * xfns.c (x-list-fonts): Copied from x-list-fonts.c; #include
7825         removed.  x-list-fonts.c is now obsolete.
7826         (Qfixed, Qvariable): Moved here from xfaces.c.
7828 1998-01-14  Gerd Moellmann  <gerd@gnu.org>
7830         * xdisp.c (display_line): Set row->ends_at_zv_p based on
7831         FETCH_BYTE for truncated lines.
7832         (display_line): Set cursor differently.
7833         (display_line): Fixed bug setting last_pos_on_this_line wrong
7834         for truncated lines.
7836         * dispnew.c (adjust_glyph_matrix): Always adjust for frame-based
7837         redisplay.
7839         * window.c (Fsplit_window): Adjust glyphs before setting buffer.
7841         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
7842         assertion that character dimensions are not zero.
7844         * xterm.c (x_load_font): adjust_glyphs_for_font_change while
7845         input is blocked.
7847         * xdisp.c (decode_mode_spec): Faster implementation of line number
7848         display.
7850         * xterm.c (x_draw_row_bitmaps): Clear flags area before drawing
7851         bitmaps if bitmaps don't fill the entire area.
7852         (draw_bitmap): Draw bitmaps horizontally centered in flags area.
7854         * xterm.h (FRAME_FLAGS_BITMAP_HEIGHT): Macro giving the 
7855         pixel height of flags bitmaps.
7857         * frame.h (FRAME_FLAGS_AREA_COLS): Use FRAME_X_FLAGS_AREA_COLS.
7858         (FRAME_FLAGS_AREA_WIDTH): Ditto.
7860         * xterm.h (FRAME_FLAGS_BITMAP_WIDTH): Macro giving the width
7861         in pixels of a flags area of a frame.
7862         (FRAME_X_FLAGS_AREA_WIDTH): Removed.
7863         (FRAME_X_FLAGS_AREA_COLS): Macro giving the number of columns
7864         occupied by a flags area.
7866 1998-01-13  Gerd Moellmann  <gerd@gnu.org>
7868         * xdisp.c (hscroll_window_tree): Remove test for non-nil
7869         window_end_valid.
7871         * dispnew.c (adjust_glyph_matrix): Check redisplay_p if
7872         GLYPH_DEBUG != 0.
7874         * xdisp.c (display_line): Correct wrong calculation of row->x for
7875         the case of nglyphs == 1.
7876         (hscroll_window_tree): Renamed from hscroll_windows.
7877         (hscroll_windows): New function calling hscroll_window_tree that
7878         clears desired matrices on a frame when hscroll has been changed.
7879         (redisplay_p): Global flag set during redisplay.
7880         (redisplay_internal): Set and clear redisplay_p.
7882         * xfaces.c (min_char_bounds): Add assertion that width and height
7883         are not zero at the end.  Initialize *height and *width to -1,
7884         instead of using BITS_PER_SHORT.  If font has min_bounds.width
7885         zero, use its max_bounds.width.
7887         * x-list-font.c (Fx_list_fonts): Check INTEGERP or FLOATP for
7888         width and height.
7890 1998-01-12  Gerd Moellmann  <gerd@acm.org>
7892         * dispnew.c (adjust_glyph_matrix): Do nothing if sizes haven't
7893         changed.  Don't clear desired matrices.
7895         * xdisp.c (hscroll_windows): Compute pt after setting
7896         current_buffer.
7897         (redisplay_window): Don't do cursor movement based on current
7898         matrix if just_this_one_p is zero.
7900         * x-list-font.c (Fx_list_fonts): Additional parameter fixed.
7901         specifying that fixed-width, variable-width fonts or both 
7902         should be returned.
7904         * xfaces.c (Qfixed, Qvariable): Symbols for use by x-list-fonts.
7905         (syms_of_xfaces): Initialize them.
7907         * xterm.c (x_list_fonts): Include auto-scaled fonts.  Extend
7908         cached information.
7910 1998-01-11  Gerd Moellmann  <gerd@acm.org>
7912         * xdisp.c (display_mode_line): Extend face to end of line.
7914         * xdisp.c (echo_area_display): Don't call display_string with
7915         echo_area_glyphs_length == 0 which would mean infinite precision.
7916         (redisplay_internal): Adjust window_end_vpos if necessary.
7918 1998-01-07  Gerd Moellmann  <gerd@acm.org>
7920         * xdisp.c (display_line): Set it->ends_at_zv_p differently.
7922 1998-01-05  Gerd Moellmann  <gerd@acm.org>
7924         * xdisp.c (get_row_start_continuation_line_width): Removed.
7925         (init_iterator_to_row_start): Set it.current_x from row.
7926         (try_window_id): Set it.continuation_lines_width directly from
7927         row.
7929         * xdisp.c (hscroll_windows): Use w->pointm if window is not
7930         selected_window.
7931         (hscroll_windows): Center cursor in window.
7932         (hscroll_windows): Call move_iterator_in_display_line_to.
7934 1998-01-04  Gerd Moellmann  <gerd@acm.org>
7936         * xdisp.c (hscroll_windows): Check hscroll < 0.
7937         (redisplay_window): Allow quick cursor movement if overlay arrow
7938         but frame uses window-based redisplay.
7939         (display_line): Take special case for nglyphs == 1 out of #if 0.
7940         (display_line): Set row->ends_at_zv_p after the loop displaying
7941         glyphs because ZV can be in truncated text.
7942         (hscroll_windows): Use init_iterator_to_row_start.
7944         * dispnew.c (scrolling_window): Calculation of overlapping
7945         runs fixed.
7946         (row_equal_p): Compare continued_p and continuation_line_p.
7948 1998-01-02  Gerd Moellmann  <gerd@acm.org>
7950         * xterm.c (x_get_mode_line_face_gc): Renamed from
7951         x_get_modeline_face_gc.
7953         * xdisp.c (TEXT_PROP_DISTANCE_LIMIT): Max. distance from current
7954         buffer position to look for text properties.
7955         (get_face_from_cursor_pos): Use it.
7956         (compute_face_at_iterator_position): Use it.
7957         (next_element_from_buffer): Use it.
7959         * dispnew.c (scrolling_window): Decrement run's y-position
7960         when extending it backwards.
7962         * xterm.c (do_line_dance): Don't ever copy more than window height.
7964 1998-01-01  Gerd Moellmann  <gerd@acm.org>
7966         * xdisp.c (redisplay_window): Cursor motion in unchanged
7967         matrix---use MATRIX_ROW_.*_IN_MIDDLE_OF_CHAR_P.
7968         (init_iterator_to_next_row_start): Special handling of lines
7969         ending in middle of char removed.
7970         (hscroll_windows): Hscroll windows only if window_end_valid is not
7971         nil.
7972         (try_window_reusing_current_matrix): Call hscroll_windows.
7973         (init_iterator_to_row_start): Initialize iterator for display
7974         starting at a position given by a glyph_row->start.
7975         (redisplay_window): Don't use vmotion because it gives wrong
7976         results if lines are continued and variable width fonts are used.
7978         * dispextern.h (struct glyph_pos): New member dpvec_index.  
7979         (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test if row ends in the
7980         the middle of a character.
7981         (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test if row starts in 
7982         the middle of a character.
7984         * xdisp.c (set_iterator_to_next): Increment it->dpvec_index, reset
7985         it.
7986         (next_element_from_display_vector): Use it->dpvec_index.
7987         (reseat_iterator): Reset it.
7988         (init_iterator): Reset it.
7989         (setup_iterator_dpvec_from_glyph_pos): Set up it->dpvec and
7990         it->pos.dpvec_index from a glyph_pos structure.
7991         (init_iterator_from_glyph_pos): Call the function above.
7992         (reseat_iterator_to_glyph_pos): Ditto.
7994         * dispnew.c (direct_output_forward_char): Don't use this method at
7995         overlay boundaries or near invisible text.
7996         (direct_output_forward_char): Step through glyph row to find
7997         cursor position.
7999         * xterm.c (x_get_cursor_gc): Don't return cursor_gc for font == 
8000         frame font if line height differs from font height.
8002         * xdisp.c (set_iterator_to_next): Renamed from
8003         move_iterator_forward to avoid confusion with other move_.*
8004         functions.
8006         * dispextern.h (FACE_RELIEF_P): Renamed from FACE_3D_P.
8008 1997-12-31  Gerd Moellmann  <gerd@acm.org>
8010         * xterm.c (x_get_cursor_gc): Renamed from x_cursor_gc to use the
8011         same naming convention as for other GC functions.
8012         (draw_glyphs): Don't fill background when drawing a cursor and
8013         font height is less than line height.
8015 1997-12-30  Gerd Moellmann  <gerd@acm.org>
8017         * xdisp.c (init_display_iterator.*): Renamed to shorter names
8018         init_iterator_.*.
8020         * xdisp.c (move_iterator_forward): Restore it->len from
8021         it->dpvec_char_len if dpend reached.
8022         (get_next_display_element): Don't consume translated char
8023         prematurely.
8024         (display_line): Don't set this_.* variables if row is continued.
8025         (start_display): Move to start of continuation line if ending
8026         up at end of continued line.
8028         * dispextern.h (struct display_iterator): New member dpvec_char_len.
8030         * xdisp.c (move_iterator_in_display_line_to): Check TO_POS after
8031         checking TO_X and continuation lines.
8032         (get_last_unchanged_at_beg_row): If first_changed_pos is the end
8033         of a continued line, don't consider this line as unchanged because
8034         it may no longer be continued.
8036 1997-12-29  Gerd Moellmann  <gerd@acm.org>
8038         * xdisp.c (try_window_id): Catch the case that moving over
8039         continuation lines moves first_unchanged_at_end_row to a row not
8040         displaying text.
8042         * dispextern.h (struct glyph_row): New member
8043         continuation_lines_width.  Member continuation_line_p removed.
8044         (MATRIX_ROW_CONTINUATION_LINE_P): Non-zero if row displays a 
8045         continuation line.
8046         * xdisp.c (display_line): Set row->continuation_lines_width.
8047         (get_row_start_continuation_line_width): Set continuation lines
8048         width of iterator from continuation lines width of glyph row.
8049         (get_row_start_continuation_line_width): Make it inline.
8050         (set_window_cursor): Make it inline.
8051         (try_window_id): Use MATRIX_ROW_CONTINUATION_LINE_P.
8052         (Fdump_redisplay_state): Ditto.
8053         
8054         * dispnew.c (update_window_line): Use MATRIX_ROW_CONTINUATION_LINE_P.
8055         * xterm.c (x_draw_row_bitmaps): Use MATRIX_ROW_CONTINUATION_LINE_P.
8057         * xdisp.c (try_window_id): Set it.hpos and it.current_x to zero
8058         after determining the continuation lines width for
8059         last_unchanged_at_beg_row.
8061         * xterm.c (x_draw_row_bitmaps): Let overlay arrow have precedence.
8063         * xdisp.c (display_mode_line): Handle 3D faces only on frames
8064         which support faces.
8065         (init_display_iterator): Ditto.
8066         (move_iterator_via_matrix): Skip over truncation glyph at the row
8067         start on terminal frames.
8068         (hscroll_windows): Choose hscroll margin differently for window
8069         system and terminal frames.
8071 1997-12-28  Gerd Moellmann  <gerd@acm.org>
8073         * xdisp.c (hscroll_windows): Change hscroll of windows.
8074         (redisplay_internal): Call it.
8076         * dispnew.c (direct_output_for_insert): Give up if a glyph 
8077         doesn't fit completely on the line.
8078         (direct_output_forward_char): Give up for non-ASCII chars.
8079         (direct_output_forward_char): Set redisplay_performed_directly_p.
8081         * dispextern.h (struct display_iterator): Make first_visible_x
8082         and last_visible_x ints; this is for very long truncated lines.
8084         * xdisp.c (move_iterator_in_display_line_to): Separate check for
8085         MOVE_X_REACHED only if it->nglyphs == 0.  This fixes cursor
8086         positioning problems with the mouse.
8087         (move_iterator_in_display_line_to): Truncate lines if it->current_x
8088         >= it->last_visible_x instead of >.
8089         (display_line): Ditto.
8091         * xterm.c (draw_glyphs): Draw rectangles if font could not be
8092         loaded.
8093         (XTproduce_glyphs): Calculate pixel_width for composite chars and
8094         non-ASCII chars differently.  Always produce 1 glyph for composite
8095         chars.  If font not found, use CHARSET_WIDTH to calculate width of
8096         non-ASCII chars.
8097         (x_get_char_font_and_encoding): Return null if font could not be
8098         loaded.  Reset font to null if fontset could not be loaded.
8099         (draw_glyphs): Fill background if font not found.
8100         (draw_glyphs): Unused parameter just_foreground_p removed. New
8101         parameter composite_glyph.
8102         (draw_glyphs): Use enumeration for parameter hl.
8103         (draw_glyphs): Pass a display area relative x-position to 
8104         draw_glyphs when calling it recursively for composite chars.
8106 1997-12-27  Gerd Moellmann  <gerd@acm.org>
8108         * xterm.c: Patches from handa.etl.go.jp integrated.
8109         (draw_glyphs): Don't rely on x_get_char_font_and_encoding to
8110         find a font_info.
8112         * xdisp.c (move_iterator_in_display_line_to): Check to_x
8113         for nglyphs == 1.
8115         * xterm.c (x_draw_relief): Draw relief lines.
8116         (draw_glyphs): Call x_draw_relief.
8118 1997-12-26  Gerd Moellmann  <gerd@acm.org>
8120         * xfns.c (x_make_gc): Create relief GC's.
8122         * widget.c (create_frame_gcs): Create GC's for relief drawing.
8123         (setup_frame_gcs): Initialize them.
8124         (EmacsFrameDestroy): Free them.
8126         * xdisp.c (try_window_id): Get continuation lines width if 
8127         last_unchanged_at_beg_row is continued or a continuation line.
8128         (move_iterator_via_matrix): Don't do it for mini-buffer windows.
8129         (redisplay_window): Case point has changed, and it has not 
8130         moved off the frame.  Don't increment row if PT equals the row
8131         end if the row ends in ZV.
8133         * xterm.c (x_draw_row_bitmaps): New function to draw bitmaps.
8134         (expose_line): Call it.
8135         (x_after_update_window_line): Call it.
8137         * xdisp.c (display_line): Reset continuation_lines_width when ZV
8138         reached.
8140         * xterm.c (x_after_update_window_line): Draw continuation line
8141         bitmap.
8143         * dispnew.c (update_window_line): Call
8144         after_update_window_line_hook when row's continuation_line_p
8145         changes.
8147         * xterm.c (draw_bitmap): Draw new bitmap CONTINUATION_LINE_BITMAP.
8149         * xdisp.c (display_line): Handle continued lines on window system
8150         frames differently since continuation glyphs are not displayed.
8151         (move_iterator_in_display_line_to): Ditto.
8152         (move_iterator_in_display_line_to): Take the mini-buffer prompt
8153         into account.
8154         (move_iterator_vertically_backward): Handle dy == 0 specially.
8155         (redisplay_window): Catch the case of small windows when
8156         recentering where moving back window_height/2 moves us beyond the
8157         top of the display area of the window.
8159 1997-12-18  Gerd Moellmann  <gerd@acm.org>
8161         * xdisp.c (move_iterator_vertically_backward): Unused parameter
8162         dvpos removed.
8164 1997-12-17  Gerd Moellmann  <gerd@acm.org>
8166         * dispnew.c (direct_output_forward_char): Correct new cursor
8167         x-position.
8169 1997-12-16  Gerd Moellmann  <gerd@acm.org>
8171         * xterm.c (x_after_update_window_line): Remove unused parameters.
8172         (XTclear_end_of_line): Clear to display_height instead of
8173         display_height - 1.
8175         * dispnew.c (set_frame_matrix_frame): Make it INLINE.
8176         (update_window_line): Call after_update_window_line_hook if 
8177         rows have different y-positions, or different height.
8179 1997-12-14  Gerd Moellmann  <gerd@acm.org>
8181         * frame.h (FRAME_MODE_LINE_PIXEL_HEIGHT): Removed.
8183         * window.c (coordinates_in_window): Call frame_mode_line_height.
8185         * xterm.c (x_draw_3d_border): Removed.
8186         (x_draw_row_borders): Removed.
8188         * dispnew.c (update_window): References to
8189         FRAME_MODE_LINE_BORDER_WIDTH removed.
8191         * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Removed.
8192         (FRAME_MODE_LINE_HEIGHT): Removed.
8194         * xterm.c (draw_3d_borders_p): Removed.
8195         (draw_glyphs): Ditto.
8196         (XTwrite_glyphs): Ditto.
8197         (expose_line): Ditto.
8198         (x_initialize): Ditto.
8200         * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Call
8201         frame_mode_line_height.
8203         * term.c (frame_mode_line_height): Get the pixel height of a
8204         frame's mode line.
8205         (frame_mode_line_height_hook): Hook to implement system dependent
8206         versions.  
8207         
8208         * xterm.c (x_initialize): Set the hook.
8209         (XTframe_mode_line_height): X version of frame_mode_line_height.
8211         * xdisp.c (echo_area_display): Call gobble_input to flush the X
8212         output buffer.
8213         (display_string): Don't add right truncation mark if line ends in
8214         padding space.
8215         (init_display_iterator): If called with modeline_p non-zero, set
8216         face_id to 1, which is the id of the mode line face.
8218         * keyboard.c (cmd_error_internal): Write to stderr if selected
8219         frame is Vterminal_frame under X.  This is the case when a font
8220         cannot be loaded when Emacs starts.  Replace test for
8221         FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
8223         * xfaces.c (compute_overlay_string_char_face): Compute the
8224         face of a character in an overlay string.
8225         * xterm.h (compute_overlay_string_char_face): Prototype.
8226         * xdisp.c (compute_face_at_iterator_overlay_string_position): 
8227         Use it.
8229         * xdisp.c (set_iterator_to_next_overlay_string): Formerly
8230         set_iterator_to_next_overlay.
8231         (struct overlay_entry): Structure used to sort overlay strings.
8232         (compare_overlay_entries): Compare overlay strings.
8233         (load_iterator_with_overlay_strings): Load a chunk of overlay
8234         strings.
8235         (get_overlay_strings_at_iterator_position): Call it.
8236         (next_element_from_overlay_string): Set it->object to the overlay
8237         string.  Prepare for setting it->position to a string position.
8238         (get_overlay_strings_at_iterator_position): Renamed from
8239         get_overlays_at_iterator_position.
8240         (setup_iterator_overlay_strings_from_glyph_pos): Changed to load
8241         chunks of overlay strings.
8242         (load_overlay_strings): Renamed from load_iterator_overlay_strings.
8244         * dispextern.h (struct display_iterator): New vector
8245         overlay_strings and new member n_overlay_strings---formerly
8246         overlays and n_overlays.  
8247         (struct glyph_pos): Remove after_string_p; overlay_index 
8248         renamed to string_index.
8250 1997-12-13  Gerd Moellmann  <gerd@acm.org>
8252         * xdisp.c (copy_iterator): Increment n_iterator_overlay_vectors
8253         when allocating a vector.
8254         (release_iterator): Removed.
8255         (restore_iterator): Removed.
8256         (copy_iterator): Removed.
8258 1997-12-08  Gerd Moellmann  <gerd@acm.org>
8260         * xdisp.c (redisplay_window): Use make_empty_enabled_row for
8261         clearing a mini-buffer window that is not active.
8262         (redisplay_window): Do not scroll one line too early when last
8263         window line is completely visible.
8264         (init_display_iterator): Leave some room to display the cursor
8265         after the last glyph on a continued line.
8267         * xterm.h (struct x_output): trunc_area_extra renamed
8268         flags_areas_extra.
8269         (FRAME_X_FLAGS_AREA_WIDTH): Renamed from FRAME_X_TRUNC_WIDTH.
8271         * dispnew.c (update_window_line): Call
8272         after_update_window_line_hook when current row is not enabled
8273         which is the case after a frame has been cleared.
8275         * xdisp.c (display_mode_line): Reset row flags for truncation
8276         on right side for the mode line.
8278         * xterm.c (bitmap_type): Type of bitmap to display in flags
8279         area of frame.
8280         (x_after_update_window_line): Use the enum.
8281         (draw_bitmap): Ditto.
8283 1997-12-07  Gerd Moellmann  <gerd@acm.org>
8285         * xterm.c (x_clip_to_row): Include width of both flag areas.
8286         (do_line_dance): Ditto.
8287         (expose_window_tree): Ditto.
8288         * dispnew.c (update_window_line): Call
8289         after_update_window_line_hook for right truncation and continuation.
8290         * xdisp.c (init_display_iterator): Don't subtract width of
8291         continuation glyphs for window-based redisplay.
8292         * xterm.c (draw_bitmap): Draw continuation bitmap.
8293         * widget.c (set_frame_size): Double trunc_area_extra.
8294         (EmacsFrameSetCharSize): Ditto.
8295         * xfns.c (x_figure_window_size): Ditto.
8296         * xterm.c (x_set_window_size): Ditto.
8297         (x_after_update_window_line): Draw right truncation mark.
8299         * xterm.c (draw_glyphs): Bug fix buffer overrun.
8301         * window.h: Include blocker around dispextern.h removed.
8303         * eval.c (Feval): Check interrupt_input_block == 0.
8304         
8305         * dispextern.h (struct display_iterator): Former ovstr made a
8306         Lisp_Object overlay_string.  New next_ovstr_face_check_pos and
8307         next_ovstr_invisble_check_pos; check at these positions for
8308         face changes and changes in invisible text property.
8309         (struct glyph_pos): Former ovlen now overlay_string_index.
8311         * xdisp.c (setup_iterator_overlays_from_glyph_pos): Set
8312         overlay_string.
8313         (set_iterator_to_next_overlay_string): Set overlay_string and
8314         pos.overlay_string_index.
8315         (get_overlays_at_iterator_position): Use overlay_string and
8316         overlay_string_index.
8317         (next_element_from_overlay_string): Use overlay_string and
8318         overlay_string_index.
8319         (move_iterator_forward): Increment overlay_string_index.
8320         (try_window_id): Use overlay_string and overlay_string_index.
8321         (move_iterator_forward): At end of dpvec, maybe use method
8322         next_element_from_overlay_string for the case a character from an
8323         overlay string was translated via a display table.
8324         (reseat_iterator_to_string): Take a Lisp string.
8325         (display_string): Pass a Lisp string to reseat_iterator_to_string.
8326         (compute_face_at_iterator_overlay_string_position): Compute face
8327         based on text properties for an overlay string.
8328         (next_element_from_overlay_string): Check invisible and face text
8329         properties.
8330         (set_iterator_to_next_overlay_string): Restore face id before
8331         overlay strings when no more overlay strings are found to return.
8332         Initialize next_ovstr_.*check_pos for each new overlay string
8333         roï\0ðoï\0ðÃâ\0ðoï\0ðoï\0ðTÿ\0ðLá\0ðoï\0ðase_face): Made public.
8334         (merge_face_list): Ditto.
8335         (intern_computed_face): Ditto.
8337         * xdisp.c (redisplay_window): Cursor movement in unchanged 
8338         window if PT > w->last_point.  Goto try_to_scroll if bottom Y
8339         of row is > instead of >= last_y.
8341         * buffer.h (overlays_at): Function prototype.
8343         * xdisp.c (reseat_iterator_to_string): Clear iterator position.
8344         * dispextern.h (GET_NEXT_DISPLAY_ELEMENT): Removed.
8346         * xdisp.c (release_iterator): Release dynamically allocated 
8347         memory of a display_iterator.
8348         (copy_iterator): Copy an iterator.
8349         (restore_iterator): Restore an iterator from a backup copy.
8350         (global): Use the functions above.
8351         * window.c (Fpos_visible_in_window_p): Call release_iterator.
8352         * dispnew.c (direct_output_for_insert): Call release_iterator.
8354         * dispextern.h (struct display_iterator): Allocate overlays
8355         vector dynamically.
8357 1997-12-06  Gerd Moellmann  <gerd@acm.org>
8359         * Makefile.in (window.o): Depends on dispextern.h.
8361         * buffer.c (overlays_at): Make it work when extending vectors
8362         and an initial vector of zero size.
8364         * xdisp.c (set_iterator_to_previous_visible_line_end): Renamed
8365         from set_cursor_to_previous_visible_line_end.
8366         (set_iterator_to_next_visible_line_start): Renamed from
8367         set_cursor_to_next_visible_line_end.
8368         (set_next_iterator_stop_pos): Renamed from set_next_stop_pos.
8369         (compute_face_at_iterator_position): Renamed from
8370         compute_cursor_face.
8371         (set_iterator_to_next_overlay_string): Renamed from
8372         cursor_to_next_overlay_string.
8373         (get_overlays_at_iterator_position): Renamed from
8374         get_overlays_for_cursor.
8375         (reseat_iterator): Renamed from reseat_cursor.
8376         (setup_iterator_overlays_from_glyph_pos): Renamed from
8377         setup_overlays_from_pos.
8378         (init_string_iterator): Renamed from init_string_cursor.
8379         (get_next_display_element): Renamed from next_display_element.
8380         (move_iterator_forward): Renamed from advance_display_cursor.
8381         (get_overlays_at_iterator_position): Allocate overlays vector 
8382         dynamically.
8384         * xdisp.c: display_cursor renamed display_iterator.
8385         * dispextern.h: Ditto.
8386         * dispnew.c: Ditto.
8388 1997-12-01  Gerd Moellmann  <gerd@acm.org>
8390         * window.c (mark_window_cursors_off): Function comment added.
8391         (window_topmost_p, window_rightmost_p): Removed because not used.
8393 1997-11-30  Gerd Moellmann  <gerd@acm.org>
8395         * emacs.c (main): Function prototypes removed in profiling code.
8396         Use safe_bcopy as start of text.
8398         * dispnew.c (update_frame_line): update_line -> update_frame_line;
8399         mirrored_make_current -> make_current.
8401         * xdisp.c: (store_frame_title_char): New function to store a
8402         single character for the frame title with re-allocation of
8403         frame_title_buf.
8404         (init_xdisp): Intialize frame_title_.* variables to null.
8406         * dispnew.c (quit_error_check): Removed.
8408         * eval.c (Fsignal): Call to quit_error_check removed.
8409         * keyboard.c (quit_throw_to_read_char): Ditto.
8411 1997-11-23  Gerd Moellmann  <gerd@acm.org>
8413         * xfaces.c (Fset_face_attribute_internal): Allow nil relief
8414         to mean a zero relief.
8416         * .gdbinit (xprintsym): Print a symbol.
8417         (xbacktrace): Print a backtrace of Lisp function calls from
8418         backtrace_list.
8420 1997-11-19  Gerd Moellmann  <gerd@acm.org>
8422         * dispnew.c (new_glyph_matrix): Increment glyph_matrix_count
8423         unconditionally.
8424         (glyph_matrix_count, glyph_pool_count): Define unconditionally.
8425         (free_glyph_matrix): Decrement glyph_matrix_count unconditionally.
8426         (check_glyph_memory): Define function body unconditionally.
8428 1997-11-17  Gerd Moellmann  <gerd@acm.org>
8430         * dispnew.c (scrolling_window): Alternative version of this
8431         function removed.
8433 1997-11-16  Gerd Moellmann  <gerd@acm.org>
8435         * dispnew.c (make_empty_enabled_row): Make an empty, enabled row
8436         of height CANON_Y_UNIT.
8437         * dispextern.h: Prototype for that function.
8438         * xdisp.c (echo_area_display): Don't use display_string to 
8439         produce empty rows.  Use make_empty_enabled_row instead.
8441         * dispnew.c (scrolling_window): New version using diff-like
8442         algorithm activated.
8443         
8444 1997-11-15  Gerd Moellmann  <gerd@acm.org>
8446         * dispnew.c (clear_current_matrices): Clear matrix of menu_bar_window
8447         (clear_desired_matrices): Ditto.
8448         (adjust_frame_glyphs_for_window_redisplay): Use FRAME_WINDOW_WIDTH
8449         for menu_bar_window.
8451         * alloc.c (mark_object): Mark menu_bar_window of frames.
8453         * xterm.c (XTupdate_window_end): Don't display cursor if
8454         pseudo_window_p.
8456         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Don't
8457         set mini_p.
8458         (update_window): Don't set cursor if pseudo_window_p.
8460         * dispextern.h (WINDOW_WANTS_MODELINE_P): Test pseudo_window_p.
8462         * window.h (struct window): New flag pseudo_window_p set to
8463         1 for windows that aren't really part of the window tree, like
8464         menu_bar_window's of frames.
8465         * window.c (make_window): Initialize it.
8466         (replace_window): Ditto.
8467         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
8469         * frame.c (make_frame): Initialize menu_bar_window to nil.
8471         * xterm.c (XTget_display_info): FACE_SHADOW_THICKNESS renamed
8472         FACE_RELIEF
8474         * xfaces.c (copy_face): shadow_thickness -> relief.
8475         (face_eql): Ditto.
8476         (merge_faces): Ditto.
8477         (compute_base_face): Ditto.
8478         (Fset_face_attribute_internal): Ditto.
8479         * dispextern.h (struct face): Ditto.
8481         * dispnew.c (update_frame): Update menu_bar_window of the frame if
8482         it is non-nil.
8484         * xdisp.c (display_menu_bar): Display the menu bar in
8485         f->menu_bar_window if appropriate.
8486         (display_mode_line): Use MATRIX_MODE_LINE_ROW.
8488         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Allocate
8489         dummy window and window matrices for f->menu_bar_window.
8490         (free_glyphs): Free the dummy window and its glyph matrices.
8492         * frame.h (struct frame): New member menu_bar_window.
8494 1997-11-09  Gerd Moellmann  <gerd@acm.org>
8496         * dispnew.c (scrolling_window): New version with diff-like
8497         algorithm.
8499         * xdisp.c (try_window_reusing_current_matrix): If new_start >
8500         old_start always start displaying at start of
8501         first_row_to_display.  The previous scheme failed if the last row
8502         was fully visible.
8504         * dispnew.c (update_window): Remove cost calculations.  Remove
8505         redundant preempt_count calculations.
8507         * xterm.c (x_clip_to_row): Set clipping for non-text rows
8508         differently.
8510         * dispnew.c (update_window): Use WINDOW_WANTS_MODELINE_P.
8512         * window.c (syms_of_window): Functions for marginal areas if 
8513         WITH_MARGINAL_AREAS is defined.
8515         * xdisp.c (try_window_reusing_current_matrix): Trace fprintf 
8516         removed.
8518         * dispnew.c (scrolling): Call line_hash_code because hash values
8519         are not set in the frame matrix.
8521         * xdisp.c (try_window_id): Fix scrolling for terminal frames.
8522         (redisplay_window): Check line_ins_del_ok before calling
8523         try_window_id.
8524         (try_window_reusing_current_matrix): Give up for terminal frames
8525         if window is not full width or we cannot insert/delete lines.
8526         (try_window_reusing_current_matrix): Fixed scrolling for terminal
8527         frames.
8529         * alloc.c (mark_glyph_matrix): Bug fix - pass pointer to
8530         Lisp_Object to mark_object.
8532         * xdisp.c (sync_frame_with_window_matrix_rows): Make frame and
8533         window rows have the same glyph pointers.
8534         (try_window_id): Call it.
8536         * alloc.c (mark_glyph_matrix): Function to mark Lisp objects in
8537         a glyph matrix.
8538         (mark_object): Call it.
8540         * xdisp.c (insert_left_trunc_glyphs): Use 0 object in glyphs for
8541         truncations.
8542         (display_line): Ditto.
8543         (display_line): Ditto for DISP_CONTINUATION.
8544         (display_line): Truncation on right: test current_x >
8545         last_visible_x.
8546         (skip_in_display_line_to): Ditto.
8547         (skip_via_matrix): Stop skipping in glyph row at face extending
8548         glyphs or at padding spaces.
8550         * dispnew.c (fill_up_glyph_row_with_spaces): Comment extended.
8552         * xdisp.c (display_line): Use glyph->object == 0 for padding
8553         glyphs.
8554         (redisplay_window): Don't let cursor move over padding
8555         spaces.
8557         * dispextern.h (struct glyph): Fix comment for object.
8559 1997-11-08  Gerd Moellmann  <gerd@acm.org>
8561         * dispextern.h (WINDOW_WANTS_MODELINE_P): Non-zero if a window
8562         has a mode line.
8563         * xdisp.c (redisplay_window): Use it.
8564         (display_mode_line): Check that window wants mode line.
8566 1997-11-03  Gerd Moellmann  <gerd@acm.org>
8568         * xdisp.c (display_menu_bar): Enable menu bar rows.
8570         * xterm.c (x_draw_hollow_cursor): X positions based on text area.
8571         (x_erase_phys_cursor): Ditto.
8572         (x_draw_bar_cursor): Ditto.
8574 1997-11-02  Gerd Moellmann  <gerd@acm.org>
8576         * dispnew.c (update_marginal_area): Update a marginal area.
8577         (update_text_area): Update text area.
8578         (update_window_line): Call both.
8580         * xterm.c (XTclear_end_of_line): Translate coordinates area
8581         dependent.
8583         * dispnew.c (updated_area): Row area being updated in
8584         update_window_line.
8585         (update_window_line): Set it.
8586         (update_marginal_area): Clear to end of line if not in text area.
8588         * window.c (Fset_window_margins): Increment
8589         windows_or_buffer_changed.  Adjust glyphs.
8591         * dispextern.h (WINDOW_TEXT_TO_FRAME_PIXEL_X): Convert text
8592         area X coordinates to frame coordinates.
8593         (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH): Width of left marginal area. 
8594         (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH): Same for right area.
8595         (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Same for text area.
8597         * xterm.c (draw_glyphs): Use text area width as display width.
8599         * xdisp.c (init_display_info): Subtract widths of marginal areas
8600         from last_visible_x.
8602         * alloc.c (mark_object): Mark objects in glyphs only if they are
8603         overlays.  Mark only if current_matrix != 0.  Activate the code.
8605         * window.c (Fset_window_margins): Set margins.
8606         (Fwindow_margins): Return margin area widths.
8607         (syms_of_window): Add defsubr's.
8609         * window.h (struct window): left_margin_width, right_margin_width.
8611         * xfns.c (x_set_trunc_area_width): Set truncation pixel width
8612         and cols.
8614         * frame.h (FRAME_TRUNC_COLS): Number of columns occupied by
8615         truncation/overlay arrow area.
8616         (struct frame): trunc_area_pixel_width, and _cols.
8618         * window.c (Fsplit_window): Use it.
8620         * window.c (Fsplit_window): Set cursor vpos to -1 after
8621         splitting.
8622         (Fsplit_window): SUbtract/add FRAME_TRUNC_WIDTH for horizontally
8623         split windows.
8625         * dispnew.c (set_window_cursor_after_update): Accept out
8626         of bounds cursor positions. 
8628         * xdisp.c (redisplay_internal): Check that after cursor motion
8629         within line, PT is on same line.
8631         * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Don't subtract
8632         FRAME_TRUNC_WIDTH.
8634         * xterm.h (struct x_output): trunc_area_extra.
8635         (CHAR_TO_PIXEL_WIDTH): Add in trunc_area_extra.
8636         (PIXEL_TO_CHAR_WIDTH): Subtract it.
8637         * widget.c (set_frame_size): Set it.
8638         (EmacsFrameSetCharSize): Ditto.
8639         * xfns.c (x_figure_window_size): Ditto.
8640         * xterm.c (x_set_window_size): Ditto.
8642         * dispnew.c (check_matrix_invariants): First try to check window
8643         ends (in #if 0).
8645         * xdisp.c (try_window_reusing_current_matrix): Try window
8646         redisplay with different window start.
8648 1997-11-01  Gerd Moellmann  <gerd@acm.org>
8650         * window.c (make_window): Set window_end_pos/vpos.
8651         (Fsplit_window): Zero last_cursor, window_end_valid.
8652         (Fset_window_buffer): Set window_end_vpos, zero last_cursor.
8654         * dispnew.c (check_matrix_invariants): Check window_end_pos/vpos.
8656 1997-10-31  Gerd Moellmann  <gerd@acm.org>
8658         * window.c (make_window): Initialize last_cursor.
8659         (replace_window): Ditto.
8661 1997-10-29  Gerd Moellmann  <gerd@acm.org>
8663         * window.h: New member last_cursor.
8664         * dispnew.c (direct_output_for_insert): Set it.
8665         (direct_output_forward_char): Ditto.
8666         * xdisp.c (redisplay_internal): Ditto.
8668 1997-10-28  Gerd Moellmann  <gerd@acm.org>
8670         * xdisp.c (redisplay_internal): Optimization 1 change partially
8671         reverted.  Check this again later.
8672         (skip_via_matrix): Remove redundent test for
8673         MATRIX_ROW_DISPLAYS_TEXT_P. 
8675 1997-10-27  Gerd Moellmann  <gerd@acm.org>
8677         * dispnew.c (update_window_line): Call
8678         after_update_window_line_hook only for interesting constellations.
8679         (free_glyph_matrix): Fix memory leak.
8681         * window.h: Include blocker WINDOW_H_INCLUDED, include
8682         dispextern.h.
8683         (struct window): phys_cursor_glyph as struct glyph.  * window.c
8684         (make_window): Initialize it.
8685         (replace_window): Ditto.  
8686         * dispnew.c (free_window_matrices): Remove freeing of
8687         phys_cursor_glyph.
8688         (check_matrix_invariants): Renamed from check_current_matrix_...
8689         * xterm.c: All references to phys_cursor_glyph changed.
8691         * dispextern.h (DISPEXTERN_H_INCLUDED: New include blocker.
8693         * xfaces.c: Comment update.
8695         * window.h (struct window): Make phys_cursor_glyph a struct glyph
8696         pointer. Remove phys_cursor_ascent, descent, etc.
8697         * dispnew.c (free_window_matrices): Free it.
8698         * window.c (make_window): Allocate it.
8699         (replace_window): Ditto.
8700         * xterm.c (x_draw_phys_cursor_glyph): Draw it.
8701         (x_display_and_set_cursor): Fill it.
8702         (x_phys_cursor_in_rect_p): Use it.
8703         (x_draw_hollow_cursor): Ditto.
8704         (x_draw_bar_cursor): Ditto.
8705         (x_erase_phys_cursor): Ditto.
8707         * xdisp.c (skip_in_display_line_to): Use SET_INFO_FROM_CURSOR.
8709         * xterm.c (XTget_display_info): Handle 3D facess.
8710         (draw_glyphs): Ditto.
8712         * xdisp.c (Fdump_redisplay_state): Change interactive spec to "p".
8714         * xfaces.c (Fset_face_attribute_internal): New face attribute
8715         shadow-thickness.
8716         (copy_face): Handle shadow_thickness.
8717         (face_eql): Ditto.
8718         (merge_faces): Ditto.
8719         (compute_base_face): Ditto.
8721         * dispextern.h (struct display_cursor): New member start_of_3d_run_p.
8722         (struct display_info): Ditto.
8723         (SET_INFO_FROM_CURSOR): Transfer it to display_info.
8724         * xdisp.c (compute_cursor_face): Set it.
8725         (advance_display_cursor): Clear it.
8727         * xdisp.c (init_string_cursor): Initialize face_id to -1.
8728         (init_string_cursor): Init face_id to zero.
8730         * dispextern.h (struct face): New member shadow_thickness.
8732         * xdisp.c (compute_cursor_face): Set limit for text property 
8733         search to 100.
8735         * dispnew.c (update_window_line): Try to resynch with current line
8736         to prevent mode line flickering.
8738 1997-10-26  Gerd Moellmann  <gerd@acm.org>
8740         * dispnew.c (set_window_cursor_after_update): React again 
8741         on cursor_in_echo_area >= 0.
8743         * xdisp.c (echo_area_display): Clear desired matrix before
8744         displaying into it.
8745         (display_menu_bar): Clear glyph row instead of hoping it is not
8746         enabled.  This is safer.
8748         * dispnew.c (check_current_matrix_invariants): Check only
8749         visible rows.
8751         * xdisp.c (try_window_id): Handle window end setting in case of
8752         display to end of window, but only non-text lines displayed.
8754         * dispnew.c (check_current_matrix_invariants): Check nrows for zero.
8755         (check_current_matrix_invariants): Check used counts.
8757         * Revisiob v114.
8759         * dispnew.c (scrolling): Use hash codes from rows.
8761         * xdisp.c (Fdump_redisplay_state): Dump current matrix.
8763         * dispnew.c (scrolling_window): Invalidate conflicting runs.
8765 1997-10-25  Gerd Moellmann  <gerd@acm.org>
8767         * dispextern.h (struct glyph_matrix): Flag no_scrolling_p.
8768         * dispnew.c (update_window): Use it.
8769         (clear_glyph_matrix): Clear it.
8770         * xdisp.c (try_window_id): Set it.
8772         * dispextern.h (struct glyph_row): New flag ends_at_zv_p.
8774         * xdisp.c (redisplay_internal): Increment glyph positions differently.
8776         * dispextern.h: More comments etc.
8778 1997-10-24  Gerd Moellmann  <gerd@acm.org>
8780         * dispnew.c (set_window_cursor_after_update): Set cursor
8781         for cursor_in_echo_area == 0 to (0, 0).
8783         * dispextern.h (struct glyph_row): New flags continuation_line_p
8784         and displays_text_p.
8785         (MATRIX_ROW_DISPLAYS_TEXT_P): Use displays_text_p.
8786         * xdisp.c (display_line): Set them.
8787         (try_window_id): Move to start of continuation line to find out
8788         continuation_line_width.
8789         (first_unchanged_current_row): Don't retract row if continued,
8790         truncated etc.
8792         * xterm.c: Map X coordinates.
8794 1997-10-23  Gerd Moellmann  <gerd@acm.org>
8796         * dispnew.c (buffer_posn_from_coords): Translate X for right to
8797         left text.
8799         * xdisp.c (display_line): Set right_to_left_p after clearing the row.
8801         * xterm.c (XTclear_end_of_line): Respect right_to_left_p.
8803         * xdisp.c (try_window_id): clear desired matrix if not successul.
8805         * xdisp.c (try_window_id): Call update_window_begin_hook/end_hook.
8807         * dispnew.c (update_window_begin_hook, update_winodw_end_hook):
8808         Set this to functions to be called before/after window updates.
8809         (direct_output_for_insert): Call them.
8810         (update_window): Ditto.
8811         (update_frame): Call update_begin/ update_end for windows.
8813         * xterm.c (XTupdate_window_begin): Called before window updates.
8814         (XTupdate_end): Called after window updates.
8815         (x_initialize): Set hooks to above.
8817         * xdisp.c (init_display_info): Initialize c and len of
8818         display_info.
8820         * xterm.c (x_get_char_font_and_encoding): Bug fix.  Don't load
8821         fonts more than once.
8823 1997-10-22  Gerd Moellmann  <gerd@acm.org>
8825         * xdisp.c (display_line): Handle most common case of current_x <
8826         last_visible_x separately.
8828         * dispextern.h (display_element_type): DISP_ELLIPSIS removed.
8830         * dispnew.c (update_window_line): Compare pixel widths of glyphs
8831         so that face extending space doesn't compare equal to normal space
8832         with same face.
8834         * xdisp.c (display_line): Make sure we have a position for
8835         a line end in an otherwise blank line if face is extended.
8837         * dispnew.c (direct_output_for_insert): Increment row end position.
8839         * window.c (Fpos_visible_in_window_p): Use old meaning of 
8840         window_end_pos.
8842         * xdisp.c (init_display_cursor_from_glyph_pos): New.
8844         * dispextern.h (MATRIX_ROW_FIRST_POS): Use row start.
8846         * dispnew.c (increment_glyph_row_buffer_positions): Adjust
8847         start and end positions in rows.
8848         (increment_glyph_row_buffer_positions): Stop adjusting at
8849         glyphs with positions <= 0.
8851         * dispextern.h (struct glyph_pos): Structure desribing a text
8852         position including position in overlay. 
8853         (struct glyph_row): Use it for start and end positions.
8854         (struct display_cursor): Use it.
8855         * xdisp.c: Use it.
8856         (display_line): Set row start and end positions.
8858         * dispnew.c (copy_row_except_pointers): Use bcopy and struct
8859         assignment.
8861 1997-10-21  Gerd Moellmann  <gerd@acm.org>
8863         * dispnew.c (update_window): Add scrolling_window again.  It's
8864         necessary for scroll_step != 0.
8866         * xdisp.c (redisplay_window): Use vmotion for scroll_step
8867         scrolling.
8869         * xdisp.c (last_unchanged_current_row): Use window_end_vpos.
8871         * xterm.c (XTupdate_end): Flush only for messages.
8873         * xdisp.c (try_window_id): Assert last_unchanged_row >=
8874         first_unchanged_row.
8876         * xterm.c (XTupdate_end): Flush if miniwindow.
8878         * dispnew.c (matrix_row_last_pos): New function.
8879         * dispextern.h (MATRIX_ROW_LAST_POS): Call it.
8880         Large comment moved to xdisp.c. 
8882         * xdisp.c (redisplay_window): Bug fix: PT set to value > Z.
8883         (skip_via_matrix): Check window_end_valid instead of
8884         display_completed.
8886         * dispnew.c (scroll_glyph_matrix_range): Bug fix.
8887         (update_window): scrolling_window commented out.  It has negative
8888         effect most of the time.
8890         * xdisp.c (try_window_id): Correct parameters to
8891         scroll_glyph_matrix_range.
8893         * xterm.c (XTupdate_end): XFlush commented out.  
8895         * window.h: Comments for window_end_pos/vpos.
8897         * xdisp.c (skip_to): assert current_buffer is the buffer
8898         of the window in which we are skipping.
8900         * dispnew.c (update_window_line): Optimized clear_end_of_line.
8902         * xterm.c (draw_glyphs): Bug fix.  Return window relative X
8903         reached.
8905 1997-10-20  Gerd Moellmann  <gerd@acm.org>
8907         * dispextern.h (MATRIX_ROW_LAST_POS): Go back one glyph if this is
8908         a face extending glyph.
8910         * xdisp.c (try_window_id): Check if point will appear.  
8911         (set_cursor_from_row): Set cursor position from a glyph row.
8913         * dispnew.c (update_window_line): Write entire line if hash
8914         codes of lines differ.
8916         * dispextern.h (MATRIX_ROW_EXTENDS_FACE_P): Value is non-zero
8917         if glyph row has an infinite width glyph at its end.
8919         * xdisp.c (last_unchanged_current_row): Respect partially visible
8920         lines when looking for the last row displaying text.
8921         (try_window_id): Handle partially visible lines better.
8923 1997-10-19  Gerd Moellmann  <gerd@acm.org>
8925         * dispnew.c (update_window): Remove unused variable.
8926         (update_window_line): Simplified.
8928         * xterm.c (x_get_char_font_and_encoding): Handle most common
8929         case at the beginning.
8931         * xdisp.c (advance_display_cursor): Dispatch on method and
8932         order if statements by expected call frequency.  Fixed unclosed
8933         comment.
8935         * xdisp.c (try_window_id): New implementation.
8937         * dispnew.c (increment_glyph_row_buffer_positions): Capture
8938         rows displaying a line end, only.
8940 1997-10-18  Gerd Moellmann  <gerd@acm.org>
8942         * window.c (Fpos_visible_in_window_p): Remove use of window_end_vpos.
8944 1997-10-14  Gerd Moellmann  <gerd@acm.org>
8946         * xdisp.c (display_line): Mark empty lines not corresponding to
8947         text with position -1.
8949         * xterm.c (x_erase_phys_cursor): Don't bother to erase cursor if
8950         not within window matrix bounds.
8952         * dispextern.h (struct display_cursor): New member REGION_SHOWING_P.
8953         (struct display_info): NGLYPHS_TO_IGNORE removed.
8954         * xdisp.c: References to NGLYPHS_TO_IGNORE removed.
8955         * term.c: Ditto.
8956         * xterm.c: Ditto.
8958         * xdisp.c (init_display_cursor): Set it.
8959         (display_line): Use it to set W->REGION_SHOWING.
8961         * xdisp.c (skip_via_matrix): Check for overlay arrow.
8963         * region-cache.h: functino prototypes with PROTO.
8965         * dispnew.c (buffer_posn_from_coords): Use -1 as skip position.
8967         * xdisp.c (skip_via_matrix): Check for rows that don't contain
8968         a position.
8970         * xterm.c (XTmouse_position): Calculate LAST_MOUSE_GLYPH 
8971         rectangle based on minimum character bounds.
8973         * keyboard.c (make_lispy_event): mouse clicks; don't do frame
8974         glyph position calculations.
8975         (make_lispy_movement): Use buffer_posn_from_coords and window
8976         relative coordinates.
8978         * xterm.c (construct_mouse_click): Remove #if 0 case.
8980         * dispextern.h (MATRIX_ROW_BOTTOM_Y): Return bottom pixel y of
8981         given row.
8983         * xdisp.c (skip_via_matrix): Skip using current matrix if up to 
8984         date. 
8985         (skip_to): Use it.
8986         (redisplay_window): Remove code skipping using current matrix.
8988 1997-10-13  Gerd Moellmann  <gerd@acm.org>
8990         * xdisp.c (redisplay_window): Use available current matrix to
8991         skip faster when only point is moved withing the window.
8993         * intervals.c: Include stdio.h.  
8994         (find_interval): Trace to stderr to catch some nasty error
8995         that did not yet occur again with tracing.
8996         (set_point): Ditto.
8998         * dispnew.c (shift_glyph_matrix): Experimental code for handling
8999         cursor positioning on partially visible lines.
9000         (set_window_cursor_after_update): Ditto.
9002         * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): bug fix.
9004         * window.h (struct window): start_y removed.
9006         * window.c (make_window): start_y removed.
9007         (replace_window): Ditto.
9009         * xdisp.c (last_max_ascent, last_max_descent):  Ascent and 
9010         descent values of the last line processed by skip_to.
9011         (redisplay_window): Use them.
9012         (skip_to): Set them.
9014         * dispextern.h (struct display_cursor): New member METHOD.
9016         * xdisp.c: Use function member METHOD.
9018         * xdisp.c (set_next_stop_pos): Determine next position at which to
9019         check for face properties, invisible text properties, and overlays.
9020         (compute_cursor_face): Use it.
9021         (get_overlays_for_cursor): Ditto.
9022         (reseat_cursor): Ditto.
9023         (next_display_element): Ditto.
9025 Sun Aug 24 08:50:52 1997  Gerd Moellmann  <gerd@acm.org>
9027         * termhooks.h: Some hooks with prototypes.
9029         * term.c: Some hooks with function prototypes.
9030         
9031         * xdisp.c (reseat_cursor):  Additional argument force_p.  Avoid
9032         computing face if possible.
9034         * xdisp.c (next_display_element):  Use face from glyph from display
9035         table only if != 0.
9037         * emacs.c: FreeBSD headers for profiling removed.
9039         * dispnew.c (direct_output_for_insert): Don't use PT-1 for 
9040         display cursor, use DEC_POS instread. 
9042         * xfaces.c (load_font): Use x_load_font to load fonts so that
9043         all fonts are in the font table. 
9044         (unload_font): Don't XFreeFont.
9046         * dispnew.c (row_equal_p): Compare ascent, descent and visible
9047         row height.
9049         * xterm.c (draw_glyphs): Use 8-bit functions if possible.
9050         (x_erase_phys_cursor): Clear only visible part of row.
9051         (x_draw_bar_cursor): Set clipping.
9052         (x_draw_hollow_cursor): Ditto.
9053         (x_display_and_set_cursor): Remove clipping.
9054         (expose_window_tree): Take trunc border into account.
9055         (x_phys_cursor_in_rect_p): Test if phys_cursor intersects a rect.
9056         (expose_window): Use it.
9058         * xdisp.c (display_string): Catch case that we are called with
9059         current_x already beyond max_x.
9060         (global): Fix usage of FRAME_WINDOW_P <-> FRAME_WINDOW_REDISPLAY_P.
9061         (init_display_info): Subtract vertical border glyph from
9062         last_visible_x.
9064         * scroll.c (scrolling_window_1): Removed.
9066         * dispnew.c (adjust_frame_glyphs): Split into two functions,
9067         based on redisplay method used.
9068         (adjust_frame_glyphs_for_frame_redisplay): Part for frame
9069         based redisplay.
9070         (adjust_frame_glyphs_for_window_redisplay): Part for purely
9071         window based redisplay.
9073         * frame.h (FRAME_WINDOW_REDISPLAY_P): Changed to not depend
9074         on data structures.
9076         * dispnew.c (adjust_glyph_matrix): Additional parameter W.
9077         Handle own storage for purely window based redisplay.
9078         (allocate_matrices_for_frame_redisplay): Formerly part of
9079         allocate_matrices.  
9080         (allocate_matrices_for_window_redisplay): Ditto.
9082         * dispextern.h (struct glyph_matrix): window_top_y,
9083         window_height.
9085         * dispnew.c (allocate_matrices_for_window_redisplay): Detect
9086         and optimize some common cases of window changes.
9088         * emacs.c (main): Remove own profiling code because 0.95 now
9089         has it in.
9091 Fri Aug 22 18:46:43 1997  Gerd Moellmann  <gerd@acm.org>
9093         * xterm.c (XTupdate_end): Draw horizontal border at right
9094         position.
9095         (expose_window): Draw vertical border.
9096         (XTclear_end_of_line): Accept width <= 0 and height <= 0 but
9097         don't do anything.
9099         * xdisp.c (redisplay_internal): Set update_mode_line if paused
9100         for non full width windows only if not window redisplay.
9102         * dispnew.c (update_window_tree): Or paused_p return of called
9103         functions.
9105         * xterm.c (x_display_and_set_cursor): Return if hpos/vpos outside
9106         of window.
9108         * window.c (Fset_window_configuration): adjust_glyphs being
9109         called twice.
9110         (Fset_window_configuration): Set frame garbaged if not all
9111         leaf windows reused.
9113 1997-08-21  Gerd Moellmann  <gerd@acm.org>
9115         * dispnew.c (clear_glyph_matrix): Additional argument specifiying
9116         that rows should really be cleared.  Used for current matrices.
9118         * dispnew.c (scrolling_window):  Bug fix.
9119         (line_dance_hook):  Formerly line_dance_fn, take only one 
9120         parameter.
9122         * dispextern.h (struct run): Remove current_vpos.
9124         * xterm.c (do_line_dance): Only one parameter.
9126         * xdisp.c (display_line): set continued_p.
9128         * dispextern.h (struct glyph_row): New flag continued_p.
9129         Fix truncated_on_left_p and truncated_on_right_p to be bits.
9130         (struct glyph_row): 
9132 Thu Aug 21 14:37:34 1997  Gerd Moellmann  <gerd@acm.org>
9134         * xdisp.c (skip_vertically_backward): Avoid negative vpos values
9135         when calling skip_to for continued lines.
9137         * dispnew.c (change_frame_size_1): Set frame garbaged.
9139         * xterm.c (expose_window): Check enabled_p of rows.
9141         * xdisp.c (redisplay_internal): Compare line heights before and
9142         now for redisplay optimization 2 (hit).
9143         (display_line): Set this_line_pixel_height.
9145         * xterm.c (x_draw_row_borders): Use FRAME_MODE_LINE_HEIGHT height
9146         value.
9147         (x_clip_to_row): Use MATRIX_ROW_VISIBLE_HEIGHT. Simplified.
9148         (do_line_dance): Simplified and pixel corrected.
9150         * dispnew.c (scrolling_window): Simplified.
9152         * xterm.c (x_draw_3d_border): Inset rectangle by line width.
9154         * dispnew.c (update_window): Add FRAME_MODE_LINE_BORDER_WIDTH
9155         to mode line row->x.
9157 Wed Aug 20 11:23:28 1997  Gerd Moellmann  <gerd@acm.org>
9159         * xterm.c (x_get_char_font_and_encoding): Don't let fontset
9160         override font of face.
9161         (draw_glyphs): Correct return value.
9162         (XTclear_end_of_line): Compare differently with output cursor
9163         position.
9164         (x_draw_hollow_cursor): 2 parameters, window and row.
9166         * dispnew.c (update_window_line): If rows have different height
9167         or y, write entire line.
9169         * xdisp.c (compute_line_metrics): reset max_ascent and max_descent
9170         of info struct.
9172         * xfaces.c (Fset_face_attribute_internal): Don't call 
9173         frame_update_line_height.
9174         (merge_faces): Don't use default font if new font has different
9175         size.
9177 Tue Aug 19 14:38:05 1997  Gerd Moellmann  <gerd@acm.org>
9179         * xterm.c (x_display_and_set_cursor): Use FONT_WIDTH if width
9180         unknown.  Some fonts have min_width zero.
9181         (draw_glyphs): Don't draw underlines to the end of the display
9182         line if face is merely extended to that point.
9183         (draw_glyphs): Don't assume background is filled if
9184         just_foreground_p but extending to end of line.
9186         * xterm.c (XTclear_end_of_line): Clip only to display_height - 1
9187         for partially visible last lines.
9188         (x_clip_to_row): Ditto.
9189         (x_clip_to_row): Clip to display_height-1 if y + line_height >
9190         display_height since line_height is really a line distance.
9191         (x_display_and_set_cursor): If cursor on padding glyph, use
9192         min_bounds pixel width.
9194 Mon Aug 18 09:39:18 1997  Gerd Moellmann  <gerd@acm.org>
9196         * xterm.c (x_clip_to_row):  Height value was 1 too large.
9197         (XTclear_end_of_line):  Clip to display area.
9199         * xfns.c (x_figure_window_sizes):  Add trunc border width
9200         to frame pixel width.
9202         * xdisp.c (next_display_element): Don't display overlay strings
9203         within invisible text.
9204         (skip_vertically_backward):  Skip display lines. 
9206 Sat Aug 16 13:13:32 1997  Gerd Moellmann  <gerd@acm.org>
9208         * xdisp.c (x_consider_frame_titie): Don't pad with blanks.
9210         * xdisp.c (next_display_element):  Next invisible
9211         text check position computed differently.
9213         * dispextern.h (struct display_cursor): last_invisible_text_pos
9214         and display_ellipsis_for_invisible_p removed.
9216         * xdisp.c (next_display_element):  Set last_invisible_text_pos
9217         to the last position at which invisible text was found.  Don't
9218         decrement cursor.pos for newlines and cr with ellipsis.  Set
9219         dpvec for `...' due to invisible text directly.  
9220         (redisplay_internal):  Don't assert that cursor is at PT after
9221         skip_to.  It may be in invisible text.
9223         * keyboard.c (make_lispy_event): For mouse clicks, use 
9224         x_y_to_hpos_vpos.
9226         * xdisp.c (next_display_element):  Call get_overlays_for_cursor when 
9227         next_overlay_pos is reached.  Use limit cursor.pos + 100 when
9228         checking for invisible text.
9230         * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed.
9232         * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c
9234         * xfns.c (x_contour_region):  Use pixel coordinates from window
9235         cursor instead of WINDOW_TO_FRAME_H/VPOS.
9237         * dispextern.h (FRAME_TO_WINDOW_HPOS, FRAME_TO_WINDOW_VPOS):
9238         Removed.
9240         * dispnew.c (frame_to_window_hpos, frame_to_window_vpos): Removed.
9242         * xterm.c (x_y_to_hpos_vpos):  Get hpos/vpos from window relative
9243         pixel coordinates.
9244         (note_mouse_highlight): Use it.
9246         * xdisp.c (echo_area_display):  Ignore calls for terminal frames
9247         under a window system.
9249         * dispnew.c (adjust_frame_glyphs): Call redraw_frame if 
9250         necessary.
9251         (update_window_line): Add width of face padding glyph to 
9252         displayed widths of rows.
9254         * xterm.c (x_display_and_set_cursor):  Set clipping after
9255         erasing cursor.
9256         
9257         * window.c (Fset_window_configuration): Free only those 
9258         window matrices not reused.
9259         (get_leaf_windows): Build vector of leaf windows.
9260         Corrupted archive restored from v77.
9262         * xdisp.c (display_string): stop at >= last_visible_x if truncating
9263         like display_line does.
9265         * xdisp.c (display_mode_line): Don't hscroll mode line.
9267         * xterm.c (draw_glyphs): Wrong run_width computed for horiz. split
9268         windows.
9269         (x_scroll_bar_create): #3039 Clear area below scroll bar to remove
9270         garbage between mode lines when splitting windows horiz.
9272         * dispnew.c (direct_output_for_insert): Bug fix.
9274         * dispextern.h (struct display_cursor): New member string_length.
9276         * xdisp.c (next_display_element): Return padding spaces.
9277         (init_string_cursor): take precision and field_width
9278         (display_string): Use string cursor, skip over invisible text.
9280 Thu Aug 14 10:41:41 1997  Gerd Moellmann  <gerd@acm.org>
9282         * xterm.c (x_clip_to_row): Clip to partially visible lines.
9283         (x_display_and_set_cursor): Call it.
9284         (draw_glyphs): Call it
9285         (draw_bitmap): Call it.
9287         * dispnew.c (adjust_frame_glyphs): Optimize frame garbaging. 
9288         (allocate_leaf_matrix): Return flags.
9289         (row_equal_p): Compare enabled_p.
9291         * xterm.c (x_erase_phys_cursor):  Set phys_cursor_on_p to 0
9292         for type == -1.
9294         * xterm.c (x_display_and_set_cursor): Bar cursor 1 pixel taller.
9295         (draw_glyphs):  Clip height one pixel taller. 
9297         * dispnew.c (direct_output_for_insert): Give up for hscrolled 
9298         mini window.
9300         * xdisp.c (display_line): don't scroll mini prompt.
9302         * xdisp.c (echo_area_display): Call update_single_window if 
9303         possible. 
9305         * dispnew.c (update_window_line):  Call scrolling_window.
9306         (scrolling_window): work on enabled desired lines only.
9307         (update_single_window): Update a single window like update_frame
9308         does for all windows.
9309         (update_window, update_window_tree): Additional argument 
9310         no_scrolling_p.
9311         (update_frame): Pass no_scrolling_p to update_window_tree.
9312         (update_window): Don't call scrolling_window if no_scrolling_p.
9314         * xterm.c (x_erase_phys_cursor): Do nothing if type == -1.
9315         Erase under hollow cursor. 
9316         (x_display_and_set_cursor): Do nothing if cursor glyph row 
9317         not enabled.  Draw bar cursor 1 pixel smaller.
9319         * dispnew.c (adjust_frame_glyphs): don't set frame garbaged
9320         since update will follow soon.
9322         * xdisp.c (echo_area_display): Unitialized variable.
9324         * xterm.c (draw_bitmap): previously draw_truncation; draw
9325         overlay arrow bitmap.
9327         * xdisp.c (display_line): for truncated lines, consider everything
9328         up to the final \n as part of the line for cursor positioning. 
9330         * xterm.c (draw_truncation): take FRAME_X_TRUNC_WIDTH into account.
9331         (x_after_update_window_line): clear trunc marks.
9333         * xterm.h (FRAME_X_TRUNC_WIDTH).
9335         * frame.h (FRAME_TRUNC_WIDTH):  width of area at the left margin
9336         of a window reserved for truncation mark.
9338         * dispextern.h: Take FRAME_TRUNC_WIDTH into account. 
9340         * dispnew.c (update_window_line): Call after_update_windwo_line-
9341         hook.  
9343         * xdisp.c (display_line): Set overlay_arrow_p in row.
9345         * dispextern.h (struct glyph_row): New flag overlay_arrow_p.
9347         * xterm.c (x_after_update_window_line): Draw truncation marks.
9349         * xdisp.c (display_line): Insert truncation for lines with
9350         current_x > 0.
9352         * xterm.c (x_draw_row_borders): Convert y to frame coords.
9353         Correct y by 1.
9354         (x_display_cursor): Use default font width if width not
9355         known. 
9357         * xdisp.c (echo_area_display): set row->y.
9359         * dispnew.c (set_window_cursor_after_update): Don't assume
9360         all rows are enabled.
9362         * xdisp.c (skip_in_display_line_to): Test cursor.position instead
9363         of cursor.pos.
9364         (skip_in_display_line_to): Check cursor.position after call to
9365         next_display_element.
9367         * dispextern.h (CURSOR_AT_P): Test if cursor has reached 
9368         buffer position.
9370         * xdisp.c (display_line): Set row->y here.
9371         (skip_in_display_line_to): Test for to_pos after all glyphs
9372         have been added to hpos so that hpos is at the end of all
9373         glyphs for to_pos.
9374         (start_display): Remove assertion.
9376         * dispnew.c (direct_output_forward_char): Bug fix, = instead of
9377         ==.
9378         (update_window): Don't set row->y here.
9380         * xdisp.c (next_display_element): Don't translate control chars
9381         from display table entries.
9383         * dispnew.c (direct_output_for_insert): Set cursor before 
9384         update end to prevent cursor flickering.  Revert changes to
9385         setting cursor.endpos.
9387 Wed Aug 13 10:46:12 1997  Gerd Moellmann  <gerd@acm.org>
9389         * dispnew.c (direct_output_for_insert):  Don't set cursor.endpos
9390         to PT because this prevents multi-byte characters from being
9391         recognized.
9393         * xdisp.c (skip_to, display_line):  Advance cursor at end of 
9394         truncated line. 
9396         * xterm.c (x_draw_3d_borders): Use CapRound. Struct rect
9397         replaced by XRectangle.
9399         * dispnew.c (scrolling_window): New method.
9401         * xterm.c (do_line_dance): New implementation, new method.
9402          
9403         * xdisp.c (draw_glyphs):  Draw truncation bitmaps. Clip to
9404         visible part of line.
9406         * dispnew.c (update_window_line): Fill inverse video lines
9407         with infinite width space.
9408         (update_window): Handle completely empty matrices.
9409         (set_window_cursor_after_update): Bug fix.
9411         * xterm.c (draw_glyphs): Stop drawing at right window end. 
9413         * dispnew.c (update_window_line): Don't ignore spaces, don't
9414         fill with spaces.
9416         * xdisp.c (compute_line_metrics): Stop adding glyph widths with
9417         the first glyph having width 0.
9419         * xterm.c (draw_glyphs): Let a glyph pixel with of 0 denote
9420         a glyph that extends to the end of the line. 
9422         * xdisp.c (display_line): Insert one padding glyph
9424         * xdisp.c (skip_in_display_line_to): Don't subtract shift left
9425         amount from info.current_x.
9426         (display_line): Ditto.
9428         * dispnew.c (direct_output_for_insert): Correct use of cursor.x.
9429         (change_frame_size_1): Correct cursor.x if frame gets too small.
9430         (update_window_line): Start at row->x.
9432         * xdisp.c (redisplay_internal): Correct cursor.x (everwhere
9433         in xdisp.c).
9435         * xterm.c (set_output_cursor): Use window relative X/Y.
9436         (global): Use window relative output cursor x/y.
9437         (draw_glyphs): Remove y param. Pass window relative x/y.
9439         * dispnew.c (update_window): Start rows at start_y.
9440         (update_window): Don't try scrolling because it wouldn't work
9441         with variable height lines, anyway.
9443         * dispextern.h (struct glyph_row): Remove shift_left_by,
9444         add x.
9446         * window.h: (struct window): New member start_y.
9448         * window.c (replace_window): Initialize start_y.
9449         (make_window): Ditto.
9451 Tue Aug 12 14:53:04 1997  Gerd Moellmann  <gerd@acm.org>
9453         * xterm.c (draw_glyphs): Clip rows that would paint over
9454         the mode line. 
9456         * dispnew.c (update_window): Take mode line border into 
9457         account. 
9459         * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Number of pixels
9460         of border around mode line. 
9462         * xterm.c (x_draw_row_borders): Bug fix.
9463         (x_erase_phys_cursor): Set pyhs_cursor.x/y before calling
9464         drawing functions.
9466         * xterm.c (x_draw_row_border): Experimental; draw 3d borders
9467         around modeline instead of inverting it. 
9469         * xterm.c (glyph_to_pixel_coords): Use current matrix. 
9471         * dispnew.c (buffer_posn_from_coords): Use SKIP_TO.  Now takes
9472         window relative pixel coordinates as arguments.
9474         * keyboard.c (make_lispy_event): Use BUFFER_POSN_FROM_COORDS
9475         with window relative pixel coordinates.  Use GLYPH_TO_PIXEL_-
9476         COORDS mit new arguments.
9478 Mon Aug 11 12:32:34 1997  Gerd Moellmann  <gerd@acm.org>
9480         * xdisp.c (start_display): Use SKIP_TO instead of SKIP_IN-
9481         DISPLAY_LINE.  
9483         * keyboard.c (make_lispy_event): WINDOW_FROM_COORDINATES with
9484         pixel coords.
9485         (make_lispy_movement): Same.
9487         * xterm.c (note_mouse_highlight): Use WINDOW_FROM_COORDINATES
9488         with new parameter meaning.
9490         * window.c (Fcoordinates_in_window_p): Convert Lisp params
9491         from canon units to pixels.
9492         (coordinates_in_window): Pixel based.
9493         (Fcoordinates_in_window_p): Convert result pixel values back
9494         to canonical units.
9496         * window.h: phys_cursor_ascent + descent instead of height.
9498         * xterm.c (XTget_char_info): Use per char metrics for multi-byte
9499         chars with charset width 1.
9501         * dispnew.c (direct_output_for_insert): Set updated_row.
9503 Sat Aug  9 12:11:44 1997  Gerd Moellmann  <gerd@acm.org>
9505         * dispextern.h (struct glyph): Padding flag removed.
9507 Tue Aug  5 09:59:08 1997  Gerd Moellmann  <gerd@acm.org>
9509         * sysdep.c (reset_sys_modes): cursor_to with 4 params.
9511         * keyboard.c (interrupt_signal): Cursor_to with 4 params.
9513         * dispnew.c (update_window_line): Use pixels.
9515         * xdisp.c (compute_line_metrics): Correct pixel_width by
9516         shift_left_by.
9518         * dispextern.h (struct glyph_row): FIRST_SHIFTED_LEFT_GLYPH
9519         removed.  Remove references to it everywhere.  Reverse_p in 
9520         glyph_row -> right_to_left_p.  Change references to it.
9522 Mon Aug  4 18:09:27 1997  Gerd Moellmann  <gerd@acm.org>
9524         * dispnew.c (direct_output_for_insert): Use INSERT_GLYPHS.
9526         * xterm.c (XTinsert_glyphs): Implement it.
9528         * term.c (insert_glyphs): UPDATING_FRAME may be NULL in case
9529         of a call from DIRECT_OUTPUT_FOR_INSERT.
9531         * window.h (struct cursor_pos): Keeps both matrix positions
9532         and pixel positions.
9533         (struct window): Use it.
9535         * dispnew.c (direct_output_for_insert): New version.
9537         * xdisp.c (redisplay_internal): Don't do anything if it has
9538         already be done directly.
9540         * keyboard.c (command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
9541         for any character.
9543 Thu Jul 31 15:39:10 1997  Gerd Moellmann  <gerd@acm.org>
9545         * xdisp.c (echo_area_display): Use new DISPLAY_STRING.
9547 Wed Jul 30 12:18:03 1997  Gerd Moellmann  <gerd@acm.org>
9549         * dispextern.h (struct glyph_row): MAX_ASCENT, MAX_DESCENT.
9550         (struct glyph): ASCENT, DESCENT.
9551         (MATRIX_ROW_PIXEL_HEIGHT): Pixel height of row.
9552         (GLYPH_PIXEL_HEIGHT): Pixel height of glyph.
9554         * xterm.c (XTget_display_info): Correct tab computation.
9556         * term.c (get_display_info): Correct tab computation.
9558         * dispextern.h (struct display_cursor): WHAT_FOUND, SOURCE_OBJECT.
9559         Renamed from CHAR_CURSOR.
9561 Tue Jul 29 12:52:40 1997  Gerd Moellmann  <gerd@acm.org>
9563         * xdisp.c (display_text_line): Mostly pixel oriented.
9565         * dispextern.h (struct glyph): BOX_WIDTH -> PIXEL_WIDTH.
9567         * term.c (append_intermediate_glyph): Generate padding glyphs.
9569         * xdisp.c (display_text_line): More into final direction.
9571         * xterm.c (XTget_char_info): Use WHAT field of CHAR_INFO.
9572         (XTget_char_info): Use tabs as multiples of spaces.
9574         * term.c (get_char_info): Use WHAT field of CHAR_INFO.
9575         Use tabs as multiples of spaces.
9577         * dispextern.h (struct char_info ): WHAT field.
9579         * term.c (encode_terminal_code): Don't use GLYPH_CHAR, use
9580         FAST_GLYPH_CHAR instead because GLYPH_CHAR won't remove faces.
9582 Mon Jul 28 14:23:06 1997  Gerd Moellmann  <gerd@acm.org>
9584         * dispnew.c (init_char_info): Correct TAB_WIDTH to a reasonable
9585         value.
9586         (init_char_info): Initialize with glyph row.
9588         * term.c (get_char_info): Check WANT_ELLIPSIS_P.
9590         * xterm.c (XTget_char_info): Check WANT_ELLIPSIS_P.
9592         * dispextern.h (struct char_info ): GLYPH_ROW for intermediate
9593         glyphs.
9595         * dispnew.c (init_char_info): Init GLYPH_ROW to NULL. CHAR_CURSOR
9596         moved to xdisp.c.
9598         * xdisp.c (display_text_line): Use CHAR_CURSOR.
9600         * xterm.c (x_append_intermediate_glyph): Intermediate glyph
9601         generation.
9602         (XTget_char_info): Ditto.
9604         * term.c (get_char_info): Intermediate glyph generation.
9605         (append_intermediate_glyph): Ditto.
9607 Sun Jul 27 18:57:24 1997  Gerd Moellmann  <gerd@acm.org>
9609         * dispnew.c (compute_char_cursor_face): Compute the face for a 
9610         CHAR_CURSOR.
9611         (init_char_cursor): Initialize a CHAR_CURSOR.
9612         (get_char_and_advance): Get next character to display.
9614         * dispextern.h (struct char_cursor): Cursor for iterating over
9615         display text of CURRENT_BUFFER.
9617 Sat Jul 26 13:33:03 1997  Gerd Moellmann  <gerd@acm.org>
9619         * term.c (get_char_info): Set MAX_PIXEL_WIDTH in CHAR_INFO.
9621         * dispextern.h (struct char_info ): Use LISP_CHAR_TABLE for DP.
9622         New member MAX_PIXEL_HEIGHT.
9624         * xterm.c (x_per_char_metric): Get per character metrics.
9625         (XTget_char_info): More cases covered.
9627         * term.c (get_char_and_info): Get next character and character
9628         display information.
9629         (get_char_info): Get character display information.
9631         * dispextern.h: Character display information.
9633         * xterm.c (x_get_char_font_and_encoding): Get font and 
9634         encode character.
9635         (XTget_char_info): Get display information about a character.
9637 Wed Jul 23 16:50:18 1997  Gerd Moellmann  <gerd@acm.org>
9639         * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Height is
9640         zero if window is mini-window.
9642         * xdisp.c: Include xterm.h or w32term.h for FRAME_LINE_HEIGHT.
9643         (try_window): DISPLAY_TEXT_LINE as long as Y < DISPLAY_HEIGHT.
9645         * dispnew.c (assign_row): Assign row pixel height. 
9646         (clear_glyph_row): Clear pixel height.
9647         (update_window): Use PIXEL_HEIGHT.
9649         * xdisp.c (display_string): Set row pixel height temporarily.
9650         (display_text_line): Ditto.
9652         * dispextern.h (GLYPH_PIXEL_WIDTH): 
9653         (GLYPH_PIXEL_HEIGHT): Get glyph pixel dimension.
9655         * frame.h (FRAME_DEFAULT_PIXEL_LINE_HEIGHT): Get height of 
9656         line in default font.
9657         (FRAME_DEFAULT_GLYPH_PIXEL_WIDTH): Get width of character
9658         in default font.
9659         (FRAME_MODE_LINE_PIXEL_HEIGHT): Get height of mode line.
9661         * xterm.h (FRAME_MODE_LINE_HEIGHT): Return height of mode line
9662         in pixels.
9664         * dispnew.c (allocate_leaf_matrix): Use window pixel macros.
9666         * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH):
9667         (WINDOW_DISPLAY_PIXEL_HEIGHT): 
9668         (WINDOW_DISPLAY_MODE_LINE_HEIGHT): 
9669         (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE): 
9670         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): 
9671         (WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X): 
9672         (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): 
9673         (WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y): Macros to get various
9674         pixel values related to windows.
9676 Mon Jul 21 12:22:02 1997  Gerd Moellmann  <gerd@acm.org>
9678         * xterm.c (XTflash): Flash last line of frame.
9680         * dispextern.h (cursor_in_echo_area): Extern declaration.
9682         * xterm.c (dumpglyphs): 8-bit version to test if my Xserver
9683         freezes stem from 16-bit functions.
9685         * xterm.c (x_display_and_set_cursor): Don't display hollow
9686         cursor in mini windows.
9688         * window.c (replace_window): Initialize PHYS_CURSOR_TYPE.
9689         (make_window): Ditto.
9691         * xterm.c (x_erase_phys_cursor): Erase cursor image.
9692         (x_display_and_set_cursor): Merged version of X_DISPLAY_BOX_CURSOR
9693         and X_DISPLAY_BAR_CURSOR.
9694         (x_display_cursor): Use it.
9695         (x_update_window_cursor): Use it.
9697         * xdisp.c (display_text_line): Set cursor for window even if not
9698         selected.
9700         * xterm.c (x_display_bar_cursor): Use HPOS and VPOS instead
9701         of X and Y to denote matrix positions.
9702         (x_display_cursor): Ditto.
9704         * dispnew.c (scrolling_window): Scrolling for windows.
9706 Wed Jul 16 13:37:51 1997  Gerd Moellmann  <gerd@acm.org>
9708         * dispnew.c (build_frame_matrix): Work on windows with update
9709         flag set.
9710         (build_frame_matrix_from_window_tree): Ditto.
9711         (build_frame_matrix_from_leaf_window): Ditto.
9713         * xdisp.c (echo_area_display): Set MUST_BE_UPDATED_P instead of
9714         building frame matrix.
9715         (redisplay_internal): Set window update flags instead of 
9716         building frame matrix.
9718         * minibuf.c (read_minibuf): Set MUST_BE_UPDATED_P instead of
9719         building frame matrix.
9721         * window.c (make_window): Initialize new members.
9722         (replace_window): Ditto.
9724         * xfns.c (Fx_create_frame): Don't set PHYS_CURSOR_X to -1.
9725         I don't believe this is really necessary.
9727         * dispnew.c (build_frame_matrix_from_leaf_window): Determine
9728         border glyph once. 
9730 Tue Jul 15 13:58:33 1997  Gerd Moellmann  <gerd@acm.org>
9732         * window.c (mark_window_cursors_off): Mark all cursors in 
9733         window tree off.
9735         * xterm.c (x_display_box_cursor): Window paraemter.  Use 
9736         window matrix.
9737         (glyph_to_pixel_pos): Convert matrix pos -> pixels.
9738         (pixel_to_glyph_pos): Convert pixel pos -> matrix pos.
9739         (x_update_cursor): Work on windows.
9740         (x_display_bar_cursor): Ditto.
9741         (x_draw_single_glyph): Ditto.
9743         * xterm.h: Prototype for X_DISPLAY_CURSOR.
9745         * xterm.c (XTcursor_to): Void return type.  Test for
9746         UPDATED_WINDOW.  Call x_display_cursor with window.
9747         (x_display_cursor): Void return type.  Window instead of frame
9748         parameter.
9750         * window.h (WINDOW_RIGHTMOST_P, WINDOW_TOPMOST_P): Use functions
9751         below.
9753         * window.c (window_rightmost_p, window_topmost_p): Based on
9754         window tree.
9756         * dispnew.c (adjust_frame_message_buffer): Allocate with
9757         FRAME_MESSAGE_BUF_SIZE.
9759         * window.h: PHYS_CURSOR_.* added.
9761         * frame.h (struct frame): Cursor information removed.
9763         * frame.h (FRAME_SCROLL_BAR_WIDTH): Removed because unused.
9764         (FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
9766         * window.h (WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
9768         * window.c (window_internal_width): Scroll bars no longer
9769         part of window.
9771         * xterm.c (XTclear_end_of_line): FRAME_LEFT_SCROLL_BAR_WIDTH
9772         removed.
9774         * xfns.c (x_set_scroll_bar_width): FRAME_LEFT_SCROLL_BAR_WIDTH
9775         removed.
9777         * xdisp.c (echo_area_display): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
9778         (redisplay_internal): Ditto.
9779         (redisplay_window): Ditto.
9780         (redisplay_window): Ditto.
9781         (display_text_line): Ditto.
9782         (display_mode_line): Ditto.
9784         * minibuf.c (read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
9786         * dispnew.c (set_cursor_to): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
9787         (direct_output_for_insert): Ditto.
9788         (direct_output_forward_char): Ditto.
9789         (update_frame_1): Ditto.
9791 Mon Jul 14 12:30:03 1997  Gerd Moellmann  <gerd@acm.org>
9793         * dispnew.c (updated_window): Set by UPDATE_WINDOW to the window
9794         being updated.
9795         (update_window): Set and clear it.
9797         * dispnew.c (update_window_line, update_window, scrolling_window):
9798         First versions.
9800         * dispnew.c (build_frame_matrix_from_leaf_window): Add vertical
9801         bar for window borders.
9802         (fill_up_glyph_row_area_with_spaces): Fill an area of a row
9803         with spaces.
9804         (fill_up_glyph_row_with_spaces): Call above function.
9806         * xdisp.c (display_text_line): Don't add vertical bar for
9807         window borders.
9808         (display_string): Ditto.
9810         * window.c (make_window): Init CURSOR_VPOS/HPOS.
9811         (replace_window): Ditto.
9813         * xterm.c (XTwrite_glyphs): Use selected window cursor position.
9815         * xfns.c (Fx_contour_region): Use selected window cursor position.
9816         (Fx_uncontour_region): Ditto.
9817         (Fx_select_region): Ditto.
9819         * frame.c (make_frame): Remove CURSOR_X/Y.
9821         * xdisp.c (redisplay_internal): Use window cursor position.
9823         * dispnew.c (update_frame_1): Use cursor position of selected
9824         window.
9825         (change_frame_size_1): Ditto.
9827         * xterm.c (XTupdate_begin): Set CURS_X/Y from selected window.
9828         (XTwrite_glyphs): Use cursor position of selected window.
9830         * xfns.c (x_set_scroll_bar_width): Set cursor pos of selected
9831         window.
9833         * dispnew.c (set_cursor_to): Set window cursor position.
9834         (direct_output_for_insert): Use window cursor position.
9835         (init_display): Don't use frame cursor position.
9837         * window.h: CURSOR_VPOS/HPOS added.
9839         * frame.h (struct frame): CURSOR_X/Y removed.
9840         (FRAME_CURSOR_X): Removed.
9841         (FRAME_CURSOR_Y): Ditto.
9843         * dispnew.c (direct_output_for_insert): LAST_POINT_X removed.
9844         (direct_output_forward_char): Ditto.
9846         * xdisp.c (redisplay_internal): LAST_POINT_X and LAST_POINT_Y
9847         removed.
9849         * window.c (make_window): LAST_POINT_X and LAST_POINT_Y removed.
9851         * window.h: LAST_POINT_X and LAST_POINT_Y removed.
9853 Sun Jul 13 14:18:24 1997  Gerd Moellmann  <gerd@acm.org>
9855         * xdisp.c: Bug fixes using SET_CURSOR with HPOS 0 instead
9856         of FRAME_LEFT_SCROLL_BAR_WIDTH.
9858         * dispextern.h: Changed function names.
9860         * dispnew.c (scrolling): Don't call SCROLLING_1 if WINDOW_SIZE
9861         < 2.
9862         (clear_window_matrices): Formerly two functions for desired
9863         and current matrix.
9864         (update_frame_1): Call CLEAR_DESIRED_MATRICES.
9865         (update_frame): Return return value from UPDATE_FRAME_1.
9867 Sat Jul 12 12:58:48 1997  Gerd Moellmann  <gerd@acm.org>
9869         * xdisp.c (try_window): Set WINDOW_END_VPOS with window relative
9870         LAST_TEXT_VPOS.
9872         * frame.c (set_menu_bar_lines): Adjust matrices.
9874         * dispnew.c (set_cursor_to): Set cursor position.
9876         * minibuf.c (read_minibuf): Build frame matrix.
9878         * xdisp.c (this_line_start_hpos): Renamed to
9879         THIS_LINE_START_WINDOW_HPOS to make it clear that this is window
9880         relative.
9881         (this_line_vpos): Renamed to THIS_LINE_WINDOW_VPOS for the same
9882         reason.
9884         * dispnew.c (build_frame_matrix): Don't clear rows of the 
9885         menu bar.
9886         (clear_window_records): Clear window rows.
9887         (clear_frame_records): Clear window and frame rows.
9888         (clear_glyph_matrix): Set all rows of a matrix to empty.
9890         * xdisp.c (echo_area_display): Parameter UPDATE_FRAME_P.  Update
9891         frame if set.
9892         (message2_nolog): Pass 1 to ECHO_AREA_DISPLAY.  UPDATE_FRAME
9893         removed.
9894         (redisplay_internal): Pass 0 to ECHO_AREA_DISPLAY.
9895         (redisplay_internal): Build frame matrix before UPDATE_FRAME.
9897         * dispnew.c (assign_row): Assign one glyph row to another.
9898         (mirrored_make_current): Use it.
9899         (mirror_make_current): Use it.
9900         (update_line): Rely on MIRRORED_MAKE_CURRENT to set flags and
9901         used counters for the current glyph row.
9902         
9904 Fri Jul 11 13:16:50 1997  Gerd Moellmann  <gerd@acm.org>
9906         * lisp.h: Prototype for SCAN_BUFFER.
9908         * xdisp.c (redisplay_windows): Simplified.
9910         * dispnew.c (window_to_frame_vpos): Convert window to frame vpos
9911         with debug checks.
9912         (window_to_frame_hpos): Convert window to frame hpos with checks.
9913         (frame_to_window_vpos): Convert frame to window vpos with checks.
9914         (frame_to_window_hpos): Convert frame to window hpos with checks.
9916         * dispextern.h: PRESERVE_OTHER_COLUMNS removed.
9918         * dispnew.c: PRESERVE_OTHER_COLUMNS removed.
9920         * xdisp.c (redisplay_internal): Another instance of
9921         DISPLAY_TEXT_LINE with window relative VPOS.
9922         (redisplay_internal): Remove PRESERVE_OTHER_COLUMNS.
9924         * dispnew.c (init_desired_glyphs): Do it on window matrices,
9925         only.
9927         * xdisp.c (try_window_id): Use CANCEL_WINDOW_LINE.
9928         (redisplay_internal): Ditto.
9930         * dispnew.c (cancel_window_line): Use window matrix.  Changed
9931         name to CANCEL_WINDOW_LINE.
9933         * xdisp.c (try_window_id): Use DISPLAY_TEXT_LINE with window
9934         relative VPOS.
9936         * dispextern.h (WINDOW_TO_FRAME_VPOS): Convert window vpos 
9937         to frame vpos. 
9938         (WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
9939         (FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
9940         (FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
9942         * xdisp.c (try_window_id): Use ADJUST_WINDOW_CHARSTARTS with
9943         window relative VPOS.
9944         (redisplay_internal): Use ADJUST_WINDOW_CHARSTARTS with window
9945         relative VPOS.
9947         * dispnew.c (adjust_window_charstarts): Use INCREMENT_GLYPH_-
9948         MATRIX_BUFFER_POSITIONS.
9950         * xdisp.c (try_window_id): Use SCROLL_FULL_WIDTH_WINDOW.
9952         * dispextern.h: Prototype for SCROLL_FULL_WIDTH_WINDOW.
9954         * dispnew.c (scroll_frame_lines): Make it work on window 
9955         matrix.  Change name to scroll_full_width_window.
9957         * xdisp.c (message2_nolog): Don't fwrite NULL message If
9958         NONINTERACTIVE.
9960 Mon Jul  7 14:44:38 1997  Gerd Moellmann  <gerd@acm.org>
9962         * dispnew.c (init_desired_glyphs): Clear both frame matrix
9963         and window matrices. 
9964         (adjust_window_charstarts): Use window matrix.
9965         (cancel_my_columns): Use window matrix.
9966         (direct_output_for_insert): Use window matrix, only.
9968         * xdisp.c (display_glyphs): Extracted code from DISPLAY_STRING.
9969         (display_string): Call display_glyphs.
9970         (display_menu_bar_string): Display a string in a menu bar line.
9971         (display_menu_bar): Use DISPLAY_MENU_BAR_STRING.
9972         (display_text_line): Use window matrix.
9973         (try_window): Use window relative positions.
9975 Sun Jul  6 17:02:26 1997  Gerd Moellmann  <gerd@acm.org>
9977         * dispnew.c (adjust_frame_glyphs): Allocate window matrices from
9978         (0, 0).
9979         (allocate_leaf_matrix): Add FRAME_MENU_BAR_LINES to the height of
9980         top-most windows.
9982         * window.h (WINDOW_TOPMOST_P): Added.
9984         * xdisp.c (echo_area_display): Use PREPARE_DESIRED_ROW.
9985         (redisplay_window): Ditto.
9986         (display_text_line): Ditto.
9987         (display_menu_bar): Ditto.
9988         (display_mode_line): Ditto.
9989         (display_mode_line): Use window matrix.
9990         (display_string): Use window matrix.
9991         (display_mode_element): Ditto.
9992         (echo_area_display): Don't display if frame has no pools yet.
9993         (echo_area_display): Work with window matrix for mini window.
9994         (redisplay_window): Use window marix for mini window.
9995         (display_text_line): Assume HPOS and VPOS are window relative and
9996         use that for DISPLAY_STRING.
9998         * dispextern.h: Prototype for prepare_desired_row.
10000         * dispnew.c (prepare_desired_row): Replacement for
10001         GET_DISPLAY_LINE.
10003         * dispnew.c (adjust_window_charstarts): Always allocate window
10004         matrices.
10005         (clear_glyph_row): Only reset used counters and flags.
10007 Sat Jul  5 14:55:44 1997  Gerd Moellmann  <gerd@acm.org>
10009         * dispnew.c (scroll_frame_lines): Don't assume first scolled
10010         line is non-empty. 
10011         (realloc_glyph_pool): Don't add 1 to the pool size.
10012         (adjust_glyph_matrix): Don't add 1 to pointers to glyph areas.
10014         * dispnew.c (line_hash_code): Don't use null-glyph end marker.
10015         (line_draw_cost): Ditto.
10016         (update_line): Ditto.
10017         (update_line): Use SPACE_GLYPH.
10018         (count_blanks): Additional parameter LEN.
10020         * xdisp.c (display_text_line): Use SPACE_GLYPH.
10021         (display_text_line): Don't add null-glyph end marker.
10022         (display_string): Use SPACE_GLYPH.
10023         (display_string): Don't use null-glyph end marker.
10025         * term.c (clear_end_of_line): Use SPACE_GLYPH.
10027         * dispnew.c (clear_glyph_row): Don't use null-glyph end markers.
10028         (fill_up_glyph_row_with_spaces): Ditto.
10029         (preserve_other_columns): Add SPACE_GLYPH at then end of desired
10030         rows, instead of null-glyphs.
10031         (direct_output_for_insert): Don't add null-glyph end marker.
10033         * scroll.c (do_direct_scrolling): Change algorithm to construct
10034         vector of lines assigned.  Call MIRRORED_LINE_DANCE:
10035         (do_scrolling): Ditto.
10037         * dispnew.c (mirror_line_dance): Mirror line assignments in a
10038         frame matrix in window matrices.
10039         (mirrored_line_dance): Do line assignments during scrolling.
10040         Maybe do corresponding assignments in window matrices.
10041         (check_window_matrix_pointers): Check that window rows and frame
10042         rows agree about glyph pointers.
10043         (check_matrix_pointers): Ditto.
10044         (mirrored_make_current): Make a row of a desired matrix current;
10045         maybe mirror the operation in window matrices.
10046         (mirror_make_current): Make window desired matrix row current when
10047         frame matrix row was made current.
10049 Fri Jul  4 13:27:46 1997  Gerd Moellmann  <gerd@acm.org>
10051         * dispnew.c (check_matrix_pointer_lossage): Check against
10052         pointer lossage in matrices.
10053         (get_glyph_matrix_row): Removed.
10055         * scroll.c (do_scrolling): Simplified.
10056         (do_direct_scrolling): Simplified.
10057         (scrolling_1): Pass CURRENT_MATRIX instead of FRAME to
10058         DO_.*SCROLLING.
10059         
10061         * dispnew.c (ins_del_glyph_rows): Insert/delete rows in a matrix.
10062         (rotate_vector): Removed.
10063         (rotate_pointers): Removed.
10064         (scroll_frame_lines): Simplified.
10066 Thu Jul  3 13:54:21 1997  Gerd Moellmann  <gerd@acm.org>
10068         * dispextern.h (MATRIX_ROW_SWAP_CONTENTS): Removed.
10070         * dispnew.c (increment_glyph_matrix_buffer_positions): Does
10071         what the name says.
10072         (clear_glyph_row): Make a glyph row structure empty.
10073         (make_matrix_row_current): Make a glyph row current.
10074         (make_window_matrix_row_current): Perform analogous row swaps
10075         for window matrices.
10076         (update_line): Call make_matrix_row_current.
10078 Wed Jul  2 13:43:35 1997  Gerd Moellmann  <gerd@acm.org>
10080         * dispextern.h (SET_MATRIX_ROW_ENABLED_P): Better macro name.
10081         (SET_MATRIX_ROW_INVERSE_P): Better name and HIGHLIGHT_P ->
10082         INVERSE_P.
10083         (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P.
10084         (struct glyph_row): HIGHLIGHT_P -> INVERSE_P
10086         * all files: use above new names.
10088         * dispnew.c (scroll_frame_lines): Simplified.  Use
10089         SCROLL_GLYPH_MATRIX.
10090         (make_glyph_row_empty): Mark a glyph row empty.
10091         (increment_glyph_row_buffer_positions): Increment 
10092         buffer positions in a glyph row.
10093         (increment_glyph_matrix_buffer_positions): Increment buffer
10094         positions in a range of rows.
10095         (scroll_glyph_matrix): Scroll a glyph matrix.
10096         (swap_glyphs_in_rows): Swap glyphs between rows.
10097         (swap_glyph_pointers): Swap pointers between rows.
10098         (glyph_row_slice_p): Return 1 if one row is a slice of another.
10099         (init_display): Initialize SPACE_GLYPH.
10100         (fill_up_glyph_row_areas_with_spaces): Fill up areas with
10101         spaces. 
10103 Tue Jul  1 13:49:55 1997  Gerd Moellmann  <gerd@acm.org>
10105         * xterm.c (dumprectangle): Use vectors in glyph rows.
10107         * xdisp.c (display_text_line): Use vectors in glyph rows.
10108         (display_string): Ditto.
10110         * scroll.c (do_scrolling): Use vectors in glyph rows.
10111         (do_direct_scrolling): Ditto.
10113         * alloc.c (mark_object): Use vectors in glyph rows.
10114         Mark for all frame types.
10116         * dispnew.c (adjust_glyph_matrix): Use vectors to glyphs in
10117         glyph rows.
10118         (get_glyph_matrix_row): Ditto.
10119         (matrix_row): Ditto.
10120         (rotate_pointers): Ditto.
10121         (scroll_frame_lines): Ditto.
10122         (preserve_other_columns): Ditto.
10123         (cancel_my_columns): Ditto.
10124         (update_line): Ditto.
10125         (direct_output_for_insert): Ditto.
10127         * dispextern.h (struct glyph_row): Use a vector of pointers
10128         instead of individual members.  Use a vector of used counters.
10129         (MATRIX_ROW_SWAP_CONTENTS): Use vectors.
10130         (MATRIX_ROW_GLYPH_START): Ditto.
10131         (MATRIX_ROW_GLYPH_END): Ditto.
10132         (MATRIX_ROW_USED): Ditto.
10133         (MATRIX_ROW_SET_USED): Ditto.
10135         * dispnew.c (line_hash_code): Simplified.
10137 Mon Jun 30 20:39:38 1997  Gerd Moellmann  <gerd@acm.org>
10139         * dispnew.c: Prototype for ROTATE_VECTOR, ROTATE_POINTERS,
10140         CHANGE_FRAME_SIZE_1
10141         (preserve_other_columns): Void return.
10142         (cancel_my_columns): Void return type.
10143         (scrolling): Int return type.
10144         (do_pending_window_change): Void return type.
10145         (change_frame_size): Ditto.
10146         (bitch_at_user): Ditto.
10147         (init_display): Ditto.
10148         (syms_of_display): Ditto.
10150         * dispextern.h: add prototypes for REDRAW_FRAME,
10151         REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS,
10152         INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS,
10153         ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS,
10154         DIRECT_OUTPUT_FOR_INSERT, DIRECT_OUTPUT_FORWARD_CHAR,
10155         UPDATE_FRAME, SCROLLING, BUFFER_POSN_FROM_COORDS,
10156         DO_PENDING_WINDOW_CHANGE, CHANGE_FRAME_SIZE, BITCH_AT_USER,
10157         SIT_FOR, INIT_DISPLAY, SYMS_OF_DISPLAY,
10158         
10159         * dispnew.c (redraw_frame): FRAME_PTR -> struct frame.  Return
10160         void.
10161         (cancel_line): Return void.
10162         (clear_frame_records):  Return void.
10163         
10164         * dispextern.h (struct glyph): Remove GLYPH, add bit-fields.
10165         (SET_CHAR_GLYPH): Fill a character glyph.
10166         (SET_CHAR_GLYPH_FROM_GLYPH): Set a character glyph from a GLYPH.
10167         (GLYPH_FROM_CHAR_GLYPH): Construct a GLYPH from a character
10168         glyph. 
10169         (CHAR_GLYPH_CHAR_CODE): Return character code of a glyph.
10170         (SET_CHAR_GLYPH_CHAR_CODE): Set character code of a glyph.
10171         (CHAR_GLYPH_FACE_ID): Return face id of a glyph.
10172         (SET_CHAR_GLYPH_FACE_ID): Set face id of a glyph.
10173         (CHAR_GLYPH_PADDING_P): Return padding flag of a glyph.
10174         (SET_CHAR_GLYPH_PADDING_P): Set padding flag.
10175         (CHAR_GLYPH_REVERSE_P): Return reversed flag.
10176         (SET_CHAR_GLYPH_REVERSE_P): Set reversed flag.
10177         (MATRIX_ROW_SWAP_CONTENTS): Swap pointers between rows.
10179         * term.c (reassert_line_highlight): Check CHARS_WASTED == 0.
10181         * window.h (struct window): Add comment that no Lisp data may
10182         come below CURRENT_MATRIX.
10184         * alloc.c (mark_object): Change window mark code to stop with
10185         member CURRENT_MATRIX.
10187 Sat Jun 28 13:54:55 1997  Gerd Moellmann  <gerd@acm.org>
10189         * scroll.c (do_scrolling): Change algorithm to use pointers.
10190         (do_direct_scrolling): Ditto.
10192         * dispnew.c (get_glyph_matrix_row): Use pointers stored in rows.
10193         (new_glyph_pool): Formerly new_FRAME_GLYPH_MATRIX.
10194         (free_glyph_pool): Formerly FREE_FRAME_GLYPH_MATRIX
10195         (realloc_glyph_pool): Formerly REALLOC_FRAME_GLYPH_MATRIX.
10196         Returns 1 if pool changed.
10197         (matrix_row): Additional check for lost pointers to glyph rows.
10198         (compute_matrices): Additional parameter DIM_P set means that no
10199         allocation should take place.  Addtional parameter
10200         ANY_WINDOWS_CHANGED_P set if any windows matrix has changed.
10201         (compute_leaf_matrix): Additional parameter CHANGED_P set to 1
10202         when window matrix changes.  Additional parameter DIM_ONLY_P set
10203         to 1 to indicate that no allocation should take place.
10204         (adjust_frame_glyphs): Construct new glyph pools and glyph
10205         matrices.  Optimize frame redraws.
10206         (free_glyphs): Free pools.
10207         (check_glyph_memory): Check pools not freed.
10208         (rotate_pointers): Rotate pointers in a vector of glyph rows.
10209         (scroll_frame_lines): Change algorithm to use pointers.
10210         (update_line): Ditto.
10212         * dispextern.h (struct glyph_row): Use pointers to areas in a row.
10213         (global): All macro names changed from prefix FRAME_MATRIX to
10214         MATRIX.
10216 Fri Jun 27 14:51:15 1997  Gerd Moellmann  <gerd@acm.org>
10218         * dispextern.h (struct glyph_pool): Replacement for former
10219         FRAME_GLYPH_MATRIX.
10220         (struct glyph_matrix): No longer contains sizes of allocated
10221         areas.
10223         * xdisp.c (redisplay_internal): Don't redisplay if frame has
10224         no glyph pools.
10226         * frame.c (make_frame): Initialize pools.
10228 Thu Jun 26 00:00:55 1997  Gerd Moellmann  <gerd@acm.org>
10230         * scroll.c (do_direct_scrolling): Don't assume that the 
10231         line moving algorithm has no intermediate steps.
10232         (do_scrolling): Ditto.
10234         * Makefile.in (alloc.o): Add dependency dispextern.h.
10236         * alloc.c: Include dispextern.h for glyph definitions.
10238         * dispnew.c (get_glyph_matrix_row): Return 1 if ROW_INDEX
10239         is legal, return 0 otherwise.
10241         * window.h: Add comment that windows are marked specially.
10243         * alloc.c (mark_object): Mark windows specially.
10246 Wed Jun 25 15:22:58 1997  Gerd Moellmann  <gerd@acm.org>
10248         * dispextern.h (struct glyph): Add member OBJECT
10249         referencing a Lisp object from which a glyph was drawn.
10250         Member TEXT_POSITION renamed POSITION.
10251         * xterm.c, xdisp.c, dispnew.c: Rename TEXT_POSITION -> POSITION.
10253         * alloc.c: Include dispextern.h
10254         (mark_object): Mark objects referenced from glyphs.
10256         * frame.c (make_frame): initialize DECODE_MODE_SPEC_BUFFER.
10258         * scroll.c (do_direct_scrolling): Remove TEMP_MATRIX.
10259         (do_scrolling): Ditto.
10261         * frame.h (struct frame): TEMP_MATRIX removed.  
10262         DECODE_MODE_SPEC_BUFFER added.
10264         * window.h: TEMP_MATRIX removed.
10266         * scroll.c: OPHYS_LINES removed.
10268         * dispnew.c: OPHYS_LINES and OPHYS_LINES_LENGTH removed.
10269         FRAME_PTR -> struct frame *.
10271         * termhooks.h: Prototypes for INSERT_GLYPHS_HOOK,
10272         WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
10274         * term.c: Prototypes for INSERT_GLYPHS_HOOK,
10275         WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
10277         * xdisp.c (redisplay_internal): Remove call to VERIFY_CHARSTARTS.
10278         (do_verify_charstarts): Removed.
10280         * frame.c (Fmake_terminal_frame): Adjust glyphs.
10281         (Fdelete_frame): Free glyphs.
10282         (make_frame): Initialize matrix fields in frame.
10284         * config.in (PROTO): added.
10286         * emacs.c (shut_down_emacs): check glyph memory.
10288         * window.c (Fdelete_window): Free window matrices.
10289         (Fset_window_configuration): Ditto.
10290         (Fdelete_window): Adjust glyphs.
10291         (Fsplit_window): Ditto.
10292         (change_window_height): Ditto.
10293         (Fset_window_configuration): Ditto.
10294         (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX.
10295         (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX
10297         * Makefile.in (window.o): Add dependency window.c -> dispextern.h
10299         * window.c: Include dispextern.h
10301         * scroll.c (do_scrolling): Use new glyphs.
10302         (do_direct_scrolling): Ditto.
10304         * xdisp.c: Some function prototypes.
10305         (redisplay_internal): Don't do anything if matrices not yet set.
10306         (redisplay_internal): Use new glyphs.
10307         (try_window_id): Ditto.
10308         (copy_part_of_rope): Ditto.
10309         (display_text_line): Ditto.
10310         (display_menu_bar): Ditto.
10311         (display_mode_line): Ditto.
10312         (display_string): Ditto.
10314         * xterm.c: Prototypes for some local functions.
10315         (dumpglyphs): Use new glyphs.
10316         (XTwrite_glyphs): Ditto.
10317         (dumprectangle): Ditto.
10318         (note_mouse_highlight): Ditto.
10319         (fast_find_position): Ditto.
10320         (show_mouse_face): Ditto.
10321         (x_draw_single_glyph): Ditto.
10322         (x_display_bar_cursor): Ditto.
10323         (x_display_box_cursor): Ditto.
10324         (x_new_font): Adjust glyphs when font change.
10326         * term.c (clear_end_of_line): Use new glyphs.
10327         (write_glyphs): Ditto.
10328         (insert_glyphs): Ditto.
10330         * Makefile.in (term.o): term.c depends on dispextern.h
10332         * term.c: Include dispextern.h
10334         * dispnew.c (direct_output_forward_char): Old glyph functions
10335         removed, new inserted. 
10336         (line_hash_code): Use new glyphs.
10337         (line_draw_cost): Ditto
10338         (cancel_line): Ditto
10339         (clear_frame_records): Ditto.
10340         (init_desired_glyphs): Ditto.
10341         (get_display_line): Ditto
10342         (scroll_frame_lines): Ditto.
10343         (preserve_other_columns): Ditto.
10344         (adjust_window_charstarts): Ditto.
10345         (cancel_my_columns): Ditto.
10346         (direct_output_for_insert): Ditto.
10347         (update_frame): Ditto.
10348         (quit_error_check): Made empty.
10349         (scrolling): Use new glyphs.
10350         (count_blanks): Ditto.
10351         (count_match): Ditto.
10352         (update_line): Ditto.
10353         (init_display): Adjust glyphs initially.
10354         (change_frame_size_1): Adjust glyphs.
10356         * dispextern.h: Old glyphs removed, new added.
10358         * xfaces.c (min_char_bounds): Get smallest char in loaded fonts.
10360         * xterm.h: Prototype for min_char_bounds.
10362         * window.h (struct window): Remove old glyphs, add new.
10364         * frame.h (struct frame): Remove old glyphs, add new.
10365         
10366 1999-07-20  Dave Love  <fx@gnu.org>
10368         * buffer.c (syms_of_buffer): Make
10369         default-enable-multibyte-characters a user variable.
10371 1999-07-14  Richard Stallman  <rms@gnu.org>
10373         * Version 20.4 released.
10375 1999-07-14  Richard Stallman  <rms@gnu.org>
10377         * filelock.c (lock_file): Do nothing if purifying.
10379 1999-07-10  Richard Stallman  <rms@gnu.org>
10381         * xterm.c (x_display_bar_cursor): Use the cursor-color
10382         to display the bar, not the cursor foreground pixel.
10384 1999-07-09  Andrew Innes  <andrewi@gnu.org>
10386         * w32console.c (w32_use_full_screen_buffer): New variable.
10387         (syms_of_ntterm): Register it.
10388         (initialize_w32_display): Set initial frame size accordingly,
10389         respecting the LINES and COLUMNS environment variables if set.
10391         * w32inevt.c (w32_console_read_socket): Use it.
10393 1999-07-07  Kenichi Handa  <handa@etl.go.jp>
10395         * callproc.c (Fcall_process): Decide coding system for decoding
10396         after we set to the target buffer.  If the output goes to a
10397         unibyte buffer, suppress character code conversion.
10399         * fileio.c (Finsert_file_contents): If reading into a unibyte
10400         buffer, suppress character code conversion.
10402         * process.c (create_process): If the output goes to a unibyte
10403         buffer, suppress character code conversion.p
10405 1999-07-07  Andreas Schwab  <schwab@gnu.org>
10407         * xdisp.c (line-number-display-limit): Doc fix.
10409 1999-07-05  Richard Stallman  <rms@gnu.org>
10411         * callproc.c (Fcall_process): Don't use initializer on coding_systems.
10412         (Fcall_process_region): Likewise.
10414 1999-07-01  Markus Rost  <markus.rost@mathematik.uni-regensburg.de>
10416         * callproc.c (init_callproc): Set exec_directory if
10417         installation_directory is non-nil, without a test of exec_path.
10419 1999-07-01  Andrew Innes  <andrewi@gnu.org>
10421         * w32xfns.c (drain_message_queue): New function.
10423         * w32term.h (drain_message_queue): Add extern.
10425         * w32proc.c (sys_select): Call MsgWaitForMultipleObjects instead
10426         of WaitForMultipleObjects when user input is allowed, so we can
10427         handle incoming window messages.  Call drain_message_queue when
10428         there are messages waiting; this ensures that windows created
10429         indirectly from the lisp thread get processed properly, and don't
10430         hang other applications by failing to respond to broadcasts.
10432 1999-07-01  Andreas Schwab  <schwab@gnu.org>
10434         * callint.c (Fcall_interactively): Ignore first element of
10435         event-symbol-elements property.
10437 1999-07-01  Richard Stallman  <rms@gnu.org>
10439         * fileio.c (Fread_file_name): Check type of DEFAULT_FILENAME.
10441 1999-07-01  Kenichi Handa  <handa@etl.go.jp>
10443         * minibuf.c (read_minibuf): Set the multibyteness of the
10444         minibuffer before inserting `initial' string.
10446 1999-06-30  Richard Stallman  <rms@gnu.org>
10448         * xfns.c (x_make_gc): Turn off GCStipple when setting up cursor_gc.
10450 1999-06-29  Richard M. Stallman  <rms@gnu.org>
10452         * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook):
10453         Move the handling of MALLOC_CHECK_ envvar here.
10454         (main): Moved from here.
10456 1999-06-29  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
10458         * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook): New
10459         function, assigned to the global __malloc_initialize_hook pointer.
10460         (main): Move malloc_set_state call into malloc_initialize_hook
10461         so that it happens as early as possible.
10463 1999-06-27  Richard M. Stallman  <rms@gnu.org>
10465         * keyboard.c (read_key_sequence): Properly reinitialize
10466         fkey_map after translating thru Vkey_translation_map.
10467         After translating thru Vfunction_key_map, don't reset
10468         keytrans-start to 0.
10470 1999-06-24  Geoff Voelker  <voelker@cs.washington.edu>
10472         * w32.c (get_emacs_configuration): Use GetVersionEx to
10473         handle NT5.0 correctly.  Include build number in configuration.
10474         w32heap.c (osinfo_cache): New variable.
10475         (cache_system_info): Initialize osinfo_cache.
10476         w32heap.h (osinfo_cache): Declare.
10478 1999-06-24  Richard M. Stallman  <rms@gnu.org>
10480         * casefiddle.c (casify_object): Use make_multibyte_string
10481         if we casify a multibyte string.
10483 1999-06-22  Ken'ichi Handa  <handa@gnu.org>
10485         * fileio.c: (Finsert_file_contents): In the case of REPLACE, call
10486         del_range_byte instead of del_range_1, set `inserted' to the
10487         number of characters actually inserted.
10489 1999-06-17  Dave Love  <fx@gnu.org>
10491         * coding.c (decode_coding_sjis_big5): Avoid compiler warning.
10493 1999-06-18  Paul Eggert  <eggert@twinsun.com>
10495         * filelock.c (BOOT_TIME_FILE): New macro.
10496         (get_boot_time): Use it instead of hardwiring the file name.
10497         Check BOOT_TIME_FILE only after inspecting the kernel directly.
10499 1999-06-17  Dave Love  <fx@gnu.org>
10501         * xdisp.c (invalid_eol_type): Make it unsigned.
10503 1999-06-17  Karl Heuer  <kwzh@gnu.org>
10505         * process.c (send_process): Delete unsafe/redundant assignment.
10507 1999-06-17  Jason Rumney  <jasonr@gnu.org>
10509         * w32term.c (dumprectangle): Handle wide characters properly.
10511 1999-06-16  Andrew Innes  <andrewi@gnu.org>
10513         * s/ms-w32.h (strerror): Override the default implementation of
10514         strerror, so we can map winsock error codes.
10516         * w32.c (sys_strerror): New function.
10518         * w32fns.c (w32_to_x_weight): Return "demibold" instead of "semibold".
10520 1999-06-15  Ken'ichi Handa  <handa@gnu.org>
10522         * buffer.c (syms_of_buffer): Don't make
10523         enable-multibyte-characters customizable.
10525 1999-06-15  Richard M. Stallman  <rms@gnu.org>
10527         * editfns.c (Fuser_full_name): Doc fix.
10529 1999-06-14  Tak Ota <ota@atc.sel.sony.com>
10531         * w32bdf.c: (clear_cached_bitmap_slots): Remove.
10532         (get_bitmap_with_cache): Check if CreateBitmap failed.
10533         Adjust cache size dynamically so cache is never larger than the
10534         system limit of GDI resources.
10535         Do cache clearing inline.  Move global variables to local scope.
10538 1999-06-13  Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
10540         * unexsgi.c (unexec): Dump the .rodata section from memory
10541         under IRIX6.5 in order to be able to unexec with gcc.
10543 1999-06-11  Greg Hudson  <ghudson@MIT.EDU>
10545         * indent.c (compute_motion): Fix boundary case.
10547 1999-06-11  Jason Rumney  <jasonr@altavista.net>
10549         * w32term.c (cancel_mouse_face): New function. See equiv
10550         changes to xterm.c on 1996-10-31.
10551         (x_set_window_size): Use cancel_mouse_face.
10552         (w32_read_socket): Use cancel_mouse_face.
10553         Update frame position when size is restored.
10555 1999-06-04  Richard M. Stallman  <rms@gnu.org>
10557         * lread.c (Vuser_init_file): New variable.
10558         (syms_of_lread): Set up Lisp variable.
10559         (Fload): Store the file name there, if var was t before.
10561 1999-06-04  Paul Eggert  <eggert@twinsun.com>
10563         * filelock.c (get_boot_time): Don't look at /proc/uptime; it
10564         doesn't work if the system date is changed, or if the system
10565         is suspended.  Look at the last-modified time of
10566         /var/run/random-seed instead.
10568 1999-06-03  Ken'ichi Handa  <handa@gnu.org>
10570         * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
10571         japanese-jisx0208-1978 correctly.
10573 1999-06-03  Andrew Innes  <andrewi@gnu.org>
10575         * unexw32.c (get_section_info) [_ALPHA_]: Force as much bss data
10576         as possible to be dumped, for safety.
10578 1999-06-02  Ken'ichi Handa  <handa@gnu.org>
10580         * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
10581         latin-jisx0201 correctly.
10583 1999-05-26  Ken'ichi Handa  <handa@gnu.org>
10585         * charset.h (Vcharset_table): Comment fixed.
10587 1999-05-24  Richard Stallman  <rms@gnu.org>
10589         * coding.c (syms_of_coding): Doc fix.
10591         * buffer.c (syms_of_buffer): Doc fix.
10593         * filelock.c (lock_if_free): After deleting a stale lock,
10594         try again to lock the file.
10596 1999-05-22  Andrew Innes  <andrewi@gnu.org>
10598         * w32inevt.c (maybe_generate_resize_event): Detect changes in the
10599         console window size.
10600         (w32_console_read_socket): Call maybe_generate_resize_event
10601         whenever input events are received, since we don't get told when
10602         the window size changes (as opposed to the buffer size, which we
10603         don't care about).
10605         * w32console.c (clear_frame): Remember that the window width might
10606         be smaller than the screen buffer width.
10607         (write_glyphs): Remove redundant variable attrs.  Use
10608         FillConsoleOutputAttribute instead of WriteConsoleOutputAttribute.
10610 1999-05-20  Andrew Innes  <andrewi@gnu.org>
10612         * w32term.c (w32_read_socket): Reset the grabbed flag when a frame gains or
10613         loses focus.
10615         * w32fns.c (w32_wnd_proc): Ensure mouse capture is released if
10616         frame loses focus, and that mouse button state is reset.  Ditto
10617         when the menu bar is activated.
10619 1999-05-18  Richard Stallman  <rms@gnu.org>
10621         * abbrev.c (Fdefine_abbrev): Doc fix.
10623 1999-05-13  Paul Eggert  <eggert@twinsun.com>
10625         * filelock.c: Fix performance bug on hosts with large
10626         /var/adm/wtmp files with no boot records.
10628         (boot_time_initialized): New var.
10629         (init_filelock): Initialize it.
10630         (get_boot_time): Use it, instead of nonzero boot_time,
10631         to test whether boot_time is initialized.
10632         Don't invoke utmp routines when dumping.
10634         (get_boot_time): First, try to get the boot time from the
10635         current utmp file, as this can be much faster.  Don't try to
10636         get the boot time from utmp and/or wtmp more than once.
10638         (get_boot_time_1): When passed null pointer, don't invoke utmpname.
10639         New arg LATEST.  All uses changed.
10641 1999-05-15  Andrew Innes  <andrewi@gnu.org>
10643         * w32term.c (dumpglyphs): Use correct colours for drawing
10644         rectangles in place of missing fonts, and make them the right
10645         size.
10647 1999-05-14  Dave Love  <fx@gnu.org>
10649         * syntax.c (Fparse_partial_sexp): Correct test for element 8 to be
10650         non-nil.
10652 1999-05-11  Andrew Innes  <andrewi@gnu.org>
10654         * w32fns.c (x_to_w32_charset): Reinstall VIETNAMESE_CHARSET
10655         definition.
10656         (w32_wnd_proc): Reinstall debugging output.
10657         (w32_wnd_proc): Reinstall SetForegroundWindow change.
10658         (syms_of_w32fns): Reinstall new initializer for
10659         Vw32_phantom_key_code.
10661         * w32fns.c (x_to_w32_charset): Do partial matching of charset
10662         names for most non-European charsets, to cope with wildcards or
10663         missing spec dates.
10664         (Fw32_send_sys_command): Post WM_SYSCOMMAND rather than sending it
10665         to avoid deadlock when activating the menu bar.
10667 1999-05-10  Ken'ichi Handa  <handa@gnu.org>
10669         * search.c (boyer_moore): Get charset base value of `untranslated'
10670         by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
10672 1999-05-10  Andreas Schwab  <schwab@gnu.org>
10674         * fileio.c (Fread_file_name): Correct handling of dollars in file
10675         names.  Protect dollars in strings put on the file-name-history.
10676         Substitute homedir by `~' also in default_filename.
10678         * xdisp.c (try_window_id): Fix computation of tab_offset when
10679         backing up over a character that is splitted across lines.
10681 1999-05-08  Kenichi HANDA  <handa@etl.go.jp>
10683         * coding.c (code_convert_region): If eol format is inconsistent,
10684         change coding->symbol to the sibling coding system of Unix like
10685         eol format.
10687 1999-05-09  Richard M. Stallman  <rms@gnu.org>
10689         * s/irix5-2.h (NO_WTMP_FILE): Define it.
10691         * filelock.c (get_boot_time): Handle NO_WTMP_FILE.
10693 1999-05-05  Andrew Innes  <andrewi@gnu.org>
10695         * w32fns.c (w32_strict_painting): New variable.
10696         (w32_wnd_proc): Use it to select repaint rules.
10697         (syms_of_w32fns): Defvar it.
10699 1999-05-04  Andrew Innes  <andrewi@gnu.org>
10701         * w32fns.c (x_to_w32_charset): Fix typo: want to map all Japanese
10702         charsets to the standard Windows charset for Japanese.
10704 1999-05-04  Ken'ichi Handa  <handa@gnu.org>
10706         * xterm.c (x_load_font): Fix typo (`>' -> `=').
10708         * ccl.h (struct ccl_program): New member stack_idx.
10710         * ccl.c (ccl_prog_stack_struct): Declare it as static.
10711         (ccl_driver): Setup stack_idx and ccl_prog correctly.  Update them
10712         before returing.
10713         (setup_ccl_program): Initialize ccl->stack_idx to 0.
10715 1999-05-03  Jason Rumney  <jasonr@altavista.net>
10717         * w32term.c (dumpglyphs): Always fill background for italic fonts.
10719 1999-05-03  Eli Zaretskii <eliz@is.elta.co.il>
10721         * dired.c (make_time): Make argument type be time_t.
10723 1999-05-02  Eli Zaretskii <eliz@is.elta.co.il>
10725         * msdos.c (unibyte_display_via_language_environment): Add extern.
10727 1999-05-02  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
10729         * xdisp.c (display_text_line): Convert unibyte char to multibyte
10730         if unibyte_display_via_language_environment is set.
10731         (unibyte_display_via_language_environment):
10732         Variable moved from xfns.c and elsewhere.
10733         (syms_of_xfns): Set up Lisp var.
10735         * xfns.c (unibyte_display_via_language_environment):
10736         Variable moved to xdisp.c.
10737         (syms_of_xfns): Don't set up Lisp var here.
10739         * msdos.c (unibyte_display_via_language_environment):
10740         Variable moved to xdisp.c.
10741         (syms_of_msdos): Don't set up Lisp var here.
10743         * w32fns.c (unibyte_display_via_language_environment):
10744         Variable moved to xdisp.c.
10745         (syms_of_w32fns): Don't set up Lisp var here.
10747 1999-05-02  Andrew Innes  <andrewi@gnu.org>
10749         * s/ms-w32.h (HAVE_FSYNC): New macro.
10750          (fsync): Map to _commit.
10751          (ftruncate): Map to _chsize.
10753         * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even
10754         for ASCII, if enabled, to avoid memory allocation overhead for
10755         implicit Unicode conversion.  Also, recognize that ASCII and
10756         Latin-1 have a trivial conversion to Unicode, so x_2byte_buffer
10757         already contains the Unicode characters in that case.
10758         (construct_drag_n_drop): Remove old code that was
10759         trashing the drop location.
10761         * w32select.c (Fw32_set_clipboard_data): Undo last change to add
10762         nlines to encoding_buffer_size (real bug was in a ccl program in
10763         lisp/international/coding.el).
10765         * w32reg.c (w32_get_string_resource): Check for name in current
10766         user area, and if not found look in the local machine area.
10768         * w32fns.c (w32_list_bdf_fonts): Initialize n_fonts.
10769         (Fw32_shell_execute): New function; used to support browse-url.
10770         (syms_of_w32fns): Register it.
10771         (w32_load_system_font): Force max width to be average
10772         char width for fixed-pitch fonts, to avoid unnecessary redisplay
10773         slowdown.
10774         (x_to_w32_charset): Define VIETNAMESE_CHARSET if not
10775         already defined.
10776         (syms_of_w32fns): Set Vw32_phantom_key_code to 255.
10778         * unexw32.c (get_section_info): Dump back the entire EMDATA
10779         section if we can put Emacs' initialized data in a separate
10780         section, otherwise use the my_begdata/my_edata method.
10782         * makefile.nt ($(BLD)\w32term.obj): Add dependency on w32heap.h.
10784         * coding.c (decode_eol): Set produced/consumed values to zero if
10785         src_bytes is <= 0 on entry.
10787 1999-05-02  Jason Rumney  <jasonr@altavista.net>
10789         * w32term.c (w32_write_glyphs, w32_clear_end_of_line,
10790         w32_clear_frame, clear_cursor, x_display_bar_cursor,
10791         x_display_box_cursor, x_set_window_size): Use phys_cursor_on
10792         field in frame.
10793         (do_line_dance): Updated WRT xterm.c. Use macros where possible.
10794         (dumprectangle): Take into account the width of a left-side
10795         scroll bar.
10797         * w32proc.c (sys_kill): Attach to current foreground thread
10798         when grabbing focus; necessary on NT 5.0.
10800         * w32fns.c (w32_wnd_proc) [WM_PAINT]: Use rectangle from
10801         GetUpdateRect rather than BeginPaint.
10802         (w32_wnd_proc): Attach to current foreground thread
10803         when grabbing focus; necessary on NT 5.0.
10804         (w32_wnd_proc) [W32_DEBUG_DISPLAY]: Add output for
10805         debugging display messages.
10806         (w32_to_x_charset): Put wildcard last in unknown charsets to avoid
10807         false matching.
10809 1999-05-02  Kenichi HANDA  <handa@etl.go.jp>
10811         * coding.c (setup_raw_text_coding_system): Call
10812         setup_coding_system to initialize the fields of struct
10813         coding_system correctly.
10814         
10815 1999-04-26  Kenichi HANDA  <handa@etl.go.jp>
10817         * xterm.c (x_list_fonts): Fix previous change.
10819 1999-04-26  Richard Stallman  <rms@gnu.org>
10821         * config.in (HAVE_LIBXP): Add #undef.
10822         * Makefile.in (LIB_MOTIF_EXTRA): Check HAVE_LIBXP.
10824 1999-04-12  Ken'ichi Handa  <handa@gnu.org>
10826         * xterm.c (x_list_fonts): Trap X errors so that Emacs doesn't die
10827         by them.
10829 1999-04-12  Karl Heuer  <kwzh@gnu.org>
10831         * s/freebsd.h (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3.
10833 1999-04-11  Ken'ichi Handa  <handa@gnu.org>
10835         * fontset.c (Fset_fontset_font): Fix previous change.
10837 1999-04-09  Ken'ichi Handa  <handa@gnu.org>
10839         * fontset.c (Fquery_fontset): Check for fontset aliases here.
10840         (Fnew_fontset, Fset_fontset_font): Don't check for them here.
10842 1999-04-08  Richard Stallman  <rms@gnu.org>
10844         * process.c (Faccept_process_output): Check validity of PROCESS.
10846 1999-04-08  Eli Zaretskii  <eliz@gnu.org>
10848         * msdos.c (jp_kbd_translate_table): Fix the other \ key.
10850 1999-04-07  Richard Stallman  <rms@gnu.org>
10852         * xfns.c (x_set_font): Fix error message.
10854         * fontset.c (Fquery_fontset): Don't check for fontset aliases here.
10855         (Fnew_fontset, Fset_fontset_font): Check for them here.
10856          (Ffontset_info, Fnew_fontset, Fset_fontset_font):
10857         Fix error message syntax.
10859         * buffer.c (Fmake_indirect_buffer): Copy multibyte status
10860         from the base buffer.
10861         (Fset_buffer_multibyte): Copy new multibyte status
10862         into the buffer's indirect buffers.
10864 1999-04-07  Ken'ichi Handa  <handa@gnu.org>
10866         * fns.c (base64_encode_1): Don't add unnecessary newline at the
10867         tail.
10869 1999-04-06  Richard Stallman  <rms@gnu.org>
10871         * dired.c (Ffile_attributes): Doc fix.
10873         * keymap.c (Faccessible_keymaps): Really initialize i_byte.
10874         Convert 0200 to meta only in a unibyte string.
10875         (Fkey_description): Likewise.
10877         * eval.c (do_autoload): Preserve match data.
10879 1999-04-06  Kenichi HANDA  <handa@etl.go.jp>
10881         * w32fns.c (x_to_w32_font): Provide sufficient buffer to
10882         encode_coding to avoid carryover.
10884         * coding.c: Add comments for decode_coding and encode_coding.
10886         * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
10887         a composite character by skipping its leading code.
10888         <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
10889         correctly.
10891         * coding.c: Add comments for decode_coding and encode_coding.
10893         * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
10894         a composite character by skipping its leading code.
10895         <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
10896         correctly.
10898 1999-04-06  Eli Zaretskii  <eliz@gnu.org>
10900         * msdos.c (dos_rawgetc): Don't zero out c if private translation
10901         table was used.
10902         (jp_kbd_translate_table): Support C-\.
10903         (it_kbd_translate_table): Map `>' correctly.
10904         (it_keyboard): Add `>'.
10906 1999-04-06  Richard Stallman  <rms@gnu.org>
10908         * intervals.c (graft_intervals_into_buffer): Turn off
10909         inhibit_modification_hooks around calling Fset_text_properties.
10911 1999-04-05  Kenichi HANDA  <handa@etl.go.jp>
10913         * xterm.c (dumpglyphs): Be sure to fill the whole background of
10914         glyphs.
10916 1999-04-05  Eli Zaretskii  <eliz@gnu.org>
10918         * msdos.c (jp_kbd_translate_table): Fix last change.
10920 1999-04-04  Eli Zaretskii  <eliz@gnu.org>
10922         * msdos.c (struct kbd_translate): New struct, for key translation
10923         tables private to certain national keyboard layouts.
10924         (struct dos_keyboard_map): Add a pointer to a private translation
10925         table.
10926         (jp_kbd_translate_table): Private table for the Japanese
10927         keyboard.
10928         (jp_keyboard): Japanese keyboard layout.
10929         (it_kbd_translate_table): Private table for the Italian keyboard.
10930         (it_keyboard): Use it_kbd_translate_table.
10931         (keyboard_layout_list): Add the Japanese keyboard.
10932         (dos_rawgetc): Use the keyboard-private translation table, if
10933         available.
10934         (abort) [__DJGPP_MINOR__ >= 2]: Raise SIGABRT.
10936 1999-04-02  Kenichi HANDA  <handa@etl.go.jp>
10938         * xdisp.c (redisplay_window): When we call compute_motion with
10939         HPOS got from w->last_point_x, call it with DID_MOTION 1.
10940         (display_text_line): Stop the loop for processing overlay strings
10941         when we reach the right edge of the window.
10943 1999-03-31  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
10945         * doc.c (get_doc_string): When UNIBYTE and DEFINITION are 0,
10946         let the data control whether string is unibyte.
10948 1999-03-30  Richard M. Stallman  <rms@gnu.org>
10950         * macros.c (Fexecute_kbd_macro): Save real_this_command.
10951         (pop_kbd_macro): Restore the saved real_this_command.
10952         (Fcall_last_kbd_macro): Set real_this_command to the macro.
10954 1999-03-26  Richard M. Stallman  <rms@gnu.org>
10956         * buffer.c (Fset_buffer_modified_p): Don't lock or unlock
10957         if buffer-file-name is nil.
10959 1999-03-25  Jason Rumney  <jasonr@altavista.net>
10961         * w32select.c (Fw32_set_clipboard_data): Take into account line
10962         ends when calculating clipboard storage needed for non-ASCII text.
10964 1999-03-25  Andrew Innes  <andrewi@gnu.org>
10966         * makefile.nt (PREPARED_HEADERS): Change name of paths.h to epaths.h.
10967         (epaths.h): Renamed from paths.h.
10968         (clean): 
10969         ($(BLD)\filelock.obj): 
10970         ($(BLD)\lread.obj): 
10971         ($(BLD)\w32fns.obj): Renamed paths.h to epaths.h.
10973 1999-03-23  Ken'ichi Handa  <handa@gnu.org>
10975         * coding.c (encode_coding_iso2022): Initialize dummy arguments to
10976         ENCODE_ISO_CHARACTER for the previous change on this macro.
10978 1999-03-23  Kenichi Handa  <handa@etl.go.jp>
10980         * xdisp.c (decode_mode_spec_coding): Handle integer value in
10981         eoltype correctly for backward compatibility.
10983 1999-03-20  Kenichi HANDA  <handa@etl.go.jp>
10985         * coding.c (ENCODE_ISO_CHARACTER): Check validity of CHARSET.  If
10986         invalid, produce the buffer internal byte sequence without encoding.
10988 1999-03-19  Karl Heuer  <kwzh@gnu.org>
10990         * editfns.c (Fformat): Accept %i format.
10992 1999-03-17  Karl Heuer  <kwzh@gnu.org>
10994         * filelock.c (get_boot_time): Test tempname, not filename.
10996 1999-03-17  Jason Rumney <jasonr@altavista.net>
10998         * w32bdf.h: Merged patches from Meadow; introduce bitmap cache to
10999         speed display.
11001         * w32bdf.c: Merged patches from Meadow; introduce bitmap cache to
11002         speed display.
11003         (get_cached_font_char, cache_char_offset, get_bitmap_with_cache)
11004         New functions.
11005         (w32_free_bdf_font, seek_char, w32_get_bdf_glyph, w32_BDF_TextOut)
11006         Use bitmap cache.
11008         * w32fns.c (enum_font_cb2): Set the font height to be the
11009         character height, not the cell height.
11010         (Fw32_select_font): Initialize font dialog with current default font.
11011         (Vw32_system_coding_system): New variable.
11012         (w32_strict_filenames): Add comment.
11013         (w32_to_x_font): Decode font name using Vw32_system_coding_system.
11014         (x_to_w32_font): Encode font name using Vw32_system_coding_system. 
11015         (syms_of_w32fns): Add w32-system-coding-system.
11017 1999-03-15  Richard M. Stallman  <rms@gnu.org>
11019         * xterm.c (XTread_socket) <ConfigureNotify>:
11020         If cursor pos is outside the new frame size, mark cursor as off.
11022 1999-03-14  Ken'ichi Handa  <handa@gnu.org>
11024         * xdisp.c (try_window_id): Initialize val.ovstring_chars_done to 0.
11026         * xterm.c (x_load_font): Trap X errors so that Emacs doesn't die
11027         by them.
11029 1999-03-14  Richard M. Stallman  <rms@gnu.org>
11031         * macros.c (Fexecute_kbd_macro): Initialize executing_macro_iterations
11032         at beginning.
11034 1999-03-14  Jason Rumney <jasonr@altavista.net>
11036         * w32fns.c (w32_strict_fontnames): New variable.
11037         (Fx_create_frame): Formatting fix.
11038         (w32_load_system_font): Keep trying to load non-existant font
11039         if w32_strict_fontnames is nil. Formatting fix.
11040         (syms_of_w32fns): Add w32-strict-fontnames.
11042         * w32term.c (W32_TEXTOUT): Do not multiply nchars by charset_dim.
11043         (dumpglyphs): Formatting fixes.
11045 1999-03-14  Geoff Voelker  <voelker@cs.washington.edu>
11047         * w32fns.c (w32_wnd_proc): Handle WM_GETMINMAXINFO message.
11049 1999-03-10  Karl Heuer  <kwzh@gnu.org>
11051         * puresize.h (BASE_PURESIZE): Increase to 505000.
11053 1999-03-09  Richard M. Stallman  <rms@gnu.org>
11055         * emacs.c (main) [CLASH_DETECTION]: Call init_filelock.
11057         * filelock.c (init_filelock): New function.
11059 1999-03-09  Dave Love  <fx@gnu.org>
11061         * fileio.c (Ffile_directory_p): Doc fix.
11063 1999-03-05  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
11065         * coding.c (setup_coding_system): Check for CODING_SYSTEM = nil.
11067 1999-03-08  Richard M. Stallman  <rms@gnu.org>
11069         * filelock.c (get_boot_time): Reduce scope of #ifdef BOOT_TIME
11070         to only the part that uses get_boot_time_1.
11072 1999-03-07  Dave Love  <fx@gnu.org>
11074         * fileio.c (Finsert_file_contents): Use xfree.
11076 1999-03-06  Kenichi Handa  <handa@etl.go.jp>
11078         * Makefile.in (callproc.o, coding.o, fileio.o, msdos.o, process.o,
11079         term.o, xselect.o): Depend on ccl.h.
11081 1999-03-05  Geoff Voelker  <voelker@cs.washington.edu>
11083         * makefile.nt: Remove common multiple file compilation commands.
11085 1999-03-04  Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
11087         * fns.c (Fbase64_encode_string): Allocate sufficient memory for
11088         newlines added when the arg NO-LINE-BREAK is nil.
11090 1999-03-04  Karl Heuer  <kwzh@gnu.org>
11092         * search.c (Fstring_match, Fposix_string_match): Doc fix.
11094         * buffer.c (syms_of_buffer): Doc fix for case-fold-search.
11096 1999-03-04  Dave Love  <fx@gnu.org>
11098         * term.c (term_init): Use xmalloc, not malloc.
11100         * callproc.c (Fcall_process): Use xmalloc, xfree.
11102 1999-03-03  Andreas Schwab  <schwab@gnu.org>
11104         * eval.c (Fdefconst): Doc fix.
11106 1999-03-01  Kenichi Handa  <handa@etl.go.jp>
11108         * coding.c: Comment for ISO 2022 encoding mechanism modified.
11110 1999-03-01  Eli Zaretskii  <eliz@gnu.org>
11112         * w16select.c (get_clipboard_data): Always stop at the first null byte.
11114 1999-02-28  Richard M. Stallman  <rms@gnu.org>
11116         * filelock.c (get_boot_time): Support FreeBSD way to read boot-time.
11118         * cmds.c (internal_self_insert): Calculate column properly
11119         in overwrite-of-tab case.
11121 1999-02-27  Andreas Schwab  <schwab@gnu.org>
11123         * emacs.c (main) [DOUG_LEA_MALLOC]: Don't use unsetenv, it calls
11124         malloc in glibc 2.1.
11126 1999-02-26  Richard Stallman  <rms@gnu.org>
11128         * Makefile.in: paths.h and paths.in renamed to epaths.h and epaths.in.
11130         * epaths.in: Renamed from paths.in.
11131         This avoids a conflict with a system header file paths.h on GNU/Linux.
11133         * callproc.c, lread.c, w32fns.c, xfns.c, xrdb.c:
11134         Use epaths.h istead of paths.h.
11136 1999-02-26  Andreas Schwab  <schwab@gnu.org>
11138         * emacs.c (main) [DOUG_LEA_MALLOC]: Work around a bug in glibc's
11139         malloc.
11141 1999-02-25  Dave Love  <fx@gnu.org>
11143         * buffer.c (syms_of_buffer): Doc fix for enable-multibyte-characters.
11145 1999-02-25  Richard Stallman  <rms@gnu.org>
11147         * filelock.c (get_boot_time): Use WTMP_FILE for file name.
11148         (WTMP_FILE): Default definition in case not defined.
11149         (get_boot_time_1): Test that file exists before trying to read it.
11150         
11151 1999-02-25  Ken'ichi Handa  <handa@gnu.org>
11153         * keymap.c (push_key_description): If enable-multibyte-characters
11154         is nil and C is single byte, push C as is.
11156 1999-02-24  Kenichi Handa  <handa@etl.go.jp>
11158         * keymap.c (push_key_description): If enable-multibyte-characters
11159         is non-nil, try to convert unibyte character to multibyte.  For
11160         invalid multibyte character, show all bits by octal form.
11161         (Fsingle_key_description): Check the validity of charset for a
11162         generic character.
11164 1999-02-23  Richard M. Stallman  <rms@gnu.org>
11166         * fileio.c (Ffile_regular_p): Undo previous change.
11168         * eval.c (Fdefconst): Doc fix.
11170         * filelock.c (get_boot_time): Don't use BUFSIZ.
11172 1999-02-22  Andrew Innes  <andrewi@gnu.org>
11174         * makefile.nt ($(BLD)\w32bdf.obj): Add missing continuation character.
11175         (EXTRA_LINK): Do version test with strings.
11177 1999-02-22  Andreas Schwab  <schwab@gnu.org>
11179         * fns.c (Fbase64_encode_string): Fix last change.
11181         * termhooks.h (event_kind): Add user_signal.
11183         * keyboard.c (Qusr1_signal, Qusr2_signal): New variables.
11184         (syms_of_keyboard): Initialize them.
11185         (lispy_user_signals): New variable.
11186         (make_lispy_event): Handle user_signal event type.
11188         * emacs.c: Don't define Qusr1_signal and Qusr2_signal.
11189         (syms_of_emacs): Don't initialize them.
11190         (handle_USR1_signal, handle_USR2_signal): Set event type to
11191         user_signal instead of non_ascii_keystroke, and use plain integers
11192         as code instead of Lisp symbols.
11194 1999-02-21  Eli Zaretskii  <eliz@delysid.gnu.org>
11196         * fileio.c: (lstat) [!S_ISLNK]: Use stat instead of lstat.
11198 1999-02-21  Richard Stallman  <rms@gnu.org>
11200         * filelock.c (get_boot_time_1): Put this in #ifdef BOOT_TIME.
11202         * print.c (print_error_message): Don't crash if (cdr data)
11203         is not a list.
11205 1999-02-21  Eli Zaretskii  <eliz@gnu.org>
11207         * fileio.c (lstat) [!S_ISLNK]: Use stat instead of lstat.
11209 1999-02-20  Andrew Innes  <andrewi@gnu.org>
11211         * vm-limit.c (memory_warnings) [WINDOWSNT]: Reset lim_data on each
11212         run, since size can vary from run to run.
11214         * makefile.nt (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
11215         data is included, to enable profiling.
11216         ($(EMACS)): Map file not needed for emacs.exe.
11218         * emacs.c (main): [!SYSTEM_MALLOC]: Call realloc and free as well
11219         as malloc before calling uninterrupt_malloc, for consistency.
11220         This also enables profiling to work on WINDOWSNT.
11222 1999-02-18  Richard Stallman  <rms@gnu.org>
11224         * Makefile.in (emacs.o): Depend on termhooks.h.
11225         (filelock.o): Depend on systime.h.
11227 1999-02-18  Ken'ichi Handa  <handa@gnu.org>
11229         * coding.c (Fdecode_sjis_char): Use %x for formatting error message.
11230         (Fdecode_big5_char): Likewise.
11232 1999-02-17  Richard Stallman  <rms@gnu.org>
11234         * insdel.c (adjust_markers_for_replace): When doing an insertion
11235         (replacing a region of zero length), handle markers at the
11236         insertion point properly.
11238 1999-02-17  Andrew Innes  <andrewi@gnu.org>
11240         * w32fns.c (Vw32_quit_key): New variable.
11241         (post_character_message): Use it.
11242         (syms_of_w32fns): DEFVAR it.
11244 1999-02-16  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
11246         * fns.c (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'.
11248 1999-02-16  Richard Stallman  <rms@gnu.org>
11250         * filelock.c (within_one_second): New function.
11251         (current_lock_owner): Use that.
11252         (get_boot_time): Use /proc/uptime if available.
11253         Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
11254         (get_boot_time_1): New subroutine taken from get_boot_time.
11255         
11256 1999-02-16  Richard Stallman  <rms@gnu.org>
11258         * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
11259         (syms_of_emacs): Init and staticpro them.
11260         (handle_USR1_signal): Don't run any code, just queue up an event.
11261         (handle_USR2_signal): Likewise.
11263 1999-02-16  Eli Zaretskii  <eliz@gnu.org>
11265         * dired.c (Ffile_attributes): If the file's size doesn't fit in
11266         an integer, return it as a float.  Doc string fixed.
11268 1999-02-16  Richard Stallman  <rms@gnu.org>
11270         * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
11271         (syms_of_emacs): Init and staticpro them.
11272         (handle_USR1_signal): Don't run any code, just queue up an event.
11273         (handle_USR2_signal): Likewise.
11275 1999-02-15  Kenichi Handa  <handa@etl.go.jp>
11277         * coding.c (Fdecode_sjis_char, Fencode_sjis_char): Handle
11278         ASCII correctly.  Signal error on invalid characters.
11279         (Fdecode_big5_char, Fencode_big5_char): Likewise.
11281 1999-02-15  Eli Zaretskii  <eliz@gnu.org>
11283         * w16select.c (get_clipboard_data): Work around a bug in Windows95
11284         DOS box which doubles the reported size of text in the clipboard.
11286 1999-02-15  Kenichi Handa  <handa@etl.go.jp>
11288         * coding.c (decode_coding_iso2022): Don't set
11289         coding->composed_chars to 0 here.
11290         (setup_coding_system): Set coding->composed_chars to 0 here.
11292 1999-02-10  Richard Stallman  <rms@gnu.org>
11294         * fileio.c (Ffile_regular_p): Use lstat.
11296 1999-02-09  Richard Stallman  <rms@gnu.org>
11298         * unexelf.c (HAS_SBSS_SECTION): Define this in some cases.
11299         (unexec): Test this instead of specific systems.
11301         * m/macppc.h: New file.
11303 1999-02-08  Dave Love  <fx@gnu.org>
11305         * fns.c (Fyes_or_no_p, Fy_or_n_p): Doc fix.
11307 1999-02-08  Ken'ichi Handa  <handa@gnu.org>
11309         * coding.c (ccl_coding_driver): On encoding, coding->produced_char
11310         should be set to coding->produced.
11312 1999-02-07  Paul Fisher  <rao@gnu.org>
11314         * fns.c (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
11315         (base64_decode_1): Use READ_QUADRUPLET_BYTE.
11317 1999-02-07  Markus Rost  <markus.rost@mathematik.uni-regensburg.de>
11319         * editfns.c (Fformat): Doc fix.
11321 1999-02-06  Richard Stallman  <rms@gnu.org>
11323         * process.c (syms_of_process): defsubr it.
11324         (Fprocess_running_child_p): New function.
11326 1999-02-05  Andrew Innes  <andrewi@gnu.org>
11328         * w32term.c (construct_drag_n_drop): Call DraqQueryPoint before
11329         recording drop position.
11331 1999-02-05  Ken'ichi Handa  <handa@gnu.org>
11333         * coding.c (encode_coding_iso2022): Before writing out an invalid
11334         code, reset graphic planes and registers if necessary.
11336         * term.c (encode_terminal_code): Fix previous change.
11338 1999-02-04  Eli Zaretskii  <eliz@gnu.org>
11340         * w16select.c (last_clipboard_text, clipboard_storage_size): New
11341         static variables.
11342         (set_clipboard_data): Save a copy of the text we put into
11343         clipboard in last_clipboard_text.
11344         (get_clipboard_data): If the clipboard text is identical to what
11345         last_clipboard_text holds, pretend there's no data in the clipboard.
11347 1999-02-03  Richard Stallman  <rms@gnu.org>
11349         * s/gnu.h (NLIST_STRUCT): Add #undef.
11351 1999-02-03  Eli Zaretskii  <eliz@gnu.org>
11353         * w16select.c (Fw16_set_clipboard_data): When the text needs to be
11354         encoded, set its pointer and size as returned by encode_coding.
11356 1999-02-02  Ken'ichi Handa  <handa@gnu.org>
11358         * fns.c (Fset_char_table_default): To handle the case that CH is
11359         an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11361 1999-02-02  Andrew Innes  <andrewi@gnu.org>
11363         * w32fns.c (syms_of_w32fns): Change default value of
11364         w32-mouse-move-interval to 0, so that the mouse wheel/rocker on
11365         some mice works properly.
11367 1999-02-02  Eli Zaretskii  <eliz@gnu.org>
11369         * w16select.c (set_clipboard_data): Correctly null-terminate the
11370         string to be put into the Windows clipboard.  Use xbuf_addr.
11372 1999-02-01  Richard Stallman  <rms@gnu.org>
11374         * buffer.c (Fset_buffer_multibyte): Error if buffer is indirect.
11376 1999-01-31  Richard Stallman  <rms@gnu.org>
11378         * process.c (process_send_signal): If CURRENT_GROUP is `lambda'
11379         then don't send the signal if the shell owns the terminal.
11380         (Finterrupt_process): Doc change.
11381         
11382 1999-01-31  Andrew Innes  <andrewi@gnu.org>
11384         * unexw32.c: (ROUND_UP_DST_AND_ZERO): New macro.
11385         (copy_executable_and_dump_data): Use it to ensure alignment slop
11386         is zeroed.
11388 1999-01-30  Andrew Innes  <andrewi@gnu.org>
11390         * w32.c (init_environment): Change argv[0] to contain the full
11391         path to Emacs.
11393         * emacs.c (main) [WINDOWSNT]: Pass argv to init_environment.
11395 1999-01-29  Ken'ichi Handa  <handa@gnu.org>
11397         * xterm.c (x_new_fontset): For ASCII font, don't use the font name
11398         returned by x_new_font (the resolved one) but use the font name
11399         set in the fontset specification.
11400         (x_load_font): For the height of font, if normarl ascent and
11401         descent value are larger than those in max_bounds field, use the
11402         former.
11404 1999-01-28  Eli Zaretskii  <eliz@gnu.org>
11406         * xdisp.c (decode_mode_spec_coding): Fix previous change.
11408 1999-01-27  Geoff Voelker  <voelker@cs.washington.edu>
11410         * makefile.nt: Use full path to temacs.exe when dumping.
11412 1999-01-27  Jason Rumney <jasonr@altavista.net>
11414         * w32fns.c (w32_load_system_font): Do not load unlisted fonts if
11415         list was reliable.
11416         (enum_fontex_cb1, enum_fontex_cb2): New functions.
11417         (w32_list_bdf_fonts): New parameter; max_names.  Callers updated.
11418         (w32_list_synthesized_fonts): New function.
11419         (w32_list_fonts): Use maxnames.  Use EnumFontFamiliesEx when
11420         available instead of EnumFontFamilies.  List synthesized fonts if
11421         Vw32_enable_italics is non-nil.
11422         
11423 1999-01-27  Richard Stallman  <rms@gnu.org>
11425         * s/ptx4.h (SETUP_SLAVE_PTY): Use the ptem module if it exists.
11426         Don't complain if ttcompat does not exist.
11428         * w32fns.c (x_set_frame_parameters): gcpro as needed.
11430 1999-01-27  Andrew Innes  <andrewi@gnu.org>
11432         * w32fns.c (w32_wnd_proc): Fix bug introduced by previous change;
11433         the lwindow, rwindow and apps keys could not be used as function
11434         keys, because they were being passed to TranslateMessage which
11435         ignores them.  Also, key was being changed to SPC.
11437         * makefile.nt: Do make version comparison as strings.
11439 1999-01-27  Eli Zaretskii  <eliz@gnu.org>
11441         * coding.c (syms_of_coding): eol-mnemonic-* variables are now
11442         strings, not characters.
11444         * coding.h: Likewise.
11446         * xdisp.c (decode_mode_spec_coding): Display the EOL type as a
11447         string.
11449 1999-01-26  Dave Love  <fx@gnu.org>
11451         * emacs.c (main): Up-date copyright.
11453 1999-01-25  Dave Love  <fx@gnu.org>
11455         * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
11457 1999-01-25  Andreas Schwab  <schwab@gnu.org>
11459         * eval.c (Fsignal): Move comment to avoid confusing make-docfile.
11461 1999-01-23  Richard M. Stallman  <rms@borg.ai.mit.edu>
11463         * xfns.c (x_set_frame_parameters): gcpro as needed.
11465         * window.c (Fset_window_point): If WINDOW is selected but the
11466         current buffer is not its buffer, don't use Fgoto_char.
11468 1999-01-22  Richard M. Stallman  <rms@gnu.org>
11470         * syntax.c (scan_sexps_forward): Delete duplicate code
11471         to set prev_from_syntax, above start of main loop.
11472         At startinstring, check syntax when checking for a match.
11474 1999-01-22  Jason Rumney <jasonr@altavista.net>
11476         * w32bdf.c: New file.
11477         * w32bdf.h: New file.
11478         * makefile.nt: Add w32bdf.c and w32bdf.h.
11480         * w32gui.h: Include w32bdf.h.
11481         (W32FontStruct) Add bdf element.
11483         * w32term.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
11484         Support BDF fonts.
11486         * w32term.c (W32_TEXTOUT): New macro.
11487         (dumpglyphs): Support BDF fonts.  Use W32_TEXTOUT macro.
11488         Simplify baseline calculation.  Detect SJIS by font, not glyph.
11489         Call SetTextAlign.
11490         (syms_of_w32term): Remove "jisx0212-sjis" from
11491         w32-charset-to-codepage-alist.
11492         Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
11493         Add "ksc5601.1992' to w32-charset-to-codepage-alist.
11494         
11495         * w32fns.c (Vw32_bdf_filename_alist): New variable.
11496         (x_destroy_bitmap): Returns void not int.
11497         (x_set_border_pixel): Returns void.
11498         (w32_load_bdf_font): New function.
11499         (w32_load_system_font): New function, was w32_load_font.  List
11500         fonts before loading.  Explicitly set encoding for SJIS fonts.
11501         Set default_ascent to 0 as comment indicates.
11502         (w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
11503         (w32_unload_font): Support BDF fonts.
11504         (w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
11505         Autodetect whether to use koi8-r instead of iso8859-5.
11506         Associate "ksc5601.1987" with HANGUEL_CHARSET.
11507         Associate "ksc5601.1992" with JOHAB_CHARSET.
11508         (x_to_w32_charset): Make consistent with w32_to_x_charset.
11509         (w32_to_x_font): Add resolution.
11510         (x_to_w32_font): Use font resolution to calculate height if supplied.
11511         (w32_font_match): Handle wildcards anywhere within field.
11512         (enumfont_t): Remove unused head pointer.
11513         (enum_font_cb2): Dereference elfLogFont.
11514         (w32_list_bdf_fonts): New function.
11515         (w32_list_fonts): Use one_w32_dispay_info instead of insisting on
11516         valid frame.  Remove MessageBox.  Support BDF fonts.
11517         (Fw32_find_bdf_fonts): New function.
11518         (syms_of_w32fns): Add Vw32_bdf_filename_alist and
11519         Sw32_find_bdf_fonts.
11521 1999-01-21  Andrew Innes  <andrewi@gnu.org>
11523         * makefile.nt (temacs): Use del to delete file, not rm.
11525 1999-01-19  Richard Stallman  <rms@psilocin.ai.mit.edu>
11527         * keyboard.c (read_key_sequence): Fix previous change.
11529         * xterm.c (same_x_server): Detect treat ":0" and "unix:0"
11530         as the same.  Treat "myname:0" as the same as those two.
11532 1999-01-19  Jason Rumney <jasonr@altavista.net>
11534         * w32fns.c (x_to_w32_charset): Add iso8859-9.
11535         (w32_to_x_charset): Fix charset mappings.
11537         * w32term.c: Remove codepage macros. Remove redundant BIG5 macros.
11538         (dumpglyphs): Move definitions out of block containing goto.
11539         Remove redundant code for BIG5.
11540         Use w32_codepage_for_font instead of
11541         w32_codepage_for_charset.  Add cast to int where float
11542         operation is assigned to int.
11543         (Vw32_charset_to_codepage_alist): New variable.
11544         (w32_codepage_for_charset): Removed.
11545         (w32_codepage_for_font): New function, replacing 
11546         w32_codepage_for_charset. 
11547         (syms_of_w32term): Add and initialize
11548         w32-charset-to-codepage-alist.
11550 1999-01-17  Richard Stallman  <rms@psilocin.ai.mit.edu>
11552         * xselect.c (x_handle_selection_clear): Don't clear the
11553         selection if Emacs still owns it through a different display.
11555 1999-01-17  Andrew Innes  <andrewi@gnu.org>
11557         * w32proc.c: (w32_executable_type): Relax the check to identify
11558         cygwin-compiled applications, because the exact dll name varies
11559         with release.  Now only require the name to start "cygwin".
11561         * w32heap.h: (ROUND_UP):
11562         (ROUND_DOWN): New macros.
11563         (need_to_recreate_heap): Renamed to using_dynamic_heap.
11564         (init_heap): New extern.
11565         (data_region_size):
11566         (recreate_heap):
11567         (read_in_bss):
11568         (map_in_heap):
11569         (round_to_next):
11570         (w32_fatal_reload_error):
11571         (get_section_size): Obsolete externs removed.
11573         * w32heap.c: (RVA_TO_PTR): Redefine to convert RVA to address in
11574         current process.
11575         (round_to_next): Obsolete function removed.
11576         (preload_heap_section): New variable.
11577         (data_region_size): Obsolete variable removed.
11578         (allocate_heap): Modified to determine end of static heap section
11579         used during preload, and use that as initial base address for
11580         dynamic heap instead of hard-coded value.
11581         (sbrk): Remove call to allocate_heap; handled by init_heap.  Skip
11582         calls to commit or decommit pages when allocating from static heap
11583         section during preload.
11584         (recreate_heap): Obsolete function removed.
11585         (init_heap): New function to initialize internal sbrk heap
11586         variables.  Uses static heap section during preload, otherwise
11587         calls allocate_heap to reserve a heap region dynamically.
11588         (round_heap): Use ROUND_UP macro instead of round_to_next.
11590         * unexw32.c: Major rewrite to support cleaner method of dumping; a
11591         static "bss" section is used for heap space during preload, and
11592         bss data is now written to the proper section area when dumping.
11593         (need_to_recreate_heap): Renamed to using_dynamic_heap.
11594         (heap_index_in_executable): Obsolete variable removed.
11595         (data_section): New variable.
11596         (data_start_va): Renamed to data_start.
11597         (data_start_file): Obsolete variable removed.
11598         (bss_section):
11599         (extra_bss_size):
11600         (bss_section_static):
11601         (bss_start_static):
11602         (bss_size_static):
11603         (extra_bss_size_static):
11604         (heap_section): New variables.
11605         (_start): Remove code based on old unexec method.  Call init_heap
11606         to initialize sbrk heap.
11607         (close_file_data): Update size of file when closing, so that
11608         unexec doesn't have to work out exact size in advance.
11609         (get_bss_info_from_map_file):
11610         (get_section_size): Obsolete functions removed.
11611         (rva_to_section): Fix minor bug, and add a work-around for a bug
11612         in very old linkers.
11613         (offset_to_section):
11614         (relocate_offset): New functions.
11615         (OFFSET_TO_RVA):
11616         (RVA_TO_OFFSET):
11617         (RVA_TO_SECTION_OFFSET):
11618         (PTR_TO_RVA):
11619         (PTR_TO_OFFSET):
11620         (OFFSET_TO_PTR): New macros.
11621         (get_section_info): Modify to support new unexec method;
11622         determines address ranges in process that need dumping, and COFF
11623         sections where data will be dumped.  Allows for static and global
11624         bss data to be in separate ranges.  No longer relies on knowledge
11625         of section names.
11626         (copy_executable_and_dump_data_section): Renamed
11627         copy_executable_and_dump_data.  Completely rewritten to copy
11628         executable section by section, so that raw data areas can be
11629         expanded to hold dumped data as necessary.  Allows for bss data to
11630         be in same section as initialized data.  Reduces size of static
11631         heap section to that used during preload.
11632         (dump_bss_and_heap):
11633         (w32_fatal_reload_error):
11634         (read_in_bss):
11635         (map_in_heap): Obsolete functions removed.
11636         (unexec): Rounds off preload heap to nearest page rather than
11637         virtual allocation unit.  Modified to match other changes.
11639         * mem-limits.h: (get_lim_data): Use reserved_heap_size instead of
11640         data_region_size.
11642         * makefile.nt: (TEMACS_TMP): New macro.
11643         ($(TEMACS)): Output to TEMACS_TMP from link, use post-link
11644         processor to add static heap section in support of new unexec.
11646         * lastfile.c: Include config.h to pick up data layout pragmas.
11647         [WINDOWSNT]: Remove explicit pragma.
11649 1999-01-12  Kenichi Handa  <handa@etl.go.jp>
11651         * coding.c (Fdecode_sjis_char): Decode Japanese Katakana character
11652         correctly.
11653         (Fencode_sjis_char): Encode Japanese Katakana character correctly.
11655 1999-01-11  Dave Love  <fx@gnu.org>
11657         * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
11659 1999-01-11  Richard Stallman  <rms@psilocin.ai.mit.edu>
11661         * keyboard.c (read_key_sequence): In key-translation-map and
11662         function-key-map, handle symbol with array as fn def.
11663         In function-key-map, handle symbol with keymap as fn def,
11664         and autoloaded definitions.
11665         
11666         * puresize.h (BASE_PURESIZE): Increment to 500000.
11668         * print.c (Qtemp_buffer_setup_hook): New variable.
11669         (syms_of_print): Init and staticpro that.
11670         (temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
11672 1999-01-11  Kenichi Handa  <handa@etl.go.jp>
11674         * insdel.c (del_range_1): Call signal_after_change.
11675         (del_range_byte): Likewise.
11676         (del_range_both): Likewise.
11677         (del_range_2): Don't call signal_after_change.
11679         * xdisp.c (message_dolog): Use insert_1_both to avoid running any
11680         Lisp code here.
11682 1999-01-07  Richard Stallman  <rms@psilocin.ai.mit.edu>
11684         * eval.c (find_handler_clause): If SIG is nil (memory full error),
11685         never run the debugger, and don't bother checking the args
11686         to see whether the debugger should be run.
11688 1999-01-06  Richard Stallman  <rms@psilocin.ai.mit.edu>
11690         * keyboard.c (read_key_sequence):
11691         Tell get_keyelt to look handle autoloads.
11692         Handle symbols defined as keymaps, and autoloaded keymaps.
11694 1999-01-06  Kenichi Handa  <handa@etl.go.jp>
11696         * search.c (search_buffer): Fix previous change.
11698 1999-01-06  Eli Zaretskii  <eliz@gnu.org>
11700         * w16select.c (set_clipboard_data): Terminate the text with a null
11701         character.  Don't allow to put binary data into the clipboard.
11702         Return zero in case of success, 1 or 2 otherwise.
11703         (get_clipboard_data): Only bail out if the null character is in
11704         the last 32-byte chunk of clipboard data
11705         (Fw16_set_clipboard_data): Make ok and put_status be unsigned.  If
11706         they save binary data, print a message in the echo area saying the
11707         text was not put into the clipboard.
11709         * msdos.c (IT_write_glyphs): Move constant expression out of the loop.
11711 1999-01-06  Andreas Schwab  <schwab@gnu.org>
11713         * systty.h [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
11714         _BSD_SOURCE, the latter is always defined.
11716 1999-01-05  Richard Stallman  <rms@psilocin.ai.mit.edu>
11718         * fns.c (Frequire): Don't fail to unbind bindings.
11720 1999-01-02  Richard Stallman  <rms@psilocin.ai.mit.edu>
11722         * emacs.c (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit.
11724         * charset.c (Ffind_charset_region): Fix doc typo.
11726 1998-12-31  Eli Zaretskii  <eliz@mescaline.gnu.org>
11728         * msdos.c (IT_write_glyphs): Convert unibyte characters to
11729         multibyte in unibyte buffers only.
11731         * keymap.c (Fdefine_prefix_command): Accept a third argument NAME
11732         and pass it to Fmake_sparse_keymap.
11734 1998-12-29  Richard Stallman  <rms@psilocin.ai.mit.edu>
11736         * alloc.c (MMAP_MAX_AREAS): New macro.
11737         (allocate_vectorlike, make_uninit_multibyte_string): Use that.
11738         (init_alloc_once): Use that.
11740         * s/gnu-linux.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
11742         * alloc.c (lisp_malloc, lisp_free): New functions.
11743         Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
11744         Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
11745         (n_interval_blocks, n_float_blocks): New variable.
11746         (n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
11747         (n_marker_blocks, n_string_blocks): New variable.
11748         (init_intervals, make_interval): Set a count variable.
11749         Use lisp_malloc instead of setting allocating_for_lisp.
11750         (init_float, make_float, init_cons, Fcons): Likewise.
11751         (allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
11752         (init_marker, allocate_misc, init_strings): Likewise.
11753         (make_uninit_multibyte_string): Likewise.
11754         (gc_sweep, compact_strings): Decrement the count variables.
11756         * alloc.c (uninterrupt_malloc): Don't store Emacs's hooks
11757         into the old_..._hook variables.
11759 1998-12-28  Richard Stallman  <rms@psilocin.ai.mit.edu>
11761         * keyboard.c: In each active map, for each menu bar item, use only
11762         the first submap.
11763         (menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
11764         (menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
11765         (syms_of_keyboard): Staticpro and init it.
11767         * xmenu.c (single_keymap_panes): 
11769 1998-12-28  Andrew Innes  <andrewi@delysid.gnu.org>
11771         * w32fns.c (w32_msg_pump): Ignore WM_NULL message posted to thread
11772         by complete_deferred_msg.
11773         (post_character_message): Cancel all deferred messages when
11774         quit_char is typed, in order to break out of potential deadlocks.
11775         (cancel_all_deferred_msgs): New function.
11776         (complete_deferred_msg): Don't abort if msg not found; may have
11777         been cancelled.
11778         (Fw32_reconstruct_hot_key): Use pre-interned symbols.
11779         (Fw32_send_sys_command): Wait for system command to
11780         complete before returning.
11782         * w32term.c (x_iconify_frame): Wait for frame to be iconified; do
11783         not set async_iconified flag though.
11785         * w32proc.c: (Vw32_start_process_inherit_error_mode): New variable.
11786         (create_child): Use it.
11787         (syms_of_ntproc): Defvar it.  Also fix docstrings for
11788         w32-start-process-share-console and w32-start-process-show-window.
11790         * unexw32.c (_start): Force system calls accessing unmounted
11791         devices to fail without prompting.
11793 1998-12-26  Richard Stallman  <rms@psilocin.ai.mit.edu>
11795         * emacs.c (main): Call memory_warnings and uninterrupt_malloc
11796         even when starting the dumped Emacs.
11798         * keymap.c (Fsingle_key_description): Handle (control ?x) etc.
11799         (Fkey_description): Handle lists like vectors.
11801 1998-12-21  Kenichi Handa  <handa@etl.go.jp>
11803         * callint.c (Fcall_interactively) <'C'>: Give Fread_char Qnil
11804         because of the change of the second argument of Fread_char.
11806         * charset.c (Fcharset_after): Check range.  If POS is out of
11807         range, return nil.
11809         * keyboard.c (read_char): Don't bind input-method-exit-on-first-char.
11811         * lread.c (Fread_char): Change the meaning of the second argument.
11812         (Fread_event): Likewise.
11813         (Fread_char_exclusive): Likewise.
11815         * print.c (printchar): Fix previous change.
11817         * process.c (read_process_output): Decide the multibyteness of
11818         string given to a process filter by a coding system used for
11819         decoding the process output.
11821 1998-12-21  Eli Zaretskii  <eliz@mescaline.gnu.org>
11823         * xterm.c (dumpglyphs): Don't convert 7-bit ASCII characters via
11824         nonascii-translation-table.
11825         * msdos.c (IT_write_glyphs): Likewise.
11826         * fns.c (concat): Likewise.
11827         * charset.c (unibyte_char_to_multibyte): Likewise.
11828         * insdel.c (copy_text, count_size_as_multibyte): Likewise.
11830 1998-12-21  Andreas Schwab  <schwab@delysid.gnu.org>
11832         * doc.c (Fdocumentation): Change the doc string for prefix
11833         commands to make it a complete sentence in one line.
11835 1998-12-16  Petri Kaurinkoski  <Petri.Kaurinkoski@hut.fi>
11837         * s/irix6-5.h: New file.
11838         * s/irix6-0.h (IRIX6): Define this symbol.
11839         * s/usg5-4.h (TIOCSIGSEND): Don't define this if irix6.
11840         (bcopy, bcmp, bzero): Likewise.
11841         * m/iris4d.h (LIBS_MACHINE): Leave this blank if irix6.5.
11842         (C_SWITCH_MACHINE): New value for irix6.5.
11844 1998-12-15  Richard Stallman  <rms@gnu.org>
11846         * fns.c (Fbase64_decode_region, Fbase64_decode_string):
11847         Do free malloc'd memory even in case of failure.  Use xfree, not free.
11848         (Fbase64_encode_region, Fbase64_encode_string): Use xfree, not free.
11849         (base64_decode_1): Don't fail for short lines.
11851         * print.c (printchar): Outputting multibyte characters
11852         to echo area always makes it multibyte.
11854         * search.c (search_buffer): Don't use Boyer-Moore
11855         to search for an invalid multibyte code.
11856         In unibyte case, no need to check whether there are translations
11857         in more than one charset; just set charset_base to 0.
11859 1998-12-15  Ken'ichi Handa  <handa@delysid.gnu.org>
11861         * print.c (printchar): Cancel previous change.
11863 1998-12-15  Kenichi Handa  <handa@etl.go.jp>
11865         * callproc.c: Include "ccl.h".
11866         (Fcall_process): Doc-string modified.  Set CODING_MODE_LAST_BLOCK
11867         bit in argument_coding.mode to tell encoding procedure to flush
11868         data.  While encoding arguments, if argument_coding uses CCL
11869         program, initialize it again after encoding.
11870         (Fcall_process_region): Doc-string modified.  Handle the case that
11871         NARGS is 3.
11873         * ccl.c (CCL_SUCCESS): Don't set ccl->ic.
11874         (ccl_driver) <CCL_End>: Pretend that all source text is consumed.
11875         Set `ic' to the head of this command.
11876         (ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
11877         code for an invalid code.
11878         (setup_ccl_program): If the arg VEC is nil, skip setting ups
11879         based on VEC.
11881         * charset.c (Qunknown): New variable.
11882         (init_charset_once): Intern and staticpro Qunknown.  Initialize
11883         all elements of Vcharset_symbol_table to Qunknown.
11884         (find_charset_in_str): New arg MULTIBYTE.  If it is zero, check
11885         unibyte characters only.  For an invalid composition sequence, set
11886         CHARSETS[1] to 1.
11887         (Ffind_charset_region): Call find_charset_in_str with an
11888         appropriate MULTIBYTE arg.  If undefined charsets are found,
11889         include `unknown' is the return value.
11890         (Ffind_charset_string): Likewise.
11891         (Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
11892         (str_cmpchar_id): Max composite character code should be less than
11893         GENERIC_COMPOSITION_CHAR.
11895         * charset.h (find_charset_in_str): Update declaration.
11897         * coding.c (DECODE_DESIGNATION): Jump to label_invalid_code if
11898         final_char is invalid.
11899         (decode_coding): If coding->type is coding_type_ccl, call
11900         ccl_coding_driver even if SRC_BYTES is zero.
11901         (code_convert_region): Update `inserted' correctly after calling
11902         coding->post_read_conversion.  Even after the code converter
11903         consumed all source text, call it once more if it is
11904         coding_type_ccl to flush out data.
11906         * fileio.c (Finsert_file_contents): Even if INSERTED is zero, if
11907         CODING is handled by CCL program, call code_convert_region.
11909         * fns.c (string_char_to_byte): Handle invalid multibyte sequence
11910         correctly.
11911         (string_byte_to_char): Likesize.
11913         * print.c (printchar): When outputting a multibyte character to
11914         echo area, always set message_enable_multibyte to 1.
11916         * process.c (read_process_output): If NBYTES is zero and
11917         CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
11918         and try decoding again.
11919         (Fprocess_send_eof): If the coding system of PROCESS
11920         requires flushing, call send_process with null-string at first.
11922         * w16select.c (Fw16_set_clipboard_data): Call find_charset_in_str
11923         with MULTIBYTE arg 0.
11924         * w32select.c (Fw32_set_clipboard_data): Likewise.
11925         * xselect.c (lisp_data_to_selection_data): Likewise.
11927 1998-11-30  Richard Stallman  <rms@psilocin.ai.mit.edu>
11929         * search.c (Freplace_match): Set OPOINT clearly for the case
11930         where point is in the middle of the text to be replaced.
11932         * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
11933         if compute_motion fails to advance at all, don't back it up.
11935 1998-12-10  Geoff Voelker  <voelker@cs.washington.edu>
11937         * w32.c (w32_get_long_filename): Handle root dirs correctly.
11939         * s/ms-w32.h (LOCALTIME_CACHE): Define. 
11941 1998-12-09  Richard Stallman  <rms@gnu.org>
11943         * insdel.c (insert_from_buffer_1): Properly count the size
11944         of output from conversion to multibyte even when input
11945         is split across the gap.
11947 1998-12-09  Karl Heuer  <kwzh@gnu.org>
11949         * keyboard.c: Doc fixes.
11951         * s/irix4-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
11953 1998-12-08  Andrew Innes  <andrewi@harlequin.co.uk>
11955         * w32select.c (Fw32_get_clipboard_data): Do not delete isolated CR
11956         characters, only convert CRLF to LF.
11958 1998-12-08  Geoff Voelker  <voelker@cs.washington.edu>
11960         * makefile.nt: Do string comparision of _NMAKE_VER.
11962 1998-12-06  Eli Zaretskii  <eliz@mescaline.gnu.org>
11964         * Makefile.in (msdos.o): Depend on termchar.h, charset.h,
11965         coding.h, and disptab.h
11967         * msdos.c (Vdos_unsupported_char_glyph): New variable.
11968         (syms_of_msdos): DEFVAR_LISP it.
11969         (IT_insert_glyphs, IT_delete_glyphs): New functions which abort Emacs.
11970         (internal_terminal_init): Set up insert_glyphs_hook and
11971         delete_glyphs_hook to call them.  Explicitly set char_ins_del_ok to 0.
11972         (unibyte_display_via_language_environment): New variable.
11973         (syms_of_msdos): Devfar it.
11974         (IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
11975         Encode the character codes of the glyphs according to the
11976         terminal_coding in effect.
11978 1998-12-04  Andreas Schwab  <schwab@delysid.gnu.org>
11980         * fns.c (Fstring_as_unibyte): Doc fix.
11982 1998-12-03  Andreas Schwab  <schwab@delysid.gnu.org>
11984         * charset.h: Declare char_valid_p.
11986 1998-12-03  Eli Zaretskii  <eliz@mescaline.gnu.org>
11988         * dosfns.c (dos_cleanup): Flush and fsync the termscript stream.
11990         * msdos.c (init_environment): Record the time we started up.
11991         (IT_reset_terminal_modes): Don't restore the screen if we exit too
11992         fast after startup (aka crash).
11994 1998-12-02  Geoff Voelker  <voelker@cs.washington.edu>
11996         * w32.c (check_windows_init_file): Use decode_env_path when
11997         using EMACSLOADPATH.
11999 1998-12-02  Jason Rumney  <jasonr@altavista.net>
12001         * w32term.c (dumpglyphs): Use unsigned char arrays.
12002         Use FONT_MAX_WIDTH to detect and fudge proportional fonts
12003         for various languages.
12004         Compensate for fonts that have underhangs (e.g., Thai).
12006         * w32term.h (FONT_MAX_WIDTH): New macro.
12008 1998-12-02  Andrew Innes  <andrewi@harlequin.co.uk>
12010         * keyboard.c (Qlanguage_change): New variable.
12011         (syms_of_keyboard): Init it.
12012         (kbd_buffer_get_event) [WINDOWSNT]: Generate language-change events.
12013         (lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
12014         keys; add name for Escape key; extend to 256 elements.
12015         (parse_modifiers): Make non-static.
12017         * keyboard.h (parse_modifiers): Declare prototype.
12019         * termhooks.h (event_kind) [WINDOWSNT]: Define language_change_event.
12021         * w32fns.c (w32_last_error): Fix cut+paste error.
12022         (Vw32_phantom_key_code): New variable.
12023         (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New variables.
12024         (syms_of_w32fns): Init and register them.
12025         (reset_modifiers): Use a more precise test for whether Emacs has
12026         keyboard focus.  Synchronize state of all keys that can be used as
12027         modifiers, to overcome problems arising from hot-keys.
12028         (w32_key_to_modifier): Be careful not to call intern() to avoid
12029         requiring thread synchronization.
12030         (w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
12031         (w32_wnd_proc): Ensure lock key indicator lights are updated
12032         promptly on Windows 9x, by passing key events on to the system.
12033         (w32_wnd_proc): Use Vw32_phantom_key_code to stop system
12034         responding to Windows key events when not wanted.
12035         (w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
12036         Ctrl-NumLock into pause by the system.
12037         (w32_wnd_proc): Don't translate key combinations containing any
12038         modifiers other than shift (and capslock).
12039         (w32_wnd_proc): Reset modifier key states when receiving focus (we
12040         can't determine the key states until we have keyboard focus).
12041         (Fw32_toggle_lock_key): New function.
12042         (syms_of_w32fns): Defsubr it.
12044         * w32inevt.c (key_event): Use Vw32_phantom_key_code.  Undo the
12045         mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
12046         (w32_console_toggle_lock_key): New function.
12048         * w32term.h (WM_EMACS_TOGGLE_LOCK_KEY): New define.
12050 1998-11-30  Richard Stallman  <rms@psilocin.ai.mit.edu>
12052         * search.c (Freplace_match): Set OPOINT clearly for the case
12053         where point is in the middle of the text to be replaced.
12055         * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
12056         if compute_motion fails to advance at all, don't back it up.
12058 1998-11-28  Richard Stallman  <rms@psilocin.ai.mit.edu>
12060         * xfns.c (Qouter_window_id): New variable.
12061         (syms_of_xfns): Initialize it.
12062         (x_report_frame_params): Set up outer-window-id parameter.
12064         * keymap.c (Fsingle_key_description): Fix previous change.
12066 1998-11-26  Ken'ichi Handa  <handa@delysid.gnu.org>
12068         * lisp.h (Frequire): Update declaration.
12070 1998-11-26  Kenichi Handa  <handa@etl.go.jp>
12072         * ccl.c (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
12073         if the charset is ascii.
12074         (ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
12076         * charset.c (non_ascii_char_to_string): If C has modifier bits,
12077         make an appropriate one byte string.
12078         (char_bytes): Handle the case that C is a single byte char or has
12079         modifier bits.
12081         * charset.h (CHAR_BYTES): If C has modifier bits, return 1.
12083         * cmds.c (internal_self_insert): If C has modifier bits, insert
12084         appropriate one byte char.
12086 1998-11-25  Richard Stallman  <rms@psilocin.ai.mit.edu>
12088         * fns.c (Fstring_as_unibyte, Fstring_as_multibyte):
12089         Clear text properties in the new string.
12091 1998-11-24  Felix Lee  <flee@cygnus.com>
12093         * process.c (read_process_output): Call signal_after_change.
12095 1998-11-24  Richard Stallman  <rms@psilocin.ai.mit.edu>
12097         * buffer.c (syms_of_buffer): Doc fix.
12099         * keyboard.c (syms_of_keyboard): Doc fix.
12101 1998-11-22  Richard Stallman  <rms@psilocin.ai.mit.edu>
12103         * frame.c (Fset_mouse_position): Doc fix.
12105 1998-11-20  Richard Stallman  <rms@psilocin.ai.mit.edu>
12107         * keymap.c (Fmake_keymap): Doc fix.
12109 1998-11-17  Kenichi Handa  <handa@etl.go.jp>
12111         * category.c (word_boundary_p): If C1 or C2 are composite
12112         characters, test their first components.
12114 1998-11-16  Richard Stallman  <rms@sucrose.ai.mit.edu>
12116         * window.c (temp_output_buffer_show): Around temp-buffer-show-hook,
12117         don't do save-excursion, just restore selected window.
12119         * window.c (window_loop): For UNSHOW_BUFFER,
12120         always do consider minibuffer windows.
12121         
12122 1998-11-16  Kenichi Handa  <handa@etl.go.jp>
12124         * charset.h (SINGLE_BYTE_CHAR_P): Check if C is negative or not.
12126         * charset.c (non_ascii_char_to_string): If C is negative, signal error.
12128         * lisp.h (CHAR_TABLE_REF): Check if IDX is negative or not.
12130         * s/bsdos4.h: New file.
12132 1998-11-16  Kenichi Handa  <handa@etl.go.jp>
12134         * Makefile.in (abbrev.o): Depend on charset.h
12135         (bytecode.o): Depend on charset.h.
12137         * bytecode.c: Include charset.h.
12139         * abbrev.c: Include charset.h.
12141         * syntax.h (SYNTAX_ENTRY_INT): For a composite character, check
12142         the first component.
12144 1998-11-13  Ehud Karni  <ehud@unix.simonwiesel.co.il>
12146         * m/aviion-intel.h (LIBS_MACHINE): Delete redundant definition.
12148 1998-11-11  Richard Stallman  <rms@gnu.org>
12150         * xterm.c (XTread_socket): Fix previous change in case F == 0.
12152         * s/dgux5-4-3.h (BSD_PGRPS): Add #undef.
12154         * s/dgux4.h (BROKEN_FIONREAD): #undef commented out.
12155         (INTERRUPT_INPUT): #define commented out.
12157         * m/aviion-intel.h: New file.
12159 1998-11-11  Eli Zaretskii  <eliz@delysid.gnu.org>
12161         * fns.c (MAX_ALLOCA): New macro.
12162         (Fbase64_encode_region, Fbase64_encode_string,
12163         Fbase64_decode_region, Fbase64_decode_string):  Don't allocate
12164         more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
12166 1998-11-11  Ken'ichi Handa  <handa@delysid.gnu.org>
12168         * insdel.c (byte_combining_error): Error message improved.
12170         * charset.c (char_valid_p): Handle a composite character correctly.
12172 1998-11-11  Kenichi Handa  <handa@etl.go.jp>
12174         * charset.c (str_cmpchar_id): Check the byte sequence for
12175         composition more rigidly.
12176         (Fcompose_string): Allow DEL to be composed.  Signal error if STR
12177         contains an invalid multibyte sequence.
12179         * xterm.c (x_list_fonts): Don't change the value of maxnames.
12181 1998-11-10  Andrew Innes  <andrewi@harlequin.co.uk>
12183         * w32term.h (struct w32_display_info): New element faked_key.
12184         (WM_EMACS_SETKEYBOARDLAYOUT): 
12185         (WM_EMACS_REGISTER_HOT_KEY): 
12186         (WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
12187         (LEFT_WIN_PRESSED): 
12188         (RIGHT_WIN_PRESSED): 
12189         (APPS_PRESSED): New console keyboard modifier flags.
12191         * w32term.c (convert_to_key_event): Removed.
12192         (is_dead_key): Copied to w32fns.c.
12193         (w32_read_socket): Generate language_change_event.  Modify to work
12194         with keyboard handling changes in w32_wnd_proc.
12196         * w32proc.c (sys_kill): Set extended key flag when faking
12197         Ctrl-Break keystrokes.
12198         (Fw32_get_locale_info): Allow LONGFORM parameter to specify an
12199         arbitrary locale property using a numerical index.
12200         (Vw32_valid_codepages): New variable.
12201         (enum_codepage_fn): 
12202         (Fw32_get_valid_codepages): 
12203         (Fw32_get_console_codepage): 
12204         (Fw32_set_console_codepage): 
12205         (Fw32_get_console_output_codepage): 
12206         (Fw32_set_console_output_codepage): 
12207         (Fw32_get_codepage_charset): 
12208         (Fw32_get_valid_keyboard_layouts): 
12209         (Fw32_get_keyboard_layout): 
12210         (Fw32_set_keyboard_layout): New functions, exposing Windows locale
12211         handling functions.
12212         (syms_of_ntproc): Register them.
12214         * w32inevt.c: Include w32term.h and w32heap.h.
12215         (map_keypad_keys):
12216         (Vw32_enable_caps_lock):
12217         (Vw32_enable_num_lock):
12218         (Vw32_pass_lwindow_to_system):
12219         (Vw32_pass_rwindow_to_system):
12220         (Vw32_lwindow_modifier):
12221         (Vw32_rwindow_modifier):
12222         (Vw32_apps_modifier):
12223         (Vw32_scroll_lock_modifier):
12224         (w32_key_to_modifier): Add externs.
12225         (w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
12226         Scroll Lock as potential modifiers; exclude numpad keys from
12227         effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
12228         code.
12229         (is_dead_key): Copy from w32fns.c.
12230         (w32_kbd_patch_key): Comment attempt to improve handling of
12231         dead-keys, and system bug relating to same on Windows NT.  Work
12232         around the bug by calling ToUnicode and then converting to the
12233         correct codepage.
12234         (map_virt_key): Removed obsolete variable.
12235         (lispy_function_keys): Add extern.
12236         (key_event): Major rework of keyboard input handling: optionally
12237         recognize Windows keys and Apps key as modifiers; optionally treat
12238         NumLock, CapsLock and ScrollLock as function keys; let system
12239         translate keystrokes to characters to avoid system bugs relating
12240         to dead-key handling; preserve shift distinction for control
12241         characters.  Remove some obsolete code.
12243         * makefile.nt ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
12244         and w32heap.h.
12246         * w32fns.c (Vw32_pass_optional_keys_to_system): Variable removed.
12247         (Vw32_pass_lwindow_to_system):
12248         (Vw32_pass_rwindow_to_system):
12249         (Vw32_lwindow_modifier):
12250         (Vw32_rwindow_modifier):
12251         (Vw32_apps_modifier):
12252         (Vw32_enable_num_lock):
12253         (Vw32_enable_caps_lock):
12254         (Vw32_scroll_lock_modifier): New variables.
12255         (modifier_set): Return toggle state for Scroll Lock.
12256         (w32_key_to_modifier): New function.  Returns chosen modifier bit
12257         for given key.
12258         (w32_get_modifiers): Returns modifier flags for
12259         non-keyboard input events.
12260         (construct_console_modifiers): Renamed from construct_modifiers;
12261         recognize Windows and Apps keys as modifiers.
12262         (w32_get_key_modifiers): New function.  Returns modifier flags for
12263         keyboard input events.
12264         (map_keypad_keys): Make non-static.  Use second arg as extended
12265         flag.
12266         (w32_grabbed_keys): New variable.
12267         (HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
12268         (register_hot_keys):
12269         (unregister_hot_keys):
12270         (lookup_vk_code):
12271         (w32_parse_hot_key):
12272         (Fw32_register_hot_key):
12273         (Fw32_unregister_hot_key):
12274         (Fw32_registered_hot_keys):
12275         (Fw32_reconstruct_hot_key): New functions to support hotkeys.
12276         (post_character_message): New function.
12277         (w32_msg_pump): Handle new messages for using hotkeys and changing
12278         keyboard layout/language.
12279         (w32_wnd_proc): Major rework of keyboard input handling:
12280         optionally recognize Windows keys and Apps key as modifiers;
12281         optionally treat NumLock, CapsLock and ScrollLock as function
12282         keys; let system translate keystrokes to characters to avoid
12283         system bugs relating to dead-key handling; preserve shift
12284         distinction for control characters; forward keyboard
12285         layout/language changes to lisp; detect and convert hot-key events
12286         to normal keystrokes.
12287         (syms_of_w32fns): Register new functions and variables.
12288         (w32_last_error): New function for use in debugging.
12290 1998-11-10  Kenichi Handa  <handa@etl.go.jp>
12292         * category.h (CATEGORY_SET): Adjusted for the change of
12293         cmpchar_component.
12294         (CATEGORY_SET): Likewise.
12296         * charset.c (cmpchar_component): New arg NOERROR.  Check
12297         composition char ID more strictly.
12298         (Fcmpchar_component): Call cmpchar_component with NOERROR arg zero.
12299         (Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
12300         return 255.
12301         (Fcompose_string): Signal error if STR contains a rule-based
12302         composition character.
12304         * charset.h (cmpchar_component): Proto-type adjusted.
12306 1998-11-09  Kenichi Handa  <handa@etl.go.jp>
12308         * charset.c (string_to_non_ascii_char): Return correct length for
12309         a charset of dimension 2 and composition character.
12311 1998-11-08  Richard Stallman  <rms@sucrose.ai.mit.edu>
12313         * keymap.c (Fsingle_key_description): Handle generic characters.
12315         * process.c (Fprocess_status): Doc fix.
12317 1998-11-06  Ken'ichi Handa  <handa@delysid.gnu.org>
12319         * charset.c (init_charset_once): Fix previous change.
12321 1998-11-06  Kenichi Handa  <handa@etl.go.jp>
12323         * charset.c (string_to_non_ascii_char): Fix previous change.
12324         (char_valid_p): Check the validity of CHARSET by CHARSET_DEFINED_P.
12326         * charset.h (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
12327         character correctly.
12328         (STRING_CHAR): Handle an invalid charater correctly.
12330 1998-11-05  Kenichi Handa  <handa@etl.go.jp>
12332         * charset.c (string_to_non_ascii_char): Fix previous change.
12334         * charset.h (MAKE_NON_ASCII_CHAR): Check validity of CHARSET.
12336         * editfns.c (Fstring_to_char): Don't return a multibyte character
12337         if STRING is a unibyte string.
12339         * indent.c (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte
12340         character.
12342         * xdisp.c (display_text_line): Check validity of a multibyte character.
12343         (display_string): Likewise.  Handle an invalid character correctly.
12345 1998-11-05  Karl Heuer  <kwzh@gnu.org>
12347         * insdel.c (Fcombine_after_change_execute): Return nil, not junk.
12348         If nothing to do, return immediately.
12349         (syms_of_insdel): Initialize combine_after_change_buffer.
12351 1998-11-05  Richard Stallman  <rms@gnu.org>
12353         * xterm.c (XTread_socket): ButtonPress clears f->mouse_moved.
12355 1998-11-04  Geoff Voelker  <voelker@cs.washington.edu>
12357         * w32term.c (w32_enable_unicode_output): Rename from
12358         w32_no_unicode_output.
12359         (w32_use_unicode_for_codepage, syms_of_w32term): Use new name
12360         and new semantics.
12362 1998-11-04  Jason Rumney  <jasonr@altavista.net>
12364         * w32fns.c (w32_list_fonts): Report an error if a frame has not
12365         been created yet.
12367         * w32term.c (dumpglyphs): Use FRAME_FONT for w32_fill_area.
12369 1998-11-04  Kenichi Handa  <handa@etl.go.jp>
12371         * charset.c (string_to_non_ascii_char): Change the check for the
12372         varidity of multibyte form.
12373         (update_charset_table): Check validity of BYTES.  Don't set
12374         bytes_by_char_head here.
12375         (init_charset_once): Set bytes_by_char_head completely.
12377         * frame.c (do_switch_frame): Cancel previous change.
12379         * print.c (print_string): Check validity of a character.
12380         (print): Likewise.
12382         * sysdep.c [nec_ews_svr4]: Extern *_sobuf.
12384         * m/ews4800.h, s/ux4800.h: New files.
12386 1998-11-03  Theodore Jump <tjump@tertius.com>
12388         * makefile.nt: Compile multiple source files when possible.
12390         * w32faces.c (Qmouse_face): Replace definition with extern decl.
12391         
12392 1998-11-03  Andrew Innes  <andrewi@delysid.gnu.org>
12394         * w32.c (stat): GetFileInformationByHandle can legitimately fail,
12395         so don't rely on it succeeding.
12397         * w32fns.c (x_to_w32_font): Specify DEFAULT_CHARSET in the w32
12398         LOGFONT struct if x font doesn't specify the charset.
12399         (x_to_w32_charset): Change >= to == when testing results of
12400         stricmp.
12402 1998-11-02  Richard Stallman  <rms@sucrose.ai.mit.edu>
12404         * fns.c (Frequire): New arg NOERROR.
12406 1998-11-02  Andrew Innes  <andrewi@harlequin.co.uk>
12408         * fileio.c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo.
12410 1998-10-31  Richard Stallman  <rms@psilocin.ai.mit.edu>
12412         * xfaces.c (Qmouse_face): Replace definition with extern decl.
12413         (syms_of_xfaces): Initialization deleted.
12415         * textprop.c (Qmouse_face): Variable definition moved here.
12416         (syms_of_textprop): Initialize it.
12418         * data.c (set_internal): For built-in maybe-local vars,
12419         when BINDFLAG is set, do not mark them as local.
12421 1998-10-31  Ken'ichi Handa  <handa@delysid.gnu.org>
12423         * insdel.c (replace_range): Fix previous change.
12425 1998-10-31  Kenichi Handa  <handa@etl.go.jp>
12427         * editfns.c (Fsubst_char_in_region): Fix previous change.
12428         (Ftranslate_region): Fix previous change.
12430         * fns.c (Fbase64_decode_region): Fix previous change.
12432         * frame.c (do_switch_frame): Update minibuf_window if necessary.
12434         * insdel.c (byte_combining_error): New function.
12435         (CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
12436         (insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
12437         CHECK_BYTE_COMBINING_FOR_INSERT.
12438         (insert_from_buffer_1): Likewise.
12439         (adjust_after_replace): Check the posibility of inhibitted byte
12440         combining correctly.
12441         (replace_range): Before signaling an error for inhibitted byte
12442         combining, recover the buffer in a safe state.
12443         (del_range_2): Check the posibility of inhibitted byte combining
12444         correctly.
12446 1998-10-30  Andreas Schwab  <schwab@delysid.gnu.org>
12448         * xselect.c (Vselection_coding_system): Doc fix.
12450         * fns.c (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
12451         when we have both char and byte position.  Fix type clashes.
12453         * eval.c (Fsignal): Use a separate format string when passing
12454         error message string to fatal, in case it contains %'s.
12456         * editfns.c (Fchar_after): Fix type clashes.
12458         * charset.c (Fchar_bytes): Doc fix.
12459         (char_bytes): Fix returned value to match returned type.
12460         (syms_of_charset): Fix type clash in initialisation of
12461         Vauto_fill_chars.
12463 1998-10-29  Geoff Voelker  <voelker@cs.washington.edu>
12465         * w32console.c (initialize_w32_display): Use buffer coords
12466         instead of buffer size (which may be larger than the window).
12468         * fileio.c (init_fileio_once): New function.
12470         * emacs.c (main): Invoke init_fileio_once.
12472 1998-10-28  Paul Eggert  <eggert@twinsun.com>
12474         * xterm.c (XTread_socket): Check the returned value of
12475         XmbLookupString more carefully.
12477 1998-10-28  Kenichi Handa  <handa@etl.go.jp>
12479         * coding.c (DECODE_CHARACTER_ASCII): Check validity of inserted code.
12480         (DECODE_CHARACTER_DIMENSION1): Likewise.
12481         (DECODE_CHARACTER_DIMENSION2): Likewise.
12482         (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
12484         * editfns.c (Fsubst_char_in_region): Fix previous change.
12485         (Ftranslate_region): Fix previous change.
12487         * insdel.c (check_markers): Check if markers are at character boundry.
12488         (adjust_markers_for_insert): Fix previous change.
12489         (count_combining_before): Don't limit the check at BEGV.
12490         (count_combining_after): Don't limit the check at ZV.
12491         (CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
12492         (insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
12493         (insert_from_string_1): Likewise.
12494         (insert_from_buffer_1): Likewise.
12495         (adjust_after_replace): Inhibit bytes combined across region
12496         boundary.  Update end_unchanged correctly.
12497         (replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT.  Update
12498         end_unchanged correctly.
12499         (del_range_2): Inhibit bytes combined across region boundary.
12500         Update end_unchanged correctly.
12502 1998-10-27  Geoff Voelker  <voelker@cs.washington.edu>
12504         * w32.c (check_windows_init_file): Also look in load path specified
12505         in environment.
12507         * w32console.c (Fset_message_beep): Recognize 'silent.
12508         (w32_sys_ring_bell): Do nothing for the 'silent sound.
12509         
12510         * w32fns.c (w32_color_map_lookup): Remove duplicate definition.
12512         * w32select.c (Vnext_selection_coding_system): New variable.
12513         (syms_of_w32select): DEFVAR_LISP it.
12514         (Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
12515         non-nil.  Always convert multibyte strings.
12516         (Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
12517         non-nil.  Always convert a string that includes non-ASCII characters.
12518         
12519 1998-10-27  Richard Stallman  <rms@psilocin.ai.mit.edu>
12521         * fns.c (Fbase64_decode_string): Doc fix.
12522         (Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
12523         Likewise.
12525 1998-10-27  Dave Love  <fx@gnu.org>
12527         * fns.c (Fbase64_decode_region, Fbase64_encode_region): Fix
12528         newline in doc string.
12530 1998-10-27  Kenichi Handa  <handa@etl.go.jp>
12532         * editfns.c (Fsubst_char_in_region): Correctly handle the case
12533         that byte combining before happens.
12534         (Ftranslate_region): Likewise.
12536         * insdel.c (adjust_after_replace): Correctly handle the case that
12537         both byte combining before and byte combining after happen.
12538         (replace_range): Likewise.
12540 1998-10-26  Kenichi Handa  <handa@etl.go.jp>
12542         * category.c (syms_of_category): Doc-string modified.
12544         * coding.c (code_convert_region): Kill the work buffer created by
12545         pre-write-conversion.
12547 1998-10-25  Jason Rumney  <jasonr@altavista.net>
12549         * emacs.c (main) [HAVE_NTGUI]: Invoke syms_of_fontset().
12551 1998-10-23  Kenichi Handa  <handa@etl.go.jp>
12553         * coding.c (code_convert_region): While preserving the orignal
12554         point, pay attention to the byte combining problem.
12556         * fns.c (Fbase64_decode_region): Pay attention to the byte
12557         combining problem.
12559         * insdel.c (adjust_markers_for_insert): Adjust markers by taking
12560         combined_before_bytes and combined_after_bytes into account.
12561         (count_combining_after): Handle the case that LENGTH is zero.
12562         (adjust_after_replace): Record deletion at correct buffer
12563         position.  Handle the case that LEN is zero.
12564         (replace_range): Record deletion at correct buffer position.
12565         (del_range_2): Call adjust_makers_for_replace to adjust makers for
12566         combined bytes.
12568 1998-10-21  Richard Stallman  <rms@psilocin.ai.mit.edu>
12570         * alloc.c (Fgarbage_collect): Block input around most of the function.
12571         
12572 1998-10-21  Kenichi Handa  <handa@etl.go.jp>
12574         * coding.c (setup_coding_system): Fix setting up
12575         coding->spec.ccl.valid_codes for CCL based coding system.
12576         (code_convert_region): Set point to FROM before inserting the
12577         result of pre-write-funciton.  Preserve original point.
12578         (code_convert_string): If coding->type is coding_type_ccl, do
12579         conversion even if the length of conversion region is zero.
12581         * fontset.c: Include frame.h before fontset.h.
12582         (list_fonts_func): Fix prototype.       
12584         * frame.c: Include frame.h before fontset.h.
12586         * xterm.c: Likewise.
12588 1998-10-21  Jason Rumney  <jasonr@altavista.net>
12590         * x-list-font.c (Fx_list_fonts): Access frame parameters throught
12591         general macros.   Don't call x_list_font directory, instead call a
12592         function set in list_fonts_func.
12594         * fontset.h (list_fonts_func): Fix prototype.
12596 1998-10-20  Jason Rumney  <jasonr@altavista.net>
12598         * makefile.nt (w32fns.c): Add x-list-font.c to dependancies.
12600         * w32faces.c: Update comments referring to obsolete structs.
12601         (allocate_face, copy_face, face_eql, load_font,
12602         Fpixmap_spec_p, free_frame_faces, new_computed_face,
12603         frame_update_line_height, merge_faces, compute_base_face,
12604         Fset_face_attribute_internal): Use fontset support based on xfaces.c.
12606         * w32fns.c: (Vx_pixel_size_width): New global variable.
12607         (unibyte_display_via_language_environment): New global variable.
12608         (x_set_font): Add support for setting fontsets.
12609         (Fx_create_frame): Add check_w32(). Initialize fontsets.  Fix
12610         font names to match xlfd-tight-regexp.
12611         (w32_load_font): Rewrite based on x_load_font.
12612         (x_to_w32_charset, w32_to_x_charset): Add character sets.  Use
12613         `iso8859-1' rather than `ansi'.
12614         (w32_to_x_font): Remove `-' from font name.  Remove the `-' off the
12615         end. Move charset into `charset registry' field.
12616         (enum_font_cb2): Check charsets match.  Include width in font list.
12617         (w32_list_fonts): Rewrite based on x_list_fonts.
12618         Moved from w32term.c to have access to enumfont_t struct.
12619         (Fx_list_fonts): w32 specific version eliminated.  Include
12620         `x-list-fonts.c'.
12621         (w32_get_font_info, w32_query_font, w32_find_ccl_program): New
12622         functions for fontset support - adapted from x_ equivalents.
12623         (syms_of_w32fns): New lisp variables initialised.  Function
12624         pointers for fontset.c set up.
12626         * w32term.c: Include fontset.h.  Define codepage macros. 
12627         Add ENCODE_BIG5 macro from coding.c.
12628         (w32_no_unicode_output): New variable.
12629         (w32_codepage_for_charset, w32_use_unicode_for_codepage): New
12630         functions.
12631         (BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
12632         (dumpglyphs): Rewrite based on xterm.c equivalent.
12633         (x_new_font): Use functionality provided in fontset.c.
12634         (x_new_fontset): New function based on the one in xterm.c.
12635         (syms_of_w32term): Add w32-no-unicode-output flag.
12637         * w32term.h: Remove redundant font_info struct definition. 
12638         (Vx_pixel_size_width_font_regexp,
12639         unibyte_display_via_language_environment): Declare variables.
12640         (w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font): 
12641         Declare functions.
12642         (w32_output): New fields font_baseline and fontset.
12643         (FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
12645         * w32xfns.c: Include charset.h and fontset.h.
12647 1998-10-20  Richard Stallman  <rms@psilocin.ai.mit.edu>
12649         * syntax.c (syms_of_syntax): Fix the setup of Qscan_error.
12651 1998-10-20  Eli Zaretskii  <eliz@mescaline.gnu.org>
12653         * msdos.c (mouse_init): Reset the button press/release info of the
12654         mouse driver.
12655         (mouse_preempted): New variable.
12656         (dos_rawgetc): Don't generate mouse events if mouse is preempted.
12657         (XMenuActivate): Preempt the mouse during menu-handling loop.
12658         Release the current time slice while idling in the menu-handling
12659         loop.  Leave the loop only if the user pressed, then released the
12660         same button.  Discard all mouse events that are pending in the
12661         event queue before exiting.
12663 1998-10-19  Richard Stallman  <rms@psilocin.ai.mit.edu>
12665         * editfns.c (Fformat): Increase buffer size for floating format.
12667 1998-10-17  Kenichi Handa  <handa@etl.go.jp>
12669         * charset.c (Vauto_fill_chars, Qauto_fill_chars): New variables.
12670         (syms_of_charset): Staticpro and initialize Qauto_fill_chars.
12671         Declare auto-fill-chars as a Lisp variable and initialize it.
12673         * charset.h (Vauto_fill_chars): Extern it.
12675         * cmds.c (internal_self_insert): Check Vauto_fill_chars.
12677 1998-10-16  Kenichi Handa  <handa@etl.go.jp>
12679         * casefiddle.c (casify_object): Use make_string instead of
12680         make_specified_string to cope with byte-combining situation.
12682         * coding.c (decode_coding_iso2022): Set coding->fake_multibyte to
12683         1 when encountered with a code of the range 0x80..0x9F.
12685 1998-10-14  Eli Zaretskii  <eliz@mescaline.gnu.org>
12687         * callproc.c (Fcall_process) [MSDOS]: Use $TMPDIR instead of
12688         trying $TMP and $TEMP, since the former is always set in msdos.c.
12689         (Fcall_process_region) [DOS_NT]: When looking for a place to put
12690         the temporary files, check $TMPDIR as well.
12692 1998-10-14  Richard Stallman  <rms@psilocin.ai.mit.edu>
12694         * process.c (exec_sentinel, read_process_output): 
12695         Restore waiting_for_user_input_p after running Lisp code.
12697         * keyboard.c (parse_menu_item): Avoid initialization for Lisp_Object.
12698         (command_loop): Likewise.
12700 1998-10-14  Kenichi HANDA  <handa@etl.go.jp>
12702         * data.c (Faset): Fix previous change.
12704         * fns.c (Ffillarray): Fix previous change.
12706         * insdel.c (adjust_markers_for_combining): This function deleted.
12707         (adjust_markers_for_replace): Correctly adjust marker positions.
12708         Don't record these adjustment because they were recorded already.
12709         (combine_bytes): Don't adjust markers here.
12711 1998-10-13  Richard Stallman  <rms@psilocin.ai.mit.edu>
12713         * minibuf.c (Fdisplay_completion_list): Put on mouse-face properties.
12715 1998-10-12  Richard Stallman  <rms@psilocin.ai.mit.edu>
12717         * keyboard.c (Fclear_this_command_keys): New function.
12718         (syms_of_keyboard): defsubr it.
12720         * macros.c (Fexecute_kbd_macro): Set real_this_command.
12722 1998-10-12  Kenichi Handa  <handa@etl.go.jp>
12724         * ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
12726         * charset.c (Fstring): Call make_string instead of
12727         make_string_from_bytes.
12728         (Ffind_charset_region): Include `composition' in the returned list
12729         if the region contains any composite characters.
12730         (Ffind_charset_string): Include `composition' in the returned list
12731         if the string contains any composite characters.
12732         (find_charset_in_str): Handle CMPCHARP arg correctly.
12734         * coding.c (shrink_decoding_region): If a charset other than ascii
12735         is initially designated to G0, don't shrink the region.
12736         (shrink_encoding_region): Likewise.
12738         * data.c (Faset): If ARRAY is a multibyte string, pay attention to
12739         byte-combining situation.
12741         * fns.c (clear_string_char_byte_cache): New function.
12742         (Ffillarray): Handle multibyte string correctly.
12744         * lisp.h (clear_string_char_byte_cache): Extern it.
12746         * xselect.c (lisp_data_to_selection_data): Call
12747         find_charset_in_str with CMPCHARP arg 0.
12748         * w16select.c (Fw16_set_clipboard_data): Likewise.
12749         * w32select.c (Fw32_set_clipboard_data): Likewise.
12751 1998-10-11  Richard Stallman  <rms@psilocin.ai.mit.edu>
12753         * keyboard.c (parse_menu_item): For top level of menu bar,
12754         accept ordinary commands, and treat them just like a keymap.
12756 1998-10-11  Richard Stallman  <rms@sucrose.ai.mit.edu>
12758         * xdisp.c (redisplay_window): Clear w->window_end_valid
12759         before running the window-scroll-functions hook, if appropriate.
12761 1998-10-10  Richard Stallman  <rms@psilocin.ai.mit.edu>
12763         * data.c (Fstring_to_number): Don't recognize floating point
12764         if base is not 10.
12766         * window.c (window_loop): New alternative CHECK_ALL_WINDOWS.
12767         (check_all_windows): New function for debugging tests.
12768         (syms_of_window): Initialize it.
12770         * window.c (Qwindow_configuration_p): New variable.
12771         (Fwindow_configuration_frame): New function.
12772         (syms_of_window): defsubr it.
12773         (Fset_window_configuration): Return t if frame is live.
12774         Use Qwindow_configuration_p.
12776         * xfns.c (check_x_display_info): Don't use selected_frame
12777         if it is dead.
12779 1998-10-09  Geoff Voelker  <voelker@cs.washington.edu>
12781         * w32fns.c (x_create_bitmap_from_file): Skip special files.
12783 1998-10-08  Kenichi Handa  <handa@etl.go.jp>
12785         * buffer.h (inhibit_modification_hooks): Extern it.
12787         * buffer.c (inhibit_modification_hooks): New variable.
12788         (init_buffer_once): Initialize inhibit_modification_hooks to 0.
12790         * charset.c (invalid_character): Prepend `0' to octal
12791         representation.  Give error sufficient args.
12793         * coding.c (code_convert_region): Set inhibit_modification_hooks
12794         to 1 before calling Fset_text_properties.
12796         * insdel.c (signal_before_change): If inhibit_modification_hooks
12797         is nonzero, do nothing.
12798         (signal_after_change): Likewise.
12800 1998-10-08  Emilio Lopes  <Emilio.Lopes@Physik.TU-Muenchen.DE>
12802         * process.c: Doc fixes.
12804 1998-10-08  Richard Stallman  <rms@sucrose.ai.mit.edu>
12806         * syntax.c (scan_lists): Bring FROM back into range BEGV...ZV.
12808 1998-10-07  Geoff Voelker  <voelker@cs.washington.edu>
12810         * w32.c (init_ntproc): Check for Windows init file.
12811         (term_ntproc): Do not check for it here.
12813 1998-09-28  Kenichi Handa  <handa@etl.go.jp>
12815         * coding.c (check_composing_code): Fix previous change.  Now it
12816         alwasy returns 0 or -1.
12817         (decode_coding_iso2022): Adjusted for the above change.
12818         (encode_coding_iso2022): When encoding the last block, flush out
12819         tailing garbage bytes.
12820         (setup_coding_system): Delete unnecessary code.
12821         (shrink_decoding_region): Check translation table.  If ASCII
12822         should be translated, give up shrinking.
12823         (shrink_encoding_region): Likewise.
12824         (SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
12825         (SHRINK_CONVERSION_REGION): New macro.
12826         (code_convert_region): Call SHRINK_CONVERSION_REGION.  Delete text
12827         properties here.
12828         (code_convert_region): In the case of encoding, always calulate
12829         correct character number.
12830         (code_convert_string): Call SHRINK_CONVERSION_REGION.
12831         (code_convert_region1): Don't delete text properties here.
12833         * insdel.c (adjust_after_replace): Don't delete text properties here.
12835         * term.c (encode_terminal_code): Handle raw 8-bit codes correctly.
12837 1998-09-27  Richard Stallman  <rms@psilocin.ai.mit.edu>
12839         * emacs.c (sort_args): Fill extra space with NULL ptrs.
12841 1998-09-26  Kenichi Handa  <handa@etl.go.jp>
12843         * coding.h (struct coding_system): New member composed_chars.
12845         * coding.c (check_composing_code): If the current composing
12846         sequence doesn't end properly, return -1.
12847         (DECODE_CHARACTER_ASCII): Update coding->composed_chars.
12848         (DECODE_CHARACTER_DIMENSION1): Likewise.
12849         (decode_coding_iso2022): Check validity of a composing sequence.
12850         (code_convert_string): If the length of text to be converted is
12851         shrunk to zero, don't perform code conversion.
12852         (shrink_decoding_region): Fix previous change.
12854         * editfns.c (Fformat): Check format control characters.
12856 1998-09-25  Kenichi Handa  <handa@etl.go.jp>
12858         * coding.c (decode_eol): While decoding DOS-like eol, handle a
12859         single CR code correctly.
12860         (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
12861         CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
12863 1998-09-23  Geoff Voelker  <voelker@cs.washington.edu>
12865         * w32fns.c (w32_color_map_lookup): New function.
12866         (x_to_w32_color): Approximate colors ending in numbers if necessary.
12868 1998-09-22  Kenichi Handa  <handa@etl.go.jp>
12870         * ccl.c (ccl_driver): Report correct CCL program counter on error.
12872         * xmenu.c (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
12873         strings unibyte.
12874         (xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
12876 1998-09-22  Kenichi Handa  <handa@etl.go.jp>
12878         * callint.c (Fcall_interactively): Don't use input method when
12879         reading a character in the case of `c' code letter.
12881 1998-09-21  Dave Love  <fx@gnu.org>
12883         * editfns.c (Fsave_restriction): Doc fix.
12885 1998-09-21  Richard Stallman  <rms@gnu.org>
12887         * lread.c (build_load_history): Do add to Vload_history
12888         even when dumping Emacs.
12890 1998-09-18  Kenichi Handa  <handa@etl.go.jp>
12892         * ccl.c (CCL_WRITE_CHAR): Don't use bcopy.
12893         (ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
12894         cause error if the program is going to output some bytes.  When
12895         outputing a string to notify an error, check the case that
12896         DST_BYTES is zero.
12898         * coding.h (CODING_FINISH_INTERRUPT): New macro. 
12900         * coding.c (ccl_coding_driver): If ccl_driver is interrupted by a
12901         user or the CCL program executed an invalid command, return
12902         CODING_FINISH_INTERRUPT.
12903         (code_convert_region): Pay attention to the converters return
12904         value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
12906 1998-09-16  Kenichi Handa  <handa@etl.go.jp>
12908         * coding.c (code_convert_region): Update beg_unchanged and
12909         end_unchanged after we delete the source text.
12911         * insdel.c (adjust_markers_for_replace): Don't adjust a byte
12912         position if it is FROM.
12913         (adjust_markers_for_combining): New function.
12914         (combine_bytes): Call adjust_markers_for_combining instead of
12915         adjust_markers_for_replace.
12916         (adjust_after_replace): Record deletion of combining after bytes
12917         with the correct position.
12918         (replace_range): Likewise.  Record the actual deletion after
12919         recoding deletions of combining bytes.
12921         * xdisp.c (message_log_check_duplicate): Count byte length of the
12922         latest message correctly.
12924 1998-09-12  Richard Stallman  <rms@gnu.org>
12926         * xdisp.c (redisplay_internal): Use TEMP_SET_PT_BOTH
12927         instead of SET_PT_BOTH.
12928         (try_window_id, display_text_line): Likewise.
12930 1998-09-12  Karl Heuer  <kwzh@gnu.org>
12932         * data.c (Fmake_local_variable): Doc fix.
12934 1998-09-10  Dave Love  <fx@gnu.org>
12936         * print.c (Fwith_output_to_temp_buffer): Doc fix.
12938 1998-09-10  Richard Stallman  <rms@gnu.org>
12940         * s/irix6-0.h (TIOCSIGSEND): Add #undef.
12941         (bcopy, bcmp, bzero): Add #undef.
12943         * keyboard.c (command_loop_1): When switching to selected window's bfr,
12944         first exit if selected frame is dead (no live frames remain).
12945         (read_key_sequence): Likewise.
12947 1998-09-10  Karl Heuer  <kwzh@gnu.org>
12949         * emacs.c (main): Mention --display and --eval in help.
12951 1998-09-07  Paul Eggert  <eggert@twinsun.com>
12953         * editfns.c (emacs_memftime): New function.
12954         (Fformat_time_string): Use it to handle null bytes in formats
12955         correctly.
12957 1998-09-08  Kenichi Handa  <handa@etl.go.jp>
12959         * charset.c (Ffind_charset_region): Optimization for unibyte buffer.
12960         (Ffind_charset_string): For unibyte string, return (ascii).
12962         * editfns.c (Fsubst_char_in_region): Call replace_range with the
12963         arg MARKERS 1.
12965         * insdel.c (adjust_after_replace): Don't add combining bytes to
12966         the args given to adjust_point.  Handle correctly the case that
12967         there are both before and after combining bytes.
12968         (replace_range): Likewise.
12970 1998-09-07  Lars Magne Ingebrigtsen  <larsi@gnus.org>
12972         * fns.c (base64_decode_1, base64_encode_1): New functions.
12973         (Fbase64_decode_string, Fbase64_encode_string): New functions.
12974         (Fbase64_decode_region, Fbase64_encode_region): New functions.
12976 1998-09-07  Karl Heuer  <kwzh@gnu.org>
12978         * eval.c (error): After enlarging buffer, write to it, not to buf.
12980         * fns.c (Fwidget_put): Return VALUE instead of garbage.
12982 1998-09-07  Kenichi Handa  <handa@etl.go.jp>
12984         * charset.h (STRING_CHAR_AND_LENGTH): Return correct value in
12985         ACTUAL_LEN even if LEN is too short to have a valid multibyte form.
12986         (STRING_CHAR_AND_CHAR_LENGTH): Likewise.
12988         * coding.c (ccl_coding_driver): Always calculate correct mulibyte
12989         chars in produced byte sequence.
12990         (Ffind_operation_coding_system): Doc-string fixed.
12992         * insdel.c (count_combining_after): Check also preceding bytes at
12993         POS if all characters in STRING are not character head.
12995 1998-09-06  Paul Eggert  <eggert@twinsun.com>
12997         * editfns.c (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
12998         Don't assume that localtime and gmtime return non-NULL.
13000 1998-09-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
13002         * fns.c (Fbase64_decode_string, Fbase64_encode_string,
13003         base64_decode_1, Fbase64_decode_region, Fbase64_encode_region):
13004         New functions.
13006 1998-09-06  Richard Stallman  <rms@gnu.org>
13008         * editfns.c (Fformat): Detect incomplete format spec at string's end.
13010         * lread.c (Fload): Handle case where openp finds a magic file
13011         but it has no `load' handler or that handler calls `load'.
13012         If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
13014 1998-09-04  Dave Love  <fx@gnu.org>
13016         * buffer.c (enable-multibyte-characters): Doc fix.
13018 1998-09-02  Geoff Voelker  <voelker@cs.washington.edu>
13020         * w32heap.c (allocate_heap): Define NTHEAP_PROBE_BASE by default.
13022 1998-09-01  Kenichi Handa  <handa@etl.go.jp>
13024         * editfns.c (Ftranspose_regions): Use BYTE_POS_ADDR to get an
13025         address in buffer from byte-position.
13027 1998-09-01  Eli Zaretskii  <eliz@delysid.gnu.org>
13029         * w16select.c (Vnext_selection_coding_system): New variable.
13030         (syms_of_win16select): DEFVAR_LISP it.  No need to staticpro
13031         Vselection_coding_system.
13032         (Fw16_set_clipboard_data): Always convert multibyte strings.  Use
13033         Vnext_selection_coding_system if non-nil.
13034         (Fw16_get_clipboard_data): Always convert a string that includes
13035         non-ASCII characters. Use Vnext_selection_coding_system if
13036         non-nil.
13038 1998-08-31  Andrew Innes  <andrewi@harlequin.co.uk>
13040         * w32fns.c (w32_wnd_proc): Always zero button_state when releasing
13041         mouse capture.
13043 1998-08-31  Kenichi Handa  <handa@etl.go.jp>
13045         * xterm.c (x_load_font): If SIZE is 0, don't use a name
13046         x_list_font returns.
13048 1998-08-31  Paul Eggert  <eggert@twinsun.com>
13050         * lread.c (read1): Don't assume that atof ("-0.0") yields +0.0.
13051         Handle leading '-' uniformly for zeros, infinities, and NaNs.
13053 1998-08-31  Eli Zaretskii  <eliz@delysid.gnu.org>
13055         * msdos.c (IT_cmgoto): When tracking echo area messages with the
13056         cursor, save and restore previous cursor position in the
13057         minibuffer.
13059 1998-08-31  Kenichi Handa  <handa@etl.go.jp>
13061         * charset.c (unibyte_char_to_multibyte):
13062         Vnonacii_translation_table will convert a 7-bit charcater.
13063         (multibyte_char_to_unibyte): Handle the case that
13064         Vnonacii_translation_table converts a multibyte charcater to a
13065         unibyte charcter of less than 128.
13066         (init_charset_once): Initialize nonascii_insert_offset and
13067         Vnonacii_translation_table.
13069         * coding.c (decode_coding): Even if SRC_BYTES is zero, try
13070         processing if CODING requires flushing.
13071         (encode_coding): Likewise.
13072         (code_convert_region): Likewise.
13073         (code_convert_string): Likewise.
13075         * fns.c (concat): If Vnonascii_translation_table is non-nil, try
13076         to convert a character less than 160 to multibyte.
13077         * insdel.c (copy_text): Likewise.
13078         (count_size_as_multibyte): Likewise.
13079         * xterm.c (dumpglyphs): Likewise.
13081 1998-08-29  Paul Eggert  <eggert@twinsun.com>
13083         * data.c (arith_driver, float_arith_driver): Compute (- x) by
13084         using negation, not subtraction; this makes a difference with
13085         IEEE floating point arithmetic (and also if integer arithmetic
13086         is ones' complement or signed-magnitude!).
13088 1998-08-29  Karl Heuer  <kwzh@gnu.org>
13090         * xfns.c (x_create_bitmap_from_file): Fail immediately if magic.
13092 1998-08-28  Ken'ichi Handa  <handa@delysid.gnu.org>
13094         * charset.c (Fchar_bytes): Add \n\ in doc-string.
13096 1998-08-28  Paul Eggert  <eggert@twinsun.com>
13098         * s/sol2-4.h (NOT_USING_MOTIF): New macro.
13099         (LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
13100         path only if we're not building with Motif.
13102 1998-08-28  Kenichi Handa  <handa@etl.go.jp>
13104         * insdel.c (adjust_after_replace): Fix the code to record undo
13105         information for the case that `before combining' happens.  Remove
13106         text properties which are added to the new text by
13107         offset_intervals.
13109         * coding.c (code_convert_region1): Remove all text properties of
13110         the region.
13112 1998-08-28  Kenichi Handa  <handa@etl.go.jp>
13114         * charset.h (CHAR_BYTES): New macro.
13116         * charset.c (Fchar_bytes): Now always return 1.
13117         (char_bytes): New function.
13119         * editfns.c (Fposition_bytes): If the arg POSITION is out of
13120         range, return nil.
13121         (Fbyte_to_position): If the arg BYTEPOS is out of range, return
13122         nil.
13124         * data.c (Faset): Use macro CHAR_BYTES instead of Fchar_bytes.
13125         * fns.c (concat): Likewise.
13126         * insdel.c (count_size_as_multibyte): Likewise.
13127         * xdisp.c (message_dolog): Likewise.
13129 1998-08-27  Kenichi Handa  <handa@etl.go.jp>
13131         * coding.c (detect_coding_iso2022): Handle ESC N and ESC O
13132         correctly.  They are for SS2 and SS3 respectively.
13133         (ccl_coding_driver): Fix previous change.
13135 1998-08-26  Paul Eggert  <eggert@twinsun.com>
13137         * xterm.c (fixup_locale): New function.  For now, it resets
13138         LC_TIME to "C" (reverting the 1998-08-07 change), and also
13139         resets LC_MESSAGES to "C".
13140         (x_term_init): Use it to fix up the locale after setlocale
13141         (LC_ALL, "").
13143 1998-08-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13145         * xterm.c (x_calc_absolute_position): Cast argument to XFree, in
13146         case it was prototyped the old way.
13148 1998-08-25  Kenichi Handa  <handa@etl.go.jp>
13150         * xterm.c (x_list_fonts): Work-around for the case XGetAtomName
13151         returns a null string.  This happens when dxpc 3.7 is being used.
13153 1998-08-24  Andreas Schwab  <schwab@delysid.gnu.org>
13155         * keyboard.c (input-method-previous-message): Doc fix.
13157         * coding.c (file-coding-system-alist,
13158         select-safe-coding-system-function): Doc fix.
13160 1998-08-23  Kenichi HANDA  <handa@etl.go.jp>
13162         * coding.c (detect_coding_iso2022): Don't check the byte length of
13163         succeeding codes (0xa0..0xFF) if the codes follows single shift
13164         code (SS2 or SS3).
13166 1998-08-21  Ken'ichi Handa  <handa@delysid.gnu.org>
13168         * coding.c (detect_coding_system): If detect_eol_type returns
13169         CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
13170         correctly.
13172 See ChangeLog.7 for earlier changes.