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