(FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
100b3cbb
GM
12000-03-05 Gerd Moellmann <gerd@gnu.org>
2
3 * xdisp.c (try_window_id): Recompute unchanged information if
4 it is invalid.
5
6 * xterm.c (x_term_init): Create a colormap if not using the
7 default visual.
8
9 * xterm.h (select_visual): Change prototype.
10
11 * xfns.c (select_visual): Rewritten. Recognize user-specified
12 visual classes.
13 (visual_classes): New variable.
14
64d739c4
GM
152000-03-04 Gerd Moellmann <gerd@gnu.org>
16
17 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
18 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
19 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
20 (x_decode_color): Don't handle allocation of white and black
21 specially.
22 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
23 XtNcolormap resources.
24 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
25 (Fx_create_frame): Initialize color members of x_output structure.
26 (xpm_load): Pass colormap to XPM lib.
27
28 * xfaces.c (x_free_colors): Access colormap of frame using
29 FRAME_X_COLORMAP. Be paranoid about freeing black and white
30 when default colormap is used.
31
32 * xterm.c (x_term_init): Set Colormap member of x_display_info
33 structure. Copy colormap if resource `privateColormap' is
34 specified (PseudoColor only).
35 (x_setup_relief_color): Access colormap of frame using
36 FRAME_X_COLORMAP.
37
38 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
39 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
40
c3cee013
JR
412000-03-04 Jason Rumney <jasonr@gnu.org>
42
43 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
44 other non-platform-specific equivalents.
64d739c4 45 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
46 specific functions and macros as their w32 equivalents where
47 non-platform-specifics are not available.
48 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
49 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
50 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
51 (frame_update_line_height): Use macros to access f->output_data.
52 (defined_color): Remove FIXME comments; fixed.
53 (x_face_list_fonts, prepare_face_for_display): Put X specifics
54 into #ifdef blocks. Add WINDOWSNT blocks.
55 (Fx_list_fonts): Use macros for accessing font data.
56 (set_lface_from_font_name): Different default fonts for X and
57 WINDOWSNT.
58 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
59 scalable for backward compatibility.
64d739c4 60 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
61 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
62
64d739c4 63 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
64 syms_of_w32faces.
65
66 * makefile.nt (w32faces.obj): Remove.
67 (xfaces.obj): Add.
68
807cc41c
JR
692000-03-03 Jason Rumney <jasonr@gnu.org>
70
71 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
72 correct parameters.
73
0007072a
KR
742000-03-03 Ken Raeburn <raeburn@gnu.org>
75
76 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
77 standard ELF definitions here if the system header does not.
78
71a6ba55
GM
792000-03-03 Gerd Moellmann <gerd@gnu.org>
80
81 * xterm.c (PER_CHAR_METRIC): Removed.
82 (x_per_char_metric_1, x_default_char): New functions.
83 (x_per_char_metric): If font's default char is invalid, return
84 metrics of a suitably chosen usable default char.
85 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
86 char, replace occurrences of unprintable chars with a suitably
87 chosen usable default char.
71a6ba55 88
900fa1f1
GM
892000-03-02 Gerd Moellmann <gerd@gnu.org>
90
42f55fe0
GM
91 * xterm.c (note_mouse_highlight): Return quickly if frame's
92 glyph matrices have been freed.
93
94 * dispnew.c (free_glyphs): Block input while freeing matrices.
95
900fa1f1
GM
96 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
97
98 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
99 x_free_colors.
100
101 * dispextern.h (x_free_colors): Add prototype.
102
103 * xfaces.c (x_free_colors): New function.
104 (unload_color, free_face_colors): Use it.
105
2f950292
EZ
1062000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
107
108 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
109
110 * window.c [MSDOS]: Include msdos.h.
111
54d04320
DL
1122000-03-02 Dave Love <fx@gnu.org>
113
114 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
115
116 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
117 set C_OPTIMIZE_SWITCH for gcc.
118
0ba93ac4
KH
1192000-03-02 Kenichi Handa <handa@etl.go.jp>
120
121 * coding.c (coding_save_composition): Be sure to allocate
122 composition data area in coding even if there's no composition in
123 the current run.
124
a2bc11d4
JR
1252000-03-01 Jason Rumney <jasonr@gnu.org>
126
127 * w32term.c: Equivalent changes to those made to xterm.c on
128 2000-02-25 and 2000-02-24.
129
130 * w32fns.c: Equivalent changes to those made to xfns.c on
131 2000-02-25 and 2000-02-21.
132
133 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
134 correct line-end convention is followed.
135
136 * w32menu.c [HAVE_BOXES]: Remove #undef.
137 (single_keymap_panes): Remove code for simulating checkmarks.
138 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
139 Remove code for drawing simulated checkmarks.
140 (w32_menu_show): make unibyte help string correctly.
141 (add_menu_item): draw standard Windows checkmarks. Draw radio
142 buttons as radio buttons if possible.
143
72d19d75
GM
1442000-03-01 Gerd Moellmann <gerd@gnu.org>
145
2df636f4
GM
146 * sysdep.c (start_of_text): Don't define this function for NetBSD
147 with ELF.
148
149 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
150 Don't define.
151 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
152 (LINKER): Don't undef if __NetBSD__ is defined.
153
154 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
155
156 * fileio.c [__NetBSD__]: Define `unix'.
157
72d19d75
GM
158 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
159
ed4d0512
GM
1602000-02-29 Gerd Moellmann <gerd@gnu.org>
161
50b1039f
GM
162 * atimer.c (start_atimer): Don't abort when timers are stopped.
163 (append_atimer_lists): New function.
164 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
165 arbitrary lists of stopped and running atimers.
166
ed4d0512
GM
167 * atimer.c (cancel_atimer): Handle canceling an atimer when
168 some timers are stopped.
169
170 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
171 after canceling it.
172
173 * fns.c (maybe_resize_hash_table): Handle case of new size
174 coming out as being the same as old size.
175
387023ee
JR
1762000-02-27 Jason Rumney <jasonr@gnu.org>
177
178 * makefile.nt: Add atimer.h to dependencies.
179 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
180 * w32console.c: Only disable window system features for dispextern.h
181 (initialize_w32_display): Build a display info for the console.
182 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
183 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
184 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
185 as 2 button mice.
186 * w32gui.h (struct W32FontStruct): Revert last change after change
187 to xdisp.c.
188 * w32menu.c (single_submenu): Set up help string.
189 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
190 (w32_dialog_show): Set up help string.
191 * w32term.c (w32_display_info_for_display): Remove unused function.
192 (w32_draw_bitmap): Use pre-built bitmaps.
193 (w32_initialize_display_info): New function to initialize parts of
194 display info that are common to both GUI and console frames.
195 (w32_term_init): Use w32_initialize_display_info. Do not set
196 Vw32_num_mouse_buttons here, as it is not called for console
197 frames. Build bitmaps for indicating truncated lines etc.
198 (x_delete_display): Destroy pre-built bitmaps.
199 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
200 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
201
4516715a
DL
2022000-02-27 Dave Love <fx@gnu.org>
203
204 * lisp.h: Add a bunch of prototypes.
205
171ca836
KH
2062000-02-26 Kenichi Handa <handa@etl.go.jp>
207
208 * keyboard.c (read_char): Set `usec' correctly.
209
4013921d
KH
2102000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
211
212 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
213 `lambda', set reg[RRR] to the map index.
214 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
215 reg[RRR] to 0. Otherwise, set it to -1.
216
9244a058
GM
2172000-02-25 Gerd Moellmann <gerd@gnu.org>
218
2df636f4 219 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 220
f43d79c1
GM
2212000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
222
223 * fileio.c (Ffile_symlink_p): If result starts with a `/'
224 and contains a `:', prepend `/:'.
225
226 * window.c (select_window_1): If selected_window is nil,
227 don't "swap out" the buffer's point.
228 (Fset_window_configuration): Set selected_window to nil
229 before calling Fselect_window.
230 (unshow_buffer): Don't set point in buffer from window's point
231 if another more recently selected window also shows the buffer.
232
bed0c171
GM
2332000-02-25 Gerd Moellmann <gerd@gnu.org>
234
449c3c52
GM
235 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
236
f5b58615
GM
237 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
238 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
239 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
240 variables.
241 (DEFAULT_BUSY_CURSOR_DELAY): New define.
242 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
243 (hide_busy_cursor): New functions.
244 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
245
246 * minibuf.c (read_minibuf): Cancel busy-cursor.
247
248 * keyboard.c (command_loop_1): Call start_busy_cursor before
249 Fcommand_execute and cancel_busy_cursor after it.
250 (timer_check): Remove busy-cursor code.
251 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
252 cursor timer.
253
254 * process.c (wait_reading_process_input): Remove busy-cursor code.
255
256 * eval.c (Fsignal): Call cancel_busy_cursor instead of
257 Fx_hide_busy_cursor.
258
259 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
260 Remove prototyoes.
261 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
262
263 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
264
265 * xterm.c (XTread_socket): Remove busy-cursor code.
266
4eb8436f
GM
267 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
268 (build_frame_matrix_from_leaf_window): Put code handling
269 glyph row's not being a slice of a frame row in #if 0.
270 (sync_window_with_frame_matrix_rows): New function.
271 (frame_row_to_window): New function.
272 (mirror_line_dance): Handle copies between windows.
273
3cb65b0e
GM
274 * lread.c (Fload): Use `xfree' instead of `free'.
275 (init_obarray): Use `xmalloc' instead of `malloc'.
276
bed0c171
GM
277 * window.c (Fset_window_buffer): Set WINDOW to the window
278 after decoding.
2add4349
GM
279 (coordinates_in_window): Take frame's internal border width
280 into account.
bed0c171 281
42088c12
GM
2822000-02-24 Gerd Moellmann <gerd@gnu.org>
283
284 * xterm.c (x_display_and_set_cursor): Display cursor of
285 non-selected windows depending on the setting of
286 cursor_in_non_selected_windows.
287
288 * xdisp.c (cursor_in_non_selected_windows): New variable.
289 (syms_of_xdisp): DEFVAR_BOOL it.
290
d1e103b2
GM
2912000-02-23 Gerd Moellmann <gerd@gnu.org>
292
723e779c
GM
293 * data.c (Fstring_to_number): If number is greater than what
294 fits into an integer, return a float.
295
d1e103b2
GM
296 * eval.c (specbind): Remove references to
297 keyword_symbols_constant_flag.
298
299 * data.c (keyword_symbols_constant_flag): Removed.
300 (Fmakunbound, set_internal, syms_of_data): Remove references to
301 keyword_symbols_constant_flag.
302
303 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
304
214f877f
KH
3052000-02-23 Kenichi Handa <handa@etl.go.jp>
306
307 * syntax.c (multibyte_syntax_as_symbol): New variable.
308 (syms_of_syntax): Declare it as a Lisp variable.
309 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
310 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
311 nonzero, treat all multibyte characters as symbol.
42088c12 312 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
313 characters.
314
130adcb7
EZ
3152000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
316
3cb65b0e 317 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
130adcb7
EZ
318 a deleted frame.
319
17cbbf95
GM
3202000-02-21 Gerd Moellmann <gerd@gnu.org>
321
322 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
323
324 * xfns.c (x_window_to_frame, x_any_window_to_frame)
325 (x_non_menubar_window_to_frame): Check the busy-cursor window.
326
beb0bc36
DL
3272000-02-21 Dave Love <fx@gnu.org>
328
329 * frame.c (Vmouse_position_function): New variable.
330 (Fmouse_position): Use it.
331 (syms_of_frame): Install it.
332
333 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
334
1d92afcd
GM
3352000-02-20 Gerd Moellmann <gerd@gnu.org>
336
337 * fileio.c (Finsert_file_contents): Unbind the binding of
338 standard-output done by temp_output_buffer_setup.
329eed9f
GM
339
340 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
341 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
342 (specbind, unbind_to): Handle most common case of non-constant
343 symbol with trivial value specially.
344
345 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
346
2d06696f
RS
3472000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
348
349 * data.c (Fmake_variable_buffer_local): Doc fix.
350 Init found_for_buffer to 0.
351 (Fmake_variable_frame_local): If the variable has already
352 been buffer-local, set the check_frame field.
353
1d4311c3
EZ
3542000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
355
356 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
357 produced for CODING_MODE_LAST_BLOCK requires.
358
2dc95ddd
DL
3592000-02-18 Dave Love <fx@gnu.org>
360
361 * keyboard.c (echo_keystrokes): Remove declaration.
362 (Vecho_keystrokes) New variable.
363 (read_char, record_menu_key, read_key_sequence): Use it to allow
364 use of float value.
365 (syms_of_keyboard): Change Vecho_keystrokes declaration.
366
367 * lread.c: Undef feature selection macros before defining.
368
f0930f35
GM
3692000-02-18 Gerd Moellmann <gerd@gnu.org>
370
371 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
372 for symbols other than the symbol in question.
373
e3d4de90
DL
3742000-02-17 Dave Love <fx@gnu.org>
375
376 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
377
0b378936
GM
3782000-02-17 Gerd Moellmann <gerd@gnu.org>
379
d621caf7
GM
380 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
381
0b378936
GM
382 * alloc.c (enum mem_type): Compile unconditionally.
383
3b451f74
EZ
3842000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
385
386 * xfaces.c (tty_defined_color): Don't return faulire indication
387 for unspecified-fg and unspecified-bg pseudo-colors.
388
10689a01
GM
3892000-02-17 Gerd Moellmann <gerd@gnu.org>
390
1216f5e4
GM
391 * alloc.c (mark_object): Don't mark symbol names in pure space.
392 (gc_sweep): Don't unmark symbol names in pure space.
393
394 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
395 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
396 [GC_MARK_STACK]: New defines.
397 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
398 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
399
400 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
401
402 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
403 allocate_buffer instead of xmalloc.
404
405 * alloc.c (toplevel): Include setjmp.h.
406 (PURE_POINTER_P): New define.
407 (enum mem_type) [GC_MARK_STACK]: New enumeration.
408 (Vdead) [GC_MARK_STACK]: New variable.
409 (lisp_malloc): Add parameter TYPE, call mem_insert if
410 GC_MARK_STACK is defined.
411 (allocate_buffer): New function.
412 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
413 (free_float) [GC_MARK_STACK]: Set type to Vdead.
414 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
415 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
416 (MEM_NIL) [GC_MARK_STACK]: New define.
417 (struct mem_node) [GC_MARK_STACK]: New structure.
418 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
419 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
420 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
421 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
422 (mark_stack) [GC_MARK_STACK]: New functions.
423 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
424 (clear_marks): Removed.
425 (gc_sweep): Set free conses' car, free floats' type, free
426 symbols' function to Vdead. Use lisp_free to free buffers.
427 (init_alloc_once): Initialize Vdead.
428 (survives_gc_p): Return non-zero for pure objects.
429
430 * alloc.c: Add comments throughout the file.
431
2503c8b1
GM
432 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
433 that unblocks alarms.
434
8389e1e2
GM
435 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
436 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
437 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
438
10689a01
GM
439 * frame.c (make_frame): Set frame initiallly to `garbaged'.
440
bfc17d18
KH
4412000-02-17 Kenichi Handa <handa@etl.go.jp>
442
4a09dee0
KH
443 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
444 avoid infinite error signaling. Allocate sufficient memory for
445 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 446
2b927d02
SM
4472000-02-17 Stefan Monnier <monnier@cs.yale.edu>
448
449 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
450 depends on the previous behavior.
451
b49cb764
GM
4522000-02-16 Gerd Moellmann <gerd@gnu.org>
453
454 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
455
99e95407
GM
4562000-02-15 Gerd Moellmann <gerd@gnu.org>
457
458 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
459
460 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 461 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
462 write(2).
463
6ffd3cf7
RS
4642000-02-15 Richard M. Stallman <rms@gnu.org>
465
466 * data.c (set_internal): Don't make variable buffer-local
467 if within a let-binding for the same buffer.
468 (let_shadows_buffer_binding_p): New function.
469
470 * eval.c (specbind): For buffer-local value,
471 record the current buffer also.
472 (unbind_to): Cope with that change.
473
cad53475
GM
4742000-02-15 Gerd Moellmann <gerd@gnu.org>
475
476 * window.c (Fsave_window_excursion): Doc fix.
477
1aa963c8
SM
4782000-02-15 Stefan Monnier <monnier@cs.yale.edu>
479
480 * syntax.c (back_comment): Make sure we only consider comment-starters
481 of the relevant style and return -1 in case of a failure to find the
482 beginning of the comment.
483 (Fforward_comment): If back_comment fails, go back to the position just
484 after the comment-end.
485 (scan_lists): Add comment describing a very minor bug.
486
b9b84fd3
SM
4872000-02-14 Stefan Monnier <monnier@cs.yale.edu>
488
489 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
490 `completion-regexp-list' in the docstring.
491
3a28db80
DL
4922000-02-14 Dave Love <fx@gnu.org>
493
494 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
495
fb4a568d
SM
4962000-02-14 Stefan Monnier <monnier@cs.yale.edu>
497
498 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
499 to Emacs' syntax. Also fix the comment about set/not-set meanings
500 since Emacs syntax is not the value 0 any more.
501 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
502 since it's now part of RE_SYNTAX_EMACS.
503
1063ebb5
DL
5042000-02-12 Dave Love <fx@gnu.org>
505
506 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
507 Alpha.
508
fb07a302
GM
5092000-02-12 Gerd Moellmann <gerd@gnu.org>
510
511 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
512
aaf2320c
DL
5132000-02-12 Dave Love <fx@gnu.org>
514
515 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
516
517 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
518 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
519 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
520
521 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
522
523 * s/nextstep.h: Don't define HAVE_ALLOCA.
524
525 * config.in: Add vfork bits.
526
eedf8bde
GM
5272000-02-12 Gerd Moellmann <gerd@gnu.org>
528
529 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
530 unwind function to undo the effect of stopping atimers.
531
532 * keyboard.c (bind_polling_period): Stop all timers except
533 poll_timer.
534
535 * atimer.c (stopped_atimers): New variable.
536 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
537 New functions.
538
539 * atimer.h (stop_other_atimers, run_all_atimers)
540 (unwind_stop_other_atimers): Add function prototypes.
541
542 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
543
8476c2f8
KR
5442000-02-11 Ken Raeburn <raeburn@gnu.org>
545
546 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
547 library may depend on jpeg.
548 (atimer.o): Depends on atimer.c.
549
0e85e4a3
KH
5502000-02-11 Kenichi Handa <handa@etl.go.jp>
551
552 * insdel.c (del_range_1): Call update_compositions.
553 (del_range_both): Call update_compositions just once..
554
97fa0cc8
DL
5552000-02-10 Dave Love <fx@gnu.org>
556
557 * xfns.c (create_frame_xic): Fix initialization of automatic
558 aggregates for pcc.
559
25566a3c
KH
5602000-02-09 Kenichi Handa <handa@etl.go.jp>
561
562 * ccl.c (CCL_MAKE_CHAR): New macro.
563 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
564 registers by CCL_MAKE_CHAR before calling translate_char.
565 <CCL_TranslateCharacterConstTbl> Likewise.
566
69da54ba
DL
5672000-02-08 Dave Love <fx@gnu.org>
568
569 * lread.c (__EXTENSIONS__): Define.
570
f7136ee8
GM
5712000-02-08 Gerd Moellmann <gerd@gnu.org>
572
573 * puresize.h (BASE_PURESIZE): Increase to 650000.
574
7768790b
EZ
5752000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
576
577 * msdos.c (XMenuActivate): Turn off the cursor after displaying
578 the help message.
579
38fd211b
EZ
5802000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
581
582 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
583 md, mh, mb, mr, and me to the fake termcap entry.
584
66e4690f
KR
5852000-02-06 Ken Raeburn <raeburn@gnu.org>
586
587 * sound.c (sound_cleanup): Don't call device close routine if the
588 function pointer is null.
589
a75dfea0
AI
5902000-02-06 Andrew Innes <andrewi@gnu.org>
591
592 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
593 around image definitions and prototypes.
594 (gamma_correct) [WINDOWSNT]: New prototype.
595
596 * w32term.c (x_make_frame_visible): Replace call to
597 input_poll_signal with poll_for_input.
598
599 * window.c [WINDOWSNT]: Include w32term.h.
600
601 * xdisp.c [WINDOWSNT]: Include w32term.h.
602
603 * makefile.nt: Add dependencies on w32gui.h.
604 (OBJ1): Include atimer.obj.
605 ($(BLD)\atimer.obj): New dependency rule.
606
607 * w32.c (sigmask): New function (does nothing).
608 (sigunblock): Ditto.
609
610 * frame.c [WINDOWSNT]: Include w32term.h.
611
612 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
613
614 * lread.c (syms_of_lread): Fix literal newlines.
615
616 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
617 the string constant limit (2048 bytes) in MSVC.
618 (main): Ditto.
619
59ddecde
GM
6202000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
621
622 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
623 area.
624 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
625 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
626 dispatch the event.
627
07590973
DL
6282000-02-04 Dave Love <fx@gnu.org>
629
630 * fileio.c: Remove some unused vars.
631 (_GNU_SOURCE): Define (for euidaccess).
632
633 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
634
635 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
636 gcpro1, gcpro2.
637 (read_minibuf): Deal with allow_props correctly.
638
649351f9
EZ
6392000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
640
641 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
642
66e4690f 6432000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
644
645 * search.c (compile_pattern): If a cache entry has a nil regexp,
646 fill in that entry instead of clobbering a previously cached
647 string regexp.
648
66e4690f 6492000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
650
651 * puresize.h (BASE_PURESIZE): Increase to 610000.
652
d240a249
GM
6532000-02-02 Gerd Moellmann <gerd@gnu.org>
654
655 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
656 can GC.
657
ca91fb26
KH
6582000-02-02 Kenichi Handa <handa@etl.go.jp>
659
25660570
KH
660 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
661 instead of incrementing ic directly.
662 <CCL_WriteExprConst> Likewise.
663 <ccl_set_expr>: Set ic to jump_address.
664
ca91fb26
KH
665 * fileio.c (e_write): Fix the handling of
666 CODING_FINISH_INSUFFICIENT_SRC.
667
2ede9689
DL
6682000-02-01 Dave Love <fx@gnu.org>
669
670 * editfns.c (Fpropertize): Doc fix.
671
672 * process.c (Fstart_process): Doc fix.
673
674 * eval.c: Fix various doc strings not to duplicate information
675 from help-manyarg-func-alist.
676
677 * window.c (Fset_window_margins): Don't make interactive. Doc
678 fix.
679
680 * doc.c (Vhelp_manyarg_func_alist): New variable.
681 (Fdocumentation): Use it.
682 (syms_of_doc): Define it.
683
b6680a0e
GM
6842000-01-31 Gerd Moellmann <gerd@gnu.org>
685
2cb750ba
GM
686 * xterm.c (xim_open_dpy): Remove unused local variable.
687
74e9213b
GM
688 * emacs.c (USAGE): Use term `display options' instead of `X
689 options'.
690
691 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
692 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
693
b6680a0e
GM
694 * fns.c (sweep_weak_table): New function.
695 (sweep_weak_hash_tables): Use it. Keep on marking until there
696 is no more change.
697
994c5afe
GM
6982000-01-30 Gerd Moellmann <gerd@gnu.org>
699
700 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
701 that XTread_socket does not crash by trying to call XNoOp on a
702 closed display.
703
f00276e3
JR
7042000-01-30 Jason Rumney <jasonr@gnu.org>
705
706 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
707 Change selected_frame to SELECTED_FRAME ().
708 (w32_console_mouse_position): Remove #ifndef MULE from around
709 `insist' parameter.
710
711 * makefile.nt: Remove dosfns.obj.
712
713 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
714
715 * w32fns.c (w32_defined_color): Check for valid frame before
716 applying gamma correction. Eliminate dependency on frame elsewhere.
717 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
718 (w32_to_x_font): Use resx and resy not height_in and width_in.
719 (x_to_w32_font): Doc fix.
720 (xlfd_strip_height): New function to strip and return font height.
721 (w32_font_match): Compare height separately from rest of xlfd
722 spec, using xlfd_strip_height.
723
724 * w32term.c (w32_term_init): Swap resx and height_in, resy and
725 width_in. Use w32_defined_color in place of defined_color.
726
727 * w32faces.c: Merge more of DOS and X specifics in preparation for
728 merge with xfaces.c.
729 (defined_color): Remove FIXME comment.
730 (tty_color_name): Provide w32-specific function.
731 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
732
733 * w32console.c (turn_on_face, turn_off_face): Removed.
734 (w32_face_attributes): New function.
735 (Global_variables): Reduce scope where possible.
736 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
737 fill attribute.
738 (hl_mode): Don't modify text attributes.
739 (write_glyphs): Don't do anything if len <= 0. Use
740 w32_face_attributes to get attributes for drawing. Write
741 terminating codes using char_attr_normal.
742 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
743 (update_begin, update_end): Likewise.
744 (vga_stdcolor_name): New function.
745 (initialize_w32_display): Remove char_attr_reverse and char_attr.
746 (Fset_screen_color): Remove char_attr_reverse.
747
b08e8bb2
GM
7482000-01-29 Gerd Moellmann <gerd@gnu.org>
749
750 * xfns.c (xic_set_preeditarea): Take window parameter and
751 window-relative pixel-positions.
752
753 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
754 is its frame's selected window.
755 (xim_instantiate_callback): Likewise.
756
757 * xfns.c (x_create_im): Removed.
758 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
759 (supported_xim_styles): Renamed from supported_styles.
760 (best_xim_style): Renamed from best_style.
761 (create_frame_xic): Renamed from xic_create_frame.
762 (free_frame_xic): Renamed from xic_destroy_frame.
763
7642000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
765
766 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
767 our frames, call XFilterEvent with 2nd parameter `None'.
768 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
769 returning XBufferOverflow.
770 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
771 area.
772 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
773 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
774 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
775 (xim_initialize, xim_close)
776 [HAVE_X_I18N && HAVE_X11R6]: New functions.
777 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
778 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
779 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
780
781 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
782 and `xim_styles'.
783 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
784 `xic_style' and `xic_xfs'.
785 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
786 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
787 (FRAME_XIM): Removed.
788
789 * xfns.c (supported_styles): New variable.
790 (DEFAULT_STYLE, DEFAULT_FONT): New macros
791 (xic_create_xfontset, best_style, xic_create_frame)
792 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
793 (xic_set_xfontset): New functions.
794
142e109c
DL
7952000-01-28 Dave Love <fx@gnu.org>
796
797 * s/irix6-5.h: Revert last change after change to irix5-0.h.
798
799 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
800
b02786f9
GM
8012000-01-28 Gerd Moellmann <gerd@gnu.org>
802
d060bc9f
GM
803 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
804 for *scratch* if it already existed.
805
b02786f9
GM
806 * emacs.c (USAGE): New macro.
807 (main): Use it to display usage information.
808
2c52d7e4
EZ
8092000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
810
811 Support for the menu-help feature:
812
813 * msdos.h: Change prototypes of XMenuAddSelection and
814 XMenuActivate.
815
816 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
817 part of the line to the termscript file.
818 (IT_clear_to_end): Clear the entire line, not just its beginning.
819 (menu_help_message, prev_menu_help_message): New variables.
820 (IT_menu_make_room): Make room for the help_text member.
821 (IT_menu_display): New argument disp_help; all callers changed.
822 If disp_help is non-zero, store the help text of the active menu
823 item in menu_help_message.
824 (XMenuAddPane): Initialize the help_text member to NULL.
825 (XMenuAddSelection): New argument help_text. Store it in the
826 XMenu structure.
827 (XMenuActivate): New argument help_callback. If the value of
828 menu_help_message has changed since the last time, display the
829 menu help message text while waiting for the mouse to move. Clear
830 the echo area before exiting.
831 (XMenuDestroy): Free the help_text member.
832
ffe0bcd1
GM
8332000-01-27 Gerd Moellmann <gerd@gnu.org>
834
835 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
836 XMenuAddSelection. Pass help callback to XMenuActivate.
837 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
838
50dbd23f
EZ
8392000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
840
841 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
842 and EMACS_SET_USECS.
843
f5941bf8
GM
8442000-01-26 Dave Love <fx@gnu.org>
845
6c67ddee
DL
846 * editfns.c (Fchar_after, Fchar_before): Doc fix.
847
f5941bf8
GM
848 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
849 an error may be signalled.
850
9e49c990
GM
8512000-01-26 Gerd Moellmann <gerd@gnu.org>
852
fc3cb460
GM
853 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
854 LD_SWITCH_SYSTEM inherited from irix5-0.h.
855
9e49c990
GM
856 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
857
d0c037d8
GM
8582000-01-25 Gerd Moellmann <gerd@gnu.org>
859
860 * charset.c (Fstring): If there is a multibyte char among
861 the args, always return a multibyte string.
862
e12489f9
GM
8632000-01-25 Gerd Moellmann <gerd@gnu.org>
864
865 * sysdep.c (sys_select): Turn atimers off and on instead of
866 recording and restoring old alarm handler
867
868 * process.c (toplevel): Include atimer.h.
869 (create_process_1): Rewritten.
870 (create_process): Use atimers instead of alarm.
871 (wait_reading_process_input) [hpux]: Turn atimers off instead
872 of turning off SIGALRM.
873 (wait_reading_process_input): Turn off atimers instead off
874 calling stop_polling.
875
876 * emacs.c (main): Call init_atimer.
877
878 * keyboard.c (toplevel): Include systime.h and atimer.h.
879 (polling_for_input): Removed because unused.
880 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
881 (poll_timer): New variable.
882 (poll_for_input, poll_for_input_1): New functions.
883 (start_polling, stop_polling): Rewritten.
884
885 * keyboard.h (polling_for_input): Removed.
886
887 * atimer.h, atimer.c: New files.
888
889 * Makefile.in (obj): Add atimer.o.
890 (atimer.o): New target.
891
892 * blockinput.h (pending_atimers): Add extern declaration.
893 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
894
895 * lisp.h (popup_activated_flag): Add extern declaration.
896
897 * xmenu.c (popup_activated_flag): Make externally visible.
898 (popup_activate_callback) [USE_MOTIF]: Increment
899 popup_activated_flag.
900 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
901
902 * xterm.c (toplevel): Include atimer.h.
903 (toolkit_scroll_bar_interaction): New variable.
904 (Fxt_process_timeouts): Removed.
905 (x_process_timeouts): New function.
906 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
907 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
908 (x_make_frame_visible): Call poll_for_input_1 instead of
909 input_poll_signal. Don't call alarm.
910 (x_initialize): Install timer calling x_process_timeouts.
911
1e5279b9
DL
9122000-01-24 Dave Love <fx@gnu.org>
913
6c67ddee 914 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
915 Don't use -cckr -- apparently not now necessary.
916
edf6aeb8
EZ
9172000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
918
919 * msdos.c (IT_menu_display): Truncate long menu lines at the right
920 screen boundary.
921
9badad41
JR
9222000-01-23 Jason Rumney <jasonr@gnu.org>
923
924 * w32fns.c (w32_defined_color): Apply gamma correction before
925 trying to map to the palette.
926 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
927 to w32_clear_rect.
928
929 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
930 here. Callers changed to always pass real device context.
931 (w32_draw_bitmap): Likewise.
932 (w32_get_glyph_overhangs): Likewise.
933 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
934 one.
935 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
936 pfnSetScrollInfo and SetScrollRange.
937 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
938 back into MULE characters after decoding them.
939 (x_get_glyph_face_and_encoding): Likewise.
940 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
941 GetCharABCWidthsW fails, since this is defined on Windows 9x.
942 (x_produce_glyphs): Calculate per char metrics for a character
943 that we know exists in default font when font_not_found_p is true.
944
63bd786b
JR
9452000-01-22 Jason Rumney <jasonr@gnu.org>
946
947 * makefile.nt (intervals.obj, composite.obj): New modules.
948 (composite.h): Added as dependency where appropriate.
949
950 * w32gui.h (XGCValue): New struct for emulating X GCs.
951
952 * w32term.h (XCharStruct): New struct for emulating X.
953
954 * w32console.c (turn_on_face, turn_off_face): New functions.
955 (change_line_highlight): New prototype for new redisplay.
956 (write_glyphs): Support multibyte text. Support faces.
957
958 * w32faces.c: Complete rewrite for new redisplay based on new
959 xfaces.c.
960
961 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
962 throughout. struct frame * in place of FRAME_PTR.
963 Skeleton support for images, toolbars, tooltips from xfns.c.
964 (Fx_create_frame): Use system default for default scroll bar
965 width.
966 (w32_get_arg): Renamed from x_get_arg.
967 (Fx_file_dialog): New function.
968 (w32_list_fonts): Check cache before asking system.
969 (Vw32_enable_synthesized_fonts): New variable.
970 (Vw32_enable_italics): Obsolete, removed.
971
972 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
973 Use SELECTED_FRAME macro.
974
975 * w32menu.c: Add skeleton support for help strings on menus.
976 (add_menu_item): Native checkbox and radio support added, but not
977 yet enabled due to bugs.
978 (push_menu_item): Add parameters type, selection and help.
979 Callers updated.
980 Formatting changes to reduce unnecessary diffs with xmenu.c.
981
982 * w32select.c (Fw32_set_clipboard_data): Update call to
983 find_charset_in_str.
984
985 * w32term.c: Complete rewrite for new redisplay based on new
986 xterm.c with necessary sections merged back in from old w32term.c.
987
6ffd3cf7 9882000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
989
990 * data.c (set_internal): Further fix in same criterion.
991
6ffd3cf7 9922000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
993
994 * data.c (set_internal): Fix the criteria for whether
995 to swap out the old cached binding.
996
60af03f1
DL
9972000-01-19 Dave Love <fx@gnu.org>
998
999 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
1000
f9be074f
KH
10012000-01-18 Kenichi Handa <handa@etl.go.jp>
1002
1003 * regex.c (re_compile_fastmap): While checking a range table for
1004 `charset', skip flag bits for a character class correctly.
1005
52b8dbf9
GM
10062000-01-17 Gerd Moellmann <gerd@gnu.org>
1007
d36100c9
GM
1008 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
1009
52b8dbf9
GM
1010 * xfns.c (x_window): Call lw_create_widget with new parameter
1011 list.
1012
1013 * widget.c (EmacsFrameSetCharSize): Change size of children first
1014 because of problems with main window geometry management under
1015 Lesstif.
1016
1017 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
1018 MENU_ITEMS_ITEM_.*.
1019 (MENU_ITEMS_ITEM_HELP): New enumerator.
1020 (push_menu_item): Add parameter HELP. Record help in menu_items.
1021 (single_menu_item, single_submenu, list_of_items): Call
1022 push_menu_item with new parameter.
1023 (single_submenu): Set help string in widget value.
1024 (menu_highlight_callback): New function.
1025 (set_frame_menubar): Call lw_create_widget with new
1026 parameter list.
1027 (xmenu_show, xdialog_show): Ditto.
1028
3139018f
GM
10292000-01-13 Gerd Moellmann <gerd@gnu.org>
1030
1031 * sound.c (Fplay_sound): Improve doc string.
1032
83c8f461
RS
10332000-01-11 Richard M. Stallman <rms@gnu.org>
1034
1035 * lisp.h (set_internal): Enter the new arg.
1036
1037 * eval.c (specbind): Record buffer-local variables specially,
1038 indicating which buffer's binding was saved.
1039 (unbind_to): Restore buffer-local variables specially
1040 in the proper buffer.
1041
1042 * data.c (set_internal): New arg BUF.
1043
1044 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
1045 * data.c (Fset): Pass new arg to set_internal.
1046 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
1047
1fab1775
GM
10482000-01-11 Gerd Moellmann <gerd@gnu.org>
1049
1050 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
1051 xprintsym.
1052
83c8f461 10532000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
1054
1055 * minibuf.c (Ftry_completion): Doc fix.
1056
7a85e4df
GM
10572000-01-11 Gerd Moellmann <gerd@gnu.org>
1058
1059 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
1060 vector, too.
1061
a970dae4
AS
10622000-01-11 Andreas Schwab <schwab@suse.de>
1063
1064 * coding.c (code_convert_region): Initialize total_skip.
1065
c65d14ee
DL
10662000-01-08 Dave Love <fx@gnu.org>
1067
1068 * eval.c (Fuser_variable_p): Check customizability too.
1069
834938d2
GM
10702000-01-07 Gerd Moellmann <gerd@gnu.org>
1071
1072 * minibuf.c (Fcompleting_read): Doc fix.
1073
e0303cd6
GM
10742000-01-05 Gerd Moellmann <gerd@gnu.org>
1075
8a26744b
GM
1076 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
1077 -L /usr/local/lib.
1078
e0303cd6
GM
1079 * xfns.c (x_create_im): New function to set IM and IC of a frame.
1080 Check that input style is supported before trying to create an
1081 IC for it.
1082 (x_window): Call x_create_im.
1083
2e471eb5
GM
10842000-01-04 Gerd Moellmann <gerd@gnu.org>
1085
560a7bd2
GM
1086 * xfns.c (current_gif_memory_src): New variable.
1087 (gif_load): Record the address of the current memory source
1088 in current_gif_memory_src.
1089 (gif_read_from_memory): Use current_gif_memory_src.
1090
f9ee84a3
GM
1091 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
1092 macros statement form.
1093
d1299cde
GM
1094 * sound.c (struct sound): Renamed from struct sound_file.
1095 (struct sound): Add members `data' and `header_size'.
1096 (enum sound_attr): Add SOUND_DATA.
1097 (current_sound, current_sound_device): Variables renamed from
1098 sound_file and sound_device.
1099 (parse_sound): Parse :data.
1100 (parse_sound): Handle sound data in strings.
1101 (find_sound_type): Function renamed from find_sound_file_type.
1102 (wav_init, au_init): Fail if sound's header_size is smaller than
1103 needed header size.
1104 (wav_play, au_play): Play sounds from string data.
1105
2e471eb5
GM
1106 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
1107
1108 * lisp.h: Add prototype for allocate_string_data.
1109
1110 * alloc.c (Fgarbage_collect): Return number of live and free
1111 strings.
1112
1113 * alloc.c (mark_buffer): Remove code in #if 0.
1114 (gc_sweep): Ditto.
1115 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
1116 (strings_consed): New variable.
1117 (allocate_string): Set it.
1118 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
1119 (Fmemory_use_counts): Return strings_consed. Use Flist.
1120
1121 * alloc.c: General cleanup in comments etc. Remove conditional
1122 compilation for `standalone'.
1123
1124 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
1125
1126 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
1127 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
1128 (DONT_COPY_FLAG): Removed.
1129 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
1130 (struct sdata, struct sblock): New
1131 (struct string_block): Rewritten.
1132 (STRINGS_IN_STRING_BLOCK): New macro.
1133 (oldest_sblock, current_sblock, total_strings, total_free_strings)
1134 (large_sblocks, string_blocks, string_free_list): New variables.
1135 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
1136 (init_strings): Rewritten.
1137 (allocate_string, allocate_string_data, compact_small_strings)
1138 (free_large_strings, sweep_strings): New functions.
1139 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
1140 (struct string_block_head, current_string_block)
1141 (first_string_block, large_string_blocks, STRING_FULLSIZE)
1142 (STRING_PAD): Removed.
1143 (make_uninit_multibyte_string, make_pure_string): Rewritten.
1144 (Fgarbage_collect): Don't set mark bit in large strings.
1145 (mark_object): Mark strings differently. Mark symbol names
1146 differently.
1147 (survives_gc_p): Test marked strings differently.
1148 (gc_sweep): Sweep strings differently, unmark strings in
1149 symbol names.
1150 (compact_strings): Removed.
1151
42608ba8
EZ
11522000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
1153
1154 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
1155 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
1156
e0a09e1a
KH
11572000-01-04 Kenichi Handa <handa@etl.go.jp>
1158
dd9f0750
KH
1159 * fileio.c (Finsert_file_contents): Signal error if visiting file
1160 in a non-empty buffer.
1161
3c0f3b15 1162 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 1163
44cd3ae5
GM
11642000-01-03 Gerd Moellmann <gerd@gnu.org>
1165
1166 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
1167 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
1168
1169 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
1170
c182a70f
EZ
11712000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1172
1173 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
1174 need to test for MSDOS frames.
1175
24480d5b
EZ
11762000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1177
1178 * dosfns.c (unspecified_colors): Remove.
1179 (msdos_stdcolor_idx): Use global variables unspecified_fg and
1180 unspecified_bg.
1181 (msdos_stdcolor_name): Return strings for unspecified fore- and
1182 back-ground colors.
1183
1184 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 1185 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
1186 (tty_color_name): Return Lisp strings for unspecified fore- and
1187 back-ground colors.
1188 (Finternal_set_lisp_face_attribute): Remove the special treatment
1189 for Qunspecified_{f,b}g.
1190 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
1191 string.
1192
047f434a
GM
11932000-01-03 Gerd Moellmann <gerd@gnu.org>
1194
1195 * xdisp.c (reseat_at_next_visible_line_start): Position before
1196 newline only if ending up on a newline.
1197 (next_element_from_ellipsis): Return success. Handle case of
1198 displaying no ellipsis. Fix case of ellipsis defined in display
1199 table.
1200 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
1201 returns 0.
1202
d684c676
EZ
12032000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1204
1205 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
1206 (Fcolor_supported_p): Renamed from face-color-supported-p.
1207
5fe1d139
EZ
12082000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1209
1210 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
1211 list of colors renamed to tty-defined-color-alist.
1212 (tty_color_name): Pass the frame to tty-color-by-index.
1213 (realize_tty_face): tty-color-alist is now a function which
1214 accepts the frame as argument.
1215
1216 * term.c (Ftty_display_color_p): Accept an optional argument
1217 FRAME.
1218
816be8b8
EZ
12192000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1220
1221 * term.c (insert_glyphs): Pass glyph, not &glyph, to
1222 encode_terminal_code.
1223
b635321e
EZ
12242000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1225
1226 * dispnew.c (mode_line_string): Support termcap frames as well.
1227
9b784e96
GM
12282000-01-01 Gerd Moellmann <gerd@gnu.org>
1229
27189709
GM
1230 * syntax.c (Fforward_word): Undo previous change.
1231
1232 * editfns.c (Fconstrain_to_field): Don't constrain if
1233 inhibit-field-text-motion is non-nil.
1234 (Fline_beginning_position): Undo previous change.
1235 (Fline_end_position): Ditto.
1236
1237 * syntax.c (Fforward_word): Notice field boundaries only if
1238 inhibit-field-text-motion is nil.
1239
1240 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
1241
1242 * editfns.c (Vinhibit_field_text_motion): New variable.
1243 (inhibit-field-text-motion): New DEFVAR_LISP.
1244 (Fline_beginning_position, Fline_end_position): Notice field
1245 boundaries only if inhibit-field-text-motion is nil.
1246
45158a91
GM
1247 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
1248 All calls adjusted.
1249 (x_build_heuristic_mask): Likewise.
1250 (xbm_load_image_from_file): Change error output.
1251 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
1252 (gif_load, gs_load, x_kill_gs_process): Ditto.
1253
9b784e96
GM
1254 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
1255 color indices when accessing raster pixels.
63cec32f
GM
1256 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
1257 one of :file or :data.
1258 (enum pbm_keyword_index): Add PBM_DATA.
1259 (pbm_format): Add :data.
1260 (pbm_image_p): Allow either :file or :data.
1261 (pbm_read_file): New function.
1262 (pbm_scan_number): Rewritten to read from string.
1263 (pbm_load): Support :data.
9b784e96 1264
5ad6a5fb
GM
12651999-12-31 Gerd Moellmann <gerd@gnu.org>
1266
1267 * xfns.c: New image functions adapted to Emacs conventions.
1268 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
1269 variable `file'.
1270
63448a4d
WP
12711999-12-31 William M. Perry <wmperry@aventail.com>
1272
1273 * xfns.c (jpeg_format): Added the :data keyword
1274 (jpeg_image_p): JPEG is valid with :file _or_ :data
1275 (jpeg_memory_src): Defined new JPEG image source to read from a
1276 memory buffer.
1277 (jpeg_load): Pay attention to the :data keyword if specified.
1278 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
1279 found.
1280 (png_format): Added the :data keyword
1281 (png_image_p): PNG is valid with :file _or_ :data
1282 (png_read_from_memory): New PNG read function to read from a
1283 memory buffer.
1284 (png_load): Pay attention to the :data keyword if specified. Uses
1285 png_set_read_fn() instead of png_init_io() if specified.
1286 (tiff_format): Added the :data keyword for TIFF images.
1287 (tiff_image_p): TIFF is valid with :file _or_ :data
1288 (tiff_read_from_memory): Defined new TIFF I/O functions to read
1289 from a memory buffer.
1290 (tiff_load): Pay attention to the :data keyword if specified.
1291 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
1292 (gif_format): Added the :data keyword
1293 (gif_image_p): GIF is valid with :file _or_ :data
1294 (gif_read_from_memory): New GIF input function to read from a
1295 memory buffer.
c65d14ee 1296 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
1297 instead of DGifOpenFileName() if specified.
1298
c880678e
GM
12991999-12-31 Gerd Moellmann <gerd@gnu.org>
1300
1301 * xdisp.c (next_element_from_buffer): Change assertion at the end
1302 because it doesn't hold when there's an overlay string at the end
1303 from which we deliver an image.
1304
8ccb9a54
EZ
13051999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
1306
1307 * msdos.c (IT_update_begin): Don't dereference members of struct
1308 window for deleted windows.
1309
12ce2351
GM
13101999-12-30 Gerd Moellmann <gerd@gnu.org>
1311
a915c648
GM
1312 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
1313 a hook, and the hook has a non-nil `no-self-insert' property, let
1314 the return value of the hook specify whether an expansion took
1315 place. If it returns nil, no expansion has been performed.
1316
12ce2351
GM
1317 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
1318 differently.
1319
04ee4f45
EZ
13201999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
1321
1322 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
1323
7f4bc0c3
EZ
13241999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
1325
1326 * dispnew.c (mode_line_string): Support MS-DOS frames.
1327
dac204bc
GM
13281999-12-29 Gerd Moellmann <gerd@gnu.org>
1329
1330 * eval.c (syms_of_eval): Initialize debugger_may_continue.
1331
7b712ad8
KH
13321999-12-29 Kenichi Handa <handa@etl.go.jp>
1333
1334 * process.c (read_process_output): Fix the args CHARPOS and LENINS
1335 to signal_after_change.
1336
adb9900f
EZ
13371999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
1338
41ad069b
EZ
1339 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
1340 dimensions changed, invalidate the mouse highlight info.
1341 (disable_mouse_highlight, help_echo, previous_help_echo): New
1342 variables.
1343 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
1344 (fast_find_position, IT_note_mode_line_highlight)
1345 (IT_note_mouse_highlight): New functions.
1346 (IT_update_begin): If the redisplay affects the window where the
1347 mouse highlight is, clear the highlight. If the frame where the
1348 highlight was displayed was killed, invalidate the highlight
1349 info.
1350 (IT_update_end): Reset the highlight flag. Reset the mouse
1351 highlight-defer flag.
1352 (IT_frame_up_to_date): New function, if mouse highlight was
1353 deferred due to GC, do it now.
1354 (internal_terminal_init): Initialize mouse-highlight related
1355 members of the_only_x_display. Assign IT_frame_up_to_date to
1356 frame_up_to_date_hook.
1357 (dos_rawgetc): If the mouse moved, update mouse highlight. If
1358 help_echo changed value, generate a HELP_EVENT event.
1359 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
1360
adb9900f
EZ
1361 * msdos.h (struct display_info): New.
1362 (struct x_output): Add the display_info member.
1363 (FRAME_X_DISPLAY_INFO): New macro.
1364
481b5054
GM
13651999-12-28 Gerd Moellmann <gerd@gnu.org>
1366
1367 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
1368 if MODIFF > 1.
6448a6b3 1369 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
1370
1371 * buffer.c (modify_overlay): Always compute unchanged info.
1372
a2882b0d
KH
13731999-12-27 Kenichi Handa <handa@etl.go.jp>
1374
1375 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
1376
89ba5b5f
KH
13771999-12-27 Kenichi Handa <handa@etl.go.jp>
1378
1379 The following changes are to use more bits for face IDs.
1380
1381 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
1382 lowest 8 bits are single byte character code, the bits above are
1383 face ID.
481b5054 1384 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 1385 above.
481b5054
GM
1386 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
1387 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
1388
1389 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
1390 of GLYPH_MASK_CHAR.
1391
1392 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
1393 of GLYPH_MASK_CHAR.
1394
1395 * dispextern.h (struct glyph): Make face_id and padding_p the top
1396 level members. Change members in union `u'.
1397 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
1398 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
1399 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
1400 (CHAR_GLYPH_PADDING_P): Likewise.
1401 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
1402 characters.
1403
481b5054 1404 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
1405 for the change of struct glyph.
1406 (line_draw_cost): Adjusted for the change of
1407 GLYPH_FROM_CHAR_GLYPH.
1408 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
1409
1410 * term.c (encode_terminal_code): Adjusted for the change of struct
1411 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 1412 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
1413 change of struct glyph.
1414
1415 * xdisp.c: All codes adjusted for the change of struct glyph.
1416
1417 * xterm.c: All codes adjusted for the change of struct glyph.
1418
5bcd116c
KH
14191999-12-27 Kenichi Handa <handa@etl.go.jp>
1420
1421 * composite.h (struct composition): Change the order of declaring
1422 members to reduce the byte size of the structure.
1423
f21b06b7
GM
14241999-12-25 Gerd Moellmann <gerd@gnu.org>
1425
1426 * search.c (looking_at_1): Reset immediate_quit before modifying
1427 global data.
1428
e36557c9
KH
14291999-12-24 Kenichi Handa <handa@etl.go.jp>
1430
1431 * process.c (read_process_output): Fix the arg FROM to
1432 update_compositions.
1433
83c8f461 14341999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
1435
1436 * search.c (Freplace_match): For nonliteral replacement in buffer,
1437 construct all the new text first, then insert all at once.
1438
0b863bd9
DL
14391999-12-22 Dave Love <fx@gnu.org>
1440
1441 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
1442
6d8e8ef3
GM
14431999-12-22 Gerd Moellmann <gerd@gnu.org>
1444
28d7281d
GM
1445 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
1446 lead to size changes to after the X window has been created.
1447
e22ef6eb 1448 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
1449 variable in xassert.
1450
8affcced
KH
14511999-12-22 Kenichi Handa <handa@etl.go.jp>
1452
1453 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 1454 only when the frame is not for a window system.
8affcced 1455
f2be1146
GM
14561999-12-22 Gerd Moellmann <gerd@gnu.org>
1457
deca1348
GM
1458 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
1459 redisplay after changing the multibyteness of a buffer.
1460
f2be1146
GM
1461 * xterm.c (XTread_socket): At the beginning of the loop, pass the
1462 frame's X window to XFilterEvent instead of None because that's
1463 the X window for which the IC was created. This makes dead
1464 accents work when the pointer is not in Emacs' frame.
1465 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
1466
a744a2ec
DL
14671999-12-20 Dave Love <fx@gnu.org>
1468
1469 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
1470
9e6985ed
GM
14711999-12-19 Gerd Moellmann <gerd@gnu.org>
1472
1473 * eval.c (debugger_may_continue): New variable.
1474 (syms_of_eval): Add a DEFVAR_BOOL for it.
1475 (call_debugger): Bind it.
1476
3b620731
EZ
14771999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
1478
1479 * msdos.c (IT_set_face): Don't swap face colors when highlight or
1480 fp->tty_reverse_p is set, unless the computed colors are identical
1481 to frame colors. Print both original and computed colors to
1482 termscript file.
1483 (IT_write_glyphs): Track the changes in handling of composite
1484 characters.
1485 (IT_set_frame_parameters): Don't set frame colors from
1486 unspecified-fg and unspecified-bg pseudo-colors.
1487
0f9a51c4
DL
14881999-12-17 Dave Love <fx@gnu.org>
1489
1490 * data.c (Fkeywordp): New function.
1491 (syms_of_data): Install it.
1492
363e4e42
EZ
14931999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
1494
1495 * xfaces.c (tty_defined_color): Fix last change.
1496
cfad01b4
GM
14971999-12-15 Gerd Moellmann <gerd@gnu.org>
1498
1499 * xdisp.c (redisplay_window) <optional new window start>: Check
1500 that window start is in [BEGV..ZV].
1501
f9d2fdc4
EZ
15021999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
1503
1504 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
1505 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
1506
1507 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
1508 (syms_of_xfaces): Initialize and staticpro them.
1509 (tty_defined_color): If the color name is unspecified-fg or
1510 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
1511 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
1512 (tty_color_name): If the color pixel value is either
1513 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
1514 Qunspecified_fg or Qunspecified_bg, respectively.
1515 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
1516 and Qunspecified_bg for foreground and background colors.
1517 (realize_default_face): If the foreground and background colors
1518 are not specified, default to Qunspecified_fg and Qunspecified_bg.
1519 (realize_tty_face): By default, set the face colors to
1520 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
1521 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
1522 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
1523 Reverse the colors if the default colors were reversed.
1524
1525 * dispnew.c (init_display): Initialize the frame pixels of the
1526 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
1527 FACE_TTY_DEFAULT_BG_COLOR.
1528
1529 * term.c (turn_on_face): If the default fore- and background
1530 colors are reversed, enter inverse video mode. Don't send color
1531 escape sequences for unspecified foreground and background colors.
1532 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
1533
1534 * dosfns.c (unspecified_colors): New variable.
1535 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
1536 color names, return FACE_TTY_DEFAULT_FG_COLOR and
1537 FACE_TTY_DEFAULT_BG_COLOR, respectively.
1538 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
1539 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
1540 Qunspecified_bg, respectively.
1541
1542 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
1543 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
1544
e19539f1
KH
15451999-12-15 Kenichi Handa <handa@etl.go.jp>
1546
1547 * coding.c (code_convert_region): Fix the secoding arg to
1548 update_compositions.
1549
5ec14d3c
KH
15501999-12-15 Kenichi Handa <handa@etl.go.jp>
1551
1552 The following changes are for the new composition mechanism. We
1553 have deleted `composition' charset and composite characters,
1554 instead introduced a special text property `composition'.
1555
1556 * Makefile.in (INTERVAL_SRC): Include composite.h.
1557 (INTERVAL_OBJ): Include composite.o.
1558 (SOME_MACHINE_OBJECTS): Include composite.o.
1559 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
1560 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
1561 Depend on composite.h.
1562 (doc.o): Depend on charset.h.
1563 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
1564 (composite.o): New target.
1565
1566 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
1567
1568 * callproc.c (Fcall_process): Call code_convert_string to encode
1569 arguments. Use CODING_REQUIRE_DECODING to check if the process
1570 output should be decoded.
1571
1572 * casefiddle.c: Include composite.h.
1573 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
1574 multibyte character. Adjusted for the change of CHAR_STRING.
1575 (casify_region): Likewise. Call update_compositions.
1576
1577 * category.h (CATEGORY_SET): Delete codes for a composite
1578 character.
1579
1580 * category.c (word_boundary_p): Delete codes for a composite
1581 character.
1582 (Fmake_category_table): New function.
1583 (syms_of_category): Defsubr it.
1584
1585 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
1586 (ccl_driver): Delete codes for a composite character.
1587
1588 * charset.h: In this entry, just `Modified' means that codes for a
1589 composite character is deleted.
1590 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
1591 (charset_composition) (MIN_CHAR_COMPOSITION)
1592 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
1593 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
1594 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
1595 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
1596 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
1597 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
1598 Modified.
1599 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
1600 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
1601 non_ascii_char_to_string.
1602 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
1603 (STRING_CHAR_AND_LENGTH): Likewise.
1604 (FETCH_CHAR_ADVANCE): New macro.
1605 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
1606 (MAX_MULTIBYTE_LENGTH): New macro.
1607 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
1608 (find_charset_in_str): Argument adjusted.
1609 (CHAR_LEN): Modified.
1610
1611 * charset.c: In this entry, just `Modified' means that codes for a
1612 composite character is deleted.
1613 (Qcomposition) (leading_code_composition)
1614 (charset_composition) (min_composite_char) (cmpchar_table)
1615 (cmpchar_table_size) (n_cmpchars): Deleted.
1616 (SPLIT_COMPOSITE_SEQ): Deleted.
1617 (SPLIT_MULTIBYTE_SEQ): Modified.
1618 (char_to_string): Renamed from non_ascii_char_to_string.
1619 Modified.
1620 (string_to_char): Renamed from string_to_non_ascii_char.
1621 (split_string): Renamed from split_non_ascii_string.
1622 (char_printable_p) (Fsplit_char)
1623 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
1624 (char_bytes) (Fchar_width) (strwidth): Modified.
1625 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
1626 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
1627 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
1628 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
1629 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
1630 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
1631 (Fcmpchar_cmp_count): Deleted.
1632 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
1633 (init_charset_once): Modified.
1634 (syms_of_charset): Modified.
1635
1636 * cmds.c (internal_self_insert): Adjusted for the change of
1637 CHAR_STRING.
1638
1639 * coding.h (emacs_code_class_type): Delete the member
1640 EMACS_leading_code_composition.
1641 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
1642 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
1643 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
1644 (COMPOSING_WITH_RULE_P): Macros deleted.
1645 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
1646 macros.
1647 (struct composition_data): New structure.
1648 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
1649 (struct coding_system): New members composition_rule_follows,
1650 cmp_data, cmp_data_start, cmp_data_index.
1651 (coding_save_composition) (coding_free_composition_data)
1652 (coding_adjust_composition_offset): Extern them.
1653
1654 * coding.c: Include composite.h.
1655 (DECODE_CHARACTER_ASCII): Don't handle composition here.
1656 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
1657 of multibyte code here.
1658 (DECODE_CHARACTER_DIMENSION2): Likewise.
1659 (detect_coding_emacs_mule): Change the case label from
1660 EMACS_leading_code_composition to 0x80.
1661 (detect_coding_iso2022): Handle new composition sequence.
1662 (DECODE_ISO_CHARACTER): Likewise.
1663 (check_composing_code): Deleted.
1664 (coding_allocate_composition_data): New function.
1665 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
1666 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
1667 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
1668 (decode_coding_iso2022): Handle new composition sequence.
1669 (ENCODE_ISO_CHARACTER): Don't check composition here.
1670 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
1671 (ENCODE_COMPOSITION_NO_RULE_START)
1672 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
1673 (ENCODE_COMPOSITION_END): Handle new composition sequence.
1674 (ENCODE_COMPOSITION_FAKE_START): New macro.
1675 (encode_coding_iso2022): Handle new composition sequence.
1676 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
1677 (encode_coding_sjis_big5): Ignore composition.
1678 (setup_coding_system): Initialize new members of struct
1679 coding_system. Enable composition only when the coding system has
1680 `composition' property t.
1681 (coding_free_composition_data) (coding_adjust_composition_offset)
1682 (coding_save_composition) (coding_restore_composition): New
1683 functions.
1684 (code_convert_region): Call coding_save_composition for encoding
1685 and coding_allocate_composition_data for decoding. Don't skip
1686 ASCII characters if we handle composition on encoding. Call
1687 signal_after_change with Check_BORDER.
1688 (code_convert_string): Call coding_save_composition for encoding
1689 and coding_allocate_composition_data for decoding. Don't skip
1690 ASCII characters if we handle composition on encoding.
1691 (code_convert_string1): Set Vlast_coding_system_used after calling
1692 code_convert_string.
1693 (code_convert_string_norecord): Disable composition.
1694 (Fset_terminal_coding_system_internal): Likewise.
1695 (Fset_safe_terminal_coding_system_internal): Likewise.
1696 (Fset_keyboard_coding_system_internal): Likewise.
1697 (init_coding_once): Set emacs_code_class[0x80] to
1698 EMACS_invalid_code.
1699
1700 * composite.h: New file.
1701
1702 * composite.c: New file.
1703
1704 * data.c (Faref): Delete codes for a composite character..
1705 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
1706
1707 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
1708 (struct glyph): Add new sub-structure cmp to the union `u'.
1709 (enum display_element_type): New member IT_COMPOSITION.
1710 (enum prop_idx): New member COMPOSITION_PROP_IDX.
1711 (struct it): New members cmp_id, cmp_len.
1712
1713 * dispnew.c (direct_output_forward_char): Check point moving into
1714 or out of a composition. If so, give up direct method.
1715
1716 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
1717
1718 * editfns.c (Fchar_to_string): Adjusted for the change of
1719 CHAR_STRING.
1720 (general_insert_function): Likewise.
1721 (Finsert_char): Likewise.
1722 (Fsubst_char_in_region): Likewise. Call update_compositions.
1723 (Ftranslate_region): Call update_compositions.
1724 (Ftranspose_regions): Call update_compositions.
1725
1726 * emacs.c (main): Call syms_of_composite.
1727
1728 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
1729 CHAR_STRING.
1730 (Finsert_file_contents): Set Vlast_coding_system_used before
1731 calling signal_after_change. Call update_compositions if some
1732 texts are inserted..
1733 (Fwrite_region): Adjusted for the change of a_write and e_write.
1734 (a_write): Argument changed. Work based on character position,
1735 not byte position.
1736 (e_write): Argument changed. Handle new way of composition.
1737
1738 * fns.c (Flength): The length of char-table is MAX_CHAR.
1739 (concat): Adjusted for the change of CHAR_STRING.
1740 (Ffillarray): Adjusted for the change of CHAR_STRING.
1741 (Fset_char_table_default): Delete codes for a composite character.
1742 (hash_put): Return hash index.
1743
1744 * fontset.h (struct font_info): New member vertical_centering.
1745 (Vvertical_centering_font_regexp): Extern it.
1746
1747 * fontset.c (Vvertical_centering_font_regexp): New variable.
1748 (syms_of_fontset): Declare it as a Lisp variable and initialize.
1749 Set Vignore_relative_composition to nil.
1750 (fs_load_font): Initialize `vertical_centering' of struct
1751 font_info.
1752
1753 * indent.c (check_composition): New function.
1754 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
1755 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
1756 (current_column_1): Handle new way of composition.
1757 (Fmove_to_column): Likewise.
1758 (compute_motion): Likewise.
1759
1760 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
1761 (insert_char): Likewise.
1762 (insert): Call update_compositions.
1763 (insert_and_inherit): Likewise.
1764 (insert_before_markers): Likewise.
1765 (insert_before_markers_and_inherit): Likewise.
1766 (insert_from_string): Likewise.
1767 (insert_from_string_before_markers): Likewise.
1768 (insert_from_buffer): Likewise.
1769 (replace_range): Likewise.
1770 (count_combining_composition): Deleted.
1771 (count_combining_before): Delete codes for a composite character.
1772 (count_combining_after): Likewise.
1773 (del_range_1): Call update_compositions.
1774 (del_range_byte): Likewise.
1775 (del_range_both): Likewise.
1776 (Fcombine_after_change_execute): Likewise.
1777
1778 * intervals.h: Include composite.h.
1779 (get_property_and_range): Extern it.
1780 (Vtext_property_default_nonsticky): Extern it.
1781
1782 * intervals.c (adjust_intervals_for_insertion): To check stickines
1783 of properties, pay attention to text-property-default-nonsticky.
1784 (merge_properties_sticky): Likewise.
1785 (get_property_and_range): New function.
1786
1787 * keyboard.c (Vdisable_point_adjustment): New variable.
1788 (Vglobal_disable_point_adjustment): New variable.
1789 (syms_of_keyboard): Declare them as Lisp variables.
1790 (command_loop_1): Check them and call adjust_point_for_property if
1791 necessary.
1792 (adjust_point_for_property): New function.
1793
1794 * keymap.c (push_key_description): Adjusted for the change of
1795 CHAR_STRING.
1796 (Ftext_char_description): Likewise.
1797
1798 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
1799 (hash_put): Adjusted for the change of the definition.
1800 (signal_after_change): Likewise.
1801 (check_point_in_composition): Extern it.
1802
1803 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
1804 Delete a code that handles an invalid too-long multibyte sequence
1805 because we are now sure that we never encounter with such a
1806 sequence.
1807 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
1808 MAX_LENGTH_OF_MULTI_BYTE_FORM.
1809 (init_obarray): Likewise.
1810 (read1): Likewise. Adjusted for the change of CHAR_STRING.
1811
1812 * print.c (printchar): Adjusted for the change of CHAR_STRING.
1813
1814 * process.c: Include composite.h.
1815 (read_process_output): Call update_compositions.
1816
1817 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
1818
1819 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
1820
1821 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
1822 character.
1823
1824 * term.c (encode_terminal_code): Delete codes for a composite
1825 character. Adjusted for the change of CHAR_STRING.
1826 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
1827 Delete codes for a composite character.
1828
1829 * textprop.c (Vtext_property_default_nonsticky): New variable
1830 (syms_of_textprop): Declare it as a Lisp variable.
1831
1832 * window.c (Frecenter): Clear all caches of compositions.
1833
1834 * xdisp.c (it_props): Add an entry for composition.
1835 (face_before_or_after_it_pos): For composition, check face of a
1836 character after the composition.
1837 (handle_composition_prop): New function.
1838 (get_next_display_element): Adjusted for the change of
1839 CHAR_STRING.
1840 (set_iterator_to_next): Handle the case that it->method ==
1841 next_element_from_composition.
1842 (next_element_from_composition): New function.
1843 (message_dolog): Adjusted for the change of CHAR_STRING.
1844 (set_message_1): Likewise.
1845 (check_point_in_composition): New function.
1846 (reconsider_clip_changes): If point moved into or out of
1847 composition, set b->clip_changed to 1 to force updating of the
1848 screen.
1849 (disp_char_vector): Delete codes for a composite character.
1850 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
1851
1852 * xfaces.c (choose_face_fontset_font): Delete codes for a
1853 composite character.
1854 (realize_x_face): Likewise. Change a place to set local variable
1855 `f' to avoid a bug of GCC 2.8.1 on Solaris.
1856
1857 * xfns.c: Include intervals.h.
1858 (syms_of_xfns): Make `display' property nonsticky by default.
1859
1860 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
1861 for find_charset_in_str.
1862
1863 * xterm.h (struct x_output): Change member font_baseline to
1864 baseline_offset.
1865
1866 * xterm.c (x_append_glyph): Setup members of struct glyph properly
1867 for composition.
1868 (x_append_composite_glyph): New function.
1869 (VCENTER_BASELINE_OFFSET): New macro.
1870 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
1871 of struct it for the composition. Cache pixel offsets in the
1872 struct composition. Delete codes for a composite character.
1873 Handle Vignore_relative_composition in composition code.
1874 (struct glyph_string): Delete member cmpcharp, add new member cmp.
1875 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
1876 (x_compute_glyph_string_overhangs): Likewise.
1877 (x_get_glyph_overhangs): Delete codes for a composite character.
1878 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
1879 (x_draw_glyph_string_background): Likewise. Delete codes for
1880 checking s->gidx for a composition.
1881 (x_draw_glyph_string_foreground): Delete code for a composite
1882 character.
1883 (x_draw_composite_glyph_string_foreground): New function.
1884 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
1885 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
1886 (struct work): Deleted.
1887 (x_fill_composite_glyph_string): Argument changed. Mostly
1888 rewritten for that.
1889 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
1890 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
1891 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
1892 (BUILD_GLYPH_STRINGS): For composition, call
1893 BUILD_COMPOSITE_GLYPH_STRING.
1894 (x_new_font): Initialize f->output_data.x->baseline_offset, not
1895 f->output_data.x->font_baseline.
1896
c3c60f13
GM
18971999-12-14 Gerd Moellmann <gerd@gnu.org>
1898
1899 * xterm.c (show_mouse_face): Don't use updated_area, use
1900 TEXT_AREA.
1901
83c8f461 19021999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
1903
1904 * minibuf.c (Fall_completions): Doc fix.
1905
83c8f461 19061999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
1907
1908 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
1909 has been changed by the Lisp code.
1910
d8eccf12
GM
19111999-12-12 Gerd Moellmann <gerd@gnu.org>
1912
1913 * xfns.c: Indentation fixes.
1914
ae56feae
SM
19151999-12-10 Stefan Monnier <monnier@cs.yale.edu>
1916
1917 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
1918
dfa1c6ae
GM
19191999-12-10 Gerd Moellmann <gerd@gnu.org>
1920
1921 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
1922 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
1923
1924 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
1925 to frame.h.
1926
ec18280f
SM
19271999-12-09 Stefan Monnier <monnier@cs.yale.edu>
1928
1929 * keyboard.c (Qratio): New symbol.
1930 (scroll_bar_parts): Add `Qratio' to it.
1931 (syms_of_keyboard): Init `Qratio'.
1932 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
1933 * xterm.c (#includes): Allow compilation with only Xaw.
1934 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
1935 (xt_action_hook): Replace XAW3D by XAW.
1936 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
1937 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
1938 Determine epsilon dynamically and don't try to be too clever.
1939 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
1940 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
1941 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
1942 scrollbar (using `ratio').
1943 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
1944 scrollbar we have so as to set it up more optimally and to fix
1945 xaw3d_arrow_scroll and xaw3d_pick_top.
1946 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
1947 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
1948 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
1949 is not ignored, using a major gross hack.
1950 (x_initialize): Init default values for xaw3d_arrow_scroll and
1951 xaw3d_pick_top.
1952
83b6d970
DL
19531999-12-09 Dave Love <fx@gnu.org>
1954
1955 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
1956
3648c842
GM
19571999-12-08 Gerd Moellmann <gerd@gnu.org>
1958
1959 * eval.c: Remove conditional compilation on `standalone'.
1960 (call_debugger): When entering the debugger while redisplaying,
1961 reset redisplaying_p, and go back to the top-level if the debugger
1962 returns.
1963
05e71564
GM
19641999-12-07 Gerd Moellmann <gerd@gnu.org>
1965
1966 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
1967 basic faces are realized before trying to use face `menu'.
1968
1969 * window.c (delete_window): Block input for the time window
1970 matrices are being changed.
1971
b46cd536
DL
19721999-12-07 Dave Love <fx@gnu.org>
1973
1974 * lread.c (Fintern_soft): Fix newlines in doc string.
1975
96acb1f7
GM
19761999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
1977
1978 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
1979 duplicate definition of ElfW.
1980 (find_section): Copied from unexsgi.c.
1981 (unexec): Use find_section. Adjust whitespace. Initialize
1982 new_data2_offset based on old_data, not sbss (this fixes a bug on
1983 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
1984 Adjust test for presence of .mdebug section to the new return
1985 value of find_section.
1986
19871999-12-07 Gerd Moellmann <gerd@gnu.org>
1988
1989 * unexelf.c: Merge changes from 20.5.
1990 (unexec): Handle .lit4 and .lit8 unconditionally.
1991
1992 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
1993 unexsgi.o again.
1994
1995 * m/iris5d.h (UNEXEC): Likewise.
1996
7dae4502
SM
19971999-12-06 Stefan Monnier <monnier@cs.yale.edu>
1998
1999 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
2000 (syms_of_editfns): Register it.
2001 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
2002 (del_range_1, del_range_2): Add a ret_string argument to
2003 request that the deleted text be returned.
2004 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 2005 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
2006 * casefiddle.c (casify_region): Update del_range_1 call.
2007 * coding.c (code_convert_region): Update del_range_2 call.
2008 * fileio.c (Finsert_file_contents): Update del_range_2 call.
2009
397e4fae
GM
20101999-12-06 Gerd Moellmann <gerd@gnu.org>
2011
2012 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
2013
3d973f71
GM
20141999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
2015
2016 * lread.c (Fintern_soft): Accept a symbol argument.
2017
740e985f
EZ
20181999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
2019
2020 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
2021
2022 * insdel.c (adjust_markers_for_delete): Fix last change.
2023
2d764c78
EZ
20241999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
2025
2026 Changes for automatic remapping of X colors on terminal frames:
2027
2028 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
2029 frames.
2030 (Vface_tty_color_alist): Remove.
2031 (tty_defined_color): New function.
2032 (defined_color): Rewrite to support any type of frame.
2033 (tty_color_name): New function.
2034 (face_color_supported_p, Fface_color_gray_p,
2035 Fface_color_supported_p): Support non-X frames.
2036 (load_color): Enclose the color name in quotes, in the log
2037 messages. Remove DOS-specific version of load_color.
2038 (realize_tty_face): Take the supported colors from
2039 tty-color-alist. Support translation of X colors to the closest
2040 tty color, for both MSDOS and tty frames.
2041 [MSDOS]: Don't invert face colors if they were taken from the
2042 frame colors.
2043 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
2044
2045 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
2046 Define a mostly empty surrogate.
2047 (tty_display): Declare.
2048
2049 * frame.c (make_terminal_frame) [!macintosh]: Don't use
2050 tty_display.
2051 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
2052 frames when the frame's param_alist includes 'reverse.
2053 (tty_display): Define.
2054 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
2055 output_data.x member.
2056 (Fframe_parameters): Return foreground and background color names
2057 on tty frames as well, in addition to MSDOS frames.
2058
2059 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
2060 selected_frame.
2061 (struct x_output): Remove unused members; document who uses each
2062 member.
2063 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
2064 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
2065 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
2066 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
2067 unused macro definintions.
2068
2069 * msdos.c (IT_set_frame_parameters): Don't call
2070 recompute_basic_faces, the next redisplay will, anyway.
2071 (x_current_display): Remove unused variable.
2072 Many functions: changes for Lisp_object selected_frame.
2073 (IT_set_face): If the tty_reverse_p flag is set for the face,
2074 reverse the foreground and background colors.
2075 (Fmsdos_remember_default_colors): New function.
2076 (syms_of_msdos): Defsubr it.
2077 (IT_set_frame_parameters): Use initial_screen_colors[] when
2078 creating a new frame. If the frame parameters include 'reverse,
2079 swap the foreground and background colors.
2080 (internal_terminal_init): Initialize initial_screen_colors to -1.
2081 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
2082 cus-start.el.
2083
2084 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
2085
2086 * xfns.c (x_defined_color): Rename from defined_color. All
2087 callers changed.
2088 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
2089 all callers changed.
2090 (Fxw_color_values): Renamed from Fx_color_values; all callers
2091 changed.
2092 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
2093 callers changed.
2094 (x_window_to_frame, x_any_window_to_frame,
2095 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
2096 x_top_window_to_frame): Use !FRAME_X_P instead of
2097 f->output_data.nothing.
2098 * xterm.h (x_defined_color): Rename from defined_color.
2099
2100 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
2101 f->output_data.nothing.
2102 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
2103 all callers changed.
2104 (Fxw_color_values): Renamed from Fx_color_values; all callers
2105 changed.
2106 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
2107 callers changed.
2108
2109 * dispextern.h (tty_color_name): Add prototype.
2110
2111 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
2112 f->output_data.nothing.
2113 * w32menu.c (menubar_id_to_frame): Likewise.
2114 * w32term.h (w32_output): Declare.
2115
2116 * dosfns.c (Qmsdos_color_translate): Remove.
2117 (msdos_stdcolor_name): Now returns a Lisp_Object.
2118 * dosfns.h (Qmsdos_color_translate): Remove.
2119
2120 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
2121
b3e5232e
KH
21221999-12-06 Kenichi Handa <handa@etl.go.jp>
2123
2124 * fileio.c (decide_coding_unwind): Renamed from
2125 set_auto_coding_unwind.
2126 (Finsert_file_contents): Make single unwind protect to call both
2127 Vset_auto_coding_function and Ffind_operation_coding_system.
2128
2129 * insdel.c (adjust_markers_for_delete): Make it non-static.
2130
db0e466c
SM
21311999-12-04 Stefan Monnier <monnier@cs.yale.edu>
2132
2133 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
2134 operators and handle them properly.
2135 * regex.h (RE_ALL_GREEDY): New option.
2136 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
2137 sorting would put it.
2138 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
2139 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
2140
22afa6e8
DL
21411999-12-04 Dave Love <d.love@dl.ac.uk>
2142
2143 * m/arm.h: New file.
2144
40afb967
DL
21451999-12-03 Dave Love <fx@gnu.org>
2146
2147 * editfns.c (Fmessage_or_box): Use use_dialog_box.
2148
ddf8eff5
GM
21491999-12-02 Gerd Moellmann <gerd@gnu.org>
2150
2151 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
2152 for building with Motif.
2153
2154 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
2155 unexelf.o.
2156
2157 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
2158
fa09a82d
DL
21591999-12-01 Dave Love <fx@gnu.org>
2160
2161 * emacs.c (main): Set LANG=C iff AX3_2 defined.
2162
ddf8eff5
GM
21631999-11-28 Gerd Moellmann <gerd@gnu.org>
2164
2165 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
2166 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
2167 macros.
2168
2169 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
2170
fa09a82d
DL
21711999-11-28 eliz <eliz@dlpx1>
2172
2173 * emacs.c (synchronize_locale): Avoid compiler warnings about
2174 pointer type mismatch.
2175
f9632fc8
GM
21761999-11-28 Gerd Moellmann <gerd@gnu.org>
2177
717d0121
GM
2178 * window.c (Fwindow_end): Don't call temp_set_pt_both with
2179 out of range position.
2180
f9632fc8
GM
2181 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
2182 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
2183
59c65f1e
EZ
21841999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
2185
613a8346
EZ
2186 * charset.c (Fmake_char_internal): Print the charset ID when
2187 signalling an error.
2188
59c65f1e
EZ
2189 * emacs.c (synchronize_locale): Avoid compiler warnings about
2190 pointer type mismatch.
2191
83c8f461 21921999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
2193
2194 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
2195
18df9369
GM
21961999-11-26 Gerd Moellmann <gerd@gnu.org>
2197
65a3ccf7
GM
2198 * puresize.h (BASE_PURESIZE): Increase to 550000.
2199
b3b98592
GM
2200 * textprop.c (set_text_properties): New function. Like
2201 Fset_text_properties, but with additional parameter
2202 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
2203 changes.
2204 (Fset_text_properties): Use it.
2205
2206 * insdel.c (insert_1_both): Call set_text_properties with last
2207 parameter nil so that no after changes will be signaled.
2208
2209 * lisp.h: Add prototype for set_text_properties.
2210
18df9369
GM
2211 * xfaces.c (set_lface_from_font_name): Fix previous change.
2212 (recompute_basic_faces): Change assert to abort.
2213
71a8e74b
DL
22141999-11-25 Dave Love <fx@gnu.org>
2215
2216 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
2217 (Fmember, Fdelq, Fdelete): Inline car.
2218 (Fy_or_n_p): Doc fix.
2219
bc6a5782
GM
22201999-11-25 Gerd Moellmann <gerd@gnu.org>
2221
3221576b 2222 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 2223 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
2224 is not set, try to use a reasonable default.
2225
bc6a5782
GM
2226 * dispnew.c (direct_output_for_insert): Set glyph row's
2227 displays_text_p flag. Correct window's window_end_vpos if
2228 necessary.
2229
0c8559bb
PE
22301999-11-25 Paul Eggert <eggert@twinsun.com>
2231
2232 * emacs.c (fixup_locale): Don't bother to record initial locale.
2233 (synchronize_locale): If the desired locale is nil,
2234 treat it as if it were the empty string,
2235 so that we set the locale from the environment.
2236
35737351
KH
22371999-11-25 Kenichi Handa <handa@etl.go.jp>
2238
2239 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
2240 of the current buffer via Fset.
2241
5562b47f
DL
22421999-11-24 Dave Love <fx@gnu.org>
2243
2244 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
2245
2246 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
2247
2248 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
2249
00da0e4a
GM
22501999-11-24 Gerd Moellmann <gerd@gnu.org>
2251
2252 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
2253
2254 * emacs.c (PVEC_FLAG): New variable.
2255
b1775dc1
GM
22561999-11-23 Gerd Moellmann <gerd@gnu.org>
2257
2258 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
2259 that fails on IBM PowerPC, AIX 4.2.
2260
08de6200
EZ
22611999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
2262
2263 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
2264 string of mode-line-format. Remove the obsolete %t.
2265
02fda8ff
GM
22661999-11-22 Gerd Moellmann <gerd@gnu.org>
2267
f2fa858f
GM
2268 * dispnew.c (direct_output_for_insert): Increment glyph positions
2269 for glyphs from buffer text only.
2270
02fda8ff
GM
2271 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
2272 (gdb_data_seg_bits): New variables.
2273
2274 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
2275 work on systems not allowing enumerators > INT_MAX, and it
2276 won't work if EMACS_INT is long long.
2277
1b0d24e7
PE
22781999-11-22 Paul Eggert <eggert@twinsun.com>
2279
2280 Port to SunOS 4.1.x again. Help out with Alpha port.
2281 Rename messages-locale to system-messages-locale,
2282 and likewise for time-locale.
2283
2284 * callproc.c (strerror): Remove decl.
2285 * fileio.c (strerror): Likewise.
2286 * process.c (strerror): Likewise.
2287 * emacs.c (strerror): Likewise.
2288 (Vsystem_messages_locale): Renamed from Vmessages_locale.
2289 All uses changed.
2290 (Vprevious_system_messages_locale): Likewise, from
2291 Vprevious_messages_locale.
2292 (Vsystem_time_locale): Likewise, from Vtime_locale.
2293 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
2294 (ABORT_RETURN_TYPE): New macro.
2295 (abort): Return type is now ABORT_RETURN_TYPE.
2296 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
2297 defined.
2298 (syms_of_emacs): messages-locale -> system-messages-locale,
2299 previous-messages-locale -> previous-system-messages-locale,
2300 time-locale -> system-time-locale,
2301 previous-time-locale -> previous-system-time-locale.
2302
2303 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
2304 (const): Do not define; that's config.h's job.
2305 (<limits.h>): Include if HAVE_LIMITS_H is defined.
2306 (CHAR_BIT): Move test for definedness outside of limits.h condition.
2307 (<stddef.h>): Include if STDC_HEADERS is defined.
2308 (FREE_RETURN_TYPE): New macro.
2309 (free): Return type is now FREE_RETURN_TYPE.
2310
2311 * lisp.h (synchronize_system_time_locale): Renamed from
2312 synchronize_time_locale. All uses changed.
2313 (synchronize_system_messages_locale): Likewise, from
2314 synchronize_messages_locale.
2315
2316 * m/alpha.h (malloc, realloc, calloc): Remove decls;
2317 stdlib.h now does this.
2318
2319 * process.c (sys_siglist): Remove.
2320
2321 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
2322 New macros.
2323
2324 * syntax.c (scan_sexps_forward): Use abort, not assert.
2325
2326 * sysdep.c (my_sys_siglist): New var.
2327 (sys_siglist): New macro. Remove old initialized vars of same name.
2328 (init_signals): Initialize sys_siglist.
2329
2330 * xfns.c (abort): Remove decl; stdlib.h now does this.
2331
0dcd5b54
DL
23321999-11-18 Dave Love <fx@gnu.org>
2333
946173ad
DL
2334 * filelock.c: Add forward declaration for get_boot_time_1.
2335
0dcd5b54
DL
2336 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
2337
71447e8f
GM
23381999-11-18 Gerd Moellmann <gerd@gnu.org>
2339
2340 * buffer.h (struct buffer_text): Add comment about moving
2341 buffer text if REL_ALLOC is defined.
2342
eeedff63
KH
23431999-11-18 Kenichi Handa <handa@etl.go.jp>
2344
2345 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
2346
2347 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
2348 memory for push_key_description.
2349
2350 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
2351 allocate memory for push_key_description.
2352 (describe_buffer_bindings): Likewise.
2353
5d7e4a2c
GM
23541999-11-17 Gerd Moellmann <gerd@gnu.org>
2355
2356 * xfns.c (Fx_show_busy_cursor): Doc-fix.
2357 (Fx_hide_busy_cursor): Ditto.
2358
23591999-11-17 Marco Walther <walther@siemens-pyramid.com>
2360
2361 * unexsni.c (unexec): Handle .rel.dyn section.
2362
b5b41e02
DL
23631999-11-16 Dave Love <fx@gnu.org>
2364
2365 * doc.c (Fdocumentation): Remove gcpro here too.
2366
e35b6123
GM
23671999-11-16 Gerd Moellmann <gerd@gnu.org>
2368
2369 * keyboard.c (command_loop_1): Remove no_redisplay.
2370
83c8f461 23711999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
2372
2373 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
2374 in noninteractive.
2375
b05d3bee
GM
23761999-11-14 Gerd Moellmann <gerd@gnu.org>
2377
5bcfeb49
GM
2378 * xdisp.c (ensure_echo_area_buffers): New.
2379 (with_echo_area_buffer): Use it.
2380 (setup_echo_area_for_printing): Ditto.
2381
b05d3bee
GM
2382 * buffer.c (indicate-empty-lines): Doc-fix.
2383
9b2e6e4c
GM
23841999-11-12 Gerd Moellmann <gerd@gnu.org>
2385
e7f90eab
GM
2386 * term.c (term_init): If "op" isn't available, don't support color
2387 because we can't switch back to the default foreground and
2388 background.
2389
9b2e6e4c
GM
2390 * doc.c (Fdocumentation_property): Remove GCPRO because
2391 Fsubstitute_command_keys gcpro's the string.
2392
1bf21027
KH
23931999-11-12 Kenichi Handa <handa@etl.go.jp>
2394
2395 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
2396
3bc6df53
GM
23971999-11-11 Gerd Moellmann <gerd@gnu.org>
2398
2399 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
2400 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
2401 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
2402
35a5514b
GM
24031999-11-10 Gerd Moellmann <gerd@gnu.org>
2404
2405 * xfns.c (QCuser_data): Removed.
2406 (syms_of_xfns): Initialization of QCuser_data removed.
2407 (parse_image_spec): Don't handle :user-data specially. Allow
2408 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
2409 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
2410 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
2411 parse_image_spec accordingly.
2412
83c8f461 24131999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
2414
2415 * cmds.c (Fbeginning_of_line): Doc fix.
2416 (Fend_of_line): Doc fix.
2417
2418 * editfns.c (Fline_beginning_position): If N is not 1,
2419 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
2420
2421 * syntax.c (Fforward_word): Handle fields even if would have hit
2422 an edge of the buffer. Return nil if affected by fields.
2423
83c8f461 24241999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
2425
2426 * editfns.c (preceding_pos): Function deleted.
2427 (text_property_stickiness): Decrement POS directly.
2428 Fix a confusion that used PT instead of POS.
2429
2430 * editfns.c (find_field): Properly handle the case
2431 of a field boundary where `field' inherits from neither side.
2432
2433 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
2434 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
2435
fa9aabf6
GM
24361999-11-08 Gerd Moellmann <gerd@gnu.org>
2437
2438 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
2439 BEFORE_POTENTIAL_GC before DISCARD.
2440
4015b3c0
GM
24411999-11-07 Gerd Moellmann <gerd@gnu.org>
2442
033a5fa3
GM
2443 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
2444
2445 * lisp.h: Add prototype for unmark_byte_stack.
2446
2447 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
2448 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
2449 XUNMARK.
2450
55b064bd
GM
2451 * xdisp.c (resize_mini_window): Fix computation of needed
2452 mini-window height.
2453
2454 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
2455 compilation on USE_TEXT_PROPERTIES.
01e9b9df 2456
4015b3c0 2457 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 2458 locally there. Rearrange case statements so that those most
4015b3c0
GM
2459 frequently executed come first. Avoid goto's in frequently
2460 executed cases.
2461
fe512f27
GM
24621999-11-05 Gerd Moellmann <gerd@gnu.org>
2463
dd59e217
GM
2464 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
2465 AFTER_POTENTIAL_GC around internal_catch.
2466
bcf28080
GM
2467 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
2468 relocate_byte_pcs.
2469 (init_alloc_once, init_alloc): Set byte_stack_list to null.
2470
2471 * eval.c (struct catchtag): Add member byte_stack.
2472 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 2473 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
2474 catchtag.
2475 (unwind_to_catch): Restore byte_stack_list from catchtag.
2476
2477 * lisp.h: Add prototypes for new functions in bytecode.c.
2478 Add extern declaration for byte_stack_list.
2479
2480 * bytecode.c (struct byte_stack): New.
2481 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
2482 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
2483 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
2484 (HANDLE_RELOCATION): Removed.
2485 (Fbyte_code): Use byte_stack structures.
2486
4d59c34c
GM
2487 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
2488
fe512f27
GM
2489 * buffer.c (syms_of_buffer): Extend documentation of
2490 mode-line-format.
2491
60b64cd6
GM
24921999-11-04 Gerd Moellmann <gerd@gnu.org>
2493
2494 * editfns.c (Fdelete_field): Renamed from Ferase_field.
2495
2496 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
2497 Ferase_field instead of Fdelete_field.
2498
b51b619b
GM
24991999-11-03 Gerd Moellmann <gerd@gnu.org>
2500
2501 * dispnew.c (Finternal_show_cursor): Change it to set the
2502 cursor on/off, not toggle its state.
2503 (Finternal_show_cursor_p): New.
2504 (syms_of_display): Defsubr Sinternal_show_cursor_p.
2505
5865af0d
DL
25061999-11-03 Dave Love <fx@gnu.org>
2507
2508 * charset.c (split_non_ascii_string): Define return value.
2509
82a700f3
GM
25101999-11-03 Gerd Moellmann <gerd@gnu.org>
2511
edfef199
GM
2512 * minibuf.c (string_to_object): New.
2513 (read_minibuf_noninteractive): New.
2514 (read_minibuf): Call read_minibuf_noninteractive if
2515 noninteractive. Use string_to_object.
2516
82a700f3
GM
2517 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
2518
b5540f0d
DL
25191999-11-02 Dave Love <fx@gnu.org>
2520
e69dcd60
DL
2521 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
2522
827a1788
DL
2523 * process.c: Define _GNU_SOURCE before config.h to get strsignal
2524 declared with glibc2.
b5540f0d 2525
a69a6e61
GM
25261999-11-02 Gerd Moellmann <gerd@gnu.org>
2527
2528 * lisp.h (QUIT): Give it statement form.
2529
87e21fbd
DL
25301999-11-02 Dave Love <fx@gnu.org>
2531
2532 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
2533
1b335865
GM
25341999-11-02 Gerd Moellmann <gerd@gnu.org>
2535
9fb5e03d
GM
2536 * xfns.c (QCuser_data): New.
2537 (syms_of_xfns): Initialize QCuser_data.
2538 (parse_image_spec): Ignore :user-data DATA properties.
2539
1b335865
GM
2540 * xdisp.c (display_line): Set charpos of first glyph in blank
2541 lines not corresponding to any text to -1, even if no glyphs are
2542 filled in in that line.
2543
e76f1c44
GM
25441999-11-01 Gerd Moellmann <gerd@gnu.org>
2545
36fcd3d9
GM
2546 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
2547 png_get_sRGB in #ifdef.
2548
111259b4
GM
2549 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
2550 (syms_of_display): Use the new name.
2551
dd5c96e8
GM
2552 * textprop.c (verify_interval_modification): Signal text-read-only
2553 instead of calling error.
2554
db8878fb
GM
2555 * data.c (Qtext_read_only): New built-in error.
2556 (syms_of_data): Initialize it.
2557
2558 * lisp.h: Add extern declaration for Qtext_read_only.
2559
e76f1c44
GM
2560 * syntax.c: Remove whitespace after open or in front of closing
2561 parentheses.
2562
83c8f461 25631999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
2564
2565 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
2566
7843e09c
GM
25671999-10-31 Gerd Moellmann <gerd@gnu.org>
2568
575ed805
GM
2569 * xdisp.c (resize_mini_window): Compute needed height differently.
2570
7843e09c
GM
2571 * fns.c (Flength): Unroll loop over lists.
2572
2573 * xdisp.c (append_space): Return non-zero if space was appended.
2574 (display_line): Set charpos of first glyph to -1 only if that
2575 glyph is the space added by append_glyph.
2576
83c8f461 25771999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
2578
2579 * print.c (strout): Consider `noninteractive' and use stdout
2580 only when PRINTCHARFUN is t.
2581
2582 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
2583 (gcpro_level): Declare it extern.
2584 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
2585 Alternate definitions that set `level' and increment `gcpro_level'.
2586 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
2587
2588 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
2589 (init_eval) [DEBUG_GCPRO]: Initialize it.
2590 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
2591 from remaining gcprolist.
2592
3636f7a3
KH
25931999-10-29 Kenichi Handa <handa@etl.go.jp>
2594
2595 * coding.c (code_convert_region): Update `dst' correctly.
2596
a2ad7096
GM
25971999-10-28 Gerd Moellmann <gerd@gnu.org>
2598
2599 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
2600 (Frassoc): Rewritten.
2601
1e3196e8
GM
26021999-10-27 Noah Friedman <friedman@splode.com>
2603
2604 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
2605 Define PTY_NAME_SPRINTF.
2606 Redefine PTY_TTY_NAME_SPRINTF.
2607 * config.in: Add undef for HAVE_DEV_PTMX.
2608
83c8f461 26091999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
2610
2611 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
2612 as arg to DEBUG_POP and DEBUG_PRINT.
2613
83c8f461 26141999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
2615
2616 * data.c (Qad_activate_internal): Renamed from Qad_activate.
2617 (Ffset): Call Qad_activate_internal.
2618 (syms_of_data): Initialize Qad_activate_internal.
2619
26922151
GM
26201999-10-27 Gerd Moellmann <gerd@gnu.org>
2621
2622 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
2623 Vterminal_frame is selected and Vwindow_system is non-nil.
2624
67a5596f
GM
26251999-10-26 Gerd Moellmann <gerd@gnu.org>
2626
2bea706b
GM
2627 * xdisp.c (echo_area_display): Put previous change in #if 0.
2628
67a5596f
GM
2629 * emacs.c (standard_args): Add `file' as synonym for `visit',
2630 `execute' as synonym for `eval'.
2631 (main): Add new options to usage message.
2632
81dc5de5
GM
26331999-10-25 Gerd Moellmann <gerd@gnu.org>
2634
2635 * data.c (Qhash_table): New.
2636 (Ftype_of): Return it for hash tables.
2637 (syms_of_data): Initialize Qhash_table.
2638
83c8f461 26391999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
2640
2641 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
2642
66e4690f 26431999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 2644
7539e11f
KR
2645 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
2646 lisp.h.
2647
2648 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
2649 Fbuffer_local_variables, Fother_buffer, record_buffer,
2650 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
2651 swap_out_buffer_local_variables, overlays_at, overlays_in,
2652 overlay_touches_p, overlay_strings, recenter_overlay_lists,
2653 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
2654 Foverlay_put, report_overlay_modification, evaporate_overlays):
2655 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
2656 references.
2657 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
2658 swap_in_symval_forwarding, set_internal, default_value,
2659 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
2660 Fmake_variable_frame_local, Flocal_variable_p,
2661 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
2662 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
2663 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
2664 * emacs.c (main): Likewise.
2665 * fontset.c (fs_load_font, fs_register_fontset,
2666 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
2667 Fnew_fontset, Fset_fontset_font): Likewise.
2668 * frame.c (do_switch_frame, next_frame, prev_frame,
2669 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
2670 Likewise.
2671 * keyboard.c (read_char, help_char_p, event_to_kboard,
2672 kbd_buffer_get_event, timer_start_idle, timer_check,
2673 make_lispy_event, apply_modifiers, reorder_modifiers,
2674 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
2675 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
2676 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
2677 Fcommand_execute, Fexecute_extended_command): Likewise.
2678 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
2679 Fall_completions): Likewise.
2680 * window.c (Fset_window_margins): Likewise.
2681
2682 * callint.c (quotify_args): Don't explicitly use struct
2683 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
2684
3a7093d8
KR
2685 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
2686 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
2687 if __ELF__ is defined.
2688
2a3d7146
GM
26891999-10-24 Gerd Moellmann <gerd@gnu.org>
2690
2691 * window.c (Fnext_window): Add a QUIT in the loop.
2692
8ac52782
GM
26931999-10-23 Gerd Moellmann <gerd@gnu.org>
2694
2695 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
2696 New targets.
2697
05f0d15a
DL
26981999-10-22 Dave Love <fx@gnu.org>
2699
2700 * emacs.c (main): Enable profiling conditional on __linux also.
2701
882fb0e6
GM
27021999-10-20 Gerd Moellmann <gerd@gnu.org>
2703
2704 * xrdb.c (x_load_resources): Set default resources for resource
2705 classes instead of for the specific Emacs.
2706
b5f5bc31
GM
27071999-10-19 Gerd Moellmann <gerd@gnu.org>
2708
66f4dd69
GM
2709 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
2710 defines it that way.
2711
b5f5bc31
GM
2712 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
2713 if selected_frame is equal to Vterminal_frame.
2714
68c45bf0
PE
27151999-10-19 Paul Eggert <eggert@twinsun.com>
2716
2717 Add support for large files, 64-bit Solaris, system locale codings.
2718
2719 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
2720 when dumping, so that the dumped Emacs doesn't have stray locale info.
2721 (dired.o): Depend on systime.h.
2722 (editfns.o): Depend on coding.h.
2723
2724 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
2725 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
2726 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
2727 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
2728 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
2729 Include <config.h> before any system include files.
2730
2731 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
2732 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
2733 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
2734 xmenu.c, xterm.c:
2735 Do not include <stdlib.h>, as <config.h> does this now.
2736
2737 * callproc.c (Fcall_process):
2738 Synchronize messages locale before invoking strerror.
2739 Decode resulting string with locale-coding-system.
2740
2741 * coding.c (Vlocale_coding_system): New var.
2742 (syms_of_coding): Adjust to above change.
2743 (emacs_strerror): New function.
2744
2745 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
2746
2747 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
2748 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
2749 HAVE_STRSIGNAL): New macros.
2750 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
2751 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
2752
2753 * dired.c: Include "systime.h".
2754 (Ffile_attributes): Do not cast s.st_size to int; this loses
2755 information if int is 32 bits but st_size and EMACS_INT are larger.
2756 Treat large device numbers like large inode numbers.
2757
2758 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
2759
2760 * editfns.c: Include coding.h.
2761 (emacs_strftime): Remove decl.
2762 (emacs_strftimeu): New decl.
2763 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
2764 Use emacs_strftimeu instead of emacs_strftime.
2765 (Fformat_time_string): Convert format string using
2766 Vlocale_coding_system, and convert result back. Synchronize time
2767 locale before invoking lower level function. Invoke
2768 emacs_memftimeu, passing ut, instead of emacs_memftime.
2769
2770 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
2771 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
2772 Vprevious_time_locale): New variables.
2773 (main): Invoke setlocale early, so that initial error messages are
2774 localized properly. But skip locale-setting if LC_ALL is "C".
2775 Fix up locale when it's safe to do so.
2776 (fixup_locale): Moved here from xterm.c.
2777 (synchronize_locale, synchronize_time_locale,
2778 synchronize_messages_locale): New functions.
2779 (syms_of_emacs): Accommodate above changes.
2780
2781 * fileio.c (report_file_error): Convert strerror output according
2782 to Vlocale_coding_system.
2783 (Finsert_file_contents): Check for arithmetic overflow in
2784 computations that depend on file size. Report IO errors
2785 with emacs_strerror, not strerror.
2786
2787 * fns.c (Fgethash): Declare dflt parameter.
2788
2789 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
2790 is defined; that's config.h's job.
2791
2792 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
2793 default these values to long, BITS_PER_LONG, and unsigned long.
2794 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
2795 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
2796 (code_convert_string_norecord, fixup_locale,
2797 synchronize_messages_locale, synchronize_time_locale,
2798 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
2799 All Emacs callers of open, close, read, write changed to use
2800 emacs_open, emacs_close, emacs_read, emacs_write.
2801
2802 * lread.c (file_offset, file_tell): New macros. All uses of ftell
2803 changed to file_tell.
2804 (saved_doc_string_position, prev_saved_doc_string_position): Now
2805 of type file_offset.
2806 (init_lread): Do not fix locale here; fixup_locale now does this.
2807
2808 * m/amdahl.h, s/usg5-4.h:
2809 (NSIG): Remove.
2810 (NSIG_MINIMUM): New macro.
2811
2812 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
2813 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
2814 s/umips.h, s/usg5-4.h:
2815 (SIGIO): Do not undef.
2816 (BROKEN_SIGIO): New macro.
2817
2818 * m/ustation.h:
2819 (SIGTSTP): Do not undef.
2820 (BROKEN_SIGTSTP): New macro.
2821
2822 * s/gnu-linux.h:
2823 (SIGPOLL, SIGURG): Do not undef.
2824 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
2825
2826 * s/ptx4.h:
2827 (SIGINFO): Do not undef.
2828 (BROKEN_SIGINFO): New macros.
2829
2830 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
2831
2832 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
2833 some Emacs-related changes merged.
2834
2835 * print.c (float_to_string): Prepend "-" to representation of a
2836 NaN if the NaN is negative.
2837
2838 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
2839 (wait_reading_process_input): Use emacs_strerror, not strerror.
2840
2841 * process.c (status_message, sigchld_handler): Synchronize locale,
2842 then use strsignal istead of sys_siglist.
2843 * w32proc.c (sys_wait): Likewise.
2844
2845 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
2846 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
2847 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
2848 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
2849 (open, close, read, write, INTERRUPTIBLE_OPEN,
2850 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
2851
2852 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
2853
2854 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
2855 sys_open, open): Remove.
2856 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
2857 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
2858 macros are no longer used.
2859 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
2860 (emacs_close): Renamed from sys_close.
2861 (emacs_read): Renamed from sys_read.
2862 (emacs_write): Renamed from sys_write.
2863 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
2864 (dup2): Do not print error on failure; the real dup2 doesn't.
2865 (strsignal): New function, defined if !HAVE_STRSIGNAL.
2866
2867 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
2868 is defined.
2869 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
2870 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
2871 (strsignal): Declare if !HAVE_STRSIGNAL.
2872
2873 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
2874 (ElfW): Define in terms of ElfExpandBitsW.
2875
2876 * w32proc.c (sys_siglist): Remove decl.
2877
2878 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
2879 with ANSI C.
2880 (display_string): Declare face_string_pos arg.
2881
2882 * xfns.c (Fx_show_tip): Declare timeout param.
2883
2884 * xterm.c: No need to include locale.h.
2885 (x_alloc_lighter_color, x_setup_relief_color):
2886 Pass arg as double, not float, for compatibility with ANSI C.
2887 (fixup_locale): Move to emacs.c.
2888 (x_term_init): Do not setlocale or fixup locale; the main program
2889 does this now.
2890
2f0b74ea
DL
28911999-10-18 Dave Love <fx@gnu.org>
2892
2893 * doc.c (Fdocumentation_property): Gcpro `tem'.
2894
471aa4a0
KH
28951999-10-18 Kenichi Handa <handa@etl.go.jp>
2896
2897 * lread.c (Fload): Calculate bytes of filename correctly.
2898 (openp): Likewise.
2899
aca2020b
KH
29001999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
2901
2902 * print.c (print_preprocess): In case print-circle is nil,
2903 add OBJ to Vprint_number_table only when OBJ is a symbol.
2904
1f5fe392 29051999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
2906
2907 * coding.c (code_convert_string): Add record_unwind_protect to
2908 assure setting inhibit_pre_post_conversion back to zero. Take
2909 care of the multibyteness of the working buffer.
2910
2911 * coding.c (inhibit_pre_post_conversion): New variable.
2912 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
2913 ignore post-read-conversion and pre-write-conversion property of
2914 the coding system.
2915 (code_convert_region_unwind): New function.
2916 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
2917 running pre-write-conversion and post-read-conversion.
2918 (code_convert_string): Likewise.
2919
cd876a91
GM
29201999-10-17 Miles Bader <miles@gnu.org>
2921
2922 * editfns.c: Doc fix.
2923
29241999-10-17 Miles Bader <miles@gnu.org>
2925
2926 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
2927 argument preconditions of find_before_next_newline in the case
2928 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
2929 was indeed at the edge.
2930
29311999-10-17 Miles Bader <miles@gnu.org>
2932
2933 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
2934 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
2935
2936 * editfns.c (text_property_eq, text_property_stickiness): Don't
2937 use initializers for auto variables of type Lisp_Object.
2938 (find_field): Likewise. Use braces around nested ifs.
2939 (Fline_end_position): Store the raw eol in a variable, so that the
2940 final expression doesn't look so ugly.
2941 (Fconstrain_to_field): Doc fix.
2942 (preceding_pos): Renamed from `preceeding_pos'.
2943 (text_property_stickiness, find_field): Call preceding_pos,
2944 not preceeding_pos.
2945
29461999-10-17 Miles Bader <miles@gnu.org>
2947
2948 * editfns.c (Ffield_string_no_properties): New function.
2949 (text_property_stickiness, preceeding_pos): New functions.
2950 (Ffield_string): Remove PROPS parameter.
2951 (find_field): Add MERGE_AT_BOUNDARY parameter.
2952 Rewrite to use stickiness of `field' property to resolve
2953 ambiguous cases.
2954 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
2955 (Fconstrain_to_field): Likewise.
2956 (syms_of_editfns): Init Sfield_string_no_properties.
2957 (Ffield_string, Ferase_field, Ffield_end):
2958 Supply new MERGE_AT_BOUNDARY argument to find_field.
2959 (Fline_beginning_position, Fline_end_position): Supply new
2960 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
2961 Pass a value of Qt for the ONLY_IN_LINE argument to
2962 Fconstrain_to_field (only matters if N != 1).
2963 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
2964 to Fconstrain_to_field.
2965
2966 * minibuf.c (Fminibuffer_complete_word): Use
2967 Ffield_beginning to find the prompt end.
2968
29691999-10-17 Miles Bader <miles@gnu.org>
2970
2971 * editfns.c (Fconstrain_to_field): Add get/set-current-point
2972 behavior when NEW_POS is nil.
2973 (find_field): Use XSETFASTINT instead of make_number.
2974 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
2975 input string by seeing where the field begins, instead of
2976 looking at text-properties.
2977
29781999-10-17 Miles Bader <miles@gnu.org>
2979
2980 * editfns.c (Qfield): New variable.
2981 (find_field, Ferase_field, Ffield_string,
2982 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
2983 (Fline_beginning_position, Fline_end_position): Constrain to any field.
2984 (make_buffer_string_both): Remove minibuffer-prompt hack.
2985 (syms_of_editfns): Initialize Qfield, and subr entries for
2986 field functions above.
2987 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
2988 minibuf_save_list.
2989 Don't initialize minibuffer prompt length.
2990 Wrap prompt text-properties around the entire prompt.
2991 Add 'prompt text-property to prompt.
2992 Get final value with Ffield_string instead of make_buffer_string.
2993 (read_minibuf_unwind): Don't restore minibuffer prompt length from
2994 minibuf_save_list.
2995 (do_completion): Get minibuffer input with Ffield_string
2996 instead of Fbuffer_string.
2997 Erase minibuffer input with Ferase_field instead of erase_buffer.
2998 (Fminibuffer_complete_and_exit): Likewise.
2999 Test whether buffer is empty by looking for the 'prompt text
3000 property at the end.
3001 Set prompt length by looking for the end of the prompt text property,
3002 and save prompt length for later use (since there is no longer a
3003 buffer variable to get it from).
3004 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
3005 (syms_of_minibuf): Remove initializations of
3006 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
3007 * buffer.h (struct buffer): Remove prompt_end_charpos field.
3008 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
3009 Don't initialize prompt_end_charpos field.
3010 * syntax.c (Fforward_word): Likewise.
3011 Constrain to any field.
3012
3f6f7508
GM
30131999-10-16 Gerd Moellmann <gerd@gnu.org>
3014
3015 * window.c (enum save_restore_action): New.
3016 (save_restore_orig_size): Change parameter list. Add
3017 functionality to check for valid orig_top and orig_height members
3018 in a window tree.
3019 (grow_mini_window): Call save_restore_orig_size with new parameter
3020 list.
3021 (shrink_mini_window): Restore old window sizes only if old
3022 size information is valid in all windows in a window tree.
3023
06482119
GM
30241999-10-15 Gerd Moellmann <gerd@gnu.org>
3025
2710454d
GM
3026 * xmenu.c (set_frame_menubar): Don't call
3027 x_set_menu_resources_from_menu_face here.
3028 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
3029
06482119
GM
3030 * xfns.c (gif_load): Fix handling of interlaced GIFs.
3031
17fa2837
DL
30321999-10-14 Dave Love <fx@gnu.org>
3033
3034 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
3035
45f93416
GM
30361999-10-14 Gerd Moellmann <gerd@gnu.org>
3037
3038 * process.c (Fopen_network_stream): Don't loop if gethostbyname
3039 fails and h_errno is TRY_AGAIN.
3040
c765b723
DL
30411999-10-13 Dave Love <fx@gnu.org>
3042
3043 * filelock.c (lock_file): Move gcpro of `fn'.
3044
dace7f4e
GM
30451999-10-10 Gerd Moellmann <gerd@gnu.org>
3046
3047 * keyboard.c (auto-save-interval): Fix documentation.
3048
83c8f461 30491999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
3050
3051 * print.c (print): When removing objects from Vprint_number_table,
3052 only scan the newly added objects.
3053 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
3054 unconditionally force it to stay in the table.
3055
85177c86
GM
30561999-10-09 Gerd Moellmann <gerd@gnu.org>
3057
3058 * xfns.c (prepare_image_for_display): Don't try to load image if
3059 loading it failed before.
3060 (lookup_image, prepare_image_for_display): Remember if loading the
3061 image failed.
3062 (xpm_load): Add missing UNBLOCK_INPUT.
3063
3064 * dispextern.h (struct image): New member load_failed_p.
3065
11e4de5d
SM
30661999-10-08 Stefan Monnier <monnier@cs.yale.edu>
3067
f28eba7b 3068 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
3069 in the docstring.
3070
f1da8f06
GM
30711999-10-08 Gerd Moellmann <gerd@gnu.org>
3072
3073 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
3074 Don't call XSetInputFocus because that can generate additional
3075 FocusIn events.
3076
c37bbd4f
GM
30771999-10-07 Jeffrey C Honig <jch@bsdi.com>
3078
3079 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
3080
83c8f461 30811999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
3082
3083 * process.c (wait_reading_process_input): When trying to suck
3084 input from one process, for accept-process-output,
3085 exit that loop if we get EAGAIN or EWOULDBLOCK.
3086
577d9e2f
GM
30871999-10-07 Gerd Moellmann <gerd@gnu.org>
3088
3089 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
3090 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
3091 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
3092 Fpixmap_spec_p and Qpixmap_spec_p.
3093 (load_face_colors, check_lface_attrs,
3094 merge_face_vector_with_property,
3095 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
3096 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
3097 Fbitmap_spec_p.
3098
f5737ad2
GM
30991999-10-07 Gerd Moellmann <gerd@gnu.org>
3100
3101 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
3102 MODE_LINE_FACE_ID.
3103
3104 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
3105 (struct x_resources) [USE_X_TOOLKIT]: New.
3106 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
3107 [USE_MOTIF]: New.
3108 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
3109 [USE_LUCID]: New.
3110 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
3111 (Qmenu): New.
3112 (syms_of_xfaces): Initialize Qmenu.
3113 (realize_basic_faces): Realize face `menu'.
3114 (resolve_face_name): New.
3115 (lface_from_face_name): Use it.
3116 (Finternal_set_lisp_face_attribute): Ditto.
3117 (Fpixmap_spec_p): Rewritten. Extend doc string.
3118
3119 * xmenu.c (set_frame_menubar, xmenu_show): Call
3120 x_set_menu_resources_from_menu_face.
3121
3122 * dispextern.h (enum face_id): Add MENU_FACE_ID.
3123 (toplevel): Include X11/Intrinsic.h.
3124
6a1aa823
DL
31251999-10-03 Ken'ichi Handa <handa@gnu.org>
3126
3127 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
3128 correctly.
3129
26901792
DL
31301999-09-30 Kenichi Handa <handa@etl.go.jp>
3131
3132 * category.c (modify_lower_category_set): Set default value of
3133 TABLE correctly.
3134
3135 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
3136 size correctly.
3137
31381999-09-29 Gerd Moellmann <gerd@gnu.org>
3139
3140 * editfns.c (Fpropertize): Renamed from Fproperties.
3141
31421999-09-29 Gerd Moellmann <gerd@gnu.org>
3143
3144 * xdisp.c (resize_mini_window): Do nothing if frame is an X
3145 frame that hasn't been initialized yet.
3146
83c8f461 31471999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
3148
3149 * keymap.c (Fsingle_key_description): Make tem big enough.
3150 (describe_buffer_bindings): Make buf big enough.
3151
83c8f461 31521999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
3153
3154 * intervals.c (get_local_map): Use indirect_function,
3155 not Findirect_function.
3156
26901792
DL
31571999-09-27 Dave Love <fx@gnu.org>
3158
3159 * cm.h: Remove unneeded declaration of ospeed.
3160
31611999-09-26 Gerd Moellmann <gerd@gnu.org>
3162
3163 * lisp.h (toplevel): Add prototype for
3164 next_single_char_property_change.
3165
3166 * textprop.c (next_single_char_property_change): New.
3167
3168 * xdisp.c (display_prop_end, invisible_text_between_p): Use
3169 next_single_char_property_change.
3170
31711999-09-25 Gerd Moellmann <gerd@gnu.org>
3172
3173 * editfns.c (Fproperties): New.
3174 (syms_of_editfns): Defsubr it.
3175
3176 * xfns.c (lookup_image): Set image's timestamp because it's
3177 used when we look it up.
3178
31791999-09-23 Gerd Moellmann <gerd@gnu.org>
3180
3181 * window.c (enlarge_window): Add window parameter instead of using
3182 selected_window.
3183 (Fdisplay_buffer): Call it with window parameter instead of
3184 setting selected_window.
3185 (Fenlarge_window, Fshrink_window): Ditto.
3186 (shrink_mini_window): If there is no recorded height and position
3187 info, resize mini-window to height 1.
3188
3189 * xfns.c (image_error): Use add_to_log.
3190
3191 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
3192 (load_face_font_or_fontset, load_color,
3193 merge_face_vector_with_property): Ditto.
3194
3195 * dispextern.h: Add prototype for add_to_log.
3196
3197 * xfaces.c (add_to_log): Move to xdisp.c.
3198
3199 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
3200 parameter.
3201
32021999-09-23 Gerd Moellmann <gerd@gnu.org>
3203
3204 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
3205 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
3206
3207 * xdisp.c (resize_mini_window): Use grow_mini_window and
3208 shrink_mini_window.
3209
3210 * window.c (window_min_size): Add parameter ignore_fixed_p.
3211 (change_window_height): Call window_min_size with new parameter.
3212 (shrink_window_lowest_first, save_restore_orig_size,
3213 grow_mini_window, shrink_mini_window): New.
3214 (make_window, replace_window): Initialize orig_top and
3215 orig_height.
3216 (enlarge_window): Renamed from change_window_height. Make it
3217 static.
3218 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
3219 enlarge_window instead of change_window_height.
3220
3221 * window.h (struct window): New members orig_top, orig_height.
3222 (toplevel): Add prototypes for grow_mini_window and
3223 shrink_mini_window. Remove prototype for change_window_height.
3224
32251999-09-21 Eli Zaretskii <eliz@gnu.org>
3226
3227 * frame.c (frame_name_fnn_p): Fix previous change.
3228
32291999-09-20 Gerd Moellmann <gerd@gnu.org>
3230
3231 * minibuf.c (toplevel): Move include of stdio.h to other includes.
3232
3233 * dispnew.c (direct_output_for_insert): Cast arguments to
3234 safe_bcopy to char *.
3235
3236 * lread.c (readchar): Remove unused variables.
3237 (read_filtered_event, read1, Fmapatoms): Ditto.
3238 (toplevel): Include intervals.h.
3239
3240 * eval.c (Fsignal): Remove unused variables.
3241 (Fcommandp, do_autoload): Ditto.
3242
3243 * lisp.h: Add prototype for safe_bcopy, fatal.
3244
3245 * editfns.c (init_editfns): Remove unused variables.
3246 (Fgoto_char, Fchar_after, Fformat): Ditto.
3247 (message_text, message_length): Put in #ifndef HAVE_MENUS.
3248
3249 * data.c (find_symbol_value): Remove unused variables.
3250 (Faref, Fstring_to_number): Ditto.
3251 (toplevel): Include stdio.h.
3252 (Fnumber_to_string): Cast XINT to long for %ld.
3253
3254 * casefiddle.c (casify_object): Remove unused variables.
3255 (casify_region): Ditto.
3256
3257 * filelock.c (get_boot_time): Put local variable used in
3258 conditinally compiled section in #ifdef.
3259 (toplevel): Include stdio.h.
3260
3261 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
3262 keys_of_keymap, syms_of_keymap): Remove unused variables.
3263
32641999-09-20 Gerd Moellmann <gerd@gnu.org>
3265
3266 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
3267 whose corresponding window rows have been disabled in
3268 try_window_id.
3269
32701999-09-20 Gerd Moellmann <gerd@gnu.org>
3271
3272 * xdisp.c (compute_window_start_on_continuation_line): Handle case
3273 that window start is out of range.
3274 (handle_display_prop, handle_single_display_prop): Replace
3275 marginal area specifications like `left-margin' with `(margin
3276 left-margin)'.
3277 (Qmargin): New.
3278 (syms_of_xdisp): Initialize Qmargin.
3279
32801999-09-19 Gerd Moellmann <gerd@gnu.org>
3281
3282 * syntax.c (update_syntax_table, find_defun_start, back_comment,
3283 describe_syntax, skip_chars): Remove unused variables.
3284 (back_comment, forw_comment): Add braces to if-statement with
3285 if-else as dependent statement.
3286
3287 * process.c (list_processes_1): Remove unused variables.
3288 (Fopen_network_stream, create_process): Add parentheses to
3289 conditional expressions.
3290 (create_process): Put declaration of sigchld in #if 0.
3291 (Fopen_network_stream): Removed unused variables.
3292 (Fopen_network_stream, wait_reading_process_input,
3293 wait_reading_process_input, send_process, send_process): Ditto.
3294 (toplevel): Add prototypes for set_waiting_for_input and
3295 keyboard_bit_set.
3296
3297 * abbrev.c (Fexpand_abbrev): Remove unused variables.
3298
3299 * textprop.c (Fset_text_properties): Remove unused variables.
3300 (text_property_list, verify_interval_modification,
3301 interval_has_all_properties): Ditto.
3302
3303 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
3304 (Fcall_process): Remove unused variable.
3305
3306 * keyboard.c (Frecursive_edit): Remove unused variable.
3307 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
3308 timer_check, make_lispy_event, menu_bar_items,
3309 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
3310 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
3311 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
3312 read_key_sequence): Ditto. Fread_key_sequence,
3313 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
3314 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
3315 used when GOBBLE_FIRST_EVENT is defined in #ifdef
3316 (Fexecute_extended_command): Cast XINT to long for %ld.
3317 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
3318 (toplevel): Include sys/types.h.
3319
3320 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
3321 (toplevel): Add prototypes for stuff_char, and
3322 code_convert_string_norecord.
3323
33241999-09-19 Gerd Moellmann <gerd@gnu.org>
3325
3326 * buffer.h: Add prototype for r_re_alloc.
3327
3328 * insdel.c (copy_text): Removed unused variables.
3329 (count_combining_after, count_combining_after, insert_1_both,
3330 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
3331 (adjust_after_replace, replace_range): Add parentheses to logical
3332 expressions. Remove unused variables.
3333 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
3334 expression.
3335
3336 * alloc.c (Fgarbage_collect): Remove unused variable.
3337 (compact_strings): Add parentheses around assignments in
3338 conditional context.
3339 (toplevel): Put declaration of unused function clear_marks
3340 in #if 0 like its definition.
3341
3342 * lisp.h: Add prototype for shrink_regexp_cache,
3343 sweep_weak_hash_tables.
3344
33451999-09-19 Dave Love <fx@gnu.org>
3346
3347 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
3348
3349 * doc.c (read_bytecode_char): Declare arg.
3350
3351 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
3352 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
3353
33541999-09-18 Richard Stallman <rms@gnu.org>
3355
3356 * xdisp.c (echo_area_display): Turn off code that returned
3357 without doing anything when using a terminal frame.
3358
83c8f461 33591999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
3360
3361 * unexelf.c (unexec): Don't get confused by a short section
3362 just before the bss section.
3363
26901792
DL
33641999-09-16 Gerd Moellmann <gerd@gnu.org>
3365
3366 * emacs.c (main): Remove unused variables.
3367 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
3368
3369 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
3370 init_fileio_once, syms_of_sound, init_xfns, init_fns
3371 init_sound, check_message_stack.
3372
3373 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
3374
3375 * intervals.c (rotate_right, rotate_left): Add braces to avoid
3376 ambiguous else warning.
3377 (split_interval_left): Remove unused variables.
3378 (previous_interval, adjust_intervals_for_deletion,
3379 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
3380 (icount, idepth, zero_length): Move into #if 0 section below
3381 original position where these are used.
3382
3383 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
3384
3385 * buffer.c (Fkill_buffer): Remove unused variables.
3386 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
3387 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
3388 init_buffer_once, (syms_of_buffer): Ditto.
3389
3390 * xrdb.c (get_fallback): Remove unused variable.
3391 (x_load_resources): Ditto. Put local variable used for Motif only
3392 in #ifdef USE_MOTIF.
3393
33941999-09-16 Gerd Moellmann <gerd@gnu.org>
3395
3396 * minibuf.c (read_minibuf): Remove unused variables.
3397 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
3398 (do_completion): Move assignment out of conditional context.
3399 (Fdisplay_completion_list): Add parentheses to conditional expression.
3400
3401 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
3402
3403 * lisp.h: Add prototype for no_switch_window.
3404
3405 * window.c (Fset_window_buffer): Remove unused variables.
3406 (Fset_window_margins): Ditto.
3407
3408 * xdisp.c (resize_mini_window): Temporarily set the selected
3409 window's or Vminibuf_scroll_window's height to "fixed" around
3410 the call the change_window_height.
3411
3412 * window.c (window_fixed_size_p): Check window's height_fixed_p
3413 flag.
3414
3415 * window.h (struct window): New member height_fixed_p.
3416
3417 * dispnew.c (direct_output_forward_char): Don't use this method
3418 if showing a message or a message was just cleared because we
3419 might need to resize the mini-window.
3420
34211999-09-16 Gerd Moellmann <gerd@gnu.org>
3422
3423 * frame.c (Fdelete_frame): Correct local variable pointing to
3424 selected frame after selecting new frame.
3425
34261999-09-15 Richard Stallman <rms@gnu.org>
3427
3428 * puresize.h (BASE_PURESIZE): Increase to 525000.
3429
3430 * filelock.c (Vtemporary_file_directory): New variable.
3431 (syms_of_filelock): Set up Lisp variable.
3432
34331999-09-15 Gerd Moellmann <gerd@gnu.org>
3434
3435 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
3436 (encode_terminal_code): Remove unused variables.
3437 (turn_off_face): Ditto.
3438 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
3439
3440 * dispnew.c (update_frame_line): If writing whole desired line,
3441 don't clear to end of line if already at the end.
3442
34431999-09-15 Gerd Moellmann <gerd@gnu.org>
3444
3445 * xdisp.c (resize_mini_window): Don't report changed window
3446 height if it actually hasn't changed.
3447
3448 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
3449 unused variables.
3450 (mark_shell_size_user_specified): Put in #if 0 because not used.
3451 (create_frame_gcs): Put in #if 0 because currently unused.
3452 (first_frame_p): Ditto.
3453
3454 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
3455 single_submenu, update_frame_menubar, set_frame_menubar,
3456 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
3457 variables.
3458
3459 * print.c (PRINTFULLP): Removed because it is no longer used and
3460 is misleading.
3461 (Ferror_message_string): Remove unused variables.
3462 (print_object): Cast argument of sprintf to long for `%ld'
3463 specifier. Remove unused variable.
3464
34651999-09-14 Gerd Moellmann <gerd@gnu.org>
3466
3467 * sound.c (Fplay_sound): Remove usused variables.
3468 (be2hs): Put in #if 0 because it's currently not used.
3469
34701999-09-14 Ken Raeburn <raeburn@gnu.org>
3471
3472 * print.c (Ferror_message_string, print_error_message,
3473 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
3474 member access.
3475
34761999-09-14 Gerd Moellmann <gerd@gnu.org>
3477
3478 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
3479
3480 * frame.c (Fnext_frame): Remove unused variable(s).
3481 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
3482 (store_frame_param): Add parentheses to conditional expression.
3483 (Fmodify_frame_parameters): Remove unused variables.
3484 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
3485 Ditto.
3486
3487 * xfns.c (x_set_background_color): Remove unused variable(s).
3488 (x_set_border_pixel): Ditto.
3489 (x_set_menu_bar_lines): Put local variable used only for
3490 non-toolkit case in #ifdef/#endif.
3491 (x_figure_window_size): Remove unused variable(s).
3492 (x_figure_window_size, x_window, lookup_image,
3493 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
3494 png_load, jpeg_load, gif_load, x_create_tip_frame,
3495 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
3496
3497 * xterm.c (x_scroll_bar_handle_click): Compile only if
3498 not USE_TOOLKIT_SCROLL_BARS.
3499 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
3500
3501 * dispextern.h: Add prototypes for gamma_correct and
3502 x_kill_gs_process.
3503
3504 * xterm.c (x_produce_glyphs): Remove unused variable(s).
3505 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
3506 x_set_toolkit_scroll_bar_thumb): Ditto.
3507 (x_scroll_bar_create): Move local variable to the
3508 conditionally compiled section of code where it is used.
3509 (x_scroll_bar_create): Remove unused variable(s).
3510 (x_scroll_bar_remove, XTread_socket): Ditto.
3511 (XTread_socket) <ConfigureNotify>: Move variables used for
3512 non-toolkit case into conditionally compiled section of code.
3513
3514 * window.h (freeze_window_starts): Fix typo in prototype.
3515
3516 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
3517 variable(s).
3518
3519 * lisp.h: Add prototype for debug_print.
3520
3521 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
3522 to use do-while.
3523
3524 * fns.c (SXHASH_COMBINE): Add missing parentheses.
3525 (Fchar_table_range, Fset_char_table_default, mapcar1,
3526 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
3527
3528 * lisp.h: Add prototype for getloadavg.
3529
35301999-09-14 Andreas Schwab <schwab@gnu.org>
3531
3532 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
3533
3534 * lisp.h: Declare close_file_unwind.
3535
35361999-09-14 Richard Stallman <rms@gnu.org>
3537
3538 * filelock.c (get_boot_time): Make the temp name in the proper dir.
3539
35401999-09-13 Gerd Moellmann <gerd@gnu.org>
3541
3542 * xdisp.c (redisplay_window): Make sure start_at_line_beg
3543 is always set correctly.
3544
35451999-09-13 Dave Love <fx@gnu.org>
3546
3547 * xdisp.c (move_it_in_display_line_to): Make type consistent with
3548 declaration.
3549
35501999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
3551
3552 * xdisp.c (QCfile): Move here from xfns.c.
3553 (syms_of_xdisp): Initialize it.
3554 (message2_nolog): Change for Lisp_Object selected_frame.
3555 (message3_nolog, message_with_string, message,
3556 setup_echo_area_for_printing, truncate_echo_area,
3557 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
3558
35591999-09-13 Dave Love <fx@gnu.org>
3560
3561 * xterm.c: Don't continue #define args for benefit of old cc.
3562 (xt_action_hook): Indent #error for benefit of K&R cc.
3563
35641999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
3565
3566 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
3567 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
3568 (XRINGBELL): Removed.
3569
35701999-09-13 Dave Love <fx@gnu.org>
3571
3572 * xfns.c (x_put_x_image): Make type consistent with declaration.
3573
3574 * fns.c (Fmake_hash_table): Fix string continuation.
3575
35761999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
3577
3578 * xfns.c (QCfile): Moved to xdisp.c.
3579 (syms_of_xfns): Don't initialize QCfile.
3580 (check_x_frame): Change for Lisp_Object selected_frame.
3581 (check_x_display_info, x_get_resource_string): Ditto.
3582
35831999-09-13 Gerd Moellmann <gerd@gnu.org>
3584
3585 * minibuf.c (choose_minibuf_frame): Don't try to set the
3586 mini-buffer window's buffer, if the buffer is invalid.
3587
3588 * xfns.c (QCfile): Moved to xdisp.c.
3589 (syms_of_xfns): Don't initialize QCfile.
3590
3591 * xdisp.c (QCfile): Move here from xfns.c.
3592 (syms_of_xdisp): Initialize it.
3593
3594 * lisp.h (selected_frame): Add external declaration.
3595
3596 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
3597 (Fx_store_cut_buffer_internal): Ditto.
3598 (Fx_rotate_cut_buffers_internal): Ditto.
3599
3600 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
3601 selected_frame.
3602 (Finternal_set_lisp_face_attribute): Ditto.
3603 (Finternal_get_lisp_face_attribute): Ditto.
3604 (Finternal_lisp_face_empty_p): Ditto.
3605 (Fdump_face): Ditto.
3606
3607 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
3608 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
3609 set_terminal_window, set_scroll_region, reassert_line_highlight,
3610 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
3611 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
3612 encode_terminal_code, write_glyphs, term_init): Ditto.
3613
3614 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
3615 (kbd_input_ast, read_input_waiting): Ditto.
3616
3617 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
3618 selected_frame.
3619 (read_minibuf): Ditto.
3620
3621 * keyboard.c (command_loop_1): Change for Lisp_Object
3622 selected_frame.
3623 (cmd_error_internal, command_loop_1, read_char,
3624 kbd_buffer_get_event, read_avail_input,
3625 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
3626 interrupt_signal, quit_throw_to_read_char): Ditto.
3627
3628 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
3629 (Ffontset_info): DItto.
3630
3631 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
3632
3633 * dispnew.c (selected_frame): Make it a Lisp_Object.
3634 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
3635 (direct_output_for_insert, direct_output_forward_char,
3636 init_display): Ditto.
3637
3638 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
3639 selected_frame.
3640 (set_internal): Ditto.
3641
3642 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
3643 (record_buffer): Ditto.
3644
3645 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
3646 (do_switch_frame): Change for Lisp_Object selected_frame.
3647 (Fselected_frame): Ditto.
3648 (Fframe_first_window): Use SELECTED_FRAME.
3649 (Fframe_root_window): Change for Lisp_Object selected_frame.
3650 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
3651 Fprevious_frame, other_visible_frames, Fdelete_frame,
3652 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
3653 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
3654 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
3655 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
3656 Fset_frame_height, Fset_frame_width): Ditto.
3657
36581999-09-13 Gerd Moellmann <gerd@gnu.org>
3659
3660 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
3661 (message3_nolog, message_with_string, message,
3662 setup_echo_area_for_printing, truncate_echo_area,
3663 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
3664
3665 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
3666 (Fx_popup_dialog): Ditto.
3667
3668 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
3669 (check_x_display_info, x_get_resource_string): Ditto.
3670
3671 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
3672 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
3673 (XRINGBELL): Removed.
3674
3675 * window.c (Fminibuffer_window): Change for Lisp_Object
3676 selected_frame.
3677 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
3678 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
3679 Fcurrent_window_configuration, init_window_once): Ditto.
3680
3681 * frame.h (SELECTED_FRAME): New.
3682
36831999-09-12 Ken Raeburn <raeburn@gnu.org>
3684
3685 * category.c (word_boundary_p): Use XCAR and XCDR.
3686 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
3687 Fregister_code_conversion_map): Likewise.
3688 * coding.c (setup_coding_system, detect_coding_system,
3689 Ffind_operation_coding_system, Fset_coding_priority_internal):
3690 Likewise.
3691 * doc.c (get_doc_string, Fdocumentation,
3692 store_function_docstring): Likewise.
3693 * editfns.c (save_restriction_restore): Likewise.
3694 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
3695 skip_debugger, find_handler_clause, Fautoload, Fapply,
3696 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
3697 Likewise.
3698 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
3699 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
3700 Fread_file_name): Likewise.
3701 * filelock.c (unlock_all_files): Likewise.
3702 * insdel.c (Fcombine_after_change_execute): Likewise.
3703 * intervals.c (adjust_intervals_for_insertion): Likewise.
3704 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
3705 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
3706 store_in_keymap, Fcopy_keymap, define_as_prefix,
3707 current_minor_maps, Faccessible_keymaps,
3708 accessible_keymaps_char_table, Fkey_description,
3709 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
3710 describe_buffer_bindings, describe_map_tree, shadow_lookup,
3711 describe_map): Likewise.
3712 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
3713 read_list, init_lread): Likewise.
3714 * search.c (Fmatch_data): Likewise.
3715 * sunfns.c (Fsun_menu_internal): Likewise.
3716 * syntax.c (describe_syntax): Likewise.
3717 * undo.c (record_insert, record_delete, Fundo_boundary,
3718 truncate_undo_list): Likewise.
3719 * vmsproc.c (child_sig): Likewise.
3720
3721 * editfns.c (Fformat): Use XFLOAT_DATA.
3722
37231999-09-12 Gerd Moellmann <gerd@gnu.org>
3724
3725 * keyboard.c (command_loop_1): Resize mini-window to the
3726 exact size of a message displayed, if any.
3727
3728 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
3729 to exact size if exact_p is non-zero.
3730 (display_echo_area_1): Call resize_mini_window with
3731 new parameter.
3732 (redisplay_internal): Ditto.
3733 (resize_echo_area_axactly): New.
3734
3735 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
3736 new parameter.
3737
3738 * dispextern.h: Change prototype of resize_mini_window.
3739 Add prototype for resize_echo_area_axactly.
3740
3741 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
3742 (syms_of_xfaces): Defsubr accordingly.
3743
3744 * xdisp.c (hscroll_window_tree): Choose cursor row from
3745 desired or current matrix.
3746 (redisplay_internal): Hscroll before updating.
3747
37481999-09-12 Gerd Moellmann <gerd@gnu.org>
3749
3750 * syntax.c (Fforward_word): Use prompt_end_charpos instead
3751 of minibuffer_prompt_length.
3752
3753 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
3754 of minibuffer_prompt_length.
3755 (read_minibuf_unwind): Ditto.
3756 (Fminibuffer_complete_and_exit): Ditto.
3757 (Fminibuffer_complete_word): Ditto.
3758 (Fminibuffer_prompt_end): Ditto.
3759
3760 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
3761 of minibuffer_prompt_length.
3762 (Fline_beginning_position): Ditto.
3763
3764 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
3765 of minibuffer_prompt_length.
3766 (Fmake_indirect_buffer): Ditto.
3767 (Fkill_buffer): Ditto.
3768 (Ferase_buffer): Ditto.
3769
3770 * buffer.h (prompt_end_charpos): Replaces
3771 minibuffer_prompt_length.
3772
3773 * minibuf.c (read_minibuf): Return mini-buffer contents
3774 without the prompt.
3775
3776 * editfns.c (make_buffer_string_both): Take out the code
3777 to handle mini-buffer prompts.
3778 (Fbuffer_string): Handle the prompt here, instead.
3779
3780 * xfaces.c (lface_from_face_name): Resolve face aliases.
3781 (Qmode_line): Replaces Qmodeline.
3782 (realize_basic_faces): Use Qmode_line.
3783 (syms_of_xfaces): Initialize Qmode_line.
3784
37851999-09-12 Gerd Moellmann <gerd@gnu.org>
3786
3787 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
3788 current column after inserting prompt.
3789 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
3790
3791 * xfaces.c (Qframe_update_face_colors): New.
3792 (syms_of_xfaces): Initialize call.
3793 (update_face_from_frame_parameter): Call that function when
3794 the frame's background changes.
3795
37961999-09-12 Richard Stallman <rms@gnu.org>
3797
3798 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
3799
38001999-09-12 Ken Raeburn <raeburn@gnu.org>
3801
3802 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
3803 mark_object, mark_buffer): Use XCAR and XCDR.
3804 * bytecode.c (Fbyte_code): Likewise.
3805 * callint.c (Fcall_interactively, Fprefix_numeric_value):
3806 Likewise.
3807 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
3808 getenv_internal): Likewise.
3809 * dired.c (file_name_completion): Likewise.
3810 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
3811 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
3812 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
3813 * indent.c (Fcompute_motion): Likewise.
3814 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
3815 list_processes_1, Fstart_process, Fopen_network_stream,
3816 wait_reading_process_input, read_process_output_call,
3817 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
3818 status_notify, wait_reading_process_input): Likewise.
3819 * textprop.c (PLIST_ELT_P, property_value, set_properties,
3820 extend_property_ranges): Likewise.
3821 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
3822 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
3823 x_report_frame_params, x_set_cursor_type, x_icon_type,
3824 x_figure_window_size, Fx_create_frame, w32_load_system_font,
3825 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
3826 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
3827 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
3828 x_display_info_for_name, Fx_display_list): Likewise.
3829 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
3830 Fx_popup_menu, Fx_popup_dialog): Likewise.
3831 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
3832 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
3833 w32_term_init, x_delete_display): Likewise.
3834 * xfns.c (x_window_to_frame, x_any_window_to_frame,
3835 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
3836 x_top_window_to_frame, x_set_frame_parameters,
3837 x_report_frame_params, x_set_cursor_type, x_icon_type,
3838 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
3839 Fx_display_list, x_create_tip_frame): Likewise.
3840 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
3841 Fx_popup_menu, Fx_popup_dialog): Likewise.
3842 * xselect.c (x_own_selection, x_get_local_selection,
3843 x_handle_selection_request, x_handle_selection_clear,
3844 x_clear_frame_selections, wait_for_property_change_unwind,
3845 wait_for_property_change, x_handle_property_notify,
3846 copy_multiple_data, x_get_foreign_selection,
3847 lisp_data_to_selection_data, clean_local_selection_data,
3848 x_handle_selection_notify, Fx_get_selection_internal,
3849 x_disown_buffer_selections): Likewise.
3850 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
3851 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
3852 Likewise.
3853
3854 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
3855 XFLOAT_DATA.
3856 * bytecode.c (Fbyte_code): Likewise.
3857 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
3858 fmod_float): Likewise.
3859
38601999-09-11 Richard Stallman <rms@gnu.org>
3861
3862 * xdisp.c (run_window_scroll_functions): If hook functions switch
3863 buffers, switch back after.
3864
38651999-09-11 Ken Raeburn <raeburn@gnu.org>
3866
3867 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
3868 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
3869 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
3870 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
3871 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
3872 XCDR.
3873 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
3874 XCDR.
3875
38761999-09-10 Richard Stallman <rms@gnu.org>
3877
3878 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
3879 not RevertToPointerRoot.
3880 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3881 Fix the code to clear around the scroll bar.
3882
38831999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
3884
3885 * print.c: Support print-circle and related features.
3886 (Vprint_gensym_alist): Removed.
3887 (Vprint_circle, Vprint_continuous_numbering, print_number_index
3888 Vprint_number_table): New variables.
3889 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
3890 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
3891 (print, print_preprocess, print_preprocess_string, print_object):
3892 New/modified functions with print-circle feature. Use
3893 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
3894 (syms_of_print): Defined new Lisp variables `print-circle',
3895 `print-continuous-numbering', `print-number-table'.
3896
38971999-09-10 Gerd Moellmann <gerd@gnu.org>
3898
3899 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
3900 as background color specification instead of an integer.
3901 (image-cache-eviction-delay): Replaces image-eviction-seconds.
3902 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
3903 (clear_image_cache, syms_of_xfns): Use it.
3904 (Qpostscript): Replaces Qghostscript.
3905 (gs_type): Use it.
3906 (gs_image_p): Ditto.
3907 (syms_of_xfns): Initialize Qpostscript.
3908
39091999-09-10 Richard Stallman <rms@gnu.org>
3910
3911 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
3912
39131999-09-09 Richard Stallman <rms@gnu.org>
3914
3915 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
3916
3917 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
3918
39191999-09-09 Gerd Moellmann <gerd@gnu.org>
3920
3921 * fns.c (Fmakehash): Accept just one optional argument TEST.
3922
3923 * xfns.c (QCindex): New.
3924 (syms_of_xfns): Initialize QCindex.
3925 (gif_load): Use it instead of `:image'.
3926
39271999-09-09 Richard Stallman <rms@gnu.org>
3928
3929 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
3930 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
3931
39321999-09-08 Gerd Moellmann <gerd@gnu.org>
3933
3934 * xdisp.c (Qwhen): Replaces QCwhen.
3935 (syms_of_xdisp): Initialized it instead of QCwhen.
3936 (handle_single_display_prop): Use it instead of QCwhen.
3937
39381999-09-08 Ken'ichi Handa <handa@gnu.org>
3939
3940 * charset.c (translate_char): Reset MSBs of arguments of
3941 MAKE_CHAR.
3942 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
3943
39441999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3945
3946 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
3947
3948 * fns.c (Fbase64_decode_region): Don't place point outside of the
3949 current accessible portion.
3950
39511999-09-07 Richard Stallman <rms@gnu.org>
3952
3953 * keymap.c (fix_submap_inheritance): Do nothing if the proper
3954 parent is an ancestor of SUBMAP; otherwise, add it as the
3955 ultimate ancestor.
3956
39571999-09-07 Gerd Moellmann <gerd@gnu.org>
3958
3959 * xdisp.c (handle_single_display_prop): Change conditional
3960 display property to `:when FORM . VALUE'.
3961
39621999-09-07 Richard Stallman <rms@gnu.org>
3963
3964 * fileio.c (Fwrite_region): Doc fix.
3965
39661999-09-07 Stefan Monnier <monnier@cs.yale.edu>
3967
3968 * fileio.c (Qexcl): New variable.
3969 (report_file_error): Handle EEXIST specially.
3970 (Fwrite_region): Special handling for CONFIRM = `excl'.
3971 (syms_of_fileio): Initialize Qexcl.
3972
39731999-09-07 Gerd Moellmann <gerd@gnu.org>
3974
3975 * xfns.c (x_set_foreground_color): Call
3976 update_face_from_frame_parameter.
3977 (x_set_background_color): Ditto.
3978 (x_set_mouse_color): Ditto.
3979 (x_set_cursor_color): Ditto.
3980 (x_set_border_color): Ditto.
3981 (x_set_scroll_bar_foreground): Ditto.
3982 (x_set_scroll_bar_background): Ditto.
3983
3984 * xfaces.c (recompute_basic_faces): Clear face cache.
3985 (Finternal_set_lisp_face_attribute): Modify frame parameters
3986 if attributes of certain faces are changed.
3987 (update_face_from_frame_parameter): New.
3988
3989 * xfaces.c (realize_basic_faces): Realize new basic faces.
3990
3991 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
3992 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
3993
3994 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
3995 (syms_of_xfaces): Intialize new symbols.
3996
3997 * fns.c (Fmakehash): Take one argument, test, make all the
3998 rest keyword arguments.
3999
4000 * window.c (Fset_window_margins): Make window the first argument.
4001 (set_window_buffer): Call Fset_window_margins with window as first
4002 argument.
4003
40041999-09-07 Gerd Moellmann <gerd@gnu.org>
4005
4006 * xfaces.c (Qfringe): Replaces Qmargin.
4007
40081999-09-07 Kenichi Handa <handa@etl.go.jp>
4009
4010 * charset.h: Lots of comments fixed.
4011 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
4012 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
4013
4014 * charset.c : Lots of comments fixed.
4015 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
4016 (CHAR_COMPONENTS_VALID_P): Name changed from
4017 CHAR_COMPONENT_VALID_P. Caller changed.
4018
40191999-09-06 Richard Stallman <rms@gnu.org>
4020
4021 * insdel.c (syms_of_insdel): Define Lisp variable
4022 inhibit-modification-hooks.
4023
40241999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
4025
4026 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
4027 unexaix.c.
4028
4029 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
4030
40311999-09-06 Dave Love <fx@gnu.org>
4032
4033 * unexaix.c: New version incorporating Michael Sperber's changes
4034 from XEmacs. Should solve problems on AIX 4.3.
4035
4036 * lread.c (Vbyte_boolean_vars): New variable.
4037 (defvar_bool, syms_of_lread): Use it.
4038
40391999-09-05 Richard Stallman <rms@gnu.org>
4040
4041 * minibuf.c (read_minibuf): Put all three properties on the
4042 same range, the whole prompt.
4043
40441999-09-05 Gerd Moellmann <gerd@gnu.org>
4045
4046 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
4047 (Fplay_sound, syms_of_sound): Use it.
4048 (parse_sound): Allow float volume values in the range [0, 1].
4049 (Fplay_sound): Ditto.
4050
4051 * window.c (Fset_window_vscroll): Make window the first argument,
4052 amount to scroll the second. Take non-negative vscroll as
4053 argument.
4054 (Fwindow_vscroll): Return non-negative vscroll.
4055
4056 * xfns.c (Fx_show_tip): Improve documentation.
4057
40581999-09-05 Gerd Moellmann <gerd@gnu.org>
4059
4060 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
4061 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
4062 `top-line' and `top_line' to `header-line' and `header_line'.
4063 Likewise for similar spellings.
4064
40651999-09-05 Gerd Moellmann <gerd@gnu.org>
4066
4067 * xdisp.c (row_containing_pos): New.
4068 (try_window_id): Use it.
4069
4070 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
4071 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
4072 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
4073 Likewise for upper-case etc.
4074
40751999-09-05 Gerd Moellmann <gerd@gnu.org>
4076
4077 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4078 Fix reference to renamed variable.
4079
40801999-09-04 Gerd Moellmann <gerd@gnu.org>
4081
4082 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
4083 (window_fixed_size_p): Use Qwindow_size_fixed instead of
4084 Qfixed_window_size.
4085 (syms_of_window): Ditto.
4086
4087 * fns.c (Fmakehash): Exchange optional test and size arguments.
4088
40891999-09-03 Gerd Moellmann <gerd@gnu.org>
4090
4091 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
4092 under newly created scroll bar.
4093 (expose_window): If window is not yet fully initialized, do
4094 nothing. This can happen when toolkit scroll bars are used and a
4095 window is split. Reconfiguring the scroll bars will generate an
4096 expose for a newly created window.
4097
4098 * frame.h (struct frame): New member `gamma'.
4099
4100 * xfns.c: Include math.h. Add extern declaration for atof in case
4101 we don't see one.
4102 (Qscreen_gamma): New.
4103 (struct x_frame_parm_table): Add prototypes, add
4104 x_set_screen_gamma.
4105 (gamma_correct): New function.
4106 (defined_color): Call it.
4107 (x_set_screen_gamma): New.
4108 (x_set_title): Add parameter old_value.
4109 (RES_TYPE_FLOAT): New.
4110 (x_get_arg): Handle RES_TYPE_FLOAT.
4111 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
4112 (lookup_pixel_color): Change call to x_alloc_nearest_color to
4113 new prototype.
4114 (lookup_rgb_color): Ditto.
4115 (syms_of_xfns): Initialize Qscreen_gamma.
4116
4117 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
4118 New. Allocate color for lwlib widgets.
4119 (x_alloc_nearest_color): Change parameter list include the
4120 frame on which to allocate colors. Gamma-correct colors.
4121 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
4122 parameter list.
4123
4124 * xterm.h: Change protorype of x_alloc_nearest_color.
4125
41261999-09-03 Richard Stallman <rms@gnu.org>
4127
4128 * callproc.c: Delete the system-independent include of stdlib.h
4129 (leaving only the one in the WINDOWSNT conditional).
4130
41311999-09-03 Andrew Choi <choi@cs.hku.hk>
4132
4133 * callproc.c (call-process) [macintosh]: Call mac_run_command in
4134 sysdep.c. The Mac code is modeled after the DOS code.
4135
4136 * dispextern.h [macintosh]: Include macterm.h to define substitute X
4137 Window types and macros.
4138
4139 * frame.h: Do nothing if included a second time.
4140 (enum output_method): Add mac_output frame type.
4141 (union output_data): Add new alternative `mac'.
4142 (FRAME_MAC_P): New macro.
4143
4144 * frame.c (Fframep) [macintosh]: Handle mac frame type.
4145 (syms_of_frame_1): Initialize Qmac.
4146 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
4147 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
4148 (Fmodify_frame_parameters) [macintosh]: Call
4149 mac_set_frame_parameter in macterm.c.
4150
4151 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
4152 (512) because Mac compilers limit local data of a function to 32K.
4153
4154 * make-docfiles.c: Correctly handle input files with Mac-style
4155 eol's.
4156
4157 * sysdep.c: Define numerous routines to emulate Unix system calls.
4158
4159 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
4160 file of an X Window environment.
4161
4162 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
4163 x-display-grayscale, x-color-defined-p, and x-color-values.
4164
4165 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
4166 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
4167 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
4168 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
4169 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
4170 New functions, replacing POSIX features.
4171
4172 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
4173 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
4174 (InitEmacsPasswdDir, run_mac_command): New subroutines.
4175
4176 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
4177 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
4178 (myPasswdDir, TempDirName, sys_siglist): New variables.
4179
4180 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
4181 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
4182 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
4183 Define empty stubs so Emacs will link.
4184
41851999-09-03 Gerd Moellmann <gerd@gnu.org>
4186
4187 * xdisp.c: Use XCAR and XCDR instead of XCONS.
4188
4189 * window.h: New member frozen_window_start_p.
4190
4191 * window.c (foreach_window, foreach_window_1): New.
4192 (freeze_window_start, freeze_window_starts): New.
4193 (make_window): Initialize frozen_window_start_p.
4194 (replace_window): Ditto.
4195 (Fset_window_point): Remove references to deleted variables.
4196 (Fset_window_start): Ditto.
4197
4198 * xdisp.c (Vresize_mini_config, resize_mini_frame,
4199 resize_mini_initial_height): Removed.
4200 (syms_of_xdisp): Remove references to these variables.
4201 (resize_mini_window): Don't save window configuration, freeze
4202 window starts instead. Enlarge window until displaying an empty
4203 buffer, then shrink it. Make the function externally visible.
4204 (redisplay_window): Treat frozen window start like forced start,
4205 but accept point outside of the window.
4206
4207 * dispextern.h: Add function prototype for resize_mini_window.
4208
4209 * minibuf.c (read_minibuf_unwind): Resize mini-window when
4210 reaching minibuf_level 0.
4211
4212 * lisp.h: Remove extern declarations for variables deleted from
4213 xdisp.c.
4214
4215 * dispnew.c (adjust_frame_glyphs): Remove reference to
4216 Vresize_mini_config.
4217
42181999-09-03 Gerd Moellmann <gerd@gnu.org>
4219
4220 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
4221 to USE_TOOLKIT_SCROLL_BARS.
4222
4223 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
4224 here.
4225 (XTset_vertical_scroll_bar): Clarify position computations. Clear
4226 under newly created scroll bar. Put toolkit scroll bars in the
4227 middle of the area reserved for the scroll bar.
4228
42291999-09-03 Kenichi Handa <handa@etl.go.jp>
4230
4231 The following changes are for the new handling of mulitbyte
4232 sequence. Now, except for a composite character, no multibyte
4233 character in string/buffer has trailing garbage bytes. For
4234 instance, the length of string "\201\300\300" is now 2, the first
4235 character is Latin-1 A-grave, the second is raw \300.
4236
4237 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
4238 are negative.
4239 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
4240 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
4241 (PARSE_COMPOSITE_SEQ): New macro.
4242 (PARSE_CHARACTER_SEQ): New macro.
4243 (PARSE_MULTIBYTE_SEQ): New macro.
4244 (CHAR_PRINTABLE_P): New macro.
4245 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
4246 (STRING_CHAR_AND_LENGTH): Likewise.
4247 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
4248 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
4249 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
4250
4251 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
4252 (SPLIT_CHARACTER_SEQ): New macro.
4253 (SPLIT_MULTIBYTE_SEQ): New macro.
4254 (CHAR_COMPONENT_VALID_P): New macro.
4255 (non_ascii_char_to_string): Generate a multibyte sequence as far
4256 as possible.
4257 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
4258 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
4259 (split_non_ascii_string): Likewise.
4260 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
4261 (char_printable_p): New function.
4262 (translate_char): Check character by NATNUMP instead of INTEGERP.
4263 (unibyte_char_to_multibyte): Call char_valid_p instead of
4264 VALID_MULTIBYTE_CHAR_P.
4265 (Fmake_char_internal): Check the arguments more rigidly.
4266 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
4267 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
4268 (Fmultibyte_char_to_unibyte): Check the validity of character by
4269 CHAR_VALID_P.
4270 (chars_in_text): Call multibyte_chars_in_text.
4271 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
4272 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
4273 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
4274
4275 * data.c (Faset): Adjust the way to check byte-combining
4276 possibility for the new handling of multibyte sequence.
4277
4278 * editfns.c (Fsubst_char_in_region): Likewise.
4279
4280 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
4281 (string_char_to_byte): Likewise.
4282 (string_byte_to_char): Likewise.
4283
4284 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
4285 macro STRING_CHAR_AND_LENGTH. Caller changed.
4286
4287 * insdel.c (count_combining_composition): New function.
4288 (count_combining_before): Adjust the way to check byte-combining
4289 possibility for the new handling of multibyte sequence. Call
4290 count_combining_composition for a composite character.
4291 (count_combining_after): Likewise.
4292
4293 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
4294 (print): Likewise.
4295
4296 * dispextern.h (struct it): Change the size of the member
4297 `ctl_chars'.
4298
4299 * xdisp.c (get_next_display_element): Display incomplete multibyte
4300 sequence (e.g. \222\300) by octal form.
4301
43021999-09-02 Gerd Moellmann <gerd@gnu.org>
4303
4304 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
4305
4306 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
4307 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
4308
43091999-09-02 Gerd Moellmann <gerd@gnu.org>
4310
4311 * buffer.c (set_buffer_internal): Never set
4312 windows_or_buffers_changed.
4313
4314 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
4315 if we have displayed to the bottom of the window.
4316
4317 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
4318 in both directions. Extend documentation.
4319
43201999-09-01 Gerd Moellmann <gerd@gnu.org>
4321
4322 * minibuf.c (read_minibuf): Flush display after setting cursor to
4323 column 0.
4324
43251999-08-31 Gerd Moellmann <gerd@gnu.org>
4326
4327 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
4328 already defined. This avoids a warning from buffer.c.
4329
43301999-08-30 Gerd Moellmann <gerd@gnu.org>
4331
4332 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
4333 of both margins.
4334 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
4335 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
4336 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
4337
4338 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
4339 once instead of twice.
4340 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
4341
4342 * xterm.c: Remove unused bitmaps.
4343 (continued_bits, continuation_bits, overlay_bits): Change images.
4344 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
4345 instead of FRAME_X_FLAGS_AREA_WIDTH.
4346 (x_after_update_window_line): Ditto.
4347 (x_draw_bitmap): Likewise.
4348 (x_draw_row_bitmaps): Likewise.
4349 (x_draw_glyph_string_box): Likewise.
4350 (x_draw_glyphs): Likewise.
4351 (x_scroll_run): Likewise.
4352 (expose_window_tree): Likewise.
4353 (note_mode_line_highlight): Likewise.
4354 (XTset_vertical_scroll_bar): Likewise.
4355 (x_clip_to_row): Likewise.
4356 (x_set_window_size): Likewise.
4357
4358 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
4359 of 2 * that value.
4360
4361 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
4362 2 * that value.
4363 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
4364 FRAME_FLAGS_AREA_WIDTH.
4365
4366 * window.c (coordinates_in_window): Use
4367 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
4368 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
4369 instead of twice.
4370
4371 * widget.c (set_frame_size): Set flags_area_extra to
4372 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
4373 (EmacsFrameSetCharSize): Ditto.
4374
4375 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
4376 instead of FRAME_FLAGS_AREA_WIDTH.
4377
4378 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
4379 FRAME_FLAGS_AREA_COLS once.
4380 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
4381 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
4382
43831999-08-30 Gerd Moellmann <gerd@gnu.org>
4384
4385 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
4386 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
4387
43881999-08-30 Gerd Moellmann <gerd@gnu.org>
4389
4390 * fns.c (QCweakness): Replaces QCweak.
4391 (Fmake_hash_table): Ditto.
4392 (Fmakehash): Ditto.
4393 (syms_of_fns): Ditto.
4394
43951999-08-29 Richard Stallman <rms@gnu.org>
4396
4397 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
4398
4399 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
4400
4401 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
4402 Add support for nested comments.
4403
863476d1
SM
4404 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
4405 Consolidate the forward comment code into the new `forw_comment'.
4406 (forw_comment): New subroutine. Added support for nested comments.
4407 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
4408 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
4409
44101999-08-28 Ken Raeburn <raeburn@gnu.org>
4411
4412 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
4413 names of structure elements if HIDE_LISP_IMPLEMENTATION is
4414 defined, to help detect code that uses knowledge of the Lisp
4415 internals that it shouldn't have.
4416 (XFLOAT_DATA): New macro.
4417
44181999-08-25 Gerd Moellmann <gerd@gnu.org>
4419
4420 * syntax.c (Fforward_word): If in a mini-buffer and moving
4421 backwards, stop in front of the prompt to prevent accidentially
4422 moving into the read-only prompt.
4423
4424 * window.c (Frecenter): Clear frame if called with nil or no arg.
4425
4426 * xdisp.c (resize_mini_window): Don't resize if
4427 Vmax_mini_window_height is nil. Otherwise, use a default if
4428 Vmax_mini_window_height is not ot a number.
4429 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
4430
44311999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
4432
4433 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
4434 * m/iris4d.h: Use unexelf for IRIX 5.*.
4435 * m/iris5d.h: Use unexelf for IRIX 6.*.
4436 * unexsgi.c: Deleted.
4437
4438 * unexelf.c: Auto-detect .sbss section.
4439 (round_up): Make it static.
4440 (unexec): Declare alignment as Elf Word. Skip ``Program
4441 segment above .bss'' test on MIPS without .sbss.
4442 Copy sections .got and .sdata1 sections. Adjust offsets in
4443 sections .sdata, .lit4, .lit8, .got and .sdata1.
4444
44451999-08-25 Gerd Moellmann <gerd@gnu.org>
4446
4447 * xdisp.c (try_window_id): Remove typo.
4448
44491999-08-24 Gerd Moellmann <gerd@gnu.org>
4450
4451 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
4452 unchanged text at the bottom when computing the cursor position.
4453 (message3_nolog): Raise frame only if minibuffer_auto_raise is
4454 set.
4455
4456 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
4457
44581999-08-24 Gerd Moellmann <gerd@gnu.org>
4459
4460 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
4461 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
4462 (syms_of_xfaces): Ditto.
4463
4464 * window.c (Fset_window_point): Reset Vresize_mini_config.
4465 (Fset_window_start): Ditto.
4466 (set_window_buffer): Ditto.
4467
4468 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
4469
4470 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
4471 before calling try_window.
4472 (echo_area_display): If height has changed, update other windows.
4473 (resize_mini_frame, resize_mini_initial_height): New.
4474 (resize_mini_window): Save/restore window configuration
4475 differently.
4476
4477 * lisp.h (Vresize_mini_config, resize_mini_frame,
4478 resize_mini_initial_height): Add extern declarations.
4479
4480 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
4481 CANON_X_UNIT.
4482
4483 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
4484 being redefined in jconfig.h.
4485
44861999-08-23 Ken'ichi Handa <handa@gnu.org>
4487
4488 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
4489
44901999-08-22 Gerd Moellmann <gerd@gnu.org>
4491
4492 * alloc.c (mark_glyph_matrix): Mark strings only.
4493
4494 * xdisp.c (redisplay_internal): Clear garbaged frames after
4495 resizing mini-window.
4496
44971999-08-22 Gerd Moellmann <gerd@gnu.org>
4498
4499 * xdisp.c (unwind_with_echo_area_buffer): Use
4500 set_buffer_internal_1 instead of set_buffer_internal.
4501 (with_echo_area_buffer): Ditto.
4502
4503 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
4504 only if buffer is displayed somewhere.
4505
4506 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
4507
4508 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
4509 (gap_right): Ditto.
4510 (modify_region): Ditto.
4511
4512 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
4513
4514 * xdisp.c (Vresize_mini_config): New.
4515 (resize_mini_window): Use it to save restore original window
4516 configuration
4517 (syms_of_xdisp): Initialize it.
4518
4519 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
4520
4521 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
4522
4523 * xdisp.c (reconsider_clip_changes): New.
4524 (redisplay_internal, redisplay_window): Call it.
4525 (mark_window_display_accurate, redisplay_internal): Set current
4526 matrix' buffer, begv, zv.
4527
4528 * window.c (Fset_window_hscroll): Set
4529 prevent_redisplay_optimizations_p instead of clip_changed.
4530 (Fset_window_hscroll): Ditto.
4531 (temp_output_buffer_show): Ditto.
4532 (Fset_window_vscroll): Ditto.
4533
4534 * buffer.c (reset_buffer): Set clip_changed to 0 and
4535 prevent_redisplay_optimizations_p to 1.
4536 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
4537
4538 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
4539 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
4540 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
4541 END_UNCHANGED): New.
4542 (struct buffer_text): Add beg_unchanged, end_unchanged,
4543 unchanged_modified, overlay_unchanged_modified.
4544
4545 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
4546 overlay_unchanged_modified): Removed.
4547 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
4548 (unwind_with_echo_area_buffer): Don't restore them.
4549 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
4550 (text_outside_line_unchanged_p, redisplay_internal,
4551 try_scrolling): Use/set buffer-specific beg/end_unchanged.
4552 (redisplay_window): Let try_window_id be called if more than one
4553 window is displayed. Use/set buffer-specific beg/end_unchanged.
4554 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
4555 try_window_id):
4556 Use buffer-specific beg/end_unchanged.
4557
4558 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
4559 overlay_unchanged_modified): Remove extern declarations.
4560
4561 * keyboard.c (command_loop_1): Set beg/end_unchanged per
4562 buffer.
4563
4564 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
4565 (gap_right): Ditto.
4566 (adjust_after_replace): Likewise.
4567 (replace_range, del_range_2, modify_region): Likewise.
4568
4569 * dispnew.c (direct_output_for_insert): Set beg_unchanged
4570 and unchanged_modified per buffer.
4571
4572 * coding.c (code_convert_region): Compute beg/end_unchanged per
4573 buffer.
4574
4575 * buffer.c (modify_overlay): Compute beg/end_unchanged
4576 per buffer.
4577 (Fget_buffer_create): Initialize new members of the buffer
4578 structure.
4579
45801999-08-22 Gerd Moellmann <gerd@gnu.org>
4581
4582 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
4583
4584 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
4585 (Qkey_value_weak): Removed.
4586 (make_hash_table): Use nil, `key', `value', t for weakness.
4587 (Fmake_hash_table): Ditto.
4588 (copy_hash_table): New.
4589 (Fcopy_hash_table): New.
4590
45911999-08-22 Gerd Moellmann <gerd@gnu.org>
4592
4593 * xfns.c: Call change_frame_size and do_pending_window_change with
4594 new parameter.
4595
45961999-08-21 Gerd Moellmann <gerd@gnu.org>
4597
4598 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
4599 well.
4600 (redisplay_internal): Resize mini-window only if text might
4601 have changed.
4602 (display_echo_area): Reset displayed echo_area_buffer to nil
4603 at the end if we're displaying a nil message.
4604
46051999-08-21 Gerd Moellmann <gerd@gnu.org>
4606
4607 * fns.c (hash_lookup): Test with EQ before calling key comparion
4608 function.
4609 (hash_remove): Ditto.
4610 (cmpfn_eq): Removed.
4611 (cmpfn_eql): Don't test with EQ.
4612 (cmpfn_equal): Ditto.
4613 (make_hash_table): Set comparison function for `eq' to null.
4614
4615 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
4616 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
4617
4618 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
4619
4620 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
4621 xterm.c: Call change_frame_size and do_pending_window_change with
4622 new parameter.
4623
4624 * dispnew.c (do_pending_window_change): Add parameter `safe'.
4625 (change_frame_size): Ditto.
4626 (change_frame_size_1): Ditto. Deley size changes if redisplaying
4627 and not called from a safe place.
4628 (window_change_signal): Call change_frame_size with new parameter.
4629
4630 * dispextern.h: Change prototypes for do_pending_window_change
4631 and change_frame_size.
4632
4633 * xfaces.c (face_at_buffer_position): Don't xassert that
4634 window's buffers equals current_buffer; this is not the
4635 case during echo area display.
4636
46371999-08-21 Gerd Moellmann <gerd@gnu.org>
4638
4639 * xdisp.c, minibuf.c: Remove conditional compilation on
4640 NO_PROMPT_IN_BUFFER.
4641
4642 * minibuf.c (Fminibuffer_prompt_end): New.
4643 (syms_of_minibuf): Defsubr it. Remove
4644 minibuffer-prompt-in-buffer.
4645 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
4646 Extend documentation.
4647
4648 * xdisp.c (get_next_display_element): Display \r as ^M.
4649
4650 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
4651 under scroll bar widget.
4652
46531999-08-21 Gerd Moellmann <gerd@gnu.org>
4654
4655 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
4656 anywhere.
4657 (unwind_redisplay): Return nil.
4658 (clear_garbaged_frames): New.
4659 (redisplay_internal): Use it.
4660 (echo_area_display): Ditto.
4661 (resize_mini_window): Mew.
4662 (display_echo_area_1): Use it to resize echo area window.
4663 (redisplay_internal): Use it to resize active mini-window.
4664
4665 * dispextern.h, lisp.h: Add function prototypes.
4666
4667 * dispnew.c (set_window_cursor_after_update): Do the
4668 cursor_in_echo_area case only for a mini-window showing
4669 a message. Don't let cursor end up after the end of a row.
4670
4671 * xdisp.c (echo_area_glyphs, echo_area_message,
4672 echo_area_glyphs_length, previous_echo_glyphs,
4673 previous_echo_area_message, previous_echo_area_glyphs_length):
4674 Removed.
4675 (Vmessage_stack, echo_area_buffer, echo_buffer,
4676 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
4677 (message2_nolog): Use set_message and clear_message.
4678 (message3): Rename parameter len to nbytes to make clear what
4679 it is.
4680 (message3_nolog): Ditto. Use set_message and clear_message.
4681 (update_echo_area): Rewritten.
4682 (with_echo_area_buffer): New.
4683 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
4684 (setup_echo_area_for_printing): New.
4685 (display_echo_area, display_echo_area_1): New.
4686
4687 (current_message, current_message_1): New.
4688 (push_message, restore_message, pop_message,
4689 check_message_stack): New.
4690 (truncate_echo_area): Rewritten.
4691 (truncate_message_1): New.
4692 (set_message, set_message_1, clear_message): New.
4693 (echo_area_display): Rewritten.
4694 (redisplay_internal): Check for needed echo area update
4695 differently.
4696 (redisplay_preserve_echo_area): Rewritten.
4697 (redisplay_window): Check for mini-window displaying echo area
4698 message differently.
4699 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
4700 Remove initialzation of removed variables.
4701 (init_xdisp): Remove references to removed variables.
4702
4703 * dispnew.c (adjust_frame_message_buffer): Removed references
4704 to echo_area_glyphs and previous_echo_glyphs.
4705 (direct_output_for_insert): Check for mini-window displaying
4706 echo area message differently.
4707 (update_frame): Likewise.
4708 (set_window_cursor_after_update): Likewise. In echo area,
4709 don't try to set cursor on rows that aren't enabled.
4710
4711 * print.c: Remove conditional compilation on `standalone'.
4712 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
4713 glyph_to_str_cpy): Remove that section because GLYPHs are no
4714 longer used in that way.
4715 (PRINTDECLARE): Add multibyte.
4716 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
4717 (printbufidx): Removed.
4718 (printchar, strout): Rewritten.
4719
4720 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
4721 a struct kboard.
4722 (echo_kboard): New.
4723 (echo_now): Set echo_kboard to the current kboard.
4724 (cancel_echoing): Set echo_kboard to null.
4725 (cmd_error_internal): Use clear_message, remove references
4726 to echo_area_glyphs and echo_area_message.
4727 (command_loop_1): Check for echo area messages differently.
4728 (read_char): Likewise.
4729 (record_menu_key): Use clear_message.
4730 (Fexecute_extended_command): Check for echo area messages
4731 differently. Use push_message, restore_message, pop_message.
4732
4733 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
4734 pop_message.
4735
4736 * emacs.c (shut_down_emacs): Call check_message_stack.
4737
4738 * lisp.h: Add function prototypes and extern declarations for
4739 new functions and variables.
4740
4741 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
4742 pop_message.
4743
4744 * minibuf.c (read_minibuf): Use clear_message instead of
4745 setting echo_area_glyphs.
4746 (Fminibuffer_completion_help): Ditto.
4747
4748 * editfns.c (Fcurrent_message): Rewritten.
4749
4750 * frame.c, window.h: Remove references to echo_area_glyphs
4751 and previous_echo_glyphs.
4752
47531999-08-21 Dave Love <fx@gnu.org>
4754
4755 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
4756 * aix4-1.h: Likewise.
4757
4758 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
4759
47601999-08-20 Gerd Moellmann <gerd@gnu.org>
4761
4762 * xfns.c: Remove tiff34 prefix from include.
4763
47641999-08-20 Dave Love <fx@gnu.org>
4765
4766 * cm.c: Revert previous change.
4767
47681999-08-19 Gerd Moellmann <gerd@gnu.org>
4769
4770 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
4771 under scroll bar with width FRAME_SCROLL_BAR_COLS.
4772
47731999-08-18 Dave Love <fx@gnu.org>
4774
4775 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
4776 stdlib.h.
4777
4778 * doprnt.c: Use stdlib.h, unistd.h.
4779
4780 * config.in: Add HAVE_TERMCAP_H.
4781
4782 * cm.c: Use termcap.h.
4783
47841999-08-18 Gerd Moellmann <gerd@gnu.org>
4785
4786 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
4787 FRAME_X_WINDOW (f) being null at the of the function. If widgets
4788 cannot be created we will already have crashed earlier. Call
4789 lw_set_main_areas with a null menu-bar widget, so that we have
4790 a reasonable default.
4791 (Fx_create_frame): Rearranged so that Lisp errors during frame
4792 initialization cause less damage. Initialize menu bar widget
4793 here.
4794
47951999-08-18 Gerd Moellmann <gerd@gnu.org>
4796
4797 * dispnew.c (update_frame_line): Fix previous change. If writing
4798 whole line clear to end of frame.
4799
48001999-08-17 Gerd Moellmann <gerd@gnu.org>
4801
4802 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
4803 and `right-bitmap-area' if position is in the bitmap areas. This
4804 avoids an error when clicking on the bitmap areas. Instead, they
4805 are currently treated like clicks inside the window.
4806 (coordinates_in_window): Return 5 and 6 for bitmap areas.
4807 (Qleft_bitmap_area, Qright_bitmap_area): New.
4808 (syms_of_window): Initialize new symbols.
4809
4810 * dispnew.c (update_frame_line): If writing whole line,
4811 don't write trailing spaces unless we must.
4812
4813 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
4814 (redisplay_internal): Register unwind_redisplay with
4815 register_unwind_protect.
4816 (try_window_reusing_current_matrix): If new start > old start,
4817 give up if start pos of first reusable row is not equal to new
4818 start.
4819
4820 * eval.c (Fsignal): Don't reset redisplaying_p here.
4821
4822 * xterm.c (expose_area): If row extends face to end of line,
4823 write the whole line.
4824
48251999-08-16 Gerd Moellmann <gerd@gnu.org>
4826
4827 * dispextern.h (struct it): Remove member
4828 show_trailing_whitespace_p.
4829
4830 * dispnew.c (direct_output_for_insert): Use
4831 Vshow_trailing_whitespace instead of former iterator member
4832 show_trailing_whitespace_p.
4833 (direct_output_forward_char): Don't do it if hightlighting
4834 trailing whitespace.
4835
4836 * xdisp.c (Qshow_trailing_whitespace): Removed.
4837 (Vshow_trailing_whitespace): Added.
4838 (init_iterator): Remove initialization code for
4839 show_trailing_whitespace_p.
4840 (redisplay_internal): Don't try cursor movement in this_line
4841 if showing trailing whitespace.
4842 (redisplay_window): Likewise for cursor movement in current
4843 matrix and try_window_id.
4844 (try_window_reusing_current_matrix): Likewise.
4845 (trailing_whitespace_p): Return 0 if trailing whitespace is
4846 in front of point.
4847 (display_line): Use Vshow_trailing_whitespace instead of
4848 former iterator member show_trailing_whitespace_p.
4849 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
4850
48511999-08-16 Gerd Moellmann <gerd@gnu.org>
4852
4853 * window.c (Fpos_visible_in_window_p): Rewritten.
4854
4855 * xfaces.c (add_to_log): Renamed from display_message.
4856 Don't display messages in echo area.
4857
4858 * xterm.c (x_draw_glyph_string_box): Use the background width
4859 of the glyph string for the width of the box.
4860
48611999-08-16 Stefan Monnier <monnier@cs.yale.edu>
4862
4863 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
4864
48651999-08-16 Geoff Voelker <voelker@cs.washington.edu>
4866
4867 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
4868 background first, and then set other parameters that might
4869 depend upon their new values.
4870
48711999-08-15 Gerd Moellmann <gerd@gnu.org>
4872
4873 * xfaces.c (Vfont_list_limit): New.
4874 (syms_of_xfaces): Make it a user-variable.
4875 (DEFAULT_FONT_LIST_LIMIT): New.
4876 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
4877 maximally that number of fonts, otherwise use
4878 DEFAULT_FONT_LIST_LIMIT.
4879 (Fx_font_family_list): Bind `font-list-limit' to higher values
4880 until we have all fonts.
4881 (Fxfont_list): Additionally return the full names of fonts and
4882 their registry and encoding.
4883
4884 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
4885 Simplify clearing "under" scroll bar.
4886
4887 * window.c (Qfixed_window_size): New.
4888 (syms_of_window): Initialiaze it.
4889 (check_all_windows): Add return type void.
4890 (window_fixed_size_p): New. Return non-zero if window
4891 is fixed-size.
4892 (window_min_size_1): New.
4893 (window_min_size): Handle fixed-size windows.
4894 (size_window): New. Rewritten combination of set_window_height and
4895 set_window_width that handles fixed-size windows.
4896 (set_window_height): Call it.
4897 (set_window_width): Call it.
4898 (Fsplit_window): Give an error on attempt to split a fixed-size
4899 window.
4900 (change_window_height): Partly rewritten to handle fixed-size
4901 windows.
4902
49031999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
4904
4905 * process.c (Fopen_network_stream): Fix previous change.
4906
49071999-08-13 Karl Heuer <kwzh@gnu.org>
4908
4909 * xdisp.c (line_number_display_limit_width): New var.
4910 (decode_mode_spec): Use it instead of hardcoded value.
4911 (syms_of_xdisp): Defvar it.
4912
49131999-08-13 Richard M. Stallman <rms@gnu.org>
4914
4915 * eval.c (run_hook_list_with_args): Gcpro `globals'.
4916 (run_hook_with_args): Likewise.
4917
4918 * window.h (struct window): New field too_small_ok.
4919
4920 * window.c (set_window_height, set_window_width):
4921 If window starts out "too small", set its too_small_ok flag.
4922 If window's too_small_ok flag is set, don't delete it
4923 unless it is so small it would cause a crash.
4924
49251999-08-13 Gerd Moellmann <gerd@gnu.org>
4926
4927 * window.c (MINSIZE): Removed.
4928 (window_min_size): New.
4929 (set_window_height): Use window_min_size.
4930 (change_window_height): Ditto.
4931
49321999-08-12 Gerd Moellmann <gerd@gnu.org>
4933
4934 * indent.c (vmotion): Don't add in mini-buffer prompt width
4935 if prompts are inserted into mini-buffer.
4936
49371999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
4938
4939 * config.in: Add HAVE_GETADDRINFO.
4940 * process.c (Fopen_network_stream): Use getaddrinfo.
4941
49421999-08-11 Gerd Moellmann <gerd@gnu.org>
4943
4944 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
4945 glyphs to -1.
4946
4947 * xdisp.c (face_before_or_after_it_pos): If position after
4948 or before iterator's current position in the buffer is out
4949 of bounds, return the iterator's original face id.
4950
4951 * dispnew.c (mirror_make_current): If desired row isn't enabled,
4952 just swap glyphs pointers between current and desired row.
4953 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
4954 desired matrix method string to current matrix.
4955
49561999-08-11 Kenichi Handa <handa@etl.go.jp>
4957
4958 * lisp.h (CHAR_MODIFIER_MASK): New macro.
4959
4960 * lread.c (read_escape): For Control modifier, pay attention to
4961 multibyte character.
4962 (read1): Likewise. Singal error or a multibyte character which
4963 has a modifer bit. Check validity of Shift modifer.
4964
4965 * charset.c (non_ascii_char_to_string): Handle modifier bits as
4966 the same as Lisp reader.
4967
49681999-08-10 Richard M. Stallman <rms@gnu.org>
4969
4970 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
4971
49721999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
4973
4974 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
4975
49761999-08-10 Eli Zaretskii <eliz@gnu.org>
4977
4978 * msdos.c (IT_set_face): Abort if the default face is not realized
4979 and cached.
4980 (IT_write_glyphs): Reset the screen face to the default face
4981 before writing glyphs.
4982
4983 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
4984 colors from the frame here.
4985 (realize_tty_face) [MSDOS]: Do it here. Update the face
4986 attributes with the actual name of the color taken from the
4987 frame.
4988
4989 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
4990 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
4991
4992 * frame.c (Fframe_parameters): Swap foreground and background
4993 colors returned in frame parameters if the frame has reverse in
4994 its parameter alist.
4995 (Fmake_terminal_frame): Make a unique copy of face_alist for
4996 each frame.
4997
49981999-08-07 Richard Stallman <rms@gnu.org>
4999
5000 * buffer.c (Fprevious_overlay_change): Just return
5001 the answer obtained from overlays_at.
5002
5003 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
5004 Use XpmCloseness and attrs.closeness instead.
5005
50061999-08-06 Richard Stallman <rms@gnu.org>
5007
5008 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
5009
50101999-08-06 Geoff Voelker <voelker@cs.washington.edu>
5011
5012 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
5013 Ffile_attributes_lessp): New functions.
5014 (Fdirectory_files): Use directory_files_internal.
5015 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
5016 Ffile_attributes_lessp.
5017
5018 * w32.c (stat): Check for directory ending in separator when
5019 doing readdir fast path.
5020
5021 * w32fns.c (x_set_icon_type): Support setting frame icons.
5022 * w32term.c (x_bitmap_icon): New function.
5023 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
5024
50251999-08-06 Gerd Moellmann <gerd@gnu.org>
5026
5027 * xdisp.c (set_iterator_to_next): After delivering a character
5028 from a display vector, restore face and charset to what they were
5029 before the display vector was processed.
5030
50311999-08-06 Gerd Moellmann <gerd@gnu.org>
5032
5033 * xdisp.c (reseat_at_next_visible_line_start): New parameter
5034 on_newline_p.
5035 (set_iterator_to_next): After delivering last char
5036 from display vector, reseat on next visible line start if
5037 dpvec_char_len < 0.
5038 (next_element_from_buffer): Set dpvec_char_len to -1 for
5039 selective display.
5040
50411999-08-06 Gerd Moellmann <gerd@gnu.org>
5042
5043 * xdisp.c (compute_line_metrics): If first line's physical ascent
5044 is larger than its logical ascent, use the physical ascent, and
5045 make the row taller. Set row's overlapping_p flag.
5046
5047 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
5048 (direct_output_for_insert): Ditto.
5049
5050 * dispextern.h (struct glyph_row): Add overlapping_p.
5051
5052 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
5053
5054 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
5055 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
5056
5057 * dispnew.c (direct_output_for_insert): Don't use this method if
5058 row is overlapped by others.
5059 (update_text_area): Write full line if current line is overlapped.
5060 (redraw_overlapped_rows): New.
5061 (update_window): Call it.
5062 (redraw_overlapping_rows): New.
5063 (update_window): Call it.
5064 (scrolling_window): Make sure overlapped_p flag in current rows is
5065 unchanged.
5066 (row_equal_p): Take rows overlapped_p flag into account.
5067
5068 * dispextern.h (struct glyph_row): Add flag overlapped_p.
5069
5070 * xterm.c (x_fix_overlapping_area): New.
5071 (x_redisplay_interface): Add x_fix_overlapping_area.
5072
5073 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
5074
50751999-08-06 Gerd Moellmann <gerd@gnu.org>
5076
5077 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
5078 (struct glyph_string): Add member for_overlaps_p.
5079 (x_get_glyph_string_clip_rect): If glyph string draws foreground
5080 of overlapping rows, clip to window bottom.
5081 (x_fill_glyph_string): Add parameter overlaps_p.
5082 (x_fill_composite_glyph_string): Ditto.
5083 (BUILD_GLYPH_STRINGS): Ditto.
5084 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
5085 (x_draw_glyph_string): Don't draw anything but the foreground
5086 if glyph string draws row overlaps.
5087
5088 * dispnew.c (direct_output_for_insert): Don't use this
5089 optimization for rows that overlap others.
5090 (update_window_line): Return non-zero if display has changed.
5091 (update_text_area): Ditto.
5092 (update_window): Record if display has been changed.
5093
5094 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
5095
5096 * dispextern.h (struct redisplay_interface): Add
5097 fix_overlapping_area.
5098
5099 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
5100
5101 * dispextern.h (struct glyph): Add overlaps_vertically_p.
5102
5103 * xterm.c (x_produce_image_glyph): Compute iterator's physical
5104 ascent and descent.
5105 (x_produce_stretch_glyph): Ditto.
5106 (x_produce_glyphs): Ditto.
5107
5108 * xdisp.c (init_iterator): Reset physical line height info
5109 after producing special glyphs.
5110 (display_toolbar_line): Set physical line height info.
5111 (compute_line_metrics): Ditto.
5112 (display_line): Ditto.
5113 (display_string): Ditto.
5114
5115 * term.c (produce_glyphs): Set iterator's physical height
5116 information.
5117
5118 * dispnew.c (blank_row): Compute glyph row's physical height.
5119 (row_equal_p): Take physical row heights into account.
5120 (direct_output_for_insert): Ditto.
5121 (update_text_area): Ditto.
5122
5123 * dispextern.h (struct glyph_row): Add phys_ascent and
5124 phys_height.
5125 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
5126 max_phys_descent.
5127
51281999-08-04 Stefan Monnier <monnier@cs.yale.edu>
5129
5130 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
5131 Fswitch_to_buffer.
5132 (no_switch_buffer): New function.
5133 (Fswitch_to_buffer): Call them. Don't get confused
5134 by "same-window" buffers in a dedicated frame.
5135
5136 * window.c (display-buffer): Don't get confused
5137 by "same-window" buffers in a dedicated frame.
5138
51391999-08-04 Andreas Schwab <schwab@gnu.org>
5140
5141 * insdel.c (insert_from_string_1): Check gap size against number
5142 of outgoing bytes, not incoming bytes.
5143
51441999-08-03 Tom Breton <tob@world.std.com>
5145
5146 * lread.c (read1): Added circular reading code to #N=.
5147 (SUBSTITUTE): New macro.
5148 (seen_list): New variable.
5149 (substitute_object_in_subtree): New function.
5150 (substitute_object_recurse): New function.
5151 (substitute_in_interval): New function.
5152
51531999-08-02 Eli Zaretskii <eliz@gnu.org>
5154
5155 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
5156
5157 * frame.c (make_terminal_frame): Don't call init_frame_faces if
5158 noninteractive, for termcap frames as well.
5159
5160 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
5161 frames.
5162
51631999-08-01 Richard Stallman <rms@gnu.org>
5164
5165 * fns.c (internal_equal): Correct overlay comparison.
5166
83c8f461 51671999-07-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
5168
5169 * xfns.c (x_set_internal_border_width):
5170 Call do_pending_window_change. Don't block input, don't call XFlush.
5171 (x_set_vertical_scroll_bars): Call do_pending_window_change.
5172 (x_set_scroll_bar_width, x_set_font): Likewise.
5173
5174 * frame.c (Fset_frame_height): Call do_pending_window_change.
5175 (Fset_frame_width, Fset_frame_size): Likewise.
5176
5177 * xterm.c (x_set_window_size): When calling change_frame_size,
5178 specify 1 for DELAY.
5179
5180 * widget.c (EmacsFrameSetCharSize): Don't call
5181 do_pending_window_change here.
5182
51831999-07-30 Dave Love <fx@gnu.org>
5184
5185 * config.in: Add HAVE_STDLIB_H.
5186
51871999-07-30 Richard M. Stallman <rms@gnu.org>
5188
5189 * process.c (create_process): Detect failure of `pipe'.
5190
51911999-07-30 Keisuke Nishida <kei@psn.net>
5192
5193 * alloc.c (allocate_vectorlike): Add missing increment.
5194
5195 * data.c (Fdefalias): Call Ffset instead of duplicating code.
5196
5197 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
5198 before calling indirect_function.
5199
52001999-07-30 Eli Zaretskii <eliz@gnu.org>
5201
5202 * dispextern.h (load_color, lookup_derived_face): Declare
5203 prototypes.
5204
5205 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
5206 it will be done later.
5207
5208 * frame.c (make_terminal_frame) [MSDOS]: Don't call
5209 init_frame_faces if non-interactive.
5210 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
5211 array with a call to msdos_stdcolor_name. The font name is now
5212 "ms-dos", consistent with realize_tty_face.
5213
5214 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
5215 MSDOS frame.
5216
5217 * window.c (Fset_window_configuration) [MSDOS]: Don't call
5218 x_set_toolbar_lines.
5219
5220 * xfaces.c (load_color): Remove static from definition and remove
5221 prototype.
5222 [MSDOS]: Add a DOS-specific version of load_color.
5223 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
5224 (lookup_derived_face): New function.
5225 (realize_default_face): Support MSDOS frames.
5226 [MSDOS]: If fore/background colors are unspecified, inherit them
5227 from the frame.
5228 (realize_face): Support MSDOS frames.
5229 (realize_tty_face): Support MSDOS frames.
5230 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
5231 load_color to try to find a suitable approximation. If the face
5232 is inverse-video, swap the foreground and background colors.
5233
5234 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
5235 functions.
5236
5237 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
5238
5239 * msdos.h: Remove redundant declarations (most of them are now in
5240 dispextern.h).
5241
5242 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
5243 Use default frame colors if the face doesn't specify them; invert
5244 the colors if highlight is ON.
5245 (IT_write_glyphs): Rewritten for the new redisplay engine.
5246 (IT_change_line_highlight): Add (unused) parameter Y, since that's
5247 how the hook is called by term.c.
5248 (IT_copy_glyphs): New function, copies an area of the display in
5249 video RAM.
5250 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
5251 redisplay now calls it even if char_ins_del_ok is zero.
5252 (IT_set_frame_parameters): Prototype changed. Calls the new
5253 load_color. Puts the new fore/background colors into the default
5254 face on current frame.
5255 (IT_menu_display): Rewritten to handle the new struct glyph
5256 instead of a char array.
5257 (XMenuActivate): Call lookup_derived_face to create and use
5258 special faces for the pop-up and drop-down menus.
5259
52601999-07-29 Gerd Moellmann <gerd@gnu.org>
5261
5262 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
5263 XawScrollbarSetThumb if thumb parameters haven't changed because
5264 that function apparently isn't optimized for this case.
5265
52661999-07-29 Eli Zaretskii <eliz@gnu.org>
5267
5268 * msdos.c (getdefdir): Don't return failure indication when
5269 _fixpath sets errno to ENOSYS.
5270
52711999-07-28 Gerd Moellmann <gerd@gnu.org>
5272
5273 * xdisp.c (string_char_and_length): New. Use it everywhere
5274 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
5275
52761999-07-28 Kenichi Handa <handa@etl.go.jp>
5277
5278 * fns.c (count_combining): New function.
5279 (struct textprop_rec): New structure.
5280 (concat): Copy text properties correctly when byte combining
5281 occurs.
5282
52831999-07-28 Gerd Moellmann <gerd@gnu.org>
5284
5285 * xterm.c (x_setup_relief_color): Don't try smart color allocation
5286 if display is mono.
5287 (x_draw_row_bitmaps): If face has stipple, don't switch
5288 to foreground color for clearing areas, and set the fill style.
5289
5290 * xfaces.c (load_face_colors): Load background color if setting
5291 stipple, too.
5292 (prepare_face_for_display): Use FillOpaqueStippled instead of
5293 FillStippled.
5294
52951999-07-26 Ken'ichi Handa <handa@gnu.org>
5296
5297 * xterm.c (x_find_ccl_program): Add casting.
5298
5299 * w32fns.c (w32_find_ccl_program): Add casting.
5300
53011999-07-27 Gerd Moellmann <gerd@gnu.org>
5302
5303 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
5304
5305 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
5306 because this will try to access a nonexisting widget.
5307
53081999-07-26 Markus Rost <rost@gnu.org>
5309
5310 * fns.c (Fgethash): Fix order of variables (patch by gerd).
5311 (Fputhash): Ditto.
5312 (Fremhash): Ditto.
5313
53141999-07-26 Gerd Moellmann <gerd@gnu.org>
5315
5316 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
5317 value to frame width and height.
5318
5319 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
5320 into account for full-width windows. Don't add scroll bar width
5321 to width of clip rect.
5322 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
5323 (x_set_glyph_string_background_width): Add 1 to background width.
5324 (x_draw_glyphs): Take internal border into account for full-width
5325 lines.
5326
53271999-07-26 Richard M. Stallman <rms@gnu.org>
5328
5329 * xfns.c (x_set_mouse_color): Always unload the old color.
5330 Don't allow nil as color value.
5331 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
5332 Always unload the old color.
5333
5334 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
5335
53361999-07-26 Karl Heuer <kwzh@gnu.org>
5337
5338 * fns.c (Fy_or_n_p): Doc fix.
5339
53401999-07-26 Kenichi Handa <handa@etl.go.jp>
5341
5342 * ccl.h (setup_ccl_program): The type is changed to `int'.
5343
5344 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
5345 stored in the following CCL code. Adjusted for the change of
5346 Vccl_program_table.
5347 (resolve_symbol_ccl_program): Adjusted for the new style of
5348 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
5349 is resolving failed.
5350 (ccl_get_compiled_code): New function.
5351 (setup_ccl_program): Function type changed from `void' to `int'.
5352 Resolve symbols in CCL_PROG.
5353 (Fccl_program_p): New function.
5354 (Fccl_execute): Get compiled CCL code by just calling
5355 setup_ccl_program.
5356 (Fccl_execute_on_string): Likewise.
5357 (Fregister_ccl_program): Adjusted for the change of
5358 Vccl_program_table.
5359
5360 * coding.c (setup_coding_system): Get compiled CCL code by just
5361 calling setup_ccl_program.
5362
5363 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
5364 calling setup_ccl_program.
5365
5366 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
5367 calling setup_ccl_program.
5368
53691999-07-23 Gerd Moellmann <gerd@gnu.org>
5370
5371 * xfaces.c (frame_update_line_height): Just use the height of the
5372 frame's fontset or font, instead of taking face fonts into
5373 account.
5374
5375 * xdisp.c (get_next_display_element): Display DEL as `^?'.
5376
53771999-07-23 Richard M. Stallman <rms@gnu.org>
5378
5379 * window.c (Fsplit_window): For default size, round up for left window.
5380
53811999-07-21 Joe Ramey <ramey@ti.com>
5382
5383 * filelock.c (lock_if_free): Return -1 if check_lock_owner
5384 has returned -1 (lockfile exists but is not a symlink?).
5385
53861999-07-20 Gerd Moellmann <gerd@gnu.org>
5387
5388 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
5389 because of a change in cursor_gc made in 20.4.
5390
53911999-07-19 Gerd Moellmann <gerd@gnu.org>
5392
5393 * xterm.c (x_calc_absolute_position): Subtract menu bar height
5394 for YNegative, if using X toolkit.
5395
5396 * xfns.c (x_real_positions): Don't subtract window borders
5397 from positions returned.
5398
53991999-07-17 Gerd Moellmann <gerd@gnu.org>
5400
5401 * xrdb.c (x_load_resources): Set double-click time defaults
5402 for Motif list boxes from double-click-time.
5403
5404 * fns.c (Vhash_table_tests): Remvoed.
5405 (Qhash_table_test): New.
5406 (syms_of_fns): Initialize Qhash_table_test.
5407 (Fmake_hash_table): Look up user-defined tests in symbol prop
5408 `hash-table-test'.
5409 (Fdefine_hash_table_test): Store test and hash function as
5410 symbol prop `hash-table-test'.
5411 (make_hash_table): Add parameters user_test and user_hash.
5412
5413 * window.c (set_window_buffer): Set window margins for tty
5414 frames, too.
5415 (Fset_window_margins): Ditto.
5416
5417 * term.c (append_glyph): Use glyph area of iterator instead of
5418 always TEXT_AREA.
5419
5420 * dispnew.c (update_frame_1): Add left margin width to cursor
5421 hpos.
5422 (direct_output_for_insert): Ditto.
5423 (direct_output_forward_char): Ditto.
5424
5425 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
5426
5427 * dispextern.h (struct glyph_matrix): Add top_line_p.
5428
54291999-07-16 Gerd Moellmann <gerd@gnu.org>
5430
5431 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
5432 instead.
5433
5434 * fns.c (cmpfn_eq): Add hash code parameters.
5435 (cmpfn_eql): Ditto.
5436 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
5437 (cmpfn_user_defined): Likewise.
5438
54391999-07-15 Gerd Moellmann <gerd@gnu.org>
5440
5441 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
5442
5443 * fns.c (maybe_resize_hash_table): Correct computation of
5444 index vector size.
5445 (make_hash_table): Ditto.
5446 (Fmakehash): New.
5447
5448 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
5449
5450 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
5451 (survives_gc_p): Make it externally visible.
5452 (mark_object): Ditto.
5453
5454 * fns.c (remove_hash_entry): Removed.
5455 (sweep_weak_hash_tables): New.
5456
5457 * print.c (print): Print more information about hash tables.
5458
5459 * xfns.c (image_spec_hash): Removed.
5460 (lookup_image): Use sxhash instead of image_spec_hash.
5461 (image_spec_equal_p): Removed.
5462 (lookup_image): Use Fequal instead of image_spec_equal_p.
5463
54641999-07-14 Gerd Moellmann <gerd@gnu.org>
5465
5466 * lisp.h (P_): Moved to top of file.
5467
5468 * fns.c (make_hash_table): Set new members.
5469
5470 * alloc.c (mark_object): Mark hash table's user_hash_function.
5471 Mark index vector for weak hash tables.
5472
5473 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
5474 user_hash_function, cmpfn, and hashfn.
5475
5476 * fns.c (build_hash): Removed.
5477 (hash_test): Removed.
5478 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
5479 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
5480
54811999-07-13 Gerd Moellmann <gerd@gnu.org>
5482
5483 * alloc.c (survives_gc_p): New.
5484
5485 * print.c (print): Add hash table handling.
5486
5487 * alloc.c (mark_object): Add code to mark hash tables.
5488
5489 * lisp.h (GC_HASH_TABLE_P): New.
5490
5491 * emacs.c (main): Call init_fns.
5492
5493 * fns.c (init_fns): New.
5494
5495 * fns.c: Add hash table implementation.
5496
5497 * lisp.h (PVEC_HASH_TABLE): New.
5498 (struct Lisp_Hash_Table): New.
5499 (XHASH_TABLE): New.
5500 (XSET_HASH_TABLE): New.
5501 (HASH_TABLE_P): New.
5502 (CHECK_HASH_TABLE): New.
5503 (DEFAULT_HASH_SIZE): New.
5504 (DEFAULT_REHASH_THRESHOLD): New.
5505 (DEFAULT_REHASH_SIZE): New.
5506
5507 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
5508 (x_write_glyphs): Compute overwritten cursor using real start
5509 and end positions of display.
5510 (x_insert_glyphs): Ditto.
5511
55121999-07-10 Gerd Moellmann <gerd@gnu.org>
5513
5514 * keyboard.c (read_char): Use message3_nolog to show help-echo.
5515
5516 * dispnew.c (blank_row): Add y-position as parameter. Compute
5517 visible height.
5518
5519 * xdisp.c (next_element_from_string): Give padding spaces
5520 a position of -1.
5521
5522 * dispnew.c (adjust_glyph_matrix): Some work to support
5523 marginals areas on tty frames in a future version.
5524 (allocate_matrices_for_frame_redisplay): Ditto.
5525
5526 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
5527 to zero if number of glyphs in the row is <= 1.
5528
55291999-07-09 Gerd Moellmann <gerd@gnu.org>
5530
5531 * dispnew.c (buffer_posn_from_coords): Take left marginal area
5532 into account.
5533
5534 * xdisp.c (handle_display_prop): Don't reset area if handing
5535 a property from a string that came from a `display' property.
5536 (handle_single_display_prop): Don't handle recursive `display'
5537 properties.
5538 (handle_single_display_prop): Handle some display property
5539 forms for terminal frames.
5540 (Qimage): Moved here from xfns.c.
5541
5542 * dispextern.h (struct it): New field string_from_display_prop_p.
5543
5544 * xterm.c (x_clip_to_row): Don't let clip_rect include top
5545 line.
5546
55471999-07-08 Gerd Moellmann <gerd@gnu.org>
5548
5549 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
5550
5551 * window.c (set_window_buffer): Set window's vscroll to zero.
5552
5553 * xdisp.c (QCwhen): New.
5554 (display_prop_end): New.
5555 (handle_single_display_prop): Use it.
5556 (debug_method_add): Print buffer name if tracing.
5557 (try_window_reusing_current_matrix): Compute visible height
5558 of reused rows. Fix cursor position calculation in case of
5559 top-line.
5560
5561 * dispextern.h (struct redisplay_interface): Add parameter
5562 cursor_on_p to update_window_end_hook.
5563
5564 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
5565
55661999-07-07 Gerd Moellmann <gerd@gnu.org>
5567
5568 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
5569 doesn't become negative when decrementing it.
5570
5571 * eval.c (Fsignal): Reset redisplaying_p to zero.
5572
5573 * xdisp.c (try_window_reusing_current_matrix): Call hooks
5574 for window update.
5575 (try_window_id): Ditto.
5576
5577 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
5578 (x_scroll_run): Ditto.
5579 (any_help_event_p): New.
5580 (x_initialize): Set it to zero.
5581 (XTread_socket): Clear help echo only if any_help_event_p.
5582
5583 * xdisp.c (init_iterator): Set top_line_p.
5584 (start_display): Use correct initial y if top-line is present.
5585 (make_cursor_line_fully_visible): Bug fixes for top-line.
5586 (try_scrolling): Ditto.
5587 (try_window_reusing_current_matrix): Ditto.
5588
5589 * dispextern.h (struct it): Add top_line_p.
5590
5591 * dispnew.c (shift_glyph_matrix): Move some computations out
5592 of the loop.
5593
5594 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
5595 XFLOATINT.
5596
55971999-07-06 Gerd Moellmann <gerd@gnu.org>
5598
5599 * dispnew.c (update_frame_1): When setting cursor in echo area,
5600 skip only over padding spaces at the end.
5601
5602 * xfaces.c (realize_tty_face): Set face's font_name field to
5603 "tty".
5604
5605 * term.c (update_end): Turn cursor on only if selected window's
5606 cursor_off_p flag is not set.
5607
56081999-07-05 Gerd Moellmann <gerd@gnu.org>
5609
5610 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
5611 (TS_cursor_normal): Renamed from TS_end_visual_mode.
5612 (TS_cursor_invisible): New.
5613 (term_init): Initialize TS_cursor_invisible.
5614 (tty_hide_cursor): New.
5615 (tty_show_cursor): New.
5616 (update_end): Show tty cursor.
5617 (update_begin): Hide tty cursor to prevent cursor flickering
5618 during redisplays triggered by timers (stealth fontification).
5619
5620 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
5621
5622 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
5623 in scroll bars.
5624 (x_handle_toolbar_click): Set modifier bits.
5625
56261999-07-04 Gerd Moellmann <gerd@gnu.org>
5627
5628 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
5629 instead of a pointer to a volatile input_event.
5630 (kbd_buffer_store_event): Remove volatile modifier from
5631 declaration of local variable `sp'.
5632 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
5633 to kbd_fetch_ptr.
5634
56351999-07-03 Gerd Moellmann <gerd@gnu.org>
5636
5637 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
5638 only if buffer is modified. Return quickly if changes are
5639 above window start.
5640
56411999-07-02 Gerd Moellmann <gerd@gnu.org>
5642
5643 * dispextern.h (HSCROLL_WINDOWS): Removed.
5644
5645 * xdisp.c (mark_window_display_accurate): Don't set
5646 w->region_showing.
5647 (redisplay_internal): Don't call redraw_garbaged_frames.
5648
56491999-07-01 Gerd Moellmann <gerd@gnu.org>
5650
5651 * xdisp.c (echo_area_display): Don't display truncation marks
5652 for messages because 20.4 doesn't do it either.
5653 (redisplay_window): Case same window start. Instead of giving
5654 up when cursor is partially visible, make it fully visible.
5655 (mark_window_display_accurate): Some cleanup. Record window's
5656 last cursor information.
5657 (debug_method_add): Improved.
5658 (redisplay_internal): Record last cursor info only if not
5659 consider_all_windows_p.
5660
5661 * dispnew.c (update_window): Update top line after scrolling.
5662 (blank_row): Renamed from make_empty_enabled_row.
5663 (increment_glyph_row_buffer_positions): Increment positions
5664 in buffers, only.
5665
5666 * window.c (Fcoordinates_in_window_p): Add top-line to doc
5667 string.
5668
56691999-06-30 Gerd Moellmann <gerd@gnu.org>
5670
5671 * dispnew.c (update_window): Check that updated row is visible.
5672
5673 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
5674 top of window differently.
5675
5676 * xdisp.c (try_window_reusing_current_matrix): Don't do it
5677 if region is showing.
5678
5679 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
5680 avoiding matrix reallocation. Set window_vscroll in matrix.
5681
5682 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
5683
26901792
DL
5684 * xdisp.c (debug_method_add): New.
5685 (debug_redisplay_method): Removed.
5686 (try_window_reusing_current_matrix): Handle case where old
5687 window start is the same as new window start.
5688
5689 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
5690 an array instead of a pointer.
5691
26901792
DL
5692 * xfns.c (Fx_show_tip): Undo previous change.
5693
5694 * xterm.c (x_append_glyph): Clear glyph->u.val.
5695
5696 * dispextern.h (struct glyph): Increase size of face_id bit-field
5697 for CHAR_GLYPH to 12.
5698
56991999-06-29 Gerd Moellmann <gerd@gnu.org>
5700
5701 * xfaces.c (x_charset_registry): Make it externally visible.
5702
57031999-06-28 Gerd Moellmann <gerd@gnu.org>
5704
5705 * dispnew.c (update_window): Use mode_line_p flag of rows
5706 instead of WINDOW_WANTS_MODELINE_P.
5707
5708 * xterm.c (clear_mouse_face): Make externally visible.
5709
5710 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
5711
5712 * xterm.c (expose_line): Handle exposure of top-lines.
5713
5714 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
5715 if mouse_face_mouse_frame is null.
5716
5717 * xdisp.c (redisplay_window): If window is echo_area_window,
5718 and update_mode_line is set, update menubar and toolbar.
5719
5720 * dispnew.c (space_glyph): Set its charpos to -1.
5721 (update_frame_1): Ignore trailing padding spaces.
5722
5723 * xdisp.c (next_element_from_c_string): Set position of padding
5724 glyphs to -1.
5725
57261999-06-27 Gerd Moellmann <gerd@gnu.org>
5727
5728 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
5729 XQueryColor.
5730
5731 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
5732 (set_cursor_from_row): Skip over glyphs having a null object at
5733 the start of rows.
5734 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
5735 glyphs.
5736 (handle_invisible_prop): Compute next change only when needed.
5737 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
5738 line.
5739
57401999-06-26 Gerd Moellmann <gerd@gnu.org>
5741
5742 * xrdb.c (x_load_resources): Don't set resource for double-click
5743 time.
5744
5745 * xdisp.c (try_window_id): Return quickly if all changes are
5746 below the window's current matrix end.
5747
5748 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
5749 parameter.
5750
5751 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
5752 in desired not in current matrix.
5753 (try_window_reusing_current_matrix): Rotate matrices starting
5754 at start_vpos instead of 0.
5755
5756 * xterm.c (expose_window): Use window_text_bottom_y.
5757 (fast_find_position): Ditto.
5758
5759 * xdisp.c (redisplay_window): Use window_text_bottom_y.
5760 (try_window_reusing_current_matrix): Ditto.
5761 (get_last_unchanged_at_beg_row): Ditto.
5762 (init_iterator): Ditto.
5763
5764 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
5765 more row.
5766 (check_matrix_invariants): Use window_text_bottom_y.
5767 (update_window): Ditto.
5768 (scrolling_window): Ditto.
5769
5770 * xdisp.c (window_text_bottom_y): New.
5771
57721999-06-25 Gerd Moellmann <gerd@gnu.org>
5773
5774 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
5775 clearing mouse face.
5776 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
5777 event.xcrossing.focus is not set, and focus is in the menu bar,
5778 set focus frame as if event.xcrossing.focus were set.
5779
57801999-06-24 Gerd Moellmann <gerd@gnu.org>
5781
5782 * keyboard.c (make_lispy_event): Handle mouse on top lines.
5783 * keyboard.c (make_lispy_movement): Ditto.
5784
5785 * window.c (coordinates_in_window): Return 4 if on top line.
5786 (Fcoordinates_in_window_p): Return `top-line' if on top line.
5787
5788 * xdisp.c (window_box_height): Subtract top line height.
5789 (window_box): Add top line height to top y position if top line
5790 exists.
5791 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
5792 the top line row of the window. Set initial y-position to
5793 window's top line height plus delta.
5794 (start_display): Choose start glyph row depending on whether
5795 window has a top line.
5796 (try_scrolling): Take top line height into account for aggressive
5797 scrolling.
5798 (compute_window_start_on_continuation_line): Take top line into
5799 account.
5800 (redisplay_window): Ditto. If top line height has changed,
5801 trigger a new redisplay.
5802 (try_window_reusing_current_matrix): Take top line into account.
5803 (find_last_row_displaying_text): Ditto.
5804 (get_last_unchanged_at_beg_row): DItto.
5805 (try_window_id): Ditto.
5806 (compute_line_metrics): Ditto.
5807
5808 * dispnew.c (shift_glyph_matrix): Compute visible row height
5809 taking top line of window into account.
5810 (update_window): Update top line. If scrolling_window detects
5811 that all rows are equal, only set cursor.
5812 (update_window_line): Call after_update_window_line_hook if
5813 mode_line_p flag of rows has changed.
5814 (scrolling_window): Add parameter top_line_p. Return -1 if
5815 all rows are equal.
5816 (mode_line_string): Add parameter mode_line_p. Handle strings
5817 in top lines.
5818
5819 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
5820 (MATRIX_FIRST_TEXT_ROW): New.
5821 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
5822 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
5823 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
5824 (MATRIX_TOP_LINE_HEIGHT): New.
5825 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
5826 (CURRENT_TOP_LINE_HEIGHT): New.
5827 (DESIRED_TOP_LINE_HEIGHT): New.
5828 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
5829 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
5830 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
5831 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
5832
5833 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
5834 lines.
5835 (x_draw_row_bitmaps): Take top line into account when clearing
5836 bitmap area.
5837 (x_estimate_mode_line_height): Replacement for
5838 x_frame_mode_line_height.
5839 (x_get_glyph_string_clip_rect): Take top line into account.
5840 (x_clear_end_of_line): Ditto.
5841 (note_mode_line_highlight): Add parameter mode_line_p. Handle
5842 top lines.
5843 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
5844 (x_erase_phys_cursor): Take top line into account.
5845
5846 * xdisp.c (window_box_height): Subtract top line height if
5847 window wants a top line.
5848 (display_mode_lines): New.
5849 (redisplay_window): Call it.
5850 (display_mode_line): Add parameters face_id and format.
5851
5852 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
5853 (MATRIX_TOP_LINE_HEIGHT): New.
5854
5855 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
5856
5857 * term.c (estimate_mode_line_height): Renamed from
5858 frame_mode_line_height. Add parameter face_id.
5859 (estimate_mode_line_height_hook): Renamed from
5860 frame_mode_line_height_hook.
5861 (produce_special_glyphs_hook): Removed.
5862 (produce_glyphs_hook): Removed.
5863
58641999-06-23 Gerd Moellmann <gerd@gnu.org>
5865
5866 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
5867 (struct glyph_row): Add mode_line_p.
5868
5869 * xfaces.c (realize_basic_faces): Realize face `top-line'.
5870 (Qtop_line): New.
5871 (syms_of_xfaces): Initialize Qtop_line.
5872
5873 * dispextern.h (TOP_LINE_FACE_ID): New.
5874
5875 * buffer.c (init_buffer_once): Set default for
5876 top_line_format to nil.
5877 (init_buffer_once): Init top_line_format.
5878 (default-top-line-format): New.
5879 (top-line-format): New buffer-local variable.
5880
5881 * buffer.h: Add top_line_format.
5882
5883 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
5884
58851999-06-17 Dave Love <fx@gnu.org>
5886
5887 * xfns.c: Move the PNG section before the JPEG one to avoid
5888 problems surrounding setjmp.h/png.h on GNU/Linux.
5889
58901999-06-17 Gerd Moellmann <gerd@gnu.org>
5891
5892 * xfns.c (x_kill_gs_process): Don't free colors.
5893
58941999-06-17 Dave Love <fx@gnu.org>
5895
5896 * s/gnu-linux.h: Zap spurious ~.
5897
58981999-06-16 Gerd Moellmann <gerd@gnu.org>
5899
5900 * xfns.c (gif_load): Improve multi-image support.
5901
59021999-06-15 Gerd Moellmann <gerd@gnu.org>
5903
5904 * xfns.c (gif_load): Support multi-image files.
5905
5906 * Makefile.in (LIBGIF): Use libungif.
5907
5908 * configure.in (HAVE_GIF): Use libungif instead of libgif
5909 because the former doesn't contain patented compression code.
5910
5911 * xdisp.c (compute_window_start_on_continuation_line): Don't
5912 do it if line start is too far away from window start.
5913
59141999-06-14 Gerd Moellmann <gerd@gnu.org>
5915
5916 * buffer.c (init_buffer_once): Set buffer_local_flags for
5917 scroll_*_aggressively.
5918 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
5919 (init_buffer_once): Set defaults for these variables.
5920 (syms_of_buffer): Add default-scroll-*-aggressively.
5921
5922 * buffer.h (scroll_up_aggressively): New.
5923 (scroll_down_aggressively): New.
5924
5925 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
5926 a static PNG library.
5927
5928 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
5929 in case it's a static library.
5930
5931 * Makefile.in (ctagsfiles): Split so that files starting
5932 with an `x' are found before files starting with `w32'.
5933 (ctagsfiles1): New.
5934 (ctagsfiles2): New.
5935 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
5936
5937 * xdisp.c (compute_window_start_on_continuation_line): New.
5938 (redisplay_window): Use it.
5939 (INFINITY): New.
5940 (reseat_to_string): Use it.
5941 (hscroll_window_tree): Ditto.
5942 (compute_window_start_on_continuation_line): Ditto.
5943 (redisplay_window): Don't force display with a new window start.
5944
59451999-06-06 Gerd Moellmann <gerd@gnu.org>
5946
5947 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
5948 if widget not present.
5949
5950 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
5951
59521999-06-04 Gerd Moellmann <gerd@gnu.org>
5953
5954 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
5955 value of realize_basic_faces.
5956 (load_face_font_or_fontset): Store full font name in face.
5957 (realize_default_face): Use full font name.
5958
26901792
DL
5959 * xterm.c (x_produce_glyphs): Set member char_to_display.
5960 (x_append_glyph): Store char_to_display in glyphs.
5961
5962 * dispextern.h (struct it): Add char_to_display.
5963
5964 * xfns.c (x_set_font): Don't call face-set-after-frame-default
5965 if faces haven't been initialized.
5966 (Fx_create_frame): Call face-set-after-frame-default after
5967 faces have been initialized, and widget has been created.
5968
5969 * puresize.h (BASE_PURESIZE): Increased.
5970
59711999-06-01 Gerd Moellmann <gerd@gnu.org>
5972
5973 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
5974 (Finternal_set_lisp_face_attribute): If frame is t when
5975 :font attribute is set, use the selected frame.
5976 (clear_face_cache): Add parameter clear_fonts_p.
5977 (Fclear_face_cache): Add optional parameter thorougly.
5978
5979 * xfaces.c (face_numeric_value): Return -1 if symbol is not
5980 in table.
5981 (Fclear_face_cache): New.
5982 (choose_face_fontset_font): If fontset doesn't contain font
5983 pattern for the given charset, use CHARSET_ASCII.
5984 (Finternal_set_lisp_face_attribute): Fix handling of nil
5985 stipple attribute.
5986 (Finternal_set_lisp_face_attribute): Fix handling of changing
5987 font-related face attributes of the default face.
5988 (set_lface_from_font_name): Set only attributes that aren't
5989 specified.
5990
59911999-05-31 Gerd Moellmann <gerd@gnu.org>
5992
5993 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
5994 font support.
5995 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
5996 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
5997 scalable fonts depending on the setting of SCALABLE_FONTS.
5998 (first_font_matching): List more than one font to find the
5999 first non-scalable matching font.
6000 (sorted_font_list): Let x_face_list_fonts return scalable fonts
6001 depending on SCALABLE_FONTS.
6002 (better_font_p): New parameter compare_pt_p. If zero, don't
6003 compare point sizes of fonts.
6004 (exact_face_match_p) [SCALABLE_FONTS]: New.
6005 (build_scalable_font_name) [SCALABLE_FONTS]: New.
6006 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
6007 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
6008 (syms_of_xfaces): Add scalable-fonts-allowed.
6009
60101999-05-26 Gerd Moellmann <gerd@gnu.org>
6011
6012 * xfns.c (png_load): Let PNG lib handle gamma. Construct
6013 mask only if image contains simple transparency information.
6014 Otherwise, combine image with frame background color.
6015
6016 * configure.in (--with-png, HAVE_PNG): New.
6017
6018 * config.in (HAVE_PNG): New.
6019
6020 * Makefile.in: Add PNG library.
6021
6022 * xfns.c: Add PNG support.
6023
60241999-05-25 Gerd Moellmann <gerd@gnu.org>
6025
6026 * xdisp.c (init_xdisp): Initialize echo_area_message and
6027 previous_echo_area_message to nil.
6028
6029 * keyboard.c (read_char): Rename local variable echo_area_message
6030 because it shadows the global one.
6031
60321999-05-05 Gerd Moellmann <gerd@gnu.org>
6033
6034 * xterm.c (note_mode_line_highlight): Restructured.
6035
6036 * window.c (coordinates_in_window): Handle windows that don't have
6037 a mode line because their buffer's mode-line-format is nil.
6038 Recognize the mode line under x positions that correspond to
6039 flags areas and left scroll bar.
6040
60411999-05-02 Dave Love <fx@gnu.org>
6042
6043 * xterm.c (note_mouse_highlight): Separate help-echo processing
6044 from check on mouse-face so that it works generally.
6045
60461999-04-21 Gerd Moellmann <gerd@gnu.org>
6047
6048 * sound.c (Fplay_sound): Run hook play-sound-hook.
6049 (Qplay_sound_hook): New.
6050
60511999-04-20 Gerd Moellmann <gerd@gnu.org>
6052
6053 * xdisp.c (update_echo_area): Handle echo_area_message.
6054
60551999-04-19 Gerd Moellmann <gerd@gnu.org>
6056
6057 * editfns.c (Fmessage): Use message3.
6058
6059 * print.c (printchar): Set echo_area_message to nil.
6060 (strout): Ditto.
6061
6062 * minibuf.c (read_minibuf): Reset echo message strings to nil.
6063 (Fminibuffer_completion_help): Ditto.
6064
6065 * keyboard.c (cmd_error_internal): Set echo_areA_message.
6066 (command_loop_1): Test echo_areA_message.
6067 (read_char): Ditto.
6068 (record_menu_key): Set echo_area_message to nil.
6069 (Fexecute_extended_command): Test echo_area_message.
6070 (Fexecute_extended_command): Handle echo_area_message.
6071
6072 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
6073 is set.
6074
6075 * editfns.c (Fcurrent_message): If echo_area_message is set,
6076 return a substring of that string.
6077
6078 * dispnew.c (direct_output_for_insert): Test echo_area_message
6079 in addition to echo_area_glyphs.
6080 (set_window_cursor_after_update): Ditto.
6081 (update_frame_1): Ditto.
6082
6083 * alloc.c (Fgarbage_collect): Use message3_nolog to display
6084 old Lisp message string.
6085
6086 * xdisp.c (echo_area_message): New.
6087 (previous_echo_area_message): New.
6088 (syms_of_xdisp): Initialize and staticpro new variables.
6089 (echo_area_display): Display echo_area_message if set.
6090 (message2_nolog): Set echo_area_message and
6091 previous_echo_area_message.
6092 (echo_area_display): Set previous_echo_area_message.
6093 (redisplay_internal): Display echo area if echo_area_message
6094 or previous_echo_area_message are set.
6095 (redisplay_preserve_echo_area): Test/set echo_area_message and
6096 previous_echo_area_message.
6097 (redisplay_window): Test echo_area_message.
6098 (message3_nolog): New.
6099 (message3): New.
6100
6101 * editfns.c (Fformat): Add text properties to the result string
6102 from properties of the format string and properties of string
6103 arguments.
6104
6105 * textprop.c (text_property_list): New.
6106 (add_text_properties_from_list): New.
6107 (extend_property_ranges): New.
6108
61091999-03-29 Gerd Moellmann <gerd@gnu.org>
6110
6111 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
6112 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
6113 Use these symbols for the box face attribute instead of the
6114 removed ones.
6115
61161999-03-12 Gerd Moellmann <gerd@gnu.org>
6117
6118 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
6119 Correct wrong test for slant.
6120
61211999-03-10 Gerd Moellmann <gerd@gnu.org>
6122
6123 * xfaces.c: Use `unspecified' for unspecified face attributes,
6124 use t and nil for on/off.
6125
61261999-03-06 Gerd Moellmann <gerd@gnu.org>
6127
6128 * buffer.c (syms_of_buffer): Extend doc string of
6129 mode-line-format.
6130
6131 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
6132 (first_font_matching): New.
6133 (set_lface_from_font_name): Use it if font name is a pattern.
6134 (font_field_wildcard_p): Removed.
6135
6136 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
6137 Recompute visible height of rows.
6138
6139 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
6140 Don't accept non-strings for help-echo from overlays.
6141
61421999-03-04 Dave Love <fx@gnu.org>
6143
6144 * xterm.c (note_mouse_highlight): Check overlays for help-text
6145 property.
6146 (XTread_socket): Fix compiler warning.
6147
61481999-03-05 Gerd Moellmann <gerd@gnu.org>
6149
6150 * xterm.c (note_mouse_highlight): Don't restrict number of
6151 overlay to 10. Call overlays_at so that it doesn't try to
6152 extend the vector.
6153
6154 * xdisp.c (compute_line_metrics): Compute glyph row's visible
6155 height.
6156
6157 * dispnew.c (row_equal_p): Compare visible row height, only.
6158 (update_text_area): Draw whole line if visible heights of
6159 rows differ.
6160 (update_window_line): Call after_update_window_line_hook
6161 if visible row height has changed.
6162
6163 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
6164 (struct glyph_row): New member visible_height.
6165
6166 * xfaces.c (font_field_wildcard_p): New.
6167 (set_lface_from_font_name): Remove parameter force_p. Accept
6168 font names containing wildcards.
6169
61701999-03-04 Gerd Moellmann <gerd@gnu.org>
6171
6172 * xterm.c (x_after_update_window_line): Clear internal border
6173 when windows_or_buffers_changed.
6174
6175 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
6176 buffer has a nil mode_line_format.
6177
61781999-03-03 Gerd Moellmann <gerd@gnu.org>
6179
6180 * xterm.c (x_setup_relief_colors): Use either background color
6181 or specified color.
6182
6183 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
6184
6185 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
6186
6187 * xterm.c (x_draw_box_rect): New.
6188 (x_draw_glyph_string_box): Renamed from
6189 x_draw_glyph_string_relief. Call x_draw_box_rect.
6190
6191 * xfns.c (QCrelief): New.
6192 (syms_of_xfns): Initialize it.
6193
6194 * dispextern.h (struct glyph): Rename left_shadow_p to
6195 left_box_line_p, right_shadow_p to right_box_line_p.
6196 (MAX_RELIEF_THICKNESS): Removed.
6197 (struct it): Rename members having `relief' in their names
6198 to contain `box' instead.
6199
6200 * xfaces.c (realize_x_face): Handle new box attribute values.
6201 (QCrelief, Qbox): Removed.
6202 (QCshadow, QCcolor, Qraised, Qsunken): New.
6203 (syms_of_xfaces): Initialize new symbols.
6204
62051999-03-02 Gerd Moellmann <gerd@gnu.org>
6206
6207 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
6208
6209 * xfaces.c (LFACE_RELIEF): Removed.
6210 (merge_face_vector_with_property): Remove handling of `:relief'.
6211 (Finternal_set_lisp_face_attribute): Ditto.
6212 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
6213 (Finternal_get_lisp_face_attribute): Ditto.
6214 (realize_default_face): Ditto.
6215 (lface_hash): Don't compute hash from relief.
6216
6217 * dispextern.h (struct face): Replace member `relief' by
6218 `box_line_width'. Add member `box'.
6219 (face_box_type): New.
6220
6221 * xterm.c (x_produce_glyphs): If face has overline, add overline
6222 thickness + 1 to ascent.
6223
62241999-03-01 Gerd Moellmann <gerd@gnu.org>
6225
6226 * xterm.c (x_draw_glyph_string): Draw underline, overline,
6227 strike-through, and boxes.
6228 (x_draw_glyph_string_underline): Removed.
6229
6230 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
6231 (Qoverline, Qstrike_through, Qbox): New.
6232 (syms_of_xfaces): Define these symbols.
6233 (check_lface_attrs): Add checks for overline, strike-through,
6234 and box.
6235 (Finternal_set_lisp_face_attribute): Set new attributes.
6236 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
6237 (load_color): Handle new attributes.
6238 (realize_x_face): Ditto.
6239 (merge_face_vector_with_property): Ditto.
6240 (free_face_colors): Ditto.
6241 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
6242 (Finternal_get_lisp_face_attribute): Ditto.
6243 (Finternal_lisp_face_attribute_values): Ditto.
6244
6245 * dispextern.h (lface_attribute_index): Add enumerators for
6246 overstrike, strike-through, and box.
6247 (struct face): Add members for overline, strike-through, and
6248 box.
6249
62501999-02-17 Dave Love <fx@gnu.org>
6251
6252 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
6253 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
6254 files.
6255
62561999-02-16 Gerd Moellmann <gerd@gnu.org>
6257
6258 * keyboard.c (toolbar_items): Call access_keymap with third
6259 parameter 1, so that we don't get inherited toolbar item
6260 definitions.
6261
6262 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
6263 the window end vpos when in empty first line of window.
6264
62651999-02-15 Gerd Moellmann <gerd@gnu.org>
6266
6267 * xfaces.c (set_font_frame_param): New.
6268 (Finternal_set_lisp_face_attribute): Call it.
6269
6270Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
6271
6272 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
6273 Accept specifications of color for underline.
6274
62751999-02-13 Gerd Moellmann <gerd@gnu.org>
6276
6277 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
6278 `frame' is t, operate on face defaults for new frames. If it
6279 is nil, operate on the selected frame.
6280
62811999-02-12 Gerd Moellmann <gerd@gnu.org>
6282
6283 * dispnew.c (check_matrix_invariants): Put it in #if 0.
6284 (update_window): Put the call to check_matrix_invariants in #if 0.
6285
6286Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
6287
6288 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
6289 Remove definition of UNDERLINE_COLOR.
6290
6291Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
6292
6293 * xfaces.c (free_face_colors): Free the color for underline.
6294
6295 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
6296 to the GC.
6297
6298Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
6299
6300 * dispextern.h (UNDERLINE_COLOR): Defined.
6301 (struct face): Added two new members.
6302 underline_color, underline_defaulted_p.
6303
6304 * xfaces.c (merge_face_vector_with_property):
6305 (check_lface_attrs): Accept the string value for underline.
6306 (Finternal_set_lisp_face_attribute): Likewise.
6307
6308 * xfaces.c (load_color): Change the last argument type to enum
6309 lface_attribute_index from int. And addec code for underling coloring.
6310 (load_face_colors): Pass LFACE_*_INDEX to load_color.
6311
63121999-02-12 Gerd Moellmann <gerd@gnu.org>
6313
6314 * xfns.c (Fx_image_header): Removed.
6315
63161999-02-07 Gerd Moellmann <gerd@gnu.org>
6317
6318 * xterm.c: Don't include <bitmaps/gray>.
6319 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
6320
6321 * xfns.c (Fx_image_header): Add missing `\n\'.
6322 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
6323
63241999-02-01 Gerd Moellmann <gerd@gnu.org>
6325
6326 * xterm.c (x_scroll_bar_create): Set background pixel from
6327 specified scroll bar color.
6328 (x_scroll_bar_set_handle): Use scroll bar foreground color.
6329
6330 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
6331 (x_set_scroll_bar_background): Ditto.
6332
6333 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
6334
6335 * xfns.c (x_default_scroll_bar_color_parameter): New.
6336 (Fx_create_frame): Call it.
6337
63381999-01-31 Gerd Moellmann <gerd@gnu.org>
6339
6340 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
6341 values in x_output structure.
6342 (Qscroll_bar_foreground, Qscroll_bar_background): New.
6343 (syms_of_xfns): Initialize these symbols.
6344
6345 * xterm.h (struct x_output): Add scroll bar pixel colors.
6346
6347 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
6348 (x_set_scroll_bar_foreground): New.
6349 (x_set_scroll_bar_background): New.
6350
26901792
DL
63511999-01-12 Gerd Moellmann <gerd@gnu.org>
6352
6353 * xdisp.c (handle_single_display_prop): New.
6354 (handle_display_prop): Call it.
6355 (handle_raise_prop): Removed.
6356 (handle_height_prop): Removed.
6357 (handle_space_width_prop): Removed.
6358 (handle_face_prop): Remove handling of raised text.
6359 (handle_display_prop): Do it here.
6360
6361 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
6362 (RAISE_PROP_IDX): Removed.
6363 (HEIGHT_PROP_IDX): Removed.
6364 (SPACE_WIDTH_PROP_IDX): Removed.
6365
6366 * xdisp.c (Qdisplay): Replaces Qglyph.
6367 (handle_display_prop): Formerly handle_glyph_prop.
6368
63691999-01-11 Gerd Moellmann <gerd@gnu.org>
6370
6371 * xdisp.c (reseat_to_string): Set position in display vector to -1.
6372 (handle_stop): Set position in display vector to -1. Don't
6373 check overlay strings when set up to deliver characters from a
6374 display vector.
6375 (set_iterator_to_next): At the end of a run of characters from a
6376 display vector, check whether the display vector display replaces
6377 the display of a character.
6378
63791999-01-05 Gerd Moellmann <gerd@gnu.org>
6380
6381 * xfaces.c (init_frame_faces): Don't realize faces if frame's
6382 X window hasn't been created yet.
6383
63841998-12-06 Gerd Moellmann <gerd@gnu.org>
6385
6386 * sound.c: New.
6387
63881998-12-04 Gerd Moellmann <gerd@gnu.org>
6389
6390 * config.in (HAVE_SOUND): New.
6391
6392 * emacs.c (main): Call syms_of_sound and init_sound.
6393
6394 * Makefile.in (obj): Add sound.o.
6395
6396 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
6397
6398 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
6399 (HAVE_SYS_SOUNDCARD_H): New.
6400
64011998-12-03 Gerd Moellmann <gerd@gnu.org>
6402
6403 * buffer.h (struct buffer): indicate_empty_lines renamed from
6404 indicate_zv_lines.
6405
6406 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
6407 (default-indicate-zv-lines): Likewise.
6408
6409 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
6410 to indicate_empty_line_p.
6411
6412 * xdisp.c (reseat_at_next_visible_line_start): Reset method
6413 to next_element_from_buffer.
6414
6415 * frame.c (make_frame): Set n_current_toolbar_items to 0.
6416
6417 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
6418 and `N-'.
6419
6420 * xfns.c (xbm_scan): New.
6421 (xbm_read_hexint): Removed.
6422 (xbm_read_bitmap_file_data): Use xbm_scan.
6423
6424 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
6425
64261998-12-02 Gerd Moellmann <gerd@gnu.org>
6427
6428 * xfns.c (xbm_read_hexint): New.
6429 (xbm_read_bitmap_file_data): New.
6430 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
6431 instead of XReadBitmapFileData.
6432
6433 * xdisp.c (handle_raise_prop): Compute voffset from current font.
6434
6435 * xfaces.c (face_with_height): New.
6436
6437 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
6438 (eval_form): Renamed from eval_mode_element.
6439 (handle_face_prop): Use it.
6440 (Qheight): Replaces Qsmaller.
6441 (handle_height_prop): Replaces handle_smaller_prop.
6442 (handle_face_prop): If iterator's font_height is not an
6443 integer, evaluate it to get the font height to use.
6444
6445 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
6446 (struct it): Use `font_height' instead of `smaller'.
6447
64481998-12-01 Gerd Moellmann <gerd@gnu.org>
6449
6450 * xdisp.c (reseat_1): New.
6451 (reseat): Call it.
6452 (move_it_vertically_backward): Ditto.
6453 (redisplay_window): Don't abort when cursor not found in recenter.
6454
64551998-11-30 Gerd Moellmann <gerd@gnu.org>
6456
6457 * xdisp.c (reseat_at_next_visible_line_start): When not
6458 currently delivering display elements from the current buffer,
6459 restore buffer position first.
6460 (init_from_display_pos): Don't set IT's position from the
6461 position passed to this function.
6462
64631998-11-28 Gerd Moellmann <gerd@gnu.org>
6464
6465 * config.in (PROTO): Removed.
6466
6467 * xterm.h: Change PROTO to P_.
6468
64691998-11-26 Gerd Moellmann <gerd@gnu.org>
6470
6471 * xterm.c (take_vertical_position_into_account): New.
6472 (x_produce_image_glyph): Call it.
6473 (x_produce_stretch_glyph): Ditto.
6474 (x_produce_glyphs): Ditto.
6475 (x_fill_glyph_string): Adjust base line for glyph's voffset.
6476 (x_fill_composite_glyph_string): Ditto.
6477 (x_fill_image_glyph_string): Ditto.
6478 (x_fill_stretch_glyph_string): Ditto.
6479
6480 * xdisp.c (display_line): Always compute row height from
6481 max_ascent and max_descent.
6482
6483 * dispextern.h (struct glyph): Add voffset.
6484 (struct it): Replace height by descent, max_height by max_descent.
6485
6486 * xterm.c (x_append_glyph): Set voffset
6487 (x_append_stretch_glyph): Ditto.
6488 (x_produce_image_glyph): Ditto.
6489 (x_produce_glyphs): Take voffset into account.
6490 (x_produce_image_glyph): Ditto.
6491 (x_produce_stretch_glyph): Ditto.
6492
6493 * dispextern.h (struct it): Add voffset.
6494 * xdisp.c (push_it): Save voffset.
6495 (pop_it): Restore it.
6496
6497 * xdisp.c (it_props): Add entry for `raise'.
6498 (handle_raise_prop): New.
6499
6500 * dispextern.h (RAISE_PROP_IDX): New.
6501
6502 * xdisp.c (Qraise): New.
6503 (syms_of_xdisp): Define Qraised.
6504
6505 * xterm.c (x_scroll_bar_move): Clear to the left and right
6506 of toolkit scroll bars differently.
6507 (x_scroll_bar_move): Removed.
6508 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
6509
6510 * dispextern.h: Make it compilable --with-x=no.
6511 * alloc.c: Ditto.
6512 * emacs.c: Ditto.
6513 * dispnew.c: Ditto.
6514 * keyboard.c: Ditto.
6515 * term.c: Ditto.
6516 * xdisp.c: Ditto.
6517 * xfaces.c: Ditto.
6518 * xfns.c: Ditto.
6519 * xmenu.c: Ditto.
6520
65211998-11-25 Gerd Moellmann <gerd@gnu.org>
6522
6523 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
6524
65251998-11-24 Gerd Moellmann <gerd@gnu.org>
6526
6527 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
6528 update slider size, only.
6529 (xm_scroll_callback): Set dragging member of the scroll bar.
6530 (xt_action_hook): Reset last_scroll_bar_part.
6531 (XTredeem_scroll_bar): Reset bar->dragging to nil.
6532
26901792
DL
6533 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
6534 window on newly created frames that don't have one.
6535
65361998-11-23 Gerd Moellmann <gerd@gnu.org>
6537
6538 * xdisp.c (restore_overlay_strings): Removed.
6539 (restore_dpvec): Removed.
6540 (init_from_display_pos): Inline both functions above.
6541
6542 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
6543 (parse_image_spec): Handle it.
6544 (xbm_format): Use it.
6545 (xpm_format): Ditto.
6546 (pbm_format): Ditto.
6547 (jpeg_format): Ditto.
6548 (tiff_format): Ditto.
6549 (gif_format): Ditto.
6550 (gs_format): Ditto.
6551
6552 * xdisp.c (set_window_cursor): Removed.
6553 (redisplay_internal): Case cursor motion in cursor line of
6554 selected window; use set_cursor_from_row.
6555
65561998-11-22 Gerd Moellmann <gerd@gnu.org>
6557
6558 * widget.c (EmacsFrameSetCharSize): Take widget's border width
6559 into account.
6560
65611998-11-21 Gerd Moellmann <gerd@gnu.org>
6562
6563 * xterm.c (expose_frame): Redraw menu bar window.
6564
6565 * xdisp.c (display_menu_bar): Record hpos instead of x-position
6566 in menu item.
6567
6568 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
6569 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
6570
6571 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
6572 to determine vertical_scroll_bar_extra.
6573 (EmacsFrameSetCharSize): Ditto.
6574 * xfns.c (x_figure_window_size): Ditto.
6575
6576 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
6577 (x_draw_bitmap): Ditto.
6578
6579 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
6580 * xfaces.c (realize_basic_faces): Realize it.
6581
65821998-11-20 Gerd Moellmann <gerd@gnu.org>
6583
6584 * xmenu.c (xmenu_show): Add workaround for remaining button grab
6585 under LessTif Use the widget of the frame as parent for the
6586 menu, again.
6587
65881998-11-19 Gerd Moellmann <gerd@gnu.org>
6589
6590 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
6591 When EnterNotify, don't generate a mouse movement event if
6592 notification is from a busy-cursor child window.
6593
6594 * xterm.h (struct x_output): Add busy_window, remove cursor.
6595
6596 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
6597 Use a transparent window to display the busy-cursor.
6598 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
6599
66001998-11-17 Gerd Moellmann <gerd@gnu.org>
6601
6602 * xdisp.c (check_window_end): New, for debugging.
6603 (CHECK_WINDOW_END): New.
6604 (try_window_id): Use it.
6605
6606 * xterm.c (process_expose_from_menu): Return int.
6607
6608 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
6609 TOOLBAR_EVENT events in last_nonmenu_event.
6610
66111998-11-16 Gerd Moellmann <gerd@gnu.org>
6612
6613 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
6614 window end isn't reliable, so set window_end_valid to nil.
6615 (redisplay_internal): If overlay arrow has changed, set
6616 windows_or_buffers_changed to redisplay thoroughly.
6617
6618 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
6619 necessary.
6620
6621 * xfns.c (file_dialog_cb): New.
6622 (Fx_file_dialog): New.
6623 * fileio.c (Fread_file_name): Call it.
6624
6625 * xrdb.c (x_load_resources): Add default resoures for file
6626 selection dialog.
6627
66281998-11-14 Gerd Moellmann <gerd@gnu.org>
6629
6630 * xterm.c (note_mouse_highlight): Don't highlight when popup
6631 is active.
6632
26901792
DL
6633 * keyboard.c (timer_check): Inhibit busy cursor around calls to
6634 timer-event-handler. This busy cursor tends to be anoying if
6635 fontifying stealthily.
6636
6637 * dispnew.c (direct_output_for_insert): Give up if current row
6638 contains trailing whitespace.
6639
66401998-11-13 Gerd Moellmann <gerd@gnu.org>
6641
6642 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
6643
6644 * xdisp.c (handle_fontified_prop): New.
6645 (Vfontification_functions): New.
6646 (Qfontification_functions): New.
6647 (it_props): Add handle_fontified_prop.
6648
66491998-11-12 Gerd Moellmann <gerd@gnu.org>
6650
6651 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
6652 Otherwise, under LessTif, after the popup has gone, all button
6653 press events come in for the frame's widget, and release events
6654 come in for the edit_widget.
6655 * xterm.c (XTread_socket): Remove workaround for that problem.
6656 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
6657 XmScrollBarSetValues.
6658 (SET_SAVED_MENU_EVENT): Give it statement form.
6659
26901792
DL
6660 * xfaces.c (display_message): If waiting_for_input, don't display
6661 the message.
6662
6663 * window.c (scroll_command): If not acting on current_buffer,
6664 make redisplay consider all windows.
6665
6666 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
6667
6668 * xdisp.c (handle_glyph_prop): Set it->object for images to
6669 the object having the glyph property.
6670
6671 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
6672 invisible.
6673
66741998-11-11 Gerd Moellmann <gerd@gnu.org>
6675
6676 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
6677 (x_term_init): Create the gray pixmap.
6678 (x_setup_relief_color): Use it.
6679 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
6680 internal border at the top of a frame.
6681 (x_init_glyph_string): Likewise.
6682 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
6683 full-width lines.
6684 (XTflash): Don't flash the toolbar window.
6685
6686 * xterm.c (XTread_socket): Workaround for LessTif popup menus
6687 in case of ButtonPress events.
6688
66891998-11-10 Gerd Moellmann <gerd@gnu.org>
6690
6691 * xrdb.c (x_load_resources): Add grey background colors as
6692 defaults for menus, scroll bars, and dialogs.
6693
6694 * insdel.c (prepare_to_modify_buffer): Move setting
6695 windows_or_buffers_changed from modify_region here.
6696
6697 * xfns.c (Fx_show_tip): Inhibit redisplay.
6698 (Fx_hide_tip): Ditto.
6699 (Fx_image_header): New.
6700
67011998-11-09 Gerd Moellmann <gerd@gnu.org>
6702
6703 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
6704 when clearing current window matrices.
6705
67061998-11-08 Gerd Moellmann <gerd@gnu.org>
6707
6708 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
6709 position from a string position. Use the right end position
6710 if the property spans a whole overlay string.
6711
67121998-11-07 Gerd Moellmann <gerd@gnu.org>
6713
6714 * xmenu.c (menubar_selection_callback): Remove workaround for
6715 Lesstif not calling XmNpopdownCallback because it doesn't
6716 handle the case where users don't select any menu item.
6717
26901792
DL
6718 * insdel.c (modify_region): Set windows_or_buffers_changed.
6719
6720 * buffer.c (set_buffer_internal): Don't set
6721 windows_or_buffers_changed.
6722
26901792
DL
6723 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
6724
26901792
DL
6725 * xmenu.c (menubar_selection_callback): Add workaround for
6726 Lesstif not calling XmNpopdownCallback.
6727
6728 * xdisp.c (eval_mode_element): New.
6729 (eval_mode_handler): New.
6730 (display_mode_element): Use eval_mode_element.
6731
6732 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
6733 Remove code looking at text props of default value.
6734
6735 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
6736
26901792
DL
67371998-11-06 Gerd Moellmann <gerd@gnu.org>
6738
6739 * xmenu.c (single_submenu): Set button_type of menu to
6740 BUTTON_TYPE_NONE.
6741 (single_submenu): Likewise for panes and menu items.
6742 (set_frame_menubar): Set button_type of menu bar to none.
6743 (xmenu_show): Likewise.
6744 (single_submenu): Set widget values selected slot.
6745 (xmenu_show): Likewise.
6746
26901792
DL
6747 * xmenu.c (push_menu_item): Add parameters `type' and
6748 `selected'. Store it in menu_items.
6749 (MENU_ITEMS_ITEM_TYPE): New.
6750 (MENU_ITEMS_ITEM_SELECTED): New.
6751 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
6752
6753 * xfns.c (clear_image_cache): Get the current time, before
6754 doing anything.
6755 (cache_image): Set prev pointer of next image.
6756 (clear_image_cache): Clear current matrices if any image was
6757 freed.
6758
6759 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
6760
6761 * xfns.c (x_set_cursor): New.
6762 (Fx_display_busy_cursor): New.
6763 (Fx_undisplay_busy_cursor): New.
6764
6765 * xterm.h (struct x_output): Add busy_cursor.
6766
6767 * xfns.c (Vx_busy_pointer_shape): New.
6768 (x_set_mouse_color): Create busy cursor.
6769
6770 * process.c (wait_reading_process_input): Show and hide busy
6771 cursor.
6772
6773 * keyboard.c (command_loop_1): Display busy cursor.
6774
6775 * eval.c (Fsignal): Hide busy cursor.
6776
6777 * buffer.c (set_buffer_internal): Don't set
6778 windows_or_buffers_changed.
6779
6780 * xterm.c (redo_mouse_highlight): New.
6781
67821998-11-04 Gerd Moellmann <gerd@gnu.org>
6783
26901792
DL
6784 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
6785 (x_build_heuritic_mask): New.
6786 (lookup_image): Call it.
6787
6788 * xterm.c (note_toolbar_highlight): Always set up help_echo.
6789 (previous_help_echo): New.
6790 (XTread_socket): Generate help event with nil message when
6791 leaving a region with help-echo.
6792 (note_mouse_highlight): Handle `help-echo' over text.
6793 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
6794 CirculateRequest.
6795 (clear_mouse_face): Don't clear if tooltip is shown.
6796 (XTread_socket): Redo mouse-highlight after tooltip is gone.
6797 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
6798
6799 * keyboard.c (Vshow_help_function): New.
6800 (read_char): Use it.
6801
68021998-11-03 Gerd Moellmann <gerd@gnu.org>
6803
6804 * xfns.c (x_create_tip_frame): New.
6805 (Fx_show_tip): New.
6806 (Fx_hide_tip): New.
6807
6808 * xterm.c (x_destroy_window): Handle case that we don't have
6809 a widget.
6810
6811 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
6812 to full_width_p. Add internal_border_p.
6813
68141998-11-02 Gerd Moellmann <gerd@gnu.org>
6815
6816 * xterm.c (note_mode_line_highlight): Check the charpos of
6817 the glyph under the mouse pointer before accessing text
6818 properties at that position.
6819
68201998-11-01 Gerd Moellmann <gerd@gnu.org>
6821
6822 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
6823
6824 * xdisp.c (auto-raise-toolbar-buttons): New.
6825 (build_desired_toolbar_string): Handle the flag.
6826 (toolbar-button-margin): New.
6827 (toolbar-button-relief): New.
6828 (build_desired_toolbar_string): Use margin and relief.
6829
6830 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
6831 for FreeBSD.
6832 (note_mode_line_highlight): New.
6833 (note_mouse_highlight): Call it.
6834
68351998-10-31 Gerd Moellmann <gerd@gnu.org>
6836
6837 * s/freebsd.h (NARROWPROTO): New.
6838
6839 * xdisp.c (display_string): New parameter face_string.
6840 (display_mode_element): When displaying a symbol with a string
6841 value, use text properties from the symbol's default value, maybe.
6842
6843 * xrdb.c (x_load_resources): Add font defaults for menus and
6844 dialogs.
6845
68461998-10-30 Gerd Moellmann <gerd@gnu.org>
6847
6848 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
6849
68501998-10-29 Gerd Moellmann <gerd@gnu.org>
6851
6852 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
6853 produced for characters with codes < 32 under certain
6854 circumstances.
6855
6856 * xdisp.c (redisplay_window): Handle values of PT in front
6857 of invisible, intangible text.
6858 (try_window_id): Set overlay_arrow_seen to zero before
6859 displaying lines.
6860 (display_mode_element): Assign to glyphs written for a mode
6861 line spec `%x' as object the Lisp format string, as position
6862 the position of the `%' in that string.
6863 (display_string): If displaying a C string, optionally get
6864 the face to use from a Lisp string.
6865
6866 * xterm.c (expose_window_tree): Include mode line height.
6867
6868 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
6869
68701998-10-27 Gerd Moellmann <gerd@gnu.org>
6871
6872 * xterm.c (note_mouse_highlight): Change mouse pointer shape
6873 over mode line.
6874
68751998-10-26 Gerd Moellmann <gerd@gnu.org>
6876
6877 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
6878
6879 * xdisp.c (redisplay_window): If mode line height has changed,
6880 arrange for a thorough immediate redisplay using the correct mode
6881 line height.
6882 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
6883
6884 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
6885 (CURRENT_MODE_LINE_HEIGHT): New.
6886 (DESIRED_MODE_LINE_HEIGHT): New.
6887
6888 * keyboard.c (make_lispy_event): Add string and string position
6889 info to mouse-click events.
6890 (read_key_sequence): Handle `local-map' property of mode line
6891 strings.
6892
6893 * keyboard.h (POSN_STRING): New.
6894
68951998-10-25 Gerd Moellmann <gerd@gnu.org>
6896
6897 * dispnew.c (mode_line_string): Mew.
6898
6899 * xterm.c (xt_action_hook): New.
6900 (x_create_toolkit_scroll_bar): Add action hook.
6901 (xm_scroll_callback): Implement dragging.
6902
6903 * keyboard.c (Qend_scroll): New.
6904 (scroll_bar_parts): Add it.
6905
6906 * termhooks.h (scroll_bar_end_scroll): New.
6907
6908 * xterm.c (XTread_socket): Bug fix.
6909
69101998-10-24 Gerd Moellmann <gerd@gnu.org>
6911
6912 * xdisp.c (redisplay_window): Finish scroll bars after
6913 redisplaying toolbar.
6914
6915 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
6916 (syms_of_keyboard): Add Qbottom.
6917
6918 * termhooks.h (scroll_bar_to_top): New.
6919 (scroll_bar_to_bottom): New.
6920
6921 * xdisp.c (redisplay_window): Always resize toolbar window if
6922 auto_resize_toolbar_p is non-zero.
6923 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
6924 (window_box): New.
6925 (window_box_height): New.
6926 (window_box_width): New.
6927 (window_box_left): New.
6928 (window_box_right): New.
6929 (window_box_edges): New.
6930
69311998-10-23 Gerd Moellmann <gerd@gnu.org>
6932
6933 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
6934 XawScrollbarSetThumb in FreeBSD.
6935 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
6936 to true.
6937
6938 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
6939 is out of range.
6940
6941 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
6942 (x_term_init): Initialize it.
6943
6944 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
6945
6946 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
6947 cursor.
6948
69491998-10-22 Gerd Moellmann <gerd@gnu.org>
6950
6951 * keyboard.c (make_lispy_event): Handle scroll_bar_click
6952 differently when using toolkit scroll bars.
6953
6954 * xterm.c (x_send_scroll_bar_event): New.
6955 (x_scroll_bar_to_input_event): New.
6956 (xaw3d_scroll_callback): New.
6957 (xaw3d_jump_callback): New.
6958 (xm_scroll_callback): New.
6959 (x_toolkit_scroll_p): New.
6960 (XTread_socket): Handle scroll bar client message.
6961 (x_term_init): Initialize Xatom_Scrollbar.
6962 (x_scroll_bar_create): Set cursor.
6963 (xm_scroll_callback):
6964 (x_create_toolkit_scroll_bar): New.
6965 (x_set_toolkit_scroll_bar_thumb): New.
6966 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
6967 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
6968
6969 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
6970
69711998-10-21 Gerd Moellmann <gerd@gnu.org>
6972
6973 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
6974 (XTread_socket): Don't handle mouse button events for scroll bars
6975 if using toolkit scroll bars.
6976 (XTset_vertical_scroll_bar): Set thumb size and position for
6977 Athena scroll bar.
6978
6979 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
6980
6981 * xterm.c (XTread_socket): Dispatch expose event to widget
6982 if using toolkit scroll bars.
6983 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
6984 (x_scroll_bar_create): Create and show a scroll bar widget
6985 if using toolkit scroll bars.
6986 (x_scroll_bar_move): Handle tookit scroll bars.
6987
6988 * Makefile.in (LIBW): Use Xaw3d if present.
6989
6990 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
6991 (HAVE_XAW3D): New.
6992
6993 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
6994 (HAVE_XAW3D): New.
6995
6996 * xterm.c (XTset_vertical_scroll_bar): Correct position of
6997 right vertical scroll bar.
6998
69991998-10-20 Gerd Moellmann <gerd@gnu.org>
7000
7001 * xfns.c (xpm_load): Support reading XPM images from string
7002 buffers containing data in the same format as an XPM file.
7003 Support `:color-symbols'.
7004 (xpm_format): Add `:data'.
7005 (xpm_keyword_index): Add XPM_DATA.
7006 (syms_of_xfns): Add `:color-symbols'.
7007 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
7008 (xpm_valid_color_symbols_p): New.
7009 (xpm_image_p): Call it.
7010
7011 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
7012 attribute to the image if item is not enabled.
7013
7014 * xfns.c (x_laplace): New.
7015 (x_laplace_read_row): New.
7016 (x_laplace_write_row): New.
7017 (lookup_image): Handle common image attributes here. New
7018 attribute `:algorithm'.
7019
7020 * xfaces.c (clear_face_cache): Call clear_image_cache.
7021
7022 * xterm.c (x_inverted_image_mask): Removed.
7023 (x_draw_image_foreground_1): New.
7024 (x_draw_image_glyph_string): Draw images with mask to a temporary
7025 pixmap to reduce flickering.
7026
7027 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
7028 (display_toolbar_line): Remove parameter `margin'.
7029
70301998-10-19 Gerd Moellmann <gerd@gnu.org>
7031
7032 * xdisp.c (toolbar_lines_needed): New.
7033 (auto-resize-toolbars): New.
7034
7035 * xfns.c (cache_image): Correct call to xrealloc.
7036
7037 * dispnew.c (Fset_toolbar_height): Removed.
7038
7039 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
7040 FRAME_MENU_BAR_LINES.
7041
7042 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
7043 instead of FRAME_MENU_BAR_LINES.
7044 (check_frame_size): Ditto.
7045
7046 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
7047 instead of FRAME_MENU_BAR_LINES.
7048 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
7049 (build_frame_matrix): Ditto.
7050 (change_frame_size_1): Ditto.
7051
7052 * frame.h (FRAME_TOOLBAR_LINES): New.
7053 (FRAME_TOP_MARGIN): New.
7054
7055 * window.c (struct save_window_data): Add frame_toolbar_lines.
7056 (Fset_window_configuration): Handle toolbar lines.
7057 (Fcurrent_window_configuration): Save toolbar lines.
7058
7059 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
7060
7061 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
7062
7063 * frame.h (struct frame): Rename top_margin to toolbar_lines.
7064
7065 * xfns.c (x_frame_parms): Add `toolbar-lines'.
7066 (x_set_toolbar_lines): New.
7067
7068 * keyboard.c (cmd_error_internal): Bug fix.
7069
7070 * xterm.c: Remove double include of syssignal.h.
7071
70721998-10-18 Gerd Moellmann <gerd@gnu.org>
7073
7074 * xterm.c (x_toolbar_item): New.
7075 (x_handle_toolbar_click): Use it.
7076 (note_toolbar_highlight): Use it.
7077
7078 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
7079 and toolbar_items_vectors.
7080
7081 * xterm.c (help_echo): New.
7082 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
7083 (x_set_glyph_string_gc): Handle them.
7084 (x_after_update_window_line): Don't do anything in pseudo-windows.
7085 (x_produce_image_glyph): Take image margin and face relief into
7086 account.
7087 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
7088 (x_draw_glyph_string_background): Optimize case when face has
7089 relief.
7090 (x_setup_relief_color): Take frame instead of glyph string
7091 parameter.
7092 (x_draw_relief_rect): New.
7093 (x_draw_glyph_string_relief): Call it.
7094 (x_draw_image_glyph_string_foreground): Handle margin and image
7095 relief.
7096 (x_draw_image_glyph_string_background): Ditto.
7097 (expose_frame): Redraw toolbar window.
7098 (expose_window): Don't draw cursor for pseudo-windows.
7099 (x_y_to_hpos_vpos): Handle pseudo-windows.
7100 (frame_to_window_pixel_xy): New.
7101 (note_mouse_highlight): Call note_toolbar_highlight.
7102 (x_handle_toolbar_click): New.
7103 (note_toolbar_highlight): New.
7104 (show_mouse_face): Change int parameter `hl' to parameter of
7105 type enum draw_glyphs_face. Handle image highlighting.
7106 (XTread_socket): Return a HELP_EVENT input event if help_echo is
7107 non-nil. Use x_handle_toolbar_click.
7108
7109 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
7110
7111 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
7112 IMAGE_BOOL_VALUE.
7113 (parse_image_spec): Handle them.
7114 (image_spec_value): Additional parameter found.
7115 (free_image): Remove image from the vector `images' of the
7116 image cache.
7117 (clear_image_cache): Additional parameter force_p.
7118 (Fclear_image_cache): New.
7119 (x_find_image_file): New.
7120 (xbm_load): Handle `:margin' and `:relief'. Use
7121 x_find_image_file.
7122 (xpm_load): Likewise.
7123 (pbm_load): Likewise.
7124 (jpeg_load): Likewise.
7125 (tiff_load): Likewise.
7126 (gif_load): Likewise.
7127
7128 * keyboard.c (Qhelp_echo): New symbol.
7129 (read_char): Handle `toolbar' and `help_echo' events.
7130 (kbd_buffer_get_event): Handle HELP_ECHO input event.
7131 (make_lispy_event): Handle TOOLBAR_EVENT.
7132 (toolbar_items): New.
7133 (process_toolbar_item): New.
7134 (PROP): New.
7135 (init_toolbar_items): New.
7136 (append_toolbar_item): New.
7137 (read_char_x_menu_prompt): Handle `toolbar' event.
7138 (read_key_sequence): Ditto.
7139
7140 * xfaces.c (Qtoolbar): New.
7141 (realize_basic_faces): Realize `toolbar' face.
7142 (face_at_string_position): Remove parameter modeline_p, add
7143 base_face_id.
7144
7145 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
7146 to read data.
7147
71481998-10-17 Gerd Moellmann <gerd@gnu.org>
7149
7150 * xdisp.c (init_iterator): Replace parameter modeline_p with
7151 base_face_id.
7152 (next_element_from_string): Call get_next_display_element
7153 recursively after handling text properties.
7154 (prepare_menu_bars): Call update_toolbar.
7155 (update_toolbar): New.
7156 (build_desired_toolbar_string): New.
7157 (display_toolbar_line): New.
7158 (redisplay_toolbar): New.
7159 (toolbar_item_info): New.
7160 (redisplay_window): Call redisplay_toolbar.
7161 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
7162
7163 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
7164 window.
7165 (clear_desired_matrices): Ditto.
7166 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
7167 (free_glyphs): Free matrices of toolbar window.
7168 (update_frame): Update toolbar window.
7169 (change_frame_size_1): Take toolbar into account.
7170 (Fset_toolbar_height): New.
7171
7172 * dispextern.h (struct it): Remove member modeline_p, add
7173 base_face_id.
7174 (struct image): Add members relief and margin.
7175 (IMAGE_ASCENT): Include margin in height.
7176
71771998-10-14 Gerd Moellmann <gerd@gnu.org>
7178
7179 * xfns.c (Fclear_image_cache): New.
7180
7181 * xfaces.c (realize_basic_faces): Realize toolbar face.
7182 (face_at_string_position): Remove parameter modeline_p, add
7183 base_face_id.
7184
7185 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
7186
71871998-10-13 Gerd Moellmann <gerd@gnu.org>
7188
7189 * keyboard.c (syms_of_keyboard): Intern `:help'.
7190
71911998-10-12 Gerd Moellmann <gerd@gnu.org>
7192
7193 * xterm.c (note_toolbar_highlight): New.
7194 (note_mouse_highlight): Call it.
7195
7196 * window.c (window_from_coordinates): Additional parameter toolbar_p.
7197 (coordinates_in_window): Handle toolbar window.
7198
7199 * keyboard.c (toolbar_items): New.
7200 (process_toolbar_item): New.
7201 (parse_toolbar_item): New.
7202 (init_toolbar_items): New.
7203 (append_toolbar_item): New.
7204
7205 * dispextern.h (enum toolbar_item_idx): New.
7206 (enum toolbar_item_image): New.
7207
7208 * frame.h (struct frame): Add toolbar-related members.
7209
7210 * xfaces.c (face_at_string_position): Remove assertion that
7211 current_buffer == window's buffer. This is not the case when
7212 called for the toolbar window.
7213
7214 * frame.c (make_frame): Initialize toolbar members.
7215
7216 * alloc.c (mark_object): Mark toolbar data of frames.
7217
7218 * frame.h (struct frame): Add toolbar-related members
7219 toolbar_window, desired_toolbar_items, current_toolbar_items,
7220 desired_toolbar_string, current_toolbar_string,
7221 n_desired_toolbar_items, n_current_toolbar_items. Add
7222 window_height.
7223
7224 * xterm.c (x_after_update_window_line): Don't draw bitmap
7225 areas for pseudo-windows.
7226 (expose_frame): Handle toolbar window.
7227 (expose_window): Don't do cursor stuff for pseudo-windows.
7228
7229 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
7230
72311998-10-11 Gerd Moellmann <gerd@gnu.org>
7232
7233 * frame.c (make_frame): Initialize toolbar_window.
7234
7235 * alloc.c (mark_object): Make the toolbar window.
7236
7237 * dispnew.c (update_frame): Update frame's toolbar_window.
7238 (clear_current_matrices): Likewise.
7239 (clear_desired_matrices): Likewise.
7240 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
7241 (free_glyphs): Free the toolbar window and its matrices.
7242
7243 * frame.h (struct frame): Add toolbar_window.
7244
7245 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
7246 with relief.
7247
72481998-10-10 Gerd Moellmann <gerd@gnu.org>
7249
7250 * dispnew.c (buffer_posn_from_coords): Don't screw up if
7251 window start is not in the range BEGV..ZV.
7252
72531998-10-09 Gerd Moellmann <gerd@gnu.org>
7254
7255 * xdisp.c (try_scrolling): Experimentally handle the case
7256 that scroll-preserve-screen-position is set to `always'.
7257
7258 * window.c (Vscroll_preserve_screen_position): Replacement for
7259 scroll_preserve_screen_position.
7260
72611998-10-08 Gerd Moellmann <gerd@gnu.org>
7262
7263 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
7264 doesn't like it.
7265 * xdisp.c: Ditto.
7266
7267 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
7268
72691998-10-06 Gerd Moellmann <gerd@gnu.org>
7270
7271 * minibuf.c (Fminibuffer_complete_word): Fix computation of
7272 i_byte when prompts are inserted into minibuffers.
7273
7274 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
7275 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
7276 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
7277
72781998-10-04 Gerd Moellmann <gerd@gnu.org>
7279
7280 * xdisp.c (make_cursor_line_fully_visible): New.
7281 (try_scrolling): New.
7282 (redisplay_window): Move scrolling code to try_scrolling.
7283 (make_cursor_line_fully_visible): Handle case of window too small
7284 to show a single line.
7285 (redisplay_window): Case forced window start---use
7286 make_cursor_line_fully_visible.
7287 (redisplay_window): Case cursor movement via current matrix.
7288 If ending up on a partially visible line, make it fully visible
7289 instead of recentering.
7290 (try_scrolling): Additional parameter scroll_smoothly.
7291
7292 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
7293
72941998-09-28 Gerd Moellmann <gerd@gnu.org>
7295
7296 * window.c (window_scroll_pixel_based): Bug fix: vpos used
7297 instead of y-position for scroll-preserved-screen-position.
7298
72991998-09-07 Gerd Moellmann <gerd@gnu.org>
7300
7301 * dispnew.c (update_frame_line): If current row is not enabled,
7302 write the whole line.
7303
73041998-09-06 Gerd Moellmann <gerd@gnu.org>
7305
7306 * lisp.h (HAVE_FACES): Removed.
7307
7308 * dispextern.h (HAVE_FACES): Removed.
7309
7310 * config.in (HAVE_FACES): Removed.
7311
7312 * dispnew.c (HAVE_FACES): Removed.
7313
7314 * xdisp.c (HAVE_FACES): Removed.
7315
7316 * xfaces.c (HAVE_FACES): Removed.
7317
73181998-09-05 Gerd Moellmann <gerd@gnu.org>
7319
7320 * xdisp.c (init_iterator): If face_change_count is non-zero,
7321 free realized faces.
7322
7323 * xfaces.c (free_all_realized_faces): Make it externally visible.
7324 (Finternal_set_lisp_face_attribute): Increment
7325 windows_or_buffers_changed.
7326
7327 * dispnew.c (direct_output_for_insert): Give up if
7328 face_change_count is non-zero.
7329 (direct_output_forward_char): Ditto.
7330
7331 * xfaces.c (face_change_count): New.
7332
73331998-09-04 Gerd Moellmann <gerd@gnu.org>
7334
7335 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
7336 of range.
7337
73381998-09-03 Gerd Moellmann <gerd@gnu.org>
7339
7340 * term.c (Ftty_display_color_p): New.
7341
73421998-09-02 Gerd Moellmann <gerd@gnu.org>
7343
7344 * xfaces.c (Ftty_defined_colors): New.
7345
7346 * xterm.c (x_produce_glyphs): Fix computation of
7347 contains_overlapping_glyphs_p for ASCII.
7348
7349 * dispnew.c (Fshow_cursor): Don't change cursor state while
7350 redisplaying.
7351 (direct_output_for_insert): If a glyph with lbearing or rbearing
7352 is among the new glyphs, set row flag contains_overlapping_glyph_p.
7353
73541998-09-01 Gerd Moellmann <gerd@gnu.org>
7355
7356 * term.c (OUTPUT_IF): Make replacement text have statement form.
7357 (OUTPUT1_IF): Ditto.
7358 (TS_italic_mode, TS_end_italic_mode): Removed.
7359 (TS_bold_mode): Removed.
7360 (TS_underscore_mode, TS_end_underscore_mode): Removed.
7361 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
7362 (TS_enter_reverse_mode): New.
7363 (TS_enter_underline_mode, TS_exit_underline_mode): New.
7364 (TN_magic_cookie_glitch_ul): New.
7365 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
7366 (TS_exit_attribute_mode): New.
7367 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
7368 (TS_set_foreground, TS_set_background): New.
7369 (reset_terminal_modes): Switch colors back to default.
7370 (write_glyphs): Turn face on before writing text, turn it off
7371 afterwards.
7372 (insert_glyphs): Ditto.
7373 (term_init): Initialize new terminal capability variables.
7374 (turn_on_face): Turn a face on.
7375 (turn_off_face): Turn a face off.
7376
7377 * lisp.h (MAKE_GLYPH): Remove test for frame type.
7378 (GLYPH_CHAR): Ditto.
7379 (GLYPH_FACE): Ditto.
7380
7381 * xfaces.c (Vface_tty_color_alist): New.
7382 (face-register-tty-color): New.
7383 (face-clear-tty-colors): New.
7384
7385 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
7386 (struct it): Remove member faces_p since we now always have faces.
7387
73881998-08-31 Gerd Moellmann <gerd@gnu.org>
7389
7390 * dispextern.h (struct face): Add tty appearance flags.
7391
7392 * xdisp.c (init_iterator): Always handle faces.
7393 (extend_face_to_end_of_line): Handle tty frames.
7394
7395 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
7396 passed in.
7397
73981998-08-30 Gerd Moellmann <gerd@gnu.org>
7399
7400 * xfaces.c (realize_default_face): Use empty strings to indicate
7401 that the face should use the default foreground/background
7402 color of the terminal. Fill font-related attributes with
7403 appropriate values for tty frames.
7404
7405 * emacs.c (main): Call syms_of_xfaces before init_window_once.
7406
7407 * xfaces.c (realize_default_face): If face `default' is not
7408 yet known, create it.
7409
7410 * frame.c (make_terminal_frame): Call init_frame_faces
7411 unconditionally.
7412
7413 * xfaces.c (init_frame_faces): Make it work for tty frames.
7414 (free_frame_faces): Ditto.
7415 (clear_face_cache): Ditto.
7416 (recompute_basic_faces): Ditto.
7417 (Fframe_face_alist): Ditto.
7418 (free_realized_face): Ditto.
7419 (prepare_face_for_display): Ditto.
7420 (clear_face_gcs): Ditto.
7421 (lookup_face): Ditto.
7422 (smaller_face): Ditto.
7423 (realize_default_face): Ditto.
7424 (realize_face): Ditto.
7425 (realize_face): Dispatch to functions depending on the frame type.
7426 (realize_x_face): X way of realizing faces.
7427 (realize_tty_face): TTY way of realizing faces.
7428
74291998-08-29 Gerd Moellmann <gerd@gnu.org>
7430
7431 * xfaces.c (realize_face): Remove parameter unibyte_registry,
7432 compute it instead.
7433 (lookup_face): Remove local variable unibyte_registry.
7434
74351998-08-22 Gerd Moellmann <gerd@gnu.org>
7436
7437 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
7438 1 pixel longer.
7439
7440 * xdisp.c (face_before_or_after_it_pos): Fix computation
7441 of face in buffer.
7442
7443 * editfns.c (make_buffer_string_both): If prompt in buffer,
7444 prevent start > end.
7445
7446 * indent.c (Fvertical_motion): Set current_buffer to window's
7447 buffer if it isn't already.
7448
74491998-08-21 Gerd Moellmann <gerd@gnu.org>
7450
7451 * dispextern.h (GLYPH_DEBUG): Use default 0.
7452
7453 * xdisp.c (it_props): New member `smaller'.
7454 (init_iterator): Initialize it.
7455 (Qsmaller): New.
7456 (push_it): Save value of `smaller' value on the stack.
7457 (pop_it): Restore `smaller' from the stack.
7458 (handle_smaller_prop): New.
7459 (handle_face_prop): Use `smaller' text property to select a
7460 suitable face.
7461
7462 * dispextern.h (SMALLER_PROP_IDX): New.
7463 (struct it): Add member `smaller'.
7464
7465 * xfaces.c (smaller_face): New.
7466
7467 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
7468
7469 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
7470 total pixel width of window differently.
7471
7472 * xdisp.c (init_iterator): Compute width of mode line differently.
7473
7474 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
7475 of bitmap areas.
7476
7477 * window.c (Fsplit_window): Include width of bitmap areas in
7478 window width.
7479 (window_internal_width): Subtract width of bitmap areas from
7480 total width.
7481
74821998-08-18 Gerd Moellmann <gerd@gnu.org>
7483
7484 * xdisp.c: Functions reordered for better readability.
7485
7486 * dispnew.c (update_text_area): Handle glyphs with arbitrary
7487 lbearing.
7488 (update_window_tree): Parameter no_scrolling_p removed.
7489 (update_single_window): Ditto.
7490
7491 * xterm.c (x_get_char_font_and_encoding): Renamed to
7492 x_get_char_face_and_encoding.
7493
7494 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
7495 if end of current row reached.
7496
7497 * xterm.c (x_get_glyph_face_and_encoding): New.
7498 (x_get_glyph_overhangs): Call it.
7499
7500 * xdisp.c (Qshow_trailing_whitespace): New.
7501 (Qtrailing_whitespace): New.
7502 (enum prop_handled): New.
7503 (struct props, it_props): New.
7504 (next_overlay_change): New. Works like Fnext_overlay_change
7505 but doesn't use xmalloc.
7506 (handle_stop): Restructured.
7507 (face_before_or_after_it_pos): Case iteration over a string: fix
7508 handling of face before current position.
7509
75101998-08-16 Gerd Moellmann <gerd@gnu.org>
7511
7512 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
7513 reallocation matrix if fonts_changed_p.
7514 (update_text_area): Handle glyphs with lbearing.
7515
75161998-08-14 Gerd Moellmann <gerd@gnu.org>
7517
7518 * xdisp.c (struct props): New.
7519 (it_props): New.
7520 (compute_prop_info): New.
7521 (handle_stop): New.
7522
7523 * textprop.c (validate_interval_range): Make it externally
7524 visible.
7525
7526 * dispnew.c (direct_output_for_insert): Remove calls
7527 to compute_stop_pos.
7528
7529 * dispextern.h (struct it): Remove check_charpos,
7530 next_overlay_pos. Add what_changes.
7531
75321998-08-10 Gerd Moellmann <gerd@gnu.org>
7533
7534 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
7535
7536 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
7537 face_default_registry instead.
7538
7539 * syntax.c (scan_sexps_forward): Set up syntax table before
7540 jumping to initial state label.
7541
75421998-08-09 Gerd Moellmann <gerd@gnu.org>
7543
7544 * dispnew.c (check_matrix_invariants): Handle case of row end pos
7545 >= ZV specially.
7546
75471998-08-08 Gerd Moellmann <gerd@gnu.org>
7548
7549 * xdisp.c (redisplay_window): Case cursor movement---if cursor
7550 ends up in partially visible row, try to scroll. Case forced
7551 window start---handle windows not tall enough to show a single
7552 line.
7553
7554 * window.h (struct window): Member dy renamed vscroll.
7555
7556 * xterm.c (x_list_fonts): Re-activate suppression of scalable
7557 fonts.
7558 (x_draw_stretch_glyph_string): Set clipping if using GC that
7559 hasn't set it yet.
7560
7561 * xdisp.c (redisplay_window): Case forced window start -
7562 don't let cursor end on partially visible row. Use desired
7563 matrix to find a suitable PT if it doesn't appear.
7564 (decode_mode_spec): Merged with 20.2.97.
7565 (try_window_reusing_current_matrix): Give up if old or
7566 new display is vscrolled.
7567 (redisplay_window): Reset vscrolling if forced window start,
7568 or if recentering.
7569
75701998-08-06 Gerd Moellmann <gerd@gnu.org>
7571
7572 * xfaces.c (realize_default_face): Use the fontset name instead of
7573 the alias for the family attribute of the default face because we
7574 can't easily determine a good alias from fontset-alias-alist.
7575 (face_fontset): Use Fquery_fontset to find the fontset.
7576 (font_list): Additional pattern parameter.
7577 (try_font_list): Ditto.
7578 (set_lface_from_font_name): Set face family from font foundry
7579 and family.
7580 (font_list): If family contains a hyphen, build pattern differently.
7581
75821998-08-05 Gerd Moellmann <gerd@gnu.org>
7583
7584 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
7585 changed instead of setting the frame garbaged.
7586
7587 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
7588 all attribute values. This is wrong if values are unspecified,
7589 i.e. nil.
7590
7591 * xdisp.c (try_window_id): Give up if window start changed.
7592
7593 * xfaces.c (make_realized_face): Store registry as Lisp object.
7594 (load_face_font_or_fontset): Compute registry of a face
7595 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
7596 possible.
7597
7598 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
7599 differently.
7600
7601 * alloc.c (mark_face_cache): Mark the registry member of faces.
7602
7603 * dispextern.h (struct face): Make registry a Lisp string.
7604
76051998-08-04 Gerd Moellmann <gerd@gnu.org>
7606
7607 * xterm.c (x_get_char_font_and_encoding): Additional parameter
7608 multibyte_p. Handle unibyte text.
7609 (x_append_glyph): Set the multibyte_p flag of glyphs.
7610 (x_produce_image_glyph): Ditto.
7611 (x_append_stretch_glyph): Ditto.
7612 (x_produce_glyphs): Handle unibyte text like ASCII.
7613
7614 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
7615 stack.
7616 (pop_it): Restore it.
7617 (face_before_or_after_it_pos): Handle the case that the string or
7618 buffer is unibyte.
7619 (get_overlay_strings): Set the multibyte flag of the iterator if
7620 the new overlay string is multibyte.
7621 (get_glyph_property): Likewise.
7622 (get_next_display_element): Don't check for charset changes in
7623 unibyte text.
7624 (append_space): Compute face differently for unibyte text.
7625 (extend_face_to_end_of_line): Don't return quickly if face has
7626 stipple.
7627
7628 * xfaces.c (load_face_font_or_fontset): Store registry and
7629 encoding of the font in the registry member of the face.
7630 (make_realized_face): Additional parameter `registry'.
7631 (free_realized_face): Free the registry of a realized face.
7632 (face_suitable_for_charset_p): Function form of the macro
7633 with the same name in uppercase.
7634 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
7635 (choose_face_font): New parameter unibyte_registry.
7636 (choose_face_fontset_font): Ditto.
7637 (realize_default_face): Remember the registry and encoding of
7638 the specified frame font in Vx_unibyte_registry_and_encoding.
7639 (face_at_buffer_position): Handle unibyte.
7640 (face_at_string_position): Likewise.
7641 (realize_face): New parameter unibyte_registry.
7642 (compute_char_face): Handle the unibyte case.
7643
7644 * dispextern.h (struct glyph): Add bit multibyte_p.
7645 (struct face): New member registry holding the registry and
7646 encoding of the X font of the face.
7647 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
7648 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
7649 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
7650 text.
7651 (struct iterator_stack_entry): Add multibyte_p.
7652
7653 * xdisp.c (string_pos): Use string_char_to_byte.
7654 (char_charset): Removed.
7655
76561998-08-03 Gerd Moellmann <gerd@gnu.org>
7657
7658 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
7659 rectangle for a block cursor over an image without a mask.
7660 (x_stretch_block_cursor): Added. Non-zero means don't draw
7661 a block cursor over a stretch as wide as that stretch.
7662 (x_draw_stretch_glyph_string): Use it.
7663 (x_draw_hollow_cursor): Ditto.
7664
7665 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
7666 (read_minibuf): Add front-sticky text property for prompt.
7667
7668 * xdisp.c (char_charset): Return charset of a character,
7669 depending on whether or not multi-byte characters are enabled.
7670
7671 * xfaces.c (Fset_face_charset_registry): Removed.
7672 (x_charset_registry): Determine registry from charset plist.
7673
76741998-08-02 Gerd Moellmann <gerd@gnu.org>
7675
7676 * xdisp.c (get_next_display_element): Don't check for charset
7677 changes if multi-byte characters are not enabled.
7678
7679 * xdisp.c (echo_area_display): Use the flush function from the
7680 redisplay interface.
7681 * keyboard.c (detect_input_pending_run_timers): Likewise.
7682
7683 * dispextern.h (produce_*glyphs_hook): Removed.
7684 * term.c (produce_*glyphs): Ditto.
7685 (cursor_to): Remove pixel position parameters.
7686
7687 * dispnew.c: Remove hooks for window-based redisplay, introduce
7688 a redisplay interface structure.
7689
7690 * xterm.c (x_per_char_metric): Return default char metrics if per
7691 char metric exists but contains a zero width. Adobe Courier seems
7692 to contain such characters.
7693
7694 * xdisp.c (compute_line_metrics): Compute the width of rows
7695 without stopping at glyphs with zero width.
7696
76971998-08-01 Gerd Moellmann <gerd@gnu.org>
7698
7699 * xdisp.c (display_mode_line): If nothing was displayed at all,
7700 display a space.
7701 (hscroll_window_tree): Don't subtract 1 from target point if equal
7702 to ZV and window is not the selected window.
7703
7704 * dispnew.c (check_matrix_invariants): Remove check for window
7705 start at BEGV or after newline. This happens in rare cases
7706 intentionally.
7707
77081998-07-31 Gerd Moellmann <gerd@gnu.org>
7709
7710 * xfaces.c (x_charset_registry): Use STRING_BYTES.
7711 (syms_of_xfaces): Add Vface_default_registry.
7712 (x_charset_registry): Use it.
7713
7714 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
7715 (redisplay_window): Use it.
7716
7717 * dispnew.c (update_text_area): Handle lbearing of deleted text
7718 by backing up one character.
7719
77201998-07-30 Gerd Moellmann <gerd@gnu.org>
7721
7722 * dispnew.c (adjust_glyph_matrix): Use a different check to
7723 decide to do nothing.
7724
7725 * xfaces.c (face_at_string_position): Additional parameter
7726 mode_line_p. If non-zero, merge with the mode line face
7727 instead of the default face.
7728 * dispextern.h (struct it): Add mode_line_p.
7729 * xdisp.c (init_iterator): Set it.
7730 (compute_face_in_string): Use it.
7731 (face_before_or_after_it_pos): Handle strings.
7732 (get_next_display_element): Don't look for relief end in C strings.
7733 (next_element_from_string): Deliver string position instead of
7734 buffer position.
7735
7736 * xterm.c (x_flush): Flush X output buffer.
7737 (XTflash): Use it.
7738
7739 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
7740 Allow strings as face names.
7741
7742 * xfns.c (forall_images_in_image_cache): Check that frame is
7743 alive.
7744
7745 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
7746 it's also called from x_destroy_window. Since this function is
7747 called from X, freeing stuff allocated with xmalloc is dangerous
7748 here, anyway.
7749
7750 * xfaces.c (free_realized_faces): Don't clear current matrices
7751 of a frame being destroyed.
7752
7753 * frame.c (make_frame): Call set_window_buffer instead of
7754 Fset_window_buffer.
7755
7756 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
7757 with an additional argument specifying whether or not hooks may
7758 be called.
7759 (Fset_window_buffer): Call it.
7760
7761 * dispnew.c (clear_desired_matrices): Check that frame has
7762 a valid root window before clearing matrices in the window tree.
7763 (clear_current_matrices): Ditto.
7764 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
7765 vchild are valid windows if not nil.
7766
7767 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
7768 for :inverse-video.
7769 (Finternal_set_lisp_face_attribute): Ditto.
7770 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
7771 (Finternal_get_lisp_face_attribute): Ditto.
7772 (Finternal_lisp_face_attribute_values): Ditto.
7773 (syms_of_xfaces): Define the symbol `:reverse-video'.
7774
7775 * xdisp.c (get_glyph_property): Renamed from
7776 fill_iterator_from_glyph_property.
7777 (next_element_from_buffer): Handle case that no `glyph' property
7778 was found correctly.
7779 (display_line): Extend face to end of line only if we have faces.
7780
77811998-07-29 Gerd Moellmann <gerd@gnu.org>
7782
7783 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
7784 additional window argument.
7785
7786 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
7787 set_iterator_to_previous_visible_line_start.
7788 (reseat_at_next_visible_line_start): Likewise.
7789 (compute_stop_pos): Renamed from set_iterator_stop_pos.
7790 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
7791 (compute_face_in_buffer): Renamed from
7792 compute_face_at_iterator_position.
7793 (compute_face_in_string): Renamed from
7794 compute_face_at_iterator_string_position.
7795 (get_space_width): Renamed from get_iterator_space_width.
7796 (next_overlay_string): Renamed from
7797 set_iterator_to_next_overlay_string.
7798 (get_overlay_strings): Renamed from
7799 get_overlay_strings_at_iterator_position.
7800 (restore_overlay_strings): Renamed from
7801 setup_overlay_strings_from_glyph_pos.
7802 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
7803 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
7804 (init_to_row_start): Renamed from init_iterator_to_row_start.
7805 (init_to_row_end): Formerly init_iterator_to_next_row_start.
7806
7807 * xterm.c: Merge with 20.2.97.
7808 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
7809
7810 * dispextern.h (struct glyph): Replace text_pos position with
7811 simple charpos.
7812
7813 * xdisp.c (this_line_start_pos): Use struct text_pos.
7814 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
7815 (enum move_it_result): Renamed from move_iterator_result.
7816 (string_pos_nchars_ahead): Compute text_pos in a string from a
7817 known text_pos plus a character delta.
7818 (string_pos): Compute text_pos in string from charpos.
7819 (c_string_pos): Likewise for a C string.
7820 (number_of_chars): Return number of characters in a possibly
7821 multi-byte C string.
7822 (check_it): Renamed from check_iterator. Check that charpos and
7823 bytepos are in sync.
7824 (push_it): Renamed from save_iterator_settings.
7825 (pop_it): Renamed from restore_iterator_settings.
7826 (move_it_.*): Renamed from move_iterator_.*.
7827 (charset_at_position): Take charpos/bytepos into account.
7828 (back_to_previous_line_start): Set iterator to previous line start.
7829 (forward_to_next_line_start): Set iterator to next line start.
7830 (back_to_previous_visible_line_start): Renamed from
7831 move_iterator_previous_visible_line_start.
7832 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
7833 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
7834 Handle charpos/bytepos.
7835 (compute_face_at_iterator_position): Handle charpos/bytepos.
7836 (compute_face_at_iterator_string_position): Likewise.
7837 (get_iterator_space_width): Likewise.
7838 (load_overlay_strings): Likewise.
7839 (get_overlay_strings_at_iterator_position): Likewise.
7840 (reseat_iterator): Take a text_pos position argument.
7841 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
7842 bytepos.
7843 (init_iterator): Take additional bytepos parameter.
7844 (reseat_iterator_to_string): Handle charpos/bytepos.
7845 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
7846 (next_element_from_string): Handle charpos/bytepos.
7847 (next_element_from_c_string): Likewise.
7848 (fill_iterator_from_glyph_property): Likewise.
7849 (next_element_from_buffer): Likewise.
7850 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
7851 (move_iterator_in_display_line_to): Handle charpos/bytepos.
7852 (move_it_to): Likewise.
7853 (move_it_vertically_backward): Likewise.
7854 (move_it_vertically): Likewise.
7855 (move_it_by_lines): Likewise.
7856 (hscroll_window_tree): Likewise.
7857 (redisplay_internal): Likewise.
7858 (set_cursor_from_row): Likewise.
7859 (redisplay_window): Likewise.
7860 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
7861 (try_window_reusing_current_matrix): Handle charpos/bytepos.
7862 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
7863 (try_window_id): Handle charpos/bytepos.
7864 (Ftrace_redisplay_toggle): Return Qnil.
7865 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
7866 (insert_left_trunc_glyphs): Likewise.
7867
7868 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
7869 do a real merge).
7870 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
7871 (increment_glyph_row_buffer_positions): Ditto.
7872 (copy_glyph_row_contents): Ditto.
7873 (check_matrix_invariants): Add additional checks for charpos/
7874 bytepos consistency.
7875 (direct_output_for_insert): Changed for charpos/bytepos.
7876 (buffer_posn_from_coords): Likewise. Put code dealing with
7877 `direction-reversed' in #if 0.
7878
7879 * xterm.h: Merge with 20.2.97.
7880
7881 * frame.h: Merge with 20.2.97.
7882
7883 * window.h: Merge with 20.2.97. Add window_end_bytepos.
7884
7885 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
7886 start.
7887 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
7888 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
7889 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
7890 (struct it): Various members renamed from .*pos to .*charpos.
7891 (IT_CHARPOS): Access current buffer character position of an
7892 iterator.
7893 (IT_BYTEPOS): Access current buffer byte position of an iterator.
7894 (IT_STRING_CHARPOS): Access current string character position of
7895 an iterator.
7896 (IT_STRING_BYTEPOS): Access current string byte position of
7897 an iterator.
7898 (globally): Add function prototypes from 20.2.97.
7899
7900 * everywhere: Use P_ instead of PROTO for function prototypes
7901 because everyone else seems to use P_.
7902
7903 * dispextern.h (struct text_pos): Structure describing a charpos/
7904 bytepos position in text.
7905 (BYTEPOS): Access the byte position part of a text_pos.
7906 (CHARPOS): Likewise for the character position.
7907 (SET_TEXT_POS): Set a text_pos from a character and byte position.
7908 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
7909 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
7910 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
7911 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
7912 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
7913 for buffer and string positions.
7914 (struct glyph): Use text_pos.
7915 (struct it): Renamed from display_iterator. Use text_pos.
7916
79171998-07-23 Gerd Moellmann <gerd@gnu.org>
7918
7919 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
7920 pixmap.
7921
79221998-07-21 Gerd Moellmann <gerd@gnu.org>
7923
7924 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
7925 * xterm.c (x_draw_row_bitmaps): Use it.
7926 * dispnew.c (row_equal_p): Ditto.
7927 (update_window_line): Ditto.
7928
7929 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
7930 flag of images.
7931
7932 * dispextern.h (struct image): Removed member loading_failed_p.
7933 It's probably better to have the chance to try to load an image
7934 again.
7935
79361998-07-20 Gerd Moellmann <gerd@gnu.org>
7937
7938 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
7939 at ZV if `indicate-zv-lines' is non-nil.
7940 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
7941
7942 * dispnew.c (row_equal_p): Compare displays_text_p and
7943 ends_at_zv_p flags of rows.
7944 (update_window_line): Ditto.
7945
7946 * buffer.h (struct buffer): New member indicate_zv_lines.
7947
7948 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
7949 (init_buffer_once): New variable `default-indicate-zv-lines'.
7950 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
7951
7952 * xdisp.c (redisplay_window): Don't try moving the cursor
7953 if current glyph row w->last_cursor.vpos isn't enabled.
7954
7955 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
7956
7957 * window.c (Fset_window_vscroll): Allow only negative scroll
7958 values. Others don't seem to make sense, and this way it's easy
7959 to restore a vscroll of zero.
7960
7961 * xterm.c (x_inverted_image_mask): Check that pixmap could be
7962 allocated.
7963 (x_draw_image_glyph_string_background): Don't clip if pixmap
7964 could not be created.
7965
7966 * xfns.c (xbm_load_image_from_file): Check that pixmap could
7967 be created.
7968 (xbm_load): Ditto.
7969 (gs_load): Ditto.
7970
7971 * xterm.c (x_get_glyph_overhangs): Take image and stretch
7972 glyphs into account.
7973
7974 * xfaces.c (realize_default_face): Don't set font family of
7975 the default face from the fontset alias name for `fontset-startup'.
7976
7977 * xfns.c (gs_load): Pass frame's pixel foreground and background
7978 color to the Lisp loader.
7979
79801998-07-19 Gerd Moellmann <gerd@gnu.org>
7981
7982 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
7983 libtiff34.
7984
7985 * configure.in (--with-tiff, HAVE_TIFF): Added.
7986
7987 * config.in (HAVE_TIFF): Added.
7988
7989 * Makefile.in (LIBTIFF): Added.
7990
7991 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
7992
7993 * Makefile.in (LIBJPEG): Added.
7994
7995 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
7996 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
7997 jpeglib.h.
7998
7999 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
8000 where the library is installed in /usr/local/lib, e.g. FreeBSD,
8001 configure must be run with `--x-includes=/usr/X11R6/include:
8002 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
8003
80041998-07-18 Gerd Moellmann <gerd@gnu.org>
8005
8006 * config.in (HAVE_JPEG): Added.
8007
8008 * xfns.c (ct_init): Initialize color table used to map RGB colors
8009 from images to X pixel colors.
8010 (ct_free): Free color table.
8011 (ct_lookup): Look an RGB color up.
8012 (ct_allocated_colors): Get vector of allocated colors.
8013 (pbm_image_p): Test if image specification is a valid PPM
8014 image specification.
8015 (pbm_scan_number): Scan a decimal ASCII number from a file.
8016 (pbm_load): Load a PPM image.
8017
8018 * window.c (Fset_window_vscroll): Adjust glyph matrix if
8019 necessary. Take canonical character units as parameter.
8020 (Fwindow_vscroll): Return canonical character units.
8021
8022 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
8023 w->dy to display height for which glyph rows must be allocated.
8024
80251998-07-17 Gerd Moellmann <gerd@gnu.org>
8026
8027 * xfaces.c (face_at_string_position): Merge in region face
8028 so that it won't overwrite the font in the region.
8029 (face_at_buffer_position): Ditto.
8030 (realize_basic_faces): Don't realize region face.
8031
8032 * dispextern.h (enum face_id): REGION_FACE_ID removed.
8033
8034 * xterm.c (x_set_glyph_string_background_width): Don't let
8035 cursor face extend to end of line.
8036
8037 * xdisp.c (append_space): If adding space of default face,
8038 make sure glyph ist produced with right face.
8039
8040 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
8041 background color of a glyph string.
8042 (x_draw_glyph_string_background): Call it.
8043 (x_draw_glyph_string_bg_rect): Ditto.
8044 (x_draw_stretch_glyph_string): Ditto.
8045
80461998-07-15 Gerd Moellmann <gerd@gnu.org>
8047
8048 * xdisp.c (init_iterator): Initialize it->current_y to the
8049 window's vscroll w->dy.
8050
8051 * window.c (Fwindow_vscroll): Return number of pixels window
8052 is vscrolled smoothly.
8053 (Fset_window_vscroll): Set the number.
8054
8055 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
8056 to_pos in truncated part of a line.
8057
80581998-07-14 Gerd Moellmann <gerd@gnu.org>
8059
8060 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
8061 doesn't fit on the line, truncate it, despite truncate_lines nil.
8062 (display_line): Ditto.
8063
8064 * xfns.c: Experimental support for Ghostscript images.
8065
8066 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
8067 (XTread_socket): React on events from Ghostscript.
8068 (expose_frame): If width or height are zero, redraw entire frame.
8069 (XTread_socket): Call expose_frame after receiving event from
8070 Ghostscript.
8071
8072 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
8073 for Ghostscript support.
8074
8075 * xdisp.c (redisplay_internal): Return quickly if called
8076 recursively.
8077
8078 * alloc.c (NSTATICS): Increased to 1024.
8079
80801998-07-08 Gerd Moellmann <gerd@gnu.org>
8081
8082 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
8083 iterator's glyph row.
8084 (x_produce_stretch_glyph): Call it.
8085 (x_produce_glyphs): Handle `space-width' property; call
8086 x_append_stretch_glyph.
8087
8088 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
8089 property.
8090 (get_iterator_space_width): Determine value of `space-width'
8091 property at iterator's position.
8092 (reseat_iterator): Call it.
8093 (next_element_from_string): Ditto.
8094 (next_element_from_buffer): Ditto.
8095 (init_iterator): Initialize space_width of iterator.
8096 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
8097 moved, but cursor blinks.
8098 (redisplay_internal): Set w->last_cursor_off_p after update.
8099
8100 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
8101 (struct display_iterator): Add new member space_width.
8102
8103 * window.h (struct window): Add last_cursor_off_p.
8104
81051998-07-07 Gerd Moellmann <gerd@gnu.org>
8106
8107 * Saved.
8108
8109 * window.c (Fpos_visible_in_window_p): Case window not up to
8110 date---return nil if iterator hasn't reached position.
8111
81121998-07-06 Gerd Moellmann <gerd@gnu.org>
8113
8114 * xdisp.c (text_outside_line_unchanged_p): Fix case that
8115 overlays have changed.
8116 (redisplay_window): Case cursor movement. Don't try it if
8117 last_cursor.vpos is out of range.
8118
8119 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
8120 way, the display optimization for the line containing the cursor
8121 is used more frequently, esp. when we have a blinking cursor.
8122 (display_line): Don't set this_line_.* variables.
8123
8124 * xterm.c (x_redraw_cursor): Removed.
8125 (x_display_and_set_cursor): Set cursor type depending on
8126 cursor_off_p flag of window.
8127
8128 * dispnew.c (redraw_cursor_hook): Removed.
8129 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
8130 member of the selected window.
8131
8132 * xfaces.c (Fface_font): Added for compatibility with 20.2.
8133
8134 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
8135 Return glyph area under x/y.
8136 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
8137
8138 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
8139 after redisplaying.
8140
81411998-07-05 Gerd Moellmann <gerd@gnu.org>
8142
8143 * xdisp.c (text_outside_line_unchanged_p): Test if changes
8144 are all outside of a line of text.
8145 (redisplay_internal): Use it.
8146
81471998-06-30 Gerd Moellmann <gerd@gnu.org>
8148
8149 * xdisp.c (next_element_from_buffer): After skipping over
8150 invisible text, look for the `glyph' property.
8151 (set_iterator_stop_pos): Ignore check positions in front
8152 of an iterator's current position.
8153
8154 * xterm.c (show_mouse_face): Don't act on rows that don't exist
8155 anymore or which are marked as not having valid contents.
8156
8157 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
8158 realized faces if new attribute value is equal to old value.
8159
81601998-06-29 Gerd Moellmann <gerd@gnu.org>
8161
8162 * xfaces.c (Finternal_make_lisp_face): Increment
8163 lface_id_to_name_size when lface_id_to_name is reallocated.
8164
81651998-06-27 Gerd Moellmann <gerd@gnu.org>
8166
8167 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
8168 as minimum of endpos and overlay_pos.
8169 (load_overlay_strings): Set next_overlay_pos of iterator to
8170 -1 if we don't have to check for more overlay strings.
8171
81721998-05-09 Gerd Moellmann <gerd@gnu.org>
8173
8174 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
8175 do anything if iterator is at ZV because scan_buffer doesn't
8176 work otherwise.
8177
8178 * xterm.c (x_encode_char): Inline it.
8179 (x_get_char_font_and_encoding): Simplified.
8180 (x_per_char_metric): Inline it.
8181
8182 * xterm.c (x_draw_glyph_string_relief): Use clipping.
8183
8184 * xdisp.c (get_next_display_element): Check for end of relief
8185 face moved here from next_element_from_buffer.
8186
8187 * xterm.c (x_produce_image_glyph): Add relief thickness.
8188 (x_produce_stretch_glyph): Ditto.
8189
81901998-05-08 Gerd Moellmann <gerd@gnu.org>
8191
8192 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
8193 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
8194
8195 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
8196 from a glyph property.
8197 (x_produce_glyphs): Use it.
8198
8199 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
8200
8201 * xterm.c (x_produce_image_glyph): Add to current_x only if
8202 in text area.
8203 (x_produce_glyphs): Ditto.
8204
8205 * xdisp.c (display_line): Compute row height from glyphs in
8206 marginal areas.
8207
8208 * xterm.c (x_draw_image_glyph_string_background): Draw
8209 background of an image glyph string.
8210 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
8211 the background of a glyph string.
8212 (x_draw_image_glyph_string_foreground): Draw the foreground of
8213 an image glyph string.
8214 (x_inverted_image_mask): Return the inverted mask of an image.
8215
8216 * xfns.c (x_draw_image): Removed.
8217
8218 * dispextern.h (struct image_type): Remove drawing function.
8219
8220 * xfaces.c (load_face_colors): Swap colors if face is inverse.
8221
8222 * xdisp.c (get_next_display_element): In marginal areas, translate
8223 newlines, tabs, etc. like normal control characters.
8224
8225 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
8226 and color.
8227 (free_realized_faces): Set frame garbaged.
8228
8229 * xfaces.c (syms_of_xfaces): Add defsubr for
8230 internal-lisp-face-attribute-values.
8231
82321998-05-07 Gerd Moellmann <gerd@gnu.org>
8233
8234 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
8235 full.
8236 (x_produce_image_glyph): Set IT->nglyphs to 1.
8237 (x_draw_image_glyph_string): Use inverted mask to draw background.
8238
8239 * dispextern.h (struct image_type): Additional clipping rect
8240 parameters for drawing functions.
8241
8242 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
8243 a glyph string.
8244 (x_draw_image_glyph_string): Use it and pass the rect to the
8245 image drawing function.
8246
8247 * xdisp.c (fill_iterator_from_glyph_property): Use position of
8248 first character with `glyph' property as image position. Set
8249 iterator back to that position as long as the image hasn't been
8250 consumed with set_iterator_to_next.
8251 (set_cursor_from_row): Accept when glyph with given position is
8252 not found in the row. Set cursor x to end of line in that case,
8253 so that we can hscroll.
8254 (redisplay_internal): Correct computation of delta by which
8255 positions have changed in redisplay optimization for cursor
8256 row of selected window.
8257
8258 * xdisp.c (display_line): Remove start_pos.
8259 (display_line): Fix bug preventing display optimization for
8260 cursor line of selected window.
8261 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
8262 instead.
8263
8264 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
8265 (update_text_area): Take glyph pixel width into account
8266 when trying to find a resync point.
8267 (row_equal_p): Compare glyphs in all areas.
8268
82691998-05-06 Gerd Moellmann <gerd@gnu.org>
8270
8271 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
8272
8273 * dispextern.h (struct glyph_row): Use unsigned hash value.
8274
8275 * xdisp.c (display_line): Simplified and made faster by setting
8276 the cursor with set_cursor_from_row.
8277 (set_cursor_from_row): Handle rows of desired matrix.
8278
82791998-05-05 Gerd Moellmann <gerd@gnu.org>
8280
8281 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
8282 with type != CHAR_GLYPH.
8283 (fill_iterator_from_glyph_property): Return void. Set
8284 method to next_element_from_image.
8285 (next_element_from_image): Dummy function for delivering a
8286 single image id.
8287 (set_iterator_to_next): Add method next_element_from_image.
8288 (redisplay_window): When recentering, and cursor vpos is -1
8289 after display, assume middle of window is in first line displayed
8290 in window, and display again.
8291 (fill_iterator_from_glyph_property): Assign image glyph
8292 the position of the first character having the glyph property.
8293
8294 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
8295 * xfns.c (x_draw_image): Use it.
8296 * xterm.c (x_produce_image_glyph): Use it.
8297
8298 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
8299
8300 * Makefile.in: Extraneous #define of LIBXPM removed.
8301
8302 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
8303 (x_fill_stretch_glyph_string): Fill a glyph string from a
8304 stretch glyph.
8305 (x_compute_glyph_string_overhangs): Compute overhangs only
8306 for text glyph strings.
8307 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
8308 (x_draw_glyph_string): Call it.
8309
8310 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
8311 (struct glyph): Add sub-structure for stretchable glyphs.
8312 (GLYPH_EQUAL_P): Compare glyph type and u.val.
8313
8314 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
8315 #ifdef HAVE_FACES.
8316
8317 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
8318
8319 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
8320 setup_iterator_from_glyph_property. Don't do it for terminal
8321 frames.
8322
8323 * xterm.c (x_produce_image_glyph): Produce glyph for image
8324 that can't be loaded.
8325
8326 * xfns.c (lookup_image): If image can't be loaded, set its
8327 width and height so that we can draw a rectangle.
8328 (x_draw_image): Draw a rectangle for images that don't have
8329 a pixmap.
8330 (make_image): Set hash value.
8331 (image_spec_equal_p): Use image_spec_value.
8332
8333 * xterm.c (expose_frame): Don't try to redraw if basic faces
8334 haven't benn realized yet.
8335 (x_draw_image_glyph_string): Fill background only if image
8336 is not as tall as row.
8337
83381998-05-04 Gerd Moellmann <gerd@gnu.org>
8339
8340 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
8341 (LIBX)[HAVE_X11]: Add LIBXPM.
8342
8343 * xfns.c (xpm_image_p): Implementation of image type functions
8344 for XPM.
8345 (xpm_load): Ditto.
8346
8347 * dispextern.h (struct image): Add mask pixmap for XPM.
8348
8349 * xfns.c (x_draw_image): Handle images with masks.
8350
8351 * configure.in: --with-xpm added. Code detecting -lXpm added.
8352
8353 * config.in: Add HAVE_XPM.
8354
8355 * xfns.c (xbm_draw): Removed.
8356 (x_draw_image): Default implementation for drawing images.
8357 (xbm_keyword_index): Remove XBM_DEPTH.
8358 (xbm_format): Remove `:depth'.
8359 (xbm_image_spec_from_file): Removed to reduce consing.
8360 (xbm_load_image_from_file): Added for the same reason.
8361
8362 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
8363 glyph string.
8364 (x_draw_image_glyph_string): Pass ybase to image draw function.
8365
8366 * xfns.c (make_image): Set default baseline.
8367
8368 * xterm.c (x_produce_image_glyph): Compute ascent of image
8369 from its height and baseline percentage.
8370
8371 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
8372 (xbm_format): Add description for `:baseline'.
8373 (xbm_image_spec_from_file): Add keywords from original spec to
8374 result.
8375 (xbm_load): Set baseline of image.
8376 (xbm_image_p): Check range for baseline.
8377
8378 * dispextern.h (struct image): Add member baseline.
8379
8380 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
8381
8382 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
8383
8384 * xdisp.c (get_next_display_element): Do character translations
8385 only if delivering characters.
8386
83871998-05-03 Gerd Moellmann <gerd@gnu.org>
8388
8389 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
8390 DISP_CHARACTER.
8391
8392 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
8393 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
8394
83951998-05-02 Gerd Moellmann <gerd@gnu.org>
8396
8397 * xfns.c (prepare_image_for_display): Set image timestamp.
8398 (clear_image_cache): Clear images if image's timestamp +
8399 Vimage_eviction_seconds is > now.
8400 (syms_of_xfns): New variables image-eviction-seconds, and
8401 image-types.
8402 (add_image_format): Add to image-types.
8403 (xbm_load): Support new image spec format.
8404 (x_alloc_image_color): Allocate a color for an image.
8405
8406 * dispextern.h (struct image): Add timestamp.
8407
8408 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
8409 vectors of bool-vectors.
8410 (xbm_lisp_object_from_file): Build new format image spec.
8411
84121998-05-01 Gerd Moellmann <gerd@gnu.org>
8413
8414 * xfaces.c (init_frame_faces): Initialize image cache.
8415 (free_frame_faces): Free it.
8416
8417 * xterm.c (x_delete_display): Don't free image cache.
8418
8419 * emacs.c (main): Call init_xfns.
8420
84211998-04-30 Gerd Moellmann <gerd@gnu.org>
8422
8423 * alloc.c (mark_object): Mark objects in image cache.
8424
8425 * xfns.c (x_set_internal_border_width): Correct call to
8426 widget_store_internal_border_width.
8427
8428 * widget.c (widget_store_internal_border): Return void.
8429
8430 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
8431 void.
8432 (init_x_parm_symbols): Return void.
8433 (x_report_frame_params): Ditto.
8434 (x_set_border_pixel): Ditto.
8435 (syms_of_xfns): Ditto.
8436 (x_destroy_all_bitmaps): Use xfree instead of free.
8437
8438 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
8439
8440 * xterm.c (x_term_init): Initialize image_cache of display info.
8441 (x_delete_display): Free image cache.
8442
8443 * xterm.h (struct x_display_info): Add image_cache.
8444
8445 * xfns.c (make_image_cache): Allocate a new image cache.
8446 (free_image_cache): Free an image cache.
8447 (make_image): Allocate an image.
8448 (free_image): Free an image.
8449
8450 * dispextern.h (struct image): Structure describing an image.
8451 (struct image_cache): Structure describing an image cache.
8452
84531998-04-29 Gerd Moellmann <gerd@gnu.org>
8454
8455 * xdisp.c (check_iterator_glyph_property): Return int. Value is
8456 non-zero if iterator is filled with something to return.
8457 (next_element_from_buffer): Immediately return if
8458 setup_iterator_from_glyph_prop has filled iterator with pixmap.
8459 (next_element_from_string): Likewise.
8460
8461 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
8462
8463 * dispextern.h (struct glyph): Add pixmap_id.
8464 (display_element_type): Add DISP_PIXMAP.
8465
8466 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
8467 malloc/free.
8468
8469 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
8470 (clear_face_cache): Call it.
8471
8472 * xterm.c (x_query_font): Don't look at empty font table slots.
8473 (x_compute_min_glyph_bounds): Likewise.
8474 (x_term_init): Initialize font_table to null.
8475 (x_load_font): Change allocation of font_info structures so
8476 that it is possible to free fonts.
8477
8478 * xfns.c (Fx_close_connection): Use xfree instead of free.
8479 Only free fonts from filled font table entries.
8480
8481 * xfaces.c (best_matching_font): Support use of scalable fonts.
8482 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
8483
8484 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
8485 and resy.
8486 * xterm.c (x_term_init): Compute resx and resy.
8487
8488 * xfaces.c (split_font_name): Don't reject scalable fonts.
8489
8490 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
8491 in #if 0.
8492
8493 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
8494 point size cannot be determined.
8495
8496 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
8497 width over all fonts on a frame.
8498 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
8499 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
8500 macros.
8501
8502 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
8503 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
8504 (x_load_font): Use x_compute_min_char_bounds.
8505
8506 * xterm.h (struct x_display_info): New members smallest_char_width
8507 and smallest_font_height.
8508
85091998-04-28 Gerd Moellmann <gerd@gnu.org>
8510
8511 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
8512 the same name if GC of face is zero.
8513
8514 * dispextern.h (struct face): Member non_ascii_gc removed.
8515
8516 * xterm.c (x_get_char_font_and_encoding): Return face's font
8517 for characters < 0177 in default face. Prepare face for
8518 display before returning it.
8519 (x_produce_glyphs): Use it->charset.
8520 (x_get_char_font_and_encoding): Simplified.
8521 (x_encode_char): Remove parameter `font'.
8522
8523 * xfaces.c (choose_face_font): If registry from charset symbol
8524 doesn't contain a `-', make it a pattern by appending "*-*".
8525
8526 * xdisp.c (check_iterator_glyph_property): Adjust limit for
8527 glyph_check_pos computation to character boundary.
8528
85291998-04-27 Gerd Moellmann <gerd@gnu.org>
8530
8531 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
8532
8533 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
8534 ASCII face for a given Lisp face id.
8535
8536 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
8537 account.
8538 (reseat_iterator): Set glyph_check_pos. Handle case where
8539 new position is < original position.
8540 (check_iterator_glyph_property): Handle glyph property in strings.
8541 (next_element_from_string): Call above function.
8542 (next_element_from_display_vector): Handle faces in glyphs.
8543 (get_next_display_element): Set face_id of glyphs for
8544 control chars to zero.
8545
8546 * Makefile.in (term.o): Add dependency on dispextern.h.
8547
8548 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
8549 (display_line): Handle marginal areas.
8550 (move_iterator_in_display_line_to): Likewise.
8551
8552 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
8553
8554 * xfaces.c (face_at_buffer_position): Don't merge with nil
8555 text property.
8556 (face_at_string_position): Ditto.
8557
8558 * dispextern.h (struct display_iterator): Use a stack of saved
8559 values instead of saving check positions etc. individually.
8560
8561 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
8562 maybe pop the iterator's stack.
8563 (save_iterator_settings): Push a value on iterator's stack.
8564 (get_overlay_strings_at_iterator_position): Use it.
8565 (restore_iterator_settings): Pop the stack.
8566 (set_iterator_to_next_overlay_string): Use it.
8567
8568 * xfaces.c (try_font_list): Use alternative font families.
8569
85701998-04-26 Gerd Moellmann <gerd@gnu.org>
8571
8572 * xfaces.c (Fset_face_font_sort_order): Set the order in which
8573 font selection matches fonts.
8574 (Fface_font_sort_order): Return the font sort order.
8575 (best_matching_font): Find best matching font based on sort order.
8576 (cmp_font_names): Sort by given sort order.
8577
8578 * dispextern.h (struct display_iterator): New member faces_p.
8579 * xdisp.c (init_iterator): Initialize it->faces_p.
8580 (compute_face_at_iterator_string_position): Use it.
8581 (compute_face_at_iterator_position): Use it.
8582 (init_iterator): Use it.
8583 (display_mode_line): Ditto.
8584
8585 * xdisp.c (get_next_display_element): Put code choosing a face
8586 when the charset changes in #ifdef HAVE_FACES.
8587
8588 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
8589 lookup_face_for_charset.
8590
8591 * xfaces.c (free_font_names): Renamed from free_split_font_names.
8592 (free_all_realized_faces): Renamed from remove_all_realized_faces.
8593
85941998-04-25 Gerd Moellmann <gerd@gnu.org>
8595
8596 * xfaces.c (best_matching_font): Return the name of the best
8597 matching font in an array of font_name structures.
8598 (choose_face_font): Use it.
8599 (choose_face_fontset_font): Use it.
8600 (find_best_weight_font): If final font found has same weight as
8601 the font we started with, return the original font because it is a
8602 better match for the resolution of the display.
8603 (find_best_slant_font): Likewise.
8604 (merge_face_vector_with_property): Check more invalid attribute
8605 values.
8606 (lface_suitable_for_charset_p): Replaced by a macro with the same
8607 name in upper-case.
8608
86091998-04-24 Gerd Moellmann <gerd@gnu.org>
8610
8611 * dispextern.h (struct face): Member
8612 fontset_chosen_for_realization_p removed.
8613
8614 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
8615 end of the collision list, so that we find more specific faces
8616 first.
8617 (lookup_face_for_charset): Look up a new face if face->fontset >=
8618 0, and charset != CHARSET_COMPOSITION.
8619
8620 * xfaces.c (split_font_name): Return zero if point size of font
8621 couldn't be computed.
8622 (realize_default_face): Use ASCII font of a fontset to determine
8623 font-related attributes of the default face.
8624 (face_fontset): Return fontset id for face family.
8625 (font_list): Additional parameter font_pattern. If non-nil,
8626 return fonts matching that pattern.
8627
86281998-04-23 Gerd Moellmann <gerd@gnu.org>
8629
8630 * xfaces.c (choose_face_fontset): If new fontset cannot be
8631 constructed, or fontset name cannot be split, return the id of the
8632 standard fontset.
8633
8634 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
8635 When Emacs starts, it may be called for the initial frame which
8636 isn't an X frame.
8637
8638 * dispextern.h (struct face): New members foreground_defaulted_p,
8639 background_defaulted_p.
8640 (struct face): Members `mask' and `cache' removed.
8641
8642 * xfaces.c (load_color): Set them.
8643 (free_face_colors): Check them.
8644 (xlfd_point_size): Return -1 if resolution or point size of
8645 font unknown.
8646
8647 * xfaces.c (free_font): Removed.
8648 (load_face_font_or_fontset): Renamed from load_font.
8649 (load_face_font_or_fontset): Use message2 instead of signalling.
8650 (load_color): Likewise.
8651 (load_pixmap): Likewise.
8652
8653 * xterm.h (struct x_display_info): Add screen_dpi.
8654 * xterm.c (x_term_init): Initialize it.
8655 * xfaces.c (xlfd_point_size): Use it.
8656 (split_font_name): Compute numeric XLFD_RESY.
8657 (cmp_font_names): Make fonts with an y-resolution more
8658 similar to that of the frame appear first in the result.
8659
8660 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
8661 is set for the face to cache, add it to the end of the collision
8662 list.
8663 (try_font_list): If fonts for given family and registry cannot
8664 be found, first try to keep the registry, and choose a different
8665 family.
8666 (choose_face_font): Allow nfonts == 0.
8667 (try_font_list): Give up if no font matches given registry.
8668
86691998-04-22 Gerd Moellmann <gerd@gnu.org>
8670
8671 * xterm.c (x_get_char_font_and_encoding): Get font_info from
8672 font info id of the face.
8673
8674 * xfaces.c (load_font): Set font_info_id.
8675 (realize_face): Ditto.
8676
8677 * dispextern.h (struct face): Change member font_info to
8678 font_info_id.
8679
8680 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
8681 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
8682
8683 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
8684 isn't ASCII, get the ASCII face before adding a space.
8685 (append_space): Likewise.
8686 (insert_left_trunc_glyphs): Initialize truncate_it's charset
8687 to -1 so that it will compute the right face for the truncation
8688 glyphs.
8689
8690 * xfaces.c (realize_face): Set
8691 face->fontset_chosen_for_realization_p.
8692 (lookup_face_for_charset): If fontset wasn't specified originally
8693 and new charset != CHARSET_COMPOSITION, get a new face for that
8694 charset.
8695
8696 * dispextern.h (struct face): New member
8697 fontset_chosen_for_realization_p_specified_p. Set to 1 when
8698 realize_face has chosen a fontset to display composite characters
8699 for a Lisp face not specifying a fontset.
8700
8701 * xdisp.c (extend_face_to_end_of_line): Move tests for default
8702 face and line already filled here. Don't do anything if current
8703 face hasn't a relief or has a background equal to the frame
8704 background.
8705
8706 * xfaces.c (split_font_name): Additional parameter numeric_p.
8707 Don't compute numeric values if it is non-zero.
8708 (choose_face_fontset): Call split_font_name with numeric_p == 0.
8709 (choose_face_fontset): Print a message if fontset contains a
8710 font whose name cannot be split into fields.
8711
87121998-04-21 Gerd Moellmann <gerd@gnu.org>
8713
8714 * xfaces.c (try_font_list): Try to load a list of fonts,
8715 possibly using less restrictive patterns.
8716 (choose_face_font): Use it.
8717
8718 * xterm.c (x_get_char_font_and_encoding): For charset !=
8719 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
8720
8721 * dispextern.h (struct face): New member font_info.
8722
8723 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
8724 specifying a fontset as well as those not having a fontset.
8725 (free_font): Make it empty.
8726 (realize_face): Use changed load_font.
8727
8728 * xterm.c (x_get_char_font_and_encoding): If face doesn't
8729 fit for charset, get the right one.
8730
8731 * xfaces.c (load_font): Take frame and name parameter, return
8732 font.
8733 (free_font): Likewise.
8734 (split_font_name): Compute numeric values for height, swidth etc.
8735 (cmp_font_names): Use them.
8736 (find_best_width_font): Ditto.
8737 (find_best_height_font): Ditto.
8738 (find_best_weight_font): Ditto.
8739 (find_best_slant_font): Ditto.
8740 (lface_hash): Add weight, slant, swidth and relief to hash value.
8741 (lface_equal_p): Make it faster.
8742 (lface_from_symbol): Use assq_no_quit.
8743 (Fnote_default_face_changed): Removed.
8744 (cmp_font_names): Use strcmp instead of xstricmp.
8745 (face_charset_registries): Removed.
8746
87471998-04-20 Gerd Moellmann <gerd@gnu.org>
8748
8749 * frame.h (CHECK_FRAME): Give this macro a statement form.
8750 (CHECK_LIVE_FRAME): Ditto.
8751
8752 * xfaces.c (find_best_width_font): Find the best matching font
8753 for a given width.
8754 (find_best_height_font): Likewise for height.
8755 (find_best_weight_font): Likewise for weight.
8756 (find_best_slant_font): Likewise for slant.
8757 (choose_face_font): Use them.
8758 (get_lface_attributes): Always return frame-local face attrs.
8759 (Finternal_merge_in_global_face): Merge local face with
8760 global face attributes.
8761
8762 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
8763 Lisp face attributes.
8764
87651998-04-19 Gerd Moellmann <gerd@gnu.org>
8766
8767 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
8768 and :italic for compatibility.
8769 (Finternal_set_lisp_face_attribute_from_resource): Handle
8770 :bold and :italic. Handle boolean resource values for
8771 :underline and :italic.
8772
8773 * xfns.c (display_x_get_resource): Make it externally visible.
8774
8775 * xfaces.c (lface_from_symbol): Take a frame as parameter.
8776 If that frame is non-null, return the frame-local face.
8777 (Finternal_make_lisp_face): Additional frame argument.
8778 (lface_attributes): Get face attributes from global and frame-local
8779 definitions.
8780 (Finternal_lisp_face_equal_p): Additional frame argument.
8781 (merge_lisp_face_vector_with_property): Ditto.
8782 (Frealize_basic_faces): Removed.
8783 (Finternal_get_lisp_face_attribute): Additional frame argument.
8784 (Finternal_lisp_face_p): Ditto.
8785 (load_color) [MSDOS]: Removed because it isn't clear how
8786 to do this for MS-DOS.
8787
8788 * xfaces.c (lface_from_symbol): Get global face definition
8789 from face-global-alist.
8790
8791 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
8792 as values for :underline and :inverse-video.
8793 (Finternal_set_lisp_face_attribute): Allow nil values.
8794
87951998-04-17 Gerd Moellmann <gerd@gnu.org>
8796
8797 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
8798
8799 * xfaces.c (syms_of_xfaces): Add Vall_faces.
8800 (Finternal_make_lisp_face): Add new face to Vall_faces.
8801
8802 * xdisp.c (echo_area_display): Remove code recomputing faces.
8803 (redisplay_internal): Ditto.
8804 (init_iterator): Do it here.
8805
8806 * xfaces.c (choose_face_font): Check that swidth doesn't change
8807 for subusequent attributes.
8808 (xlfd_point_size): Return int.
8809
8810 * xdisp.c (redisplay_internal, echo_area-display): If realized
8811 faces have been cleared, call recompute_basic_faces.
8812
8813 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
8814 face_attributes_changed_p.
8815 (remove_all_realized_faces): Remove all realized faces on
8816 all frames.
8817 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
8818
8819 * xdisp.c (redisplay_internal): If face attributes have been
8820 changed since the last redisplay, recompute basic faces.
8821 (echo_area_display): Ditto.
8822
8823 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
8824
8825 * xfaces.c (min_char_bounds): If face cache not yet present,
8826 don't try to get font dimensions from faces.
8827
8828 * xterm.c (x_frame_mode_line_height): If face cache not present
8829 set, return default height.
8830
8831 * alloc.c (mark_face_cache): Check for null faces. Correct
8832 index bug.
8833
8834 * dispextern.h (struct face): Renamed from struct rface. Member
8835 underline renamed underline_p. Make it a bit-field.
8836
8837 * xfaces.c (init_frame_faces): Allocate face cache.
8838 (free_frame_faces): Free face cache.
8839 (recompute_basic_faces): Realize basic faces only if face cache is
8840 allocated, i.e. after init_frame_faces has been called.
8841
8842 * frame.c (make_frame): Initialze face cache with null.
8843
8844 * xfaces.c (same_size_fonts): Removed.
8845
8846 * xterm.c (x_set_glyph_string_gc): Add post-condition
8847 s->gc != 0.
8848 (x_set_mouse_face_gc): Ditto.
8849 (x_set_mode_line_face_gc): Ditto.
8850
8851 * xfaces.c (realize_default_face): Return int. Value is
8852 zero if frame params don't contain enough information to
8853 realize the default face.
8854 (realize_basic_faces): Ditto.
8855 (init_frame_faces): Realize basic faces.
8856
8857 * xfns.c (x_set_font): First store real font name in frame
8858 parameters, then call recompute_basic_faces.
8859
8860 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
8861
88621998-04-16 Gerd Moellmann <gerd@gnu.org>
8863
8864 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
8865
8866 * xfns.c (Fx_face_fixed_p): Removed.
8867 (Fx_list_fonts): Moved to xfaces.c.
8868
8869 * xfaces.c (compute_face_at_buffer_pos): Renamed to
8870 face_at_buffer_position. Parameter charset removed; always
8871 compute face for CHARSET_ASCII.
8872 (face_at_string_position): Renamed from
8873 compute_face_at_string_pos. Parameter charset removed; always
8874 compute for CHARSET_ASCII.
8875 (lookup_face_for_charset): Take frame parameter instead of
8876 face_cache.
8877 (lookup_face): Ditto.
8878 (compute_char_face): Renamed from compute_glyph_face.
8879
8880 * xdisp.c (init_iterator): Initialize charset member.
8881 (reseat_iterator_to_string): Ditto.
8882 (get_charset_at_buffer_position): Determine charset at
8883 buffer position in current_buffer.
8884 (reseat_iterator): Call above function.
8885 (compute_face_at_iterator_position): Call
8886 compute_face_at_buffer_pos.
8887 (compute_face_at_iterator_string_position): Call
8888 compute_face_at_string_pos.
8889 (get_face_from_id): Removed.
8890 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
8891 Call get_charset_at_buffer_position.
8892 (reseat_iterator): Determine face if charset at pos differs
8893 from iterator's charset.
8894 (reseat_iterator_to_glyph_pos): Removed.
8895
8896 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
8897 Determine charset from buffer position.
8898 (compute_string_char_face): Renamed to compute_face_at_string_pos.
8899 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
8900
8901 * dispextern.h (struct display_iterator): Add member charset.
8902
89031998-04-15 Gerd Moellmann <gerd@gnu.org>
8904
8905 * xfaces.c (compute_char_face): Removed.
8906
8907 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
8908 with new parameter list.
8909
8910 * xfaces.c (region_face): Removed.
8911 (allocate_face): Removed.
8912 (copy_face): Ditto.
8913 (face_eql): Removed.
8914 (intern_face): Removed.
8915 (clear_face_cache): Removed.
8916 (load_font): Ditto.
8917 (unload_font): Ditto.
8918 (load_color): Ditto.
8919 (unload_color): Ditto.
8920 (new_computed_face): Ditto.
8921 (intern_computed_face): Ditto.
8922 (ensure_face_ready): Ditto.
8923 (merge_faces): Ditto.
8924 (compute_base_face): Ditto.
8925 (merge_face_list): Ditto.
8926 (Fmake_face_internal): Removed.
8927 (Fset_face_attribute_internal): Ditto.
8928 (face_name_id_number): Removed.
8929 (Fframe_face_alist): Ditto.
8930 (Fset_frame_face_alist): Ditto.
8931 (Finternal_next_face_id): Ditto.
8932
8933 * xterm.h (struct x_output): Remove computed_faces, and
8934 param_faces. Remove macros accessing them.
8935
8936 * xfaces.c: Entirely new face implementation added.
8937
89381998-04-11 Gerd Moellmann <gerd@gnu.org>
8939
8940 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
8941 `charpos'.
8942
89431998-04-10 Gerd Moellmann <gerd@gnu.org>
8944
8945 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
8946 scroll bar window to reduce flickering. Clear entire height.
8947
8948 * xdisp.c (move_iterator_vertically_backward): Set iterator's
8949 current_x and hpos to zero after moving to previous line
8950 start.
8951
89521998-04-03 Gerd Moellmann <gerd@gnu.org>
8953
8954 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
8955
8956 * xfaces.c (xlfd_point_size): Compute relative point size of
8957 fonts from font and frame resolution.
8958 (sort_fonts): New function to sort fonts, temporarily setting
8959 font_frame to the frame in effect.
8960 (xlfd_point_size): Take additional frame parameter to be able
8961 to get at the display's resolution.
8962
8963 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
8964 BLACK_PIX_DEFAULT.
8965 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
8966 screen of display.
8967
89681998-03-31 Gerd Moellmann <gerd@gnu.org>
8969
8970 * xfaces.c (choose_face_fontset): Instantiate fontsets.
8971
8972 * fontset.h: Add external declarations for Vfontset_alias_alist
8973 and Vglobal_fontset_alist.
8974
8975 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
8976 (realize_default_face): If frame parameters contain an artificial
8977 font name naming a fontset, set the family of the default face to
8978 the fontset name given by the registry.
8979
8980 * Makefile.in (alloc.o): Add dependency to dispextern.h.
8981
89821998-03-22 Gerd Moellmann <gerd@gnu.org>
8983
8984 * alloc.c (mark_object): Add function prototype. Add cast to
8985 Lisp_Object pointer in call to mark_object for symbol names
8986 because this otherwise gives a warning from gcc 2.8.1.
8987 (mark_face_cache): Mark Lisp objects in realized faces.
8988
89891998-03-19 Gerd Moellmann <gerd@gnu.org>
8990
8991 * frame.h (struct frame): Add member face_cache.
8992
8993 * alloc.c (mark_object): Mark face cache.
8994 (mark_face_cache): Mark Lisp faces in face cache of frame.
8995
8996 * frame.c (make_frame): Initialize face_cache.
8997 (Fdelete_frame): Free it.
8998
89991998-03-18 Gerd Moellmann <gerd@gnu.org>
9000
9001 * xfaces.c: Very first skeleton of functions for face realization,
9002 face merging, face cache etc.
9003
9004 * dispextern.h (struct rface): Realized faces. Will replace
9005 struct face when tested.
9006 (struct face_cache): Realized face caches.
9007
9008 * xdisp.c (init_iterator): Initialize area member of display
9009 iterator.
9010
90111998-03-17 Gerd Moellmann <gerd@gnu.org>
9012
9013 * xterm.c (x_append_glyph): Use it->area to store glyphs.
9014
9015 * dispextern.h (struct display_iterator): New member area.
9016
9017 * xterm.c (note_overwritten_text_cursor): Note when the text
9018 cursor of a window is overwritten.
9019
9020 * xdisp.c (set_cursor_from_row): If PT is not found in the
9021 row, display the cursor at the start of the row.
9022
9023 * dispnew.c (direct_output_forward_char): Call
9024 set_cursor_from_row.
9025
9026 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
9027 position is not in an overlay string, set iterator's position and
9028 method explicitly so.
9029 (set_cursor_from_row): Correct cursor position calculation.
9030 Make it externally visible.
9031 (redisplay_window): Call set_cursor_from_row so that there is only
9032 one place where the cursor position is calculated from a current
9033 row.
9034
9035 * dispextern.h (struct display_iterator): New member
9036 overlay_strings_at_end_processed_p.
9037
9038 * xdisp.c (check_iterator): Perform sanity checks on
9039 display_iterators.
9040 (next_element_from_buffer): Check for overlay strings at ZV.
9041
90421998-03-16 Gerd Moellmann <gerd@gnu.org>
9043
9044 * buffer.c (init_buffer_once): Add left_margin_width and
9045 right_margin_width to buffer_local_flags.
9046
9047 * dispnew.c (margin_glyphs_to_reserve): Function computing
9048 number of glyphs to reserve for a marginal area.
9049 (adjust_glyph_matrix): Call it.
9050 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
9051 is not alive.
9052
9053 * window.c (Fset_window_margins): Allow floats.
9054
9055 * buffer.c (syms_of_buffer): Add buffer-local variables
9056 left-margin-width and right-margin-width. Add defaults
9057 default-left-margin-width and default-right-margin-width.
9058
9059 * buffer.h (struct buffer): New members left_margin_width
9060 and right_margin_width.
9061
9062 * window.c (Fset_window_margins): Make window the last and
9063 optional argument.
9064
9065 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
9066 flag no_marginal_areas_p differently.
9067 (x_clear_end_of_line): Ditto.
9068 (x_draw_glyph_string_relief): Compute width of relief differently
9069 for rows with flag no_marginal_areas_p.
9070
9071 * dispnew.c (update_window_line): Update marginal areas only
9072 for rows that don't have no_marginal_areas_p set.
9073
9074 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
9075 (display_menu_bar): Ditto.
9076
9077 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
9078
9079 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
9080 marginal areas in window-based redisplay.
9081
9082 * dispextern.h (struct glyph_matrix): New members
9083 left_margin_glyphs and right_margin_glyphs.
9084
90851998-03-15 Gerd Moellmann <gerd@gnu.org>
9086
9087 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
9088
9089 * charset.c (non_ascii_char_to_string): Use char type parameters
9090 because the function is used that way from outside. Use unsigned
9091 char internally.
9092
9093 * window.c (change_window_height): Return void.
9094 (make_dummy_parent): Return void.
9095 (init_window_once): Return void.
9096 (syms_of_window): Ditto.
9097 (keys_of_window): Ditto.
9098 (delete_window): Correct return with and without value.
9099
9100 * buffer.c (record_buffer): Return void.
9101
9102 * marker.c (unchain_marker): Return void.
9103
9104 * window.c (unshow_buffer): Return void.
9105 (replace_window): Ditto.
9106 (delete_window): Ditto.
9107
9108 * term.c (delete_glyphs_hook): Void return type.
9109 (ring_bell_hook): Ditto.
9110 (set_terminal_window_hook): Ditto.
9111
9112 * sysdep.c (init_sigio): Return void.
9113
9114 * xterm.c (x_set_window_size): Return void.
9115 (x_calc_absolute_position): Ditto.
9116 (x_set_offset): Ditto.
9117 (x_focus_on_frame): Ditto.
9118 (x_unfocus_frame): Ditto.
9119 (x_make_frame_visible): Ditto.
9120 (x_make_frame_invisible): Ditto.
9121 (x_iconify_frame): Ditto.
9122 (x_destroy_window): Ditto.
9123 (x_wm_set_window_state): Ditto.
9124 (x_wm_set_icon_pixmap): Ditto.
9125 (x_wm_set_icon_position): Ditto.
9126 (x_initialize): Ditto.
9127 (x_error_quitter): Ditto.
9128 (x_destroy_window): Use xfree instead of free.
9129
9130 * keyboard.c (clear_waiting_for_input): Return void.
9131
9132 * xterm.c (x_wm_set_size_hint): Return void.
9133 (x_raise_frame): Ditto.
9134 (refreshicon): Ditto.
9135 (x_error_catcher): Ditto.
9136 (x_clear_errors): Ditto.
9137
9138 * keyboard.c (record_asynch_buffer_change): Return void.
9139
9140