* regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
[emacs.git] / src / ChangeLog
blob3b28faa07505f6a90080ad9cd071f1a4bea49894
1 2000-02-14  Stefan Monnier  <monnier@cs.yale.edu>
3         * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
4         to Emacs' syntax.  Also fix the comment about set/not-set meanings
5         since Emacs syntax is not the value 0 any more.
6         * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
7         since it's now part of RE_SYNTAX_EMACS.
9 2000-02-12  Dave Love  <fx@gnu.org>
11         * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
12         Alpha.
14 2000-02-12  Gerd Moellmann  <gerd@gnu.org>
16         * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
18 2000-02-12  Dave Love  <fx@gnu.org>
20         * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
22         * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
23         * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
24         * s/hpux.h: Don't define HAVE_VFORK.
26         * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
28         * s/nextstep.h: Don't define HAVE_ALLOCA.
30         * config.in: Add vfork bits.
32 2000-02-12  Gerd Moellmann  <gerd@gnu.org>
34         * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
35         unwind function to undo the effect of stopping atimers.
37         * keyboard.c (bind_polling_period): Stop all timers except
38         poll_timer.
40         * atimer.c (stopped_atimers): New variable.
41         (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
42         New functions.
44         * atimer.h (stop_other_atimers, run_all_atimers)
45         (unwind_stop_other_atimers): Add function prototypes.
46         
47         * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
49 2000-02-11  Ken Raeburn  <raeburn@gnu.org>
51         * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
52         library may depend on jpeg.
53         (atimer.o): Depends on atimer.c.
55 2000-02-11  Kenichi Handa  <handa@etl.go.jp>
57         * insdel.c (del_range_1): Call update_compositions.
58         (del_range_both): Call update_compositions just once..
60 2000-02-10  Dave Love  <fx@gnu.org>
62         * xfns.c (create_frame_xic): Fix initialization of automatic
63         aggregates for pcc.
65 2000-02-09  Kenichi Handa  <handa@etl.go.jp>
67         * ccl.c (CCL_MAKE_CHAR): New macro.
68         (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
69         registers by CCL_MAKE_CHAR before calling translate_char.
70         <CCL_TranslateCharacterConstTbl> Likewise.
72 2000-02-08  Dave Love  <fx@gnu.org>
74         * lread.c (__EXTENSIONS__): Define.
76 2000-02-08  Gerd Moellmann  <gerd@gnu.org>
78         * puresize.h (BASE_PURESIZE): Increase to 650000.
80 2000-02-07  Eli Zaretskii  <eliz@is.elta.co.il>
82         * msdos.c (XMenuActivate): Turn off the cursor after displaying
83         the help message.
85 2000-02-07  Eli Zaretskii <eliz@is.elta.co.il>
87         * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
88         md, mh, mb, mr, and me to the fake termcap entry.
90 2000-02-06  Ken Raeburn  <raeburn@gnu.org>
92         * sound.c (sound_cleanup): Don't call device close routine if the
93         function pointer is null.
95 2000-02-06  Andrew Innes  <andrewi@gnu.org>
97         * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
98         around image definitions and prototypes.
99         (gamma_correct) [WINDOWSNT]: New prototype.
101         * w32term.c (x_make_frame_visible): Replace call to
102         input_poll_signal with poll_for_input.
104         * window.c [WINDOWSNT]: Include w32term.h.
106         * xdisp.c [WINDOWSNT]: Include w32term.h.
108         * makefile.nt: Add dependencies on w32gui.h.
109         (OBJ1): Include atimer.obj.
110         ($(BLD)\atimer.obj): New dependency rule.
112         * w32.c (sigmask): New function (does nothing).
113         (sigunblock): Ditto.
115         * frame.c [WINDOWSNT]: Include w32term.h.
117         * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
119         * lread.c (syms_of_lread): Fix literal newlines.
121         * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
122         the string constant limit (2048 bytes) in MSVC.
123         (main): Ditto.
125 2000-02-05  INOUE Seiichiro <inoue@ainet.or.jp>
127         * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
128         area.
129         (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
130         (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
131         dispatch the event.
133 2000-02-04  Dave Love  <fx@gnu.org>
135         * fileio.c: Remove some unused vars.
136         (_GNU_SOURCE): Define (for euidaccess).
138         * lread.c (_XOPEN_SOURCE): Declare (for ftello).
140         * minibuf.c (read_minibuf_noninteractive): Remove undeclared
141         gcpro1, gcpro2.
142         (read_minibuf): Deal with allow_props correctly.
144 2000-02-03  Eli Zaretskii  <eliz@is.elta.co.il>
146         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
148 2000-02-03  Ken Raeburn  <raeburn@gnu.org>
150         * search.c (compile_pattern): If a cache entry has a nil regexp,
151         fill in that entry instead of clobbering a previously cached
152         string regexp.
154 2000-02-02  Ken Raeburn  <raeburn@gnu.org>
156         * puresize.h (BASE_PURESIZE): Increase to 610000.
158 2000-02-02  Gerd Moellmann  <gerd@gnu.org>
160         * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
161         can GC.
163 2000-02-02  Kenichi Handa  <handa@etl.go.jp>
165         * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
166         instead of incrementing ic directly.
167         <CCL_WriteExprConst> Likewise.
168         <ccl_set_expr>: Set ic to jump_address.
170         * fileio.c (e_write): Fix the handling of
171         CODING_FINISH_INSUFFICIENT_SRC.
173 2000-02-01  Dave Love  <fx@gnu.org>
175         * editfns.c (Fpropertize): Doc fix.
177         * process.c (Fstart_process): Doc fix.
179         * eval.c: Fix various doc strings not to duplicate information
180         from help-manyarg-func-alist.
182         * window.c (Fset_window_margins): Don't make interactive.  Doc
183         fix.
185         * doc.c (Vhelp_manyarg_func_alist): New variable.
186         (Fdocumentation): Use it.
187         (syms_of_doc): Define it.
189 2000-01-31  Gerd Moellmann  <gerd@gnu.org>
191         * xterm.c (xim_open_dpy): Remove unused local variable.
193         * emacs.c (USAGE): Use term `display options' instead of `X
194         options'.
196         * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
197         (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
199         * fns.c (sweep_weak_table): New function.
200         (sweep_weak_hash_tables): Use it.  Keep on marking until there
201         is no more change.
203 2000-01-30  Gerd Moellmann  <gerd@gnu.org>
205         * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
206         that XTread_socket does not crash by trying to call XNoOp on a
207         closed display.
208         
209 2000-01-30  Jason Rumney  <jasonr@gnu.org>
211         * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
212         Change selected_frame to SELECTED_FRAME ().
213         (w32_console_mouse_position): Remove #ifndef MULE from around
214         `insist' parameter.
216         * makefile.nt: Remove dosfns.obj.
218         * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
220         * w32fns.c (w32_defined_color): Check for valid frame before
221         applying gamma correction. Eliminate dependency on frame elsewhere.
222         (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
223         (w32_to_x_font): Use resx and resy not height_in and width_in.
224         (x_to_w32_font): Doc fix.
225         (xlfd_strip_height): New function to strip and return font height.
226         (w32_font_match): Compare height separately from rest of xlfd
227         spec, using xlfd_strip_height.
229         * w32term.c (w32_term_init): Swap resx and height_in, resy and
230         width_in. Use w32_defined_color in place of defined_color.
232         * w32faces.c: Merge more of DOS and X specifics in preparation for
233         merge with xfaces.c.
234         (defined_color): Remove FIXME comment.
235         (tty_color_name): Provide w32-specific function.
236         (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
238         * w32console.c (turn_on_face, turn_off_face): Removed.
239         (w32_face_attributes): New function.
240         (Global_variables): Reduce scope where possible.
241         (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
242         fill attribute.
243         (hl_mode): Don't modify text attributes.
244         (write_glyphs): Don't do anything if len <= 0. Use
245         w32_face_attributes to get attributes for drawing. Write
246         terminating codes using char_attr_normal.
247         (reset_terminal_modes, set_terminal_modes): Turn off highlight.
248         (update_begin, update_end): Likewise.
249         (vga_stdcolor_name): New function.
250         (initialize_w32_display): Remove char_attr_reverse and char_attr.
251         (Fset_screen_color): Remove char_attr_reverse.
253 2000-01-29  Gerd Moellmann  <gerd@gnu.org>
255         * xfns.c (xic_set_preeditarea): Take window parameter and
256         window-relative pixel-positions.
258         * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
259         is its frame's selected window.
260         (xim_instantiate_callback): Likewise.
262         * xfns.c (x_create_im): Removed.
263         (DEFAULT_STYLE, DEFAULT_FONT): Removed.
264         (supported_xim_styles): Renamed from supported_styles.
265         (best_xim_style): Renamed from best_style.
266         (create_frame_xic): Renamed from xic_create_frame.
267         (free_frame_xic): Renamed from xic_destroy_frame.
268         
269 2000-01-29  INOUE Seiichiro <inoue@ainet.or.jp>
271         * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
272         our frames, call XFilterEvent with 2nd parameter `None'.
273         (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
274         returning XBufferOverflow.
275         (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
276         area.
277         (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
278         (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
279         (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
280         (xim_initialize, xim_close)
281         [HAVE_X_I18N && HAVE_X11R6]: New functions.
282         (x_destroy_window) [HAVE_X_I18N]:  Call xic_destroy_frame.
283         (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
284         (x_delete_display) [HAVE_X_I18N]: Call xim_close.
286         * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
287         and `xim_styles'.
288         (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
289         `xic_style' and `xic_xfs'.
290         (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
291         (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
292         (FRAME_XIM): Removed.
294         * xfns.c (supported_styles): New variable.
295         (DEFAULT_STYLE, DEFAULT_FONT): New macros
296         (xic_create_xfontset, best_style, xic_create_frame)
297         (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
298         (xic_set_xfontset): New functions.
300 2000-01-28  Dave Love  <fx@gnu.org>
302         * s/irix6-5.h: Revert last change after change to irix5-0.h.
304         * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
306 2000-01-28  Gerd Moellmann  <gerd@gnu.org>
308         * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
309         for *scratch* if it already existed.
311         * emacs.c (USAGE): New macro.
312         (main): Use it to display usage information.
314 2000-01-27  Eli Zaretskii  <eliz@is.elta.co.il>
316         Support for the menu-help feature:
318         * msdos.h: Change prototypes of XMenuAddSelection and
319         XMenuActivate.
321         * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
322         part of the line to the termscript file.
323         (IT_clear_to_end): Clear the entire line, not just its beginning.
324         (menu_help_message, prev_menu_help_message): New variables.
325         (IT_menu_make_room): Make room for the help_text member.
326         (IT_menu_display): New argument disp_help; all callers changed.
327         If disp_help is non-zero, store the help text of the active menu
328         item in menu_help_message.
329         (XMenuAddPane): Initialize the help_text member to NULL.
330         (XMenuAddSelection): New argument help_text.  Store it in the
331         XMenu structure.
332         (XMenuActivate): New argument help_callback.  If the value of
333         menu_help_message has changed since the last time, display the
334         menu help message text while waiting for the mouse to move.  Clear
335         the echo area before exiting.
336         (XMenuDestroy): Free the help_text member.
338 2000-01-27  Gerd Moellmann  <gerd@gnu.org>
340         * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
341         XMenuAddSelection.  Pass help callback to XMenuActivate.
342         (menu_help_callback) [!USE_X_TOOLKIT]: New function.
344 2000-01-27  Eli Zaretskii  <eliz@is.elta.co.il>
346         * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
347         and EMACS_SET_USECS.
349 2000-01-26  Dave Love  <fx@gnu.org>
351         * editfns.c (Fchar_after, Fchar_before): Doc fix.
353         * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
354         an error may be signalled.
356 2000-01-26  Gerd Moellmann  <gerd@gnu.org>
358         * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
359         LD_SWITCH_SYSTEM inherited from irix5-0.h.
361         * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
363 2000-01-25  Gerd Moellmann  <gerd@gnu.org>
365         * charset.c (Fstring): If there is a multibyte char among
366         the args, always return a multibyte string.
368 2000-01-25  Gerd Moellmann  <gerd@gnu.org>
370         * sysdep.c (sys_select): Turn atimers off and on instead of
371         recording and restoring old alarm handler
373         * process.c (toplevel): Include atimer.h.
374         (create_process_1): Rewritten.
375         (create_process): Use atimers instead of alarm.
376         (wait_reading_process_input) [hpux]: Turn atimers off instead
377         of turning off SIGALRM.
378         (wait_reading_process_input): Turn off atimers instead off
379         calling stop_polling.
381         * emacs.c (main): Call init_atimer.
383         * keyboard.c (toplevel): Include systime.h and atimer.h.
384         (polling_for_input): Removed because unused.
385         (input_poll_signal) [POLL_FOR_INPUT]: Removed.
386         (poll_timer): New variable.
387         (poll_for_input, poll_for_input_1): New functions.
388         (start_polling, stop_polling): Rewritten.
390         * keyboard.h (polling_for_input): Removed.
391         
392         * atimer.h, atimer.c: New files.
394         * Makefile.in (obj): Add atimer.o.
395         (atimer.o): New target.
397         * blockinput.h (pending_atimers): Add extern declaration.
398         (UNBLOCK_INPUT): Rewritten.  Handle pending atimers.
400         * lisp.h (popup_activated_flag): Add extern declaration.
402         * xmenu.c (popup_activated_flag): Make externally visible.
403         (popup_activate_callback) [USE_MOTIF]: Increment
404         popup_activated_flag.
405         (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
407         * xterm.c (toplevel): Include atimer.h.
408         (toolkit_scroll_bar_interaction): New variable.
409         (Fxt_process_timeouts): Removed.
410         (x_process_timeouts): New function.
411         (xt_action_hook): Clear toolkit_scroll_bar_interaction.
412         (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
413         (x_make_frame_visible): Call poll_for_input_1 instead of
414         input_poll_signal.  Don't call alarm.
415         (x_initialize): Install timer calling x_process_timeouts.
416         
417 2000-01-24  Dave Love  <fx@gnu.org>
419         * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
420         Don't use -cckr -- apparently not now necessary.
422 2000-01-24  Eli Zaretskii  <eliz@is.elta.co.il>
424         * msdos.c (IT_menu_display): Truncate long menu lines at the right
425         screen boundary.
427 2000-01-23  Jason Rumney  <jasonr@gnu.org>
429         * w32fns.c (w32_defined_color): Apply gamma correction before
430         trying to map to the palette.
431         (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
432         to w32_clear_rect.
434         * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
435         here. Callers changed to always pass real device context.
436         (w32_draw_bitmap): Likewise.
437         (w32_get_glyph_overhangs): Likewise.
438         (w32_draw_box_rect): Make use of s->hdc rather than getting a new
439         one.
440         (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
441         pfnSetScrollInfo and SetScrollRange.
442         (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
443         back into MULE characters after decoding them.
444         (x_get_glyph_face_and_encoding): Likewise.
445         (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
446         GetCharABCWidthsW fails, since this is defined on Windows 9x.
447         (x_produce_glyphs): Calculate per char metrics for a character
448         that we know exists in default font when font_not_found_p is true.
450 2000-01-22  Jason Rumney <jasonr@gnu.org>
452         * makefile.nt (intervals.obj, composite.obj): New modules.
453         (composite.h): Added as dependency where appropriate.
455         * w32gui.h (XGCValue): New struct for emulating X GCs.
457         * w32term.h (XCharStruct): New struct for emulating X.
459         * w32console.c (turn_on_face, turn_off_face): New functions.
460         (change_line_highlight): New prototype for new redisplay.
461         (write_glyphs): Support multibyte text. Support faces.
463         * w32faces.c: Complete rewrite for new redisplay based on new
464         xfaces.c.
466         * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
467         throughout. struct frame * in place of FRAME_PTR.
468         Skeleton support for images, toolbars, tooltips from xfns.c.
469         (Fx_create_frame): Use system default for default scroll bar
470         width.
471         (w32_get_arg): Renamed from x_get_arg.
472         (Fx_file_dialog): New function.
473         (w32_list_fonts): Check cache before asking system.
474         (Vw32_enable_synthesized_fonts): New variable.
475         (Vw32_enable_italics): Obsolete, removed.
477         * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
478         Use SELECTED_FRAME macro.
480         * w32menu.c: Add skeleton support for help strings on menus.
481         (add_menu_item): Native checkbox and radio support added, but not
482         yet enabled due to bugs.
483         (push_menu_item): Add parameters type, selection and help.
484         Callers updated.
485         Formatting changes to reduce unnecessary diffs with xmenu.c.
487         * w32select.c (Fw32_set_clipboard_data): Update call to
488         find_charset_in_str.
490         * w32term.c: Complete rewrite for new redisplay based on new
491         xterm.c with necessary sections merged back in from old w32term.c.
493 2000-01-21  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
495         * data.c (set_internal): Further fix in same criterion.
497 2000-01-20  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
499         * data.c (set_internal): Fix the criteria for whether
500         to swap out the old cached binding.
502 2000-01-19  Dave Love  <fx@gnu.org>
504         * lread.c: (syms_of_lread) [user-init-file]: Doc change.
506 2000-01-18  Kenichi Handa  <handa@etl.go.jp>
508         * regex.c (re_compile_fastmap): While checking a range table for
509         `charset', skip flag bits for a character class correctly.
511 2000-01-17  Gerd Moellmann  <gerd@gnu.org>
513         * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
515         * xfns.c (x_window): Call lw_create_widget with new parameter
516         list.
518         * widget.c (EmacsFrameSetCharSize): Change size of children first
519         because of problems with main window geometry management under
520         Lesstif.
522         * xmenu.c (enum menu_item_idx): New enumeration replacing defines
523         MENU_ITEMS_ITEM_.*.
524         (MENU_ITEMS_ITEM_HELP): New enumerator.
525         (push_menu_item): Add parameter HELP.  Record help in menu_items.
526         (single_menu_item, single_submenu, list_of_items): Call
527         push_menu_item with new parameter.
528         (single_submenu): Set help string in widget value.
529         (menu_highlight_callback): New function.
530         (set_frame_menubar): Call lw_create_widget with new
531         parameter list.
532         (xmenu_show, xdialog_show): Ditto.
534 2000-01-13  Gerd Moellmann  <gerd@gnu.org>
536         * sound.c (Fplay_sound): Improve doc string.
538 2000-01-11  Richard M. Stallman  <rms@gnu.org>
540         * lisp.h (set_internal): Enter the new arg.
542         * eval.c (specbind): Record buffer-local variables specially,
543         indicating which buffer's binding was saved.
544         (unbind_to): Restore buffer-local variables specially
545         in the proper buffer.
547         * data.c (set_internal): New arg BUF.
548         
549         * eval.c (specbind, unbind_to): Pass new arg to set_internal.
550         * data.c (Fset): Pass new arg to set_internal.
551         * bytecode.c (Fbyte_code): Pass new arg to set_internal.
552         
553 2000-01-11  Gerd Moellmann  <gerd@gnu.org>
555         * .gdbinit: Adapt to new strings.  Add xbacktrace, xreload,
556         xprintsym.
558 2000-01-11  Richard M. Stallman  <rms@gnu.org>
560         * minibuf.c (Ftry_completion): Doc fix.
562 2000-01-11  Gerd Moellmann  <gerd@gnu.org>
564         * keyboard.c (Fclear_this_command_keys): Clear recent_keys
565         vector, too.
567 2000-01-11  Andreas Schwab  <schwab@suse.de>
569         * coding.c (code_convert_region): Initialize total_skip.
571 2000-01-08  Dave Love  <fx@gnu.org>
573         * eval.c (Fuser_variable_p): Check customizability too.
575 2000-01-07  Gerd Moellmann  <gerd@gnu.org>
577         * minibuf.c (Fcompleting_read): Doc fix.
579 2000-01-05  Gerd Moellmann  <gerd@gnu.org>
581         * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
582         -L /usr/local/lib.
584         * xfns.c (x_create_im): New function to set IM and IC of a frame.
585         Check that input style is supported before trying to create an
586         IC for it.
587         (x_window): Call x_create_im.
588         
589 2000-01-04  Gerd Moellmann  <gerd@gnu.org>
591         * xfns.c (current_gif_memory_src): New variable.
592         (gif_load): Record the address of the current memory source
593         in current_gif_memory_src.
594         (gif_read_from_memory): Use current_gif_memory_src.
596         * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
597         macros statement form.
599         * sound.c (struct sound): Renamed from struct sound_file.
600         (struct sound): Add members `data' and `header_size'.
601         (enum sound_attr): Add SOUND_DATA.
602         (current_sound, current_sound_device): Variables renamed from
603         sound_file and sound_device.
604         (parse_sound): Parse :data.
605         (parse_sound): Handle sound data in strings.
606         (find_sound_type): Function renamed from find_sound_file_type.
607         (wav_init, au_init): Fail if sound's header_size is smaller than 
608         needed header size.
609         (wav_play, au_play): Play sounds from string data.
611         * puresize.h (BASE_PURE_SIZE): Increase to 600000.
613         * lisp.h: Add prototype for allocate_string_data.
615         * alloc.c (Fgarbage_collect): Return number of live and free
616         strings.
618         * alloc.c (mark_buffer): Remove code in #if 0.
619         (gc_sweep): Ditto.
620         (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
621         (strings_consed): New variable.
622         (allocate_string): Set it.
623         (syms_of_alloc): Add DEFVAR_INT for strings_consed.
624         (Fmemory_use_counts): Return strings_consed.  Use Flist.
626         * alloc.c: General cleanup in comments etc.  Remove conditional
627         compilation for `standalone'.
629         * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
631         * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
632         (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
633         (DONT_COPY_FLAG): Removed.
634         (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
635         (struct sdata, struct sblock): New
636         (struct string_block): Rewritten.
637         (STRINGS_IN_STRING_BLOCK): New macro.
638         (oldest_sblock, current_sblock, total_strings, total_free_strings)
639         (large_sblocks, string_blocks, string_free_list): New variables.
640         (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
641         (init_strings): Rewritten.
642         (allocate_string, allocate_string_data, compact_small_strings)
643         (free_large_strings, sweep_strings): New functions.
644         (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
645         (struct string_block_head, current_string_block)
646         (first_string_block, large_string_blocks, STRING_FULLSIZE)
647         (STRING_PAD): Removed.
648         (make_uninit_multibyte_string, make_pure_string): Rewritten.
649         (Fgarbage_collect): Don't set mark bit in large strings.
650         (mark_object): Mark strings differently.  Mark symbol names
651         differently.
652         (survives_gc_p): Test marked strings differently.
653         (gc_sweep): Sweep strings differently, unmark strings in 
654         symbol names.
655         (compact_strings): Removed.
657 2000-01-04  Eli Zaretskii  <eliz@is.elta.co.il>
659         * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
660         Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
662 2000-01-04  Kenichi Handa  <handa@etl.go.jp>
664         * fileio.c (Finsert_file_contents): Signal error if visiting file
665         in a non-empty buffer. 
667         * term.c (encode_terminal_code): Fix the previous change.
669 2000-01-03  Gerd Moellmann  <gerd@gnu.org>
671         * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
672         Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
674         * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
676 2000-01-03  Eli Zaretskii  <eliz@is.elta.co.il>
678         * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
679         need to test for MSDOS frames.
681 2000-01-03  Eli Zaretskii  <eliz@is.elta.co.il>
683         * dosfns.c (unspecified_colors): Remove.
684         (msdos_stdcolor_idx): Use global variables unspecified_fg and
685         unspecified_bg.
686         (msdos_stdcolor_name): Return strings for unspecified fore- and
687         back-ground colors.
689         * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
690         (syms_of_xfaces): Remove their staticpro's.
691         (tty_color_name): Return Lisp strings for unspecified fore- and
692         back-ground colors.
693         (Finternal_set_lisp_face_attribute): Remove the special treatment
694         for Qunspecified_{f,b}g.
695         (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
696         string.
698 2000-01-03  Gerd Moellmann  <gerd@gnu.org>
700         * xdisp.c (reseat_at_next_visible_line_start): Position before
701         newline only if ending up on a newline.
702         (next_element_from_ellipsis): Return success.  Handle case of
703         displaying no ellipsis.  Fix case of ellipsis defined in display
704         table.
705         (next_element_from_buffer): Return 0 if next_element_from_ellipsis
706         returns 0.
708 2000-01-03  Eli Zaretskii  <eliz@is.elta.co.il>
710         * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
711         (Fcolor_supported_p): Renamed from face-color-supported-p.
713 2000-01-02  Eli Zaretskii  <eliz@is.elta.co.il>
715         * xfaces.c (tty_defined_color): Pass frame to tty-color-desc.  The
716         list of colors renamed to tty-defined-color-alist.
717         (tty_color_name): Pass the frame to tty-color-by-index.
718         (realize_tty_face): tty-color-alist is now a function which
719         accepts the frame as argument.
721         * term.c (Ftty_display_color_p): Accept an optional argument
722         FRAME.
724 2000-01-02  Eli Zaretskii  <eliz@is.elta.co.il>
726         * term.c (insert_glyphs): Pass glyph, not &glyph, to
727         encode_terminal_code.
729 2000-01-02  Eli Zaretskii  <eliz@is.elta.co.il>
731         * dispnew.c (mode_line_string): Support termcap frames as well.
733 2000-01-01  Gerd Moellmann  <gerd@gnu.org>
735         * syntax.c (Fforward_word): Undo previous change.
737         * editfns.c (Fconstrain_to_field): Don't constrain if
738         inhibit-field-text-motion is non-nil.
739         (Fline_beginning_position): Undo previous change.
740         (Fline_end_position): Ditto.
742         * syntax.c (Fforward_word): Notice field boundaries only if
743         inhibit-field-text-motion is nil.
745         * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
747         * editfns.c (Vinhibit_field_text_motion): New variable.
748         (inhibit-field-text-motion): New DEFVAR_LISP.
749         (Fline_beginning_position, Fline_end_position): Notice field
750         boundaries only if inhibit-field-text-motion is nil.
752         * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
753         All calls adjusted.
754         (x_build_heuristic_mask): Likewise.
755         (xbm_load_image_from_file): Change error output.
756         (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
757         (gif_load, gs_load, x_kill_gs_process): Ditto.
759         * xfns.c (gif_load): Avoid sign extension and thus out of bounds
760         color indices when accessing raster pixels.
761         (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
762         one of :file or :data.
763         (enum pbm_keyword_index): Add PBM_DATA.
764         (pbm_format): Add :data.
765         (pbm_image_p): Allow either :file or :data.
766         (pbm_read_file): New function.
767         (pbm_scan_number): Rewritten to read from string.
768         (pbm_load): Support :data.
770 1999-12-31  Gerd Moellmann  <gerd@gnu.org>
772         * xfns.c: New image functions adapted to Emacs conventions.
773         (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
774         variable `file'.
776 1999-12-31  William M. Perry  <wmperry@aventail.com>
778         * xfns.c (jpeg_format): Added the :data keyword
779         (jpeg_image_p): JPEG is valid with :file _or_ :data
780         (jpeg_memory_src): Defined new JPEG image source to read from a
781         memory buffer.
782         (jpeg_load): Pay attention to the :data keyword if specified.
783         Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
784         found.
785         (png_format): Added the :data keyword
786         (png_image_p): PNG is valid with :file _or_ :data
787         (png_read_from_memory): New PNG read function to read from a
788         memory buffer.
789         (png_load): Pay attention to the :data keyword if specified.  Uses
790         png_set_read_fn() instead of png_init_io() if specified.
791         (tiff_format): Added the :data keyword for TIFF images.
792         (tiff_image_p): TIFF is valid with :file _or_ :data
793         (tiff_read_from_memory): Defined new TIFF I/O functions to read
794         from a memory buffer.
795         (tiff_load): Pay attention to the :data keyword if specified.
796         Uses TIFFClientOpen() instead of TIFFOpen() if specified.
797         (gif_format): Added the :data keyword
798         (gif_image_p): GIF is valid with :file _or_ :data
799         (gif_read_from_memory): New GIF input function to read from a
800         memory buffer.
801         (gif_load): Pay attention to the :data keyword.  Uses DGifOpen()
802         instead of DGifOpenFileName() if specified.
804 1999-12-31  Gerd Moellmann  <gerd@gnu.org>
806         * xdisp.c (next_element_from_buffer): Change assertion at the end
807         because it doesn't hold when there's an overlay string at the end
808         from which we deliver an image.
810 1999-12-30  Eli Zaretskii  <eliz@is.elta.co.il>
812         * msdos.c (IT_update_begin): Don't dereference members of struct
813         window for deleted windows.
815 1999-12-30  Gerd Moellmann  <gerd@gnu.org>
817         * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
818         a hook, and the hook has a non-nil `no-self-insert' property, let
819         the return value of the hook specify whether an expansion took
820         place.  If it returns nil, no expansion has been performed.
822         * xterm.c (x_make_frame_visible): Wait for frame becoming visible
823         differently.
825 1999-12-30  Eli Zaretskii  <eliz@is.elta.co.il>
827         * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
829 1999-12-29  Eli Zaretskii  <eliz@is.elta.co.il>
831         * dispnew.c (mode_line_string): Support MS-DOS frames.
833 1999-12-29  Gerd Moellmann  <gerd@gnu.org>
835         * eval.c (syms_of_eval): Initialize debugger_may_continue.
837 1999-12-29  Kenichi Handa  <handa@etl.go.jp>
839         * process.c (read_process_output): Fix the args CHARPOS and LENINS
840         to signal_after_change.
842 1999-12-28  Eli Zaretskii  <eliz@is.elta.co.il>
844         * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
845         dimensions changed, invalidate the mouse highlight info.
846         (disable_mouse_highlight, help_echo, previous_help_echo): New
847         variables.
848         (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
849         (fast_find_position, IT_note_mode_line_highlight)
850         (IT_note_mouse_highlight): New functions.
851         (IT_update_begin): If the redisplay affects the window where the
852         mouse highlight is, clear the highlight.  If the frame where the
853         highlight was displayed was killed, invalidate the highlight
854         info.
855         (IT_update_end): Reset the highlight flag.  Reset the mouse
856         highlight-defer flag.
857         (IT_frame_up_to_date): New function, if mouse highlight was
858         deferred due to GC, do it now.
859         (internal_terminal_init): Initialize mouse-highlight related
860         members of the_only_x_display.  Assign IT_frame_up_to_date to
861         frame_up_to_date_hook.
862         (dos_rawgetc): If the mouse moved, update mouse highlight.  If
863         help_echo changed value, generate a HELP_EVENT event.
864         (syms_of_msdos): Staticpro help_echo and previous_help_echo.
866         * msdos.h (struct display_info): New.
867         (struct x_output): Add the display_info member.
868         (FRAME_X_DISPLAY_INFO): New macro.
870 1999-12-28  Gerd Moellmann  <gerd@gnu.org>
872         * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
873         if MODIFF > 1.
874         (dump_glyph_row): Adapt to changes in struct glyph.
876         * buffer.c (modify_overlay): Always compute unchanged info.
878 1999-12-27  Kenichi Handa  <handa@etl.go.jp>
880         * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
882 1999-12-27  Kenichi Handa  <handa@etl.go.jp>
884         The following changes are to use more bits for face IDs.
886         * lisp.h (GLYPH): Defined as `int', not `unsigned int'.  Now the
887         lowest 8 bits are single byte character code, the bits above are
888         face ID.
889         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
890         above.
891         (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
892         (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
894         * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
895         of GLYPH_MASK_CHAR.
897         * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
898         of GLYPH_MASK_CHAR.
900         * dispextern.h (struct glyph): Make face_id and padding_p the top
901         level members.  Change members in union `u'.
902         (GLYPH_EQUAL_P): Check also members face_id and padding_p.
903         (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
904         (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
905         (CHAR_GLYPH_PADDING_P): Likewise.
906         (GLYPH_FROM_CHAR_GLYPH): Likewise.  Always return -1 for multibyte
907         characters.
909         * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
910         for the change of struct glyph.
911         (line_draw_cost): Adjusted for the change of
912         GLYPH_FROM_CHAR_GLYPH.
913         (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
915         * term.c (encode_terminal_code): Adjusted for the change of struct
916         glyph and GLYPH_FROM_CHAR_GLYPH.
917         (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
918         change of struct glyph.
920         * xdisp.c: All codes adjusted for the change of struct glyph.
922         * xterm.c: All codes adjusted for the change of struct glyph.
924 1999-12-27  Kenichi Handa  <handa@etl.go.jp>
926         * composite.h (struct composition): Change the order of declaring
927         members to reduce the byte size of the structure.
929 1999-12-25  Gerd Moellmann  <gerd@gnu.org>
931         * search.c (looking_at_1): Reset immediate_quit before modifying
932         global data.
934 1999-12-24  Kenichi Handa  <handa@etl.go.jp>
936         * process.c (read_process_output): Fix the arg FROM to
937         update_compositions.
939 1999-12-22  Richard M. Stallman  <rms@gnu.org>
941         * search.c (Freplace_match): For nonliteral replacement in buffer,
942         construct all the new text first, then insert all at once.
944 1999-12-22  Dave Love  <fx@gnu.org>
946         * xfns.c (Fx_show_tip): Gcpro `timeout' too.
948 1999-12-22  Gerd Moellmann  <gerd@gnu.org>
950         * xfns.c (Fx_create_frame): Move x_default_parameter calls that
951         lead to size changes to after the X window has been created.
953         * xfaces.c (realize_x_face): Don't use uninitialized local
954         variable in xassert.
956 1999-12-22  Kenichi Handa  <handa@etl.go.jp>
958         * xfaces.c (face_color_supported_p): Check by tty_defined_color
959         only when the frame is not for a window system.
961 1999-12-22  Gerd Moellmann  <gerd@gnu.org>
963         * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
964         redisplay after changing the multibyteness of a buffer.
966         * xterm.c (XTread_socket): At the beginning of the loop, pass the
967         frame's X window to XFilterEvent instead of None because that's
968         the X window for which the IC was created.  This makes dead
969         accents work when the pointer is not in Emacs' frame.
970         (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
972 1999-12-20  Dave Love  <fx@gnu.org>
974         * xfns.c (Fx_show_tip): Add missing UNGCPRO.
976 1999-12-19  Gerd Moellmann  <gerd@gnu.org>
978         * eval.c (debugger_may_continue): New variable.
979         (syms_of_eval): Add a DEFVAR_BOOL for it.
980         (call_debugger): Bind it.
982 1999-12-19  Eli Zaretskii  <eliz@is.elta.co.il>
984         * msdos.c (IT_set_face): Don't swap face colors when highlight or
985         fp->tty_reverse_p is set, unless the computed colors are identical
986         to frame colors.  Print both original and computed colors to
987         termscript file.
988         (IT_write_glyphs): Track the changes in handling of composite
989         characters.
990         (IT_set_frame_parameters): Don't set frame colors from
991         unspecified-fg and unspecified-bg pseudo-colors.
993 1999-12-17  Dave Love  <fx@gnu.org>
995         * data.c (Fkeywordp): New function.
996         (syms_of_data): Install it.
998 1999-12-16  Eli Zaretskii  <eliz@is.elta.co.il>
1000         * xfaces.c (tty_defined_color): Fix last change.
1002 1999-12-15  Gerd Moellmann  <gerd@gnu.org>
1004         * xdisp.c (redisplay_window) <optional new window start>: Check
1005         that window start is in [BEGV..ZV].
1007 1999-12-15  Eli Zaretskii  <eliz@is.elta.co.il>
1009         * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
1010         (FACE_TTY_DEFAULT_BG_COLOR):  New macros.
1012         * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
1013         (syms_of_xfaces): Initialize and staticpro them.
1014         (tty_defined_color): If the color name is unspecified-fg or
1015         unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
1016         FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
1017         (tty_color_name): If the color pixel value is either
1018         FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
1019         Qunspecified_fg or Qunspecified_bg, respectively.
1020         (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
1021         and Qunspecified_bg for foreground and background colors.
1022         (realize_default_face): If the foreground and background colors
1023         are not specified, default to Qunspecified_fg and Qunspecified_bg.
1024         (realize_tty_face): By default, set the face colors to
1025         FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
1026         [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
1027         FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
1028         Reverse the colors if the default colors were reversed.
1030         * dispnew.c (init_display): Initialize the frame pixels of the
1031         initial frame to FACE_TTY_DEFAULT_FG_COLOR and
1032         FACE_TTY_DEFAULT_BG_COLOR.
1034         * term.c (turn_on_face): If the default fore- and background
1035         colors are reversed, enter inverse video mode.  Don't send color
1036         escape sequences for unspecified foreground and background colors.
1037         (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
1039         * dosfns.c (unspecified_colors): New variable.
1040         (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
1041         color names, return FACE_TTY_DEFAULT_FG_COLOR and
1042         FACE_TTY_DEFAULT_BG_COLOR, respectively.
1043         (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
1044         FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
1045         Qunspecified_bg, respectively.
1047         * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
1048         FACE_TTY_DEFAULT_BG_COLOR as pixel values.
1050 1999-12-15  Kenichi Handa  <handa@etl.go.jp>
1052         * coding.c (code_convert_region): Fix the secoding arg to
1053         update_compositions.
1055 1999-12-15  Kenichi Handa  <handa@etl.go.jp>
1057         The following changes are for the new composition mechanism.  We
1058         have deleted `composition' charset and composite characters,
1059         instead introduced a special text property `composition'.
1061         * Makefile.in (INTERVAL_SRC): Include composite.h.
1062         (INTERVAL_OBJ): Include composite.o.
1063         (SOME_MACHINE_OBJECTS): Include composite.o.
1064         (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
1065         (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
1066         Depend on composite.h.
1067         (doc.o): Depend on charset.h.
1068         (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
1069         (composite.o): New target.
1070         
1071         * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
1073         * callproc.c (Fcall_process): Call code_convert_string to encode
1074         arguments.  Use CODING_REQUIRE_DECODING to check if the process
1075         output should be decoded.
1077         * casefiddle.c: Include composite.h.
1078         (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
1079         multibyte character.  Adjusted for the change of CHAR_STRING.
1080         (casify_region): Likewise.  Call update_compositions.
1082         * category.h (CATEGORY_SET): Delete codes for a composite
1083         character.
1085         * category.c (word_boundary_p): Delete codes for a composite
1086         character.
1087         (Fmake_category_table): New function.
1088         (syms_of_category): Defsubr it.
1090         * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
1091         (ccl_driver): Delete codes for a composite character.
1093         * charset.h: In this entry, just `Modified' means that codes for a
1094         composite character is deleted.
1095         (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
1096         (charset_composition) (MIN_CHAR_COMPOSITION)
1097         (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
1098         (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
1099         (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
1100         (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
1101         (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
1102         (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
1103         Modified.
1104         (SPLIT_STRING): Call split_string, not split_non_ascii_string.
1105         (CHAR_STRING): Delete WORKBUF argument.  Call char_string, not
1106         non_ascii_char_to_string.
1107         (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
1108         (STRING_CHAR_AND_LENGTH): Likewise.
1109         (FETCH_CHAR_ADVANCE): New macro.
1110         (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
1111         (MAX_MULTIBYTE_LENGTH): New macro.
1112         (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
1113         (find_charset_in_str): Argument adjusted.
1114         (CHAR_LEN): Modified.
1115         
1116         * charset.c: In this entry, just `Modified' means that codes for a
1117         composite character is deleted.
1118         (Qcomposition) (leading_code_composition)
1119         (charset_composition) (min_composite_char) (cmpchar_table)
1120         (cmpchar_table_size) (n_cmpchars): Deleted.
1121         (SPLIT_COMPOSITE_SEQ): Deleted.
1122         (SPLIT_MULTIBYTE_SEQ): Modified.
1123         (char_to_string): Renamed from non_ascii_char_to_string.
1124         Modified.
1125         (string_to_char): Renamed from string_to_non_ascii_char.
1126         (split_string): Renamed from split_non_ascii_string.
1127         (char_printable_p) (Fsplit_char)
1128         (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
1129         (char_bytes) (Fchar_width) (strwidth): Modified.
1130         (find_charset_in_str): Argument CMPCHARP deleted.  Modified.
1131         (Fstring): Adjusted for the change of CHAR_STRING.  Modified.
1132         (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
1133         (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
1134         (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
1135         (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
1136         (Fcmpchar_cmp_count): Deleted.
1137         (Fcompose_string): Implemented by Emacs Lisp in composite.el.
1138         (init_charset_once): Modified.
1139         (syms_of_charset): Modified.
1141         * cmds.c (internal_self_insert): Adjusted for the change of
1142         CHAR_STRING.
1144         * coding.h (emacs_code_class_type): Delete the member
1145         EMACS_leading_code_composition.
1146         (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
1147         (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
1148         (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
1149         (COMPOSING_WITH_RULE_P): Macros deleted.
1150         (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
1151         macros.
1152         (struct composition_data): New structure.
1153         (CODING_FINISH_INSUFFICIENT_CMP): New macro.
1154         (struct coding_system): New members composition_rule_follows,
1155         cmp_data, cmp_data_start, cmp_data_index.
1156         (coding_save_composition) (coding_free_composition_data)
1157         (coding_adjust_composition_offset): Extern them.
1159         * coding.c: Include composite.h.
1160         (DECODE_CHARACTER_ASCII): Don't handle composition here.
1161         (DECODE_CHARACTER_DIMENSION1): Likewise.  Don't check the validity
1162         of multibyte code here.
1163         (DECODE_CHARACTER_DIMENSION2): Likewise.
1164         (detect_coding_emacs_mule): Change the case label from
1165         EMACS_leading_code_composition to 0x80.
1166         (detect_coding_iso2022): Handle new composition sequence.
1167         (DECODE_ISO_CHARACTER): Likewise.
1168         (check_composing_code): Deleted.
1169         (coding_allocate_composition_data): New function.
1170         (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
1171         (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
1172         (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
1173         (decode_coding_iso2022): Handle new composition sequence.
1174         (ENCODE_ISO_CHARACTER): Don't check composition here.
1175         (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
1176         (ENCODE_COMPOSITION_NO_RULE_START)
1177         (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
1178         (ENCODE_COMPOSITION_END): Handle new composition sequence.
1179         (ENCODE_COMPOSITION_FAKE_START): New macro.
1180         (encode_coding_iso2022): Handle new composition sequence.
1181         (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
1182         (encode_coding_sjis_big5): Ignore composition.
1183         (setup_coding_system): Initialize new members of struct
1184         coding_system.  Enable composition only when the coding system has
1185         `composition' property t.
1186         (coding_free_composition_data) (coding_adjust_composition_offset)
1187         (coding_save_composition) (coding_restore_composition): New
1188         functions.
1189         (code_convert_region): Call coding_save_composition for encoding
1190         and coding_allocate_composition_data for decoding.  Don't skip
1191         ASCII characters if we handle composition on encoding.  Call
1192         signal_after_change with Check_BORDER.
1193         (code_convert_string): Call coding_save_composition for encoding
1194         and coding_allocate_composition_data for decoding.  Don't skip
1195         ASCII characters if we handle composition on encoding.
1196         (code_convert_string1): Set Vlast_coding_system_used after calling
1197         code_convert_string.
1198         (code_convert_string_norecord): Disable composition.
1199         (Fset_terminal_coding_system_internal): Likewise.
1200         (Fset_safe_terminal_coding_system_internal): Likewise.
1201         (Fset_keyboard_coding_system_internal): Likewise.
1202         (init_coding_once): Set emacs_code_class[0x80] to
1203         EMACS_invalid_code.
1205         * composite.h: New file.
1207         * composite.c: New file.
1209         * data.c (Faref): Delete codes for a composite character..
1210         (Faset): Likewise.  Adjusted for the change of CHAR_STRING.
1212         * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
1213         (struct glyph): Add new sub-structure cmp to the union `u'.
1214         (enum display_element_type): New member IT_COMPOSITION.
1215         (enum prop_idx): New member COMPOSITION_PROP_IDX.
1216         (struct it): New members cmp_id, cmp_len.
1218         * dispnew.c (direct_output_forward_char): Check point moving into
1219         or out of a composition.  If so, give up direct method.
1221         * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
1223         * editfns.c (Fchar_to_string): Adjusted for the change of
1224         CHAR_STRING.
1225         (general_insert_function): Likewise.
1226         (Finsert_char): Likewise.
1227         (Fsubst_char_in_region): Likewise.  Call update_compositions.
1228         (Ftranslate_region): Call update_compositions.
1229         (Ftranspose_regions): Call update_compositions.
1231         * emacs.c (main): Call syms_of_composite.
1233         * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
1234         CHAR_STRING.
1235         (Finsert_file_contents): Set Vlast_coding_system_used before
1236         calling signal_after_change.  Call update_compositions if some
1237         texts are inserted..
1238         (Fwrite_region): Adjusted for the change of a_write and e_write.
1239         (a_write): Argument changed.  Work based on character position,
1240         not byte position.
1241         (e_write): Argument changed.  Handle new way of composition.
1243         * fns.c (Flength): The length of char-table is MAX_CHAR.
1244         (concat): Adjusted for the change of CHAR_STRING.
1245         (Ffillarray): Adjusted for the change of CHAR_STRING.
1246         (Fset_char_table_default): Delete codes for a composite character.
1247         (hash_put): Return hash index.
1249         * fontset.h (struct font_info): New member vertical_centering.
1250         (Vvertical_centering_font_regexp): Extern it.
1252         * fontset.c (Vvertical_centering_font_regexp): New variable.
1253         (syms_of_fontset): Declare it as a Lisp variable and initialize.
1254         Set Vignore_relative_composition to nil.
1255         (fs_load_font): Initialize `vertical_centering' of struct
1256         font_info.
1258         * indent.c (check_composition): New function.
1259         (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
1260         MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
1261         (current_column_1): Handle new way of composition.
1262         (Fmove_to_column): Likewise.
1263         (compute_motion): Likewise.
1265         * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
1266         (insert_char): Likewise.
1267         (insert): Call update_compositions.
1268         (insert_and_inherit): Likewise.
1269         (insert_before_markers): Likewise.
1270         (insert_before_markers_and_inherit): Likewise.
1271         (insert_from_string): Likewise.
1272         (insert_from_string_before_markers): Likewise.
1273         (insert_from_buffer): Likewise.
1274         (replace_range): Likewise.
1275         (count_combining_composition): Deleted.
1276         (count_combining_before): Delete codes for a composite character.
1277         (count_combining_after): Likewise.
1278         (del_range_1): Call update_compositions.
1279         (del_range_byte): Likewise.
1280         (del_range_both): Likewise.
1281         (Fcombine_after_change_execute): Likewise.
1283         * intervals.h: Include composite.h.
1284         (get_property_and_range): Extern it.
1285         (Vtext_property_default_nonsticky): Extern it.
1286         
1287         * intervals.c (adjust_intervals_for_insertion): To check stickines
1288         of properties, pay attention to text-property-default-nonsticky.
1289         (merge_properties_sticky): Likewise.
1290         (get_property_and_range): New function.
1292         * keyboard.c (Vdisable_point_adjustment): New variable.
1293         (Vglobal_disable_point_adjustment): New variable.
1294         (syms_of_keyboard): Declare them as Lisp variables.
1295         (command_loop_1): Check them and call adjust_point_for_property if
1296         necessary.
1297         (adjust_point_for_property): New function.
1299         * keymap.c (push_key_description): Adjusted for the change of
1300         CHAR_STRING.
1301         (Ftext_char_description): Likewise.
1303         * lisp.h (QCtest, QCweakness, Qequal): Extern them.
1304         (hash_put): Adjusted for the change of the definition.
1305         (signal_after_change): Likewise.
1306         (check_point_in_composition): Extern it.
1308         * lread.c (readchar): Adjusted for the change of CHAR_STRING.
1309         Delete a code that handles an invalid too-long multibyte sequence
1310         because we are now sure that we never encounter with such a
1311         sequence.
1312         (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
1313         MAX_LENGTH_OF_MULTI_BYTE_FORM.
1314         (init_obarray): Likewise.
1315         (read1): Likewise.  Adjusted for the change of CHAR_STRING.
1317         * print.c (printchar): Adjusted for the change of CHAR_STRING.
1319         * process.c: Include composite.h.
1320         (read_process_output): Call update_compositions.
1322         * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
1324         * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
1326         * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
1327         character.
1329         * term.c (encode_terminal_code): Delete codes for a composite
1330         character.  Adjusted for the change of CHAR_STRING.
1331         (produce_glyphs): When called, it->what can be IT_COMPOSITION.
1332         Delete codes for a composite character.
1334         * textprop.c (Vtext_property_default_nonsticky): New variable
1335         (syms_of_textprop): Declare it as a Lisp variable.
1337         * window.c (Frecenter): Clear all caches of compositions.
1339         * xdisp.c (it_props): Add an entry for composition.
1340         (face_before_or_after_it_pos): For composition, check face of a
1341         character after the composition.
1342         (handle_composition_prop): New function.
1343         (get_next_display_element): Adjusted for the change of
1344         CHAR_STRING.
1345         (set_iterator_to_next): Handle the case that it->method ==
1346         next_element_from_composition.
1347         (next_element_from_composition): New function.
1348         (message_dolog): Adjusted for the change of CHAR_STRING.
1349         (set_message_1): Likewise.
1350         (check_point_in_composition): New function.
1351         (reconsider_clip_changes): If point moved into or out of
1352         composition, set b->clip_changed to 1 to force updating of the
1353         screen.
1354         (disp_char_vector): Delete codes for a composite character.
1355         (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
1357         * xfaces.c (choose_face_fontset_font): Delete codes for a
1358         composite character.
1359         (realize_x_face): Likewise.  Change a place to set local variable
1360         `f' to avoid a bug of GCC 2.8.1 on Solaris.
1362         * xfns.c: Include intervals.h.
1363         (syms_of_xfns): Make `display' property nonsticky by default.
1365         * xselect.c (lisp_data_to_selection_data): Adjusted for the change
1366         for find_charset_in_str.
1368         * xterm.h (struct x_output): Change member font_baseline to
1369         baseline_offset.
1371         * xterm.c (x_append_glyph): Setup members of struct glyph properly
1372         for composition.
1373         (x_append_composite_glyph): New function.
1374         (VCENTER_BASELINE_OFFSET): New macro.
1375         (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
1376         of struct it for the composition.  Cache pixel offsets in the
1377         struct composition.  Delete codes for a composite character.
1378         Handle Vignore_relative_composition in composition code.
1379         (struct glyph_string): Delete member cmpcharp, add new member cmp.
1380         (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
1381         (x_compute_glyph_string_overhangs): Likewise.
1382         (x_get_glyph_overhangs): Delete codes for a composite character.
1383         (x_right_overwritten): Check s->cmp, not s->cmpcharp.
1384         (x_draw_glyph_string_background): Likewise.  Delete codes for
1385         checking s->gidx for a composition.
1386         (x_draw_glyph_string_foreground): Delete code for a composite
1387         character.
1388         (x_draw_composite_glyph_string_foreground): New function.
1389         (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
1390         (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
1391         (struct work): Deleted.
1392         (x_fill_composite_glyph_string): Argument changed.  Mostly
1393         rewritten for that.
1394         (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
1395         (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
1396         (BUILD_COMPOSITE_GLYPH_STRING): New macro.
1397         (BUILD_GLYPH_STRINGS): For composition, call
1398         BUILD_COMPOSITE_GLYPH_STRING.
1399         (x_new_font): Initialize f->output_data.x->baseline_offset, not
1400         f->output_data.x->font_baseline.
1402 1999-12-14  Gerd Moellmann  <gerd@gnu.org>
1404         * xterm.c (show_mouse_face): Don't use updated_area, use
1405         TEXT_AREA.
1407 1999-12-12  Richard M. Stallman  <rms@gnu.org>
1409         * minibuf.c (Fall_completions): Doc fix.
1411 1999-12-12  Richard M. Stallman  <rms@gnu.org>
1413         * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
1414         has been changed by the Lisp code.
1416 1999-12-12  Gerd Moellmann  <gerd@gnu.org>
1418         * xfns.c: Indentation fixes.
1420 1999-12-10  Stefan Monnier  <monnier@cs.yale.edu>
1422         * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
1424 1999-12-10  Gerd Moellmann  <gerd@gnu.org>
1426         * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
1427         [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
1429         * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
1430         to frame.h.
1432 1999-12-09  Stefan Monnier  <monnier@cs.yale.edu>
1434         * keyboard.c (Qratio): New symbol.
1435         (scroll_bar_parts): Add `Qratio' to it.
1436         (syms_of_keyboard): Init `Qratio'.
1437         * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
1438         * xterm.c (#includes): Allow compilation with only Xaw.
1439         (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
1440         (xt_action_hook): Replace XAW3D by XAW.
1441         (xaw3d_jump_callback): Renamed to xaw_jump_callback.
1442         (xaw_jump_callback): Renamed from xaw3d_jump_callback.
1443         Determine epsilon dynamically and don't try to be too clever.
1444         (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
1445         (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
1446         Handle both Xaw3d with arrow-scrollbars and with Xaw-style
1447         scrollbar (using `ratio').
1448         (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
1449         scrollbar we have so as to set it up more optimally and to fix
1450         xaw3d_arrow_scroll and xaw3d_pick_top.
1451         (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
1452         bottom of the Xaw3d scrollbar, to work around its tendency to refuse
1453         shrinking the thumb.  Also make sure that `XawScrollbarSetThumb'
1454         is not ignored, using a major gross hack.
1455         (x_initialize): Init default values for xaw3d_arrow_scroll and
1456         xaw3d_pick_top.
1458 1999-12-09  Dave Love  <fx@gnu.org>
1460         * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
1462 1999-12-08  Gerd Moellmann  <gerd@gnu.org>
1464         * eval.c: Remove conditional compilation on `standalone'.
1465         (call_debugger): When entering the debugger while redisplaying,
1466         reset redisplaying_p, and go back to the top-level if the debugger
1467         returns.
1469 1999-12-07  Gerd Moellmann  <gerd@gnu.org>
1471         * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
1472         basic faces are realized before trying to use face `menu'.
1474         * window.c (delete_window): Block input for the time window
1475         matrices are being changed.
1477 1999-12-07  Dave Love  <fx@gnu.org>
1479         * lread.c (Fintern_soft): Fix newlines in doc string.
1481 1999-12-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
1483         * unexelf.c: Include <syms.h>, not <sym.h> on IRIX.  Removed
1484         duplicate definition of ElfW.
1485         (find_section): Copied from unexsgi.c.
1486         (unexec): Use find_section.  Adjust whitespace.  Initialize
1487         new_data2_offset based on old_data, not sbss (this fixes a bug on
1488         IRIX6).  Change #ifdef __mips to __sgi, since it's IRIX-specific.
1489         Adjust test for presence of .mdebug section to the new return
1490         value of find_section.
1491         
1492 1999-12-07  Gerd Moellmann  <gerd@gnu.org>
1494         * unexelf.c: Merge changes from 20.5.
1495         (unexec): Handle .lit4 and .lit8 unconditionally.
1497         * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
1498         unexsgi.o again.
1499         
1500         * m/iris5d.h (UNEXEC): Likewise.
1502 1999-12-06  Stefan Monnier  <monnier@cs.yale.edu>
1504         * editfns.c (Fdelete_and_extract_region): New function.
1505         (syms_of_editfns): Register it.
1506         * insdel.c (del_range): Update del_range_1 call.
1507         (del_range_1, del_range_2): Add a ret_string argument to
1508         request that the deleted text be returned.
1509         (del_range_byte, del_range_both): Update del_range_2 call.
1510         * lisp.h (del_range_1, del_range_2): Change prototype
1511         * casefiddle.c (casify_region): Update del_range_1 call.
1512         * coding.c (code_convert_region): Update del_range_2 call.
1513         * fileio.c (Finsert_file_contents): Update del_range_2 call.
1515 1999-12-06  Gerd Moellmann  <gerd@gnu.org>
1517         * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
1519 1999-12-04  Hrvoje Niksic  <hniksic@iskon.hr>
1521         * lread.c (Fintern_soft): Accept a symbol argument.
1522         
1523 1999-12-06  Eli Zaretskii  <eliz@is.elta.co.il>
1525         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
1527         * insdel.c (adjust_markers_for_delete): Fix last change.
1529 1999-12-06  Eli Zaretskii  <eliz@is.elta.co.il>
1531         Changes for automatic remapping of X colors on terminal frames:
1533         * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
1534         frames.
1535         (Vface_tty_color_alist): Remove.
1536         (tty_defined_color): New function.
1537         (defined_color): Rewrite to support any type of frame.
1538         (tty_color_name): New function.
1539         (face_color_supported_p, Fface_color_gray_p,
1540         Fface_color_supported_p): Support non-X frames.
1541         (load_color): Enclose the color name in quotes, in the log
1542         messages.  Remove DOS-specific version of load_color.
1543         (realize_tty_face): Take the supported colors from
1544         tty-color-alist.  Support translation of X colors to the closest
1545         tty color, for both MSDOS and tty frames.
1546         [MSDOS]: Don't invert face colors if they were taken from the
1547         frame colors.
1548         (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
1550         * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
1551         Define a mostly empty surrogate.
1552         (tty_display): Declare.
1554         * frame.c (make_terminal_frame) [!macintosh]: Don't use
1555         tty_display.
1556         (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
1557         frames when the frame's param_alist includes 'reverse.
1558         (tty_display): Define.
1559         (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
1560         output_data.x member.
1561         (Fframe_parameters): Return foreground and background color names
1562         on tty frames as well, in addition to MSDOS frames.
1564         * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
1565         selected_frame.
1566         (struct x_output): Remove unused members; document who uses each
1567         member.
1568         (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
1569         FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
1570         FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
1571         FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
1572         unused macro definintions.
1574         * msdos.c (IT_set_frame_parameters): Don't call
1575         recompute_basic_faces, the next redisplay will, anyway.
1576         (x_current_display): Remove unused variable.
1577         Many functions: changes for Lisp_object selected_frame.
1578         (IT_set_face): If the tty_reverse_p flag is set for the face,
1579         reverse the foreground and background colors.
1580         (Fmsdos_remember_default_colors): New function.
1581         (syms_of_msdos): Defsubr it.
1582         (IT_set_frame_parameters): Use initial_screen_colors[] when
1583         creating a new frame.  If the frame parameters include 'reverse,
1584         swap the foreground and background colors.
1585         (internal_terminal_init): Initialize initial_screen_colors to -1.
1586         (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
1587         cus-start.el.
1589         * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
1591         * xfns.c (x_defined_color): Rename from defined_color.  All
1592         callers changed.
1593         (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
1594         all callers changed.
1595         (Fxw_color_values): Renamed from Fx_color_values; all callers
1596         changed.
1597         (Fxw_display_color_p): Renamed from Fx_display_color_p; all
1598         callers changed.
1599         (x_window_to_frame, x_any_window_to_frame,
1600         x_non_menubar_window_to_frame, x_menubar_window_to_frame,
1601         x_top_window_to_frame): Use !FRAME_X_P instead of
1602         f->output_data.nothing.
1603         * xterm.h (x_defined_color): Rename from defined_color.
1605         * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
1606         f->output_data.nothing.
1607         (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
1608         all callers changed.
1609         (Fxw_color_values): Renamed from Fx_color_values; all callers
1610         changed.
1611         (Fxw_display_color_p): Renamed from Fx_display_color_p; all
1612         callers changed.
1614         * dispextern.h (tty_color_name): Add prototype.
1616         * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
1617         f->output_data.nothing.
1618         * w32menu.c (menubar_id_to_frame): Likewise.
1619         * w32term.h (w32_output): Declare.
1621         * dosfns.c (Qmsdos_color_translate): Remove.
1622         (msdos_stdcolor_name): Now returns a Lisp_Object.
1623         * dosfns.h (Qmsdos_color_translate): Remove.
1625         * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
1627 1999-12-06  Kenichi Handa  <handa@etl.go.jp>
1629         * fileio.c (decide_coding_unwind): Renamed from
1630         set_auto_coding_unwind.
1631         (Finsert_file_contents): Make single unwind protect to call both
1632         Vset_auto_coding_function and Ffind_operation_coding_system.
1634         * insdel.c (adjust_markers_for_delete): Make it non-static.
1636 1999-12-04  Stefan Monnier  <monnier@cs.yale.edu>
1638         * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
1639         operators and handle them properly.
1640         * regex.h (RE_ALL_GREEDY): New option.
1641         (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
1642         sorting would put it.
1643         (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
1644         (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
1646 1999-12-04  Dave Love  <d.love@dl.ac.uk>
1648         * m/arm.h: New file.
1650 1999-12-03  Dave Love  <fx@gnu.org>
1652         * editfns.c (Fmessage_or_box): Use use_dialog_box.
1654 1999-12-02  Gerd Moellmann  <gerd@gnu.org>
1656         * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
1657         for building with Motif.
1659         * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
1660         unexelf.o.
1661         
1662         * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
1664 1999-12-01  Dave Love  <fx@gnu.org>
1666         * emacs.c (main): Set LANG=C iff AX3_2 defined.
1668 1999-11-28  Gerd Moellmann  <gerd@gnu.org>
1670         * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
1671         (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
1672         macros.
1674         * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
1676 1999-11-28  eliz  <eliz@dlpx1>
1678         * emacs.c (synchronize_locale): Avoid compiler warnings about
1679         pointer type mismatch.
1681 1999-11-28  Gerd Moellmann  <gerd@gnu.org>
1683         * window.c (Fwindow_end): Don't call temp_set_pt_both with
1684         out of range position.
1686         * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>: 
1687         Switch off busy-cursor by setting inhibit_busy_cursor to 2.
1689 1999-11-28  Eli Zaretskii  <eliz@is.elta.co.il>
1691         * charset.c (Fmake_char_internal): Print the charset ID when
1692         signalling an error.
1694         * emacs.c (synchronize_locale): Avoid compiler warnings about
1695         pointer type mismatch.
1697 1999-11-26  Richard M. Stallman  <rms@gnu.org>
1699         * editfns.c (Fdelete_field): Make it noninteractive.  Return nil.
1701 1999-11-26  Gerd Moellmann  <gerd@gnu.org>
1703         * puresize.h (BASE_PURESIZE): Increase to 550000.
1705         * textprop.c (set_text_properties): New function.  Like
1706         Fset_text_properties, but with additional parameter
1707         SIGNAL_AFTER_CHANGE_P.  If that is nil, don't signal after
1708         changes.
1709         (Fset_text_properties): Use it.
1711         * insdel.c (insert_1_both): Call set_text_properties with last
1712         parameter nil so that no after changes will be signaled.
1714         * lisp.h: Add prototype for set_text_properties.
1716         * xfaces.c (set_lface_from_font_name): Fix previous change.
1717         (recompute_basic_faces): Change assert to abort.
1719 1999-11-25  Dave Love  <fx@gnu.org>
1721         * fns.c (Fnthcdr, Fnreverse): Inline cdr.
1722         (Fmember, Fdelq, Fdelete): Inline car.
1723         (Fy_or_n_p): Doc fix.
1725 1999-11-25  Gerd Moellmann  <gerd@gnu.org>
1727         * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
1728         Callers changed.  If specified font name is bogus, and may_fail_p
1729         is not set, try to use a reasonable default.
1731         * dispnew.c (direct_output_for_insert): Set glyph row's
1732         displays_text_p flag.  Correct window's window_end_vpos if
1733         necessary.
1735 1999-11-25  Paul Eggert  <eggert@twinsun.com>
1737         * emacs.c (fixup_locale): Don't bother to record initial locale.
1738         (synchronize_locale): If the desired locale is nil,
1739         treat it as if it were the empty string,
1740         so that we set the locale from the environment.
1742 1999-11-25  Kenichi Handa  <handa@etl.go.jp>
1744         * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
1745         of the current buffer via Fset.
1747 1999-11-24  Dave Love  <fx@gnu.org>
1749         * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
1751         * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
1753         * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
1755 1999-11-24  Gerd Moellmann  <gerd@gnu.org>
1757         * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
1759         * emacs.c (PVEC_FLAG): New variable.
1761 1999-11-23  Gerd Moellmann  <gerd@gnu.org>
1763         * unexaix.c (unexec): Use unsigned instead of uintptr_t because
1764         that fails on IBM PowerPC, AIX 4.2.
1765         
1766 1999-11-22  Eli Zaretskii  <eliz@is.elta.co.il>
1768         * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
1769         string of mode-line-format.  Remove the obsolete %t.
1771 1999-11-22  Gerd Moellmann  <gerd@gnu.org>
1773         * dispnew.c (direct_output_for_insert): Increment glyph positions
1774         for glyphs from buffer text only.
1776         * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
1777         (gdb_data_seg_bits): New variables.
1778         
1779         * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
1780         work on systems not allowing enumerators > INT_MAX, and it
1781         won't work if EMACS_INT is long long.
1783 1999-11-22  Paul Eggert  <eggert@twinsun.com>
1785         Port to SunOS 4.1.x again.  Help out with Alpha port.
1786         Rename messages-locale to system-messages-locale,
1787         and likewise for time-locale.
1788         
1789         * callproc.c (strerror): Remove decl.
1790         * fileio.c (strerror): Likewise.
1791         * process.c (strerror): Likewise.
1792         * emacs.c (strerror): Likewise.
1793         (Vsystem_messages_locale): Renamed from Vmessages_locale.
1794         All uses changed.
1795         (Vprevious_system_messages_locale): Likewise, from
1796         Vprevious_messages_locale.
1797         (Vsystem_time_locale): Likewise, from Vtime_locale.
1798         (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
1799         (ABORT_RETURN_TYPE): New macro.
1800         (abort): Return type is now ABORT_RETURN_TYPE.
1801         (main): Always invoke init_signals, even if POSIX_SIGNALS is not
1802         defined.
1803         (syms_of_emacs): messages-locale -> system-messages-locale,
1804         previous-messages-locale -> previous-system-messages-locale,
1805         time-locale -> system-time-locale,
1806         previous-time-locale -> previous-system-time-locale.
1808         * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
1809         (const): Do not define; that's config.h's job.
1810         (<limits.h>): Include if HAVE_LIMITS_H is defined.
1811         (CHAR_BIT): Move test for definedness outside of limits.h condition.
1812         (<stddef.h>): Include if STDC_HEADERS is defined.
1813         (FREE_RETURN_TYPE): New macro.
1814         (free): Return type is now FREE_RETURN_TYPE.
1816         * lisp.h (synchronize_system_time_locale): Renamed from
1817         synchronize_time_locale.  All uses changed.
1818         (synchronize_system_messages_locale): Likewise, from
1819         synchronize_messages_locale.
1821         * m/alpha.h (malloc, realloc, calloc): Remove decls;
1822         stdlib.h now does this.
1824         * process.c (sys_siglist): Remove.
1826         * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
1827         New macros.
1829         * syntax.c (scan_sexps_forward): Use abort, not assert.
1831         * sysdep.c (my_sys_siglist): New var.
1832         (sys_siglist): New macro.  Remove old initialized vars of same name.
1833         (init_signals): Initialize sys_siglist.
1835         * xfns.c (abort): Remove decl; stdlib.h now does this.
1837 1999-11-18  Dave Love  <fx@gnu.org>
1839         * filelock.c: Add forward declaration for get_boot_time_1.
1841         * dispnew.c (Finternal_show_cursor_p): Fix doc string.
1843 1999-11-18  Gerd Moellmann  <gerd@gnu.org>
1845         * buffer.h (struct buffer_text): Add comment about moving
1846         buffer text if REL_ALLOC is defined.
1848 1999-11-18  Kenichi Handa  <handa@etl.go.jp>
1850         * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
1852         * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
1853         memory for push_key_description.
1855         * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
1856         allocate memory for push_key_description.
1857         (describe_buffer_bindings): Likewise.
1859 1999-11-17  Gerd Moellmann  <gerd@gnu.org>
1861         * xfns.c (Fx_show_busy_cursor): Doc-fix.
1862         (Fx_hide_busy_cursor): Ditto.
1864 1999-11-17  Marco Walther <walther@siemens-pyramid.com>
1866         * unexsni.c (unexec): Handle .rel.dyn section.
1868 1999-11-16  Dave Love  <fx@gnu.org>
1870         * doc.c (Fdocumentation): Remove gcpro here too.
1872 1999-11-16  Gerd Moellmann  <gerd@gnu.org>
1874         * keyboard.c (command_loop_1): Remove no_redisplay.
1876 1999-11-16  Richard M. Stallman  <rms@gnu.org>
1878         * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
1879         in noninteractive.
1881 1999-11-14  Gerd Moellmann  <gerd@gnu.org>
1883         * xdisp.c (ensure_echo_area_buffers): New.
1884         (with_echo_area_buffer): Use it.
1885         (setup_echo_area_for_printing): Ditto.
1887         * buffer.c (indicate-empty-lines): Doc-fix.
1889 1999-11-12  Gerd Moellmann  <gerd@gnu.org>
1891         * term.c (term_init): If "op" isn't available, don't support color
1892         because we can't switch back to the default foreground and
1893         background.
1895         * doc.c (Fdocumentation_property): Remove GCPRO because
1896         Fsubstitute_command_keys gcpro's the string.
1898 1999-11-12  Kenichi Handa  <handa@etl.go.jp>
1900         * editfns.c (Ftranslate_region): Check the buffer multibyteness.
1902 1999-11-11  Gerd Moellmann  <gerd@gnu.org>
1904         * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
1905         lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
1906         buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
1908 1999-11-10  Gerd Moellmann  <gerd@gnu.org>
1910         * xfns.c (QCuser_data): Removed.
1911         (syms_of_xfns): Initialization of QCuser_data removed.
1912         (parse_image_spec): Don't handle :user-data specially.  Allow
1913         unknown keys.  Remove parameter ALLOW_OTHER_KEYS.
1914         (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
1915         (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
1916         parse_image_spec accordingly.
1918 1999-11-09  Richard M. Stallman  <rms@gnu.org>
1920         * cmds.c (Fbeginning_of_line): Doc fix.
1921         (Fend_of_line): Doc fix.
1923         * editfns.c (Fline_beginning_position): If N is not 1,
1924         pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
1926         * syntax.c (Fforward_word): Handle fields even if would have hit
1927         an edge of the buffer.  Return nil if affected by fields.
1929 1999-11-09  Richard M. Stallman  <rms@gnu.org>
1931         * editfns.c (preceding_pos): Function deleted.
1932         (text_property_stickiness): Decrement POS directly.
1933         Fix a confusion that used PT instead of POS.
1935         * editfns.c (find_field): Properly handle the case
1936         of a field boundary where `field' inherits from neither side.
1938         * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
1939         (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
1941 1999-11-08  Gerd Moellmann  <gerd@gnu.org>
1943         * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
1944         BEFORE_POTENTIAL_GC before DISCARD.
1946 1999-11-07  Gerd Moellmann  <gerd@gnu.org>
1948         * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
1950         * lisp.h: Add prototype for unmark_byte_stack.
1952         * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
1953         (unmark_byte_stack): Renamed from relocate_byte_pcs.  Use
1954         XUNMARK.
1956         * xdisp.c (resize_mini_window): Fix computation of needed
1957         mini-window height.
1959         * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
1960         compilation on USE_TEXT_PROPERTIES.
1962         * Fbyte_code: Use block statements in cases and declare v1 and v2
1963         locally there.  Rearrange case statements so that those most
1964         frequently executed come first.  Avoid goto's in frequently
1965         executed cases.
1967 1999-11-05  Gerd Moellmann  <gerd@gnu.org>
1969         * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
1970         AFTER_POTENTIAL_GC around internal_catch.
1972         * alloc.c (Fgarbage_collect): Call mark_byte_stack and
1973         relocate_byte_pcs.
1974         (init_alloc_once, init_alloc): Set byte_stack_list to null.
1976         * eval.c (struct catchtag): Add member byte_stack.
1977         (internal_catch, Fcondition_case, internal_condition_case)
1978         (internal_condition_case_1): Save value of byte_stack_list in
1979         catchtag.
1980         (unwind_to_catch): Restore byte_stack_list from catchtag.
1982         * lisp.h: Add prototypes for new functions in bytecode.c.
1983         Add extern declaration for byte_stack_list.
1985         * bytecode.c (struct byte_stack): New.
1986         (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
1987         (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
1988         (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
1989         (HANDLE_RELOCATION): Removed.
1990         (Fbyte_code): Use byte_stack structures.
1992         * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
1994         * buffer.c (syms_of_buffer): Extend documentation of
1995         mode-line-format.
1997 1999-11-04  Gerd Moellmann  <gerd@gnu.org>
1999         * editfns.c (Fdelete_field): Renamed from Ferase_field.
2001         * minibuf.c (do_completion, Fminibuffer_complete_word): Use
2002         Ferase_field instead of Fdelete_field.
2004 1999-11-03  Gerd Moellmann  <gerd@gnu.org>
2006         * dispnew.c (Finternal_show_cursor): Change it to set the
2007         cursor on/off, not toggle its state.
2008         (Finternal_show_cursor_p): New.
2009         (syms_of_display): Defsubr Sinternal_show_cursor_p.
2011 1999-11-03  Dave Love  <fx@gnu.org>
2013         * charset.c (split_non_ascii_string): Define return value.
2015 1999-11-03  Gerd Moellmann  <gerd@gnu.org>
2017         * minibuf.c (string_to_object): New.
2018         (read_minibuf_noninteractive): New.
2019         (read_minibuf): Call read_minibuf_noninteractive if
2020         noninteractive.  Use string_to_object.
2022         * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
2024 1999-11-02  Dave Love  <fx@gnu.org>
2026         * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
2028         * process.c: Define _GNU_SOURCE before config.h to get strsignal
2029         declared with glibc2.
2031 1999-11-02  Gerd Moellmann  <gerd@gnu.org>
2033         * lisp.h (QUIT): Give it statement form.
2035 1999-11-02  Dave Love  <fx@gnu.org>
2037         * eval.c (init_eval): Conditionalize declaration of gcpro_level.
2039 1999-11-02  Gerd Moellmann  <gerd@gnu.org>
2041         * xfns.c (QCuser_data): New.
2042         (syms_of_xfns): Initialize QCuser_data.
2043         (parse_image_spec): Ignore :user-data DATA properties.
2045         * xdisp.c (display_line): Set charpos of first glyph in blank
2046         lines not corresponding to any text to -1, even if no glyphs are
2047         filled in in that line.
2049 1999-11-01  Gerd Moellmann  <gerd@gnu.org>
2051         * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using 
2052         png_get_sRGB in #ifdef.
2054         * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
2055         (syms_of_display): Use the new name.
2057         * textprop.c (verify_interval_modification): Signal text-read-only
2058         instead of calling error.
2060         * data.c (Qtext_read_only): New built-in error.
2061         (syms_of_data): Initialize it.
2063         * lisp.h: Add extern declaration for Qtext_read_only.
2065         * syntax.c: Remove whitespace after open or in front of closing
2066         parentheses.
2068 1999-11-01  Richard M. Stallman  <rms@gnu.org>
2070         * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
2072 1999-10-31  Gerd Moellmann  <gerd@gnu.org>
2074         * xdisp.c (resize_mini_window): Compute needed height differently.
2076         * fns.c (Flength): Unroll loop over lists.
2078         * xdisp.c (append_space): Return non-zero if space was appended.
2079         (display_line): Set charpos of first glyph to -1 only if that
2080         glyph is the space added by append_glyph.
2082 1999-10-30  Richard M. Stallman  <rms@gnu.org>
2084         * print.c (strout): Consider `noninteractive' and use stdout
2085         only when PRINTCHARFUN is t.
2087         * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
2088         (gcpro_level): Declare it extern.
2089         [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
2090         Alternate definitions that set `level' and increment `gcpro_level'.
2091         [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
2093         * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
2094         (init_eval) [DEBUG_GCPRO]: Initialize it.
2095         (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
2096         from remaining gcprolist.
2098 1999-10-29  Kenichi Handa  <handa@etl.go.jp>
2100         * coding.c (code_convert_region): Update `dst' correctly.
2102 1999-10-28  Gerd Moellmann  <gerd@gnu.org>
2104         * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
2105         (Frassoc): Rewritten.
2107 1999-10-27  Noah Friedman  <friedman@splode.com>
2109         * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
2110         Define PTY_NAME_SPRINTF.
2111         Redefine PTY_TTY_NAME_SPRINTF.
2112         * config.in: Add undef for HAVE_DEV_PTMX.
2114 1999-10-26  Richard M. Stallman  <rms@gnu.org>
2116         * regex.c (POP_FAILURE_POINT): Use failure_id.integer
2117         as arg to DEBUG_POP and DEBUG_PRINT.
2119 1999-10-27  Richard M. Stallman  <rms@gnu.org>
2121         * data.c (Qad_activate_internal): Renamed from Qad_activate.
2122         (Ffset): Call Qad_activate_internal.
2123         (syms_of_data): Initialize Qad_activate_internal.
2125 1999-10-27  Gerd Moellmann  <gerd@gnu.org>
2127         * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
2128         Vterminal_frame is selected and Vwindow_system is non-nil.
2130 1999-10-26  Gerd Moellmann  <gerd@gnu.org>
2132         * xdisp.c (echo_area_display): Put previous change in #if 0.
2134         * emacs.c (standard_args): Add `file' as synonym for `visit',
2135         `execute' as synonym for `eval'.
2136         (main): Add new options to usage message.
2138 1999-10-25  Gerd Moellmann  <gerd@gnu.org>
2140         * data.c (Qhash_table): New.
2141         (Ftype_of): Return it for hash tables.
2142         (syms_of_data): Initialize Qhash_table.
2144 1999-10-25  Richard M. Stallman  <rms@gnu.org>
2146         * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
2148 1999-10-24  Ken Raeburn  <raeburn@gnu.org>
2150         * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
2151         lisp.h.
2153         * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
2154         Fbuffer_local_variables, Fother_buffer, record_buffer,
2155         set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
2156         swap_out_buffer_local_variables, overlays_at, overlays_in,
2157         overlay_touches_p, overlay_strings, recenter_overlay_lists,
2158         fix_overlays_in_range, fix_overlays_before, Foverlay_get,
2159         Foverlay_put, report_overlay_modification, evaporate_overlays):
2160         Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
2161         references.
2162         * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
2163         swap_in_symval_forwarding, set_internal, default_value,
2164         Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
2165         Fmake_variable_frame_local, Flocal_variable_p,
2166         Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
2167         Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
2168         * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
2169         * emacs.c (main): Likewise.
2170         * fontset.c (fs_load_font, fs_register_fontset,
2171         CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
2172         Fnew_fontset, Fset_fontset_font): Likewise.
2173         * frame.c (do_switch_frame, next_frame, prev_frame,
2174         other_visible_frames, Fdelete_frame, Fvisible_frame_list):
2175         Likewise.
2176         * keyboard.c (read_char, help_char_p, event_to_kboard,
2177         kbd_buffer_get_event, timer_start_idle, timer_check,
2178         make_lispy_event, apply_modifiers, reorder_modifiers,
2179         Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
2180         menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
2181         tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
2182         Fcommand_execute, Fexecute_extended_command): Likewise.
2183         * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
2184         Fall_completions): Likewise.
2185         * window.c (Fset_window_margins): Likewise.
2187         * callint.c (quotify_args): Don't explicitly use struct
2188         Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
2190         * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
2191         (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
2192         if __ELF__ is defined.
2194 1999-10-24  Gerd Moellmann  <gerd@gnu.org>
2196         * window.c (Fnext_window): Add a QUIT in the loop.
2198 1999-10-23  Gerd Moellmann  <gerd@gnu.org>
2200         * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs): 
2201         New targets.
2203 1999-10-22  Dave Love  <fx@gnu.org>
2205         * emacs.c (main): Enable profiling conditional on __linux also.
2207 1999-10-20  Gerd Moellmann  <gerd@gnu.org>
2209         * xrdb.c (x_load_resources): Set default resources for resource
2210         classes instead of for the specific Emacs.
2212 1999-10-19  Gerd Moellmann  <gerd@gnu.org>
2214         * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
2215         defines it that way.
2216         
2217         * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
2218         if selected_frame is equal to Vterminal_frame.
2220 1999-10-19  Paul Eggert  <eggert@twinsun.com>
2221         
2222         Add support for large files, 64-bit Solaris, system locale codings.
2223         
2224         * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
2225         when dumping, so that the dumped Emacs doesn't have stray locale info.
2226         (dired.o): Depend on systime.h.
2227         (editfns.o): Depend on coding.h.
2229         * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
2230         dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
2231         keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
2232         unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
2233         w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
2234         Include <config.h> before any system include files.
2236         * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
2237         fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
2238         m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
2239         xmenu.c, xterm.c:
2240         Do not include <stdlib.h>, as <config.h> does this now.
2242         * callproc.c (Fcall_process):
2243         Synchronize messages locale before invoking strerror.
2244         Decode resulting string with locale-coding-system.
2246         * coding.c (Vlocale_coding_system): New var.
2247         (syms_of_coding): Adjust to above change.
2248         (emacs_strerror): New function.
2250         * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
2251         
2252         * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
2253         HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
2254         HAVE_STRSIGNAL): New macros.
2255         (BITS_PER_LONG): Default to 64 if _LP64 is defined.
2256         <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
2258         * dired.c: Include "systime.h".
2259         (Ffile_attributes): Do not cast s.st_size to int; this loses
2260         information if int is 32 bits but st_size and EMACS_INT are larger.
2261         Treat large device numbers like large inode numbers.
2263         * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
2265         * editfns.c: Include coding.h.
2266         (emacs_strftime): Remove decl.
2267         (emacs_strftimeu): New decl.
2268         (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
2269         Use emacs_strftimeu instead of emacs_strftime.
2270         (Fformat_time_string): Convert format string using
2271         Vlocale_coding_system, and convert result back.  Synchronize time
2272         locale before invoking lower level function.  Invoke
2273         emacs_memftimeu, passing ut, instead of emacs_memftime.
2274         
2275         * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
2276         (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
2277         Vprevious_time_locale): New variables.
2278         (main): Invoke setlocale early, so that initial error messages are
2279         localized properly.  But skip locale-setting if LC_ALL is "C".
2280         Fix up locale when it's safe to do so.
2281         (fixup_locale): Moved here from xterm.c.
2282         (synchronize_locale, synchronize_time_locale,
2283         synchronize_messages_locale): New functions.
2284         (syms_of_emacs): Accommodate above changes.
2286         * fileio.c (report_file_error): Convert strerror output according
2287         to Vlocale_coding_system.
2288         (Finsert_file_contents): Check for arithmetic overflow in
2289         computations that depend on file size.  Report IO errors
2290         with emacs_strerror, not strerror.
2292         * fns.c (Fgethash): Declare dflt parameter.
2294         * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
2295         is defined; that's config.h's job.
2297         * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
2298         default these values to long, BITS_PER_LONG, and unsigned long.
2299         (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
2300         (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
2301         (code_convert_string_norecord, fixup_locale,
2302         synchronize_messages_locale, synchronize_time_locale,
2303         emacs_open, emacs_close, emacs_read, emacs_write): New decls.
2304         All Emacs callers of open, close, read, write changed to use
2305         emacs_open, emacs_close, emacs_read, emacs_write.
2307         * lread.c (file_offset, file_tell): New macros.  All uses of ftell
2308         changed to file_tell.
2309         (saved_doc_string_position, prev_saved_doc_string_position): Now
2310         of type file_offset.
2311         (init_lread): Do not fix locale here; fixup_locale now does this.
2313         * m/amdahl.h, s/usg5-4.h:
2314         (NSIG): Remove.
2315         (NSIG_MINIMUM): New macro.
2317         * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
2318         m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
2319         s/umips.h, s/usg5-4.h:
2320         (SIGIO): Do not undef.
2321         (BROKEN_SIGIO): New macro.
2323         * m/ustation.h:
2324         (SIGTSTP): Do not undef.
2325         (BROKEN_SIGTSTP): New macro.
2327         * s/gnu-linux.h:
2328         (SIGPOLL, SIGURG): Do not undef.
2329         (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
2331         * s/ptx4.h:
2332         (SIGINFO): Do not undef.
2333         (BROKEN_SIGINFO): New macros.
2334         
2335         * m/delta.h, s/ptx.h, s/template.h: Doc fix.
2337         * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
2338         some Emacs-related changes merged.
2340         * print.c (float_to_string): Prepend "-" to representation of a
2341         NaN if the NaN is negative.
2343         * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
2344         (wait_reading_process_input): Use emacs_strerror, not strerror.
2345         
2346         * process.c (status_message, sigchld_handler): Synchronize locale,
2347         then use strsignal istead of sys_siglist.
2348         * w32proc.c (sys_wait): Likewise.
2349         
2350         * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
2351         s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
2352         s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
2353         s/usg5-2.h, s/usg5-3.h, s/xenix.h:
2354         (open, close, read, write, INTERRUPTIBLE_OPEN,
2355         INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
2357         * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
2359         * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
2360         sys_open, open): Remove.
2361         (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
2362         the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
2363         macros are no longer used.
2364         (emacs_open): Renamed from sys_open.  Merge BSD4_1 version.
2365         (emacs_close): Renamed from sys_close.
2366         (emacs_read): Renamed from sys_read.
2367         (emacs_write): Renamed from sys_write.
2368         (sys_siglist): Do not declare if HAVE_STRSIGNAL.
2369         (dup2): Do not print error on failure; the real dup2 doesn't.
2370         (strsignal): New function, defined if !HAVE_STRSIGNAL.
2372         * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
2373         is defined.
2374         (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
2375         (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
2376         (strsignal): Declare if !HAVE_STRSIGNAL.
2378         * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
2379         (ElfW): Define in terms of ElfExpandBitsW.
2381         * w32proc.c (sys_siglist): Remove decl.
2383         * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
2384         with ANSI C.
2385         (display_string): Declare face_string_pos arg.
2387         * xfns.c (Fx_show_tip): Declare timeout param.
2389         * xterm.c: No need to include locale.h.
2390         (x_alloc_lighter_color, x_setup_relief_color):
2391         Pass arg as double, not float, for compatibility with ANSI C.
2392         (fixup_locale): Move to emacs.c.
2393         (x_term_init): Do not setlocale or fixup locale; the main program
2394         does this now.
2396 1999-10-18  Dave Love  <fx@gnu.org>
2398         * doc.c (Fdocumentation_property): Gcpro `tem'.
2400 1999-10-18  Kenichi Handa  <handa@etl.go.jp>
2402         * lread.c (Fload): Calculate bytes of filename correctly.
2403         (openp): Likewise.
2405 1999-10-18  Keisuke Nishida  <kxn30@po.cwru.edu>
2407         * print.c (print_preprocess): In case print-circle is nil,
2408         add OBJ to Vprint_number_table only when OBJ is a symbol.
2410 1999-10-18  Kenichi Handa  <handa@etl.go.jp>
2412         * coding.c (code_convert_string): Add record_unwind_protect to
2413         assure setting inhibit_pre_post_conversion back to zero.  Take
2414         care of the multibyteness of the working buffer.
2416         * coding.c (inhibit_pre_post_conversion): New variable.
2417         (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
2418         ignore post-read-conversion and pre-write-conversion property of
2419         the coding system.
2420         (code_convert_region_unwind): New function.
2421         (code_convert_region): Set inhibit_pre_post_conversion to 1 while
2422         running pre-write-conversion and post-read-conversion.
2423         (code_convert_string): Likewise.
2425 1999-10-17  Miles Bader  <miles@gnu.org>
2427         * editfns.c: Doc fix.
2429 1999-10-17  Miles Bader  <miles@gnu.org>
2431         * editfns.c (Fconstrain_to_field): Make sure we don't violate the
2432         argument preconditions of find_before_next_newline in the case
2433         where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
2434         was indeed at the edge.
2436 1999-10-17  Miles Bader  <miles@gnu.org>
2438         * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
2439         ESCAPE_FROM_EDGE parameter to Ffield_beginning.
2441         * editfns.c (text_property_eq, text_property_stickiness): Don't
2442         use initializers for auto variables of type Lisp_Object.
2443         (find_field): Likewise.  Use braces around nested ifs.
2444         (Fline_end_position): Store the raw eol in a variable, so that the
2445         final expression doesn't look so ugly.
2446         (Fconstrain_to_field): Doc fix.
2447         (preceding_pos): Renamed from `preceeding_pos'.
2448         (text_property_stickiness, find_field): Call preceding_pos,
2449         not preceeding_pos.
2451 1999-10-17  Miles Bader  <miles@gnu.org>
2453         * editfns.c (Ffield_string_no_properties): New function.
2454         (text_property_stickiness, preceeding_pos): New functions.
2455         (Ffield_string): Remove PROPS parameter.
2456         (find_field): Add MERGE_AT_BOUNDARY parameter.
2457         Rewrite to use stickiness of `field' property to resolve
2458         ambiguous cases.
2459         (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
2460         (Fconstrain_to_field): Likewise.
2461         (syms_of_editfns): Init Sfield_string_no_properties.
2462         (Ffield_string, Ferase_field, Ffield_end): 
2463         Supply new MERGE_AT_BOUNDARY argument to find_field.
2464         (Fline_beginning_position, Fline_end_position): Supply new
2465         ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
2466         Pass a value of Qt for the ONLY_IN_LINE argument to
2467         Fconstrain_to_field (only matters if N != 1).
2468         * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
2469         to Fconstrain_to_field.
2471         * minibuf.c (Fminibuffer_complete_word): Use
2472         Ffield_beginning to find the prompt end.
2474 1999-10-17  Miles Bader  <miles@gnu.org>
2476         * editfns.c (Fconstrain_to_field): Add get/set-current-point
2477         behavior when NEW_POS is nil.
2478         (find_field): Use XSETFASTINT instead of make_number.
2479         * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
2480         input string by seeing where the field begins, instead of
2481         looking at text-properties.
2483 1999-10-17  Miles Bader  <miles@gnu.org>
2485         * editfns.c (Qfield): New variable.
2486         (find_field, Ferase_field, Ffield_string,
2487         Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
2488         (Fline_beginning_position, Fline_end_position): Constrain to any field.
2489         (make_buffer_string_both): Remove minibuffer-prompt hack.
2490         (syms_of_editfns): Initialize Qfield, and subr entries for
2491         field functions above.
2492         * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
2493         minibuf_save_list.
2494         Don't initialize minibuffer prompt length.
2495         Wrap prompt text-properties around the entire prompt.
2496         Add 'prompt text-property to prompt.
2497         Get final value with Ffield_string instead of make_buffer_string.
2498         (read_minibuf_unwind): Don't restore minibuffer prompt length from
2499         minibuf_save_list.
2500         (do_completion): Get minibuffer input with Ffield_string
2501         instead of Fbuffer_string.
2502         Erase minibuffer input with Ferase_field instead of erase_buffer.
2503         (Fminibuffer_complete_and_exit): Likewise.
2504         Test whether buffer is empty by looking for the 'prompt text
2505         property at the end.
2506         Set prompt length by looking for the end of the prompt text property,
2507         and save prompt length for later use (since there is no longer a
2508         buffer variable to get it from).
2509         (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
2510         (syms_of_minibuf): Remove initializations of
2511         Sminibuffer_prompt_width and Sminibuffer_prompt_end.
2512         * buffer.h (struct buffer): Remove prompt_end_charpos field.
2513         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer): 
2514         Don't initialize prompt_end_charpos field.
2515         * syntax.c (Fforward_word): Likewise.
2516         Constrain to any field.
2518 1999-10-16  Gerd Moellmann  <gerd@gnu.org>
2520         * window.c (enum save_restore_action): New.
2521         (save_restore_orig_size): Change parameter list.  Add
2522         functionality to check for valid orig_top and orig_height members
2523         in a window tree.
2524         (grow_mini_window): Call save_restore_orig_size with new parameter
2525         list.
2526         (shrink_mini_window): Restore old window sizes only if old
2527         size information is valid in all windows in a window tree.
2528         
2529 1999-10-15  Gerd Moellmann  <gerd@gnu.org>
2531         * xmenu.c (set_frame_menubar): Don't call
2532         x_set_menu_resources_from_menu_face here.
2533         (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
2535         * xfns.c (gif_load): Fix handling of interlaced GIFs.
2537 1999-10-14  Dave Love  <fx@gnu.org>
2539         * xdisp.c (handle_fontified_prop): GCPRO `pos'.
2541 1999-10-14  Gerd Moellmann  <gerd@gnu.org>
2543         * process.c (Fopen_network_stream): Don't loop if gethostbyname
2544         fails and h_errno is TRY_AGAIN.
2546 1999-10-13  Dave Love  <fx@gnu.org>
2548         * filelock.c (lock_file): Move gcpro of `fn'.
2550 1999-10-10  Gerd Moellmann  <gerd@gnu.org>
2552         * keyboard.c (auto-save-interval): Fix documentation.
2553         
2554 1999-10-09  Richard M. Stallman  <rms@gnu.org>
2556         * print.c (print): When removing objects from Vprint_number_table,
2557         only scan the newly added objects.
2558         (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
2559         unconditionally force it to stay in the table.
2561 1999-10-09  Gerd Moellmann  <gerd@gnu.org>
2563         * xfns.c (prepare_image_for_display): Don't try to load image if
2564         loading it failed before.
2565         (lookup_image, prepare_image_for_display): Remember if loading the
2566         image failed.
2567         (xpm_load): Add missing UNBLOCK_INPUT.
2569         * dispextern.h (struct image): New member load_failed_p.
2571 1999-10-08  Stefan Monnier  <monnier@cs.yale.edu>
2573         * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
2574         in the docstring.
2576 1999-10-08  Gerd Moellmann  <gerd@gnu.org>
2578         * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
2579         Don't call XSetInputFocus because that can generate additional
2580         FocusIn events.
2581         
2582 1999-10-07  Jeffrey C Honig <jch@bsdi.com>
2584         * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
2586 1999-10-07  Richard M. Stallman  <rms@gnu.org>
2588         * process.c (wait_reading_process_input): When trying to suck
2589         input from one process, for accept-process-output,
2590         exit that loop if we get EAGAIN or EWOULDBLOCK.
2592 1999-10-07  Gerd Moellmann  <gerd@gnu.org>
2594         * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
2595         (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
2596         (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
2597         Fpixmap_spec_p and Qpixmap_spec_p.
2598         (load_face_colors, check_lface_attrs,
2599         merge_face_vector_with_property,
2600         Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
2601         (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
2602         Fbitmap_spec_p.
2604 1999-10-07  Gerd Moellmann  <gerd@gnu.org>
2606         * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
2607         MODE_LINE_FACE_ID.
2609         * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
2610         (struct x_resources) [USE_X_TOOLKIT]: New.
2611         (xm_apply_resources, xm_set_menu_resources_from_menu_face)
2612         [USE_MOTIF]: New.
2613         (xl_apply_resources, xl_set_menu_resources_from_menu_face)
2614         [USE_LUCID]: New.
2615         (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
2616         (Qmenu): New.
2617         (syms_of_xfaces): Initialize Qmenu.
2618         (realize_basic_faces): Realize face `menu'.
2619         (resolve_face_name): New.
2620         (lface_from_face_name): Use it.
2621         (Finternal_set_lisp_face_attribute): Ditto.
2622         (Fpixmap_spec_p): Rewritten.  Extend doc string.
2624         * xmenu.c (set_frame_menubar, xmenu_show): Call
2625         x_set_menu_resources_from_menu_face.
2627         * dispextern.h (enum face_id): Add MENU_FACE_ID.
2628         (toplevel): Include X11/Intrinsic.h.
2630 1999-10-03  Ken'ichi Handa  <handa@gnu.org>
2632         * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
2633         correctly.
2635 1999-09-30  Kenichi Handa  <handa@etl.go.jp>
2637         * category.c (modify_lower_category_set): Set default value of
2638         TABLE correctly.
2640         * minibuf.c (Fminibuffer_complete_word): Calculate string byte
2641         size correctly.
2643 1999-09-29  Gerd Moellmann  <gerd@gnu.org>
2645         * editfns.c (Fpropertize): Renamed from Fproperties.
2647 1999-09-29  Gerd Moellmann  <gerd@gnu.org>
2649         * xdisp.c (resize_mini_window): Do nothing if frame is an X
2650         frame that hasn't been initialized yet.
2652 1999-09-28  Richard M. Stallman  <rms@gnu.org>
2654         * keymap.c (Fsingle_key_description): Make tem big enough.
2655         (describe_buffer_bindings): Make buf big enough.
2657 1999-09-27  Richard M. Stallman  <rms@gnu.org>
2659         * intervals.c (get_local_map): Use indirect_function,
2660         not Findirect_function.
2662 1999-09-27  Dave Love  <fx@gnu.org>
2664         * cm.h: Remove unneeded declaration of ospeed.
2666 1999-09-26  Gerd Moellmann  <gerd@gnu.org>
2668         * lisp.h (toplevel): Add prototype for
2669         next_single_char_property_change.
2671         * textprop.c (next_single_char_property_change): New.
2673         * xdisp.c (display_prop_end, invisible_text_between_p): Use
2674         next_single_char_property_change.
2676 1999-09-25  Gerd Moellmann  <gerd@gnu.org>
2678         * editfns.c (Fproperties): New.
2679         (syms_of_editfns): Defsubr it.
2681         * xfns.c (lookup_image): Set image's timestamp because it's
2682         used when we look it up.
2684 1999-09-23  Gerd Moellmann  <gerd@gnu.org>
2686         * window.c (enlarge_window): Add window parameter instead of using
2687         selected_window.
2688         (Fdisplay_buffer): Call it with window parameter instead of
2689         setting selected_window.
2690         (Fenlarge_window, Fshrink_window): Ditto.
2691         (shrink_mini_window): If there is no recorded height and position
2692         info, resize mini-window to height 1.
2694         * xfns.c (image_error): Use add_to_log.
2696         * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
2697         (load_face_font_or_fontset, load_color,
2698         merge_face_vector_with_property): Ditto.
2700         * dispextern.h: Add prototype for add_to_log.
2702         * xfaces.c (add_to_log): Move to xdisp.c.
2704         * xdisp.c (add_to_log): Moved from xfaces.c.  Remove frame
2705         parameter.
2707 1999-09-23  Gerd Moellmann  <gerd@gnu.org>
2709         * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
2710         USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
2712         * xdisp.c (resize_mini_window): Use grow_mini_window and
2713         shrink_mini_window.
2715         * window.c (window_min_size): Add parameter ignore_fixed_p.
2716         (change_window_height): Call window_min_size with new parameter.
2717         (shrink_window_lowest_first, save_restore_orig_size,
2718         grow_mini_window, shrink_mini_window): New.
2719         (make_window, replace_window): Initialize orig_top and
2720         orig_height.
2721         (enlarge_window): Renamed from change_window_height.  Make it
2722         static.
2723         (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
2724         enlarge_window instead of change_window_height.
2726         * window.h (struct window): New members orig_top, orig_height.
2727         (toplevel): Add prototypes for grow_mini_window and
2728         shrink_mini_window.  Remove prototype for change_window_height.
2730 1999-09-21  Eli Zaretskii  <eliz@gnu.org>
2732         * frame.c (frame_name_fnn_p): Fix previous change.
2734 1999-09-20  Gerd Moellmann  <gerd@gnu.org>
2736         * minibuf.c (toplevel): Move include of stdio.h to other includes.
2738         * dispnew.c (direct_output_for_insert): Cast arguments to
2739         safe_bcopy to char *.
2741         * lread.c (readchar): Remove unused variables.
2742         (read_filtered_event, read1, Fmapatoms): Ditto.
2743         (toplevel): Include intervals.h.
2745         * eval.c (Fsignal): Remove unused variables.
2746         (Fcommandp, do_autoload): Ditto.
2748         * lisp.h: Add prototype for safe_bcopy, fatal.
2750         * editfns.c (init_editfns): Remove unused variables.
2751         (Fgoto_char, Fchar_after, Fformat): Ditto.
2752         (message_text, message_length): Put in #ifndef HAVE_MENUS.
2754         * data.c (find_symbol_value): Remove unused variables.
2755         (Faref, Fstring_to_number): Ditto.
2756         (toplevel): Include stdio.h.
2757         (Fnumber_to_string): Cast XINT to long for %ld.
2759         * casefiddle.c (casify_object): Remove unused variables.
2760         (casify_region): Ditto.
2762         * filelock.c (get_boot_time): Put local variable used in 
2763         conditinally compiled section in #ifdef.
2764         (toplevel): Include stdio.h.
2766         * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
2767         keys_of_keymap, syms_of_keymap): Remove unused variables.
2769 1999-09-20  Gerd Moellmann  <gerd@gnu.org>
2771         * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
2772         whose corresponding window rows have been disabled in
2773         try_window_id.
2775 1999-09-20  Gerd Moellmann  <gerd@gnu.org>
2777         * xdisp.c (compute_window_start_on_continuation_line): Handle case
2778         that window start is out of range.
2779         (handle_display_prop, handle_single_display_prop): Replace
2780         marginal area specifications like `left-margin' with `(margin
2781         left-margin)'.
2782         (Qmargin): New.
2783         (syms_of_xdisp): Initialize Qmargin.
2785 1999-09-19  Gerd Moellmann  <gerd@gnu.org>
2787         * syntax.c (update_syntax_table, find_defun_start, back_comment,
2788         describe_syntax, skip_chars): Remove unused variables.
2789         (back_comment, forw_comment): Add braces to if-statement with
2790         if-else as dependent statement.
2792         * process.c (list_processes_1): Remove unused variables.
2793         (Fopen_network_stream, create_process): Add parentheses to
2794         conditional expressions.
2795         (create_process): Put declaration of sigchld in #if 0.
2796         (Fopen_network_stream): Removed unused variables.
2797         (Fopen_network_stream, wait_reading_process_input,
2798         wait_reading_process_input, send_process, send_process): Ditto.
2799         (toplevel): Add prototypes for set_waiting_for_input and
2800         keyboard_bit_set.
2802         * abbrev.c (Fexpand_abbrev): Remove unused variables.
2804         * textprop.c (Fset_text_properties): Remove unused variables.
2805         (text_property_list, verify_interval_modification,
2806         interval_has_all_properties): Ditto.
2808         * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
2809         (Fcall_process): Remove unused variable.
2811         * keyboard.c (Frecursive_edit): Remove unused variable.
2812         (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
2813         timer_check, make_lispy_event, menu_bar_items,
2814         menu_bar_one_keymap, menu_bar_item, parse_menu_item,
2815         parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
2816         kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
2817         read_key_sequence): Ditto.  Fread_key_sequence,
2818         Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
2819         (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
2820         used when GOBBLE_FIRST_EVENT is defined in #ifdef
2821         (Fexecute_extended_command): Cast XINT to long for %ld.
2822         (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
2823         (toplevel): Include sys/types.h.
2825         * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
2826         (toplevel): Add prototypes for stuff_char, and
2827         code_convert_string_norecord.
2829 1999-09-19  Gerd Moellmann  <gerd@gnu.org>
2831         * buffer.h: Add prototype for r_re_alloc.
2833         * insdel.c (copy_text): Removed unused variables.
2834         (count_combining_after, count_combining_after, insert_1_both,
2835         insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
2836         (adjust_after_replace, replace_range): Add parentheses to logical
2837         expressions.  Remove unused variables.
2838         (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
2839         expression.
2841         * alloc.c (Fgarbage_collect): Remove unused variable.
2842         (compact_strings): Add parentheses around assignments in
2843         conditional context.
2844         (toplevel): Put declaration of unused function clear_marks
2845         in #if 0 like its definition.
2847         * lisp.h: Add prototype for shrink_regexp_cache,
2848         sweep_weak_hash_tables.
2850 1999-09-19  Dave Love  <fx@gnu.org>
2852         * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
2854         * doc.c (read_bytecode_char): Declare arg.
2856         * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
2857         read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
2859 1999-09-18  Richard Stallman  <rms@gnu.org>
2861         * xdisp.c (echo_area_display): Turn off code that returned
2862         without doing anything when using a terminal frame.
2864 1999-09-17  Richard M. Stallman  <rms@gnu.org>
2866         * unexelf.c (unexec): Don't get confused by a short section
2867         just before the bss section.
2869 1999-09-16  Gerd Moellmann  <gerd@gnu.org>
2871         * emacs.c (main): Remove unused variables.
2872         (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
2874         * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
2875         init_fileio_once, syms_of_sound, init_xfns, init_fns
2876         init_sound, check_message_stack.
2878         * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
2880         * intervals.c (rotate_right, rotate_left): Add braces to avoid
2881         ambiguous else warning.
2882         (split_interval_left): Remove unused variables.
2883         (previous_interval, adjust_intervals_for_deletion,
2884         set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
2885         (icount, idepth, zero_length): Move into #if 0 section below
2886         original position where these are used.
2888         * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
2890         * buffer.c (Fkill_buffer): Remove unused variables.
2891         (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
2892         fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
2893         init_buffer_once, (syms_of_buffer): Ditto.
2895         * xrdb.c (get_fallback): Remove unused variable.
2896         (x_load_resources): Ditto.  Put local variable used for Motif only
2897         in #ifdef USE_MOTIF.
2899 1999-09-16  Gerd Moellmann  <gerd@gnu.org>
2901         * minibuf.c (read_minibuf): Remove unused variables.
2902         (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
2903         (do_completion): Move assignment out of conditional context.
2904         (Fdisplay_completion_list): Add parentheses to conditional expression.
2906         * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
2908         * lisp.h: Add prototype for no_switch_window.
2910         * window.c (Fset_window_buffer): Remove unused variables.
2911         (Fset_window_margins): Ditto.
2913         * xdisp.c (resize_mini_window): Temporarily set the selected
2914         window's or Vminibuf_scroll_window's height to "fixed" around
2915         the call the change_window_height.
2917         * window.c (window_fixed_size_p): Check window's height_fixed_p
2918         flag.
2920         * window.h (struct window): New member height_fixed_p.
2922         * dispnew.c (direct_output_forward_char): Don't use this method
2923         if showing a message or a message was just cleared because we
2924         might need to resize the mini-window.
2926 1999-09-16  Gerd Moellmann  <gerd@gnu.org>
2928         * frame.c (Fdelete_frame): Correct local variable pointing to
2929         selected frame after selecting new frame.
2931 1999-09-15  Richard Stallman  <rms@gnu.org>
2933         * puresize.h (BASE_PURESIZE): Increase to 525000.
2935         * filelock.c (Vtemporary_file_directory): New variable.
2936         (syms_of_filelock): Set up Lisp variable.
2938 1999-09-15  Gerd Moellmann  <gerd@gnu.org>
2940         * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
2941         (encode_terminal_code): Remove unused variables.
2942         (turn_off_face): Ditto.
2943         (toplevel): Include termcap.h if HAVE_TERMCAP_H.
2945         * dispnew.c (update_frame_line): If writing whole desired line,
2946         don't clear to end of line if already at the end.
2948 1999-09-15  Gerd Moellmann  <gerd@gnu.org>
2950         * xdisp.c (resize_mini_window): Don't report changed window
2951         height if it actually hasn't changed.
2953         * widget.c (set_frame_size, EmacsFrameSetCharSize):  Remove 
2954         unused variables.
2955         (mark_shell_size_user_specified): Put in #if 0 because not used.
2956         (create_frame_gcs): Put in #if 0 because currently unused.
2957         (first_frame_p): Ditto.
2959         * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
2960         single_submenu, update_frame_menubar, set_frame_menubar,
2961         free_frame_menubar, xmenu_show, xdialog_show): Remove unused
2962         variables.
2964         * print.c (PRINTFULLP): Removed because it is no longer used and
2965         is misleading.
2966         (Ferror_message_string): Remove unused variables.
2967         (print_object): Cast argument of sprintf to long for `%ld'
2968         specifier.  Remove unused variable.
2970 1999-09-14  Gerd Moellmann  <gerd@gnu.org>
2972         * sound.c (Fplay_sound): Remove usused variables.
2973         (be2hs): Put in #if 0 because it's currently not used.
2975 1999-09-14  Ken Raeburn  <raeburn@gnu.org>
2977         * print.c (Ferror_message_string, print_error_message,
2978         print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
2979         member access.
2981 1999-09-14  Gerd Moellmann  <gerd@gnu.org>
2983         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
2985         * frame.c (Fnext_frame): Remove unused variable(s).
2986         (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
2987         (store_frame_param): Add parentheses to conditional expression.
2988         (Fmodify_frame_parameters): Remove unused variables.
2989         (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
2990         Ditto.
2992         * xfns.c (x_set_background_color): Remove unused variable(s).
2993         (x_set_border_pixel): Ditto.
2994         (x_set_menu_bar_lines): Put local variable used only for
2995         non-toolkit case in #ifdef/#endif.
2996         (x_figure_window_size): Remove unused variable(s).
2997         (x_figure_window_size, x_window, lookup_image, 
2998         xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
2999         png_load, jpeg_load, gif_load, x_create_tip_frame,
3000         x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
3002         * xterm.c (x_scroll_bar_handle_click): Compile only if
3003         not USE_TOOLKIT_SCROLL_BARS.
3004         (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
3006         * dispextern.h: Add prototypes for gamma_correct and
3007         x_kill_gs_process.
3009         * xterm.c (x_produce_glyphs): Remove unused variable(s).
3010         (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
3011         x_set_toolkit_scroll_bar_thumb): Ditto.
3012         (x_scroll_bar_create): Move local variable to the
3013         conditionally compiled section of code where it is used.
3014         (x_scroll_bar_create): Remove unused variable(s).
3015         (x_scroll_bar_remove, XTread_socket): Ditto.
3016         (XTread_socket) <ConfigureNotify>: Move variables used for
3017         non-toolkit case into conditionally compiled section of code.
3019         * window.h (freeze_window_starts): Fix typo in prototype.
3021         * xdisp.c (display_echo_area_1, try_window_id): Remove unused
3022         variable(s).
3024         * lisp.h: Add prototype for debug_print.
3026         * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
3027         to use do-while.
3029         * fns.c (SXHASH_COMBINE): Add missing parentheses.
3030         (Fchar_table_range, Fset_char_table_default, mapcar1,
3031         Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
3033         * lisp.h: Add prototype for getloadavg.
3035 1999-09-14  Andreas Schwab  <schwab@gnu.org>
3037         * process.c (Fopen_network_stream): Avoid socket decriptor leak.
3039         * lisp.h: Declare close_file_unwind.
3041 1999-09-14  Richard Stallman  <rms@gnu.org>
3043         * filelock.c (get_boot_time): Make the temp name in the proper dir.
3045 1999-09-13  Gerd Moellmann  <gerd@gnu.org>
3047         * xdisp.c (redisplay_window): Make sure start_at_line_beg
3048         is always set correctly.
3050 1999-09-13  Dave Love  <fx@gnu.org>
3052         * xdisp.c (move_it_in_display_line_to): Make type consistent with
3053         declaration.
3055 1999-09-13  Gerd Moellmann  <gerd@delysid.gnu.org>
3057         * xdisp.c (QCfile): Move here from xfns.c.
3058         (syms_of_xdisp): Initialize it.
3059         (message2_nolog): Change for Lisp_Object selected_frame.
3060         (message3_nolog, message_with_string, message,
3061         setup_echo_area_for_printing, truncate_echo_area,
3062         prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
3064 1999-09-13  Dave Love  <fx@gnu.org>
3066         * xterm.c: Don't continue #define args for benefit of old cc.
3067         (xt_action_hook): Indent #error for benefit of K&R cc.
3069 1999-09-13  Gerd Moellmann  <gerd@delysid.gnu.org>
3071         * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
3072         (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
3073         (XRINGBELL): Removed.
3075 1999-09-13  Dave Love  <fx@gnu.org>
3077         * xfns.c (x_put_x_image): Make type consistent with declaration.
3079         * fns.c (Fmake_hash_table): Fix string continuation.
3081 1999-09-13  Gerd Moellmann  <gerd@delysid.gnu.org>
3083         * xfns.c (QCfile): Moved to xdisp.c.
3084         (syms_of_xfns): Don't initialize QCfile.
3085         (check_x_frame): Change for Lisp_Object selected_frame.
3086         (check_x_display_info, x_get_resource_string): Ditto.
3088 1999-09-13  Gerd Moellmann  <gerd@gnu.org>
3090         * minibuf.c (choose_minibuf_frame): Don't try to set the
3091         mini-buffer window's buffer, if the buffer is invalid.
3093         * xfns.c (QCfile): Moved to xdisp.c.
3094         (syms_of_xfns): Don't initialize QCfile.
3096         * xdisp.c (QCfile): Move here from xfns.c.
3097         (syms_of_xdisp): Initialize it.
3099         * lisp.h (selected_frame): Add external declaration.
3101         * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
3102         (Fx_store_cut_buffer_internal): Ditto.
3103         (Fx_rotate_cut_buffers_internal): Ditto.
3105         * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
3106         selected_frame.
3107         (Finternal_set_lisp_face_attribute): Ditto.
3108         (Finternal_get_lisp_face_attribute): Ditto.
3109         (Finternal_lisp_face_empty_p): Ditto.
3110         (Fdump_face): Ditto.
3112         * term.c (OUTPUT): Change for Lisp_Object selected_frame.
3113         (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
3114         set_terminal_window, set_scroll_region, reassert_line_highlight,
3115         change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
3116         clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
3117         encode_terminal_code, write_glyphs, term_init): Ditto.
3119         * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
3120         (kbd_input_ast, read_input_waiting): Ditto.
3122         * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
3123         selected_frame.
3124         (read_minibuf): Ditto.
3126         * keyboard.c (command_loop_1): Change for Lisp_Object
3127         selected_frame.
3128         (cmd_error_internal, command_loop_1, read_char,
3129         kbd_buffer_get_event, read_avail_input,
3130         read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
3131         interrupt_signal, quit_throw_to_read_char): Ditto.
3133         * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
3134         (Ffontset_info): DItto.
3136         * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
3138         * dispnew.c (selected_frame): Make it a Lisp_Object.
3139         (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
3140         (direct_output_for_insert, direct_output_forward_char,
3141         init_display): Ditto.
3143         * data.c (swap_in_symval_forwarding): Change for Lisp_Object
3144         selected_frame.
3145         (set_internal): Ditto.
3147         * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
3148         (record_buffer): Ditto.
3150         * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
3151         (do_switch_frame): Change for Lisp_Object selected_frame.
3152         (Fselected_frame): Ditto.
3153         (Fframe_first_window): Use SELECTED_FRAME.
3154         (Fframe_root_window): Change for Lisp_Object selected_frame.
3155         (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
3156         Fprevious_frame, other_visible_frames, Fdelete_frame,
3157         Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
3158         Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
3159         Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
3160         Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
3161         Fset_frame_height, Fset_frame_width): Ditto.
3163 1999-09-13  Gerd Moellmann  <gerd@gnu.org>
3165         * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
3166         (message3_nolog, message_with_string, message,
3167         setup_echo_area_for_printing, truncate_echo_area,
3168         prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
3170         * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
3171         (Fx_popup_dialog): Ditto.
3173         * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
3174         (check_x_display_info, x_get_resource_string): Ditto.
3176         * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
3177         (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
3178         (XRINGBELL): Removed.
3180         * window.c (Fminibuffer_window): Change for Lisp_Object
3181         selected_frame.
3182         (Fwindow_at, Fprevious_window, window_loop, select_window_1,
3183         display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
3184         Fcurrent_window_configuration, init_window_once): Ditto.
3186         * frame.h (SELECTED_FRAME): New.
3188 1999-09-12  Ken Raeburn  <raeburn@gnu.org>
3190         * category.c (word_boundary_p): Use XCAR and XCDR.
3191         * ccl.c (ccl_driver, resolve_symbol_ccl_program,
3192         Fregister_code_conversion_map): Likewise.
3193         * coding.c (setup_coding_system, detect_coding_system,
3194         Ffind_operation_coding_system, Fset_coding_priority_internal):
3195         Likewise.
3196         * doc.c (get_doc_string, Fdocumentation,
3197         store_function_docstring): Likewise.
3198         * editfns.c (save_restriction_restore): Likewise.
3199         * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
3200         skip_debugger, find_handler_clause, Fautoload, Fapply,
3201         run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
3202         Likewise.
3203         * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
3204         Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
3205         Fread_file_name): Likewise.
3206         * filelock.c (unlock_all_files): Likewise.
3207         * insdel.c (Fcombine_after_change_execute): Likewise.
3208         * intervals.c (adjust_intervals_for_insertion): Likewise.
3209         * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
3210         Fset_keymap_parent, fix_submap_inheritance, access_keymap,
3211         store_in_keymap, Fcopy_keymap, define_as_prefix,
3212         current_minor_maps, Faccessible_keymaps,
3213         accessible_keymaps_char_table, Fkey_description,
3214         Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
3215         describe_buffer_bindings, describe_map_tree, shadow_lookup,
3216         describe_map): Likewise.
3217         * lread.c (Fload, load_unwind, close_load_descs, read_vector,
3218         read_list, init_lread): Likewise.
3219         * search.c (Fmatch_data): Likewise.
3220         * sunfns.c (Fsun_menu_internal): Likewise.
3221         * syntax.c (describe_syntax): Likewise.
3222         * undo.c (record_insert, record_delete, Fundo_boundary,
3223         truncate_undo_list): Likewise.
3224         * vmsproc.c (child_sig): Likewise.
3226         * editfns.c (Fformat): Use XFLOAT_DATA.
3228 1999-09-12  Gerd Moellmann  <gerd@gnu.org>
3230         * keyboard.c (command_loop_1): Resize mini-window to the
3231         exact size of a message displayed, if any.
3233         * xdisp.c (resize_mini_window): Add parameter exact_p.  Resize
3234         to exact size if exact_p is non-zero.
3235         (display_echo_area_1): Call resize_mini_window with
3236         new parameter.
3237         (redisplay_internal): Ditto.
3238         (resize_echo_area_axactly): New.
3240         * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
3241         new parameter.
3243         * dispextern.h: Change prototype of resize_mini_window.
3244         Add prototype for resize_echo_area_axactly.
3246         * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
3247         (syms_of_xfaces): Defsubr accordingly.
3249         * xdisp.c (hscroll_window_tree): Choose cursor row from
3250         desired or current matrix.
3251         (redisplay_internal): Hscroll before updating.
3253 1999-09-12  Gerd Moellmann  <gerd@gnu.org>
3255         * syntax.c (Fforward_word): Use prompt_end_charpos instead
3256         of minibuffer_prompt_length.
3258         * minibuf.c (read_minibuf): Use prompt_end_charpos instead
3259         of minibuffer_prompt_length.
3260         (read_minibuf_unwind): Ditto.
3261         (Fminibuffer_complete_and_exit): Ditto.
3262         (Fminibuffer_complete_word): Ditto.
3263         (Fminibuffer_prompt_end): Ditto.
3265         * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
3266         of minibuffer_prompt_length.
3267         (Fline_beginning_position): Ditto.
3269         * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
3270         of minibuffer_prompt_length.
3271         (Fmake_indirect_buffer): Ditto.
3272         (Fkill_buffer): Ditto.
3273         (Ferase_buffer): Ditto.
3275         * buffer.h (prompt_end_charpos): Replaces
3276         minibuffer_prompt_length.
3278         * minibuf.c (read_minibuf): Return mini-buffer contents 
3279         without the prompt.
3281         * editfns.c (make_buffer_string_both): Take out the code
3282         to handle mini-buffer prompts.
3283         (Fbuffer_string): Handle the prompt here, instead.
3285         * xfaces.c (lface_from_face_name): Resolve face aliases.
3286         (Qmode_line): Replaces Qmodeline.
3287         (realize_basic_faces): Use Qmode_line.
3288         (syms_of_xfaces): Initialize Qmode_line.
3290 1999-09-12  Gerd Moellmann  <gerd@gnu.org>
3292         * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
3293         current column after inserting prompt.
3294         (Fminibuffer_prompt_width): Return minibuf_prompt_width.
3296         * xfaces.c (Qframe_update_face_colors): New.
3297         (syms_of_xfaces): Initialize call.
3298         (update_face_from_frame_parameter): Call that function when
3299         the frame's background changes.
3301 1999-09-12  Richard Stallman  <rms@gnu.org>
3303         * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
3305 1999-09-12  Ken Raeburn  <raeburn@gnu.org>
3307         * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
3308         mark_object, mark_buffer): Use XCAR and XCDR.
3309         * bytecode.c (Fbyte_code): Likewise.
3310         * callint.c (Fcall_interactively, Fprefix_numeric_value):
3311         Likewise.
3312         * callproc.c (Fcall_process, Fcall_process_region, child_setup,
3313         getenv_internal): Likewise.
3314         * dired.c (file_name_completion): Likewise.
3315         * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
3316         assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
3317         Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
3318         * indent.c (Fcompute_motion): Likewise.
3319         * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
3320         list_processes_1, Fstart_process, Fopen_network_stream,
3321         wait_reading_process_input, read_process_output_call,
3322         kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
3323         status_notify, wait_reading_process_input): Likewise.
3324         * textprop.c (PLIST_ELT_P, property_value, set_properties,
3325         extend_property_ranges): Likewise.
3326         * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
3327         * w32fns.c (x_window_to_frame, x_set_frame_parameters,
3328         x_report_frame_params, x_set_cursor_type, x_icon_type,
3329         x_figure_window_size, Fx_create_frame, w32_load_system_font,
3330         w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
3331         w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
3332         Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
3333         x_display_info_for_name, Fx_display_list): Likewise.
3334         * w32menu.c (menubar_id_to_frame, single_keymap_panes,
3335         Fx_popup_menu, Fx_popup_dialog): Likewise.
3336         * w32proc.c (Fw32_set_keyboard_layout): Likewise.
3337         * w32term.c (x_window_to_scroll_bar, w32_read_socket,
3338         w32_term_init, x_delete_display): Likewise.
3339         * xfns.c (x_window_to_frame, x_any_window_to_frame,
3340         x_non_menubar_window_to_frame, x_menubar_window_to_frame,
3341         x_top_window_to_frame, x_set_frame_parameters,
3342         x_report_frame_params, x_set_cursor_type, x_icon_type,
3343         x_figure_window_size, Fx_create_frame, x_display_info_for_name,
3344         Fx_display_list, x_create_tip_frame): Likewise.
3345         * xmenu.c (menubar_id_to_frame, single_keymap_panes,
3346         Fx_popup_menu, Fx_popup_dialog): Likewise.
3347         * xselect.c (x_own_selection, x_get_local_selection,
3348         x_handle_selection_request, x_handle_selection_clear,
3349         x_clear_frame_selections, wait_for_property_change_unwind,
3350         wait_for_property_change, x_handle_property_notify,
3351         copy_multiple_data, x_get_foreign_selection,
3352         lisp_data_to_selection_data, clean_local_selection_data,
3353         x_handle_selection_notify, Fx_get_selection_internal,
3354         x_disown_buffer_selections): Likewise.
3355         * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
3356         x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
3357         Likewise.
3359         * alloc.c (make_float, make_pure_float, Fpurecopy): Use
3360         XFLOAT_DATA.
3361         * bytecode.c (Fbyte_code): Likewise.
3362         * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
3363         fmod_float): Likewise.
3365 1999-09-11  Richard Stallman  <rms@gnu.org>
3367         * xdisp.c (run_window_scroll_functions): If hook functions switch
3368         buffers, switch back after.
3370 1999-09-11  Ken Raeburn  <raeburn@gnu.org>
3372         * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
3373         * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
3374         (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
3375         * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
3376         POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
3377         XCDR.
3378         * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
3379         XCDR.
3381 1999-09-10  Richard Stallman  <rms@gnu.org>
3383         * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
3384         not RevertToPointerRoot.
3385         (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3386         Fix the code to clear around the scroll bar.
3388 1999-09-10  Keisuke Nishida  <kxn30@po.cwru.edu>
3390         * print.c: Support print-circle and related features.
3391         (Vprint_gensym_alist): Removed.
3392         (Vprint_circle, Vprint_continuous_numbering, print_number_index
3393         Vprint_number_table): New variables.
3394         (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
3395         (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
3396         (print, print_preprocess, print_preprocess_string, print_object):
3397         New/modified functions with print-circle feature.  Use
3398         Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
3399         (syms_of_print): Defined new Lisp variables `print-circle',
3400         `print-continuous-numbering', `print-number-table'.
3402 1999-09-10  Gerd Moellmann  <gerd@gnu.org>
3404         * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
3405         as background color specification instead of an integer.
3406         (image-cache-eviction-delay): Replaces image-eviction-seconds.
3407         (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
3408         (clear_image_cache, syms_of_xfns): Use it.
3409         (Qpostscript): Replaces Qghostscript.
3410         (gs_type): Use it.
3411         (gs_image_p): Ditto.
3412         (syms_of_xfns): Initialize Qpostscript.
3414 1999-09-10  Richard Stallman  <rms@gnu.org>
3416         * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
3418 1999-09-09  Richard Stallman  <rms@gnu.org>
3420         * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
3422         * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
3424 1999-09-09  Gerd Moellmann  <gerd@gnu.org>
3426         * fns.c (Fmakehash): Accept just one optional argument TEST.
3428         * xfns.c (QCindex): New.
3429         (syms_of_xfns): Initialize QCindex.
3430         (gif_load): Use it instead of `:image'.
3432 1999-09-09  Richard Stallman  <rms@gnu.org>
3434         * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
3435         (Fwrite_region) [DOS_NT]: Handle `excl' here too.
3437 1999-09-08  Gerd Moellmann  <gerd@gnu.org>
3439         * xdisp.c (Qwhen): Replaces QCwhen.
3440         (syms_of_xdisp): Initialized it instead of QCwhen.
3441         (handle_single_display_prop): Use it instead of QCwhen.
3443 1999-09-08  Ken'ichi Handa  <handa@gnu.org>
3445         * charset.c (translate_char): Reset MSBs of arguments of
3446         MAKE_CHAR.
3447         (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
3449 1999-09-08  Lars Magne Ingebrigtsen  <larsi@gnus.org>
3451         * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
3453         * fns.c (Fbase64_decode_region): Don't place point outside of the
3454         current accessible portion.
3456 1999-09-07  Richard Stallman  <rms@gnu.org>
3458         * keymap.c (fix_submap_inheritance): Do nothing if the proper
3459         parent is an ancestor of SUBMAP; otherwise, add it as the
3460         ultimate ancestor.
3462 1999-09-07  Gerd Moellmann  <gerd@gnu.org>
3464         * xdisp.c (handle_single_display_prop): Change conditional
3465         display property to `:when FORM . VALUE'.
3467 1999-09-07  Richard Stallman  <rms@gnu.org>
3469         * fileio.c (Fwrite_region): Doc fix.
3471 1999-09-07  Stefan Monnier  <monnier@cs.yale.edu>
3473         * fileio.c (Qexcl): New variable.
3474         (report_file_error): Handle EEXIST specially.
3475         (Fwrite_region): Special handling for CONFIRM = `excl'.
3476         (syms_of_fileio): Initialize Qexcl.
3478 1999-09-07  Gerd Moellmann  <gerd@gnu.org>
3480         * xfns.c (x_set_foreground_color): Call
3481         update_face_from_frame_parameter.
3482         (x_set_background_color): Ditto.
3483         (x_set_mouse_color): Ditto.
3484         (x_set_cursor_color): Ditto.
3485         (x_set_border_color): Ditto.
3486         (x_set_scroll_bar_foreground): Ditto.
3487         (x_set_scroll_bar_background): Ditto.
3489         * xfaces.c (recompute_basic_faces): Clear face cache.
3490         (Finternal_set_lisp_face_attribute): Modify frame parameters
3491         if attributes of certain faces are changed.
3492         (update_face_from_frame_parameter): New.
3494         * xfaces.c (realize_basic_faces): Realize new basic faces.
3496         * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
3497         CURSOR_FACE_ID, MOUSE_FACE_ID): New.
3499         * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
3500         (syms_of_xfaces): Intialize new symbols.
3502         * fns.c (Fmakehash): Take one argument, test, make all the
3503         rest keyword arguments.
3505         * window.c (Fset_window_margins): Make window the first argument.
3506         (set_window_buffer): Call Fset_window_margins with window as first
3507         argument.
3509 1999-09-07  Gerd Moellmann  <gerd@gnu.org>
3511         * xfaces.c (Qfringe): Replaces Qmargin.
3513 1999-09-07  Kenichi Handa  <handa@etl.go.jp>
3515         * charset.h: Lots of comments fixed.
3516         (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
3517         (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
3519         * charset.c : Lots of comments fixed.
3520         (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
3521         (CHAR_COMPONENTS_VALID_P): Name changed from
3522         CHAR_COMPONENT_VALID_P.  Caller changed.
3524 1999-09-06  Richard Stallman  <rms@gnu.org>
3526         * insdel.c (syms_of_insdel): Define Lisp variable
3527         inhibit-modification-hooks.
3529 1999-09-06  Michael Sperber [Mr. Preprocessor]  <sperber@informatik.uni-tuebingen.de>
3531         * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
3532         unexaix.c.
3534         * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
3536 1999-09-06  Dave Love  <fx@gnu.org>
3538         * unexaix.c: New version incorporating Michael Sperber's changes
3539         from XEmacs.  Should solve problems on AIX 4.3.
3541         * lread.c (Vbyte_boolean_vars): New variable.
3542         (defvar_bool, syms_of_lread): Use it.
3544 1999-09-05  Richard Stallman  <rms@gnu.org>
3546         * minibuf.c (read_minibuf): Put all three properties on the
3547         same range, the whole prompt.
3549 1999-09-05  Gerd Moellmann  <gerd@gnu.org>
3551         * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
3552         (Fplay_sound, syms_of_sound): Use it.
3553         (parse_sound): Allow float volume values in the range [0, 1].
3554         (Fplay_sound): Ditto.
3556         * window.c (Fset_window_vscroll): Make window the first argument,
3557         amount to scroll the second.  Take non-negative vscroll as
3558         argument.
3559         (Fwindow_vscroll): Return non-negative vscroll.
3561         * xfns.c (Fx_show_tip): Improve documentation.
3563 1999-09-05  Gerd Moellmann  <gerd@gnu.org>
3565         * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
3566         window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
3567         `top-line' and `top_line' to `header-line' and `header_line'.
3568         Likewise for similar spellings.
3570 1999-09-05  Gerd Moellmann  <gerd@gnu.org>
3572         * xdisp.c (row_containing_pos): New.
3573         (try_window_id): Use it.
3575         * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
3576         lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
3577         Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
3578         Likewise for upper-case etc.
3580 1999-09-05  Gerd Moellmann  <gerd@gnu.org>
3582         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3583         Fix reference to renamed variable.
3585 1999-09-04  Gerd Moellmann  <gerd@gnu.org>
3587         * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
3588         (window_fixed_size_p): Use Qwindow_size_fixed instead of 
3589         Qfixed_window_size.
3590         (syms_of_window): Ditto.
3592         * fns.c (Fmakehash): Exchange optional test and size arguments.
3594 1999-09-03  Gerd Moellmann  <gerd@gnu.org>
3596         * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
3597         under newly created scroll bar.
3598         (expose_window): If window is not yet fully initialized, do
3599         nothing.  This can happen when toolkit scroll bars are used and a
3600         window is split.  Reconfiguring the scroll bars will generate an
3601         expose for a newly created window.
3603         * frame.h (struct frame): New member `gamma'.
3605         * xfns.c: Include math.h.  Add extern declaration for atof in case
3606         we don't see one.
3607         (Qscreen_gamma): New.
3608         (struct x_frame_parm_table): Add prototypes, add
3609         x_set_screen_gamma.
3610         (gamma_correct): New function.
3611         (defined_color): Call it.
3612         (x_set_screen_gamma): New.
3613         (x_set_title): Add parameter old_value.
3614         (RES_TYPE_FLOAT): New.
3615         (x_get_arg): Handle RES_TYPE_FLOAT.
3616         (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
3617         (lookup_pixel_color): Change call to x_alloc_nearest_color to
3618         new prototype.
3619         (lookup_rgb_color): Ditto.
3620         (syms_of_xfns): Initialize Qscreen_gamma.
3622         * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
3623         New.  Allocate color for lwlib widgets.
3624         (x_alloc_nearest_color): Change parameter list include the
3625         frame on which to allocate colors.  Gamma-correct colors.
3626         (x_alloc_lighter_color): Call x_alloc_lighter_color with new
3627         parameter list.
3629         * xterm.h: Change protorype of x_alloc_nearest_color.
3631 1999-09-03  Richard Stallman  <rms@gnu.org>
3633         * callproc.c: Delete the system-independent include of stdlib.h
3634         (leaving only the one in the WINDOWSNT conditional).
3636 1999-09-03  Andrew Choi  <choi@cs.hku.hk>
3638         * callproc.c (call-process) [macintosh]: Call mac_run_command in
3639         sysdep.c.  The Mac code is modeled after the DOS code.
3640         
3641         * dispextern.h [macintosh]: Include macterm.h to define substitute X
3642         Window types and macros.
3644         * frame.h: Do nothing if included a second time.
3645         (enum output_method): Add mac_output frame type.
3646         (union output_data): Add new alternative `mac'.
3647         (FRAME_MAC_P): New macro.
3648         
3649         * frame.c (Fframep) [macintosh]: Handle mac frame type.
3650         (syms_of_frame_1): Initialize Qmac.
3651         (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
3652         (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
3653         (Fmodify_frame_parameters) [macintosh]: Call
3654         mac_set_frame_parameter in macterm.c.
3655         
3656         * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
3657         (512) because Mac compilers limit local data of a function to 32K.
3658         
3659         * make-docfiles.c: Correctly handle input files with Mac-style
3660         eol's.
3661         
3662         * sysdep.c: Define numerous routines to emulate Unix system calls.
3663         
3664         * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
3665         file of an X Window environment.
3666         
3667         * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
3668         x-display-grayscale, x-color-defined-p, and x-color-values.
3669         
3670         * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
3671         (open, creat, unlink, read, write, rename, fopen, pause, alarm)
3672         (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
3673         (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
3674         (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
3675         New functions, replacing POSIX features.
3676         
3677         * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
3678         (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
3679         (InitEmacsPasswdDir, run_mac_command): New subroutines.
3681         * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
3682         (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
3683         (myPasswdDir, TempDirName, sys_siglist): New variables.
3685         * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
3686         (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
3687         (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
3688         Define empty stubs so Emacs will link.
3690 1999-09-03  Gerd Moellmann  <gerd@gnu.org>
3692         * xdisp.c: Use XCAR and XCDR instead of XCONS.
3694         * window.h: New member frozen_window_start_p.
3696         * window.c (foreach_window, foreach_window_1): New.
3697         (freeze_window_start, freeze_window_starts): New.
3698         (make_window): Initialize frozen_window_start_p.
3699         (replace_window): Ditto.
3700         (Fset_window_point): Remove references to deleted variables.
3701         (Fset_window_start): Ditto.
3703         * xdisp.c (Vresize_mini_config, resize_mini_frame,
3704         resize_mini_initial_height): Removed.
3705         (syms_of_xdisp): Remove references to these variables.
3706         (resize_mini_window): Don't save window configuration, freeze
3707         window starts instead.  Enlarge window until displaying an empty
3708         buffer, then shrink it.  Make the function externally visible.
3709         (redisplay_window): Treat frozen window start like forced start,
3710         but accept point outside of the window.
3712         * dispextern.h: Add function prototype for resize_mini_window.
3714         * minibuf.c (read_minibuf_unwind): Resize mini-window when
3715         reaching minibuf_level 0.
3717         * lisp.h: Remove extern declarations for variables deleted from
3718         xdisp.c.
3720         * dispnew.c (adjust_frame_glyphs): Remove reference to
3721         Vresize_mini_config.
3723 1999-09-03  Gerd Moellmann  <gerd@gnu.org>
3725         * xfns.c (x_set_scroll_bar_width): Change conditional compilation
3726         to USE_TOOLKIT_SCROLL_BARS.
3728         * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
3729         here.
3730         (XTset_vertical_scroll_bar): Clarify position computations.  Clear
3731         under newly created scroll bar.  Put toolkit scroll bars in the
3732         middle of the area reserved for the scroll bar.
3734 1999-09-03  Kenichi Handa  <handa@etl.go.jp>
3736         The following changes are for the new handling of mulitbyte
3737         sequence.  Now, except for a composite character, no multibyte
3738         character in string/buffer has trailing garbage bytes.  For
3739         instance, the length of string "\201\300\300" is now 2, the first
3740         character is Latin-1 A-grave, the second is raw \300.
3742         * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
3743         are negative.
3744         (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
3745         (VALID_MULTIBYTE_CHAR_P): This macro deleted.
3746         (PARSE_COMPOSITE_SEQ): New macro.
3747         (PARSE_CHARACTER_SEQ): New macro.
3748         (PARSE_MULTIBYTE_SEQ): New macro. 
3749         (CHAR_PRINTABLE_P): New macro.
3750         (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
3751         (STRING_CHAR_AND_LENGTH): Likewise.
3752         (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
3753         (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
3754         (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
3756         * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
3757         (SPLIT_CHARACTER_SEQ): New macro.
3758         (SPLIT_MULTIBYTE_SEQ): New macro.
3759         (CHAR_COMPONENT_VALID_P): New macro.
3760         (non_ascii_char_to_string): Generate a multibyte sequence as far
3761         as possible.
3762         (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
3763         deleted.  Caller changed.  Use the macro SPLIT_MULTIBYTE_SEQ.
3764         (split_non_ascii_string): Likewise.
3765         (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
3766         (char_printable_p): New function.
3767         (translate_char): Check character by NATNUMP instead of INTEGERP.
3768         (unibyte_char_to_multibyte): Call char_valid_p instead of
3769         VALID_MULTIBYTE_CHAR_P.
3770         (Fmake_char_internal): Check the arguments more rigidly.
3771         (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
3772         (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
3773         (Fmultibyte_char_to_unibyte): Check the validity of character by
3774         CHAR_VALID_P.
3775         (chars_in_text): Call multibyte_chars_in_text.
3776         (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
3777         (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
3778         STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
3780         * data.c (Faset): Adjust the way to check byte-combining
3781         possibility for the new handling of multibyte sequence.
3783         * editfns.c (Fsubst_char_in_region): Likewise.
3785         * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
3786         (string_char_to_byte): Likewise.
3787         (string_byte_to_char): Likewise.
3789         * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C.  Use the
3790         macro STRING_CHAR_AND_LENGTH.  Caller changed.
3792         * insdel.c (count_combining_composition): New function.
3793         (count_combining_before): Adjust the way to check byte-combining
3794         possibility for the new handling of multibyte sequence.  Call
3795         count_combining_composition for a composite character.
3796         (count_combining_after): Likewise.
3798         * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
3799         (print): Likewise.
3801         * dispextern.h (struct it): Change the size of the member
3802         `ctl_chars'.
3804         * xdisp.c (get_next_display_element): Display incomplete multibyte
3805         sequence (e.g. \222\300) by octal form.
3807 1999-09-02  Gerd Moellmann  <gerd@gnu.org>
3809         * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
3811         * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
3812         (cmpfn_eql, sxhash): Use XFLOAT_DATA.
3814 1999-09-02  Gerd Moellmann  <gerd@gnu.org>
3816         * buffer.c (set_buffer_internal): Never set
3817         windows_or_buffers_changed.
3819         * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
3820         if we have displayed to the bottom of the window.
3822         * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
3823         in both directions.  Extend documentation.
3825 1999-09-01  Gerd Moellmann  <gerd@gnu.org>
3827         * minibuf.c (read_minibuf): Flush display after setting cursor to
3828         column 0.
3830 1999-08-31  Gerd Moellmann  <gerd@gnu.org>
3832         * s/freebsd.h (__FreeBSD_version): Don't define it if it is
3833         already defined.  This avoids a warning from buffer.c.
3835 1999-08-30  Gerd Moellmann  <gerd@gnu.org>
3837         * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
3838         of both margins.
3839         (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
3840         (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
3841         (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
3843         * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
3844         once instead of twice.
3845         (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
3847         * xterm.c: Remove unused bitmaps.
3848         (continued_bits, continuation_bits, overlay_bits): Change images.
3849         (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
3850         instead of FRAME_X_FLAGS_AREA_WIDTH.
3851         (x_after_update_window_line): Ditto.
3852         (x_draw_bitmap): Likewise.
3853         (x_draw_row_bitmaps): Likewise.
3854         (x_draw_glyph_string_box): Likewise.
3855         (x_draw_glyphs): Likewise.
3856         (x_scroll_run): Likewise.
3857         (expose_window_tree): Likewise.
3858         (note_mode_line_highlight): Likewise.
3859         (XTset_vertical_scroll_bar): Likewise.
3860         (x_clip_to_row): Likewise.
3861         (x_set_window_size): Likewise.
3863         * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
3864         of 2 * that value.
3866         * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
3867         2 * that value.
3868         (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
3869         FRAME_FLAGS_AREA_WIDTH.
3871         * window.c (coordinates_in_window): Use
3872         FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
3873         (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
3874         instead of twice.
3876         * widget.c (set_frame_size): Set flags_area_extra to 
3877         FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
3878         (EmacsFrameSetCharSize): Ditto.
3880         * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
3881         instead of FRAME_FLAGS_AREA_WIDTH.
3883         * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
3884         FRAME_FLAGS_AREA_COLS once.
3885         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
3886         FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
3888 1999-08-30  Gerd Moellmann  <gerd@gnu.org>
3890         * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
3891         in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
3893 1999-08-30  Gerd Moellmann  <gerd@gnu.org>
3895         * fns.c (QCweakness): Replaces QCweak.
3896         (Fmake_hash_table): Ditto.
3897         (Fmakehash): Ditto.
3898         (syms_of_fns): Ditto.
3900 1999-08-29  Richard Stallman  <rms@gnu.org>
3902         * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
3904         * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
3906         * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
3907         Add support for nested comments.
3909         * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
3910         Consolidate the forward comment code into the new `forw_comment'.
3911         (forw_comment): New subroutine.  Added support for nested comments.
3912         (lisp_parse_state, back_comment, Fmodify_syntax_entry)
3913         (Fparse_partial_sexp): Add support for nested comments.
3915 1999-08-28  Ken Raeburn  <raeburn@gnu.org>
3917         * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
3918         names of structure elements if HIDE_LISP_IMPLEMENTATION is
3919         defined, to help detect code that uses knowledge of the Lisp
3920         internals that it shouldn't have.
3921         (XFLOAT_DATA): New macro.
3923 1999-08-25  Gerd Moellmann  <gerd@gnu.org>
3925         * syntax.c (Fforward_word): If in a mini-buffer and moving
3926         backwards, stop in front of the prompt to prevent accidentially
3927         moving into the read-only prompt.
3929         * window.c (Frecenter): Clear frame if called with nil or no arg.
3931         * xdisp.c (resize_mini_window): Don't resize if
3932         Vmax_mini_window_height is nil.  Otherwise, use a default if
3933         Vmax_mini_window_height is not ot a number.
3934         (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
3936 1999-08-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
3938         * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
3939         * m/iris4d.h: Use unexelf for IRIX 5.*.
3940         * m/iris5d.h: Use unexelf for IRIX 6.*.
3941         * unexsgi.c: Deleted.
3943         * unexelf.c: Auto-detect .sbss section.
3944         (round_up): Make it static.
3945         (unexec): Declare alignment as Elf Word.  Skip ``Program
3946         segment above .bss'' test on MIPS without .sbss.
3947         Copy sections .got and .sdata1 sections.  Adjust offsets in
3948         sections .sdata, .lit4, .lit8, .got and .sdata1.
3950 1999-08-25  Gerd Moellmann  <gerd@gnu.org>
3952         * xdisp.c (try_window_id): Remove typo.
3954 1999-08-24  Gerd Moellmann  <gerd@gnu.org>
3956         * xdisp.c (try_window_id): Recognize case that PT == ZV and in
3957         unchanged text at the bottom when computing the cursor position.
3958         (message3_nolog): Raise frame only if minibuffer_auto_raise is
3959         set.
3961         * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
3963 1999-08-24  Gerd Moellmann  <gerd@gnu.org>
3965         * xfaces.c (Qmargin): Replacement for Qbitmap_area.
3966         (realize_basic_faces): Replace Qmargin for Qbitmap_area.
3967         (syms_of_xfaces): Ditto.
3969         * window.c (Fset_window_point): Reset Vresize_mini_config.
3970         (Fset_window_start): Ditto.
3971         (set_window_buffer): Ditto.
3973         * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
3975         * xdisp.c (redisplay_window): Don't ever test just_this_one_p
3976         before calling try_window.
3977         (echo_area_display): If height has changed, update other windows.
3978         (resize_mini_frame, resize_mini_initial_height): New.
3979         (resize_mini_window): Save/restore window configuration
3980         differently.
3982         * lisp.h (Vresize_mini_config, resize_mini_frame, 
3983         resize_mini_initial_height): Add extern declarations.
3985         * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
3986         CANON_X_UNIT.
3988         * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
3989         being redefined in jconfig.h.
3991 1999-08-23  Ken'ichi Handa  <handa@gnu.org>
3993         * coding.h: Include "ccl.h" instead of "../src/ccl.h".
3995 1999-08-22  Gerd Moellmann  <gerd@gnu.org>
3997         * alloc.c (mark_glyph_matrix): Mark strings only.
3999         * xdisp.c (redisplay_internal): Clear garbaged frames after
4000         resizing mini-window.
4002 1999-08-22  Gerd Moellmann  <gerd@gnu.org>
4004         * xdisp.c (unwind_with_echo_area_buffer): Use
4005         set_buffer_internal_1 instead of set_buffer_internal.
4006         (with_echo_area_buffer): Ditto.
4008         * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
4009         only if buffer is displayed somewhere.
4011         * buffer.h (BUF_COMPUTE_UNCHANGED): New.
4013         * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
4014         (gap_right): Ditto.
4015         (modify_region): Ditto.
4017         * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
4019         * xdisp.c (Vresize_mini_config): New.
4020         (resize_mini_window): Use it to save restore original window
4021         configuration
4022         (syms_of_xdisp): Initialize it.
4024         * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
4026         * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
4028         * xdisp.c (reconsider_clip_changes): New.
4029         (redisplay_internal, redisplay_window): Call it.
4030         (mark_window_display_accurate, redisplay_internal): Set current
4031         matrix' buffer, begv, zv.
4033         * window.c (Fset_window_hscroll): Set
4034         prevent_redisplay_optimizations_p instead of clip_changed.
4035         (Fset_window_hscroll): Ditto.
4036         (temp_output_buffer_show): Ditto.
4037         (Fset_window_vscroll): Ditto.
4039         * buffer.c (reset_buffer): Set clip_changed to 0 and
4040         prevent_redisplay_optimizations_p to 1.
4041         (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
4043         * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
4044         BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
4045         BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
4046         END_UNCHANGED): New.
4047         (struct buffer_text):  Add beg_unchanged, end_unchanged,
4048         unchanged_modified, overlay_unchanged_modified.
4050         * window.h (beg_unchanged, end_unchanged, unchanged_modified,
4051         overlay_unchanged_modified): Removed.
4052         (with_echo_area_unwind_data): Don't save beg/end_unchanged.
4053         (unwind_with_echo_area_buffer): Don't restore them.
4054         (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
4055         (text_outside_line_unchanged_p, redisplay_internal,
4056         try_scrolling): Use/set buffer-specific beg/end_unchanged.
4057         (redisplay_window): Let try_window_id be called if more than one
4058         window is displayed.  Use/set buffer-specific beg/end_unchanged.
4059         (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
4060         try_window_id):
4061         Use buffer-specific beg/end_unchanged.
4063         * window.h (beg_unchanged, end_unchanged, unchanged_modified,
4064         overlay_unchanged_modified): Remove extern declarations.
4066         * keyboard.c (command_loop_1):  Set beg/end_unchanged per
4067         buffer.
4069         * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
4070         (gap_right): Ditto.
4071         (adjust_after_replace): Likewise.
4072         (replace_range, del_range_2, modify_region): Likewise.
4074         * dispnew.c (direct_output_for_insert):  Set beg_unchanged
4075         and unchanged_modified per buffer.
4077         * coding.c (code_convert_region): Compute beg/end_unchanged per
4078         buffer.
4080         * buffer.c (modify_overlay): Compute beg/end_unchanged
4081         per buffer.
4082         (Fget_buffer_create): Initialize new members of the buffer 
4083         structure.
4085 1999-08-22  Gerd Moellmann  <gerd@gnu.org>
4087         * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
4089         * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
4090         (Qkey_value_weak):  Removed.
4091         (make_hash_table): Use nil, `key', `value', t for weakness.
4092         (Fmake_hash_table): Ditto.
4093         (copy_hash_table): New.
4094         (Fcopy_hash_table): New.
4096 1999-08-22  Gerd Moellmann  <gerd@gnu.org>
4098         * xfns.c: Call change_frame_size and do_pending_window_change with
4099         new parameter.  
4101 1999-08-21  Gerd Moellmann  <gerd@gnu.org>
4103         * xdisp.c (resize_mini_window): Do it for truncate-lines t as
4104         well.
4105         (redisplay_internal): Resize mini-window only if text might 
4106         have changed.
4107         (display_echo_area): Reset displayed echo_area_buffer to nil
4108         at the end if we're displaying a nil message.
4110 1999-08-21  Gerd Moellmann  <gerd@gnu.org>
4111         
4112         * fns.c (hash_lookup): Test with EQ before calling key comparion
4113         function.
4114         (hash_remove): Ditto.
4115         (cmpfn_eq): Removed.
4116         (cmpfn_eql): Don't test with EQ.
4117         (cmpfn_equal): Ditto.
4118         (make_hash_table): Set comparison function for `eq' to null.
4120         * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
4121         Remove conditional compilation on NO_PROMPT_IN_BUFFER.
4123         * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
4125         * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
4126         xterm.c: Call change_frame_size and do_pending_window_change with
4127         new parameter.
4129         * dispnew.c (do_pending_window_change): Add parameter `safe'.
4130         (change_frame_size): Ditto.
4131         (change_frame_size_1): Ditto.  Deley size changes if redisplaying
4132         and not called from a safe place.
4133         (window_change_signal): Call change_frame_size with new parameter.
4135         * dispextern.h: Change prototypes for do_pending_window_change
4136         and change_frame_size.
4138         * xfaces.c (face_at_buffer_position): Don't xassert that
4139         window's buffers equals current_buffer; this is not the 
4140         case during echo area display.
4142 1999-08-21  Gerd Moellmann  <gerd@gnu.org>
4144         * xdisp.c, minibuf.c: Remove conditional compilation on
4145         NO_PROMPT_IN_BUFFER.
4147         * minibuf.c (Fminibuffer_prompt_end): New.
4148         (syms_of_minibuf): Defsubr it.  Remove
4149         minibuffer-prompt-in-buffer.
4150         (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
4151         Extend documentation.
4153         * xdisp.c (get_next_display_element): Display \r as ^M.
4155         * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
4156         under scroll bar widget.
4158 1999-08-21  Gerd Moellmann  <gerd@gnu.org>
4160         * xdisp.c (minibuffer_scroll_overlap): Removed because not used
4161         anywhere.
4162         (unwind_redisplay): Return nil.
4163         (clear_garbaged_frames): New.
4164         (redisplay_internal): Use it.
4165         (echo_area_display): Ditto.
4166         (resize_mini_window): Mew.
4167         (display_echo_area_1): Use it to resize echo area window.
4168         (redisplay_internal): Use it to resize active mini-window.
4170         * dispextern.h, lisp.h: Add function prototypes.
4172         * dispnew.c (set_window_cursor_after_update): Do the 
4173         cursor_in_echo_area case only for a mini-window showing
4174         a message.  Don't let cursor end up after the end of a row.
4176         * xdisp.c (echo_area_glyphs, echo_area_message,
4177         echo_area_glyphs_length, previous_echo_glyphs,
4178         previous_echo_area_message, previous_echo_area_glyphs_length):
4179         Removed.
4180         (Vmessage_stack, echo_area_buffer, echo_buffer,
4181         display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
4182         (message2_nolog): Use set_message and clear_message.
4183         (message3): Rename parameter len to nbytes to make clear what
4184         it is.
4185         (message3_nolog): Ditto.  Use set_message and clear_message.
4186         (update_echo_area): Rewritten.
4187         (with_echo_area_buffer): New.
4188         (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
4189         (setup_echo_area_for_printing): New.
4190         (display_echo_area, display_echo_area_1): New.
4192         (current_message, current_message_1): New.
4193         (push_message, restore_message, pop_message, 
4194         check_message_stack): New.
4195         (truncate_echo_area): Rewritten.
4196         (truncate_message_1): New.
4197         (set_message, set_message_1, clear_message): New.
4198         (echo_area_display): Rewritten.
4199         (redisplay_internal): Check for needed echo area update
4200         differently.
4201         (redisplay_preserve_echo_area): Rewritten.
4202         (redisplay_window): Check for mini-window displaying echo area 
4203         message differently.
4204         (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
4205         Remove initialzation of removed variables.
4206         (init_xdisp): Remove references to removed variables.
4208         * dispnew.c (adjust_frame_message_buffer): Removed references
4209         to echo_area_glyphs and previous_echo_glyphs.
4210         (direct_output_for_insert): Check for mini-window displaying
4211         echo area message differently.
4212         (update_frame): Likewise.
4213         (set_window_cursor_after_update): Likewise.  In echo area,
4214         don't try to set cursor on rows that aren't enabled.
4216         * print.c: Remove conditional compilation on `standalone'.
4217         (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
4218         glyph_to_str_cpy):  Remove that section because GLYPHs are no 
4219         longer used in that way.
4220         (PRINTDECLARE): Add multibyte.
4221         (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
4222         (printbufidx): Removed.
4223         (printchar, strout): Rewritten.
4225         * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
4226         a struct kboard.
4227         (echo_kboard): New.
4228         (echo_now): Set echo_kboard to the current kboard.
4229         (cancel_echoing): Set echo_kboard to null.
4230         (cmd_error_internal): Use clear_message, remove references
4231         to echo_area_glyphs and echo_area_message.
4232         (command_loop_1): Check for echo area messages differently.
4233         (read_char): Likewise.
4234         (record_menu_key): Use clear_message.
4235         (Fexecute_extended_command):  Check for echo area messages
4236         differently.  Use push_message, restore_message, pop_message.
4238         * alloc.c (Fgarbage_collect): Use push_message, restore_message,
4239         pop_message.
4241         * emacs.c (shut_down_emacs): Call check_message_stack.
4243         * lisp.h: Add function prototypes and extern declarations for
4244         new functions and variables.
4246         * fileio.c (Fdo_auto_save): Use push_message, restore_message,
4247         pop_message.
4249         * minibuf.c (read_minibuf): Use clear_message instead of 
4250         setting echo_area_glyphs.
4251         (Fminibuffer_completion_help): Ditto.
4253         * editfns.c (Fcurrent_message): Rewritten.
4255         * frame.c, window.h: Remove references to echo_area_glyphs
4256         and previous_echo_glyphs.
4258 1999-08-21  Dave Love  <fx@gnu.org>
4260         * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
4261         * aix4-1.h: Likewise.
4263         * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
4265 1999-08-20  Gerd Moellmann  <gerd@gnu.org>
4267         * xfns.c: Remove tiff34 prefix from include.
4269 1999-08-20  Dave Love  <fx@gnu.org>
4271         * cm.c: Revert previous change.
4273 1999-08-19  Gerd Moellmann  <gerd@gnu.org>
4275         * xterm.c (XTset_vertical_scroll_bar): Fix previous change.  Clear
4276         under scroll bar with width FRAME_SCROLL_BAR_COLS.
4278 1999-08-18  Dave Love  <fx@gnu.org>
4280         * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
4281         stdlib.h.
4283         * doprnt.c: Use stdlib.h, unistd.h.
4285         * config.in: Add HAVE_TERMCAP_H.
4287         * cm.c: Use termcap.h.
4289 1999-08-18  Gerd Moellmann  <gerd@gnu.org>
4291         * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
4292         FRAME_X_WINDOW (f) being null at the of the function.  If widgets
4293         cannot be created we will already have crashed earlier.  Call
4294         lw_set_main_areas with a null menu-bar widget, so that we have
4295         a reasonable default.
4296         (Fx_create_frame): Rearranged so that Lisp errors during frame
4297         initialization cause less damage.  Initialize menu bar widget
4298         here.
4300 1999-08-18  Gerd Moellmann  <gerd@gnu.org>
4301         
4302         * dispnew.c (update_frame_line): Fix previous change.  If writing
4303         whole line clear to end of frame.
4305 1999-08-17  Gerd Moellmann  <gerd@gnu.org>
4307         * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
4308         and `right-bitmap-area' if position is in the bitmap areas.  This
4309         avoids an error when clicking on the bitmap areas.  Instead, they
4310         are currently treated like clicks inside the window.
4311         (coordinates_in_window): Return 5 and 6 for bitmap areas.
4312         (Qleft_bitmap_area, Qright_bitmap_area): New.
4313         (syms_of_window): Initialize new symbols.
4315         * dispnew.c (update_frame_line): If writing whole line,
4316         don't write trailing spaces unless we must.
4318         * xdisp.c (unwind_redisplay): New.  Resets flag redisplaying_p.
4319         (redisplay_internal): Register unwind_redisplay with
4320         register_unwind_protect.
4321         (try_window_reusing_current_matrix): If new start > old start,
4322         give up if start pos of first reusable row is not equal to new
4323         start.
4325         * eval.c (Fsignal): Don't reset redisplaying_p here.
4327         * xterm.c (expose_area): If row extends face to end of line,
4328         write the whole line.
4330 1999-08-16  Gerd Moellmann  <gerd@gnu.org>
4332         * dispextern.h (struct it): Remove member
4333         show_trailing_whitespace_p.
4335         * dispnew.c (direct_output_for_insert): Use
4336         Vshow_trailing_whitespace instead of former iterator member
4337         show_trailing_whitespace_p.
4338         (direct_output_forward_char): Don't do it if hightlighting
4339         trailing whitespace.
4341         * xdisp.c (Qshow_trailing_whitespace): Removed.
4342         (Vshow_trailing_whitespace): Added.
4343         (init_iterator): Remove initialization code for
4344         show_trailing_whitespace_p.
4345         (redisplay_internal): Don't try cursor movement in this_line
4346         if showing trailing whitespace.
4347         (redisplay_window): Likewise for cursor movement in current
4348         matrix and try_window_id.
4349         (try_window_reusing_current_matrix): Likewise.
4350         (trailing_whitespace_p): Return 0 if trailing whitespace is
4351         in front of point.
4352         (display_line): Use Vshow_trailing_whitespace instead of
4353         former iterator member show_trailing_whitespace_p.
4354         (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
4356 1999-08-16  Gerd Moellmann  <gerd@gnu.org>
4358         * window.c (Fpos_visible_in_window_p): Rewritten.
4360         * xfaces.c (add_to_log): Renamed from display_message.
4361         Don't display messages in echo area.
4363         * xterm.c (x_draw_glyph_string_box): Use the background width
4364         of the glyph string for the width of the box.
4366 1999-08-16  Stefan Monnier  <monnier@cs.yale.edu>
4368         * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
4370 1999-08-16  Geoff Voelker  <voelker@cs.washington.edu>
4372         * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
4373         background first, and then set other parameters that might
4374         depend upon their new values.
4376 1999-08-15  Gerd Moellmann  <gerd@gnu.org>
4378         * xfaces.c (Vfont_list_limit): New.
4379         (syms_of_xfaces): Make it a user-variable.
4380         (DEFAULT_FONT_LIST_LIMIT): New.
4381         (sorted_font_list): If Vfont_list_limit is an integer > 0, list
4382         maximally that number of fonts, otherwise use
4383         DEFAULT_FONT_LIST_LIMIT.
4384         (Fx_font_family_list): Bind `font-list-limit' to higher values 
4385         until we have all fonts.
4386         (Fxfont_list): Additionally return the full names of fonts and
4387         their registry and encoding.
4389         * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: 
4390         Simplify clearing "under" scroll bar.
4392         * window.c (Qfixed_window_size): New.
4393         (syms_of_window): Initialiaze it.
4394         (check_all_windows): Add return type void.
4395         (window_fixed_size_p): New.  Return non-zero if window
4396         is fixed-size.
4397         (window_min_size_1): New.
4398         (window_min_size): Handle fixed-size windows.
4399         (size_window): New. Rewritten combination of set_window_height and
4400         set_window_width that handles fixed-size windows.
4401         (set_window_height): Call it.
4402         (set_window_width): Call it.
4403         (Fsplit_window): Give an error on attempt to split a fixed-size
4404         window.
4405         (change_window_height): Partly rewritten to handle fixed-size
4406         windows.
4408 1999-08-13  Wolfgang Rupprecht  <wolfgang@wsrcc.com>
4410         * process.c (Fopen_network_stream): Fix previous change.
4412 1999-08-13  Karl Heuer  <kwzh@gnu.org>
4414         * xdisp.c (line_number_display_limit_width): New var.
4415         (decode_mode_spec): Use it instead of hardcoded value.
4416         (syms_of_xdisp): Defvar it.
4418 1999-08-13  Richard M. Stallman  <rms@gnu.org>
4420         * eval.c (run_hook_list_with_args): Gcpro `globals'.
4421         (run_hook_with_args): Likewise.
4423         * window.h (struct window): New field too_small_ok.
4425         * window.c (set_window_height, set_window_width): 
4426         If window starts out "too small", set its too_small_ok flag.
4427         If window's too_small_ok flag is set, don't delete it
4428         unless it is so small it would cause a crash.
4430 1999-08-13  Gerd Moellmann  <gerd@gnu.org>
4432         * window.c (MINSIZE): Removed.
4433         (window_min_size): New.
4434         (set_window_height): Use window_min_size.
4435         (change_window_height): Ditto.
4437 1999-08-12  Gerd Moellmann  <gerd@gnu.org>
4439         * indent.c (vmotion): Don't add in mini-buffer prompt width
4440         if prompts are inserted into mini-buffer.
4442 1999-08-12  Wolfgang Rupprecht  <wolfgang@wsrcc.com>
4444         * config.in: Add HAVE_GETADDRINFO.
4445         * process.c (Fopen_network_stream): Use getaddrinfo.
4447 1999-08-11  Gerd Moellmann  <gerd@gnu.org>
4449         * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
4450         glyphs to -1.
4452         * xdisp.c (face_before_or_after_it_pos): If position after
4453         or before iterator's current position in the buffer is out
4454         of bounds, return the iterator's original face id.
4456         * dispnew.c (mirror_make_current): If desired row isn't enabled,
4457         just swap glyphs pointers between current and desired row.
4458         (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
4459         desired matrix method string to current matrix.
4461 1999-08-11  Kenichi Handa  <handa@etl.go.jp>
4463         * lisp.h (CHAR_MODIFIER_MASK): New macro.
4465         * lread.c (read_escape): For Control modifier, pay attention to
4466         multibyte character.
4467         (read1): Likewise.  Singal error or a multibyte character which
4468         has a modifer bit.  Check validity of Shift modifer.
4470         * charset.c (non_ascii_char_to_string): Handle modifier bits as
4471         the same as Lisp reader.
4473 1999-08-10  Richard M. Stallman  <rms@gnu.org>
4475         * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
4477 1999-08-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
4479         * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
4481 1999-08-10  Eli Zaretskii  <eliz@gnu.org>
4483         * msdos.c (IT_set_face): Abort if the default face is not realized
4484         and cached.
4485         (IT_write_glyphs): Reset the screen face to the default face
4486         before writing glyphs.
4488         * xfaces.c (realize_default_face) [MSDOS]: Don't take default
4489         colors from the frame here.
4490         (realize_tty_face) [MSDOS]: Do it here.  Update the face
4491         attributes with the actual name of the color taken from the
4492         frame.
4494         * dosfns.c (msdos_stdcolor_name): Remove const from return value.
4495         * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
4497         * frame.c (Fframe_parameters): Swap foreground and background
4498         colors returned in frame parameters if the frame has reverse in
4499         its parameter alist.
4500         (Fmake_terminal_frame): Make a unique copy of face_alist for
4501         each frame.
4503 1999-08-07  Richard Stallman  <rms@gnu.org>
4505         * buffer.c (Fprevious_overlay_change): Just return
4506         the answer obtained from overlays_at.
4508         * xfns.c (xpm_load) [!XpmAllocCloseColors]:
4509         Use XpmCloseness and attrs.closeness instead.
4511 1999-08-06  Richard Stallman  <rms@gnu.org>
4513         * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
4515 1999-08-06  Geoff Voelker  <voelker@cs.washington.edu>
4517         * dired.c (directory_files_internal, Fdirectory_files_and_attributes, 
4518         Ffile_attributes_lessp): New functions.
4519         (Fdirectory_files): Use directory_files_internal.
4520         (syms_of_dired): Initialize Fdirectory_files_and_attributes,
4521         Ffile_attributes_lessp.
4523         * w32.c (stat): Check for directory ending in separator when
4524         doing readdir fast path.
4526         * w32fns.c (x_set_icon_type): Support setting frame icons.
4527         * w32term.c (x_bitmap_icon): New function.
4528         (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
4529         
4530 1999-08-06  Gerd Moellmann  <gerd@gnu.org>
4532         * xdisp.c (set_iterator_to_next): After delivering a character
4533         from a display vector, restore face and charset to what they were
4534         before the display vector was processed.
4536 1999-08-06  Gerd Moellmann  <gerd@gnu.org>
4538         * xdisp.c (reseat_at_next_visible_line_start): New parameter
4539         on_newline_p.
4540         (set_iterator_to_next):  After delivering last char
4541         from display vector, reseat on next visible line start if 
4542         dpvec_char_len < 0.
4543         (next_element_from_buffer): Set dpvec_char_len to -1 for
4544         selective display.
4546 1999-08-06  Gerd Moellmann  <gerd@gnu.org>
4548         * xdisp.c (compute_line_metrics): If first line's physical ascent
4549          is larger than its logical ascent, use the physical ascent, and
4550          make the row taller.  Set row's overlapping_p flag.
4552         * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
4553         (direct_output_for_insert): Ditto.
4555         * dispextern.h (struct glyph_row): Add overlapping_p.
4557         * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
4559         * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
4560         (MATRIX_ROW_OVERLAPS_SUCC_P): New.
4562         * dispnew.c (direct_output_for_insert): Don't use this method if
4563         row is overlapped by others.
4564         (update_text_area): Write full line if current line is overlapped.
4565         (redraw_overlapped_rows): New.
4566         (update_window): Call it.
4567         (redraw_overlapping_rows): New.
4568         (update_window): Call it.
4569         (scrolling_window): Make sure overlapped_p flag in current rows is
4570         unchanged.
4571         (row_equal_p): Take rows overlapped_p flag into account.
4573         * dispextern.h (struct glyph_row): Add flag overlapped_p.
4575         * xterm.c (x_fix_overlapping_area): New.
4576         (x_redisplay_interface): Add x_fix_overlapping_area.
4578         * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
4580 1999-08-06  Gerd Moellmann  <gerd@gnu.org>
4582         * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
4583         (struct glyph_string): Add member for_overlaps_p.
4584         (x_get_glyph_string_clip_rect): If glyph string draws foreground
4585         of overlapping rows, clip to window bottom.
4586         (x_fill_glyph_string): Add parameter overlaps_p.
4587         (x_fill_composite_glyph_string): Ditto.
4588         (BUILD_GLYPH_STRINGS): Ditto.
4589         (BUILD_CHAR_GLYPH_STRINGS): Ditto.
4590         (x_draw_glyph_string): Don't draw anything but the foreground
4591         if glyph string draws row overlaps.
4593         * dispnew.c (direct_output_for_insert): Don't use this
4594         optimization for rows that overlap others.
4595         (update_window_line): Return non-zero if display has changed.
4596         (update_text_area): Ditto.
4597         (update_window): Record if display has been changed.
4599         * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
4601         * dispextern.h (struct redisplay_interface): Add
4602         fix_overlapping_area.
4604         * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
4606         * dispextern.h (struct glyph): Add overlaps_vertically_p.
4608         * xterm.c (x_produce_image_glyph): Compute iterator's physical
4609         ascent and descent.
4610         (x_produce_stretch_glyph): Ditto.
4611         (x_produce_glyphs): Ditto.
4613         * xdisp.c (init_iterator): Reset physical line height info
4614         after producing special glyphs.
4615         (display_toolbar_line): Set physical line height info.
4616         (compute_line_metrics): Ditto.
4617         (display_line): Ditto.
4618         (display_string): Ditto.
4620         * term.c (produce_glyphs): Set iterator's physical height
4621         information.
4623         * dispnew.c (blank_row): Compute glyph row's physical height.
4624         (row_equal_p): Take physical row heights into account.
4625         (direct_output_for_insert): Ditto.
4626         (update_text_area): Ditto.
4628         * dispextern.h (struct glyph_row): Add phys_ascent and
4629         phys_height.
4630         (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
4631         max_phys_descent.
4633 1999-08-04  Stefan Monnier  <monnier@cs.yale.edu>
4635         * buffer.c (switch_to_buffer_1): New subroutine, taken out from
4636         Fswitch_to_buffer.
4637         (no_switch_buffer): New function.
4638         (Fswitch_to_buffer): Call them.  Don't get confused
4639         by "same-window" buffers in a dedicated frame.
4641         * window.c (display-buffer): Don't get confused
4642         by "same-window" buffers in a dedicated frame.
4644 1999-08-04  Andreas Schwab  <schwab@gnu.org>
4646         * insdel.c (insert_from_string_1): Check gap size against number
4647         of outgoing bytes, not incoming bytes.
4649 1999-08-03  Tom Breton  <tob@world.std.com>
4651         * lread.c (read1): Added circular reading code to #N=.
4652         (SUBSTITUTE): New macro.
4653         (seen_list): New variable.
4654         (substitute_object_in_subtree): New function.
4655         (substitute_object_recurse): New function.
4656         (substitute_in_interval): New function.
4658 1999-08-02  Eli Zaretskii  <eliz@gnu.org>
4660         * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
4662         * frame.c (make_terminal_frame): Don't call init_frame_faces if
4663         noninteractive, for termcap frames as well.
4665         * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
4666         frames.
4668 1999-08-01  Richard Stallman  <rms@gnu.org>
4670         * fns.c (internal_equal): Correct overlay comparison.
4672 1999-07-31  Richard M. Stallman  <rms@gnu.org>
4674         * xfns.c (x_set_internal_border_width): 
4675         Call do_pending_window_change.  Don't block input, don't call XFlush.
4676         (x_set_vertical_scroll_bars): Call do_pending_window_change.
4677         (x_set_scroll_bar_width, x_set_font): Likewise.
4679         * frame.c (Fset_frame_height): Call do_pending_window_change.
4680         (Fset_frame_width, Fset_frame_size): Likewise.
4682         * xterm.c (x_set_window_size): When calling change_frame_size,
4683         specify 1 for DELAY.
4685         * widget.c (EmacsFrameSetCharSize): Don't call
4686         do_pending_window_change here.
4688 1999-07-30  Dave Love  <fx@gnu.org>
4690         * config.in: Add HAVE_STDLIB_H.
4692 1999-07-30  Richard M. Stallman  <rms@gnu.org>
4694         * process.c (create_process): Detect failure of `pipe'.
4696 1999-07-30  Keisuke Nishida  <kei@psn.net>
4698         * alloc.c (allocate_vectorlike): Add missing increment.
4700         * data.c (Fdefalias): Call Ffset instead of duplicating code.
4702         * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
4703         before calling indirect_function.
4705 1999-07-30  Eli Zaretskii  <eliz@gnu.org>
4707         * dispextern.h (load_color, lookup_derived_face): Declare
4708         prototypes.
4710         * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
4711         it will be done later.
4713         * frame.c (make_terminal_frame) [MSDOS]: Don't call
4714         init_frame_faces if non-interactive.
4715         (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
4716         array with a call to msdos_stdcolor_name.  The font name is now
4717         "ms-dos", consistent with realize_tty_face.
4719         * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
4720         MSDOS frame.
4722         * window.c (Fset_window_configuration) [MSDOS]: Don't call
4723         x_set_toolbar_lines.
4725         * xfaces.c (load_color): Remove static from definition and remove
4726         prototype.
4727         [MSDOS]: Add a DOS-specific version of load_color.
4728         (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
4729         (lookup_derived_face): New function.
4730         (realize_default_face): Support MSDOS frames.
4731         [MSDOS]: If fore/background colors are unspecified, inherit them
4732         from the frame.
4733         (realize_face): Support MSDOS frames.
4734         (realize_tty_face): Support MSDOS frames.
4735         [MSDOS]: If the face color is not in Vface_tty_color_alist, call
4736         load_color to try to find a suitable approximation.  If the face
4737         is inverse-video, swap the foreground and background colors.
4739         * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
4740         functions.
4742         * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
4744         * msdos.h: Remove redundant declarations (most of them are now in
4745         dispextern.h).
4747         * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
4748         Use default frame colors if the face doesn't specify them; invert
4749         the colors if highlight is ON.
4750         (IT_write_glyphs): Rewritten for the new redisplay engine.
4751         (IT_change_line_highlight): Add (unused) parameter Y, since that's
4752         how the hook is called by term.c.
4753         (IT_copy_glyphs): New function, copies an area of the display in
4754         video RAM.
4755         (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
4756         redisplay now calls it even if char_ins_del_ok is zero.
4757         (IT_set_frame_parameters): Prototype changed.  Calls the new
4758         load_color.  Puts the new fore/background colors into the default
4759         face on current frame.
4760         (IT_menu_display): Rewritten to handle the new struct glyph
4761         instead of a char array.
4762         (XMenuActivate): Call lookup_derived_face to create and use
4763         special faces for the pop-up and drop-down menus.
4765 1999-07-29  Gerd Moellmann  <gerd@gnu.org>
4767         * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
4768         XawScrollbarSetThumb if thumb parameters haven't changed because
4769         that function apparently isn't optimized for this case.
4771 1999-07-29  Eli Zaretskii  <eliz@gnu.org>
4773         * msdos.c (getdefdir): Don't return failure indication when
4774         _fixpath sets errno to ENOSYS.
4776 1999-07-28  Gerd Moellmann  <gerd@gnu.org>
4778         * xdisp.c (string_char_and_length): New.  Use it everywhere
4779         instead of STRING_CHAR_AND_LENGTH in xdisp.c.
4781 1999-07-28  Kenichi Handa  <handa@etl.go.jp>
4783         * fns.c (count_combining): New function.
4784         (struct textprop_rec): New structure.
4785         (concat): Copy text properties correctly when byte combining
4786         occurs.
4788 1999-07-28  Gerd Moellmann  <gerd@gnu.org>
4790         * xterm.c (x_setup_relief_color): Don't try smart color allocation
4791         if display is mono.
4792         (x_draw_row_bitmaps): If face has stipple, don't switch
4793         to foreground color for clearing areas, and set the fill style.
4795         * xfaces.c (load_face_colors): Load background color if setting
4796         stipple, too.
4797         (prepare_face_for_display): Use FillOpaqueStippled instead of 
4798         FillStippled.
4800 1999-07-26  Ken'ichi Handa  <handa@gnu.org>
4802         * xterm.c (x_find_ccl_program): Add casting.
4804         * w32fns.c (w32_find_ccl_program): Add casting.
4806 1999-07-27  Gerd Moellmann  <gerd@gnu.org>
4808         * dispextern.h (struct glyph_row): Flag internal_border_p removed.
4810         * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
4811         because this will try to access a nonexisting widget.
4813 1999-07-26  Markus Rost  <rost@gnu.org>
4815         * fns.c (Fgethash): Fix order of variables (patch by gerd). 
4816         (Fputhash): Ditto.
4817         (Fremhash): Ditto.
4819 1999-07-26  Gerd Moellmann <gerd@gnu.org>
4820         
4821         * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
4822         value to frame width and height.
4824         * xterm.c (x_get_glyph_string_clip_rect): Take internal border
4825         into account for full-width windows.  Don't add scroll bar width
4826         to width of clip rect.
4827         (x_draw_glyph_string_box): Add 1 to right x of full width lines.
4828         (x_set_glyph_string_background_width): Add 1 to background width.
4829         (x_draw_glyphs): Take internal border into account for full-width
4830         lines.
4832 1999-07-26  Richard M. Stallman  <rms@gnu.org>
4834         * xfns.c (x_set_mouse_color): Always unload the old color.
4835         Don't allow nil as color value.
4836         (x_set_cursor_color, x_set_background_color, x_set_foreground_color): 
4837         Always unload the old color.
4839         * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
4841 1999-07-26  Karl Heuer  <kwzh@gnu.org>
4843         * fns.c (Fy_or_n_p): Doc fix.
4845 1999-07-26  Kenichi Handa  <handa@etl.go.jp>
4847         * ccl.h (setup_ccl_program): The type is changed to `int'.
4849         * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
4850         stored in the following CCL code.  Adjusted for the change of
4851         Vccl_program_table.
4852         (resolve_symbol_ccl_program): Adjusted for the new style of
4853         embedded symbols (SYMBOL . PROP) in CCL compiled code.   Return Qt
4854         is resolving failed.
4855         (ccl_get_compiled_code): New function.
4856         (setup_ccl_program): Function type changed from `void' to `int'.
4857         Resolve symbols in CCL_PROG.
4858         (Fccl_program_p): New function.
4859         (Fccl_execute): Get compiled CCL code by just calling
4860         setup_ccl_program.
4861         (Fccl_execute_on_string): Likewise.
4862         (Fregister_ccl_program): Adjusted for the change of
4863         Vccl_program_table.
4865         * coding.c (setup_coding_system): Get compiled CCL code by just
4866         calling setup_ccl_program.
4868         * xterm.c (x_find_ccl_program): Get compiled CCL code by just
4869         calling setup_ccl_program.
4871         * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
4872         calling setup_ccl_program.
4874 1999-07-23  Gerd Moellmann  <gerd@gnu.org>
4876         * xfaces.c (frame_update_line_height): Just use the height of the
4877         frame's fontset or font, instead of taking face fonts into
4878         account.
4880         * xdisp.c (get_next_display_element): Display DEL as `^?'.
4882 1999-07-23  Richard M. Stallman  <rms@gnu.org>
4884         * window.c (Fsplit_window): For default size, round up for left window.
4886 1999-07-21  Joe Ramey  <ramey@ti.com>
4888         * filelock.c (lock_if_free): Return -1 if check_lock_owner
4889         has returned -1 (lockfile exists but is not a symlink?).
4891 1999-07-20  Gerd Moellmann  <gerd@gnu.org>
4893         * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
4894         because of a change in cursor_gc made in 20.4.
4896 1999-07-19  Gerd Moellmann  <gerd@gnu.org>
4898         * xterm.c (x_calc_absolute_position): Subtract menu bar height
4899         for YNegative, if using X toolkit.
4901         * xfns.c (x_real_positions): Don't subtract window borders 
4902         from positions returned.
4904 1999-07-17  Gerd Moellmann  <gerd@gnu.org>
4906         * xrdb.c (x_load_resources): Set double-click time defaults
4907         for Motif list boxes from double-click-time.
4909         * fns.c (Vhash_table_tests): Remvoed.
4910         (Qhash_table_test): New.
4911         (syms_of_fns): Initialize Qhash_table_test.
4912         (Fmake_hash_table): Look up user-defined tests in symbol prop
4913         `hash-table-test'.
4914         (Fdefine_hash_table_test): Store test and hash function as
4915         symbol prop `hash-table-test'.
4916         (make_hash_table): Add parameters user_test and user_hash.
4918         * window.c (set_window_buffer): Set window margins for tty
4919         frames, too.
4920         (Fset_window_margins): Ditto.
4922         * term.c (append_glyph): Use glyph area of iterator instead of
4923         always TEXT_AREA.
4925         * dispnew.c (update_frame_1): Add left margin width to cursor
4926         hpos.
4927         (direct_output_for_insert): Ditto.
4928         (direct_output_forward_char): Ditto.
4930         * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
4932         * dispextern.h (struct glyph_matrix): Add top_line_p.
4934 1999-07-16  Gerd Moellmann  <gerd@gnu.org>
4936         * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed.  Use FRAME_WINDOW_P
4937         instead.
4939         * fns.c (cmpfn_eq): Add hash code parameters.
4940         (cmpfn_eql): Ditto.
4941         (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
4942         (cmpfn_user_defined): Likewise.
4944 1999-07-15  Gerd Moellmann  <gerd@gnu.org>
4946         * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
4948         * fns.c (maybe_resize_hash_table): Correct computation of
4949         index vector size.
4950         (make_hash_table): Ditto.
4951         (Fmakehash): New.
4953         * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
4955         * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
4956         (survives_gc_p): Make it externally visible.
4957         (mark_object): Ditto.
4959         * fns.c (remove_hash_entry): Removed.
4960         (sweep_weak_hash_tables): New.
4962         * print.c (print): Print more information about hash tables.
4964         * xfns.c (image_spec_hash): Removed.
4965         (lookup_image): Use sxhash instead of image_spec_hash.
4966         (image_spec_equal_p): Removed.
4967         (lookup_image): Use Fequal instead of image_spec_equal_p.
4969 1999-07-14  Gerd Moellmann  <gerd@gnu.org>
4971         * lisp.h (P_): Moved to top of file.
4973         * fns.c (make_hash_table): Set new members.
4975         * alloc.c (mark_object): Mark hash table's user_hash_function.
4976         Mark index vector for weak hash tables.
4978         * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
4979         user_hash_function, cmpfn, and hashfn.
4981         * fns.c (build_hash): Removed.
4982         (hash_test): Removed.
4983         (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
4984         (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
4986 1999-07-13  Gerd Moellmann  <gerd@gnu.org>
4988         * alloc.c (survives_gc_p): New.
4990         * print.c (print): Add hash table handling.
4992         * alloc.c (mark_object): Add code to mark hash tables.
4994         * lisp.h (GC_HASH_TABLE_P): New.
4996         * emacs.c (main): Call init_fns.
4998         * fns.c (init_fns): New.
5000         * fns.c: Add hash table implementation.
5002         * lisp.h (PVEC_HASH_TABLE): New.
5003         (struct Lisp_Hash_Table): New.
5004         (XHASH_TABLE): New.
5005         (XSET_HASH_TABLE): New.
5006         (HASH_TABLE_P): New.
5007         (CHECK_HASH_TABLE): New.
5008         (DEFAULT_HASH_SIZE): New.
5009         (DEFAULT_REHASH_THRESHOLD): New.
5010         (DEFAULT_REHASH_SIZE): New.
5012         * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
5013         (x_write_glyphs): Compute overwritten cursor using real start
5014         and end positions of display.
5015         (x_insert_glyphs): Ditto.
5017 1999-07-10  Gerd Moellmann  <gerd@gnu.org>
5019         * keyboard.c (read_char): Use message3_nolog to show help-echo.
5021         * dispnew.c (blank_row): Add y-position as parameter.  Compute
5022         visible height.
5024         * xdisp.c (next_element_from_string): Give padding spaces
5025         a position of -1.
5027         * dispnew.c (adjust_glyph_matrix): Some work to support 
5028         marginals areas on tty frames in a future version.
5029         (allocate_matrices_for_frame_redisplay): Ditto.
5031         * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
5032         to zero if number of glyphs in the row is <= 1.
5034 1999-07-09  Gerd Moellmann  <gerd@gnu.org>
5036         * dispnew.c (buffer_posn_from_coords): Take left marginal area
5037         into account.
5039         * xdisp.c (handle_display_prop): Don't reset area if handing
5040         a property from a string that came from a `display' property.
5041         (handle_single_display_prop): Don't handle recursive `display'
5042         properties.
5043         (handle_single_display_prop): Handle some display property
5044         forms for terminal frames.
5045         (Qimage): Moved here from xfns.c.
5047         * dispextern.h (struct it): New field string_from_display_prop_p.
5049         * xterm.c (x_clip_to_row): Don't let clip_rect include top
5050         line.
5052 1999-07-08  Gerd Moellmann  <gerd@gnu.org>
5054         * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
5056         * window.c (set_window_buffer): Set window's vscroll to zero.
5058         * xdisp.c (QCwhen): New.
5059         (display_prop_end): New.
5060         (handle_single_display_prop): Use it.
5061         (debug_method_add): Print buffer name if tracing.
5062         (try_window_reusing_current_matrix): Compute visible height
5063         of reused rows.  Fix cursor position calculation in case of
5064         top-line.
5066         * dispextern.h (struct redisplay_interface): Add parameter
5067         cursor_on_p to update_window_end_hook.
5069         * xterm.c (x_update_window_end): Add parameter cursor_on_p.
5071 1999-07-07  Gerd Moellmann  <gerd@gnu.org>
5073         * xdisp.c (redisplay_internal): Ensure that redisplayinp_p 
5074         doesn't become negative when decrementing it.
5076         * eval.c (Fsignal): Reset redisplaying_p to zero.
5078         * xdisp.c (try_window_reusing_current_matrix): Call hooks
5079         for window update.
5080         (try_window_id): Ditto.
5082         * xterm.c (x_clear_end_of_line): Handle top-line correctly.
5083         (x_scroll_run): Ditto.
5084         (any_help_event_p): New.
5085         (x_initialize): Set it to zero.
5086         (XTread_socket): Clear help echo only if any_help_event_p.
5088         * xdisp.c (init_iterator): Set top_line_p.
5089         (start_display): Use correct initial y if top-line is present.
5090         (make_cursor_line_fully_visible): Bug fixes for top-line.
5091         (try_scrolling): Ditto.
5092         (try_window_reusing_current_matrix): Ditto.
5094         * dispextern.h (struct it): Add top_line_p.
5096         * dispnew.c (shift_glyph_matrix): Move some computations out
5097         of the loop.
5099         * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and 
5100         XFLOATINT.
5102 1999-07-06  Gerd Moellmann  <gerd@gnu.org>
5104         * dispnew.c (update_frame_1): When setting cursor in echo area,
5105         skip only over padding spaces at the end.
5107         * xfaces.c (realize_tty_face): Set face's font_name field to
5108         "tty".
5110         * term.c (update_end): Turn cursor on only if selected window's
5111         cursor_off_p flag is not set.
5113 1999-07-05  Gerd Moellmann  <gerd@gnu.org>
5115         * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
5116         (TS_cursor_normal): Renamed from TS_end_visual_mode.
5117         (TS_cursor_invisible):  New.
5118         (term_init): Initialize TS_cursor_invisible.
5119         (tty_hide_cursor): New.
5120         (tty_show_cursor): New.
5121         (update_end): Show tty cursor.
5122         (update_begin): Hide tty cursor to prevent cursor flickering
5123         during redisplays triggered by timers (stealth fontification).
5125         * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
5127         * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
5128         in scroll bars.
5129         (x_handle_toolbar_click): Set modifier bits.
5131 1999-07-04  Gerd Moellmann  <gerd@gnu.org>
5133         * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
5134         instead of a pointer to a volatile input_event.
5135         (kbd_buffer_store_event): Remove volatile modifier from 
5136         declaration of local variable `sp'.
5137         (Fdiscard_input): Don't cast when assigning kbd_store_ptr
5138         to kbd_fetch_ptr.
5140 1999-07-03  Gerd Moellmann  <gerd@gnu.org>
5142         * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
5143         only if buffer is modified.  Return quickly if changes are
5144         above window start.
5146 1999-07-02  Gerd Moellmann  <gerd@gnu.org>
5148         * dispextern.h (HSCROLL_WINDOWS): Removed.
5150         * xdisp.c (mark_window_display_accurate): Don't set
5151         w->region_showing.
5152         (redisplay_internal): Don't call redraw_garbaged_frames.
5154 1999-07-01  Gerd Moellmann  <gerd@gnu.org>
5156         * xdisp.c (echo_area_display): Don't display truncation marks
5157         for messages because 20.4 doesn't do it either.
5158         (redisplay_window): Case same window start.  Instead of giving
5159         up when cursor is partially visible, make it fully visible.
5160         (mark_window_display_accurate): Some cleanup.  Record window's
5161         last cursor information.
5162         (debug_method_add): Improved.
5163         (redisplay_internal): Record last cursor info only if not
5164         consider_all_windows_p.
5166         * dispnew.c (update_window): Update top line after scrolling.
5167         (blank_row): Renamed from make_empty_enabled_row.
5168         (increment_glyph_row_buffer_positions): Increment positions
5169         in buffers, only.
5171         * window.c (Fcoordinates_in_window_p): Add top-line to doc
5172         string.
5174 1999-06-30  Gerd Moellmann  <gerd@gnu.org>
5176         * dispnew.c (update_window): Check that updated row is visible.
5178         * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
5179         top of window differently.
5181         * xdisp.c (try_window_reusing_current_matrix): Don't do it
5182         if region is showing.
5184         * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
5185         avoiding matrix reallocation.  Set window_vscroll in matrix.
5187         * dispextern.h (struct glyph_matrix): Add member window_vscroll.
5189         * xdisp.c (debug_method_add): New.
5190         (debug_redisplay_method): Removed.
5191         (try_window_reusing_current_matrix): Handle case where old
5192         window start is the same as new window start.
5194         * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
5195         an array instead of a pointer.
5197         * xfns.c (Fx_show_tip): Undo previous change.
5199         * xterm.c (x_append_glyph): Clear glyph->u.val.
5201         * dispextern.h (struct glyph): Increase size of face_id bit-field
5202         for CHAR_GLYPH to 12.
5204 1999-06-29  Gerd Moellmann  <gerd@gnu.org>
5206         * xfaces.c (x_charset_registry): Make it externally visible.
5208 1999-06-28  Gerd Moellmann  <gerd@gnu.org>
5210         * dispnew.c (update_window): Use mode_line_p flag of rows 
5211         instead of WINDOW_WANTS_MODELINE_P.
5213         * xterm.c (clear_mouse_face): Make externally visible.
5215         * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
5217         * xterm.c (expose_line): Handle exposure of top-lines.
5219         * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
5220         if mouse_face_mouse_frame is null.
5222         * xdisp.c (redisplay_window): If window is echo_area_window,
5223         and update_mode_line is set, update menubar and toolbar.
5225         * dispnew.c (space_glyph): Set its charpos to -1.
5226         (update_frame_1): Ignore trailing padding spaces.
5228         * xdisp.c (next_element_from_c_string): Set position of padding
5229         glyphs to -1.
5231 1999-06-27  Gerd Moellmann  <gerd@gnu.org>
5233         * xfns.c (x_laplace_read_row): Use XQueryColors instead of
5234         XQueryColor.
5236         * xdisp.c (display_menu_bar): Remove unwarranted assertion.
5237         (set_cursor_from_row): Skip over glyphs having a null object at
5238         the start of rows.
5239         (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
5240         glyphs.
5241         (handle_invisible_prop): Compute next change only when needed.
5242         (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
5243         line.
5245 1999-06-26  Gerd Moellmann  <gerd@gnu.org>
5247         * xrdb.c (x_load_resources): Don't set resource for double-click
5248         time.
5250         * xdisp.c (try_window_id): Return quickly if all changes are
5251         below the window's current matrix end.
5253         * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
5254         parameter.
5256         * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
5257         in desired not in current matrix.
5258         (try_window_reusing_current_matrix): Rotate matrices starting
5259         at start_vpos instead of 0.
5261         * xterm.c (expose_window): Use window_text_bottom_y.
5262         (fast_find_position): Ditto.
5264         * xdisp.c (redisplay_window): Use window_text_bottom_y.
5265         (try_window_reusing_current_matrix): Ditto.
5266         (get_last_unchanged_at_beg_row): Ditto.
5267         (init_iterator): Ditto.
5269         * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
5270         more row.
5271         (check_matrix_invariants): Use window_text_bottom_y.
5272         (update_window): Ditto.
5273         (scrolling_window): Ditto.
5275         * xdisp.c (window_text_bottom_y): New.
5277 1999-06-25  Gerd Moellmann  <gerd@gnu.org>
5279         * xterm.c (XTread_socket): Set mouse_face_frame to zero after
5280         clearing mouse face.
5281         (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
5282         event.xcrossing.focus is not set, and focus is in the menu bar,
5283         set focus frame as if event.xcrossing.focus were set.
5285 1999-06-24  Gerd Moellmann  <gerd@gnu.org>
5287         * keyboard.c (make_lispy_event): Handle mouse on top lines.
5288         * keyboard.c (make_lispy_movement): Ditto.
5290         * window.c (coordinates_in_window): Return 4 if on top line.
5291         (Fcoordinates_in_window_p): Return `top-line' if on top line.
5293         * xdisp.c (window_box_height): Subtract top line height.
5294         (window_box): Add top line height to top y position if top line
5295         exists.
5296         (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
5297         the top line row of the window.  Set initial y-position to
5298         window's top line height plus delta.
5299         (start_display): Choose start glyph row depending on whether
5300         window has a top line.
5301         (try_scrolling): Take top line height into account for aggressive
5302         scrolling.
5303         (compute_window_start_on_continuation_line): Take top line into
5304         account.
5305         (redisplay_window): Ditto.  If top line height has changed, 
5306         trigger a new redisplay.
5307         (try_window_reusing_current_matrix): Take top line into account.
5308         (find_last_row_displaying_text): Ditto.
5309         (get_last_unchanged_at_beg_row): DItto.
5310         (try_window_id): Ditto.
5311         (compute_line_metrics): Ditto.
5313         * dispnew.c (shift_glyph_matrix): Compute visible row height
5314         taking top line of window into account.
5315         (update_window): Update top line.  If scrolling_window detects
5316         that all rows are equal, only set cursor.
5317         (update_window_line): Call after_update_window_line_hook if
5318         mode_line_p flag of rows has changed.
5319         (scrolling_window): Add parameter top_line_p.  Return -1 if
5320         all rows are equal.
5321         (mode_line_string): Add parameter mode_line_p.  Handle strings
5322         in top lines.
5324         * dispextern.h (MATRIX_TOP_LINE_ROW): New.
5325         (MATRIX_FIRST_TEXT_ROW): New.
5326         (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
5327         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
5328         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
5329         (MATRIX_TOP_LINE_HEIGHT): New.
5330         (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
5331         (CURRENT_TOP_LINE_HEIGHT): New.
5332         (DESIRED_TOP_LINE_HEIGHT): New.
5333         (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
5334         (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
5335         WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
5336         (WINDOW_DISPLAY_TEXT_HEIGHT): New.
5338         * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
5339         lines.
5340         (x_draw_row_bitmaps): Take top line into account when clearing
5341         bitmap area.
5342         (x_estimate_mode_line_height): Replacement for
5343         x_frame_mode_line_height.
5344         (x_get_glyph_string_clip_rect): Take top line into account.
5345         (x_clear_end_of_line): Ditto.
5346         (note_mode_line_highlight): Add parameter mode_line_p.  Handle
5347         top lines.
5348         (note_mouse_highlight): Call note_mode_line_highlight for top lines.
5349         (x_erase_phys_cursor): Take top line into account.
5351         * xdisp.c (window_box_height): Subtract top line height if
5352         window wants a top line.
5353         (display_mode_lines): New.
5354         (redisplay_window): Call it.
5355         (display_mode_line): Add parameters face_id and format.
5357         * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
5358         (MATRIX_TOP_LINE_HEIGHT): New.
5360         * xterm.c (x_frame_mode_line_height): Add parameter face_id.
5362         * term.c (estimate_mode_line_height): Renamed from
5363         frame_mode_line_height.  Add parameter face_id.
5364         (estimate_mode_line_height_hook): Renamed from
5365         frame_mode_line_height_hook.
5366         (produce_special_glyphs_hook): Removed.
5367         (produce_glyphs_hook): Removed.
5369 1999-06-23  Gerd Moellmann  <gerd@gnu.org>
5371         * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
5372         (struct glyph_row): Add mode_line_p.
5374         * xfaces.c (realize_basic_faces): Realize face `top-line'.
5375         (Qtop_line): New.
5376         (syms_of_xfaces): Initialize Qtop_line.
5378         * dispextern.h (TOP_LINE_FACE_ID): New.
5380         * buffer.c (init_buffer_once): Set default for
5381         top_line_format to nil.
5382         (init_buffer_once): Init top_line_format.
5383         (default-top-line-format): New.
5384         (top-line-format): New buffer-local variable.
5386         * buffer.h: Add top_line_format.
5388         * xdisp.c (overlay_arrow_changed_p): Removed because not used.
5390 1999-06-17  Dave Love  <fx@gnu.org>
5392         * xfns.c: Move the PNG section before the JPEG one to avoid
5393         problems surrounding setjmp.h/png.h on GNU/Linux.
5394         
5395 1999-06-17  Gerd Moellmann  <gerd@gnu.org>
5397         * xfns.c (x_kill_gs_process): Don't free colors.
5399 1999-06-17  Dave Love  <fx@gnu.org>
5401         * s/gnu-linux.h: Zap spurious ~.
5403 1999-06-16  Gerd Moellmann  <gerd@gnu.org>
5405         * xfns.c (gif_load): Improve multi-image support.
5407 1999-06-15  Gerd Moellmann  <gerd@gnu.org>
5409         * xfns.c (gif_load): Support multi-image files.
5411         * Makefile.in (LIBGIF): Use libungif.
5413         * configure.in (HAVE_GIF): Use libungif instead of libgif
5414         because the former doesn't contain patented compression code.
5416         * xdisp.c (compute_window_start_on_continuation_line): Don't
5417         do it if line start is too far away from window start.
5419 1999-06-14  Gerd Moellmann  <gerd@gnu.org>
5421         * buffer.c (init_buffer_once): Set buffer_local_flags for
5422         scroll_*_aggressively.
5423         (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
5424         (init_buffer_once): Set defaults for these variables.
5425         (syms_of_buffer): Add default-scroll-*-aggressively.
5427         * buffer.h (scroll_up_aggressively): New.
5428         (scroll_down_aggressively):  New.
5430         * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
5431         a static PNG library.
5433         * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
5434         in case it's a static library.
5436         * Makefile.in (ctagsfiles): Split so that files starting
5437         with an `x' are found before files starting with `w32'.
5438         (ctagsfiles1): New.
5439         (ctagsfiles2): New.
5440         (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
5442         * xdisp.c (compute_window_start_on_continuation_line): New.
5443         (redisplay_window): Use it.
5444         (INFINITY): New.
5445         (reseat_to_string): Use it.
5446         (hscroll_window_tree): Ditto.
5447         (compute_window_start_on_continuation_line): Ditto.
5448         (redisplay_window): Don't force display with a new window start.
5450 1999-06-06  Gerd Moellmann  <gerd@gnu.org>
5452         * xfns.c (x_report_frame_params): Don't report `outer-window-id'
5453         if widget not present.
5455         * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
5457 1999-06-04  Gerd Moellmann  <gerd@gnu.org>
5459         * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
5460         value of realize_basic_faces.
5461         (load_face_font_or_fontset): Store full font name in face.
5462         (realize_default_face): Use full font name.
5464         * xterm.c (x_produce_glyphs): Set member char_to_display.
5465         (x_append_glyph): Store char_to_display in glyphs.
5467         * dispextern.h (struct it): Add char_to_display.
5469         * xfns.c (x_set_font): Don't call face-set-after-frame-default
5470         if faces haven't been initialized.
5471         (Fx_create_frame): Call face-set-after-frame-default after
5472         faces have been initialized, and widget has been created.
5474         * puresize.h (BASE_PURESIZE): Increased.
5476 1999-06-01  Gerd Moellmann  <gerd@gnu.org>
5478         * xfaces.c (set_lface_from_font_name): Add parameter force_p.
5479         (Finternal_set_lisp_face_attribute): If frame is t when
5480         :font attribute is set, use the selected frame.
5481         (clear_face_cache): Add parameter clear_fonts_p.
5482         (Fclear_face_cache): Add optional parameter thorougly.
5484         * xfaces.c (face_numeric_value): Return -1 if symbol is not
5485         in table.
5486         (Fclear_face_cache): New.
5487         (choose_face_fontset_font): If fontset doesn't contain font
5488         pattern for the given charset, use CHARSET_ASCII.
5489         (Finternal_set_lisp_face_attribute): Fix handling of nil
5490         stipple attribute.
5491         (Finternal_set_lisp_face_attribute): Fix handling of changing
5492         font-related face attributes of the default face.
5493         (set_lface_from_font_name): Set only attributes that aren't
5494         specified.
5496 1999-05-31  Gerd Moellmann  <gerd@gnu.org>
5498         * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
5499         font support.
5500         (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
5501         (x_face_list_fonts): Add parameter scalable_fonts_p.  Handle
5502         scalable fonts depending on the setting of SCALABLE_FONTS.
5503         (first_font_matching): List more than one font to find the
5504         first non-scalable matching font.
5505         (sorted_font_list): Let x_face_list_fonts return scalable fonts
5506         depending on SCALABLE_FONTS.
5507         (better_font_p): New parameter compare_pt_p.  If zero, don't
5508         compare point sizes of fonts.
5509         (exact_face_match_p) [SCALABLE_FONTS]: New.
5510         (build_scalable_font_name) [SCALABLE_FONTS]: New.
5511         (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
5512         (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
5513         (syms_of_xfaces):  Add scalable-fonts-allowed.
5515 1999-05-26  Gerd Moellmann  <gerd@gnu.org>
5517         * xfns.c (png_load): Let PNG lib handle gamma.  Construct
5518         mask only if image contains simple transparency information.
5519         Otherwise, combine image with frame background color.
5521         * configure.in (--with-png, HAVE_PNG): New.
5523         * config.in (HAVE_PNG): New.
5525         * Makefile.in: Add PNG library.
5527         * xfns.c: Add PNG support.
5529 1999-05-25  Gerd Moellmann  <gerd@gnu.org>
5531         * xdisp.c (init_xdisp): Initialize echo_area_message and
5532         previous_echo_area_message to nil.
5534         * keyboard.c (read_char): Rename local variable echo_area_message
5535         because it shadows the global one.
5537 1999-05-05  Gerd Moellmann  <gerd@gnu.org>
5539         * xterm.c (note_mode_line_highlight): Restructured.
5541         * window.c (coordinates_in_window): Handle windows that don't have
5542         a mode line because their buffer's mode-line-format is nil.
5543         Recognize the mode line under x positions that correspond to
5544         flags areas and left scroll bar.
5546 1999-05-02  Dave Love  <fx@gnu.org>
5548         * xterm.c (note_mouse_highlight): Separate help-echo processing
5549         from check on mouse-face so that it works generally.
5551 1999-04-21  Gerd Moellmann  <gerd@gnu.org>
5553         * sound.c (Fplay_sound): Run hook play-sound-hook.
5554         (Qplay_sound_hook): New.
5556 1999-04-20  Gerd Moellmann  <gerd@gnu.org>
5558         * xdisp.c (update_echo_area): Handle echo_area_message.
5560 1999-04-19  Gerd Moellmann  <gerd@gnu.org>
5562         * editfns.c (Fmessage): Use message3.
5564         * print.c (printchar): Set echo_area_message to nil.
5565         (strout): Ditto.
5567         * minibuf.c (read_minibuf): Reset echo message strings to nil.
5568         (Fminibuffer_completion_help): Ditto.
5570         * keyboard.c (cmd_error_internal): Set echo_areA_message.
5571         (command_loop_1): Test echo_areA_message.
5572         (read_char): Ditto.
5573         (record_menu_key): Set echo_area_message to nil.
5574         (Fexecute_extended_command): Test echo_area_message.
5575         (Fexecute_extended_command): Handle echo_area_message.
5577         * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
5578         is set.
5580         * editfns.c (Fcurrent_message): If echo_area_message is set,
5581         return a substring of that string.
5583         * dispnew.c (direct_output_for_insert): Test echo_area_message
5584         in addition to echo_area_glyphs.
5585         (set_window_cursor_after_update): Ditto.
5586         (update_frame_1): Ditto.
5588         * alloc.c (Fgarbage_collect): Use message3_nolog to display
5589         old Lisp message string.
5591         * xdisp.c (echo_area_message): New.
5592         (previous_echo_area_message): New.
5593         (syms_of_xdisp): Initialize and staticpro new variables.
5594         (echo_area_display): Display echo_area_message if set.
5595         (message2_nolog): Set echo_area_message and
5596         previous_echo_area_message.
5597         (echo_area_display): Set previous_echo_area_message.
5598         (redisplay_internal): Display echo area if echo_area_message
5599         or previous_echo_area_message are set.
5600         (redisplay_preserve_echo_area): Test/set echo_area_message and
5601         previous_echo_area_message.
5602         (redisplay_window): Test echo_area_message.
5603         (message3_nolog): New.
5604         (message3): New.
5606         * editfns.c (Fformat): Add text properties to the result string
5607         from properties of the format string and properties of string
5608         arguments.
5610         * textprop.c (text_property_list): New.
5611         (add_text_properties_from_list): New.
5612         (extend_property_ranges): New.
5614 1999-03-29  Gerd Moellmann  <gerd@gnu.org>
5616         * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
5617         (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
5618         Use these symbols for the box face attribute instead of the
5619         removed ones.
5621 1999-03-12  Gerd Moellmann  <gerd@gnu.org>
5623         * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
5624         Correct wrong test for slant.
5626 1999-03-10  Gerd Moellmann  <gerd@gnu.org>
5628         * xfaces.c: Use `unspecified' for unspecified face attributes,
5629         use t and nil for on/off.
5631 1999-03-06  Gerd Moellmann  <gerd@gnu.org>
5633         * buffer.c (syms_of_buffer): Extend doc string of
5634         mode-line-format.
5636         * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
5637         (first_font_matching): New.
5638         (set_lface_from_font_name): Use it if font name is a pattern.
5639         (font_field_wildcard_p): Removed.
5641         * dispnew.c (shift_glyph_matrix): Add `window' parameter.
5642         Recompute visible height of rows.
5644         * xterm.c (note_mouse_highlight): Reorder code for help-echo.
5645         Don't accept non-strings for help-echo from overlays.
5647 1999-03-04  Dave Love  <fx@gnu.org>
5649         * xterm.c (note_mouse_highlight): Check overlays for help-text
5650         property.
5651         (XTread_socket): Fix compiler warning.
5652         
5653 1999-03-05  Gerd Moellmann  <gerd@gnu.org>
5655         * xterm.c (note_mouse_highlight): Don't restrict number of 
5656         overlay to 10.  Call overlays_at so that it doesn't try to
5657         extend the vector.
5659         * xdisp.c (compute_line_metrics): Compute glyph row's visible
5660         height.
5662         * dispnew.c (row_equal_p): Compare visible row height, only.
5663         (update_text_area): Draw whole line if visible heights of
5664         rows differ.
5665         (update_window_line): Call after_update_window_line_hook
5666         if visible row height has changed.
5668         * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
5669         (struct glyph_row): New member visible_height.
5671         * xfaces.c (font_field_wildcard_p): New.
5672         (set_lface_from_font_name): Remove parameter force_p.  Accept
5673         font names containing wildcards.
5675 1999-03-04  Gerd Moellmann  <gerd@gnu.org>
5677         * xterm.c (x_after_update_window_line): Clear internal border
5678         when windows_or_buffers_changed.
5680         * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
5681         buffer has a nil mode_line_format.
5683 1999-03-03  Gerd Moellmann  <gerd@gnu.org>
5685         * xterm.c (x_setup_relief_colors): Use either background color
5686         or specified color.
5688         * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
5690         * dispextern.h (struct face): Add use_box_color_for_shadows_p.
5692         * xterm.c (x_draw_box_rect): New.
5693         (x_draw_glyph_string_box): Renamed from
5694         x_draw_glyph_string_relief.  Call x_draw_box_rect.
5696         * xfns.c (QCrelief): New.
5697         (syms_of_xfns): Initialize it.
5699         * dispextern.h (struct glyph): Rename left_shadow_p to
5700         left_box_line_p, right_shadow_p to right_box_line_p.
5701         (MAX_RELIEF_THICKNESS): Removed.
5702         (struct it): Rename members having `relief' in their names
5703         to contain `box' instead.
5705         * xfaces.c (realize_x_face): Handle new box attribute values.
5706         (QCrelief, Qbox): Removed.
5707         (QCshadow, QCcolor, Qraised, Qsunken): New.
5708         (syms_of_xfaces): Initialize new symbols.
5710 1999-03-02  Gerd Moellmann  <gerd@gnu.org>
5712         * dispextern.h (LFACE_RELIEF_INDEX): Removed.
5714         * xfaces.c (LFACE_RELIEF): Removed.
5715         (merge_face_vector_with_property): Remove handling of `:relief'.
5716         (Finternal_set_lisp_face_attribute): Ditto.
5717         (Finternal_set_lisp_face_attribute_from_resource): Ditto.
5718         (Finternal_get_lisp_face_attribute): Ditto.
5719         (realize_default_face): Ditto.
5720         (lface_hash): Don't compute hash from relief.
5722         * dispextern.h (struct face): Replace member `relief' by
5723         `box_line_width'.  Add member `box'.
5724         (face_box_type): New.
5726         * xterm.c (x_produce_glyphs): If face has overline, add overline
5727         thickness + 1 to ascent.
5729 1999-03-01  Gerd Moellmann  <gerd@gnu.org>
5731         * xterm.c (x_draw_glyph_string): Draw underline, overline,
5732         strike-through, and boxes.
5733         (x_draw_glyph_string_underline): Removed.
5735         * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
5736         (Qoverline, Qstrike_through, Qbox): New.
5737         (syms_of_xfaces): Define these symbols.
5738         (check_lface_attrs): Add checks for overline, strike-through,
5739         and box.
5740         (Finternal_set_lisp_face_attribute): Set new attributes.
5741         (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
5742         (load_color): Handle new attributes.
5743         (realize_x_face): Ditto.
5744         (merge_face_vector_with_property): Ditto.
5745         (free_face_colors): Ditto.
5746         (Finternal_set_lisp_face_attribute_from_resource): Ditto.
5747         (Finternal_get_lisp_face_attribute): Ditto.
5748         (Finternal_lisp_face_attribute_values): Ditto.
5750         * dispextern.h (lface_attribute_index): Add enumerators for
5751         overstrike, strike-through, and box.
5752         (struct face): Add members for overline, strike-through, and
5753         box.
5755 1999-02-17  Dave Love  <fx@gnu.org>
5757         * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
5758         s/template.h (NARROWPROTO): Define on the basis of relevant X cf
5759         files.
5761 1999-02-16  Gerd Moellmann  <gerd@gnu.org>
5763         * keyboard.c (toolbar_items): Call access_keymap with third
5764         parameter 1, so that we don't get inherited toolbar item
5765         definitions.
5767         * xdisp.c (redisplay_internal): In optimization 1, don't decrement
5768         the window end vpos when in empty first line of window.
5770 1999-02-15  Gerd Moellmann  <gerd@gnu.org>
5772         * xfaces.c (set_font_frame_param): New.
5773         (Finternal_set_lisp_face_attribute): Call it.
5775 Sun Feb 14 10:54:02 1999  Masatake Yamato  <masata-y@is.aist-nara.ac.jp>
5777         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
5778         Accept specifications of color for underline.
5780 1999-02-13  Gerd Moellmann  <gerd@gnu.org>
5782         * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
5783         `frame' is t, operate on face defaults for new frames.  If it
5784         is nil, operate on the selected frame.
5786 1999-02-12  Gerd Moellmann  <gerd@gnu.org>
5788         * dispnew.c (check_matrix_invariants): Put it in #if 0.
5789         (update_window): Put the call to check_matrix_invariants in #if 0.
5791 Sun Feb  7 09:58:49 1999  Masatake Yamato  <masata-y@is.aist-nara.ac.jp>
5793         * dispextern.h: Remove all else block of UNDERLINE_COLOR.
5794         Remove definition of UNDERLINE_COLOR.
5796 Mon Jan  4 04:43:41 1999  Masatake Yamato  <masata-y@is.aist-nara.ac.jp>
5798         * xfaces.c (free_face_colors): Free the color for underline.
5800         * xterm.c (x_draw_glyph_string_underline): Set the color for underline
5801         to the GC.
5803 Sun Jan  3 08:41:10 1999  Masatake Yamato  <masata-y@is.aist-nara.ac.jp>
5805         * dispextern.h  (UNDERLINE_COLOR): Defined.
5806         (struct face): Added two new members.
5807         underline_color, underline_defaulted_p.
5809         * xfaces.c (merge_face_vector_with_property): 
5810         (check_lface_attrs): Accept the string value for underline.
5811         (Finternal_set_lisp_face_attribute): Likewise. 
5813         * xfaces.c (load_color): Change the last argument type to enum
5814         lface_attribute_index from int. And addec code for underling coloring.
5815         (load_face_colors): Pass LFACE_*_INDEX to load_color.
5816         
5817 1999-02-12  Gerd Moellmann  <gerd@gnu.org>
5819         * xfns.c (Fx_image_header): Removed.
5821 1999-02-07  Gerd Moellmann  <gerd@gnu.org>
5823         * xterm.c: Don't include <bitmaps/gray>.
5824         (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
5826         * xfns.c (Fx_image_header): Add missing `\n\'.
5827         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
5829 1999-02-01  Gerd Moellmann  <gerd@gnu.org>
5831         * xterm.c (x_scroll_bar_create): Set background pixel from
5832         specified scroll bar color.
5833         (x_scroll_bar_set_handle): Use scroll bar foreground color.
5835         * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
5836         (x_set_scroll_bar_background): Ditto.
5838         * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
5840         * xfns.c (x_default_scroll_bar_color_parameter): New.
5841         (Fx_create_frame): Call it.
5843 1999-01-31  Gerd Moellmann  <gerd@gnu.org>
5845         * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
5846         values in x_output structure.  
5847         (Qscroll_bar_foreground, Qscroll_bar_background): New.
5848         (syms_of_xfns): Initialize these symbols.
5850         * xterm.h (struct x_output): Add scroll bar pixel colors.
5852         * xfns.c (x_frame_parms): Add entries for scroll bar colors.
5853         (x_set_scroll_bar_foreground): New.
5854         (x_set_scroll_bar_background): New.
5856 1999-01-12  Gerd Moellmann  <gerd@gnu.org>
5858         * xdisp.c (handle_single_display_prop): New.
5859         (handle_display_prop): Call it.
5860         (handle_raise_prop): Removed.
5861         (handle_height_prop): Removed.
5862         (handle_space_width_prop): Removed.
5863         (handle_face_prop): Remove handling of raised text.
5864         (handle_display_prop): Do it here.
5866         * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
5867         (RAISE_PROP_IDX): Removed.
5868         (HEIGHT_PROP_IDX): Removed.
5869         (SPACE_WIDTH_PROP_IDX): Removed.
5871         * xdisp.c (Qdisplay): Replaces Qglyph.
5872         (handle_display_prop): Formerly handle_glyph_prop.
5874 1999-01-11  Gerd Moellmann  <gerd@gnu.org>
5876         * xdisp.c (reseat_to_string): Set position in display vector to -1.
5877         (handle_stop): Set position in display vector to -1.  Don't
5878         check overlay strings when set up to deliver characters from a
5879         display vector.
5880         (set_iterator_to_next): At the end of a run of characters from a
5881         display vector, check whether the display vector display replaces
5882         the display of a character.
5884 1999-01-05  Gerd Moellmann  <gerd@gnu.org>
5886         * xfaces.c (init_frame_faces): Don't realize faces if frame's
5887         X window hasn't been created yet.
5889 1998-12-06  Gerd Moellmann  <gerd@gnu.org>
5891         * sound.c: New.
5893 1998-12-04  Gerd Moellmann  <gerd@gnu.org>
5895         * config.in (HAVE_SOUND): New.
5897         * emacs.c (main): Call syms_of_sound and init_sound.
5899         * Makefile.in (obj): Add sound.o.
5901         * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
5903         * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
5904         (HAVE_SYS_SOUNDCARD_H): New.
5906 1998-12-03  Gerd Moellmann  <gerd@gnu.org>
5908         * buffer.h (struct buffer): indicate_empty_lines renamed from
5909         indicate_zv_lines.
5911         * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
5912         (default-indicate-zv-lines): Likewise.
5914         * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
5915         to indicate_empty_line_p.
5917         * xdisp.c (reseat_at_next_visible_line_start): Reset method
5918         to next_element_from_buffer.
5920         * frame.c (make_frame): Set n_current_toolbar_items to 0.
5922         * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
5923         and `N-'.
5925         * xfns.c (xbm_scan): New.
5926         (xbm_read_hexint): Removed.
5927         (xbm_read_bitmap_file_data): Use xbm_scan.
5929         * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
5931 1998-12-02  Gerd Moellmann  <gerd@gnu.org>
5933         * xfns.c (xbm_read_hexint): New.
5934         (xbm_read_bitmap_file_data): New.
5935         (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
5936         instead of XReadBitmapFileData.
5938         * xdisp.c (handle_raise_prop): Compute voffset from current font.
5940         * xfaces.c (face_with_height): New.
5942         * xdisp.c (eval_handler): Renamed from eval_mode_handler.
5943         (eval_form): Renamed from eval_mode_element.
5944         (handle_face_prop): Use it.
5945         (Qheight): Replaces Qsmaller.
5946         (handle_height_prop): Replaces handle_smaller_prop.
5947         (handle_face_prop): If iterator's font_height is not an 
5948         integer, evaluate it to get the font height to use.
5950         * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
5951         (struct it): Use `font_height' instead of `smaller'.
5953 1998-12-01  Gerd Moellmann  <gerd@gnu.org>
5955         * xdisp.c (reseat_1): New.
5956         (reseat): Call it.
5957         (move_it_vertically_backward): Ditto.
5958         (redisplay_window): Don't abort when cursor not found in recenter.
5960 1998-11-30  Gerd Moellmann  <gerd@gnu.org>
5962         * xdisp.c (reseat_at_next_visible_line_start): When not
5963         currently delivering display elements from the current buffer,
5964         restore buffer position first.
5965         (init_from_display_pos): Don't set IT's position from the
5966         position passed to this function.
5968 1998-11-28  Gerd Moellmann  <gerd@gnu.org>
5970         * config.in (PROTO): Removed.
5972         * xterm.h: Change PROTO to P_.
5974 1998-11-26  Gerd Moellmann  <gerd@gnu.org>
5976         * xterm.c (take_vertical_position_into_account): New.
5977         (x_produce_image_glyph): Call it.
5978         (x_produce_stretch_glyph): Ditto.
5979         (x_produce_glyphs): Ditto.
5980         (x_fill_glyph_string): Adjust base line for glyph's voffset.
5981         (x_fill_composite_glyph_string): Ditto.
5982         (x_fill_image_glyph_string): Ditto.
5983         (x_fill_stretch_glyph_string): Ditto.
5985         * xdisp.c (display_line): Always compute row height from
5986         max_ascent and max_descent.
5988         * dispextern.h (struct glyph): Add voffset.
5989         (struct it): Replace height by descent, max_height by max_descent.
5991         * xterm.c (x_append_glyph): Set voffset
5992         (x_append_stretch_glyph): Ditto.
5993         (x_produce_image_glyph): Ditto.
5994         (x_produce_glyphs): Take voffset into account.
5995         (x_produce_image_glyph): Ditto.
5996         (x_produce_stretch_glyph): Ditto.
5998         * dispextern.h (struct it): Add voffset.
5999         * xdisp.c (push_it): Save voffset.
6000         (pop_it): Restore it.
6002         * xdisp.c (it_props): Add entry for `raise'.
6003         (handle_raise_prop): New.
6005         * dispextern.h (RAISE_PROP_IDX): New.
6007         * xdisp.c (Qraise): New.
6008         (syms_of_xdisp): Define Qraised.
6010         * xterm.c (x_scroll_bar_move): Clear to the left and right
6011         of toolkit scroll bars differently.
6012         (x_scroll_bar_move): Removed.
6013         (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
6015         * dispextern.h: Make it compilable --with-x=no.
6016         * alloc.c: Ditto.
6017         * emacs.c: Ditto.
6018         * dispnew.c: Ditto.
6019         * keyboard.c: Ditto.
6020         * term.c: Ditto.
6021         * xdisp.c: Ditto.
6022         * xfaces.c: Ditto.
6023         * xfns.c: Ditto.
6024         * xmenu.c: Ditto.
6026 1998-11-25  Gerd Moellmann  <gerd@gnu.org>
6028         * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
6030 1998-11-24  Gerd Moellmann  <gerd@gnu.org>
6032         * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
6033         update slider size, only.
6034         (xm_scroll_callback): Set dragging member of the scroll bar.
6035         (xt_action_hook): Reset last_scroll_bar_part.
6036         (XTredeem_scroll_bar): Reset bar->dragging to nil.
6038         * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
6039         window on newly created frames that don't have one.
6041 1998-11-23  Gerd Moellmann  <gerd@gnu.org>
6043         * xdisp.c (restore_overlay_strings): Removed.
6044         (restore_dpvec): Removed.
6045         (init_from_display_pos): Inline both functions above.
6047         * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
6048         (parse_image_spec): Handle it.
6049         (xbm_format): Use it.
6050         (xpm_format): Ditto.
6051         (pbm_format): Ditto.
6052         (jpeg_format): Ditto.
6053         (tiff_format): Ditto.
6054         (gif_format): Ditto.
6055         (gs_format): Ditto.
6057         * xdisp.c (set_window_cursor): Removed.
6058         (redisplay_internal): Case cursor motion in cursor line of
6059         selected window; use set_cursor_from_row.
6061 1998-11-22  Gerd Moellmann  <gerd@gnu.org>
6063         * widget.c (EmacsFrameSetCharSize): Take widget's border width
6064         into account.
6066 1998-11-21  Gerd Moellmann  <gerd@gnu.org>
6068         * xterm.c (expose_frame): Redraw menu bar window.
6070         * xdisp.c (display_menu_bar): Record hpos instead of x-position
6071         in menu item.
6073         * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
6074         of FRAME_TOOLBAR_LINES.  Use `f' instead of `frame'.
6076         * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
6077         to determine vertical_scroll_bar_extra.
6078         (EmacsFrameSetCharSize): Ditto.
6079         * xfns.c (x_figure_window_size): Ditto.
6081         * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
6082         (x_draw_bitmap): Ditto.
6084         * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
6085         * xfaces.c (realize_basic_faces): Realize it.
6087 1998-11-20  Gerd Moellmann  <gerd@gnu.org>
6089         * xmenu.c (xmenu_show): Add workaround for remaining button grab
6090         under LessTif   Use the widget of the frame as parent for the 
6091         menu, again.
6093 1998-11-19  Gerd Moellmann  <gerd@gnu.org>
6095         * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
6096         When EnterNotify, don't generate a mouse movement event if
6097         notification is from a busy-cursor child window.
6099         * xterm.h (struct x_output): Add busy_window, remove cursor.
6101         * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
6102         Use a transparent window to display the busy-cursor.
6103         (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
6105 1998-11-17  Gerd Moellmann  <gerd@gnu.org>
6107         * xdisp.c (check_window_end): New, for debugging.
6108         (CHECK_WINDOW_END): New.
6109         (try_window_id): Use it.
6111         * xterm.c (process_expose_from_menu): Return int.
6113         * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
6114         TOOLBAR_EVENT events in last_nonmenu_event.
6116 1998-11-16  Gerd Moellmann  <gerd@gnu.org>
6118         * xdisp.c (redisplay_window): If windows_or_buffers_changed,
6119         window end isn't reliable, so set window_end_valid to nil.
6120         (redisplay_internal): If overlay arrow has changed, set
6121         windows_or_buffers_changed to redisplay thoroughly.
6123         * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
6124         necessary.
6126         * xfns.c (file_dialog_cb): New.
6127         (Fx_file_dialog): New.
6128         * fileio.c (Fread_file_name): Call it.
6130         * xrdb.c (x_load_resources): Add default resoures for file 
6131         selection dialog.
6133 1998-11-14  Gerd Moellmann  <gerd@gnu.org>
6135         * xterm.c (note_mouse_highlight): Don't highlight when popup
6136         is active.
6138         * keyboard.c (timer_check): Inhibit busy cursor around calls to
6139         timer-event-handler.  This busy cursor tends to be anoying if
6140         fontifying stealthily.
6142         * dispnew.c (direct_output_for_insert): Give up if current row
6143         contains trailing whitespace.
6145 1998-11-13  Gerd Moellmann  <gerd@gnu.org>
6147         * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
6149         * xdisp.c (handle_fontified_prop): New.
6150         (Vfontification_functions): New.
6151         (Qfontification_functions): New.
6152         (it_props): Add handle_fontified_prop.
6154 1998-11-12  Gerd Moellmann  <gerd@gnu.org>
6156         * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
6157         Otherwise, under LessTif, after the popup has gone, all button
6158         press events come in for the frame's widget, and release events
6159         come in for the edit_widget.
6160         * xterm.c (XTread_socket): Remove workaround for that problem.
6161         (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
6162         XmScrollBarSetValues.
6163         (SET_SAVED_MENU_EVENT): Give it statement form.
6165         * xfaces.c (display_message): If waiting_for_input, don't display
6166         the message.
6168         * window.c (scroll_command): If not acting on current_buffer,
6169         make redisplay consider all windows.
6171         * xfns.c (Fx_hide_tip): Return t if tooltip was open.
6173         * xdisp.c (handle_glyph_prop): Set it->object for images to
6174         the object having the glyph property.
6176         * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
6177         invisible.
6179 1998-11-11  Gerd Moellmann  <gerd@gnu.org>
6181         * xterm.h (struct x_display_info): Add gray pixmap.  * xterm.c
6182         (x_term_init): Create the gray pixmap.
6183         (x_setup_relief_color): Use it.
6184         (x_get_glyph_string_clip_rect): Draw a toolbar window over the
6185         internal border at the top of a frame.
6186         (x_init_glyph_string): Likewise.
6187         (x_draw_glyph_string_relief): Correct right x by 1 pixel for 
6188         full-width lines.
6189         (XTflash): Don't flash the toolbar window.
6191         * xterm.c (XTread_socket): Workaround for LessTif popup menus
6192         in case of ButtonPress events.
6194 1998-11-10  Gerd Moellmann  <gerd@gnu.org>
6196         * xrdb.c (x_load_resources): Add grey background colors as
6197         defaults for menus, scroll bars, and dialogs.
6199         * insdel.c (prepare_to_modify_buffer): Move setting
6200         windows_or_buffers_changed from modify_region here.
6202         * xfns.c (Fx_show_tip): Inhibit redisplay.
6203         (Fx_hide_tip): Ditto.
6204         (Fx_image_header): New.
6206 1998-11-09  Gerd Moellmann  <gerd@gnu.org>
6208         * dispnew.c (clear_window_matrices): Set window_end_valid to nil
6209         when clearing current window matrices.
6211 1998-11-08  Gerd Moellmann  <gerd@gnu.org>
6213         * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
6214         position from a string position.  Use the right end position
6215         if the property spans a whole overlay string.
6217 1998-11-07  Gerd Moellmann  <gerd@gnu.org>
6219         * xmenu.c (menubar_selection_callback): Remove workaround for
6220         Lesstif not calling XmNpopdownCallback because it doesn't
6221         handle the case where users don't select any menu item.
6223         * insdel.c (modify_region): Set windows_or_buffers_changed.
6225         * buffer.c (set_buffer_internal): Don't set
6226         windows_or_buffers_changed.
6228         * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
6230         * xmenu.c (menubar_selection_callback): Add workaround for
6231         Lesstif not calling XmNpopdownCallback.
6233         * xdisp.c (eval_mode_element): New.
6234         (eval_mode_handler): New.
6235         (display_mode_element): Use eval_mode_element.
6237         * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
6238         Remove code looking at text props of default value.
6240         * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
6242 1998-11-06  Gerd Moellmann  <gerd@gnu.org>
6244         * xmenu.c (single_submenu): Set button_type of menu to 
6245         BUTTON_TYPE_NONE.
6246         (single_submenu): Likewise for panes and menu items.
6247         (set_frame_menubar): Set button_type of menu bar to none.
6248         (xmenu_show): Likewise.
6249         (single_submenu): Set widget values selected slot.
6250         (xmenu_show): Likewise.
6252         * xmenu.c (push_menu_item): Add parameters `type' and
6253         `selected'. Store it in menu_items.
6254         (MENU_ITEMS_ITEM_TYPE): New.
6255         (MENU_ITEMS_ITEM_SELECTED): New.
6256         (MENU_ITEMS_ITEM_LENGTH): Increase by two.
6258         * xfns.c (clear_image_cache): Get the current time, before
6259         doing anything.
6260         (cache_image): Set prev pointer of next image.
6261         (clear_image_cache): Clear current matrices if any image was
6262         freed.
6264         * xterm.c (XTread_socket): Set inhibit_busy_cursor.
6266         * xfns.c (x_set_cursor): New.
6267         (Fx_display_busy_cursor): New.
6268         (Fx_undisplay_busy_cursor): New.
6270         * xterm.h (struct x_output): Add busy_cursor.
6272         * xfns.c (Vx_busy_pointer_shape): New.
6273         (x_set_mouse_color): Create busy cursor.
6275         * process.c (wait_reading_process_input): Show and hide busy
6276         cursor.
6278         * keyboard.c (command_loop_1): Display busy cursor.
6280         * eval.c (Fsignal): Hide busy cursor.
6282         * buffer.c (set_buffer_internal): Don't set
6283         windows_or_buffers_changed.
6285         * xterm.c (redo_mouse_highlight): New.
6287 1998-11-04  Gerd Moellmann  <gerd@gnu.org>
6289         * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
6290         (x_build_heuritic_mask): New.
6291         (lookup_image): Call it.
6293         * xterm.c (note_toolbar_highlight): Always set up help_echo.
6294         (previous_help_echo): New.
6295         (XTread_socket): Generate help event with nil message when
6296         leaving a region with help-echo.
6297         (note_mouse_highlight): Handle `help-echo' over text.
6298         (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
6299         CirculateRequest.
6300         (clear_mouse_face): Don't clear if tooltip is shown.
6301         (XTread_socket): Redo mouse-highlight after tooltip is gone.
6302         Avoid SET_FRAME_GARBAGED when tooltip is mapped.
6304         * keyboard.c (Vshow_help_function): New.
6305         (read_char): Use it.
6307 1998-11-03  Gerd Moellmann  <gerd@gnu.org>
6309         * xfns.c (x_create_tip_frame): New.
6310         (Fx_show_tip): New.
6311         (Fx_hide_tip): New.
6313         * xterm.c (x_destroy_window): Handle case that we don't have 
6314         a widget.
6316         * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
6317         to full_width_p.  Add internal_border_p.
6319 1998-11-02  Gerd Moellmann  <gerd@gnu.org>
6321         * xterm.c (note_mode_line_highlight): Check the charpos of
6322         the glyph under the mouse pointer before accessing text
6323         properties at that position.
6325 1998-11-01  Gerd Moellmann  <gerd@gnu.org>
6327         * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
6329         * xdisp.c (auto-raise-toolbar-buttons): New.
6330         (build_desired_toolbar_string): Handle the flag.
6331         (toolbar-button-margin): New.
6332         (toolbar-button-relief): New.
6333         (build_desired_toolbar_string): Use margin and relief.
6335         * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
6336         for FreeBSD.
6337         (note_mode_line_highlight): New.
6338         (note_mouse_highlight): Call it.
6340 1998-10-31  Gerd Moellmann  <gerd@gnu.org>
6342         * s/freebsd.h (NARROWPROTO): New.
6344         * xdisp.c (display_string): New parameter face_string.
6345         (display_mode_element): When displaying a symbol with a string
6346         value, use text properties from the symbol's default value, maybe.
6348         * xrdb.c (x_load_resources): Add font defaults for menus and
6349         dialogs.
6351 1998-10-30  Gerd Moellmann  <gerd@gnu.org>
6353         * xfns.c (Fx_create_frame): Try 12pt Courier font first.
6355 1998-10-29  Gerd Moellmann  <gerd@gnu.org>
6357         * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
6358         produced for characters with codes < 32 under certain
6359         circumstances.
6361         * xdisp.c (redisplay_window): Handle values of PT in front
6362         of invisible, intangible text.
6363         (try_window_id): Set overlay_arrow_seen to zero before 
6364         displaying lines.
6365         (display_mode_element): Assign to glyphs written for a mode
6366         line spec `%x' as object the Lisp format string, as position
6367         the position of the `%' in that string.
6368         (display_string): If displaying a C string, optionally get
6369         the face to use from a Lisp string.
6371         * xterm.c (expose_window_tree): Include mode line height.
6373         * xfns.c (Fx_create_frame): Add toolbar height to frame height.
6375 1998-10-27  Gerd Moellmann  <gerd@gnu.org>
6377         * xterm.c (note_mouse_highlight): Change mouse pointer shape
6378         over mode line.
6380 1998-10-26  Gerd Moellmann  <gerd@gnu.org>
6382         * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
6384         * xdisp.c (redisplay_window): If mode line height has changed,
6385          arrange for a thorough immediate redisplay using the correct mode
6386          line height.
6387          (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
6389         * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
6390         (CURRENT_MODE_LINE_HEIGHT): New.
6391         (DESIRED_MODE_LINE_HEIGHT): New.
6393         * keyboard.c (make_lispy_event): Add string and string position
6394         info to mouse-click events.
6395         (read_key_sequence): Handle `local-map' property of mode line
6396         strings.
6398         * keyboard.h (POSN_STRING): New.
6400 1998-10-25  Gerd Moellmann  <gerd@gnu.org>
6402         * dispnew.c (mode_line_string): Mew.
6404         * xterm.c (xt_action_hook): New.
6405         (x_create_toolkit_scroll_bar): Add action hook.
6406         (xm_scroll_callback): Implement dragging.
6408         * keyboard.c (Qend_scroll): New.
6409         (scroll_bar_parts): Add it.
6411         * termhooks.h (scroll_bar_end_scroll): New.
6413         * xterm.c (XTread_socket): Bug fix.
6415 1998-10-24  Gerd Moellmann  <gerd@gnu.org>
6417         * xdisp.c (redisplay_window): Finish scroll bars after
6418         redisplaying toolbar.
6420         * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
6421         (syms_of_keyboard): Add Qbottom.
6423         * termhooks.h (scroll_bar_to_top): New.
6424         (scroll_bar_to_bottom): New.
6426         * xdisp.c (redisplay_window): Always resize toolbar window if
6427         auto_resize_toolbar_p is non-zero.
6428         (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
6429         (window_box): New.
6430         (window_box_height): New.
6431         (window_box_width): New.
6432         (window_box_left): New.
6433         (window_box_right): New.
6434         (window_box_edges): New.
6436 1998-10-23  Gerd Moellmann  <gerd@gnu.org>
6438         * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
6439         XawScrollbarSetThumb in FreeBSD.
6440         (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
6441         to true.
6443         * window.c (get_phys_cursor_glyph): Return null if cursor vpos
6444         is out of range.
6446         * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
6447         (x_term_init): Initialize it.
6449         * xterm.h (struct x_display_info): Add scroll_bar_pixel.
6451         * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
6452         cursor.
6454 1998-10-22  Gerd Moellmann  <gerd@gnu.org>
6456         * keyboard.c (make_lispy_event): Handle scroll_bar_click
6457         differently when using toolkit scroll bars.
6459         * xterm.c (x_send_scroll_bar_event): New.
6460         (x_scroll_bar_to_input_event): New.
6461         (xaw3d_scroll_callback): New.
6462         (xaw3d_jump_callback): New.
6463         (xm_scroll_callback): New.
6464         (x_toolkit_scroll_p): New.
6465         (XTread_socket): Handle scroll bar client message.
6466         (x_term_init): Initialize Xatom_Scrollbar.
6467         (x_scroll_bar_create): Set cursor.
6468         (xm_scroll_callback):
6469         (x_create_toolkit_scroll_bar): New.
6470         (x_set_toolkit_scroll_bar_thumb): New.
6471         (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
6472         (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
6474         * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
6476 1998-10-21  Gerd Moellmann  <gerd@gnu.org>
6478         * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
6479         (XTread_socket): Don't handle mouse button events for scroll bars
6480         if using toolkit scroll bars.
6481         (XTset_vertical_scroll_bar): Set thumb size and position for
6482         Athena scroll bar.
6484         * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
6486         * xterm.c (XTread_socket): Dispatch expose event to widget
6487         if using toolkit scroll bars.
6488         (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
6489         (x_scroll_bar_create): Create and show a scroll bar widget 
6490         if using toolkit scroll bars.
6491         (x_scroll_bar_move): Handle tookit scroll bars.
6493         * Makefile.in (LIBW): Use Xaw3d if present.
6495         * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
6496         (HAVE_XAW3D): New.
6497         
6498         * config.in (USE_TOOLKIT_SCROLL_BARS): New.
6499         (HAVE_XAW3D): New.
6501         * xterm.c (XTset_vertical_scroll_bar): Correct position of 
6502         right vertical scroll bar.
6504 1998-10-20  Gerd Moellmann  <gerd@gnu.org>
6506         * xfns.c (xpm_load): Support reading XPM images from string
6507         buffers containing data in the same format as an XPM file.
6508         Support `:color-symbols'.
6509         (xpm_format): Add `:data'.
6510         (xpm_keyword_index): Add XPM_DATA.
6511         (syms_of_xfns): Add `:color-symbols'.
6512         (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
6513         (xpm_valid_color_symbols_p): New.
6514         (xpm_image_p): Call it.
6516         * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
6517         attribute to the image if item is not enabled.
6519         * xfns.c (x_laplace): New.
6520         (x_laplace_read_row): New.
6521         (x_laplace_write_row): New.
6522         (lookup_image): Handle common image attributes here.  New
6523         attribute `:algorithm'.
6525         * xfaces.c (clear_face_cache): Call clear_image_cache.
6527         * xterm.c (x_inverted_image_mask): Removed.
6528         (x_draw_image_foreground_1): New.
6529         (x_draw_image_glyph_string): Draw images with mask to a temporary
6530         pixmap to reduce flickering.
6532         * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
6533         (display_toolbar_line): Remove parameter `margin'.
6535 1998-10-19  Gerd Moellmann  <gerd@gnu.org>
6537         * xdisp.c (toolbar_lines_needed): New.
6538         (auto-resize-toolbars): New.
6540         * xfns.c (cache_image): Correct call to xrealloc.
6542         * dispnew.c (Fset_toolbar_height): Removed.
6544         * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
6545         FRAME_MENU_BAR_LINES.
6547         * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
6548         instead of FRAME_MENU_BAR_LINES.
6549         (check_frame_size): Ditto.
6551         * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
6552         instead of FRAME_MENU_BAR_LINES.
6553         (adjust_frame_glyphs_for_frame_redisplay): Ditto.
6554         (build_frame_matrix): Ditto.
6555         (change_frame_size_1): Ditto.
6557         * frame.h (FRAME_TOOLBAR_LINES): New.
6558         (FRAME_TOP_MARGIN): New.
6560         * window.c (struct save_window_data): Add frame_toolbar_lines.
6561         (Fset_window_configuration): Handle toolbar lines.
6562         (Fcurrent_window_configuration): Save toolbar lines.
6564         * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
6566         * xfns.c (Fx_create_frame): Add default parameter for toolbar.
6568         * frame.h (struct frame): Rename top_margin to toolbar_lines.
6570         * xfns.c (x_frame_parms): Add `toolbar-lines'.
6571         (x_set_toolbar_lines): New.
6573         * keyboard.c (cmd_error_internal): Bug fix.
6575         * xterm.c: Remove double include of syssignal.h.
6577 1998-10-18  Gerd Moellmann  <gerd@gnu.org>
6579         * xterm.c (x_toolbar_item): New.
6580         (x_handle_toolbar_click): Use it.
6581         (note_toolbar_highlight): Use it.
6583         * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
6584         and toolbar_items_vectors.
6586         * xterm.c (help_echo): New.
6587         (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
6588         (x_set_glyph_string_gc): Handle them.
6589         (x_after_update_window_line): Don't do anything in pseudo-windows.
6590         (x_produce_image_glyph): Take image margin and face relief into
6591         account.
6592         (x_get_glyph_string_clip_rect): Handle pseudo-windows.
6593         (x_draw_glyph_string_background): Optimize case when face has
6594         relief.
6595         (x_setup_relief_color): Take frame instead of glyph string
6596         parameter.
6597         (x_draw_relief_rect): New.
6598         (x_draw_glyph_string_relief): Call it.
6599         (x_draw_image_glyph_string_foreground): Handle margin and image
6600         relief.
6601         (x_draw_image_glyph_string_background): Ditto.
6602         (expose_frame): Redraw toolbar window.
6603         (expose_window): Don't draw cursor for pseudo-windows.
6604         (x_y_to_hpos_vpos): Handle pseudo-windows.
6605         (frame_to_window_pixel_xy): New.
6606         (note_mouse_highlight): Call note_toolbar_highlight.
6607         (x_handle_toolbar_click): New.
6608         (note_toolbar_highlight): New.
6609         (show_mouse_face): Change int parameter `hl' to parameter of
6610         type enum draw_glyphs_face.  Handle image highlighting.
6611         (XTread_socket): Return a HELP_EVENT input event if help_echo is
6612         non-nil.  Use x_handle_toolbar_click.
6614         * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
6616         * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
6617         IMAGE_BOOL_VALUE.
6618         (parse_image_spec): Handle them.
6619         (image_spec_value): Additional parameter found.
6620         (free_image): Remove image from the vector `images' of the 
6621         image cache.
6622         (clear_image_cache): Additional parameter force_p.
6623         (Fclear_image_cache): New.
6624         (x_find_image_file): New.
6625         (xbm_load): Handle `:margin' and `:relief'.  Use
6626         x_find_image_file.
6627         (xpm_load): Likewise.
6628         (pbm_load): Likewise.
6629         (jpeg_load): Likewise.
6630         (tiff_load): Likewise.
6631         (gif_load): Likewise.
6633         * keyboard.c (Qhelp_echo): New symbol.
6634         (read_char): Handle `toolbar' and `help_echo' events.
6635         (kbd_buffer_get_event): Handle HELP_ECHO input event.
6636         (make_lispy_event): Handle TOOLBAR_EVENT.
6637         (toolbar_items): New.
6638         (process_toolbar_item): New.
6639         (PROP): New.
6640         (init_toolbar_items): New.
6641         (append_toolbar_item): New.
6642         (read_char_x_menu_prompt): Handle `toolbar' event.
6643         (read_key_sequence): Ditto.
6645         * xfaces.c (Qtoolbar): New.
6646         (realize_basic_faces): Realize `toolbar' face.
6647         (face_at_string_position): Remove parameter modeline_p, add
6648         base_face_id.
6650         * xfns.c (xbm_load_image_from_file): Don't use Xmu function
6651         to read data.
6653 1998-10-17  Gerd Moellmann  <gerd@gnu.org>
6655         * xdisp.c (init_iterator): Replace parameter modeline_p with
6656         base_face_id.
6657         (next_element_from_string): Call get_next_display_element
6658         recursively after handling text properties.
6659         (prepare_menu_bars): Call update_toolbar.
6660         (update_toolbar): New.
6661         (build_desired_toolbar_string): New.
6662         (display_toolbar_line): New.
6663         (redisplay_toolbar): New.
6664         (toolbar_item_info): New.
6665         (redisplay_window): Call redisplay_toolbar.
6666         (Fdump_toolbar_row): New.  Defined if compiled with GLYPH_DEBUG.
6668         * dispnew.c (clear_current_matrices): Clear matrices of toolbar
6669         window.
6670         (clear_desired_matrices): Ditto.
6671         (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
6672         (free_glyphs): Free matrices of toolbar window.
6673         (update_frame): Update toolbar window.
6674         (change_frame_size_1): Take toolbar into account.
6675         (Fset_toolbar_height): New.
6677         * dispextern.h (struct it): Remove member modeline_p, add
6678         base_face_id.
6679         (struct image): Add members relief and margin.
6680         (IMAGE_ASCENT): Include margin in height.
6682 1998-10-14  Gerd Moellmann  <gerd@gnu.org>
6684         * xfns.c (Fclear_image_cache): New.
6686         * xfaces.c (realize_basic_faces): Realize toolbar face.
6687         (face_at_string_position): Remove parameter modeline_p, add
6688         base_face_id.
6690         * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
6692 1998-10-13  Gerd Moellmann  <gerd@gnu.org>
6694         * keyboard.c (syms_of_keyboard): Intern `:help'.
6696 1998-10-12  Gerd Moellmann  <gerd@gnu.org>
6698         * xterm.c (note_toolbar_highlight): New.
6699         (note_mouse_highlight): Call it.
6701         * window.c (window_from_coordinates): Additional parameter toolbar_p.
6702         (coordinates_in_window): Handle toolbar window.
6704         * keyboard.c (toolbar_items): New.
6705         (process_toolbar_item): New.
6706         (parse_toolbar_item): New.
6707         (init_toolbar_items): New.
6708         (append_toolbar_item): New.
6710         * dispextern.h (enum toolbar_item_idx): New.
6711         (enum toolbar_item_image): New.
6713         * frame.h (struct frame): Add toolbar-related members.
6715         * xfaces.c (face_at_string_position): Remove assertion that
6716         current_buffer == window's buffer.  This is not the case when
6717         called for the toolbar window.
6719         * frame.c (make_frame): Initialize toolbar members.
6721         * alloc.c (mark_object): Mark toolbar data of frames.
6723         * frame.h (struct frame): Add toolbar-related members
6724         toolbar_window, desired_toolbar_items, current_toolbar_items,
6725         desired_toolbar_string, current_toolbar_string,
6726         n_desired_toolbar_items, n_current_toolbar_items.  Add
6727         window_height.
6729         * xterm.c (x_after_update_window_line): Don't draw bitmap
6730         areas for pseudo-windows.
6731         (expose_frame): Handle toolbar window.
6732         (expose_window): Don't do cursor stuff for pseudo-windows.
6734         * xdisp.c (display_menu_bar): Correct calls to init_iterator.
6736 1998-10-11  Gerd Moellmann  <gerd@gnu.org>
6738         * frame.c (make_frame): Initialize toolbar_window.
6740         * alloc.c (mark_object): Make the toolbar window.
6742         * dispnew.c (update_frame): Update frame's toolbar_window.
6743         (clear_current_matrices): Likewise.
6744         (clear_desired_matrices): Likewise.
6745         (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
6746         (free_glyphs): Free the toolbar window and its matrices.
6748         * frame.h (struct frame): Add toolbar_window.
6750         * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
6751         with relief.
6753 1998-10-10  Gerd Moellmann  <gerd@gnu.org>
6755         * dispnew.c (buffer_posn_from_coords): Don't screw up if 
6756         window start is not in the range BEGV..ZV.
6758 1998-10-09  Gerd Moellmann  <gerd@gnu.org>
6760         * xdisp.c (try_scrolling): Experimentally handle the case
6761         that scroll-preserve-screen-position is set to `always'.
6763         * window.c (Vscroll_preserve_screen_position): Replacement for
6764         scroll_preserve_screen_position.
6766 1998-10-08  Gerd Moellmann  <gerd@gnu.org>
6768         * dispnew.c: Don't initialize auto structs; the HP/UX compiler
6769         doesn't like it.
6770         * xdisp.c: Ditto.
6772         * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
6774 1998-10-06  Gerd Moellmann  <gerd@gnu.org>
6776         * minibuf.c (Fminibuffer_complete_word): Fix computation of 
6777         i_byte when prompts are inserted into minibuffers.
6779         * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
6780         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
6781         (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
6783 1998-10-04  Gerd Moellmann  <gerd@gnu.org>
6785         * xdisp.c (make_cursor_line_fully_visible): New.
6786         (try_scrolling): New.
6787         (redisplay_window): Move scrolling code to try_scrolling.
6788         (make_cursor_line_fully_visible): Handle case of window too small
6789         to show a single line.
6790         (redisplay_window): Case forced window start---use
6791         make_cursor_line_fully_visible.
6792         (redisplay_window): Case cursor movement via current matrix.
6793         If ending up on a partially visible line, make it fully visible
6794         instead of recentering.
6795         (try_scrolling): Additional parameter scroll_smoothly.
6797         * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
6799 1998-09-28  Gerd Moellmann  <gerd@gnu.org>
6801         * window.c (window_scroll_pixel_based): Bug fix: vpos used
6802         instead of y-position for scroll-preserved-screen-position.
6804 1998-09-07  Gerd Moellmann  <gerd@gnu.org>
6806         * dispnew.c (update_frame_line): If current row is not enabled,
6807         write the whole line.
6809 1998-09-06  Gerd Moellmann  <gerd@gnu.org>
6811         * lisp.h (HAVE_FACES): Removed.
6813         * dispextern.h (HAVE_FACES): Removed.
6815         * config.in (HAVE_FACES): Removed.
6817         * dispnew.c (HAVE_FACES): Removed.
6819         * xdisp.c (HAVE_FACES): Removed.
6821         * xfaces.c (HAVE_FACES): Removed.
6823 1998-09-05  Gerd Moellmann  <gerd@gnu.org>
6825         * xdisp.c (init_iterator): If face_change_count is non-zero,
6826         free realized faces.
6828         * xfaces.c (free_all_realized_faces): Make it externally visible.
6829         (Finternal_set_lisp_face_attribute): Increment
6830         windows_or_buffers_changed.
6832         * dispnew.c (direct_output_for_insert): Give up if
6833         face_change_count is non-zero.
6834         (direct_output_forward_char): Ditto.
6836         * xfaces.c (face_change_count): New.
6838 1998-09-04  Gerd Moellmann  <gerd@gnu.org>
6840         * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
6841         of range.
6843 1998-09-03  Gerd Moellmann  <gerd@gnu.org>
6845         * term.c (Ftty_display_color_p): New.
6847 1998-09-02  Gerd Moellmann  <gerd@gnu.org>
6849         * xfaces.c (Ftty_defined_colors): New.
6851         * xterm.c (x_produce_glyphs): Fix computation of
6852         contains_overlapping_glyphs_p for ASCII.
6854         * dispnew.c (Fshow_cursor): Don't change cursor state while
6855         redisplaying.
6856         (direct_output_for_insert): If a glyph with lbearing or rbearing
6857         is among the new glyphs, set row flag contains_overlapping_glyph_p.
6859 1998-09-01  Gerd Moellmann  <gerd@gnu.org>
6861         * term.c (OUTPUT_IF): Make replacement text have statement form.
6862         (OUTPUT1_IF): Ditto.
6863         (TS_italic_mode, TS_end_italic_mode): Removed.
6864         (TS_bold_mode): Removed.
6865         (TS_underscore_mode, TS_end_underscore_mode): Removed.
6866         (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
6867         (TS_enter_reverse_mode): New.
6868         (TS_enter_underline_mode, TS_exit_underline_mode): New.
6869         (TN_magic_cookie_glitch_ul): New.
6870         (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
6871         (TS_exit_attribute_mode): New.
6872         (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
6873         (TS_set_foreground, TS_set_background): New.
6874         (reset_terminal_modes): Switch colors back to default.
6875         (write_glyphs): Turn face on before writing text, turn it off
6876         afterwards.
6877         (insert_glyphs): Ditto.
6878         (term_init): Initialize new terminal capability variables.
6879         (turn_on_face): Turn a face on.
6880         (turn_off_face): Turn a face off.
6882         * lisp.h (MAKE_GLYPH): Remove test for frame type.
6883         (GLYPH_CHAR): Ditto.
6884         (GLYPH_FACE): Ditto.
6886         * xfaces.c (Vface_tty_color_alist): New.
6887         (face-register-tty-color): New.
6888         (face-clear-tty-colors): New.
6890         * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
6891         (struct it): Remove member faces_p since we now always have faces.
6893 1998-08-31  Gerd Moellmann  <gerd@gnu.org>
6895         * dispextern.h (struct face): Add tty appearance flags.
6897         * xdisp.c (init_iterator): Always handle faces.
6898         (extend_face_to_end_of_line): Handle tty frames.
6900         * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
6901         passed in.
6903 1998-08-30  Gerd Moellmann  <gerd@gnu.org>
6905         * xfaces.c (realize_default_face): Use empty strings to indicate
6906         that the face should use the default foreground/background
6907         color of the terminal.  Fill font-related attributes with 
6908         appropriate values for tty frames.
6910         * emacs.c (main): Call syms_of_xfaces before init_window_once.
6912         * xfaces.c (realize_default_face): If face `default' is not
6913         yet known, create it.
6915         * frame.c (make_terminal_frame): Call init_frame_faces
6916         unconditionally.
6918         * xfaces.c (init_frame_faces): Make it work for tty frames.
6919         (free_frame_faces): Ditto.
6920         (clear_face_cache): Ditto.
6921         (recompute_basic_faces): Ditto.
6922         (Fframe_face_alist): Ditto.
6923         (free_realized_face): Ditto.
6924         (prepare_face_for_display): Ditto.
6925         (clear_face_gcs): Ditto.
6926         (lookup_face): Ditto.
6927         (smaller_face): Ditto.
6928         (realize_default_face): Ditto.
6929         (realize_face): Ditto.
6930         (realize_face): Dispatch to functions depending on the frame type.
6931         (realize_x_face): X way of realizing faces.
6932         (realize_tty_face): TTY way of realizing faces.
6934 1998-08-29  Gerd Moellmann  <gerd@gnu.org>
6936         * xfaces.c (realize_face): Remove parameter unibyte_registry,
6937         compute it instead.
6938         (lookup_face): Remove local variable unibyte_registry.
6940 1998-08-22  Gerd Moellmann  <gerd@gnu.org>
6942         * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
6943         1 pixel longer.
6945         * xdisp.c (face_before_or_after_it_pos): Fix computation 
6946         of face in buffer.
6948         * editfns.c (make_buffer_string_both): If prompt in buffer,
6949         prevent start > end.
6951         * indent.c (Fvertical_motion): Set current_buffer to window's
6952         buffer if it isn't already.
6954 1998-08-21  Gerd Moellmann  <gerd@gnu.org>
6956         * dispextern.h (GLYPH_DEBUG): Use default 0.
6958         * xdisp.c (it_props): New member `smaller'.
6959         (init_iterator): Initialize it.
6960         (Qsmaller): New.
6961         (push_it): Save value of `smaller' value on the stack.
6962         (pop_it): Restore `smaller' from the stack.
6963         (handle_smaller_prop): New.
6964         (handle_face_prop): Use `smaller' text property to select a
6965         suitable face.
6967         * dispextern.h (SMALLER_PROP_IDX): New.
6968         (struct it): Add member `smaller'.
6970         * xfaces.c (smaller_face): New.
6972         * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
6974         * dispnew.c (allocate_matrices_for_window_redisplay): Compute
6975         total pixel width of window differently.
6977         * xdisp.c (init_iterator): Compute width of mode line differently.
6979         * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
6980         of bitmap areas.
6982         * window.c (Fsplit_window): Include width of bitmap areas in
6983         window width.
6984         (window_internal_width): Subtract width of bitmap areas from
6985         total width.
6987 1998-08-18  Gerd Moellmann  <gerd@gnu.org>
6989         * xdisp.c: Functions reordered for better readability.
6991         * dispnew.c (update_text_area): Handle glyphs with arbitrary
6992         lbearing.
6993         (update_window_tree): Parameter no_scrolling_p removed.
6994         (update_single_window): Ditto.
6996         * xterm.c (x_get_char_font_and_encoding): Renamed to
6997         x_get_char_face_and_encoding.
6999         * dispnew.c (update_text_area): Don't call get_glyph_overhangs
7000         if end of current row reached.
7002         * xterm.c (x_get_glyph_face_and_encoding): New.
7003         (x_get_glyph_overhangs): Call it.
7005         * xdisp.c (Qshow_trailing_whitespace): New.
7006         (Qtrailing_whitespace): New.
7007         (enum prop_handled): New.
7008         (struct props, it_props): New.
7009         (next_overlay_change): New.  Works like Fnext_overlay_change
7010         but doesn't use xmalloc.
7011         (handle_stop): Restructured.
7012         (face_before_or_after_it_pos): Case iteration over a string: fix
7013         handling of face before current position.
7015 1998-08-16  Gerd Moellmann  <gerd@gnu.org>
7017         * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
7018         reallocation matrix if fonts_changed_p.
7019         (update_text_area): Handle glyphs with lbearing.
7021 1998-08-14  Gerd Moellmann  <gerd@gnu.org>
7023         * xdisp.c (struct props): New.
7024         (it_props): New.
7025         (compute_prop_info): New.
7026         (handle_stop): New.
7028         * textprop.c (validate_interval_range): Make it externally
7029         visible.
7031         * dispnew.c (direct_output_for_insert): Remove calls
7032         to compute_stop_pos.
7034         * dispextern.h (struct it): Remove check_charpos,
7035         next_overlay_pos.  Add what_changes.
7037 1998-08-10  Gerd Moellmann  <gerd@gnu.org>
7039         * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
7041         * xfaces.c (Vx_unibyte_registry_and_encoding): Removed.  Use
7042         face_default_registry instead.
7044         * syntax.c (scan_sexps_forward): Set up syntax table before
7045         jumping to initial state label.
7047 1998-08-09  Gerd Moellmann  <gerd@gnu.org>
7049         * dispnew.c (check_matrix_invariants): Handle case of row end pos
7050         >= ZV specially.
7052 1998-08-08  Gerd Moellmann  <gerd@gnu.org>
7054         * xdisp.c (redisplay_window): Case cursor movement---if cursor
7055         ends up in partially visible row, try to scroll.  Case forced
7056         window start---handle windows not tall enough to show a single
7057         line.
7059         * window.h (struct window): Member dy renamed vscroll.
7061         * xterm.c (x_list_fonts): Re-activate suppression of scalable
7062         fonts.
7063         (x_draw_stretch_glyph_string): Set clipping if using GC that
7064         hasn't set it yet.
7066         * xdisp.c (redisplay_window): Case forced window start -
7067         don't let cursor end on partially visible row.  Use desired
7068         matrix to find a suitable PT if it doesn't appear.
7069         (decode_mode_spec): Merged with 20.2.97.
7070         (try_window_reusing_current_matrix): Give up if old or
7071         new display is vscrolled.
7072         (redisplay_window): Reset vscrolling if forced window start,
7073         or if recentering.
7075 1998-08-06  Gerd Moellmann  <gerd@gnu.org>
7077         * xfaces.c (realize_default_face): Use the fontset name instead of
7078         the alias for the family attribute of the default face because we
7079         can't easily determine a good alias from fontset-alias-alist.
7080         (face_fontset): Use Fquery_fontset to find the fontset.
7081         (font_list): Additional pattern parameter.
7082         (try_font_list): Ditto.
7083         (set_lface_from_font_name): Set face family from font foundry
7084         and family.
7085         (font_list): If family contains a hyphen, build pattern differently.
7087 1998-08-05  Gerd Moellmann  <gerd@gnu.org>
7089         * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
7090         changed instead of setting the frame garbaged.
7092         * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
7093         all attribute values.  This is wrong if values are unspecified,
7094         i.e. nil.
7096         * xdisp.c (try_window_id): Give up if window start changed.
7098         * xfaces.c (make_realized_face): Store registry as Lisp object.
7099         (load_face_font_or_fontset): Compute registry of a face
7100         differently.  Make it `eq' to Vx_unibyte_registry_and_encoding if
7101         possible.
7103         * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
7104         differently.
7106         * alloc.c (mark_face_cache): Mark the registry member of faces.
7108         * dispextern.h (struct face): Make registry a Lisp string.
7110 1998-08-04  Gerd Moellmann  <gerd@gnu.org>
7112         * xterm.c (x_get_char_font_and_encoding): Additional parameter
7113         multibyte_p.  Handle unibyte text.
7114         (x_append_glyph): Set the multibyte_p flag of glyphs.
7115         (x_produce_image_glyph): Ditto.
7116         (x_append_stretch_glyph): Ditto.
7117         (x_produce_glyphs): Handle unibyte text like ASCII.
7119         * xdisp.c (push_it): Save the multibyte flag of an iterator on the
7120         stack.
7121         (pop_it): Restore it.
7122         (face_before_or_after_it_pos): Handle the case that the string or
7123         buffer is unibyte.
7124         (get_overlay_strings): Set the multibyte flag of the iterator if
7125         the new overlay string is multibyte.
7126         (get_glyph_property): Likewise.
7127         (get_next_display_element): Don't check for charset changes in
7128         unibyte text.
7129         (append_space): Compute face differently for unibyte text.
7130         (extend_face_to_end_of_line): Don't return quickly if face has
7131         stipple.
7133         * xfaces.c (load_face_font_or_fontset): Store registry and
7134         encoding of the font in the registry member of the face.
7135         (make_realized_face): Additional parameter `registry'.
7136         (free_realized_face): Free the registry of a realized face.
7137         (face_suitable_for_charset_p): Function form of the macro
7138         with the same name in uppercase.
7139         (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
7140         (choose_face_font): New parameter unibyte_registry.
7141         (choose_face_fontset_font): Ditto.
7142         (realize_default_face): Remember the registry and encoding of
7143         the specified frame font in Vx_unibyte_registry_and_encoding.
7144         (face_at_buffer_position): Handle unibyte.
7145         (face_at_string_position): Likewise.
7146         (realize_face): New parameter unibyte_registry.  
7147         (compute_char_face): Handle the unibyte case.
7149         * dispextern.h (struct glyph): Add bit multibyte_p.
7150         (struct face): New member registry holding the registry and
7151         encoding of the X font of the face.
7152         (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
7153         (enum face_id): Add BASIC_FACE_ID_SENTINEL.
7154         (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
7155         text.
7156         (struct iterator_stack_entry): Add multibyte_p.
7158         * xdisp.c (string_pos): Use string_char_to_byte.
7159         (char_charset): Removed.
7161 1998-08-03  Gerd Moellmann  <gerd@gnu.org>
7163         * xterm.c (x_draw_image_glyph_string_foreground): Draw a
7164         rectangle for a block cursor over an image without a mask.
7165         (x_stretch_block_cursor): Added.  Non-zero means don't draw
7166         a block cursor over a stretch as wide as that stretch.
7167         (x_draw_stretch_glyph_string): Use it.
7168         (x_draw_hollow_cursor): Ditto.
7170         * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
7171         (read_minibuf): Add front-sticky text property for prompt.
7173         * xdisp.c (char_charset): Return charset of a character,
7174         depending on whether or not multi-byte characters are enabled.
7176         * xfaces.c (Fset_face_charset_registry): Removed.
7177         (x_charset_registry): Determine registry from charset plist.
7179 1998-08-02  Gerd Moellmann  <gerd@gnu.org>
7181         * xdisp.c (get_next_display_element): Don't check for charset
7182         changes if multi-byte characters are not enabled.
7183         
7184         * xdisp.c (echo_area_display): Use the flush function from the
7185         redisplay interface.  
7186         * keyboard.c (detect_input_pending_run_timers): Likewise.
7188         * dispextern.h (produce_*glyphs_hook): Removed.
7189         * term.c (produce_*glyphs): Ditto.
7190         (cursor_to): Remove pixel position parameters.
7192         * dispnew.c: Remove hooks for window-based redisplay, introduce
7193         a redisplay interface structure.
7195         * xterm.c (x_per_char_metric): Return default char metrics if per
7196         char metric exists but contains a zero width.  Adobe Courier seems
7197         to contain such characters.
7199         * xdisp.c (compute_line_metrics): Compute the width of rows
7200         without stopping at glyphs with zero width.
7202 1998-08-01  Gerd Moellmann  <gerd@gnu.org>
7204         * xdisp.c (display_mode_line): If nothing was displayed at all,
7205         display a space.
7206         (hscroll_window_tree): Don't subtract 1 from target point if equal
7207         to ZV and window is not the selected window.
7209         * dispnew.c (check_matrix_invariants): Remove check for window
7210         start at BEGV or after newline.  This happens in rare cases
7211         intentionally.
7213 1998-07-31  Gerd Moellmann  <gerd@gnu.org>
7215         * xfaces.c (x_charset_registry): Use STRING_BYTES.
7216         (syms_of_xfaces): Add Vface_default_registry.
7217         (x_charset_registry): Use it.
7219         * xdisp.c (run_window_scroll_functions): Run window scroll functions.
7220         (redisplay_window): Use it.
7222         * dispnew.c (update_text_area): Handle lbearing of deleted text
7223         by backing up one character.
7225 1998-07-30  Gerd Moellmann  <gerd@gnu.org>
7227         * dispnew.c (adjust_glyph_matrix): Use a different check to 
7228         decide to do nothing.
7230         * xfaces.c (face_at_string_position): Additional parameter
7231         mode_line_p.  If non-zero, merge with the mode line face
7232         instead of the default face.
7233         * dispextern.h (struct it): Add mode_line_p.
7234         * xdisp.c (init_iterator): Set it.
7235         (compute_face_in_string): Use it.
7236         (face_before_or_after_it_pos): Handle strings.
7237         (get_next_display_element): Don't look for relief end in C strings.
7238         (next_element_from_string): Deliver string position instead of
7239         buffer position.
7241         * xterm.c (x_flush): Flush X output buffer.
7242         (XTflash): Use it.
7244         * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
7245         Allow strings as face names.
7247         * xfns.c (forall_images_in_image_cache): Check that frame is
7248         alive.
7250         * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
7251         it's also called from x_destroy_window.  Since this function is
7252         called from X, freeing stuff allocated with xmalloc is dangerous
7253         here, anyway.
7255         * xfaces.c (free_realized_faces): Don't clear current matrices
7256         of a frame being destroyed.
7258         * frame.c (make_frame): Call set_window_buffer instead of 
7259         Fset_window_buffer.
7261         * window.c (set_window_buffer): Extracted from Fset_window_buffer,
7262         with an additional argument specifying whether or not hooks may
7263         be called.
7264         (Fset_window_buffer): Call it.
7266         * dispnew.c (clear_desired_matrices): Check that frame has
7267         a valid root window before clearing matrices in the window tree.
7268         (clear_current_matrices): Ditto.
7269         (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
7270         vchild are valid windows if not nil.
7272         * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
7273         for :inverse-video.
7274         (Finternal_set_lisp_face_attribute): Ditto.
7275         (Finternal_set_lisp_face_attribute_from_resource): Ditto.
7276         (Finternal_get_lisp_face_attribute): Ditto.
7277         (Finternal_lisp_face_attribute_values): Ditto.
7278         (syms_of_xfaces): Define the symbol `:reverse-video'.
7280         * xdisp.c (get_glyph_property): Renamed from
7281         fill_iterator_from_glyph_property.
7282         (next_element_from_buffer): Handle case that no `glyph' property
7283         was found correctly.
7284         (display_line): Extend face to end of line only if we have faces.
7286 1998-07-29  Gerd Moellmann  <gerd@gnu.org>
7288         * dispnew.c (Fshow_cursor): Renamed from blink_cursor.  Take
7289         additional window argument.
7291         * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
7292         set_iterator_to_previous_visible_line_start.
7293         (reseat_at_next_visible_line_start): Likewise.
7294         (compute_stop_pos): Renamed from set_iterator_stop_pos.
7295         (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
7296         (compute_face_in_buffer): Renamed from
7297         compute_face_at_iterator_position.
7298         (compute_face_in_string): Renamed from
7299         compute_face_at_iterator_string_position.
7300         (get_space_width): Renamed from get_iterator_space_width.
7301         (next_overlay_string): Renamed from
7302         set_iterator_to_next_overlay_string.
7303         (get_overlay_strings): Renamed from
7304         get_overlay_strings_at_iterator_position.
7305         (restore_overlay_strings): Renamed from
7306         setup_overlay_strings_from_glyph_pos.
7307         (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
7308         (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
7309         (init_to_row_start): Renamed from init_iterator_to_row_start.
7310         (init_to_row_end): Formerly init_iterator_to_next_row_start.
7312         * xterm.c: Merge with 20.2.97.
7313         (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
7315         * dispextern.h (struct glyph): Replace text_pos position with
7316         simple charpos.
7318         * xdisp.c (this_line_start_pos): Use struct text_pos.
7319         (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
7320         (enum move_it_result): Renamed from move_iterator_result.
7321         (string_pos_nchars_ahead): Compute text_pos in a string from a
7322         known text_pos plus a character delta.
7323         (string_pos): Compute text_pos in string from charpos.
7324         (c_string_pos): Likewise for a C string.
7325         (number_of_chars): Return number of characters in a possibly
7326         multi-byte C string.
7327         (check_it): Renamed from check_iterator.  Check that charpos and
7328         bytepos are in sync.
7329         (push_it): Renamed from save_iterator_settings.
7330         (pop_it): Renamed from restore_iterator_settings.
7331         (move_it_.*): Renamed from move_iterator_.*.
7332         (charset_at_position): Take charpos/bytepos into account.
7333         (back_to_previous_line_start): Set iterator to previous line start.
7334         (forward_to_next_line_start): Set iterator to next line start.
7335         (back_to_previous_visible_line_start): Renamed from 
7336         move_iterator_previous_visible_line_start.
7337         (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
7338         (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
7339         Handle charpos/bytepos.
7340         (compute_face_at_iterator_position): Handle charpos/bytepos.
7341         (compute_face_at_iterator_string_position): Likewise.
7342         (get_iterator_space_width): Likewise.
7343         (load_overlay_strings): Likewise.
7344         (get_overlay_strings_at_iterator_position): Likewise.
7345         (reseat_iterator): Take a text_pos position argument.
7346         (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
7347         bytepos.
7348         (init_iterator): Take additional bytepos parameter.
7349         (reseat_iterator_to_string): Handle charpos/bytepos.
7350         (start_display): Take a text_pos parameter.  Handle charpos/bytepos.
7351         (next_element_from_string): Handle charpos/bytepos.
7352         (next_element_from_c_string): Likewise.
7353         (fill_iterator_from_glyph_property): Likewise.
7354         (next_element_from_buffer): Likewise.
7355         (set_iterator_to_next): Increment charpos and bytepos of an iterator.
7356         (move_iterator_in_display_line_to): Handle charpos/bytepos.
7357         (move_it_to): Likewise.
7358         (move_it_vertically_backward): Likewise.
7359         (move_it_vertically): Likewise.
7360         (move_it_by_lines): Likewise.
7361         (hscroll_window_tree): Likewise.
7362         (redisplay_internal): Likewise.
7363         (set_cursor_from_row): Likewise.
7364         (redisplay_window): Likewise.
7365         (try_window): Take a text_pos parameter.  Handle charpos/bytepos.
7366         (try_window_reusing_current_matrix): Handle charpos/bytepos.
7367         (get_first_unchanged_at_end_row): Compute and return delta_bytes.
7368         (try_window_id): Handle charpos/bytepos.
7369         (Ftrace_redisplay_toggle): Return Qnil.
7370         (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
7371         (insert_left_trunc_glyphs): Likewise.
7373         * dispnew.c: `Merge' with 20.2.97 (it's really too different to
7374         do a real merge).
7375         (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
7376         (increment_glyph_row_buffer_positions): Ditto.
7377         (copy_glyph_row_contents): Ditto.
7378         (check_matrix_invariants): Add additional checks for charpos/
7379         bytepos consistency.
7380         (direct_output_for_insert): Changed for charpos/bytepos.
7381         (buffer_posn_from_coords): Likewise.  Put code dealing with 
7382         `direction-reversed' in #if 0.
7384         * xterm.h: Merge with 20.2.97.
7385         
7386         * frame.h: Merge with 20.2.97.
7388         * window.h: Merge with 20.2.97.  Add window_end_bytepos.
7390         * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
7391         start.
7392         (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
7393         (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
7394         (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
7395         (struct it): Various members renamed from .*pos to .*charpos.
7396         (IT_CHARPOS): Access current buffer character position of an
7397         iterator.
7398         (IT_BYTEPOS): Access current buffer byte position of an iterator.
7399         (IT_STRING_CHARPOS): Access current string character position of
7400         an iterator.
7401         (IT_STRING_BYTEPOS): Access current string byte position of
7402         an iterator.
7403         (globally): Add function prototypes from 20.2.97.
7405         * everywhere: Use P_ instead of PROTO for function prototypes
7406         because everyone else seems to use P_.
7408         * dispextern.h (struct text_pos): Structure describing a charpos/
7409         bytepos position in text.
7410         (BYTEPOS): Access the byte position part of a text_pos.
7411         (CHARPOS): Likewise for the character position.
7412         (SET_TEXT_POS): Set a text_pos from a character and byte position.
7413         (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
7414         (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
7415         (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
7416         (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
7417         (struct display_pos): Renamed from glyph_pos. Use struct text_pos
7418         for buffer and string positions.
7419         (struct glyph): Use text_pos.
7420         (struct it): Renamed from display_iterator.  Use text_pos.
7422 1998-07-23  Gerd Moellmann  <gerd@gnu.org>
7424         * xfns.c (x_kill_gs_process): Get image colors from XImage of a
7425         pixmap.
7427 1998-07-21  Gerd Moellmann  <gerd@gnu.org>
7429         * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
7430         * xterm.c (x_draw_row_bitmaps): Use it.
7431         * dispnew.c (row_equal_p): Ditto.
7432         (update_window_line): Ditto.
7434         * xfns.c (prepare_image_for_display): Don't set loading_failed_p
7435         flag of images.
7437         * dispextern.h (struct image): Removed member loading_failed_p.
7438         It's probably better to have the chance to try to load an image
7439         again.
7441 1998-07-20  Gerd Moellmann  <gerd@gnu.org>
7443         * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
7444         at ZV if `indicate-zv-lines' is non-nil.
7445         (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
7447         * dispnew.c (row_equal_p): Compare displays_text_p and
7448         ends_at_zv_p flags of rows.
7449         (update_window_line): Ditto.
7451         * buffer.h (struct buffer): New member indicate_zv_lines.
7453         * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
7454         (init_buffer_once): New variable `default-indicate-zv-lines'.
7455         (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
7457         * xdisp.c (redisplay_window): Don't try moving the cursor
7458         if current glyph row w->last_cursor.vpos isn't enabled.
7460         * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
7462         * window.c (Fset_window_vscroll): Allow only negative scroll
7463         values.  Others don't seem to make sense, and this way it's easy
7464         to restore a vscroll of zero.
7466         * xterm.c (x_inverted_image_mask): Check that pixmap could be
7467         allocated.
7468         (x_draw_image_glyph_string_background): Don't clip if pixmap
7469         could not be created.
7471         * xfns.c (xbm_load_image_from_file): Check that pixmap could
7472         be created.
7473         (xbm_load): Ditto.
7474         (gs_load): Ditto.
7476         * xterm.c (x_get_glyph_overhangs): Take image and stretch
7477         glyphs into account.
7479         * xfaces.c (realize_default_face): Don't set font family of
7480         the default face from the fontset alias name for `fontset-startup'.
7482         * xfns.c (gs_load): Pass frame's pixel foreground and background
7483         color to the Lisp loader.
7485 1998-07-19  Gerd Moellmann  <gerd@gnu.org>
7487         * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
7488         libtiff34.
7490         * configure.in (--with-tiff, HAVE_TIFF): Added.
7492         * config.in (HAVE_TIFF): Added.
7494         * Makefile.in (LIBTIFF): Added.
7496         * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
7498         * Makefile.in (LIBJPEG): Added.
7500         * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
7501         RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
7502         jpeglib.h.
7504         * configure.in (HAVE_JPEG, --with-jpeg): Added.  On systems 
7505         where the library is installed in /usr/local/lib, e.g. FreeBSD,
7506         configure must be run with `--x-includes=/usr/X11R6/include:
7507         /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
7509 1998-07-18  Gerd Moellmann  <gerd@gnu.org>
7511         * config.in (HAVE_JPEG): Added.
7513         * xfns.c (ct_init): Initialize color table used to map RGB colors
7514         from images to X pixel colors.
7515         (ct_free): Free color table.
7516         (ct_lookup): Look an RGB color up.
7517         (ct_allocated_colors): Get vector of allocated colors.
7518         (pbm_image_p): Test if image specification is a valid PPM 
7519         image specification.
7520         (pbm_scan_number): Scan a decimal ASCII number from a file.
7521         (pbm_load): Load a PPM image.
7523         * window.c (Fset_window_vscroll): Adjust glyph matrix if
7524         necessary.  Take canonical character units as parameter.
7525         (Fwindow_vscroll): Return canonical character units.
7527         * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
7528         w->dy to display height for which glyph rows must be allocated.
7530 1998-07-17  Gerd Moellmann  <gerd@gnu.org>
7532         * xfaces.c (face_at_string_position): Merge in region face
7533         so that it won't overwrite the font in the region.
7534         (face_at_buffer_position): Ditto.
7535         (realize_basic_faces): Don't realize region face.
7537         * dispextern.h (enum face_id): REGION_FACE_ID removed.
7539         * xterm.c (x_set_glyph_string_background_width): Don't let
7540         cursor face extend to end of line.
7542         * xdisp.c (append_space): If adding space of default face,
7543         make sure glyph ist produced with right face.
7545         * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
7546         background color of a glyph string.
7547         (x_draw_glyph_string_background): Call it.
7548         (x_draw_glyph_string_bg_rect): Ditto.
7549         (x_draw_stretch_glyph_string): Ditto.
7551 1998-07-15  Gerd Moellmann  <gerd@gnu.org>
7553         * xdisp.c (init_iterator): Initialize it->current_y to the
7554         window's vscroll w->dy.
7556         * window.c (Fwindow_vscroll): Return number of pixels window
7557         is vscrolled smoothly.
7558         (Fset_window_vscroll): Set the number.
7560         * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
7561         to_pos in truncated part of a line.
7563 1998-07-14  Gerd Moellmann  <gerd@gnu.org>
7565         * xdisp.c (move_iterator_in_display_line_to): If very first glyph
7566         doesn't fit on the line, truncate it, despite truncate_lines nil.
7567         (display_line): Ditto.
7569         * xfns.c: Experimental support for Ghostscript images.
7571         * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
7572         (XTread_socket): React on events from Ghostscript.
7573         (expose_frame): If width or height are zero, redraw entire frame.
7574         (XTread_socket): Call expose_frame after receiving event from
7575         Ghostscript.
7577         * xterm.h (struct x_display_info): Add atoms DONE and PAGE
7578         for Ghostscript support.
7580         * xdisp.c (redisplay_internal): Return quickly if called
7581         recursively.
7583         * alloc.c (NSTATICS): Increased to 1024.
7585 1998-07-08  Gerd Moellmann  <gerd@gnu.org>
7587         * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
7588         iterator's glyph row.
7589         (x_produce_stretch_glyph): Call it.
7590         (x_produce_glyphs): Handle `space-width' property; call
7591         x_append_stretch_glyph.
7593         * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
7594         property.
7595         (get_iterator_space_width): Determine value of `space-width'
7596         property at iterator's position.
7597         (reseat_iterator): Call it.
7598         (next_element_from_string): Ditto.
7599         (next_element_from_buffer): Ditto.
7600         (init_iterator): Initialize space_width of iterator.
7601         (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
7602         moved, but cursor blinks.
7603         (redisplay_internal): Set w->last_cursor_off_p after update.
7605         * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
7606         (struct display_iterator): Add new member space_width.
7608         * window.h (struct window): Add last_cursor_off_p.
7610 1998-07-07  Gerd Moellmann  <gerd@gnu.org>
7612         * Saved.
7614         * window.c (Fpos_visible_in_window_p): Case window not up to
7615         date---return nil if iterator hasn't reached position.
7617 1998-07-06  Gerd Moellmann  <gerd@gnu.org>
7619         * xdisp.c (text_outside_line_unchanged_p): Fix case that
7620         overlays have changed.
7621         (redisplay_window): Case cursor movement.  Don't try it if
7622         last_cursor.vpos is out of range.
7624         * xdisp.c (set_cursor_from_row): Set this_line_.* variables.  This
7625         way, the display optimization for the line containing the cursor
7626         is used more frequently, esp. when we have a blinking cursor.
7627         (display_line): Don't set this_line_.* variables.
7629         * xterm.c (x_redraw_cursor): Removed.
7630         (x_display_and_set_cursor): Set cursor type depending on
7631         cursor_off_p flag of window.
7633         * dispnew.c (redraw_cursor_hook): Removed.
7634         (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
7635         member of the selected window.
7637         * xfaces.c (Fface_font): Added for compatibility with 20.2.
7639         * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
7640         Return glyph area under x/y.
7641         (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
7643         * keyboard.c (detect_input_pending_run_timers): Call gobble_input
7644         after redisplaying.
7646 1998-07-05  Gerd Moellmann  <gerd@gnu.org>
7648         * xdisp.c (text_outside_line_unchanged_p): Test if changes
7649         are all outside of a line of text.
7650         (redisplay_internal): Use it.
7652 1998-06-30  Gerd Moellmann  <gerd@gnu.org>
7654         * xdisp.c (next_element_from_buffer): After skipping over
7655         invisible text, look for the `glyph' property.
7656         (set_iterator_stop_pos): Ignore check positions in front
7657         of an iterator's current position.
7659         * xterm.c (show_mouse_face): Don't act on rows that don't exist
7660         anymore or which are marked as not having valid contents.
7662         * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
7663         realized faces if new attribute value is equal to old value.
7665 1998-06-29  Gerd Moellmann  <gerd@gnu.org>
7667         * xfaces.c (Finternal_make_lisp_face): Increment
7668         lface_id_to_name_size when lface_id_to_name is reallocated.
7670 1998-06-27  Gerd Moellmann  <gerd@gnu.org>
7672         * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
7673         as minimum of endpos and overlay_pos.
7674         (load_overlay_strings): Set next_overlay_pos of iterator to
7675         -1 if we don't have to check for more overlay strings.
7677 1998-05-09  Gerd Moellmann  <gerd@gnu.org>
7679         * xdisp.c (set_iterator_to_next_visible_line_start): Don't
7680         do anything if iterator is at ZV because scan_buffer doesn't
7681         work otherwise.
7683         * xterm.c (x_encode_char): Inline it.
7684         (x_get_char_font_and_encoding): Simplified.
7685         (x_per_char_metric): Inline it.
7687         * xterm.c (x_draw_glyph_string_relief): Use clipping.
7689         * xdisp.c (get_next_display_element): Check for end of relief
7690         face moved here from next_element_from_buffer.
7692         * xterm.c (x_produce_image_glyph): Add relief thickness.
7693         (x_produce_stretch_glyph): Ditto.
7695 1998-05-08  Gerd Moellmann  <gerd@gnu.org>
7697         * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
7698         property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
7700         * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
7701         from a glyph property.
7702         (x_produce_glyphs): Use it.
7704         * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
7706         * xterm.c (x_produce_image_glyph): Add to current_x only if 
7707         in text area.
7708         (x_produce_glyphs): Ditto.
7710         * xdisp.c (display_line): Compute row height from glyphs in 
7711         marginal areas.
7713         * xterm.c (x_draw_image_glyph_string_background): Draw 
7714         background of an image glyph string.
7715         (x_draw_glyph_string_bg_rect): Draw a rectangular region of 
7716         the background of a glyph string.
7717         (x_draw_image_glyph_string_foreground): Draw the foreground of
7718         an image glyph string.
7719         (x_inverted_image_mask): Return the inverted mask of an image.
7721         * xfns.c (x_draw_image): Removed.
7723         * dispextern.h (struct image_type): Remove drawing function.
7725         * xfaces.c (load_face_colors): Swap colors if face is inverse.
7727         * xdisp.c (get_next_display_element): In marginal areas, translate
7728         newlines, tabs, etc. like normal control characters.
7730         * xfaces.c (Fface_color_supported_p): Transpose parameters frame
7731         and color.
7732         (free_realized_faces): Set frame garbaged.
7734         * xfaces.c (syms_of_xfaces): Add defsubr for
7735         internal-lisp-face-attribute-values.
7737 1998-05-07  Gerd Moellmann  <gerd@gnu.org>
7739         * xterm.c (x_produce_image_glyph): Don't add glyph if area is
7740         full.
7741         (x_produce_image_glyph): Set IT->nglyphs to 1.
7742         (x_draw_image_glyph_string): Use inverted mask to draw background.
7744         * dispextern.h (struct image_type): Additional clipping rect
7745         parameters for drawing functions.
7747         * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for 
7748         a glyph string.
7749         (x_draw_image_glyph_string): Use it and pass the rect to the
7750         image drawing function.
7752         * xdisp.c (fill_iterator_from_glyph_property): Use position of
7753         first character with `glyph' property as image position.  Set
7754         iterator back to that position as long as the image hasn't been
7755         consumed with set_iterator_to_next.
7756         (set_cursor_from_row): Accept when glyph with given position is
7757         not found in the row.  Set cursor x to end of line in that case,
7758         so that we can hscroll.
7759         (redisplay_internal): Correct computation of delta by which
7760         positions have changed in redisplay optimization for cursor
7761         row of selected window.
7763         * xdisp.c (display_line): Remove start_pos.
7764         (display_line): Fix bug preventing display optimization for 
7765         cursor line of selected window.
7766         (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
7767         instead.
7769         * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
7770         (update_text_area): Take glyph pixel width into account
7771         when trying to find a resync point.
7772         (row_equal_p): Compare glyphs in all areas.
7774 1998-05-06  Gerd Moellmann  <gerd@gnu.org>
7776         * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
7778         * dispextern.h (struct glyph_row): Use unsigned hash value.
7780         * xdisp.c (display_line): Simplified and made faster by setting
7781         the cursor with set_cursor_from_row.
7782         (set_cursor_from_row): Handle rows of desired matrix.
7784 1998-05-05  Gerd Moellmann  <gerd@gnu.org>
7786         * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
7787         with type != CHAR_GLYPH.
7788         (fill_iterator_from_glyph_property): Return void.  Set
7789         method to next_element_from_image.
7790         (next_element_from_image): Dummy function for delivering a
7791         single image id.
7792         (set_iterator_to_next): Add method next_element_from_image.
7793         (redisplay_window): When recentering, and cursor vpos is -1
7794         after display, assume middle of window is in first line displayed
7795         in window, and display again.
7796         (fill_iterator_from_glyph_property): Assign image glyph 
7797         the position of the first character having the glyph property.
7799         * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
7800         * xfns.c (x_draw_image): Use it.
7801         * xterm.c (x_produce_image_glyph): Use it.
7803         * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
7805         * Makefile.in: Extraneous #define of LIBXPM removed.
7807         * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
7808         (x_fill_stretch_glyph_string): Fill a glyph string from a 
7809         stretch glyph.
7810         (x_compute_glyph_string_overhangs): Compute overhangs only
7811         for text glyph strings.
7812         (x_draw_stretch_glyph_string): Draw a stretch glyph string.
7813         (x_draw_glyph_string): Call it.
7815         * dispextern.h (glyph_type): Add STRETCH_GLYPH.
7816         (struct glyph): Add sub-structure for stretchable glyphs.
7817         (GLYPH_EQUAL_P): Compare glyph type and u.val.
7819         * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
7820         #ifdef HAVE_FACES.
7822         * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
7824         * xdisp.c (fill_iterator_from_glyph_property): Renamed from
7825         setup_iterator_from_glyph_property.  Don't do it for terminal
7826         frames.
7828         * xterm.c (x_produce_image_glyph): Produce glyph for image
7829         that can't be loaded.
7831         * xfns.c (lookup_image): If image can't be loaded, set its
7832         width and height so that we can draw a rectangle.
7833         (x_draw_image): Draw a rectangle for images that don't have
7834         a pixmap.
7835         (make_image): Set hash value.
7836         (image_spec_equal_p): Use image_spec_value.
7838         * xterm.c (expose_frame): Don't try to redraw if basic faces
7839         haven't benn realized yet.
7840         (x_draw_image_glyph_string): Fill background only if image 
7841         is not as tall as row.
7843 1998-05-04  Gerd Moellmann  <gerd@gnu.org>
7845         * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
7846         (LIBX)[HAVE_X11]: Add LIBXPM.
7848         * xfns.c (xpm_image_p): Implementation of image type functions
7849         for XPM.
7850         (xpm_load): Ditto.
7852         * dispextern.h (struct image): Add mask pixmap for XPM.
7854         * xfns.c (x_draw_image): Handle images with masks.
7856         * configure.in: --with-xpm added.  Code detecting -lXpm added.
7858         * config.in: Add HAVE_XPM.
7860         * xfns.c (xbm_draw): Removed.
7861         (x_draw_image): Default implementation for drawing images.
7862         (xbm_keyword_index): Remove XBM_DEPTH.
7863         (xbm_format): Remove `:depth'.
7864         (xbm_image_spec_from_file): Removed to reduce consing.
7865         (xbm_load_image_from_file): Added for the same reason. 
7867         * xterm.c (x_fill_image_glyph_string): Don't set ybase of 
7868         glyph string.
7869         (x_draw_image_glyph_string): Pass ybase to image draw function.
7871         * xfns.c (make_image): Set default baseline.
7873         * xterm.c (x_produce_image_glyph): Compute ascent of image
7874         from its height and baseline percentage.
7876         * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
7877         (xbm_format): Add description for `:baseline'.
7878         (xbm_image_spec_from_file): Add keywords from original spec to
7879         result.
7880         (xbm_load): Set baseline of image.
7881         (xbm_image_p): Check range for baseline.
7883         * dispextern.h (struct image): Add member baseline.
7885         * xdisp.c (dump_glyph_matrix): Handle image glyphs.
7887         * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
7889         * xdisp.c (get_next_display_element): Do character translations
7890         only if delivering characters.
7892 1998-05-03  Gerd Moellmann  <gerd@gnu.org>
7894         * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for 
7895         DISP_CHARACTER.
7897         * xterm.c (x_produce_image_glyph): Poduce image glyphs.
7898         (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
7900 1998-05-02  Gerd Moellmann  <gerd@gnu.org>
7902         * xfns.c (prepare_image_for_display): Set image timestamp.
7903         (clear_image_cache): Clear images if image's timestamp +
7904         Vimage_eviction_seconds is > now.
7905         (syms_of_xfns): New variables image-eviction-seconds, and
7906         image-types.
7907         (add_image_format): Add to image-types.
7908         (xbm_load): Support new image spec format.
7909         (x_alloc_image_color): Allocate a color for an image.
7911         * dispextern.h (struct image): Add timestamp.
7913         * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
7914         vectors of bool-vectors.
7915         (xbm_lisp_object_from_file): Build new format image spec.
7917 1998-05-01  Gerd Moellmann  <gerd@gnu.org>
7919         * xfaces.c (init_frame_faces): Initialize image cache.
7920         (free_frame_faces): Free it.
7922         * xterm.c (x_delete_display): Don't free image cache.
7924         * emacs.c (main): Call init_xfns.
7926 1998-04-30  Gerd Moellmann  <gerd@gnu.org>
7928         * alloc.c (mark_object): Mark objects in image cache.
7930         * xfns.c (x_set_internal_border_width): Correct call to 
7931         widget_store_internal_border_width.
7933         * widget.c (widget_store_internal_border): Return void.
7935         * xfns.c (x_destroy_bitmap): Use xfree instead of free.  Return
7936         void.
7937         (init_x_parm_symbols): Return void.
7938         (x_report_frame_params): Ditto.
7939         (x_set_border_pixel): Ditto.
7940         (syms_of_xfns): Ditto.
7941         (x_destroy_all_bitmaps): Use xfree instead of free.
7943         * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
7945         * xterm.c (x_term_init): Initialize image_cache of display info.
7946         (x_delete_display): Free image cache.
7948         * xterm.h (struct x_display_info): Add image_cache.
7950         * xfns.c (make_image_cache): Allocate a new image cache.
7951         (free_image_cache): Free an image cache.
7952         (make_image): Allocate an image.
7953         (free_image): Free an image.
7955         * dispextern.h (struct image): Structure describing an image.
7956         (struct image_cache): Structure describing an image cache.
7958 1998-04-29  Gerd Moellmann  <gerd@gnu.org>
7960         * xdisp.c (check_iterator_glyph_property): Return int.  Value is
7961         non-zero if iterator is filled with something to return.
7962         (next_element_from_buffer): Immediately return if
7963         setup_iterator_from_glyph_prop has filled iterator with pixmap.
7964         (next_element_from_string): Likewise.
7966         * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
7968         * dispextern.h (struct glyph): Add pixmap_id.
7969         (display_element_type): Add DISP_PIXMAP.
7971         * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
7972         malloc/free.
7974         * xfaces.c (clear_font_table): Free fonts not used by fontsets.
7975         (clear_face_cache): Call it.
7977         * xterm.c (x_query_font): Don't look at empty font table slots.
7978         (x_compute_min_glyph_bounds): Likewise.
7979         (x_term_init): Initialize font_table to null.
7980         (x_load_font): Change allocation of font_info structures so
7981         that it is possible to free fonts.
7983         * xfns.c (Fx_close_connection): Use xfree instead of free. 
7984         Only free fonts from filled font table entries.
7986         * xfaces.c (best_matching_font): Support use of scalable fonts.
7987         (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
7989         * xterm.h (struct x_display_info): Remove screen_dpi, add resx
7990         and resy.
7991         * xterm.c (x_term_init): Compute resx and resy.
7993         * xfaces.c (split_font_name): Don't reject scalable fonts.
7995         * xterm.c (x_list_fonts): Set code exclusing scalable fonts 
7996         in #if 0.
7998         * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
7999         point size cannot be determined.
8001         * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
8002         width over all fonts on a frame.
8003         (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
8004         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
8005         macros.
8007         * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
8008         (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
8009         (x_load_font): Use x_compute_min_char_bounds.
8011         * xterm.h (struct x_display_info): New members smallest_char_width
8012         and smallest_font_height.
8014 1998-04-28  Gerd Moellmann  <gerd@gnu.org>
8016         * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
8017         the same name if GC of face is zero.
8019         * dispextern.h (struct face): Member non_ascii_gc removed.
8021         * xterm.c (x_get_char_font_and_encoding): Return face's font
8022         for characters < 0177 in default face.  Prepare face for 
8023         display before returning it.
8024         (x_produce_glyphs): Use it->charset.
8025         (x_get_char_font_and_encoding): Simplified.
8026         (x_encode_char): Remove parameter `font'.
8028         * xfaces.c (choose_face_font): If registry from charset symbol
8029         doesn't contain a `-', make it a pattern by appending "*-*".
8031         * xdisp.c (check_iterator_glyph_property): Adjust limit for
8032         glyph_check_pos computation to character boundary.
8034 1998-04-27  Gerd Moellmann  <gerd@gnu.org>
8036         * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
8038         * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
8039         ASCII face for a given Lisp face id.
8041         * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
8042         account.
8043         (reseat_iterator): Set glyph_check_pos. Handle case where 
8044         new position is < original position.
8045         (check_iterator_glyph_property): Handle glyph property in strings.
8046         (next_element_from_string): Call above function.
8047         (next_element_from_display_vector): Handle faces in glyphs.
8048         (get_next_display_element): Set face_id of glyphs for
8049         control chars to zero.
8051         * Makefile.in (term.o): Add dependency on dispextern.h.
8053         * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
8054         (display_line): Handle marginal areas.
8055         (move_iterator_in_display_line_to): Likewise.
8057         * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
8059         * xfaces.c (face_at_buffer_position): Don't merge with nil
8060         text property.
8061         (face_at_string_position): Ditto.
8063         * dispextern.h (struct display_iterator): Use a stack of saved
8064         values instead of saving check positions etc. individually.
8066         * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
8067         maybe pop the iterator's stack.
8068         (save_iterator_settings): Push a value on iterator's stack.
8069         (get_overlay_strings_at_iterator_position): Use it.
8070         (restore_iterator_settings): Pop the stack.
8071         (set_iterator_to_next_overlay_string): Use it.
8073         * xfaces.c (try_font_list): Use alternative font families.
8075 1998-04-26  Gerd Moellmann  <gerd@gnu.org>
8077         * xfaces.c (Fset_face_font_sort_order): Set the order in which
8078         font selection matches fonts.
8079         (Fface_font_sort_order): Return the font sort order.
8080         (best_matching_font): Find best matching font based on sort order.
8081         (cmp_font_names): Sort by given sort order.
8083         * dispextern.h (struct display_iterator): New member faces_p.
8084         * xdisp.c (init_iterator): Initialize it->faces_p.
8085         (compute_face_at_iterator_string_position): Use it.
8086         (compute_face_at_iterator_position): Use it.
8087         (init_iterator): Use it.
8088         (display_mode_line): Ditto.
8090         * xdisp.c (get_next_display_element): Put code choosing a face
8091         when the charset changes in #ifdef HAVE_FACES.
8093         * dispextern.h (FACE_FOR_CHARSET): Replacement for function 
8094         lookup_face_for_charset.
8096         * xfaces.c (free_font_names): Renamed from free_split_font_names.
8097         (free_all_realized_faces): Renamed from remove_all_realized_faces.
8099 1998-04-25  Gerd Moellmann  <gerd@gnu.org>
8101         * xfaces.c (best_matching_font): Return the name of the best
8102         matching font in an array of font_name structures.
8103         (choose_face_font): Use it.
8104         (choose_face_fontset_font): Use it.
8105         (find_best_weight_font): If final font found has same weight as
8106         the font we started with, return the original font because it is a
8107         better match for the resolution of the display.
8108         (find_best_slant_font): Likewise.
8109         (merge_face_vector_with_property): Check more invalid attribute
8110         values.
8111         (lface_suitable_for_charset_p): Replaced by a macro with the same
8112         name in upper-case.
8114 1998-04-24  Gerd Moellmann  <gerd@gnu.org>
8116         * dispextern.h (struct face): Member
8117         fontset_chosen_for_realization_p removed.
8119         * xfaces.c (cache_face): If face->fontset >= 0, add face to the
8120         end of the collision list, so that we find more specific faces
8121         first.
8122         (lookup_face_for_charset): Look up a new face if face->fontset >=
8123         0, and charset != CHARSET_COMPOSITION.
8125         * xfaces.c (split_font_name): Return zero if point size of font
8126         couldn't be computed.
8127         (realize_default_face): Use ASCII font of a fontset to determine
8128         font-related attributes of the default face.
8129         (face_fontset): Return fontset id for face family.
8130         (font_list): Additional parameter font_pattern.  If non-nil,
8131         return fonts matching that pattern.
8133 1998-04-23  Gerd Moellmann  <gerd@gnu.org>
8135         * xfaces.c (choose_face_fontset): If new fontset cannot be
8136         constructed, or fontset name cannot be split, return the id of the
8137         standard fontset.
8139         * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
8140         When Emacs starts, it may be called for the initial frame which
8141         isn't an X frame.
8143         * dispextern.h (struct face): New members foreground_defaulted_p,
8144         background_defaulted_p.
8145         (struct face): Members `mask' and `cache' removed.
8147         * xfaces.c (load_color): Set them.
8148         (free_face_colors): Check them.
8149         (xlfd_point_size): Return -1 if resolution or point size of 
8150         font unknown.
8152         * xfaces.c (free_font): Removed.
8153         (load_face_font_or_fontset): Renamed from load_font.
8154         (load_face_font_or_fontset): Use message2 instead of signalling.
8155         (load_color): Likewise.
8156         (load_pixmap): Likewise.
8158         * xterm.h (struct x_display_info): Add screen_dpi.
8159         * xterm.c (x_term_init): Initialize it.
8160         * xfaces.c (xlfd_point_size): Use it.
8161         (split_font_name): Compute numeric XLFD_RESY.
8162         (cmp_font_names): Make fonts with an y-resolution more 
8163         similar to that of the frame appear first in the result.
8165         * xfaces.c (cache_face): If fontset_chosen_for_realization_p
8166         is set for the face to cache, add it to the end of the collision
8167         list.
8168         (try_font_list): If fonts for given family and registry cannot
8169         be found, first try to keep the registry, and choose a different
8170         family.
8171         (choose_face_font): Allow nfonts == 0.
8172         (try_font_list): Give up if no font matches given registry.
8174 1998-04-22  Gerd Moellmann  <gerd@gnu.org>
8176         * xterm.c (x_get_char_font_and_encoding): Get font_info from
8177         font info id of the face.
8179         * xfaces.c (load_font): Set font_info_id.
8180         (realize_face): Ditto.
8182         * dispextern.h (struct face): Change member font_info to
8183         font_info_id.
8185         * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
8186         (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
8188         * xdisp.c (extend_face_to_end_of_line): If IT's current charset
8189         isn't ASCII, get the ASCII face before adding a space.
8190         (append_space): Likewise.
8191         (insert_left_trunc_glyphs): Initialize truncate_it's charset
8192         to -1 so that it will compute the right face for the truncation
8193         glyphs.
8195         * xfaces.c (realize_face): Set
8196         face->fontset_chosen_for_realization_p.
8197         (lookup_face_for_charset): If fontset wasn't specified originally
8198         and new charset != CHARSET_COMPOSITION, get a new face for that
8199         charset.
8201         * dispextern.h (struct face): New member
8202         fontset_chosen_for_realization_p_specified_p.  Set to 1 when
8203         realize_face has chosen a fontset to display composite characters
8204         for a Lisp face not specifying a fontset.
8206         * xdisp.c (extend_face_to_end_of_line): Move tests for default
8207         face and line already filled here.  Don't do anything if current
8208         face hasn't a relief or has a background equal to the frame
8209         background.
8211         * xfaces.c (split_font_name): Additional parameter numeric_p.
8212         Don't compute numeric values if it is non-zero.
8213         (choose_face_fontset): Call split_font_name with numeric_p == 0.
8214         (choose_face_fontset): Print a message if fontset contains a 
8215         font whose name cannot be split into fields.
8217 1998-04-21  Gerd Moellmann  <gerd@gnu.org>
8219         * xfaces.c (try_font_list): Try to load a list of fonts, 
8220         possibly using less restrictive patterns.
8221         (choose_face_font): Use it.
8223         * xterm.c (x_get_char_font_and_encoding): For charset !=
8224         CHARSET_ASCII use font_info of face if face hasn't a fontset set.
8226         * dispextern.h (struct face): New member font_info.
8228         * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
8229         specifying a fontset as well as those not having a fontset.
8230         (free_font): Make it empty.
8231         (realize_face): Use changed load_font.
8233         * xterm.c (x_get_char_font_and_encoding): If face doesn't
8234         fit for charset, get the right one.
8236         * xfaces.c (load_font): Take frame and name parameter, return
8237         font.
8238         (free_font): Likewise.
8239         (split_font_name): Compute numeric values for height, swidth etc.
8240         (cmp_font_names): Use them.
8241         (find_best_width_font): Ditto.
8242         (find_best_height_font): Ditto.
8243         (find_best_weight_font): Ditto.
8244         (find_best_slant_font): Ditto.
8245         (lface_hash): Add weight, slant, swidth and relief to hash value.
8246         (lface_equal_p): Make it faster.
8247         (lface_from_symbol): Use assq_no_quit.
8248         (Fnote_default_face_changed): Removed.
8249         (cmp_font_names): Use strcmp instead of xstricmp.
8250         (face_charset_registries): Removed.
8252 1998-04-20  Gerd Moellmann  <gerd@gnu.org>
8254         * frame.h (CHECK_FRAME): Give this macro a statement form.
8255         (CHECK_LIVE_FRAME): Ditto.
8257         * xfaces.c (find_best_width_font): Find the best matching font
8258         for a given width.
8259         (find_best_height_font): Likewise for height.
8260         (find_best_weight_font): Likewise for weight.
8261         (find_best_slant_font): Likewise for slant.
8262         (choose_face_font): Use them.
8263         (get_lface_attributes): Always return frame-local face attrs.
8264         (Finternal_merge_in_global_face): Merge local face with 
8265         global face attributes.
8267         * xfaces.c (check_lface_attrs, check_lface): Check consistency of
8268         Lisp face attributes.
8270 1998-04-19  Gerd Moellmann  <gerd@gnu.org>
8272         * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
8273         and :italic for compatibility.
8274         (Finternal_set_lisp_face_attribute_from_resource): Handle
8275         :bold and :italic.  Handle boolean resource values for 
8276         :underline and :italic.
8278         * xfns.c (display_x_get_resource): Make it externally visible.
8280         * xfaces.c (lface_from_symbol): Take a frame as parameter.
8281         If that frame is non-null, return the frame-local face.
8282         (Finternal_make_lisp_face): Additional frame argument.
8283         (lface_attributes): Get face attributes from global and frame-local
8284         definitions.
8285         (Finternal_lisp_face_equal_p): Additional frame argument.
8286         (merge_lisp_face_vector_with_property): Ditto.
8287         (Frealize_basic_faces): Removed.
8288         (Finternal_get_lisp_face_attribute): Additional frame argument.
8289         (Finternal_lisp_face_p): Ditto.
8290         (load_color) [MSDOS]: Removed because it isn't clear how
8291         to do this for MS-DOS.
8293         * xfaces.c (lface_from_symbol): Get global face definition
8294         from face-global-alist.
8296         * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
8297         as values for :underline and :inverse-video.
8298         (Finternal_set_lisp_face_attribute): Allow nil values.
8300 1998-04-17  Gerd Moellmann  <gerd@gnu.org>
8302         * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
8304         * xfaces.c (syms_of_xfaces): Add Vall_faces.
8305         (Finternal_make_lisp_face): Add new face to Vall_faces.
8307         * xdisp.c (echo_area_display): Remove code recomputing faces.
8308         (redisplay_internal): Ditto.
8309         (init_iterator): Do it here.
8311         * xfaces.c (choose_face_font): Check that swidth doesn't change
8312         for subusequent attributes.
8313         (xlfd_point_size): Return int.
8315         * xdisp.c (redisplay_internal, echo_area-display): If realized
8316         faces have been cleared, call recompute_basic_faces.
8318         * xfaces.c (recompute_basic_faces): Free realized faces.  Reset
8319         face_attributes_changed_p.
8320         (remove_all_realized_faces): Remove all realized faces on 
8321         all frames.
8322         (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
8324         * xdisp.c (redisplay_internal): If face attributes have been
8325         changed since the last redisplay, recompute basic faces.
8326         (echo_area_display): Ditto.
8328         * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
8330         * xfaces.c (min_char_bounds): If face cache not yet present,
8331         don't try to get font dimensions from faces.
8333         * xterm.c (x_frame_mode_line_height): If face cache not present
8334         set, return default height.
8336         * alloc.c (mark_face_cache): Check for null faces.  Correct
8337         index bug.
8339         * dispextern.h (struct face): Renamed from struct rface.  Member
8340         underline renamed underline_p.  Make it a bit-field.
8342         * xfaces.c (init_frame_faces): Allocate face cache.
8343         (free_frame_faces): Free face cache.
8344         (recompute_basic_faces): Realize basic faces only if face cache is
8345         allocated, i.e. after init_frame_faces has been called.
8347         * frame.c (make_frame): Initialze face cache with null.
8349         * xfaces.c (same_size_fonts): Removed.
8351         * xterm.c (x_set_glyph_string_gc): Add post-condition 
8352         s->gc != 0.
8353         (x_set_mouse_face_gc): Ditto.
8354         (x_set_mode_line_face_gc): Ditto.
8356         * xfaces.c (realize_default_face): Return int.  Value is 
8357         zero if frame params don't contain enough information to 
8358         realize the default face.
8359         (realize_basic_faces): Ditto.
8360         (init_frame_faces): Realize basic faces.
8362         * xfns.c (x_set_font): First store real font name in frame
8363         parameters, then call recompute_basic_faces.
8365         * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
8367 1998-04-16  Gerd Moellmann  <gerd@gnu.org>
8369         * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
8371         * xfns.c (Fx_face_fixed_p): Removed.
8372         (Fx_list_fonts): Moved to xfaces.c.
8374         * xfaces.c (compute_face_at_buffer_pos): Renamed to
8375         face_at_buffer_position.  Parameter charset removed; always
8376         compute face for CHARSET_ASCII.
8377         (face_at_string_position): Renamed from
8378         compute_face_at_string_pos. Parameter charset removed; always
8379         compute for CHARSET_ASCII.
8380         (lookup_face_for_charset): Take frame parameter instead of 
8381         face_cache.
8382         (lookup_face): Ditto.
8383         (compute_char_face): Renamed from compute_glyph_face.
8385         * xdisp.c (init_iterator): Initialize charset member.
8386         (reseat_iterator_to_string): Ditto.
8387         (get_charset_at_buffer_position): Determine charset at
8388         buffer position in current_buffer.
8389         (reseat_iterator): Call above function.
8390         (compute_face_at_iterator_position): Call
8391         compute_face_at_buffer_pos.
8392         (compute_face_at_iterator_string_position): Call
8393         compute_face_at_string_pos.
8394         (get_face_from_id): Removed.
8395         (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
8396         Call get_charset_at_buffer_position.
8397         (reseat_iterator): Determine face if charset at pos differs
8398         from iterator's charset.
8399         (reseat_iterator_to_glyph_pos): Removed.
8401         * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
8402         Determine charset from buffer position.
8403         (compute_string_char_face): Renamed to compute_face_at_string_pos.
8404         (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
8406         * dispextern.h (struct display_iterator): Add member charset.
8408 1998-04-15  Gerd Moellmann  <gerd@gnu.org>
8410         * xfaces.c (compute_char_face): Removed.
8412         * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
8413         with new parameter list.
8415         * xfaces.c (region_face): Removed.
8416         (allocate_face): Removed.
8417         (copy_face): Ditto.
8418         (face_eql): Removed.
8419         (intern_face): Removed.
8420         (clear_face_cache): Removed.
8421         (load_font): Ditto.
8422         (unload_font): Ditto.
8423         (load_color): Ditto.
8424         (unload_color): Ditto.
8425         (new_computed_face): Ditto.
8426         (intern_computed_face): Ditto.
8427         (ensure_face_ready): Ditto.
8428         (merge_faces): Ditto.
8429         (compute_base_face): Ditto.
8430         (merge_face_list): Ditto.
8431         (Fmake_face_internal): Removed.
8432         (Fset_face_attribute_internal): Ditto.
8433         (face_name_id_number): Removed.
8434         (Fframe_face_alist): Ditto.
8435         (Fset_frame_face_alist): Ditto.
8436         (Finternal_next_face_id): Ditto.
8438         * xterm.h (struct x_output): Remove computed_faces, and
8439         param_faces.  Remove macros accessing them.
8441         * xfaces.c: Entirely new face implementation added.
8443 1998-04-11  Gerd Moellmann  <gerd@gnu.org>
8445         * dispextern.h (struct glyph_pos): Member `bufpos' renamed
8446         `charpos'.
8448 1998-04-10  Gerd Moellmann  <gerd@gnu.org>
8450         * xterm.c (x_scroll_bar_move): Clear only regions not covered by
8451         scroll bar window to reduce flickering.  Clear entire height.
8453         * xdisp.c (move_iterator_vertically_backward): Set iterator's
8454         current_x and hpos to zero after moving to previous line
8455         start.
8457 1998-04-03  Gerd Moellmann  <gerd@gnu.org>
8459         * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
8461         * xfaces.c (xlfd_point_size): Compute relative point size of
8462         fonts from font and frame resolution.
8463         (sort_fonts): New function to sort fonts, temporarily setting
8464         font_frame to the frame in effect.
8465         (xlfd_point_size): Take additional frame parameter to be able
8466         to get at the display's resolution.
8468         * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
8469         BLACK_PIX_DEFAULT.
8470         (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
8471         screen of display.
8473 1998-03-31  Gerd Moellmann  <gerd@gnu.org>
8475         * xfaces.c (choose_face_fontset): Instantiate fontsets.
8477         * fontset.h: Add external declarations for Vfontset_alias_alist
8478         and Vglobal_fontset_alist.
8480         * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
8481         (realize_default_face): If frame parameters contain an artificial
8482         font name naming a fontset, set the family of the default face to
8483         the fontset name given by the registry.
8485         * Makefile.in (alloc.o): Add dependency to dispextern.h.
8487 1998-03-22  Gerd Moellmann  <gerd@gnu.org>
8489         * alloc.c (mark_object): Add function prototype.  Add cast to
8490         Lisp_Object pointer in call to mark_object for symbol names
8491         because this otherwise gives a warning from gcc 2.8.1.
8492         (mark_face_cache): Mark Lisp objects in realized faces.
8494 1998-03-19  Gerd Moellmann  <gerd@gnu.org>
8496         * frame.h (struct frame): Add member face_cache.
8498         * alloc.c (mark_object): Mark face cache.
8499         (mark_face_cache): Mark Lisp faces in face cache of frame.
8501         * frame.c (make_frame): Initialize face_cache.
8502         (Fdelete_frame): Free it.
8504 1998-03-18  Gerd Moellmann  <gerd@gnu.org>
8506         * xfaces.c: Very first skeleton of functions for face realization,
8507         face merging, face cache etc.
8509         * dispextern.h (struct rface): Realized faces.  Will replace
8510         struct face when tested.
8511         (struct face_cache): Realized face caches.
8513         * xdisp.c (init_iterator): Initialize area member of display
8514         iterator.
8516 1998-03-17  Gerd Moellmann  <gerd@gnu.org>
8518         * xterm.c (x_append_glyph): Use it->area to store glyphs.
8520         * dispextern.h (struct display_iterator): New member area.
8522         * xterm.c (note_overwritten_text_cursor): Note when the text
8523         cursor of a window is overwritten.
8525         * xdisp.c (set_cursor_from_row): If PT is not found in the
8526         row, display the cursor at the start of the row.
8528         * dispnew.c (direct_output_forward_char): Call
8529         set_cursor_from_row.
8531         * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
8532         position is not in an overlay string, set iterator's position and
8533         method explicitly so.
8534         (set_cursor_from_row): Correct cursor position calculation. 
8535         Make it externally visible.
8536         (redisplay_window): Call set_cursor_from_row so that there is only
8537         one place where the cursor position is calculated from a current
8538         row.
8540         * dispextern.h (struct display_iterator): New member
8541         overlay_strings_at_end_processed_p.
8543         * xdisp.c (check_iterator): Perform sanity checks on
8544         display_iterators.
8545         (next_element_from_buffer): Check for overlay strings at ZV.
8547 1998-03-16  Gerd Moellmann  <gerd@gnu.org>
8549         * buffer.c (init_buffer_once): Add left_margin_width and
8550         right_margin_width to buffer_local_flags.
8552         * dispnew.c (margin_glyphs_to_reserve): Function computing
8553         number of glyphs to reserve for a marginal area.
8554         (adjust_glyph_matrix): Call it.
8555         (adjust_frame_glyphs_for_frame_redisplay): Return if frame
8556         is not alive.
8558         * window.c (Fset_window_margins): Allow floats.
8560         * buffer.c (syms_of_buffer): Add buffer-local variables
8561         left-margin-width and right-margin-width.  Add defaults
8562         default-left-margin-width and default-right-margin-width.
8564         * buffer.h (struct buffer): New members left_margin_width
8565         and right_margin_width.
8567         * window.c (Fset_window_margins): Make window the last and
8568         optional argument.
8570         * xterm.c (x_draw_glyphs): Compute x-positions for rows with
8571         flag no_marginal_areas_p differently.
8572         (x_clear_end_of_line): Ditto.
8573         (x_draw_glyph_string_relief): Compute width of relief differently
8574         for rows with flag no_marginal_areas_p.
8576         * dispnew.c (update_window_line): Update marginal areas only
8577         for rows that don't have no_marginal_areas_p set.
8579         * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
8580         (display_menu_bar): Ditto.
8582         * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
8584         * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
8585         marginal areas in window-based redisplay.
8587         * dispextern.h (struct glyph_matrix): New members
8588         left_margin_glyphs and right_margin_glyphs.
8590 1998-03-15  Gerd Moellmann  <gerd@gnu.org>
8592         * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
8594         * charset.c (non_ascii_char_to_string): Use char type parameters
8595         because the function is used that way from outside.  Use unsigned
8596         char internally.
8598         * window.c (change_window_height): Return void.
8599         (make_dummy_parent): Return void.
8600         (init_window_once): Return void.
8601         (syms_of_window): Ditto.
8602         (keys_of_window): Ditto.
8603         (delete_window): Correct return with and without value.
8605         * buffer.c (record_buffer): Return void.
8607         * marker.c (unchain_marker): Return void.
8609         * window.c (unshow_buffer): Return void.
8610         (replace_window): Ditto.
8611         (delete_window): Ditto.
8613         * term.c (delete_glyphs_hook): Void return type.
8614         (ring_bell_hook): Ditto.
8615         (set_terminal_window_hook): Ditto.
8617         * sysdep.c (init_sigio): Return void.
8619         * xterm.c (x_set_window_size): Return void.
8620         (x_calc_absolute_position): Ditto.
8621         (x_set_offset): Ditto.
8622         (x_focus_on_frame): Ditto.
8623         (x_unfocus_frame): Ditto.
8624         (x_make_frame_visible): Ditto.
8625         (x_make_frame_invisible): Ditto.
8626         (x_iconify_frame): Ditto.
8627         (x_destroy_window): Ditto.
8628         (x_wm_set_window_state): Ditto.
8629         (x_wm_set_icon_pixmap): Ditto.
8630         (x_wm_set_icon_position): Ditto.
8631         (x_initialize): Ditto.
8632         (x_error_quitter): Ditto.
8633         (x_destroy_window): Use xfree instead of free.
8635         * keyboard.c (clear_waiting_for_input): Return void.
8637         * xterm.c (x_wm_set_size_hint): Return void.
8638         (x_raise_frame): Ditto.
8639         (refreshicon): Ditto.
8640         (x_error_catcher): Ditto.
8641         (x_clear_errors): Ditto.
8643         * keyboard.c (record_asynch_buffer_change): Return void.
8645         * xterm.c (XTroï\0ðoï\0ðÃâ\0ðoï\0ðoï\0ðTÿ\0ðLá\0ðoï\0ðterminal_window): Ditto.
8646         (x_lower_frame): Ditto.
8647         (x_scroll_bar_clear): Ditto.
8648         (XTflash): Add default case in switch for -Wall.
8649         (construct_mouse_click): Return Qnil.
8650         (cancel_mouse_face): Return void.
8651         (x_queue_event): Use xmalloc instead of malloc.
8652         (x_unqueue_events): Use xfree instead of free.
8654         * ccl.c (ccl_driver): Return int.
8656         * keyboard.c (stop_polling): Return void.
8657         (start_polling): Ditto.
8659         * term.c (keys): Add braces in initializer list for -Wall.
8661         * sysdep.c (tabs_safe_p): Return int.
8662         (init_baud_rate): Return void.
8664         * xterm.c (x_draw_bitmap): Add default case.
8665         (x_setup_relief_colors): Use DefaultScreen instead of
8666         DefaultScreenOfDisplay.
8667         (x_delete_glyphs): Return void.
8668         (construct_menu_click): Put in #if 0 because it isn't called.
8670         * xdisp.c (load_overlay_strings): Remove extraneous argument
8671         in call to qsort.
8672         (get_overlay_arrow_glyph_row): Add missing return value.
8674         * window.c (set_window_height): Return void.
8675         (set_window_width): Ditto.
8677         * sysdep.c (request_sigio): Return void.
8678         (unrequest_sigio): Ditto.
8679         (get_frame_size): Ditto.
8681         * scroll.c (scroll_cost): Return int.
8682         (do_line_insertion_deletion_costs): Return void.
8684         * frame.c (Fdelete_frame): Use xfree instead of free.
8686         * fileio.c (report_file_error): Return void.
8688         * dispnew.c: Make compilable with -Wall.
8689         * term.c: Ditto.
8691         * charset.h (CHAR_LEN): Moved here from dispextern.h.
8693 1998-03-14  Gerd Moellmann  <gerd@gnu.org>
8695         * xterm.c (x_scroll_bar_move): Clear under scroll bar if height is
8696         increased.
8697         (x_setup_relief_color): Free color only for appropriate visual
8698         classes.
8700         * xterm.c (expose_window): Fix calculation of intersection of mode
8701         line rectangle with exposed rectangle.
8703         * xdisp.c (redisplay_window): Don't do cursor movement based
8704         on current matrix if w->last_point is not valid.
8706 1998-03-09  Gerd Moellmann  <gerd@gnu.org>
8708         * xterm.c (expose_line): Redraw mode line and menu lines
8709         differently because they reach into the scroll bar area.
8711         * xdisp.c (redisplay_window): If redisplaying with same window
8712         start, don't accept cursor on partially visible line.
8714 1998-03-08  Gerd Moellmann  <gerd@gnu.org>
8716         * xterm.c (x_set_glyph_string_clipping): Set clip rectangle
8717         for wider mode lines.
8718         (x_draw_glyph_string_relief): Use larger rectangle for mode lines.
8720         * xdisp.c (init_iterator): Increase last_visible_x by vertical
8721         scroll bar width for mode lines.
8723         * dispnew.c (allocate_matrices_for_window_redisplay): Include
8724         vertical scroll bar width in width calculation so that we can
8725         display mode lines wider.
8727         * xdisp.c (redisplay_window): Restore buffers before returning
8728         when fonts have changed.
8730         * dispnew.c (update_window): Mark invisible rows in the current
8731         matrix invalid.
8733         * xdisp.c (try_window_id): Force update of first row displayed
8734         at window end.
8735         (dump_glyph_matrix): Extracted from Fdump_glyph_matrix.
8737 1998-03-05  Gerd Moellmann  <gerd@gnu.org>
8739         * dispextern.h (struct glyph_row): Member max_ascent renamed
8740         ascent.  Member max_descent replaced by height.
8741         (struct display_iterator): Member max_descent replaced by height.
8742         (MATRIX_ROW_PIXEL_HEIGHT): Removed.
8744         * xterm.c (x_alloc_lighter_color): Don't free colors if visual
8745         class makes it unnecessary or dangerous.
8747         * xdisp.c (redisplay_window): Case only point has changed, and
8748         point has moved forward.  Move forward over overlay strings.
8749         (display_line): Don't set cursor if first glyph from PT is part of
8750         a continuation line.
8752 1998-02-21  Gerd Moellmann  <gerd@gnu.org>
8754         * xdisp.c (start_display): When computing continuation lines
8755         width, add current_x to the continuation lines width because
8756         move_iterator_to will stop in front of the buffer position moved
8757         to.
8759 1998-02-20  Gerd Moellmann  <gerd@gnu.org>
8761         * xdisp.c (redisplay_window): Don't try try_window_id if
8762         windows_or_buffers_changed.
8764         * xterm.c (x_alloc_lighter_color): Try both factor and delta to
8765         determine a color.
8766         (x_setup_relief_color): Allocate/ change one relief.
8767         (x_setup_relief_colors): Call above function.
8769         * xterm.h (struct relief): New structure type holding relief info:
8770         GCs, colors, and whether colors are allocated.
8772         * xterm.c (x_alloc_lighter_color): If multiplying by factor 
8773         produces the same color, try adding a delta to RGB values.
8774         (x_setup_relief_colors): Free color cells.
8776         * xterm.h (struct x_output): New members white_relief_pixel, 
8777         black_relief_pixel holding the foreground colors allocated for
8778         relief GCs.  New members white_allocated_p, black_allocated_p.
8780         * xterm.c (x_scroll_run): Don't set updated_window to null.
8781         This resets updated_window when called from scrolling_window.
8783         * dispextern.h (scroll_run_hook): Renamed from line_dance_hook.
8784         
8785         * xterm.c (x_scroll_run): Additional window parameter.  Set
8786         and reset updated_window.
8788         * dispnew.c (line_dance_hook): Additional window parameter.
8790         * xdisp.c (try_window_reusing_current_matrix): Don't call
8791         update_window_begin/end here.  The end function would display the
8792         cursor on a wrong position and the additional functionality of
8793         update_window_begin is not needed anyway.  Just set
8794         updated_window.
8795         (try_window_id): Ditto.
8797         * dispnew.c (Fblink_cursor): Remove call to detect_input_pending.
8798         Don't redraw cursor during redisplay.
8800         * xterm.c (x_scroll_run): Renamed from do_line_dance.
8802         * xdisp.c (redisplay_window): For window-based redisplay, alway
8803         try try_window_id.
8805         * xterm.c (struct glyph_string): New member two_byte_p that is
8806         non-zero if 16-bit drawing functions must be used.
8807         (x_fill_composite_glyph_string): Set it.
8808         (x_fill_glyph_string): Set it.
8809         (x_draw_glyph_string_foreground): Use it.
8810         (x_draw_vertical_border): Make line 1 pixel less tall.
8811         (x_draw_row_bitmaps): Decrease width of area cleared on the left
8812         side by 1 pixel if window is not right-most hasn't vertical scroll
8813         bars.
8814         (x_draw_phys_cursor_glyph): Do nothing if phys_cursor.hpos is
8815         out of bounds.
8816         (x_draw_glyph_string_foreground): Use XDrawImageStringX if
8817         hl == DRAW_CURSOR.
8819         * xdisp.c (start_display): Check that window start is at line
8820         start if GLYPH_DEBUG != 0.
8822         * window.c (window_scroll_pixel_based): Move assertion to
8823         start_display.
8825 1998-02-19  Gerd Moellmann  <gerd@gnu.org>
8827         * xterm.c (x_redraw_cursor): Don't redraw the cursor if the 
8828         frame hasn't the focus.
8830         * window.c (make_window): Initialize dy.
8831         (replace_window): Ditto.
8833         * window.h (window): New member dy specifying the amount by which
8834         a window is scrolled "smoothly".
8836         * xterm.c (x_set_glyph_string_clipping): Don't use glyph string's
8837         y-position because it can be negative. 
8838         (x_draw_row_bitmaps): Don't clear with negative y-position like
8839         above.
8840         (x_clear_end_of_line): Same theme as above.
8842         * xterm.c (x_alloc_nearest_color): Allocate a color or, if no
8843         exact match exists, the nearest existing color.  Patterned after
8844         defined_color.
8845         (x_alloc_lighter_color): Allocate a color that is lighter or
8846         darker than a given color by a specified factor.
8847         (x_setup_relief_colors): Set up relief line colors based on 
8848         the background color of a glyph string face.
8849         (x_draw_glyph_string_relief): Call x_setup_relief_colors.
8851         * xfns.c (x_make_gc): Don't allocate relief GCs.
8852         * widget.c (create_frame_gcs): Don't allocate relief GCs.
8853         (setup_frame_gcs): Don't change relief GCs.
8855         * xterm.h (struct x_output): New member relief_background giving
8856         the background pixel color for which relief GCs can be used.
8857         Set by x_setup_relief_colors.
8859         * xterm.c (x_draw_glyph_string_relief): Draw relief differently
8860         for mode and menu lines.
8862         * xdisp.c (set_next_iterator_stop_pos): No longer static.
8864         * dispnew.c (direct_output_for_insert): Call
8865         set_next_iterator_stop_pos after having changed it2.endpos.
8867 1998-02-17  Gerd Moellmann  <gerd@gnu.org>
8869         * dispnew.c (update_window): Work on selected_window, only.
8871         * xterm.c (x_erase_phys_cursor): Return quickly if physical cursor
8872         hpos is >= number of glyphs in the cursor row.
8874         * xdisp.c (try_window_id): Bug fix; update_window_end was not
8875         called.
8877 1998-02-16  Gerd Moellmann  <gerd@gnu.org>
8879         * xdisp.c (init_iterator): Increase last_visible_x for mode lines
8880         and menu lines.
8882         * dispnew.c (allocate_matrices_for_window_redisplay): Allocate
8883         enough glyphs to display a mode line or menu line which draws over
8884         flags areas.
8886         * xterm.c (XTset_vertical_scroll_bar): Use
8887         WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT instead of
8888         VERTICAL_SCROLL_BAR_PIXEL_HEIGHT.
8889         (x_draw_glyphs): Draw over flags areas when drawing a mode line 
8890         or menu.
8891         (x_set_glyph_string_clipping): Set clipping differently if drawing
8892         a mode line or menu line.
8894         * xterm.h (VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
8896         * xterm.c (expose_line): Don't draw bitmaps for mode lines and
8897         menu lines.
8898         (x_scroll_bar_create): Don't clear flags areas.
8899         (x_draw_row_bitmaps): Clear visible row height, only.
8901         * dispnew.c (Fblink_cursor): Moved here from xdisp.c.
8903 1998-02-15  Gerd Moellmann  <gerd@gnu.org>
8905         * dispnew.c (direct_output_for_insert): When checking for tabs in
8906         the line, set it2.endpos to ZV.
8907         
8908         * window.h (struct window): New member cursor_off_p.
8909         * xterm.c (x_redraw_cursor): Implementation of redraw_cursor_hook
8910         for X.
8911         * dispnew.c (redraw_cursor_hook): If non-null, function that can
8912         be called to display or erase the cursor.
8913         * xdisp.c (Fblink_cursor): Blink the cursor of a specified window
8914         or selected_window.
8916         * xterm.h (text_cursor_kinds): Enumerators changed to uppercase.
8918         * dispnew.c (update_window_line): Special handling of inverse
8919         lines in #if 0 removed.
8921         * xterm.c (x_write_glyphs): Renamed from XTwrite_glyphs.
8922         (x_insert_glyphs): Renamed from XTinsert_glyphs.
8923         (x_clear_frame): Renamed from XTclear_frame.
8924         (x_clear_end_of_line): Renamed from XTclear_end_of_line.
8925         (x_ins_del_lines): Renamed from XTins_del_lines.
8926         (x_change_line_height): Renamed from XTchange_line_height.
8927         (x_delete_glyphs): Renamed from XTdelete_glyphs.
8928         (x_clear_cursor): Renamed from clear_cursor.
8929         (x_update_begin): Renamed from XTupdate_begin.
8930         (x_update_end): Renamed from XTupdate_end.
8931         (x_update_window_begin): Renamed from XTupdate_window_begin.
8932         (x_update_window_end): Renamed from XTupdate_window_end.
8933         (x_frame_mode_line_height): Renamed from XTframe_mode_line_height.
8934         (x_produce_glyphs): Renamed from XTproduce_glyphs.
8935         (x_produce_special_glyphs): Renamed from XTproduce_special_glyphs.
8936         (x_produce_special_glyphs): Implementation in #if 0 removed.
8938         * xdisp.c (Fdump_redisplay_state): Display row's fill_line_p
8939         flag in the dump.
8941         * dispnew.c (update_text_area): Handling of glyphs with pixel
8942         width zero removed.  Decrement desired stop pos if desired row
8943         fills its line.
8945         * xterm.c (x_fill_glyph_string): Handling of glyphs with pixel
8946         width zero removed.
8947         (BUILD_GLYPH_STRINGS): Set glyph string flag
8948         extends_to_end_of_line_p based on row's flag fill_line_p and face
8949         background and stipple.  Make sure it works for composite characters.
8951         * xdisp.c (extend_face_to_end_of_line): Set the glyph row flag
8952         fill_line_p.  For window-based redisplay, add a space only if
8953         the row is empty so that we know the face to draw.
8955         * dispextern.h (struct glyph_row): New flag fill_line_p.  Non-zero
8956         means draw the face of the last glyph in the text area to the
8957         right end of the text area.
8959         * xdisp.c (init_iterator): Show region in window mini-buffer
8960         window refers to.
8962         * dispextern.h (struct display_iterator): Redundant member 
8963         region_showing_p removed.  Test for region_beg > 0 instead.
8965         * dispnew.c (update_text_area): Clear to end of line if cursor is
8966         beyond the end of the desired line.  Necessary because we don't
8967         have a phys_cursor_glyph with which to erase the cursor.  We don't
8968         have one because this method of drawing a cursor doesn't work with
8969         lbearing/rbearing.
8971         * xterm.c (XTinsert_glyphs): Block input.
8973 1998-02-14  Gerd Moellmann  <gerd@gnu.org>
8975         * xterm.c (x_set_cursor_gc): Don't use cursor_gc for composite
8976         glyph strings.
8977         (x_draw_glyph_string_background): Fill background with background
8978         pixel for the first glyph of a composite character.
8980         * xdisp.c (try_window): Change return type to int.  Value is zero
8981         if fonts were loaded during redisplay.
8982         (redisplay_window): Return if fonts have been loaded during
8983         redisplay.
8984         (append_space): New parameter default_face_p.
8986 1998-02-13  Gerd Moellmann  <gerd@gnu.org>
8988         * dispnew.c (adjust_glyph_matrix): In case of optimizing C-x 2,
8989         don't let a partially visible line in a current matrix stay
8990         enabled.
8992 1998-02-09  Gerd Moellmann  <gerd@gnu.org>
8994         * minibuf.c (read_minibuf): Put access to minibuffer_prompt_length
8995         in #if PROMPT_IN_BUFFER.
8997         * xdisp.c (display_line): If row ends in ZV, make the space
8998         that is added to place the cursor on it appear in default face.
9000         * xterm.c (expose_area): New function redrawing a single 
9001         glyph row area.
9002         (expose_line): Use it to redraw all areas of a row.
9004         * dispextern.h (move_operation_enum): New enum
9005         move_operation_enum.
9007         * window.c (window_scroll_pixel_based): Remove now unnecessary
9008         code that made sure that it->current_y doesn't become negative.
9010         * xdisp.c (move_iterator_in_display_line_to): New parameter
9011         op.  Special meaning of to_pos <= 0 and to_x < 0 removed.
9012         (move_iterator_to): Ditto.
9014         * dispextern.h (struct glyph_matrix): New member window_width.
9016         * dispnew.c (adjust_glyph_matrix): Set window_width.  Optimize
9017         case of changing window height.
9019         * xterm.c (x_draw_row_bitmaps): Don't clear vertical window
9020         border to the left. 
9022         * dispextern.h (struct glyph_row): Remove right_to_left_p.  RMS
9023         says this aspect of Emacs is currently redesigned.
9025         * xterm.c (x_clip_to_row): Subtract 1 from clip width if we
9026         have to draw a vertical border.
9028         * window.c (window_scroll_pixel_based): When scrolling down by
9029         screen-fulls, make sure it.current_y doesn't get negative because
9030         this would confuse move_iterator_vertically.
9032         * xdisp.c (move_iterator_vertically_backward): Bug fix for
9033         the case continuation lines are involved.
9034         (try_window_id): Don't set the cursor into scroll margins.
9036 1998-02-08  Gerd Moellmann  <gerd@gnu.org>
9038         * xterm.c (x_append_glyph): Don't compute left_overhang and
9039         right_overhang.
9040         (XTproduce_glyphs): left_overhang and right_overhang removed.
9041         Set it->glyph_row->contains_overlapping_glyphs_p.
9043         * xdisp.c (Fdump_redisplay_state): Output of glyph->left_overhang
9044         and right_overhang removed.
9046         * dispextern.h (struct glyph_row): New member
9047         contains_overlapping_glyphs_p used to optimize glyph drawing.
9048         (struct display_iterator): left_overhang and right_overhang
9049         removed.
9050         (struct glyph): Ditto.
9052         * xterm.c (x_draw_relief): Removed.
9053         (x_draw_bitmap): Renamed from draw_bitmap.
9054         (x_draw_glyphs): Completely new implementation of draw_glyphs
9055         capable of handling arbitrary lbearing and rbearing values.
9056         Several sub-functions not mentioned here.
9058 1998-01-30  Gerd Moellmann  <gerd@gnu.org>
9060         * xterm.c (x_erase_phys_cursor): Clear area under the cursor only
9061         if displaying hollow box cursor.  draw_glyphs should handle 
9062         other cases.
9063         (draw_glyphs): Move start to the left and end to the right if they
9064         overlap with previous or following characters.  
9065         (draw_glyphs): If background is cleared for hl == DRAW_CURSOR,
9066         make sure XDrawString uses function GXset.  Otherwise the 
9067         character under the cursor would be invisible.
9068         (x_draw_bar_cursor): Don't draw over previous character if it
9069         has right_overhang.
9071         * window.c (get_phys_cursor_glyph): Return the glyph under a
9072         window's physical cursor.
9073         
9074         * xterm.c (x_draw_hollow_cursor): Use get_phys_cursor_glyph.
9075         (x_draw_bar_cursor): Ditto.
9076         (x_erase_phys_cursor): Ditto.
9077         (x_phys_cursor_in_rect_p): Ditto.
9078         (x_display_and_set_cursor): Remove reference to w->phys_cursor_glyph.
9080         * window.c (make_window): Remove reference to phys_cursor_glyph.
9081         (replace_window): Ditto.
9083         * window.h (struct window): Remove phys_cursor_glyph.  There is
9084         now always a glyph present for placing the cursor on it in 
9085         each glyph row, even at the end of a line.
9087         * xdisp.c (append_space): Function to add a space to an iterators
9088         glyph row.
9089         (display_line): Add spaces at the end of lines that are used to
9090         place the cursor on them.
9091         (compute_line_metrics): If row consists of a space only that was
9092         added to place the cursor on it, use that space's height as the 
9093         line height.
9095 1998-01-29  Gerd Moellmann  <gerd@gnu.org>
9097         * xdisp.c (Fdump_redisplay_state): Dump left and right overhang of
9098         glyphs.
9100 1998-01-28  Gerd Moellmann  <gerd@gnu.org>
9102         * xterm.c (x_append_glyph): Set overhang of glyph from iterator.
9103         (XTproduce_glyphs): Set it->left_overhang and it->right_overhang.
9105         * dispextern.h (struct glyph): Add left_overhang and
9106         right_overhang.  
9107         (struct display_iterator): Ditto.
9109         * dispnew.c (direct_output_for_insert): Give up if newly inserted
9110         glyphs have different ascent or descent than original row.
9112         * xdisp.c (compute_line_metrics): Compute row->max_ascent and
9113         row->max_descent only if unknown.
9114         (display_line): Compute row->max_ascent and row->max_descent.
9115         (display_string): Ditto.
9117         * window.h (struct window): New members phys_cursor_ascent and
9118         phys_cursor_descent.  
9120         * xterm.c (x_phys_cursor_in_rect_p): Use them.
9121         (x_draw_hollow_cursor): Ditto.
9122         (x_erase_phys_cursor): Ditto.
9123         (x_display_and_set_cursor): Set them.
9124         (x_append_glyph): Don't set glyph members that were removed.
9126         * dispextern.h (struct glyph): Members ascent, descent,
9127         contributes_to_line_height_p removed.
9129 1998-01-25  Gerd Moellmann  <gerd@gnu.org>
9131         * dispextern.h (DEFAULT_FACE_ID, MODE_LINE_FACE_ID): Symbolic
9132         names for face ids of frame default face and mode line face.
9134         * xdisp.c (compute_face_at_iterator_string_position): If
9135         displaying a mode line use MODE_LINE_FACE_ID instead of
9136         DEFAULT_FACE_ID.
9138         * xdisp.c (reseat_iterator_to_string): Additional parameter start.
9139         (display_string): Ditto, additional parameter lisp_string.
9140         (display_line): Call display_string with Lisp mini-buffer prompt
9141         string.
9142         (display_menu_bar): Call display_string with Lisp string.
9143         (display_mode_element): Ditto.
9144         (next_element_from_string): Make it work for non-overlay Lisp
9145         strings with field width and precision.
9147         * minibuf.c (minibuffer-prompt-in-buffer): Bound if
9148         PROMPT_IN_BUFFER.
9150         * xfaces.c (compute_string_char_face): Fix face computation
9151         for overlay strings.
9153         * xdisp.c (struct overlay_entry): Add member after_string_p.
9154         (load_overlay_strings): Simplify.
9156         * window.c (delete_window): Defer glyph matrix adjustment.
9157         (Fsplit_window): Ditto.
9158         (change_window_height): Ditto.
9159         (Fset_window_configuration): Ditto.
9160         (Fset_window_margins): Ditto.
9161         * frame.c (set_menu_bar_lines): Ditto.
9162         (Fmake_terminal_frame): Ditto.
9163         * dispnew.c (change_frame_size_1): Ditto.
9165 1998-01-24  Gerd Moellmann  <gerd@gnu.org>
9167         * xdisp.c (move_iterator_vertically_backward): Change algorithm.
9169         * dispnew.c (direct_output_for_insert): Give up if start 
9170         position has overlay strings.
9172         * xdisp.c (display_line): Don't set cursor if row ends in middle
9173         of overlay string.
9174         (Fdump_redisplay_state): Print complete row start and end
9175         position.
9176         (redisplay_window): Cursor movement when matrix hasn't changed---
9177         if PT < last_point, maybe move forward if row ends at PT and
9178         in middle of char.
9180         * minibuf.c (read_minibuf): Save the value of
9181         minibuffer_prompt_length in minibuf_save_list.
9182         (read_minibuf_unwind): Restore minibuffer_prompt_length.
9184         * xdisp.c (redisplay_window): Add assertion for cursor movement
9185         case, PT < last_point.
9186         (move_iterator_in_display_line_to): If to_pos specified, move
9187         over before-strings.
9189         * dispextern.h (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test
9190         start.string_index > 0.
9192         * xdisp.c (redisplay_internal): Adjust glyphs if fonts_changed_p
9193         is set.  Retry redisplay if fonts_changed_p is set before update.
9195         * xterm.c (x_load_font): Set fonts_changed_p.
9197         * xfaces.c (Fset_face_attribute_internal): Set fonts_changed_p.
9199         * dispnew.c (adjust_glyphs_for_font_change): Removed.
9201         * xdisp.c (try_window): Check fonts_changed_p.
9202         (try_window_reusing_current_matrix): Ditto.
9203         (try_window_id): Ditto.
9205         * dispnew.c (adjust_glyphs_for_font_change): Set fonts_changed_p.
9206         (fonts_changed_p): Flag indicating a font change since the last
9207         glyph matrix adjustment.
9209         * xterm.c (x_per_char_metric): Use font->max_bounds as
9210         char metric of the font's default char if the default char
9211         hasn't per char metric itself.
9213         * xfaces.c (Fset_face_attribute_internal): Adjust glyphs
9214         for font change.
9215         (min_char_bounds): Check face->font != NULL.
9216         (font_min_bounds): Return minimum font metrics.  Capture the 
9217         case of invalid min_bounds contents.
9218         (min_char_bounds): Call font_min_bounds.
9220 1998-01-22  Gerd Moellmann  <gerd@gnu.org>
9222         * xdisp.c (start_display): Don't set it->prompt_width if
9223         PROMPT_IN_BUFFER.
9224         (move_iterator_in_display_line_to): Ditto.
9225         (display_line): Don't display prompt via display_string if
9226         PROMPT_IN_BUFFER.
9228         * minibuf.c (Fminibuffer_prompt_width): Return value from
9229         current_buffer if PROMPT_IN_BUFFER.
9230         (read_minibuf): If PROMPT_IN_BUFFER, insert prompt into 
9231         mini-buffer and make it read-only.
9232         (Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
9233         minibuffer_prompt_length instead of BEGV.
9234         (Fminibuffer_complete_word): Ditto.
9235         (Fminibuffer_complete_word): Ditto.
9237         * insdel.c (del_range_1): If PROMPT_IN_BUFFER, and start position
9238         is less than mini-buffer prompt width, use prompt width as start.
9240         * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, and start
9241         position is less than mini-buffer prompt width, use the prompt
9242         width as start.
9244         * cmds.c (Fbeginning_of_line): If PROMPT_IN_BUFFER, set point to
9245         end of prompt if applied to a mini-buffer and BEG reached.
9247 1998-01-21  Gerd Moellmann  <gerd@gnu.org>
9249         * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, add prompt
9250         length to start position.
9252         * buffer.c (Fget_buffer_create): Initialize
9253         minibuffer_prompt_length.
9254         (Fmake_indirect_buffer): Ditto.
9255         (Fkill_buffer): Ditto.
9257         * buffer.h (struct buffer): Add member minibuffer_prompt_length
9258         if PROMPT_IN_BUFFER.
9260 1998-01-19  Gerd Moellmann  <gerd@gnu.org>
9262         * xdisp.c (next_element_from_string): Make it work for arbitrary
9263         Lisp strings.
9264         (set_iterator_to_next): Advance to next overlay string only
9265         if it->string is an overlay string.
9267         * dispextern.h (struct display_iterator):
9268         next_ovstr_face_check_pos renamed next_string_face_check_pos.
9270         * xfaces.c (compute_string_char_face): Compute face for 
9271         arbitrary Lisp string.  Renamed from compute_overlay_string_char_face.
9273         * xdisp.c (next_element_from_string): Renamed from
9274         next_element_from_overlay_string.
9275         (compute_face_at_iterator_string_position): Renamed from 
9276         compute_face_at_iterator_overlay_string_position.
9278         * dispextern.h (struct display_iterator): Member overlay_string
9279         renamed string.
9281         * xdisp.c (next_element_from_c_string): Renamed from
9282         next_element_from_string.
9284         * dispextern.h (struct glyph_pos): Reversed meaning of
9285         overlay_string_index and string_index.
9287         * xdisp.c (next_element_from_overlay_string): Fix bug that made
9288         this function always return the first character of an overlay
9289         string.
9291 1998-01-18  Gerd Moellmann  <gerd@gnu.org>
9293         * xdisp.c (reseat_iterator): Set next_invisible_check_pos only if
9294         forced or new pos > next_invisible_check_pos.
9295         (redisplay_window): Don't try same window start if PT < window
9296         start.
9297         (move_iterator_vertically): Bug fix satisfying post-condition
9298         when ZV is reached and no newline in front.
9299         (move_iterator_vertically_backward): New implementation.
9300         (move_iterator_vertically_backward): Bug fixes.
9302         * xterm.c (XTmouse_position): Change call to min_char_bounds.
9303         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
9304         (adjust_glyphs_for_font_change): Always adjust.
9306         * dispnew.c (struct dim): Use int.
9308         * xfaces.c (Fset_face_attribute_internal): Set face->font_name;
9309         (allocate_face): Initialize it.
9310         (load_font): Use XLoadQueryFont again instead of x_load_font.
9311         (unload_font): Use XFreeFont again.
9312         (min_char_bounds): Iterate over fonts of faces.  Use frame's
9313         font sizes as default.  Remove parameter except_last_font_p.
9315         * dispextern.h (struct face): Add font_name.
9317 1998-01-17  Gerd Moellmann  <gerd@gnu.org>
9319         * xdisp.c (move_iterator_vertically): Check post-condition.  Move
9320         to start of line if ending at ZV and no newline in front.
9321         (move_iterator_to): If to_y specified, always first move to x = 0,
9322         so that move stops at line start instead of line end.  This is
9323         probably what callers would expect to happen.
9325         * window.c (window_scroll_pixel_based): Pixel-based scrolling that
9326         can handle different line heights.
9327         (window_scroll_line_based): Formerly window_scroll.
9328         (window_scroll): Call both.
9330         * xdisp.c (start_display): Exclude code if PROMPT_IN_BUFFER.
9331         (move_iterator_in_display_line_to): Ditto.
9332         (display_line): Ditto.
9334         * minibuf.c (read_minibuf): Conditionally insert prompt into
9335         buffer instead of handling prompts specially.  Change other
9336         functions accordingly.  All such code is in #if PROMPT_IN_BUFFER.
9338         * dispnew.c (adjust_glyph_matrix): Optimize the handling of C-x 2,
9339         upper window.  Optimize calls to xrealloc if same width.
9341         * xdisp.c (redisplay_window): Don't use
9342         try_window_reusing_current_matrix if window scroll functions
9343         exist.
9345         * dispextern.h (struct display_iterator): Member
9346         redisplay_end_trigger_p removed.
9348         * dispextern.h (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
9349         Renamed to WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
9351 1998-01-16  Gerd Moellmann  <gerd@gnu.org>
9353         * xdisp.c (move_iterator_by_lines): Optimize for truncate-lines
9354         nil.  Optimize truncate-lines t and moving backward.
9355         (move_iterator_to_previous_visible_line_start): Contains the heart
9356         of the previous set_iterator_to_previous_visible_line_end.  Don't
9357         reseat the iterator.  Used by move_iterator_by_lines.
9358         (set_iterator_to_previous_visible_line_start): Call function
9359         above.
9360         (move_iterator_in_display_line_to): Check TO_POS before doing
9361         anything else.  Otherwise to_pos == PT would move to x of PT+1.
9363         * indent.c (Fvertical_motion): Use display_iterator.
9365         * xdisp.c (move_iterator_by_lines): New function moving by screen
9366         lines.
9367         (redisplay_window): Use it.
9368         (move_iterator_to): Correct branch of to_vpos specified.
9369         (move_iterator_vertically_backward): Increment nlines after having
9370         backed up over some lines because the last line was not backed up
9371         over.
9372         (move_iterator_via_matrix): Look for it->pos in the matrix, and
9373         calculate it->vpos and it->current_y relative to this row.
9374         (move_iterator_via_matrix): Set in #if 0.  It doesn't seem to 
9375         have a big effect and it is complex.
9376         (move_iterator_to): Call to move_iterator_via_matrix in #if 0.
9378 1998-01-15  Gerd Moellmann  <gerd@gnu.org>
9380         * xterm.c (x_draw_relief): Simplify drawing and draw so that lines
9381         join nicely.  Lines with widths > 2 don't join nicely under X.
9382         * xterm.h (struct x_output): Remove member relief_gc_line_width.
9383         * widget.c (setup_frame_gcs): Initialize relief GC's to line
9384         width 1; remove references to relief_gc_line_width.
9385         * xfns.c (x_make_gc): Ditto.
9387         * xfaces.c (Fset_face_attribute_internal): Set frame garbaged
9388         if relief changes.
9389         (Fset_face_attribute_internal): Use XINT instead of XFASTINT
9390         to get a relief because they can be negative.
9392         * xterm.c (x_draw_relief): Correct line drawing positions.  Pixel
9393         positions are for the middle of lines under X.
9395         * xdisp.c (try_window_id): Always search for the cursor by setting
9396         w->cursor.vpos = -1.  Search in unchanged rows at the top and
9397         bottom if cursor not found in displayed lines.
9398         (display_mode_line): First extend face, then set right shadow 
9399         flag.  Otherwise the wrong glyph gets the right shadow.
9401         * dispnew.c (direct_output_for_insert): Give up if line contains
9402         a tab.  The number of spaces inserted for a tab changes if we
9403         insert glyphs in front of it.
9405         * xterm.c (x_list_fonts): Changes undone because the Lisp
9406         implementation for make-face-smaller, make-face-larger, and
9407         make-face-fixed can do without them.
9409         * xfns.c (Fx_list_fonts): Original x-list-fonts from x-list-font.c
9410         inserted.
9412         * xdisp.c (try_window_id): First compute beg_unchanged, then
9413         compare with window start pos.
9415         * xfns.c (Fx_face_fixed_p): Determine whether a face has a
9416         fixed-width font.
9417         (syms_of_xfns): defsubr for x-face-fixed-p.
9419         * xterm.c (x_erase_phys_cursor): If row containing cursor is not
9420         enabled, don't do anything because this row will be newly drawn
9421         anyway and because we can additionally no longer determine the row
9422         height.
9424         * xdisp.c (display_line): Bug fix cursor positioning.
9426         * xfns.c (x-list-fonts): Copied from x-list-fonts.c; #include
9427         removed.  x-list-fonts.c is now obsolete.
9428         (Qfixed, Qvariable): Moved here from xfaces.c.
9430 1998-01-14  Gerd Moellmann  <gerd@gnu.org>
9432         * xdisp.c (display_line): Set row->ends_at_zv_p based on
9433         FETCH_BYTE for truncated lines.
9434         (display_line): Set cursor differently.
9435         (display_line): Fixed bug setting last_pos_on_this_line wrong
9436         for truncated lines.
9438         * dispnew.c (adjust_glyph_matrix): Always adjust for frame-based
9439         redisplay.
9441         * window.c (Fsplit_window): Adjust glyphs before setting buffer.
9443         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
9444         assertion that character dimensions are not zero.
9446         * xterm.c (x_load_font): adjust_glyphs_for_font_change while
9447         input is blocked.
9449         * xdisp.c (decode_mode_spec): Faster implementation of line number
9450         display.
9452         * xterm.c (x_draw_row_bitmaps): Clear flags area before drawing
9453         bitmaps if bitmaps don't fill the entire area.
9454         (draw_bitmap): Draw bitmaps horizontally centered in flags area.
9456         * xterm.h (FRAME_FLAGS_BITMAP_HEIGHT): Macro giving the 
9457         pixel height of flags bitmaps.
9459         * frame.h (FRAME_FLAGS_AREA_COLS): Use FRAME_X_FLAGS_AREA_COLS.
9460         (FRAME_FLAGS_AREA_WIDTH): Ditto.
9462         * xterm.h (FRAME_FLAGS_BITMAP_WIDTH): Macro giving the width
9463         in pixels of a flags area of a frame.
9464         (FRAME_X_FLAGS_AREA_WIDTH): Removed.
9465         (FRAME_X_FLAGS_AREA_COLS): Macro giving the number of columns
9466         occupied by a flags area.
9468 1998-01-13  Gerd Moellmann  <gerd@gnu.org>
9470         * xdisp.c (hscroll_window_tree): Remove test for non-nil
9471         window_end_valid.
9473         * dispnew.c (adjust_glyph_matrix): Check redisplay_p if
9474         GLYPH_DEBUG != 0.
9476         * xdisp.c (display_line): Correct wrong calculation of row->x for
9477         the case of nglyphs == 1.
9478         (hscroll_window_tree): Renamed from hscroll_windows.
9479         (hscroll_windows): New function calling hscroll_window_tree that
9480         clears desired matrices on a frame when hscroll has been changed.
9481         (redisplay_p): Global flag set during redisplay.
9482         (redisplay_internal): Set and clear redisplay_p.
9484         * xfaces.c (min_char_bounds): Add assertion that width and height
9485         are not zero at the end.  Initialize *height and *width to -1,
9486         instead of using BITS_PER_SHORT.  If font has min_bounds.width
9487         zero, use its max_bounds.width.
9489         * x-list-font.c (Fx_list_fonts): Check INTEGERP or FLOATP for
9490         width and height.
9492 1998-01-12  Gerd Moellmann  <gerd@acm.org>
9494         * dispnew.c (adjust_glyph_matrix): Do nothing if sizes haven't
9495         changed.  Don't clear desired matrices.
9497         * xdisp.c (hscroll_windows): Compute pt after setting
9498         current_buffer.
9499         (redisplay_window): Don't do cursor movement based on current
9500         matrix if just_this_one_p is zero.
9502         * x-list-font.c (Fx_list_fonts): Additional parameter fixed.
9503         specifying that fixed-width, variable-width fonts or both 
9504         should be returned.
9506         * xfaces.c (Qfixed, Qvariable): Symbols for use by x-list-fonts.
9507         (syms_of_xfaces): Initialize them.
9509         * xterm.c (x_list_fonts): Include auto-scaled fonts.  Extend
9510         cached information.
9512 1998-01-11  Gerd Moellmann  <gerd@acm.org>
9514         * xdisp.c (display_mode_line): Extend face to end of line.
9516         * xdisp.c (echo_area_display): Don't call display_string with
9517         echo_area_glyphs_length == 0 which would mean infinite precision.
9518         (redisplay_internal): Adjust window_end_vpos if necessary.
9520 1998-01-07  Gerd Moellmann  <gerd@acm.org>
9522         * xdisp.c (display_line): Set it->ends_at_zv_p differently.
9524 1998-01-05  Gerd Moellmann  <gerd@acm.org>
9526         * xdisp.c (get_row_start_continuation_line_width): Removed.
9527         (init_iterator_to_row_start): Set it.current_x from row.
9528         (try_window_id): Set it.continuation_lines_width directly from
9529         row.
9531         * xdisp.c (hscroll_windows): Use w->pointm if window is not
9532         selected_window.
9533         (hscroll_windows): Center cursor in window.
9534         (hscroll_windows): Call move_iterator_in_display_line_to.
9536 1998-01-04  Gerd Moellmann  <gerd@acm.org>
9538         * xdisp.c (hscroll_windows): Check hscroll < 0.
9539         (redisplay_window): Allow quick cursor movement if overlay arrow
9540         but frame uses window-based redisplay.
9541         (display_line): Take special case for nglyphs == 1 out of #if 0.
9542         (display_line): Set row->ends_at_zv_p after the loop displaying
9543         glyphs because ZV can be in truncated text.
9544         (hscroll_windows): Use init_iterator_to_row_start.
9546         * dispnew.c (scrolling_window): Calculation of overlapping
9547         runs fixed.
9548         (row_equal_p): Compare continued_p and continuation_line_p.
9550 1998-01-02  Gerd Moellmann  <gerd@acm.org>
9552         * xterm.c (x_get_mode_line_face_gc): Renamed from
9553         x_get_modeline_face_gc.
9555         * xdisp.c (TEXT_PROP_DISTANCE_LIMIT): Max. distance from current
9556         buffer position to look for text properties.
9557         (get_face_from_cursor_pos): Use it.
9558         (compute_face_at_iterator_position): Use it.
9559         (next_element_from_buffer): Use it.
9561         * dispnew.c (scrolling_window): Decrement run's y-position
9562         when extending it backwards.
9564         * xterm.c (do_line_dance): Don't ever copy more than window height.
9566 1998-01-01  Gerd Moellmann  <gerd@acm.org>
9568         * xdisp.c (redisplay_window): Cursor motion in unchanged
9569         matrix---use MATRIX_ROW_.*_IN_MIDDLE_OF_CHAR_P.
9570         (init_iterator_to_next_row_start): Special handling of lines
9571         ending in middle of char removed.
9572         (hscroll_windows): Hscroll windows only if window_end_valid is not
9573         nil.
9574         (try_window_reusing_current_matrix): Call hscroll_windows.
9575         (init_iterator_to_row_start): Initialize iterator for display
9576         starting at a position given by a glyph_row->start.
9577         (redisplay_window): Don't use vmotion because it gives wrong
9578         results if lines are continued and variable width fonts are used.
9580         * dispextern.h (struct glyph_pos): New member dpvec_index.  
9581         (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test if row ends in the
9582         the middle of a character.
9583         (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test if row starts in 
9584         the middle of a character.
9586         * xdisp.c (set_iterator_to_next): Increment it->dpvec_index, reset
9587         it.
9588         (next_element_from_display_vector): Use it->dpvec_index.
9589         (reseat_iterator): Reset it.
9590         (init_iterator): Reset it.
9591         (setup_iterator_dpvec_from_glyph_pos): Set up it->dpvec and
9592         it->pos.dpvec_index from a glyph_pos structure.
9593         (init_iterator_from_glyph_pos): Call the function above.
9594         (reseat_iterator_to_glyph_pos): Ditto.
9596         * dispnew.c (direct_output_forward_char): Don't use this method at
9597         overlay boundaries or near invisible text.
9598         (direct_output_forward_char): Step through glyph row to find
9599         cursor position.
9601         * xterm.c (x_get_cursor_gc): Don't return cursor_gc for font == 
9602         frame font if line height differs from font height.
9604         * xdisp.c (set_iterator_to_next): Renamed from
9605         move_iterator_forward to avoid confusion with other move_.*
9606         functions.
9608         * dispextern.h (FACE_RELIEF_P): Renamed from FACE_3D_P.
9610 1997-12-31  Gerd Moellmann  <gerd@acm.org>
9612         * xterm.c (x_get_cursor_gc): Renamed from x_cursor_gc to use the
9613         same naming convention as for other GC functions.
9614         (draw_glyphs): Don't fill background when drawing a cursor and
9615         font height is less than line height.
9617 1997-12-30  Gerd Moellmann  <gerd@acm.org>
9619         * xdisp.c (init_display_iterator.*): Renamed to shorter names
9620         init_iterator_.*.
9622         * xdisp.c (move_iterator_forward): Restore it->len from
9623         it->dpvec_char_len if dpend reached.
9624         (get_next_display_element): Don't consume translated char
9625         prematurely.
9626         (display_line): Don't set this_.* variables if row is continued.
9627         (start_display): Move to start of continuation line if ending
9628         up at end of continued line.
9630         * dispextern.h (struct display_iterator): New member dpvec_char_len.
9632         * xdisp.c (move_iterator_in_display_line_to): Check TO_POS after
9633         checking TO_X and continuation lines.
9634         (get_last_unchanged_at_beg_row): If first_changed_pos is the end
9635         of a continued line, don't consider this line as unchanged because
9636         it may no longer be continued.
9638 1997-12-29  Gerd Moellmann  <gerd@acm.org>
9640         * xdisp.c (try_window_id): Catch the case that moving over
9641         continuation lines moves first_unchanged_at_end_row to a row not
9642         displaying text.
9644         * dispextern.h (struct glyph_row): New member
9645         continuation_lines_width.  Member continuation_line_p removed.
9646         (MATRIX_ROW_CONTINUATION_LINE_P): Non-zero if row displays a 
9647         continuation line.
9648         * xdisp.c (display_line): Set row->continuation_lines_width.
9649         (get_row_start_continuation_line_width): Set continuation lines
9650         width of iterator from continuation lines width of glyph row.
9651         (get_row_start_continuation_line_width): Make it inline.
9652         (set_window_cursor): Make it inline.
9653         (try_window_id): Use MATRIX_ROW_CONTINUATION_LINE_P.
9654         (Fdump_redisplay_state): Ditto.
9655         
9656         * dispnew.c (update_window_line): Use MATRIX_ROW_CONTINUATION_LINE_P.
9657         * xterm.c (x_draw_row_bitmaps): Use MATRIX_ROW_CONTINUATION_LINE_P.
9659         * xdisp.c (try_window_id): Set it.hpos and it.current_x to zero
9660         after determining the continuation lines width for
9661         last_unchanged_at_beg_row.
9663         * xterm.c (x_draw_row_bitmaps): Let overlay arrow have precedence.
9665         * xdisp.c (display_mode_line): Handle 3D faces only on frames
9666         which support faces.
9667         (init_display_iterator): Ditto.
9668         (move_iterator_via_matrix): Skip over truncation glyph at the row
9669         start on terminal frames.
9670         (hscroll_windows): Choose hscroll margin differently for window
9671         system and terminal frames.
9673 1997-12-28  Gerd Moellmann  <gerd@acm.org>
9675         * xdisp.c (hscroll_windows): Change hscroll of windows.
9676         (redisplay_internal): Call it.
9678         * dispnew.c (direct_output_for_insert): Give up if a glyph 
9679         doesn't fit completely on the line.
9680         (direct_output_forward_char): Give up for non-ASCII chars.
9681         (direct_output_forward_char): Set redisplay_performed_directly_p.
9683         * dispextern.h (struct display_iterator): Make first_visible_x
9684         and last_visible_x ints; this is for very long truncated lines.
9686         * xdisp.c (move_iterator_in_display_line_to): Separate check for
9687         MOVE_X_REACHED only if it->nglyphs == 0.  This fixes cursor
9688         positioning problems with the mouse.
9689         (move_iterator_in_display_line_to): Truncate lines if it->current_x
9690         >= it->last_visible_x instead of >.
9691         (display_line): Ditto.
9693         * xterm.c (draw_glyphs): Draw rectangles if font could not be
9694         loaded.
9695         (XTproduce_glyphs): Calculate pixel_width for composite chars and
9696         non-ASCII chars differently.  Always produce 1 glyph for composite
9697         chars.  If font not found, use CHARSET_WIDTH to calculate width of
9698         non-ASCII chars.
9699         (x_get_char_font_and_encoding): Return null if font could not be
9700         loaded.  Reset font to null if fontset could not be loaded.
9701         (draw_glyphs): Fill background if font not found.
9702         (draw_glyphs): Unused parameter just_foreground_p removed. New
9703         parameter composite_glyph.
9704         (draw_glyphs): Use enumeration for parameter hl.
9705         (draw_glyphs): Pass a display area relative x-position to 
9706         draw_glyphs when calling it recursively for composite chars.
9708 1997-12-27  Gerd Moellmann  <gerd@acm.org>
9710         * xterm.c: Patches from handa.etl.go.jp integrated.
9711         (draw_glyphs): Don't rely on x_get_char_font_and_encoding to
9712         find a font_info.
9714         * xdisp.c (move_iterator_in_display_line_to): Check to_x
9715         for nglyphs == 1.
9717         * xterm.c (x_draw_relief): Draw relief lines.
9718         (draw_glyphs): Call x_draw_relief.
9720 1997-12-26  Gerd Moellmann  <gerd@acm.org>
9722         * xfns.c (x_make_gc): Create relief GC's.
9724         * widget.c (create_frame_gcs): Create GC's for relief drawing.
9725         (setup_frame_gcs): Initialize them.
9726         (EmacsFrameDestroy): Free them.
9728         * xdisp.c (try_window_id): Get continuation lines width if 
9729         last_unchanged_at_beg_row is continued or a continuation line.
9730         (move_iterator_via_matrix): Don't do it for mini-buffer windows.
9731         (redisplay_window): Case point has changed, and it has not 
9732         moved off the frame.  Don't increment row if PT equals the row
9733         end if the row ends in ZV.
9735         * xterm.c (x_draw_row_bitmaps): New function to draw bitmaps.
9736         (expose_line): Call it.
9737         (x_after_update_window_line): Call it.
9739         * xdisp.c (display_line): Reset continuation_lines_width when ZV
9740         reached.
9742         * xterm.c (x_after_update_window_line): Draw continuation line
9743         bitmap.
9745         * dispnew.c (update_window_line): Call
9746         after_update_window_line_hook when row's continuation_line_p
9747         changes.
9749         * xterm.c (draw_bitmap): Draw new bitmap CONTINUATION_LINE_BITMAP.
9751         * xdisp.c (display_line): Handle continued lines on window system
9752         frames differently since continuation glyphs are not displayed.
9753         (move_iterator_in_display_line_to): Ditto.
9754         (move_iterator_in_display_line_to): Take the mini-buffer prompt
9755         into account.
9756         (move_iterator_vertically_backward): Handle dy == 0 specially.
9757         (redisplay_window): Catch the case of small windows when
9758         recentering where moving back window_height/2 moves us beyond the
9759         top of the display area of the window.
9761 1997-12-18  Gerd Moellmann  <gerd@acm.org>
9763         * xdisp.c (move_iterator_vertically_backward): Unused parameter
9764         dvpos removed.
9766 1997-12-17  Gerd Moellmann  <gerd@acm.org>
9768         * dispnew.c (direct_output_forward_char): Correct new cursor
9769         x-position.
9771 1997-12-16  Gerd Moellmann  <gerd@acm.org>
9773         * xterm.c (x_after_update_window_line): Remove unused parameters.
9774         (XTclear_end_of_line): Clear to display_height instead of
9775         display_height - 1.
9777         * dispnew.c (set_frame_matrix_frame): Make it INLINE.
9778         (update_window_line): Call after_update_window_line_hook if 
9779         rows have different y-positions, or different height.
9781 1997-12-14  Gerd Moellmann  <gerd@acm.org>
9783         * frame.h (FRAME_MODE_LINE_PIXEL_HEIGHT): Removed.
9785         * window.c (coordinates_in_window): Call frame_mode_line_height.
9787         * xterm.c (x_draw_3d_border): Removed.
9788         (x_draw_row_borders): Removed.
9790         * dispnew.c (update_window): References to
9791         FRAME_MODE_LINE_BORDER_WIDTH removed.
9793         * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Removed.
9794         (FRAME_MODE_LINE_HEIGHT): Removed.
9796         * xterm.c (draw_3d_borders_p): Removed.
9797         (draw_glyphs): Ditto.
9798         (XTwrite_glyphs): Ditto.
9799         (expose_line): Ditto.
9800         (x_initialize): Ditto.
9802         * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Call
9803         frame_mode_line_height.
9805         * term.c (frame_mode_line_height): Get the pixel height of a
9806         frame's mode line.
9807         (frame_mode_line_height_hook): Hook to implement system dependent
9808         versions.  
9809         
9810         * xterm.c (x_initialize): Set the hook.
9811         (XTframe_mode_line_height): X version of frame_mode_line_height.
9813         * xdisp.c (echo_area_display): Call gobble_input to flush the X
9814         output buffer.
9815         (display_string): Don't add right truncation mark if line ends in
9816         padding space.
9817         (init_display_iterator): If called with modeline_p non-zero, set
9818         face_id to 1, which is the id of the mode line face.
9820         * keyboard.c (cmd_error_internal): Write to stderr if selected
9821         frame is Vterminal_frame under X.  This is the case when a font
9822         cannot be loaded when Emacs starts.  Replace test for
9823         FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
9825         * xfaces.c (compute_overlay_string_char_face): Compute the
9826         face of a character in an overlay string.
9827         * xterm.h (compute_overlay_string_char_face): Prototype.
9828         * xdisp.c (compute_face_at_iterator_overlay_string_position): 
9829         Use it.
9831         * xdisp.c (set_iterator_to_next_overlay_string): Formerly
9832         set_iterator_to_next_overlay.
9833         (struct overlay_entry): Structure used to sort overlay strings.
9834         (compare_overlay_entries): Compare overlay strings.
9835         (load_iterator_with_overlay_strings): Load a chunk of overlay
9836         strings.
9837         (get_overlay_strings_at_iterator_position): Call it.
9838         (next_element_from_overlay_string): Set it->object to the overlay
9839         string.  Prepare for setting it->position to a string position.
9840         (get_overlay_strings_at_iterator_position): Renamed from
9841         get_overlays_at_iterator_position.
9842         (setup_iterator_overlay_strings_from_glyph_pos): Changed to load
9843         chunks of overlay strings.
9844         (load_overlay_strings): Renamed from load_iterator_overlay_strings.
9846         * dispextern.h (struct display_iterator): New vector
9847         overlay_strings and new member n_overlay_strings---formerly
9848         overlays and n_overlays.  
9849         (struct glyph_pos): Remove after_string_p; overlay_index 
9850         renamed to string_index.
9852 1997-12-13  Gerd Moellmann  <gerd@acm.org>
9854         * xdisp.c (copy_iterator): Increment n_iterator_overlay_vectors
9855         when allocating a vector.
9856         (release_iterator): Removed.
9857         (restore_iterator): Removed.
9858         (copy_iterator): Removed.
9860 1997-12-08  Gerd Moellmann  <gerd@acm.org>
9862         * xdisp.c (redisplay_window): Use make_empty_enabled_row for
9863         clearing a mini-buffer window that is not active.
9864         (redisplay_window): Do not scroll one line too early when last
9865         window line is completely visible.
9866         (init_display_iterator): Leave some room to display the cursor
9867         after the last glyph on a continued line.
9869         * xterm.h (struct x_output): trunc_area_extra renamed
9870         flags_areas_extra.
9871         (FRAME_X_FLAGS_AREA_WIDTH): Renamed from FRAME_X_TRUNC_WIDTH.
9873         * dispnew.c (update_window_line): Call
9874         after_update_window_line_hook when current row is not enabled
9875         which is the case after a frame has been cleared.
9877         * xdisp.c (display_mode_line): Reset row flags for truncation
9878         on right side for the mode line.
9880         * xterm.c (bitmap_type): Type of bitmap to display in flags
9881         area of frame.
9882         (x_after_update_window_line): Use the enum.
9883         (draw_bitmap): Ditto.
9885 1997-12-07  Gerd Moellmann  <gerd@acm.org>
9887         * xterm.c (x_clip_to_row): Include width of both flag areas.
9888         (do_line_dance): Ditto.
9889         (expose_window_tree): Ditto.
9890         * dispnew.c (update_window_line): Call
9891         after_update_window_line_hook for right truncation and continuation.
9892         * xdisp.c (init_display_iterator): Don't subtract width of
9893         continuation glyphs for window-based redisplay.
9894         * xterm.c (draw_bitmap): Draw continuation bitmap.
9895         * widget.c (set_frame_size): Double trunc_area_extra.
9896         (EmacsFrameSetCharSize): Ditto.
9897         * xfns.c (x_figure_window_size): Ditto.
9898         * xterm.c (x_set_window_size): Ditto.
9899         (x_after_update_window_line): Draw right truncation mark.
9901         * xterm.c (draw_glyphs): Bug fix buffer overrun.
9903         * window.h: Include blocker around dispextern.h removed.
9905         * eval.c (Feval): Check interrupt_input_block == 0.
9906         
9907         * dispextern.h (struct display_iterator): Former ovstr made a
9908         Lisp_Object overlay_string.  New next_ovstr_face_check_pos and
9909         next_ovstr_invisble_check_pos; check at these positions for
9910         face changes and changes in invisible text property.
9911         (struct glyph_pos): Former ovlen now overlay_string_index.
9913         * xdisp.c (setup_iterator_overlays_from_glyph_pos): Set
9914         overlay_string.
9915         (set_iterator_to_next_overlay_string): Set overlay_string and
9916         pos.overlay_string_index.
9917         (get_overlays_at_iterator_position): Use overlay_string and
9918         overlay_string_index.
9919         (next_element_from_overlay_string): Use overlay_string and
9920         overlay_string_index.
9921         (move_iterator_forward): Increment overlay_string_index.
9922         (try_window_id): Use overlay_string and overlay_string_index.
9923         (move_iterator_forward): At end of dpvec, maybe use method
9924         next_element_from_overlay_string for the case a character from an
9925         overlay string was translated via a display table.
9926         (reseat_iterator_to_string): Take a Lisp string.
9927         (display_string): Pass a Lisp string to reseat_iterator_to_string.
9928         (compute_face_at_iterator_overlay_string_position): Compute face
9929         based on text properties for an overlay string.
9930         (next_element_from_overlay_string): Check invisible and face text
9931         properties.
9932         (set_iterator_to_next_overlay_string): Restore face id before
9933         overlay strings when no more overlay strings are found to return.
9934         Initialize next_ovstr_.*check_pos for each new overlay string
9935         roï\0ðoï\0ðÃâ\0ðoï\0ðoï\0ðTÿ\0ðLá\0ðoï\0ðase_face): Made public.
9936         (merge_face_list): Ditto.
9937         (intern_computed_face): Ditto.
9939         * xdisp.c (redisplay_window): Cursor movement in unchanged 
9940         window if PT > w->last_point.  Goto try_to_scroll if bottom Y
9941         of row is > instead of >= last_y.
9943         * buffer.h (overlays_at): Function prototype.
9945         * xdisp.c (reseat_iterator_to_string): Clear iterator position.
9946         * dispextern.h (GET_NEXT_DISPLAY_ELEMENT): Removed.
9948         * xdisp.c (release_iterator): Release dynamically allocated 
9949         memory of a display_iterator.
9950         (copy_iterator): Copy an iterator.
9951         (restore_iterator): Restore an iterator from a backup copy.
9952         (global): Use the functions above.
9953         * window.c (Fpos_visible_in_window_p): Call release_iterator.
9954         * dispnew.c (direct_output_for_insert): Call release_iterator.
9956         * dispextern.h (struct display_iterator): Allocate overlays
9957         vector dynamically.
9959 1997-12-06  Gerd Moellmann  <gerd@acm.org>
9961         * Makefile.in (window.o): Depends on dispextern.h.
9963         * buffer.c (overlays_at): Make it work when extending vectors
9964         and an initial vector of zero size.
9966         * xdisp.c (set_iterator_to_previous_visible_line_end): Renamed
9967         from set_cursor_to_previous_visible_line_end.
9968         (set_iterator_to_next_visible_line_start): Renamed from
9969         set_cursor_to_next_visible_line_end.
9970         (set_next_iterator_stop_pos): Renamed from set_next_stop_pos.
9971         (compute_face_at_iterator_position): Renamed from
9972         compute_cursor_face.
9973         (set_iterator_to_next_overlay_string): Renamed from
9974         cursor_to_next_overlay_string.
9975         (get_overlays_at_iterator_position): Renamed from
9976         get_overlays_for_cursor.
9977         (reseat_iterator): Renamed from reseat_cursor.
9978         (setup_iterator_overlays_from_glyph_pos): Renamed from
9979         setup_overlays_from_pos.
9980         (init_string_iterator): Renamed from init_string_cursor.
9981         (get_next_display_element): Renamed from next_display_element.
9982         (move_iterator_forward): Renamed from advance_display_cursor.
9983         (get_overlays_at_iterator_position): Allocate overlays vector 
9984         dynamically.
9986         * xdisp.c: display_cursor renamed display_iterator.
9987         * dispextern.h: Ditto.
9988         * dispnew.c: Ditto.
9990 1997-12-01  Gerd Moellmann  <gerd@acm.org>
9992         * window.c (mark_window_cursors_off): Function comment added.
9993         (window_topmost_p, window_rightmost_p): Removed because not used.
9995 1997-11-30  Gerd Moellmann  <gerd@acm.org>
9997         * emacs.c (main): Function prototypes removed in profiling code.
9998         Use safe_bcopy as start of text.
10000         * dispnew.c (update_frame_line): update_line -> update_frame_line;
10001         mirrored_make_current -> make_current.
10003         * xdisp.c: (store_frame_title_char): New function to store a
10004         single character for the frame title with re-allocation of
10005         frame_title_buf.
10006         (init_xdisp): Intialize frame_title_.* variables to null.
10008         * dispnew.c (quit_error_check): Removed.
10010         * eval.c (Fsignal): Call to quit_error_check removed.
10011         * keyboard.c (quit_throw_to_read_char): Ditto.
10013 1997-11-23  Gerd Moellmann  <gerd@acm.org>
10015         * xfaces.c (Fset_face_attribute_internal): Allow nil relief
10016         to mean a zero relief.
10018 1997-11-19  Gerd Moellmann  <gerd@acm.org>
10020         * dispnew.c (new_glyph_matrix): Increment glyph_matrix_count
10021         unconditionally.
10022         (glyph_matrix_count, glyph_pool_count): Define unconditionally.
10023         (free_glyph_matrix): Decrement glyph_matrix_count unconditionally.
10024         (check_glyph_memory): Define function body unconditionally.
10026 1997-11-17  Gerd Moellmann  <gerd@acm.org>
10028         * dispnew.c (scrolling_window): Alternative version of this
10029         function removed.
10031 1997-11-16  Gerd Moellmann  <gerd@acm.org>
10033         * dispnew.c (make_empty_enabled_row): Make an empty, enabled row
10034         of height CANON_Y_UNIT.
10035         * dispextern.h: Prototype for that function.
10036         * xdisp.c (echo_area_display): Don't use display_string to 
10037         produce empty rows.  Use make_empty_enabled_row instead.
10039         * dispnew.c (scrolling_window): New version using diff-like
10040         algorithm activated.
10041         
10042 1997-11-15  Gerd Moellmann  <gerd@acm.org>
10044         * dispnew.c (clear_current_matrices): Clear matrix of menu_bar_window
10045         (clear_desired_matrices): Ditto.
10046         (adjust_frame_glyphs_for_window_redisplay): Use FRAME_WINDOW_WIDTH
10047         for menu_bar_window.
10049         * alloc.c (mark_object): Mark menu_bar_window of frames.
10051         * xterm.c (XTupdate_window_end): Don't display cursor if
10052         pseudo_window_p.
10054         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Don't
10055         set mini_p.
10056         (update_window): Don't set cursor if pseudo_window_p.
10058         * dispextern.h (WINDOW_WANTS_MODELINE_P): Test pseudo_window_p.
10060         * window.h (struct window): New flag pseudo_window_p set to
10061         1 for windows that aren't really part of the window tree, like
10062         menu_bar_window's of frames.
10063         * window.c (make_window): Initialize it.
10064         (replace_window): Ditto.
10065         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
10067         * frame.c (make_frame): Initialize menu_bar_window to nil.
10069         * xterm.c (XTget_display_info): FACE_SHADOW_THICKNESS renamed
10070         FACE_RELIEF
10072         * xfaces.c (copy_face): shadow_thickness -> relief.
10073         (face_eql): Ditto.
10074         (merge_faces): Ditto.
10075         (compute_base_face): Ditto.
10076         (Fset_face_attribute_internal): Ditto.
10077         * dispextern.h (struct face): Ditto.
10079         * dispnew.c (update_frame): Update menu_bar_window of the frame if
10080         it is non-nil.
10082         * xdisp.c (display_menu_bar): Display the menu bar in
10083         f->menu_bar_window if appropriate.
10084         (display_mode_line): Use MATRIX_MODE_LINE_ROW.
10086         * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Allocate
10087         dummy window and window matrices for f->menu_bar_window.
10088         (free_glyphs): Free the dummy window and its glyph matrices.
10090         * frame.h (struct frame): New member menu_bar_window.
10092 1997-11-09  Gerd Moellmann  <gerd@acm.org>
10094         * dispnew.c (scrolling_window): New version with diff-like
10095         algorithm.
10097         * xdisp.c (try_window_reusing_current_matrix): If new_start >
10098         old_start always start displaying at start of
10099         first_row_to_display.  The previous scheme failed if the last row
10100         was fully visible.
10102         * dispnew.c (update_window): Remove cost calculations.  Remove
10103         redundant preempt_count calculations.
10105         * xterm.c (x_clip_to_row): Set clipping for non-text rows
10106         differently.
10108         * dispnew.c (update_window): Use WINDOW_WANTS_MODELINE_P.
10110         * window.c (syms_of_window): Functions for marginal areas if 
10111         WITH_MARGINAL_AREAS is defined.
10113         * xdisp.c (try_window_reusing_current_matrix): Trace fprintf 
10114         removed.
10116         * dispnew.c (scrolling): Call line_hash_code because hash values
10117         are not set in the frame matrix.
10119         * xdisp.c (try_window_id): Fix scrolling for terminal frames.
10120         (redisplay_window): Check line_ins_del_ok before calling
10121         try_window_id.
10122         (try_window_reusing_current_matrix): Give up for terminal frames
10123         if window is not full width or we cannot insert/delete lines.
10124         (try_window_reusing_current_matrix): Fixed scrolling for terminal
10125         frames.
10127         * alloc.c (mark_glyph_matrix): Bug fix - pass pointer to
10128         Lisp_Object to mark_object.
10130         * xdisp.c (sync_frame_with_window_matrix_rows): Make frame and
10131         window rows have the same glyph pointers.
10132         (try_window_id): Call it.
10134         * alloc.c (mark_glyph_matrix): Function to mark Lisp objects in
10135         a glyph matrix.
10136         (mark_object): Call it.
10138         * xdisp.c (insert_left_trunc_glyphs): Use 0 object in glyphs for
10139         truncations.
10140         (display_line): Ditto.
10141         (display_line): Ditto for DISP_CONTINUATION.
10142         (display_line): Truncation on right: test current_x >
10143         last_visible_x.
10144         (skip_in_display_line_to): Ditto.
10145         (skip_via_matrix): Stop skipping in glyph row at face extending
10146         glyphs or at padding spaces.
10148         * dispnew.c (fill_up_glyph_row_with_spaces): Comment extended.
10150         * xdisp.c (display_line): Use glyph->object == 0 for padding
10151         glyphs.
10152         (redisplay_window): Don't let cursor move over padding
10153         spaces.
10155         * dispextern.h (struct glyph): Fix comment for object.
10157 1997-11-08  Gerd Moellmann  <gerd@acm.org>
10159         * dispextern.h (WINDOW_WANTS_MODELINE_P): Non-zero if a window
10160         has a mode line.
10161         * xdisp.c (redisplay_window): Use it.
10162         (display_mode_line): Check that window wants mode line.
10164 1997-11-03  Gerd Moellmann  <gerd@acm.org>
10166         * xdisp.c (display_menu_bar): Enable menu bar rows.
10168         * xterm.c (x_draw_hollow_cursor): X positions based on text area.
10169         (x_erase_phys_cursor): Ditto.
10170         (x_draw_bar_cursor): Ditto.
10172 1997-11-02  Gerd Moellmann  <gerd@acm.org>
10174         * dispnew.c (update_marginal_area): Update a marginal area.
10175         (update_text_area): Update text area.
10176         (update_window_line): Call both.
10178         * xterm.c (XTclear_end_of_line): Translate coordinates area
10179         dependent.
10181         * dispnew.c (updated_area): Row area being updated in
10182         update_window_line.
10183         (update_window_line): Set it.
10184         (update_marginal_area): Clear to end of line if not in text area.
10186         * window.c (Fset_window_margins): Increment
10187         windows_or_buffer_changed.  Adjust glyphs.
10189         * dispextern.h (WINDOW_TEXT_TO_FRAME_PIXEL_X): Convert text
10190         area X coordinates to frame coordinates.
10191         (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH): Width of left marginal area. 
10192         (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH): Same for right area.
10193         (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Same for text area.
10195         * xterm.c (draw_glyphs): Use text area width as display width.
10197         * xdisp.c (init_display_info): Subtract widths of marginal areas
10198         from last_visible_x.
10200         * alloc.c (mark_object): Mark objects in glyphs only if they are
10201         overlays.  Mark only if current_matrix != 0.  Activate the code.
10203         * window.c (Fset_window_margins): Set margins.
10204         (Fwindow_margins): Return margin area widths.
10205         (syms_of_window): Add defsubr's.
10207         * window.h (struct window): left_margin_width, right_margin_width.
10209         * xfns.c (x_set_trunc_area_width): Set truncation pixel width
10210         and cols.
10212         * frame.h (FRAME_TRUNC_COLS): Number of columns occupied by
10213         truncation/overlay arrow area.
10214         (struct frame): trunc_area_pixel_width, and _cols.
10216         * window.c (Fsplit_window): Use it.
10218         * window.c (Fsplit_window): Set cursor vpos to -1 after
10219         splitting.
10220         (Fsplit_window): SUbtract/add FRAME_TRUNC_WIDTH for horizontally
10221         split windows.
10223         * dispnew.c (set_window_cursor_after_update): Accept out
10224         of bounds cursor positions. 
10226         * xdisp.c (redisplay_internal): Check that after cursor motion
10227         within line, PT is on same line.
10229         * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Don't subtract
10230         FRAME_TRUNC_WIDTH.
10232         * xterm.h (struct x_output): trunc_area_extra.
10233         (CHAR_TO_PIXEL_WIDTH): Add in trunc_area_extra.
10234         (PIXEL_TO_CHAR_WIDTH): Subtract it.
10235         * widget.c (set_frame_size): Set it.
10236         (EmacsFrameSetCharSize): Ditto.
10237         * xfns.c (x_figure_window_size): Ditto.
10238         * xterm.c (x_set_window_size): Ditto.
10240         * dispnew.c (check_matrix_invariants): First try to check window
10241         ends (in #if 0).
10243         * xdisp.c (try_window_reusing_current_matrix): Try window
10244         redisplay with different window start.
10246 1997-11-01  Gerd Moellmann  <gerd@acm.org>
10248         * window.c (make_window): Set window_end_pos/vpos.
10249         (Fsplit_window): Zero last_cursor, window_end_valid.
10250         (Fset_window_buffer): Set window_end_vpos, zero last_cursor.
10252         * dispnew.c (check_matrix_invariants): Check window_end_pos/vpos.
10254 1997-10-31  Gerd Moellmann  <gerd@acm.org>
10256         * window.c (make_window): Initialize last_cursor.
10257         (replace_window): Ditto.
10259 1997-10-29  Gerd Moellmann  <gerd@acm.org>
10261         * window.h: New member last_cursor.
10262         * dispnew.c (direct_output_for_insert): Set it.
10263         (direct_output_forward_char): Ditto.
10264         * xdisp.c (redisplay_internal): Ditto.
10266 1997-10-28  Gerd Moellmann  <gerd@acm.org>
10268         * xdisp.c (redisplay_internal): Optimization 1 change partially
10269         reverted.  Check this again later.
10270         (skip_via_matrix): Remove redundent test for
10271         MATRIX_ROW_DISPLAYS_TEXT_P. 
10273 1997-10-27  Gerd Moellmann  <gerd@acm.org>
10275         * dispnew.c (update_window_line): Call
10276         after_update_window_line_hook only for interesting constellations.
10277         (free_glyph_matrix): Fix memory leak.
10279         * window.h: Include blocker WINDOW_H_INCLUDED, include
10280         dispextern.h.
10281         (struct window): phys_cursor_glyph as struct glyph.  * window.c
10282         (make_window): Initialize it.
10283         (replace_window): Ditto.  
10284         * dispnew.c (free_window_matrices): Remove freeing of
10285         phys_cursor_glyph.
10286         (check_matrix_invariants): Renamed from check_current_matrix_...
10287         * xterm.c: All references to phys_cursor_glyph changed.
10289         * dispextern.h (DISPEXTERN_H_INCLUDED: New include blocker.
10291         * xfaces.c: Comment update.
10293         * window.h (struct window): Make phys_cursor_glyph a struct glyph
10294         pointer. Remove phys_cursor_ascent, descent, etc.
10295         * dispnew.c (free_window_matrices): Free it.
10296         * window.c (make_window): Allocate it.
10297         (replace_window): Ditto.
10298         * xterm.c (x_draw_phys_cursor_glyph): Draw it.
10299         (x_display_and_set_cursor): Fill it.
10300         (x_phys_cursor_in_rect_p): Use it.
10301         (x_draw_hollow_cursor): Ditto.
10302         (x_draw_bar_cursor): Ditto.
10303         (x_erase_phys_cursor): Ditto.
10305         * xdisp.c (skip_in_display_line_to): Use SET_INFO_FROM_CURSOR.
10307         * xterm.c (XTget_display_info): Handle 3D facess.
10308         (draw_glyphs): Ditto.
10310         * xdisp.c (Fdump_redisplay_state): Change interactive spec to "p".
10312         * xfaces.c (Fset_face_attribute_internal): New face attribute
10313         shadow-thickness.
10314         (copy_face): Handle shadow_thickness.
10315         (face_eql): Ditto.
10316         (merge_faces): Ditto.
10317         (compute_base_face): Ditto.
10319         * dispextern.h (struct display_cursor): New member start_of_3d_run_p.
10320         (struct display_info): Ditto.
10321         (SET_INFO_FROM_CURSOR): Transfer it to display_info.
10322         * xdisp.c (compute_cursor_face): Set it.
10323         (advance_display_cursor): Clear it.
10325         * xdisp.c (init_string_cursor): Initialize face_id to -1.
10326         (init_string_cursor): Init face_id to zero.
10328         * dispextern.h (struct face): New member shadow_thickness.
10330         * xdisp.c (compute_cursor_face): Set limit for text property 
10331         search to 100.
10333         * dispnew.c (update_window_line): Try to resynch with current line
10334         to prevent mode line flickering.
10336 1997-10-26  Gerd Moellmann  <gerd@acm.org>
10338         * dispnew.c (set_window_cursor_after_update): React again 
10339         on cursor_in_echo_area >= 0.
10341         * xdisp.c (echo_area_display): Clear desired matrix before
10342         displaying into it.
10343         (display_menu_bar): Clear glyph row instead of hoping it is not
10344         enabled.  This is safer.
10346         * dispnew.c (check_current_matrix_invariants): Check only
10347         visible rows.
10349         * xdisp.c (try_window_id): Handle window end setting in case of
10350         display to end of window, but only non-text lines displayed.
10352         * dispnew.c (check_current_matrix_invariants): Check nrows for zero.
10353         (check_current_matrix_invariants): Check used counts.
10355         * Revisiob v114.
10357         * dispnew.c (scrolling): Use hash codes from rows.
10359         * xdisp.c (Fdump_redisplay_state): Dump current matrix.
10361         * dispnew.c (scrolling_window): Invalidate conflicting runs.
10363 1997-10-25  Gerd Moellmann  <gerd@acm.org>
10365         * dispextern.h (struct glyph_matrix): Flag no_scrolling_p.
10366         * dispnew.c (update_window): Use it.
10367         (clear_glyph_matrix): Clear it.
10368         * xdisp.c (try_window_id): Set it.
10370         * dispextern.h (struct glyph_row): New flag ends_at_zv_p.
10372         * xdisp.c (redisplay_internal): Increment glyph positions differently.
10374         * dispextern.h: More comments etc.
10376 1997-10-24  Gerd Moellmann  <gerd@acm.org>
10378         * dispnew.c (set_window_cursor_after_update): Set cursor
10379         for cursor_in_echo_area == 0 to (0, 0).
10381         * dispextern.h (struct glyph_row): New flags continuation_line_p
10382         and displays_text_p.
10383         (MATRIX_ROW_DISPLAYS_TEXT_P): Use displays_text_p.
10384         * xdisp.c (display_line): Set them.
10385         (try_window_id): Move to start of continuation line to find out
10386         continuation_line_width.
10387         (first_unchanged_current_row): Don't retract row if continued,
10388         truncated etc.
10390         * xterm.c: Map X coordinates.
10392 1997-10-23  Gerd Moellmann  <gerd@acm.org>
10394         * dispnew.c (buffer_posn_from_coords): Translate X for right to
10395         left text.
10397         * xdisp.c (display_line): Set right_to_left_p after clearing the row.
10399         * xterm.c (XTclear_end_of_line): Respect right_to_left_p.
10401         * xdisp.c (try_window_id): Clear desired matrix if not successul.
10403         * xdisp.c (try_window_id): Call update_window_begin_hook/end_hook.
10405         * dispnew.c (update_window_begin_hook, update_winodw_end_hook):
10406         Set this to functions to be called before/after window updates.
10407         (direct_output_for_insert): Call them.
10408         (update_window): Ditto.
10409         (update_frame): Call update_begin/ update_end for windows.
10411         * xterm.c (XTupdate_window_begin): Called before window updates.
10412         (XTupdate_end): Called after window updates.
10413         (x_initialize): Set hooks to above.
10415         * xdisp.c (init_display_info): Initialize c and len of
10416         display_info.
10418         * xterm.c (x_get_char_font_and_encoding): Bug fix.  Don't load
10419         fonts more than once.
10421 1997-10-22  Gerd Moellmann  <gerd@acm.org>
10423         * xdisp.c (display_line): Handle most common case of current_x <
10424         last_visible_x separately.
10426         * dispextern.h (display_element_type): DISP_ELLIPSIS removed.
10428         * dispnew.c (update_window_line): Compare pixel widths of glyphs
10429         so that face extending space doesn't compare equal to normal space
10430         with same face.
10432         * xdisp.c (display_line): Make sure we have a position for
10433         a line end in an otherwise blank line if face is extended.
10435         * dispnew.c (direct_output_for_insert): Increment row end position.
10437         * window.c (Fpos_visible_in_window_p): Use old meaning of 
10438         window_end_pos.
10440         * xdisp.c (init_display_cursor_from_glyph_pos): New.
10442         * dispextern.h (MATRIX_ROW_FIRST_POS): Use row start.
10444         * dispnew.c (increment_glyph_row_buffer_positions): Adjust
10445         start and end positions in rows.
10446         (increment_glyph_row_buffer_positions): Stop adjusting at
10447         glyphs with positions <= 0.
10449         * dispextern.h (struct glyph_pos): Structure desribing a text
10450         position including position in overlay. 
10451         (struct glyph_row): Use it for start and end positions.
10452         (struct display_cursor): Use it.
10453         * xdisp.c: Use it.
10454         (display_line): Set row start and end positions.
10456         * dispnew.c (copy_row_except_pointers): Use bcopy and struct
10457         assignment.
10459 1997-10-21  Gerd Moellmann  <gerd@acm.org>
10461         * dispnew.c (update_window): Add scrolling_window again.  It's
10462         necessary for scroll_step != 0.
10464         * xdisp.c (redisplay_window): Use vmotion for scroll_step
10465         scrolling.
10467         * xdisp.c (last_unchanged_current_row): Use window_end_vpos.
10469         * xterm.c (XTupdate_end): Flush only for messages.
10471         * xdisp.c (try_window_id): Assert last_unchanged_row >=
10472         first_unchanged_row.
10474         * xterm.c (XTupdate_end): Flush if miniwindow.
10476         * dispnew.c (matrix_row_last_pos): New function.
10477         * dispextern.h (MATRIX_ROW_LAST_POS): Call it.
10478         Large comment moved to xdisp.c. 
10480         * xdisp.c (redisplay_window): Bug fix: PT set to value > Z.
10481         (skip_via_matrix): Check window_end_valid instead of
10482         display_completed.
10484         * dispnew.c (scroll_glyph_matrix_range): Bug fix.
10485         (update_window): scrolling_window commented out.  It has negative
10486         effect most of the time.
10488         * xdisp.c (try_window_id): Correct parameters to
10489         scroll_glyph_matrix_range.
10491         * xterm.c (XTupdate_end): XFlush commented out.  
10493         * window.h: Comments for window_end_pos/vpos.
10495         * xdisp.c (skip_to): Assert current_buffer is the buffer
10496         of the window in which we are skipping.
10498         * dispnew.c (update_window_line): Optimized clear_end_of_line.
10500         * xterm.c (draw_glyphs): Bug fix.  Return window relative X
10501         reached.
10503 1997-10-20  Gerd Moellmann  <gerd@acm.org>
10505         * dispextern.h (MATRIX_ROW_LAST_POS): Go back one glyph if this is
10506         a face extending glyph.
10508         * xdisp.c (try_window_id): Check if point will appear.  
10509         (set_cursor_from_row): Set cursor position from a glyph row.
10511         * dispnew.c (update_window_line): Write entire line if hash
10512         codes of lines differ.
10514         * dispextern.h (MATRIX_ROW_EXTENDS_FACE_P): Value is non-zero
10515         if glyph row has an infinite width glyph at its end.
10517         * xdisp.c (last_unchanged_current_row): Respect partially visible
10518         lines when looking for the last row displaying text.
10519         (try_window_id): Handle partially visible lines better.
10521 1997-10-19  Gerd Moellmann  <gerd@acm.org>
10523         * dispnew.c (update_window): Remove unused variable.
10524         (update_window_line): Simplified.
10526         * xterm.c (x_get_char_font_and_encoding): Handle most common
10527         case at the beginning.
10529         * xdisp.c (advance_display_cursor): Dispatch on method and
10530         order if statements by expected call frequency.  Fixed unclosed
10531         comment.
10533         * xdisp.c (try_window_id): New implementation.
10535         * dispnew.c (increment_glyph_row_buffer_positions): Capture
10536         rows displaying a line end, only.
10538 1997-10-18  Gerd Moellmann  <gerd@acm.org>
10540         * window.c (Fpos_visible_in_window_p): Remove use of window_end_vpos.
10542 1997-10-14  Gerd Moellmann  <gerd@acm.org>
10544         * xdisp.c (display_line): Mark empty lines not corresponding to
10545         text with position -1.
10547         * xterm.c (x_erase_phys_cursor): Don't bother to erase cursor if
10548         not within window matrix bounds.
10550         * dispextern.h (struct display_cursor): New member REGION_SHOWING_P.
10551         (struct display_info): NGLYPHS_TO_IGNORE removed.
10552         * xdisp.c: References to NGLYPHS_TO_IGNORE removed.
10553         * term.c: Ditto.
10554         * xterm.c: Ditto.
10556         * xdisp.c (init_display_cursor): Set it.
10557         (display_line): Use it to set W->REGION_SHOWING.
10559         * xdisp.c (skip_via_matrix): Check for overlay arrow.
10561         * region-cache.h: functino prototypes with PROTO.
10563         * dispnew.c (buffer_posn_from_coords): Use -1 as skip position.
10565         * xdisp.c (skip_via_matrix): Check for rows that don't contain
10566         a position.
10568         * xterm.c (XTmouse_position): Calculate LAST_MOUSE_GLYPH 
10569         rectangle based on minimum character bounds.
10571         * keyboard.c (make_lispy_event): Mouse clicks; don't do frame
10572         glyph position calculations.
10573         (make_lispy_movement): Use buffer_posn_from_coords and window
10574         relative coordinates.
10576         * xterm.c (construct_mouse_click): Remove #if 0 case.
10578         * dispextern.h (MATRIX_ROW_BOTTOM_Y): Return bottom pixel y of
10579         given row.
10581         * xdisp.c (skip_via_matrix): Skip using current matrix if up to 
10582         date. 
10583         (skip_to): Use it.
10584         (redisplay_window): Remove code skipping using current matrix.
10586 1997-10-13  Gerd Moellmann  <gerd@acm.org>
10588         * xdisp.c (redisplay_window): Use available current matrix to
10589         skip faster when only point is moved withing the window.
10591         * intervals.c: Include stdio.h.  
10592         (find_interval): Trace to stderr to catch some nasty error
10593         that did not yet occur again with tracing.
10594         (set_point): Ditto.
10596         * dispnew.c (shift_glyph_matrix): Experimental code for handling
10597         cursor positioning on partially visible lines.
10598         (set_window_cursor_after_update): Ditto.
10600         * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Bug fix.
10602         * window.h (struct window): start_y removed.
10604         * window.c (make_window): start_y removed.
10605         (replace_window): Ditto.
10607         * xdisp.c (last_max_ascent, last_max_descent):  Ascent and 
10608         descent values of the last line processed by skip_to.
10609         (redisplay_window): Use them.
10610         (skip_to): Set them.
10612         * dispextern.h (struct display_cursor): New member METHOD.
10614         * xdisp.c: Use function member METHOD.
10616         * xdisp.c (set_next_stop_pos): Determine next position at which to
10617         check for face properties, invisible text properties, and overlays.
10618         (compute_cursor_face): Use it.
10619         (get_overlays_for_cursor): Ditto.
10620         (reseat_cursor): Ditto.
10621         (next_display_element): Ditto.
10623 Sun Aug 24 08:50:52 1997  Gerd Moellmann  <gerd@acm.org>
10625         * termhooks.h: Some hooks with prototypes.
10627         * term.c: Some hooks with function prototypes.
10628         
10629         * xdisp.c (reseat_cursor):  Additional argument force_p.  Avoid
10630         computing face if possible.
10632         * xdisp.c (next_display_element):  Use face from glyph from display
10633         table only if != 0.
10635         * emacs.c: FreeBSD headers for profiling removed.
10637         * dispnew.c (direct_output_for_insert): Don't use PT-1 for 
10638         display cursor, use DEC_POS instread. 
10640         * xfaces.c (load_font): Use x_load_font to load fonts so that
10641         all fonts are in the font table. 
10642         (unload_font): Don't XFreeFont.
10644         * dispnew.c (row_equal_p): Compare ascent, descent and visible
10645         row height.
10647         * xterm.c (draw_glyphs): Use 8-bit functions if possible.
10648         (x_erase_phys_cursor): Clear only visible part of row.
10649         (x_draw_bar_cursor): Set clipping.
10650         (x_draw_hollow_cursor): Ditto.
10651         (x_display_and_set_cursor): Remove clipping.
10652         (expose_window_tree): Take trunc border into account.
10653         (x_phys_cursor_in_rect_p): Test if phys_cursor intersects a rect.
10654         (expose_window): Use it.
10656         * xdisp.c (display_string): Catch case that we are called with
10657         current_x already beyond max_x.
10658         (global): Fix usage of FRAME_WINDOW_P <-> FRAME_WINDOW_REDISPLAY_P.
10659         (init_display_info): Subtract vertical border glyph from
10660         last_visible_x.
10662         * scroll.c (scrolling_window_1): Removed.
10664         * dispnew.c (adjust_frame_glyphs): Split into two functions,
10665         based on redisplay method used.
10666         (adjust_frame_glyphs_for_frame_redisplay): Part for frame
10667         based redisplay.
10668         (adjust_frame_glyphs_for_window_redisplay): Part for purely
10669         window based redisplay.
10671         * frame.h (FRAME_WINDOW_REDISPLAY_P): Changed to not depend
10672         on data structures.
10674         * dispnew.c (adjust_glyph_matrix): Additional parameter W.
10675         Handle own storage for purely window based redisplay.
10676         (allocate_matrices_for_frame_redisplay): Formerly part of
10677         allocate_matrices.  
10678         (allocate_matrices_for_window_redisplay): Ditto.
10680         * dispextern.h (struct glyph_matrix): window_top_y,
10681         window_height.
10683         * dispnew.c (allocate_matrices_for_window_redisplay): Detect
10684         and optimize some common cases of window changes.
10686         * emacs.c (main): Remove own profiling code because 0.95 now
10687         has it in.
10689 Fri Aug 22 18:46:43 1997  Gerd Moellmann  <gerd@acm.org>
10691         * xterm.c (XTupdate_end): Draw horizontal border at right
10692         position.
10693         (expose_window): Draw vertical border.
10694         (XTclear_end_of_line): Accept width <= 0 and height <= 0 but
10695         don't do anything.
10697         * xdisp.c (redisplay_internal): Set update_mode_line if paused
10698         for non full width windows only if not window redisplay.
10700         * dispnew.c (update_window_tree): Or paused_p return of called
10701         functions.
10703         * xterm.c (x_display_and_set_cursor): Return if hpos/vpos outside
10704         of window.
10706         * window.c (Fset_window_configuration): adjust_glyphs being
10707         called twice.
10708         (Fset_window_configuration): Set frame garbaged if not all
10709         leaf windows reused.
10711 1997-08-21  Gerd Moellmann  <gerd@acm.org>
10713         * dispnew.c (clear_glyph_matrix): Additional argument specifiying
10714         that rows should really be cleared.  Used for current matrices.
10716         * dispnew.c (scrolling_window):  Bug fix.
10717         (line_dance_hook):  Formerly line_dance_fn, take only one 
10718         parameter.
10720         * dispextern.h (struct run): Remove current_vpos.
10722         * xterm.c (do_line_dance): Only one parameter.
10724         * xdisp.c (display_line): Set continued_p.
10726         * dispextern.h (struct glyph_row): New flag continued_p.
10727         Fix truncated_on_left_p and truncated_on_right_p to be bits.
10728         (struct glyph_row): 
10730 Thu Aug 21 14:37:34 1997  Gerd Moellmann  <gerd@acm.org>
10732         * xdisp.c (skip_vertically_backward): Avoid negative vpos values
10733         when calling skip_to for continued lines.
10735         * dispnew.c (change_frame_size_1): Set frame garbaged.
10737         * xterm.c (expose_window): Check enabled_p of rows.
10739         * xdisp.c (redisplay_internal): Compare line heights before and
10740         now for redisplay optimization 2 (hit).
10741         (display_line): Set this_line_pixel_height.
10743         * xterm.c (x_draw_row_borders): Use FRAME_MODE_LINE_HEIGHT height
10744         value.
10745         (x_clip_to_row): Use MATRIX_ROW_VISIBLE_HEIGHT. Simplified.
10746         (do_line_dance): Simplified and pixel corrected.
10748         * dispnew.c (scrolling_window): Simplified.
10750         * xterm.c (x_draw_3d_border): Inset rectangle by line width.
10752         * dispnew.c (update_window): Add FRAME_MODE_LINE_BORDER_WIDTH
10753         to mode line row->x.
10755 Wed Aug 20 11:23:28 1997  Gerd Moellmann  <gerd@acm.org>
10757         * xterm.c (x_get_char_font_and_encoding): Don't let fontset
10758         override font of face.
10759         (draw_glyphs): Correct return value.
10760         (XTclear_end_of_line): Compare differently with output cursor
10761         position.
10762         (x_draw_hollow_cursor): 2 parameters, window and row.
10764         * dispnew.c (update_window_line): If rows have different height
10765         or y, write entire line.
10767         * xdisp.c (compute_line_metrics): Reset max_ascent and max_descent
10768         of info struct.
10770         * xfaces.c (Fset_face_attribute_internal): Don't call 
10771         frame_update_line_height.
10772         (merge_faces): Don't use default font if new font has different
10773         size.
10775 Tue Aug 19 14:38:05 1997  Gerd Moellmann  <gerd@acm.org>
10777         * xterm.c (x_display_and_set_cursor): Use FONT_WIDTH if width
10778         unknown.  Some fonts have min_width zero.
10779         (draw_glyphs): Don't draw underlines to the end of the display
10780         line if face is merely extended to that point.
10781         (draw_glyphs): Don't assume background is filled if
10782         just_foreground_p but extending to end of line.
10784         * xterm.c (XTclear_end_of_line): Clip only to display_height - 1
10785         for partially visible last lines.
10786         (x_clip_to_row): Ditto.
10787         (x_clip_to_row): Clip to display_height-1 if y + line_height >
10788         display_height since line_height is really a line distance.
10789         (x_display_and_set_cursor): If cursor on padding glyph, use
10790         min_bounds pixel width.
10792 Mon Aug 18 09:39:18 1997  Gerd Moellmann  <gerd@acm.org>
10794         * xterm.c (x_clip_to_row):  Height value was 1 too large.
10795         (XTclear_end_of_line):  Clip to display area.
10797         * xfns.c (x_figure_window_sizes):  Add trunc border width
10798         to frame pixel width.
10800         * xdisp.c (next_display_element): Don't display overlay strings
10801         within invisible text.
10802         (skip_vertically_backward):  Skip display lines. 
10804 Sat Aug 16 13:13:32 1997  Gerd Moellmann  <gerd@acm.org>
10806         * xdisp.c (x_consider_frame_titie): Don't pad with blanks.
10808         * xdisp.c (next_display_element):  Next invisible
10809         text check position computed differently.
10811         * dispextern.h (struct display_cursor): last_invisible_text_pos
10812         and display_ellipsis_for_invisible_p removed.
10814         * xdisp.c (next_display_element):  Set last_invisible_text_pos
10815         to the last position at which invisible text was found.  Don't
10816         decrement cursor.pos for newlines and cr with ellipsis.  Set
10817         dpvec for `...' due to invisible text directly.  
10818         (redisplay_internal):  Don't assert that cursor is at PT after
10819         skip_to.  It may be in invisible text.
10821         * keyboard.c (make_lispy_event): For mouse clicks, use 
10822         x_y_to_hpos_vpos.
10824         * xdisp.c (next_display_element):  Call get_overlays_for_cursor when 
10825         next_overlay_pos is reached.  Use limit cursor.pos + 100 when
10826         checking for invisible text.
10828         * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed.
10830         * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c
10832         * xfns.c (x_contour_region):  Use pixel coordinates from window
10833         cursor instead of WINDOW_TO_FRAME_H/VPOS.
10835         * dispextern.h (FRAME_TO_WINDOW_HPOS, FRAME_TO_WINDOW_VPOS):
10836         Removed.
10838         * dispnew.c (frame_to_window_hpos, frame_to_window_vpos): Removed.
10840         * xterm.c (x_y_to_hpos_vpos):  Get hpos/vpos from window relative
10841         pixel coordinates.
10842         (note_mouse_highlight): Use it.
10844         * xdisp.c (echo_area_display):  Ignore calls for terminal frames
10845         under a window system.
10847         * dispnew.c (adjust_frame_glyphs): Call redraw_frame if 
10848         necessary.
10849         (update_window_line): Add width of face padding glyph to 
10850         displayed widths of rows.
10852         * xterm.c (x_display_and_set_cursor):  Set clipping after
10853         erasing cursor.
10854         
10855         * window.c (Fset_window_configuration): Free only those 
10856         window matrices not reused.
10857         (get_leaf_windows): Build vector of leaf windows.
10858         Corrupted archive restored from v77.
10860         * xdisp.c (display_string): Stop at >= last_visible_x if truncating
10861         like display_line does.
10863         * xdisp.c (display_mode_line): Don't hscroll mode line.
10865         * xterm.c (draw_glyphs): Wrong run_width computed for horiz. split
10866         windows.
10867         (x_scroll_bar_create): #3039 Clear area below scroll bar to remove
10868         garbage between mode lines when splitting windows horiz.
10870         * dispnew.c (direct_output_for_insert): Bug fix.
10872         * dispextern.h (struct display_cursor): New member string_length.
10874         * xdisp.c (next_display_element): Return padding spaces.
10875         (init_string_cursor): Take precision and field_width
10876         (display_string): Use string cursor, skip over invisible text.
10878 Thu Aug 14 10:41:41 1997  Gerd Moellmann  <gerd@acm.org>
10880         * xterm.c (x_clip_to_row): Clip to partially visible lines.
10881         (x_display_and_set_cursor): Call it.
10882         (draw_glyphs): Call it
10883         (draw_bitmap): Call it.
10885         * dispnew.c (adjust_frame_glyphs): Optimize frame garbaging. 
10886         (allocate_leaf_matrix): Return flags.
10887         (row_equal_p): Compare enabled_p.
10889         * xterm.c (x_erase_phys_cursor):  Set phys_cursor_on_p to 0
10890         for type == -1.
10892         * xterm.c (x_display_and_set_cursor): Bar cursor 1 pixel taller.
10893         (draw_glyphs):  Clip height one pixel taller. 
10895         * dispnew.c (direct_output_for_insert): Give up for hscrolled 
10896         mini window.
10898         * xdisp.c (display_line): Don't scroll mini prompt.
10900         * xdisp.c (echo_area_display): Call update_single_window if 
10901         possible. 
10903         * dispnew.c (update_window_line):  Call scrolling_window.
10904         (scrolling_window): Work on enabled desired lines only.
10905         (update_single_window): Update a single window like update_frame
10906         does for all windows.
10907         (update_window, update_window_tree): Additional argument 
10908         no_scrolling_p.
10909         (update_frame): Pass no_scrolling_p to update_window_tree.
10910         (update_window): Don't call scrolling_window if no_scrolling_p.
10912         * xterm.c (x_erase_phys_cursor): Do nothing if type == -1.
10913         Erase under hollow cursor. 
10914         (x_display_and_set_cursor): Do nothing if cursor glyph row 
10915         not enabled.  Draw bar cursor 1 pixel smaller.
10917         * dispnew.c (adjust_frame_glyphs): Don't set frame garbaged
10918         since update will follow soon.
10920         * xdisp.c (echo_area_display): Unitialized variable.
10922         * xterm.c (draw_bitmap): Previously draw_truncation; draw
10923         overlay arrow bitmap.
10925         * xdisp.c (display_line): For truncated lines, consider everything
10926         up to the final \n as part of the line for cursor positioning. 
10928         * xterm.c (draw_truncation): Take FRAME_X_TRUNC_WIDTH into account.
10929         (x_after_update_window_line): Clear trunc marks.
10931         * xterm.h (FRAME_X_TRUNC_WIDTH).
10933         * frame.h (FRAME_TRUNC_WIDTH):  Width of area at the left margin
10934         of a window reserved for truncation mark.
10936         * dispextern.h: Take FRAME_TRUNC_WIDTH into account. 
10938         * dispnew.c (update_window_line): Call after_update_windwo_line-
10939         hook.  
10941         * xdisp.c (display_line): Set overlay_arrow_p in row.
10943         * dispextern.h (struct glyph_row): New flag overlay_arrow_p.
10945         * xterm.c (x_after_update_window_line): Draw truncation marks.
10947         * xdisp.c (display_line): Insert truncation for lines with
10948         current_x > 0.
10950         * xterm.c (x_draw_row_borders): Convert y to frame coords.
10951         Correct y by 1.
10952         (x_display_cursor): Use default font width if width not
10953         known. 
10955         * xdisp.c (echo_area_display): Set row->y.
10957         * dispnew.c (set_window_cursor_after_update): Don't assume
10958         all rows are enabled.
10960         * xdisp.c (skip_in_display_line_to): Test cursor.position instead
10961         of cursor.pos.
10962         (skip_in_display_line_to): Check cursor.position after call to
10963         next_display_element.
10965         * dispextern.h (CURSOR_AT_P): Test if cursor has reached 
10966         buffer position.
10968         * xdisp.c (display_line): Set row->y here.
10969         (skip_in_display_line_to): Test for to_pos after all glyphs
10970         have been added to hpos so that hpos is at the end of all
10971         glyphs for to_pos.
10972         (start_display): Remove assertion.
10974         * dispnew.c (direct_output_forward_char): Bug fix, = instead of
10975         ==.
10976         (update_window): Don't set row->y here.
10978         * xdisp.c (next_display_element): Don't translate control chars
10979         from display table entries.
10981         * dispnew.c (direct_output_for_insert): Set cursor before 
10982         update end to prevent cursor flickering.  Revert changes to
10983         setting cursor.endpos.
10985 Wed Aug 13 10:46:12 1997  Gerd Moellmann  <gerd@acm.org>
10987         * dispnew.c (direct_output_for_insert):  Don't set cursor.endpos
10988         to PT because this prevents multi-byte characters from being
10989         recognized.
10991         * xdisp.c (skip_to, display_line):  Advance cursor at end of 
10992         truncated line. 
10994         * xterm.c (x_draw_3d_borders): Use CapRound. Struct rect
10995         replaced by XRectangle.
10997         * dispnew.c (scrolling_window): New method.
10999         * xterm.c (do_line_dance): New implementation, new method.
11000          
11001         * xdisp.c (draw_glyphs):  Draw truncation bitmaps. Clip to
11002         visible part of line.
11004         * dispnew.c (update_window_line): Fill inverse video lines
11005         with infinite width space.
11006         (update_window): Handle completely empty matrices.
11007         (set_window_cursor_after_update): Bug fix.
11009         * xterm.c (draw_glyphs): Stop drawing at right window end. 
11011         * dispnew.c (update_window_line): Don't ignore spaces, don't
11012         fill with spaces.
11014         * xdisp.c (compute_line_metrics): Stop adding glyph widths with
11015         the first glyph having width 0.
11017         * xterm.c (draw_glyphs): Let a glyph pixel with of 0 denote
11018         a glyph that extends to the end of the line. 
11020         * xdisp.c (display_line): Insert one padding glyph
11022         * xdisp.c (skip_in_display_line_to): Don't subtract shift left
11023         amount from info.current_x.
11024         (display_line): Ditto.
11026         * dispnew.c (direct_output_for_insert): Correct use of cursor.x.
11027         (change_frame_size_1): Correct cursor.x if frame gets too small.
11028         (update_window_line): Start at row->x.
11030         * xdisp.c (redisplay_internal): Correct cursor.x (everwhere
11031         in xdisp.c).
11033         * xterm.c (set_output_cursor): Use window relative X/Y.
11034         (global): Use window relative output cursor x/y.
11035         (draw_glyphs): Remove y param. Pass window relative x/y.
11037         * dispnew.c (update_window): Start rows at start_y.
11038         (update_window): Don't try scrolling because it wouldn't work
11039         with variable height lines, anyway.
11041         * dispextern.h (struct glyph_row): Remove shift_left_by,
11042         add x.
11044         * window.h: (struct window): New member start_y.
11046         * window.c (replace_window): Initialize start_y.
11047         (make_window): Ditto.
11049 Tue Aug 12 14:53:04 1997  Gerd Moellmann  <gerd@acm.org>
11051         * xterm.c (draw_glyphs): Clip rows that would paint over
11052         the mode line. 
11054         * dispnew.c (update_window): Take mode line border into 
11055         account. 
11057         * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Number of pixels
11058         of border around mode line. 
11060         * xterm.c (x_draw_row_borders): Bug fix.
11061         (x_erase_phys_cursor): Set pyhs_cursor.x/y before calling
11062         drawing functions.
11064         * xterm.c (x_draw_row_border): Experimental; draw 3d borders
11065         around modeline instead of inverting it. 
11067         * xterm.c (glyph_to_pixel_coords): Use current matrix. 
11069         * dispnew.c (buffer_posn_from_coords): Use SKIP_TO.  Now takes
11070         window relative pixel coordinates as arguments.
11072         * keyboard.c (make_lispy_event): Use BUFFER_POSN_FROM_COORDS
11073         with window relative pixel coordinates.  Use GLYPH_TO_PIXEL_-
11074         COORDS mit new arguments.
11076 Mon Aug 11 12:32:34 1997  Gerd Moellmann  <gerd@acm.org>
11078         * xdisp.c (start_display): Use SKIP_TO instead of SKIP_IN-
11079         DISPLAY_LINE.  
11081         * keyboard.c (make_lispy_event): WINDOW_FROM_COORDINATES with
11082         pixel coords.
11083         (make_lispy_movement): Same.
11085         * xterm.c (note_mouse_highlight): Use WINDOW_FROM_COORDINATES
11086         with new parameter meaning.
11088         * window.c (Fcoordinates_in_window_p): Convert Lisp params
11089         from canon units to pixels.
11090         (coordinates_in_window): Pixel based.
11091         (Fcoordinates_in_window_p): Convert result pixel values back
11092         to canonical units.
11094         * window.h: phys_cursor_ascent + descent instead of height.
11096         * xterm.c (XTget_char_info): Use per char metrics for multi-byte
11097         chars with charset width 1.
11099         * dispnew.c (direct_output_for_insert): Set updated_row.
11101 Sat Aug  9 12:11:44 1997  Gerd Moellmann  <gerd@acm.org>
11103         * dispextern.h (struct glyph): Padding flag removed.
11105 Tue Aug  5 09:59:08 1997  Gerd Moellmann  <gerd@acm.org>
11107         * sysdep.c (reset_sys_modes): cursor_to with 4 params.
11109         * keyboard.c (interrupt_signal): Cursor_to with 4 params.
11111         * dispnew.c (update_window_line): Use pixels.
11113         * xdisp.c (compute_line_metrics): Correct pixel_width by
11114         shift_left_by.
11116         * dispextern.h (struct glyph_row): FIRST_SHIFTED_LEFT_GLYPH
11117         removed.  Remove references to it everywhere.  Reverse_p in 
11118         glyph_row -> right_to_left_p.  Change references to it.
11120 Mon Aug  4 18:09:27 1997  Gerd Moellmann  <gerd@acm.org>
11122         * dispnew.c (direct_output_for_insert): Use INSERT_GLYPHS.
11124         * xterm.c (XTinsert_glyphs): Implement it.
11126         * term.c (insert_glyphs): UPDATING_FRAME may be NULL in case
11127         of a call from DIRECT_OUTPUT_FOR_INSERT.
11129         * window.h (struct cursor_pos): Keeps both matrix positions
11130         and pixel positions.
11131         (struct window): Use it.
11133         * dispnew.c (direct_output_for_insert): New version.
11135         * xdisp.c (redisplay_internal): Don't do anything if it has
11136         already be done directly.
11138         * keyboard.c (command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
11139         for any character.
11141 Thu Jul 31 15:39:10 1997  Gerd Moellmann  <gerd@acm.org>
11143         * xdisp.c (echo_area_display): Use new DISPLAY_STRING.
11145 Wed Jul 30 12:18:03 1997  Gerd Moellmann  <gerd@acm.org>
11147         * dispextern.h (struct glyph_row): MAX_ASCENT, MAX_DESCENT.
11148         (struct glyph): ASCENT, DESCENT.
11149         (MATRIX_ROW_PIXEL_HEIGHT): Pixel height of row.
11150         (GLYPH_PIXEL_HEIGHT): Pixel height of glyph.
11152         * xterm.c (XTget_display_info): Correct tab computation.
11154         * term.c (get_display_info): Correct tab computation.
11156         * dispextern.h (struct display_cursor): WHAT_FOUND, SOURCE_OBJECT.
11157         Renamed from CHAR_CURSOR.
11159 Tue Jul 29 12:52:40 1997  Gerd Moellmann  <gerd@acm.org>
11161         * xdisp.c (display_text_line): Mostly pixel oriented.
11163         * dispextern.h (struct glyph): BOX_WIDTH -> PIXEL_WIDTH.
11165         * term.c (append_intermediate_glyph): Generate padding glyphs.
11167         * xdisp.c (display_text_line): More into final direction.
11169         * xterm.c (XTget_char_info): Use WHAT field of CHAR_INFO.
11170         (XTget_char_info): Use tabs as multiples of spaces.
11172         * term.c (get_char_info): Use WHAT field of CHAR_INFO.
11173         Use tabs as multiples of spaces.
11175         * dispextern.h (struct char_info ): WHAT field.
11177         * term.c (encode_terminal_code): Don't use GLYPH_CHAR, use
11178         FAST_GLYPH_CHAR instead because GLYPH_CHAR won't remove faces.
11180 Mon Jul 28 14:23:06 1997  Gerd Moellmann  <gerd@acm.org>
11182         * dispnew.c (init_char_info): Correct TAB_WIDTH to a reasonable
11183         value.
11184         (init_char_info): Initialize with glyph row.
11186         * term.c (get_char_info): Check WANT_ELLIPSIS_P.
11188         * xterm.c (XTget_char_info): Check WANT_ELLIPSIS_P.
11190         * dispextern.h (struct char_info ): GLYPH_ROW for intermediate
11191         glyphs.
11193         * dispnew.c (init_char_info): Init GLYPH_ROW to NULL. CHAR_CURSOR
11194         moved to xdisp.c.
11196         * xdisp.c (display_text_line): Use CHAR_CURSOR.
11198         * xterm.c (x_append_intermediate_glyph): Intermediate glyph
11199         generation.
11200         (XTget_char_info): Ditto.
11202         * term.c (get_char_info): Intermediate glyph generation.
11203         (append_intermediate_glyph): Ditto.
11205 Sun Jul 27 18:57:24 1997  Gerd Moellmann  <gerd@acm.org>
11207         * dispnew.c (compute_char_cursor_face): Compute the face for a 
11208         CHAR_CURSOR.
11209         (init_char_cursor): Initialize a CHAR_CURSOR.
11210         (get_char_and_advance): Get next character to display.
11212         * dispextern.h (struct char_cursor): Cursor for iterating over
11213         display text of CURRENT_BUFFER.
11215 Sat Jul 26 13:33:03 1997  Gerd Moellmann  <gerd@acm.org>
11217         * term.c (get_char_info): Set MAX_PIXEL_WIDTH in CHAR_INFO.
11219         * dispextern.h (struct char_info ): Use LISP_CHAR_TABLE for DP.
11220         New member MAX_PIXEL_HEIGHT.
11222         * xterm.c (x_per_char_metric): Get per character metrics.
11223         (XTget_char_info): More cases covered.
11225         * term.c (get_char_and_info): Get next character and character
11226         display information.
11227         (get_char_info): Get character display information.
11229         * dispextern.h: Character display information.
11231         * xterm.c (x_get_char_font_and_encoding): Get font and 
11232         encode character.
11233         (XTget_char_info): Get display information about a character.
11235 Wed Jul 23 16:50:18 1997  Gerd Moellmann  <gerd@acm.org>
11237         * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Height is
11238         zero if window is mini-window.
11240         * xdisp.c: Include xterm.h or w32term.h for FRAME_LINE_HEIGHT.
11241         (try_window): DISPLAY_TEXT_LINE as long as Y < DISPLAY_HEIGHT.
11243         * dispnew.c (assign_row): Assign row pixel height. 
11244         (clear_glyph_row): Clear pixel height.
11245         (update_window): Use PIXEL_HEIGHT.
11247         * xdisp.c (display_string): Set row pixel height temporarily.
11248         (display_text_line): Ditto.
11250         * dispextern.h (GLYPH_PIXEL_WIDTH): 
11251         (GLYPH_PIXEL_HEIGHT): Get glyph pixel dimension.
11253         * frame.h (FRAME_DEFAULT_PIXEL_LINE_HEIGHT): Get height of 
11254         line in default font.
11255         (FRAME_DEFAULT_GLYPH_PIXEL_WIDTH): Get width of character
11256         in default font.
11257         (FRAME_MODE_LINE_PIXEL_HEIGHT): Get height of mode line.
11259         * xterm.h (FRAME_MODE_LINE_HEIGHT): Return height of mode line
11260         in pixels.
11262         * dispnew.c (allocate_leaf_matrix): Use window pixel macros.
11264         * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH):
11265         (WINDOW_DISPLAY_PIXEL_HEIGHT): 
11266         (WINDOW_DISPLAY_MODE_LINE_HEIGHT): 
11267         (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE): 
11268         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): 
11269         (WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X): 
11270         (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): 
11271         (WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y): Macros to get various
11272         pixel values related to windows.
11274 Mon Jul 21 12:22:02 1997  Gerd Moellmann  <gerd@acm.org>
11276         * xterm.c (XTflash): Flash last line of frame.
11278         * dispextern.h (cursor_in_echo_area): Extern declaration.
11280         * xterm.c (dumpglyphs): 8-bit version to test if my Xserver
11281         freezes stem from 16-bit functions.
11283         * xterm.c (x_display_and_set_cursor): Don't display hollow
11284         cursor in mini windows.
11286         * window.c (replace_window): Initialize PHYS_CURSOR_TYPE.
11287         (make_window): Ditto.
11289         * xterm.c (x_erase_phys_cursor): Erase cursor image.
11290         (x_display_and_set_cursor): Merged version of X_DISPLAY_BOX_CURSOR
11291         and X_DISPLAY_BAR_CURSOR.
11292         (x_display_cursor): Use it.
11293         (x_update_window_cursor): Use it.
11295         * xdisp.c (display_text_line): Set cursor for window even if not
11296         selected.
11298         * xterm.c (x_display_bar_cursor): Use HPOS and VPOS instead
11299         of X and Y to denote matrix positions.
11300         (x_display_cursor): Ditto.
11302         * dispnew.c (scrolling_window): Scrolling for windows.
11304 Wed Jul 16 13:37:51 1997  Gerd Moellmann  <gerd@acm.org>
11306         * dispnew.c (build_frame_matrix): Work on windows with update
11307         flag set.
11308         (build_frame_matrix_from_window_tree): Ditto.
11309         (build_frame_matrix_from_leaf_window): Ditto.
11311         * xdisp.c (echo_area_display): Set MUST_BE_UPDATED_P instead of
11312         building frame matrix.
11313         (redisplay_internal): Set window update flags instead of 
11314         building frame matrix.
11316         * minibuf.c (read_minibuf): Set MUST_BE_UPDATED_P instead of
11317         building frame matrix.
11319         * window.c (make_window): Initialize new members.
11320         (replace_window): Ditto.
11322         * xfns.c (Fx_create_frame): Don't set PHYS_CURSOR_X to -1.
11323         I don't believe this is really necessary.
11325         * dispnew.c (build_frame_matrix_from_leaf_window): Determine
11326         border glyph once. 
11328 Tue Jul 15 13:58:33 1997  Gerd Moellmann  <gerd@acm.org>
11330         * window.c (mark_window_cursors_off): Mark all cursors in 
11331         window tree off.
11333         * xterm.c (x_display_box_cursor): Window paraemter.  Use 
11334         window matrix.
11335         (glyph_to_pixel_pos): Convert matrix pos -> pixels.
11336         (pixel_to_glyph_pos): Convert pixel pos -> matrix pos.
11337         (x_update_cursor): Work on windows.
11338         (x_display_bar_cursor): Ditto.
11339         (x_draw_single_glyph): Ditto.
11341         * xterm.h: Prototype for X_DISPLAY_CURSOR.
11343         * xterm.c (XTcursor_to): Void return type.  Test for
11344         UPDATED_WINDOW.  Call x_display_cursor with window.
11345         (x_display_cursor): Void return type.  Window instead of frame
11346         parameter.
11348         * window.h (WINDOW_RIGHTMOST_P, WINDOW_TOPMOST_P): Use functions
11349         below.
11351         * window.c (window_rightmost_p, window_topmost_p): Based on
11352         window tree.
11354         * dispnew.c (adjust_frame_message_buffer): Allocate with
11355         FRAME_MESSAGE_BUF_SIZE.
11357         * window.h: PHYS_CURSOR_.* added.
11359         * frame.h (struct frame): Cursor information removed.
11361         * frame.h (FRAME_SCROLL_BAR_WIDTH): Removed because unused.
11362         (FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
11364         * window.h (WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
11366         * window.c (window_internal_width): Scroll bars no longer
11367         part of window.
11369         * xterm.c (XTclear_end_of_line): FRAME_LEFT_SCROLL_BAR_WIDTH
11370         removed.
11372         * xfns.c (x_set_scroll_bar_width): FRAME_LEFT_SCROLL_BAR_WIDTH
11373         removed.
11375         * xdisp.c (echo_area_display): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
11376         (redisplay_internal): Ditto.
11377         (redisplay_window): Ditto.
11378         (redisplay_window): Ditto.
11379         (display_text_line): Ditto.
11380         (display_mode_line): Ditto.
11382         * minibuf.c (read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
11384         * dispnew.c (set_cursor_to): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
11385         (direct_output_for_insert): Ditto.
11386         (direct_output_forward_char): Ditto.
11387         (update_frame_1): Ditto.
11389 Mon Jul 14 12:30:03 1997  Gerd Moellmann  <gerd@acm.org>
11391         * dispnew.c (updated_window): Set by UPDATE_WINDOW to the window
11392         being updated.
11393         (update_window): Set and clear it.
11395         * dispnew.c (update_window_line, update_window, scrolling_window):
11396         First versions.
11398         * dispnew.c (build_frame_matrix_from_leaf_window): Add vertical
11399         bar for window borders.
11400         (fill_up_glyph_row_area_with_spaces): Fill an area of a row
11401         with spaces.
11402         (fill_up_glyph_row_with_spaces): Call above function.
11404         * xdisp.c (display_text_line): Don't add vertical bar for
11405         window borders.
11406         (display_string): Ditto.
11408         * window.c (make_window): Init CURSOR_VPOS/HPOS.
11409         (replace_window): Ditto.
11411         * xterm.c (XTwrite_glyphs): Use selected window cursor position.
11413         * xfns.c (Fx_contour_region): Use selected window cursor position.
11414         (Fx_uncontour_region): Ditto.
11415         (Fx_select_region): Ditto.
11417         * frame.c (make_frame): Remove CURSOR_X/Y.
11419         * xdisp.c (redisplay_internal): Use window cursor position.
11421         * dispnew.c (update_frame_1): Use cursor position of selected
11422         window.
11423         (change_frame_size_1): Ditto.
11425         * xterm.c (XTupdate_begin): Set CURS_X/Y from selected window.
11426         (XTwrite_glyphs): Use cursor position of selected window.
11428         * xfns.c (x_set_scroll_bar_width): Set cursor pos of selected
11429         window.
11431         * dispnew.c (set_cursor_to): Set window cursor position.
11432         (direct_output_for_insert): Use window cursor position.
11433         (init_display): Don't use frame cursor position.
11435         * window.h: CURSOR_VPOS/HPOS added.
11437         * frame.h (struct frame): CURSOR_X/Y removed.
11438         (FRAME_CURSOR_X): Removed.
11439         (FRAME_CURSOR_Y): Ditto.
11441         * dispnew.c (direct_output_for_insert): LAST_POINT_X removed.
11442         (direct_output_forward_char): Ditto.
11444         * xdisp.c (redisplay_internal): LAST_POINT_X and LAST_POINT_Y
11445         removed.
11447         * window.c (make_window): LAST_POINT_X and LAST_POINT_Y removed.
11449         * window.h: LAST_POINT_X and LAST_POINT_Y removed.
11451 Sun Jul 13 14:18:24 1997  Gerd Moellmann  <gerd@acm.org>
11453         * xdisp.c: Bug fixes using SET_CURSOR with HPOS 0 instead
11454         of FRAME_LEFT_SCROLL_BAR_WIDTH.
11456         * dispextern.h: Changed function names.
11458         * dispnew.c (scrolling): Don't call SCROLLING_1 if WINDOW_SIZE
11459         < 2.
11460         (clear_window_matrices): Formerly two functions for desired
11461         and current matrix.
11462         (update_frame_1): Call CLEAR_DESIRED_MATRICES.
11463         (update_frame): Return return value from UPDATE_FRAME_1.
11465 Sat Jul 12 12:58:48 1997  Gerd Moellmann  <gerd@acm.org>
11467         * xdisp.c (try_window): Set WINDOW_END_VPOS with window relative
11468         LAST_TEXT_VPOS.
11470         * frame.c (set_menu_bar_lines): Adjust matrices.
11472         * dispnew.c (set_cursor_to): Set cursor position.
11474         * minibuf.c (read_minibuf): Build frame matrix.
11476         * xdisp.c (this_line_start_hpos): Renamed to
11477         THIS_LINE_START_WINDOW_HPOS to make it clear that this is window
11478         relative.
11479         (this_line_vpos): Renamed to THIS_LINE_WINDOW_VPOS for the same
11480         reason.
11482         * dispnew.c (build_frame_matrix): Don't clear rows of the 
11483         menu bar.
11484         (clear_window_records): Clear window rows.
11485         (clear_frame_records): Clear window and frame rows.
11486         (clear_glyph_matrix): Set all rows of a matrix to empty.
11488         * xdisp.c (echo_area_display): Parameter UPDATE_FRAME_P.  Update
11489         frame if set.
11490         (message2_nolog): Pass 1 to ECHO_AREA_DISPLAY.  UPDATE_FRAME
11491         removed.
11492         (redisplay_internal): Pass 0 to ECHO_AREA_DISPLAY.
11493         (redisplay_internal): Build frame matrix before UPDATE_FRAME.
11495         * dispnew.c (assign_row): Assign one glyph row to another.
11496         (mirrored_make_current): Use it.
11497         (mirror_make_current): Use it.
11498         (update_line): Rely on MIRRORED_MAKE_CURRENT to set flags and
11499         used counters for the current glyph row.
11500         
11502 Fri Jul 11 13:16:50 1997  Gerd Moellmann  <gerd@acm.org>
11504         * lisp.h: Prototype for SCAN_BUFFER.
11506         * xdisp.c (redisplay_windows): Simplified.
11508         * dispnew.c (window_to_frame_vpos): Convert window to frame vpos
11509         with debug checks.
11510         (window_to_frame_hpos): Convert window to frame hpos with checks.
11511         (frame_to_window_vpos): Convert frame to window vpos with checks.
11512         (frame_to_window_hpos): Convert frame to window hpos with checks.
11514         * dispextern.h: PRESERVE_OTHER_COLUMNS removed.
11516         * dispnew.c: PRESERVE_OTHER_COLUMNS removed.
11518         * xdisp.c (redisplay_internal): Another instance of
11519         DISPLAY_TEXT_LINE with window relative VPOS.
11520         (redisplay_internal): Remove PRESERVE_OTHER_COLUMNS.
11522         * dispnew.c (init_desired_glyphs): Do it on window matrices,
11523         only.
11525         * xdisp.c (try_window_id): Use CANCEL_WINDOW_LINE.
11526         (redisplay_internal): Ditto.
11528         * dispnew.c (cancel_window_line): Use window matrix.  Changed
11529         name to CANCEL_WINDOW_LINE.
11531         * xdisp.c (try_window_id): Use DISPLAY_TEXT_LINE with window
11532         relative VPOS.
11534         * dispextern.h (WINDOW_TO_FRAME_VPOS): Convert window vpos 
11535         to frame vpos. 
11536         (WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
11537         (FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
11538         (FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
11540         * xdisp.c (try_window_id): Use ADJUST_WINDOW_CHARSTARTS with
11541         window relative VPOS.
11542         (redisplay_internal): Use ADJUST_WINDOW_CHARSTARTS with window
11543         relative VPOS.
11545         * dispnew.c (adjust_window_charstarts): Use INCREMENT_GLYPH_-
11546         MATRIX_BUFFER_POSITIONS.
11548         * xdisp.c (try_window_id): Use SCROLL_FULL_WIDTH_WINDOW.
11550         * dispextern.h: Prototype for SCROLL_FULL_WIDTH_WINDOW.
11552         * dispnew.c (scroll_frame_lines): Make it work on window 
11553         matrix.  Change name to scroll_full_width_window.
11555         * xdisp.c (message2_nolog): Don't fwrite NULL message If
11556         NONINTERACTIVE.
11558 Mon Jul  7 14:44:38 1997  Gerd Moellmann  <gerd@acm.org>
11560         * dispnew.c (init_desired_glyphs): Clear both frame matrix
11561         and window matrices. 
11562         (adjust_window_charstarts): Use window matrix.
11563         (cancel_my_columns): Use window matrix.
11564         (direct_output_for_insert): Use window matrix, only.
11566         * xdisp.c (display_glyphs): Extracted code from DISPLAY_STRING.
11567         (display_string): Call display_glyphs.
11568         (display_menu_bar_string): Display a string in a menu bar line.
11569         (display_menu_bar): Use DISPLAY_MENU_BAR_STRING.
11570         (display_text_line): Use window matrix.
11571         (try_window): Use window relative positions.
11573 Sun Jul  6 17:02:26 1997  Gerd Moellmann  <gerd@acm.org>
11575         * dispnew.c (adjust_frame_glyphs): Allocate window matrices from
11576         (0, 0).
11577         (allocate_leaf_matrix): Add FRAME_MENU_BAR_LINES to the height of
11578         top-most windows.
11580         * window.h (WINDOW_TOPMOST_P): Added.
11582         * xdisp.c (echo_area_display): Use PREPARE_DESIRED_ROW.
11583         (redisplay_window): Ditto.
11584         (display_text_line): Ditto.
11585         (display_menu_bar): Ditto.
11586         (display_mode_line): Ditto.
11587         (display_mode_line): Use window matrix.
11588         (display_string): Use window matrix.
11589         (display_mode_element): Ditto.
11590         (echo_area_display): Don't display if frame has no pools yet.
11591         (echo_area_display): Work with window matrix for mini window.
11592         (redisplay_window): Use window marix for mini window.
11593         (display_text_line): Assume HPOS and VPOS are window relative and
11594         use that for DISPLAY_STRING.
11596         * dispextern.h: Prototype for prepare_desired_row.
11598         * dispnew.c (prepare_desired_row): Replacement for
11599         GET_DISPLAY_LINE.
11601         * dispnew.c (adjust_window_charstarts): Always allocate window
11602         matrices.
11603         (clear_glyph_row): Only reset used counters and flags.
11605 Sat Jul  5 14:55:44 1997  Gerd Moellmann  <gerd@acm.org>
11607         * dispnew.c (scroll_frame_lines): Don't assume first scolled
11608         line is non-empty. 
11609         (realloc_glyph_pool): Don't add 1 to the pool size.
11610         (adjust_glyph_matrix): Don't add 1 to pointers to glyph areas.
11612         * dispnew.c (line_hash_code): Don't use null-glyph end marker.
11613         (line_draw_cost): Ditto.
11614         (update_line): Ditto.
11615         (update_line): Use SPACE_GLYPH.
11616         (count_blanks): Additional parameter LEN.
11618         * xdisp.c (display_text_line): Use SPACE_GLYPH.
11619         (display_text_line): Don't add null-glyph end marker.
11620         (display_string): Use SPACE_GLYPH.
11621         (display_string): Don't use null-glyph end marker.
11623         * term.c (clear_end_of_line): Use SPACE_GLYPH.
11625         * dispnew.c (clear_glyph_row): Don't use null-glyph end markers.
11626         (fill_up_glyph_row_with_spaces): Ditto.
11627         (preserve_other_columns): Add SPACE_GLYPH at then end of desired
11628         rows, instead of null-glyphs.
11629         (direct_output_for_insert): Don't add null-glyph end marker.
11631         * scroll.c (do_direct_scrolling): Change algorithm to construct
11632         vector of lines assigned.  Call MIRRORED_LINE_DANCE:
11633         (do_scrolling): Ditto.
11635         * dispnew.c (mirror_line_dance): Mirror line assignments in a
11636         frame matrix in window matrices.
11637         (mirrored_line_dance): Do line assignments during scrolling.
11638         Maybe do corresponding assignments in window matrices.
11639         (check_window_matrix_pointers): Check that window rows and frame
11640         rows agree about glyph pointers.
11641         (check_matrix_pointers): Ditto.
11642         (mirrored_make_current): Make a row of a desired matrix current;
11643         maybe mirror the operation in window matrices.
11644         (mirror_make_current): Make window desired matrix row current when
11645         frame matrix row was made current.
11647 Fri Jul  4 13:27:46 1997  Gerd Moellmann  <gerd@acm.org>
11649         * dispnew.c (check_matrix_pointer_lossage): Check against
11650         pointer lossage in matrices.
11651         (get_glyph_matrix_row): Removed.
11653         * scroll.c (do_scrolling): Simplified.
11654         (do_direct_scrolling): Simplified.
11655         (scrolling_1): Pass CURRENT_MATRIX instead of FRAME to
11656         DO_.*SCROLLING.
11657         
11659         * dispnew.c (ins_del_glyph_rows): Insert/delete rows in a matrix.
11660         (rotate_vector): Removed.
11661         (rotate_pointers): Removed.
11662         (scroll_frame_lines): Simplified.
11664 Thu Jul  3 13:54:21 1997  Gerd Moellmann  <gerd@acm.org>
11666         * dispextern.h (MATRIX_ROW_SWAP_CONTENTS): Removed.
11668         * dispnew.c (increment_glyph_matrix_buffer_positions): Does
11669         what the name says.
11670         (clear_glyph_row): Make a glyph row structure empty.
11671         (make_matrix_row_current): Make a glyph row current.
11672         (make_window_matrix_row_current): Perform analogous row swaps
11673         for window matrices.
11674         (update_line): Call make_matrix_row_current.
11676 Wed Jul  2 13:43:35 1997  Gerd Moellmann  <gerd@acm.org>
11678         * dispextern.h (SET_MATRIX_ROW_ENABLED_P): Better macro name.
11679         (SET_MATRIX_ROW_INVERSE_P): Better name and HIGHLIGHT_P ->
11680         INVERSE_P.
11681         (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P.
11682         (struct glyph_row): HIGHLIGHT_P -> INVERSE_P
11684         * all files: use above new names.
11686         * dispnew.c (scroll_frame_lines): Simplified.  Use
11687         SCROLL_GLYPH_MATRIX.
11688         (make_glyph_row_empty): Mark a glyph row empty.
11689         (increment_glyph_row_buffer_positions): Increment 
11690         buffer positions in a glyph row.
11691         (increment_glyph_matrix_buffer_positions): Increment buffer
11692         positions in a range of rows.
11693         (scroll_glyph_matrix): Scroll a glyph matrix.
11694         (swap_glyphs_in_rows): Swap glyphs between rows.
11695         (swap_glyph_pointers): Swap pointers between rows.
11696         (glyph_row_slice_p): Return 1 if one row is a slice of another.
11697         (init_display): Initialize SPACE_GLYPH.
11698         (fill_up_glyph_row_areas_with_spaces): Fill up areas with
11699         spaces. 
11701 Tue Jul  1 13:49:55 1997  Gerd Moellmann  <gerd@acm.org>
11703         * xterm.c (dumprectangle): Use vectors in glyph rows.
11705         * xdisp.c (display_text_line): Use vectors in glyph rows.
11706         (display_string): Ditto.
11708         * scroll.c (do_scrolling): Use vectors in glyph rows.
11709         (do_direct_scrolling): Ditto.
11711         * alloc.c (mark_object): Use vectors in glyph rows.
11712         Mark for all frame types.
11714         * dispnew.c (adjust_glyph_matrix): Use vectors to glyphs in
11715         glyph rows.
11716         (get_glyph_matrix_row): Ditto.
11717         (matrix_row): Ditto.
11718         (rotate_pointers): Ditto.
11719         (scroll_frame_lines): Ditto.
11720         (preserve_other_columns): Ditto.
11721         (cancel_my_columns): Ditto.
11722         (update_line): Ditto.
11723         (direct_output_for_insert): Ditto.
11725         * dispextern.h (struct glyph_row): Use a vector of pointers
11726         instead of individual members.  Use a vector of used counters.
11727         (MATRIX_ROW_SWAP_CONTENTS): Use vectors.
11728         (MATRIX_ROW_GLYPH_START): Ditto.
11729         (MATRIX_ROW_GLYPH_END): Ditto.
11730         (MATRIX_ROW_USED): Ditto.
11731         (MATRIX_ROW_SET_USED): Ditto.
11733         * dispnew.c (line_hash_code): Simplified.
11735 Mon Jun 30 20:39:38 1997  Gerd Moellmann  <gerd@acm.org>
11737         * dispnew.c: Prototype for ROTATE_VECTOR, ROTATE_POINTERS,
11738         CHANGE_FRAME_SIZE_1
11739         (preserve_other_columns): Void return.
11740         (cancel_my_columns): Void return type.
11741         (scrolling): Int return type.
11742         (do_pending_window_change): Void return type.
11743         (change_frame_size): Ditto.
11744         (bitch_at_user): Ditto.
11745         (init_display): Ditto.
11746         (syms_of_display): Ditto.
11748         * dispextern.h: add prototypes for REDRAW_FRAME,
11749         REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS,
11750         INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS,
11751         ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS,
11752         DIRECT_OUTPUT_FOR_INSERT, DIRECT_OUTPUT_FORWARD_CHAR,
11753         UPDATE_FRAME, SCROLLING, BUFFER_POSN_FROM_COORDS,
11754         DO_PENDING_WINDOW_CHANGE, CHANGE_FRAME_SIZE, BITCH_AT_USER,
11755         SIT_FOR, INIT_DISPLAY, SYMS_OF_DISPLAY,
11756         
11757         * dispnew.c (redraw_frame): FRAME_PTR -> struct frame.  Return
11758         void.
11759         (cancel_line): Return void.
11760         (clear_frame_records):  Return void.
11761         
11762         * dispextern.h (struct glyph): Remove GLYPH, add bit-fields.
11763         (SET_CHAR_GLYPH): Fill a character glyph.
11764         (SET_CHAR_GLYPH_FROM_GLYPH): Set a character glyph from a GLYPH.
11765         (GLYPH_FROM_CHAR_GLYPH): Construct a GLYPH from a character
11766         glyph. 
11767         (CHAR_GLYPH_CHAR_CODE): Return character code of a glyph.
11768         (SET_CHAR_GLYPH_CHAR_CODE): Set character code of a glyph.
11769         (CHAR_GLYPH_FACE_ID): Return face id of a glyph.
11770         (SET_CHAR_GLYPH_FACE_ID): Set face id of a glyph.
11771         (CHAR_GLYPH_PADDING_P): Return padding flag of a glyph.
11772         (SET_CHAR_GLYPH_PADDING_P): Set padding flag.
11773         (CHAR_GLYPH_REVERSE_P): Return reversed flag.
11774         (SET_CHAR_GLYPH_REVERSE_P): Set reversed flag.
11775         (MATRIX_ROW_SWAP_CONTENTS): Swap pointers between rows.
11777         * term.c (reassert_line_highlight): Check CHARS_WASTED == 0.
11779         * window.h (struct window): Add comment that no Lisp data may
11780         come below CURRENT_MATRIX.
11782         * alloc.c (mark_object): Change window mark code to stop with
11783         member CURRENT_MATRIX.
11785 Sat Jun 28 13:54:55 1997  Gerd Moellmann  <gerd@acm.org>
11787         * scroll.c (do_scrolling): Change algorithm to use pointers.
11788         (do_direct_scrolling): Ditto.
11790         * dispnew.c (get_glyph_matrix_row): Use pointers stored in rows.
11791         (new_glyph_pool): Formerly new_FRAME_GLYPH_MATRIX.
11792         (free_glyph_pool): Formerly FREE_FRAME_GLYPH_MATRIX
11793         (realloc_glyph_pool): Formerly REALLOC_FRAME_GLYPH_MATRIX.
11794         Returns 1 if pool changed.
11795         (matrix_row): Additional check for lost pointers to glyph rows.
11796         (compute_matrices): Additional parameter DIM_P set means that no
11797         allocation should take place.  Addtional parameter
11798         ANY_WINDOWS_CHANGED_P set if any windows matrix has changed.
11799         (compute_leaf_matrix): Additional parameter CHANGED_P set to 1
11800         when window matrix changes.  Additional parameter DIM_ONLY_P set
11801         to 1 to indicate that no allocation should take place.
11802         (adjust_frame_glyphs): Construct new glyph pools and glyph
11803         matrices.  Optimize frame redraws.
11804         (free_glyphs): Free pools.
11805         (check_glyph_memory): Check pools not freed.
11806         (rotate_pointers): Rotate pointers in a vector of glyph rows.
11807         (scroll_frame_lines): Change algorithm to use pointers.
11808         (update_line): Ditto.
11810         * dispextern.h (struct glyph_row): Use pointers to areas in a row.
11811         (global): All macro names changed from prefix FRAME_MATRIX to
11812         MATRIX.
11814 Fri Jun 27 14:51:15 1997  Gerd Moellmann  <gerd@acm.org>
11816         * dispextern.h (struct glyph_pool): Replacement for former
11817         FRAME_GLYPH_MATRIX.
11818         (struct glyph_matrix): No longer contains sizes of allocated
11819         areas.
11821         * xdisp.c (redisplay_internal): Don't redisplay if frame has
11822         no glyph pools.
11824         * frame.c (make_frame): Initialize pools.
11826 Thu Jun 26 00:00:55 1997  Gerd Moellmann  <gerd@acm.org>
11828         * scroll.c (do_direct_scrolling): Don't assume that the 
11829         line moving algorithm has no intermediate steps.
11830         (do_scrolling): Ditto.
11832         * Makefile.in (alloc.o): Add dependency dispextern.h.
11834         * alloc.c: Include dispextern.h for glyph definitions.
11836         * dispnew.c (get_glyph_matrix_row): Return 1 if ROW_INDEX
11837         is legal, return 0 otherwise.
11839         * window.h: Add comment that windows are marked specially.
11841         * alloc.c (mark_object): Mark windows specially.
11844 Wed Jun 25 15:22:58 1997  Gerd Moellmann  <gerd@acm.org>
11846         * dispextern.h (struct glyph): Add member OBJECT
11847         referencing a Lisp object from which a glyph was drawn.
11848         Member TEXT_POSITION renamed POSITION.
11849         * xterm.c, xdisp.c, dispnew.c: Rename TEXT_POSITION -> POSITION.
11851         * alloc.c: Include dispextern.h
11852         (mark_object): Mark objects referenced from glyphs.
11854         * frame.c (make_frame): Initialize DECODE_MODE_SPEC_BUFFER.
11856         * scroll.c (do_direct_scrolling): Remove TEMP_MATRIX.
11857         (do_scrolling): Ditto.
11859         * frame.h (struct frame): TEMP_MATRIX removed.  
11860         DECODE_MODE_SPEC_BUFFER added.
11862         * window.h: TEMP_MATRIX removed.
11864         * scroll.c: OPHYS_LINES removed.
11866         * dispnew.c: OPHYS_LINES and OPHYS_LINES_LENGTH removed.
11867         FRAME_PTR -> struct frame *.
11869         * termhooks.h: Prototypes for INSERT_GLYPHS_HOOK,
11870         WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
11872         * term.c: Prototypes for INSERT_GLYPHS_HOOK,
11873         WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
11875         * xdisp.c (redisplay_internal): Remove call to VERIFY_CHARSTARTS.
11876         (do_verify_charstarts): Removed.
11878         * frame.c (Fmake_terminal_frame): Adjust glyphs.
11879         (Fdelete_frame): Free glyphs.
11880         (make_frame): Initialize matrix fields in frame.
11882         * config.in (PROTO): Added.
11884         * emacs.c (shut_down_emacs): Check glyph memory.
11886         * window.c (Fdelete_window): Free window matrices.
11887         (Fset_window_configuration): Ditto.
11888         (Fdelete_window): Adjust glyphs.
11889         (Fsplit_window): Ditto.
11890         (change_window_height): Ditto.
11891         (Fset_window_configuration): Ditto.
11892         (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX.
11893         (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX
11895         * Makefile.in (window.o): Add dependency window.c -> dispextern.h
11897         * window.c: Include dispextern.h
11899         * scroll.c (do_scrolling): Use new glyphs.
11900         (do_direct_scrolling): Ditto.
11902         * xdisp.c: Some function prototypes.
11903         (redisplay_internal): Don't do anything if matrices not yet set.
11904         (redisplay_internal): Use new glyphs.
11905         (try_window_id): Ditto.
11906         (copy_part_of_rope): Ditto.
11907         (display_text_line): Ditto.
11908         (display_menu_bar): Ditto.
11909         (display_mode_line): Ditto.
11910         (display_string): Ditto.
11912         * xterm.c: Prototypes for some local functions.
11913         (dumpglyphs): Use new glyphs.
11914         (XTwrite_glyphs): Ditto.
11915         (dumprectangle): Ditto.
11916         (note_mouse_highlight): Ditto.
11917         (fast_find_position): Ditto.
11918         (show_mouse_face): Ditto.
11919         (x_draw_single_glyph): Ditto.
11920         (x_display_bar_cursor): Ditto.
11921         (x_display_box_cursor): Ditto.
11922         (x_new_font): Adjust glyphs when font change.
11924         * term.c (clear_end_of_line): Use new glyphs.
11925         (write_glyphs): Ditto.
11926         (insert_glyphs): Ditto.
11928         * Makefile.in (term.o): term.c depends on dispextern.h
11930         * term.c: Include dispextern.h
11932         * dispnew.c (direct_output_forward_char): Old glyph functions
11933         removed, new inserted. 
11934         (line_hash_code): Use new glyphs.
11935         (line_draw_cost): Ditto
11936         (cancel_line): Ditto
11937         (clear_frame_records): Ditto.
11938         (init_desired_glyphs): Ditto.
11939         (get_display_line): Ditto
11940         (scroll_frame_lines): Ditto.
11941         (preserve_other_columns): Ditto.
11942         (adjust_window_charstarts): Ditto.
11943         (cancel_my_columns): Ditto.
11944         (direct_output_for_insert): Ditto.
11945         (update_frame): Ditto.
11946         (quit_error_check): Made empty.
11947         (scrolling): Use new glyphs.
11948         (count_blanks): Ditto.
11949         (count_match): Ditto.
11950         (update_line): Ditto.
11951         (init_display): Adjust glyphs initially.
11952         (change_frame_size_1): Adjust glyphs.
11954         * dispextern.h: Old glyphs removed, new added.
11956         * xfaces.c (min_char_bounds): Get smallest char in loaded fonts.
11958         * xterm.h: Prototype for min_char_bounds.
11960         * window.h (struct window): Remove old glyphs, add new.
11962         * frame.h (struct frame): Remove old glyphs, add new.
11963         
11964 1999-07-20  Dave Love  <fx@gnu.org>
11966         * buffer.c (syms_of_buffer): Make
11967         default-enable-multibyte-characters a user variable.
11969 1999-07-14  Richard Stallman  <rms@gnu.org>
11971         * Version 20.4 released.
11973 1999-07-14  Richard Stallman  <rms@gnu.org>
11975         * filelock.c (lock_file): Do nothing if purifying.
11977 1999-07-10  Richard Stallman  <rms@gnu.org>
11979         * xterm.c (x_display_bar_cursor): Use the cursor-color
11980         to display the bar, not the cursor foreground pixel.
11982 1999-07-09  Andrew Innes  <andrewi@gnu.org>
11984         * w32console.c (w32_use_full_screen_buffer): New variable.
11985         (syms_of_ntterm): Register it.
11986         (initialize_w32_display): Set initial frame size accordingly,
11987         respecting the LINES and COLUMNS environment variables if set.
11989         * w32inevt.c (w32_console_read_socket): Use it.
11991 1999-07-07  Kenichi Handa  <handa@etl.go.jp>
11993         * callproc.c (Fcall_process): Decide coding system for decoding
11994         after we set to the target buffer.  If the output goes to a
11995         unibyte buffer, suppress character code conversion.
11997         * fileio.c (Finsert_file_contents): If reading into a unibyte
11998         buffer, suppress character code conversion.
12000         * process.c (create_process): If the output goes to a unibyte
12001         buffer, suppress character code conversion.p
12003 1999-07-07  Andreas Schwab  <schwab@gnu.org>
12005         * xdisp.c (line-number-display-limit): Doc fix.
12007 1999-07-05  Richard Stallman  <rms@gnu.org>
12009         * callproc.c (Fcall_process): Don't use initializer on coding_systems.
12010         (Fcall_process_region): Likewise.
12012 1999-07-01  Markus Rost  <markus.rost@mathematik.uni-regensburg.de>
12014         * callproc.c (init_callproc): Set exec_directory if
12015         installation_directory is non-nil, without a test of exec_path.
12017 1999-07-01  Andrew Innes  <andrewi@gnu.org>
12019         * w32xfns.c (drain_message_queue): New function.
12021         * w32term.h (drain_message_queue): Add extern.
12023         * w32proc.c (sys_select): Call MsgWaitForMultipleObjects instead
12024         of WaitForMultipleObjects when user input is allowed, so we can
12025         handle incoming window messages.  Call drain_message_queue when
12026         there are messages waiting; this ensures that windows created
12027         indirectly from the lisp thread get processed properly, and don't
12028         hang other applications by failing to respond to broadcasts.
12030 1999-07-01  Andreas Schwab  <schwab@gnu.org>
12032         * callint.c (Fcall_interactively): Ignore first element of
12033         event-symbol-elements property.
12035 1999-07-01  Richard Stallman  <rms@gnu.org>
12037         * fileio.c (Fread_file_name): Check type of DEFAULT_FILENAME.
12039 1999-07-01  Kenichi Handa  <handa@etl.go.jp>
12041         * minibuf.c (read_minibuf): Set the multibyteness of the
12042         minibuffer before inserting `initial' string.
12044 1999-06-30  Richard Stallman  <rms@gnu.org>
12046         * xfns.c (x_make_gc): Turn off GCStipple when setting up cursor_gc.
12048 1999-06-29  Richard M. Stallman  <rms@gnu.org>
12050         * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook):
12051         Move the handling of MALLOC_CHECK_ envvar here.
12052         (main): Moved from here.
12054 1999-06-29  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
12056         * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook): New
12057         function, assigned to the global __malloc_initialize_hook pointer.
12058         (main): Move malloc_set_state call into malloc_initialize_hook
12059         so that it happens as early as possible.
12061 1999-06-27  Richard M. Stallman  <rms@gnu.org>
12063         * keyboard.c (read_key_sequence): Properly reinitialize
12064         fkey_map after translating thru Vkey_translation_map.
12065         After translating thru Vfunction_key_map, don't reset
12066         keytrans-start to 0.
12068 1999-06-24  Geoff Voelker  <voelker@cs.washington.edu>
12070         * w32.c (get_emacs_configuration): Use GetVersionEx to
12071         handle NT5.0 correctly.  Include build number in configuration.
12072         w32heap.c (osinfo_cache): New variable.
12073         (cache_system_info): Initialize osinfo_cache.
12074         w32heap.h (osinfo_cache): Declare.
12076 1999-06-24  Richard M. Stallman  <rms@gnu.org>
12078         * casefiddle.c (casify_object): Use make_multibyte_string
12079         if we casify a multibyte string.
12081 1999-06-22  Ken'ichi Handa  <handa@gnu.org>
12083         * fileio.c: (Finsert_file_contents): In the case of REPLACE, call
12084         del_range_byte instead of del_range_1, set `inserted' to the
12085         number of characters actually inserted.
12087 1999-06-17  Dave Love  <fx@gnu.org>
12089         * coding.c (decode_coding_sjis_big5): Avoid compiler warning.
12091 1999-06-18  Paul Eggert  <eggert@twinsun.com>
12093         * filelock.c (BOOT_TIME_FILE): New macro.
12094         (get_boot_time): Use it instead of hardwiring the file name.
12095         Check BOOT_TIME_FILE only after inspecting the kernel directly.
12097 1999-06-17  Dave Love  <fx@gnu.org>
12099         * xdisp.c (invalid_eol_type): Make it unsigned.
12101 1999-06-17  Karl Heuer  <kwzh@gnu.org>
12103         * process.c (send_process): Delete unsafe/redundant assignment.
12105 1999-06-17  Jason Rumney  <jasonr@gnu.org>
12107         * w32term.c (dumprectangle): Handle wide characters properly.
12109 1999-06-16  Andrew Innes  <andrewi@gnu.org>
12111         * s/ms-w32.h (strerror): Override the default implementation of
12112         strerror, so we can map winsock error codes.
12114         * w32.c (sys_strerror): New function.
12116         * w32fns.c (w32_to_x_weight): Return "demibold" instead of "semibold".
12118 1999-06-15  Ken'ichi Handa  <handa@gnu.org>
12120         * buffer.c (syms_of_buffer): Don't make
12121         enable-multibyte-characters customizable.
12123 1999-06-15  Richard M. Stallman  <rms@gnu.org>
12125         * editfns.c (Fuser_full_name): Doc fix.
12127 1999-06-14  Tak Ota <ota@atc.sel.sony.com>
12129         * w32bdf.c: (clear_cached_bitmap_slots): Remove.
12130         (get_bitmap_with_cache): Check if CreateBitmap failed.
12131         Adjust cache size dynamically so cache is never larger than the
12132         system limit of GDI resources.
12133         Do cache clearing inline.  Move global variables to local scope.
12136 1999-06-13  Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
12138         * unexsgi.c (unexec): Dump the .rodata section from memory
12139         under IRIX6.5 in order to be able to unexec with gcc.
12141 1999-06-11  Greg Hudson  <ghudson@MIT.EDU>
12143         * indent.c (compute_motion): Fix boundary case.
12145 1999-06-11  Jason Rumney  <jasonr@altavista.net>
12147         * w32term.c (cancel_mouse_face): New function. See equiv
12148         changes to xterm.c on 1996-10-31.
12149         (x_set_window_size): Use cancel_mouse_face.
12150         (w32_read_socket): Use cancel_mouse_face.
12151         Update frame position when size is restored.
12153 1999-06-04  Richard M. Stallman  <rms@gnu.org>
12155         * lread.c (Vuser_init_file): New variable.
12156         (syms_of_lread): Set up Lisp variable.
12157         (Fload): Store the file name there, if var was t before.
12159 1999-06-04  Paul Eggert  <eggert@twinsun.com>
12161         * filelock.c (get_boot_time): Don't look at /proc/uptime; it
12162         doesn't work if the system date is changed, or if the system
12163         is suspended.  Look at the last-modified time of
12164         /var/run/random-seed instead.
12166 1999-06-03  Ken'ichi Handa  <handa@gnu.org>
12168         * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
12169         japanese-jisx0208-1978 correctly.
12171 1999-06-03  Andrew Innes  <andrewi@gnu.org>
12173         * unexw32.c (get_section_info) [_ALPHA_]: Force as much bss data
12174         as possible to be dumped, for safety.
12176 1999-06-02  Ken'ichi Handa  <handa@gnu.org>
12178         * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
12179         latin-jisx0201 correctly.
12181 1999-05-26  Ken'ichi Handa  <handa@gnu.org>
12183         * charset.h (Vcharset_table): Comment fixed.
12185 1999-05-24  Richard Stallman  <rms@gnu.org>
12187         * coding.c (syms_of_coding): Doc fix.
12189         * buffer.c (syms_of_buffer): Doc fix.
12191         * filelock.c (lock_if_free): After deleting a stale lock,
12192         try again to lock the file.
12194 1999-05-22  Andrew Innes  <andrewi@gnu.org>
12196         * w32inevt.c (maybe_generate_resize_event): Detect changes in the
12197         console window size.
12198         (w32_console_read_socket): Call maybe_generate_resize_event
12199         whenever input events are received, since we don't get told when
12200         the window size changes (as opposed to the buffer size, which we
12201         don't care about).
12203         * w32console.c (clear_frame): Remember that the window width might
12204         be smaller than the screen buffer width.
12205         (write_glyphs): Remove redundant variable attrs.  Use
12206         FillConsoleOutputAttribute instead of WriteConsoleOutputAttribute.
12208 1999-05-20  Andrew Innes  <andrewi@gnu.org>
12210         * w32term.c (w32_read_socket): Reset the grabbed flag when a frame gains or
12211         loses focus.
12213         * w32fns.c (w32_wnd_proc): Ensure mouse capture is released if
12214         frame loses focus, and that mouse button state is reset.  Ditto
12215         when the menu bar is activated.
12217 1999-05-18  Richard Stallman  <rms@gnu.org>
12219         * abbrev.c (Fdefine_abbrev): Doc fix.
12221 1999-05-13  Paul Eggert  <eggert@twinsun.com>
12223         * filelock.c: Fix performance bug on hosts with large
12224         /var/adm/wtmp files with no boot records.
12226         (boot_time_initialized): New var.
12227         (init_filelock): Initialize it.
12228         (get_boot_time): Use it, instead of nonzero boot_time,
12229         to test whether boot_time is initialized.
12230         Don't invoke utmp routines when dumping.
12232         (get_boot_time): First, try to get the boot time from the
12233         current utmp file, as this can be much faster.  Don't try to
12234         get the boot time from utmp and/or wtmp more than once.
12236         (get_boot_time_1): When passed null pointer, don't invoke utmpname.
12237         New arg LATEST.  All uses changed.
12239 1999-05-15  Andrew Innes  <andrewi@gnu.org>
12241         * w32term.c (dumpglyphs): Use correct colours for drawing
12242         rectangles in place of missing fonts, and make them the right
12243         size.
12245 1999-05-14  Dave Love  <fx@gnu.org>
12247         * syntax.c (Fparse_partial_sexp): Correct test for element 8 to be
12248         non-nil.
12250 1999-05-11  Andrew Innes  <andrewi@gnu.org>
12252         * w32fns.c (x_to_w32_charset): Reinstall VIETNAMESE_CHARSET
12253         definition.
12254         (w32_wnd_proc): Reinstall debugging output.
12255         (w32_wnd_proc): Reinstall SetForegroundWindow change.
12256         (syms_of_w32fns): Reinstall new initializer for
12257         Vw32_phantom_key_code.
12259         * w32fns.c (x_to_w32_charset): Do partial matching of charset
12260         names for most non-European charsets, to cope with wildcards or
12261         missing spec dates.
12262         (Fw32_send_sys_command): Post WM_SYSCOMMAND rather than sending it
12263         to avoid deadlock when activating the menu bar.
12265 1999-05-10  Ken'ichi Handa  <handa@gnu.org>
12267         * search.c (boyer_moore): Get charset base value of `untranslated'
12268         by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
12270 1999-05-10  Andreas Schwab  <schwab@gnu.org>
12272         * fileio.c (Fread_file_name): Correct handling of dollars in file
12273         names.  Protect dollars in strings put on the file-name-history.
12274         Substitute homedir by `~' also in default_filename.
12276         * xdisp.c (try_window_id): Fix computation of tab_offset when
12277         backing up over a character that is splitted across lines.
12279 1999-05-08  Kenichi HANDA  <handa@etl.go.jp>
12281         * coding.c (code_convert_region): If eol format is inconsistent,
12282         change coding->symbol to the sibling coding system of Unix like
12283         eol format.
12285 1999-05-09  Richard M. Stallman  <rms@gnu.org>
12287         * s/irix5-2.h (NO_WTMP_FILE): Define it.
12289         * filelock.c (get_boot_time): Handle NO_WTMP_FILE.
12291 1999-05-05  Andrew Innes  <andrewi@gnu.org>
12293         * w32fns.c (w32_strict_painting): New variable.
12294         (w32_wnd_proc): Use it to select repaint rules.
12295         (syms_of_w32fns): Defvar it.
12297 1999-05-04  Andrew Innes  <andrewi@gnu.org>
12299         * w32fns.c (x_to_w32_charset): Fix typo: want to map all Japanese
12300         charsets to the standard Windows charset for Japanese.
12302 1999-05-04  Ken'ichi Handa  <handa@gnu.org>
12304         * xterm.c (x_load_font): Fix typo (`>' -> `=').
12306         * ccl.h (struct ccl_program): New member stack_idx.
12308         * ccl.c (ccl_prog_stack_struct): Declare it as static.
12309         (ccl_driver): Setup stack_idx and ccl_prog correctly.  Update them
12310         before returing.
12311         (setup_ccl_program): Initialize ccl->stack_idx to 0.
12313 1999-05-03  Jason Rumney  <jasonr@altavista.net>
12315         * w32term.c (dumpglyphs): Always fill background for italic fonts.
12317 1999-05-03  Eli Zaretskii <eliz@is.elta.co.il>
12319         * dired.c (make_time): Make argument type be time_t.
12321 1999-05-02  Eli Zaretskii <eliz@is.elta.co.il>
12323         * msdos.c (unibyte_display_via_language_environment): Add extern.
12325 1999-05-02  Richard M. Stallman  <rms@gnu.org>
12327         * xdisp.c (display_text_line): Convert unibyte char to multibyte
12328         if unibyte_display_via_language_environment is set.
12329         (unibyte_display_via_language_environment):
12330         Variable moved from xfns.c and elsewhere.
12331         (syms_of_xfns): Set up Lisp var.
12333         * xfns.c (unibyte_display_via_language_environment):
12334         Variable moved to xdisp.c.
12335         (syms_of_xfns): Don't set up Lisp var here.
12337         * msdos.c (unibyte_display_via_language_environment):
12338         Variable moved to xdisp.c.
12339         (syms_of_msdos): Don't set up Lisp var here.
12341         * w32fns.c (unibyte_display_via_language_environment):
12342         Variable moved to xdisp.c.
12343         (syms_of_w32fns): Don't set up Lisp var here.
12345 1999-05-02  Andrew Innes  <andrewi@gnu.org>
12347         * s/ms-w32.h (HAVE_FSYNC): New macro.
12348          (fsync): Map to _commit.
12349          (ftruncate): Map to _chsize.
12351         * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even
12352         for ASCII, if enabled, to avoid memory allocation overhead for
12353         implicit Unicode conversion.  Also, recognize that ASCII and
12354         Latin-1 have a trivial conversion to Unicode, so x_2byte_buffer
12355         already contains the Unicode characters in that case.
12356         (construct_drag_n_drop): Remove old code that was
12357         trashing the drop location.
12359         * w32select.c (Fw32_set_clipboard_data): Undo last change to add
12360         nlines to encoding_buffer_size (real bug was in a ccl program in
12361         lisp/international/coding.el).
12363         * w32reg.c (w32_get_string_resource): Check for name in current
12364         user area, and if not found look in the local machine area.
12366         * w32fns.c (w32_list_bdf_fonts): Initialize n_fonts.
12367         (Fw32_shell_execute): New function; used to support browse-url.
12368         (syms_of_w32fns): Register it.
12369         (w32_load_system_font): Force max width to be average
12370         char width for fixed-pitch fonts, to avoid unnecessary redisplay
12371         slowdown.
12372         (x_to_w32_charset): Define VIETNAMESE_CHARSET if not
12373         already defined.
12374         (syms_of_w32fns): Set Vw32_phantom_key_code to 255.
12376         * unexw32.c (get_section_info): Dump back the entire EMDATA
12377         section if we can put Emacs' initialized data in a separate
12378         section, otherwise use the my_begdata/my_edata method.
12380         * makefile.nt ($(BLD)\w32term.obj): Add dependency on w32heap.h.
12382         * coding.c (decode_eol): Set produced/consumed values to zero if
12383         src_bytes is <= 0 on entry.
12385 1999-05-02  Jason Rumney  <jasonr@altavista.net>
12387         * w32term.c (w32_write_glyphs, w32_clear_end_of_line,
12388         w32_clear_frame, clear_cursor, x_display_bar_cursor,
12389         x_display_box_cursor, x_set_window_size): Use phys_cursor_on
12390         field in frame.
12391         (do_line_dance): Updated WRT xterm.c. Use macros where possible.
12392         (dumprectangle): Take into account the width of a left-side
12393         scroll bar.
12395         * w32proc.c (sys_kill): Attach to current foreground thread
12396         when grabbing focus; necessary on NT 5.0.
12398         * w32fns.c (w32_wnd_proc) [WM_PAINT]: Use rectangle from
12399         GetUpdateRect rather than BeginPaint.
12400         (w32_wnd_proc): Attach to current foreground thread
12401         when grabbing focus; necessary on NT 5.0.
12402         (w32_wnd_proc) [W32_DEBUG_DISPLAY]: Add output for
12403         debugging display messages.
12404         (w32_to_x_charset): Put wildcard last in unknown charsets to avoid
12405         false matching.
12407 1999-05-02  Kenichi HANDA  <handa@etl.go.jp>
12409         * coding.c (setup_raw_text_coding_system): Call
12410         setup_coding_system to initialize the fields of struct
12411         coding_system correctly.
12412         
12413 1999-04-26  Kenichi HANDA  <handa@etl.go.jp>
12415         * xterm.c (x_list_fonts): Fix previous change.
12417 1999-04-26  Richard Stallman  <rms@gnu.org>
12419         * config.in (HAVE_LIBXP): Add #undef.
12420         * Makefile.in (LIB_MOTIF_EXTRA): Check HAVE_LIBXP.
12422 1999-04-12  Ken'ichi Handa  <handa@gnu.org>
12424         * xterm.c (x_list_fonts): Trap X errors so that Emacs doesn't die
12425         by them.
12427 1999-04-12  Karl Heuer  <kwzh@gnu.org>
12429         * s/freebsd.h (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3.
12431 1999-04-11  Ken'ichi Handa  <handa@gnu.org>
12433         * fontset.c (Fset_fontset_font): Fix previous change.
12435 1999-04-09  Ken'ichi Handa  <handa@gnu.org>
12437         * fontset.c (Fquery_fontset): Check for fontset aliases here.
12438         (Fnew_fontset, Fset_fontset_font): Don't check for them here.
12440 1999-04-08  Richard Stallman  <rms@gnu.org>
12442         * process.c (Faccept_process_output): Check validity of PROCESS.
12444 1999-04-08  Eli Zaretskii  <eliz@gnu.org>
12446         * msdos.c (jp_kbd_translate_table): Fix the other \ key.
12448 1999-04-07  Richard Stallman  <rms@gnu.org>
12450         * xfns.c (x_set_font): Fix error message.
12452         * fontset.c (Fquery_fontset): Don't check for fontset aliases here.
12453         (Fnew_fontset, Fset_fontset_font): Check for them here.
12454          (Ffontset_info, Fnew_fontset, Fset_fontset_font):
12455         Fix error message syntax.
12457         * buffer.c (Fmake_indirect_buffer): Copy multibyte status
12458         from the base buffer.
12459         (Fset_buffer_multibyte): Copy new multibyte status
12460         into the buffer's indirect buffers.
12462 1999-04-07  Ken'ichi Handa  <handa@gnu.org>
12464         * fns.c (base64_encode_1): Don't add unnecessary newline at the
12465         tail.
12467 1999-04-06  Richard Stallman  <rms@gnu.org>
12469         * dired.c (Ffile_attributes): Doc fix.
12471         * keymap.c (Faccessible_keymaps): Really initialize i_byte.
12472         Convert 0200 to meta only in a unibyte string.
12473         (Fkey_description): Likewise.
12475         * eval.c (do_autoload): Preserve match data.
12477 1999-04-06  Kenichi HANDA  <handa@etl.go.jp>
12479         * w32fns.c (x_to_w32_font): Provide sufficient buffer to
12480         encode_coding to avoid carryover.
12482         * coding.c: Add comments for decode_coding and encode_coding.
12484         * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
12485         a composite character by skipping its leading code.
12486         <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
12487         correctly.
12489         * coding.c: Add comments for decode_coding and encode_coding.
12491         * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
12492         a composite character by skipping its leading code.
12493         <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
12494         correctly.
12496 1999-04-06  Eli Zaretskii  <eliz@gnu.org>
12498         * msdos.c (dos_rawgetc): Don't zero out c if private translation
12499         table was used.
12500         (jp_kbd_translate_table): Support C-\.
12501         (it_kbd_translate_table): Map `>' correctly.
12502         (it_keyboard): Add `>'.
12504 1999-04-06  Richard Stallman  <rms@gnu.org>
12506         * intervals.c (graft_intervals_into_buffer): Turn off
12507         inhibit_modification_hooks around calling Fset_text_properties.
12509 1999-04-05  Kenichi HANDA  <handa@etl.go.jp>
12511         * xterm.c (dumpglyphs): Be sure to fill the whole background of
12512         glyphs.
12514 1999-04-05  Eli Zaretskii  <eliz@gnu.org>
12516         * msdos.c (jp_kbd_translate_table): Fix last change.
12518 1999-04-04  Eli Zaretskii  <eliz@gnu.org>
12520         * msdos.c (struct kbd_translate): New struct, for key translation
12521         tables private to certain national keyboard layouts.
12522         (struct dos_keyboard_map): Add a pointer to a private translation
12523         table.
12524         (jp_kbd_translate_table): Private table for the Japanese
12525         keyboard.
12526         (jp_keyboard): Japanese keyboard layout.
12527         (it_kbd_translate_table): Private table for the Italian keyboard.
12528         (it_keyboard): Use it_kbd_translate_table.
12529         (keyboard_layout_list): Add the Japanese keyboard.
12530         (dos_rawgetc): Use the keyboard-private translation table, if
12531         available.
12532         (abort) [__DJGPP_MINOR__ >= 2]: Raise SIGABRT.
12534 1999-04-02  Kenichi HANDA  <handa@etl.go.jp>
12536         * xdisp.c (redisplay_window): When we call compute_motion with
12537         HPOS got from w->last_point_x, call it with DID_MOTION 1.
12538         (display_text_line): Stop the loop for processing overlay strings
12539         when we reach the right edge of the window.
12541 1999-03-31  Richard M. Stallman  <rms@gnu.org>
12543         * doc.c (get_doc_string): When UNIBYTE and DEFINITION are 0,
12544         let the data control whether string is unibyte.
12546 1999-03-30  Richard M. Stallman  <rms@gnu.org>
12548         * macros.c (Fexecute_kbd_macro): Save real_this_command.
12549         (pop_kbd_macro): Restore the saved real_this_command.
12550         (Fcall_last_kbd_macro): Set real_this_command to the macro.
12552 1999-03-26  Richard M. Stallman  <rms@gnu.org>
12554         * buffer.c (Fset_buffer_modified_p): Don't lock or unlock
12555         if buffer-file-name is nil.
12557 1999-03-25  Jason Rumney  <jasonr@altavista.net>
12559         * w32select.c (Fw32_set_clipboard_data): Take into account line
12560         ends when calculating clipboard storage needed for non-ASCII text.
12562 1999-03-25  Andrew Innes  <andrewi@gnu.org>
12564         * makefile.nt (PREPARED_HEADERS): Change name of paths.h to epaths.h.
12565         (epaths.h): Renamed from paths.h.
12566         (clean): 
12567         ($(BLD)\filelock.obj): 
12568         ($(BLD)\lread.obj): 
12569         ($(BLD)\w32fns.obj): Renamed paths.h to epaths.h.
12571 1999-03-23  Ken'ichi Handa  <handa@gnu.org>
12573         * coding.c (encode_coding_iso2022): Initialize dummy arguments to
12574         ENCODE_ISO_CHARACTER for the previous change on this macro.
12576 1999-03-23  Kenichi Handa  <handa@etl.go.jp>
12578         * xdisp.c (decode_mode_spec_coding): Handle integer value in
12579         eoltype correctly for backward compatibility.
12581 1999-03-20  Kenichi HANDA  <handa@etl.go.jp>
12583         * coding.c (ENCODE_ISO_CHARACTER): Check validity of CHARSET.  If
12584         invalid, produce the buffer internal byte sequence without encoding.
12586 1999-03-19  Karl Heuer  <kwzh@gnu.org>
12588         * editfns.c (Fformat): Accept %i format.
12590 1999-03-17  Karl Heuer  <kwzh@gnu.org>
12592         * filelock.c (get_boot_time): Test tempname, not filename.
12594 1999-03-17  Jason Rumney <jasonr@altavista.net>
12596         * w32bdf.h: Merged patches from Meadow; introduce bitmap cache to
12597         speed display.
12599         * w32bdf.c: Merged patches from Meadow; introduce bitmap cache to
12600         speed display.
12601         (get_cached_font_char, cache_char_offset, get_bitmap_with_cache)
12602         New functions.
12603         (w32_free_bdf_font, seek_char, w32_get_bdf_glyph, w32_BDF_TextOut)
12604         Use bitmap cache.
12606         * w32fns.c (enum_font_cb2): Set the font height to be the
12607         character height, not the cell height.
12608         (Fw32_select_font): Initialize font dialog with current default font.
12609         (Vw32_system_coding_system): New variable.
12610         (w32_strict_filenames): Add comment.
12611         (w32_to_x_font): Decode font name using Vw32_system_coding_system.
12612         (x_to_w32_font): Encode font name using Vw32_system_coding_system. 
12613         (syms_of_w32fns): Add w32-system-coding-system.
12615 1999-03-15  Richard M. Stallman  <rms@gnu.org>
12617         * xterm.c (XTread_socket) <ConfigureNotify>:
12618         If cursor pos is outside the new frame size, mark cursor as off.
12620 1999-03-14  Ken'ichi Handa  <handa@gnu.org>
12622         * xdisp.c (try_window_id): Initialize val.ovstring_chars_done to 0.
12624         * xterm.c (x_load_font): Trap X errors so that Emacs doesn't die
12625         by them.
12627 1999-03-14  Richard M. Stallman  <rms@gnu.org>
12629         * macros.c (Fexecute_kbd_macro): Initialize executing_macro_iterations
12630         at beginning.
12632 1999-03-14  Jason Rumney <jasonr@altavista.net>
12634         * w32fns.c (w32_strict_fontnames): New variable.
12635         (Fx_create_frame): Formatting fix.
12636         (w32_load_system_font): Keep trying to load non-existant font
12637         if w32_strict_fontnames is nil. Formatting fix.
12638         (syms_of_w32fns): Add w32-strict-fontnames.
12640         * w32term.c (W32_TEXTOUT): Do not multiply nchars by charset_dim.
12641         (dumpglyphs): Formatting fixes.
12643 1999-03-14  Geoff Voelker  <voelker@cs.washington.edu>
12645         * w32fns.c (w32_wnd_proc): Handle WM_GETMINMAXINFO message.
12647 1999-03-10  Karl Heuer  <kwzh@gnu.org>
12649         * puresize.h (BASE_PURESIZE): Increase to 505000.
12651 1999-03-09  Richard M. Stallman  <rms@gnu.org>
12653         * emacs.c (main) [CLASH_DETECTION]: Call init_filelock.
12655         * filelock.c (init_filelock): New function.
12657 1999-03-09  Dave Love  <fx@gnu.org>
12659         * fileio.c (Ffile_directory_p): Doc fix.
12661 1999-03-05  Richard M. Stallman  <rms@gnu.org>
12663         * coding.c (setup_coding_system): Check for CODING_SYSTEM = nil.
12665 1999-03-08  Richard M. Stallman  <rms@gnu.org>
12667         * filelock.c (get_boot_time): Reduce scope of #ifdef BOOT_TIME
12668         to only the part that uses get_boot_time_1.
12670 1999-03-07  Dave Love  <fx@gnu.org>
12672         * fileio.c (Finsert_file_contents): Use xfree.
12674 1999-03-06  Kenichi Handa  <handa@etl.go.jp>
12676         * Makefile.in (callproc.o, coding.o, fileio.o, msdos.o, process.o,
12677         term.o, xselect.o): Depend on ccl.h.
12679 1999-03-05  Geoff Voelker  <voelker@cs.washington.edu>
12681         * makefile.nt: Remove common multiple file compilation commands.
12683 1999-03-04  Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
12685         * fns.c (Fbase64_encode_string): Allocate sufficient memory for
12686         newlines added when the arg NO-LINE-BREAK is nil.
12688 1999-03-04  Karl Heuer  <kwzh@gnu.org>
12690         * search.c (Fstring_match, Fposix_string_match): Doc fix.
12692         * buffer.c (syms_of_buffer): Doc fix for case-fold-search.
12694 1999-03-04  Dave Love  <fx@gnu.org>
12696         * term.c (term_init): Use xmalloc, not malloc.
12698         * callproc.c (Fcall_process): Use xmalloc, xfree.
12700 1999-03-03  Andreas Schwab  <schwab@gnu.org>
12702         * eval.c (Fdefconst): Doc fix.
12704 1999-03-01  Kenichi Handa  <handa@etl.go.jp>
12706         * coding.c: Comment for ISO 2022 encoding mechanism modified.
12708 1999-03-01  Eli Zaretskii  <eliz@gnu.org>
12710         * w16select.c (get_clipboard_data): Always stop at the first null byte.
12712 1999-02-28  Richard M. Stallman  <rms@gnu.org>
12714         * filelock.c (get_boot_time): Support FreeBSD way to read boot-time.
12716         * cmds.c (internal_self_insert): Calculate column properly
12717         in overwrite-of-tab case.
12719 1999-02-27  Andreas Schwab  <schwab@gnu.org>
12721         * emacs.c (main) [DOUG_LEA_MALLOC]: Don't use unsetenv, it calls
12722         malloc in glibc 2.1.
12724 1999-02-26  Richard Stallman  <rms@gnu.org>
12726         * Makefile.in: paths.h and paths.in renamed to epaths.h and epaths.in.
12728         * epaths.in: Renamed from paths.in.
12729         This avoids a conflict with a system header file paths.h on GNU/Linux.
12731         * callproc.c, lread.c, w32fns.c, xfns.c, xrdb.c:
12732         Use epaths.h istead of paths.h.
12734 1999-02-26  Andreas Schwab  <schwab@gnu.org>
12736         * emacs.c (main) [DOUG_LEA_MALLOC]: Work around a bug in glibc's
12737         malloc.
12739 1999-02-25  Dave Love  <fx@gnu.org>
12741         * buffer.c (syms_of_buffer): Doc fix for enable-multibyte-characters.
12743 1999-02-25  Richard Stallman  <rms@gnu.org>
12745         * filelock.c (get_boot_time): Use WTMP_FILE for file name.
12746         (WTMP_FILE): Default definition in case not defined.
12747         (get_boot_time_1): Test that file exists before trying to read it.
12748         
12749 1999-02-25  Ken'ichi Handa  <handa@gnu.org>
12751         * keymap.c (push_key_description): If enable-multibyte-characters
12752         is nil and C is single byte, push C as is.
12754 1999-02-24  Kenichi Handa  <handa@etl.go.jp>
12756         * keymap.c (push_key_description): If enable-multibyte-characters
12757         is non-nil, try to convert unibyte character to multibyte.  For
12758         invalid multibyte character, show all bits by octal form.
12759         (Fsingle_key_description): Check the validity of charset for a
12760         generic character.
12762 1999-02-23  Richard M. Stallman  <rms@gnu.org>
12764         * fileio.c (Ffile_regular_p): Undo previous change.
12766         * eval.c (Fdefconst): Doc fix.
12768         * filelock.c (get_boot_time): Don't use BUFSIZ.
12770 1999-02-22  Andrew Innes  <andrewi@gnu.org>
12772         * makefile.nt ($(BLD)\w32bdf.obj): Add missing continuation character.
12773         (EXTRA_LINK): Do version test with strings.
12775 1999-02-22  Andreas Schwab  <schwab@gnu.org>
12777         * fns.c (Fbase64_encode_string): Fix last change.
12779         * termhooks.h (event_kind): Add user_signal.
12781         * keyboard.c (Qusr1_signal, Qusr2_signal): New variables.
12782         (syms_of_keyboard): Initialize them.
12783         (lispy_user_signals): New variable.
12784         (make_lispy_event): Handle user_signal event type.
12786         * emacs.c: Don't define Qusr1_signal and Qusr2_signal.
12787         (syms_of_emacs): Don't initialize them.
12788         (handle_USR1_signal, handle_USR2_signal): Set event type to
12789         user_signal instead of non_ascii_keystroke, and use plain integers
12790         as code instead of Lisp symbols.
12792 1999-02-21  Eli Zaretskii  <eliz@delysid.gnu.org>
12794         * fileio.c: (lstat) [!S_ISLNK]: Use stat instead of lstat.
12796 1999-02-21  Richard Stallman  <rms@gnu.org>
12798         * filelock.c (get_boot_time_1): Put this in #ifdef BOOT_TIME.
12800         * print.c (print_error_message): Don't crash if (cdr data)
12801         is not a list.
12803 1999-02-21  Eli Zaretskii  <eliz@gnu.org>
12805         * fileio.c (lstat) [!S_ISLNK]: Use stat instead of lstat.
12807 1999-02-20  Andrew Innes  <andrewi@gnu.org>
12809         * vm-limit.c (memory_warnings) [WINDOWSNT]: Reset lim_data on each
12810         run, since size can vary from run to run.
12812         * makefile.nt (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
12813         data is included, to enable profiling.
12814         ($(EMACS)): Map file not needed for emacs.exe.
12816         * emacs.c (main): [!SYSTEM_MALLOC]: Call realloc and free as well
12817         as malloc before calling uninterrupt_malloc, for consistency.
12818         This also enables profiling to work on WINDOWSNT.
12820 1999-02-18  Richard Stallman  <rms@gnu.org>
12822         * Makefile.in (emacs.o): Depend on termhooks.h.
12823         (filelock.o): Depend on systime.h.
12825 1999-02-18  Ken'ichi Handa  <handa@gnu.org>
12827         * coding.c (Fdecode_sjis_char): Use %x for formatting error message.
12828         (Fdecode_big5_char): Likewise.
12830 1999-02-17  Richard Stallman  <rms@gnu.org>
12832         * insdel.c (adjust_markers_for_replace): When doing an insertion
12833         (replacing a region of zero length), handle markers at the
12834         insertion point properly.
12836 1999-02-17  Andrew Innes  <andrewi@gnu.org>
12838         * w32fns.c (Vw32_quit_key): New variable.
12839         (post_character_message): Use it.
12840         (syms_of_w32fns): DEFVAR it.
12842 1999-02-16  MORIOKA Tomohiko  <morioka@jaist.ac.jp>
12844         * fns.c (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'.
12846 1999-02-16  Richard Stallman  <rms@gnu.org>
12848         * filelock.c (within_one_second): New function.
12849         (current_lock_owner): Use that.
12850         (get_boot_time): Use /proc/uptime if available.
12851         Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
12852         (get_boot_time_1): New subroutine taken from get_boot_time.
12853         
12854 1999-02-16  Richard Stallman  <rms@gnu.org>
12856         * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
12857         (syms_of_emacs): Init and staticpro them.
12858         (handle_USR1_signal): Don't run any code, just queue up an event.
12859         (handle_USR2_signal): Likewise.
12861 1999-02-16  Eli Zaretskii  <eliz@gnu.org>
12863         * dired.c (Ffile_attributes): If the file's size doesn't fit in
12864         an integer, return it as a float.  Doc string fixed.
12866 1999-02-16  Richard Stallman  <rms@gnu.org>
12868         * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
12869         (syms_of_emacs): Init and staticpro them.
12870         (handle_USR1_signal): Don't run any code, just queue up an event.
12871         (handle_USR2_signal): Likewise.
12873 1999-02-15  Kenichi Handa  <handa@etl.go.jp>
12875         * coding.c (Fdecode_sjis_char, Fencode_sjis_char): Handle
12876         ASCII correctly.  Signal error on invalid characters.
12877         (Fdecode_big5_char, Fencode_big5_char): Likewise.
12879 1999-02-15  Eli Zaretskii  <eliz@gnu.org>
12881         * w16select.c (get_clipboard_data): Work around a bug in Windows95
12882         DOS box which doubles the reported size of text in the clipboard.
12884 1999-02-15  Kenichi Handa  <handa@etl.go.jp>
12886         * coding.c (decode_coding_iso2022): Don't set
12887         coding->composed_chars to 0 here.
12888         (setup_coding_system): Set coding->composed_chars to 0 here.
12890 1999-02-10  Richard Stallman  <rms@gnu.org>
12892         * fileio.c (Ffile_regular_p): Use lstat.
12894 1999-02-09  Richard Stallman  <rms@gnu.org>
12896         * unexelf.c (HAS_SBSS_SECTION): Define this in some cases.
12897         (unexec): Test this instead of specific systems.
12899         * m/macppc.h: New file.
12901 1999-02-08  Dave Love  <fx@gnu.org>
12903         * fns.c (Fyes_or_no_p, Fy_or_n_p): Doc fix.
12905 1999-02-08  Ken'ichi Handa  <handa@gnu.org>
12907         * coding.c (ccl_coding_driver): On encoding, coding->produced_char
12908         should be set to coding->produced.
12910 1999-02-07  Paul Fisher  <rao@gnu.org>
12912         * fns.c (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
12913         (base64_decode_1): Use READ_QUADRUPLET_BYTE.
12915 1999-02-07  Markus Rost  <markus.rost@mathematik.uni-regensburg.de>
12917         * editfns.c (Fformat): Doc fix.
12919 1999-02-06  Richard Stallman  <rms@gnu.org>
12921         * process.c (syms_of_process): defsubr it.
12922         (Fprocess_running_child_p): New function.
12924 1999-02-05  Andrew Innes  <andrewi@gnu.org>
12926         * w32term.c (construct_drag_n_drop): Call DraqQueryPoint before
12927         recording drop position.
12929 1999-02-05  Ken'ichi Handa  <handa@gnu.org>
12931         * coding.c (encode_coding_iso2022): Before writing out an invalid
12932         code, reset graphic planes and registers if necessary.
12934         * term.c (encode_terminal_code): Fix previous change.
12936 1999-02-04  Eli Zaretskii  <eliz@gnu.org>
12938         * w16select.c (last_clipboard_text, clipboard_storage_size): New
12939         static variables.
12940         (set_clipboard_data): Save a copy of the text we put into
12941         clipboard in last_clipboard_text.
12942         (get_clipboard_data): If the clipboard text is identical to what
12943         last_clipboard_text holds, pretend there's no data in the clipboard.
12945 1999-02-03  Richard Stallman  <rms@gnu.org>
12947         * s/gnu.h (NLIST_STRUCT): Add #undef.
12949 1999-02-03  Eli Zaretskii  <eliz@gnu.org>
12951         * w16select.c (Fw16_set_clipboard_data): When the text needs to be
12952         encoded, set its pointer and size as returned by encode_coding.
12954 1999-02-02  Ken'ichi Handa  <handa@gnu.org>
12956         * fns.c (Fset_char_table_default): To handle the case that CH is
12957         an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
12959 1999-02-02  Andrew Innes  <andrewi@gnu.org>
12961         * w32fns.c (syms_of_w32fns): Change default value of
12962         w32-mouse-move-interval to 0, so that the mouse wheel/rocker on
12963         some mice works properly.
12965 1999-02-02  Eli Zaretskii  <eliz@gnu.org>
12967         * w16select.c (set_clipboard_data): Correctly null-terminate the
12968         string to be put into the Windows clipboard.  Use xbuf_addr.
12970 1999-02-01  Richard Stallman  <rms@gnu.org>
12972         * buffer.c (Fset_buffer_multibyte): Error if buffer is indirect.
12974 1999-01-31  Richard Stallman  <rms@gnu.org>
12976         * process.c (process_send_signal): If CURRENT_GROUP is `lambda'
12977         then don't send the signal if the shell owns the terminal.
12978         (Finterrupt_process): Doc change.
12979         
12980 1999-01-31  Andrew Innes  <andrewi@gnu.org>
12982         * unexw32.c: (ROUND_UP_DST_AND_ZERO): New macro.
12983         (copy_executable_and_dump_data): Use it to ensure alignment slop
12984         is zeroed.
12986 1999-01-30  Andrew Innes  <andrewi@gnu.org>
12988         * w32.c (init_environment): Change argv[0] to contain the full
12989         path to Emacs.
12991         * emacs.c (main) [WINDOWSNT]: Pass argv to init_environment.
12993 1999-01-29  Ken'ichi Handa  <handa@gnu.org>
12995         * xterm.c (x_new_fontset): For ASCII font, don't use the font name
12996         returned by x_new_font (the resolved one) but use the font name
12997         set in the fontset specification.
12998         (x_load_font): For the height of font, if normarl ascent and
12999         descent value are larger than those in max_bounds field, use the
13000         former.
13002 1999-01-28  Eli Zaretskii  <eliz@gnu.org>
13004         * xdisp.c (decode_mode_spec_coding): Fix previous change.
13006 1999-01-27  Geoff Voelker  <voelker@cs.washington.edu>
13008         * makefile.nt: Use full path to temacs.exe when dumping.
13010 1999-01-27  Jason Rumney <jasonr@altavista.net>
13012         * w32fns.c (w32_load_system_font): Do not load unlisted fonts if
13013         list was reliable.
13014         (enum_fontex_cb1, enum_fontex_cb2): New functions.
13015         (w32_list_bdf_fonts): New parameter; max_names.  Callers updated.
13016         (w32_list_synthesized_fonts): New function.
13017         (w32_list_fonts): Use maxnames.  Use EnumFontFamiliesEx when
13018         available instead of EnumFontFamilies.  List synthesized fonts if
13019         Vw32_enable_italics is non-nil.
13020         
13021 1999-01-27  Richard Stallman  <rms@gnu.org>
13023         * s/ptx4.h (SETUP_SLAVE_PTY): Use the ptem module if it exists.
13024         Don't complain if ttcompat does not exist.
13026         * w32fns.c (x_set_frame_parameters): gcpro as needed.
13028 1999-01-27  Andrew Innes  <andrewi@gnu.org>
13030         * w32fns.c (w32_wnd_proc): Fix bug introduced by previous change;
13031         the lwindow, rwindow and apps keys could not be used as function
13032         keys, because they were being passed to TranslateMessage which
13033         ignores them.  Also, key was being changed to SPC.
13035         * makefile.nt: Do make version comparison as strings.
13037 1999-01-27  Eli Zaretskii  <eliz@gnu.org>
13039         * coding.c (syms_of_coding): eol-mnemonic-* variables are now
13040         strings, not characters.
13042         * coding.h: Likewise.
13044         * xdisp.c (decode_mode_spec_coding): Display the EOL type as a
13045         string.
13047 1999-01-26  Dave Love  <fx@gnu.org>
13049         * emacs.c (main): Up-date copyright.
13051 1999-01-25  Dave Love  <fx@gnu.org>
13053         * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
13055 1999-01-25  Andreas Schwab  <schwab@gnu.org>
13057         * eval.c (Fsignal): Move comment to avoid confusing make-docfile.
13059 1999-01-23  Richard M. Stallman  <rms@borg.ai.mit.edu>
13061         * xfns.c (x_set_frame_parameters): gcpro as needed.
13063         * window.c (Fset_window_point): If WINDOW is selected but the
13064         current buffer is not its buffer, don't use Fgoto_char.
13066 1999-01-22  Richard M. Stallman  <rms@gnu.org>
13068         * syntax.c (scan_sexps_forward): Delete duplicate code
13069         to set prev_from_syntax, above start of main loop.
13070         At startinstring, check syntax when checking for a match.
13072 1999-01-22  Jason Rumney <jasonr@altavista.net>
13074         * w32bdf.c: New file.
13075         * w32bdf.h: New file.
13076         * makefile.nt: Add w32bdf.c and w32bdf.h.
13078         * w32gui.h: Include w32bdf.h.
13079         (W32FontStruct) Add bdf element.
13081         * w32term.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
13082         Support BDF fonts.
13084         * w32term.c (W32_TEXTOUT): New macro.
13085         (dumpglyphs): Support BDF fonts.  Use W32_TEXTOUT macro.
13086         Simplify baseline calculation.  Detect SJIS by font, not glyph.
13087         Call SetTextAlign.
13088         (syms_of_w32term): Remove "jisx0212-sjis" from
13089         w32-charset-to-codepage-alist.
13090         Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
13091         Add "ksc5601.1992' to w32-charset-to-codepage-alist.
13092         
13093         * w32fns.c (Vw32_bdf_filename_alist): New variable.
13094         (x_destroy_bitmap): Returns void not int.
13095         (x_set_border_pixel): Returns void.
13096         (w32_load_bdf_font): New function.
13097         (w32_load_system_font): New function, was w32_load_font.  List
13098         fonts before loading.  Explicitly set encoding for SJIS fonts.
13099         Set default_ascent to 0 as comment indicates.
13100         (w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
13101         (w32_unload_font): Support BDF fonts.
13102         (w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
13103         Autodetect whether to use koi8-r instead of iso8859-5.
13104         Associate "ksc5601.1987" with HANGUEL_CHARSET.
13105         Associate "ksc5601.1992" with JOHAB_CHARSET.
13106         (x_to_w32_charset): Make consistent with w32_to_x_charset.
13107         (w32_to_x_font): Add resolution.
13108         (x_to_w32_font): Use font resolution to calculate height if supplied.
13109         (w32_font_match): Handle wildcards anywhere within field.
13110         (enumfont_t): Remove unused head pointer.
13111         (enum_font_cb2): Dereference elfLogFont.
13112         (w32_list_bdf_fonts): New function.
13113         (w32_list_fonts): Use one_w32_dispay_info instead of insisting on
13114         valid frame.  Remove MessageBox.  Support BDF fonts.
13115         (Fw32_find_bdf_fonts): New function.
13116         (syms_of_w32fns): Add Vw32_bdf_filename_alist and
13117         Sw32_find_bdf_fonts.
13119 1999-01-21  Andrew Innes  <andrewi@gnu.org>
13121         * makefile.nt (temacs): Use del to delete file, not rm.
13123 1999-01-19  Richard Stallman  <rms@psilocin.ai.mit.edu>
13125         * keyboard.c (read_key_sequence): Fix previous change.
13127         * xterm.c (same_x_server): Detect treat ":0" and "unix:0"
13128         as the same.  Treat "myname:0" as the same as those two.
13130 1999-01-19  Jason Rumney <jasonr@altavista.net>
13132         * w32fns.c (x_to_w32_charset): Add iso8859-9.
13133         (w32_to_x_charset): Fix charset mappings.
13135         * w32term.c: Remove codepage macros. Remove redundant BIG5 macros.
13136         (dumpglyphs): Move definitions out of block containing goto.
13137         Remove redundant code for BIG5.
13138         Use w32_codepage_for_font instead of
13139         w32_codepage_for_charset.  Add cast to int where float
13140         operation is assigned to int.
13141         (Vw32_charset_to_codepage_alist): New variable.
13142         (w32_codepage_for_charset): Removed.
13143         (w32_codepage_for_font): New function, replacing 
13144         w32_codepage_for_charset. 
13145         (syms_of_w32term): Add and initialize
13146         w32-charset-to-codepage-alist.
13148 1999-01-17  Richard Stallman  <rms@psilocin.ai.mit.edu>
13150         * xselect.c (x_handle_selection_clear): Don't clear the
13151         selection if Emacs still owns it through a different display.
13153 1999-01-17  Andrew Innes  <andrewi@gnu.org>
13155         * w32proc.c: (w32_executable_type): Relax the check to identify
13156         cygwin-compiled applications, because the exact dll name varies
13157         with release.  Now only require the name to start "cygwin".
13159         * w32heap.h: (ROUND_UP):
13160         (ROUND_DOWN): New macros.
13161         (need_to_recreate_heap): Renamed to using_dynamic_heap.
13162         (init_heap): New extern.
13163         (data_region_size):
13164         (recreate_heap):
13165         (read_in_bss):
13166         (map_in_heap):
13167         (round_to_next):
13168         (w32_fatal_reload_error):
13169         (get_section_size): Obsolete externs removed.
13171         * w32heap.c: (RVA_TO_PTR): Redefine to convert RVA to address in
13172         current process.
13173         (round_to_next): Obsolete function removed.
13174         (preload_heap_section): New variable.
13175         (data_region_size): Obsolete variable removed.
13176         (allocate_heap): Modified to determine end of static heap section
13177         used during preload, and use that as initial base address for
13178         dynamic heap instead of hard-coded value.
13179         (sbrk): Remove call to allocate_heap; handled by init_heap.  Skip
13180         calls to commit or decommit pages when allocating from static heap
13181         section during preload.
13182         (recreate_heap): Obsolete function removed.
13183         (init_heap): New function to initialize internal sbrk heap
13184         variables.  Uses static heap section during preload, otherwise
13185         calls allocate_heap to reserve a heap region dynamically.
13186         (round_heap): Use ROUND_UP macro instead of round_to_next.
13188         * unexw32.c: Major rewrite to support cleaner method of dumping; a
13189         static "bss" section is used for heap space during preload, and
13190         bss data is now written to the proper section area when dumping.
13191         (need_to_recreate_heap): Renamed to using_dynamic_heap.
13192         (heap_index_in_executable): Obsolete variable removed.
13193         (data_section): New variable.
13194         (data_start_va): Renamed to data_start.
13195         (data_start_file): Obsolete variable removed.
13196         (bss_section):
13197         (extra_bss_size):
13198         (bss_section_static):
13199         (bss_start_static):
13200         (bss_size_static):
13201         (extra_bss_size_static):
13202         (heap_section): New variables.
13203         (_start): Remove code based on old unexec method.  Call init_heap
13204         to initialize sbrk heap.
13205         (close_file_data): Update size of file when closing, so that
13206         unexec doesn't have to work out exact size in advance.
13207         (get_bss_info_from_map_file):
13208         (get_section_size): Obsolete functions removed.
13209         (rva_to_section): Fix minor bug, and add a work-around for a bug
13210         in very old linkers.
13211         (offset_to_section):
13212         (relocate_offset): New functions.
13213         (OFFSET_TO_RVA):
13214         (RVA_TO_OFFSET):
13215         (RVA_TO_SECTION_OFFSET):
13216         (PTR_TO_RVA):
13217         (PTR_TO_OFFSET):
13218         (OFFSET_TO_PTR): New macros.
13219         (get_section_info): Modify to support new unexec method;
13220         determines address ranges in process that need dumping, and COFF
13221         sections where data will be dumped.  Allows for static and global
13222         bss data to be in separate ranges.  No longer relies on knowledge
13223         of section names.
13224         (copy_executable_and_dump_data_section): Renamed
13225         copy_executable_and_dump_data.  Completely rewritten to copy
13226         executable section by section, so that raw data areas can be
13227         expanded to hold dumped data as necessary.  Allows for bss data to
13228         be in same section as initialized data.  Reduces size of static
13229         heap section to that used during preload.
13230         (dump_bss_and_heap):
13231         (w32_fatal_reload_error):
13232         (read_in_bss):
13233         (map_in_heap): Obsolete functions removed.
13234         (unexec): Rounds off preload heap to nearest page rather than
13235         virtual allocation unit.  Modified to match other changes.
13237         * mem-limits.h: (get_lim_data): Use reserved_heap_size instead of
13238         data_region_size.
13240         * makefile.nt: (TEMACS_TMP): New macro.
13241         ($(TEMACS)): Output to TEMACS_TMP from link, use post-link
13242         processor to add static heap section in support of new unexec.
13244         * lastfile.c: Include config.h to pick up data layout pragmas.
13245         [WINDOWSNT]: Remove explicit pragma.
13247 1999-01-12  Kenichi Handa  <handa@etl.go.jp>
13249         * coding.c (Fdecode_sjis_char): Decode Japanese Katakana character
13250         correctly.
13251         (Fencode_sjis_char): Encode Japanese Katakana character correctly.
13253 1999-01-11  Dave Love  <fx@gnu.org>
13255         * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
13257 1999-01-11  Richard Stallman  <rms@psilocin.ai.mit.edu>
13259         * keyboard.c (read_key_sequence): In key-translation-map and
13260         function-key-map, handle symbol with array as fn def.
13261         In function-key-map, handle symbol with keymap as fn def,
13262         and autoloaded definitions.
13263         
13264         * puresize.h (BASE_PURESIZE): Increment to 500000.
13266         * print.c (Qtemp_buffer_setup_hook): New variable.
13267         (syms_of_print): Init and staticpro that.
13268         (temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
13270 1999-01-11  Kenichi Handa  <handa@etl.go.jp>
13272         * insdel.c (del_range_1): Call signal_after_change.
13273         (del_range_byte): Likewise.
13274         (del_range_both): Likewise.
13275         (del_range_2): Don't call signal_after_change.
13277         * xdisp.c (message_dolog): Use insert_1_both to avoid running any
13278         Lisp code here.
13280 1999-01-07  Richard Stallman  <rms@psilocin.ai.mit.edu>
13282         * eval.c (find_handler_clause): If SIG is nil (memory full error),
13283         never run the debugger, and don't bother checking the args
13284         to see whether the debugger should be run.
13286 1999-01-06  Richard Stallman  <rms@psilocin.ai.mit.edu>
13288         * keyboard.c (read_key_sequence):
13289         Tell get_keyelt to look handle autoloads.
13290         Handle symbols defined as keymaps, and autoloaded keymaps.
13292 1999-01-06  Kenichi Handa  <handa@etl.go.jp>
13294         * search.c (search_buffer): Fix previous change.
13296 1999-01-06  Eli Zaretskii  <eliz@gnu.org>
13298         * w16select.c (set_clipboard_data): Terminate the text with a null
13299         character.  Don't allow to put binary data into the clipboard.
13300         Return zero in case of success, 1 or 2 otherwise.
13301         (get_clipboard_data): Only bail out if the null character is in
13302         the last 32-byte chunk of clipboard data
13303         (Fw16_set_clipboard_data): Make ok and put_status be unsigned.  If
13304         they save binary data, print a message in the echo area saying the
13305         text was not put into the clipboard.
13307         * msdos.c (IT_write_glyphs): Move constant expression out of the loop.
13309 1999-01-06  Andreas Schwab  <schwab@gnu.org>
13311         * systty.h [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
13312         _BSD_SOURCE, the latter is always defined.
13314 1999-01-05  Richard Stallman  <rms@psilocin.ai.mit.edu>
13316         * fns.c (Frequire): Don't fail to unbind bindings.
13318 1999-01-02  Richard Stallman  <rms@psilocin.ai.mit.edu>
13320         * emacs.c (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit.
13322         * charset.c (Ffind_charset_region): Fix doc typo.
13324 1998-12-31  Eli Zaretskii  <eliz@mescaline.gnu.org>
13326         * msdos.c (IT_write_glyphs): Convert unibyte characters to
13327         multibyte in unibyte buffers only.
13329         * keymap.c (Fdefine_prefix_command): Accept a third argument NAME
13330         and pass it to Fmake_sparse_keymap.
13332 1998-12-29  Richard Stallman  <rms@psilocin.ai.mit.edu>
13334         * alloc.c (MMAP_MAX_AREAS): New macro.
13335         (allocate_vectorlike, make_uninit_multibyte_string): Use that.
13336         (init_alloc_once): Use that.
13338         * s/gnu-linux.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
13340         * alloc.c (lisp_malloc, lisp_free): New functions.
13341         Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
13342         Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
13343         (n_interval_blocks, n_float_blocks): New variable.
13344         (n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
13345         (n_marker_blocks, n_string_blocks): New variable.
13346         (init_intervals, make_interval): Set a count variable.
13347         Use lisp_malloc instead of setting allocating_for_lisp.
13348         (init_float, make_float, init_cons, Fcons): Likewise.
13349         (allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
13350         (init_marker, allocate_misc, init_strings): Likewise.
13351         (make_uninit_multibyte_string): Likewise.
13352         (gc_sweep, compact_strings): Decrement the count variables.
13354         * alloc.c (uninterrupt_malloc): Don't store Emacs's hooks
13355         into the old_..._hook variables.
13357 1998-12-28  Richard Stallman  <rms@psilocin.ai.mit.edu>
13359         * keyboard.c: In each active map, for each menu bar item, use only
13360         the first submap.
13361         (menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
13362         (menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
13363         (syms_of_keyboard): Staticpro and init it.
13365         * xmenu.c (single_keymap_panes): 
13367 1998-12-28  Andrew Innes  <andrewi@delysid.gnu.org>
13369         * w32fns.c (w32_msg_pump): Ignore WM_NULL message posted to thread
13370         by complete_deferred_msg.
13371         (post_character_message): Cancel all deferred messages when
13372         quit_char is typed, in order to break out of potential deadlocks.
13373         (cancel_all_deferred_msgs): New function.
13374         (complete_deferred_msg): Don't abort if msg not found; may have
13375         been cancelled.
13376         (Fw32_reconstruct_hot_key): Use pre-interned symbols.
13377         (Fw32_send_sys_command): Wait for system command to
13378         complete before returning.
13380         * w32term.c (x_iconify_frame): Wait for frame to be iconified; do
13381         not set async_iconified flag though.
13383         * w32proc.c: (Vw32_start_process_inherit_error_mode): New variable.
13384         (create_child): Use it.
13385         (syms_of_ntproc): Defvar it.  Also fix docstrings for
13386         w32-start-process-share-console and w32-start-process-show-window.
13388         * unexw32.c (_start): Force system calls accessing unmounted
13389         devices to fail without prompting.
13391 1998-12-26  Richard Stallman  <rms@psilocin.ai.mit.edu>
13393         * emacs.c (main): Call memory_warnings and uninterrupt_malloc
13394         even when starting the dumped Emacs.
13396         * keymap.c (Fsingle_key_description): Handle (control ?x) etc.
13397         (Fkey_description): Handle lists like vectors.
13399 1998-12-21  Kenichi Handa  <handa@etl.go.jp>
13401         * callint.c (Fcall_interactively) <'C'>: Give Fread_char Qnil
13402         because of the change of the second argument of Fread_char.
13404         * charset.c (Fcharset_after): Check range.  If POS is out of
13405         range, return nil.
13407         * keyboard.c (read_char): Don't bind input-method-exit-on-first-char.
13409         * lread.c (Fread_char): Change the meaning of the second argument.
13410         (Fread_event): Likewise.
13411         (Fread_char_exclusive): Likewise.
13413         * print.c (printchar): Fix previous change.
13415         * process.c (read_process_output): Decide the multibyteness of
13416         string given to a process filter by a coding system used for
13417         decoding the process output.
13419 1998-12-21  Eli Zaretskii  <eliz@mescaline.gnu.org>
13421         * xterm.c (dumpglyphs): Don't convert 7-bit ASCII characters via
13422         nonascii-translation-table.
13423         * msdos.c (IT_write_glyphs): Likewise.
13424         * fns.c (concat): Likewise.
13425         * charset.c (unibyte_char_to_multibyte): Likewise.
13426         * insdel.c (copy_text, count_size_as_multibyte): Likewise.
13428 1998-12-21  Andreas Schwab  <schwab@delysid.gnu.org>
13430         * doc.c (Fdocumentation): Change the doc string for prefix
13431         commands to make it a complete sentence in one line.
13433 1998-12-16  Petri Kaurinkoski  <Petri.Kaurinkoski@hut.fi>
13435         * s/irix6-5.h: New file.
13436         * s/irix6-0.h (IRIX6): Define this symbol.
13437         * s/usg5-4.h (TIOCSIGSEND): Don't define this if irix6.
13438         (bcopy, bcmp, bzero): Likewise.
13439         * m/iris4d.h (LIBS_MACHINE): Leave this blank if irix6.5.
13440         (C_SWITCH_MACHINE): New value for irix6.5.
13442 1998-12-15  Richard Stallman  <rms@gnu.org>
13444         * fns.c (Fbase64_decode_region, Fbase64_decode_string):
13445         Do free malloc'd memory even in case of failure.  Use xfree, not free.
13446         (Fbase64_encode_region, Fbase64_encode_string): Use xfree, not free.
13447         (base64_decode_1): Don't fail for short lines.
13449         * print.c (printchar): Outputting multibyte characters
13450         to echo area always makes it multibyte.
13452         * search.c (search_buffer): Don't use Boyer-Moore
13453         to search for an invalid multibyte code.
13454         In unibyte case, no need to check whether there are translations
13455         in more than one charset; just set charset_base to 0.
13457 1998-12-15  Ken'ichi Handa  <handa@delysid.gnu.org>
13459         * print.c (printchar): Cancel previous change.
13461 1998-12-15  Kenichi Handa  <handa@etl.go.jp>
13463         * callproc.c: Include "ccl.h".
13464         (Fcall_process): Doc-string modified.  Set CODING_MODE_LAST_BLOCK
13465         bit in argument_coding.mode to tell encoding procedure to flush
13466         data.  While encoding arguments, if argument_coding uses CCL
13467         program, initialize it again after encoding.
13468         (Fcall_process_region): Doc-string modified.  Handle the case that
13469         NARGS is 3.
13471         * ccl.c (CCL_SUCCESS): Don't set ccl->ic.
13472         (ccl_driver) <CCL_End>: Pretend that all source text is consumed.
13473         Set `ic' to the head of this command.
13474         (ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
13475         code for an invalid code.
13476         (setup_ccl_program): If the arg VEC is nil, skip setting ups
13477         based on VEC.
13479         * charset.c (Qunknown): New variable.
13480         (init_charset_once): Intern and staticpro Qunknown.  Initialize
13481         all elements of Vcharset_symbol_table to Qunknown.
13482         (find_charset_in_str): New arg MULTIBYTE.  If it is zero, check
13483         unibyte characters only.  For an invalid composition sequence, set
13484         CHARSETS[1] to 1.
13485         (Ffind_charset_region): Call find_charset_in_str with an
13486         appropriate MULTIBYTE arg.  If undefined charsets are found,
13487         include `unknown' is the return value.
13488         (Ffind_charset_string): Likewise.
13489         (Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
13490         (str_cmpchar_id): Max composite character code should be less than
13491         GENERIC_COMPOSITION_CHAR.
13493         * charset.h (find_charset_in_str): Update declaration.
13495         * coding.c (DECODE_DESIGNATION): Jump to label_invalid_code if
13496         final_char is invalid.
13497         (decode_coding): If coding->type is coding_type_ccl, call
13498         ccl_coding_driver even if SRC_BYTES is zero.
13499         (code_convert_region): Update `inserted' correctly after calling
13500         coding->post_read_conversion.  Even after the code converter
13501         consumed all source text, call it once more if it is
13502         coding_type_ccl to flush out data.
13504         * fileio.c (Finsert_file_contents): Even if INSERTED is zero, if
13505         CODING is handled by CCL program, call code_convert_region.
13507         * fns.c (string_char_to_byte): Handle invalid multibyte sequence
13508         correctly.
13509         (string_byte_to_char): Likesize.
13511         * print.c (printchar): When outputting a multibyte character to
13512         echo area, always set message_enable_multibyte to 1.
13514         * process.c (read_process_output): If NBYTES is zero and
13515         CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
13516         and try decoding again.
13517         (Fprocess_send_eof): If the coding system of PROCESS
13518         requires flushing, call send_process with null-string at first.
13520         * w16select.c (Fw16_set_clipboard_data): Call find_charset_in_str
13521         with MULTIBYTE arg 0.
13522         * w32select.c (Fw32_set_clipboard_data): Likewise.
13523         * xselect.c (lisp_data_to_selection_data): Likewise.
13525 1998-11-30  Richard Stallman  <rms@psilocin.ai.mit.edu>
13527         * search.c (Freplace_match): Set OPOINT clearly for the case
13528         where point is in the middle of the text to be replaced.
13530         * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
13531         if compute_motion fails to advance at all, don't back it up.
13533 1998-12-10  Geoff Voelker  <voelker@cs.washington.edu>
13535         * w32.c (w32_get_long_filename): Handle root dirs correctly.
13537         * s/ms-w32.h (LOCALTIME_CACHE): Define. 
13539 1998-12-09  Richard Stallman  <rms@gnu.org>
13541         * insdel.c (insert_from_buffer_1): Properly count the size
13542         of output from conversion to multibyte even when input
13543         is split across the gap.
13545 1998-12-09  Karl Heuer  <kwzh@gnu.org>
13547         * keyboard.c: Doc fixes.
13549         * s/irix4-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
13551 1998-12-08  Andrew Innes  <andrewi@harlequin.co.uk>
13553         * w32select.c (Fw32_get_clipboard_data): Do not delete isolated CR
13554         characters, only convert CRLF to LF.
13556 1998-12-08  Geoff Voelker  <voelker@cs.washington.edu>
13558         * makefile.nt: Do string comparision of _NMAKE_VER.
13560 1998-12-06  Eli Zaretskii  <eliz@mescaline.gnu.org>
13562         * Makefile.in (msdos.o): Depend on termchar.h, charset.h,
13563         coding.h, and disptab.h
13565         * msdos.c (Vdos_unsupported_char_glyph): New variable.
13566         (syms_of_msdos): DEFVAR_LISP it.
13567         (IT_insert_glyphs, IT_delete_glyphs): New functions which abort Emacs.
13568         (internal_terminal_init): Set up insert_glyphs_hook and
13569         delete_glyphs_hook to call them.  Explicitly set char_ins_del_ok to 0.
13570         (unibyte_display_via_language_environment): New variable.
13571         (syms_of_msdos): Devfar it.
13572         (IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
13573         Encode the character codes of the glyphs according to the
13574         terminal_coding in effect.
13576 1998-12-04  Andreas Schwab  <schwab@delysid.gnu.org>
13578         * fns.c (Fstring_as_unibyte): Doc fix.
13580 1998-12-03  Andreas Schwab  <schwab@delysid.gnu.org>
13582         * charset.h: Declare char_valid_p.
13584 1998-12-03  Eli Zaretskii  <eliz@mescaline.gnu.org>
13586         * dosfns.c (dos_cleanup): Flush and fsync the termscript stream.
13588         * msdos.c (init_environment): Record the time we started up.
13589         (IT_reset_terminal_modes): Don't restore the screen if we exit too
13590         fast after startup (aka crash).
13592 1998-12-02  Geoff Voelker  <voelker@cs.washington.edu>
13594         * w32.c (check_windows_init_file): Use decode_env_path when
13595         using EMACSLOADPATH.
13597 1998-12-02  Jason Rumney  <jasonr@altavista.net>
13599         * w32term.c (dumpglyphs): Use unsigned char arrays.
13600         Use FONT_MAX_WIDTH to detect and fudge proportional fonts
13601         for various languages.
13602         Compensate for fonts that have underhangs (e.g., Thai).
13604         * w32term.h (FONT_MAX_WIDTH): New macro.
13606 1998-12-02  Andrew Innes  <andrewi@harlequin.co.uk>
13608         * keyboard.c (Qlanguage_change): New variable.
13609         (syms_of_keyboard): Init it.
13610         (kbd_buffer_get_event) [WINDOWSNT]: Generate language-change events.
13611         (lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
13612         keys; add name for Escape key; extend to 256 elements.
13613         (parse_modifiers): Make non-static.
13615         * keyboard.h (parse_modifiers): Declare prototype.
13617         * termhooks.h (event_kind) [WINDOWSNT]: Define language_change_event.
13619         * w32fns.c (w32_last_error): Fix cut+paste error.
13620         (Vw32_phantom_key_code): New variable.
13621         (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New variables.
13622         (syms_of_w32fns): Init and register them.
13623         (reset_modifiers): Use a more precise test for whether Emacs has
13624         keyboard focus.  Synchronize state of all keys that can be used as
13625         modifiers, to overcome problems arising from hot-keys.
13626         (w32_key_to_modifier): Be careful not to call intern() to avoid
13627         requiring thread synchronization.
13628         (w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
13629         (w32_wnd_proc): Ensure lock key indicator lights are updated
13630         promptly on Windows 9x, by passing key events on to the system.
13631         (w32_wnd_proc): Use Vw32_phantom_key_code to stop system
13632         responding to Windows key events when not wanted.
13633         (w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
13634         Ctrl-NumLock into pause by the system.
13635         (w32_wnd_proc): Don't translate key combinations containing any
13636         modifiers other than shift (and capslock).
13637         (w32_wnd_proc): Reset modifier key states when receiving focus (we
13638         can't determine the key states until we have keyboard focus).
13639         (Fw32_toggle_lock_key): New function.
13640         (syms_of_w32fns): Defsubr it.
13642         * w32inevt.c (key_event): Use Vw32_phantom_key_code.  Undo the
13643         mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
13644         (w32_console_toggle_lock_key): New function.
13646         * w32term.h (WM_EMACS_TOGGLE_LOCK_KEY): New define.
13648 1998-11-30  Richard Stallman  <rms@psilocin.ai.mit.edu>
13650         * search.c (Freplace_match): Set OPOINT clearly for the case
13651         where point is in the middle of the text to be replaced.
13653         * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
13654         if compute_motion fails to advance at all, don't back it up.
13656 1998-11-28  Richard Stallman  <rms@psilocin.ai.mit.edu>
13658         * xfns.c (Qouter_window_id): New variable.
13659         (syms_of_xfns): Initialize it.
13660         (x_report_frame_params): Set up outer-window-id parameter.
13662         * keymap.c (Fsingle_key_description): Fix previous change.
13664 1998-11-26  Ken'ichi Handa  <handa@delysid.gnu.org>
13666         * lisp.h (Frequire): Update declaration.
13668 1998-11-26  Kenichi Handa  <handa@etl.go.jp>
13670         * ccl.c (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
13671         if the charset is ascii.
13672         (ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
13674         * charset.c (non_ascii_char_to_string): If C has modifier bits,
13675         make an appropriate one byte string.
13676         (char_bytes): Handle the case that C is a single byte char or has
13677         modifier bits.
13679         * charset.h (CHAR_BYTES): If C has modifier bits, return 1.
13681         * cmds.c (internal_self_insert): If C has modifier bits, insert
13682         appropriate one byte char.
13684 1998-11-25  Richard Stallman  <rms@psilocin.ai.mit.edu>
13686         * fns.c (Fstring_as_unibyte, Fstring_as_multibyte):
13687         Clear text properties in the new string.
13689 1998-11-24  Felix Lee  <flee@cygnus.com>
13691         * process.c (read_process_output): Call signal_after_change.
13693 1998-11-24  Richard Stallman  <rms@psilocin.ai.mit.edu>
13695         * buffer.c (syms_of_buffer): Doc fix.
13697         * keyboard.c (syms_of_keyboard): Doc fix.
13699 1998-11-22  Richard Stallman  <rms@psilocin.ai.mit.edu>
13701         * frame.c (Fset_mouse_position): Doc fix.
13703 1998-11-20  Richard Stallman  <rms@psilocin.ai.mit.edu>
13705         * keymap.c (Fmake_keymap): Doc fix.
13707 1998-11-17  Kenichi Handa  <handa@etl.go.jp>
13709         * category.c (word_boundary_p): If C1 or C2 are composite
13710         characters, test their first components.
13712 1998-11-16  Richard Stallman  <rms@sucrose.ai.mit.edu>
13714         * window.c (temp_output_buffer_show): Around temp-buffer-show-hook,
13715         don't do save-excursion, just restore selected window.
13717         * window.c (window_loop): For UNSHOW_BUFFER,
13718         always do consider minibuffer windows.
13719         
13720 1998-11-16  Kenichi Handa  <handa@etl.go.jp>
13722         * charset.h (SINGLE_BYTE_CHAR_P): Check if C is negative or not.
13724         * charset.c (non_ascii_char_to_string): If C is negative, signal error.
13726         * lisp.h (CHAR_TABLE_REF): Check if IDX is negative or not.
13728         * s/bsdos4.h: New file.
13730 1998-11-16  Kenichi Handa  <handa@etl.go.jp>
13732         * Makefile.in (abbrev.o): Depend on charset.h
13733         (bytecode.o): Depend on charset.h.
13735         * bytecode.c: Include charset.h.
13737         * abbrev.c: Include charset.h.
13739         * syntax.h (SYNTAX_ENTRY_INT): For a composite character, check
13740         the first component.
13742 1998-11-13  Ehud Karni  <ehud@unix.simonwiesel.co.il>
13744         * m/aviion-intel.h (LIBS_MACHINE): Delete redundant definition.
13746 1998-11-11  Richard Stallman  <rms@gnu.org>
13748         * xterm.c (XTread_socket): Fix previous change in case F == 0.
13750         * s/dgux5-4-3.h (BSD_PGRPS): Add #undef.
13752         * s/dgux4.h (BROKEN_FIONREAD): #undef commented out.
13753         (INTERRUPT_INPUT): #define commented out.
13755         * m/aviion-intel.h: New file.
13757 1998-11-11  Eli Zaretskii  <eliz@delysid.gnu.org>
13759         * fns.c (MAX_ALLOCA): New macro.
13760         (Fbase64_encode_region, Fbase64_encode_string,
13761         Fbase64_decode_region, Fbase64_decode_string):  Don't allocate
13762         more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
13764 1998-11-11  Ken'ichi Handa  <handa@delysid.gnu.org>
13766         * insdel.c (byte_combining_error): Error message improved.
13768         * charset.c (char_valid_p): Handle a composite character correctly.
13770 1998-11-11  Kenichi Handa  <handa@etl.go.jp>
13772         * charset.c (str_cmpchar_id): Check the byte sequence for
13773         composition more rigidly.
13774         (Fcompose_string): Allow DEL to be composed.  Signal error if STR
13775         contains an invalid multibyte sequence.
13777         * xterm.c (x_list_fonts): Don't change the value of maxnames.
13779 1998-11-10  Andrew Innes  <andrewi@harlequin.co.uk>
13781         * w32term.h (struct w32_display_info): New element faked_key.
13782         (WM_EMACS_SETKEYBOARDLAYOUT): 
13783         (WM_EMACS_REGISTER_HOT_KEY): 
13784         (WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
13785         (LEFT_WIN_PRESSED): 
13786         (RIGHT_WIN_PRESSED): 
13787         (APPS_PRESSED): New console keyboard modifier flags.
13789         * w32term.c (convert_to_key_event): Removed.
13790         (is_dead_key): Copied to w32fns.c.
13791         (w32_read_socket): Generate language_change_event.  Modify to work
13792         with keyboard handling changes in w32_wnd_proc.
13794         * w32proc.c (sys_kill): Set extended key flag when faking
13795         Ctrl-Break keystrokes.
13796         (Fw32_get_locale_info): Allow LONGFORM parameter to specify an
13797         arbitrary locale property using a numerical index.
13798         (Vw32_valid_codepages): New variable.
13799         (enum_codepage_fn): 
13800         (Fw32_get_valid_codepages): 
13801         (Fw32_get_console_codepage): 
13802         (Fw32_set_console_codepage): 
13803         (Fw32_get_console_output_codepage): 
13804         (Fw32_set_console_output_codepage): 
13805         (Fw32_get_codepage_charset): 
13806         (Fw32_get_valid_keyboard_layouts): 
13807         (Fw32_get_keyboard_layout): 
13808         (Fw32_set_keyboard_layout): New functions, exposing Windows locale
13809         handling functions.
13810         (syms_of_ntproc): Register them.
13812         * w32inevt.c: Include w32term.h and w32heap.h.
13813         (map_keypad_keys):
13814         (Vw32_enable_caps_lock):
13815         (Vw32_enable_num_lock):
13816         (Vw32_pass_lwindow_to_system):
13817         (Vw32_pass_rwindow_to_system):
13818         (Vw32_lwindow_modifier):
13819         (Vw32_rwindow_modifier):
13820         (Vw32_apps_modifier):
13821         (Vw32_scroll_lock_modifier):
13822         (w32_key_to_modifier): Add externs.
13823         (w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
13824         Scroll Lock as potential modifiers; exclude numpad keys from
13825         effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
13826         code.
13827         (is_dead_key): Copy from w32fns.c.
13828         (w32_kbd_patch_key): Comment attempt to improve handling of
13829         dead-keys, and system bug relating to same on Windows NT.  Work
13830         around the bug by calling ToUnicode and then converting to the
13831         correct codepage.
13832         (map_virt_key): Removed obsolete variable.
13833         (lispy_function_keys): Add extern.
13834         (key_event): Major rework of keyboard input handling: optionally
13835         recognize Windows keys and Apps key as modifiers; optionally treat
13836         NumLock, CapsLock and ScrollLock as function keys; let system
13837         translate keystrokes to characters to avoid system bugs relating
13838         to dead-key handling; preserve shift distinction for control
13839         characters.  Remove some obsolete code.
13841         * makefile.nt ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
13842         and w32heap.h.
13844         * w32fns.c (Vw32_pass_optional_keys_to_system): Variable removed.
13845         (Vw32_pass_lwindow_to_system):
13846         (Vw32_pass_rwindow_to_system):
13847         (Vw32_lwindow_modifier):
13848         (Vw32_rwindow_modifier):
13849         (Vw32_apps_modifier):
13850         (Vw32_enable_num_lock):
13851         (Vw32_enable_caps_lock):
13852         (Vw32_scroll_lock_modifier): New variables.
13853         (modifier_set): Return toggle state for Scroll Lock.
13854         (w32_key_to_modifier): New function.  Returns chosen modifier bit
13855         for given key.
13856         (w32_get_modifiers): Returns modifier flags for
13857         non-keyboard input events.
13858         (construct_console_modifiers): Renamed from construct_modifiers;
13859         recognize Windows and Apps keys as modifiers.
13860         (w32_get_key_modifiers): New function.  Returns modifier flags for
13861         keyboard input events.
13862         (map_keypad_keys): Make non-static.  Use second arg as extended
13863         flag.
13864         (w32_grabbed_keys): New variable.
13865         (HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
13866         (register_hot_keys):
13867         (unregister_hot_keys):
13868         (lookup_vk_code):
13869         (w32_parse_hot_key):
13870         (Fw32_register_hot_key):
13871         (Fw32_unregister_hot_key):
13872         (Fw32_registered_hot_keys):
13873         (Fw32_reconstruct_hot_key): New functions to support hotkeys.
13874         (post_character_message): New function.
13875         (w32_msg_pump): Handle new messages for using hotkeys and changing
13876         keyboard layout/language.
13877         (w32_wnd_proc): Major rework of keyboard input handling:
13878         optionally recognize Windows keys and Apps key as modifiers;
13879         optionally treat NumLock, CapsLock and ScrollLock as function
13880         keys; let system translate keystrokes to characters to avoid
13881         system bugs relating to dead-key handling; preserve shift
13882         distinction for control characters; forward keyboard
13883         layout/language changes to lisp; detect and convert hot-key events
13884         to normal keystrokes.
13885         (syms_of_w32fns): Register new functions and variables.
13886         (w32_last_error): New function for use in debugging.
13888 1998-11-10  Kenichi Handa  <handa@etl.go.jp>
13890         * category.h (CATEGORY_SET): Adjusted for the change of
13891         cmpchar_component.
13892         (CATEGORY_SET): Likewise.
13894         * charset.c (cmpchar_component): New arg NOERROR.  Check
13895         composition char ID more strictly.
13896         (Fcmpchar_component): Call cmpchar_component with NOERROR arg zero.
13897         (Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
13898         return 255.
13899         (Fcompose_string): Signal error if STR contains a rule-based
13900         composition character.
13902         * charset.h (cmpchar_component): Proto-type adjusted.
13904 1998-11-09  Kenichi Handa  <handa@etl.go.jp>
13906         * charset.c (string_to_non_ascii_char): Return correct length for
13907         a charset of dimension 2 and composition character.
13909 1998-11-08  Richard Stallman  <rms@sucrose.ai.mit.edu>
13911         * keymap.c (Fsingle_key_description): Handle generic characters.
13913         * process.c (Fprocess_status): Doc fix.
13915 1998-11-06  Ken'ichi Handa  <handa@delysid.gnu.org>
13917         * charset.c (init_charset_once): Fix previous change.
13919 1998-11-06  Kenichi Handa  <handa@etl.go.jp>
13921         * charset.c (string_to_non_ascii_char): Fix previous change.
13922         (char_valid_p): Check the validity of CHARSET by CHARSET_DEFINED_P.
13924         * charset.h (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
13925         character correctly.
13926         (STRING_CHAR): Handle an invalid charater correctly.
13928 1998-11-05  Kenichi Handa  <handa@etl.go.jp>
13930         * charset.c (string_to_non_ascii_char): Fix previous change.
13932         * charset.h (MAKE_NON_ASCII_CHAR): Check validity of CHARSET.
13934         * editfns.c (Fstring_to_char): Don't return a multibyte character
13935         if STRING is a unibyte string.
13937         * indent.c (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte
13938         character.
13940         * xdisp.c (display_text_line): Check validity of a multibyte character.
13941         (display_string): Likewise.  Handle an invalid character correctly.
13943 1998-11-05  Karl Heuer  <kwzh@gnu.org>
13945         * insdel.c (Fcombine_after_change_execute): Return nil, not junk.
13946         If nothing to do, return immediately.
13947         (syms_of_insdel): Initialize combine_after_change_buffer.
13949 1998-11-05  Richard Stallman  <rms@gnu.org>
13951         * xterm.c (XTread_socket): ButtonPress clears f->mouse_moved.
13953 1998-11-04  Geoff Voelker  <voelker@cs.washington.edu>
13955         * w32term.c (w32_enable_unicode_output): Rename from
13956         w32_no_unicode_output.
13957         (w32_use_unicode_for_codepage, syms_of_w32term): Use new name
13958         and new semantics.
13960 1998-11-04  Jason Rumney  <jasonr@altavista.net>
13962         * w32fns.c (w32_list_fonts): Report an error if a frame has not
13963         been created yet.
13965         * w32term.c (dumpglyphs): Use FRAME_FONT for w32_fill_area.
13967 1998-11-04  Kenichi Handa  <handa@etl.go.jp>
13969         * charset.c (string_to_non_ascii_char): Change the check for the
13970         varidity of multibyte form.
13971         (update_charset_table): Check validity of BYTES.  Don't set
13972         bytes_by_char_head here.
13973         (init_charset_once): Set bytes_by_char_head completely.
13975         * frame.c (do_switch_frame): Cancel previous change.
13977         * print.c (print_string): Check validity of a character.
13978         (print): Likewise.
13980         * sysdep.c [nec_ews_svr4]: Extern *_sobuf.
13982         * m/ews4800.h, s/ux4800.h: New files.
13984 1998-11-03  Theodore Jump <tjump@tertius.com>
13986         * makefile.nt: Compile multiple source files when possible.
13988         * w32faces.c (Qmouse_face): Replace definition with extern decl.
13989         
13990 1998-11-03  Andrew Innes  <andrewi@delysid.gnu.org>
13992         * w32.c (stat): GetFileInformationByHandle can legitimately fail,
13993         so don't rely on it succeeding.
13995         * w32fns.c (x_to_w32_font): Specify DEFAULT_CHARSET in the w32
13996         LOGFONT struct if x font doesn't specify the charset.
13997         (x_to_w32_charset): Change >= to == when testing results of
13998         stricmp.
14000 1998-11-02  Richard Stallman  <rms@sucrose.ai.mit.edu>
14002         * fns.c (Frequire): New arg NOERROR.
14004 1998-11-02  Andrew Innes  <andrewi@harlequin.co.uk>
14006         * fileio.c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo.
14008 1998-10-31  Richard Stallman  <rms@psilocin.ai.mit.edu>
14010         * xfaces.c (Qmouse_face): Replace definition with extern decl.
14011         (syms_of_xfaces): Initialization deleted.
14013         * textprop.c (Qmouse_face): Variable definition moved here.
14014         (syms_of_textprop): Initialize it.
14016         * data.c (set_internal): For built-in maybe-local vars,
14017         when BINDFLAG is set, do not mark them as local.
14019 1998-10-31  Ken'ichi Handa  <handa@delysid.gnu.org>
14021         * insdel.c (replace_range): Fix previous change.
14023 1998-10-31  Kenichi Handa  <handa@etl.go.jp>
14025         * editfns.c (Fsubst_char_in_region): Fix previous change.
14026         (Ftranslate_region): Fix previous change.
14028         * fns.c (Fbase64_decode_region): Fix previous change.
14030         * frame.c (do_switch_frame): Update minibuf_window if necessary.
14032         * insdel.c (byte_combining_error): New function.
14033         (CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
14034         (insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
14035         CHECK_BYTE_COMBINING_FOR_INSERT.
14036         (insert_from_buffer_1): Likewise.
14037         (adjust_after_replace): Check the posibility of inhibitted byte
14038         combining correctly.
14039         (replace_range): Before signaling an error for inhibitted byte
14040         combining, recover the buffer in a safe state.
14041         (del_range_2): Check the posibility of inhibitted byte combining
14042         correctly.
14044 1998-10-30  Andreas Schwab  <schwab@delysid.gnu.org>
14046         * xselect.c (Vselection_coding_system): Doc fix.
14048         * fns.c (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
14049         when we have both char and byte position.  Fix type clashes.
14051         * eval.c (Fsignal): Use a separate format string when passing
14052         error message string to fatal, in case it contains %'s.
14054         * editfns.c (Fchar_after): Fix type clashes.
14056         * charset.c (Fchar_bytes): Doc fix.
14057         (char_bytes): Fix returned value to match returned type.
14058         (syms_of_charset): Fix type clash in initialisation of
14059         Vauto_fill_chars.
14061 1998-10-29  Geoff Voelker  <voelker@cs.washington.edu>
14063         * w32console.c (initialize_w32_display): Use buffer coords
14064         instead of buffer size (which may be larger than the window).
14066         * fileio.c (init_fileio_once): New function.
14068         * emacs.c (main): Invoke init_fileio_once.
14070 1998-10-28  Paul Eggert  <eggert@twinsun.com>
14072         * xterm.c (XTread_socket): Check the returned value of
14073         XmbLookupString more carefully.
14075 1998-10-28  Kenichi Handa  <handa@etl.go.jp>
14077         * coding.c (DECODE_CHARACTER_ASCII): Check validity of inserted code.
14078         (DECODE_CHARACTER_DIMENSION1): Likewise.
14079         (DECODE_CHARACTER_DIMENSION2): Likewise.
14080         (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
14082         * editfns.c (Fsubst_char_in_region): Fix previous change.
14083         (Ftranslate_region): Fix previous change.
14085         * insdel.c (check_markers): Check if markers are at character boundry.
14086         (adjust_markers_for_insert): Fix previous change.
14087         (count_combining_before): Don't limit the check at BEGV.
14088         (count_combining_after): Don't limit the check at ZV.
14089         (CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
14090         (insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
14091         (insert_from_string_1): Likewise.
14092         (insert_from_buffer_1): Likewise.
14093         (adjust_after_replace): Inhibit bytes combined across region
14094         boundary.  Update end_unchanged correctly.
14095         (replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT.  Update
14096         end_unchanged correctly.
14097         (del_range_2): Inhibit bytes combined across region boundary.
14098         Update end_unchanged correctly.
14100 1998-10-27  Geoff Voelker  <voelker@cs.washington.edu>
14102         * w32.c (check_windows_init_file): Also look in load path specified
14103         in environment.
14105         * w32console.c (Fset_message_beep): Recognize 'silent.
14106         (w32_sys_ring_bell): Do nothing for the 'silent sound.
14107         
14108         * w32fns.c (w32_color_map_lookup): Remove duplicate definition.
14110         * w32select.c (Vnext_selection_coding_system): New variable.
14111         (syms_of_w32select): DEFVAR_LISP it.
14112         (Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
14113         non-nil.  Always convert multibyte strings.
14114         (Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
14115         non-nil.  Always convert a string that includes non-ASCII characters.
14116         
14117 1998-10-27  Richard Stallman  <rms@psilocin.ai.mit.edu>
14119         * fns.c (Fbase64_decode_string): Doc fix.
14120         (Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
14121         Likewise.
14123 1998-10-27  Dave Love  <fx@gnu.org>
14125         * fns.c (Fbase64_decode_region, Fbase64_encode_region): Fix
14126         newline in doc string.
14128 1998-10-27  Kenichi Handa  <handa@etl.go.jp>
14130         * editfns.c (Fsubst_char_in_region): Correctly handle the case
14131         that byte combining before happens.
14132         (Ftranslate_region): Likewise.
14134         * insdel.c (adjust_after_replace): Correctly handle the case that
14135         both byte combining before and byte combining after happen.
14136         (replace_range): Likewise.
14138 1998-10-26  Kenichi Handa  <handa@etl.go.jp>
14140         * category.c (syms_of_category): Doc-string modified.
14142         * coding.c (code_convert_region): Kill the work buffer created by
14143         pre-write-conversion.
14145 1998-10-25  Jason Rumney  <jasonr@altavista.net>
14147         * emacs.c (main) [HAVE_NTGUI]: Invoke syms_of_fontset().
14149 1998-10-23  Kenichi Handa  <handa@etl.go.jp>
14151         * coding.c (code_convert_region): While preserving the orignal
14152         point, pay attention to the byte combining problem.
14154         * fns.c (Fbase64_decode_region): Pay attention to the byte
14155         combining problem.
14157         * insdel.c (adjust_markers_for_insert): Adjust markers by taking
14158         combined_before_bytes and combined_after_bytes into account.
14159         (count_combining_after): Handle the case that LENGTH is zero.
14160         (adjust_after_replace): Record deletion at correct buffer
14161         position.  Handle the case that LEN is zero.
14162         (replace_range): Record deletion at correct buffer position.
14163         (del_range_2): Call adjust_makers_for_replace to adjust makers for
14164         combined bytes.
14166 1998-10-21  Richard Stallman  <rms@psilocin.ai.mit.edu>
14168         * alloc.c (Fgarbage_collect): Block input around most of the function.
14169         
14170 1998-10-21  Kenichi Handa  <handa@etl.go.jp>
14172         * coding.c (setup_coding_system): Fix setting up
14173         coding->spec.ccl.valid_codes for CCL based coding system.
14174         (code_convert_region): Set point to FROM before inserting the
14175         result of pre-write-funciton.  Preserve original point.
14176         (code_convert_string): If coding->type is coding_type_ccl, do
14177         conversion even if the length of conversion region is zero.
14179         * fontset.c: Include frame.h before fontset.h.
14180         (list_fonts_func): Fix prototype.       
14182         * frame.c: Include frame.h before fontset.h.
14184         * xterm.c: Likewise.
14186 1998-10-21  Jason Rumney  <jasonr@altavista.net>
14188         * x-list-font.c (Fx_list_fonts): Access frame parameters throught
14189         general macros.   Don't call x_list_font directory, instead call a
14190         function set in list_fonts_func.
14192         * fontset.h (list_fonts_func): Fix prototype.
14194 1998-10-20  Jason Rumney  <jasonr@altavista.net>
14196         * makefile.nt (w32fns.c): Add x-list-font.c to dependancies.
14198         * w32faces.c: Update comments referring to obsolete structs.
14199         (allocate_face, copy_face, face_eql, load_font,
14200         Fpixmap_spec_p, free_frame_faces, new_computed_face,
14201         frame_update_line_height, merge_faces, compute_base_face,
14202         Fset_face_attribute_internal): Use fontset support based on xfaces.c.
14204         * w32fns.c: (Vx_pixel_size_width): New global variable.
14205         (unibyte_display_via_language_environment): New global variable.
14206         (x_set_font): Add support for setting fontsets.
14207         (Fx_create_frame): Add check_w32(). Initialize fontsets.  Fix
14208         font names to match xlfd-tight-regexp.
14209         (w32_load_font): Rewrite based on x_load_font.
14210         (x_to_w32_charset, w32_to_x_charset): Add character sets.  Use
14211         `iso8859-1' rather than `ansi'.
14212         (w32_to_x_font): Remove `-' from font name.  Remove the `-' off the
14213         end. Move charset into `charset registry' field.
14214         (enum_font_cb2): Check charsets match.  Include width in font list.
14215         (w32_list_fonts): Rewrite based on x_list_fonts.
14216         Moved from w32term.c to have access to enumfont_t struct.
14217         (Fx_list_fonts): w32 specific version eliminated.  Include
14218         `x-list-fonts.c'.
14219         (w32_get_font_info, w32_query_font, w32_find_ccl_program): New
14220         functions for fontset support - adapted from x_ equivalents.
14221         (syms_of_w32fns): New lisp variables initialised.  Function
14222         pointers for fontset.c set up.
14224         * w32term.c: Include fontset.h.  Define codepage macros. 
14225         Add ENCODE_BIG5 macro from coding.c.
14226         (w32_no_unicode_output): New variable.
14227         (w32_codepage_for_charset, w32_use_unicode_for_codepage): New
14228         functions.
14229         (BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
14230         (dumpglyphs): Rewrite based on xterm.c equivalent.
14231         (x_new_font): Use functionality provided in fontset.c.
14232         (x_new_fontset): New function based on the one in xterm.c.
14233         (syms_of_w32term): Add w32-no-unicode-output flag.
14235         * w32term.h: Remove redundant font_info struct definition. 
14236         (Vx_pixel_size_width_font_regexp,
14237         unibyte_display_via_language_environment): Declare variables.
14238         (w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font): 
14239         Declare functions.
14240         (w32_output): New fields font_baseline and fontset.
14241         (FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
14243         * w32xfns.c: Include charset.h and fontset.h.
14245 1998-10-20  Richard Stallman  <rms@psilocin.ai.mit.edu>
14247         * syntax.c (syms_of_syntax): Fix the setup of Qscan_error.
14249 1998-10-20  Eli Zaretskii  <eliz@mescaline.gnu.org>
14251         * msdos.c (mouse_init): Reset the button press/release info of the
14252         mouse driver.
14253         (mouse_preempted): New variable.
14254         (dos_rawgetc): Don't generate mouse events if mouse is preempted.
14255         (XMenuActivate): Preempt the mouse during menu-handling loop.
14256         Release the current time slice while idling in the menu-handling
14257         loop.  Leave the loop only if the user pressed, then released the
14258         same button.  Discard all mouse events that are pending in the
14259         event queue before exiting.
14261 1998-10-19  Richard Stallman  <rms@psilocin.ai.mit.edu>
14263         * editfns.c (Fformat): Increase buffer size for floating format.
14265 1998-10-17  Kenichi Handa  <handa@etl.go.jp>
14267         * charset.c (Vauto_fill_chars, Qauto_fill_chars): New variables.
14268         (syms_of_charset): Staticpro and initialize Qauto_fill_chars.
14269         Declare auto-fill-chars as a Lisp variable and initialize it.
14271         * charset.h (Vauto_fill_chars): Extern it.
14273         * cmds.c (internal_self_insert): Check Vauto_fill_chars.
14275 1998-10-16  Kenichi Handa  <handa@etl.go.jp>
14277         * casefiddle.c (casify_object): Use make_string instead of
14278         make_specified_string to cope with byte-combining situation.
14280         * coding.c (decode_coding_iso2022): Set coding->fake_multibyte to
14281         1 when encountered with a code of the range 0x80..0x9F.
14283 1998-10-14  Eli Zaretskii  <eliz@mescaline.gnu.org>
14285         * callproc.c (Fcall_process) [MSDOS]: Use $TMPDIR instead of
14286         trying $TMP and $TEMP, since the former is always set in msdos.c.
14287         (Fcall_process_region) [DOS_NT]: When looking for a place to put
14288         the temporary files, check $TMPDIR as well.
14290 1998-10-14  Richard Stallman  <rms@psilocin.ai.mit.edu>
14292         * process.c (exec_sentinel, read_process_output): 
14293         Restore waiting_for_user_input_p after running Lisp code.
14295         * keyboard.c (parse_menu_item): Avoid initialization for Lisp_Object.
14296         (command_loop): Likewise.
14298 1998-10-14  Kenichi HANDA  <handa@etl.go.jp>
14300         * data.c (Faset): Fix previous change.
14302         * fns.c (Ffillarray): Fix previous change.
14304         * insdel.c (adjust_markers_for_combining): This function deleted.
14305         (adjust_markers_for_replace): Correctly adjust marker positions.
14306         Don't record these adjustment because they were recorded already.
14307         (combine_bytes): Don't adjust markers here.
14309 1998-10-13  Richard Stallman  <rms@psilocin.ai.mit.edu>
14311         * minibuf.c (Fdisplay_completion_list): Put on mouse-face properties.
14313 1998-10-12  Richard Stallman  <rms@psilocin.ai.mit.edu>
14315         * keyboard.c (Fclear_this_command_keys): New function.
14316         (syms_of_keyboard): defsubr it.
14318         * macros.c (Fexecute_kbd_macro): Set real_this_command.
14320 1998-10-12  Kenichi Handa  <handa@etl.go.jp>
14322         * ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
14324         * charset.c (Fstring): Call make_string instead of
14325         make_string_from_bytes.
14326         (Ffind_charset_region): Include `composition' in the returned list
14327         if the region contains any composite characters.
14328         (Ffind_charset_string): Include `composition' in the returned list
14329         if the string contains any composite characters.
14330         (find_charset_in_str): Handle CMPCHARP arg correctly.
14332         * coding.c (shrink_decoding_region): If a charset other than ascii
14333         is initially designated to G0, don't shrink the region.
14334         (shrink_encoding_region): Likewise.
14336         * data.c (Faset): If ARRAY is a multibyte string, pay attention to
14337         byte-combining situation.
14339         * fns.c (clear_string_char_byte_cache): New function.
14340         (Ffillarray): Handle multibyte string correctly.
14342         * lisp.h (clear_string_char_byte_cache): Extern it.
14344         * xselect.c (lisp_data_to_selection_data): Call
14345         find_charset_in_str with CMPCHARP arg 0.
14346         * w16select.c (Fw16_set_clipboard_data): Likewise.
14347         * w32select.c (Fw32_set_clipboard_data): Likewise.
14349 1998-10-11  Richard Stallman  <rms@psilocin.ai.mit.edu>
14351         * keyboard.c (parse_menu_item): For top level of menu bar,
14352         accept ordinary commands, and treat them just like a keymap.
14354 1998-10-11  Richard Stallman  <rms@sucrose.ai.mit.edu>
14356         * xdisp.c (redisplay_window): Clear w->window_end_valid
14357         before running the window-scroll-functions hook, if appropriate.
14359 1998-10-10  Richard Stallman  <rms@psilocin.ai.mit.edu>
14361         * data.c (Fstring_to_number): Don't recognize floating point
14362         if base is not 10.
14364         * window.c (window_loop): New alternative CHECK_ALL_WINDOWS.
14365         (check_all_windows): New function for debugging tests.
14366         (syms_of_window): Initialize it.
14368         * window.c (Qwindow_configuration_p): New variable.
14369         (Fwindow_configuration_frame): New function.
14370         (syms_of_window): defsubr it.
14371         (Fset_window_configuration): Return t if frame is live.
14372         Use Qwindow_configuration_p.
14374         * xfns.c (check_x_display_info): Don't use selected_frame
14375         if it is dead.
14377 1998-10-09  Geoff Voelker  <voelker@cs.washington.edu>
14379         * w32fns.c (x_create_bitmap_from_file): Skip special files.
14381 1998-10-08  Kenichi Handa  <handa@etl.go.jp>
14383         * buffer.h (inhibit_modification_hooks): Extern it.
14385         * buffer.c (inhibit_modification_hooks): New variable.
14386         (init_buffer_once): Initialize inhibit_modification_hooks to 0.
14388         * charset.c (invalid_character): Prepend `0' to octal
14389         representation.  Give error sufficient args.
14391         * coding.c (code_convert_region): Set inhibit_modification_hooks
14392         to 1 before calling Fset_text_properties.
14394         * insdel.c (signal_before_change): If inhibit_modification_hooks
14395         is nonzero, do nothing.
14396         (signal_after_change): Likewise.
14398 1998-10-08  Emilio Lopes  <Emilio.Lopes@Physik.TU-Muenchen.DE>
14400         * process.c: Doc fixes.
14402 1998-10-08  Richard Stallman  <rms@sucrose.ai.mit.edu>
14404         * syntax.c (scan_lists): Bring FROM back into range BEGV...ZV.
14406 1998-10-07  Geoff Voelker  <voelker@cs.washington.edu>
14408         * w32.c (init_ntproc): Check for Windows init file.
14409         (term_ntproc): Do not check for it here.
14411 1998-09-28  Kenichi Handa  <handa@etl.go.jp>
14413         * coding.c (check_composing_code): Fix previous change.  Now it
14414         alwasy returns 0 or -1.
14415         (decode_coding_iso2022): Adjusted for the above change.
14416         (encode_coding_iso2022): When encoding the last block, flush out
14417         tailing garbage bytes.
14418         (setup_coding_system): Delete unnecessary code.
14419         (shrink_decoding_region): Check translation table.  If ASCII
14420         should be translated, give up shrinking.
14421         (shrink_encoding_region): Likewise.
14422         (SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
14423         (SHRINK_CONVERSION_REGION): New macro.
14424         (code_convert_region): Call SHRINK_CONVERSION_REGION.  Delete text
14425         properties here.
14426         (code_convert_region): In the case of encoding, always calulate
14427         correct character number.
14428         (code_convert_string): Call SHRINK_CONVERSION_REGION.
14429         (code_convert_region1): Don't delete text properties here.
14431         * insdel.c (adjust_after_replace): Don't delete text properties here.
14433         * term.c (encode_terminal_code): Handle raw 8-bit codes correctly.
14435 1998-09-27  Richard Stallman  <rms@psilocin.ai.mit.edu>
14437         * emacs.c (sort_args): Fill extra space with NULL ptrs.
14439 1998-09-26  Kenichi Handa  <handa@etl.go.jp>
14441         * coding.h (struct coding_system): New member composed_chars.
14443         * coding.c (check_composing_code): If the current composing
14444         sequence doesn't end properly, return -1.
14445         (DECODE_CHARACTER_ASCII): Update coding->composed_chars.
14446         (DECODE_CHARACTER_DIMENSION1): Likewise.
14447         (decode_coding_iso2022): Check validity of a composing sequence.
14448         (code_convert_string): If the length of text to be converted is
14449         shrunk to zero, don't perform code conversion.
14450         (shrink_decoding_region): Fix previous change.
14452         * editfns.c (Fformat): Check format control characters.
14454 1998-09-25  Kenichi Handa  <handa@etl.go.jp>
14456         * coding.c (decode_eol): While decoding DOS-like eol, handle a
14457         single CR code correctly.
14458         (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
14459         CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
14461 1998-09-23  Geoff Voelker  <voelker@cs.washington.edu>
14463         * w32fns.c (w32_color_map_lookup): New function.
14464         (x_to_w32_color): Approximate colors ending in numbers if necessary.
14466 1998-09-22  Kenichi Handa  <handa@etl.go.jp>
14468         * ccl.c (ccl_driver): Report correct CCL program counter on error.
14470         * xmenu.c (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
14471         strings unibyte.
14472         (xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
14474 1998-09-22  Kenichi Handa  <handa@etl.go.jp>
14476         * callint.c (Fcall_interactively): Don't use input method when
14477         reading a character in the case of `c' code letter.
14479 1998-09-21  Dave Love  <fx@gnu.org>
14481         * editfns.c (Fsave_restriction): Doc fix.
14483 1998-09-21  Richard Stallman  <rms@gnu.org>
14485         * lread.c (build_load_history): Do add to Vload_history
14486         even when dumping Emacs.
14488 1998-09-18  Kenichi Handa  <handa@etl.go.jp>
14490         * ccl.c (CCL_WRITE_CHAR): Don't use bcopy.
14491         (ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
14492         cause error if the program is going to output some bytes.  When
14493         outputing a string to notify an error, check the case that
14494         DST_BYTES is zero.
14496         * coding.h (CODING_FINISH_INTERRUPT): New macro. 
14498         * coding.c (ccl_coding_driver): If ccl_driver is interrupted by a
14499         user or the CCL program executed an invalid command, return
14500         CODING_FINISH_INTERRUPT.
14501         (code_convert_region): Pay attention to the converters return
14502         value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
14504 1998-09-16  Kenichi Handa  <handa@etl.go.jp>
14506         * coding.c (code_convert_region): Update beg_unchanged and
14507         end_unchanged after we delete the source text.
14509         * insdel.c (adjust_markers_for_replace): Don't adjust a byte
14510         position if it is FROM.
14511         (adjust_markers_for_combining): New function.
14512         (combine_bytes): Call adjust_markers_for_combining instead of
14513         adjust_markers_for_replace.
14514         (adjust_after_replace): Record deletion of combining after bytes
14515         with the correct position.
14516         (replace_range): Likewise.  Record the actual deletion after
14517         recoding deletions of combining bytes.
14519         * xdisp.c (message_log_check_duplicate): Count byte length of the
14520         latest message correctly.
14522 1998-09-12  Richard Stallman  <rms@gnu.org>
14524         * xdisp.c (redisplay_internal): Use TEMP_SET_PT_BOTH
14525         instead of SET_PT_BOTH.
14526         (try_window_id, display_text_line): Likewise.
14528 1998-09-12  Karl Heuer  <kwzh@gnu.org>
14530         * data.c (Fmake_local_variable): Doc fix.
14532 1998-09-10  Dave Love  <fx@gnu.org>
14534         * print.c (Fwith_output_to_temp_buffer): Doc fix.
14536 1998-09-10  Richard Stallman  <rms@gnu.org>
14538         * s/irix6-0.h (TIOCSIGSEND): Add #undef.
14539         (bcopy, bcmp, bzero): Add #undef.
14541         * keyboard.c (command_loop_1): When switching to selected window's bfr,
14542         first exit if selected frame is dead (no live frames remain).
14543         (read_key_sequence): Likewise.
14545 1998-09-10  Karl Heuer  <kwzh@gnu.org>
14547         * emacs.c (main): Mention --display and --eval in help.
14549 1998-09-07  Paul Eggert  <eggert@twinsun.com>
14551         * editfns.c (emacs_memftime): New function.
14552         (Fformat_time_string): Use it to handle null bytes in formats
14553         correctly.
14555 1998-09-08  Kenichi Handa  <handa@etl.go.jp>
14557         * charset.c (Ffind_charset_region): Optimization for unibyte buffer.
14558         (Ffind_charset_string): For unibyte string, return (ascii).
14560         * editfns.c (Fsubst_char_in_region): Call replace_range with the
14561         arg MARKERS 1.
14563         * insdel.c (adjust_after_replace): Don't add combining bytes to
14564         the args given to adjust_point.  Handle correctly the case that
14565         there are both before and after combining bytes.
14566         (replace_range): Likewise.
14568 1998-09-07  Lars Magne Ingebrigtsen  <larsi@gnus.org>
14570         * fns.c (base64_decode_1, base64_encode_1): New functions.
14571         (Fbase64_decode_string, Fbase64_encode_string): New functions.
14572         (Fbase64_decode_region, Fbase64_encode_region): New functions.
14574 1998-09-07  Karl Heuer  <kwzh@gnu.org>
14576         * eval.c (error): After enlarging buffer, write to it, not to buf.
14578         * fns.c (Fwidget_put): Return VALUE instead of garbage.
14580 1998-09-07  Kenichi Handa  <handa@etl.go.jp>
14582         * charset.h (STRING_CHAR_AND_LENGTH): Return correct value in
14583         ACTUAL_LEN even if LEN is too short to have a valid multibyte form.
14584         (STRING_CHAR_AND_CHAR_LENGTH): Likewise.
14586         * coding.c (ccl_coding_driver): Always calculate correct mulibyte
14587         chars in produced byte sequence.
14588         (Ffind_operation_coding_system): Doc-string fixed.
14590         * insdel.c (count_combining_after): Check also preceding bytes at
14591         POS if all characters in STRING are not character head.
14593 1998-09-06  Paul Eggert  <eggert@twinsun.com>
14595         * editfns.c (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
14596         Don't assume that localtime and gmtime return non-NULL.
14598 1998-09-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
14600         * fns.c (Fbase64_decode_string, Fbase64_encode_string,
14601         base64_decode_1, Fbase64_decode_region, Fbase64_encode_region):
14602         New functions.
14604 1998-09-06  Richard Stallman  <rms@gnu.org>
14606         * editfns.c (Fformat): Detect incomplete format spec at string's end.
14608         * lread.c (Fload): Handle case where openp finds a magic file
14609         but it has no `load' handler or that handler calls `load'.
14610         If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
14612 1998-09-04  Dave Love  <fx@gnu.org>
14614         * buffer.c (enable-multibyte-characters): Doc fix.
14616 1998-09-02  Geoff Voelker  <voelker@cs.washington.edu>
14618         * w32heap.c (allocate_heap): Define NTHEAP_PROBE_BASE by default.
14620 1998-09-01  Kenichi Handa  <handa@etl.go.jp>
14622         * editfns.c (Ftranspose_regions): Use BYTE_POS_ADDR to get an
14623         address in buffer from byte-position.
14625 1998-09-01  Eli Zaretskii  <eliz@delysid.gnu.org>
14627         * w16select.c (Vnext_selection_coding_system): New variable.
14628         (syms_of_win16select): DEFVAR_LISP it.  No need to staticpro
14629         Vselection_coding_system.
14630         (Fw16_set_clipboard_data): Always convert multibyte strings.  Use
14631         Vnext_selection_coding_system if non-nil.
14632         (Fw16_get_clipboard_data): Always convert a string that includes
14633         non-ASCII characters. Use Vnext_selection_coding_system if
14634         non-nil.
14636 1998-08-31  Andrew Innes  <andrewi@harlequin.co.uk>
14638         * w32fns.c (w32_wnd_proc): Always zero button_state when releasing
14639         mouse capture.
14641 1998-08-31  Kenichi Handa  <handa@etl.go.jp>
14643         * xterm.c (x_load_font): If SIZE is 0, don't use a name
14644         x_list_font returns.
14646 1998-08-31  Paul Eggert  <eggert@twinsun.com>
14648         * lread.c (read1): Don't assume that atof ("-0.0") yields +0.0.
14649         Handle leading '-' uniformly for zeros, infinities, and NaNs.
14651 1998-08-31  Eli Zaretskii  <eliz@delysid.gnu.org>
14653         * msdos.c (IT_cmgoto): When tracking echo area messages with the
14654         cursor, save and restore previous cursor position in the
14655         minibuffer.
14657 1998-08-31  Kenichi Handa  <handa@etl.go.jp>
14659         * charset.c (unibyte_char_to_multibyte):
14660         Vnonacii_translation_table will convert a 7-bit charcater.
14661         (multibyte_char_to_unibyte): Handle the case that
14662         Vnonacii_translation_table converts a multibyte charcater to a
14663         unibyte charcter of less than 128.
14664         (init_charset_once): Initialize nonascii_insert_offset and
14665         Vnonacii_translation_table.
14667         * coding.c (decode_coding): Even if SRC_BYTES is zero, try
14668         processing if CODING requires flushing.
14669         (encode_coding): Likewise.
14670         (code_convert_region): Likewise.
14671         (code_convert_string): Likewise.
14673         * fns.c (concat): If Vnonascii_translation_table is non-nil, try
14674         to convert a character less than 160 to multibyte.
14675         * insdel.c (copy_text): Likewise.
14676         (count_size_as_multibyte): Likewise.
14677         * xterm.c (dumpglyphs): Likewise.
14679 1998-08-29  Paul Eggert  <eggert@twinsun.com>
14681         * data.c (arith_driver, float_arith_driver): Compute (- x) by
14682         using negation, not subtraction; this makes a difference with
14683         IEEE floating point arithmetic (and also if integer arithmetic
14684         is ones' complement or signed-magnitude!).
14686 1998-08-29  Karl Heuer  <kwzh@gnu.org>
14688         * xfns.c (x_create_bitmap_from_file): Fail immediately if magic.
14690 1998-08-28  Ken'ichi Handa  <handa@delysid.gnu.org>
14692         * charset.c (Fchar_bytes): Add \n\ in doc-string.
14694 1998-08-28  Paul Eggert  <eggert@twinsun.com>
14696         * s/sol2-4.h (NOT_USING_MOTIF): New macro.
14697         (LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
14698         path only if we're not building with Motif.
14700 1998-08-28  Kenichi Handa  <handa@etl.go.jp>
14702         * insdel.c (adjust_after_replace): Fix the code to record undo
14703         information for the case that `before combining' happens.  Remove
14704         text properties which are added to the new text by
14705         offset_intervals.
14707         * coding.c (code_convert_region1): Remove all text properties of
14708         the region.
14710 1998-08-28  Kenichi Handa  <handa@etl.go.jp>
14712         * charset.h (CHAR_BYTES): New macro.
14714         * charset.c (Fchar_bytes): Now always return 1.
14715         (char_bytes): New function.
14717         * editfns.c (Fposition_bytes): If the arg POSITION is out of
14718         range, return nil.
14719         (Fbyte_to_position): If the arg BYTEPOS is out of range, return
14720         nil.
14722         * data.c (Faset): Use macro CHAR_BYTES instead of Fchar_bytes.
14723         * fns.c (concat): Likewise.
14724         * insdel.c (count_size_as_multibyte): Likewise.
14725         * xdisp.c (message_dolog): Likewise.
14727 1998-08-27  Kenichi Handa  <handa@etl.go.jp>
14729         * coding.c (detect_coding_iso2022): Handle ESC N and ESC O
14730         correctly.  They are for SS2 and SS3 respectively.
14731         (ccl_coding_driver): Fix previous change.
14733 1998-08-26  Paul Eggert  <eggert@twinsun.com>
14735         * xterm.c (fixup_locale): New function.  For now, it resets
14736         LC_TIME to "C" (reverting the 1998-08-07 change), and also
14737         resets LC_MESSAGES to "C".
14738         (x_term_init): Use it to fix up the locale after setlocale
14739         (LC_ALL, "").
14741 1998-08-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14743         * xterm.c (x_calc_absolute_position): Cast argument to XFree, in
14744         case it was prototyped the old way.
14746 1998-08-25  Kenichi Handa  <handa@etl.go.jp>
14748         * xterm.c (x_list_fonts): Work-around for the case XGetAtomName
14749         returns a null string.  This happens when dxpc 3.7 is being used.
14751 1998-08-24  Andreas Schwab  <schwab@delysid.gnu.org>
14753         * keyboard.c (input-method-previous-message): Doc fix.
14755         * coding.c (file-coding-system-alist,
14756         select-safe-coding-system-function): Doc fix.
14758 1998-08-23  Kenichi HANDA  <handa@etl.go.jp>
14760         * coding.c (detect_coding_iso2022): Don't check the byte length of
14761         succeeding codes (0xa0..0xFF) if the codes follows single shift
14762         code (SS2 or SS3).
14764 1998-08-21  Ken'ichi Handa  <handa@delysid.gnu.org>
14766         * coding.c (detect_coding_system): If detect_eol_type returns
14767         CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
14768         correctly.
14770 See ChangeLog.7 for earlier changes.