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