(compare_window_configurations): Signal an error
[bpt/emacs.git] / src / ChangeLog
CommitLineData
685e5ed2
GM
12000-04-04 Gerd Moellmann <gerd@gnu.org>
2
3 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
4 AFTER_POTENTIAL_GC calls around calls to functions that can
5 signal an error and thus invoke the debugger.
6
587a49ab
GM
72000-04-03 Gerd Moellmann <gerd@gnu.org>
8
62f20204
GM
9 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
10 an error if decoding fails.
11
587a49ab
GM
12 * keyboard.c (lispy_mouse_names): Variable removed.
13 (Vlispy_mouse_stem): New variable.
14 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
15 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
16 for any mouse button number. Increase size of mouse_syms and
17 button_down_location as needed. Call modify_event_symbol with
18 different arguments.
19 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
20 Call modify_event_symbol with different arguments.
21 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
22 for any button number. Call modify_event_symbol with different
23 arguments.
24 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
25 Accept a string for NAME_ALIST_OR_STEM.
26
27 * lisp.h (larger_vector): Add prototype.
28
29 * fns.c (larger_vector): Make externally visible.
30
31 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
32
2d1675e4
SM
332000-04-02 Stefan Monnier <monnier@cs.yale.edu>
34
35 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
36 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
37 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
38 we are between str1 and str2.
39 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
40 (PATFETCH): Use `TRANSLATE'.
41 (PATFETCH_RAW): Fetch multibyte char if applicable.
42 (PATUNFETCH): Remove.
43 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
44 When writing a char, write it directly into the pattern buffer rather
45 than going needlessly through a temp char-array.
46 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
47 multibyte magic and remove the useless `#ifdef emacs'.
48 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
49 buffer.
50
51 * regex.h (struct re_pattern_buffer): Make field `multibyte'
52 conditional on `emacs'.
53
54 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
55
cc2d8c6b
KR
562000-04-01 Ken Raeburn <raeburn@gnu.org>
57
58 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
59 non-union-type versions of XMARK and friends here, because XMARK
60 and friends won't work on an integer field if NO_UNION_TYPE is not
61 defined.
62 (make_number): Define as a function if it's not defined as a
63 macro.
64
09654086
KR
65 * composite.c (run_composite_function): Use NILP when checking for
66 nil.
67 (syms_of_composite): Delete local var NARGS, pass an int as first
68 argument to Fmake_hash_table.
69
2387b382
KR
70 * editfns.c (text_property_stickiness): Use NILP to test
71 Lisp_Object boolean value.
72 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
73 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
74 problems reading from and changing the same lisp value in an
75 XSETSTRING call.
76
27660e89
GM
772000-04-01 Gerd Moellmann <gerd@gnu.org>
78
79 * term.c (TN_no_color_video): New variable.
80 (term_init): Intitialize TN_no_color_video.
81 (enum no_color_bit): New enumeration.
82 (MAY_USE_WITH_COLORS_P): New macro.
83 (turn_on_face): Use it to determine if attributes may be used
84 combined with colors.
85
3578db3c
KR
862000-04-01 Ken Raeburn <raeburn@gnu.org>
87
88 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
89 with int lvalues via casts; instead, just yield lisp object
90 lvalues.
91 (enlarge_window): Variable sizep now points to Lisp_Object. Use
92 proper accessor macros.
93 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
94 (grow_mini_window): Fix typo getting int value of root->height.
95
6fc556fd
KR
96 * xdisp.c (compute_string_pos): Fix order of arguments to
97 string_pos_nchars_ahead.
98 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
99 count arg to variable-arg routines like Frun_hook_with_args and
100 Fformat.
587a49ab
GM
101 (back_to_previous_visible_line_start)
102 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
103 fixed-arg routines like Fget_char_property and Fmake_string.
104 (reconsider_clip_changes): Use XINT when comparing integer lisp
105 objects, or passing them as int arguments.
587a49ab
GM
106 (mark_window_display_accurate, insert_left_trunc_glyphs)
107 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
108 storing or passing integer values as lisp objects.
109 (set_cursor_from_row, highlight_trailing_whitespace): Use
110 INTEGERP, not implicit test against zero, for glyph object.
111 (try_window_id): Don't use make_number when we want an int value.
112
113 * xfaces.c (xlfd_symbolic_value): Make last argument a
114 Lisp_Object, to be consistent with callers.
115 (Fbitmap_spec_p): Use XINT to get numeric value of height.
116 (lface_hash): Apply XFASTINT to lisp values before folding in.
117
118 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
119 fill in window width and height. Pass an int, not a lisp object,
120 as first arg to Finsert.
121
6e7b2457
GM
1222000-04-01 Gerd Moellmann <gerd@gnu.org>
123
610d841e
GM
124 * xfaces.c (realize_basic_faces): Block input while realizing
125 the faces.
126
6e7b2457
GM
127 * keyboard.c (lispy_mouse_names): Add additional mouse names.
128
129 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
130
aa110c0c
GM
1312000-03-31 Gerd Moellmann <gerd@gnu.org>
132
133 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 134 or ASCII, handle case that per-char metric is null.
aa110c0c 135
8801a864
KR
1362000-03-30 Ken Raeburn <raeburn@gnu.org>
137
c6129d7e
KR
138 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
139
8801a864
KR
140 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
141 XSUBR, XBUFFER): Verify correct object type before returning
142 pointer, using eassert.
143 * frame.h (XFRAME): Likewise.
144
145 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
146 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
147 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
148 type.
149 * data.c (set_internal): Likewise.
150 * dispextern.h (WINDOW_WANTS_MODELINE_P,
151 WINDOW_WANTS_HEADER_LINE_P): Likewise.
152 * fileio.c (auto_save_1): Likewise.
153 * insdel.c (check_markers): Likewise.
154 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
155 * undo.c (record_insert): Likewise.
156 * vmsproc.c (child_sig): Likewise.
157 * window.c (unshow_buffer, window_loop): Likewise.
158 * xterm.c (x_erase_phys_cursor): Likewise.
159
8e7af858
GM
1602000-03-30 Gerd Moellmann <gerd@gnu.org>
161
162 * xfns.c (free_image_cache): Free the cache structure itself
163 last, after all its members have been freed.
164
165 * lisp.h (xstrdup): Add prototype.
166
167 * alloc.c (xstrdup): Moved here from xfaces.c.
168 (allocating_for_lisp): Variable removed.
169 (lisp_malloc): Block input around the calls to malloc and
170 mem_insert.
171
172 * xfaces.c (realize_tty_face): Use find_symbol_value instead
173 of Fsymbol_value.
174 (xstrdup): Moved to alloc.c.
175
e0b8c689
KR
1762000-03-29 Ken Raeburn <raeburn@gnu.org>
177
b96f9fb7
KR
178 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
179
180 * emacs.c (main): Fix sense of no-loadup test.
181
e0b8c689
KR
182 * config.in (ENABLE_CHECKING): Undef.
183
184 * lisp.h (struct interval): Replace "parent" field with a union of
185 interval pointer and Lisp_Object; add new bitfield to use as
186 discriminant. Change other flag fields to bitfields.
187 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
188 is defined and the supplied test fails, print a message and
189 abort.
190 (eassert): New macro. Use CHECK to provide an assert-like
191 facility.
192
193 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
194 pointers; abort if the value looks like a lisp object.
195 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
196 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
197 Modify for new interval parent definition.
198
199 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
200 UNMARK_BALANCE_INTERVALS): Update references that need an
201 addressable lisp object in the interval structure.
202 (die): New function.
203 (suppress_checking): New variable.
204
205 * intervals.c (interval_start_pos): Just return 0 if there's no
206 parent object.
207
f83c5440
GM
2082000-03-29 Gerd Moellmann <gerd@gnu.org>
209
210 * lread.c (read1): Accept `.' (period) as symbol start like in CL
211 and earlier Emacs versions.
212
213 * keyboard.c (Ftop_level): Cancel busy-cursor.
214
215 * eval.c (call_debugger): Cancel busy-cursor.
216
fdce64ff
KH
2172000-03-29 Kenichi Handa <handa@etl.go.jp>
218
219 * search.c (Freplace_match): Adjust multibyteness of the current
220 buffer and NEWTEXT. Free allocated memory before signaling an
221 error.
222
f6a3f532
SM
2232000-03-28 Stefan Monnier <monnier@cs.yale.edu>
224
225 * regex.c (analyse_first): New function obtained by ripping out most
226 of re_compile_fastmap and generalizing it a little bit so that it
227 can also just return whether a given (sub)pattern can match the empty
228 string or not.
229 (regex_compile): Use `analyse_first' to decide whether the loop-check
230 needs to be done or not for *, +, *? and +? (the loop check is costly
231 for non-greedy repetition).
232 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
233
e9b309ac
DL
2342000-03-28 Dave Love <fx@gnu.org>
235
bb15bd9a
DL
236 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
237 alpha.
238
e9b309ac
DL
239 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
240
ed0767d8
SM
2412000-03-27 Stefan Monnier <monnier@cs.yale.edu>
242
243 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
244 an expression.
245 (enum re_opcode_t): Update description of succeed_n.
246 (PATFETCH): Always define.
247 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
248 operators, char classes, shy-groups and intervals).
249 Optimize special cases of intervals so as to only use succeed_n and
250 jump_n when really needed.
251 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
252 that we don't have to handle the special cases any more.
253 Simplify on_failure_jump handling as well.
254
e11e7e46
JR
2552000-03-28 Jason Rumney <jasonr@gnu.org>
256
257 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
258
88faab89
GM
2592000-03-27 Gerd Moellmann <gerd@gnu.org>
260
182ff242
GM
261 * s/freebsd.h (GC_SETJMP_WORKS): Define.
262
263 * s/msdos.h (GC_SETJMP_WORKS): Define.
264
265 * alloc.c (mark_maybe_object): New function.
266 (mark_memory): Use it.
267 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
268 (setjmp_tested_p, longjmp_done): New variables.
269 (test_setjmp): New function.
270 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
271 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
272
c1005d06
GM
273 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
274 to DEC_TEXT_POS and INC_TEXT_POS.
275
276 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
277 with parameter MULTIBYTE_P.
278
279 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
280 MULTIBYTE_P.
281
7439e5b9 282 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
283 buffers because it looks for multibyte character byte sequences
284 which don't exist in unibyte text.
7439e5b9 285
d9c545da
GM
286 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
287
11fd416e 288 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
289 [DEBUG_X_COLORS]: New functions.
290 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
291
292 * xfns.c (x_set_cursor_color): Get color reference counts right.
293
294 * xterm.c (x_copy_color): New function.
295 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
296
297 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
298 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
299 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
300 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
301 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
302 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
303 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
304 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
305 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
306 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
307
11fd416e
GM
308 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
309 names for handling per-buffer variables.
d9c545da
GM
310
311 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
312 instead of MAX_BUFFER_LOCAL_VARS.
313 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
314
315 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
316
88faab89
GM
317 * xfns.c (x_specified_cursor_type): New function.
318 (x_set_cursor_type): Use it.
319
320 * buffer.h (struct buffer): Add cursor_type.
321
d80f42b7
SM
3222000-03-26 Stefan Monnier <monnier@cs.yale.edu>
323
324 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
88faab89
GM
325 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
326 opcode.
d80f42b7
SM
327 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
328 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
329 executing it as well as when popping it off the stack to find infinite
330 loops in non-greedy repetition operators.
331
89e80928
GM
3322000-03-26 Gerd Moellmann <gerd@gnu.org>
333
3d4ff2dd
GM
334 * doc.c (Qfunction_documentation): New variable.
335 (syms_of_doc): Initialize Qfunction_documentation.
336 (Fdocumentation): If FUNCTION is a symbol with non-nil
337 `function-documentation' property, return a documentation derived
338 from that.
339
bd96bd79
GM
340 * buffer.c (syms_of_buffer): Add default-cursor-type.
341 (init_buffer_once): Don't let cursor_type have a local value
342 in every buffer.
343
19d1bc27
GM
344 * xterm.c (x_display_and_set_cursor): Choose cursor depending
345 on buffer-local value of cursor_type.
346 (x_draw_bar_cursor): Add parameter WIDTH.
347
348 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
349 (init_buffer_once): Set default cursor_type value to t.
350 Mark cursor_type as local everywhere.
351 (syms_of_buffer): New per-buffer variable cursor-type.
352
89e80928
GM
353 * buffer.h (struct buffer): Remove member local_var_flags,
354 add local_flags.
355 (MAX_BUFFER_LOCAL_VARS): New macro.
356 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
357 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
358 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
359 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
360
361 * print.c (print_object): Use new macros for per-buffer
362 variables.
363
364 * category.c (Fset_category_table): Use new macros for per-buffer
365 variables.
366
367 * buffer.c (buffer_permanent_local_flags): Make a char array.
368 (max_buffer_local_idx): New variable.
369 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
370 for new handling of per-buffer variables.
371 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
372 (init_buffer_once): Initialize per-buffer vars differently.
373 Set max_buffer_local_idx.
374
375 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
376 variables.
377
378 * lread.c (defvar_per_buffer): Use new macros for per-buffer
379 variables.
380
381 * data.c (do_symval_forwarding, store_symval_forwarding)
382 (find_symbol_value, set_internal, default_value, Fset_default)
383 (Fkill_local_variable, Flocal_variable_p): Use new macros for
384 per-buffer variables.
385
386 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
387
9a0dd3dc
GM
3882000-03-24 Gerd Moellmann <gerd@gnu.org>
389
b68c375f
GM
390 * xterm.c (x_term_init): Unblock input around call1 of
391 Qvendor_specific_keysyms.
392
9a0dd3dc
GM
393 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
394 (find_defun_start): Consider an open parenthesis in column 0
395 a defun start only if open_paren_in_column_0_is_defun_start is set.
396 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
397
7973e637
SM
3982000-03-24 Stefan Monnier <monnier@cs.yale.edu>
399
400 * eval.c (Fautoload): Add entry in load-history (if after dump).
401 * lread.c (load-history): Update docstring.
402
39210e90
GM
4032000-03-24 Gerd Moellmann <gerd@gnu.org>
404
405 * indent.c (Fvertical_motion): Always use the current buffer.
406 Temporarily change the window's buffer, if necessary.
407
72db3ab5
GM
4082000-03-23 Gerd Moellmann <gerd@gnu.org>
409
410 * xterm.c (fast_find_position): Make sure not to consider rows
411 not visible in the window.
412
990b2375
SM
4132000-03-22 Stefan Monnier <monnier@cs.yale.edu>
414
415 * regex.c (enum syntaxcode): Provide default for non-Emacs.
416 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
417
ff4df011
JR
4182000-03-22 Jason Rumney <jasonr@gnu.org>
419
420 * w32menu.c (single_submenu): Set help string to NULL if none.
421 (w32_menu_show): Set help string correctly.
422 (add-menu-item): Set help string in MIIM_DATA for menu item.
423 Load SetMenuItemInfoA explicitly.
424 (w32_menu_display_help): New function.
425
426 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
427 (QCdata): Moved to xdisp.c.
428
429 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
430 (Vw32_charset_to_codepage_alist): Removed.
431 (Vw32_charset_info_alist): New variable.
432 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
433 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
434 greek, hebrew, thai, johab, mac, unicode]): New symbols.
435 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
436 with TODO comment.
437 (w32_codepage_for_font): Use Vw32_charset_info_alist.
438 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
439 Define Vw32_charset_info_alist and w32_charset symbols.
440
4412000-03-22 Jason Rumney <jasonr@gnu.org>
442
443 * makefile.nt (w32bdf.obj): Update dependencies.
444
445 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
446
447 * w32fns.c: Include fontset.h after dispextern.h.
448 (Fx_create_frame): Do not create fontset.
449 (w32_load_system_font): Doc fix.
450 (Fx_close_connection): Free full_name if it is not shared.
451
452 * w32term.c: Include fontset.h after dispextern.h.
453 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
454 updated.
455 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
456 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
457 (w32_font_is_double_byte): New function, needs body.
458 (x_append_glyph): Set glyph->glyph_not_available_p.
459 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
460 it->charset. If it->multibyte_p is zero and it->c is a multibyte
461 character, convert it to a unibyte character.
462 (struct glyph_string): Delete member `charset'.
463 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
464 calculating it is found.
465 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
466 the case that per char metric is not available correctly.
467 (x_fill_glyph_string): Handle the case that the specific glyph is
468 not available correctly.
469 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
470 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
471 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
472 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
473 fontset. Don't call FS_LOAD_FONT.
474
439d5cb4
KR
4752000-03-22 Ken Raeburn <raeburn@gnu.org>
476
477 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
478 (INT_LISPLIKE): New macro.
479 (NULL_INTERVAL_P): Use it.
480 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
481 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
482 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
483
484 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
485 explicit references to "parent" field of struct interval and
486 associated unclean type conversions.
487 * intervals.c (create_root_interval, root_interval, rotate_right,
488 rotate_left, balance_possible_root_interval, split_interval_right,
489 split_interval_left, interval_start_pos, find_interval,
490 next_interval, previous_interval, update_interval,
491 adjust_intervals_for_insertion, delete_node, delete_interval,
492 adjust_intervals_for_deletion, merge_interval_right,
493 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
494 copy_intervals_to_string): Likewise.
495 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
496 Likewise.
497 * syntax.c (update_syntax_table): Likewise.
498
499 * intervals.c (reproduce_tree_obj): New function, like
500 reproduce_tree but takes a Lisp_Object for the parent. Declare
501 with prototype.
502 (graft_intervals_into_buffer): Use it when appropriate.
503 (reproduce_tree): Declare with prototype.
504 (balance_possible_root_interval): Check that the parent is a lisp
505 object before trying to examine its type.
506
ee1c5b21
GM
5072000-03-22 Gerd Moellmann <gerd@gnu.org>
508
509 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
510 as strings only if both are known to be strings.
511
512 * s/openbsd.h (LIBS_TERMCAP): Undef.
513
1fb352e0
SM
5142000-03-21 Stefan Monnier <monnier@cs.yale.edu>
515
516 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
517 definitions for non-Emacs compilation.
518 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
519 outside of `#ifdef emacs'.
520 (print_partial_compiled_pattern): Update.
521 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
522 (re_compile_fastmap): Merge handling of charset and charset_not (for
523 emacs and non-emacs compilation as well).
524 Similarly for (not)categoryspec and (not)syntaxspec.
525 Don't use the fastmap when reaching `anychar' since the added
526 complexity is not justified.
527 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
528 and (not)syntaxspec. Merge (not)categoryspec.
529
fdaa1f77
KH
5302000-03-22 Kenichi Handa <handa@etl.go.jp>
531
ff1a0d8e
KH
532 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
533 FACE_FOR_CHAR): Define them differently for the configuration of
534 --without-x.
fdaa1f77 535
d152fb46
DL
5362000-03-21 Dave Love <fx@gnu.org>
537
538 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
539 doc string.
540
d2cafc8c
GM
5412000-03-21 Gerd Moellmann <gerd@gnu.org>
542
543 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
544 (lface_fully_specified_p): Don't check contents of
545 LFACE_FONT_INDEX because that attribute is optional.
546 (realize_x_face): Remove now unwarranted xassert.
547
9111d4b5
KH
5482000-03-21 Kenichi HANDA <handa@etl.go.jp>
549
550 The following changes are to make font selection based on
551 characters, not charset. In addition, they recover fontset
552 facilities while utilizing the new font selection mechanism.
553
6c4bfdc0
KH
554 * Makefile.in (fontset.o): Depend on dispextern.h.
555
556 * alloc.c (mark_face_cache): Don't mark face->registry.
557
9111d4b5
KH
558 * dispextern.h (struct glyph): New member glyph_not_available_p.
559 Use 22 bits for face_id.
560 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
561 (struct face): Delete member registry, new member ascii_face.
562 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
563 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
564 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
565 (struct it): Delete member charset, new member
566 glyph_not_available_p.
567
568 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
569 (struct fontset_info, struct fontset_data): Structs removed.
570 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
571 Vglobale_fontset_alist, font_idx_temp): Externs removed.
572 (fs_load_font, fs_query_fontset): Adjusted for new argument.
573 (fs_free_face_fontset, fontset_font_pattern,
574 face_suitable_for_char_p, face_for_char,
575 make_fontset_for_ascii_face): Extern them.
576 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
577 (FS_LOAD_FACE_FONT): New macro.
578
579 * fontset.c: All codes rewritten or adjusted for the change of
580 fontset implementation. Now fontset is represented by char table.
581 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
582 removed.
583 (my_strcasecmp): Function removed.
584 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
585 variables.
586 (AREF, ASIZE): New macros.
587 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
588 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
589 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
590 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
591 fontset_id_valid_p, font_family_registry, fontset_name,
592 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
593 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
594 New functions.
595 (fs_load_font): New arg FACE. Caller changed.
596 (fs_query_fontset): Argument changed. Caller changed.
597 (Fquery_fontset): call fs_query_fontset.
598 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
599 Functions removed.
600 (clear_fontset_elements, check_registry_encoding,
601 check_fontset_name): New functions.
602 (syms_of_fontset): Set char-table-extra-slots property of fontset
603 to 3. Staticpro and initialize Vfontset_table and
604 Vdefault_fontset. Defsubr fontset_font and fontset_list.
605
606 * frame.h (struct frame): Member `fontset_data' removed.
607 (FRAME_FONTSET_DATA): Macro removed.
608
609 * frame.c (make_frame): Don't allocate f->fontset_data.
610 (Fdelete_frame): Don't free f->fontset_data.
611
6c4bfdc0
KH
612 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
613
9111d4b5
KH
614 * xdisp.c (charset_at_position): Function removed.
615 (init_iterator): Don't set member charset of struct `it'.
616 (handle_face_prop, reseat_to_string, set_iterator_to_next,
617 next_element_from_display_vector, insert_left_trunc_glyphs):
618 Likewise.
619 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
620 FACE_FOR_CHARSET.
621 (get_next_display_element, append_space,
622 extend_face_to_end_of_line): Likewise.
623
624 * xfaces.c (Qx_charset_registry, Vface_default_registry):
625 Variables removed.
626 (clear_font_table, frame_update_line_height, load_face_font):
627 Adjusted for the change of fontset implementation.
628 (load_face_fontset_font): Function removed.
629 (pixel_point_size): New function.
630 (font_list): Argument type changed. Caller changed.
631 (LFACE_FONT): New macro.
632 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
633 (set_lface_from_font_name): Type of arg FONTNAME is changed to
634 Lisp_Object. Determine the font name by actually loading a font
635 by the specified pattern. Set LFACE_FONT (lface) to the specified
636 pattern. Even if a font is not found, don't try alternatives.
637 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
638 (set_font_frame_param): If `font' is specified in lface, use it.
639 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
640 (lface_same_font_attributes_p): Likewise.
641 (make_realized_face): Arguent changed. Caller changed. Set
642 face->ascii_face to face itself.
643 (free_realized_face): Free face->fontset if face is for ASCII.
644 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
645 deduce_unibyte_registry, x_charset_registry): Functions removed.
646 (free_realized_multibyte_face): New function.
647 (lookup_face, lookup_named_face, lookup_derived_face): Argument
648 changed. Caller changed.
649 (try_font_list): Argument type changed.
650 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
651 (choose_face_font): Argument changed. Handle fontset properly.
652 (choose_face_fontset_font): Function removed.
653 (realize_default_face, realize_named_face): Don't remove the
654 former face here.
655 (realize_face): Argument changed. Caller changed. Remove face
656 with the arg former_face_id in advance. Load font for the new
657 face.
658 (realize_x_face): Argument changed. Caller changed. For a
659 multibyte character, share fontset with base_face. For a single
660 byte character, make a new realized fontset. Don't load a font
661 here.
662 (realize_tty_face): Argument changed. Caller changed.
663 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
664 (face_at_buffer_position): Don't check multibyte_p for returning
665 DEFAULT_FACE_ID.
666 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
667 FACE_SUITABLE_FOR_CHARSET_P.
668 (syms_of_xfaces): Remove code for Qx_charset_registry and
669 Vface_default_registry.
670
6c4bfdc0
KH
671 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
672 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
673 (x_per_char_metric): Don't try FONT->default_char. Even if
674 pcm->width is zero, glyph bits may exist.
675 (x_encode_char): Always initialize char2b->byte1.
676 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
677 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
678 changed.
679 (x_append_glyph): Set glyph->glyph_not_available_p.
680 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
681 it->charset. Handle the case that per char metric is not
682 available. If it->multibyte_p is zero and it->c is a multibyte
683 character, convert it to a unibyte character.
684 (struct glyph_string): Delete member `charset'.
685 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
686 the case that per char metric is not available correctly.
687 (x_fill_glyph_string): Handle the case that the specific glyph is
688 not available correctly.
689 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
690 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
691 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
692 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
693 fontset. Don't call FS_LOAD_FONT.
694
695 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
696 (x_create_tip_frame): Likewise.
697 (Fx_close_connection): Free full_name of font_info.
698
699 * fns.c (optimize_sub_char_table): New function.
700 (Foptimize_char_table): New function.
701 (syms_of_fns): Defsubr Soptimize_char_table.
702
b33dd3b0
GM
7032000-03-20 Gerd Moellmann <gerd@gnu.org>
704
705 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
706 only if buffer is displayed in some window.
707
708 * xdisp.c (handle_single_display_prop): Initialize local `value'.
709 (try_window_reusing_current_matrix): Don't call scroll run
710 function if run's current and desired position are the same;
711 this prevents cursor flickering.
712
4e8a9132
SM
7132000-03-19 Stefan Monnier <monnier@cs.yale.edu>
714
715 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
716
717 * regex.c (RE_STRING_CHAR): New macro.
718 (GET_CHAR_AFER_2): Remove.
719 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
720 (enum re_opcode_t): Remove on_failure_jump_exclusive.
721 (print_partial_compiled_pattern, re_compile_fastmap)
722 (re_match_2_internal): Remove on_failure_jump_exclusive.
723 (regex_compile): Turn optimizable P+ loops into PP*, so that the
724 optimization only need to work for * (ie. can use of_keep_string_jump).
725 Remove the special case for .*\n since it is now covered by the general
726 optimization.
727 (re_search_2): Don't bother with `room'.
728 (skip_one_char): New function.
729 (skip_noops): Simplify since `memory' is not needed any more.
730 (mutually_exclusive_p): Restructure slightly to use `switch' and
731 add handling for "all" remaining cases.
732 (re_match_2_internal): Change on_failure_jump_smart to use
733 on_failure_keep_string_jump (and redirect the end-of-loop jump)
734 rather than on_failure_jump_exclusive.
735
2136fdd4
GM
7362000-03-19 Gerd Moellmann <gerd@gnu.org>
737
738 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
739 number of bits per RGB because it's everywhere used as the depth
740 of the visual.
741
742 * term.c (calculate_costs): Remove code dealing with X frames.
743
e53ae11c
RS
7442000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
745
746 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
747
d7b511c4
GM
7482000-03-18 Gerd Moellmann <gerd@gnu.org>
749
750 * lread.c (read_integer): Unread the last char not consumed.
751
16b5d424
GM
7522000-03-17 Gerd Moellmann <gerd@gnu.org>
753
754 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 755 which are in the process of being deleted.
16b5d424 756
1fa28578
GM
7572000-03-16 Gerd Moellmann <gerd@gnu.org>
758
83488cce
GM
759 * Makefile.in (mostlyclean): Add `*.core'.
760 (clean): Add `bootstrap-emacs'.
761
1fa28578
GM
762 * lread.c (read_integer): New function.
763 (read1): Support read syntax #o, #x, #b, #r.
764
99633e97
SM
7652000-03-15 Stefan Monnier <monnier@cs.yale.edu>
766
1fa28578
GM
767 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
768 make sure POINTER_TO_OFFSET gives the same value before and after
769 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
770 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
771 (debug): Now only active if > 0 rather than if != 0.
772 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
773 (print_partial_compiled_pattern): Add missing `succeed' case. Use
774 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
775 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
776 (store_op1, store_op2, insert_op1, insert_op2)
777 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
778 (group_in_compile_stack): Move to after its arg's types are
779 declared and add a prototype.
99633e97 780 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
781 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
782 wrapper.
99633e97 783 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
784 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
785 indentation of the greedy-op and shy-group code.
99633e97
SM
786 (at_(beg|end)line_loc_p): Fix argument's types.
787 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
788 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
789 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
790 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
791 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
792 QUIT unconditionally.
99633e97 793
699238d9
GM
7942000-03-15 Gerd Moellmann <gerd@gnu.org>
795
796 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
797 a sole completion.
798
799 * process.c (send_process): Add a hint that the function
800 can call Lisp code to its comment.
801
802 * lread.c (load_dangerous_libraries): New variable.
803 (Vbytecomp_version_regexp): New variable.
804 (safe_to_load_p): New function.
805 (Fload): Handle files not compiled with Emacs specially.
806 (syms_of_lread): New Lisp variable load-dangerous-libraries.
807
34e23e5a
GM
8082000-03-14 Gerd Moellmann <gerd@gnu.org>
809
9c763cca
GM
810 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
811
812 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
813 support functions only if HAVE_X11R6_XIM is defined.
814 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
815
816 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
817
818 * xfns.c (X_I18N_INHIBITED): Don't define.
819 (create_frame_xic): Remove conditional compilation on
820 X_I18N_INHIBITED.
821 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
822
823 * config.in (HAVE_X_I18N): Moved here from xterm.h.
824 (HAVE_X11R6_XIM): Define.
825
826 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
827
34e23e5a
GM
828 * xterm.c (x_term_init): Add support for X resource `synchronous'.
829 If set, call XSynchronize.
830
66f0296e
SM
8312000-03-13 Stefan Monnier <monnier@cs.yale.edu>
832
34e23e5a
GM
833 * regex.c: Declare a new type `re_char' used throughout the code
834 for the string char type. It's `const unsigned char' to match the
835 rest of Emacs. Consistently make sure all pointers to strings use
836 it and make sure all pointers into the pattern use `unsigned
837 char'.
66f0296e 838 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
839 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
840 code duplication.
66f0296e
SM
841
842 * charset.h (GET_CHAR_AFTER_2): Remove.
843 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
844
854a025c
KR
8452000-03-12 Ken Raeburn <raeburn@gnu.org>
846
847 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
848 variable before the invocation of YMF_PASS_LDFLAGS, in case both
849 of them try to use backquotes.
850
b9d2c7e2
DL
8512000-03-12 Dave Love <fx@gnu.org>
852
853 * unexelf.c: Restore changes of 1999-10-19.
854 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
855 fix its type and alignment; copy it from current process.
856
5e5dff44
GM
8572000-03-12 Gerd Moellmann <gerd@gnu.org>
858
9b2f3c38
GM
859 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
860 has been found. Fix bug not computing timer's predecessor.
861
9172b88d
GM
862 * fileio.c (Fread_file_name): Handle case that DIR contains a
863 file name.
864
e1cff360
GM
865 * window.c (Fsave_window_excursion): Doc fix.
866
5e5dff44
GM
867 * xfns.c (x_defined_color): Rewritten to use
868 x_allocate_nearest_color.
869
e411ce4b
EZ
8702000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
871
872 * msdos.c (vga_installed): New function, code moved from
873 dos_set_window_size.
874 (Qbar, Qcursor_type, outside_cursor): New variables.
875 (syms_of_msdos): Intern and staticpro them.
876 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
877 shape used outside Emacs when called for the first time.
878 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
879 cursor shape used outside Emacs.
880 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
881 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
882 type has changed.
883 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
884 parameters specify the cursor. Make qreverse a global
885 variable (renamed to Qreverse).
886
80460654
GM
8872000-03-09 Gerd Moellmann <gerd@gnu.org>
888
889 * fns.c (Fy_or_n_p): Cancel busy-cursor.
890
95cd4c40
SM
8912000-03-08 Stefan Monnier <monnier@cs.yale.edu>
892
893 This is a big redesign of failure-stack and register handling, prompted
894 by bugs revealed when trying to add shy-groups. Overall, what happened
895 is that loops are now structured a little differently, groups can be
896 shy and the code is a little simpler.
897
898 * regex.h: Update the copyright.
899 (RE_SHY_GROUPS): New value.
900 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
901 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
902
80460654
GM
903 * regex.c (enum re_opcode_t): Remove jump_past_alt,
904 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
905 on_failure_jump_(exclusive, loop and smart). Also fix the comment
906 for (start|stop)_memory since they now only take one argument (the
907 second has becomes unnecessary).
908 (print_partial_compiled_pattern): Adjust for changes in
909 re_opcode_t.
910 (print_compiled_pattern): Use %ld to printf long ints and flush to
911 make debugging a little easier.
95cd4c40
SM
912 (union fail_stack_elt): Make the integer unsigned.
913 (struct fail_stack_type): Add a `frame' element.
914 (INIT_FAIL_STACK): Init `frame' as well.
915 (POP_PATTERN_OP): New macro for re_compile_fastmap.
916 (DEBUG_PUSH, DEBUG_POP): Remove.
917 (NUM_REG_ITEMS): Remove.
918 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
919 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
920 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 921 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
922 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
923 macros.
924 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
925 address pushed is not the destination of the jump but the source
926 of it instead.
95cd4c40
SM
927 (NUM_FAILURE_ITEMS): Remove.
928 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
929 registers before the actual failure point). Don't hardcode any
930 meaning for str==NULL anymore.
95cd4c40 931 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
932 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
933 Remove.
95cd4c40
SM
934 (REG_UNSET_VALUE): Use NULL (why not?).
935 (compile_range): Remove declaration since it doesn't exist.
936 (struct compile_stack_elt_t): Remove inner_group_offset.
937 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
938 (regex_grow_registers): Remove dead code.
939 (FIXUP_ALT_JUMP): New macro.
80460654
GM
940 (regex_compile): Add shy-groups Change loops to use
941 on_failure_jump_smart&jump instead of
942 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
943 initial (dummy_failure_)jump. Remove c1_base (looks like unused
944 variable to me). Use `jump' instead of `jump_past_alt' and don't
945 bother with push_dummy_failure in alternatives since it is now
946 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
947 emacs' for (re)allocating the stack.
948 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
949 from loop when bufp->can_be_null rather than jumping to `done'.
950 Avoid jumping backwards so as to ensure termination. Use
951 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
952 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 953 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
954 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
955 improve mutually_exclusive_p to handle ".+\n".
956 (lowest_active_reg, highest_active_reg,
957 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
958 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
959 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
960 variables. Push register (in `start_memory') on the stack rather
961 than storing it in old_reg(start|end). Remove the cycle detection
962 from `stop_memory', replaced by the use of on_failure_jump_loop
963 for greedy loops. Add code for the new on_failure_jump_<foo>.
964 Remove ad-hoc code in `on_failure_jump' to push more registers in
965 the case of a loop. Take out code from `maybe_pop_jump' into
966 separate functions and adapt it to the semantics of
967 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
968 and push_dummy_failure. Remove dummy_failure handling and
969 handling of `failures to jump to on_failure_jump' (this last one
970 was already dead code, it seems).
971 (group_match_null_string_p, alt_match_null_string_p)
972 (common_op_match_null_string_p): Remove.
95cd4c40 973
7397acc4
DL
9742000-03-08 Dave Love <fx@gnu.org>
975
976 * config.in: Don't depend on __STDC__ for volatile.
977 Add POINTER_TYPE, PTR, PROTOTYPES.
978
979 * hftctl.c, strftime.c: Use PROTOTYPES.
980 * eval.c (find_handler_clause): Likewise.
981
982 * mem-limits.h: Use POINTER_TYPE.
983
984 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
985 (memory_warnings): Declare using POINTER_TYPE.
986
5e91ff9e
GM
9872000-03-08 Gerd Moellmann <gerd@gnu.org>
988
feab4fba
GM
989 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
990
25edb08f
GM
991 * xdisp.c (display_echo_area): Temporarily inhibit garbage
992 collection.
993
5e91ff9e
GM
994 * xfns.c: Remove obsolete code in #if 0.
995 (Fx_focus_frame): New function.
996
a735b7e1
KH
9972000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
998
999 * coding.c (coding_category_name): Add coding-category-utf-8,
1000 coding-category-utf-16-be, coding-category-utf-16-le.
1001 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
1002 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
1003 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
1004 (detect_coding_utf_8): New function.
1005 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
1006 UTF_16_LOW_SURROGATE_P): New macros.
1007 (detect_coding_utf_16): New function
1008 (detect_coding_mask): When priorities are specified, skip any
1009 categories that have `nil' coding-system. Fix bug of returning
1010 wrong mask when PRIORITIES is specified and detect_coding_XXX()
1011 returns a mask not set in PRIORITIES.
1012 (detect_eol_type_in_2_octet_form): New function.
1013 (detect_eol): selects detect_eol_type_XXX to call according to
1014 cooding->category_idx.
1015 (detect_coding_system): Remove `nil' coding-system in the result.
1016 (Fupdate_coding_systems_internal): Update all coding-categories.
1017
1018 * coding.h (CODING_CATEGORY_IDX_UTF_8,
1019 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
1020 macros.
1021 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
1022 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
1023 CODING_CATEGORY_IDX_UTF_16_LE.
1024 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
1025 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
1026 (CODING_CATEGORY_MASK_ANY): Include the above macros.
1027 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
1028
9994cc69
GM
10292000-03-07 Gerd Moellmann <gerd@gnu.org>
1030
e9b4e5ff
GM
1031 * doc.c (Fdocumentation_property): If value is not a string,
1032 and doesn't refer to etc/DOC, evaluate it to obtain a string.
1033
f7daf1e1
GM
1034 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
1035 close the display with XtCloseDisplay. This caused a bus error
1036 on OpenWindows.
1037
9994cc69
GM
1038 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
1039 complete but not unique.
1040
4336c705
GM
10412000-03-06 Gerd Moellmann <gerd@gnu.org>
1042
18bb0684
GM
1043 * process.c (send_process): Remove local variable `procname' that
1044 might become invalid when a GC happens. Instead, access the
1045 process name slot directly.
1046
4336c705
GM
1047 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
1048 orig_height if set.
1049
1050 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
1051 orig_height if set.
1052
515d0d0e
EZ
10532000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
1054
1055 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
1056 glyph matrices have been freed.
1057
100b3cbb
GM
10582000-03-05 Gerd Moellmann <gerd@gnu.org>
1059
50df5e5a 1060 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 1061 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
1062
1063 * xfns.c (QCdata): Moved to xdisp.c.
1064
1065 * xdisp.c (QCdata): Moved here from xfns.c.
1066 (syms_of_xdisp): Initialize QCdata.
1067
1068 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
1069
1070 * window.c (coordinates_in_window): Use
1071 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
1072 FRAME_INTERNAL_BORDER_WIDTH.
1073
100b3cbb 1074 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 1075 it is obviously invalid.
100b3cbb
GM
1076
1077 * xterm.c (x_term_init): Create a colormap if not using the
1078 default visual.
1079
1080 * xterm.h (select_visual): Change prototype.
1081
1082 * xfns.c (select_visual): Rewritten. Recognize user-specified
1083 visual classes.
1084 (visual_classes): New variable.
1085
64d739c4
GM
10862000-03-04 Gerd Moellmann <gerd@gnu.org>
1087
1088 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
1089 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
1090 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
1091 (x_decode_color): Don't handle allocation of white and black
1092 specially.
1093 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
1094 XtNcolormap resources.
1095 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
1096 (Fx_create_frame): Initialize color members of x_output structure.
1097 (xpm_load): Pass colormap to XPM lib.
1098
1099 * xfaces.c (x_free_colors): Access colormap of frame using
1100 FRAME_X_COLORMAP. Be paranoid about freeing black and white
1101 when default colormap is used.
1102
1103 * xterm.c (x_term_init): Set Colormap member of x_display_info
1104 structure. Copy colormap if resource `privateColormap' is
1105 specified (PseudoColor only).
1106 (x_setup_relief_color): Access colormap of frame using
1107 FRAME_X_COLORMAP.
1108
1109 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
1110 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
1111
c3cee013
JR
11122000-03-04 Jason Rumney <jasonr@gnu.org>
1113
1114 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
1115 other non-platform-specific equivalents.
64d739c4 1116 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
1117 specific functions and macros as their w32 equivalents where
1118 non-platform-specifics are not available.
1119 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
1120 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
1121 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
1122 (frame_update_line_height): Use macros to access f->output_data.
1123 (defined_color): Remove FIXME comments; fixed.
1124 (x_face_list_fonts, prepare_face_for_display): Put X specifics
1125 into #ifdef blocks. Add WINDOWSNT blocks.
1126 (Fx_list_fonts): Use macros for accessing font data.
1127 (set_lface_from_font_name): Different default fonts for X and
1128 WINDOWSNT.
1129 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
1130 scalable for backward compatibility.
64d739c4 1131 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
1132 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
1133
64d739c4 1134 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
1135 syms_of_w32faces.
1136
1137 * makefile.nt (w32faces.obj): Remove.
1138 (xfaces.obj): Add.
1139
807cc41c
JR
11402000-03-03 Jason Rumney <jasonr@gnu.org>
1141
1142 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
1143 correct parameters.
1144
0007072a
KR
11452000-03-03 Ken Raeburn <raeburn@gnu.org>
1146
1147 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
1148 standard ELF definitions here if the system header does not.
1149
71a6ba55
GM
11502000-03-03 Gerd Moellmann <gerd@gnu.org>
1151
1152 * xterm.c (PER_CHAR_METRIC): Removed.
1153 (x_per_char_metric_1, x_default_char): New functions.
1154 (x_per_char_metric): If font's default char is invalid, return
1155 metrics of a suitably chosen usable default char.
1156 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
1157 char, replace occurrences of unprintable chars with a suitably
1158 chosen usable default char.
71a6ba55 1159
900fa1f1
GM
11602000-03-02 Gerd Moellmann <gerd@gnu.org>
1161
42f55fe0
GM
1162 * xterm.c (note_mouse_highlight): Return quickly if frame's
1163 glyph matrices have been freed.
1164
1165 * dispnew.c (free_glyphs): Block input while freeing matrices.
1166
900fa1f1
GM
1167 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
1168
1169 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
1170 x_free_colors.
1171
1172 * dispextern.h (x_free_colors): Add prototype.
1173
1174 * xfaces.c (x_free_colors): New function.
1175 (unload_color, free_face_colors): Use it.
1176
2f950292
EZ
11772000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1178
1179 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
1180
1181 * window.c [MSDOS]: Include msdos.h.
1182
54d04320
DL
11832000-03-02 Dave Love <fx@gnu.org>
1184
1185 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
1186
1187 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
1188 set C_OPTIMIZE_SWITCH for gcc.
1189
0ba93ac4
KH
11902000-03-02 Kenichi Handa <handa@etl.go.jp>
1191
1192 * coding.c (coding_save_composition): Be sure to allocate
1193 composition data area in coding even if there's no composition in
1194 the current run.
1195
a2bc11d4
JR
11962000-03-01 Jason Rumney <jasonr@gnu.org>
1197
1198 * w32term.c: Equivalent changes to those made to xterm.c on
1199 2000-02-25 and 2000-02-24.
1200
1201 * w32fns.c: Equivalent changes to those made to xfns.c on
1202 2000-02-25 and 2000-02-21.
1203
1204 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
1205 correct line-end convention is followed.
1206
1207 * w32menu.c [HAVE_BOXES]: Remove #undef.
1208 (single_keymap_panes): Remove code for simulating checkmarks.
1209 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
1210 Remove code for drawing simulated checkmarks.
1211 (w32_menu_show): make unibyte help string correctly.
1212 (add_menu_item): draw standard Windows checkmarks. Draw radio
1213 buttons as radio buttons if possible.
1214
72d19d75
GM
12152000-03-01 Gerd Moellmann <gerd@gnu.org>
1216
2df636f4
GM
1217 * sysdep.c (start_of_text): Don't define this function for NetBSD
1218 with ELF.
1219
1220 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
1221 Don't define.
1222 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
1223 (LINKER): Don't undef if __NetBSD__ is defined.
1224
1225 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
1226
1227 * fileio.c [__NetBSD__]: Define `unix'.
1228
72d19d75
GM
1229 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
1230
ed4d0512
GM
12312000-02-29 Gerd Moellmann <gerd@gnu.org>
1232
50b1039f
GM
1233 * atimer.c (start_atimer): Don't abort when timers are stopped.
1234 (append_atimer_lists): New function.
1235 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
1236 arbitrary lists of stopped and running atimers.
1237
ed4d0512
GM
1238 * atimer.c (cancel_atimer): Handle canceling an atimer when
1239 some timers are stopped.
1240
1241 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
1242 after canceling it.
1243
1244 * fns.c (maybe_resize_hash_table): Handle case of new size
1245 coming out as being the same as old size.
1246
387023ee
JR
12472000-02-27 Jason Rumney <jasonr@gnu.org>
1248
1249 * makefile.nt: Add atimer.h to dependencies.
1250 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
1251 * w32console.c: Only disable window system features for dispextern.h
1252 (initialize_w32_display): Build a display info for the console.
1253 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
1254 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
1255 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
1256 as 2 button mice.
1257 * w32gui.h (struct W32FontStruct): Revert last change after change
1258 to xdisp.c.
1259 * w32menu.c (single_submenu): Set up help string.
1260 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
1261 (w32_dialog_show): Set up help string.
1262 * w32term.c (w32_display_info_for_display): Remove unused function.
1263 (w32_draw_bitmap): Use pre-built bitmaps.
1264 (w32_initialize_display_info): New function to initialize parts of
1265 display info that are common to both GUI and console frames.
1266 (w32_term_init): Use w32_initialize_display_info. Do not set
1267 Vw32_num_mouse_buttons here, as it is not called for console
1268 frames. Build bitmaps for indicating truncated lines etc.
1269 (x_delete_display): Destroy pre-built bitmaps.
1270 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
1271 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
1272
4516715a
DL
12732000-02-27 Dave Love <fx@gnu.org>
1274
1275 * lisp.h: Add a bunch of prototypes.
1276
171ca836
KH
12772000-02-26 Kenichi Handa <handa@etl.go.jp>
1278
1279 * keyboard.c (read_char): Set `usec' correctly.
1280
4013921d
KH
12812000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
1282
1283 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
1284 `lambda', set reg[RRR] to the map index.
1285 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
1286 reg[RRR] to 0. Otherwise, set it to -1.
1287
9244a058
GM
12882000-02-25 Gerd Moellmann <gerd@gnu.org>
1289
2df636f4 1290 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 1291
f43d79c1
GM
12922000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1293
1294 * fileio.c (Ffile_symlink_p): If result starts with a `/'
1295 and contains a `:', prepend `/:'.
1296
1297 * window.c (select_window_1): If selected_window is nil,
1298 don't "swap out" the buffer's point.
1299 (Fset_window_configuration): Set selected_window to nil
1300 before calling Fselect_window.
1301 (unshow_buffer): Don't set point in buffer from window's point
1302 if another more recently selected window also shows the buffer.
1303
bed0c171
GM
13042000-02-25 Gerd Moellmann <gerd@gnu.org>
1305
449c3c52
GM
1306 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
1307
f5b58615
GM
1308 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
1309 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
1310 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
1311 variables.
1312 (DEFAULT_BUSY_CURSOR_DELAY): New define.
1313 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
1314 (hide_busy_cursor): New functions.
1315 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
1316
1317 * minibuf.c (read_minibuf): Cancel busy-cursor.
1318
1319 * keyboard.c (command_loop_1): Call start_busy_cursor before
1320 Fcommand_execute and cancel_busy_cursor after it.
1321 (timer_check): Remove busy-cursor code.
1322 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
1323 cursor timer.
1324
1325 * process.c (wait_reading_process_input): Remove busy-cursor code.
1326
1327 * eval.c (Fsignal): Call cancel_busy_cursor instead of
1328 Fx_hide_busy_cursor.
1329
1330 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
1331 Remove prototyoes.
1332 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
1333
1334 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
1335
1336 * xterm.c (XTread_socket): Remove busy-cursor code.
1337
4eb8436f
GM
1338 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
1339 (build_frame_matrix_from_leaf_window): Put code handling
1340 glyph row's not being a slice of a frame row in #if 0.
1341 (sync_window_with_frame_matrix_rows): New function.
1342 (frame_row_to_window): New function.
1343 (mirror_line_dance): Handle copies between windows.
1344
3cb65b0e
GM
1345 * lread.c (Fload): Use `xfree' instead of `free'.
1346 (init_obarray): Use `xmalloc' instead of `malloc'.
1347
bed0c171
GM
1348 * window.c (Fset_window_buffer): Set WINDOW to the window
1349 after decoding.
2add4349
GM
1350 (coordinates_in_window): Take frame's internal border width
1351 into account.
bed0c171 1352
42088c12
GM
13532000-02-24 Gerd Moellmann <gerd@gnu.org>
1354
1355 * xterm.c (x_display_and_set_cursor): Display cursor of
1356 non-selected windows depending on the setting of
1357 cursor_in_non_selected_windows.
1358
1359 * xdisp.c (cursor_in_non_selected_windows): New variable.
1360 (syms_of_xdisp): DEFVAR_BOOL it.
1361
d1e103b2
GM
13622000-02-23 Gerd Moellmann <gerd@gnu.org>
1363
723e779c
GM
1364 * data.c (Fstring_to_number): If number is greater than what
1365 fits into an integer, return a float.
1366
d1e103b2
GM
1367 * eval.c (specbind): Remove references to
1368 keyword_symbols_constant_flag.
1369
1370 * data.c (keyword_symbols_constant_flag): Removed.
1371 (Fmakunbound, set_internal, syms_of_data): Remove references to
1372 keyword_symbols_constant_flag.
1373
1374 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
1375
214f877f
KH
13762000-02-23 Kenichi Handa <handa@etl.go.jp>
1377
1378 * syntax.c (multibyte_syntax_as_symbol): New variable.
1379 (syms_of_syntax): Declare it as a Lisp variable.
1380 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
1381 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
1382 nonzero, treat all multibyte characters as symbol.
42088c12 1383 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
1384 characters.
1385
130adcb7
EZ
13862000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
1387
3cb65b0e 1388 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
130adcb7
EZ
1389 a deleted frame.
1390
17cbbf95
GM
13912000-02-21 Gerd Moellmann <gerd@gnu.org>
1392
1393 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
1394
1395 * xfns.c (x_window_to_frame, x_any_window_to_frame)
1396 (x_non_menubar_window_to_frame): Check the busy-cursor window.
1397
beb0bc36
DL
13982000-02-21 Dave Love <fx@gnu.org>
1399
1400 * frame.c (Vmouse_position_function): New variable.
1401 (Fmouse_position): Use it.
1402 (syms_of_frame): Install it.
1403
1404 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
1405
1d92afcd
GM
14062000-02-20 Gerd Moellmann <gerd@gnu.org>
1407
1408 * fileio.c (Finsert_file_contents): Unbind the binding of
1409 standard-output done by temp_output_buffer_setup.
329eed9f
GM
1410
1411 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
1412 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
1413 (specbind, unbind_to): Handle most common case of non-constant
1414 symbol with trivial value specially.
1415
1416 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
1417
2d06696f
RS
14182000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1419
1420 * data.c (Fmake_variable_buffer_local): Doc fix.
1421 Init found_for_buffer to 0.
1422 (Fmake_variable_frame_local): If the variable has already
1423 been buffer-local, set the check_frame field.
1424
1d4311c3
EZ
14252000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
1426
1427 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
1428 produced for CODING_MODE_LAST_BLOCK requires.
1429
2dc95ddd
DL
14302000-02-18 Dave Love <fx@gnu.org>
1431
1432 * keyboard.c (echo_keystrokes): Remove declaration.
1433 (Vecho_keystrokes) New variable.
1434 (read_char, record_menu_key, read_key_sequence): Use it to allow
1435 use of float value.
1436 (syms_of_keyboard): Change Vecho_keystrokes declaration.
1437
1438 * lread.c: Undef feature selection macros before defining.
1439
f0930f35
GM
14402000-02-18 Gerd Moellmann <gerd@gnu.org>
1441
1442 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
1443 for symbols other than the symbol in question.
1444
e3d4de90
DL
14452000-02-17 Dave Love <fx@gnu.org>
1446
1447 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
1448
0b378936
GM
14492000-02-17 Gerd Moellmann <gerd@gnu.org>
1450
d621caf7
GM
1451 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
1452
0b378936
GM
1453 * alloc.c (enum mem_type): Compile unconditionally.
1454
3b451f74
EZ
14552000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
1456
1457 * xfaces.c (tty_defined_color): Don't return faulire indication
1458 for unspecified-fg and unspecified-bg pseudo-colors.
1459
10689a01
GM
14602000-02-17 Gerd Moellmann <gerd@gnu.org>
1461
1216f5e4
GM
1462 * alloc.c (mark_object): Don't mark symbol names in pure space.
1463 (gc_sweep): Don't unmark symbol names in pure space.
1464
1465 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
1466 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
1467 [GC_MARK_STACK]: New defines.
1468 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1469 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
1470
1471 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
1472
1473 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
1474 allocate_buffer instead of xmalloc.
1475
1476 * alloc.c (toplevel): Include setjmp.h.
1477 (PURE_POINTER_P): New define.
1478 (enum mem_type) [GC_MARK_STACK]: New enumeration.
1479 (Vdead) [GC_MARK_STACK]: New variable.
1480 (lisp_malloc): Add parameter TYPE, call mem_insert if
1481 GC_MARK_STACK is defined.
1482 (allocate_buffer): New function.
1483 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1484 (free_float) [GC_MARK_STACK]: Set type to Vdead.
1485 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
1486 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
1487 (MEM_NIL) [GC_MARK_STACK]: New define.
1488 (struct mem_node) [GC_MARK_STACK]: New structure.
1489 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
1490 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
1491 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
1492 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
1493 (mark_stack) [GC_MARK_STACK]: New functions.
1494 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
1495 (clear_marks): Removed.
1496 (gc_sweep): Set free conses' car, free floats' type, free
1497 symbols' function to Vdead. Use lisp_free to free buffers.
1498 (init_alloc_once): Initialize Vdead.
1499 (survives_gc_p): Return non-zero for pure objects.
1500
1501 * alloc.c: Add comments throughout the file.
1502
2503c8b1
GM
1503 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
1504 that unblocks alarms.
1505
8389e1e2
GM
1506 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
1507 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
1508 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
1509
10689a01
GM
1510 * frame.c (make_frame): Set frame initiallly to `garbaged'.
1511
bfc17d18
KH
15122000-02-17 Kenichi Handa <handa@etl.go.jp>
1513
4a09dee0
KH
1514 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
1515 avoid infinite error signaling. Allocate sufficient memory for
1516 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 1517
2b927d02
SM
15182000-02-17 Stefan Monnier <monnier@cs.yale.edu>
1519
1520 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
1521 depends on the previous behavior.
1522
b49cb764
GM
15232000-02-16 Gerd Moellmann <gerd@gnu.org>
1524
1525 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
1526
99e95407
GM
15272000-02-15 Gerd Moellmann <gerd@gnu.org>
1528
1529 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
1530
1531 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 1532 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
1533 write(2).
1534
6ffd3cf7
RS
15352000-02-15 Richard M. Stallman <rms@gnu.org>
1536
1537 * data.c (set_internal): Don't make variable buffer-local
1538 if within a let-binding for the same buffer.
1539 (let_shadows_buffer_binding_p): New function.
1540
1541 * eval.c (specbind): For buffer-local value,
1542 record the current buffer also.
1543 (unbind_to): Cope with that change.
1544
cad53475
GM
15452000-02-15 Gerd Moellmann <gerd@gnu.org>
1546
1547 * window.c (Fsave_window_excursion): Doc fix.
1548
1aa963c8
SM
15492000-02-15 Stefan Monnier <monnier@cs.yale.edu>
1550
1551 * syntax.c (back_comment): Make sure we only consider comment-starters
1552 of the relevant style and return -1 in case of a failure to find the
1553 beginning of the comment.
1554 (Fforward_comment): If back_comment fails, go back to the position just
1555 after the comment-end.
1556 (scan_lists): Add comment describing a very minor bug.
1557
b9b84fd3
SM
15582000-02-14 Stefan Monnier <monnier@cs.yale.edu>
1559
1560 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
1561 `completion-regexp-list' in the docstring.
1562
3a28db80
DL
15632000-02-14 Dave Love <fx@gnu.org>
1564
1565 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
1566
fb4a568d
SM
15672000-02-14 Stefan Monnier <monnier@cs.yale.edu>
1568
1569 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
1570 to Emacs' syntax. Also fix the comment about set/not-set meanings
1571 since Emacs syntax is not the value 0 any more.
1572 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
1573 since it's now part of RE_SYNTAX_EMACS.
1574
1063ebb5
DL
15752000-02-12 Dave Love <fx@gnu.org>
1576
1577 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
1578 Alpha.
1579
fb07a302
GM
15802000-02-12 Gerd Moellmann <gerd@gnu.org>
1581
1582 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
1583
aaf2320c
DL
15842000-02-12 Dave Love <fx@gnu.org>
1585
1586 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
1587
1588 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
1589 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
1590 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
1591
1592 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
1593
1594 * s/nextstep.h: Don't define HAVE_ALLOCA.
1595
1596 * config.in: Add vfork bits.
1597
eedf8bde
GM
15982000-02-12 Gerd Moellmann <gerd@gnu.org>
1599
1600 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
1601 unwind function to undo the effect of stopping atimers.
1602
1603 * keyboard.c (bind_polling_period): Stop all timers except
1604 poll_timer.
1605
1606 * atimer.c (stopped_atimers): New variable.
1607 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
1608 New functions.
1609
1610 * atimer.h (stop_other_atimers, run_all_atimers)
1611 (unwind_stop_other_atimers): Add function prototypes.
1612
1613 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
1614
8476c2f8
KR
16152000-02-11 Ken Raeburn <raeburn@gnu.org>
1616
1617 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
1618 library may depend on jpeg.
1619 (atimer.o): Depends on atimer.c.
1620
0e85e4a3
KH
16212000-02-11 Kenichi Handa <handa@etl.go.jp>
1622
1623 * insdel.c (del_range_1): Call update_compositions.
1624 (del_range_both): Call update_compositions just once..
1625
97fa0cc8
DL
16262000-02-10 Dave Love <fx@gnu.org>
1627
1628 * xfns.c (create_frame_xic): Fix initialization of automatic
1629 aggregates for pcc.
1630
25566a3c
KH
16312000-02-09 Kenichi Handa <handa@etl.go.jp>
1632
1633 * ccl.c (CCL_MAKE_CHAR): New macro.
1634 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
1635 registers by CCL_MAKE_CHAR before calling translate_char.
1636 <CCL_TranslateCharacterConstTbl> Likewise.
1637
69da54ba
DL
16382000-02-08 Dave Love <fx@gnu.org>
1639
1640 * lread.c (__EXTENSIONS__): Define.
1641
f7136ee8
GM
16422000-02-08 Gerd Moellmann <gerd@gnu.org>
1643
1644 * puresize.h (BASE_PURESIZE): Increase to 650000.
1645
7768790b
EZ
16462000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
1647
1648 * msdos.c (XMenuActivate): Turn off the cursor after displaying
1649 the help message.
1650
38fd211b
EZ
16512000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
1652
1653 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
1654 md, mh, mb, mr, and me to the fake termcap entry.
1655
66e4690f
KR
16562000-02-06 Ken Raeburn <raeburn@gnu.org>
1657
1658 * sound.c (sound_cleanup): Don't call device close routine if the
1659 function pointer is null.
1660
a75dfea0
AI
16612000-02-06 Andrew Innes <andrewi@gnu.org>
1662
1663 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
1664 around image definitions and prototypes.
1665 (gamma_correct) [WINDOWSNT]: New prototype.
1666
1667 * w32term.c (x_make_frame_visible): Replace call to
1668 input_poll_signal with poll_for_input.
1669
1670 * window.c [WINDOWSNT]: Include w32term.h.
1671
1672 * xdisp.c [WINDOWSNT]: Include w32term.h.
1673
1674 * makefile.nt: Add dependencies on w32gui.h.
1675 (OBJ1): Include atimer.obj.
1676 ($(BLD)\atimer.obj): New dependency rule.
1677
1678 * w32.c (sigmask): New function (does nothing).
1679 (sigunblock): Ditto.
1680
1681 * frame.c [WINDOWSNT]: Include w32term.h.
1682
1683 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
1684
1685 * lread.c (syms_of_lread): Fix literal newlines.
1686
1687 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
1688 the string constant limit (2048 bytes) in MSVC.
1689 (main): Ditto.
1690
59ddecde
GM
16912000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
1692
1693 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
1694 area.
1695 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
1696 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
1697 dispatch the event.
1698
07590973
DL
16992000-02-04 Dave Love <fx@gnu.org>
1700
1701 * fileio.c: Remove some unused vars.
1702 (_GNU_SOURCE): Define (for euidaccess).
1703
1704 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
1705
1706 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
1707 gcpro1, gcpro2.
1708 (read_minibuf): Deal with allow_props correctly.
1709
649351f9
EZ
17102000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
1711
1712 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
1713
66e4690f 17142000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
1715
1716 * search.c (compile_pattern): If a cache entry has a nil regexp,
1717 fill in that entry instead of clobbering a previously cached
1718 string regexp.
1719
66e4690f 17202000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
1721
1722 * puresize.h (BASE_PURESIZE): Increase to 610000.
1723
d240a249
GM
17242000-02-02 Gerd Moellmann <gerd@gnu.org>
1725
1726 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
1727 can GC.
1728
ca91fb26
KH
17292000-02-02 Kenichi Handa <handa@etl.go.jp>
1730
25660570
KH
1731 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
1732 instead of incrementing ic directly.
1733 <CCL_WriteExprConst> Likewise.
1734 <ccl_set_expr>: Set ic to jump_address.
1735
ca91fb26
KH
1736 * fileio.c (e_write): Fix the handling of
1737 CODING_FINISH_INSUFFICIENT_SRC.
1738
2ede9689
DL
17392000-02-01 Dave Love <fx@gnu.org>
1740
1741 * editfns.c (Fpropertize): Doc fix.
1742
1743 * process.c (Fstart_process): Doc fix.
1744
1745 * eval.c: Fix various doc strings not to duplicate information
1746 from help-manyarg-func-alist.
1747
1748 * window.c (Fset_window_margins): Don't make interactive. Doc
1749 fix.
1750
1751 * doc.c (Vhelp_manyarg_func_alist): New variable.
1752 (Fdocumentation): Use it.
1753 (syms_of_doc): Define it.
1754
b6680a0e
GM
17552000-01-31 Gerd Moellmann <gerd@gnu.org>
1756
2cb750ba
GM
1757 * xterm.c (xim_open_dpy): Remove unused local variable.
1758
74e9213b
GM
1759 * emacs.c (USAGE): Use term `display options' instead of `X
1760 options'.
1761
1762 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
1763 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
1764
b6680a0e
GM
1765 * fns.c (sweep_weak_table): New function.
1766 (sweep_weak_hash_tables): Use it. Keep on marking until there
1767 is no more change.
1768
994c5afe
GM
17692000-01-30 Gerd Moellmann <gerd@gnu.org>
1770
1771 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
1772 that XTread_socket does not crash by trying to call XNoOp on a
1773 closed display.
1774
f00276e3
JR
17752000-01-30 Jason Rumney <jasonr@gnu.org>
1776
1777 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
1778 Change selected_frame to SELECTED_FRAME ().
1779 (w32_console_mouse_position): Remove #ifndef MULE from around
1780 `insist' parameter.
1781
1782 * makefile.nt: Remove dosfns.obj.
1783
1784 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
1785
1786 * w32fns.c (w32_defined_color): Check for valid frame before
1787 applying gamma correction. Eliminate dependency on frame elsewhere.
1788 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
1789 (w32_to_x_font): Use resx and resy not height_in and width_in.
1790 (x_to_w32_font): Doc fix.
1791 (xlfd_strip_height): New function to strip and return font height.
1792 (w32_font_match): Compare height separately from rest of xlfd
1793 spec, using xlfd_strip_height.
1794
1795 * w32term.c (w32_term_init): Swap resx and height_in, resy and
1796 width_in. Use w32_defined_color in place of defined_color.
1797
1798 * w32faces.c: Merge more of DOS and X specifics in preparation for
1799 merge with xfaces.c.
1800 (defined_color): Remove FIXME comment.
1801 (tty_color_name): Provide w32-specific function.
1802 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
1803
1804 * w32console.c (turn_on_face, turn_off_face): Removed.
1805 (w32_face_attributes): New function.
1806 (Global_variables): Reduce scope where possible.
1807 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
1808 fill attribute.
1809 (hl_mode): Don't modify text attributes.
1810 (write_glyphs): Don't do anything if len <= 0. Use
1811 w32_face_attributes to get attributes for drawing. Write
1812 terminating codes using char_attr_normal.
1813 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
1814 (update_begin, update_end): Likewise.
1815 (vga_stdcolor_name): New function.
1816 (initialize_w32_display): Remove char_attr_reverse and char_attr.
1817 (Fset_screen_color): Remove char_attr_reverse.
1818
b08e8bb2
GM
18192000-01-29 Gerd Moellmann <gerd@gnu.org>
1820
1821 * xfns.c (xic_set_preeditarea): Take window parameter and
1822 window-relative pixel-positions.
1823
1824 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
1825 is its frame's selected window.
1826 (xim_instantiate_callback): Likewise.
1827
1828 * xfns.c (x_create_im): Removed.
1829 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
1830 (supported_xim_styles): Renamed from supported_styles.
1831 (best_xim_style): Renamed from best_style.
1832 (create_frame_xic): Renamed from xic_create_frame.
1833 (free_frame_xic): Renamed from xic_destroy_frame.
1834
18352000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
1836
1837 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
1838 our frames, call XFilterEvent with 2nd parameter `None'.
1839 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
1840 returning XBufferOverflow.
1841 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
1842 area.
1843 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
1844 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
1845 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
1846 (xim_initialize, xim_close)
1847 [HAVE_X_I18N && HAVE_X11R6]: New functions.
1848 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
1849 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
1850 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
1851
1852 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
1853 and `xim_styles'.
1854 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
1855 `xic_style' and `xic_xfs'.
1856 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
1857 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
1858 (FRAME_XIM): Removed.
1859
1860 * xfns.c (supported_styles): New variable.
1861 (DEFAULT_STYLE, DEFAULT_FONT): New macros
1862 (xic_create_xfontset, best_style, xic_create_frame)
1863 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
1864 (xic_set_xfontset): New functions.
1865
142e109c
DL
18662000-01-28 Dave Love <fx@gnu.org>
1867
1868 * s/irix6-5.h: Revert last change after change to irix5-0.h.
1869
1870 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
1871
b02786f9
GM
18722000-01-28 Gerd Moellmann <gerd@gnu.org>
1873
d060bc9f
GM
1874 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
1875 for *scratch* if it already existed.
1876
b02786f9
GM
1877 * emacs.c (USAGE): New macro.
1878 (main): Use it to display usage information.
1879
2c52d7e4
EZ
18802000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
1881
1882 Support for the menu-help feature:
1883
1884 * msdos.h: Change prototypes of XMenuAddSelection and
1885 XMenuActivate.
1886
1887 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
1888 part of the line to the termscript file.
1889 (IT_clear_to_end): Clear the entire line, not just its beginning.
1890 (menu_help_message, prev_menu_help_message): New variables.
1891 (IT_menu_make_room): Make room for the help_text member.
1892 (IT_menu_display): New argument disp_help; all callers changed.
1893 If disp_help is non-zero, store the help text of the active menu
1894 item in menu_help_message.
1895 (XMenuAddPane): Initialize the help_text member to NULL.
1896 (XMenuAddSelection): New argument help_text. Store it in the
1897 XMenu structure.
1898 (XMenuActivate): New argument help_callback. If the value of
1899 menu_help_message has changed since the last time, display the
1900 menu help message text while waiting for the mouse to move. Clear
1901 the echo area before exiting.
1902 (XMenuDestroy): Free the help_text member.
1903
ffe0bcd1
GM
19042000-01-27 Gerd Moellmann <gerd@gnu.org>
1905
1906 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
1907 XMenuAddSelection. Pass help callback to XMenuActivate.
1908 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
1909
50dbd23f
EZ
19102000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
1911
1912 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
1913 and EMACS_SET_USECS.
1914
f5941bf8
GM
19152000-01-26 Dave Love <fx@gnu.org>
1916
6c67ddee
DL
1917 * editfns.c (Fchar_after, Fchar_before): Doc fix.
1918
f5941bf8
GM
1919 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
1920 an error may be signalled.
1921
9e49c990
GM
19222000-01-26 Gerd Moellmann <gerd@gnu.org>
1923
fc3cb460
GM
1924 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
1925 LD_SWITCH_SYSTEM inherited from irix5-0.h.
1926
9e49c990
GM
1927 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
1928
d0c037d8
GM
19292000-01-25 Gerd Moellmann <gerd@gnu.org>
1930
1931 * charset.c (Fstring): If there is a multibyte char among
1932 the args, always return a multibyte string.
1933
e12489f9
GM
19342000-01-25 Gerd Moellmann <gerd@gnu.org>
1935
1936 * sysdep.c (sys_select): Turn atimers off and on instead of
1937 recording and restoring old alarm handler
1938
1939 * process.c (toplevel): Include atimer.h.
1940 (create_process_1): Rewritten.
1941 (create_process): Use atimers instead of alarm.
1942 (wait_reading_process_input) [hpux]: Turn atimers off instead
1943 of turning off SIGALRM.
1944 (wait_reading_process_input): Turn off atimers instead off
1945 calling stop_polling.
1946
1947 * emacs.c (main): Call init_atimer.
1948
1949 * keyboard.c (toplevel): Include systime.h and atimer.h.
1950 (polling_for_input): Removed because unused.
1951 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
1952 (poll_timer): New variable.
1953 (poll_for_input, poll_for_input_1): New functions.
1954 (start_polling, stop_polling): Rewritten.
1955
1956 * keyboard.h (polling_for_input): Removed.
1957
1958 * atimer.h, atimer.c: New files.
1959
1960 * Makefile.in (obj): Add atimer.o.
1961 (atimer.o): New target.
1962
1963 * blockinput.h (pending_atimers): Add extern declaration.
1964 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
1965
1966 * lisp.h (popup_activated_flag): Add extern declaration.
1967
1968 * xmenu.c (popup_activated_flag): Make externally visible.
1969 (popup_activate_callback) [USE_MOTIF]: Increment
1970 popup_activated_flag.
1971 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
1972
1973 * xterm.c (toplevel): Include atimer.h.
1974 (toolkit_scroll_bar_interaction): New variable.
1975 (Fxt_process_timeouts): Removed.
1976 (x_process_timeouts): New function.
1977 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
1978 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
1979 (x_make_frame_visible): Call poll_for_input_1 instead of
1980 input_poll_signal. Don't call alarm.
1981 (x_initialize): Install timer calling x_process_timeouts.
1982
1e5279b9
DL
19832000-01-24 Dave Love <fx@gnu.org>
1984
6c67ddee 1985 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
1986 Don't use -cckr -- apparently not now necessary.
1987
edf6aeb8
EZ
19882000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1989
1990 * msdos.c (IT_menu_display): Truncate long menu lines at the right
1991 screen boundary.
1992
9badad41
JR
19932000-01-23 Jason Rumney <jasonr@gnu.org>
1994
1995 * w32fns.c (w32_defined_color): Apply gamma correction before
1996 trying to map to the palette.
1997 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
1998 to w32_clear_rect.
1999
2000 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
2001 here. Callers changed to always pass real device context.
2002 (w32_draw_bitmap): Likewise.
2003 (w32_get_glyph_overhangs): Likewise.
2004 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
2005 one.
2006 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
2007 pfnSetScrollInfo and SetScrollRange.
2008 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
2009 back into MULE characters after decoding them.
2010 (x_get_glyph_face_and_encoding): Likewise.
2011 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
2012 GetCharABCWidthsW fails, since this is defined on Windows 9x.
2013 (x_produce_glyphs): Calculate per char metrics for a character
2014 that we know exists in default font when font_not_found_p is true.
2015
63bd786b
JR
20162000-01-22 Jason Rumney <jasonr@gnu.org>
2017
2018 * makefile.nt (intervals.obj, composite.obj): New modules.
2019 (composite.h): Added as dependency where appropriate.
2020
2021 * w32gui.h (XGCValue): New struct for emulating X GCs.
2022
2023 * w32term.h (XCharStruct): New struct for emulating X.
2024
2025 * w32console.c (turn_on_face, turn_off_face): New functions.
2026 (change_line_highlight): New prototype for new redisplay.
2027 (write_glyphs): Support multibyte text. Support faces.
2028
2029 * w32faces.c: Complete rewrite for new redisplay based on new
2030 xfaces.c.
2031
2032 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
2033 throughout. struct frame * in place of FRAME_PTR.
2034 Skeleton support for images, toolbars, tooltips from xfns.c.
2035 (Fx_create_frame): Use system default for default scroll bar
2036 width.
2037 (w32_get_arg): Renamed from x_get_arg.
2038 (Fx_file_dialog): New function.
2039 (w32_list_fonts): Check cache before asking system.
2040 (Vw32_enable_synthesized_fonts): New variable.
2041 (Vw32_enable_italics): Obsolete, removed.
2042
2043 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
2044 Use SELECTED_FRAME macro.
2045
2046 * w32menu.c: Add skeleton support for help strings on menus.
2047 (add_menu_item): Native checkbox and radio support added, but not
2048 yet enabled due to bugs.
2049 (push_menu_item): Add parameters type, selection and help.
2050 Callers updated.
2051 Formatting changes to reduce unnecessary diffs with xmenu.c.
2052
2053 * w32select.c (Fw32_set_clipboard_data): Update call to
2054 find_charset_in_str.
2055
2056 * w32term.c: Complete rewrite for new redisplay based on new
2057 xterm.c with necessary sections merged back in from old w32term.c.
2058
6ffd3cf7 20592000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
2060
2061 * data.c (set_internal): Further fix in same criterion.
2062
6ffd3cf7 20632000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
2064
2065 * data.c (set_internal): Fix the criteria for whether
2066 to swap out the old cached binding.
2067
60af03f1
DL
20682000-01-19 Dave Love <fx@gnu.org>
2069
2070 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
2071
f9be074f
KH
20722000-01-18 Kenichi Handa <handa@etl.go.jp>
2073
2074 * regex.c (re_compile_fastmap): While checking a range table for
2075 `charset', skip flag bits for a character class correctly.
2076
52b8dbf9
GM
20772000-01-17 Gerd Moellmann <gerd@gnu.org>
2078
d36100c9
GM
2079 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
2080
52b8dbf9
GM
2081 * xfns.c (x_window): Call lw_create_widget with new parameter
2082 list.
2083
2084 * widget.c (EmacsFrameSetCharSize): Change size of children first
2085 because of problems with main window geometry management under
2086 Lesstif.
2087
2088 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
2089 MENU_ITEMS_ITEM_.*.
2090 (MENU_ITEMS_ITEM_HELP): New enumerator.
2091 (push_menu_item): Add parameter HELP. Record help in menu_items.
2092 (single_menu_item, single_submenu, list_of_items): Call
2093 push_menu_item with new parameter.
2094 (single_submenu): Set help string in widget value.
2095 (menu_highlight_callback): New function.
2096 (set_frame_menubar): Call lw_create_widget with new
2097 parameter list.
2098 (xmenu_show, xdialog_show): Ditto.
2099
3139018f
GM
21002000-01-13 Gerd Moellmann <gerd@gnu.org>
2101
2102 * sound.c (Fplay_sound): Improve doc string.
2103
83c8f461
RS
21042000-01-11 Richard M. Stallman <rms@gnu.org>
2105
2106 * lisp.h (set_internal): Enter the new arg.
2107
2108 * eval.c (specbind): Record buffer-local variables specially,
2109 indicating which buffer's binding was saved.
2110 (unbind_to): Restore buffer-local variables specially
2111 in the proper buffer.
2112
2113 * data.c (set_internal): New arg BUF.
2114
2115 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
2116 * data.c (Fset): Pass new arg to set_internal.
2117 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
2118
1fab1775
GM
21192000-01-11 Gerd Moellmann <gerd@gnu.org>
2120
2121 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
2122 xprintsym.
2123
83c8f461 21242000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
2125
2126 * minibuf.c (Ftry_completion): Doc fix.
2127
7a85e4df
GM
21282000-01-11 Gerd Moellmann <gerd@gnu.org>
2129
2130 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
2131 vector, too.
2132
a970dae4
AS
21332000-01-11 Andreas Schwab <schwab@suse.de>
2134
2135 * coding.c (code_convert_region): Initialize total_skip.
2136
c65d14ee
DL
21372000-01-08 Dave Love <fx@gnu.org>
2138
2139 * eval.c (Fuser_variable_p): Check customizability too.
2140
834938d2
GM
21412000-01-07 Gerd Moellmann <gerd@gnu.org>
2142
2143 * minibuf.c (Fcompleting_read): Doc fix.
2144
e0303cd6
GM
21452000-01-05 Gerd Moellmann <gerd@gnu.org>
2146
8a26744b
GM
2147 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
2148 -L /usr/local/lib.
2149
e0303cd6
GM
2150 * xfns.c (x_create_im): New function to set IM and IC of a frame.
2151 Check that input style is supported before trying to create an
2152 IC for it.
2153 (x_window): Call x_create_im.
2154
2e471eb5
GM
21552000-01-04 Gerd Moellmann <gerd@gnu.org>
2156
560a7bd2
GM
2157 * xfns.c (current_gif_memory_src): New variable.
2158 (gif_load): Record the address of the current memory source
2159 in current_gif_memory_src.
2160 (gif_read_from_memory): Use current_gif_memory_src.
2161
f9ee84a3
GM
2162 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
2163 macros statement form.
2164
d1299cde
GM
2165 * sound.c (struct sound): Renamed from struct sound_file.
2166 (struct sound): Add members `data' and `header_size'.
2167 (enum sound_attr): Add SOUND_DATA.
2168 (current_sound, current_sound_device): Variables renamed from
2169 sound_file and sound_device.
2170 (parse_sound): Parse :data.
2171 (parse_sound): Handle sound data in strings.
2172 (find_sound_type): Function renamed from find_sound_file_type.
2173 (wav_init, au_init): Fail if sound's header_size is smaller than
2174 needed header size.
2175 (wav_play, au_play): Play sounds from string data.
2176
2e471eb5
GM
2177 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
2178
2179 * lisp.h: Add prototype for allocate_string_data.
2180
2181 * alloc.c (Fgarbage_collect): Return number of live and free
2182 strings.
2183
2184 * alloc.c (mark_buffer): Remove code in #if 0.
2185 (gc_sweep): Ditto.
2186 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
2187 (strings_consed): New variable.
2188 (allocate_string): Set it.
2189 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
2190 (Fmemory_use_counts): Return strings_consed. Use Flist.
2191
2192 * alloc.c: General cleanup in comments etc. Remove conditional
2193 compilation for `standalone'.
2194
2195 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
2196
2197 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
2198 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
2199 (DONT_COPY_FLAG): Removed.
2200 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
2201 (struct sdata, struct sblock): New
2202 (struct string_block): Rewritten.
2203 (STRINGS_IN_STRING_BLOCK): New macro.
2204 (oldest_sblock, current_sblock, total_strings, total_free_strings)
2205 (large_sblocks, string_blocks, string_free_list): New variables.
2206 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
2207 (init_strings): Rewritten.
2208 (allocate_string, allocate_string_data, compact_small_strings)
2209 (free_large_strings, sweep_strings): New functions.
2210 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
2211 (struct string_block_head, current_string_block)
2212 (first_string_block, large_string_blocks, STRING_FULLSIZE)
2213 (STRING_PAD): Removed.
2214 (make_uninit_multibyte_string, make_pure_string): Rewritten.
2215 (Fgarbage_collect): Don't set mark bit in large strings.
2216 (mark_object): Mark strings differently. Mark symbol names
2217 differently.
2218 (survives_gc_p): Test marked strings differently.
2219 (gc_sweep): Sweep strings differently, unmark strings in
2220 symbol names.
2221 (compact_strings): Removed.
2222
42608ba8
EZ
22232000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
2224
2225 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
2226 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
2227
e0a09e1a
KH
22282000-01-04 Kenichi Handa <handa@etl.go.jp>
2229
dd9f0750
KH
2230 * fileio.c (Finsert_file_contents): Signal error if visiting file
2231 in a non-empty buffer.
2232
3c0f3b15 2233 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 2234
44cd3ae5
GM
22352000-01-03 Gerd Moellmann <gerd@gnu.org>
2236
2237 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
2238 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
2239
2240 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
2241
c182a70f
EZ
22422000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
2243
2244 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
2245 need to test for MSDOS frames.
2246
24480d5b
EZ
22472000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
2248
2249 * dosfns.c (unspecified_colors): Remove.
2250 (msdos_stdcolor_idx): Use global variables unspecified_fg and
2251 unspecified_bg.
2252 (msdos_stdcolor_name): Return strings for unspecified fore- and
2253 back-ground colors.
2254
2255 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 2256 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
2257 (tty_color_name): Return Lisp strings for unspecified fore- and
2258 back-ground colors.
2259 (Finternal_set_lisp_face_attribute): Remove the special treatment
2260 for Qunspecified_{f,b}g.
2261 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
2262 string.
2263
047f434a
GM
22642000-01-03 Gerd Moellmann <gerd@gnu.org>
2265
2266 * xdisp.c (reseat_at_next_visible_line_start): Position before
2267 newline only if ending up on a newline.
2268 (next_element_from_ellipsis): Return success. Handle case of
2269 displaying no ellipsis. Fix case of ellipsis defined in display
2270 table.
2271 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
2272 returns 0.
2273
d684c676
EZ
22742000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
2275
2276 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
2277 (Fcolor_supported_p): Renamed from face-color-supported-p.
2278
5fe1d139
EZ
22792000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2280
2281 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
2282 list of colors renamed to tty-defined-color-alist.
2283 (tty_color_name): Pass the frame to tty-color-by-index.
2284 (realize_tty_face): tty-color-alist is now a function which
2285 accepts the frame as argument.
2286
2287 * term.c (Ftty_display_color_p): Accept an optional argument
2288 FRAME.
2289
816be8b8
EZ
22902000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2291
2292 * term.c (insert_glyphs): Pass glyph, not &glyph, to
2293 encode_terminal_code.
2294
b635321e
EZ
22952000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2296
2297 * dispnew.c (mode_line_string): Support termcap frames as well.
2298
9b784e96
GM
22992000-01-01 Gerd Moellmann <gerd@gnu.org>
2300
27189709
GM
2301 * syntax.c (Fforward_word): Undo previous change.
2302
2303 * editfns.c (Fconstrain_to_field): Don't constrain if
2304 inhibit-field-text-motion is non-nil.
2305 (Fline_beginning_position): Undo previous change.
2306 (Fline_end_position): Ditto.
2307
2308 * syntax.c (Fforward_word): Notice field boundaries only if
2309 inhibit-field-text-motion is nil.
2310
2311 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
2312
2313 * editfns.c (Vinhibit_field_text_motion): New variable.
2314 (inhibit-field-text-motion): New DEFVAR_LISP.
2315 (Fline_beginning_position, Fline_end_position): Notice field
2316 boundaries only if inhibit-field-text-motion is nil.
2317
45158a91
GM
2318 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
2319 All calls adjusted.
2320 (x_build_heuristic_mask): Likewise.
2321 (xbm_load_image_from_file): Change error output.
2322 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
2323 (gif_load, gs_load, x_kill_gs_process): Ditto.
2324
9b784e96
GM
2325 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
2326 color indices when accessing raster pixels.
63cec32f
GM
2327 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
2328 one of :file or :data.
2329 (enum pbm_keyword_index): Add PBM_DATA.
2330 (pbm_format): Add :data.
2331 (pbm_image_p): Allow either :file or :data.
2332 (pbm_read_file): New function.
2333 (pbm_scan_number): Rewritten to read from string.
2334 (pbm_load): Support :data.
9b784e96 2335
5ad6a5fb
GM
23361999-12-31 Gerd Moellmann <gerd@gnu.org>
2337
2338 * xfns.c: New image functions adapted to Emacs conventions.
2339 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
2340 variable `file'.
2341
63448a4d
WP
23421999-12-31 William M. Perry <wmperry@aventail.com>
2343
2344 * xfns.c (jpeg_format): Added the :data keyword
2345 (jpeg_image_p): JPEG is valid with :file _or_ :data
2346 (jpeg_memory_src): Defined new JPEG image source to read from a
2347 memory buffer.
2348 (jpeg_load): Pay attention to the :data keyword if specified.
2349 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
2350 found.
2351 (png_format): Added the :data keyword
2352 (png_image_p): PNG is valid with :file _or_ :data
2353 (png_read_from_memory): New PNG read function to read from a
2354 memory buffer.
2355 (png_load): Pay attention to the :data keyword if specified. Uses
2356 png_set_read_fn() instead of png_init_io() if specified.
2357 (tiff_format): Added the :data keyword for TIFF images.
2358 (tiff_image_p): TIFF is valid with :file _or_ :data
2359 (tiff_read_from_memory): Defined new TIFF I/O functions to read
2360 from a memory buffer.
2361 (tiff_load): Pay attention to the :data keyword if specified.
2362 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
2363 (gif_format): Added the :data keyword
2364 (gif_image_p): GIF is valid with :file _or_ :data
2365 (gif_read_from_memory): New GIF input function to read from a
2366 memory buffer.
c65d14ee 2367 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
2368 instead of DGifOpenFileName() if specified.
2369
c880678e
GM
23701999-12-31 Gerd Moellmann <gerd@gnu.org>
2371
2372 * xdisp.c (next_element_from_buffer): Change assertion at the end
2373 because it doesn't hold when there's an overlay string at the end
2374 from which we deliver an image.
2375
8ccb9a54
EZ
23761999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
2377
2378 * msdos.c (IT_update_begin): Don't dereference members of struct
2379 window for deleted windows.
2380
12ce2351
GM
23811999-12-30 Gerd Moellmann <gerd@gnu.org>
2382
a915c648
GM
2383 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
2384 a hook, and the hook has a non-nil `no-self-insert' property, let
2385 the return value of the hook specify whether an expansion took
2386 place. If it returns nil, no expansion has been performed.
2387
12ce2351
GM
2388 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
2389 differently.
2390
04ee4f45
EZ
23911999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
2392
2393 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
2394
7f4bc0c3
EZ
23951999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
2396
2397 * dispnew.c (mode_line_string): Support MS-DOS frames.
2398
dac204bc
GM
23991999-12-29 Gerd Moellmann <gerd@gnu.org>
2400
2401 * eval.c (syms_of_eval): Initialize debugger_may_continue.
2402
7b712ad8
KH
24031999-12-29 Kenichi Handa <handa@etl.go.jp>
2404
2405 * process.c (read_process_output): Fix the args CHARPOS and LENINS
2406 to signal_after_change.
2407
adb9900f
EZ
24081999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
2409
41ad069b
EZ
2410 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
2411 dimensions changed, invalidate the mouse highlight info.
2412 (disable_mouse_highlight, help_echo, previous_help_echo): New
2413 variables.
2414 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
2415 (fast_find_position, IT_note_mode_line_highlight)
2416 (IT_note_mouse_highlight): New functions.
2417 (IT_update_begin): If the redisplay affects the window where the
2418 mouse highlight is, clear the highlight. If the frame where the
2419 highlight was displayed was killed, invalidate the highlight
2420 info.
2421 (IT_update_end): Reset the highlight flag. Reset the mouse
2422 highlight-defer flag.
2423 (IT_frame_up_to_date): New function, if mouse highlight was
2424 deferred due to GC, do it now.
2425 (internal_terminal_init): Initialize mouse-highlight related
2426 members of the_only_x_display. Assign IT_frame_up_to_date to
2427 frame_up_to_date_hook.
2428 (dos_rawgetc): If the mouse moved, update mouse highlight. If
2429 help_echo changed value, generate a HELP_EVENT event.
2430 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
2431
adb9900f
EZ
2432 * msdos.h (struct display_info): New.
2433 (struct x_output): Add the display_info member.
2434 (FRAME_X_DISPLAY_INFO): New macro.
2435
481b5054
GM
24361999-12-28 Gerd Moellmann <gerd@gnu.org>
2437
2438 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
2439 if MODIFF > 1.
6448a6b3 2440 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
2441
2442 * buffer.c (modify_overlay): Always compute unchanged info.
2443
a2882b0d
KH
24441999-12-27 Kenichi Handa <handa@etl.go.jp>
2445
2446 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
2447
89ba5b5f
KH
24481999-12-27 Kenichi Handa <handa@etl.go.jp>
2449
2450 The following changes are to use more bits for face IDs.
2451
2452 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
2453 lowest 8 bits are single byte character code, the bits above are
2454 face ID.
481b5054 2455 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 2456 above.
481b5054
GM
2457 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
2458 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
2459
2460 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
2461 of GLYPH_MASK_CHAR.
2462
2463 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
2464 of GLYPH_MASK_CHAR.
2465
2466 * dispextern.h (struct glyph): Make face_id and padding_p the top
2467 level members. Change members in union `u'.
2468 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
2469 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
2470 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
2471 (CHAR_GLYPH_PADDING_P): Likewise.
2472 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
2473 characters.
2474
481b5054 2475 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
2476 for the change of struct glyph.
2477 (line_draw_cost): Adjusted for the change of
2478 GLYPH_FROM_CHAR_GLYPH.
2479 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
2480
2481 * term.c (encode_terminal_code): Adjusted for the change of struct
2482 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 2483 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
2484 change of struct glyph.
2485
2486 * xdisp.c: All codes adjusted for the change of struct glyph.
2487
2488 * xterm.c: All codes adjusted for the change of struct glyph.
2489
5bcd116c
KH
24901999-12-27 Kenichi Handa <handa@etl.go.jp>
2491
2492 * composite.h (struct composition): Change the order of declaring
2493 members to reduce the byte size of the structure.
2494
f21b06b7
GM
24951999-12-25 Gerd Moellmann <gerd@gnu.org>
2496
2497 * search.c (looking_at_1): Reset immediate_quit before modifying
2498 global data.
2499
e36557c9
KH
25001999-12-24 Kenichi Handa <handa@etl.go.jp>
2501
2502 * process.c (read_process_output): Fix the arg FROM to
2503 update_compositions.
2504
83c8f461 25051999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
2506
2507 * search.c (Freplace_match): For nonliteral replacement in buffer,
2508 construct all the new text first, then insert all at once.
2509
0b863bd9
DL
25101999-12-22 Dave Love <fx@gnu.org>
2511
2512 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
2513
6d8e8ef3
GM
25141999-12-22 Gerd Moellmann <gerd@gnu.org>
2515
28d7281d
GM
2516 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
2517 lead to size changes to after the X window has been created.
2518
e22ef6eb 2519 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
2520 variable in xassert.
2521
8affcced
KH
25221999-12-22 Kenichi Handa <handa@etl.go.jp>
2523
2524 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 2525 only when the frame is not for a window system.
8affcced 2526
f2be1146
GM
25271999-12-22 Gerd Moellmann <gerd@gnu.org>
2528
deca1348
GM
2529 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
2530 redisplay after changing the multibyteness of a buffer.
2531
f2be1146
GM
2532 * xterm.c (XTread_socket): At the beginning of the loop, pass the
2533 frame's X window to XFilterEvent instead of None because that's
2534 the X window for which the IC was created. This makes dead
2535 accents work when the pointer is not in Emacs' frame.
2536 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
2537
a744a2ec
DL
25381999-12-20 Dave Love <fx@gnu.org>
2539
2540 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
2541
9e6985ed
GM
25421999-12-19 Gerd Moellmann <gerd@gnu.org>
2543
2544 * eval.c (debugger_may_continue): New variable.
2545 (syms_of_eval): Add a DEFVAR_BOOL for it.
2546 (call_debugger): Bind it.
2547
3b620731
EZ
25481999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2549
2550 * msdos.c (IT_set_face): Don't swap face colors when highlight or
2551 fp->tty_reverse_p is set, unless the computed colors are identical
2552 to frame colors. Print both original and computed colors to
2553 termscript file.
2554 (IT_write_glyphs): Track the changes in handling of composite
2555 characters.
2556 (IT_set_frame_parameters): Don't set frame colors from
2557 unspecified-fg and unspecified-bg pseudo-colors.
2558
0f9a51c4
DL
25591999-12-17 Dave Love <fx@gnu.org>
2560
2561 * data.c (Fkeywordp): New function.
2562 (syms_of_data): Install it.
2563
363e4e42
EZ
25641999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2565
2566 * xfaces.c (tty_defined_color): Fix last change.
2567
cfad01b4
GM
25681999-12-15 Gerd Moellmann <gerd@gnu.org>
2569
2570 * xdisp.c (redisplay_window) <optional new window start>: Check
2571 that window start is in [BEGV..ZV].
2572
f9d2fdc4
EZ
25731999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
2574
2575 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
2576 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
2577
2578 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
2579 (syms_of_xfaces): Initialize and staticpro them.
2580 (tty_defined_color): If the color name is unspecified-fg or
2581 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
2582 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
2583 (tty_color_name): If the color pixel value is either
2584 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
2585 Qunspecified_fg or Qunspecified_bg, respectively.
2586 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
2587 and Qunspecified_bg for foreground and background colors.
2588 (realize_default_face): If the foreground and background colors
2589 are not specified, default to Qunspecified_fg and Qunspecified_bg.
2590 (realize_tty_face): By default, set the face colors to
2591 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
2592 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
2593 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
2594 Reverse the colors if the default colors were reversed.
2595
2596 * dispnew.c (init_display): Initialize the frame pixels of the
2597 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
2598 FACE_TTY_DEFAULT_BG_COLOR.
2599
2600 * term.c (turn_on_face): If the default fore- and background
2601 colors are reversed, enter inverse video mode. Don't send color
2602 escape sequences for unspecified foreground and background colors.
2603 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
2604
2605 * dosfns.c (unspecified_colors): New variable.
2606 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
2607 color names, return FACE_TTY_DEFAULT_FG_COLOR and
2608 FACE_TTY_DEFAULT_BG_COLOR, respectively.
2609 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
2610 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
2611 Qunspecified_bg, respectively.
2612
2613 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
2614 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
2615
e19539f1
KH
26161999-12-15 Kenichi Handa <handa@etl.go.jp>
2617
2618 * coding.c (code_convert_region): Fix the secoding arg to
2619 update_compositions.
2620
5ec14d3c
KH
26211999-12-15 Kenichi Handa <handa@etl.go.jp>
2622
2623 The following changes are for the new composition mechanism. We
2624 have deleted `composition' charset and composite characters,
2625 instead introduced a special text property `composition'.
2626
2627 * Makefile.in (INTERVAL_SRC): Include composite.h.
2628 (INTERVAL_OBJ): Include composite.o.
2629 (SOME_MACHINE_OBJECTS): Include composite.o.
2630 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
2631 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
2632 Depend on composite.h.
2633 (doc.o): Depend on charset.h.
2634 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
2635 (composite.o): New target.
2636
2637 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
2638
2639 * callproc.c (Fcall_process): Call code_convert_string to encode
2640 arguments. Use CODING_REQUIRE_DECODING to check if the process
2641 output should be decoded.
2642
2643 * casefiddle.c: Include composite.h.
2644 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
2645 multibyte character. Adjusted for the change of CHAR_STRING.
2646 (casify_region): Likewise. Call update_compositions.
2647
2648 * category.h (CATEGORY_SET): Delete codes for a composite
2649 character.
2650
2651 * category.c (word_boundary_p): Delete codes for a composite
2652 character.
2653 (Fmake_category_table): New function.
2654 (syms_of_category): Defsubr it.
2655
2656 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
2657 (ccl_driver): Delete codes for a composite character.
2658
2659 * charset.h: In this entry, just `Modified' means that codes for a
2660 composite character is deleted.
2661 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
2662 (charset_composition) (MIN_CHAR_COMPOSITION)
2663 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
2664 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
2665 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
2666 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
2667 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
2668 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
2669 Modified.
2670 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
2671 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
2672 non_ascii_char_to_string.
2673 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
2674 (STRING_CHAR_AND_LENGTH): Likewise.
2675 (FETCH_CHAR_ADVANCE): New macro.
2676 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
2677 (MAX_MULTIBYTE_LENGTH): New macro.
2678 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
2679 (find_charset_in_str): Argument adjusted.
2680 (CHAR_LEN): Modified.
2681
2682 * charset.c: In this entry, just `Modified' means that codes for a
2683 composite character is deleted.
2684 (Qcomposition) (leading_code_composition)
2685 (charset_composition) (min_composite_char) (cmpchar_table)
2686 (cmpchar_table_size) (n_cmpchars): Deleted.
2687 (SPLIT_COMPOSITE_SEQ): Deleted.
2688 (SPLIT_MULTIBYTE_SEQ): Modified.
2689 (char_to_string): Renamed from non_ascii_char_to_string.
2690 Modified.
2691 (string_to_char): Renamed from string_to_non_ascii_char.
2692 (split_string): Renamed from split_non_ascii_string.
2693 (char_printable_p) (Fsplit_char)
2694 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
2695 (char_bytes) (Fchar_width) (strwidth): Modified.
2696 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
2697 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
2698 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
2699 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
2700 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
2701 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
2702 (Fcmpchar_cmp_count): Deleted.
2703 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
2704 (init_charset_once): Modified.
2705 (syms_of_charset): Modified.
2706
2707 * cmds.c (internal_self_insert): Adjusted for the change of
2708 CHAR_STRING.
2709
2710 * coding.h (emacs_code_class_type): Delete the member
2711 EMACS_leading_code_composition.
2712 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
2713 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
2714 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
2715 (COMPOSING_WITH_RULE_P): Macros deleted.
2716 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
2717 macros.
2718 (struct composition_data): New structure.
2719 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
2720 (struct coding_system): New members composition_rule_follows,
2721 cmp_data, cmp_data_start, cmp_data_index.
2722 (coding_save_composition) (coding_free_composition_data)
2723 (coding_adjust_composition_offset): Extern them.
2724
2725 * coding.c: Include composite.h.
2726 (DECODE_CHARACTER_ASCII): Don't handle composition here.
2727 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
2728 of multibyte code here.
2729 (DECODE_CHARACTER_DIMENSION2): Likewise.
2730 (detect_coding_emacs_mule): Change the case label from
2731 EMACS_leading_code_composition to 0x80.
2732 (detect_coding_iso2022): Handle new composition sequence.
2733 (DECODE_ISO_CHARACTER): Likewise.
2734 (check_composing_code): Deleted.
2735 (coding_allocate_composition_data): New function.
2736 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
2737 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
2738 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
2739 (decode_coding_iso2022): Handle new composition sequence.
2740 (ENCODE_ISO_CHARACTER): Don't check composition here.
2741 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
2742 (ENCODE_COMPOSITION_NO_RULE_START)
2743 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
2744 (ENCODE_COMPOSITION_END): Handle new composition sequence.
2745 (ENCODE_COMPOSITION_FAKE_START): New macro.
2746 (encode_coding_iso2022): Handle new composition sequence.
2747 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
2748 (encode_coding_sjis_big5): Ignore composition.
2749 (setup_coding_system): Initialize new members of struct
2750 coding_system. Enable composition only when the coding system has
2751 `composition' property t.
2752 (coding_free_composition_data) (coding_adjust_composition_offset)
2753 (coding_save_composition) (coding_restore_composition): New
2754 functions.
2755 (code_convert_region): Call coding_save_composition for encoding
2756 and coding_allocate_composition_data for decoding. Don't skip
2757 ASCII characters if we handle composition on encoding. Call
2758 signal_after_change with Check_BORDER.
2759 (code_convert_string): Call coding_save_composition for encoding
2760 and coding_allocate_composition_data for decoding. Don't skip
2761 ASCII characters if we handle composition on encoding.
2762 (code_convert_string1): Set Vlast_coding_system_used after calling
2763 code_convert_string.
2764 (code_convert_string_norecord): Disable composition.
2765 (Fset_terminal_coding_system_internal): Likewise.
2766 (Fset_safe_terminal_coding_system_internal): Likewise.
2767 (Fset_keyboard_coding_system_internal): Likewise.
2768 (init_coding_once): Set emacs_code_class[0x80] to
2769 EMACS_invalid_code.
2770
2771 * composite.h: New file.
2772
2773 * composite.c: New file.
2774
2775 * data.c (Faref): Delete codes for a composite character..
2776 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
2777
2778 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
2779 (struct glyph): Add new sub-structure cmp to the union `u'.
2780 (enum display_element_type): New member IT_COMPOSITION.
2781 (enum prop_idx): New member COMPOSITION_PROP_IDX.
2782 (struct it): New members cmp_id, cmp_len.
2783
2784 * dispnew.c (direct_output_forward_char): Check point moving into
2785 or out of a composition. If so, give up direct method.
2786
2787 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
2788
2789 * editfns.c (Fchar_to_string): Adjusted for the change of
2790 CHAR_STRING.
2791 (general_insert_function): Likewise.
2792 (Finsert_char): Likewise.
2793 (Fsubst_char_in_region): Likewise. Call update_compositions.
2794 (Ftranslate_region): Call update_compositions.
2795 (Ftranspose_regions): Call update_compositions.
2796
2797 * emacs.c (main): Call syms_of_composite.
2798
2799 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
2800 CHAR_STRING.
2801 (Finsert_file_contents): Set Vlast_coding_system_used before
2802 calling signal_after_change. Call update_compositions if some
2803 texts are inserted..
2804 (Fwrite_region): Adjusted for the change of a_write and e_write.
2805 (a_write): Argument changed. Work based on character position,
2806 not byte position.
2807 (e_write): Argument changed. Handle new way of composition.
2808
2809 * fns.c (Flength): The length of char-table is MAX_CHAR.
2810 (concat): Adjusted for the change of CHAR_STRING.
2811 (Ffillarray): Adjusted for the change of CHAR_STRING.
2812 (Fset_char_table_default): Delete codes for a composite character.
2813 (hash_put): Return hash index.
2814
2815 * fontset.h (struct font_info): New member vertical_centering.
2816 (Vvertical_centering_font_regexp): Extern it.
2817
2818 * fontset.c (Vvertical_centering_font_regexp): New variable.
2819 (syms_of_fontset): Declare it as a Lisp variable and initialize.
2820 Set Vignore_relative_composition to nil.
2821 (fs_load_font): Initialize `vertical_centering' of struct
2822 font_info.
2823
2824 * indent.c (check_composition): New function.
2825 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
2826 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
2827 (current_column_1): Handle new way of composition.
2828 (Fmove_to_column): Likewise.
2829 (compute_motion): Likewise.
2830
2831 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
2832 (insert_char): Likewise.
2833 (insert): Call update_compositions.
2834 (insert_and_inherit): Likewise.
2835 (insert_before_markers): Likewise.
2836 (insert_before_markers_and_inherit): Likewise.
2837 (insert_from_string): Likewise.
2838 (insert_from_string_before_markers): Likewise.
2839 (insert_from_buffer): Likewise.
2840 (replace_range): Likewise.
2841 (count_combining_composition): Deleted.
2842 (count_combining_before): Delete codes for a composite character.
2843 (count_combining_after): Likewise.
2844 (del_range_1): Call update_compositions.
2845 (del_range_byte): Likewise.
2846 (del_range_both): Likewise.
2847 (Fcombine_after_change_execute): Likewise.
2848
2849 * intervals.h: Include composite.h.
2850 (get_property_and_range): Extern it.
2851 (Vtext_property_default_nonsticky): Extern it.
2852
2853 * intervals.c (adjust_intervals_for_insertion): To check stickines
2854 of properties, pay attention to text-property-default-nonsticky.
2855 (merge_properties_sticky): Likewise.
2856 (get_property_and_range): New function.
2857
2858 * keyboard.c (Vdisable_point_adjustment): New variable.
2859 (Vglobal_disable_point_adjustment): New variable.
2860 (syms_of_keyboard): Declare them as Lisp variables.
2861 (command_loop_1): Check them and call adjust_point_for_property if
2862 necessary.
2863 (adjust_point_for_property): New function.
2864
2865 * keymap.c (push_key_description): Adjusted for the change of
2866 CHAR_STRING.
2867 (Ftext_char_description): Likewise.
2868
2869 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
2870 (hash_put): Adjusted for the change of the definition.
2871 (signal_after_change): Likewise.
2872 (check_point_in_composition): Extern it.
2873
2874 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
2875 Delete a code that handles an invalid too-long multibyte sequence
2876 because we are now sure that we never encounter with such a
2877 sequence.
2878 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
2879 MAX_LENGTH_OF_MULTI_BYTE_FORM.
2880 (init_obarray): Likewise.
2881 (read1): Likewise. Adjusted for the change of CHAR_STRING.
2882
2883 * print.c (printchar): Adjusted for the change of CHAR_STRING.
2884
2885 * process.c: Include composite.h.
2886 (read_process_output): Call update_compositions.
2887
2888 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
2889
2890 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
2891
2892 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
2893 character.
2894
2895 * term.c (encode_terminal_code): Delete codes for a composite
2896 character. Adjusted for the change of CHAR_STRING.
2897 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
2898 Delete codes for a composite character.
2899
2900 * textprop.c (Vtext_property_default_nonsticky): New variable
2901 (syms_of_textprop): Declare it as a Lisp variable.
2902
2903 * window.c (Frecenter): Clear all caches of compositions.
2904
2905 * xdisp.c (it_props): Add an entry for composition.
2906 (face_before_or_after_it_pos): For composition, check face of a
2907 character after the composition.
2908 (handle_composition_prop): New function.
2909 (get_next_display_element): Adjusted for the change of
2910 CHAR_STRING.
2911 (set_iterator_to_next): Handle the case that it->method ==
2912 next_element_from_composition.
2913 (next_element_from_composition): New function.
2914 (message_dolog): Adjusted for the change of CHAR_STRING.
2915 (set_message_1): Likewise.
2916 (check_point_in_composition): New function.
2917 (reconsider_clip_changes): If point moved into or out of
2918 composition, set b->clip_changed to 1 to force updating of the
2919 screen.
2920 (disp_char_vector): Delete codes for a composite character.
2921 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
2922
2923 * xfaces.c (choose_face_fontset_font): Delete codes for a
2924 composite character.
2925 (realize_x_face): Likewise. Change a place to set local variable
2926 `f' to avoid a bug of GCC 2.8.1 on Solaris.
2927
2928 * xfns.c: Include intervals.h.
2929 (syms_of_xfns): Make `display' property nonsticky by default.
2930
2931 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
2932 for find_charset_in_str.
2933
2934 * xterm.h (struct x_output): Change member font_baseline to
2935 baseline_offset.
2936
2937 * xterm.c (x_append_glyph): Setup members of struct glyph properly
2938 for composition.
2939 (x_append_composite_glyph): New function.
2940 (VCENTER_BASELINE_OFFSET): New macro.
2941 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
2942 of struct it for the composition. Cache pixel offsets in the
2943 struct composition. Delete codes for a composite character.
2944 Handle Vignore_relative_composition in composition code.
2945 (struct glyph_string): Delete member cmpcharp, add new member cmp.
2946 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
2947 (x_compute_glyph_string_overhangs): Likewise.
2948 (x_get_glyph_overhangs): Delete codes for a composite character.
2949 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
2950 (x_draw_glyph_string_background): Likewise. Delete codes for
2951 checking s->gidx for a composition.
2952 (x_draw_glyph_string_foreground): Delete code for a composite
2953 character.
2954 (x_draw_composite_glyph_string_foreground): New function.
2955 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
2956 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
2957 (struct work): Deleted.
2958 (x_fill_composite_glyph_string): Argument changed. Mostly
2959 rewritten for that.
2960 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
2961 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
2962 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
2963 (BUILD_GLYPH_STRINGS): For composition, call
2964 BUILD_COMPOSITE_GLYPH_STRING.
2965 (x_new_font): Initialize f->output_data.x->baseline_offset, not
2966 f->output_data.x->font_baseline.
2967
c3c60f13
GM
29681999-12-14 Gerd Moellmann <gerd@gnu.org>
2969
2970 * xterm.c (show_mouse_face): Don't use updated_area, use
2971 TEXT_AREA.
2972
83c8f461 29731999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
2974
2975 * minibuf.c (Fall_completions): Doc fix.
2976
83c8f461 29771999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
2978
2979 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
2980 has been changed by the Lisp code.
2981
d8eccf12
GM
29821999-12-12 Gerd Moellmann <gerd@gnu.org>
2983
2984 * xfns.c: Indentation fixes.
2985
ae56feae
SM
29861999-12-10 Stefan Monnier <monnier@cs.yale.edu>
2987
2988 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
2989
dfa1c6ae
GM
29901999-12-10 Gerd Moellmann <gerd@gnu.org>
2991
2992 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
2993 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
2994
2995 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
2996 to frame.h.
2997
ec18280f
SM
29981999-12-09 Stefan Monnier <monnier@cs.yale.edu>
2999
3000 * keyboard.c (Qratio): New symbol.
3001 (scroll_bar_parts): Add `Qratio' to it.
3002 (syms_of_keyboard): Init `Qratio'.
3003 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
3004 * xterm.c (#includes): Allow compilation with only Xaw.
3005 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
3006 (xt_action_hook): Replace XAW3D by XAW.
3007 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
3008 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
3009 Determine epsilon dynamically and don't try to be too clever.
3010 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
3011 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
3012 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
3013 scrollbar (using `ratio').
3014 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
3015 scrollbar we have so as to set it up more optimally and to fix
3016 xaw3d_arrow_scroll and xaw3d_pick_top.
3017 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
3018 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
3019 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
3020 is not ignored, using a major gross hack.
3021 (x_initialize): Init default values for xaw3d_arrow_scroll and
3022 xaw3d_pick_top.
3023
83b6d970
DL
30241999-12-09 Dave Love <fx@gnu.org>
3025
3026 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
3027
3648c842
GM
30281999-12-08 Gerd Moellmann <gerd@gnu.org>
3029
3030 * eval.c: Remove conditional compilation on `standalone'.
3031 (call_debugger): When entering the debugger while redisplaying,
3032 reset redisplaying_p, and go back to the top-level if the debugger
3033 returns.
3034
05e71564
GM
30351999-12-07 Gerd Moellmann <gerd@gnu.org>
3036
3037 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
3038 basic faces are realized before trying to use face `menu'.
3039
3040 * window.c (delete_window): Block input for the time window
3041 matrices are being changed.
3042
b46cd536
DL
30431999-12-07 Dave Love <fx@gnu.org>
3044
3045 * lread.c (Fintern_soft): Fix newlines in doc string.
3046
96acb1f7
GM
30471999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
3048
3049 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
3050 duplicate definition of ElfW.
3051 (find_section): Copied from unexsgi.c.
3052 (unexec): Use find_section. Adjust whitespace. Initialize
3053 new_data2_offset based on old_data, not sbss (this fixes a bug on
3054 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
3055 Adjust test for presence of .mdebug section to the new return
3056 value of find_section.
3057
30581999-12-07 Gerd Moellmann <gerd@gnu.org>
3059
3060 * unexelf.c: Merge changes from 20.5.
3061 (unexec): Handle .lit4 and .lit8 unconditionally.
3062
3063 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
3064 unexsgi.o again.
3065
3066 * m/iris5d.h (UNEXEC): Likewise.
3067
7dae4502
SM
30681999-12-06 Stefan Monnier <monnier@cs.yale.edu>
3069
3070 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
3071 (syms_of_editfns): Register it.
3072 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
3073 (del_range_1, del_range_2): Add a ret_string argument to
3074 request that the deleted text be returned.
3075 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 3076 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
3077 * casefiddle.c (casify_region): Update del_range_1 call.
3078 * coding.c (code_convert_region): Update del_range_2 call.
3079 * fileio.c (Finsert_file_contents): Update del_range_2 call.
3080
397e4fae
GM
30811999-12-06 Gerd Moellmann <gerd@gnu.org>
3082
3083 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
3084
3d973f71
GM
30851999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
3086
3087 * lread.c (Fintern_soft): Accept a symbol argument.
3088
740e985f
EZ
30891999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
3090
3091 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
3092
3093 * insdel.c (adjust_markers_for_delete): Fix last change.
3094
2d764c78
EZ
30951999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
3096
3097 Changes for automatic remapping of X colors on terminal frames:
3098
3099 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
3100 frames.
3101 (Vface_tty_color_alist): Remove.
3102 (tty_defined_color): New function.
3103 (defined_color): Rewrite to support any type of frame.
3104 (tty_color_name): New function.
3105 (face_color_supported_p, Fface_color_gray_p,
3106 Fface_color_supported_p): Support non-X frames.
3107 (load_color): Enclose the color name in quotes, in the log
3108 messages. Remove DOS-specific version of load_color.
3109 (realize_tty_face): Take the supported colors from
3110 tty-color-alist. Support translation of X colors to the closest
3111 tty color, for both MSDOS and tty frames.
3112 [MSDOS]: Don't invert face colors if they were taken from the
3113 frame colors.
3114 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
3115
3116 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
3117 Define a mostly empty surrogate.
3118 (tty_display): Declare.
3119
3120 * frame.c (make_terminal_frame) [!macintosh]: Don't use
3121 tty_display.
3122 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
3123 frames when the frame's param_alist includes 'reverse.
3124 (tty_display): Define.
3125 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
3126 output_data.x member.
3127 (Fframe_parameters): Return foreground and background color names
3128 on tty frames as well, in addition to MSDOS frames.
3129
3130 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
3131 selected_frame.
3132 (struct x_output): Remove unused members; document who uses each
3133 member.
3134 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
3135 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
3136 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
3137 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
3138 unused macro definintions.
3139
3140 * msdos.c (IT_set_frame_parameters): Don't call
3141 recompute_basic_faces, the next redisplay will, anyway.
3142 (x_current_display): Remove unused variable.
3143 Many functions: changes for Lisp_object selected_frame.
3144 (IT_set_face): If the tty_reverse_p flag is set for the face,
3145 reverse the foreground and background colors.
3146 (Fmsdos_remember_default_colors): New function.
3147 (syms_of_msdos): Defsubr it.
3148 (IT_set_frame_parameters): Use initial_screen_colors[] when
3149 creating a new frame. If the frame parameters include 'reverse,
3150 swap the foreground and background colors.
3151 (internal_terminal_init): Initialize initial_screen_colors to -1.
3152 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
3153 cus-start.el.
3154
3155 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
3156
3157 * xfns.c (x_defined_color): Rename from defined_color. All
3158 callers changed.
3159 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
3160 all callers changed.
3161 (Fxw_color_values): Renamed from Fx_color_values; all callers
3162 changed.
3163 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
3164 callers changed.
3165 (x_window_to_frame, x_any_window_to_frame,
3166 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
3167 x_top_window_to_frame): Use !FRAME_X_P instead of
3168 f->output_data.nothing.
3169 * xterm.h (x_defined_color): Rename from defined_color.
3170
3171 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
3172 f->output_data.nothing.
3173 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
3174 all callers changed.
3175 (Fxw_color_values): Renamed from Fx_color_values; all callers
3176 changed.
3177 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
3178 callers changed.
3179
3180 * dispextern.h (tty_color_name): Add prototype.
3181
3182 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
3183 f->output_data.nothing.
3184 * w32menu.c (menubar_id_to_frame): Likewise.
3185 * w32term.h (w32_output): Declare.
3186
3187 * dosfns.c (Qmsdos_color_translate): Remove.
3188 (msdos_stdcolor_name): Now returns a Lisp_Object.
3189 * dosfns.h (Qmsdos_color_translate): Remove.
3190
3191 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
3192
b3e5232e
KH
31931999-12-06 Kenichi Handa <handa@etl.go.jp>
3194
3195 * fileio.c (decide_coding_unwind): Renamed from
3196 set_auto_coding_unwind.
3197 (Finsert_file_contents): Make single unwind protect to call both
3198 Vset_auto_coding_function and Ffind_operation_coding_system.
3199
3200 * insdel.c (adjust_markers_for_delete): Make it non-static.
3201
db0e466c
SM
32021999-12-04 Stefan Monnier <monnier@cs.yale.edu>
3203
3204 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
3205 operators and handle them properly.
3206 * regex.h (RE_ALL_GREEDY): New option.
3207 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
3208 sorting would put it.
3209 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
3210 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
3211
22afa6e8
DL
32121999-12-04 Dave Love <d.love@dl.ac.uk>
3213
3214 * m/arm.h: New file.
3215
40afb967
DL
32161999-12-03 Dave Love <fx@gnu.org>
3217
3218 * editfns.c (Fmessage_or_box): Use use_dialog_box.
3219
ddf8eff5
GM
32201999-12-02 Gerd Moellmann <gerd@gnu.org>
3221
3222 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
3223 for building with Motif.
3224
3225 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
3226 unexelf.o.
3227
3228 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
3229
fa09a82d
DL
32301999-12-01 Dave Love <fx@gnu.org>
3231
3232 * emacs.c (main): Set LANG=C iff AX3_2 defined.
3233
ddf8eff5
GM
32341999-11-28 Gerd Moellmann <gerd@gnu.org>
3235
3236 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
3237 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
3238 macros.
3239
3240 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
3241
fa09a82d
DL
32421999-11-28 eliz <eliz@dlpx1>
3243
3244 * emacs.c (synchronize_locale): Avoid compiler warnings about
3245 pointer type mismatch.
3246
f9632fc8
GM
32471999-11-28 Gerd Moellmann <gerd@gnu.org>
3248
717d0121
GM
3249 * window.c (Fwindow_end): Don't call temp_set_pt_both with
3250 out of range position.
3251
f9632fc8
GM
3252 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
3253 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
3254
59c65f1e
EZ
32551999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
3256
613a8346
EZ
3257 * charset.c (Fmake_char_internal): Print the charset ID when
3258 signalling an error.
3259
59c65f1e
EZ
3260 * emacs.c (synchronize_locale): Avoid compiler warnings about
3261 pointer type mismatch.
3262
83c8f461 32631999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
3264
3265 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
3266
18df9369
GM
32671999-11-26 Gerd Moellmann <gerd@gnu.org>
3268
65a3ccf7
GM
3269 * puresize.h (BASE_PURESIZE): Increase to 550000.
3270
b3b98592
GM
3271 * textprop.c (set_text_properties): New function. Like
3272 Fset_text_properties, but with additional parameter
3273 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
3274 changes.
3275 (Fset_text_properties): Use it.
3276
3277 * insdel.c (insert_1_both): Call set_text_properties with last
3278 parameter nil so that no after changes will be signaled.
3279
3280 * lisp.h: Add prototype for set_text_properties.
3281
18df9369
GM
3282 * xfaces.c (set_lface_from_font_name): Fix previous change.
3283 (recompute_basic_faces): Change assert to abort.
3284
71a8e74b
DL
32851999-11-25 Dave Love <fx@gnu.org>
3286
3287 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
3288 (Fmember, Fdelq, Fdelete): Inline car.
3289 (Fy_or_n_p): Doc fix.
3290
bc6a5782
GM
32911999-11-25 Gerd Moellmann <gerd@gnu.org>
3292
3221576b 3293 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 3294 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
3295 is not set, try to use a reasonable default.
3296
bc6a5782
GM
3297 * dispnew.c (direct_output_for_insert): Set glyph row's
3298 displays_text_p flag. Correct window's window_end_vpos if
3299 necessary.
3300
0c8559bb
PE
33011999-11-25 Paul Eggert <eggert@twinsun.com>
3302
3303 * emacs.c (fixup_locale): Don't bother to record initial locale.
3304 (synchronize_locale): If the desired locale is nil,
3305 treat it as if it were the empty string,
3306 so that we set the locale from the environment.
3307
35737351
KH
33081999-11-25 Kenichi Handa <handa@etl.go.jp>
3309
3310 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
3311 of the current buffer via Fset.
3312
5562b47f
DL
33131999-11-24 Dave Love <fx@gnu.org>
3314
3315 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
3316
3317 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
3318
3319 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
3320
00da0e4a
GM
33211999-11-24 Gerd Moellmann <gerd@gnu.org>
3322
3323 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
3324
3325 * emacs.c (PVEC_FLAG): New variable.
3326
b1775dc1
GM
33271999-11-23 Gerd Moellmann <gerd@gnu.org>
3328
3329 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
3330 that fails on IBM PowerPC, AIX 4.2.
3331
08de6200
EZ
33321999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
3333
3334 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
3335 string of mode-line-format. Remove the obsolete %t.
3336
02fda8ff
GM
33371999-11-22 Gerd Moellmann <gerd@gnu.org>
3338
f2fa858f
GM
3339 * dispnew.c (direct_output_for_insert): Increment glyph positions
3340 for glyphs from buffer text only.
3341
02fda8ff
GM
3342 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
3343 (gdb_data_seg_bits): New variables.
3344
3345 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
3346 work on systems not allowing enumerators > INT_MAX, and it
3347 won't work if EMACS_INT is long long.
3348
1b0d24e7
PE
33491999-11-22 Paul Eggert <eggert@twinsun.com>
3350
3351 Port to SunOS 4.1.x again. Help out with Alpha port.
3352 Rename messages-locale to system-messages-locale,
3353 and likewise for time-locale.
3354
3355 * callproc.c (strerror): Remove decl.
3356 * fileio.c (strerror): Likewise.
3357 * process.c (strerror): Likewise.
3358 * emacs.c (strerror): Likewise.
3359 (Vsystem_messages_locale): Renamed from Vmessages_locale.
3360 All uses changed.
3361 (Vprevious_system_messages_locale): Likewise, from
3362 Vprevious_messages_locale.
3363 (Vsystem_time_locale): Likewise, from Vtime_locale.
3364 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
3365 (ABORT_RETURN_TYPE): New macro.
3366 (abort): Return type is now ABORT_RETURN_TYPE.
3367 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
3368 defined.
3369 (syms_of_emacs): messages-locale -> system-messages-locale,
3370 previous-messages-locale -> previous-system-messages-locale,
3371 time-locale -> system-time-locale,
3372 previous-time-locale -> previous-system-time-locale.
3373
3374 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
3375 (const): Do not define; that's config.h's job.
3376 (<limits.h>): Include if HAVE_LIMITS_H is defined.
3377 (CHAR_BIT): Move test for definedness outside of limits.h condition.
3378 (<stddef.h>): Include if STDC_HEADERS is defined.
3379 (FREE_RETURN_TYPE): New macro.
3380 (free): Return type is now FREE_RETURN_TYPE.
3381
3382 * lisp.h (synchronize_system_time_locale): Renamed from
3383 synchronize_time_locale. All uses changed.
3384 (synchronize_system_messages_locale): Likewise, from
3385 synchronize_messages_locale.
3386
3387 * m/alpha.h (malloc, realloc, calloc): Remove decls;
3388 stdlib.h now does this.
3389
3390 * process.c (sys_siglist): Remove.
3391
3392 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
3393 New macros.
3394
3395 * syntax.c (scan_sexps_forward): Use abort, not assert.
3396
3397 * sysdep.c (my_sys_siglist): New var.
3398 (sys_siglist): New macro. Remove old initialized vars of same name.
3399 (init_signals): Initialize sys_siglist.
3400
3401 * xfns.c (abort): Remove decl; stdlib.h now does this.
3402
0dcd5b54
DL
34031999-11-18 Dave Love <fx@gnu.org>
3404
946173ad
DL
3405 * filelock.c: Add forward declaration for get_boot_time_1.
3406
0dcd5b54
DL
3407 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
3408
71447e8f
GM
34091999-11-18 Gerd Moellmann <gerd@gnu.org>
3410
3411 * buffer.h (struct buffer_text): Add comment about moving
3412 buffer text if REL_ALLOC is defined.
3413
eeedff63
KH
34141999-11-18 Kenichi Handa <handa@etl.go.jp>
3415
3416 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
3417
3418 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
3419 memory for push_key_description.
3420
3421 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
3422 allocate memory for push_key_description.
3423 (describe_buffer_bindings): Likewise.
3424
5d7e4a2c
GM
34251999-11-17 Gerd Moellmann <gerd@gnu.org>
3426
3427 * xfns.c (Fx_show_busy_cursor): Doc-fix.
3428 (Fx_hide_busy_cursor): Ditto.
3429
34301999-11-17 Marco Walther <walther@siemens-pyramid.com>
3431
3432 * unexsni.c (unexec): Handle .rel.dyn section.
3433
b5b41e02
DL
34341999-11-16 Dave Love <fx@gnu.org>
3435
3436 * doc.c (Fdocumentation): Remove gcpro here too.
3437
e35b6123
GM
34381999-11-16 Gerd Moellmann <gerd@gnu.org>
3439
3440 * keyboard.c (command_loop_1): Remove no_redisplay.
3441
83c8f461 34421999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
3443
3444 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
3445 in noninteractive.
3446
b05d3bee
GM
34471999-11-14 Gerd Moellmann <gerd@gnu.org>
3448
5bcfeb49
GM
3449 * xdisp.c (ensure_echo_area_buffers): New.
3450 (with_echo_area_buffer): Use it.
3451 (setup_echo_area_for_printing): Ditto.
3452
b05d3bee
GM
3453 * buffer.c (indicate-empty-lines): Doc-fix.
3454
9b2e6e4c
GM
34551999-11-12 Gerd Moellmann <gerd@gnu.org>
3456
e7f90eab
GM
3457 * term.c (term_init): If "op" isn't available, don't support color
3458 because we can't switch back to the default foreground and
3459 background.
3460
9b2e6e4c
GM
3461 * doc.c (Fdocumentation_property): Remove GCPRO because
3462 Fsubstitute_command_keys gcpro's the string.
3463
1bf21027
KH
34641999-11-12 Kenichi Handa <handa@etl.go.jp>
3465
3466 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
3467
3bc6df53
GM
34681999-11-11 Gerd Moellmann <gerd@gnu.org>
3469
3470 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
3471 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
3472 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
3473
35a5514b
GM
34741999-11-10 Gerd Moellmann <gerd@gnu.org>
3475
3476 * xfns.c (QCuser_data): Removed.
3477 (syms_of_xfns): Initialization of QCuser_data removed.
3478 (parse_image_spec): Don't handle :user-data specially. Allow
3479 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
3480 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
3481 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
3482 parse_image_spec accordingly.
3483
83c8f461 34841999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
3485
3486 * cmds.c (Fbeginning_of_line): Doc fix.
3487 (Fend_of_line): Doc fix.
3488
3489 * editfns.c (Fline_beginning_position): If N is not 1,
3490 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
3491
3492 * syntax.c (Fforward_word): Handle fields even if would have hit
3493 an edge of the buffer. Return nil if affected by fields.
3494
83c8f461 34951999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
3496
3497 * editfns.c (preceding_pos): Function deleted.
3498 (text_property_stickiness): Decrement POS directly.
3499 Fix a confusion that used PT instead of POS.
3500
3501 * editfns.c (find_field): Properly handle the case
3502 of a field boundary where `field' inherits from neither side.
3503
3504 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
3505 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
3506
fa9aabf6
GM
35071999-11-08 Gerd Moellmann <gerd@gnu.org>
3508
3509 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
3510 BEFORE_POTENTIAL_GC before DISCARD.
3511
4015b3c0
GM
35121999-11-07 Gerd Moellmann <gerd@gnu.org>
3513
033a5fa3
GM
3514 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
3515
3516 * lisp.h: Add prototype for unmark_byte_stack.
3517
3518 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
3519 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
3520 XUNMARK.
3521
55b064bd
GM
3522 * xdisp.c (resize_mini_window): Fix computation of needed
3523 mini-window height.
3524
3525 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
3526 compilation on USE_TEXT_PROPERTIES.
01e9b9df 3527
4015b3c0 3528 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 3529 locally there. Rearrange case statements so that those most
4015b3c0
GM
3530 frequently executed come first. Avoid goto's in frequently
3531 executed cases.
3532
fe512f27
GM
35331999-11-05 Gerd Moellmann <gerd@gnu.org>
3534
dd59e217
GM
3535 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
3536 AFTER_POTENTIAL_GC around internal_catch.
3537
bcf28080
GM
3538 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
3539 relocate_byte_pcs.
3540 (init_alloc_once, init_alloc): Set byte_stack_list to null.
3541
3542 * eval.c (struct catchtag): Add member byte_stack.
3543 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 3544 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
3545 catchtag.
3546 (unwind_to_catch): Restore byte_stack_list from catchtag.
3547
3548 * lisp.h: Add prototypes for new functions in bytecode.c.
3549 Add extern declaration for byte_stack_list.
3550
3551 * bytecode.c (struct byte_stack): New.
3552 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
3553 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
3554 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
3555 (HANDLE_RELOCATION): Removed.
3556 (Fbyte_code): Use byte_stack structures.
3557
4d59c34c
GM
3558 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
3559
fe512f27
GM
3560 * buffer.c (syms_of_buffer): Extend documentation of
3561 mode-line-format.
3562
60b64cd6
GM
35631999-11-04 Gerd Moellmann <gerd@gnu.org>
3564
3565 * editfns.c (Fdelete_field): Renamed from Ferase_field.
3566
3567 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
3568 Ferase_field instead of Fdelete_field.
3569
b51b619b
GM
35701999-11-03 Gerd Moellmann <gerd@gnu.org>
3571
3572 * dispnew.c (Finternal_show_cursor): Change it to set the
3573 cursor on/off, not toggle its state.
3574 (Finternal_show_cursor_p): New.
3575 (syms_of_display): Defsubr Sinternal_show_cursor_p.
3576
5865af0d
DL
35771999-11-03 Dave Love <fx@gnu.org>
3578
3579 * charset.c (split_non_ascii_string): Define return value.
3580
82a700f3
GM
35811999-11-03 Gerd Moellmann <gerd@gnu.org>
3582
edfef199
GM
3583 * minibuf.c (string_to_object): New.
3584 (read_minibuf_noninteractive): New.
3585 (read_minibuf): Call read_minibuf_noninteractive if
3586 noninteractive. Use string_to_object.
3587
82a700f3
GM
3588 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
3589
b5540f0d
DL
35901999-11-02 Dave Love <fx@gnu.org>
3591
e69dcd60
DL
3592 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
3593
827a1788
DL
3594 * process.c: Define _GNU_SOURCE before config.h to get strsignal
3595 declared with glibc2.
b5540f0d 3596
a69a6e61
GM
35971999-11-02 Gerd Moellmann <gerd@gnu.org>
3598
3599 * lisp.h (QUIT): Give it statement form.
3600
87e21fbd
DL
36011999-11-02 Dave Love <fx@gnu.org>
3602
3603 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
3604
1b335865
GM
36051999-11-02 Gerd Moellmann <gerd@gnu.org>
3606
9fb5e03d
GM
3607 * xfns.c (QCuser_data): New.
3608 (syms_of_xfns): Initialize QCuser_data.
3609 (parse_image_spec): Ignore :user-data DATA properties.
3610
1b335865
GM
3611 * xdisp.c (display_line): Set charpos of first glyph in blank
3612 lines not corresponding to any text to -1, even if no glyphs are
3613 filled in in that line.
3614
e76f1c44
GM
36151999-11-01 Gerd Moellmann <gerd@gnu.org>
3616
36fcd3d9
GM
3617 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
3618 png_get_sRGB in #ifdef.
3619
111259b4
GM
3620 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
3621 (syms_of_display): Use the new name.
3622
dd5c96e8
GM
3623 * textprop.c (verify_interval_modification): Signal text-read-only
3624 instead of calling error.
3625
db8878fb
GM
3626 * data.c (Qtext_read_only): New built-in error.
3627 (syms_of_data): Initialize it.
3628
3629 * lisp.h: Add extern declaration for Qtext_read_only.
3630
e76f1c44
GM
3631 * syntax.c: Remove whitespace after open or in front of closing
3632 parentheses.
3633
83c8f461 36341999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
3635
3636 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
3637
7843e09c
GM
36381999-10-31 Gerd Moellmann <gerd@gnu.org>
3639
575ed805
GM
3640 * xdisp.c (resize_mini_window): Compute needed height differently.
3641
7843e09c
GM
3642 * fns.c (Flength): Unroll loop over lists.
3643
3644 * xdisp.c (append_space): Return non-zero if space was appended.
3645 (display_line): Set charpos of first glyph to -1 only if that
3646 glyph is the space added by append_glyph.
3647
83c8f461 36481999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
3649
3650 * print.c (strout): Consider `noninteractive' and use stdout
3651 only when PRINTCHARFUN is t.
3652
3653 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
3654 (gcpro_level): Declare it extern.
3655 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
3656 Alternate definitions that set `level' and increment `gcpro_level'.
3657 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
3658
3659 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
3660 (init_eval) [DEBUG_GCPRO]: Initialize it.
3661 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
3662 from remaining gcprolist.
3663
3636f7a3
KH
36641999-10-29 Kenichi Handa <handa@etl.go.jp>
3665
3666 * coding.c (code_convert_region): Update `dst' correctly.
3667
a2ad7096
GM
36681999-10-28 Gerd Moellmann <gerd@gnu.org>
3669
3670 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
3671 (Frassoc): Rewritten.
3672
1e3196e8
GM
36731999-10-27 Noah Friedman <friedman@splode.com>
3674
3675 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
3676 Define PTY_NAME_SPRINTF.
3677 Redefine PTY_TTY_NAME_SPRINTF.
3678 * config.in: Add undef for HAVE_DEV_PTMX.
3679
83c8f461 36801999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
3681
3682 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
3683 as arg to DEBUG_POP and DEBUG_PRINT.
3684
83c8f461 36851999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
3686
3687 * data.c (Qad_activate_internal): Renamed from Qad_activate.
3688 (Ffset): Call Qad_activate_internal.
3689 (syms_of_data): Initialize Qad_activate_internal.
3690
26922151
GM
36911999-10-27 Gerd Moellmann <gerd@gnu.org>
3692
3693 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
3694 Vterminal_frame is selected and Vwindow_system is non-nil.
3695
67a5596f
GM
36961999-10-26 Gerd Moellmann <gerd@gnu.org>
3697
2bea706b
GM
3698 * xdisp.c (echo_area_display): Put previous change in #if 0.
3699
67a5596f
GM
3700 * emacs.c (standard_args): Add `file' as synonym for `visit',
3701 `execute' as synonym for `eval'.
3702 (main): Add new options to usage message.
3703
81dc5de5
GM
37041999-10-25 Gerd Moellmann <gerd@gnu.org>
3705
3706 * data.c (Qhash_table): New.
3707 (Ftype_of): Return it for hash tables.
3708 (syms_of_data): Initialize Qhash_table.
3709
83c8f461 37101999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
3711
3712 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
3713
66e4690f 37141999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 3715
7539e11f
KR
3716 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
3717 lisp.h.
3718
3719 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
3720 Fbuffer_local_variables, Fother_buffer, record_buffer,
3721 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
3722 swap_out_buffer_local_variables, overlays_at, overlays_in,
3723 overlay_touches_p, overlay_strings, recenter_overlay_lists,
3724 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
3725 Foverlay_put, report_overlay_modification, evaporate_overlays):
3726 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
3727 references.
3728 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
3729 swap_in_symval_forwarding, set_internal, default_value,
3730 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
3731 Fmake_variable_frame_local, Flocal_variable_p,
3732 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
3733 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
3734 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
3735 * emacs.c (main): Likewise.
3736 * fontset.c (fs_load_font, fs_register_fontset,
3737 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
3738 Fnew_fontset, Fset_fontset_font): Likewise.
3739 * frame.c (do_switch_frame, next_frame, prev_frame,
3740 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
3741 Likewise.
3742 * keyboard.c (read_char, help_char_p, event_to_kboard,
3743 kbd_buffer_get_event, timer_start_idle, timer_check,
3744 make_lispy_event, apply_modifiers, reorder_modifiers,
3745 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
3746 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
3747 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
3748 Fcommand_execute, Fexecute_extended_command): Likewise.
3749 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
3750 Fall_completions): Likewise.
3751 * window.c (Fset_window_margins): Likewise.
3752
3753 * callint.c (quotify_args): Don't explicitly use struct
3754 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
3755
3a7093d8
KR
3756 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
3757 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
3758 if __ELF__ is defined.
3759
2a3d7146
GM
37601999-10-24 Gerd Moellmann <gerd@gnu.org>
3761
3762 * window.c (Fnext_window): Add a QUIT in the loop.
3763
8ac52782
GM
37641999-10-23 Gerd Moellmann <gerd@gnu.org>
3765
3766 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
3767 New targets.
3768
05f0d15a
DL
37691999-10-22 Dave Love <fx@gnu.org>
3770
3771 * emacs.c (main): Enable profiling conditional on __linux also.
3772
882fb0e6
GM
37731999-10-20 Gerd Moellmann <gerd@gnu.org>
3774
3775 * xrdb.c (x_load_resources): Set default resources for resource
3776 classes instead of for the specific Emacs.
3777
b5f5bc31
GM
37781999-10-19 Gerd Moellmann <gerd@gnu.org>
3779
66f4dd69
GM
3780 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
3781 defines it that way.
3782
b5f5bc31
GM
3783 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
3784 if selected_frame is equal to Vterminal_frame.
3785
68c45bf0
PE
37861999-10-19 Paul Eggert <eggert@twinsun.com>
3787
3788 Add support for large files, 64-bit Solaris, system locale codings.
3789
3790 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
3791 when dumping, so that the dumped Emacs doesn't have stray locale info.
3792 (dired.o): Depend on systime.h.
3793 (editfns.o): Depend on coding.h.
3794
3795 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
3796 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
3797 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
3798 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
3799 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
3800 Include <config.h> before any system include files.
3801
3802 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
3803 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
3804 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
3805 xmenu.c, xterm.c:
3806 Do not include <stdlib.h>, as <config.h> does this now.
3807
3808 * callproc.c (Fcall_process):
3809 Synchronize messages locale before invoking strerror.
3810 Decode resulting string with locale-coding-system.
3811
3812 * coding.c (Vlocale_coding_system): New var.
3813 (syms_of_coding): Adjust to above change.
3814 (emacs_strerror): New function.
3815
3816 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
3817
3818 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
3819 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
3820 HAVE_STRSIGNAL): New macros.
3821 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
3822 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
3823
3824 * dired.c: Include "systime.h".
3825 (Ffile_attributes): Do not cast s.st_size to int; this loses
3826 information if int is 32 bits but st_size and EMACS_INT are larger.
3827 Treat large device numbers like large inode numbers.
3828
3829 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
3830
3831 * editfns.c: Include coding.h.
3832 (emacs_strftime): Remove decl.
3833 (emacs_strftimeu): New decl.
3834 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
3835 Use emacs_strftimeu instead of emacs_strftime.
3836 (Fformat_time_string): Convert format string using
3837 Vlocale_coding_system, and convert result back. Synchronize time
3838 locale before invoking lower level function. Invoke
3839 emacs_memftimeu, passing ut, instead of emacs_memftime.
3840
3841 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
3842 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
3843 Vprevious_time_locale): New variables.
3844 (main): Invoke setlocale early, so that initial error messages are
3845 localized properly. But skip locale-setting if LC_ALL is "C".
3846 Fix up locale when it's safe to do so.
3847 (fixup_locale): Moved here from xterm.c.
3848 (synchronize_locale, synchronize_time_locale,
3849 synchronize_messages_locale): New functions.
3850 (syms_of_emacs): Accommodate above changes.
3851
3852 * fileio.c (report_file_error): Convert strerror output according
3853 to Vlocale_coding_system.
3854 (Finsert_file_contents): Check for arithmetic overflow in
3855 computations that depend on file size. Report IO errors
3856 with emacs_strerror, not strerror.
3857
3858 * fns.c (Fgethash): Declare dflt parameter.
3859
3860 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
3861 is defined; that's config.h's job.
3862
3863 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
3864 default these values to long, BITS_PER_LONG, and unsigned long.
3865 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
3866 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
3867 (code_convert_string_norecord, fixup_locale,
3868 synchronize_messages_locale, synchronize_time_locale,
3869 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
3870 All Emacs callers of open, close, read, write changed to use
3871 emacs_open, emacs_close, emacs_read, emacs_write.
3872
3873 * lread.c (file_offset, file_tell): New macros. All uses of ftell
3874 changed to file_tell.
3875 (saved_doc_string_position, prev_saved_doc_string_position): Now
3876 of type file_offset.
3877 (init_lread): Do not fix locale here; fixup_locale now does this.
3878
3879 * m/amdahl.h, s/usg5-4.h:
3880 (NSIG): Remove.
3881 (NSIG_MINIMUM): New macro.
3882
3883 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
3884 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
3885 s/umips.h, s/usg5-4.h:
3886 (SIGIO): Do not undef.
3887 (BROKEN_SIGIO): New macro.
3888
3889 * m/ustation.h:
3890 (SIGTSTP): Do not undef.
3891 (BROKEN_SIGTSTP): New macro.
3892
3893 * s/gnu-linux.h:
3894 (SIGPOLL, SIGURG): Do not undef.
3895 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
3896
3897 * s/ptx4.h:
3898 (SIGINFO): Do not undef.
3899 (BROKEN_SIGINFO): New macros.
3900
3901 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
3902
3903 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
3904 some Emacs-related changes merged.
3905
3906 * print.c (float_to_string): Prepend "-" to representation of a
3907 NaN if the NaN is negative.
3908
3909 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
3910 (wait_reading_process_input): Use emacs_strerror, not strerror.
3911
3912 * process.c (status_message, sigchld_handler): Synchronize locale,
3913 then use strsignal istead of sys_siglist.
3914 * w32proc.c (sys_wait): Likewise.
3915
3916 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
3917 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
3918 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
3919 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
3920 (open, close, read, write, INTERRUPTIBLE_OPEN,
3921 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
3922
3923 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
3924
3925 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
3926 sys_open, open): Remove.
3927 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
3928 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
3929 macros are no longer used.
3930 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
3931 (emacs_close): Renamed from sys_close.
3932 (emacs_read): Renamed from sys_read.
3933 (emacs_write): Renamed from sys_write.
3934 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
3935 (dup2): Do not print error on failure; the real dup2 doesn't.
3936 (strsignal): New function, defined if !HAVE_STRSIGNAL.
3937
3938 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
3939 is defined.
3940 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
3941 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
3942 (strsignal): Declare if !HAVE_STRSIGNAL.
3943
3944 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
3945 (ElfW): Define in terms of ElfExpandBitsW.
3946
3947 * w32proc.c (sys_siglist): Remove decl.
3948
3949 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
3950 with ANSI C.
3951 (display_string): Declare face_string_pos arg.
3952
3953 * xfns.c (Fx_show_tip): Declare timeout param.
3954
3955 * xterm.c: No need to include locale.h.
3956 (x_alloc_lighter_color, x_setup_relief_color):
3957 Pass arg as double, not float, for compatibility with ANSI C.
3958 (fixup_locale): Move to emacs.c.
3959 (x_term_init): Do not setlocale or fixup locale; the main program
3960 does this now.
3961
2f0b74ea
DL
39621999-10-18 Dave Love <fx@gnu.org>
3963
3964 * doc.c (Fdocumentation_property): Gcpro `tem'.
3965
471aa4a0
KH
39661999-10-18 Kenichi Handa <handa@etl.go.jp>
3967
3968 * lread.c (Fload): Calculate bytes of filename correctly.
3969 (openp): Likewise.
3970
aca2020b
KH
39711999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
3972
3973 * print.c (print_preprocess): In case print-circle is nil,
3974 add OBJ to Vprint_number_table only when OBJ is a symbol.
3975
1f5fe392 39761999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
3977
3978 * coding.c (code_convert_string): Add record_unwind_protect to
3979 assure setting inhibit_pre_post_conversion back to zero. Take
3980 care of the multibyteness of the working buffer.
3981
3982 * coding.c (inhibit_pre_post_conversion): New variable.
3983 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
3984 ignore post-read-conversion and pre-write-conversion property of
3985 the coding system.
3986 (code_convert_region_unwind): New function.
3987 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
3988 running pre-write-conversion and post-read-conversion.
3989 (code_convert_string): Likewise.
3990
cd876a91
GM
39911999-10-17 Miles Bader <miles@gnu.org>
3992
3993 * editfns.c: Doc fix.
3994
39951999-10-17 Miles Bader <miles@gnu.org>
3996
3997 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
3998 argument preconditions of find_before_next_newline in the case
3999 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
4000 was indeed at the edge.
4001
40021999-10-17 Miles Bader <miles@gnu.org>
4003
4004 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
4005 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
4006
4007 * editfns.c (text_property_eq, text_property_stickiness): Don't
4008 use initializers for auto variables of type Lisp_Object.
4009 (find_field): Likewise. Use braces around nested ifs.
4010 (Fline_end_position): Store the raw eol in a variable, so that the
4011 final expression doesn't look so ugly.
4012 (Fconstrain_to_field): Doc fix.
4013 (preceding_pos): Renamed from `preceeding_pos'.
4014 (text_property_stickiness, find_field): Call preceding_pos,
4015 not preceeding_pos.
4016
40171999-10-17 Miles Bader <miles@gnu.org>
4018
4019 * editfns.c (Ffield_string_no_properties): New function.
4020 (text_property_stickiness, preceeding_pos): New functions.
4021 (Ffield_string): Remove PROPS parameter.
4022 (find_field): Add MERGE_AT_BOUNDARY parameter.
4023 Rewrite to use stickiness of `field' property to resolve
4024 ambiguous cases.
4025 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
4026 (Fconstrain_to_field): Likewise.
4027 (syms_of_editfns): Init Sfield_string_no_properties.
4028 (Ffield_string, Ferase_field, Ffield_end):
4029 Supply new MERGE_AT_BOUNDARY argument to find_field.
4030 (Fline_beginning_position, Fline_end_position): Supply new
4031 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
4032 Pass a value of Qt for the ONLY_IN_LINE argument to
4033 Fconstrain_to_field (only matters if N != 1).
4034 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
4035 to Fconstrain_to_field.
4036
4037 * minibuf.c (Fminibuffer_complete_word): Use
4038 Ffield_beginning to find the prompt end.
4039
40401999-10-17 Miles Bader <miles@gnu.org>
4041
4042 * editfns.c (Fconstrain_to_field): Add get/set-current-point
4043 behavior when NEW_POS is nil.
4044 (find_field): Use XSETFASTINT instead of make_number.
4045 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
4046 input string by seeing where the field begins, instead of
4047 looking at text-properties.
4048
40491999-10-17 Miles Bader <miles@gnu.org>
4050
4051 * editfns.c (Qfield): New variable.
4052 (find_field, Ferase_field, Ffield_string,
4053 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
4054 (Fline_beginning_position, Fline_end_position): Constrain to any field.
4055 (make_buffer_string_both): Remove minibuffer-prompt hack.
4056 (syms_of_editfns): Initialize Qfield, and subr entries for
4057 field functions above.
4058 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
4059 minibuf_save_list.
4060 Don't initialize minibuffer prompt length.
4061 Wrap prompt text-properties around the entire prompt.
4062 Add 'prompt text-property to prompt.
4063 Get final value with Ffield_string instead of make_buffer_string.
4064 (read_minibuf_unwind): Don't restore minibuffer prompt length from
4065 minibuf_save_list.
4066 (do_completion): Get minibuffer input with Ffield_string
4067 instead of Fbuffer_string.
4068 Erase minibuffer input with Ferase_field instead of erase_buffer.
4069 (Fminibuffer_complete_and_exit): Likewise.
4070 Test whether buffer is empty by looking for the 'prompt text
4071 property at the end.
4072 Set prompt length by looking for the end of the prompt text property,
4073 and save prompt length for later use (since there is no longer a
4074 buffer variable to get it from).
4075 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
4076 (syms_of_minibuf): Remove initializations of
4077 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
4078 * buffer.h (struct buffer): Remove prompt_end_charpos field.
4079 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
4080 Don't initialize prompt_end_charpos field.
4081 * syntax.c (Fforward_word): Likewise.
4082 Constrain to any field.
4083
3f6f7508
GM
40841999-10-16 Gerd Moellmann <gerd@gnu.org>
4085
4086 * window.c (enum save_restore_action): New.
4087 (save_restore_orig_size): Change parameter list. Add
4088 functionality to check for valid orig_top and orig_height members
4089 in a window tree.
4090 (grow_mini_window): Call save_restore_orig_size with new parameter
4091 list.
4092 (shrink_mini_window): Restore old window sizes only if old
4093 size information is valid in all windows in a window tree.
4094
06482119
GM
40951999-10-15 Gerd Moellmann <gerd@gnu.org>
4096
2710454d
GM
4097 * xmenu.c (set_frame_menubar): Don't call
4098 x_set_menu_resources_from_menu_face here.
4099 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
4100
06482119
GM
4101 * xfns.c (gif_load): Fix handling of interlaced GIFs.
4102
17fa2837
DL
41031999-10-14 Dave Love <fx@gnu.org>
4104
4105 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
4106
45f93416
GM
41071999-10-14 Gerd Moellmann <gerd@gnu.org>
4108
4109 * process.c (Fopen_network_stream): Don't loop if gethostbyname
4110 fails and h_errno is TRY_AGAIN.
4111
c765b723
DL
41121999-10-13 Dave Love <fx@gnu.org>
4113
4114 * filelock.c (lock_file): Move gcpro of `fn'.
4115
dace7f4e
GM
41161999-10-10 Gerd Moellmann <gerd@gnu.org>
4117
4118 * keyboard.c (auto-save-interval): Fix documentation.
4119
83c8f461 41201999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
4121
4122 * print.c (print): When removing objects from Vprint_number_table,
4123 only scan the newly added objects.
4124 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
4125 unconditionally force it to stay in the table.
4126
85177c86
GM
41271999-10-09 Gerd Moellmann <gerd@gnu.org>
4128
4129 * xfns.c (prepare_image_for_display): Don't try to load image if
4130 loading it failed before.
4131 (lookup_image, prepare_image_for_display): Remember if loading the
4132 image failed.
4133 (xpm_load): Add missing UNBLOCK_INPUT.
4134
4135 * dispextern.h (struct image): New member load_failed_p.
4136
11e4de5d
SM
41371999-10-08 Stefan Monnier <monnier@cs.yale.edu>
4138
f28eba7b 4139 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
4140 in the docstring.
4141
f1da8f06
GM
41421999-10-08 Gerd Moellmann <gerd@gnu.org>
4143
4144 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
4145 Don't call XSetInputFocus because that can generate additional
4146 FocusIn events.
4147
c37bbd4f
GM
41481999-10-07 Jeffrey C Honig <jch@bsdi.com>
4149
4150 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
4151
83c8f461 41521999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
4153
4154 * process.c (wait_reading_process_input): When trying to suck
4155 input from one process, for accept-process-output,
4156 exit that loop if we get EAGAIN or EWOULDBLOCK.
4157
577d9e2f
GM
41581999-10-07 Gerd Moellmann <gerd@gnu.org>
4159
4160 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
4161 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
4162 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
4163 Fpixmap_spec_p and Qpixmap_spec_p.
4164 (load_face_colors, check_lface_attrs,
4165 merge_face_vector_with_property,
4166 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
4167 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
4168 Fbitmap_spec_p.
4169
f5737ad2
GM
41701999-10-07 Gerd Moellmann <gerd@gnu.org>
4171
4172 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
4173 MODE_LINE_FACE_ID.
4174
4175 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
4176 (struct x_resources) [USE_X_TOOLKIT]: New.
4177 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
4178 [USE_MOTIF]: New.
4179 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
4180 [USE_LUCID]: New.
4181 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
4182 (Qmenu): New.
4183 (syms_of_xfaces): Initialize Qmenu.
4184 (realize_basic_faces): Realize face `menu'.
4185 (resolve_face_name): New.
4186 (lface_from_face_name): Use it.
4187 (Finternal_set_lisp_face_attribute): Ditto.
4188 (Fpixmap_spec_p): Rewritten. Extend doc string.
4189
4190 * xmenu.c (set_frame_menubar, xmenu_show): Call
4191 x_set_menu_resources_from_menu_face.
4192
4193 * dispextern.h (enum face_id): Add MENU_FACE_ID.
4194 (toplevel): Include X11/Intrinsic.h.
4195
6a1aa823
DL
41961999-10-03 Ken'ichi Handa <handa@gnu.org>
4197
4198 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
4199 correctly.
4200
26901792
DL
42011999-09-30 Kenichi Handa <handa@etl.go.jp>
4202
4203 * category.c (modify_lower_category_set): Set default value of
4204 TABLE correctly.
4205
4206 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
4207 size correctly.
4208
42091999-09-29 Gerd Moellmann <gerd@gnu.org>
4210
4211 * editfns.c (Fpropertize): Renamed from Fproperties.
4212
42131999-09-29 Gerd Moellmann <gerd@gnu.org>
4214
4215 * xdisp.c (resize_mini_window): Do nothing if frame is an X
4216 frame that hasn't been initialized yet.
4217
83c8f461 42181999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
4219
4220 * keymap.c (Fsingle_key_description): Make tem big enough.
4221 (describe_buffer_bindings): Make buf big enough.
4222
83c8f461 42231999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
4224
4225 * intervals.c (get_local_map): Use indirect_function,
4226 not Findirect_function.
4227
26901792
DL
42281999-09-27 Dave Love <fx@gnu.org>
4229
4230 * cm.h: Remove unneeded declaration of ospeed.
4231
42321999-09-26 Gerd Moellmann <gerd@gnu.org>
4233
4234 * lisp.h (toplevel): Add prototype for
4235 next_single_char_property_change.
4236
4237 * textprop.c (next_single_char_property_change): New.
4238
4239 * xdisp.c (display_prop_end, invisible_text_between_p): Use
4240 next_single_char_property_change.
4241
42421999-09-25 Gerd Moellmann <gerd@gnu.org>
4243
4244 * editfns.c (Fproperties): New.
4245 (syms_of_editfns): Defsubr it.
4246
4247 * xfns.c (lookup_image): Set image's timestamp because it's
4248 used when we look it up.
4249
42501999-09-23 Gerd Moellmann <gerd@gnu.org>
4251
4252 * window.c (enlarge_window): Add window parameter instead of using
4253 selected_window.
4254 (Fdisplay_buffer): Call it with window parameter instead of
4255 setting selected_window.
4256 (Fenlarge_window, Fshrink_window): Ditto.
4257 (shrink_mini_window): If there is no recorded height and position
4258 info, resize mini-window to height 1.
4259
4260 * xfns.c (image_error): Use add_to_log.
4261
4262 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
4263 (load_face_font_or_fontset, load_color,
4264 merge_face_vector_with_property): Ditto.
4265
4266 * dispextern.h: Add prototype for add_to_log.
4267
4268 * xfaces.c (add_to_log): Move to xdisp.c.
4269
4270 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
4271 parameter.
4272
42731999-09-23 Gerd Moellmann <gerd@gnu.org>
4274
4275 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
4276 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
4277
4278 * xdisp.c (resize_mini_window): Use grow_mini_window and
4279 shrink_mini_window.
4280
4281 * window.c (window_min_size): Add parameter ignore_fixed_p.
4282 (change_window_height): Call window_min_size with new parameter.
4283 (shrink_window_lowest_first, save_restore_orig_size,
4284 grow_mini_window, shrink_mini_window): New.
4285 (make_window, replace_window): Initialize orig_top and
4286 orig_height.
4287 (enlarge_window): Renamed from change_window_height. Make it
4288 static.
4289 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
4290 enlarge_window instead of change_window_height.
4291
4292 * window.h (struct window): New members orig_top, orig_height.
4293 (toplevel): Add prototypes for grow_mini_window and
4294 shrink_mini_window. Remove prototype for change_window_height.
4295
42961999-09-21 Eli Zaretskii <eliz@gnu.org>
4297
4298 * frame.c (frame_name_fnn_p): Fix previous change.
4299
43001999-09-20 Gerd Moellmann <gerd@gnu.org>
4301
4302 * minibuf.c (toplevel): Move include of stdio.h to other includes.
4303
4304 * dispnew.c (direct_output_for_insert): Cast arguments to
4305 safe_bcopy to char *.
4306
4307 * lread.c (readchar): Remove unused variables.
4308 (read_filtered_event, read1, Fmapatoms): Ditto.
4309 (toplevel): Include intervals.h.
4310
4311 * eval.c (Fsignal): Remove unused variables.
4312 (Fcommandp, do_autoload): Ditto.
4313
4314 * lisp.h: Add prototype for safe_bcopy, fatal.
4315
4316 * editfns.c (init_editfns): Remove unused variables.
4317 (Fgoto_char, Fchar_after, Fformat): Ditto.
4318 (message_text, message_length): Put in #ifndef HAVE_MENUS.
4319
4320 * data.c (find_symbol_value): Remove unused variables.
4321 (Faref, Fstring_to_number): Ditto.
4322 (toplevel): Include stdio.h.
4323 (Fnumber_to_string): Cast XINT to long for %ld.
4324
4325 * casefiddle.c (casify_object): Remove unused variables.
4326 (casify_region): Ditto.
4327
4328 * filelock.c (get_boot_time): Put local variable used in
4329 conditinally compiled section in #ifdef.
4330 (toplevel): Include stdio.h.
4331
4332 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
4333 keys_of_keymap, syms_of_keymap): Remove unused variables.
4334
43351999-09-20 Gerd Moellmann <gerd@gnu.org>
4336
4337 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
4338 whose corresponding window rows have been disabled in
4339 try_window_id.
4340
43411999-09-20 Gerd Moellmann <gerd@gnu.org>
4342
4343 * xdisp.c (compute_window_start_on_continuation_line): Handle case
4344 that window start is out of range.
4345 (handle_display_prop, handle_single_display_prop): Replace
4346 marginal area specifications like `left-margin' with `(margin
4347 left-margin)'.
4348 (Qmargin): New.
4349 (syms_of_xdisp): Initialize Qmargin.
4350
43511999-09-19 Gerd Moellmann <gerd@gnu.org>
4352
4353 * syntax.c (update_syntax_table, find_defun_start, back_comment,
4354 describe_syntax, skip_chars): Remove unused variables.
4355 (back_comment, forw_comment): Add braces to if-statement with
4356 if-else as dependent statement.
4357
4358 * process.c (list_processes_1): Remove unused variables.
4359 (Fopen_network_stream, create_process): Add parentheses to
4360 conditional expressions.
4361 (create_process): Put declaration of sigchld in #if 0.
4362 (Fopen_network_stream): Removed unused variables.
4363 (Fopen_network_stream, wait_reading_process_input,
4364 wait_reading_process_input, send_process, send_process): Ditto.
4365 (toplevel): Add prototypes for set_waiting_for_input and
4366 keyboard_bit_set.
4367
4368 * abbrev.c (Fexpand_abbrev): Remove unused variables.
4369
4370 * textprop.c (Fset_text_properties): Remove unused variables.
4371 (text_property_list, verify_interval_modification,
4372 interval_has_all_properties): Ditto.
4373
4374 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4375 (Fcall_process): Remove unused variable.
4376
4377 * keyboard.c (Frecursive_edit): Remove unused variable.
4378 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
4379 timer_check, make_lispy_event, menu_bar_items,
4380 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
4381 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
4382 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
4383 read_key_sequence): Ditto. Fread_key_sequence,
4384 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
4385 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
4386 used when GOBBLE_FIRST_EVENT is defined in #ifdef
4387 (Fexecute_extended_command): Cast XINT to long for %ld.
4388 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4389 (toplevel): Include sys/types.h.
4390
4391 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
4392 (toplevel): Add prototypes for stuff_char, and
4393 code_convert_string_norecord.
4394
43951999-09-19 Gerd Moellmann <gerd@gnu.org>
4396
4397 * buffer.h: Add prototype for r_re_alloc.
4398
4399 * insdel.c (copy_text): Removed unused variables.
4400 (count_combining_after, count_combining_after, insert_1_both,
4401 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
4402 (adjust_after_replace, replace_range): Add parentheses to logical
4403 expressions. Remove unused variables.
4404 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
4405 expression.
4406
4407 * alloc.c (Fgarbage_collect): Remove unused variable.
4408 (compact_strings): Add parentheses around assignments in
4409 conditional context.
4410 (toplevel): Put declaration of unused function clear_marks
4411 in #if 0 like its definition.
4412
4413 * lisp.h: Add prototype for shrink_regexp_cache,
4414 sweep_weak_hash_tables.
4415
44161999-09-19 Dave Love <fx@gnu.org>
4417
4418 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
4419
4420 * doc.c (read_bytecode_char): Declare arg.
4421
4422 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
4423 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
4424
44251999-09-18 Richard Stallman <rms@gnu.org>
4426
4427 * xdisp.c (echo_area_display): Turn off code that returned
4428 without doing anything when using a terminal frame.
4429
83c8f461 44301999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
4431
4432 * unexelf.c (unexec): Don't get confused by a short section
4433 just before the bss section.
4434
26901792
DL
44351999-09-16 Gerd Moellmann <gerd@gnu.org>
4436
4437 * emacs.c (main): Remove unused variables.
4438 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
4439
4440 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
4441 init_fileio_once, syms_of_sound, init_xfns, init_fns
4442 init_sound, check_message_stack.
4443
4444 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4445
4446 * intervals.c (rotate_right, rotate_left): Add braces to avoid
4447 ambiguous else warning.
4448 (split_interval_left): Remove unused variables.
4449 (previous_interval, adjust_intervals_for_deletion,
4450 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
4451 (icount, idepth, zero_length): Move into #if 0 section below
4452 original position where these are used.
4453
4454 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
4455
4456 * buffer.c (Fkill_buffer): Remove unused variables.
4457 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
4458 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
4459 init_buffer_once, (syms_of_buffer): Ditto.
4460
4461 * xrdb.c (get_fallback): Remove unused variable.
4462 (x_load_resources): Ditto. Put local variable used for Motif only
4463 in #ifdef USE_MOTIF.
4464
44651999-09-16 Gerd Moellmann <gerd@gnu.org>
4466
4467 * minibuf.c (read_minibuf): Remove unused variables.
4468 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
4469 (do_completion): Move assignment out of conditional context.
4470 (Fdisplay_completion_list): Add parentheses to conditional expression.
4471
4472 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
4473
4474 * lisp.h: Add prototype for no_switch_window.
4475
4476 * window.c (Fset_window_buffer): Remove unused variables.
4477 (Fset_window_margins): Ditto.
4478
4479 * xdisp.c (resize_mini_window): Temporarily set the selected
4480 window's or Vminibuf_scroll_window's height to "fixed" around
4481 the call the change_window_height.
4482
4483 * window.c (window_fixed_size_p): Check window's height_fixed_p
4484 flag.
4485
4486 * window.h (struct window): New member height_fixed_p.
4487
4488 * dispnew.c (direct_output_forward_char): Don't use this method
4489 if showing a message or a message was just cleared because we
4490 might need to resize the mini-window.
4491
44921999-09-16 Gerd Moellmann <gerd@gnu.org>
4493
4494 * frame.c (Fdelete_frame): Correct local variable pointing to
4495 selected frame after selecting new frame.
4496
44971999-09-15 Richard Stallman <rms@gnu.org>
4498
4499 * puresize.h (BASE_PURESIZE): Increase to 525000.
4500
4501 * filelock.c (Vtemporary_file_directory): New variable.
4502 (syms_of_filelock): Set up Lisp variable.
4503
45041999-09-15 Gerd Moellmann <gerd@gnu.org>
4505
4506 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
4507 (encode_terminal_code): Remove unused variables.
4508 (turn_off_face): Ditto.
4509 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
4510
4511 * dispnew.c (update_frame_line): If writing whole desired line,
4512 don't clear to end of line if already at the end.
4513
45141999-09-15 Gerd Moellmann <gerd@gnu.org>
4515
4516 * xdisp.c (resize_mini_window): Don't report changed window
4517 height if it actually hasn't changed.
4518
4519 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
4520 unused variables.
4521 (mark_shell_size_user_specified): Put in #if 0 because not used.
4522 (create_frame_gcs): Put in #if 0 because currently unused.
4523 (first_frame_p): Ditto.
4524
4525 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
4526 single_submenu, update_frame_menubar, set_frame_menubar,
4527 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
4528 variables.
4529
4530 * print.c (PRINTFULLP): Removed because it is no longer used and
4531 is misleading.
4532 (Ferror_message_string): Remove unused variables.
4533 (print_object): Cast argument of sprintf to long for `%ld'
4534 specifier. Remove unused variable.
4535
45361999-09-14 Gerd Moellmann <gerd@gnu.org>
4537
4538 * sound.c (Fplay_sound): Remove usused variables.
4539 (be2hs): Put in #if 0 because it's currently not used.
4540
45411999-09-14 Ken Raeburn <raeburn@gnu.org>
4542
4543 * print.c (Ferror_message_string, print_error_message,
4544 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
4545 member access.
4546
45471999-09-14 Gerd Moellmann <gerd@gnu.org>
4548
4549 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
4550
4551 * frame.c (Fnext_frame): Remove unused variable(s).
4552 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
4553 (store_frame_param): Add parentheses to conditional expression.
4554 (Fmodify_frame_parameters): Remove unused variables.
4555 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
4556 Ditto.
4557
4558 * xfns.c (x_set_background_color): Remove unused variable(s).
4559 (x_set_border_pixel): Ditto.
4560 (x_set_menu_bar_lines): Put local variable used only for
4561 non-toolkit case in #ifdef/#endif.
4562 (x_figure_window_size): Remove unused variable(s).
4563 (x_figure_window_size, x_window, lookup_image,
4564 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
4565 png_load, jpeg_load, gif_load, x_create_tip_frame,
4566 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
4567
4568 * xterm.c (x_scroll_bar_handle_click): Compile only if
4569 not USE_TOOLKIT_SCROLL_BARS.
4570 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
4571
4572 * dispextern.h: Add prototypes for gamma_correct and
4573 x_kill_gs_process.
4574
4575 * xterm.c (x_produce_glyphs): Remove unused variable(s).
4576 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
4577 x_set_toolkit_scroll_bar_thumb): Ditto.
4578 (x_scroll_bar_create): Move local variable to the
4579 conditionally compiled section of code where it is used.
4580 (x_scroll_bar_create): Remove unused variable(s).
4581 (x_scroll_bar_remove, XTread_socket): Ditto.
4582 (XTread_socket) <ConfigureNotify>: Move variables used for
4583 non-toolkit case into conditionally compiled section of code.
4584
4585 * window.h (freeze_window_starts): Fix typo in prototype.
4586
4587 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
4588 variable(s).
4589
4590 * lisp.h: Add prototype for debug_print.
4591
4592 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
4593 to use do-while.
4594
4595 * fns.c (SXHASH_COMBINE): Add missing parentheses.
4596 (Fchar_table_range, Fset_char_table_default, mapcar1,
4597 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
4598
4599 * lisp.h: Add prototype for getloadavg.
4600
46011999-09-14 Andreas Schwab <schwab@gnu.org>
4602
4603 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
4604
4605 * lisp.h: Declare close_file_unwind.
4606
46071999-09-14 Richard Stallman <rms@gnu.org>
4608
4609 * filelock.c (get_boot_time): Make the temp name in the proper dir.
4610
46111999-09-13 Gerd Moellmann <gerd@gnu.org>
4612
4613 * xdisp.c (redisplay_window): Make sure start_at_line_beg
4614 is always set correctly.
4615
46161999-09-13 Dave Love <fx@gnu.org>
4617
4618 * xdisp.c (move_it_in_display_line_to): Make type consistent with
4619 declaration.
4620
46211999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4622
4623 * xdisp.c (QCfile): Move here from xfns.c.
4624 (syms_of_xdisp): Initialize it.
4625 (message2_nolog): Change for Lisp_Object selected_frame.
4626 (message3_nolog, message_with_string, message,
4627 setup_echo_area_for_printing, truncate_echo_area,
4628 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
4629
46301999-09-13 Dave Love <fx@gnu.org>
4631
4632 * xterm.c: Don't continue #define args for benefit of old cc.
4633 (xt_action_hook): Indent #error for benefit of K&R cc.
4634
46351999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4636
4637 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
4638 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
4639 (XRINGBELL): Removed.
4640
46411999-09-13 Dave Love <fx@gnu.org>
4642
4643 * xfns.c (x_put_x_image): Make type consistent with declaration.
4644
4645 * fns.c (Fmake_hash_table): Fix string continuation.
4646
46471999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4648
4649 * xfns.c (QCfile): Moved to xdisp.c.
4650 (syms_of_xfns): Don't initialize QCfile.
4651 (check_x_frame): Change for Lisp_Object selected_frame.
4652 (check_x_display_info, x_get_resource_string): Ditto.
4653
46541999-09-13 Gerd Moellmann <gerd@gnu.org>
4655
4656 * minibuf.c (choose_minibuf_frame): Don't try to set the
4657 mini-buffer window's buffer, if the buffer is invalid.
4658
4659 * xfns.c (QCfile): Moved to xdisp.c.
4660 (syms_of_xfns): Don't initialize QCfile.
4661
4662 * xdisp.c (QCfile): Move here from xfns.c.
4663 (syms_of_xdisp): Initialize it.
4664
4665 * lisp.h (selected_frame): Add external declaration.
4666
4667 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
4668 (Fx_store_cut_buffer_internal): Ditto.
4669 (Fx_rotate_cut_buffers_internal): Ditto.
4670
4671 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
4672 selected_frame.
4673 (Finternal_set_lisp_face_attribute): Ditto.
4674 (Finternal_get_lisp_face_attribute): Ditto.
4675 (Finternal_lisp_face_empty_p): Ditto.
4676 (Fdump_face): Ditto.
4677
4678 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
4679 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
4680 set_terminal_window, set_scroll_region, reassert_line_highlight,
4681 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
4682 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
4683 encode_terminal_code, write_glyphs, term_init): Ditto.
4684
4685 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
4686 (kbd_input_ast, read_input_waiting): Ditto.
4687
4688 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
4689 selected_frame.
4690 (read_minibuf): Ditto.
4691
4692 * keyboard.c (command_loop_1): Change for Lisp_Object
4693 selected_frame.
4694 (cmd_error_internal, command_loop_1, read_char,
4695 kbd_buffer_get_event, read_avail_input,
4696 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
4697 interrupt_signal, quit_throw_to_read_char): Ditto.
4698
4699 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
4700 (Ffontset_info): DItto.
4701
4702 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
4703
4704 * dispnew.c (selected_frame): Make it a Lisp_Object.
4705 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
4706 (direct_output_for_insert, direct_output_forward_char,
4707 init_display): Ditto.
4708
4709 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
4710 selected_frame.
4711 (set_internal): Ditto.
4712
4713 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
4714 (record_buffer): Ditto.
4715
4716 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
4717 (do_switch_frame): Change for Lisp_Object selected_frame.
4718 (Fselected_frame): Ditto.
4719 (Fframe_first_window): Use SELECTED_FRAME.
4720 (Fframe_root_window): Change for Lisp_Object selected_frame.
4721 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
4722 Fprevious_frame, other_visible_frames, Fdelete_frame,
4723 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
4724 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
4725 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
4726 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
4727 Fset_frame_height, Fset_frame_width): Ditto.
4728
47291999-09-13 Gerd Moellmann <gerd@gnu.org>
4730
4731 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
4732 (message3_nolog, message_with_string, message,
4733 setup_echo_area_for_printing, truncate_echo_area,
4734 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
4735
4736 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
4737 (Fx_popup_dialog): Ditto.
4738
4739 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
4740 (check_x_display_info, x_get_resource_string): Ditto.
4741
4742 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
4743 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
4744 (XRINGBELL): Removed.
4745
4746 * window.c (Fminibuffer_window): Change for Lisp_Object
4747 selected_frame.
4748 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
4749 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
4750 Fcurrent_window_configuration, init_window_once): Ditto.
4751
4752 * frame.h (SELECTED_FRAME): New.
4753
47541999-09-12 Ken Raeburn <raeburn@gnu.org>
4755
4756 * category.c (word_boundary_p): Use XCAR and XCDR.
4757 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
4758 Fregister_code_conversion_map): Likewise.
4759 * coding.c (setup_coding_system, detect_coding_system,
4760 Ffind_operation_coding_system, Fset_coding_priority_internal):
4761 Likewise.
4762 * doc.c (get_doc_string, Fdocumentation,
4763 store_function_docstring): Likewise.
4764 * editfns.c (save_restriction_restore): Likewise.
4765 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
4766 skip_debugger, find_handler_clause, Fautoload, Fapply,
4767 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
4768 Likewise.
4769 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
4770 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
4771 Fread_file_name): Likewise.
4772 * filelock.c (unlock_all_files): Likewise.
4773 * insdel.c (Fcombine_after_change_execute): Likewise.
4774 * intervals.c (adjust_intervals_for_insertion): Likewise.
4775 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
4776 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
4777 store_in_keymap, Fcopy_keymap, define_as_prefix,
4778 current_minor_maps, Faccessible_keymaps,
4779 accessible_keymaps_char_table, Fkey_description,
4780 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
4781 describe_buffer_bindings, describe_map_tree, shadow_lookup,
4782 describe_map): Likewise.
4783 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
4784 read_list, init_lread): Likewise.
4785 * search.c (Fmatch_data): Likewise.
4786 * sunfns.c (Fsun_menu_internal): Likewise.
4787 * syntax.c (describe_syntax): Likewise.
4788 * undo.c (record_insert, record_delete, Fundo_boundary,
4789 truncate_undo_list): Likewise.
4790 * vmsproc.c (child_sig): Likewise.
4791
4792 * editfns.c (Fformat): Use XFLOAT_DATA.
4793
47941999-09-12 Gerd Moellmann <gerd@gnu.org>
4795
4796 * keyboard.c (command_loop_1): Resize mini-window to the
4797 exact size of a message displayed, if any.
4798
4799 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
4800 to exact size if exact_p is non-zero.
4801 (display_echo_area_1): Call resize_mini_window with
4802 new parameter.
4803 (redisplay_internal): Ditto.
4804 (resize_echo_area_axactly): New.
4805
4806 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
4807 new parameter.
4808
4809 * dispextern.h: Change prototype of resize_mini_window.
4810 Add prototype for resize_echo_area_axactly.
4811
4812 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
4813 (syms_of_xfaces): Defsubr accordingly.
4814
4815 * xdisp.c (hscroll_window_tree): Choose cursor row from
4816 desired or current matrix.
4817 (redisplay_internal): Hscroll before updating.
4818
48191999-09-12 Gerd Moellmann <gerd@gnu.org>
4820
4821 * syntax.c (Fforward_word): Use prompt_end_charpos instead
4822 of minibuffer_prompt_length.
4823
4824 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
4825 of minibuffer_prompt_length.
4826 (read_minibuf_unwind): Ditto.
4827 (Fminibuffer_complete_and_exit): Ditto.
4828 (Fminibuffer_complete_word): Ditto.
4829 (Fminibuffer_prompt_end): Ditto.
4830
4831 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
4832 of minibuffer_prompt_length.
4833 (Fline_beginning_position): Ditto.
4834
4835 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
4836 of minibuffer_prompt_length.
4837 (Fmake_indirect_buffer): Ditto.
4838 (Fkill_buffer): Ditto.
4839 (Ferase_buffer): Ditto.
4840
4841 * buffer.h (prompt_end_charpos): Replaces
4842 minibuffer_prompt_length.
4843
4844 * minibuf.c (read_minibuf): Return mini-buffer contents
4845 without the prompt.
4846
4847 * editfns.c (make_buffer_string_both): Take out the code
4848 to handle mini-buffer prompts.
4849 (Fbuffer_string): Handle the prompt here, instead.
4850
4851 * xfaces.c (lface_from_face_name): Resolve face aliases.
4852 (Qmode_line): Replaces Qmodeline.
4853 (realize_basic_faces): Use Qmode_line.
4854 (syms_of_xfaces): Initialize Qmode_line.
4855
48561999-09-12 Gerd Moellmann <gerd@gnu.org>
4857
4858 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
4859 current column after inserting prompt.
4860 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
4861
4862 * xfaces.c (Qframe_update_face_colors): New.
4863 (syms_of_xfaces): Initialize call.
4864 (update_face_from_frame_parameter): Call that function when
4865 the frame's background changes.
4866
48671999-09-12 Richard Stallman <rms@gnu.org>
4868
4869 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
4870
48711999-09-12 Ken Raeburn <raeburn@gnu.org>
4872
4873 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
4874 mark_object, mark_buffer): Use XCAR and XCDR.
4875 * bytecode.c (Fbyte_code): Likewise.
4876 * callint.c (Fcall_interactively, Fprefix_numeric_value):
4877 Likewise.
4878 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
4879 getenv_internal): Likewise.
4880 * dired.c (file_name_completion): Likewise.
4881 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
4882 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
4883 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
4884 * indent.c (Fcompute_motion): Likewise.
4885 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
4886 list_processes_1, Fstart_process, Fopen_network_stream,
4887 wait_reading_process_input, read_process_output_call,
4888 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
4889 status_notify, wait_reading_process_input): Likewise.
4890 * textprop.c (PLIST_ELT_P, property_value, set_properties,
4891 extend_property_ranges): Likewise.
4892 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
4893 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
4894 x_report_frame_params, x_set_cursor_type, x_icon_type,
4895 x_figure_window_size, Fx_create_frame, w32_load_system_font,
4896 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
4897 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
4898 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
4899 x_display_info_for_name, Fx_display_list): Likewise.
4900 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
4901 Fx_popup_menu, Fx_popup_dialog): Likewise.
4902 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
4903 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
4904 w32_term_init, x_delete_display): Likewise.
4905 * xfns.c (x_window_to_frame, x_any_window_to_frame,
4906 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
4907 x_top_window_to_frame, x_set_frame_parameters,
4908 x_report_frame_params, x_set_cursor_type, x_icon_type,
4909 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
4910 Fx_display_list, x_create_tip_frame): Likewise.
4911 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
4912 Fx_popup_menu, Fx_popup_dialog): Likewise.
4913 * xselect.c (x_own_selection, x_get_local_selection,
4914 x_handle_selection_request, x_handle_selection_clear,
4915 x_clear_frame_selections, wait_for_property_change_unwind,
4916 wait_for_property_change, x_handle_property_notify,
4917 copy_multiple_data, x_get_foreign_selection,
4918 lisp_data_to_selection_data, clean_local_selection_data,
4919 x_handle_selection_notify, Fx_get_selection_internal,
4920 x_disown_buffer_selections): Likewise.
4921 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
4922 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
4923 Likewise.
4924
4925 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
4926 XFLOAT_DATA.
4927 * bytecode.c (Fbyte_code): Likewise.
4928 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
4929 fmod_float): Likewise.
4930
49311999-09-11 Richard Stallman <rms@gnu.org>
4932
4933 * xdisp.c (run_window_scroll_functions): If hook functions switch
4934 buffers, switch back after.
4935
49361999-09-11 Ken Raeburn <raeburn@gnu.org>
4937
4938 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
4939 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
4940 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
4941 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
4942 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
4943 XCDR.
4944 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
4945 XCDR.
4946
49471999-09-10 Richard Stallman <rms@gnu.org>
4948
4949 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
4950 not RevertToPointerRoot.
4951 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4952 Fix the code to clear around the scroll bar.
4953
49541999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
4955
4956 * print.c: Support print-circle and related features.
4957 (Vprint_gensym_alist): Removed.
4958 (Vprint_circle, Vprint_continuous_numbering, print_number_index
4959 Vprint_number_table): New variables.
4960 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
4961 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
4962 (print, print_preprocess, print_preprocess_string, print_object):
4963 New/modified functions with print-circle feature. Use
4964 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
4965 (syms_of_print): Defined new Lisp variables `print-circle',
4966 `print-continuous-numbering', `print-number-table'.
4967
49681999-09-10 Gerd Moellmann <gerd@gnu.org>
4969
4970 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
4971 as background color specification instead of an integer.
4972 (image-cache-eviction-delay): Replaces image-eviction-seconds.
4973 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
4974 (clear_image_cache, syms_of_xfns): Use it.
4975 (Qpostscript): Replaces Qghostscript.
4976 (gs_type): Use it.
4977 (gs_image_p): Ditto.
4978 (syms_of_xfns): Initialize Qpostscript.
4979
49801999-09-10 Richard Stallman <rms@gnu.org>
4981
4982 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
4983
49841999-09-09 Richard Stallman <rms@gnu.org>
4985
4986 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
4987
4988 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
4989
49901999-09-09 Gerd Moellmann <gerd@gnu.org>
4991
4992 * fns.c (Fmakehash): Accept just one optional argument TEST.
4993
4994 * xfns.c (QCindex): New.
4995 (syms_of_xfns): Initialize QCindex.
4996 (gif_load): Use it instead of `:image'.
4997
49981999-09-09 Richard Stallman <rms@gnu.org>
4999
5000 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
5001 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
5002
50031999-09-08 Gerd Moellmann <gerd@gnu.org>
5004
5005 * xdisp.c (Qwhen): Replaces QCwhen.
5006 (syms_of_xdisp): Initialized it instead of QCwhen.
5007 (handle_single_display_prop): Use it instead of QCwhen.
5008
50091999-09-08 Ken'ichi Handa <handa@gnu.org>
5010
5011 * charset.c (translate_char): Reset MSBs of arguments of
5012 MAKE_CHAR.
5013 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
5014
50151999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5016
5017 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
5018
5019 * fns.c (Fbase64_decode_region): Don't place point outside of the
5020 current accessible portion.
5021
50221999-09-07 Richard Stallman <rms@gnu.org>
5023
5024 * keymap.c (fix_submap_inheritance): Do nothing if the proper
5025 parent is an ancestor of SUBMAP; otherwise, add it as the
5026 ultimate ancestor.
5027
50281999-09-07 Gerd Moellmann <gerd@gnu.org>
5029
5030 * xdisp.c (handle_single_display_prop): Change conditional
5031 display property to `:when FORM . VALUE'.
5032
50331999-09-07 Richard Stallman <rms@gnu.org>
5034
5035 * fileio.c (Fwrite_region): Doc fix.
5036
50371999-09-07 Stefan Monnier <monnier@cs.yale.edu>
5038
5039 * fileio.c (Qexcl): New variable.
5040 (report_file_error): Handle EEXIST specially.
5041 (Fwrite_region): Special handling for CONFIRM = `excl'.
5042 (syms_of_fileio): Initialize Qexcl.
5043
50441999-09-07 Gerd Moellmann <gerd@gnu.org>
5045
5046 * xfns.c (x_set_foreground_color): Call
5047 update_face_from_frame_parameter.
5048 (x_set_background_color): Ditto.
5049 (x_set_mouse_color): Ditto.
5050 (x_set_cursor_color): Ditto.
5051 (x_set_border_color): Ditto.
5052 (x_set_scroll_bar_foreground): Ditto.
5053 (x_set_scroll_bar_background): Ditto.
5054
5055 * xfaces.c (recompute_basic_faces): Clear face cache.
5056 (Finternal_set_lisp_face_attribute): Modify frame parameters
5057 if attributes of certain faces are changed.
5058 (update_face_from_frame_parameter): New.
5059
5060 * xfaces.c (realize_basic_faces): Realize new basic faces.
5061
5062 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
5063 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
5064
5065 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
5066 (syms_of_xfaces): Intialize new symbols.
5067
5068 * fns.c (Fmakehash): Take one argument, test, make all the
5069 rest keyword arguments.
5070
5071 * window.c (Fset_window_margins): Make window the first argument.
5072 (set_window_buffer): Call Fset_window_margins with window as first
5073 argument.
5074
50751999-09-07 Gerd Moellmann <gerd@gnu.org>
5076
5077 * xfaces.c (Qfringe): Replaces Qmargin.
5078
50791999-09-07 Kenichi Handa <handa@etl.go.jp>
5080
5081 * charset.h: Lots of comments fixed.
5082 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
5083 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
5084
5085 * charset.c : Lots of comments fixed.
5086 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
5087 (CHAR_COMPONENTS_VALID_P): Name changed from
5088 CHAR_COMPONENT_VALID_P. Caller changed.
5089
50901999-09-06 Richard Stallman <rms@gnu.org>
5091
5092 * insdel.c (syms_of_insdel): Define Lisp variable
5093 inhibit-modification-hooks.
5094
50951999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
5096
5097 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
5098 unexaix.c.
5099
5100 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
5101
51021999-09-06 Dave Love <fx@gnu.org>
5103
5104 * unexaix.c: New version incorporating Michael Sperber's changes
5105 from XEmacs. Should solve problems on AIX 4.3.
5106
5107 * lread.c (Vbyte_boolean_vars): New variable.
5108 (defvar_bool, syms_of_lread): Use it.
5109
51101999-09-05 Richard Stallman <rms@gnu.org>
5111
5112 * minibuf.c (read_minibuf): Put all three properties on the
5113 same range, the whole prompt.
5114
51151999-09-05 Gerd Moellmann <gerd@gnu.org>
5116
5117 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
5118 (Fplay_sound, syms_of_sound): Use it.
5119 (parse_sound): Allow float volume values in the range [0, 1].
5120 (Fplay_sound): Ditto.
5121
5122 * window.c (Fset_window_vscroll): Make window the first argument,
5123 amount to scroll the second. Take non-negative vscroll as
5124 argument.
5125 (Fwindow_vscroll): Return non-negative vscroll.
5126
5127 * xfns.c (Fx_show_tip): Improve documentation.
5128
51291999-09-05 Gerd Moellmann <gerd@gnu.org>
5130
5131 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
5132 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
5133 `top-line' and `top_line' to `header-line' and `header_line'.
5134 Likewise for similar spellings.
5135
51361999-09-05 Gerd Moellmann <gerd@gnu.org>
5137
5138 * xdisp.c (row_containing_pos): New.
5139 (try_window_id): Use it.
5140
5141 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
5142 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
5143 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
5144 Likewise for upper-case etc.
5145
51461999-09-05 Gerd Moellmann <gerd@gnu.org>
5147
5148 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5149 Fix reference to renamed variable.
5150
51511999-09-04 Gerd Moellmann <gerd@gnu.org>
5152
5153 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
5154 (window_fixed_size_p): Use Qwindow_size_fixed instead of
5155 Qfixed_window_size.
5156 (syms_of_window): Ditto.
5157
5158 * fns.c (Fmakehash): Exchange optional test and size arguments.
5159
51601999-09-03 Gerd Moellmann <gerd@gnu.org>
5161
5162 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
5163 under newly created scroll bar.
5164 (expose_window): If window is not yet fully initialized, do
5165 nothing. This can happen when toolkit scroll bars are used and a
5166 window is split. Reconfiguring the scroll bars will generate an
5167 expose for a newly created window.
5168
5169 * frame.h (struct frame): New member `gamma'.
5170
5171 * xfns.c: Include math.h. Add extern declaration for atof in case
5172 we don't see one.
5173 (Qscreen_gamma): New.
5174 (struct x_frame_parm_table): Add prototypes, add
5175 x_set_screen_gamma.
5176 (gamma_correct): New function.
5177 (defined_color): Call it.
5178 (x_set_screen_gamma): New.
5179 (x_set_title): Add parameter old_value.
5180 (RES_TYPE_FLOAT): New.
5181 (x_get_arg): Handle RES_TYPE_FLOAT.
5182 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
5183 (lookup_pixel_color): Change call to x_alloc_nearest_color to
5184 new prototype.
5185 (lookup_rgb_color): Ditto.
5186 (syms_of_xfns): Initialize Qscreen_gamma.
5187
5188 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
5189 New. Allocate color for lwlib widgets.
5190 (x_alloc_nearest_color): Change parameter list include the
5191 frame on which to allocate colors. Gamma-correct colors.
5192 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
5193 parameter list.
5194
5195 * xterm.h: Change protorype of x_alloc_nearest_color.
5196
51971999-09-03 Richard Stallman <rms@gnu.org>
5198
5199 * callproc.c: Delete the system-independent include of stdlib.h
5200 (leaving only the one in the WINDOWSNT conditional).
5201
52021999-09-03 Andrew Choi <choi@cs.hku.hk>
5203
5204 * callproc.c (call-process) [macintosh]: Call mac_run_command in
5205 sysdep.c. The Mac code is modeled after the DOS code.
5206
5207 * dispextern.h [macintosh]: Include macterm.h to define substitute X
5208 Window types and macros.
5209
5210 * frame.h: Do nothing if included a second time.
5211 (enum output_method): Add mac_output frame type.
5212 (union output_data): Add new alternative `mac'.
5213 (FRAME_MAC_P): New macro.
5214
5215 * frame.c (Fframep) [macintosh]: Handle mac frame type.
5216 (syms_of_frame_1): Initialize Qmac.
5217 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
5218 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
5219 (Fmodify_frame_parameters) [macintosh]: Call
5220 mac_set_frame_parameter in macterm.c.
5221
5222 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
5223 (512) because Mac compilers limit local data of a function to 32K.
5224
5225 * make-docfiles.c: Correctly handle input files with Mac-style
5226 eol's.
5227
5228 * sysdep.c: Define numerous routines to emulate Unix system calls.
5229
5230 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
5231 file of an X Window environment.
5232
5233 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
5234 x-display-grayscale, x-color-defined-p, and x-color-values.
5235
5236 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
5237 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
5238 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
5239 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
5240 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
5241 New functions, replacing POSIX features.
5242
5243 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
5244 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
5245 (InitEmacsPasswdDir, run_mac_command): New subroutines.
5246
5247 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
5248 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
5249 (myPasswdDir, TempDirName, sys_siglist): New variables.
5250
5251 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
5252 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
5253 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
5254 Define empty stubs so Emacs will link.
5255
52561999-09-03 Gerd Moellmann <gerd@gnu.org>
5257
5258 * xdisp.c: Use XCAR and XCDR instead of XCONS.
5259
5260 * window.h: New member frozen_window_start_p.
5261
5262 * window.c (foreach_window, foreach_window_1): New.
5263 (freeze_window_start, freeze_window_starts): New.
5264 (make_window): Initialize frozen_window_start_p.
5265 (replace_window): Ditto.
5266 (Fset_window_point): Remove references to deleted variables.
5267 (Fset_window_start): Ditto.
5268
5269 * xdisp.c (Vresize_mini_config, resize_mini_frame,
5270 resize_mini_initial_height): Removed.
5271 (syms_of_xdisp): Remove references to these variables.
5272 (resize_mini_window): Don't save window configuration, freeze
5273 window starts instead. Enlarge window until displaying an empty
5274 buffer, then shrink it. Make the function externally visible.
5275 (redisplay_window): Treat frozen window start like forced start,
5276 but accept point outside of the window.
5277
5278 * dispextern.h: Add function prototype for resize_mini_window.
5279
5280 * minibuf.c (read_minibuf_unwind): Resize mini-window when
5281 reaching minibuf_level 0.
5282
5283 * lisp.h: Remove extern declarations for variables deleted from
5284 xdisp.c.
5285
5286 * dispnew.c (adjust_frame_glyphs): Remove reference to
5287 Vresize_mini_config.
5288
52891999-09-03 Gerd Moellmann <gerd@gnu.org>
5290
5291 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
5292 to USE_TOOLKIT_SCROLL_BARS.
5293
5294 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
5295 here.
5296 (XTset_vertical_scroll_bar): Clarify position computations. Clear
5297 under newly created scroll bar. Put toolkit scroll bars in the
5298 middle of the area reserved for the scroll bar.
5299
53001999-09-03 Kenichi Handa <handa@etl.go.jp>
5301
5302 The following changes are for the new handling of mulitbyte
5303 sequence. Now, except for a composite character, no multibyte
5304 character in string/buffer has trailing garbage bytes. For
5305 instance, the length of string "\201\300\300" is now 2, the first
5306 character is Latin-1 A-grave, the second is raw \300.
5307
5308 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
5309 are negative.
5310 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
5311 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
5312 (PARSE_COMPOSITE_SEQ): New macro.
5313 (PARSE_CHARACTER_SEQ): New macro.
5314 (PARSE_MULTIBYTE_SEQ): New macro.
5315 (CHAR_PRINTABLE_P): New macro.
5316 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
5317 (STRING_CHAR_AND_LENGTH): Likewise.
5318 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
5319 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
5320 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
5321
5322 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
5323 (SPLIT_CHARACTER_SEQ): New macro.
5324 (SPLIT_MULTIBYTE_SEQ): New macro.
5325 (CHAR_COMPONENT_VALID_P): New macro.
5326 (non_ascii_char_to_string): Generate a multibyte sequence as far
5327 as possible.
5328 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
5329 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
5330 (split_non_ascii_string): Likewise.
5331 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
5332 (char_printable_p): New function.
5333 (translate_char): Check character by NATNUMP instead of INTEGERP.
5334 (unibyte_char_to_multibyte): Call char_valid_p instead of
5335 VALID_MULTIBYTE_CHAR_P.
5336 (Fmake_char_internal): Check the arguments more rigidly.
5337 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
5338 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
5339 (Fmultibyte_char_to_unibyte): Check the validity of character by
5340 CHAR_VALID_P.
5341 (chars_in_text): Call multibyte_chars_in_text.
5342 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
5343 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
5344 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
5345
5346 * data.c (Faset): Adjust the way to check byte-combining
5347 possibility for the new handling of multibyte sequence.
5348
5349 * editfns.c (Fsubst_char_in_region): Likewise.
5350
5351 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
5352 (string_char_to_byte): Likewise.
5353 (string_byte_to_char): Likewise.
5354
5355 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
5356 macro STRING_CHAR_AND_LENGTH. Caller changed.
5357
5358 * insdel.c (count_combining_composition): New function.
5359 (count_combining_before): Adjust the way to check byte-combining
5360 possibility for the new handling of multibyte sequence. Call
5361 count_combining_composition for a composite character.
5362 (count_combining_after): Likewise.
5363
5364 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
5365 (print): Likewise.
5366
5367 * dispextern.h (struct it): Change the size of the member
5368 `ctl_chars'.
5369
5370 * xdisp.c (get_next_display_element): Display incomplete multibyte
5371 sequence (e.g. \222\300) by octal form.
5372
53731999-09-02 Gerd Moellmann <gerd@gnu.org>
5374
5375 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
5376
5377 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
5378 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
5379
53801999-09-02 Gerd Moellmann <gerd@gnu.org>
5381
5382 * buffer.c (set_buffer_internal): Never set
5383 windows_or_buffers_changed.
5384
5385 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
5386 if we have displayed to the bottom of the window.
5387
5388 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
5389 in both directions. Extend documentation.
5390
53911999-09-01 Gerd Moellmann <gerd@gnu.org>
5392
5393 * minibuf.c (read_minibuf): Flush display after setting cursor to
5394 column 0.
5395
53961999-08-31 Gerd Moellmann <gerd@gnu.org>
5397
5398 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
5399 already defined. This avoids a warning from buffer.c.
5400
54011999-08-30 Gerd Moellmann <gerd@gnu.org>
5402
5403 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
5404 of both margins.
5405 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
5406 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
5407 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
5408
5409 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
5410 once instead of twice.
5411 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
5412
5413 * xterm.c: Remove unused bitmaps.
5414 (continued_bits, continuation_bits, overlay_bits): Change images.
5415 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
5416 instead of FRAME_X_FLAGS_AREA_WIDTH.
5417 (x_after_update_window_line): Ditto.
5418 (x_draw_bitmap): Likewise.
5419 (x_draw_row_bitmaps): Likewise.
5420 (x_draw_glyph_string_box): Likewise.
5421 (x_draw_glyphs): Likewise.
5422 (x_scroll_run): Likewise.
5423 (expose_window_tree): Likewise.
5424 (note_mode_line_highlight): Likewise.
5425 (XTset_vertical_scroll_bar): Likewise.
5426 (x_clip_to_row): Likewise.
5427 (x_set_window_size): Likewise.
5428
5429 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
5430 of 2 * that value.
5431
5432 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
5433 2 * that value.
5434 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
5435 FRAME_FLAGS_AREA_WIDTH.
5436
5437 * window.c (coordinates_in_window): Use
5438 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
5439 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
5440 instead of twice.
5441
5442 * widget.c (set_frame_size): Set flags_area_extra to
5443 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
5444 (EmacsFrameSetCharSize): Ditto.
5445
5446 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
5447 instead of FRAME_FLAGS_AREA_WIDTH.
5448
5449 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
5450 FRAME_FLAGS_AREA_COLS once.
5451 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
5452 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
5453
54541999-08-30 Gerd Moellmann <gerd@gnu.org>
5455
5456 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
5457 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
5458
54591999-08-30 Gerd Moellmann <gerd@gnu.org>
5460
5461 * fns.c (QCweakness): Replaces QCweak.
5462 (Fmake_hash_table): Ditto.
5463 (Fmakehash): Ditto.
5464 (syms_of_fns): Ditto.
5465
54661999-08-29 Richard Stallman <rms@gnu.org>
5467
5468 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
5469
5470 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
5471
5472 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
5473 Add support for nested comments.
5474
863476d1
SM
5475 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
5476 Consolidate the forward comment code into the new `forw_comment'.
5477 (forw_comment): New subroutine. Added support for nested comments.
5478 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
5479 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
5480
54811999-08-28 Ken Raeburn <raeburn@gnu.org>
5482
5483 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
5484 names of structure elements if HIDE_LISP_IMPLEMENTATION is
5485 defined, to help detect code that uses knowledge of the Lisp
5486 internals that it shouldn't have.
5487 (XFLOAT_DATA): New macro.
5488
54891999-08-25 Gerd Moellmann <gerd@gnu.org>
5490
5491 * syntax.c (Fforward_word): If in a mini-buffer and moving
5492 backwards, stop in front of the prompt to prevent accidentially
5493 moving into the read-only prompt.
5494
5495 * window.c (Frecenter): Clear frame if called with nil or no arg.
5496
5497 * xdisp.c (resize_mini_window): Don't resize if
5498 Vmax_mini_window_height is nil. Otherwise, use a default if
5499 Vmax_mini_window_height is not ot a number.
5500 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
5501
55021999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
5503
5504 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
5505 * m/iris4d.h: Use unexelf for IRIX 5.*.
5506 * m/iris5d.h: Use unexelf for IRIX 6.*.
5507 * unexsgi.c: Deleted.
5508
5509 * unexelf.c: Auto-detect .sbss section.
5510 (round_up): Make it static.
5511 (unexec): Declare alignment as Elf Word. Skip ``Program
5512 segment above .bss'' test on MIPS without .sbss.
5513 Copy sections .got and .sdata1 sections. Adjust offsets in
5514 sections .sdata, .lit4, .lit8, .got and .sdata1.
5515
55161999-08-25 Gerd Moellmann <gerd@gnu.org>
5517
5518 * xdisp.c (try_window_id): Remove typo.
5519
55201999-08-24 Gerd Moellmann <gerd@gnu.org>
5521
5522 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
5523 unchanged text at the bottom when computing the cursor position.
5524 (message3_nolog): Raise frame only if minibuffer_auto_raise is
5525 set.
5526
5527 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
5528
55291999-08-24 Gerd Moellmann <gerd@gnu.org>
5530
5531 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
5532 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
5533 (syms_of_xfaces): Ditto.
5534
5535 * window.c (Fset_window_point): Reset Vresize_mini_config.
5536 (Fset_window_start): Ditto.
5537 (set_window_buffer): Ditto.
5538
5539 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
5540
5541 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
5542 before calling try_window.
5543 (echo_area_display): If height has changed, update other windows.
5544 (resize_mini_frame, resize_mini_initial_height): New.
5545 (resize_mini_window): Save/restore window configuration
5546 differently.
5547
5548 * lisp.h (Vresize_mini_config, resize_mini_frame,
5549 resize_mini_initial_height): Add extern declarations.
5550
5551 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
5552 CANON_X_UNIT.
5553
5554 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
5555 being redefined in jconfig.h.
5556
55571999-08-23 Ken'ichi Handa <handa@gnu.org>
5558
5559 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
5560
55611999-08-22 Gerd Moellmann <gerd@gnu.org>
5562
5563 * alloc.c (mark_glyph_matrix): Mark strings only.
5564
5565 * xdisp.c (redisplay_internal): Clear garbaged frames after
5566 resizing mini-window.
5567
55681999-08-22 Gerd Moellmann <gerd@gnu.org>
5569
5570 * xdisp.c (unwind_with_echo_area_buffer): Use
5571 set_buffer_internal_1 instead of set_buffer_internal.
5572 (with_echo_area_buffer): Ditto.
5573
5574 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
5575 only if buffer is displayed somewhere.
5576
5577 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
5578
5579 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
5580 (gap_right): Ditto.
5581 (modify_region): Ditto.
5582
5583 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
5584
5585 * xdisp.c (Vresize_mini_config): New.
5586 (resize_mini_window): Use it to save restore original window
5587 configuration
5588 (syms_of_xdisp): Initialize it.
5589
5590 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
5591
5592 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
5593
5594 * xdisp.c (reconsider_clip_changes): New.
5595 (redisplay_internal, redisplay_window): Call it.
5596 (mark_window_display_accurate, redisplay_internal): Set current
5597 matrix' buffer, begv, zv.
5598
5599 * window.c (Fset_window_hscroll): Set
5600 prevent_redisplay_optimizations_p instead of clip_changed.
5601 (Fset_window_hscroll): Ditto.
5602 (temp_output_buffer_show): Ditto.
5603 (Fset_window_vscroll): Ditto.
5604
5605 * buffer.c (reset_buffer): Set clip_changed to 0 and
5606 prevent_redisplay_optimizations_p to 1.
5607 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
5608
5609 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
5610 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
5611 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
5612 END_UNCHANGED): New.
5613 (struct buffer_text): Add beg_unchanged, end_unchanged,
5614 unchanged_modified, overlay_unchanged_modified.
5615
5616 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
5617 overlay_unchanged_modified): Removed.
5618 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
5619 (unwind_with_echo_area_buffer): Don't restore them.
5620 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
5621 (text_outside_line_unchanged_p, redisplay_internal,
5622 try_scrolling): Use/set buffer-specific beg/end_unchanged.
5623 (redisplay_window): Let try_window_id be called if more than one
5624 window is displayed. Use/set buffer-specific beg/end_unchanged.
5625 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
5626 try_window_id):
5627 Use buffer-specific beg/end_unchanged.
5628
5629 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
5630 overlay_unchanged_modified): Remove extern declarations.
5631
5632 * keyboard.c (command_loop_1): Set beg/end_unchanged per
5633 buffer.
5634
5635 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
5636 (gap_right): Ditto.
5637 (adjust_after_replace): Likewise.
5638 (replace_range, del_range_2, modify_region): Likewise.
5639
5640 * dispnew.c (direct_output_for_insert): Set beg_unchanged
5641 and unchanged_modified per buffer.
5642
5643 * coding.c (code_convert_region): Compute beg/end_unchanged per
5644 buffer.
5645
5646 * buffer.c (modify_overlay): Compute beg/end_unchanged
5647 per buffer.
5648 (Fget_buffer_create): Initialize new members of the buffer
5649 structure.
5650
56511999-08-22 Gerd Moellmann <gerd@gnu.org>
5652
5653 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
5654
5655 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
5656 (Qkey_value_weak): Removed.
5657 (make_hash_table): Use nil, `key', `value', t for weakness.
5658 (Fmake_hash_table): Ditto.
5659 (copy_hash_table): New.
5660 (Fcopy_hash_table): New.
5661
56621999-08-22 Gerd Moellmann <gerd@gnu.org>
5663
5664 * xfns.c: Call change_frame_size and do_pending_window_change with
5665 new parameter.
5666
56671999-08-21 Gerd Moellmann <gerd@gnu.org>
5668
5669 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
5670 well.
5671 (redisplay_internal): Resize mini-window only if text might
5672 have changed.
5673 (display_echo_area): Reset displayed echo_area_buffer to nil
5674 at the end if we're displaying a nil message.
5675
56761999-08-21 Gerd Moellmann <gerd@gnu.org>
5677
5678 * fns.c (hash_lookup): Test with EQ before calling key comparion
5679 function.
5680 (hash_remove): Ditto.
5681 (cmpfn_eq): Removed.
5682 (cmpfn_eql): Don't test with EQ.
5683 (cmpfn_equal): Ditto.
5684 (make_hash_table): Set comparison function for `eq' to null.
5685
5686 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
5687 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
5688
5689 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
5690
5691 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
5692 xterm.c: Call change_frame_size and do_pending_window_change with
5693 new parameter.
5694
5695 * dispnew.c (do_pending_window_change): Add parameter `safe'.
5696 (change_frame_size): Ditto.
5697 (change_frame_size_1): Ditto. Deley size changes if redisplaying
5698 and not called from a safe place.
5699 (window_change_signal): Call change_frame_size with new parameter.
5700
5701 * dispextern.h: Change prototypes for do_pending_window_change
5702 and change_frame_size.
5703
5704 * xfaces.c (face_at_buffer_position): Don't xassert that
5705 window's buffers equals current_buffer; this is not the
5706 case during echo area display.
5707
57081999-08-21 Gerd Moellmann <gerd@gnu.org>
5709
5710 * xdisp.c, minibuf.c: Remove conditional compilation on
5711 NO_PROMPT_IN_BUFFER.
5712
5713 * minibuf.c (Fminibuffer_prompt_end): New.
5714 (syms_of_minibuf): Defsubr it. Remove
5715 minibuffer-prompt-in-buffer.
5716 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
5717 Extend documentation.
5718
5719 * xdisp.c (get_next_display_element): Display \r as ^M.
5720
5721 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
5722 under scroll bar widget.
5723
57241999-08-21 Gerd Moellmann <gerd@gnu.org>
5725
5726 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
5727 anywhere.
5728 (unwind_redisplay): Return nil.
5729 (clear_garbaged_frames): New.
5730 (redisplay_internal): Use it.
5731 (echo_area_display): Ditto.
5732 (resize_mini_window): Mew.
5733 (display_echo_area_1): Use it to resize echo area window.
5734 (redisplay_internal): Use it to resize active mini-window.
5735
5736 * dispextern.h, lisp.h: Add function prototypes.
5737
5738 * dispnew.c (set_window_cursor_after_update): Do the
5739 cursor_in_echo_area case only for a mini-window showing
5740 a message. Don't let cursor end up after the end of a row.
5741
5742 * xdisp.c (echo_area_glyphs, echo_area_message,
5743 echo_area_glyphs_length, previous_echo_glyphs,
5744 previous_echo_area_message, previous_echo_area_glyphs_length):
5745 Removed.
5746 (Vmessage_stack, echo_area_buffer, echo_buffer,
5747 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
5748 (message2_nolog): Use set_message and clear_message.
5749 (message3): Rename parameter len to nbytes to make clear what
5750 it is.
5751 (message3_nolog): Ditto. Use set_message and clear_message.
5752 (update_echo_area): Rewritten.
5753 (with_echo_area_buffer): New.
5754 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
5755 (setup_echo_area_for_printing): New.
5756 (display_echo_area, display_echo_area_1): New.
5757
5758 (current_message, current_message_1): New.
5759 (push_message, restore_message, pop_message,
5760 check_message_stack): New.
5761 (truncate_echo_area): Rewritten.
5762 (truncate_message_1): New.
5763 (set_message, set_message_1, clear_message): New.
5764 (echo_area_display): Rewritten.
5765 (redisplay_internal): Check for needed echo area update
5766 differently.
5767 (redisplay_preserve_echo_area): Rewritten.
5768 (redisplay_window): Check for mini-window displaying echo area
5769 message differently.
5770 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
5771 Remove initialzation of removed variables.
5772 (init_xdisp): Remove references to removed variables.
5773
5774 * dispnew.c (adjust_frame_message_buffer): Removed references
5775 to echo_area_glyphs and previous_echo_glyphs.
5776 (direct_output_for_insert): Check for mini-window displaying
5777 echo area message differently.
5778 (update_frame): Likewise.
5779 (set_window_cursor_after_update): Likewise. In echo area,
5780 don't try to set cursor on rows that aren't enabled.
5781
5782 * print.c: Remove conditional compilation on `standalone'.
5783 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
5784 glyph_to_str_cpy): Remove that section because GLYPHs are no
5785 longer used in that way.
5786 (PRINTDECLARE): Add multibyte.
5787 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
5788 (printbufidx): Removed.
5789 (printchar, strout): Rewritten.
5790
5791 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
5792 a struct kboard.
5793 (echo_kboard): New.
5794 (echo_now): Set echo_kboard to the current kboard.
5795 (cancel_echoing): Set echo_kboard to null.
5796 (cmd_error_internal): Use clear_message, remove references
5797 to echo_area_glyphs and echo_area_message.
5798 (command_loop_1): Check for echo area messages differently.
5799 (read_char): Likewise.
5800 (record_menu_key): Use clear_message.
5801 (Fexecute_extended_command): Check for echo area messages
5802 differently. Use push_message, restore_message, pop_message.
5803
5804 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
5805 pop_message.
5806
5807 * emacs.c (shut_down_emacs): Call check_message_stack.
5808
5809 * lisp.h: Add function prototypes and extern declarations for
5810 new functions and variables.
5811
5812 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
5813 pop_message.
5814
5815 * minibuf.c (read_minibuf): Use clear_message instead of
5816 setting echo_area_glyphs.
5817 (Fminibuffer_completion_help): Ditto.
5818
5819 * editfns.c (Fcurrent_message): Rewritten.
5820
5821 * frame.c, window.h: Remove references to echo_area_glyphs
5822 and previous_echo_glyphs.
5823
58241999-08-21 Dave Love <fx@gnu.org>
5825
5826 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
5827 * aix4-1.h: Likewise.
5828
5829 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
5830
58311999-08-20 Gerd Moellmann <gerd@gnu.org>
5832
5833 * xfns.c: Remove tiff34 prefix from include.
5834
58351999-08-20 Dave Love <fx@gnu.org>
5836
5837 * cm.c: Revert previous change.
5838
58391999-08-19 Gerd Moellmann <gerd@gnu.org>
5840
5841 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
5842 under scroll bar with width FRAME_SCROLL_BAR_COLS.
5843
58441999-08-18 Dave Love <fx@gnu.org>
5845
5846 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
5847 stdlib.h.
5848
5849 * doprnt.c: Use stdlib.h, unistd.h.
5850
5851 * config.in: Add HAVE_TERMCAP_H.
5852
5853 * cm.c: Use termcap.h.
5854
58551999-08-18 Gerd Moellmann <gerd@gnu.org>
5856
5857 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
5858 FRAME_X_WINDOW (f) being null at the of the function. If widgets
5859 cannot be created we will already have crashed earlier. Call
5860 lw_set_main_areas with a null menu-bar widget, so that we have
5861 a reasonable default.
5862 (Fx_create_frame): Rearranged so that Lisp errors during frame
5863 initialization cause less damage. Initialize menu bar widget
5864 here.
5865
58661999-08-18 Gerd Moellmann <gerd@gnu.org>
5867
5868 * dispnew.c (update_frame_line): Fix previous change. If writing
5869 whole line clear to end of frame.
5870
58711999-08-17 Gerd Moellmann <gerd@gnu.org>
5872
5873 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
5874 and `right-bitmap-area' if position is in the bitmap areas. This
5875 avoids an error when clicking on the bitmap areas. Instead, they
5876 are currently treated like clicks inside the window.
5877 (coordinates_in_window): Return 5 and 6 for bitmap areas.
5878 (Qleft_bitmap_area, Qright_bitmap_area): New.
5879 (syms_of_window): Initialize new symbols.
5880
5881 * dispnew.c (update_frame_line): If writing whole line,
5882 don't write trailing spaces unless we must.
5883
5884 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
5885 (redisplay_internal): Register unwind_redisplay with
5886 register_unwind_protect.
5887 (try_window_reusing_current_matrix): If new start > old start,
5888 give up if start pos of first reusable row is not equal to new
5889 start.
5890
5891 * eval.c (Fsignal): Don't reset redisplaying_p here.
5892
5893 * xterm.c (expose_area): If row extends face to end of line,
5894 write the whole line.
5895
58961999-08-16 Gerd Moellmann <gerd@gnu.org>
5897
5898 * dispextern.h (struct it): Remove member
5899 show_trailing_whitespace_p.
5900
5901 * dispnew.c (direct_output_for_insert): Use
5902 Vshow_trailing_whitespace instead of former iterator member
5903 show_trailing_whitespace_p.
5904 (direct_output_forward_char): Don't do it if hightlighting
5905 trailing whitespace.
5906
5907 * xdisp.c (Qshow_trailing_whitespace): Removed.
5908 (Vshow_trailing_whitespace): Added.
5909 (init_iterator): Remove initialization code for
5910 show_trailing_whitespace_p.
5911 (redisplay_internal): Don't try cursor movement in this_line
5912 if showing trailing whitespace.
5913 (redisplay_window): Likewise for cursor movement in current
5914 matrix and try_window_id.
5915 (try_window_reusing_current_matrix): Likewise.
5916 (trailing_whitespace_p): Return 0 if trailing whitespace is
5917 in front of point.
5918 (display_line): Use Vshow_trailing_whitespace instead of
5919 former iterator member show_trailing_whitespace_p.
5920 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
5921
59221999-08-16 Gerd Moellmann <gerd@gnu.org>
5923
5924 * window.c (Fpos_visible_in_window_p): Rewritten.
5925
5926 * xfaces.c (add_to_log): Renamed from display_message.
5927 Don't display messages in echo area.
5928
5929 * xterm.c (x_draw_glyph_string_box): Use the background width
5930 of the glyph string for the width of the box.
5931
59321999-08-16 Stefan Monnier <monnier@cs.yale.edu>
5933
5934 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
5935
59361999-08-16 Geoff Voelker <voelker@cs.washington.edu>
5937
5938 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
5939 background first, and then set other parameters that might
5940 depend upon their new values.
5941
59421999-08-15 Gerd Moellmann <gerd@gnu.org>
5943
5944 * xfaces.c (Vfont_list_limit): New.
5945 (syms_of_xfaces): Make it a user-variable.
5946 (DEFAULT_FONT_LIST_LIMIT): New.
5947 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
5948 maximally that number of fonts, otherwise use
5949 DEFAULT_FONT_LIST_LIMIT.
5950 (Fx_font_family_list): Bind `font-list-limit' to higher values
5951 until we have all fonts.
5952 (Fxfont_list): Additionally return the full names of fonts and
5953 their registry and encoding.
5954
5955 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
5956 Simplify clearing "under" scroll bar.
5957
5958 * window.c (Qfixed_window_size): New.
5959 (syms_of_window): Initialiaze it.
5960 (check_all_windows): Add return type void.
5961 (window_fixed_size_p): New. Return non-zero if window
5962 is fixed-size.
5963 (window_min_size_1): New.
5964 (window_min_size): Handle fixed-size windows.
5965 (size_window): New. Rewritten combination of set_window_height and
5966 set_window_width that handles fixed-size windows.
5967 (set_window_height): Call it.
5968 (set_window_width): Call it.
5969 (Fsplit_window): Give an error on attempt to split a fixed-size
5970 window.
5971 (change_window_height): Partly rewritten to handle fixed-size
5972 windows.
5973
59741999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
5975
5976 * process.c (Fopen_network_stream): Fix previous change.
5977
59781999-08-13 Karl Heuer <kwzh@gnu.org>
5979
5980 * xdisp.c (line_number_display_limit_width): New var.
5981 (decode_mode_spec): Use it instead of hardcoded value.
5982 (syms_of_xdisp): Defvar it.
5983
59841999-08-13 Richard M. Stallman <rms@gnu.org>
5985
5986 * eval.c (run_hook_list_with_args): Gcpro `globals'.
5987 (run_hook_with_args): Likewise.
5988
5989 * window.h (struct window): New field too_small_ok.
5990
5991 * window.c (set_window_height, set_window_width):
5992 If window starts out "too small", set its too_small_ok flag.
5993 If window's too_small_ok flag is set, don't delete it
5994 unless it is so small it would cause a crash.
5995
59961999-08-13 Gerd Moellmann <gerd@gnu.org>
5997
5998 * window.c (MINSIZE): Removed.
5999 (window_min_size): New.
6000 (set_window_height): Use window_min_size.
6001 (change_window_height): Ditto.
6002
60031999-08-12 Gerd Moellmann <gerd@gnu.org>
6004
6005 * indent.c (vmotion): Don't add in mini-buffer prompt width
6006 if prompts are inserted into mini-buffer.
6007
60081999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
6009
6010 * config.in: Add HAVE_GETADDRINFO.
6011 * process.c (Fopen_network_stream): Use getaddrinfo.
6012
60131999-08-11 Gerd Moellmann <gerd@gnu.org>
6014
6015 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
6016 glyphs to -1.
6017
6018 * xdisp.c (face_before_or_after_it_pos): If position after
6019 or before iterator's current position in the buffer is out
6020 of bounds, return the iterator's original face id.
6021
6022 * dispnew.c (mirror_make_current): If desired row isn't enabled,
6023 just swap glyphs pointers between current and desired row.
6024 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
6025 desired matrix method string to current matrix.
6026
60271999-08-11 Kenichi Handa <handa@etl.go.jp>
6028
6029 * lisp.h (CHAR_MODIFIER_MASK): New macro.
6030
6031 * lread.c (read_escape): For Control modifier, pay attention to
6032 multibyte character.
6033 (read1): Likewise. Singal error or a multibyte character which
6034 has a modifer bit. Check validity of Shift modifer.
6035
6036 * charset.c (non_ascii_char_to_string): Handle modifier bits as
6037 the same as Lisp reader.
6038
60391999-08-10 Richard M. Stallman <rms@gnu.org>
6040
6041 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
6042
60431999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
6044
6045 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
6046
60471999-08-10 Eli Zaretskii <eliz@gnu.org>
6048
6049 * msdos.c (IT_set_face): Abort if the default face is not realized
6050 and cached.
6051 (IT_write_glyphs): Reset the screen face to the default face
6052 before writing glyphs.
6053
6054 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
6055 colors from the frame here.
6056 (realize_tty_face) [MSDOS]: Do it here. Update the face
6057 attributes with the actual name of the color taken from the
6058 frame.
6059
6060 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
6061 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
6062
6063 * frame.c (Fframe_parameters): Swap foreground and background
6064 colors returned in frame parameters if the frame has reverse in
6065 its parameter alist.
6066 (Fmake_terminal_frame): Make a unique copy of face_alist for
6067 each frame.
6068
60691999-08-07 Richard Stallman <rms@gnu.org>
6070
6071 * buffer.c (Fprevious_overlay_change): Just return
6072 the answer obtained from overlays_at.
6073
6074 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
6075 Use XpmCloseness and attrs.closeness instead.
6076
60771999-08-06 Richard Stallman <rms@gnu.org>
6078
6079 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
6080
60811999-08-06 Geoff Voelker <voelker@cs.washington.edu>
6082
6083 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
6084 Ffile_attributes_lessp): New functions.
6085 (Fdirectory_files): Use directory_files_internal.
6086 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
6087 Ffile_attributes_lessp.
6088
6089 * w32.c (stat): Check for directory ending in separator when
6090 doing readdir fast path.
6091
6092 * w32fns.c (x_set_icon_type): Support setting frame icons.
6093 * w32term.c (x_bitmap_icon): New function.
6094 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
6095
60961999-08-06 Gerd Moellmann <gerd@gnu.org>
6097
6098 * xdisp.c (set_iterator_to_next): After delivering a character
6099 from a display vector, restore face and charset to what they were
6100 before the display vector was processed.
6101
61021999-08-06 Gerd Moellmann <gerd@gnu.org>
6103
6104 * xdisp.c (reseat_at_next_visible_line_start): New parameter
6105 on_newline_p.
6106 (set_iterator_to_next): After delivering last char
6107 from display vector, reseat on next visible line start if
6108 dpvec_char_len < 0.
6109 (next_element_from_buffer): Set dpvec_char_len to -1 for
6110 selective display.
6111
61121999-08-06 Gerd Moellmann <gerd@gnu.org>
6113
6114 * xdisp.c (compute_line_metrics): If first line's physical ascent
6115 is larger than its logical ascent, use the physical ascent, and
6116 make the row taller. Set row's overlapping_p flag.
6117
6118 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
6119 (direct_output_for_insert): Ditto.
6120
6121 * dispextern.h (struct glyph_row): Add overlapping_p.
6122
6123 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
6124
6125 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
6126 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
6127
6128 * dispnew.c (direct_output_for_insert): Don't use this method if
6129 row is overlapped by others.
6130 (update_text_area): Write full line if current line is overlapped.
6131 (redraw_overlapped_rows): New.
6132 (update_window): Call it.
6133 (redraw_overlapping_rows): New.
6134 (update_window): Call it.
6135 (scrolling_window): Make sure overlapped_p flag in current rows is
6136 unchanged.
6137 (row_equal_p): Take rows overlapped_p flag into account.
6138
6139 * dispextern.h (struct glyph_row): Add flag overlapped_p.
6140
6141 * xterm.c (x_fix_overlapping_area): New.
6142 (x_redisplay_interface): Add x_fix_overlapping_area.
6143
6144 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
6145
61461999-08-06 Gerd Moellmann <gerd@gnu.org>
6147
6148 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
6149 (struct glyph_string): Add member for_overlaps_p.
6150 (x_get_glyph_string_clip_rect): If glyph string draws foreground
6151 of overlapping rows, clip to window bottom.
6152 (x_fill_glyph_string): Add parameter overlaps_p.
6153 (x_fill_composite_glyph_string): Ditto.
6154 (BUILD_GLYPH_STRINGS): Ditto.
6155 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
6156 (x_draw_glyph_string): Don't draw anything but the foreground
6157 if glyph string draws row overlaps.
6158
6159 * dispnew.c (direct_output_for_insert): Don't use this
6160 optimization for rows that overlap others.
6161 (update_window_line): Return non-zero if display has changed.
6162 (update_text_area): Ditto.
6163 (update_window): Record if display has been changed.
6164
6165 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
6166
6167 * dispextern.h (struct redisplay_interface): Add
6168 fix_overlapping_area.
6169
6170 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
6171
6172 * dispextern.h (struct glyph): Add overlaps_vertically_p.
6173
6174 * xterm.c (x_produce_image_glyph): Compute iterator's physical
6175 ascent and descent.
6176 (x_produce_stretch_glyph): Ditto.
6177 (x_produce_glyphs): Ditto.
6178
6179 * xdisp.c (init_iterator): Reset physical line height info
6180 after producing special glyphs.
6181 (display_toolbar_line): Set physical line height info.
6182 (compute_line_metrics): Ditto.
6183 (display_line): Ditto.
6184 (display_string): Ditto.
6185
6186 * term.c (produce_glyphs): Set iterator's physical height
6187 information.
6188
6189 * dispnew.c (blank_row): Compute glyph row's physical height.
6190 (row_equal_p): Take physical row heights into account.
6191 (direct_output_for_insert): Ditto.
6192 (update_text_area): Ditto.
6193
6194 * dispextern.h (struct glyph_row): Add phys_ascent and
6195 phys_height.
6196 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
6197 max_phys_descent.
6198
61991999-08-04 Stefan Monnier <monnier@cs.yale.edu>
6200
6201 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
6202 Fswitch_to_buffer.
6203 (no_switch_buffer): New function.
6204 (Fswitch_to_buffer): Call them. Don't get confused
6205 by "same-window" buffers in a dedicated frame.
6206
6207 * window.c (display-buffer): Don't get confused
6208 by "same-window" buffers in a dedicated frame.
6209
62101999-08-04 Andreas Schwab <schwab@gnu.org>
6211
6212 * insdel.c (insert_from_string_1): Check gap size against number
6213 of outgoing bytes, not incoming bytes.
6214
62151999-08-03 Tom Breton <tob@world.std.com>
6216
6217 * lread.c (read1): Added circular reading code to #N=.
6218 (SUBSTITUTE): New macro.
6219 (seen_list): New variable.
6220 (substitute_object_in_subtree): New function.
6221 (substitute_object_recurse): New function.
6222 (substitute_in_interval): New function.
6223
62241999-08-02 Eli Zaretskii <eliz@gnu.org>
6225
6226 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
6227
6228 * frame.c (make_terminal_frame): Don't call init_frame_faces if
6229 noninteractive, for termcap frames as well.
6230
6231 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
6232 frames.
6233
62341999-08-01 Richard Stallman <rms@gnu.org>
6235
6236 * fns.c (internal_equal): Correct overlay comparison.
6237
83c8f461 62381999-07-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
6239
6240 * xfns.c (x_set_internal_border_width):
6241 Call do_pending_window_change. Don't block input, don't call XFlush.
6242 (x_set_vertical_scroll_bars): Call do_pending_window_change.
6243 (x_set_scroll_bar_width, x_set_font): Likewise.
6244
6245 * frame.c (Fset_frame_height): Call do_pending_window_change.
6246 (Fset_frame_width, Fset_frame_size): Likewise.
6247
6248 * xterm.c (x_set_window_size): When calling change_frame_size,
6249 specify 1 for DELAY.
6250
6251 * widget.c (EmacsFrameSetCharSize): Don't call
6252 do_pending_window_change here.
6253
62541999-07-30 Dave Love <fx@gnu.org>
6255
6256 * config.in: Add HAVE_STDLIB_H.
6257
62581999-07-30 Richard M. Stallman <rms@gnu.org>
6259
6260 * process.c (create_process): Detect failure of `pipe'.
6261
62621999-07-30 Keisuke Nishida <kei@psn.net>
6263
6264 * alloc.c (allocate_vectorlike): Add missing increment.
6265
6266 * data.c (Fdefalias): Call Ffset instead of duplicating code.
6267
6268 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
6269 before calling indirect_function.
6270
62711999-07-30 Eli Zaretskii <eliz@gnu.org>
6272
6273 * dispextern.h (load_color, lookup_derived_face): Declare
6274 prototypes.
6275
6276 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
6277 it will be done later.
6278
6279 * frame.c (make_terminal_frame) [MSDOS]: Don't call
6280 init_frame_faces if non-interactive.
6281 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
6282 array with a call to msdos_stdcolor_name. The font name is now
6283 "ms-dos", consistent with realize_tty_face.
6284
6285 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
6286 MSDOS frame.
6287
6288 * window.c (Fset_window_configuration) [MSDOS]: Don't call
6289 x_set_toolbar_lines.
6290
6291 * xfaces.c (load_color): Remove static from definition and remove
6292 prototype.
6293 [MSDOS]: Add a DOS-specific version of load_color.
6294 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
6295 (lookup_derived_face): New function.
6296 (realize_default_face): Support MSDOS frames.
6297 [MSDOS]: If fore/background colors are unspecified, inherit them
6298 from the frame.
6299 (realize_face): Support MSDOS frames.
6300 (realize_tty_face): Support MSDOS frames.
6301 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
6302 load_color to try to find a suitable approximation. If the face
6303 is inverse-video, swap the foreground and background colors.
6304
6305 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
6306 functions.
6307
6308 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
6309
6310 * msdos.h: Remove redundant declarations (most of them are now in
6311 dispextern.h).
6312
6313 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
6314 Use default frame colors if the face doesn't specify them; invert
6315 the colors if highlight is ON.
6316 (IT_write_glyphs): Rewritten for the new redisplay engine.
6317 (IT_change_line_highlight): Add (unused) parameter Y, since that's
6318 how the hook is called by term.c.
6319 (IT_copy_glyphs): New function, copies an area of the display in
6320 video RAM.
6321 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
6322 redisplay now calls it even if char_ins_del_ok is zero.
6323 (IT_set_frame_parameters): Prototype changed. Calls the new
6324 load_color. Puts the new fore/background colors into the default
6325 face on current frame.
6326 (IT_menu_display): Rewritten to handle the new struct glyph
6327 instead of a char array.
6328 (XMenuActivate): Call lookup_derived_face to create and use
6329 special faces for the pop-up and drop-down menus.
6330
63311999-07-29 Gerd Moellmann <gerd@gnu.org>
6332
6333 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
6334 XawScrollbarSetThumb if thumb parameters haven't changed because
6335 that function apparently isn't optimized for this case.
6336
63371999-07-29 Eli Zaretskii <eliz@gnu.org>
6338
6339 * msdos.c (getdefdir): Don't return failure indication when
6340 _fixpath sets errno to ENOSYS.
6341
63421999-07-28 Gerd Moellmann <gerd@gnu.org>
6343
6344 * xdisp.c (string_char_and_length): New. Use it everywhere
6345 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
6346
63471999-07-28 Kenichi Handa <handa@etl.go.jp>
6348
6349 * fns.c (count_combining): New function.
6350 (struct textprop_rec): New structure.
6351 (concat): Copy text properties correctly when byte combining
6352 occurs.
6353
63541999-07-28 Gerd Moellmann <gerd@gnu.org>
6355
6356 * xterm.c (x_setup_relief_color): Don't try smart color allocation
6357 if display is mono.
6358 (x_draw_row_bitmaps): If face has stipple, don't switch
6359 to foreground color for clearing areas, and set the fill style.
6360
6361 * xfaces.c (load_face_colors): Load background color if setting
6362 stipple, too.
6363 (prepare_face_for_display): Use FillOpaqueStippled instead of
6364 FillStippled.
6365
63661999-07-26 Ken'ichi Handa <handa@gnu.org>
6367
6368 * xterm.c (x_find_ccl_program): Add casting.
6369
6370 * w32fns.c (w32_find_ccl_program): Add casting.
6371
63721999-07-27 Gerd Moellmann <gerd@gnu.org>
6373
6374 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
6375
6376 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
6377 because this will try to access a nonexisting widget.
6378
63791999-07-26 Markus Rost <rost@gnu.org>
6380
6381 * fns.c (Fgethash): Fix order of variables (patch by gerd).
6382 (Fputhash): Ditto.
6383 (Fremhash): Ditto.
6384
63851999-07-26 Gerd Moellmann <gerd@gnu.org>
6386
6387 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
6388 value to frame width and height.
6389
6390 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
6391 into account for full-width windows. Don't add scroll bar width
6392 to width of clip rect.
6393 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
6394 (x_set_glyph_string_background_width): Add 1 to background width.
6395 (x_draw_glyphs): Take internal border into account for full-width
6396 lines.
6397
63981999-07-26 Richard M. Stallman <rms@gnu.org>
6399
6400 * xfns.c (x_set_mouse_color): Always unload the old color.
6401 Don't allow nil as color value.
6402 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
6403 Always unload the old color.
6404
6405 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
6406
64071999-07-26 Karl Heuer <kwzh@gnu.org>
6408
6409 * fns.c (Fy_or_n_p): Doc fix.
6410
64111999-07-26 Kenichi Handa <handa@etl.go.jp>
6412
6413 * ccl.h (setup_ccl_program): The type is changed to `int'.
6414
6415 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
6416 stored in the following CCL code. Adjusted for the change of
6417 Vccl_program_table.
6418 (resolve_symbol_ccl_program): Adjusted for the new style of
6419 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
6420 is resolving failed.
6421 (ccl_get_compiled_code): New function.
6422 (setup_ccl_program): Function type changed from `void' to `int'.
6423 Resolve symbols in CCL_PROG.
6424 (Fccl_program_p): New function.
6425 (Fccl_execute): Get compiled CCL code by just calling
6426 setup_ccl_program.
6427 (Fccl_execute_on_string): Likewise.
6428 (Fregister_ccl_program): Adjusted for the change of
6429 Vccl_program_table.
6430
6431 * coding.c (setup_coding_system): Get compiled CCL code by just
6432 calling setup_ccl_program.
6433
6434 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
6435 calling setup_ccl_program.
6436
6437 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
6438 calling setup_ccl_program.
6439
64401999-07-23 Gerd Moellmann <gerd@gnu.org>
6441
6442 * xfaces.c (frame_update_line_height): Just use the height of the
6443 frame's fontset or font, instead of taking face fonts into
6444 account.
6445
6446 * xdisp.c (get_next_display_element): Display DEL as `^?'.
6447
64481999-07-23 Richard M. Stallman <rms@gnu.org>
6449
6450 * window.c (Fsplit_window): For default size, round up for left window.
6451
64521999-07-21 Joe Ramey <ramey@ti.com>
6453
6454 * filelock.c (lock_if_free): Return -1 if check_lock_owner
6455 has returned -1 (lockfile exists but is not a symlink?).
6456
64571999-07-20 Gerd Moellmann <gerd@gnu.org>
6458
6459 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
6460 because of a change in cursor_gc made in 20.4.
6461
64621999-07-19 Gerd Moellmann <gerd@gnu.org>
6463
6464 * xterm.c (x_calc_absolute_position): Subtract menu bar height
6465 for YNegative, if using X toolkit.
6466
6467 * xfns.c (x_real_positions): Don't subtract window borders
6468 from positions returned.
6469
64701999-07-17 Gerd Moellmann <gerd@gnu.org>
6471
6472 * xrdb.c (x_load_resources): Set double-click time defaults
6473 for Motif list boxes from double-click-time.
6474
6475 * fns.c (Vhash_table_tests): Remvoed.
6476 (Qhash_table_test): New.
6477 (syms_of_fns): Initialize Qhash_table_test.
6478 (Fmake_hash_table): Look up user-defined tests in symbol prop
6479 `hash-table-test'.
6480 (Fdefine_hash_table_test): Store test and hash function as
6481 symbol prop `hash-table-test'.
6482 (make_hash_table): Add parameters user_test and user_hash.
6483
6484 * window.c (set_window_buffer): Set window margins for tty
6485 frames, too.
6486 (Fset_window_margins): Ditto.
6487
6488 * term.c (append_glyph): Use glyph area of iterator instead of
6489 always TEXT_AREA.
6490
6491 * dispnew.c (update_frame_1): Add left margin width to cursor
6492 hpos.
6493 (direct_output_for_insert): Ditto.
6494 (direct_output_forward_char): Ditto.
6495
6496 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
6497
6498 * dispextern.h (struct glyph_matrix): Add top_line_p.
6499
65001999-07-16 Gerd Moellmann <gerd@gnu.org>
6501
6502 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
6503 instead.
6504
6505 * fns.c (cmpfn_eq): Add hash code parameters.
6506 (cmpfn_eql): Ditto.
6507 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
6508 (cmpfn_user_defined): Likewise.
6509
65101999-07-15 Gerd Moellmann <gerd@gnu.org>
6511
6512 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
6513
6514 * fns.c (maybe_resize_hash_table): Correct computation of
6515 index vector size.
6516 (make_hash_table): Ditto.
6517 (Fmakehash): New.
6518
6519 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
6520
6521 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
6522 (survives_gc_p): Make it externally visible.
6523 (mark_object): Ditto.
6524
6525 * fns.c (remove_hash_entry): Removed.
6526 (sweep_weak_hash_tables): New.
6527
6528 * print.c (print): Print more information about hash tables.
6529
6530 * xfns.c (image_spec_hash): Removed.
6531 (lookup_image): Use sxhash instead of image_spec_hash.
6532 (image_spec_equal_p): Removed.
6533 (lookup_image): Use Fequal instead of image_spec_equal_p.
6534
65351999-07-14 Gerd Moellmann <gerd@gnu.org>
6536
6537 * lisp.h (P_): Moved to top of file.
6538
6539 * fns.c (make_hash_table): Set new members.
6540
6541 * alloc.c (mark_object): Mark hash table's user_hash_function.
6542 Mark index vector for weak hash tables.
6543
6544 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
6545 user_hash_function, cmpfn, and hashfn.
6546
6547 * fns.c (build_hash): Removed.
6548 (hash_test): Removed.
6549 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
6550 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
6551
65521999-07-13 Gerd Moellmann <gerd@gnu.org>
6553
6554 * alloc.c (survives_gc_p): New.
6555
6556 * print.c (print): Add hash table handling.
6557
6558 * alloc.c (mark_object): Add code to mark hash tables.
6559
6560 * lisp.h (GC_HASH_TABLE_P): New.
6561
6562 * emacs.c (main): Call init_fns.
6563
6564 * fns.c (init_fns): New.
6565
6566 * fns.c: Add hash table implementation.
6567
6568 * lisp.h (PVEC_HASH_TABLE): New.
6569 (struct Lisp_Hash_Table): New.
6570 (XHASH_TABLE): New.
6571 (XSET_HASH_TABLE): New.
6572 (HASH_TABLE_P): New.
6573 (CHECK_HASH_TABLE): New.
6574 (DEFAULT_HASH_SIZE): New.
6575 (DEFAULT_REHASH_THRESHOLD): New.
6576 (DEFAULT_REHASH_SIZE): New.
6577
6578 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
6579 (x_write_glyphs): Compute overwritten cursor using real start
6580 and end positions of display.
6581 (x_insert_glyphs): Ditto.
6582
65831999-07-10 Gerd Moellmann <gerd@gnu.org>
6584
6585 * keyboard.c (read_char): Use message3_nolog to show help-echo.
6586
6587 * dispnew.c (blank_row): Add y-position as parameter. Compute
6588 visible height.
6589
6590 * xdisp.c (next_element_from_string): Give padding spaces
6591 a position of -1.
6592
6593 * dispnew.c (adjust_glyph_matrix): Some work to support
6594 marginals areas on tty frames in a future version.
6595 (allocate_matrices_for_frame_redisplay): Ditto.
6596
6597 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
6598 to zero if number of glyphs in the row is <= 1.
6599
66001999-07-09 Gerd Moellmann <gerd@gnu.org>
6601
6602 * dispnew.c (buffer_posn_from_coords): Take left marginal area
6603 into account.
6604
6605 * xdisp.c (handle_display_prop): Don't reset area if handing
6606 a property from a string that came from a `display' property.
6607 (handle_single_display_prop): Don't handle recursive `display'
6608 properties.
6609 (handle_single_display_prop): Handle some display property
6610 forms for terminal frames.
6611 (Qimage): Moved here from xfns.c.
6612
6613 * dispextern.h (struct it): New field string_from_display_prop_p.
6614
6615 * xterm.c (x_clip_to_row): Don't let clip_rect include top
6616 line.
6617
66181999-07-08 Gerd Moellmann <gerd@gnu.org>
6619
6620 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
6621
6622 * window.c (set_window_buffer): Set window's vscroll to zero.
6623
6624 * xdisp.c (QCwhen): New.
6625 (display_prop_end): New.
6626 (handle_single_display_prop): Use it.
6627 (debug_method_add): Print buffer name if tracing.
6628 (try_window_reusing_current_matrix): Compute visible height
6629 of reused rows. Fix cursor position calculation in case of
6630 top-line.
6631
6632 * dispextern.h (struct redisplay_interface): Add parameter
6633 cursor_on_p to update_window_end_hook.
6634
6635 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
6636
66371999-07-07 Gerd Moellmann <gerd@gnu.org>
6638
6639 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
6640 doesn't become negative when decrementing it.
6641
6642 * eval.c (Fsignal): Reset redisplaying_p to zero.
6643
6644 * xdisp.c (try_window_reusing_current_matrix): Call hooks
6645 for window update.
6646 (try_window_id): Ditto.
6647
6648 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
6649 (x_scroll_run): Ditto.
6650 (any_help_event_p): New.
6651 (x_initialize): Set it to zero.
6652 (XTread_socket): Clear help echo only if any_help_event_p.
6653
6654 * xdisp.c (init_iterator): Set top_line_p.
6655 (start_display): Use correct initial y if top-line is present.
6656 (make_cursor_line_fully_visible): Bug fixes for top-line.
6657 (try_scrolling): Ditto.
6658 (try_window_reusing_current_matrix): Ditto.
6659
6660 * dispextern.h (struct it): Add top_line_p.
6661
6662 * dispnew.c (shift_glyph_matrix): Move some computations out
6663 of the loop.
6664
6665 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
6666 XFLOATINT.
6667
66681999-07-06 Gerd Moellmann <gerd@gnu.org>
6669
6670 * dispnew.c (update_frame_1): When setting cursor in echo area,
6671 skip only over padding spaces at the end.
6672
6673 * xfaces.c (realize_tty_face): Set face's font_name field to
6674 "tty".
6675
6676 * term.c (update_end): Turn cursor on only if selected window's
6677 cursor_off_p flag is not set.
6678
66791999-07-05 Gerd Moellmann <gerd@gnu.org>
6680
6681 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
6682 (TS_cursor_normal): Renamed from TS_end_visual_mode.
6683 (TS_cursor_invisible): New.
6684 (term_init): Initialize TS_cursor_invisible.
6685 (tty_hide_cursor): New.
6686 (tty_show_cursor): New.
6687 (update_end): Show tty cursor.
6688 (update_begin): Hide tty cursor to prevent cursor flickering
6689 during redisplays triggered by timers (stealth fontification).
6690
6691 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
6692
6693 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
6694 in scroll bars.
6695 (x_handle_toolbar_click): Set modifier bits.
6696
66971999-07-04 Gerd Moellmann <gerd@gnu.org>
6698
6699 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
6700 instead of a pointer to a volatile input_event.
6701 (kbd_buffer_store_event): Remove volatile modifier from
6702 declaration of local variable `sp'.
6703 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
6704 to kbd_fetch_ptr.
6705
67061999-07-03 Gerd Moellmann <gerd@gnu.org>
6707
6708 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
6709 only if buffer is modified. Return quickly if changes are
6710 above window start.
6711
67121999-07-02 Gerd Moellmann <gerd@gnu.org>
6713
6714 * dispextern.h (HSCROLL_WINDOWS): Removed.
6715
6716 * xdisp.c (mark_window_display_accurate): Don't set
6717 w->region_showing.
6718 (redisplay_internal): Don't call redraw_garbaged_frames.
6719
67201999-07-01 Gerd Moellmann <gerd@gnu.org>
6721
6722 * xdisp.c (echo_area_display): Don't display truncation marks
6723 for messages because 20.4 doesn't do it either.
6724 (redisplay_window): Case same window start. Instead of giving
6725 up when cursor is partially visible, make it fully visible.
6726 (mark_window_display_accurate): Some cleanup. Record window's
6727 last cursor information.
6728 (debug_method_add): Improved.
6729 (redisplay_internal): Record last cursor info only if not
6730 consider_all_windows_p.
6731
6732 * dispnew.c (update_window): Update top line after scrolling.
6733 (blank_row): Renamed from make_empty_enabled_row.
6734 (increment_glyph_row_buffer_positions): Increment positions
6735 in buffers, only.
6736
6737 * window.c (Fcoordinates_in_window_p): Add top-line to doc
6738 string.
6739
67401999-06-30 Gerd Moellmann <gerd@gnu.org>
6741
6742 * dispnew.c (update_window): Check that updated row is visible.
6743
6744 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
6745 top of window differently.
6746
6747 * xdisp.c (try_window_reusing_current_matrix): Don't do it
6748 if region is showing.
6749
6750 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
6751 avoiding matrix reallocation. Set window_vscroll in matrix.
6752
6753 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
6754
26901792
DL
6755 * xdisp.c (debug_method_add): New.
6756 (debug_redisplay_method): Removed.
6757 (try_window_reusing_current_matrix): Handle case where old
6758 window start is the same as new window start.
6759
6760 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
6761 an array instead of a pointer.
6762
26901792
DL
6763 * xfns.c (Fx_show_tip): Undo previous change.
6764
6765 * xterm.c (x_append_glyph): Clear glyph->u.val.
6766
6767 * dispextern.h (struct glyph): Increase size of face_id bit-field
6768 for CHAR_GLYPH to 12.
6769
67701999-06-29 Gerd Moellmann <gerd@gnu.org>
6771
6772 * xfaces.c (x_charset_registry): Make it externally visible.
6773
67741999-06-28 Gerd Moellmann <gerd@gnu.org>
6775
6776 * dispnew.c (update_window): Use mode_line_p flag of rows
6777 instead of WINDOW_WANTS_MODELINE_P.
6778
6779 * xterm.c (clear_mouse_face): Make externally visible.
6780
6781 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
6782
6783 * xterm.c (expose_line): Handle exposure of top-lines.
6784
6785 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
6786 if mouse_face_mouse_frame is null.
6787
6788 * xdisp.c (redisplay_window): If window is echo_area_window,
6789 and update_mode_line is set, update menubar and toolbar.
6790
6791 * dispnew.c (space_glyph): Set its charpos to -1.
6792 (update_frame_1): Ignore trailing padding spaces.
6793
6794 * xdisp.c (next_element_from_c_string): Set position of padding
6795 glyphs to -1.
6796
67971999-06-27 Gerd Moellmann <gerd@gnu.org>
6798
6799 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
6800 XQueryColor.
6801
6802 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
6803 (set_cursor_from_row): Skip over glyphs having a null object at
6804 the start of rows.
6805 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
6806 glyphs.
6807 (handle_invisible_prop): Compute next change only when needed.
6808 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
6809 line.
6810
68111999-06-26 Gerd Moellmann <gerd@gnu.org>
6812
6813 * xrdb.c (x_load_resources): Don't set resource for double-click
6814 time.
6815
6816 * xdisp.c (try_window_id): Return quickly if all changes are
6817 below the window's current matrix end.
6818
6819 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
6820 parameter.
6821
6822 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
6823 in desired not in current matrix.
6824 (try_window_reusing_current_matrix): Rotate matrices starting
6825 at start_vpos instead of 0.
6826
6827 * xterm.c (expose_window): Use window_text_bottom_y.
6828 (fast_find_position): Ditto.
6829
6830 * xdisp.c (redisplay_window): Use window_text_bottom_y.
6831 (try_window_reusing_current_matrix): Ditto.
6832 (get_last_unchanged_at_beg_row): Ditto.
6833 (init_iterator): Ditto.
6834
6835 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
6836 more row.
6837 (check_matrix_invariants): Use window_text_bottom_y.
6838 (update_window): Ditto.
6839 (scrolling_window): Ditto.
6840
6841 * xdisp.c (window_text_bottom_y): New.
6842
68431999-06-25 Gerd Moellmann <gerd@gnu.org>
6844
6845 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
6846 clearing mouse face.
6847 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
6848 event.xcrossing.focus is not set, and focus is in the menu bar,
6849 set focus frame as if event.xcrossing.focus were set.
6850
68511999-06-24 Gerd Moellmann <gerd@gnu.org>
6852
6853 * keyboard.c (make_lispy_event): Handle mouse on top lines.
6854 * keyboard.c (make_lispy_movement): Ditto.
6855
6856 * window.c (coordinates_in_window): Return 4 if on top line.
6857 (Fcoordinates_in_window_p): Return `top-line' if on top line.
6858
6859 * xdisp.c (window_box_height): Subtract top line height.
6860 (window_box): Add top line height to top y position if top line
6861 exists.
6862 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
6863 the top line row of the window. Set initial y-position to
6864 window's top line height plus delta.
6865 (start_display): Choose start glyph row depending on whether
6866 window has a top line.
6867 (try_scrolling): Take top line height into account for aggressive
6868 scrolling.
6869 (compute_window_start_on_continuation_line): Take top line into
6870 account.
6871 (redisplay_window): Ditto. If top line height has changed,
6872 trigger a new redisplay.
6873 (try_window_reusing_current_matrix): Take top line into account.
6874 (find_last_row_displaying_text): Ditto.
6875 (get_last_unchanged_at_beg_row): DItto.
6876 (try_window_id): Ditto.
6877 (compute_line_metrics): Ditto.
6878
6879 * dispnew.c (shift_glyph_matrix): Compute visible row height
6880 taking top line of window into account.
6881 (update_window): Update top line. If scrolling_window detects
6882 that all rows are equal, only set cursor.
6883 (update_window_line): Call after_update_window_line_hook if
6884 mode_line_p flag of rows has changed.
6885 (scrolling_window): Add parameter top_line_p. Return -1 if
6886 all rows are equal.
6887 (mode_line_string): Add parameter mode_line_p. Handle strings
6888 in top lines.
6889
6890 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
6891 (MATRIX_FIRST_TEXT_ROW): New.
6892 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
6893 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
6894 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
6895 (MATRIX_TOP_LINE_HEIGHT): New.
6896 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
6897 (CURRENT_TOP_LINE_HEIGHT): New.
6898 (DESIRED_TOP_LINE_HEIGHT): New.
6899 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
6900 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
6901 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
6902 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
6903
6904 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
6905 lines.
6906 (x_draw_row_bitmaps): Take top line into account when clearing
6907 bitmap area.
6908 (x_estimate_mode_line_height): Replacement for
6909 x_frame_mode_line_height.
6910 (x_get_glyph_string_clip_rect): Take top line into account.
6911 (x_clear_end_of_line): Ditto.
6912 (note_mode_line_highlight): Add parameter mode_line_p. Handle
6913 top lines.
6914 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
6915 (x_erase_phys_cursor): Take top line into account.
6916
6917 * xdisp.c (window_box_height): Subtract top line height if
6918 window wants a top line.
6919 (display_mode_lines): New.
6920 (redisplay_window): Call it.
6921 (display_mode_line): Add parameters face_id and format.
6922
6923 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
6924 (MATRIX_TOP_LINE_HEIGHT): New.
6925
6926 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
6927
6928 * term.c (estimate_mode_line_height): Renamed from
6929 frame_mode_line_height. Add parameter face_id.
6930 (estimate_mode_line_height_hook): Renamed from
6931 frame_mode_line_height_hook.
6932 (produce_special_glyphs_hook): Removed.
6933 (produce_glyphs_hook): Removed.
6934
69351999-06-23 Gerd Moellmann <gerd@gnu.org>
6936
6937 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
6938 (struct glyph_row): Add mode_line_p.
6939
6940 * xfaces.c (realize_basic_faces): Realize face `top-line'.
6941 (Qtop_line): New.
6942 (syms_of_xfaces): Initialize Qtop_line.
6943
6944 * dispextern.h (TOP_LINE_FACE_ID): New.
6945
6946 * buffer.c (init_buffer_once): Set default for
6947 top_line_format to nil.
6948 (init_buffer_once): Init top_line_format.
6949 (default-top-line-format): New.
6950 (top-line-format): New buffer-local variable.
6951
6952 * buffer.h: Add top_line_format.
6953
6954 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
6955
69561999-06-17 Dave Love <fx@gnu.org>
6957
6958 * xfns.c: Move the PNG section before the JPEG one to avoid
6959 problems surrounding setjmp.h/png.h on GNU/Linux.
6960
69611999-06-17 Gerd Moellmann <gerd@gnu.org>
6962
6963 * xfns.c (x_kill_gs_process): Don't free colors.
6964
69651999-06-17 Dave Love <fx@gnu.org>
6966
6967 * s/gnu-linux.h: Zap spurious ~.
6968
69691999-06-16 Gerd Moellmann <gerd@gnu.org>
6970
6971 * xfns.c (gif_load): Improve multi-image support.
6972
69731999-06-15 Gerd Moellmann <gerd@gnu.org>
6974
6975 * xfns.c (gif_load): Support multi-image files.
6976
6977 * Makefile.in (LIBGIF): Use libungif.
6978
6979 * configure.in (HAVE_GIF): Use libungif instead of libgif
6980 because the former doesn't contain patented compression code.
6981
6982 * xdisp.c (compute_window_start_on_continuation_line): Don't
6983 do it if line start is too far away from window start.
6984
69851999-06-14 Gerd Moellmann <gerd@gnu.org>
6986
6987 * buffer.c (init_buffer_once): Set buffer_local_flags for
6988 scroll_*_aggressively.
6989 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
6990 (init_buffer_once): Set defaults for these variables.
6991 (syms_of_buffer): Add default-scroll-*-aggressively.
6992
6993 * buffer.h (scroll_up_aggressively): New.
6994 (scroll_down_aggressively): New.
6995
6996 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
6997 a static PNG library.
6998
6999 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
7000 in case it's a static library.
7001
7002 * Makefile.in (ctagsfiles): Split so that files starting
7003 with an `x' are found before files starting with `w32'.
7004 (ctagsfiles1): New.
7005 (ctagsfiles2): New.
7006 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
7007
7008 * xdisp.c (compute_window_start_on_continuation_line): New.
7009 (redisplay_window): Use it.
7010 (INFINITY): New.
7011 (reseat_to_string): Use it.
7012 (hscroll_window_tree): Ditto.
7013 (compute_window_start_on_continuation_line): Ditto.
7014 (redisplay_window): Don't force display with a new window start.
7015
70161999-06-06 Gerd Moellmann <gerd@gnu.org>
7017
7018 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
7019 if widget not present.
7020
7021 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
7022
70231999-06-04 Gerd Moellmann <gerd@gnu.org>
7024
7025 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
7026 value of realize_basic_faces.
7027 (load_face_font_or_fontset): Store full font name in face.
7028 (realize_default_face): Use full font name.
7029
26901792
DL
7030 * xterm.c (x_produce_glyphs): Set member char_to_display.
7031 (x_append_glyph): Store char_to_display in glyphs.
7032
7033 * dispextern.h (struct it): Add char_to_display.
7034
7035 * xfns.c (x_set_font): Don't call face-set-after-frame-default
7036 if faces haven't been initialized.
7037 (Fx_create_frame): Call face-set-after-frame-default after
7038 faces have been initialized, and widget has been created.
7039
7040 * puresize.h (BASE_PURESIZE): Increased.
7041
70421999-06-01 Gerd Moellmann <gerd@gnu.org>
7043
7044 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
7045 (Finternal_set_lisp_face_attribute): If frame is t when
7046 :font attribute is set, use the selected frame.
7047 (clear_face_cache): Add parameter clear_fonts_p.
7048 (Fclear_face_cache): Add optional parameter thorougly.
7049
7050 * xfaces.c (face_numeric_value): Return -1 if symbol is not
7051 in table.
7052 (Fclear_face_cache): New.
7053 (choose_face_fontset_font): If fontset doesn't contain font
7054 pattern for the given charset, use CHARSET_ASCII.
7055 (Finternal_set_lisp_face_attribute): Fix handling of nil
7056 stipple attribute.
7057 (Finternal_set_lisp_face_attribute): Fix handling of changing
7058 font-related face attributes of the default face.
7059 (set_lface_from_font_name): Set only attributes that aren't
7060 specified.
7061
70621999-05-31 Gerd Moellmann <gerd@gnu.org>
7063
7064 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
7065 font support.
7066 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
7067 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
7068 scalable fonts depending on the setting of SCALABLE_FONTS.
7069 (first_font_matching): List more than one font to find the
7070 first non-scalable matching font.
7071 (sorted_font_list): Let x_face_list_fonts return scalable fonts
7072 depending on SCALABLE_FONTS.
7073 (better_font_p): New parameter compare_pt_p. If zero, don't
7074 compare point sizes of fonts.
7075 (exact_face_match_p) [SCALABLE_FONTS]: New.
7076 (build_scalable_font_name) [SCALABLE_FONTS]: New.
7077 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
7078 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
7079 (syms_of_xfaces): Add scalable-fonts-allowed.
7080
70811999-05-26 Gerd Moellmann <gerd@gnu.org>
7082
7083 * xfns.c (png_load): Let PNG lib handle gamma. Construct
7084 mask only if image contains simple transparency information.
7085 Otherwise, combine image with frame background color.
7086
7087 * configure.in (--with-png, HAVE_PNG): New.
7088
7089 * config.in (HAVE_PNG): New.
7090
7091 * Makefile.in: Add PNG library.
7092
7093 * xfns.c: Add PNG support.
7094
70951999-05-25 Gerd Moellmann <gerd@gnu.org>
7096
7097 * xdisp.c (init_xdisp): Initialize echo_area_message and
7098 previous_echo_area_message to nil.
7099
7100 * keyboard.c (read_char): Rename local variable echo_area_message
7101 because it shadows the global one.
7102
71031999-05-05 Gerd Moellmann <gerd@gnu.org>
7104
7105 * xterm.c (note_mode_line_highlight): Restructured.
7106
7107 * window.c (coordinates_in_window): Handle windows that don't have
7108 a mode line because their buffer's mode-line-format is nil.
7109 Recognize the mode line under x positions that correspond to
7110 flags areas and left scroll bar.
7111
71121999-05-02 Dave Love <fx@gnu.org>
7113
7114 * xterm.c (note_mouse_highlight): Separate help-echo processing
7115 from check on mouse-face so that it works generally.
7116
71171999-04-21 Gerd Moellmann <gerd@gnu.org>
7118
7119 * sound.c (Fplay_sound): Run hook play-sound-hook.
7120 (Qplay_sound_hook): New.
7121
71221999-04-20 Gerd Moellmann <gerd@gnu.org>
7123
7124 * xdisp.c (update_echo_area): Handle echo_area_message.
7125
71261999-04-19 Gerd Moellmann <gerd@gnu.org>
7127
7128 * editfns.c (Fmessage): Use message3.
7129
7130 * print.c (printchar): Set echo_area_message to nil.
7131 (strout): Ditto.
7132
7133 * minibuf.c (read_minibuf): Reset echo message strings to nil.
7134 (Fminibuffer_completion_help): Ditto.
7135
7136 * keyboard.c (cmd_error_internal): Set echo_areA_message.
7137 (command_loop_1): Test echo_areA_message.
7138 (read_char): Ditto.
7139 (record_menu_key): Set echo_area_message to nil.
7140 (Fexecute_extended_command): Test echo_area_message.
7141 (Fexecute_extended_command): Handle echo_area_message.
7142
7143 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
7144 is set.
7145
7146 * editfns.c (Fcurrent_message): If echo_area_message is set,
7147 return a substring of that string.
7148
7149 * dispnew.c (direct_output_for_insert): Test echo_area_message
7150 in addition to echo_area_glyphs.
7151 (set_window_cursor_after_update): Ditto.
7152 (update_frame_1): Ditto.
7153
7154 * alloc.c (Fgarbage_collect): Use message3_nolog to display
7155 old Lisp message string.
7156
7157 * xdisp.c (echo_area_message): New.
7158 (previous_echo_area_message): New.
7159 (syms_of_xdisp): Initialize and staticpro new variables.
7160 (echo_area_display): Display echo_area_message if set.
7161 (message2_nolog): Set echo_area_message and
7162 previous_echo_area_message.
7163 (echo_area_display): Set previous_echo_area_message.
7164 (redisplay_internal): Display echo area if echo_area_message
7165 or previous_echo_area_message are set.
7166 (redisplay_preserve_echo_area): Test/set echo_area_message and
7167 previous_echo_area_message.
7168 (redisplay_window): Test echo_area_message.
7169 (message3_nolog): New.
7170 (message3): New.
7171
7172 * editfns.c (Fformat): Add text properties to the result string
7173 from properties of the format string and properties of string
7174 arguments.
7175
7176 * textprop.c (text_property_list): New.
7177 (add_text_properties_from_list): New.
7178 (extend_property_ranges): New.
7179
71801999-03-29 Gerd Moellmann <gerd@gnu.org>
7181
7182 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
7183 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
7184 Use these symbols for the box face attribute instead of the
7185 removed ones.
7186
71871999-03-12 Gerd Moellmann <gerd@gnu.org>
7188
7189 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
7190 Correct wrong test for slant.
7191
71921999-03-10 Gerd Moellmann <gerd@gnu.org>
7193
7194 * xfaces.c: Use `unspecified' for unspecified face attributes,
7195 use t and nil for on/off.
7196
71971999-03-06 Gerd Moellmann <gerd@gnu.org>
7198
7199 * buffer.c (syms_of_buffer): Extend doc string of
7200 mode-line-format.
7201
7202 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
7203 (first_font_matching): New.
7204 (set_lface_from_font_name): Use it if font name is a pattern.
7205 (font_field_wildcard_p): Removed.
7206
7207 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
7208 Recompute visible height of rows.
7209
7210 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
7211 Don't accept non-strings for help-echo from overlays.
7212
72131999-03-04 Dave Love <fx@gnu.org>
7214
7215 * xterm.c (note_mouse_highlight): Check overlays for help-text
7216 property.
7217 (XTread_socket): Fix compiler warning.
7218
72191999-03-05 Gerd Moellmann <gerd@gnu.org>
7220
7221 * xterm.c (note_mouse_highlight): Don't restrict number of
7222 overlay to 10. Call overlays_at so that it doesn't try to
7223 extend the vector.
7224
7225 * xdisp.c (compute_line_metrics): Compute glyph row's visible
7226 height.
7227
7228 * dispnew.c (row_equal_p): Compare visible row height, only.
7229 (update_text_area): Draw whole line if visible heights of
7230 rows differ.
7231 (update_window_line): Call after_update_window_line_hook
7232 if visible row height has changed.
7233
7234 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
7235 (struct glyph_row): New member visible_height.
7236
7237 * xfaces.c (font_field_wildcard_p): New.
7238 (set_lface_from_font_name): Remove parameter force_p. Accept
7239 font names containing wildcards.
7240
72411999-03-04 Gerd Moellmann <gerd@gnu.org>
7242
7243 * xterm.c (x_after_update_window_line): Clear internal border
7244 when windows_or_buffers_changed.
7245
7246 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
7247 buffer has a nil mode_line_format.
7248
72491999-03-03 Gerd Moellmann <gerd@gnu.org>
7250
7251 * xterm.c (x_setup_relief_colors): Use either background color
7252 or specified color.
7253
7254 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
7255
7256 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
7257
7258 * xterm.c (x_draw_box_rect): New.
7259 (x_draw_glyph_string_box): Renamed from
7260 x_draw_glyph_string_relief. Call x_draw_box_rect.
7261
7262 * xfns.c (QCrelief): New.
7263 (syms_of_xfns): Initialize it.
7264
7265 * dispextern.h (struct glyph): Rename left_shadow_p to
7266 left_box_line_p, right_shadow_p to right_box_line_p.
7267 (MAX_RELIEF_THICKNESS): Removed.
7268 (struct it): Rename members having `relief' in their names
7269 to contain `box' instead.
7270
7271 * xfaces.c (realize_x_face): Handle new box attribute values.
7272 (QCrelief, Qbox): Removed.
7273 (QCshadow, QCcolor, Qraised, Qsunken): New.
7274 (syms_of_xfaces): Initialize new symbols.
7275
72761999-03-02 Gerd Moellmann <gerd@gnu.org>
7277
7278 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
7279
7280 * xfaces.c (LFACE_RELIEF): Removed.
7281 (merge_face_vector_with_property): Remove handling of `:relief'.
7282 (Finternal_set_lisp_face_attribute): Ditto.
7283 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
7284 (Finternal_get_lisp_face_attribute): Ditto.
7285 (realize_default_face): Ditto.
7286 (lface_hash): Don't compute hash from relief.
7287
7288 * dispextern.h (struct face): Replace member `relief' by
7289 `box_line_width'. Add member `box'.
7290 (face_box_type): New.
7291
7292 * xterm.c (x_produce_glyphs): If face has overline, add overline
7293 thickness + 1 to ascent.
7294
72951999-03-01 Gerd Moellmann <gerd@gnu.org>
7296
7297 * xterm.c (x_draw_glyph_string): Draw underline, overline,
7298 strike-through, and boxes.
7299 (x_draw_glyph_string_underline): Removed.
7300
7301 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
7302 (Qoverline, Qstrike_through, Qbox): New.
7303 (syms_of_xfaces): Define these symbols.
7304 (check_lface_attrs): Add checks for overline, strike-through,
7305 and box.
7306 (Finternal_set_lisp_face_attribute): Set new attributes.
7307 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
7308 (load_color): Handle new attributes.
7309 (realize_x_face): Ditto.
7310 (merge_face_vector_with_property): Ditto.
7311 (free_face_colors): Ditto.
7312 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
7313 (Finternal_get_lisp_face_attribute): Ditto.
7314 (Finternal_lisp_face_attribute_values): Ditto.
7315
7316 * dispextern.h (lface_attribute_index): Add enumerators for
7317 overstrike, strike-through, and box.
7318 (struct face): Add members for overline, strike-through, and
7319 box.
7320
73211999-02-17 Dave Love <fx@gnu.org>
7322
7323 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
7324 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
7325 files.
7326
73271999-02-16 Gerd Moellmann <gerd@gnu.org>
7328
7329 * keyboard.c (toolbar_items): Call access_keymap with third
7330 parameter 1, so that we don't get inherited toolbar item
7331 definitions.
7332
7333 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
7334 the window end vpos when in empty first line of window.
7335
73361999-02-15 Gerd Moellmann <gerd@gnu.org>
7337
7338 * xfaces.c (set_font_frame_param): New.
7339 (Finternal_set_lisp_face_attribute): Call it.
7340
7341Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7342
7343 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
7344 Accept specifications of color for underline.
7345
73461999-02-13 Gerd Moellmann <gerd@gnu.org>
7347
7348 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
7349 `frame' is t, operate on face defaults for new frames. If it
7350 is nil, operate on the selected frame.
7351
73521999-02-12 Gerd Moellmann <gerd@gnu.org>
7353
7354 * dispnew.c (check_matrix_invariants): Put it in #if 0.
7355 (update_window): Put the call to check_matrix_invariants in #if 0.
7356
7357Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7358
7359 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
7360 Remove definition of UNDERLINE_COLOR.
7361
7362Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7363
7364 * xfaces.c (free_face_colors): Free the color for underline.
7365
7366 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
7367 to the GC.
7368
7369Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7370
7371 * dispextern.h (UNDERLINE_COLOR): Defined.
7372 (struct face): Added two new members.
7373 underline_color, underline_defaulted_p.
7374
7375 * xfaces.c (merge_face_vector_with_property):
7376 (check_lface_attrs): Accept the string value for underline.
7377 (Finternal_set_lisp_face_attribute): Likewise.
7378
7379 * xfaces.c (load_color): Change the last argument type to enum
7380 lface_attribute_index from int. And addec code for underling coloring.
7381 (load_face_colors): Pass LFACE_*_INDEX to load_color.
7382
73831999-02-12 Gerd Moellmann <gerd@gnu.org>
7384
7385 * xfns.c (Fx_image_header): Removed.
7386
73871999-02-07 Gerd Moellmann <gerd@gnu.org>
7388
7389 * xterm.c: Don't include <bitmaps/gray>.
7390 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
7391
7392 * xfns.c (Fx_image_header): Add missing `\n\'.
7393 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
7394
73951999-02-01 Gerd Moellmann <gerd@gnu.org>
7396
7397 * xterm.c (x_scroll_bar_create): Set background pixel from
7398 specified scroll bar color.
7399 (x_scroll_bar_set_handle): Use scroll bar foreground color.
7400
7401 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
7402 (x_set_scroll_bar_background): Ditto.
7403
7404 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
7405
7406 * xfns.c (x_default_scroll_bar_color_parameter): New.
7407 (Fx_create_frame): Call it.
7408
74091999-01-31 Gerd Moellmann <gerd@gnu.org>
7410
7411 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
7412 values in x_output structure.
7413 (Qscroll_bar_foreground, Qscroll_bar_background): New.
7414 (syms_of_xfns): Initialize these symbols.
7415
7416 * xterm.h (struct x_output): Add scroll bar pixel colors.
7417
7418 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
7419 (x_set_scroll_bar_foreground): New.
7420 (x_set_scroll_bar_background): New.
7421
26901792
DL
74221999-01-12 Gerd Moellmann <gerd@gnu.org>
7423
7424 * xdisp.c (handle_single_display_prop): New.
7425 (handle_display_prop): Call it.
7426 (handle_raise_prop): Removed.
7427 (handle_height_prop): Removed.
7428 (handle_space_width_prop): Removed.
7429 (handle_face_prop): Remove handling of raised text.
7430 (handle_display_prop): Do it here.
7431
7432 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
7433 (RAISE_PROP_IDX): Removed.
7434 (HEIGHT_PROP_IDX): Removed.
7435 (SPACE_WIDTH_PROP_IDX): Removed.
7436
7437 * xdisp.c (Qdisplay): Replaces Qglyph.
7438 (handle_display_prop): Formerly handle_glyph_prop.
7439
74401999-01-11 Gerd Moellmann <gerd@gnu.org>
7441
7442 * xdisp.c (reseat_to_string): Set position in display vector to -1.
7443 (handle_stop): Set position in display vector to -1. Don't
7444 check overlay strings when set up to deliver characters from a
7445 display vector.
7446 (set_iterator_to_next): At the end of a run of characters from a
7447 display vector, check whether the display vector display replaces
7448 the display of a character.
7449
74501999-01-05 Gerd Moellmann <gerd@gnu.org>
7451
7452 * xfaces.c (init_frame_faces): Don't realize faces if frame's
7453 X window hasn't been created yet.
7454
74551998-12-06 Gerd Moellmann <gerd@gnu.org>
7456
7457 * sound.c: New.
7458
74591998-12-04 Gerd Moellmann <gerd@gnu.org>
7460
7461 * config.in (HAVE_SOUND): New.
7462
7463 * emacs.c (main): Call syms_of_sound and init_sound.
7464
7465 * Makefile.in (obj): Add sound.o.
7466
7467 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
7468
7469 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
7470 (HAVE_SYS_SOUNDCARD_H): New.
7471
74721998-12-03 Gerd Moellmann <gerd@gnu.org>
7473
7474 * buffer.h (struct buffer): indicate_empty_lines renamed from
7475 indicate_zv_lines.
7476
7477 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
7478 (default-indicate-zv-lines): Likewise.
7479
7480 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
7481 to indicate_empty_line_p.
7482
7483 * xdisp.c (reseat_at_next_visible_line_start): Reset method
7484 to next_element_from_buffer.
7485
7486 * frame.c (make_frame): Set n_current_toolbar_items to 0.
7487
7488 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
7489 and `N-'.
7490
7491 * xfns.c (xbm_scan): New.
7492 (xbm_read_hexint): Removed.
7493 (xbm_read_bitmap_file_data): Use xbm_scan.
7494
7495 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
7496
74971998-12-02 Gerd Moellmann <gerd@gnu.org>
7498
7499 * xfns.c (xbm_read_hexint): New.
7500 (xbm_read_bitmap_file_data): New.
7501 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
7502 instead of XReadBitmapFileData.
7503
7504 * xdisp.c (handle_raise_prop): Compute voffset from current font.
7505
7506 * xfaces.c (face_with_height): New.
7507
7508 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
7509 (eval_form): Renamed from eval_mode_element.
7510 (handle_face_prop): Use it.
7511 (Qheight): Replaces Qsmaller.
7512 (handle_height_prop): Replaces handle_smaller_prop.
7513 (handle_face_prop): If iterator's font_height is not an
7514 integer, evaluate it to get the font height to use.
7515
7516 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
7517 (struct it): Use `font_height' instead of `smaller'.
7518
75191998-12-01 Gerd Moellmann <gerd@gnu.org>
7520
7521 * xdisp.c (reseat_1): New.
7522 (reseat): Call it.
7523 (move_it_vertically_backward): Ditto.
7524 (redisplay_window): Don't abort when cursor not found in recenter.
7525
75261998-11-30 Gerd Moellmann <gerd@gnu.org>
7527
7528 * xdisp.c (reseat_at_next_visible_line_start): When not
7529 currently delivering display elements from the current buffer,
7530 restore buffer position first.
7531 (init_from_display_pos): Don't set IT's position from the
7532 position passed to this function.
7533
75341998-11-28 Gerd Moellmann <gerd@gnu.org>
7535
7536 * config.in (PROTO): Removed.
7537
7538 * xterm.h: Change PROTO to P_.
7539
75401998-11-26 Gerd Moellmann <gerd@gnu.org>
7541
7542 * xterm.c (take_vertical_position_into_account): New.
7543 (x_produce_image_glyph): Call it.
7544 (x_produce_stretch_glyph): Ditto.
7545 (x_produce_glyphs): Ditto.
7546 (x_fill_glyph_string): Adjust base line for glyph's voffset.
7547 (x_fill_composite_glyph_string): Ditto.
7548 (x_fill_image_glyph_string): Ditto.
7549 (x_fill_stretch_glyph_string): Ditto.
7550
7551 * xdisp.c (display_line): Always compute row height from
7552 max_ascent and max_descent.
7553
7554 * dispextern.h (struct glyph): Add voffset.
7555 (struct it): Replace height by descent, max_height by max_descent.
7556
7557 * xterm.c (x_append_glyph): Set voffset
7558 (x_append_stretch_glyph): Ditto.
7559 (x_produce_image_glyph): Ditto.
7560 (x_produce_glyphs): Take voffset into account.
7561 (x_produce_image_glyph): Ditto.
7562 (x_produce_stretch_glyph): Ditto.
7563
7564 * dispextern.h (struct it): Add voffset.
7565 * xdisp.c (push_it): Save voffset.
7566 (pop_it): Restore it.
7567
7568 * xdisp.c (it_props): Add entry for `raise'.
7569 (handle_raise_prop): New.
7570
7571 * dispextern.h (RAISE_PROP_IDX): New.
7572
7573 * xdisp.c (Qraise): New.
7574 (syms_of_xdisp): Define Qraised.
7575
7576 * xterm.c (x_scroll_bar_move): Clear to the left and right
7577 of toolkit scroll bars differently.
7578 (x_scroll_bar_move): Removed.
7579 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
7580
7581 * dispextern.h: Make it compilable --with-x=no.
7582 * alloc.c: Ditto.
7583 * emacs.c: Ditto.
7584 * dispnew.c: Ditto.
7585 * keyboard.c: Ditto.
7586 * term.c: Ditto.
7587 * xdisp.c: Ditto.
7588 * xfaces.c: Ditto.
7589 * xfns.c: Ditto.
7590 * xmenu.c: Ditto.
7591
75921998-11-25 Gerd Moellmann <gerd@gnu.org>
7593
7594 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
7595
75961998-11-24 Gerd Moellmann <gerd@gnu.org>
7597
7598 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
7599 update slider size, only.
7600 (xm_scroll_callback): Set dragging member of the scroll bar.
7601 (xt_action_hook): Reset last_scroll_bar_part.
7602 (XTredeem_scroll_bar): Reset bar->dragging to nil.
7603
26901792
DL
7604 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
7605 window on newly created frames that don't have one.
7606
76071998-11-23 Gerd Moellmann <gerd@gnu.org>
7608
7609 * xdisp.c (restore_overlay_strings): Removed.
7610 (restore_dpvec): Removed.
7611 (init_from_display_pos): Inline both functions above.
7612
7613 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
7614 (parse_image_spec): Handle it.
7615 (xbm_format): Use it.
7616 (xpm_format): Ditto.
7617 (pbm_format): Ditto.
7618 (jpeg_format): Ditto.
7619 (tiff_format): Ditto.
7620 (gif_format): Ditto.
7621 (gs_format): Ditto.
7622
7623 * xdisp.c (set_window_cursor): Removed.
7624 (redisplay_internal): Case cursor motion in cursor line of
7625 selected window; use set_cursor_from_row.
7626
76271998-11-22 Gerd Moellmann <gerd@gnu.org>
7628
7629 * widget.c (EmacsFrameSetCharSize): Take widget's border width
7630 into account.
7631
76321998-11-21 Gerd Moellmann <gerd@gnu.org>
7633
7634 * xterm.c (expose_frame): Redraw menu bar window.
7635
7636 * xdisp.c (display_menu_bar): Record hpos instead of x-position
7637 in menu item.
7638
7639 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
7640 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
7641
7642 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
7643 to determine vertical_scroll_bar_extra.
7644 (EmacsFrameSetCharSize): Ditto.
7645 * xfns.c (x_figure_window_size): Ditto.
7646
7647 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
7648 (x_draw_bitmap): Ditto.
7649
7650 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
7651 * xfaces.c (realize_basic_faces): Realize it.
7652
76531998-11-20 Gerd Moellmann <gerd@gnu.org>
7654
7655 * xmenu.c (xmenu_show): Add workaround for remaining button grab
7656 under LessTif Use the widget of the frame as parent for the
7657 menu, again.
7658
76591998-11-19 Gerd Moellmann <gerd@gnu.org>
7660
7661 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
7662 When EnterNotify, don't generate a mouse movement event if
7663 notification is from a busy-cursor child window.
7664
7665 * xterm.h (struct x_output): Add busy_window, remove cursor.
7666
7667 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
7668 Use a transparent window to display the busy-cursor.
7669 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
7670
76711998-11-17 Gerd Moellmann <gerd@gnu.org>
7672
7673 * xdisp.c (check_window_end): New, for debugging.
7674 (CHECK_WINDOW_END): New.
7675 (try_window_id): Use it.
7676
7677 * xterm.c (process_expose_from_menu): Return int.
7678
7679 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
7680 TOOLBAR_EVENT events in last_nonmenu_event.
7681
76821998-11-16 Gerd Moellmann <gerd@gnu.org>
7683
7684 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
7685 window end isn't reliable, so set window_end_valid to nil.
7686 (redisplay_internal): If overlay arrow has changed, set
7687 windows_or_buffers_changed to redisplay thoroughly.
7688
7689 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
7690 necessary.
7691
7692 * xfns.c (file_dialog_cb): New.
7693 (Fx_file_dialog): New.
7694 * fileio.c (Fread_file_name): Call it.
7695
7696 * xrdb.c (x_load_resources): Add default resoures for file
7697 selection dialog.
7698
76991998-11-14 Gerd Moellmann <gerd@gnu.org>
7700
7701 * xterm.c (note_mouse_highlight): Don't highlight when popup
7702 is active.
7703
26901792
DL
7704 * keyboard.c (timer_check): Inhibit busy cursor around calls to
7705 timer-event-handler. This busy cursor tends to be anoying if
7706 fontifying stealthily.
7707
7708 * dispnew.c (direct_output_for_insert): Give up if current row
7709 contains trailing whitespace.
7710
77111998-11-13 Gerd Moellmann <gerd@gnu.org>
7712
7713 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
7714
7715 * xdisp.c (handle_fontified_prop): New.
7716 (Vfontification_functions): New.
7717 (Qfontification_functions): New.
7718 (it_props): Add handle_fontified_prop.
7719
77201998-11-12 Gerd Moellmann <gerd@gnu.org>
7721
7722 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
7723 Otherwise, under LessTif, after the popup has gone, all button
7724 press events come in for the frame's widget, and release events
7725 come in for the edit_widget.
7726 * xterm.c (XTread_socket): Remove workaround for that problem.
7727 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
7728 XmScrollBarSetValues.
7729 (SET_SAVED_MENU_EVENT): Give it statement form.
7730
26901792
DL
7731 * xfaces.c (display_message): If waiting_for_input, don't display
7732 the message.
7733
7734 * window.c (scroll_command): If not acting on current_buffer,
7735 make redisplay consider all windows.
7736
7737 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
7738
7739 * xdisp.c (handle_glyph_prop): Set it->object for images to
7740 the object having the glyph property.
7741
7742 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
7743 invisible.
7744
77451998-11-11 Gerd Moellmann <gerd@gnu.org>
7746
7747 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
7748 (x_term_init): Create the gray pixmap.
7749 (x_setup_relief_color): Use it.
7750 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
7751 internal border at the top of a frame.
7752 (x_init_glyph_string): Likewise.
7753 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
7754 full-width lines.
7755 (XTflash): Don't flash the toolbar window.
7756
7757 * xterm.c (XTread_socket): Workaround for LessTif popup menus
7758 in case of ButtonPress events.
7759
77601998-11-10 Gerd Moellmann <gerd@gnu.org>
7761
7762 * xrdb.c (x_load_resources): Add grey background colors as
7763 defaults for menus, scroll bars, and dialogs.
7764
7765 * insdel.c (prepare_to_modify_buffer): Move setting
7766 windows_or_buffers_changed from modify_region here.
7767
7768 * xfns.c (Fx_show_tip): Inhibit redisplay.
7769 (Fx_hide_tip): Ditto.
7770 (Fx_image_header): New.
7771
77721998-11-09 Gerd Moellmann <gerd@gnu.org>
7773
7774 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
7775 when clearing current window matrices.
7776
77771998-11-08 Gerd Moellmann <gerd@gnu.org>
7778
7779 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
7780 position from a string position. Use the right end position
7781 if the property spans a whole overlay string.
7782
77831998-11-07 Gerd Moellmann <gerd@gnu.org>
7784
7785 * xmenu.c (menubar_selection_callback): Remove workaround for
7786 Lesstif not calling XmNpopdownCallback because it doesn't
7787 handle the case where users don't select any menu item.
7788
26901792
DL
7789 * insdel.c (modify_region): Set windows_or_buffers_changed.
7790
7791 * buffer.c (set_buffer_internal): Don't set
7792 windows_or_buffers_changed.
7793
26901792
DL
7794 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
7795
26901792
DL
7796 * xmenu.c (menubar_selection_callback): Add workaround for
7797 Lesstif not calling XmNpopdownCallback.
7798
7799 * xdisp.c (eval_mode_element): New.
7800 (eval_mode_handler): New.
7801 (display_mode_element): Use eval_mode_element.
7802
7803 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
7804 Remove code looking at text props of default value.
7805
7806 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
7807
26901792
DL
78081998-11-06 Gerd Moellmann <gerd@gnu.org>
7809
7810 * xmenu.c (single_submenu): Set button_type of menu to
7811 BUTTON_TYPE_NONE.
7812 (single_submenu): Likewise for panes and menu items.
7813 (set_frame_menubar): Set button_type of menu bar to none.
7814 (xmenu_show): Likewise.
7815 (single_submenu): Set widget values selected slot.
7816 (xmenu_show): Likewise.
7817
26901792
DL
7818 * xmenu.c (push_menu_item): Add parameters `type' and
7819 `selected'. Store it in menu_items.
7820 (MENU_ITEMS_ITEM_TYPE): New.
7821 (MENU_ITEMS_ITEM_SELECTED): New.
7822 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
7823
7824 * xfns.c (clear_image_cache): Get the current time, before
7825 doing anything.
7826 (cache_image): Set prev pointer of next image.
7827 (clear_image_cache): Clear current matrices if any image was
7828 freed.
7829
7830 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
7831
7832 * xfns.c (x_set_cursor): New.
7833 (Fx_display_busy_cursor): New.
7834 (Fx_undisplay_busy_cursor): New.
7835
7836 * xterm.h (struct x_output): Add busy_cursor.
7837
7838 * xfns.c (Vx_busy_pointer_shape): New.
7839 (x_set_mouse_color): Create busy cursor.
7840
7841 * process.c (wait_reading_process_input): Show and hide busy
7842 cursor.
7843
7844 * keyboard.c (command_loop_1): Display busy cursor.
7845
7846 * eval.c (Fsignal): Hide busy cursor.
7847
7848 * buffer.c (set_buffer_internal): Don't set
7849 windows_or_buffers_changed.
7850
7851 * xterm.c (redo_mouse_highlight): New.
7852
78531998-11-04 Gerd Moellmann <gerd@gnu.org>
7854
26901792
DL
7855 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
7856 (x_build_heuritic_mask): New.
7857 (lookup_image): Call it.
7858
7859 * xterm.c (note_toolbar_highlight): Always set up help_echo.
7860 (previous_help_echo): New.
7861 (XTread_socket): Generate help event with nil message when
7862 leaving a region with help-echo.
7863 (note_mouse_highlight): Handle `help-echo' over text.
7864 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
7865 CirculateRequest.
7866 (clear_mouse_face): Don't clear if tooltip is shown.
7867 (XTread_socket): Redo mouse-highlight after tooltip is gone.
7868 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
7869
7870 * keyboard.c (Vshow_help_function): New.
7871 (read_char): Use it.
7872
78731998-11-03 Gerd Moellmann <gerd@gnu.org>
7874
7875 * xfns.c (x_create_tip_frame): New.
7876 (Fx_show_tip): New.
7877 (Fx_hide_tip): New.
7878
7879 * xterm.c (x_destroy_window): Handle case that we don't have
7880 a widget.
7881
7882 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
7883 to full_width_p. Add internal_border_p.
7884
78851998-11-02 Gerd Moellmann <gerd@gnu.org>
7886
7887 * xterm.c (note_mode_line_highlight): Check the charpos of
7888 the glyph under the mouse pointer before accessing text
7889 properties at that position.
7890
78911998-11-01 Gerd Moellmann <gerd@gnu.org>
7892
7893 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
7894
7895 * xdisp.c (auto-raise-toolbar-buttons): New.
7896 (build_desired_toolbar_string): Handle the flag.
7897 (toolbar-button-margin): New.
7898 (toolbar-button-relief): New.
7899 (build_desired_toolbar_string): Use margin and relief.
7900
7901 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
7902 for FreeBSD.
7903 (note_mode_line_highlight): New.
7904 (note_mouse_highlight): Call it.
7905
79061998-10-31 Gerd Moellmann <gerd@gnu.org>
7907
7908 * s/freebsd.h (NARROWPROTO): New.
7909
7910 * xdisp.c (display_string): New parameter face_string.
7911 (display_mode_element): When displaying a symbol with a string
7912 value, use text properties from the symbol's default value, maybe.
7913
7914 * xrdb.c (x_load_resources): Add font defaults for menus and
7915 dialogs.
7916
79171998-10-30 Gerd Moellmann <gerd@gnu.org>
7918
7919 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
7920
79211998-10-29 Gerd Moellmann <gerd@gnu.org>
7922
7923 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
7924 produced for characters with codes < 32 under certain
7925 circumstances.
7926
7927 * xdisp.c (redisplay_window): Handle values of PT in front
7928 of invisible, intangible text.
7929 (try_window_id): Set overlay_arrow_seen to zero before
7930 displaying lines.
7931 (display_mode_element): Assign to glyphs written for a mode
7932 line spec `%x' as object the Lisp format string, as position
7933 the position of the `%' in that string.
7934 (display_string): If displaying a C string, optionally get
7935 the face to use from a Lisp string.
7936
7937 * xterm.c (expose_window_tree): Include mode line height.
7938
7939 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
7940
79411998-10-27 Gerd Moellmann <gerd@gnu.org>
7942
7943 * xterm.c (note_mouse_highlight): Change mouse pointer shape
7944 over mode line.
7945
79461998-10-26 Gerd Moellmann <gerd@gnu.org>
7947
7948 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
7949
7950 * xdisp.c (redisplay_window): If mode line height has changed,
7951 arrange for a thorough immediate redisplay using the correct mode
7952 line height.
7953 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
7954
7955 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
7956 (CURRENT_MODE_LINE_HEIGHT): New.
7957 (DESIRED_MODE_LINE_HEIGHT): New.
7958
7959 * keyboard.c (make_lispy_event): Add string and string position
7960 info to mouse-click events.
7961 (read_key_sequence): Handle `local-map' property of mode line
7962 strings.
7963
7964 * keyboard.h (POSN_STRING): New.
7965
79661998-10-25 Gerd Moellmann <gerd@gnu.org>
7967
7968 * dispnew.c (mode_line_string): Mew.
7969
7970 * xterm.c (xt_action_hook): New.
7971 (x_create_toolkit_scroll_bar): Add action hook.
7972 (xm_scroll_callback): Implement dragging.
7973
7974 * keyboard.c (Qend_scroll): New.
7975 (scroll_bar_parts): Add it.
7976
7977 * termhooks.h (scroll_bar_end_scroll): New.
7978
7979 * xterm.c (XTread_socket): Bug fix.
7980
79811998-10-24 Gerd Moellmann <gerd@gnu.org>
7982
7983 * xdisp.c (redisplay_window): Finish scroll bars after
7984 redisplaying toolbar.
7985
7986 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
7987 (syms_of_keyboard): Add Qbottom.
7988
7989 * termhooks.h (scroll_bar_to_top): New.
7990 (scroll_bar_to_bottom): New.
7991
7992 * xdisp.c (redisplay_window): Always resize toolbar window if
7993 auto_resize_toolbar_p is non-zero.
7994 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
7995 (window_box): New.
7996 (window_box_height): New.
7997 (window_box_width): New.
7998 (window_box_left): New.
7999 (window_box_right): New.
8000 (window_box_edges): New.
8001
80021998-10-23 Gerd Moellmann <gerd@gnu.org>
8003
8004 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
8005 XawScrollbarSetThumb in FreeBSD.
8006 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
8007 to true.
8008
8009 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
8010 is out of range.
8011
8012 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
8013 (x_term_init): Initialize it.
8014
8015 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
8016
8017 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
8018 cursor.
8019
80201998-10-22 Gerd Moellmann <gerd@gnu.org>
8021
8022 * keyboard.c (make_lispy_event): Handle scroll_bar_click
8023 differently when using toolkit scroll bars.
8024
8025 * xterm.c (x_send_scroll_bar_event): New.
8026 (x_scroll_bar_to_input_event): New.
8027 (xaw3d_scroll_callback): New.
8028 (xaw3d_jump_callback): New.
8029 (xm_scroll_callback): New.
8030 (x_toolkit_scroll_p): New.
8031 (XTread_socket): Handle scroll bar client message.
8032 (x_term_init): Initialize Xatom_Scrollbar.
8033 (x_scroll_bar_create): Set cursor.
8034 (xm_scroll_callback):
8035 (x_create_toolkit_scroll_bar): New.
8036 (x_set_toolkit_scroll_bar_thumb): New.
8037 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
8038 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
8039
8040 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
8041
80421998-10-21 Gerd Moellmann <gerd@gnu.org>
8043
8044 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
8045 (XTread_socket): Don't handle mouse button events for scroll bars
8046 if using toolkit scroll bars.
8047 (XTset_vertical_scroll_bar): Set thumb size and position for
8048 Athena scroll bar.
8049
8050 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
8051
8052 * xterm.c (XTread_socket): Dispatch expose event to widget
8053 if using toolkit scroll bars.
8054 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
8055 (x_scroll_bar_create): Create and show a scroll bar widget
8056 if using toolkit scroll bars.
8057 (x_scroll_bar_move): Handle tookit scroll bars.
8058
8059 * Makefile.in (LIBW): Use Xaw3d if present.
8060
8061 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
8062 (HAVE_XAW3D): New.
8063
8064 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
8065 (HAVE_XAW3D): New.
8066
8067 * xterm.c (XTset_vertical_scroll_bar): Correct position of
8068 right vertical scroll bar.
8069
80701998-10-20 Gerd Moellmann <gerd@gnu.org>
8071
8072 * xfns.c (xpm_load): Support reading XPM images from string
8073 buffers containing data in the same format as an XPM file.
8074 Support `:color-symbols'.
8075 (xpm_format): Add `:data'.
8076 (xpm_keyword_index): Add XPM_DATA.
8077 (syms_of_xfns): Add `:color-symbols'.
8078 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
8079 (xpm_valid_color_symbols_p): New.
8080 (xpm_image_p): Call it.
8081
8082 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
8083 attribute to the image if item is not enabled.
8084
8085 * xfns.c (x_laplace): New.
8086 (x_laplace_read_row): New.
8087 (x_laplace_write_row): New.
8088 (lookup_image): Handle common image attributes here. New
8089 attribute `:algorithm'.
8090
8091 * xfaces.c (clear_face_cache): Call clear_image_cache.
8092
8093 * xterm.c (x_inverted_image_mask): Removed.
8094 (x_draw_image_foreground_1): New.
8095 (x_draw_image_glyph_string): Draw images with mask to a temporary
8096 pixmap to reduce flickering.
8097
8098 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
8099 (display_toolbar_line): Remove parameter `margin'.
8100
81011998-10-19 Gerd Moellmann <gerd@gnu.org>
8102
8103 * xdisp.c (toolbar_lines_needed): New.
8104 (auto-resize-toolbars): New.
8105
8106 * xfns.c (cache_image): Correct call to xrealloc.
8107
8108 * dispnew.c (Fset_toolbar_height): Removed.
8109
8110 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
8111 FRAME_MENU_BAR_LINES.
8112
8113 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
8114 instead of FRAME_MENU_BAR_LINES.
8115 (check_frame_size): Ditto.
8116
8117 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
8118 instead of FRAME_MENU_BAR_LINES.
8119 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
8120 (build_frame_matrix): Ditto.
8121 (change_frame_size_1): Ditto.
8122
8123 * frame.h (FRAME_TOOLBAR_LINES): New.
8124 (FRAME_TOP_MARGIN): New.
8125
8126 * window.c (struct save_window_data): Add frame_toolbar_lines.
8127 (Fset_window_configuration): Handle toolbar lines.
8128 (Fcurrent_window_configuration): Save toolbar lines.
8129
8130 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
8131
8132 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
8133
8134 * frame.h (struct frame): Rename top_margin to toolbar_lines.
8135
8136 * xfns.c (x_frame_parms): Add `toolbar-lines'.
8137 (x_set_toolbar_lines): New.
8138
8139 * keyboard.c (cmd_error_internal): Bug fix.
8140
8141 * xterm.c: Remove double include of syssignal.h.
8142
81431998-10-18 Gerd Moellmann <gerd@gnu.org>
8144
8145 * xterm.c (x_toolbar_item): New.
8146 (x_handle_toolbar_click): Use it.
8147 (note_toolbar_highlight): Use it.
8148
8149 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
8150 and toolbar_items_vectors.
8151
8152 * xterm.c (help_echo): New.
8153 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
8154 (x_set_glyph_string_gc): Handle them.
8155 (x_after_update_window_line): Don't do anything in pseudo-windows.
8156 (x_produce_image_glyph): Take image margin and face relief into
8157 account.
8158 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
8159 (x_draw_glyph_string_background): Optimize case when face has
8160 relief.
8161 (x_setup_relief_color): Take frame instead of glyph string
8162 parameter.
8163 (x_draw_relief_rect): New.
8164 (x_draw_glyph_string_relief): Call it.
8165 (x_draw_image_glyph_string_foreground): Handle margin and image
8166 relief.
8167 (x_draw_image_glyph_string_background): Ditto.
8168 (expose_frame): Redraw toolbar window.
8169 (expose_window): Don't draw cursor for pseudo-windows.
8170 (x_y_to_hpos_vpos): Handle pseudo-windows.
8171 (frame_to_window_pixel_xy): New.
8172 (note_mouse_highlight): Call note_toolbar_highlight.
8173 (x_handle_toolbar_click): New.
8174 (note_toolbar_highlight): New.
8175 (show_mouse_face): Change int parameter `hl' to parameter of
8176 type enum draw_glyphs_face. Handle image highlighting.
8177 (XTread_socket): Return a HELP_EVENT input event if help_echo is
8178 non-nil. Use x_handle_toolbar_click.
8179
8180 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
8181
8182 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
8183 IMAGE_BOOL_VALUE.
8184 (parse_image_spec): Handle them.
8185 (image_spec_value): Additional parameter found.
8186 (free_image): Remove image from the vector `images' of the
8187 image cache.
8188 (clear_image_cache): Additional parameter force_p.
8189 (Fclear_image_cache): New.
8190 (x_find_image_file): New.
8191 (xbm_load): Handle `:margin' and `:relief'. Use
8192 x_find_image_file.
8193 (xpm_load): Likewise.
8194 (pbm_load): Likewise.
8195 (jpeg_load): Likewise.
8196 (tiff_load): Likewise.
8197 (gif_load): Likewise.
8198
8199 * keyboard.c (Qhelp_echo): New symbol.
8200 (read_char): Handle `toolbar' and `help_echo' events.
8201 (kbd_buffer_get_event): Handle HELP_ECHO input event.
8202 (make_lispy_event): Handle TOOLBAR_EVENT.
8203 (toolbar_items): New.
8204 (process_toolbar_item): New.
8205 (PROP): New.
8206 (init_toolbar_items): New.
8207 (append_toolbar_item): New.
8208 (read_char_x_menu_prompt): Handle `toolbar' event.
8209 (read_key_sequence): Ditto.
8210
8211 * xfaces.c (Qtoolbar): New.
8212 (realize_basic_faces): Realize `toolbar' face.
8213 (face_at_string_position): Remove parameter modeline_p, add
8214 base_face_id.
8215
8216 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
8217 to read data.
8218
82191998-10-17 Gerd Moellmann <gerd@gnu.org>
8220
8221 * xdisp.c (init_iterator): Replace parameter modeline_p with
8222 base_face_id.
8223 (next_element_from_string): Call get_next_display_element
8224 recursively after handling text properties.
8225 (prepare_menu_bars): Call update_toolbar.
8226 (update_toolbar): New.
8227 (build_desired_toolbar_string): New.
8228 (display_toolbar_line): New.
8229 (redisplay_toolbar): New.
8230 (toolbar_item_info): New.
8231 (redisplay_window): Call redisplay_toolbar.
8232 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
8233
8234 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
8235 window.
8236 (clear_desired_matrices): Ditto.
8237 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
8238 (free_glyphs): Free matrices of toolbar window.
8239 (update_frame): Update toolbar window.
8240 (change_frame_size_1): Take toolbar into account.
8241 (Fset_toolbar_height): New.
8242
8243 * dispextern.h (struct it): Remove member modeline_p, add
8244 base_face_id.
8245 (struct image): Add members relief and margin.
8246 (IMAGE_ASCENT): Include margin in height.
8247
82481998-10-14 Gerd Moellmann <gerd@gnu.org>
8249
8250 * xfns.c (Fclear_image_cache): New.
8251
8252 * xfaces.c (realize_basic_faces): Realize toolbar face.
8253 (face_at_string_position): Remove parameter modeline_p, add
8254 base_face_id.
8255
8256 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
8257
82581998-10-13 Gerd Moellmann <gerd@gnu.org>
8259
8260 * keyboard.c (syms_of_keyboard): Intern `:help'.
8261
82621998-10-12 Gerd Moellmann <gerd@gnu.org>
8263
8264 * xterm.c (note_toolbar_highlight): New.
8265 (note_mouse_highlight): Call it.
8266
8267 * window.c (window_from_coordinates): Additional parameter toolbar_p.
8268 (coordinates_in_window): Handle toolbar window.
8269
8270 * keyboard.c (toolbar_items): New.
8271 (process_toolbar_item): New.
8272 (parse_toolbar_item): New.
8273 (init_toolbar_items): New.
8274 (append_toolbar_item): New.
8275
8276 * dispextern.h (enum toolbar_item_idx): New.
8277 (enum toolbar_item_image): New.
8278
8279 * frame.h (struct frame): Add toolbar-related members.
8280
8281 * xfaces.c (face_at_string_position): Remove assertion that
8282 current_buffer == window's buffer. This is not the case when
8283 called for the toolbar window.
8284
8285 * frame.c (make_frame): Initialize toolbar members.
8286
8287 * alloc.c (mark_object): Mark toolbar data of frames.
8288
8289 * frame.h (struct frame): Add toolbar-related members
8290 toolbar_window, desired_toolbar_items, current_toolbar_items,
8291 desired_toolbar_string, current_toolbar_string,
8292 n_desired_toolbar_items, n_current_toolbar_items. Add
8293 window_height.
8294
8295 * xterm.c (x_after_update_window_line): Don't draw bitmap
8296 areas for pseudo-windows.
8297 (expose_frame): Handle toolbar window.
8298 (expose_window): Don't do cursor stuff for pseudo-windows.
8299
8300 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
8301
83021998-10-11 Gerd Moellmann <gerd@gnu.org>
8303
8304 * frame.c (make_frame): Initialize toolbar_window.
8305
8306 * alloc.c (mark_object): Make the toolbar window.
8307
8308 * dispnew.c (update_frame): Update frame's toolbar_window.
8309 (clear_current_matrices): Likewise.
8310 (clear_desired_matrices): Likewise.
8311 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
8312 (free_glyphs): Free the toolbar window and its matrices.
8313
8314 * frame.h (struct frame): Add toolbar_window.
8315
8316 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
8317 with relief.
8318
83191998-10-10 Gerd Moellmann <gerd@gnu.org>
8320
8321 * dispnew.c (buffer_posn_from_coords): Don't screw up if
8322 window start is not in the range BEGV..ZV.
8323
83241998-10-09 Gerd Moellmann <gerd@gnu.org>
8325
8326 * xdisp.c (try_scrolling): Experimentally handle the case
8327 that scroll-preserve-screen-position is set to `always'.
8328
8329 * window.c (Vscroll_preserve_screen_position): Replacement for
8330 scroll_preserve_screen_position.
8331
83321998-10-08 Gerd Moellmann <gerd@gnu.org>
8333
8334 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
8335 doesn't like it.
8336 * xdisp.c: Ditto.
8337
8338 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
8339
83401998-10-06 Gerd Moellmann <gerd@gnu.org>
8341
8342 * minibuf.c (Fminibuffer_complete_word): Fix computation of
8343 i_byte when prompts are inserted into minibuffers.
8344
8345 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
8346 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
8347 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
8348
83491998-10-04 Gerd Moellmann <gerd@gnu.org>
8350
8351 * xdisp.c (make_cursor_line_fully_visible): New.
8352 (try_scrolling): New.
8353 (redisplay_window): Move scrolling code to try_scrolling.
8354 (make_cursor_line_fully_visible): Handle case of window too small
8355 to show a single line.
8356 (redisplay_window): Case forced window start---use
8357 make_cursor_line_fully_visible.
8358 (redisplay_window): Case cursor movement via current matrix.
8359 If ending up on a partially visible line, make it fully visible
8360 instead of recentering.
8361 (try_scrolling): Additional parameter scroll_smoothly.
8362
8363 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
8364
83651998-09-28 Gerd Moellmann <gerd@gnu.org>
8366
8367 * window.c (window_scroll_pixel_based): Bug fix: vpos used
8368 instead of y-position for scroll-preserved-screen-position.
8369
83701998-09-07 Gerd Moellmann <gerd@gnu.org>
8371
8372 * dispnew.c (update_frame_line): If current row is not enabled,
8373 write the whole line.
8374
83751998-09-06 Gerd Moellmann <gerd@gnu.org>
8376
8377 * lisp.h (HAVE_FACES): Removed.
8378
8379 * dispextern.h (HAVE_FACES): Removed.
8380
8381 * config.in (HAVE_FACES): Removed.
8382
8383 * dispnew.c (HAVE_FACES): Removed.
8384
8385 * xdisp.c (HAVE_FACES): Removed.
8386
8387 * xfaces.c (HAVE_FACES): Removed.
8388
83891998-09-05 Gerd Moellmann <gerd@gnu.org>
8390
8391 * xdisp.c (init_iterator): If face_change_count is non-zero,
8392 free realized faces.
8393
8394 * xfaces.c (free_all_realized_faces): Make it externally visible.
8395 (Finternal_set_lisp_face_attribute): Increment
8396 windows_or_buffers_changed.
8397
8398 * dispnew.c (direct_output_for_insert): Give up if
8399 face_change_count is non-zero.
8400 (direct_output_forward_char): Ditto.
8401
8402 * xfaces.c (face_change_count): New.
8403
84041998-09-04 Gerd Moellmann <gerd@gnu.org>
8405
8406 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
8407 of range.
8408
84091998-09-03 Gerd Moellmann <gerd@gnu.org>
8410
8411 * term.c (Ftty_display_color_p): New.
8412
84131998-09-02 Gerd Moellmann <gerd@gnu.org>
8414
8415 * xfaces.c (Ftty_defined_colors): New.
8416
8417 * xterm.c (x_produce_glyphs): Fix computation of
8418 contains_overlapping_glyphs_p for ASCII.
8419
8420 * dispnew.c (Fshow_cursor): Don't change cursor state while
8421 redisplaying.
8422 (direct_output_for_insert): If a glyph with lbearing or rbearing
8423 is among the new glyphs, set row flag contains_overlapping_glyph_p.
8424
84251998-09-01 Gerd Moellmann <gerd@gnu.org>
8426
8427 * term.c (OUTPUT_IF): Make replacement text have statement form.
8428 (OUTPUT1_IF): Ditto.
8429 (TS_italic_mode, TS_end_italic_mode): Removed.
8430 (TS_bold_mode): Removed.
8431 (TS_underscore_mode, TS_end_underscore_mode): Removed.
8432 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
8433 (TS_enter_reverse_mode): New.
8434 (TS_enter_underline_mode, TS_exit_underline_mode): New.
8435 (TN_magic_cookie_glitch_ul): New.
8436 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
8437 (TS_exit_attribute_mode): New.
8438 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
8439 (TS_set_foreground, TS_set_background): New.
8440 (reset_terminal_modes): Switch colors back to default.
8441 (write_glyphs): Turn face on before writing text, turn it off
8442 afterwards.
8443 (insert_glyphs): Ditto.
8444 (term_init): Initialize new terminal capability variables.
8445 (turn_on_face): Turn a face on.
8446 (turn_off_face): Turn a face off.
8447
8448 * lisp.h (MAKE_GLYPH): Remove test for frame type.
8449 (GLYPH_CHAR): Ditto.
8450 (GLYPH_FACE): Ditto.
8451
8452 * xfaces.c (Vface_tty_color_alist): New.
8453 (face-register-tty-color): New.
8454 (face-clear-tty-colors): New.
8455
8456 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
8457 (struct it): Remove member faces_p since we now always have faces.
8458
84591998-08-31 Gerd Moellmann <gerd@gnu.org>
8460
8461 * dispextern.h (struct face): Add tty appearance flags.
8462
8463 * xdisp.c (init_iterator): Always handle faces.
8464 (extend_face_to_end_of_line): Handle tty frames.
8465
8466 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
8467 passed in.
8468
84691998-08-30 Gerd Moellmann <gerd@gnu.org>
8470
8471 * xfaces.c (realize_default_face): Use empty strings to indicate
8472 that the face should use the default foreground/background
8473 color of the terminal. Fill font-related attributes with
8474 appropriate values for tty frames.
8475
8476 * emacs.c (main): Call syms_of_xfaces before init_window_once.
8477
8478 * xfaces.c (realize_default_face): If face `default' is not
8479 yet known, create it.
8480
8481 * frame.c (make_terminal_frame): Call init_frame_faces
8482 unconditionally.
8483
8484 * xfaces.c (init_frame_faces): Make it work for tty frames.
8485 (free_frame_faces): Ditto.
8486 (clear_face_cache): Ditto.
8487 (recompute_basic_faces): Ditto.
8488 (Fframe_face_alist): Ditto.
8489 (free_realized_face): Ditto.
8490 (prepare_face_for_display): Ditto.
8491 (clear_face_gcs): Ditto.
8492 (lookup_face): Ditto.
8493 (smaller_face): Ditto.
8494 (realize_default_face): Ditto.
8495 (realize_face): Ditto.
8496 (realize_face): Dispatch to functions depending on the frame type.
8497 (realize_x_face): X way of realizing faces.
8498 (realize_tty_face): TTY way of realizing faces.
8499
85001998-08-29 Gerd Moellmann <gerd@gnu.org>
8501
8502 * xfaces.c (realize_face): Remove parameter unibyte_registry,
8503 compute it instead.
8504 (lookup_face): Remove local variable unibyte_registry.
8505
85061998-08-22 Gerd Moellmann <gerd@gnu.org>
8507
8508 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
8509 1 pixel longer.
8510
8511 * xdisp.c (face_before_or_after_it_pos): Fix computation
8512 of face in buffer.
8513
8514 * editfns.c (make_buffer_string_both): If prompt in buffer,
8515 prevent start > end.
8516
8517 * indent.c (Fvertical_motion): Set current_buffer to window's
8518 buffer if it isn't already.
8519
85201998-08-21 Gerd Moellmann <gerd@gnu.org>
8521
8522 * dispextern.h (GLYPH_DEBUG): Use default 0.
8523
8524 * xdisp.c (it_props): New member `smaller'.
8525 (init_iterator): Initialize it.
8526 (Qsmaller): New.
8527 (push_it): Save value of `smaller' value on the stack.
8528 (pop_it): Restore `smaller' from the stack.
8529 (handle_smaller_prop): New.
8530 (handle_face_prop): Use `smaller' text property to select a
8531 suitable face.
8532
8533 * dispextern.h (SMALLER_PROP_IDX): New.
8534 (struct it): Add member `smaller'.
8535
8536 * xfaces.c (smaller_face): New.
8537
8538 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
8539
8540 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
8541 total pixel width of window differently.
8542
8543 * xdisp.c (init_iterator): Compute width of mode line differently.
8544
8545 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
8546 of bitmap areas.
8547
8548 * window.c (Fsplit_window): Include width of bitmap areas in
8549 window width.
8550 (window_internal_width): Subtract width of bitmap areas from
8551 total width.
8552
85531998-08-18 Gerd Moellmann <gerd@gnu.org>
8554
8555 * xdisp.c: Functions reordered for better readability.
8556
8557 * dispnew.c (update_text_area): Handle glyphs with arbitrary
8558 lbearing.
8559 (update_window_tree): Parameter no_scrolling_p removed.
8560 (update_single_window): Ditto.
8561
8562 * xterm.c (x_get_char_font_and_encoding): Renamed to
8563 x_get_char_face_and_encoding.
8564
8565 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
8566 if end of current row reached.
8567
8568 * xterm.c (x_get_glyph_face_and_encoding): New.
8569 (x_get_glyph_overhangs): Call it.
8570
8571 * xdisp.c (Qshow_trailing_whitespace): New.
8572 (Qtrailing_whitespace): New.
8573 (enum prop_handled): New.
8574 (struct props, it_props): New.
8575 (next_overlay_change): New. Works like Fnext_overlay_change
8576 but doesn't use xmalloc.
8577 (handle_stop): Restructured.
8578 (face_before_or_after_it_pos): Case iteration over a string: fix
8579 handling of face before current position.
8580
85811998-08-16 Gerd Moellmann <gerd@gnu.org>
8582
8583 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
8584 reallocation matrix if fonts_changed_p.
8585 (update_text_area): Handle glyphs with lbearing.
8586
85871998-08-14 Gerd Moellmann <gerd@gnu.org>
8588
8589 * xdisp.c (struct props): New.
8590 (it_props): New.
8591 (compute_prop_info): New.
8592 (handle_stop): New.
8593
8594 * textprop.c (validate_interval_range): Make it externally
8595 visible.
8596
8597 * dispnew.c (direct_output_for_insert): Remove calls
8598 to compute_stop_pos.
8599
8600 * dispextern.h (struct it): Remove check_charpos,
8601 next_overlay_pos. Add what_changes.
8602
86031998-08-10 Gerd Moellmann <gerd@gnu.org>
8604
8605 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
8606
8607 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
8608 face_default_registry instead.
8609
8610 * syntax.c (scan_sexps_forward): Set up syntax table before
8611 jumping to initial state label.
8612
86131998-08-09 Gerd Moellmann <gerd@gnu.org>
8614
8615 * dispnew.c (check_matrix_invariants): Handle case of row end pos
8616 >= ZV specially.
8617
86181998-08-08 Gerd Moellmann <gerd@gnu.org>
8619
8620 * xdisp.c (redisplay_window): Case cursor movement---if cursor
8621 ends up in partially visible row, try to scroll. Case forced
8622 window start---handle windows not tall enough to show a single
8623 line.
8624
8625 * window.h (struct window): Member dy renamed vscroll.
8626
8627 * xterm.c (x_list_fonts): Re-activate suppression of scalable
8628 fonts.
8629 (x_draw_stretch_glyph_string): Set clipping if using GC that
8630 hasn't set it yet.
8631
8632 * xdisp.c (redisplay_window): Case forced window start -
8633 don't let cursor end on partially visible row. Use desired
8634 matrix to find a suitable PT if it doesn't appear.
8635 (decode_mode_spec): Merged with 20.2.97.
8636 (try_window_reusing_current_matrix): Give up if old or
8637 new display is vscrolled.
8638 (redisplay_window): Reset vscrolling if forced window start,
8639 or if recentering.
8640
86411998-08-06 Gerd Moellmann <gerd@gnu.org>
8642
8643 * xfaces.c (realize_default_face): Use the fontset name instead of
8644 the alias for the family attribute of the default face because we
8645 can't easily determine a good alias from fontset-alias-alist.
8646 (face_fontset): Use Fquery_fontset to find the fontset.
8647 (font_list): Additional pattern parameter.
8648 (try_font_list): Ditto.
8649 (set_lface_from_font_name): Set face family from font foundry
8650 and family.
8651 (font_list): If family contains a hyphen, build pattern differently.
8652
86531998-08-05 Gerd Moellmann <gerd@gnu.org>
8654
8655 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
8656 changed instead of setting the frame garbaged.
8657
8658 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
8659 all attribute values. This is wrong if values are unspecified,
8660 i.e. nil.
8661
8662 * xdisp.c (try_window_id): Give up if window start changed.
8663
8664 * xfaces.c (make_realized_face): Store registry as Lisp object.
8665 (load_face_font_or_fontset): Compute registry of a face
8666 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
8667 possible.
8668
8669 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
8670 differently.
8671
8672 * alloc.c (mark_face_cache): Mark the registry member of faces.
8673
8674 * dispextern.h (struct face): Make registry a Lisp string.
8675
86761998-08-04 Gerd Moellmann <gerd@gnu.org>
8677
8678 * xterm.c (x_get_char_font_and_encoding): Additional parameter
8679 multibyte_p. Handle unibyte text.
8680 (x_append_glyph): Set the multibyte_p flag of glyphs.
8681 (x_produce_image_glyph): Ditto.
8682 (x_append_stretch_glyph): Ditto.
8683 (x_produce_glyphs): Handle unibyte text like ASCII.
8684
8685 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
8686 stack.
8687 (pop_it): Restore it.
8688 (face_before_or_after_it_pos): Handle the case that the string or
8689 buffer is unibyte.
8690 (get_overlay_strings): Set the multibyte flag of the iterator if
8691 the new overlay string is multibyte.
8692 (get_glyph_property): Likewise.
8693 (get_next_display_element): Don't check for charset changes in
8694 unibyte text.
8695 (append_space): Compute face differently for unibyte text.
8696 (extend_face_to_end_of_line): Don't return quickly if face has
8697 stipple.
8698
8699 * xfaces.c (load_face_font_or_fontset): Store registry and
8700 encoding of the font in the registry member of the face.
8701 (make_realized_face): Additional parameter `registry'.
8702 (free_realized_face): Free the registry of a realized face.
8703 (face_suitable_for_charset_p): Function form of the macro
8704 with the same name in uppercase.
8705 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
8706 (choose_face_font): New parameter unibyte_registry.
8707 (choose_face_fontset_font): Ditto.
8708 (realize_default_face): Remember the registry and encoding of
8709 the specified frame font in Vx_unibyte_registry_and_encoding.
8710 (face_at_buffer_position): Handle unibyte.
8711 (face_at_string_position): Likewise.
8712 (realize_face): New parameter unibyte_registry.
8713 (compute_char_face): Handle the unibyte case.
8714
8715 * dispextern.h (struct glyph): Add bit multibyte_p.
8716 (struct face): New member registry holding the registry and
8717 encoding of the X font of the face.
8718 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
8719 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
8720 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
8721 text.
8722 (struct iterator_stack_entry): Add multibyte_p.
8723
8724 * xdisp.c (string_pos): Use string_char_to_byte.
8725 (char_charset): Removed.
8726
87271998-08-03 Gerd Moellmann <gerd@gnu.org>
8728
8729 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
8730 rectangle for a block cursor over an image without a mask.
8731 (x_stretch_block_cursor): Added. Non-zero means don't draw
8732 a block cursor over a stretch as wide as that stretch.
8733 (x_draw_stretch_glyph_string): Use it.
8734 (x_draw_hollow_cursor): Ditto.
8735
8736 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
8737 (read_minibuf): Add front-sticky text property for prompt.
8738
8739 * xdisp.c (char_charset): Return charset of a character,
8740 depending on whether or not multi-byte characters are enabled.
8741
8742 * xfaces.c (Fset_face_charset_registry): Removed.
8743 (x_charset_registry): Determine registry from charset plist.
8744
87451998-08-02 Gerd Moellmann <gerd@gnu.org>
8746
8747 * xdisp.c (get_next_display_element): Don't check for charset
8748 changes if multi-byte characters are not enabled.
8749
8750 * xdisp.c (echo_area_display): Use the flush function from the
8751 redisplay interface.
8752 * keyboard.c (detect_input_pending_run_timers): Likewise.
8753
8754 * dispextern.h (produce_*glyphs_hook): Removed.
8755 * term.c (produce_*glyphs): Ditto.
8756 (cursor_to): Remove pixel position parameters.
8757
8758 * dispnew.c: Remove hooks for window-based redisplay, introduce
8759 a redisplay interface structure.
8760
8761 * xterm.c (x_per_char_metric): Return default char metrics if per
8762 char metric exists but contains a zero width. Adobe Courier seems
8763 to contain such characters.
8764
8765 * xdisp.c (compute_line_metrics): Compute the width of rows
8766 without stopping at glyphs with zero width.
8767
87681998-08-01 Gerd Moellmann <gerd@gnu.org>
8769
8770 * xdisp.c (display_mode_line): If nothing was displayed at all,
8771 display a space.
8772 (hscroll_window_tree): Don't subtract 1 from target point if equal
8773 to ZV and window is not the selected window.
8774
8775 * dispnew.c (check_matrix_invariants): Remove check for window
8776 start at BEGV or after newline. This happens in rare cases
8777 intentionally.
8778
87791998-07-31 Gerd Moellmann <gerd@gnu.org>
8780
8781 * xfaces.c (x_charset_registry): Use STRING_BYTES.
8782 (syms_of_xfaces): Add Vface_default_registry.
8783 (x_charset_registry): Use it.
8784
8785 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
8786 (redisplay_window): Use it.
8787
8788 * dispnew.c (update_text_area): Handle lbearing of deleted text
8789 by backing up one character.
8790
87911998-07-30 Gerd Moellmann <gerd@gnu.org>
8792
8793 * dispnew.c (adjust_glyph_matrix): Use a different check to
8794 decide to do nothing.
8795
8796 * xfaces.c (face_at_string_position): Additional parameter
8797 mode_line_p. If non-zero, merge with the mode line face
8798 instead of the default face.
8799 * dispextern.h (struct it): Add mode_line_p.
8800 * xdisp.c (init_iterator): Set it.
8801 (compute_face_in_string): Use it.
8802 (face_before_or_after_it_pos): Handle strings.
8803 (get_next_display_element): Don't look for relief end in C strings.
8804 (next_element_from_string): Deliver string position instead of
8805 buffer position.
8806
8807 * xterm.c (x_flush): Flush X output buffer.
8808 (XTflash): Use it.
8809
8810 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
8811 Allow strings as face names.
8812
8813 * xfns.c (forall_images_in_image_cache): Check that frame is
8814 alive.
8815
8816 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
8817 it's also called from x_destroy_window. Since this function is
8818 called from X, freeing stuff allocated with xmalloc is dangerous
8819 here, anyway.
8820
8821 * xfaces.c (free_realized_faces): Don't clear current matrices
8822 of a frame being destroyed.
8823
8824 * frame.c (make_frame): Call set_window_buffer instead of
8825 Fset_window_buffer.
8826
8827 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
8828 with an additional argument specifying whether or not hooks may
8829 be called.
8830 (Fset_window_buffer): Call it.
8831
8832 * dispnew.c (clear_desired_matrices): Check that frame has
8833 a valid root window before clearing matrices in the window tree.
8834 (clear_current_matrices): Ditto.
8835 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
8836 vchild are valid windows if not nil.
8837
8838 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
8839 for :inverse-video.
8840 (Finternal_set_lisp_face_attribute): Ditto.
8841 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
8842 (Finternal_get_lisp_face_attribute): Ditto.
8843 (Finternal_lisp_face_attribute_values): Ditto.
8844 (syms_of_xfaces): Define the symbol `:reverse-video'.
8845
8846 * xdisp.c (get_glyph_property): Renamed from
8847 fill_iterator_from_glyph_property.
8848 (next_element_from_buffer): Handle case that no `glyph' property
8849 was found correctly.
8850 (display_line): Extend face to end of line only if we have faces.
8851
88521998-07-29 Gerd Moellmann <gerd@gnu.org>
8853
8854 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
8855 additional window argument.
8856
8857 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
8858 set_iterator_to_previous_visible_line_start.
8859 (reseat_at_next_visible_line_start): Likewise.
8860 (compute_stop_pos): Renamed from set_iterator_stop_pos.
8861 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
8862 (compute_face_in_buffer): Renamed from
8863 compute_face_at_iterator_position.
8864 (compute_face_in_string): Renamed from
8865 compute_face_at_iterator_string_position.
8866 (get_space_width): Renamed from get_iterator_space_width.
8867 (next_overlay_string): Renamed from
8868 set_iterator_to_next_overlay_string.
8869 (get_overlay_strings): Renamed from
8870 get_overlay_strings_at_iterator_position.
8871 (restore_overlay_strings): Renamed from
8872 setup_overlay_strings_from_glyph_pos.
8873 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
8874 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
8875 (init_to_row_start): Renamed from init_iterator_to_row_start.
8876 (init_to_row_end): Formerly init_iterator_to_next_row_start.
8877
8878 * xterm.c: Merge with 20.2.97.
8879 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
8880
8881 * dispextern.h (struct glyph): Replace text_pos position with
8882 simple charpos.
8883
8884 * xdisp.c (this_line_start_pos): Use struct text_pos.
8885 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
8886 (enum move_it_result): Renamed from move_iterator_result.
8887 (string_pos_nchars_ahead): Compute text_pos in a string from a
8888 known text_pos plus a character delta.
8889 (string_pos): Compute text_pos in string from charpos.
8890 (c_string_pos): Likewise for a C string.
8891 (number_of_chars): Return number of characters in a possibly
8892 multi-byte C string.
8893 (check_it): Renamed from check_iterator. Check that charpos and
8894 bytepos are in sync.
8895 (push_it): Renamed from save_iterator_settings.
8896 (pop_it): Renamed from restore_iterator_settings.
8897 (move_it_.*): Renamed from move_iterator_.*.
8898 (charset_at_position): Take charpos/bytepos into account.
8899 (back_to_previous_line_start): Set iterator to previous line start.
8900 (forward_to_next_line_start): Set iterator to next line start.
8901 (back_to_previous_visible_line_start): Renamed from
8902 move_iterator_previous_visible_line_start.
8903 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
8904 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
8905 Handle charpos/bytepos.
8906 (compute_face_at_iterator_position): Handle charpos/bytepos.
8907 (compute_face_at_iterator_string_position): Likewise.
8908 (get_iterator_space_width): Likewise.
8909 (load_overlay_strings): Likewise.
8910 (get_overlay_strings_at_iterator_position): Likewise.
8911 (reseat_iterator): Take a text_pos position argument.
8912 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
8913 bytepos.
8914 (init_iterator): Take additional bytepos parameter.
8915 (reseat_iterator_to_string): Handle charpos/bytepos.
8916 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
8917 (next_element_from_string): Handle charpos/bytepos.
8918 (next_element_from_c_string): Likewise.
8919 (fill_iterator_from_glyph_property): Likewise.
8920 (next_element_from_buffer): Likewise.
8921 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
8922 (move_iterator_in_display_line_to): Handle charpos/bytepos.
8923 (move_it_to): Likewise.
8924 (move_it_vertically_backward): Likewise.
8925 (move_it_vertically): Likewise.
8926 (move_it_by_lines): Likewise.
8927 (hscroll_window_tree): Likewise.
8928 (redisplay_internal): Likewise.
8929 (set_cursor_from_row): Likewise.
8930 (redisplay_window): Likewise.
8931 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
8932 (try_window_reusing_current_matrix): Handle charpos/bytepos.
8933 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
8934 (try_window_id): Handle charpos/bytepos.
8935 (Ftrace_redisplay_toggle): Return Qnil.
8936 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
8937 (insert_left_trunc_glyphs): Likewise.
8938
8939 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
8940 do a real merge).
8941 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
8942 (increment_glyph_row_buffer_positions): Ditto.
8943 (copy_glyph_row_contents): Ditto.
8944 (check_matrix_invariants): Add additional checks for charpos/
8945 bytepos consistency.
8946 (direct_output_for_insert): Changed for charpos/bytepos.
8947 (buffer_posn_from_coords): Likewise. Put code dealing with
8948 `direction-reversed' in #if 0.
8949
8950 * xterm.h: Merge with 20.2.97.
8951
8952 * frame.h: Merge with 20.2.97.
8953
8954 * window.h: Merge with 20.2.97. Add window_end_bytepos.
8955
8956 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
8957 start.
8958 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
8959 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
8960 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
8961 (struct it): Various members renamed from .*pos to .*charpos.
8962 (IT_CHARPOS): Access current buffer character position of an
8963 iterator.
8964 (IT_BYTEPOS): Access current buffer byte position of an iterator.
8965 (IT_STRING_CHARPOS): Access current string character position of
8966 an iterator.
8967 (IT_STRING_BYTEPOS): Access current string byte position of
8968 an iterator.
8969 (globally): Add function prototypes from 20.2.97.
8970
8971 * everywhere: Use P_ instead of PROTO for function prototypes
8972 because everyone else seems to use P_.
8973
8974 * dispextern.h (struct text_pos): Structure describing a charpos/
8975 bytepos position in text.
8976 (BYTEPOS): Access the byte position part of a text_pos.
8977 (CHARPOS): Likewise for the character position.
8978 (SET_TEXT_POS): Set a text_pos from a character and byte position.
8979 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
8980 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
8981 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
8982 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
8983 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
8984 for buffer and string positions.
8985 (struct glyph): Use text_pos.
8986 (struct it): Renamed from display_iterator. Use text_pos.
8987
89881998-07-23 Gerd Moellmann <gerd@gnu.org>
8989
8990 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
8991 pixmap.
8992
89931998-07-21 Gerd Moellmann <gerd@gnu.org>
8994
8995 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
8996 * xterm.c (x_draw_row_bitmaps): Use it.
8997 * dispnew.c (row_equal_p): Ditto.
8998 (update_window_line): Ditto.
8999
9000 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
9001 flag of images.
9002
9003 * dispextern.h (struct image): Removed member loading_failed_p.
9004 It's probably better to have the chance to try to load an image
9005 again.
9006
90071998-07-20 Gerd Moellmann <gerd@gnu.org>
9008
9009 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
9010 at ZV if `indicate-zv-lines' is non-nil.
9011 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
9012
9013 * dispnew.c (row_equal_p): Compare displays_text_p and
9014 ends_at_zv_p flags of rows.
9015 (update_window_line): Ditto.
9016
9017 * buffer.h (struct buffer): New member indicate_zv_lines.
9018
9019 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
9020 (init_buffer_once): New variable `default-indicate-zv-lines'.
9021 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
9022
9023 * xdisp.c (redisplay_window): Don't try moving the cursor
9024 if current glyph row w->last_cursor.vpos isn't enabled.
9025
9026 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
9027
9028 * window.c (Fset_window_vscroll): Allow only negative scroll
9029 values. Others don't seem to make sense, and this way it's easy
9030 to restore a vscroll of zero.
9031
9032 * xterm.c (x_inverted_image_mask): Check that pixmap could be
9033 allocated.
9034 (x_draw_image_glyph_string_background): Don't clip if pixmap
9035 could not be created.
9036
9037 * xfns.c (xbm_load_image_from_file): Check that pixmap could
9038 be created.
9039 (xbm_load): Ditto.
9040 (gs_load): Ditto.
9041
9042 * xterm.c (x_get_glyph_overhangs): Take image and stretch
9043 glyphs into account.
9044
9045 * xfaces.c (realize_default_face): Don't set font family of
9046 the default face from the fontset alias name for `fontset-startup'.
9047
9048 * xfns.c (gs_load): Pass frame's pixel foreground and background
9049 color to the Lisp loader.
9050
90511998-07-19 Gerd Moellmann <gerd@gnu.org>
9052
9053 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
9054 libtiff34.
9055
9056 * configure.in (--with-tiff, HAVE_TIFF): Added.
9057
9058 * config.in (HAVE_TIFF): Added.
9059
9060 * Makefile.in (LIBTIFF): Added.
9061
9062 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
9063
9064 * Makefile.in (LIBJPEG): Added.
9065
9066 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
9067 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
9068 jpeglib.h.
9069
9070 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
9071 where the library is installed in /usr/local/lib, e.g. FreeBSD,
9072 configure must be run with `--x-includes=/usr/X11R6/include:
9073 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
9074
90751998-07-18 Gerd Moellmann <gerd@gnu.org>
9076
9077 * config.in (HAVE_JPEG): Added.
9078
9079 * xfns.c (ct_init): Initialize color table used to map RGB colors
9080 from images to X pixel colors.
9081 (ct_free): Free color table.
9082 (ct_lookup): Look an RGB color up.
9083 (ct_allocated_colors): Get vector of allocated colors.
9084 (pbm_image_p): Test if image specification is a valid PPM
9085 image specification.
9086 (pbm_scan_number): Scan a decimal ASCII number from a file.
9087 (pbm_load): Load a PPM image.
9088
9089 * window.c (Fset_window_vscroll): Adjust glyph matrix if
9090 necessary. Take canonical character units as parameter.
9091 (Fwindow_vscroll): Return canonical character units.
9092
9093 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
9094 w->dy to display height for which glyph rows must be allocated.
9095
90961998-07-17 Gerd Moellmann <gerd@gnu.org>
9097
9098 * xfaces.c (face_at_string_position): Merge in region face
9099 so that it won't overwrite the font in the region.
9100 (face_at_buffer_position): Ditto.
9101 (realize_basic_faces): Don't realize region face.
9102
9103 * dispextern.h (enum face_id): REGION_FACE_ID removed.
9104
9105 * xterm.c (x_set_glyph_string_background_width): Don't let
9106 cursor face extend to end of line.
9107
9108 * xdisp.c (append_space): If adding space of default face,
9109 make sure glyph ist produced with right face.
9110
9111 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
9112 background color of a glyph string.
9113 (x_draw_glyph_string_background): Call it.
9114 (x_draw_glyph_string_bg_rect): Ditto.
9115 (x_draw_stretch_glyph_string): Ditto.
9116
91171998-07-15 Gerd Moellmann <gerd@gnu.org>
9118
9119 * xdisp.c (init_iterator): Initialize it->current_y to the
9120 window's vscroll w->dy.
9121
9122 * window.c (Fwindow_vscroll): Return number of pixels window
9123 is vscrolled smoothly.
9124 (Fset_window_vscroll): Set the number.
9125
9126 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
9127 to_pos in truncated part of a line.
9128
91291998-07-14 Gerd Moellmann <gerd@gnu.org>
9130
9131 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
9132 doesn't fit on the line, truncate it, despite truncate_lines nil.
9133 (display_line): Ditto.
9134
9135 * xfns.c: Experimental support for Ghostscript images.
9136
9137 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
9138 (XTread_socket): React on events from Ghostscript.
9139 (expose_frame): If width or height are zero, redraw entire frame.
9140 (XTread_socket): Call expose_frame after receiving event from
9141 Ghostscript.
9142
9143 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
9144 for Ghostscript support.
9145
9146 * xdisp.c (redisplay_internal): Return quickly if called
9147 recursively.
9148
9149 * alloc.c (NSTATICS): Increased to 1024.
9150
91511998-07-08 Gerd Moellmann <gerd@gnu.org>
9152
9153 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
9154 iterator's glyph row.
9155 (x_produce_stretch_glyph): Call it.
9156 (x_produce_glyphs): Handle `space-width' property; call
9157 x_append_stretch_glyph.
9158
9159 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
9160 property.
9161 (get_iterator_space_width): Determine value of `space-width'
9162 property at iterator's position.
9163 (reseat_iterator): Call it.
9164 (next_element_from_string): Ditto.
9165 (next_element_from_buffer): Ditto.
9166 (init_iterator): Initialize space_width of iterator.
9167 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
9168 moved, but cursor blinks.
9169 (redisplay_internal): Set w->last_cursor_off_p after update.
9170
9171 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
9172 (struct display_iterator): Add new member space_width.
9173
9174 * window.h (struct window): Add last_cursor_off_p.
9175
91761998-07-07 Gerd Moellmann <gerd@gnu.org>
9177
9178 * Saved.
9179
9180 * window.c (Fpos_visible_in_window_p): Case window not up to
9181 date---return nil if iterator hasn't reached position.
9182
91831998-07-06 Gerd Moellmann <gerd@gnu.org>
9184
9185 * xdisp.c (text_outside_line_unchanged_p): Fix case that
9186 overlays have changed.
9187 (redisplay_window): Case cursor movement. Don't try it if
9188 last_cursor.vpos is out of range.
9189
9190 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
9191 way, the display optimization for the line containing the cursor
9192 is used more frequently, esp. when we have a blinking cursor.
9193 (display_line): Don't set this_line_.* variables.
9194
9195 * xterm.c (x_redraw_cursor): Removed.
9196 (x_display_and_set_cursor): Set cursor type depending on
9197 cursor_off_p flag of window.
9198
9199 * dispnew.c (redraw_cursor_hook): Removed.
9200 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
9201 member of the selected window.
9202
9203 * xfaces.c (Fface_font): Added for compatibility with 20.2.
9204
9205 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
9206 Return glyph area under x/y.
9207 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
9208
9209 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
9210 after redisplaying.
9211
92121998-07-05 Gerd Moellmann <gerd@gnu.org>
9213
9214 * xdisp.c (text_outside_line_unchanged_p): Test if changes
9215 are all outside of a line of text.
9216 (redisplay_internal): Use it.
9217
92181998-06-30 Gerd Moellmann <gerd@gnu.org>
9219
9220 * xdisp.c (next_element_from_buffer): After skipping over
9221 invisible text, look for the `glyph' property.
9222 (set_iterator_stop_pos): Ignore check positions in front
9223 of an iterator's current position.
9224
9225 * xterm.c (show_mouse_face): Don't act on rows that don't exist
9226 anymore or which are marked as not having valid contents.
9227
9228 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
9229 realized faces if new attribute value is equal to old value.
9230
92311998-06-29 Gerd Moellmann <gerd@gnu.org>
9232
9233 * xfaces.c (Finternal_make_lisp_face): Increment
9234 lface_id_to_name_size when lface_id_to_name is reallocated.
9235
92361998-06-27 Gerd Moellmann <gerd@gnu.org>
9237
9238 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
9239 as minimum of endpos and overlay_pos.
9240 (load_overlay_strings): Set next_overlay_pos of iterator to
9241 -1 if we don't have to check for more overlay strings.
9242
92431998-05-09 Gerd Moellmann <gerd@gnu.org>
9244
9245 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
9246 do anything if iterator is at ZV because scan_buffer doesn't
9247 work otherwise.
9248
9249 * xterm.c (x_encode_char): Inline it.
9250 (x_get_char_font_and_encoding): Simplified.
9251 (x_per_char_metric): Inline it.
9252
9253 * xterm.c (x_draw_glyph_string_relief): Use clipping.
9254
9255 * xdisp.c (get_next_display_element): Check for end of relief
9256 face moved here from next_element_from_buffer.
9257
9258 * xterm.c (x_produce_image_glyph): Add relief thickness.
9259 (x_produce_stretch_glyph): Ditto.
9260
92611998-05-08 Gerd Moellmann <gerd@gnu.org>
9262
9263 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
9264 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
9265
9266 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
9267 from a glyph property.
9268 (x_produce_glyphs): Use it.
9269
9270 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
9271
9272 * xterm.c (x_produce_image_glyph): Add to current_x only if
9273 in text area.
9274 (x_produce_glyphs): Ditto.
9275
9276 * xdisp.c (display_line): Compute row height from glyphs in
9277 marginal areas.
9278
9279 * xterm.c (x_draw_image_glyph_string_background): Draw
9280 background of an image glyph string.
9281 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
9282 the background of a glyph string.
9283 (x_draw_image_glyph_string_foreground): Draw the foreground of
9284 an image glyph string.
9285 (x_inverted_image_mask): Return the inverted mask of an image.
9286
9287 * xfns.c (x_draw_image): Removed.
9288
9289 * dispextern.h (struct image_type): Remove drawing function.
9290
9291 * xfaces.c (load_face_colors): Swap colors if face is inverse.
9292
9293 * xdisp.c (get_next_display_element): In marginal areas, translate
9294 newlines, tabs, etc. like normal control characters.
9295
9296 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
9297 and color.
9298 (free_realized_faces): Set frame garbaged.
9299
9300 * xfaces.c (syms_of_xfaces): Add defsubr for
9301 internal-lisp-face-attribute-values.
9302
93031998-05-07 Gerd Moellmann <gerd@gnu.org>
9304
9305 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
9306 full.
9307 (x_produce_image_glyph): Set IT->nglyphs to 1.
9308 (x_draw_image_glyph_string): Use inverted mask to draw background.
9309
9310 * dispextern.h (struct image_type): Additional clipping rect
9311 parameters for drawing functions.
9312
9313 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
9314 a glyph string.
9315 (x_draw_image_glyph_string): Use it and pass the rect to the
9316 image drawing function.
9317
9318 * xdisp.c (fill_iterator_from_glyph_property): Use position of
9319 first character with `glyph' property as image position. Set
9320 iterator back to that position as long as the image hasn't been
9321 consumed with set_iterator_to_next.
9322 (set_cursor_from_row): Accept when glyph with given position is
9323 not found in the row. Set cursor x to end of line in that case,
9324 so that we can hscroll.
9325 (redisplay_internal): Correct computation of delta by which
9326 positions have changed in redisplay optimization for cursor
9327 row of selected window.
9328
9329 * xdisp.c (display_line): Remove start_pos.
9330 (display_line): Fix bug preventing display optimization for
9331 cursor line of selected window.
9332 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
9333 instead.
9334
9335 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
9336 (update_text_area): Take glyph pixel width into account
9337 when trying to find a resync point.
9338 (row_equal_p): Compare glyphs in all areas.
9339
93401998-05-06 Gerd Moellmann <gerd@gnu.org>
9341
9342 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
9343
9344 * dispextern.h (struct glyph_row): Use unsigned hash value.
9345
9346 * xdisp.c (display_line): Simplified and made faster by setting
9347 the cursor with set_cursor_from_row.
9348 (set_cursor_from_row): Handle rows of desired matrix.
9349
93501998-05-05 Gerd Moellmann <gerd@gnu.org>
9351
9352 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
9353 with type != CHAR_GLYPH.
9354 (fill_iterator_from_glyph_property): Return void. Set
9355 method to next_element_from_image.
9356 (next_element_from_image): Dummy function for delivering a
9357 single image id.
9358 (set_iterator_to_next): Add method next_element_from_image.
9359 (redisplay_window): When recentering, and cursor vpos is -1
9360 after display, assume middle of window is in first line displayed
9361 in window, and display again.
9362 (fill_iterator_from_glyph_property): Assign image glyph
9363 the position of the first character having the glyph property.
9364
9365 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
9366 * xfns.c (x_draw_image): Use it.
9367 * xterm.c (x_produce_image_glyph): Use it.
9368
9369 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
9370
9371 * Makefile.in: Extraneous #define of LIBXPM removed.
9372
9373 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
9374 (x_fill_stretch_glyph_string): Fill a glyph string from a
9375 stretch glyph.
9376 (x_compute_glyph_string_overhangs): Compute overhangs only
9377 for text glyph strings.
9378 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
9379 (x_draw_glyph_string): Call it.
9380
9381 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
9382 (struct glyph): Add sub-structure for stretchable glyphs.
9383 (GLYPH_EQUAL_P): Compare glyph type and u.val.
9384
9385 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
9386 #ifdef HAVE_FACES.
9387
9388 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
9389
9390 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
9391 setup_iterator_from_glyph_property. Don't do it for terminal
9392 frames.
9393
9394 * xterm.c (x_produce_image_glyph): Produce glyph for image
9395 that can't be loaded.
9396
9397 * xfns.c (lookup_image): If image can't be loaded, set its
9398 width and height so that we can draw a rectangle.
9399 (x_draw_image): Draw a rectangle for images that don't have
9400 a pixmap.
9401 (make_image): Set hash value.
9402 (image_spec_equal_p): Use image_spec_value.
9403
9404 * xterm.c (expose_frame): Don't try to redraw if basic faces
9405 haven't benn realized yet.
9406 (x_draw_image_glyph_string): Fill background only if image
9407 is not as tall as row.
9408
94091998-05-04 Gerd Moellmann <gerd@gnu.org>
9410
9411 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
9412 (LIBX)[HAVE_X11]: Add LIBXPM.
9413
9414 * xfns.c (xpm_image_p): Implementation of image type functions
9415 for XPM.
9416 (xpm_load): Ditto.
9417
9418 * dispextern.h (struct image): Add mask pixmap for XPM.
9419
9420 * xfns.c (x_draw_image): Handle images with masks.
9421
9422 * configure.in: --with-xpm added. Code detecting -lXpm added.
9423
9424 * config.in: Add HAVE_XPM.
9425
9426 * xfns.c (xbm_draw): Removed.
9427 (x_draw_image): Default implementation for drawing images.
9428 (xbm_keyword_index): Remove XBM_DEPTH.
9429 (xbm_format): Remove `:depth'.
9430 (xbm_image_spec_from_file): Removed to reduce consing.
9431 (xbm_load_image_from_file): Added for the same reason.
9432
9433 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
9434 glyph string.
9435 (x_draw_image_glyph_string): Pass ybase to image draw function.
9436
9437 * xfns.c (make_image): Set default baseline.
9438
9439 * xterm.c (x_produce_image_glyph): Compute ascent of image
9440 from its height and baseline percentage.
9441
9442 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
9443 (xbm_format): Add description for `:baseline'.
9444 (xbm_image_spec_from_file): Add keywords from original spec to
9445 result.
9446 (xbm_load): Set baseline of image.
9447 (xbm_image_p): Check range for baseline.
9448
9449 * dispextern.h (struct image): Add member baseline.
9450
9451 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
9452
9453 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
9454
9455 * xdisp.c (get_next_display_element): Do character translations
9456 only if delivering characters.
9457
94581998-05-03 Gerd Moellmann <gerd@gnu.org>
9459
9460 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
9461 DISP_CHARACTER.
9462
9463 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
9464 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
9465
94661998-05-02 Gerd Moellmann <gerd@gnu.org>
9467
9468 * xfns.c (prepare_image_for_display): Set image timestamp.
9469 (clear_image_cache): Clear images if image's timestamp +
9470 Vimage_eviction_seconds is > now.
9471 (syms_of_xfns): New variables image-eviction-seconds, and
9472 image-types.
9473 (add_image_format): Add to image-types.
9474 (xbm_load): Support new image spec format.
9475 (x_alloc_image_color): Allocate a color for an image.
9476
9477 * dispextern.h (struct image): Add timestamp.
9478
9479 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
9480 vectors of bool-vectors.
9481 (xbm_lisp_object_from_file): Build new format image spec.
9482
94831998-05-01 Gerd Moellmann <gerd@gnu.org>
9484
9485 * xfaces.c (init_frame_faces): Initialize image cache.
9486 (free_frame_faces): Free it.
9487
9488 * xterm.c (x_delete_display): Don't free image cache.
9489
9490 * emacs.c (main): Call init_xfns.
9491
94921998-04-30 Gerd Moellmann <gerd@gnu.org>
9493
9494 * alloc.c (mark_object): Mark objects in image cache.
9495
9496 * xfns.c (x_set_internal_border_width): Correct call to
9497 widget_store_internal_border_width.
9498
9499 * widget.c (widget_store_internal_border): Return void.
9500
9501 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
9502 void.
9503 (init_x_parm_symbols): Return void.
9504 (x_report_frame_params): Ditto.
9505 (x_set_border_pixel): Ditto.
9506 (syms_of_xfns): Ditto.
9507 (x_destroy_all_bitmaps): Use xfree instead of free.
9508
9509 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
9510
9511 * xterm.c (x_term_init): Initialize image_cache of display info.
9512 (x_delete_display): Free image cache.
9513
9514 * xterm.h (struct x_display_info): Add image_cache.
9515
9516 * xfns.c (make_image_cache): Allocate a new image cache.
9517 (free_image_cache): Free an image cache.
9518 (make_image): Allocate an image.
9519 (free_image): Free an image.
9520
9521 * dispextern.h (struct image): Structure describing an image.
9522 (struct image_cache): Structure describing an image cache.
9523
95241998-04-29 Gerd Moellmann <gerd@gnu.org>
9525
9526 * xdisp.c (check_iterator_glyph_property): Return int. Value is
9527 non-zero if iterator is filled with something to return.
9528 (next_element_from_buffer): Immediately return if
9529 setup_iterator_from_glyph_prop has filled iterator with pixmap.
9530 (next_element_from_string): Likewise.
9531
9532 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
9533
9534 * dispextern.h (struct glyph): Add pixmap_id.
9535 (display_element_type): Add DISP_PIXMAP.
9536
9537 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
9538 malloc/free.
9539
9540 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
9541 (clear_face_cache): Call it.
9542
9543 * xterm.c (x_query_font): Don't look at empty font table slots.
9544 (x_compute_min_glyph_bounds): Likewise.
9545 (x_term_init): Initialize font_table to null.
9546 (x_load_font): Change allocation of font_info structures so
9547 that it is possible to free fonts.
9548
9549 * xfns.c (Fx_close_connection): Use xfree instead of free.
9550 Only free fonts from filled font table entries.
9551
9552 * xfaces.c (best_matching_font): Support use of scalable fonts.
9553 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
9554
9555 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
9556 and resy.
9557 * xterm.c (x_term_init): Compute resx and resy.
9558
9559 * xfaces.c (split_font_name): Don't reject scalable fonts.
9560
9561 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
9562 in #if 0.
9563
9564 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
9565 point size cannot be determined.
9566
9567 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
9568 width over all fonts on a frame.
9569 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
9570 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
9571 macros.
9572
9573 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
9574 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
9575 (x_load_font): Use x_compute_min_char_bounds.
9576
9577 * xterm.h (struct x_display_info): New members smallest_char_width
9578 and smallest_font_height.
9579
95801998-04-28 Gerd Moellmann <gerd@gnu.org>
9581
9582 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
9583 the same name if GC of face is zero.
9584
9585 * dispextern.h (struct face): Member non_ascii_gc removed.
9586
9587 * xterm.c (x_get_char_font_and_encoding): Return face's font
9588 for characters < 0177 in default face. Prepare face for
9589 display before returning it.
9590 (x_produce_glyphs): Use it->charset.
9591 (x_get_char_font_and_encoding): Simplified.
9592 (x_encode_char): Remove parameter `font'.
9593
9594 * xfaces.c (choose_face_font): If registry from charset symbol
9595 doesn't contain a `-', make it a pattern by appending "*-*".
9596
9597 * xdisp.c (check_iterator_glyph_property): Adjust limit for
9598 glyph_check_pos computation to character boundary.
9599
96001998-04-27 Gerd Moellmann <gerd@gnu.org>
9601
9602 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
9603
9604 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
9605 ASCII face for a given Lisp face id.
9606
9607 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
9608 account.
9609 (reseat_iterator): Set glyph_check_pos. Handle case where
9610 new position is < original position.
9611 (check_iterator_glyph_property): Handle glyph property in strings.
9612 (next_element_from_string): Call above function.
9613 (next_element_from_display_vector): Handle faces in glyphs.
9614 (get_next_display_element): Set face_id of glyphs for
9615 control chars to zero.
9616
9617 * Makefile.in (term.o): Add dependency on dispextern.h.
9618
9619 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
9620 (display_line): Handle marginal areas.
9621 (move_iterator_in_display_line_to): Likewise.
9622
9623 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
9624
9625 * xfaces.c (face_at_buffer_position): Don't merge with nil
9626 text property.
9627 (face_at_string_position): Ditto.
9628
9629 * dispextern.h (struct display_iterator): Use a stack of saved
9630 values instead of saving check positions etc. individually.
9631
9632 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
9633 maybe pop the iterator's stack.
9634 (save_iterator_settings): Push a value on iterator's stack.
9635 (get_overlay_strings_at_iterator_position): Use it.
9636 (restore_iterator_settings): Pop the stack.
9637 (set_iterator_to_next_overlay_string): Use it.
9638
9639 * xfaces.c (try_font_list): Use alternative font families.
9640
96411998-04-26 Gerd Moellmann <gerd@gnu.org>
9642
9643 * xfaces.c (Fset_face_font_sort_order): Set the order in which
9644 font selection matches fonts.
9645 (Fface_font_sort_order): Return the font sort order.
9646 (best_matching_font): Find best matching font based on sort order.
9647 (cmp_font_names): Sort by given sort order.
9648
9649 * dispextern.h (struct display_iterator): New member faces_p.
9650 * xdisp.c (init_iterator): Initialize it->faces_p.
9651 (compute_face_at_iterator_string_position): Use it.
9652 (compute_face_at_iterator_position): Use it.
9653 (init_iterator): Use it.
9654 (display_mode_line): Ditto.
9655
9656 * xdisp.c (get_next_display_element): Put code choosing a face
9657 when the charset changes in #ifdef HAVE_FACES.
9658
9659 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
9660 lookup_face_for_charset.
9661
9662 * xfaces.c (free_font_names): Renamed from free_split_font_names.
9663 (free_all_realized_faces): Renamed from remove_all_realized_faces.
9664
96651998-04-25 Gerd Moellmann <gerd@gnu.org>
9666
9667 * xfaces.c (best_matching_font): Return the name of the best
9668 matching font in an array of font_name structures.
9669 (choose_face_font): Use it.
9670 (choose_face_fontset_font): Use it.
9671 (find_best_weight_font): If final font found has same weight as
9672 the font we started with, return the original font because it is a
9673 better match for the resolution of the display.
9674 (find_best_slant_font): Likewise.
9675 (merge_face_vector_with_property): Check more invalid attribute
9676 values.
9677 (lface_suitable_for_charset_p): Replaced by a macro with the same
9678 name in upper-case.
9679
96801998-04-24 Gerd Moellmann <gerd@gnu.org>
9681
9682 * dispextern.h (struct face): Member
9683 fontset_chosen_for_realization_p removed.
9684
9685 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
9686 end of the collision list, so that we find more specific faces
9687 first.
9688 (lookup_face_for_charset): Look up a new face if face->fontset >=
9689 0, and charset != CHARSET_COMPOSITION.
9690
9691 * xfaces.c (split_font_name): Return zero if point size of font
9692 couldn't be computed.
9693 (realize_default_face): Use ASCII font of a fontset to determine
9694 font-related attributes of the default face.
9695 (face_fontset): Return fontset id for face family.
9696 (font_list): Additional parameter font_pattern. If non-nil,
9697 return fonts matching that pattern.
9698
96991998-04-23 Gerd Moellmann <gerd@gnu.org>
9700
9701 * xfaces.c (choose_face_fontset): If new fontset cannot be
9702 constructed, or fontset name cannot be split, return the id of the
9703 standard fontset.
9704
9705 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
9706 When Emacs starts, it may be called for the initial frame which
9707 isn't an X frame.
9708
9709 * dispextern.h (struct face): New members foreground_defaulted_p,
9710 background_defaulted_p.
9711 (struct face): Members `mask' and `cache' removed.
9712
9713 * xfaces.c (load_color): Set them.
9714 (free_face_colors): Check them.
9715 (xlfd_point_size): Return -1 if resolution or point size of
9716 font unknown.
9717
9718 * xfaces.c (free_font): Removed.
9719 (load_face_font_or_fontset): Renamed from load_font.
9720 (load_face_font_or_fontset): Use message2 instead of signalling.
9721 (load_color): Likewise.
9722 (load_pixmap): Likewise.
9723
9724 * xterm.h (struct x_display_info): Add screen_dpi.
9725 * xterm.c (x_term_init): Initialize it.
9726 * xfaces.c (xlfd_point_size): Use it.
9727 (split_font_name): Compute numeric XLFD_RESY.
9728 (cmp_font_names): Make fonts with an y-resolution more
9729 similar to that of the frame appear first in the result.
9730
9731 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
9732 is set for the face to cache, add it to the end of the collision
9733 list.
9734 (try_font_list): If fonts for given family and registry cannot
9735 be found, first try to keep the registry, and choose a different
9736 family.
9737 (choose_face_font): Allow nfonts == 0.
9738 (try_font_list): Give up if no font matches given registry.
9739
97401998-04-22 Gerd Moellmann <gerd@gnu.org>
9741
9742 * xterm.c (x_get_char_font_and_encoding): Get font_info from
9743 font info id of the face.
9744
9745 * xfaces.c (load_font): Set font_info_id.
9746 (realize_face): Ditto.
9747
9748 * dispextern.h (struct face): Change member font_info to
9749 font_info_id.
9750
9751 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
9752 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
9753
9754 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
9755 isn't ASCII, get the ASCII face before adding a space.
9756 (append_space): Likewise.
9757 (insert_left_trunc_glyphs): Initialize truncate_it's charset
9758 to -1 so that it will compute the right face for the truncation
9759 glyphs.
9760
9761 * xfaces.c (realize_face): Set
9762 face->fontset_chosen_for_realization_p.
9763 (lookup_face_for_charset): If fontset wasn't specified originally
9764 and new charset != CHARSET_COMPOSITION, get a new face for that
9765 charset.
9766
9767 * dispextern.h (struct face): New member
9768 fontset_chosen_for_realization_p_specified_p. Set to 1 when
9769 realize_face has chosen a fontset to display composite characters
9770 for a Lisp face not specifying a fontset.
9771
9772 * xdisp.c (extend_face_to_end_of_line): Move tests for default
9773 face and line already filled here. Don't do anything if current
9774 face hasn't a relief or has a background equal to the frame
9775 background.
9776
9777 * xfaces.c (split_font_name): Additional parameter numeric_p.
9778 Don't compute numeric values if it is non-zero.
9779 (choose_face_fontset): Call split_font_name with numeric_p == 0.
9780 (choose_face_fontset): Print a message if fontset contains a
9781 font whose name cannot be split into fields.
9782
97831998-04-21 Gerd Moellmann <gerd@gnu.org>
9784
9785 * xfaces.c (try_font_list): Try to load a list of fonts,
9786 possibly using less restrictive patterns.
9787 (choose_face_font): Use it.
9788
9789 * xterm.c (x_get_char_font_and_encoding): For charset !=
9790 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
9791
9792 * dispextern.h (struct face): New member font_info.
9793
9794 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
9795 specifying a fontset as well as those not having a fontset.
9796 (free_font): Make it empty.
9797 (realize_face): Use changed load_font.
9798
9799 * xterm.c (x_get_char_font_and_encoding): If face doesn't
9800 fit for charset, get the right one.
9801
9802 * xfaces.c (load_font): Take frame and name parameter, return
9803 font.
9804 (free_font): Likewise.
9805 (split_font_name): Compute numeric values for height, swidth etc.
9806 (cmp_font_names): Use them.
9807 (find_best_width_font): Ditto.
9808 (find_best_height_font): Ditto.
9809 (find_best_weight_font): Ditto.
9810 (find_best_slant_font): Ditto.
9811 (lface_hash): Add weight, slant, swidth and relief to hash value.
9812 (lface_equal_p): Make it faster.
9813 (lface_from_symbol): Use assq_no_quit.
9814 (Fnote_default_face_changed): Removed.
9815 (cmp_font_names): Use strcmp instead of xstricmp.
9816 (face_charset_registries): Removed.
9817
98181998-04-20 Gerd Moellmann <gerd@gnu.org>
9819
9820 * frame.h (CHECK_FRAME): Give this macro a statement form.
9821 (CHECK_LIVE_FRAME): Ditto.
9822
9823 * xfaces.c (find_best_width_font): Find the best matching font
9824 for a given width.
9825 (find_best_height_font): Likewise for height.
9826 (find_best_weight_font): Likewise for weight.
9827 (find_best_slant_font): Likewise for slant.
9828 (choose_face_font): Use them.
9829 (get_lface_attributes): Always return frame-local face attrs.
9830 (Finternal_merge_in_global_face): Merge local face with
9831 global face attributes.
9832
9833 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
9834 Lisp face attributes.
9835
98361998-04-19 Gerd Moellmann <gerd@gnu.org>
9837
9838 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
9839 and :italic for compatibility.
9840 (Finternal_set_lisp_face_attribute_from_resource): Handle
9841 :bold and :italic. Handle boolean resource values for
9842 :underline and :italic.
9843
9844 * xfns.c (display_x_get_resource): Make it externally visible.
9845
9846 * xfaces.c (lface_from_symbol): Take a frame as parameter.
9847 If that frame is non-null, return the frame-local face.
9848 (Finternal_make_lisp_face): Additional frame argument.
9849 (lface_attributes): Get face attributes from global and frame-local
9850 definitions.
9851 (Finternal_lisp_face_equal_p): Additional frame argument.
9852 (merge_lisp_face_vector_with_property): Ditto.
9853 (Frealize_basic_faces): Removed.
9854 (Finternal_get_lisp_face_attribute): Additional frame argument.
9855 (Finternal_lisp_face_p): Ditto.
9856 (load_color) [MSDOS]: Removed because it isn't clear how
9857 to do this for MS-DOS.
9858
9859 * xfaces.c (lface_from_symbol): Get global face definition
9860 from face-global-alist.
9861
9862 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
9863 as values for :underline and :inverse-video.
9864 (Finternal_set_lisp_face_attribute): Allow nil values.
9865
98661998-04-17 Gerd Moellmann <gerd@gnu.org>
9867
9868 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
9869
9870 * xfaces.c (syms_of_xfaces): Add Vall_faces.
9871 (Finternal_make_lisp_face): Add new face to Vall_faces.
9872
9873 * xdisp.c (echo_area_display): Remove code recomputing faces.
9874 (redisplay_internal): Ditto.
9875 (init_iterator): Do it here.
9876
9877 * xfaces.c (choose_face_font): Check that swidth doesn't change
9878 for subusequent attributes.
9879 (xlfd_point_size): Return int.
9880
9881 * xdisp.c (redisplay_internal, echo_area-display): If realized
9882 faces have been cleared, call recompute_basic_faces.
9883
9884 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
9885 face_attributes_changed_p.
9886 (remove_all_realized_faces): Remove all realized faces on
9887 all frames.
9888 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
9889
9890 * xdisp.c (redisplay_internal): If face attributes have been
9891 changed since the last redisplay, recompute basic faces.
9892 (echo_area_display): Ditto.
9893
9894 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
9895
9896 * xfaces.c (min_char_bounds): If face cache not yet present,
9897 don't try to get font dimensions from faces.
9898
9899 * xterm.c (x_frame_mode_line_height): If face cache not present
9900 set, return default height.
9901
9902 * alloc.c (mark_face_cache): Check for null faces. Correct
9903 index bug.
9904
9905 * dispextern.h (struct face): Renamed from struct rface. Member
9906 underline renamed underline_p. Make it a bit-field.
9907
9908 * xfaces.c (init_frame_faces): Allocate face cache.
9909 (free_frame_faces): Free face cache.
9910 (recompute_basic_faces): Realize basic faces only if face cache is
9911 allocated, i.e. after init_frame_faces has been called.
9912
9913 * frame.c (make_frame): Initialze face cache with null.
9914
9915 * xfaces.c (same_size_fonts): Removed.
9916
9917 * xterm.c (x_set_glyph_string_gc): Add post-condition
9918 s->gc != 0.
9919 (x_set_mouse_face_gc): Ditto.
9920 (x_set_mode_line_face_gc): Ditto.
9921
9922 * xfaces.c (realize_default_face): Return int. Value is
9923 zero if frame params don't contain enough information to
9924 realize the default face.
9925 (realize_basic_faces): Ditto.
9926 (init_frame_faces): Realize basic faces.
9927
9928 * xfns.c (x_set_font): First store real font name in frame
9929 parameters, then call recompute_basic_faces.
9930
9931 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
9932
99331998-04-16 Gerd Moellmann <gerd@gnu.org>
9934
9935 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
9936
9937 * xfns.c (Fx_face_fixed_p): Removed.
9938 (Fx_list_fonts): Moved to xfaces.c.
9939
9940 * xfaces.c (compute_face_at_buffer_pos): Renamed to
9941 face_at_buffer_position. Parameter charset removed; always
9942 compute face for CHARSET_ASCII.
9943 (face_at_string_position): Renamed from
9944 compute_face_at_string_pos. Parameter charset removed; always
9945 compute for CHARSET_ASCII.
9946 (lookup_face_for_charset): Take frame parameter instead of
9947 face_cache.
9948 (lookup_face): Ditto.
9949 (compute_char_face): Renamed from compute_glyph_face.
9950
9951 * xdisp.c (init_iterator): Initialize charset member.
9952 (reseat_iterator_to_string): Ditto.
9953 (get_charset_at_buffer_position): Determine charset at
9954 buffer position in current_buffer.
9955 (reseat_iterator): Call above function.
9956 (compute_face_at_iterator_position): Call
9957 compute_face_at_buffer_pos.
9958 (compute_face_at_iterator_string_position): Call
9959 compute_face_at_string_pos.
9960 (get_face_from_id): Removed.
9961 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
9962 Call get_charset_at_buffer_position.
9963 (reseat_iterator): Determine face if charset at pos differs
9964 from iterator's charset.
9965 (reseat_iterator_to_glyph_pos): Removed.
9966
9967 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
9968 Determine charset from buffer position.
9969 (compute_string_char_face): Renamed to compute_face_at_string_pos.
9970 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
9971
9972 * dispextern.h (struct display_iterator): Add member charset.
9973
99741998-04-15 Gerd Moellmann <gerd@gnu.org>
9975
9976 * xfaces.c (compute_char_face): Removed.
9977
9978 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
9979 with new parameter list.
9980
9981 * xfaces.c (region_face): Removed.
9982 (allocate_face): Removed.
9983 (copy_face): Ditto.
9984 (face_eql): Removed.
9985 (intern_face): Removed.
9986 (clear_face_cache): Removed.
9987 (load_font): Ditto.
9988 (unload_font): Ditto.
9989 (load_color): Ditto.
9990 (unload_color): Ditto.
9991 (new_computed_face): Ditto.
9992 (intern_computed_face): Ditto.
9993 (ensure_face_ready): Ditto.
9994 (merge_faces): Ditto.
9995 (compute_base_face): Ditto.
9996 (merge_face_list): Ditto.
9997 (Fmake_face_internal): Removed.
9998 (Fset_face_attribute_internal): Ditto.
9999 (face_name_id_number): Removed.
10000 (Fframe_face_alist): Ditto.
10001 (Fset_frame_face_alist): Ditto.
10002 (Finternal_next_face_id): Ditto.
10003
10004 * xterm.h (struct x_output): Remove computed_faces, and
10005 param_faces. Remove macros accessing them.
10006
10007 * xfaces.c: Entirely new face implementation added.
10008
100091998-04-11 Gerd Moellmann <gerd@gnu.org>
10010
10011 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
10012 `charpos'.
10013
100141998-04-10 Gerd Moellmann <gerd@gnu.org>
10015
10016 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
10017 scroll bar window to reduce flickering. Clear entire height.
10018
10019 * xdisp.c (move_iterator_vertically_backward): Set iterator's
10020 current_x and hpos to zero after moving to previous line
10021 start.
10022
100231998-04-03 Gerd Moellmann <gerd@gnu.org>
10024
10025 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
10026
10027 * xfaces.c (xlfd_point_size): Compute relative point size of
10028 fonts from font and frame resolution.
10029 (sort_fonts): New function to sort fonts, temporarily setting
10030 font_frame to the frame in effect.
10031 (xlfd_point_size): Take additional frame parameter to be able
10032 to get at the display's resolution.
10033
10034 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
10035 BLACK_PIX_DEFAULT.
10036 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
10037 screen of display.
10038
100391998-03-31 Gerd Moellmann <gerd@gnu.org>
10040
10041 * xfaces.c (choose_face_fontset): Instantiate fontsets.
10042
10043 * fontset.h: Add external declarations for Vfontset_alias_alist
10044 and Vglobal_fontset_alist.
10045
10046 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
10047 (realize_default_face): If frame parameters contain an artificial
10048 font name naming a fontset, set the family of the default face to
10049 the fontset name given by the registry.
10050
10051 * Makefile.in (alloc.o): Add dependency to dispextern.h.
10052
100531998-03-22 Gerd Moellmann <gerd@gnu.org>
10054
10055 * alloc.c (mark_object): Add function prototype. Add cast to
10056 Lisp_Object pointer in call to mark_object for symbol names
10057 because this otherwise gives a warning from gcc 2.8.1.
10058 (mark_face_cache): Mark Lisp objects in realized faces.
10059
100601998-03-19 Gerd Moellmann <gerd@gnu.org>
10061
10062 * frame.h (struct frame): Add member face_cache.
10063
10064 * alloc.c (mark_object): Mark face cache.
10065 (mark_face_cache): Mark Lisp faces in face cache of frame.
10066
10067 * frame.c (make_frame): Initialize face_cache.
10068 (Fdelete_frame): Free it.
10069
100701998-03-18 Gerd Moellmann <gerd@gnu.org>
10071
10072 * xfaces.c: Very first skeleton of functions for face realization,
10073 face merging, face cache etc.
10074
10075 * dispextern.h (struct rface): Realized faces. Will replace
10076 struct face when tested.
10077 (struct face_cache): Realized face caches.
10078
10079 * xdisp.c (init_iterator): Initialize area member of display
10080 iterator.
10081
100821998-03-17 Gerd Moellmann <gerd@gnu.org>
10083
10084 * xterm.c (x_append_glyph): Use it->area to store glyphs.
10085
10086 * dispextern.h (struct display_iterator): New member area.
10087
10088 * xterm.c (note_overwritten_text_cursor): Note when the text
10089 cursor of a window is overwritten.
10090
10091 * xdisp.c (set_cursor_from_row): If PT is not found in the
10092 row, display the cursor at the start of the row.
10093
10094 * dispnew.c (direct_output_forward_char): Call
10095 set_cursor_from_row.
10096
10097 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
10098 position is not in an overlay string, set iterator's position and
10099 method explicitly so.
10100 (set_cursor_from_row): Correct cursor position calculation.
10101 Make it externally visible.
10102 (redisplay_window): Call set_cursor_from_row so that there is only
10103 one place where the cursor position is calculated from a current
10104 row.
10105
10106 * dispextern.h (struct display_iterator): New member
10107 overlay_strings_at_end_processed_p.
10108
10109 * xdisp.c (check_iterator): Perform sanity checks on
10110 display_iterators.
10111 (next_element_from_buffer): Check for overlay strings at ZV.
10112
101131998-03-16 Gerd Moellmann <gerd@gnu.org>
10114
10115 * buffer.c (init_buffer_once): Add left_margin_width and
10116 right_margin_width to buffer_local_flags.
10117
10118 * dispnew.c (margin_glyphs_to_reserve): Function computing
10119 number of glyphs to reserve for a marginal area.
10120 (adjust_glyph_matrix): Call it.
10121 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
10122 is not alive.
10123
10124 * window.c (Fset_window_margins): Allow floats.
10125
10126 * buffer.c (syms_of_buffer): Add buffer-local variables
10127 left-margin-width and right-margin-width. Add defaults
10128 default-left-margin-width and default-right-margin-width.
10129
10130 * buffer.h (struct buffer): New members left_margin_width
10131 and right_margin_width.
10132
10133 * window.c (Fset_window_margins): Make window the last and
10134 optional argument.
10135
10136 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
10137 flag no_marginal_areas_p differently.
10138 (x_clear_end_of_line): Ditto.
10139 (x_draw_glyph_string_relief): Compute width of relief differently
10140 for rows with flag no_marginal_areas_p.
10141
10142 * dispnew.c (update_window_line): Update marginal areas only
10143 for rows that don't have no_marginal_areas_p set.
10144
10145 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
10146 (display_menu_bar): Ditto.
10147
10148 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
10149
10150 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
10151 marginal areas in window-based redisplay.
10152
10153 * dispextern.h (struct glyph_matrix): New members
10154 left_margin_glyphs and right_margin_glyphs.
10155
101561998-03-15 Gerd Moellmann <gerd@gnu.org>
10157
10158 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
10159
10160 * charset.c (non_ascii_char_to_string): Use char type parameters
10161 because the function is used that way from outside. Use unsigned
10162 char internally.
10163
10164 * window.c (change_window_height): Return void.
10165 (make_dummy_parent): Return void.
10166 (init_window_once): Return void.
10167 (syms_of_window): Ditto.
10168 (keys_of_window): Ditto.
10169 (delete_window): Correct return with and without value.
10170
10171 * buffer.c (record_buffer): Return void.
10172
10173 * marker.c (unchain_marker): Return void.
10174
10175 * window.c (unshow_buffer): Return void.
10176 (replace_window): Ditto.
10177 (delete_window): Ditto.
10178
10179 * term.c (delete_glyphs_hook): Void return type.
10180 (ring_bell_hook): Ditto.
10181 (set_terminal_window_hook): Ditto.
10182
10183 * sysdep.c (init_sigio): Return void.
10184
10185 * xterm.c (x_set_window_size): Return void.
10186 (x_calc_absolute_position): Ditto.
10187 (x_set_offset): Ditto.
10188 (x_focus_on_frame): Ditto.
10189 (x_unfocus_frame): Ditto.
10190 (x_make_frame_visible): Ditto.
10191 (x_make_frame_invisible): Ditto.
10192 (x_iconify_frame): Ditto.
10193 (x_destroy_window): Ditto.
10194 (x_wm_set_window_state): Ditto.
10195 (x_wm_set_icon_pixmap): Ditto.
10196 (x_wm_set_icon_position): Ditto.
10197 (x_initialize): Ditto.
10198 (x_error_quitter): Ditto.
10199 (x_destroy_window): Use xfree instead of free.
10200
10201 * keyboard.c (clear_waiting_for_input): Return void.
10202
10203 * xterm.c (x_wm_set_size_hint): Return void.
10204 (x_raise_frame): Ditto.
10205 (refreshicon): Ditto.
10206 (x_error_catcher): Ditto.
10207 (x_clear_errors): Ditto.
10208
10209 * keyboard.c (record_asynch_buffer_change): Return void.
10210
10211