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