(make-autoload): Recognize the new `define-minor-mode'.
[emacs.git] / src / ChangeLog
blob412ab67cb44be2d9f4e7c74e996579d82b133a21
1 1999-11-22  Gerd Moellmann  <gerd@gnu.org>
3         * dispnew.c (direct_output_for_insert): Increment glyph positions
4         for glyphs from buffer text only.
6         * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
7         (gdb_data_seg_bits): New variables.
8         
9         * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
10         work on systems not allowing enumerators > INT_MAX, and it
11         won't work if EMACS_INT is long long.
13 1999-11-22  Paul Eggert  <eggert@twinsun.com>
15         Port to SunOS 4.1.x again.  Help out with Alpha port.
16         Rename messages-locale to system-messages-locale,
17         and likewise for time-locale.
18         
19         * callproc.c (strerror): Remove decl.
20         * fileio.c (strerror): Likewise.
21         * process.c (strerror): Likewise.
22         * emacs.c (strerror): Likewise.
23         (Vsystem_messages_locale): Renamed from Vmessages_locale.
24         All uses changed.
25         (Vprevious_system_messages_locale): Likewise, from
26         Vprevious_messages_locale.
27         (Vsystem_time_locale): Likewise, from Vtime_locale.
28         (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
29         (ABORT_RETURN_TYPE): New macro.
30         (abort): Return type is now ABORT_RETURN_TYPE.
31         (main): Always invoke init_signals, even if POSIX_SIGNALS is not
32         defined.
33         (syms_of_emacs): messages-locale -> system-messages-locale,
34         previous-messages-locale -> previous-system-messages-locale,
35         time-locale -> system-time-locale,
36         previous-time-locale -> previous-system-time-locale.
38         * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
39         (const): Do not define; that's config.h's job.
40         (<limits.h>): Include if HAVE_LIMITS_H is defined.
41         (CHAR_BIT): Move test for definedness outside of limits.h condition.
42         (<stddef.h>): Include if STDC_HEADERS is defined.
43         (FREE_RETURN_TYPE): New macro.
44         (free): Return type is now FREE_RETURN_TYPE.
46         * lisp.h (synchronize_system_time_locale): Renamed from
47         synchronize_time_locale.  All uses changed.
48         (synchronize_system_messages_locale): Likewise, from
49         synchronize_messages_locale.
51         * m/alpha.h (malloc, realloc, calloc): Remove decls;
52         stdlib.h now does this.
54         * process.c (sys_siglist): Remove.
56         * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
57         New macros.
59         * syntax.c (scan_sexps_forward): Use abort, not assert.
61         * sysdep.c (my_sys_siglist): New var.
62         (sys_siglist): New macro.  Remove old initialized vars of same name.
63         (init_signals): Initialize sys_siglist.
65         * xfns.c (abort): Remove decl; stdlib.h now does this.
67 1999-11-18  Dave Love  <fx@gnu.org>
69         * filelock.c: Add forward declaration for get_boot_time_1.
71         * dispnew.c (Finternal_show_cursor_p): Fix doc string.
73 1999-11-18  Gerd Moellmann  <gerd@gnu.org>
75         * buffer.h (struct buffer_text): Add comment about moving
76         buffer text if REL_ALLOC is defined.
78 1999-11-18  Kenichi Handa  <handa@etl.go.jp>
80         * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
82         * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
83         memory for push_key_description.
85         * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
86         allocate memory for push_key_description.
87         (describe_buffer_bindings): Likewise.
89 1999-11-17  Gerd Moellmann  <gerd@gnu.org>
91         * xfns.c (Fx_show_busy_cursor): Doc-fix.
92         (Fx_hide_busy_cursor): Ditto.
94 1999-11-17  Marco Walther <walther@siemens-pyramid.com>
96         * unexsni.c (unexec): Handle .rel.dyn section.
98 1999-11-16  Dave Love  <fx@gnu.org>
100         * doc.c (Fdocumentation): Remove gcpro here too.
102 1999-11-16  Gerd Moellmann  <gerd@gnu.org>
104         * keyboard.c (command_loop_1): Remove no_redisplay.
106 1999-11-16  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
108         * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
109         in noninteractive.
111 1999-11-14  Gerd Moellmann  <gerd@gnu.org>
113         * xdisp.c (ensure_echo_area_buffers): New.
114         (with_echo_area_buffer): Use it.
115         (setup_echo_area_for_printing): Ditto.
117         * buffer.c (indicate-empty-lines): Doc-fix.
119 1999-11-12  Gerd Moellmann  <gerd@gnu.org>
121         * term.c (term_init): If "op" isn't available, don't support color
122         because we can't switch back to the default foreground and
123         background.
125         * doc.c (Fdocumentation_property): Remove GCPRO because
126         Fsubstitute_command_keys gcpro's the string.
128 1999-11-12  Kenichi Handa  <handa@etl.go.jp>
130         * editfns.c (Ftranslate_region): Check the buffer multibyteness.
132 1999-11-11  Gerd Moellmann  <gerd@gnu.org>
134         * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
135         lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
136         buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
138 1999-11-10  Gerd Moellmann  <gerd@gnu.org>
140         * xfns.c (QCuser_data): Removed.
141         (syms_of_xfns): Initialization of QCuser_data removed.
142         (parse_image_spec): Don't handle :user-data specially.  Allow
143         unknown keys.  Remove parameter ALLOW_OTHER_KEYS.
144         (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
145         (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
146         parse_image_spec accordingly.
148 1999-11-09  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
150         * cmds.c (Fbeginning_of_line): Doc fix.
151         (Fend_of_line): Doc fix.
153         * editfns.c (Fline_beginning_position): If N is not 1,
154         pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
156         * syntax.c (Fforward_word): Handle fields even if would have hit
157         an edge of the buffer.  Return nil if affected by fields.
159 1999-11-09  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
161         * editfns.c (preceding_pos): Function deleted.
162         (text_property_stickiness): Decrement POS directly.
163         Fix a confusion that used PT instead of POS.
165         * editfns.c (find_field): Properly handle the case
166         of a field boundary where `field' inherits from neither side.
168         * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
169         (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
171 1999-11-08  Gerd Moellmann  <gerd@gnu.org>
173         * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
174         BEFORE_POTENTIAL_GC before DISCARD.
176 1999-11-07  Gerd Moellmann  <gerd@gnu.org>
178         * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
180         * lisp.h: Add prototype for unmark_byte_stack.
182         * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
183         (unmark_byte_stack): Renamed from relocate_byte_pcs.  Use
184         XUNMARK.
186         * xdisp.c (resize_mini_window): Fix computation of needed
187         mini-window height.
189         * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
190         compilation on USE_TEXT_PROPERTIES.
192         * Fbyte_code: Use block statements in cases and declare v1 and v2
193         locally there.  Rearrange case statements so that thos most
194         frequently executed come first.  Avoid goto's in frequently
195         executed cases.
197 1999-11-05  Gerd Moellmann  <gerd@gnu.org>
199         * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
200         AFTER_POTENTIAL_GC around internal_catch.
202         * alloc.c (Fgarbage_collect): Call mark_byte_stack and
203         relocate_byte_pcs.
204         (init_alloc_once, init_alloc): Set byte_stack_list to null.
206         * eval.c (struct catchtag): Add member byte_stack.
207         (internal_catch, Fcondition_case, internal_condition_case)
208         (internal_condition_case_1): Save value of byte_stack_list in
209         catchtag.
210         (unwind_to_catch): Restore byte_stack_list from catchtag.
212         * lisp.h: Add prototypes for new functions in bytecode.c.
213         Add extern declaration for byte_stack_list.
215         * bytecode.c (struct byte_stack): New.
216         (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
217         (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
218         (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
219         (HANDLE_RELOCATION): Removed.
220         (Fbyte_code): Use byte_stack structures.
222         * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
224         * buffer.c (syms_of_buffer): Extend documentation of
225         mode-line-format.
227 1999-11-04  Gerd Moellmann  <gerd@gnu.org>
229         * editfns.c (Fdelete_field): Renamed from Ferase_field.
231         * minibuf.c (do_completion, Fminibuffer_complete_word): Use
232         Ferase_field instead of Fdelete_field.
234 1999-11-03  Gerd Moellmann  <gerd@gnu.org>
236         * dispnew.c (Finternal_show_cursor): Change it to set the
237         cursor on/off, not toggle its state.
238         (Finternal_show_cursor_p): New.
239         (syms_of_display): Defsubr Sinternal_show_cursor_p.
241 1999-11-03  Dave Love  <fx@gnu.org>
243         * charset.c (split_non_ascii_string): Define return value.
245 1999-11-03  Gerd Moellmann  <gerd@gnu.org>
247         * minibuf.c (string_to_object): New.
248         (read_minibuf_noninteractive): New.
249         (read_minibuf): Call read_minibuf_noninteractive if
250         noninteractive.  Use string_to_object.
252         * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
254 1999-11-02  Dave Love  <fx@gnu.org>
256         * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
258         * process.c: Define _GNU_SOURCE before config.h to get strsignal
259         declared with glibc2.
261 1999-11-02  Gerd Moellmann  <gerd@gnu.org>
263         * lisp.h (QUIT): Give it statement form.
265 1999-11-02  Dave Love  <fx@gnu.org>
267         * eval.c (init_eval): Conditionalize declaration of gcpro_level.
269 1999-11-02  Gerd Moellmann  <gerd@gnu.org>
271         * xfns.c (QCuser_data): New.
272         (syms_of_xfns): Initialize QCuser_data.
273         (parse_image_spec): Ignore :user-data DATA properties.
275         * xdisp.c (display_line): Set charpos of first glyph in blank
276         lines not corresponding to any text to -1, even if no glyphs are
277         filled in in that line.
279 1999-11-01  Gerd Moellmann  <gerd@gnu.org>
281         * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using 
282         png_get_sRGB in #ifdef.
284         * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
285         (syms_of_display): Use the new name.
287         * textprop.c (verify_interval_modification): Signal text-read-only
288         instead of calling error.
290         * data.c (Qtext_read_only): New built-in error.
291         (syms_of_data): Initialize it.
293         * lisp.h: Add extern declaration for Qtext_read_only.
295         * syntax.c: Remove whitespace after open or in front of closing
296         parentheses.
298 1999-11-01  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
300         * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
302 1999-10-31  Gerd Moellmann  <gerd@gnu.org>
304         * xdisp.c (resize_mini_window): Compute needed height differently.
306         * fns.c (Flength): Unroll loop over lists.
308         * xdisp.c (append_space): Return non-zero if space was appended.
309         (display_line): Set charpos of first glyph to -1 only if that
310         glyph is the space added by append_glyph.
312 1999-10-30  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
314         * print.c (strout): Consider `noninteractive' and use stdout
315         only when PRINTCHARFUN is t.
317         * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
318         (gcpro_level): Declare it extern.
319         [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
320         Alternate definitions that set `level' and increment `gcpro_level'.
321         [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
323         * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
324         (init_eval) [DEBUG_GCPRO]: Initialize it.
325         (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
326         from remaining gcprolist.
328 1999-10-29  Kenichi Handa  <handa@etl.go.jp>
330         * coding.c (code_convert_region): Update `dst' correctly.
332 1999-10-28  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
334         * regex.c (POP_FAILURE_POINT): Use failure_id.integer
335         as arg to DEBUG_POP and DEBUG_PRINT.
337 1999-10-28  Gerd Moellmann  <gerd@gnu.org>
339         * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
340         (Frassoc): Rewritten.
342 1999-10-27  Noah Friedman  <friedman@splode.com>
344         * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
345         Define PTY_NAME_SPRINTF.
346         Redefine PTY_TTY_NAME_SPRINTF.
347         * config.in: Add undef for HAVE_DEV_PTMX.
349 1999-10-26  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
351         * regex.c (POP_FAILURE_POINT): Use failure_id.integer
352         as arg to DEBUG_POP and DEBUG_PRINT.
354 1999-10-27  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
356         * data.c (Qad_activate_internal): Renamed from Qad_activate.
357         (Ffset): Call Qad_activate_internal.
358         (syms_of_data): Initialize Qad_activate_internal.
360 1999-10-27  Gerd Moellmann  <gerd@gnu.org>
362         * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
363         Vterminal_frame is selected and Vwindow_system is non-nil.
365 1999-10-26  Gerd Moellmann  <gerd@gnu.org>
367         * xdisp.c (echo_area_display): Put previous change in #if 0.
369         * emacs.c (standard_args): Add `file' as synonym for `visit',
370         `execute' as synonym for `eval'.
371         (main): Add new options to usage message.
373 1999-10-25  Gerd Moellmann  <gerd@gnu.org>
375         * data.c (Qhash_table): New.
376         (Ftype_of): Return it for hash tables.
377         (syms_of_data): Initialize Qhash_table.
379 1999-10-25  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
381         * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
383 1999-10-24  Ken Raeburn  <raeburn@raeburn.org>
385         * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
386         lisp.h.
388         * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
389         Fbuffer_local_variables, Fother_buffer, record_buffer,
390         set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
391         swap_out_buffer_local_variables, overlays_at, overlays_in,
392         overlay_touches_p, overlay_strings, recenter_overlay_lists,
393         fix_overlays_in_range, fix_overlays_before, Foverlay_get,
394         Foverlay_put, report_overlay_modification, evaporate_overlays):
395         Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
396         references.
397         * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
398         swap_in_symval_forwarding, set_internal, default_value,
399         Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
400         Fmake_variable_frame_local, Flocal_variable_p,
401         Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
402         Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
403         * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
404         * emacs.c (main): Likewise.
405         * fontset.c (fs_load_font, fs_register_fontset,
406         CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
407         Fnew_fontset, Fset_fontset_font): Likewise.
408         * frame.c (do_switch_frame, next_frame, prev_frame,
409         other_visible_frames, Fdelete_frame, Fvisible_frame_list):
410         Likewise.
411         * keyboard.c (read_char, help_char_p, event_to_kboard,
412         kbd_buffer_get_event, timer_start_idle, timer_check,
413         make_lispy_event, apply_modifiers, reorder_modifiers,
414         Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
415         menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
416         tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
417         Fcommand_execute, Fexecute_extended_command): Likewise.
418         * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
419         Fall_completions): Likewise.
420         * window.c (Fset_window_margins): Likewise.
422         * callint.c (quotify_args): Don't explicitly use struct
423         Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
425         * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
426         (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
427         if __ELF__ is defined.
429 1999-10-24  Gerd Moellmann  <gerd@gnu.org>
431         * window.c (Fnext_window): Add a QUIT in the loop.
433 1999-10-23  Gerd Moellmann  <gerd@gnu.org>
435         * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs): 
436         New targets.
438 1999-10-22  Dave Love  <fx@gnu.org>
440         * emacs.c (main): Enable profiling conditional on __linux also.
442 1999-10-20  Gerd Moellmann  <gerd@gnu.org>
444         * xrdb.c (x_load_resources): Set default resources for resource
445         classes instead of for the specific Emacs.
447 1999-10-19  Gerd Moellmann  <gerd@gnu.org>
449         * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
450         defines it that way.
451         
452         * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
453         if selected_frame is equal to Vterminal_frame.
455 1999-10-19  Paul Eggert  <eggert@twinsun.com>
456         
457         Add support for large files, 64-bit Solaris, system locale codings.
458         
459         * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
460         when dumping, so that the dumped Emacs doesn't have stray locale info.
461         (dired.o): Depend on systime.h.
462         (editfns.o): Depend on coding.h.
464         * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
465         dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
466         keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
467         unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
468         w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
469         Include <config.h> before any system include files.
471         * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
472         fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
473         m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
474         xmenu.c, xterm.c:
475         Do not include <stdlib.h>, as <config.h> does this now.
477         * callproc.c (Fcall_process):
478         Synchronize messages locale before invoking strerror.
479         Decode resulting string with locale-coding-system.
481         * coding.c (Vlocale_coding_system): New var.
482         (syms_of_coding): Adjust to above change.
483         (emacs_strerror): New function.
485         * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
486         
487         * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
488         HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
489         HAVE_STRSIGNAL): New macros.
490         (BITS_PER_LONG): Default to 64 if _LP64 is defined.
491         <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
493         * dired.c: Include "systime.h".
494         (Ffile_attributes): Do not cast s.st_size to int; this loses
495         information if int is 32 bits but st_size and EMACS_INT are larger.
496         Treat large device numbers like large inode numbers.
498         * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
500         * editfns.c: Include coding.h.
501         (emacs_strftime): Remove decl.
502         (emacs_strftimeu): New decl.
503         (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
504         Use emacs_strftimeu instead of emacs_strftime.
505         (Fformat_time_string): Convert format string using
506         Vlocale_coding_system, and convert result back.  Synchronize time
507         locale before invoking lower level function.  Invoke
508         emacs_memftimeu, passing ut, instead of emacs_memftime.
509         
510         * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
511         (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
512         Vprevious_time_locale): New variables.
513         (main): Invoke setlocale early, so that initial error messages are
514         localized properly.  But skip locale-setting if LC_ALL is "C".
515         Fix up locale when it's safe to do so.
516         (fixup_locale): Moved here from xterm.c.
517         (synchronize_locale, synchronize_time_locale,
518         synchronize_messages_locale): New functions.
519         (syms_of_emacs): Accommodate above changes.
521         * fileio.c (report_file_error): Convert strerror output according
522         to Vlocale_coding_system.
523         (Finsert_file_contents): Check for arithmetic overflow in
524         computations that depend on file size.  Report IO errors
525         with emacs_strerror, not strerror.
527         * fns.c (Fgethash): Declare dflt parameter.
529         * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
530         is defined; that's config.h's job.
532         * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
533         default these values to long, BITS_PER_LONG, and unsigned long.
534         (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
535         (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
536         (code_convert_string_norecord, fixup_locale,
537         synchronize_messages_locale, synchronize_time_locale,
538         emacs_open, emacs_close, emacs_read, emacs_write): New decls.
539         All Emacs callers of open, close, read, write changed to use
540         emacs_open, emacs_close, emacs_read, emacs_write.
542         * lread.c (file_offset, file_tell): New macros.  All uses of ftell
543         changed to file_tell.
544         (saved_doc_string_position, prev_saved_doc_string_position): Now
545         of type file_offset.
546         (init_lread): Do not fix locale here; fixup_locale now does this.
548         * m/amdahl.h, s/usg5-4.h:
549         (NSIG): Remove.
550         (NSIG_MINIMUM): New macro.
552         * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
553         m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
554         s/umips.h, s/usg5-4.h:
555         (SIGIO): Do not undef.
556         (BROKEN_SIGIO): New macro.
558         * m/ustation.h:
559         (SIGTSTP): Do not undef.
560         (BROKEN_SIGTSTP): New macro.
562         * s/gnu-linux.h:
563         (SIGPOLL, SIGURG): Do not undef.
564         (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
566         * s/ptx4.h:
567         (SIGINFO): Do not undef.
568         (BROKEN_SIGINFO): New macros.
569         
570         * m/delta.h, s/ptx.h, s/template.h: Doc fix.
572         * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
573         some Emacs-related changes merged.
575         * print.c (float_to_string): Prepend "-" to representation of a
576         NaN if the NaN is negative.
578         * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
579         (wait_reading_process_input): Use emacs_strerror, not strerror.
580         
581         * process.c (status_message, sigchld_handler): Synchronize locale,
582         then use strsignal istead of sys_siglist.
583         * w32proc.c (sys_wait): Likewise.
584         
585         * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
586         s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
587         s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
588         s/usg5-2.h, s/usg5-3.h, s/xenix.h:
589         (open, close, read, write, INTERRUPTIBLE_OPEN,
590         INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
592         * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
594         * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
595         sys_open, open): Remove.
596         (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
597         the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
598         macros are no longer used.
599         (emacs_open): Renamed from sys_open.  Merge BSD4_1 version.
600         (emacs_close): Renamed from sys_close.
601         (emacs_read): Renamed from sys_read.
602         (emacs_write): Renamed from sys_write.
603         (sys_siglist): Do not declare if HAVE_STRSIGNAL.
604         (dup2): Do not print error on failure; the real dup2 doesn't.
605         (strsignal): New function, defined if !HAVE_STRSIGNAL.
607         * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
608         is defined.
609         (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
610         (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
611         (strsignal): Declare if !HAVE_STRSIGNAL.
613         * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
614         (ElfW): Define in terms of ElfExpandBitsW.
616         * w32proc.c (sys_siglist): Remove decl.
618         * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
619         with ANSI C.
620         (display_string): Declare face_string_pos arg.
622         * xfns.c (Fx_show_tip): Declare timeout param.
624         * xterm.c: No need to include locale.h.
625         (x_alloc_lighter_color, x_setup_relief_color):
626         Pass arg as double, not float, for compatibility with ANSI C.
627         (fixup_locale): Move to emacs.c.
628         (x_term_init): Do not setlocale or fixup locale; the main program
629         does this now.
631 1999-10-18  Dave Love  <fx@gnu.org>
633         * doc.c (Fdocumentation_property): Gcpro `tem'.
635 1999-10-18  Kenichi Handa  <handa@etl.go.jp>
637         * lread.c (Fload): Calculate bytes of filename correctly.
638         (openp): Likewise.
640 1999-10-18  Keisuke Nishida  <kxn30@po.cwru.edu>
642         * print.c (print_preprocess): In case print-circle is nil,
643         add OBJ to Vprint_number_table only when OBJ is a symbol.
645 1999-10-18  Kenichi Handa  <handa@etl.go.jp>
647         * coding.c (code_convert_string): Add record_unwind_protect to
648         assure setting inhibit_pre_post_conversion back to zero.  Take
649         care of the multibyteness of the working buffer.
651         * coding.c (inhibit_pre_post_conversion): New variable.
652         (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
653         ignore post-read-conversion and pre-write-conversion property of
654         the coding system.
655         (code_convert_region_unwind): New function.
656         (code_convert_region): Set inhibit_pre_post_conversion to 1 while
657         running pre-write-conversion and post-read-conversion.
658         (code_convert_string): Likewise.
660 1999-10-17  Miles Bader  <miles@gnu.org>
662         * editfns.c: Doc fix.
664 1999-10-17  Miles Bader  <miles@gnu.org>
666         * editfns.c (Fconstrain_to_field): Make sure we don't violate the
667         argument preconditions of find_before_next_newline in the case
668         where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
669         was indeed at the edge.
671 1999-10-17  Miles Bader  <miles@gnu.org>
673         * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
674         ESCAPE_FROM_EDGE parameter to Ffield_beginning.
676         * editfns.c (text_property_eq, text_property_stickiness): Don't
677         use initializers for auto variables of type Lisp_Object.
678         (find_field): Likewise.  Use braces around nested ifs.
679         (Fline_end_position): Store the raw eol in a variable, so that the
680         final expression doesn't look so ugly.
681         (Fconstrain_to_field): Doc fix.
682         (preceding_pos): Renamed from `preceeding_pos'.
683         (text_property_stickiness, find_field): Call preceding_pos,
684         not preceeding_pos.
686 1999-10-17  Miles Bader  <miles@gnu.org>
688         * editfns.c (Ffield_string_no_properties): New function.
689         (text_property_stickiness, preceeding_pos): New functions.
690         (Ffield_string): Remove PROPS parameter.
691         (find_field): Add MERGE_AT_BOUNDARY parameter.
692         Rewrite to use stickiness of `field' property to resolve
693         ambiguous cases.
694         (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
695         (Fconstrain_to_field): Likewise.
696         (syms_of_editfns): Init Sfield_string_no_properties.
697         (Ffield_string, Ferase_field, Ffield_end): 
698         Supply new MERGE_AT_BOUNDARY argument to find_field.
699         (Fline_beginning_position, Fline_end_position): Supply new
700         ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
701         Pass a value of Qt for the ONLY_IN_LINE argument to
702         Fconstrain_to_field (only matters if N != 1).
703         * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
704         to Fconstrain_to_field.
706         * minibuf.c (Fminibuffer_complete_word): Use
707         Ffield_beginning to find the prompt end.
709 1999-10-17  Miles Bader  <miles@gnu.org>
711         * editfns.c (Fconstrain_to_field): Add get/set-current-point
712         behavior when NEW_POS is nil.
713         (find_field): Use XSETFASTINT instead of make_number.
714         * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
715         input string by seeing where the field begins, instead of
716         looking at text-properties.
718 1999-10-17  Miles Bader  <miles@gnu.org>
720         * editfns.c (Qfield): New variable.
721         (find_field, Ferase_field, Ffield_string,
722         Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
723         (Fline_beginning_position, Fline_end_position): Constrain to any field.
724         (make_buffer_string_both): Remove minibuffer-prompt hack.
725         (syms_of_editfns): Initialize Qfield, and subr entries for
726         field functions above.
727         * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
728         minibuf_save_list.
729         Don't initialize minibuffer prompt length.
730         Wrap prompt text-properties around the entire prompt.
731         Add 'prompt text-property to prompt.
732         Get final value with Ffield_string instead of make_buffer_string.
733         (read_minibuf_unwind): Don't restore minibuffer prompt length from
734         minibuf_save_list.
735         (do_completion): Get minibuffer input with Ffield_string
736         instead of Fbuffer_string.
737         Erase minibuffer input with Ferase_field instead of erase_buffer.
738         (Fminibuffer_complete_and_exit): Likewise.
739         Test whether buffer is empty by looking for the 'prompt text
740         property at the end.
741         Set prompt length by looking for the end of the prompt text property,
742         and save prompt length for later use (since there is no longer a
743         buffer variable to get it from).
744         (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
745         (syms_of_minibuf): Remove initializations of
746         Sminibuffer_prompt_width and Sminibuffer_prompt_end.
747         * buffer.h (struct buffer): Remove prompt_end_charpos field.
748         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer): 
749         Don't initialize prompt_end_charpos field.
750         * syntax.c (Fforward_word): Likewise.
751         Constrain to any field.
753 1999-10-16  Gerd Moellmann  <gerd@gnu.org>
755         * window.c (enum save_restore_action): New.
756         (save_restore_orig_size): Change parameter list.  Add
757         functionality to check for valid orig_top and orig_height members
758         in a window tree.
759         (grow_mini_window): Call save_restore_orig_size with new parameter
760         list.
761         (shrink_mini_window): Restore old window sizes only if old
762         size information is valid in all windows in a window tree.
763         
764 1999-10-15  Gerd Moellmann  <gerd@gnu.org>
766         * xmenu.c (set_frame_menubar): Don't call
767         x_set_menu_resources_from_menu_face here.
768         (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
770         * xfns.c (gif_load): Fix handling of interlaced GIFs.
772 1999-10-14  Dave Love  <fx@gnu.org>
774         * xdisp.c (handle_fontified_prop): GCPRO `pos'.
776 1999-10-14  Gerd Moellmann  <gerd@gnu.org>
778         * process.c (Fopen_network_stream): Don't loop if gethostbyname
779         fails and h_errno is TRY_AGAIN.
781 1999-10-13  Dave Love  <fx@gnu.org>
783         * filelock.c (lock_file): Move gcpro of `fn'.
785 1999-10-10  Gerd Moellmann  <gerd@gnu.org>
787         * keyboard.c (auto-save-interval): Fix documentation.
788         
789 1999-10-09  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
791         * print.c (print): When removing objects from Vprint_number_table,
792         only scan the newly added objects.
793         (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
794         unconditionally force it to stay in the table.
796 1999-10-09  Gerd Moellmann  <gerd@gnu.org>
798         * xfns.c (prepare_image_for_display): Don't try to load image if
799         loading it failed before.
800         (lookup_image, prepare_image_for_display): Remember if loading the
801         image failed.
802         (xpm_load): Add missing UNBLOCK_INPUT.
804         * dispextern.h (struct image): New member load_failed_p.
806 1999-10-08  Stefan Monnier  <monnier@cs.yale.edu>
808         * fileio.c (Fmake_temp_name): add a reference to `make-temp-file'
809         in the docstring.
811 1999-10-08  Gerd Moellmann  <gerd@gnu.org>
813         * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
814         Don't call XSetInputFocus because that can generate additional
815         FocusIn events.
816         
817 1999-10-07  Jeffrey C Honig <jch@bsdi.com>
819         * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
821 1999-10-07  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
823         * process.c (wait_reading_process_input): When trying to suck
824         input from one process, for accept-process-output,
825         exit that loop if we get EAGAIN or EWOULDBLOCK.
827 1999-10-07  Gerd Moellmann  <gerd@gnu.org>
829         * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
830         (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
831         (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
832         Fpixmap_spec_p and Qpixmap_spec_p.
833         (load_face_colors, check_lface_attrs,
834         merge_face_vector_with_property,
835         Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
836         (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
837         Fbitmap_spec_p.
839 1999-10-07  Gerd Moellmann  <gerd@gnu.org>
841         * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
842         MODE_LINE_FACE_ID.
844         * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
845         (struct x_resources) [USE_X_TOOLKIT]: New.
846         (xm_apply_resources, xm_set_menu_resources_from_menu_face)
847         [USE_MOTIF]: New.
848         (xl_apply_resources, xl_set_menu_resources_from_menu_face)
849         [USE_LUCID]: New.
850         (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
851         (Qmenu): New.
852         (syms_of_xfaces): Initialize Qmenu.
853         (realize_basic_faces): Realize face `menu'.
854         (resolve_face_name): New.
855         (lface_from_face_name): Use it.
856         (Finternal_set_lisp_face_attribute): Ditto.
857         (Fpixmap_spec_p): Rewritten.  Extend doc string.
859         * xmenu.c (set_frame_menubar, xmenu_show): Call
860         x_set_menu_resources_from_menu_face.
862         * dispextern.h (enum face_id): Add MENU_FACE_ID.
863         (toplevel): Include X11/Intrinsic.h.
865 1999-10-03  Ken'ichi Handa  <handa@gnu.org>
867         * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
868         correctly.
870 1999-09-30  Kenichi Handa  <handa@etl.go.jp>
872         * category.c (modify_lower_category_set): Set default value of
873         TABLE correctly.
875         * minibuf.c (Fminibuffer_complete_word): Calculate string byte
876         size correctly.
878 1999-09-29  Gerd Moellmann  <gerd@gnu.org>
880         * editfns.c (Fpropertize): Renamed from Fproperties.
882 1999-09-29  Gerd Moellmann  <gerd@gnu.org>
884         * xdisp.c (resize_mini_window): Do nothing if frame is an X
885         frame that hasn't been initialized yet.
887 1999-09-28  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
889         * keymap.c (Fsingle_key_description): Make tem big enough.
890         (describe_buffer_bindings): Make buf big enough.
892 1999-09-27  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
894         * intervals.c (get_local_map): Use indirect_function,
895         not Findirect_function.
897 1999-09-27  Dave Love  <fx@gnu.org>
899         * cm.h: Remove unneeded declaration of ospeed.
901 1999-09-26  Gerd Moellmann  <gerd@gnu.org>
903         * lisp.h (toplevel): Add prototype for
904         next_single_char_property_change.
906         * textprop.c (next_single_char_property_change): New.
908         * xdisp.c (display_prop_end, invisible_text_between_p): Use
909         next_single_char_property_change.
911 1999-09-25  Gerd Moellmann  <gerd@gnu.org>
913         * editfns.c (Fproperties): New.
914         (syms_of_editfns): Defsubr it.
916         * xfns.c (lookup_image): Set image's timestamp because it's
917         used when we look it up.
919 1999-09-23  Gerd Moellmann  <gerd@gnu.org>
921         * window.c (enlarge_window): Add window parameter instead of using
922         selected_window.
923         (Fdisplay_buffer): Call it with window parameter instead of
924         setting selected_window.
925         (Fenlarge_window, Fshrink_window): Ditto.
926         (shrink_mini_window): If there is no recorded height and position
927         info, resize mini-window to height 1.
929         * xfns.c (image_error): Use add_to_log.
931         * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
932         (load_face_font_or_fontset, load_color,
933         merge_face_vector_with_property): Ditto.
935         * dispextern.h: Add prototype for add_to_log.
937         * xfaces.c (add_to_log): Move to xdisp.c.
939         * xdisp.c (add_to_log): Moved from xfaces.c.  Remove frame
940         parameter.
942 1999-09-23  Gerd Moellmann  <gerd@gnu.org>
944         * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
945         USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
947         * xdisp.c (resize_mini_window): Use grow_mini_window and
948         shrink_mini_window.
950         * window.c (window_min_size): Add parameter ignore_fixed_p.
951         (change_window_height): Call window_min_size with new parameter.
952         (shrink_window_lowest_first, save_restore_orig_size,
953         grow_mini_window, shrink_mini_window): New.
954         (make_window, replace_window): Initialize orig_top and
955         orig_height.
956         (enlarge_window): Renamed from change_window_height.  Make it
957         static.
958         (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
959         enlarge_window instead of change_window_height.
961         * window.h (struct window): New members orig_top, orig_height.
962         (toplevel): Add prototypes for grow_mini_window and
963         shrink_mini_window.  Remove prototype for change_window_height.
965 1999-09-21  Eli Zaretskii  <eliz@gnu.org>
967         * frame.c (frame_name_fnn_p): Fix previous change.
969 1999-09-20  Gerd Moellmann  <gerd@gnu.org>
971         * minibuf.c (toplevel): Move include of stdio.h to other includes.
973         * dispnew.c (direct_output_for_insert): Cast arguments to
974         safe_bcopy to char *.
976         * lread.c (readchar): Remove unused variables.
977         (read_filtered_event, read1, Fmapatoms): Ditto.
978         (toplevel): Include intervals.h.
980         * eval.c (Fsignal): Remove unused variables.
981         (Fcommandp, do_autoload): Ditto.
983         * lisp.h: Add prototype for safe_bcopy, fatal.
985         * editfns.c (init_editfns): Remove unused variables.
986         (Fgoto_char, Fchar_after, Fformat): Ditto.
987         (message_text, message_length): Put in #ifndef HAVE_MENUS.
989         * data.c (find_symbol_value): Remove unused variables.
990         (Faref, Fstring_to_number): Ditto.
991         (toplevel): Include stdio.h.
992         (Fnumber_to_string): Cast XINT to long for %ld.
994         * casefiddle.c (casify_object): Remove unused variables.
995         (casify_region): Ditto.
997         * filelock.c (get_boot_time): Put local variable used in 
998         conditinally compiled section in #ifdef.
999         (toplevel): Include stdio.h.
1001         * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
1002         keys_of_keymap, syms_of_keymap): Remove unused variables.
1004 1999-09-20  Gerd Moellmann  <gerd@gnu.org>
1006         * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
1007         whose corresponding window rows have been disabled in
1008         try_window_id.
1010 1999-09-20  Gerd Moellmann  <gerd@gnu.org>
1012         * xdisp.c (compute_window_start_on_continuation_line): Handle case
1013         that window start is out of range.
1014         (handle_display_prop, handle_single_display_prop): Replace
1015         marginal area specifications like `left-margin' with `(margin
1016         left-margin)'.
1017         (Qmargin): New.
1018         (syms_of_xdisp): Initialize Qmargin.
1020 1999-09-19  Gerd Moellmann  <gerd@gnu.org>
1022         * syntax.c (update_syntax_table, find_defun_start, back_comment,
1023         describe_syntax, skip_chars): Remove unused variables.
1024         (back_comment, forw_comment): Add braces to if-statement with
1025         if-else as dependent statement.
1027         * process.c (list_processes_1): Remove unused variables.
1028         (Fopen_network_stream, create_process): Add parentheses to
1029         conditional expressions.
1030         (create_process): Put declaration of sigchld in #if 0.
1031         (Fopen_network_stream): Removed unused variables.
1032         (Fopen_network_stream, wait_reading_process_input,
1033         wait_reading_process_input, send_process, send_process): Ditto.
1034         (toplevel): Add prototypes for set_waiting_for_input and
1035         keyboard_bit_set.
1037         * abbrev.c (Fexpand_abbrev): Remove unused variables.
1039         * textprop.c (Fset_text_properties): Remove unused variables.
1040         (text_property_list, verify_interval_modification,
1041         interval_has_all_properties): Ditto.
1043         * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
1044         (Fcall_process): Remove unused variable.
1046         * keyboard.c (Frecursive_edit): Remove unused variable.
1047         (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
1048         timer_check, make_lispy_event, menu_bar_items,
1049         menu_bar_one_keymap, menu_bar_item, parse_menu_item,
1050         parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
1051         kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
1052         read_key_sequence): Ditto.  Fread_key_sequence,
1053         Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
1054         (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
1055         used when GOBBLE_FIRST_EVENT is defined in #ifdef
1056         (Fexecute_extended_command): Cast XINT to long for %ld.
1057         (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
1058         (toplevel): Include sys/types.h.
1060         * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
1061         (toplevel): Add prototypes for stuff_char, and
1062         code_convert_string_norecord.
1064 1999-09-19  Gerd Moellmann  <gerd@gnu.org>
1066         * buffer.h: Add prototype for r_re_alloc.
1068         * insdel.c (copy_text): Removed unused variables.
1069         (count_combining_after, count_combining_after, insert_1_both,
1070         insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
1071         (adjust_after_replace, replace_range): Add parentheses to logical
1072         expressions.  Remove unused variables.
1073         (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
1074         expression.
1076         * alloc.c (Fgarbage_collect): Remove unused variable.
1077         (compact_strings): Add parentheses around assignments in
1078         conditional context.
1079         (toplevel): Put declaration of unused function clear_marks
1080         in #if 0 like its definition.
1082         * lisp.h: Add prototype for shrink_regexp_cache,
1083         sweep_weak_hash_tables.
1085 1999-09-19  Dave Love  <fx@gnu.org>
1087         * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
1089         * doc.c (read_bytecode_char): Declare arg.
1091         * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
1092         read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
1094 1999-09-18  Richard Stallman  <rms@gnu.org>
1096         * xdisp.c (echo_area_display): Turn off code that returned
1097         without doing anything when using a terminal frame.
1099 1999-09-17  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
1101         * unexelf.c (unexec): Don't get confused by a short section
1102         just before the bss section.
1104 1999-09-16  Gerd Moellmann  <gerd@gnu.org>
1106         * emacs.c (main): Remove unused variables.
1107         (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
1109         * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
1110         init_fileio_once, syms_of_sound, init_xfns, init_fns
1111         init_sound, check_message_stack.
1113         * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
1115         * intervals.c (rotate_right, rotate_left): Add braces to avoid
1116         ambiguous else warning.
1117         (split_interval_left): Remove unused variables.
1118         (previous_interval, adjust_intervals_for_deletion,
1119         set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
1120         (icount, idepth, zero_length): Move into #if 0 section below
1121         original position where these are used.
1123         * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
1125         * buffer.c (Fkill_buffer): Remove unused variables.
1126         (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
1127         fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
1128         init_buffer_once, (syms_of_buffer): Ditto.
1130         * xrdb.c (get_fallback): Remove unused variable.
1131         (x_load_resources): Ditto.  Put local variable used for Motif only
1132         in #ifdef USE_MOTIF.
1134 1999-09-16  Gerd Moellmann  <gerd@gnu.org>
1136         * minibuf.c (read_minibuf): Remove unused variables.
1137         (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
1138         (do_completion): Move assignment out of conditional context.
1139         (Fdisplay_completion_list): Add parentheses to conditional expression.
1141         * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
1143         * lisp.h: Add prototype for no_switch_window.
1145         * window.c (Fset_window_buffer): Remove unused variables.
1146         (Fset_window_margins): Ditto.
1148         * xdisp.c (resize_mini_window): Temporarily set the selected
1149         window's or Vminibuf_scroll_window's height to "fixed" around
1150         the call the change_window_height.
1152         * window.c (window_fixed_size_p): Check window's height_fixed_p
1153         flag.
1155         * window.h (struct window): New member height_fixed_p.
1157         * dispnew.c (direct_output_forward_char): Don't use this method
1158         if showing a message or a message was just cleared because we
1159         might need to resize the mini-window.
1161 1999-09-16  Gerd Moellmann  <gerd@gnu.org>
1163         * frame.c (Fdelete_frame): Correct local variable pointing to
1164         selected frame after selecting new frame.
1166 1999-09-15  Richard Stallman  <rms@gnu.org>
1168         * puresize.h (BASE_PURESIZE): Increase to 525000.
1170         * filelock.c (Vtemporary_file_directory): New variable.
1171         (syms_of_filelock): Set up Lisp variable.
1173 1999-09-15  Gerd Moellmann  <gerd@gnu.org>
1175         * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
1176         (encode_terminal_code): Remove unused variables.
1177         (turn_off_face): Ditto.
1178         (toplevel): Include termcap.h if HAVE_TERMCAP_H.
1180         * dispnew.c (update_frame_line): If writing whole desired line,
1181         don't clear to end of line if already at the end.
1183 1999-09-15  Gerd Moellmann  <gerd@gnu.org>
1185         * xdisp.c (resize_mini_window): Don't report changed window
1186         height if it actually hasn't changed.
1188         * widget.c (set_frame_size, EmacsFrameSetCharSize):  Remove 
1189         unused variables.
1190         (mark_shell_size_user_specified): Put in #if 0 because not used.
1191         (create_frame_gcs): Put in #if 0 because currently unused.
1192         (first_frame_p): Ditto.
1194         * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
1195         single_submenu, update_frame_menubar, set_frame_menubar,
1196         free_frame_menubar, xmenu_show, xdialog_show): Remove unused
1197         variables.
1199         * print.c (PRINTFULLP): Removed because it is no longer used and
1200         is misleading.
1201         (Ferror_message_string): Remove unused variables.
1202         (print_object): Cast argument of sprintf to long for `%ld'
1203         specifier.  Remove unused variable.
1205 1999-09-14  Gerd Moellmann  <gerd@gnu.org>
1207         * sound.c (Fplay_sound): Remove usused variables.
1208         (be2hs): Put in #if 0 because it's currently not used.
1210 1999-09-14  Ken Raeburn  <raeburn@gnu.org>
1212         * print.c (Ferror_message_string, print_error_message,
1213         print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
1214         member access.
1216 1999-09-14  Gerd Moellmann  <gerd@gnu.org>
1218         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
1220         * frame.c (Fnext_frame): Remove unused variable(s).
1221         (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
1222         (store_frame_param): Add parentheses to conditional expression.
1223         (Fmodify_frame_parameters): Remove unused variables.
1224         (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
1225         Ditto.
1227         * xfns.c (x_set_background_color): Remove unused variable(s).
1228         (x_set_border_pixel): Ditto.
1229         (x_set_menu_bar_lines): Put local variable used only for
1230         non-toolkit case in #ifdef/#endif.
1231         (x_figure_window_size): Remove unused variable(s).
1232         (x_figure_window_size, x_window, lookup_image, 
1233         xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
1234         png_load, jpeg_load, gif_load, x_create_tip_frame,
1235         x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
1237         * xterm.c (x_scroll_bar_handle_click): Compile only if
1238         not USE_TOOLKIT_SCROLL_BARS.
1239         (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
1241         * dispextern.h: Add prototypes for gamma_correct and
1242         x_kill_gs_process.
1244         * xterm.c (x_produce_glyphs): Remove unused variable(s).
1245         (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
1246         x_set_toolkit_scroll_bar_thumb): Ditto.
1247         (x_scroll_bar_create): Move local variable to the
1248         conditionally compiled section of code where it is used.
1249         (x_scroll_bar_create): Remove unused variable(s).
1250         (x_scroll_bar_remove, XTread_socket): Ditto.
1251         (XTread_socket) <ConfigureNotify>: Move variables used for
1252         non-toolkit case into conditionally compiled section of code.
1254         * window.h (freeze_window_starts): Fix typo in prototype.
1256         * xdisp.c (display_echo_area_1, try_window_id): Remove unused
1257         variable(s).
1259         * lisp.h: Add prototype for debug_print.
1261         * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
1262         to use do-while.
1264         * fns.c (SXHASH_COMBINE): Add missing parentheses.
1265         (Fchar_table_range, Fset_char_table_default, mapcar1,
1266         Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
1268         * lisp.h: Add prototype for getloadavg.
1270 1999-09-14  Andreas Schwab  <schwab@gnu.org>
1272         * process.c (Fopen_network_stream): Avoid socket decriptor leak.
1274         * lisp.h: Declare close_file_unwind.
1276 1999-09-14  Richard Stallman  <rms@gnu.org>
1278         * filelock.c (get_boot_time): Make the temp name in the proper dir.
1280 1999-09-13  Gerd Moellmann  <gerd@gnu.org>
1282         * xdisp.c (redisplay_window): Make sure start_at_line_beg
1283         is always set correctly.
1285 1999-09-13  Dave Love  <fx@gnu.org>
1287         * xdisp.c (move_it_in_display_line_to): Make type consistent with
1288         declaration.
1290 1999-09-13  Gerd Moellmann  <gerd@delysid.gnu.org>
1292         * xdisp.c (QCfile): Move here from xfns.c.
1293         (syms_of_xdisp): Initialize it.
1294         (message2_nolog): Change for Lisp_Object selected_frame.
1295         (message3_nolog, message_with_string, message,
1296         setup_echo_area_for_printing, truncate_echo_area,
1297         prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
1299 1999-09-13  Dave Love  <fx@gnu.org>
1301         * xterm.c: Don't continue #define args for benefit of old cc.
1302         (xt_action_hook): Indent #error for benefit of K&R cc.
1304 1999-09-13  Gerd Moellmann  <gerd@delysid.gnu.org>
1306         * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
1307         (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
1308         (XRINGBELL): Removed.
1310 1999-09-13  Dave Love  <fx@gnu.org>
1312         * xfns.c (x_put_x_image): Make type consistent with declaration.
1314         * fns.c (Fmake_hash_table): Fix string continuation.
1316 1999-09-13  Gerd Moellmann  <gerd@delysid.gnu.org>
1318         * xfns.c (QCfile): Moved to xdisp.c.
1319         (syms_of_xfns): Don't initialize QCfile.
1320         (check_x_frame): Change for Lisp_Object selected_frame.
1321         (check_x_display_info, x_get_resource_string): Ditto.
1323 1999-09-13  Gerd Moellmann  <gerd@gnu.org>
1325         * minibuf.c (choose_minibuf_frame): Don't try to set the
1326         mini-buffer window's buffer, if the buffer is invalid.
1328         * xfns.c (QCfile): Moved to xdisp.c.
1329         (syms_of_xfns): Don't initialize QCfile.
1331         * xdisp.c (QCfile): Move here from xfns.c.
1332         (syms_of_xdisp): Initialize it.
1334         * lisp.h (selected_frame): Add external declaration.
1336         * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
1337         (Fx_store_cut_buffer_internal): Ditto.
1338         (Fx_rotate_cut_buffers_internal): Ditto.
1340         * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
1341         selected_frame.
1342         (Finternal_set_lisp_face_attribute): Ditto.
1343         (Finternal_get_lisp_face_attribute): Ditto.
1344         (Finternal_lisp_face_empty_p): Ditto.
1345         (Fdump_face): Ditto.
1347         * term.c (OUTPUT): Change for Lisp_Object selected_frame.
1348         (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
1349         set_terminal_window, set_scroll_region, reassert_line_highlight,
1350         change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
1351         clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
1352         encode_terminal_code, write_glyphs, term_init): Ditto.
1354         * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
1355         (kbd_input_ast, read_input_waiting): Ditto.
1357         * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
1358         selected_frame.
1359         (read_minibuf): Ditto.
1361         * keyboard.c (command_loop_1): Change for Lisp_Object
1362         selected_frame.
1363         (cmd_error_internal, command_loop_1, read_char,
1364         kbd_buffer_get_event, read_avail_input,
1365         read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
1366         interrupt_signal, quit_throw_to_read_char): Ditto.
1368         * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
1369         (Ffontset_info): DItto.
1371         * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
1373         * dispnew.c (selected_frame): Make it a Lisp_Object.
1374         (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
1375         (direct_output_for_insert, direct_output_forward_char,
1376         init_display): Ditto.
1378         * data.c (swap_in_symval_forwarding): Change for Lisp_Object
1379         selected_frame.
1380         (set_internal): Ditto.
1382         * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
1383         (record_buffer): Ditto.
1385         * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
1386         (do_switch_frame): Change for Lisp_Object selected_frame.
1387         (Fselected_frame): Ditto.
1388         (Fframe_first_window): Use SELECTED_FRAME.
1389         (Fframe_root_window): Change for Lisp_Object selected_frame.
1390         (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
1391         Fprevious_frame, other_visible_frames, Fdelete_frame,
1392         Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
1393         Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
1394         Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
1395         Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
1396         Fset_frame_height, Fset_frame_width): Ditto.
1398 1999-09-13  Gerd Moellmann  <gerd@gnu.org>
1400         * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
1401         (message3_nolog, message_with_string, message,
1402         setup_echo_area_for_printing, truncate_echo_area,
1403         prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
1405         * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
1406         (Fx_popup_dialog): Ditto.
1408         * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
1409         (check_x_display_info, x_get_resource_string): Ditto.
1411         * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
1412         (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
1413         (XRINGBELL): Removed.
1415         * window.c (Fminibuffer_window): Change for Lisp_Object
1416         selected_frame.
1417         (Fwindow_at, Fprevious_window, window_loop, select_window_1,
1418         display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
1419         Fcurrent_window_configuration, init_window_once): Ditto.
1421         * frame.h (SELECTED_FRAME): New.
1423 1999-09-12  Ken Raeburn  <raeburn@gnu.org>
1425         * category.c (word_boundary_p): Use XCAR and XCDR.
1426         * ccl.c (ccl_driver, resolve_symbol_ccl_program,
1427         Fregister_code_conversion_map): Likewise.
1428         * coding.c (setup_coding_system, detect_coding_system,
1429         Ffind_operation_coding_system, Fset_coding_priority_internal):
1430         Likewise.
1431         * doc.c (get_doc_string, Fdocumentation,
1432         store_function_docstring): Likewise.
1433         * editfns.c (save_restriction_restore): Likewise.
1434         * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
1435         skip_debugger, find_handler_clause, Fautoload, Fapply,
1436         run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
1437         Likewise.
1438         * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
1439         Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
1440         Fread_file_name): Likewise.
1441         * filelock.c (unlock_all_files): Likewise.
1442         * insdel.c (Fcombine_after_change_execute): Likewise.
1443         * intervals.c (adjust_intervals_for_insertion): Likewise.
1444         * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
1445         Fset_keymap_parent, fix_submap_inheritance, access_keymap,
1446         store_in_keymap, Fcopy_keymap, define_as_prefix,
1447         current_minor_maps, Faccessible_keymaps,
1448         accessible_keymaps_char_table, Fkey_description,
1449         Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
1450         describe_buffer_bindings, describe_map_tree, shadow_lookup,
1451         describe_map): Likewise.
1452         * lread.c (Fload, load_unwind, close_load_descs, read_vector,
1453         read_list, init_lread): Likewise.
1454         * search.c (Fmatch_data): Likewise.
1455         * sunfns.c (Fsun_menu_internal): Likewise.
1456         * syntax.c (describe_syntax): Likewise.
1457         * undo.c (record_insert, record_delete, Fundo_boundary,
1458         truncate_undo_list): Likewise.
1459         * vmsproc.c (child_sig): Likewise.
1461         * editfns.c (Fformat): Use XFLOAT_DATA.
1463 1999-09-12  Gerd Moellmann  <gerd@gnu.org>
1465         * keyboard.c (command_loop_1): Resize mini-window to the
1466         exact size of a message displayed, if any.
1468         * xdisp.c (resize_mini_window): Add parameter exact_p.  Resize
1469         to exact size if exact_p is non-zero.
1470         (display_echo_area_1): Call resize_mini_window with
1471         new parameter.
1472         (redisplay_internal): Ditto.
1473         (resize_echo_area_axactly): New.
1475         * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
1476         new parameter.
1478         * dispextern.h: Change prototype of resize_mini_window.
1479         Add prototype for resize_echo_area_axactly.
1481         * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
1482         (syms_of_xfaces): Defsubr accordingly.
1484         * xdisp.c (hscroll_window_tree): Choose cursor row from
1485         desired or current matrix.
1486         (redisplay_internal): Hscroll before updating.
1488 1999-09-12  Gerd Moellmann  <gerd@gnu.org>
1490         * syntax.c (Fforward_word): Use prompt_end_charpos instead
1491         of minibuffer_prompt_length.
1493         * minibuf.c (read_minibuf): Use prompt_end_charpos instead
1494         of minibuffer_prompt_length.
1495         (read_minibuf_unwind): Ditto.
1496         (Fminibuffer_complete_and_exit): Ditto.
1497         (Fminibuffer_complete_word): Ditto.
1498         (Fminibuffer_prompt_end): Ditto.
1500         * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
1501         of minibuffer_prompt_length.
1502         (Fline_beginning_position): Ditto.
1504         * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
1505         of minibuffer_prompt_length.
1506         (Fmake_indirect_buffer): Ditto.
1507         (Fkill_buffer): Ditto.
1508         (Ferase_buffer): Ditto.
1510         * buffer.h (prompt_end_charpos): Replaces
1511         minibuffer_prompt_length.
1513         * minibuf.c (read_minibuf): Return mini-buffer contents 
1514         without the prompt.
1516         * editfns.c (make_buffer_string_both): Take out the code
1517         to handle mini-buffer prompts.
1518         (Fbuffer_string): Handle the prompt here, instead.
1520         * xfaces.c (lface_from_face_name): Resolve face aliases.
1521         (Qmode_line): Replaces Qmodeline.
1522         (realize_basic_faces): Use Qmode_line.
1523         (syms_of_xfaces): Initialize Qmode_line.
1525 1999-09-12  Gerd Moellmann  <gerd@gnu.org>
1527         * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
1528         current column after inserting prompt.
1529         (Fminibuffer_prompt_width): Return minibuf_prompt_width.
1531         * xfaces.c (Qframe_update_face_colors): New.
1532         (syms_of_xfaces): Initialize call.
1533         (update_face_from_frame_parameter): Call that function when
1534         the frame's background changes.
1536 1999-09-12  Richard Stallman  <rms@gnu.org>
1538         * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
1540 1999-09-12  Ken Raeburn  <raeburn@gnu.org>
1542         * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
1543         mark_object, mark_buffer): Use XCAR and XCDR.
1544         * bytecode.c (Fbyte_code): Likewise.
1545         * callint.c (Fcall_interactively, Fprefix_numeric_value):
1546         Likewise.
1547         * callproc.c (Fcall_process, Fcall_process_region, child_setup,
1548         getenv_internal): Likewise.
1549         * dired.c (file_name_completion): Likewise.
1550         * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
1551         assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
1552         Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
1553         * indent.c (Fcompute_motion): Likewise.
1554         * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
1555         list_processes_1, Fstart_process, Fopen_network_stream,
1556         wait_reading_process_input, read_process_output_call,
1557         kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
1558         status_notify, wait_reading_process_input): Likewise.
1559         * textprop.c (PLIST_ELT_P, property_value, set_properties,
1560         extend_property_ranges): Likewise.
1561         * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
1562         * w32fns.c (x_window_to_frame, x_set_frame_parameters,
1563         x_report_frame_params, x_set_cursor_type, x_icon_type,
1564         x_figure_window_size, Fx_create_frame, w32_load_system_font,
1565         w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
1566         w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
1567         Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
1568         x_display_info_for_name, Fx_display_list): Likewise.
1569         * w32menu.c (menubar_id_to_frame, single_keymap_panes,
1570         Fx_popup_menu, Fx_popup_dialog): Likewise.
1571         * w32proc.c (Fw32_set_keyboard_layout): Likewise.
1572         * w32term.c (x_window_to_scroll_bar, w32_read_socket,
1573         w32_term_init, x_delete_display): Likewise.
1574         * xfns.c (x_window_to_frame, x_any_window_to_frame,
1575         x_non_menubar_window_to_frame, x_menubar_window_to_frame,
1576         x_top_window_to_frame, x_set_frame_parameters,
1577         x_report_frame_params, x_set_cursor_type, x_icon_type,
1578         x_figure_window_size, Fx_create_frame, x_display_info_for_name,
1579         Fx_display_list, x_create_tip_frame): Likewise.
1580         * xmenu.c (menubar_id_to_frame, single_keymap_panes,
1581         Fx_popup_menu, Fx_popup_dialog): Likewise.
1582         * xselect.c (x_own_selection, x_get_local_selection,
1583         x_handle_selection_request, x_handle_selection_clear,
1584         x_clear_frame_selections, wait_for_property_change_unwind,
1585         wait_for_property_change, x_handle_property_notify,
1586         copy_multiple_data, x_get_foreign_selection,
1587         lisp_data_to_selection_data, clean_local_selection_data,
1588         x_handle_selection_notify, Fx_get_selection_internal,
1589         x_disown_buffer_selections): Likewise.
1590         * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
1591         x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
1592         Likewise.
1594         * alloc.c (make_float, make_pure_float, Fpurecopy): Use
1595         XFLOAT_DATA.
1596         * bytecode.c (Fbyte_code): Likewise.
1597         * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
1598         fmod_float): Likewise.
1600 1999-09-11  Richard Stallman  <rms@gnu.org>
1602         * xdisp.c (run_window_scroll_functions): If hook functions switch
1603         buffers, switch back after.
1605 1999-09-11  Ken Raeburn  <raeburn@gnu.org>
1607         * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
1608         * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
1609         (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
1610         * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
1611         POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
1612         XCDR.
1613         * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
1614         XCDR.
1616 1999-09-10  Richard Stallman  <rms@gnu.org>
1618         * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
1619         not RevertToPointerRoot.
1620         (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1621         Fix the code to clear around the scroll bar.
1623 1999-09-10  Keisuke Nishida  <kxn30@po.cwru.edu>
1625         * print.c: Support print-circle and related features.
1626         (Vprint_gensym_alist): Removed.
1627         (Vprint_circle, Vprint_continuous_numbering, print_number_index
1628         Vprint_number_table): New variables.
1629         (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
1630         (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
1631         (print, print_preprocess, print_preprocess_string, print_object):
1632         New/modified functions with print-circle feature.  Use
1633         Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
1634         (syms_of_print): Defined new Lisp variables `print-circle',
1635         `print-continuous-numbering', `print-number-table'.
1637 1999-09-10  Gerd Moellmann  <gerd@gnu.org>
1639         * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
1640         as background color specification instead of an integer.
1641         (image-cache-eviction-delay): Replaces image-eviction-seconds.
1642         (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
1643         (clear_image_cache, syms_of_xfns): Use it.
1644         (Qpostscript): Replaces Qghostscript.
1645         (gs_type): Use it.
1646         (gs_image_p): Ditto.
1647         (syms_of_xfns): Initialize Qpostscript.
1649 1999-09-10  Richard Stallman  <rms@gnu.org>
1651         * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
1653 1999-09-09  Richard Stallman  <rms@gnu.org>
1655         * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
1657         * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
1659 1999-09-09  Gerd Moellmann  <gerd@gnu.org>
1661         * fns.c (Fmakehash): Accept just one optional argument TEST.
1663         * xfns.c (QCindex): New.
1664         (syms_of_xfns): Initialize QCindex.
1665         (gif_load): Use it instead of `:image'.
1667 1999-09-09  Richard Stallman  <rms@gnu.org>
1669         * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
1670         (Fwrite_region) [DOS_NT]: Handle `excl' here too.
1672 1999-09-08  Gerd Moellmann  <gerd@gnu.org>
1674         * xdisp.c (Qwhen): Replaces QCwhen.
1675         (syms_of_xdisp): Initialized it instead of QCwhen.
1676         (handle_single_display_prop): Use it instead of QCwhen.
1678 1999-09-08  Ken'ichi Handa  <handa@gnu.org>
1680         * charset.c (translate_char): Reset MSBs of arguments of
1681         MAKE_CHAR.
1682         (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
1684 1999-09-08  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1686         * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
1688         * fns.c (Fbase64_decode_region): Don't place point outside of the
1689         current accessible portion.
1691 1999-09-07  Richard Stallman  <rms@gnu.org>
1693         * keymap.c (fix_submap_inheritance): Do nothing if the proper
1694         parent is an ancestor of SUBMAP; otherwise, add it as the
1695         ultimate ancestor.
1697 1999-09-07  Gerd Moellmann  <gerd@gnu.org>
1699         * xdisp.c (handle_single_display_prop): Change conditional
1700         display property to `:when FORM . VALUE'.
1702 1999-09-07  Richard Stallman  <rms@gnu.org>
1704         * fileio.c (Fwrite_region): Doc fix.
1706 1999-09-07  Stefan Monnier  <monnier@cs.yale.edu>
1708         * fileio.c (Qexcl): New variable.
1709         (report_file_error): Handle EEXIST specially.
1710         (Fwrite_region): Special handling for CONFIRM = `excl'.
1711         (syms_of_fileio): Initialize Qexcl.
1713 1999-09-07  Gerd Moellmann  <gerd@gnu.org>
1715         * xfns.c (x_set_foreground_color): Call
1716         update_face_from_frame_parameter.
1717         (x_set_background_color): Ditto.
1718         (x_set_mouse_color): Ditto.
1719         (x_set_cursor_color): Ditto.
1720         (x_set_border_color): Ditto.
1721         (x_set_scroll_bar_foreground): Ditto.
1722         (x_set_scroll_bar_background): Ditto.
1724         * xfaces.c (recompute_basic_faces): Clear face cache.
1725         (Finternal_set_lisp_face_attribute): Modify frame parameters
1726         if attributes of certain faces are changed.
1727         (update_face_from_frame_parameter): New.
1729         * xfaces.c (realize_basic_faces): Realize new basic faces.
1731         * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
1732         CURSOR_FACE_ID, MOUSE_FACE_ID): New.
1734         * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
1735         (syms_of_xfaces): Intialize new symbols.
1737         * fns.c (Fmakehash): Take one argument, test, make all the
1738         rest keyword arguments.
1740         * window.c (Fset_window_margins): Make window the first argument.
1741         (set_window_buffer): Call Fset_window_margins with window as first
1742         argument.
1744 1999-09-07  Gerd Moellmann  <gerd@gnu.org>
1746         * xfaces.c (Qfringe): Replaces Qmargin.
1748 1999-09-07  Kenichi Handa  <handa@etl.go.jp>
1750         * charset.h: Lots of comments fixed.
1751         (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
1752         (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
1754         * charset.c : Lots of comments fixed.
1755         (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
1756         (CHAR_COMPONENTS_VALID_P): Name changed from
1757         CHAR_COMPONENT_VALID_P.  Caller changed.
1759 1999-09-06  Richard Stallman  <rms@gnu.org>
1761         * insdel.c (syms_of_insdel): Define Lisp variable
1762         inhibit-modification-hooks.
1764 1999-09-06  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
1766         * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
1767         unexaix.c.
1769         * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
1771 1999-09-06  Dave Love  <fx@gnu.org>
1773         * unexaix.c: New version incorporating Michael Sperber's changes
1774         from XEmacs.  Should solve problems on AIX 4.3.
1776         * lread.c (Vbyte_boolean_vars): New variable.
1777         (defvar_bool, syms_of_lread): Use it.
1779 1999-09-05  Richard Stallman  <rms@gnu.org>
1781         * minibuf.c (read_minibuf): Put all three properties on the
1782         same range, the whole prompt.
1784 1999-09-05  Gerd Moellmann  <gerd@gnu.org>
1786         * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
1787         (Fplay_sound, syms_of_sound): Use it.
1788         (parse_sound): Allow float volume values in the range [0, 1].
1789         (Fplay_sound): Ditto.
1791         * window.c (Fset_window_vscroll): Make window the first argument,
1792         amount to scroll the second.  Take non-negative vscroll as
1793         argument.
1794         (Fwindow_vscroll): Return non-negative vscroll.
1796         * xfns.c (Fx_show_tip): Improve documentation.
1798 1999-09-05  Gerd Moellmann  <gerd@gnu.org>
1800         * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
1801         window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
1802         `top-line' and `top_line' to `header-line' and `header_line'.
1803         Likewise for similar spellings.
1805 1999-09-05  Gerd Moellmann  <gerd@gnu.org>
1807         * xdisp.c (row_containing_pos): New.
1808         (try_window_id): Use it.
1810         * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
1811         lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
1812         Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
1813         Likewise for upper-case etc.
1815 1999-09-05  Gerd Moellmann  <gerd@gnu.org>
1817         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1818         Fix reference to renamed variable.
1820 1999-09-04  Gerd Moellmann  <gerd@gnu.org>
1822         * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
1823         (window_fixed_size_p): Use Qwindow_size_fixed instead of 
1824         Qfixed_window_size.
1825         (syms_of_window): Ditto.
1827         * fns.c (Fmakehash): Exchange optional test and size arguments.
1829 1999-09-03  Gerd Moellmann  <gerd@gnu.org>
1831         * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
1832         under newly created scroll bar.
1833         (expose_window): If window is not yet fully initialized, do
1834         nothing.  This can happen when toolkit scroll bars are used and a
1835         window is split.  Reconfiguring the scroll bars will generate an
1836         expose for a newly created window.
1838         * frame.h (struct frame): New member `gamma'.
1840         * xfns.c: Include math.h.  Add extern declaration for atof in case
1841         we don't see one.
1842         (Qscreen_gamma): New.
1843         (struct x_frame_parm_table): Add prototypes, add
1844         x_set_screen_gamma.
1845         (gamma_correct): New function.
1846         (defined_color): Call it.
1847         (x_set_screen_gamma): New.
1848         (x_set_title): Add parameter old_value.
1849         (RES_TYPE_FLOAT): New.
1850         (x_get_arg): Handle RES_TYPE_FLOAT.
1851         (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
1852         (lookup_pixel_color): Change call to x_alloc_nearest_color to
1853         new prototype.
1854         (lookup_rgb_color): Ditto.
1855         (syms_of_xfns): Initialize Qscreen_gamma.
1857         * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
1858         New.  Allocate color for lwlib widgets.
1859         (x_alloc_nearest_color): Change parameter list include the
1860         frame on which to allocate colors.  Gamma-correct colors.
1861         (x_alloc_lighter_color): Call x_alloc_lighter_color with new
1862         parameter list.
1864         * xterm.h: Change protorype of x_alloc_nearest_color.
1866 1999-09-03  Richard Stallman  <rms@gnu.org>
1868         * callproc.c: Delete the system-independent include of stdlib.h
1869         (leaving only the one in the WINDOWSNT conditional).
1871 1999-09-03  Andrew Choi  <choi@cs.hku.hk>
1873         * callproc.c (call-process) [macintosh]: Call mac_run_command in
1874         sysdep.c.  The Mac code is modeled after the DOS code.
1875         
1876         * dispextern.h [macintosh]: Include macterm.h to define substitute X
1877         Window types and macros.
1879         * frame.h: Do nothing if included a second time.
1880         (enum output_method): Add mac_output frame type.
1881         (union output_data): Add new alternative `mac'.
1882         (FRAME_MAC_P): New macro.
1883         
1884         * frame.c (Fframep) [macintosh]: Handle mac frame type.
1885         (syms_of_frame_1): Initialize Qmac.
1886         (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
1887         (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
1888         (Fmodify_frame_parameters) [macintosh]: Call
1889         mac_set_frame_parameter in macterm.c.
1890         
1891         * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
1892         (512) because Mac compilers limit local data of a function to 32K.
1893         
1894         * make-docfiles.c: Correctly handle input files with Mac-style
1895         eol's.
1896         
1897         * sysdep.c: Define numerous routines to emulate Unix system calls.
1898         
1899         * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
1900         file of an X Window environment.
1901         
1902         * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
1903         x-display-grayscale, x-color-defined-p, and x-color-values.
1904         
1905         * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
1906         (open, creat, unlink, read, write, rename, fopen, pause, alarm)
1907         (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
1908         (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
1909         (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
1910         New functions, replacing POSIX features.
1911         
1912         * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
1913         (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
1914         (InitEmacsPasswdDir, run_mac_command): New subroutines.
1916         * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
1917         (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
1918         (myPasswdDir, TempDirName, sys_siglist): New variables.
1920         * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
1921         (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
1922         (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
1923         Define empty stubs so Emacs will link.
1925 1999-09-03  Gerd Moellmann  <gerd@gnu.org>
1927         * xdisp.c: Use XCAR and XCDR instead of XCONS.
1929         * window.h: New member frozen_window_start_p.
1931         * window.c (foreach_window, foreach_window_1): New.
1932         (freeze_window_start, freeze_window_starts): New.
1933         (make_window): Initialize frozen_window_start_p.
1934         (replace_window): Ditto.
1935         (Fset_window_point): Remove references to deleted variables.
1936         (Fset_window_start): Ditto.
1938         * xdisp.c (Vresize_mini_config, resize_mini_frame,
1939         resize_mini_initial_height): Removed.
1940         (syms_of_xdisp): Remove references to these variables.
1941         (resize_mini_window): Don't save window configuration, freeze
1942         window starts instead.  Enlarge window until displaying an empty
1943         buffer, then shrink it.  Make the function externally visible.
1944         (redisplay_window): Treat frozen window start like forced start,
1945         but accept point outside of the window.
1947         * dispextern.h: Add function prototype for resize_mini_window.
1949         * minibuf.c (read_minibuf_unwind): Resize mini-window when
1950         reaching minibuf_level 0.
1952         * lisp.h: Remove extern declarations for variables deleted from
1953         xdisp.c.
1955         * dispnew.c (adjust_frame_glyphs): Remove reference to
1956         Vresize_mini_config.
1958 1999-09-03  Gerd Moellmann  <gerd@gnu.org>
1960         * xfns.c (x_set_scroll_bar_width): Change conditional compilation
1961         to USE_TOOLKIT_SCROLL_BARS.
1963         * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
1964         here.
1965         (XTset_vertical_scroll_bar): Clarify position computations.  Clear
1966         under newly created scroll bar.  Put toolkit scroll bars in the
1967         middle of the area reserved for the scroll bar.
1969 1999-09-03  Kenichi Handa  <handa@etl.go.jp>
1971         The following changes are for the new handling of mulitbyte
1972         sequence.  Now, except for a composite character, no multibyte
1973         character in string/buffer has trailing garbage bytes.  For
1974         instance, the length of string "\201\300\300" is now 2, the first
1975         character is Latin-1 A-grave, the second is raw \300.
1977         * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
1978         are negative.
1979         (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
1980         (VALID_MULTIBYTE_CHAR_P): This macro deleted.
1981         (PARSE_COMPOSITE_SEQ): New macro.
1982         (PARSE_CHARACTER_SEQ): New macro.
1983         (PARSE_MULTIBYTE_SEQ): New macro. 
1984         (CHAR_PRINTABLE_P): New macro.
1985         (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
1986         (STRING_CHAR_AND_LENGTH): Likewise.
1987         (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
1988         (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
1989         (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
1991         * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
1992         (SPLIT_CHARACTER_SEQ): New macro.
1993         (SPLIT_MULTIBYTE_SEQ): New macro.
1994         (CHAR_COMPONENT_VALID_P): New macro.
1995         (non_ascii_char_to_string): Generate a multibyte sequence as far
1996         as possible.
1997         (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
1998         deleted.  Caller changed.  Use the macro SPLIT_MULTIBYTE_SEQ.
1999         (split_non_ascii_string): Likewise.
2000         (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
2001         (char_printable_p): New function.
2002         (translate_char): Check character by NATNUMP instead of INTEGERP.
2003         (unibyte_char_to_multibyte): Call char_valid_p instead of
2004         VALID_MULTIBYTE_CHAR_P.
2005         (Fmake_char_internal): Check the arguments more rigidly.
2006         (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
2007         (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
2008         (Fmultibyte_char_to_unibyte): Check the validity of character by
2009         CHAR_VALID_P.
2010         (chars_in_text): Call multibyte_chars_in_text.
2011         (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
2012         (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
2013         STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
2015         * data.c (Faset): Adjust the way to check byte-combining
2016         possibility for the new handling of multibyte sequence.
2018         * editfns.c (Fsubst_char_in_region): Likewise.
2020         * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
2021         (string_char_to_byte): Likewise.
2022         (string_byte_to_char): Likewise.
2024         * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C.  Use the
2025         macro STRING_CHAR_AND_LENGTH.  Caller changed.
2027         * insdel.c (count_combining_composition): New function.
2028         (count_combining_before): Adjust the way to check byte-combining
2029         possibility for the new handling of multibyte sequence.  Call
2030         count_combining_composition for a composite character.
2031         (count_combining_after): Likewise.
2033         * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
2034         (print): Likewise.
2036         * dispextern.h (struct it): Change the size of the member
2037         `ctl_chars'.
2039         * xdisp.c (get_next_display_element): Display incomplete multibyte
2040         sequence (e.g. \222\300) by octal form.
2042 1999-09-02  Gerd Moellmann  <gerd@gnu.org>
2044         * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
2046         * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
2047         (cmpfn_eql, sxhash): Use XFLOAT_DATA.
2049 1999-09-02  Gerd Moellmann  <gerd@gnu.org>
2051         * buffer.c (set_buffer_internal): Never set
2052         windows_or_buffers_changed.
2054         * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
2055         if we have displayed to the bottom of the window.
2057         * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
2058         in both directions.  Extend documentation.
2060 1999-09-01  Gerd Moellmann  <gerd@gnu.org>
2062         * minibuf.c (read_minibuf): Flush display after setting cursor to
2063         column 0.
2065 1999-08-31  Gerd Moellmann  <gerd@gnu.org>
2067         * s/freebsd.h (__FreeBSD_version): Don't define it if it is
2068         already defined.  This avoids a warning from buffer.c.
2070 1999-08-30  Gerd Moellmann  <gerd@gnu.org>
2072         * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
2073         of both margins.
2074         (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
2075         (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
2076         (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
2078         * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
2079         once instead of twice.
2080         (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
2082         * xterm.c: Remove unused bitmaps.
2083         (continued_bits, continuation_bits, overlay_bits): Change images.
2084         (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
2085         instead of FRAME_X_FLAGS_AREA_WIDTH.
2086         (x_after_update_window_line): Ditto.
2087         (x_draw_bitmap): Likewise.
2088         (x_draw_row_bitmaps): Likewise.
2089         (x_draw_glyph_string_box): Likewise.
2090         (x_draw_glyphs): Likewise.
2091         (x_scroll_run): Likewise.
2092         (expose_window_tree): Likewise.
2093         (note_mode_line_highlight): Likewise.
2094         (XTset_vertical_scroll_bar): Likewise.
2095         (x_clip_to_row): Likewise.
2096         (x_set_window_size): Likewise.
2098         * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
2099         of 2 * that value.
2101         * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
2102         2 * that value.
2103         (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
2104         FRAME_FLAGS_AREA_WIDTH.
2106         * window.c (coordinates_in_window): Use
2107         FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
2108         (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
2109         instead of twice.
2111         * widget.c (set_frame_size): Set flags_area_extra to 
2112         FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
2113         (EmacsFrameSetCharSize): Ditto.
2115         * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
2116         instead of FRAME_FLAGS_AREA_WIDTH.
2118         * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
2119         FRAME_FLAGS_AREA_COLS once.
2120         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
2121         FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
2123 1999-08-30  Gerd Moellmann  <gerd@gnu.org>
2125         * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
2126         in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
2128 1999-08-30  Gerd Moellmann  <gerd@gnu.org>
2130         * fns.c (QCweakness): Replaces QCweak.
2131         (Fmake_hash_table): Ditto.
2132         (Fmakehash): Ditto.
2133         (syms_of_fns): Ditto.
2135 1999-08-29  Richard Stallman  <rms@gnu.org>
2137         * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
2139         * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
2141         * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
2142         Add support for nested comments.
2144         * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
2145         Consolidate the forward comment code into the new `forw_comment'.
2146         (forw_comment): New subroutine.  Added support for nested comments.
2147         (lisp_parse_state, back_comment, Fmodify_syntax_entry)
2148         (Fparse_partial_sexp): Add support for nested comments.
2150 1999-08-28  Ken Raeburn  <raeburn@gnu.org>
2152         * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
2153         names of structure elements if HIDE_LISP_IMPLEMENTATION is
2154         defined, to help detect code that uses knowledge of the Lisp
2155         internals that it shouldn't have.
2156         (XFLOAT_DATA): New macro.
2158 1999-08-25  Gerd Moellmann  <gerd@gnu.org>
2160         * syntax.c (Fforward_word): If in a mini-buffer and moving
2161         backwards, stop in front of the prompt to prevent accidentially
2162         moving into the read-only prompt.
2164         * window.c (Frecenter): Clear frame if called with nil or no arg.
2166         * xdisp.c (resize_mini_window): Don't resize if
2167         Vmax_mini_window_height is nil.  Otherwise, use a default if
2168         Vmax_mini_window_height is not ot a number.
2169         (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
2171 1999-08-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
2173         * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
2174         * m/iris4d.h: Use unexelf for IRIX 5.*.
2175         * m/iris5d.h: Use unexelf for IRIX 6.*.
2176         * unexsgi.c: Deleted.
2178         * unexelf.c: Auto-detect .sbss section.
2179         (round_up): Make it static.
2180         (unexec): Declare alignment as Elf Word.  Skip ``Program
2181         segment above .bss'' test on MIPS without .sbss.
2182         Copy sections .got and .sdata1 sections.  Adjust offsets in
2183         sections .sdata, .lit4, .lit8, .got and .sdata1.
2185 1999-08-25  Gerd Moellmann  <gerd@gnu.org>
2187         * xdisp.c (try_window_id): Remove typo.
2189 1999-08-24  Gerd Moellmann  <gerd@gnu.org>
2191         * xdisp.c (try_window_id): Recognize case that PT == ZV and in
2192         unchanged text at the bottom when computing the cursor position.
2193         (message3_nolog): Raise frame only if minibuffer_auto_raise is
2194         set.
2196         * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
2198 1999-08-24  Gerd Moellmann  <gerd@gnu.org>
2200         * xfaces.c (Qmargin): Replacement for Qbitmap_area.
2201         (realize_basic_faces): Replace Qmargin for Qbitmap_area.
2202         (syms_of_xfaces): Ditto.
2204         * window.c (Fset_window_point): Reset Vresize_mini_config.
2205         (Fset_window_start): Ditto.
2206         (set_window_buffer): Ditto.
2208         * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
2210         * xdisp.c (redisplay_window): Don't ever test just_this_one_p
2211         before calling try_window.
2212         (echo_area_display): If height has changed, update other windows.
2213         (resize_mini_frame, resize_mini_initial_height): New.
2214         (resize_mini_window): Save/restore window configuration
2215         differently.
2217         * lisp.h (Vresize_mini_config, resize_mini_frame, 
2218         resize_mini_initial_height): Add extern declarations.
2220         * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
2221         CANON_X_UNIT.
2223         * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
2224         being redefined in jconfig.h.
2226 1999-08-23  Ken'ichi Handa  <handa@gnu.org>
2228         * coding.h: Include "ccl.h" instead of "../src/ccl.h".
2230 1999-08-22  Gerd Moellmann  <gerd@gnu.org>
2232         * alloc.c (mark_glyph_matrix): Mark strings only.
2234         * xdisp.c (redisplay_internal): Clear garbaged frames after
2235         resizing mini-window.
2237 1999-08-22  Gerd Moellmann  <gerd@gnu.org>
2239         * xdisp.c (unwind_with_echo_area_buffer): Use
2240         set_buffer_internal_1 instead of set_buffer_internal.
2241         (with_echo_area_buffer): Ditto.
2243         * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
2244         only if buffer is displayed somewhere.
2246         * buffer.h (BUF_COMPUTE_UNCHANGED): New.
2248         * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
2249         (gap_right): Ditto.
2250         (modify_region): Ditto.
2252         * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
2254         * xdisp.c (Vresize_mini_config): New.
2255         (resize_mini_window): Use it to save restore original window
2256         configuration
2257         (syms_of_xdisp): Initialize it.
2259         * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
2261         * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
2263         * xdisp.c (reconsider_clip_changes): New.
2264         (redisplay_internal, redisplay_window): Call it.
2265         (mark_window_display_accurate, redisplay_internal): Set current
2266         matrix' buffer, begv, zv.
2268         * window.c (Fset_window_hscroll): Set
2269         prevent_redisplay_optimizations_p instead of clip_changed.
2270         (Fset_window_hscroll): Ditto.
2271         (temp_output_buffer_show): Ditto.
2272         (Fset_window_vscroll): Ditto.
2274         * buffer.c (reset_buffer): Set clip_changed to 0 and
2275         prevent_redisplay_optimizations_p to 1.
2276         (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
2278         * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
2279         BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
2280         BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
2281         END_UNCHANGED): New.
2282         (struct buffer_text):  Add beg_unchanged, end_unchanged,
2283         unchanged_modified, overlay_unchanged_modified.
2285         * window.h (beg_unchanged, end_unchanged, unchanged_modified,
2286         overlay_unchanged_modified): Removed.
2287         (with_echo_area_unwind_data): Don't save beg/end_unchanged.
2288         (unwind_with_echo_area_buffer): Don't restore them.
2289         (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
2290         (text_outside_line_unchanged_p, redisplay_internal,
2291         try_scrolling): Use/set buffer-specific beg/end_unchanged.
2292         (redisplay_window): Let try_window_id be called if more than one
2293         window is displayed.  Use/set buffer-specific beg/end_unchanged.
2294         (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
2295         try_window_id):
2296         Use buffer-specific beg/end_unchanged.
2298         * window.h (beg_unchanged, end_unchanged, unchanged_modified,
2299         overlay_unchanged_modified): Remove extern declarations.
2301         * keyboard.c (command_loop_1):  Set beg/end_unchanged per
2302         buffer.
2304         * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
2305         (gap_right): Ditto.
2306         (adjust_after_replace): Likewise.
2307         (replace_range, del_range_2, modify_region): Likewise.
2309         * dispnew.c (direct_output_for_insert):  Set beg_unchanged
2310         and unchanged_modified per buffer.
2312         * coding.c (code_convert_region): Compute beg/end_unchanged per
2313         buffer.
2315         * buffer.c (modify_overlay): Compute beg/end_unchanged
2316         per buffer.
2317         (Fget_buffer_create): Initialize new members of the buffer 
2318         structure.
2320 1999-08-22  Gerd Moellmann  <gerd@gnu.org>
2322         * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
2324         * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
2325         (Qkey_value_weak):  Removed.
2326         (make_hash_table): Use nil, `key', `value', t for weakness.
2327         (Fmake_hash_table): Ditto.
2328         (copy_hash_table): New.
2329         (Fcopy_hash_table): New.
2331 1999-08-22  Gerd Moellmann  <gerd@gnu.org>
2333         * xfns.c: Call change_frame_size and do_pending_window_change with
2334         new parameter.  
2336 1999-08-21  Gerd Moellmann  <gerd@gnu.org>
2338         * xdisp.c (resize_mini_window): Do it for truncate-lines t as
2339         well.
2340         (redisplay_internal): Resize mini-window only if text might 
2341         have changed.
2342         (display_echo_area): Reset displayed echo_area_buffer to nil
2343         at the end if we're displaying a nil message.
2345 1999-08-21  Gerd Moellmann  <gerd@gnu.org>
2346         
2347         * fns.c (hash_lookup): Test with EQ before calling key comparion
2348         function.
2349         (hash_remove): Ditto.
2350         (cmpfn_eq): Removed.
2351         (cmpfn_eql): Don't test with EQ.
2352         (cmpfn_equal): Ditto.
2353         (make_hash_table): Set comparison function for `eq' to null.
2355         * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
2356         Remove conditional compilation on NO_PROMPT_IN_BUFFER.
2358         * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
2360         * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
2361         xterm.c: Call change_frame_size and do_pending_window_change with
2362         new parameter.
2364         * dispnew.c (do_pending_window_change): Add parameter `safe'.
2365         (change_frame_size): Ditto.
2366         (change_frame_size_1): Ditto.  Deley size changes if redisplaying
2367         and not called from a safe place.
2368         (window_change_signal): Call change_frame_size with new parameter.
2370         * dispextern.h: Change prototypes for do_pending_window_change
2371         and change_frame_size.
2373         * xfaces.c (face_at_buffer_position): Don't xassert that
2374         window's buffers equals current_buffer; this is not the 
2375         case during echo area display.
2377 1999-08-21  Gerd Moellmann  <gerd@gnu.org>
2379         * xdisp.c, minibuf.c: Remove conditional compilation on
2380         NO_PROMPT_IN_BUFFER.
2382         * minibuf.c (Fminibuffer_prompt_end): New.
2383         (syms_of_minibuf): Defsubr it.  Remove
2384         minibuffer-prompt-in-buffer.
2385         (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
2386         Extend documentation.
2388         * xdisp.c (get_next_display_element): Display \r as ^M.
2390         * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
2391         under scroll bar widget.
2393 1999-08-21  Gerd Moellmann  <gerd@gnu.org>
2395         * xdisp.c (minibuffer_scroll_overlap): Removed because not used
2396         anywhere.
2397         (unwind_redisplay): Return nil.
2398         (clear_garbaged_frames): New.
2399         (redisplay_internal): Use it.
2400         (echo_area_display): Ditto.
2401         (resize_mini_window): Mew.
2402         (display_echo_area_1): Use it to resize echo area window.
2403         (redisplay_internal): Use it to resize active mini-window.
2405         * dispextern.h, lisp.h: Add function prototypes.
2407         * dispnew.c (set_window_cursor_after_update): Do the 
2408         cursor_in_echo_area case only for a mini-window showing
2409         a message.  Don't let cursor end up after the end of a row.
2411         * xdisp.c (echo_area_glyphs, echo_area_message,
2412         echo_area_glyphs_length, previous_echo_glyphs,
2413         previous_echo_area_message, previous_echo_area_glyphs_length):
2414         Removed.
2415         (Vmessage_stack, echo_area_buffer, echo_buffer,
2416         display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
2417         (message2_nolog): Use set_message and clear_message.
2418         (message3): Rename parameter len to nbytes to make clear what
2419         it is.
2420         (message3_nolog): Ditto.  Use set_message and clear_message.
2421         (update_echo_area): Rewritten.
2422         (with_echo_area_buffer): New.
2423         (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
2424         (setup_echo_area_for_printing): New.
2425         (display_echo_area, display_echo_area_1): New.
2427         (current_message, current_message_1): New.
2428         (push_message, restore_message, pop_message, 
2429         check_message_stack): New.
2430         (truncate_echo_area): Rewritten.
2431         (truncate_message_1): New.
2432         (set_message, set_message_1, clear_message): New.
2433         (echo_area_display): Rewritten.
2434         (redisplay_internal): Check for needed echo area update
2435         differently.
2436         (redisplay_preserve_echo_area): Rewritten.
2437         (redisplay_window): Check for mini-window displaying echo area 
2438         message differently.
2439         (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
2440         Remove initialzation of removed variables.
2441         (init_xdisp): Remove references to removed variables.
2443         * dispnew.c (adjust_frame_message_buffer): Removed references
2444         to echo_area_glyphs and previous_echo_glyphs.
2445         (direct_output_for_insert): Check for mini-window displaying
2446         echo area message differently.
2447         (update_frame): Likewise.
2448         (set_window_cursor_after_update): Likewise.  In echo area,
2449         don't try to set cursor on rows that aren't enabled.
2451         * print.c: Remove conditional compilation on `standalone'.
2452         (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
2453         glyph_to_str_cpy):  Remove that section because GLYPHs are no 
2454         longer used in that way.
2455         (PRINTDECLARE): Add multibyte.
2456         (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
2457         (printbufidx): Removed.
2458         (printchar, strout): Rewritten.
2460         * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
2461         a struct kboard.
2462         (echo_kboard): New.
2463         (echo_now): Set echo_kboard to the current kboard.
2464         (cancel_echoing): Set echo_kboard to null.
2465         (cmd_error_internal): Use clear_message, remove references
2466         to echo_area_glyphs and echo_area_message.
2467         (command_loop_1): Check for echo area messages differently.
2468         (read_char): Likewise.
2469         (record_menu_key): Use clear_message.
2470         (Fexecute_extended_command):  Check for echo area messages
2471         differently.  Use push_message, restore_message, pop_message.
2473         * alloc.c (Fgarbage_collect): Use push_message, restore_message,
2474         pop_message.
2476         * emacs.c (shut_down_emacs): Call check_message_stack.
2478         * lisp.h: Add function prototypes and extern declarations for
2479         new functions and variables.
2481         * fileio.c (Fdo_auto_save): Use push_message, restore_message,
2482         pop_message.
2484         * minibuf.c (read_minibuf): Use clear_message instead of 
2485         setting echo_area_glyphs.
2486         (Fminibuffer_completion_help): Ditto.
2488         * editfns.c (Fcurrent_message): Rewritten.
2490         * frame.c, window.h: Remove references to echo_area_glyphs
2491         and previous_echo_glyphs.
2493 1999-08-21  Dave Love  <fx@gnu.org>
2495         * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
2496         * aix4-1.h: Likewise.
2498         * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
2500 1999-08-20  Gerd Moellmann  <gerd@gnu.org>
2502         * xfns.c: Remove tiff34 prefix from include.
2504 1999-08-20  Dave Love  <fx@gnu.org>
2506         * cm.c: Revert previous change.
2508 1999-08-19  Gerd Moellmann  <gerd@gnu.org>
2510         * xterm.c (XTset_vertical_scroll_bar): Fix previous change.  Clear
2511         under scroll bar with width FRAME_SCROLL_BAR_COLS.
2513 1999-08-18  Dave Love  <fx@gnu.org>
2515         * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
2516         stdlib.h.
2518         * doprnt.c: Use stdlib.h, unistd.h.
2520         * config.in: Add HAVE_TERMCAP_H.
2522         * cm.c: Use termcap.h.
2524 1999-08-18  Gerd Moellmann  <gerd@gnu.org>
2526         * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
2527         FRAME_X_WINDOW (f) being null at the of the function.  If widgets
2528         cannot be created we will already have crashed earlier.  Call
2529         lw_set_main_areas with a null menu-bar widget, so that we have
2530         a reasonable default.
2531         (Fx_create_frame): Rearranged so that Lisp errors during frame
2532         initialization cause less damage.  Initialize menu bar widget
2533         here.
2535 1999-08-18  Gerd Moellmann  <gerd@gnu.org>
2536         
2537         * dispnew.c (update_frame_line): Fix previous change.  If writing
2538         whole line clear to end of frame.
2540 1999-08-17  Gerd Moellmann  <gerd@gnu.org>
2542         * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
2543         and `right-bitmap-area' if position is in the bitmap areas.  This
2544         avoids an error when clicking on the bitmap areas.  Instead, they
2545         are currently treated like clicks inside the window.
2546         (coordinates_in_window): Return 5 and 6 for bitmap areas.
2547         (Qleft_bitmap_area, Qright_bitmap_area): New.
2548         (syms_of_window): Initialize new symbols.
2550         * dispnew.c (update_frame_line): If writing whole line,
2551         don't write trailing spaces unless we must.
2553         * xdisp.c (unwind_redisplay): New.  Resets flag redisplaying_p.
2554         (redisplay_internal): Register unwind_redisplay with
2555         register_unwind_protect.
2556         (try_window_reusing_current_matrix): If new start > old start,
2557         give up if start pos of first reusable row is not equal to new
2558         start.
2560         * eval.c (Fsignal): Don't reset redisplaying_p here.
2562         * xterm.c (expose_area): If row extends face to end of line,
2563         write the whole line.
2565 1999-08-16  Gerd Moellmann  <gerd@gnu.org>
2567         * dispextern.h (struct it): Remove member
2568         show_trailing_whitespace_p.
2570         * dispnew.c (direct_output_for_insert): Use
2571         Vshow_trailing_whitespace instead of former iterator member
2572         show_trailing_whitespace_p.
2573         (direct_output_forward_char): Don't do it if hightlighting
2574         trailing whitespace.
2576         * xdisp.c (Qshow_trailing_whitespace): Removed.
2577         (Vshow_trailing_whitespace): Added.
2578         (init_iterator): Remove initialization code for
2579         show_trailing_whitespace_p.
2580         (redisplay_internal): Don't try cursor movement in this_line
2581         if showing trailing whitespace.
2582         (redisplay_window): Likewise for cursor movement in current
2583         matrix and try_window_id.
2584         (try_window_reusing_current_matrix): Likewise.
2585         (trailing_whitespace_p): Return 0 if trailing whitespace is
2586         in front of point.
2587         (display_line): Use Vshow_trailing_whitespace instead of
2588         former iterator member show_trailing_whitespace_p.
2589         (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
2591 1999-08-16  Gerd Moellmann  <gerd@gnu.org>
2593         * window.c (Fpos_visible_in_window_p): Rewritten.
2595         * xfaces.c (add_to_log): Renamed from display_message.
2596         Don't display messages in echo area.
2598         * xterm.c (x_draw_glyph_string_box): Use the background width
2599         of the glyph string for the width of the box.
2601 1999-08-16  Stefan Monnier  <monnier@cs.yale.edu>
2603         * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
2605 1999-08-16  Geoff Voelker  <voelker@cs.washington.edu>
2607         * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
2608         background first, and then set other parameters that might
2609         depend upon their new values.
2611 1999-08-15  Gerd Moellmann  <gerd@gnu.org>
2613         * xfaces.c (Vfont_list_limit): New.
2614         (syms_of_xfaces): Make it a user-variable.
2615         (DEFAULT_FONT_LIST_LIMIT): New.
2616         (sorted_font_list): If Vfont_list_limit is an integer > 0, list
2617         maximally that number of fonts, otherwise use
2618         DEFAULT_FONT_LIST_LIMIT.
2619         (Fx_font_family_list): Bind `font-list-limit' to higher values 
2620         until we have all fonts.
2621         (Fxfont_list): Additionally return the full names of fonts and
2622         their registry and encoding.
2624         * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: 
2625         Simplify clearing "under" scroll bar.
2627         * window.c (Qfixed_window_size): New.
2628         (syms_of_window): Initialiaze it.
2629         (check_all_windows): Add return type void.
2630         (window_fixed_size_p): New.  Return non-zero if window
2631         is fixed-size.
2632         (window_min_size_1): New.
2633         (window_min_size): Handle fixed-size windows.
2634         (size_window): New. Rewritten combination of set_window_height and
2635         set_window_width that handles fixed-size windows.
2636         (set_window_height): Call it.
2637         (set_window_width): Call it.
2638         (Fsplit_window): Give an error on attempt to split a fixed-size
2639         window.
2640         (change_window_height): Partly rewritten to handle fixed-size
2641         windows.
2643 1999-08-13  Wolfgang Rupprecht  <wolfgang@wsrcc.com>
2645         * process.c (Fopen_network_stream): Fix previous change.
2647 1999-08-13  Karl Heuer  <kwzh@gnu.org>
2649         * xdisp.c (line_number_display_limit_width): New var.
2650         (decode_mode_spec): Use it instead of hardcoded value.
2651         (syms_of_xdisp): Defvar it.
2653 1999-08-13  Richard M. Stallman  <rms@gnu.org>
2655         * eval.c (run_hook_list_with_args): Gcpro `globals'.
2656         (run_hook_with_args): Likewise.
2658         * window.h (struct window): New field too_small_ok.
2660         * window.c (set_window_height, set_window_width): 
2661         If window starts out "too small", set its too_small_ok flag.
2662         If window's too_small_ok flag is set, don't delete it
2663         unless it is so small it would cause a crash.
2665 1999-08-13  Gerd Moellmann  <gerd@gnu.org>
2667         * window.c (MINSIZE): Removed.
2668         (window_min_size): New.
2669         (set_window_height): Use window_min_size.
2670         (change_window_height): Ditto.
2672 1999-08-12  Gerd Moellmann  <gerd@gnu.org>
2674         * indent.c (vmotion): Don't add in mini-buffer prompt width
2675         if prompts are inserted into mini-buffer.
2677 1999-08-12  Wolfgang Rupprecht  <wolfgang@wsrcc.com>
2679         * config.in: Add HAVE_GETADDRINFO.
2680         * process.c (Fopen_network_stream): Use getaddrinfo.
2682 1999-08-11  Gerd Moellmann  <gerd@gnu.org>
2684         * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
2685         glyphs to -1.
2687         * xdisp.c (face_before_or_after_it_pos): If position after
2688         or before iterator's current position in the buffer is out
2689         of bounds, return the iterator's original face id.
2691         * dispnew.c (mirror_make_current): If desired row isn't enabled,
2692         just swap glyphs pointers between current and desired row.
2693         (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
2694         desired matrix method string to current matrix.
2696 1999-08-11  Kenichi Handa  <handa@etl.go.jp>
2698         * lisp.h (CHAR_MODIFIER_MASK): New macro.
2700         * lread.c (read_escape): For Control modifier, pay attention to
2701         multibyte character.
2702         (read1): Likewise.  Singal error or a multibyte character which
2703         has a modifer bit.  Check validity of Shift modifer.
2705         * charset.c (non_ascii_char_to_string): Handle modifier bits as
2706         the same as Lisp reader.
2708 1999-08-10  Richard M. Stallman  <rms@gnu.org>
2710         * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
2712 1999-08-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
2714         * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
2716 1999-08-10  Eli Zaretskii  <eliz@gnu.org>
2718         * msdos.c (IT_set_face): Abort if the default face is not realized
2719         and cached.
2720         (IT_write_glyphs): Reset the screen face to the default face
2721         before writing glyphs.
2723         * xfaces.c (realize_default_face) [MSDOS]: Don't take default
2724         colors from the frame here.
2725         (realize_tty_face) [MSDOS]: Do it here.  Update the face
2726         attributes with the actual name of the color taken from the
2727         frame.
2729         * dosfns.c (msdos_stdcolor_name): Remove const from return value.
2730         * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
2732         * frame.c (Fframe_parameters): Swap foreground and background
2733         colors returned in frame parameters if the frame has reverse in
2734         its parameter alist.
2735         (Fmake_terminal_frame): Make a unique copy of face_alist for
2736         each frame.
2738 1999-08-07  Richard Stallman  <rms@gnu.org>
2740         * buffer.c (Fprevious_overlay_change): Just return
2741         the answer obtained from overlays_at.
2743         * xfns.c (xpm_load) [!XpmAllocCloseColors]:
2744         Use XpmCloseness and attrs.closeness instead.
2746 1999-08-06  Richard Stallman  <rms@gnu.org>
2748         * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
2750 1999-08-06  Geoff Voelker  <voelker@cs.washington.edu>
2752         * dired.c (directory_files_internal, Fdirectory_files_and_attributes, 
2753         Ffile_attributes_lessp): New functions.
2754         (Fdirectory_files): Use directory_files_internal.
2755         (syms_of_dired): Initialize Fdirectory_files_and_attributes,
2756         Ffile_attributes_lessp.
2758         * w32.c (stat): Check for directory ending in separator when
2759         doing readdir fast path.
2761         * w32fns.c (x_set_icon_type): Support setting frame icons.
2762         * w32term.c (x_bitmap_icon): New function.
2763         (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
2764         
2765 1999-08-06  Gerd Moellmann  <gerd@gnu.org>
2767         * xdisp.c (set_iterator_to_next): After delivering a character
2768         from a display vector, restore face and charset to what they were
2769         before the display vector was processed.
2771 1999-08-06  Gerd Moellmann  <gerd@gnu.org>
2773         * xdisp.c (reseat_at_next_visible_line_start): New parameter
2774         on_newline_p.
2775         (set_iterator_to_next):  After delivering last char
2776         from display vector, reseat on next visible line start if 
2777         dpvec_char_len < 0.
2778         (next_element_from_buffer): Set dpvec_char_len to -1 for
2779         selective display.
2781 1999-08-06  Gerd Moellmann  <gerd@gnu.org>
2783         * xdisp.c (compute_line_metrics): If first line's physical ascent
2784          is larger than its logical ascent, use the physical ascent, and
2785          make the row taller.  Set row's overlapping_p flag.
2787         * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
2788         (direct_output_for_insert): Ditto.
2790         * dispextern.h (struct glyph_row): Add overlapping_p.
2792         * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
2794         * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
2795         (MATRIX_ROW_OVERLAPS_SUCC_P): New.
2797         * dispnew.c (direct_output_for_insert): Don't use this method if
2798         row is overlapped by others.
2799         (update_text_area): Write full line if current line is overlapped.
2800         (redraw_overlapped_rows): New.
2801         (update_window): Call it.
2802         (redraw_overlapping_rows): New.
2803         (update_window): Call it.
2804         (scrolling_window): Make sure overlapped_p flag in current rows is
2805         unchanged.
2806         (row_equal_p): Take rows overlapped_p flag into account.
2808         * dispextern.h (struct glyph_row): Add flag overlapped_p.
2810         * xterm.c (x_fix_overlapping_area): New.
2811         (x_redisplay_interface): Add x_fix_overlapping_area.
2813         * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
2815 1999-08-06  Gerd Moellmann  <gerd@gnu.org>
2817         * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
2818         (struct glyph_string): Add member for_overlaps_p.
2819         (x_get_glyph_string_clip_rect): If glyph string draws foreground
2820         of overlapping rows, clip to window bottom.
2821         (x_fill_glyph_string): Add parameter overlaps_p.
2822         (x_fill_composite_glyph_string): Ditto.
2823         (BUILD_GLYPH_STRINGS): Ditto.
2824         (BUILD_CHAR_GLYPH_STRINGS): Ditto.
2825         (x_draw_glyph_string): Don't draw anything but the foreground
2826         if glyph string draws row overlaps.
2828         * dispnew.c (direct_output_for_insert): Don't use this
2829         optimization for rows that overlap others.
2830         (update_window_line): Return non-zero if display has changed.
2831         (update_text_area): Ditto.
2832         (update_window): Record if display has been changed.
2834         * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
2836         * dispextern.h (struct redisplay_interface): Add
2837         fix_overlapping_area.
2839         * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
2841         * dispextern.h (struct glyph): Add overlaps_vertically_p.
2843         * xterm.c (x_produce_image_glyph): Compute iterator's physical
2844         ascent and descent.
2845         (x_produce_stretch_glyph): Ditto.
2846         (x_produce_glyphs): Ditto.
2848         * xdisp.c (init_iterator): Reset physical line height info
2849         after producing special glyphs.
2850         (display_toolbar_line): Set physical line height info.
2851         (compute_line_metrics): Ditto.
2852         (display_line): Ditto.
2853         (display_string): Ditto.
2855         * term.c (produce_glyphs): Set iterator's physical height
2856         information.
2858         * dispnew.c (blank_row): Compute glyph row's physical height.
2859         (row_equal_p): Take physical row heights into account.
2860         (direct_output_for_insert): Ditto.
2861         (update_text_area): Ditto.
2863         * dispextern.h (struct glyph_row): Add phys_ascent and
2864         phys_height.
2865         (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
2866         max_phys_descent.
2868 1999-08-04  Stefan Monnier  <monnier@cs.yale.edu>
2870         * buffer.c (switch_to_buffer_1): New subroutine, taken out from
2871         Fswitch_to_buffer.
2872         (no_switch_buffer): New function.
2873         (Fswitch_to_buffer): Call them.  Don't get confused
2874         by "same-window" buffers in a dedicated frame.
2876         * window.c (display-buffer): Don't get confused
2877         by "same-window" buffers in a dedicated frame.
2879 1999-08-04  Andreas Schwab  <schwab@gnu.org>
2881         * insdel.c (insert_from_string_1): Check gap size against number
2882         of outgoing bytes, not incoming bytes.
2884 1999-08-03  Tom Breton  <tob@world.std.com>
2886         * lread.c (read1): Added circular reading code to #N=.
2887         (SUBSTITUTE): New macro.
2888         (seen_list): New variable.
2889         (substitute_object_in_subtree): New function.
2890         (substitute_object_recurse): New function.
2891         (substitute_in_interval): New function.
2893 1999-08-02  Eli Zaretskii  <eliz@gnu.org>
2895         * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
2897         * frame.c (make_terminal_frame): Don't call init_frame_faces if
2898         noninteractive, for termcap frames as well.
2900         * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
2901         frames.
2903 1999-08-01  Richard Stallman  <rms@gnu.org>
2905         * fns.c (internal_equal): Correct overlay comparison.
2907 1999-07-31  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
2909         * xfns.c (x_set_internal_border_width): 
2910         Call do_pending_window_change.  Don't block input, don't call XFlush.
2911         (x_set_vertical_scroll_bars): Call do_pending_window_change.
2912         (x_set_scroll_bar_width, x_set_font): Likewise.
2914         * frame.c (Fset_frame_height): Call do_pending_window_change.
2915         (Fset_frame_width, Fset_frame_size): Likewise.
2917         * xterm.c (x_set_window_size): When calling change_frame_size,
2918         specify 1 for DELAY.
2920         * widget.c (EmacsFrameSetCharSize): Don't call
2921         do_pending_window_change here.
2923 1999-07-30  Dave Love  <fx@gnu.org>
2925         * config.in: Add HAVE_STDLIB_H.
2927 1999-07-30  Richard M. Stallman  <rms@gnu.org>
2929         * process.c (create_process): Detect failure of `pipe'.
2931 1999-07-30  Keisuke Nishida  <kei@psn.net>
2933         * alloc.c (allocate_vectorlike): Add missing increment.
2935         * data.c (Fdefalias): Call Ffset instead of duplicating code.
2937         * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
2938         before calling indirect_function.
2940 1999-07-30  Eli Zaretskii  <eliz@gnu.org>
2942         * dispextern.h (load_color, lookup_derived_face): Declare
2943         prototypes.
2945         * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
2946         it will be done later.
2948         * frame.c (make_terminal_frame) [MSDOS]: Don't call
2949         init_frame_faces if non-interactive.
2950         (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
2951         array with a call to msdos_stdcolor_name.  The font name is now
2952         "ms-dos", consistent with realize_tty_face.
2954         * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
2955         MSDOS frame.
2957         * window.c (Fset_window_configuration) [MSDOS]: Don't call
2958         x_set_toolbar_lines.
2960         * xfaces.c (load_color): Remove static from definition and remove
2961         prototype.
2962         [MSDOS]: Add a DOS-specific version of load_color.
2963         (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
2964         (lookup_derived_face): New function.
2965         (realize_default_face): Support MSDOS frames.
2966         [MSDOS]: If fore/background colors are unspecified, inherit them
2967         from the frame.
2968         (realize_face): Support MSDOS frames.
2969         (realize_tty_face): Support MSDOS frames.
2970         [MSDOS]: If the face color is not in Vface_tty_color_alist, call
2971         load_color to try to find a suitable approximation.  If the face
2972         is inverse-video, swap the foreground and background colors.
2974         * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
2975         functions.
2977         * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
2979         * msdos.h: Remove redundant declarations (most of them are now in
2980         dispextern.h).
2982         * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
2983         Use default frame colors if the face doesn't specify them; invert
2984         the colors if highlight is ON.
2985         (IT_write_glyphs): Rewritten for the new redisplay engine.
2986         (IT_change_line_highlight): Add (unused) parameter Y, since that's
2987         how the hook is called by term.c.
2988         (IT_copy_glyphs): New function, copies an area of the display in
2989         video RAM.
2990         (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
2991         redisplay now calls it even if char_ins_del_ok is zero.
2992         (IT_set_frame_parameters): Prototype changed.  Calls the new
2993         load_color.  Puts the new fore/background colors into the default
2994         face on current frame.
2995         (IT_menu_display): Rewritten to handle the new struct glyph
2996         instead of a char array.
2997         (XMenuActivate): Call lookup_derived_face to create and use
2998         special faces for the pop-up and drop-down menus.
3000 1999-07-29  Gerd Moellmann  <gerd@gnu.org>
3002         * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
3003         XawScrollbarSetThumb if thumb parameters haven't changed because
3004         that function apparently isn't optimized for this case.
3006 1999-07-29  Eli Zaretskii  <eliz@gnu.org>
3008         * msdos.c (getdefdir): Don't return failure indication when
3009         _fixpath sets errno to ENOSYS.
3011 1999-07-28  Gerd Moellmann  <gerd@gnu.org>
3013         * xdisp.c (string_char_and_length): New.  Use it everywhere
3014         instead of STRING_CHAR_AND_LENGTH in xdisp.c.
3016 1999-07-28  Kenichi Handa  <handa@etl.go.jp>
3018         * fns.c (count_combining): New function.
3019         (struct textprop_rec): New structure.
3020         (concat): Copy text properties correctly when byte combining
3021         occurs.
3023 1999-07-28  Gerd Moellmann  <gerd@gnu.org>
3025         * xterm.c (x_setup_relief_color): Don't try smart color allocation
3026         if display is mono.
3027         (x_draw_row_bitmaps): If face has stipple, don't switch
3028         to foreground color for clearing areas, and set the fill style.
3030         * xfaces.c (load_face_colors): Load background color if setting
3031         stipple, too.
3032         (prepare_face_for_display): Use FillOpaqueStippled instead of 
3033         FillStippled.
3035 1999-07-26  Ken'ichi Handa  <handa@gnu.org>
3037         * xterm.c (x_find_ccl_program): Add casting.
3039         * w32fns.c (w32_find_ccl_program): Add casting.
3041 1999-07-27  Gerd Moellmann  <gerd@gnu.org>
3043         * dispextern.h (struct glyph_row): Flag internal_border_p removed.
3045         * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
3046         because this will try to access a nonexisting widget.
3048 1999-07-26  Markus Rost  <rost@gnu.org>
3050         * fns.c (Fgethash): Fix order of variables (patch by gerd). 
3051         (Fputhash): Ditto.
3052         (Fremhash): Ditto.
3054 1999-07-26  Gerd Moellmann <gerd@gnu.org>
3055         
3056         * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
3057         value to frame width and height.
3059         * xterm.c (x_get_glyph_string_clip_rect): Take internal border
3060         into account for full-width windows.  Don't add scroll bar width
3061         to width of clip rect.
3062         (x_draw_glyph_string_box): Add 1 to right x of full width lines.
3063         (x_set_glyph_string_background_width): Add 1 to background width.
3064         (x_draw_glyphs): Take internal border into account for full-width
3065         lines.
3067 1999-07-26  Richard M. Stallman  <rms@gnu.org>
3069         * xfns.c (x_set_mouse_color): Always unload the old color.
3070         Don't allow nil as color value.
3071         (x_set_cursor_color, x_set_background_color, x_set_foreground_color): 
3072         Always unload the old color.
3074         * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
3076 1999-07-26  Karl Heuer  <kwzh@gnu.org>
3078         * fns.c (Fy_or_n_p): Doc fix.
3080 1999-07-26  Kenichi Handa  <handa@etl.go.jp>
3082         * ccl.h (setup_ccl_program): The type is changed to `int'.
3084         * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
3085         stored in the following CCL code.  Adjusted for the change of
3086         Vccl_program_table.
3087         (resolve_symbol_ccl_program): Adjusted for the new style of
3088         embedded symbols (SYMBOL . PROP) in CCL compiled code.   Return Qt
3089         is resolving failed.
3090         (ccl_get_compiled_code): New function.
3091         (setup_ccl_program): Function type changed from `void' to `int'.
3092         Resolve symbols in CCL_PROG.
3093         (Fccl_program_p): New function.
3094         (Fccl_execute): Get compiled CCL code by just calling
3095         setup_ccl_program.
3096         (Fccl_execute_on_string): Likewise.
3097         (Fregister_ccl_program): Adjusted for the change of
3098         Vccl_program_table.
3100         * coding.c (setup_coding_system): Get compiled CCL code by just
3101         calling setup_ccl_program.
3103         * xterm.c (x_find_ccl_program): Get compiled CCL code by just
3104         calling setup_ccl_program.
3106         * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
3107         calling setup_ccl_program.
3109 1999-07-23  Gerd Moellmann  <gerd@gnu.org>
3111         * xfaces.c (frame_update_line_height): Just use the height of the
3112         frame's fontset or font, instead of taking face fonts into
3113         account.
3115         * xdisp.c (get_next_display_element): Display DEL as `^?'.
3117 1999-07-23  Richard M. Stallman  <rms@gnu.org>
3119         * window.c (Fsplit_window): For default size, round up for left window.
3121 1999-07-21  Joe Ramey  <ramey@ti.com>
3123         * filelock.c (lock_if_free): Return -1 if check_lock_owner
3124         has returned -1 (lockfile exists but is not a symlink?).
3126 1999-07-20  Gerd Moellmann  <gerd@gnu.org>
3128         * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
3129         because of a change in cursor_gc made in 20.4.
3131 1999-07-19  Gerd Moellmann  <gerd@gnu.org>
3133         * xterm.c (x_calc_absolute_position): Subtract menu bar height
3134         for YNegative, if using X toolkit.
3136         * xfns.c (x_real_positions): Don't subtract window borders 
3137         from positions returned.
3139 1999-07-17  Gerd Moellmann  <gerd@gnu.org>
3141         * xrdb.c (x_load_resources): Set double-click time defaults
3142         for Motif list boxes from double-click-time.
3144         * fns.c (Vhash_table_tests): Remvoed.
3145         (Qhash_table_test): New.
3146         (syms_of_fns): Initialize Qhash_table_test.
3147         (Fmake_hash_table): Look up user-defined tests in symbol prop
3148         `hash-table-test'.
3149         (Fdefine_hash_table_test): Store test and hash function as
3150         symbol prop `hash-table-test'.
3151         (make_hash_table): Add parameters user_test and user_hash.
3153         * window.c (set_window_buffer): Set window margins for tty
3154         frames, too.
3155         (Fset_window_margins): Ditto.
3157         * term.c (append_glyph): Use glyph area of iterator instead of
3158         always TEXT_AREA.
3160         * dispnew.c (update_frame_1): Add left margin width to cursor
3161         hpos.
3162         (direct_output_for_insert): Ditto.
3163         (direct_output_forward_char): Ditto.
3165         * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
3167         * dispextern.h (struct glyph_matrix): Add top_line_p.
3169 1999-07-16  Gerd Moellmann  <gerd@gnu.org>
3171         * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed.  Use FRAME_WINDOW_P
3172         instead.
3174         * fns.c (cmpfn_eq): Add hash code parameters.
3175         (cmpfn_eql): Ditto.
3176         (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
3177         (cmpfn_user_defined): Likewise.
3179 1999-07-15  Gerd Moellmann  <gerd@gnu.org>
3181         * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
3183         * fns.c (maybe_resize_hash_table): Correct computation of
3184         index vector size.
3185         (make_hash_table): Ditto.
3186         (Fmakehash): New.
3188         * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
3190         * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
3191         (survives_gc_p): Make it externally visible.
3192         (mark_object): Ditto.
3194         * fns.c (remove_hash_entry): Removed.
3195         (sweep_weak_hash_tables): New.
3197         * print.c (print): Print more information about hash tables.
3199         * xfns.c (image_spec_hash): Removed.
3200         (lookup_image): Use sxhash instead of image_spec_hash.
3201         (image_spec_equal_p): Removed.
3202         (lookup_image): Use Fequal instead of image_spec_equal_p.
3204 1999-07-14  Gerd Moellmann  <gerd@gnu.org>
3206         * lisp.h (P_): Moved to top of file.
3208         * fns.c (make_hash_table): Set new members.
3210         * alloc.c (mark_object): Mark hash table's user_hash_function.
3211         Mark index vector for weak hash tables.
3213         * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
3214         user_hash_function, cmpfn, and hashfn.
3216         * fns.c (build_hash): Removed.
3217         (hash_test): Removed.
3218         (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
3219         (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
3221 1999-07-13  Gerd Moellmann  <gerd@gnu.org>
3223         * alloc.c (survives_gc_p): New.
3225         * print.c (print): Add hash table handling.
3227         * alloc.c (mark_object): Add code to mark hash tables.
3229         * lisp.h (GC_HASH_TABLE_P): New.
3231         * emacs.c (main): Call init_fns.
3233         * fns.c (init_fns): New.
3235         * fns.c: Add hash table implementation.
3237         * lisp.h (PVEC_HASH_TABLE): New.
3238         (struct Lisp_Hash_Table): New.
3239         (XHASH_TABLE): New.
3240         (XSET_HASH_TABLE): New.
3241         (HASH_TABLE_P): New.
3242         (CHECK_HASH_TABLE): New.
3243         (DEFAULT_HASH_SIZE): New.
3244         (DEFAULT_REHASH_THRESHOLD): New.
3245         (DEFAULT_REHASH_SIZE): New.
3247         * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
3248         (x_write_glyphs): Compute overwritten cursor using real start
3249         and end positions of display.
3250         (x_insert_glyphs): Ditto.
3252 1999-07-10  Gerd Moellmann  <gerd@gnu.org>
3254         * keyboard.c (read_char): Use message3_nolog to show help-echo.
3256         * dispnew.c (blank_row): Add y-position as parameter.  Compute
3257         visible height.
3259         * xdisp.c (next_element_from_string): Give padding spaces
3260         a position of -1.
3262         * dispnew.c (adjust_glyph_matrix): Some work to support 
3263         marginals areas on tty frames in a future version.
3264         (allocate_matrices_for_frame_redisplay): Ditto.
3266         * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
3267         to zero if number of glyphs in the row is <= 1.
3269 1999-07-09  Gerd Moellmann  <gerd@gnu.org>
3271         * dispnew.c (buffer_posn_from_coords): Take left marginal area
3272         into account.
3274         * xdisp.c (handle_display_prop): Don't reset area if handing
3275         a property from a string that came from a `display' property.
3276         (handle_single_display_prop): Don't handle recursive `display'
3277         properties.
3278         (handle_single_display_prop): Handle some display property
3279         forms for terminal frames.
3280         (Qimage): Moved here from xfns.c.
3282         * dispextern.h (struct it): New field string_from_display_prop_p.
3284         * xterm.c (x_clip_to_row): Don't let clip_rect include top
3285         line.
3287 1999-07-08  Gerd Moellmann  <gerd@gnu.org>
3289         * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
3291         * window.c (set_window_buffer): Set window's vscroll to zero.
3293         * xdisp.c (QCwhen): New.
3294         (display_prop_end): New.
3295         (handle_single_display_prop): Use it.
3296         (debug_method_add): Print buffer name if tracing.
3297         (try_window_reusing_current_matrix): Compute visible height
3298         of reused rows.  Fix cursor position calculation in case of
3299         top-line.
3301         * dispextern.h (struct redisplay_interface): Add parameter
3302         cursor_on_p to update_window_end_hook.
3304         * xterm.c (x_update_window_end): Add parameter cursor_on_p.
3306 1999-07-07  Gerd Moellmann  <gerd@gnu.org>
3308         * xdisp.c (redisplay_internal): Ensure that redisplayinp_p 
3309         doesn't become negative when decrementing it.
3311         * eval.c (Fsignal): Reset redisplaying_p to zero.
3313         * xdisp.c (try_window_reusing_current_matrix): Call hooks
3314         for window update.
3315         (try_window_id): Ditto.
3317         * xterm.c (x_clear_end_of_line): Handle top-line correctly.
3318         (x_scroll_run): Ditto.
3319         (any_help_event_p): New.
3320         (x_initialize): Set it to zero.
3321         (XTread_socket): Clear help echo only if any_help_event_p.
3323         * xdisp.c (init_iterator): Set top_line_p.
3324         (start_display): Use correct initial y if top-line is present.
3325         (make_cursor_line_fully_visible): Bug fixes for top-line.
3326         (try_scrolling): Ditto.
3327         (try_window_reusing_current_matrix): Ditto.
3329         * dispextern.h (struct it): Add top_line_p.
3331         * dispnew.c (shift_glyph_matrix): Move some computations out
3332         of the loop.
3334         * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and 
3335         XFLOATINT.
3337 1999-07-06  Gerd Moellmann  <gerd@gnu.org>
3339         * dispnew.c (update_frame_1): When setting cursor in echo area,
3340         skip only over padding spaces at the end.
3342         * xfaces.c (realize_tty_face): Set face's font_name field to
3343         "tty".
3345         * term.c (update_end): Turn cursor on only if selected window's
3346         cursor_off_p flag is not set.
3348 1999-07-05  Gerd Moellmann  <gerd@gnu.org>
3350         * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
3351         (TS_cursor_normal): Renamed from TS_end_visual_mode.
3352         (TS_cursor_invisible):  New.
3353         (term_init): Initialize TS_cursor_invisible.
3354         (tty_hide_cursor): New.
3355         (tty_show_cursor): New.
3356         (update_end): Show tty cursor.
3357         (update_begin): Hide tty cursor to prevent cursor flickering
3358         during redisplays triggered by timers (stealth fontification).
3360         * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
3362         * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
3363         in scroll bars.
3364         (x_handle_toolbar_click): Set modifier bits.
3366 1999-07-04  Gerd Moellmann  <gerd@gnu.org>
3368         * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
3369         instead of a pointer to a volatile input_event.
3370         (kbd_buffer_store_event): Remove volatile modifier from 
3371         declaration of local variable `sp'.
3372         (Fdiscard_input): Don't cast when assigning kbd_store_ptr
3373         to kbd_fetch_ptr.
3375 1999-07-03  Gerd Moellmann  <gerd@gnu.org>
3377         * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
3378         only if buffer is modified.  Return quickly if changes are
3379         above window start.
3381 1999-07-02  Gerd Moellmann  <gerd@gnu.org>
3383         * dispextern.h (HSCROLL_WINDOWS): Removed.
3385         * xdisp.c (mark_window_display_accurate): Don't set
3386         w->region_showing.
3387         (redisplay_internal): Don't call redraw_garbaged_frames.
3389 1999-07-01  Gerd Moellmann  <gerd@gnu.org>
3391         * xdisp.c (echo_area_display): Don't display truncation marks
3392         for messages because 20.4 doesn't do it either.
3393         (redisplay_window): Case same window start.  Instead of giving
3394         up when cursor is partially visible, make it fully visible.
3395         (mark_window_display_accurate): Some cleanup.  Record window's
3396         last cursor information.
3397         (debug_method_add): Improved.
3398         (redisplay_internal): Record last cursor info only if not
3399         consider_all_windows_p.
3401         * dispnew.c (update_window): Update top line after scrolling.
3402         (blank_row): Renamed from make_empty_enabled_row.
3403         (increment_glyph_row_buffer_positions): Increment positions
3404         in buffers, only.
3406         * window.c (Fcoordinates_in_window_p): Add top-line to doc
3407         string.
3409 1999-06-30  Gerd Moellmann  <gerd@gnu.org>
3411         * dispnew.c (update_window): Check that updated row is visible.
3413         * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
3414         top of window differently.
3416         * xdisp.c (try_window_reusing_current_matrix): Don't do it
3417         if region is showing.
3419         * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
3420         avoiding matrix reallocation.  Set window_vscroll in matrix.
3422         * dispextern.h (struct glyph_matrix): Add member window_vscroll.
3424         * lwlib-Xm.c: Add function prototypes.
3426         * xdisp.c (debug_method_add): New.
3427         (debug_redisplay_method): Removed.
3428         (try_window_reusing_current_matrix): Handle case where old
3429         window start is the same as new window start.
3431         * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
3432         an array instead of a pointer.
3434         * lwlib-Xm.c (xm_update_label): Use val->name to look up
3435         a label string from resources.
3436         (xm_update_label): Add some comments.
3438         * xfns.c (Fx_show_tip): Undo previous change.
3440         * xterm.c (x_append_glyph): Clear glyph->u.val.
3442         * dispextern.h (struct glyph): Increase size of face_id bit-field
3443         for CHAR_GLYPH to 12.
3445 1999-06-29  Gerd Moellmann  <gerd@gnu.org>
3447         * xfaces.c (x_charset_registry): Make it externally visible.
3449 1999-06-28  Gerd Moellmann  <gerd@gnu.org>
3451         * dispnew.c (update_window): Use mode_line_p flag of rows 
3452         instead of WINDOW_WANTS_MODELINE_P.
3454         * xterm.c (clear_mouse_face): Make externally visible.
3456         * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
3458         * xterm.c (expose_line): Handle exposure of top-lines.
3460         * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
3461         if mouse_face_mouse_frame is null.
3463         * xdisp.c (redisplay_window): If window is echo_area_window,
3464         and update_mode_line is set, update menubar and toolbar.
3466         * dispnew.c (space_glyph): Set its charpos to -1.
3467         (update_frame_1): Ignore trailing padding spaces.
3469         * xdisp.c (next_element_from_c_string): Set position of padding
3470         glyphs to -1.
3472 1999-06-27  Gerd Moellmann  <gerd@gnu.org>
3474         * xfns.c (x_laplace_read_row): Use XQueryColors instead of
3475         XQueryColor.
3477         * xdisp.c (display_menu_bar): Remove unwarranted assertion.
3478         (set_cursor_from_row): Skip over glyphs having a null object at
3479         the start of rows.
3480         (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
3481         glyphs.
3482         (handle_invisible_prop): Compute next change only when needed.
3483         (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
3484         line.
3486 1999-06-26  Gerd Moellmann  <gerd@gnu.org>
3488         * xrdb.c (x_load_resources): Don't set resource for double-click
3489         time.
3491         * xdisp.c (try_window_id): Return quickly if all changes are
3492         below the window's current matrix end.
3494         * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
3495         parameter.
3497         * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
3498         in desired not in current matrix.
3499         (try_window_reusing_current_matrix): Rotate matrices starting
3500         at start_vpos instead of 0.
3502         * xterm.c (expose_window): Use window_text_bottom_y.
3503         (fast_find_position): Ditto.
3505         * xdisp.c (redisplay_window): Use window_text_bottom_y.
3506         (try_window_reusing_current_matrix): Ditto.
3507         (get_last_unchanged_at_beg_row): Ditto.
3508         (init_iterator): Ditto.
3510         * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
3511         more row.
3512         (check_matrix_invariants): Use window_text_bottom_y.
3513         (update_window): Ditto.
3514         (scrolling_window): Ditto.
3516         * xdisp.c (window_text_bottom_y): New.
3518 1999-06-25  Gerd Moellmann  <gerd@gnu.org>
3520         * xterm.c (XTread_socket): Set mouse_face_frame to zero after
3521         clearing mouse face.
3522         (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
3523         event.xcrossing.focus is not set, and focus is in the menu bar,
3524         set focus frame as if event.xcrossing.focus were set.
3526 1999-06-24  Gerd Moellmann  <gerd@gnu.org>
3528         * keyboard.c (make_lispy_event): Handle mouse on top lines.
3529         * keyboard.c (make_lispy_movement): Ditto.
3531         * window.c (coordinates_in_window): Return 4 if on top line.
3532         (Fcoordinates_in_window_p): Return `top-line' if on top line.
3534         * xdisp.c (window_box_height): Subtract top line height.
3535         (window_box): Add top line height to top y position if top line
3536         exists.
3537         (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
3538         the top line row of the window.  Set initial y-position to
3539         window's top line height plus delta.
3540         (start_display): Choose start glyph row depending on whether
3541         window has a top line.
3542         (try_scrolling): Take top line height into account for aggressive
3543         scrolling.
3544         (compute_window_start_on_continuation_line): Take top line into
3545         account.
3546         (redisplay_window): Ditto.  If top line height has changed, 
3547         trigger a new redisplay.
3548         (try_window_reusing_current_matrix): Take top line into account.
3549         (find_last_row_displaying_text): Ditto.
3550         (get_last_unchanged_at_beg_row): DItto.
3551         (try_window_id): Ditto.
3552         (compute_line_metrics): Ditto.
3554         * dispnew.c (shift_glyph_matrix): Compute visible row height
3555         taking top line of window into account.
3556         (update_window): Update top line.  If scrolling_window detects
3557         that all rows are equal, only set cursor.
3558         (update_window_line): Call after_update_window_line_hook if
3559         mode_line_p flag of rows has changed.
3560         (scrolling_window): Add parameter top_line_p.  Return -1 if
3561         all rows are equal.
3562         (mode_line_string): Add parameter mode_line_p.  Handle strings
3563         in top lines.
3565         * dispextern.h (MATRIX_TOP_LINE_ROW): New.
3566         (MATRIX_FIRST_TEXT_ROW): New.
3567         (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
3568         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
3569         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
3570         (MATRIX_TOP_LINE_HEIGHT): New.
3571         (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
3572         (CURRENT_TOP_LINE_HEIGHT): New.
3573         (DESIRED_TOP_LINE_HEIGHT): New.
3574         (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
3575         (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
3576         WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
3577         (WINDOW_DISPLAY_TEXT_HEIGHT): New.
3579         * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
3580         lines.
3581         (x_draw_row_bitmaps): Take top line into account when clearing
3582         bitmap area.
3583         (x_estimate_mode_line_height): Replacement for
3584         x_frame_mode_line_height.
3585         (x_get_glyph_string_clip_rect): Take top line into account.
3586         (x_clear_end_of_line): Ditto.
3587         (note_mode_line_highlight): Add parameter mode_line_p.  Handle
3588         top lines.
3589         (note_mouse_highlight): Call note_mode_line_highlight for top lines.
3590         (x_erase_phys_cursor): Take top line into account.
3592         * xdisp.c (window_box_height): Subtract top line height if
3593         window wants a top line.
3594         (display_mode_lines): New.
3595         (redisplay_window): Call it.
3596         (display_mode_line): Add parameters face_id and format.
3598         * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
3599         (MATRIX_TOP_LINE_HEIGHT): New.
3601         * xterm.c (x_frame_mode_line_height): Add parameter face_id.
3603         * term.c (estimate_mode_line_height): Renamed from
3604         frame_mode_line_height.  Add parameter face_id.
3605         (estimate_mode_line_height_hook): Renamed from
3606         frame_mode_line_height_hook.
3607         (produce_special_glyphs_hook): Removed.
3608         (produce_glyphs_hook): Removed.
3610 1999-06-23  Gerd Moellmann  <gerd@gnu.org>
3612         * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
3613         (struct glyph_row): Add mode_line_p.
3615         * xfaces.c (realize_basic_faces): Realize face `top-line'.
3616         (Qtop_line): New.
3617         (syms_of_xfaces): Initialize Qtop_line.
3619         * dispextern.h (TOP_LINE_FACE_ID): New.
3621         * buffer.c (init_buffer_once): Set default for
3622         top_line_format to nil.
3623         (init_buffer_once): Init top_line_format.
3624         (default-top-line-format): New.
3625         (top-line-format): New buffer-local variable.
3627         * buffer.h: Add top_line_format.
3629         * xdisp.c (overlay_arrow_changed_p): Removed because not used.
3631 1999-06-17  Dave Love  <fx@gnu.org>
3633         * xfns.c: Move the PNG section before the JPEG one to avoid
3634         problems surrounding setjmp.h/png.h on GNU/Linux.
3635         
3636 1999-06-17  Gerd Moellmann  <gerd@gnu.org>
3638         * xfns.c (x_kill_gs_process): Don't free colors.
3640 1999-06-17  Dave Love  <fx@gnu.org>
3642         * s/gnu-linux.h: Zap spurious ~.
3644 1999-06-16  Gerd Moellmann  <gerd@gnu.org>
3646         * xfns.c (gif_load): Improve multi-image support.
3648 1999-06-15  Gerd Moellmann  <gerd@gnu.org>
3650         * xfns.c (gif_load): Support multi-image files.
3652         * Makefile.in (LIBGIF): Use libungif.
3654         * configure.in (HAVE_GIF): Use libungif instead of libgif
3655         because the former doesn't contain patented compression code.
3657         * xdisp.c (compute_window_start_on_continuation_line): Don't
3658         do it if line start is too far away from window start.
3660 1999-06-14  Gerd Moellmann  <gerd@gnu.org>
3662         * buffer.c (init_buffer_once): Set buffer_local_flags for
3663         scroll_*_aggressively.
3664         (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
3665         (init_buffer_once): Set defaults for these variables.
3666         (syms_of_buffer): Add default-scroll-*-aggressively.
3668         * buffer.h (scroll_up_aggressively): New.
3669         (scroll_down_aggressively):  New.
3671         * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
3672         a static PNG library.
3674         * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
3675         in case it's a static library.
3677         * Makefile.in (ctagsfiles): Split so that files starting
3678         with an `x' are found before files starting with `w32'.
3679         (ctagsfiles1): New.
3680         (ctagsfiles2): New.
3681         (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
3683         * xdisp.c (compute_window_start_on_continuation_line): New.
3684         (redisplay_window): Use it.
3685         (INFINITY): New.
3686         (reseat_to_string): Use it.
3687         (hscroll_window_tree): Ditto.
3688         (compute_window_start_on_continuation_line): Ditto.
3689         (redisplay_window): Don't force display with a new window start.
3691 1999-06-06  Gerd Moellmann  <gerd@gnu.org>
3693         * xfns.c (x_report_frame_params): Don't report `outer-window-id'
3694         if widget not present.
3696         * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
3698 1999-06-04  Gerd Moellmann  <gerd@gnu.org>
3700         * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
3701         value of realize_basic_faces.
3702         (load_face_font_or_fontset): Store full font name in face.
3703         (realize_default_face): Use full font name.
3705         * xlwmenu.c (make_shadow_gcs) ]emacs]: Use x_alloc_nearest_color.
3707         * xterm.c (x_produce_glyphs): Set member char_to_display.
3708         (x_append_glyph): Store char_to_display in glyphs.
3710         * dispextern.h (struct it): Add char_to_display.
3712         * xfns.c (x_set_font): Don't call face-set-after-frame-default
3713         if faces haven't been initialized.
3714         (Fx_create_frame): Call face-set-after-frame-default after
3715         faces have been initialized, and widget has been created.
3717         * puresize.h (BASE_PURESIZE): Increased.
3719 1999-06-01  Gerd Moellmann  <gerd@gnu.org>
3721         * xfaces.c (set_lface_from_font_name): Add parameter force_p.
3722         (Finternal_set_lisp_face_attribute): If frame is t when
3723         :font attribute is set, use the selected frame.
3724         (clear_face_cache): Add parameter clear_fonts_p.
3725         (Fclear_face_cache): Add optional parameter thorougly.
3727         * xfaces.c (face_numeric_value): Return -1 if symbol is not
3728         in table.
3729         (Fclear_face_cache): New.
3730         (choose_face_fontset_font): If fontset doesn't contain font
3731         pattern for the given charset, use CHARSET_ASCII.
3732         (Finternal_set_lisp_face_attribute): Fix handling of nil
3733         stipple attribute.
3734         (Finternal_set_lisp_face_attribute): Fix handling of changing
3735         font-related face attributes of the default face.
3736         (set_lface_from_font_name): Set only attributes that aren't
3737         specified.
3739 1999-05-31  Gerd Moellmann  <gerd@gnu.org>
3741         * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
3742         font support.
3743         (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
3744         (x_face_list_fonts): Add parameter scalable_fonts_p.  Handle
3745         scalable fonts depending on the setting of SCALABLE_FONTS.
3746         (first_font_matching): List more than one font to find the
3747         first non-scalable matching font.
3748         (sorted_font_list): Let x_face_list_fonts return scalable fonts
3749         depending on SCALABLE_FONTS.
3750         (better_font_p): New parameter compare_pt_p.  If zero, don't
3751         compare point sizes of fonts.
3752         (exact_face_match_p) [SCALABLE_FONTS]: New.
3753         (build_scalable_font_name) [SCALABLE_FONTS]: New.
3754         (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
3755         (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
3756         (syms_of_xfaces):  Add scalable-fonts-allowed.
3758 1999-05-26  Gerd Moellmann  <gerd@gnu.org>
3760         * xfns.c (png_load): Let PNG lib handle gamma.  Construct
3761         mask only if image contains simple transparency information.
3762         Otherwise, combine image with frame background color.
3764         * configure.in (--with-png, HAVE_PNG): New.
3766         * config.in (HAVE_PNG): New.
3768         * Makefile.in: Add PNG library.
3770         * xfns.c: Add PNG support.
3772 1999-05-25  Gerd Moellmann  <gerd@gnu.org>
3774         * xdisp.c (init_xdisp): Initialize echo_area_message and
3775         previous_echo_area_message to nil.
3777         * keyboard.c (read_char): Rename local variable echo_area_message
3778         because it shadows the global one.
3780 1999-05-05  Gerd Moellmann  <gerd@gnu.org>
3782         * xterm.c (note_mode_line_highlight): Restructured.
3784         * window.c (coordinates_in_window): Handle windows that don't have
3785         a mode line because their buffer's mode-line-format is nil.
3786         Recognize the mode line under x positions that correspond to
3787         flags areas and left scroll bar.
3789 1999-05-02  Dave Love  <fx@gnu.org>
3791         * xterm.c (note_mouse_highlight): Separate help-echo processing
3792         from check on mouse-face so that it works generally.
3794 1999-04-21  Gerd Moellmann  <gerd@gnu.org>
3796         * sound.c (Fplay_sound): Run hook play-sound-hook.
3797         (Qplay_sound_hook): New.
3799 1999-04-20  Gerd Moellmann  <gerd@gnu.org>
3801         * xdisp.c (update_echo_area): Handle echo_area_message.
3803 1999-04-19  Gerd Moellmann  <gerd@gnu.org>
3805         * editfns.c (Fmessage): Use message3.
3807         * print.c (printchar): Set echo_area_message to nil.
3808         (strout): Ditto.
3810         * minibuf.c (read_minibuf): Reset echo message strings to nil.
3811         (Fminibuffer_completion_help): Ditto.
3813         * keyboard.c (cmd_error_internal): Set echo_areA_message.
3814         (command_loop_1): Test echo_areA_message.
3815         (read_char): Ditto.
3816         (record_menu_key): Set echo_area_message to nil.
3817         (Fexecute_extended_command): Test echo_area_message.
3818         (Fexecute_extended_command): Handle echo_area_message.
3820         * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
3821         is set.
3823         * editfns.c (Fcurrent_message): If echo_area_message is set,
3824         return a substring of that string.
3826         * dispnew.c (direct_output_for_insert): Test echo_area_message
3827         in addition to echo_area_glyphs.
3828         (set_window_cursor_after_update): Ditto.
3829         (update_frame_1): Ditto.
3831         * alloc.c (Fgarbage_collect): Use message3_nolog to display
3832         old Lisp message string.
3834         * xdisp.c (echo_area_message): New.
3835         (previous_echo_area_message): New.
3836         (syms_of_xdisp): Initialize and staticpro new variables.
3837         (echo_area_display): Display echo_area_message if set.
3838         (message2_nolog): Set echo_area_message and
3839         previous_echo_area_message.
3840         (echo_area_display): Set previous_echo_area_message.
3841         (redisplay_internal): Display echo area if echo_area_message
3842         or previous_echo_area_message are set.
3843         (redisplay_preserve_echo_area): Test/set echo_area_message and
3844         previous_echo_area_message.
3845         (redisplay_window): Test echo_area_message.
3846         (message3_nolog): New.
3847         (message3): New.
3849         * editfns.c (Fformat): Add text properties to the result string
3850         from properties of the format string and properties of string
3851         arguments.
3853         * textprop.c (text_property_list): New.
3854         (add_text_properties_from_list): New.
3855         (extend_property_ranges): New.
3857 1999-03-29  Gerd Moellmann  <gerd@gnu.org>
3859         * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
3860         (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
3861         Use these symbols for the box face attribute instead of the
3862         removed ones.
3864 1999-03-12  Gerd Moellmann  <gerd@gnu.org>
3866         * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
3867         Correct wrong test for slant.
3869 1999-03-10  Gerd Moellmann  <gerd@gnu.org>
3871         * xfaces.c: Use `unspecified' for unspecified face attributes,
3872         use t and nil for on/off.
3874 1999-03-06  Gerd Moellmann  <gerd@gnu.org>
3876         * buffer.c (syms_of_buffer): Extend doc string of
3877         mode-line-format.
3879         * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
3880         (first_font_matching): New.
3881         (set_lface_from_font_name): Use it if font name is a pattern.
3882         (font_field_wildcard_p): Removed.
3884         * dispnew.c (shift_glyph_matrix): Add `window' parameter.
3885         Recompute visible height of rows.
3887         * xterm.c (note_mouse_highlight): Reorder code for help-echo.
3888         Don't accept non-strings for help-echo from overlays.
3890 1999-03-04  Dave Love  <fx@gnu.org>
3892         * xterm.c (note_mouse_highlight): Check overlays for help-text
3893         property.
3894         (XTread_socket): Fix compiler warning.
3895         
3896 1999-03-05  Gerd Moellmann  <gerd@gnu.org>
3898         * xterm.c (note_mouse_highlight): Don't restrict number of 
3899         overlay to 10.  Call overlays_at so that it doesn't try to
3900         extend the vector.
3902         * xdisp.c (compute_line_metrics): Compute glyph row's visible
3903         height.
3905         * dispnew.c (row_equal_p): Compare visible row height, only.
3906         (update_text_area): Draw whole line if visible heights of
3907         rows differ.
3908         (update_window_line): Call after_update_window_line_hook
3909         if visible row height has changed.
3911         * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
3912         (struct glyph_row): New member visible_height.
3914         * xfaces.c (font_field_wildcard_p): New.
3915         (set_lface_from_font_name): Remove parameter force_p.  Accept
3916         font names containing wildcards.
3918 1999-03-04  Gerd Moellmann  <gerd@gnu.org>
3920         * xterm.c (x_after_update_window_line): Clear internal border
3921         when windows_or_buffers_changed.
3923         * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
3924         buffer has a nil mode_line_format.
3926 1999-03-03  Gerd Moellmann  <gerd@gnu.org>
3928         * xterm.c (x_setup_relief_colors): Use either background color
3929         or specified color.
3931         * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
3933         * dispextern.h (struct face): Add use_box_color_for_shadows_p.
3935         * xterm.c (x_draw_box_rect): New.
3936         (x_draw_glyph_string_box): Renamed from
3937         x_draw_glyph_string_relief.  Call x_draw_box_rect.
3939         * xfns.c (QCrelief): New.
3940         (syms_of_xfns): Initialize it.
3942         * dispextern.h (struct glyph): Rename left_shadow_p to
3943         left_box_line_p, right_shadow_p to right_box_line_p.
3944         (MAX_RELIEF_THICKNESS): Removed.
3945         (struct it): Rename members having `relief' in their names
3946         to contain `box' instead.
3948         * xfaces.c (realize_x_face): Handle new box attribute values.
3949         (QCrelief, Qbox): Removed.
3950         (QCshadow, QCcolor, Qraised, Qsunken): New.
3951         (syms_of_xfaces): Initialize new symbols.
3953 1999-03-02  Gerd Moellmann  <gerd@gnu.org>
3955         * dispextern.h (LFACE_RELIEF_INDEX): Removed.
3957         * xfaces.c (LFACE_RELIEF): Removed.
3958         (merge_face_vector_with_property): Remove handling of `:relief'.
3959         (Finternal_set_lisp_face_attribute): Ditto.
3960         (Finternal_set_lisp_face_attribute_from_resource): Ditto.
3961         (Finternal_get_lisp_face_attribute): Ditto.
3962         (realize_default_face): Ditto.
3963         (lface_hash): Don't compute hash from relief.
3965         * dispextern.h (struct face): Replace member `relief' by
3966         `box_line_width'.  Add member `box'.
3967         (face_box_type): New.
3969         * xterm.c (x_produce_glyphs): If face has overline, add overline
3970         thickness + 1 to ascent.
3972 1999-03-01  Gerd Moellmann  <gerd@gnu.org>
3974         * xterm.c (x_draw_glyph_string): Draw underline, overline,
3975         strike-through, and boxes.
3976         (x_draw_glyph_string_underline): Removed.
3978         * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
3979         (Qoverline, Qstrike_through, Qbox): New.
3980         (syms_of_xfaces): Define these symbols.
3981         (check_lface_attrs): Add checks for overline, strike-through,
3982         and box.
3983         (Finternal_set_lisp_face_attribute): Set new attributes.
3984         (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
3985         (load_color): Handle new attributes.
3986         (realize_x_face): Ditto.
3987         (merge_face_vector_with_property): Ditto.
3988         (free_face_colors): Ditto.
3989         (Finternal_set_lisp_face_attribute_from_resource): Ditto.
3990         (Finternal_get_lisp_face_attribute): Ditto.
3991         (Finternal_lisp_face_attribute_values): Ditto.
3993         * dispextern.h (lface_attribute_index): Add enumerators for
3994         overstrike, strike-through, and box.
3995         (struct face): Add members for overline, strike-through, and
3996         box.
3998 1999-02-17  Dave Love  <fx@gnu.org>
4000         * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
4001         s/template.h (NARROWPROTO): Define on the basis of relevant X cf
4002         files.
4004 1999-02-16  Gerd Moellmann  <gerd@gnu.org>
4006         * keyboard.c (toolbar_items): Call access_keymap with third
4007         parameter 1, so that we don't get inherited toolbar item
4008         definitions.
4010         * xdisp.c (redisplay_internal): In optimization 1, don't decrement
4011         the window end vpos when in empty first line of window.
4013 1999-02-15  Gerd Moellmann  <gerd@gnu.org>
4015         * xfaces.c (set_font_frame_param): New.
4016         (Finternal_set_lisp_face_attribute): Call it.
4018 Sun Feb 14 10:54:02 1999  Masatake Yamato  <masata-y@is.aist-nara.ac.jp>
4020         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
4021         Accept specifications of color for underline.
4023 1999-02-13  Gerd Moellmann  <gerd@gnu.org>
4025         * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
4026         `frame' is t, operate on face defaults for new frames.  If it
4027         is nil, operate on the selected frame.
4029 1999-02-12  Gerd Moellmann  <gerd@gnu.org>
4031         * dispnew.c (check_matrix_invariants): Put it in #if 0.
4032         (update_window): Put the call to check_matrix_invariants in #if 0.
4034 Sun Feb  7 09:58:49 1999  Masatake Yamato  <masata-y@is.aist-nara.ac.jp>
4036         * dispextern.h: Remove all else block of UNDERLINE_COLOR.
4037         Remove definition of UNDERLINE_COLOR.
4039 Mon Jan  4 04:43:41 1999  Masatake Yamato  <masata-y@is.aist-nara.ac.jp>
4041         * xfaces.c (free_face_colors): Free the color for underline.
4043         * xterm.c (x_draw_glyph_string_underline): Set the color for underline
4044         to the GC.
4046 Sun Jan  3 08:41:10 1999  Masatake Yamato  <masata-y@is.aist-nara.ac.jp>
4048         * dispextern.h  (UNDERLINE_COLOR): Defined.
4049         (struct face): Added two new members.
4050         underline_color, underline_defaulted_p.
4052         * xfaces.c (merge_face_vector_with_property): 
4053         (check_lface_attrs): Accept the string value for underline.
4054         (Finternal_set_lisp_face_attribute): Likewise. 
4056         * xfaces.c (load_color): Change the last argument type to enum
4057         lface_attribute_index from int. And addec code for underling coloring.
4058         (load_face_colors): Pass LFACE_*_INDEX to load_color.
4059         
4060 1999-02-12  Gerd Moellmann  <gerd@gnu.org>
4062         * xfns.c (Fx_image_header): Removed.
4064 1999-02-07  Gerd Moellmann  <gerd@gnu.org>
4066         * xterm.c: Don't include <bitmaps/gray>.
4067         (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
4069         * xfns.c (Fx_image_header): Add missing `\n\'.
4070         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
4072 1999-02-01  Gerd Moellmann  <gerd@gnu.org>
4074         * xterm.c (x_scroll_bar_create): Set background pixel from
4075         specified scroll bar color.
4076         (x_scroll_bar_set_handle): Use scroll bar foreground color.
4078         * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
4079         (x_set_scroll_bar_background): Ditto.
4081         * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
4083         * xfns.c (x_default_scroll_bar_color_parameter): New.
4084         (Fx_create_frame): Call it.
4086 1999-01-31  Gerd Moellmann  <gerd@gnu.org>
4088         * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
4089         values in x_output structure.  
4090         (Qscroll_bar_foreground, Qscroll_bar_background): New.
4091         (syms_of_xfns): Initialize these symbols.
4093         * xterm.h (struct x_output): Add scroll bar pixel colors.
4095         * xfns.c (x_frame_parms): Add entries for scroll bar colors.
4096         (x_set_scroll_bar_foreground): New.
4097         (x_set_scroll_bar_background): New.
4099         * xlwmenu.c (all_dashes_p): Removed.
4100         (size_menu_item): Call lw_separator_p.
4101         (display_menu_item): Ditto.
4102         (display_menu): Ditto.
4103         (draw_separator): New.
4104         (display_menu_item): Call it.
4105         (separator_height): New.
4106         (size_menu_item): Call it.
4108         * lwlib-Xm.c (all_dashes_p): Removed.
4109         (make_menu_in_widget): Use lw_separator_p.  Set Motif separator
4110         type.
4112         * lwlib.c (lw_separator_p): New.
4114         * lwlib.h (enum menu_separator): New.
4116 1999-01-12  Gerd Moellmann  <gerd@gnu.org>
4118         * xdisp.c (handle_single_display_prop): New.
4119         (handle_display_prop): Call it.
4120         (handle_raise_prop): Removed.
4121         (handle_height_prop): Removed.
4122         (handle_space_width_prop): Removed.
4123         (handle_face_prop): Remove handling of raised text.
4124         (handle_display_prop): Do it here.
4126         * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
4127         (RAISE_PROP_IDX): Removed.
4128         (HEIGHT_PROP_IDX): Removed.
4129         (SPACE_WIDTH_PROP_IDX): Removed.
4131         * xdisp.c (Qdisplay): Replaces Qglyph.
4132         (handle_display_prop): Formerly handle_glyph_prop.
4134 1999-01-11  Gerd Moellmann  <gerd@gnu.org>
4136         * xdisp.c (reseat_to_string): Set position in display vector to -1.
4137         (handle_stop): Set position in display vector to -1.  Don't
4138         check overlay strings when set up to deliver characters from a
4139         display vector.
4140         (set_iterator_to_next): At the end of a run of characters from a
4141         display vector, check whether the display vector display replaces
4142         the display of a character.
4144 1999-01-05  Gerd Moellmann  <gerd@gnu.org>
4146         * xfaces.c (init_frame_faces): Don't realize faces if frame's
4147         X window hasn't been created yet.
4149 1998-12-06  Gerd Moellmann  <gerd@gnu.org>
4151         * sound.c: New.
4153 1998-12-04  Gerd Moellmann  <gerd@gnu.org>
4155         * config.in (HAVE_SOUND): New.
4157         * emacs.c (main): Call syms_of_sound and init_sound.
4159         * Makefile.in (obj): Add sound.o.
4161         * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
4163         * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
4164         (HAVE_SYS_SOUNDCARD_H): New.
4166 1998-12-03  Gerd Moellmann  <gerd@gnu.org>
4168         * buffer.h (struct buffer): indicate_empty_lines renamed from
4169         indicate_zv_lines.
4171         * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
4172         (default-indicate-zv-lines): Likewise.
4174         * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
4175         to indicate_empty_line_p.
4177         * xdisp.c (reseat_at_next_visible_line_start): Reset method
4178         to next_element_from_buffer.
4180         * frame.c (make_frame): Set n_current_toolbar_items to 0.
4182         * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
4183         and `N-'.
4185         * xfns.c (xbm_scan): New.
4186         (xbm_read_hexint): Removed.
4187         (xbm_read_bitmap_file_data): Use xbm_scan.
4189         * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
4191 1998-12-02  Gerd Moellmann  <gerd@gnu.org>
4193         * xfns.c (xbm_read_hexint): New.
4194         (xbm_read_bitmap_file_data): New.
4195         (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
4196         instead of XReadBitmapFileData.
4198         * xdisp.c (handle_raise_prop): Compute voffset from current font.
4200         * xfaces.c (face_with_height): New.
4202         * xdisp.c (eval_handler): Renamed from eval_mode_handler.
4203         (eval_form): Renamed from eval_mode_element.
4204         (handle_face_prop): Use it.
4205         (Qheight): Replaces Qsmaller.
4206         (handle_height_prop): Replaces handle_smaller_prop.
4207         (handle_face_prop): If iterator's font_height is not an 
4208         integer, evaluate it to get the font height to use.
4210         * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
4211         (struct it): Use `font_height' instead of `smaller'.
4213 1998-12-01  Gerd Moellmann  <gerd@gnu.org>
4215         * xdisp.c (reseat_1): New.
4216         (reseat): Call it.
4217         (move_it_vertically_backward): Ditto.
4218         (redisplay_window): Don't abort when cursor not found in recenter.
4220 1998-11-30  Gerd Moellmann  <gerd@gnu.org>
4222         * xdisp.c (reseat_at_next_visible_line_start): When not
4223         currently delivering display elements from the current buffer,
4224         restore buffer position first.
4225         (init_from_display_pos): Don't set IT's position from the
4226         position passed to this function.
4228 1998-11-28  Gerd Moellmann  <gerd@gnu.org>
4230         * config.in (PROTO): Removed.
4232         * xterm.h: Change PROTO to P_.
4234 1998-11-26  Gerd Moellmann  <gerd@gnu.org>
4236         * xterm.c (take_vertical_position_into_account): New.
4237         (x_produce_image_glyph): Call it.
4238         (x_produce_stretch_glyph): Ditto.
4239         (x_produce_glyphs): Ditto.
4240         (x_fill_glyph_string): Adjust base line for glyph's voffset.
4241         (x_fill_composite_glyph_string): Ditto.
4242         (x_fill_image_glyph_string): Ditto.
4243         (x_fill_stretch_glyph_string): Ditto.
4245         * xdisp.c (display_line): Always compute row height from
4246         max_ascent and max_descent.
4248         * dispextern.h (struct glyph): Add voffset.
4249         (struct it): Replace height by descent, max_height by max_descent.
4251         * xterm.c (x_append_glyph): Set voffset
4252         (x_append_stretch_glyph): Ditto.
4253         (x_produce_image_glyph): Ditto.
4254         (x_produce_glyphs): Take voffset into account.
4255         (x_produce_image_glyph): Ditto.
4256         (x_produce_stretch_glyph): Ditto.
4258         * dispextern.h (struct it): Add voffset.
4259         * xdisp.c (push_it): Save voffset.
4260         (pop_it): Restore it.
4262         * xdisp.c (it_props): Add entry for `raise'.
4263         (handle_raise_prop): New.
4265         * dispextern.h (RAISE_PROP_IDX): New.
4267         * xdisp.c (Qraise): New.
4268         (syms_of_xdisp): Define Qraised.
4270         * xterm.c (x_scroll_bar_move): Clear to the left and right
4271         of toolkit scroll bars differently.
4272         (x_scroll_bar_move): Removed.
4273         (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
4275         * dispextern.h: Make it compilable --with-x=no.
4276         * alloc.c: Ditto.
4277         * emacs.c: Ditto.
4278         * dispnew.c: Ditto.
4279         * keyboard.c: Ditto.
4280         * term.c: Ditto.
4281         * xdisp.c: Ditto.
4282         * xfaces.c: Ditto.
4283         * xfns.c: Ditto.
4284         * xmenu.c: Ditto.
4286 1998-11-25  Gerd Moellmann  <gerd@gnu.org>
4288         * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
4290 1998-11-24  Gerd Moellmann  <gerd@gnu.org>
4292         * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
4293         update slider size, only.
4294         (xm_scroll_callback): Set dragging member of the scroll bar.
4295         (xt_action_hook): Reset last_scroll_bar_part.
4296         (XTredeem_scroll_bar): Reset bar->dragging to nil.
4298         * xlwmenu.c (abort_gracefully): New.
4299         (display_menu): Use it instead of abort.
4300         (size_menu): Ditto.
4302         * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
4303         window on newly created frames that don't have one.
4305 1998-11-23  Gerd Moellmann  <gerd@gnu.org>
4307         * xdisp.c (restore_overlay_strings): Removed.
4308         (restore_dpvec): Removed.
4309         (init_from_display_pos): Inline both functions above.
4311         * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
4312         (parse_image_spec): Handle it.
4313         (xbm_format): Use it.
4314         (xpm_format): Ditto.
4315         (pbm_format): Ditto.
4316         (jpeg_format): Ditto.
4317         (tiff_format): Ditto.
4318         (gif_format): Ditto.
4319         (gs_format): Ditto.
4321         * xdisp.c (set_window_cursor): Removed.
4322         (redisplay_internal): Case cursor motion in cursor line of
4323         selected window; use set_cursor_from_row.
4325 1998-11-22  Gerd Moellmann  <gerd@gnu.org>
4327         * widget.c (EmacsFrameSetCharSize): Take widget's border width
4328         into account.
4330 1998-11-21  Gerd Moellmann  <gerd@gnu.org>
4332         * xterm.c (expose_frame): Redraw menu bar window.
4334         * xdisp.c (display_menu_bar): Record hpos instead of x-position
4335         in menu item.
4337         * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
4338         of FRAME_TOOLBAR_LINES.  Use `f' instead of `frame'.
4340         * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
4341         to determine vertical_scroll_bar_extra.
4342         (EmacsFrameSetCharSize): Ditto.
4343         * xfns.c (x_figure_window_size): Ditto.
4345         * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
4346         (x_draw_bitmap): Ditto.
4348         * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
4349         * xfaces.c (realize_basic_faces): Realize it.
4351 1998-11-20  Gerd Moellmann  <gerd@gnu.org>
4353         * xmenu.c (xmenu_show): Add workaround for remaining button grab
4354         under LessTif   Use the widget of the frame as parent for the 
4355         menu, again.
4357 1998-11-19  Gerd Moellmann  <gerd@gnu.org>
4359         * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
4360         When EnterNotify, don't generate a mouse movement event if
4361         notification is from a busy-cursor child window.
4363         * xterm.h (struct x_output): Add busy_window, remove cursor.
4365         * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
4366         Use a transparent window to display the busy-cursor.
4367         (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
4369 1998-11-17  Gerd Moellmann  <gerd@gnu.org>
4371         * xdisp.c (check_window_end): New, for debugging.
4372         (CHECK_WINDOW_END): New.
4373         (try_window_id): Use it.
4375         * xterm.c (process_expose_from_menu): Return int.
4377         * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
4378         TOOLBAR_EVENT events in last_nonmenu_event.
4380 1998-11-16  Gerd Moellmann  <gerd@gnu.org>
4382         * xdisp.c (redisplay_window): If windows_or_buffers_changed,
4383         window end isn't reliable, so set window_end_valid to nil.
4384         (redisplay_internal): If overlay arrow has changed, set
4385         windows_or_buffers_changed to redisplay thoroughly.
4387         * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
4388         necessary.
4390         * xfns.c (file_dialog_cb): New.
4391         (Fx_file_dialog): New.
4392         * fileio.c (Fread_file_name): Call it.
4394         * xrdb.c (x_load_resources): Add default resoures for file 
4395         selection dialog.
4397 1998-11-14  Gerd Moellmann  <gerd@gnu.org>
4399         * xterm.c (note_mouse_highlight): Don't highlight when popup
4400         is active.
4402         * xlwmenu.c (xlwMenuResources): Change previously unused 
4403         XtNmargin to 4.
4404         (size_menu): Take margin into account.
4405         (display_menu_item): Ditto.
4406         (remap_menubar): Ditto.
4407         (draw_arrow): Draw it 3D.
4409         * keyboard.c (timer_check): Inhibit busy cursor around calls to
4410         timer-event-handler.  This busy cursor tends to be anoying if
4411         fontifying stealthily.
4413         * dispnew.c (direct_output_for_insert): Give up if current row
4414         contains trailing whitespace.
4416 1998-11-13  Gerd Moellmann  <gerd@gnu.org>
4418         * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
4420         * xdisp.c (handle_fontified_prop): New.
4421         (Vfontification_functions): New.
4422         (Qfontification_functions): New.
4423         (it_props): Add handle_fontified_prop.
4425 1998-11-12  Gerd Moellmann  <gerd@gnu.org>
4427         * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
4428         Otherwise, under LessTif, after the popup has gone, all button
4429         press events come in for the frame's widget, and release events
4430         come in for the edit_widget.
4431         * xterm.c (XTread_socket): Remove workaround for that problem.
4432         (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
4433         XmScrollBarSetValues.
4434         (SET_SAVED_MENU_EVENT): Give it statement form.
4436         * lwlib-Xm.c (make_menu_in_widget): Set alignment of menu
4437         title after all widgets have been created.
4439         * xfaces.c (display_message): If waiting_for_input, don't display
4440         the message.
4442         * window.c (scroll_command): If not acting on current_buffer,
4443         make redisplay consider all windows.
4445         * xfns.c (Fx_hide_tip): Return t if tooltip was open.
4447         * xdisp.c (handle_glyph_prop): Set it->object for images to
4448         the object having the glyph property.
4450         * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
4451         invisible.
4453 1998-11-11  Gerd Moellmann  <gerd@gnu.org>
4455         * xterm.h (struct x_display_info): Add gray pixmap.  * xterm.c
4456         (x_term_init): Create the gray pixmap.
4457         (x_setup_relief_color): Use it.
4458         (x_get_glyph_string_clip_rect): Draw a toolbar window over the
4459         internal border at the top of a frame.
4460         (x_init_glyph_string): Likewise.
4461         (x_draw_glyph_string_relief): Correct right x by 1 pixel for 
4462         full-width lines.
4463         (XTflash): Don't flash the toolbar window.
4465         * xterm.c (XTread_socket): Workaround for LessTif popup menus
4466         in case of ButtonPress events.
4468 1998-11-10  Gerd Moellmann  <gerd@gnu.org>
4470         * xrdb.c (x_load_resources): Add grey background colors as
4471         defaults for menus, scroll bars, and dialogs.
4473         * insdel.c (prepare_to_modify_buffer): Move setting
4474         windows_or_buffers_changed from modify_region here.
4476         * xfns.c (Fx_show_tip): Inhibit redisplay.
4477         (Fx_hide_tip): Ditto.
4478         (Fx_image_header): New.
4480 1998-11-09  Gerd Moellmann  <gerd@gnu.org>
4482         * dispnew.c (clear_window_matrices): Set window_end_valid to nil
4483         when clearing current window matrices.
4485 1998-11-08  Gerd Moellmann  <gerd@gnu.org>
4487         * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
4488         position from a string position.  Use the right end position
4489         if the property spans a whole overlay string.
4491 1998-11-07  Gerd Moellmann  <gerd@gnu.org>
4493         * xmenu.c (menubar_selection_callback): Remove workaround for
4494         Lesstif not calling XmNpopdownCallback because it doesn't
4495         handle the case where users don't select any menu item.
4497         * xlwmenu.c (toggle_button_width): Renamed from
4498         toggle_or_radio_button_width.
4499         (radio_button_width): New.
4500         (size_menu_item): Use new functions.
4501         (draw_shadow_rhombus): New.
4502         (draw_radio): Use radio_button_width and draw_shadow_rhombus.
4503         (draw_toggle): Use toggle_button_width.
4505         * insdel.c (modify_region): Set windows_or_buffers_changed.
4507         * buffer.c (set_buffer_internal): Don't set
4508         windows_or_buffers_changed.
4510         * lwlib-Xm.c (xm_update_toggle): Add callback xm_generic_callback
4511         instead of xm_internal_update_other_instances.
4513         * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
4515         * lwlib-Xm.c (make_menu_in_widget): Do help button before managing
4516         children to get it to the right place.
4517         (make_menu_in_widget): Create toggle buttons.
4518         (update_one_menu_entry): Update toggle buttons.
4520         * xmenu.c (menubar_selection_callback): Add workaround for
4521         Lesstif not calling XmNpopdownCallback.
4523         * xdisp.c (eval_mode_element): New.
4524         (eval_mode_handler): New.
4525         (display_mode_element): Use eval_mode_element.
4527         * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
4528         Remove code looking at text props of default value.
4530         * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
4532         * xlwmenu.c (size_menu_item): Add parameter button_width.
4533         (size_menu): Compute button_width.
4534         (toggle_or_radio_button_width): New.
4535         (draw_toggle): New.
4536         (draw_radio): New.
4537         (draw_shadow_rectangle): Add parameter `down_p'.
4539         * xlwmenuP.h (_window_state): Add button_width.
4541 1998-11-06  Gerd Moellmann  <gerd@gnu.org>
4543         * xmenu.c (single_submenu): Set button_type of menu to 
4544         BUTTON_TYPE_NONE.
4545         (single_submenu): Likewise for panes and menu items.
4546         (set_frame_menubar): Set button_type of menu bar to none.
4547         (xmenu_show): Likewise.
4548         (single_submenu): Set widget values selected slot.
4549         (xmenu_show): Likewise.
4551         * lwlib.c (merge_widget_value): Handle button_type.
4552         (copy_widget_value_tree): Copy button_type.
4554         * lwlib.h (enum button_type): New.
4555         (_widget_value): New member button_type.
4557         * xmenu.c (push_menu_item): Add parameters `type' and
4558         `selected'. Store it in menu_items.
4559         (MENU_ITEMS_ITEM_TYPE): New.
4560         (MENU_ITEMS_ITEM_SELECTED): New.
4561         (MENU_ITEMS_ITEM_LENGTH): Increase by two.
4563         * xfns.c (clear_image_cache): Get the current time, before
4564         doing anything.
4565         (cache_image): Set prev pointer of next image.
4566         (clear_image_cache): Clear current matrices if any image was
4567         freed.
4569         * xterm.c (XTread_socket): Set inhibit_busy_cursor.
4571         * xfns.c (x_set_cursor): New.
4572         (Fx_display_busy_cursor): New.
4573         (Fx_undisplay_busy_cursor): New.
4575         * xterm.h (struct x_output): Add busy_cursor.
4577         * xfns.c (Vx_busy_pointer_shape): New.
4578         (x_set_mouse_color): Create busy cursor.
4580         * process.c (wait_reading_process_input): Show and hide busy
4581         cursor.
4583         * keyboard.c (command_loop_1): Display busy cursor.
4585         * eval.c (Fsignal): Hide busy cursor.
4587         * buffer.c (set_buffer_internal): Don't set
4588         windows_or_buffers_changed.
4590         * xterm.c (redo_mouse_highlight): New.
4592 1998-11-04  Gerd Moellmann  <gerd@gnu.org>
4594         * lwlib-Xm.c (make_menu_in_widget): Test for menubar widgets
4595         using XmNrowColumnType.
4597         * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
4598         (x_build_heuritic_mask): New.
4599         (lookup_image): Call it.
4601         * xterm.c (note_toolbar_highlight): Always set up help_echo.
4602         (previous_help_echo): New.
4603         (XTread_socket): Generate help event with nil message when
4604         leaving a region with help-echo.
4605         (note_mouse_highlight): Handle `help-echo' over text.
4606         (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
4607         CirculateRequest.
4608         (clear_mouse_face): Don't clear if tooltip is shown.
4609         (XTread_socket): Redo mouse-highlight after tooltip is gone.
4610         Avoid SET_FRAME_GARBAGED when tooltip is mapped.
4612         * keyboard.c (Vshow_help_function): New.
4613         (read_char): Use it.
4615 1998-11-03  Gerd Moellmann  <gerd@gnu.org>
4617         * xfns.c (x_create_tip_frame): New.
4618         (Fx_show_tip): New.
4619         (Fx_hide_tip): New.
4621         * xterm.c (x_destroy_window): Handle case that we don't have 
4622         a widget.
4624         * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
4625         to full_width_p.  Add internal_border_p.
4627 1998-11-02  Gerd Moellmann  <gerd@gnu.org>
4629         * xterm.c (note_mode_line_highlight): Check the charpos of
4630         the glyph under the mouse pointer before accessing text
4631         properties at that position.
4633 1998-11-01  Gerd Moellmann  <gerd@gnu.org>
4635         * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
4637         * xdisp.c (auto-raise-toolbar-buttons): New.
4638         (build_desired_toolbar_string): Handle the flag.
4639         (toolbar-button-margin): New.
4640         (toolbar-button-relief): New.
4641         (build_desired_toolbar_string): Use margin and relief.
4643         * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
4644         for FreeBSD.
4645         (note_mode_line_highlight): New.
4646         (note_mouse_highlight): Call it.
4648 1998-10-31  Gerd Moellmann  <gerd@gnu.org>
4650         * s/freebsd.h (NARROWPROTO): New.
4652         * xdisp.c (display_string): New parameter face_string.
4653         (display_mode_element): When displaying a symbol with a string
4654         value, use text properties from the symbol's default value, maybe.
4656         * xrdb.c (x_load_resources): Add font defaults for menus and
4657         dialogs.
4659 1998-10-30  Gerd Moellmann  <gerd@gnu.org>
4661         * xfns.c (Fx_create_frame): Try 12pt Courier font first.
4663 1998-10-29  Gerd Moellmann  <gerd@gnu.org>
4665         * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
4666         produced for characters with codes < 32 under certain
4667         circumstances.
4669         * xdisp.c (redisplay_window): Handle values of PT in front
4670         of invisible, intangible text.
4671         (try_window_id): Set overlay_arrow_seen to zero before 
4672         displaying lines.
4673         (display_mode_element): Assign to glyphs written for a mode
4674         line spec `%x' as object the Lisp format string, as position
4675         the position of the `%' in that string.
4676         (display_string): If displaying a C string, optionally get
4677         the face to use from a Lisp string.
4679         * xterm.c (expose_window_tree): Include mode line height.
4681         * xfns.c (Fx_create_frame): Add toolbar height to frame height.
4683 1998-10-27  Gerd Moellmann  <gerd@gnu.org>
4685         * xterm.c (note_mouse_highlight): Change mouse pointer shape
4686         over mode line.
4688 1998-10-26  Gerd Moellmann  <gerd@gnu.org>
4690         * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
4692         * xdisp.c (redisplay_window): If mode line height has changed,
4693          arrange for a thorough immediate redisplay using the correct mode
4694          line height.
4695          (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
4697         * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
4698         (CURRENT_MODE_LINE_HEIGHT): New.
4699         (DESIRED_MODE_LINE_HEIGHT): New.
4701         * keyboard.c (make_lispy_event): Add string and string position
4702         info to mouse-click events.
4703         (read_key_sequence): Handle `local-map' property of mode line
4704         strings.
4706         * keyboard.h (POSN_STRING): New.
4708 1998-10-25  Gerd Moellmann  <gerd@gnu.org>
4710         * dispnew.c (mode_line_string): Mew.
4712         * xterm.c (xt_action_hook): New.
4713         (x_create_toolkit_scroll_bar): Add action hook.
4714         (xm_scroll_callback): Implement dragging.
4716         * keyboard.c (Qend_scroll): New.
4717         (scroll_bar_parts): Add it.
4719         * termhooks.h (scroll_bar_end_scroll): New.
4721         * xterm.c (XTread_socket): Bug fix.
4723 1998-10-24  Gerd Moellmann  <gerd@gnu.org>
4725         * xdisp.c (redisplay_window): Finish scroll bars after
4726         redisplaying toolbar.
4728         * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
4729         (syms_of_keyboard): Add Qbottom.
4731         * termhooks.h (scroll_bar_to_top): New.
4732         (scroll_bar_to_bottom): New.
4734         * xdisp.c (redisplay_window): Always resize toolbar window if
4735         auto_resize_toolbar_p is non-zero.
4736         (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
4737         (window_box): New.
4738         (window_box_height): New.
4739         (window_box_width): New.
4740         (window_box_left): New.
4741         (window_box_right): New.
4742         (window_box_edges): New.
4744 1998-10-23  Gerd Moellmann  <gerd@gnu.org>
4746         * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
4747         XawScrollbarSetThumb in FreeBSD.
4748         (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
4749         to true.
4751         * window.c (get_phys_cursor_glyph): Return null if cursor vpos
4752         is out of range.
4754         * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
4755         (x_term_init): Initialize it.
4757         * xterm.h (struct x_display_info): Add scroll_bar_pixel.
4759         * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
4760         cursor.
4762 1998-10-22  Gerd Moellmann  <gerd@gnu.org>
4764         * keyboard.c (make_lispy_event): Handle scroll_bar_click
4765         differently when using toolkit scroll bars.
4767         * xterm.c (x_send_scroll_bar_event): New.
4768         (x_scroll_bar_to_input_event): New.
4769         (xaw3d_scroll_callback): New.
4770         (xaw3d_jump_callback): New.
4771         (xm_scroll_callback): New.
4772         (x_toolkit_scroll_p): New.
4773         (XTread_socket): Handle scroll bar client message.
4774         (x_term_init): Initialize Xatom_Scrollbar.
4775         (x_scroll_bar_create): Set cursor.
4776         (xm_scroll_callback):
4777         (x_create_toolkit_scroll_bar): New.
4778         (x_set_toolkit_scroll_bar_thumb): New.
4779         (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
4780         (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
4782         * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
4784 1998-10-21  Gerd Moellmann  <gerd@gnu.org>
4786         * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
4787         (XTread_socket): Don't handle mouse button events for scroll bars
4788         if using toolkit scroll bars.
4789         (XTset_vertical_scroll_bar): Set thumb size and position for
4790         Athena scroll bar.
4792         * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
4794         * xterm.c (XTread_socket): Dispatch expose event to widget
4795         if using toolkit scroll bars.
4796         (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
4797         (x_scroll_bar_create): Create and show a scroll bar widget 
4798         if using toolkit scroll bars.
4799         (x_scroll_bar_move): Handle tookit scroll bars.
4801         * Makefile.in (LIBW): Use Xaw3d if present.
4803         * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
4804         (HAVE_XAW3D): New.
4805         
4806         * config.in (USE_TOOLKIT_SCROLL_BARS): New.
4807         (HAVE_XAW3D): New.
4809         * xterm.c (XTset_vertical_scroll_bar): Correct position of 
4810         right vertical scroll bar.
4812 1998-10-20  Gerd Moellmann  <gerd@gnu.org>
4814         * xfns.c (xpm_load): Support reading XPM images from string
4815         buffers containing data in the same format as an XPM file.
4816         Support `:color-symbols'.
4817         (xpm_format): Add `:data'.
4818         (xpm_keyword_index): Add XPM_DATA.
4819         (syms_of_xfns): Add `:color-symbols'.
4820         (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
4821         (xpm_valid_color_symbols_p): New.
4822         (xpm_image_p): Call it.
4824         * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
4825         attribute to the image if item is not enabled.
4827         * xfns.c (x_laplace): New.
4828         (x_laplace_read_row): New.
4829         (x_laplace_write_row): New.
4830         (lookup_image): Handle common image attributes here.  New
4831         attribute `:algorithm'.
4833         * xfaces.c (clear_face_cache): Call clear_image_cache.
4835         * xterm.c (x_inverted_image_mask): Removed.
4836         (x_draw_image_foreground_1): New.
4837         (x_draw_image_glyph_string): Draw images with mask to a temporary
4838         pixmap to reduce flickering.
4840         * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
4841         (display_toolbar_line): Remove parameter `margin'.
4843 1998-10-19  Gerd Moellmann  <gerd@gnu.org>
4845         * xdisp.c (toolbar_lines_needed): New.
4846         (auto-resize-toolbars): New.
4848         * xfns.c (cache_image): Correct call to xrealloc.
4850         * dispnew.c (Fset_toolbar_height): Removed.
4852         * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
4853         FRAME_MENU_BAR_LINES.
4855         * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
4856         instead of FRAME_MENU_BAR_LINES.
4857         (check_frame_size): Ditto.
4859         * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
4860         instead of FRAME_MENU_BAR_LINES.
4861         (adjust_frame_glyphs_for_frame_redisplay): Ditto.
4862         (build_frame_matrix): Ditto.
4863         (change_frame_size_1): Ditto.
4865         * frame.h (FRAME_TOOLBAR_LINES): New.
4866         (FRAME_TOP_MARGIN): New.
4868         * window.c (struct save_window_data): Add frame_toolbar_lines.
4869         (Fset_window_configuration): Handle toolbar lines.
4870         (Fcurrent_window_configuration): Save toolbar lines.
4872         * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
4874         * xfns.c (Fx_create_frame): Add default parameter for toolbar.
4876         * frame.h (struct frame): Rename top_margin to toolbar_lines.
4878         * xfns.c (x_frame_parms): Add `toolbar-lines'.
4879         (x_set_toolbar_lines): New.
4881         * keyboard.c (cmd_error_internal): Bug fix.
4883         * xterm.c: Remove double include of syssignal.h.
4885 1998-10-18  Gerd Moellmann  <gerd@gnu.org>
4887         * xterm.c (x_toolbar_item): New.
4888         (x_handle_toolbar_click): Use it.
4889         (note_toolbar_highlight): Use it.
4891         * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
4892         and toolbar_items_vectors.
4894         * xterm.c (help_echo): New.
4895         (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
4896         (x_set_glyph_string_gc): Handle them.
4897         (x_after_update_window_line): Don't do anything in pseudo-windows.
4898         (x_produce_image_glyph): Take image margin and face relief into
4899         account.
4900         (x_get_glyph_string_clip_rect): Handle pseudo-windows.
4901         (x_draw_glyph_string_background): Optimize case when face has
4902         relief.
4903         (x_setup_relief_color): Take frame instead of glyph string
4904         parameter.
4905         (x_draw_relief_rect): New.
4906         (x_draw_glyph_string_relief): Call it.
4907         (x_draw_image_glyph_string_foreground): Handle margin and image
4908         relief.
4909         (x_draw_image_glyph_string_background): Ditto.
4910         (expose_frame): Redraw toolbar window.
4911         (expose_window): Don't draw cursor for pseudo-windows.
4912         (x_y_to_hpos_vpos): Handle pseudo-windows.
4913         (frame_to_window_pixel_xy): New.
4914         (note_mouse_highlight): Call note_toolbar_highlight.
4915         (x_handle_toolbar_click): New.
4916         (note_toolbar_highlight): New.
4917         (show_mouse_face): Change int parameter `hl' to parameter of
4918         type enum draw_glyphs_face.  Handle image highlighting.
4919         (XTread_socket): Return a HELP_EVENT input event if help_echo is
4920         non-nil.  Use x_handle_toolbar_click.
4922         * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
4924         * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
4925         IMAGE_BOOL_VALUE.
4926         (parse_image_spec): Handle them.
4927         (image_spec_value): Additional parameter found.
4928         (free_image): Remove image from the vector `images' of the 
4929         image cache.
4930         (clear_image_cache): Additional parameter force_p.
4931         (Fclear_image_cache): New.
4932         (x_find_image_file): New.
4933         (xbm_load): Handle `:margin' and `:relief'.  Use
4934         x_find_image_file.
4935         (xpm_load): Likewise.
4936         (pbm_load): Likewise.
4937         (jpeg_load): Likewise.
4938         (tiff_load): Likewise.
4939         (gif_load): Likewise.
4941         * keyboard.c (Qhelp_echo): New symbol.
4942         (read_char): Handle `toolbar' and `help_echo' events.
4943         (kbd_buffer_get_event): Handle HELP_ECHO input event.
4944         (make_lispy_event): Handle TOOLBAR_EVENT.
4945         (toolbar_items): New.
4946         (process_toolbar_item): New.
4947         (PROP): New.
4948         (init_toolbar_items): New.
4949         (append_toolbar_item): New.
4950         (read_char_x_menu_prompt): Handle `toolbar' event.
4951         (read_key_sequence): Ditto.
4953         * xfaces.c (Qtoolbar): New.
4954         (realize_basic_faces): Realize `toolbar' face.
4955         (face_at_string_position): Remove parameter modeline_p, add
4956         base_face_id.
4958         * xfns.c (xbm_load_image_from_file): Don't use Xmu function
4959         to read data.
4961 1998-10-17  Gerd Moellmann  <gerd@gnu.org>
4963         * xdisp.c (init_iterator): Replace parameter modeline_p with
4964         base_face_id.
4965         (next_element_from_string): Call get_next_display_element
4966         recursively after handling text properties.
4967         (prepare_menu_bars): Call update_toolbar.
4968         (update_toolbar): New.
4969         (build_desired_toolbar_string): New.
4970         (display_toolbar_line): New.
4971         (redisplay_toolbar): New.
4972         (toolbar_item_info): New.
4973         (redisplay_window): Call redisplay_toolbar.
4974         (Fdump_toolbar_row): New.  Defined if compiled with GLYPH_DEBUG.
4976         * dispnew.c (clear_current_matrices): Clear matrices of toolbar
4977         window.
4978         (clear_desired_matrices): Ditto.
4979         (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
4980         (free_glyphs): Free matrices of toolbar window.
4981         (update_frame): Update toolbar window.
4982         (change_frame_size_1): Take toolbar into account.
4983         (Fset_toolbar_height): New.
4985         * dispextern.h (struct it): Remove member modeline_p, add
4986         base_face_id.
4987         (struct image): Add members relief and margin.
4988         (IMAGE_ASCENT): Include margin in height.
4990 1998-10-14  Gerd Moellmann  <gerd@gnu.org>
4992         * xfns.c (Fclear_image_cache): New.
4994         * xfaces.c (realize_basic_faces): Realize toolbar face.
4995         (face_at_string_position): Remove parameter modeline_p, add
4996         base_face_id.
4998         * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
5000 1998-10-13  Gerd Moellmann  <gerd@gnu.org>
5002         * keyboard.c (syms_of_keyboard): Intern `:help'.
5004 1998-10-12  Gerd Moellmann  <gerd@gnu.org>
5006         * xterm.c (note_toolbar_highlight): New.
5007         (note_mouse_highlight): Call it.
5009         * window.c (window_from_coordinates): Additional parameter toolbar_p.
5010         (coordinates_in_window): Handle toolbar window.
5012         * keyboard.c (toolbar_items): New.
5013         (process_toolbar_item): New.
5014         (parse_toolbar_item): New.
5015         (init_toolbar_items): New.
5016         (append_toolbar_item): New.
5018         * dispextern.h (enum toolbar_item_idx): New.
5019         (enum toolbar_item_image): New.
5021         * frame.h (struct frame): Add toolbar-related members.
5023         * xfaces.c (face_at_string_position): Remove assertion that
5024         current_buffer == window's buffer.  This is not the case when
5025         called for the toolbar window.
5027         * frame.c (make_frame): Initialize toolbar members.
5029         * alloc.c (mark_object): Mark toolbar data of frames.
5031         * frame.h (struct frame): Add toolbar-related members
5032         toolbar_window, desired_toolbar_items, current_toolbar_items,
5033         desired_toolbar_string, current_toolbar_string,
5034         n_desired_toolbar_items, n_current_toolbar_items.  Add
5035         window_height.
5037         * xterm.c (x_after_update_window_line): Don't draw bitmap
5038         areas for pseudo-windows.
5039         (expose_frame): Handle toolbar window.
5040         (expose_window): Don't do cursor stuff for pseudo-windows.
5042         * xdisp.c (display_menu_bar): Correct calls to init_iterator.
5044 1998-10-11  Gerd Moellmann  <gerd@gnu.org>
5046         * frame.c (make_frame): Initialize toolbar_window.
5048         * alloc.c (mark_object): Make the toolbar window.
5050         * dispnew.c (update_frame): Update frame's toolbar_window.
5051         (clear_current_matrices): Likewise.
5052         (clear_desired_matrices): Likewise.
5053         (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
5054         (free_glyphs): Free the toolbar window and its matrices.
5056         * frame.h (struct frame): Add toolbar_window.
5058         * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
5059         with relief.
5061 1998-10-10  Gerd Moellmann  <gerd@gnu.org>
5063         * dispnew.c (buffer_posn_from_coords): Don't screw up if 
5064         window start is not in the range BEGV..ZV.
5066 1998-10-09  Gerd Moellmann  <gerd@gnu.org>
5068         * xdisp.c (try_scrolling): Experimentally handle the case
5069         that scroll-preserve-screen-position is set to `always'.
5071         * window.c (Vscroll_preserve_screen_position): Replacement for
5072         scroll_preserve_screen_position.
5074 1998-10-08  Gerd Moellmann  <gerd@gnu.org>
5076         * dispnew.c: Don't initialize auto structs; the HP/UX compiler
5077         doesn't like it.
5078         * xdisp.c: Ditto.
5080         * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
5082 1998-10-06  Gerd Moellmann  <gerd@gnu.org>
5084         * minibuf.c (Fminibuffer_complete_word): Fix computation of 
5085         i_byte when prompts are inserted into minibuffers.
5087         * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
5088         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
5089         (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
5091 1998-10-04  Gerd Moellmann  <gerd@gnu.org>
5093         * xdisp.c (make_cursor_line_fully_visible): New.
5094         (try_scrolling): New.
5095         (redisplay_window): Move scrolling code to try_scrolling.
5096         (make_cursor_line_fully_visible): Handle case of window too small
5097         to show a single line.
5098         (redisplay_window): Case forced window start---use
5099         make_cursor_line_fully_visible.
5100         (redisplay_window): Case cursor movement via current matrix.
5101         If ending up on a partially visible line, make it fully visible
5102         instead of recentering.
5103         (try_scrolling): Additional parameter scroll_smoothly.
5105         * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
5107 1998-09-28  Gerd Moellmann  <gerd@gnu.org>
5109         * window.c (window_scroll_pixel_based): Bug fix: vpos used
5110         instead of y-position for scroll-preserved-screen-position.
5112 1998-09-07  Gerd Moellmann  <gerd@gnu.org>
5114         * dispnew.c (update_frame_line): If current row is not enabled,
5115         write the whole line.
5117 1998-09-06  Gerd Moellmann  <gerd@gnu.org>
5119         * lisp.h (HAVE_FACES): Removed.
5121         * dispextern.h (HAVE_FACES): Removed.
5123         * config.in (HAVE_FACES): Removed.
5125         * dispnew.c (HAVE_FACES): Removed.
5127         * xdisp.c (HAVE_FACES): Removed.
5129         * xfaces.c (HAVE_FACES): Removed.
5131 1998-09-05  Gerd Moellmann  <gerd@gnu.org>
5133         * xdisp.c (init_iterator): If face_change_count is non-zero,
5134         free realized faces.
5136         * xfaces.c (free_all_realized_faces): Make it externally visible.
5137         (Finternal_set_lisp_face_attribute): Increment
5138         windows_or_buffers_changed.
5140         * dispnew.c (direct_output_for_insert): Give up if
5141         face_change_count is non-zero.
5142         (direct_output_forward_char): Ditto.
5144         * xfaces.c (face_change_count): New.
5146 1998-09-04  Gerd Moellmann  <gerd@gnu.org>
5148         * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
5149         of range.
5151 1998-09-03  Gerd Moellmann  <gerd@gnu.org>
5153         * term.c (Ftty_display_color_p): New.
5155 1998-09-02  Gerd Moellmann  <gerd@gnu.org>
5157         * xfaces.c (Ftty_defined_colors): New.
5159         * xterm.c (x_produce_glyphs): Fix computation of
5160         contains_overlapping_glyphs_p for ASCII.
5162         * dispnew.c (Fshow_cursor): Don't change cursor state while
5163         redisplaying.
5164         (direct_output_for_insert): If a glyph with lbearing or rbearing
5165         is among the new glyphs, set row flag contains_overlapping_glyph_p.
5167 1998-09-01  Gerd Moellmann  <gerd@gnu.org>
5169         * term.c (OUTPUT_IF): Make replacement text have statement form.
5170         (OUTPUT1_IF): Ditto.
5171         (TS_italic_mode, TS_end_italic_mode): Removed.
5172         (TS_bold_mode): Removed.
5173         (TS_underscore_mode, TS_end_underscore_mode): Removed.
5174         (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
5175         (TS_enter_reverse_mode): New.
5176         (TS_enter_underline_mode, TS_exit_underline_mode): New.
5177         (TN_magic_cookie_glitch_ul): New.
5178         (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
5179         (TS_exit_attribute_mode): New.
5180         (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
5181         (TS_set_foreground, TS_set_background): New.
5182         (reset_terminal_modes): Switch colors back to default.
5183         (write_glyphs): Turn face on before writing text, turn it off
5184         afterwards.
5185         (insert_glyphs): Ditto.
5186         (term_init): Initialize new terminal capability variables.
5187         (turn_on_face): Turn a face on.
5188         (turn_off_face): Turn a face off.
5190         * lisp.h (MAKE_GLYPH): Remove test for frame type.
5191         (GLYPH_CHAR): Ditto.
5192         (GLYPH_FACE): Ditto.
5194         * xfaces.c (Vface_tty_color_alist): New.
5195         (face-register-tty-color): New.
5196         (face-clear-tty-colors): New.
5198         * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
5199         (struct it): Remove member faces_p since we now always have faces.
5201 1998-08-31  Gerd Moellmann  <gerd@gnu.org>
5203         * dispextern.h (struct face): Add tty appearance flags.
5205         * xdisp.c (init_iterator): Always handle faces.
5206         (extend_face_to_end_of_line): Handle tty frames.
5208         * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
5209         passed in.
5211 1998-08-30  Gerd Moellmann  <gerd@gnu.org>
5213         * xfaces.c (realize_default_face): Use empty strings to indicate
5214         that the face should use the default foreground/background
5215         color of the terminal.  Fill font-related attributes with 
5216         appropriate values for tty frames.
5218         * emacs.c (main): Call syms_of_xfaces before init_window_once.
5220         * xfaces.c (realize_default_face): If face `default' is not
5221         yet known, create it.
5223         * frame.c (make_terminal_frame): Call init_frame_faces
5224         unconditionally.
5226         * xfaces.c (init_frame_faces): Make it work for tty frames.
5227         (free_frame_faces): Ditto.
5228         (clear_face_cache): Ditto.
5229         (recompute_basic_faces): Ditto.
5230         (Fframe_face_alist): Ditto.
5231         (free_realized_face): Ditto.
5232         (prepare_face_for_display): Ditto.
5233         (clear_face_gcs): Ditto.
5234         (lookup_face): Ditto.
5235         (smaller_face): Ditto.
5236         (realize_default_face): Ditto.
5237         (realize_face): Ditto.
5238         (realize_face): Dispatch to functions depending on the frame type.
5239         (realize_x_face): X way of realizing faces.
5240         (realize_tty_face): TTY way of realizing faces.
5242 1998-08-29  Gerd Moellmann  <gerd@gnu.org>
5244         * xfaces.c (realize_face): Remove parameter unibyte_registry,
5245         compute it instead.
5246         (lookup_face): Remove local variable unibyte_registry.
5248 1998-08-22  Gerd Moellmann  <gerd@gnu.org>
5250         * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
5251         1 pixel longer.
5253         * xdisp.c (face_before_or_after_it_pos): Fix computation 
5254         of face in buffer.
5256         * editfns.c (make_buffer_string_both): If prompt in buffer,
5257         prevent start > end.
5259         * indent.c (Fvertical_motion): Set current_buffer to window's
5260         buffer if it isn't already.
5262 1998-08-21  Gerd Moellmann  <gerd@gnu.org>
5264         * dispextern.h (GLYPH_DEBUG): Use default 0.
5266         * xdisp.c (it_props): New member `smaller'.
5267         (init_iterator): Initialize it.
5268         (Qsmaller): New.
5269         (push_it): Save value of `smaller' value on the stack.
5270         (pop_it): Restore `smaller' from the stack.
5271         (handle_smaller_prop): New.
5272         (handle_face_prop): Use `smaller' text property to select a
5273         suitable face.
5275         * dispextern.h (SMALLER_PROP_IDX): New.
5276         (struct it): Add member `smaller'.
5278         * xfaces.c (smaller_face): New.
5280         * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
5282         * dispnew.c (allocate_matrices_for_window_redisplay): Compute
5283         total pixel width of window differently.
5285         * xdisp.c (init_iterator): Compute width of mode line differently.
5287         * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
5288         of bitmap areas.
5290         * window.c (Fsplit_window): Include width of bitmap areas in
5291         window width.
5292         (window_internal_width): Subtract width of bitmap areas from
5293         total width.
5295 1998-08-18  Gerd Moellmann  <gerd@gnu.org>
5297         * xdisp.c: Functions reordered for better readability.
5299         * dispnew.c (update_text_area): Handle glyphs with arbitrary
5300         lbearing.
5301         (update_window_tree): Parameter no_scrolling_p removed.
5302         (update_single_window): Ditto.
5304         * xterm.c (x_get_char_font_and_encoding): Renamed to
5305         x_get_char_face_and_encoding.
5307         * dispnew.c (update_text_area): Don't call get_glyph_overhangs
5308         if end of current row reached.
5310         * xterm.c (x_get_glyph_face_and_encoding): New.
5311         (x_get_glyph_overhangs): Call it.
5313         * xdisp.c (Qshow_trailing_whitespace): New.
5314         (Qtrailing_whitespace): New.
5315         (enum prop_handled): New.
5316         (struct props, it_props): New.
5317         (next_overlay_change): New.  Works like Fnext_overlay_change
5318         but doesn't use xmalloc.
5319         (handle_stop): Restructured.
5320         (face_before_or_after_it_pos): Case iteration over a string: fix
5321         handling of face before current position.
5323 1998-08-16  Gerd Moellmann  <gerd@gnu.org>
5325         * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
5326         reallocation matrix if fonts_changed_p.
5327         (update_text_area): Handle glyphs with lbearing.
5329 1998-08-14  Gerd Moellmann  <gerd@gnu.org>
5331         * xdisp.c (struct props): New.
5332         (it_props): New.
5333         (compute_prop_info): New.
5334         (handle_stop): New.
5336         * textprop.c (validate_interval_range): Make it externally
5337         visible.
5339         * dispnew.c (direct_output_for_insert): Remove calls
5340         to compute_stop_pos.
5342         * dispextern.h (struct it): Remove check_charpos,
5343         next_overlay_pos.  Add what_changes.
5345 1998-08-10  Gerd Moellmann  <gerd@gnu.org>
5347         * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
5349         * xfaces.c (Vx_unibyte_registry_and_encoding): Removed.  Use
5350         face_default_registry instead.
5352         * syntax.c (scan_sexps_forward): Set up syntax table before
5353         jumping to initial state label.
5355 1998-08-09  Gerd Moellmann  <gerd@gnu.org>
5357         * dispnew.c (check_matrix_invariants): Handle case of row end pos
5358         >= ZV specially.
5360 1998-08-08  Gerd Moellmann  <gerd@gnu.org>
5362         * xdisp.c (redisplay_window): Case cursor movement---if cursor
5363         ends up in partially visible row, try to scroll.  Case forced
5364         window start---handle windows not tall enough to show a single
5365         line.
5367         * window.h (struct window): Member dy renamed vscroll.
5369         * xterm.c (x_list_fonts): Re-activate suppression of scalable
5370         fonts.
5371         (x_draw_stretch_glyph_string): Set clipping if using GC that
5372         hasn't set it yet.
5374         * xdisp.c (redisplay_window): Case forced window start -
5375         don't let cursor end on partially visible row.  Use desired
5376         matrix to find a suitable PT if it doesn't appear.
5377         (decode_mode_spec): Merged with 20.2.97.
5378         (try_window_reusing_current_matrix): Give up if old or
5379         new display is vscrolled.
5380         (redisplay_window): Reset vscrolling if forced window start,
5381         or if recentering.
5383 1998-08-06  Gerd Moellmann  <gerd@gnu.org>
5385         * xfaces.c (realize_default_face): Use the fontset name instead of
5386         the alias for the family attribute of the default face because we
5387         can't easily determine a good alias from fontset-alias-alist.
5388         (face_fontset): Use Fquery_fontset to find the fontset.
5389         (font_list): Additional pattern parameter.
5390         (try_font_list): Ditto.
5391         (set_lface_from_font_name): Set face family from font foundry
5392         and family.
5393         (font_list): If family contains a hyphen, build pattern differently.
5395 1998-08-05  Gerd Moellmann  <gerd@gnu.org>
5397         * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
5398         changed instead of setting the frame garbaged.
5400         * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
5401         all attribute values.  This is wrong if values are unspecified,
5402         i.e. nil.
5404         * xdisp.c (try_window_id): Give up if window start changed.
5406         * xfaces.c (make_realized_face): Store registry as Lisp object.
5407         (load_face_font_or_fontset): Compute registry of a face
5408         differently.  Make it `eq' to Vx_unibyte_registry_and_encoding if
5409         possible.
5411         * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
5412         differently.
5414         * alloc.c (mark_face_cache): Mark the registry member of faces.
5416         * dispextern.h (struct face): Make registry a Lisp string.
5418 1998-08-04  Gerd Moellmann  <gerd@gnu.org>
5420         * xterm.c (x_get_char_font_and_encoding): Additional parameter
5421         multibyte_p.  Handle unibyte text.
5422         (x_append_glyph): Set the multibyte_p flag of glyphs.
5423         (x_produce_image_glyph): Ditto.
5424         (x_append_stretch_glyph): Ditto.
5425         (x_produce_glyphs): Handle unibyte text like ASCII.
5427         * xdisp.c (push_it): Save the multibyte flag of an iterator on the
5428         stack.
5429         (pop_it): Restore it.
5430         (face_before_or_after_it_pos): Handle the case that the string or
5431         buffer is unibyte.
5432         (get_overlay_strings): Set the multibyte flag of the iterator if
5433         the new overlay string is multibyte.
5434         (get_glyph_property): Likewise.
5435         (get_next_display_element): Don't check for charset changes in
5436         unibyte text.
5437         (append_space): Compute face differently for unibyte text.
5438         (extend_face_to_end_of_line): Don't return quickly if face has
5439         stipple.
5441         * xfaces.c (load_face_font_or_fontset): Store registry and
5442         encoding of the font in the registry member of the face.
5443         (make_realized_face): Additional parameter `registry'.
5444         (free_realized_face): Free the registry of a realized face.
5445         (face_suitable_for_charset_p): Function form of the macro
5446         with the same name in uppercase.
5447         (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
5448         (choose_face_font): New parameter unibyte_registry.
5449         (choose_face_fontset_font): Ditto.
5450         (realize_default_face): Remember the registry and encoding of
5451         the specified frame font in Vx_unibyte_registry_and_encoding.
5452         (face_at_buffer_position): Handle unibyte.
5453         (face_at_string_position): Likewise.
5454         (realize_face): New parameter unibyte_registry.  
5455         (compute_char_face): Handle the unibyte case.
5457         * dispextern.h (struct glyph): Add bit multibyte_p.
5458         (struct face): New member registry holding the registry and
5459         encoding of the X font of the face.
5460         (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
5461         (enum face_id): Add BASIC_FACE_ID_SENTINEL.
5462         (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
5463         text.
5464         (struct iterator_stack_entry): Add multibyte_p.
5466         * xdisp.c (string_pos): Use string_char_to_byte.
5467         (char_charset): Removed.
5469 1998-08-03  Gerd Moellmann  <gerd@gnu.org>
5471         * xterm.c (x_draw_image_glyph_string_foreground): Draw a
5472         rectangle for a block cursor over an image without a mask.
5473         (x_stretch_block_cursor): Added.  Non-zero means don't draw
5474         a block cursor over a stretch as wide as that stretch.
5475         (x_draw_stretch_glyph_string): Use it.
5476         (x_draw_hollow_cursor): Ditto.
5478         * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
5479         (read_minibuf): Add front-sticky text property for prompt.
5481         * xdisp.c (char_charset): Return charset of a character,
5482         depending on whether or not multi-byte characters are enabled.
5484         * xfaces.c (Fset_face_charset_registry): Removed.
5485         (x_charset_registry): Determine registry from charset plist.
5487 1998-08-02  Gerd Moellmann  <gerd@gnu.org>
5489         * xdisp.c (get_next_display_element): Don't check for charset
5490         changes if multi-byte characters are not enabled.
5491         
5492         * xdisp.c (echo_area_display): Use the flush function from the
5493         redisplay interface.  
5494         * keyboard.c (detect_input_pending_run_timers): Likewise.
5496         * dispextern.h (produce_*glyphs_hook): Removed.
5497         * term.c (produce_*glyphs): Ditto.
5498         (cursor_to): Remove pixel position parameters.
5500         * dispnew.c: Remove hooks for window-based redisplay, introduce
5501         a redisplay interface structure.
5503         * xterm.c (x_per_char_metric): Return default char metrics if per
5504         char metric exists but contains a zero width.  Adobe Courier seems
5505         to contain such characters.
5507         * xdisp.c (compute_line_metrics): Compute the width of rows
5508         without stopping at glyphs with zero width.
5510 1998-08-01  Gerd Moellmann  <gerd@gnu.org>
5512         * xdisp.c (display_mode_line): If nothing was displayed at all,
5513         display a space.
5514         (hscroll_window_tree): Don't subtract 1 from target point if equal
5515         to ZV and window is not the selected window.
5517         * dispnew.c (check_matrix_invariants): Remove check for window
5518         start at BEGV or after newline.  This happens in rare cases
5519         intentionally.
5521 1998-07-31  Gerd Moellmann  <gerd@gnu.org>
5523         * xfaces.c (x_charset_registry): Use STRING_BYTES.
5524         (syms_of_xfaces): Add Vface_default_registry.
5525         (x_charset_registry): Use it.
5527         * xdisp.c (run_window_scroll_functions): Run window scroll functions.
5528         (redisplay_window): Use it.
5530         * dispnew.c (update_text_area): Handle lbearing of deleted text
5531         by backing up one character.
5533 1998-07-30  Gerd Moellmann  <gerd@gnu.org>
5535         * dispnew.c (adjust_glyph_matrix): Use a different check to 
5536         decide to do nothing.
5538         * xfaces.c (face_at_string_position): Additional parameter
5539         mode_line_p.  If non-zero, merge with the mode line face
5540         instead of the default face.
5541         * dispextern.h (struct it): Add mode_line_p.
5542         * xdisp.c (init_iterator): Set it.
5543         (compute_face_in_string): Use it.
5544         (face_before_or_after_it_pos): Handle strings.
5545         (get_next_display_element): Don't look for relief end in C strings.
5546         (next_element_from_string): Deliver string position instead of
5547         buffer position.
5549         * xterm.c (x_flush): Flush X output buffer.
5550         (XTflash): Use it.
5552         * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
5553         Allow strings as face names.
5555         * xfns.c (forall_images_in_image_cache): Check that frame is
5556         alive.
5558         * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
5559         it's also called from x_destroy_window.  Since this function is
5560         called from X, freeing stuff allocated with xmalloc is dangerous
5561         here, anyway.
5563         * xfaces.c (free_realized_faces): Don't clear current matrices
5564         of a frame being destroyed.
5566         * frame.c (make_frame): Call set_window_buffer instead of 
5567         Fset_window_buffer.
5569         * window.c (set_window_buffer): Extracted from Fset_window_buffer,
5570         with an additional argument specifying whether or not hooks may
5571         be called.
5572         (Fset_window_buffer): Call it.
5574         * dispnew.c (clear_desired_matrices): Check that frame has
5575         a valid root window before clearing matrices in the window tree.
5576         (clear_current_matrices): Ditto.
5577         (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
5578         vchild are valid windows if not nil.
5580         * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
5581         for :inverse-video.
5582         (Finternal_set_lisp_face_attribute): Ditto.
5583         (Finternal_set_lisp_face_attribute_from_resource): Ditto.
5584         (Finternal_get_lisp_face_attribute): Ditto.
5585         (Finternal_lisp_face_attribute_values): Ditto.
5586         (syms_of_xfaces): Define the symbol `:reverse-video'.
5588         * xdisp.c (get_glyph_property): Renamed from
5589         fill_iterator_from_glyph_property.
5590         (next_element_from_buffer): Handle case that no `glyph' property
5591         was found correctly.
5592         (display_line): Extend face to end of line only if we have faces.
5594 1998-07-29  Gerd Moellmann  <gerd@gnu.org>
5596         * dispnew.c (Fshow_cursor): Renamed from blink_cursor.  Take
5597         additional window argument.
5599         * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
5600         set_iterator_to_previous_visible_line_start.
5601         (reseat_at_next_visible_line_start): Likewise.
5602         (compute_stop_pos): Renamed from set_iterator_stop_pos.
5603         (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
5604         (compute_face_in_buffer): Renamed from
5605         compute_face_at_iterator_position.
5606         (compute_face_in_string): Renamed from
5607         compute_face_at_iterator_string_position.
5608         (get_space_width): Renamed from get_iterator_space_width.
5609         (next_overlay_string): Renamed from
5610         set_iterator_to_next_overlay_string.
5611         (get_overlay_strings): Renamed from
5612         get_overlay_strings_at_iterator_position.
5613         (restore_overlay_strings): Renamed from
5614         setup_overlay_strings_from_glyph_pos.
5615         (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
5616         (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
5617         (init_to_row_start): Renamed from init_iterator_to_row_start.
5618         (init_to_row_end): Formerly init_iterator_to_next_row_start.
5620         * xterm.c: Merge with 20.2.97.
5621         (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
5623         * dispextern.h (struct glyph): Replace text_pos position with
5624         simple charpos.
5626         * xdisp.c (this_line_start_pos): Use struct text_pos.
5627         (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
5628         (enum move_it_result): Renamed from move_iterator_result.
5629         (string_pos_nchars_ahead): Compute text_pos in a string from a
5630         known text_pos plus a character delta.
5631         (string_pos): Compute text_pos in string from charpos.
5632         (c_string_pos): Likewise for a C string.
5633         (number_of_chars): Return number of characters in a possibly
5634         multi-byte C string.
5635         (check_it): Renamed from check_iterator.  Check that charpos and
5636         bytepos are in sync.
5637         (push_it): Renamed from save_iterator_settings.
5638         (pop_it): Renamed from restore_iterator_settings.
5639         (move_it_.*): Renamed from move_iterator_.*.
5640         (charset_at_position): Take charpos/bytepos into account.
5641         (back_to_previous_line_start): Set iterator to previous line start.
5642         (forward_to_next_line_start): Set iterator to next line start.
5643         (back_to_previous_visible_line_start): Renamed from 
5644         move_iterator_previous_visible_line_start.
5645         (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
5646         (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
5647         Handle charpos/bytepos.
5648         (compute_face_at_iterator_position): Handle charpos/bytepos.
5649         (compute_face_at_iterator_string_position): Likewise.
5650         (get_iterator_space_width): Likewise.
5651         (load_overlay_strings): Likewise.
5652         (get_overlay_strings_at_iterator_position): Likewise.
5653         (reseat_iterator): Take a text_pos position argument.
5654         (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
5655         bytepos.
5656         (init_iterator): Take additional bytepos parameter.
5657         (reseat_iterator_to_string): Handle charpos/bytepos.
5658         (start_display): Take a text_pos parameter.  Handle charpos/bytepos.
5659         (next_element_from_string): Handle charpos/bytepos.
5660         (next_element_from_c_string): Likewise.
5661         (fill_iterator_from_glyph_property): Likewise.
5662         (next_element_from_buffer): Likewise.
5663         (set_iterator_to_next): Increment charpos and bytepos of an iterator.
5664         (move_iterator_in_display_line_to): Handle charpos/bytepos.
5665         (move_it_to): Likewise.
5666         (move_it_vertically_backward): Likewise.
5667         (move_it_vertically): Likewise.
5668         (move_it_by_lines): Likewise.
5669         (hscroll_window_tree): Likewise.
5670         (redisplay_internal): Likewise.
5671         (set_cursor_from_row): Likewise.
5672         (redisplay_window): Likewise.
5673         (try_window): Take a text_pos parameter.  Handle charpos/bytepos.
5674         (try_window_reusing_current_matrix): Handle charpos/bytepos.
5675         (get_first_unchanged_at_end_row): Compute and return delta_bytes.
5676         (try_window_id): Handle charpos/bytepos.
5677         (Ftrace_redisplay_toggle): Return Qnil.
5678         (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
5679         (insert_left_trunc_glyphs): Likewise.
5681         * dispnew.c: `Merge' with 20.2.97 (it's really too different to
5682         do a real merge).
5683         (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
5684         (increment_glyph_row_buffer_positions): Ditto.
5685         (copy_glyph_row_contents): Ditto.
5686         (check_matrix_invariants): Add additional checks for charpos/
5687         bytepos consistency.
5688         (direct_output_for_insert): Changed for charpos/bytepos.
5689         (buffer_posn_from_coords): Likewise.  Put code dealing with 
5690         `direction-reversed' in #if 0.
5692         * xterm.h: Merge with 20.2.97.
5693         
5694         * frame.h: Merge with 20.2.97.
5696         * window.h: Merge with 20.2.97.  Add window_end_bytepos.
5698         * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
5699         start.
5700         (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
5701         (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
5702         (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
5703         (struct it): Various members renamed from .*pos to .*charpos.
5704         (IT_CHARPOS): Access current buffer character position of an
5705         iterator.
5706         (IT_BYTEPOS): Access current buffer byte position of an iterator.
5707         (IT_STRING_CHARPOS): Access current string character position of
5708         an iterator.
5709         (IT_STRING_BYTEPOS): Access current string byte position of
5710         an iterator.
5711         (globally): Add function prototypes from 20.2.97.
5713         * everywhere: Use P_ instead of PROTO for function prototypes
5714         because everyone else seems to use P_.
5716         * dispextern.h (struct text_pos): Structure describing a charpos/
5717         bytepos position in text.
5718         (BYTEPOS): Access the byte position part of a text_pos.
5719         (CHARPOS): Likewise for the character position.
5720         (SET_TEXT_POS): Set a text_pos from a character and byte position.
5721         (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
5722         (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
5723         (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
5724         (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
5725         (struct display_pos): Renamed from glyph_pos. Use struct text_pos
5726         for buffer and string positions.
5727         (struct glyph): Use text_pos.
5728         (struct it): Renamed from display_iterator.  Use text_pos.
5730 1998-07-23  Gerd Moellmann  <gerd@gnu.org>
5732         * xfns.c (x_kill_gs_process): Get image colors from XImage of a
5733         pixmap.
5735 1998-07-21  Gerd Moellmann  <gerd@gnu.org>
5737         * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
5738         * xterm.c (x_draw_row_bitmaps): Use it.
5739         * dispnew.c (row_equal_p): Ditto.
5740         (update_window_line): Ditto.
5742         * xfns.c (prepare_image_for_display): Don't set loading_failed_p
5743         flag of images.
5745         * dispextern.h (struct image): Removed member loading_failed_p.
5746         It's probably better to have the chance to try to load an image
5747         again.
5749 1998-07-20  Gerd Moellmann  <gerd@gnu.org>
5751         * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
5752         at ZV if `indicate-zv-lines' is non-nil.
5753         (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
5755         * dispnew.c (row_equal_p): Compare displays_text_p and
5756         ends_at_zv_p flags of rows.
5757         (update_window_line): Ditto.
5759         * buffer.h (struct buffer): New member indicate_zv_lines.
5761         * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
5762         (init_buffer_once): New variable `default-indicate-zv-lines'.
5763         (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
5765         * xdisp.c (redisplay_window): Don't try moving the cursor
5766         if current glyph row w->last_cursor.vpos isn't enabled.
5768         * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
5770         * window.c (Fset_window_vscroll): Allow only negative scroll
5771         values.  Others don't seem to make sense, and this way it's easy
5772         to restore a vscroll of zero.
5774         * xterm.c (x_inverted_image_mask): Check that pixmap could be
5775         allocated.
5776         (x_draw_image_glyph_string_background): Don't clip if pixmap
5777         could not be created.
5779         * xfns.c (xbm_load_image_from_file): Check that pixmap could
5780         be created.
5781         (xbm_load): Ditto.
5782         (gs_load): Ditto.
5784         * xterm.c (x_get_glyph_overhangs): Take image and stretch
5785         glyphs into account.
5787         * xfaces.c (realize_default_face): Don't set font family of
5788         the default face from the fontset alias name for `fontset-startup'.
5790         * xfns.c (gs_load): Pass frame's pixel foreground and background
5791         color to the Lisp loader.
5793 1998-07-19  Gerd Moellmann  <gerd@gnu.org>
5795         * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
5796         libtiff34.
5798         * configure.in (--with-tiff, HAVE_TIFF): Added.
5800         * config.in (HAVE_TIFF): Added.
5802         * Makefile.in (LIBTIFF): Added.
5804         * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
5806         * Makefile.in (LIBJPEG): Added.
5808         * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
5809         RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
5810         jpeglib.h.
5812         * configure.in (HAVE_JPEG, --with-jpeg): Added.  On systems 
5813         where the library is installed in /usr/local/lib, e.g. FreeBSD,
5814         configure must be run with `--x-includes=/usr/X11R6/include:
5815         /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
5817 1998-07-18  Gerd Moellmann  <gerd@gnu.org>
5819         * config.in (HAVE_JPEG): Added.
5821         * xfns.c (ct_init): Initialize color table used to map RGB colors
5822         from images to X pixel colors.
5823         (ct_free): Free color table.
5824         (ct_lookup): Look an RGB color up.
5825         (ct_allocated_colors): Get vector of allocated colors.
5826         (pbm_image_p): Test if image specification is a valid PPM 
5827         image specification.
5828         (pbm_scan_number): Scan a decimal ASCII number from a file.
5829         (pbm_load): Load a PPM image.
5831         * window.c (Fset_window_vscroll): Adjust glyph matrix if
5832         necessary.  Take canonical character units as parameter.
5833         (Fwindow_vscroll): Return canonical character units.
5835         * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
5836         w->dy to display height for which glyph rows must be allocated.
5838 1998-07-17  Gerd Moellmann  <gerd@gnu.org>
5840         * xfaces.c (face_at_string_position): Merge in region face
5841         so that it won't overwrite the font in the region.
5842         (face_at_buffer_position): Ditto.
5843         (realize_basic_faces): Don't realize region face.
5845         * dispextern.h (enum face_id): REGION_FACE_ID removed.
5847         * xterm.c (x_set_glyph_string_background_width): Don't let
5848         cursor face extend to end of line.
5850         * xdisp.c (append_space): If adding space of default face,
5851         make sure glyph ist produced with right face.
5853         * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
5854         background color of a glyph string.
5855         (x_draw_glyph_string_background): Call it.
5856         (x_draw_glyph_string_bg_rect): Ditto.
5857         (x_draw_stretch_glyph_string): Ditto.
5859 1998-07-15  Gerd Moellmann  <gerd@gnu.org>
5861         * xdisp.c (init_iterator): Initialize it->current_y to the
5862         window's vscroll w->dy.
5864         * window.c (Fwindow_vscroll): Return number of pixels window
5865         is vscrolled smoothly.
5866         (Fset_window_vscroll): Set the number.
5868         * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
5869         to_pos in truncated part of a line.
5871 1998-07-14  Gerd Moellmann  <gerd@gnu.org>
5873         * xdisp.c (move_iterator_in_display_line_to): If very first glyph
5874         doesn't fit on the line, truncate it, despite truncate_lines nil.
5875         (display_line): Ditto.
5877         * xfns.c: Experimental support for Ghostscript images.
5879         * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
5880         (XTread_socket): React on events from Ghostscript.
5881         (expose_frame): If width or height are zero, redraw entire frame.
5882         (XTread_socket): Call expose_frame after receiving event from
5883         Ghostscript.
5885         * xterm.h (struct x_display_info): Add atoms DONE and PAGE
5886         for Ghostscript support.
5888         * xdisp.c (redisplay_internal): Return quickly if called
5889         recursively.
5891         * alloc.c (NSTATICS): Increased to 1024.
5893 1998-07-08  Gerd Moellmann  <gerd@gnu.org>
5895         * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
5896         iterator's glyph row.
5897         (x_produce_stretch_glyph): Call it.
5898         (x_produce_glyphs): Handle `space-width' property; call
5899         x_append_stretch_glyph.
5901         * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
5902         property.
5903         (get_iterator_space_width): Determine value of `space-width'
5904         property at iterator's position.
5905         (reseat_iterator): Call it.
5906         (next_element_from_string): Ditto.
5907         (next_element_from_buffer): Ditto.
5908         (init_iterator): Initialize space_width of iterator.
5909         (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
5910         moved, but cursor blinks.
5911         (redisplay_internal): Set w->last_cursor_off_p after update.
5913         * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
5914         (struct display_iterator): Add new member space_width.
5916         * window.h (struct window): Add last_cursor_off_p.
5918 1998-07-07  Gerd Moellmann  <gerd@gnu.org>
5920         * Saved.
5922         * window.c (Fpos_visible_in_window_p): Case window not up to
5923         date---return nil if iterator hasn't reached position.
5925 1998-07-06  Gerd Moellmann  <gerd@gnu.org>
5927         * xdisp.c (text_outside_line_unchanged_p): Fix case that
5928         overlays have changed.
5929         (redisplay_window): Case cursor movement.  Don't try it if
5930         last_cursor.vpos is out of range.
5932         * xdisp.c (set_cursor_from_row): Set this_line_.* variables.  This
5933         way, the display optimization for the line containing the cursor
5934         is used more frequently, esp. when we have a blinking cursor.
5935         (display_line): Don't set this_line_.* variables.
5937         * xterm.c (x_redraw_cursor): Removed.
5938         (x_display_and_set_cursor): Set cursor type depending on
5939         cursor_off_p flag of window.
5941         * dispnew.c (redraw_cursor_hook): Removed.
5942         (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
5943         member of the selected window.
5945         * xfaces.c (Fface_font): Added for compatibility with 20.2.
5947         * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
5948         Return glyph area under x/y.
5949         (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
5951         * keyboard.c (detect_input_pending_run_timers): Call gobble_input
5952         after redisplaying.
5954 1998-07-05  Gerd Moellmann  <gerd@gnu.org>
5956         * xdisp.c (text_outside_line_unchanged_p): Test if changes
5957         are all outside of a line of text.
5958         (redisplay_internal): Use it.
5960 1998-06-30  Gerd Moellmann  <gerd@gnu.org>
5962         * xdisp.c (next_element_from_buffer): After skipping over
5963         invisible text, look for the `glyph' property.
5964         (set_iterator_stop_pos): Ignore check positions in front
5965         of an iterator's current position.
5967         * xterm.c (show_mouse_face): Don't act on rows that don't exist
5968         anymore or which are marked as not having valid contents.
5970         * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
5971         realized faces if new attribute value is equal to old value.
5973 1998-06-29  Gerd Moellmann  <gerd@gnu.org>
5975         * xfaces.c (Finternal_make_lisp_face): Increment
5976         lface_id_to_name_size when lface_id_to_name is reallocated.
5978 1998-06-27  Gerd Moellmann  <gerd@gnu.org>
5980         * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
5981         as minimum of endpos and overlay_pos.
5982         (load_overlay_strings): Set next_overlay_pos of iterator to
5983         -1 if we don't have to check for more overlay strings.
5985 1998-05-09  Gerd Moellmann  <gerd@gnu.org>
5987         * xdisp.c (set_iterator_to_next_visible_line_start): Don't
5988         do anything if iterator is at ZV because scan_buffer doesn't
5989         work otherwise.
5991         * xterm.c (x_encode_char): Inline it.
5992         (x_get_char_font_and_encoding): Simplified.
5993         (x_per_char_metric): Inline it.
5995         * xterm.c (x_draw_glyph_string_relief): Use clipping.
5997         * xdisp.c (get_next_display_element): Check for end of relief
5998         face moved here from next_element_from_buffer.
6000         * xterm.c (x_produce_image_glyph): Add relief thickness.
6001         (x_produce_stretch_glyph): Ditto.
6003 1998-05-08  Gerd Moellmann  <gerd@gnu.org>
6005         * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
6006         property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
6008         * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
6009         from a glyph property.
6010         (x_produce_glyphs): Use it.
6012         * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
6014         * xterm.c (x_produce_image_glyph): Add to current_x only if 
6015         in text area.
6016         (x_produce_glyphs): Ditto.
6018         * xdisp.c (display_line): Compute row height from glyphs in 
6019         marginal areas.
6021         * xterm.c (x_draw_image_glyph_string_background): Draw 
6022         background of an image glyph string.
6023         (x_draw_glyph_string_bg_rect): Draw a rectangular region of 
6024         the background of a glyph string.
6025         (x_draw_image_glyph_string_foreground): Draw the foreground of
6026         an image glyph string.
6027         (x_inverted_image_mask): Return the inverted mask of an image.
6029         * xfns.c (x_draw_image): Removed.
6031         * dispextern.h (struct image_type): Remove drawing function.
6033         * xfaces.c (load_face_colors): Swap colors if face is inverse.
6035         * xdisp.c (get_next_display_element): In marginal areas, translate
6036         newlines, tabs, etc. like normal control characters.
6038         * xfaces.c (Fface_color_supported_p): Transpose parameters frame
6039         and color.
6040         (free_realized_faces): Set frame garbaged.
6042         * xfaces.c (syms_of_xfaces): Add defsubr for
6043         internal-lisp-face-attribute-values.
6045 1998-05-07  Gerd Moellmann  <gerd@gnu.org>
6047         * xterm.c (x_produce_image_glyph): Don't add glyph if area is
6048         full.
6049         (x_produce_image_glyph): Set IT->nglyphs to 1.
6050         (x_draw_image_glyph_string): Use inverted mask to draw background.
6052         * dispextern.h (struct image_type): Additional clipping rect
6053         parameters for drawing functions.
6055         * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for 
6056         a glyph string.
6057         (x_draw_image_glyph_string): Use it and pass the rect to the
6058         image drawing function.
6060         * xdisp.c (fill_iterator_from_glyph_property): Use position of
6061         first character with `glyph' property as image position.  Set
6062         iterator back to that position as long as the image hasn't been
6063         consumed with set_iterator_to_next.
6064         (set_cursor_from_row): Accept when glyph with given position is
6065         not found in the row.  Set cursor x to end of line in that case,
6066         so that we can hscroll.
6067         (redisplay_internal): Correct computation of delta by which
6068         positions have changed in redisplay optimization for cursor
6069         row of selected window.
6071         * xdisp.c (display_line): Remove start_pos.
6072         (display_line): Fix bug preventing display optimization for 
6073         cursor line of selected window.
6074         (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
6075         instead.
6077         * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
6078         (update_text_area): Take glyph pixel width into account
6079         when trying to find a resync point.
6080         (row_equal_p): Compare glyphs in all areas.
6082 1998-05-06  Gerd Moellmann  <gerd@gnu.org>
6084         * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
6086         * dispextern.h (struct glyph_row): Use unsigned hash value.
6088         * xdisp.c (display_line): Simplified and made faster by setting
6089         the cursor with set_cursor_from_row.
6090         (set_cursor_from_row): Handle rows of desired matrix.
6092 1998-05-05  Gerd Moellmann  <gerd@gnu.org>
6094         * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
6095         with type != CHAR_GLYPH.
6096         (fill_iterator_from_glyph_property): Return void.  Set
6097         method to next_element_from_image.
6098         (next_element_from_image): Dummy function for delivering a
6099         single image id.
6100         (set_iterator_to_next): Add method next_element_from_image.
6101         (redisplay_window): When recentering, and cursor vpos is -1
6102         after display, assume middle of window is in first line displayed
6103         in window, and display again.
6104         (fill_iterator_from_glyph_property): Assign image glyph 
6105         the position of the first character having the glyph property.
6107         * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
6108         * xfns.c (x_draw_image): Use it.
6109         * xterm.c (x_produce_image_glyph): Use it.
6111         * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
6113         * Makefile.in: Extraneous #define of LIBXPM removed.
6115         * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
6116         (x_fill_stretch_glyph_string): Fill a glyph string from a 
6117         stretch glyph.
6118         (x_compute_glyph_string_overhangs): Compute overhangs only
6119         for text glyph strings.
6120         (x_draw_stretch_glyph_string): Draw a stretch glyph string.
6121         (x_draw_glyph_string): Call it.
6123         * dispextern.h (glyph_type): Add STRETCH_GLYPH.
6124         (struct glyph): Add sub-structure for stretchable glyphs.
6125         (GLYPH_EQUAL_P): Compare glyph type and u.val.
6127         * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
6128         #ifdef HAVE_FACES.
6130         * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
6132         * xdisp.c (fill_iterator_from_glyph_property): Renamed from
6133         setup_iterator_from_glyph_property.  Don't do it for terminal
6134         frames.
6136         * xterm.c (x_produce_image_glyph): Produce glyph for image
6137         that can't be loaded.
6139         * xfns.c (lookup_image): If image can't be loaded, set its
6140         width and height so that we can draw a rectangle.
6141         (x_draw_image): Draw a rectangle for images that don't have
6142         a pixmap.
6143         (make_image): Set hash value.
6144         (image_spec_equal_p): Use image_spec_value.
6146         * xterm.c (expose_frame): Don't try to redraw if basic faces
6147         haven't benn realized yet.
6148         (x_draw_image_glyph_string): Fill background only if image 
6149         is not as tall as row.
6151 1998-05-04  Gerd Moellmann  <gerd@gnu.org>
6153         * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
6154         (LIBX)[HAVE_X11]: Add LIBXPM.
6156         * xfns.c (xpm_image_p): Implementation of image type functions
6157         for XPM.
6158         (xpm_load): Ditto.
6160         * dispextern.h (struct image): Add mask pixmap for XPM.
6162         * xfns.c (x_draw_image): Handle images with masks.
6164         * configure.in: --with-xpm added.  Code detecting -lXpm added.
6166         * config.in: Add HAVE_XPM.
6168         * xfns.c (xbm_draw): Removed.
6169         (x_draw_image): Default implementation for drawing images.
6170         (xbm_keyword_index): Remove XBM_DEPTH.
6171         (xbm_format): Remove `:depth'.
6172         (xbm_image_spec_from_file): Removed to reduce consing.
6173         (xbm_load_image_from_file): Added for the same reason. 
6175         * xterm.c (x_fill_image_glyph_string): Don't set ybase of 
6176         glyph string.
6177         (x_draw_image_glyph_string): Pass ybase to image draw function.
6179         * xfns.c (make_image): Set default baseline.
6181         * xterm.c (x_produce_image_glyph): Compute ascent of image
6182         from its height and baseline percentage.
6184         * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
6185         (xbm_format): Add description for `:baseline'.
6186         (xbm_image_spec_from_file): Add keywords from original spec to
6187         result.
6188         (xbm_load): Set baseline of image.
6189         (xbm_image_p): Check range for baseline.
6191         * dispextern.h (struct image): Add member baseline.
6193         * xdisp.c (dump_glyph_matrix): Handle image glyphs.
6195         * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
6197         * xdisp.c (get_next_display_element): Do character translations
6198         only if delivering characters.
6200 1998-05-03  Gerd Moellmann  <gerd@gnu.org>
6202         * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for 
6203         DISP_CHARACTER.
6205         * xterm.c (x_produce_image_glyph): Poduce image glyphs.
6206         (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
6208 1998-05-02  Gerd Moellmann  <gerd@gnu.org>
6210         * xfns.c (prepare_image_for_display): Set image timestamp.
6211         (clear_image_cache): Clear images if image's timestamp +
6212         Vimage_eviction_seconds is > now.
6213         (syms_of_xfns): New variables image-eviction-seconds, and
6214         image-types.
6215         (add_image_format): Add to image-types.
6216         (xbm_load): Support new image spec format.
6217         (x_alloc_image_color): Allocate a color for an image.
6219         * dispextern.h (struct image): Add timestamp.
6221         * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
6222         vectors of bool-vectors.
6223         (xbm_lisp_object_from_file): Build new format image spec.
6225 1998-05-01  Gerd Moellmann  <gerd@gnu.org>
6227         * xfaces.c (init_frame_faces): Initialize image cache.
6228         (free_frame_faces): Free it.
6230         * xterm.c (x_delete_display): Don't free image cache.
6232         * emacs.c (main): Call init_xfns.
6234 1998-04-30  Gerd Moellmann  <gerd@gnu.org>
6236         * alloc.c (mark_object): Mark objects in image cache.
6238         * xfns.c (x_set_internal_border_width): Correct call to 
6239         widget_store_internal_border_width.
6241         * widget.c (widget_store_internal_border): Return void.
6243         * xfns.c (x_destroy_bitmap): Use xfree instead of free.  Return
6244         void.
6245         (init_x_parm_symbols): Return void.
6246         (x_report_frame_params): Ditto.
6247         (x_set_border_pixel): Ditto.
6248         (syms_of_xfns): Ditto.
6249         (x_destroy_all_bitmaps): Use xfree instead of free.
6251         * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
6253         * xterm.c (x_term_init): Initialize image_cache of display info.
6254         (x_delete_display): Free image cache.
6256         * xterm.h (struct x_display_info): Add image_cache.
6258         * xfns.c (make_image_cache): Allocate a new image cache.
6259         (free_image_cache): Free an image cache.
6260         (make_image): Allocate an image.
6261         (free_image): Free an image.
6263         * dispextern.h (struct image): Structure describing an image.
6264         (struct image_cache): Structure describing an image cache.
6266 1998-04-29  Gerd Moellmann  <gerd@gnu.org>
6268         * xdisp.c (check_iterator_glyph_property): Return int.  Value is
6269         non-zero if iterator is filled with something to return.
6270         (next_element_from_buffer): Immediately return if
6271         setup_iterator_from_glyph_prop has filled iterator with pixmap.
6272         (next_element_from_string): Likewise.
6274         * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
6276         * dispextern.h (struct glyph): Add pixmap_id.
6277         (display_element_type): Add DISP_PIXMAP.
6279         * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
6280         malloc/free.
6282         * xfaces.c (clear_font_table): Free fonts not used by fontsets.
6283         (clear_face_cache): Call it.
6285         * xterm.c (x_query_font): Don't look at empty font table slots.
6286         (x_compute_min_glyph_bounds): Likewise.
6287         (x_term_init): Initialize font_table to null.
6288         (x_load_font): Change allocation of font_info structures so
6289         that it is possible to free fonts.
6291         * xfns.c (Fx_close_connection): Use xfree instead of free. 
6292         Only free fonts from filled font table entries.
6294         * xfaces.c (best_matching_font): Support use of scalable fonts.
6295         (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
6297         * xterm.h (struct x_display_info): Remove screen_dpi, add resx
6298         and resy.
6299         * xterm.c (x_term_init): Compute resx and resy.
6301         * xfaces.c (split_font_name): Don't reject scalable fonts.
6303         * xterm.c (x_list_fonts): Set code exclusing scalable fonts 
6304         in #if 0.
6306         * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
6307         point size cannot be determined.
6309         * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
6310         width over all fonts on a frame.
6311         (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
6312         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
6313         macros.
6315         * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
6316         (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
6317         (x_load_font): Use x_compute_min_char_bounds.
6319         * xterm.h (struct x_display_info): New members smallest_char_width
6320         and smallest_font_height.
6322 1998-04-28  Gerd Moellmann  <gerd@gnu.org>
6324         * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
6325         the same name if GC of face is zero.
6327         * dispextern.h (struct face): Member non_ascii_gc removed.
6329         * xterm.c (x_get_char_font_and_encoding): Return face's font
6330         for characters < 0177 in default face.  Prepare face for 
6331         display before returning it.
6332         (x_produce_glyphs): Use it->charset.
6333         (x_get_char_font_and_encoding): Simplified.
6334         (x_encode_char): Remove parameter `font'.
6336         * xfaces.c (choose_face_font): If registry from charset symbol
6337         doesn't contain a `-', make it a pattern by appending "*-*".
6339         * xdisp.c (check_iterator_glyph_property): Adjust limit for
6340         glyph_check_pos computation to character boundary.
6342 1998-04-27  Gerd Moellmann  <gerd@gnu.org>
6344         * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
6346         * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
6347         ASCII face for a given Lisp face id.
6349         * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
6350         account.
6351         (reseat_iterator): Set glyph_check_pos. Handle case where 
6352         new position is < original position.
6353         (check_iterator_glyph_property): Handle glyph property in strings.
6354         (next_element_from_string): Call above function.
6355         (next_element_from_display_vector): Handle faces in glyphs.
6356         (get_next_display_element): Set face_id of glyphs for
6357         control chars to zero.
6359         * Makefile.in (term.o): Add dependency on dispextern.h.
6361         * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
6362         (display_line): Handle marginal areas.
6363         (move_iterator_in_display_line_to): Likewise.
6365         * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
6367         * xfaces.c (face_at_buffer_position): Don't merge with nil
6368         text property.
6369         (face_at_string_position): Ditto.
6371         * dispextern.h (struct display_iterator): Use a stack of saved
6372         values instead of saving check positions etc. individually.
6374         * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
6375         maybe pop the iterator's stack.
6376         (save_iterator_settings): Push a value on iterator's stack.
6377         (get_overlay_strings_at_iterator_position): Use it.
6378         (restore_iterator_settings): Pop the stack.
6379         (set_iterator_to_next_overlay_string): Use it.
6381         * xfaces.c (try_font_list): Use alternative font families.
6383 1998-04-26  Gerd Moellmann  <gerd@gnu.org>
6385         * xfaces.c (Fset_face_font_sort_order): Set the order in which
6386         font selection matches fonts.
6387         (Fface_font_sort_order): Return the font sort order.
6388         (best_matching_font): Find best matching font based on sort order.
6389         (cmp_font_names): Sort by given sort order.
6391         * dispextern.h (struct display_iterator): New member faces_p.
6392         * xdisp.c (init_iterator): Initialize it->faces_p.
6393         (compute_face_at_iterator_string_position): Use it.
6394         (compute_face_at_iterator_position): Use it.
6395         (init_iterator): Use it.
6396         (display_mode_line): Ditto.
6398         * xdisp.c (get_next_display_element): Put code choosing a face
6399         when the charset changes in #ifdef HAVE_FACES.
6401         * dispextern.h (FACE_FOR_CHARSET): Replacement for function 
6402         lookup_face_for_charset.
6404         * xfaces.c (free_font_names): Renamed from free_split_font_names.
6405         (free_all_realized_faces): Renamed from remove_all_realized_faces.
6407 1998-04-25  Gerd Moellmann  <gerd@gnu.org>
6409         * xfaces.c (best_matching_font): Return the name of the best
6410         matching font in an array of font_name structures.
6411         (choose_face_font): Use it.
6412         (choose_face_fontset_font): Use it.
6413         (find_best_weight_font): If final font found has same weight as
6414         the font we started with, return the original font because it is a
6415         better match for the resolution of the display.
6416         (find_best_slant_font): Likewise.
6417         (merge_face_vector_with_property): Check more invalid attribute
6418         values.
6419         (lface_suitable_for_charset_p): Replaced by a macro with the same
6420         name in upper-case.
6422 1998-04-24  Gerd Moellmann  <gerd@gnu.org>
6424         * dispextern.h (struct face): Member
6425         fontset_chosen_for_realization_p removed.
6427         * xfaces.c (cache_face): If face->fontset >= 0, add face to the
6428         end of the collision list, so that we find more specific faces
6429         first.
6430         (lookup_face_for_charset): Look up a new face if face->fontset >=
6431         0, and charset != CHARSET_COMPOSITION.
6433         * xfaces.c (split_font_name): Return zero if point size of font
6434         couldn't be computed.
6435         (realize_default_face): Use ASCII font of a fontset to determine
6436         font-related attributes of the default face.
6437         (face_fontset): Return fontset id for face family.
6438         (font_list): Additional parameter font_pattern.  If non-nil,
6439         return fonts matching that pattern.
6441 1998-04-23  Gerd Moellmann  <gerd@gnu.org>
6443         * xfaces.c (choose_face_fontset): If new fontset cannot be
6444         constructed, or fontset name cannot be split, return the id of the
6445         standard fontset.
6447         * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
6448         When Emacs starts, it may be called for the initial frame which
6449         isn't an X frame.
6451         * dispextern.h (struct face): New members foreground_defaulted_p,
6452         background_defaulted_p.
6453         (struct face): Members `mask' and `cache' removed.
6455         * xfaces.c (load_color): Set them.
6456         (free_face_colors): Check them.
6457         (xlfd_point_size): Return -1 if resolution or point size of 
6458         font unknown.
6460         * xfaces.c (free_font): Removed.
6461         (load_face_font_or_fontset): Renamed from load_font.
6462         (load_face_font_or_fontset): Use message2 instead of signalling.
6463         (load_color): Likewise.
6464         (load_pixmap): Likewise.
6466         * xterm.h (struct x_display_info): Add screen_dpi.
6467         * xterm.c (x_term_init): Initialize it.
6468         * xfaces.c (xlfd_point_size): Use it.
6469         (split_font_name): Compute numeric XLFD_RESY.
6470         (cmp_font_names): Make fonts with an y-resolution more 
6471         similar to that of the frame appear first in the result.
6473         * xfaces.c (cache_face): If fontset_chosen_for_realization_p
6474         is set for the face to cache, add it to the end of the collision
6475         list.
6476         (try_font_list): If fonts for given family and registry cannot
6477         be found, first try to keep the registry, and choose a different
6478         family.
6479         (choose_face_font): Allow nfonts == 0.
6480         (try_font_list): Give up if no font matches given registry.
6482 1998-04-22  Gerd Moellmann  <gerd@gnu.org>
6484         * xterm.c (x_get_char_font_and_encoding): Get font_info from
6485         font info id of the face.
6487         * xfaces.c (load_font): Set font_info_id.
6488         (realize_face): Ditto.
6490         * dispextern.h (struct face): Change member font_info to
6491         font_info_id.
6493         * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
6494         (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
6496         * xdisp.c (extend_face_to_end_of_line): If IT's current charset
6497         isn't ASCII, get the ASCII face before adding a space.
6498         (append_space): Likewise.
6499         (insert_left_trunc_glyphs): Initialize truncate_it's charset
6500         to -1 so that it will compute the right face for the truncation
6501         glyphs.
6503         * xfaces.c (realize_face): Set
6504         face->fontset_chosen_for_realization_p.
6505         (lookup_face_for_charset): If fontset wasn't specified originally
6506         and new charset != CHARSET_COMPOSITION, get a new face for that
6507         charset.
6509         * dispextern.h (struct face): New member
6510         fontset_chosen_for_realization_p_specified_p.  Set to 1 when
6511         realize_face has chosen a fontset to display composite characters
6512         for a Lisp face not specifying a fontset.
6514         * xdisp.c (extend_face_to_end_of_line): Move tests for default
6515         face and line already filled here.  Don't do anything if current
6516         face hasn't a relief or has a background equal to the frame
6517         background.
6519         * xfaces.c (split_font_name): Additional parameter numeric_p.
6520         Don't compute numeric values if it is non-zero.
6521         (choose_face_fontset): Call split_font_name with numeric_p == 0.
6522         (choose_face_fontset): Print a message if fontset contains a 
6523         font whose name cannot be split into fields.
6525 1998-04-21  Gerd Moellmann  <gerd@gnu.org>
6527         * xfaces.c (try_font_list): Try to load a list of fonts, 
6528         possibly using less restrictive patterns.
6529         (choose_face_font): Use it.
6531         * xterm.c (x_get_char_font_and_encoding): For charset !=
6532         CHARSET_ASCII use font_info of face if face hasn't a fontset set.
6534         * dispextern.h (struct face): New member font_info.
6536         * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
6537         specifying a fontset as well as those not having a fontset.
6538         (free_font): Make it empty.
6539         (realize_face): Use changed load_font.
6541         * xterm.c (x_get_char_font_and_encoding): If face doesn't
6542         fit for charset, get the right one.
6544         * xfaces.c (load_font): Take frame and name parameter, return
6545         font.
6546         (free_font): Likewise.
6547         (split_font_name): Compute numeric values for height, swidth etc.
6548         (cmp_font_names): Use them.
6549         (find_best_width_font): Ditto.
6550         (find_best_height_font): Ditto.
6551         (find_best_weight_font): Ditto.
6552         (find_best_slant_font): Ditto.
6553         (lface_hash): Add weight, slant, swidth and relief to hash value.
6554         (lface_equal_p): Make it faster.
6555         (lface_from_symbol): Use assq_no_quit.
6556         (Fnote_default_face_changed): Removed.
6557         (cmp_font_names): Use strcmp instead of xstricmp.
6558         (face_charset_registries): Removed.
6560 1998-04-20  Gerd Moellmann  <gerd@gnu.org>
6562         * frame.h (CHECK_FRAME): Give this macro a statement form.
6563         (CHECK_LIVE_FRAME): Ditto.
6565         * xfaces.c (find_best_width_font): Find the best matching font
6566         for a given width.
6567         (find_best_height_font): Likewise for height.
6568         (find_best_weight_font): Likewise for weight.
6569         (find_best_slant_font): Likewise for slant.
6570         (choose_face_font): Use them.
6571         (get_lface_attributes): Always return frame-local face attrs.
6572         (Finternal_merge_in_global_face): Merge local face with 
6573         global face attributes.
6575         * xfaces.c (check_lface_attrs, check_lface): Check consistency of
6576         Lisp face attributes.
6578 1998-04-19  Gerd Moellmann  <gerd@gnu.org>
6580         * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
6581         and :italic for compatibility.
6582         (Finternal_set_lisp_face_attribute_from_resource): Handle
6583         :bold and :italic.  Handle boolean resource values for 
6584         :underline and :italic.
6586         * xfns.c (display_x_get_resource): Make it externally visible.
6588         * xfaces.c (lface_from_symbol): Take a frame as parameter.
6589         If that frame is non-null, return the frame-local face.
6590         (Finternal_make_lisp_face): Additional frame argument.
6591         (lface_attributes): Get face attributes from global and frame-local
6592         definitions.
6593         (Finternal_lisp_face_equal_p): Additional frame argument.
6594         (merge_lisp_face_vector_with_property): Ditto.
6595         (Frealize_basic_faces): Removed.
6596         (Finternal_get_lisp_face_attribute): Additional frame argument.
6597         (Finternal_lisp_face_p): Ditto.
6598         (load_color) [MSDOS]: Removed because it isn't clear how
6599         to do this for MS-DOS.
6601         * xfaces.c (lface_from_symbol): Get global face definition
6602         from face-global-alist.
6604         * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
6605         as values for :underline and :inverse-video.
6606         (Finternal_set_lisp_face_attribute): Allow nil values.
6608 1998-04-17  Gerd Moellmann  <gerd@gnu.org>
6610         * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
6612         * xfaces.c (syms_of_xfaces): Add Vall_faces.
6613         (Finternal_make_lisp_face): Add new face to Vall_faces.
6615         * xdisp.c (echo_area_display): Remove code recomputing faces.
6616         (redisplay_internal): Ditto.
6617         (init_iterator): Do it here.
6619         * xfaces.c (choose_face_font): Check that swidth doesn't change
6620         for subusequent attributes.
6621         (xlfd_point_size): Return int.
6623         * xdisp.c (redisplay_internal, echo_area-display): If realized
6624         faces have been cleared, call recompute_basic_faces.
6626         * xfaces.c (recompute_basic_faces): Free realized faces.  Reset
6627         face_attributes_changed_p.
6628         (remove_all_realized_faces): Remove all realized faces on 
6629         all frames.
6630         (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
6632         * xdisp.c (redisplay_internal): If face attributes have been
6633         changed since the last redisplay, recompute basic faces.
6634         (echo_area_display): Ditto.
6636         * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
6638         * xfaces.c (min_char_bounds): If face cache not yet present,
6639         don't try to get font dimensions from faces.
6641         * xterm.c (x_frame_mode_line_height): If face cache not present
6642         set, return default height.
6644         * alloc.c (mark_face_cache): Check for null faces.  Correct
6645         index bug.
6647         * dispextern.h (struct face): Renamed from struct rface.  Member
6648         underline renamed underline_p.  Make it a bit-field.
6650         * xfaces.c (init_frame_faces): Allocate face cache.
6651         (free_frame_faces): Free face cache.
6652         (recompute_basic_faces): Realize basic faces only if face cache is
6653         allocated, i.e. after init_frame_faces has been called.
6655         * frame.c (make_frame): Initialze face cache with null.
6657         * xfaces.c (same_size_fonts): Removed.
6659         * xterm.c (x_set_glyph_string_gc): Add post-condition 
6660         s->gc != 0.
6661         (x_set_mouse_face_gc): Ditto.
6662         (x_set_mode_line_face_gc): Ditto.
6664         * xfaces.c (realize_default_face): Return int.  Value is 
6665         zero if frame params don't contain enough information to 
6666         realize the default face.
6667         (realize_basic_faces): Ditto.
6668         (init_frame_faces): Realize basic faces.
6670         * xfns.c (x_set_font): First store real font name in frame
6671         parameters, then call recompute_basic_faces.
6673         * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
6675 1998-04-16  Gerd Moellmann  <gerd@gnu.org>
6677         * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
6679         * xfns.c (Fx_face_fixed_p): Removed.
6680         (Fx_list_fonts): Moved to xfaces.c.
6682         * xfaces.c (compute_face_at_buffer_pos): Renamed to
6683         face_at_buffer_position.  Parameter charset removed; always
6684         compute face for CHARSET_ASCII.
6685         (face_at_string_position): Renamed from
6686         compute_face_at_string_pos. Parameter charset removed; always
6687         compute for CHARSET_ASCII.
6688         (lookup_face_for_charset): Take frame parameter instead of 
6689         face_cache.
6690         (lookup_face): Ditto.
6691         (compute_char_face): Renamed from compute_glyph_face.
6693         * xdisp.c (init_iterator): Initialize charset member.
6694         (reseat_iterator_to_string): Ditto.
6695         (get_charset_at_buffer_position): Determine charset at
6696         buffer position in current_buffer.
6697         (reseat_iterator): Call above function.
6698         (compute_face_at_iterator_position): Call
6699         compute_face_at_buffer_pos.
6700         (compute_face_at_iterator_string_position): Call
6701         compute_face_at_string_pos.
6702         (get_face_from_id): Removed.
6703         (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
6704         Call get_charset_at_buffer_position.
6705         (reseat_iterator): Determine face if charset at pos differs
6706         from iterator's charset.
6707         (reseat_iterator_to_glyph_pos): Removed.
6709         * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
6710         Determine charset from buffer position.
6711         (compute_string_char_face): Renamed to compute_face_at_string_pos.
6712         (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
6714         * dispextern.h (struct display_iterator): Add member charset.
6716 1998-04-15  Gerd Moellmann  <gerd@gnu.org>
6718         * xfaces.c (compute_char_face): Removed.
6720         * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
6721         with new parameter list.
6723         * xfaces.c (region_face): Removed.
6724         (allocate_face): Removed.
6725         (copy_face): Ditto.
6726         (face_eql): Removed.
6727         (intern_face): Removed.
6728         (clear_face_cache): Removed.
6729         (load_font): Ditto.
6730         (unload_font): Ditto.
6731         (load_color): Ditto.
6732         (unload_color): Ditto.
6733         (new_computed_face): Ditto.
6734         (intern_computed_face): Ditto.
6735         (ensure_face_ready): Ditto.
6736         (merge_faces): Ditto.
6737         (compute_base_face): Ditto.
6738         (merge_face_list): Ditto.
6739         (Fmake_face_internal): Removed.
6740         (Fset_face_attribute_internal): Ditto.
6741         (face_name_id_number): Removed.
6742         (Fframe_face_alist): Ditto.
6743         (Fset_frame_face_alist): Ditto.
6744         (Finternal_next_face_id): Ditto.
6746         * xterm.h (struct x_output): Remove computed_faces, and
6747         param_faces.  Remove macros accessing them.
6749         * xfaces.c: Entirely new face implementation added.
6751 1998-04-11  Gerd Moellmann  <gerd@gnu.org>
6753         * dispextern.h (struct glyph_pos): Member `bufpos' renamed
6754         `charpos'.
6756 1998-04-10  Gerd Moellmann  <gerd@gnu.org>
6758         * xterm.c (x_scroll_bar_move): Clear only regions not covered by
6759         scroll bar window to reduce flickering.  Clear entire height.
6761         * xdisp.c (move_iterator_vertically_backward): Set iterator's
6762         current_x and hpos to zero after moving to previous line
6763         start.
6765 1998-04-03  Gerd Moellmann  <gerd@gnu.org>
6767         * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
6769         * xfaces.c (xlfd_point_size): Compute relative point size of
6770         fonts from font and frame resolution.
6771         (sort_fonts): New function to sort fonts, temporarily setting
6772         font_frame to the frame in effect.
6773         (xlfd_point_size): Take additional frame parameter to be able
6774         to get at the display's resolution.
6776         * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
6777         BLACK_PIX_DEFAULT.
6778         (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
6779         screen of display.
6781 1998-03-31  Gerd Moellmann  <gerd@gnu.org>
6783         * xfaces.c (choose_face_fontset): Instantiate fontsets.
6785         * fontset.h: Add external declarations for Vfontset_alias_alist
6786         and Vglobal_fontset_alist.
6788         * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
6789         (realize_default_face): If frame parameters contain an artificial
6790         font name naming a fontset, set the family of the default face to
6791         the fontset name given by the registry.
6793         * Makefile.in (alloc.o): Add dependency to dispextern.h.
6795 1998-03-22  Gerd Moellmann  <gerd@gnu.org>
6797         * alloc.c (mark_object): Add function prototype.  Add cast to
6798         Lisp_Object pointer in call to mark_object for symbol names
6799         because this otherwise gives a warning from gcc 2.8.1.
6800         (mark_face_cache): Mark Lisp objects in realized faces.
6802 1998-03-19  Gerd Moellmann  <gerd@gnu.org>
6804         * frame.h (struct frame): Add member face_cache.
6806         * alloc.c (mark_object): Mark face cache.
6807         (mark_face_cache): Mark Lisp faces in face cache of frame.
6809         * frame.c (make_frame): Initialize face_cache.
6810         (Fdelete_frame): Free it.
6812 1998-03-18  Gerd Moellmann  <gerd@gnu.org>
6814         * xfaces.c: Very first skeleton of functions for face realization,
6815         face merging, face cache etc.
6817         * dispextern.h (struct rface): Realized faces.  Will replace
6818         struct face when tested.
6819         (struct face_cache): Realized face caches.
6821         * xdisp.c (init_iterator): Initialize area member of display
6822         iterator.
6824 1998-03-17  Gerd Moellmann  <gerd@gnu.org>
6826         * xterm.c (x_append_glyph): Use it->area to store glyphs.
6828         * dispextern.h (struct display_iterator): New member area.
6830         * xterm.c (note_overwritten_text_cursor): Note when the text
6831         cursor of a window is overwritten.
6833         * xdisp.c (set_cursor_from_row): If PT is not found in the
6834         row, display the cursor at the start of the row.
6836         * dispnew.c (direct_output_forward_char): Call
6837         set_cursor_from_row.
6839         * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
6840         position is not in an overlay string, set iterator's position and
6841         method explicitly so.
6842         (set_cursor_from_row): Correct cursor position calculation. 
6843         Make it externally visible.
6844         (redisplay_window): Call set_cursor_from_row so that there is only
6845         one place where the cursor position is calculated from a current
6846         row.
6848         * dispextern.h (struct display_iterator): New member
6849         overlay_strings_at_end_processed_p.
6851         * xdisp.c (check_iterator): Perform sanity checks on
6852         display_iterators.
6853         (next_element_from_buffer): Check for overlay strings at ZV.
6855 1998-03-16  Gerd Moellmann  <gerd@gnu.org>
6857         * buffer.c (init_buffer_once): Add left_margin_width and
6858         right_margin_width to buffer_local_flags.
6860         * dispnew.c (margin_glyphs_to_reserve): Function computing
6861         number of glyphs to reserve for a marginal area.
6862         (adjust_glyph_matrix): Call it.
6863         (adjust_frame_glyphs_for_frame_redisplay): Return if frame
6864         is not alive.
6866         * window.c (Fset_window_margins): Allow floats.
6868         * buffer.c (syms_of_buffer): Add buffer-local variables
6869         left-margin-width and right-margin-width.  Add defaults
6870         default-left-margin-width and default-right-margin-width.
6872         * buffer.h (struct buffer): New members left_margin_width
6873         and right_margin_width.
6875         * window.c (Fset_window_margins): Make window the last and
6876         optional argument.
6878         * xterm.c (x_draw_glyphs): Compute x-positions for rows with
6879         flag no_marginal_areas_p differently.
6880         (x_clear_end_of_line): Ditto.
6881         (x_draw_glyph_string_relief): Compute width of relief differently
6882         for rows with flag no_marginal_areas_p.
6884         * dispnew.c (update_window_line): Update marginal areas only
6885         for rows that don't have no_marginal_areas_p set.
6887         * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
6888         (display_menu_bar): Ditto.
6890         * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
6892         * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
6893         marginal areas in window-based redisplay.
6895         * dispextern.h (struct glyph_matrix): New members
6896         left_margin_glyphs and right_margin_glyphs.
6898 1998-03-15  Gerd Moellmann  <gerd@gnu.org>
6900         * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
6902         * charset.c (non_ascii_char_to_string): Use char type parameters
6903         because the function is used that way from outside.  Use unsigned
6904         char internally.
6906         * window.c (change_window_height): Return void.
6907         (make_dummy_parent): Return void.
6908         (init_window_once): Return void.
6909         (syms_of_window): Ditto.
6910         (keys_of_window): Ditto.
6911         (delete_window): Correct return with and without value.
6913         * buffer.c (record_buffer): Return void.
6915         * marker.c (unchain_marker): Return void.
6917         * window.c (unshow_buffer): Return void.
6918         (replace_window): Ditto.
6919         (delete_window): Ditto.
6921         * term.c (delete_glyphs_hook): Void return type.
6922         (ring_bell_hook): Ditto.
6923         (set_terminal_window_hook): Ditto.
6925         * sysdep.c (init_sigio): Return void.
6927         * xterm.c (x_set_window_size): Return void.
6928         (x_calc_absolute_position): Ditto.
6929         (x_set_offset): Ditto.
6930         (x_focus_on_frame): Ditto.
6931         (x_unfocus_frame): Ditto.
6932         (x_make_frame_visible): Ditto.
6933         (x_make_frame_invisible): Ditto.
6934         (x_iconify_frame): Ditto.
6935         (x_destroy_window): Ditto.
6936         (x_wm_set_window_state): Ditto.
6937         (x_wm_set_icon_pixmap): Ditto.
6938         (x_wm_set_icon_position): Ditto.
6939         (x_initialize): Ditto.
6940         (x_error_quitter): Ditto.
6941         (x_destroy_window): Use xfree instead of free.
6943         * keyboard.c (clear_waiting_for_input): Return void.
6945         * xterm.c (x_wm_set_size_hint): Return void.
6946         (x_raise_frame): Ditto.
6947         (refreshicon): Ditto.
6948         (x_error_catcher): Ditto.
6949         (x_clear_errors): Ditto.
6951         * keyboard.c (record_asynch_buffer_change): Return void.
6953         * xterm.c (XTroï\0ðoï\0ðÃâ\0ðoï\0ðoï\0ðTÿ\0ðLá\0ðoï\0ðterminal_window): Ditto.
6954         (x_lower_frame): Ditto.
6955         (x_scroll_bar_clear): Ditto.
6956         (XTflash): Add default case in switch for -Wall.
6957         (construct_mouse_click): Return Qnil.
6958         (cancel_mouse_face): Return void.
6959         (x_queue_event): Use xmalloc instead of malloc.
6960         (x_unqueue_events): Use xfree instead of free.
6962         * ccl.c (ccl_driver): Return int.
6964         * keyboard.c (stop_polling): Return void.
6965         (start_polling): Ditto.
6967         * term.c (keys): Add braces in initializer list for -Wall.
6969         * sysdep.c (tabs_safe_p): Return int.
6970         (init_baud_rate): Return void.
6972         * xterm.c (x_draw_bitmap): Add default case.
6973         (x_setup_relief_colors): Use DefaultScreen instead of
6974         DefaultScreenOfDisplay.
6975         (x_delete_glyphs): Return void.
6976         (construct_menu_click): Put in #if 0 because it isn't called.
6978         * xdisp.c (load_overlay_strings): Remove extraneous argument
6979         in call to qsort.
6980         (get_overlay_arrow_glyph_row): Add missing return value.
6982         * window.c (set_window_height): Return void.
6983         (set_window_width): Ditto.
6985         * sysdep.c (request_sigio): Return void.
6986         (unrequest_sigio): Ditto.
6987         (get_frame_size): Ditto.
6989         * scroll.c (scroll_cost): Return int.
6990         (do_line_insertion_deletion_costs): Return void.
6992         * frame.c (Fdelete_frame): Use xfree instead of free.
6994         * fileio.c (report_file_error): Return void.
6996         * dispnew.c: Make compilable with -Wall.
6997         * term.c: Ditto.
6999         * charset.h (CHAR_LEN): Moved here from dispextern.h.
7001 1998-03-14  Gerd Moellmann  <gerd@gnu.org>
7003         * xterm.c (x_scroll_bar_move): Clear under scroll bar if height is
7004         increased.
7005         (x_setup_relief_color): Free color only for appropriate visual
7006         classes.
7008         * xterm.c (expose_window): Fix calculation of intersection of mode
7009         line rectangle with exposed rectangle.
7011         * xdisp.c (redisplay_window): Don't do cursor movement based
7012         on current matrix if w->last_point is not valid.
7014 1998-03-09  Gerd Moellmann  <gerd@gnu.org>
7016         * xterm.c (expose_line): Redraw mode line and menu lines
7017         differently because they reach into the scroll bar area.
7019         * xdisp.c (redisplay_window): If redisplaying with same window
7020         start, don't accept cursor on partially visible line.
7022 1998-03-08  Gerd Moellmann  <gerd@gnu.org>
7024         * xterm.c (x_set_glyph_string_clipping): Set clip rectangle
7025         for wider mode lines.
7026         (x_draw_glyph_string_relief): Use larger rectangle for mode lines.
7028         * xdisp.c (init_iterator): Increase last_visible_x by vertical
7029         scroll bar width for mode lines.
7031         * dispnew.c (allocate_matrices_for_window_redisplay): Include
7032         vertical scroll bar width in width calculation so that we can
7033         display mode lines wider.
7035         * xdisp.c (redisplay_window): Restore buffers before returning
7036         when fonts have changed.
7038         * dispnew.c (update_window): Mark invisible rows in the current
7039         matrix invalid.
7041         * xdisp.c (try_window_id): Force update of first row displayed
7042         at window end.
7043         (dump_glyph_matrix): Extracted from Fdump_glyph_matrix.
7045 1998-03-05  Gerd Moellmann  <gerd@gnu.org>
7047         * dispextern.h (struct glyph_row): Member max_ascent renamed
7048         ascent.  Member max_descent replaced by height.
7049         (struct display_iterator): Member max_descent replaced by height.
7050         (MATRIX_ROW_PIXEL_HEIGHT): Removed.
7052         * xterm.c (x_alloc_lighter_color): Don't free colors if visual
7053         class makes it unnecessary or dangerous.
7055         * xdisp.c (redisplay_window): Case only point has changed, and
7056         point has moved forward.  Move forward over overlay strings.
7057         (display_line): Don't set cursor if first glyph from PT is part of
7058         a continuation line.
7060 1998-02-21  Gerd Moellmann  <gerd@gnu.org>
7062         * xdisp.c (start_display): When computing continuation lines
7063         width, add current_x to the continuation lines width because
7064         move_iterator_to will stop in front of the buffer position moved
7065         to.
7067 1998-02-20  Gerd Moellmann  <gerd@gnu.org>
7069         * xdisp.c (redisplay_window): Don't try try_window_id if
7070         windows_or_buffers_changed.
7072         * xterm.c (x_alloc_lighter_color): Try both factor and delta to
7073         determine a color.
7074         (x_setup_relief_color): Allocate/ change one relief.
7075         (x_setup_relief_colors): Call above function.
7077         * xterm.h (struct relief): New structure type holding relief info:
7078         GCs, colors, and whether colors are allocated.
7080         * xterm.c (x_alloc_lighter_color): If multiplying by factor 
7081         produces the same color, try adding a delta to RGB values.
7082         (x_setup_relief_colors): Free color cells.
7084         * xterm.h (struct x_output): New members white_relief_pixel, 
7085         black_relief_pixel holding the foreground colors allocated for
7086         relief GCs.  New members white_allocated_p, black_allocated_p.
7088         * xterm.c (x_scroll_run): Don't set updated_window to null.
7089         This resets updated_window when called from scrolling_window.
7091         * dispextern.h (scroll_run_hook): Renamed from line_dance_hook.
7092         
7093         * xterm.c (x_scroll_run): Additional window parameter.  Set
7094         and reset updated_window.
7096         * dispnew.c (line_dance_hook): Additional window parameter.
7098         * xdisp.c (try_window_reusing_current_matrix): Don't call
7099         update_window_begin/end here.  The end function would display the
7100         cursor on a wrong position and the additional functionality of
7101         update_window_begin is not needed anyway.  Just set
7102         updated_window.
7103         (try_window_id): Ditto.
7105         * dispnew.c (Fblink_cursor): Remove call to detect_input_pending.
7106         Don't redraw cursor during redisplay.
7108         * xterm.c (x_scroll_run): Renamed from do_line_dance.
7110         * xdisp.c (redisplay_window): For window-based redisplay, alway
7111         try try_window_id.
7113         * xterm.c (struct glyph_string): New member two_byte_p that is
7114         non-zero if 16-bit drawing functions must be used.
7115         (x_fill_composite_glyph_string): Set it.
7116         (x_fill_glyph_string): Set it.
7117         (x_draw_glyph_string_foreground): Use it.
7118         (x_draw_vertical_border): Make line 1 pixel less tall.
7119         (x_draw_row_bitmaps): Decrease width of area cleared on the left
7120         side by 1 pixel if window is not right-most hasn't vertical scroll
7121         bars.
7122         (x_draw_phys_cursor_glyph): Do nothing if phys_cursor.hpos is
7123         out of bounds.
7124         (x_draw_glyph_string_foreground): Use XDrawImageStringX if
7125         hl == DRAW_CURSOR.
7127         * xdisp.c (start_display): Check that window start is at line
7128         start if GLYPH_DEBUG != 0.
7130         * window.c (window_scroll_pixel_based): Move assertion to
7131         start_display.
7133 1998-02-19  Gerd Moellmann  <gerd@gnu.org>
7135         * xterm.c (x_redraw_cursor): Don't redraw the cursor if the 
7136         frame hasn't the focus.
7138         * window.c (make_window): Initialize dy.
7139         (replace_window): Ditto.
7141         * window.h (window): New member dy specifying the amount by which
7142         a window is scrolled "smoothly".
7144         * xterm.c (x_set_glyph_string_clipping): Don't use glyph string's
7145         y-position because it can be negative. 
7146         (x_draw_row_bitmaps): Don't clear with negative y-position like
7147         above.
7148         (x_clear_end_of_line): Same theme as above.
7150         * xterm.c (x_alloc_nearest_color): Allocate a color or, if no
7151         exact match exists, the nearest existing color.  Patterned after
7152         defined_color.
7153         (x_alloc_lighter_color): Allocate a color that is lighter or
7154         darker than a given color by a specified factor.
7155         (x_setup_relief_colors): Set up relief line colors based on 
7156         the background color of a glyph string face.
7157         (x_draw_glyph_string_relief): Call x_setup_relief_colors.
7159         * xfns.c (x_make_gc): Don't allocate relief GCs.
7160         * widget.c (create_frame_gcs): Don't allocate relief GCs.
7161         (setup_frame_gcs): Don't change relief GCs.
7163         * xterm.h (struct x_output): New member relief_background giving
7164         the background pixel color for which relief GCs can be used.
7165         Set by x_setup_relief_colors.
7167         * xterm.c (x_draw_glyph_string_relief): Draw relief differently
7168         for mode and menu lines.
7170         * xdisp.c (set_next_iterator_stop_pos): No longer static.
7172         * dispnew.c (direct_output_for_insert): Call
7173         set_next_iterator_stop_pos after having changed it2.endpos.
7175 1998-02-17  Gerd Moellmann  <gerd@gnu.org>
7177         * dispnew.c (update_window): Work on selected_window, only.
7179         * xterm.c (x_erase_phys_cursor): Return quickly if physical cursor
7180         hpos is >= number of glyphs in the cursor row.
7182         * xdisp.c (try_window_id): Bug fix; update_window_end was not
7183         called.
7185 1998-02-16  Gerd Moellmann  <gerd@gnu.org>
7187         * xdisp.c (init_iterator): Increase last_visible_x for mode lines
7188         and menu lines.
7190         * dispnew.c (allocate_matrices_for_window_redisplay): Allocate
7191         enough glyphs to display a mode line or menu line which draws over
7192         flags areas.
7194         * xterm.c (XTset_vertical_scroll_bar): Use
7195         WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT instead of
7196         VERTICAL_SCROLL_BAR_PIXEL_HEIGHT.
7197         (x_draw_glyphs): Draw over flags areas when drawing a mode line 
7198         or menu.
7199         (x_set_glyph_string_clipping): Set clipping differently if drawing
7200         a mode line or menu line.
7202         * xterm.h (VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
7204         * xterm.c (expose_line): Don't draw bitmaps for mode lines and
7205         menu lines.
7206         (x_scroll_bar_create): Don't clear flags areas.
7207         (x_draw_row_bitmaps): Clear visible row height, only.
7209         * dispnew.c (Fblink_cursor): Moved here from xdisp.c.
7211 1998-02-15  Gerd Moellmann  <gerd@gnu.org>
7213         * dispnew.c (direct_output_for_insert): When checking for tabs in
7214         the line, set it2.endpos to ZV.
7215         
7216         * window.h (struct window): New member cursor_off_p.
7217         * xterm.c (x_redraw_cursor): Implementation of redraw_cursor_hook
7218         for X.
7219         * dispnew.c (redraw_cursor_hook): If non-null, function that can
7220         be called to display or erase the cursor.
7221         * xdisp.c (Fblink_cursor): Blink the cursor of a specified window
7222         or selected_window.
7224         * xterm.h (text_cursor_kinds): Enumerators changed to uppercase.
7226         * dispnew.c (update_window_line): Special handling of inverse
7227         lines in #if 0 removed.
7229         * xterm.c (x_write_glyphs): Renamed from XTwrite_glyphs.
7230         (x_insert_glyphs): Renamed from XTinsert_glyphs.
7231         (x_clear_frame): Renamed from XTclear_frame.
7232         (x_clear_end_of_line): Renamed from XTclear_end_of_line.
7233         (x_ins_del_lines): Renamed from XTins_del_lines.
7234         (x_change_line_height): Renamed from XTchange_line_height.
7235         (x_delete_glyphs): Renamed from XTdelete_glyphs.
7236         (x_clear_cursor): Renamed from clear_cursor.
7237         (x_update_begin): Renamed from XTupdate_begin.
7238         (x_update_end): Renamed from XTupdate_end.
7239         (x_update_window_begin): Renamed from XTupdate_window_begin.
7240         (x_update_window_end): Renamed from XTupdate_window_end.
7241         (x_frame_mode_line_height): Renamed from XTframe_mode_line_height.
7242         (x_produce_glyphs): Renamed from XTproduce_glyphs.
7243         (x_produce_special_glyphs): Renamed from XTproduce_special_glyphs.
7244         (x_produce_special_glyphs): Implementation in #if 0 removed.
7246         * xdisp.c (Fdump_redisplay_state): Display row's fill_line_p
7247         flag in the dump.
7249         * dispnew.c (update_text_area): Handling of glyphs with pixel
7250         width zero removed.  Decrement desired stop pos if desired row
7251         fills its line.
7253         * xterm.c (x_fill_glyph_string): Handling of glyphs with pixel
7254         width zero removed.
7255         (BUILD_GLYPH_STRINGS): Set glyph string flag
7256         extends_to_end_of_line_p based on row's flag fill_line_p and face
7257         background and stipple.  Make sure it works for composite characters.
7259         * xdisp.c (extend_face_to_end_of_line): Set the glyph row flag
7260         fill_line_p.  For window-based redisplay, add a space only if
7261         the row is empty so that we know the face to draw.
7263         * dispextern.h (struct glyph_row): New flag fill_line_p.  Non-zero
7264         means draw the face of the last glyph in the text area to the
7265         right end of the text area.
7267         * xdisp.c (init_iterator): Show region in window mini-buffer
7268         window refers to.
7270         * dispextern.h (struct display_iterator): Redundant member 
7271         region_showing_p removed.  Test for region_beg > 0 instead.
7273         * dispnew.c (update_text_area): Clear to end of line if cursor is
7274         beyond the end of the desired line.  Necessary because we don't
7275         have a phys_cursor_glyph with which to erase the cursor.  We don't
7276         have one because this method of drawing a cursor doesn't work with
7277         lbearing/rbearing.
7279         * xterm.c (XTinsert_glyphs): Block input.
7281 1998-02-14  Gerd Moellmann  <gerd@gnu.org>
7283         * xterm.c (x_set_cursor_gc): Don't use cursor_gc for composite
7284         glyph strings.
7285         (x_draw_glyph_string_background): Fill background with background
7286         pixel for the first glyph of a composite character.
7288         * xdisp.c (try_window): Change return type to int.  Value is zero
7289         if fonts were loaded during redisplay.
7290         (redisplay_window): Return if fonts have been loaded during
7291         redisplay.
7292         (append_space): New parameter default_face_p.
7294 1998-02-13  Gerd Moellmann  <gerd@gnu.org>
7296         * dispnew.c (adjust_glyph_matrix): In case of optimizing C-x 2,
7297         don't let a partially visible line in a current matrix stay
7298         enabled.
7300 1998-02-09  Gerd Moellmann  <gerd@gnu.org>
7302         * minibuf.c (read_minibuf): Put access to minibuffer_prompt_length
7303         in #if PROMPT_IN_BUFFER.
7305         * xdisp.c (display_line): If row ends in ZV, make the space
7306         that is added to place the cursor on it appear in default face.
7308         * xterm.c (expose_area): New function redrawing a single 
7309         glyph row area.
7310         (expose_line): Use it to redraw all areas of a row.
7312         * dispextern.h (move_operation_enum): New enum
7313         move_operation_enum.
7315         * window.c (window_scroll_pixel_based): Remove now unnecessary
7316         code that made sure that it->current_y doesn't become negative.
7318         * xdisp.c (move_iterator_in_display_line_to): New parameter
7319         op.  Special meaning of to_pos <= 0 and to_x < 0 removed.
7320         (move_iterator_to): Ditto.
7322         * dispextern.h (struct glyph_matrix): New member window_width.
7324         * dispnew.c (adjust_glyph_matrix): Set window_width.  Optimize
7325         case of changing window height.
7327         * xterm.c (x_draw_row_bitmaps): Don't clear vertical window
7328         border to the left. 
7330         * dispextern.h (struct glyph_row): Remove right_to_left_p.  RMS
7331         says this aspect of Emacs is currently redesigned.
7333         * xterm.c (x_clip_to_row): Subtract 1 from clip width if we
7334         have to draw a vertical border.
7336         * window.c (window_scroll_pixel_based): When scrolling down by
7337         screen-fulls, make sure it.current_y doesn't get negative because
7338         this would confuse move_iterator_vertically.
7340         * xdisp.c (move_iterator_vertically_backward): Bug fix for
7341         the case continuation lines are involved.
7342         (try_window_id): Don't set the cursor into scroll margins.
7344 1998-02-08  Gerd Moellmann  <gerd@gnu.org>
7346         * xterm.c (x_append_glyph): Don't compute left_overhang and
7347         right_overhang.
7348         (XTproduce_glyphs): left_overhang and right_overhang removed.
7349         Set it->glyph_row->contains_overlapping_glyphs_p.
7351         * xdisp.c (Fdump_redisplay_state): Output of glyph->left_overhang
7352         and right_overhang removed.
7354         * dispextern.h (struct glyph_row): New member
7355         contains_overlapping_glyphs_p used to optimize glyph drawing.
7356         (struct display_iterator): left_overhang and right_overhang
7357         removed.
7358         (struct glyph): Ditto.
7360         * xterm.c (x_draw_relief): Removed.
7361         (x_draw_bitmap): Renamed from draw_bitmap.
7362         (x_draw_glyphs): Completely new implementation of draw_glyphs
7363         capable of handling arbitrary lbearing and rbearing values.
7364         Several sub-functions not mentioned here.
7366 1998-01-30  Gerd Moellmann  <gerd@gnu.org>
7368         * xterm.c (x_erase_phys_cursor): Clear area under the cursor only
7369         if displaying hollow box cursor.  draw_glyphs should handle 
7370         other cases.
7371         (draw_glyphs): Move start to the left and end to the right if they
7372         overlap with previous or following characters.  
7373         (draw_glyphs): If background is cleared for hl == DRAW_CURSOR,
7374         make sure XDrawString uses function GXset.  Otherwise the 
7375         character under the cursor would be invisible.
7376         (x_draw_bar_cursor): Don't draw over previous character if it
7377         has right_overhang.
7379         * window.c (get_phys_cursor_glyph): Return the glyph under a
7380         window's physical cursor.
7381         
7382         * xterm.c (x_draw_hollow_cursor): Use get_phys_cursor_glyph.
7383         (x_draw_bar_cursor): Ditto.
7384         (x_erase_phys_cursor): Ditto.
7385         (x_phys_cursor_in_rect_p): Ditto.
7386         (x_display_and_set_cursor): Remove reference to w->phys_cursor_glyph.
7388         * window.c (make_window): Remove reference to phys_cursor_glyph.
7389         (replace_window): Ditto.
7391         * window.h (struct window): Remove phys_cursor_glyph.  There is
7392         now always a glyph present for placing the cursor on it in 
7393         each glyph row, even at the end of a line.
7395         * xdisp.c (append_space): Function to add a space to an iterators
7396         glyph row.
7397         (display_line): Add spaces at the end of lines that are used to
7398         place the cursor on them.
7399         (compute_line_metrics): If row consists of a space only that was
7400         added to place the cursor on it, use that space's height as the 
7401         line height.
7403 1998-01-29  Gerd Moellmann  <gerd@gnu.org>
7405         * xdisp.c (Fdump_redisplay_state): Dump left and right overhang of
7406         glyphs.
7408 1998-01-28  Gerd Moellmann  <gerd@gnu.org>
7410         * xterm.c (x_append_glyph): Set overhang of glyph from iterator.
7411         (XTproduce_glyphs): Set it->left_overhang and it->right_overhang.
7413         * dispextern.h (struct glyph): Add left_overhang and
7414         right_overhang.  
7415         (struct display_iterator): Ditto.
7417         * dispnew.c (direct_output_for_insert): Give up if newly inserted
7418         glyphs have different ascent or descent than original row.
7420         * xdisp.c (compute_line_metrics): Compute row->max_ascent and
7421         row->max_descent only if unknown.
7422         (display_line): Compute row->max_ascent and row->max_descent.
7423         (display_string): Ditto.
7425         * window.h (struct window): New members phys_cursor_ascent and
7426         phys_cursor_descent.  
7428         * xterm.c (x_phys_cursor_in_rect_p): Use them.
7429         (x_draw_hollow_cursor): Ditto.
7430         (x_erase_phys_cursor): Ditto.
7431         (x_display_and_set_cursor): Set them.
7432         (x_append_glyph): Don't set glyph members that were removed.
7434         * dispextern.h (struct glyph): Members ascent, descent,
7435         contributes_to_line_height_p removed.
7437 1998-01-25  Gerd Moellmann  <gerd@gnu.org>
7439         * dispextern.h (DEFAULT_FACE_ID, MODE_LINE_FACE_ID): Symbolic
7440         names for face ids of frame default face and mode line face.
7442         * xdisp.c (compute_face_at_iterator_string_position): If
7443         displaying a mode line use MODE_LINE_FACE_ID instead of
7444         DEFAULT_FACE_ID.
7446         * xdisp.c (reseat_iterator_to_string): Additional parameter start.
7447         (display_string): Ditto, additional parameter lisp_string.
7448         (display_line): Call display_string with Lisp mini-buffer prompt
7449         string.
7450         (display_menu_bar): Call display_string with Lisp string.
7451         (display_mode_element): Ditto.
7452         (next_element_from_string): Make it work for non-overlay Lisp
7453         strings with field width and precision.
7455         * minibuf.c (minibuffer-prompt-in-buffer): Bound if
7456         PROMPT_IN_BUFFER.
7458         * xfaces.c (compute_string_char_face): Fix face computation
7459         for overlay strings.
7461         * xdisp.c (struct overlay_entry): Add member after_string_p.
7462         (load_overlay_strings): Simplify.
7464         * window.c (delete_window): Defer glyph matrix adjustment.
7465         (Fsplit_window): Ditto.
7466         (change_window_height): Ditto.
7467         (Fset_window_configuration): Ditto.
7468         (Fset_window_margins): Ditto.
7469         * frame.c (set_menu_bar_lines): Ditto.
7470         (Fmake_terminal_frame): Ditto.
7471         * dispnew.c (change_frame_size_1): Ditto.
7473 1998-01-24  Gerd Moellmann  <gerd@gnu.org>
7475         * xdisp.c (move_iterator_vertically_backward): Change algorithm.
7477         * dispnew.c (direct_output_for_insert): Give up if start 
7478         position has overlay strings.
7480         * xdisp.c (display_line): Don't set cursor if row ends in middle
7481         of overlay string.
7482         (Fdump_redisplay_state): Print complete row start and end
7483         position.
7484         (redisplay_window): Cursor movement when matrix hasn't changed---
7485         if PT < last_point, maybe move forward if row ends at PT and
7486         in middle of char.
7488         * minibuf.c (read_minibuf): Save the value of
7489         minibuffer_prompt_length in minibuf_save_list.
7490         (read_minibuf_unwind): Restore minibuffer_prompt_length.
7492         * xdisp.c (redisplay_window): Add assertion for cursor movement
7493         case, PT < last_point.
7494         (move_iterator_in_display_line_to): If to_pos specified, move
7495         over before-strings.
7497         * dispextern.h (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test
7498         start.string_index > 0.
7500         * xdisp.c (redisplay_internal): Adjust glyphs if fonts_changed_p
7501         is set.  Retry redisplay if fonts_changed_p is set before update.
7503         * xterm.c (x_load_font): Set fonts_changed_p.
7505         * xfaces.c (Fset_face_attribute_internal): Set fonts_changed_p.
7507         * dispnew.c (adjust_glyphs_for_font_change): Removed.
7509         * xdisp.c (try_window): Check fonts_changed_p.
7510         (try_window_reusing_current_matrix): Ditto.
7511         (try_window_id): Ditto.
7513         * dispnew.c (adjust_glyphs_for_font_change): Set fonts_changed_p.
7514         (fonts_changed_p): Flag indicating a font change since the last
7515         glyph matrix adjustment.
7517         * xterm.c (x_per_char_metric): Use font->max_bounds as
7518         char metric of the font's default char if the default char
7519         hasn't per char metric itself.
7521         * xfaces.c (Fset_face_attribute_internal): Adjust glyphs
7522         for font change.
7523         (min_char_bounds): Check face->font != NULL.
7524         (font_min_bounds): Return minimum font metrics.  Capture the 
7525         case of invalid min_bounds contents.
7526         (min_char_bounds): Call font_min_bounds.
7528 1998-01-22  Gerd Moellmann  <gerd@gnu.org>
7530         * xdisp.c (start_display): Don't set it->prompt_width if
7531         PROMPT_IN_BUFFER.
7532         (move_iterator_in_display_line_to): Ditto.
7533         (display_line): Don't display prompt via display_string if
7534         PROMPT_IN_BUFFER.
7536         * minibuf.c (Fminibuffer_prompt_width): Return value from
7537         current_buffer if PROMPT_IN_BUFFER.
7538         (read_minibuf): If PROMPT_IN_BUFFER, insert prompt into 
7539         mini-buffer and make it read-only.
7540         (Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
7541         minibuffer_prompt_length instead of BEGV.
7542         (Fminibuffer_complete_word): Ditto.
7543         (Fminibuffer_complete_word): Ditto.
7545         * insdel.c (del_range_1): If PROMPT_IN_BUFFER, and start position
7546         is less than mini-buffer prompt width, use prompt width as start.
7548         * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, and start
7549         position is less than mini-buffer prompt width, use the prompt
7550         width as start.
7552         * cmds.c (Fbeginning_of_line): If PROMPT_IN_BUFFER, set point to
7553         end of prompt if applied to a mini-buffer and BEG reached.
7555 1998-01-21  Gerd Moellmann  <gerd@gnu.org>
7557         * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, add prompt
7558         length to start position.
7560         * buffer.c (Fget_buffer_create): Initialize
7561         minibuffer_prompt_length.
7562         (Fmake_indirect_buffer): Ditto.
7563         (Fkill_buffer): Ditto.
7565         * buffer.h (struct buffer): Add member minibuffer_prompt_length
7566         if PROMPT_IN_BUFFER.
7568 1998-01-19  Gerd Moellmann  <gerd@gnu.org>
7570         * xdisp.c (next_element_from_string): Make it work for arbitrary
7571         Lisp strings.
7572         (set_iterator_to_next): Advance to next overlay string only
7573         if it->string is an overlay string.
7575         * dispextern.h (struct display_iterator):
7576         next_ovstr_face_check_pos renamed next_string_face_check_pos.
7578         * xfaces.c (compute_string_char_face): Compute face for 
7579         arbitrary Lisp string.  Renamed from compute_overlay_string_char_face.
7581         * xdisp.c (next_element_from_string): Renamed from
7582         next_element_from_overlay_string.
7583         (compute_face_at_iterator_string_position): Renamed from 
7584         compute_face_at_iterator_overlay_string_position.
7586         * dispextern.h (struct display_iterator): Member overlay_string
7587         renamed string.
7589         * xdisp.c (next_element_from_c_string): Renamed from
7590         next_element_from_string.
7592         * dispextern.h (struct glyph_pos): Reversed meaning of
7593         overlay_string_index and string_index.
7595         * xdisp.c (next_element_from_overlay_string): Fix bug that made
7596         this function always return the first character of an overlay
7597         string.
7599 1998-01-18  Gerd Moellmann  <gerd@gnu.org>
7601         * xdisp.c (reseat_iterator): Set next_invisible_check_pos only if
7602         forced or new pos > next_invisible_check_pos.
7603         (redisplay_window): Don't try same window start if PT < window
7604         start.
7605         (move_iterator_vertically): Bug fix satisfying post-condition
7606         when ZV is reached and no newline in front.
7607         (move_iterator_vertically_backward): New implementation.
7608         (move_iterator_vertically_backward): Bug fixes.
7610         * xterm.c (XTmouse_position): Change call to min_char_bounds.
7611         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
7612         (adjust_glyphs_for_font_change): Always adjust.
7614         * dispnew.c (struct dim): Use int.
7616         * xfaces.c (Fset_face_attribute_internal): Set face->font_name;
7617         (allocate_face): Initialize it.
7618         (load_font): Use XLoadQueryFont again instead of x_load_font.
7619         (unload_font): Use XFreeFont again.
7620         (min_char_bounds): Iterate over fonts of faces.  Use frame's
7621         font sizes as default.  Remove parameter except_last_font_p.
7623         * dispextern.h (struct face): Add font_name.
7625 1998-01-17  Gerd Moellmann  <gerd@gnu.org>
7627         * xdisp.c (move_iterator_vertically): Check post-condition.  Move
7628         to start of line if ending at ZV and no newline in front.
7629         (move_iterator_to): If to_y specified, always first move to x = 0,
7630         so that move stops at line start instead of line end.  This is
7631         probably what callers would expect to happen.
7633         * window.c (window_scroll_pixel_based): Pixel-based scrolling that
7634         can handle different line heights.
7635         (window_scroll_line_based): Formerly window_scroll.
7636         (window_scroll): Call both.
7638         * xdisp.c (start_display): Exclude code if PROMPT_IN_BUFFER.
7639         (move_iterator_in_display_line_to): Ditto.
7640         (display_line): Ditto.
7642         * minibuf.c (read_minibuf): Conditionally insert prompt into
7643         buffer instead of handling prompts specially.  Change other
7644         functions accordingly.  All such code is in #if PROMPT_IN_BUFFER.
7646         * dispnew.c (adjust_glyph_matrix): Optimize the handling of C-x 2,
7647         upper window.  Optimize calls to xrealloc if same width.
7649         * xdisp.c (redisplay_window): Don't use
7650         try_window_reusing_current_matrix if window scroll functions
7651         exist.
7653         * dispextern.h (struct display_iterator): Member
7654         redisplay_end_trigger_p removed.
7656         * dispextern.h (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
7657         Renamed to WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
7659 1998-01-16  Gerd Moellmann  <gerd@gnu.org>
7661         * xdisp.c (move_iterator_by_lines): Optimize for truncate-lines
7662         nil.  Optimize truncate-lines t and moving backward.
7663         (move_iterator_to_previous_visible_line_start): Contains the heart
7664         of the previous set_iterator_to_previous_visible_line_end.  Don't
7665         reseat the iterator.  Used by move_iterator_by_lines.
7666         (set_iterator_to_previous_visible_line_start): Call function
7667         above.
7668         (move_iterator_in_display_line_to): Check TO_POS before doing
7669         anything else.  Otherwise to_pos == PT would move to x of PT+1.
7671         * indent.c (Fvertical_motion): Use display_iterator.
7673         * xdisp.c (move_iterator_by_lines): New function moving by screen
7674         lines.
7675         (redisplay_window): Use it.
7676         (move_iterator_to): Correct branch of to_vpos specified.
7677         (move_iterator_vertically_backward): Increment nlines after having
7678         backed up over some lines because the last line was not backed up
7679         over.
7680         (move_iterator_via_matrix): Look for it->pos in the matrix, and
7681         calculate it->vpos and it->current_y relative to this row.
7682         (move_iterator_via_matrix): Set in #if 0.  It doesn't seem to 
7683         have a big effect and it is complex.
7684         (move_iterator_to): Call to move_iterator_via_matrix in #if 0.
7686 1998-01-15  Gerd Moellmann  <gerd@gnu.org>
7688         * xterm.c (x_draw_relief): Simplify drawing and draw so that lines
7689         join nicely.  Lines with widths > 2 don't join nicely under X.
7690         * xterm.h (struct x_output): Remove member relief_gc_line_width.
7691         * widget.c (setup_frame_gcs): Initialize relief GC's to line
7692         width 1; remove references to relief_gc_line_width.
7693         * xfns.c (x_make_gc): Ditto.
7695         * xfaces.c (Fset_face_attribute_internal): Set frame garbaged
7696         if relief changes.
7697         (Fset_face_attribute_internal): Use XINT instead of XFASTINT
7698         to get a relief because they can be negative.
7700         * xterm.c (x_draw_relief): Correct line drawing positions.  Pixel
7701         positions are for the middle of lines under X.
7703         * xdisp.c (try_window_id): Always search for the cursor by setting
7704         w->cursor.vpos = -1.  Search in unchanged rows at the top and
7705         bottom if cursor not found in displayed lines.
7706         (display_mode_line): First extend face, then set right shadow 
7707         flag.  Otherwise the wrong glyph gets the right shadow.
7709         * dispnew.c (direct_output_for_insert): Give up if line contains
7710         a tab.  The number of spaces inserted for a tab changes if we
7711         insert glyphs in front of it.
7713         * xterm.c (x_list_fonts): Changes undone because the Lisp
7714         implementation for make-face-smaller, make-face-larger, and
7715         make-face-fixed can do without them.
7717         * xfns.c (Fx_list_fonts): Original x-list-fonts from x-list-font.c
7718         inserted.
7720         * xdisp.c (try_window_id): First compute beg_unchanged, then
7721         compare with window start pos.
7723         * xfns.c (Fx_face_fixed_p): Determine whether a face has a
7724         fixed-width font.
7725         (syms_of_xfns): defsubr for x-face-fixed-p.
7727         * xterm.c (x_erase_phys_cursor): If row containing cursor is not
7728         enabled, don't do anything because this row will be newly drawn
7729         anyway and because we can additionally no longer determine the row
7730         height.
7732         * xdisp.c (display_line): Bug fix cursor positioning.
7734         * xfns.c (x-list-fonts): Copied from x-list-fonts.c; #include
7735         removed.  x-list-fonts.c is now obsolete.
7736         (Qfixed, Qvariable): Moved here from xfaces.c.
7738 1998-01-14  Gerd Moellmann  <gerd@gnu.org>
7740         * xdisp.c (display_line): Set row->ends_at_zv_p based on
7741         FETCH_BYTE for truncated lines.
7742         (display_line): Set cursor differently.
7743         (display_line): Fixed bug setting last_pos_on_this_line wrong
7744         for truncated lines.
7746         * dispnew.c (adjust_glyph_matrix): Always adjust for frame-based
7747         redisplay.
7749         * window.c (Fsplit_window): Adjust glyphs before setting buffer.
7751         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
7752         assertion that character dimensions are not zero.
7754         * xterm.c (x_load_font): adjust_glyphs_for_font_change while
7755         input is blocked.
7757         * xdisp.c (decode_mode_spec): Faster implementation of line number
7758         display.
7760         * xterm.c (x_draw_row_bitmaps): Clear flags area before drawing
7761         bitmaps if bitmaps don't fill the entire area.
7762         (draw_bitmap): Draw bitmaps horizontally centered in flags area.
7764         * xterm.h (FRAME_FLAGS_BITMAP_HEIGHT): Macro giving the 
7765         pixel height of flags bitmaps.
7767         * frame.h (FRAME_FLAGS_AREA_COLS): Use FRAME_X_FLAGS_AREA_COLS.
7768         (FRAME_FLAGS_AREA_WIDTH): Ditto.
7770         * xterm.h (FRAME_FLAGS_BITMAP_WIDTH): Macro giving the width
7771         in pixels of a flags area of a frame.
7772         (FRAME_X_FLAGS_AREA_WIDTH): Removed.
7773         (FRAME_X_FLAGS_AREA_COLS): Macro giving the number of columns
7774         occupied by a flags area.
7776 1998-01-13  Gerd Moellmann  <gerd@gnu.org>
7778         * xdisp.c (hscroll_window_tree): Remove test for non-nil
7779         window_end_valid.
7781         * dispnew.c (adjust_glyph_matrix): Check redisplay_p if
7782         GLYPH_DEBUG != 0.
7784         * xdisp.c (display_line): Correct wrong calculation of row->x for
7785         the case of nglyphs == 1.
7786         (hscroll_window_tree): Renamed from hscroll_windows.
7787         (hscroll_windows): New function calling hscroll_window_tree that
7788         clears desired matrices on a frame when hscroll has been changed.
7789         (redisplay_p): Global flag set during redisplay.
7790         (redisplay_internal): Set and clear redisplay_p.
7792         * xfaces.c (min_char_bounds): Add assertion that width and height
7793         are not zero at the end.  Initialize *height and *width to -1,
7794         instead of using BITS_PER_SHORT.  If font has min_bounds.width
7795         zero, use its max_bounds.width.
7797         * x-list-font.c (Fx_list_fonts): Check INTEGERP or FLOATP for
7798         width and height.
7800 1998-01-12  Gerd Moellmann  <gerd@acm.org>
7802         * dispnew.c (adjust_glyph_matrix): Do nothing if sizes haven't
7803         changed.  Don't clear desired matrices.
7805         * xdisp.c (hscroll_windows): Compute pt after setting
7806         current_buffer.
7807         (redisplay_window): Don't do cursor movement based on current
7808         matrix if just_this_one_p is zero.
7810         * x-list-font.c (Fx_list_fonts): Additional parameter fixed.
7811         specifying that fixed-width, variable-width fonts or both 
7812         should be returned.
7814         * xfaces.c (Qfixed, Qvariable): Symbols for use by x-list-fonts.
7815         (syms_of_xfaces): Initialize them.
7817         * xterm.c (x_list_fonts): Include auto-scaled fonts.  Extend
7818         cached information.
7820 1998-01-11  Gerd Moellmann  <gerd@acm.org>
7822         * xdisp.c (display_mode_line): Extend face to end of line.
7824         * xdisp.c (echo_area_display): Don't call display_string with
7825         echo_area_glyphs_length == 0 which would mean infinite precision.
7826         (redisplay_internal): Adjust window_end_vpos if necessary.
7828 1998-01-07  Gerd Moellmann  <gerd@acm.org>
7830         * xdisp.c (display_line): Set it->ends_at_zv_p differently.
7832 1998-01-05  Gerd Moellmann  <gerd@acm.org>
7834         * xdisp.c (get_row_start_continuation_line_width): Removed.
7835         (init_iterator_to_row_start): Set it.current_x from row.
7836         (try_window_id): Set it.continuation_lines_width directly from
7837         row.
7839         * xdisp.c (hscroll_windows): Use w->pointm if window is not
7840         selected_window.
7841         (hscroll_windows): Center cursor in window.
7842         (hscroll_windows): Call move_iterator_in_display_line_to.
7844 1998-01-04  Gerd Moellmann  <gerd@acm.org>
7846         * xdisp.c (hscroll_windows): Check hscroll < 0.
7847         (redisplay_window): Allow quick cursor movement if overlay arrow
7848         but frame uses window-based redisplay.
7849         (display_line): Take special case for nglyphs == 1 out of #if 0.
7850         (display_line): Set row->ends_at_zv_p after the loop displaying
7851         glyphs because ZV can be in truncated text.
7852         (hscroll_windows): Use init_iterator_to_row_start.
7854         * dispnew.c (scrolling_window): Calculation of overlapping
7855         runs fixed.
7856         (row_equal_p): Compare continued_p and continuation_line_p.
7858 1998-01-02  Gerd Moellmann  <gerd@acm.org>
7860         * xterm.c (x_get_mode_line_face_gc): Renamed from
7861         x_get_modeline_face_gc.
7863         * xdisp.c (TEXT_PROP_DISTANCE_LIMIT): Max. distance from current
7864         buffer position to look for text properties.
7865         (get_face_from_cursor_pos): Use it.
7866         (compute_face_at_iterator_position): Use it.
7867         (next_element_from_buffer): Use it.
7869         * dispnew.c (scrolling_window): Decrement run's y-position
7870         when extending it backwards.
7872         * xterm.c (do_line_dance): Don't ever copy more than window height.
7874 1998-01-01  Gerd Moellmann  <gerd@acm.org>
7876         * xdisp.c (redisplay_window): Cursor motion in unchanged
7877         matrix---use MATRIX_ROW_.*_IN_MIDDLE_OF_CHAR_P.
7878         (init_iterator_to_next_row_start): Special handling of lines
7879         ending in middle of char removed.
7880         (hscroll_windows): Hscroll windows only if window_end_valid is not
7881         nil.
7882         (try_window_reusing_current_matrix): Call hscroll_windows.
7883         (init_iterator_to_row_start): Initialize iterator for display
7884         starting at a position given by a glyph_row->start.
7885         (redisplay_window): Don't use vmotion because it gives wrong
7886         results if lines are continued and variable width fonts are used.
7888         * dispextern.h (struct glyph_pos): New member dpvec_index.  
7889         (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test if row ends in the
7890         the middle of a character.
7891         (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test if row starts in 
7892         the middle of a character.
7894         * xdisp.c (set_iterator_to_next): Increment it->dpvec_index, reset
7895         it.
7896         (next_element_from_display_vector): Use it->dpvec_index.
7897         (reseat_iterator): Reset it.
7898         (init_iterator): Reset it.
7899         (setup_iterator_dpvec_from_glyph_pos): Set up it->dpvec and
7900         it->pos.dpvec_index from a glyph_pos structure.
7901         (init_iterator_from_glyph_pos): Call the function above.
7902         (reseat_iterator_to_glyph_pos): Ditto.
7904         * dispnew.c (direct_output_forward_char): Don't use this method at
7905         overlay boundaries or near invisible text.
7906         (direct_output_forward_char): Step through glyph row to find
7907         cursor position.
7909         * xterm.c (x_get_cursor_gc): Don't return cursor_gc for font == 
7910         frame font if line height differs from font height.
7912         * xdisp.c (set_iterator_to_next): Renamed from
7913         move_iterator_forward to avoid confusion with other move_.*
7914         functions.
7916         * dispextern.h (FACE_RELIEF_P): Renamed from FACE_3D_P.
7918 1997-12-31  Gerd Moellmann  <gerd@acm.org>
7920         * xterm.c (x_get_cursor_gc): Renamed from x_cursor_gc to use the
7921         same naming convention as for other GC functions.
7922         (draw_glyphs): Don't fill background when drawing a cursor and
7923         font height is less than line height.
7925 1997-12-30  Gerd Moellmann  <gerd@acm.org>
7927         * xdisp.c (init_display_iterator.*): Renamed to shorter names
7928         init_iterator_.*.
7930         * xdisp.c (move_iterator_forward): Restore it->len from
7931         it->dpvec_char_len if dpend reached.
7932         (get_next_display_element): Don't consume translated char
7933         prematurely.
7934         (display_line): Don't set this_.* variables if row is continued.
7935         (start_display): Move to start of continuation line if ending
7936         up at end of continued line.
7938         * dispextern.h (struct display_iterator): New member dpvec_char_len.
7940         * xdisp.c (move_iterator_in_display_line_to): Check TO_POS after
7941         checking TO_X and continuation lines.
7942         (get_last_unchanged_at_beg_row): If first_changed_pos is the end
7943         of a continued line, don't consider this line as unchanged because
7944         it may no longer be continued.
7946 1997-12-29  Gerd Moellmann  <gerd@acm.org>
7948         * xdisp.c (try_window_id): Catch the case that moving over
7949         continuation lines moves first_unchanged_at_end_row to a row not
7950         displaying text.
7952         * dispextern.h (struct glyph_row): New member
7953         continuation_lines_width.  Member continuation_line_p removed.
7954         (MATRIX_ROW_CONTINUATION_LINE_P): Non-zero if row displays a 
7955         continuation line.
7956         * xdisp.c (display_line): Set row->continuation_lines_width.
7957         (get_row_start_continuation_line_width): Set continuation lines
7958         width of iterator from continuation lines width of glyph row.
7959         (get_row_start_continuation_line_width): Make it inline.
7960         (set_window_cursor): Make it inline.
7961         (try_window_id): Use MATRIX_ROW_CONTINUATION_LINE_P.
7962         (Fdump_redisplay_state): Ditto.
7963         
7964         * dispnew.c (update_window_line): Use MATRIX_ROW_CONTINUATION_LINE_P.
7965         * xterm.c (x_draw_row_bitmaps): Use MATRIX_ROW_CONTINUATION_LINE_P.
7967         * xdisp.c (try_window_id): Set it.hpos and it.current_x to zero
7968         after determining the continuation lines width for
7969         last_unchanged_at_beg_row.
7971         * xterm.c (x_draw_row_bitmaps): Let overlay arrow have precedence.
7973         * xdisp.c (display_mode_line): Handle 3D faces only on frames
7974         which support faces.
7975         (init_display_iterator): Ditto.
7976         (move_iterator_via_matrix): Skip over truncation glyph at the row
7977         start on terminal frames.
7978         (hscroll_windows): Choose hscroll margin differently for window
7979         system and terminal frames.
7981 1997-12-28  Gerd Moellmann  <gerd@acm.org>
7983         * xdisp.c (hscroll_windows): Change hscroll of windows.
7984         (redisplay_internal): Call it.
7986         * dispnew.c (direct_output_for_insert): Give up if a glyph 
7987         doesn't fit completely on the line.
7988         (direct_output_forward_char): Give up for non-ASCII chars.
7989         (direct_output_forward_char): Set redisplay_performed_directly_p.
7991         * dispextern.h (struct display_iterator): Make first_visible_x
7992         and last_visible_x ints; this is for very long truncated lines.
7994         * xdisp.c (move_iterator_in_display_line_to): Separate check for
7995         MOVE_X_REACHED only if it->nglyphs == 0.  This fixes cursor
7996         positioning problems with the mouse.
7997         (move_iterator_in_display_line_to): Truncate lines if it->current_x
7998         >= it->last_visible_x instead of >.
7999         (display_line): Ditto.
8001         * xterm.c (draw_glyphs): Draw rectangles if font could not be
8002         loaded.
8003         (XTproduce_glyphs): Calculate pixel_width for composite chars and
8004         non-ASCII chars differently.  Always produce 1 glyph for composite
8005         chars.  If font not found, use CHARSET_WIDTH to calculate width of
8006         non-ASCII chars.
8007         (x_get_char_font_and_encoding): Return null if font could not be
8008         loaded.  Reset font to null if fontset could not be loaded.
8009         (draw_glyphs): Fill background if font not found.
8010         (draw_glyphs): Unused parameter just_foreground_p removed. New
8011         parameter composite_glyph.
8012         (draw_glyphs): Use enumeration for parameter hl.
8013         (draw_glyphs): Pass a display area relative x-position to 
8014         draw_glyphs when calling it recursively for composite chars.
8016 1997-12-27  Gerd Moellmann  <gerd@acm.org>
8018         * xterm.c: Patches from handa.etl.go.jp integrated.
8019         (draw_glyphs): Don't rely on x_get_char_font_and_encoding to
8020         find a font_info.
8022         * xdisp.c (move_iterator_in_display_line_to): Check to_x
8023         for nglyphs == 1.
8025         * xterm.c (x_draw_relief): Draw relief lines.
8026         (draw_glyphs): Call x_draw_relief.
8028 1997-12-26  Gerd Moellmann  <gerd@acm.org>
8030         * xfns.c (x_make_gc): Create relief GC's.
8032         * widget.c (create_frame_gcs): Create GC's for relief drawing.
8033         (setup_frame_gcs): Initialize them.
8034         (EmacsFrameDestroy): Free them.
8036         * xdisp.c (try_window_id): Get continuation lines width if 
8037         last_unchanged_at_beg_row is continued or a continuation line.
8038         (move_iterator_via_matrix): Don't do it for mini-buffer windows.
8039         (redisplay_window): Case point has changed, and it has not 
8040         moved off the frame.  Don't increment row if PT equals the row
8041         end if the row ends in ZV.
8043         * xterm.c (x_draw_row_bitmaps): New function to draw bitmaps.
8044         (expose_line): Call it.
8045         (x_after_update_window_line): Call it.
8047         * xdisp.c (display_line): Reset continuation_lines_width when ZV
8048         reached.
8050         * xterm.c (x_after_update_window_line): Draw continuation line
8051         bitmap.
8053         * dispnew.c (update_window_line): Call
8054         after_update_window_line_hook when row's continuation_line_p
8055         changes.
8057         * xterm.c (draw_bitmap): Draw new bitmap CONTINUATION_LINE_BITMAP.
8059         * xdisp.c (display_line): Handle continued lines on window system
8060         frames differently since continuation glyphs are not displayed.
8061         (move_iterator_in_display_line_to): Ditto.
8062         (move_iterator_in_display_line_to): Take the mini-buffer prompt
8063         into account.
8064         (move_iterator_vertically_backward): Handle dy == 0 specially.
8065         (redisplay_window): Catch the case of small windows when
8066         recentering where moving back window_height/2 moves us beyond the
8067         top of the display area of the window.
8069 1997-12-18  Gerd Moellmann  <gerd@acm.org>
8071         * xdisp.c (move_iterator_vertically_backward): Unused parameter
8072         dvpos removed.
8074 1997-12-17  Gerd Moellmann  <gerd@acm.org>
8076         * dispnew.c (direct_output_forward_char): Correct new cursor
8077         x-position.
8079 1997-12-16  Gerd Moellmann  <gerd@acm.org>
8081         * xterm.c (x_after_update_window_line): Remove unused parameters.
8082         (XTclear_end_of_line): Clear to display_height instead of
8083         display_height - 1.
8085         * dispnew.c (set_frame_matrix_frame): Make it INLINE.
8086         (update_window_line): Call after_update_window_line_hook if 
8087         rows have different y-positions, or different height.
8089 1997-12-14  Gerd Moellmann  <gerd@acm.org>
8091         * frame.h (FRAME_MODE_LINE_PIXEL_HEIGHT): Removed.
8093         * window.c (coordinates_in_window): Call frame_mode_line_height.
8095         * xterm.c (x_draw_3d_border): Removed.
8096         (x_draw_row_borders): Removed.
8098         * dispnew.c (update_window): References to
8099         FRAME_MODE_LINE_BORDER_WIDTH removed.
8101         * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Removed.
8102         (FRAME_MODE_LINE_HEIGHT): Removed.
8104         * xterm.c (draw_3d_borders_p): Removed.
8105         (draw_glyphs): Ditto.
8106         (XTwrite_glyphs): Ditto.
8107         (expose_line): Ditto.
8108         (x_initialize): Ditto.
8110         * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Call
8111         frame_mode_line_height.
8113         * term.c (frame_mode_line_height): Get the pixel height of a
8114         frame's mode line.
8115         (frame_mode_line_height_hook): Hook to implement system dependent
8116         versions.  
8117         
8118         * xterm.c (x_initialize): Set the hook.
8119         (XTframe_mode_line_height): X version of frame_mode_line_height.
8121         * xdisp.c (echo_area_display): Call gobble_input to flush the X
8122         output buffer.
8123         (display_string): Don't add right truncation mark if line ends in
8124         padding space.
8125         (init_display_iterator): If called with modeline_p non-zero, set
8126         face_id to 1, which is the id of the mode line face.
8128         * keyboard.c (cmd_error_internal): Write to stderr if selected
8129         frame is Vterminal_frame under X.  This is the case when a font
8130         cannot be loaded when Emacs starts.  Replace test for
8131         FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
8133         * xfaces.c (compute_overlay_string_char_face): Compute the
8134         face of a character in an overlay string.
8135         * xterm.h (compute_overlay_string_char_face): Prototype.
8136         * xdisp.c (compute_face_at_iterator_overlay_string_position): 
8137         Use it.
8139         * xdisp.c (set_iterator_to_next_overlay_string): Formerly
8140         set_iterator_to_next_overlay.
8141         (struct overlay_entry): Structure used to sort overlay strings.
8142         (compare_overlay_entries): Compare overlay strings.
8143         (load_iterator_with_overlay_strings): Load a chunk of overlay
8144         strings.
8145         (get_overlay_strings_at_iterator_position): Call it.
8146         (next_element_from_overlay_string): Set it->object to the overlay
8147         string.  Prepare for setting it->position to a string position.
8148         (get_overlay_strings_at_iterator_position): Renamed from
8149         get_overlays_at_iterator_position.
8150         (setup_iterator_overlay_strings_from_glyph_pos): Changed to load
8151         chunks of overlay strings.
8152         (load_overlay_strings): Renamed from load_iterator_overlay_strings.
8154         * dispextern.h (struct display_iterator): New vector
8155         overlay_strings and new member n_overlay_strings---formerly
8156         overlays and n_overlays.  
8157         (struct glyph_pos): Remove after_string_p; overlay_index 
8158         renamed to string_index.
8160 1997-12-13  Gerd Moellmann  <gerd@acm.org>
8162         * xdisp.c (copy_iterator): Increment n_iterator_overlay_vectors
8163         when allocating a vector.
8164         (release_iterator): Removed.
8165         (restore_iterator): Removed.
8166         (copy_iterator): Removed.
8168 1997-12-08  Gerd Moellmann  <gerd@acm.org>
8170         * xdisp.c (redisplay_window): Use make_empty_enabled_row for
8171         clearing a mini-buffer window that is not active.
8172         (redisplay_window): Do not scroll one line too early when last
8173         window line is completely visible.
8174         (init_display_iterator): Leave some room to display the cursor
8175         after the last glyph on a continued line.
8177         * xterm.h (struct x_output): trunc_area_extra renamed
8178         flags_areas_extra.
8179         (FRAME_X_FLAGS_AREA_WIDTH): Renamed from FRAME_X_TRUNC_WIDTH.
8181         * dispnew.c (update_window_line): Call
8182         after_update_window_line_hook when current row is not enabled
8183         which is the case after a frame has been cleared.
8185         * xdisp.c (display_mode_line): Reset row flags for truncation
8186         on right side for the mode line.
8188         * xterm.c (bitmap_type): Type of bitmap to display in flags
8189         area of frame.
8190         (x_after_update_window_line): Use the enum.
8191         (draw_bitmap): Ditto.
8193 1997-12-07  Gerd Moellmann  <gerd@acm.org>
8195         * xterm.c (x_clip_to_row): Include width of both flag areas.
8196         (do_line_dance): Ditto.
8197         (expose_window_tree): Ditto.
8198         * dispnew.c (update_window_line): Call
8199         after_update_window_line_hook for right truncation and continuation.
8200         * xdisp.c (init_display_iterator): Don't subtract width of
8201         continuation glyphs for window-based redisplay.
8202         * xterm.c (draw_bitmap): Draw continuation bitmap.
8203         * widget.c (set_frame_size): Double trunc_area_extra.
8204         (EmacsFrameSetCharSize): Ditto.
8205         * xfns.c (x_figure_window_size): Ditto.
8206         * xterm.c (x_set_window_size): Ditto.
8207         (x_after_update_window_line): Draw right truncation mark.
8209         * xterm.c (draw_glyphs): Bug fix buffer overrun.
8211         * window.h: Include blocker around dispextern.h removed.
8213         * eval.c (Feval): Check interrupt_input_block == 0.
8214         
8215         * dispextern.h (struct display_iterator): Former ovstr made a
8216         Lisp_Object overlay_string.  New next_ovstr_face_check_pos and
8217         next_ovstr_invisble_check_pos; check at these positions for
8218         face changes and changes in invisible text property.
8219         (struct glyph_pos): Former ovlen now overlay_string_index.
8221         * xdisp.c (setup_iterator_overlays_from_glyph_pos): Set
8222         overlay_string.
8223         (set_iterator_to_next_overlay_string): Set overlay_string and
8224         pos.overlay_string_index.
8225         (get_overlays_at_iterator_position): Use overlay_string and
8226         overlay_string_index.
8227         (next_element_from_overlay_string): Use overlay_string and
8228         overlay_string_index.
8229         (move_iterator_forward): Increment overlay_string_index.
8230         (try_window_id): Use overlay_string and overlay_string_index.
8231         (move_iterator_forward): At end of dpvec, maybe use method
8232         next_element_from_overlay_string for the case a character from an
8233         overlay string was translated via a display table.
8234         (reseat_iterator_to_string): Take a Lisp string.
8235         (display_string): Pass a Lisp string to reseat_iterator_to_string.
8236         (compute_face_at_iterator_overlay_string_position): Compute face
8237         based on text properties for an overlay string.
8238         (next_element_from_overlay_string): Check invisible and face text
8239         properties.
8240         (set_iterator_to_next_overlay_string): Restore face id before
8241         overlay strings when no more overlay strings are found to return.
8242         Initialize next_ovstr_.*check_pos for each new overlay string
8243         roï\0ðoï\0ðÃâ\0ðoï\0ðoï\0ðTÿ\0ðLá\0ðoï\0ðase_face): Made public.
8244         (merge_face_list): Ditto.
8245         (intern_computed_face): Ditto.
8247         * xdisp.c (redisplay_window): Cursor movement in unchanged 
8248         window if PT > w->last_point.  Goto try_to_scroll if bottom Y
8249         of row is > instead of >= last_y.
8251         * buffer.h (overlays_at): Function prototype.
8253         * xdisp.c (reseat_iterator_to_string): Clear iterator position.
8254         * dispextern.h (GET_NEXT_DISPLAY_ELEMENT): Removed.
8256         * xdisp.c (release_iterator): Release dynamically allocated 
8257         memory of a display_iterator.
8258         (copy_iterator): Copy an iterator.
8259         (restore_iterator): Restore an iterator from a backup copy.
8260         (global): Use the functions above.
8261         * window.c (Fpos_visible_in_window_p): Call release_iterator.
8262         * dispnew.c (direct_output_for_insert): Call release_iterator.
8264         * dispextern.h (struct display_iterator): Allocate overlays
8265         vector dynamically.
8267 1997-12-06  Gerd Moellmann  <gerd@acm.org>
8269         * Makefile.in (window.o): Depends on dispextern.h.
8271         * buffer.c (overlays_at): Make it work when extending vectors
8272         and an initial vector of zero size.
8274         * xdisp.c (set_iterator_to_previous_visible_line_end): Renamed
8275         from set_cursor_to_previous_visible_line_end.
8276         (set_iterator_to_next_visible_line_start): Renamed from
8277         set_cursor_to_next_visible_line_end.
8278         (set_next_iterator_stop_pos): Renamed from set_next_stop_pos.
8279         (compute_face_at_iterator_position): Renamed from
8280         compute_cursor_face.
8281         (set_iterator_to_next_overlay_string): Renamed from
8282         cursor_to_next_overlay_string.
8283         (get_overlays_at_iterator_position): Renamed from
8284         get_overlays_for_cursor.
8285         (reseat_iterator): Renamed from reseat_cursor.
8286         (setup_iterator_overlays_from_glyph_pos): Renamed from
8287         setup_overlays_from_pos.
8288         (init_string_iterator): Renamed from init_string_cursor.
8289         (get_next_display_element): Renamed from next_display_element.
8290         (move_iterator_forward): Renamed from advance_display_cursor.
8291         (get_overlays_at_iterator_position): Allocate overlays vector 
8292         dynamically.
8294         * xdisp.c: display_cursor renamed display_iterator.
8295         * dispextern.h: Ditto.
8296         * dispnew.c: Ditto.
8298 1997-12-01  Gerd Moellmann  <gerd@acm.org>
8300         * window.c (mark_window_cursors_off): Function comment added.
8301         (window_topmost_p, window_rightmost_p): Removed because not used.
8303 1997-11-30  Gerd Moellmann  <gerd@acm.org>
8305         * emacs.c (main): Function prototypes removed in profiling code.
8306         Use safe_bcopy as start of text.
8308         * dispnew.c (update_frame_line): update_line -> update_frame_line;
8309         mirrored_make_current -> make_current.
8311         * xdisp.c: (store_frame_title_char): New function to store a
8312         single character for the frame title with re-allocation of
8313         frame_title_buf.
8314         (init_xdisp): Intialize frame_title_.* variables to null.
8316         * dispnew.c (quit_error_check): Removed.
8318         * eval.c (Fsignal): Call to quit_error_check removed.
8319         * keyboard.c (quit_throw_to_read_char): Ditto.
8321 1997-11-23  Gerd Moellmann  <gerd@acm.org>
8323         * xfaces.c (Fset_face_attribute_internal): Allow nil relief
8324         to mean a zero relief.
8326         * .gdbinit (xprintsym): Print a symbol.
8327         (xbacktrace): Print a backtrace of Lisp function calls from
8328         backtrace_list.
8330 1997-11-19  Gerd Moellmann  <gerd@acm.org>
8332         * dispnew.c (new_glyph_matrix): Increment glyph_matrix_count
8333         unconditionally.
8334         (glyph_matrix_count, glyph_pool_count): Define unconditionally.
8335         (free_glyph_matrix): Decrement glyph_matrix_count unconditionally.
8336         (check_glyph_memory): Define function body unconditionally.
8338 1997-11-17  Gerd Moellmann  <gerd@acm.org>
8340         * dispnew.c (scrolling_window): Alternative version of this
8341         function removed.
8343 1997-11-16  Gerd Moellmann  <gerd@acm.org>
8345         * dispnew.c (make_empty_enabled_row): Make an empty, enabled row
8346         of height CANON_Y_UNIT.
8347         * dispextern.h: Prototype for that function.
8348         * xdisp.c (echo_area_display): Don't use display_string to 
8349         produce empty rows.  Use make_empty_enabled_row instead.
8351         * dispnew.c (scrolling_window): New version using diff-like
8352         algorithm activated.
8353         
8354 1997-11-15  Gerd Moellmann  <gerd@acm.org>
8356         * dispnew.c (clear_current_matrices): Clear matrix of menu_bar_window
8357         (clear_desired_matrices): Ditto.
8358         (adjust_frame_glyphs_for_window_redisplay): Use FRAME_WINDOW_WIDTH
8359         for menu_bar_window.
8361         * alloc.c (mark_object): Mark menu_bar_window of frames.
8363         * xterm.c (XTupdate_window_end): Don't display cursor if
8364         pseudo_window_p.
8366         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Don't
8367         set mini_p.
8368         (update_window): Don't set cursor if pseudo_window_p.
8370         * dispextern.h (WINDOW_WANTS_MODELINE_P): Test pseudo_window_p.
8372         * window.h (struct window): New flag pseudo_window_p set to
8373         1 for windows that aren't really part of the window tree, like
8374         menu_bar_window's of frames.
8375         * window.c (make_window): Initialize it.
8376         (replace_window): Ditto.
8377         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
8379         * frame.c (make_frame): Initialize menu_bar_window to nil.
8381         * xterm.c (XTget_display_info): FACE_SHADOW_THICKNESS renamed
8382         FACE_RELIEF
8384         * xfaces.c (copy_face): shadow_thickness -> relief.
8385         (face_eql): Ditto.
8386         (merge_faces): Ditto.
8387         (compute_base_face): Ditto.
8388         (Fset_face_attribute_internal): Ditto.
8389         * dispextern.h (struct face): Ditto.
8391         * dispnew.c (update_frame): Update menu_bar_window of the frame if
8392         it is non-nil.
8394         * xdisp.c (display_menu_bar): Display the menu bar in
8395         f->menu_bar_window if appropriate.
8396         (display_mode_line): Use MATRIX_MODE_LINE_ROW.
8398         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Allocate
8399         dummy window and window matrices for f->menu_bar_window.
8400         (free_glyphs): Free the dummy window and its glyph matrices.
8402         * frame.h (struct frame): New member menu_bar_window.
8404 1997-11-09  Gerd Moellmann  <gerd@acm.org>
8406         * dispnew.c (scrolling_window): New version with diff-like
8407         algorithm.
8409         * xdisp.c (try_window_reusing_current_matrix): If new_start >
8410         old_start always start displaying at start of
8411         first_row_to_display.  The previous scheme failed if the last row
8412         was fully visible.
8414         * dispnew.c (update_window): Remove cost calculations.  Remove
8415         redundant preempt_count calculations.
8417         * xterm.c (x_clip_to_row): Set clipping for non-text rows
8418         differently.
8420         * dispnew.c (update_window): Use WINDOW_WANTS_MODELINE_P.
8422         * window.c (syms_of_window): Functions for marginal areas if 
8423         WITH_MARGINAL_AREAS is defined.
8425         * xdisp.c (try_window_reusing_current_matrix): Trace fprintf 
8426         removed.
8428         * dispnew.c (scrolling): Call line_hash_code because hash values
8429         are not set in the frame matrix.
8431         * xdisp.c (try_window_id): Fix scrolling for terminal frames.
8432         (redisplay_window): Check line_ins_del_ok before calling
8433         try_window_id.
8434         (try_window_reusing_current_matrix): Give up for terminal frames
8435         if window is not full width or we cannot insert/delete lines.
8436         (try_window_reusing_current_matrix): Fixed scrolling for terminal
8437         frames.
8439         * alloc.c (mark_glyph_matrix): Bug fix - pass pointer to
8440         Lisp_Object to mark_object.
8442         * xdisp.c (sync_frame_with_window_matrix_rows): Make frame and
8443         window rows have the same glyph pointers.
8444         (try_window_id): Call it.
8446         * alloc.c (mark_glyph_matrix): Function to mark Lisp objects in
8447         a glyph matrix.
8448         (mark_object): Call it.
8450         * xdisp.c (insert_left_trunc_glyphs): Use 0 object in glyphs for
8451         truncations.
8452         (display_line): Ditto.
8453         (display_line): Ditto for DISP_CONTINUATION.
8454         (display_line): Truncation on right: test current_x >
8455         last_visible_x.
8456         (skip_in_display_line_to): Ditto.
8457         (skip_via_matrix): Stop skipping in glyph row at face extending
8458         glyphs or at padding spaces.
8460         * dispnew.c (fill_up_glyph_row_with_spaces): Comment extended.
8462         * xdisp.c (display_line): Use glyph->object == 0 for padding
8463         glyphs.
8464         (redisplay_window): Don't let cursor move over padding
8465         spaces.
8467         * dispextern.h (struct glyph): Fix comment for object.
8469 1997-11-08  Gerd Moellmann  <gerd@acm.org>
8471         * dispextern.h (WINDOW_WANTS_MODELINE_P): Non-zero if a window
8472         has a mode line.
8473         * xdisp.c (redisplay_window): Use it.
8474         (display_mode_line): Check that window wants mode line.
8476 1997-11-03  Gerd Moellmann  <gerd@acm.org>
8478         * xdisp.c (display_menu_bar): Enable menu bar rows.
8480         * xterm.c (x_draw_hollow_cursor): X positions based on text area.
8481         (x_erase_phys_cursor): Ditto.
8482         (x_draw_bar_cursor): Ditto.
8484 1997-11-02  Gerd Moellmann  <gerd@acm.org>
8486         * dispnew.c (update_marginal_area): Update a marginal area.
8487         (update_text_area): Update text area.
8488         (update_window_line): Call both.
8490         * xterm.c (XTclear_end_of_line): Translate coordinates area
8491         dependent.
8493         * dispnew.c (updated_area): Row area being updated in
8494         update_window_line.
8495         (update_window_line): Set it.
8496         (update_marginal_area): Clear to end of line if not in text area.
8498         * window.c (Fset_window_margins): Increment
8499         windows_or_buffer_changed.  Adjust glyphs.
8501         * dispextern.h (WINDOW_TEXT_TO_FRAME_PIXEL_X): Convert text
8502         area X coordinates to frame coordinates.
8503         (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH): Width of left marginal area. 
8504         (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH): Same for right area.
8505         (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Same for text area.
8507         * xterm.c (draw_glyphs): Use text area width as display width.
8509         * xdisp.c (init_display_info): Subtract widths of marginal areas
8510         from last_visible_x.
8512         * alloc.c (mark_object): Mark objects in glyphs only if they are
8513         overlays.  Mark only if current_matrix != 0.  Activate the code.
8515         * window.c (Fset_window_margins): Set margins.
8516         (Fwindow_margins): Return margin area widths.
8517         (syms_of_window): Add defsubr's.
8519         * window.h (struct window): left_margin_width, right_margin_width.
8521         * xfns.c (x_set_trunc_area_width): Set truncation pixel width
8522         and cols.
8524         * frame.h (FRAME_TRUNC_COLS): Number of columns occupied by
8525         truncation/overlay arrow area.
8526         (struct frame): trunc_area_pixel_width, and _cols.
8528         * window.c (Fsplit_window): Use it.
8530         * window.c (Fsplit_window): Set cursor vpos to -1 after
8531         splitting.
8532         (Fsplit_window): SUbtract/add FRAME_TRUNC_WIDTH for horizontally
8533         split windows.
8535         * dispnew.c (set_window_cursor_after_update): Accept out
8536         of bounds cursor positions. 
8538         * xdisp.c (redisplay_internal): Check that after cursor motion
8539         within line, PT is on same line.
8541         * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Don't subtract
8542         FRAME_TRUNC_WIDTH.
8544         * xterm.h (struct x_output): trunc_area_extra.
8545         (CHAR_TO_PIXEL_WIDTH): Add in trunc_area_extra.
8546         (PIXEL_TO_CHAR_WIDTH): Subtract it.
8547         * widget.c (set_frame_size): Set it.
8548         (EmacsFrameSetCharSize): Ditto.
8549         * xfns.c (x_figure_window_size): Ditto.
8550         * xterm.c (x_set_window_size): Ditto.
8552         * dispnew.c (check_matrix_invariants): First try to check window
8553         ends (in #if 0).
8555         * xdisp.c (try_window_reusing_current_matrix): Try window
8556         redisplay with different window start.
8558 1997-11-01  Gerd Moellmann  <gerd@acm.org>
8560         * window.c (make_window): Set window_end_pos/vpos.
8561         (Fsplit_window): Zero last_cursor, window_end_valid.
8562         (Fset_window_buffer): Set window_end_vpos, zero last_cursor.
8564         * dispnew.c (check_matrix_invariants): Check window_end_pos/vpos.
8566 1997-10-31  Gerd Moellmann  <gerd@acm.org>
8568         * window.c (make_window): Initialize last_cursor.
8569         (replace_window): Ditto.
8571 1997-10-29  Gerd Moellmann  <gerd@acm.org>
8573         * window.h: New member last_cursor.
8574         * dispnew.c (direct_output_for_insert): Set it.
8575         (direct_output_forward_char): Ditto.
8576         * xdisp.c (redisplay_internal): Ditto.
8578 1997-10-28  Gerd Moellmann  <gerd@acm.org>
8580         * xdisp.c (redisplay_internal): Optimization 1 change partially
8581         reverted.  Check this again later.
8582         (skip_via_matrix): Remove redundent test for
8583         MATRIX_ROW_DISPLAYS_TEXT_P. 
8585 1997-10-27  Gerd Moellmann  <gerd@acm.org>
8587         * dispnew.c (update_window_line): Call
8588         after_update_window_line_hook only for interesting constellations.
8589         (free_glyph_matrix): Fix memory leak.
8591         * window.h: Include blocker WINDOW_H_INCLUDED, include
8592         dispextern.h.
8593         (struct window): phys_cursor_glyph as struct glyph.  * window.c
8594         (make_window): Initialize it.
8595         (replace_window): Ditto.  
8596         * dispnew.c (free_window_matrices): Remove freeing of
8597         phys_cursor_glyph.
8598         (check_matrix_invariants): Renamed from check_current_matrix_...
8599         * xterm.c: All references to phys_cursor_glyph changed.
8601         * dispextern.h (DISPEXTERN_H_INCLUDED: New include blocker.
8603         * xfaces.c: Comment update.
8605         * window.h (struct window): Make phys_cursor_glyph a struct glyph
8606         pointer. Remove phys_cursor_ascent, descent, etc.
8607         * dispnew.c (free_window_matrices): Free it.
8608         * window.c (make_window): Allocate it.
8609         (replace_window): Ditto.
8610         * xterm.c (x_draw_phys_cursor_glyph): Draw it.
8611         (x_display_and_set_cursor): Fill it.
8612         (x_phys_cursor_in_rect_p): Use it.
8613         (x_draw_hollow_cursor): Ditto.
8614         (x_draw_bar_cursor): Ditto.
8615         (x_erase_phys_cursor): Ditto.
8617         * xdisp.c (skip_in_display_line_to): Use SET_INFO_FROM_CURSOR.
8619         * xterm.c (XTget_display_info): Handle 3D facess.
8620         (draw_glyphs): Ditto.
8622         * xdisp.c (Fdump_redisplay_state): Change interactive spec to "p".
8624         * xfaces.c (Fset_face_attribute_internal): New face attribute
8625         shadow-thickness.
8626         (copy_face): Handle shadow_thickness.
8627         (face_eql): Ditto.
8628         (merge_faces): Ditto.
8629         (compute_base_face): Ditto.
8631         * dispextern.h (struct display_cursor): New member start_of_3d_run_p.
8632         (struct display_info): Ditto.
8633         (SET_INFO_FROM_CURSOR): Transfer it to display_info.
8634         * xdisp.c (compute_cursor_face): Set it.
8635         (advance_display_cursor): Clear it.
8637         * xdisp.c (init_string_cursor): Initialize face_id to -1.
8638         (init_string_cursor): Init face_id to zero.
8640         * dispextern.h (struct face): New member shadow_thickness.
8642         * xdisp.c (compute_cursor_face): Set limit for text property 
8643         search to 100.
8645         * dispnew.c (update_window_line): Try to resynch with current line
8646         to prevent mode line flickering.
8648 1997-10-26  Gerd Moellmann  <gerd@acm.org>
8650         * dispnew.c (set_window_cursor_after_update): React again 
8651         on cursor_in_echo_area >= 0.
8653         * xdisp.c (echo_area_display): Clear desired matrix before
8654         displaying into it.
8655         (display_menu_bar): Clear glyph row instead of hoping it is not
8656         enabled.  This is safer.
8658         * dispnew.c (check_current_matrix_invariants): Check only
8659         visible rows.
8661         * xdisp.c (try_window_id): Handle window end setting in case of
8662         display to end of window, but only non-text lines displayed.
8664         * dispnew.c (check_current_matrix_invariants): Check nrows for zero.
8665         (check_current_matrix_invariants): Check used counts.
8667         * Revisiob v114.
8669         * dispnew.c (scrolling): Use hash codes from rows.
8671         * xdisp.c (Fdump_redisplay_state): Dump current matrix.
8673         * dispnew.c (scrolling_window): Invalidate conflicting runs.
8675 1997-10-25  Gerd Moellmann  <gerd@acm.org>
8677         * dispextern.h (struct glyph_matrix): Flag no_scrolling_p.
8678         * dispnew.c (update_window): Use it.
8679         (clear_glyph_matrix): Clear it.
8680         * xdisp.c (try_window_id): Set it.
8682         * dispextern.h (struct glyph_row): New flag ends_at_zv_p.
8684         * xdisp.c (redisplay_internal): Increment glyph positions differently.
8686         * dispextern.h: More comments etc.
8688 1997-10-24  Gerd Moellmann  <gerd@acm.org>
8690         * dispnew.c (set_window_cursor_after_update): Set cursor
8691         for cursor_in_echo_area == 0 to (0, 0).
8693         * dispextern.h (struct glyph_row): New flags continuation_line_p
8694         and displays_text_p.
8695         (MATRIX_ROW_DISPLAYS_TEXT_P): Use displays_text_p.
8696         * xdisp.c (display_line): Set them.
8697         (try_window_id): Move to start of continuation line to find out
8698         continuation_line_width.
8699         (first_unchanged_current_row): Don't retract row if continued,
8700         truncated etc.
8702         * xterm.c: Map X coordinates.
8704 1997-10-23  Gerd Moellmann  <gerd@acm.org>
8706         * dispnew.c (buffer_posn_from_coords): Translate X for right to
8707         left text.
8709         * xdisp.c (display_line): Set right_to_left_p after clearing the row.
8711         * xterm.c (XTclear_end_of_line): Respect right_to_left_p.
8713         * xdisp.c (try_window_id): clear desired matrix if not successul.
8715         * xdisp.c (try_window_id): Call update_window_begin_hook/end_hook.
8717         * dispnew.c (update_window_begin_hook, update_winodw_end_hook):
8718         Set this to functions to be called before/after window updates.
8719         (direct_output_for_insert): Call them.
8720         (update_window): Ditto.
8721         (update_frame): Call update_begin/ update_end for windows.
8723         * xterm.c (XTupdate_window_begin): Called before window updates.
8724         (XTupdate_end): Called after window updates.
8725         (x_initialize): Set hooks to above.
8727         * xdisp.c (init_display_info): Initialize c and len of
8728         display_info.
8730         * xterm.c (x_get_char_font_and_encoding): Bug fix.  Don't load
8731         fonts more than once.
8733 1997-10-22  Gerd Moellmann  <gerd@acm.org>
8735         * xdisp.c (display_line): Handle most common case of current_x <
8736         last_visible_x separately.
8738         * dispextern.h (display_element_type): DISP_ELLIPSIS removed.
8740         * dispnew.c (update_window_line): Compare pixel widths of glyphs
8741         so that face extending space doesn't compare equal to normal space
8742         with same face.
8744         * xdisp.c (display_line): Make sure we have a position for
8745         a line end in an otherwise blank line if face is extended.
8747         * dispnew.c (direct_output_for_insert): Increment row end position.
8749         * window.c (Fpos_visible_in_window_p): Use old meaning of 
8750         window_end_pos.
8752         * xdisp.c (init_display_cursor_from_glyph_pos): New.
8754         * dispextern.h (MATRIX_ROW_FIRST_POS): Use row start.
8756         * dispnew.c (increment_glyph_row_buffer_positions): Adjust
8757         start and end positions in rows.
8758         (increment_glyph_row_buffer_positions): Stop adjusting at
8759         glyphs with positions <= 0.
8761         * dispextern.h (struct glyph_pos): Structure desribing a text
8762         position including position in overlay. 
8763         (struct glyph_row): Use it for start and end positions.
8764         (struct display_cursor): Use it.
8765         * xdisp.c: Use it.
8766         (display_line): Set row start and end positions.
8768         * dispnew.c (copy_row_except_pointers): Use bcopy and struct
8769         assignment.
8771 1997-10-21  Gerd Moellmann  <gerd@acm.org>
8773         * dispnew.c (update_window): Add scrolling_window again.  It's
8774         necessary for scroll_step != 0.
8776         * xdisp.c (redisplay_window): Use vmotion for scroll_step
8777         scrolling.
8779         * xdisp.c (last_unchanged_current_row): Use window_end_vpos.
8781         * xterm.c (XTupdate_end): Flush only for messages.
8783         * xdisp.c (try_window_id): Assert last_unchanged_row >=
8784         first_unchanged_row.
8786         * xterm.c (XTupdate_end): Flush if miniwindow.
8788         * dispnew.c (matrix_row_last_pos): New function.
8789         * dispextern.h (MATRIX_ROW_LAST_POS): Call it.
8790         Large comment moved to xdisp.c. 
8792         * xdisp.c (redisplay_window): Bug fix: PT set to value > Z.
8793         (skip_via_matrix): Check window_end_valid instead of
8794         display_completed.
8796         * dispnew.c (scroll_glyph_matrix_range): Bug fix.
8797         (update_window): scrolling_window commented out.  It has negative
8798         effect most of the time.
8800         * xdisp.c (try_window_id): Correct parameters to
8801         scroll_glyph_matrix_range.
8803         * xterm.c (XTupdate_end): XFlush commented out.  
8805         * window.h: Comments for window_end_pos/vpos.
8807         * xdisp.c (skip_to): assert current_buffer is the buffer
8808         of the window in which we are skipping.
8810         * dispnew.c (update_window_line): Optimized clear_end_of_line.
8812         * xterm.c (draw_glyphs): Bug fix.  Return window relative X
8813         reached.
8815 1997-10-20  Gerd Moellmann  <gerd@acm.org>
8817         * dispextern.h (MATRIX_ROW_LAST_POS): Go back one glyph if this is
8818         a face extending glyph.
8820         * xdisp.c (try_window_id): Check if point will appear.  
8821         (set_cursor_from_row): Set cursor position from a glyph row.
8823         * dispnew.c (update_window_line): Write entire line if hash
8824         codes of lines differ.
8826         * dispextern.h (MATRIX_ROW_EXTENDS_FACE_P): Value is non-zero
8827         if glyph row has an infinite width glyph at its end.
8829         * xdisp.c (last_unchanged_current_row): Respect partially visible
8830         lines when looking for the last row displaying text.
8831         (try_window_id): Handle partially visible lines better.
8833 1997-10-19  Gerd Moellmann  <gerd@acm.org>
8835         * dispnew.c (update_window): Remove unused variable.
8836         (update_window_line): Simplified.
8838         * xterm.c (x_get_char_font_and_encoding): Handle most common
8839         case at the beginning.
8841         * xdisp.c (advance_display_cursor): Dispatch on method and
8842         order if statements by expected call frequency.  Fixed unclosed
8843         comment.
8845         * xdisp.c (try_window_id): New implementation.
8847         * dispnew.c (increment_glyph_row_buffer_positions): Capture
8848         rows displaying a line end, only.
8850 1997-10-18  Gerd Moellmann  <gerd@acm.org>
8852         * window.c (Fpos_visible_in_window_p): Remove use of window_end_vpos.
8854 1997-10-14  Gerd Moellmann  <gerd@acm.org>
8856         * xdisp.c (display_line): Mark empty lines not corresponding to
8857         text with position -1.
8859         * xterm.c (x_erase_phys_cursor): Don't bother to erase cursor if
8860         not within window matrix bounds.
8862         * dispextern.h (struct display_cursor): New member REGION_SHOWING_P.
8863         (struct display_info): NGLYPHS_TO_IGNORE removed.
8864         * xdisp.c: References to NGLYPHS_TO_IGNORE removed.
8865         * term.c: Ditto.
8866         * xterm.c: Ditto.
8868         * xdisp.c (init_display_cursor): Set it.
8869         (display_line): Use it to set W->REGION_SHOWING.
8871         * xdisp.c (skip_via_matrix): Check for overlay arrow.
8873         * region-cache.h: functino prototypes with PROTO.
8875         * dispnew.c (buffer_posn_from_coords): Use -1 as skip position.
8877         * xdisp.c (skip_via_matrix): Check for rows that don't contain
8878         a position.
8880         * xterm.c (XTmouse_position): Calculate LAST_MOUSE_GLYPH 
8881         rectangle based on minimum character bounds.
8883         * keyboard.c (make_lispy_event): mouse clicks; don't do frame
8884         glyph position calculations.
8885         (make_lispy_movement): Use buffer_posn_from_coords and window
8886         relative coordinates.
8888         * xterm.c (construct_mouse_click): Remove #if 0 case.
8890         * dispextern.h (MATRIX_ROW_BOTTOM_Y): Return bottom pixel y of
8891         given row.
8893         * xdisp.c (skip_via_matrix): Skip using current matrix if up to 
8894         date. 
8895         (skip_to): Use it.
8896         (redisplay_window): Remove code skipping using current matrix.
8898 1997-10-13  Gerd Moellmann  <gerd@acm.org>
8900         * xdisp.c (redisplay_window): Use available current matrix to
8901         skip faster when only point is moved withing the window.
8903         * intervals.c: Include stdio.h.  
8904         (find_interval): Trace to stderr to catch some nasty error
8905         that did not yet occur again with tracing.
8906         (set_point): Ditto.
8908         * dispnew.c (shift_glyph_matrix): Experimental code for handling
8909         cursor positioning on partially visible lines.
8910         (set_window_cursor_after_update): Ditto.
8912         * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): bug fix.
8914         * window.h (struct window): start_y removed.
8916         * window.c (make_window): start_y removed.
8917         (replace_window): Ditto.
8919         * xdisp.c (last_max_ascent, last_max_descent):  Ascent and 
8920         descent values of the last line processed by skip_to.
8921         (redisplay_window): Use them.
8922         (skip_to): Set them.
8924         * dispextern.h (struct display_cursor): New member METHOD.
8926         * xdisp.c: Use function member METHOD.
8928         * xdisp.c (set_next_stop_pos): Determine next position at which to
8929         check for face properties, invisible text properties, and overlays.
8930         (compute_cursor_face): Use it.
8931         (get_overlays_for_cursor): Ditto.
8932         (reseat_cursor): Ditto.
8933         (next_display_element): Ditto.
8935 Sun Aug 24 08:50:52 1997  Gerd Moellmann  <gerd@acm.org>
8937         * termhooks.h: Some hooks with prototypes.
8939         * term.c: Some hooks with function prototypes.
8940         
8941         * xdisp.c (reseat_cursor):  Additional argument force_p.  Avoid
8942         computing face if possible.
8944         * xdisp.c (next_display_element):  Use face from glyph from display
8945         table only if != 0.
8947         * emacs.c: FreeBSD headers for profiling removed.
8949         * dispnew.c (direct_output_for_insert): Don't use PT-1 for 
8950         display cursor, use DEC_POS instread. 
8952         * xfaces.c (load_font): Use x_load_font to load fonts so that
8953         all fonts are in the font table. 
8954         (unload_font): Don't XFreeFont.
8956         * dispnew.c (row_equal_p): Compare ascent, descent and visible
8957         row height.
8959         * xterm.c (draw_glyphs): Use 8-bit functions if possible.
8960         (x_erase_phys_cursor): Clear only visible part of row.
8961         (x_draw_bar_cursor): Set clipping.
8962         (x_draw_hollow_cursor): Ditto.
8963         (x_display_and_set_cursor): Remove clipping.
8964         (expose_window_tree): Take trunc border into account.
8965         (x_phys_cursor_in_rect_p): Test if phys_cursor intersects a rect.
8966         (expose_window): Use it.
8968         * xdisp.c (display_string): Catch case that we are called with
8969         current_x already beyond max_x.
8970         (global): Fix usage of FRAME_WINDOW_P <-> FRAME_WINDOW_REDISPLAY_P.
8971         (init_display_info): Subtract vertical border glyph from
8972         last_visible_x.
8974         * scroll.c (scrolling_window_1): Removed.
8976         * dispnew.c (adjust_frame_glyphs): Split into two functions,
8977         based on redisplay method used.
8978         (adjust_frame_glyphs_for_frame_redisplay): Part for frame
8979         based redisplay.
8980         (adjust_frame_glyphs_for_window_redisplay): Part for purely
8981         window based redisplay.
8983         * frame.h (FRAME_WINDOW_REDISPLAY_P): Changed to not depend
8984         on data structures.
8986         * dispnew.c (adjust_glyph_matrix): Additional parameter W.
8987         Handle own storage for purely window based redisplay.
8988         (allocate_matrices_for_frame_redisplay): Formerly part of
8989         allocate_matrices.  
8990         (allocate_matrices_for_window_redisplay): Ditto.
8992         * dispextern.h (struct glyph_matrix): window_top_y,
8993         window_height.
8995         * dispnew.c (allocate_matrices_for_window_redisplay): Detect
8996         and optimize some common cases of window changes.
8998         * emacs.c (main): Remove own profiling code because 0.95 now
8999         has it in.
9001 Fri Aug 22 18:46:43 1997  Gerd Moellmann  <gerd@acm.org>
9003         * xterm.c (XTupdate_end): Draw horizontal border at right
9004         position.
9005         (expose_window): Draw vertical border.
9006         (XTclear_end_of_line): Accept width <= 0 and height <= 0 but
9007         don't do anything.
9009         * xdisp.c (redisplay_internal): Set update_mode_line if paused
9010         for non full width windows only if not window redisplay.
9012         * dispnew.c (update_window_tree): Or paused_p return of called
9013         functions.
9015         * xterm.c (x_display_and_set_cursor): Return if hpos/vpos outside
9016         of window.
9018         * window.c (Fset_window_configuration): adjust_glyphs being
9019         called twice.
9020         (Fset_window_configuration): Set frame garbaged if not all
9021         leaf windows reused.
9023 1997-08-21  Gerd Moellmann  <gerd@acm.org>
9025         * dispnew.c (clear_glyph_matrix): Additional argument specifiying
9026         that rows should really be cleared.  Used for current matrices.
9028         * dispnew.c (scrolling_window):  Bug fix.
9029         (line_dance_hook):  Formerly line_dance_fn, take only one 
9030         parameter.
9032         * dispextern.h (struct run): Remove current_vpos.
9034         * xterm.c (do_line_dance): Only one parameter.
9036         * xdisp.c (display_line): set continued_p.
9038         * dispextern.h (struct glyph_row): New flag continued_p.
9039         Fix truncated_on_left_p and truncated_on_right_p to be bits.
9040         (struct glyph_row): 
9042 Thu Aug 21 14:37:34 1997  Gerd Moellmann  <gerd@acm.org>
9044         * xdisp.c (skip_vertically_backward): Avoid negative vpos values
9045         when calling skip_to for continued lines.
9047         * dispnew.c (change_frame_size_1): Set frame garbaged.
9049         * xterm.c (expose_window): Check enabled_p of rows.
9051         * xdisp.c (redisplay_internal): Compare line heights before and
9052         now for redisplay optimization 2 (hit).
9053         (display_line): Set this_line_pixel_height.
9055         * xterm.c (x_draw_row_borders): Use FRAME_MODE_LINE_HEIGHT height
9056         value.
9057         (x_clip_to_row): Use MATRIX_ROW_VISIBLE_HEIGHT. Simplified.
9058         (do_line_dance): Simplified and pixel corrected.
9060         * dispnew.c (scrolling_window): Simplified.
9062         * xterm.c (x_draw_3d_border): Inset rectangle by line width.
9064         * dispnew.c (update_window): Add FRAME_MODE_LINE_BORDER_WIDTH
9065         to mode line row->x.
9067 Wed Aug 20 11:23:28 1997  Gerd Moellmann  <gerd@acm.org>
9069         * xterm.c (x_get_char_font_and_encoding): Don't let fontset
9070         override font of face.
9071         (draw_glyphs): Correct return value.
9072         (XTclear_end_of_line): Compare differently with output cursor
9073         position.
9074         (x_draw_hollow_cursor): 2 parameters, window and row.
9076         * dispnew.c (update_window_line): If rows have different height
9077         or y, write entire line.
9079         * xdisp.c (compute_line_metrics): reset max_ascent and max_descent
9080         of info struct.
9082         * xfaces.c (Fset_face_attribute_internal): Don't call 
9083         frame_update_line_height.
9084         (merge_faces): Don't use default font if new font has different
9085         size.
9087 Tue Aug 19 14:38:05 1997  Gerd Moellmann  <gerd@acm.org>
9089         * xterm.c (x_display_and_set_cursor): Use FONT_WIDTH if width
9090         unknown.  Some fonts have min_width zero.
9091         (draw_glyphs): Don't draw underlines to the end of the display
9092         line if face is merely extended to that point.
9093         (draw_glyphs): Don't assume background is filled if
9094         just_foreground_p but extending to end of line.
9096         * xterm.c (XTclear_end_of_line): Clip only to display_height - 1
9097         for partially visible last lines.
9098         (x_clip_to_row): Ditto.
9099         (x_clip_to_row): Clip to display_height-1 if y + line_height >
9100         display_height since line_height is really a line distance.
9101         (x_display_and_set_cursor): If cursor on padding glyph, use
9102         min_bounds pixel width.
9104 Mon Aug 18 09:39:18 1997  Gerd Moellmann  <gerd@acm.org>
9106         * xterm.c (x_clip_to_row):  Height value was 1 too large.
9107         (XTclear_end_of_line):  Clip to display area.
9109         * xfns.c (x_figure_window_sizes):  Add trunc border width
9110         to frame pixel width.
9112         * xdisp.c (next_display_element): Don't display overlay strings
9113         within invisible text.
9114         (skip_vertically_backward):  Skip display lines. 
9116 Sat Aug 16 13:13:32 1997  Gerd Moellmann  <gerd@acm.org>
9118         * xdisp.c (x_consider_frame_titie): Don't pad with blanks.
9120         * xdisp.c (next_display_element):  Next invisible
9121         text check position computed differently.
9123         * dispextern.h (struct display_cursor): last_invisible_text_pos
9124         and display_ellipsis_for_invisible_p removed.
9126         * xdisp.c (next_display_element):  Set last_invisible_text_pos
9127         to the last position at which invisible text was found.  Don't
9128         decrement cursor.pos for newlines and cr with ellipsis.  Set
9129         dpvec for `...' due to invisible text directly.  
9130         (redisplay_internal):  Don't assert that cursor is at PT after
9131         skip_to.  It may be in invisible text.
9133         * keyboard.c (make_lispy_event): For mouse clicks, use 
9134         x_y_to_hpos_vpos.
9136         * xdisp.c (next_display_element):  Call get_overlays_for_cursor when 
9137         next_overlay_pos is reached.  Use limit cursor.pos + 100 when
9138         checking for invisible text.
9140         * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed.
9142         * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c
9144         * xfns.c (x_contour_region):  Use pixel coordinates from window
9145         cursor instead of WINDOW_TO_FRAME_H/VPOS.
9147         * dispextern.h (FRAME_TO_WINDOW_HPOS, FRAME_TO_WINDOW_VPOS):
9148         Removed.
9150         * dispnew.c (frame_to_window_hpos, frame_to_window_vpos): Removed.
9152         * xterm.c (x_y_to_hpos_vpos):  Get hpos/vpos from window relative
9153         pixel coordinates.
9154         (note_mouse_highlight): Use it.
9156         * xdisp.c (echo_area_display):  Ignore calls for terminal frames
9157         under a window system.
9159         * dispnew.c (adjust_frame_glyphs): Call redraw_frame if 
9160         necessary.
9161         (update_window_line): Add width of face padding glyph to 
9162         displayed widths of rows.
9164         * xterm.c (x_display_and_set_cursor):  Set clipping after
9165         erasing cursor.
9166         
9167         * window.c (Fset_window_configuration): Free only those 
9168         window matrices not reused.
9169         (get_leaf_windows): Build vector of leaf windows.
9170         Corrupted archive restored from v77.
9172         * xdisp.c (display_string): stop at >= last_visible_x if truncating
9173         like display_line does.
9175         * xdisp.c (display_mode_line): Don't hscroll mode line.
9177         * xterm.c (draw_glyphs): Wrong run_width computed for horiz. split
9178         windows.
9179         (x_scroll_bar_create): #3039 Clear area below scroll bar to remove
9180         garbage between mode lines when splitting windows horiz.
9182         * dispnew.c (direct_output_for_insert): Bug fix.
9184         * dispextern.h (struct display_cursor): New member string_length.
9186         * xdisp.c (next_display_element): Return padding spaces.
9187         (init_string_cursor): take precision and field_width
9188         (display_string): Use string cursor, skip over invisible text.
9190 Thu Aug 14 10:41:41 1997  Gerd Moellmann  <gerd@acm.org>
9192         * xterm.c (x_clip_to_row): Clip to partially visible lines.
9193         (x_display_and_set_cursor): Call it.
9194         (draw_glyphs): Call it
9195         (draw_bitmap): Call it.
9197         * dispnew.c (adjust_frame_glyphs): Optimize frame garbaging. 
9198         (allocate_leaf_matrix): Return flags.
9199         (row_equal_p): Compare enabled_p.
9201         * xterm.c (x_erase_phys_cursor):  Set phys_cursor_on_p to 0
9202         for type == -1.
9204         * xterm.c (x_display_and_set_cursor): Bar cursor 1 pixel taller.
9205         (draw_glyphs):  Clip height one pixel taller. 
9207         * dispnew.c (direct_output_for_insert): Give up for hscrolled 
9208         mini window.
9210         * xdisp.c (display_line): don't scroll mini prompt.
9212         * xdisp.c (echo_area_display): Call update_single_window if 
9213         possible. 
9215         * dispnew.c (update_window_line):  Call scrolling_window.
9216         (scrolling_window): work on enabled desired lines only.
9217         (update_single_window): Update a single window like update_frame
9218         does for all windows.
9219         (update_window, update_window_tree): Additional argument 
9220         no_scrolling_p.
9221         (update_frame): Pass no_scrolling_p to update_window_tree.
9222         (update_window): Don't call scrolling_window if no_scrolling_p.
9224         * xterm.c (x_erase_phys_cursor): Do nothing if type == -1.
9225         Erase under hollow cursor. 
9226         (x_display_and_set_cursor): Do nothing if cursor glyph row 
9227         not enabled.  Draw bar cursor 1 pixel smaller.
9229         * dispnew.c (adjust_frame_glyphs): don't set frame garbaged
9230         since update will follow soon.
9232         * xdisp.c (echo_area_display): Unitialized variable.
9234         * xterm.c (draw_bitmap): previously draw_truncation; draw
9235         overlay arrow bitmap.
9237         * xdisp.c (display_line): for truncated lines, consider everything
9238         up to the final \n as part of the line for cursor positioning. 
9240         * xterm.c (draw_truncation): take FRAME_X_TRUNC_WIDTH into account.
9241         (x_after_update_window_line): clear trunc marks.
9243         * xterm.h (FRAME_X_TRUNC_WIDTH).
9245         * frame.h (FRAME_TRUNC_WIDTH):  width of area at the left margin
9246         of a window reserved for truncation mark.
9248         * dispextern.h: Take FRAME_TRUNC_WIDTH into account. 
9250         * dispnew.c (update_window_line): Call after_update_windwo_line-
9251         hook.  
9253         * xdisp.c (display_line): Set overlay_arrow_p in row.
9255         * dispextern.h (struct glyph_row): New flag overlay_arrow_p.
9257         * xterm.c (x_after_update_window_line): Draw truncation marks.
9259         * xdisp.c (display_line): Insert truncation for lines with
9260         current_x > 0.
9262         * xterm.c (x_draw_row_borders): Convert y to frame coords.
9263         Correct y by 1.
9264         (x_display_cursor): Use default font width if width not
9265         known. 
9267         * xdisp.c (echo_area_display): set row->y.
9269         * dispnew.c (set_window_cursor_after_update): Don't assume
9270         all rows are enabled.
9272         * xdisp.c (skip_in_display_line_to): Test cursor.position instead
9273         of cursor.pos.
9274         (skip_in_display_line_to): Check cursor.position after call to
9275         next_display_element.
9277         * dispextern.h (CURSOR_AT_P): Test if cursor has reached 
9278         buffer position.
9280         * xdisp.c (display_line): Set row->y here.
9281         (skip_in_display_line_to): Test for to_pos after all glyphs
9282         have been added to hpos so that hpos is at the end of all
9283         glyphs for to_pos.
9284         (start_display): Remove assertion.
9286         * dispnew.c (direct_output_forward_char): Bug fix, = instead of
9287         ==.
9288         (update_window): Don't set row->y here.
9290         * xdisp.c (next_display_element): Don't translate control chars
9291         from display table entries.
9293         * dispnew.c (direct_output_for_insert): Set cursor before 
9294         update end to prevent cursor flickering.  Revert changes to
9295         setting cursor.endpos.
9297 Wed Aug 13 10:46:12 1997  Gerd Moellmann  <gerd@acm.org>
9299         * dispnew.c (direct_output_for_insert):  Don't set cursor.endpos
9300         to PT because this prevents multi-byte characters from being
9301         recognized.
9303         * xdisp.c (skip_to, display_line):  Advance cursor at end of 
9304         truncated line. 
9306         * xterm.c (x_draw_3d_borders): Use CapRound. Struct rect
9307         replaced by XRectangle.
9309         * dispnew.c (scrolling_window): New method.
9311         * xterm.c (do_line_dance): New implementation, new method.
9312          
9313         * xdisp.c (draw_glyphs):  Draw truncation bitmaps. Clip to
9314         visible part of line.
9316         * dispnew.c (update_window_line): Fill inverse video lines
9317         with infinite width space.
9318         (update_window): Handle completely empty matrices.
9319         (set_window_cursor_after_update): Bug fix.
9321         * xterm.c (draw_glyphs): Stop drawing at right window end. 
9323         * dispnew.c (update_window_line): Don't ignore spaces, don't
9324         fill with spaces.
9326         * xdisp.c (compute_line_metrics): Stop adding glyph widths with
9327         the first glyph having width 0.
9329         * xterm.c (draw_glyphs): Let a glyph pixel with of 0 denote
9330         a glyph that extends to the end of the line. 
9332         * xdisp.c (display_line): Insert one padding glyph
9334         * xdisp.c (skip_in_display_line_to): Don't subtract shift left
9335         amount from info.current_x.
9336         (display_line): Ditto.
9338         * dispnew.c (direct_output_for_insert): Correct use of cursor.x.
9339         (change_frame_size_1): Correct cursor.x if frame gets too small.
9340         (update_window_line): Start at row->x.
9342         * xdisp.c (redisplay_internal): Correct cursor.x (everwhere
9343         in xdisp.c).
9345         * xterm.c (set_output_cursor): Use window relative X/Y.
9346         (global): Use window relative output cursor x/y.
9347         (draw_glyphs): Remove y param. Pass window relative x/y.
9349         * dispnew.c (update_window): Start rows at start_y.
9350         (update_window): Don't try scrolling because it wouldn't work
9351         with variable height lines, anyway.
9353         * dispextern.h (struct glyph_row): Remove shift_left_by,
9354         add x.
9356         * window.h: (struct window): New member start_y.
9358         * window.c (replace_window): Initialize start_y.
9359         (make_window): Ditto.
9361 Tue Aug 12 14:53:04 1997  Gerd Moellmann  <gerd@acm.org>
9363         * xterm.c (draw_glyphs): Clip rows that would paint over
9364         the mode line. 
9366         * dispnew.c (update_window): Take mode line border into 
9367         account. 
9369         * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Number of pixels
9370         of border around mode line. 
9372         * xterm.c (x_draw_row_borders): Bug fix.
9373         (x_erase_phys_cursor): Set pyhs_cursor.x/y before calling
9374         drawing functions.
9376         * xterm.c (x_draw_row_border): Experimental; draw 3d borders
9377         around modeline instead of inverting it. 
9379         * xterm.c (glyph_to_pixel_coords): Use current matrix. 
9381         * dispnew.c (buffer_posn_from_coords): Use SKIP_TO.  Now takes
9382         window relative pixel coordinates as arguments.
9384         * keyboard.c (make_lispy_event): Use BUFFER_POSN_FROM_COORDS
9385         with window relative pixel coordinates.  Use GLYPH_TO_PIXEL_-
9386         COORDS mit new arguments.
9388 Mon Aug 11 12:32:34 1997  Gerd Moellmann  <gerd@acm.org>
9390         * xdisp.c (start_display): Use SKIP_TO instead of SKIP_IN-
9391         DISPLAY_LINE.  
9393         * keyboard.c (make_lispy_event): WINDOW_FROM_COORDINATES with
9394         pixel coords.
9395         (make_lispy_movement): Same.
9397         * xterm.c (note_mouse_highlight): Use WINDOW_FROM_COORDINATES
9398         with new parameter meaning.
9400         * window.c (Fcoordinates_in_window_p): Convert Lisp params
9401         from canon units to pixels.
9402         (coordinates_in_window): Pixel based.
9403         (Fcoordinates_in_window_p): Convert result pixel values back
9404         to canonical units.
9406         * window.h: phys_cursor_ascent + descent instead of height.
9408         * xterm.c (XTget_char_info): Use per char metrics for multi-byte
9409         chars with charset width 1.
9411         * dispnew.c (direct_output_for_insert): Set updated_row.
9413 Sat Aug  9 12:11:44 1997  Gerd Moellmann  <gerd@acm.org>
9415         * dispextern.h (struct glyph): Padding flag removed.
9417 Tue Aug  5 09:59:08 1997  Gerd Moellmann  <gerd@acm.org>
9419         * sysdep.c (reset_sys_modes): cursor_to with 4 params.
9421         * keyboard.c (interrupt_signal): Cursor_to with 4 params.
9423         * dispnew.c (update_window_line): Use pixels.
9425         * xdisp.c (compute_line_metrics): Correct pixel_width by
9426         shift_left_by.
9428         * dispextern.h (struct glyph_row): FIRST_SHIFTED_LEFT_GLYPH
9429         removed.  Remove references to it everywhere.  Reverse_p in 
9430         glyph_row -> right_to_left_p.  Change references to it.
9432 Mon Aug  4 18:09:27 1997  Gerd Moellmann  <gerd@acm.org>
9434         * dispnew.c (direct_output_for_insert): Use INSERT_GLYPHS.
9436         * xterm.c (XTinsert_glyphs): Implement it.
9438         * term.c (insert_glyphs): UPDATING_FRAME may be NULL in case
9439         of a call from DIRECT_OUTPUT_FOR_INSERT.
9441         * window.h (struct cursor_pos): Keeps both matrix positions
9442         and pixel positions.
9443         (struct window): Use it.
9445         * dispnew.c (direct_output_for_insert): New version.
9447         * xdisp.c (redisplay_internal): Don't do anything if it has
9448         already be done directly.
9450         * keyboard.c (command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
9451         for any character.
9453 Thu Jul 31 15:39:10 1997  Gerd Moellmann  <gerd@acm.org>
9455         * xdisp.c (echo_area_display): Use new DISPLAY_STRING.
9457 Wed Jul 30 12:18:03 1997  Gerd Moellmann  <gerd@acm.org>
9459         * dispextern.h (struct glyph_row): MAX_ASCENT, MAX_DESCENT.
9460         (struct glyph): ASCENT, DESCENT.
9461         (MATRIX_ROW_PIXEL_HEIGHT): Pixel height of row.
9462         (GLYPH_PIXEL_HEIGHT): Pixel height of glyph.
9464         * xterm.c (XTget_display_info): Correct tab computation.
9466         * term.c (get_display_info): Correct tab computation.
9468         * dispextern.h (struct display_cursor): WHAT_FOUND, SOURCE_OBJECT.
9469         Renamed from CHAR_CURSOR.
9471 Tue Jul 29 12:52:40 1997  Gerd Moellmann  <gerd@acm.org>
9473         * xdisp.c (display_text_line): Mostly pixel oriented.
9475         * dispextern.h (struct glyph): BOX_WIDTH -> PIXEL_WIDTH.
9477         * term.c (append_intermediate_glyph): Generate padding glyphs.
9479         * xdisp.c (display_text_line): More into final direction.
9481         * xterm.c (XTget_char_info): Use WHAT field of CHAR_INFO.
9482         (XTget_char_info): Use tabs as multiples of spaces.
9484         * term.c (get_char_info): Use WHAT field of CHAR_INFO.
9485         Use tabs as multiples of spaces.
9487         * dispextern.h (struct char_info ): WHAT field.
9489         * term.c (encode_terminal_code): Don't use GLYPH_CHAR, use
9490         FAST_GLYPH_CHAR instead because GLYPH_CHAR won't remove faces.
9492 Mon Jul 28 14:23:06 1997  Gerd Moellmann  <gerd@acm.org>
9494         * dispnew.c (init_char_info): Correct TAB_WIDTH to a reasonable
9495         value.
9496         (init_char_info): Initialize with glyph row.
9498         * term.c (get_char_info): Check WANT_ELLIPSIS_P.
9500         * xterm.c (XTget_char_info): Check WANT_ELLIPSIS_P.
9502         * dispextern.h (struct char_info ): GLYPH_ROW for intermediate
9503         glyphs.
9505         * dispnew.c (init_char_info): Init GLYPH_ROW to NULL. CHAR_CURSOR
9506         moved to xdisp.c.
9508         * xdisp.c (display_text_line): Use CHAR_CURSOR.
9510         * xterm.c (x_append_intermediate_glyph): Intermediate glyph
9511         generation.
9512         (XTget_char_info): Ditto.
9514         * term.c (get_char_info): Intermediate glyph generation.
9515         (append_intermediate_glyph): Ditto.
9517 Sun Jul 27 18:57:24 1997  Gerd Moellmann  <gerd@acm.org>
9519         * dispnew.c (compute_char_cursor_face): Compute the face for a 
9520         CHAR_CURSOR.
9521         (init_char_cursor): Initialize a CHAR_CURSOR.
9522         (get_char_and_advance): Get next character to display.
9524         * dispextern.h (struct char_cursor): Cursor for iterating over
9525         display text of CURRENT_BUFFER.
9527 Sat Jul 26 13:33:03 1997  Gerd Moellmann  <gerd@acm.org>
9529         * term.c (get_char_info): Set MAX_PIXEL_WIDTH in CHAR_INFO.
9531         * dispextern.h (struct char_info ): Use LISP_CHAR_TABLE for DP.
9532         New member MAX_PIXEL_HEIGHT.
9534         * xterm.c (x_per_char_metric): Get per character metrics.
9535         (XTget_char_info): More cases covered.
9537         * term.c (get_char_and_info): Get next character and character
9538         display information.
9539         (get_char_info): Get character display information.
9541         * dispextern.h: Character display information.
9543         * xterm.c (x_get_char_font_and_encoding): Get font and 
9544         encode character.
9545         (XTget_char_info): Get display information about a character.
9547 Wed Jul 23 16:50:18 1997  Gerd Moellmann  <gerd@acm.org>
9549         * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Height is
9550         zero if window is mini-window.
9552         * xdisp.c: Include xterm.h or w32term.h for FRAME_LINE_HEIGHT.
9553         (try_window): DISPLAY_TEXT_LINE as long as Y < DISPLAY_HEIGHT.
9555         * dispnew.c (assign_row): Assign row pixel height. 
9556         (clear_glyph_row): Clear pixel height.
9557         (update_window): Use PIXEL_HEIGHT.
9559         * xdisp.c (display_string): Set row pixel height temporarily.
9560         (display_text_line): Ditto.
9562         * dispextern.h (GLYPH_PIXEL_WIDTH): 
9563         (GLYPH_PIXEL_HEIGHT): Get glyph pixel dimension.
9565         * frame.h (FRAME_DEFAULT_PIXEL_LINE_HEIGHT): Get height of 
9566         line in default font.
9567         (FRAME_DEFAULT_GLYPH_PIXEL_WIDTH): Get width of character
9568         in default font.
9569         (FRAME_MODE_LINE_PIXEL_HEIGHT): Get height of mode line.
9571         * xterm.h (FRAME_MODE_LINE_HEIGHT): Return height of mode line
9572         in pixels.
9574         * dispnew.c (allocate_leaf_matrix): Use window pixel macros.
9576         * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH):
9577         (WINDOW_DISPLAY_PIXEL_HEIGHT): 
9578         (WINDOW_DISPLAY_MODE_LINE_HEIGHT): 
9579         (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE): 
9580         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): 
9581         (WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X): 
9582         (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): 
9583         (WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y): Macros to get various
9584         pixel values related to windows.
9586 Mon Jul 21 12:22:02 1997  Gerd Moellmann  <gerd@acm.org>
9588         * xterm.c (XTflash): Flash last line of frame.
9590         * dispextern.h (cursor_in_echo_area): Extern declaration.
9592         * xterm.c (dumpglyphs): 8-bit version to test if my Xserver
9593         freezes stem from 16-bit functions.
9595         * xterm.c (x_display_and_set_cursor): Don't display hollow
9596         cursor in mini windows.
9598         * window.c (replace_window): Initialize PHYS_CURSOR_TYPE.
9599         (make_window): Ditto.
9601         * xterm.c (x_erase_phys_cursor): Erase cursor image.
9602         (x_display_and_set_cursor): Merged version of X_DISPLAY_BOX_CURSOR
9603         and X_DISPLAY_BAR_CURSOR.
9604         (x_display_cursor): Use it.
9605         (x_update_window_cursor): Use it.
9607         * xdisp.c (display_text_line): Set cursor for window even if not
9608         selected.
9610         * xterm.c (x_display_bar_cursor): Use HPOS and VPOS instead
9611         of X and Y to denote matrix positions.
9612         (x_display_cursor): Ditto.
9614         * dispnew.c (scrolling_window): Scrolling for windows.
9616 Wed Jul 16 13:37:51 1997  Gerd Moellmann  <gerd@acm.org>
9618         * dispnew.c (build_frame_matrix): Work on windows with update
9619         flag set.
9620         (build_frame_matrix_from_window_tree): Ditto.
9621         (build_frame_matrix_from_leaf_window): Ditto.
9623         * xdisp.c (echo_area_display): Set MUST_BE_UPDATED_P instead of
9624         building frame matrix.
9625         (redisplay_internal): Set window update flags instead of 
9626         building frame matrix.
9628         * minibuf.c (read_minibuf): Set MUST_BE_UPDATED_P instead of
9629         building frame matrix.
9631         * window.c (make_window): Initialize new members.
9632         (replace_window): Ditto.
9634         * xfns.c (Fx_create_frame): Don't set PHYS_CURSOR_X to -1.
9635         I don't believe this is really necessary.
9637         * dispnew.c (build_frame_matrix_from_leaf_window): Determine
9638         border glyph once. 
9640 Tue Jul 15 13:58:33 1997  Gerd Moellmann  <gerd@acm.org>
9642         * window.c (mark_window_cursors_off): Mark all cursors in 
9643         window tree off.
9645         * xterm.c (x_display_box_cursor): Window paraemter.  Use 
9646         window matrix.
9647         (glyph_to_pixel_pos): Convert matrix pos -> pixels.
9648         (pixel_to_glyph_pos): Convert pixel pos -> matrix pos.
9649         (x_update_cursor): Work on windows.
9650         (x_display_bar_cursor): Ditto.
9651         (x_draw_single_glyph): Ditto.
9653         * xterm.h: Prototype for X_DISPLAY_CURSOR.
9655         * xterm.c (XTcursor_to): Void return type.  Test for
9656         UPDATED_WINDOW.  Call x_display_cursor with window.
9657         (x_display_cursor): Void return type.  Window instead of frame
9658         parameter.
9660         * window.h (WINDOW_RIGHTMOST_P, WINDOW_TOPMOST_P): Use functions
9661         below.
9663         * window.c (window_rightmost_p, window_topmost_p): Based on
9664         window tree.
9666         * dispnew.c (adjust_frame_message_buffer): Allocate with
9667         FRAME_MESSAGE_BUF_SIZE.
9669         * window.h: PHYS_CURSOR_.* added.
9671         * frame.h (struct frame): Cursor information removed.
9673         * frame.h (FRAME_SCROLL_BAR_WIDTH): Removed because unused.
9674         (FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
9676         * window.h (WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
9678         * window.c (window_internal_width): Scroll bars no longer
9679         part of window.
9681         * xterm.c (XTclear_end_of_line): FRAME_LEFT_SCROLL_BAR_WIDTH
9682         removed.
9684         * xfns.c (x_set_scroll_bar_width): FRAME_LEFT_SCROLL_BAR_WIDTH
9685         removed.
9687         * xdisp.c (echo_area_display): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
9688         (redisplay_internal): Ditto.
9689         (redisplay_window): Ditto.
9690         (redisplay_window): Ditto.
9691         (display_text_line): Ditto.
9692         (display_mode_line): Ditto.
9694         * minibuf.c (read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
9696         * dispnew.c (set_cursor_to): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
9697         (direct_output_for_insert): Ditto.
9698         (direct_output_forward_char): Ditto.
9699         (update_frame_1): Ditto.
9701 Mon Jul 14 12:30:03 1997  Gerd Moellmann  <gerd@acm.org>
9703         * dispnew.c (updated_window): Set by UPDATE_WINDOW to the window
9704         being updated.
9705         (update_window): Set and clear it.
9707         * dispnew.c (update_window_line, update_window, scrolling_window):
9708         First versions.
9710         * dispnew.c (build_frame_matrix_from_leaf_window): Add vertical
9711         bar for window borders.
9712         (fill_up_glyph_row_area_with_spaces): Fill an area of a row
9713         with spaces.
9714         (fill_up_glyph_row_with_spaces): Call above function.
9716         * xdisp.c (display_text_line): Don't add vertical bar for
9717         window borders.
9718         (display_string): Ditto.
9720         * window.c (make_window): Init CURSOR_VPOS/HPOS.
9721         (replace_window): Ditto.
9723         * xterm.c (XTwrite_glyphs): Use selected window cursor position.
9725         * xfns.c (Fx_contour_region): Use selected window cursor position.
9726         (Fx_uncontour_region): Ditto.
9727         (Fx_select_region): Ditto.
9729         * frame.c (make_frame): Remove CURSOR_X/Y.
9731         * xdisp.c (redisplay_internal): Use window cursor position.
9733         * dispnew.c (update_frame_1): Use cursor position of selected
9734         window.
9735         (change_frame_size_1): Ditto.
9737         * xterm.c (XTupdate_begin): Set CURS_X/Y from selected window.
9738         (XTwrite_glyphs): Use cursor position of selected window.
9740         * xfns.c (x_set_scroll_bar_width): Set cursor pos of selected
9741         window.
9743         * dispnew.c (set_cursor_to): Set window cursor position.
9744         (direct_output_for_insert): Use window cursor position.
9745         (init_display): Don't use frame cursor position.
9747         * window.h: CURSOR_VPOS/HPOS added.
9749         * frame.h (struct frame): CURSOR_X/Y removed.
9750         (FRAME_CURSOR_X): Removed.
9751         (FRAME_CURSOR_Y): Ditto.
9753         * dispnew.c (direct_output_for_insert): LAST_POINT_X removed.
9754         (direct_output_forward_char): Ditto.
9756         * xdisp.c (redisplay_internal): LAST_POINT_X and LAST_POINT_Y
9757         removed.
9759         * window.c (make_window): LAST_POINT_X and LAST_POINT_Y removed.
9761         * window.h: LAST_POINT_X and LAST_POINT_Y removed.
9763 Sun Jul 13 14:18:24 1997  Gerd Moellmann  <gerd@acm.org>
9765         * xdisp.c: Bug fixes using SET_CURSOR with HPOS 0 instead
9766         of FRAME_LEFT_SCROLL_BAR_WIDTH.
9768         * dispextern.h: Changed function names.
9770         * dispnew.c (scrolling): Don't call SCROLLING_1 if WINDOW_SIZE
9771         < 2.
9772         (clear_window_matrices): Formerly two functions for desired
9773         and current matrix.
9774         (update_frame_1): Call CLEAR_DESIRED_MATRICES.
9775         (update_frame): Return return value from UPDATE_FRAME_1.
9777 Sat Jul 12 12:58:48 1997  Gerd Moellmann  <gerd@acm.org>
9779         * xdisp.c (try_window): Set WINDOW_END_VPOS with window relative
9780         LAST_TEXT_VPOS.
9782         * frame.c (set_menu_bar_lines): Adjust matrices.
9784         * dispnew.c (set_cursor_to): Set cursor position.
9786         * minibuf.c (read_minibuf): Build frame matrix.
9788         * xdisp.c (this_line_start_hpos): Renamed to
9789         THIS_LINE_START_WINDOW_HPOS to make it clear that this is window
9790         relative.
9791         (this_line_vpos): Renamed to THIS_LINE_WINDOW_VPOS for the same
9792         reason.
9794         * dispnew.c (build_frame_matrix): Don't clear rows of the 
9795         menu bar.
9796         (clear_window_records): Clear window rows.
9797         (clear_frame_records): Clear window and frame rows.
9798         (clear_glyph_matrix): Set all rows of a matrix to empty.
9800         * xdisp.c (echo_area_display): Parameter UPDATE_FRAME_P.  Update
9801         frame if set.
9802         (message2_nolog): Pass 1 to ECHO_AREA_DISPLAY.  UPDATE_FRAME
9803         removed.
9804         (redisplay_internal): Pass 0 to ECHO_AREA_DISPLAY.
9805         (redisplay_internal): Build frame matrix before UPDATE_FRAME.
9807         * dispnew.c (assign_row): Assign one glyph row to another.
9808         (mirrored_make_current): Use it.
9809         (mirror_make_current): Use it.
9810         (update_line): Rely on MIRRORED_MAKE_CURRENT to set flags and
9811         used counters for the current glyph row.
9812         
9814 Fri Jul 11 13:16:50 1997  Gerd Moellmann  <gerd@acm.org>
9816         * lisp.h: Prototype for SCAN_BUFFER.
9818         * xdisp.c (redisplay_windows): Simplified.
9820         * dispnew.c (window_to_frame_vpos): Convert window to frame vpos
9821         with debug checks.
9822         (window_to_frame_hpos): Convert window to frame hpos with checks.
9823         (frame_to_window_vpos): Convert frame to window vpos with checks.
9824         (frame_to_window_hpos): Convert frame to window hpos with checks.
9826         * dispextern.h: PRESERVE_OTHER_COLUMNS removed.
9828         * dispnew.c: PRESERVE_OTHER_COLUMNS removed.
9830         * xdisp.c (redisplay_internal): Another instance of
9831         DISPLAY_TEXT_LINE with window relative VPOS.
9832         (redisplay_internal): Remove PRESERVE_OTHER_COLUMNS.
9834         * dispnew.c (init_desired_glyphs): Do it on window matrices,
9835         only.
9837         * xdisp.c (try_window_id): Use CANCEL_WINDOW_LINE.
9838         (redisplay_internal): Ditto.
9840         * dispnew.c (cancel_window_line): Use window matrix.  Changed
9841         name to CANCEL_WINDOW_LINE.
9843         * xdisp.c (try_window_id): Use DISPLAY_TEXT_LINE with window
9844         relative VPOS.
9846         * dispextern.h (WINDOW_TO_FRAME_VPOS): Convert window vpos 
9847         to frame vpos. 
9848         (WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
9849         (FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
9850         (FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
9852         * xdisp.c (try_window_id): Use ADJUST_WINDOW_CHARSTARTS with
9853         window relative VPOS.
9854         (redisplay_internal): Use ADJUST_WINDOW_CHARSTARTS with window
9855         relative VPOS.
9857         * dispnew.c (adjust_window_charstarts): Use INCREMENT_GLYPH_-
9858         MATRIX_BUFFER_POSITIONS.
9860         * xdisp.c (try_window_id): Use SCROLL_FULL_WIDTH_WINDOW.
9862         * dispextern.h: Prototype for SCROLL_FULL_WIDTH_WINDOW.
9864         * dispnew.c (scroll_frame_lines): Make it work on window 
9865         matrix.  Change name to scroll_full_width_window.
9867         * xdisp.c (message2_nolog): Don't fwrite NULL message If
9868         NONINTERACTIVE.
9870 Mon Jul  7 14:44:38 1997  Gerd Moellmann  <gerd@acm.org>
9872         * dispnew.c (init_desired_glyphs): Clear both frame matrix
9873         and window matrices. 
9874         (adjust_window_charstarts): Use window matrix.
9875         (cancel_my_columns): Use window matrix.
9876         (direct_output_for_insert): Use window matrix, only.
9878         * xdisp.c (display_glyphs): Extracted code from DISPLAY_STRING.
9879         (display_string): Call display_glyphs.
9880         (display_menu_bar_string): Display a string in a menu bar line.
9881         (display_menu_bar): Use DISPLAY_MENU_BAR_STRING.
9882         (display_text_line): Use window matrix.
9883         (try_window): Use window relative positions.
9885 Sun Jul  6 17:02:26 1997  Gerd Moellmann  <gerd@acm.org>
9887         * dispnew.c (adjust_frame_glyphs): Allocate window matrices from
9888         (0, 0).
9889         (allocate_leaf_matrix): Add FRAME_MENU_BAR_LINES to the height of
9890         top-most windows.
9892         * window.h (WINDOW_TOPMOST_P): Added.
9894         * xdisp.c (echo_area_display): Use PREPARE_DESIRED_ROW.
9895         (redisplay_window): Ditto.
9896         (display_text_line): Ditto.
9897         (display_menu_bar): Ditto.
9898         (display_mode_line): Ditto.
9899         (display_mode_line): Use window matrix.
9900         (display_string): Use window matrix.
9901         (display_mode_element): Ditto.
9902         (echo_area_display): Don't display if frame has no pools yet.
9903         (echo_area_display): Work with window matrix for mini window.
9904         (redisplay_window): Use window marix for mini window.
9905         (display_text_line): Assume HPOS and VPOS are window relative and
9906         use that for DISPLAY_STRING.
9908         * dispextern.h: Prototype for prepare_desired_row.
9910         * dispnew.c (prepare_desired_row): Replacement for
9911         GET_DISPLAY_LINE.
9913         * dispnew.c (adjust_window_charstarts): Always allocate window
9914         matrices.
9915         (clear_glyph_row): Only reset used counters and flags.
9917 Sat Jul  5 14:55:44 1997  Gerd Moellmann  <gerd@acm.org>
9919         * dispnew.c (scroll_frame_lines): Don't assume first scolled
9920         line is non-empty. 
9921         (realloc_glyph_pool): Don't add 1 to the pool size.
9922         (adjust_glyph_matrix): Don't add 1 to pointers to glyph areas.
9924         * dispnew.c (line_hash_code): Don't use null-glyph end marker.
9925         (line_draw_cost): Ditto.
9926         (update_line): Ditto.
9927         (update_line): Use SPACE_GLYPH.
9928         (count_blanks): Additional parameter LEN.
9930         * xdisp.c (display_text_line): Use SPACE_GLYPH.
9931         (display_text_line): Don't add null-glyph end marker.
9932         (display_string): Use SPACE_GLYPH.
9933         (display_string): Don't use null-glyph end marker.
9935         * term.c (clear_end_of_line): Use SPACE_GLYPH.
9937         * dispnew.c (clear_glyph_row): Don't use null-glyph end markers.
9938         (fill_up_glyph_row_with_spaces): Ditto.
9939         (preserve_other_columns): Add SPACE_GLYPH at then end of desired
9940         rows, instead of null-glyphs.
9941         (direct_output_for_insert): Don't add null-glyph end marker.
9943         * scroll.c (do_direct_scrolling): Change algorithm to construct
9944         vector of lines assigned.  Call MIRRORED_LINE_DANCE:
9945         (do_scrolling): Ditto.
9947         * dispnew.c (mirror_line_dance): Mirror line assignments in a
9948         frame matrix in window matrices.
9949         (mirrored_line_dance): Do line assignments during scrolling.
9950         Maybe do corresponding assignments in window matrices.
9951         (check_window_matrix_pointers): Check that window rows and frame
9952         rows agree about glyph pointers.
9953         (check_matrix_pointers): Ditto.
9954         (mirrored_make_current): Make a row of a desired matrix current;
9955         maybe mirror the operation in window matrices.
9956         (mirror_make_current): Make window desired matrix row current when
9957         frame matrix row was made current.
9959 Fri Jul  4 13:27:46 1997  Gerd Moellmann  <gerd@acm.org>
9961         * dispnew.c (check_matrix_pointer_lossage): Check against
9962         pointer lossage in matrices.
9963         (get_glyph_matrix_row): Removed.
9965         * scroll.c (do_scrolling): Simplified.
9966         (do_direct_scrolling): Simplified.
9967         (scrolling_1): Pass CURRENT_MATRIX instead of FRAME to
9968         DO_.*SCROLLING.
9969         
9971         * dispnew.c (ins_del_glyph_rows): Insert/delete rows in a matrix.
9972         (rotate_vector): Removed.
9973         (rotate_pointers): Removed.
9974         (scroll_frame_lines): Simplified.
9976 Thu Jul  3 13:54:21 1997  Gerd Moellmann  <gerd@acm.org>
9978         * dispextern.h (MATRIX_ROW_SWAP_CONTENTS): Removed.
9980         * dispnew.c (increment_glyph_matrix_buffer_positions): Does
9981         what the name says.
9982         (clear_glyph_row): Make a glyph row structure empty.
9983         (make_matrix_row_current): Make a glyph row current.
9984         (make_window_matrix_row_current): Perform analogous row swaps
9985         for window matrices.
9986         (update_line): Call make_matrix_row_current.
9988 Wed Jul  2 13:43:35 1997  Gerd Moellmann  <gerd@acm.org>
9990         * dispextern.h (SET_MATRIX_ROW_ENABLED_P): Better macro name.
9991         (SET_MATRIX_ROW_INVERSE_P): Better name and HIGHLIGHT_P ->
9992         INVERSE_P.
9993         (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P.
9994         (struct glyph_row): HIGHLIGHT_P -> INVERSE_P
9996         * all files: use above new names.
9998         * dispnew.c (scroll_frame_lines): Simplified.  Use
9999         SCROLL_GLYPH_MATRIX.
10000         (make_glyph_row_empty): Mark a glyph row empty.
10001         (increment_glyph_row_buffer_positions): Increment 
10002         buffer positions in a glyph row.
10003         (increment_glyph_matrix_buffer_positions): Increment buffer
10004         positions in a range of rows.
10005         (scroll_glyph_matrix): Scroll a glyph matrix.
10006         (swap_glyphs_in_rows): Swap glyphs between rows.
10007         (swap_glyph_pointers): Swap pointers between rows.
10008         (glyph_row_slice_p): Return 1 if one row is a slice of another.
10009         (init_display): Initialize SPACE_GLYPH.
10010         (fill_up_glyph_row_areas_with_spaces): Fill up areas with
10011         spaces. 
10013 Tue Jul  1 13:49:55 1997  Gerd Moellmann  <gerd@acm.org>
10015         * xterm.c (dumprectangle): Use vectors in glyph rows.
10017         * xdisp.c (display_text_line): Use vectors in glyph rows.
10018         (display_string): Ditto.
10020         * scroll.c (do_scrolling): Use vectors in glyph rows.
10021         (do_direct_scrolling): Ditto.
10023         * alloc.c (mark_object): Use vectors in glyph rows.
10024         Mark for all frame types.
10026         * dispnew.c (adjust_glyph_matrix): Use vectors to glyphs in
10027         glyph rows.
10028         (get_glyph_matrix_row): Ditto.
10029         (matrix_row): Ditto.
10030         (rotate_pointers): Ditto.
10031         (scroll_frame_lines): Ditto.
10032         (preserve_other_columns): Ditto.
10033         (cancel_my_columns): Ditto.
10034         (update_line): Ditto.
10035         (direct_output_for_insert): Ditto.
10037         * dispextern.h (struct glyph_row): Use a vector of pointers
10038         instead of individual members.  Use a vector of used counters.
10039         (MATRIX_ROW_SWAP_CONTENTS): Use vectors.
10040         (MATRIX_ROW_GLYPH_START): Ditto.
10041         (MATRIX_ROW_GLYPH_END): Ditto.
10042         (MATRIX_ROW_USED): Ditto.
10043         (MATRIX_ROW_SET_USED): Ditto.
10045         * dispnew.c (line_hash_code): Simplified.
10047 Mon Jun 30 20:39:38 1997  Gerd Moellmann  <gerd@acm.org>
10049         * dispnew.c: Prototype for ROTATE_VECTOR, ROTATE_POINTERS,
10050         CHANGE_FRAME_SIZE_1
10051         (preserve_other_columns): Void return.
10052         (cancel_my_columns): Void return type.
10053         (scrolling): Int return type.
10054         (do_pending_window_change): Void return type.
10055         (change_frame_size): Ditto.
10056         (bitch_at_user): Ditto.
10057         (init_display): Ditto.
10058         (syms_of_display): Ditto.
10060         * dispextern.h: add prototypes for REDRAW_FRAME,
10061         REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS,
10062         INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS,
10063         ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS,
10064         DIRECT_OUTPUT_FOR_INSERT, DIRECT_OUTPUT_FORWARD_CHAR,
10065         UPDATE_FRAME, SCROLLING, BUFFER_POSN_FROM_COORDS,
10066         DO_PENDING_WINDOW_CHANGE, CHANGE_FRAME_SIZE, BITCH_AT_USER,
10067         SIT_FOR, INIT_DISPLAY, SYMS_OF_DISPLAY,
10068         
10069         * dispnew.c (redraw_frame): FRAME_PTR -> struct frame.  Return
10070         void.
10071         (cancel_line): Return void.
10072         (clear_frame_records):  Return void.
10073         
10074         * dispextern.h (struct glyph): Remove GLYPH, add bit-fields.
10075         (SET_CHAR_GLYPH): Fill a character glyph.
10076         (SET_CHAR_GLYPH_FROM_GLYPH): Set a character glyph from a GLYPH.
10077         (GLYPH_FROM_CHAR_GLYPH): Construct a GLYPH from a character
10078         glyph. 
10079         (CHAR_GLYPH_CHAR_CODE): Return character code of a glyph.
10080         (SET_CHAR_GLYPH_CHAR_CODE): Set character code of a glyph.
10081         (CHAR_GLYPH_FACE_ID): Return face id of a glyph.
10082         (SET_CHAR_GLYPH_FACE_ID): Set face id of a glyph.
10083         (CHAR_GLYPH_PADDING_P): Return padding flag of a glyph.
10084         (SET_CHAR_GLYPH_PADDING_P): Set padding flag.
10085         (CHAR_GLYPH_REVERSE_P): Return reversed flag.
10086         (SET_CHAR_GLYPH_REVERSE_P): Set reversed flag.
10087         (MATRIX_ROW_SWAP_CONTENTS): Swap pointers between rows.
10089         * term.c (reassert_line_highlight): Check CHARS_WASTED == 0.
10091         * window.h (struct window): Add comment that no Lisp data may
10092         come below CURRENT_MATRIX.
10094         * alloc.c (mark_object): Change window mark code to stop with
10095         member CURRENT_MATRIX.
10097 Sat Jun 28 13:54:55 1997  Gerd Moellmann  <gerd@acm.org>
10099         * scroll.c (do_scrolling): Change algorithm to use pointers.
10100         (do_direct_scrolling): Ditto.
10102         * dispnew.c (get_glyph_matrix_row): Use pointers stored in rows.
10103         (new_glyph_pool): Formerly new_FRAME_GLYPH_MATRIX.
10104         (free_glyph_pool): Formerly FREE_FRAME_GLYPH_MATRIX
10105         (realloc_glyph_pool): Formerly REALLOC_FRAME_GLYPH_MATRIX.
10106         Returns 1 if pool changed.
10107         (matrix_row): Additional check for lost pointers to glyph rows.
10108         (compute_matrices): Additional parameter DIM_P set means that no
10109         allocation should take place.  Addtional parameter
10110         ANY_WINDOWS_CHANGED_P set if any windows matrix has changed.
10111         (compute_leaf_matrix): Additional parameter CHANGED_P set to 1
10112         when window matrix changes.  Additional parameter DIM_ONLY_P set
10113         to 1 to indicate that no allocation should take place.
10114         (adjust_frame_glyphs): Construct new glyph pools and glyph
10115         matrices.  Optimize frame redraws.
10116         (free_glyphs): Free pools.
10117         (check_glyph_memory): Check pools not freed.
10118         (rotate_pointers): Rotate pointers in a vector of glyph rows.
10119         (scroll_frame_lines): Change algorithm to use pointers.
10120         (update_line): Ditto.
10122         * dispextern.h (struct glyph_row): Use pointers to areas in a row.
10123         (global): All macro names changed from prefix FRAME_MATRIX to
10124         MATRIX.
10126 Fri Jun 27 14:51:15 1997  Gerd Moellmann  <gerd@acm.org>
10128         * dispextern.h (struct glyph_pool): Replacement for former
10129         FRAME_GLYPH_MATRIX.
10130         (struct glyph_matrix): No longer contains sizes of allocated
10131         areas.
10133         * xdisp.c (redisplay_internal): Don't redisplay if frame has
10134         no glyph pools.
10136         * frame.c (make_frame): Initialize pools.
10138 Thu Jun 26 00:00:55 1997  Gerd Moellmann  <gerd@acm.org>
10140         * scroll.c (do_direct_scrolling): Don't assume that the 
10141         line moving algorithm has no intermediate steps.
10142         (do_scrolling): Ditto.
10144         * Makefile.in (alloc.o): Add dependency dispextern.h.
10146         * alloc.c: Include dispextern.h for glyph definitions.
10148         * dispnew.c (get_glyph_matrix_row): Return 1 if ROW_INDEX
10149         is legal, return 0 otherwise.
10151         * window.h: Add comment that windows are marked specially.
10153         * alloc.c (mark_object): Mark windows specially.
10156 Wed Jun 25 15:22:58 1997  Gerd Moellmann  <gerd@acm.org>
10158         * dispextern.h (struct glyph): Add member OBJECT
10159         referencing a Lisp object from which a glyph was drawn.
10160         Member TEXT_POSITION renamed POSITION.
10161         * xterm.c, xdisp.c, dispnew.c: Rename TEXT_POSITION -> POSITION.
10163         * alloc.c: Include dispextern.h
10164         (mark_object): Mark objects referenced from glyphs.
10166         * frame.c (make_frame): initialize DECODE_MODE_SPEC_BUFFER.
10168         * scroll.c (do_direct_scrolling): Remove TEMP_MATRIX.
10169         (do_scrolling): Ditto.
10171         * frame.h (struct frame): TEMP_MATRIX removed.  
10172         DECODE_MODE_SPEC_BUFFER added.
10174         * window.h: TEMP_MATRIX removed.
10176         * scroll.c: OPHYS_LINES removed.
10178         * dispnew.c: OPHYS_LINES and OPHYS_LINES_LENGTH removed.
10179         FRAME_PTR -> struct frame *.
10181         * termhooks.h: Prototypes for INSERT_GLYPHS_HOOK,
10182         WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
10184         * term.c: Prototypes for INSERT_GLYPHS_HOOK,
10185         WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
10187         * xdisp.c (redisplay_internal): Remove call to VERIFY_CHARSTARTS.
10188         (do_verify_charstarts): Removed.
10190         * frame.c (Fmake_terminal_frame): Adjust glyphs.
10191         (Fdelete_frame): Free glyphs.
10192         (make_frame): Initialize matrix fields in frame.
10194         * config.in (PROTO): added.
10196         * emacs.c (shut_down_emacs): check glyph memory.
10198         * window.c (Fdelete_window): Free window matrices.
10199         (Fset_window_configuration): Ditto.
10200         (Fdelete_window): Adjust glyphs.
10201         (Fsplit_window): Ditto.
10202         (change_window_height): Ditto.
10203         (Fset_window_configuration): Ditto.
10204         (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX.
10205         (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX
10207         * Makefile.in (window.o): Add dependency window.c -> dispextern.h
10209         * window.c: Include dispextern.h
10211         * scroll.c (do_scrolling): Use new glyphs.
10212         (do_direct_scrolling): Ditto.
10214         * xdisp.c: Some function prototypes.
10215         (redisplay_internal): Don't do anything if matrices not yet set.
10216         (redisplay_internal): Use new glyphs.
10217         (try_window_id): Ditto.
10218         (copy_part_of_rope): Ditto.
10219         (display_text_line): Ditto.
10220         (display_menu_bar): Ditto.
10221         (display_mode_line): Ditto.
10222         (display_string): Ditto.
10224         * xterm.c: Prototypes for some local functions.
10225         (dumpglyphs): Use new glyphs.
10226         (XTwrite_glyphs): Ditto.
10227         (dumprectangle): Ditto.
10228         (note_mouse_highlight): Ditto.
10229         (fast_find_position): Ditto.
10230         (show_mouse_face): Ditto.
10231         (x_draw_single_glyph): Ditto.
10232         (x_display_bar_cursor): Ditto.
10233         (x_display_box_cursor): Ditto.
10234         (x_new_font): Adjust glyphs when font change.
10236         * term.c (clear_end_of_line): Use new glyphs.
10237         (write_glyphs): Ditto.
10238         (insert_glyphs): Ditto.
10240         * Makefile.in (term.o): term.c depends on dispextern.h
10242         * term.c: Include dispextern.h
10244         * dispnew.c (direct_output_forward_char): Old glyph functions
10245         removed, new inserted. 
10246         (line_hash_code): Use new glyphs.
10247         (line_draw_cost): Ditto
10248         (cancel_line): Ditto
10249         (clear_frame_records): Ditto.
10250         (init_desired_glyphs): Ditto.
10251         (get_display_line): Ditto
10252         (scroll_frame_lines): Ditto.
10253         (preserve_other_columns): Ditto.
10254         (adjust_window_charstarts): Ditto.
10255         (cancel_my_columns): Ditto.
10256         (direct_output_for_insert): Ditto.
10257         (update_frame): Ditto.
10258         (quit_error_check): Made empty.
10259         (scrolling): Use new glyphs.
10260         (count_blanks): Ditto.
10261         (count_match): Ditto.
10262         (update_line): Ditto.
10263         (init_display): Adjust glyphs initially.
10264         (change_frame_size_1): Adjust glyphs.
10266         * dispextern.h: Old glyphs removed, new added.
10268         * xfaces.c (min_char_bounds): Get smallest char in loaded fonts.
10270         * xterm.h: Prototype for min_char_bounds.
10272         * window.h (struct window): Remove old glyphs, add new.
10274         * frame.h (struct frame): Remove old glyphs, add new.
10275         
10276 1999-07-20  Dave Love  <fx@gnu.org>
10278         * buffer.c (syms_of_buffer): Make
10279         default-enable-multibyte-characters a user variable.
10281 1999-07-14  Richard Stallman  <rms@gnu.org>
10283         * Version 20.4 released.
10285 1999-07-14  Richard Stallman  <rms@gnu.org>
10287         * filelock.c (lock_file): Do nothing if purifying.
10289 1999-07-10  Richard Stallman  <rms@gnu.org>
10291         * xterm.c (x_display_bar_cursor): Use the cursor-color
10292         to display the bar, not the cursor foreground pixel.
10294 1999-07-09  Andrew Innes  <andrewi@gnu.org>
10296         * w32console.c (w32_use_full_screen_buffer): New variable.
10297         (syms_of_ntterm): Register it.
10298         (initialize_w32_display): Set initial frame size accordingly,
10299         respecting the LINES and COLUMNS environment variables if set.
10301         * w32inevt.c (w32_console_read_socket): Use it.
10303 1999-07-07  Kenichi Handa  <handa@etl.go.jp>
10305         * callproc.c (Fcall_process): Decide coding system for decoding
10306         after we set to the target buffer.  If the output goes to a
10307         unibyte buffer, suppress character code conversion.
10309         * fileio.c (Finsert_file_contents): If reading into a unibyte
10310         buffer, suppress character code conversion.
10312         * process.c (create_process): If the output goes to a unibyte
10313         buffer, suppress character code conversion.p
10315 1999-07-07  Andreas Schwab  <schwab@gnu.org>
10317         * xdisp.c (line-number-display-limit): Doc fix.
10319 1999-07-05  Richard Stallman  <rms@gnu.org>
10321         * callproc.c (Fcall_process): Don't use initializer on coding_systems.
10322         (Fcall_process_region): Likewise.
10324 1999-07-01  Markus Rost  <markus.rost@mathematik.uni-regensburg.de>
10326         * callproc.c (init_callproc): Set exec_directory if
10327         installation_directory is non-nil, without a test of exec_path.
10329 1999-07-01  Andrew Innes  <andrewi@gnu.org>
10331         * w32xfns.c (drain_message_queue): New function.
10333         * w32term.h (drain_message_queue): Add extern.
10335         * w32proc.c (sys_select): Call MsgWaitForMultipleObjects instead
10336         of WaitForMultipleObjects when user input is allowed, so we can
10337         handle incoming window messages.  Call drain_message_queue when
10338         there are messages waiting; this ensures that windows created
10339         indirectly from the lisp thread get processed properly, and don't
10340         hang other applications by failing to respond to broadcasts.
10342 1999-07-01  Andreas Schwab  <schwab@gnu.org>
10344         * callint.c (Fcall_interactively): Ignore first element of
10345         event-symbol-elements property.
10347 1999-07-01  Richard Stallman  <rms@gnu.org>
10349         * fileio.c (Fread_file_name): Check type of DEFAULT_FILENAME.
10351 1999-07-01  Kenichi Handa  <handa@etl.go.jp>
10353         * minibuf.c (read_minibuf): Set the multibyteness of the
10354         minibuffer before inserting `initial' string.
10356 1999-06-30  Richard Stallman  <rms@gnu.org>
10358         * xfns.c (x_make_gc): Turn off GCStipple when setting up cursor_gc.
10360 1999-06-29  Richard M. Stallman  <rms@gnu.org>
10362         * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook):
10363         Move the handling of MALLOC_CHECK_ envvar here.
10364         (main): Moved from here.
10366 1999-06-29  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
10368         * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook): New
10369         function, assigned to the global __malloc_initialize_hook pointer.
10370         (main): Move malloc_set_state call into malloc_initialize_hook
10371         so that it happens as early as possible.
10373 1999-06-27  Richard M. Stallman  <rms@gnu.org>
10375         * keyboard.c (read_key_sequence): Properly reinitialize
10376         fkey_map after translating thru Vkey_translation_map.
10377         After translating thru Vfunction_key_map, don't reset
10378         keytrans-start to 0.
10380 1999-06-24  Geoff Voelker  <voelker@cs.washington.edu>
10382         * w32.c (get_emacs_configuration): Use GetVersionEx to
10383         handle NT5.0 correctly.  Include build number in configuration.
10384         w32heap.c (osinfo_cache): New variable.
10385         (cache_system_info): Initialize osinfo_cache.
10386         w32heap.h (osinfo_cache): Declare.
10388 1999-06-24  Richard M. Stallman  <rms@gnu.org>
10390         * casefiddle.c (casify_object): Use make_multibyte_string
10391         if we casify a multibyte string.
10393 1999-06-22  Ken'ichi Handa  <handa@gnu.org>
10395         * fileio.c: (Finsert_file_contents): In the case of REPLACE, call
10396         del_range_byte instead of del_range_1, set `inserted' to the
10397         number of characters actually inserted.
10399 1999-06-17  Dave Love  <fx@gnu.org>
10401         * coding.c (decode_coding_sjis_big5): Avoid compiler warning.
10403 1999-06-18  Paul Eggert  <eggert@twinsun.com>
10405         * filelock.c (BOOT_TIME_FILE): New macro.
10406         (get_boot_time): Use it instead of hardwiring the file name.
10407         Check BOOT_TIME_FILE only after inspecting the kernel directly.
10409 1999-06-17  Dave Love  <fx@gnu.org>
10411         * xdisp.c (invalid_eol_type): Make it unsigned.
10413 1999-06-17  Karl Heuer  <kwzh@gnu.org>
10415         * process.c (send_process): Delete unsafe/redundant assignment.
10417 1999-06-17  Jason Rumney  <jasonr@gnu.org>
10419         * w32term.c (dumprectangle): Handle wide characters properly.
10421 1999-06-16  Andrew Innes  <andrewi@gnu.org>
10423         * s/ms-w32.h (strerror): Override the default implementation of
10424         strerror, so we can map winsock error codes.
10426         * w32.c (sys_strerror): New function.
10428         * w32fns.c (w32_to_x_weight): Return "demibold" instead of "semibold".
10430 1999-06-15  Ken'ichi Handa  <handa@gnu.org>
10432         * buffer.c (syms_of_buffer): Don't make
10433         enable-multibyte-characters customizable.
10435 1999-06-15  Richard M. Stallman  <rms@gnu.org>
10437         * editfns.c (Fuser_full_name): Doc fix.
10439 1999-06-14  Tak Ota <ota@atc.sel.sony.com>
10441         * w32bdf.c: (clear_cached_bitmap_slots): Remove.
10442         (get_bitmap_with_cache): Check if CreateBitmap failed.
10443         Adjust cache size dynamically so cache is never larger than the
10444         system limit of GDI resources.
10445         Do cache clearing inline.  Move global variables to local scope.
10448 1999-06-13  Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
10450         * unexsgi.c (unexec): Dump the .rodata section from memory
10451         under IRIX6.5 in order to be able to unexec with gcc.
10453 1999-06-11  Greg Hudson  <ghudson@MIT.EDU>
10455         * indent.c (compute_motion): Fix boundary case.
10457 1999-06-11  Jason Rumney  <jasonr@altavista.net>
10459         * w32term.c (cancel_mouse_face): New function. See equiv
10460         changes to xterm.c on 1996-10-31.
10461         (x_set_window_size): Use cancel_mouse_face.
10462         (w32_read_socket): Use cancel_mouse_face.
10463         Update frame position when size is restored.
10465 1999-06-04  Richard M. Stallman  <rms@gnu.org>
10467         * lread.c (Vuser_init_file): New variable.
10468         (syms_of_lread): Set up Lisp variable.
10469         (Fload): Store the file name there, if var was t before.
10471 1999-06-04  Paul Eggert  <eggert@twinsun.com>
10473         * filelock.c (get_boot_time): Don't look at /proc/uptime; it
10474         doesn't work if the system date is changed, or if the system
10475         is suspended.  Look at the last-modified time of
10476         /var/run/random-seed instead.
10478 1999-06-03  Ken'ichi Handa  <handa@gnu.org>
10480         * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
10481         japanese-jisx0208-1978 correctly.
10483 1999-06-03  Andrew Innes  <andrewi@gnu.org>
10485         * unexw32.c (get_section_info) [_ALPHA_]: Force as much bss data
10486         as possible to be dumped, for safety.
10488 1999-06-02  Ken'ichi Handa  <handa@gnu.org>
10490         * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
10491         latin-jisx0201 correctly.
10493 1999-05-26  Ken'ichi Handa  <handa@gnu.org>
10495         * charset.h (Vcharset_table): Comment fixed.
10497 1999-05-24  Richard Stallman  <rms@gnu.org>
10499         * coding.c (syms_of_coding): Doc fix.
10501         * buffer.c (syms_of_buffer): Doc fix.
10503         * filelock.c (lock_if_free): After deleting a stale lock,
10504         try again to lock the file.
10506 1999-05-22  Andrew Innes  <andrewi@gnu.org>
10508         * w32inevt.c (maybe_generate_resize_event): Detect changes in the
10509         console window size.
10510         (w32_console_read_socket): Call maybe_generate_resize_event
10511         whenever input events are received, since we don't get told when
10512         the window size changes (as opposed to the buffer size, which we
10513         don't care about).
10515         * w32console.c (clear_frame): Remember that the window width might
10516         be smaller than the screen buffer width.
10517         (write_glyphs): Remove redundant variable attrs.  Use
10518         FillConsoleOutputAttribute instead of WriteConsoleOutputAttribute.
10520 1999-05-20  Andrew Innes  <andrewi@gnu.org>
10522         * w32term.c (w32_read_socket): Reset the grabbed flag when a frame gains or
10523         loses focus.
10525         * w32fns.c (w32_wnd_proc): Ensure mouse capture is released if
10526         frame loses focus, and that mouse button state is reset.  Ditto
10527         when the menu bar is activated.
10529 1999-05-18  Richard Stallman  <rms@gnu.org>
10531         * abbrev.c (Fdefine_abbrev): Doc fix.
10533 1999-05-13  Paul Eggert  <eggert@twinsun.com>
10535         * filelock.c: Fix performance bug on hosts with large
10536         /var/adm/wtmp files with no boot records.
10538         (boot_time_initialized): New var.
10539         (init_filelock): Initialize it.
10540         (get_boot_time): Use it, instead of nonzero boot_time,
10541         to test whether boot_time is initialized.
10542         Don't invoke utmp routines when dumping.
10544         (get_boot_time): First, try to get the boot time from the
10545         current utmp file, as this can be much faster.  Don't try to
10546         get the boot time from utmp and/or wtmp more than once.
10548         (get_boot_time_1): When passed null pointer, don't invoke utmpname.
10549         New arg LATEST.  All uses changed.
10551 1999-05-15  Andrew Innes  <andrewi@gnu.org>
10553         * w32term.c (dumpglyphs): Use correct colours for drawing
10554         rectangles in place of missing fonts, and make them the right
10555         size.
10557 1999-05-14  Dave Love  <fx@gnu.org>
10559         * syntax.c (Fparse_partial_sexp): Correct test for element 8 to be
10560         non-nil.
10562 1999-05-11  Andrew Innes  <andrewi@gnu.org>
10564         * w32fns.c (x_to_w32_charset): Reinstall VIETNAMESE_CHARSET
10565         definition.
10566         (w32_wnd_proc): Reinstall debugging output.
10567         (w32_wnd_proc): Reinstall SetForegroundWindow change.
10568         (syms_of_w32fns): Reinstall new initializer for
10569         Vw32_phantom_key_code.
10571         * w32fns.c (x_to_w32_charset): Do partial matching of charset
10572         names for most non-European charsets, to cope with wildcards or
10573         missing spec dates.
10574         (Fw32_send_sys_command): Post WM_SYSCOMMAND rather than sending it
10575         to avoid deadlock when activating the menu bar.
10577 1999-05-10  Ken'ichi Handa  <handa@gnu.org>
10579         * search.c (boyer_moore): Get charset base value of `untranslated'
10580         by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
10582 1999-05-10  Andreas Schwab  <schwab@gnu.org>
10584         * fileio.c (Fread_file_name): Correct handling of dollars in file
10585         names.  Protect dollars in strings put on the file-name-history.
10586         Substitute homedir by `~' also in default_filename.
10588         * xdisp.c (try_window_id): Fix computation of tab_offset when
10589         backing up over a character that is splitted across lines.
10591 1999-05-08  Kenichi HANDA  <handa@etl.go.jp>
10593         * coding.c (code_convert_region): If eol format is inconsistent,
10594         change coding->symbol to the sibling coding system of Unix like
10595         eol format.
10597 1999-05-09  Richard M. Stallman  <rms@gnu.org>
10599         * s/irix5-2.h (NO_WTMP_FILE): Define it.
10601         * filelock.c (get_boot_time): Handle NO_WTMP_FILE.
10603 1999-05-05  Andrew Innes  <andrewi@gnu.org>
10605         * w32fns.c (w32_strict_painting): New variable.
10606         (w32_wnd_proc): Use it to select repaint rules.
10607         (syms_of_w32fns): Defvar it.
10609 1999-05-04  Andrew Innes  <andrewi@gnu.org>
10611         * w32fns.c (x_to_w32_charset): Fix typo: want to map all Japanese
10612         charsets to the standard Windows charset for Japanese.
10614 1999-05-04  Ken'ichi Handa  <handa@gnu.org>
10616         * xterm.c (x_load_font): Fix typo (`>' -> `=').
10618         * ccl.h (struct ccl_program): New member stack_idx.
10620         * ccl.c (ccl_prog_stack_struct): Declare it as static.
10621         (ccl_driver): Setup stack_idx and ccl_prog correctly.  Update them
10622         before returing.
10623         (setup_ccl_program): Initialize ccl->stack_idx to 0.
10625 1999-05-03  Jason Rumney  <jasonr@altavista.net>
10627         * w32term.c (dumpglyphs): Always fill background for italic fonts.
10629 1999-05-03  Eli Zaretskii <eliz@is.elta.co.il>
10631         * dired.c (make_time): Make argument type be time_t.
10633 1999-05-02  Eli Zaretskii <eliz@is.elta.co.il>
10635         * msdos.c (unibyte_display_via_language_environment): Add extern.
10637 1999-05-02  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
10639         * xdisp.c (display_text_line): Convert unibyte char to multibyte
10640         if unibyte_display_via_language_environment is set.
10641         (unibyte_display_via_language_environment):
10642         Variable moved from xfns.c and elsewhere.
10643         (syms_of_xfns): Set up Lisp var.
10645         * xfns.c (unibyte_display_via_language_environment):
10646         Variable moved to xdisp.c.
10647         (syms_of_xfns): Don't set up Lisp var here.
10649         * msdos.c (unibyte_display_via_language_environment):
10650         Variable moved to xdisp.c.
10651         (syms_of_msdos): Don't set up Lisp var here.
10653         * w32fns.c (unibyte_display_via_language_environment):
10654         Variable moved to xdisp.c.
10655         (syms_of_w32fns): Don't set up Lisp var here.
10657 1999-05-02  Andrew Innes  <andrewi@gnu.org>
10659         * s/ms-w32.h (HAVE_FSYNC): New macro.
10660          (fsync): Map to _commit.
10661          (ftruncate): Map to _chsize.
10663         * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even
10664         for ASCII, if enabled, to avoid memory allocation overhead for
10665         implicit Unicode conversion.  Also, recognize that ASCII and
10666         Latin-1 have a trivial conversion to Unicode, so x_2byte_buffer
10667         already contains the Unicode characters in that case.
10668         (construct_drag_n_drop): Remove old code that was
10669         trashing the drop location.
10671         * w32select.c (Fw32_set_clipboard_data): Undo last change to add
10672         nlines to encoding_buffer_size (real bug was in a ccl program in
10673         lisp/international/coding.el).
10675         * w32reg.c (w32_get_string_resource): Check for name in current
10676         user area, and if not found look in the local machine area.
10678         * w32fns.c (w32_list_bdf_fonts): Initialize n_fonts.
10679         (Fw32_shell_execute): New function; used to support browse-url.
10680         (syms_of_w32fns): Register it.
10681         (w32_load_system_font): Force max width to be average
10682         char width for fixed-pitch fonts, to avoid unnecessary redisplay
10683         slowdown.
10684         (x_to_w32_charset): Define VIETNAMESE_CHARSET if not
10685         already defined.
10686         (syms_of_w32fns): Set Vw32_phantom_key_code to 255.
10688         * unexw32.c (get_section_info): Dump back the entire EMDATA
10689         section if we can put Emacs' initialized data in a separate
10690         section, otherwise use the my_begdata/my_edata method.
10692         * makefile.nt ($(BLD)\w32term.obj): Add dependency on w32heap.h.
10694         * coding.c (decode_eol): Set produced/consumed values to zero if
10695         src_bytes is <= 0 on entry.
10697 1999-05-02  Jason Rumney  <jasonr@altavista.net>
10699         * w32term.c (w32_write_glyphs, w32_clear_end_of_line,
10700         w32_clear_frame, clear_cursor, x_display_bar_cursor,
10701         x_display_box_cursor, x_set_window_size): Use phys_cursor_on
10702         field in frame.
10703         (do_line_dance): Updated WRT xterm.c. Use macros where possible.
10704         (dumprectangle): Take into account the width of a left-side
10705         scroll bar.
10707         * w32proc.c (sys_kill): Attach to current foreground thread
10708         when grabbing focus; necessary on NT 5.0.
10710         * w32fns.c (w32_wnd_proc) [WM_PAINT]: Use rectangle from
10711         GetUpdateRect rather than BeginPaint.
10712         (w32_wnd_proc): Attach to current foreground thread
10713         when grabbing focus; necessary on NT 5.0.
10714         (w32_wnd_proc) [W32_DEBUG_DISPLAY]: Add output for
10715         debugging display messages.
10716         (w32_to_x_charset): Put wildcard last in unknown charsets to avoid
10717         false matching.
10719 1999-05-02  Kenichi HANDA  <handa@etl.go.jp>
10721         * coding.c (setup_raw_text_coding_system): Call
10722         setup_coding_system to initialize the fields of struct
10723         coding_system correctly.
10724         
10725 1999-04-26  Kenichi HANDA  <handa@etl.go.jp>
10727         * xterm.c (x_list_fonts): Fix previous change.
10729 1999-04-26  Richard Stallman  <rms@gnu.org>
10731         * config.in (HAVE_LIBXP): Add #undef.
10732         * Makefile.in (LIB_MOTIF_EXTRA): Check HAVE_LIBXP.
10734 1999-04-12  Ken'ichi Handa  <handa@gnu.org>
10736         * xterm.c (x_list_fonts): Trap X errors so that Emacs doesn't die
10737         by them.
10739 1999-04-12  Karl Heuer  <kwzh@gnu.org>
10741         * s/freebsd.h (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3.
10743 1999-04-11  Ken'ichi Handa  <handa@gnu.org>
10745         * fontset.c (Fset_fontset_font): Fix previous change.
10747 1999-04-09  Ken'ichi Handa  <handa@gnu.org>
10749         * fontset.c (Fquery_fontset): Check for fontset aliases here.
10750         (Fnew_fontset, Fset_fontset_font): Don't check for them here.
10752 1999-04-08  Richard Stallman  <rms@gnu.org>
10754         * process.c (Faccept_process_output): Check validity of PROCESS.
10756 1999-04-08  Eli Zaretskii  <eliz@gnu.org>
10758         * msdos.c (jp_kbd_translate_table): Fix the other \ key.
10760 1999-04-07  Richard Stallman  <rms@gnu.org>
10762         * xfns.c (x_set_font): Fix error message.
10764         * fontset.c (Fquery_fontset): Don't check for fontset aliases here.
10765         (Fnew_fontset, Fset_fontset_font): Check for them here.
10766          (Ffontset_info, Fnew_fontset, Fset_fontset_font):
10767         Fix error message syntax.
10769         * buffer.c (Fmake_indirect_buffer): Copy multibyte status
10770         from the base buffer.
10771         (Fset_buffer_multibyte): Copy new multibyte status
10772         into the buffer's indirect buffers.
10774 1999-04-07  Ken'ichi Handa  <handa@gnu.org>
10776         * fns.c (base64_encode_1): Don't add unnecessary newline at the
10777         tail.
10779 1999-04-06  Richard Stallman  <rms@gnu.org>
10781         * dired.c (Ffile_attributes): Doc fix.
10783         * keymap.c (Faccessible_keymaps): Really initialize i_byte.
10784         Convert 0200 to meta only in a unibyte string.
10785         (Fkey_description): Likewise.
10787         * eval.c (do_autoload): Preserve match data.
10789 1999-04-06  Kenichi HANDA  <handa@etl.go.jp>
10791         * w32fns.c (x_to_w32_font): Provide sufficient buffer to
10792         encode_coding to avoid carryover.
10794         * coding.c: Add comments for decode_coding and encode_coding.
10796         * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
10797         a composite character by skipping its leading code.
10798         <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
10799         correctly.
10801         * coding.c: Add comments for decode_coding and encode_coding.
10803         * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
10804         a composite character by skipping its leading code.
10805         <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
10806         correctly.
10808 1999-04-06  Eli Zaretskii  <eliz@gnu.org>
10810         * msdos.c (dos_rawgetc): Don't zero out c if private translation
10811         table was used.
10812         (jp_kbd_translate_table): Support C-\.
10813         (it_kbd_translate_table): Map `>' correctly.
10814         (it_keyboard): Add `>'.
10816 1999-04-06  Richard Stallman  <rms@gnu.org>
10818         * intervals.c (graft_intervals_into_buffer): Turn off
10819         inhibit_modification_hooks around calling Fset_text_properties.
10821 1999-04-05  Kenichi HANDA  <handa@etl.go.jp>
10823         * xterm.c (dumpglyphs): Be sure to fill the whole background of
10824         glyphs.
10826 1999-04-05  Eli Zaretskii  <eliz@gnu.org>
10828         * msdos.c (jp_kbd_translate_table): Fix last change.
10830 1999-04-04  Eli Zaretskii  <eliz@gnu.org>
10832         * msdos.c (struct kbd_translate): New struct, for key translation
10833         tables private to certain national keyboard layouts.
10834         (struct dos_keyboard_map): Add a pointer to a private translation
10835         table.
10836         (jp_kbd_translate_table): Private table for the Japanese
10837         keyboard.
10838         (jp_keyboard): Japanese keyboard layout.
10839         (it_kbd_translate_table): Private table for the Italian keyboard.
10840         (it_keyboard): Use it_kbd_translate_table.
10841         (keyboard_layout_list): Add the Japanese keyboard.
10842         (dos_rawgetc): Use the keyboard-private translation table, if
10843         available.
10844         (abort) [__DJGPP_MINOR__ >= 2]: Raise SIGABRT.
10846 1999-04-02  Kenichi HANDA  <handa@etl.go.jp>
10848         * xdisp.c (redisplay_window): When we call compute_motion with
10849         HPOS got from w->last_point_x, call it with DID_MOTION 1.
10850         (display_text_line): Stop the loop for processing overlay strings
10851         when we reach the right edge of the window.
10853 1999-03-31  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
10855         * doc.c (get_doc_string): When UNIBYTE and DEFINITION are 0,
10856         let the data control whether string is unibyte.
10858 1999-03-30  Richard M. Stallman  <rms@gnu.org>
10860         * macros.c (Fexecute_kbd_macro): Save real_this_command.
10861         (pop_kbd_macro): Restore the saved real_this_command.
10862         (Fcall_last_kbd_macro): Set real_this_command to the macro.
10864 1999-03-26  Richard M. Stallman  <rms@gnu.org>
10866         * buffer.c (Fset_buffer_modified_p): Don't lock or unlock
10867         if buffer-file-name is nil.
10869 1999-03-25  Jason Rumney  <jasonr@altavista.net>
10871         * w32select.c (Fw32_set_clipboard_data): Take into account line
10872         ends when calculating clipboard storage needed for non-ASCII text.
10874 1999-03-25  Andrew Innes  <andrewi@gnu.org>
10876         * makefile.nt (PREPARED_HEADERS): Change name of paths.h to epaths.h.
10877         (epaths.h): Renamed from paths.h.
10878         (clean): 
10879         ($(BLD)\filelock.obj): 
10880         ($(BLD)\lread.obj): 
10881         ($(BLD)\w32fns.obj): Renamed paths.h to epaths.h.
10883 1999-03-23  Ken'ichi Handa  <handa@gnu.org>
10885         * coding.c (encode_coding_iso2022): Initialize dummy arguments to
10886         ENCODE_ISO_CHARACTER for the previous change on this macro.
10888 1999-03-23  Kenichi Handa  <handa@etl.go.jp>
10890         * xdisp.c (decode_mode_spec_coding): Handle integer value in
10891         eoltype correctly for backward compatibility.
10893 1999-03-20  Kenichi HANDA  <handa@etl.go.jp>
10895         * coding.c (ENCODE_ISO_CHARACTER): Check validity of CHARSET.  If
10896         invalid, produce the buffer internal byte sequence without encoding.
10898 1999-03-19  Karl Heuer  <kwzh@gnu.org>
10900         * editfns.c (Fformat): Accept %i format.
10902 1999-03-17  Karl Heuer  <kwzh@gnu.org>
10904         * filelock.c (get_boot_time): Test tempname, not filename.
10906 1999-03-17  Jason Rumney <jasonr@altavista.net>
10908         * w32bdf.h: Merged patches from Meadow; introduce bitmap cache to
10909         speed display.
10911         * w32bdf.c: Merged patches from Meadow; introduce bitmap cache to
10912         speed display.
10913         (get_cached_font_char, cache_char_offset, get_bitmap_with_cache)
10914         New functions.
10915         (w32_free_bdf_font, seek_char, w32_get_bdf_glyph, w32_BDF_TextOut)
10916         Use bitmap cache.
10918         * w32fns.c (enum_font_cb2): Set the font height to be the
10919         character height, not the cell height.
10920         (Fw32_select_font): Initialize font dialog with current default font.
10921         (Vw32_system_coding_system): New variable.
10922         (w32_strict_filenames): Add comment.
10923         (w32_to_x_font): Decode font name using Vw32_system_coding_system.
10924         (x_to_w32_font): Encode font name using Vw32_system_coding_system. 
10925         (syms_of_w32fns): Add w32-system-coding-system.
10927 1999-03-15  Richard M. Stallman  <rms@gnu.org>
10929         * xterm.c (XTread_socket) <ConfigureNotify>:
10930         If cursor pos is outside the new frame size, mark cursor as off.
10932 1999-03-14  Ken'ichi Handa  <handa@gnu.org>
10934         * xdisp.c (try_window_id): Initialize val.ovstring_chars_done to 0.
10936         * xterm.c (x_load_font): Trap X errors so that Emacs doesn't die
10937         by them.
10939 1999-03-14  Richard M. Stallman  <rms@gnu.org>
10941         * macros.c (Fexecute_kbd_macro): Initialize executing_macro_iterations
10942         at beginning.
10944 1999-03-14  Jason Rumney <jasonr@altavista.net>
10946         * w32fns.c (w32_strict_fontnames): New variable.
10947         (Fx_create_frame): Formatting fix.
10948         (w32_load_system_font): Keep trying to load non-existant font
10949         if w32_strict_fontnames is nil. Formatting fix.
10950         (syms_of_w32fns): Add w32-strict-fontnames.
10952         * w32term.c (W32_TEXTOUT): Do not multiply nchars by charset_dim.
10953         (dumpglyphs): Formatting fixes.
10955 1999-03-14  Geoff Voelker  <voelker@cs.washington.edu>
10957         * w32fns.c (w32_wnd_proc): Handle WM_GETMINMAXINFO message.
10959 1999-03-10  Karl Heuer  <kwzh@gnu.org>
10961         * puresize.h (BASE_PURESIZE): Increase to 505000.
10963 1999-03-09  Richard M. Stallman  <rms@gnu.org>
10965         * emacs.c (main) [CLASH_DETECTION]: Call init_filelock.
10967         * filelock.c (init_filelock): New function.
10969 1999-03-09  Dave Love  <fx@gnu.org>
10971         * fileio.c (Ffile_directory_p): Doc fix.
10973 1999-03-05  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
10975         * coding.c (setup_coding_system): Check for CODING_SYSTEM = nil.
10977 1999-03-08  Richard M. Stallman  <rms@gnu.org>
10979         * filelock.c (get_boot_time): Reduce scope of #ifdef BOOT_TIME
10980         to only the part that uses get_boot_time_1.
10982 1999-03-07  Dave Love  <fx@gnu.org>
10984         * fileio.c (Finsert_file_contents): Use xfree.
10986 1999-03-06  Kenichi Handa  <handa@etl.go.jp>
10988         * Makefile.in (callproc.o, coding.o, fileio.o, msdos.o, process.o,
10989         term.o, xselect.o): Depend on ccl.h.
10991 1999-03-05  Geoff Voelker  <voelker@cs.washington.edu>
10993         * makefile.nt: Remove common multiple file compilation commands.
10995 1999-03-04  Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
10997         * fns.c (Fbase64_encode_string): Allocate sufficient memory for
10998         newlines added when the arg NO-LINE-BREAK is nil.
11000 1999-03-04  Karl Heuer  <kwzh@gnu.org>
11002         * search.c (Fstring_match, Fposix_string_match): Doc fix.
11004         * buffer.c (syms_of_buffer): Doc fix for case-fold-search.
11006 1999-03-04  Dave Love  <fx@gnu.org>
11008         * term.c (term_init): Use xmalloc, not malloc.
11010         * callproc.c (Fcall_process): Use xmalloc, xfree.
11012 1999-03-03  Andreas Schwab  <schwab@gnu.org>
11014         * eval.c (Fdefconst): Doc fix.
11016 1999-03-01  Kenichi Handa  <handa@etl.go.jp>
11018         * coding.c: Comment for ISO 2022 encoding mechanism modified.
11020 1999-03-01  Eli Zaretskii  <eliz@gnu.org>
11022         * w16select.c (get_clipboard_data): Always stop at the first null byte.
11024 1999-02-28  Richard M. Stallman  <rms@gnu.org>
11026         * filelock.c (get_boot_time): Support FreeBSD way to read boot-time.
11028         * cmds.c (internal_self_insert): Calculate column properly
11029         in overwrite-of-tab case.
11031 1999-02-27  Andreas Schwab  <schwab@gnu.org>
11033         * emacs.c (main) [DOUG_LEA_MALLOC]: Don't use unsetenv, it calls
11034         malloc in glibc 2.1.
11036 1999-02-26  Richard Stallman  <rms@gnu.org>
11038         * Makefile.in: paths.h and paths.in renamed to epaths.h and epaths.in.
11040         * epaths.in: Renamed from paths.in.
11041         This avoids a conflict with a system header file paths.h on GNU/Linux.
11043         * callproc.c, lread.c, w32fns.c, xfns.c, xrdb.c:
11044         Use epaths.h istead of paths.h.
11046 1999-02-26  Andreas Schwab  <schwab@gnu.org>
11048         * emacs.c (main) [DOUG_LEA_MALLOC]: Work around a bug in glibc's
11049         malloc.
11051 1999-02-25  Dave Love  <fx@gnu.org>
11053         * buffer.c (syms_of_buffer): Doc fix for enable-multibyte-characters.
11055 1999-02-25  Richard Stallman  <rms@gnu.org>
11057         * filelock.c (get_boot_time): Use WTMP_FILE for file name.
11058         (WTMP_FILE): Default definition in case not defined.
11059         (get_boot_time_1): Test that file exists before trying to read it.
11060         
11061 1999-02-25  Ken'ichi Handa  <handa@gnu.org>
11063         * keymap.c (push_key_description): If enable-multibyte-characters
11064         is nil and C is single byte, push C as is.
11066 1999-02-24  Kenichi Handa  <handa@etl.go.jp>
11068         * keymap.c (push_key_description): If enable-multibyte-characters
11069         is non-nil, try to convert unibyte character to multibyte.  For
11070         invalid multibyte character, show all bits by octal form.
11071         (Fsingle_key_description): Check the validity of charset for a
11072         generic character.
11074 1999-02-23  Richard M. Stallman  <rms@gnu.org>
11076         * fileio.c (Ffile_regular_p): Undo previous change.
11078         * eval.c (Fdefconst): Doc fix.
11080         * filelock.c (get_boot_time): Don't use BUFSIZ.
11082 1999-02-22  Andrew Innes  <andrewi@gnu.org>
11084         * makefile.nt ($(BLD)\w32bdf.obj): Add missing continuation character.
11085         (EXTRA_LINK): Do version test with strings.
11087 1999-02-22  Andreas Schwab  <schwab@gnu.org>
11089         * fns.c (Fbase64_encode_string): Fix last change.
11091         * termhooks.h (event_kind): Add user_signal.
11093         * keyboard.c (Qusr1_signal, Qusr2_signal): New variables.
11094         (syms_of_keyboard): Initialize them.
11095         (lispy_user_signals): New variable.
11096         (make_lispy_event): Handle user_signal event type.
11098         * emacs.c: Don't define Qusr1_signal and Qusr2_signal.
11099         (syms_of_emacs): Don't initialize them.
11100         (handle_USR1_signal, handle_USR2_signal): Set event type to
11101         user_signal instead of non_ascii_keystroke, and use plain integers
11102         as code instead of Lisp symbols.
11104 1999-02-21  Eli Zaretskii  <eliz@delysid.gnu.org>
11106         * fileio.c: (lstat) [!S_ISLNK]: Use stat instead of lstat.
11108 1999-02-21  Richard Stallman  <rms@gnu.org>
11110         * filelock.c (get_boot_time_1): Put this in #ifdef BOOT_TIME.
11112         * print.c (print_error_message): Don't crash if (cdr data)
11113         is not a list.
11115 1999-02-21  Eli Zaretskii  <eliz@gnu.org>
11117         * fileio.c (lstat) [!S_ISLNK]: Use stat instead of lstat.
11119 1999-02-20  Andrew Innes  <andrewi@gnu.org>
11121         * vm-limit.c (memory_warnings) [WINDOWSNT]: Reset lim_data on each
11122         run, since size can vary from run to run.
11124         * makefile.nt (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
11125         data is included, to enable profiling.
11126         ($(EMACS)): Map file not needed for emacs.exe.
11128         * emacs.c (main): [!SYSTEM_MALLOC]: Call realloc and free as well
11129         as malloc before calling uninterrupt_malloc, for consistency.
11130         This also enables profiling to work on WINDOWSNT.
11132 1999-02-18  Richard Stallman  <rms@gnu.org>
11134         * Makefile.in (emacs.o): Depend on termhooks.h.
11135         (filelock.o): Depend on systime.h.
11137 1999-02-18  Ken'ichi Handa  <handa@gnu.org>
11139         * coding.c (Fdecode_sjis_char): Use %x for formatting error message.
11140         (Fdecode_big5_char): Likewise.
11142 1999-02-17  Richard Stallman  <rms@gnu.org>
11144         * insdel.c (adjust_markers_for_replace): When doing an insertion
11145         (replacing a region of zero length), handle markers at the
11146         insertion point properly.
11148 1999-02-17  Andrew Innes  <andrewi@gnu.org>
11150         * w32fns.c (Vw32_quit_key): New variable.
11151         (post_character_message): Use it.
11152         (syms_of_w32fns): DEFVAR it.
11154 1999-02-16  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
11156         * fns.c (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'.
11158 1999-02-16  Richard Stallman  <rms@gnu.org>
11160         * filelock.c (within_one_second): New function.
11161         (current_lock_owner): Use that.
11162         (get_boot_time): Use /proc/uptime if available.
11163         Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
11164         (get_boot_time_1): New subroutine taken from get_boot_time.
11165         
11166 1999-02-16  Richard Stallman  <rms@gnu.org>
11168         * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
11169         (syms_of_emacs): Init and staticpro them.
11170         (handle_USR1_signal): Don't run any code, just queue up an event.
11171         (handle_USR2_signal): Likewise.
11173 1999-02-16  Eli Zaretskii  <eliz@gnu.org>
11175         * dired.c (Ffile_attributes): If the file's size doesn't fit in
11176         an integer, return it as a float.  Doc string fixed.
11178 1999-02-16  Richard Stallman  <rms@gnu.org>
11180         * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
11181         (syms_of_emacs): Init and staticpro them.
11182         (handle_USR1_signal): Don't run any code, just queue up an event.
11183         (handle_USR2_signal): Likewise.
11185 1999-02-15  Kenichi Handa  <handa@etl.go.jp>
11187         * coding.c (Fdecode_sjis_char, Fencode_sjis_char): Handle
11188         ASCII correctly.  Signal error on invalid characters.
11189         (Fdecode_big5_char, Fencode_big5_char): Likewise.
11191 1999-02-15  Eli Zaretskii  <eliz@gnu.org>
11193         * w16select.c (get_clipboard_data): Work around a bug in Windows95
11194         DOS box which doubles the reported size of text in the clipboard.
11196 1999-02-15  Kenichi Handa  <handa@etl.go.jp>
11198         * coding.c (decode_coding_iso2022): Don't set
11199         coding->composed_chars to 0 here.
11200         (setup_coding_system): Set coding->composed_chars to 0 here.
11202 1999-02-10  Richard Stallman  <rms@gnu.org>
11204         * fileio.c (Ffile_regular_p): Use lstat.
11206 1999-02-09  Richard Stallman  <rms@gnu.org>
11208         * unexelf.c (HAS_SBSS_SECTION): Define this in some cases.
11209         (unexec): Test this instead of specific systems.
11211         * m/macppc.h: New file.
11213 1999-02-08  Dave Love  <fx@gnu.org>
11215         * fns.c (Fyes_or_no_p, Fy_or_n_p): Doc fix.
11217 1999-02-08  Ken'ichi Handa  <handa@gnu.org>
11219         * coding.c (ccl_coding_driver): On encoding, coding->produced_char
11220         should be set to coding->produced.
11222 1999-02-07  Paul Fisher  <rao@gnu.org>
11224         * fns.c (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
11225         (base64_decode_1): Use READ_QUADRUPLET_BYTE.
11227 1999-02-07  Markus Rost  <markus.rost@mathematik.uni-regensburg.de>
11229         * editfns.c (Fformat): Doc fix.
11231 1999-02-06  Richard Stallman  <rms@gnu.org>
11233         * process.c (syms_of_process): defsubr it.
11234         (Fprocess_running_child_p): New function.
11236 1999-02-05  Andrew Innes  <andrewi@gnu.org>
11238         * w32term.c (construct_drag_n_drop): Call DraqQueryPoint before
11239         recording drop position.
11241 1999-02-05  Ken'ichi Handa  <handa@gnu.org>
11243         * coding.c (encode_coding_iso2022): Before writing out an invalid
11244         code, reset graphic planes and registers if necessary.
11246         * term.c (encode_terminal_code): Fix previous change.
11248 1999-02-04  Eli Zaretskii  <eliz@gnu.org>
11250         * w16select.c (last_clipboard_text, clipboard_storage_size): New
11251         static variables.
11252         (set_clipboard_data): Save a copy of the text we put into
11253         clipboard in last_clipboard_text.
11254         (get_clipboard_data): If the clipboard text is identical to what
11255         last_clipboard_text holds, pretend there's no data in the clipboard.
11257 1999-02-03  Richard Stallman  <rms@gnu.org>
11259         * s/gnu.h (NLIST_STRUCT): Add #undef.
11261 1999-02-03  Eli Zaretskii  <eliz@gnu.org>
11263         * w16select.c (Fw16_set_clipboard_data): When the text needs to be
11264         encoded, set its pointer and size as returned by encode_coding.
11266 1999-02-02  Ken'ichi Handa  <handa@gnu.org>
11268         * fns.c (Fset_char_table_default): To handle the case that CH is
11269         an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11271 1999-02-02  Andrew Innes  <andrewi@gnu.org>
11273         * w32fns.c (syms_of_w32fns): Change default value of
11274         w32-mouse-move-interval to 0, so that the mouse wheel/rocker on
11275         some mice works properly.
11277 1999-02-02  Eli Zaretskii  <eliz@gnu.org>
11279         * w16select.c (set_clipboard_data): Correctly null-terminate the
11280         string to be put into the Windows clipboard.  Use xbuf_addr.
11282 1999-02-01  Richard Stallman  <rms@gnu.org>
11284         * buffer.c (Fset_buffer_multibyte): Error if buffer is indirect.
11286 1999-01-31  Richard Stallman  <rms@gnu.org>
11288         * process.c (process_send_signal): If CURRENT_GROUP is `lambda'
11289         then don't send the signal if the shell owns the terminal.
11290         (Finterrupt_process): Doc change.
11291         
11292 1999-01-31  Andrew Innes  <andrewi@gnu.org>
11294         * unexw32.c: (ROUND_UP_DST_AND_ZERO): New macro.
11295         (copy_executable_and_dump_data): Use it to ensure alignment slop
11296         is zeroed.
11298 1999-01-30  Andrew Innes  <andrewi@gnu.org>
11300         * w32.c (init_environment): Change argv[0] to contain the full
11301         path to Emacs.
11303         * emacs.c (main) [WINDOWSNT]: Pass argv to init_environment.
11305 1999-01-29  Ken'ichi Handa  <handa@gnu.org>
11307         * xterm.c (x_new_fontset): For ASCII font, don't use the font name
11308         returned by x_new_font (the resolved one) but use the font name
11309         set in the fontset specification.
11310         (x_load_font): For the height of font, if normarl ascent and
11311         descent value are larger than those in max_bounds field, use the
11312         former.
11314 1999-01-28  Eli Zaretskii  <eliz@gnu.org>
11316         * xdisp.c (decode_mode_spec_coding): Fix previous change.
11318 1999-01-27  Geoff Voelker  <voelker@cs.washington.edu>
11320         * makefile.nt: Use full path to temacs.exe when dumping.
11322 1999-01-27  Jason Rumney <jasonr@altavista.net>
11324         * w32fns.c (w32_load_system_font): Do not load unlisted fonts if
11325         list was reliable.
11326         (enum_fontex_cb1, enum_fontex_cb2): New functions.
11327         (w32_list_bdf_fonts): New parameter; max_names.  Callers updated.
11328         (w32_list_synthesized_fonts): New function.
11329         (w32_list_fonts): Use maxnames.  Use EnumFontFamiliesEx when
11330         available instead of EnumFontFamilies.  List synthesized fonts if
11331         Vw32_enable_italics is non-nil.
11332         
11333 1999-01-27  Richard Stallman  <rms@gnu.org>
11335         * s/ptx4.h (SETUP_SLAVE_PTY): Use the ptem module if it exists.
11336         Don't complain if ttcompat does not exist.
11338         * w32fns.c (x_set_frame_parameters): gcpro as needed.
11340 1999-01-27  Andrew Innes  <andrewi@gnu.org>
11342         * w32fns.c (w32_wnd_proc): Fix bug introduced by previous change;
11343         the lwindow, rwindow and apps keys could not be used as function
11344         keys, because they were being passed to TranslateMessage which
11345         ignores them.  Also, key was being changed to SPC.
11347         * makefile.nt: Do make version comparison as strings.
11349 1999-01-27  Eli Zaretskii  <eliz@gnu.org>
11351         * coding.c (syms_of_coding): eol-mnemonic-* variables are now
11352         strings, not characters.
11354         * coding.h: Likewise.
11356         * xdisp.c (decode_mode_spec_coding): Display the EOL type as a
11357         string.
11359 1999-01-26  Dave Love  <fx@gnu.org>
11361         * emacs.c (main): Up-date copyright.
11363 1999-01-25  Dave Love  <fx@gnu.org>
11365         * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
11367 1999-01-25  Andreas Schwab  <schwab@gnu.org>
11369         * eval.c (Fsignal): Move comment to avoid confusing make-docfile.
11371 1999-01-23  Richard M. Stallman  <rms@borg.ai.mit.edu>
11373         * xfns.c (x_set_frame_parameters): gcpro as needed.
11375         * window.c (Fset_window_point): If WINDOW is selected but the
11376         current buffer is not its buffer, don't use Fgoto_char.
11378 1999-01-22  Richard M. Stallman  <rms@gnu.org>
11380         * syntax.c (scan_sexps_forward): Delete duplicate code
11381         to set prev_from_syntax, above start of main loop.
11382         At startinstring, check syntax when checking for a match.
11384 1999-01-22  Jason Rumney <jasonr@altavista.net>
11386         * w32bdf.c: New file.
11387         * w32bdf.h: New file.
11388         * makefile.nt: Add w32bdf.c and w32bdf.h.
11390         * w32gui.h: Include w32bdf.h.
11391         (W32FontStruct) Add bdf element.
11393         * w32term.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
11394         Support BDF fonts.
11396         * w32term.c (W32_TEXTOUT): New macro.
11397         (dumpglyphs): Support BDF fonts.  Use W32_TEXTOUT macro.
11398         Simplify baseline calculation.  Detect SJIS by font, not glyph.
11399         Call SetTextAlign.
11400         (syms_of_w32term): Remove "jisx0212-sjis" from
11401         w32-charset-to-codepage-alist.
11402         Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
11403         Add "ksc5601.1992' to w32-charset-to-codepage-alist.
11404         
11405         * w32fns.c (Vw32_bdf_filename_alist): New variable.
11406         (x_destroy_bitmap): Returns void not int.
11407         (x_set_border_pixel): Returns void.
11408         (w32_load_bdf_font): New function.
11409         (w32_load_system_font): New function, was w32_load_font.  List
11410         fonts before loading.  Explicitly set encoding for SJIS fonts.
11411         Set default_ascent to 0 as comment indicates.
11412         (w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
11413         (w32_unload_font): Support BDF fonts.
11414         (w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
11415         Autodetect whether to use koi8-r instead of iso8859-5.
11416         Associate "ksc5601.1987" with HANGUEL_CHARSET.
11417         Associate "ksc5601.1992" with JOHAB_CHARSET.
11418         (x_to_w32_charset): Make consistent with w32_to_x_charset.
11419         (w32_to_x_font): Add resolution.
11420         (x_to_w32_font): Use font resolution to calculate height if supplied.
11421         (w32_font_match): Handle wildcards anywhere within field.
11422         (enumfont_t): Remove unused head pointer.
11423         (enum_font_cb2): Dereference elfLogFont.
11424         (w32_list_bdf_fonts): New function.
11425         (w32_list_fonts): Use one_w32_dispay_info instead of insisting on
11426         valid frame.  Remove MessageBox.  Support BDF fonts.
11427         (Fw32_find_bdf_fonts): New function.
11428         (syms_of_w32fns): Add Vw32_bdf_filename_alist and
11429         Sw32_find_bdf_fonts.
11431 1999-01-21  Andrew Innes  <andrewi@gnu.org>
11433         * makefile.nt (temacs): Use del to delete file, not rm.
11435 1999-01-19  Richard Stallman  <rms@psilocin.ai.mit.edu>
11437         * keyboard.c (read_key_sequence): Fix previous change.
11439         * xterm.c (same_x_server): Detect treat ":0" and "unix:0"
11440         as the same.  Treat "myname:0" as the same as those two.
11442 1999-01-19  Jason Rumney <jasonr@altavista.net>
11444         * w32fns.c (x_to_w32_charset): Add iso8859-9.
11445         (w32_to_x_charset): Fix charset mappings.
11447         * w32term.c: Remove codepage macros. Remove redundant BIG5 macros.
11448         (dumpglyphs): Move definitions out of block containing goto.
11449         Remove redundant code for BIG5.
11450         Use w32_codepage_for_font instead of
11451         w32_codepage_for_charset.  Add cast to int where float
11452         operation is assigned to int.
11453         (Vw32_charset_to_codepage_alist): New variable.
11454         (w32_codepage_for_charset): Removed.
11455         (w32_codepage_for_font): New function, replacing 
11456         w32_codepage_for_charset. 
11457         (syms_of_w32term): Add and initialize
11458         w32-charset-to-codepage-alist.
11460 1999-01-17  Richard Stallman  <rms@psilocin.ai.mit.edu>
11462         * xselect.c (x_handle_selection_clear): Don't clear the
11463         selection if Emacs still owns it through a different display.
11465 1999-01-17  Andrew Innes  <andrewi@gnu.org>
11467         * w32proc.c: (w32_executable_type): Relax the check to identify
11468         cygwin-compiled applications, because the exact dll name varies
11469         with release.  Now only require the name to start "cygwin".
11471         * w32heap.h: (ROUND_UP):
11472         (ROUND_DOWN): New macros.
11473         (need_to_recreate_heap): Renamed to using_dynamic_heap.
11474         (init_heap): New extern.
11475         (data_region_size):
11476         (recreate_heap):
11477         (read_in_bss):
11478         (map_in_heap):
11479         (round_to_next):
11480         (w32_fatal_reload_error):
11481         (get_section_size): Obsolete externs removed.
11483         * w32heap.c: (RVA_TO_PTR): Redefine to convert RVA to address in
11484         current process.
11485         (round_to_next): Obsolete function removed.
11486         (preload_heap_section): New variable.
11487         (data_region_size): Obsolete variable removed.
11488         (allocate_heap): Modified to determine end of static heap section
11489         used during preload, and use that as initial base address for
11490         dynamic heap instead of hard-coded value.
11491         (sbrk): Remove call to allocate_heap; handled by init_heap.  Skip
11492         calls to commit or decommit pages when allocating from static heap
11493         section during preload.
11494         (recreate_heap): Obsolete function removed.
11495         (init_heap): New function to initialize internal sbrk heap
11496         variables.  Uses static heap section during preload, otherwise
11497         calls allocate_heap to reserve a heap region dynamically.
11498         (round_heap): Use ROUND_UP macro instead of round_to_next.
11500         * unexw32.c: Major rewrite to support cleaner method of dumping; a
11501         static "bss" section is used for heap space during preload, and
11502         bss data is now written to the proper section area when dumping.
11503         (need_to_recreate_heap): Renamed to using_dynamic_heap.
11504         (heap_index_in_executable): Obsolete variable removed.
11505         (data_section): New variable.
11506         (data_start_va): Renamed to data_start.
11507         (data_start_file): Obsolete variable removed.
11508         (bss_section):
11509         (extra_bss_size):
11510         (bss_section_static):
11511         (bss_start_static):
11512         (bss_size_static):
11513         (extra_bss_size_static):
11514         (heap_section): New variables.
11515         (_start): Remove code based on old unexec method.  Call init_heap
11516         to initialize sbrk heap.
11517         (close_file_data): Update size of file when closing, so that
11518         unexec doesn't have to work out exact size in advance.
11519         (get_bss_info_from_map_file):
11520         (get_section_size): Obsolete functions removed.
11521         (rva_to_section): Fix minor bug, and add a work-around for a bug
11522         in very old linkers.
11523         (offset_to_section):
11524         (relocate_offset): New functions.
11525         (OFFSET_TO_RVA):
11526         (RVA_TO_OFFSET):
11527         (RVA_TO_SECTION_OFFSET):
11528         (PTR_TO_RVA):
11529         (PTR_TO_OFFSET):
11530         (OFFSET_TO_PTR): New macros.
11531         (get_section_info): Modify to support new unexec method;
11532         determines address ranges in process that need dumping, and COFF
11533         sections where data will be dumped.  Allows for static and global
11534         bss data to be in separate ranges.  No longer relies on knowledge
11535         of section names.
11536         (copy_executable_and_dump_data_section): Renamed
11537         copy_executable_and_dump_data.  Completely rewritten to copy
11538         executable section by section, so that raw data areas can be
11539         expanded to hold dumped data as necessary.  Allows for bss data to
11540         be in same section as initialized data.  Reduces size of static
11541         heap section to that used during preload.
11542         (dump_bss_and_heap):
11543         (w32_fatal_reload_error):
11544         (read_in_bss):
11545         (map_in_heap): Obsolete functions removed.
11546         (unexec): Rounds off preload heap to nearest page rather than
11547         virtual allocation unit.  Modified to match other changes.
11549         * mem-limits.h: (get_lim_data): Use reserved_heap_size instead of
11550         data_region_size.
11552         * makefile.nt: (TEMACS_TMP): New macro.
11553         ($(TEMACS)): Output to TEMACS_TMP from link, use post-link
11554         processor to add static heap section in support of new unexec.
11556         * lastfile.c: Include config.h to pick up data layout pragmas.
11557         [WINDOWSNT]: Remove explicit pragma.
11559 1999-01-12  Kenichi Handa  <handa@etl.go.jp>
11561         * coding.c (Fdecode_sjis_char): Decode Japanese Katakana character
11562         correctly.
11563         (Fencode_sjis_char): Encode Japanese Katakana character correctly.
11565 1999-01-11  Dave Love  <fx@gnu.org>
11567         * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
11569 1999-01-11  Richard Stallman  <rms@psilocin.ai.mit.edu>
11571         * keyboard.c (read_key_sequence): In key-translation-map and
11572         function-key-map, handle symbol with array as fn def.
11573         In function-key-map, handle symbol with keymap as fn def,
11574         and autoloaded definitions.
11575         
11576         * puresize.h (BASE_PURESIZE): Increment to 500000.
11578         * print.c (Qtemp_buffer_setup_hook): New variable.
11579         (syms_of_print): Init and staticpro that.
11580         (temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
11582 1999-01-11  Kenichi Handa  <handa@etl.go.jp>
11584         * insdel.c (del_range_1): Call signal_after_change.
11585         (del_range_byte): Likewise.
11586         (del_range_both): Likewise.
11587         (del_range_2): Don't call signal_after_change.
11589         * xdisp.c (message_dolog): Use insert_1_both to avoid running any
11590         Lisp code here.
11592 1999-01-07  Richard Stallman  <rms@psilocin.ai.mit.edu>
11594         * eval.c (find_handler_clause): If SIG is nil (memory full error),
11595         never run the debugger, and don't bother checking the args
11596         to see whether the debugger should be run.
11598 1999-01-06  Richard Stallman  <rms@psilocin.ai.mit.edu>
11600         * keyboard.c (read_key_sequence):
11601         Tell get_keyelt to look handle autoloads.
11602         Handle symbols defined as keymaps, and autoloaded keymaps.
11604 1999-01-06  Kenichi Handa  <handa@etl.go.jp>
11606         * search.c (search_buffer): Fix previous change.
11608 1999-01-06  Eli Zaretskii  <eliz@gnu.org>
11610         * w16select.c (set_clipboard_data): Terminate the text with a null
11611         character.  Don't allow to put binary data into the clipboard.
11612         Return zero in case of success, 1 or 2 otherwise.
11613         (get_clipboard_data): Only bail out if the null character is in
11614         the last 32-byte chunk of clipboard data
11615         (Fw16_set_clipboard_data): Make ok and put_status be unsigned.  If
11616         they save binary data, print a message in the echo area saying the
11617         text was not put into the clipboard.
11619         * msdos.c (IT_write_glyphs): Move constant expression out of the loop.
11621 1999-01-06  Andreas Schwab  <schwab@gnu.org>
11623         * systty.h [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
11624         _BSD_SOURCE, the latter is always defined.
11626 1999-01-05  Richard Stallman  <rms@psilocin.ai.mit.edu>
11628         * fns.c (Frequire): Don't fail to unbind bindings.
11630 1999-01-02  Richard Stallman  <rms@psilocin.ai.mit.edu>
11632         * emacs.c (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit.
11634         * charset.c (Ffind_charset_region): Fix doc typo.
11636 1998-12-31  Eli Zaretskii  <eliz@mescaline.gnu.org>
11638         * msdos.c (IT_write_glyphs): Convert unibyte characters to
11639         multibyte in unibyte buffers only.
11641         * keymap.c (Fdefine_prefix_command): Accept a third argument NAME
11642         and pass it to Fmake_sparse_keymap.
11644 1998-12-29  Richard Stallman  <rms@psilocin.ai.mit.edu>
11646         * alloc.c (MMAP_MAX_AREAS): New macro.
11647         (allocate_vectorlike, make_uninit_multibyte_string): Use that.
11648         (init_alloc_once): Use that.
11650         * s/gnu-linux.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
11652         * alloc.c (lisp_malloc, lisp_free): New functions.
11653         Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
11654         Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
11655         (n_interval_blocks, n_float_blocks): New variable.
11656         (n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
11657         (n_marker_blocks, n_string_blocks): New variable.
11658         (init_intervals, make_interval): Set a count variable.
11659         Use lisp_malloc instead of setting allocating_for_lisp.
11660         (init_float, make_float, init_cons, Fcons): Likewise.
11661         (allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
11662         (init_marker, allocate_misc, init_strings): Likewise.
11663         (make_uninit_multibyte_string): Likewise.
11664         (gc_sweep, compact_strings): Decrement the count variables.
11666         * alloc.c (uninterrupt_malloc): Don't store Emacs's hooks
11667         into the old_..._hook variables.
11669 1998-12-28  Richard Stallman  <rms@psilocin.ai.mit.edu>
11671         * keyboard.c: In each active map, for each menu bar item, use only
11672         the first submap.
11673         (menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
11674         (menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
11675         (syms_of_keyboard): Staticpro and init it.
11677         * xmenu.c (single_keymap_panes): 
11679 1998-12-28  Andrew Innes  <andrewi@delysid.gnu.org>
11681         * w32fns.c (w32_msg_pump): Ignore WM_NULL message posted to thread
11682         by complete_deferred_msg.
11683         (post_character_message): Cancel all deferred messages when
11684         quit_char is typed, in order to break out of potential deadlocks.
11685         (cancel_all_deferred_msgs): New function.
11686         (complete_deferred_msg): Don't abort if msg not found; may have
11687         been cancelled.
11688         (Fw32_reconstruct_hot_key): Use pre-interned symbols.
11689         (Fw32_send_sys_command): Wait for system command to
11690         complete before returning.
11692         * w32term.c (x_iconify_frame): Wait for frame to be iconified; do
11693         not set async_iconified flag though.
11695         * w32proc.c: (Vw32_start_process_inherit_error_mode): New variable.
11696         (create_child): Use it.
11697         (syms_of_ntproc): Defvar it.  Also fix docstrings for
11698         w32-start-process-share-console and w32-start-process-show-window.
11700         * unexw32.c (_start): Force system calls accessing unmounted
11701         devices to fail without prompting.
11703 1998-12-26  Richard Stallman  <rms@psilocin.ai.mit.edu>
11705         * emacs.c (main): Call memory_warnings and uninterrupt_malloc
11706         even when starting the dumped Emacs.
11708         * keymap.c (Fsingle_key_description): Handle (control ?x) etc.
11709         (Fkey_description): Handle lists like vectors.
11711 1998-12-21  Kenichi Handa  <handa@etl.go.jp>
11713         * callint.c (Fcall_interactively) <'C'>: Give Fread_char Qnil
11714         because of the change of the second argument of Fread_char.
11716         * charset.c (Fcharset_after): Check range.  If POS is out of
11717         range, return nil.
11719         * keyboard.c (read_char): Don't bind input-method-exit-on-first-char.
11721         * lread.c (Fread_char): Change the meaning of the second argument.
11722         (Fread_event): Likewise.
11723         (Fread_char_exclusive): Likewise.
11725         * print.c (printchar): Fix previous change.
11727         * process.c (read_process_output): Decide the multibyteness of
11728         string given to a process filter by a coding system used for
11729         decoding the process output.
11731 1998-12-21  Eli Zaretskii  <eliz@mescaline.gnu.org>
11733         * xterm.c (dumpglyphs): Don't convert 7-bit ASCII characters via
11734         nonascii-translation-table.
11735         * msdos.c (IT_write_glyphs): Likewise.
11736         * fns.c (concat): Likewise.
11737         * charset.c (unibyte_char_to_multibyte): Likewise.
11738         * insdel.c (copy_text, count_size_as_multibyte): Likewise.
11740 1998-12-21  Andreas Schwab  <schwab@delysid.gnu.org>
11742         * doc.c (Fdocumentation): Change the doc string for prefix
11743         commands to make it a complete sentence in one line.
11745 1998-12-16  Petri Kaurinkoski  <Petri.Kaurinkoski@hut.fi>
11747         * s/irix6-5.h: New file.
11748         * s/irix6-0.h (IRIX6): Define this symbol.
11749         * s/usg5-4.h (TIOCSIGSEND): Don't define this if irix6.
11750         (bcopy, bcmp, bzero): Likewise.
11751         * m/iris4d.h (LIBS_MACHINE): Leave this blank if irix6.5.
11752         (C_SWITCH_MACHINE): New value for irix6.5.
11754 1998-12-15  Richard Stallman  <rms@gnu.org>
11756         * fns.c (Fbase64_decode_region, Fbase64_decode_string):
11757         Do free malloc'd memory even in case of failure.  Use xfree, not free.
11758         (Fbase64_encode_region, Fbase64_encode_string): Use xfree, not free.
11759         (base64_decode_1): Don't fail for short lines.
11761         * print.c (printchar): Outputting multibyte characters
11762         to echo area always makes it multibyte.
11764         * search.c (search_buffer): Don't use Boyer-Moore
11765         to search for an invalid multibyte code.
11766         In unibyte case, no need to check whether there are translations
11767         in more than one charset; just set charset_base to 0.
11769 1998-12-15  Ken'ichi Handa  <handa@delysid.gnu.org>
11771         * print.c (printchar): Cancel previous change.
11773 1998-12-15  Kenichi Handa  <handa@etl.go.jp>
11775         * callproc.c: Include "ccl.h".
11776         (Fcall_process): Doc-string modified.  Set CODING_MODE_LAST_BLOCK
11777         bit in argument_coding.mode to tell encoding procedure to flush
11778         data.  While encoding arguments, if argument_coding uses CCL
11779         program, initialize it again after encoding.
11780         (Fcall_process_region): Doc-string modified.  Handle the case that
11781         NARGS is 3.
11783         * ccl.c (CCL_SUCCESS): Don't set ccl->ic.
11784         (ccl_driver) <CCL_End>: Pretend that all source text is consumed.
11785         Set `ic' to the head of this command.
11786         (ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
11787         code for an invalid code.
11788         (setup_ccl_program): If the arg VEC is nil, skip setting ups
11789         based on VEC.
11791         * charset.c (Qunknown): New variable.
11792         (init_charset_once): Intern and staticpro Qunknown.  Initialize
11793         all elements of Vcharset_symbol_table to Qunknown.
11794         (find_charset_in_str): New arg MULTIBYTE.  If it is zero, check
11795         unibyte characters only.  For an invalid composition sequence, set
11796         CHARSETS[1] to 1.
11797         (Ffind_charset_region): Call find_charset_in_str with an
11798         appropriate MULTIBYTE arg.  If undefined charsets are found,
11799         include `unknown' is the return value.
11800         (Ffind_charset_string): Likewise.
11801         (Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
11802         (str_cmpchar_id): Max composite character code should be less than
11803         GENERIC_COMPOSITION_CHAR.
11805         * charset.h (find_charset_in_str): Update declaration.
11807         * coding.c (DECODE_DESIGNATION): Jump to label_invalid_code if
11808         final_char is invalid.
11809         (decode_coding): If coding->type is coding_type_ccl, call
11810         ccl_coding_driver even if SRC_BYTES is zero.
11811         (code_convert_region): Update `inserted' correctly after calling
11812         coding->post_read_conversion.  Even after the code converter
11813         consumed all source text, call it once more if it is
11814         coding_type_ccl to flush out data.
11816         * fileio.c (Finsert_file_contents): Even if INSERTED is zero, if
11817         CODING is handled by CCL program, call code_convert_region.
11819         * fns.c (string_char_to_byte): Handle invalid multibyte sequence
11820         correctly.
11821         (string_byte_to_char): Likesize.
11823         * print.c (printchar): When outputting a multibyte character to
11824         echo area, always set message_enable_multibyte to 1.
11826         * process.c (read_process_output): If NBYTES is zero and
11827         CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
11828         and try decoding again.
11829         (Fprocess_send_eof): If the coding system of PROCESS
11830         requires flushing, call send_process with null-string at first.
11832         * w16select.c (Fw16_set_clipboard_data): Call find_charset_in_str
11833         with MULTIBYTE arg 0.
11834         * w32select.c (Fw32_set_clipboard_data): Likewise.
11835         * xselect.c (lisp_data_to_selection_data): Likewise.
11837 1998-11-30  Richard Stallman  <rms@psilocin.ai.mit.edu>
11839         * search.c (Freplace_match): Set OPOINT clearly for the case
11840         where point is in the middle of the text to be replaced.
11842         * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
11843         if compute_motion fails to advance at all, don't back it up.
11845 1998-12-10  Geoff Voelker  <voelker@cs.washington.edu>
11847         * w32.c (w32_get_long_filename): Handle root dirs correctly.
11849         * s/ms-w32.h (LOCALTIME_CACHE): Define. 
11851 1998-12-09  Richard Stallman  <rms@gnu.org>
11853         * insdel.c (insert_from_buffer_1): Properly count the size
11854         of output from conversion to multibyte even when input
11855         is split across the gap.
11857 1998-12-09  Karl Heuer  <kwzh@gnu.org>
11859         * keyboard.c: Doc fixes.
11861         * s/irix4-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
11863 1998-12-08  Andrew Innes  <andrewi@harlequin.co.uk>
11865         * w32select.c (Fw32_get_clipboard_data): Do not delete isolated CR
11866         characters, only convert CRLF to LF.
11868 1998-12-08  Geoff Voelker  <voelker@cs.washington.edu>
11870         * makefile.nt: Do string comparision of _NMAKE_VER.
11872 1998-12-06  Eli Zaretskii  <eliz@mescaline.gnu.org>
11874         * Makefile.in (msdos.o): Depend on termchar.h, charset.h,
11875         coding.h, and disptab.h
11877         * msdos.c (Vdos_unsupported_char_glyph): New variable.
11878         (syms_of_msdos): DEFVAR_LISP it.
11879         (IT_insert_glyphs, IT_delete_glyphs): New functions which abort Emacs.
11880         (internal_terminal_init): Set up insert_glyphs_hook and
11881         delete_glyphs_hook to call them.  Explicitly set char_ins_del_ok to 0.
11882         (unibyte_display_via_language_environment): New variable.
11883         (syms_of_msdos): Devfar it.
11884         (IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
11885         Encode the character codes of the glyphs according to the
11886         terminal_coding in effect.
11888 1998-12-04  Andreas Schwab  <schwab@delysid.gnu.org>
11890         * fns.c (Fstring_as_unibyte): Doc fix.
11892 1998-12-03  Andreas Schwab  <schwab@delysid.gnu.org>
11894         * charset.h: Declare char_valid_p.
11896 1998-12-03  Eli Zaretskii  <eliz@mescaline.gnu.org>
11898         * dosfns.c (dos_cleanup): Flush and fsync the termscript stream.
11900         * msdos.c (init_environment): Record the time we started up.
11901         (IT_reset_terminal_modes): Don't restore the screen if we exit too
11902         fast after startup (aka crash).
11904 1998-12-02  Geoff Voelker  <voelker@cs.washington.edu>
11906         * w32.c (check_windows_init_file): Use decode_env_path when
11907         using EMACSLOADPATH.
11909 1998-12-02  Jason Rumney  <jasonr@altavista.net>
11911         * w32term.c (dumpglyphs): Use unsigned char arrays.
11912         Use FONT_MAX_WIDTH to detect and fudge proportional fonts
11913         for various languages.
11914         Compensate for fonts that have underhangs (e.g., Thai).
11916         * w32term.h (FONT_MAX_WIDTH): New macro.
11918 1998-12-02  Andrew Innes  <andrewi@harlequin.co.uk>
11920         * keyboard.c (Qlanguage_change): New variable.
11921         (syms_of_keyboard): Init it.
11922         (kbd_buffer_get_event) [WINDOWSNT]: Generate language-change events.
11923         (lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
11924         keys; add name for Escape key; extend to 256 elements.
11925         (parse_modifiers): Make non-static.
11927         * keyboard.h (parse_modifiers): Declare prototype.
11929         * termhooks.h (event_kind) [WINDOWSNT]: Define language_change_event.
11931         * w32fns.c (w32_last_error): Fix cut+paste error.
11932         (Vw32_phantom_key_code): New variable.
11933         (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New variables.
11934         (syms_of_w32fns): Init and register them.
11935         (reset_modifiers): Use a more precise test for whether Emacs has
11936         keyboard focus.  Synchronize state of all keys that can be used as
11937         modifiers, to overcome problems arising from hot-keys.
11938         (w32_key_to_modifier): Be careful not to call intern() to avoid
11939         requiring thread synchronization.
11940         (w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
11941         (w32_wnd_proc): Ensure lock key indicator lights are updated
11942         promptly on Windows 9x, by passing key events on to the system.
11943         (w32_wnd_proc): Use Vw32_phantom_key_code to stop system
11944         responding to Windows key events when not wanted.
11945         (w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
11946         Ctrl-NumLock into pause by the system.
11947         (w32_wnd_proc): Don't translate key combinations containing any
11948         modifiers other than shift (and capslock).
11949         (w32_wnd_proc): Reset modifier key states when receiving focus (we
11950         can't determine the key states until we have keyboard focus).
11951         (Fw32_toggle_lock_key): New function.
11952         (syms_of_w32fns): Defsubr it.
11954         * w32inevt.c (key_event): Use Vw32_phantom_key_code.  Undo the
11955         mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
11956         (w32_console_toggle_lock_key): New function.
11958         * w32term.h (WM_EMACS_TOGGLE_LOCK_KEY): New define.
11960 1998-11-30  Richard Stallman  <rms@psilocin.ai.mit.edu>
11962         * search.c (Freplace_match): Set OPOINT clearly for the case
11963         where point is in the middle of the text to be replaced.
11965         * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
11966         if compute_motion fails to advance at all, don't back it up.
11968 1998-11-28  Richard Stallman  <rms@psilocin.ai.mit.edu>
11970         * xfns.c (Qouter_window_id): New variable.
11971         (syms_of_xfns): Initialize it.
11972         (x_report_frame_params): Set up outer-window-id parameter.
11974         * keymap.c (Fsingle_key_description): Fix previous change.
11976 1998-11-26  Ken'ichi Handa  <handa@delysid.gnu.org>
11978         * lisp.h (Frequire): Update declaration.
11980 1998-11-26  Kenichi Handa  <handa@etl.go.jp>
11982         * ccl.c (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
11983         if the charset is ascii.
11984         (ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
11986         * charset.c (non_ascii_char_to_string): If C has modifier bits,
11987         make an appropriate one byte string.
11988         (char_bytes): Handle the case that C is a single byte char or has
11989         modifier bits.
11991         * charset.h (CHAR_BYTES): If C has modifier bits, return 1.
11993         * cmds.c (internal_self_insert): If C has modifier bits, insert
11994         appropriate one byte char.
11996 1998-11-25  Richard Stallman  <rms@psilocin.ai.mit.edu>
11998         * fns.c (Fstring_as_unibyte, Fstring_as_multibyte):
11999         Clear text properties in the new string.
12001 1998-11-24  Felix Lee  <flee@cygnus.com>
12003         * process.c (read_process_output): Call signal_after_change.
12005 1998-11-24  Richard Stallman  <rms@psilocin.ai.mit.edu>
12007         * buffer.c (syms_of_buffer): Doc fix.
12009         * keyboard.c (syms_of_keyboard): Doc fix.
12011 1998-11-22  Richard Stallman  <rms@psilocin.ai.mit.edu>
12013         * frame.c (Fset_mouse_position): Doc fix.
12015 1998-11-20  Richard Stallman  <rms@psilocin.ai.mit.edu>
12017         * keymap.c (Fmake_keymap): Doc fix.
12019 1998-11-17  Kenichi Handa  <handa@etl.go.jp>
12021         * category.c (word_boundary_p): If C1 or C2 are composite
12022         characters, test their first components.
12024 1998-11-16  Richard Stallman  <rms@sucrose.ai.mit.edu>
12026         * window.c (temp_output_buffer_show): Around temp-buffer-show-hook,
12027         don't do save-excursion, just restore selected window.
12029         * window.c (window_loop): For UNSHOW_BUFFER,
12030         always do consider minibuffer windows.
12031         
12032 1998-11-16  Kenichi Handa  <handa@etl.go.jp>
12034         * charset.h (SINGLE_BYTE_CHAR_P): Check if C is negative or not.
12036         * charset.c (non_ascii_char_to_string): If C is negative, signal error.
12038         * lisp.h (CHAR_TABLE_REF): Check if IDX is negative or not.
12040         * s/bsdos4.h: New file.
12042 1998-11-16  Kenichi Handa  <handa@etl.go.jp>
12044         * Makefile.in (abbrev.o): Depend on charset.h
12045         (bytecode.o): Depend on charset.h.
12047         * bytecode.c: Include charset.h.
12049         * abbrev.c: Include charset.h.
12051         * syntax.h (SYNTAX_ENTRY_INT): For a composite character, check
12052         the first component.
12054 1998-11-13  Ehud Karni  <ehud@unix.simonwiesel.co.il>
12056         * m/aviion-intel.h (LIBS_MACHINE): Delete redundant definition.
12058 1998-11-11  Richard Stallman  <rms@gnu.org>
12060         * xterm.c (XTread_socket): Fix previous change in case F == 0.
12062         * s/dgux5-4-3.h (BSD_PGRPS): Add #undef.
12064         * s/dgux4.h (BROKEN_FIONREAD): #undef commented out.
12065         (INTERRUPT_INPUT): #define commented out.
12067         * m/aviion-intel.h: New file.
12069 1998-11-11  Eli Zaretskii  <eliz@delysid.gnu.org>
12071         * fns.c (MAX_ALLOCA): New macro.
12072         (Fbase64_encode_region, Fbase64_encode_string,
12073         Fbase64_decode_region, Fbase64_decode_string):  Don't allocate
12074         more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
12076 1998-11-11  Ken'ichi Handa  <handa@delysid.gnu.org>
12078         * insdel.c (byte_combining_error): Error message improved.
12080         * charset.c (char_valid_p): Handle a composite character correctly.
12082 1998-11-11  Kenichi Handa  <handa@etl.go.jp>
12084         * charset.c (str_cmpchar_id): Check the byte sequence for
12085         composition more rigidly.
12086         (Fcompose_string): Allow DEL to be composed.  Signal error if STR
12087         contains an invalid multibyte sequence.
12089         * xterm.c (x_list_fonts): Don't change the value of maxnames.
12091 1998-11-10  Andrew Innes  <andrewi@harlequin.co.uk>
12093         * w32term.h (struct w32_display_info): New element faked_key.
12094         (WM_EMACS_SETKEYBOARDLAYOUT): 
12095         (WM_EMACS_REGISTER_HOT_KEY): 
12096         (WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
12097         (LEFT_WIN_PRESSED): 
12098         (RIGHT_WIN_PRESSED): 
12099         (APPS_PRESSED): New console keyboard modifier flags.
12101         * w32term.c (convert_to_key_event): Removed.
12102         (is_dead_key): Copied to w32fns.c.
12103         (w32_read_socket): Generate language_change_event.  Modify to work
12104         with keyboard handling changes in w32_wnd_proc.
12106         * w32proc.c (sys_kill): Set extended key flag when faking
12107         Ctrl-Break keystrokes.
12108         (Fw32_get_locale_info): Allow LONGFORM parameter to specify an
12109         arbitrary locale property using a numerical index.
12110         (Vw32_valid_codepages): New variable.
12111         (enum_codepage_fn): 
12112         (Fw32_get_valid_codepages): 
12113         (Fw32_get_console_codepage): 
12114         (Fw32_set_console_codepage): 
12115         (Fw32_get_console_output_codepage): 
12116         (Fw32_set_console_output_codepage): 
12117         (Fw32_get_codepage_charset): 
12118         (Fw32_get_valid_keyboard_layouts): 
12119         (Fw32_get_keyboard_layout): 
12120         (Fw32_set_keyboard_layout): New functions, exposing Windows locale
12121         handling functions.
12122         (syms_of_ntproc): Register them.
12124         * w32inevt.c: Include w32term.h and w32heap.h.
12125         (map_keypad_keys):
12126         (Vw32_enable_caps_lock):
12127         (Vw32_enable_num_lock):
12128         (Vw32_pass_lwindow_to_system):
12129         (Vw32_pass_rwindow_to_system):
12130         (Vw32_lwindow_modifier):
12131         (Vw32_rwindow_modifier):
12132         (Vw32_apps_modifier):
12133         (Vw32_scroll_lock_modifier):
12134         (w32_key_to_modifier): Add externs.
12135         (w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
12136         Scroll Lock as potential modifiers; exclude numpad keys from
12137         effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
12138         code.
12139         (is_dead_key): Copy from w32fns.c.
12140         (w32_kbd_patch_key): Comment attempt to improve handling of
12141         dead-keys, and system bug relating to same on Windows NT.  Work
12142         around the bug by calling ToUnicode and then converting to the
12143         correct codepage.
12144         (map_virt_key): Removed obsolete variable.
12145         (lispy_function_keys): Add extern.
12146         (key_event): Major rework of keyboard input handling: optionally
12147         recognize Windows keys and Apps key as modifiers; optionally treat
12148         NumLock, CapsLock and ScrollLock as function keys; let system
12149         translate keystrokes to characters to avoid system bugs relating
12150         to dead-key handling; preserve shift distinction for control
12151         characters.  Remove some obsolete code.
12153         * makefile.nt ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
12154         and w32heap.h.
12156         * w32fns.c (Vw32_pass_optional_keys_to_system): Variable removed.
12157         (Vw32_pass_lwindow_to_system):
12158         (Vw32_pass_rwindow_to_system):
12159         (Vw32_lwindow_modifier):
12160         (Vw32_rwindow_modifier):
12161         (Vw32_apps_modifier):
12162         (Vw32_enable_num_lock):
12163         (Vw32_enable_caps_lock):
12164         (Vw32_scroll_lock_modifier): New variables.
12165         (modifier_set): Return toggle state for Scroll Lock.
12166         (w32_key_to_modifier): New function.  Returns chosen modifier bit
12167         for given key.
12168         (w32_get_modifiers): Returns modifier flags for
12169         non-keyboard input events.
12170         (construct_console_modifiers): Renamed from construct_modifiers;
12171         recognize Windows and Apps keys as modifiers.
12172         (w32_get_key_modifiers): New function.  Returns modifier flags for
12173         keyboard input events.
12174         (map_keypad_keys): Make non-static.  Use second arg as extended
12175         flag.
12176         (w32_grabbed_keys): New variable.
12177         (HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
12178         (register_hot_keys):
12179         (unregister_hot_keys):
12180         (lookup_vk_code):
12181         (w32_parse_hot_key):
12182         (Fw32_register_hot_key):
12183         (Fw32_unregister_hot_key):
12184         (Fw32_registered_hot_keys):
12185         (Fw32_reconstruct_hot_key): New functions to support hotkeys.
12186         (post_character_message): New function.
12187         (w32_msg_pump): Handle new messages for using hotkeys and changing
12188         keyboard layout/language.
12189         (w32_wnd_proc): Major rework of keyboard input handling:
12190         optionally recognize Windows keys and Apps key as modifiers;
12191         optionally treat NumLock, CapsLock and ScrollLock as function
12192         keys; let system translate keystrokes to characters to avoid
12193         system bugs relating to dead-key handling; preserve shift
12194         distinction for control characters; forward keyboard
12195         layout/language changes to lisp; detect and convert hot-key events
12196         to normal keystrokes.
12197         (syms_of_w32fns): Register new functions and variables.
12198         (w32_last_error): New function for use in debugging.
12200 1998-11-10  Kenichi Handa  <handa@etl.go.jp>
12202         * category.h (CATEGORY_SET): Adjusted for the change of
12203         cmpchar_component.
12204         (CATEGORY_SET): Likewise.
12206         * charset.c (cmpchar_component): New arg NOERROR.  Check
12207         composition char ID more strictly.
12208         (Fcmpchar_component): Call cmpchar_component with NOERROR arg zero.
12209         (Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
12210         return 255.
12211         (Fcompose_string): Signal error if STR contains a rule-based
12212         composition character.
12214         * charset.h (cmpchar_component): Proto-type adjusted.
12216 1998-11-09  Kenichi Handa  <handa@etl.go.jp>
12218         * charset.c (string_to_non_ascii_char): Return correct length for
12219         a charset of dimension 2 and composition character.
12221 1998-11-08  Richard Stallman  <rms@sucrose.ai.mit.edu>
12223         * keymap.c (Fsingle_key_description): Handle generic characters.
12225         * process.c (Fprocess_status): Doc fix.
12227 1998-11-06  Ken'ichi Handa  <handa@delysid.gnu.org>
12229         * charset.c (init_charset_once): Fix previous change.
12231 1998-11-06  Kenichi Handa  <handa@etl.go.jp>
12233         * charset.c (string_to_non_ascii_char): Fix previous change.
12234         (char_valid_p): Check the validity of CHARSET by CHARSET_DEFINED_P.
12236         * charset.h (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
12237         character correctly.
12238         (STRING_CHAR): Handle an invalid charater correctly.
12240 1998-11-05  Kenichi Handa  <handa@etl.go.jp>
12242         * charset.c (string_to_non_ascii_char): Fix previous change.
12244         * charset.h (MAKE_NON_ASCII_CHAR): Check validity of CHARSET.
12246         * editfns.c (Fstring_to_char): Don't return a multibyte character
12247         if STRING is a unibyte string.
12249         * indent.c (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte
12250         character.
12252         * xdisp.c (display_text_line): Check validity of a multibyte character.
12253         (display_string): Likewise.  Handle an invalid character correctly.
12255 1998-11-05  Karl Heuer  <kwzh@gnu.org>
12257         * insdel.c (Fcombine_after_change_execute): Return nil, not junk.
12258         If nothing to do, return immediately.
12259         (syms_of_insdel): Initialize combine_after_change_buffer.
12261 1998-11-05  Richard Stallman  <rms@gnu.org>
12263         * xterm.c (XTread_socket): ButtonPress clears f->mouse_moved.
12265 1998-11-04  Geoff Voelker  <voelker@cs.washington.edu>
12267         * w32term.c (w32_enable_unicode_output): Rename from
12268         w32_no_unicode_output.
12269         (w32_use_unicode_for_codepage, syms_of_w32term): Use new name
12270         and new semantics.
12272 1998-11-04  Jason Rumney  <jasonr@altavista.net>
12274         * w32fns.c (w32_list_fonts): Report an error if a frame has not
12275         been created yet.
12277         * w32term.c (dumpglyphs): Use FRAME_FONT for w32_fill_area.
12279 1998-11-04  Kenichi Handa  <handa@etl.go.jp>
12281         * charset.c (string_to_non_ascii_char): Change the check for the
12282         varidity of multibyte form.
12283         (update_charset_table): Check validity of BYTES.  Don't set
12284         bytes_by_char_head here.
12285         (init_charset_once): Set bytes_by_char_head completely.
12287         * frame.c (do_switch_frame): Cancel previous change.
12289         * print.c (print_string): Check validity of a character.
12290         (print): Likewise.
12292         * sysdep.c [nec_ews_svr4]: Extern *_sobuf.
12294         * m/ews4800.h, s/ux4800.h: New files.
12296 1998-11-03  Theodore Jump <tjump@tertius.com>
12298         * makefile.nt: Compile multiple source files when possible.
12300         * w32faces.c (Qmouse_face): Replace definition with extern decl.
12301         
12302 1998-11-03  Andrew Innes  <andrewi@delysid.gnu.org>
12304         * w32.c (stat): GetFileInformationByHandle can legitimately fail,
12305         so don't rely on it succeeding.
12307         * w32fns.c (x_to_w32_font): Specify DEFAULT_CHARSET in the w32
12308         LOGFONT struct if x font doesn't specify the charset.
12309         (x_to_w32_charset): Change >= to == when testing results of
12310         stricmp.
12312 1998-11-02  Richard Stallman  <rms@sucrose.ai.mit.edu>
12314         * fns.c (Frequire): New arg NOERROR.
12316 1998-11-02  Andrew Innes  <andrewi@harlequin.co.uk>
12318         * fileio.c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo.
12320 1998-10-31  Richard Stallman  <rms@psilocin.ai.mit.edu>
12322         * xfaces.c (Qmouse_face): Replace definition with extern decl.
12323         (syms_of_xfaces): Initialization deleted.
12325         * textprop.c (Qmouse_face): Variable definition moved here.
12326         (syms_of_textprop): Initialize it.
12328         * data.c (set_internal): For built-in maybe-local vars,
12329         when BINDFLAG is set, do not mark them as local.
12331 1998-10-31  Ken'ichi Handa  <handa@delysid.gnu.org>
12333         * insdel.c (replace_range): Fix previous change.
12335 1998-10-31  Kenichi Handa  <handa@etl.go.jp>
12337         * editfns.c (Fsubst_char_in_region): Fix previous change.
12338         (Ftranslate_region): Fix previous change.
12340         * fns.c (Fbase64_decode_region): Fix previous change.
12342         * frame.c (do_switch_frame): Update minibuf_window if necessary.
12344         * insdel.c (byte_combining_error): New function.
12345         (CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
12346         (insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
12347         CHECK_BYTE_COMBINING_FOR_INSERT.
12348         (insert_from_buffer_1): Likewise.
12349         (adjust_after_replace): Check the posibility of inhibitted byte
12350         combining correctly.
12351         (replace_range): Before signaling an error for inhibitted byte
12352         combining, recover the buffer in a safe state.
12353         (del_range_2): Check the posibility of inhibitted byte combining
12354         correctly.
12356 1998-10-30  Andreas Schwab  <schwab@delysid.gnu.org>
12358         * xselect.c (Vselection_coding_system): Doc fix.
12360         * fns.c (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
12361         when we have both char and byte position.  Fix type clashes.
12363         * eval.c (Fsignal): Use a separate format string when passing
12364         error message string to fatal, in case it contains %'s.
12366         * editfns.c (Fchar_after): Fix type clashes.
12368         * charset.c (Fchar_bytes): Doc fix.
12369         (char_bytes): Fix returned value to match returned type.
12370         (syms_of_charset): Fix type clash in initialisation of
12371         Vauto_fill_chars.
12373 1998-10-29  Geoff Voelker  <voelker@cs.washington.edu>
12375         * w32console.c (initialize_w32_display): Use buffer coords
12376         instead of buffer size (which may be larger than the window).
12378         * fileio.c (init_fileio_once): New function.
12380         * emacs.c (main): Invoke init_fileio_once.
12382 1998-10-28  Paul Eggert  <eggert@twinsun.com>
12384         * xterm.c (XTread_socket): Check the returned value of
12385         XmbLookupString more carefully.
12387 1998-10-28  Kenichi Handa  <handa@etl.go.jp>
12389         * coding.c (DECODE_CHARACTER_ASCII): Check validity of inserted code.
12390         (DECODE_CHARACTER_DIMENSION1): Likewise.
12391         (DECODE_CHARACTER_DIMENSION2): Likewise.
12392         (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
12394         * editfns.c (Fsubst_char_in_region): Fix previous change.
12395         (Ftranslate_region): Fix previous change.
12397         * insdel.c (check_markers): Check if markers are at character boundry.
12398         (adjust_markers_for_insert): Fix previous change.
12399         (count_combining_before): Don't limit the check at BEGV.
12400         (count_combining_after): Don't limit the check at ZV.
12401         (CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
12402         (insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
12403         (insert_from_string_1): Likewise.
12404         (insert_from_buffer_1): Likewise.
12405         (adjust_after_replace): Inhibit bytes combined across region
12406         boundary.  Update end_unchanged correctly.
12407         (replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT.  Update
12408         end_unchanged correctly.
12409         (del_range_2): Inhibit bytes combined across region boundary.
12410         Update end_unchanged correctly.
12412 1998-10-27  Geoff Voelker  <voelker@cs.washington.edu>
12414         * w32.c (check_windows_init_file): Also look in load path specified
12415         in environment.
12417         * w32console.c (Fset_message_beep): Recognize 'silent.
12418         (w32_sys_ring_bell): Do nothing for the 'silent sound.
12419         
12420         * w32fns.c (w32_color_map_lookup): Remove duplicate definition.
12422         * w32select.c (Vnext_selection_coding_system): New variable.
12423         (syms_of_w32select): DEFVAR_LISP it.
12424         (Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
12425         non-nil.  Always convert multibyte strings.
12426         (Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
12427         non-nil.  Always convert a string that includes non-ASCII characters.
12428         
12429 1998-10-27  Richard Stallman  <rms@psilocin.ai.mit.edu>
12431         * fns.c (Fbase64_decode_string): Doc fix.
12432         (Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
12433         Likewise.
12435 1998-10-27  Dave Love  <fx@gnu.org>
12437         * fns.c (Fbase64_decode_region, Fbase64_encode_region): Fix
12438         newline in doc string.
12440 1998-10-27  Kenichi Handa  <handa@etl.go.jp>
12442         * editfns.c (Fsubst_char_in_region): Correctly handle the case
12443         that byte combining before happens.
12444         (Ftranslate_region): Likewise.
12446         * insdel.c (adjust_after_replace): Correctly handle the case that
12447         both byte combining before and byte combining after happen.
12448         (replace_range): Likewise.
12450 1998-10-26  Kenichi Handa  <handa@etl.go.jp>
12452         * category.c (syms_of_category): Doc-string modified.
12454         * coding.c (code_convert_region): Kill the work buffer created by
12455         pre-write-conversion.
12457 1998-10-25  Jason Rumney  <jasonr@altavista.net>
12459         * emacs.c (main) [HAVE_NTGUI]: Invoke syms_of_fontset().
12461 1998-10-23  Kenichi Handa  <handa@etl.go.jp>
12463         * coding.c (code_convert_region): While preserving the orignal
12464         point, pay attention to the byte combining problem.
12466         * fns.c (Fbase64_decode_region): Pay attention to the byte
12467         combining problem.
12469         * insdel.c (adjust_markers_for_insert): Adjust markers by taking
12470         combined_before_bytes and combined_after_bytes into account.
12471         (count_combining_after): Handle the case that LENGTH is zero.
12472         (adjust_after_replace): Record deletion at correct buffer
12473         position.  Handle the case that LEN is zero.
12474         (replace_range): Record deletion at correct buffer position.
12475         (del_range_2): Call adjust_makers_for_replace to adjust makers for
12476         combined bytes.
12478 1998-10-21  Richard Stallman  <rms@psilocin.ai.mit.edu>
12480         * alloc.c (Fgarbage_collect): Block input around most of the function.
12481         
12482 1998-10-21  Kenichi Handa  <handa@etl.go.jp>
12484         * coding.c (setup_coding_system): Fix setting up
12485         coding->spec.ccl.valid_codes for CCL based coding system.
12486         (code_convert_region): Set point to FROM before inserting the
12487         result of pre-write-funciton.  Preserve original point.
12488         (code_convert_string): If coding->type is coding_type_ccl, do
12489         conversion even if the length of conversion region is zero.
12491         * fontset.c: Include frame.h before fontset.h.
12492         (list_fonts_func): Fix prototype.       
12494         * frame.c: Include frame.h before fontset.h.
12496         * xterm.c: Likewise.
12498 1998-10-21  Jason Rumney  <jasonr@altavista.net>
12500         * x-list-font.c (Fx_list_fonts): Access frame parameters throught
12501         general macros.   Don't call x_list_font directory, instead call a
12502         function set in list_fonts_func.
12504         * fontset.h (list_fonts_func): Fix prototype.
12506 1998-10-20  Jason Rumney  <jasonr@altavista.net>
12508         * makefile.nt (w32fns.c): Add x-list-font.c to dependancies.
12510         * w32faces.c: Update comments referring to obsolete structs.
12511         (allocate_face, copy_face, face_eql, load_font,
12512         Fpixmap_spec_p, free_frame_faces, new_computed_face,
12513         frame_update_line_height, merge_faces, compute_base_face,
12514         Fset_face_attribute_internal): Use fontset support based on xfaces.c.
12516         * w32fns.c: (Vx_pixel_size_width): New global variable.
12517         (unibyte_display_via_language_environment): New global variable.
12518         (x_set_font): Add support for setting fontsets.
12519         (Fx_create_frame): Add check_w32(). Initialize fontsets.  Fix
12520         font names to match xlfd-tight-regexp.
12521         (w32_load_font): Rewrite based on x_load_font.
12522         (x_to_w32_charset, w32_to_x_charset): Add character sets.  Use
12523         `iso8859-1' rather than `ansi'.
12524         (w32_to_x_font): Remove `-' from font name.  Remove the `-' off the
12525         end. Move charset into `charset registry' field.
12526         (enum_font_cb2): Check charsets match.  Include width in font list.
12527         (w32_list_fonts): Rewrite based on x_list_fonts.
12528         Moved from w32term.c to have access to enumfont_t struct.
12529         (Fx_list_fonts): w32 specific version eliminated.  Include
12530         `x-list-fonts.c'.
12531         (w32_get_font_info, w32_query_font, w32_find_ccl_program): New
12532         functions for fontset support - adapted from x_ equivalents.
12533         (syms_of_w32fns): New lisp variables initialised.  Function
12534         pointers for fontset.c set up.
12536         * w32term.c: Include fontset.h.  Define codepage macros. 
12537         Add ENCODE_BIG5 macro from coding.c.
12538         (w32_no_unicode_output): New variable.
12539         (w32_codepage_for_charset, w32_use_unicode_for_codepage): New
12540         functions.
12541         (BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
12542         (dumpglyphs): Rewrite based on xterm.c equivalent.
12543         (x_new_font): Use functionality provided in fontset.c.
12544         (x_new_fontset): New function based on the one in xterm.c.
12545         (syms_of_w32term): Add w32-no-unicode-output flag.
12547         * w32term.h: Remove redundant font_info struct definition. 
12548         (Vx_pixel_size_width_font_regexp,
12549         unibyte_display_via_language_environment): Declare variables.
12550         (w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font): 
12551         Declare functions.
12552         (w32_output): New fields font_baseline and fontset.
12553         (FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
12555         * w32xfns.c: Include charset.h and fontset.h.
12557 1998-10-20  Richard Stallman  <rms@psilocin.ai.mit.edu>
12559         * syntax.c (syms_of_syntax): Fix the setup of Qscan_error.
12561 1998-10-20  Eli Zaretskii  <eliz@mescaline.gnu.org>
12563         * msdos.c (mouse_init): Reset the button press/release info of the
12564         mouse driver.
12565         (mouse_preempted): New variable.
12566         (dos_rawgetc): Don't generate mouse events if mouse is preempted.
12567         (XMenuActivate): Preempt the mouse during menu-handling loop.
12568         Release the current time slice while idling in the menu-handling
12569         loop.  Leave the loop only if the user pressed, then released the
12570         same button.  Discard all mouse events that are pending in the
12571         event queue before exiting.
12573 1998-10-19  Richard Stallman  <rms@psilocin.ai.mit.edu>
12575         * editfns.c (Fformat): Increase buffer size for floating format.
12577 1998-10-17  Kenichi Handa  <handa@etl.go.jp>
12579         * charset.c (Vauto_fill_chars, Qauto_fill_chars): New variables.
12580         (syms_of_charset): Staticpro and initialize Qauto_fill_chars.
12581         Declare auto-fill-chars as a Lisp variable and initialize it.
12583         * charset.h (Vauto_fill_chars): Extern it.
12585         * cmds.c (internal_self_insert): Check Vauto_fill_chars.
12587 1998-10-16  Kenichi Handa  <handa@etl.go.jp>
12589         * casefiddle.c (casify_object): Use make_string instead of
12590         make_specified_string to cope with byte-combining situation.
12592         * coding.c (decode_coding_iso2022): Set coding->fake_multibyte to
12593         1 when encountered with a code of the range 0x80..0x9F.
12595 1998-10-14  Eli Zaretskii  <eliz@mescaline.gnu.org>
12597         * callproc.c (Fcall_process) [MSDOS]: Use $TMPDIR instead of
12598         trying $TMP and $TEMP, since the former is always set in msdos.c.
12599         (Fcall_process_region) [DOS_NT]: When looking for a place to put
12600         the temporary files, check $TMPDIR as well.
12602 1998-10-14  Richard Stallman  <rms@psilocin.ai.mit.edu>
12604         * process.c (exec_sentinel, read_process_output): 
12605         Restore waiting_for_user_input_p after running Lisp code.
12607         * keyboard.c (parse_menu_item): Avoid initialization for Lisp_Object.
12608         (command_loop): Likewise.
12610 1998-10-14  Kenichi HANDA  <handa@etl.go.jp>
12612         * data.c (Faset): Fix previous change.
12614         * fns.c (Ffillarray): Fix previous change.
12616         * insdel.c (adjust_markers_for_combining): This function deleted.
12617         (adjust_markers_for_replace): Correctly adjust marker positions.
12618         Don't record these adjustment because they were recorded already.
12619         (combine_bytes): Don't adjust markers here.
12621 1998-10-13  Richard Stallman  <rms@psilocin.ai.mit.edu>
12623         * minibuf.c (Fdisplay_completion_list): Put on mouse-face properties.
12625 1998-10-12  Richard Stallman  <rms@psilocin.ai.mit.edu>
12627         * keyboard.c (Fclear_this_command_keys): New function.
12628         (syms_of_keyboard): defsubr it.
12630         * macros.c (Fexecute_kbd_macro): Set real_this_command.
12632 1998-10-12  Kenichi Handa  <handa@etl.go.jp>
12634         * ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
12636         * charset.c (Fstring): Call make_string instead of
12637         make_string_from_bytes.
12638         (Ffind_charset_region): Include `composition' in the returned list
12639         if the region contains any composite characters.
12640         (Ffind_charset_string): Include `composition' in the returned list
12641         if the string contains any composite characters.
12642         (find_charset_in_str): Handle CMPCHARP arg correctly.
12644         * coding.c (shrink_decoding_region): If a charset other than ascii
12645         is initially designated to G0, don't shrink the region.
12646         (shrink_encoding_region): Likewise.
12648         * data.c (Faset): If ARRAY is a multibyte string, pay attention to
12649         byte-combining situation.
12651         * fns.c (clear_string_char_byte_cache): New function.
12652         (Ffillarray): Handle multibyte string correctly.
12654         * lisp.h (clear_string_char_byte_cache): Extern it.
12656         * xselect.c (lisp_data_to_selection_data): Call
12657         find_charset_in_str with CMPCHARP arg 0.
12658         * w16select.c (Fw16_set_clipboard_data): Likewise.
12659         * w32select.c (Fw32_set_clipboard_data): Likewise.
12661 1998-10-11  Richard Stallman  <rms@psilocin.ai.mit.edu>
12663         * keyboard.c (parse_menu_item): For top level of menu bar,
12664         accept ordinary commands, and treat them just like a keymap.
12666 1998-10-11  Richard Stallman  <rms@sucrose.ai.mit.edu>
12668         * xdisp.c (redisplay_window): Clear w->window_end_valid
12669         before running the window-scroll-functions hook, if appropriate.
12671 1998-10-10  Richard Stallman  <rms@psilocin.ai.mit.edu>
12673         * data.c (Fstring_to_number): Don't recognize floating point
12674         if base is not 10.
12676         * window.c (window_loop): New alternative CHECK_ALL_WINDOWS.
12677         (check_all_windows): New function for debugging tests.
12678         (syms_of_window): Initialize it.
12680         * window.c (Qwindow_configuration_p): New variable.
12681         (Fwindow_configuration_frame): New function.
12682         (syms_of_window): defsubr it.
12683         (Fset_window_configuration): Return t if frame is live.
12684         Use Qwindow_configuration_p.
12686         * xfns.c (check_x_display_info): Don't use selected_frame
12687         if it is dead.
12689 1998-10-09  Geoff Voelker  <voelker@cs.washington.edu>
12691         * w32fns.c (x_create_bitmap_from_file): Skip special files.
12693 1998-10-08  Kenichi Handa  <handa@etl.go.jp>
12695         * buffer.h (inhibit_modification_hooks): Extern it.
12697         * buffer.c (inhibit_modification_hooks): New variable.
12698         (init_buffer_once): Initialize inhibit_modification_hooks to 0.
12700         * charset.c (invalid_character): Prepend `0' to octal
12701         representation.  Give error sufficient args.
12703         * coding.c (code_convert_region): Set inhibit_modification_hooks
12704         to 1 before calling Fset_text_properties.
12706         * insdel.c (signal_before_change): If inhibit_modification_hooks
12707         is nonzero, do nothing.
12708         (signal_after_change): Likewise.
12710 1998-10-08  Emilio Lopes  <Emilio.Lopes@Physik.TU-Muenchen.DE>
12712         * process.c: Doc fixes.
12714 1998-10-08  Richard Stallman  <rms@sucrose.ai.mit.edu>
12716         * syntax.c (scan_lists): Bring FROM back into range BEGV...ZV.
12718 1998-10-07  Geoff Voelker  <voelker@cs.washington.edu>
12720         * w32.c (init_ntproc): Check for Windows init file.
12721         (term_ntproc): Do not check for it here.
12723 1998-09-28  Kenichi Handa  <handa@etl.go.jp>
12725         * coding.c (check_composing_code): Fix previous change.  Now it
12726         alwasy returns 0 or -1.
12727         (decode_coding_iso2022): Adjusted for the above change.
12728         (encode_coding_iso2022): When encoding the last block, flush out
12729         tailing garbage bytes.
12730         (setup_coding_system): Delete unnecessary code.
12731         (shrink_decoding_region): Check translation table.  If ASCII
12732         should be translated, give up shrinking.
12733         (shrink_encoding_region): Likewise.
12734         (SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
12735         (SHRINK_CONVERSION_REGION): New macro.
12736         (code_convert_region): Call SHRINK_CONVERSION_REGION.  Delete text
12737         properties here.
12738         (code_convert_region): In the case of encoding, always calulate
12739         correct character number.
12740         (code_convert_string): Call SHRINK_CONVERSION_REGION.
12741         (code_convert_region1): Don't delete text properties here.
12743         * insdel.c (adjust_after_replace): Don't delete text properties here.
12745         * term.c (encode_terminal_code): Handle raw 8-bit codes correctly.
12747 1998-09-27  Richard Stallman  <rms@psilocin.ai.mit.edu>
12749         * emacs.c (sort_args): Fill extra space with NULL ptrs.
12751 1998-09-26  Kenichi Handa  <handa@etl.go.jp>
12753         * coding.h (struct coding_system): New member composed_chars.
12755         * coding.c (check_composing_code): If the current composing
12756         sequence doesn't end properly, return -1.
12757         (DECODE_CHARACTER_ASCII): Update coding->composed_chars.
12758         (DECODE_CHARACTER_DIMENSION1): Likewise.
12759         (decode_coding_iso2022): Check validity of a composing sequence.
12760         (code_convert_string): If the length of text to be converted is
12761         shrunk to zero, don't perform code conversion.
12762         (shrink_decoding_region): Fix previous change.
12764         * editfns.c (Fformat): Check format control characters.
12766 1998-09-25  Kenichi Handa  <handa@etl.go.jp>
12768         * coding.c (decode_eol): While decoding DOS-like eol, handle a
12769         single CR code correctly.
12770         (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
12771         CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
12773 1998-09-23  Geoff Voelker  <voelker@cs.washington.edu>
12775         * w32fns.c (w32_color_map_lookup): New function.
12776         (x_to_w32_color): Approximate colors ending in numbers if necessary.
12778 1998-09-22  Kenichi Handa  <handa@etl.go.jp>
12780         * ccl.c (ccl_driver): Report correct CCL program counter on error.
12782         * xmenu.c (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
12783         strings unibyte.
12784         (xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
12786 1998-09-22  Kenichi Handa  <handa@etl.go.jp>
12788         * callint.c (Fcall_interactively): Don't use input method when
12789         reading a character in the case of `c' code letter.
12791 1998-09-21  Dave Love  <fx@gnu.org>
12793         * editfns.c (Fsave_restriction): Doc fix.
12795 1998-09-21  Richard Stallman  <rms@gnu.org>
12797         * lread.c (build_load_history): Do add to Vload_history
12798         even when dumping Emacs.
12800 1998-09-18  Kenichi Handa  <handa@etl.go.jp>
12802         * ccl.c (CCL_WRITE_CHAR): Don't use bcopy.
12803         (ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
12804         cause error if the program is going to output some bytes.  When
12805         outputing a string to notify an error, check the case that
12806         DST_BYTES is zero.
12808         * coding.h (CODING_FINISH_INTERRUPT): New macro. 
12810         * coding.c (ccl_coding_driver): If ccl_driver is interrupted by a
12811         user or the CCL program executed an invalid command, return
12812         CODING_FINISH_INTERRUPT.
12813         (code_convert_region): Pay attention to the converters return
12814         value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
12816 1998-09-16  Kenichi Handa  <handa@etl.go.jp>
12818         * coding.c (code_convert_region): Update beg_unchanged and
12819         end_unchanged after we delete the source text.
12821         * insdel.c (adjust_markers_for_replace): Don't adjust a byte
12822         position if it is FROM.
12823         (adjust_markers_for_combining): New function.
12824         (combine_bytes): Call adjust_markers_for_combining instead of
12825         adjust_markers_for_replace.
12826         (adjust_after_replace): Record deletion of combining after bytes
12827         with the correct position.
12828         (replace_range): Likewise.  Record the actual deletion after
12829         recoding deletions of combining bytes.
12831         * xdisp.c (message_log_check_duplicate): Count byte length of the
12832         latest message correctly.
12834 1998-09-12  Richard Stallman  <rms@gnu.org>
12836         * xdisp.c (redisplay_internal): Use TEMP_SET_PT_BOTH
12837         instead of SET_PT_BOTH.
12838         (try_window_id, display_text_line): Likewise.
12840 1998-09-12  Karl Heuer  <kwzh@gnu.org>
12842         * data.c (Fmake_local_variable): Doc fix.
12844 1998-09-10  Dave Love  <fx@gnu.org>
12846         * print.c (Fwith_output_to_temp_buffer): Doc fix.
12848 1998-09-10  Richard Stallman  <rms@gnu.org>
12850         * s/irix6-0.h (TIOCSIGSEND): Add #undef.
12851         (bcopy, bcmp, bzero): Add #undef.
12853         * keyboard.c (command_loop_1): When switching to selected window's bfr,
12854         first exit if selected frame is dead (no live frames remain).
12855         (read_key_sequence): Likewise.
12857 1998-09-10  Karl Heuer  <kwzh@gnu.org>
12859         * emacs.c (main): Mention --display and --eval in help.
12861 1998-09-07  Paul Eggert  <eggert@twinsun.com>
12863         * editfns.c (emacs_memftime): New function.
12864         (Fformat_time_string): Use it to handle null bytes in formats
12865         correctly.
12867 1998-09-08  Kenichi Handa  <handa@etl.go.jp>
12869         * charset.c (Ffind_charset_region): Optimization for unibyte buffer.
12870         (Ffind_charset_string): For unibyte string, return (ascii).
12872         * editfns.c (Fsubst_char_in_region): Call replace_range with the
12873         arg MARKERS 1.
12875         * insdel.c (adjust_after_replace): Don't add combining bytes to
12876         the args given to adjust_point.  Handle correctly the case that
12877         there are both before and after combining bytes.
12878         (replace_range): Likewise.
12880 1998-09-07  Lars Magne Ingebrigtsen  <larsi@gnus.org>
12882         * fns.c (base64_decode_1, base64_encode_1): New functions.
12883         (Fbase64_decode_string, Fbase64_encode_string): New functions.
12884         (Fbase64_decode_region, Fbase64_encode_region): New functions.
12886 1998-09-07  Karl Heuer  <kwzh@gnu.org>
12888         * eval.c (error): After enlarging buffer, write to it, not to buf.
12890         * fns.c (Fwidget_put): Return VALUE instead of garbage.
12892 1998-09-07  Kenichi Handa  <handa@etl.go.jp>
12894         * charset.h (STRING_CHAR_AND_LENGTH): Return correct value in
12895         ACTUAL_LEN even if LEN is too short to have a valid multibyte form.
12896         (STRING_CHAR_AND_CHAR_LENGTH): Likewise.
12898         * coding.c (ccl_coding_driver): Always calculate correct mulibyte
12899         chars in produced byte sequence.
12900         (Ffind_operation_coding_system): Doc-string fixed.
12902         * insdel.c (count_combining_after): Check also preceding bytes at
12903         POS if all characters in STRING are not character head.
12905 1998-09-06  Paul Eggert  <eggert@twinsun.com>
12907         * editfns.c (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
12908         Don't assume that localtime and gmtime return non-NULL.
12910 1998-09-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
12912         * fns.c (Fbase64_decode_string, Fbase64_encode_string,
12913         base64_decode_1, Fbase64_decode_region, Fbase64_encode_region):
12914         New functions.
12916 1998-09-06  Richard Stallman  <rms@gnu.org>
12918         * editfns.c (Fformat): Detect incomplete format spec at string's end.
12920         * lread.c (Fload): Handle case where openp finds a magic file
12921         but it has no `load' handler or that handler calls `load'.
12922         If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
12924 1998-09-04  Dave Love  <fx@gnu.org>
12926         * buffer.c (enable-multibyte-characters): Doc fix.
12928 1998-09-02  Geoff Voelker  <voelker@cs.washington.edu>
12930         * w32heap.c (allocate_heap): Define NTHEAP_PROBE_BASE by default.
12932 1998-09-01  Kenichi Handa  <handa@etl.go.jp>
12934         * editfns.c (Ftranspose_regions): Use BYTE_POS_ADDR to get an
12935         address in buffer from byte-position.
12937 1998-09-01  Eli Zaretskii  <eliz@delysid.gnu.org>
12939         * w16select.c (Vnext_selection_coding_system): New variable.
12940         (syms_of_win16select): DEFVAR_LISP it.  No need to staticpro
12941         Vselection_coding_system.
12942         (Fw16_set_clipboard_data): Always convert multibyte strings.  Use
12943         Vnext_selection_coding_system if non-nil.
12944         (Fw16_get_clipboard_data): Always convert a string that includes
12945         non-ASCII characters. Use Vnext_selection_coding_system if
12946         non-nil.
12948 1998-08-31  Andrew Innes  <andrewi@harlequin.co.uk>
12950         * w32fns.c (w32_wnd_proc): Always zero button_state when releasing
12951         mouse capture.
12953 1998-08-31  Kenichi Handa  <handa@etl.go.jp>
12955         * xterm.c (x_load_font): If SIZE is 0, don't use a name
12956         x_list_font returns.
12958 1998-08-31  Paul Eggert  <eggert@twinsun.com>
12960         * lread.c (read1): Don't assume that atof ("-0.0") yields +0.0.
12961         Handle leading '-' uniformly for zeros, infinities, and NaNs.
12963 1998-08-31  Eli Zaretskii  <eliz@delysid.gnu.org>
12965         * msdos.c (IT_cmgoto): When tracking echo area messages with the
12966         cursor, save and restore previous cursor position in the
12967         minibuffer.
12969 1998-08-31  Kenichi Handa  <handa@etl.go.jp>
12971         * charset.c (unibyte_char_to_multibyte):
12972         Vnonacii_translation_table will convert a 7-bit charcater.
12973         (multibyte_char_to_unibyte): Handle the case that
12974         Vnonacii_translation_table converts a multibyte charcater to a
12975         unibyte charcter of less than 128.
12976         (init_charset_once): Initialize nonascii_insert_offset and
12977         Vnonacii_translation_table.
12979         * coding.c (decode_coding): Even if SRC_BYTES is zero, try
12980         processing if CODING requires flushing.
12981         (encode_coding): Likewise.
12982         (code_convert_region): Likewise.
12983         (code_convert_string): Likewise.
12985         * fns.c (concat): If Vnonascii_translation_table is non-nil, try
12986         to convert a character less than 160 to multibyte.
12987         * insdel.c (copy_text): Likewise.
12988         (count_size_as_multibyte): Likewise.
12989         * xterm.c (dumpglyphs): Likewise.
12991 1998-08-29  Paul Eggert  <eggert@twinsun.com>
12993         * data.c (arith_driver, float_arith_driver): Compute (- x) by
12994         using negation, not subtraction; this makes a difference with
12995         IEEE floating point arithmetic (and also if integer arithmetic
12996         is ones' complement or signed-magnitude!).
12998 1998-08-29  Karl Heuer  <kwzh@gnu.org>
13000         * xfns.c (x_create_bitmap_from_file): Fail immediately if magic.
13002 1998-08-28  Ken'ichi Handa  <handa@delysid.gnu.org>
13004         * charset.c (Fchar_bytes): Add \n\ in doc-string.
13006 1998-08-28  Paul Eggert  <eggert@twinsun.com>
13008         * s/sol2-4.h (NOT_USING_MOTIF): New macro.
13009         (LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
13010         path only if we're not building with Motif.
13012 1998-08-28  Kenichi Handa  <handa@etl.go.jp>
13014         * insdel.c (adjust_after_replace): Fix the code to record undo
13015         information for the case that `before combining' happens.  Remove
13016         text properties which are added to the new text by
13017         offset_intervals.
13019         * coding.c (code_convert_region1): Remove all text properties of
13020         the region.
13022 1998-08-28  Kenichi Handa  <handa@etl.go.jp>
13024         * charset.h (CHAR_BYTES): New macro.
13026         * charset.c (Fchar_bytes): Now always return 1.
13027         (char_bytes): New function.
13029         * editfns.c (Fposition_bytes): If the arg POSITION is out of
13030         range, return nil.
13031         (Fbyte_to_position): If the arg BYTEPOS is out of range, return
13032         nil.
13034         * data.c (Faset): Use macro CHAR_BYTES instead of Fchar_bytes.
13035         * fns.c (concat): Likewise.
13036         * insdel.c (count_size_as_multibyte): Likewise.
13037         * xdisp.c (message_dolog): Likewise.
13039 1998-08-27  Kenichi Handa  <handa@etl.go.jp>
13041         * coding.c (detect_coding_iso2022): Handle ESC N and ESC O
13042         correctly.  They are for SS2 and SS3 respectively.
13043         (ccl_coding_driver): Fix previous change.
13045 1998-08-26  Paul Eggert  <eggert@twinsun.com>
13047         * xterm.c (fixup_locale): New function.  For now, it resets
13048         LC_TIME to "C" (reverting the 1998-08-07 change), and also
13049         resets LC_MESSAGES to "C".
13050         (x_term_init): Use it to fix up the locale after setlocale
13051         (LC_ALL, "").
13053 1998-08-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13055         * xterm.c (x_calc_absolute_position): Cast argument to XFree, in
13056         case it was prototyped the old way.
13058 1998-08-25  Kenichi Handa  <handa@etl.go.jp>
13060         * xterm.c (x_list_fonts): Work-around for the case XGetAtomName
13061         returns a null string.  This happens when dxpc 3.7 is being used.
13063 1998-08-24  Andreas Schwab  <schwab@delysid.gnu.org>
13065         * keyboard.c (input-method-previous-message): Doc fix.
13067         * coding.c (file-coding-system-alist,
13068         select-safe-coding-system-function): Doc fix.
13070 1998-08-23  Kenichi HANDA  <handa@etl.go.jp>
13072         * coding.c (detect_coding_iso2022): Don't check the byte length of
13073         succeeding codes (0xa0..0xFF) if the codes follows single shift
13074         code (SS2 or SS3).
13076 1998-08-21  Ken'ichi Handa  <handa@delysid.gnu.org>
13078         * coding.c (detect_coding_system): If detect_eol_type returns
13079         CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
13080         correctly.
13082 See ChangeLog.7 for earlier changes.