Commit | Line | Data |
---|---|---|
9111d4b5 KH |
1 | 2000-03-21 Kenichi HANDA <handa@etl.go.jp> |
2 | ||
3 | The following changes are to make font selection based on | |
4 | characters, not charset. In addition, they recover fontset | |
5 | facilities while utilizing the new font selection mechanism. | |
6 | ||
6c4bfdc0 KH |
7 | * Makefile.in (fontset.o): Depend on dispextern.h. |
8 | ||
9 | * alloc.c (mark_face_cache): Don't mark face->registry. | |
10 | ||
9111d4b5 KH |
11 | * dispextern.h (struct glyph): New member glyph_not_available_p. |
12 | Use 22 bits for face_id. | |
13 | (enum lface_attribute_index): Add LFACE_FONT_INDEX. | |
14 | (struct face): Delete member registry, new member ascii_face. | |
15 | (FACE_SUITABLE_FOR_CHAR_P): Renamed from | |
16 | FACE_SUITABLE_FOR_CHARSET_P. Caller changed. | |
17 | (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed. | |
18 | (struct it): Delete member charset, new member | |
19 | glyph_not_available_p. | |
20 | ||
21 | * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed. | |
22 | (struct fontset_info, struct fontset_data): Structs removed. | |
23 | (allloc_fontset_data, free_fontset_data, fs_regiser_fontset, | |
24 | Vglobale_fontset_alist, font_idx_temp): Externs removed. | |
25 | (fs_load_font, fs_query_fontset): Adjusted for new argument. | |
26 | (fs_free_face_fontset, fontset_font_pattern, | |
27 | face_suitable_for_char_p, face_for_char, | |
28 | make_fontset_for_ascii_face): Extern them. | |
29 | (FS_LOAD_FONT): Adjusted for the change of fontset implementation. | |
30 | (FS_LOAD_FACE_FONT): New macro. | |
31 | ||
32 | * fontset.c: All codes rewritten or adjusted for the change of | |
33 | fontset implementation. Now fontset is represented by char table. | |
34 | (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables | |
35 | removed. | |
36 | (my_strcasecmp): Function removed. | |
37 | (Vfontset_table, next_fontset_id, Vdefault_fontset): New | |
38 | variables. | |
39 | (AREF, ASIZE): New macros. | |
40 | (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME, | |
41 | FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF, | |
42 | FONTSET_REF_VIA_BASE, FONTSET_SET): New macros. | |
43 | (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset, | |
44 | fontset_id_valid_p, font_family_registry, fontset_name, | |
45 | fontset_ascii, free_face_fontset, face_suitable_for_char_p, | |
46 | face_for_char, make_fontset_for_ascii_face, fontset_font_pattern): | |
47 | New functions. | |
48 | (fs_load_font): New arg FACE. Caller changed. | |
49 | (fs_query_fontset): Argument changed. Caller changed. | |
50 | (Fquery_fontset): call fs_query_fontset. | |
51 | (fs_register_fontset, alloc_fontset_data, free_fontset_data): | |
52 | Functions removed. | |
53 | (clear_fontset_elements, check_registry_encoding, | |
54 | check_fontset_name): New functions. | |
55 | (syms_of_fontset): Set char-table-extra-slots property of fontset | |
56 | to 3. Staticpro and initialize Vfontset_table and | |
57 | Vdefault_fontset. Defsubr fontset_font and fontset_list. | |
58 | ||
59 | * frame.h (struct frame): Member `fontset_data' removed. | |
60 | (FRAME_FONTSET_DATA): Macro removed. | |
61 | ||
62 | * frame.c (make_frame): Don't allocate f->fontset_data. | |
63 | (Fdelete_frame): Don't free f->fontset_data. | |
64 | ||
6c4bfdc0 KH |
65 | * msdos.c (XMenuActivate): Args to lookup_derived_face changed. |
66 | ||
9111d4b5 KH |
67 | * xdisp.c (charset_at_position): Function removed. |
68 | (init_iterator): Don't set member charset of struct `it'. | |
69 | (handle_face_prop, reseat_to_string, set_iterator_to_next, | |
70 | next_element_from_display_vector, insert_left_trunc_glyphs): | |
71 | Likewise. | |
72 | (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not | |
73 | FACE_FOR_CHARSET. | |
74 | (get_next_display_element, append_space, | |
75 | extend_face_to_end_of_line): Likewise. | |
76 | ||
77 | * xfaces.c (Qx_charset_registry, Vface_default_registry): | |
78 | Variables removed. | |
79 | (clear_font_table, frame_update_line_height, load_face_font): | |
80 | Adjusted for the change of fontset implementation. | |
81 | (load_face_fontset_font): Function removed. | |
82 | (pixel_point_size): New function. | |
83 | (font_list): Argument type changed. Caller changed. | |
84 | (LFACE_FONT): New macro. | |
85 | (check_lface_attrs): Check attr[LFACE_FONT_INDEX]. | |
86 | (set_lface_from_font_name): Type of arg FONTNAME is changed to | |
87 | Lisp_Object. Determine the font name by actually loading a font | |
88 | by the specified pattern. Set LFACE_FONT (lface) to the specified | |
89 | pattern. Even if a font is not found, don't try alternatives. | |
90 | (Finternal_set_lisp_face_attribute): Handle `font' slot in lface. | |
91 | (set_font_frame_param): If `font' is specified in lface, use it. | |
92 | (Finternal_get_lisp_face_attribute): Handle `font' slot in lface. | |
93 | (lface_same_font_attributes_p): Likewise. | |
94 | (make_realized_face): Arguent changed. Caller changed. Set | |
95 | face->ascii_face to face itself. | |
96 | (free_realized_face): Free face->fontset if face is for ASCII. | |
97 | (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p, | |
98 | deduce_unibyte_registry, x_charset_registry): Functions removed. | |
99 | (free_realized_multibyte_face): New function. | |
100 | (lookup_face, lookup_named_face, lookup_derived_face): Argument | |
101 | changed. Caller changed. | |
102 | (try_font_list): Argument type changed. | |
103 | (face_fontset): Check `font' slot of ATTRS, not `family' slot. | |
104 | (choose_face_font): Argument changed. Handle fontset properly. | |
105 | (choose_face_fontset_font): Function removed. | |
106 | (realize_default_face, realize_named_face): Don't remove the | |
107 | former face here. | |
108 | (realize_face): Argument changed. Caller changed. Remove face | |
109 | with the arg former_face_id in advance. Load font for the new | |
110 | face. | |
111 | (realize_x_face): Argument changed. Caller changed. For a | |
112 | multibyte character, share fontset with base_face. For a single | |
113 | byte character, make a new realized fontset. Don't load a font | |
114 | here. | |
115 | (realize_tty_face): Argument changed. Caller changed. | |
116 | (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET. | |
117 | (face_at_buffer_position): Don't check multibyte_p for returning | |
118 | DEFAULT_FACE_ID. | |
119 | (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not | |
120 | FACE_SUITABLE_FOR_CHARSET_P. | |
121 | (syms_of_xfaces): Remove code for Qx_charset_registry and | |
122 | Vface_default_registry. | |
123 | ||
6c4bfdc0 KH |
124 | * xterm.c: Include fontset.h after dispextern.h. Undo the changes |
125 | related to PER_CHAR_METRIC done by Gerd on 2000-03-03. | |
9111d4b5 KH |
126 | (x_per_char_metric): Don't try FONT->default_char. Even if |
127 | pcm->width is zero, glyph bits may exist. | |
128 | (x_encode_char): Always initialize char2b->byte1. | |
129 | (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id. | |
130 | (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller | |
131 | changed. | |
132 | (x_append_glyph): Set glyph->glyph_not_available_p. | |
133 | (x_produce_glyphs): Set it->glyph_not_available_p. Don't set | |
134 | it->charset. Handle the case that per char metric is not | |
135 | available. If it->multibyte_p is zero and it->c is a multibyte | |
136 | character, convert it to a unibyte character. | |
137 | (struct glyph_string): Delete member `charset'. | |
138 | (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle | |
139 | the case that per char metric is not available correctly. | |
140 | (x_fill_glyph_string): Handle the case that the specific glyph is | |
141 | not available correctly. | |
142 | (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset. | |
143 | (BUILD_COMPOSITE_GLYPH_STRING): Likewise. | |
144 | (x_new_font): Call FS_LOAD_FONT, not fs_load_font. | |
145 | (x_new_fontset): Call fontset_ascii to get ASCII font name of the | |
146 | fontset. Don't call FS_LOAD_FONT. | |
147 | ||
148 | * xfns.c (Fx_create_frame): Don't cal fs_register_fontset. | |
149 | (x_create_tip_frame): Likewise. | |
150 | (Fx_close_connection): Free full_name of font_info. | |
151 | ||
152 | * fns.c (optimize_sub_char_table): New function. | |
153 | (Foptimize_char_table): New function. | |
154 | (syms_of_fns): Defsubr Soptimize_char_table. | |
155 | ||
b33dd3b0 GM |
156 | 2000-03-20 Gerd Moellmann <gerd@gnu.org> |
157 | ||
158 | * buffer.c (Fset_buffer_modified_p): Set update_mode_lines | |
159 | only if buffer is displayed in some window. | |
160 | ||
161 | * xdisp.c (handle_single_display_prop): Initialize local `value'. | |
162 | (try_window_reusing_current_matrix): Don't call scroll run | |
163 | function if run's current and desired position are the same; | |
164 | this prevents cursor flickering. | |
165 | ||
4e8a9132 SM |
166 | 2000-03-19 Stefan Monnier <monnier@cs.yale.edu> |
167 | ||
168 | * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c. | |
169 | ||
170 | * regex.c (RE_STRING_CHAR): New macro. | |
171 | (GET_CHAR_AFER_2): Remove. | |
172 | (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h. | |
173 | (enum re_opcode_t): Remove on_failure_jump_exclusive. | |
174 | (print_partial_compiled_pattern, re_compile_fastmap) | |
175 | (re_match_2_internal): Remove on_failure_jump_exclusive. | |
176 | (regex_compile): Turn optimizable P+ loops into PP*, so that the | |
177 | optimization only need to work for * (ie. can use of_keep_string_jump). | |
178 | Remove the special case for .*\n since it is now covered by the general | |
179 | optimization. | |
180 | (re_search_2): Don't bother with `room'. | |
181 | (skip_one_char): New function. | |
182 | (skip_noops): Simplify since `memory' is not needed any more. | |
183 | (mutually_exclusive_p): Restructure slightly to use `switch' and | |
184 | add handling for "all" remaining cases. | |
185 | (re_match_2_internal): Change on_failure_jump_smart to use | |
186 | on_failure_keep_string_jump (and redirect the end-of-loop jump) | |
187 | rather than on_failure_jump_exclusive. | |
188 | ||
2136fdd4 GM |
189 | 2000-03-19 Gerd Moellmann <gerd@gnu.org> |
190 | ||
191 | * xfns.c (select_visual): Don't set dpyinfo->n_planes to the | |
192 | number of bits per RGB because it's everywhere used as the depth | |
193 | of the visual. | |
194 | ||
195 | * term.c (calculate_costs): Remove code dealing with X frames. | |
196 | ||
e53ae11c RS |
197 | 2000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
198 | ||
199 | * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte. | |
200 | ||
d7b511c4 GM |
201 | 2000-03-18 Gerd Moellmann <gerd@gnu.org> |
202 | ||
203 | * lread.c (read_integer): Unread the last char not consumed. | |
204 | ||
16b5d424 GM |
205 | 2000-03-17 Gerd Moellmann <gerd@gnu.org> |
206 | ||
207 | * xterm.c (x_update_window_cursor): Don't update in frames | |
d7b511c4 | 208 | which are in the process of being deleted. |
16b5d424 | 209 | |
1fa28578 GM |
210 | 2000-03-16 Gerd Moellmann <gerd@gnu.org> |
211 | ||
83488cce GM |
212 | * Makefile.in (mostlyclean): Add `*.core'. |
213 | (clean): Add `bootstrap-emacs'. | |
214 | ||
1fa28578 GM |
215 | * lread.c (read_integer): New function. |
216 | (read1): Support read syntax #o, #x, #b, #r. | |
217 | ||
99633e97 SM |
218 | 2000-03-15 Stefan Monnier <monnier@cs.yale.edu> |
219 | ||
1fa28578 GM |
220 | * regex.c (re_match_2): Fix string shortening (to fit `stop') to |
221 | make sure POINTER_TO_OFFSET gives the same value before and after | |
222 | PREFETCH. Use `dfail' to guarantee "atomic" matching. | |
99633e97 SM |
223 | (PTR_TO_OFFSET): Use POINTER_TO_OFFSET. |
224 | (debug): Now only active if > 0 rather than if != 0. | |
225 | (DEBUG_*): Update for the new meaning of `debug'. | |
1fa28578 GM |
226 | (print_partial_compiled_pattern): Add missing `succeed' case. Use |
227 | CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs | |
228 | in `succeed_n', `jump_n' and `set_number_at'. | |
99633e97 SM |
229 | (store_op1, store_op2, insert_op1, insert_op2) |
230 | (at_begline_loc_p, at_endline_loc_p): Add prototype. | |
1fa28578 GM |
231 | (group_in_compile_stack): Move to after its arg's types are |
232 | declared and add a prototype. | |
99633e97 | 233 | (PATFETCH): Define in terms of PATFETCH_RAW. |
1fa28578 GM |
234 | (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' |
235 | wrapper. | |
99633e97 | 236 | (QUIT): Redefine as a nop except for NTemacs. |
1fa28578 GM |
237 | (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix |
238 | indentation of the greedy-op and shy-group code. | |
99633e97 SM |
239 | (at_(beg|end)line_loc_p): Fix argument's types. |
240 | (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc. | |
241 | (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation. | |
242 | (MATCHING_IN_FIRST_STRING): Remove. | |
1fa28578 GM |
243 | (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr |
244 | to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use | |
245 | QUIT unconditionally. | |
99633e97 | 246 | |
699238d9 GM |
247 | 2000-03-15 Gerd Moellmann <gerd@gnu.org> |
248 | ||
249 | * minibuf.c (Fminibuffer_complete): Set point to ZV if finding | |
250 | a sole completion. | |
251 | ||
252 | * process.c (send_process): Add a hint that the function | |
253 | can call Lisp code to its comment. | |
254 | ||
255 | * lread.c (load_dangerous_libraries): New variable. | |
256 | (Vbytecomp_version_regexp): New variable. | |
257 | (safe_to_load_p): New function. | |
258 | (Fload): Handle files not compiled with Emacs specially. | |
259 | (syms_of_lread): New Lisp variable load-dangerous-libraries. | |
260 | ||
34e23e5a GM |
261 | 2000-03-14 Gerd Moellmann <gerd@gnu.org> |
262 | ||
9c763cca GM |
263 | * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon. |
264 | ||
265 | * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM | |
266 | support functions only if HAVE_X11R6_XIM is defined. | |
267 | (xim_instantiate_callback): Define only if HAVE_X11R6_XIM. | |
268 | ||
269 | * s/sol2.h (INHIBIT_X11R6_XIM): Define. | |
270 | ||
271 | * xfns.c (X_I18N_INHIBITED): Don't define. | |
272 | (create_frame_xic): Remove conditional compilation on | |
273 | X_I18N_INHIBITED. | |
274 | (x_kill_gs_process, x_window): Use FRAME_X_VISUAL. | |
275 | ||
276 | * config.in (HAVE_X_I18N): Moved here from xterm.h. | |
277 | (HAVE_X11R6_XIM): Define. | |
278 | ||
279 | * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in. | |
280 | ||
34e23e5a GM |
281 | * xterm.c (x_term_init): Add support for X resource `synchronous'. |
282 | If set, call XSynchronize. | |
283 | ||
66f0296e SM |
284 | 2000-03-13 Stefan Monnier <monnier@cs.yale.edu> |
285 | ||
34e23e5a GM |
286 | * regex.c: Declare a new type `re_char' used throughout the code |
287 | for the string char type. It's `const unsigned char' to match the | |
288 | rest of Emacs. Consistently make sure all pointers to strings use | |
289 | it and make sure all pointers into the pattern use `unsigned | |
290 | char'. | |
66f0296e | 291 | (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of |
34e23e5a GM |
292 | GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce |
293 | code duplication. | |
66f0296e SM |
294 | |
295 | * charset.h (GET_CHAR_AFTER_2): Remove. | |
296 | (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else. | |
297 | ||
854a025c KR |
298 | 2000-03-12 Ken Raeburn <raeburn@gnu.org> |
299 | ||
300 | * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary | |
301 | variable before the invocation of YMF_PASS_LDFLAGS, in case both | |
302 | of them try to use backquotes. | |
303 | ||
b9d2c7e2 DL |
304 | 2000-03-12 Dave Love <fx@gnu.org> |
305 | ||
306 | * unexelf.c: Restore changes of 1999-10-19. | |
307 | (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise | |
308 | fix its type and alignment; copy it from current process. | |
309 | ||
5e5dff44 GM |
310 | 2000-03-12 Gerd Moellmann <gerd@gnu.org> |
311 | ||
9b2f3c38 GM |
312 | * atimer.c (cancel_atimer): Break out of the loop as soon as timer |
313 | has been found. Fix bug not computing timer's predecessor. | |
314 | ||
9172b88d GM |
315 | * fileio.c (Fread_file_name): Handle case that DIR contains a |
316 | file name. | |
317 | ||
e1cff360 GM |
318 | * window.c (Fsave_window_excursion): Doc fix. |
319 | ||
5e5dff44 GM |
320 | * xfns.c (x_defined_color): Rewritten to use |
321 | x_allocate_nearest_color. | |
322 | ||
e411ce4b EZ |
323 | 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il> |
324 | ||
325 | * msdos.c (vga_installed): New function, code moved from | |
326 | dos_set_window_size. | |
327 | (Qbar, Qcursor_type, outside_cursor): New variables. | |
328 | (syms_of_msdos): Intern and staticpro them. | |
329 | (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor | |
330 | shape used outside Emacs when called for the first time. | |
331 | (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the | |
332 | cursor shape used outside Emacs. | |
333 | (msdos_set_cursor_shape, IT_set_cursor_type): New functions. | |
334 | (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor | |
335 | type has changed. | |
336 | (IT_set_frame_parameters): Call IT_set_cursor_type if the frame | |
337 | parameters specify the cursor. Make qreverse a global | |
338 | variable (renamed to Qreverse). | |
339 | ||
80460654 GM |
340 | 2000-03-09 Gerd Moellmann <gerd@gnu.org> |
341 | ||
342 | * fns.c (Fy_or_n_p): Cancel busy-cursor. | |
343 | ||
95cd4c40 SM |
344 | 2000-03-08 Stefan Monnier <monnier@cs.yale.edu> |
345 | ||
346 | This is a big redesign of failure-stack and register handling, prompted | |
347 | by bugs revealed when trying to add shy-groups. Overall, what happened | |
348 | is that loops are now structured a little differently, groups can be | |
349 | shy and the code is a little simpler. | |
350 | ||
351 | * regex.h: Update the copyright. | |
352 | (RE_SHY_GROUPS): New value. | |
353 | (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber. | |
354 | (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS. | |
355 | ||
80460654 GM |
356 | * regex.c (enum re_opcode_t): Remove jump_past_alt, |
357 | maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add | |
358 | on_failure_jump_(exclusive, loop and smart). Also fix the comment | |
359 | for (start|stop)_memory since they now only take one argument (the | |
360 | second has becomes unnecessary). | |
361 | (print_partial_compiled_pattern): Adjust for changes in | |
362 | re_opcode_t. | |
363 | (print_compiled_pattern): Use %ld to printf long ints and flush to | |
364 | make debugging a little easier. | |
95cd4c40 SM |
365 | (union fail_stack_elt): Make the integer unsigned. |
366 | (struct fail_stack_type): Add a `frame' element. | |
367 | (INIT_FAIL_STACK): Init `frame' as well. | |
368 | (POP_PATTERN_OP): New macro for re_compile_fastmap. | |
369 | (DEBUG_PUSH, DEBUG_POP): Remove. | |
370 | (NUM_REG_ITEMS): Remove. | |
371 | (NUM_NONREG_ITEMS): Adjust. | |
80460654 GM |
372 | (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE) |
373 | (TOP_FAILURE_HANDLE): New macros for the cycle detection. | |
95cd4c40 | 374 | (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT). |
80460654 GM |
375 | (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New |
376 | macros. | |
377 | (PUSH_FAILURE_POINT): Don't push registers any more. The pattern | |
378 | address pushed is not the destination of the jump but the source | |
379 | of it instead. | |
95cd4c40 SM |
380 | (NUM_FAILURE_ITEMS): Remove. |
381 | (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop | |
80460654 GM |
382 | registers before the actual failure point). Don't hardcode any |
383 | meaning for str==NULL anymore. | |
95cd4c40 | 384 | (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE) |
80460654 GM |
385 | (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED): |
386 | Remove. | |
95cd4c40 SM |
387 | (REG_UNSET_VALUE): Use NULL (why not?). |
388 | (compile_range): Remove declaration since it doesn't exist. | |
389 | (struct compile_stack_elt_t): Remove inner_group_offset. | |
390 | (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove. | |
391 | (regex_grow_registers): Remove dead code. | |
392 | (FIXUP_ALT_JUMP): New macro. | |
80460654 GM |
393 | (regex_compile): Add shy-groups Change loops to use |
394 | on_failure_jump_smart&jump instead of | |
395 | on_failure_jump&maybe_pop_jump. Change + loops to eliminate the | |
396 | initial (dummy_failure_)jump. Remove c1_base (looks like unused | |
397 | variable to me). Use `jump' instead of `jump_past_alt' and don't | |
398 | bother with push_dummy_failure in alternatives since it is now | |
399 | unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef | |
400 | emacs' for (re)allocating the stack. | |
401 | (re_compile_fastmap): Remove dead variables i and num_regs. Exit | |
402 | from loop when bufp->can_be_null rather than jumping to `done'. | |
403 | Avoid jumping backwards so as to ensure termination. Use | |
404 | PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of | |
405 | backreferences. Remove dead code in handling of `anychar'. | |
95cd4c40 | 406 | (skip_noops, mutually_exclusive_p): New functions taken from the |
80460654 GM |
407 | handling of `maybe_pop_jump' in re_match_2_internal. Slightly |
408 | improve mutually_exclusive_p to handle ".+\n". | |
409 | (lowest_active_reg, highest_active_reg, | |
410 | NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove. | |
411 | (re_match_2_internal): Use %p instead of 0x%x when printf'ing | |
412 | ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead | |
413 | variables. Push register (in `start_memory') on the stack rather | |
414 | than storing it in old_reg(start|end). Remove the cycle detection | |
415 | from `stop_memory', replaced by the use of on_failure_jump_loop | |
416 | for greedy loops. Add code for the new on_failure_jump_<foo>. | |
417 | Remove ad-hoc code in `on_failure_jump' to push more registers in | |
418 | the case of a loop. Take out code from `maybe_pop_jump' into | |
419 | separate functions and adapt it to the semantics of | |
420 | `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump | |
421 | and push_dummy_failure. Remove dummy_failure handling and | |
422 | handling of `failures to jump to on_failure_jump' (this last one | |
423 | was already dead code, it seems). | |
424 | (group_match_null_string_p, alt_match_null_string_p) | |
425 | (common_op_match_null_string_p): Remove. | |
95cd4c40 | 426 | |
7397acc4 DL |
427 | 2000-03-08 Dave Love <fx@gnu.org> |
428 | ||
429 | * config.in: Don't depend on __STDC__ for volatile. | |
430 | Add POINTER_TYPE, PTR, PROTOTYPES. | |
431 | ||
432 | * hftctl.c, strftime.c: Use PROTOTYPES. | |
433 | * eval.c (find_handler_clause): Likewise. | |
434 | ||
435 | * mem-limits.h: Use POINTER_TYPE. | |
436 | ||
437 | * lisp.h (P_): Define based on PROTOTYPES, not __STDC__. | |
438 | (memory_warnings): Declare using POINTER_TYPE. | |
439 | ||
5e91ff9e GM |
440 | 2000-03-08 Gerd Moellmann <gerd@gnu.org> |
441 | ||
feab4fba GM |
442 | * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor. |
443 | ||
25edb08f GM |
444 | * xdisp.c (display_echo_area): Temporarily inhibit garbage |
445 | collection. | |
446 | ||
5e91ff9e GM |
447 | * xfns.c: Remove obsolete code in #if 0. |
448 | (Fx_focus_frame): New function. | |
449 | ||
a735b7e1 KH |
450 | 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> |
451 | ||
452 | * coding.c (coding_category_name): Add coding-category-utf-8, | |
453 | coding-category-utf-16-be, coding-category-utf-16-le. | |
454 | (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P, | |
455 | UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P, | |
456 | UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros. | |
457 | (detect_coding_utf_8): New function. | |
458 | (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P | |
459 | UTF_16_LOW_SURROGATE_P): New macros. | |
460 | (detect_coding_utf_16): New function | |
461 | (detect_coding_mask): When priorities are specified, skip any | |
462 | categories that have `nil' coding-system. Fix bug of returning | |
463 | wrong mask when PRIORITIES is specified and detect_coding_XXX() | |
464 | returns a mask not set in PRIORITIES. | |
465 | (detect_eol_type_in_2_octet_form): New function. | |
466 | (detect_eol): selects detect_eol_type_XXX to call according to | |
467 | cooding->category_idx. | |
468 | (detect_coding_system): Remove `nil' coding-system in the result. | |
469 | (Fupdate_coding_systems_internal): Update all coding-categories. | |
470 | ||
471 | * coding.h (CODING_CATEGORY_IDX_UTF_8, | |
472 | CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New | |
473 | macros. | |
474 | (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY, | |
475 | CODING_CATEGORY_IDX_MAX): Adjusted for the above macros. | |
476 | CODING_CATEGORY_IDX_UTF_16_LE. | |
477 | (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE, | |
478 | CODING_CATEGORY_MASK_UTF_16_LE): New macros. | |
479 | (CODING_CATEGORY_MASK_ANY): Include the above macros. | |
480 | (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro. | |
481 | ||
9994cc69 GM |
482 | 2000-03-07 Gerd Moellmann <gerd@gnu.org> |
483 | ||
e9b4e5ff GM |
484 | * doc.c (Fdocumentation_property): If value is not a string, |
485 | and doesn't refer to etc/DOC, evaluate it to obtain a string. | |
486 | ||
f7daf1e1 GM |
487 | * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to |
488 | close the display with XtCloseDisplay. This caused a bus error | |
489 | on OpenWindows. | |
490 | ||
9994cc69 GM |
491 | * minibuf.c (Fminibuffer_complete): Move point to ZV when input is |
492 | complete but not unique. | |
493 | ||
4336c705 GM |
494 | 2000-03-06 Gerd Moellmann <gerd@gnu.org> |
495 | ||
18bb0684 GM |
496 | * process.c (send_process): Remove local variable `procname' that |
497 | might become invalid when a GC happens. Instead, access the | |
498 | process name slot directly. | |
499 | ||
4336c705 GM |
500 | * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and |
501 | orig_height if set. | |
502 | ||
503 | * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and | |
504 | orig_height if set. | |
505 | ||
515d0d0e EZ |
506 | 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il> |
507 | ||
508 | * msdos.c (IT_note_mouse_highlight): Return immediately if frame's | |
509 | glyph matrices have been freed. | |
510 | ||
100b3cbb GM |
511 | 2000-03-05 Gerd Moellmann <gerd@gnu.org> |
512 | ||
50df5e5a | 513 | * Makefile.in (tags): Include ../lwlib/TAGS in TAGS. |
6178bc23 | 514 | (bootstrap-temacs): Set LC_ALL to C like for temacs. |
50df5e5a GM |
515 | |
516 | * xfns.c (QCdata): Moved to xdisp.c. | |
517 | ||
518 | * xdisp.c (QCdata): Moved here from xfns.c. | |
519 | (syms_of_xdisp): Initialize QCdata. | |
520 | ||
521 | * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define. | |
522 | ||
523 | * window.c (coordinates_in_window): Use | |
524 | FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of | |
525 | FRAME_INTERNAL_BORDER_WIDTH. | |
526 | ||
100b3cbb | 527 | * xdisp.c (try_window_id): Recompute unchanged information if |
4336c705 | 528 | it is obviously invalid. |
100b3cbb GM |
529 | |
530 | * xterm.c (x_term_init): Create a colormap if not using the | |
531 | default visual. | |
532 | ||
533 | * xterm.h (select_visual): Change prototype. | |
534 | ||
535 | * xfns.c (select_visual): Rewritten. Recognize user-specified | |
536 | visual classes. | |
537 | (visual_classes): New variable. | |
538 | ||
64d739c4 GM |
539 | 2000-03-04 Gerd Moellmann <gerd@gnu.org> |
540 | ||
541 | * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color) | |
542 | (lookup_pixel_color, x_laplace, x_build_heuristic_mask) | |
543 | (png_load): Access colormap of frame using FRAME_X_COLORMAP. | |
544 | (x_decode_color): Don't handle allocation of white and black | |
545 | specially. | |
546 | (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and | |
547 | XtNcolormap resources. | |
548 | (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow. | |
549 | (Fx_create_frame): Initialize color members of x_output structure. | |
550 | (xpm_load): Pass colormap to XPM lib. | |
551 | ||
552 | * xfaces.c (x_free_colors): Access colormap of frame using | |
553 | FRAME_X_COLORMAP. Be paranoid about freeing black and white | |
554 | when default colormap is used. | |
555 | ||
556 | * xterm.c (x_term_init): Set Colormap member of x_display_info | |
557 | structure. Copy colormap if resource `privateColormap' is | |
558 | specified (PseudoColor only). | |
559 | (x_setup_relief_color): Access colormap of frame using | |
560 | FRAME_X_COLORMAP. | |
561 | ||
562 | * xterm.h (struct x_display_info): Add Colormap member `cmap'. | |
563 | (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros. | |
564 | ||
c3cee013 JR |
565 | 2000-03-04 Jason Rumney <jasonr@gnu.org> |
566 | ||
567 | * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or | |
568 | other non-platform-specific equivalents. | |
64d739c4 | 569 | [WINDOWSNT]: Include w32term.h, fontset.h and define X |
c3cee013 JR |
570 | specific functions and macros as their w32 equivalents where |
571 | non-platform-specifics are not available. | |
572 | [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM. | |
573 | (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions. | |
574 | (clear_font_table) [WINDOWSNT]: Call w32_unload_font. | |
575 | (frame_update_line_height): Use macros to access f->output_data. | |
576 | (defined_color): Remove FIXME comments; fixed. | |
577 | (x_face_list_fonts, prepare_face_for_display): Put X specifics | |
578 | into #ifdef blocks. Add WINDOWSNT blocks. | |
579 | (Fx_list_fonts): Use macros for accessing font data. | |
580 | (set_lface_from_font_name): Different default fonts for X and | |
581 | WINDOWSNT. | |
582 | (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as | |
583 | scalable for backward compatibility. | |
64d739c4 | 584 | (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT. |
c3cee013 JR |
585 | (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default. |
586 | ||
64d739c4 | 587 | * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of |
c3cee013 JR |
588 | syms_of_w32faces. |
589 | ||
590 | * makefile.nt (w32faces.obj): Remove. | |
591 | (xfaces.obj): Add. | |
592 | ||
807cc41c JR |
593 | 2000-03-03 Jason Rumney <jasonr@gnu.org> |
594 | ||
595 | * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with | |
596 | correct parameters. | |
597 | ||
0007072a KR |
598 | 2000-03-03 Ken Raeburn <raeburn@gnu.org> |
599 | ||
600 | * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide | |
601 | standard ELF definitions here if the system header does not. | |
602 | ||
71a6ba55 GM |
603 | 2000-03-03 Gerd Moellmann <gerd@gnu.org> |
604 | ||
605 | * xterm.c (PER_CHAR_METRIC): Removed. | |
606 | (x_per_char_metric_1, x_default_char): New functions. | |
607 | (x_per_char_metric): If font's default char is invalid, return | |
608 | metrics of a suitably chosen usable default char. | |
609 | (x_draw_glyph_string_foreground): If font has an invalid default | |
64d739c4 GM |
610 | char, replace occurrences of unprintable chars with a suitably |
611 | chosen usable default char. | |
71a6ba55 | 612 | |
900fa1f1 GM |
613 | 2000-03-02 Gerd Moellmann <gerd@gnu.org> |
614 | ||
42f55fe0 GM |
615 | * xterm.c (note_mouse_highlight): Return quickly if frame's |
616 | glyph matrices have been freed. | |
617 | ||
618 | * dispnew.c (free_glyphs): Block input while freeing matrices. | |
619 | ||
900fa1f1 GM |
620 | * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors. |
621 | ||
622 | * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use | |
623 | x_free_colors. | |
624 | ||
625 | * dispextern.h (x_free_colors): Add prototype. | |
626 | ||
627 | * xfaces.c (x_free_colors): New function. | |
628 | (unload_color, free_face_colors): Use it. | |
629 | ||
2f950292 EZ |
630 | 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il> |
631 | ||
632 | * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero. | |
633 | ||
634 | * window.c [MSDOS]: Include msdos.h. | |
635 | ||
54d04320 DL |
636 | 2000-03-02 Dave Love <fx@gnu.org> |
637 | ||
638 | * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH. | |
639 | ||
640 | * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't | |
641 | set C_OPTIMIZE_SWITCH for gcc. | |
642 | ||
0ba93ac4 KH |
643 | 2000-03-02 Kenichi Handa <handa@etl.go.jp> |
644 | ||
645 | * coding.c (coding_save_composition): Be sure to allocate | |
646 | composition data area in coding even if there's no composition in | |
647 | the current run. | |
648 | ||
a2bc11d4 JR |
649 | 2000-03-01 Jason Rumney <jasonr@gnu.org> |
650 | ||
651 | * w32term.c: Equivalent changes to those made to xterm.c on | |
652 | 2000-02-25 and 2000-02-24. | |
653 | ||
654 | * w32fns.c: Equivalent changes to those made to xfns.c on | |
655 | 2000-02-25 and 2000-02-21. | |
656 | ||
657 | * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure | |
658 | correct line-end convention is followed. | |
659 | ||
660 | * w32menu.c [HAVE_BOXES]: Remove #undef. | |
661 | (single_keymap_panes): Remove code for simulating checkmarks. | |
662 | (single_menu_item): Remove notbuttons_ptr argument. Callers changed. | |
663 | Remove code for drawing simulated checkmarks. | |
664 | (w32_menu_show): make unibyte help string correctly. | |
665 | (add_menu_item): draw standard Windows checkmarks. Draw radio | |
666 | buttons as radio buttons if possible. | |
667 | ||
72d19d75 GM |
668 | 2000-03-01 Gerd Moellmann <gerd@gnu.org> |
669 | ||
2df636f4 GM |
670 | * sysdep.c (start_of_text): Don't define this function for NetBSD |
671 | with ELF. | |
672 | ||
673 | * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]: | |
674 | Don't define. | |
675 | (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o. | |
676 | (LINKER): Don't undef if __NetBSD__ is defined. | |
677 | ||
678 | * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define. | |
679 | ||
680 | * fileio.c [__NetBSD__]: Define `unix'. | |
681 | ||
72d19d75 GM |
682 | * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay. |
683 | ||
ed4d0512 GM |
684 | 2000-02-29 Gerd Moellmann <gerd@gnu.org> |
685 | ||
50b1039f GM |
686 | * atimer.c (start_atimer): Don't abort when timers are stopped. |
687 | (append_atimer_lists): New function. | |
688 | (cancel_atimer, stop_other_atimers, run_all_atimers): Handle | |
689 | arbitrary lists of stopped and running atimers. | |
690 | ||
ed4d0512 GM |
691 | * atimer.c (cancel_atimer): Handle canceling an atimer when |
692 | some timers are stopped. | |
693 | ||
694 | * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null | |
695 | after canceling it. | |
696 | ||
697 | * fns.c (maybe_resize_hash_table): Handle case of new size | |
698 | coming out as being the same as old size. | |
699 | ||
387023ee JR |
700 | 2000-02-27 Jason Rumney <jasonr@gnu.org> |
701 | ||
702 | * makefile.nt: Add atimer.h to dependencies. | |
703 | * w32.c (init_environment): Set Vw32_num_mouse_buttons here. | |
704 | * w32console.c: Only disable window system features for dispextern.h | |
705 | (initialize_w32_display): Build a display info for the console. | |
706 | * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17. | |
707 | * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN, | |
708 | WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice | |
709 | as 2 button mice. | |
710 | * w32gui.h (struct W32FontStruct): Revert last change after change | |
711 | to xdisp.c. | |
712 | * w32menu.c (single_submenu): Set up help string. | |
713 | [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip. | |
714 | (w32_dialog_show): Set up help string. | |
715 | * w32term.c (w32_display_info_for_display): Remove unused function. | |
716 | (w32_draw_bitmap): Use pre-built bitmaps. | |
717 | (w32_initialize_display_info): New function to initialize parts of | |
718 | display info that are common to both GUI and console frames. | |
719 | (w32_term_init): Use w32_initialize_display_info. Do not set | |
720 | Vw32_num_mouse_buttons here, as it is not called for console | |
721 | frames. Build bitmaps for indicating truncated lines etc. | |
722 | (x_delete_display): Destroy pre-built bitmaps. | |
723 | * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro. | |
724 | (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM. | |
725 | ||
4516715a DL |
726 | 2000-02-27 Dave Love <fx@gnu.org> |
727 | ||
728 | * lisp.h: Add a bunch of prototypes. | |
729 | ||
171ca836 KH |
730 | 2000-02-26 Kenichi Handa <handa@etl.go.jp> |
731 | ||
732 | * keyboard.c (read_char): Set `usec' correctly. | |
733 | ||
4013921d KH |
734 | 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> |
735 | ||
736 | * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is | |
737 | `lambda', set reg[RRR] to the map index. | |
738 | (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set | |
739 | reg[RRR] to 0. Otherwise, set it to -1. | |
740 | ||
9244a058 GM |
741 | 2000-02-25 Gerd Moellmann <gerd@gnu.org> |
742 | ||
2df636f4 | 743 | * emacs.c (main): Remove code snippet commented out with `//'. |
9244a058 | 744 | |
f43d79c1 GM |
745 | 2000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
746 | ||
747 | * fileio.c (Ffile_symlink_p): If result starts with a `/' | |
748 | and contains a `:', prepend `/:'. | |
749 | ||
750 | * window.c (select_window_1): If selected_window is nil, | |
751 | don't "swap out" the buffer's point. | |
752 | (Fset_window_configuration): Set selected_window to nil | |
753 | before calling Fselect_window. | |
754 | (unshow_buffer): Don't set point in buffer from window's point | |
755 | if another more recently selected window also shows the buffer. | |
756 | ||
bed0c171 GM |
757 | 2000-02-25 Gerd Moellmann <gerd@gnu.org> |
758 | ||
449c3c52 GM |
759 | * keyboard.c (recursive_edit_1): Cancel busy-cursor. |
760 | ||
f5b58615 GM |
761 | * xfns.c (inhibit_busy_cursor, busy_count): Removed. |
762 | (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed. | |
763 | (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New | |
764 | variables. | |
765 | (DEFAULT_BUSY_CURSOR_DELAY): New define. | |
766 | (start_busy_cursor, cancel_busy_cursor, show_busy_cursor) | |
767 | (hide_busy_cursor): New functions. | |
768 | (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay. | |
769 | ||
770 | * minibuf.c (read_minibuf): Cancel busy-cursor. | |
771 | ||
772 | * keyboard.c (command_loop_1): Call start_busy_cursor before | |
773 | Fcommand_execute and cancel_busy_cursor after it. | |
774 | (timer_check): Remove busy-cursor code. | |
775 | (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy | |
776 | cursor timer. | |
777 | ||
778 | * process.c (wait_reading_process_input): Remove busy-cursor code. | |
779 | ||
780 | * eval.c (Fsignal): Call cancel_busy_cursor instead of | |
781 | Fx_hide_busy_cursor. | |
782 | ||
783 | * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor): | |
784 | Remove prototyoes. | |
785 | (start_busy_cursor, cancel_busy_cursor): Add prototypes. | |
786 | ||
787 | * lisp.h (Fx_hide_busy_cursor): Remove prototype. | |
788 | ||
789 | * xterm.c (XTread_socket): Remove busy-cursor code. | |
790 | ||
4eb8436f GM |
791 | * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function. |
792 | (build_frame_matrix_from_leaf_window): Put code handling | |
793 | glyph row's not being a slice of a frame row in #if 0. | |
794 | (sync_window_with_frame_matrix_rows): New function. | |
795 | (frame_row_to_window): New function. | |
796 | (mirror_line_dance): Handle copies between windows. | |
797 | ||
3cb65b0e GM |
798 | * lread.c (Fload): Use `xfree' instead of `free'. |
799 | (init_obarray): Use `xmalloc' instead of `malloc'. | |
800 | ||
bed0c171 GM |
801 | * window.c (Fset_window_buffer): Set WINDOW to the window |
802 | after decoding. | |
2add4349 GM |
803 | (coordinates_in_window): Take frame's internal border width |
804 | into account. | |
bed0c171 | 805 | |
42088c12 GM |
806 | 2000-02-24 Gerd Moellmann <gerd@gnu.org> |
807 | ||
808 | * xterm.c (x_display_and_set_cursor): Display cursor of | |
809 | non-selected windows depending on the setting of | |
810 | cursor_in_non_selected_windows. | |
811 | ||
812 | * xdisp.c (cursor_in_non_selected_windows): New variable. | |
813 | (syms_of_xdisp): DEFVAR_BOOL it. | |
814 | ||
d1e103b2 GM |
815 | 2000-02-23 Gerd Moellmann <gerd@gnu.org> |
816 | ||
723e779c GM |
817 | * data.c (Fstring_to_number): If number is greater than what |
818 | fits into an integer, return a float. | |
819 | ||
d1e103b2 GM |
820 | * eval.c (specbind): Remove references to |
821 | keyword_symbols_constant_flag. | |
822 | ||
823 | * data.c (keyword_symbols_constant_flag): Removed. | |
824 | (Fmakunbound, set_internal, syms_of_data): Remove references to | |
825 | keyword_symbols_constant_flag. | |
826 | ||
827 | * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag. | |
828 | ||
214f877f KH |
829 | 2000-02-23 Kenichi Handa <handa@etl.go.jp> |
830 | ||
831 | * syntax.c (multibyte_syntax_as_symbol): New variable. | |
832 | (syms_of_syntax): Declare it as a Lisp variable. | |
833 | (SYNTAX_WITH_MULTIBYTE_CHECK): New macro. | |
834 | (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are | |
835 | nonzero, treat all multibyte characters as symbol. | |
42088c12 | 836 | (init_syntax_once): Give syntax `word' to all multibyte |
214f877f KH |
837 | characters. |
838 | ||
130adcb7 EZ |
839 | 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il> |
840 | ||
3cb65b0e | 841 | * frame.c (Fdelete_frame): Don't let echo_area_window remain on |
130adcb7 EZ |
842 | a deleted frame. |
843 | ||
17cbbf95 GM |
844 | 2000-02-21 Gerd Moellmann <gerd@gnu.org> |
845 | ||
846 | * frame.c (Fmouse_position): GCPRO retval instead of x and y. | |
847 | ||
848 | * xfns.c (x_window_to_frame, x_any_window_to_frame) | |
849 | (x_non_menubar_window_to_frame): Check the busy-cursor window. | |
850 | ||
beb0bc36 DL |
851 | 2000-02-21 Dave Love <fx@gnu.org> |
852 | ||
853 | * frame.c (Vmouse_position_function): New variable. | |
854 | (Fmouse_position): Use it. | |
855 | (syms_of_frame): Install it. | |
856 | ||
857 | * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'. | |
858 | ||
1d92afcd GM |
859 | 2000-02-20 Gerd Moellmann <gerd@gnu.org> |
860 | ||
861 | * fileio.c (Finsert_file_contents): Unbind the binding of | |
862 | standard-output done by temp_output_buffer_setup. | |
329eed9f GM |
863 | |
864 | * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless | |
865 | Vmocklisp_arguments is nil. Inline Fcar and Fcdr. | |
866 | (specbind, unbind_to): Handle most common case of non-constant | |
867 | symbol with trivial value specially. | |
868 | ||
869 | * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case. | |
870 | ||
2d06696f RS |
871 | 2000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
872 | ||
873 | * data.c (Fmake_variable_buffer_local): Doc fix. | |
874 | Init found_for_buffer to 0. | |
875 | (Fmake_variable_frame_local): If the variable has already | |
876 | been buffer-local, set the check_frame field. | |
877 | ||
1d4311c3 EZ |
878 | 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il> |
879 | ||
880 | * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data | |
881 | produced for CODING_MODE_LAST_BLOCK requires. | |
882 | ||
2dc95ddd DL |
883 | 2000-02-18 Dave Love <fx@gnu.org> |
884 | ||
885 | * keyboard.c (echo_keystrokes): Remove declaration. | |
886 | (Vecho_keystrokes) New variable. | |
887 | (read_char, record_menu_key, read_key_sequence): Use it to allow | |
888 | use of float value. | |
889 | (syms_of_keyboard): Change Vecho_keystrokes declaration. | |
890 | ||
891 | * lread.c: Undef feature selection macros before defining. | |
892 | ||
f0930f35 GM |
893 | 2000-02-18 Gerd Moellmann <gerd@gnu.org> |
894 | ||
895 | * data.c (let_shadows_buffer_binding_p): Ignore specbindings | |
896 | for symbols other than the symbol in question. | |
897 | ||
e3d4de90 DL |
898 | 2000-02-17 Dave Love <fx@gnu.org> |
899 | ||
900 | * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization. | |
901 | ||
0b378936 GM |
902 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
903 | ||
d621caf7 GM |
904 | * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef. |
905 | ||
0b378936 GM |
906 | * alloc.c (enum mem_type): Compile unconditionally. |
907 | ||
3b451f74 EZ |
908 | 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il> |
909 | ||
910 | * xfaces.c (tty_defined_color): Don't return faulire indication | |
911 | for unspecified-fg and unspecified-bg pseudo-colors. | |
912 | ||
10689a01 GM |
913 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
914 | ||
1216f5e4 GM |
915 | * alloc.c (mark_object): Don't mark symbol names in pure space. |
916 | (gc_sweep): Don't unmark symbol names in pure space. | |
917 | ||
918 | * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS) | |
919 | (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES) | |
920 | [GC_MARK_STACK]: New defines. | |
921 | (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO) | |
922 | [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops. | |
923 | ||
924 | * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base. | |
925 | ||
926 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use | |
927 | allocate_buffer instead of xmalloc. | |
928 | ||
929 | * alloc.c (toplevel): Include setjmp.h. | |
930 | (PURE_POINTER_P): New define. | |
931 | (enum mem_type) [GC_MARK_STACK]: New enumeration. | |
932 | (Vdead) [GC_MARK_STACK]: New variable. | |
933 | (lisp_malloc): Add parameter TYPE, call mem_insert if | |
934 | GC_MARK_STACK is defined. | |
935 | (allocate_buffer): New function. | |
936 | (lisp_free) [GC_MARK_STACK]: Call mem_delete. | |
937 | (free_float) [GC_MARK_STACK]: Set type to Vdead. | |
938 | (free_cons) [GC_MARK_STACK]: Set car to Vdead. | |
939 | (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables. | |
940 | (MEM_NIL) [GC_MARK_STACK]: New define. | |
941 | (struct mem_node) [GC_MARK_STACK]: New structure. | |
942 | (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup) | |
943 | (mem_delete_fixup, mem_rotate_left, mem_rotate_right) | |
944 | (live_string_p, live_cons_p, live_symbol_p, live_float_p) | |
945 | (live_misc_p, live_vector_p, live_buffer_p, mark_memory) | |
946 | (mark_stack) [GC_MARK_STACK]: New functions. | |
947 | (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack. | |
948 | (clear_marks): Removed. | |
949 | (gc_sweep): Set free conses' car, free floats' type, free | |
950 | symbols' function to Vdead. Use lisp_free to free buffers. | |
951 | (init_alloc_once): Initialize Vdead. | |
952 | (survives_gc_p): Return non-zero for pure objects. | |
953 | ||
954 | * alloc.c: Add comments throughout the file. | |
955 | ||
2503c8b1 GM |
956 | * atimer.c (stop_other_atimers): Don't call cancel_atimer because |
957 | that unblocks alarms. | |
958 | ||
8389e1e2 GM |
959 | * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c, |
960 | emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h, | |
961 | Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'. | |
962 | ||
10689a01 GM |
963 | * frame.c (make_frame): Set frame initiallly to `garbaged'. |
964 | ||
bfc17d18 KH |
965 | 2000-02-17 Kenichi Handa <handa@etl.go.jp> |
966 | ||
4a09dee0 KH |
967 | * xdisp.c (decode_mode_spec_coding): Delete superfluous code to |
968 | avoid infinite error signaling. Allocate sufficient memory for | |
969 | eol_str in the case that eoltype is Lisp_Int. | |
bfc17d18 | 970 | |
2b927d02 SM |
971 | 2000-02-17 Stefan Monnier <monnier@cs.yale.edu> |
972 | ||
973 | * syntax.c (Fforward_comment): Undo the previous change, since cc-mode | |
974 | depends on the previous behavior. | |
975 | ||
b49cb764 GM |
976 | 2000-02-16 Gerd Moellmann <gerd@gnu.org> |
977 | ||
978 | * sysdep.c (vfork) [!HAVE_VFORK]: Removed. | |
979 | ||
99e95407 GM |
980 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
981 | ||
982 | * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define. | |
983 | ||
984 | * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]: | |
b49cb764 | 985 | Workaround for FreeBSD bug. Clear output queue after EAGAIN in |
99e95407 GM |
986 | write(2). |
987 | ||
6ffd3cf7 RS |
988 | 2000-02-15 Richard M. Stallman <rms@gnu.org> |
989 | ||
990 | * data.c (set_internal): Don't make variable buffer-local | |
991 | if within a let-binding for the same buffer. | |
992 | (let_shadows_buffer_binding_p): New function. | |
993 | ||
994 | * eval.c (specbind): For buffer-local value, | |
995 | record the current buffer also. | |
996 | (unbind_to): Cope with that change. | |
997 | ||
cad53475 GM |
998 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
999 | ||
1000 | * window.c (Fsave_window_excursion): Doc fix. | |
1001 | ||
1aa963c8 SM |
1002 | 2000-02-15 Stefan Monnier <monnier@cs.yale.edu> |
1003 | ||
1004 | * syntax.c (back_comment): Make sure we only consider comment-starters | |
1005 | of the relevant style and return -1 in case of a failure to find the | |
1006 | beginning of the comment. | |
1007 | (Fforward_comment): If back_comment fails, go back to the position just | |
1008 | after the comment-end. | |
1009 | (scan_lists): Add comment describing a very minor bug. | |
1010 | ||
b9b84fd3 SM |
1011 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
1012 | ||
1013 | * minibuf.c (Ftry_completion, Fall_completions): Add a reference to | |
1014 | `completion-regexp-list' in the docstring. | |
1015 | ||
3a28db80 DL |
1016 | 2000-02-14 Dave Love <fx@gnu.org> |
1017 | ||
1018 | * xfaces.c (tty_defined_color): Declare color_idx unsigned long. | |
1019 | ||
fb4a568d SM |
1020 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
1021 | ||
1022 | * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS | |
1023 | to Emacs' syntax. Also fix the comment about set/not-set meanings | |
1024 | since Emacs syntax is not the value 0 any more. | |
1025 | * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax | |
1026 | since it's now part of RE_SYNTAX_EMACS. | |
1027 | ||
1063ebb5 DL |
1028 | 2000-02-12 Dave Love <fx@gnu.org> |
1029 | ||
1030 | * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on | |
1031 | Alpha. | |
1032 | ||
fb07a302 GM |
1033 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
1034 | ||
1035 | * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively. | |
1036 | ||
aaf2320c DL |
1037 | 2000-02-12 Dave Love <fx@gnu.org> |
1038 | ||
1039 | * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc. | |
1040 | ||
1041 | * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h: | |
fb07a302 GM |
1042 | * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h: |
1043 | * s/hpux.h: Don't define HAVE_VFORK. | |
aaf2320c DL |
1044 | |
1045 | * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST. | |
1046 | ||
1047 | * s/nextstep.h: Don't define HAVE_ALLOCA. | |
1048 | ||
1049 | * config.in: Add vfork bits. | |
1050 | ||
eedf8bde GM |
1051 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
1052 | ||
1053 | * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register | |
1054 | unwind function to undo the effect of stopping atimers. | |
1055 | ||
1056 | * keyboard.c (bind_polling_period): Stop all timers except | |
1057 | poll_timer. | |
1058 | ||
1059 | * atimer.c (stopped_atimers): New variable. | |
1060 | (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers): | |
1061 | New functions. | |
1062 | ||
1063 | * atimer.h (stop_other_atimers, run_all_atimers) | |
1064 | (unwind_stop_other_atimers): Add function prototypes. | |
1065 | ||
1066 | * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined. | |
1067 | ||
8476c2f8 KR |
1068 | 2000-02-11 Ken Raeburn <raeburn@gnu.org> |
1069 | ||
1070 | * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff | |
1071 | library may depend on jpeg. | |
1072 | (atimer.o): Depends on atimer.c. | |
1073 | ||
0e85e4a3 KH |
1074 | 2000-02-11 Kenichi Handa <handa@etl.go.jp> |
1075 | ||
1076 | * insdel.c (del_range_1): Call update_compositions. | |
1077 | (del_range_both): Call update_compositions just once.. | |
1078 | ||
97fa0cc8 DL |
1079 | 2000-02-10 Dave Love <fx@gnu.org> |
1080 | ||
1081 | * xfns.c (create_frame_xic): Fix initialization of automatic | |
1082 | aggregates for pcc. | |
1083 | ||
25566a3c KH |
1084 | 2000-02-09 Kenichi Handa <handa@etl.go.jp> |
1085 | ||
1086 | * ccl.c (CCL_MAKE_CHAR): New macro. | |
1087 | (ccl_driver) <CCL_TranslateCharacter>: Check the validity of | |
1088 | registers by CCL_MAKE_CHAR before calling translate_char. | |
1089 | <CCL_TranslateCharacterConstTbl> Likewise. | |
1090 | ||
69da54ba DL |
1091 | 2000-02-08 Dave Love <fx@gnu.org> |
1092 | ||
1093 | * lread.c (__EXTENSIONS__): Define. | |
1094 | ||
f7136ee8 GM |
1095 | 2000-02-08 Gerd Moellmann <gerd@gnu.org> |
1096 | ||
1097 | * puresize.h (BASE_PURESIZE): Increase to 650000. | |
1098 | ||
7768790b EZ |
1099 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
1100 | ||
1101 | * msdos.c (XMenuActivate): Turn off the cursor after displaying | |
1102 | the help message. | |
1103 | ||
38fd211b EZ |
1104 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
1105 | ||
1106 | * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue, | |
1107 | md, mh, mb, mr, and me to the fake termcap entry. | |
1108 | ||
66e4690f KR |
1109 | 2000-02-06 Ken Raeburn <raeburn@gnu.org> |
1110 | ||
1111 | * sound.c (sound_cleanup): Don't call device close routine if the | |
1112 | function pointer is null. | |
1113 | ||
a75dfea0 AI |
1114 | 2000-02-06 Andrew Innes <andrewi@gnu.org> |
1115 | ||
1116 | * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM, | |
1117 | around image definitions and prototypes. | |
1118 | (gamma_correct) [WINDOWSNT]: New prototype. | |
1119 | ||
1120 | * w32term.c (x_make_frame_visible): Replace call to | |
1121 | input_poll_signal with poll_for_input. | |
1122 | ||
1123 | * window.c [WINDOWSNT]: Include w32term.h. | |
1124 | ||
1125 | * xdisp.c [WINDOWSNT]: Include w32term.h. | |
1126 | ||
1127 | * makefile.nt: Add dependencies on w32gui.h. | |
1128 | (OBJ1): Include atimer.obj. | |
1129 | ($(BLD)\atimer.obj): New dependency rule. | |
1130 | ||
1131 | * w32.c (sigmask): New function (does nothing). | |
1132 | (sigunblock): Ditto. | |
1133 | ||
1134 | * frame.c [WINDOWSNT]: Include w32term.h. | |
1135 | ||
1136 | * w32gui.h (struct W32FontStruct): Add ascent and descent slots. | |
1137 | ||
1138 | * lread.c (syms_of_lread): Fix literal newlines. | |
1139 | ||
1140 | * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around | |
1141 | the string constant limit (2048 bytes) in MSVC. | |
1142 | (main): Ditto. | |
1143 | ||
59ddecde GM |
1144 | 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp> |
1145 | ||
1146 | * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit | |
1147 | area. | |
1148 | (x_display_cursor) [HAVE_X_I18N]: Don't set it here. | |
1149 | (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't | |
1150 | dispatch the event. | |
1151 | ||
07590973 DL |
1152 | 2000-02-04 Dave Love <fx@gnu.org> |
1153 | ||
1154 | * fileio.c: Remove some unused vars. | |
1155 | (_GNU_SOURCE): Define (for euidaccess). | |
1156 | ||
1157 | * lread.c (_XOPEN_SOURCE): Declare (for ftello). | |
1158 | ||
1159 | * minibuf.c (read_minibuf_noninteractive): Remove undeclared | |
1160 | gcpro1, gcpro2. | |
1161 | (read_minibuf): Deal with allow_props correctly. | |
1162 | ||
649351f9 EZ |
1163 | 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il> |
1164 | ||
1165 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000. | |
1166 | ||
66e4690f | 1167 | 2000-02-03 Ken Raeburn <raeburn@gnu.org> |
f1b9c7c1 KR |
1168 | |
1169 | * search.c (compile_pattern): If a cache entry has a nil regexp, | |
1170 | fill in that entry instead of clobbering a previously cached | |
1171 | string regexp. | |
1172 | ||
66e4690f | 1173 | 2000-02-02 Ken Raeburn <raeburn@gnu.org> |
15c9cf81 KR |
1174 | |
1175 | * puresize.h (BASE_PURESIZE): Increase to 610000. | |
1176 | ||
d240a249 GM |
1177 | 2000-02-02 Gerd Moellmann <gerd@gnu.org> |
1178 | ||
1179 | * frame.c (Fframe_parameters): Add GCPRO because tty_color_name | |
1180 | can GC. | |
1181 | ||
ca91fb26 KH |
1182 | 2000-02-02 Kenichi Handa <handa@etl.go.jp> |
1183 | ||
25660570 KH |
1184 | * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address |
1185 | instead of incrementing ic directly. | |
1186 | <CCL_WriteExprConst> Likewise. | |
1187 | <ccl_set_expr>: Set ic to jump_address. | |
1188 | ||
ca91fb26 KH |
1189 | * fileio.c (e_write): Fix the handling of |
1190 | CODING_FINISH_INSUFFICIENT_SRC. | |
1191 | ||
2ede9689 DL |
1192 | 2000-02-01 Dave Love <fx@gnu.org> |
1193 | ||
1194 | * editfns.c (Fpropertize): Doc fix. | |
1195 | ||
1196 | * process.c (Fstart_process): Doc fix. | |
1197 | ||
1198 | * eval.c: Fix various doc strings not to duplicate information | |
1199 | from help-manyarg-func-alist. | |
1200 | ||
1201 | * window.c (Fset_window_margins): Don't make interactive. Doc | |
1202 | fix. | |
1203 | ||
1204 | * doc.c (Vhelp_manyarg_func_alist): New variable. | |
1205 | (Fdocumentation): Use it. | |
1206 | (syms_of_doc): Define it. | |
1207 | ||
b6680a0e GM |
1208 | 2000-01-31 Gerd Moellmann <gerd@gnu.org> |
1209 | ||
2cb750ba GM |
1210 | * xterm.c (xim_open_dpy): Remove unused local variable. |
1211 | ||
74e9213b GM |
1212 | * emacs.c (USAGE): Use term `display options' instead of `X |
1213 | options'. | |
1214 | ||
1215 | * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function. | |
1216 | (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it. | |
1217 | ||
b6680a0e GM |
1218 | * fns.c (sweep_weak_table): New function. |
1219 | (sweep_weak_hash_tables): Use it. Keep on marking until there | |
1220 | is no more change. | |
1221 | ||
994c5afe GM |
1222 | 2000-01-30 Gerd Moellmann <gerd@gnu.org> |
1223 | ||
1224 | * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure | |
1225 | that XTread_socket does not crash by trying to call XNoOp on a | |
1226 | closed display. | |
1227 | ||
f00276e3 JR |
1228 | 2000-01-30 Jason Rumney <jasonr@gnu.org> |
1229 | ||
1230 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
1231 | Change selected_frame to SELECTED_FRAME (). | |
1232 | (w32_console_mouse_position): Remove #ifndef MULE from around | |
1233 | `insist' parameter. | |
1234 | ||
1235 | * makefile.nt: Remove dosfns.obj. | |
1236 | ||
1237 | * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors. | |
1238 | ||
1239 | * w32fns.c (w32_defined_color): Check for valid frame before | |
1240 | applying gamma correction. Eliminate dependency on frame elsewhere. | |
1241 | (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH. | |
1242 | (w32_to_x_font): Use resx and resy not height_in and width_in. | |
1243 | (x_to_w32_font): Doc fix. | |
1244 | (xlfd_strip_height): New function to strip and return font height. | |
1245 | (w32_font_match): Compare height separately from rest of xlfd | |
1246 | spec, using xlfd_strip_height. | |
1247 | ||
1248 | * w32term.c (w32_term_init): Swap resx and height_in, resy and | |
1249 | width_in. Use w32_defined_color in place of defined_color. | |
1250 | ||
1251 | * w32faces.c: Merge more of DOS and X specifics in preparation for | |
1252 | merge with xfaces.c. | |
1253 | (defined_color): Remove FIXME comment. | |
1254 | (tty_color_name): Provide w32-specific function. | |
1255 | (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially. | |
1256 | ||
1257 | * w32console.c (turn_on_face, turn_off_face): Removed. | |
1258 | (w32_face_attributes): New function. | |
1259 | (Global_variables): Reduce scope where possible. | |
1260 | (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as | |
1261 | fill attribute. | |
1262 | (hl_mode): Don't modify text attributes. | |
1263 | (write_glyphs): Don't do anything if len <= 0. Use | |
1264 | w32_face_attributes to get attributes for drawing. Write | |
1265 | terminating codes using char_attr_normal. | |
1266 | (reset_terminal_modes, set_terminal_modes): Turn off highlight. | |
1267 | (update_begin, update_end): Likewise. | |
1268 | (vga_stdcolor_name): New function. | |
1269 | (initialize_w32_display): Remove char_attr_reverse and char_attr. | |
1270 | (Fset_screen_color): Remove char_attr_reverse. | |
1271 | ||
b08e8bb2 GM |
1272 | 2000-01-29 Gerd Moellmann <gerd@gnu.org> |
1273 | ||
1274 | * xfns.c (xic_set_preeditarea): Take window parameter and | |
1275 | window-relative pixel-positions. | |
1276 | ||
1277 | * xterm.c (x_display_cursor): Set XIC pre-edit area only if window | |
1278 | is its frame's selected window. | |
1279 | (xim_instantiate_callback): Likewise. | |
1280 | ||
1281 | * xfns.c (x_create_im): Removed. | |
1282 | (DEFAULT_STYLE, DEFAULT_FONT): Removed. | |
1283 | (supported_xim_styles): Renamed from supported_styles. | |
1284 | (best_xim_style): Renamed from best_style. | |
1285 | (create_frame_xic): Renamed from xic_create_frame. | |
1286 | (free_frame_xic): Renamed from xic_destroy_frame. | |
1287 | ||
1288 | 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp> | |
1289 | ||
1290 | * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of | |
1291 | our frames, call XFilterEvent with 2nd parameter `None'. | |
1292 | (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString | |
1293 | returning XBufferOverflow. | |
1294 | (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status | |
1295 | area. | |
1296 | (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area. | |
1297 | (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset. | |
1298 | (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback) | |
1299 | (xim_initialize, xim_close) | |
1300 | [HAVE_X_I18N && HAVE_X11R6]: New functions. | |
1301 | (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame. | |
1302 | (x_term_init) [HAVE_X_I18N]: Call xim_initialize. | |
1303 | (x_delete_display) [HAVE_X_I18N]: Call xim_close. | |
1304 | ||
1305 | * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim' | |
1306 | and `xim_styles'. | |
1307 | (struct x_output) [HAVE_X_I18N]: Remove member `xim', add | |
1308 | `xic_style' and `xic_xfs'. | |
1309 | (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES) | |
1310 | (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros. | |
1311 | (FRAME_XIM): Removed. | |
1312 | ||
1313 | * xfns.c (supported_styles): New variable. | |
1314 | (DEFAULT_STYLE, DEFAULT_FONT): New macros | |
1315 | (xic_create_xfontset, best_style, xic_create_frame) | |
1316 | (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea) | |
1317 | (xic_set_xfontset): New functions. | |
1318 | ||
142e109c DL |
1319 | 2000-01-28 Dave Love <fx@gnu.org> |
1320 | ||
1321 | * s/irix6-5.h: Revert last change after change to irix5-0.h. | |
1322 | ||
1323 | * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0. | |
1324 | ||
b02786f9 GM |
1325 | 2000-01-28 Gerd Moellmann <gerd@gnu.org> |
1326 | ||
d060bc9f GM |
1327 | * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode |
1328 | for *scratch* if it already existed. | |
1329 | ||
b02786f9 GM |
1330 | * emacs.c (USAGE): New macro. |
1331 | (main): Use it to display usage information. | |
1332 | ||
2c52d7e4 EZ |
1333 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
1334 | ||
1335 | Support for the menu-help feature: | |
1336 | ||
1337 | * msdos.h: Change prototypes of XMenuAddSelection and | |
1338 | XMenuActivate. | |
1339 | ||
1340 | * msdos.c (IT_clear_end_of_line): Print the extent of the cleared | |
1341 | part of the line to the termscript file. | |
1342 | (IT_clear_to_end): Clear the entire line, not just its beginning. | |
1343 | (menu_help_message, prev_menu_help_message): New variables. | |
1344 | (IT_menu_make_room): Make room for the help_text member. | |
1345 | (IT_menu_display): New argument disp_help; all callers changed. | |
1346 | If disp_help is non-zero, store the help text of the active menu | |
1347 | item in menu_help_message. | |
1348 | (XMenuAddPane): Initialize the help_text member to NULL. | |
1349 | (XMenuAddSelection): New argument help_text. Store it in the | |
1350 | XMenu structure. | |
1351 | (XMenuActivate): New argument help_callback. If the value of | |
1352 | menu_help_message has changed since the last time, display the | |
1353 | menu help message text while waiting for the mouse to move. Clear | |
1354 | the echo area before exiting. | |
1355 | (XMenuDestroy): Free the help_text member. | |
1356 | ||
ffe0bcd1 GM |
1357 | 2000-01-27 Gerd Moellmann <gerd@gnu.org> |
1358 | ||
1359 | * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to | |
1360 | XMenuAddSelection. Pass help callback to XMenuActivate. | |
1361 | (menu_help_callback) [!USE_X_TOOLKIT]: New function. | |
1362 | ||
50dbd23f EZ |
1363 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
1364 | ||
1365 | * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS | |
1366 | and EMACS_SET_USECS. | |
1367 | ||
f5941bf8 GM |
1368 | 2000-01-26 Dave Love <fx@gnu.org> |
1369 | ||
6c67ddee DL |
1370 | * editfns.c (Fchar_after, Fchar_before): Doc fix. |
1371 | ||
f5941bf8 GM |
1372 | * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where |
1373 | an error may be signalled. | |
1374 | ||
9e49c990 GM |
1375 | 2000-01-26 Gerd Moellmann <gerd@gnu.org> |
1376 | ||
fc3cb460 GM |
1377 | * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef |
1378 | LD_SWITCH_SYSTEM inherited from irix5-0.h. | |
1379 | ||
9e49c990 GM |
1380 | * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo. |
1381 | ||
d0c037d8 GM |
1382 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
1383 | ||
1384 | * charset.c (Fstring): If there is a multibyte char among | |
1385 | the args, always return a multibyte string. | |
1386 | ||
e12489f9 GM |
1387 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
1388 | ||
1389 | * sysdep.c (sys_select): Turn atimers off and on instead of | |
1390 | recording and restoring old alarm handler | |
1391 | ||
1392 | * process.c (toplevel): Include atimer.h. | |
1393 | (create_process_1): Rewritten. | |
1394 | (create_process): Use atimers instead of alarm. | |
1395 | (wait_reading_process_input) [hpux]: Turn atimers off instead | |
1396 | of turning off SIGALRM. | |
1397 | (wait_reading_process_input): Turn off atimers instead off | |
1398 | calling stop_polling. | |
1399 | ||
1400 | * emacs.c (main): Call init_atimer. | |
1401 | ||
1402 | * keyboard.c (toplevel): Include systime.h and atimer.h. | |
1403 | (polling_for_input): Removed because unused. | |
1404 | (input_poll_signal) [POLL_FOR_INPUT]: Removed. | |
1405 | (poll_timer): New variable. | |
1406 | (poll_for_input, poll_for_input_1): New functions. | |
1407 | (start_polling, stop_polling): Rewritten. | |
1408 | ||
1409 | * keyboard.h (polling_for_input): Removed. | |
1410 | ||
1411 | * atimer.h, atimer.c: New files. | |
1412 | ||
1413 | * Makefile.in (obj): Add atimer.o. | |
1414 | (atimer.o): New target. | |
1415 | ||
1416 | * blockinput.h (pending_atimers): Add extern declaration. | |
1417 | (UNBLOCK_INPUT): Rewritten. Handle pending atimers. | |
1418 | ||
1419 | * lisp.h (popup_activated_flag): Add extern declaration. | |
1420 | ||
1421 | * xmenu.c (popup_activated_flag): Make externally visible. | |
1422 | (popup_activate_callback) [USE_MOTIF]: Increment | |
1423 | popup_activated_flag. | |
1424 | (popup_deactivate_callback) [USE_MOTIF]: Decrement it. | |
1425 | ||
1426 | * xterm.c (toplevel): Include atimer.h. | |
1427 | (toolkit_scroll_bar_interaction): New variable. | |
1428 | (Fxt_process_timeouts): Removed. | |
1429 | (x_process_timeouts): New function. | |
1430 | (xt_action_hook): Clear toolkit_scroll_bar_interaction. | |
1431 | (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction. | |
1432 | (x_make_frame_visible): Call poll_for_input_1 instead of | |
1433 | input_poll_signal. Don't call alarm. | |
1434 | (x_initialize): Install timer calling x_process_timeouts. | |
1435 | ||
1e5279b9 DL |
1436 | 2000-01-24 Dave Love <fx@gnu.org> |
1437 | ||
6c67ddee | 1438 | * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now. |
1e5279b9 DL |
1439 | Don't use -cckr -- apparently not now necessary. |
1440 | ||
edf6aeb8 EZ |
1441 | 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il> |
1442 | ||
1443 | * msdos.c (IT_menu_display): Truncate long menu lines at the right | |
1444 | screen boundary. | |
1445 | ||
9badad41 JR |
1446 | 2000-01-23 Jason Rumney <jasonr@gnu.org> |
1447 | ||
1448 | * w32fns.c (w32_defined_color): Apply gamma correction before | |
1449 | trying to map to the palette. | |
1450 | (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame | |
1451 | to w32_clear_rect. | |
1452 | ||
1453 | * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc | |
1454 | here. Callers changed to always pass real device context. | |
1455 | (w32_draw_bitmap): Likewise. | |
1456 | (w32_get_glyph_overhangs): Likewise. | |
1457 | (w32_draw_box_rect): Make use of s->hdc rather than getting a new | |
1458 | one. | |
1459 | (w32_set_vertical_scroll_bar): Pass correct HWND parameters to | |
1460 | pfnSetScrollInfo and SetScrollRange. | |
1461 | (x_get_char_face_and_encoding): Don't turn iso8859-1 characters | |
1462 | back into MULE characters after decoding them. | |
1463 | (x_get_glyph_face_and_encoding): Likewise. | |
1464 | (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when | |
1465 | GetCharABCWidthsW fails, since this is defined on Windows 9x. | |
1466 | (x_produce_glyphs): Calculate per char metrics for a character | |
1467 | that we know exists in default font when font_not_found_p is true. | |
1468 | ||
63bd786b JR |
1469 | 2000-01-22 Jason Rumney <jasonr@gnu.org> |
1470 | ||
1471 | * makefile.nt (intervals.obj, composite.obj): New modules. | |
1472 | (composite.h): Added as dependency where appropriate. | |
1473 | ||
1474 | * w32gui.h (XGCValue): New struct for emulating X GCs. | |
1475 | ||
1476 | * w32term.h (XCharStruct): New struct for emulating X. | |
1477 | ||
1478 | * w32console.c (turn_on_face, turn_off_face): New functions. | |
1479 | (change_line_highlight): New prototype for new redisplay. | |
1480 | (write_glyphs): Support multibyte text. Support faces. | |
1481 | ||
1482 | * w32faces.c: Complete rewrite for new redisplay based on new | |
1483 | xfaces.c. | |
1484 | ||
1485 | * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame | |
1486 | throughout. struct frame * in place of FRAME_PTR. | |
1487 | Skeleton support for images, toolbars, tooltips from xfns.c. | |
1488 | (Fx_create_frame): Use system default for default scroll bar | |
1489 | width. | |
1490 | (w32_get_arg): Renamed from x_get_arg. | |
1491 | (Fx_file_dialog): New function. | |
1492 | (w32_list_fonts): Check cache before asking system. | |
1493 | (Vw32_enable_synthesized_fonts): New variable. | |
1494 | (Vw32_enable_italics): Obsolete, removed. | |
1495 | ||
1496 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
1497 | Use SELECTED_FRAME macro. | |
1498 | ||
1499 | * w32menu.c: Add skeleton support for help strings on menus. | |
1500 | (add_menu_item): Native checkbox and radio support added, but not | |
1501 | yet enabled due to bugs. | |
1502 | (push_menu_item): Add parameters type, selection and help. | |
1503 | Callers updated. | |
1504 | Formatting changes to reduce unnecessary diffs with xmenu.c. | |
1505 | ||
1506 | * w32select.c (Fw32_set_clipboard_data): Update call to | |
1507 | find_charset_in_str. | |
1508 | ||
1509 | * w32term.c: Complete rewrite for new redisplay based on new | |
1510 | xterm.c with necessary sections merged back in from old w32term.c. | |
1511 | ||
6ffd3cf7 | 1512 | 2000-01-21 Richard M. Stallman <rms@gnu.org> |
b50c9214 RS |
1513 | |
1514 | * data.c (set_internal): Further fix in same criterion. | |
1515 | ||
6ffd3cf7 | 1516 | 2000-01-20 Richard M. Stallman <rms@gnu.org> |
8cc95642 RS |
1517 | |
1518 | * data.c (set_internal): Fix the criteria for whether | |
1519 | to swap out the old cached binding. | |
1520 | ||
60af03f1 DL |
1521 | 2000-01-19 Dave Love <fx@gnu.org> |
1522 | ||
1523 | * lread.c: (syms_of_lread) [user-init-file]: Doc change. | |
1524 | ||
f9be074f KH |
1525 | 2000-01-18 Kenichi Handa <handa@etl.go.jp> |
1526 | ||
1527 | * regex.c (re_compile_fastmap): While checking a range table for | |
1528 | `charset', skip flag bits for a character class correctly. | |
1529 | ||
52b8dbf9 GM |
1530 | 2000-01-17 Gerd Moellmann <gerd@gnu.org> |
1531 | ||
d36100c9 GM |
1532 | * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC. |
1533 | ||
52b8dbf9 GM |
1534 | * xfns.c (x_window): Call lw_create_widget with new parameter |
1535 | list. | |
1536 | ||
1537 | * widget.c (EmacsFrameSetCharSize): Change size of children first | |
1538 | because of problems with main window geometry management under | |
1539 | Lesstif. | |
1540 | ||
1541 | * xmenu.c (enum menu_item_idx): New enumeration replacing defines | |
1542 | MENU_ITEMS_ITEM_.*. | |
1543 | (MENU_ITEMS_ITEM_HELP): New enumerator. | |
1544 | (push_menu_item): Add parameter HELP. Record help in menu_items. | |
1545 | (single_menu_item, single_submenu, list_of_items): Call | |
1546 | push_menu_item with new parameter. | |
1547 | (single_submenu): Set help string in widget value. | |
1548 | (menu_highlight_callback): New function. | |
1549 | (set_frame_menubar): Call lw_create_widget with new | |
1550 | parameter list. | |
1551 | (xmenu_show, xdialog_show): Ditto. | |
1552 | ||
3139018f GM |
1553 | 2000-01-13 Gerd Moellmann <gerd@gnu.org> |
1554 | ||
1555 | * sound.c (Fplay_sound): Improve doc string. | |
1556 | ||
83c8f461 RS |
1557 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
1558 | ||
1559 | * lisp.h (set_internal): Enter the new arg. | |
1560 | ||
1561 | * eval.c (specbind): Record buffer-local variables specially, | |
1562 | indicating which buffer's binding was saved. | |
1563 | (unbind_to): Restore buffer-local variables specially | |
1564 | in the proper buffer. | |
1565 | ||
1566 | * data.c (set_internal): New arg BUF. | |
1567 | ||
1568 | * eval.c (specbind, unbind_to): Pass new arg to set_internal. | |
1569 | * data.c (Fset): Pass new arg to set_internal. | |
1570 | * bytecode.c (Fbyte_code): Pass new arg to set_internal. | |
1571 | ||
1fab1775 GM |
1572 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
1573 | ||
1574 | * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, | |
1575 | xprintsym. | |
1576 | ||
83c8f461 | 1577 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
6f59462e RS |
1578 | |
1579 | * minibuf.c (Ftry_completion): Doc fix. | |
1580 | ||
7a85e4df GM |
1581 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
1582 | ||
1583 | * keyboard.c (Fclear_this_command_keys): Clear recent_keys | |
1584 | vector, too. | |
1585 | ||
a970dae4 AS |
1586 | 2000-01-11 Andreas Schwab <schwab@suse.de> |
1587 | ||
1588 | * coding.c (code_convert_region): Initialize total_skip. | |
1589 | ||
c65d14ee DL |
1590 | 2000-01-08 Dave Love <fx@gnu.org> |
1591 | ||
1592 | * eval.c (Fuser_variable_p): Check customizability too. | |
1593 | ||
834938d2 GM |
1594 | 2000-01-07 Gerd Moellmann <gerd@gnu.org> |
1595 | ||
1596 | * minibuf.c (Fcompleting_read): Doc fix. | |
1597 | ||
e0303cd6 GM |
1598 | 2000-01-05 Gerd Moellmann <gerd@gnu.org> |
1599 | ||
8a26744b GM |
1600 | * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and |
1601 | -L /usr/local/lib. | |
1602 | ||
e0303cd6 GM |
1603 | * xfns.c (x_create_im): New function to set IM and IC of a frame. |
1604 | Check that input style is supported before trying to create an | |
1605 | IC for it. | |
1606 | (x_window): Call x_create_im. | |
1607 | ||
2e471eb5 GM |
1608 | 2000-01-04 Gerd Moellmann <gerd@gnu.org> |
1609 | ||
560a7bd2 GM |
1610 | * xfns.c (current_gif_memory_src): New variable. |
1611 | (gif_load): Record the address of the current memory source | |
1612 | in current_gif_memory_src. | |
1613 | (gif_read_from_memory): Use current_gif_memory_src. | |
1614 | ||
f9ee84a3 GM |
1615 | * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give |
1616 | macros statement form. | |
1617 | ||
d1299cde GM |
1618 | * sound.c (struct sound): Renamed from struct sound_file. |
1619 | (struct sound): Add members `data' and `header_size'. | |
1620 | (enum sound_attr): Add SOUND_DATA. | |
1621 | (current_sound, current_sound_device): Variables renamed from | |
1622 | sound_file and sound_device. | |
1623 | (parse_sound): Parse :data. | |
1624 | (parse_sound): Handle sound data in strings. | |
1625 | (find_sound_type): Function renamed from find_sound_file_type. | |
1626 | (wav_init, au_init): Fail if sound's header_size is smaller than | |
1627 | needed header size. | |
1628 | (wav_play, au_play): Play sounds from string data. | |
1629 | ||
2e471eb5 GM |
1630 | * puresize.h (BASE_PURE_SIZE): Increase to 600000. |
1631 | ||
1632 | * lisp.h: Add prototype for allocate_string_data. | |
1633 | ||
1634 | * alloc.c (Fgarbage_collect): Return number of live and free | |
1635 | strings. | |
1636 | ||
1637 | * alloc.c (mark_buffer): Remove code in #if 0. | |
1638 | (gc_sweep): Ditto. | |
1639 | (UNMARK_BALANCE_INTERVALS): Give the macro statement form. | |
1640 | (strings_consed): New variable. | |
1641 | (allocate_string): Set it. | |
1642 | (syms_of_alloc): Add DEFVAR_INT for strings_consed. | |
1643 | (Fmemory_use_counts): Return strings_consed. Use Flist. | |
1644 | ||
1645 | * alloc.c: General cleanup in comments etc. Remove conditional | |
1646 | compilation for `standalone'. | |
1647 | ||
1648 | * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'. | |
1649 | ||
1650 | * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): | |
1651 | (GC_STRING_BYTES, GC_STRING_CHARS): New macros. | |
1652 | (DONT_COPY_FLAG): Removed. | |
1653 | (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros. | |
1654 | (struct sdata, struct sblock): New | |
1655 | (struct string_block): Rewritten. | |
1656 | (STRINGS_IN_STRING_BLOCK): New macro. | |
1657 | (oldest_sblock, current_sblock, total_strings, total_free_strings) | |
1658 | (large_sblocks, string_blocks, string_free_list): New variables. | |
1659 | (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros. | |
1660 | (init_strings): Rewritten. | |
1661 | (allocate_string, allocate_string_data, compact_small_strings) | |
1662 | (free_large_strings, sweep_strings): New functions. | |
1663 | (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE) | |
1664 | (struct string_block_head, current_string_block) | |
1665 | (first_string_block, large_string_blocks, STRING_FULLSIZE) | |
1666 | (STRING_PAD): Removed. | |
1667 | (make_uninit_multibyte_string, make_pure_string): Rewritten. | |
1668 | (Fgarbage_collect): Don't set mark bit in large strings. | |
1669 | (mark_object): Mark strings differently. Mark symbol names | |
1670 | differently. | |
1671 | (survives_gc_p): Test marked strings differently. | |
1672 | (gc_sweep): Sweep strings differently, unmark strings in | |
1673 | symbol names. | |
1674 | (compact_strings): Removed. | |
1675 | ||
42608ba8 EZ |
1676 | 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il> |
1677 | ||
1678 | * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and | |
1679 | Scolor_supported_p even if HAVE_X_WINDOWS is not defined. | |
1680 | ||
e0a09e1a KH |
1681 | 2000-01-04 Kenichi Handa <handa@etl.go.jp> |
1682 | ||
dd9f0750 KH |
1683 | * fileio.c (Finsert_file_contents): Signal error if visiting file |
1684 | in a non-empty buffer. | |
1685 | ||
3c0f3b15 | 1686 | * term.c (encode_terminal_code): Fix the previous change. |
e0a09e1a | 1687 | |
44cd3ae5 GM |
1688 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
1689 | ||
1690 | * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to | |
1691 | Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p. | |
1692 | ||
1693 | * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU. | |
1694 | ||
c182a70f EZ |
1695 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
1696 | ||
1697 | * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No | |
1698 | need to test for MSDOS frames. | |
1699 | ||
24480d5b EZ |
1700 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
1701 | ||
1702 | * dosfns.c (unspecified_colors): Remove. | |
1703 | (msdos_stdcolor_idx): Use global variables unspecified_fg and | |
1704 | unspecified_bg. | |
1705 | (msdos_stdcolor_name): Return strings for unspecified fore- and | |
1706 | back-ground colors. | |
1707 | ||
1708 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove. | |
aaf2320c | 1709 | (syms_of_xfaces): Remove their staticpro's. |
24480d5b EZ |
1710 | (tty_color_name): Return Lisp strings for unspecified fore- and |
1711 | back-ground colors. | |
1712 | (Finternal_set_lisp_face_attribute): Remove the special treatment | |
1713 | for Qunspecified_{f,b}g. | |
1714 | (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp | |
1715 | string. | |
1716 | ||
047f434a GM |
1717 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
1718 | ||
1719 | * xdisp.c (reseat_at_next_visible_line_start): Position before | |
1720 | newline only if ending up on a newline. | |
1721 | (next_element_from_ellipsis): Return success. Handle case of | |
1722 | displaying no ellipsis. Fix case of ellipsis defined in display | |
1723 | table. | |
1724 | (next_element_from_buffer): Return 0 if next_element_from_ellipsis | |
1725 | returns 0. | |
1726 | ||
d684c676 EZ |
1727 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
1728 | ||
1729 | * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p. | |
1730 | (Fcolor_supported_p): Renamed from face-color-supported-p. | |
1731 | ||
5fe1d139 EZ |
1732 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
1733 | ||
1734 | * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The | |
1735 | list of colors renamed to tty-defined-color-alist. | |
1736 | (tty_color_name): Pass the frame to tty-color-by-index. | |
1737 | (realize_tty_face): tty-color-alist is now a function which | |
1738 | accepts the frame as argument. | |
1739 | ||
1740 | * term.c (Ftty_display_color_p): Accept an optional argument | |
1741 | FRAME. | |
1742 | ||
816be8b8 EZ |
1743 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
1744 | ||
1745 | * term.c (insert_glyphs): Pass glyph, not &glyph, to | |
1746 | encode_terminal_code. | |
1747 | ||
b635321e EZ |
1748 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
1749 | ||
1750 | * dispnew.c (mode_line_string): Support termcap frames as well. | |
1751 | ||
9b784e96 GM |
1752 | 2000-01-01 Gerd Moellmann <gerd@gnu.org> |
1753 | ||
27189709 GM |
1754 | * syntax.c (Fforward_word): Undo previous change. |
1755 | ||
1756 | * editfns.c (Fconstrain_to_field): Don't constrain if | |
1757 | inhibit-field-text-motion is non-nil. | |
1758 | (Fline_beginning_position): Undo previous change. | |
1759 | (Fline_end_position): Ditto. | |
1760 | ||
1761 | * syntax.c (Fforward_word): Notice field boundaries only if | |
1762 | inhibit-field-text-motion is nil. | |
1763 | ||
1764 | * lisp.h: Add extern declaration for Vinhibit_field_text_motion. | |
1765 | ||
1766 | * editfns.c (Vinhibit_field_text_motion): New variable. | |
1767 | (inhibit-field-text-motion): New DEFVAR_LISP. | |
1768 | (Fline_beginning_position, Fline_end_position): Notice field | |
1769 | boundaries only if inhibit-field-text-motion is nil. | |
1770 | ||
45158a91 GM |
1771 | * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE. |
1772 | All calls adjusted. | |
1773 | (x_build_heuristic_mask): Likewise. | |
1774 | (xbm_load_image_from_file): Change error output. | |
1775 | (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load) | |
1776 | (gif_load, gs_load, x_kill_gs_process): Ditto. | |
1777 | ||
9b784e96 GM |
1778 | * xfns.c (gif_load): Avoid sign extension and thus out of bounds |
1779 | color indices when accessing raster pixels. | |
63cec32f GM |
1780 | (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only |
1781 | one of :file or :data. | |
1782 | (enum pbm_keyword_index): Add PBM_DATA. | |
1783 | (pbm_format): Add :data. | |
1784 | (pbm_image_p): Allow either :file or :data. | |
1785 | (pbm_read_file): New function. | |
1786 | (pbm_scan_number): Rewritten to read from string. | |
1787 | (pbm_load): Support :data. | |
9b784e96 | 1788 | |
5ad6a5fb GM |
1789 | 1999-12-31 Gerd Moellmann <gerd@gnu.org> |
1790 | ||
1791 | * xfns.c: New image functions adapted to Emacs conventions. | |
1792 | (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local | |
1793 | variable `file'. | |
1794 | ||
63448a4d WP |
1795 | 1999-12-31 William M. Perry <wmperry@aventail.com> |
1796 | ||
1797 | * xfns.c (jpeg_format): Added the :data keyword | |
1798 | (jpeg_image_p): JPEG is valid with :file _or_ :data | |
1799 | (jpeg_memory_src): Defined new JPEG image source to read from a | |
1800 | memory buffer. | |
1801 | (jpeg_load): Pay attention to the :data keyword if specified. | |
1802 | Instantiates a jpeg_memory_src instead of jpeg_stdio_src if | |
1803 | found. | |
1804 | (png_format): Added the :data keyword | |
1805 | (png_image_p): PNG is valid with :file _or_ :data | |
1806 | (png_read_from_memory): New PNG read function to read from a | |
1807 | memory buffer. | |
1808 | (png_load): Pay attention to the :data keyword if specified. Uses | |
1809 | png_set_read_fn() instead of png_init_io() if specified. | |
1810 | (tiff_format): Added the :data keyword for TIFF images. | |
1811 | (tiff_image_p): TIFF is valid with :file _or_ :data | |
1812 | (tiff_read_from_memory): Defined new TIFF I/O functions to read | |
1813 | from a memory buffer. | |
1814 | (tiff_load): Pay attention to the :data keyword if specified. | |
1815 | Uses TIFFClientOpen() instead of TIFFOpen() if specified. | |
1816 | (gif_format): Added the :data keyword | |
1817 | (gif_image_p): GIF is valid with :file _or_ :data | |
1818 | (gif_read_from_memory): New GIF input function to read from a | |
1819 | memory buffer. | |
c65d14ee | 1820 | (gif_load): Pay attention to the :data keyword. Uses DGifOpen() |
63448a4d WP |
1821 | instead of DGifOpenFileName() if specified. |
1822 | ||
c880678e GM |
1823 | 1999-12-31 Gerd Moellmann <gerd@gnu.org> |
1824 | ||
1825 | * xdisp.c (next_element_from_buffer): Change assertion at the end | |
1826 | because it doesn't hold when there's an overlay string at the end | |
1827 | from which we deliver an image. | |
1828 | ||
8ccb9a54 EZ |
1829 | 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il> |
1830 | ||
1831 | * msdos.c (IT_update_begin): Don't dereference members of struct | |
1832 | window for deleted windows. | |
1833 | ||
12ce2351 GM |
1834 | 1999-12-30 Gerd Moellmann <gerd@gnu.org> |
1835 | ||
a915c648 GM |
1836 | * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only |
1837 | a hook, and the hook has a non-nil `no-self-insert' property, let | |
1838 | the return value of the hook specify whether an expansion took | |
1839 | place. If it returns nil, no expansion has been performed. | |
1840 | ||
12ce2351 GM |
1841 | * xterm.c (x_make_frame_visible): Wait for frame becoming visible |
1842 | differently. | |
1843 | ||
04ee4f45 EZ |
1844 | 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il> |
1845 | ||
1846 | * msdos.c (IT_write_glyphs): Track last changes to struct glyph. | |
1847 | ||
7f4bc0c3 EZ |
1848 | 1999-12-29 Eli Zaretskii <eliz@is.elta.co.il> |
1849 | ||
1850 | * dispnew.c (mode_line_string): Support MS-DOS frames. | |
1851 | ||
dac204bc GM |
1852 | 1999-12-29 Gerd Moellmann <gerd@gnu.org> |
1853 | ||
1854 | * eval.c (syms_of_eval): Initialize debugger_may_continue. | |
1855 | ||
7b712ad8 KH |
1856 | 1999-12-29 Kenichi Handa <handa@etl.go.jp> |
1857 | ||
1858 | * process.c (read_process_output): Fix the args CHARPOS and LENINS | |
1859 | to signal_after_change. | |
1860 | ||
adb9900f EZ |
1861 | 1999-12-28 Eli Zaretskii <eliz@is.elta.co.il> |
1862 | ||
41ad069b EZ |
1863 | * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame |
1864 | dimensions changed, invalidate the mouse highlight info. | |
1865 | (disable_mouse_highlight, help_echo, previous_help_echo): New | |
1866 | variables. | |
1867 | (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face) | |
1868 | (fast_find_position, IT_note_mode_line_highlight) | |
1869 | (IT_note_mouse_highlight): New functions. | |
1870 | (IT_update_begin): If the redisplay affects the window where the | |
1871 | mouse highlight is, clear the highlight. If the frame where the | |
1872 | highlight was displayed was killed, invalidate the highlight | |
1873 | info. | |
1874 | (IT_update_end): Reset the highlight flag. Reset the mouse | |
1875 | highlight-defer flag. | |
1876 | (IT_frame_up_to_date): New function, if mouse highlight was | |
1877 | deferred due to GC, do it now. | |
1878 | (internal_terminal_init): Initialize mouse-highlight related | |
1879 | members of the_only_x_display. Assign IT_frame_up_to_date to | |
1880 | frame_up_to_date_hook. | |
1881 | (dos_rawgetc): If the mouse moved, update mouse highlight. If | |
1882 | help_echo changed value, generate a HELP_EVENT event. | |
1883 | (syms_of_msdos): Staticpro help_echo and previous_help_echo. | |
1884 | ||
adb9900f EZ |
1885 | * msdos.h (struct display_info): New. |
1886 | (struct x_output): Add the display_info member. | |
1887 | (FRAME_X_DISPLAY_INFO): New macro. | |
1888 | ||
481b5054 GM |
1889 | 1999-12-28 Gerd Moellmann <gerd@gnu.org> |
1890 | ||
1891 | * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED | |
1892 | if MODIFF > 1. | |
6448a6b3 | 1893 | (dump_glyph_row): Adapt to changes in struct glyph. |
481b5054 GM |
1894 | |
1895 | * buffer.c (modify_overlay): Always compute unchanged info. | |
1896 | ||
a2882b0d KH |
1897 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
1898 | ||
1899 | * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'. | |
1900 | ||
89ba5b5f KH |
1901 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
1902 | ||
1903 | The following changes are to use more bits for face IDs. | |
1904 | ||
1905 | * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the | |
1906 | lowest 8 bits are single byte character code, the bits above are | |
1907 | face ID. | |
481b5054 | 1908 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change |
89ba5b5f | 1909 | above. |
481b5054 GM |
1910 | (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise. |
1911 | (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted. | |
89ba5b5f KH |
1912 | |
1913 | * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead | |
1914 | of GLYPH_MASK_CHAR. | |
1915 | ||
1916 | * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead | |
1917 | of GLYPH_MASK_CHAR. | |
1918 | ||
1919 | * dispextern.h (struct glyph): Make face_id and padding_p the top | |
1920 | level members. Change members in union `u'. | |
1921 | (GLYPH_EQUAL_P): Check also members face_id and padding_p. | |
1922 | (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro. | |
1923 | (SET_CHAR_GLYPH): Adjusted for the change of struct glyph. | |
1924 | (CHAR_GLYPH_PADDING_P): Likewise. | |
1925 | (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte | |
1926 | characters. | |
1927 | ||
481b5054 | 1928 | * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted |
89ba5b5f KH |
1929 | for the change of struct glyph. |
1930 | (line_draw_cost): Adjusted for the change of | |
1931 | GLYPH_FROM_CHAR_GLYPH. | |
1932 | (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P. | |
1933 | ||
1934 | * term.c (encode_terminal_code): Adjusted for the change of struct | |
1935 | glyph and GLYPH_FROM_CHAR_GLYPH. | |
481b5054 | 1936 | (write_glyphs, insert_glyphs, append_glyph): Adjusted for the |
89ba5b5f KH |
1937 | change of struct glyph. |
1938 | ||
1939 | * xdisp.c: All codes adjusted for the change of struct glyph. | |
1940 | ||
1941 | * xterm.c: All codes adjusted for the change of struct glyph. | |
1942 | ||
5bcd116c KH |
1943 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
1944 | ||
1945 | * composite.h (struct composition): Change the order of declaring | |
1946 | members to reduce the byte size of the structure. | |
1947 | ||
f21b06b7 GM |
1948 | 1999-12-25 Gerd Moellmann <gerd@gnu.org> |
1949 | ||
1950 | * search.c (looking_at_1): Reset immediate_quit before modifying | |
1951 | global data. | |
1952 | ||
e36557c9 KH |
1953 | 1999-12-24 Kenichi Handa <handa@etl.go.jp> |
1954 | ||
1955 | * process.c (read_process_output): Fix the arg FROM to | |
1956 | update_compositions. | |
1957 | ||
83c8f461 | 1958 | 1999-12-22 Richard M. Stallman <rms@gnu.org> |
f7c9e039 RS |
1959 | |
1960 | * search.c (Freplace_match): For nonliteral replacement in buffer, | |
1961 | construct all the new text first, then insert all at once. | |
1962 | ||
0b863bd9 DL |
1963 | 1999-12-22 Dave Love <fx@gnu.org> |
1964 | ||
1965 | * xfns.c (Fx_show_tip): Gcpro `timeout' too. | |
1966 | ||
6d8e8ef3 GM |
1967 | 1999-12-22 Gerd Moellmann <gerd@gnu.org> |
1968 | ||
28d7281d GM |
1969 | * xfns.c (Fx_create_frame): Move x_default_parameter calls that |
1970 | lead to size changes to after the X window has been created. | |
1971 | ||
e22ef6eb | 1972 | * xfaces.c (realize_x_face): Don't use uninitialized local |
6d8e8ef3 GM |
1973 | variable in xassert. |
1974 | ||
8affcced KH |
1975 | 1999-12-22 Kenichi Handa <handa@etl.go.jp> |
1976 | ||
1977 | * xfaces.c (face_color_supported_p): Check by tty_defined_color | |
6d8e8ef3 | 1978 | only when the frame is not for a window system. |
8affcced | 1979 | |
f2be1146 GM |
1980 | 1999-12-22 Gerd Moellmann <gerd@gnu.org> |
1981 | ||
deca1348 GM |
1982 | * buffer.c (Fset_buffer_multibyte): Arrange for a thorough |
1983 | redisplay after changing the multibyteness of a buffer. | |
1984 | ||
f2be1146 GM |
1985 | * xterm.c (XTread_socket): At the beginning of the loop, pass the |
1986 | frame's X window to XFilterEvent instead of None because that's | |
1987 | the X window for which the IC was created. This makes dead | |
1988 | accents work when the pointer is not in Emacs' frame. | |
1989 | (XTread_socket) <KeyPress>: Don't call XFilterEvent here. | |
1990 | ||
a744a2ec DL |
1991 | 1999-12-20 Dave Love <fx@gnu.org> |
1992 | ||
1993 | * xfns.c (Fx_show_tip): Add missing UNGCPRO. | |
1994 | ||
9e6985ed GM |
1995 | 1999-12-19 Gerd Moellmann <gerd@gnu.org> |
1996 | ||
1997 | * eval.c (debugger_may_continue): New variable. | |
1998 | (syms_of_eval): Add a DEFVAR_BOOL for it. | |
1999 | (call_debugger): Bind it. | |
2000 | ||
3b620731 EZ |
2001 | 1999-12-19 Eli Zaretskii <eliz@is.elta.co.il> |
2002 | ||
2003 | * msdos.c (IT_set_face): Don't swap face colors when highlight or | |
2004 | fp->tty_reverse_p is set, unless the computed colors are identical | |
2005 | to frame colors. Print both original and computed colors to | |
2006 | termscript file. | |
2007 | (IT_write_glyphs): Track the changes in handling of composite | |
2008 | characters. | |
2009 | (IT_set_frame_parameters): Don't set frame colors from | |
2010 | unspecified-fg and unspecified-bg pseudo-colors. | |
2011 | ||
0f9a51c4 DL |
2012 | 1999-12-17 Dave Love <fx@gnu.org> |
2013 | ||
2014 | * data.c (Fkeywordp): New function. | |
2015 | (syms_of_data): Install it. | |
2016 | ||
363e4e42 EZ |
2017 | 1999-12-16 Eli Zaretskii <eliz@is.elta.co.il> |
2018 | ||
2019 | * xfaces.c (tty_defined_color): Fix last change. | |
2020 | ||
cfad01b4 GM |
2021 | 1999-12-15 Gerd Moellmann <gerd@gnu.org> |
2022 | ||
2023 | * xdisp.c (redisplay_window) <optional new window start>: Check | |
2024 | that window start is in [BEGV..ZV]. | |
2025 | ||
f9d2fdc4 EZ |
2026 | 1999-12-15 Eli Zaretskii <eliz@is.elta.co.il> |
2027 | ||
2028 | * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR) | |
2029 | (FACE_TTY_DEFAULT_BG_COLOR): New macros. | |
2030 | ||
2031 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables. | |
2032 | (syms_of_xfaces): Initialize and staticpro them. | |
2033 | (tty_defined_color): If the color name is unspecified-fg or | |
2034 | unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and | |
2035 | FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value. | |
2036 | (tty_color_name): If the color pixel value is either | |
2037 | FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return | |
2038 | Qunspecified_fg or Qunspecified_bg, respectively. | |
2039 | (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg | |
2040 | and Qunspecified_bg for foreground and background colors. | |
2041 | (realize_default_face): If the foreground and background colors | |
2042 | are not specified, default to Qunspecified_fg and Qunspecified_bg. | |
2043 | (realize_tty_face): By default, set the face colors to | |
2044 | FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR. | |
2045 | [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and | |
2046 | FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined. | |
2047 | Reverse the colors if the default colors were reversed. | |
2048 | ||
2049 | * dispnew.c (init_display): Initialize the frame pixels of the | |
2050 | initial frame to FACE_TTY_DEFAULT_FG_COLOR and | |
2051 | FACE_TTY_DEFAULT_BG_COLOR. | |
2052 | ||
2053 | * term.c (turn_on_face): If the default fore- and background | |
2054 | colors are reversed, enter inverse video mode. Don't send color | |
2055 | escape sequences for unspecified foreground and background colors. | |
2056 | (turn_off_face): Handle unspecified-fg and unspecified-bg colors. | |
2057 | ||
2058 | * dosfns.c (unspecified_colors): New variable. | |
2059 | (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg | |
2060 | color names, return FACE_TTY_DEFAULT_FG_COLOR and | |
2061 | FACE_TTY_DEFAULT_BG_COLOR, respectively. | |
2062 | (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and | |
2063 | FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and | |
2064 | Qunspecified_bg, respectively. | |
2065 | ||
2066 | * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and | |
2067 | FACE_TTY_DEFAULT_BG_COLOR as pixel values. | |
2068 | ||
e19539f1 KH |
2069 | 1999-12-15 Kenichi Handa <handa@etl.go.jp> |
2070 | ||
2071 | * coding.c (code_convert_region): Fix the secoding arg to | |
2072 | update_compositions. | |
2073 | ||
5ec14d3c KH |
2074 | 1999-12-15 Kenichi Handa <handa@etl.go.jp> |
2075 | ||
2076 | The following changes are for the new composition mechanism. We | |
2077 | have deleted `composition' charset and composite characters, | |
2078 | instead introduced a special text property `composition'. | |
2079 | ||
2080 | * Makefile.in (INTERVAL_SRC): Include composite.h. | |
2081 | (INTERVAL_OBJ): Include composite.o. | |
2082 | (SOME_MACHINE_OBJECTS): Include composite.o. | |
2083 | (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o) | |
2084 | (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o): | |
2085 | Depend on composite.h. | |
2086 | (doc.o): Depend on charset.h. | |
2087 | (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC. | |
2088 | (composite.o): New target. | |
2089 | ||
2090 | * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING. | |
2091 | ||
2092 | * callproc.c (Fcall_process): Call code_convert_string to encode | |
2093 | arguments. Use CODING_REQUIRE_DECODING to check if the process | |
2094 | output should be decoded. | |
2095 | ||
2096 | * casefiddle.c: Include composite.h. | |
2097 | (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a | |
2098 | multibyte character. Adjusted for the change of CHAR_STRING. | |
2099 | (casify_region): Likewise. Call update_compositions. | |
2100 | ||
2101 | * category.h (CATEGORY_SET): Delete codes for a composite | |
2102 | character. | |
2103 | ||
2104 | * category.c (word_boundary_p): Delete codes for a composite | |
2105 | character. | |
2106 | (Fmake_category_table): New function. | |
2107 | (syms_of_category): Defsubr it. | |
2108 | ||
2109 | * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING. | |
2110 | (ccl_driver): Delete codes for a composite character. | |
2111 | ||
2112 | * charset.h: In this entry, just `Modified' means that codes for a | |
2113 | composite character is deleted. | |
2114 | (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION) | |
2115 | (charset_composition) (MIN_CHAR_COMPOSITION) | |
2116 | (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR) | |
2117 | (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID) | |
2118 | (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted. | |
2119 | (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT) | |
2120 | (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR) | |
2121 | (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P): | |
2122 | Modified. | |
2123 | (SPLIT_STRING): Call split_string, not split_non_ascii_string. | |
2124 | (CHAR_STRING): Delete WORKBUF argument. Call char_string, not | |
2125 | non_ascii_char_to_string. | |
2126 | (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char. | |
2127 | (STRING_CHAR_AND_LENGTH): Likewise. | |
2128 | (FETCH_CHAR_ADVANCE): New macro. | |
2129 | (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted. | |
2130 | (MAX_MULTIBYTE_LENGTH): New macro. | |
2131 | (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted. | |
2132 | (find_charset_in_str): Argument adjusted. | |
2133 | (CHAR_LEN): Modified. | |
2134 | ||
2135 | * charset.c: In this entry, just `Modified' means that codes for a | |
2136 | composite character is deleted. | |
2137 | (Qcomposition) (leading_code_composition) | |
2138 | (charset_composition) (min_composite_char) (cmpchar_table) | |
2139 | (cmpchar_table_size) (n_cmpchars): Deleted. | |
2140 | (SPLIT_COMPOSITE_SEQ): Deleted. | |
2141 | (SPLIT_MULTIBYTE_SEQ): Modified. | |
2142 | (char_to_string): Renamed from non_ascii_char_to_string. | |
2143 | Modified. | |
2144 | (string_to_char): Renamed from string_to_non_ascii_char. | |
2145 | (split_string): Renamed from split_non_ascii_string. | |
2146 | (char_printable_p) (Fsplit_char) | |
2147 | (Ffind_charset_region) (Ffind_charset_string) (char_valid_p) | |
2148 | (char_bytes) (Fchar_width) (strwidth): Modified. | |
2149 | (find_charset_in_str): Argument CMPCHARP deleted. Modified. | |
2150 | (Fstring): Adjusted for the change of CHAR_STRING. Modified. | |
2151 | (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table) | |
2152 | (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID) | |
2153 | (str_cmpchar_id) (cmpchar_component) (Fcmpcharp) | |
2154 | (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p) | |
2155 | (Fcmpchar_cmp_count): Deleted. | |
2156 | (Fcompose_string): Implemented by Emacs Lisp in composite.el. | |
2157 | (init_charset_once): Modified. | |
2158 | (syms_of_charset): Modified. | |
2159 | ||
2160 | * cmds.c (internal_self_insert): Adjusted for the change of | |
2161 | CHAR_STRING. | |
2162 | ||
2163 | * coding.h (emacs_code_class_type): Delete the member | |
2164 | EMACS_leading_code_composition. | |
2165 | (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD) | |
2166 | (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL) | |
2167 | (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P) | |
2168 | (COMPOSING_WITH_RULE_P): Macros deleted. | |
2169 | (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New | |
2170 | macros. | |
2171 | (struct composition_data): New structure. | |
2172 | (CODING_FINISH_INSUFFICIENT_CMP): New macro. | |
2173 | (struct coding_system): New members composition_rule_follows, | |
2174 | cmp_data, cmp_data_start, cmp_data_index. | |
2175 | (coding_save_composition) (coding_free_composition_data) | |
2176 | (coding_adjust_composition_offset): Extern them. | |
2177 | ||
2178 | * coding.c: Include composite.h. | |
2179 | (DECODE_CHARACTER_ASCII): Don't handle composition here. | |
2180 | (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity | |
2181 | of multibyte code here. | |
2182 | (DECODE_CHARACTER_DIMENSION2): Likewise. | |
2183 | (detect_coding_emacs_mule): Change the case label from | |
2184 | EMACS_leading_code_composition to 0x80. | |
2185 | (detect_coding_iso2022): Handle new composition sequence. | |
2186 | (DECODE_ISO_CHARACTER): Likewise. | |
2187 | (check_composing_code): Deleted. | |
2188 | (coding_allocate_composition_data): New function. | |
2189 | (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END) | |
2190 | (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START) | |
2191 | (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros. | |
2192 | (decode_coding_iso2022): Handle new composition sequence. | |
2193 | (ENCODE_ISO_CHARACTER): Don't check composition here. | |
2194 | (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros. | |
2195 | (ENCODE_COMPOSITION_NO_RULE_START) | |
2196 | (ENCODE_COMPOSITION_WITH_RULE_START): Deleted. | |
2197 | (ENCODE_COMPOSITION_END): Handle new composition sequence. | |
2198 | (ENCODE_COMPOSITION_FAKE_START): New macro. | |
2199 | (encode_coding_iso2022): Handle new composition sequence. | |
2200 | (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail. | |
2201 | (encode_coding_sjis_big5): Ignore composition. | |
2202 | (setup_coding_system): Initialize new members of struct | |
2203 | coding_system. Enable composition only when the coding system has | |
2204 | `composition' property t. | |
2205 | (coding_free_composition_data) (coding_adjust_composition_offset) | |
2206 | (coding_save_composition) (coding_restore_composition): New | |
2207 | functions. | |
2208 | (code_convert_region): Call coding_save_composition for encoding | |
2209 | and coding_allocate_composition_data for decoding. Don't skip | |
2210 | ASCII characters if we handle composition on encoding. Call | |
2211 | signal_after_change with Check_BORDER. | |
2212 | (code_convert_string): Call coding_save_composition for encoding | |
2213 | and coding_allocate_composition_data for decoding. Don't skip | |
2214 | ASCII characters if we handle composition on encoding. | |
2215 | (code_convert_string1): Set Vlast_coding_system_used after calling | |
2216 | code_convert_string. | |
2217 | (code_convert_string_norecord): Disable composition. | |
2218 | (Fset_terminal_coding_system_internal): Likewise. | |
2219 | (Fset_safe_terminal_coding_system_internal): Likewise. | |
2220 | (Fset_keyboard_coding_system_internal): Likewise. | |
2221 | (init_coding_once): Set emacs_code_class[0x80] to | |
2222 | EMACS_invalid_code. | |
2223 | ||
2224 | * composite.h: New file. | |
2225 | ||
2226 | * composite.c: New file. | |
2227 | ||
2228 | * data.c (Faref): Delete codes for a composite character.. | |
2229 | (Faset): Likewise. Adjusted for the change of CHAR_STRING. | |
2230 | ||
2231 | * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH. | |
2232 | (struct glyph): Add new sub-structure cmp to the union `u'. | |
2233 | (enum display_element_type): New member IT_COMPOSITION. | |
2234 | (enum prop_idx): New member COMPOSITION_PROP_IDX. | |
2235 | (struct it): New members cmp_id, cmp_len. | |
2236 | ||
2237 | * dispnew.c (direct_output_forward_char): Check point moving into | |
2238 | or out of a composition. If so, give up direct method. | |
2239 | ||
2240 | * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING. | |
2241 | ||
2242 | * editfns.c (Fchar_to_string): Adjusted for the change of | |
2243 | CHAR_STRING. | |
2244 | (general_insert_function): Likewise. | |
2245 | (Finsert_char): Likewise. | |
2246 | (Fsubst_char_in_region): Likewise. Call update_compositions. | |
2247 | (Ftranslate_region): Call update_compositions. | |
2248 | (Ftranspose_regions): Call update_compositions. | |
2249 | ||
2250 | * emacs.c (main): Call syms_of_composite. | |
2251 | ||
2252 | * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of | |
2253 | CHAR_STRING. | |
2254 | (Finsert_file_contents): Set Vlast_coding_system_used before | |
2255 | calling signal_after_change. Call update_compositions if some | |
2256 | texts are inserted.. | |
2257 | (Fwrite_region): Adjusted for the change of a_write and e_write. | |
2258 | (a_write): Argument changed. Work based on character position, | |
2259 | not byte position. | |
2260 | (e_write): Argument changed. Handle new way of composition. | |
2261 | ||
2262 | * fns.c (Flength): The length of char-table is MAX_CHAR. | |
2263 | (concat): Adjusted for the change of CHAR_STRING. | |
2264 | (Ffillarray): Adjusted for the change of CHAR_STRING. | |
2265 | (Fset_char_table_default): Delete codes for a composite character. | |
2266 | (hash_put): Return hash index. | |
2267 | ||
2268 | * fontset.h (struct font_info): New member vertical_centering. | |
2269 | (Vvertical_centering_font_regexp): Extern it. | |
2270 | ||
2271 | * fontset.c (Vvertical_centering_font_regexp): New variable. | |
2272 | (syms_of_fontset): Declare it as a Lisp variable and initialize. | |
2273 | Set Vignore_relative_composition to nil. | |
2274 | (fs_load_font): Initialize `vertical_centering' of struct | |
2275 | font_info. | |
2276 | ||
2277 | * indent.c (check_composition): New function. | |
2278 | (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with | |
2279 | MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM. | |
2280 | (current_column_1): Handle new way of composition. | |
2281 | (Fmove_to_column): Likewise. | |
2282 | (compute_motion): Likewise. | |
2283 | ||
2284 | * insdel.c (copy_text): Adjusted for the change of CHAR_STRING. | |
2285 | (insert_char): Likewise. | |
2286 | (insert): Call update_compositions. | |
2287 | (insert_and_inherit): Likewise. | |
2288 | (insert_before_markers): Likewise. | |
2289 | (insert_before_markers_and_inherit): Likewise. | |
2290 | (insert_from_string): Likewise. | |
2291 | (insert_from_string_before_markers): Likewise. | |
2292 | (insert_from_buffer): Likewise. | |
2293 | (replace_range): Likewise. | |
2294 | (count_combining_composition): Deleted. | |
2295 | (count_combining_before): Delete codes for a composite character. | |
2296 | (count_combining_after): Likewise. | |
2297 | (del_range_1): Call update_compositions. | |
2298 | (del_range_byte): Likewise. | |
2299 | (del_range_both): Likewise. | |
2300 | (Fcombine_after_change_execute): Likewise. | |
2301 | ||
2302 | * intervals.h: Include composite.h. | |
2303 | (get_property_and_range): Extern it. | |
2304 | (Vtext_property_default_nonsticky): Extern it. | |
2305 | ||
2306 | * intervals.c (adjust_intervals_for_insertion): To check stickines | |
2307 | of properties, pay attention to text-property-default-nonsticky. | |
2308 | (merge_properties_sticky): Likewise. | |
2309 | (get_property_and_range): New function. | |
2310 | ||
2311 | * keyboard.c (Vdisable_point_adjustment): New variable. | |
2312 | (Vglobal_disable_point_adjustment): New variable. | |
2313 | (syms_of_keyboard): Declare them as Lisp variables. | |
2314 | (command_loop_1): Check them and call adjust_point_for_property if | |
2315 | necessary. | |
2316 | (adjust_point_for_property): New function. | |
2317 | ||
2318 | * keymap.c (push_key_description): Adjusted for the change of | |
2319 | CHAR_STRING. | |
2320 | (Ftext_char_description): Likewise. | |
2321 | ||
2322 | * lisp.h (QCtest, QCweakness, Qequal): Extern them. | |
2323 | (hash_put): Adjusted for the change of the definition. | |
2324 | (signal_after_change): Likewise. | |
2325 | (check_point_in_composition): Extern it. | |
2326 | ||
2327 | * lread.c (readchar): Adjusted for the change of CHAR_STRING. | |
2328 | Delete a code that handles an invalid too-long multibyte sequence | |
2329 | because we are now sure that we never encounter with such a | |
2330 | sequence. | |
2331 | (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not | |
2332 | MAX_LENGTH_OF_MULTI_BYTE_FORM. | |
2333 | (init_obarray): Likewise. | |
2334 | (read1): Likewise. Adjusted for the change of CHAR_STRING. | |
2335 | ||
2336 | * print.c (printchar): Adjusted for the change of CHAR_STRING. | |
2337 | ||
2338 | * process.c: Include composite.h. | |
2339 | (read_process_output): Call update_compositions. | |
2340 | ||
2341 | * regex.c (regex_compile): Adjusted for the change of CHAR_STRING. | |
2342 | ||
2343 | * search.c (search_buffer): Adjusted for the change of CHAR_STRING. | |
2344 | ||
2345 | * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite | |
2346 | character. | |
2347 | ||
2348 | * term.c (encode_terminal_code): Delete codes for a composite | |
2349 | character. Adjusted for the change of CHAR_STRING. | |
2350 | (produce_glyphs): When called, it->what can be IT_COMPOSITION. | |
2351 | Delete codes for a composite character. | |
2352 | ||
2353 | * textprop.c (Vtext_property_default_nonsticky): New variable | |
2354 | (syms_of_textprop): Declare it as a Lisp variable. | |
2355 | ||
2356 | * window.c (Frecenter): Clear all caches of compositions. | |
2357 | ||
2358 | * xdisp.c (it_props): Add an entry for composition. | |
2359 | (face_before_or_after_it_pos): For composition, check face of a | |
2360 | character after the composition. | |
2361 | (handle_composition_prop): New function. | |
2362 | (get_next_display_element): Adjusted for the change of | |
2363 | CHAR_STRING. | |
2364 | (set_iterator_to_next): Handle the case that it->method == | |
2365 | next_element_from_composition. | |
2366 | (next_element_from_composition): New function. | |
2367 | (message_dolog): Adjusted for the change of CHAR_STRING. | |
2368 | (set_message_1): Likewise. | |
2369 | (check_point_in_composition): New function. | |
2370 | (reconsider_clip_changes): If point moved into or out of | |
2371 | composition, set b->clip_changed to 1 to force updating of the | |
2372 | screen. | |
2373 | (disp_char_vector): Delete codes for a composite character. | |
2374 | (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING. | |
2375 | ||
2376 | * xfaces.c (choose_face_fontset_font): Delete codes for a | |
2377 | composite character. | |
2378 | (realize_x_face): Likewise. Change a place to set local variable | |
2379 | `f' to avoid a bug of GCC 2.8.1 on Solaris. | |
2380 | ||
2381 | * xfns.c: Include intervals.h. | |
2382 | (syms_of_xfns): Make `display' property nonsticky by default. | |
2383 | ||
2384 | * xselect.c (lisp_data_to_selection_data): Adjusted for the change | |
2385 | for find_charset_in_str. | |
2386 | ||
2387 | * xterm.h (struct x_output): Change member font_baseline to | |
2388 | baseline_offset. | |
2389 | ||
2390 | * xterm.c (x_append_glyph): Setup members of struct glyph properly | |
2391 | for composition. | |
2392 | (x_append_composite_glyph): New function. | |
2393 | (VCENTER_BASELINE_OFFSET): New macro. | |
2394 | (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members | |
2395 | of struct it for the composition. Cache pixel offsets in the | |
2396 | struct composition. Delete codes for a composite character. | |
2397 | Handle Vignore_relative_composition in composition code. | |
2398 | (struct glyph_string): Delete member cmpcharp, add new member cmp. | |
2399 | (x_set_cursor_gc): Check s->cmp, not s->cmpcharp. | |
2400 | (x_compute_glyph_string_overhangs): Likewise. | |
2401 | (x_get_glyph_overhangs): Delete codes for a composite character. | |
2402 | (x_right_overwritten): Check s->cmp, not s->cmpcharp. | |
2403 | (x_draw_glyph_string_background): Likewise. Delete codes for | |
2404 | checking s->gidx for a composition. | |
2405 | (x_draw_glyph_string_foreground): Delete code for a composite | |
2406 | character. | |
2407 | (x_draw_composite_glyph_string_foreground): New function. | |
2408 | (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp. | |
2409 | (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH. | |
2410 | (struct work): Deleted. | |
2411 | (x_fill_composite_glyph_string): Argument changed. Mostly | |
2412 | rewritten for that. | |
2413 | (x_fill_glyph_string): Don't check CHARSET_COMPOSITION. | |
2414 | (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here. | |
2415 | (BUILD_COMPOSITE_GLYPH_STRING): New macro. | |
2416 | (BUILD_GLYPH_STRINGS): For composition, call | |
2417 | BUILD_COMPOSITE_GLYPH_STRING. | |
2418 | (x_new_font): Initialize f->output_data.x->baseline_offset, not | |
2419 | f->output_data.x->font_baseline. | |
2420 | ||
c3c60f13 GM |
2421 | 1999-12-14 Gerd Moellmann <gerd@gnu.org> |
2422 | ||
2423 | * xterm.c (show_mouse_face): Don't use updated_area, use | |
2424 | TEXT_AREA. | |
2425 | ||
83c8f461 | 2426 | 1999-12-12 Richard M. Stallman <rms@gnu.org> |
c838eb57 RS |
2427 | |
2428 | * minibuf.c (Fall_completions): Doc fix. | |
2429 | ||
83c8f461 | 2430 | 1999-12-12 Richard M. Stallman <rms@gnu.org> |
c838eb57 RS |
2431 | |
2432 | * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro | |
2433 | has been changed by the Lisp code. | |
2434 | ||
d8eccf12 GM |
2435 | 1999-12-12 Gerd Moellmann <gerd@gnu.org> |
2436 | ||
2437 | * xfns.c: Indentation fixes. | |
2438 | ||
ae56feae SM |
2439 | 1999-12-10 Stefan Monnier <monnier@cs.yale.edu> |
2440 | ||
2441 | * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared. | |
2442 | ||
dfa1c6ae GM |
2443 | 1999-12-10 Gerd Moellmann <gerd@gnu.org> |
2444 | ||
2445 | * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) | |
2446 | [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h. | |
2447 | ||
2448 | * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved | |
2449 | to frame.h. | |
2450 | ||
ec18280f SM |
2451 | 1999-12-09 Stefan Monnier <monnier@cs.yale.edu> |
2452 | ||
2453 | * keyboard.c (Qratio): New symbol. | |
2454 | (scroll_bar_parts): Add `Qratio' to it. | |
2455 | (syms_of_keyboard): Init `Qratio'. | |
2456 | * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'. | |
2457 | * xterm.c (#includes): Allow compilation with only Xaw. | |
2458 | (xaw3d_arrow_scroll, xaw3d_pick_top): New variables. | |
2459 | (xt_action_hook): Replace XAW3D by XAW. | |
2460 | (xaw3d_jump_callback): Renamed to xaw_jump_callback. | |
2461 | (xaw_jump_callback): Renamed from xaw3d_jump_callback. | |
2462 | Determine epsilon dynamically and don't try to be too clever. | |
2463 | (xaw3d_scroll_callback): Renamed to xaw_scroll_callback. | |
2464 | (xaw_scroll_callback): Renamed from xaw3d_scroll_callback. | |
2465 | Handle both Xaw3d with arrow-scrollbars and with Xaw-style | |
2466 | scrollbar (using `ratio'). | |
2467 | (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d | |
2468 | scrollbar we have so as to set it up more optimally and to fix | |
2469 | xaw3d_arrow_scroll and xaw3d_pick_top. | |
2470 | (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the | |
2471 | bottom of the Xaw3d scrollbar, to work around its tendency to refuse | |
2472 | shrinking the thumb. Also make sure that `XawScrollbarSetThumb' | |
2473 | is not ignored, using a major gross hack. | |
2474 | (x_initialize): Init default values for xaw3d_arrow_scroll and | |
2475 | xaw3d_pick_top. | |
2476 | ||
83b6d970 DL |
2477 | 1999-12-09 Dave Love <fx@gnu.org> |
2478 | ||
2479 | * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE. | |
2480 | ||
3648c842 GM |
2481 | 1999-12-08 Gerd Moellmann <gerd@gnu.org> |
2482 | ||
2483 | * eval.c: Remove conditional compilation on `standalone'. | |
2484 | (call_debugger): When entering the debugger while redisplaying, | |
2485 | reset redisplaying_p, and go back to the top-level if the debugger | |
2486 | returns. | |
2487 | ||
05e71564 GM |
2488 | 1999-12-07 Gerd Moellmann <gerd@gnu.org> |
2489 | ||
2490 | * xfaces.c (x_set_menu_resources_from_menu_face): Make sure | |
2491 | basic faces are realized before trying to use face `menu'. | |
2492 | ||
2493 | * window.c (delete_window): Block input for the time window | |
2494 | matrices are being changed. | |
2495 | ||
b46cd536 DL |
2496 | 1999-12-07 Dave Love <fx@gnu.org> |
2497 | ||
2498 | * lread.c (Fintern_soft): Fix newlines in doc string. | |
2499 | ||
96acb1f7 GM |
2500 | 1999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br> |
2501 | ||
2502 | * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed | |
2503 | duplicate definition of ElfW. | |
2504 | (find_section): Copied from unexsgi.c. | |
2505 | (unexec): Use find_section. Adjust whitespace. Initialize | |
2506 | new_data2_offset based on old_data, not sbss (this fixes a bug on | |
2507 | IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific. | |
2508 | Adjust test for presence of .mdebug section to the new return | |
2509 | value of find_section. | |
2510 | ||
2511 | 1999-12-07 Gerd Moellmann <gerd@gnu.org> | |
2512 | ||
2513 | * unexelf.c: Merge changes from 20.5. | |
2514 | (unexec): Handle .lit4 and .lit8 unconditionally. | |
2515 | ||
2516 | * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of | |
2517 | unexsgi.o again. | |
2518 | ||
2519 | * m/iris5d.h (UNEXEC): Likewise. | |
2520 | ||
7dae4502 SM |
2521 | 1999-12-06 Stefan Monnier <monnier@cs.yale.edu> |
2522 | ||
2523 | * editfns.c (Fdelete_and_extract_region): New function. | |
05e71564 GM |
2524 | (syms_of_editfns): Register it. |
2525 | * insdel.c (del_range): Update del_range_1 call. | |
7dae4502 SM |
2526 | (del_range_1, del_range_2): Add a ret_string argument to |
2527 | request that the deleted text be returned. | |
2528 | (del_range_byte, del_range_both): Update del_range_2 call. | |
05e71564 | 2529 | * lisp.h (del_range_1, del_range_2): Change prototype |
7dae4502 SM |
2530 | * casefiddle.c (casify_region): Update del_range_1 call. |
2531 | * coding.c (code_convert_region): Update del_range_2 call. | |
2532 | * fileio.c (Finsert_file_contents): Update del_range_2 call. | |
2533 | ||
397e4fae GM |
2534 | 1999-12-06 Gerd Moellmann <gerd@gnu.org> |
2535 | ||
2536 | * xfaces.c (set_lface_from_font_name): Fix incomplete merge. | |
2537 | ||
3d973f71 GM |
2538 | 1999-12-04 Hrvoje Niksic <hniksic@iskon.hr> |
2539 | ||
2540 | * lread.c (Fintern_soft): Accept a symbol argument. | |
2541 | ||
740e985f EZ |
2542 | 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il> |
2543 | ||
2544 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000. | |
809f3d51 EZ |
2545 | |
2546 | * insdel.c (adjust_markers_for_delete): Fix last change. | |
2547 | ||
2d764c78 EZ |
2548 | 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il> |
2549 | ||
2550 | Changes for automatic remapping of X colors on terminal frames: | |
2551 | ||
2552 | * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X | |
2553 | frames. | |
2554 | (Vface_tty_color_alist): Remove. | |
2555 | (tty_defined_color): New function. | |
2556 | (defined_color): Rewrite to support any type of frame. | |
2557 | (tty_color_name): New function. | |
2558 | (face_color_supported_p, Fface_color_gray_p, | |
2559 | Fface_color_supported_p): Support non-X frames. | |
2560 | (load_color): Enclose the color name in quotes, in the log | |
2561 | messages. Remove DOS-specific version of load_color. | |
2562 | (realize_tty_face): Take the supported colors from | |
2563 | tty-color-alist. Support translation of X colors to the closest | |
2564 | tty color, for both MSDOS and tty frames. | |
2565 | [MSDOS]: Don't invert face colors if they were taken from the | |
2566 | frame colors. | |
2567 | (Fface_register_tty_color, Fface_clear_tty_colors): Remove. | |
2568 | ||
2569 | * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]: | |
2570 | Define a mostly empty surrogate. | |
2571 | (tty_display): Declare. | |
2572 | ||
2573 | * frame.c (make_terminal_frame) [!macintosh]: Don't use | |
2574 | tty_display. | |
2575 | (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P | |
2576 | frames when the frame's param_alist includes 'reverse. | |
2577 | (tty_display): Define. | |
2578 | (make_terminal_frame) [!MSDOS]: Assign &tty_display to the | |
2579 | output_data.x member. | |
2580 | (Fframe_parameters): Return foreground and background color names | |
2581 | on tty frames as well, in addition to MSDOS frames. | |
2582 | ||
2583 | * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object | |
2584 | selected_frame. | |
2585 | (struct x_output): Remove unused members; document who uses each | |
2586 | member. | |
2587 | (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE, | |
2588 | FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES, | |
2589 | FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES, | |
2590 | FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove | |
2591 | unused macro definintions. | |
2592 | ||
2593 | * msdos.c (IT_set_frame_parameters): Don't call | |
2594 | recompute_basic_faces, the next redisplay will, anyway. | |
2595 | (x_current_display): Remove unused variable. | |
2596 | Many functions: changes for Lisp_object selected_frame. | |
2597 | (IT_set_face): If the tty_reverse_p flag is set for the face, | |
2598 | reverse the foreground and background colors. | |
2599 | (Fmsdos_remember_default_colors): New function. | |
2600 | (syms_of_msdos): Defsubr it. | |
2601 | (IT_set_frame_parameters): Use initial_screen_colors[] when | |
2602 | creating a new frame. If the frame parameters include 'reverse, | |
2603 | swap the foreground and background colors. | |
2604 | (internal_terminal_init): Initialize initial_screen_colors to -1. | |
2605 | (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up | |
2606 | cus-start.el. | |
2607 | ||
2608 | * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc. | |
2609 | ||
2610 | * xfns.c (x_defined_color): Rename from defined_color. All | |
2611 | callers changed. | |
2612 | (Fxw_color_defined_p): Renamed from Fx_color_defined_p; | |
2613 | all callers changed. | |
2614 | (Fxw_color_values): Renamed from Fx_color_values; all callers | |
2615 | changed. | |
2616 | (Fxw_display_color_p): Renamed from Fx_display_color_p; all | |
2617 | callers changed. | |
2618 | (x_window_to_frame, x_any_window_to_frame, | |
2619 | x_non_menubar_window_to_frame, x_menubar_window_to_frame, | |
2620 | x_top_window_to_frame): Use !FRAME_X_P instead of | |
2621 | f->output_data.nothing. | |
2622 | * xterm.h (x_defined_color): Rename from defined_color. | |
2623 | ||
2624 | * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of | |
2625 | f->output_data.nothing. | |
2626 | (Fxw_color_defined_p): Renamed from Fx_color_defined_p; | |
2627 | all callers changed. | |
2628 | (Fxw_color_values): Renamed from Fx_color_values; all callers | |
2629 | changed. | |
2630 | (Fxw_display_color_p): Renamed from Fx_display_color_p; all | |
2631 | callers changed. | |
2632 | ||
2633 | * dispextern.h (tty_color_name): Add prototype. | |
2634 | ||
2635 | * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of | |
2636 | f->output_data.nothing. | |
2637 | * w32menu.c (menubar_id_to_frame): Likewise. | |
2638 | * w32term.h (w32_output): Declare. | |
2639 | ||
2640 | * dosfns.c (Qmsdos_color_translate): Remove. | |
2641 | (msdos_stdcolor_name): Now returns a Lisp_Object. | |
2642 | * dosfns.h (Qmsdos_color_translate): Remove. | |
2643 | ||
2644 | * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support. | |
2645 | ||
b3e5232e KH |
2646 | 1999-12-06 Kenichi Handa <handa@etl.go.jp> |
2647 | ||
2648 | * fileio.c (decide_coding_unwind): Renamed from | |
2649 | set_auto_coding_unwind. | |
2650 | (Finsert_file_contents): Make single unwind protect to call both | |
2651 | Vset_auto_coding_function and Ffind_operation_coding_system. | |
2652 | ||
2653 | * insdel.c (adjust_markers_for_delete): Make it non-static. | |
2654 | ||
db0e466c SM |
2655 | 1999-12-04 Stefan Monnier <monnier@cs.yale.edu> |
2656 | ||
2657 | * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy | |
2658 | operators and handle them properly. | |
2659 | * regex.h (RE_ALL_GREEDY): New option. | |
2660 | (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic | |
2661 | sorting would put it. | |
2662 | (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP) | |
2663 | (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior. | |
2664 | ||
22afa6e8 DL |
2665 | 1999-12-04 Dave Love <d.love@dl.ac.uk> |
2666 | ||
2667 | * m/arm.h: New file. | |
2668 | ||
40afb967 DL |
2669 | 1999-12-03 Dave Love <fx@gnu.org> |
2670 | ||
2671 | * editfns.c (Fmessage_or_box): Use use_dialog_box. | |
2672 | ||
ddf8eff5 GM |
2673 | 1999-12-02 Gerd Moellmann <gerd@gnu.org> |
2674 | ||
2675 | * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed | |
2676 | for building with Motif. | |
2677 | ||
2678 | * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of | |
2679 | unexelf.o. | |
2680 | ||
2681 | * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o. | |
2682 | ||
fa09a82d DL |
2683 | 1999-12-01 Dave Love <fx@gnu.org> |
2684 | ||
2685 | * emacs.c (main): Set LANG=C iff AX3_2 defined. | |
2686 | ||
ddf8eff5 GM |
2687 | 1999-11-28 Gerd Moellmann <gerd@gnu.org> |
2688 | ||
2689 | * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE) | |
2690 | (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New | |
2691 | macros. | |
2692 | ||
2693 | * config.in (HAVE_SETITIMER, HAVE_UALARM): New. | |
2694 | ||
fa09a82d DL |
2695 | 1999-11-28 eliz <eliz@dlpx1> |
2696 | ||
2697 | * emacs.c (synchronize_locale): Avoid compiler warnings about | |
2698 | pointer type mismatch. | |
2699 | ||
f9632fc8 GM |
2700 | 1999-11-28 Gerd Moellmann <gerd@gnu.org> |
2701 | ||
717d0121 GM |
2702 | * window.c (Fwindow_end): Don't call temp_set_pt_both with |
2703 | out of range position. | |
2704 | ||
f9632fc8 GM |
2705 | * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>: |
2706 | Switch off busy-cursor by setting inhibit_busy_cursor to 2. | |
2707 | ||
59c65f1e EZ |
2708 | 1999-11-28 Eli Zaretskii <eliz@is.elta.co.il> |
2709 | ||
613a8346 EZ |
2710 | * charset.c (Fmake_char_internal): Print the charset ID when |
2711 | signalling an error. | |
2712 | ||
59c65f1e EZ |
2713 | * emacs.c (synchronize_locale): Avoid compiler warnings about |
2714 | pointer type mismatch. | |
2715 | ||
83c8f461 | 2716 | 1999-11-26 Richard M. Stallman <rms@gnu.org> |
d01f3570 RS |
2717 | |
2718 | * editfns.c (Fdelete_field): Make it noninteractive. Return nil. | |
2719 | ||
18df9369 GM |
2720 | 1999-11-26 Gerd Moellmann <gerd@gnu.org> |
2721 | ||
65a3ccf7 GM |
2722 | * puresize.h (BASE_PURESIZE): Increase to 550000. |
2723 | ||
b3b98592 GM |
2724 | * textprop.c (set_text_properties): New function. Like |
2725 | Fset_text_properties, but with additional parameter | |
2726 | SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after | |
2727 | changes. | |
2728 | (Fset_text_properties): Use it. | |
2729 | ||
2730 | * insdel.c (insert_1_both): Call set_text_properties with last | |
2731 | parameter nil so that no after changes will be signaled. | |
2732 | ||
2733 | * lisp.h: Add prototype for set_text_properties. | |
2734 | ||
18df9369 GM |
2735 | * xfaces.c (set_lface_from_font_name): Fix previous change. |
2736 | (recompute_basic_faces): Change assert to abort. | |
2737 | ||
71a8e74b DL |
2738 | 1999-11-25 Dave Love <fx@gnu.org> |
2739 | ||
2740 | * fns.c (Fnthcdr, Fnreverse): Inline cdr. | |
2741 | (Fmember, Fdelq, Fdelete): Inline car. | |
2742 | (Fy_or_n_p): Doc fix. | |
2743 | ||
bc6a5782 GM |
2744 | 1999-11-25 Gerd Moellmann <gerd@gnu.org> |
2745 | ||
3221576b | 2746 | * xfaces.c (set_lface_from_font_name): New parameter may_fail_p. |
18df9369 | 2747 | Callers changed. If specified font name is bogus, and may_fail_p |
3221576b GM |
2748 | is not set, try to use a reasonable default. |
2749 | ||
bc6a5782 GM |
2750 | * dispnew.c (direct_output_for_insert): Set glyph row's |
2751 | displays_text_p flag. Correct window's window_end_vpos if | |
2752 | necessary. | |
2753 | ||
0c8559bb PE |
2754 | 1999-11-25 Paul Eggert <eggert@twinsun.com> |
2755 | ||
2756 | * emacs.c (fixup_locale): Don't bother to record initial locale. | |
2757 | (synchronize_locale): If the desired locale is nil, | |
2758 | treat it as if it were the empty string, | |
2759 | so that we set the locale from the environment. | |
2760 | ||
35737351 KH |
2761 | 1999-11-25 Kenichi Handa <handa@etl.go.jp> |
2762 | ||
2763 | * fileio.c (Finsert_file_contents): Set buffer-file-coding-system | |
2764 | of the current buffer via Fset. | |
2765 | ||
5562b47f DL |
2766 | 1999-11-24 Dave Love <fx@gnu.org> |
2767 | ||
2768 | * xfns.c: Don't duplicate Qdisplay definition done elsewhere. | |
2769 | ||
2770 | * xfaces.c: Don't duplicate Qmode_line definition done elsewhere. | |
2771 | ||
2772 | * xfns.c: Don't duplicate Qdisplay definition done elsewhere. | |
2773 | ||
00da0e4a GM |
2774 | 1999-11-24 Gerd Moellmann <gerd@gnu.org> |
2775 | ||
2776 | * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0. | |
2777 | ||
2778 | * emacs.c (PVEC_FLAG): New variable. | |
2779 | ||
b1775dc1 GM |
2780 | 1999-11-23 Gerd Moellmann <gerd@gnu.org> |
2781 | ||
2782 | * unexaix.c (unexec): Use unsigned instead of uintptr_t because | |
2783 | that fails on IBM PowerPC, AIX 4.2. | |
2784 | ||
08de6200 EZ |
2785 | 1999-11-22 Eli Zaretskii <eliz@is.elta.co.il> |
2786 | ||
2787 | * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc | |
2788 | string of mode-line-format. Remove the obsolete %t. | |
2789 | ||
02fda8ff GM |
2790 | 1999-11-22 Gerd Moellmann <gerd@gnu.org> |
2791 | ||
f2fa858f GM |
2792 | * dispnew.c (direct_output_for_insert): Increment glyph positions |
2793 | for glyphs from buffer text only. | |
2794 | ||
02fda8ff GM |
2795 | * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits) |
2796 | (gdb_data_seg_bits): New variables. | |
2797 | ||
2798 | * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't | |
2799 | work on systems not allowing enumerators > INT_MAX, and it | |
2800 | won't work if EMACS_INT is long long. | |
2801 | ||
1b0d24e7 PE |
2802 | 1999-11-22 Paul Eggert <eggert@twinsun.com> |
2803 | ||
2804 | Port to SunOS 4.1.x again. Help out with Alpha port. | |
2805 | Rename messages-locale to system-messages-locale, | |
2806 | and likewise for time-locale. | |
2807 | ||
2808 | * callproc.c (strerror): Remove decl. | |
2809 | * fileio.c (strerror): Likewise. | |
2810 | * process.c (strerror): Likewise. | |
2811 | * emacs.c (strerror): Likewise. | |
2812 | (Vsystem_messages_locale): Renamed from Vmessages_locale. | |
2813 | All uses changed. | |
2814 | (Vprevious_system_messages_locale): Likewise, from | |
2815 | Vprevious_messages_locale. | |
2816 | (Vsystem_time_locale): Likewise, from Vtime_locale. | |
2817 | (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale. | |
2818 | (ABORT_RETURN_TYPE): New macro. | |
2819 | (abort): Return type is now ABORT_RETURN_TYPE. | |
2820 | (main): Always invoke init_signals, even if POSIX_SIGNALS is not | |
2821 | defined. | |
2822 | (syms_of_emacs): messages-locale -> system-messages-locale, | |
2823 | previous-messages-locale -> previous-system-messages-locale, | |
2824 | time-locale -> system-time-locale, | |
2825 | previous-time-locale -> previous-system-time-locale. | |
2826 | ||
2827 | * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined. | |
2828 | (const): Do not define; that's config.h's job. | |
2829 | (<limits.h>): Include if HAVE_LIMITS_H is defined. | |
2830 | (CHAR_BIT): Move test for definedness outside of limits.h condition. | |
2831 | (<stddef.h>): Include if STDC_HEADERS is defined. | |
2832 | (FREE_RETURN_TYPE): New macro. | |
2833 | (free): Return type is now FREE_RETURN_TYPE. | |
2834 | ||
2835 | * lisp.h (synchronize_system_time_locale): Renamed from | |
2836 | synchronize_time_locale. All uses changed. | |
2837 | (synchronize_system_messages_locale): Likewise, from | |
2838 | synchronize_messages_locale. | |
2839 | ||
2840 | * m/alpha.h (malloc, realloc, calloc): Remove decls; | |
2841 | stdlib.h now does this. | |
2842 | ||
2843 | * process.c (sys_siglist): Remove. | |
2844 | ||
2845 | * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE): | |
2846 | New macros. | |
2847 | ||
2848 | * syntax.c (scan_sexps_forward): Use abort, not assert. | |
2849 | ||
2850 | * sysdep.c (my_sys_siglist): New var. | |
2851 | (sys_siglist): New macro. Remove old initialized vars of same name. | |
2852 | (init_signals): Initialize sys_siglist. | |
2853 | ||
2854 | * xfns.c (abort): Remove decl; stdlib.h now does this. | |
2855 | ||
0dcd5b54 DL |
2856 | 1999-11-18 Dave Love <fx@gnu.org> |
2857 | ||
946173ad DL |
2858 | * filelock.c: Add forward declaration for get_boot_time_1. |
2859 | ||
0dcd5b54 DL |
2860 | * dispnew.c (Finternal_show_cursor_p): Fix doc string. |
2861 | ||
71447e8f GM |
2862 | 1999-11-18 Gerd Moellmann <gerd@gnu.org> |
2863 | ||
2864 | * buffer.h (struct buffer_text): Add comment about moving | |
2865 | buffer text if REL_ALLOC is defined. | |
2866 | ||
eeedff63 KH |
2867 | 1999-11-18 Kenichi Handa <handa@etl.go.jp> |
2868 | ||
2869 | * lisp.h (KEY_DESCRIPTION_SIZE): New macro. | |
2870 | ||
2871 | * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free | |
2872 | memory for push_key_description. | |
2873 | ||
2874 | * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to | |
2875 | allocate memory for push_key_description. | |
2876 | (describe_buffer_bindings): Likewise. | |
2877 | ||
5d7e4a2c GM |
2878 | 1999-11-17 Gerd Moellmann <gerd@gnu.org> |
2879 | ||
2880 | * xfns.c (Fx_show_busy_cursor): Doc-fix. | |
2881 | (Fx_hide_busy_cursor): Ditto. | |
2882 | ||
2883 | 1999-11-17 Marco Walther <walther@siemens-pyramid.com> | |
2884 | ||
2885 | * unexsni.c (unexec): Handle .rel.dyn section. | |
2886 | ||
b5b41e02 DL |
2887 | 1999-11-16 Dave Love <fx@gnu.org> |
2888 | ||
2889 | * doc.c (Fdocumentation): Remove gcpro here too. | |
2890 | ||
e35b6123 GM |
2891 | 1999-11-16 Gerd Moellmann <gerd@gnu.org> |
2892 | ||
2893 | * keyboard.c (command_loop_1): Remove no_redisplay. | |
2894 | ||
83c8f461 | 2895 | 1999-11-16 Richard M. Stallman <rms@gnu.org> |
0a14b9bb GM |
2896 | |
2897 | * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing | |
2898 | in noninteractive. | |
2899 | ||
b05d3bee GM |
2900 | 1999-11-14 Gerd Moellmann <gerd@gnu.org> |
2901 | ||
5bcfeb49 GM |
2902 | * xdisp.c (ensure_echo_area_buffers): New. |
2903 | (with_echo_area_buffer): Use it. | |
2904 | (setup_echo_area_for_printing): Ditto. | |
2905 | ||
b05d3bee GM |
2906 | * buffer.c (indicate-empty-lines): Doc-fix. |
2907 | ||
9b2e6e4c GM |
2908 | 1999-11-12 Gerd Moellmann <gerd@gnu.org> |
2909 | ||
e7f90eab GM |
2910 | * term.c (term_init): If "op" isn't available, don't support color |
2911 | because we can't switch back to the default foreground and | |
2912 | background. | |
2913 | ||
9b2e6e4c GM |
2914 | * doc.c (Fdocumentation_property): Remove GCPRO because |
2915 | Fsubstitute_command_keys gcpro's the string. | |
2916 | ||
1bf21027 KH |
2917 | 1999-11-12 Kenichi Handa <handa@etl.go.jp> |
2918 | ||
2919 | * editfns.c (Ftranslate_region): Check the buffer multibyteness. | |
2920 | ||
3bc6df53 GM |
2921 | 1999-11-11 Gerd Moellmann <gerd@gnu.org> |
2922 | ||
2923 | * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c, | |
2924 | lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h, | |
2925 | buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES. | |
2926 | ||
35a5514b GM |
2927 | 1999-11-10 Gerd Moellmann <gerd@gnu.org> |
2928 | ||
2929 | * xfns.c (QCuser_data): Removed. | |
2930 | (syms_of_xfns): Initialization of QCuser_data removed. | |
2931 | (parse_image_spec): Don't handle :user-data specially. Allow | |
2932 | unknown keys. Remove parameter ALLOW_OTHER_KEYS. | |
2933 | (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p) | |
2934 | (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call | |
2935 | parse_image_spec accordingly. | |
2936 | ||
83c8f461 | 2937 | 1999-11-09 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
2938 | |
2939 | * cmds.c (Fbeginning_of_line): Doc fix. | |
2940 | (Fend_of_line): Doc fix. | |
2941 | ||
2942 | * editfns.c (Fline_beginning_position): If N is not 1, | |
2943 | pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE. | |
2944 | ||
2945 | * syntax.c (Fforward_word): Handle fields even if would have hit | |
2946 | an edge of the buffer. Return nil if affected by fields. | |
2947 | ||
83c8f461 | 2948 | 1999-11-09 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
2949 | |
2950 | * editfns.c (preceding_pos): Function deleted. | |
2951 | (text_property_stickiness): Decrement POS directly. | |
2952 | Fix a confusion that used PT instead of POS. | |
2953 | ||
2954 | * editfns.c (find_field): Properly handle the case | |
2955 | of a field boundary where `field' inherits from neither side. | |
2956 | ||
2957 | * editfns.c (Ffield_beginning, Ffield_end): Doc fixes. | |
2958 | (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes. | |
2959 | ||
fa9aabf6 GM |
2960 | 1999-11-08 Gerd Moellmann <gerd@gnu.org> |
2961 | ||
2962 | * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the | |
2963 | BEFORE_POTENTIAL_GC before DISCARD. | |
2964 | ||
4015b3c0 GM |
2965 | 1999-11-07 Gerd Moellmann <gerd@gnu.org> |
2966 | ||
033a5fa3 GM |
2967 | * alloc.c (Fgarbage_collect): Call unmark_byte_stack. |
2968 | ||
2969 | * lisp.h: Add prototype for unmark_byte_stack. | |
2970 | ||
2971 | * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK. | |
2972 | (unmark_byte_stack): Renamed from relocate_byte_pcs. Use | |
2973 | XUNMARK. | |
2974 | ||
55b064bd GM |
2975 | * xdisp.c (resize_mini_window): Fix computation of needed |
2976 | mini-window height. | |
2977 | ||
2978 | * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional | |
2979 | compilation on USE_TEXT_PROPERTIES. | |
01e9b9df | 2980 | |
4015b3c0 | 2981 | * Fbyte_code: Use block statements in cases and declare v1 and v2 |
60af03f1 | 2982 | locally there. Rearrange case statements so that those most |
4015b3c0 GM |
2983 | frequently executed come first. Avoid goto's in frequently |
2984 | executed cases. | |
2985 | ||
fe512f27 GM |
2986 | 1999-11-05 Gerd Moellmann <gerd@gnu.org> |
2987 | ||
dd59e217 GM |
2988 | * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and |
2989 | AFTER_POTENTIAL_GC around internal_catch. | |
2990 | ||
bcf28080 GM |
2991 | * alloc.c (Fgarbage_collect): Call mark_byte_stack and |
2992 | relocate_byte_pcs. | |
2993 | (init_alloc_once, init_alloc): Set byte_stack_list to null. | |
2994 | ||
2995 | * eval.c (struct catchtag): Add member byte_stack. | |
2996 | (internal_catch, Fcondition_case, internal_condition_case) | |
dd59e217 | 2997 | (internal_condition_case_1): Save value of byte_stack_list in |
bcf28080 GM |
2998 | catchtag. |
2999 | (unwind_to_catch): Restore byte_stack_list from catchtag. | |
3000 | ||
3001 | * lisp.h: Add prototypes for new functions in bytecode.c. | |
3002 | Add extern declaration for byte_stack_list. | |
3003 | ||
3004 | * bytecode.c (struct byte_stack): New. | |
3005 | (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New | |
3006 | (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New. | |
3007 | (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten. | |
3008 | (HANDLE_RELOCATION): Removed. | |
3009 | (Fbyte_code): Use byte_stack structures. | |
3010 | ||
4d59c34c GM |
3011 | * filelock.c (Ffile_locked_p): Make FILENAME a required argument. |
3012 | ||
fe512f27 GM |
3013 | * buffer.c (syms_of_buffer): Extend documentation of |
3014 | mode-line-format. | |
3015 | ||
60b64cd6 GM |
3016 | 1999-11-04 Gerd Moellmann <gerd@gnu.org> |
3017 | ||
3018 | * editfns.c (Fdelete_field): Renamed from Ferase_field. | |
3019 | ||
3020 | * minibuf.c (do_completion, Fminibuffer_complete_word): Use | |
3021 | Ferase_field instead of Fdelete_field. | |
3022 | ||
b51b619b GM |
3023 | 1999-11-03 Gerd Moellmann <gerd@gnu.org> |
3024 | ||
3025 | * dispnew.c (Finternal_show_cursor): Change it to set the | |
3026 | cursor on/off, not toggle its state. | |
3027 | (Finternal_show_cursor_p): New. | |
3028 | (syms_of_display): Defsubr Sinternal_show_cursor_p. | |
3029 | ||
5865af0d DL |
3030 | 1999-11-03 Dave Love <fx@gnu.org> |
3031 | ||
3032 | * charset.c (split_non_ascii_string): Define return value. | |
3033 | ||
82a700f3 GM |
3034 | 1999-11-03 Gerd Moellmann <gerd@gnu.org> |
3035 | ||
edfef199 GM |
3036 | * minibuf.c (string_to_object): New. |
3037 | (read_minibuf_noninteractive): New. | |
3038 | (read_minibuf): Call read_minibuf_noninteractive if | |
3039 | noninteractive. Use string_to_object. | |
3040 | ||
82a700f3 GM |
3041 | * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO. |
3042 | ||
b5540f0d DL |
3043 | 1999-11-02 Dave Love <fx@gnu.org> |
3044 | ||
e69dcd60 DL |
3045 | * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1). |
3046 | ||
827a1788 DL |
3047 | * process.c: Define _GNU_SOURCE before config.h to get strsignal |
3048 | declared with glibc2. | |
b5540f0d | 3049 | |
a69a6e61 GM |
3050 | 1999-11-02 Gerd Moellmann <gerd@gnu.org> |
3051 | ||
3052 | * lisp.h (QUIT): Give it statement form. | |
3053 | ||
87e21fbd DL |
3054 | 1999-11-02 Dave Love <fx@gnu.org> |
3055 | ||
3056 | * eval.c (init_eval): Conditionalize declaration of gcpro_level. | |
3057 | ||
1b335865 GM |
3058 | 1999-11-02 Gerd Moellmann <gerd@gnu.org> |
3059 | ||
9fb5e03d GM |
3060 | * xfns.c (QCuser_data): New. |
3061 | (syms_of_xfns): Initialize QCuser_data. | |
3062 | (parse_image_spec): Ignore :user-data DATA properties. | |
3063 | ||
1b335865 GM |
3064 | * xdisp.c (display_line): Set charpos of first glyph in blank |
3065 | lines not corresponding to any text to -1, even if no glyphs are | |
3066 | filled in in that line. | |
3067 | ||
e76f1c44 GM |
3068 | 1999-11-01 Gerd Moellmann <gerd@gnu.org> |
3069 | ||
36fcd3d9 GM |
3070 | * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using |
3071 | png_get_sRGB in #ifdef. | |
3072 | ||
111259b4 GM |
3073 | * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor. |
3074 | (syms_of_display): Use the new name. | |
3075 | ||
dd5c96e8 GM |
3076 | * textprop.c (verify_interval_modification): Signal text-read-only |
3077 | instead of calling error. | |
3078 | ||
db8878fb GM |
3079 | * data.c (Qtext_read_only): New built-in error. |
3080 | (syms_of_data): Initialize it. | |
3081 | ||
3082 | * lisp.h: Add extern declaration for Qtext_read_only. | |
3083 | ||
e76f1c44 GM |
3084 | * syntax.c: Remove whitespace after open or in front of closing |
3085 | parentheses. | |
3086 | ||
83c8f461 | 3087 | 1999-11-01 Richard M. Stallman <rms@gnu.org> |
cb3a6c48 GM |
3088 | |
3089 | * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h. | |
3090 | ||
7843e09c GM |
3091 | 1999-10-31 Gerd Moellmann <gerd@gnu.org> |
3092 | ||
575ed805 GM |
3093 | * xdisp.c (resize_mini_window): Compute needed height differently. |
3094 | ||
7843e09c GM |
3095 | * fns.c (Flength): Unroll loop over lists. |
3096 | ||
3097 | * xdisp.c (append_space): Return non-zero if space was appended. | |
3098 | (display_line): Set charpos of first glyph to -1 only if that | |
3099 | glyph is the space added by append_glyph. | |
3100 | ||
83c8f461 | 3101 | 1999-10-30 Richard M. Stallman <rms@gnu.org> |
cb3a6c48 GM |
3102 | |
3103 | * print.c (strout): Consider `noninteractive' and use stdout | |
3104 | only when PRINTCHARFUN is t. | |
3105 | ||
3106 | * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'. | |
3107 | (gcpro_level): Declare it extern. | |
3108 | [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5): | |
3109 | Alternate definitions that set `level' and increment `gcpro_level'. | |
3110 | [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level. | |
3111 | ||
3112 | * eval.c [DEBUG_GCPRO] (gcpro_level): New variable. | |
3113 | (init_eval) [DEBUG_GCPRO]: Initialize it. | |
3114 | (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level | |
3115 | from remaining gcprolist. | |
3116 | ||
3636f7a3 KH |
3117 | 1999-10-29 Kenichi Handa <handa@etl.go.jp> |
3118 | ||
3119 | * coding.c (code_convert_region): Update `dst' correctly. | |
3120 | ||
a2ad7096 GM |
3121 | 1999-10-28 Gerd Moellmann <gerd@gnu.org> |
3122 | ||
3123 | * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc) | |
3124 | (Frassoc): Rewritten. | |
3125 | ||
1e3196e8 GM |
3126 | 1999-10-27 Noah Friedman <friedman@splode.com> |
3127 | ||
3128 | * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'. | |
3129 | Define PTY_NAME_SPRINTF. | |
3130 | Redefine PTY_TTY_NAME_SPRINTF. | |
3131 | * config.in: Add undef for HAVE_DEV_PTMX. | |
3132 | ||
83c8f461 | 3133 | 1999-10-26 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
3134 | |
3135 | * regex.c (POP_FAILURE_POINT): Use failure_id.integer | |
3136 | as arg to DEBUG_POP and DEBUG_PRINT. | |
3137 | ||
83c8f461 | 3138 | 1999-10-27 Richard M. Stallman <rms@gnu.org> |
17dbfaad GM |
3139 | |
3140 | * data.c (Qad_activate_internal): Renamed from Qad_activate. | |
3141 | (Ffset): Call Qad_activate_internal. | |
3142 | (syms_of_data): Initialize Qad_activate_internal. | |
3143 | ||
26922151 GM |
3144 | 1999-10-27 Gerd Moellmann <gerd@gnu.org> |
3145 | ||
3146 | * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if | |
3147 | Vterminal_frame is selected and Vwindow_system is non-nil. | |
3148 | ||
67a5596f GM |
3149 | 1999-10-26 Gerd Moellmann <gerd@gnu.org> |
3150 | ||
2bea706b GM |
3151 | * xdisp.c (echo_area_display): Put previous change in #if 0. |
3152 | ||
67a5596f GM |
3153 | * emacs.c (standard_args): Add `file' as synonym for `visit', |
3154 | `execute' as synonym for `eval'. | |
3155 | (main): Add new options to usage message. | |
3156 | ||
81dc5de5 GM |
3157 | 1999-10-25 Gerd Moellmann <gerd@gnu.org> |
3158 | ||
3159 | * data.c (Qhash_table): New. | |
3160 | (Ftype_of): Return it for hash tables. | |
3161 | (syms_of_data): Initialize Qhash_table. | |
3162 | ||
83c8f461 | 3163 | 1999-10-25 Richard M. Stallman <rms@gnu.org> |
bd3c545d GM |
3164 | |
3165 | * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer. | |
3166 | ||
66e4690f | 3167 | 1999-10-24 Ken Raeburn <raeburn@gnu.org> |
3a7093d8 | 3168 | |
7539e11f KR |
3169 | * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including |
3170 | lisp.h. | |
3171 | ||
3172 | * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer, | |
3173 | Fbuffer_local_variables, Fother_buffer, record_buffer, | |
3174 | set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables, | |
3175 | swap_out_buffer_local_variables, overlays_at, overlays_in, | |
3176 | overlay_touches_p, overlay_strings, recenter_overlay_lists, | |
3177 | fix_overlays_in_range, fix_overlays_before, Foverlay_get, | |
3178 | Foverlay_put, report_overlay_modification, evaporate_overlays): | |
3179 | Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member | |
3180 | references. | |
3181 | * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr, | |
3182 | swap_in_symval_forwarding, set_internal, default_value, | |
3183 | Fset_default, Fmake_variable_buffer_local, Fmake_local_variable, | |
3184 | Fmake_variable_frame_local, Flocal_variable_p, | |
3185 | Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long, | |
3186 | Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise. | |
3187 | * dispnew.c (Fframe_or_buffer_changed_p): Likewise. | |
3188 | * emacs.c (main): Likewise. | |
3189 | * fontset.c (fs_load_font, fs_register_fontset, | |
3190 | CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset, | |
3191 | Fnew_fontset, Fset_fontset_font): Likewise. | |
3192 | * frame.c (do_switch_frame, next_frame, prev_frame, | |
3193 | other_visible_frames, Fdelete_frame, Fvisible_frame_list): | |
3194 | Likewise. | |
3195 | * keyboard.c (read_char, help_char_p, event_to_kboard, | |
3196 | kbd_buffer_get_event, timer_start_idle, timer_check, | |
3197 | make_lispy_event, apply_modifiers, reorder_modifiers, | |
3198 | Fevent_convert_list, lucid_event_type_list_p, menu_bar_items, | |
3199 | menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item, | |
3200 | tool_bar_items, read_char_x_menu_prompt, read_key_sequence, | |
3201 | Fcommand_execute, Fexecute_extended_command): Likewise. | |
3202 | * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion, | |
3203 | Fall_completions): Likewise. | |
3204 | * window.c (Fset_window_margins): Likewise. | |
3205 | ||
3206 | * callint.c (quotify_args): Don't explicitly use struct | |
3207 | Lisp_Cons, use Lisp_Object and XCAR/XCDR instead. | |
3208 | ||
3a7093d8 KR |
3209 | * s/netbsd.h (HAVE_GETLOADAVG): Define as 1. |
3210 | (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions, | |
3211 | if __ELF__ is defined. | |
3212 | ||
2a3d7146 GM |
3213 | 1999-10-24 Gerd Moellmann <gerd@gnu.org> |
3214 | ||
3215 | * window.c (Fnext_window): Add a QUIT in the loop. | |
3216 | ||
8ac52782 GM |
3217 | 1999-10-23 Gerd Moellmann <gerd@gnu.org> |
3218 | ||
3219 | * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs): | |
3220 | New targets. | |
3221 | ||
05f0d15a DL |
3222 | 1999-10-22 Dave Love <fx@gnu.org> |
3223 | ||
3224 | * emacs.c (main): Enable profiling conditional on __linux also. | |
3225 | ||
882fb0e6 GM |
3226 | 1999-10-20 Gerd Moellmann <gerd@gnu.org> |
3227 | ||
3228 | * xrdb.c (x_load_resources): Set default resources for resource | |
3229 | classes instead of for the specific Emacs. | |
3230 | ||
b5f5bc31 GM |
3231 | 1999-10-19 Gerd Moellmann <gerd@gnu.org> |
3232 | ||
66f4dd69 GM |
3233 | * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h |
3234 | defines it that way. | |
3235 | ||
b5f5bc31 GM |
3236 | * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing |
3237 | if selected_frame is equal to Vterminal_frame. | |
3238 | ||
68c45bf0 PE |
3239 | 1999-10-19 Paul Eggert <eggert@twinsun.com> |
3240 | ||
3241 | Add support for large files, 64-bit Solaris, system locale codings. | |
3242 | ||
3243 | * Makefile.in (emacs): Set the LC_ALL environment variable to "C" | |
3244 | when dumping, so that the dumped Emacs doesn't have stray locale info. | |
3245 | (dired.o): Depend on systime.h. | |
3246 | (editfns.o): Depend on coding.h. | |
3247 | ||
3248 | * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c, | |
3249 | dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c, | |
3250 | keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c, | |
3251 | unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c, | |
3252 | w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c: | |
3253 | Include <config.h> before any system include files. | |
3254 | ||
3255 | * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c, | |
3256 | fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c, | |
3257 | m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c, | |
3258 | xmenu.c, xterm.c: | |
3259 | Do not include <stdlib.h>, as <config.h> does this now. | |
3260 | ||
3261 | * callproc.c (Fcall_process): | |
3262 | Synchronize messages locale before invoking strerror. | |
3263 | Decode resulting string with locale-coding-system. | |
3264 | ||
3265 | * coding.c (Vlocale_coding_system): New var. | |
3266 | (syms_of_coding): Adjust to above change. | |
3267 | (emacs_strerror): New function. | |
3268 | ||
3269 | * coding.h (emacs_strerror, Vlocale_coding_system): New decls. | |
3270 | ||
3271 | * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING, | |
3272 | HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN, | |
3273 | HAVE_STRSIGNAL): New macros. | |
3274 | (BITS_PER_LONG): Default to 64 if _LP64 is defined. | |
3275 | <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't. | |
3276 | ||
3277 | * dired.c: Include "systime.h". | |
3278 | (Ffile_attributes): Do not cast s.st_size to int; this loses | |
3279 | information if int is 32 bits but st_size and EMACS_INT are larger. | |
3280 | Treat large device numbers like large inode numbers. | |
3281 | ||
3282 | * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available. | |
3283 | ||
3284 | * editfns.c: Include coding.h. | |
3285 | (emacs_strftime): Remove decl. | |
3286 | (emacs_strftimeu): New decl. | |
3287 | (emacs_memftimeu): Renamed from emacs_memftime; new arg UT. | |
3288 | Use emacs_strftimeu instead of emacs_strftime. | |
3289 | (Fformat_time_string): Convert format string using | |
3290 | Vlocale_coding_system, and convert result back. Synchronize time | |
3291 | locale before invoking lower level function. Invoke | |
3292 | emacs_memftimeu, passing ut, instead of emacs_memftime. | |
3293 | ||
3294 | * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined. | |
3295 | (Vmessages_locale, Vprevious_messages_locale, Vtime_locale, | |
3296 | Vprevious_time_locale): New variables. | |
3297 | (main): Invoke setlocale early, so that initial error messages are | |
3298 | localized properly. But skip locale-setting if LC_ALL is "C". | |
3299 | Fix up locale when it's safe to do so. | |
3300 | (fixup_locale): Moved here from xterm.c. | |
3301 | (synchronize_locale, synchronize_time_locale, | |
3302 | synchronize_messages_locale): New functions. | |
3303 | (syms_of_emacs): Accommodate above changes. | |
3304 | ||
3305 | * fileio.c (report_file_error): Convert strerror output according | |
3306 | to Vlocale_coding_system. | |
3307 | (Finsert_file_contents): Check for arithmetic overflow in | |
3308 | computations that depend on file size. Report IO errors | |
3309 | with emacs_strerror, not strerror. | |
3310 | ||
3311 | * fns.c (Fgethash): Declare dflt parameter. | |
3312 | ||
3313 | * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H | |
3314 | is defined; that's config.h's job. | |
3315 | ||
3316 | * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64, | |
3317 | default these values to long, BITS_PER_LONG, and unsigned long. | |
3318 | (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT. | |
3319 | (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int. | |
3320 | (code_convert_string_norecord, fixup_locale, | |
3321 | synchronize_messages_locale, synchronize_time_locale, | |
3322 | emacs_open, emacs_close, emacs_read, emacs_write): New decls. | |
3323 | All Emacs callers of open, close, read, write changed to use | |
3324 | emacs_open, emacs_close, emacs_read, emacs_write. | |
3325 | ||
3326 | * lread.c (file_offset, file_tell): New macros. All uses of ftell | |
3327 | changed to file_tell. | |
3328 | (saved_doc_string_position, prev_saved_doc_string_position): Now | |
3329 | of type file_offset. | |
3330 | (init_lread): Do not fix locale here; fixup_locale now does this. | |
3331 | ||
3332 | * m/amdahl.h, s/usg5-4.h: | |
3333 | (NSIG): Remove. | |
3334 | (NSIG_MINIMUM): New macro. | |
3335 | ||
3336 | * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h, | |
3337 | m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h, | |
3338 | s/umips.h, s/usg5-4.h: | |
3339 | (SIGIO): Do not undef. | |
3340 | (BROKEN_SIGIO): New macro. | |
3341 | ||
3342 | * m/ustation.h: | |
3343 | (SIGTSTP): Do not undef. | |
3344 | (BROKEN_SIGTSTP): New macro. | |
3345 | ||
3346 | * s/gnu-linux.h: | |
3347 | (SIGPOLL, SIGURG): Do not undef. | |
3348 | (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros. | |
3349 | ||
3350 | * s/ptx4.h: | |
3351 | (SIGINFO): Do not undef. | |
3352 | (BROKEN_SIGINFO): New macros. | |
3353 | ||
3354 | * m/delta.h, s/ptx.h, s/template.h: Doc fix. | |
3355 | ||
3356 | * mktime.c, strftime.c: Update to glibc 2.1.2 version, with | |
3357 | some Emacs-related changes merged. | |
3358 | ||
3359 | * print.c (float_to_string): Prepend "-" to representation of a | |
3360 | NaN if the NaN is negative. | |
3361 | ||
3362 | * process.c (sys_siglist): Omit if HAVE_STRSIGNAL. | |
3363 | (wait_reading_process_input): Use emacs_strerror, not strerror. | |
3364 | ||
3365 | * process.c (status_message, sigchld_handler): Synchronize locale, | |
3366 | then use strsignal istead of sys_siglist. | |
3367 | * w32proc.c (sys_wait): Likewise. | |
3368 | ||
3369 | * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h, | |
3370 | s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h, | |
3371 | s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, | |
3372 | s/usg5-2.h, s/usg5-3.h, s/xenix.h: | |
3373 | (open, close, read, write, INTERRUPTIBLE_OPEN, | |
3374 | INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove. | |
3375 | ||
3376 | * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros. | |
3377 | ||
3378 | * sysdep.c (sys_read, sys_write, read, write, sys_close, close, | |
3379 | sys_open, open): Remove. | |
3380 | (emacs_open, emacs_close, emacs_read, emacs_write): Always define; | |
3381 | the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO | |
3382 | macros are no longer used. | |
3383 | (emacs_open): Renamed from sys_open. Merge BSD4_1 version. | |
3384 | (emacs_close): Renamed from sys_close. | |
3385 | (emacs_read): Renamed from sys_read. | |
3386 | (emacs_write): Renamed from sys_write. | |
3387 | (sys_siglist): Do not declare if HAVE_STRSIGNAL. | |
3388 | (dup2): Do not print error on failure; the real dup2 doesn't. | |
3389 | (strsignal): New function, defined if !HAVE_STRSIGNAL. | |
3390 | ||
3391 | * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO | |
3392 | is defined. | |
3393 | (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise. | |
3394 | (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM. | |
3395 | (strsignal): Declare if !HAVE_STRSIGNAL. | |
3396 | ||
3397 | * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros. | |
3398 | (ElfW): Define in terms of ElfExpandBitsW. | |
3399 | ||
3400 | * w32proc.c (sys_siglist): Remove decl. | |
3401 | ||
3402 | * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply | |
3403 | with ANSI C. | |
3404 | (display_string): Declare face_string_pos arg. | |
3405 | ||
3406 | * xfns.c (Fx_show_tip): Declare timeout param. | |
3407 | ||
3408 | * xterm.c: No need to include locale.h. | |
3409 | (x_alloc_lighter_color, x_setup_relief_color): | |
3410 | Pass arg as double, not float, for compatibility with ANSI C. | |
3411 | (fixup_locale): Move to emacs.c. | |
3412 | (x_term_init): Do not setlocale or fixup locale; the main program | |
3413 | does this now. | |
3414 | ||
2f0b74ea DL |
3415 | 1999-10-18 Dave Love <fx@gnu.org> |
3416 | ||
3417 | * doc.c (Fdocumentation_property): Gcpro `tem'. | |
3418 | ||
471aa4a0 KH |
3419 | 1999-10-18 Kenichi Handa <handa@etl.go.jp> |
3420 | ||
3421 | * lread.c (Fload): Calculate bytes of filename correctly. | |
3422 | (openp): Likewise. | |
3423 | ||
aca2020b KH |
3424 | 1999-10-18 Keisuke Nishida <kxn30@po.cwru.edu> |
3425 | ||
3426 | * print.c (print_preprocess): In case print-circle is nil, | |
3427 | add OBJ to Vprint_number_table only when OBJ is a symbol. | |
3428 | ||
1f5fe392 | 3429 | 1999-10-18 Kenichi Handa <handa@etl.go.jp> |
b843d1ae KH |
3430 | |
3431 | * coding.c (code_convert_string): Add record_unwind_protect to | |
3432 | assure setting inhibit_pre_post_conversion back to zero. Take | |
3433 | care of the multibyteness of the working buffer. | |
3434 | ||
3435 | * coding.c (inhibit_pre_post_conversion): New variable. | |
3436 | (setup_coding_system): If inhibit_pre_post_conversion is nonzero, | |
3437 | ignore post-read-conversion and pre-write-conversion property of | |
3438 | the coding system. | |
3439 | (code_convert_region_unwind): New function. | |
3440 | (code_convert_region): Set inhibit_pre_post_conversion to 1 while | |
3441 | running pre-write-conversion and post-read-conversion. | |
3442 | (code_convert_string): Likewise. | |
3443 | ||
cd876a91 GM |
3444 | 1999-10-17 Miles Bader <miles@gnu.org> |
3445 | ||
3446 | * editfns.c: Doc fix. | |
3447 | ||
3448 | 1999-10-17 Miles Bader <miles@gnu.org> | |
3449 | ||
3450 | * editfns.c (Fconstrain_to_field): Make sure we don't violate the | |
3451 | argument preconditions of find_before_next_newline in the case | |
3452 | where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS | |
3453 | was indeed at the edge. | |
3454 | ||
3455 | 1999-10-17 Miles Bader <miles@gnu.org> | |
3456 | ||
3457 | * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new | |
3458 | ESCAPE_FROM_EDGE parameter to Ffield_beginning. | |
3459 | ||
3460 | * editfns.c (text_property_eq, text_property_stickiness): Don't | |
3461 | use initializers for auto variables of type Lisp_Object. | |
3462 | (find_field): Likewise. Use braces around nested ifs. | |
3463 | (Fline_end_position): Store the raw eol in a variable, so that the | |
3464 | final expression doesn't look so ugly. | |
3465 | (Fconstrain_to_field): Doc fix. | |
3466 | (preceding_pos): Renamed from `preceeding_pos'. | |
3467 | (text_property_stickiness, find_field): Call preceding_pos, | |
3468 | not preceeding_pos. | |
3469 | ||
3470 | 1999-10-17 Miles Bader <miles@gnu.org> | |
3471 | ||
3472 | * editfns.c (Ffield_string_no_properties): New function. | |
3473 | (text_property_stickiness, preceeding_pos): New functions. | |
3474 | (Ffield_string): Remove PROPS parameter. | |
3475 | (find_field): Add MERGE_AT_BOUNDARY parameter. | |
3476 | Rewrite to use stickiness of `field' property to resolve | |
3477 | ambiguous cases. | |
3478 | (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter. | |
3479 | (Fconstrain_to_field): Likewise. | |
3480 | (syms_of_editfns): Init Sfield_string_no_properties. | |
3481 | (Ffield_string, Ferase_field, Ffield_end): | |
3482 | Supply new MERGE_AT_BOUNDARY argument to find_field. | |
3483 | (Fline_beginning_position, Fline_end_position): Supply new | |
3484 | ESCAPE_FROM_EDGE parameter to Fconstrain_to_field. | |
3485 | Pass a value of Qt for the ONLY_IN_LINE argument to | |
3486 | Fconstrain_to_field (only matters if N != 1). | |
3487 | * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter | |
3488 | to Fconstrain_to_field. | |
3489 | ||
3490 | * minibuf.c (Fminibuffer_complete_word): Use | |
3491 | Ffield_beginning to find the prompt end. | |
3492 | ||
3493 | 1999-10-17 Miles Bader <miles@gnu.org> | |
3494 | ||
3495 | * editfns.c (Fconstrain_to_field): Add get/set-current-point | |
3496 | behavior when NEW_POS is nil. | |
3497 | (find_field): Use XSETFASTINT instead of make_number. | |
3498 | * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty | |
3499 | input string by seeing where the field begins, instead of | |
3500 | looking at text-properties. | |
3501 | ||
3502 | 1999-10-17 Miles Bader <miles@gnu.org> | |
3503 | ||
3504 | * editfns.c (Qfield): New variable. | |
3505 | (find_field, Ferase_field, Ffield_string, | |
3506 | Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions. | |
3507 | (Fline_beginning_position, Fline_end_position): Constrain to any field. | |
3508 | (make_buffer_string_both): Remove minibuffer-prompt hack. | |
3509 | (syms_of_editfns): Initialize Qfield, and subr entries for | |
3510 | field functions above. | |
3511 | * minibuf.c (read_minibuf): Don't save minibuffer prompt length on | |
3512 | minibuf_save_list. | |
3513 | Don't initialize minibuffer prompt length. | |
3514 | Wrap prompt text-properties around the entire prompt. | |
3515 | Add 'prompt text-property to prompt. | |
3516 | Get final value with Ffield_string instead of make_buffer_string. | |
3517 | (read_minibuf_unwind): Don't restore minibuffer prompt length from | |
3518 | minibuf_save_list. | |
3519 | (do_completion): Get minibuffer input with Ffield_string | |
3520 | instead of Fbuffer_string. | |
3521 | Erase minibuffer input with Ferase_field instead of erase_buffer. | |
3522 | (Fminibuffer_complete_and_exit): Likewise. | |
3523 | Test whether buffer is empty by looking for the 'prompt text | |
3524 | property at the end. | |
3525 | Set prompt length by looking for the end of the prompt text property, | |
3526 | and save prompt length for later use (since there is no longer a | |
3527 | buffer variable to get it from). | |
3528 | (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed. | |
3529 | (syms_of_minibuf): Remove initializations of | |
3530 | Sminibuffer_prompt_width and Sminibuffer_prompt_end. | |
3531 | * buffer.h (struct buffer): Remove prompt_end_charpos field. | |
3532 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer): | |
3533 | Don't initialize prompt_end_charpos field. | |
3534 | * syntax.c (Fforward_word): Likewise. | |
3535 | Constrain to any field. | |
3536 | ||
3f6f7508 GM |
3537 | 1999-10-16 Gerd Moellmann <gerd@gnu.org> |
3538 | ||
3539 | * window.c (enum save_restore_action): New. | |
3540 | (save_restore_orig_size): Change parameter list. Add | |
3541 | functionality to check for valid orig_top and orig_height members | |
3542 | in a window tree. | |
3543 | (grow_mini_window): Call save_restore_orig_size with new parameter | |
3544 | list. | |
3545 | (shrink_mini_window): Restore old window sizes only if old | |
3546 | size information is valid in all windows in a window tree. | |
3547 | ||
06482119 GM |
3548 | 1999-10-15 Gerd Moellmann <gerd@gnu.org> |
3549 | ||
2710454d GM |
3550 | * xmenu.c (set_frame_menubar): Don't call |
3551 | x_set_menu_resources_from_menu_face here. | |
3552 | (update_frame_menubar): Call x_set_menu_resources_from_menu_face. | |
3553 | ||
06482119 GM |
3554 | * xfns.c (gif_load): Fix handling of interlaced GIFs. |
3555 | ||
17fa2837 DL |
3556 | 1999-10-14 Dave Love <fx@gnu.org> |
3557 | ||
3558 | * xdisp.c (handle_fontified_prop): GCPRO `pos'. | |
3559 | ||
45f93416 GM |
3560 | 1999-10-14 Gerd Moellmann <gerd@gnu.org> |
3561 | ||
3562 | * process.c (Fopen_network_stream): Don't loop if gethostbyname | |
3563 | fails and h_errno is TRY_AGAIN. | |
3564 | ||
c765b723 DL |
3565 | 1999-10-13 Dave Love <fx@gnu.org> |
3566 | ||
3567 | * filelock.c (lock_file): Move gcpro of `fn'. | |
3568 | ||
dace7f4e GM |
3569 | 1999-10-10 Gerd Moellmann <gerd@gnu.org> |
3570 | ||
3571 | * keyboard.c (auto-save-interval): Fix documentation. | |
3572 | ||
83c8f461 | 3573 | 1999-10-09 Richard M. Stallman <rms@gnu.org> |
73fb36f1 RS |
3574 | |
3575 | * print.c (print): When removing objects from Vprint_number_table, | |
3576 | only scan the newly added objects. | |
3577 | (print_preprocess): If OBJ is a gensym, and print-continuous-numbering, | |
3578 | unconditionally force it to stay in the table. | |
3579 | ||
85177c86 GM |
3580 | 1999-10-09 Gerd Moellmann <gerd@gnu.org> |
3581 | ||
3582 | * xfns.c (prepare_image_for_display): Don't try to load image if | |
3583 | loading it failed before. | |
3584 | (lookup_image, prepare_image_for_display): Remember if loading the | |
3585 | image failed. | |
3586 | (xpm_load): Add missing UNBLOCK_INPUT. | |
3587 | ||
3588 | * dispextern.h (struct image): New member load_failed_p. | |
3589 | ||
11e4de5d SM |
3590 | 1999-10-08 Stefan Monnier <monnier@cs.yale.edu> |
3591 | ||
f28eba7b | 3592 | * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file' |
11e4de5d SM |
3593 | in the docstring. |
3594 | ||
f1da8f06 GM |
3595 | 1999-10-08 Gerd Moellmann <gerd@gnu.org> |
3596 | ||
3597 | * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>: | |
3598 | Don't call XSetInputFocus because that can generate additional | |
3599 | FocusIn events. | |
3600 | ||
c37bbd4f GM |
3601 | 1999-10-07 Jeffrey C Honig <jch@bsdi.com> |
3602 | ||
3603 | * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP. | |
3604 | ||
83c8f461 | 3605 | 1999-10-07 Richard M. Stallman <rms@gnu.org> |
78cc5c64 GM |
3606 | |
3607 | * process.c (wait_reading_process_input): When trying to suck | |
3608 | input from one process, for accept-process-output, | |
3609 | exit that loop if we get EAGAIN or EWOULDBLOCK. | |
3610 | ||
577d9e2f GM |
3611 | 1999-10-07 Gerd Moellmann <gerd@gnu.org> |
3612 | ||
3613 | * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p. | |
3614 | (Fbitmap_spec_p): Replaces Fpixmap_spec_p. | |
3615 | (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of | |
3616 | Fpixmap_spec_p and Qpixmap_spec_p. | |
3617 | (load_face_colors, check_lface_attrs, | |
3618 | merge_face_vector_with_property, | |
3619 | Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p. | |
3620 | (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr | |
3621 | Fbitmap_spec_p. | |
3622 | ||
f5737ad2 GM |
3623 | 1999-10-07 Gerd Moellmann <gerd@gnu.org> |
3624 | ||
3625 | * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of | |
3626 | MODE_LINE_FACE_ID. | |
3627 | ||
3628 | * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers. | |
3629 | (struct x_resources) [USE_X_TOOLKIT]: New. | |
3630 | (xm_apply_resources, xm_set_menu_resources_from_menu_face) | |
3631 | [USE_MOTIF]: New. | |
3632 | (xl_apply_resources, xl_set_menu_resources_from_menu_face) | |
3633 | [USE_LUCID]: New. | |
3634 | (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New. | |
3635 | (Qmenu): New. | |
3636 | (syms_of_xfaces): Initialize Qmenu. | |
3637 | (realize_basic_faces): Realize face `menu'. | |
3638 | (resolve_face_name): New. | |
3639 | (lface_from_face_name): Use it. | |
3640 | (Finternal_set_lisp_face_attribute): Ditto. | |
3641 | (Fpixmap_spec_p): Rewritten. Extend doc string. | |
3642 | ||
3643 | * xmenu.c (set_frame_menubar, xmenu_show): Call | |
3644 | x_set_menu_resources_from_menu_face. | |
3645 | ||
3646 | * dispextern.h (enum face_id): Add MENU_FACE_ID. | |
3647 | (toplevel): Include X11/Intrinsic.h. | |
3648 | ||
6a1aa823 DL |
3649 | 1999-10-03 Ken'ichi Handa <handa@gnu.org> |
3650 | ||
3651 | * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR | |
3652 | correctly. | |
3653 | ||
26901792 DL |
3654 | 1999-09-30 Kenichi Handa <handa@etl.go.jp> |
3655 | ||
3656 | * category.c (modify_lower_category_set): Set default value of | |
3657 | TABLE correctly. | |
3658 | ||
3659 | * minibuf.c (Fminibuffer_complete_word): Calculate string byte | |
3660 | size correctly. | |
3661 | ||
3662 | 1999-09-29 Gerd Moellmann <gerd@gnu.org> | |
3663 | ||
3664 | * editfns.c (Fpropertize): Renamed from Fproperties. | |
3665 | ||
3666 | 1999-09-29 Gerd Moellmann <gerd@gnu.org> | |
3667 | ||
3668 | * xdisp.c (resize_mini_window): Do nothing if frame is an X | |
3669 | frame that hasn't been initialized yet. | |
3670 | ||
83c8f461 | 3671 | 1999-09-28 Richard M. Stallman <rms@gnu.org> |
a04f1a93 PR |
3672 | |
3673 | * keymap.c (Fsingle_key_description): Make tem big enough. | |
3674 | (describe_buffer_bindings): Make buf big enough. | |
3675 | ||
83c8f461 | 3676 | 1999-09-27 Richard M. Stallman <rms@gnu.org> |
d177c583 PR |
3677 | |
3678 | * intervals.c (get_local_map): Use indirect_function, | |
3679 | not Findirect_function. | |
3680 | ||
26901792 DL |
3681 | 1999-09-27 Dave Love <fx@gnu.org> |
3682 | ||
3683 | * cm.h: Remove unneeded declaration of ospeed. | |
3684 | ||
3685 | 1999-09-26 Gerd Moellmann <gerd@gnu.org> | |
3686 | ||
3687 | * lisp.h (toplevel): Add prototype for | |
3688 | next_single_char_property_change. | |
3689 | ||
3690 | * textprop.c (next_single_char_property_change): New. | |
3691 | ||
3692 | * xdisp.c (display_prop_end, invisible_text_between_p): Use | |
3693 | next_single_char_property_change. | |
3694 | ||
3695 | 1999-09-25 Gerd Moellmann <gerd@gnu.org> | |
3696 | ||
3697 | * editfns.c (Fproperties): New. | |
3698 | (syms_of_editfns): Defsubr it. | |
3699 | ||
3700 | * xfns.c (lookup_image): Set image's timestamp because it's | |
3701 | used when we look it up. | |
3702 | ||
3703 | 1999-09-23 Gerd Moellmann <gerd@gnu.org> | |
3704 | ||
3705 | * window.c (enlarge_window): Add window parameter instead of using | |
3706 | selected_window. | |
3707 | (Fdisplay_buffer): Call it with window parameter instead of | |
3708 | setting selected_window. | |
3709 | (Fenlarge_window, Fshrink_window): Ditto. | |
3710 | (shrink_mini_window): If there is no recorded height and position | |
3711 | info, resize mini-window to height 1. | |
3712 | ||
3713 | * xfns.c (image_error): Use add_to_log. | |
3714 | ||
3715 | * xfaces.c (load_pixmap): Call add_to_log without frame parameter. | |
3716 | (load_face_font_or_fontset, load_color, | |
3717 | merge_face_vector_with_property): Ditto. | |
3718 | ||
3719 | * dispextern.h: Add prototype for add_to_log. | |
3720 | ||
3721 | * xfaces.c (add_to_log): Move to xdisp.c. | |
3722 | ||
3723 | * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame | |
3724 | parameter. | |
3725 | ||
3726 | 1999-09-23 Gerd Moellmann <gerd@gnu.org> | |
3727 | ||
3728 | * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef | |
3729 | USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS. | |
3730 | ||
3731 | * xdisp.c (resize_mini_window): Use grow_mini_window and | |
3732 | shrink_mini_window. | |
3733 | ||
3734 | * window.c (window_min_size): Add parameter ignore_fixed_p. | |
3735 | (change_window_height): Call window_min_size with new parameter. | |
3736 | (shrink_window_lowest_first, save_restore_orig_size, | |
3737 | grow_mini_window, shrink_mini_window): New. | |
3738 | (make_window, replace_window): Initialize orig_top and | |
3739 | orig_height. | |
3740 | (enlarge_window): Renamed from change_window_height. Make it | |
3741 | static. | |
3742 | (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call | |
3743 | enlarge_window instead of change_window_height. | |
3744 | ||
3745 | * window.h (struct window): New members orig_top, orig_height. | |
3746 | (toplevel): Add prototypes for grow_mini_window and | |
3747 | shrink_mini_window. Remove prototype for change_window_height. | |
3748 | ||
3749 | 1999-09-21 Eli Zaretskii <eliz@gnu.org> | |
3750 | ||
3751 | * frame.c (frame_name_fnn_p): Fix previous change. | |
3752 | ||
3753 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
3754 | ||
3755 | * minibuf.c (toplevel): Move include of stdio.h to other includes. | |
3756 | ||
3757 | * dispnew.c (direct_output_for_insert): Cast arguments to | |
3758 | safe_bcopy to char *. | |
3759 | ||
3760 | * lread.c (readchar): Remove unused variables. | |
3761 | (read_filtered_event, read1, Fmapatoms): Ditto. | |
3762 | (toplevel): Include intervals.h. | |
3763 | ||
3764 | * eval.c (Fsignal): Remove unused variables. | |
3765 | (Fcommandp, do_autoload): Ditto. | |
3766 | ||
3767 | * lisp.h: Add prototype for safe_bcopy, fatal. | |
3768 | ||
3769 | * editfns.c (init_editfns): Remove unused variables. | |
3770 | (Fgoto_char, Fchar_after, Fformat): Ditto. | |
3771 | (message_text, message_length): Put in #ifndef HAVE_MENUS. | |
3772 | ||
3773 | * data.c (find_symbol_value): Remove unused variables. | |
3774 | (Faref, Fstring_to_number): Ditto. | |
3775 | (toplevel): Include stdio.h. | |
3776 | (Fnumber_to_string): Cast XINT to long for %ld. | |
3777 | ||
3778 | * casefiddle.c (casify_object): Remove unused variables. | |
3779 | (casify_region): Ditto. | |
3780 | ||
3781 | * filelock.c (get_boot_time): Put local variable used in | |
3782 | conditinally compiled section in #ifdef. | |
3783 | (toplevel): Include stdio.h. | |
3784 | ||
3785 | * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector, | |
3786 | keys_of_keymap, syms_of_keymap): Remove unused variables. | |
3787 | ||
3788 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
3789 | ||
3790 | * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows | |
3791 | whose corresponding window rows have been disabled in | |
3792 | try_window_id. | |
3793 | ||
3794 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
3795 | ||
3796 | * xdisp.c (compute_window_start_on_continuation_line): Handle case | |
3797 | that window start is out of range. | |
3798 | (handle_display_prop, handle_single_display_prop): Replace | |
3799 | marginal area specifications like `left-margin' with `(margin | |
3800 | left-margin)'. | |
3801 | (Qmargin): New. | |
3802 | (syms_of_xdisp): Initialize Qmargin. | |
3803 | ||
3804 | 1999-09-19 Gerd Moellmann <gerd@gnu.org> | |
3805 | ||
3806 | * syntax.c (update_syntax_table, find_defun_start, back_comment, | |
3807 | describe_syntax, skip_chars): Remove unused variables. | |
3808 | (back_comment, forw_comment): Add braces to if-statement with | |
3809 | if-else as dependent statement. | |
3810 | ||
3811 | * process.c (list_processes_1): Remove unused variables. | |
3812 | (Fopen_network_stream, create_process): Add parentheses to | |
3813 | conditional expressions. | |
3814 | (create_process): Put declaration of sigchld in #if 0. | |
3815 | (Fopen_network_stream): Removed unused variables. | |
3816 | (Fopen_network_stream, wait_reading_process_input, | |
3817 | wait_reading_process_input, send_process, send_process): Ditto. | |
3818 | (toplevel): Add prototypes for set_waiting_for_input and | |
3819 | keyboard_bit_set. | |
3820 | ||
3821 | * abbrev.c (Fexpand_abbrev): Remove unused variables. | |
3822 | ||
3823 | * textprop.c (Fset_text_properties): Remove unused variables. | |
3824 | (text_property_list, verify_interval_modification, | |
3825 | interval_has_all_properties): Ditto. | |
3826 | ||
3827 | * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
3828 | (Fcall_process): Remove unused variable. | |
3829 | ||
3830 | * keyboard.c (Frecursive_edit): Remove unused variable. | |
3831 | (command_loop_1, safe_run_hooks, kbd_buffer_get_event, | |
3832 | timer_check, make_lispy_event, menu_bar_items, | |
3833 | menu_bar_one_keymap, menu_bar_item, parse_menu_item, | |
3834 | parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence, | |
3835 | kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt, | |
3836 | read_key_sequence): Ditto. Fread_key_sequence, | |
3837 | Fread_key_sequence_vector, Fsuspend_emacs): Ditto. | |
3838 | (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only | |
3839 | used when GOBBLE_FIRST_EVENT is defined in #ifdef | |
3840 | (Fexecute_extended_command): Cast XINT to long for %ld. | |
3841 | (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
3842 | (toplevel): Include sys/types.h. | |
3843 | ||
3844 | * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom. | |
3845 | (toplevel): Add prototypes for stuff_char, and | |
3846 | code_convert_string_norecord. | |
3847 | ||
3848 | 1999-09-19 Gerd Moellmann <gerd@gnu.org> | |
3849 | ||
3850 | * buffer.h: Add prototype for r_re_alloc. | |
3851 | ||
3852 | * insdel.c (copy_text): Removed unused variables. | |
3853 | (count_combining_after, count_combining_after, insert_1_both, | |
3854 | insert_from_string_1, insert_from_buffer_1, check_markers): Ditto. | |
3855 | (adjust_after_replace, replace_range): Add parentheses to logical | |
3856 | expressions. Remove unused variables. | |
3857 | (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical | |
3858 | expression. | |
3859 | ||
3860 | * alloc.c (Fgarbage_collect): Remove unused variable. | |
3861 | (compact_strings): Add parentheses around assignments in | |
3862 | conditional context. | |
3863 | (toplevel): Put declaration of unused function clear_marks | |
3864 | in #if 0 like its definition. | |
3865 | ||
3866 | * lisp.h: Add prototype for shrink_regexp_cache, | |
3867 | sweep_weak_hash_tables. | |
3868 | ||
3869 | 1999-09-19 Dave Love <fx@gnu.org> | |
3870 | ||
3871 | * process.c (Fopen_network_stream): Use strerror, not gai_strerror. | |
3872 | ||
3873 | * doc.c (read_bytecode_char): Declare arg. | |
3874 | ||
3875 | * lisp.h: Declare Fcurrent_message, Fmake_temp_name, | |
3876 | read_bytecode_char, Fx_hide_busy_cursor, getloadavg. | |
3877 | ||
3878 | 1999-09-18 Richard Stallman <rms@gnu.org> | |
3879 | ||
3880 | * xdisp.c (echo_area_display): Turn off code that returned | |
3881 | without doing anything when using a terminal frame. | |
3882 | ||
83c8f461 | 3883 | 1999-09-17 Richard M. Stallman <rms@gnu.org> |
27271329 PR |
3884 | |
3885 | * unexelf.c (unexec): Don't get confused by a short section | |
3886 | just before the bss section. | |
3887 | ||
26901792 DL |
3888 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> |
3889 | ||
3890 | * emacs.c (main): Remove unused variables. | |
3891 | (sort_args, Fkill_emacs, Fkill_emacs): Ditto. | |
3892 | ||
3893 | * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings, | |
3894 | init_fileio_once, syms_of_sound, init_xfns, init_fns | |
3895 | init_sound, check_message_stack. | |
3896 | ||
3897 | * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
3898 | ||
3899 | * intervals.c (rotate_right, rotate_left): Add braces to avoid | |
3900 | ambiguous else warning. | |
3901 | (split_interval_left): Remove unused variables. | |
3902 | (previous_interval, adjust_intervals_for_deletion, | |
3903 | set_point_both, set_point_both, set_intervals_multibyte_1): Ditto. | |
3904 | (icount, idepth, zero_length): Move into #if 0 section below | |
3905 | original position where these are used. | |
3906 | ||
3907 | * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free. | |
3908 | ||
3909 | * buffer.c (Fkill_buffer): Remove unused variables. | |
3910 | (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists, | |
3911 | fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change, | |
3912 | init_buffer_once, (syms_of_buffer): Ditto. | |
3913 | ||
3914 | * xrdb.c (get_fallback): Remove unused variable. | |
3915 | (x_load_resources): Ditto. Put local variable used for Motif only | |
3916 | in #ifdef USE_MOTIF. | |
3917 | ||
3918 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> | |
3919 | ||
3920 | * minibuf.c (read_minibuf): Remove unused variables. | |
3921 | (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto. | |
3922 | (do_completion): Move assignment out of conditional context. | |
3923 | (Fdisplay_completion_list): Add parentheses to conditional expression. | |
3924 | ||
3925 | * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h. | |
3926 | ||
3927 | * lisp.h: Add prototype for no_switch_window. | |
3928 | ||
3929 | * window.c (Fset_window_buffer): Remove unused variables. | |
3930 | (Fset_window_margins): Ditto. | |
3931 | ||
3932 | * xdisp.c (resize_mini_window): Temporarily set the selected | |
3933 | window's or Vminibuf_scroll_window's height to "fixed" around | |
3934 | the call the change_window_height. | |
3935 | ||
3936 | * window.c (window_fixed_size_p): Check window's height_fixed_p | |
3937 | flag. | |
3938 | ||
3939 | * window.h (struct window): New member height_fixed_p. | |
3940 | ||
3941 | * dispnew.c (direct_output_forward_char): Don't use this method | |
3942 | if showing a message or a message was just cleared because we | |
3943 | might need to resize the mini-window. | |
3944 | ||
3945 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> | |
3946 | ||
3947 | * frame.c (Fdelete_frame): Correct local variable pointing to | |
3948 | selected frame after selecting new frame. | |
3949 | ||
3950 | 1999-09-15 Richard Stallman <rms@gnu.org> | |
3951 | ||
3952 | * puresize.h (BASE_PURESIZE): Increase to 525000. | |
3953 | ||
3954 | * filelock.c (Vtemporary_file_directory): New variable. | |
3955 | (syms_of_filelock): Set up Lisp variable. | |
3956 | ||
3957 | 1999-09-15 Gerd Moellmann <gerd@gnu.org> | |
3958 | ||
3959 | * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while. | |
3960 | (encode_terminal_code): Remove unused variables. | |
3961 | (turn_off_face): Ditto. | |
3962 | (toplevel): Include termcap.h if HAVE_TERMCAP_H. | |
3963 | ||
3964 | * dispnew.c (update_frame_line): If writing whole desired line, | |
3965 | don't clear to end of line if already at the end. | |
3966 | ||
3967 | 1999-09-15 Gerd Moellmann <gerd@gnu.org> | |
3968 | ||
3969 | * xdisp.c (resize_mini_window): Don't report changed window | |
3970 | height if it actually hasn't changed. | |
3971 | ||
3972 | * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove | |
3973 | unused variables. | |
3974 | (mark_shell_size_user_specified): Put in #if 0 because not used. | |
3975 | (create_frame_gcs): Put in #if 0 because currently unused. | |
3976 | (first_frame_p): Ditto. | |
3977 | ||
3978 | * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu, | |
3979 | single_submenu, update_frame_menubar, set_frame_menubar, | |
3980 | free_frame_menubar, xmenu_show, xdialog_show): Remove unused | |
3981 | variables. | |
3982 | ||
3983 | * print.c (PRINTFULLP): Removed because it is no longer used and | |
3984 | is misleading. | |
3985 | (Ferror_message_string): Remove unused variables. | |
3986 | (print_object): Cast argument of sprintf to long for `%ld' | |
3987 | specifier. Remove unused variable. | |
3988 | ||
3989 | 1999-09-14 Gerd Moellmann <gerd@gnu.org> | |
3990 | ||
3991 | * sound.c (Fplay_sound): Remove usused variables. | |
3992 | (be2hs): Put in #if 0 because it's currently not used. | |
3993 | ||
3994 | 1999-09-14 Ken Raeburn <raeburn@gnu.org> | |
3995 | ||
3996 | * print.c (Ferror_message_string, print_error_message, | |
3997 | print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit | |
3998 | member access. | |
3999 | ||
4000 | 1999-09-14 Gerd Moellmann <gerd@gnu.org> | |
4001 | ||
4002 | * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while. | |
4003 | ||
4004 | * frame.c (Fnext_frame): Remove unused variable(s). | |
4005 | (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto. | |
4006 | (store_frame_param): Add parentheses to conditional expression. | |
4007 | (Fmodify_frame_parameters): Remove unused variables. | |
4008 | (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position): | |
4009 | Ditto. | |
4010 | ||
4011 | * xfns.c (x_set_background_color): Remove unused variable(s). | |
4012 | (x_set_border_pixel): Ditto. | |
4013 | (x_set_menu_bar_lines): Put local variable used only for | |
4014 | non-toolkit case in #ifdef/#endif. | |
4015 | (x_figure_window_size): Remove unused variable(s). | |
4016 | (x_figure_window_size, x_window, lookup_image, | |
4017 | xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load, | |
4018 | png_load, jpeg_load, gif_load, x_create_tip_frame, | |
4019 | x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto. | |
4020 | ||
4021 | * xterm.c (x_scroll_bar_handle_click): Compile only if | |
4022 | not USE_TOOLKIT_SCROLL_BARS. | |
4023 | (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto. | |
4024 | ||
4025 | * dispextern.h: Add prototypes for gamma_correct and | |
4026 | x_kill_gs_process. | |
4027 | ||
4028 | * xterm.c (x_produce_glyphs): Remove unused variable(s). | |
4029 | (x_alloc_nearest_color_for_widget, note_tool_bar_highlight, | |
4030 | x_set_toolkit_scroll_bar_thumb): Ditto. | |
4031 | (x_scroll_bar_create): Move local variable to the | |
4032 | conditionally compiled section of code where it is used. | |
4033 | (x_scroll_bar_create): Remove unused variable(s). | |
4034 | (x_scroll_bar_remove, XTread_socket): Ditto. | |
4035 | (XTread_socket) <ConfigureNotify>: Move variables used for | |
4036 | non-toolkit case into conditionally compiled section of code. | |
4037 | ||
4038 | * window.h (freeze_window_starts): Fix typo in prototype. | |
4039 | ||
4040 | * xdisp.c (display_echo_area_1, try_window_id): Remove unused | |
4041 | variable(s). | |
4042 | ||
4043 | * lisp.h: Add prototype for debug_print. | |
4044 | ||
4045 | * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition | |
4046 | to use do-while. | |
4047 | ||
4048 | * fns.c (SXHASH_COMBINE): Add missing parentheses. | |
4049 | (Fchar_table_range, Fset_char_table_default, mapcar1, | |
4050 | Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s). | |
4051 | ||
4052 | * lisp.h: Add prototype for getloadavg. | |
4053 | ||
4054 | 1999-09-14 Andreas Schwab <schwab@gnu.org> | |
4055 | ||
4056 | * process.c (Fopen_network_stream): Avoid socket decriptor leak. | |
4057 | ||
4058 | * lisp.h: Declare close_file_unwind. | |
4059 | ||
4060 | 1999-09-14 Richard Stallman <rms@gnu.org> | |
4061 | ||
4062 | * filelock.c (get_boot_time): Make the temp name in the proper dir. | |
4063 | ||
4064 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
4065 | ||
4066 | * xdisp.c (redisplay_window): Make sure start_at_line_beg | |
4067 | is always set correctly. | |
4068 | ||
4069 | 1999-09-13 Dave Love <fx@gnu.org> | |
4070 | ||
4071 | * xdisp.c (move_it_in_display_line_to): Make type consistent with | |
4072 | declaration. | |
4073 | ||
4074 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
4075 | ||
4076 | * xdisp.c (QCfile): Move here from xfns.c. | |
4077 | (syms_of_xdisp): Initialize it. | |
4078 | (message2_nolog): Change for Lisp_Object selected_frame. | |
4079 | (message3_nolog, message_with_string, message, | |
4080 | setup_echo_area_for_printing, truncate_echo_area, | |
4081 | prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto. | |
4082 | ||
4083 | 1999-09-13 Dave Love <fx@gnu.org> | |
4084 | ||
4085 | * xterm.c: Don't continue #define args for benefit of old cc. | |
4086 | (xt_action_hook): Indent #error for benefit of K&R cc. | |
4087 | ||
4088 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
4089 | ||
4090 | * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame. | |
4091 | (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto. | |
4092 | (XRINGBELL): Removed. | |
4093 | ||
4094 | 1999-09-13 Dave Love <fx@gnu.org> | |
4095 | ||
4096 | * xfns.c (x_put_x_image): Make type consistent with declaration. | |
4097 | ||
4098 | * fns.c (Fmake_hash_table): Fix string continuation. | |
4099 | ||
4100 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
4101 | ||
4102 | * xfns.c (QCfile): Moved to xdisp.c. | |
4103 | (syms_of_xfns): Don't initialize QCfile. | |
4104 | (check_x_frame): Change for Lisp_Object selected_frame. | |
4105 | (check_x_display_info, x_get_resource_string): Ditto. | |
4106 | ||
4107 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
4108 | ||
4109 | * minibuf.c (choose_minibuf_frame): Don't try to set the | |
4110 | mini-buffer window's buffer, if the buffer is invalid. | |
4111 | ||
4112 | * xfns.c (QCfile): Moved to xdisp.c. | |
4113 | (syms_of_xfns): Don't initialize QCfile. | |
4114 | ||
4115 | * xdisp.c (QCfile): Move here from xfns.c. | |
4116 | (syms_of_xdisp): Initialize it. | |
4117 | ||
4118 | * lisp.h (selected_frame): Add external declaration. | |
4119 | ||
4120 | * xselect.c (x_own_selection): Change for Lisp_Object selected_frame. | |
4121 | (Fx_store_cut_buffer_internal): Ditto. | |
4122 | (Fx_rotate_cut_buffers_internal): Ditto. | |
4123 | ||
4124 | * xfaces.c (frame_or_selected_frame): Change for Lisp_Object | |
4125 | selected_frame. | |
4126 | (Finternal_set_lisp_face_attribute): Ditto. | |
4127 | (Finternal_get_lisp_face_attribute): Ditto. | |
4128 | (Finternal_lisp_face_empty_p): Ditto. | |
4129 | (Fdump_face): Ditto. | |
4130 | ||
4131 | * term.c (OUTPUT): Change for Lisp_Object selected_frame. | |
4132 | (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes, | |
4133 | set_terminal_window, set_scroll_region, reassert_line_highlight, | |
4134 | change_line_highlight, cursor_to, raw_cursor_to, clear_to_end, | |
4135 | clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw, | |
4136 | encode_terminal_code, write_glyphs, term_init): Ditto. | |
4137 | ||
4138 | * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame. | |
4139 | (kbd_input_ast, read_input_waiting): Ditto. | |
4140 | ||
4141 | * minibuf.c (choose_minibuf_frame): Change for Lisp_Object | |
4142 | selected_frame. | |
4143 | (read_minibuf): Ditto. | |
4144 | ||
4145 | * keyboard.c (command_loop_1): Change for Lisp_Object | |
4146 | selected_frame. | |
4147 | (cmd_error_internal, command_loop_1, read_char, | |
4148 | kbd_buffer_get_event, read_avail_input, | |
4149 | read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs, | |
4150 | interrupt_signal, quit_throw_to_read_char): Ditto. | |
4151 | ||
4152 | * fontset.c (Ffont_info): Change for Lisp_Object selected_frame. | |
4153 | (Ffontset_info): DItto. | |
4154 | ||
4155 | * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame. | |
4156 | ||
4157 | * dispnew.c (selected_frame): Make it a Lisp_Object. | |
4158 | (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame. | |
4159 | (direct_output_for_insert, direct_output_forward_char, | |
4160 | init_display): Ditto. | |
4161 | ||
4162 | * data.c (swap_in_symval_forwarding): Change for Lisp_Object | |
4163 | selected_frame. | |
4164 | (set_internal): Ditto. | |
4165 | ||
4166 | * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame. | |
4167 | (record_buffer): Ditto. | |
4168 | ||
4169 | * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME. | |
4170 | (do_switch_frame): Change for Lisp_Object selected_frame. | |
4171 | (Fselected_frame): Ditto. | |
4172 | (Fframe_first_window): Use SELECTED_FRAME. | |
4173 | (Fframe_root_window): Change for Lisp_Object selected_frame. | |
4174 | (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame, | |
4175 | Fprevious_frame, other_visible_frames, Fdelete_frame, | |
4176 | Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible, | |
4177 | Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame, | |
4178 | Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height, | |
4179 | Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width, | |
4180 | Fset_frame_height, Fset_frame_width): Ditto. | |
4181 | ||
4182 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
4183 | ||
4184 | * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame. | |
4185 | (message3_nolog, message_with_string, message, | |
4186 | setup_echo_area_for_printing, truncate_echo_area, | |
4187 | prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto. | |
4188 | ||
4189 | * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame. | |
4190 | (Fx_popup_dialog): Ditto. | |
4191 | ||
4192 | * xfns.c (check_x_frame): Change for Lisp_Object selected_frame. | |
4193 | (check_x_display_info, x_get_resource_string): Ditto. | |
4194 | ||
4195 | * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame. | |
4196 | (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto. | |
4197 | (XRINGBELL): Removed. | |
4198 | ||
4199 | * window.c (Fminibuffer_window): Change for Lisp_Object | |
4200 | selected_frame. | |
4201 | (Fwindow_at, Fprevious_window, window_loop, select_window_1, | |
4202 | display_buffer_1, Fdisplay_buffer, temp_output_buffer_show, | |
4203 | Fcurrent_window_configuration, init_window_once): Ditto. | |
4204 | ||
4205 | * frame.h (SELECTED_FRAME): New. | |
4206 | ||
4207 | 1999-09-12 Ken Raeburn <raeburn@gnu.org> | |
4208 | ||
4209 | * category.c (word_boundary_p): Use XCAR and XCDR. | |
4210 | * ccl.c (ccl_driver, resolve_symbol_ccl_program, | |
4211 | Fregister_code_conversion_map): Likewise. | |
4212 | * coding.c (setup_coding_system, detect_coding_system, | |
4213 | Ffind_operation_coding_system, Fset_coding_priority_internal): | |
4214 | Likewise. | |
4215 | * doc.c (get_doc_string, Fdocumentation, | |
4216 | store_function_docstring): Likewise. | |
4217 | * editfns.c (save_restriction_restore): Likewise. | |
4218 | * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger, | |
4219 | skip_debugger, find_handler_clause, Fautoload, Fapply, | |
4220 | run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode): | |
4221 | Likewise. | |
4222 | * fileio.c (Ffind_file_name_handler, Finsert_file_contents, | |
4223 | Fwrite_region, do_auto_save_unwind, Fdo_auto_save, | |
4224 | Fread_file_name): Likewise. | |
4225 | * filelock.c (unlock_all_files): Likewise. | |
4226 | * insdel.c (Fcombine_after_change_execute): Likewise. | |
4227 | * intervals.c (adjust_intervals_for_insertion): Likewise. | |
4228 | * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent, | |
4229 | Fset_keymap_parent, fix_submap_inheritance, access_keymap, | |
4230 | store_in_keymap, Fcopy_keymap, define_as_prefix, | |
4231 | current_minor_maps, Faccessible_keymaps, | |
4232 | accessible_keymaps_char_table, Fkey_description, | |
4233 | Fwhere_is_internal, where_is_internal_2, where_is_internal_1, | |
4234 | describe_buffer_bindings, describe_map_tree, shadow_lookup, | |
4235 | describe_map): Likewise. | |
4236 | * lread.c (Fload, load_unwind, close_load_descs, read_vector, | |
4237 | read_list, init_lread): Likewise. | |
4238 | * search.c (Fmatch_data): Likewise. | |
4239 | * sunfns.c (Fsun_menu_internal): Likewise. | |
4240 | * syntax.c (describe_syntax): Likewise. | |
4241 | * undo.c (record_insert, record_delete, Fundo_boundary, | |
4242 | truncate_undo_list): Likewise. | |
4243 | * vmsproc.c (child_sig): Likewise. | |
4244 | ||
4245 | * editfns.c (Fformat): Use XFLOAT_DATA. | |
4246 | ||
4247 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
4248 | ||
4249 | * keyboard.c (command_loop_1): Resize mini-window to the | |
4250 | exact size of a message displayed, if any. | |
4251 | ||
4252 | * xdisp.c (resize_mini_window): Add parameter exact_p. Resize | |
4253 | to exact size if exact_p is non-zero. | |
4254 | (display_echo_area_1): Call resize_mini_window with | |
4255 | new parameter. | |
4256 | (redisplay_internal): Ditto. | |
4257 | (resize_echo_area_axactly): New. | |
4258 | ||
4259 | * minibuf.c (read_minibuf_unwind): Call resize_mini_window with | |
4260 | new parameter. | |
4261 | ||
4262 | * dispextern.h: Change prototype of resize_mini_window. | |
4263 | Add prototype for resize_echo_area_axactly. | |
4264 | ||
4265 | * xfaces.c (Fx_family_fonts): Replaces Fx_font_list. | |
4266 | (syms_of_xfaces): Defsubr accordingly. | |
4267 | ||
4268 | * xdisp.c (hscroll_window_tree): Choose cursor row from | |
4269 | desired or current matrix. | |
4270 | (redisplay_internal): Hscroll before updating. | |
4271 | ||
4272 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
4273 | ||
4274 | * syntax.c (Fforward_word): Use prompt_end_charpos instead | |
4275 | of minibuffer_prompt_length. | |
4276 | ||
4277 | * minibuf.c (read_minibuf): Use prompt_end_charpos instead | |
4278 | of minibuffer_prompt_length. | |
4279 | (read_minibuf_unwind): Ditto. | |
4280 | (Fminibuffer_complete_and_exit): Ditto. | |
4281 | (Fminibuffer_complete_word): Ditto. | |
4282 | (Fminibuffer_prompt_end): Ditto. | |
4283 | ||
4284 | * editfns.c (Fbuffer_string): Use prompt_end_charpos instead | |
4285 | of minibuffer_prompt_length. | |
4286 | (Fline_beginning_position): Ditto. | |
4287 | ||
4288 | * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead | |
4289 | of minibuffer_prompt_length. | |
4290 | (Fmake_indirect_buffer): Ditto. | |
4291 | (Fkill_buffer): Ditto. | |
4292 | (Ferase_buffer): Ditto. | |
4293 | ||
4294 | * buffer.h (prompt_end_charpos): Replaces | |
4295 | minibuffer_prompt_length. | |
4296 | ||
4297 | * minibuf.c (read_minibuf): Return mini-buffer contents | |
4298 | without the prompt. | |
4299 | ||
4300 | * editfns.c (make_buffer_string_both): Take out the code | |
4301 | to handle mini-buffer prompts. | |
4302 | (Fbuffer_string): Handle the prompt here, instead. | |
4303 | ||
4304 | * xfaces.c (lface_from_face_name): Resolve face aliases. | |
4305 | (Qmode_line): Replaces Qmodeline. | |
4306 | (realize_basic_faces): Use Qmode_line. | |
4307 | (syms_of_xfaces): Initialize Qmode_line. | |
4308 | ||
4309 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
4310 | ||
4311 | * minibuf.c (read_minibuf): Set minibuf_prompt_width to the | |
4312 | current column after inserting prompt. | |
4313 | (Fminibuffer_prompt_width): Return minibuf_prompt_width. | |
4314 | ||
4315 | * xfaces.c (Qframe_update_face_colors): New. | |
4316 | (syms_of_xfaces): Initialize call. | |
4317 | (update_face_from_frame_parameter): Call that function when | |
4318 | the frame's background changes. | |
4319 | ||
4320 | 1999-09-12 Richard Stallman <rms@gnu.org> | |
4321 | ||
4322 | * insdel.c (del_range_1): Don't treat minibuffer prompt specially. | |
4323 | ||
4324 | 1999-09-12 Ken Raeburn <raeburn@gnu.org> | |
4325 | ||
4326 | * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect, | |
4327 | mark_object, mark_buffer): Use XCAR and XCDR. | |
4328 | * bytecode.c (Fbyte_code): Likewise. | |
4329 | * callint.c (Fcall_interactively, Fprefix_numeric_value): | |
4330 | Likewise. | |
4331 | * callproc.c (Fcall_process, Fcall_process_region, child_setup, | |
4332 | getenv_internal): Likewise. | |
4333 | * dired.c (file_name_completion): Likewise. | |
4334 | * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq, | |
4335 | assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse, | |
4336 | Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise. | |
4337 | * indent.c (Fcompute_motion): Likewise. | |
4338 | * process.c (decode_status, Fprocess_status, Fprocess_exit_status, | |
4339 | list_processes_1, Fstart_process, Fopen_network_stream, | |
4340 | wait_reading_process_input, read_process_output_call, | |
4341 | kill_buffer_processes, sigchld_handler, exec_sentinel_unwind, | |
4342 | status_notify, wait_reading_process_input): Likewise. | |
4343 | * textprop.c (PLIST_ELT_P, property_value, set_properties, | |
4344 | extend_property_ranges): Likewise. | |
4345 | * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise. | |
4346 | * w32fns.c (x_window_to_frame, x_set_frame_parameters, | |
4347 | x_report_frame_params, x_set_cursor_type, x_icon_type, | |
4348 | x_figure_window_size, Fx_create_frame, w32_load_system_font, | |
4349 | w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts, | |
4350 | w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts, | |
4351 | Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir, | |
4352 | x_display_info_for_name, Fx_display_list): Likewise. | |
4353 | * w32menu.c (menubar_id_to_frame, single_keymap_panes, | |
4354 | Fx_popup_menu, Fx_popup_dialog): Likewise. | |
4355 | * w32proc.c (Fw32_set_keyboard_layout): Likewise. | |
4356 | * w32term.c (x_window_to_scroll_bar, w32_read_socket, | |
4357 | w32_term_init, x_delete_display): Likewise. | |
4358 | * xfns.c (x_window_to_frame, x_any_window_to_frame, | |
4359 | x_non_menubar_window_to_frame, x_menubar_window_to_frame, | |
4360 | x_top_window_to_frame, x_set_frame_parameters, | |
4361 | x_report_frame_params, x_set_cursor_type, x_icon_type, | |
4362 | x_figure_window_size, Fx_create_frame, x_display_info_for_name, | |
4363 | Fx_display_list, x_create_tip_frame): Likewise. | |
4364 | * xmenu.c (menubar_id_to_frame, single_keymap_panes, | |
4365 | Fx_popup_menu, Fx_popup_dialog): Likewise. | |
4366 | * xselect.c (x_own_selection, x_get_local_selection, | |
4367 | x_handle_selection_request, x_handle_selection_clear, | |
4368 | x_clear_frame_selections, wait_for_property_change_unwind, | |
4369 | wait_for_property_change, x_handle_property_notify, | |
4370 | copy_multiple_data, x_get_foreign_selection, | |
4371 | lisp_data_to_selection_data, clean_local_selection_data, | |
4372 | x_handle_selection_notify, Fx_get_selection_internal, | |
4373 | x_disown_buffer_selections): Likewise. | |
4374 | * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts, | |
4375 | x_load_font, x_find_ccl_program, x_term_init, x_delete_display): | |
4376 | Likewise. | |
4377 | ||
4378 | * alloc.c (make_float, make_pure_float, Fpurecopy): Use | |
4379 | XFLOAT_DATA. | |
4380 | * bytecode.c (Fbyte_code): Likewise. | |
4381 | * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver, | |
4382 | fmod_float): Likewise. | |
4383 | ||
4384 | 1999-09-11 Richard Stallman <rms@gnu.org> | |
4385 | ||
4386 | * xdisp.c (run_window_scroll_functions): If hook functions switch | |
4387 | buffers, switch back after. | |
4388 | ||
4389 | 1999-09-11 Ken Raeburn <raeburn@gnu.org> | |
4390 | ||
4391 | * charset.h (GET_TRANSLATION_TABLE): Use XCDR. | |
4392 | * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR. | |
4393 | (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA. | |
4394 | * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW, | |
4395 | POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and | |
4396 | XCDR. | |
4397 | * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and | |
4398 | XCDR. | |
4399 | ||
4400 | 1999-09-10 Richard Stallman <rms@gnu.org> | |
4401 | ||
4402 | * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent, | |
4403 | not RevertToPointerRoot. | |
4404 | (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
4405 | Fix the code to clear around the scroll bar. | |
4406 | ||
4407 | 1999-09-10 Keisuke Nishida <kxn30@po.cwru.edu> | |
4408 | ||
4409 | * print.c: Support print-circle and related features. | |
4410 | (Vprint_gensym_alist): Removed. | |
4411 | (Vprint_circle, Vprint_continuous_numbering, print_number_index | |
4412 | Vprint_number_table): New variables. | |
4413 | (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros. | |
4414 | (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist. | |
4415 | (print, print_preprocess, print_preprocess_string, print_object): | |
4416 | New/modified functions with print-circle feature. Use | |
4417 | Vprint_number_table instead of Vprint_gensym_alist for print-gensym. | |
4418 | (syms_of_print): Defined new Lisp variables `print-circle', | |
4419 | `print-continuous-numbering', `print-number-table'. | |
4420 | ||
4421 | 1999-09-10 Gerd Moellmann <gerd@gnu.org> | |
4422 | ||
4423 | * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)' | |
4424 | as background color specification instead of an integer. | |
4425 | (image-cache-eviction-delay): Replaces image-eviction-seconds. | |
4426 | (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds. | |
4427 | (clear_image_cache, syms_of_xfns): Use it. | |
4428 | (Qpostscript): Replaces Qghostscript. | |
4429 | (gs_type): Use it. | |
4430 | (gs_image_p): Ditto. | |
4431 | (syms_of_xfns): Initialize Qpostscript. | |
4432 | ||
4433 | 1999-09-10 Richard Stallman <rms@gnu.org> | |
4434 | ||
4435 | * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt. | |
4436 | ||
4437 | 1999-09-09 Richard Stallman <rms@gnu.org> | |
4438 | ||
4439 | * editfns.c (Fline_beginning_position): Handle minibuffer prompt here. | |
4440 | ||
4441 | * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here. | |
4442 | ||
4443 | 1999-09-09 Gerd Moellmann <gerd@gnu.org> | |
4444 | ||
4445 | * fns.c (Fmakehash): Accept just one optional argument TEST. | |
4446 | ||
4447 | * xfns.c (QCindex): New. | |
4448 | (syms_of_xfns): Initialize QCindex. | |
4449 | (gif_load): Use it instead of `:image'. | |
4450 | ||
4451 | 1999-09-09 Richard Stallman <rms@gnu.org> | |
4452 | ||
4453 | * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW. | |
4454 | (Fwrite_region) [DOS_NT]: Handle `excl' here too. | |
4455 | ||
4456 | 1999-09-08 Gerd Moellmann <gerd@gnu.org> | |
4457 | ||
4458 | * xdisp.c (Qwhen): Replaces QCwhen. | |
4459 | (syms_of_xdisp): Initialized it instead of QCwhen. | |
4460 | (handle_single_display_prop): Use it instead of QCwhen. | |
4461 | ||
4462 | 1999-09-08 Ken'ichi Handa <handa@gnu.org> | |
4463 | ||
4464 | * charset.c (translate_char): Reset MSBs of arguments of | |
4465 | MAKE_CHAR. | |
4466 | (CHAR_COMPONENTS_VALID_P): Fix for ASCII. | |
4467 | ||
4468 | 1999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org> | |
4469 | ||
4470 | * editfns.c (Fbufsize): Accept an extra BUFFER parameter. | |
4471 | ||
4472 | * fns.c (Fbase64_decode_region): Don't place point outside of the | |
4473 | current accessible portion. | |
4474 | ||
4475 | 1999-09-07 Richard Stallman <rms@gnu.org> | |
4476 | ||
4477 | * keymap.c (fix_submap_inheritance): Do nothing if the proper | |
4478 | parent is an ancestor of SUBMAP; otherwise, add it as the | |
4479 | ultimate ancestor. | |
4480 | ||
4481 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
4482 | ||
4483 | * xdisp.c (handle_single_display_prop): Change conditional | |
4484 | display property to `:when FORM . VALUE'. | |
4485 | ||
4486 | 1999-09-07 Richard Stallman <rms@gnu.org> | |
4487 | ||
4488 | * fileio.c (Fwrite_region): Doc fix. | |
4489 | ||
4490 | 1999-09-07 Stefan Monnier <monnier@cs.yale.edu> | |
4491 | ||
4492 | * fileio.c (Qexcl): New variable. | |
4493 | (report_file_error): Handle EEXIST specially. | |
4494 | (Fwrite_region): Special handling for CONFIRM = `excl'. | |
4495 | (syms_of_fileio): Initialize Qexcl. | |
4496 | ||
4497 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
4498 | ||
4499 | * xfns.c (x_set_foreground_color): Call | |
4500 | update_face_from_frame_parameter. | |
4501 | (x_set_background_color): Ditto. | |
4502 | (x_set_mouse_color): Ditto. | |
4503 | (x_set_cursor_color): Ditto. | |
4504 | (x_set_border_color): Ditto. | |
4505 | (x_set_scroll_bar_foreground): Ditto. | |
4506 | (x_set_scroll_bar_background): Ditto. | |
4507 | ||
4508 | * xfaces.c (recompute_basic_faces): Clear face cache. | |
4509 | (Finternal_set_lisp_face_attribute): Modify frame parameters | |
4510 | if attributes of certain faces are changed. | |
4511 | (update_face_from_frame_parameter): New. | |
4512 | ||
4513 | * xfaces.c (realize_basic_faces): Realize new basic faces. | |
4514 | ||
4515 | * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID, | |
4516 | CURSOR_FACE_ID, MOUSE_FACE_ID): New. | |
4517 | ||
4518 | * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New. | |
4519 | (syms_of_xfaces): Intialize new symbols. | |
4520 | ||
4521 | * fns.c (Fmakehash): Take one argument, test, make all the | |
4522 | rest keyword arguments. | |
4523 | ||
4524 | * window.c (Fset_window_margins): Make window the first argument. | |
4525 | (set_window_buffer): Call Fset_window_margins with window as first | |
4526 | argument. | |
4527 | ||
4528 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
4529 | ||
4530 | * xfaces.c (Qfringe): Replaces Qmargin. | |
4531 | ||
4532 | 1999-09-07 Kenichi Handa <handa@etl.go.jp> | |
4533 | ||
4534 | * charset.h: Lots of comments fixed. | |
4535 | (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string. | |
4536 | (STRING_CHAR_AND_CHAR_LENGTH): This macro removed. | |
4537 | ||
4538 | * charset.c : Lots of comments fixed. | |
4539 | (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string. | |
4540 | (CHAR_COMPONENTS_VALID_P): Name changed from | |
4541 | CHAR_COMPONENT_VALID_P. Caller changed. | |
4542 | ||
4543 | 1999-09-06 Richard Stallman <rms@gnu.org> | |
4544 | ||
4545 | * insdel.c (syms_of_insdel): Define Lisp variable | |
4546 | inhibit-modification-hooks. | |
4547 | ||
4548 | 1999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de> | |
4549 | ||
4550 | * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new | |
4551 | unexaix.c. | |
4552 | ||
4553 | * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c. | |
4554 | ||
4555 | 1999-09-06 Dave Love <fx@gnu.org> | |
4556 | ||
4557 | * unexaix.c: New version incorporating Michael Sperber's changes | |
4558 | from XEmacs. Should solve problems on AIX 4.3. | |
4559 | ||
4560 | * lread.c (Vbyte_boolean_vars): New variable. | |
4561 | (defvar_bool, syms_of_lread): Use it. | |
4562 | ||
4563 | 1999-09-05 Richard Stallman <rms@gnu.org> | |
4564 | ||
4565 | * minibuf.c (read_minibuf): Put all three properties on the | |
4566 | same range, the whole prompt. | |
4567 | ||
4568 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
4569 | ||
4570 | * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook. | |
4571 | (Fplay_sound, syms_of_sound): Use it. | |
4572 | (parse_sound): Allow float volume values in the range [0, 1]. | |
4573 | (Fplay_sound): Ditto. | |
4574 | ||
4575 | * window.c (Fset_window_vscroll): Make window the first argument, | |
4576 | amount to scroll the second. Take non-negative vscroll as | |
4577 | argument. | |
4578 | (Fwindow_vscroll): Return non-negative vscroll. | |
4579 | ||
4580 | * xfns.c (Fx_show_tip): Improve documentation. | |
4581 | ||
4582 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
4583 | ||
4584 | * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c, | |
4585 | window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change | |
4586 | `top-line' and `top_line' to `header-line' and `header_line'. | |
4587 | Likewise for similar spellings. | |
4588 | ||
4589 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
4590 | ||
4591 | * xdisp.c (row_containing_pos): New. | |
4592 | (try_window_id): Use it. | |
4593 | ||
4594 | * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c, | |
4595 | lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c: | |
4596 | Change spelling of `toolbar' to `tool_bar' or `tool-bar'. | |
4597 | Likewise for upper-case etc. | |
4598 | ||
4599 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
4600 | ||
4601 | * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
4602 | Fix reference to renamed variable. | |
4603 | ||
4604 | 1999-09-04 Gerd Moellmann <gerd@gnu.org> | |
4605 | ||
4606 | * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size. | |
4607 | (window_fixed_size_p): Use Qwindow_size_fixed instead of | |
4608 | Qfixed_window_size. | |
4609 | (syms_of_window): Ditto. | |
4610 | ||
4611 | * fns.c (Fmakehash): Exchange optional test and size arguments. | |
4612 | ||
4613 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
4614 | ||
4615 | * xterm.c (XTset_vertical_scroll_bar): Block input when clearing | |
4616 | under newly created scroll bar. | |
4617 | (expose_window): If window is not yet fully initialized, do | |
4618 | nothing. This can happen when toolkit scroll bars are used and a | |
4619 | window is split. Reconfiguring the scroll bars will generate an | |
4620 | expose for a newly created window. | |
4621 | ||
4622 | * frame.h (struct frame): New member `gamma'. | |
4623 | ||
4624 | * xfns.c: Include math.h. Add extern declaration for atof in case | |
4625 | we don't see one. | |
4626 | (Qscreen_gamma): New. | |
4627 | (struct x_frame_parm_table): Add prototypes, add | |
4628 | x_set_screen_gamma. | |
4629 | (gamma_correct): New function. | |
4630 | (defined_color): Call it. | |
4631 | (x_set_screen_gamma): New. | |
4632 | (x_set_title): Add parameter old_value. | |
4633 | (RES_TYPE_FLOAT): New. | |
4634 | (x_get_arg): Handle RES_TYPE_FLOAT. | |
4635 | (Fx_create_frame): Call x_default_parameter for `screen-gamma'. | |
4636 | (lookup_pixel_color): Change call to x_alloc_nearest_color to | |
4637 | new prototype. | |
4638 | (lookup_rgb_color): Ditto. | |
4639 | (syms_of_xfns): Initialize Qscreen_gamma. | |
4640 | ||
4641 | * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]: | |
4642 | New. Allocate color for lwlib widgets. | |
4643 | (x_alloc_nearest_color): Change parameter list include the | |
4644 | frame on which to allocate colors. Gamma-correct colors. | |
4645 | (x_alloc_lighter_color): Call x_alloc_lighter_color with new | |
4646 | parameter list. | |
4647 | ||
4648 | * xterm.h: Change protorype of x_alloc_nearest_color. | |
4649 | ||
4650 | 1999-09-03 Richard Stallman <rms@gnu.org> | |
4651 | ||
4652 | * callproc.c: Delete the system-independent include of stdlib.h | |
4653 | (leaving only the one in the WINDOWSNT conditional). | |
4654 | ||
4655 | 1999-09-03 Andrew Choi <choi@cs.hku.hk> | |
4656 | ||
4657 | * callproc.c (call-process) [macintosh]: Call mac_run_command in | |
4658 | sysdep.c. The Mac code is modeled after the DOS code. | |
4659 | ||
4660 | * dispextern.h [macintosh]: Include macterm.h to define substitute X | |
4661 | Window types and macros. | |
4662 | ||
4663 | * frame.h: Do nothing if included a second time. | |
4664 | (enum output_method): Add mac_output frame type. | |
4665 | (union output_data): Add new alternative `mac'. | |
4666 | (FRAME_MAC_P): New macro. | |
4667 | ||
4668 | * frame.c (Fframep) [macintosh]: Handle mac frame type. | |
4669 | (syms_of_frame_1): Initialize Qmac. | |
4670 | (make_terminal_frame) [macintosh]: Initialize output_data.mac fields. | |
4671 | (Fmake_terminal_frame) [macintosh]: Add an alternate error check. | |
4672 | (Fmodify_frame_parameters) [macintosh]: Call | |
4673 | mac_set_frame_parameter in macterm.c. | |
4674 | ||
4675 | * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value | |
4676 | (512) because Mac compilers limit local data of a function to 32K. | |
4677 | ||
4678 | * make-docfiles.c: Correctly handle input files with Mac-style | |
4679 | eol's. | |
4680 | ||
4681 | * sysdep.c: Define numerous routines to emulate Unix system calls. | |
4682 | ||
4683 | * xfaces.c: on MacOS, define the set of colors listed in rgb.txt | |
4684 | file of an X Window environment. | |
4685 | ||
4686 | * xfaces.c: on MacOS, define the Lisp functions x-display-color-p, | |
4687 | x-display-grayscale, x-color-defined-p, and x-color-values. | |
4688 | ||
4689 | * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access) | |
4690 | (open, creat, unlink, read, write, rename, fopen, pause, alarm) | |
4691 | (signal, sleep, gmtime, localtime, ctime, time, index, mktemp) | |
4692 | (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid) | |
4693 | (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.): | |
4694 | New functions, replacing POSIX features. | |
4695 | ||
4696 | * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm) | |
4697 | (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy): | |
4698 | (InitEmacsPasswdDir, run_mac_command): New subroutines. | |
4699 | ||
4700 | * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName) | |
4701 | (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask) | |
4702 | (myPasswdDir, TempDirName, sys_siglist): New variables. | |
4703 | ||
4704 | * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask) | |
4705 | (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink) | |
4706 | (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl): | |
4707 | Define empty stubs so Emacs will link. | |
4708 | ||
4709 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
4710 | ||
4711 | * xdisp.c: Use XCAR and XCDR instead of XCONS. | |
4712 | ||
4713 | * window.h: New member frozen_window_start_p. | |
4714 | ||
4715 | * window.c (foreach_window, foreach_window_1): New. | |
4716 | (freeze_window_start, freeze_window_starts): New. | |
4717 | (make_window): Initialize frozen_window_start_p. | |
4718 | (replace_window): Ditto. | |
4719 | (Fset_window_point): Remove references to deleted variables. | |
4720 | (Fset_window_start): Ditto. | |
4721 | ||
4722 | * xdisp.c (Vresize_mini_config, resize_mini_frame, | |
4723 | resize_mini_initial_height): Removed. | |
4724 | (syms_of_xdisp): Remove references to these variables. | |
4725 | (resize_mini_window): Don't save window configuration, freeze | |
4726 | window starts instead. Enlarge window until displaying an empty | |
4727 | buffer, then shrink it. Make the function externally visible. | |
4728 | (redisplay_window): Treat frozen window start like forced start, | |
4729 | but accept point outside of the window. | |
4730 | ||
4731 | * dispextern.h: Add function prototype for resize_mini_window. | |
4732 | ||
4733 | * minibuf.c (read_minibuf_unwind): Resize mini-window when | |
4734 | reaching minibuf_level 0. | |
4735 | ||
4736 | * lisp.h: Remove extern declarations for variables deleted from | |
4737 | xdisp.c. | |
4738 | ||
4739 | * dispnew.c (adjust_frame_glyphs): Remove reference to | |
4740 | Vresize_mini_config. | |
4741 | ||
4742 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
4743 | ||
4744 | * xfns.c (x_set_scroll_bar_width): Change conditional compilation | |
4745 | to USE_TOOLKIT_SCROLL_BARS. | |
4746 | ||
4747 | * xterm.c (x_scroll_bar_create): Don't clear under scroll bar | |
4748 | here. | |
4749 | (XTset_vertical_scroll_bar): Clarify position computations. Clear | |
4750 | under newly created scroll bar. Put toolkit scroll bars in the | |
4751 | middle of the area reserved for the scroll bar. | |
4752 | ||
4753 | 1999-09-03 Kenichi Handa <handa@etl.go.jp> | |
4754 | ||
4755 | The following changes are for the new handling of mulitbyte | |
4756 | sequence. Now, except for a composite character, no multibyte | |
4757 | character in string/buffer has trailing garbage bytes. For | |
4758 | instance, the length of string "\201\300\300" is now 2, the first | |
4759 | character is Latin-1 A-grave, the second is raw \300. | |
4760 | ||
4761 | * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2 | |
4762 | are negative. | |
4763 | (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0. | |
4764 | (VALID_MULTIBYTE_CHAR_P): This macro deleted. | |
4765 | (PARSE_COMPOSITE_SEQ): New macro. | |
4766 | (PARSE_CHARACTER_SEQ): New macro. | |
4767 | (PARSE_MULTIBYTE_SEQ): New macro. | |
4768 | (CHAR_PRINTABLE_P): New macro. | |
4769 | (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char. | |
4770 | (STRING_CHAR_AND_LENGTH): Likewise. | |
4771 | (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH. | |
4772 | (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ. | |
4773 | (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise, | |
4774 | ||
4775 | * charset.c (SPLIT_COMPOSITE_SEQ): New macro. | |
4776 | (SPLIT_CHARACTER_SEQ): New macro. | |
4777 | (SPLIT_MULTIBYTE_SEQ): New macro. | |
4778 | (CHAR_COMPONENT_VALID_P): New macro. | |
4779 | (non_ascii_char_to_string): Generate a multibyte sequence as far | |
4780 | as possible. | |
4781 | (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is | |
4782 | deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ. | |
4783 | (split_non_ascii_string): Likewise. | |
4784 | (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ. | |
4785 | (char_printable_p): New function. | |
4786 | (translate_char): Check character by NATNUMP instead of INTEGERP. | |
4787 | (unibyte_char_to_multibyte): Call char_valid_p instead of | |
4788 | VALID_MULTIBYTE_CHAR_P. | |
4789 | (Fmake_char_internal): Check the arguments more rigidly. | |
4790 | (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ. | |
4791 | (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P. | |
4792 | (Fmultibyte_char_to_unibyte): Check the validity of character by | |
4793 | CHAR_VALID_P. | |
4794 | (chars_in_text): Call multibyte_chars_in_text. | |
4795 | (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ. | |
4796 | (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of | |
4797 | STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now). | |
4798 | ||
4799 | * data.c (Faset): Adjust the way to check byte-combining | |
4800 | possibility for the new handling of multibyte sequence. | |
4801 | ||
4802 | * editfns.c (Fsubst_char_in_region): Likewise. | |
4803 | ||
4804 | * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ. | |
4805 | (string_char_to_byte): Likewise. | |
4806 | (string_byte_to_char): Likewise. | |
4807 | ||
4808 | * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the | |
4809 | macro STRING_CHAR_AND_LENGTH. Caller changed. | |
4810 | ||
4811 | * insdel.c (count_combining_composition): New function. | |
4812 | (count_combining_before): Adjust the way to check byte-combining | |
4813 | possibility for the new handling of multibyte sequence. Call | |
4814 | count_combining_composition for a composite character. | |
4815 | (count_combining_after): Likewise. | |
4816 | ||
4817 | * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH. | |
4818 | (print): Likewise. | |
4819 | ||
4820 | * dispextern.h (struct it): Change the size of the member | |
4821 | `ctl_chars'. | |
4822 | ||
4823 | * xdisp.c (get_next_display_element): Display incomplete multibyte | |
4824 | sequence (e.g. \222\300) by octal form. | |
4825 | ||
4826 | 1999-09-02 Gerd Moellmann <gerd@gnu.org> | |
4827 | ||
4828 | * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0. | |
4829 | ||
4830 | * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak. | |
4831 | (cmpfn_eql, sxhash): Use XFLOAT_DATA. | |
4832 | ||
4833 | 1999-09-02 Gerd Moellmann <gerd@gnu.org> | |
4834 | ||
4835 | * buffer.c (set_buffer_internal): Never set | |
4836 | windows_or_buffers_changed. | |
4837 | ||
4838 | * xdisp.c (try_window_id): Reset first_unchanged_at_end_row | |
4839 | if we have displayed to the bottom of the window. | |
4840 | ||
4841 | * syntax.c (Fforward_word): Stop at a mini-buffer prompt end | |
4842 | in both directions. Extend documentation. | |
4843 | ||
4844 | 1999-09-01 Gerd Moellmann <gerd@gnu.org> | |
4845 | ||
4846 | * minibuf.c (read_minibuf): Flush display after setting cursor to | |
4847 | column 0. | |
4848 | ||
4849 | 1999-08-31 Gerd Moellmann <gerd@gnu.org> | |
4850 | ||
4851 | * s/freebsd.h (__FreeBSD_version): Don't define it if it is | |
4852 | already defined. This avoids a warning from buffer.c. | |
4853 | ||
4854 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
4855 | ||
4856 | * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width | |
4857 | of both margins. | |
4858 | (FRAME_X_FLAGS_AREA_WIDTH): Likewise. | |
4859 | (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New. | |
4860 | (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New. | |
4861 | ||
4862 | * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS | |
4863 | once instead of twice. | |
4864 | (FRAME_LEFT_FLAGS_AREA_WIDTH): New. | |
4865 | ||
4866 | * xterm.c: Remove unused bitmaps. | |
4867 | (continued_bits, continuation_bits, overlay_bits): Change images. | |
4868 | (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH | |
4869 | instead of FRAME_X_FLAGS_AREA_WIDTH. | |
4870 | (x_after_update_window_line): Ditto. | |
4871 | (x_draw_bitmap): Likewise. | |
4872 | (x_draw_row_bitmaps): Likewise. | |
4873 | (x_draw_glyph_string_box): Likewise. | |
4874 | (x_draw_glyphs): Likewise. | |
4875 | (x_scroll_run): Likewise. | |
4876 | (expose_window_tree): Likewise. | |
4877 | (note_mode_line_highlight): Likewise. | |
4878 | (XTset_vertical_scroll_bar): Likewise. | |
4879 | (x_clip_to_row): Likewise. | |
4880 | (x_set_window_size): Likewise. | |
4881 | ||
4882 | * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead | |
4883 | of 2 * that value. | |
4884 | ||
4885 | * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of | |
4886 | 2 * that value. | |
4887 | (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of | |
4888 | FRAME_FLAGS_AREA_WIDTH. | |
4889 | ||
4890 | * window.c (coordinates_in_window): Use | |
4891 | FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH. | |
4892 | (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once | |
4893 | instead of twice. | |
4894 | ||
4895 | * widget.c (set_frame_size): Set flags_area_extra to | |
4896 | FRAME_FLAGS_AREA_WIDTH instead of 2 * that width. | |
4897 | (EmacsFrameSetCharSize): Ditto. | |
4898 | ||
4899 | * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH | |
4900 | instead of FRAME_FLAGS_AREA_WIDTH. | |
4901 | ||
4902 | * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract | |
4903 | FRAME_FLAGS_AREA_COLS once. | |
4904 | (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add | |
4905 | FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH. | |
4906 | ||
4907 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
4908 | ||
4909 | * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers | |
4910 | in /usr/X11R6/include which are checked for with AC_CHECK_HEADER. | |
4911 | ||
4912 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
4913 | ||
4914 | * fns.c (QCweakness): Replaces QCweak. | |
4915 | (Fmake_hash_table): Ditto. | |
4916 | (Fmakehash): Ditto. | |
4917 | (syms_of_fns): Ditto. | |
4918 | ||
4919 | 1999-08-29 Richard Stallman <rms@gnu.org> | |
4920 | ||
4921 | * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp. | |
4922 | ||
4923 | * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args. | |
4924 | ||
4925 | * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED): | |
4926 | Add support for nested comments. | |
4927 | ||
863476d1 SM |
4928 | * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward): |
4929 | Consolidate the forward comment code into the new `forw_comment'. | |
4930 | (forw_comment): New subroutine. Added support for nested comments. | |
4931 | (lisp_parse_state, back_comment, Fmodify_syntax_entry) | |
4932 | (Fparse_partial_sexp): Add support for nested comments. | |
26901792 DL |
4933 | |
4934 | 1999-08-28 Ken Raeburn <raeburn@gnu.org> | |
4935 | ||
4936 | * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change | |
4937 | names of structure elements if HIDE_LISP_IMPLEMENTATION is | |
4938 | defined, to help detect code that uses knowledge of the Lisp | |
4939 | internals that it shouldn't have. | |
4940 | (XFLOAT_DATA): New macro. | |
4941 | ||
4942 | 1999-08-25 Gerd Moellmann <gerd@gnu.org> | |
4943 | ||
4944 | * syntax.c (Fforward_word): If in a mini-buffer and moving | |
4945 | backwards, stop in front of the prompt to prevent accidentially | |
4946 | moving into the read-only prompt. | |
4947 | ||
4948 | * window.c (Frecenter): Clear frame if called with nil or no arg. | |
4949 | ||
4950 | * xdisp.c (resize_mini_window): Don't resize if | |
4951 | Vmax_mini_window_height is nil. Otherwise, use a default if | |
4952 | Vmax_mini_window_height is not ot a number. | |
4953 | (syms_of_xdisp): Extend documentation of Vmax_mini_window_height. | |
4954 | ||
4955 | 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br> | |
4956 | ||
4957 | * unexelf.c: Merge IRIX debugging info patch from unexsgi.c | |
4958 | * m/iris4d.h: Use unexelf for IRIX 5.*. | |
4959 | * m/iris5d.h: Use unexelf for IRIX 6.*. | |
4960 | * unexsgi.c: Deleted. | |
4961 | ||
4962 | * unexelf.c: Auto-detect .sbss section. | |
4963 | (round_up): Make it static. | |
4964 | (unexec): Declare alignment as Elf Word. Skip ``Program | |
4965 | segment above .bss'' test on MIPS without .sbss. | |
4966 | Copy sections .got and .sdata1 sections. Adjust offsets in | |
4967 | sections .sdata, .lit4, .lit8, .got and .sdata1. | |
4968 | ||
4969 | 1999-08-25 Gerd Moellmann <gerd@gnu.org> | |
4970 | ||
4971 | * xdisp.c (try_window_id): Remove typo. | |
4972 | ||
4973 | 1999-08-24 Gerd Moellmann <gerd@gnu.org> | |
4974 | ||
4975 | * xdisp.c (try_window_id): Recognize case that PT == ZV and in | |
4976 | unchanged text at the bottom when computing the cursor position. | |
4977 | (message3_nolog): Raise frame only if minibuffer_auto_raise is | |
4978 | set. | |
4979 | ||
4980 | * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables. | |
4981 | ||
4982 | 1999-08-24 Gerd Moellmann <gerd@gnu.org> | |
4983 | ||
4984 | * xfaces.c (Qmargin): Replacement for Qbitmap_area. | |
4985 | (realize_basic_faces): Replace Qmargin for Qbitmap_area. | |
4986 | (syms_of_xfaces): Ditto. | |
4987 | ||
4988 | * window.c (Fset_window_point): Reset Vresize_mini_config. | |
4989 | (Fset_window_start): Ditto. | |
4990 | (set_window_buffer): Ditto. | |
4991 | ||
4992 | * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config. | |
4993 | ||
4994 | * xdisp.c (redisplay_window): Don't ever test just_this_one_p | |
4995 | before calling try_window. | |
4996 | (echo_area_display): If height has changed, update other windows. | |
4997 | (resize_mini_frame, resize_mini_initial_height): New. | |
4998 | (resize_mini_window): Save/restore window configuration | |
4999 | differently. | |
5000 | ||
5001 | * lisp.h (Vresize_mini_config, resize_mini_frame, | |
5002 | resize_mini_initial_height): Add extern declarations. | |
5003 | ||
5004 | * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to | |
5005 | CANON_X_UNIT. | |
5006 | ||
5007 | * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H | |
5008 | being redefined in jconfig.h. | |
5009 | ||
5010 | 1999-08-23 Ken'ichi Handa <handa@gnu.org> | |
5011 | ||
5012 | * coding.h: Include "ccl.h" instead of "../src/ccl.h". | |
5013 | ||
5014 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
5015 | ||
5016 | * alloc.c (mark_glyph_matrix): Mark strings only. | |
5017 | ||
5018 | * xdisp.c (redisplay_internal): Clear garbaged frames after | |
5019 | resizing mini-window. | |
5020 | ||
5021 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
5022 | ||
5023 | * xdisp.c (unwind_with_echo_area_buffer): Use | |
5024 | set_buffer_internal_1 instead of set_buffer_internal. | |
5025 | (with_echo_area_buffer): Ditto. | |
5026 | ||
5027 | * buffer.c (set_buffer_internal): Set windows_or_buffers_changed | |
5028 | only if buffer is displayed somewhere. | |
5029 | ||
5030 | * buffer.h (BUF_COMPUTE_UNCHANGED): New. | |
5031 | ||
5032 | * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED. | |
5033 | (gap_right): Ditto. | |
5034 | (modify_region): Ditto. | |
5035 | ||
5036 | * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED. | |
5037 | ||
5038 | * xdisp.c (Vresize_mini_config): New. | |
5039 | (resize_mini_window): Use it to save restore original window | |
5040 | configuration | |
5041 | (syms_of_xdisp): Initialize it. | |
5042 | ||
5043 | * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p. | |
5044 | ||
5045 | * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv. | |
5046 | ||
5047 | * xdisp.c (reconsider_clip_changes): New. | |
5048 | (redisplay_internal, redisplay_window): Call it. | |
5049 | (mark_window_display_accurate, redisplay_internal): Set current | |
5050 | matrix' buffer, begv, zv. | |
5051 | ||
5052 | * window.c (Fset_window_hscroll): Set | |
5053 | prevent_redisplay_optimizations_p instead of clip_changed. | |
5054 | (Fset_window_hscroll): Ditto. | |
5055 | (temp_output_buffer_show): Ditto. | |
5056 | (Fset_window_vscroll): Ditto. | |
5057 | ||
5058 | * buffer.c (reset_buffer): Set clip_changed to 0 and | |
5059 | prevent_redisplay_optimizations_p to 1. | |
5060 | (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1. | |
5061 | ||
5062 | * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED, | |
5063 | BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED, | |
5064 | BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED, | |
5065 | END_UNCHANGED): New. | |
5066 | (struct buffer_text): Add beg_unchanged, end_unchanged, | |
5067 | unchanged_modified, overlay_unchanged_modified. | |
5068 | ||
5069 | * window.h (beg_unchanged, end_unchanged, unchanged_modified, | |
5070 | overlay_unchanged_modified): Removed. | |
5071 | (with_echo_area_unwind_data): Don't save beg/end_unchanged. | |
5072 | (unwind_with_echo_area_buffer): Don't restore them. | |
5073 | (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed. | |
5074 | (text_outside_line_unchanged_p, redisplay_internal, | |
5075 | try_scrolling): Use/set buffer-specific beg/end_unchanged. | |
5076 | (redisplay_window): Let try_window_id be called if more than one | |
5077 | window is displayed. Use/set buffer-specific beg/end_unchanged. | |
5078 | (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row, | |
5079 | try_window_id): | |
5080 | Use buffer-specific beg/end_unchanged. | |
5081 | ||
5082 | * window.h (beg_unchanged, end_unchanged, unchanged_modified, | |
5083 | overlay_unchanged_modified): Remove extern declarations. | |
5084 | ||
5085 | * keyboard.c (command_loop_1): Set beg/end_unchanged per | |
5086 | buffer. | |
5087 | ||
5088 | * insdel.c (gap_left): Compute beg/end_unchanged per buffer. | |
5089 | (gap_right): Ditto. | |
5090 | (adjust_after_replace): Likewise. | |
5091 | (replace_range, del_range_2, modify_region): Likewise. | |
5092 | ||
5093 | * dispnew.c (direct_output_for_insert): Set beg_unchanged | |
5094 | and unchanged_modified per buffer. | |
5095 | ||
5096 | * coding.c (code_convert_region): Compute beg/end_unchanged per | |
5097 | buffer. | |
5098 | ||
5099 | * buffer.c (modify_overlay): Compute beg/end_unchanged | |
5100 | per buffer. | |
5101 | (Fget_buffer_create): Initialize new members of the buffer | |
5102 | structure. | |
5103 | ||
5104 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
5105 | ||
5106 | * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table. | |
5107 | ||
5108 | * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak. | |
5109 | (Qkey_value_weak): Removed. | |
5110 | (make_hash_table): Use nil, `key', `value', t for weakness. | |
5111 | (Fmake_hash_table): Ditto. | |
5112 | (copy_hash_table): New. | |
5113 | (Fcopy_hash_table): New. | |
5114 | ||
5115 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
5116 | ||
5117 | * xfns.c: Call change_frame_size and do_pending_window_change with | |
5118 | new parameter. | |
5119 | ||
5120 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
5121 | ||
5122 | * xdisp.c (resize_mini_window): Do it for truncate-lines t as | |
5123 | well. | |
5124 | (redisplay_internal): Resize mini-window only if text might | |
5125 | have changed. | |
5126 | (display_echo_area): Reset displayed echo_area_buffer to nil | |
5127 | at the end if we're displaying a nil message. | |
5128 | ||
5129 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
5130 | ||
5131 | * fns.c (hash_lookup): Test with EQ before calling key comparion | |
5132 | function. | |
5133 | (hash_remove): Ditto. | |
5134 | (cmpfn_eq): Removed. | |
5135 | (cmpfn_eql): Don't test with EQ. | |
5136 | (cmpfn_equal): Ditto. | |
5137 | (make_hash_table): Set comparison function for `eq' to null. | |
5138 | ||
5139 | * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h: | |
5140 | Remove conditional compilation on NO_PROMPT_IN_BUFFER. | |
5141 | ||
5142 | * dispextern.h (NO_PROMPT_IN_BUFFER): Removed. | |
5143 | ||
5144 | * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c, | |
5145 | xterm.c: Call change_frame_size and do_pending_window_change with | |
5146 | new parameter. | |
5147 | ||
5148 | * dispnew.c (do_pending_window_change): Add parameter `safe'. | |
5149 | (change_frame_size): Ditto. | |
5150 | (change_frame_size_1): Ditto. Deley size changes if redisplaying | |
5151 | and not called from a safe place. | |
5152 | (window_change_signal): Call change_frame_size with new parameter. | |
5153 | ||
5154 | * dispextern.h: Change prototypes for do_pending_window_change | |
5155 | and change_frame_size. | |
5156 | ||
5157 | * xfaces.c (face_at_buffer_position): Don't xassert that | |
5158 | window's buffers equals current_buffer; this is not the | |
5159 | case during echo area display. | |
5160 | ||
5161 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
5162 | ||
5163 | * xdisp.c, minibuf.c: Remove conditional compilation on | |
5164 | NO_PROMPT_IN_BUFFER. | |
5165 | ||
5166 | * minibuf.c (Fminibuffer_prompt_end): New. | |
5167 | (syms_of_minibuf): Defsubr it. Remove | |
5168 | minibuffer-prompt-in-buffer. | |
5169 | (Fminibuffer_prompt_width): Return 0 if not in mini-buffer. | |
5170 | Extend documentation. | |
5171 | ||
5172 | * xdisp.c (get_next_display_element): Display \r as ^M. | |
5173 | ||
5174 | * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear | |
5175 | under scroll bar widget. | |
5176 | ||
5177 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
5178 | ||
5179 | * xdisp.c (minibuffer_scroll_overlap): Removed because not used | |
5180 | anywhere. | |
5181 | (unwind_redisplay): Return nil. | |
5182 | (clear_garbaged_frames): New. | |
5183 | (redisplay_internal): Use it. | |
5184 | (echo_area_display): Ditto. | |
5185 | (resize_mini_window): Mew. | |
5186 | (display_echo_area_1): Use it to resize echo area window. | |
5187 | (redisplay_internal): Use it to resize active mini-window. | |
5188 | ||
5189 | * dispextern.h, lisp.h: Add function prototypes. | |
5190 | ||
5191 | * dispnew.c (set_window_cursor_after_update): Do the | |
5192 | cursor_in_echo_area case only for a mini-window showing | |
5193 | a message. Don't let cursor end up after the end of a row. | |
5194 | ||
5195 | * xdisp.c (echo_area_glyphs, echo_area_message, | |
5196 | echo_area_glyphs_length, previous_echo_glyphs, | |
5197 | previous_echo_area_message, previous_echo_area_glyphs_length): | |
5198 | Removed. | |
5199 | (Vmessage_stack, echo_area_buffer, echo_buffer, | |
5200 | display_last_displayed_message_p, Vwith_echo_area_save_vector): New. | |
5201 | (message2_nolog): Use set_message and clear_message. | |
5202 | (message3): Rename parameter len to nbytes to make clear what | |
5203 | it is. | |
5204 | (message3_nolog): Ditto. Use set_message and clear_message. | |
5205 | (update_echo_area): Rewritten. | |
5206 | (with_echo_area_buffer): New. | |
5207 | (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New. | |
5208 | (setup_echo_area_for_printing): New. | |
5209 | (display_echo_area, display_echo_area_1): New. | |
5210 | ||
5211 | (current_message, current_message_1): New. | |
5212 | (push_message, restore_message, pop_message, | |
5213 | check_message_stack): New. | |
5214 | (truncate_echo_area): Rewritten. | |
5215 | (truncate_message_1): New. | |
5216 | (set_message, set_message_1, clear_message): New. | |
5217 | (echo_area_display): Rewritten. | |
5218 | (redisplay_internal): Check for needed echo area update | |
5219 | differently. | |
5220 | (redisplay_preserve_echo_area): Rewritten. | |
5221 | (redisplay_window): Check for mini-window displaying echo area | |
5222 | message differently. | |
5223 | (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers. | |
5224 | Remove initialzation of removed variables. | |
5225 | (init_xdisp): Remove references to removed variables. | |
5226 | ||
5227 | * dispnew.c (adjust_frame_message_buffer): Removed references | |
5228 | to echo_area_glyphs and previous_echo_glyphs. | |
5229 | (direct_output_for_insert): Check for mini-window displaying | |
5230 | echo area message differently. | |
5231 | (update_frame): Likewise. | |
5232 | (set_window_cursor_after_update): Likewise. In echo area, | |
5233 | don't try to set cursor on rows that aren't enabled. | |
5234 | ||
5235 | * print.c: Remove conditional compilation on `standalone'. | |
5236 | (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy, | |
5237 | glyph_to_str_cpy): Remove that section because GLYPHs are no | |
5238 | longer used in that way. | |
5239 | (PRINTDECLARE): Add multibyte. | |
5240 | (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently. | |
5241 | (printbufidx): Removed. | |
5242 | (printchar, strout): Rewritten. | |
5243 | ||
5244 | * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to | |
5245 | a struct kboard. | |
5246 | (echo_kboard): New. | |
5247 | (echo_now): Set echo_kboard to the current kboard. | |
5248 | (cancel_echoing): Set echo_kboard to null. | |
5249 | (cmd_error_internal): Use clear_message, remove references | |
5250 | to echo_area_glyphs and echo_area_message. | |
5251 | (command_loop_1): Check for echo area messages differently. | |
5252 | (read_char): Likewise. | |
5253 | (record_menu_key): Use clear_message. | |
5254 | (Fexecute_extended_command): Check for echo area messages | |
5255 | differently. Use push_message, restore_message, pop_message. | |
5256 | ||
5257 | * alloc.c (Fgarbage_collect): Use push_message, restore_message, | |
5258 | pop_message. | |
5259 | ||
5260 | * emacs.c (shut_down_emacs): Call check_message_stack. | |
5261 | ||
5262 | * lisp.h: Add function prototypes and extern declarations for | |
5263 | new functions and variables. | |
5264 | ||
5265 | * fileio.c (Fdo_auto_save): Use push_message, restore_message, | |
5266 | pop_message. | |
5267 | ||
5268 | * minibuf.c (read_minibuf): Use clear_message instead of | |
5269 | setting echo_area_glyphs. | |
5270 | (Fminibuffer_completion_help): Ditto. | |
5271 | ||
5272 | * editfns.c (Fcurrent_message): Rewritten. | |
5273 | ||
5274 | * frame.c, window.h: Remove references to echo_area_glyphs | |
5275 | and previous_echo_glyphs. | |
5276 | ||
5277 | 1999-08-21 Dave Love <fx@gnu.org> | |
5278 | ||
5279 | * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O. | |
5280 | * aix4-1.h: Likewise. | |
5281 | ||
5282 | * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize. | |
5283 | ||
5284 | 1999-08-20 Gerd Moellmann <gerd@gnu.org> | |
5285 | ||
5286 | * xfns.c: Remove tiff34 prefix from include. | |
5287 | ||
5288 | 1999-08-20 Dave Love <fx@gnu.org> | |
5289 | ||
5290 | * cm.c: Revert previous change. | |
5291 | ||
5292 | 1999-08-19 Gerd Moellmann <gerd@gnu.org> | |
5293 | ||
5294 | * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear | |
5295 | under scroll bar with width FRAME_SCROLL_BAR_COLS. | |
5296 | ||
5297 | 1999-08-18 Dave Love <fx@gnu.org> | |
5298 | ||
5299 | * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use | |
5300 | stdlib.h. | |
5301 | ||
5302 | * doprnt.c: Use stdlib.h, unistd.h. | |
5303 | ||
5304 | * config.in: Add HAVE_TERMCAP_H. | |
5305 | ||
5306 | * cm.c: Use termcap.h. | |
5307 | ||
5308 | 1999-08-18 Gerd Moellmann <gerd@gnu.org> | |
5309 | ||
5310 | * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for | |
5311 | FRAME_X_WINDOW (f) being null at the of the function. If widgets | |
5312 | cannot be created we will already have crashed earlier. Call | |
5313 | lw_set_main_areas with a null menu-bar widget, so that we have | |
5314 | a reasonable default. | |
5315 | (Fx_create_frame): Rearranged so that Lisp errors during frame | |
5316 | initialization cause less damage. Initialize menu bar widget | |
5317 | here. | |
5318 | ||
5319 | 1999-08-18 Gerd Moellmann <gerd@gnu.org> | |
5320 | ||
5321 | * dispnew.c (update_frame_line): Fix previous change. If writing | |
5322 | whole line clear to end of frame. | |
5323 | ||
5324 | 1999-08-17 Gerd Moellmann <gerd@gnu.org> | |
5325 | ||
5326 | * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area' | |
5327 | and `right-bitmap-area' if position is in the bitmap areas. This | |
5328 | avoids an error when clicking on the bitmap areas. Instead, they | |
5329 | are currently treated like clicks inside the window. | |
5330 | (coordinates_in_window): Return 5 and 6 for bitmap areas. | |
5331 | (Qleft_bitmap_area, Qright_bitmap_area): New. | |
5332 | (syms_of_window): Initialize new symbols. | |
5333 | ||
5334 | * dispnew.c (update_frame_line): If writing whole line, | |
5335 | don't write trailing spaces unless we must. | |
5336 | ||
5337 | * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p. | |
5338 | (redisplay_internal): Register unwind_redisplay with | |
5339 | register_unwind_protect. | |
5340 | (try_window_reusing_current_matrix): If new start > old start, | |
5341 | give up if start pos of first reusable row is not equal to new | |
5342 | start. | |
5343 | ||
5344 | * eval.c (Fsignal): Don't reset redisplaying_p here. | |
5345 | ||
5346 | * xterm.c (expose_area): If row extends face to end of line, | |
5347 | write the whole line. | |
5348 | ||
5349 | 1999-08-16 Gerd Moellmann <gerd@gnu.org> | |
5350 | ||
5351 | * dispextern.h (struct it): Remove member | |
5352 | show_trailing_whitespace_p. | |
5353 | ||
5354 | * dispnew.c (direct_output_for_insert): Use | |
5355 | Vshow_trailing_whitespace instead of former iterator member | |
5356 | show_trailing_whitespace_p. | |
5357 | (direct_output_forward_char): Don't do it if hightlighting | |
5358 | trailing whitespace. | |
5359 | ||
5360 | * xdisp.c (Qshow_trailing_whitespace): Removed. | |
5361 | (Vshow_trailing_whitespace): Added. | |
5362 | (init_iterator): Remove initialization code for | |
5363 | show_trailing_whitespace_p. | |
5364 | (redisplay_internal): Don't try cursor movement in this_line | |
5365 | if showing trailing whitespace. | |
5366 | (redisplay_window): Likewise for cursor movement in current | |
5367 | matrix and try_window_id. | |
5368 | (try_window_reusing_current_matrix): Likewise. | |
5369 | (trailing_whitespace_p): Return 0 if trailing whitespace is | |
5370 | in front of point. | |
5371 | (display_line): Use Vshow_trailing_whitespace instead of | |
5372 | former iterator member show_trailing_whitespace_p. | |
5373 | (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace. | |
5374 | ||
5375 | 1999-08-16 Gerd Moellmann <gerd@gnu.org> | |
5376 | ||
5377 | * window.c (Fpos_visible_in_window_p): Rewritten. | |
5378 | ||
5379 | * xfaces.c (add_to_log): Renamed from display_message. | |
5380 | Don't display messages in echo area. | |
5381 | ||
5382 | * xterm.c (x_draw_glyph_string_box): Use the background width | |
5383 | of the glyph string for the width of the box. | |
5384 | ||
5385 | 1999-08-16 Stefan Monnier <monnier@cs.yale.edu> | |
5386 | ||
5387 | * syntax.c (Fforward_comment): Set comstyle for Scomment_fence. | |
5388 | ||
5389 | 1999-08-16 Geoff Voelker <voelker@cs.washington.edu> | |
5390 | ||
5391 | * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and | |
5392 | background first, and then set other parameters that might | |
5393 | depend upon their new values. | |
5394 | ||
5395 | 1999-08-15 Gerd Moellmann <gerd@gnu.org> | |
5396 | ||
5397 | * xfaces.c (Vfont_list_limit): New. | |
5398 | (syms_of_xfaces): Make it a user-variable. | |
5399 | (DEFAULT_FONT_LIST_LIMIT): New. | |
5400 | (sorted_font_list): If Vfont_list_limit is an integer > 0, list | |
5401 | maximally that number of fonts, otherwise use | |
5402 | DEFAULT_FONT_LIST_LIMIT. | |
5403 | (Fx_font_family_list): Bind `font-list-limit' to higher values | |
5404 | until we have all fonts. | |
5405 | (Fxfont_list): Additionally return the full names of fonts and | |
5406 | their registry and encoding. | |
5407 | ||
5408 | * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
5409 | Simplify clearing "under" scroll bar. | |
5410 | ||
5411 | * window.c (Qfixed_window_size): New. | |
5412 | (syms_of_window): Initialiaze it. | |
5413 | (check_all_windows): Add return type void. | |
5414 | (window_fixed_size_p): New. Return non-zero if window | |
5415 | is fixed-size. | |
5416 | (window_min_size_1): New. | |
5417 | (window_min_size): Handle fixed-size windows. | |
5418 | (size_window): New. Rewritten combination of set_window_height and | |
5419 | set_window_width that handles fixed-size windows. | |
5420 | (set_window_height): Call it. | |
5421 | (set_window_width): Call it. | |
5422 | (Fsplit_window): Give an error on attempt to split a fixed-size | |
5423 | window. | |
5424 | (change_window_height): Partly rewritten to handle fixed-size | |
5425 | windows. | |
5426 | ||
5427 | 1999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com> | |
5428 | ||
5429 | * process.c (Fopen_network_stream): Fix previous change. | |
5430 | ||
5431 | 1999-08-13 Karl Heuer <kwzh@gnu.org> | |
5432 | ||
5433 | * xdisp.c (line_number_display_limit_width): New var. | |
5434 | (decode_mode_spec): Use it instead of hardcoded value. | |
5435 | (syms_of_xdisp): Defvar it. | |
5436 | ||
5437 | 1999-08-13 Richard M. Stallman <rms@gnu.org> | |
5438 | ||
5439 | * eval.c (run_hook_list_with_args): Gcpro `globals'. | |
5440 | (run_hook_with_args): Likewise. | |
5441 | ||
5442 | * window.h (struct window): New field too_small_ok. | |
5443 | ||
5444 | * window.c (set_window_height, set_window_width): | |
5445 | If window starts out "too small", set its too_small_ok flag. | |
5446 | If window's too_small_ok flag is set, don't delete it | |
5447 | unless it is so small it would cause a crash. | |
5448 | ||
5449 | 1999-08-13 Gerd Moellmann <gerd@gnu.org> | |
5450 | ||
5451 | * window.c (MINSIZE): Removed. | |
5452 | (window_min_size): New. | |
5453 | (set_window_height): Use window_min_size. | |
5454 | (change_window_height): Ditto. | |
5455 | ||
5456 | 1999-08-12 Gerd Moellmann <gerd@gnu.org> | |
5457 | ||
5458 | * indent.c (vmotion): Don't add in mini-buffer prompt width | |
5459 | if prompts are inserted into mini-buffer. | |
5460 | ||
5461 | 1999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com> | |
5462 | ||
5463 | * config.in: Add HAVE_GETADDRINFO. | |
5464 | * process.c (Fopen_network_stream): Use getaddrinfo. | |
5465 | ||
5466 | 1999-08-11 Gerd Moellmann <gerd@gnu.org> | |
5467 | ||
5468 | * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of | |
5469 | glyphs to -1. | |
5470 | ||
5471 | * xdisp.c (face_before_or_after_it_pos): If position after | |
5472 | or before iterator's current position in the buffer is out | |
5473 | of bounds, return the iterator's original face id. | |
5474 | ||
5475 | * dispnew.c (mirror_make_current): If desired row isn't enabled, | |
5476 | just swap glyphs pointers between current and desired row. | |
5477 | (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy | |
5478 | desired matrix method string to current matrix. | |
5479 | ||
5480 | 1999-08-11 Kenichi Handa <handa@etl.go.jp> | |
5481 | ||
5482 | * lisp.h (CHAR_MODIFIER_MASK): New macro. | |
5483 | ||
5484 | * lread.c (read_escape): For Control modifier, pay attention to | |
5485 | multibyte character. | |
5486 | (read1): Likewise. Singal error or a multibyte character which | |
5487 | has a modifer bit. Check validity of Shift modifer. | |
5488 | ||
5489 | * charset.c (non_ascii_char_to_string): Handle modifier bits as | |
5490 | the same as Lisp reader. | |
5491 | ||
5492 | 1999-08-10 Richard M. Stallman <rms@gnu.org> | |
5493 | ||
5494 | * charset.h (BCOPY_SHORT): Fix typo `unsigined'. | |
5495 | ||
5496 | 1999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br> | |
5497 | ||
5498 | * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define. | |
5499 | ||
5500 | 1999-08-10 Eli Zaretskii <eliz@gnu.org> | |
5501 | ||
5502 | * msdos.c (IT_set_face): Abort if the default face is not realized | |
5503 | and cached. | |
5504 | (IT_write_glyphs): Reset the screen face to the default face | |
5505 | before writing glyphs. | |
5506 | ||
5507 | * xfaces.c (realize_default_face) [MSDOS]: Don't take default | |
5508 | colors from the frame here. | |
5509 | (realize_tty_face) [MSDOS]: Do it here. Update the face | |
5510 | attributes with the actual name of the color taken from the | |
5511 | frame. | |
5512 | ||
5513 | * dosfns.c (msdos_stdcolor_name): Remove const from return value. | |
5514 | * dosfns.h (msdos_stdcolor_name): Ditto for the prototype. | |
5515 | ||
5516 | * frame.c (Fframe_parameters): Swap foreground and background | |
5517 | colors returned in frame parameters if the frame has reverse in | |
5518 | its parameter alist. | |
5519 | (Fmake_terminal_frame): Make a unique copy of face_alist for | |
5520 | each frame. | |
5521 | ||
5522 | 1999-08-07 Richard Stallman <rms@gnu.org> | |
5523 | ||
5524 | * buffer.c (Fprevious_overlay_change): Just return | |
5525 | the answer obtained from overlays_at. | |
5526 | ||
5527 | * xfns.c (xpm_load) [!XpmAllocCloseColors]: | |
5528 | Use XpmCloseness and attrs.closeness instead. | |
5529 | ||
5530 | 1999-08-06 Richard Stallman <rms@gnu.org> | |
5531 | ||
5532 | * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT. | |
5533 | ||
5534 | 1999-08-06 Geoff Voelker <voelker@cs.washington.edu> | |
5535 | ||
5536 | * dired.c (directory_files_internal, Fdirectory_files_and_attributes, | |
5537 | Ffile_attributes_lessp): New functions. | |
5538 | (Fdirectory_files): Use directory_files_internal. | |
5539 | (syms_of_dired): Initialize Fdirectory_files_and_attributes, | |
5540 | Ffile_attributes_lessp. | |
5541 | ||
5542 | * w32.c (stat): Check for directory ending in separator when | |
5543 | doing readdir fast path. | |
5544 | ||
5545 | * w32fns.c (x_set_icon_type): Support setting frame icons. | |
5546 | * w32term.c (x_bitmap_icon): New function. | |
5547 | (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon. | |
5548 | ||
5549 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
5550 | ||
5551 | * xdisp.c (set_iterator_to_next): After delivering a character | |
5552 | from a display vector, restore face and charset to what they were | |
5553 | before the display vector was processed. | |
5554 | ||
5555 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
5556 | ||
5557 | * xdisp.c (reseat_at_next_visible_line_start): New parameter | |
5558 | on_newline_p. | |
5559 | (set_iterator_to_next): After delivering last char | |
5560 | from display vector, reseat on next visible line start if | |
5561 | dpvec_char_len < 0. | |
5562 | (next_element_from_buffer): Set dpvec_char_len to -1 for | |
5563 | selective display. | |
5564 | ||
5565 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
5566 | ||
5567 | * xdisp.c (compute_line_metrics): If first line's physical ascent | |
5568 | is larger than its logical ascent, use the physical ascent, and | |
5569 | make the row taller. Set row's overlapping_p flag. | |
5570 | ||
5571 | * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p. | |
5572 | (direct_output_for_insert): Ditto. | |
5573 | ||
5574 | * dispextern.h (struct glyph_row): Add overlapping_p. | |
5575 | ||
5576 | * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps. | |
5577 | ||
5578 | * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New. | |
5579 | (MATRIX_ROW_OVERLAPS_SUCC_P): New. | |
5580 | ||
5581 | * dispnew.c (direct_output_for_insert): Don't use this method if | |
5582 | row is overlapped by others. | |
5583 | (update_text_area): Write full line if current line is overlapped. | |
5584 | (redraw_overlapped_rows): New. | |
5585 | (update_window): Call it. | |
5586 | (redraw_overlapping_rows): New. | |
5587 | (update_window): Call it. | |
5588 | (scrolling_window): Make sure overlapped_p flag in current rows is | |
5589 | unchanged. | |
5590 | (row_equal_p): Take rows overlapped_p flag into account. | |
5591 | ||
5592 | * dispextern.h (struct glyph_row): Add flag overlapped_p. | |
5593 | ||
5594 | * xterm.c (x_fix_overlapping_area): New. | |
5595 | (x_redisplay_interface): Add x_fix_overlapping_area. | |
5596 | ||
5597 | * dispnew.c (adjust_glyphs): Block input while adjusting matrices. | |
5598 | ||
5599 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
5600 | ||
5601 | * xterm.c (x_draw_glyphs): Add parameter overlaps_p. | |
5602 | (struct glyph_string): Add member for_overlaps_p. | |
5603 | (x_get_glyph_string_clip_rect): If glyph string draws foreground | |
5604 | of overlapping rows, clip to window bottom. | |
5605 | (x_fill_glyph_string): Add parameter overlaps_p. | |
5606 | (x_fill_composite_glyph_string): Ditto. | |
5607 | (BUILD_GLYPH_STRINGS): Ditto. | |
5608 | (BUILD_CHAR_GLYPH_STRINGS): Ditto. | |
5609 | (x_draw_glyph_string): Don't draw anything but the foreground | |
5610 | if glyph string draws row overlaps. | |
5611 | ||
5612 | * dispnew.c (direct_output_for_insert): Don't use this | |
5613 | optimization for rows that overlap others. | |
5614 | (update_window_line): Return non-zero if display has changed. | |
5615 | (update_text_area): Ditto. | |
5616 | (update_window): Record if display has been changed. | |
5617 | ||
5618 | * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New. | |
5619 | ||
5620 | * dispextern.h (struct redisplay_interface): Add | |
5621 | fix_overlapping_area. | |
5622 | ||
5623 | * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p. | |
5624 | ||
5625 | * dispextern.h (struct glyph): Add overlaps_vertically_p. | |
5626 | ||
5627 | * xterm.c (x_produce_image_glyph): Compute iterator's physical | |
5628 | ascent and descent. | |
5629 | (x_produce_stretch_glyph): Ditto. | |
5630 | (x_produce_glyphs): Ditto. | |
5631 | ||
5632 | * xdisp.c (init_iterator): Reset physical line height info | |
5633 | after producing special glyphs. | |
5634 | (display_toolbar_line): Set physical line height info. | |
5635 | (compute_line_metrics): Ditto. | |
5636 | (display_line): Ditto. | |
5637 | (display_string): Ditto. | |
5638 | ||
5639 | * term.c (produce_glyphs): Set iterator's physical height | |
5640 | information. | |
5641 | ||
5642 | * dispnew.c (blank_row): Compute glyph row's physical height. | |
5643 | (row_equal_p): Take physical row heights into account. | |
5644 | (direct_output_for_insert): Ditto. | |
5645 | (update_text_area): Ditto. | |
5646 | ||
5647 | * dispextern.h (struct glyph_row): Add phys_ascent and | |
5648 | phys_height. | |
5649 | (struct it): Add phys_ascent, phys_descent, max_phys_ascent, | |
5650 | max_phys_descent. | |
5651 | ||
5652 | 1999-08-04 Stefan Monnier <monnier@cs.yale.edu> | |
5653 | ||
5654 | * buffer.c (switch_to_buffer_1): New subroutine, taken out from | |
5655 | Fswitch_to_buffer. | |
5656 | (no_switch_buffer): New function. | |
5657 | (Fswitch_to_buffer): Call them. Don't get confused | |
5658 | by "same-window" buffers in a dedicated frame. | |
5659 | ||
5660 | * window.c (display-buffer): Don't get confused | |
5661 | by "same-window" buffers in a dedicated frame. | |
5662 | ||
5663 | 1999-08-04 Andreas Schwab <schwab@gnu.org> | |
5664 | ||
5665 | * insdel.c (insert_from_string_1): Check gap size against number | |
5666 | of outgoing bytes, not incoming bytes. | |
5667 | ||
5668 | 1999-08-03 Tom Breton <tob@world.std.com> | |
5669 | ||
5670 | * lread.c (read1): Added circular reading code to #N=. | |
5671 | (SUBSTITUTE): New macro. | |
5672 | (seen_list): New variable. | |
5673 | (substitute_object_in_subtree): New function. | |
5674 | (substitute_object_recurse): New function. | |
5675 | (substitute_in_interval): New function. | |
5676 | ||
5677 | 1999-08-02 Eli Zaretskii <eliz@gnu.org> | |
5678 | ||
5679 | * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h. | |
5680 | ||
5681 | * frame.c (make_terminal_frame): Don't call init_frame_faces if | |
5682 | noninteractive, for termcap frames as well. | |
5683 | ||
5684 | * sysdep.c (init_sys_modes): Call init_frame_faces for termcap | |
5685 | frames. | |
5686 | ||
5687 | 1999-08-01 Richard Stallman <rms@gnu.org> | |
5688 | ||
5689 | * fns.c (internal_equal): Correct overlay comparison. | |
5690 | ||
83c8f461 | 5691 | 1999-07-31 Richard M. Stallman <rms@gnu.org> |
26901792 DL |
5692 | |
5693 | * xfns.c (x_set_internal_border_width): | |
5694 | Call do_pending_window_change. Don't block input, don't call XFlush. | |
5695 | (x_set_vertical_scroll_bars): Call do_pending_window_change. | |
5696 | (x_set_scroll_bar_width, x_set_font): Likewise. | |
5697 | ||
5698 | * frame.c (Fset_frame_height): Call do_pending_window_change. | |
5699 | (Fset_frame_width, Fset_frame_size): Likewise. | |
5700 | ||
5701 | * xterm.c (x_set_window_size): When calling change_frame_size, | |
5702 | specify 1 for DELAY. | |
5703 | ||
5704 | * widget.c (EmacsFrameSetCharSize): Don't call | |
5705 | do_pending_window_change here. | |
5706 | ||
5707 | 1999-07-30 Dave Love <fx@gnu.org> | |
5708 | ||
5709 | * config.in: Add HAVE_STDLIB_H. | |
5710 | ||
5711 | 1999-07-30 Richard M. Stallman <rms@gnu.org> | |
5712 | ||
5713 | * process.c (create_process): Detect failure of `pipe'. | |
5714 | ||
5715 | 1999-07-30 Keisuke Nishida <kei@psn.net> | |
5716 | ||
5717 | * alloc.c (allocate_vectorlike): Add missing increment. | |
5718 | ||
5719 | * data.c (Fdefalias): Call Ffset instead of duplicating code. | |
5720 | ||
5721 | * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT | |
5722 | before calling indirect_function. | |
5723 | ||
5724 | 1999-07-30 Eli Zaretskii <eliz@gnu.org> | |
5725 | ||
5726 | * dispextern.h (load_color, lookup_derived_face): Declare | |
5727 | prototypes. | |
5728 | ||
5729 | * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces, | |
5730 | it will be done later. | |
5731 | ||
5732 | * frame.c (make_terminal_frame) [MSDOS]: Don't call | |
5733 | init_frame_faces if non-interactive. | |
5734 | (Fframe_parameters) [MSDOS]: Replace indexing into colornames[] | |
5735 | array with a call to msdos_stdcolor_name. The font name is now | |
5736 | "ms-dos", consistent with realize_tty_face. | |
5737 | ||
5738 | * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an | |
5739 | MSDOS frame. | |
5740 | ||
5741 | * window.c (Fset_window_configuration) [MSDOS]: Don't call | |
5742 | x_set_toolbar_lines. | |
5743 | ||
5744 | * xfaces.c (load_color): Remove static from definition and remove | |
5745 | prototype. | |
5746 | [MSDOS]: Add a DOS-specific version of load_color. | |
5747 | (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P. | |
5748 | (lookup_derived_face): New function. | |
5749 | (realize_default_face): Support MSDOS frames. | |
5750 | [MSDOS]: If fore/background colors are unspecified, inherit them | |
5751 | from the frame. | |
5752 | (realize_face): Support MSDOS frames. | |
5753 | (realize_tty_face): Support MSDOS frames. | |
5754 | [MSDOS]: If the face color is not in Vface_tty_color_alist, call | |
5755 | load_color to try to find a suitable approximation. If the face | |
5756 | is inverse-video, swap the foreground and background colors. | |
5757 | ||
5758 | * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New | |
5759 | functions. | |
5760 | ||
5761 | * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare. | |
5762 | ||
5763 | * msdos.h: Remove redundant declarations (most of them are now in | |
5764 | dispextern.h). | |
5765 | ||
5766 | * msdos.c (IT_set_face): Rewritten for the new redisplay engine. | |
5767 | Use default frame colors if the face doesn't specify them; invert | |
5768 | the colors if highlight is ON. | |
5769 | (IT_write_glyphs): Rewritten for the new redisplay engine. | |
5770 | (IT_change_line_highlight): Add (unused) parameter Y, since that's | |
5771 | how the hook is called by term.c. | |
5772 | (IT_copy_glyphs): New function, copies an area of the display in | |
5773 | video RAM. | |
5774 | (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since | |
5775 | redisplay now calls it even if char_ins_del_ok is zero. | |
5776 | (IT_set_frame_parameters): Prototype changed. Calls the new | |
5777 | load_color. Puts the new fore/background colors into the default | |
5778 | face on current frame. | |
5779 | (IT_menu_display): Rewritten to handle the new struct glyph | |
5780 | instead of a char array. | |
5781 | (XMenuActivate): Call lookup_derived_face to create and use | |
5782 | special faces for the pop-up and drop-down menus. | |
5783 | ||
5784 | 1999-07-29 Gerd Moellmann <gerd@gnu.org> | |
5785 | ||
5786 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call | |
5787 | XawScrollbarSetThumb if thumb parameters haven't changed because | |
5788 | that function apparently isn't optimized for this case. | |
5789 | ||
5790 | 1999-07-29 Eli Zaretskii <eliz@gnu.org> | |
5791 | ||
5792 | * msdos.c (getdefdir): Don't return failure indication when | |
5793 | _fixpath sets errno to ENOSYS. | |
5794 | ||
5795 | 1999-07-28 Gerd Moellmann <gerd@gnu.org> | |
5796 | ||
5797 | * xdisp.c (string_char_and_length): New. Use it everywhere | |
5798 | instead of STRING_CHAR_AND_LENGTH in xdisp.c. | |
5799 | ||
5800 | 1999-07-28 Kenichi Handa <handa@etl.go.jp> | |
5801 | ||
5802 | * fns.c (count_combining): New function. | |
5803 | (struct textprop_rec): New structure. | |
5804 | (concat): Copy text properties correctly when byte combining | |
5805 | occurs. | |
5806 | ||
5807 | 1999-07-28 Gerd Moellmann <gerd@gnu.org> | |
5808 | ||
5809 | * xterm.c (x_setup_relief_color): Don't try smart color allocation | |
5810 | if display is mono. | |
5811 | (x_draw_row_bitmaps): If face has stipple, don't switch | |
5812 | to foreground color for clearing areas, and set the fill style. | |
5813 | ||
5814 | * xfaces.c (load_face_colors): Load background color if setting | |
5815 | stipple, too. | |
5816 | (prepare_face_for_display): Use FillOpaqueStippled instead of | |
5817 | FillStippled. | |
5818 | ||
5819 | 1999-07-26 Ken'ichi Handa <handa@gnu.org> | |
5820 | ||
5821 | * xterm.c (x_find_ccl_program): Add casting. | |
5822 | ||
5823 | * w32fns.c (w32_find_ccl_program): Add casting. | |
5824 | ||
5825 | 1999-07-27 Gerd Moellmann <gerd@gnu.org> | |
5826 | ||
5827 | * dispextern.h (struct glyph_row): Flag internal_border_p removed. | |
5828 | ||
5829 | * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource | |
5830 | because this will try to access a nonexisting widget. | |
5831 | ||
5832 | 1999-07-26 Markus Rost <rost@gnu.org> | |
5833 | ||
5834 | * fns.c (Fgethash): Fix order of variables (patch by gerd). | |
5835 | (Fputhash): Ditto. | |
5836 | (Fremhash): Ditto. | |
5837 | ||
5838 | 1999-07-26 Gerd Moellmann <gerd@gnu.org> | |
5839 | ||
5840 | * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth | |
5841 | value to frame width and height. | |
5842 | ||
5843 | * xterm.c (x_get_glyph_string_clip_rect): Take internal border | |
5844 | into account for full-width windows. Don't add scroll bar width | |
5845 | to width of clip rect. | |
5846 | (x_draw_glyph_string_box): Add 1 to right x of full width lines. | |
5847 | (x_set_glyph_string_background_width): Add 1 to background width. | |
5848 | (x_draw_glyphs): Take internal border into account for full-width | |
5849 | lines. | |
5850 | ||
5851 | 1999-07-26 Richard M. Stallman <rms@gnu.org> | |
5852 | ||
5853 | * xfns.c (x_set_mouse_color): Always unload the old color. | |
5854 | Don't allow nil as color value. | |
5855 | (x_set_cursor_color, x_set_background_color, x_set_foreground_color): | |
5856 | Always unload the old color. | |
5857 | ||
5858 | * indent.c (Fmove_to_column): Extend end of line only if FORCE is t. | |
5859 | ||
5860 | 1999-07-26 Karl Heuer <kwzh@gnu.org> | |
5861 | ||
5862 | * fns.c (Fy_or_n_p): Doc fix. | |
5863 | ||
5864 | 1999-07-26 Kenichi Handa <handa@etl.go.jp> | |
5865 | ||
5866 | * ccl.h (setup_ccl_program): The type is changed to `int'. | |
5867 | ||
5868 | * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be | |
5869 | stored in the following CCL code. Adjusted for the change of | |
5870 | Vccl_program_table. | |
5871 | (resolve_symbol_ccl_program): Adjusted for the new style of | |
5872 | embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt | |
5873 | is resolving failed. | |
5874 | (ccl_get_compiled_code): New function. | |
5875 | (setup_ccl_program): Function type changed from `void' to `int'. | |
5876 | Resolve symbols in CCL_PROG. | |
5877 | (Fccl_program_p): New function. | |
5878 | (Fccl_execute): Get compiled CCL code by just calling | |
5879 | setup_ccl_program. | |
5880 | (Fccl_execute_on_string): Likewise. | |
5881 | (Fregister_ccl_program): Adjusted for the change of | |
5882 | Vccl_program_table. | |
5883 | ||
5884 | * coding.c (setup_coding_system): Get compiled CCL code by just | |
5885 | calling setup_ccl_program. | |
5886 | ||
5887 | * xterm.c (x_find_ccl_program): Get compiled CCL code by just | |
5888 | calling setup_ccl_program. | |
5889 | ||
5890 | * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just | |
5891 | calling setup_ccl_program. | |
5892 | ||
5893 | 1999-07-23 Gerd Moellmann <gerd@gnu.org> | |
5894 | ||
5895 | * xfaces.c (frame_update_line_height): Just use the height of the | |
5896 | frame's fontset or font, instead of taking face fonts into | |
5897 | account. | |
5898 | ||
5899 | * xdisp.c (get_next_display_element): Display DEL as `^?'. | |
5900 | ||
5901 | 1999-07-23 Richard M. Stallman <rms@gnu.org> | |
5902 | ||
5903 | * window.c (Fsplit_window): For default size, round up for left window. | |
5904 | ||
5905 | 1999-07-21 Joe Ramey <ramey@ti.com> | |
5906 | ||
5907 | * filelock.c (lock_if_free): Return -1 if check_lock_owner | |
5908 | has returned -1 (lockfile exists but is not a symlink?). | |
5909 | ||
5910 | 1999-07-20 Gerd Moellmann <gerd@gnu.org> | |
5911 | ||
5912 | * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to | |
5913 | because of a change in cursor_gc made in 20.4. | |
5914 | ||
5915 | 1999-07-19 Gerd Moellmann <gerd@gnu.org> | |
5916 | ||
5917 | * xterm.c (x_calc_absolute_position): Subtract menu bar height | |
5918 | for YNegative, if using X toolkit. | |
5919 | ||
5920 | * xfns.c (x_real_positions): Don't subtract window borders | |
5921 | from positions returned. | |
5922 | ||
5923 | 1999-07-17 Gerd Moellmann <gerd@gnu.org> | |
5924 | ||
5925 | * xrdb.c (x_load_resources): Set double-click time defaults | |
5926 | for Motif list boxes from double-click-time. | |
5927 | ||
5928 | * fns.c (Vhash_table_tests): Remvoed. | |
5929 | (Qhash_table_test): New. | |
5930 | (syms_of_fns): Initialize Qhash_table_test. | |
5931 | (Fmake_hash_table): Look up user-defined tests in symbol prop | |
5932 | `hash-table-test'. | |
5933 | (Fdefine_hash_table_test): Store test and hash function as | |
5934 | symbol prop `hash-table-test'. | |
5935 | (make_hash_table): Add parameters user_test and user_hash. | |
5936 | ||
5937 | * window.c (set_window_buffer): Set window margins for tty | |
5938 | frames, too. | |
5939 | (Fset_window_margins): Ditto. | |
5940 | ||
5941 | * term.c (append_glyph): Use glyph area of iterator instead of | |
5942 | always TEXT_AREA. | |
5943 | ||
5944 | * dispnew.c (update_frame_1): Add left margin width to cursor | |
5945 | hpos. | |
5946 | (direct_output_for_insert): Ditto. | |
5947 | (direct_output_forward_char): Ditto. | |
5948 | ||
5949 | * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p. | |
5950 | ||
5951 | * dispextern.h (struct glyph_matrix): Add top_line_p. | |
5952 | ||
5953 | 1999-07-16 Gerd Moellmann <gerd@gnu.org> | |
5954 | ||
5955 | * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P | |
5956 | instead. | |
5957 | ||
5958 | * fns.c (cmpfn_eq): Add hash code parameters. | |
5959 | (cmpfn_eql): Ditto. | |
5960 | (cmpfn_equal): Ditto, and compare hash codes before calling Fequal. | |
5961 | (cmpfn_user_defined): Likewise. | |
5962 | ||
5963 | 1999-07-15 Gerd Moellmann <gerd@gnu.org> | |
5964 | ||
5965 | * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8. | |
5966 | ||
5967 | * fns.c (maybe_resize_hash_table): Correct computation of | |
5968 | index vector size. | |
5969 | (make_hash_table): Ditto. | |
5970 | (Fmakehash): New. | |
5971 | ||
5972 | * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames. | |
5973 | ||
5974 | * alloc.c (gc_sweep): Call sweep_weak_hash_tables. | |
5975 | (survives_gc_p): Make it externally visible. | |
5976 | (mark_object): Ditto. | |
5977 | ||
5978 | * fns.c (remove_hash_entry): Removed. | |
5979 | (sweep_weak_hash_tables): New. | |
5980 | ||
5981 | * print.c (print): Print more information about hash tables. | |
5982 | ||
5983 | * xfns.c (image_spec_hash): Removed. | |
5984 | (lookup_image): Use sxhash instead of image_spec_hash. | |
5985 | (image_spec_equal_p): Removed. | |
5986 | (lookup_image): Use Fequal instead of image_spec_equal_p. | |
5987 | ||
5988 | 1999-07-14 Gerd Moellmann <gerd@gnu.org> | |
5989 | ||
5990 | * lisp.h (P_): Moved to top of file. | |
5991 | ||
5992 | * fns.c (make_hash_table): Set new members. | |
5993 | ||
5994 | * alloc.c (mark_object): Mark hash table's user_hash_function. | |
5995 | Mark index vector for weak hash tables. | |
5996 | ||
5997 | * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function, | |
5998 | user_hash_function, cmpfn, and hashfn. | |
5999 | ||
6000 | * fns.c (build_hash): Removed. | |
6001 | (hash_test): Removed. | |
6002 | (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New. | |
6003 | (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New. | |
6004 | ||
6005 | 1999-07-13 Gerd Moellmann <gerd@gnu.org> | |
6006 | ||
6007 | * alloc.c (survives_gc_p): New. | |
6008 | ||
6009 | * print.c (print): Add hash table handling. | |
6010 | ||
6011 | * alloc.c (mark_object): Add code to mark hash tables. | |
6012 | ||
6013 | * lisp.h (GC_HASH_TABLE_P): New. | |
6014 | ||
6015 | * emacs.c (main): Call init_fns. | |
6016 | ||
6017 | * fns.c (init_fns): New. | |
6018 | ||
6019 | * fns.c: Add hash table implementation. | |
6020 | ||
6021 | * lisp.h (PVEC_HASH_TABLE): New. | |
6022 | (struct Lisp_Hash_Table): New. | |
6023 | (XHASH_TABLE): New. | |
6024 | (XSET_HASH_TABLE): New. | |
6025 | (HASH_TABLE_P): New. | |
6026 | (CHECK_HASH_TABLE): New. | |
6027 | (DEFAULT_HASH_SIZE): New. | |
6028 | (DEFAULT_REHASH_THRESHOLD): New. | |
6029 | (DEFAULT_REHASH_SIZE): New. | |
6030 | ||
6031 | * xterm.c (x_draw_glyphs): Add parameters real_start and real_end. | |
6032 | (x_write_glyphs): Compute overwritten cursor using real start | |
6033 | and end positions of display. | |
6034 | (x_insert_glyphs): Ditto. | |
6035 | ||
6036 | 1999-07-10 Gerd Moellmann <gerd@gnu.org> | |
6037 | ||
6038 | * keyboard.c (read_char): Use message3_nolog to show help-echo. | |
6039 | ||
6040 | * dispnew.c (blank_row): Add y-position as parameter. Compute | |
6041 | visible height. | |
6042 | ||
6043 | * xdisp.c (next_element_from_string): Give padding spaces | |
6044 | a position of -1. | |
6045 | ||
6046 | * dispnew.c (adjust_glyph_matrix): Some work to support | |
6047 | marginals areas on tty frames in a future version. | |
6048 | (allocate_matrices_for_frame_redisplay): Ditto. | |
6049 | ||
6050 | * xdisp.c (display_line): At ZV, set glyph row's displays_text_p | |
6051 | to zero if number of glyphs in the row is <= 1. | |
6052 | ||
6053 | 1999-07-09 Gerd Moellmann <gerd@gnu.org> | |
6054 | ||
6055 | * dispnew.c (buffer_posn_from_coords): Take left marginal area | |
6056 | into account. | |
6057 | ||
6058 | * xdisp.c (handle_display_prop): Don't reset area if handing | |
6059 | a property from a string that came from a `display' property. | |
6060 | (handle_single_display_prop): Don't handle recursive `display' | |
6061 | properties. | |
6062 | (handle_single_display_prop): Handle some display property | |
6063 | forms for terminal frames. | |
6064 | (Qimage): Moved here from xfns.c. | |
6065 | ||
6066 | * dispextern.h (struct it): New field string_from_display_prop_p. | |
6067 | ||
6068 | * xterm.c (x_clip_to_row): Don't let clip_rect include top | |
6069 | line. | |
6070 | ||
6071 | 1999-07-08 Gerd Moellmann <gerd@gnu.org> | |
6072 | ||
6073 | * xdisp.c (handle_single_display_prop): Handle `:when FORM'. | |
6074 | ||
6075 | * window.c (set_window_buffer): Set window's vscroll to zero. | |
6076 | ||
6077 | * xdisp.c (QCwhen): New. | |
6078 | (display_prop_end): New. | |
6079 | (handle_single_display_prop): Use it. | |
6080 | (debug_method_add): Print buffer name if tracing. | |
6081 | (try_window_reusing_current_matrix): Compute visible height | |
6082 | of reused rows. Fix cursor position calculation in case of | |
6083 | top-line. | |
6084 | ||
6085 | * dispextern.h (struct redisplay_interface): Add parameter | |
6086 | cursor_on_p to update_window_end_hook. | |
6087 | ||
6088 | * xterm.c (x_update_window_end): Add parameter cursor_on_p. | |
6089 | ||
6090 | 1999-07-07 Gerd Moellmann <gerd@gnu.org> | |
6091 | ||
6092 | * xdisp.c (redisplay_internal): Ensure that redisplayinp_p | |
6093 | doesn't become negative when decrementing it. | |
6094 | ||
6095 | * eval.c (Fsignal): Reset redisplaying_p to zero. | |
6096 | ||
6097 | * xdisp.c (try_window_reusing_current_matrix): Call hooks | |
6098 | for window update. | |
6099 | (try_window_id): Ditto. | |
6100 | ||
6101 | * xterm.c (x_clear_end_of_line): Handle top-line correctly. | |
6102 | (x_scroll_run): Ditto. | |
6103 | (any_help_event_p): New. | |
6104 | (x_initialize): Set it to zero. | |
6105 | (XTread_socket): Clear help echo only if any_help_event_p. | |
6106 | ||
6107 | * xdisp.c (init_iterator): Set top_line_p. | |
6108 | (start_display): Use correct initial y if top-line is present. | |
6109 | (make_cursor_line_fully_visible): Bug fixes for top-line. | |
6110 | (try_scrolling): Ditto. | |
6111 | (try_window_reusing_current_matrix): Ditto. | |
6112 | ||
6113 | * dispextern.h (struct it): Add top_line_p. | |
6114 | ||
6115 | * dispnew.c (shift_glyph_matrix): Move some computations out | |
6116 | of the loop. | |
6117 | ||
6118 | * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and | |
6119 | XFLOATINT. | |
6120 | ||
6121 | 1999-07-06 Gerd Moellmann <gerd@gnu.org> | |
6122 | ||
6123 | * dispnew.c (update_frame_1): When setting cursor in echo area, | |
6124 | skip only over padding spaces at the end. | |
6125 | ||
6126 | * xfaces.c (realize_tty_face): Set face's font_name field to | |
6127 | "tty". | |
6128 | ||
6129 | * term.c (update_end): Turn cursor on only if selected window's | |
6130 | cursor_off_p flag is not set. | |
6131 | ||
6132 | 1999-07-05 Gerd Moellmann <gerd@gnu.org> | |
6133 | ||
6134 | * term.c (TS_cursor_visible): Renamed from TS_visual_mode. | |
6135 | (TS_cursor_normal): Renamed from TS_end_visual_mode. | |
6136 | (TS_cursor_invisible): New. | |
6137 | (term_init): Initialize TS_cursor_invisible. | |
6138 | (tty_hide_cursor): New. | |
6139 | (tty_show_cursor): New. | |
6140 | (update_end): Show tty cursor. | |
6141 | (update_begin): Hide tty cursor to prevent cursor flickering | |
6142 | during redisplays triggered by timers (stealth fontification). | |
6143 | ||
6144 | * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers. | |
6145 | ||
6146 | * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events | |
6147 | in scroll bars. | |
6148 | (x_handle_toolbar_click): Set modifier bits. | |
6149 | ||
6150 | 1999-07-04 Gerd Moellmann <gerd@gnu.org> | |
6151 | ||
6152 | * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer | |
6153 | instead of a pointer to a volatile input_event. | |
6154 | (kbd_buffer_store_event): Remove volatile modifier from | |
6155 | declaration of local variable `sp'. | |
6156 | (Fdiscard_input): Don't cast when assigning kbd_store_ptr | |
6157 | to kbd_fetch_ptr. | |
6158 | ||
6159 | 1999-07-03 Gerd Moellmann <gerd@gnu.org> | |
6160 | ||
6161 | * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged | |
6162 | only if buffer is modified. Return quickly if changes are | |
6163 | above window start. | |
6164 | ||
6165 | 1999-07-02 Gerd Moellmann <gerd@gnu.org> | |
6166 | ||
6167 | * dispextern.h (HSCROLL_WINDOWS): Removed. | |
6168 | ||
6169 | * xdisp.c (mark_window_display_accurate): Don't set | |
6170 | w->region_showing. | |
6171 | (redisplay_internal): Don't call redraw_garbaged_frames. | |
6172 | ||
6173 | 1999-07-01 Gerd Moellmann <gerd@gnu.org> | |
6174 | ||
6175 | * xdisp.c (echo_area_display): Don't display truncation marks | |
6176 | for messages because 20.4 doesn't do it either. | |
6177 | (redisplay_window): Case same window start. Instead of giving | |
6178 | up when cursor is partially visible, make it fully visible. | |
6179 | (mark_window_display_accurate): Some cleanup. Record window's | |
6180 | last cursor information. | |
6181 | (debug_method_add): Improved. | |
6182 | (redisplay_internal): Record last cursor info only if not | |
6183 | consider_all_windows_p. | |
6184 | ||
6185 | * dispnew.c (update_window): Update top line after scrolling. | |
6186 | (blank_row): Renamed from make_empty_enabled_row. | |
6187 | (increment_glyph_row_buffer_positions): Increment positions | |
6188 | in buffers, only. | |
6189 | ||
6190 | * window.c (Fcoordinates_in_window_p): Add top-line to doc | |
6191 | string. | |
6192 | ||
6193 | 1999-06-30 Gerd Moellmann <gerd@gnu.org> | |
6194 | ||
6195 | * dispnew.c (update_window): Check that updated row is visible. | |
6196 | ||
6197 | * xterm.c (x_draw_row_bitmaps): Check for invisible rows at | |
6198 | top of window differently. | |
6199 | ||
6200 | * xdisp.c (try_window_reusing_current_matrix): Don't do it | |
6201 | if region is showing. | |
6202 | ||
6203 | * dispnew.c (adjust_glyph_matrix): Check w->vscroll when | |
6204 | avoiding matrix reallocation. Set window_vscroll in matrix. | |
6205 | ||
6206 | * dispextern.h (struct glyph_matrix): Add member window_vscroll. | |
6207 | ||
26901792 DL |
6208 | * xdisp.c (debug_method_add): New. |
6209 | (debug_redisplay_method): Removed. | |
6210 | (try_window_reusing_current_matrix): Handle case where old | |
6211 | window start is the same as new window start. | |
6212 | ||
6213 | * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method' | |
6214 | an array instead of a pointer. | |
6215 | ||
26901792 DL |
6216 | * xfns.c (Fx_show_tip): Undo previous change. |
6217 | ||
6218 | * xterm.c (x_append_glyph): Clear glyph->u.val. | |
6219 | ||
6220 | * dispextern.h (struct glyph): Increase size of face_id bit-field | |
6221 | for CHAR_GLYPH to 12. | |
6222 | ||
6223 | 1999-06-29 Gerd Moellmann <gerd@gnu.org> | |
6224 | ||
6225 | * xfaces.c (x_charset_registry): Make it externally visible. | |
6226 | ||
6227 | 1999-06-28 Gerd Moellmann <gerd@gnu.org> | |
6228 | ||
6229 | * dispnew.c (update_window): Use mode_line_p flag of rows | |
6230 | instead of WINDOW_WANTS_MODELINE_P. | |
6231 | ||
6232 | * xterm.c (clear_mouse_face): Make externally visible. | |
6233 | ||
6234 | * xfns.c (Fx_show_tip): Clear mouse face before showing tip. | |
6235 | ||
6236 | * xterm.c (expose_line): Handle exposure of top-lines. | |
6237 | ||
6238 | * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight | |
6239 | if mouse_face_mouse_frame is null. | |
6240 | ||
6241 | * xdisp.c (redisplay_window): If window is echo_area_window, | |
6242 | and update_mode_line is set, update menubar and toolbar. | |
6243 | ||
6244 | * dispnew.c (space_glyph): Set its charpos to -1. | |
6245 | (update_frame_1): Ignore trailing padding spaces. | |
6246 | ||
6247 | * xdisp.c (next_element_from_c_string): Set position of padding | |
6248 | glyphs to -1. | |
6249 | ||
6250 | 1999-06-27 Gerd Moellmann <gerd@gnu.org> | |
6251 | ||
6252 | * xfns.c (x_laplace_read_row): Use XQueryColors instead of | |
6253 | XQueryColor. | |
6254 | ||
6255 | * xdisp.c (display_menu_bar): Remove unwarranted assertion. | |
6256 | (set_cursor_from_row): Skip over glyphs having a null object at | |
6257 | the start of rows. | |
6258 | (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation | |
6259 | glyphs. | |
6260 | (handle_invisible_prop): Compute next change only when needed. | |
6261 | (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode | |
6262 | line. | |
6263 | ||
6264 | 1999-06-26 Gerd Moellmann <gerd@gnu.org> | |
6265 | ||
6266 | * xrdb.c (x_load_resources): Don't set resource for double-click | |
6267 | time. | |
6268 | ||
6269 | * xdisp.c (try_window_id): Return quickly if all changes are | |
6270 | below the window's current matrix end. | |
6271 | ||
6272 | * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window | |
6273 | parameter. | |
6274 | ||
6275 | * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p | |
6276 | in desired not in current matrix. | |
6277 | (try_window_reusing_current_matrix): Rotate matrices starting | |
6278 | at start_vpos instead of 0. | |
6279 | ||
6280 | * xterm.c (expose_window): Use window_text_bottom_y. | |
6281 | (fast_find_position): Ditto. | |
6282 | ||
6283 | * xdisp.c (redisplay_window): Use window_text_bottom_y. | |
6284 | (try_window_reusing_current_matrix): Ditto. | |
6285 | (get_last_unchanged_at_beg_row): Ditto. | |
6286 | (init_iterator): Ditto. | |
6287 | ||
6288 | * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one | |
6289 | more row. | |
6290 | (check_matrix_invariants): Use window_text_bottom_y. | |
6291 | (update_window): Ditto. | |
6292 | (scrolling_window): Ditto. | |
6293 | ||
6294 | * xdisp.c (window_text_bottom_y): New. | |
6295 | ||
6296 | 1999-06-25 Gerd Moellmann <gerd@gnu.org> | |
6297 | ||
6298 | * xterm.c (XTread_socket): Set mouse_face_frame to zero after | |
6299 | clearing mouse face. | |
6300 | (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If | |
6301 | event.xcrossing.focus is not set, and focus is in the menu bar, | |
6302 | set focus frame as if event.xcrossing.focus were set. | |
6303 | ||
6304 | 1999-06-24 Gerd Moellmann <gerd@gnu.org> | |
6305 | ||
6306 | * keyboard.c (make_lispy_event): Handle mouse on top lines. | |
6307 | * keyboard.c (make_lispy_movement): Ditto. | |
6308 | ||
6309 | * window.c (coordinates_in_window): Return 4 if on top line. | |
6310 | (Fcoordinates_in_window_p): Return `top-line' if on top line. | |
6311 | ||
6312 | * xdisp.c (window_box_height): Subtract top line height. | |
6313 | (window_box): Add top line height to top y position if top line | |
6314 | exists. | |
6315 | (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to | |
6316 | the top line row of the window. Set initial y-position to | |
6317 | window's top line height plus delta. | |
6318 | (start_display): Choose start glyph row depending on whether | |
6319 | window has a top line. | |
6320 | (try_scrolling): Take top line height into account for aggressive | |
6321 | scrolling. | |
6322 | (compute_window_start_on_continuation_line): Take top line into | |
6323 | account. | |
6324 | (redisplay_window): Ditto. If top line height has changed, | |
6325 | trigger a new redisplay. | |
6326 | (try_window_reusing_current_matrix): Take top line into account. | |
6327 | (find_last_row_displaying_text): Ditto. | |
6328 | (get_last_unchanged_at_beg_row): DItto. | |
6329 | (try_window_id): Ditto. | |
6330 | (compute_line_metrics): Ditto. | |
6331 | ||
6332 | * dispnew.c (shift_glyph_matrix): Compute visible row height | |
6333 | taking top line of window into account. | |
6334 | (update_window): Update top line. If scrolling_window detects | |
6335 | that all rows are equal, only set cursor. | |
6336 | (update_window_line): Call after_update_window_line_hook if | |
6337 | mode_line_p flag of rows has changed. | |
6338 | (scrolling_window): Add parameter top_line_p. Return -1 if | |
6339 | all rows are equal. | |
6340 | (mode_line_string): Add parameter mode_line_p. Handle strings | |
6341 | in top lines. | |
6342 | ||
6343 | * dispextern.h (MATRIX_TOP_LINE_ROW): New. | |
6344 | (MATRIX_FIRST_TEXT_ROW): New. | |
6345 | (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height. | |
6346 | (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New. | |
6347 | (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New. | |
6348 | (MATRIX_TOP_LINE_HEIGHT): New. | |
6349 | (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height. | |
6350 | (CURRENT_TOP_LINE_HEIGHT): New. | |
6351 | (DESIRED_TOP_LINE_HEIGHT): New. | |
6352 | (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New. | |
6353 | (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces | |
6354 | WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT. | |
6355 | (WINDOW_DISPLAY_TEXT_HEIGHT): New. | |
6356 | ||
6357 | * xterm.c (x_after_update_window_line): Don't draw bitmaps for top | |
6358 | lines. | |
6359 | (x_draw_row_bitmaps): Take top line into account when clearing | |
6360 | bitmap area. | |
6361 | (x_estimate_mode_line_height): Replacement for | |
6362 | x_frame_mode_line_height. | |
6363 | (x_get_glyph_string_clip_rect): Take top line into account. | |
6364 | (x_clear_end_of_line): Ditto. | |
6365 | (note_mode_line_highlight): Add parameter mode_line_p. Handle | |
6366 | top lines. | |
6367 | (note_mouse_highlight): Call note_mode_line_highlight for top lines. | |
6368 | (x_erase_phys_cursor): Take top line into account. | |
6369 | ||
6370 | * xdisp.c (window_box_height): Subtract top line height if | |
6371 | window wants a top line. | |
6372 | (display_mode_lines): New. | |
6373 | (redisplay_window): Call it. | |
6374 | (display_mode_line): Add parameters face_id and format. | |
6375 | ||
6376 | * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New. | |
6377 | (MATRIX_TOP_LINE_HEIGHT): New. | |
6378 | ||
6379 | * xterm.c (x_frame_mode_line_height): Add parameter face_id. | |
6380 | ||
6381 | * term.c (estimate_mode_line_height): Renamed from | |
6382 | frame_mode_line_height. Add parameter face_id. | |
6383 | (estimate_mode_line_height_hook): Renamed from | |
6384 | frame_mode_line_height_hook. | |
6385 | (produce_special_glyphs_hook): Removed. | |
6386 | (produce_glyphs_hook): Removed. | |
6387 | ||
6388 | 1999-06-23 Gerd Moellmann <gerd@gnu.org> | |
6389 | ||
6390 | * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New. | |
6391 | (struct glyph_row): Add mode_line_p. | |
6392 | ||
6393 | * xfaces.c (realize_basic_faces): Realize face `top-line'. | |
6394 | (Qtop_line): New. | |
6395 | (syms_of_xfaces): Initialize Qtop_line. | |
6396 | ||
6397 | * dispextern.h (TOP_LINE_FACE_ID): New. | |
6398 | ||
6399 | * buffer.c (init_buffer_once): Set default for | |
6400 | top_line_format to nil. | |
6401 | (init_buffer_once): Init top_line_format. | |
6402 | (default-top-line-format): New. | |
6403 | (top-line-format): New buffer-local variable. | |
6404 | ||
6405 | * buffer.h: Add top_line_format. | |
6406 | ||
6407 | * xdisp.c (overlay_arrow_changed_p): Removed because not used. | |
6408 | ||
6409 | 1999-06-17 Dave Love <fx@gnu.org> | |
6410 | ||
6411 | * xfns.c: Move the PNG section before the JPEG one to avoid | |
6412 | problems surrounding setjmp.h/png.h on GNU/Linux. | |
6413 | ||
6414 | 1999-06-17 Gerd Moellmann <gerd@gnu.org> | |
6415 | ||
6416 | * xfns.c (x_kill_gs_process): Don't free colors. | |
6417 | ||
6418 | 1999-06-17 Dave Love <fx@gnu.org> | |
6419 | ||
6420 | * s/gnu-linux.h: Zap spurious ~. | |
6421 | ||
6422 | 1999-06-16 Gerd Moellmann <gerd@gnu.org> | |
6423 | ||
6424 | * xfns.c (gif_load): Improve multi-image support. | |
6425 | ||
6426 | 1999-06-15 Gerd Moellmann <gerd@gnu.org> | |
6427 | ||
6428 | * xfns.c (gif_load): Support multi-image files. | |
6429 | ||
6430 | * Makefile.in (LIBGIF): Use libungif. | |
6431 | ||
6432 | * configure.in (HAVE_GIF): Use libungif instead of libgif | |
6433 | because the former doesn't contain patented compression code. | |
6434 | ||
6435 | * xdisp.c (compute_window_start_on_continuation_line): Don't | |
6436 | do it if line start is too far away from window start. | |
6437 | ||
6438 | 1999-06-14 Gerd Moellmann <gerd@gnu.org> | |
6439 | ||
6440 | * buffer.c (init_buffer_once): Set buffer_local_flags for | |
6441 | scroll_*_aggressively. | |
6442 | (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively. | |
6443 | (init_buffer_once): Set defaults for these variables. | |
6444 | (syms_of_buffer): Add default-scroll-*-aggressively. | |
6445 | ||
6446 | * buffer.h (scroll_up_aggressively): New. | |
6447 | (scroll_down_aggressively): New. | |
6448 | ||
6449 | * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with | |
6450 | a static PNG library. | |
6451 | ||
6452 | * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib | |
6453 | in case it's a static library. | |
6454 | ||
6455 | * Makefile.in (ctagsfiles): Split so that files starting | |
6456 | with an `x' are found before files starting with `w32'. | |
6457 | (ctagsfiles1): New. | |
6458 | (ctagsfiles2): New. | |
6459 | (TAGS): Use ctagsfiles[12] instead of ctagsfiles. | |
6460 | ||
6461 | * xdisp.c (compute_window_start_on_continuation_line): New. | |
6462 | (redisplay_window): Use it. | |
6463 | (INFINITY): New. | |
6464 | (reseat_to_string): Use it. | |
6465 | (hscroll_window_tree): Ditto. | |
6466 | (compute_window_start_on_continuation_line): Ditto. | |
6467 | (redisplay_window): Don't force display with a new window start. | |
6468 | ||
6469 | 1999-06-06 Gerd Moellmann <gerd@gnu.org> | |
6470 | ||
6471 | * xfns.c (x_report_frame_params): Don't report `outer-window-id' | |
6472 | if widget not present. | |
6473 | ||
6474 | * xdisp.c (prepare_menu_bars): Ignore tooltip frame. | |
6475 | ||
6476 | 1999-06-04 Gerd Moellmann <gerd@gnu.org> | |
6477 | ||
6478 | * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return | |
6479 | value of realize_basic_faces. | |
6480 | (load_face_font_or_fontset): Store full font name in face. | |
6481 | (realize_default_face): Use full font name. | |
6482 | ||
26901792 DL |
6483 | * xterm.c (x_produce_glyphs): Set member char_to_display. |
6484 | (x_append_glyph): Store char_to_display in glyphs. | |
6485 | ||
6486 | * dispextern.h (struct it): Add char_to_display. | |
6487 | ||
6488 | * xfns.c (x_set_font): Don't call face-set-after-frame-default | |
6489 | if faces haven't been initialized. | |
6490 | (Fx_create_frame): Call face-set-after-frame-default after | |
6491 | faces have been initialized, and widget has been created. | |
6492 | ||
6493 | * puresize.h (BASE_PURESIZE): Increased. | |
6494 | ||
6495 | 1999-06-01 Gerd Moellmann <gerd@gnu.org> | |
6496 | ||
6497 | * xfaces.c (set_lface_from_font_name): Add parameter force_p. | |
6498 | (Finternal_set_lisp_face_attribute): If frame is t when | |
6499 | :font attribute is set, use the selected frame. | |
6500 | (clear_face_cache): Add parameter clear_fonts_p. | |
6501 | (Fclear_face_cache): Add optional parameter thorougly. | |
6502 | ||
6503 | * xfaces.c (face_numeric_value): Return -1 if symbol is not | |
6504 | in table. | |
6505 | (Fclear_face_cache): New. | |
6506 | (choose_face_fontset_font): If fontset doesn't contain font | |
6507 | pattern for the given charset, use CHARSET_ASCII. | |
6508 | (Finternal_set_lisp_face_attribute): Fix handling of nil | |
6509 | stipple attribute. | |
6510 | (Finternal_set_lisp_face_attribute): Fix handling of changing | |
6511 | font-related face attributes of the default face. | |
6512 | (set_lface_from_font_name): Set only attributes that aren't | |
6513 | specified. | |
6514 | ||
6515 | 1999-05-31 Gerd Moellmann <gerd@gnu.org> | |
6516 | ||
6517 | * xfaces.c (SCALABLE_FONTS): Define this to enable scalable | |
6518 | font support. | |
6519 | (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New. | |
6520 | (x_face_list_fonts): Add parameter scalable_fonts_p. Handle | |
6521 | scalable fonts depending on the setting of SCALABLE_FONTS. | |
6522 | (first_font_matching): List more than one font to find the | |
6523 | first non-scalable matching font. | |
6524 | (sorted_font_list): Let x_face_list_fonts return scalable fonts | |
6525 | depending on SCALABLE_FONTS. | |
6526 | (better_font_p): New parameter compare_pt_p. If zero, don't | |
6527 | compare point sizes of fonts. | |
6528 | (exact_face_match_p) [SCALABLE_FONTS]: New. | |
6529 | (build_scalable_font_name) [SCALABLE_FONTS]: New. | |
6530 | (may_use_scalable_font_p) [SCALABLE_FONTS]: New. | |
6531 | (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts. | |
6532 | (syms_of_xfaces): Add scalable-fonts-allowed. | |
6533 | ||
6534 | 1999-05-26 Gerd Moellmann <gerd@gnu.org> | |
6535 | ||
6536 | * xfns.c (png_load): Let PNG lib handle gamma. Construct | |
6537 | mask only if image contains simple transparency information. | |
6538 | Otherwise, combine image with frame background color. | |
6539 | ||
6540 | * configure.in (--with-png, HAVE_PNG): New. | |
6541 | ||
6542 | * config.in (HAVE_PNG): New. | |
6543 | ||
6544 | * Makefile.in: Add PNG library. | |
6545 | ||
6546 | * xfns.c: Add PNG support. | |
6547 | ||
6548 | 1999-05-25 Gerd Moellmann <gerd@gnu.org> | |
6549 | ||
6550 | * xdisp.c (init_xdisp): Initialize echo_area_message and | |
6551 | previous_echo_area_message to nil. | |
6552 | ||
6553 | * keyboard.c (read_char): Rename local variable echo_area_message | |
6554 | because it shadows the global one. | |
6555 | ||
6556 | 1999-05-05 Gerd Moellmann <gerd@gnu.org> | |
6557 | ||
6558 | * xterm.c (note_mode_line_highlight): Restructured. | |
6559 | ||
6560 | * window.c (coordinates_in_window): Handle windows that don't have | |
6561 | a mode line because their buffer's mode-line-format is nil. | |
6562 | Recognize the mode line under x positions that correspond to | |
6563 | flags areas and left scroll bar. | |
6564 | ||
6565 | 1999-05-02 Dave Love <fx@gnu.org> | |
6566 | ||
6567 | * xterm.c (note_mouse_highlight): Separate help-echo processing | |
6568 | from check on mouse-face so that it works generally. | |
6569 | ||
6570 | 1999-04-21 Gerd Moellmann <gerd@gnu.org> | |
6571 | ||
6572 | * sound.c (Fplay_sound): Run hook play-sound-hook. | |
6573 | (Qplay_sound_hook): New. | |
6574 | ||
6575 | 1999-04-20 Gerd Moellmann <gerd@gnu.org> | |
6576 | ||
6577 | * xdisp.c (update_echo_area): Handle echo_area_message. | |
6578 | ||
6579 | 1999-04-19 Gerd Moellmann <gerd@gnu.org> | |
6580 | ||
6581 | * editfns.c (Fmessage): Use message3. | |
6582 | ||
6583 | * print.c (printchar): Set echo_area_message to nil. | |
6584 | (strout): Ditto. | |
6585 | ||
6586 | * minibuf.c (read_minibuf): Reset echo message strings to nil. | |
6587 | (Fminibuffer_completion_help): Ditto. | |
6588 | ||
6589 | * keyboard.c (cmd_error_internal): Set echo_areA_message. | |
6590 | (command_loop_1): Test echo_areA_message. | |
6591 | (read_char): Ditto. | |
6592 | (record_menu_key): Set echo_area_message to nil. | |
6593 | (Fexecute_extended_command): Test echo_area_message. | |
6594 | (Fexecute_extended_command): Handle echo_area_message. | |
6595 | ||
6596 | * fileio.c (Fdo_auto_save): Handle the case that echo_area_message | |
6597 | is set. | |
6598 | ||
6599 | * editfns.c (Fcurrent_message): If echo_area_message is set, | |
6600 | return a substring of that string. | |
6601 | ||
6602 | * dispnew.c (direct_output_for_insert): Test echo_area_message | |
6603 | in addition to echo_area_glyphs. | |
6604 | (set_window_cursor_after_update): Ditto. | |
6605 | (update_frame_1): Ditto. | |
6606 | ||
6607 | * alloc.c (Fgarbage_collect): Use message3_nolog to display | |
6608 | old Lisp message string. | |
6609 | ||
6610 | * xdisp.c (echo_area_message): New. | |
6611 | (previous_echo_area_message): New. | |
6612 | (syms_of_xdisp): Initialize and staticpro new variables. | |
6613 | (echo_area_display): Display echo_area_message if set. | |
6614 | (message2_nolog): Set echo_area_message and | |
6615 | previous_echo_area_message. | |
6616 | (echo_area_display): Set previous_echo_area_message. | |
6617 | (redisplay_internal): Display echo area if echo_area_message | |
6618 | or previous_echo_area_message are set. | |
6619 | (redisplay_preserve_echo_area): Test/set echo_area_message and | |
6620 | previous_echo_area_message. | |
6621 | (redisplay_window): Test echo_area_message. | |
6622 | (message3_nolog): New. | |
6623 | (message3): New. | |
6624 | ||
6625 | * editfns.c (Fformat): Add text properties to the result string | |
6626 | from properties of the format string and properties of string | |
6627 | arguments. | |
6628 | ||
6629 | * textprop.c (text_property_list): New. | |
6630 | (add_text_properties_from_list): New. | |
6631 | (extend_property_ranges): New. | |
6632 | ||
6633 | 1999-03-29 Gerd Moellmann <gerd@gnu.org> | |
6634 | ||
6635 | * xfaces.c (Qraised, Qsunken, QCshadow): Removed. | |
6636 | (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New. | |
6637 | Use these symbols for the box face attribute instead of the | |
6638 | removed ones. | |
6639 | ||
6640 | 1999-03-12 Gerd Moellmann <gerd@gnu.org> | |
6641 | ||
6642 | * xfaces.c (realize_tty_face): Don't set alt_char_p of face. | |
6643 | Correct wrong test for slant. | |
6644 | ||
6645 | 1999-03-10 Gerd Moellmann <gerd@gnu.org> | |
6646 | ||
6647 | * xfaces.c: Use `unspecified' for unspecified face attributes, | |
6648 | use t and nil for on/off. | |
6649 | ||
6650 | 1999-03-06 Gerd Moellmann <gerd@gnu.org> | |
6651 | ||
6652 | * buffer.c (syms_of_buffer): Extend doc string of | |
6653 | mode-line-format. | |
6654 | ||
6655 | * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p. | |
6656 | (first_font_matching): New. | |
6657 | (set_lface_from_font_name): Use it if font name is a pattern. | |
6658 | (font_field_wildcard_p): Removed. | |
6659 | ||
6660 | * dispnew.c (shift_glyph_matrix): Add `window' parameter. | |
6661 | Recompute visible height of rows. | |
6662 | ||
6663 | * xterm.c (note_mouse_highlight): Reorder code for help-echo. | |
6664 | Don't accept non-strings for help-echo from overlays. | |
6665 | ||
6666 | 1999-03-04 Dave Love <fx@gnu.org> | |
6667 | ||
6668 | * xterm.c (note_mouse_highlight): Check overlays for help-text | |
6669 | property. | |
6670 | (XTread_socket): Fix compiler warning. | |
6671 | ||
6672 | 1999-03-05 Gerd Moellmann <gerd@gnu.org> | |
6673 | ||
6674 | * xterm.c (note_mouse_highlight): Don't restrict number of | |
6675 | overlay to 10. Call overlays_at so that it doesn't try to | |
6676 | extend the vector. | |
6677 | ||
6678 | * xdisp.c (compute_line_metrics): Compute glyph row's visible | |
6679 | height. | |
6680 | ||
6681 | * dispnew.c (row_equal_p): Compare visible row height, only. | |
6682 | (update_text_area): Draw whole line if visible heights of | |
6683 | rows differ. | |
6684 | (update_window_line): Call after_update_window_line_hook | |
6685 | if visible row height has changed. | |
6686 | ||
6687 | * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed. | |
6688 | (struct glyph_row): New member visible_height. | |
6689 | ||
6690 | * xfaces.c (font_field_wildcard_p): New. | |
6691 | (set_lface_from_font_name): Remove parameter force_p. Accept | |
6692 | font names containing wildcards. | |
6693 | ||
6694 | 1999-03-04 Gerd Moellmann <gerd@gnu.org> | |
6695 | ||
6696 | * xterm.c (x_after_update_window_line): Clear internal border | |
6697 | when windows_or_buffers_changed. | |
6698 | ||
6699 | * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's | |
6700 | buffer has a nil mode_line_format. | |
6701 | ||
6702 | 1999-03-03 Gerd Moellmann <gerd@gnu.org> | |
6703 | ||
6704 | * xterm.c (x_setup_relief_colors): Use either background color | |
6705 | or specified color. | |
6706 | ||
6707 | * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p. | |
6708 | ||
6709 | * dispextern.h (struct face): Add use_box_color_for_shadows_p. | |
6710 | ||
6711 | * xterm.c (x_draw_box_rect): New. | |
6712 | (x_draw_glyph_string_box): Renamed from | |
6713 | x_draw_glyph_string_relief. Call x_draw_box_rect. | |
6714 | ||
6715 | * xfns.c (QCrelief): New. | |
6716 | (syms_of_xfns): Initialize it. | |
6717 | ||
6718 | * dispextern.h (struct glyph): Rename left_shadow_p to | |
6719 | left_box_line_p, right_shadow_p to right_box_line_p. | |
6720 | (MAX_RELIEF_THICKNESS): Removed. | |
6721 | (struct it): Rename members having `relief' in their names | |
6722 | to contain `box' instead. | |
6723 | ||
6724 | * xfaces.c (realize_x_face): Handle new box attribute values. | |
6725 | (QCrelief, Qbox): Removed. | |
6726 | (QCshadow, QCcolor, Qraised, Qsunken): New. | |
6727 | (syms_of_xfaces): Initialize new symbols. | |
6728 | ||
6729 | 1999-03-02 Gerd Moellmann <gerd@gnu.org> | |
6730 | ||
6731 | * dispextern.h (LFACE_RELIEF_INDEX): Removed. | |
6732 | ||
6733 | * xfaces.c (LFACE_RELIEF): Removed. | |
6734 | (merge_face_vector_with_property): Remove handling of `:relief'. | |
6735 | (Finternal_set_lisp_face_attribute): Ditto. | |
6736 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
6737 | (Finternal_get_lisp_face_attribute): Ditto. | |
6738 | (realize_default_face): Ditto. | |
6739 | (lface_hash): Don't compute hash from relief. | |
6740 | ||
6741 | * dispextern.h (struct face): Replace member `relief' by | |
6742 | `box_line_width'. Add member `box'. | |
6743 | (face_box_type): New. | |
6744 | ||
6745 | * xterm.c (x_produce_glyphs): If face has overline, add overline | |
6746 | thickness + 1 to ascent. | |
6747 | ||
6748 | 1999-03-01 Gerd Moellmann <gerd@gnu.org> | |
6749 | ||
6750 | * xterm.c (x_draw_glyph_string): Draw underline, overline, | |
6751 | strike-through, and boxes. | |
6752 | (x_draw_glyph_string_underline): Removed. | |
6753 | ||
6754 | * xfaces.c (QCoverline, QCstrike_through, QCbox): New. | |
6755 | (Qoverline, Qstrike_through, Qbox): New. | |
6756 | (syms_of_xfaces): Define these symbols. | |
6757 | (check_lface_attrs): Add checks for overline, strike-through, | |
6758 | and box. | |
6759 | (Finternal_set_lisp_face_attribute): Set new attributes. | |
6760 | (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New. | |
6761 | (load_color): Handle new attributes. | |
6762 | (realize_x_face): Ditto. | |
6763 | (merge_face_vector_with_property): Ditto. | |
6764 | (free_face_colors): Ditto. | |
6765 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
6766 | (Finternal_get_lisp_face_attribute): Ditto. | |
6767 | (Finternal_lisp_face_attribute_values): Ditto. | |
6768 | ||
6769 | * dispextern.h (lface_attribute_index): Add enumerators for | |
6770 | overstrike, strike-through, and box. | |
6771 | (struct face): Add members for overline, strike-through, and | |
6772 | box. | |
6773 | ||
6774 | 1999-02-17 Dave Love <fx@gnu.org> | |
6775 | ||
6776 | * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h | |
6777 | s/template.h (NARROWPROTO): Define on the basis of relevant X cf | |
6778 | files. | |
6779 | ||
6780 | 1999-02-16 Gerd Moellmann <gerd@gnu.org> | |
6781 | ||
6782 | * keyboard.c (toolbar_items): Call access_keymap with third | |
6783 | parameter 1, so that we don't get inherited toolbar item | |
6784 | definitions. | |
6785 | ||
6786 | * xdisp.c (redisplay_internal): In optimization 1, don't decrement | |
6787 | the window end vpos when in empty first line of window. | |
6788 | ||
6789 | 1999-02-15 Gerd Moellmann <gerd@gnu.org> | |
6790 | ||
6791 | * xfaces.c (set_font_frame_param): New. | |
6792 | (Finternal_set_lisp_face_attribute): Call it. | |
6793 | ||
6794 | Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
6795 | ||
6796 | * xfaces.c (Finternal_set_lisp_face_attribute_from_resource): | |
6797 | Accept specifications of color for underline. | |
6798 | ||
6799 | 1999-02-13 Gerd Moellmann <gerd@gnu.org> | |
6800 | ||
6801 | * xfaces.c (Finternal_set_lisp_face_attribute): If parameter | |
6802 | `frame' is t, operate on face defaults for new frames. If it | |
6803 | is nil, operate on the selected frame. | |
6804 | ||
6805 | 1999-02-12 Gerd Moellmann <gerd@gnu.org> | |
6806 | ||
6807 | * dispnew.c (check_matrix_invariants): Put it in #if 0. | |
6808 | (update_window): Put the call to check_matrix_invariants in #if 0. | |
6809 | ||
6810 | Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
6811 | ||
6812 | * dispextern.h: Remove all else block of UNDERLINE_COLOR. | |
6813 | Remove definition of UNDERLINE_COLOR. | |
6814 | ||
6815 | Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
6816 | ||
6817 | * xfaces.c (free_face_colors): Free the color for underline. | |
6818 | ||
6819 | * xterm.c (x_draw_glyph_string_underline): Set the color for underline | |
6820 | to the GC. | |
6821 | ||
6822 | Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
6823 | ||
6824 | * dispextern.h (UNDERLINE_COLOR): Defined. | |
6825 | (struct face): Added two new members. | |
6826 | underline_color, underline_defaulted_p. | |
6827 | ||
6828 | * xfaces.c (merge_face_vector_with_property): | |
6829 | (check_lface_attrs): Accept the string value for underline. | |
6830 | (Finternal_set_lisp_face_attribute): Likewise. | |
6831 | ||
6832 | * xfaces.c (load_color): Change the last argument type to enum | |
6833 | lface_attribute_index from int. And addec code for underling coloring. | |
6834 | (load_face_colors): Pass LFACE_*_INDEX to load_color. | |
6835 | ||
6836 | 1999-02-12 Gerd Moellmann <gerd@gnu.org> | |
6837 | ||
6838 | * xfns.c (Fx_image_header): Removed. | |
6839 | ||
6840 | 1999-02-07 Gerd Moellmann <gerd@gnu.org> | |
6841 | ||
6842 | * xterm.c: Don't include <bitmaps/gray>. | |
6843 | (x_term_init): Use gray_bitmap_width and gray_bitmap_height. | |
6844 | ||
6845 | * xfns.c (Fx_image_header): Add missing `\n\'. | |
6846 | (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New. | |
6847 | ||
6848 | 1999-02-01 Gerd Moellmann <gerd@gnu.org> | |
6849 | ||
6850 | * xterm.c (x_scroll_bar_create): Set background pixel from | |
6851 | specified scroll bar color. | |
6852 | (x_scroll_bar_set_handle): Use scroll bar foreground color. | |
6853 | ||
6854 | * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars. | |
6855 | (x_set_scroll_bar_background): Ditto. | |
6856 | ||
6857 | * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors. | |
6858 | ||
6859 | * xfns.c (x_default_scroll_bar_color_parameter): New. | |
6860 | (Fx_create_frame): Call it. | |
6861 | ||
6862 | 1999-01-31 Gerd Moellmann <gerd@gnu.org> | |
6863 | ||
6864 | * xfns.c (Fx_create_frame): Initialize scroll bar pixel color | |
6865 | values in x_output structure. | |
6866 | (Qscroll_bar_foreground, Qscroll_bar_background): New. | |
6867 | (syms_of_xfns): Initialize these symbols. | |
6868 | ||
6869 | * xterm.h (struct x_output): Add scroll bar pixel colors. | |
6870 | ||
6871 | * xfns.c (x_frame_parms): Add entries for scroll bar colors. | |
6872 | (x_set_scroll_bar_foreground): New. | |
6873 | (x_set_scroll_bar_background): New. | |
6874 | ||
26901792 DL |
6875 | 1999-01-12 Gerd Moellmann <gerd@gnu.org> |
6876 | ||
6877 | * xdisp.c (handle_single_display_prop): New. | |
6878 | (handle_display_prop): Call it. | |
6879 | (handle_raise_prop): Removed. | |
6880 | (handle_height_prop): Removed. | |
6881 | (handle_space_width_prop): Removed. | |
6882 | (handle_face_prop): Remove handling of raised text. | |
6883 | (handle_display_prop): Do it here. | |
6884 | ||
6885 | * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX. | |
6886 | (RAISE_PROP_IDX): Removed. | |
6887 | (HEIGHT_PROP_IDX): Removed. | |
6888 | (SPACE_WIDTH_PROP_IDX): Removed. | |
6889 | ||
6890 | * xdisp.c (Qdisplay): Replaces Qglyph. | |
6891 | (handle_display_prop): Formerly handle_glyph_prop. | |
6892 | ||
6893 | 1999-01-11 Gerd Moellmann <gerd@gnu.org> | |
6894 | ||
6895 | * xdisp.c (reseat_to_string): Set position in display vector to -1. | |
6896 | (handle_stop): Set position in display vector to -1. Don't | |
6897 | check overlay strings when set up to deliver characters from a | |
6898 | display vector. | |
6899 | (set_iterator_to_next): At the end of a run of characters from a | |
6900 | display vector, check whether the display vector display replaces | |
6901 | the display of a character. | |
6902 | ||
6903 | 1999-01-05 Gerd Moellmann <gerd@gnu.org> | |
6904 | ||
6905 | * xfaces.c (init_frame_faces): Don't realize faces if frame's | |
6906 | X window hasn't been created yet. | |
6907 | ||
6908 | 1998-12-06 Gerd Moellmann <gerd@gnu.org> | |
6909 | ||
6910 | * sound.c: New. | |
6911 | ||
6912 | 1998-12-04 Gerd Moellmann <gerd@gnu.org> | |
6913 | ||
6914 | * config.in (HAVE_SOUND): New. | |
6915 | ||
6916 | * emacs.c (main): Call syms_of_sound and init_sound. | |
6917 | ||
6918 | * Makefile.in (obj): Add sound.o. | |
6919 | ||
6920 | * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h. | |
6921 | ||
6922 | * config.in (HAVE_MACHINE_SOUNDCARD_H): New. | |
6923 | (HAVE_SYS_SOUNDCARD_H): New. | |
6924 | ||
6925 | 1998-12-03 Gerd Moellmann <gerd@gnu.org> | |
6926 | ||
6927 | * buffer.h (struct buffer): indicate_empty_lines renamed from | |
6928 | indicate_zv_lines. | |
6929 | ||
6930 | * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines. | |
6931 | (default-indicate-zv-lines): Likewise. | |
6932 | ||
6933 | * dispextern.h (struct glyph_row): Rename indicate_zv_line_p | |
6934 | to indicate_empty_line_p. | |
6935 | ||
6936 | * xdisp.c (reseat_at_next_visible_line_start): Reset method | |
6937 | to next_element_from_buffer. | |
6938 | ||
6939 | * frame.c (make_frame): Set n_current_toolbar_items to 0. | |
6940 | ||
6941 | * xdisp.c (handle_face_prop): Allow symbols of the form `N+' | |
6942 | and `N-'. | |
6943 | ||
6944 | * xfns.c (xbm_scan): New. | |
6945 | (xbm_read_hexint): Removed. | |
6946 | (xbm_read_bitmap_file_data): Use xbm_scan. | |
6947 | ||
6948 | * fileio.c (Finsert_file_contents): Prevent redisplay optimizations. | |
6949 | ||
6950 | 1998-12-02 Gerd Moellmann <gerd@gnu.org> | |
6951 | ||
6952 | * xfns.c (xbm_read_hexint): New. | |
6953 | (xbm_read_bitmap_file_data): New. | |
6954 | (xbm_load_image_from_file): Call xbm_read_bitmap_file_data | |
6955 | instead of XReadBitmapFileData. | |
6956 | ||
6957 | * xdisp.c (handle_raise_prop): Compute voffset from current font. | |
6958 | ||
6959 | * xfaces.c (face_with_height): New. | |
6960 | ||
6961 | * xdisp.c (eval_handler): Renamed from eval_mode_handler. | |
6962 | (eval_form): Renamed from eval_mode_element. | |
6963 | (handle_face_prop): Use it. | |
6964 | (Qheight): Replaces Qsmaller. | |
6965 | (handle_height_prop): Replaces handle_smaller_prop. | |
6966 | (handle_face_prop): If iterator's font_height is not an | |
6967 | integer, evaluate it to get the font height to use. | |
6968 | ||
6969 | * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX. | |
6970 | (struct it): Use `font_height' instead of `smaller'. | |
6971 | ||
6972 | 1998-12-01 Gerd Moellmann <gerd@gnu.org> | |
6973 | ||
6974 | * xdisp.c (reseat_1): New. | |
6975 | (reseat): Call it. | |
6976 | (move_it_vertically_backward): Ditto. | |
6977 | (redisplay_window): Don't abort when cursor not found in recenter. | |
6978 | ||
6979 | 1998-11-30 Gerd Moellmann <gerd@gnu.org> | |
6980 | ||
6981 | * xdisp.c (reseat_at_next_visible_line_start): When not | |
6982 | currently delivering display elements from the current buffer, | |
6983 | restore buffer position first. | |
6984 | (init_from_display_pos): Don't set IT's position from the | |
6985 | position passed to this function. | |
6986 | ||
6987 | 1998-11-28 Gerd Moellmann <gerd@gnu.org> | |
6988 | ||
6989 | * config.in (PROTO): Removed. | |
6990 | ||
6991 | * xterm.h: Change PROTO to P_. | |
6992 | ||
6993 | 1998-11-26 Gerd Moellmann <gerd@gnu.org> | |
6994 | ||
6995 | * xterm.c (take_vertical_position_into_account): New. | |
6996 | (x_produce_image_glyph): Call it. | |
6997 | (x_produce_stretch_glyph): Ditto. | |
6998 | (x_produce_glyphs): Ditto. | |
6999 | (x_fill_glyph_string): Adjust base line for glyph's voffset. | |
7000 | (x_fill_composite_glyph_string): Ditto. | |
7001 | (x_fill_image_glyph_string): Ditto. | |
7002 | (x_fill_stretch_glyph_string): Ditto. | |
7003 | ||
7004 | * xdisp.c (display_line): Always compute row height from | |
7005 | max_ascent and max_descent. | |
7006 | ||
7007 | * dispextern.h (struct glyph): Add voffset. | |
7008 | (struct it): Replace height by descent, max_height by max_descent. | |
7009 | ||
7010 | * xterm.c (x_append_glyph): Set voffset | |
7011 | (x_append_stretch_glyph): Ditto. | |
7012 | (x_produce_image_glyph): Ditto. | |
7013 | (x_produce_glyphs): Take voffset into account. | |
7014 | (x_produce_image_glyph): Ditto. | |
7015 | (x_produce_stretch_glyph): Ditto. | |
7016 | ||
7017 | * dispextern.h (struct it): Add voffset. | |
7018 | * xdisp.c (push_it): Save voffset. | |
7019 | (pop_it): Restore it. | |
7020 | ||
7021 | * xdisp.c (it_props): Add entry for `raise'. | |
7022 | (handle_raise_prop): New. | |
7023 | ||
7024 | * dispextern.h (RAISE_PROP_IDX): New. | |
7025 | ||
7026 | * xdisp.c (Qraise): New. | |
7027 | (syms_of_xdisp): Define Qraised. | |
7028 | ||
7029 | * xterm.c (x_scroll_bar_move): Clear to the left and right | |
7030 | of toolkit scroll bars differently. | |
7031 | (x_scroll_bar_move): Removed. | |
7032 | (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here. | |
7033 | ||
7034 | * dispextern.h: Make it compilable --with-x=no. | |
7035 | * alloc.c: Ditto. | |
7036 | * emacs.c: Ditto. | |
7037 | * dispnew.c: Ditto. | |
7038 | * keyboard.c: Ditto. | |
7039 | * term.c: Ditto. | |
7040 | * xdisp.c: Ditto. | |
7041 | * xfaces.c: Ditto. | |
7042 | * xfns.c: Ditto. | |
7043 | * xmenu.c: Ditto. | |
7044 | ||
7045 | 1998-11-25 Gerd Moellmann <gerd@gnu.org> | |
7046 | ||
7047 | * xterm.c (XTread_socket): Cancel help-echo when leaving frame. | |
7048 | ||
7049 | 1998-11-24 Gerd Moellmann <gerd@gnu.org> | |
7050 | ||
7051 | * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging, | |
7052 | update slider size, only. | |
7053 | (xm_scroll_callback): Set dragging member of the scroll bar. | |
7054 | (xt_action_hook): Reset last_scroll_bar_part. | |
7055 | (XTredeem_scroll_bar): Reset bar->dragging to nil. | |
7056 | ||
26901792 DL |
7057 | * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor |
7058 | window on newly created frames that don't have one. | |
7059 | ||
7060 | 1998-11-23 Gerd Moellmann <gerd@gnu.org> | |
7061 | ||
7062 | * xdisp.c (restore_overlay_strings): Removed. | |
7063 | (restore_dpvec): Removed. | |
7064 | (init_from_display_pos): Inline both functions above. | |
7065 | ||
7066 | * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New. | |
7067 | (parse_image_spec): Handle it. | |
7068 | (xbm_format): Use it. | |
7069 | (xpm_format): Ditto. | |
7070 | (pbm_format): Ditto. | |
7071 | (jpeg_format): Ditto. | |
7072 | (tiff_format): Ditto. | |
7073 | (gif_format): Ditto. | |
7074 | (gs_format): Ditto. | |
7075 | ||
7076 | * xdisp.c (set_window_cursor): Removed. | |
7077 | (redisplay_internal): Case cursor motion in cursor line of | |
7078 | selected window; use set_cursor_from_row. | |
7079 | ||
7080 | 1998-11-22 Gerd Moellmann <gerd@gnu.org> | |
7081 | ||
7082 | * widget.c (EmacsFrameSetCharSize): Take widget's border width | |
7083 | into account. | |
7084 | ||
7085 | 1998-11-21 Gerd Moellmann <gerd@gnu.org> | |
7086 | ||
7087 | * xterm.c (expose_frame): Redraw menu bar window. | |
7088 | ||
7089 | * xdisp.c (display_menu_bar): Record hpos instead of x-position | |
7090 | in menu item. | |
7091 | ||
7092 | * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead | |
7093 | of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'. | |
7094 | ||
7095 | * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS | |
7096 | to determine vertical_scroll_bar_extra. | |
7097 | (EmacsFrameSetCharSize): Ditto. | |
7098 | * xfns.c (x_figure_window_size): Ditto. | |
7099 | ||
7100 | * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face. | |
7101 | (x_draw_bitmap): Ditto. | |
7102 | ||
7103 | * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID. | |
7104 | * xfaces.c (realize_basic_faces): Realize it. | |
7105 | ||
7106 | 1998-11-20 Gerd Moellmann <gerd@gnu.org> | |
7107 | ||
7108 | * xmenu.c (xmenu_show): Add workaround for remaining button grab | |
7109 | under LessTif Use the widget of the frame as parent for the | |
7110 | menu, again. | |
7111 | ||
7112 | 1998-11-19 Gerd Moellmann <gerd@gnu.org> | |
7113 | ||
7114 | * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify. | |
7115 | When EnterNotify, don't generate a mouse movement event if | |
7116 | notification is from a busy-cursor child window. | |
7117 | ||
7118 | * xterm.h (struct x_output): Add busy_window, remove cursor. | |
7119 | ||
7120 | * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor. | |
7121 | Use a transparent window to display the busy-cursor. | |
7122 | (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor. | |
7123 | ||
7124 | 1998-11-17 Gerd Moellmann <gerd@gnu.org> | |
7125 | ||
7126 | * xdisp.c (check_window_end): New, for debugging. | |
7127 | (CHECK_WINDOW_END): New. | |
7128 | (try_window_id): Use it. | |
7129 | ||
7130 | * xterm.c (process_expose_from_menu): Return int. | |
7131 | ||
7132 | * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording | |
7133 | TOOLBAR_EVENT events in last_nonmenu_event. | |
7134 | ||
7135 | 1998-11-16 Gerd Moellmann <gerd@gnu.org> | |
7136 | ||
7137 | * xdisp.c (redisplay_window): If windows_or_buffers_changed, | |
7138 | window end isn't reliable, so set window_end_valid to nil. | |
7139 | (redisplay_internal): If overlay arrow has changed, set | |
7140 | windows_or_buffers_changed to redisplay thoroughly. | |
7141 | ||
7142 | * dispnew.c (adjust_glyph_matrix): Invalidate window end, if | |
7143 | necessary. | |
7144 | ||
7145 | * xfns.c (file_dialog_cb): New. | |
7146 | (Fx_file_dialog): New. | |
7147 | * fileio.c (Fread_file_name): Call it. | |
7148 | ||
7149 | * xrdb.c (x_load_resources): Add default resoures for file | |
7150 | selection dialog. | |
7151 | ||
7152 | 1998-11-14 Gerd Moellmann <gerd@gnu.org> | |
7153 | ||
7154 | * xterm.c (note_mouse_highlight): Don't highlight when popup | |
7155 | is active. | |
7156 | ||
26901792 DL |
7157 | * keyboard.c (timer_check): Inhibit busy cursor around calls to |
7158 | timer-event-handler. This busy cursor tends to be anoying if | |
7159 | fontifying stealthily. | |
7160 | ||
7161 | * dispnew.c (direct_output_for_insert): Give up if current row | |
7162 | contains trailing whitespace. | |
7163 | ||
7164 | 1998-11-13 Gerd Moellmann <gerd@gnu.org> | |
7165 | ||
7166 | * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX. | |
7167 | ||
7168 | * xdisp.c (handle_fontified_prop): New. | |
7169 | (Vfontification_functions): New. | |
7170 | (Qfontification_functions): New. | |
7171 | (it_props): Add handle_fontified_prop. | |
7172 | ||
7173 | 1998-11-12 Gerd Moellmann <gerd@gnu.org> | |
7174 | ||
7175 | * xmenu.c (xmenu_show): Use the frame's edit_widget as parent. | |
7176 | Otherwise, under LessTif, after the popup has gone, all button | |
7177 | press events come in for the frame's widget, and release events | |
7178 | come in for the edit_widget. | |
7179 | * xterm.c (XTread_socket): Remove workaround for that problem. | |
7180 | (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif | |
7181 | XmScrollBarSetValues. | |
7182 | (SET_SAVED_MENU_EVENT): Give it statement form. | |
7183 | ||
26901792 DL |
7184 | * xfaces.c (display_message): If waiting_for_input, don't display |
7185 | the message. | |
7186 | ||
7187 | * window.c (scroll_command): If not acting on current_buffer, | |
7188 | make redisplay consider all windows. | |
7189 | ||
7190 | * xfns.c (Fx_hide_tip): Return t if tooltip was open. | |
7191 | ||
7192 | * xdisp.c (handle_glyph_prop): Set it->object for images to | |
7193 | the object having the glyph property. | |
7194 | ||
7195 | * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely | |
7196 | invisible. | |
7197 | ||
7198 | 1998-11-11 Gerd Moellmann <gerd@gnu.org> | |
7199 | ||
7200 | * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c | |
7201 | (x_term_init): Create the gray pixmap. | |
7202 | (x_setup_relief_color): Use it. | |
7203 | (x_get_glyph_string_clip_rect): Draw a toolbar window over the | |
7204 | internal border at the top of a frame. | |
7205 | (x_init_glyph_string): Likewise. | |
7206 | (x_draw_glyph_string_relief): Correct right x by 1 pixel for | |
7207 | full-width lines. | |
7208 | (XTflash): Don't flash the toolbar window. | |
7209 | ||
7210 | * xterm.c (XTread_socket): Workaround for LessTif popup menus | |
7211 | in case of ButtonPress events. | |
7212 | ||
7213 | 1998-11-10 Gerd Moellmann <gerd@gnu.org> | |
7214 | ||
7215 | * xrdb.c (x_load_resources): Add grey background colors as | |
7216 | defaults for menus, scroll bars, and dialogs. | |
7217 | ||
7218 | * insdel.c (prepare_to_modify_buffer): Move setting | |
7219 | windows_or_buffers_changed from modify_region here. | |
7220 | ||
7221 | * xfns.c (Fx_show_tip): Inhibit redisplay. | |
7222 | (Fx_hide_tip): Ditto. | |
7223 | (Fx_image_header): New. | |
7224 | ||
7225 | 1998-11-09 Gerd Moellmann <gerd@gnu.org> | |
7226 | ||
7227 | * dispnew.c (clear_window_matrices): Set window_end_valid to nil | |
7228 | when clearing current window matrices. | |
7229 | ||
7230 | 1998-11-08 Gerd Moellmann <gerd@gnu.org> | |
7231 | ||
7232 | * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer | |
7233 | position from a string position. Use the right end position | |
7234 | if the property spans a whole overlay string. | |
7235 | ||
7236 | 1998-11-07 Gerd Moellmann <gerd@gnu.org> | |
7237 | ||
7238 | * xmenu.c (menubar_selection_callback): Remove workaround for | |
7239 | Lesstif not calling XmNpopdownCallback because it doesn't | |
7240 | handle the case where users don't select any menu item. | |
7241 | ||
26901792 DL |
7242 | * insdel.c (modify_region): Set windows_or_buffers_changed. |
7243 | ||
7244 | * buffer.c (set_buffer_internal): Don't set | |
7245 | windows_or_buffers_changed. | |
7246 | ||
26901792 DL |
7247 | * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT. |
7248 | ||
26901792 DL |
7249 | * xmenu.c (menubar_selection_callback): Add workaround for |
7250 | Lesstif not calling XmNpopdownCallback. | |
7251 | ||
7252 | * xdisp.c (eval_mode_element): New. | |
7253 | (eval_mode_handler): New. | |
7254 | (display_mode_element): Use eval_mode_element. | |
7255 | ||
7256 | * xdisp.c (display_mode_element): Allow `(:eval FORM)'. | |
7257 | Remove code looking at text props of default value. | |
7258 | ||
7259 | * xmenu.c (HAVE_BOXES): Define if using Lucid menus. | |
7260 | ||
26901792 DL |
7261 | 1998-11-06 Gerd Moellmann <gerd@gnu.org> |
7262 | ||
7263 | * xmenu.c (single_submenu): Set button_type of menu to | |
7264 | BUTTON_TYPE_NONE. | |
7265 | (single_submenu): Likewise for panes and menu items. | |
7266 | (set_frame_menubar): Set button_type of menu bar to none. | |
7267 | (xmenu_show): Likewise. | |
7268 | (single_submenu): Set widget values selected slot. | |
7269 | (xmenu_show): Likewise. | |
7270 | ||
26901792 DL |
7271 | * xmenu.c (push_menu_item): Add parameters `type' and |
7272 | `selected'. Store it in menu_items. | |
7273 | (MENU_ITEMS_ITEM_TYPE): New. | |
7274 | (MENU_ITEMS_ITEM_SELECTED): New. | |
7275 | (MENU_ITEMS_ITEM_LENGTH): Increase by two. | |
7276 | ||
7277 | * xfns.c (clear_image_cache): Get the current time, before | |
7278 | doing anything. | |
7279 | (cache_image): Set prev pointer of next image. | |
7280 | (clear_image_cache): Clear current matrices if any image was | |
7281 | freed. | |
7282 | ||
7283 | * xterm.c (XTread_socket): Set inhibit_busy_cursor. | |
7284 | ||
7285 | * xfns.c (x_set_cursor): New. | |
7286 | (Fx_display_busy_cursor): New. | |
7287 | (Fx_undisplay_busy_cursor): New. | |
7288 | ||
7289 | * xterm.h (struct x_output): Add busy_cursor. | |
7290 | ||
7291 | * xfns.c (Vx_busy_pointer_shape): New. | |
7292 | (x_set_mouse_color): Create busy cursor. | |
7293 | ||
7294 | * process.c (wait_reading_process_input): Show and hide busy | |
7295 | cursor. | |
7296 | ||
7297 | * keyboard.c (command_loop_1): Display busy cursor. | |
7298 | ||
7299 | * eval.c (Fsignal): Hide busy cursor. | |
7300 | ||
7301 | * buffer.c (set_buffer_internal): Don't set | |
7302 | windows_or_buffers_changed. | |
7303 | ||
7304 | * xterm.c (redo_mouse_highlight): New. | |
7305 | ||
7306 | 1998-11-04 Gerd Moellmann <gerd@gnu.org> | |
7307 | ||
26901792 DL |
7308 | * xfns.c (x_create_x_image_and_pixmap): Add depth parameter. |
7309 | (x_build_heuritic_mask): New. | |
7310 | (lookup_image): Call it. | |
7311 | ||
7312 | * xterm.c (note_toolbar_highlight): Always set up help_echo. | |
7313 | (previous_help_echo): New. | |
7314 | (XTread_socket): Generate help event with nil message when | |
7315 | leaving a region with help-echo. | |
7316 | (note_mouse_highlight): Handle `help-echo' over text. | |
7317 | (XTread_socket): Dispatch VisibilityNotify, CirculateNotify, | |
7318 | CirculateRequest. | |
7319 | (clear_mouse_face): Don't clear if tooltip is shown. | |
7320 | (XTread_socket): Redo mouse-highlight after tooltip is gone. | |
7321 | Avoid SET_FRAME_GARBAGED when tooltip is mapped. | |
7322 | ||
7323 | * keyboard.c (Vshow_help_function): New. | |
7324 | (read_char): Use it. | |
7325 | ||
7326 | 1998-11-03 Gerd Moellmann <gerd@gnu.org> | |
7327 | ||
7328 | * xfns.c (x_create_tip_frame): New. | |
7329 | (Fx_show_tip): New. | |
7330 | (Fx_hide_tip): New. | |
7331 | ||
7332 | * xterm.c (x_destroy_window): Handle case that we don't have | |
7333 | a widget. | |
7334 | ||
7335 | * dispextern.h (struct glyph_row): Rename no_marginal_areas_p | |
7336 | to full_width_p. Add internal_border_p. | |
7337 | ||
7338 | 1998-11-02 Gerd Moellmann <gerd@gnu.org> | |
7339 | ||
7340 | * xterm.c (note_mode_line_highlight): Check the charpos of | |
7341 | the glyph under the mouse pointer before accessing text | |
7342 | properties at that position. | |
7343 | ||
7344 | 1998-11-01 Gerd Moellmann <gerd@gnu.org> | |
7345 | ||
7346 | * xterm.c (x_draw_image_relief): Handle toolbar_button_relief. | |
7347 | ||
7348 | * xdisp.c (auto-raise-toolbar-buttons): New. | |
7349 | (build_desired_toolbar_string): Handle the flag. | |
7350 | (toolbar-button-margin): New. | |
7351 | (toolbar-button-relief): New. | |
7352 | (build_desired_toolbar_string): Use margin and relief. | |
7353 | ||
7354 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround | |
7355 | for FreeBSD. | |
7356 | (note_mode_line_highlight): New. | |
7357 | (note_mouse_highlight): Call it. | |
7358 | ||
7359 | 1998-10-31 Gerd Moellmann <gerd@gnu.org> | |
7360 | ||
7361 | * s/freebsd.h (NARROWPROTO): New. | |
7362 | ||
7363 | * xdisp.c (display_string): New parameter face_string. | |
7364 | (display_mode_element): When displaying a symbol with a string | |
7365 | value, use text properties from the symbol's default value, maybe. | |
7366 | ||
7367 | * xrdb.c (x_load_resources): Add font defaults for menus and | |
7368 | dialogs. | |
7369 | ||
7370 | 1998-10-30 Gerd Moellmann <gerd@gnu.org> | |
7371 | ||
7372 | * xfns.c (Fx_create_frame): Try 12pt Courier font first. | |
7373 | ||
7374 | 1998-10-29 Gerd Moellmann <gerd@gnu.org> | |
7375 | ||
7376 | * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be | |
7377 | produced for characters with codes < 32 under certain | |
7378 | circumstances. | |
7379 | ||
7380 | * xdisp.c (redisplay_window): Handle values of PT in front | |
7381 | of invisible, intangible text. | |
7382 | (try_window_id): Set overlay_arrow_seen to zero before | |
7383 | displaying lines. | |
7384 | (display_mode_element): Assign to glyphs written for a mode | |
7385 | line spec `%x' as object the Lisp format string, as position | |
7386 | the position of the `%' in that string. | |
7387 | (display_string): If displaying a C string, optionally get | |
7388 | the face to use from a Lisp string. | |
7389 | ||
7390 | * xterm.c (expose_window_tree): Include mode line height. | |
7391 | ||
7392 | * xfns.c (Fx_create_frame): Add toolbar height to frame height. | |
7393 | ||
7394 | 1998-10-27 Gerd Moellmann <gerd@gnu.org> | |
7395 | ||
7396 | * xterm.c (note_mouse_highlight): Change mouse pointer shape | |
7397 | over mode line. | |
7398 | ||
7399 | 1998-10-26 Gerd Moellmann <gerd@gnu.org> | |
7400 | ||
7401 | * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT. | |
7402 | ||
7403 | * xdisp.c (redisplay_window): If mode line height has changed, | |
7404 | arrange for a thorough immediate redisplay using the correct mode | |
7405 | line height. | |
7406 | (window_box_height): Use CURRENT_MODE_LINE_HEIGHT. | |
7407 | ||
7408 | * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New. | |
7409 | (CURRENT_MODE_LINE_HEIGHT): New. | |
7410 | (DESIRED_MODE_LINE_HEIGHT): New. | |
7411 | ||
7412 | * keyboard.c (make_lispy_event): Add string and string position | |
7413 | info to mouse-click events. | |
7414 | (read_key_sequence): Handle `local-map' property of mode line | |
7415 | strings. | |
7416 | ||
7417 | * keyboard.h (POSN_STRING): New. | |
7418 | ||
7419 | 1998-10-25 Gerd Moellmann <gerd@gnu.org> | |
7420 | ||
7421 | * dispnew.c (mode_line_string): Mew. | |
7422 | ||
7423 | * xterm.c (xt_action_hook): New. | |
7424 | (x_create_toolkit_scroll_bar): Add action hook. | |
7425 | (xm_scroll_callback): Implement dragging. | |
7426 | ||
7427 | * keyboard.c (Qend_scroll): New. | |
7428 | (scroll_bar_parts): Add it. | |
7429 | ||
7430 | * termhooks.h (scroll_bar_end_scroll): New. | |
7431 | ||
7432 | * xterm.c (XTread_socket): Bug fix. | |
7433 | ||
7434 | 1998-10-24 Gerd Moellmann <gerd@gnu.org> | |
7435 | ||
7436 | * xdisp.c (redisplay_window): Finish scroll bars after | |
7437 | redisplaying toolbar. | |
7438 | ||
7439 | * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom. | |
7440 | (syms_of_keyboard): Add Qbottom. | |
7441 | ||
7442 | * termhooks.h (scroll_bar_to_top): New. | |
7443 | (scroll_bar_to_bottom): New. | |
7444 | ||
7445 | * xdisp.c (redisplay_window): Always resize toolbar window if | |
7446 | auto_resize_toolbar_p is non-zero. | |
7447 | (auto_resize_toolbar_p): Renamed from auto_resize_toolbar. | |
7448 | (window_box): New. | |
7449 | (window_box_height): New. | |
7450 | (window_box_width): New. | |
7451 | (window_box_left): New. | |
7452 | (window_box_right): New. | |
7453 | (window_box_edges): New. | |
7454 | ||
7455 | 1998-10-23 Gerd Moellmann <gerd@gnu.org> | |
7456 | ||
7457 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to | |
7458 | XawScrollbarSetThumb in FreeBSD. | |
7459 | (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap" | |
7460 | to true. | |
7461 | ||
7462 | * window.c (get_phys_cursor_glyph): Return null if cursor vpos | |
7463 | is out of range. | |
7464 | ||
7465 | * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel. | |
7466 | (x_term_init): Initialize it. | |
7467 | ||
7468 | * xterm.h (struct x_display_info): Add scroll_bar_pixel. | |
7469 | ||
7470 | * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's | |
7471 | cursor. | |
7472 | ||
7473 | 1998-10-22 Gerd Moellmann <gerd@gnu.org> | |
7474 | ||
7475 | * keyboard.c (make_lispy_event): Handle scroll_bar_click | |
7476 | differently when using toolkit scroll bars. | |
7477 | ||
7478 | * xterm.c (x_send_scroll_bar_event): New. | |
7479 | (x_scroll_bar_to_input_event): New. | |
7480 | (xaw3d_scroll_callback): New. | |
7481 | (xaw3d_jump_callback): New. | |
7482 | (xm_scroll_callback): New. | |
7483 | (x_toolkit_scroll_p): New. | |
7484 | (XTread_socket): Handle scroll bar client message. | |
7485 | (x_term_init): Initialize Xatom_Scrollbar. | |
7486 | (x_scroll_bar_create): Set cursor. | |
7487 | (xm_scroll_callback): | |
7488 | (x_create_toolkit_scroll_bar): New. | |
7489 | (x_set_toolkit_scroll_bar_thumb): New. | |
7490 | (x_scroll_bar_create): Call x_create_toolkit_scroll_bar. | |
7491 | (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb. | |
7492 | ||
7493 | * xterm.h (struct x_display_info): Add Xatom_Scrollbar. | |
7494 | ||
7495 | 1998-10-21 Gerd Moellmann <gerd@gnu.org> | |
7496 | ||
7497 | * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars. | |
7498 | (XTread_socket): Don't handle mouse button events for scroll bars | |
7499 | if using toolkit scroll bars. | |
7500 | (XTset_vertical_scroll_bar): Set thumb size and position for | |
7501 | Athena scroll bar. | |
7502 | ||
7503 | * xterm.h (scroll_bar): Add x_widget_low and x_widget_high. | |
7504 | ||
7505 | * xterm.c (XTread_socket): Dispatch expose event to widget | |
7506 | if using toolkit scroll bars. | |
7507 | (x_scroll_bar_expose): Make no-op for toolkit scroll bars. | |
7508 | (x_scroll_bar_create): Create and show a scroll bar widget | |
7509 | if using toolkit scroll bars. | |
7510 | (x_scroll_bar_move): Handle tookit scroll bars. | |
7511 | ||
7512 | * Makefile.in (LIBW): Use Xaw3d if present. | |
7513 | ||
7514 | * configure.in (USE_TOOLKIT_SCROLL_BARS): New. | |
7515 | (HAVE_XAW3D): New. | |
7516 | ||
7517 | * config.in (USE_TOOLKIT_SCROLL_BARS): New. | |
7518 | (HAVE_XAW3D): New. | |
7519 | ||
7520 | * xterm.c (XTset_vertical_scroll_bar): Correct position of | |
7521 | right vertical scroll bar. | |
7522 | ||
7523 | 1998-10-20 Gerd Moellmann <gerd@gnu.org> | |
7524 | ||
7525 | * xfns.c (xpm_load): Support reading XPM images from string | |
7526 | buffers containing data in the same format as an XPM file. | |
7527 | Support `:color-symbols'. | |
7528 | (xpm_format): Add `:data'. | |
7529 | (xpm_keyword_index): Add XPM_DATA. | |
7530 | (syms_of_xfns): Add `:color-symbols'. | |
7531 | (xpm_keyword_index): Add XPM_COLOR_SYMBOLS. | |
7532 | (xpm_valid_color_symbols_p): New. | |
7533 | (xpm_image_p): Call it. | |
7534 | ||
7535 | * xdisp.c (build_desired_toolbar_string): Add `:algorithm' | |
7536 | attribute to the image if item is not enabled. | |
7537 | ||
7538 | * xfns.c (x_laplace): New. | |
7539 | (x_laplace_read_row): New. | |
7540 | (x_laplace_write_row): New. | |
7541 | (lookup_image): Handle common image attributes here. New | |
7542 | attribute `:algorithm'. | |
7543 | ||
7544 | * xfaces.c (clear_face_cache): Call clear_image_cache. | |
7545 | ||
7546 | * xterm.c (x_inverted_image_mask): Removed. | |
7547 | (x_draw_image_foreground_1): New. | |
7548 | (x_draw_image_glyph_string): Draw images with mask to a temporary | |
7549 | pixmap to reduce flickering. | |
7550 | ||
7551 | * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars. | |
7552 | (display_toolbar_line): Remove parameter `margin'. | |
7553 | ||
7554 | 1998-10-19 Gerd Moellmann <gerd@gnu.org> | |
7555 | ||
7556 | * xdisp.c (toolbar_lines_needed): New. | |
7557 | (auto-resize-toolbars): New. | |
7558 | ||
7559 | * xfns.c (cache_image): Correct call to xrealloc. | |
7560 | ||
7561 | * dispnew.c (Fset_toolbar_height): Removed. | |
7562 | ||
7563 | * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of | |
7564 | FRAME_MENU_BAR_LINES. | |
7565 | ||
7566 | * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN | |
7567 | instead of FRAME_MENU_BAR_LINES. | |
7568 | (check_frame_size): Ditto. | |
7569 | ||
7570 | * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN | |
7571 | instead of FRAME_MENU_BAR_LINES. | |
7572 | (adjust_frame_glyphs_for_frame_redisplay): Ditto. | |
7573 | (build_frame_matrix): Ditto. | |
7574 | (change_frame_size_1): Ditto. | |
7575 | ||
7576 | * frame.h (FRAME_TOOLBAR_LINES): New. | |
7577 | (FRAME_TOP_MARGIN): New. | |
7578 | ||
7579 | * window.c (struct save_window_data): Add frame_toolbar_lines. | |
7580 | (Fset_window_configuration): Handle toolbar lines. | |
7581 | (Fcurrent_window_configuration): Save toolbar lines. | |
7582 | ||
7583 | * frame.c (syms_of_frame_1): Add Qtoolbar_lines. | |
7584 | ||
7585 | * xfns.c (Fx_create_frame): Add default parameter for toolbar. | |
7586 | ||
7587 | * frame.h (struct frame): Rename top_margin to toolbar_lines. | |
7588 | ||
7589 | * xfns.c (x_frame_parms): Add `toolbar-lines'. | |
7590 | (x_set_toolbar_lines): New. | |
7591 | ||
7592 | * keyboard.c (cmd_error_internal): Bug fix. | |
7593 | ||
7594 | * xterm.c: Remove double include of syssignal.h. | |
7595 | ||
7596 | 1998-10-18 Gerd Moellmann <gerd@gnu.org> | |
7597 | ||
7598 | * xterm.c (x_toolbar_item): New. | |
7599 | (x_handle_toolbar_click): Use it. | |
7600 | (note_toolbar_highlight): Use it. | |
7601 | ||
7602 | * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties | |
7603 | and toolbar_items_vectors. | |
7604 | ||
7605 | * xterm.c (help_echo): New. | |
7606 | (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN. | |
7607 | (x_set_glyph_string_gc): Handle them. | |
7608 | (x_after_update_window_line): Don't do anything in pseudo-windows. | |
7609 | (x_produce_image_glyph): Take image margin and face relief into | |
7610 | account. | |
7611 | (x_get_glyph_string_clip_rect): Handle pseudo-windows. | |
7612 | (x_draw_glyph_string_background): Optimize case when face has | |
7613 | relief. | |
7614 | (x_setup_relief_color): Take frame instead of glyph string | |
7615 | parameter. | |
7616 | (x_draw_relief_rect): New. | |
7617 | (x_draw_glyph_string_relief): Call it. | |
7618 | (x_draw_image_glyph_string_foreground): Handle margin and image | |
7619 | relief. | |
7620 | (x_draw_image_glyph_string_background): Ditto. | |
7621 | (expose_frame): Redraw toolbar window. | |
7622 | (expose_window): Don't draw cursor for pseudo-windows. | |
7623 | (x_y_to_hpos_vpos): Handle pseudo-windows. | |
7624 | (frame_to_window_pixel_xy): New. | |
7625 | (note_mouse_highlight): Call note_toolbar_highlight. | |
7626 | (x_handle_toolbar_click): New. | |
7627 | (note_toolbar_highlight): New. | |
7628 | (show_mouse_face): Change int parameter `hl' to parameter of | |
7629 | type enum draw_glyphs_face. Handle image highlighting. | |
7630 | (XTread_socket): Return a HELP_EVENT input event if help_echo is | |
7631 | non-nil. Use x_handle_toolbar_click. | |
7632 | ||
7633 | * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT. | |
7634 | ||
7635 | * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE, | |
7636 | IMAGE_BOOL_VALUE. | |
7637 | (parse_image_spec): Handle them. | |
7638 | (image_spec_value): Additional parameter found. | |
7639 | (free_image): Remove image from the vector `images' of the | |
7640 | image cache. | |
7641 | (clear_image_cache): Additional parameter force_p. | |
7642 | (Fclear_image_cache): New. | |
7643 | (x_find_image_file): New. | |
7644 | (xbm_load): Handle `:margin' and `:relief'. Use | |
7645 | x_find_image_file. | |
7646 | (xpm_load): Likewise. | |
7647 | (pbm_load): Likewise. | |
7648 | (jpeg_load): Likewise. | |
7649 | (tiff_load): Likewise. | |
7650 | (gif_load): Likewise. | |
7651 | ||
7652 | * keyboard.c (Qhelp_echo): New symbol. | |
7653 | (read_char): Handle `toolbar' and `help_echo' events. | |
7654 | (kbd_buffer_get_event): Handle HELP_ECHO input event. | |
7655 | (make_lispy_event): Handle TOOLBAR_EVENT. | |
7656 | (toolbar_items): New. | |
7657 | (process_toolbar_item): New. | |
7658 | (PROP): New. | |
7659 | (init_toolbar_items): New. | |
7660 | (append_toolbar_item): New. | |
7661 | (read_char_x_menu_prompt): Handle `toolbar' event. | |
7662 | (read_key_sequence): Ditto. | |
7663 | ||
7664 | * xfaces.c (Qtoolbar): New. | |
7665 | (realize_basic_faces): Realize `toolbar' face. | |
7666 | (face_at_string_position): Remove parameter modeline_p, add | |
7667 | base_face_id. | |
7668 | ||
7669 | * xfns.c (xbm_load_image_from_file): Don't use Xmu function | |
7670 | to read data. | |
7671 | ||
7672 | 1998-10-17 Gerd Moellmann <gerd@gnu.org> | |
7673 | ||
7674 | * xdisp.c (init_iterator): Replace parameter modeline_p with | |
7675 | base_face_id. | |
7676 | (next_element_from_string): Call get_next_display_element | |
7677 | recursively after handling text properties. | |
7678 | (prepare_menu_bars): Call update_toolbar. | |
7679 | (update_toolbar): New. | |
7680 | (build_desired_toolbar_string): New. | |
7681 | (display_toolbar_line): New. | |
7682 | (redisplay_toolbar): New. | |
7683 | (toolbar_item_info): New. | |
7684 | (redisplay_window): Call redisplay_toolbar. | |
7685 | (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG. | |
7686 | ||
7687 | * dispnew.c (clear_current_matrices): Clear matrices of toolbar | |
7688 | window. | |
7689 | (clear_desired_matrices): Ditto. | |
7690 | (adjust_frame_glyphs_for_window_redisplay): Make toolbar window. | |
7691 | (free_glyphs): Free matrices of toolbar window. | |
7692 | (update_frame): Update toolbar window. | |
7693 | (change_frame_size_1): Take toolbar into account. | |
7694 | (Fset_toolbar_height): New. | |
7695 | ||
7696 | * dispextern.h (struct it): Remove member modeline_p, add | |
7697 | base_face_id. | |
7698 | (struct image): Add members relief and margin. | |
7699 | (IMAGE_ASCENT): Include margin in height. | |
7700 | ||
7701 | 1998-10-14 Gerd Moellmann <gerd@gnu.org> | |
7702 | ||
7703 | * xfns.c (Fclear_image_cache): New. | |
7704 | ||
7705 | * xfaces.c (realize_basic_faces): Realize toolbar face. | |
7706 | (face_at_string_position): Remove parameter modeline_p, add | |
7707 | base_face_id. | |
7708 | ||
7709 | * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID. | |
7710 | ||
7711 | 1998-10-13 Gerd Moellmann <gerd@gnu.org> | |
7712 | ||
7713 | * keyboard.c (syms_of_keyboard): Intern `:help'. | |
7714 | ||
7715 | 1998-10-12 Gerd Moellmann <gerd@gnu.org> | |
7716 | ||
7717 | * xterm.c (note_toolbar_highlight): New. | |
7718 | (note_mouse_highlight): Call it. | |
7719 | ||
7720 | * window.c (window_from_coordinates): Additional parameter toolbar_p. | |
7721 | (coordinates_in_window): Handle toolbar window. | |
7722 | ||
7723 | * keyboard.c (toolbar_items): New. | |
7724 | (process_toolbar_item): New. | |
7725 | (parse_toolbar_item): New. | |
7726 | (init_toolbar_items): New. | |
7727 | (append_toolbar_item): New. | |
7728 | ||
7729 | * dispextern.h (enum toolbar_item_idx): New. | |
7730 | (enum toolbar_item_image): New. | |
7731 | ||
7732 | * frame.h (struct frame): Add toolbar-related members. | |
7733 | ||
7734 | * xfaces.c (face_at_string_position): Remove assertion that | |
7735 | current_buffer == window's buffer. This is not the case when | |
7736 | called for the toolbar window. | |
7737 | ||
7738 | * frame.c (make_frame): Initialize toolbar members. | |
7739 | ||
7740 | * alloc.c (mark_object): Mark toolbar data of frames. | |
7741 | ||
7742 | * frame.h (struct frame): Add toolbar-related members | |
7743 | toolbar_window, desired_toolbar_items, current_toolbar_items, | |
7744 | desired_toolbar_string, current_toolbar_string, | |
7745 | n_desired_toolbar_items, n_current_toolbar_items. Add | |
7746 | window_height. | |
7747 | ||
7748 | * xterm.c (x_after_update_window_line): Don't draw bitmap | |
7749 | areas for pseudo-windows. | |
7750 | (expose_frame): Handle toolbar window. | |
7751 | (expose_window): Don't do cursor stuff for pseudo-windows. | |
7752 | ||
7753 | * xdisp.c (display_menu_bar): Correct calls to init_iterator. | |
7754 | ||
7755 | 1998-10-11 Gerd Moellmann <gerd@gnu.org> | |
7756 | ||
7757 | * frame.c (make_frame): Initialize toolbar_window. | |
7758 | ||
7759 | * alloc.c (mark_object): Make the toolbar window. | |
7760 | ||
7761 | * dispnew.c (update_frame): Update frame's toolbar_window. | |
7762 | (clear_current_matrices): Likewise. | |
7763 | (clear_desired_matrices): Likewise. | |
7764 | (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window. | |
7765 | (free_glyphs): Free the toolbar window and its matrices. | |
7766 | ||
7767 | * frame.h (struct frame): Add toolbar_window. | |
7768 | ||
7769 | * xterm.c (x_draw_glyph_string_relief): Handle mouse-face | |
7770 | with relief. | |
7771 | ||
7772 | 1998-10-10 Gerd Moellmann <gerd@gnu.org> | |
7773 | ||
7774 | * dispnew.c (buffer_posn_from_coords): Don't screw up if | |
7775 | window start is not in the range BEGV..ZV. | |
7776 | ||
7777 | 1998-10-09 Gerd Moellmann <gerd@gnu.org> | |
7778 | ||
7779 | * xdisp.c (try_scrolling): Experimentally handle the case | |
7780 | that scroll-preserve-screen-position is set to `always'. | |
7781 | ||
7782 | * window.c (Vscroll_preserve_screen_position): Replacement for | |
7783 | scroll_preserve_screen_position. | |
7784 | ||
7785 | 1998-10-08 Gerd Moellmann <gerd@gnu.org> | |
7786 | ||
7787 | * dispnew.c: Don't initialize auto structs; the HP/UX compiler | |
7788 | doesn't like it. | |
7789 | * xdisp.c: Ditto. | |
7790 | ||
7791 | * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y. | |
7792 | ||
7793 | 1998-10-06 Gerd Moellmann <gerd@gnu.org> | |
7794 | ||
7795 | * minibuf.c (Fminibuffer_complete_word): Fix computation of | |
7796 | i_byte when prompts are inserted into minibuffers. | |
7797 | ||
7798 | * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New. | |
7799 | (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it. | |
7800 | (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto. | |
7801 | ||
7802 | 1998-10-04 Gerd Moellmann <gerd@gnu.org> | |
7803 | ||
7804 | * xdisp.c (make_cursor_line_fully_visible): New. | |
7805 | (try_scrolling): New. | |
7806 | (redisplay_window): Move scrolling code to try_scrolling. | |
7807 | (make_cursor_line_fully_visible): Handle case of window too small | |
7808 | to show a single line. | |
7809 | (redisplay_window): Case forced window start---use | |
7810 | make_cursor_line_fully_visible. | |
7811 | (redisplay_window): Case cursor movement via current matrix. | |
7812 | If ending up on a partially visible line, make it fully visible | |
7813 | instead of recentering. | |
7814 | (try_scrolling): Additional parameter scroll_smoothly. | |
7815 | ||
7816 | * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap. | |
7817 | ||
7818 | 1998-09-28 Gerd Moellmann <gerd@gnu.org> | |
7819 | ||
7820 | * window.c (window_scroll_pixel_based): Bug fix: vpos used | |
7821 | instead of y-position for scroll-preserved-screen-position. | |
7822 | ||
7823 | 1998-09-07 Gerd Moellmann <gerd@gnu.org> | |
7824 | ||
7825 | * dispnew.c (update_frame_line): If current row is not enabled, | |
7826 | write the whole line. | |
7827 | ||
7828 | 1998-09-06 Gerd Moellmann <gerd@gnu.org> | |
7829 | ||
7830 | * lisp.h (HAVE_FACES): Removed. | |
7831 | ||
7832 | * dispextern.h (HAVE_FACES): Removed. | |
7833 | ||
7834 | * config.in (HAVE_FACES): Removed. | |
7835 | ||
7836 | * dispnew.c (HAVE_FACES): Removed. | |
7837 | ||
7838 | * xdisp.c (HAVE_FACES): Removed. | |
7839 | ||
7840 | * xfaces.c (HAVE_FACES): Removed. | |
7841 | ||
7842 | 1998-09-05 Gerd Moellmann <gerd@gnu.org> | |
7843 | ||
7844 | * xdisp.c (init_iterator): If face_change_count is non-zero, | |
7845 | free realized faces. | |
7846 | ||
7847 | * xfaces.c (free_all_realized_faces): Make it externally visible. | |
7848 | (Finternal_set_lisp_face_attribute): Increment | |
7849 | windows_or_buffers_changed. | |
7850 | ||
7851 | * dispnew.c (direct_output_for_insert): Give up if | |
7852 | face_change_count is non-zero. | |
7853 | (direct_output_forward_char): Ditto. | |
7854 | ||
7855 | * xfaces.c (face_change_count): New. | |
7856 | ||
7857 | 1998-09-04 Gerd Moellmann <gerd@gnu.org> | |
7858 | ||
7859 | * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out | |
7860 | of range. | |
7861 | ||
7862 | 1998-09-03 Gerd Moellmann <gerd@gnu.org> | |
7863 | ||
7864 | * term.c (Ftty_display_color_p): New. | |
7865 | ||
7866 | 1998-09-02 Gerd Moellmann <gerd@gnu.org> | |
7867 | ||
7868 | * xfaces.c (Ftty_defined_colors): New. | |
7869 | ||
7870 | * xterm.c (x_produce_glyphs): Fix computation of | |
7871 | contains_overlapping_glyphs_p for ASCII. | |
7872 | ||
7873 | * dispnew.c (Fshow_cursor): Don't change cursor state while | |
7874 | redisplaying. | |
7875 | (direct_output_for_insert): If a glyph with lbearing or rbearing | |
7876 | is among the new glyphs, set row flag contains_overlapping_glyph_p. | |
7877 | ||
7878 | 1998-09-01 Gerd Moellmann <gerd@gnu.org> | |
7879 | ||
7880 | * term.c (OUTPUT_IF): Make replacement text have statement form. | |
7881 | (OUTPUT1_IF): Ditto. | |
7882 | (TS_italic_mode, TS_end_italic_mode): Removed. | |
7883 | (TS_bold_mode): Removed. | |
7884 | (TS_underscore_mode, TS_end_underscore_mode): Removed. | |
7885 | (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New. | |
7886 | (TS_enter_reverse_mode): New. | |
7887 | (TS_enter_underline_mode, TS_exit_underline_mode): New. | |
7888 | (TN_magic_cookie_glitch_ul): New. | |
7889 | (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New. | |
7890 | (TS_exit_attribute_mode): New. | |
7891 | (TN_max_colors, TN_max_pairs, TS_orig_pairs): New. | |
7892 | (TS_set_foreground, TS_set_background): New. | |
7893 | (reset_terminal_modes): Switch colors back to default. | |
7894 | (write_glyphs): Turn face on before writing text, turn it off | |
7895 | afterwards. | |
7896 | (insert_glyphs): Ditto. | |
7897 | (term_init): Initialize new terminal capability variables. | |
7898 | (turn_on_face): Turn a face on. | |
7899 | (turn_off_face): Turn a face off. | |
7900 | ||
7901 | * lisp.h (MAKE_GLYPH): Remove test for frame type. | |
7902 | (GLYPH_CHAR): Ditto. | |
7903 | (GLYPH_FACE): Ditto. | |
7904 | ||
7905 | * xfaces.c (Vface_tty_color_alist): New. | |
7906 | (face-register-tty-color): New. | |
7907 | (face-clear-tty-colors): New. | |
7908 | ||
7909 | * dispextern.h (FACE_TTY_DEFAULT_COLOR): New. | |
7910 | (struct it): Remove member faces_p since we now always have faces. | |
7911 | ||
7912 | 1998-08-31 Gerd Moellmann <gerd@gnu.org> | |
7913 | ||
7914 | * dispextern.h (struct face): Add tty appearance flags. | |
7915 | ||
7916 | * xdisp.c (init_iterator): Always handle faces. | |
7917 | (extend_face_to_end_of_line): Handle tty frames. | |
7918 | ||
7919 | * dispnew.c (clear_glyph_matrix): Allow a null matrix to be | |
7920 | passed in. | |
7921 | ||
7922 | 1998-08-30 Gerd Moellmann <gerd@gnu.org> | |
7923 | ||
7924 | * xfaces.c (realize_default_face): Use empty strings to indicate | |
7925 | that the face should use the default foreground/background | |
7926 | color of the terminal. Fill font-related attributes with | |
7927 | appropriate values for tty frames. | |
7928 | ||
7929 | * emacs.c (main): Call syms_of_xfaces before init_window_once. | |
7930 | ||
7931 | * xfaces.c (realize_default_face): If face `default' is not | |
7932 | yet known, create it. | |
7933 | ||
7934 | * frame.c (make_terminal_frame): Call init_frame_faces | |
7935 | unconditionally. | |
7936 | ||
7937 | * xfaces.c (init_frame_faces): Make it work for tty frames. | |
7938 | (free_frame_faces): Ditto. | |
7939 | (clear_face_cache): Ditto. | |
7940 | (recompute_basic_faces): Ditto. | |
7941 | (Fframe_face_alist): Ditto. | |
7942 | (free_realized_face): Ditto. | |
7943 | (prepare_face_for_display): Ditto. | |
7944 | (clear_face_gcs): Ditto. | |
7945 | (lookup_face): Ditto. | |
7946 | (smaller_face): Ditto. | |
7947 | (realize_default_face): Ditto. | |
7948 | (realize_face): Ditto. | |
7949 | (realize_face): Dispatch to functions depending on the frame type. | |
7950 | (realize_x_face): X way of realizing faces. | |
7951 | (realize_tty_face): TTY way of realizing faces. | |
7952 | ||
7953 | 1998-08-29 Gerd Moellmann <gerd@gnu.org> | |
7954 | ||
7955 | * xfaces.c (realize_face): Remove parameter unibyte_registry, | |
7956 | compute it instead. | |
7957 | (lookup_face): Remove local variable unibyte_registry. | |
7958 | ||
7959 | 1998-08-22 Gerd Moellmann <gerd@gnu.org> | |
7960 | ||
7961 | * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines | |
7962 | 1 pixel longer. | |
7963 | ||
7964 | * xdisp.c (face_before_or_after_it_pos): Fix computation | |
7965 | of face in buffer. | |
7966 | ||
7967 | * editfns.c (make_buffer_string_both): If prompt in buffer, | |
7968 | prevent start > end. | |
7969 | ||
7970 | * indent.c (Fvertical_motion): Set current_buffer to window's | |
7971 | buffer if it isn't already. | |
7972 | ||
7973 | 1998-08-21 Gerd Moellmann <gerd@gnu.org> | |
7974 | ||
7975 | * dispextern.h (GLYPH_DEBUG): Use default 0. | |
7976 | ||
7977 | * xdisp.c (it_props): New member `smaller'. | |
7978 | (init_iterator): Initialize it. | |
7979 | (Qsmaller): New. | |
7980 | (push_it): Save value of `smaller' value on the stack. | |
7981 | (pop_it): Restore `smaller' from the stack. | |
7982 | (handle_smaller_prop): New. | |
7983 | (handle_face_prop): Use `smaller' text property to select a | |
7984 | suitable face. | |
7985 | ||
7986 | * dispextern.h (SMALLER_PROP_IDX): New. | |
7987 | (struct it): Add member `smaller'. | |
7988 | ||
7989 | * xfaces.c (smaller_face): New. | |
7990 | ||
7991 | * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths. | |
7992 | ||
7993 | * dispnew.c (allocate_matrices_for_window_redisplay): Compute | |
7994 | total pixel width of window differently. | |
7995 | ||
7996 | * xdisp.c (init_iterator): Compute width of mode line differently. | |
7997 | ||
7998 | * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width | |
7999 | of bitmap areas. | |
8000 | ||
8001 | * window.c (Fsplit_window): Include width of bitmap areas in | |
8002 | window width. | |
8003 | (window_internal_width): Subtract width of bitmap areas from | |
8004 | total width. | |
8005 | ||
8006 | 1998-08-18 Gerd Moellmann <gerd@gnu.org> | |
8007 | ||
8008 | * xdisp.c: Functions reordered for better readability. | |
8009 | ||
8010 | * dispnew.c (update_text_area): Handle glyphs with arbitrary | |
8011 | lbearing. | |
8012 | (update_window_tree): Parameter no_scrolling_p removed. | |
8013 | (update_single_window): Ditto. | |
8014 | ||
8015 | * xterm.c (x_get_char_font_and_encoding): Renamed to | |
8016 | x_get_char_face_and_encoding. | |
8017 | ||
8018 | * dispnew.c (update_text_area): Don't call get_glyph_overhangs | |
8019 | if end of current row reached. | |
8020 | ||
8021 | * xterm.c (x_get_glyph_face_and_encoding): New. | |
8022 | (x_get_glyph_overhangs): Call it. | |
8023 | ||
8024 | * xdisp.c (Qshow_trailing_whitespace): New. | |
8025 | (Qtrailing_whitespace): New. | |
8026 | (enum prop_handled): New. | |
8027 | (struct props, it_props): New. | |
8028 | (next_overlay_change): New. Works like Fnext_overlay_change | |
8029 | but doesn't use xmalloc. | |
8030 | (handle_stop): Restructured. | |
8031 | (face_before_or_after_it_pos): Case iteration over a string: fix | |
8032 | handling of face before current position. | |
8033 | ||
8034 | 1998-08-16 Gerd Moellmann <gerd@gnu.org> | |
8035 | ||
8036 | * dispnew.c (adjust_glyph_matrix): Don't optimize matrix | |
8037 | reallocation matrix if fonts_changed_p. | |
8038 | (update_text_area): Handle glyphs with lbearing. | |
8039 | ||
8040 | 1998-08-14 Gerd Moellmann <gerd@gnu.org> | |
8041 | ||
8042 | * xdisp.c (struct props): New. | |
8043 | (it_props): New. | |
8044 | (compute_prop_info): New. | |
8045 | (handle_stop): New. | |
8046 | ||
8047 | * textprop.c (validate_interval_range): Make it externally | |
8048 | visible. | |
8049 | ||
8050 | * dispnew.c (direct_output_for_insert): Remove calls | |
8051 | to compute_stop_pos. | |
8052 | ||
8053 | * dispextern.h (struct it): Remove check_charpos, | |
8054 | next_overlay_pos. Add what_changes. | |
8055 | ||
8056 | 1998-08-10 Gerd Moellmann <gerd@gnu.org> | |
8057 | ||
8058 | * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE. | |
8059 | ||
8060 | * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use | |
8061 | face_default_registry instead. | |
8062 | ||
8063 | * syntax.c (scan_sexps_forward): Set up syntax table before | |
8064 | jumping to initial state label. | |
8065 | ||
8066 | 1998-08-09 Gerd Moellmann <gerd@gnu.org> | |
8067 | ||
8068 | * dispnew.c (check_matrix_invariants): Handle case of row end pos | |
8069 | >= ZV specially. | |
8070 | ||
8071 | 1998-08-08 Gerd Moellmann <gerd@gnu.org> | |
8072 | ||
8073 | * xdisp.c (redisplay_window): Case cursor movement---if cursor | |
8074 | ends up in partially visible row, try to scroll. Case forced | |
8075 | window start---handle windows not tall enough to show a single | |
8076 | line. | |
8077 | ||
8078 | * window.h (struct window): Member dy renamed vscroll. | |
8079 | ||
8080 | * xterm.c (x_list_fonts): Re-activate suppression of scalable | |
8081 | fonts. | |
8082 | (x_draw_stretch_glyph_string): Set clipping if using GC that | |
8083 | hasn't set it yet. | |
8084 | ||
8085 | * xdisp.c (redisplay_window): Case forced window start - | |
8086 | don't let cursor end on partially visible row. Use desired | |
8087 | matrix to find a suitable PT if it doesn't appear. | |
8088 | (decode_mode_spec): Merged with 20.2.97. | |
8089 | (try_window_reusing_current_matrix): Give up if old or | |
8090 | new display is vscrolled. | |
8091 | (redisplay_window): Reset vscrolling if forced window start, | |
8092 | or if recentering. | |
8093 | ||
8094 | 1998-08-06 Gerd Moellmann <gerd@gnu.org> | |
8095 | ||
8096 | * xfaces.c (realize_default_face): Use the fontset name instead of | |
8097 | the alias for the family attribute of the default face because we | |
8098 | can't easily determine a good alias from fontset-alias-alist. | |
8099 | (face_fontset): Use Fquery_fontset to find the fontset. | |
8100 | (font_list): Additional pattern parameter. | |
8101 | (try_font_list): Ditto. | |
8102 | (set_lface_from_font_name): Set face family from font foundry | |
8103 | and family. | |
8104 | (font_list): If family contains a hyphen, build pattern differently. | |
8105 | ||
8106 | 1998-08-05 Gerd Moellmann <gerd@gnu.org> | |
8107 | ||
8108 | * xfaces.c (free_realized_faces): Increment windows_or_buffers_- | |
8109 | changed instead of setting the frame garbaged. | |
8110 | ||
8111 | * xfaces.c (lface_equal_p): Don't assume equal Lisp types for | |
8112 | all attribute values. This is wrong if values are unspecified, | |
8113 | i.e. nil. | |
8114 | ||
8115 | * xdisp.c (try_window_id): Give up if window start changed. | |
8116 | ||
8117 | * xfaces.c (make_realized_face): Store registry as Lisp object. | |
8118 | (load_face_font_or_fontset): Compute registry of a face | |
8119 | differently. Make it `eq' to Vx_unibyte_registry_and_encoding if | |
8120 | possible. | |
8121 | ||
8122 | * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries | |
8123 | differently. | |
8124 | ||
8125 | * alloc.c (mark_face_cache): Mark the registry member of faces. | |
8126 | ||
8127 | * dispextern.h (struct face): Make registry a Lisp string. | |
8128 | ||
8129 | 1998-08-04 Gerd Moellmann <gerd@gnu.org> | |
8130 | ||
8131 | * xterm.c (x_get_char_font_and_encoding): Additional parameter | |
8132 | multibyte_p. Handle unibyte text. | |
8133 | (x_append_glyph): Set the multibyte_p flag of glyphs. | |
8134 | (x_produce_image_glyph): Ditto. | |
8135 | (x_append_stretch_glyph): Ditto. | |
8136 | (x_produce_glyphs): Handle unibyte text like ASCII. | |
8137 | ||
8138 | * xdisp.c (push_it): Save the multibyte flag of an iterator on the | |
8139 | stack. | |
8140 | (pop_it): Restore it. | |
8141 | (face_before_or_after_it_pos): Handle the case that the string or | |
8142 | buffer is unibyte. | |
8143 | (get_overlay_strings): Set the multibyte flag of the iterator if | |
8144 | the new overlay string is multibyte. | |
8145 | (get_glyph_property): Likewise. | |
8146 | (get_next_display_element): Don't check for charset changes in | |
8147 | unibyte text. | |
8148 | (append_space): Compute face differently for unibyte text. | |
8149 | (extend_face_to_end_of_line): Don't return quickly if face has | |
8150 | stipple. | |
8151 | ||
8152 | * xfaces.c (load_face_font_or_fontset): Store registry and | |
8153 | encoding of the font in the registry member of the face. | |
8154 | (make_realized_face): Additional parameter `registry'. | |
8155 | (free_realized_face): Free the registry of a realized face. | |
8156 | (face_suitable_for_charset_p): Function form of the macro | |
8157 | with the same name in uppercase. | |
8158 | (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0. | |
8159 | (choose_face_font): New parameter unibyte_registry. | |
8160 | (choose_face_fontset_font): Ditto. | |
8161 | (realize_default_face): Remember the registry and encoding of | |
8162 | the specified frame font in Vx_unibyte_registry_and_encoding. | |
8163 | (face_at_buffer_position): Handle unibyte. | |
8164 | (face_at_string_position): Likewise. | |
8165 | (realize_face): New parameter unibyte_registry. | |
8166 | (compute_char_face): Handle the unibyte case. | |
8167 | ||
8168 | * dispextern.h (struct glyph): Add bit multibyte_p. | |
8169 | (struct face): New member registry holding the registry and | |
8170 | encoding of the X font of the face. | |
8171 | (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text. | |
8172 | (enum face_id): Add BASIC_FACE_ID_SENTINEL. | |
8173 | (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte | |
8174 | text. | |
8175 | (struct iterator_stack_entry): Add multibyte_p. | |
8176 | ||
8177 | * xdisp.c (string_pos): Use string_char_to_byte. | |
8178 | (char_charset): Removed. | |
8179 | ||
8180 | 1998-08-03 Gerd Moellmann <gerd@gnu.org> | |
8181 | ||
8182 | * xterm.c (x_draw_image_glyph_string_foreground): Draw a | |
8183 | rectangle for a block cursor over an image without a mask. | |
8184 | (x_stretch_block_cursor): Added. Non-zero means don't draw | |
8185 | a block cursor over a stretch as wide as that stretch. | |
8186 | (x_draw_stretch_glyph_string): Use it. | |
8187 | (x_draw_hollow_cursor): Ditto. | |
8188 | ||
8189 | * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt. | |
8190 | (read_minibuf): Add front-sticky text property for prompt. | |
8191 | ||
8192 | * xdisp.c (char_charset): Return charset of a character, | |
8193 | depending on whether or not multi-byte characters are enabled. | |
8194 | ||
8195 | * xfaces.c (Fset_face_charset_registry): Removed. | |
8196 | (x_charset_registry): Determine registry from charset plist. | |
8197 | ||
8198 | 1998-08-02 Gerd Moellmann <gerd@gnu.org> | |
8199 | ||
8200 | * xdisp.c (get_next_display_element): Don't check for charset | |
8201 | changes if multi-byte characters are not enabled. | |
8202 | ||
8203 | * xdisp.c (echo_area_display): Use the flush function from the | |
8204 | redisplay interface. | |
8205 | * keyboard.c (detect_input_pending_run_timers): Likewise. | |
8206 | ||
8207 | * dispextern.h (produce_*glyphs_hook): Removed. | |
8208 | * term.c (produce_*glyphs): Ditto. | |
8209 | (cursor_to): Remove pixel position parameters. | |
8210 | ||
8211 | * dispnew.c: Remove hooks for window-based redisplay, introduce | |
8212 | a redisplay interface structure. | |
8213 | ||
8214 | * xterm.c (x_per_char_metric): Return default char metrics if per | |
8215 | char metric exists but contains a zero width. Adobe Courier seems | |
8216 | to contain such characters. | |
8217 | ||
8218 | * xdisp.c (compute_line_metrics): Compute the width of rows | |
8219 | without stopping at glyphs with zero width. | |
8220 | ||
8221 | 1998-08-01 Gerd Moellmann <gerd@gnu.org> | |
8222 | ||
8223 | * xdisp.c (display_mode_line): If nothing was displayed at all, | |
8224 | display a space. | |
8225 | (hscroll_window_tree): Don't subtract 1 from target point if equal | |
8226 | to ZV and window is not the selected window. | |
8227 | ||
8228 | * dispnew.c (check_matrix_invariants): Remove check for window | |
8229 | start at BEGV or after newline. This happens in rare cases | |
8230 | intentionally. | |
8231 | ||
8232 | 1998-07-31 Gerd Moellmann <gerd@gnu.org> | |
8233 | ||
8234 | * xfaces.c (x_charset_registry): Use STRING_BYTES. | |
8235 | (syms_of_xfaces): Add Vface_default_registry. | |
8236 | (x_charset_registry): Use it. | |
8237 | ||
8238 | * xdisp.c (run_window_scroll_functions): Run window scroll functions. | |
8239 | (redisplay_window): Use it. | |
8240 | ||
8241 | * dispnew.c (update_text_area): Handle lbearing of deleted text | |
8242 | by backing up one character. | |
8243 | ||
8244 | 1998-07-30 Gerd Moellmann <gerd@gnu.org> | |
8245 | ||
8246 | * dispnew.c (adjust_glyph_matrix): Use a different check to | |
8247 | decide to do nothing. | |
8248 | ||
8249 | * xfaces.c (face_at_string_position): Additional parameter | |
8250 | mode_line_p. If non-zero, merge with the mode line face | |
8251 | instead of the default face. | |
8252 | * dispextern.h (struct it): Add mode_line_p. | |
8253 | * xdisp.c (init_iterator): Set it. | |
8254 | (compute_face_in_string): Use it. | |
8255 | (face_before_or_after_it_pos): Handle strings. | |
8256 | (get_next_display_element): Don't look for relief end in C strings. | |
8257 | (next_element_from_string): Deliver string position instead of | |
8258 | buffer position. | |
8259 | ||
8260 | * xterm.c (x_flush): Flush X output buffer. | |
8261 | (XTflash): Use it. | |
8262 | ||
8263 | * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol. | |
8264 | Allow strings as face names. | |
8265 | ||
8266 | * xfns.c (forall_images_in_image_cache): Check that frame is | |
8267 | alive. | |
8268 | ||
8269 | * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces; | |
8270 | it's also called from x_destroy_window. Since this function is | |
8271 | called from X, freeing stuff allocated with xmalloc is dangerous | |
8272 | here, anyway. | |
8273 | ||
8274 | * xfaces.c (free_realized_faces): Don't clear current matrices | |
8275 | of a frame being destroyed. | |
8276 | ||
8277 | * frame.c (make_frame): Call set_window_buffer instead of | |
8278 | Fset_window_buffer. | |
8279 | ||
8280 | * window.c (set_window_buffer): Extracted from Fset_window_buffer, | |
8281 | with an additional argument specifying whether or not hooks may | |
8282 | be called. | |
8283 | (Fset_window_buffer): Call it. | |
8284 | ||
8285 | * dispnew.c (clear_desired_matrices): Check that frame has | |
8286 | a valid root window before clearing matrices in the window tree. | |
8287 | (clear_current_matrices): Ditto. | |
8288 | (clear_window_matrices): If GLYPH_DEBUG, check that hchild and | |
8289 | vchild are valid windows if not nil. | |
8290 | ||
8291 | * xfaces.c (merge_face_vector_with_property): Allow :reverse-video | |
8292 | for :inverse-video. | |
8293 | (Finternal_set_lisp_face_attribute): Ditto. | |
8294 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
8295 | (Finternal_get_lisp_face_attribute): Ditto. | |
8296 | (Finternal_lisp_face_attribute_values): Ditto. | |
8297 | (syms_of_xfaces): Define the symbol `:reverse-video'. | |
8298 | ||
8299 | * xdisp.c (get_glyph_property): Renamed from | |
8300 | fill_iterator_from_glyph_property. | |
8301 | (next_element_from_buffer): Handle case that no `glyph' property | |
8302 | was found correctly. | |
8303 | (display_line): Extend face to end of line only if we have faces. | |
8304 | ||
8305 | 1998-07-29 Gerd Moellmann <gerd@gnu.org> | |
8306 | ||
8307 | * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take | |
8308 | additional window argument. | |
8309 | ||
8310 | * xdisp.c (reseat_at_previous_visible_line_start): Renamed from | |
8311 | set_iterator_to_previous_visible_line_start. | |
8312 | (reseat_at_next_visible_line_start): Likewise. | |
8313 | (compute_stop_pos): Renamed from set_iterator_stop_pos. | |
8314 | (face_before_or_after_it_pos): Renamed from get_face_at_it_pos. | |
8315 | (compute_face_in_buffer): Renamed from | |
8316 | compute_face_at_iterator_position. | |
8317 | (compute_face_in_string): Renamed from | |
8318 | compute_face_at_iterator_string_position. | |
8319 | (get_space_width): Renamed from get_iterator_space_width. | |
8320 | (next_overlay_string): Renamed from | |
8321 | set_iterator_to_next_overlay_string. | |
8322 | (get_overlay_strings): Renamed from | |
8323 | get_overlay_strings_at_iterator_position. | |
8324 | (restore_overlay_strings): Renamed from | |
8325 | setup_overlay_strings_from_glyph_pos. | |
8326 | (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos. | |
8327 | (init_from_display_pos): Renamed from init_iterator_from_glyph_pos. | |
8328 | (init_to_row_start): Renamed from init_iterator_to_row_start. | |
8329 | (init_to_row_end): Formerly init_iterator_to_next_row_start. | |
8330 | ||
8331 | * xterm.c: Merge with 20.2.97. | |
8332 | (x_produce_glyphs): Use x_append_stretch_glyph for tabs. | |
8333 | ||
8334 | * dispextern.h (struct glyph): Replace text_pos position with | |
8335 | simple charpos. | |
8336 | ||
8337 | * xdisp.c (this_line_start_pos): Use struct text_pos. | |
8338 | (this_line_end_pos): Renamed from .*endpos; use struct text_pos. | |
8339 | (enum move_it_result): Renamed from move_iterator_result. | |
8340 | (string_pos_nchars_ahead): Compute text_pos in a string from a | |
8341 | known text_pos plus a character delta. | |
8342 | (string_pos): Compute text_pos in string from charpos. | |
8343 | (c_string_pos): Likewise for a C string. | |
8344 | (number_of_chars): Return number of characters in a possibly | |
8345 | multi-byte C string. | |
8346 | (check_it): Renamed from check_iterator. Check that charpos and | |
8347 | bytepos are in sync. | |
8348 | (push_it): Renamed from save_iterator_settings. | |
8349 | (pop_it): Renamed from restore_iterator_settings. | |
8350 | (move_it_.*): Renamed from move_iterator_.*. | |
8351 | (charset_at_position): Take charpos/bytepos into account. | |
8352 | (back_to_previous_line_start): Set iterator to previous line start. | |
8353 | (forward_to_next_line_start): Set iterator to next line start. | |
8354 | (back_to_previous_visible_line_start): Renamed from | |
8355 | move_iterator_previous_visible_line_start. | |
8356 | (set_iterator_to_next_visible_line_start): Handle charpos/bytepos. | |
8357 | (get_face_at_it_pos): Renamed from get_face_from_cursor_pos. | |
8358 | Handle charpos/bytepos. | |
8359 | (compute_face_at_iterator_position): Handle charpos/bytepos. | |
8360 | (compute_face_at_iterator_string_position): Likewise. | |
8361 | (get_iterator_space_width): Likewise. | |
8362 | (load_overlay_strings): Likewise. | |
8363 | (get_overlay_strings_at_iterator_position): Likewise. | |
8364 | (reseat_iterator): Take a text_pos position argument. | |
8365 | (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/ | |
8366 | bytepos. | |
8367 | (init_iterator): Take additional bytepos parameter. | |
8368 | (reseat_iterator_to_string): Handle charpos/bytepos. | |
8369 | (start_display): Take a text_pos parameter. Handle charpos/bytepos. | |
8370 | (next_element_from_string): Handle charpos/bytepos. | |
8371 | (next_element_from_c_string): Likewise. | |
8372 | (fill_iterator_from_glyph_property): Likewise. | |
8373 | (next_element_from_buffer): Likewise. | |
8374 | (set_iterator_to_next): Increment charpos and bytepos of an iterator. | |
8375 | (move_iterator_in_display_line_to): Handle charpos/bytepos. | |
8376 | (move_it_to): Likewise. | |
8377 | (move_it_vertically_backward): Likewise. | |
8378 | (move_it_vertically): Likewise. | |
8379 | (move_it_by_lines): Likewise. | |
8380 | (hscroll_window_tree): Likewise. | |
8381 | (redisplay_internal): Likewise. | |
8382 | (set_cursor_from_row): Likewise. | |
8383 | (redisplay_window): Likewise. | |
8384 | (try_window): Take a text_pos parameter. Handle charpos/bytepos. | |
8385 | (try_window_reusing_current_matrix): Handle charpos/bytepos. | |
8386 | (get_first_unchanged_at_end_row): Compute and return delta_bytes. | |
8387 | (try_window_id): Handle charpos/bytepos. | |
8388 | (Ftrace_redisplay_toggle): Return Qnil. | |
8389 | (get_overlay_arrow_glyph_row): Handle charpos/bytepos. | |
8390 | (insert_left_trunc_glyphs): Likewise. | |
8391 | ||
8392 | * dispnew.c: `Merge' with 20.2.97 (it's really too different to | |
8393 | do a real merge). | |
8394 | (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes. | |
8395 | (increment_glyph_row_buffer_positions): Ditto. | |
8396 | (copy_glyph_row_contents): Ditto. | |
8397 | (check_matrix_invariants): Add additional checks for charpos/ | |
8398 | bytepos consistency. | |
8399 | (direct_output_for_insert): Changed for charpos/bytepos. | |
8400 | (buffer_posn_from_coords): Likewise. Put code dealing with | |
8401 | `direction-reversed' in #if 0. | |
8402 | ||
8403 | * xterm.h: Merge with 20.2.97. | |
8404 | ||
8405 | * frame.h: Merge with 20.2.97. | |
8406 | ||
8407 | * window.h: Merge with 20.2.97. Add window_end_bytepos. | |
8408 | ||
8409 | * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row | |
8410 | start. | |
8411 | (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position. | |
8412 | (MATRIX_ROW_END_CHARPOS): Likewise for the row end. | |
8413 | (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position. | |
8414 | (struct it): Various members renamed from .*pos to .*charpos. | |
8415 | (IT_CHARPOS): Access current buffer character position of an | |
8416 | iterator. | |
8417 | (IT_BYTEPOS): Access current buffer byte position of an iterator. | |
8418 | (IT_STRING_CHARPOS): Access current string character position of | |
8419 | an iterator. | |
8420 | (IT_STRING_BYTEPOS): Access current string byte position of | |
8421 | an iterator. | |
8422 | (globally): Add function prototypes from 20.2.97. | |
8423 | ||
8424 | * everywhere: Use P_ instead of PROTO for function prototypes | |
8425 | because everyone else seems to use P_. | |
8426 | ||
8427 | * dispextern.h (struct text_pos): Structure describing a charpos/ | |
8428 | bytepos position in text. | |
8429 | (BYTEPOS): Access the byte position part of a text_pos. | |
8430 | (CHARPOS): Likewise for the character position. | |
8431 | (SET_TEXT_POS): Set a text_pos from a character and byte position. | |
8432 | (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position. | |
8433 | (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker. | |
8434 | (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos. | |
8435 | (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality. | |
8436 | (struct display_pos): Renamed from glyph_pos. Use struct text_pos | |
8437 | for buffer and string positions. | |
8438 | (struct glyph): Use text_pos. | |
8439 | (struct it): Renamed from display_iterator. Use text_pos. | |
8440 | ||
8441 | 1998-07-23 Gerd Moellmann <gerd@gnu.org> | |
8442 | ||
8443 | * xfns.c (x_kill_gs_process): Get image colors from XImage of a | |
8444 | pixmap. | |
8445 | ||
8446 | 1998-07-21 Gerd Moellmann <gerd@gnu.org> | |
8447 | ||
8448 | * dispextern.h (struct glyph_row): New flag indicate_zv_line_p. | |
8449 | * xterm.c (x_draw_row_bitmaps): Use it. | |
8450 | * dispnew.c (row_equal_p): Ditto. | |
8451 | (update_window_line): Ditto. | |
8452 | ||
8453 | * xfns.c (prepare_image_for_display): Don't set loading_failed_p | |
8454 | flag of images. | |
8455 | ||
8456 | * dispextern.h (struct image): Removed member loading_failed_p. | |
8457 | It's probably better to have the chance to try to load an image | |
8458 | again. | |
8459 | ||
8460 | 1998-07-20 Gerd Moellmann <gerd@gnu.org> | |
8461 | ||
8462 | * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending | |
8463 | at ZV if `indicate-zv-lines' is non-nil. | |
8464 | (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'. | |
8465 | ||
8466 | * dispnew.c (row_equal_p): Compare displays_text_p and | |
8467 | ends_at_zv_p flags of rows. | |
8468 | (update_window_line): Ditto. | |
8469 | ||
8470 | * buffer.h (struct buffer): New member indicate_zv_lines. | |
8471 | ||
8472 | * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'. | |
8473 | (init_buffer_once): New variable `default-indicate-zv-lines'. | |
8474 | (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'. | |
8475 | ||
8476 | * xdisp.c (redisplay_window): Don't try moving the cursor | |
8477 | if current glyph row w->last_cursor.vpos isn't enabled. | |
8478 | ||
8479 | * xterm.c (bitmap_type): Add ZV_LINE_BITMAP. | |
8480 | ||
8481 | * window.c (Fset_window_vscroll): Allow only negative scroll | |
8482 | values. Others don't seem to make sense, and this way it's easy | |
8483 | to restore a vscroll of zero. | |
8484 | ||
8485 | * xterm.c (x_inverted_image_mask): Check that pixmap could be | |
8486 | allocated. | |
8487 | (x_draw_image_glyph_string_background): Don't clip if pixmap | |
8488 | could not be created. | |
8489 | ||
8490 | * xfns.c (xbm_load_image_from_file): Check that pixmap could | |
8491 | be created. | |
8492 | (xbm_load): Ditto. | |
8493 | (gs_load): Ditto. | |
8494 | ||
8495 | * xterm.c (x_get_glyph_overhangs): Take image and stretch | |
8496 | glyphs into account. | |
8497 | ||
8498 | * xfaces.c (realize_default_face): Don't set font family of | |
8499 | the default face from the fontset alias name for `fontset-startup'. | |
8500 | ||
8501 | * xfns.c (gs_load): Pass frame's pixel foreground and background | |
8502 | color to the Lisp loader. | |
8503 | ||
8504 | 1998-07-19 Gerd Moellmann <gerd@gnu.org> | |
8505 | ||
8506 | * xfns.c (tiff_image_p, tiff_load): Support TIFF images via | |
8507 | libtiff34. | |
8508 | ||
8509 | * configure.in (--with-tiff, HAVE_TIFF): Added. | |
8510 | ||
8511 | * config.in (HAVE_TIFF): Added. | |
8512 | ||
8513 | * Makefile.in (LIBTIFF): Added. | |
8514 | ||
8515 | * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images. | |
8516 | ||
8517 | * Makefile.in (LIBJPEG): Added. | |
8518 | ||
8519 | * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER, | |
8520 | RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with | |
8521 | jpeglib.h. | |
8522 | ||
8523 | * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems | |
8524 | where the library is installed in /usr/local/lib, e.g. FreeBSD, | |
8525 | configure must be run with `--x-includes=/usr/X11R6/include: | |
8526 | /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'. | |
8527 | ||
8528 | 1998-07-18 Gerd Moellmann <gerd@gnu.org> | |
8529 | ||
8530 | * config.in (HAVE_JPEG): Added. | |
8531 | ||
8532 | * xfns.c (ct_init): Initialize color table used to map RGB colors | |
8533 | from images to X pixel colors. | |
8534 | (ct_free): Free color table. | |
8535 | (ct_lookup): Look an RGB color up. | |
8536 | (ct_allocated_colors): Get vector of allocated colors. | |
8537 | (pbm_image_p): Test if image specification is a valid PPM | |
8538 | image specification. | |
8539 | (pbm_scan_number): Scan a decimal ASCII number from a file. | |
8540 | (pbm_load): Load a PPM image. | |
8541 | ||
8542 | * window.c (Fset_window_vscroll): Adjust glyph matrix if | |
8543 | necessary. Take canonical character units as parameter. | |
8544 | (Fwindow_vscroll): Return canonical character units. | |
8545 | ||
8546 | * dispnew.c (allocate_matrices_for_window_redisplay): Add negative | |
8547 | w->dy to display height for which glyph rows must be allocated. | |
8548 | ||
8549 | 1998-07-17 Gerd Moellmann <gerd@gnu.org> | |
8550 | ||
8551 | * xfaces.c (face_at_string_position): Merge in region face | |
8552 | so that it won't overwrite the font in the region. | |
8553 | (face_at_buffer_position): Ditto. | |
8554 | (realize_basic_faces): Don't realize region face. | |
8555 | ||
8556 | * dispextern.h (enum face_id): REGION_FACE_ID removed. | |
8557 | ||
8558 | * xterm.c (x_set_glyph_string_background_width): Don't let | |
8559 | cursor face extend to end of line. | |
8560 | ||
8561 | * xdisp.c (append_space): If adding space of default face, | |
8562 | make sure glyph ist produced with right face. | |
8563 | ||
8564 | * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the | |
8565 | background color of a glyph string. | |
8566 | (x_draw_glyph_string_background): Call it. | |
8567 | (x_draw_glyph_string_bg_rect): Ditto. | |
8568 | (x_draw_stretch_glyph_string): Ditto. | |
8569 | ||
8570 | 1998-07-15 Gerd Moellmann <gerd@gnu.org> | |
8571 | ||
8572 | * xdisp.c (init_iterator): Initialize it->current_y to the | |
8573 | window's vscroll w->dy. | |
8574 | ||
8575 | * window.c (Fwindow_vscroll): Return number of pixels window | |
8576 | is vscrolled smoothly. | |
8577 | (Fset_window_vscroll): Set the number. | |
8578 | ||
8579 | * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and | |
8580 | to_pos in truncated part of a line. | |
8581 | ||
8582 | 1998-07-14 Gerd Moellmann <gerd@gnu.org> | |
8583 | ||
8584 | * xdisp.c (move_iterator_in_display_line_to): If very first glyph | |
8585 | doesn't fit on the line, truncate it, despite truncate_lines nil. | |
8586 | (display_line): Ditto. | |
8587 | ||
8588 | * xfns.c: Experimental support for Ghostscript images. | |
8589 | ||
8590 | * xterm.c (x_term_init): Initialize new atoms DONE and PAGE. | |
8591 | (XTread_socket): React on events from Ghostscript. | |
8592 | (expose_frame): If width or height are zero, redraw entire frame. | |
8593 | (XTread_socket): Call expose_frame after receiving event from | |
8594 | Ghostscript. | |
8595 | ||
8596 | * xterm.h (struct x_display_info): Add atoms DONE and PAGE | |
8597 | for Ghostscript support. | |
8598 | ||
8599 | * xdisp.c (redisplay_internal): Return quickly if called | |
8600 | recursively. | |
8601 | ||
8602 | * alloc.c (NSTATICS): Increased to 1024. | |
8603 | ||
8604 | 1998-07-08 Gerd Moellmann <gerd@gnu.org> | |
8605 | ||
8606 | * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an | |
8607 | iterator's glyph row. | |
8608 | (x_produce_stretch_glyph): Call it. | |
8609 | (x_produce_glyphs): Handle `space-width' property; call | |
8610 | x_append_stretch_glyph. | |
8611 | ||
8612 | * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text | |
8613 | property. | |
8614 | (get_iterator_space_width): Determine value of `space-width' | |
8615 | property at iterator's position. | |
8616 | (reseat_iterator): Call it. | |
8617 | (next_element_from_string): Ditto. | |
8618 | (next_element_from_buffer): Ditto. | |
8619 | (init_iterator): Initialize space_width of iterator. | |
8620 | (redisplay_internal): Don't goto end_of_redisplay if PT hasn't | |
8621 | moved, but cursor blinks. | |
8622 | (redisplay_internal): Set w->last_cursor_off_p after update. | |
8623 | ||
8624 | * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX. | |
8625 | (struct display_iterator): Add new member space_width. | |
8626 | ||
8627 | * window.h (struct window): Add last_cursor_off_p. | |
8628 | ||
8629 | 1998-07-07 Gerd Moellmann <gerd@gnu.org> | |
8630 | ||
8631 | * Saved. | |
8632 | ||
8633 | * window.c (Fpos_visible_in_window_p): Case window not up to | |
8634 | date---return nil if iterator hasn't reached position. | |
8635 | ||
8636 | 1998-07-06 Gerd Moellmann <gerd@gnu.org> | |
8637 | ||
8638 | * xdisp.c (text_outside_line_unchanged_p): Fix case that | |
8639 | overlays have changed. | |
8640 | (redisplay_window): Case cursor movement. Don't try it if | |
8641 | last_cursor.vpos is out of range. | |
8642 | ||
8643 | * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This | |
8644 | way, the display optimization for the line containing the cursor | |
8645 | is used more frequently, esp. when we have a blinking cursor. | |
8646 | (display_line): Don't set this_line_.* variables. | |
8647 | ||
8648 | * xterm.c (x_redraw_cursor): Removed. | |
8649 | (x_display_and_set_cursor): Set cursor type depending on | |
8650 | cursor_off_p flag of window. | |
8651 | ||
8652 | * dispnew.c (redraw_cursor_hook): Removed. | |
8653 | (Fblink_cursor): Additional parameter on_p to set the cursor_off_p | |
8654 | member of the selected window. | |
8655 | ||
8656 | * xfaces.c (Fface_font): Added for compatibility with 20.2. | |
8657 | ||
8658 | * xterm.c (x_y_to_hpos_vpos): Return null if not over text. | |
8659 | Return glyph area under x/y. | |
8660 | (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form. | |
8661 | ||
8662 | * keyboard.c (detect_input_pending_run_timers): Call gobble_input | |
8663 | after redisplaying. | |
8664 | ||
8665 | 1998-07-05 Gerd Moellmann <gerd@gnu.org> | |
8666 | ||
8667 | * xdisp.c (text_outside_line_unchanged_p): Test if changes | |
8668 | are all outside of a line of text. | |
8669 | (redisplay_internal): Use it. | |
8670 | ||
8671 | 1998-06-30 Gerd Moellmann <gerd@gnu.org> | |
8672 | ||
8673 | * xdisp.c (next_element_from_buffer): After skipping over | |
8674 | invisible text, look for the `glyph' property. | |
8675 | (set_iterator_stop_pos): Ignore check positions in front | |
8676 | of an iterator's current position. | |
8677 | ||
8678 | * xterm.c (show_mouse_face): Don't act on rows that don't exist | |
8679 | anymore or which are marked as not having valid contents. | |
8680 | ||
8681 | * xfaces.c (Finternal_set_lisp_face_attribute): Don't free | |
8682 | realized faces if new attribute value is equal to old value. | |
8683 | ||
8684 | 1998-06-29 Gerd Moellmann <gerd@gnu.org> | |
8685 | ||
8686 | * xfaces.c (Finternal_make_lisp_face): Increment | |
8687 | lface_id_to_name_size when lface_id_to_name is reallocated. | |
8688 | ||
8689 | 1998-06-27 Gerd Moellmann <gerd@gnu.org> | |
8690 | ||
8691 | * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos | |
8692 | as minimum of endpos and overlay_pos. | |
8693 | (load_overlay_strings): Set next_overlay_pos of iterator to | |
8694 | -1 if we don't have to check for more overlay strings. | |
8695 | ||
8696 | 1998-05-09 Gerd Moellmann <gerd@gnu.org> | |
8697 | ||
8698 | * xdisp.c (set_iterator_to_next_visible_line_start): Don't | |
8699 | do anything if iterator is at ZV because scan_buffer doesn't | |
8700 | work otherwise. | |
8701 | ||
8702 | * xterm.c (x_encode_char): Inline it. | |
8703 | (x_get_char_font_and_encoding): Simplified. | |
8704 | (x_per_char_metric): Inline it. | |
8705 | ||
8706 | * xterm.c (x_draw_glyph_string_relief): Use clipping. | |
8707 | ||
8708 | * xdisp.c (get_next_display_element): Check for end of relief | |
8709 | face moved here from next_element_from_buffer. | |
8710 | ||
8711 | * xterm.c (x_produce_image_glyph): Add relief thickness. | |
8712 | (x_produce_stretch_glyph): Ditto. | |
8713 | ||
8714 | 1998-05-08 Gerd Moellmann <gerd@gnu.org> | |
8715 | ||
8716 | * xdisp.c (fill_iterator_from_glyph_property): Handle glyph | |
8717 | property value (space :width WIDTH :height HEIGHT :ascent ASCENT). | |
8718 | ||
8719 | * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph | |
8720 | from a glyph property. | |
8721 | (x_produce_glyphs): Use it. | |
8722 | ||
8723 | * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch. | |
8724 | ||
8725 | * xterm.c (x_produce_image_glyph): Add to current_x only if | |
8726 | in text area. | |
8727 | (x_produce_glyphs): Ditto. | |
8728 | ||
8729 | * xdisp.c (display_line): Compute row height from glyphs in | |
8730 | marginal areas. | |
8731 | ||
8732 | * xterm.c (x_draw_image_glyph_string_background): Draw | |
8733 | background of an image glyph string. | |
8734 | (x_draw_glyph_string_bg_rect): Draw a rectangular region of | |
8735 | the background of a glyph string. | |
8736 | (x_draw_image_glyph_string_foreground): Draw the foreground of | |
8737 | an image glyph string. | |
8738 | (x_inverted_image_mask): Return the inverted mask of an image. | |
8739 | ||
8740 | * xfns.c (x_draw_image): Removed. | |
8741 | ||
8742 | * dispextern.h (struct image_type): Remove drawing function. | |
8743 | ||
8744 | * xfaces.c (load_face_colors): Swap colors if face is inverse. | |
8745 | ||
8746 | * xdisp.c (get_next_display_element): In marginal areas, translate | |
8747 | newlines, tabs, etc. like normal control characters. | |
8748 | ||
8749 | * xfaces.c (Fface_color_supported_p): Transpose parameters frame | |
8750 | and color. | |
8751 | (free_realized_faces): Set frame garbaged. | |
8752 | ||
8753 | * xfaces.c (syms_of_xfaces): Add defsubr for | |
8754 | internal-lisp-face-attribute-values. | |
8755 | ||
8756 | 1998-05-07 Gerd Moellmann <gerd@gnu.org> | |
8757 | ||
8758 | * xterm.c (x_produce_image_glyph): Don't add glyph if area is | |
8759 | full. | |
8760 | (x_produce_image_glyph): Set IT->nglyphs to 1. | |
8761 | (x_draw_image_glyph_string): Use inverted mask to draw background. | |
8762 | ||
8763 | * dispextern.h (struct image_type): Additional clipping rect | |
8764 | parameters for drawing functions. | |
8765 | ||
8766 | * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for | |
8767 | a glyph string. | |
8768 | (x_draw_image_glyph_string): Use it and pass the rect to the | |
8769 | image drawing function. | |
8770 | ||
8771 | * xdisp.c (fill_iterator_from_glyph_property): Use position of | |
8772 | first character with `glyph' property as image position. Set | |
8773 | iterator back to that position as long as the image hasn't been | |
8774 | consumed with set_iterator_to_next. | |
8775 | (set_cursor_from_row): Accept when glyph with given position is | |
8776 | not found in the row. Set cursor x to end of line in that case, | |
8777 | so that we can hscroll. | |
8778 | (redisplay_internal): Correct computation of delta by which | |
8779 | positions have changed in redisplay optimization for cursor | |
8780 | row of selected window. | |
8781 | ||
8782 | * xdisp.c (display_line): Remove start_pos. | |
8783 | (display_line): Fix bug preventing display optimization for | |
8784 | cursor line of selected window. | |
8785 | (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer | |
8786 | instead. | |
8787 | ||
8788 | * dispnew.c (update_text_area): Use GLYPH_EQUAL_P. | |
8789 | (update_text_area): Take glyph pixel width into account | |
8790 | when trying to find a resync point. | |
8791 | (row_equal_p): Compare glyphs in all areas. | |
8792 | ||
8793 | 1998-05-06 Gerd Moellmann <gerd@gnu.org> | |
8794 | ||
8795 | * xterm.c (x_produce_glyphs): Don't add glyph if area is full. | |
8796 | ||
8797 | * dispextern.h (struct glyph_row): Use unsigned hash value. | |
8798 | ||
8799 | * xdisp.c (display_line): Simplified and made faster by setting | |
8800 | the cursor with set_cursor_from_row. | |
8801 | (set_cursor_from_row): Handle rows of desired matrix. | |
8802 | ||
8803 | 1998-05-05 Gerd Moellmann <gerd@gnu.org> | |
8804 | ||
8805 | * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs | |
8806 | with type != CHAR_GLYPH. | |
8807 | (fill_iterator_from_glyph_property): Return void. Set | |
8808 | method to next_element_from_image. | |
8809 | (next_element_from_image): Dummy function for delivering a | |
8810 | single image id. | |
8811 | (set_iterator_to_next): Add method next_element_from_image. | |
8812 | (redisplay_window): When recentering, and cursor vpos is -1 | |
8813 | after display, assume middle of window is in first line displayed | |
8814 | in window, and display again. | |
8815 | (fill_iterator_from_glyph_property): Assign image glyph | |
8816 | the position of the first character having the glyph property. | |
8817 | ||
8818 | * dispextern.h (IMAGE_ASCENT): Compute ascent of image. | |
8819 | * xfns.c (x_draw_image): Use it. | |
8820 | * xterm.c (x_produce_image_glyph): Use it. | |
8821 | ||
8822 | * xterm.c (x_produce_image_glyph): Set iterator's pixel_width. | |
8823 | ||
8824 | * Makefile.in: Extraneous #define of LIBXPM removed. | |
8825 | ||
8826 | * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs. | |
8827 | (x_fill_stretch_glyph_string): Fill a glyph string from a | |
8828 | stretch glyph. | |
8829 | (x_compute_glyph_string_overhangs): Compute overhangs only | |
8830 | for text glyph strings. | |
8831 | (x_draw_stretch_glyph_string): Draw a stretch glyph string. | |
8832 | (x_draw_glyph_string): Call it. | |
8833 | ||
8834 | * dispextern.h (glyph_type): Add STRETCH_GLYPH. | |
8835 | (struct glyph): Add sub-structure for stretchable glyphs. | |
8836 | (GLYPH_EQUAL_P): Compare glyph type and u.val. | |
8837 | ||
8838 | * xdisp.c (get_overlay_arrow_glyph_row): Put face code into | |
8839 | #ifdef HAVE_FACES. | |
8840 | ||
8841 | * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB. | |
8842 | ||
8843 | * xdisp.c (fill_iterator_from_glyph_property): Renamed from | |
8844 | setup_iterator_from_glyph_property. Don't do it for terminal | |
8845 | frames. | |
8846 | ||
8847 | * xterm.c (x_produce_image_glyph): Produce glyph for image | |
8848 | that can't be loaded. | |
8849 | ||
8850 | * xfns.c (lookup_image): If image can't be loaded, set its | |
8851 | width and height so that we can draw a rectangle. | |
8852 | (x_draw_image): Draw a rectangle for images that don't have | |
8853 | a pixmap. | |
8854 | (make_image): Set hash value. | |
8855 | (image_spec_equal_p): Use image_spec_value. | |
8856 | ||
8857 | * xterm.c (expose_frame): Don't try to redraw if basic faces | |
8858 | haven't benn realized yet. | |
8859 | (x_draw_image_glyph_string): Fill background only if image | |
8860 | is not as tall as row. | |
8861 | ||
8862 | 1998-05-04 Gerd Moellmann <gerd@gnu.org> | |
8863 | ||
8864 | * Makefile.in (LIBXPM): If not already defined, define to -lXpm. | |
8865 | (LIBX)[HAVE_X11]: Add LIBXPM. | |
8866 | ||
8867 | * xfns.c (xpm_image_p): Implementation of image type functions | |
8868 | for XPM. | |
8869 | (xpm_load): Ditto. | |
8870 | ||
8871 | * dispextern.h (struct image): Add mask pixmap for XPM. | |
8872 | ||
8873 | * xfns.c (x_draw_image): Handle images with masks. | |
8874 | ||
8875 | * configure.in: --with-xpm added. Code detecting -lXpm added. | |
8876 | ||
8877 | * config.in: Add HAVE_XPM. | |
8878 | ||
8879 | * xfns.c (xbm_draw): Removed. | |
8880 | (x_draw_image): Default implementation for drawing images. | |
8881 | (xbm_keyword_index): Remove XBM_DEPTH. | |
8882 | (xbm_format): Remove `:depth'. | |
8883 | (xbm_image_spec_from_file): Removed to reduce consing. | |
8884 | (xbm_load_image_from_file): Added for the same reason. | |
8885 | ||
8886 | * xterm.c (x_fill_image_glyph_string): Don't set ybase of | |
8887 | glyph string. | |
8888 | (x_draw_image_glyph_string): Pass ybase to image draw function. | |
8889 | ||
8890 | * xfns.c (make_image): Set default baseline. | |
8891 | ||
8892 | * xterm.c (x_produce_image_glyph): Compute ascent of image | |
8893 | from its height and baseline percentage. | |
8894 | ||
8895 | * xfns.c (xbm_keyword_index): Add XBM_BASELINE. | |
8896 | (xbm_format): Add description for `:baseline'. | |
8897 | (xbm_image_spec_from_file): Add keywords from original spec to | |
8898 | result. | |
8899 | (xbm_load): Set baseline of image. | |
8900 | (xbm_image_p): Check range for baseline. | |
8901 | ||
8902 | * dispextern.h (struct image): Add member baseline. | |
8903 | ||
8904 | * xdisp.c (dump_glyph_matrix): Handle image glyphs. | |
8905 | ||
8906 | * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE. | |
8907 | ||
8908 | * xdisp.c (get_next_display_element): Do character translations | |
8909 | only if delivering characters. | |
8910 | ||
8911 | 1998-05-03 Gerd Moellmann <gerd@gnu.org> | |
8912 | ||
8913 | * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for | |
8914 | DISP_CHARACTER. | |
8915 | ||
8916 | * xterm.c (x_produce_image_glyph): Poduce image glyphs. | |
8917 | (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE. | |
8918 | ||
8919 | 1998-05-02 Gerd Moellmann <gerd@gnu.org> | |
8920 | ||
8921 | * xfns.c (prepare_image_for_display): Set image timestamp. | |
8922 | (clear_image_cache): Clear images if image's timestamp + | |
8923 | Vimage_eviction_seconds is > now. | |
8924 | (syms_of_xfns): New variables image-eviction-seconds, and | |
8925 | image-types. | |
8926 | (add_image_format): Add to image-types. | |
8927 | (xbm_load): Support new image spec format. | |
8928 | (x_alloc_image_color): Allocate a color for an image. | |
8929 | ||
8930 | * dispextern.h (struct image): Add timestamp. | |
8931 | ||
8932 | * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and | |
8933 | vectors of bool-vectors. | |
8934 | (xbm_lisp_object_from_file): Build new format image spec. | |
8935 | ||
8936 | 1998-05-01 Gerd Moellmann <gerd@gnu.org> | |
8937 | ||
8938 | * xfaces.c (init_frame_faces): Initialize image cache. | |
8939 | (free_frame_faces): Free it. | |
8940 | ||
8941 | * xterm.c (x_delete_display): Don't free image cache. | |
8942 | ||
8943 | * emacs.c (main): Call init_xfns. | |
8944 | ||
8945 | 1998-04-30 Gerd Moellmann <gerd@gnu.org> | |
8946 | ||
8947 | * alloc.c (mark_object): Mark objects in image cache. | |
8948 | ||
8949 | * xfns.c (x_set_internal_border_width): Correct call to | |
8950 | widget_store_internal_border_width. | |
8951 | ||
8952 | * widget.c (widget_store_internal_border): Return void. | |
8953 | ||
8954 | * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return | |
8955 | void. | |
8956 | (init_x_parm_symbols): Return void. | |
8957 | (x_report_frame_params): Ditto. | |
8958 | (x_set_border_pixel): Ditto. | |
8959 | (syms_of_xfns): Ditto. | |
8960 | (x_destroy_all_bitmaps): Use xfree instead of free. | |
8961 | ||
8962 | * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame. | |
8963 | ||
8964 | * xterm.c (x_term_init): Initialize image_cache of display info. | |
8965 | (x_delete_display): Free image cache. | |
8966 | ||
8967 | * xterm.h (struct x_display_info): Add image_cache. | |
8968 | ||
8969 | * xfns.c (make_image_cache): Allocate a new image cache. | |
8970 | (free_image_cache): Free an image cache. | |
8971 | (make_image): Allocate an image. | |
8972 | (free_image): Free an image. | |
8973 | ||
8974 | * dispextern.h (struct image): Structure describing an image. | |
8975 | (struct image_cache): Structure describing an image cache. | |
8976 | ||
8977 | 1998-04-29 Gerd Moellmann <gerd@gnu.org> | |
8978 | ||
8979 | * xdisp.c (check_iterator_glyph_property): Return int. Value is | |
8980 | non-zero if iterator is filled with something to return. | |
8981 | (next_element_from_buffer): Immediately return if | |
8982 | setup_iterator_from_glyph_prop has filled iterator with pixmap. | |
8983 | (next_element_from_string): Likewise. | |
8984 | ||
8985 | * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR. | |
8986 | ||
8987 | * dispextern.h (struct glyph): Add pixmap_id. | |
8988 | (display_element_type): Add DISP_PIXMAP. | |
8989 | ||
8990 | * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of | |
8991 | malloc/free. | |
8992 | ||
8993 | * xfaces.c (clear_font_table): Free fonts not used by fontsets. | |
8994 | (clear_face_cache): Call it. | |
8995 | ||
8996 | * xterm.c (x_query_font): Don't look at empty font table slots. | |
8997 | (x_compute_min_glyph_bounds): Likewise. | |
8998 | (x_term_init): Initialize font_table to null. | |
8999 | (x_load_font): Change allocation of font_info structures so | |
9000 | that it is possible to free fonts. | |
9001 | ||
9002 | * xfns.c (Fx_close_connection): Use xfree instead of free. | |
9003 | Only free fonts from filled font table entries. | |
9004 | ||
9005 | * xfaces.c (best_matching_font): Support use of scalable fonts. | |
9006 | (Fface_scalable_fonts_mode): Toggle use of scalable fonts. | |
9007 | ||
9008 | * xterm.h (struct x_display_info): Remove screen_dpi, add resx | |
9009 | and resy. | |
9010 | * xterm.c (x_term_init): Compute resx and resy. | |
9011 | ||
9012 | * xfaces.c (split_font_name): Don't reject scalable fonts. | |
9013 | ||
9014 | * xterm.c (x_list_fonts): Set code exclusing scalable fonts | |
9015 | in #if 0. | |
9016 | ||
9017 | * xfaces.c (xlfd_point_size): Return 0 for fonts whose real | |
9018 | point size cannot be determined. | |
9019 | ||
9020 | * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character | |
9021 | width over all fonts on a frame. | |
9022 | (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height. | |
9023 | * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these | |
9024 | macros. | |
9025 | ||
9026 | * xterm.c (x_font_min_bounds): Moved here from xfaces.c. | |
9027 | (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c. | |
9028 | (x_load_font): Use x_compute_min_char_bounds. | |
9029 | ||
9030 | * xterm.h (struct x_display_info): New members smallest_char_width | |
9031 | and smallest_font_height. | |
9032 | ||
9033 | 1998-04-28 Gerd Moellmann <gerd@gnu.org> | |
9034 | ||
9035 | * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with | |
9036 | the same name if GC of face is zero. | |
9037 | ||
9038 | * dispextern.h (struct face): Member non_ascii_gc removed. | |
9039 | ||
9040 | * xterm.c (x_get_char_font_and_encoding): Return face's font | |
9041 | for characters < 0177 in default face. Prepare face for | |
9042 | display before returning it. | |
9043 | (x_produce_glyphs): Use it->charset. | |
9044 | (x_get_char_font_and_encoding): Simplified. | |
9045 | (x_encode_char): Remove parameter `font'. | |
9046 | ||
9047 | * xfaces.c (choose_face_font): If registry from charset symbol | |
9048 | doesn't contain a `-', make it a pattern by appending "*-*". | |
9049 | ||
9050 | * xdisp.c (check_iterator_glyph_property): Adjust limit for | |
9051 | glyph_check_pos computation to character boundary. | |
9052 | ||
9053 | 1998-04-27 Gerd Moellmann <gerd@gnu.org> | |
9054 | ||
9055 | * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid. | |
9056 | ||
9057 | * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized | |
9058 | ASCII face for a given Lisp face id. | |
9059 | ||
9060 | * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into | |
9061 | account. | |
9062 | (reseat_iterator): Set glyph_check_pos. Handle case where | |
9063 | new position is < original position. | |
9064 | (check_iterator_glyph_property): Handle glyph property in strings. | |
9065 | (next_element_from_string): Call above function. | |
9066 | (next_element_from_display_vector): Handle faces in glyphs. | |
9067 | (get_next_display_element): Set face_id of glyphs for | |
9068 | control chars to zero. | |
9069 | ||
9070 | * Makefile.in (term.o): Add dependency on dispextern.h. | |
9071 | ||
9072 | * xdisp.c (syms_of_xdisp): Add symbol `glyph'. | |
9073 | (display_line): Handle marginal areas. | |
9074 | (move_iterator_in_display_line_to): Likewise. | |
9075 | ||
9076 | * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id. | |
9077 | ||
9078 | * xfaces.c (face_at_buffer_position): Don't merge with nil | |
9079 | text property. | |
9080 | (face_at_string_position): Ditto. | |
9081 | ||
9082 | * dispextern.h (struct display_iterator): Use a stack of saved | |
9083 | values instead of saving check positions etc. individually. | |
9084 | ||
9085 | * xdisp.c (set_iterator_to_next): If end of Lisp string reached, | |
9086 | maybe pop the iterator's stack. | |
9087 | (save_iterator_settings): Push a value on iterator's stack. | |
9088 | (get_overlay_strings_at_iterator_position): Use it. | |
9089 | (restore_iterator_settings): Pop the stack. | |
9090 | (set_iterator_to_next_overlay_string): Use it. | |
9091 | ||
9092 | * xfaces.c (try_font_list): Use alternative font families. | |
9093 | ||
9094 | 1998-04-26 Gerd Moellmann <gerd@gnu.org> | |
9095 | ||
9096 | * xfaces.c (Fset_face_font_sort_order): Set the order in which | |
9097 | font selection matches fonts. | |
9098 | (Fface_font_sort_order): Return the font sort order. | |
9099 | (best_matching_font): Find best matching font based on sort order. | |
9100 | (cmp_font_names): Sort by given sort order. | |
9101 | ||
9102 | * dispextern.h (struct display_iterator): New member faces_p. | |
9103 | * xdisp.c (init_iterator): Initialize it->faces_p. | |
9104 | (compute_face_at_iterator_string_position): Use it. | |
9105 | (compute_face_at_iterator_position): Use it. | |
9106 | (init_iterator): Use it. | |
9107 | (display_mode_line): Ditto. | |
9108 | ||
9109 | * xdisp.c (get_next_display_element): Put code choosing a face | |
9110 | when the charset changes in #ifdef HAVE_FACES. | |
9111 | ||
9112 | * dispextern.h (FACE_FOR_CHARSET): Replacement for function | |
9113 | lookup_face_for_charset. | |
9114 | ||
9115 | * xfaces.c (free_font_names): Renamed from free_split_font_names. | |
9116 | (free_all_realized_faces): Renamed from remove_all_realized_faces. | |
9117 | ||
9118 | 1998-04-25 Gerd Moellmann <gerd@gnu.org> | |
9119 | ||
9120 | * xfaces.c (best_matching_font): Return the name of the best | |
9121 | matching font in an array of font_name structures. | |
9122 | (choose_face_font): Use it. | |
9123 | (choose_face_fontset_font): Use it. | |
9124 | (find_best_weight_font): If final font found has same weight as | |
9125 | the font we started with, return the original font because it is a | |
9126 | better match for the resolution of the display. | |
9127 | (find_best_slant_font): Likewise. | |
9128 | (merge_face_vector_with_property): Check more invalid attribute | |
9129 | values. | |
9130 | (lface_suitable_for_charset_p): Replaced by a macro with the same | |
9131 | name in upper-case. | |
9132 | ||
9133 | 1998-04-24 Gerd Moellmann <gerd@gnu.org> | |
9134 | ||
9135 | * dispextern.h (struct face): Member | |
9136 | fontset_chosen_for_realization_p removed. | |
9137 | ||
9138 | * xfaces.c (cache_face): If face->fontset >= 0, add face to the | |
9139 | end of the collision list, so that we find more specific faces | |
9140 | first. | |
9141 | (lookup_face_for_charset): Look up a new face if face->fontset >= | |
9142 | 0, and charset != CHARSET_COMPOSITION. | |
9143 | ||
9144 | * xfaces.c (split_font_name): Return zero if point size of font | |
9145 | couldn't be computed. | |
9146 | (realize_default_face): Use ASCII font of a fontset to determine | |
9147 | font-related attributes of the default face. | |
9148 | (face_fontset): Return fontset id for face family. | |
9149 | (font_list): Additional parameter font_pattern. If non-nil, | |
9150 | return fonts matching that pattern. | |
9151 | ||
9152 | 1998-04-23 Gerd Moellmann <gerd@gnu.org> | |
9153 | ||
9154 | * xfaces.c (choose_face_fontset): If new fontset cannot be | |
9155 | constructed, or fontset name cannot be split, return the id of the | |
9156 | standard fontset. | |
9157 | ||
9158 | * xterm.c (XTframe_up_to_date): Check that frame is an X frame. | |
9159 | When Emacs starts, it may be called for the initial frame which | |
9160 | isn't an X frame. | |
9161 | ||
9162 | * dispextern.h (struct face): New members foreground_defaulted_p, | |
9163 | background_defaulted_p. | |
9164 | (struct face): Members `mask' and `cache' removed. | |
9165 | ||
9166 | * xfaces.c (load_color): Set them. | |
9167 | (free_face_colors): Check them. | |
9168 | (xlfd_point_size): Return -1 if resolution or point size of | |
9169 | font unknown. | |
9170 | ||
9171 | * xfaces.c (free_font): Removed. | |
9172 | (load_face_font_or_fontset): Renamed from load_font. | |
9173 | (load_face_font_or_fontset): Use message2 instead of signalling. | |
9174 | (load_color): Likewise. | |
9175 | (load_pixmap): Likewise. | |
9176 | ||
9177 | * xterm.h (struct x_display_info): Add screen_dpi. | |
9178 | * xterm.c (x_term_init): Initialize it. | |
9179 | * xfaces.c (xlfd_point_size): Use it. | |
9180 | (split_font_name): Compute numeric XLFD_RESY. | |
9181 | (cmp_font_names): Make fonts with an y-resolution more | |
9182 | similar to that of the frame appear first in the result. | |
9183 | ||
9184 | * xfaces.c (cache_face): If fontset_chosen_for_realization_p | |
9185 | is set for the face to cache, add it to the end of the collision | |
9186 | list. | |
9187 | (try_font_list): If fonts for given family and registry cannot | |
9188 | be found, first try to keep the registry, and choose a different | |
9189 | family. | |
9190 | (choose_face_font): Allow nfonts == 0. | |
9191 | (try_font_list): Give up if no font matches given registry. | |
9192 | ||
9193 | 1998-04-22 Gerd Moellmann <gerd@gnu.org> | |
9194 | ||
9195 | * xterm.c (x_get_char_font_and_encoding): Get font_info from | |
9196 | font info id of the face. | |
9197 | ||
9198 | * xfaces.c (load_font): Set font_info_id. | |
9199 | (realize_face): Ditto. | |
9200 | ||
9201 | * dispextern.h (struct face): Change member font_info to | |
9202 | font_info_id. | |
9203 | ||
9204 | * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer. | |
9205 | (FONT_INFO_FROM_ID): Get a font_info pointer from an ID. | |
9206 | ||
9207 | * xdisp.c (extend_face_to_end_of_line): If IT's current charset | |
9208 | isn't ASCII, get the ASCII face before adding a space. | |
9209 | (append_space): Likewise. | |
9210 | (insert_left_trunc_glyphs): Initialize truncate_it's charset | |
9211 | to -1 so that it will compute the right face for the truncation | |
9212 | glyphs. | |
9213 | ||
9214 | * xfaces.c (realize_face): Set | |
9215 | face->fontset_chosen_for_realization_p. | |
9216 | (lookup_face_for_charset): If fontset wasn't specified originally | |
9217 | and new charset != CHARSET_COMPOSITION, get a new face for that | |
9218 | charset. | |
9219 | ||
9220 | * dispextern.h (struct face): New member | |
9221 | fontset_chosen_for_realization_p_specified_p. Set to 1 when | |
9222 | realize_face has chosen a fontset to display composite characters | |
9223 | for a Lisp face not specifying a fontset. | |
9224 | ||
9225 | * xdisp.c (extend_face_to_end_of_line): Move tests for default | |
9226 | face and line already filled here. Don't do anything if current | |
9227 | face hasn't a relief or has a background equal to the frame | |
9228 | background. | |
9229 | ||
9230 | * xfaces.c (split_font_name): Additional parameter numeric_p. | |
9231 | Don't compute numeric values if it is non-zero. | |
9232 | (choose_face_fontset): Call split_font_name with numeric_p == 0. | |
9233 | (choose_face_fontset): Print a message if fontset contains a | |
9234 | font whose name cannot be split into fields. | |
9235 | ||
9236 | 1998-04-21 Gerd Moellmann <gerd@gnu.org> | |
9237 | ||
9238 | * xfaces.c (try_font_list): Try to load a list of fonts, | |
9239 | possibly using less restrictive patterns. | |
9240 | (choose_face_font): Use it. | |
9241 | ||
9242 | * xterm.c (x_get_char_font_and_encoding): For charset != | |
9243 | CHARSET_ASCII use font_info of face if face hasn't a fontset set. | |
9244 | ||
9245 | * dispextern.h (struct face): New member font_info. | |
9246 | ||
9247 | * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces | |
9248 | specifying a fontset as well as those not having a fontset. | |
9249 | (free_font): Make it empty. | |
9250 | (realize_face): Use changed load_font. | |
9251 | ||
9252 | * xterm.c (x_get_char_font_and_encoding): If face doesn't | |
9253 | fit for charset, get the right one. | |
9254 | ||
9255 | * xfaces.c (load_font): Take frame and name parameter, return | |
9256 | font. | |
9257 | (free_font): Likewise. | |
9258 | (split_font_name): Compute numeric values for height, swidth etc. | |
9259 | (cmp_font_names): Use them. | |
9260 | (find_best_width_font): Ditto. | |
9261 | (find_best_height_font): Ditto. | |
9262 | (find_best_weight_font): Ditto. | |
9263 | (find_best_slant_font): Ditto. | |
9264 | (lface_hash): Add weight, slant, swidth and relief to hash value. | |
9265 | (lface_equal_p): Make it faster. | |
9266 | (lface_from_symbol): Use assq_no_quit. | |
9267 | (Fnote_default_face_changed): Removed. | |
9268 | (cmp_font_names): Use strcmp instead of xstricmp. | |
9269 | (face_charset_registries): Removed. | |
9270 | ||
9271 | 1998-04-20 Gerd Moellmann <gerd@gnu.org> | |
9272 | ||
9273 | * frame.h (CHECK_FRAME): Give this macro a statement form. | |
9274 | (CHECK_LIVE_FRAME): Ditto. | |
9275 | ||
9276 | * xfaces.c (find_best_width_font): Find the best matching font | |
9277 | for a given width. | |
9278 | (find_best_height_font): Likewise for height. | |
9279 | (find_best_weight_font): Likewise for weight. | |
9280 | (find_best_slant_font): Likewise for slant. | |
9281 | (choose_face_font): Use them. | |
9282 | (get_lface_attributes): Always return frame-local face attrs. | |
9283 | (Finternal_merge_in_global_face): Merge local face with | |
9284 | global face attributes. | |
9285 | ||
9286 | * xfaces.c (check_lface_attrs, check_lface): Check consistency of | |
9287 | Lisp face attributes. | |
9288 | ||
9289 | 1998-04-19 Gerd Moellmann <gerd@gnu.org> | |
9290 | ||
9291 | * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold | |
9292 | and :italic for compatibility. | |
9293 | (Finternal_set_lisp_face_attribute_from_resource): Handle | |
9294 | :bold and :italic. Handle boolean resource values for | |
9295 | :underline and :italic. | |
9296 | ||
9297 | * xfns.c (display_x_get_resource): Make it externally visible. | |
9298 | ||
9299 | * xfaces.c (lface_from_symbol): Take a frame as parameter. | |
9300 | If that frame is non-null, return the frame-local face. | |
9301 | (Finternal_make_lisp_face): Additional frame argument. | |
9302 | (lface_attributes): Get face attributes from global and frame-local | |
9303 | definitions. | |
9304 | (Finternal_lisp_face_equal_p): Additional frame argument. | |
9305 | (merge_lisp_face_vector_with_property): Ditto. | |
9306 | (Frealize_basic_faces): Removed. | |
9307 | (Finternal_get_lisp_face_attribute): Additional frame argument. | |
9308 | (Finternal_lisp_face_p): Ditto. | |
9309 | (load_color) [MSDOS]: Removed because it isn't clear how | |
9310 | to do this for MS-DOS. | |
9311 | ||
9312 | * xfaces.c (lface_from_symbol): Get global face definition | |
9313 | from face-global-alist. | |
9314 | ||
9315 | * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t' | |
9316 | as values for :underline and :inverse-video. | |
9317 | (Finternal_set_lisp_face_attribute): Allow nil values. | |
9318 | ||
9319 | 1998-04-17 Gerd Moellmann <gerd@gnu.org> | |
9320 | ||
9321 | * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector. | |
9322 | ||
9323 | * xfaces.c (syms_of_xfaces): Add Vall_faces. | |
9324 | (Finternal_make_lisp_face): Add new face to Vall_faces. | |
9325 | ||
9326 | * xdisp.c (echo_area_display): Remove code recomputing faces. | |
9327 | (redisplay_internal): Ditto. | |
9328 | (init_iterator): Do it here. | |
9329 | ||
9330 | * xfaces.c (choose_face_font): Check that swidth doesn't change | |
9331 | for subusequent attributes. | |
9332 | (xlfd_point_size): Return int. | |
9333 | ||
9334 | * xdisp.c (redisplay_internal, echo_area-display): If realized | |
9335 | faces have been cleared, call recompute_basic_faces. | |
9336 | ||
9337 | * xfaces.c (recompute_basic_faces): Free realized faces. Reset | |
9338 | face_attributes_changed_p. | |
9339 | (remove_all_realized_faces): Remove all realized faces on | |
9340 | all frames. | |
9341 | (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces. | |
9342 | ||
9343 | * xdisp.c (redisplay_internal): If face attributes have been | |
9344 | changed since the last redisplay, recompute basic faces. | |
9345 | (echo_area_display): Ditto. | |
9346 | ||
9347 | * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache. | |
9348 | ||
9349 | * xfaces.c (min_char_bounds): If face cache not yet present, | |
9350 | don't try to get font dimensions from faces. | |
9351 | ||
9352 | * xterm.c (x_frame_mode_line_height): If face cache not present | |
9353 | set, return default height. | |
9354 | ||
9355 | * alloc.c (mark_face_cache): Check for null faces. Correct | |
9356 | index bug. | |
9357 | ||
9358 | * dispextern.h (struct face): Renamed from struct rface. Member | |
9359 | underline renamed underline_p. Make it a bit-field. | |
9360 | ||
9361 | * xfaces.c (init_frame_faces): Allocate face cache. | |
9362 | (free_frame_faces): Free face cache. | |
9363 | (recompute_basic_faces): Realize basic faces only if face cache is | |
9364 | allocated, i.e. after init_frame_faces has been called. | |
9365 | ||
9366 | * frame.c (make_frame): Initialze face cache with null. | |
9367 | ||
9368 | * xfaces.c (same_size_fonts): Removed. | |
9369 | ||
9370 | * xterm.c (x_set_glyph_string_gc): Add post-condition | |
9371 | s->gc != 0. | |
9372 | (x_set_mouse_face_gc): Ditto. | |
9373 | (x_set_mode_line_face_gc): Ditto. | |
9374 | ||
9375 | * xfaces.c (realize_default_face): Return int. Value is | |
9376 | zero if frame params don't contain enough information to | |
9377 | realize the default face. | |
9378 | (realize_basic_faces): Ditto. | |
9379 | (init_frame_faces): Realize basic faces. | |
9380 | ||
9381 | * xfns.c (x_set_font): First store real font name in frame | |
9382 | parameters, then call recompute_basic_faces. | |
9383 | ||
9384 | * xfaces.c (recompute_basic_faces): Call realize_basic_faces. | |
9385 | ||
9386 | 1998-04-16 Gerd Moellmann <gerd@gnu.org> | |
9387 | ||
9388 | * xfaces.c (syms_of_xfaces): Correct calls to defsubr. | |
9389 | ||
9390 | * xfns.c (Fx_face_fixed_p): Removed. | |
9391 | (Fx_list_fonts): Moved to xfaces.c. | |
9392 | ||
9393 | * xfaces.c (compute_face_at_buffer_pos): Renamed to | |
9394 | face_at_buffer_position. Parameter charset removed; always | |
9395 | compute face for CHARSET_ASCII. | |
9396 | (face_at_string_position): Renamed from | |
9397 | compute_face_at_string_pos. Parameter charset removed; always | |
9398 | compute for CHARSET_ASCII. | |
9399 | (lookup_face_for_charset): Take frame parameter instead of | |
9400 | face_cache. | |
9401 | (lookup_face): Ditto. | |
9402 | (compute_char_face): Renamed from compute_glyph_face. | |
9403 | ||
9404 | * xdisp.c (init_iterator): Initialize charset member. | |
9405 | (reseat_iterator_to_string): Ditto. | |
9406 | (get_charset_at_buffer_position): Determine charset at | |
9407 | buffer position in current_buffer. | |
9408 | (reseat_iterator): Call above function. | |
9409 | (compute_face_at_iterator_position): Call | |
9410 | compute_face_at_buffer_pos. | |
9411 | (compute_face_at_iterator_string_position): Call | |
9412 | compute_face_at_string_pos. | |
9413 | (get_face_from_id): Removed. | |
9414 | (get_face_from_cursor_pos): Call compute_face_at_buffer_pos. | |
9415 | Call get_charset_at_buffer_position. | |
9416 | (reseat_iterator): Determine face if charset at pos differs | |
9417 | from iterator's charset. | |
9418 | (reseat_iterator_to_glyph_pos): Removed. | |
9419 | ||
9420 | * xfaces.c (compute_face_at_bufpos): Remove parameter charset. | |
9421 | Determine charset from buffer position. | |
9422 | (compute_string_char_face): Renamed to compute_face_at_string_pos. | |
9423 | (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos. | |
9424 | ||
9425 | * dispextern.h (struct display_iterator): Add member charset. | |
9426 | ||
9427 | 1998-04-15 Gerd Moellmann <gerd@gnu.org> | |
9428 | ||
9429 | * xfaces.c (compute_char_face): Removed. | |
9430 | ||
9431 | * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face | |
9432 | with new parameter list. | |
9433 | ||
9434 | * xfaces.c (region_face): Removed. | |
9435 | (allocate_face): Removed. | |
9436 | (copy_face): Ditto. | |
9437 | (face_eql): Removed. | |
9438 | (intern_face): Removed. | |
9439 | (clear_face_cache): Removed. | |
9440 | (load_font): Ditto. | |
9441 | (unload_font): Ditto. | |
9442 | (load_color): Ditto. | |
9443 | (unload_color): Ditto. | |
9444 | (new_computed_face): Ditto. | |
9445 | (intern_computed_face): Ditto. | |
9446 | (ensure_face_ready): Ditto. | |
9447 | (merge_faces): Ditto. | |
9448 | (compute_base_face): Ditto. | |
9449 | (merge_face_list): Ditto. | |
9450 | (Fmake_face_internal): Removed. | |
9451 | (Fset_face_attribute_internal): Ditto. | |
9452 | (face_name_id_number): Removed. | |
9453 | (Fframe_face_alist): Ditto. | |
9454 | (Fset_frame_face_alist): Ditto. | |
9455 | (Finternal_next_face_id): Ditto. | |
9456 | ||
9457 | * xterm.h (struct x_output): Remove computed_faces, and | |
9458 | param_faces. Remove macros accessing them. | |
9459 | ||
9460 | * xfaces.c: Entirely new face implementation added. | |
9461 | ||
9462 | 1998-04-11 Gerd Moellmann <gerd@gnu.org> | |
9463 | ||
9464 | * dispextern.h (struct glyph_pos): Member `bufpos' renamed | |
9465 | `charpos'. | |
9466 | ||
9467 | 1998-04-10 Gerd Moellmann <gerd@gnu.org> | |
9468 | ||
9469 | * xterm.c (x_scroll_bar_move): Clear only regions not covered by | |
9470 | scroll bar window to reduce flickering. Clear entire height. | |
9471 | ||
9472 | * xdisp.c (move_iterator_vertically_backward): Set iterator's | |
9473 | current_x and hpos to zero after moving to previous line | |
9474 | start. | |
9475 | ||
9476 | 1998-04-03 Gerd Moellmann <gerd@gnu.org> | |
9477 | ||
9478 | * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache. | |
9479 | ||
9480 | * xfaces.c (xlfd_point_size): Compute relative point size of | |
9481 | fonts from font and frame resolution. | |
9482 | (sort_fonts): New function to sort fonts, temporarily setting | |
9483 | font_frame to the frame in effect. | |
9484 | (xlfd_point_size): Take additional frame parameter to be able | |
9485 | to get at the display's resolution. | |
9486 | ||
9487 | * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and | |
9488 | BLACK_PIX_DEFAULT. | |
9489 | (x_setup_relief_color): Use FRAME_X_SCREEN instead of default | |
9490 | screen of display. | |
9491 | ||
9492 | 1998-03-31 Gerd Moellmann <gerd@gnu.org> | |
9493 | ||
9494 | * xfaces.c (choose_face_fontset): Instantiate fontsets. | |
9495 | ||
9496 | * fontset.h: Add external declarations for Vfontset_alias_alist | |
9497 | and Vglobal_fontset_alist. | |
9498 | ||
9499 | * xfaces.c (merge_lisp_face_vector_with_property): Simplified. | |
9500 | (realize_default_face): If frame parameters contain an artificial | |
9501 | font name naming a fontset, set the family of the default face to | |
9502 | the fontset name given by the registry. | |
9503 | ||
9504 | * Makefile.in (alloc.o): Add dependency to dispextern.h. | |
9505 | ||
9506 | 1998-03-22 Gerd Moellmann <gerd@gnu.org> | |
9507 | ||
9508 | * alloc.c (mark_object): Add function prototype. Add cast to | |
9509 | Lisp_Object pointer in call to mark_object for symbol names | |
9510 | because this otherwise gives a warning from gcc 2.8.1. | |
9511 | (mark_face_cache): Mark Lisp objects in realized faces. | |
9512 | ||
9513 | 1998-03-19 Gerd Moellmann <gerd@gnu.org> | |
9514 | ||
9515 | * frame.h (struct frame): Add member face_cache. | |
9516 | ||
9517 | * alloc.c (mark_object): Mark face cache. | |
9518 | (mark_face_cache): Mark Lisp faces in face cache of frame. | |
9519 | ||
9520 | * frame.c (make_frame): Initialize face_cache. | |
9521 | (Fdelete_frame): Free it. | |
9522 | ||
9523 | 1998-03-18 Gerd Moellmann <gerd@gnu.org> | |
9524 | ||
9525 | * xfaces.c: Very first skeleton of functions for face realization, | |
9526 | face merging, face cache etc. | |
9527 | ||
9528 | * dispextern.h (struct rface): Realized faces. Will replace | |
9529 | struct face when tested. | |
9530 | (struct face_cache): Realized face caches. | |
9531 | ||
9532 | * xdisp.c (init_iterator): Initialize area member of display | |
9533 | iterator. | |
9534 | ||
9535 | 1998-03-17 Gerd Moellmann <gerd@gnu.org> | |
9536 | ||
9537 | * xterm.c (x_append_glyph): Use it->area to store glyphs. | |
9538 | ||
9539 | * dispextern.h (struct display_iterator): New member area. | |
9540 | ||
9541 | * xterm.c (note_overwritten_text_cursor): Note when the text | |
9542 | cursor of a window is overwritten. | |
9543 | ||
9544 | * xdisp.c (set_cursor_from_row): If PT is not found in the | |
9545 | row, display the cursor at the start of the row. | |
9546 | ||
9547 | * dispnew.c (direct_output_forward_char): Call | |
9548 | set_cursor_from_row. | |
9549 | ||
9550 | * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If | |
9551 | position is not in an overlay string, set iterator's position and | |
9552 | method explicitly so. | |
9553 | (set_cursor_from_row): Correct cursor position calculation. | |
9554 | Make it externally visible. | |
9555 | (redisplay_window): Call set_cursor_from_row so that there is only | |
9556 | one place where the cursor position is calculated from a current | |
9557 | row. | |
9558 | ||
9559 | * dispextern.h (struct display_iterator): New member | |
9560 | overlay_strings_at_end_processed_p. | |
9561 | ||
9562 | * xdisp.c (check_iterator): Perform sanity checks on | |
9563 | display_iterators. | |
9564 | (next_element_from_buffer): Check for overlay strings at ZV. | |
9565 | ||
9566 | 1998-03-16 Gerd Moellmann <gerd@gnu.org> | |
9567 | ||
9568 | * buffer.c (init_buffer_once): Add left_margin_width and | |
9569 | right_margin_width to buffer_local_flags. | |
9570 | ||
9571 | * dispnew.c (margin_glyphs_to_reserve): Function computing | |
9572 | number of glyphs to reserve for a marginal area. | |
9573 | (adjust_glyph_matrix): Call it. | |
9574 | (adjust_frame_glyphs_for_frame_redisplay): Return if frame | |
9575 | is not alive. | |
9576 | ||
9577 | * window.c (Fset_window_margins): Allow floats. | |
9578 | ||
9579 | * buffer.c (syms_of_buffer): Add buffer-local variables | |
9580 | left-margin-width and right-margin-width. Add defaults | |
9581 | default-left-margin-width and default-right-margin-width. | |
9582 | ||
9583 | * buffer.h (struct buffer): New members left_margin_width | |
9584 | and right_margin_width. | |
9585 | ||
9586 | * window.c (Fset_window_margins): Make window the last and | |
9587 | optional argument. | |
9588 | ||
9589 | * xterm.c (x_draw_glyphs): Compute x-positions for rows with | |
9590 | flag no_marginal_areas_p differently. | |
9591 | (x_clear_end_of_line): Ditto. | |
9592 | (x_draw_glyph_string_relief): Compute width of relief differently | |
9593 | for rows with flag no_marginal_areas_p. | |
9594 | ||
9595 | * dispnew.c (update_window_line): Update marginal areas only | |
9596 | for rows that don't have no_marginal_areas_p set. | |
9597 | ||
9598 | * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p. | |
9599 | (display_menu_bar): Ditto. | |
9600 | ||
9601 | * dispextern.h (struct glyph_row): New member no_marginal_areas_p. | |
9602 | ||
9603 | * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for | |
9604 | marginal areas in window-based redisplay. | |
9605 | ||
9606 | * dispextern.h (struct glyph_matrix): New members | |
9607 | left_margin_glyphs and right_margin_glyphs. | |
9608 | ||
9609 | 1998-03-15 Gerd Moellmann <gerd@gnu.org> | |
9610 | ||
9611 | * minibuf.c (read_minibuf_unwind): Return Lisp_Object. | |
9612 | ||
9613 | * charset.c (non_ascii_char_to_string): Use char type parameters | |
9614 | because the function is used that way from outside. Use unsigned | |
9615 | char internally. | |
9616 | ||
9617 | * window.c (change_window_height): Return void. | |
9618 | (make_dummy_parent): Return void. | |
9619 | (init_window_once): Return void. | |
9620 | (syms_of_window): Ditto. | |
9621 | (keys_of_window): Ditto. | |
9622 | (delete_window): Correct return with and without value. | |
9623 | ||
9624 | * buffer.c (record_buffer): Return void. | |
9625 | ||
9626 | * marker.c (unchain_marker): Return void. | |
9627 | ||
9628 | * window.c (unshow_buffer): Return void. | |
9629 | (replace_window): Ditto. | |
9630 | (delete_window): Ditto. | |
9631 | ||
9632 | * term.c (delete_glyphs_hook): Void return type. | |
9633 | (ring_bell_hook): Ditto. | |
9634 | (set_terminal_window_hook): Ditto. | |
9635 | ||
9636 | * sysdep.c (init_sigio): Return void. | |
9637 | ||
9638 | * xterm.c (x_set_window_size): Return void. | |
9639 | (x_calc_absolute_position): Ditto. | |
9640 | (x_set_offset): Ditto. | |
9641 | (x_focus_on_frame): Ditto. | |
9642 | (x_unfocus_frame): Ditto. | |
9643 | (x_make_frame_visible): Ditto. | |
9644 | (x_make_frame_invisible): Ditto. | |
9645 | (x_iconify_frame): Ditto. | |
9646 | (x_destroy_window): Ditto. | |
9647 | (x_wm_set_window_state): Ditto. | |
9648 | (x_wm_set_icon_pixmap): Ditto. | |
9649 | (x_wm_set_icon_position): Ditto. | |
9650 | (x_initialize): Ditto. | |
9651 | (x_error_quitter): Ditto. | |
9652 | (x_destroy_window): Use xfree instead of free. | |
9653 | ||
9654 | * keyboard.c (clear_waiting_for_input): Return void. | |
9655 | ||
9656 | * xterm.c (x_wm_set_size_hint): Return void. | |
9657 | (x_raise_frame): Ditto. | |
9658 | (refreshicon): Ditto. | |
9659 | (x_error_catcher): Ditto. | |
9660 | (x_clear_errors): Ditto. | |
9661 | ||
9662 | * keyboard.c (record_asynch_buffer_change): Return void. | |
9663 | ||
9664 |