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