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