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