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