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