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