Commit | Line | Data |
---|---|---|
3578db3c KR |
1 | 2000-04-01 Ken Raeburn <raeburn@gnu.org> |
2 | ||
3 | * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues | |
4 | with int lvalues via casts; instead, just yield lisp object | |
5 | lvalues. | |
6 | (enlarge_window): Variable sizep now points to Lisp_Object. Use | |
7 | proper accessor macros. | |
8 | (shrink_window_lowest_first): w->top is Lisp_Object; use XINT. | |
9 | (grow_mini_window): Fix typo getting int value of root->height. | |
10 | ||
6e7b2457 GM |
11 | 2000-04-01 Gerd Moellmann <gerd@gnu.org> |
12 | ||
610d841e GM |
13 | * xfaces.c (realize_basic_faces): Block input while realizing |
14 | the faces. | |
15 | ||
6e7b2457 GM |
16 | * keyboard.c (lispy_mouse_names): Add additional mouse names. |
17 | ||
18 | * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15. | |
19 | ||
aa110c0c GM |
20 | 2000-03-31 Gerd Moellmann <gerd@gnu.org> |
21 | ||
22 | * xterm.c (x_produce_glyphs): When displaying unibyte text | |
610d841e | 23 | or ASCII, handle case that per-char metric is null. |
aa110c0c | 24 | |
8801a864 KR |
25 | 2000-03-30 Ken Raeburn <raeburn@gnu.org> |
26 | ||
c6129d7e KR |
27 | * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef. |
28 | ||
8801a864 KR |
29 | * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW, |
30 | XSUBR, XBUFFER): Verify correct object type before returning | |
31 | pointer, using eassert. | |
32 | * frame.h (XFRAME): Likewise. | |
33 | ||
34 | * buffer.c (Frename_buffer, Fset_buffer_multibyte, | |
35 | swap_out_buffer_local_variables, Fmove_overlay): Don't apply | |
36 | XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong | |
37 | type. | |
38 | * data.c (set_internal): Likewise. | |
39 | * dispextern.h (WINDOW_WANTS_MODELINE_P, | |
40 | WINDOW_WANTS_HEADER_LINE_P): Likewise. | |
41 | * fileio.c (auto_save_1): Likewise. | |
42 | * insdel.c (check_markers): Likewise. | |
43 | * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise. | |
44 | * undo.c (record_insert): Likewise. | |
45 | * vmsproc.c (child_sig): Likewise. | |
46 | * window.c (unshow_buffer, window_loop): Likewise. | |
47 | * xterm.c (x_erase_phys_cursor): Likewise. | |
48 | ||
8e7af858 GM |
49 | 2000-03-30 Gerd Moellmann <gerd@gnu.org> |
50 | ||
51 | * xfns.c (free_image_cache): Free the cache structure itself | |
52 | last, after all its members have been freed. | |
53 | ||
54 | * lisp.h (xstrdup): Add prototype. | |
55 | ||
56 | * alloc.c (xstrdup): Moved here from xfaces.c. | |
57 | (allocating_for_lisp): Variable removed. | |
58 | (lisp_malloc): Block input around the calls to malloc and | |
59 | mem_insert. | |
60 | ||
61 | * xfaces.c (realize_tty_face): Use find_symbol_value instead | |
62 | of Fsymbol_value. | |
63 | (xstrdup): Moved to alloc.c. | |
64 | ||
e0b8c689 KR |
65 | 2000-03-29 Ken Raeburn <raeburn@gnu.org> |
66 | ||
b96f9fb7 KR |
67 | * scroll.c (CHECK_BOUNDS): Renamed from CHECK. |
68 | ||
69 | * emacs.c (main): Fix sense of no-loadup test. | |
70 | ||
e0b8c689 KR |
71 | * config.in (ENABLE_CHECKING): Undef. |
72 | ||
73 | * lisp.h (struct interval): Replace "parent" field with a union of | |
74 | interval pointer and Lisp_Object; add new bitfield to use as | |
75 | discriminant. Change other flag fields to bitfields. | |
76 | (CHECK): New macro for consistency checking. If ENABLE_CHECKING | |
77 | is defined and the supplied test fails, print a message and | |
78 | abort. | |
79 | (eassert): New macro. Use CHECK to provide an assert-like | |
80 | facility. | |
81 | ||
82 | * intervals.h (NULL_INTERVAL_P): Now applies only to real interval | |
83 | pointers; abort if the value looks like a lisp object. | |
84 | (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT, | |
85 | SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT): | |
86 | Modify for new interval parent definition. | |
87 | ||
88 | * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE, | |
89 | UNMARK_BALANCE_INTERVALS): Update references that need an | |
90 | addressable lisp object in the interval structure. | |
91 | (die): New function. | |
92 | (suppress_checking): New variable. | |
93 | ||
94 | * intervals.c (interval_start_pos): Just return 0 if there's no | |
95 | parent object. | |
96 | ||
f83c5440 GM |
97 | 2000-03-29 Gerd Moellmann <gerd@gnu.org> |
98 | ||
99 | * lread.c (read1): Accept `.' (period) as symbol start like in CL | |
100 | and earlier Emacs versions. | |
101 | ||
102 | * keyboard.c (Ftop_level): Cancel busy-cursor. | |
103 | ||
104 | * eval.c (call_debugger): Cancel busy-cursor. | |
105 | ||
fdce64ff KH |
106 | 2000-03-29 Kenichi Handa <handa@etl.go.jp> |
107 | ||
108 | * search.c (Freplace_match): Adjust multibyteness of the current | |
109 | buffer and NEWTEXT. Free allocated memory before signaling an | |
110 | error. | |
111 | ||
f6a3f532 SM |
112 | 2000-03-28 Stefan Monnier <monnier@cs.yale.edu> |
113 | ||
114 | * regex.c (analyse_first): New function obtained by ripping out most | |
115 | of re_compile_fastmap and generalizing it a little bit so that it | |
116 | can also just return whether a given (sub)pattern can match the empty | |
117 | string or not. | |
118 | (regex_compile): Use `analyse_first' to decide whether the loop-check | |
119 | needs to be done or not for *, +, *? and +? (the loop check is costly | |
120 | for non-greedy repetition). | |
121 | (re_compile_fastmap): Delegate the actual work to `analyse_first'. | |
122 | ||
e9b309ac DL |
123 | 2000-03-28 Dave Love <fx@gnu.org> |
124 | ||
bb15bd9a DL |
125 | * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, |
126 | alpha. | |
127 | ||
e9b309ac DL |
128 | * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__. |
129 | ||
ed0767d8 SM |
130 | 2000-03-27 Stefan Monnier <monnier@cs.yale.edu> |
131 | ||
132 | * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as | |
133 | an expression. | |
134 | (enum re_opcode_t): Update description of succeed_n. | |
135 | (PATFETCH): Always define. | |
136 | (regex_compile): Use lookahead rather than PATUNFETCH (for repetition | |
137 | operators, char classes, shy-groups and intervals). | |
138 | Optimize special cases of intervals so as to only use succeed_n and | |
139 | jump_n when really needed. | |
140 | (re_compile_fastmap): Simplify handling of jump_n and succeed_n now | |
141 | that we don't have to handle the special cases any more. | |
142 | Simplify on_failure_jump handling as well. | |
143 | ||
e11e7e46 JR |
144 | 2000-03-28 Jason Rumney <jasonr@gnu.org> |
145 | ||
146 | * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT. | |
147 | ||
88faab89 GM |
148 | 2000-03-27 Gerd Moellmann <gerd@gnu.org> |
149 | ||
182ff242 GM |
150 | * s/freebsd.h (GC_SETJMP_WORKS): Define. |
151 | ||
152 | * s/msdos.h (GC_SETJMP_WORKS): Define. | |
153 | ||
154 | * alloc.c (mark_maybe_object): New function. | |
155 | (mark_memory): Use it. | |
156 | (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros. | |
157 | (setjmp_tested_p, longjmp_done): New variables. | |
158 | (test_setjmp): New function. | |
159 | (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp. | |
160 | (init_alloc): Initialize setjmp_tested_p and longjmp_done. | |
161 | ||
c1005d06 GM |
162 | * xdisp.c (face_before_or_after_it_pos): Pass multibyteness |
163 | to DEC_TEXT_POS and INC_TEXT_POS. | |
164 | ||
165 | * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS | |
166 | with parameter MULTIBYTE_P. | |
167 | ||
168 | * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter | |
169 | MULTIBYTE_P. | |
170 | ||
7439e5b9 | 171 | * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte |
182ff242 GM |
172 | buffers because it looks for multibyte character byte sequences |
173 | which don't exist in unibyte text. | |
7439e5b9 | 174 | |
d9c545da GM |
175 | * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes. |
176 | ||
11fd416e | 177 | * xfaces.c (register_color, unregister_color, unregister_colors) |
d9c545da GM |
178 | [DEBUG_X_COLORS]: New functions. |
179 | (x_free_colors) [DEBUG_X_COLORS]: Unregister colors. | |
180 | ||
181 | * xfns.c (x_set_cursor_color): Get color reference counts right. | |
182 | ||
183 | * xterm.c (x_copy_color): New function. | |
184 | (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color. | |
185 | ||
186 | * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS. | |
187 | (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET. | |
188 | (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX. | |
189 | (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P. | |
190 | (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P. | |
191 | (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX. | |
192 | (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE. | |
193 | (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE. | |
194 | (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL. | |
195 | (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE. | |
196 | ||
11fd416e GM |
197 | * category.c, data.c, syntax.c, print.c, lread.c: Use new macro |
198 | names for handling per-buffer variables. | |
d9c545da GM |
199 | |
200 | * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS | |
201 | instead of MAX_BUFFER_LOCAL_VARS. | |
202 | (last_per_buffer_idx): Renamed from max_buffer_local_idx. | |
203 | ||
204 | * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P. | |
205 | ||
88faab89 GM |
206 | * xfns.c (x_specified_cursor_type): New function. |
207 | (x_set_cursor_type): Use it. | |
208 | ||
209 | * buffer.h (struct buffer): Add cursor_type. | |
210 | ||
d80f42b7 SM |
211 | 2000-03-26 Stefan Monnier <monnier@cs.yale.edu> |
212 | ||
213 | * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop. | |
88faab89 GM |
214 | (print_partial_compiled_pattern, re_compile_fastmap): Handle new |
215 | opcode. | |
d80f42b7 SM |
216 | (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops. |
217 | (re_match_2_internal): Add code for on_failure_jump_nastyloop when | |
218 | executing it as well as when popping it off the stack to find infinite | |
219 | loops in non-greedy repetition operators. | |
220 | ||
89e80928 GM |
221 | 2000-03-26 Gerd Moellmann <gerd@gnu.org> |
222 | ||
3d4ff2dd GM |
223 | * doc.c (Qfunction_documentation): New variable. |
224 | (syms_of_doc): Initialize Qfunction_documentation. | |
225 | (Fdocumentation): If FUNCTION is a symbol with non-nil | |
226 | `function-documentation' property, return a documentation derived | |
227 | from that. | |
228 | ||
bd96bd79 GM |
229 | * buffer.c (syms_of_buffer): Add default-cursor-type. |
230 | (init_buffer_once): Don't let cursor_type have a local value | |
231 | in every buffer. | |
232 | ||
19d1bc27 GM |
233 | * xterm.c (x_display_and_set_cursor): Choose cursor depending |
234 | on buffer-local value of cursor_type. | |
235 | (x_draw_bar_cursor): Add parameter WIDTH. | |
236 | ||
237 | * buffer.c (reset_buffer): Initialize buffer's cursor_type. | |
238 | (init_buffer_once): Set default cursor_type value to t. | |
239 | Mark cursor_type as local everywhere. | |
240 | (syms_of_buffer): New per-buffer variable cursor-type. | |
241 | ||
89e80928 GM |
242 | * buffer.h (struct buffer): Remove member local_var_flags, |
243 | add local_flags. | |
244 | (MAX_BUFFER_LOCAL_VARS): New macro. | |
245 | (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX) | |
246 | (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P) | |
247 | (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE) | |
248 | (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros. | |
249 | ||
250 | * print.c (print_object): Use new macros for per-buffer | |
251 | variables. | |
252 | ||
253 | * category.c (Fset_category_table): Use new macros for per-buffer | |
254 | variables. | |
255 | ||
256 | * buffer.c (buffer_permanent_local_flags): Make a char array. | |
257 | (max_buffer_local_idx): New variable. | |
258 | (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten | |
259 | for new handling of per-buffer variables. | |
260 | (buffer_slot_type_mismatch): Use new macros for per-buffer vars. | |
261 | (init_buffer_once): Initialize per-buffer vars differently. | |
262 | Set max_buffer_local_idx. | |
263 | ||
264 | * syntax.c (Fset_syntax_table): Use new macros for per-buffer | |
265 | variables. | |
266 | ||
267 | * lread.c (defvar_per_buffer): Use new macros for per-buffer | |
268 | variables. | |
269 | ||
270 | * data.c (do_symval_forwarding, store_symval_forwarding) | |
271 | (find_symbol_value, set_internal, default_value, Fset_default) | |
272 | (Fkill_local_variable, Flocal_variable_p): Use new macros for | |
273 | per-buffer variables. | |
274 | ||
275 | * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'. | |
276 | ||
9a0dd3dc GM |
277 | 2000-03-24 Gerd Moellmann <gerd@gnu.org> |
278 | ||
b68c375f GM |
279 | * xterm.c (x_term_init): Unblock input around call1 of |
280 | Qvendor_specific_keysyms. | |
281 | ||
9a0dd3dc GM |
282 | * syntax.c (open_paren_in_column_0_is_defun_start): New variable. |
283 | (find_defun_start): Consider an open parenthesis in column 0 | |
284 | a defun start only if open_paren_in_column_0_is_defun_start is set. | |
285 | (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start. | |
286 | ||
7973e637 SM |
287 | 2000-03-24 Stefan Monnier <monnier@cs.yale.edu> |
288 | ||
289 | * eval.c (Fautoload): Add entry in load-history (if after dump). | |
290 | * lread.c (load-history): Update docstring. | |
291 | ||
39210e90 GM |
292 | 2000-03-24 Gerd Moellmann <gerd@gnu.org> |
293 | ||
294 | * indent.c (Fvertical_motion): Always use the current buffer. | |
295 | Temporarily change the window's buffer, if necessary. | |
296 | ||
72db3ab5 GM |
297 | 2000-03-23 Gerd Moellmann <gerd@gnu.org> |
298 | ||
299 | * xterm.c (fast_find_position): Make sure not to consider rows | |
300 | not visible in the window. | |
301 | ||
990b2375 SM |
302 | 2000-03-22 Stefan Monnier <monnier@cs.yale.edu> |
303 | ||
304 | * regex.c (enum syntaxcode): Provide default for non-Emacs. | |
305 | (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix. | |
306 | ||
ff4df011 JR |
307 | 2000-03-22 Jason Rumney <jasonr@gnu.org> |
308 | ||
309 | * w32menu.c (single_submenu): Set help string to NULL if none. | |
310 | (w32_menu_show): Set help string correctly. | |
311 | (add-menu-item): Set help string in MIIM_DATA for menu item. | |
312 | Load SetMenuItemInfoA explicitly. | |
313 | (w32_menu_display_help): New function. | |
314 | ||
315 | * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message. | |
316 | (QCdata): Moved to xdisp.c. | |
317 | ||
318 | * w32term.c (w32_read_socket): Handle WM_MENUSELECT message. | |
319 | (Vw32_charset_to_codepage_alist): Removed. | |
320 | (Vw32_charset_info_alist): New variable. | |
321 | (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312, | |
322 | chinesebig5, oem, easteurope, turkish, baltic, russian, arabic, | |
323 | greek, hebrew, thai, johab, mac, unicode]): New symbols. | |
324 | (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace | |
325 | with TODO comment. | |
326 | (w32_codepage_for_font): Use Vw32_charset_info_alist. | |
327 | (syms_of_w32term): Remove Vw32_charset_to_codepage_alist. | |
328 | Define Vw32_charset_info_alist and w32_charset symbols. | |
329 | ||
330 | 2000-03-22 Jason Rumney <jasonr@gnu.org> | |
331 | ||
332 | * makefile.nt (w32bdf.obj): Update dependencies. | |
333 | ||
334 | * w32bdf.c: Include frame.h and dispextern.h before fontset.h. | |
335 | ||
336 | * w32fns.c: Include fontset.h after dispextern.h. | |
337 | (Fx_create_frame): Do not create fontset. | |
338 | (w32_load_system_font): Doc fix. | |
339 | (Fx_close_connection): Free full_name if it is not shared. | |
340 | ||
341 | * w32term.c: Include fontset.h after dispextern.h. | |
342 | (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers | |
343 | updated. | |
344 | (w32_per_char_metric): If PCM is invalid, delete and return NULL. | |
345 | (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id. | |
346 | (w32_font_is_double_byte): New function, needs body. | |
347 | (x_append_glyph): Set glyph->glyph_not_available_p. | |
348 | (x_produce_glyphs): Set it->glyph_not_available_p. Don't set | |
349 | it->charset. If it->multibyte_p is zero and it->c is a multibyte | |
350 | character, convert it to a unibyte character. | |
351 | (struct glyph_string): Delete member `charset'. | |
352 | (W32_TEXTOUT): Temporarily remove charset_dim until another way of | |
353 | calculating it is found. | |
354 | (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle | |
355 | the case that per char metric is not available correctly. | |
356 | (x_fill_glyph_string): Handle the case that the specific glyph is | |
357 | not available correctly. | |
358 | (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset. | |
359 | (BUILD_COMPOSITE_GLYPH_STRING): Likewise. | |
360 | (x_new_font): Call FS_LOAD_FONT, not fs_load_font. | |
361 | (x_new_fontset): Call fontset_ascii to get ASCII font name of the | |
362 | fontset. Don't call FS_LOAD_FONT. | |
363 | ||
439d5cb4 KR |
364 | 2000-03-22 Ken Raeburn <raeburn@gnu.org> |
365 | ||
366 | * intervals.h (NULL_INTERVAL): Cast to INTERVAL type. | |
367 | (INT_LISPLIKE): New macro. | |
368 | (NULL_INTERVAL_P): Use it. | |
369 | (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT, | |
370 | SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT, | |
371 | GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros. | |
372 | ||
373 | * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all | |
374 | explicit references to "parent" field of struct interval and | |
375 | associated unclean type conversions. | |
376 | * intervals.c (create_root_interval, root_interval, rotate_right, | |
377 | rotate_left, balance_possible_root_interval, split_interval_right, | |
378 | split_interval_left, interval_start_pos, find_interval, | |
379 | next_interval, previous_interval, update_interval, | |
380 | adjust_intervals_for_insertion, delete_node, delete_interval, | |
381 | adjust_intervals_for_deletion, merge_interval_right, | |
382 | merge_interval_left, reproduce_tree, graft_intervals_into_buffer, | |
383 | copy_intervals_to_string): Likewise. | |
384 | * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL): | |
385 | Likewise. | |
386 | * syntax.c (update_syntax_table): Likewise. | |
387 | ||
388 | * intervals.c (reproduce_tree_obj): New function, like | |
389 | reproduce_tree but takes a Lisp_Object for the parent. Declare | |
390 | with prototype. | |
391 | (graft_intervals_into_buffer): Use it when appropriate. | |
392 | (reproduce_tree): Declare with prototype. | |
393 | (balance_possible_root_interval): Check that the parent is a lisp | |
394 | object before trying to examine its type. | |
395 | ||
ee1c5b21 GM |
396 | 2000-03-22 Gerd Moellmann <gerd@gnu.org> |
397 | ||
398 | * xfaces.c (lface_same_font_attributes_p): Compare font attributes | |
399 | as strings only if both are known to be strings. | |
400 | ||
401 | * s/openbsd.h (LIBS_TERMCAP): Undef. | |
402 | ||
1fb352e0 SM |
403 | 2000-03-21 Stefan Monnier <monnier@cs.yale.edu> |
404 | ||
405 | * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default | |
406 | definitions for non-Emacs compilation. | |
407 | (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec | |
408 | outside of `#ifdef emacs'. | |
409 | (print_partial_compiled_pattern): Update. | |
410 | (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar. | |
411 | (re_compile_fastmap): Merge handling of charset and charset_not (for | |
412 | emacs and non-emacs compilation as well). | |
413 | Similarly for (not)categoryspec and (not)syntaxspec. | |
414 | Don't use the fastmap when reaching `anychar' since the added | |
415 | complexity is not justified. | |
416 | (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs) | |
417 | and (not)syntaxspec. Merge (not)categoryspec. | |
418 | ||
fdaa1f77 KH |
419 | 2000-03-22 Kenichi Handa <handa@etl.go.jp> |
420 | ||
ff1a0d8e KH |
421 | * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P, |
422 | FACE_FOR_CHAR): Define them differently for the configuration of | |
423 | --without-x. | |
fdaa1f77 | 424 | |
d152fb46 DL |
425 | 2000-03-21 Dave Love <fx@gnu.org> |
426 | ||
427 | * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in | |
428 | doc string. | |
429 | ||
d2cafc8c GM |
430 | 2000-03-21 Gerd Moellmann <gerd@gnu.org> |
431 | ||
432 | * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error. | |
433 | (lface_fully_specified_p): Don't check contents of | |
434 | LFACE_FONT_INDEX because that attribute is optional. | |
435 | (realize_x_face): Remove now unwarranted xassert. | |
436 | ||
9111d4b5 KH |
437 | 2000-03-21 Kenichi HANDA <handa@etl.go.jp> |
438 | ||
439 | The following changes are to make font selection based on | |
440 | characters, not charset. In addition, they recover fontset | |
441 | facilities while utilizing the new font selection mechanism. | |
442 | ||
6c4bfdc0 KH |
443 | * Makefile.in (fontset.o): Depend on dispextern.h. |
444 | ||
445 | * alloc.c (mark_face_cache): Don't mark face->registry. | |
446 | ||
9111d4b5 KH |
447 | * dispextern.h (struct glyph): New member glyph_not_available_p. |
448 | Use 22 bits for face_id. | |
449 | (enum lface_attribute_index): Add LFACE_FONT_INDEX. | |
450 | (struct face): Delete member registry, new member ascii_face. | |
451 | (FACE_SUITABLE_FOR_CHAR_P): Renamed from | |
452 | FACE_SUITABLE_FOR_CHARSET_P. Caller changed. | |
453 | (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed. | |
454 | (struct it): Delete member charset, new member | |
455 | glyph_not_available_p. | |
456 | ||
457 | * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed. | |
458 | (struct fontset_info, struct fontset_data): Structs removed. | |
459 | (allloc_fontset_data, free_fontset_data, fs_regiser_fontset, | |
460 | Vglobale_fontset_alist, font_idx_temp): Externs removed. | |
461 | (fs_load_font, fs_query_fontset): Adjusted for new argument. | |
462 | (fs_free_face_fontset, fontset_font_pattern, | |
463 | face_suitable_for_char_p, face_for_char, | |
464 | make_fontset_for_ascii_face): Extern them. | |
465 | (FS_LOAD_FONT): Adjusted for the change of fontset implementation. | |
466 | (FS_LOAD_FACE_FONT): New macro. | |
467 | ||
468 | * fontset.c: All codes rewritten or adjusted for the change of | |
469 | fontset implementation. Now fontset is represented by char table. | |
470 | (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables | |
471 | removed. | |
472 | (my_strcasecmp): Function removed. | |
473 | (Vfontset_table, next_fontset_id, Vdefault_fontset): New | |
474 | variables. | |
475 | (AREF, ASIZE): New macros. | |
476 | (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME, | |
477 | FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF, | |
478 | FONTSET_REF_VIA_BASE, FONTSET_SET): New macros. | |
479 | (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset, | |
480 | fontset_id_valid_p, font_family_registry, fontset_name, | |
481 | fontset_ascii, free_face_fontset, face_suitable_for_char_p, | |
482 | face_for_char, make_fontset_for_ascii_face, fontset_font_pattern): | |
483 | New functions. | |
484 | (fs_load_font): New arg FACE. Caller changed. | |
485 | (fs_query_fontset): Argument changed. Caller changed. | |
486 | (Fquery_fontset): call fs_query_fontset. | |
487 | (fs_register_fontset, alloc_fontset_data, free_fontset_data): | |
488 | Functions removed. | |
489 | (clear_fontset_elements, check_registry_encoding, | |
490 | check_fontset_name): New functions. | |
491 | (syms_of_fontset): Set char-table-extra-slots property of fontset | |
492 | to 3. Staticpro and initialize Vfontset_table and | |
493 | Vdefault_fontset. Defsubr fontset_font and fontset_list. | |
494 | ||
495 | * frame.h (struct frame): Member `fontset_data' removed. | |
496 | (FRAME_FONTSET_DATA): Macro removed. | |
497 | ||
498 | * frame.c (make_frame): Don't allocate f->fontset_data. | |
499 | (Fdelete_frame): Don't free f->fontset_data. | |
500 | ||
6c4bfdc0 KH |
501 | * msdos.c (XMenuActivate): Args to lookup_derived_face changed. |
502 | ||
9111d4b5 KH |
503 | * xdisp.c (charset_at_position): Function removed. |
504 | (init_iterator): Don't set member charset of struct `it'. | |
505 | (handle_face_prop, reseat_to_string, set_iterator_to_next, | |
506 | next_element_from_display_vector, insert_left_trunc_glyphs): | |
507 | Likewise. | |
508 | (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not | |
509 | FACE_FOR_CHARSET. | |
510 | (get_next_display_element, append_space, | |
511 | extend_face_to_end_of_line): Likewise. | |
512 | ||
513 | * xfaces.c (Qx_charset_registry, Vface_default_registry): | |
514 | Variables removed. | |
515 | (clear_font_table, frame_update_line_height, load_face_font): | |
516 | Adjusted for the change of fontset implementation. | |
517 | (load_face_fontset_font): Function removed. | |
518 | (pixel_point_size): New function. | |
519 | (font_list): Argument type changed. Caller changed. | |
520 | (LFACE_FONT): New macro. | |
521 | (check_lface_attrs): Check attr[LFACE_FONT_INDEX]. | |
522 | (set_lface_from_font_name): Type of arg FONTNAME is changed to | |
523 | Lisp_Object. Determine the font name by actually loading a font | |
524 | by the specified pattern. Set LFACE_FONT (lface) to the specified | |
525 | pattern. Even if a font is not found, don't try alternatives. | |
526 | (Finternal_set_lisp_face_attribute): Handle `font' slot in lface. | |
527 | (set_font_frame_param): If `font' is specified in lface, use it. | |
528 | (Finternal_get_lisp_face_attribute): Handle `font' slot in lface. | |
529 | (lface_same_font_attributes_p): Likewise. | |
530 | (make_realized_face): Arguent changed. Caller changed. Set | |
531 | face->ascii_face to face itself. | |
532 | (free_realized_face): Free face->fontset if face is for ASCII. | |
533 | (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p, | |
534 | deduce_unibyte_registry, x_charset_registry): Functions removed. | |
535 | (free_realized_multibyte_face): New function. | |
536 | (lookup_face, lookup_named_face, lookup_derived_face): Argument | |
537 | changed. Caller changed. | |
538 | (try_font_list): Argument type changed. | |
539 | (face_fontset): Check `font' slot of ATTRS, not `family' slot. | |
540 | (choose_face_font): Argument changed. Handle fontset properly. | |
541 | (choose_face_fontset_font): Function removed. | |
542 | (realize_default_face, realize_named_face): Don't remove the | |
543 | former face here. | |
544 | (realize_face): Argument changed. Caller changed. Remove face | |
545 | with the arg former_face_id in advance. Load font for the new | |
546 | face. | |
547 | (realize_x_face): Argument changed. Caller changed. For a | |
548 | multibyte character, share fontset with base_face. For a single | |
549 | byte character, make a new realized fontset. Don't load a font | |
550 | here. | |
551 | (realize_tty_face): Argument changed. Caller changed. | |
552 | (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET. | |
553 | (face_at_buffer_position): Don't check multibyte_p for returning | |
554 | DEFAULT_FACE_ID. | |
555 | (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not | |
556 | FACE_SUITABLE_FOR_CHARSET_P. | |
557 | (syms_of_xfaces): Remove code for Qx_charset_registry and | |
558 | Vface_default_registry. | |
559 | ||
6c4bfdc0 KH |
560 | * xterm.c: Include fontset.h after dispextern.h. Undo the changes |
561 | related to PER_CHAR_METRIC done by Gerd on 2000-03-03. | |
9111d4b5 KH |
562 | (x_per_char_metric): Don't try FONT->default_char. Even if |
563 | pcm->width is zero, glyph bits may exist. | |
564 | (x_encode_char): Always initialize char2b->byte1. | |
565 | (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id. | |
566 | (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller | |
567 | changed. | |
568 | (x_append_glyph): Set glyph->glyph_not_available_p. | |
569 | (x_produce_glyphs): Set it->glyph_not_available_p. Don't set | |
570 | it->charset. Handle the case that per char metric is not | |
571 | available. If it->multibyte_p is zero and it->c is a multibyte | |
572 | character, convert it to a unibyte character. | |
573 | (struct glyph_string): Delete member `charset'. | |
574 | (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle | |
575 | the case that per char metric is not available correctly. | |
576 | (x_fill_glyph_string): Handle the case that the specific glyph is | |
577 | not available correctly. | |
578 | (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset. | |
579 | (BUILD_COMPOSITE_GLYPH_STRING): Likewise. | |
580 | (x_new_font): Call FS_LOAD_FONT, not fs_load_font. | |
581 | (x_new_fontset): Call fontset_ascii to get ASCII font name of the | |
582 | fontset. Don't call FS_LOAD_FONT. | |
583 | ||
584 | * xfns.c (Fx_create_frame): Don't cal fs_register_fontset. | |
585 | (x_create_tip_frame): Likewise. | |
586 | (Fx_close_connection): Free full_name of font_info. | |
587 | ||
588 | * fns.c (optimize_sub_char_table): New function. | |
589 | (Foptimize_char_table): New function. | |
590 | (syms_of_fns): Defsubr Soptimize_char_table. | |
591 | ||
b33dd3b0 GM |
592 | 2000-03-20 Gerd Moellmann <gerd@gnu.org> |
593 | ||
594 | * buffer.c (Fset_buffer_modified_p): Set update_mode_lines | |
595 | only if buffer is displayed in some window. | |
596 | ||
597 | * xdisp.c (handle_single_display_prop): Initialize local `value'. | |
598 | (try_window_reusing_current_matrix): Don't call scroll run | |
599 | function if run's current and desired position are the same; | |
600 | this prevents cursor flickering. | |
601 | ||
4e8a9132 SM |
602 | 2000-03-19 Stefan Monnier <monnier@cs.yale.edu> |
603 | ||
604 | * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c. | |
605 | ||
606 | * regex.c (RE_STRING_CHAR): New macro. | |
607 | (GET_CHAR_AFER_2): Remove. | |
608 | (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h. | |
609 | (enum re_opcode_t): Remove on_failure_jump_exclusive. | |
610 | (print_partial_compiled_pattern, re_compile_fastmap) | |
611 | (re_match_2_internal): Remove on_failure_jump_exclusive. | |
612 | (regex_compile): Turn optimizable P+ loops into PP*, so that the | |
613 | optimization only need to work for * (ie. can use of_keep_string_jump). | |
614 | Remove the special case for .*\n since it is now covered by the general | |
615 | optimization. | |
616 | (re_search_2): Don't bother with `room'. | |
617 | (skip_one_char): New function. | |
618 | (skip_noops): Simplify since `memory' is not needed any more. | |
619 | (mutually_exclusive_p): Restructure slightly to use `switch' and | |
620 | add handling for "all" remaining cases. | |
621 | (re_match_2_internal): Change on_failure_jump_smart to use | |
622 | on_failure_keep_string_jump (and redirect the end-of-loop jump) | |
623 | rather than on_failure_jump_exclusive. | |
624 | ||
2136fdd4 GM |
625 | 2000-03-19 Gerd Moellmann <gerd@gnu.org> |
626 | ||
627 | * xfns.c (select_visual): Don't set dpyinfo->n_planes to the | |
628 | number of bits per RGB because it's everywhere used as the depth | |
629 | of the visual. | |
630 | ||
631 | * term.c (calculate_costs): Remove code dealing with X frames. | |
632 | ||
e53ae11c RS |
633 | 2000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
634 | ||
635 | * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte. | |
636 | ||
d7b511c4 GM |
637 | 2000-03-18 Gerd Moellmann <gerd@gnu.org> |
638 | ||
639 | * lread.c (read_integer): Unread the last char not consumed. | |
640 | ||
16b5d424 GM |
641 | 2000-03-17 Gerd Moellmann <gerd@gnu.org> |
642 | ||
643 | * xterm.c (x_update_window_cursor): Don't update in frames | |
d7b511c4 | 644 | which are in the process of being deleted. |
16b5d424 | 645 | |
1fa28578 GM |
646 | 2000-03-16 Gerd Moellmann <gerd@gnu.org> |
647 | ||
83488cce GM |
648 | * Makefile.in (mostlyclean): Add `*.core'. |
649 | (clean): Add `bootstrap-emacs'. | |
650 | ||
1fa28578 GM |
651 | * lread.c (read_integer): New function. |
652 | (read1): Support read syntax #o, #x, #b, #r. | |
653 | ||
99633e97 SM |
654 | 2000-03-15 Stefan Monnier <monnier@cs.yale.edu> |
655 | ||
1fa28578 GM |
656 | * regex.c (re_match_2): Fix string shortening (to fit `stop') to |
657 | make sure POINTER_TO_OFFSET gives the same value before and after | |
658 | PREFETCH. Use `dfail' to guarantee "atomic" matching. | |
99633e97 SM |
659 | (PTR_TO_OFFSET): Use POINTER_TO_OFFSET. |
660 | (debug): Now only active if > 0 rather than if != 0. | |
661 | (DEBUG_*): Update for the new meaning of `debug'. | |
1fa28578 GM |
662 | (print_partial_compiled_pattern): Add missing `succeed' case. Use |
663 | CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs | |
664 | in `succeed_n', `jump_n' and `set_number_at'. | |
99633e97 SM |
665 | (store_op1, store_op2, insert_op1, insert_op2) |
666 | (at_begline_loc_p, at_endline_loc_p): Add prototype. | |
1fa28578 GM |
667 | (group_in_compile_stack): Move to after its arg's types are |
668 | declared and add a prototype. | |
99633e97 | 669 | (PATFETCH): Define in terms of PATFETCH_RAW. |
1fa28578 GM |
670 | (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' |
671 | wrapper. | |
99633e97 | 672 | (QUIT): Redefine as a nop except for NTemacs. |
1fa28578 GM |
673 | (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix |
674 | indentation of the greedy-op and shy-group code. | |
99633e97 SM |
675 | (at_(beg|end)line_loc_p): Fix argument's types. |
676 | (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc. | |
677 | (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation. | |
678 | (MATCHING_IN_FIRST_STRING): Remove. | |
1fa28578 GM |
679 | (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr |
680 | to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use | |
681 | QUIT unconditionally. | |
99633e97 | 682 | |
699238d9 GM |
683 | 2000-03-15 Gerd Moellmann <gerd@gnu.org> |
684 | ||
685 | * minibuf.c (Fminibuffer_complete): Set point to ZV if finding | |
686 | a sole completion. | |
687 | ||
688 | * process.c (send_process): Add a hint that the function | |
689 | can call Lisp code to its comment. | |
690 | ||
691 | * lread.c (load_dangerous_libraries): New variable. | |
692 | (Vbytecomp_version_regexp): New variable. | |
693 | (safe_to_load_p): New function. | |
694 | (Fload): Handle files not compiled with Emacs specially. | |
695 | (syms_of_lread): New Lisp variable load-dangerous-libraries. | |
696 | ||
34e23e5a GM |
697 | 2000-03-14 Gerd Moellmann <gerd@gnu.org> |
698 | ||
9c763cca GM |
699 | * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon. |
700 | ||
701 | * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM | |
702 | support functions only if HAVE_X11R6_XIM is defined. | |
703 | (xim_instantiate_callback): Define only if HAVE_X11R6_XIM. | |
704 | ||
705 | * s/sol2.h (INHIBIT_X11R6_XIM): Define. | |
706 | ||
707 | * xfns.c (X_I18N_INHIBITED): Don't define. | |
708 | (create_frame_xic): Remove conditional compilation on | |
709 | X_I18N_INHIBITED. | |
710 | (x_kill_gs_process, x_window): Use FRAME_X_VISUAL. | |
711 | ||
712 | * config.in (HAVE_X_I18N): Moved here from xterm.h. | |
713 | (HAVE_X11R6_XIM): Define. | |
714 | ||
715 | * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in. | |
716 | ||
34e23e5a GM |
717 | * xterm.c (x_term_init): Add support for X resource `synchronous'. |
718 | If set, call XSynchronize. | |
719 | ||
66f0296e SM |
720 | 2000-03-13 Stefan Monnier <monnier@cs.yale.edu> |
721 | ||
34e23e5a GM |
722 | * regex.c: Declare a new type `re_char' used throughout the code |
723 | for the string char type. It's `const unsigned char' to match the | |
724 | rest of Emacs. Consistently make sure all pointers to strings use | |
725 | it and make sure all pointers into the pattern use `unsigned | |
726 | char'. | |
66f0296e | 727 | (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of |
34e23e5a GM |
728 | GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce |
729 | code duplication. | |
66f0296e SM |
730 | |
731 | * charset.h (GET_CHAR_AFTER_2): Remove. | |
732 | (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else. | |
733 | ||
854a025c KR |
734 | 2000-03-12 Ken Raeburn <raeburn@gnu.org> |
735 | ||
736 | * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary | |
737 | variable before the invocation of YMF_PASS_LDFLAGS, in case both | |
738 | of them try to use backquotes. | |
739 | ||
b9d2c7e2 DL |
740 | 2000-03-12 Dave Love <fx@gnu.org> |
741 | ||
742 | * unexelf.c: Restore changes of 1999-10-19. | |
743 | (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise | |
744 | fix its type and alignment; copy it from current process. | |
745 | ||
5e5dff44 GM |
746 | 2000-03-12 Gerd Moellmann <gerd@gnu.org> |
747 | ||
9b2f3c38 GM |
748 | * atimer.c (cancel_atimer): Break out of the loop as soon as timer |
749 | has been found. Fix bug not computing timer's predecessor. | |
750 | ||
9172b88d GM |
751 | * fileio.c (Fread_file_name): Handle case that DIR contains a |
752 | file name. | |
753 | ||
e1cff360 GM |
754 | * window.c (Fsave_window_excursion): Doc fix. |
755 | ||
5e5dff44 GM |
756 | * xfns.c (x_defined_color): Rewritten to use |
757 | x_allocate_nearest_color. | |
758 | ||
e411ce4b EZ |
759 | 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il> |
760 | ||
761 | * msdos.c (vga_installed): New function, code moved from | |
762 | dos_set_window_size. | |
763 | (Qbar, Qcursor_type, outside_cursor): New variables. | |
764 | (syms_of_msdos): Intern and staticpro them. | |
765 | (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor | |
766 | shape used outside Emacs when called for the first time. | |
767 | (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the | |
768 | cursor shape used outside Emacs. | |
769 | (msdos_set_cursor_shape, IT_set_cursor_type): New functions. | |
770 | (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor | |
771 | type has changed. | |
772 | (IT_set_frame_parameters): Call IT_set_cursor_type if the frame | |
773 | parameters specify the cursor. Make qreverse a global | |
774 | variable (renamed to Qreverse). | |
775 | ||
80460654 GM |
776 | 2000-03-09 Gerd Moellmann <gerd@gnu.org> |
777 | ||
778 | * fns.c (Fy_or_n_p): Cancel busy-cursor. | |
779 | ||
95cd4c40 SM |
780 | 2000-03-08 Stefan Monnier <monnier@cs.yale.edu> |
781 | ||
782 | This is a big redesign of failure-stack and register handling, prompted | |
783 | by bugs revealed when trying to add shy-groups. Overall, what happened | |
784 | is that loops are now structured a little differently, groups can be | |
785 | shy and the code is a little simpler. | |
786 | ||
787 | * regex.h: Update the copyright. | |
788 | (RE_SHY_GROUPS): New value. | |
789 | (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber. | |
790 | (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS. | |
791 | ||
80460654 GM |
792 | * regex.c (enum re_opcode_t): Remove jump_past_alt, |
793 | maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add | |
794 | on_failure_jump_(exclusive, loop and smart). Also fix the comment | |
795 | for (start|stop)_memory since they now only take one argument (the | |
796 | second has becomes unnecessary). | |
797 | (print_partial_compiled_pattern): Adjust for changes in | |
798 | re_opcode_t. | |
799 | (print_compiled_pattern): Use %ld to printf long ints and flush to | |
800 | make debugging a little easier. | |
95cd4c40 SM |
801 | (union fail_stack_elt): Make the integer unsigned. |
802 | (struct fail_stack_type): Add a `frame' element. | |
803 | (INIT_FAIL_STACK): Init `frame' as well. | |
804 | (POP_PATTERN_OP): New macro for re_compile_fastmap. | |
805 | (DEBUG_PUSH, DEBUG_POP): Remove. | |
806 | (NUM_REG_ITEMS): Remove. | |
807 | (NUM_NONREG_ITEMS): Adjust. | |
80460654 GM |
808 | (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE) |
809 | (TOP_FAILURE_HANDLE): New macros for the cycle detection. | |
95cd4c40 | 810 | (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT). |
80460654 GM |
811 | (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New |
812 | macros. | |
813 | (PUSH_FAILURE_POINT): Don't push registers any more. The pattern | |
814 | address pushed is not the destination of the jump but the source | |
815 | of it instead. | |
95cd4c40 SM |
816 | (NUM_FAILURE_ITEMS): Remove. |
817 | (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop | |
80460654 GM |
818 | registers before the actual failure point). Don't hardcode any |
819 | meaning for str==NULL anymore. | |
95cd4c40 | 820 | (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE) |
80460654 GM |
821 | (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED): |
822 | Remove. | |
95cd4c40 SM |
823 | (REG_UNSET_VALUE): Use NULL (why not?). |
824 | (compile_range): Remove declaration since it doesn't exist. | |
825 | (struct compile_stack_elt_t): Remove inner_group_offset. | |
826 | (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove. | |
827 | (regex_grow_registers): Remove dead code. | |
828 | (FIXUP_ALT_JUMP): New macro. | |
80460654 GM |
829 | (regex_compile): Add shy-groups Change loops to use |
830 | on_failure_jump_smart&jump instead of | |
831 | on_failure_jump&maybe_pop_jump. Change + loops to eliminate the | |
832 | initial (dummy_failure_)jump. Remove c1_base (looks like unused | |
833 | variable to me). Use `jump' instead of `jump_past_alt' and don't | |
834 | bother with push_dummy_failure in alternatives since it is now | |
835 | unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef | |
836 | emacs' for (re)allocating the stack. | |
837 | (re_compile_fastmap): Remove dead variables i and num_regs. Exit | |
838 | from loop when bufp->can_be_null rather than jumping to `done'. | |
839 | Avoid jumping backwards so as to ensure termination. Use | |
840 | PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of | |
841 | backreferences. Remove dead code in handling of `anychar'. | |
95cd4c40 | 842 | (skip_noops, mutually_exclusive_p): New functions taken from the |
80460654 GM |
843 | handling of `maybe_pop_jump' in re_match_2_internal. Slightly |
844 | improve mutually_exclusive_p to handle ".+\n". | |
845 | (lowest_active_reg, highest_active_reg, | |
846 | NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove. | |
847 | (re_match_2_internal): Use %p instead of 0x%x when printf'ing | |
848 | ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead | |
849 | variables. Push register (in `start_memory') on the stack rather | |
850 | than storing it in old_reg(start|end). Remove the cycle detection | |
851 | from `stop_memory', replaced by the use of on_failure_jump_loop | |
852 | for greedy loops. Add code for the new on_failure_jump_<foo>. | |
853 | Remove ad-hoc code in `on_failure_jump' to push more registers in | |
854 | the case of a loop. Take out code from `maybe_pop_jump' into | |
855 | separate functions and adapt it to the semantics of | |
856 | `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump | |
857 | and push_dummy_failure. Remove dummy_failure handling and | |
858 | handling of `failures to jump to on_failure_jump' (this last one | |
859 | was already dead code, it seems). | |
860 | (group_match_null_string_p, alt_match_null_string_p) | |
861 | (common_op_match_null_string_p): Remove. | |
95cd4c40 | 862 | |
7397acc4 DL |
863 | 2000-03-08 Dave Love <fx@gnu.org> |
864 | ||
865 | * config.in: Don't depend on __STDC__ for volatile. | |
866 | Add POINTER_TYPE, PTR, PROTOTYPES. | |
867 | ||
868 | * hftctl.c, strftime.c: Use PROTOTYPES. | |
869 | * eval.c (find_handler_clause): Likewise. | |
870 | ||
871 | * mem-limits.h: Use POINTER_TYPE. | |
872 | ||
873 | * lisp.h (P_): Define based on PROTOTYPES, not __STDC__. | |
874 | (memory_warnings): Declare using POINTER_TYPE. | |
875 | ||
5e91ff9e GM |
876 | 2000-03-08 Gerd Moellmann <gerd@gnu.org> |
877 | ||
feab4fba GM |
878 | * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor. |
879 | ||
25edb08f GM |
880 | * xdisp.c (display_echo_area): Temporarily inhibit garbage |
881 | collection. | |
882 | ||
5e91ff9e GM |
883 | * xfns.c: Remove obsolete code in #if 0. |
884 | (Fx_focus_frame): New function. | |
885 | ||
a735b7e1 KH |
886 | 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> |
887 | ||
888 | * coding.c (coding_category_name): Add coding-category-utf-8, | |
889 | coding-category-utf-16-be, coding-category-utf-16-le. | |
890 | (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P, | |
891 | UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P, | |
892 | UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros. | |
893 | (detect_coding_utf_8): New function. | |
894 | (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P | |
895 | UTF_16_LOW_SURROGATE_P): New macros. | |
896 | (detect_coding_utf_16): New function | |
897 | (detect_coding_mask): When priorities are specified, skip any | |
898 | categories that have `nil' coding-system. Fix bug of returning | |
899 | wrong mask when PRIORITIES is specified and detect_coding_XXX() | |
900 | returns a mask not set in PRIORITIES. | |
901 | (detect_eol_type_in_2_octet_form): New function. | |
902 | (detect_eol): selects detect_eol_type_XXX to call according to | |
903 | cooding->category_idx. | |
904 | (detect_coding_system): Remove `nil' coding-system in the result. | |
905 | (Fupdate_coding_systems_internal): Update all coding-categories. | |
906 | ||
907 | * coding.h (CODING_CATEGORY_IDX_UTF_8, | |
908 | CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New | |
909 | macros. | |
910 | (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY, | |
911 | CODING_CATEGORY_IDX_MAX): Adjusted for the above macros. | |
912 | CODING_CATEGORY_IDX_UTF_16_LE. | |
913 | (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE, | |
914 | CODING_CATEGORY_MASK_UTF_16_LE): New macros. | |
915 | (CODING_CATEGORY_MASK_ANY): Include the above macros. | |
916 | (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro. | |
917 | ||
9994cc69 GM |
918 | 2000-03-07 Gerd Moellmann <gerd@gnu.org> |
919 | ||
e9b4e5ff GM |
920 | * doc.c (Fdocumentation_property): If value is not a string, |
921 | and doesn't refer to etc/DOC, evaluate it to obtain a string. | |
922 | ||
f7daf1e1 GM |
923 | * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to |
924 | close the display with XtCloseDisplay. This caused a bus error | |
925 | on OpenWindows. | |
926 | ||
9994cc69 GM |
927 | * minibuf.c (Fminibuffer_complete): Move point to ZV when input is |
928 | complete but not unique. | |
929 | ||
4336c705 GM |
930 | 2000-03-06 Gerd Moellmann <gerd@gnu.org> |
931 | ||
18bb0684 GM |
932 | * process.c (send_process): Remove local variable `procname' that |
933 | might become invalid when a GC happens. Instead, access the | |
934 | process name slot directly. | |
935 | ||
4336c705 GM |
936 | * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and |
937 | orig_height if set. | |
938 | ||
939 | * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and | |
940 | orig_height if set. | |
941 | ||
515d0d0e EZ |
942 | 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il> |
943 | ||
944 | * msdos.c (IT_note_mouse_highlight): Return immediately if frame's | |
945 | glyph matrices have been freed. | |
946 | ||
100b3cbb GM |
947 | 2000-03-05 Gerd Moellmann <gerd@gnu.org> |
948 | ||
50df5e5a | 949 | * Makefile.in (tags): Include ../lwlib/TAGS in TAGS. |
6178bc23 | 950 | (bootstrap-temacs): Set LC_ALL to C like for temacs. |
50df5e5a GM |
951 | |
952 | * xfns.c (QCdata): Moved to xdisp.c. | |
953 | ||
954 | * xdisp.c (QCdata): Moved here from xfns.c. | |
955 | (syms_of_xdisp): Initialize QCdata. | |
956 | ||
957 | * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define. | |
958 | ||
959 | * window.c (coordinates_in_window): Use | |
960 | FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of | |
961 | FRAME_INTERNAL_BORDER_WIDTH. | |
962 | ||
100b3cbb | 963 | * xdisp.c (try_window_id): Recompute unchanged information if |
4336c705 | 964 | it is obviously invalid. |
100b3cbb GM |
965 | |
966 | * xterm.c (x_term_init): Create a colormap if not using the | |
967 | default visual. | |
968 | ||
969 | * xterm.h (select_visual): Change prototype. | |
970 | ||
971 | * xfns.c (select_visual): Rewritten. Recognize user-specified | |
972 | visual classes. | |
973 | (visual_classes): New variable. | |
974 | ||
64d739c4 GM |
975 | 2000-03-04 Gerd Moellmann <gerd@gnu.org> |
976 | ||
977 | * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color) | |
978 | (lookup_pixel_color, x_laplace, x_build_heuristic_mask) | |
979 | (png_load): Access colormap of frame using FRAME_X_COLORMAP. | |
980 | (x_decode_color): Don't handle allocation of white and black | |
981 | specially. | |
982 | (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and | |
983 | XtNcolormap resources. | |
984 | (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow. | |
985 | (Fx_create_frame): Initialize color members of x_output structure. | |
986 | (xpm_load): Pass colormap to XPM lib. | |
987 | ||
988 | * xfaces.c (x_free_colors): Access colormap of frame using | |
989 | FRAME_X_COLORMAP. Be paranoid about freeing black and white | |
990 | when default colormap is used. | |
991 | ||
992 | * xterm.c (x_term_init): Set Colormap member of x_display_info | |
993 | structure. Copy colormap if resource `privateColormap' is | |
994 | specified (PseudoColor only). | |
995 | (x_setup_relief_color): Access colormap of frame using | |
996 | FRAME_X_COLORMAP. | |
997 | ||
998 | * xterm.h (struct x_display_info): Add Colormap member `cmap'. | |
999 | (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros. | |
1000 | ||
c3cee013 JR |
1001 | 2000-03-04 Jason Rumney <jasonr@gnu.org> |
1002 | ||
1003 | * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or | |
1004 | other non-platform-specific equivalents. | |
64d739c4 | 1005 | [WINDOWSNT]: Include w32term.h, fontset.h and define X |
c3cee013 JR |
1006 | specific functions and macros as their w32 equivalents where |
1007 | non-platform-specifics are not available. | |
1008 | [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM. | |
1009 | (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions. | |
1010 | (clear_font_table) [WINDOWSNT]: Call w32_unload_font. | |
1011 | (frame_update_line_height): Use macros to access f->output_data. | |
1012 | (defined_color): Remove FIXME comments; fixed. | |
1013 | (x_face_list_fonts, prepare_face_for_display): Put X specifics | |
1014 | into #ifdef blocks. Add WINDOWSNT blocks. | |
1015 | (Fx_list_fonts): Use macros for accessing font data. | |
1016 | (set_lface_from_font_name): Different default fonts for X and | |
1017 | WINDOWSNT. | |
1018 | (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as | |
1019 | scalable for backward compatibility. | |
64d739c4 | 1020 | (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT. |
c3cee013 JR |
1021 | (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default. |
1022 | ||
64d739c4 | 1023 | * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of |
c3cee013 JR |
1024 | syms_of_w32faces. |
1025 | ||
1026 | * makefile.nt (w32faces.obj): Remove. | |
1027 | (xfaces.obj): Add. | |
1028 | ||
807cc41c JR |
1029 | 2000-03-03 Jason Rumney <jasonr@gnu.org> |
1030 | ||
1031 | * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with | |
1032 | correct parameters. | |
1033 | ||
0007072a KR |
1034 | 2000-03-03 Ken Raeburn <raeburn@gnu.org> |
1035 | ||
1036 | * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide | |
1037 | standard ELF definitions here if the system header does not. | |
1038 | ||
71a6ba55 GM |
1039 | 2000-03-03 Gerd Moellmann <gerd@gnu.org> |
1040 | ||
1041 | * xterm.c (PER_CHAR_METRIC): Removed. | |
1042 | (x_per_char_metric_1, x_default_char): New functions. | |
1043 | (x_per_char_metric): If font's default char is invalid, return | |
1044 | metrics of a suitably chosen usable default char. | |
1045 | (x_draw_glyph_string_foreground): If font has an invalid default | |
64d739c4 GM |
1046 | char, replace occurrences of unprintable chars with a suitably |
1047 | chosen usable default char. | |
71a6ba55 | 1048 | |
900fa1f1 GM |
1049 | 2000-03-02 Gerd Moellmann <gerd@gnu.org> |
1050 | ||
42f55fe0 GM |
1051 | * xterm.c (note_mouse_highlight): Return quickly if frame's |
1052 | glyph matrices have been freed. | |
1053 | ||
1054 | * dispnew.c (free_glyphs): Block input while freeing matrices. | |
1055 | ||
900fa1f1 GM |
1056 | * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors. |
1057 | ||
1058 | * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use | |
1059 | x_free_colors. | |
1060 | ||
1061 | * dispextern.h (x_free_colors): Add prototype. | |
1062 | ||
1063 | * xfaces.c (x_free_colors): New function. | |
1064 | (unload_color, free_face_colors): Use it. | |
1065 | ||
2f950292 EZ |
1066 | 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il> |
1067 | ||
1068 | * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero. | |
1069 | ||
1070 | * window.c [MSDOS]: Include msdos.h. | |
1071 | ||
54d04320 DL |
1072 | 2000-03-02 Dave Love <fx@gnu.org> |
1073 | ||
1074 | * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH. | |
1075 | ||
1076 | * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't | |
1077 | set C_OPTIMIZE_SWITCH for gcc. | |
1078 | ||
0ba93ac4 KH |
1079 | 2000-03-02 Kenichi Handa <handa@etl.go.jp> |
1080 | ||
1081 | * coding.c (coding_save_composition): Be sure to allocate | |
1082 | composition data area in coding even if there's no composition in | |
1083 | the current run. | |
1084 | ||
a2bc11d4 JR |
1085 | 2000-03-01 Jason Rumney <jasonr@gnu.org> |
1086 | ||
1087 | * w32term.c: Equivalent changes to those made to xterm.c on | |
1088 | 2000-02-25 and 2000-02-24. | |
1089 | ||
1090 | * w32fns.c: Equivalent changes to those made to xfns.c on | |
1091 | 2000-02-25 and 2000-02-21. | |
1092 | ||
1093 | * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure | |
1094 | correct line-end convention is followed. | |
1095 | ||
1096 | * w32menu.c [HAVE_BOXES]: Remove #undef. | |
1097 | (single_keymap_panes): Remove code for simulating checkmarks. | |
1098 | (single_menu_item): Remove notbuttons_ptr argument. Callers changed. | |
1099 | Remove code for drawing simulated checkmarks. | |
1100 | (w32_menu_show): make unibyte help string correctly. | |
1101 | (add_menu_item): draw standard Windows checkmarks. Draw radio | |
1102 | buttons as radio buttons if possible. | |
1103 | ||
72d19d75 GM |
1104 | 2000-03-01 Gerd Moellmann <gerd@gnu.org> |
1105 | ||
2df636f4 GM |
1106 | * sysdep.c (start_of_text): Don't define this function for NetBSD |
1107 | with ELF. | |
1108 | ||
1109 | * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]: | |
1110 | Don't define. | |
1111 | (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o. | |
1112 | (LINKER): Don't undef if __NetBSD__ is defined. | |
1113 | ||
1114 | * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define. | |
1115 | ||
1116 | * fileio.c [__NetBSD__]: Define `unix'. | |
1117 | ||
72d19d75 GM |
1118 | * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay. |
1119 | ||
ed4d0512 GM |
1120 | 2000-02-29 Gerd Moellmann <gerd@gnu.org> |
1121 | ||
50b1039f GM |
1122 | * atimer.c (start_atimer): Don't abort when timers are stopped. |
1123 | (append_atimer_lists): New function. | |
1124 | (cancel_atimer, stop_other_atimers, run_all_atimers): Handle | |
1125 | arbitrary lists of stopped and running atimers. | |
1126 | ||
ed4d0512 GM |
1127 | * atimer.c (cancel_atimer): Handle canceling an atimer when |
1128 | some timers are stopped. | |
1129 | ||
1130 | * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null | |
1131 | after canceling it. | |
1132 | ||
1133 | * fns.c (maybe_resize_hash_table): Handle case of new size | |
1134 | coming out as being the same as old size. | |
1135 | ||
387023ee JR |
1136 | 2000-02-27 Jason Rumney <jasonr@gnu.org> |
1137 | ||
1138 | * makefile.nt: Add atimer.h to dependencies. | |
1139 | * w32.c (init_environment): Set Vw32_num_mouse_buttons here. | |
1140 | * w32console.c: Only disable window system features for dispextern.h | |
1141 | (initialize_w32_display): Build a display info for the console. | |
1142 | * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17. | |
1143 | * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN, | |
1144 | WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice | |
1145 | as 2 button mice. | |
1146 | * w32gui.h (struct W32FontStruct): Revert last change after change | |
1147 | to xdisp.c. | |
1148 | * w32menu.c (single_submenu): Set up help string. | |
1149 | [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip. | |
1150 | (w32_dialog_show): Set up help string. | |
1151 | * w32term.c (w32_display_info_for_display): Remove unused function. | |
1152 | (w32_draw_bitmap): Use pre-built bitmaps. | |
1153 | (w32_initialize_display_info): New function to initialize parts of | |
1154 | display info that are common to both GUI and console frames. | |
1155 | (w32_term_init): Use w32_initialize_display_info. Do not set | |
1156 | Vw32_num_mouse_buttons here, as it is not called for console | |
1157 | frames. Build bitmaps for indicating truncated lines etc. | |
1158 | (x_delete_display): Destroy pre-built bitmaps. | |
1159 | * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro. | |
1160 | (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM. | |
1161 | ||
4516715a DL |
1162 | 2000-02-27 Dave Love <fx@gnu.org> |
1163 | ||
1164 | * lisp.h: Add a bunch of prototypes. | |
1165 | ||
171ca836 KH |
1166 | 2000-02-26 Kenichi Handa <handa@etl.go.jp> |
1167 | ||
1168 | * keyboard.c (read_char): Set `usec' correctly. | |
1169 | ||
4013921d KH |
1170 | 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> |
1171 | ||
1172 | * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is | |
1173 | `lambda', set reg[RRR] to the map index. | |
1174 | (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set | |
1175 | reg[RRR] to 0. Otherwise, set it to -1. | |
1176 | ||
9244a058 GM |
1177 | 2000-02-25 Gerd Moellmann <gerd@gnu.org> |
1178 | ||
2df636f4 | 1179 | * emacs.c (main): Remove code snippet commented out with `//'. |
9244a058 | 1180 | |
f43d79c1 GM |
1181 | 2000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1182 | ||
1183 | * fileio.c (Ffile_symlink_p): If result starts with a `/' | |
1184 | and contains a `:', prepend `/:'. | |
1185 | ||
1186 | * window.c (select_window_1): If selected_window is nil, | |
1187 | don't "swap out" the buffer's point. | |
1188 | (Fset_window_configuration): Set selected_window to nil | |
1189 | before calling Fselect_window. | |
1190 | (unshow_buffer): Don't set point in buffer from window's point | |
1191 | if another more recently selected window also shows the buffer. | |
1192 | ||
bed0c171 GM |
1193 | 2000-02-25 Gerd Moellmann <gerd@gnu.org> |
1194 | ||
449c3c52 GM |
1195 | * keyboard.c (recursive_edit_1): Cancel busy-cursor. |
1196 | ||
f5b58615 GM |
1197 | * xfns.c (inhibit_busy_cursor, busy_count): Removed. |
1198 | (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed. | |
1199 | (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New | |
1200 | variables. | |
1201 | (DEFAULT_BUSY_CURSOR_DELAY): New define. | |
1202 | (start_busy_cursor, cancel_busy_cursor, show_busy_cursor) | |
1203 | (hide_busy_cursor): New functions. | |
1204 | (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay. | |
1205 | ||
1206 | * minibuf.c (read_minibuf): Cancel busy-cursor. | |
1207 | ||
1208 | * keyboard.c (command_loop_1): Call start_busy_cursor before | |
1209 | Fcommand_execute and cancel_busy_cursor after it. | |
1210 | (timer_check): Remove busy-cursor code. | |
1211 | (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy | |
1212 | cursor timer. | |
1213 | ||
1214 | * process.c (wait_reading_process_input): Remove busy-cursor code. | |
1215 | ||
1216 | * eval.c (Fsignal): Call cancel_busy_cursor instead of | |
1217 | Fx_hide_busy_cursor. | |
1218 | ||
1219 | * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor): | |
1220 | Remove prototyoes. | |
1221 | (start_busy_cursor, cancel_busy_cursor): Add prototypes. | |
1222 | ||
1223 | * lisp.h (Fx_hide_busy_cursor): Remove prototype. | |
1224 | ||
1225 | * xterm.c (XTread_socket): Remove busy-cursor code. | |
1226 | ||
4eb8436f GM |
1227 | * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function. |
1228 | (build_frame_matrix_from_leaf_window): Put code handling | |
1229 | glyph row's not being a slice of a frame row in #if 0. | |
1230 | (sync_window_with_frame_matrix_rows): New function. | |
1231 | (frame_row_to_window): New function. | |
1232 | (mirror_line_dance): Handle copies between windows. | |
1233 | ||
3cb65b0e GM |
1234 | * lread.c (Fload): Use `xfree' instead of `free'. |
1235 | (init_obarray): Use `xmalloc' instead of `malloc'. | |
1236 | ||
bed0c171 GM |
1237 | * window.c (Fset_window_buffer): Set WINDOW to the window |
1238 | after decoding. | |
2add4349 GM |
1239 | (coordinates_in_window): Take frame's internal border width |
1240 | into account. | |
bed0c171 | 1241 | |
42088c12 GM |
1242 | 2000-02-24 Gerd Moellmann <gerd@gnu.org> |
1243 | ||
1244 | * xterm.c (x_display_and_set_cursor): Display cursor of | |
1245 | non-selected windows depending on the setting of | |
1246 | cursor_in_non_selected_windows. | |
1247 | ||
1248 | * xdisp.c (cursor_in_non_selected_windows): New variable. | |
1249 | (syms_of_xdisp): DEFVAR_BOOL it. | |
1250 | ||
d1e103b2 GM |
1251 | 2000-02-23 Gerd Moellmann <gerd@gnu.org> |
1252 | ||
723e779c GM |
1253 | * data.c (Fstring_to_number): If number is greater than what |
1254 | fits into an integer, return a float. | |
1255 | ||
d1e103b2 GM |
1256 | * eval.c (specbind): Remove references to |
1257 | keyword_symbols_constant_flag. | |
1258 | ||
1259 | * data.c (keyword_symbols_constant_flag): Removed. | |
1260 | (Fmakunbound, set_internal, syms_of_data): Remove references to | |
1261 | keyword_symbols_constant_flag. | |
1262 | ||
1263 | * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag. | |
1264 | ||
214f877f KH |
1265 | 2000-02-23 Kenichi Handa <handa@etl.go.jp> |
1266 | ||
1267 | * syntax.c (multibyte_syntax_as_symbol): New variable. | |
1268 | (syms_of_syntax): Declare it as a Lisp variable. | |
1269 | (SYNTAX_WITH_MULTIBYTE_CHECK): New macro. | |
1270 | (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are | |
1271 | nonzero, treat all multibyte characters as symbol. | |
42088c12 | 1272 | (init_syntax_once): Give syntax `word' to all multibyte |
214f877f KH |
1273 | characters. |
1274 | ||
130adcb7 EZ |
1275 | 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il> |
1276 | ||
3cb65b0e | 1277 | * frame.c (Fdelete_frame): Don't let echo_area_window remain on |
130adcb7 EZ |
1278 | a deleted frame. |
1279 | ||
17cbbf95 GM |
1280 | 2000-02-21 Gerd Moellmann <gerd@gnu.org> |
1281 | ||
1282 | * frame.c (Fmouse_position): GCPRO retval instead of x and y. | |
1283 | ||
1284 | * xfns.c (x_window_to_frame, x_any_window_to_frame) | |
1285 | (x_non_menubar_window_to_frame): Check the busy-cursor window. | |
1286 | ||
beb0bc36 DL |
1287 | 2000-02-21 Dave Love <fx@gnu.org> |
1288 | ||
1289 | * frame.c (Vmouse_position_function): New variable. | |
1290 | (Fmouse_position): Use it. | |
1291 | (syms_of_frame): Install it. | |
1292 | ||
1293 | * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'. | |
1294 | ||
1d92afcd GM |
1295 | 2000-02-20 Gerd Moellmann <gerd@gnu.org> |
1296 | ||
1297 | * fileio.c (Finsert_file_contents): Unbind the binding of | |
1298 | standard-output done by temp_output_buffer_setup. | |
329eed9f GM |
1299 | |
1300 | * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless | |
1301 | Vmocklisp_arguments is nil. Inline Fcar and Fcdr. | |
1302 | (specbind, unbind_to): Handle most common case of non-constant | |
1303 | symbol with trivial value specially. | |
1304 | ||
1305 | * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case. | |
1306 | ||
2d06696f RS |
1307 | 2000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1308 | ||
1309 | * data.c (Fmake_variable_buffer_local): Doc fix. | |
1310 | Init found_for_buffer to 0. | |
1311 | (Fmake_variable_frame_local): If the variable has already | |
1312 | been buffer-local, set the check_frame field. | |
1313 | ||
1d4311c3 EZ |
1314 | 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il> |
1315 | ||
1316 | * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data | |
1317 | produced for CODING_MODE_LAST_BLOCK requires. | |
1318 | ||
2dc95ddd DL |
1319 | 2000-02-18 Dave Love <fx@gnu.org> |
1320 | ||
1321 | * keyboard.c (echo_keystrokes): Remove declaration. | |
1322 | (Vecho_keystrokes) New variable. | |
1323 | (read_char, record_menu_key, read_key_sequence): Use it to allow | |
1324 | use of float value. | |
1325 | (syms_of_keyboard): Change Vecho_keystrokes declaration. | |
1326 | ||
1327 | * lread.c: Undef feature selection macros before defining. | |
1328 | ||
f0930f35 GM |
1329 | 2000-02-18 Gerd Moellmann <gerd@gnu.org> |
1330 | ||
1331 | * data.c (let_shadows_buffer_binding_p): Ignore specbindings | |
1332 | for symbols other than the symbol in question. | |
1333 | ||
e3d4de90 DL |
1334 | 2000-02-17 Dave Love <fx@gnu.org> |
1335 | ||
1336 | * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization. | |
1337 | ||
0b378936 GM |
1338 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
1339 | ||
d621caf7 GM |
1340 | * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef. |
1341 | ||
0b378936 GM |
1342 | * alloc.c (enum mem_type): Compile unconditionally. |
1343 | ||
3b451f74 EZ |
1344 | 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il> |
1345 | ||
1346 | * xfaces.c (tty_defined_color): Don't return faulire indication | |
1347 | for unspecified-fg and unspecified-bg pseudo-colors. | |
1348 | ||
10689a01 GM |
1349 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
1350 | ||
1216f5e4 GM |
1351 | * alloc.c (mark_object): Don't mark symbol names in pure space. |
1352 | (gc_sweep): Don't unmark symbol names in pure space. | |
1353 | ||
1354 | * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS) | |
1355 | (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES) | |
1356 | [GC_MARK_STACK]: New defines. | |
1357 | (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO) | |
1358 | [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops. | |
1359 | ||
1360 | * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base. | |
1361 | ||
1362 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use | |
1363 | allocate_buffer instead of xmalloc. | |
1364 | ||
1365 | * alloc.c (toplevel): Include setjmp.h. | |
1366 | (PURE_POINTER_P): New define. | |
1367 | (enum mem_type) [GC_MARK_STACK]: New enumeration. | |
1368 | (Vdead) [GC_MARK_STACK]: New variable. | |
1369 | (lisp_malloc): Add parameter TYPE, call mem_insert if | |
1370 | GC_MARK_STACK is defined. | |
1371 | (allocate_buffer): New function. | |
1372 | (lisp_free) [GC_MARK_STACK]: Call mem_delete. | |
1373 | (free_float) [GC_MARK_STACK]: Set type to Vdead. | |
1374 | (free_cons) [GC_MARK_STACK]: Set car to Vdead. | |
1375 | (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables. | |
1376 | (MEM_NIL) [GC_MARK_STACK]: New define. | |
1377 | (struct mem_node) [GC_MARK_STACK]: New structure. | |
1378 | (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup) | |
1379 | (mem_delete_fixup, mem_rotate_left, mem_rotate_right) | |
1380 | (live_string_p, live_cons_p, live_symbol_p, live_float_p) | |
1381 | (live_misc_p, live_vector_p, live_buffer_p, mark_memory) | |
1382 | (mark_stack) [GC_MARK_STACK]: New functions. | |
1383 | (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack. | |
1384 | (clear_marks): Removed. | |
1385 | (gc_sweep): Set free conses' car, free floats' type, free | |
1386 | symbols' function to Vdead. Use lisp_free to free buffers. | |
1387 | (init_alloc_once): Initialize Vdead. | |
1388 | (survives_gc_p): Return non-zero for pure objects. | |
1389 | ||
1390 | * alloc.c: Add comments throughout the file. | |
1391 | ||
2503c8b1 GM |
1392 | * atimer.c (stop_other_atimers): Don't call cancel_atimer because |
1393 | that unblocks alarms. | |
1394 | ||
8389e1e2 GM |
1395 | * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c, |
1396 | emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h, | |
1397 | Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'. | |
1398 | ||
10689a01 GM |
1399 | * frame.c (make_frame): Set frame initiallly to `garbaged'. |
1400 | ||
bfc17d18 KH |
1401 | 2000-02-17 Kenichi Handa <handa@etl.go.jp> |
1402 | ||
4a09dee0 KH |
1403 | * xdisp.c (decode_mode_spec_coding): Delete superfluous code to |
1404 | avoid infinite error signaling. Allocate sufficient memory for | |
1405 | eol_str in the case that eoltype is Lisp_Int. | |
bfc17d18 | 1406 | |
2b927d02 SM |
1407 | 2000-02-17 Stefan Monnier <monnier@cs.yale.edu> |
1408 | ||
1409 | * syntax.c (Fforward_comment): Undo the previous change, since cc-mode | |
1410 | depends on the previous behavior. | |
1411 | ||
b49cb764 GM |
1412 | 2000-02-16 Gerd Moellmann <gerd@gnu.org> |
1413 | ||
1414 | * sysdep.c (vfork) [!HAVE_VFORK]: Removed. | |
1415 | ||
99e95407 GM |
1416 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
1417 | ||
1418 | * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define. | |
1419 | ||
1420 | * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]: | |
b49cb764 | 1421 | Workaround for FreeBSD bug. Clear output queue after EAGAIN in |
99e95407 GM |
1422 | write(2). |
1423 | ||
6ffd3cf7 RS |
1424 | 2000-02-15 Richard M. Stallman <rms@gnu.org> |
1425 | ||
1426 | * data.c (set_internal): Don't make variable buffer-local | |
1427 | if within a let-binding for the same buffer. | |
1428 | (let_shadows_buffer_binding_p): New function. | |
1429 | ||
1430 | * eval.c (specbind): For buffer-local value, | |
1431 | record the current buffer also. | |
1432 | (unbind_to): Cope with that change. | |
1433 | ||
cad53475 GM |
1434 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
1435 | ||
1436 | * window.c (Fsave_window_excursion): Doc fix. | |
1437 | ||
1aa963c8 SM |
1438 | 2000-02-15 Stefan Monnier <monnier@cs.yale.edu> |
1439 | ||
1440 | * syntax.c (back_comment): Make sure we only consider comment-starters | |
1441 | of the relevant style and return -1 in case of a failure to find the | |
1442 | beginning of the comment. | |
1443 | (Fforward_comment): If back_comment fails, go back to the position just | |
1444 | after the comment-end. | |
1445 | (scan_lists): Add comment describing a very minor bug. | |
1446 | ||
b9b84fd3 SM |
1447 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
1448 | ||
1449 | * minibuf.c (Ftry_completion, Fall_completions): Add a reference to | |
1450 | `completion-regexp-list' in the docstring. | |
1451 | ||
3a28db80 DL |
1452 | 2000-02-14 Dave Love <fx@gnu.org> |
1453 | ||
1454 | * xfaces.c (tty_defined_color): Declare color_idx unsigned long. | |
1455 | ||
fb4a568d SM |
1456 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
1457 | ||
1458 | * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS | |
1459 | to Emacs' syntax. Also fix the comment about set/not-set meanings | |
1460 | since Emacs syntax is not the value 0 any more. | |
1461 | * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax | |
1462 | since it's now part of RE_SYNTAX_EMACS. | |
1463 | ||
1063ebb5 DL |
1464 | 2000-02-12 Dave Love <fx@gnu.org> |
1465 | ||
1466 | * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on | |
1467 | Alpha. | |
1468 | ||
fb07a302 GM |
1469 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
1470 | ||
1471 | * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively. | |
1472 | ||
aaf2320c DL |
1473 | 2000-02-12 Dave Love <fx@gnu.org> |
1474 | ||
1475 | * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc. | |
1476 | ||
1477 | * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h: | |
fb07a302 GM |
1478 | * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h: |
1479 | * s/hpux.h: Don't define HAVE_VFORK. | |
aaf2320c DL |
1480 | |
1481 | * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST. | |
1482 | ||
1483 | * s/nextstep.h: Don't define HAVE_ALLOCA. | |
1484 | ||
1485 | * config.in: Add vfork bits. | |
1486 | ||
eedf8bde GM |
1487 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
1488 | ||
1489 | * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register | |
1490 | unwind function to undo the effect of stopping atimers. | |
1491 | ||
1492 | * keyboard.c (bind_polling_period): Stop all timers except | |
1493 | poll_timer. | |
1494 | ||
1495 | * atimer.c (stopped_atimers): New variable. | |
1496 | (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers): | |
1497 | New functions. | |
1498 | ||
1499 | * atimer.h (stop_other_atimers, run_all_atimers) | |
1500 | (unwind_stop_other_atimers): Add function prototypes. | |
1501 | ||
1502 | * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined. | |
1503 | ||
8476c2f8 KR |
1504 | 2000-02-11 Ken Raeburn <raeburn@gnu.org> |
1505 | ||
1506 | * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff | |
1507 | library may depend on jpeg. | |
1508 | (atimer.o): Depends on atimer.c. | |
1509 | ||
0e85e4a3 KH |
1510 | 2000-02-11 Kenichi Handa <handa@etl.go.jp> |
1511 | ||
1512 | * insdel.c (del_range_1): Call update_compositions. | |
1513 | (del_range_both): Call update_compositions just once.. | |
1514 | ||
97fa0cc8 DL |
1515 | 2000-02-10 Dave Love <fx@gnu.org> |
1516 | ||
1517 | * xfns.c (create_frame_xic): Fix initialization of automatic | |
1518 | aggregates for pcc. | |
1519 | ||
25566a3c KH |
1520 | 2000-02-09 Kenichi Handa <handa@etl.go.jp> |
1521 | ||
1522 | * ccl.c (CCL_MAKE_CHAR): New macro. | |
1523 | (ccl_driver) <CCL_TranslateCharacter>: Check the validity of | |
1524 | registers by CCL_MAKE_CHAR before calling translate_char. | |
1525 | <CCL_TranslateCharacterConstTbl> Likewise. | |
1526 | ||
69da54ba DL |
1527 | 2000-02-08 Dave Love <fx@gnu.org> |
1528 | ||
1529 | * lread.c (__EXTENSIONS__): Define. | |
1530 | ||
f7136ee8 GM |
1531 | 2000-02-08 Gerd Moellmann <gerd@gnu.org> |
1532 | ||
1533 | * puresize.h (BASE_PURESIZE): Increase to 650000. | |
1534 | ||
7768790b EZ |
1535 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
1536 | ||
1537 | * msdos.c (XMenuActivate): Turn off the cursor after displaying | |
1538 | the help message. | |
1539 | ||
38fd211b EZ |
1540 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
1541 | ||
1542 | * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue, | |
1543 | md, mh, mb, mr, and me to the fake termcap entry. | |
1544 | ||
66e4690f KR |
1545 | 2000-02-06 Ken Raeburn <raeburn@gnu.org> |
1546 | ||
1547 | * sound.c (sound_cleanup): Don't call device close routine if the | |
1548 | function pointer is null. | |
1549 | ||
a75dfea0 AI |
1550 | 2000-02-06 Andrew Innes <andrewi@gnu.org> |
1551 | ||
1552 | * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM, | |
1553 | around image definitions and prototypes. | |
1554 | (gamma_correct) [WINDOWSNT]: New prototype. | |
1555 | ||
1556 | * w32term.c (x_make_frame_visible): Replace call to | |
1557 | input_poll_signal with poll_for_input. | |
1558 | ||
1559 | * window.c [WINDOWSNT]: Include w32term.h. | |
1560 | ||
1561 | * xdisp.c [WINDOWSNT]: Include w32term.h. | |
1562 | ||
1563 | * makefile.nt: Add dependencies on w32gui.h. | |
1564 | (OBJ1): Include atimer.obj. | |
1565 | ($(BLD)\atimer.obj): New dependency rule. | |
1566 | ||
1567 | * w32.c (sigmask): New function (does nothing). | |
1568 | (sigunblock): Ditto. | |
1569 | ||
1570 | * frame.c [WINDOWSNT]: Include w32term.h. | |
1571 | ||
1572 | * w32gui.h (struct W32FontStruct): Add ascent and descent slots. | |
1573 | ||
1574 | * lread.c (syms_of_lread): Fix literal newlines. | |
1575 | ||
1576 | * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around | |
1577 | the string constant limit (2048 bytes) in MSVC. | |
1578 | (main): Ditto. | |
1579 | ||
59ddecde GM |
1580 | 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp> |
1581 | ||
1582 | * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit | |
1583 | area. | |
1584 | (x_display_cursor) [HAVE_X_I18N]: Don't set it here. | |
1585 | (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't | |
1586 | dispatch the event. | |
1587 | ||
07590973 DL |
1588 | 2000-02-04 Dave Love <fx@gnu.org> |
1589 | ||
1590 | * fileio.c: Remove some unused vars. | |
1591 | (_GNU_SOURCE): Define (for euidaccess). | |
1592 | ||
1593 | * lread.c (_XOPEN_SOURCE): Declare (for ftello). | |
1594 | ||
1595 | * minibuf.c (read_minibuf_noninteractive): Remove undeclared | |
1596 | gcpro1, gcpro2. | |
1597 | (read_minibuf): Deal with allow_props correctly. | |
1598 | ||
649351f9 EZ |
1599 | 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il> |
1600 | ||
1601 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000. | |
1602 | ||
66e4690f | 1603 | 2000-02-03 Ken Raeburn <raeburn@gnu.org> |
f1b9c7c1 KR |
1604 | |
1605 | * search.c (compile_pattern): If a cache entry has a nil regexp, | |
1606 | fill in that entry instead of clobbering a previously cached | |
1607 | string regexp. | |
1608 | ||
66e4690f | 1609 | 2000-02-02 Ken Raeburn <raeburn@gnu.org> |
15c9cf81 KR |
1610 | |
1611 | * puresize.h (BASE_PURESIZE): Increase to 610000. | |
1612 | ||
d240a249 GM |
1613 | 2000-02-02 Gerd Moellmann <gerd@gnu.org> |
1614 | ||
1615 | * frame.c (Fframe_parameters): Add GCPRO because tty_color_name | |
1616 | can GC. | |
1617 | ||
ca91fb26 KH |
1618 | 2000-02-02 Kenichi Handa <handa@etl.go.jp> |
1619 | ||
25660570 KH |
1620 | * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address |
1621 | instead of incrementing ic directly. | |
1622 | <CCL_WriteExprConst> Likewise. | |
1623 | <ccl_set_expr>: Set ic to jump_address. | |
1624 | ||
ca91fb26 KH |
1625 | * fileio.c (e_write): Fix the handling of |
1626 | CODING_FINISH_INSUFFICIENT_SRC. | |
1627 | ||
2ede9689 DL |
1628 | 2000-02-01 Dave Love <fx@gnu.org> |
1629 | ||
1630 | * editfns.c (Fpropertize): Doc fix. | |
1631 | ||
1632 | * process.c (Fstart_process): Doc fix. | |
1633 | ||
1634 | * eval.c: Fix various doc strings not to duplicate information | |
1635 | from help-manyarg-func-alist. | |
1636 | ||
1637 | * window.c (Fset_window_margins): Don't make interactive. Doc | |
1638 | fix. | |
1639 | ||
1640 | * doc.c (Vhelp_manyarg_func_alist): New variable. | |
1641 | (Fdocumentation): Use it. | |
1642 | (syms_of_doc): Define it. | |
1643 | ||
b6680a0e GM |
1644 | 2000-01-31 Gerd Moellmann <gerd@gnu.org> |
1645 | ||
2cb750ba GM |
1646 | * xterm.c (xim_open_dpy): Remove unused local variable. |
1647 | ||
74e9213b GM |
1648 | * emacs.c (USAGE): Use term `display options' instead of `X |
1649 | options'. | |
1650 | ||
1651 | * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function. | |
1652 | (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it. | |
1653 | ||
b6680a0e GM |
1654 | * fns.c (sweep_weak_table): New function. |
1655 | (sweep_weak_hash_tables): Use it. Keep on marking until there | |
1656 | is no more change. | |
1657 | ||
994c5afe GM |
1658 | 2000-01-30 Gerd Moellmann <gerd@gnu.org> |
1659 | ||
1660 | * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure | |
1661 | that XTread_socket does not crash by trying to call XNoOp on a | |
1662 | closed display. | |
1663 | ||
f00276e3 JR |
1664 | 2000-01-30 Jason Rumney <jasonr@gnu.org> |
1665 | ||
1666 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
1667 | Change selected_frame to SELECTED_FRAME (). | |
1668 | (w32_console_mouse_position): Remove #ifndef MULE from around | |
1669 | `insist' parameter. | |
1670 | ||
1671 | * makefile.nt: Remove dosfns.obj. | |
1672 | ||
1673 | * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors. | |
1674 | ||
1675 | * w32fns.c (w32_defined_color): Check for valid frame before | |
1676 | applying gamma correction. Eliminate dependency on frame elsewhere. | |
1677 | (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH. | |
1678 | (w32_to_x_font): Use resx and resy not height_in and width_in. | |
1679 | (x_to_w32_font): Doc fix. | |
1680 | (xlfd_strip_height): New function to strip and return font height. | |
1681 | (w32_font_match): Compare height separately from rest of xlfd | |
1682 | spec, using xlfd_strip_height. | |
1683 | ||
1684 | * w32term.c (w32_term_init): Swap resx and height_in, resy and | |
1685 | width_in. Use w32_defined_color in place of defined_color. | |
1686 | ||
1687 | * w32faces.c: Merge more of DOS and X specifics in preparation for | |
1688 | merge with xfaces.c. | |
1689 | (defined_color): Remove FIXME comment. | |
1690 | (tty_color_name): Provide w32-specific function. | |
1691 | (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially. | |
1692 | ||
1693 | * w32console.c (turn_on_face, turn_off_face): Removed. | |
1694 | (w32_face_attributes): New function. | |
1695 | (Global_variables): Reduce scope where possible. | |
1696 | (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as | |
1697 | fill attribute. | |
1698 | (hl_mode): Don't modify text attributes. | |
1699 | (write_glyphs): Don't do anything if len <= 0. Use | |
1700 | w32_face_attributes to get attributes for drawing. Write | |
1701 | terminating codes using char_attr_normal. | |
1702 | (reset_terminal_modes, set_terminal_modes): Turn off highlight. | |
1703 | (update_begin, update_end): Likewise. | |
1704 | (vga_stdcolor_name): New function. | |
1705 | (initialize_w32_display): Remove char_attr_reverse and char_attr. | |
1706 | (Fset_screen_color): Remove char_attr_reverse. | |
1707 | ||
b08e8bb2 GM |
1708 | 2000-01-29 Gerd Moellmann <gerd@gnu.org> |
1709 | ||
1710 | * xfns.c (xic_set_preeditarea): Take window parameter and | |
1711 | window-relative pixel-positions. | |
1712 | ||
1713 | * xterm.c (x_display_cursor): Set XIC pre-edit area only if window | |
1714 | is its frame's selected window. | |
1715 | (xim_instantiate_callback): Likewise. | |
1716 | ||
1717 | * xfns.c (x_create_im): Removed. | |
1718 | (DEFAULT_STYLE, DEFAULT_FONT): Removed. | |
1719 | (supported_xim_styles): Renamed from supported_styles. | |
1720 | (best_xim_style): Renamed from best_style. | |
1721 | (create_frame_xic): Renamed from xic_create_frame. | |
1722 | (free_frame_xic): Renamed from xic_destroy_frame. | |
1723 | ||
1724 | 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp> | |
1725 | ||
1726 | * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of | |
1727 | our frames, call XFilterEvent with 2nd parameter `None'. | |
1728 | (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString | |
1729 | returning XBufferOverflow. | |
1730 | (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status | |
1731 | area. | |
1732 | (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area. | |
1733 | (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset. | |
1734 | (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback) | |
1735 | (xim_initialize, xim_close) | |
1736 | [HAVE_X_I18N && HAVE_X11R6]: New functions. | |
1737 | (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame. | |
1738 | (x_term_init) [HAVE_X_I18N]: Call xim_initialize. | |
1739 | (x_delete_display) [HAVE_X_I18N]: Call xim_close. | |
1740 | ||
1741 | * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim' | |
1742 | and `xim_styles'. | |
1743 | (struct x_output) [HAVE_X_I18N]: Remove member `xim', add | |
1744 | `xic_style' and `xic_xfs'. | |
1745 | (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES) | |
1746 | (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros. | |
1747 | (FRAME_XIM): Removed. | |
1748 | ||
1749 | * xfns.c (supported_styles): New variable. | |
1750 | (DEFAULT_STYLE, DEFAULT_FONT): New macros | |
1751 | (xic_create_xfontset, best_style, xic_create_frame) | |
1752 | (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea) | |
1753 | (xic_set_xfontset): New functions. | |
1754 | ||
142e109c DL |
1755 | 2000-01-28 Dave Love <fx@gnu.org> |
1756 | ||
1757 | * s/irix6-5.h: Revert last change after change to irix5-0.h. | |
1758 | ||
1759 | * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0. | |
1760 | ||
b02786f9 GM |
1761 | 2000-01-28 Gerd Moellmann <gerd@gnu.org> |
1762 | ||
d060bc9f GM |
1763 | * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode |
1764 | for *scratch* if it already existed. | |
1765 | ||
b02786f9 GM |
1766 | * emacs.c (USAGE): New macro. |
1767 | (main): Use it to display usage information. | |
1768 | ||
2c52d7e4 EZ |
1769 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
1770 | ||
1771 | Support for the menu-help feature: | |
1772 | ||
1773 | * msdos.h: Change prototypes of XMenuAddSelection and | |
1774 | XMenuActivate. | |
1775 | ||
1776 | * msdos.c (IT_clear_end_of_line): Print the extent of the cleared | |
1777 | part of the line to the termscript file. | |
1778 | (IT_clear_to_end): Clear the entire line, not just its beginning. | |
1779 | (menu_help_message, prev_menu_help_message): New variables. | |
1780 | (IT_menu_make_room): Make room for the help_text member. | |
1781 | (IT_menu_display): New argument disp_help; all callers changed. | |
1782 | If disp_help is non-zero, store the help text of the active menu | |
1783 | item in menu_help_message. | |
1784 | (XMenuAddPane): Initialize the help_text member to NULL. | |
1785 | (XMenuAddSelection): New argument help_text. Store it in the | |
1786 | XMenu structure. | |
1787 | (XMenuActivate): New argument help_callback. If the value of | |
1788 | menu_help_message has changed since the last time, display the | |
1789 | menu help message text while waiting for the mouse to move. Clear | |
1790 | the echo area before exiting. | |
1791 | (XMenuDestroy): Free the help_text member. | |
1792 | ||
ffe0bcd1 GM |
1793 | 2000-01-27 Gerd Moellmann <gerd@gnu.org> |
1794 | ||
1795 | * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to | |
1796 | XMenuAddSelection. Pass help callback to XMenuActivate. | |
1797 | (menu_help_callback) [!USE_X_TOOLKIT]: New function. | |
1798 | ||
50dbd23f EZ |
1799 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
1800 | ||
1801 | * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS | |
1802 | and EMACS_SET_USECS. | |
1803 | ||
f5941bf8 GM |
1804 | 2000-01-26 Dave Love <fx@gnu.org> |
1805 | ||
6c67ddee DL |
1806 | * editfns.c (Fchar_after, Fchar_before): Doc fix. |
1807 | ||
f5941bf8 GM |
1808 | * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where |
1809 | an error may be signalled. | |
1810 | ||
9e49c990 GM |
1811 | 2000-01-26 Gerd Moellmann <gerd@gnu.org> |
1812 | ||
fc3cb460 GM |
1813 | * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef |
1814 | LD_SWITCH_SYSTEM inherited from irix5-0.h. | |
1815 | ||
9e49c990 GM |
1816 | * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo. |
1817 | ||
d0c037d8 GM |
1818 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
1819 | ||
1820 | * charset.c (Fstring): If there is a multibyte char among | |
1821 | the args, always return a multibyte string. | |
1822 | ||
e12489f9 GM |
1823 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
1824 | ||
1825 | * sysdep.c (sys_select): Turn atimers off and on instead of | |
1826 | recording and restoring old alarm handler | |
1827 | ||
1828 | * process.c (toplevel): Include atimer.h. | |
1829 | (create_process_1): Rewritten. | |
1830 | (create_process): Use atimers instead of alarm. | |
1831 | (wait_reading_process_input) [hpux]: Turn atimers off instead | |
1832 | of turning off SIGALRM. | |
1833 | (wait_reading_process_input): Turn off atimers instead off | |
1834 | calling stop_polling. | |
1835 | ||
1836 | * emacs.c (main): Call init_atimer. | |
1837 | ||
1838 | * keyboard.c (toplevel): Include systime.h and atimer.h. | |
1839 | (polling_for_input): Removed because unused. | |
1840 | (input_poll_signal) [POLL_FOR_INPUT]: Removed. | |
1841 | (poll_timer): New variable. | |
1842 | (poll_for_input, poll_for_input_1): New functions. | |
1843 | (start_polling, stop_polling): Rewritten. | |
1844 | ||
1845 | * keyboard.h (polling_for_input): Removed. | |
1846 | ||
1847 | * atimer.h, atimer.c: New files. | |
1848 | ||
1849 | * Makefile.in (obj): Add atimer.o. | |
1850 | (atimer.o): New target. | |
1851 | ||
1852 | * blockinput.h (pending_atimers): Add extern declaration. | |
1853 | (UNBLOCK_INPUT): Rewritten. Handle pending atimers. | |
1854 | ||
1855 | * lisp.h (popup_activated_flag): Add extern declaration. | |
1856 | ||
1857 | * xmenu.c (popup_activated_flag): Make externally visible. | |
1858 | (popup_activate_callback) [USE_MOTIF]: Increment | |
1859 | popup_activated_flag. | |
1860 | (popup_deactivate_callback) [USE_MOTIF]: Decrement it. | |
1861 | ||
1862 | * xterm.c (toplevel): Include atimer.h. | |
1863 | (toolkit_scroll_bar_interaction): New variable. | |
1864 | (Fxt_process_timeouts): Removed. | |
1865 | (x_process_timeouts): New function. | |
1866 | (xt_action_hook): Clear toolkit_scroll_bar_interaction. | |
1867 | (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction. | |
1868 | (x_make_frame_visible): Call poll_for_input_1 instead of | |
1869 | input_poll_signal. Don't call alarm. | |
1870 | (x_initialize): Install timer calling x_process_timeouts. | |
1871 | ||
1e5279b9 DL |
1872 | 2000-01-24 Dave Love <fx@gnu.org> |
1873 | ||
6c67ddee | 1874 | * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now. |
1e5279b9 DL |
1875 | Don't use -cckr -- apparently not now necessary. |
1876 | ||
edf6aeb8 EZ |
1877 | 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il> |
1878 | ||
1879 | * msdos.c (IT_menu_display): Truncate long menu lines at the right | |
1880 | screen boundary. | |
1881 | ||
9badad41 JR |
1882 | 2000-01-23 Jason Rumney <jasonr@gnu.org> |
1883 | ||
1884 | * w32fns.c (w32_defined_color): Apply gamma correction before | |
1885 | trying to map to the palette. | |
1886 | (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame | |
1887 | to w32_clear_rect. | |
1888 | ||
1889 | * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc | |
1890 | here. Callers changed to always pass real device context. | |
1891 | (w32_draw_bitmap): Likewise. | |
1892 | (w32_get_glyph_overhangs): Likewise. | |
1893 | (w32_draw_box_rect): Make use of s->hdc rather than getting a new | |
1894 | one. | |
1895 | (w32_set_vertical_scroll_bar): Pass correct HWND parameters to | |
1896 | pfnSetScrollInfo and SetScrollRange. | |
1897 | (x_get_char_face_and_encoding): Don't turn iso8859-1 characters | |
1898 | back into MULE characters after decoding them. | |
1899 | (x_get_glyph_face_and_encoding): Likewise. | |
1900 | (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when | |
1901 | GetCharABCWidthsW fails, since this is defined on Windows 9x. | |
1902 | (x_produce_glyphs): Calculate per char metrics for a character | |
1903 | that we know exists in default font when font_not_found_p is true. | |
1904 | ||
63bd786b JR |
1905 | 2000-01-22 Jason Rumney <jasonr@gnu.org> |
1906 | ||
1907 | * makefile.nt (intervals.obj, composite.obj): New modules. | |
1908 | (composite.h): Added as dependency where appropriate. | |
1909 | ||
1910 | * w32gui.h (XGCValue): New struct for emulating X GCs. | |
1911 | ||
1912 | * w32term.h (XCharStruct): New struct for emulating X. | |
1913 | ||
1914 | * w32console.c (turn_on_face, turn_off_face): New functions. | |
1915 | (change_line_highlight): New prototype for new redisplay. | |
1916 | (write_glyphs): Support multibyte text. Support faces. | |
1917 | ||
1918 | * w32faces.c: Complete rewrite for new redisplay based on new | |
1919 | xfaces.c. | |
1920 | ||
1921 | * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame | |
1922 | throughout. struct frame * in place of FRAME_PTR. | |
1923 | Skeleton support for images, toolbars, tooltips from xfns.c. | |
1924 | (Fx_create_frame): Use system default for default scroll bar | |
1925 | width. | |
1926 | (w32_get_arg): Renamed from x_get_arg. | |
1927 | (Fx_file_dialog): New function. | |
1928 | (w32_list_fonts): Check cache before asking system. | |
1929 | (Vw32_enable_synthesized_fonts): New variable. | |
1930 | (Vw32_enable_italics): Obsolete, removed. | |
1931 | ||
1932 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
1933 | Use SELECTED_FRAME macro. | |
1934 | ||
1935 | * w32menu.c: Add skeleton support for help strings on menus. | |
1936 | (add_menu_item): Native checkbox and radio support added, but not | |
1937 | yet enabled due to bugs. | |
1938 | (push_menu_item): Add parameters type, selection and help. | |
1939 | Callers updated. | |
1940 | Formatting changes to reduce unnecessary diffs with xmenu.c. | |
1941 | ||
1942 | * w32select.c (Fw32_set_clipboard_data): Update call to | |
1943 | find_charset_in_str. | |
1944 | ||
1945 | * w32term.c: Complete rewrite for new redisplay based on new | |
1946 | xterm.c with necessary sections merged back in from old w32term.c. | |
1947 | ||
6ffd3cf7 | 1948 | 2000-01-21 Richard M. Stallman <rms@gnu.org> |
b50c9214 RS |
1949 | |
1950 | * data.c (set_internal): Further fix in same criterion. | |
1951 | ||
6ffd3cf7 | 1952 | 2000-01-20 Richard M. Stallman <rms@gnu.org> |
8cc95642 RS |
1953 | |
1954 | * data.c (set_internal): Fix the criteria for whether | |
1955 | to swap out the old cached binding. | |
1956 | ||
60af03f1 DL |
1957 | 2000-01-19 Dave Love <fx@gnu.org> |
1958 | ||
1959 | * lread.c: (syms_of_lread) [user-init-file]: Doc change. | |
1960 | ||
f9be074f KH |
1961 | 2000-01-18 Kenichi Handa <handa@etl.go.jp> |
1962 | ||
1963 | * regex.c (re_compile_fastmap): While checking a range table for | |
1964 | `charset', skip flag bits for a character class correctly. | |
1965 | ||
52b8dbf9 GM |
1966 | 2000-01-17 Gerd Moellmann <gerd@gnu.org> |
1967 | ||
d36100c9 GM |
1968 | * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC. |
1969 | ||
52b8dbf9 GM |
1970 | * xfns.c (x_window): Call lw_create_widget with new parameter |
1971 | list. | |
1972 | ||
1973 | * widget.c (EmacsFrameSetCharSize): Change size of children first | |
1974 | because of problems with main window geometry management under | |
1975 | Lesstif. | |
1976 | ||
1977 | * xmenu.c (enum menu_item_idx): New enumeration replacing defines | |
1978 | MENU_ITEMS_ITEM_.*. | |
1979 | (MENU_ITEMS_ITEM_HELP): New enumerator. | |
1980 | (push_menu_item): Add parameter HELP. Record help in menu_items. | |
1981 | (single_menu_item, single_submenu, list_of_items): Call | |
1982 | push_menu_item with new parameter. | |
1983 | (single_submenu): Set help string in widget value. | |
1984 | (menu_highlight_callback): New function. | |
1985 | (set_frame_menubar): Call lw_create_widget with new | |
1986 | parameter list. | |
1987 | (xmenu_show, xdialog_show): Ditto. | |
1988 | ||
3139018f GM |
1989 | 2000-01-13 Gerd Moellmann <gerd@gnu.org> |
1990 | ||
1991 | * sound.c (Fplay_sound): Improve doc string. | |
1992 | ||
83c8f461 RS |
1993 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
1994 | ||
1995 | * lisp.h (set_internal): Enter the new arg. | |
1996 | ||
1997 | * eval.c (specbind): Record buffer-local variables specially, | |
1998 | indicating which buffer's binding was saved. | |
1999 | (unbind_to): Restore buffer-local variables specially | |
2000 | in the proper buffer. | |
2001 | ||
2002 | * data.c (set_internal): New arg BUF. | |
2003 | ||
2004 | * eval.c (specbind, unbind_to): Pass new arg to set_internal. | |
2005 | * data.c (Fset): Pass new arg to set_internal. | |
2006 | * bytecode.c (Fbyte_code): Pass new arg to set_internal. | |
2007 | ||
1fab1775 GM |
2008 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
2009 | ||
2010 | * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, | |
2011 | xprintsym. | |
2012 | ||
83c8f461 | 2013 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
6f59462e RS |
2014 | |
2015 | * minibuf.c (Ftry_completion): Doc fix. | |
2016 | ||
7a85e4df GM |
2017 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
2018 | ||
2019 | * keyboard.c (Fclear_this_command_keys): Clear recent_keys | |
2020 | vector, too. | |
2021 | ||
a970dae4 AS |
2022 | 2000-01-11 Andreas Schwab <schwab@suse.de> |
2023 | ||
2024 | * coding.c (code_convert_region): Initialize total_skip. | |
2025 | ||
c65d14ee DL |
2026 | 2000-01-08 Dave Love <fx@gnu.org> |
2027 | ||
2028 | * eval.c (Fuser_variable_p): Check customizability too. | |
2029 | ||
834938d2 GM |
2030 | 2000-01-07 Gerd Moellmann <gerd@gnu.org> |
2031 | ||
2032 | * minibuf.c (Fcompleting_read): Doc fix. | |
2033 | ||
e0303cd6 GM |
2034 | 2000-01-05 Gerd Moellmann <gerd@gnu.org> |
2035 | ||
8a26744b GM |
2036 | * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and |
2037 | -L /usr/local/lib. | |
2038 | ||
e0303cd6 GM |
2039 | * xfns.c (x_create_im): New function to set IM and IC of a frame. |
2040 | Check that input style is supported before trying to create an | |
2041 | IC for it. | |
2042 | (x_window): Call x_create_im. | |
2043 | ||
2e471eb5 GM |
2044 | 2000-01-04 Gerd Moellmann <gerd@gnu.org> |
2045 | ||
560a7bd2 GM |
2046 | * xfns.c (current_gif_memory_src): New variable. |
2047 | (gif_load): Record the address of the current memory source | |
2048 | in current_gif_memory_src. | |
2049 | (gif_read_from_memory): Use current_gif_memory_src. | |
2050 | ||
f9ee84a3 GM |
2051 | * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give |
2052 | macros statement form. | |
2053 | ||
d1299cde GM |
2054 | * sound.c (struct sound): Renamed from struct sound_file. |
2055 | (struct sound): Add members `data' and `header_size'. | |
2056 | (enum sound_attr): Add SOUND_DATA. | |
2057 | (current_sound, current_sound_device): Variables renamed from | |
2058 | sound_file and sound_device. | |
2059 | (parse_sound): Parse :data. | |
2060 | (parse_sound): Handle sound data in strings. | |
2061 | (find_sound_type): Function renamed from find_sound_file_type. | |
2062 | (wav_init, au_init): Fail if sound's header_size is smaller than | |
2063 | needed header size. | |
2064 | (wav_play, au_play): Play sounds from string data. | |
2065 | ||
2e471eb5 GM |
2066 | * puresize.h (BASE_PURE_SIZE): Increase to 600000. |
2067 | ||
2068 | * lisp.h: Add prototype for allocate_string_data. | |
2069 | ||
2070 | * alloc.c (Fgarbage_collect): Return number of live and free | |
2071 | strings. | |
2072 | ||
2073 | * alloc.c (mark_buffer): Remove code in #if 0. | |
2074 | (gc_sweep): Ditto. | |
2075 | (UNMARK_BALANCE_INTERVALS): Give the macro statement form. | |
2076 | (strings_consed): New variable. | |
2077 | (allocate_string): Set it. | |
2078 | (syms_of_alloc): Add DEFVAR_INT for strings_consed. | |
2079 | (Fmemory_use_counts): Return strings_consed. Use Flist. | |
2080 | ||
2081 | * alloc.c: General cleanup in comments etc. Remove conditional | |
2082 | compilation for `standalone'. | |
2083 | ||
2084 | * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'. | |
2085 | ||
2086 | * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): | |
2087 | (GC_STRING_BYTES, GC_STRING_CHARS): New macros. | |
2088 | (DONT_COPY_FLAG): Removed. | |
2089 | (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros. | |
2090 | (struct sdata, struct sblock): New | |
2091 | (struct string_block): Rewritten. | |
2092 | (STRINGS_IN_STRING_BLOCK): New macro. | |
2093 | (oldest_sblock, current_sblock, total_strings, total_free_strings) | |
2094 | (large_sblocks, string_blocks, string_free_list): New variables. | |
2095 | (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros. | |
2096 | (init_strings): Rewritten. | |
2097 | (allocate_string, allocate_string_data, compact_small_strings) | |
2098 | (free_large_strings, sweep_strings): New functions. | |
2099 | (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE) | |
2100 | (struct string_block_head, current_string_block) | |
2101 | (first_string_block, large_string_blocks, STRING_FULLSIZE) | |
2102 | (STRING_PAD): Removed. | |
2103 | (make_uninit_multibyte_string, make_pure_string): Rewritten. | |
2104 | (Fgarbage_collect): Don't set mark bit in large strings. | |
2105 | (mark_object): Mark strings differently. Mark symbol names | |
2106 | differently. | |
2107 | (survives_gc_p): Test marked strings differently. | |
2108 | (gc_sweep): Sweep strings differently, unmark strings in | |
2109 | symbol names. | |
2110 | (compact_strings): Removed. | |
2111 | ||
42608ba8 EZ |
2112 | 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il> |
2113 | ||
2114 | * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and | |
2115 | Scolor_supported_p even if HAVE_X_WINDOWS is not defined. | |
2116 | ||
e0a09e1a KH |
2117 | 2000-01-04 Kenichi Handa <handa@etl.go.jp> |
2118 | ||
dd9f0750 KH |
2119 | * fileio.c (Finsert_file_contents): Signal error if visiting file |
2120 | in a non-empty buffer. | |
2121 | ||
3c0f3b15 | 2122 | * term.c (encode_terminal_code): Fix the previous change. |
e0a09e1a | 2123 | |
44cd3ae5 GM |
2124 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
2125 | ||
2126 | * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to | |
2127 | Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p. | |
2128 | ||
2129 | * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU. | |
2130 | ||
c182a70f EZ |
2131 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
2132 | ||
2133 | * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No | |
2134 | need to test for MSDOS frames. | |
2135 | ||
24480d5b EZ |
2136 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
2137 | ||
2138 | * dosfns.c (unspecified_colors): Remove. | |
2139 | (msdos_stdcolor_idx): Use global variables unspecified_fg and | |
2140 | unspecified_bg. | |
2141 | (msdos_stdcolor_name): Return strings for unspecified fore- and | |
2142 | back-ground colors. | |
2143 | ||
2144 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove. | |
aaf2320c | 2145 | (syms_of_xfaces): Remove their staticpro's. |
24480d5b EZ |
2146 | (tty_color_name): Return Lisp strings for unspecified fore- and |
2147 | back-ground colors. | |
2148 | (Finternal_set_lisp_face_attribute): Remove the special treatment | |
2149 | for Qunspecified_{f,b}g. | |
2150 | (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp | |
2151 | string. | |
2152 | ||
047f434a GM |
2153 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
2154 | ||
2155 | * xdisp.c (reseat_at_next_visible_line_start): Position before | |
2156 | newline only if ending up on a newline. | |
2157 | (next_element_from_ellipsis): Return success. Handle case of | |
2158 | displaying no ellipsis. Fix case of ellipsis defined in display | |
2159 | table. | |
2160 | (next_element_from_buffer): Return 0 if next_element_from_ellipsis | |
2161 | returns 0. | |
2162 | ||
d684c676 EZ |
2163 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
2164 | ||
2165 | * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p. | |
2166 | (Fcolor_supported_p): Renamed from face-color-supported-p. | |
2167 | ||
5fe1d139 EZ |
2168 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
2169 | ||
2170 | * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The | |
2171 | list of colors renamed to tty-defined-color-alist. | |
2172 | (tty_color_name): Pass the frame to tty-color-by-index. | |
2173 | (realize_tty_face): tty-color-alist is now a function which | |
2174 | accepts the frame as argument. | |
2175 | ||
2176 | * term.c (Ftty_display_color_p): Accept an optional argument | |
2177 | FRAME. | |
2178 | ||
816be8b8 EZ |
2179 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
2180 | ||
2181 | * term.c (insert_glyphs): Pass glyph, not &glyph, to | |
2182 | encode_terminal_code. | |
2183 | ||
b635321e EZ |
2184 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
2185 | ||
2186 | * dispnew.c (mode_line_string): Support termcap frames as well. | |
2187 | ||
9b784e96 GM |
2188 | 2000-01-01 Gerd Moellmann <gerd@gnu.org> |
2189 | ||
27189709 GM |
2190 | * syntax.c (Fforward_word): Undo previous change. |
2191 | ||
2192 | * editfns.c (Fconstrain_to_field): Don't constrain if | |
2193 | inhibit-field-text-motion is non-nil. | |
2194 | (Fline_beginning_position): Undo previous change. | |
2195 | (Fline_end_position): Ditto. | |
2196 | ||
2197 | * syntax.c (Fforward_word): Notice field boundaries only if | |
2198 | inhibit-field-text-motion is nil. | |
2199 | ||
2200 | * lisp.h: Add extern declaration for Vinhibit_field_text_motion. | |
2201 | ||
2202 | * editfns.c (Vinhibit_field_text_motion): New variable. | |
2203 | (inhibit-field-text-motion): New DEFVAR_LISP. | |
2204 | (Fline_beginning_position, Fline_end_position): Notice field | |
2205 | boundaries only if inhibit-field-text-motion is nil. | |
2206 | ||
45158a91 GM |
2207 | * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE. |
2208 | All calls adjusted. | |
2209 | (x_build_heuristic_mask): Likewise. | |
2210 | (xbm_load_image_from_file): Change error output. | |
2211 | (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load) | |
2212 | (gif_load, gs_load, x_kill_gs_process): Ditto. | |
2213 | ||
9b784e96 GM |
2214 | * xfns.c (gif_load): Avoid sign extension and thus out of bounds |
2215 | color indices when accessing raster pixels. | |
63cec32f GM |
2216 | (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only |
2217 | one of :file or :data. | |
2218 | (enum pbm_keyword_index): Add PBM_DATA. | |
2219 | (pbm_format): Add :data. | |
2220 | (pbm_image_p): Allow either :file or :data. | |
2221 | (pbm_read_file): New function. | |
2222 | (pbm_scan_number): Rewritten to read from string. | |
2223 | (pbm_load): Support :data. | |
9b784e96 | 2224 | |
5ad6a5fb GM |
2225 | 1999-12-31 Gerd Moellmann <gerd@gnu.org> |
2226 | ||
2227 | * xfns.c: New image functions adapted to Emacs conventions. | |
2228 | (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local | |
2229 | variable `file'. | |
2230 | ||
63448a4d WP |
2231 | 1999-12-31 William M. Perry <wmperry@aventail.com> |
2232 | ||
2233 | * xfns.c (jpeg_format): Added the :data keyword | |
2234 | (jpeg_image_p): JPEG is valid with :file _or_ :data | |
2235 | (jpeg_memory_src): Defined new JPEG image source to read from a | |
2236 | memory buffer. | |
2237 | (jpeg_load): Pay attention to the :data keyword if specified. | |
2238 | Instantiates a jpeg_memory_src instead of jpeg_stdio_src if | |
2239 | found. | |
2240 | (png_format): Added the :data keyword | |
2241 | (png_image_p): PNG is valid with :file _or_ :data | |
2242 | (png_read_from_memory): New PNG read function to read from a | |
2243 | memory buffer. | |
2244 | (png_load): Pay attention to the :data keyword if specified. Uses | |
2245 | png_set_read_fn() instead of png_init_io() if specified. | |
2246 | (tiff_format): Added the :data keyword for TIFF images. | |
2247 | (tiff_image_p): TIFF is valid with :file _or_ :data | |
2248 | (tiff_read_from_memory): Defined new TIFF I/O functions to read | |
2249 | from a memory buffer. | |
2250 | (tiff_load): Pay attention to the :data keyword if specified. | |
2251 | Uses TIFFClientOpen() instead of TIFFOpen() if specified. | |
2252 | (gif_format): Added the :data keyword | |
2253 | (gif_image_p): GIF is valid with :file _or_ :data | |
2254 | (gif_read_from_memory): New GIF input function to read from a | |
2255 | memory buffer. | |
c65d14ee | 2256 | (gif_load): Pay attention to the :data keyword. Uses DGifOpen() |
63448a4d WP |
2257 | instead of DGifOpenFileName() if specified. |
2258 | ||
c880678e GM |
2259 | 1999-12-31 Gerd Moellmann <gerd@gnu.org> |
2260 | ||
2261 | * xdisp.c (next_element_from_buffer): Change assertion at the end | |
2262 | because it doesn't hold when there's an overlay string at the end | |
2263 | from which we deliver an image. | |
2264 | ||
8ccb9a54 EZ |
2265 | 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il> |
2266 | ||
2267 | * msdos.c (IT_update_begin): Don't dereference members of struct | |
2268 | window for deleted windows. | |
2269 | ||
12ce2351 GM |
2270 | 1999-12-30 Gerd Moellmann <gerd@gnu.org> |
2271 | ||
a915c648 GM |
2272 | * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only |
2273 | a hook, and the hook has a non-nil `no-self-insert' property, let | |
2274 | the return value of the hook specify whether an expansion took | |
2275 | place. If it returns nil, no expansion has been performed. | |
2276 | ||
12ce2351 GM |
2277 | * xterm.c (x_make_frame_visible): Wait for frame becoming visible |
2278 | differently. | |
2279 | ||
04ee4f45 EZ |
2280 | 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il> |
2281 | ||
2282 | * msdos.c (IT_write_glyphs): Track last changes to struct glyph. | |
2283 | ||
7f4bc0c3 EZ |
2284 | 1999-12-29 Eli Zaretskii <eliz@is.elta.co.il> |
2285 | ||
2286 | * dispnew.c (mode_line_string): Support MS-DOS frames. | |
2287 | ||
dac204bc GM |
2288 | 1999-12-29 Gerd Moellmann <gerd@gnu.org> |
2289 | ||
2290 | * eval.c (syms_of_eval): Initialize debugger_may_continue. | |
2291 | ||
7b712ad8 KH |
2292 | 1999-12-29 Kenichi Handa <handa@etl.go.jp> |
2293 | ||
2294 | * process.c (read_process_output): Fix the args CHARPOS and LENINS | |
2295 | to signal_after_change. | |
2296 | ||
adb9900f EZ |
2297 | 1999-12-28 Eli Zaretskii <eliz@is.elta.co.il> |
2298 | ||
41ad069b EZ |
2299 | * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame |
2300 | dimensions changed, invalidate the mouse highlight info. | |
2301 | (disable_mouse_highlight, help_echo, previous_help_echo): New | |
2302 | variables. | |
2303 | (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face) | |
2304 | (fast_find_position, IT_note_mode_line_highlight) | |
2305 | (IT_note_mouse_highlight): New functions. | |
2306 | (IT_update_begin): If the redisplay affects the window where the | |
2307 | mouse highlight is, clear the highlight. If the frame where the | |
2308 | highlight was displayed was killed, invalidate the highlight | |
2309 | info. | |
2310 | (IT_update_end): Reset the highlight flag. Reset the mouse | |
2311 | highlight-defer flag. | |
2312 | (IT_frame_up_to_date): New function, if mouse highlight was | |
2313 | deferred due to GC, do it now. | |
2314 | (internal_terminal_init): Initialize mouse-highlight related | |
2315 | members of the_only_x_display. Assign IT_frame_up_to_date to | |
2316 | frame_up_to_date_hook. | |
2317 | (dos_rawgetc): If the mouse moved, update mouse highlight. If | |
2318 | help_echo changed value, generate a HELP_EVENT event. | |
2319 | (syms_of_msdos): Staticpro help_echo and previous_help_echo. | |
2320 | ||
adb9900f EZ |
2321 | * msdos.h (struct display_info): New. |
2322 | (struct x_output): Add the display_info member. | |
2323 | (FRAME_X_DISPLAY_INFO): New macro. | |
2324 | ||
481b5054 GM |
2325 | 1999-12-28 Gerd Moellmann <gerd@gnu.org> |
2326 | ||
2327 | * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED | |
2328 | if MODIFF > 1. | |
6448a6b3 | 2329 | (dump_glyph_row): Adapt to changes in struct glyph. |
481b5054 GM |
2330 | |
2331 | * buffer.c (modify_overlay): Always compute unchanged info. | |
2332 | ||
a2882b0d KH |
2333 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
2334 | ||
2335 | * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'. | |
2336 | ||
89ba5b5f KH |
2337 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
2338 | ||
2339 | The following changes are to use more bits for face IDs. | |
2340 | ||
2341 | * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the | |
2342 | lowest 8 bits are single byte character code, the bits above are | |
2343 | face ID. | |
481b5054 | 2344 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change |
89ba5b5f | 2345 | above. |
481b5054 GM |
2346 | (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise. |
2347 | (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted. | |
89ba5b5f KH |
2348 | |
2349 | * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead | |
2350 | of GLYPH_MASK_CHAR. | |
2351 | ||
2352 | * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead | |
2353 | of GLYPH_MASK_CHAR. | |
2354 | ||
2355 | * dispextern.h (struct glyph): Make face_id and padding_p the top | |
2356 | level members. Change members in union `u'. | |
2357 | (GLYPH_EQUAL_P): Check also members face_id and padding_p. | |
2358 | (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro. | |
2359 | (SET_CHAR_GLYPH): Adjusted for the change of struct glyph. | |
2360 | (CHAR_GLYPH_PADDING_P): Likewise. | |
2361 | (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte | |
2362 | characters. | |
2363 | ||
481b5054 | 2364 | * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted |
89ba5b5f KH |
2365 | for the change of struct glyph. |
2366 | (line_draw_cost): Adjusted for the change of | |
2367 | GLYPH_FROM_CHAR_GLYPH. | |
2368 | (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P. | |
2369 | ||
2370 | * term.c (encode_terminal_code): Adjusted for the change of struct | |
2371 | glyph and GLYPH_FROM_CHAR_GLYPH. | |
481b5054 | 2372 | (write_glyphs, insert_glyphs, append_glyph): Adjusted for the |
89ba5b5f KH |
2373 | change of struct glyph. |
2374 | ||
2375 | * xdisp.c: All codes adjusted for the change of struct glyph. | |
2376 | ||
2377 | * xterm.c: All codes adjusted for the change of struct glyph. | |
2378 | ||
5bcd116c KH |
2379 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
2380 | ||
2381 | * composite.h (struct composition): Change the order of declaring | |
2382 | members to reduce the byte size of the structure. | |
2383 | ||
f21b06b7 GM |
2384 | 1999-12-25 Gerd Moellmann <gerd@gnu.org> |
2385 | ||
2386 | * search.c (looking_at_1): Reset immediate_quit before modifying | |
2387 | global data. | |
2388 | ||
e36557c9 KH |
2389 | 1999-12-24 Kenichi Handa <handa@etl.go.jp> |
2390 | ||
2391 | * process.c (read_process_output): Fix the arg FROM to | |
2392 | update_compositions. | |
2393 | ||
83c8f461 | 2394 | 1999-12-22 Richard M. Stallman <rms@gnu.org> |
f7c9e039 RS |
2395 | |
2396 | * search.c (Freplace_match): For nonliteral replacement in buffer, | |
2397 | construct all the new text first, then insert all at once. | |
2398 | ||
0b863bd9 DL |
2399 | 1999-12-22 Dave Love <fx@gnu.org> |
2400 | ||
2401 | * xfns.c (Fx_show_tip): Gcpro `timeout' too. | |
2402 | ||
6d8e8ef3 GM |
2403 | 1999-12-22 Gerd Moellmann <gerd@gnu.org> |
2404 | ||
28d7281d GM |
2405 | * xfns.c (Fx_create_frame): Move x_default_parameter calls that |
2406 | lead to size changes to after the X window has been created. | |
2407 | ||
e22ef6eb | 2408 | * xfaces.c (realize_x_face): Don't use uninitialized local |
6d8e8ef3 GM |
2409 | variable in xassert. |
2410 | ||
8affcced KH |
2411 | 1999-12-22 Kenichi Handa <handa@etl.go.jp> |
2412 | ||
2413 | * xfaces.c (face_color_supported_p): Check by tty_defined_color | |
6d8e8ef3 | 2414 | only when the frame is not for a window system. |
8affcced | 2415 | |
f2be1146 GM |
2416 | 1999-12-22 Gerd Moellmann <gerd@gnu.org> |
2417 | ||
deca1348 GM |
2418 | * buffer.c (Fset_buffer_multibyte): Arrange for a thorough |
2419 | redisplay after changing the multibyteness of a buffer. | |
2420 | ||
f2be1146 GM |
2421 | * xterm.c (XTread_socket): At the beginning of the loop, pass the |
2422 | frame's X window to XFilterEvent instead of None because that's | |
2423 | the X window for which the IC was created. This makes dead | |
2424 | accents work when the pointer is not in Emacs' frame. | |
2425 | (XTread_socket) <KeyPress>: Don't call XFilterEvent here. | |
2426 | ||
a744a2ec DL |
2427 | 1999-12-20 Dave Love <fx@gnu.org> |
2428 | ||
2429 | * xfns.c (Fx_show_tip): Add missing UNGCPRO. | |
2430 | ||
9e6985ed GM |
2431 | 1999-12-19 Gerd Moellmann <gerd@gnu.org> |
2432 | ||
2433 | * eval.c (debugger_may_continue): New variable. | |
2434 | (syms_of_eval): Add a DEFVAR_BOOL for it. | |
2435 | (call_debugger): Bind it. | |
2436 | ||
3b620731 EZ |
2437 | 1999-12-19 Eli Zaretskii <eliz@is.elta.co.il> |
2438 | ||
2439 | * msdos.c (IT_set_face): Don't swap face colors when highlight or | |
2440 | fp->tty_reverse_p is set, unless the computed colors are identical | |
2441 | to frame colors. Print both original and computed colors to | |
2442 | termscript file. | |
2443 | (IT_write_glyphs): Track the changes in handling of composite | |
2444 | characters. | |
2445 | (IT_set_frame_parameters): Don't set frame colors from | |
2446 | unspecified-fg and unspecified-bg pseudo-colors. | |
2447 | ||
0f9a51c4 DL |
2448 | 1999-12-17 Dave Love <fx@gnu.org> |
2449 | ||
2450 | * data.c (Fkeywordp): New function. | |
2451 | (syms_of_data): Install it. | |
2452 | ||
363e4e42 EZ |
2453 | 1999-12-16 Eli Zaretskii <eliz@is.elta.co.il> |
2454 | ||
2455 | * xfaces.c (tty_defined_color): Fix last change. | |
2456 | ||
cfad01b4 GM |
2457 | 1999-12-15 Gerd Moellmann <gerd@gnu.org> |
2458 | ||
2459 | * xdisp.c (redisplay_window) <optional new window start>: Check | |
2460 | that window start is in [BEGV..ZV]. | |
2461 | ||
f9d2fdc4 EZ |
2462 | 1999-12-15 Eli Zaretskii <eliz@is.elta.co.il> |
2463 | ||
2464 | * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR) | |
2465 | (FACE_TTY_DEFAULT_BG_COLOR): New macros. | |
2466 | ||
2467 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables. | |
2468 | (syms_of_xfaces): Initialize and staticpro them. | |
2469 | (tty_defined_color): If the color name is unspecified-fg or | |
2470 | unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and | |
2471 | FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value. | |
2472 | (tty_color_name): If the color pixel value is either | |
2473 | FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return | |
2474 | Qunspecified_fg or Qunspecified_bg, respectively. | |
2475 | (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg | |
2476 | and Qunspecified_bg for foreground and background colors. | |
2477 | (realize_default_face): If the foreground and background colors | |
2478 | are not specified, default to Qunspecified_fg and Qunspecified_bg. | |
2479 | (realize_tty_face): By default, set the face colors to | |
2480 | FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR. | |
2481 | [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and | |
2482 | FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined. | |
2483 | Reverse the colors if the default colors were reversed. | |
2484 | ||
2485 | * dispnew.c (init_display): Initialize the frame pixels of the | |
2486 | initial frame to FACE_TTY_DEFAULT_FG_COLOR and | |
2487 | FACE_TTY_DEFAULT_BG_COLOR. | |
2488 | ||
2489 | * term.c (turn_on_face): If the default fore- and background | |
2490 | colors are reversed, enter inverse video mode. Don't send color | |
2491 | escape sequences for unspecified foreground and background colors. | |
2492 | (turn_off_face): Handle unspecified-fg and unspecified-bg colors. | |
2493 | ||
2494 | * dosfns.c (unspecified_colors): New variable. | |
2495 | (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg | |
2496 | color names, return FACE_TTY_DEFAULT_FG_COLOR and | |
2497 | FACE_TTY_DEFAULT_BG_COLOR, respectively. | |
2498 | (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and | |
2499 | FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and | |
2500 | Qunspecified_bg, respectively. | |
2501 | ||
2502 | * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and | |
2503 | FACE_TTY_DEFAULT_BG_COLOR as pixel values. | |
2504 | ||
e19539f1 KH |
2505 | 1999-12-15 Kenichi Handa <handa@etl.go.jp> |
2506 | ||
2507 | * coding.c (code_convert_region): Fix the secoding arg to | |
2508 | update_compositions. | |
2509 | ||
5ec14d3c KH |
2510 | 1999-12-15 Kenichi Handa <handa@etl.go.jp> |
2511 | ||
2512 | The following changes are for the new composition mechanism. We | |
2513 | have deleted `composition' charset and composite characters, | |
2514 | instead introduced a special text property `composition'. | |
2515 | ||
2516 | * Makefile.in (INTERVAL_SRC): Include composite.h. | |
2517 | (INTERVAL_OBJ): Include composite.o. | |
2518 | (SOME_MACHINE_OBJECTS): Include composite.o. | |
2519 | (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o) | |
2520 | (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o): | |
2521 | Depend on composite.h. | |
2522 | (doc.o): Depend on charset.h. | |
2523 | (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC. | |
2524 | (composite.o): New target. | |
2525 | ||
2526 | * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING. | |
2527 | ||
2528 | * callproc.c (Fcall_process): Call code_convert_string to encode | |
2529 | arguments. Use CODING_REQUIRE_DECODING to check if the process | |
2530 | output should be decoded. | |
2531 | ||
2532 | * casefiddle.c: Include composite.h. | |
2533 | (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a | |
2534 | multibyte character. Adjusted for the change of CHAR_STRING. | |
2535 | (casify_region): Likewise. Call update_compositions. | |
2536 | ||
2537 | * category.h (CATEGORY_SET): Delete codes for a composite | |
2538 | character. | |
2539 | ||
2540 | * category.c (word_boundary_p): Delete codes for a composite | |
2541 | character. | |
2542 | (Fmake_category_table): New function. | |
2543 | (syms_of_category): Defsubr it. | |
2544 | ||
2545 | * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING. | |
2546 | (ccl_driver): Delete codes for a composite character. | |
2547 | ||
2548 | * charset.h: In this entry, just `Modified' means that codes for a | |
2549 | composite character is deleted. | |
2550 | (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION) | |
2551 | (charset_composition) (MIN_CHAR_COMPOSITION) | |
2552 | (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR) | |
2553 | (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID) | |
2554 | (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted. | |
2555 | (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT) | |
2556 | (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR) | |
2557 | (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P): | |
2558 | Modified. | |
2559 | (SPLIT_STRING): Call split_string, not split_non_ascii_string. | |
2560 | (CHAR_STRING): Delete WORKBUF argument. Call char_string, not | |
2561 | non_ascii_char_to_string. | |
2562 | (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char. | |
2563 | (STRING_CHAR_AND_LENGTH): Likewise. | |
2564 | (FETCH_CHAR_ADVANCE): New macro. | |
2565 | (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted. | |
2566 | (MAX_MULTIBYTE_LENGTH): New macro. | |
2567 | (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted. | |
2568 | (find_charset_in_str): Argument adjusted. | |
2569 | (CHAR_LEN): Modified. | |
2570 | ||
2571 | * charset.c: In this entry, just `Modified' means that codes for a | |
2572 | composite character is deleted. | |
2573 | (Qcomposition) (leading_code_composition) | |
2574 | (charset_composition) (min_composite_char) (cmpchar_table) | |
2575 | (cmpchar_table_size) (n_cmpchars): Deleted. | |
2576 | (SPLIT_COMPOSITE_SEQ): Deleted. | |
2577 | (SPLIT_MULTIBYTE_SEQ): Modified. | |
2578 | (char_to_string): Renamed from non_ascii_char_to_string. | |
2579 | Modified. | |
2580 | (string_to_char): Renamed from string_to_non_ascii_char. | |
2581 | (split_string): Renamed from split_non_ascii_string. | |
2582 | (char_printable_p) (Fsplit_char) | |
2583 | (Ffind_charset_region) (Ffind_charset_string) (char_valid_p) | |
2584 | (char_bytes) (Fchar_width) (strwidth): Modified. | |
2585 | (find_charset_in_str): Argument CMPCHARP deleted. Modified. | |
2586 | (Fstring): Adjusted for the change of CHAR_STRING. Modified. | |
2587 | (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table) | |
2588 | (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID) | |
2589 | (str_cmpchar_id) (cmpchar_component) (Fcmpcharp) | |
2590 | (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p) | |
2591 | (Fcmpchar_cmp_count): Deleted. | |
2592 | (Fcompose_string): Implemented by Emacs Lisp in composite.el. | |
2593 | (init_charset_once): Modified. | |
2594 | (syms_of_charset): Modified. | |
2595 | ||
2596 | * cmds.c (internal_self_insert): Adjusted for the change of | |
2597 | CHAR_STRING. | |
2598 | ||
2599 | * coding.h (emacs_code_class_type): Delete the member | |
2600 | EMACS_leading_code_composition. | |
2601 | (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD) | |
2602 | (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL) | |
2603 | (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P) | |
2604 | (COMPOSING_WITH_RULE_P): Macros deleted. | |
2605 | (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New | |
2606 | macros. | |
2607 | (struct composition_data): New structure. | |
2608 | (CODING_FINISH_INSUFFICIENT_CMP): New macro. | |
2609 | (struct coding_system): New members composition_rule_follows, | |
2610 | cmp_data, cmp_data_start, cmp_data_index. | |
2611 | (coding_save_composition) (coding_free_composition_data) | |
2612 | (coding_adjust_composition_offset): Extern them. | |
2613 | ||
2614 | * coding.c: Include composite.h. | |
2615 | (DECODE_CHARACTER_ASCII): Don't handle composition here. | |
2616 | (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity | |
2617 | of multibyte code here. | |
2618 | (DECODE_CHARACTER_DIMENSION2): Likewise. | |
2619 | (detect_coding_emacs_mule): Change the case label from | |
2620 | EMACS_leading_code_composition to 0x80. | |
2621 | (detect_coding_iso2022): Handle new composition sequence. | |
2622 | (DECODE_ISO_CHARACTER): Likewise. | |
2623 | (check_composing_code): Deleted. | |
2624 | (coding_allocate_composition_data): New function. | |
2625 | (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END) | |
2626 | (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START) | |
2627 | (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros. | |
2628 | (decode_coding_iso2022): Handle new composition sequence. | |
2629 | (ENCODE_ISO_CHARACTER): Don't check composition here. | |
2630 | (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros. | |
2631 | (ENCODE_COMPOSITION_NO_RULE_START) | |
2632 | (ENCODE_COMPOSITION_WITH_RULE_START): Deleted. | |
2633 | (ENCODE_COMPOSITION_END): Handle new composition sequence. | |
2634 | (ENCODE_COMPOSITION_FAKE_START): New macro. | |
2635 | (encode_coding_iso2022): Handle new composition sequence. | |
2636 | (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail. | |
2637 | (encode_coding_sjis_big5): Ignore composition. | |
2638 | (setup_coding_system): Initialize new members of struct | |
2639 | coding_system. Enable composition only when the coding system has | |
2640 | `composition' property t. | |
2641 | (coding_free_composition_data) (coding_adjust_composition_offset) | |
2642 | (coding_save_composition) (coding_restore_composition): New | |
2643 | functions. | |
2644 | (code_convert_region): Call coding_save_composition for encoding | |
2645 | and coding_allocate_composition_data for decoding. Don't skip | |
2646 | ASCII characters if we handle composition on encoding. Call | |
2647 | signal_after_change with Check_BORDER. | |
2648 | (code_convert_string): Call coding_save_composition for encoding | |
2649 | and coding_allocate_composition_data for decoding. Don't skip | |
2650 | ASCII characters if we handle composition on encoding. | |
2651 | (code_convert_string1): Set Vlast_coding_system_used after calling | |
2652 | code_convert_string. | |
2653 | (code_convert_string_norecord): Disable composition. | |
2654 | (Fset_terminal_coding_system_internal): Likewise. | |
2655 | (Fset_safe_terminal_coding_system_internal): Likewise. | |
2656 | (Fset_keyboard_coding_system_internal): Likewise. | |
2657 | (init_coding_once): Set emacs_code_class[0x80] to | |
2658 | EMACS_invalid_code. | |
2659 | ||
2660 | * composite.h: New file. | |
2661 | ||
2662 | * composite.c: New file. | |
2663 | ||
2664 | * data.c (Faref): Delete codes for a composite character.. | |
2665 | (Faset): Likewise. Adjusted for the change of CHAR_STRING. | |
2666 | ||
2667 | * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH. | |
2668 | (struct glyph): Add new sub-structure cmp to the union `u'. | |
2669 | (enum display_element_type): New member IT_COMPOSITION. | |
2670 | (enum prop_idx): New member COMPOSITION_PROP_IDX. | |
2671 | (struct it): New members cmp_id, cmp_len. | |
2672 | ||
2673 | * dispnew.c (direct_output_forward_char): Check point moving into | |
2674 | or out of a composition. If so, give up direct method. | |
2675 | ||
2676 | * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING. | |
2677 | ||
2678 | * editfns.c (Fchar_to_string): Adjusted for the change of | |
2679 | CHAR_STRING. | |
2680 | (general_insert_function): Likewise. | |
2681 | (Finsert_char): Likewise. | |
2682 | (Fsubst_char_in_region): Likewise. Call update_compositions. | |
2683 | (Ftranslate_region): Call update_compositions. | |
2684 | (Ftranspose_regions): Call update_compositions. | |
2685 | ||
2686 | * emacs.c (main): Call syms_of_composite. | |
2687 | ||
2688 | * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of | |
2689 | CHAR_STRING. | |
2690 | (Finsert_file_contents): Set Vlast_coding_system_used before | |
2691 | calling signal_after_change. Call update_compositions if some | |
2692 | texts are inserted.. | |
2693 | (Fwrite_region): Adjusted for the change of a_write and e_write. | |
2694 | (a_write): Argument changed. Work based on character position, | |
2695 | not byte position. | |
2696 | (e_write): Argument changed. Handle new way of composition. | |
2697 | ||
2698 | * fns.c (Flength): The length of char-table is MAX_CHAR. | |
2699 | (concat): Adjusted for the change of CHAR_STRING. | |
2700 | (Ffillarray): Adjusted for the change of CHAR_STRING. | |
2701 | (Fset_char_table_default): Delete codes for a composite character. | |
2702 | (hash_put): Return hash index. | |
2703 | ||
2704 | * fontset.h (struct font_info): New member vertical_centering. | |
2705 | (Vvertical_centering_font_regexp): Extern it. | |
2706 | ||
2707 | * fontset.c (Vvertical_centering_font_regexp): New variable. | |
2708 | (syms_of_fontset): Declare it as a Lisp variable and initialize. | |
2709 | Set Vignore_relative_composition to nil. | |
2710 | (fs_load_font): Initialize `vertical_centering' of struct | |
2711 | font_info. | |
2712 | ||
2713 | * indent.c (check_composition): New function. | |
2714 | (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with | |
2715 | MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM. | |
2716 | (current_column_1): Handle new way of composition. | |
2717 | (Fmove_to_column): Likewise. | |
2718 | (compute_motion): Likewise. | |
2719 | ||
2720 | * insdel.c (copy_text): Adjusted for the change of CHAR_STRING. | |
2721 | (insert_char): Likewise. | |
2722 | (insert): Call update_compositions. | |
2723 | (insert_and_inherit): Likewise. | |
2724 | (insert_before_markers): Likewise. | |
2725 | (insert_before_markers_and_inherit): Likewise. | |
2726 | (insert_from_string): Likewise. | |
2727 | (insert_from_string_before_markers): Likewise. | |
2728 | (insert_from_buffer): Likewise. | |
2729 | (replace_range): Likewise. | |
2730 | (count_combining_composition): Deleted. | |
2731 | (count_combining_before): Delete codes for a composite character. | |
2732 | (count_combining_after): Likewise. | |
2733 | (del_range_1): Call update_compositions. | |
2734 | (del_range_byte): Likewise. | |
2735 | (del_range_both): Likewise. | |
2736 | (Fcombine_after_change_execute): Likewise. | |
2737 | ||
2738 | * intervals.h: Include composite.h. | |
2739 | (get_property_and_range): Extern it. | |
2740 | (Vtext_property_default_nonsticky): Extern it. | |
2741 | ||
2742 | * intervals.c (adjust_intervals_for_insertion): To check stickines | |
2743 | of properties, pay attention to text-property-default-nonsticky. | |
2744 | (merge_properties_sticky): Likewise. | |
2745 | (get_property_and_range): New function. | |
2746 | ||
2747 | * keyboard.c (Vdisable_point_adjustment): New variable. | |
2748 | (Vglobal_disable_point_adjustment): New variable. | |
2749 | (syms_of_keyboard): Declare them as Lisp variables. | |
2750 | (command_loop_1): Check them and call adjust_point_for_property if | |
2751 | necessary. | |
2752 | (adjust_point_for_property): New function. | |
2753 | ||
2754 | * keymap.c (push_key_description): Adjusted for the change of | |
2755 | CHAR_STRING. | |
2756 | (Ftext_char_description): Likewise. | |
2757 | ||
2758 | * lisp.h (QCtest, QCweakness, Qequal): Extern them. | |
2759 | (hash_put): Adjusted for the change of the definition. | |
2760 | (signal_after_change): Likewise. | |
2761 | (check_point_in_composition): Extern it. | |
2762 | ||
2763 | * lread.c (readchar): Adjusted for the change of CHAR_STRING. | |
2764 | Delete a code that handles an invalid too-long multibyte sequence | |
2765 | because we are now sure that we never encounter with such a | |
2766 | sequence. | |
2767 | (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not | |
2768 | MAX_LENGTH_OF_MULTI_BYTE_FORM. | |
2769 | (init_obarray): Likewise. | |
2770 | (read1): Likewise. Adjusted for the change of CHAR_STRING. | |
2771 | ||
2772 | * print.c (printchar): Adjusted for the change of CHAR_STRING. | |
2773 | ||
2774 | * process.c: Include composite.h. | |
2775 | (read_process_output): Call update_compositions. | |
2776 | ||
2777 | * regex.c (regex_compile): Adjusted for the change of CHAR_STRING. | |
2778 | ||
2779 | * search.c (search_buffer): Adjusted for the change of CHAR_STRING. | |
2780 | ||
2781 | * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite | |
2782 | character. | |
2783 | ||
2784 | * term.c (encode_terminal_code): Delete codes for a composite | |
2785 | character. Adjusted for the change of CHAR_STRING. | |
2786 | (produce_glyphs): When called, it->what can be IT_COMPOSITION. | |
2787 | Delete codes for a composite character. | |
2788 | ||
2789 | * textprop.c (Vtext_property_default_nonsticky): New variable | |
2790 | (syms_of_textprop): Declare it as a Lisp variable. | |
2791 | ||
2792 | * window.c (Frecenter): Clear all caches of compositions. | |
2793 | ||
2794 | * xdisp.c (it_props): Add an entry for composition. | |
2795 | (face_before_or_after_it_pos): For composition, check face of a | |
2796 | character after the composition. | |
2797 | (handle_composition_prop): New function. | |
2798 | (get_next_display_element): Adjusted for the change of | |
2799 | CHAR_STRING. | |
2800 | (set_iterator_to_next): Handle the case that it->method == | |
2801 | next_element_from_composition. | |
2802 | (next_element_from_composition): New function. | |
2803 | (message_dolog): Adjusted for the change of CHAR_STRING. | |
2804 | (set_message_1): Likewise. | |
2805 | (check_point_in_composition): New function. | |
2806 | (reconsider_clip_changes): If point moved into or out of | |
2807 | composition, set b->clip_changed to 1 to force updating of the | |
2808 | screen. | |
2809 | (disp_char_vector): Delete codes for a composite character. | |
2810 | (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING. | |
2811 | ||
2812 | * xfaces.c (choose_face_fontset_font): Delete codes for a | |
2813 | composite character. | |
2814 | (realize_x_face): Likewise. Change a place to set local variable | |
2815 | `f' to avoid a bug of GCC 2.8.1 on Solaris. | |
2816 | ||
2817 | * xfns.c: Include intervals.h. | |
2818 | (syms_of_xfns): Make `display' property nonsticky by default. | |
2819 | ||
2820 | * xselect.c (lisp_data_to_selection_data): Adjusted for the change | |
2821 | for find_charset_in_str. | |
2822 | ||
2823 | * xterm.h (struct x_output): Change member font_baseline to | |
2824 | baseline_offset. | |
2825 | ||
2826 | * xterm.c (x_append_glyph): Setup members of struct glyph properly | |
2827 | for composition. | |
2828 | (x_append_composite_glyph): New function. | |
2829 | (VCENTER_BASELINE_OFFSET): New macro. | |
2830 | (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members | |
2831 | of struct it for the composition. Cache pixel offsets in the | |
2832 | struct composition. Delete codes for a composite character. | |
2833 | Handle Vignore_relative_composition in composition code. | |
2834 | (struct glyph_string): Delete member cmpcharp, add new member cmp. | |
2835 | (x_set_cursor_gc): Check s->cmp, not s->cmpcharp. | |
2836 | (x_compute_glyph_string_overhangs): Likewise. | |
2837 | (x_get_glyph_overhangs): Delete codes for a composite character. | |
2838 | (x_right_overwritten): Check s->cmp, not s->cmpcharp. | |
2839 | (x_draw_glyph_string_background): Likewise. Delete codes for | |
2840 | checking s->gidx for a composition. | |
2841 | (x_draw_glyph_string_foreground): Delete code for a composite | |
2842 | character. | |
2843 | (x_draw_composite_glyph_string_foreground): New function. | |
2844 | (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp. | |
2845 | (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH. | |
2846 | (struct work): Deleted. | |
2847 | (x_fill_composite_glyph_string): Argument changed. Mostly | |
2848 | rewritten for that. | |
2849 | (x_fill_glyph_string): Don't check CHARSET_COMPOSITION. | |
2850 | (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here. | |
2851 | (BUILD_COMPOSITE_GLYPH_STRING): New macro. | |
2852 | (BUILD_GLYPH_STRINGS): For composition, call | |
2853 | BUILD_COMPOSITE_GLYPH_STRING. | |
2854 | (x_new_font): Initialize f->output_data.x->baseline_offset, not | |
2855 | f->output_data.x->font_baseline. | |
2856 | ||
c3c60f13 GM |
2857 | 1999-12-14 Gerd Moellmann <gerd@gnu.org> |
2858 | ||
2859 | * xterm.c (show_mouse_face): Don't use updated_area, use | |
2860 | TEXT_AREA. | |
2861 | ||
83c8f461 | 2862 | 1999-12-12 Richard M. Stallman <rms@gnu.org> |
c838eb57 RS |
2863 | |
2864 | * minibuf.c (Fall_completions): Doc fix. | |
2865 | ||
83c8f461 | 2866 | 1999-12-12 Richard M. Stallman <rms@gnu.org> |
c838eb57 RS |
2867 | |
2868 | * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro | |
2869 | has been changed by the Lisp code. | |
2870 | ||
d8eccf12 GM |
2871 | 1999-12-12 Gerd Moellmann <gerd@gnu.org> |
2872 | ||
2873 | * xfns.c: Indentation fixes. | |
2874 | ||
ae56feae SM |
2875 | 1999-12-10 Stefan Monnier <monnier@cs.yale.edu> |
2876 | ||
2877 | * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared. | |
2878 | ||
dfa1c6ae GM |
2879 | 1999-12-10 Gerd Moellmann <gerd@gnu.org> |
2880 | ||
2881 | * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) | |
2882 | [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h. | |
2883 | ||
2884 | * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved | |
2885 | to frame.h. | |
2886 | ||
ec18280f SM |
2887 | 1999-12-09 Stefan Monnier <monnier@cs.yale.edu> |
2888 | ||
2889 | * keyboard.c (Qratio): New symbol. | |
2890 | (scroll_bar_parts): Add `Qratio' to it. | |
2891 | (syms_of_keyboard): Init `Qratio'. | |
2892 | * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'. | |
2893 | * xterm.c (#includes): Allow compilation with only Xaw. | |
2894 | (xaw3d_arrow_scroll, xaw3d_pick_top): New variables. | |
2895 | (xt_action_hook): Replace XAW3D by XAW. | |
2896 | (xaw3d_jump_callback): Renamed to xaw_jump_callback. | |
2897 | (xaw_jump_callback): Renamed from xaw3d_jump_callback. | |
2898 | Determine epsilon dynamically and don't try to be too clever. | |
2899 | (xaw3d_scroll_callback): Renamed to xaw_scroll_callback. | |
2900 | (xaw_scroll_callback): Renamed from xaw3d_scroll_callback. | |
2901 | Handle both Xaw3d with arrow-scrollbars and with Xaw-style | |
2902 | scrollbar (using `ratio'). | |
2903 | (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d | |
2904 | scrollbar we have so as to set it up more optimally and to fix | |
2905 | xaw3d_arrow_scroll and xaw3d_pick_top. | |
2906 | (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the | |
2907 | bottom of the Xaw3d scrollbar, to work around its tendency to refuse | |
2908 | shrinking the thumb. Also make sure that `XawScrollbarSetThumb' | |
2909 | is not ignored, using a major gross hack. | |
2910 | (x_initialize): Init default values for xaw3d_arrow_scroll and | |
2911 | xaw3d_pick_top. | |
2912 | ||
83b6d970 DL |
2913 | 1999-12-09 Dave Love <fx@gnu.org> |
2914 | ||
2915 | * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE. | |
2916 | ||
3648c842 GM |
2917 | 1999-12-08 Gerd Moellmann <gerd@gnu.org> |
2918 | ||
2919 | * eval.c: Remove conditional compilation on `standalone'. | |
2920 | (call_debugger): When entering the debugger while redisplaying, | |
2921 | reset redisplaying_p, and go back to the top-level if the debugger | |
2922 | returns. | |
2923 | ||
05e71564 GM |
2924 | 1999-12-07 Gerd Moellmann <gerd@gnu.org> |
2925 | ||
2926 | * xfaces.c (x_set_menu_resources_from_menu_face): Make sure | |
2927 | basic faces are realized before trying to use face `menu'. | |
2928 | ||
2929 | * window.c (delete_window): Block input for the time window | |
2930 | matrices are being changed. | |
2931 | ||
b46cd536 DL |
2932 | 1999-12-07 Dave Love <fx@gnu.org> |
2933 | ||
2934 | * lread.c (Fintern_soft): Fix newlines in doc string. | |
2935 | ||
96acb1f7 GM |
2936 | 1999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br> |
2937 | ||
2938 | * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed | |
2939 | duplicate definition of ElfW. | |
2940 | (find_section): Copied from unexsgi.c. | |
2941 | (unexec): Use find_section. Adjust whitespace. Initialize | |
2942 | new_data2_offset based on old_data, not sbss (this fixes a bug on | |
2943 | IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific. | |
2944 | Adjust test for presence of .mdebug section to the new return | |
2945 | value of find_section. | |
2946 | ||
2947 | 1999-12-07 Gerd Moellmann <gerd@gnu.org> | |
2948 | ||
2949 | * unexelf.c: Merge changes from 20.5. | |
2950 | (unexec): Handle .lit4 and .lit8 unconditionally. | |
2951 | ||
2952 | * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of | |
2953 | unexsgi.o again. | |
2954 | ||
2955 | * m/iris5d.h (UNEXEC): Likewise. | |
2956 | ||
7dae4502 SM |
2957 | 1999-12-06 Stefan Monnier <monnier@cs.yale.edu> |
2958 | ||
2959 | * editfns.c (Fdelete_and_extract_region): New function. | |
05e71564 GM |
2960 | (syms_of_editfns): Register it. |
2961 | * insdel.c (del_range): Update del_range_1 call. | |
7dae4502 SM |
2962 | (del_range_1, del_range_2): Add a ret_string argument to |
2963 | request that the deleted text be returned. | |
2964 | (del_range_byte, del_range_both): Update del_range_2 call. | |
05e71564 | 2965 | * lisp.h (del_range_1, del_range_2): Change prototype |
7dae4502 SM |
2966 | * casefiddle.c (casify_region): Update del_range_1 call. |
2967 | * coding.c (code_convert_region): Update del_range_2 call. | |
2968 | * fileio.c (Finsert_file_contents): Update del_range_2 call. | |
2969 | ||
397e4fae GM |
2970 | 1999-12-06 Gerd Moellmann <gerd@gnu.org> |
2971 | ||
2972 | * xfaces.c (set_lface_from_font_name): Fix incomplete merge. | |
2973 | ||
3d973f71 GM |
2974 | 1999-12-04 Hrvoje Niksic <hniksic@iskon.hr> |
2975 | ||
2976 | * lread.c (Fintern_soft): Accept a symbol argument. | |
2977 | ||
740e985f EZ |
2978 | 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il> |
2979 | ||
2980 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000. | |
809f3d51 EZ |
2981 | |
2982 | * insdel.c (adjust_markers_for_delete): Fix last change. | |
2983 | ||
2d764c78 EZ |
2984 | 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il> |
2985 | ||
2986 | Changes for automatic remapping of X colors on terminal frames: | |
2987 | ||
2988 | * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X | |
2989 | frames. | |
2990 | (Vface_tty_color_alist): Remove. | |
2991 | (tty_defined_color): New function. | |
2992 | (defined_color): Rewrite to support any type of frame. | |
2993 | (tty_color_name): New function. | |
2994 | (face_color_supported_p, Fface_color_gray_p, | |
2995 | Fface_color_supported_p): Support non-X frames. | |
2996 | (load_color): Enclose the color name in quotes, in the log | |
2997 | messages. Remove DOS-specific version of load_color. | |
2998 | (realize_tty_face): Take the supported colors from | |
2999 | tty-color-alist. Support translation of X colors to the closest | |
3000 | tty color, for both MSDOS and tty frames. | |
3001 | [MSDOS]: Don't invert face colors if they were taken from the | |
3002 | frame colors. | |
3003 | (Fface_register_tty_color, Fface_clear_tty_colors): Remove. | |
3004 | ||
3005 | * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]: | |
3006 | Define a mostly empty surrogate. | |
3007 | (tty_display): Declare. | |
3008 | ||
3009 | * frame.c (make_terminal_frame) [!macintosh]: Don't use | |
3010 | tty_display. | |
3011 | (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P | |
3012 | frames when the frame's param_alist includes 'reverse. | |
3013 | (tty_display): Define. | |
3014 | (make_terminal_frame) [!MSDOS]: Assign &tty_display to the | |
3015 | output_data.x member. | |
3016 | (Fframe_parameters): Return foreground and background color names | |
3017 | on tty frames as well, in addition to MSDOS frames. | |
3018 | ||
3019 | * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object | |
3020 | selected_frame. | |
3021 | (struct x_output): Remove unused members; document who uses each | |
3022 | member. | |
3023 | (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE, | |
3024 | FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES, | |
3025 | FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES, | |
3026 | FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove | |
3027 | unused macro definintions. | |
3028 | ||
3029 | * msdos.c (IT_set_frame_parameters): Don't call | |
3030 | recompute_basic_faces, the next redisplay will, anyway. | |
3031 | (x_current_display): Remove unused variable. | |
3032 | Many functions: changes for Lisp_object selected_frame. | |
3033 | (IT_set_face): If the tty_reverse_p flag is set for the face, | |
3034 | reverse the foreground and background colors. | |
3035 | (Fmsdos_remember_default_colors): New function. | |
3036 | (syms_of_msdos): Defsubr it. | |
3037 | (IT_set_frame_parameters): Use initial_screen_colors[] when | |
3038 | creating a new frame. If the frame parameters include 'reverse, | |
3039 | swap the foreground and background colors. | |
3040 | (internal_terminal_init): Initialize initial_screen_colors to -1. | |
3041 | (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up | |
3042 | cus-start.el. | |
3043 | ||
3044 | * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc. | |
3045 | ||
3046 | * xfns.c (x_defined_color): Rename from defined_color. All | |
3047 | callers changed. | |
3048 | (Fxw_color_defined_p): Renamed from Fx_color_defined_p; | |
3049 | all callers changed. | |
3050 | (Fxw_color_values): Renamed from Fx_color_values; all callers | |
3051 | changed. | |
3052 | (Fxw_display_color_p): Renamed from Fx_display_color_p; all | |
3053 | callers changed. | |
3054 | (x_window_to_frame, x_any_window_to_frame, | |
3055 | x_non_menubar_window_to_frame, x_menubar_window_to_frame, | |
3056 | x_top_window_to_frame): Use !FRAME_X_P instead of | |
3057 | f->output_data.nothing. | |
3058 | * xterm.h (x_defined_color): Rename from defined_color. | |
3059 | ||
3060 | * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of | |
3061 | f->output_data.nothing. | |
3062 | (Fxw_color_defined_p): Renamed from Fx_color_defined_p; | |
3063 | all callers changed. | |
3064 | (Fxw_color_values): Renamed from Fx_color_values; all callers | |
3065 | changed. | |
3066 | (Fxw_display_color_p): Renamed from Fx_display_color_p; all | |
3067 | callers changed. | |
3068 | ||
3069 | * dispextern.h (tty_color_name): Add prototype. | |
3070 | ||
3071 | * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of | |
3072 | f->output_data.nothing. | |
3073 | * w32menu.c (menubar_id_to_frame): Likewise. | |
3074 | * w32term.h (w32_output): Declare. | |
3075 | ||
3076 | * dosfns.c (Qmsdos_color_translate): Remove. | |
3077 | (msdos_stdcolor_name): Now returns a Lisp_Object. | |
3078 | * dosfns.h (Qmsdos_color_translate): Remove. | |
3079 | ||
3080 | * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support. | |
3081 | ||
b3e5232e KH |
3082 | 1999-12-06 Kenichi Handa <handa@etl.go.jp> |
3083 | ||
3084 | * fileio.c (decide_coding_unwind): Renamed from | |
3085 | set_auto_coding_unwind. | |
3086 | (Finsert_file_contents): Make single unwind protect to call both | |
3087 | Vset_auto_coding_function and Ffind_operation_coding_system. | |
3088 | ||
3089 | * insdel.c (adjust_markers_for_delete): Make it non-static. | |
3090 | ||
db0e466c SM |
3091 | 1999-12-04 Stefan Monnier <monnier@cs.yale.edu> |
3092 | ||
3093 | * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy | |
3094 | operators and handle them properly. | |
3095 | * regex.h (RE_ALL_GREEDY): New option. | |
3096 | (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic | |
3097 | sorting would put it. | |
3098 | (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP) | |
3099 | (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior. | |
3100 | ||
22afa6e8 DL |
3101 | 1999-12-04 Dave Love <d.love@dl.ac.uk> |
3102 | ||
3103 | * m/arm.h: New file. | |
3104 | ||
40afb967 DL |
3105 | 1999-12-03 Dave Love <fx@gnu.org> |
3106 | ||
3107 | * editfns.c (Fmessage_or_box): Use use_dialog_box. | |
3108 | ||
ddf8eff5 GM |
3109 | 1999-12-02 Gerd Moellmann <gerd@gnu.org> |
3110 | ||
3111 | * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed | |
3112 | for building with Motif. | |
3113 | ||
3114 | * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of | |
3115 | unexelf.o. | |
3116 | ||
3117 | * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o. | |
3118 | ||
fa09a82d DL |
3119 | 1999-12-01 Dave Love <fx@gnu.org> |
3120 | ||
3121 | * emacs.c (main): Set LANG=C iff AX3_2 defined. | |
3122 | ||
ddf8eff5 GM |
3123 | 1999-11-28 Gerd Moellmann <gerd@gnu.org> |
3124 | ||
3125 | * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE) | |
3126 | (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New | |
3127 | macros. | |
3128 | ||
3129 | * config.in (HAVE_SETITIMER, HAVE_UALARM): New. | |
3130 | ||
fa09a82d DL |
3131 | 1999-11-28 eliz <eliz@dlpx1> |
3132 | ||
3133 | * emacs.c (synchronize_locale): Avoid compiler warnings about | |
3134 | pointer type mismatch. | |
3135 | ||
f9632fc8 GM |
3136 | 1999-11-28 Gerd Moellmann <gerd@gnu.org> |
3137 | ||
717d0121 GM |
3138 | * window.c (Fwindow_end): Don't call temp_set_pt_both with |
3139 | out of range position. | |
3140 | ||
f9632fc8 GM |
3141 | * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>: |
3142 | Switch off busy-cursor by setting inhibit_busy_cursor to 2. | |
3143 | ||
59c65f1e EZ |
3144 | 1999-11-28 Eli Zaretskii <eliz@is.elta.co.il> |
3145 | ||
613a8346 EZ |
3146 | * charset.c (Fmake_char_internal): Print the charset ID when |
3147 | signalling an error. | |
3148 | ||
59c65f1e EZ |
3149 | * emacs.c (synchronize_locale): Avoid compiler warnings about |
3150 | pointer type mismatch. | |
3151 | ||
83c8f461 | 3152 | 1999-11-26 Richard M. Stallman <rms@gnu.org> |
d01f3570 RS |
3153 | |
3154 | * editfns.c (Fdelete_field): Make it noninteractive. Return nil. | |
3155 | ||
18df9369 GM |
3156 | 1999-11-26 Gerd Moellmann <gerd@gnu.org> |
3157 | ||
65a3ccf7 GM |
3158 | * puresize.h (BASE_PURESIZE): Increase to 550000. |
3159 | ||
b3b98592 GM |
3160 | * textprop.c (set_text_properties): New function. Like |
3161 | Fset_text_properties, but with additional parameter | |
3162 | SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after | |
3163 | changes. | |
3164 | (Fset_text_properties): Use it. | |
3165 | ||
3166 | * insdel.c (insert_1_both): Call set_text_properties with last | |
3167 | parameter nil so that no after changes will be signaled. | |
3168 | ||
3169 | * lisp.h: Add prototype for set_text_properties. | |
3170 | ||
18df9369 GM |
3171 | * xfaces.c (set_lface_from_font_name): Fix previous change. |
3172 | (recompute_basic_faces): Change assert to abort. | |
3173 | ||
71a8e74b DL |
3174 | 1999-11-25 Dave Love <fx@gnu.org> |
3175 | ||
3176 | * fns.c (Fnthcdr, Fnreverse): Inline cdr. | |
3177 | (Fmember, Fdelq, Fdelete): Inline car. | |
3178 | (Fy_or_n_p): Doc fix. | |
3179 | ||
bc6a5782 GM |
3180 | 1999-11-25 Gerd Moellmann <gerd@gnu.org> |
3181 | ||
3221576b | 3182 | * xfaces.c (set_lface_from_font_name): New parameter may_fail_p. |
18df9369 | 3183 | Callers changed. If specified font name is bogus, and may_fail_p |
3221576b GM |
3184 | is not set, try to use a reasonable default. |
3185 | ||
bc6a5782 GM |
3186 | * dispnew.c (direct_output_for_insert): Set glyph row's |
3187 | displays_text_p flag. Correct window's window_end_vpos if | |
3188 | necessary. | |
3189 | ||
0c8559bb PE |
3190 | 1999-11-25 Paul Eggert <eggert@twinsun.com> |
3191 | ||
3192 | * emacs.c (fixup_locale): Don't bother to record initial locale. | |
3193 | (synchronize_locale): If the desired locale is nil, | |
3194 | treat it as if it were the empty string, | |
3195 | so that we set the locale from the environment. | |
3196 | ||
35737351 KH |
3197 | 1999-11-25 Kenichi Handa <handa@etl.go.jp> |
3198 | ||
3199 | * fileio.c (Finsert_file_contents): Set buffer-file-coding-system | |
3200 | of the current buffer via Fset. | |
3201 | ||
5562b47f DL |
3202 | 1999-11-24 Dave Love <fx@gnu.org> |
3203 | ||
3204 | * xfns.c: Don't duplicate Qdisplay definition done elsewhere. | |
3205 | ||
3206 | * xfaces.c: Don't duplicate Qmode_line definition done elsewhere. | |
3207 | ||
3208 | * xfns.c: Don't duplicate Qdisplay definition done elsewhere. | |
3209 | ||
00da0e4a GM |
3210 | 1999-11-24 Gerd Moellmann <gerd@gnu.org> |
3211 | ||
3212 | * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0. | |
3213 | ||
3214 | * emacs.c (PVEC_FLAG): New variable. | |
3215 | ||
b1775dc1 GM |
3216 | 1999-11-23 Gerd Moellmann <gerd@gnu.org> |
3217 | ||
3218 | * unexaix.c (unexec): Use unsigned instead of uintptr_t because | |
3219 | that fails on IBM PowerPC, AIX 4.2. | |
3220 | ||
08de6200 EZ |
3221 | 1999-11-22 Eli Zaretskii <eliz@is.elta.co.il> |
3222 | ||
3223 | * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc | |
3224 | string of mode-line-format. Remove the obsolete %t. | |
3225 | ||
02fda8ff GM |
3226 | 1999-11-22 Gerd Moellmann <gerd@gnu.org> |
3227 | ||
f2fa858f GM |
3228 | * dispnew.c (direct_output_for_insert): Increment glyph positions |
3229 | for glyphs from buffer text only. | |
3230 | ||
02fda8ff GM |
3231 | * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits) |
3232 | (gdb_data_seg_bits): New variables. | |
3233 | ||
3234 | * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't | |
3235 | work on systems not allowing enumerators > INT_MAX, and it | |
3236 | won't work if EMACS_INT is long long. | |
3237 | ||
1b0d24e7 PE |
3238 | 1999-11-22 Paul Eggert <eggert@twinsun.com> |
3239 | ||
3240 | Port to SunOS 4.1.x again. Help out with Alpha port. | |
3241 | Rename messages-locale to system-messages-locale, | |
3242 | and likewise for time-locale. | |
3243 | ||
3244 | * callproc.c (strerror): Remove decl. | |
3245 | * fileio.c (strerror): Likewise. | |
3246 | * process.c (strerror): Likewise. | |
3247 | * emacs.c (strerror): Likewise. | |
3248 | (Vsystem_messages_locale): Renamed from Vmessages_locale. | |
3249 | All uses changed. | |
3250 | (Vprevious_system_messages_locale): Likewise, from | |
3251 | Vprevious_messages_locale. | |
3252 | (Vsystem_time_locale): Likewise, from Vtime_locale. | |
3253 | (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale. | |
3254 | (ABORT_RETURN_TYPE): New macro. | |
3255 | (abort): Return type is now ABORT_RETURN_TYPE. | |
3256 | (main): Always invoke init_signals, even if POSIX_SIGNALS is not | |
3257 | defined. | |
3258 | (syms_of_emacs): messages-locale -> system-messages-locale, | |
3259 | previous-messages-locale -> previous-system-messages-locale, | |
3260 | time-locale -> system-time-locale, | |
3261 | previous-time-locale -> previous-system-time-locale. | |
3262 | ||
3263 | * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined. | |
3264 | (const): Do not define; that's config.h's job. | |
3265 | (<limits.h>): Include if HAVE_LIMITS_H is defined. | |
3266 | (CHAR_BIT): Move test for definedness outside of limits.h condition. | |
3267 | (<stddef.h>): Include if STDC_HEADERS is defined. | |
3268 | (FREE_RETURN_TYPE): New macro. | |
3269 | (free): Return type is now FREE_RETURN_TYPE. | |
3270 | ||
3271 | * lisp.h (synchronize_system_time_locale): Renamed from | |
3272 | synchronize_time_locale. All uses changed. | |
3273 | (synchronize_system_messages_locale): Likewise, from | |
3274 | synchronize_messages_locale. | |
3275 | ||
3276 | * m/alpha.h (malloc, realloc, calloc): Remove decls; | |
3277 | stdlib.h now does this. | |
3278 | ||
3279 | * process.c (sys_siglist): Remove. | |
3280 | ||
3281 | * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE): | |
3282 | New macros. | |
3283 | ||
3284 | * syntax.c (scan_sexps_forward): Use abort, not assert. | |
3285 | ||
3286 | * sysdep.c (my_sys_siglist): New var. | |
3287 | (sys_siglist): New macro. Remove old initialized vars of same name. | |
3288 | (init_signals): Initialize sys_siglist. | |
3289 | ||
3290 | * xfns.c (abort): Remove decl; stdlib.h now does this. | |
3291 | ||
0dcd5b54 DL |
3292 | 1999-11-18 Dave Love <fx@gnu.org> |
3293 | ||
946173ad DL |
3294 | * filelock.c: Add forward declaration for get_boot_time_1. |
3295 | ||
0dcd5b54 DL |
3296 | * dispnew.c (Finternal_show_cursor_p): Fix doc string. |
3297 | ||
71447e8f GM |
3298 | 1999-11-18 Gerd Moellmann <gerd@gnu.org> |
3299 | ||
3300 | * buffer.h (struct buffer_text): Add comment about moving | |
3301 | buffer text if REL_ALLOC is defined. | |
3302 | ||
eeedff63 KH |
3303 | 1999-11-18 Kenichi Handa <handa@etl.go.jp> |
3304 | ||
3305 | * lisp.h (KEY_DESCRIPTION_SIZE): New macro. | |
3306 | ||
3307 | * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free | |
3308 | memory for push_key_description. | |
3309 | ||
3310 | * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to | |
3311 | allocate memory for push_key_description. | |
3312 | (describe_buffer_bindings): Likewise. | |
3313 | ||
5d7e4a2c GM |
3314 | 1999-11-17 Gerd Moellmann <gerd@gnu.org> |
3315 | ||
3316 | * xfns.c (Fx_show_busy_cursor): Doc-fix. | |
3317 | (Fx_hide_busy_cursor): Ditto. | |
3318 | ||
3319 | 1999-11-17 Marco Walther <walther@siemens-pyramid.com> | |
3320 | ||
3321 | * unexsni.c (unexec): Handle .rel.dyn section. | |
3322 | ||
b5b41e02 DL |
3323 | 1999-11-16 Dave Love <fx@gnu.org> |
3324 | ||
3325 | * doc.c (Fdocumentation): Remove gcpro here too. | |
3326 | ||
e35b6123 GM |
3327 | 1999-11-16 Gerd Moellmann <gerd@gnu.org> |
3328 | ||
3329 | * keyboard.c (command_loop_1): Remove no_redisplay. | |
3330 | ||
83c8f461 | 3331 | 1999-11-16 Richard M. Stallman <rms@gnu.org> |
0a14b9bb GM |
3332 | |
3333 | * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing | |
3334 | in noninteractive. | |
3335 | ||
b05d3bee GM |
3336 | 1999-11-14 Gerd Moellmann <gerd@gnu.org> |
3337 | ||
5bcfeb49 GM |
3338 | * xdisp.c (ensure_echo_area_buffers): New. |
3339 | (with_echo_area_buffer): Use it. | |
3340 | (setup_echo_area_for_printing): Ditto. | |
3341 | ||
b05d3bee GM |
3342 | * buffer.c (indicate-empty-lines): Doc-fix. |
3343 | ||
9b2e6e4c GM |
3344 | 1999-11-12 Gerd Moellmann <gerd@gnu.org> |
3345 | ||
e7f90eab GM |
3346 | * term.c (term_init): If "op" isn't available, don't support color |
3347 | because we can't switch back to the default foreground and | |
3348 | background. | |
3349 | ||
9b2e6e4c GM |
3350 | * doc.c (Fdocumentation_property): Remove GCPRO because |
3351 | Fsubstitute_command_keys gcpro's the string. | |
3352 | ||
1bf21027 KH |
3353 | 1999-11-12 Kenichi Handa <handa@etl.go.jp> |
3354 | ||
3355 | * editfns.c (Ftranslate_region): Check the buffer multibyteness. | |
3356 | ||
3bc6df53 GM |
3357 | 1999-11-11 Gerd Moellmann <gerd@gnu.org> |
3358 | ||
3359 | * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c, | |
3360 | lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h, | |
3361 | buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES. | |
3362 | ||
35a5514b GM |
3363 | 1999-11-10 Gerd Moellmann <gerd@gnu.org> |
3364 | ||
3365 | * xfns.c (QCuser_data): Removed. | |
3366 | (syms_of_xfns): Initialization of QCuser_data removed. | |
3367 | (parse_image_spec): Don't handle :user-data specially. Allow | |
3368 | unknown keys. Remove parameter ALLOW_OTHER_KEYS. | |
3369 | (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p) | |
3370 | (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call | |
3371 | parse_image_spec accordingly. | |
3372 | ||
83c8f461 | 3373 | 1999-11-09 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
3374 | |
3375 | * cmds.c (Fbeginning_of_line): Doc fix. | |
3376 | (Fend_of_line): Doc fix. | |
3377 | ||
3378 | * editfns.c (Fline_beginning_position): If N is not 1, | |
3379 | pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE. | |
3380 | ||
3381 | * syntax.c (Fforward_word): Handle fields even if would have hit | |
3382 | an edge of the buffer. Return nil if affected by fields. | |
3383 | ||
83c8f461 | 3384 | 1999-11-09 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
3385 | |
3386 | * editfns.c (preceding_pos): Function deleted. | |
3387 | (text_property_stickiness): Decrement POS directly. | |
3388 | Fix a confusion that used PT instead of POS. | |
3389 | ||
3390 | * editfns.c (find_field): Properly handle the case | |
3391 | of a field boundary where `field' inherits from neither side. | |
3392 | ||
3393 | * editfns.c (Ffield_beginning, Ffield_end): Doc fixes. | |
3394 | (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes. | |
3395 | ||
fa9aabf6 GM |
3396 | 1999-11-08 Gerd Moellmann <gerd@gnu.org> |
3397 | ||
3398 | * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the | |
3399 | BEFORE_POTENTIAL_GC before DISCARD. | |
3400 | ||
4015b3c0 GM |
3401 | 1999-11-07 Gerd Moellmann <gerd@gnu.org> |
3402 | ||
033a5fa3 GM |
3403 | * alloc.c (Fgarbage_collect): Call unmark_byte_stack. |
3404 | ||
3405 | * lisp.h: Add prototype for unmark_byte_stack. | |
3406 | ||
3407 | * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK. | |
3408 | (unmark_byte_stack): Renamed from relocate_byte_pcs. Use | |
3409 | XUNMARK. | |
3410 | ||
55b064bd GM |
3411 | * xdisp.c (resize_mini_window): Fix computation of needed |
3412 | mini-window height. | |
3413 | ||
3414 | * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional | |
3415 | compilation on USE_TEXT_PROPERTIES. | |
01e9b9df | 3416 | |
4015b3c0 | 3417 | * Fbyte_code: Use block statements in cases and declare v1 and v2 |
60af03f1 | 3418 | locally there. Rearrange case statements so that those most |
4015b3c0 GM |
3419 | frequently executed come first. Avoid goto's in frequently |
3420 | executed cases. | |
3421 | ||
fe512f27 GM |
3422 | 1999-11-05 Gerd Moellmann <gerd@gnu.org> |
3423 | ||
dd59e217 GM |
3424 | * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and |
3425 | AFTER_POTENTIAL_GC around internal_catch. | |
3426 | ||
bcf28080 GM |
3427 | * alloc.c (Fgarbage_collect): Call mark_byte_stack and |
3428 | relocate_byte_pcs. | |
3429 | (init_alloc_once, init_alloc): Set byte_stack_list to null. | |
3430 | ||
3431 | * eval.c (struct catchtag): Add member byte_stack. | |
3432 | (internal_catch, Fcondition_case, internal_condition_case) | |
dd59e217 | 3433 | (internal_condition_case_1): Save value of byte_stack_list in |
bcf28080 GM |
3434 | catchtag. |
3435 | (unwind_to_catch): Restore byte_stack_list from catchtag. | |
3436 | ||
3437 | * lisp.h: Add prototypes for new functions in bytecode.c. | |
3438 | Add extern declaration for byte_stack_list. | |
3439 | ||
3440 | * bytecode.c (struct byte_stack): New. | |
3441 | (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New | |
3442 | (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New. | |
3443 | (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten. | |
3444 | (HANDLE_RELOCATION): Removed. | |
3445 | (Fbyte_code): Use byte_stack structures. | |
3446 | ||
4d59c34c GM |
3447 | * filelock.c (Ffile_locked_p): Make FILENAME a required argument. |
3448 | ||
fe512f27 GM |
3449 | * buffer.c (syms_of_buffer): Extend documentation of |
3450 | mode-line-format. | |
3451 | ||
60b64cd6 GM |
3452 | 1999-11-04 Gerd Moellmann <gerd@gnu.org> |
3453 | ||
3454 | * editfns.c (Fdelete_field): Renamed from Ferase_field. | |
3455 | ||
3456 | * minibuf.c (do_completion, Fminibuffer_complete_word): Use | |
3457 | Ferase_field instead of Fdelete_field. | |
3458 | ||
b51b619b GM |
3459 | 1999-11-03 Gerd Moellmann <gerd@gnu.org> |
3460 | ||
3461 | * dispnew.c (Finternal_show_cursor): Change it to set the | |
3462 | cursor on/off, not toggle its state. | |
3463 | (Finternal_show_cursor_p): New. | |
3464 | (syms_of_display): Defsubr Sinternal_show_cursor_p. | |
3465 | ||
5865af0d DL |
3466 | 1999-11-03 Dave Love <fx@gnu.org> |
3467 | ||
3468 | * charset.c (split_non_ascii_string): Define return value. | |
3469 | ||
82a700f3 GM |
3470 | 1999-11-03 Gerd Moellmann <gerd@gnu.org> |
3471 | ||
edfef199 GM |
3472 | * minibuf.c (string_to_object): New. |
3473 | (read_minibuf_noninteractive): New. | |
3474 | (read_minibuf): Call read_minibuf_noninteractive if | |
3475 | noninteractive. Use string_to_object. | |
3476 | ||
82a700f3 GM |
3477 | * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO. |
3478 | ||
b5540f0d DL |
3479 | 1999-11-02 Dave Love <fx@gnu.org> |
3480 | ||
e69dcd60 DL |
3481 | * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1). |
3482 | ||
827a1788 DL |
3483 | * process.c: Define _GNU_SOURCE before config.h to get strsignal |
3484 | declared with glibc2. | |
b5540f0d | 3485 | |
a69a6e61 GM |
3486 | 1999-11-02 Gerd Moellmann <gerd@gnu.org> |
3487 | ||
3488 | * lisp.h (QUIT): Give it statement form. | |
3489 | ||
87e21fbd DL |
3490 | 1999-11-02 Dave Love <fx@gnu.org> |
3491 | ||
3492 | * eval.c (init_eval): Conditionalize declaration of gcpro_level. | |
3493 | ||
1b335865 GM |
3494 | 1999-11-02 Gerd Moellmann <gerd@gnu.org> |
3495 | ||
9fb5e03d GM |
3496 | * xfns.c (QCuser_data): New. |
3497 | (syms_of_xfns): Initialize QCuser_data. | |
3498 | (parse_image_spec): Ignore :user-data DATA properties. | |
3499 | ||
1b335865 GM |
3500 | * xdisp.c (display_line): Set charpos of first glyph in blank |
3501 | lines not corresponding to any text to -1, even if no glyphs are | |
3502 | filled in in that line. | |
3503 | ||
e76f1c44 GM |
3504 | 1999-11-01 Gerd Moellmann <gerd@gnu.org> |
3505 | ||
36fcd3d9 GM |
3506 | * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using |
3507 | png_get_sRGB in #ifdef. | |
3508 | ||
111259b4 GM |
3509 | * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor. |
3510 | (syms_of_display): Use the new name. | |
3511 | ||
dd5c96e8 GM |
3512 | * textprop.c (verify_interval_modification): Signal text-read-only |
3513 | instead of calling error. | |
3514 | ||
db8878fb GM |
3515 | * data.c (Qtext_read_only): New built-in error. |
3516 | (syms_of_data): Initialize it. | |
3517 | ||
3518 | * lisp.h: Add extern declaration for Qtext_read_only. | |
3519 | ||
e76f1c44 GM |
3520 | * syntax.c: Remove whitespace after open or in front of closing |
3521 | parentheses. | |
3522 | ||
83c8f461 | 3523 | 1999-11-01 Richard M. Stallman <rms@gnu.org> |
cb3a6c48 GM |
3524 | |
3525 | * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h. | |
3526 | ||
7843e09c GM |
3527 | 1999-10-31 Gerd Moellmann <gerd@gnu.org> |
3528 | ||
575ed805 GM |
3529 | * xdisp.c (resize_mini_window): Compute needed height differently. |
3530 | ||
7843e09c GM |
3531 | * fns.c (Flength): Unroll loop over lists. |
3532 | ||
3533 | * xdisp.c (append_space): Return non-zero if space was appended. | |
3534 | (display_line): Set charpos of first glyph to -1 only if that | |
3535 | glyph is the space added by append_glyph. | |
3536 | ||
83c8f461 | 3537 | 1999-10-30 Richard M. Stallman <rms@gnu.org> |
cb3a6c48 GM |
3538 | |
3539 | * print.c (strout): Consider `noninteractive' and use stdout | |
3540 | only when PRINTCHARFUN is t. | |
3541 | ||
3542 | * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'. | |
3543 | (gcpro_level): Declare it extern. | |
3544 | [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5): | |
3545 | Alternate definitions that set `level' and increment `gcpro_level'. | |
3546 | [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level. | |
3547 | ||
3548 | * eval.c [DEBUG_GCPRO] (gcpro_level): New variable. | |
3549 | (init_eval) [DEBUG_GCPRO]: Initialize it. | |
3550 | (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level | |
3551 | from remaining gcprolist. | |
3552 | ||
3636f7a3 KH |
3553 | 1999-10-29 Kenichi Handa <handa@etl.go.jp> |
3554 | ||
3555 | * coding.c (code_convert_region): Update `dst' correctly. | |
3556 | ||
a2ad7096 GM |
3557 | 1999-10-28 Gerd Moellmann <gerd@gnu.org> |
3558 | ||
3559 | * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc) | |
3560 | (Frassoc): Rewritten. | |
3561 | ||
1e3196e8 GM |
3562 | 1999-10-27 Noah Friedman <friedman@splode.com> |
3563 | ||
3564 | * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'. | |
3565 | Define PTY_NAME_SPRINTF. | |
3566 | Redefine PTY_TTY_NAME_SPRINTF. | |
3567 | * config.in: Add undef for HAVE_DEV_PTMX. | |
3568 | ||
83c8f461 | 3569 | 1999-10-26 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
3570 | |
3571 | * regex.c (POP_FAILURE_POINT): Use failure_id.integer | |
3572 | as arg to DEBUG_POP and DEBUG_PRINT. | |
3573 | ||
83c8f461 | 3574 | 1999-10-27 Richard M. Stallman <rms@gnu.org> |
17dbfaad GM |
3575 | |
3576 | * data.c (Qad_activate_internal): Renamed from Qad_activate. | |
3577 | (Ffset): Call Qad_activate_internal. | |
3578 | (syms_of_data): Initialize Qad_activate_internal. | |
3579 | ||
26922151 GM |
3580 | 1999-10-27 Gerd Moellmann <gerd@gnu.org> |
3581 | ||
3582 | * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if | |
3583 | Vterminal_frame is selected and Vwindow_system is non-nil. | |
3584 | ||
67a5596f GM |
3585 | 1999-10-26 Gerd Moellmann <gerd@gnu.org> |
3586 | ||
2bea706b GM |
3587 | * xdisp.c (echo_area_display): Put previous change in #if 0. |
3588 | ||
67a5596f GM |
3589 | * emacs.c (standard_args): Add `file' as synonym for `visit', |
3590 | `execute' as synonym for `eval'. | |
3591 | (main): Add new options to usage message. | |
3592 | ||
81dc5de5 GM |
3593 | 1999-10-25 Gerd Moellmann <gerd@gnu.org> |
3594 | ||
3595 | * data.c (Qhash_table): New. | |
3596 | (Ftype_of): Return it for hash tables. | |
3597 | (syms_of_data): Initialize Qhash_table. | |
3598 | ||
83c8f461 | 3599 | 1999-10-25 Richard M. Stallman <rms@gnu.org> |
bd3c545d GM |
3600 | |
3601 | * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer. | |
3602 | ||
66e4690f | 3603 | 1999-10-24 Ken Raeburn <raeburn@gnu.org> |
3a7093d8 | 3604 | |
7539e11f KR |
3605 | * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including |
3606 | lisp.h. | |
3607 | ||
3608 | * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer, | |
3609 | Fbuffer_local_variables, Fother_buffer, record_buffer, | |
3610 | set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables, | |
3611 | swap_out_buffer_local_variables, overlays_at, overlays_in, | |
3612 | overlay_touches_p, overlay_strings, recenter_overlay_lists, | |
3613 | fix_overlays_in_range, fix_overlays_before, Foverlay_get, | |
3614 | Foverlay_put, report_overlay_modification, evaporate_overlays): | |
3615 | Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member | |
3616 | references. | |
3617 | * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr, | |
3618 | swap_in_symval_forwarding, set_internal, default_value, | |
3619 | Fset_default, Fmake_variable_buffer_local, Fmake_local_variable, | |
3620 | Fmake_variable_frame_local, Flocal_variable_p, | |
3621 | Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long, | |
3622 | Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise. | |
3623 | * dispnew.c (Fframe_or_buffer_changed_p): Likewise. | |
3624 | * emacs.c (main): Likewise. | |
3625 | * fontset.c (fs_load_font, fs_register_fontset, | |
3626 | CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset, | |
3627 | Fnew_fontset, Fset_fontset_font): Likewise. | |
3628 | * frame.c (do_switch_frame, next_frame, prev_frame, | |
3629 | other_visible_frames, Fdelete_frame, Fvisible_frame_list): | |
3630 | Likewise. | |
3631 | * keyboard.c (read_char, help_char_p, event_to_kboard, | |
3632 | kbd_buffer_get_event, timer_start_idle, timer_check, | |
3633 | make_lispy_event, apply_modifiers, reorder_modifiers, | |
3634 | Fevent_convert_list, lucid_event_type_list_p, menu_bar_items, | |
3635 | menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item, | |
3636 | tool_bar_items, read_char_x_menu_prompt, read_key_sequence, | |
3637 | Fcommand_execute, Fexecute_extended_command): Likewise. | |
3638 | * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion, | |
3639 | Fall_completions): Likewise. | |
3640 | * window.c (Fset_window_margins): Likewise. | |
3641 | ||
3642 | * callint.c (quotify_args): Don't explicitly use struct | |
3643 | Lisp_Cons, use Lisp_Object and XCAR/XCDR instead. | |
3644 | ||
3a7093d8 KR |
3645 | * s/netbsd.h (HAVE_GETLOADAVG): Define as 1. |
3646 | (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions, | |
3647 | if __ELF__ is defined. | |
3648 | ||
2a3d7146 GM |
3649 | 1999-10-24 Gerd Moellmann <gerd@gnu.org> |
3650 | ||
3651 | * window.c (Fnext_window): Add a QUIT in the loop. | |
3652 | ||
8ac52782 GM |
3653 | 1999-10-23 Gerd Moellmann <gerd@gnu.org> |
3654 | ||
3655 | * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs): | |
3656 | New targets. | |
3657 | ||
05f0d15a DL |
3658 | 1999-10-22 Dave Love <fx@gnu.org> |
3659 | ||
3660 | * emacs.c (main): Enable profiling conditional on __linux also. | |
3661 | ||
882fb0e6 GM |
3662 | 1999-10-20 Gerd Moellmann <gerd@gnu.org> |
3663 | ||
3664 | * xrdb.c (x_load_resources): Set default resources for resource | |
3665 | classes instead of for the specific Emacs. | |
3666 | ||
b5f5bc31 GM |
3667 | 1999-10-19 Gerd Moellmann <gerd@gnu.org> |
3668 | ||
66f4dd69 GM |
3669 | * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h |
3670 | defines it that way. | |
3671 | ||
b5f5bc31 GM |
3672 | * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing |
3673 | if selected_frame is equal to Vterminal_frame. | |
3674 | ||
68c45bf0 PE |
3675 | 1999-10-19 Paul Eggert <eggert@twinsun.com> |
3676 | ||
3677 | Add support for large files, 64-bit Solaris, system locale codings. | |
3678 | ||
3679 | * Makefile.in (emacs): Set the LC_ALL environment variable to "C" | |
3680 | when dumping, so that the dumped Emacs doesn't have stray locale info. | |
3681 | (dired.o): Depend on systime.h. | |
3682 | (editfns.o): Depend on coding.h. | |
3683 | ||
3684 | * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c, | |
3685 | dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c, | |
3686 | keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c, | |
3687 | unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c, | |
3688 | w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c: | |
3689 | Include <config.h> before any system include files. | |
3690 | ||
3691 | * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c, | |
3692 | fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c, | |
3693 | m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c, | |
3694 | xmenu.c, xterm.c: | |
3695 | Do not include <stdlib.h>, as <config.h> does this now. | |
3696 | ||
3697 | * callproc.c (Fcall_process): | |
3698 | Synchronize messages locale before invoking strerror. | |
3699 | Decode resulting string with locale-coding-system. | |
3700 | ||
3701 | * coding.c (Vlocale_coding_system): New var. | |
3702 | (syms_of_coding): Adjust to above change. | |
3703 | (emacs_strerror): New function. | |
3704 | ||
3705 | * coding.h (emacs_strerror, Vlocale_coding_system): New decls. | |
3706 | ||
3707 | * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING, | |
3708 | HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN, | |
3709 | HAVE_STRSIGNAL): New macros. | |
3710 | (BITS_PER_LONG): Default to 64 if _LP64 is defined. | |
3711 | <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't. | |
3712 | ||
3713 | * dired.c: Include "systime.h". | |
3714 | (Ffile_attributes): Do not cast s.st_size to int; this loses | |
3715 | information if int is 32 bits but st_size and EMACS_INT are larger. | |
3716 | Treat large device numbers like large inode numbers. | |
3717 | ||
3718 | * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available. | |
3719 | ||
3720 | * editfns.c: Include coding.h. | |
3721 | (emacs_strftime): Remove decl. | |
3722 | (emacs_strftimeu): New decl. | |
3723 | (emacs_memftimeu): Renamed from emacs_memftime; new arg UT. | |
3724 | Use emacs_strftimeu instead of emacs_strftime. | |
3725 | (Fformat_time_string): Convert format string using | |
3726 | Vlocale_coding_system, and convert result back. Synchronize time | |
3727 | locale before invoking lower level function. Invoke | |
3728 | emacs_memftimeu, passing ut, instead of emacs_memftime. | |
3729 | ||
3730 | * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined. | |
3731 | (Vmessages_locale, Vprevious_messages_locale, Vtime_locale, | |
3732 | Vprevious_time_locale): New variables. | |
3733 | (main): Invoke setlocale early, so that initial error messages are | |
3734 | localized properly. But skip locale-setting if LC_ALL is "C". | |
3735 | Fix up locale when it's safe to do so. | |
3736 | (fixup_locale): Moved here from xterm.c. | |
3737 | (synchronize_locale, synchronize_time_locale, | |
3738 | synchronize_messages_locale): New functions. | |
3739 | (syms_of_emacs): Accommodate above changes. | |
3740 | ||
3741 | * fileio.c (report_file_error): Convert strerror output according | |
3742 | to Vlocale_coding_system. | |
3743 | (Finsert_file_contents): Check for arithmetic overflow in | |
3744 | computations that depend on file size. Report IO errors | |
3745 | with emacs_strerror, not strerror. | |
3746 | ||
3747 | * fns.c (Fgethash): Declare dflt parameter. | |
3748 | ||
3749 | * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H | |
3750 | is defined; that's config.h's job. | |
3751 | ||
3752 | * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64, | |
3753 | default these values to long, BITS_PER_LONG, and unsigned long. | |
3754 | (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT. | |
3755 | (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int. | |
3756 | (code_convert_string_norecord, fixup_locale, | |
3757 | synchronize_messages_locale, synchronize_time_locale, | |
3758 | emacs_open, emacs_close, emacs_read, emacs_write): New decls. | |
3759 | All Emacs callers of open, close, read, write changed to use | |
3760 | emacs_open, emacs_close, emacs_read, emacs_write. | |
3761 | ||
3762 | * lread.c (file_offset, file_tell): New macros. All uses of ftell | |
3763 | changed to file_tell. | |
3764 | (saved_doc_string_position, prev_saved_doc_string_position): Now | |
3765 | of type file_offset. | |
3766 | (init_lread): Do not fix locale here; fixup_locale now does this. | |
3767 | ||
3768 | * m/amdahl.h, s/usg5-4.h: | |
3769 | (NSIG): Remove. | |
3770 | (NSIG_MINIMUM): New macro. | |
3771 | ||
3772 | * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h, | |
3773 | m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h, | |
3774 | s/umips.h, s/usg5-4.h: | |
3775 | (SIGIO): Do not undef. | |
3776 | (BROKEN_SIGIO): New macro. | |
3777 | ||
3778 | * m/ustation.h: | |
3779 | (SIGTSTP): Do not undef. | |
3780 | (BROKEN_SIGTSTP): New macro. | |
3781 | ||
3782 | * s/gnu-linux.h: | |
3783 | (SIGPOLL, SIGURG): Do not undef. | |
3784 | (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros. | |
3785 | ||
3786 | * s/ptx4.h: | |
3787 | (SIGINFO): Do not undef. | |
3788 | (BROKEN_SIGINFO): New macros. | |
3789 | ||
3790 | * m/delta.h, s/ptx.h, s/template.h: Doc fix. | |
3791 | ||
3792 | * mktime.c, strftime.c: Update to glibc 2.1.2 version, with | |
3793 | some Emacs-related changes merged. | |
3794 | ||
3795 | * print.c (float_to_string): Prepend "-" to representation of a | |
3796 | NaN if the NaN is negative. | |
3797 | ||
3798 | * process.c (sys_siglist): Omit if HAVE_STRSIGNAL. | |
3799 | (wait_reading_process_input): Use emacs_strerror, not strerror. | |
3800 | ||
3801 | * process.c (status_message, sigchld_handler): Synchronize locale, | |
3802 | then use strsignal istead of sys_siglist. | |
3803 | * w32proc.c (sys_wait): Likewise. | |
3804 | ||
3805 | * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h, | |
3806 | s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h, | |
3807 | s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, | |
3808 | s/usg5-2.h, s/usg5-3.h, s/xenix.h: | |
3809 | (open, close, read, write, INTERRUPTIBLE_OPEN, | |
3810 | INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove. | |
3811 | ||
3812 | * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros. | |
3813 | ||
3814 | * sysdep.c (sys_read, sys_write, read, write, sys_close, close, | |
3815 | sys_open, open): Remove. | |
3816 | (emacs_open, emacs_close, emacs_read, emacs_write): Always define; | |
3817 | the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO | |
3818 | macros are no longer used. | |
3819 | (emacs_open): Renamed from sys_open. Merge BSD4_1 version. | |
3820 | (emacs_close): Renamed from sys_close. | |
3821 | (emacs_read): Renamed from sys_read. | |
3822 | (emacs_write): Renamed from sys_write. | |
3823 | (sys_siglist): Do not declare if HAVE_STRSIGNAL. | |
3824 | (dup2): Do not print error on failure; the real dup2 doesn't. | |
3825 | (strsignal): New function, defined if !HAVE_STRSIGNAL. | |
3826 | ||
3827 | * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO | |
3828 | is defined. | |
3829 | (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise. | |
3830 | (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM. | |
3831 | (strsignal): Declare if !HAVE_STRSIGNAL. | |
3832 | ||
3833 | * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros. | |
3834 | (ElfW): Define in terms of ElfExpandBitsW. | |
3835 | ||
3836 | * w32proc.c (sys_siglist): Remove decl. | |
3837 | ||
3838 | * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply | |
3839 | with ANSI C. | |
3840 | (display_string): Declare face_string_pos arg. | |
3841 | ||
3842 | * xfns.c (Fx_show_tip): Declare timeout param. | |
3843 | ||
3844 | * xterm.c: No need to include locale.h. | |
3845 | (x_alloc_lighter_color, x_setup_relief_color): | |
3846 | Pass arg as double, not float, for compatibility with ANSI C. | |
3847 | (fixup_locale): Move to emacs.c. | |
3848 | (x_term_init): Do not setlocale or fixup locale; the main program | |
3849 | does this now. | |
3850 | ||
2f0b74ea DL |
3851 | 1999-10-18 Dave Love <fx@gnu.org> |
3852 | ||
3853 | * doc.c (Fdocumentation_property): Gcpro `tem'. | |
3854 | ||
471aa4a0 KH |
3855 | 1999-10-18 Kenichi Handa <handa@etl.go.jp> |
3856 | ||
3857 | * lread.c (Fload): Calculate bytes of filename correctly. | |
3858 | (openp): Likewise. | |
3859 | ||
aca2020b KH |
3860 | 1999-10-18 Keisuke Nishida <kxn30@po.cwru.edu> |
3861 | ||
3862 | * print.c (print_preprocess): In case print-circle is nil, | |
3863 | add OBJ to Vprint_number_table only when OBJ is a symbol. | |
3864 | ||
1f5fe392 | 3865 | 1999-10-18 Kenichi Handa <handa@etl.go.jp> |
b843d1ae KH |
3866 | |
3867 | * coding.c (code_convert_string): Add record_unwind_protect to | |
3868 | assure setting inhibit_pre_post_conversion back to zero. Take | |
3869 | care of the multibyteness of the working buffer. | |
3870 | ||
3871 | * coding.c (inhibit_pre_post_conversion): New variable. | |
3872 | (setup_coding_system): If inhibit_pre_post_conversion is nonzero, | |
3873 | ignore post-read-conversion and pre-write-conversion property of | |
3874 | the coding system. | |
3875 | (code_convert_region_unwind): New function. | |
3876 | (code_convert_region): Set inhibit_pre_post_conversion to 1 while | |
3877 | running pre-write-conversion and post-read-conversion. | |
3878 | (code_convert_string): Likewise. | |
3879 | ||
cd876a91 GM |
3880 | 1999-10-17 Miles Bader <miles@gnu.org> |
3881 | ||
3882 | * editfns.c: Doc fix. | |
3883 | ||
3884 | 1999-10-17 Miles Bader <miles@gnu.org> | |
3885 | ||
3886 | * editfns.c (Fconstrain_to_field): Make sure we don't violate the | |
3887 | argument preconditions of find_before_next_newline in the case | |
3888 | where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS | |
3889 | was indeed at the edge. | |
3890 | ||
3891 | 1999-10-17 Miles Bader <miles@gnu.org> | |
3892 | ||
3893 | * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new | |
3894 | ESCAPE_FROM_EDGE parameter to Ffield_beginning. | |
3895 | ||
3896 | * editfns.c (text_property_eq, text_property_stickiness): Don't | |
3897 | use initializers for auto variables of type Lisp_Object. | |
3898 | (find_field): Likewise. Use braces around nested ifs. | |
3899 | (Fline_end_position): Store the raw eol in a variable, so that the | |
3900 | final expression doesn't look so ugly. | |
3901 | (Fconstrain_to_field): Doc fix. | |
3902 | (preceding_pos): Renamed from `preceeding_pos'. | |
3903 | (text_property_stickiness, find_field): Call preceding_pos, | |
3904 | not preceeding_pos. | |
3905 | ||
3906 | 1999-10-17 Miles Bader <miles@gnu.org> | |
3907 | ||
3908 | * editfns.c (Ffield_string_no_properties): New function. | |
3909 | (text_property_stickiness, preceeding_pos): New functions. | |
3910 | (Ffield_string): Remove PROPS parameter. | |
3911 | (find_field): Add MERGE_AT_BOUNDARY parameter. | |
3912 | Rewrite to use stickiness of `field' property to resolve | |
3913 | ambiguous cases. | |
3914 | (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter. | |
3915 | (Fconstrain_to_field): Likewise. | |
3916 | (syms_of_editfns): Init Sfield_string_no_properties. | |
3917 | (Ffield_string, Ferase_field, Ffield_end): | |
3918 | Supply new MERGE_AT_BOUNDARY argument to find_field. | |
3919 | (Fline_beginning_position, Fline_end_position): Supply new | |
3920 | ESCAPE_FROM_EDGE parameter to Fconstrain_to_field. | |
3921 | Pass a value of Qt for the ONLY_IN_LINE argument to | |
3922 | Fconstrain_to_field (only matters if N != 1). | |
3923 | * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter | |
3924 | to Fconstrain_to_field. | |
3925 | ||
3926 | * minibuf.c (Fminibuffer_complete_word): Use | |
3927 | Ffield_beginning to find the prompt end. | |
3928 | ||
3929 | 1999-10-17 Miles Bader <miles@gnu.org> | |
3930 | ||
3931 | * editfns.c (Fconstrain_to_field): Add get/set-current-point | |
3932 | behavior when NEW_POS is nil. | |
3933 | (find_field): Use XSETFASTINT instead of make_number. | |
3934 | * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty | |
3935 | input string by seeing where the field begins, instead of | |
3936 | looking at text-properties. | |
3937 | ||
3938 | 1999-10-17 Miles Bader <miles@gnu.org> | |
3939 | ||
3940 | * editfns.c (Qfield): New variable. | |
3941 | (find_field, Ferase_field, Ffield_string, | |
3942 | Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions. | |
3943 | (Fline_beginning_position, Fline_end_position): Constrain to any field. | |
3944 | (make_buffer_string_both): Remove minibuffer-prompt hack. | |
3945 | (syms_of_editfns): Initialize Qfield, and subr entries for | |
3946 | field functions above. | |
3947 | * minibuf.c (read_minibuf): Don't save minibuffer prompt length on | |
3948 | minibuf_save_list. | |
3949 | Don't initialize minibuffer prompt length. | |
3950 | Wrap prompt text-properties around the entire prompt. | |
3951 | Add 'prompt text-property to prompt. | |
3952 | Get final value with Ffield_string instead of make_buffer_string. | |
3953 | (read_minibuf_unwind): Don't restore minibuffer prompt length from | |
3954 | minibuf_save_list. | |
3955 | (do_completion): Get minibuffer input with Ffield_string | |
3956 | instead of Fbuffer_string. | |
3957 | Erase minibuffer input with Ferase_field instead of erase_buffer. | |
3958 | (Fminibuffer_complete_and_exit): Likewise. | |
3959 | Test whether buffer is empty by looking for the 'prompt text | |
3960 | property at the end. | |
3961 | Set prompt length by looking for the end of the prompt text property, | |
3962 | and save prompt length for later use (since there is no longer a | |
3963 | buffer variable to get it from). | |
3964 | (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed. | |
3965 | (syms_of_minibuf): Remove initializations of | |
3966 | Sminibuffer_prompt_width and Sminibuffer_prompt_end. | |
3967 | * buffer.h (struct buffer): Remove prompt_end_charpos field. | |
3968 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer): | |
3969 | Don't initialize prompt_end_charpos field. | |
3970 | * syntax.c (Fforward_word): Likewise. | |
3971 | Constrain to any field. | |
3972 | ||
3f6f7508 GM |
3973 | 1999-10-16 Gerd Moellmann <gerd@gnu.org> |
3974 | ||
3975 | * window.c (enum save_restore_action): New. | |
3976 | (save_restore_orig_size): Change parameter list. Add | |
3977 | functionality to check for valid orig_top and orig_height members | |
3978 | in a window tree. | |
3979 | (grow_mini_window): Call save_restore_orig_size with new parameter | |
3980 | list. | |
3981 | (shrink_mini_window): Restore old window sizes only if old | |
3982 | size information is valid in all windows in a window tree. | |
3983 | ||
06482119 GM |
3984 | 1999-10-15 Gerd Moellmann <gerd@gnu.org> |
3985 | ||
2710454d GM |
3986 | * xmenu.c (set_frame_menubar): Don't call |
3987 | x_set_menu_resources_from_menu_face here. | |
3988 | (update_frame_menubar): Call x_set_menu_resources_from_menu_face. | |
3989 | ||
06482119 GM |
3990 | * xfns.c (gif_load): Fix handling of interlaced GIFs. |
3991 | ||
17fa2837 DL |
3992 | 1999-10-14 Dave Love <fx@gnu.org> |
3993 | ||
3994 | * xdisp.c (handle_fontified_prop): GCPRO `pos'. | |
3995 | ||
45f93416 GM |
3996 | 1999-10-14 Gerd Moellmann <gerd@gnu.org> |
3997 | ||
3998 | * process.c (Fopen_network_stream): Don't loop if gethostbyname | |
3999 | fails and h_errno is TRY_AGAIN. | |
4000 | ||
c765b723 DL |
4001 | 1999-10-13 Dave Love <fx@gnu.org> |
4002 | ||
4003 | * filelock.c (lock_file): Move gcpro of `fn'. | |
4004 | ||
dace7f4e GM |
4005 | 1999-10-10 Gerd Moellmann <gerd@gnu.org> |
4006 | ||
4007 | * keyboard.c (auto-save-interval): Fix documentation. | |
4008 | ||
83c8f461 | 4009 | 1999-10-09 Richard M. Stallman <rms@gnu.org> |
73fb36f1 RS |
4010 | |
4011 | * print.c (print): When removing objects from Vprint_number_table, | |
4012 | only scan the newly added objects. | |
4013 | (print_preprocess): If OBJ is a gensym, and print-continuous-numbering, | |
4014 | unconditionally force it to stay in the table. | |
4015 | ||
85177c86 GM |
4016 | 1999-10-09 Gerd Moellmann <gerd@gnu.org> |
4017 | ||
4018 | * xfns.c (prepare_image_for_display): Don't try to load image if | |
4019 | loading it failed before. | |
4020 | (lookup_image, prepare_image_for_display): Remember if loading the | |
4021 | image failed. | |
4022 | (xpm_load): Add missing UNBLOCK_INPUT. | |
4023 | ||
4024 | * dispextern.h (struct image): New member load_failed_p. | |
4025 | ||
11e4de5d SM |
4026 | 1999-10-08 Stefan Monnier <monnier@cs.yale.edu> |
4027 | ||
f28eba7b | 4028 | * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file' |
11e4de5d SM |
4029 | in the docstring. |
4030 | ||
f1da8f06 GM |
4031 | 1999-10-08 Gerd Moellmann <gerd@gnu.org> |
4032 | ||
4033 | * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>: | |
4034 | Don't call XSetInputFocus because that can generate additional | |
4035 | FocusIn events. | |
4036 | ||
c37bbd4f GM |
4037 | 1999-10-07 Jeffrey C Honig <jch@bsdi.com> |
4038 | ||
4039 | * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP. | |
4040 | ||
83c8f461 | 4041 | 1999-10-07 Richard M. Stallman <rms@gnu.org> |
78cc5c64 GM |
4042 | |
4043 | * process.c (wait_reading_process_input): When trying to suck | |
4044 | input from one process, for accept-process-output, | |
4045 | exit that loop if we get EAGAIN or EWOULDBLOCK. | |
4046 | ||
577d9e2f GM |
4047 | 1999-10-07 Gerd Moellmann <gerd@gnu.org> |
4048 | ||
4049 | * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p. | |
4050 | (Fbitmap_spec_p): Replaces Fpixmap_spec_p. | |
4051 | (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of | |
4052 | Fpixmap_spec_p and Qpixmap_spec_p. | |
4053 | (load_face_colors, check_lface_attrs, | |
4054 | merge_face_vector_with_property, | |
4055 | Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p. | |
4056 | (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr | |
4057 | Fbitmap_spec_p. | |
4058 | ||
f5737ad2 GM |
4059 | 1999-10-07 Gerd Moellmann <gerd@gnu.org> |
4060 | ||
4061 | * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of | |
4062 | MODE_LINE_FACE_ID. | |
4063 | ||
4064 | * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers. | |
4065 | (struct x_resources) [USE_X_TOOLKIT]: New. | |
4066 | (xm_apply_resources, xm_set_menu_resources_from_menu_face) | |
4067 | [USE_MOTIF]: New. | |
4068 | (xl_apply_resources, xl_set_menu_resources_from_menu_face) | |
4069 | [USE_LUCID]: New. | |
4070 | (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New. | |
4071 | (Qmenu): New. | |
4072 | (syms_of_xfaces): Initialize Qmenu. | |
4073 | (realize_basic_faces): Realize face `menu'. | |
4074 | (resolve_face_name): New. | |
4075 | (lface_from_face_name): Use it. | |
4076 | (Finternal_set_lisp_face_attribute): Ditto. | |
4077 | (Fpixmap_spec_p): Rewritten. Extend doc string. | |
4078 | ||
4079 | * xmenu.c (set_frame_menubar, xmenu_show): Call | |
4080 | x_set_menu_resources_from_menu_face. | |
4081 | ||
4082 | * dispextern.h (enum face_id): Add MENU_FACE_ID. | |
4083 | (toplevel): Include X11/Intrinsic.h. | |
4084 | ||
6a1aa823 DL |
4085 | 1999-10-03 Ken'ichi Handa <handa@gnu.org> |
4086 | ||
4087 | * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR | |
4088 | correctly. | |
4089 | ||
26901792 DL |
4090 | 1999-09-30 Kenichi Handa <handa@etl.go.jp> |
4091 | ||
4092 | * category.c (modify_lower_category_set): Set default value of | |
4093 | TABLE correctly. | |
4094 | ||
4095 | * minibuf.c (Fminibuffer_complete_word): Calculate string byte | |
4096 | size correctly. | |
4097 | ||
4098 | 1999-09-29 Gerd Moellmann <gerd@gnu.org> | |
4099 | ||
4100 | * editfns.c (Fpropertize): Renamed from Fproperties. | |
4101 | ||
4102 | 1999-09-29 Gerd Moellmann <gerd@gnu.org> | |
4103 | ||
4104 | * xdisp.c (resize_mini_window): Do nothing if frame is an X | |
4105 | frame that hasn't been initialized yet. | |
4106 | ||
83c8f461 | 4107 | 1999-09-28 Richard M. Stallman <rms@gnu.org> |
a04f1a93 PR |
4108 | |
4109 | * keymap.c (Fsingle_key_description): Make tem big enough. | |
4110 | (describe_buffer_bindings): Make buf big enough. | |
4111 | ||
83c8f461 | 4112 | 1999-09-27 Richard M. Stallman <rms@gnu.org> |
d177c583 PR |
4113 | |
4114 | * intervals.c (get_local_map): Use indirect_function, | |
4115 | not Findirect_function. | |
4116 | ||
26901792 DL |
4117 | 1999-09-27 Dave Love <fx@gnu.org> |
4118 | ||
4119 | * cm.h: Remove unneeded declaration of ospeed. | |
4120 | ||
4121 | 1999-09-26 Gerd Moellmann <gerd@gnu.org> | |
4122 | ||
4123 | * lisp.h (toplevel): Add prototype for | |
4124 | next_single_char_property_change. | |
4125 | ||
4126 | * textprop.c (next_single_char_property_change): New. | |
4127 | ||
4128 | * xdisp.c (display_prop_end, invisible_text_between_p): Use | |
4129 | next_single_char_property_change. | |
4130 | ||
4131 | 1999-09-25 Gerd Moellmann <gerd@gnu.org> | |
4132 | ||
4133 | * editfns.c (Fproperties): New. | |
4134 | (syms_of_editfns): Defsubr it. | |
4135 | ||
4136 | * xfns.c (lookup_image): Set image's timestamp because it's | |
4137 | used when we look it up. | |
4138 | ||
4139 | 1999-09-23 Gerd Moellmann <gerd@gnu.org> | |
4140 | ||
4141 | * window.c (enlarge_window): Add window parameter instead of using | |
4142 | selected_window. | |
4143 | (Fdisplay_buffer): Call it with window parameter instead of | |
4144 | setting selected_window. | |
4145 | (Fenlarge_window, Fshrink_window): Ditto. | |
4146 | (shrink_mini_window): If there is no recorded height and position | |
4147 | info, resize mini-window to height 1. | |
4148 | ||
4149 | * xfns.c (image_error): Use add_to_log. | |
4150 | ||
4151 | * xfaces.c (load_pixmap): Call add_to_log without frame parameter. | |
4152 | (load_face_font_or_fontset, load_color, | |
4153 | merge_face_vector_with_property): Ditto. | |
4154 | ||
4155 | * dispextern.h: Add prototype for add_to_log. | |
4156 | ||
4157 | * xfaces.c (add_to_log): Move to xdisp.c. | |
4158 | ||
4159 | * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame | |
4160 | parameter. | |
4161 | ||
4162 | 1999-09-23 Gerd Moellmann <gerd@gnu.org> | |
4163 | ||
4164 | * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef | |
4165 | USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS. | |
4166 | ||
4167 | * xdisp.c (resize_mini_window): Use grow_mini_window and | |
4168 | shrink_mini_window. | |
4169 | ||
4170 | * window.c (window_min_size): Add parameter ignore_fixed_p. | |
4171 | (change_window_height): Call window_min_size with new parameter. | |
4172 | (shrink_window_lowest_first, save_restore_orig_size, | |
4173 | grow_mini_window, shrink_mini_window): New. | |
4174 | (make_window, replace_window): Initialize orig_top and | |
4175 | orig_height. | |
4176 | (enlarge_window): Renamed from change_window_height. Make it | |
4177 | static. | |
4178 | (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call | |
4179 | enlarge_window instead of change_window_height. | |
4180 | ||
4181 | * window.h (struct window): New members orig_top, orig_height. | |
4182 | (toplevel): Add prototypes for grow_mini_window and | |
4183 | shrink_mini_window. Remove prototype for change_window_height. | |
4184 | ||
4185 | 1999-09-21 Eli Zaretskii <eliz@gnu.org> | |
4186 | ||
4187 | * frame.c (frame_name_fnn_p): Fix previous change. | |
4188 | ||
4189 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
4190 | ||
4191 | * minibuf.c (toplevel): Move include of stdio.h to other includes. | |
4192 | ||
4193 | * dispnew.c (direct_output_for_insert): Cast arguments to | |
4194 | safe_bcopy to char *. | |
4195 | ||
4196 | * lread.c (readchar): Remove unused variables. | |
4197 | (read_filtered_event, read1, Fmapatoms): Ditto. | |
4198 | (toplevel): Include intervals.h. | |
4199 | ||
4200 | * eval.c (Fsignal): Remove unused variables. | |
4201 | (Fcommandp, do_autoload): Ditto. | |
4202 | ||
4203 | * lisp.h: Add prototype for safe_bcopy, fatal. | |
4204 | ||
4205 | * editfns.c (init_editfns): Remove unused variables. | |
4206 | (Fgoto_char, Fchar_after, Fformat): Ditto. | |
4207 | (message_text, message_length): Put in #ifndef HAVE_MENUS. | |
4208 | ||
4209 | * data.c (find_symbol_value): Remove unused variables. | |
4210 | (Faref, Fstring_to_number): Ditto. | |
4211 | (toplevel): Include stdio.h. | |
4212 | (Fnumber_to_string): Cast XINT to long for %ld. | |
4213 | ||
4214 | * casefiddle.c (casify_object): Remove unused variables. | |
4215 | (casify_region): Ditto. | |
4216 | ||
4217 | * filelock.c (get_boot_time): Put local variable used in | |
4218 | conditinally compiled section in #ifdef. | |
4219 | (toplevel): Include stdio.h. | |
4220 | ||
4221 | * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector, | |
4222 | keys_of_keymap, syms_of_keymap): Remove unused variables. | |
4223 | ||
4224 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
4225 | ||
4226 | * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows | |
4227 | whose corresponding window rows have been disabled in | |
4228 | try_window_id. | |
4229 | ||
4230 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
4231 | ||
4232 | * xdisp.c (compute_window_start_on_continuation_line): Handle case | |
4233 | that window start is out of range. | |
4234 | (handle_display_prop, handle_single_display_prop): Replace | |
4235 | marginal area specifications like `left-margin' with `(margin | |
4236 | left-margin)'. | |
4237 | (Qmargin): New. | |
4238 | (syms_of_xdisp): Initialize Qmargin. | |
4239 | ||
4240 | 1999-09-19 Gerd Moellmann <gerd@gnu.org> | |
4241 | ||
4242 | * syntax.c (update_syntax_table, find_defun_start, back_comment, | |
4243 | describe_syntax, skip_chars): Remove unused variables. | |
4244 | (back_comment, forw_comment): Add braces to if-statement with | |
4245 | if-else as dependent statement. | |
4246 | ||
4247 | * process.c (list_processes_1): Remove unused variables. | |
4248 | (Fopen_network_stream, create_process): Add parentheses to | |
4249 | conditional expressions. | |
4250 | (create_process): Put declaration of sigchld in #if 0. | |
4251 | (Fopen_network_stream): Removed unused variables. | |
4252 | (Fopen_network_stream, wait_reading_process_input, | |
4253 | wait_reading_process_input, send_process, send_process): Ditto. | |
4254 | (toplevel): Add prototypes for set_waiting_for_input and | |
4255 | keyboard_bit_set. | |
4256 | ||
4257 | * abbrev.c (Fexpand_abbrev): Remove unused variables. | |
4258 | ||
4259 | * textprop.c (Fset_text_properties): Remove unused variables. | |
4260 | (text_property_list, verify_interval_modification, | |
4261 | interval_has_all_properties): Ditto. | |
4262 | ||
4263 | * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
4264 | (Fcall_process): Remove unused variable. | |
4265 | ||
4266 | * keyboard.c (Frecursive_edit): Remove unused variable. | |
4267 | (command_loop_1, safe_run_hooks, kbd_buffer_get_event, | |
4268 | timer_check, make_lispy_event, menu_bar_items, | |
4269 | menu_bar_one_keymap, menu_bar_item, parse_menu_item, | |
4270 | parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence, | |
4271 | kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt, | |
4272 | read_key_sequence): Ditto. Fread_key_sequence, | |
4273 | Fread_key_sequence_vector, Fsuspend_emacs): Ditto. | |
4274 | (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only | |
4275 | used when GOBBLE_FIRST_EVENT is defined in #ifdef | |
4276 | (Fexecute_extended_command): Cast XINT to long for %ld. | |
4277 | (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
4278 | (toplevel): Include sys/types.h. | |
4279 | ||
4280 | * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom. | |
4281 | (toplevel): Add prototypes for stuff_char, and | |
4282 | code_convert_string_norecord. | |
4283 | ||
4284 | 1999-09-19 Gerd Moellmann <gerd@gnu.org> | |
4285 | ||
4286 | * buffer.h: Add prototype for r_re_alloc. | |
4287 | ||
4288 | * insdel.c (copy_text): Removed unused variables. | |
4289 | (count_combining_after, count_combining_after, insert_1_both, | |
4290 | insert_from_string_1, insert_from_buffer_1, check_markers): Ditto. | |
4291 | (adjust_after_replace, replace_range): Add parentheses to logical | |
4292 | expressions. Remove unused variables. | |
4293 | (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical | |
4294 | expression. | |
4295 | ||
4296 | * alloc.c (Fgarbage_collect): Remove unused variable. | |
4297 | (compact_strings): Add parentheses around assignments in | |
4298 | conditional context. | |
4299 | (toplevel): Put declaration of unused function clear_marks | |
4300 | in #if 0 like its definition. | |
4301 | ||
4302 | * lisp.h: Add prototype for shrink_regexp_cache, | |
4303 | sweep_weak_hash_tables. | |
4304 | ||
4305 | 1999-09-19 Dave Love <fx@gnu.org> | |
4306 | ||
4307 | * process.c (Fopen_network_stream): Use strerror, not gai_strerror. | |
4308 | ||
4309 | * doc.c (read_bytecode_char): Declare arg. | |
4310 | ||
4311 | * lisp.h: Declare Fcurrent_message, Fmake_temp_name, | |
4312 | read_bytecode_char, Fx_hide_busy_cursor, getloadavg. | |
4313 | ||
4314 | 1999-09-18 Richard Stallman <rms@gnu.org> | |
4315 | ||
4316 | * xdisp.c (echo_area_display): Turn off code that returned | |
4317 | without doing anything when using a terminal frame. | |
4318 | ||
83c8f461 | 4319 | 1999-09-17 Richard M. Stallman <rms@gnu.org> |
27271329 PR |
4320 | |
4321 | * unexelf.c (unexec): Don't get confused by a short section | |
4322 | just before the bss section. | |
4323 | ||
26901792 DL |
4324 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> |
4325 | ||
4326 | * emacs.c (main): Remove unused variables. | |
4327 | (sort_args, Fkill_emacs, Fkill_emacs): Ditto. | |
4328 | ||
4329 | * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings, | |
4330 | init_fileio_once, syms_of_sound, init_xfns, init_fns | |
4331 | init_sound, check_message_stack. | |
4332 | ||
4333 | * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
4334 | ||
4335 | * intervals.c (rotate_right, rotate_left): Add braces to avoid | |
4336 | ambiguous else warning. | |
4337 | (split_interval_left): Remove unused variables. | |
4338 | (previous_interval, adjust_intervals_for_deletion, | |
4339 | set_point_both, set_point_both, set_intervals_multibyte_1): Ditto. | |
4340 | (icount, idepth, zero_length): Move into #if 0 section below | |
4341 | original position where these are used. | |
4342 | ||
4343 | * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free. | |
4344 | ||
4345 | * buffer.c (Fkill_buffer): Remove unused variables. | |
4346 | (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists, | |
4347 | fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change, | |
4348 | init_buffer_once, (syms_of_buffer): Ditto. | |
4349 | ||
4350 | * xrdb.c (get_fallback): Remove unused variable. | |
4351 | (x_load_resources): Ditto. Put local variable used for Motif only | |
4352 | in #ifdef USE_MOTIF. | |
4353 | ||
4354 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> | |
4355 | ||
4356 | * minibuf.c (read_minibuf): Remove unused variables. | |
4357 | (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto. | |
4358 | (do_completion): Move assignment out of conditional context. | |
4359 | (Fdisplay_completion_list): Add parentheses to conditional expression. | |
4360 | ||
4361 | * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h. | |
4362 | ||
4363 | * lisp.h: Add prototype for no_switch_window. | |
4364 | ||
4365 | * window.c (Fset_window_buffer): Remove unused variables. | |
4366 | (Fset_window_margins): Ditto. | |
4367 | ||
4368 | * xdisp.c (resize_mini_window): Temporarily set the selected | |
4369 | window's or Vminibuf_scroll_window's height to "fixed" around | |
4370 | the call the change_window_height. | |
4371 | ||
4372 | * window.c (window_fixed_size_p): Check window's height_fixed_p | |
4373 | flag. | |
4374 | ||
4375 | * window.h (struct window): New member height_fixed_p. | |
4376 | ||
4377 | * dispnew.c (direct_output_forward_char): Don't use this method | |
4378 | if showing a message or a message was just cleared because we | |
4379 | might need to resize the mini-window. | |
4380 | ||
4381 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> | |
4382 | ||
4383 | * frame.c (Fdelete_frame): Correct local variable pointing to | |
4384 | selected frame after selecting new frame. | |
4385 | ||
4386 | 1999-09-15 Richard Stallman <rms@gnu.org> | |
4387 | ||
4388 | * puresize.h (BASE_PURESIZE): Increase to 525000. | |
4389 | ||
4390 | * filelock.c (Vtemporary_file_directory): New variable. | |
4391 | (syms_of_filelock): Set up Lisp variable. | |
4392 | ||
4393 | 1999-09-15 Gerd Moellmann <gerd@gnu.org> | |
4394 | ||
4395 | * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while. | |
4396 | (encode_terminal_code): Remove unused variables. | |
4397 | (turn_off_face): Ditto. | |
4398 | (toplevel): Include termcap.h if HAVE_TERMCAP_H. | |
4399 | ||
4400 | * dispnew.c (update_frame_line): If writing whole desired line, | |
4401 | don't clear to end of line if already at the end. | |
4402 | ||
4403 | 1999-09-15 Gerd Moellmann <gerd@gnu.org> | |
4404 | ||
4405 | * xdisp.c (resize_mini_window): Don't report changed window | |
4406 | height if it actually hasn't changed. | |
4407 | ||
4408 | * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove | |
4409 | unused variables. | |
4410 | (mark_shell_size_user_specified): Put in #if 0 because not used. | |
4411 | (create_frame_gcs): Put in #if 0 because currently unused. | |
4412 | (first_frame_p): Ditto. | |
4413 | ||
4414 | * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu, | |
4415 | single_submenu, update_frame_menubar, set_frame_menubar, | |
4416 | free_frame_menubar, xmenu_show, xdialog_show): Remove unused | |
4417 | variables. | |
4418 | ||
4419 | * print.c (PRINTFULLP): Removed because it is no longer used and | |
4420 | is misleading. | |
4421 | (Ferror_message_string): Remove unused variables. | |
4422 | (print_object): Cast argument of sprintf to long for `%ld' | |
4423 | specifier. Remove unused variable. | |
4424 | ||
4425 | 1999-09-14 Gerd Moellmann <gerd@gnu.org> | |
4426 | ||
4427 | * sound.c (Fplay_sound): Remove usused variables. | |
4428 | (be2hs): Put in #if 0 because it's currently not used. | |
4429 | ||
4430 | 1999-09-14 Ken Raeburn <raeburn@gnu.org> | |
4431 | ||
4432 | * print.c (Ferror_message_string, print_error_message, | |
4433 | print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit | |
4434 | member access. | |
4435 | ||
4436 | 1999-09-14 Gerd Moellmann <gerd@gnu.org> | |
4437 | ||
4438 | * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while. | |
4439 | ||
4440 | * frame.c (Fnext_frame): Remove unused variable(s). | |
4441 | (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto. | |
4442 | (store_frame_param): Add parentheses to conditional expression. | |
4443 | (Fmodify_frame_parameters): Remove unused variables. | |
4444 | (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position): | |
4445 | Ditto. | |
4446 | ||
4447 | * xfns.c (x_set_background_color): Remove unused variable(s). | |
4448 | (x_set_border_pixel): Ditto. | |
4449 | (x_set_menu_bar_lines): Put local variable used only for | |
4450 | non-toolkit case in #ifdef/#endif. | |
4451 | (x_figure_window_size): Remove unused variable(s). | |
4452 | (x_figure_window_size, x_window, lookup_image, | |
4453 | xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load, | |
4454 | png_load, jpeg_load, gif_load, x_create_tip_frame, | |
4455 | x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto. | |
4456 | ||
4457 | * xterm.c (x_scroll_bar_handle_click): Compile only if | |
4458 | not USE_TOOLKIT_SCROLL_BARS. | |
4459 | (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto. | |
4460 | ||
4461 | * dispextern.h: Add prototypes for gamma_correct and | |
4462 | x_kill_gs_process. | |
4463 | ||
4464 | * xterm.c (x_produce_glyphs): Remove unused variable(s). | |
4465 | (x_alloc_nearest_color_for_widget, note_tool_bar_highlight, | |
4466 | x_set_toolkit_scroll_bar_thumb): Ditto. | |
4467 | (x_scroll_bar_create): Move local variable to the | |
4468 | conditionally compiled section of code where it is used. | |
4469 | (x_scroll_bar_create): Remove unused variable(s). | |
4470 | (x_scroll_bar_remove, XTread_socket): Ditto. | |
4471 | (XTread_socket) <ConfigureNotify>: Move variables used for | |
4472 | non-toolkit case into conditionally compiled section of code. | |
4473 | ||
4474 | * window.h (freeze_window_starts): Fix typo in prototype. | |
4475 | ||
4476 | * xdisp.c (display_echo_area_1, try_window_id): Remove unused | |
4477 | variable(s). | |
4478 | ||
4479 | * lisp.h: Add prototype for debug_print. | |
4480 | ||
4481 | * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition | |
4482 | to use do-while. | |
4483 | ||
4484 | * fns.c (SXHASH_COMBINE): Add missing parentheses. | |
4485 | (Fchar_table_range, Fset_char_table_default, mapcar1, | |
4486 | Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s). | |
4487 | ||
4488 | * lisp.h: Add prototype for getloadavg. | |
4489 | ||
4490 | 1999-09-14 Andreas Schwab <schwab@gnu.org> | |
4491 | ||
4492 | * process.c (Fopen_network_stream): Avoid socket decriptor leak. | |
4493 | ||
4494 | * lisp.h: Declare close_file_unwind. | |
4495 | ||
4496 | 1999-09-14 Richard Stallman <rms@gnu.org> | |
4497 | ||
4498 | * filelock.c (get_boot_time): Make the temp name in the proper dir. | |
4499 | ||
4500 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
4501 | ||
4502 | * xdisp.c (redisplay_window): Make sure start_at_line_beg | |
4503 | is always set correctly. | |
4504 | ||
4505 | 1999-09-13 Dave Love <fx@gnu.org> | |
4506 | ||
4507 | * xdisp.c (move_it_in_display_line_to): Make type consistent with | |
4508 | declaration. | |
4509 | ||
4510 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
4511 | ||
4512 | * xdisp.c (QCfile): Move here from xfns.c. | |
4513 | (syms_of_xdisp): Initialize it. | |
4514 | (message2_nolog): Change for Lisp_Object selected_frame. | |
4515 | (message3_nolog, message_with_string, message, | |
4516 | setup_echo_area_for_printing, truncate_echo_area, | |
4517 | prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto. | |
4518 | ||
4519 | 1999-09-13 Dave Love <fx@gnu.org> | |
4520 | ||
4521 | * xterm.c: Don't continue #define args for benefit of old cc. | |
4522 | (xt_action_hook): Indent #error for benefit of K&R cc. | |
4523 | ||
4524 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
4525 | ||
4526 | * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame. | |
4527 | (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto. | |
4528 | (XRINGBELL): Removed. | |
4529 | ||
4530 | 1999-09-13 Dave Love <fx@gnu.org> | |
4531 | ||
4532 | * xfns.c (x_put_x_image): Make type consistent with declaration. | |
4533 | ||
4534 | * fns.c (Fmake_hash_table): Fix string continuation. | |
4535 | ||
4536 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
4537 | ||
4538 | * xfns.c (QCfile): Moved to xdisp.c. | |
4539 | (syms_of_xfns): Don't initialize QCfile. | |
4540 | (check_x_frame): Change for Lisp_Object selected_frame. | |
4541 | (check_x_display_info, x_get_resource_string): Ditto. | |
4542 | ||
4543 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
4544 | ||
4545 | * minibuf.c (choose_minibuf_frame): Don't try to set the | |
4546 | mini-buffer window's buffer, if the buffer is invalid. | |
4547 | ||
4548 | * xfns.c (QCfile): Moved to xdisp.c. | |
4549 | (syms_of_xfns): Don't initialize QCfile. | |
4550 | ||
4551 | * xdisp.c (QCfile): Move here from xfns.c. | |
4552 | (syms_of_xdisp): Initialize it. | |
4553 | ||
4554 | * lisp.h (selected_frame): Add external declaration. | |
4555 | ||
4556 | * xselect.c (x_own_selection): Change for Lisp_Object selected_frame. | |
4557 | (Fx_store_cut_buffer_internal): Ditto. | |
4558 | (Fx_rotate_cut_buffers_internal): Ditto. | |
4559 | ||
4560 | * xfaces.c (frame_or_selected_frame): Change for Lisp_Object | |
4561 | selected_frame. | |
4562 | (Finternal_set_lisp_face_attribute): Ditto. | |
4563 | (Finternal_get_lisp_face_attribute): Ditto. | |
4564 | (Finternal_lisp_face_empty_p): Ditto. | |
4565 | (Fdump_face): Ditto. | |
4566 | ||
4567 | * term.c (OUTPUT): Change for Lisp_Object selected_frame. | |
4568 | (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes, | |
4569 | set_terminal_window, set_scroll_region, reassert_line_highlight, | |
4570 | change_line_highlight, cursor_to, raw_cursor_to, clear_to_end, | |
4571 | clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw, | |
4572 | encode_terminal_code, write_glyphs, term_init): Ditto. | |
4573 | ||
4574 | * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame. | |
4575 | (kbd_input_ast, read_input_waiting): Ditto. | |
4576 | ||
4577 | * minibuf.c (choose_minibuf_frame): Change for Lisp_Object | |
4578 | selected_frame. | |
4579 | (read_minibuf): Ditto. | |
4580 | ||
4581 | * keyboard.c (command_loop_1): Change for Lisp_Object | |
4582 | selected_frame. | |
4583 | (cmd_error_internal, command_loop_1, read_char, | |
4584 | kbd_buffer_get_event, read_avail_input, | |
4585 | read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs, | |
4586 | interrupt_signal, quit_throw_to_read_char): Ditto. | |
4587 | ||
4588 | * fontset.c (Ffont_info): Change for Lisp_Object selected_frame. | |
4589 | (Ffontset_info): DItto. | |
4590 | ||
4591 | * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame. | |
4592 | ||
4593 | * dispnew.c (selected_frame): Make it a Lisp_Object. | |
4594 | (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame. | |
4595 | (direct_output_for_insert, direct_output_forward_char, | |
4596 | init_display): Ditto. | |
4597 | ||
4598 | * data.c (swap_in_symval_forwarding): Change for Lisp_Object | |
4599 | selected_frame. | |
4600 | (set_internal): Ditto. | |
4601 | ||
4602 | * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame. | |
4603 | (record_buffer): Ditto. | |
4604 | ||
4605 | * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME. | |
4606 | (do_switch_frame): Change for Lisp_Object selected_frame. | |
4607 | (Fselected_frame): Ditto. | |
4608 | (Fframe_first_window): Use SELECTED_FRAME. | |
4609 | (Fframe_root_window): Change for Lisp_Object selected_frame. | |
4610 | (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame, | |
4611 | Fprevious_frame, other_visible_frames, Fdelete_frame, | |
4612 | Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible, | |
4613 | Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame, | |
4614 | Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height, | |
4615 | Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width, | |
4616 | Fset_frame_height, Fset_frame_width): Ditto. | |
4617 | ||
4618 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
4619 | ||
4620 | * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame. | |
4621 | (message3_nolog, message_with_string, message, | |
4622 | setup_echo_area_for_printing, truncate_echo_area, | |
4623 | prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto. | |
4624 | ||
4625 | * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame. | |
4626 | (Fx_popup_dialog): Ditto. | |
4627 | ||
4628 | * xfns.c (check_x_frame): Change for Lisp_Object selected_frame. | |
4629 | (check_x_display_info, x_get_resource_string): Ditto. | |
4630 | ||
4631 | * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame. | |
4632 | (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto. | |
4633 | (XRINGBELL): Removed. | |
4634 | ||
4635 | * window.c (Fminibuffer_window): Change for Lisp_Object | |
4636 | selected_frame. | |
4637 | (Fwindow_at, Fprevious_window, window_loop, select_window_1, | |
4638 | display_buffer_1, Fdisplay_buffer, temp_output_buffer_show, | |
4639 | Fcurrent_window_configuration, init_window_once): Ditto. | |
4640 | ||
4641 | * frame.h (SELECTED_FRAME): New. | |
4642 | ||
4643 | 1999-09-12 Ken Raeburn <raeburn@gnu.org> | |
4644 | ||
4645 | * category.c (word_boundary_p): Use XCAR and XCDR. | |
4646 | * ccl.c (ccl_driver, resolve_symbol_ccl_program, | |
4647 | Fregister_code_conversion_map): Likewise. | |
4648 | * coding.c (setup_coding_system, detect_coding_system, | |
4649 | Ffind_operation_coding_system, Fset_coding_priority_internal): | |
4650 | Likewise. | |
4651 | * doc.c (get_doc_string, Fdocumentation, | |
4652 | store_function_docstring): Likewise. | |
4653 | * editfns.c (save_restriction_restore): Likewise. | |
4654 | * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger, | |
4655 | skip_debugger, find_handler_clause, Fautoload, Fapply, | |
4656 | run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode): | |
4657 | Likewise. | |
4658 | * fileio.c (Ffind_file_name_handler, Finsert_file_contents, | |
4659 | Fwrite_region, do_auto_save_unwind, Fdo_auto_save, | |
4660 | Fread_file_name): Likewise. | |
4661 | * filelock.c (unlock_all_files): Likewise. | |
4662 | * insdel.c (Fcombine_after_change_execute): Likewise. | |
4663 | * intervals.c (adjust_intervals_for_insertion): Likewise. | |
4664 | * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent, | |
4665 | Fset_keymap_parent, fix_submap_inheritance, access_keymap, | |
4666 | store_in_keymap, Fcopy_keymap, define_as_prefix, | |
4667 | current_minor_maps, Faccessible_keymaps, | |
4668 | accessible_keymaps_char_table, Fkey_description, | |
4669 | Fwhere_is_internal, where_is_internal_2, where_is_internal_1, | |
4670 | describe_buffer_bindings, describe_map_tree, shadow_lookup, | |
4671 | describe_map): Likewise. | |
4672 | * lread.c (Fload, load_unwind, close_load_descs, read_vector, | |
4673 | read_list, init_lread): Likewise. | |
4674 | * search.c (Fmatch_data): Likewise. | |
4675 | * sunfns.c (Fsun_menu_internal): Likewise. | |
4676 | * syntax.c (describe_syntax): Likewise. | |
4677 | * undo.c (record_insert, record_delete, Fundo_boundary, | |
4678 | truncate_undo_list): Likewise. | |
4679 | * vmsproc.c (child_sig): Likewise. | |
4680 | ||
4681 | * editfns.c (Fformat): Use XFLOAT_DATA. | |
4682 | ||
4683 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
4684 | ||
4685 | * keyboard.c (command_loop_1): Resize mini-window to the | |
4686 | exact size of a message displayed, if any. | |
4687 | ||
4688 | * xdisp.c (resize_mini_window): Add parameter exact_p. Resize | |
4689 | to exact size if exact_p is non-zero. | |
4690 | (display_echo_area_1): Call resize_mini_window with | |
4691 | new parameter. | |
4692 | (redisplay_internal): Ditto. | |
4693 | (resize_echo_area_axactly): New. | |
4694 | ||
4695 | * minibuf.c (read_minibuf_unwind): Call resize_mini_window with | |
4696 | new parameter. | |
4697 | ||
4698 | * dispextern.h: Change prototype of resize_mini_window. | |
4699 | Add prototype for resize_echo_area_axactly. | |
4700 | ||
4701 | * xfaces.c (Fx_family_fonts): Replaces Fx_font_list. | |
4702 | (syms_of_xfaces): Defsubr accordingly. | |
4703 | ||
4704 | * xdisp.c (hscroll_window_tree): Choose cursor row from | |
4705 | desired or current matrix. | |
4706 | (redisplay_internal): Hscroll before updating. | |
4707 | ||
4708 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
4709 | ||
4710 | * syntax.c (Fforward_word): Use prompt_end_charpos instead | |
4711 | of minibuffer_prompt_length. | |
4712 | ||
4713 | * minibuf.c (read_minibuf): Use prompt_end_charpos instead | |
4714 | of minibuffer_prompt_length. | |
4715 | (read_minibuf_unwind): Ditto. | |
4716 | (Fminibuffer_complete_and_exit): Ditto. | |
4717 | (Fminibuffer_complete_word): Ditto. | |
4718 | (Fminibuffer_prompt_end): Ditto. | |
4719 | ||
4720 | * editfns.c (Fbuffer_string): Use prompt_end_charpos instead | |
4721 | of minibuffer_prompt_length. | |
4722 | (Fline_beginning_position): Ditto. | |
4723 | ||
4724 | * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead | |
4725 | of minibuffer_prompt_length. | |
4726 | (Fmake_indirect_buffer): Ditto. | |
4727 | (Fkill_buffer): Ditto. | |
4728 | (Ferase_buffer): Ditto. | |
4729 | ||
4730 | * buffer.h (prompt_end_charpos): Replaces | |
4731 | minibuffer_prompt_length. | |
4732 | ||
4733 | * minibuf.c (read_minibuf): Return mini-buffer contents | |
4734 | without the prompt. | |
4735 | ||
4736 | * editfns.c (make_buffer_string_both): Take out the code | |
4737 | to handle mini-buffer prompts. | |
4738 | (Fbuffer_string): Handle the prompt here, instead. | |
4739 | ||
4740 | * xfaces.c (lface_from_face_name): Resolve face aliases. | |
4741 | (Qmode_line): Replaces Qmodeline. | |
4742 | (realize_basic_faces): Use Qmode_line. | |
4743 | (syms_of_xfaces): Initialize Qmode_line. | |
4744 | ||
4745 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
4746 | ||
4747 | * minibuf.c (read_minibuf): Set minibuf_prompt_width to the | |
4748 | current column after inserting prompt. | |
4749 | (Fminibuffer_prompt_width): Return minibuf_prompt_width. | |
4750 | ||
4751 | * xfaces.c (Qframe_update_face_colors): New. | |
4752 | (syms_of_xfaces): Initialize call. | |
4753 | (update_face_from_frame_parameter): Call that function when | |
4754 | the frame's background changes. | |
4755 | ||
4756 | 1999-09-12 Richard Stallman <rms@gnu.org> | |
4757 | ||
4758 | * insdel.c (del_range_1): Don't treat minibuffer prompt specially. | |
4759 | ||
4760 | 1999-09-12 Ken Raeburn <raeburn@gnu.org> | |
4761 | ||
4762 | * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect, | |
4763 | mark_object, mark_buffer): Use XCAR and XCDR. | |
4764 | * bytecode.c (Fbyte_code): Likewise. | |
4765 | * callint.c (Fcall_interactively, Fprefix_numeric_value): | |
4766 | Likewise. | |
4767 | * callproc.c (Fcall_process, Fcall_process_region, child_setup, | |
4768 | getenv_internal): Likewise. | |
4769 | * dired.c (file_name_completion): Likewise. | |
4770 | * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq, | |
4771 | assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse, | |
4772 | Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise. | |
4773 | * indent.c (Fcompute_motion): Likewise. | |
4774 | * process.c (decode_status, Fprocess_status, Fprocess_exit_status, | |
4775 | list_processes_1, Fstart_process, Fopen_network_stream, | |
4776 | wait_reading_process_input, read_process_output_call, | |
4777 | kill_buffer_processes, sigchld_handler, exec_sentinel_unwind, | |
4778 | status_notify, wait_reading_process_input): Likewise. | |
4779 | * textprop.c (PLIST_ELT_P, property_value, set_properties, | |
4780 | extend_property_ranges): Likewise. | |
4781 | * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise. | |
4782 | * w32fns.c (x_window_to_frame, x_set_frame_parameters, | |
4783 | x_report_frame_params, x_set_cursor_type, x_icon_type, | |
4784 | x_figure_window_size, Fx_create_frame, w32_load_system_font, | |
4785 | w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts, | |
4786 | w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts, | |
4787 | Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir, | |
4788 | x_display_info_for_name, Fx_display_list): Likewise. | |
4789 | * w32menu.c (menubar_id_to_frame, single_keymap_panes, | |
4790 | Fx_popup_menu, Fx_popup_dialog): Likewise. | |
4791 | * w32proc.c (Fw32_set_keyboard_layout): Likewise. | |
4792 | * w32term.c (x_window_to_scroll_bar, w32_read_socket, | |
4793 | w32_term_init, x_delete_display): Likewise. | |
4794 | * xfns.c (x_window_to_frame, x_any_window_to_frame, | |
4795 | x_non_menubar_window_to_frame, x_menubar_window_to_frame, | |
4796 | x_top_window_to_frame, x_set_frame_parameters, | |
4797 | x_report_frame_params, x_set_cursor_type, x_icon_type, | |
4798 | x_figure_window_size, Fx_create_frame, x_display_info_for_name, | |
4799 | Fx_display_list, x_create_tip_frame): Likewise. | |
4800 | * xmenu.c (menubar_id_to_frame, single_keymap_panes, | |
4801 | Fx_popup_menu, Fx_popup_dialog): Likewise. | |
4802 | * xselect.c (x_own_selection, x_get_local_selection, | |
4803 | x_handle_selection_request, x_handle_selection_clear, | |
4804 | x_clear_frame_selections, wait_for_property_change_unwind, | |
4805 | wait_for_property_change, x_handle_property_notify, | |
4806 | copy_multiple_data, x_get_foreign_selection, | |
4807 | lisp_data_to_selection_data, clean_local_selection_data, | |
4808 | x_handle_selection_notify, Fx_get_selection_internal, | |
4809 | x_disown_buffer_selections): Likewise. | |
4810 | * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts, | |
4811 | x_load_font, x_find_ccl_program, x_term_init, x_delete_display): | |
4812 | Likewise. | |
4813 | ||
4814 | * alloc.c (make_float, make_pure_float, Fpurecopy): Use | |
4815 | XFLOAT_DATA. | |
4816 | * bytecode.c (Fbyte_code): Likewise. | |
4817 | * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver, | |
4818 | fmod_float): Likewise. | |
4819 | ||
4820 | 1999-09-11 Richard Stallman <rms@gnu.org> | |
4821 | ||
4822 | * xdisp.c (run_window_scroll_functions): If hook functions switch | |
4823 | buffers, switch back after. | |
4824 | ||
4825 | 1999-09-11 Ken Raeburn <raeburn@gnu.org> | |
4826 | ||
4827 | * charset.h (GET_TRANSLATION_TABLE): Use XCDR. | |
4828 | * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR. | |
4829 | (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA. | |
4830 | * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW, | |
4831 | POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and | |
4832 | XCDR. | |
4833 | * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and | |
4834 | XCDR. | |
4835 | ||
4836 | 1999-09-10 Richard Stallman <rms@gnu.org> | |
4837 | ||
4838 | * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent, | |
4839 | not RevertToPointerRoot. | |
4840 | (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
4841 | Fix the code to clear around the scroll bar. | |
4842 | ||
4843 | 1999-09-10 Keisuke Nishida <kxn30@po.cwru.edu> | |
4844 | ||
4845 | * print.c: Support print-circle and related features. | |
4846 | (Vprint_gensym_alist): Removed. | |
4847 | (Vprint_circle, Vprint_continuous_numbering, print_number_index | |
4848 | Vprint_number_table): New variables. | |
4849 | (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros. | |
4850 | (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist. | |
4851 | (print, print_preprocess, print_preprocess_string, print_object): | |
4852 | New/modified functions with print-circle feature. Use | |
4853 | Vprint_number_table instead of Vprint_gensym_alist for print-gensym. | |
4854 | (syms_of_print): Defined new Lisp variables `print-circle', | |
4855 | `print-continuous-numbering', `print-number-table'. | |
4856 | ||
4857 | 1999-09-10 Gerd Moellmann <gerd@gnu.org> | |
4858 | ||
4859 | * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)' | |
4860 | as background color specification instead of an integer. | |
4861 | (image-cache-eviction-delay): Replaces image-eviction-seconds. | |
4862 | (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds. | |
4863 | (clear_image_cache, syms_of_xfns): Use it. | |
4864 | (Qpostscript): Replaces Qghostscript. | |
4865 | (gs_type): Use it. | |
4866 | (gs_image_p): Ditto. | |
4867 | (syms_of_xfns): Initialize Qpostscript. | |
4868 | ||
4869 | 1999-09-10 Richard Stallman <rms@gnu.org> | |
4870 | ||
4871 | * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt. | |
4872 | ||
4873 | 1999-09-09 Richard Stallman <rms@gnu.org> | |
4874 | ||
4875 | * editfns.c (Fline_beginning_position): Handle minibuffer prompt here. | |
4876 | ||
4877 | * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here. | |
4878 | ||
4879 | 1999-09-09 Gerd Moellmann <gerd@gnu.org> | |
4880 | ||
4881 | * fns.c (Fmakehash): Accept just one optional argument TEST. | |
4882 | ||
4883 | * xfns.c (QCindex): New. | |
4884 | (syms_of_xfns): Initialize QCindex. | |
4885 | (gif_load): Use it instead of `:image'. | |
4886 | ||
4887 | 1999-09-09 Richard Stallman <rms@gnu.org> | |
4888 | ||
4889 | * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW. | |
4890 | (Fwrite_region) [DOS_NT]: Handle `excl' here too. | |
4891 | ||
4892 | 1999-09-08 Gerd Moellmann <gerd@gnu.org> | |
4893 | ||
4894 | * xdisp.c (Qwhen): Replaces QCwhen. | |
4895 | (syms_of_xdisp): Initialized it instead of QCwhen. | |
4896 | (handle_single_display_prop): Use it instead of QCwhen. | |
4897 | ||
4898 | 1999-09-08 Ken'ichi Handa <handa@gnu.org> | |
4899 | ||
4900 | * charset.c (translate_char): Reset MSBs of arguments of | |
4901 | MAKE_CHAR. | |
4902 | (CHAR_COMPONENTS_VALID_P): Fix for ASCII. | |
4903 | ||
4904 | 1999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org> | |
4905 | ||
4906 | * editfns.c (Fbufsize): Accept an extra BUFFER parameter. | |
4907 | ||
4908 | * fns.c (Fbase64_decode_region): Don't place point outside of the | |
4909 | current accessible portion. | |
4910 | ||
4911 | 1999-09-07 Richard Stallman <rms@gnu.org> | |
4912 | ||
4913 | * keymap.c (fix_submap_inheritance): Do nothing if the proper | |
4914 | parent is an ancestor of SUBMAP; otherwise, add it as the | |
4915 | ultimate ancestor. | |
4916 | ||
4917 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
4918 | ||
4919 | * xdisp.c (handle_single_display_prop): Change conditional | |
4920 | display property to `:when FORM . VALUE'. | |
4921 | ||
4922 | 1999-09-07 Richard Stallman <rms@gnu.org> | |
4923 | ||
4924 | * fileio.c (Fwrite_region): Doc fix. | |
4925 | ||
4926 | 1999-09-07 Stefan Monnier <monnier@cs.yale.edu> | |
4927 | ||
4928 | * fileio.c (Qexcl): New variable. | |
4929 | (report_file_error): Handle EEXIST specially. | |
4930 | (Fwrite_region): Special handling for CONFIRM = `excl'. | |
4931 | (syms_of_fileio): Initialize Qexcl. | |
4932 | ||
4933 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
4934 | ||
4935 | * xfns.c (x_set_foreground_color): Call | |
4936 | update_face_from_frame_parameter. | |
4937 | (x_set_background_color): Ditto. | |
4938 | (x_set_mouse_color): Ditto. | |
4939 | (x_set_cursor_color): Ditto. | |
4940 | (x_set_border_color): Ditto. | |
4941 | (x_set_scroll_bar_foreground): Ditto. | |
4942 | (x_set_scroll_bar_background): Ditto. | |
4943 | ||
4944 | * xfaces.c (recompute_basic_faces): Clear face cache. | |
4945 | (Finternal_set_lisp_face_attribute): Modify frame parameters | |
4946 | if attributes of certain faces are changed. | |
4947 | (update_face_from_frame_parameter): New. | |
4948 | ||
4949 | * xfaces.c (realize_basic_faces): Realize new basic faces. | |
4950 | ||
4951 | * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID, | |
4952 | CURSOR_FACE_ID, MOUSE_FACE_ID): New. | |
4953 | ||
4954 | * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New. | |
4955 | (syms_of_xfaces): Intialize new symbols. | |
4956 | ||
4957 | * fns.c (Fmakehash): Take one argument, test, make all the | |
4958 | rest keyword arguments. | |
4959 | ||
4960 | * window.c (Fset_window_margins): Make window the first argument. | |
4961 | (set_window_buffer): Call Fset_window_margins with window as first | |
4962 | argument. | |
4963 | ||
4964 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
4965 | ||
4966 | * xfaces.c (Qfringe): Replaces Qmargin. | |
4967 | ||
4968 | 1999-09-07 Kenichi Handa <handa@etl.go.jp> | |
4969 | ||
4970 | * charset.h: Lots of comments fixed. | |
4971 | (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string. | |
4972 | (STRING_CHAR_AND_CHAR_LENGTH): This macro removed. | |
4973 | ||
4974 | * charset.c : Lots of comments fixed. | |
4975 | (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string. | |
4976 | (CHAR_COMPONENTS_VALID_P): Name changed from | |
4977 | CHAR_COMPONENT_VALID_P. Caller changed. | |
4978 | ||
4979 | 1999-09-06 Richard Stallman <rms@gnu.org> | |
4980 | ||
4981 | * insdel.c (syms_of_insdel): Define Lisp variable | |
4982 | inhibit-modification-hooks. | |
4983 | ||
4984 | 1999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de> | |
4985 | ||
4986 | * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new | |
4987 | unexaix.c. | |
4988 | ||
4989 | * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c. | |
4990 | ||
4991 | 1999-09-06 Dave Love <fx@gnu.org> | |
4992 | ||
4993 | * unexaix.c: New version incorporating Michael Sperber's changes | |
4994 | from XEmacs. Should solve problems on AIX 4.3. | |
4995 | ||
4996 | * lread.c (Vbyte_boolean_vars): New variable. | |
4997 | (defvar_bool, syms_of_lread): Use it. | |
4998 | ||
4999 | 1999-09-05 Richard Stallman <rms@gnu.org> | |
5000 | ||
5001 | * minibuf.c (read_minibuf): Put all three properties on the | |
5002 | same range, the whole prompt. | |
5003 | ||
5004 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
5005 | ||
5006 | * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook. | |
5007 | (Fplay_sound, syms_of_sound): Use it. | |
5008 | (parse_sound): Allow float volume values in the range [0, 1]. | |
5009 | (Fplay_sound): Ditto. | |
5010 | ||
5011 | * window.c (Fset_window_vscroll): Make window the first argument, | |
5012 | amount to scroll the second. Take non-negative vscroll as | |
5013 | argument. | |
5014 | (Fwindow_vscroll): Return non-negative vscroll. | |
5015 | ||
5016 | * xfns.c (Fx_show_tip): Improve documentation. | |
5017 | ||
5018 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
5019 | ||
5020 | * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c, | |
5021 | window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change | |
5022 | `top-line' and `top_line' to `header-line' and `header_line'. | |
5023 | Likewise for similar spellings. | |
5024 | ||
5025 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
5026 | ||
5027 | * xdisp.c (row_containing_pos): New. | |
5028 | (try_window_id): Use it. | |
5029 | ||
5030 | * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c, | |
5031 | lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c: | |
5032 | Change spelling of `toolbar' to `tool_bar' or `tool-bar'. | |
5033 | Likewise for upper-case etc. | |
5034 | ||
5035 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
5036 | ||
5037 | * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
5038 | Fix reference to renamed variable. | |
5039 | ||
5040 | 1999-09-04 Gerd Moellmann <gerd@gnu.org> | |
5041 | ||
5042 | * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size. | |
5043 | (window_fixed_size_p): Use Qwindow_size_fixed instead of | |
5044 | Qfixed_window_size. | |
5045 | (syms_of_window): Ditto. | |
5046 | ||
5047 | * fns.c (Fmakehash): Exchange optional test and size arguments. | |
5048 | ||
5049 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
5050 | ||
5051 | * xterm.c (XTset_vertical_scroll_bar): Block input when clearing | |
5052 | under newly created scroll bar. | |
5053 | (expose_window): If window is not yet fully initialized, do | |
5054 | nothing. This can happen when toolkit scroll bars are used and a | |
5055 | window is split. Reconfiguring the scroll bars will generate an | |
5056 | expose for a newly created window. | |
5057 | ||
5058 | * frame.h (struct frame): New member `gamma'. | |
5059 | ||
5060 | * xfns.c: Include math.h. Add extern declaration for atof in case | |
5061 | we don't see one. | |
5062 | (Qscreen_gamma): New. | |
5063 | (struct x_frame_parm_table): Add prototypes, add | |
5064 | x_set_screen_gamma. | |
5065 | (gamma_correct): New function. | |
5066 | (defined_color): Call it. | |
5067 | (x_set_screen_gamma): New. | |
5068 | (x_set_title): Add parameter old_value. | |
5069 | (RES_TYPE_FLOAT): New. | |
5070 | (x_get_arg): Handle RES_TYPE_FLOAT. | |
5071 | (Fx_create_frame): Call x_default_parameter for `screen-gamma'. | |
5072 | (lookup_pixel_color): Change call to x_alloc_nearest_color to | |
5073 | new prototype. | |
5074 | (lookup_rgb_color): Ditto. | |
5075 | (syms_of_xfns): Initialize Qscreen_gamma. | |
5076 | ||
5077 | * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]: | |
5078 | New. Allocate color for lwlib widgets. | |
5079 | (x_alloc_nearest_color): Change parameter list include the | |
5080 | frame on which to allocate colors. Gamma-correct colors. | |
5081 | (x_alloc_lighter_color): Call x_alloc_lighter_color with new | |
5082 | parameter list. | |
5083 | ||
5084 | * xterm.h: Change protorype of x_alloc_nearest_color. | |
5085 | ||
5086 | 1999-09-03 Richard Stallman <rms@gnu.org> | |
5087 | ||
5088 | * callproc.c: Delete the system-independent include of stdlib.h | |
5089 | (leaving only the one in the WINDOWSNT conditional). | |
5090 | ||
5091 | 1999-09-03 Andrew Choi <choi@cs.hku.hk> | |
5092 | ||
5093 | * callproc.c (call-process) [macintosh]: Call mac_run_command in | |
5094 | sysdep.c. The Mac code is modeled after the DOS code. | |
5095 | ||
5096 | * dispextern.h [macintosh]: Include macterm.h to define substitute X | |
5097 | Window types and macros. | |
5098 | ||
5099 | * frame.h: Do nothing if included a second time. | |
5100 | (enum output_method): Add mac_output frame type. | |
5101 | (union output_data): Add new alternative `mac'. | |
5102 | (FRAME_MAC_P): New macro. | |
5103 | ||
5104 | * frame.c (Fframep) [macintosh]: Handle mac frame type. | |
5105 | (syms_of_frame_1): Initialize Qmac. | |
5106 | (make_terminal_frame) [macintosh]: Initialize output_data.mac fields. | |
5107 | (Fmake_terminal_frame) [macintosh]: Add an alternate error check. | |
5108 | (Fmodify_frame_parameters) [macintosh]: Call | |
5109 | mac_set_frame_parameter in macterm.c. | |
5110 | ||
5111 | * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value | |
5112 | (512) because Mac compilers limit local data of a function to 32K. | |
5113 | ||
5114 | * make-docfiles.c: Correctly handle input files with Mac-style | |
5115 | eol's. | |
5116 | ||
5117 | * sysdep.c: Define numerous routines to emulate Unix system calls. | |
5118 | ||
5119 | * xfaces.c: on MacOS, define the set of colors listed in rgb.txt | |
5120 | file of an X Window environment. | |
5121 | ||
5122 | * xfaces.c: on MacOS, define the Lisp functions x-display-color-p, | |
5123 | x-display-grayscale, x-color-defined-p, and x-color-values. | |
5124 | ||
5125 | * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access) | |
5126 | (open, creat, unlink, read, write, rename, fopen, pause, alarm) | |
5127 | (signal, sleep, gmtime, localtime, ctime, time, index, mktemp) | |
5128 | (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid) | |
5129 | (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.): | |
5130 | New functions, replacing POSIX features. | |
5131 | ||
5132 | * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm) | |
5133 | (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy): | |
5134 | (InitEmacsPasswdDir, run_mac_command): New subroutines. | |
5135 | ||
5136 | * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName) | |
5137 | (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask) | |
5138 | (myPasswdDir, TempDirName, sys_siglist): New variables. | |
5139 | ||
5140 | * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask) | |
5141 | (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink) | |
5142 | (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl): | |
5143 | Define empty stubs so Emacs will link. | |
5144 | ||
5145 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
5146 | ||
5147 | * xdisp.c: Use XCAR and XCDR instead of XCONS. | |
5148 | ||
5149 | * window.h: New member frozen_window_start_p. | |
5150 | ||
5151 | * window.c (foreach_window, foreach_window_1): New. | |
5152 | (freeze_window_start, freeze_window_starts): New. | |
5153 | (make_window): Initialize frozen_window_start_p. | |
5154 | (replace_window): Ditto. | |
5155 | (Fset_window_point): Remove references to deleted variables. | |
5156 | (Fset_window_start): Ditto. | |
5157 | ||
5158 | * xdisp.c (Vresize_mini_config, resize_mini_frame, | |
5159 | resize_mini_initial_height): Removed. | |
5160 | (syms_of_xdisp): Remove references to these variables. | |
5161 | (resize_mini_window): Don't save window configuration, freeze | |
5162 | window starts instead. Enlarge window until displaying an empty | |
5163 | buffer, then shrink it. Make the function externally visible. | |
5164 | (redisplay_window): Treat frozen window start like forced start, | |
5165 | but accept point outside of the window. | |
5166 | ||
5167 | * dispextern.h: Add function prototype for resize_mini_window. | |
5168 | ||
5169 | * minibuf.c (read_minibuf_unwind): Resize mini-window when | |
5170 | reaching minibuf_level 0. | |
5171 | ||
5172 | * lisp.h: Remove extern declarations for variables deleted from | |
5173 | xdisp.c. | |
5174 | ||
5175 | * dispnew.c (adjust_frame_glyphs): Remove reference to | |
5176 | Vresize_mini_config. | |
5177 | ||
5178 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
5179 | ||
5180 | * xfns.c (x_set_scroll_bar_width): Change conditional compilation | |
5181 | to USE_TOOLKIT_SCROLL_BARS. | |
5182 | ||
5183 | * xterm.c (x_scroll_bar_create): Don't clear under scroll bar | |
5184 | here. | |
5185 | (XTset_vertical_scroll_bar): Clarify position computations. Clear | |
5186 | under newly created scroll bar. Put toolkit scroll bars in the | |
5187 | middle of the area reserved for the scroll bar. | |
5188 | ||
5189 | 1999-09-03 Kenichi Handa <handa@etl.go.jp> | |
5190 | ||
5191 | The following changes are for the new handling of mulitbyte | |
5192 | sequence. Now, except for a composite character, no multibyte | |
5193 | character in string/buffer has trailing garbage bytes. For | |
5194 | instance, the length of string "\201\300\300" is now 2, the first | |
5195 | character is Latin-1 A-grave, the second is raw \300. | |
5196 | ||
5197 | * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2 | |
5198 | are negative. | |
5199 | (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0. | |
5200 | (VALID_MULTIBYTE_CHAR_P): This macro deleted. | |
5201 | (PARSE_COMPOSITE_SEQ): New macro. | |
5202 | (PARSE_CHARACTER_SEQ): New macro. | |
5203 | (PARSE_MULTIBYTE_SEQ): New macro. | |
5204 | (CHAR_PRINTABLE_P): New macro. | |
5205 | (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char. | |
5206 | (STRING_CHAR_AND_LENGTH): Likewise. | |
5207 | (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH. | |
5208 | (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ. | |
5209 | (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise, | |
5210 | ||
5211 | * charset.c (SPLIT_COMPOSITE_SEQ): New macro. | |
5212 | (SPLIT_CHARACTER_SEQ): New macro. | |
5213 | (SPLIT_MULTIBYTE_SEQ): New macro. | |
5214 | (CHAR_COMPONENT_VALID_P): New macro. | |
5215 | (non_ascii_char_to_string): Generate a multibyte sequence as far | |
5216 | as possible. | |
5217 | (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is | |
5218 | deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ. | |
5219 | (split_non_ascii_string): Likewise. | |
5220 | (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ. | |
5221 | (char_printable_p): New function. | |
5222 | (translate_char): Check character by NATNUMP instead of INTEGERP. | |
5223 | (unibyte_char_to_multibyte): Call char_valid_p instead of | |
5224 | VALID_MULTIBYTE_CHAR_P. | |
5225 | (Fmake_char_internal): Check the arguments more rigidly. | |
5226 | (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ. | |
5227 | (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P. | |
5228 | (Fmultibyte_char_to_unibyte): Check the validity of character by | |
5229 | CHAR_VALID_P. | |
5230 | (chars_in_text): Call multibyte_chars_in_text. | |
5231 | (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ. | |
5232 | (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of | |
5233 | STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now). | |
5234 | ||
5235 | * data.c (Faset): Adjust the way to check byte-combining | |
5236 | possibility for the new handling of multibyte sequence. | |
5237 | ||
5238 | * editfns.c (Fsubst_char_in_region): Likewise. | |
5239 | ||
5240 | * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ. | |
5241 | (string_char_to_byte): Likewise. | |
5242 | (string_byte_to_char): Likewise. | |
5243 | ||
5244 | * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the | |
5245 | macro STRING_CHAR_AND_LENGTH. Caller changed. | |
5246 | ||
5247 | * insdel.c (count_combining_composition): New function. | |
5248 | (count_combining_before): Adjust the way to check byte-combining | |
5249 | possibility for the new handling of multibyte sequence. Call | |
5250 | count_combining_composition for a composite character. | |
5251 | (count_combining_after): Likewise. | |
5252 | ||
5253 | * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH. | |
5254 | (print): Likewise. | |
5255 | ||
5256 | * dispextern.h (struct it): Change the size of the member | |
5257 | `ctl_chars'. | |
5258 | ||
5259 | * xdisp.c (get_next_display_element): Display incomplete multibyte | |
5260 | sequence (e.g. \222\300) by octal form. | |
5261 | ||
5262 | 1999-09-02 Gerd Moellmann <gerd@gnu.org> | |
5263 | ||
5264 | * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0. | |
5265 | ||
5266 | * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak. | |
5267 | (cmpfn_eql, sxhash): Use XFLOAT_DATA. | |
5268 | ||
5269 | 1999-09-02 Gerd Moellmann <gerd@gnu.org> | |
5270 | ||
5271 | * buffer.c (set_buffer_internal): Never set | |
5272 | windows_or_buffers_changed. | |
5273 | ||
5274 | * xdisp.c (try_window_id): Reset first_unchanged_at_end_row | |
5275 | if we have displayed to the bottom of the window. | |
5276 | ||
5277 | * syntax.c (Fforward_word): Stop at a mini-buffer prompt end | |
5278 | in both directions. Extend documentation. | |
5279 | ||
5280 | 1999-09-01 Gerd Moellmann <gerd@gnu.org> | |
5281 | ||
5282 | * minibuf.c (read_minibuf): Flush display after setting cursor to | |
5283 | column 0. | |
5284 | ||
5285 | 1999-08-31 Gerd Moellmann <gerd@gnu.org> | |
5286 | ||
5287 | * s/freebsd.h (__FreeBSD_version): Don't define it if it is | |
5288 | already defined. This avoids a warning from buffer.c. | |
5289 | ||
5290 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
5291 | ||
5292 | * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width | |
5293 | of both margins. | |
5294 | (FRAME_X_FLAGS_AREA_WIDTH): Likewise. | |
5295 | (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New. | |
5296 | (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New. | |
5297 | ||
5298 | * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS | |
5299 | once instead of twice. | |
5300 | (FRAME_LEFT_FLAGS_AREA_WIDTH): New. | |
5301 | ||
5302 | * xterm.c: Remove unused bitmaps. | |
5303 | (continued_bits, continuation_bits, overlay_bits): Change images. | |
5304 | (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH | |
5305 | instead of FRAME_X_FLAGS_AREA_WIDTH. | |
5306 | (x_after_update_window_line): Ditto. | |
5307 | (x_draw_bitmap): Likewise. | |
5308 | (x_draw_row_bitmaps): Likewise. | |
5309 | (x_draw_glyph_string_box): Likewise. | |
5310 | (x_draw_glyphs): Likewise. | |
5311 | (x_scroll_run): Likewise. | |
5312 | (expose_window_tree): Likewise. | |
5313 | (note_mode_line_highlight): Likewise. | |
5314 | (XTset_vertical_scroll_bar): Likewise. | |
5315 | (x_clip_to_row): Likewise. | |
5316 | (x_set_window_size): Likewise. | |
5317 | ||
5318 | * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead | |
5319 | of 2 * that value. | |
5320 | ||
5321 | * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of | |
5322 | 2 * that value. | |
5323 | (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of | |
5324 | FRAME_FLAGS_AREA_WIDTH. | |
5325 | ||
5326 | * window.c (coordinates_in_window): Use | |
5327 | FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH. | |
5328 | (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once | |
5329 | instead of twice. | |
5330 | ||
5331 | * widget.c (set_frame_size): Set flags_area_extra to | |
5332 | FRAME_FLAGS_AREA_WIDTH instead of 2 * that width. | |
5333 | (EmacsFrameSetCharSize): Ditto. | |
5334 | ||
5335 | * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH | |
5336 | instead of FRAME_FLAGS_AREA_WIDTH. | |
5337 | ||
5338 | * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract | |
5339 | FRAME_FLAGS_AREA_COLS once. | |
5340 | (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add | |
5341 | FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH. | |
5342 | ||
5343 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
5344 | ||
5345 | * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers | |
5346 | in /usr/X11R6/include which are checked for with AC_CHECK_HEADER. | |
5347 | ||
5348 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
5349 | ||
5350 | * fns.c (QCweakness): Replaces QCweak. | |
5351 | (Fmake_hash_table): Ditto. | |
5352 | (Fmakehash): Ditto. | |
5353 | (syms_of_fns): Ditto. | |
5354 | ||
5355 | 1999-08-29 Richard Stallman <rms@gnu.org> | |
5356 | ||
5357 | * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp. | |
5358 | ||
5359 | * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args. | |
5360 | ||
5361 | * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED): | |
5362 | Add support for nested comments. | |
5363 | ||
863476d1 SM |
5364 | * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward): |
5365 | Consolidate the forward comment code into the new `forw_comment'. | |
5366 | (forw_comment): New subroutine. Added support for nested comments. | |
5367 | (lisp_parse_state, back_comment, Fmodify_syntax_entry) | |
5368 | (Fparse_partial_sexp): Add support for nested comments. | |
26901792 DL |
5369 | |
5370 | 1999-08-28 Ken Raeburn <raeburn@gnu.org> | |
5371 | ||
5372 | * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change | |
5373 | names of structure elements if HIDE_LISP_IMPLEMENTATION is | |
5374 | defined, to help detect code that uses knowledge of the Lisp | |
5375 | internals that it shouldn't have. | |
5376 | (XFLOAT_DATA): New macro. | |
5377 | ||
5378 | 1999-08-25 Gerd Moellmann <gerd@gnu.org> | |
5379 | ||
5380 | * syntax.c (Fforward_word): If in a mini-buffer and moving | |
5381 | backwards, stop in front of the prompt to prevent accidentially | |
5382 | moving into the read-only prompt. | |
5383 | ||
5384 | * window.c (Frecenter): Clear frame if called with nil or no arg. | |
5385 | ||
5386 | * xdisp.c (resize_mini_window): Don't resize if | |
5387 | Vmax_mini_window_height is nil. Otherwise, use a default if | |
5388 | Vmax_mini_window_height is not ot a number. | |
5389 | (syms_of_xdisp): Extend documentation of Vmax_mini_window_height. | |
5390 | ||
5391 | 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br> | |
5392 | ||
5393 | * unexelf.c: Merge IRIX debugging info patch from unexsgi.c | |
5394 | * m/iris4d.h: Use unexelf for IRIX 5.*. | |
5395 | * m/iris5d.h: Use unexelf for IRIX 6.*. | |
5396 | * unexsgi.c: Deleted. | |
5397 | ||
5398 | * unexelf.c: Auto-detect .sbss section. | |
5399 | (round_up): Make it static. | |
5400 | (unexec): Declare alignment as Elf Word. Skip ``Program | |
5401 | segment above .bss'' test on MIPS without .sbss. | |
5402 | Copy sections .got and .sdata1 sections. Adjust offsets in | |
5403 | sections .sdata, .lit4, .lit8, .got and .sdata1. | |
5404 | ||
5405 | 1999-08-25 Gerd Moellmann <gerd@gnu.org> | |
5406 | ||
5407 | * xdisp.c (try_window_id): Remove typo. | |
5408 | ||
5409 | 1999-08-24 Gerd Moellmann <gerd@gnu.org> | |
5410 | ||
5411 | * xdisp.c (try_window_id): Recognize case that PT == ZV and in | |
5412 | unchanged text at the bottom when computing the cursor position. | |
5413 | (message3_nolog): Raise frame only if minibuffer_auto_raise is | |
5414 | set. | |
5415 | ||
5416 | * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables. | |
5417 | ||
5418 | 1999-08-24 Gerd Moellmann <gerd@gnu.org> | |
5419 | ||
5420 | * xfaces.c (Qmargin): Replacement for Qbitmap_area. | |
5421 | (realize_basic_faces): Replace Qmargin for Qbitmap_area. | |
5422 | (syms_of_xfaces): Ditto. | |
5423 | ||
5424 | * window.c (Fset_window_point): Reset Vresize_mini_config. | |
5425 | (Fset_window_start): Ditto. | |
5426 | (set_window_buffer): Ditto. | |
5427 | ||
5428 | * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config. | |
5429 | ||
5430 | * xdisp.c (redisplay_window): Don't ever test just_this_one_p | |
5431 | before calling try_window. | |
5432 | (echo_area_display): If height has changed, update other windows. | |
5433 | (resize_mini_frame, resize_mini_initial_height): New. | |
5434 | (resize_mini_window): Save/restore window configuration | |
5435 | differently. | |
5436 | ||
5437 | * lisp.h (Vresize_mini_config, resize_mini_frame, | |
5438 | resize_mini_initial_height): Add extern declarations. | |
5439 | ||
5440 | * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to | |
5441 | CANON_X_UNIT. | |
5442 | ||
5443 | * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H | |
5444 | being redefined in jconfig.h. | |
5445 | ||
5446 | 1999-08-23 Ken'ichi Handa <handa@gnu.org> | |
5447 | ||
5448 | * coding.h: Include "ccl.h" instead of "../src/ccl.h". | |
5449 | ||
5450 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
5451 | ||
5452 | * alloc.c (mark_glyph_matrix): Mark strings only. | |
5453 | ||
5454 | * xdisp.c (redisplay_internal): Clear garbaged frames after | |
5455 | resizing mini-window. | |
5456 | ||
5457 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
5458 | ||
5459 | * xdisp.c (unwind_with_echo_area_buffer): Use | |
5460 | set_buffer_internal_1 instead of set_buffer_internal. | |
5461 | (with_echo_area_buffer): Ditto. | |
5462 | ||
5463 | * buffer.c (set_buffer_internal): Set windows_or_buffers_changed | |
5464 | only if buffer is displayed somewhere. | |
5465 | ||
5466 | * buffer.h (BUF_COMPUTE_UNCHANGED): New. | |
5467 | ||
5468 | * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED. | |
5469 | (gap_right): Ditto. | |
5470 | (modify_region): Ditto. | |
5471 | ||
5472 | * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED. | |
5473 | ||
5474 | * xdisp.c (Vresize_mini_config): New. | |
5475 | (resize_mini_window): Use it to save restore original window | |
5476 | configuration | |
5477 | (syms_of_xdisp): Initialize it. | |
5478 | ||
5479 | * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p. | |
5480 | ||
5481 | * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv. | |
5482 | ||
5483 | * xdisp.c (reconsider_clip_changes): New. | |
5484 | (redisplay_internal, redisplay_window): Call it. | |
5485 | (mark_window_display_accurate, redisplay_internal): Set current | |
5486 | matrix' buffer, begv, zv. | |
5487 | ||
5488 | * window.c (Fset_window_hscroll): Set | |
5489 | prevent_redisplay_optimizations_p instead of clip_changed. | |
5490 | (Fset_window_hscroll): Ditto. | |
5491 | (temp_output_buffer_show): Ditto. | |
5492 | (Fset_window_vscroll): Ditto. | |
5493 | ||
5494 | * buffer.c (reset_buffer): Set clip_changed to 0 and | |
5495 | prevent_redisplay_optimizations_p to 1. | |
5496 | (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1. | |
5497 | ||
5498 | * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED, | |
5499 | BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED, | |
5500 | BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED, | |
5501 | END_UNCHANGED): New. | |
5502 | (struct buffer_text): Add beg_unchanged, end_unchanged, | |
5503 | unchanged_modified, overlay_unchanged_modified. | |
5504 | ||
5505 | * window.h (beg_unchanged, end_unchanged, unchanged_modified, | |
5506 | overlay_unchanged_modified): Removed. | |
5507 | (with_echo_area_unwind_data): Don't save beg/end_unchanged. | |
5508 | (unwind_with_echo_area_buffer): Don't restore them. | |
5509 | (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed. | |
5510 | (text_outside_line_unchanged_p, redisplay_internal, | |
5511 | try_scrolling): Use/set buffer-specific beg/end_unchanged. | |
5512 | (redisplay_window): Let try_window_id be called if more than one | |
5513 | window is displayed. Use/set buffer-specific beg/end_unchanged. | |
5514 | (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row, | |
5515 | try_window_id): | |
5516 | Use buffer-specific beg/end_unchanged. | |
5517 | ||
5518 | * window.h (beg_unchanged, end_unchanged, unchanged_modified, | |
5519 | overlay_unchanged_modified): Remove extern declarations. | |
5520 | ||
5521 | * keyboard.c (command_loop_1): Set beg/end_unchanged per | |
5522 | buffer. | |
5523 | ||
5524 | * insdel.c (gap_left): Compute beg/end_unchanged per buffer. | |
5525 | (gap_right): Ditto. | |
5526 | (adjust_after_replace): Likewise. | |
5527 | (replace_range, del_range_2, modify_region): Likewise. | |
5528 | ||
5529 | * dispnew.c (direct_output_for_insert): Set beg_unchanged | |
5530 | and unchanged_modified per buffer. | |
5531 | ||
5532 | * coding.c (code_convert_region): Compute beg/end_unchanged per | |
5533 | buffer. | |
5534 | ||
5535 | * buffer.c (modify_overlay): Compute beg/end_unchanged | |
5536 | per buffer. | |
5537 | (Fget_buffer_create): Initialize new members of the buffer | |
5538 | structure. | |
5539 | ||
5540 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
5541 | ||
5542 | * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table. | |
5543 | ||
5544 | * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak. | |
5545 | (Qkey_value_weak): Removed. | |
5546 | (make_hash_table): Use nil, `key', `value', t for weakness. | |
5547 | (Fmake_hash_table): Ditto. | |
5548 | (copy_hash_table): New. | |
5549 | (Fcopy_hash_table): New. | |
5550 | ||
5551 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
5552 | ||
5553 | * xfns.c: Call change_frame_size and do_pending_window_change with | |
5554 | new parameter. | |
5555 | ||
5556 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
5557 | ||
5558 | * xdisp.c (resize_mini_window): Do it for truncate-lines t as | |
5559 | well. | |
5560 | (redisplay_internal): Resize mini-window only if text might | |
5561 | have changed. | |
5562 | (display_echo_area): Reset displayed echo_area_buffer to nil | |
5563 | at the end if we're displaying a nil message. | |
5564 | ||
5565 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
5566 | ||
5567 | * fns.c (hash_lookup): Test with EQ before calling key comparion | |
5568 | function. | |
5569 | (hash_remove): Ditto. | |
5570 | (cmpfn_eq): Removed. | |
5571 | (cmpfn_eql): Don't test with EQ. | |
5572 | (cmpfn_equal): Ditto. | |
5573 | (make_hash_table): Set comparison function for `eq' to null. | |
5574 | ||
5575 | * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h: | |
5576 | Remove conditional compilation on NO_PROMPT_IN_BUFFER. | |
5577 | ||
5578 | * dispextern.h (NO_PROMPT_IN_BUFFER): Removed. | |
5579 | ||
5580 | * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c, | |
5581 | xterm.c: Call change_frame_size and do_pending_window_change with | |
5582 | new parameter. | |
5583 | ||
5584 | * dispnew.c (do_pending_window_change): Add parameter `safe'. | |
5585 | (change_frame_size): Ditto. | |
5586 | (change_frame_size_1): Ditto. Deley size changes if redisplaying | |
5587 | and not called from a safe place. | |
5588 | (window_change_signal): Call change_frame_size with new parameter. | |
5589 | ||
5590 | * dispextern.h: Change prototypes for do_pending_window_change | |
5591 | and change_frame_size. | |
5592 | ||
5593 | * xfaces.c (face_at_buffer_position): Don't xassert that | |
5594 | window's buffers equals current_buffer; this is not the | |
5595 | case during echo area display. | |
5596 | ||
5597 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
5598 | ||
5599 | * xdisp.c, minibuf.c: Remove conditional compilation on | |
5600 | NO_PROMPT_IN_BUFFER. | |
5601 | ||
5602 | * minibuf.c (Fminibuffer_prompt_end): New. | |
5603 | (syms_of_minibuf): Defsubr it. Remove | |
5604 | minibuffer-prompt-in-buffer. | |
5605 | (Fminibuffer_prompt_width): Return 0 if not in mini-buffer. | |
5606 | Extend documentation. | |
5607 | ||
5608 | * xdisp.c (get_next_display_element): Display \r as ^M. | |
5609 | ||
5610 | * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear | |
5611 | under scroll bar widget. | |
5612 | ||
5613 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
5614 | ||
5615 | * xdisp.c (minibuffer_scroll_overlap): Removed because not used | |
5616 | anywhere. | |
5617 | (unwind_redisplay): Return nil. | |
5618 | (clear_garbaged_frames): New. | |
5619 | (redisplay_internal): Use it. | |
5620 | (echo_area_display): Ditto. | |
5621 | (resize_mini_window): Mew. | |
5622 | (display_echo_area_1): Use it to resize echo area window. | |
5623 | (redisplay_internal): Use it to resize active mini-window. | |
5624 | ||
5625 | * dispextern.h, lisp.h: Add function prototypes. | |
5626 | ||
5627 | * dispnew.c (set_window_cursor_after_update): Do the | |
5628 | cursor_in_echo_area case only for a mini-window showing | |
5629 | a message. Don't let cursor end up after the end of a row. | |
5630 | ||
5631 | * xdisp.c (echo_area_glyphs, echo_area_message, | |
5632 | echo_area_glyphs_length, previous_echo_glyphs, | |
5633 | previous_echo_area_message, previous_echo_area_glyphs_length): | |
5634 | Removed. | |
5635 | (Vmessage_stack, echo_area_buffer, echo_buffer, | |
5636 | display_last_displayed_message_p, Vwith_echo_area_save_vector): New. | |
5637 | (message2_nolog): Use set_message and clear_message. | |
5638 | (message3): Rename parameter len to nbytes to make clear what | |
5639 | it is. | |
5640 | (message3_nolog): Ditto. Use set_message and clear_message. | |
5641 | (update_echo_area): Rewritten. | |
5642 | (with_echo_area_buffer): New. | |
5643 | (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New. | |
5644 | (setup_echo_area_for_printing): New. | |
5645 | (display_echo_area, display_echo_area_1): New. | |
5646 | ||
5647 | (current_message, current_message_1): New. | |
5648 | (push_message, restore_message, pop_message, | |
5649 | check_message_stack): New. | |
5650 | (truncate_echo_area): Rewritten. | |
5651 | (truncate_message_1): New. | |
5652 | (set_message, set_message_1, clear_message): New. | |
5653 | (echo_area_display): Rewritten. | |
5654 | (redisplay_internal): Check for needed echo area update | |
5655 | differently. | |
5656 | (redisplay_preserve_echo_area): Rewritten. | |
5657 | (redisplay_window): Check for mini-window displaying echo area | |
5658 | message differently. | |
5659 | (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers. | |
5660 | Remove initialzation of removed variables. | |
5661 | (init_xdisp): Remove references to removed variables. | |
5662 | ||
5663 | * dispnew.c (adjust_frame_message_buffer): Removed references | |
5664 | to echo_area_glyphs and previous_echo_glyphs. | |
5665 | (direct_output_for_insert): Check for mini-window displaying | |
5666 | echo area message differently. | |
5667 | (update_frame): Likewise. | |
5668 | (set_window_cursor_after_update): Likewise. In echo area, | |
5669 | don't try to set cursor on rows that aren't enabled. | |
5670 | ||
5671 | * print.c: Remove conditional compilation on `standalone'. | |
5672 | (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy, | |
5673 | glyph_to_str_cpy): Remove that section because GLYPHs are no | |
5674 | longer used in that way. | |
5675 | (PRINTDECLARE): Add multibyte. | |
5676 | (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently. | |
5677 | (printbufidx): Removed. | |
5678 | (printchar, strout): Rewritten. | |
5679 | ||
5680 | * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to | |
5681 | a struct kboard. | |
5682 | (echo_kboard): New. | |
5683 | (echo_now): Set echo_kboard to the current kboard. | |
5684 | (cancel_echoing): Set echo_kboard to null. | |
5685 | (cmd_error_internal): Use clear_message, remove references | |
5686 | to echo_area_glyphs and echo_area_message. | |
5687 | (command_loop_1): Check for echo area messages differently. | |
5688 | (read_char): Likewise. | |
5689 | (record_menu_key): Use clear_message. | |
5690 | (Fexecute_extended_command): Check for echo area messages | |
5691 | differently. Use push_message, restore_message, pop_message. | |
5692 | ||
5693 | * alloc.c (Fgarbage_collect): Use push_message, restore_message, | |
5694 | pop_message. | |
5695 | ||
5696 | * emacs.c (shut_down_emacs): Call check_message_stack. | |
5697 | ||
5698 | * lisp.h: Add function prototypes and extern declarations for | |
5699 | new functions and variables. | |
5700 | ||
5701 | * fileio.c (Fdo_auto_save): Use push_message, restore_message, | |
5702 | pop_message. | |
5703 | ||
5704 | * minibuf.c (read_minibuf): Use clear_message instead of | |
5705 | setting echo_area_glyphs. | |
5706 | (Fminibuffer_completion_help): Ditto. | |
5707 | ||
5708 | * editfns.c (Fcurrent_message): Rewritten. | |
5709 | ||
5710 | * frame.c, window.h: Remove references to echo_area_glyphs | |
5711 | and previous_echo_glyphs. | |
5712 | ||
5713 | 1999-08-21 Dave Love <fx@gnu.org> | |
5714 | ||
5715 | * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O. | |
5716 | * aix4-1.h: Likewise. | |
5717 | ||
5718 | * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize. | |
5719 | ||
5720 | 1999-08-20 Gerd Moellmann <gerd@gnu.org> | |
5721 | ||
5722 | * xfns.c: Remove tiff34 prefix from include. | |
5723 | ||
5724 | 1999-08-20 Dave Love <fx@gnu.org> | |
5725 | ||
5726 | * cm.c: Revert previous change. | |
5727 | ||
5728 | 1999-08-19 Gerd Moellmann <gerd@gnu.org> | |
5729 | ||
5730 | * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear | |
5731 | under scroll bar with width FRAME_SCROLL_BAR_COLS. | |
5732 | ||
5733 | 1999-08-18 Dave Love <fx@gnu.org> | |
5734 | ||
5735 | * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use | |
5736 | stdlib.h. | |
5737 | ||
5738 | * doprnt.c: Use stdlib.h, unistd.h. | |
5739 | ||
5740 | * config.in: Add HAVE_TERMCAP_H. | |
5741 | ||
5742 | * cm.c: Use termcap.h. | |
5743 | ||
5744 | 1999-08-18 Gerd Moellmann <gerd@gnu.org> | |
5745 | ||
5746 | * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for | |
5747 | FRAME_X_WINDOW (f) being null at the of the function. If widgets | |
5748 | cannot be created we will already have crashed earlier. Call | |
5749 | lw_set_main_areas with a null menu-bar widget, so that we have | |
5750 | a reasonable default. | |
5751 | (Fx_create_frame): Rearranged so that Lisp errors during frame | |
5752 | initialization cause less damage. Initialize menu bar widget | |
5753 | here. | |
5754 | ||
5755 | 1999-08-18 Gerd Moellmann <gerd@gnu.org> | |
5756 | ||
5757 | * dispnew.c (update_frame_line): Fix previous change. If writing | |
5758 | whole line clear to end of frame. | |
5759 | ||
5760 | 1999-08-17 Gerd Moellmann <gerd@gnu.org> | |
5761 | ||
5762 | * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area' | |
5763 | and `right-bitmap-area' if position is in the bitmap areas. This | |
5764 | avoids an error when clicking on the bitmap areas. Instead, they | |
5765 | are currently treated like clicks inside the window. | |
5766 | (coordinates_in_window): Return 5 and 6 for bitmap areas. | |
5767 | (Qleft_bitmap_area, Qright_bitmap_area): New. | |
5768 | (syms_of_window): Initialize new symbols. | |
5769 | ||
5770 | * dispnew.c (update_frame_line): If writing whole line, | |
5771 | don't write trailing spaces unless we must. | |
5772 | ||
5773 | * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p. | |
5774 | (redisplay_internal): Register unwind_redisplay with | |
5775 | register_unwind_protect. | |
5776 | (try_window_reusing_current_matrix): If new start > old start, | |
5777 | give up if start pos of first reusable row is not equal to new | |
5778 | start. | |
5779 | ||
5780 | * eval.c (Fsignal): Don't reset redisplaying_p here. | |
5781 | ||
5782 | * xterm.c (expose_area): If row extends face to end of line, | |
5783 | write the whole line. | |
5784 | ||
5785 | 1999-08-16 Gerd Moellmann <gerd@gnu.org> | |
5786 | ||
5787 | * dispextern.h (struct it): Remove member | |
5788 | show_trailing_whitespace_p. | |
5789 | ||
5790 | * dispnew.c (direct_output_for_insert): Use | |
5791 | Vshow_trailing_whitespace instead of former iterator member | |
5792 | show_trailing_whitespace_p. | |
5793 | (direct_output_forward_char): Don't do it if hightlighting | |
5794 | trailing whitespace. | |
5795 | ||
5796 | * xdisp.c (Qshow_trailing_whitespace): Removed. | |
5797 | (Vshow_trailing_whitespace): Added. | |
5798 | (init_iterator): Remove initialization code for | |
5799 | show_trailing_whitespace_p. | |
5800 | (redisplay_internal): Don't try cursor movement in this_line | |
5801 | if showing trailing whitespace. | |
5802 | (redisplay_window): Likewise for cursor movement in current | |
5803 | matrix and try_window_id. | |
5804 | (try_window_reusing_current_matrix): Likewise. | |
5805 | (trailing_whitespace_p): Return 0 if trailing whitespace is | |
5806 | in front of point. | |
5807 | (display_line): Use Vshow_trailing_whitespace instead of | |
5808 | former iterator member show_trailing_whitespace_p. | |
5809 | (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace. | |
5810 | ||
5811 | 1999-08-16 Gerd Moellmann <gerd@gnu.org> | |
5812 | ||
5813 | * window.c (Fpos_visible_in_window_p): Rewritten. | |
5814 | ||
5815 | * xfaces.c (add_to_log): Renamed from display_message. | |
5816 | Don't display messages in echo area. | |
5817 | ||
5818 | * xterm.c (x_draw_glyph_string_box): Use the background width | |
5819 | of the glyph string for the width of the box. | |
5820 | ||
5821 | 1999-08-16 Stefan Monnier <monnier@cs.yale.edu> | |
5822 | ||
5823 | * syntax.c (Fforward_comment): Set comstyle for Scomment_fence. | |
5824 | ||
5825 | 1999-08-16 Geoff Voelker <voelker@cs.washington.edu> | |
5826 | ||
5827 | * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and | |
5828 | background first, and then set other parameters that might | |
5829 | depend upon their new values. | |
5830 | ||
5831 | 1999-08-15 Gerd Moellmann <gerd@gnu.org> | |
5832 | ||
5833 | * xfaces.c (Vfont_list_limit): New. | |
5834 | (syms_of_xfaces): Make it a user-variable. | |
5835 | (DEFAULT_FONT_LIST_LIMIT): New. | |
5836 | (sorted_font_list): If Vfont_list_limit is an integer > 0, list | |
5837 | maximally that number of fonts, otherwise use | |
5838 | DEFAULT_FONT_LIST_LIMIT. | |
5839 | (Fx_font_family_list): Bind `font-list-limit' to higher values | |
5840 | until we have all fonts. | |
5841 | (Fxfont_list): Additionally return the full names of fonts and | |
5842 | their registry and encoding. | |
5843 | ||
5844 | * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
5845 | Simplify clearing "under" scroll bar. | |
5846 | ||
5847 | * window.c (Qfixed_window_size): New. | |
5848 | (syms_of_window): Initialiaze it. | |
5849 | (check_all_windows): Add return type void. | |
5850 | (window_fixed_size_p): New. Return non-zero if window | |
5851 | is fixed-size. | |
5852 | (window_min_size_1): New. | |
5853 | (window_min_size): Handle fixed-size windows. | |
5854 | (size_window): New. Rewritten combination of set_window_height and | |
5855 | set_window_width that handles fixed-size windows. | |
5856 | (set_window_height): Call it. | |
5857 | (set_window_width): Call it. | |
5858 | (Fsplit_window): Give an error on attempt to split a fixed-size | |
5859 | window. | |
5860 | (change_window_height): Partly rewritten to handle fixed-size | |
5861 | windows. | |
5862 | ||
5863 | 1999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com> | |
5864 | ||
5865 | * process.c (Fopen_network_stream): Fix previous change. | |
5866 | ||
5867 | 1999-08-13 Karl Heuer <kwzh@gnu.org> | |
5868 | ||
5869 | * xdisp.c (line_number_display_limit_width): New var. | |
5870 | (decode_mode_spec): Use it instead of hardcoded value. | |
5871 | (syms_of_xdisp): Defvar it. | |
5872 | ||
5873 | 1999-08-13 Richard M. Stallman <rms@gnu.org> | |
5874 | ||
5875 | * eval.c (run_hook_list_with_args): Gcpro `globals'. | |
5876 | (run_hook_with_args): Likewise. | |
5877 | ||
5878 | * window.h (struct window): New field too_small_ok. | |
5879 | ||
5880 | * window.c (set_window_height, set_window_width): | |
5881 | If window starts out "too small", set its too_small_ok flag. | |
5882 | If window's too_small_ok flag is set, don't delete it | |
5883 | unless it is so small it would cause a crash. | |
5884 | ||
5885 | 1999-08-13 Gerd Moellmann <gerd@gnu.org> | |
5886 | ||
5887 | * window.c (MINSIZE): Removed. | |
5888 | (window_min_size): New. | |
5889 | (set_window_height): Use window_min_size. | |
5890 | (change_window_height): Ditto. | |
5891 | ||
5892 | 1999-08-12 Gerd Moellmann <gerd@gnu.org> | |
5893 | ||
5894 | * indent.c (vmotion): Don't add in mini-buffer prompt width | |
5895 | if prompts are inserted into mini-buffer. | |
5896 | ||
5897 | 1999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com> | |
5898 | ||
5899 | * config.in: Add HAVE_GETADDRINFO. | |
5900 | * process.c (Fopen_network_stream): Use getaddrinfo. | |
5901 | ||
5902 | 1999-08-11 Gerd Moellmann <gerd@gnu.org> | |
5903 | ||
5904 | * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of | |
5905 | glyphs to -1. | |
5906 | ||
5907 | * xdisp.c (face_before_or_after_it_pos): If position after | |
5908 | or before iterator's current position in the buffer is out | |
5909 | of bounds, return the iterator's original face id. | |
5910 | ||
5911 | * dispnew.c (mirror_make_current): If desired row isn't enabled, | |
5912 | just swap glyphs pointers between current and desired row. | |
5913 | (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy | |
5914 | desired matrix method string to current matrix. | |
5915 | ||
5916 | 1999-08-11 Kenichi Handa <handa@etl.go.jp> | |
5917 | ||
5918 | * lisp.h (CHAR_MODIFIER_MASK): New macro. | |
5919 | ||
5920 | * lread.c (read_escape): For Control modifier, pay attention to | |
5921 | multibyte character. | |
5922 | (read1): Likewise. Singal error or a multibyte character which | |
5923 | has a modifer bit. Check validity of Shift modifer. | |
5924 | ||
5925 | * charset.c (non_ascii_char_to_string): Handle modifier bits as | |
5926 | the same as Lisp reader. | |
5927 | ||
5928 | 1999-08-10 Richard M. Stallman <rms@gnu.org> | |
5929 | ||
5930 | * charset.h (BCOPY_SHORT): Fix typo `unsigined'. | |
5931 | ||
5932 | 1999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br> | |
5933 | ||
5934 | * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define. | |
5935 | ||
5936 | 1999-08-10 Eli Zaretskii <eliz@gnu.org> | |
5937 | ||
5938 | * msdos.c (IT_set_face): Abort if the default face is not realized | |
5939 | and cached. | |
5940 | (IT_write_glyphs): Reset the screen face to the default face | |
5941 | before writing glyphs. | |
5942 | ||
5943 | * xfaces.c (realize_default_face) [MSDOS]: Don't take default | |
5944 | colors from the frame here. | |
5945 | (realize_tty_face) [MSDOS]: Do it here. Update the face | |
5946 | attributes with the actual name of the color taken from the | |
5947 | frame. | |
5948 | ||
5949 | * dosfns.c (msdos_stdcolor_name): Remove const from return value. | |
5950 | * dosfns.h (msdos_stdcolor_name): Ditto for the prototype. | |
5951 | ||
5952 | * frame.c (Fframe_parameters): Swap foreground and background | |
5953 | colors returned in frame parameters if the frame has reverse in | |
5954 | its parameter alist. | |
5955 | (Fmake_terminal_frame): Make a unique copy of face_alist for | |
5956 | each frame. | |
5957 | ||
5958 | 1999-08-07 Richard Stallman <rms@gnu.org> | |
5959 | ||
5960 | * buffer.c (Fprevious_overlay_change): Just return | |
5961 | the answer obtained from overlays_at. | |
5962 | ||
5963 | * xfns.c (xpm_load) [!XpmAllocCloseColors]: | |
5964 | Use XpmCloseness and attrs.closeness instead. | |
5965 | ||
5966 | 1999-08-06 Richard Stallman <rms@gnu.org> | |
5967 | ||
5968 | * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT. | |
5969 | ||
5970 | 1999-08-06 Geoff Voelker <voelker@cs.washington.edu> | |
5971 | ||
5972 | * dired.c (directory_files_internal, Fdirectory_files_and_attributes, | |
5973 | Ffile_attributes_lessp): New functions. | |
5974 | (Fdirectory_files): Use directory_files_internal. | |
5975 | (syms_of_dired): Initialize Fdirectory_files_and_attributes, | |
5976 | Ffile_attributes_lessp. | |
5977 | ||
5978 | * w32.c (stat): Check for directory ending in separator when | |
5979 | doing readdir fast path. | |
5980 | ||
5981 | * w32fns.c (x_set_icon_type): Support setting frame icons. | |
5982 | * w32term.c (x_bitmap_icon): New function. | |
5983 | (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon. | |
5984 | ||
5985 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
5986 | ||
5987 | * xdisp.c (set_iterator_to_next): After delivering a character | |
5988 | from a display vector, restore face and charset to what they were | |
5989 | before the display vector was processed. | |
5990 | ||
5991 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
5992 | ||
5993 | * xdisp.c (reseat_at_next_visible_line_start): New parameter | |
5994 | on_newline_p. | |
5995 | (set_iterator_to_next): After delivering last char | |
5996 | from display vector, reseat on next visible line start if | |
5997 | dpvec_char_len < 0. | |
5998 | (next_element_from_buffer): Set dpvec_char_len to -1 for | |
5999 | selective display. | |
6000 | ||
6001 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
6002 | ||
6003 | * xdisp.c (compute_line_metrics): If first line's physical ascent | |
6004 | is larger than its logical ascent, use the physical ascent, and | |
6005 | make the row taller. Set row's overlapping_p flag. | |
6006 | ||
6007 | * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p. | |
6008 | (direct_output_for_insert): Ditto. | |
6009 | ||
6010 | * dispextern.h (struct glyph_row): Add overlapping_p. | |
6011 | ||
6012 | * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps. | |
6013 | ||
6014 | * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New. | |
6015 | (MATRIX_ROW_OVERLAPS_SUCC_P): New. | |
6016 | ||
6017 | * dispnew.c (direct_output_for_insert): Don't use this method if | |
6018 | row is overlapped by others. | |
6019 | (update_text_area): Write full line if current line is overlapped. | |
6020 | (redraw_overlapped_rows): New. | |
6021 | (update_window): Call it. | |
6022 | (redraw_overlapping_rows): New. | |
6023 | (update_window): Call it. | |
6024 | (scrolling_window): Make sure overlapped_p flag in current rows is | |
6025 | unchanged. | |
6026 | (row_equal_p): Take rows overlapped_p flag into account. | |
6027 | ||
6028 | * dispextern.h (struct glyph_row): Add flag overlapped_p. | |
6029 | ||
6030 | * xterm.c (x_fix_overlapping_area): New. | |
6031 | (x_redisplay_interface): Add x_fix_overlapping_area. | |
6032 | ||
6033 | * dispnew.c (adjust_glyphs): Block input while adjusting matrices. | |
6034 | ||
6035 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
6036 | ||
6037 | * xterm.c (x_draw_glyphs): Add parameter overlaps_p. | |
6038 | (struct glyph_string): Add member for_overlaps_p. | |
6039 | (x_get_glyph_string_clip_rect): If glyph string draws foreground | |
6040 | of overlapping rows, clip to window bottom. | |
6041 | (x_fill_glyph_string): Add parameter overlaps_p. | |
6042 | (x_fill_composite_glyph_string): Ditto. | |
6043 | (BUILD_GLYPH_STRINGS): Ditto. | |
6044 | (BUILD_CHAR_GLYPH_STRINGS): Ditto. | |
6045 | (x_draw_glyph_string): Don't draw anything but the foreground | |
6046 | if glyph string draws row overlaps. | |
6047 | ||
6048 | * dispnew.c (direct_output_for_insert): Don't use this | |
6049 | optimization for rows that overlap others. | |
6050 | (update_window_line): Return non-zero if display has changed. | |
6051 | (update_text_area): Ditto. | |
6052 | (update_window): Record if display has been changed. | |
6053 | ||
6054 | * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New. | |
6055 | ||
6056 | * dispextern.h (struct redisplay_interface): Add | |
6057 | fix_overlapping_area. | |
6058 | ||
6059 | * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p. | |
6060 | ||
6061 | * dispextern.h (struct glyph): Add overlaps_vertically_p. | |
6062 | ||
6063 | * xterm.c (x_produce_image_glyph): Compute iterator's physical | |
6064 | ascent and descent. | |
6065 | (x_produce_stretch_glyph): Ditto. | |
6066 | (x_produce_glyphs): Ditto. | |
6067 | ||
6068 | * xdisp.c (init_iterator): Reset physical line height info | |
6069 | after producing special glyphs. | |
6070 | (display_toolbar_line): Set physical line height info. | |
6071 | (compute_line_metrics): Ditto. | |
6072 | (display_line): Ditto. | |
6073 | (display_string): Ditto. | |
6074 | ||
6075 | * term.c (produce_glyphs): Set iterator's physical height | |
6076 | information. | |
6077 | ||
6078 | * dispnew.c (blank_row): Compute glyph row's physical height. | |
6079 | (row_equal_p): Take physical row heights into account. | |
6080 | (direct_output_for_insert): Ditto. | |
6081 | (update_text_area): Ditto. | |
6082 | ||
6083 | * dispextern.h (struct glyph_row): Add phys_ascent and | |
6084 | phys_height. | |
6085 | (struct it): Add phys_ascent, phys_descent, max_phys_ascent, | |
6086 | max_phys_descent. | |
6087 | ||
6088 | 1999-08-04 Stefan Monnier <monnier@cs.yale.edu> | |
6089 | ||
6090 | * buffer.c (switch_to_buffer_1): New subroutine, taken out from | |
6091 | Fswitch_to_buffer. | |
6092 | (no_switch_buffer): New function. | |
6093 | (Fswitch_to_buffer): Call them. Don't get confused | |
6094 | by "same-window" buffers in a dedicated frame. | |
6095 | ||
6096 | * window.c (display-buffer): Don't get confused | |
6097 | by "same-window" buffers in a dedicated frame. | |
6098 | ||
6099 | 1999-08-04 Andreas Schwab <schwab@gnu.org> | |
6100 | ||
6101 | * insdel.c (insert_from_string_1): Check gap size against number | |
6102 | of outgoing bytes, not incoming bytes. | |
6103 | ||
6104 | 1999-08-03 Tom Breton <tob@world.std.com> | |
6105 | ||
6106 | * lread.c (read1): Added circular reading code to #N=. | |
6107 | (SUBSTITUTE): New macro. | |
6108 | (seen_list): New variable. | |
6109 | (substitute_object_in_subtree): New function. | |
6110 | (substitute_object_recurse): New function. | |
6111 | (substitute_in_interval): New function. | |
6112 | ||
6113 | 1999-08-02 Eli Zaretskii <eliz@gnu.org> | |
6114 | ||
6115 | * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h. | |
6116 | ||
6117 | * frame.c (make_terminal_frame): Don't call init_frame_faces if | |
6118 | noninteractive, for termcap frames as well. | |
6119 | ||
6120 | * sysdep.c (init_sys_modes): Call init_frame_faces for termcap | |
6121 | frames. | |
6122 | ||
6123 | 1999-08-01 Richard Stallman <rms@gnu.org> | |
6124 | ||
6125 | * fns.c (internal_equal): Correct overlay comparison. | |
6126 | ||
83c8f461 | 6127 | 1999-07-31 Richard M. Stallman <rms@gnu.org> |
26901792 DL |
6128 | |
6129 | * xfns.c (x_set_internal_border_width): | |
6130 | Call do_pending_window_change. Don't block input, don't call XFlush. | |
6131 | (x_set_vertical_scroll_bars): Call do_pending_window_change. | |
6132 | (x_set_scroll_bar_width, x_set_font): Likewise. | |
6133 | ||
6134 | * frame.c (Fset_frame_height): Call do_pending_window_change. | |
6135 | (Fset_frame_width, Fset_frame_size): Likewise. | |
6136 | ||
6137 | * xterm.c (x_set_window_size): When calling change_frame_size, | |
6138 | specify 1 for DELAY. | |
6139 | ||
6140 | * widget.c (EmacsFrameSetCharSize): Don't call | |
6141 | do_pending_window_change here. | |
6142 | ||
6143 | 1999-07-30 Dave Love <fx@gnu.org> | |
6144 | ||
6145 | * config.in: Add HAVE_STDLIB_H. | |
6146 | ||
6147 | 1999-07-30 Richard M. Stallman <rms@gnu.org> | |
6148 | ||
6149 | * process.c (create_process): Detect failure of `pipe'. | |
6150 | ||
6151 | 1999-07-30 Keisuke Nishida <kei@psn.net> | |
6152 | ||
6153 | * alloc.c (allocate_vectorlike): Add missing increment. | |
6154 | ||
6155 | * data.c (Fdefalias): Call Ffset instead of duplicating code. | |
6156 | ||
6157 | * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT | |
6158 | before calling indirect_function. | |
6159 | ||
6160 | 1999-07-30 Eli Zaretskii <eliz@gnu.org> | |
6161 | ||
6162 | * dispextern.h (load_color, lookup_derived_face): Declare | |
6163 | prototypes. | |
6164 | ||
6165 | * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces, | |
6166 | it will be done later. | |
6167 | ||
6168 | * frame.c (make_terminal_frame) [MSDOS]: Don't call | |
6169 | init_frame_faces if non-interactive. | |
6170 | (Fframe_parameters) [MSDOS]: Replace indexing into colornames[] | |
6171 | array with a call to msdos_stdcolor_name. The font name is now | |
6172 | "ms-dos", consistent with realize_tty_face. | |
6173 | ||
6174 | * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an | |
6175 | MSDOS frame. | |
6176 | ||
6177 | * window.c (Fset_window_configuration) [MSDOS]: Don't call | |
6178 | x_set_toolbar_lines. | |
6179 | ||
6180 | * xfaces.c (load_color): Remove static from definition and remove | |
6181 | prototype. | |
6182 | [MSDOS]: Add a DOS-specific version of load_color. | |
6183 | (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P. | |
6184 | (lookup_derived_face): New function. | |
6185 | (realize_default_face): Support MSDOS frames. | |
6186 | [MSDOS]: If fore/background colors are unspecified, inherit them | |
6187 | from the frame. | |
6188 | (realize_face): Support MSDOS frames. | |
6189 | (realize_tty_face): Support MSDOS frames. | |
6190 | [MSDOS]: If the face color is not in Vface_tty_color_alist, call | |
6191 | load_color to try to find a suitable approximation. If the face | |
6192 | is inverse-video, swap the foreground and background colors. | |
6193 | ||
6194 | * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New | |
6195 | functions. | |
6196 | ||
6197 | * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare. | |
6198 | ||
6199 | * msdos.h: Remove redundant declarations (most of them are now in | |
6200 | dispextern.h). | |
6201 | ||
6202 | * msdos.c (IT_set_face): Rewritten for the new redisplay engine. | |
6203 | Use default frame colors if the face doesn't specify them; invert | |
6204 | the colors if highlight is ON. | |
6205 | (IT_write_glyphs): Rewritten for the new redisplay engine. | |
6206 | (IT_change_line_highlight): Add (unused) parameter Y, since that's | |
6207 | how the hook is called by term.c. | |
6208 | (IT_copy_glyphs): New function, copies an area of the display in | |
6209 | video RAM. | |
6210 | (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since | |
6211 | redisplay now calls it even if char_ins_del_ok is zero. | |
6212 | (IT_set_frame_parameters): Prototype changed. Calls the new | |
6213 | load_color. Puts the new fore/background colors into the default | |
6214 | face on current frame. | |
6215 | (IT_menu_display): Rewritten to handle the new struct glyph | |
6216 | instead of a char array. | |
6217 | (XMenuActivate): Call lookup_derived_face to create and use | |
6218 | special faces for the pop-up and drop-down menus. | |
6219 | ||
6220 | 1999-07-29 Gerd Moellmann <gerd@gnu.org> | |
6221 | ||
6222 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call | |
6223 | XawScrollbarSetThumb if thumb parameters haven't changed because | |
6224 | that function apparently isn't optimized for this case. | |
6225 | ||
6226 | 1999-07-29 Eli Zaretskii <eliz@gnu.org> | |
6227 | ||
6228 | * msdos.c (getdefdir): Don't return failure indication when | |
6229 | _fixpath sets errno to ENOSYS. | |
6230 | ||
6231 | 1999-07-28 Gerd Moellmann <gerd@gnu.org> | |
6232 | ||
6233 | * xdisp.c (string_char_and_length): New. Use it everywhere | |
6234 | instead of STRING_CHAR_AND_LENGTH in xdisp.c. | |
6235 | ||
6236 | 1999-07-28 Kenichi Handa <handa@etl.go.jp> | |
6237 | ||
6238 | * fns.c (count_combining): New function. | |
6239 | (struct textprop_rec): New structure. | |
6240 | (concat): Copy text properties correctly when byte combining | |
6241 | occurs. | |
6242 | ||
6243 | 1999-07-28 Gerd Moellmann <gerd@gnu.org> | |
6244 | ||
6245 | * xterm.c (x_setup_relief_color): Don't try smart color allocation | |
6246 | if display is mono. | |
6247 | (x_draw_row_bitmaps): If face has stipple, don't switch | |
6248 | to foreground color for clearing areas, and set the fill style. | |
6249 | ||
6250 | * xfaces.c (load_face_colors): Load background color if setting | |
6251 | stipple, too. | |
6252 | (prepare_face_for_display): Use FillOpaqueStippled instead of | |
6253 | FillStippled. | |
6254 | ||
6255 | 1999-07-26 Ken'ichi Handa <handa@gnu.org> | |
6256 | ||
6257 | * xterm.c (x_find_ccl_program): Add casting. | |
6258 | ||
6259 | * w32fns.c (w32_find_ccl_program): Add casting. | |
6260 | ||
6261 | 1999-07-27 Gerd Moellmann <gerd@gnu.org> | |
6262 | ||
6263 | * dispextern.h (struct glyph_row): Flag internal_border_p removed. | |
6264 | ||
6265 | * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource | |
6266 | because this will try to access a nonexisting widget. | |
6267 | ||
6268 | 1999-07-26 Markus Rost <rost@gnu.org> | |
6269 | ||
6270 | * fns.c (Fgethash): Fix order of variables (patch by gerd). | |
6271 | (Fputhash): Ditto. | |
6272 | (Fremhash): Ditto. | |
6273 | ||
6274 | 1999-07-26 Gerd Moellmann <gerd@gnu.org> | |
6275 | ||
6276 | * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth | |
6277 | value to frame width and height. | |
6278 | ||
6279 | * xterm.c (x_get_glyph_string_clip_rect): Take internal border | |
6280 | into account for full-width windows. Don't add scroll bar width | |
6281 | to width of clip rect. | |
6282 | (x_draw_glyph_string_box): Add 1 to right x of full width lines. | |
6283 | (x_set_glyph_string_background_width): Add 1 to background width. | |
6284 | (x_draw_glyphs): Take internal border into account for full-width | |
6285 | lines. | |
6286 | ||
6287 | 1999-07-26 Richard M. Stallman <rms@gnu.org> | |
6288 | ||
6289 | * xfns.c (x_set_mouse_color): Always unload the old color. | |
6290 | Don't allow nil as color value. | |
6291 | (x_set_cursor_color, x_set_background_color, x_set_foreground_color): | |
6292 | Always unload the old color. | |
6293 | ||
6294 | * indent.c (Fmove_to_column): Extend end of line only if FORCE is t. | |
6295 | ||
6296 | 1999-07-26 Karl Heuer <kwzh@gnu.org> | |
6297 | ||
6298 | * fns.c (Fy_or_n_p): Doc fix. | |
6299 | ||
6300 | 1999-07-26 Kenichi Handa <handa@etl.go.jp> | |
6301 | ||
6302 | * ccl.h (setup_ccl_program): The type is changed to `int'. | |
6303 | ||
6304 | * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be | |
6305 | stored in the following CCL code. Adjusted for the change of | |
6306 | Vccl_program_table. | |
6307 | (resolve_symbol_ccl_program): Adjusted for the new style of | |
6308 | embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt | |
6309 | is resolving failed. | |
6310 | (ccl_get_compiled_code): New function. | |
6311 | (setup_ccl_program): Function type changed from `void' to `int'. | |
6312 | Resolve symbols in CCL_PROG. | |
6313 | (Fccl_program_p): New function. | |
6314 | (Fccl_execute): Get compiled CCL code by just calling | |
6315 | setup_ccl_program. | |
6316 | (Fccl_execute_on_string): Likewise. | |
6317 | (Fregister_ccl_program): Adjusted for the change of | |
6318 | Vccl_program_table. | |
6319 | ||
6320 | * coding.c (setup_coding_system): Get compiled CCL code by just | |
6321 | calling setup_ccl_program. | |
6322 | ||
6323 | * xterm.c (x_find_ccl_program): Get compiled CCL code by just | |
6324 | calling setup_ccl_program. | |
6325 | ||
6326 | * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just | |
6327 | calling setup_ccl_program. | |
6328 | ||
6329 | 1999-07-23 Gerd Moellmann <gerd@gnu.org> | |
6330 | ||
6331 | * xfaces.c (frame_update_line_height): Just use the height of the | |
6332 | frame's fontset or font, instead of taking face fonts into | |
6333 | account. | |
6334 | ||
6335 | * xdisp.c (get_next_display_element): Display DEL as `^?'. | |
6336 | ||
6337 | 1999-07-23 Richard M. Stallman <rms@gnu.org> | |
6338 | ||
6339 | * window.c (Fsplit_window): For default size, round up for left window. | |
6340 | ||
6341 | 1999-07-21 Joe Ramey <ramey@ti.com> | |
6342 | ||
6343 | * filelock.c (lock_if_free): Return -1 if check_lock_owner | |
6344 | has returned -1 (lockfile exists but is not a symlink?). | |
6345 | ||
6346 | 1999-07-20 Gerd Moellmann <gerd@gnu.org> | |
6347 | ||
6348 | * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to | |
6349 | because of a change in cursor_gc made in 20.4. | |
6350 | ||
6351 | 1999-07-19 Gerd Moellmann <gerd@gnu.org> | |
6352 | ||
6353 | * xterm.c (x_calc_absolute_position): Subtract menu bar height | |
6354 | for YNegative, if using X toolkit. | |
6355 | ||
6356 | * xfns.c (x_real_positions): Don't subtract window borders | |
6357 | from positions returned. | |
6358 | ||
6359 | 1999-07-17 Gerd Moellmann <gerd@gnu.org> | |
6360 | ||
6361 | * xrdb.c (x_load_resources): Set double-click time defaults | |
6362 | for Motif list boxes from double-click-time. | |
6363 | ||
6364 | * fns.c (Vhash_table_tests): Remvoed. | |
6365 | (Qhash_table_test): New. | |
6366 | (syms_of_fns): Initialize Qhash_table_test. | |
6367 | (Fmake_hash_table): Look up user-defined tests in symbol prop | |
6368 | `hash-table-test'. | |
6369 | (Fdefine_hash_table_test): Store test and hash function as | |
6370 | symbol prop `hash-table-test'. | |
6371 | (make_hash_table): Add parameters user_test and user_hash. | |
6372 | ||
6373 | * window.c (set_window_buffer): Set window margins for tty | |
6374 | frames, too. | |
6375 | (Fset_window_margins): Ditto. | |
6376 | ||
6377 | * term.c (append_glyph): Use glyph area of iterator instead of | |
6378 | always TEXT_AREA. | |
6379 | ||
6380 | * dispnew.c (update_frame_1): Add left margin width to cursor | |
6381 | hpos. | |
6382 | (direct_output_for_insert): Ditto. | |
6383 | (direct_output_forward_char): Ditto. | |
6384 | ||
6385 | * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p. | |
6386 | ||
6387 | * dispextern.h (struct glyph_matrix): Add top_line_p. | |
6388 | ||
6389 | 1999-07-16 Gerd Moellmann <gerd@gnu.org> | |
6390 | ||
6391 | * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P | |
6392 | instead. | |
6393 | ||
6394 | * fns.c (cmpfn_eq): Add hash code parameters. | |
6395 | (cmpfn_eql): Ditto. | |
6396 | (cmpfn_equal): Ditto, and compare hash codes before calling Fequal. | |
6397 | (cmpfn_user_defined): Likewise. | |
6398 | ||
6399 | 1999-07-15 Gerd Moellmann <gerd@gnu.org> | |
6400 | ||
6401 | * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8. | |
6402 | ||
6403 | * fns.c (maybe_resize_hash_table): Correct computation of | |
6404 | index vector size. | |
6405 | (make_hash_table): Ditto. | |
6406 | (Fmakehash): New. | |
6407 | ||
6408 | * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames. | |
6409 | ||
6410 | * alloc.c (gc_sweep): Call sweep_weak_hash_tables. | |
6411 | (survives_gc_p): Make it externally visible. | |
6412 | (mark_object): Ditto. | |
6413 | ||
6414 | * fns.c (remove_hash_entry): Removed. | |
6415 | (sweep_weak_hash_tables): New. | |
6416 | ||
6417 | * print.c (print): Print more information about hash tables. | |
6418 | ||
6419 | * xfns.c (image_spec_hash): Removed. | |
6420 | (lookup_image): Use sxhash instead of image_spec_hash. | |
6421 | (image_spec_equal_p): Removed. | |
6422 | (lookup_image): Use Fequal instead of image_spec_equal_p. | |
6423 | ||
6424 | 1999-07-14 Gerd Moellmann <gerd@gnu.org> | |
6425 | ||
6426 | * lisp.h (P_): Moved to top of file. | |
6427 | ||
6428 | * fns.c (make_hash_table): Set new members. | |
6429 | ||
6430 | * alloc.c (mark_object): Mark hash table's user_hash_function. | |
6431 | Mark index vector for weak hash tables. | |
6432 | ||
6433 | * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function, | |
6434 | user_hash_function, cmpfn, and hashfn. | |
6435 | ||
6436 | * fns.c (build_hash): Removed. | |
6437 | (hash_test): Removed. | |
6438 | (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New. | |
6439 | (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New. | |
6440 | ||
6441 | 1999-07-13 Gerd Moellmann <gerd@gnu.org> | |
6442 | ||
6443 | * alloc.c (survives_gc_p): New. | |
6444 | ||
6445 | * print.c (print): Add hash table handling. | |
6446 | ||
6447 | * alloc.c (mark_object): Add code to mark hash tables. | |
6448 | ||
6449 | * lisp.h (GC_HASH_TABLE_P): New. | |
6450 | ||
6451 | * emacs.c (main): Call init_fns. | |
6452 | ||
6453 | * fns.c (init_fns): New. | |
6454 | ||
6455 | * fns.c: Add hash table implementation. | |
6456 | ||
6457 | * lisp.h (PVEC_HASH_TABLE): New. | |
6458 | (struct Lisp_Hash_Table): New. | |
6459 | (XHASH_TABLE): New. | |
6460 | (XSET_HASH_TABLE): New. | |
6461 | (HASH_TABLE_P): New. | |
6462 | (CHECK_HASH_TABLE): New. | |
6463 | (DEFAULT_HASH_SIZE): New. | |
6464 | (DEFAULT_REHASH_THRESHOLD): New. | |
6465 | (DEFAULT_REHASH_SIZE): New. | |
6466 | ||
6467 | * xterm.c (x_draw_glyphs): Add parameters real_start and real_end. | |
6468 | (x_write_glyphs): Compute overwritten cursor using real start | |
6469 | and end positions of display. | |
6470 | (x_insert_glyphs): Ditto. | |
6471 | ||
6472 | 1999-07-10 Gerd Moellmann <gerd@gnu.org> | |
6473 | ||
6474 | * keyboard.c (read_char): Use message3_nolog to show help-echo. | |
6475 | ||
6476 | * dispnew.c (blank_row): Add y-position as parameter. Compute | |
6477 | visible height. | |
6478 | ||
6479 | * xdisp.c (next_element_from_string): Give padding spaces | |
6480 | a position of -1. | |
6481 | ||
6482 | * dispnew.c (adjust_glyph_matrix): Some work to support | |
6483 | marginals areas on tty frames in a future version. | |
6484 | (allocate_matrices_for_frame_redisplay): Ditto. | |
6485 | ||
6486 | * xdisp.c (display_line): At ZV, set glyph row's displays_text_p | |
6487 | to zero if number of glyphs in the row is <= 1. | |
6488 | ||
6489 | 1999-07-09 Gerd Moellmann <gerd@gnu.org> | |
6490 | ||
6491 | * dispnew.c (buffer_posn_from_coords): Take left marginal area | |
6492 | into account. | |
6493 | ||
6494 | * xdisp.c (handle_display_prop): Don't reset area if handing | |
6495 | a property from a string that came from a `display' property. | |
6496 | (handle_single_display_prop): Don't handle recursive `display' | |
6497 | properties. | |
6498 | (handle_single_display_prop): Handle some display property | |
6499 | forms for terminal frames. | |
6500 | (Qimage): Moved here from xfns.c. | |
6501 | ||
6502 | * dispextern.h (struct it): New field string_from_display_prop_p. | |
6503 | ||
6504 | * xterm.c (x_clip_to_row): Don't let clip_rect include top | |
6505 | line. | |
6506 | ||
6507 | 1999-07-08 Gerd Moellmann <gerd@gnu.org> | |
6508 | ||
6509 | * xdisp.c (handle_single_display_prop): Handle `:when FORM'. | |
6510 | ||
6511 | * window.c (set_window_buffer): Set window's vscroll to zero. | |
6512 | ||
6513 | * xdisp.c (QCwhen): New. | |
6514 | (display_prop_end): New. | |
6515 | (handle_single_display_prop): Use it. | |
6516 | (debug_method_add): Print buffer name if tracing. | |
6517 | (try_window_reusing_current_matrix): Compute visible height | |
6518 | of reused rows. Fix cursor position calculation in case of | |
6519 | top-line. | |
6520 | ||
6521 | * dispextern.h (struct redisplay_interface): Add parameter | |
6522 | cursor_on_p to update_window_end_hook. | |
6523 | ||
6524 | * xterm.c (x_update_window_end): Add parameter cursor_on_p. | |
6525 | ||
6526 | 1999-07-07 Gerd Moellmann <gerd@gnu.org> | |
6527 | ||
6528 | * xdisp.c (redisplay_internal): Ensure that redisplayinp_p | |
6529 | doesn't become negative when decrementing it. | |
6530 | ||
6531 | * eval.c (Fsignal): Reset redisplaying_p to zero. | |
6532 | ||
6533 | * xdisp.c (try_window_reusing_current_matrix): Call hooks | |
6534 | for window update. | |
6535 | (try_window_id): Ditto. | |
6536 | ||
6537 | * xterm.c (x_clear_end_of_line): Handle top-line correctly. | |
6538 | (x_scroll_run): Ditto. | |
6539 | (any_help_event_p): New. | |
6540 | (x_initialize): Set it to zero. | |
6541 | (XTread_socket): Clear help echo only if any_help_event_p. | |
6542 | ||
6543 | * xdisp.c (init_iterator): Set top_line_p. | |
6544 | (start_display): Use correct initial y if top-line is present. | |
6545 | (make_cursor_line_fully_visible): Bug fixes for top-line. | |
6546 | (try_scrolling): Ditto. | |
6547 | (try_window_reusing_current_matrix): Ditto. | |
6548 | ||
6549 | * dispextern.h (struct it): Add top_line_p. | |
6550 | ||
6551 | * dispnew.c (shift_glyph_matrix): Move some computations out | |
6552 | of the loop. | |
6553 | ||
6554 | * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and | |
6555 | XFLOATINT. | |
6556 | ||
6557 | 1999-07-06 Gerd Moellmann <gerd@gnu.org> | |
6558 | ||
6559 | * dispnew.c (update_frame_1): When setting cursor in echo area, | |
6560 | skip only over padding spaces at the end. | |
6561 | ||
6562 | * xfaces.c (realize_tty_face): Set face's font_name field to | |
6563 | "tty". | |
6564 | ||
6565 | * term.c (update_end): Turn cursor on only if selected window's | |
6566 | cursor_off_p flag is not set. | |
6567 | ||
6568 | 1999-07-05 Gerd Moellmann <gerd@gnu.org> | |
6569 | ||
6570 | * term.c (TS_cursor_visible): Renamed from TS_visual_mode. | |
6571 | (TS_cursor_normal): Renamed from TS_end_visual_mode. | |
6572 | (TS_cursor_invisible): New. | |
6573 | (term_init): Initialize TS_cursor_invisible. | |
6574 | (tty_hide_cursor): New. | |
6575 | (tty_show_cursor): New. | |
6576 | (update_end): Show tty cursor. | |
6577 | (update_begin): Hide tty cursor to prevent cursor flickering | |
6578 | during redisplays triggered by timers (stealth fontification). | |
6579 | ||
6580 | * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers. | |
6581 | ||
6582 | * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events | |
6583 | in scroll bars. | |
6584 | (x_handle_toolbar_click): Set modifier bits. | |
6585 | ||
6586 | 1999-07-04 Gerd Moellmann <gerd@gnu.org> | |
6587 | ||
6588 | * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer | |
6589 | instead of a pointer to a volatile input_event. | |
6590 | (kbd_buffer_store_event): Remove volatile modifier from | |
6591 | declaration of local variable `sp'. | |
6592 | (Fdiscard_input): Don't cast when assigning kbd_store_ptr | |
6593 | to kbd_fetch_ptr. | |
6594 | ||
6595 | 1999-07-03 Gerd Moellmann <gerd@gnu.org> | |
6596 | ||
6597 | * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged | |
6598 | only if buffer is modified. Return quickly if changes are | |
6599 | above window start. | |
6600 | ||
6601 | 1999-07-02 Gerd Moellmann <gerd@gnu.org> | |
6602 | ||
6603 | * dispextern.h (HSCROLL_WINDOWS): Removed. | |
6604 | ||
6605 | * xdisp.c (mark_window_display_accurate): Don't set | |
6606 | w->region_showing. | |
6607 | (redisplay_internal): Don't call redraw_garbaged_frames. | |
6608 | ||
6609 | 1999-07-01 Gerd Moellmann <gerd@gnu.org> | |
6610 | ||
6611 | * xdisp.c (echo_area_display): Don't display truncation marks | |
6612 | for messages because 20.4 doesn't do it either. | |
6613 | (redisplay_window): Case same window start. Instead of giving | |
6614 | up when cursor is partially visible, make it fully visible. | |
6615 | (mark_window_display_accurate): Some cleanup. Record window's | |
6616 | last cursor information. | |
6617 | (debug_method_add): Improved. | |
6618 | (redisplay_internal): Record last cursor info only if not | |
6619 | consider_all_windows_p. | |
6620 | ||
6621 | * dispnew.c (update_window): Update top line after scrolling. | |
6622 | (blank_row): Renamed from make_empty_enabled_row. | |
6623 | (increment_glyph_row_buffer_positions): Increment positions | |
6624 | in buffers, only. | |
6625 | ||
6626 | * window.c (Fcoordinates_in_window_p): Add top-line to doc | |
6627 | string. | |
6628 | ||
6629 | 1999-06-30 Gerd Moellmann <gerd@gnu.org> | |
6630 | ||
6631 | * dispnew.c (update_window): Check that updated row is visible. | |
6632 | ||
6633 | * xterm.c (x_draw_row_bitmaps): Check for invisible rows at | |
6634 | top of window differently. | |
6635 | ||
6636 | * xdisp.c (try_window_reusing_current_matrix): Don't do it | |
6637 | if region is showing. | |
6638 | ||
6639 | * dispnew.c (adjust_glyph_matrix): Check w->vscroll when | |
6640 | avoiding matrix reallocation. Set window_vscroll in matrix. | |
6641 | ||
6642 | * dispextern.h (struct glyph_matrix): Add member window_vscroll. | |
6643 | ||
26901792 DL |
6644 | * xdisp.c (debug_method_add): New. |
6645 | (debug_redisplay_method): Removed. | |
6646 | (try_window_reusing_current_matrix): Handle case where old | |
6647 | window start is the same as new window start. | |
6648 | ||
6649 | * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method' | |
6650 | an array instead of a pointer. | |
6651 | ||
26901792 DL |
6652 | * xfns.c (Fx_show_tip): Undo previous change. |
6653 | ||
6654 | * xterm.c (x_append_glyph): Clear glyph->u.val. | |
6655 | ||
6656 | * dispextern.h (struct glyph): Increase size of face_id bit-field | |
6657 | for CHAR_GLYPH to 12. | |
6658 | ||
6659 | 1999-06-29 Gerd Moellmann <gerd@gnu.org> | |
6660 | ||
6661 | * xfaces.c (x_charset_registry): Make it externally visible. | |
6662 | ||
6663 | 1999-06-28 Gerd Moellmann <gerd@gnu.org> | |
6664 | ||
6665 | * dispnew.c (update_window): Use mode_line_p flag of rows | |
6666 | instead of WINDOW_WANTS_MODELINE_P. | |
6667 | ||
6668 | * xterm.c (clear_mouse_face): Make externally visible. | |
6669 | ||
6670 | * xfns.c (Fx_show_tip): Clear mouse face before showing tip. | |
6671 | ||
6672 | * xterm.c (expose_line): Handle exposure of top-lines. | |
6673 | ||
6674 | * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight | |
6675 | if mouse_face_mouse_frame is null. | |
6676 | ||
6677 | * xdisp.c (redisplay_window): If window is echo_area_window, | |
6678 | and update_mode_line is set, update menubar and toolbar. | |
6679 | ||
6680 | * dispnew.c (space_glyph): Set its charpos to -1. | |
6681 | (update_frame_1): Ignore trailing padding spaces. | |
6682 | ||
6683 | * xdisp.c (next_element_from_c_string): Set position of padding | |
6684 | glyphs to -1. | |
6685 | ||
6686 | 1999-06-27 Gerd Moellmann <gerd@gnu.org> | |
6687 | ||
6688 | * xfns.c (x_laplace_read_row): Use XQueryColors instead of | |
6689 | XQueryColor. | |
6690 | ||
6691 | * xdisp.c (display_menu_bar): Remove unwarranted assertion. | |
6692 | (set_cursor_from_row): Skip over glyphs having a null object at | |
6693 | the start of rows. | |
6694 | (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation | |
6695 | glyphs. | |
6696 | (handle_invisible_prop): Compute next change only when needed. | |
6697 | (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode | |
6698 | line. | |
6699 | ||
6700 | 1999-06-26 Gerd Moellmann <gerd@gnu.org> | |
6701 | ||
6702 | * xrdb.c (x_load_resources): Don't set resource for double-click | |
6703 | time. | |
6704 | ||
6705 | * xdisp.c (try_window_id): Return quickly if all changes are | |
6706 | below the window's current matrix end. | |
6707 | ||
6708 | * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window | |
6709 | parameter. | |
6710 | ||
6711 | * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p | |
6712 | in desired not in current matrix. | |
6713 | (try_window_reusing_current_matrix): Rotate matrices starting | |
6714 | at start_vpos instead of 0. | |
6715 | ||
6716 | * xterm.c (expose_window): Use window_text_bottom_y. | |
6717 | (fast_find_position): Ditto. | |
6718 | ||
6719 | * xdisp.c (redisplay_window): Use window_text_bottom_y. | |
6720 | (try_window_reusing_current_matrix): Ditto. | |
6721 | (get_last_unchanged_at_beg_row): Ditto. | |
6722 | (init_iterator): Ditto. | |
6723 | ||
6724 | * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one | |
6725 | more row. | |
6726 | (check_matrix_invariants): Use window_text_bottom_y. | |
6727 | (update_window): Ditto. | |
6728 | (scrolling_window): Ditto. | |
6729 | ||
6730 | * xdisp.c (window_text_bottom_y): New. | |
6731 | ||
6732 | 1999-06-25 Gerd Moellmann <gerd@gnu.org> | |
6733 | ||
6734 | * xterm.c (XTread_socket): Set mouse_face_frame to zero after | |
6735 | clearing mouse face. | |
6736 | (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If | |
6737 | event.xcrossing.focus is not set, and focus is in the menu bar, | |
6738 | set focus frame as if event.xcrossing.focus were set. | |
6739 | ||
6740 | 1999-06-24 Gerd Moellmann <gerd@gnu.org> | |
6741 | ||
6742 | * keyboard.c (make_lispy_event): Handle mouse on top lines. | |
6743 | * keyboard.c (make_lispy_movement): Ditto. | |
6744 | ||
6745 | * window.c (coordinates_in_window): Return 4 if on top line. | |
6746 | (Fcoordinates_in_window_p): Return `top-line' if on top line. | |
6747 | ||
6748 | * xdisp.c (window_box_height): Subtract top line height. | |
6749 | (window_box): Add top line height to top y position if top line | |
6750 | exists. | |
6751 | (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to | |
6752 | the top line row of the window. Set initial y-position to | |
6753 | window's top line height plus delta. | |
6754 | (start_display): Choose start glyph row depending on whether | |
6755 | window has a top line. | |
6756 | (try_scrolling): Take top line height into account for aggressive | |
6757 | scrolling. | |
6758 | (compute_window_start_on_continuation_line): Take top line into | |
6759 | account. | |
6760 | (redisplay_window): Ditto. If top line height has changed, | |
6761 | trigger a new redisplay. | |
6762 | (try_window_reusing_current_matrix): Take top line into account. | |
6763 | (find_last_row_displaying_text): Ditto. | |
6764 | (get_last_unchanged_at_beg_row): DItto. | |
6765 | (try_window_id): Ditto. | |
6766 | (compute_line_metrics): Ditto. | |
6767 | ||
6768 | * dispnew.c (shift_glyph_matrix): Compute visible row height | |
6769 | taking top line of window into account. | |
6770 | (update_window): Update top line. If scrolling_window detects | |
6771 | that all rows are equal, only set cursor. | |
6772 | (update_window_line): Call after_update_window_line_hook if | |
6773 | mode_line_p flag of rows has changed. | |
6774 | (scrolling_window): Add parameter top_line_p. Return -1 if | |
6775 | all rows are equal. | |
6776 | (mode_line_string): Add parameter mode_line_p. Handle strings | |
6777 | in top lines. | |
6778 | ||
6779 | * dispextern.h (MATRIX_TOP_LINE_ROW): New. | |
6780 | (MATRIX_FIRST_TEXT_ROW): New. | |
6781 | (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height. | |
6782 | (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New. | |
6783 | (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New. | |
6784 | (MATRIX_TOP_LINE_HEIGHT): New. | |
6785 | (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height. | |
6786 | (CURRENT_TOP_LINE_HEIGHT): New. | |
6787 | (DESIRED_TOP_LINE_HEIGHT): New. | |
6788 | (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New. | |
6789 | (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces | |
6790 | WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT. | |
6791 | (WINDOW_DISPLAY_TEXT_HEIGHT): New. | |
6792 | ||
6793 | * xterm.c (x_after_update_window_line): Don't draw bitmaps for top | |
6794 | lines. | |
6795 | (x_draw_row_bitmaps): Take top line into account when clearing | |
6796 | bitmap area. | |
6797 | (x_estimate_mode_line_height): Replacement for | |
6798 | x_frame_mode_line_height. | |
6799 | (x_get_glyph_string_clip_rect): Take top line into account. | |
6800 | (x_clear_end_of_line): Ditto. | |
6801 | (note_mode_line_highlight): Add parameter mode_line_p. Handle | |
6802 | top lines. | |
6803 | (note_mouse_highlight): Call note_mode_line_highlight for top lines. | |
6804 | (x_erase_phys_cursor): Take top line into account. | |
6805 | ||
6806 | * xdisp.c (window_box_height): Subtract top line height if | |
6807 | window wants a top line. | |
6808 | (display_mode_lines): New. | |
6809 | (redisplay_window): Call it. | |
6810 | (display_mode_line): Add parameters face_id and format. | |
6811 | ||
6812 | * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New. | |
6813 | (MATRIX_TOP_LINE_HEIGHT): New. | |
6814 | ||
6815 | * xterm.c (x_frame_mode_line_height): Add parameter face_id. | |
6816 | ||
6817 | * term.c (estimate_mode_line_height): Renamed from | |
6818 | frame_mode_line_height. Add parameter face_id. | |
6819 | (estimate_mode_line_height_hook): Renamed from | |
6820 | frame_mode_line_height_hook. | |
6821 | (produce_special_glyphs_hook): Removed. | |
6822 | (produce_glyphs_hook): Removed. | |
6823 | ||
6824 | 1999-06-23 Gerd Moellmann <gerd@gnu.org> | |
6825 | ||
6826 | * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New. | |
6827 | (struct glyph_row): Add mode_line_p. | |
6828 | ||
6829 | * xfaces.c (realize_basic_faces): Realize face `top-line'. | |
6830 | (Qtop_line): New. | |
6831 | (syms_of_xfaces): Initialize Qtop_line. | |
6832 | ||
6833 | * dispextern.h (TOP_LINE_FACE_ID): New. | |
6834 | ||
6835 | * buffer.c (init_buffer_once): Set default for | |
6836 | top_line_format to nil. | |
6837 | (init_buffer_once): Init top_line_format. | |
6838 | (default-top-line-format): New. | |
6839 | (top-line-format): New buffer-local variable. | |
6840 | ||
6841 | * buffer.h: Add top_line_format. | |
6842 | ||
6843 | * xdisp.c (overlay_arrow_changed_p): Removed because not used. | |
6844 | ||
6845 | 1999-06-17 Dave Love <fx@gnu.org> | |
6846 | ||
6847 | * xfns.c: Move the PNG section before the JPEG one to avoid | |
6848 | problems surrounding setjmp.h/png.h on GNU/Linux. | |
6849 | ||
6850 | 1999-06-17 Gerd Moellmann <gerd@gnu.org> | |
6851 | ||
6852 | * xfns.c (x_kill_gs_process): Don't free colors. | |
6853 | ||
6854 | 1999-06-17 Dave Love <fx@gnu.org> | |
6855 | ||
6856 | * s/gnu-linux.h: Zap spurious ~. | |
6857 | ||
6858 | 1999-06-16 Gerd Moellmann <gerd@gnu.org> | |
6859 | ||
6860 | * xfns.c (gif_load): Improve multi-image support. | |
6861 | ||
6862 | 1999-06-15 Gerd Moellmann <gerd@gnu.org> | |
6863 | ||
6864 | * xfns.c (gif_load): Support multi-image files. | |
6865 | ||
6866 | * Makefile.in (LIBGIF): Use libungif. | |
6867 | ||
6868 | * configure.in (HAVE_GIF): Use libungif instead of libgif | |
6869 | because the former doesn't contain patented compression code. | |
6870 | ||
6871 | * xdisp.c (compute_window_start_on_continuation_line): Don't | |
6872 | do it if line start is too far away from window start. | |
6873 | ||
6874 | 1999-06-14 Gerd Moellmann <gerd@gnu.org> | |
6875 | ||
6876 | * buffer.c (init_buffer_once): Set buffer_local_flags for | |
6877 | scroll_*_aggressively. | |
6878 | (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively. | |
6879 | (init_buffer_once): Set defaults for these variables. | |
6880 | (syms_of_buffer): Add default-scroll-*-aggressively. | |
6881 | ||
6882 | * buffer.h (scroll_up_aggressively): New. | |
6883 | (scroll_down_aggressively): New. | |
6884 | ||
6885 | * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with | |
6886 | a static PNG library. | |
6887 | ||
6888 | * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib | |
6889 | in case it's a static library. | |
6890 | ||
6891 | * Makefile.in (ctagsfiles): Split so that files starting | |
6892 | with an `x' are found before files starting with `w32'. | |
6893 | (ctagsfiles1): New. | |
6894 | (ctagsfiles2): New. | |
6895 | (TAGS): Use ctagsfiles[12] instead of ctagsfiles. | |
6896 | ||
6897 | * xdisp.c (compute_window_start_on_continuation_line): New. | |
6898 | (redisplay_window): Use it. | |
6899 | (INFINITY): New. | |
6900 | (reseat_to_string): Use it. | |
6901 | (hscroll_window_tree): Ditto. | |
6902 | (compute_window_start_on_continuation_line): Ditto. | |
6903 | (redisplay_window): Don't force display with a new window start. | |
6904 | ||
6905 | 1999-06-06 Gerd Moellmann <gerd@gnu.org> | |
6906 | ||
6907 | * xfns.c (x_report_frame_params): Don't report `outer-window-id' | |
6908 | if widget not present. | |
6909 | ||
6910 | * xdisp.c (prepare_menu_bars): Ignore tooltip frame. | |
6911 | ||
6912 | 1999-06-04 Gerd Moellmann <gerd@gnu.org> | |
6913 | ||
6914 | * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return | |
6915 | value of realize_basic_faces. | |
6916 | (load_face_font_or_fontset): Store full font name in face. | |
6917 | (realize_default_face): Use full font name. | |
6918 | ||
26901792 DL |
6919 | * xterm.c (x_produce_glyphs): Set member char_to_display. |
6920 | (x_append_glyph): Store char_to_display in glyphs. | |
6921 | ||
6922 | * dispextern.h (struct it): Add char_to_display. | |
6923 | ||
6924 | * xfns.c (x_set_font): Don't call face-set-after-frame-default | |
6925 | if faces haven't been initialized. | |
6926 | (Fx_create_frame): Call face-set-after-frame-default after | |
6927 | faces have been initialized, and widget has been created. | |
6928 | ||
6929 | * puresize.h (BASE_PURESIZE): Increased. | |
6930 | ||
6931 | 1999-06-01 Gerd Moellmann <gerd@gnu.org> | |
6932 | ||
6933 | * xfaces.c (set_lface_from_font_name): Add parameter force_p. | |
6934 | (Finternal_set_lisp_face_attribute): If frame is t when | |
6935 | :font attribute is set, use the selected frame. | |
6936 | (clear_face_cache): Add parameter clear_fonts_p. | |
6937 | (Fclear_face_cache): Add optional parameter thorougly. | |
6938 | ||
6939 | * xfaces.c (face_numeric_value): Return -1 if symbol is not | |
6940 | in table. | |
6941 | (Fclear_face_cache): New. | |
6942 | (choose_face_fontset_font): If fontset doesn't contain font | |
6943 | pattern for the given charset, use CHARSET_ASCII. | |
6944 | (Finternal_set_lisp_face_attribute): Fix handling of nil | |
6945 | stipple attribute. | |
6946 | (Finternal_set_lisp_face_attribute): Fix handling of changing | |
6947 | font-related face attributes of the default face. | |
6948 | (set_lface_from_font_name): Set only attributes that aren't | |
6949 | specified. | |
6950 | ||
6951 | 1999-05-31 Gerd Moellmann <gerd@gnu.org> | |
6952 | ||
6953 | * xfaces.c (SCALABLE_FONTS): Define this to enable scalable | |
6954 | font support. | |
6955 | (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New. | |
6956 | (x_face_list_fonts): Add parameter scalable_fonts_p. Handle | |
6957 | scalable fonts depending on the setting of SCALABLE_FONTS. | |
6958 | (first_font_matching): List more than one font to find the | |
6959 | first non-scalable matching font. | |
6960 | (sorted_font_list): Let x_face_list_fonts return scalable fonts | |
6961 | depending on SCALABLE_FONTS. | |
6962 | (better_font_p): New parameter compare_pt_p. If zero, don't | |
6963 | compare point sizes of fonts. | |
6964 | (exact_face_match_p) [SCALABLE_FONTS]: New. | |
6965 | (build_scalable_font_name) [SCALABLE_FONTS]: New. | |
6966 | (may_use_scalable_font_p) [SCALABLE_FONTS]: New. | |
6967 | (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts. | |
6968 | (syms_of_xfaces): Add scalable-fonts-allowed. | |
6969 | ||
6970 | 1999-05-26 Gerd Moellmann <gerd@gnu.org> | |
6971 | ||
6972 | * xfns.c (png_load): Let PNG lib handle gamma. Construct | |
6973 | mask only if image contains simple transparency information. | |
6974 | Otherwise, combine image with frame background color. | |
6975 | ||
6976 | * configure.in (--with-png, HAVE_PNG): New. | |
6977 | ||
6978 | * config.in (HAVE_PNG): New. | |
6979 | ||
6980 | * Makefile.in: Add PNG library. | |
6981 | ||
6982 | * xfns.c: Add PNG support. | |
6983 | ||
6984 | 1999-05-25 Gerd Moellmann <gerd@gnu.org> | |
6985 | ||
6986 | * xdisp.c (init_xdisp): Initialize echo_area_message and | |
6987 | previous_echo_area_message to nil. | |
6988 | ||
6989 | * keyboard.c (read_char): Rename local variable echo_area_message | |
6990 | because it shadows the global one. | |
6991 | ||
6992 | 1999-05-05 Gerd Moellmann <gerd@gnu.org> | |
6993 | ||
6994 | * xterm.c (note_mode_line_highlight): Restructured. | |
6995 | ||
6996 | * window.c (coordinates_in_window): Handle windows that don't have | |
6997 | a mode line because their buffer's mode-line-format is nil. | |
6998 | Recognize the mode line under x positions that correspond to | |
6999 | flags areas and left scroll bar. | |
7000 | ||
7001 | 1999-05-02 Dave Love <fx@gnu.org> | |
7002 | ||
7003 | * xterm.c (note_mouse_highlight): Separate help-echo processing | |
7004 | from check on mouse-face so that it works generally. | |
7005 | ||
7006 | 1999-04-21 Gerd Moellmann <gerd@gnu.org> | |
7007 | ||
7008 | * sound.c (Fplay_sound): Run hook play-sound-hook. | |
7009 | (Qplay_sound_hook): New. | |
7010 | ||
7011 | 1999-04-20 Gerd Moellmann <gerd@gnu.org> | |
7012 | ||
7013 | * xdisp.c (update_echo_area): Handle echo_area_message. | |
7014 | ||
7015 | 1999-04-19 Gerd Moellmann <gerd@gnu.org> | |
7016 | ||
7017 | * editfns.c (Fmessage): Use message3. | |
7018 | ||
7019 | * print.c (printchar): Set echo_area_message to nil. | |
7020 | (strout): Ditto. | |
7021 | ||
7022 | * minibuf.c (read_minibuf): Reset echo message strings to nil. | |
7023 | (Fminibuffer_completion_help): Ditto. | |
7024 | ||
7025 | * keyboard.c (cmd_error_internal): Set echo_areA_message. | |
7026 | (command_loop_1): Test echo_areA_message. | |
7027 | (read_char): Ditto. | |
7028 | (record_menu_key): Set echo_area_message to nil. | |
7029 | (Fexecute_extended_command): Test echo_area_message. | |
7030 | (Fexecute_extended_command): Handle echo_area_message. | |
7031 | ||
7032 | * fileio.c (Fdo_auto_save): Handle the case that echo_area_message | |
7033 | is set. | |
7034 | ||
7035 | * editfns.c (Fcurrent_message): If echo_area_message is set, | |
7036 | return a substring of that string. | |
7037 | ||
7038 | * dispnew.c (direct_output_for_insert): Test echo_area_message | |
7039 | in addition to echo_area_glyphs. | |
7040 | (set_window_cursor_after_update): Ditto. | |
7041 | (update_frame_1): Ditto. | |
7042 | ||
7043 | * alloc.c (Fgarbage_collect): Use message3_nolog to display | |
7044 | old Lisp message string. | |
7045 | ||
7046 | * xdisp.c (echo_area_message): New. | |
7047 | (previous_echo_area_message): New. | |
7048 | (syms_of_xdisp): Initialize and staticpro new variables. | |
7049 | (echo_area_display): Display echo_area_message if set. | |
7050 | (message2_nolog): Set echo_area_message and | |
7051 | previous_echo_area_message. | |
7052 | (echo_area_display): Set previous_echo_area_message. | |
7053 | (redisplay_internal): Display echo area if echo_area_message | |
7054 | or previous_echo_area_message are set. | |
7055 | (redisplay_preserve_echo_area): Test/set echo_area_message and | |
7056 | previous_echo_area_message. | |
7057 | (redisplay_window): Test echo_area_message. | |
7058 | (message3_nolog): New. | |
7059 | (message3): New. | |
7060 | ||
7061 | * editfns.c (Fformat): Add text properties to the result string | |
7062 | from properties of the format string and properties of string | |
7063 | arguments. | |
7064 | ||
7065 | * textprop.c (text_property_list): New. | |
7066 | (add_text_properties_from_list): New. | |
7067 | (extend_property_ranges): New. | |
7068 | ||
7069 | 1999-03-29 Gerd Moellmann <gerd@gnu.org> | |
7070 | ||
7071 | * xfaces.c (Qraised, Qsunken, QCshadow): Removed. | |
7072 | (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New. | |
7073 | Use these symbols for the box face attribute instead of the | |
7074 | removed ones. | |
7075 | ||
7076 | 1999-03-12 Gerd Moellmann <gerd@gnu.org> | |
7077 | ||
7078 | * xfaces.c (realize_tty_face): Don't set alt_char_p of face. | |
7079 | Correct wrong test for slant. | |
7080 | ||
7081 | 1999-03-10 Gerd Moellmann <gerd@gnu.org> | |
7082 | ||
7083 | * xfaces.c: Use `unspecified' for unspecified face attributes, | |
7084 | use t and nil for on/off. | |
7085 | ||
7086 | 1999-03-06 Gerd Moellmann <gerd@gnu.org> | |
7087 | ||
7088 | * buffer.c (syms_of_buffer): Extend doc string of | |
7089 | mode-line-format. | |
7090 | ||
7091 | * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p. | |
7092 | (first_font_matching): New. | |
7093 | (set_lface_from_font_name): Use it if font name is a pattern. | |
7094 | (font_field_wildcard_p): Removed. | |
7095 | ||
7096 | * dispnew.c (shift_glyph_matrix): Add `window' parameter. | |
7097 | Recompute visible height of rows. | |
7098 | ||
7099 | * xterm.c (note_mouse_highlight): Reorder code for help-echo. | |
7100 | Don't accept non-strings for help-echo from overlays. | |
7101 | ||
7102 | 1999-03-04 Dave Love <fx@gnu.org> | |
7103 | ||
7104 | * xterm.c (note_mouse_highlight): Check overlays for help-text | |
7105 | property. | |
7106 | (XTread_socket): Fix compiler warning. | |
7107 | ||
7108 | 1999-03-05 Gerd Moellmann <gerd@gnu.org> | |
7109 | ||
7110 | * xterm.c (note_mouse_highlight): Don't restrict number of | |
7111 | overlay to 10. Call overlays_at so that it doesn't try to | |
7112 | extend the vector. | |
7113 | ||
7114 | * xdisp.c (compute_line_metrics): Compute glyph row's visible | |
7115 | height. | |
7116 | ||
7117 | * dispnew.c (row_equal_p): Compare visible row height, only. | |
7118 | (update_text_area): Draw whole line if visible heights of | |
7119 | rows differ. | |
7120 | (update_window_line): Call after_update_window_line_hook | |
7121 | if visible row height has changed. | |
7122 | ||
7123 | * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed. | |
7124 | (struct glyph_row): New member visible_height. | |
7125 | ||
7126 | * xfaces.c (font_field_wildcard_p): New. | |
7127 | (set_lface_from_font_name): Remove parameter force_p. Accept | |
7128 | font names containing wildcards. | |
7129 | ||
7130 | 1999-03-04 Gerd Moellmann <gerd@gnu.org> | |
7131 | ||
7132 | * xterm.c (x_after_update_window_line): Clear internal border | |
7133 | when windows_or_buffers_changed. | |
7134 | ||
7135 | * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's | |
7136 | buffer has a nil mode_line_format. | |
7137 | ||
7138 | 1999-03-03 Gerd Moellmann <gerd@gnu.org> | |
7139 | ||
7140 | * xterm.c (x_setup_relief_colors): Use either background color | |
7141 | or specified color. | |
7142 | ||
7143 | * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p. | |
7144 | ||
7145 | * dispextern.h (struct face): Add use_box_color_for_shadows_p. | |
7146 | ||
7147 | * xterm.c (x_draw_box_rect): New. | |
7148 | (x_draw_glyph_string_box): Renamed from | |
7149 | x_draw_glyph_string_relief. Call x_draw_box_rect. | |
7150 | ||
7151 | * xfns.c (QCrelief): New. | |
7152 | (syms_of_xfns): Initialize it. | |
7153 | ||
7154 | * dispextern.h (struct glyph): Rename left_shadow_p to | |
7155 | left_box_line_p, right_shadow_p to right_box_line_p. | |
7156 | (MAX_RELIEF_THICKNESS): Removed. | |
7157 | (struct it): Rename members having `relief' in their names | |
7158 | to contain `box' instead. | |
7159 | ||
7160 | * xfaces.c (realize_x_face): Handle new box attribute values. | |
7161 | (QCrelief, Qbox): Removed. | |
7162 | (QCshadow, QCcolor, Qraised, Qsunken): New. | |
7163 | (syms_of_xfaces): Initialize new symbols. | |
7164 | ||
7165 | 1999-03-02 Gerd Moellmann <gerd@gnu.org> | |
7166 | ||
7167 | * dispextern.h (LFACE_RELIEF_INDEX): Removed. | |
7168 | ||
7169 | * xfaces.c (LFACE_RELIEF): Removed. | |
7170 | (merge_face_vector_with_property): Remove handling of `:relief'. | |
7171 | (Finternal_set_lisp_face_attribute): Ditto. | |
7172 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
7173 | (Finternal_get_lisp_face_attribute): Ditto. | |
7174 | (realize_default_face): Ditto. | |
7175 | (lface_hash): Don't compute hash from relief. | |
7176 | ||
7177 | * dispextern.h (struct face): Replace member `relief' by | |
7178 | `box_line_width'. Add member `box'. | |
7179 | (face_box_type): New. | |
7180 | ||
7181 | * xterm.c (x_produce_glyphs): If face has overline, add overline | |
7182 | thickness + 1 to ascent. | |
7183 | ||
7184 | 1999-03-01 Gerd Moellmann <gerd@gnu.org> | |
7185 | ||
7186 | * xterm.c (x_draw_glyph_string): Draw underline, overline, | |
7187 | strike-through, and boxes. | |
7188 | (x_draw_glyph_string_underline): Removed. | |
7189 | ||
7190 | * xfaces.c (QCoverline, QCstrike_through, QCbox): New. | |
7191 | (Qoverline, Qstrike_through, Qbox): New. | |
7192 | (syms_of_xfaces): Define these symbols. | |
7193 | (check_lface_attrs): Add checks for overline, strike-through, | |
7194 | and box. | |
7195 | (Finternal_set_lisp_face_attribute): Set new attributes. | |
7196 | (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New. | |
7197 | (load_color): Handle new attributes. | |
7198 | (realize_x_face): Ditto. | |
7199 | (merge_face_vector_with_property): Ditto. | |
7200 | (free_face_colors): Ditto. | |
7201 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
7202 | (Finternal_get_lisp_face_attribute): Ditto. | |
7203 | (Finternal_lisp_face_attribute_values): Ditto. | |
7204 | ||
7205 | * dispextern.h (lface_attribute_index): Add enumerators for | |
7206 | overstrike, strike-through, and box. | |
7207 | (struct face): Add members for overline, strike-through, and | |
7208 | box. | |
7209 | ||
7210 | 1999-02-17 Dave Love <fx@gnu.org> | |
7211 | ||
7212 | * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h | |
7213 | s/template.h (NARROWPROTO): Define on the basis of relevant X cf | |
7214 | files. | |
7215 | ||
7216 | 1999-02-16 Gerd Moellmann <gerd@gnu.org> | |
7217 | ||
7218 | * keyboard.c (toolbar_items): Call access_keymap with third | |
7219 | parameter 1, so that we don't get inherited toolbar item | |
7220 | definitions. | |
7221 | ||
7222 | * xdisp.c (redisplay_internal): In optimization 1, don't decrement | |
7223 | the window end vpos when in empty first line of window. | |
7224 | ||
7225 | 1999-02-15 Gerd Moellmann <gerd@gnu.org> | |
7226 | ||
7227 | * xfaces.c (set_font_frame_param): New. | |
7228 | (Finternal_set_lisp_face_attribute): Call it. | |
7229 | ||
7230 | Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
7231 | ||
7232 | * xfaces.c (Finternal_set_lisp_face_attribute_from_resource): | |
7233 | Accept specifications of color for underline. | |
7234 | ||
7235 | 1999-02-13 Gerd Moellmann <gerd@gnu.org> | |
7236 | ||
7237 | * xfaces.c (Finternal_set_lisp_face_attribute): If parameter | |
7238 | `frame' is t, operate on face defaults for new frames. If it | |
7239 | is nil, operate on the selected frame. | |
7240 | ||
7241 | 1999-02-12 Gerd Moellmann <gerd@gnu.org> | |
7242 | ||
7243 | * dispnew.c (check_matrix_invariants): Put it in #if 0. | |
7244 | (update_window): Put the call to check_matrix_invariants in #if 0. | |
7245 | ||
7246 | Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
7247 | ||
7248 | * dispextern.h: Remove all else block of UNDERLINE_COLOR. | |
7249 | Remove definition of UNDERLINE_COLOR. | |
7250 | ||
7251 | Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
7252 | ||
7253 | * xfaces.c (free_face_colors): Free the color for underline. | |
7254 | ||
7255 | * xterm.c (x_draw_glyph_string_underline): Set the color for underline | |
7256 | to the GC. | |
7257 | ||
7258 | Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
7259 | ||
7260 | * dispextern.h (UNDERLINE_COLOR): Defined. | |
7261 | (struct face): Added two new members. | |
7262 | underline_color, underline_defaulted_p. | |
7263 | ||
7264 | * xfaces.c (merge_face_vector_with_property): | |
7265 | (check_lface_attrs): Accept the string value for underline. | |
7266 | (Finternal_set_lisp_face_attribute): Likewise. | |
7267 | ||
7268 | * xfaces.c (load_color): Change the last argument type to enum | |
7269 | lface_attribute_index from int. And addec code for underling coloring. | |
7270 | (load_face_colors): Pass LFACE_*_INDEX to load_color. | |
7271 | ||
7272 | 1999-02-12 Gerd Moellmann <gerd@gnu.org> | |
7273 | ||
7274 | * xfns.c (Fx_image_header): Removed. | |
7275 | ||
7276 | 1999-02-07 Gerd Moellmann <gerd@gnu.org> | |
7277 | ||
7278 | * xterm.c: Don't include <bitmaps/gray>. | |
7279 | (x_term_init): Use gray_bitmap_width and gray_bitmap_height. | |
7280 | ||
7281 | * xfns.c (Fx_image_header): Add missing `\n\'. | |
7282 | (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New. | |
7283 | ||
7284 | 1999-02-01 Gerd Moellmann <gerd@gnu.org> | |
7285 | ||
7286 | * xterm.c (x_scroll_bar_create): Set background pixel from | |
7287 | specified scroll bar color. | |
7288 | (x_scroll_bar_set_handle): Use scroll bar foreground color. | |
7289 | ||
7290 | * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars. | |
7291 | (x_set_scroll_bar_background): Ditto. | |
7292 | ||
7293 | * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors. | |
7294 | ||
7295 | * xfns.c (x_default_scroll_bar_color_parameter): New. | |
7296 | (Fx_create_frame): Call it. | |
7297 | ||
7298 | 1999-01-31 Gerd Moellmann <gerd@gnu.org> | |
7299 | ||
7300 | * xfns.c (Fx_create_frame): Initialize scroll bar pixel color | |
7301 | values in x_output structure. | |
7302 | (Qscroll_bar_foreground, Qscroll_bar_background): New. | |
7303 | (syms_of_xfns): Initialize these symbols. | |
7304 | ||
7305 | * xterm.h (struct x_output): Add scroll bar pixel colors. | |
7306 | ||
7307 | * xfns.c (x_frame_parms): Add entries for scroll bar colors. | |
7308 | (x_set_scroll_bar_foreground): New. | |
7309 | (x_set_scroll_bar_background): New. | |
7310 | ||
26901792 DL |
7311 | 1999-01-12 Gerd Moellmann <gerd@gnu.org> |
7312 | ||
7313 | * xdisp.c (handle_single_display_prop): New. | |
7314 | (handle_display_prop): Call it. | |
7315 | (handle_raise_prop): Removed. | |
7316 | (handle_height_prop): Removed. | |
7317 | (handle_space_width_prop): Removed. | |
7318 | (handle_face_prop): Remove handling of raised text. | |
7319 | (handle_display_prop): Do it here. | |
7320 | ||
7321 | * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX. | |
7322 | (RAISE_PROP_IDX): Removed. | |
7323 | (HEIGHT_PROP_IDX): Removed. | |
7324 | (SPACE_WIDTH_PROP_IDX): Removed. | |
7325 | ||
7326 | * xdisp.c (Qdisplay): Replaces Qglyph. | |
7327 | (handle_display_prop): Formerly handle_glyph_prop. | |
7328 | ||
7329 | 1999-01-11 Gerd Moellmann <gerd@gnu.org> | |
7330 | ||
7331 | * xdisp.c (reseat_to_string): Set position in display vector to -1. | |
7332 | (handle_stop): Set position in display vector to -1. Don't | |
7333 | check overlay strings when set up to deliver characters from a | |
7334 | display vector. | |
7335 | (set_iterator_to_next): At the end of a run of characters from a | |
7336 | display vector, check whether the display vector display replaces | |
7337 | the display of a character. | |
7338 | ||
7339 | 1999-01-05 Gerd Moellmann <gerd@gnu.org> | |
7340 | ||
7341 | * xfaces.c (init_frame_faces): Don't realize faces if frame's | |
7342 | X window hasn't been created yet. | |
7343 | ||
7344 | 1998-12-06 Gerd Moellmann <gerd@gnu.org> | |
7345 | ||
7346 | * sound.c: New. | |
7347 | ||
7348 | 1998-12-04 Gerd Moellmann <gerd@gnu.org> | |
7349 | ||
7350 | * config.in (HAVE_SOUND): New. | |
7351 | ||
7352 | * emacs.c (main): Call syms_of_sound and init_sound. | |
7353 | ||
7354 | * Makefile.in (obj): Add sound.o. | |
7355 | ||
7356 | * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h. | |
7357 | ||
7358 | * config.in (HAVE_MACHINE_SOUNDCARD_H): New. | |
7359 | (HAVE_SYS_SOUNDCARD_H): New. | |
7360 | ||
7361 | 1998-12-03 Gerd Moellmann <gerd@gnu.org> | |
7362 | ||
7363 | * buffer.h (struct buffer): indicate_empty_lines renamed from | |
7364 | indicate_zv_lines. | |
7365 | ||
7366 | * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines. | |
7367 | (default-indicate-zv-lines): Likewise. | |
7368 | ||
7369 | * dispextern.h (struct glyph_row): Rename indicate_zv_line_p | |
7370 | to indicate_empty_line_p. | |
7371 | ||
7372 | * xdisp.c (reseat_at_next_visible_line_start): Reset method | |
7373 | to next_element_from_buffer. | |
7374 | ||
7375 | * frame.c (make_frame): Set n_current_toolbar_items to 0. | |
7376 | ||
7377 | * xdisp.c (handle_face_prop): Allow symbols of the form `N+' | |
7378 | and `N-'. | |
7379 | ||
7380 | * xfns.c (xbm_scan): New. | |
7381 | (xbm_read_hexint): Removed. | |
7382 | (xbm_read_bitmap_file_data): Use xbm_scan. | |
7383 | ||
7384 | * fileio.c (Finsert_file_contents): Prevent redisplay optimizations. | |
7385 | ||
7386 | 1998-12-02 Gerd Moellmann <gerd@gnu.org> | |
7387 | ||
7388 | * xfns.c (xbm_read_hexint): New. | |
7389 | (xbm_read_bitmap_file_data): New. | |
7390 | (xbm_load_image_from_file): Call xbm_read_bitmap_file_data | |
7391 | instead of XReadBitmapFileData. | |
7392 | ||
7393 | * xdisp.c (handle_raise_prop): Compute voffset from current font. | |
7394 | ||
7395 | * xfaces.c (face_with_height): New. | |
7396 | ||
7397 | * xdisp.c (eval_handler): Renamed from eval_mode_handler. | |
7398 | (eval_form): Renamed from eval_mode_element. | |
7399 | (handle_face_prop): Use it. | |
7400 | (Qheight): Replaces Qsmaller. | |
7401 | (handle_height_prop): Replaces handle_smaller_prop. | |
7402 | (handle_face_prop): If iterator's font_height is not an | |
7403 | integer, evaluate it to get the font height to use. | |
7404 | ||
7405 | * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX. | |
7406 | (struct it): Use `font_height' instead of `smaller'. | |
7407 | ||
7408 | 1998-12-01 Gerd Moellmann <gerd@gnu.org> | |
7409 | ||
7410 | * xdisp.c (reseat_1): New. | |
7411 | (reseat): Call it. | |
7412 | (move_it_vertically_backward): Ditto. | |
7413 | (redisplay_window): Don't abort when cursor not found in recenter. | |
7414 | ||
7415 | 1998-11-30 Gerd Moellmann <gerd@gnu.org> | |
7416 | ||
7417 | * xdisp.c (reseat_at_next_visible_line_start): When not | |
7418 | currently delivering display elements from the current buffer, | |
7419 | restore buffer position first. | |
7420 | (init_from_display_pos): Don't set IT's position from the | |
7421 | position passed to this function. | |
7422 | ||
7423 | 1998-11-28 Gerd Moellmann <gerd@gnu.org> | |
7424 | ||
7425 | * config.in (PROTO): Removed. | |
7426 | ||
7427 | * xterm.h: Change PROTO to P_. | |
7428 | ||
7429 | 1998-11-26 Gerd Moellmann <gerd@gnu.org> | |
7430 | ||
7431 | * xterm.c (take_vertical_position_into_account): New. | |
7432 | (x_produce_image_glyph): Call it. | |
7433 | (x_produce_stretch_glyph): Ditto. | |
7434 | (x_produce_glyphs): Ditto. | |
7435 | (x_fill_glyph_string): Adjust base line for glyph's voffset. | |
7436 | (x_fill_composite_glyph_string): Ditto. | |
7437 | (x_fill_image_glyph_string): Ditto. | |
7438 | (x_fill_stretch_glyph_string): Ditto. | |
7439 | ||
7440 | * xdisp.c (display_line): Always compute row height from | |
7441 | max_ascent and max_descent. | |
7442 | ||
7443 | * dispextern.h (struct glyph): Add voffset. | |
7444 | (struct it): Replace height by descent, max_height by max_descent. | |
7445 | ||
7446 | * xterm.c (x_append_glyph): Set voffset | |
7447 | (x_append_stretch_glyph): Ditto. | |
7448 | (x_produce_image_glyph): Ditto. | |
7449 | (x_produce_glyphs): Take voffset into account. | |
7450 | (x_produce_image_glyph): Ditto. | |
7451 | (x_produce_stretch_glyph): Ditto. | |
7452 | ||
7453 | * dispextern.h (struct it): Add voffset. | |
7454 | * xdisp.c (push_it): Save voffset. | |
7455 | (pop_it): Restore it. | |
7456 | ||
7457 | * xdisp.c (it_props): Add entry for `raise'. | |
7458 | (handle_raise_prop): New. | |
7459 | ||
7460 | * dispextern.h (RAISE_PROP_IDX): New. | |
7461 | ||
7462 | * xdisp.c (Qraise): New. | |
7463 | (syms_of_xdisp): Define Qraised. | |
7464 | ||
7465 | * xterm.c (x_scroll_bar_move): Clear to the left and right | |
7466 | of toolkit scroll bars differently. | |
7467 | (x_scroll_bar_move): Removed. | |
7468 | (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here. | |
7469 | ||
7470 | * dispextern.h: Make it compilable --with-x=no. | |
7471 | * alloc.c: Ditto. | |
7472 | * emacs.c: Ditto. | |
7473 | * dispnew.c: Ditto. | |
7474 | * keyboard.c: Ditto. | |
7475 | * term.c: Ditto. | |
7476 | * xdisp.c: Ditto. | |
7477 | * xfaces.c: Ditto. | |
7478 | * xfns.c: Ditto. | |
7479 | * xmenu.c: Ditto. | |
7480 | ||
7481 | 1998-11-25 Gerd Moellmann <gerd@gnu.org> | |
7482 | ||
7483 | * xterm.c (XTread_socket): Cancel help-echo when leaving frame. | |
7484 | ||
7485 | 1998-11-24 Gerd Moellmann <gerd@gnu.org> | |
7486 | ||
7487 | * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging, | |
7488 | update slider size, only. | |
7489 | (xm_scroll_callback): Set dragging member of the scroll bar. | |
7490 | (xt_action_hook): Reset last_scroll_bar_part. | |
7491 | (XTredeem_scroll_bar): Reset bar->dragging to nil. | |
7492 | ||
26901792 DL |
7493 | * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor |
7494 | window on newly created frames that don't have one. | |
7495 | ||
7496 | 1998-11-23 Gerd Moellmann <gerd@gnu.org> | |
7497 | ||
7498 | * xdisp.c (restore_overlay_strings): Removed. | |
7499 | (restore_dpvec): Removed. | |
7500 | (init_from_display_pos): Inline both functions above. | |
7501 | ||
7502 | * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New. | |
7503 | (parse_image_spec): Handle it. | |
7504 | (xbm_format): Use it. | |
7505 | (xpm_format): Ditto. | |
7506 | (pbm_format): Ditto. | |
7507 | (jpeg_format): Ditto. | |
7508 | (tiff_format): Ditto. | |
7509 | (gif_format): Ditto. | |
7510 | (gs_format): Ditto. | |
7511 | ||
7512 | * xdisp.c (set_window_cursor): Removed. | |
7513 | (redisplay_internal): Case cursor motion in cursor line of | |
7514 | selected window; use set_cursor_from_row. | |
7515 | ||
7516 | 1998-11-22 Gerd Moellmann <gerd@gnu.org> | |
7517 | ||
7518 | * widget.c (EmacsFrameSetCharSize): Take widget's border width | |
7519 | into account. | |
7520 | ||
7521 | 1998-11-21 Gerd Moellmann <gerd@gnu.org> | |
7522 | ||
7523 | * xterm.c (expose_frame): Redraw menu bar window. | |
7524 | ||
7525 | * xdisp.c (display_menu_bar): Record hpos instead of x-position | |
7526 | in menu item. | |
7527 | ||
7528 | * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead | |
7529 | of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'. | |
7530 | ||
7531 | * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS | |
7532 | to determine vertical_scroll_bar_extra. | |
7533 | (EmacsFrameSetCharSize): Ditto. | |
7534 | * xfns.c (x_figure_window_size): Ditto. | |
7535 | ||
7536 | * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face. | |
7537 | (x_draw_bitmap): Ditto. | |
7538 | ||
7539 | * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID. | |
7540 | * xfaces.c (realize_basic_faces): Realize it. | |
7541 | ||
7542 | 1998-11-20 Gerd Moellmann <gerd@gnu.org> | |
7543 | ||
7544 | * xmenu.c (xmenu_show): Add workaround for remaining button grab | |
7545 | under LessTif Use the widget of the frame as parent for the | |
7546 | menu, again. | |
7547 | ||
7548 | 1998-11-19 Gerd Moellmann <gerd@gnu.org> | |
7549 | ||
7550 | * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify. | |
7551 | When EnterNotify, don't generate a mouse movement event if | |
7552 | notification is from a busy-cursor child window. | |
7553 | ||
7554 | * xterm.h (struct x_output): Add busy_window, remove cursor. | |
7555 | ||
7556 | * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor. | |
7557 | Use a transparent window to display the busy-cursor. | |
7558 | (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor. | |
7559 | ||
7560 | 1998-11-17 Gerd Moellmann <gerd@gnu.org> | |
7561 | ||
7562 | * xdisp.c (check_window_end): New, for debugging. | |
7563 | (CHECK_WINDOW_END): New. | |
7564 | (try_window_id): Use it. | |
7565 | ||
7566 | * xterm.c (process_expose_from_menu): Return int. | |
7567 | ||
7568 | * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording | |
7569 | TOOLBAR_EVENT events in last_nonmenu_event. | |
7570 | ||
7571 | 1998-11-16 Gerd Moellmann <gerd@gnu.org> | |
7572 | ||
7573 | * xdisp.c (redisplay_window): If windows_or_buffers_changed, | |
7574 | window end isn't reliable, so set window_end_valid to nil. | |
7575 | (redisplay_internal): If overlay arrow has changed, set | |
7576 | windows_or_buffers_changed to redisplay thoroughly. | |
7577 | ||
7578 | * dispnew.c (adjust_glyph_matrix): Invalidate window end, if | |
7579 | necessary. | |
7580 | ||
7581 | * xfns.c (file_dialog_cb): New. | |
7582 | (Fx_file_dialog): New. | |
7583 | * fileio.c (Fread_file_name): Call it. | |
7584 | ||
7585 | * xrdb.c (x_load_resources): Add default resoures for file | |
7586 | selection dialog. | |
7587 | ||
7588 | 1998-11-14 Gerd Moellmann <gerd@gnu.org> | |
7589 | ||
7590 | * xterm.c (note_mouse_highlight): Don't highlight when popup | |
7591 | is active. | |
7592 | ||
26901792 DL |
7593 | * keyboard.c (timer_check): Inhibit busy cursor around calls to |
7594 | timer-event-handler. This busy cursor tends to be anoying if | |
7595 | fontifying stealthily. | |
7596 | ||
7597 | * dispnew.c (direct_output_for_insert): Give up if current row | |
7598 | contains trailing whitespace. | |
7599 | ||
7600 | 1998-11-13 Gerd Moellmann <gerd@gnu.org> | |
7601 | ||
7602 | * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX. | |
7603 | ||
7604 | * xdisp.c (handle_fontified_prop): New. | |
7605 | (Vfontification_functions): New. | |
7606 | (Qfontification_functions): New. | |
7607 | (it_props): Add handle_fontified_prop. | |
7608 | ||
7609 | 1998-11-12 Gerd Moellmann <gerd@gnu.org> | |
7610 | ||
7611 | * xmenu.c (xmenu_show): Use the frame's edit_widget as parent. | |
7612 | Otherwise, under LessTif, after the popup has gone, all button | |
7613 | press events come in for the frame's widget, and release events | |
7614 | come in for the edit_widget. | |
7615 | * xterm.c (XTread_socket): Remove workaround for that problem. | |
7616 | (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif | |
7617 | XmScrollBarSetValues. | |
7618 | (SET_SAVED_MENU_EVENT): Give it statement form. | |
7619 | ||
26901792 DL |
7620 | * xfaces.c (display_message): If waiting_for_input, don't display |
7621 | the message. | |
7622 | ||
7623 | * window.c (scroll_command): If not acting on current_buffer, | |
7624 | make redisplay consider all windows. | |
7625 | ||
7626 | * xfns.c (Fx_hide_tip): Return t if tooltip was open. | |
7627 | ||
7628 | * xdisp.c (handle_glyph_prop): Set it->object for images to | |
7629 | the object having the glyph property. | |
7630 | ||
7631 | * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely | |
7632 | invisible. | |
7633 | ||
7634 | 1998-11-11 Gerd Moellmann <gerd@gnu.org> | |
7635 | ||
7636 | * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c | |
7637 | (x_term_init): Create the gray pixmap. | |
7638 | (x_setup_relief_color): Use it. | |
7639 | (x_get_glyph_string_clip_rect): Draw a toolbar window over the | |
7640 | internal border at the top of a frame. | |
7641 | (x_init_glyph_string): Likewise. | |
7642 | (x_draw_glyph_string_relief): Correct right x by 1 pixel for | |
7643 | full-width lines. | |
7644 | (XTflash): Don't flash the toolbar window. | |
7645 | ||
7646 | * xterm.c (XTread_socket): Workaround for LessTif popup menus | |
7647 | in case of ButtonPress events. | |
7648 | ||
7649 | 1998-11-10 Gerd Moellmann <gerd@gnu.org> | |
7650 | ||
7651 | * xrdb.c (x_load_resources): Add grey background colors as | |
7652 | defaults for menus, scroll bars, and dialogs. | |
7653 | ||
7654 | * insdel.c (prepare_to_modify_buffer): Move setting | |
7655 | windows_or_buffers_changed from modify_region here. | |
7656 | ||
7657 | * xfns.c (Fx_show_tip): Inhibit redisplay. | |
7658 | (Fx_hide_tip): Ditto. | |
7659 | (Fx_image_header): New. | |
7660 | ||
7661 | 1998-11-09 Gerd Moellmann <gerd@gnu.org> | |
7662 | ||
7663 | * dispnew.c (clear_window_matrices): Set window_end_valid to nil | |
7664 | when clearing current window matrices. | |
7665 | ||
7666 | 1998-11-08 Gerd Moellmann <gerd@gnu.org> | |
7667 | ||
7668 | * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer | |
7669 | position from a string position. Use the right end position | |
7670 | if the property spans a whole overlay string. | |
7671 | ||
7672 | 1998-11-07 Gerd Moellmann <gerd@gnu.org> | |
7673 | ||
7674 | * xmenu.c (menubar_selection_callback): Remove workaround for | |
7675 | Lesstif not calling XmNpopdownCallback because it doesn't | |
7676 | handle the case where users don't select any menu item. | |
7677 | ||
26901792 DL |
7678 | * insdel.c (modify_region): Set windows_or_buffers_changed. |
7679 | ||
7680 | * buffer.c (set_buffer_internal): Don't set | |
7681 | windows_or_buffers_changed. | |
7682 | ||
26901792 DL |
7683 | * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT. |
7684 | ||
26901792 DL |
7685 | * xmenu.c (menubar_selection_callback): Add workaround for |
7686 | Lesstif not calling XmNpopdownCallback. | |
7687 | ||
7688 | * xdisp.c (eval_mode_element): New. | |
7689 | (eval_mode_handler): New. | |
7690 | (display_mode_element): Use eval_mode_element. | |
7691 | ||
7692 | * xdisp.c (display_mode_element): Allow `(:eval FORM)'. | |
7693 | Remove code looking at text props of default value. | |
7694 | ||
7695 | * xmenu.c (HAVE_BOXES): Define if using Lucid menus. | |
7696 | ||
26901792 DL |
7697 | 1998-11-06 Gerd Moellmann <gerd@gnu.org> |
7698 | ||
7699 | * xmenu.c (single_submenu): Set button_type of menu to | |
7700 | BUTTON_TYPE_NONE. | |
7701 | (single_submenu): Likewise for panes and menu items. | |
7702 | (set_frame_menubar): Set button_type of menu bar to none. | |
7703 | (xmenu_show): Likewise. | |
7704 | (single_submenu): Set widget values selected slot. | |
7705 | (xmenu_show): Likewise. | |
7706 | ||
26901792 DL |
7707 | * xmenu.c (push_menu_item): Add parameters `type' and |
7708 | `selected'. Store it in menu_items. | |
7709 | (MENU_ITEMS_ITEM_TYPE): New. | |
7710 | (MENU_ITEMS_ITEM_SELECTED): New. | |
7711 | (MENU_ITEMS_ITEM_LENGTH): Increase by two. | |
7712 | ||
7713 | * xfns.c (clear_image_cache): Get the current time, before | |
7714 | doing anything. | |
7715 | (cache_image): Set prev pointer of next image. | |
7716 | (clear_image_cache): Clear current matrices if any image was | |
7717 | freed. | |
7718 | ||
7719 | * xterm.c (XTread_socket): Set inhibit_busy_cursor. | |
7720 | ||
7721 | * xfns.c (x_set_cursor): New. | |
7722 | (Fx_display_busy_cursor): New. | |
7723 | (Fx_undisplay_busy_cursor): New. | |
7724 | ||
7725 | * xterm.h (struct x_output): Add busy_cursor. | |
7726 | ||
7727 | * xfns.c (Vx_busy_pointer_shape): New. | |
7728 | (x_set_mouse_color): Create busy cursor. | |
7729 | ||
7730 | * process.c (wait_reading_process_input): Show and hide busy | |
7731 | cursor. | |
7732 | ||
7733 | * keyboard.c (command_loop_1): Display busy cursor. | |
7734 | ||
7735 | * eval.c (Fsignal): Hide busy cursor. | |
7736 | ||
7737 | * buffer.c (set_buffer_internal): Don't set | |
7738 | windows_or_buffers_changed. | |
7739 | ||
7740 | * xterm.c (redo_mouse_highlight): New. | |
7741 | ||
7742 | 1998-11-04 Gerd Moellmann <gerd@gnu.org> | |
7743 | ||
26901792 DL |
7744 | * xfns.c (x_create_x_image_and_pixmap): Add depth parameter. |
7745 | (x_build_heuritic_mask): New. | |
7746 | (lookup_image): Call it. | |
7747 | ||
7748 | * xterm.c (note_toolbar_highlight): Always set up help_echo. | |
7749 | (previous_help_echo): New. | |
7750 | (XTread_socket): Generate help event with nil message when | |
7751 | leaving a region with help-echo. | |
7752 | (note_mouse_highlight): Handle `help-echo' over text. | |
7753 | (XTread_socket): Dispatch VisibilityNotify, CirculateNotify, | |
7754 | CirculateRequest. | |
7755 | (clear_mouse_face): Don't clear if tooltip is shown. | |
7756 | (XTread_socket): Redo mouse-highlight after tooltip is gone. | |
7757 | Avoid SET_FRAME_GARBAGED when tooltip is mapped. | |
7758 | ||
7759 | * keyboard.c (Vshow_help_function): New. | |
7760 | (read_char): Use it. | |
7761 | ||
7762 | 1998-11-03 Gerd Moellmann <gerd@gnu.org> | |
7763 | ||
7764 | * xfns.c (x_create_tip_frame): New. | |
7765 | (Fx_show_tip): New. | |
7766 | (Fx_hide_tip): New. | |
7767 | ||
7768 | * xterm.c (x_destroy_window): Handle case that we don't have | |
7769 | a widget. | |
7770 | ||
7771 | * dispextern.h (struct glyph_row): Rename no_marginal_areas_p | |
7772 | to full_width_p. Add internal_border_p. | |
7773 | ||
7774 | 1998-11-02 Gerd Moellmann <gerd@gnu.org> | |
7775 | ||
7776 | * xterm.c (note_mode_line_highlight): Check the charpos of | |
7777 | the glyph under the mouse pointer before accessing text | |
7778 | properties at that position. | |
7779 | ||
7780 | 1998-11-01 Gerd Moellmann <gerd@gnu.org> | |
7781 | ||
7782 | * xterm.c (x_draw_image_relief): Handle toolbar_button_relief. | |
7783 | ||
7784 | * xdisp.c (auto-raise-toolbar-buttons): New. | |
7785 | (build_desired_toolbar_string): Handle the flag. | |
7786 | (toolbar-button-margin): New. | |
7787 | (toolbar-button-relief): New. | |
7788 | (build_desired_toolbar_string): Use margin and relief. | |
7789 | ||
7790 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround | |
7791 | for FreeBSD. | |
7792 | (note_mode_line_highlight): New. | |
7793 | (note_mouse_highlight): Call it. | |
7794 | ||
7795 | 1998-10-31 Gerd Moellmann <gerd@gnu.org> | |
7796 | ||
7797 | * s/freebsd.h (NARROWPROTO): New. | |
7798 | ||
7799 | * xdisp.c (display_string): New parameter face_string. | |
7800 | (display_mode_element): When displaying a symbol with a string | |
7801 | value, use text properties from the symbol's default value, maybe. | |
7802 | ||
7803 | * xrdb.c (x_load_resources): Add font defaults for menus and | |
7804 | dialogs. | |
7805 | ||
7806 | 1998-10-30 Gerd Moellmann <gerd@gnu.org> | |
7807 | ||
7808 | * xfns.c (Fx_create_frame): Try 12pt Courier font first. | |
7809 | ||
7810 | 1998-10-29 Gerd Moellmann <gerd@gnu.org> | |
7811 | ||
7812 | * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be | |
7813 | produced for characters with codes < 32 under certain | |
7814 | circumstances. | |
7815 | ||
7816 | * xdisp.c (redisplay_window): Handle values of PT in front | |
7817 | of invisible, intangible text. | |
7818 | (try_window_id): Set overlay_arrow_seen to zero before | |
7819 | displaying lines. | |
7820 | (display_mode_element): Assign to glyphs written for a mode | |
7821 | line spec `%x' as object the Lisp format string, as position | |
7822 | the position of the `%' in that string. | |
7823 | (display_string): If displaying a C string, optionally get | |
7824 | the face to use from a Lisp string. | |
7825 | ||
7826 | * xterm.c (expose_window_tree): Include mode line height. | |
7827 | ||
7828 | * xfns.c (Fx_create_frame): Add toolbar height to frame height. | |
7829 | ||
7830 | 1998-10-27 Gerd Moellmann <gerd@gnu.org> | |
7831 | ||
7832 | * xterm.c (note_mouse_highlight): Change mouse pointer shape | |
7833 | over mode line. | |
7834 | ||
7835 | 1998-10-26 Gerd Moellmann <gerd@gnu.org> | |
7836 | ||
7837 | * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT. | |
7838 | ||
7839 | * xdisp.c (redisplay_window): If mode line height has changed, | |
7840 | arrange for a thorough immediate redisplay using the correct mode | |
7841 | line height. | |
7842 | (window_box_height): Use CURRENT_MODE_LINE_HEIGHT. | |
7843 | ||
7844 | * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New. | |
7845 | (CURRENT_MODE_LINE_HEIGHT): New. | |
7846 | (DESIRED_MODE_LINE_HEIGHT): New. | |
7847 | ||
7848 | * keyboard.c (make_lispy_event): Add string and string position | |
7849 | info to mouse-click events. | |
7850 | (read_key_sequence): Handle `local-map' property of mode line | |
7851 | strings. | |
7852 | ||
7853 | * keyboard.h (POSN_STRING): New. | |
7854 | ||
7855 | 1998-10-25 Gerd Moellmann <gerd@gnu.org> | |
7856 | ||
7857 | * dispnew.c (mode_line_string): Mew. | |
7858 | ||
7859 | * xterm.c (xt_action_hook): New. | |
7860 | (x_create_toolkit_scroll_bar): Add action hook. | |
7861 | (xm_scroll_callback): Implement dragging. | |
7862 | ||
7863 | * keyboard.c (Qend_scroll): New. | |
7864 | (scroll_bar_parts): Add it. | |
7865 | ||
7866 | * termhooks.h (scroll_bar_end_scroll): New. | |
7867 | ||
7868 | * xterm.c (XTread_socket): Bug fix. | |
7869 | ||
7870 | 1998-10-24 Gerd Moellmann <gerd@gnu.org> | |
7871 | ||
7872 | * xdisp.c (redisplay_window): Finish scroll bars after | |
7873 | redisplaying toolbar. | |
7874 | ||
7875 | * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom. | |
7876 | (syms_of_keyboard): Add Qbottom. | |
7877 | ||
7878 | * termhooks.h (scroll_bar_to_top): New. | |
7879 | (scroll_bar_to_bottom): New. | |
7880 | ||
7881 | * xdisp.c (redisplay_window): Always resize toolbar window if | |
7882 | auto_resize_toolbar_p is non-zero. | |
7883 | (auto_resize_toolbar_p): Renamed from auto_resize_toolbar. | |
7884 | (window_box): New. | |
7885 | (window_box_height): New. | |
7886 | (window_box_width): New. | |
7887 | (window_box_left): New. | |
7888 | (window_box_right): New. | |
7889 | (window_box_edges): New. | |
7890 | ||
7891 | 1998-10-23 Gerd Moellmann <gerd@gnu.org> | |
7892 | ||
7893 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to | |
7894 | XawScrollbarSetThumb in FreeBSD. | |
7895 | (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap" | |
7896 | to true. | |
7897 | ||
7898 | * window.c (get_phys_cursor_glyph): Return null if cursor vpos | |
7899 | is out of range. | |
7900 | ||
7901 | * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel. | |
7902 | (x_term_init): Initialize it. | |
7903 | ||
7904 | * xterm.h (struct x_display_info): Add scroll_bar_pixel. | |
7905 | ||
7906 | * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's | |
7907 | cursor. | |
7908 | ||
7909 | 1998-10-22 Gerd Moellmann <gerd@gnu.org> | |
7910 | ||
7911 | * keyboard.c (make_lispy_event): Handle scroll_bar_click | |
7912 | differently when using toolkit scroll bars. | |
7913 | ||
7914 | * xterm.c (x_send_scroll_bar_event): New. | |
7915 | (x_scroll_bar_to_input_event): New. | |
7916 | (xaw3d_scroll_callback): New. | |
7917 | (xaw3d_jump_callback): New. | |
7918 | (xm_scroll_callback): New. | |
7919 | (x_toolkit_scroll_p): New. | |
7920 | (XTread_socket): Handle scroll bar client message. | |
7921 | (x_term_init): Initialize Xatom_Scrollbar. | |
7922 | (x_scroll_bar_create): Set cursor. | |
7923 | (xm_scroll_callback): | |
7924 | (x_create_toolkit_scroll_bar): New. | |
7925 | (x_set_toolkit_scroll_bar_thumb): New. | |
7926 | (x_scroll_bar_create): Call x_create_toolkit_scroll_bar. | |
7927 | (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb. | |
7928 | ||
7929 | * xterm.h (struct x_display_info): Add Xatom_Scrollbar. | |
7930 | ||
7931 | 1998-10-21 Gerd Moellmann <gerd@gnu.org> | |
7932 | ||
7933 | * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars. | |
7934 | (XTread_socket): Don't handle mouse button events for scroll bars | |
7935 | if using toolkit scroll bars. | |
7936 | (XTset_vertical_scroll_bar): Set thumb size and position for | |
7937 | Athena scroll bar. | |
7938 | ||
7939 | * xterm.h (scroll_bar): Add x_widget_low and x_widget_high. | |
7940 | ||
7941 | * xterm.c (XTread_socket): Dispatch expose event to widget | |
7942 | if using toolkit scroll bars. | |
7943 | (x_scroll_bar_expose): Make no-op for toolkit scroll bars. | |
7944 | (x_scroll_bar_create): Create and show a scroll bar widget | |
7945 | if using toolkit scroll bars. | |
7946 | (x_scroll_bar_move): Handle tookit scroll bars. | |
7947 | ||
7948 | * Makefile.in (LIBW): Use Xaw3d if present. | |
7949 | ||
7950 | * configure.in (USE_TOOLKIT_SCROLL_BARS): New. | |
7951 | (HAVE_XAW3D): New. | |
7952 | ||
7953 | * config.in (USE_TOOLKIT_SCROLL_BARS): New. | |
7954 | (HAVE_XAW3D): New. | |
7955 | ||
7956 | * xterm.c (XTset_vertical_scroll_bar): Correct position of | |
7957 | right vertical scroll bar. | |
7958 | ||
7959 | 1998-10-20 Gerd Moellmann <gerd@gnu.org> | |
7960 | ||
7961 | * xfns.c (xpm_load): Support reading XPM images from string | |
7962 | buffers containing data in the same format as an XPM file. | |
7963 | Support `:color-symbols'. | |
7964 | (xpm_format): Add `:data'. | |
7965 | (xpm_keyword_index): Add XPM_DATA. | |
7966 | (syms_of_xfns): Add `:color-symbols'. | |
7967 | (xpm_keyword_index): Add XPM_COLOR_SYMBOLS. | |
7968 | (xpm_valid_color_symbols_p): New. | |
7969 | (xpm_image_p): Call it. | |
7970 | ||
7971 | * xdisp.c (build_desired_toolbar_string): Add `:algorithm' | |
7972 | attribute to the image if item is not enabled. | |
7973 | ||
7974 | * xfns.c (x_laplace): New. | |
7975 | (x_laplace_read_row): New. | |
7976 | (x_laplace_write_row): New. | |
7977 | (lookup_image): Handle common image attributes here. New | |
7978 | attribute `:algorithm'. | |
7979 | ||
7980 | * xfaces.c (clear_face_cache): Call clear_image_cache. | |
7981 | ||
7982 | * xterm.c (x_inverted_image_mask): Removed. | |
7983 | (x_draw_image_foreground_1): New. | |
7984 | (x_draw_image_glyph_string): Draw images with mask to a temporary | |
7985 | pixmap to reduce flickering. | |
7986 | ||
7987 | * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars. | |
7988 | (display_toolbar_line): Remove parameter `margin'. | |
7989 | ||
7990 | 1998-10-19 Gerd Moellmann <gerd@gnu.org> | |
7991 | ||
7992 | * xdisp.c (toolbar_lines_needed): New. | |
7993 | (auto-resize-toolbars): New. | |
7994 | ||
7995 | * xfns.c (cache_image): Correct call to xrealloc. | |
7996 | ||
7997 | * dispnew.c (Fset_toolbar_height): Removed. | |
7998 | ||
7999 | * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of | |
8000 | FRAME_MENU_BAR_LINES. | |
8001 | ||
8002 | * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN | |
8003 | instead of FRAME_MENU_BAR_LINES. | |
8004 | (check_frame_size): Ditto. | |
8005 | ||
8006 | * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN | |
8007 | instead of FRAME_MENU_BAR_LINES. | |
8008 | (adjust_frame_glyphs_for_frame_redisplay): Ditto. | |
8009 | (build_frame_matrix): Ditto. | |
8010 | (change_frame_size_1): Ditto. | |
8011 | ||
8012 | * frame.h (FRAME_TOOLBAR_LINES): New. | |
8013 | (FRAME_TOP_MARGIN): New. | |
8014 | ||
8015 | * window.c (struct save_window_data): Add frame_toolbar_lines. | |
8016 | (Fset_window_configuration): Handle toolbar lines. | |
8017 | (Fcurrent_window_configuration): Save toolbar lines. | |
8018 | ||
8019 | * frame.c (syms_of_frame_1): Add Qtoolbar_lines. | |
8020 | ||
8021 | * xfns.c (Fx_create_frame): Add default parameter for toolbar. | |
8022 | ||
8023 | * frame.h (struct frame): Rename top_margin to toolbar_lines. | |
8024 | ||
8025 | * xfns.c (x_frame_parms): Add `toolbar-lines'. | |
8026 | (x_set_toolbar_lines): New. | |
8027 | ||
8028 | * keyboard.c (cmd_error_internal): Bug fix. | |
8029 | ||
8030 | * xterm.c: Remove double include of syssignal.h. | |
8031 | ||
8032 | 1998-10-18 Gerd Moellmann <gerd@gnu.org> | |
8033 | ||
8034 | * xterm.c (x_toolbar_item): New. | |
8035 | (x_handle_toolbar_click): Use it. | |
8036 | (note_toolbar_highlight): Use it. | |
8037 | ||
8038 | * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties | |
8039 | and toolbar_items_vectors. | |
8040 | ||
8041 | * xterm.c (help_echo): New. | |
8042 | (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN. | |
8043 | (x_set_glyph_string_gc): Handle them. | |
8044 | (x_after_update_window_line): Don't do anything in pseudo-windows. | |
8045 | (x_produce_image_glyph): Take image margin and face relief into | |
8046 | account. | |
8047 | (x_get_glyph_string_clip_rect): Handle pseudo-windows. | |
8048 | (x_draw_glyph_string_background): Optimize case when face has | |
8049 | relief. | |
8050 | (x_setup_relief_color): Take frame instead of glyph string | |
8051 | parameter. | |
8052 | (x_draw_relief_rect): New. | |
8053 | (x_draw_glyph_string_relief): Call it. | |
8054 | (x_draw_image_glyph_string_foreground): Handle margin and image | |
8055 | relief. | |
8056 | (x_draw_image_glyph_string_background): Ditto. | |
8057 | (expose_frame): Redraw toolbar window. | |
8058 | (expose_window): Don't draw cursor for pseudo-windows. | |
8059 | (x_y_to_hpos_vpos): Handle pseudo-windows. | |
8060 | (frame_to_window_pixel_xy): New. | |
8061 | (note_mouse_highlight): Call note_toolbar_highlight. | |
8062 | (x_handle_toolbar_click): New. | |
8063 | (note_toolbar_highlight): New. | |
8064 | (show_mouse_face): Change int parameter `hl' to parameter of | |
8065 | type enum draw_glyphs_face. Handle image highlighting. | |
8066 | (XTread_socket): Return a HELP_EVENT input event if help_echo is | |
8067 | non-nil. Use x_handle_toolbar_click. | |
8068 | ||
8069 | * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT. | |
8070 | ||
8071 | * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE, | |
8072 | IMAGE_BOOL_VALUE. | |
8073 | (parse_image_spec): Handle them. | |
8074 | (image_spec_value): Additional parameter found. | |
8075 | (free_image): Remove image from the vector `images' of the | |
8076 | image cache. | |
8077 | (clear_image_cache): Additional parameter force_p. | |
8078 | (Fclear_image_cache): New. | |
8079 | (x_find_image_file): New. | |
8080 | (xbm_load): Handle `:margin' and `:relief'. Use | |
8081 | x_find_image_file. | |
8082 | (xpm_load): Likewise. | |
8083 | (pbm_load): Likewise. | |
8084 | (jpeg_load): Likewise. | |
8085 | (tiff_load): Likewise. | |
8086 | (gif_load): Likewise. | |
8087 | ||
8088 | * keyboard.c (Qhelp_echo): New symbol. | |
8089 | (read_char): Handle `toolbar' and `help_echo' events. | |
8090 | (kbd_buffer_get_event): Handle HELP_ECHO input event. | |
8091 | (make_lispy_event): Handle TOOLBAR_EVENT. | |
8092 | (toolbar_items): New. | |
8093 | (process_toolbar_item): New. | |
8094 | (PROP): New. | |
8095 | (init_toolbar_items): New. | |
8096 | (append_toolbar_item): New. | |
8097 | (read_char_x_menu_prompt): Handle `toolbar' event. | |
8098 | (read_key_sequence): Ditto. | |
8099 | ||
8100 | * xfaces.c (Qtoolbar): New. | |
8101 | (realize_basic_faces): Realize `toolbar' face. | |
8102 | (face_at_string_position): Remove parameter modeline_p, add | |
8103 | base_face_id. | |
8104 | ||
8105 | * xfns.c (xbm_load_image_from_file): Don't use Xmu function | |
8106 | to read data. | |
8107 | ||
8108 | 1998-10-17 Gerd Moellmann <gerd@gnu.org> | |
8109 | ||
8110 | * xdisp.c (init_iterator): Replace parameter modeline_p with | |
8111 | base_face_id. | |
8112 | (next_element_from_string): Call get_next_display_element | |
8113 | recursively after handling text properties. | |
8114 | (prepare_menu_bars): Call update_toolbar. | |
8115 | (update_toolbar): New. | |
8116 | (build_desired_toolbar_string): New. | |
8117 | (display_toolbar_line): New. | |
8118 | (redisplay_toolbar): New. | |
8119 | (toolbar_item_info): New. | |
8120 | (redisplay_window): Call redisplay_toolbar. | |
8121 | (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG. | |
8122 | ||
8123 | * dispnew.c (clear_current_matrices): Clear matrices of toolbar | |
8124 | window. | |
8125 | (clear_desired_matrices): Ditto. | |
8126 | (adjust_frame_glyphs_for_window_redisplay): Make toolbar window. | |
8127 | (free_glyphs): Free matrices of toolbar window. | |
8128 | (update_frame): Update toolbar window. | |
8129 | (change_frame_size_1): Take toolbar into account. | |
8130 | (Fset_toolbar_height): New. | |
8131 | ||
8132 | * dispextern.h (struct it): Remove member modeline_p, add | |
8133 | base_face_id. | |
8134 | (struct image): Add members relief and margin. | |
8135 | (IMAGE_ASCENT): Include margin in height. | |
8136 | ||
8137 | 1998-10-14 Gerd Moellmann <gerd@gnu.org> | |
8138 | ||
8139 | * xfns.c (Fclear_image_cache): New. | |
8140 | ||
8141 | * xfaces.c (realize_basic_faces): Realize toolbar face. | |
8142 | (face_at_string_position): Remove parameter modeline_p, add | |
8143 | base_face_id. | |
8144 | ||
8145 | * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID. | |
8146 | ||
8147 | 1998-10-13 Gerd Moellmann <gerd@gnu.org> | |
8148 | ||
8149 | * keyboard.c (syms_of_keyboard): Intern `:help'. | |
8150 | ||
8151 | 1998-10-12 Gerd Moellmann <gerd@gnu.org> | |
8152 | ||
8153 | * xterm.c (note_toolbar_highlight): New. | |
8154 | (note_mouse_highlight): Call it. | |
8155 | ||
8156 | * window.c (window_from_coordinates): Additional parameter toolbar_p. | |
8157 | (coordinates_in_window): Handle toolbar window. | |
8158 | ||
8159 | * keyboard.c (toolbar_items): New. | |
8160 | (process_toolbar_item): New. | |
8161 | (parse_toolbar_item): New. | |
8162 | (init_toolbar_items): New. | |
8163 | (append_toolbar_item): New. | |
8164 | ||
8165 | * dispextern.h (enum toolbar_item_idx): New. | |
8166 | (enum toolbar_item_image): New. | |
8167 | ||
8168 | * frame.h (struct frame): Add toolbar-related members. | |
8169 | ||
8170 | * xfaces.c (face_at_string_position): Remove assertion that | |
8171 | current_buffer == window's buffer. This is not the case when | |
8172 | called for the toolbar window. | |
8173 | ||
8174 | * frame.c (make_frame): Initialize toolbar members. | |
8175 | ||
8176 | * alloc.c (mark_object): Mark toolbar data of frames. | |
8177 | ||
8178 | * frame.h (struct frame): Add toolbar-related members | |
8179 | toolbar_window, desired_toolbar_items, current_toolbar_items, | |
8180 | desired_toolbar_string, current_toolbar_string, | |
8181 | n_desired_toolbar_items, n_current_toolbar_items. Add | |
8182 | window_height. | |
8183 | ||
8184 | * xterm.c (x_after_update_window_line): Don't draw bitmap | |
8185 | areas for pseudo-windows. | |
8186 | (expose_frame): Handle toolbar window. | |
8187 | (expose_window): Don't do cursor stuff for pseudo-windows. | |
8188 | ||
8189 | * xdisp.c (display_menu_bar): Correct calls to init_iterator. | |
8190 | ||
8191 | 1998-10-11 Gerd Moellmann <gerd@gnu.org> | |
8192 | ||
8193 | * frame.c (make_frame): Initialize toolbar_window. | |
8194 | ||
8195 | * alloc.c (mark_object): Make the toolbar window. | |
8196 | ||
8197 | * dispnew.c (update_frame): Update frame's toolbar_window. | |
8198 | (clear_current_matrices): Likewise. | |
8199 | (clear_desired_matrices): Likewise. | |
8200 | (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window. | |
8201 | (free_glyphs): Free the toolbar window and its matrices. | |
8202 | ||
8203 | * frame.h (struct frame): Add toolbar_window. | |
8204 | ||
8205 | * xterm.c (x_draw_glyph_string_relief): Handle mouse-face | |
8206 | with relief. | |
8207 | ||
8208 | 1998-10-10 Gerd Moellmann <gerd@gnu.org> | |
8209 | ||
8210 | * dispnew.c (buffer_posn_from_coords): Don't screw up if | |
8211 | window start is not in the range BEGV..ZV. | |
8212 | ||
8213 | 1998-10-09 Gerd Moellmann <gerd@gnu.org> | |
8214 | ||
8215 | * xdisp.c (try_scrolling): Experimentally handle the case | |
8216 | that scroll-preserve-screen-position is set to `always'. | |
8217 | ||
8218 | * window.c (Vscroll_preserve_screen_position): Replacement for | |
8219 | scroll_preserve_screen_position. | |
8220 | ||
8221 | 1998-10-08 Gerd Moellmann <gerd@gnu.org> | |
8222 | ||
8223 | * dispnew.c: Don't initialize auto structs; the HP/UX compiler | |
8224 | doesn't like it. | |
8225 | * xdisp.c: Ditto. | |
8226 | ||
8227 | * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y. | |
8228 | ||
8229 | 1998-10-06 Gerd Moellmann <gerd@gnu.org> | |
8230 | ||
8231 | * minibuf.c (Fminibuffer_complete_word): Fix computation of | |
8232 | i_byte when prompts are inserted into minibuffers. | |
8233 | ||
8234 | * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New. | |
8235 | (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it. | |
8236 | (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto. | |
8237 | ||
8238 | 1998-10-04 Gerd Moellmann <gerd@gnu.org> | |
8239 | ||
8240 | * xdisp.c (make_cursor_line_fully_visible): New. | |
8241 | (try_scrolling): New. | |
8242 | (redisplay_window): Move scrolling code to try_scrolling. | |
8243 | (make_cursor_line_fully_visible): Handle case of window too small | |
8244 | to show a single line. | |
8245 | (redisplay_window): Case forced window start---use | |
8246 | make_cursor_line_fully_visible. | |
8247 | (redisplay_window): Case cursor movement via current matrix. | |
8248 | If ending up on a partially visible line, make it fully visible | |
8249 | instead of recentering. | |
8250 | (try_scrolling): Additional parameter scroll_smoothly. | |
8251 | ||
8252 | * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap. | |
8253 | ||
8254 | 1998-09-28 Gerd Moellmann <gerd@gnu.org> | |
8255 | ||
8256 | * window.c (window_scroll_pixel_based): Bug fix: vpos used | |
8257 | instead of y-position for scroll-preserved-screen-position. | |
8258 | ||
8259 | 1998-09-07 Gerd Moellmann <gerd@gnu.org> | |
8260 | ||
8261 | * dispnew.c (update_frame_line): If current row is not enabled, | |
8262 | write the whole line. | |
8263 | ||
8264 | 1998-09-06 Gerd Moellmann <gerd@gnu.org> | |
8265 | ||
8266 | * lisp.h (HAVE_FACES): Removed. | |
8267 | ||
8268 | * dispextern.h (HAVE_FACES): Removed. | |
8269 | ||
8270 | * config.in (HAVE_FACES): Removed. | |
8271 | ||
8272 | * dispnew.c (HAVE_FACES): Removed. | |
8273 | ||
8274 | * xdisp.c (HAVE_FACES): Removed. | |
8275 | ||
8276 | * xfaces.c (HAVE_FACES): Removed. | |
8277 | ||
8278 | 1998-09-05 Gerd Moellmann <gerd@gnu.org> | |
8279 | ||
8280 | * xdisp.c (init_iterator): If face_change_count is non-zero, | |
8281 | free realized faces. | |
8282 | ||
8283 | * xfaces.c (free_all_realized_faces): Make it externally visible. | |
8284 | (Finternal_set_lisp_face_attribute): Increment | |
8285 | windows_or_buffers_changed. | |
8286 | ||
8287 | * dispnew.c (direct_output_for_insert): Give up if | |
8288 | face_change_count is non-zero. | |
8289 | (direct_output_forward_char): Ditto. | |
8290 | ||
8291 | * xfaces.c (face_change_count): New. | |
8292 | ||
8293 | 1998-09-04 Gerd Moellmann <gerd@gnu.org> | |
8294 | ||
8295 | * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out | |
8296 | of range. | |
8297 | ||
8298 | 1998-09-03 Gerd Moellmann <gerd@gnu.org> | |
8299 | ||
8300 | * term.c (Ftty_display_color_p): New. | |
8301 | ||
8302 | 1998-09-02 Gerd Moellmann <gerd@gnu.org> | |
8303 | ||
8304 | * xfaces.c (Ftty_defined_colors): New. | |
8305 | ||
8306 | * xterm.c (x_produce_glyphs): Fix computation of | |
8307 | contains_overlapping_glyphs_p for ASCII. | |
8308 | ||
8309 | * dispnew.c (Fshow_cursor): Don't change cursor state while | |
8310 | redisplaying. | |
8311 | (direct_output_for_insert): If a glyph with lbearing or rbearing | |
8312 | is among the new glyphs, set row flag contains_overlapping_glyph_p. | |
8313 | ||
8314 | 1998-09-01 Gerd Moellmann <gerd@gnu.org> | |
8315 | ||
8316 | * term.c (OUTPUT_IF): Make replacement text have statement form. | |
8317 | (OUTPUT1_IF): Ditto. | |
8318 | (TS_italic_mode, TS_end_italic_mode): Removed. | |
8319 | (TS_bold_mode): Removed. | |
8320 | (TS_underscore_mode, TS_end_underscore_mode): Removed. | |
8321 | (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New. | |
8322 | (TS_enter_reverse_mode): New. | |
8323 | (TS_enter_underline_mode, TS_exit_underline_mode): New. | |
8324 | (TN_magic_cookie_glitch_ul): New. | |
8325 | (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New. | |
8326 | (TS_exit_attribute_mode): New. | |
8327 | (TN_max_colors, TN_max_pairs, TS_orig_pairs): New. | |
8328 | (TS_set_foreground, TS_set_background): New. | |
8329 | (reset_terminal_modes): Switch colors back to default. | |
8330 | (write_glyphs): Turn face on before writing text, turn it off | |
8331 | afterwards. | |
8332 | (insert_glyphs): Ditto. | |
8333 | (term_init): Initialize new terminal capability variables. | |
8334 | (turn_on_face): Turn a face on. | |
8335 | (turn_off_face): Turn a face off. | |
8336 | ||
8337 | * lisp.h (MAKE_GLYPH): Remove test for frame type. | |
8338 | (GLYPH_CHAR): Ditto. | |
8339 | (GLYPH_FACE): Ditto. | |
8340 | ||
8341 | * xfaces.c (Vface_tty_color_alist): New. | |
8342 | (face-register-tty-color): New. | |
8343 | (face-clear-tty-colors): New. | |
8344 | ||
8345 | * dispextern.h (FACE_TTY_DEFAULT_COLOR): New. | |
8346 | (struct it): Remove member faces_p since we now always have faces. | |
8347 | ||
8348 | 1998-08-31 Gerd Moellmann <gerd@gnu.org> | |
8349 | ||
8350 | * dispextern.h (struct face): Add tty appearance flags. | |
8351 | ||
8352 | * xdisp.c (init_iterator): Always handle faces. | |
8353 | (extend_face_to_end_of_line): Handle tty frames. | |
8354 | ||
8355 | * dispnew.c (clear_glyph_matrix): Allow a null matrix to be | |
8356 | passed in. | |
8357 | ||
8358 | 1998-08-30 Gerd Moellmann <gerd@gnu.org> | |
8359 | ||
8360 | * xfaces.c (realize_default_face): Use empty strings to indicate | |
8361 | that the face should use the default foreground/background | |
8362 | color of the terminal. Fill font-related attributes with | |
8363 | appropriate values for tty frames. | |
8364 | ||
8365 | * emacs.c (main): Call syms_of_xfaces before init_window_once. | |
8366 | ||
8367 | * xfaces.c (realize_default_face): If face `default' is not | |
8368 | yet known, create it. | |
8369 | ||
8370 | * frame.c (make_terminal_frame): Call init_frame_faces | |
8371 | unconditionally. | |
8372 | ||
8373 | * xfaces.c (init_frame_faces): Make it work for tty frames. | |
8374 | (free_frame_faces): Ditto. | |
8375 | (clear_face_cache): Ditto. | |
8376 | (recompute_basic_faces): Ditto. | |
8377 | (Fframe_face_alist): Ditto. | |
8378 | (free_realized_face): Ditto. | |
8379 | (prepare_face_for_display): Ditto. | |
8380 | (clear_face_gcs): Ditto. | |
8381 | (lookup_face): Ditto. | |
8382 | (smaller_face): Ditto. | |
8383 | (realize_default_face): Ditto. | |
8384 | (realize_face): Ditto. | |
8385 | (realize_face): Dispatch to functions depending on the frame type. | |
8386 | (realize_x_face): X way of realizing faces. | |
8387 | (realize_tty_face): TTY way of realizing faces. | |
8388 | ||
8389 | 1998-08-29 Gerd Moellmann <gerd@gnu.org> | |
8390 | ||
8391 | * xfaces.c (realize_face): Remove parameter unibyte_registry, | |
8392 | compute it instead. | |
8393 | (lookup_face): Remove local variable unibyte_registry. | |
8394 | ||
8395 | 1998-08-22 Gerd Moellmann <gerd@gnu.org> | |
8396 | ||
8397 | * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines | |
8398 | 1 pixel longer. | |
8399 | ||
8400 | * xdisp.c (face_before_or_after_it_pos): Fix computation | |
8401 | of face in buffer. | |
8402 | ||
8403 | * editfns.c (make_buffer_string_both): If prompt in buffer, | |
8404 | prevent start > end. | |
8405 | ||
8406 | * indent.c (Fvertical_motion): Set current_buffer to window's | |
8407 | buffer if it isn't already. | |
8408 | ||
8409 | 1998-08-21 Gerd Moellmann <gerd@gnu.org> | |
8410 | ||
8411 | * dispextern.h (GLYPH_DEBUG): Use default 0. | |
8412 | ||
8413 | * xdisp.c (it_props): New member `smaller'. | |
8414 | (init_iterator): Initialize it. | |
8415 | (Qsmaller): New. | |
8416 | (push_it): Save value of `smaller' value on the stack. | |
8417 | (pop_it): Restore `smaller' from the stack. | |
8418 | (handle_smaller_prop): New. | |
8419 | (handle_face_prop): Use `smaller' text property to select a | |
8420 | suitable face. | |
8421 | ||
8422 | * dispextern.h (SMALLER_PROP_IDX): New. | |
8423 | (struct it): Add member `smaller'. | |
8424 | ||
8425 | * xfaces.c (smaller_face): New. | |
8426 | ||
8427 | * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths. | |
8428 | ||
8429 | * dispnew.c (allocate_matrices_for_window_redisplay): Compute | |
8430 | total pixel width of window differently. | |
8431 | ||
8432 | * xdisp.c (init_iterator): Compute width of mode line differently. | |
8433 | ||
8434 | * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width | |
8435 | of bitmap areas. | |
8436 | ||
8437 | * window.c (Fsplit_window): Include width of bitmap areas in | |
8438 | window width. | |
8439 | (window_internal_width): Subtract width of bitmap areas from | |
8440 | total width. | |
8441 | ||
8442 | 1998-08-18 Gerd Moellmann <gerd@gnu.org> | |
8443 | ||
8444 | * xdisp.c: Functions reordered for better readability. | |
8445 | ||
8446 | * dispnew.c (update_text_area): Handle glyphs with arbitrary | |
8447 | lbearing. | |
8448 | (update_window_tree): Parameter no_scrolling_p removed. | |
8449 | (update_single_window): Ditto. | |
8450 | ||
8451 | * xterm.c (x_get_char_font_and_encoding): Renamed to | |
8452 | x_get_char_face_and_encoding. | |
8453 | ||
8454 | * dispnew.c (update_text_area): Don't call get_glyph_overhangs | |
8455 | if end of current row reached. | |
8456 | ||
8457 | * xterm.c (x_get_glyph_face_and_encoding): New. | |
8458 | (x_get_glyph_overhangs): Call it. | |
8459 | ||
8460 | * xdisp.c (Qshow_trailing_whitespace): New. | |
8461 | (Qtrailing_whitespace): New. | |
8462 | (enum prop_handled): New. | |
8463 | (struct props, it_props): New. | |
8464 | (next_overlay_change): New. Works like Fnext_overlay_change | |
8465 | but doesn't use xmalloc. | |
8466 | (handle_stop): Restructured. | |
8467 | (face_before_or_after_it_pos): Case iteration over a string: fix | |
8468 | handling of face before current position. | |
8469 | ||
8470 | 1998-08-16 Gerd Moellmann <gerd@gnu.org> | |
8471 | ||
8472 | * dispnew.c (adjust_glyph_matrix): Don't optimize matrix | |
8473 | reallocation matrix if fonts_changed_p. | |
8474 | (update_text_area): Handle glyphs with lbearing. | |
8475 | ||
8476 | 1998-08-14 Gerd Moellmann <gerd@gnu.org> | |
8477 | ||
8478 | * xdisp.c (struct props): New. | |
8479 | (it_props): New. | |
8480 | (compute_prop_info): New. | |
8481 | (handle_stop): New. | |
8482 | ||
8483 | * textprop.c (validate_interval_range): Make it externally | |
8484 | visible. | |
8485 | ||
8486 | * dispnew.c (direct_output_for_insert): Remove calls | |
8487 | to compute_stop_pos. | |
8488 | ||
8489 | * dispextern.h (struct it): Remove check_charpos, | |
8490 | next_overlay_pos. Add what_changes. | |
8491 | ||
8492 | 1998-08-10 Gerd Moellmann <gerd@gnu.org> | |
8493 | ||
8494 | * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE. | |
8495 | ||
8496 | * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use | |
8497 | face_default_registry instead. | |
8498 | ||
8499 | * syntax.c (scan_sexps_forward): Set up syntax table before | |
8500 | jumping to initial state label. | |
8501 | ||
8502 | 1998-08-09 Gerd Moellmann <gerd@gnu.org> | |
8503 | ||
8504 | * dispnew.c (check_matrix_invariants): Handle case of row end pos | |
8505 | >= ZV specially. | |
8506 | ||
8507 | 1998-08-08 Gerd Moellmann <gerd@gnu.org> | |
8508 | ||
8509 | * xdisp.c (redisplay_window): Case cursor movement---if cursor | |
8510 | ends up in partially visible row, try to scroll. Case forced | |
8511 | window start---handle windows not tall enough to show a single | |
8512 | line. | |
8513 | ||
8514 | * window.h (struct window): Member dy renamed vscroll. | |
8515 | ||
8516 | * xterm.c (x_list_fonts): Re-activate suppression of scalable | |
8517 | fonts. | |
8518 | (x_draw_stretch_glyph_string): Set clipping if using GC that | |
8519 | hasn't set it yet. | |
8520 | ||
8521 | * xdisp.c (redisplay_window): Case forced window start - | |
8522 | don't let cursor end on partially visible row. Use desired | |
8523 | matrix to find a suitable PT if it doesn't appear. | |
8524 | (decode_mode_spec): Merged with 20.2.97. | |
8525 | (try_window_reusing_current_matrix): Give up if old or | |
8526 | new display is vscrolled. | |
8527 | (redisplay_window): Reset vscrolling if forced window start, | |
8528 | or if recentering. | |
8529 | ||
8530 | 1998-08-06 Gerd Moellmann <gerd@gnu.org> | |
8531 | ||
8532 | * xfaces.c (realize_default_face): Use the fontset name instead of | |
8533 | the alias for the family attribute of the default face because we | |
8534 | can't easily determine a good alias from fontset-alias-alist. | |
8535 | (face_fontset): Use Fquery_fontset to find the fontset. | |
8536 | (font_list): Additional pattern parameter. | |
8537 | (try_font_list): Ditto. | |
8538 | (set_lface_from_font_name): Set face family from font foundry | |
8539 | and family. | |
8540 | (font_list): If family contains a hyphen, build pattern differently. | |
8541 | ||
8542 | 1998-08-05 Gerd Moellmann <gerd@gnu.org> | |
8543 | ||
8544 | * xfaces.c (free_realized_faces): Increment windows_or_buffers_- | |
8545 | changed instead of setting the frame garbaged. | |
8546 | ||
8547 | * xfaces.c (lface_equal_p): Don't assume equal Lisp types for | |
8548 | all attribute values. This is wrong if values are unspecified, | |
8549 | i.e. nil. | |
8550 | ||
8551 | * xdisp.c (try_window_id): Give up if window start changed. | |
8552 | ||
8553 | * xfaces.c (make_realized_face): Store registry as Lisp object. | |
8554 | (load_face_font_or_fontset): Compute registry of a face | |
8555 | differently. Make it `eq' to Vx_unibyte_registry_and_encoding if | |
8556 | possible. | |
8557 | ||
8558 | * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries | |
8559 | differently. | |
8560 | ||
8561 | * alloc.c (mark_face_cache): Mark the registry member of faces. | |
8562 | ||
8563 | * dispextern.h (struct face): Make registry a Lisp string. | |
8564 | ||
8565 | 1998-08-04 Gerd Moellmann <gerd@gnu.org> | |
8566 | ||
8567 | * xterm.c (x_get_char_font_and_encoding): Additional parameter | |
8568 | multibyte_p. Handle unibyte text. | |
8569 | (x_append_glyph): Set the multibyte_p flag of glyphs. | |
8570 | (x_produce_image_glyph): Ditto. | |
8571 | (x_append_stretch_glyph): Ditto. | |
8572 | (x_produce_glyphs): Handle unibyte text like ASCII. | |
8573 | ||
8574 | * xdisp.c (push_it): Save the multibyte flag of an iterator on the | |
8575 | stack. | |
8576 | (pop_it): Restore it. | |
8577 | (face_before_or_after_it_pos): Handle the case that the string or | |
8578 | buffer is unibyte. | |
8579 | (get_overlay_strings): Set the multibyte flag of the iterator if | |
8580 | the new overlay string is multibyte. | |
8581 | (get_glyph_property): Likewise. | |
8582 | (get_next_display_element): Don't check for charset changes in | |
8583 | unibyte text. | |
8584 | (append_space): Compute face differently for unibyte text. | |
8585 | (extend_face_to_end_of_line): Don't return quickly if face has | |
8586 | stipple. | |
8587 | ||
8588 | * xfaces.c (load_face_font_or_fontset): Store registry and | |
8589 | encoding of the font in the registry member of the face. | |
8590 | (make_realized_face): Additional parameter `registry'. | |
8591 | (free_realized_face): Free the registry of a realized face. | |
8592 | (face_suitable_for_charset_p): Function form of the macro | |
8593 | with the same name in uppercase. | |
8594 | (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0. | |
8595 | (choose_face_font): New parameter unibyte_registry. | |
8596 | (choose_face_fontset_font): Ditto. | |
8597 | (realize_default_face): Remember the registry and encoding of | |
8598 | the specified frame font in Vx_unibyte_registry_and_encoding. | |
8599 | (face_at_buffer_position): Handle unibyte. | |
8600 | (face_at_string_position): Likewise. | |
8601 | (realize_face): New parameter unibyte_registry. | |
8602 | (compute_char_face): Handle the unibyte case. | |
8603 | ||
8604 | * dispextern.h (struct glyph): Add bit multibyte_p. | |
8605 | (struct face): New member registry holding the registry and | |
8606 | encoding of the X font of the face. | |
8607 | (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text. | |
8608 | (enum face_id): Add BASIC_FACE_ID_SENTINEL. | |
8609 | (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte | |
8610 | text. | |
8611 | (struct iterator_stack_entry): Add multibyte_p. | |
8612 | ||
8613 | * xdisp.c (string_pos): Use string_char_to_byte. | |
8614 | (char_charset): Removed. | |
8615 | ||
8616 | 1998-08-03 Gerd Moellmann <gerd@gnu.org> | |
8617 | ||
8618 | * xterm.c (x_draw_image_glyph_string_foreground): Draw a | |
8619 | rectangle for a block cursor over an image without a mask. | |
8620 | (x_stretch_block_cursor): Added. Non-zero means don't draw | |
8621 | a block cursor over a stretch as wide as that stretch. | |
8622 | (x_draw_stretch_glyph_string): Use it. | |
8623 | (x_draw_hollow_cursor): Ditto. | |
8624 | ||
8625 | * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt. | |
8626 | (read_minibuf): Add front-sticky text property for prompt. | |
8627 | ||
8628 | * xdisp.c (char_charset): Return charset of a character, | |
8629 | depending on whether or not multi-byte characters are enabled. | |
8630 | ||
8631 | * xfaces.c (Fset_face_charset_registry): Removed. | |
8632 | (x_charset_registry): Determine registry from charset plist. | |
8633 | ||
8634 | 1998-08-02 Gerd Moellmann <gerd@gnu.org> | |
8635 | ||
8636 | * xdisp.c (get_next_display_element): Don't check for charset | |
8637 | changes if multi-byte characters are not enabled. | |
8638 | ||
8639 | * xdisp.c (echo_area_display): Use the flush function from the | |
8640 | redisplay interface. | |
8641 | * keyboard.c (detect_input_pending_run_timers): Likewise. | |
8642 | ||
8643 | * dispextern.h (produce_*glyphs_hook): Removed. | |
8644 | * term.c (produce_*glyphs): Ditto. | |
8645 | (cursor_to): Remove pixel position parameters. | |
8646 | ||
8647 | * dispnew.c: Remove hooks for window-based redisplay, introduce | |
8648 | a redisplay interface structure. | |
8649 | ||
8650 | * xterm.c (x_per_char_metric): Return default char metrics if per | |
8651 | char metric exists but contains a zero width. Adobe Courier seems | |
8652 | to contain such characters. | |
8653 | ||
8654 | * xdisp.c (compute_line_metrics): Compute the width of rows | |
8655 | without stopping at glyphs with zero width. | |
8656 | ||
8657 | 1998-08-01 Gerd Moellmann <gerd@gnu.org> | |
8658 | ||
8659 | * xdisp.c (display_mode_line): If nothing was displayed at all, | |
8660 | display a space. | |
8661 | (hscroll_window_tree): Don't subtract 1 from target point if equal | |
8662 | to ZV and window is not the selected window. | |
8663 | ||
8664 | * dispnew.c (check_matrix_invariants): Remove check for window | |
8665 | start at BEGV or after newline. This happens in rare cases | |
8666 | intentionally. | |
8667 | ||
8668 | 1998-07-31 Gerd Moellmann <gerd@gnu.org> | |
8669 | ||
8670 | * xfaces.c (x_charset_registry): Use STRING_BYTES. | |
8671 | (syms_of_xfaces): Add Vface_default_registry. | |
8672 | (x_charset_registry): Use it. | |
8673 | ||
8674 | * xdisp.c (run_window_scroll_functions): Run window scroll functions. | |
8675 | (redisplay_window): Use it. | |
8676 | ||
8677 | * dispnew.c (update_text_area): Handle lbearing of deleted text | |
8678 | by backing up one character. | |
8679 | ||
8680 | 1998-07-30 Gerd Moellmann <gerd@gnu.org> | |
8681 | ||
8682 | * dispnew.c (adjust_glyph_matrix): Use a different check to | |
8683 | decide to do nothing. | |
8684 | ||
8685 | * xfaces.c (face_at_string_position): Additional parameter | |
8686 | mode_line_p. If non-zero, merge with the mode line face | |
8687 | instead of the default face. | |
8688 | * dispextern.h (struct it): Add mode_line_p. | |
8689 | * xdisp.c (init_iterator): Set it. | |
8690 | (compute_face_in_string): Use it. | |
8691 | (face_before_or_after_it_pos): Handle strings. | |
8692 | (get_next_display_element): Don't look for relief end in C strings. | |
8693 | (next_element_from_string): Deliver string position instead of | |
8694 | buffer position. | |
8695 | ||
8696 | * xterm.c (x_flush): Flush X output buffer. | |
8697 | (XTflash): Use it. | |
8698 | ||
8699 | * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol. | |
8700 | Allow strings as face names. | |
8701 | ||
8702 | * xfns.c (forall_images_in_image_cache): Check that frame is | |
8703 | alive. | |
8704 | ||
8705 | * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces; | |
8706 | it's also called from x_destroy_window. Since this function is | |
8707 | called from X, freeing stuff allocated with xmalloc is dangerous | |
8708 | here, anyway. | |
8709 | ||
8710 | * xfaces.c (free_realized_faces): Don't clear current matrices | |
8711 | of a frame being destroyed. | |
8712 | ||
8713 | * frame.c (make_frame): Call set_window_buffer instead of | |
8714 | Fset_window_buffer. | |
8715 | ||
8716 | * window.c (set_window_buffer): Extracted from Fset_window_buffer, | |
8717 | with an additional argument specifying whether or not hooks may | |
8718 | be called. | |
8719 | (Fset_window_buffer): Call it. | |
8720 | ||
8721 | * dispnew.c (clear_desired_matrices): Check that frame has | |
8722 | a valid root window before clearing matrices in the window tree. | |
8723 | (clear_current_matrices): Ditto. | |
8724 | (clear_window_matrices): If GLYPH_DEBUG, check that hchild and | |
8725 | vchild are valid windows if not nil. | |
8726 | ||
8727 | * xfaces.c (merge_face_vector_with_property): Allow :reverse-video | |
8728 | for :inverse-video. | |
8729 | (Finternal_set_lisp_face_attribute): Ditto. | |
8730 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
8731 | (Finternal_get_lisp_face_attribute): Ditto. | |
8732 | (Finternal_lisp_face_attribute_values): Ditto. | |
8733 | (syms_of_xfaces): Define the symbol `:reverse-video'. | |
8734 | ||
8735 | * xdisp.c (get_glyph_property): Renamed from | |
8736 | fill_iterator_from_glyph_property. | |
8737 | (next_element_from_buffer): Handle case that no `glyph' property | |
8738 | was found correctly. | |
8739 | (display_line): Extend face to end of line only if we have faces. | |
8740 | ||
8741 | 1998-07-29 Gerd Moellmann <gerd@gnu.org> | |
8742 | ||
8743 | * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take | |
8744 | additional window argument. | |
8745 | ||
8746 | * xdisp.c (reseat_at_previous_visible_line_start): Renamed from | |
8747 | set_iterator_to_previous_visible_line_start. | |
8748 | (reseat_at_next_visible_line_start): Likewise. | |
8749 | (compute_stop_pos): Renamed from set_iterator_stop_pos. | |
8750 | (face_before_or_after_it_pos): Renamed from get_face_at_it_pos. | |
8751 | (compute_face_in_buffer): Renamed from | |
8752 | compute_face_at_iterator_position. | |
8753 | (compute_face_in_string): Renamed from | |
8754 | compute_face_at_iterator_string_position. | |
8755 | (get_space_width): Renamed from get_iterator_space_width. | |
8756 | (next_overlay_string): Renamed from | |
8757 | set_iterator_to_next_overlay_string. | |
8758 | (get_overlay_strings): Renamed from | |
8759 | get_overlay_strings_at_iterator_position. | |
8760 | (restore_overlay_strings): Renamed from | |
8761 | setup_overlay_strings_from_glyph_pos. | |
8762 | (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos. | |
8763 | (init_from_display_pos): Renamed from init_iterator_from_glyph_pos. | |
8764 | (init_to_row_start): Renamed from init_iterator_to_row_start. | |
8765 | (init_to_row_end): Formerly init_iterator_to_next_row_start. | |
8766 | ||
8767 | * xterm.c: Merge with 20.2.97. | |
8768 | (x_produce_glyphs): Use x_append_stretch_glyph for tabs. | |
8769 | ||
8770 | * dispextern.h (struct glyph): Replace text_pos position with | |
8771 | simple charpos. | |
8772 | ||
8773 | * xdisp.c (this_line_start_pos): Use struct text_pos. | |
8774 | (this_line_end_pos): Renamed from .*endpos; use struct text_pos. | |
8775 | (enum move_it_result): Renamed from move_iterator_result. | |
8776 | (string_pos_nchars_ahead): Compute text_pos in a string from a | |
8777 | known text_pos plus a character delta. | |
8778 | (string_pos): Compute text_pos in string from charpos. | |
8779 | (c_string_pos): Likewise for a C string. | |
8780 | (number_of_chars): Return number of characters in a possibly | |
8781 | multi-byte C string. | |
8782 | (check_it): Renamed from check_iterator. Check that charpos and | |
8783 | bytepos are in sync. | |
8784 | (push_it): Renamed from save_iterator_settings. | |
8785 | (pop_it): Renamed from restore_iterator_settings. | |
8786 | (move_it_.*): Renamed from move_iterator_.*. | |
8787 | (charset_at_position): Take charpos/bytepos into account. | |
8788 | (back_to_previous_line_start): Set iterator to previous line start. | |
8789 | (forward_to_next_line_start): Set iterator to next line start. | |
8790 | (back_to_previous_visible_line_start): Renamed from | |
8791 | move_iterator_previous_visible_line_start. | |
8792 | (set_iterator_to_next_visible_line_start): Handle charpos/bytepos. | |
8793 | (get_face_at_it_pos): Renamed from get_face_from_cursor_pos. | |
8794 | Handle charpos/bytepos. | |
8795 | (compute_face_at_iterator_position): Handle charpos/bytepos. | |
8796 | (compute_face_at_iterator_string_position): Likewise. | |
8797 | (get_iterator_space_width): Likewise. | |
8798 | (load_overlay_strings): Likewise. | |
8799 | (get_overlay_strings_at_iterator_position): Likewise. | |
8800 | (reseat_iterator): Take a text_pos position argument. | |
8801 | (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/ | |
8802 | bytepos. | |
8803 | (init_iterator): Take additional bytepos parameter. | |
8804 | (reseat_iterator_to_string): Handle charpos/bytepos. | |
8805 | (start_display): Take a text_pos parameter. Handle charpos/bytepos. | |
8806 | (next_element_from_string): Handle charpos/bytepos. | |
8807 | (next_element_from_c_string): Likewise. | |
8808 | (fill_iterator_from_glyph_property): Likewise. | |
8809 | (next_element_from_buffer): Likewise. | |
8810 | (set_iterator_to_next): Increment charpos and bytepos of an iterator. | |
8811 | (move_iterator_in_display_line_to): Handle charpos/bytepos. | |
8812 | (move_it_to): Likewise. | |
8813 | (move_it_vertically_backward): Likewise. | |
8814 | (move_it_vertically): Likewise. | |
8815 | (move_it_by_lines): Likewise. | |
8816 | (hscroll_window_tree): Likewise. | |
8817 | (redisplay_internal): Likewise. | |
8818 | (set_cursor_from_row): Likewise. | |
8819 | (redisplay_window): Likewise. | |
8820 | (try_window): Take a text_pos parameter. Handle charpos/bytepos. | |
8821 | (try_window_reusing_current_matrix): Handle charpos/bytepos. | |
8822 | (get_first_unchanged_at_end_row): Compute and return delta_bytes. | |
8823 | (try_window_id): Handle charpos/bytepos. | |
8824 | (Ftrace_redisplay_toggle): Return Qnil. | |
8825 | (get_overlay_arrow_glyph_row): Handle charpos/bytepos. | |
8826 | (insert_left_trunc_glyphs): Likewise. | |
8827 | ||
8828 | * dispnew.c: `Merge' with 20.2.97 (it's really too different to | |
8829 | do a real merge). | |
8830 | (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes. | |
8831 | (increment_glyph_row_buffer_positions): Ditto. | |
8832 | (copy_glyph_row_contents): Ditto. | |
8833 | (check_matrix_invariants): Add additional checks for charpos/ | |
8834 | bytepos consistency. | |
8835 | (direct_output_for_insert): Changed for charpos/bytepos. | |
8836 | (buffer_posn_from_coords): Likewise. Put code dealing with | |
8837 | `direction-reversed' in #if 0. | |
8838 | ||
8839 | * xterm.h: Merge with 20.2.97. | |
8840 | ||
8841 | * frame.h: Merge with 20.2.97. | |
8842 | ||
8843 | * window.h: Merge with 20.2.97. Add window_end_bytepos. | |
8844 | ||
8845 | * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row | |
8846 | start. | |
8847 | (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position. | |
8848 | (MATRIX_ROW_END_CHARPOS): Likewise for the row end. | |
8849 | (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position. | |
8850 | (struct it): Various members renamed from .*pos to .*charpos. | |
8851 | (IT_CHARPOS): Access current buffer character position of an | |
8852 | iterator. | |
8853 | (IT_BYTEPOS): Access current buffer byte position of an iterator. | |
8854 | (IT_STRING_CHARPOS): Access current string character position of | |
8855 | an iterator. | |
8856 | (IT_STRING_BYTEPOS): Access current string byte position of | |
8857 | an iterator. | |
8858 | (globally): Add function prototypes from 20.2.97. | |
8859 | ||
8860 | * everywhere: Use P_ instead of PROTO for function prototypes | |
8861 | because everyone else seems to use P_. | |
8862 | ||
8863 | * dispextern.h (struct text_pos): Structure describing a charpos/ | |
8864 | bytepos position in text. | |
8865 | (BYTEPOS): Access the byte position part of a text_pos. | |
8866 | (CHARPOS): Likewise for the character position. | |
8867 | (SET_TEXT_POS): Set a text_pos from a character and byte position. | |
8868 | (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position. | |
8869 | (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker. | |
8870 | (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos. | |
8871 | (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality. | |
8872 | (struct display_pos): Renamed from glyph_pos. Use struct text_pos | |
8873 | for buffer and string positions. | |
8874 | (struct glyph): Use text_pos. | |
8875 | (struct it): Renamed from display_iterator. Use text_pos. | |
8876 | ||
8877 | 1998-07-23 Gerd Moellmann <gerd@gnu.org> | |
8878 | ||
8879 | * xfns.c (x_kill_gs_process): Get image colors from XImage of a | |
8880 | pixmap. | |
8881 | ||
8882 | 1998-07-21 Gerd Moellmann <gerd@gnu.org> | |
8883 | ||
8884 | * dispextern.h (struct glyph_row): New flag indicate_zv_line_p. | |
8885 | * xterm.c (x_draw_row_bitmaps): Use it. | |
8886 | * dispnew.c (row_equal_p): Ditto. | |
8887 | (update_window_line): Ditto. | |
8888 | ||
8889 | * xfns.c (prepare_image_for_display): Don't set loading_failed_p | |
8890 | flag of images. | |
8891 | ||
8892 | * dispextern.h (struct image): Removed member loading_failed_p. | |
8893 | It's probably better to have the chance to try to load an image | |
8894 | again. | |
8895 | ||
8896 | 1998-07-20 Gerd Moellmann <gerd@gnu.org> | |
8897 | ||
8898 | * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending | |
8899 | at ZV if `indicate-zv-lines' is non-nil. | |
8900 | (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'. | |
8901 | ||
8902 | * dispnew.c (row_equal_p): Compare displays_text_p and | |
8903 | ends_at_zv_p flags of rows. | |
8904 | (update_window_line): Ditto. | |
8905 | ||
8906 | * buffer.h (struct buffer): New member indicate_zv_lines. | |
8907 | ||
8908 | * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'. | |
8909 | (init_buffer_once): New variable `default-indicate-zv-lines'. | |
8910 | (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'. | |
8911 | ||
8912 | * xdisp.c (redisplay_window): Don't try moving the cursor | |
8913 | if current glyph row w->last_cursor.vpos isn't enabled. | |
8914 | ||
8915 | * xterm.c (bitmap_type): Add ZV_LINE_BITMAP. | |
8916 | ||
8917 | * window.c (Fset_window_vscroll): Allow only negative scroll | |
8918 | values. Others don't seem to make sense, and this way it's easy | |
8919 | to restore a vscroll of zero. | |
8920 | ||
8921 | * xterm.c (x_inverted_image_mask): Check that pixmap could be | |
8922 | allocated. | |
8923 | (x_draw_image_glyph_string_background): Don't clip if pixmap | |
8924 | could not be created. | |
8925 | ||
8926 | * xfns.c (xbm_load_image_from_file): Check that pixmap could | |
8927 | be created. | |
8928 | (xbm_load): Ditto. | |
8929 | (gs_load): Ditto. | |
8930 | ||
8931 | * xterm.c (x_get_glyph_overhangs): Take image and stretch | |
8932 | glyphs into account. | |
8933 | ||
8934 | * xfaces.c (realize_default_face): Don't set font family of | |
8935 | the default face from the fontset alias name for `fontset-startup'. | |
8936 | ||
8937 | * xfns.c (gs_load): Pass frame's pixel foreground and background | |
8938 | color to the Lisp loader. | |
8939 | ||
8940 | 1998-07-19 Gerd Moellmann <gerd@gnu.org> | |
8941 | ||
8942 | * xfns.c (tiff_image_p, tiff_load): Support TIFF images via | |
8943 | libtiff34. | |
8944 | ||
8945 | * configure.in (--with-tiff, HAVE_TIFF): Added. | |
8946 | ||
8947 | * config.in (HAVE_TIFF): Added. | |
8948 | ||
8949 | * Makefile.in (LIBTIFF): Added. | |
8950 | ||
8951 | * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images. | |
8952 | ||
8953 | * Makefile.in (LIBJPEG): Added. | |
8954 | ||
8955 | * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER, | |
8956 | RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with | |
8957 | jpeglib.h. | |
8958 | ||
8959 | * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems | |
8960 | where the library is installed in /usr/local/lib, e.g. FreeBSD, | |
8961 | configure must be run with `--x-includes=/usr/X11R6/include: | |
8962 | /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'. | |
8963 | ||
8964 | 1998-07-18 Gerd Moellmann <gerd@gnu.org> | |
8965 | ||
8966 | * config.in (HAVE_JPEG): Added. | |
8967 | ||
8968 | * xfns.c (ct_init): Initialize color table used to map RGB colors | |
8969 | from images to X pixel colors. | |
8970 | (ct_free): Free color table. | |
8971 | (ct_lookup): Look an RGB color up. | |
8972 | (ct_allocated_colors): Get vector of allocated colors. | |
8973 | (pbm_image_p): Test if image specification is a valid PPM | |
8974 | image specification. | |
8975 | (pbm_scan_number): Scan a decimal ASCII number from a file. | |
8976 | (pbm_load): Load a PPM image. | |
8977 | ||
8978 | * window.c (Fset_window_vscroll): Adjust glyph matrix if | |
8979 | necessary. Take canonical character units as parameter. | |
8980 | (Fwindow_vscroll): Return canonical character units. | |
8981 | ||
8982 | * dispnew.c (allocate_matrices_for_window_redisplay): Add negative | |
8983 | w->dy to display height for which glyph rows must be allocated. | |
8984 | ||
8985 | 1998-07-17 Gerd Moellmann <gerd@gnu.org> | |
8986 | ||
8987 | * xfaces.c (face_at_string_position): Merge in region face | |
8988 | so that it won't overwrite the font in the region. | |
8989 | (face_at_buffer_position): Ditto. | |
8990 | (realize_basic_faces): Don't realize region face. | |
8991 | ||
8992 | * dispextern.h (enum face_id): REGION_FACE_ID removed. | |
8993 | ||
8994 | * xterm.c (x_set_glyph_string_background_width): Don't let | |
8995 | cursor face extend to end of line. | |
8996 | ||
8997 | * xdisp.c (append_space): If adding space of default face, | |
8998 | make sure glyph ist produced with right face. | |
8999 | ||
9000 | * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the | |
9001 | background color of a glyph string. | |
9002 | (x_draw_glyph_string_background): Call it. | |
9003 | (x_draw_glyph_string_bg_rect): Ditto. | |
9004 | (x_draw_stretch_glyph_string): Ditto. | |
9005 | ||
9006 | 1998-07-15 Gerd Moellmann <gerd@gnu.org> | |
9007 | ||
9008 | * xdisp.c (init_iterator): Initialize it->current_y to the | |
9009 | window's vscroll w->dy. | |
9010 | ||
9011 | * window.c (Fwindow_vscroll): Return number of pixels window | |
9012 | is vscrolled smoothly. | |
9013 | (Fset_window_vscroll): Set the number. | |
9014 | ||
9015 | * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and | |
9016 | to_pos in truncated part of a line. | |
9017 | ||
9018 | 1998-07-14 Gerd Moellmann <gerd@gnu.org> | |
9019 | ||
9020 | * xdisp.c (move_iterator_in_display_line_to): If very first glyph | |
9021 | doesn't fit on the line, truncate it, despite truncate_lines nil. | |
9022 | (display_line): Ditto. | |
9023 | ||
9024 | * xfns.c: Experimental support for Ghostscript images. | |
9025 | ||
9026 | * xterm.c (x_term_init): Initialize new atoms DONE and PAGE. | |
9027 | (XTread_socket): React on events from Ghostscript. | |
9028 | (expose_frame): If width or height are zero, redraw entire frame. | |
9029 | (XTread_socket): Call expose_frame after receiving event from | |
9030 | Ghostscript. | |
9031 | ||
9032 | * xterm.h (struct x_display_info): Add atoms DONE and PAGE | |
9033 | for Ghostscript support. | |
9034 | ||
9035 | * xdisp.c (redisplay_internal): Return quickly if called | |
9036 | recursively. | |
9037 | ||
9038 | * alloc.c (NSTATICS): Increased to 1024. | |
9039 | ||
9040 | 1998-07-08 Gerd Moellmann <gerd@gnu.org> | |
9041 | ||
9042 | * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an | |
9043 | iterator's glyph row. | |
9044 | (x_produce_stretch_glyph): Call it. | |
9045 | (x_produce_glyphs): Handle `space-width' property; call | |
9046 | x_append_stretch_glyph. | |
9047 | ||
9048 | * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text | |
9049 | property. | |
9050 | (get_iterator_space_width): Determine value of `space-width' | |
9051 | property at iterator's position. | |
9052 | (reseat_iterator): Call it. | |
9053 | (next_element_from_string): Ditto. | |
9054 | (next_element_from_buffer): Ditto. | |
9055 | (init_iterator): Initialize space_width of iterator. | |
9056 | (redisplay_internal): Don't goto end_of_redisplay if PT hasn't | |
9057 | moved, but cursor blinks. | |
9058 | (redisplay_internal): Set w->last_cursor_off_p after update. | |
9059 | ||
9060 | * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX. | |
9061 | (struct display_iterator): Add new member space_width. | |
9062 | ||
9063 | * window.h (struct window): Add last_cursor_off_p. | |
9064 | ||
9065 | 1998-07-07 Gerd Moellmann <gerd@gnu.org> | |
9066 | ||
9067 | * Saved. | |
9068 | ||
9069 | * window.c (Fpos_visible_in_window_p): Case window not up to | |
9070 | date---return nil if iterator hasn't reached position. | |
9071 | ||
9072 | 1998-07-06 Gerd Moellmann <gerd@gnu.org> | |
9073 | ||
9074 | * xdisp.c (text_outside_line_unchanged_p): Fix case that | |
9075 | overlays have changed. | |
9076 | (redisplay_window): Case cursor movement. Don't try it if | |
9077 | last_cursor.vpos is out of range. | |
9078 | ||
9079 | * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This | |
9080 | way, the display optimization for the line containing the cursor | |
9081 | is used more frequently, esp. when we have a blinking cursor. | |
9082 | (display_line): Don't set this_line_.* variables. | |
9083 | ||
9084 | * xterm.c (x_redraw_cursor): Removed. | |
9085 | (x_display_and_set_cursor): Set cursor type depending on | |
9086 | cursor_off_p flag of window. | |
9087 | ||
9088 | * dispnew.c (redraw_cursor_hook): Removed. | |
9089 | (Fblink_cursor): Additional parameter on_p to set the cursor_off_p | |
9090 | member of the selected window. | |
9091 | ||
9092 | * xfaces.c (Fface_font): Added for compatibility with 20.2. | |
9093 | ||
9094 | * xterm.c (x_y_to_hpos_vpos): Return null if not over text. | |
9095 | Return glyph area under x/y. | |
9096 | (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form. | |
9097 | ||
9098 | * keyboard.c (detect_input_pending_run_timers): Call gobble_input | |
9099 | after redisplaying. | |
9100 | ||
9101 | 1998-07-05 Gerd Moellmann <gerd@gnu.org> | |
9102 | ||
9103 | * xdisp.c (text_outside_line_unchanged_p): Test if changes | |
9104 | are all outside of a line of text. | |
9105 | (redisplay_internal): Use it. | |
9106 | ||
9107 | 1998-06-30 Gerd Moellmann <gerd@gnu.org> | |
9108 | ||
9109 | * xdisp.c (next_element_from_buffer): After skipping over | |
9110 | invisible text, look for the `glyph' property. | |
9111 | (set_iterator_stop_pos): Ignore check positions in front | |
9112 | of an iterator's current position. | |
9113 | ||
9114 | * xterm.c (show_mouse_face): Don't act on rows that don't exist | |
9115 | anymore or which are marked as not having valid contents. | |
9116 | ||
9117 | * xfaces.c (Finternal_set_lisp_face_attribute): Don't free | |
9118 | realized faces if new attribute value is equal to old value. | |
9119 | ||
9120 | 1998-06-29 Gerd Moellmann <gerd@gnu.org> | |
9121 | ||
9122 | * xfaces.c (Finternal_make_lisp_face): Increment | |
9123 | lface_id_to_name_size when lface_id_to_name is reallocated. | |
9124 | ||
9125 | 1998-06-27 Gerd Moellmann <gerd@gnu.org> | |
9126 | ||
9127 | * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos | |
9128 | as minimum of endpos and overlay_pos. | |
9129 | (load_overlay_strings): Set next_overlay_pos of iterator to | |
9130 | -1 if we don't have to check for more overlay strings. | |
9131 | ||
9132 | 1998-05-09 Gerd Moellmann <gerd@gnu.org> | |
9133 | ||
9134 | * xdisp.c (set_iterator_to_next_visible_line_start): Don't | |
9135 | do anything if iterator is at ZV because scan_buffer doesn't | |
9136 | work otherwise. | |
9137 | ||
9138 | * xterm.c (x_encode_char): Inline it. | |
9139 | (x_get_char_font_and_encoding): Simplified. | |
9140 | (x_per_char_metric): Inline it. | |
9141 | ||
9142 | * xterm.c (x_draw_glyph_string_relief): Use clipping. | |
9143 | ||
9144 | * xdisp.c (get_next_display_element): Check for end of relief | |
9145 | face moved here from next_element_from_buffer. | |
9146 | ||
9147 | * xterm.c (x_produce_image_glyph): Add relief thickness. | |
9148 | (x_produce_stretch_glyph): Ditto. | |
9149 | ||
9150 | 1998-05-08 Gerd Moellmann <gerd@gnu.org> | |
9151 | ||
9152 | * xdisp.c (fill_iterator_from_glyph_property): Handle glyph | |
9153 | property value (space :width WIDTH :height HEIGHT :ascent ASCENT). | |
9154 | ||
9155 | * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph | |
9156 | from a glyph property. | |
9157 | (x_produce_glyphs): Use it. | |
9158 | ||
9159 | * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch. | |
9160 | ||
9161 | * xterm.c (x_produce_image_glyph): Add to current_x only if | |
9162 | in text area. | |
9163 | (x_produce_glyphs): Ditto. | |
9164 | ||
9165 | * xdisp.c (display_line): Compute row height from glyphs in | |
9166 | marginal areas. | |
9167 | ||
9168 | * xterm.c (x_draw_image_glyph_string_background): Draw | |
9169 | background of an image glyph string. | |
9170 | (x_draw_glyph_string_bg_rect): Draw a rectangular region of | |
9171 | the background of a glyph string. | |
9172 | (x_draw_image_glyph_string_foreground): Draw the foreground of | |
9173 | an image glyph string. | |
9174 | (x_inverted_image_mask): Return the inverted mask of an image. | |
9175 | ||
9176 | * xfns.c (x_draw_image): Removed. | |
9177 | ||
9178 | * dispextern.h (struct image_type): Remove drawing function. | |
9179 | ||
9180 | * xfaces.c (load_face_colors): Swap colors if face is inverse. | |
9181 | ||
9182 | * xdisp.c (get_next_display_element): In marginal areas, translate | |
9183 | newlines, tabs, etc. like normal control characters. | |
9184 | ||
9185 | * xfaces.c (Fface_color_supported_p): Transpose parameters frame | |
9186 | and color. | |
9187 | (free_realized_faces): Set frame garbaged. | |
9188 | ||
9189 | * xfaces.c (syms_of_xfaces): Add defsubr for | |
9190 | internal-lisp-face-attribute-values. | |
9191 | ||
9192 | 1998-05-07 Gerd Moellmann <gerd@gnu.org> | |
9193 | ||
9194 | * xterm.c (x_produce_image_glyph): Don't add glyph if area is | |
9195 | full. | |
9196 | (x_produce_image_glyph): Set IT->nglyphs to 1. | |
9197 | (x_draw_image_glyph_string): Use inverted mask to draw background. | |
9198 | ||
9199 | * dispextern.h (struct image_type): Additional clipping rect | |
9200 | parameters for drawing functions. | |
9201 | ||
9202 | * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for | |
9203 | a glyph string. | |
9204 | (x_draw_image_glyph_string): Use it and pass the rect to the | |
9205 | image drawing function. | |
9206 | ||
9207 | * xdisp.c (fill_iterator_from_glyph_property): Use position of | |
9208 | first character with `glyph' property as image position. Set | |
9209 | iterator back to that position as long as the image hasn't been | |
9210 | consumed with set_iterator_to_next. | |
9211 | (set_cursor_from_row): Accept when glyph with given position is | |
9212 | not found in the row. Set cursor x to end of line in that case, | |
9213 | so that we can hscroll. | |
9214 | (redisplay_internal): Correct computation of delta by which | |
9215 | positions have changed in redisplay optimization for cursor | |
9216 | row of selected window. | |
9217 | ||
9218 | * xdisp.c (display_line): Remove start_pos. | |
9219 | (display_line): Fix bug preventing display optimization for | |
9220 | cursor line of selected window. | |
9221 | (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer | |
9222 | instead. | |
9223 | ||
9224 | * dispnew.c (update_text_area): Use GLYPH_EQUAL_P. | |
9225 | (update_text_area): Take glyph pixel width into account | |
9226 | when trying to find a resync point. | |
9227 | (row_equal_p): Compare glyphs in all areas. | |
9228 | ||
9229 | 1998-05-06 Gerd Moellmann <gerd@gnu.org> | |
9230 | ||
9231 | * xterm.c (x_produce_glyphs): Don't add glyph if area is full. | |
9232 | ||
9233 | * dispextern.h (struct glyph_row): Use unsigned hash value. | |
9234 | ||
9235 | * xdisp.c (display_line): Simplified and made faster by setting | |
9236 | the cursor with set_cursor_from_row. | |
9237 | (set_cursor_from_row): Handle rows of desired matrix. | |
9238 | ||
9239 | 1998-05-05 Gerd Moellmann <gerd@gnu.org> | |
9240 | ||
9241 | * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs | |
9242 | with type != CHAR_GLYPH. | |
9243 | (fill_iterator_from_glyph_property): Return void. Set | |
9244 | method to next_element_from_image. | |
9245 | (next_element_from_image): Dummy function for delivering a | |
9246 | single image id. | |
9247 | (set_iterator_to_next): Add method next_element_from_image. | |
9248 | (redisplay_window): When recentering, and cursor vpos is -1 | |
9249 | after display, assume middle of window is in first line displayed | |
9250 | in window, and display again. | |
9251 | (fill_iterator_from_glyph_property): Assign image glyph | |
9252 | the position of the first character having the glyph property. | |
9253 | ||
9254 | * dispextern.h (IMAGE_ASCENT): Compute ascent of image. | |
9255 | * xfns.c (x_draw_image): Use it. | |
9256 | * xterm.c (x_produce_image_glyph): Use it. | |
9257 | ||
9258 | * xterm.c (x_produce_image_glyph): Set iterator's pixel_width. | |
9259 | ||
9260 | * Makefile.in: Extraneous #define of LIBXPM removed. | |
9261 | ||
9262 | * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs. | |
9263 | (x_fill_stretch_glyph_string): Fill a glyph string from a | |
9264 | stretch glyph. | |
9265 | (x_compute_glyph_string_overhangs): Compute overhangs only | |
9266 | for text glyph strings. | |
9267 | (x_draw_stretch_glyph_string): Draw a stretch glyph string. | |
9268 | (x_draw_glyph_string): Call it. | |
9269 | ||
9270 | * dispextern.h (glyph_type): Add STRETCH_GLYPH. | |
9271 | (struct glyph): Add sub-structure for stretchable glyphs. | |
9272 | (GLYPH_EQUAL_P): Compare glyph type and u.val. | |
9273 | ||
9274 | * xdisp.c (get_overlay_arrow_glyph_row): Put face code into | |
9275 | #ifdef HAVE_FACES. | |
9276 | ||
9277 | * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB. | |
9278 | ||
9279 | * xdisp.c (fill_iterator_from_glyph_property): Renamed from | |
9280 | setup_iterator_from_glyph_property. Don't do it for terminal | |
9281 | frames. | |
9282 | ||
9283 | * xterm.c (x_produce_image_glyph): Produce glyph for image | |
9284 | that can't be loaded. | |
9285 | ||
9286 | * xfns.c (lookup_image): If image can't be loaded, set its | |
9287 | width and height so that we can draw a rectangle. | |
9288 | (x_draw_image): Draw a rectangle for images that don't have | |
9289 | a pixmap. | |
9290 | (make_image): Set hash value. | |
9291 | (image_spec_equal_p): Use image_spec_value. | |
9292 | ||
9293 | * xterm.c (expose_frame): Don't try to redraw if basic faces | |
9294 | haven't benn realized yet. | |
9295 | (x_draw_image_glyph_string): Fill background only if image | |
9296 | is not as tall as row. | |
9297 | ||
9298 | 1998-05-04 Gerd Moellmann <gerd@gnu.org> | |
9299 | ||
9300 | * Makefile.in (LIBXPM): If not already defined, define to -lXpm. | |
9301 | (LIBX)[HAVE_X11]: Add LIBXPM. | |
9302 | ||
9303 | * xfns.c (xpm_image_p): Implementation of image type functions | |
9304 | for XPM. | |
9305 | (xpm_load): Ditto. | |
9306 | ||
9307 | * dispextern.h (struct image): Add mask pixmap for XPM. | |
9308 | ||
9309 | * xfns.c (x_draw_image): Handle images with masks. | |
9310 | ||
9311 | * configure.in: --with-xpm added. Code detecting -lXpm added. | |
9312 | ||
9313 | * config.in: Add HAVE_XPM. | |
9314 | ||
9315 | * xfns.c (xbm_draw): Removed. | |
9316 | (x_draw_image): Default implementation for drawing images. | |
9317 | (xbm_keyword_index): Remove XBM_DEPTH. | |
9318 | (xbm_format): Remove `:depth'. | |
9319 | (xbm_image_spec_from_file): Removed to reduce consing. | |
9320 | (xbm_load_image_from_file): Added for the same reason. | |
9321 | ||
9322 | * xterm.c (x_fill_image_glyph_string): Don't set ybase of | |
9323 | glyph string. | |
9324 | (x_draw_image_glyph_string): Pass ybase to image draw function. | |
9325 | ||
9326 | * xfns.c (make_image): Set default baseline. | |
9327 | ||
9328 | * xterm.c (x_produce_image_glyph): Compute ascent of image | |
9329 | from its height and baseline percentage. | |
9330 | ||
9331 | * xfns.c (xbm_keyword_index): Add XBM_BASELINE. | |
9332 | (xbm_format): Add description for `:baseline'. | |
9333 | (xbm_image_spec_from_file): Add keywords from original spec to | |
9334 | result. | |
9335 | (xbm_load): Set baseline of image. | |
9336 | (xbm_image_p): Check range for baseline. | |
9337 | ||
9338 | * dispextern.h (struct image): Add member baseline. | |
9339 | ||
9340 | * xdisp.c (dump_glyph_matrix): Handle image glyphs. | |
9341 | ||
9342 | * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE. | |
9343 | ||
9344 | * xdisp.c (get_next_display_element): Do character translations | |
9345 | only if delivering characters. | |
9346 | ||
9347 | 1998-05-03 Gerd Moellmann <gerd@gnu.org> | |
9348 | ||
9349 | * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for | |
9350 | DISP_CHARACTER. | |
9351 | ||
9352 | * xterm.c (x_produce_image_glyph): Poduce image glyphs. | |
9353 | (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE. | |
9354 | ||
9355 | 1998-05-02 Gerd Moellmann <gerd@gnu.org> | |
9356 | ||
9357 | * xfns.c (prepare_image_for_display): Set image timestamp. | |
9358 | (clear_image_cache): Clear images if image's timestamp + | |
9359 | Vimage_eviction_seconds is > now. | |
9360 | (syms_of_xfns): New variables image-eviction-seconds, and | |
9361 | image-types. | |
9362 | (add_image_format): Add to image-types. | |
9363 | (xbm_load): Support new image spec format. | |
9364 | (x_alloc_image_color): Allocate a color for an image. | |
9365 | ||
9366 | * dispextern.h (struct image): Add timestamp. | |
9367 | ||
9368 | * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and | |
9369 | vectors of bool-vectors. | |
9370 | (xbm_lisp_object_from_file): Build new format image spec. | |
9371 | ||
9372 | 1998-05-01 Gerd Moellmann <gerd@gnu.org> | |
9373 | ||
9374 | * xfaces.c (init_frame_faces): Initialize image cache. | |
9375 | (free_frame_faces): Free it. | |
9376 | ||
9377 | * xterm.c (x_delete_display): Don't free image cache. | |
9378 | ||
9379 | * emacs.c (main): Call init_xfns. | |
9380 | ||
9381 | 1998-04-30 Gerd Moellmann <gerd@gnu.org> | |
9382 | ||
9383 | * alloc.c (mark_object): Mark objects in image cache. | |
9384 | ||
9385 | * xfns.c (x_set_internal_border_width): Correct call to | |
9386 | widget_store_internal_border_width. | |
9387 | ||
9388 | * widget.c (widget_store_internal_border): Return void. | |
9389 | ||
9390 | * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return | |
9391 | void. | |
9392 | (init_x_parm_symbols): Return void. | |
9393 | (x_report_frame_params): Ditto. | |
9394 | (x_set_border_pixel): Ditto. | |
9395 | (syms_of_xfns): Ditto. | |
9396 | (x_destroy_all_bitmaps): Use xfree instead of free. | |
9397 | ||
9398 | * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame. | |
9399 | ||
9400 | * xterm.c (x_term_init): Initialize image_cache of display info. | |
9401 | (x_delete_display): Free image cache. | |
9402 | ||
9403 | * xterm.h (struct x_display_info): Add image_cache. | |
9404 | ||
9405 | * xfns.c (make_image_cache): Allocate a new image cache. | |
9406 | (free_image_cache): Free an image cache. | |
9407 | (make_image): Allocate an image. | |
9408 | (free_image): Free an image. | |
9409 | ||
9410 | * dispextern.h (struct image): Structure describing an image. | |
9411 | (struct image_cache): Structure describing an image cache. | |
9412 | ||
9413 | 1998-04-29 Gerd Moellmann <gerd@gnu.org> | |
9414 | ||
9415 | * xdisp.c (check_iterator_glyph_property): Return int. Value is | |
9416 | non-zero if iterator is filled with something to return. | |
9417 | (next_element_from_buffer): Immediately return if | |
9418 | setup_iterator_from_glyph_prop has filled iterator with pixmap. | |
9419 | (next_element_from_string): Likewise. | |
9420 | ||
9421 | * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR. | |
9422 | ||
9423 | * dispextern.h (struct glyph): Add pixmap_id. | |
9424 | (display_element_type): Add DISP_PIXMAP. | |
9425 | ||
9426 | * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of | |
9427 | malloc/free. | |
9428 | ||
9429 | * xfaces.c (clear_font_table): Free fonts not used by fontsets. | |
9430 | (clear_face_cache): Call it. | |
9431 | ||
9432 | * xterm.c (x_query_font): Don't look at empty font table slots. | |
9433 | (x_compute_min_glyph_bounds): Likewise. | |
9434 | (x_term_init): Initialize font_table to null. | |
9435 | (x_load_font): Change allocation of font_info structures so | |
9436 | that it is possible to free fonts. | |
9437 | ||
9438 | * xfns.c (Fx_close_connection): Use xfree instead of free. | |
9439 | Only free fonts from filled font table entries. | |
9440 | ||
9441 | * xfaces.c (best_matching_font): Support use of scalable fonts. | |
9442 | (Fface_scalable_fonts_mode): Toggle use of scalable fonts. | |
9443 | ||
9444 | * xterm.h (struct x_display_info): Remove screen_dpi, add resx | |
9445 | and resy. | |
9446 | * xterm.c (x_term_init): Compute resx and resy. | |
9447 | ||
9448 | * xfaces.c (split_font_name): Don't reject scalable fonts. | |
9449 | ||
9450 | * xterm.c (x_list_fonts): Set code exclusing scalable fonts | |
9451 | in #if 0. | |
9452 | ||
9453 | * xfaces.c (xlfd_point_size): Return 0 for fonts whose real | |
9454 | point size cannot be determined. | |
9455 | ||
9456 | * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character | |
9457 | width over all fonts on a frame. | |
9458 | (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height. | |
9459 | * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these | |
9460 | macros. | |
9461 | ||
9462 | * xterm.c (x_font_min_bounds): Moved here from xfaces.c. | |
9463 | (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c. | |
9464 | (x_load_font): Use x_compute_min_char_bounds. | |
9465 | ||
9466 | * xterm.h (struct x_display_info): New members smallest_char_width | |
9467 | and smallest_font_height. | |
9468 | ||
9469 | 1998-04-28 Gerd Moellmann <gerd@gnu.org> | |
9470 | ||
9471 | * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with | |
9472 | the same name if GC of face is zero. | |
9473 | ||
9474 | * dispextern.h (struct face): Member non_ascii_gc removed. | |
9475 | ||
9476 | * xterm.c (x_get_char_font_and_encoding): Return face's font | |
9477 | for characters < 0177 in default face. Prepare face for | |
9478 | display before returning it. | |
9479 | (x_produce_glyphs): Use it->charset. | |
9480 | (x_get_char_font_and_encoding): Simplified. | |
9481 | (x_encode_char): Remove parameter `font'. | |
9482 | ||
9483 | * xfaces.c (choose_face_font): If registry from charset symbol | |
9484 | doesn't contain a `-', make it a pattern by appending "*-*". | |
9485 | ||
9486 | * xdisp.c (check_iterator_glyph_property): Adjust limit for | |
9487 | glyph_check_pos computation to character boundary. | |
9488 | ||
9489 | 1998-04-27 Gerd Moellmann <gerd@gnu.org> | |
9490 | ||
9491 | * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid. | |
9492 | ||
9493 | * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized | |
9494 | ASCII face for a given Lisp face id. | |
9495 | ||
9496 | * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into | |
9497 | account. | |
9498 | (reseat_iterator): Set glyph_check_pos. Handle case where | |
9499 | new position is < original position. | |
9500 | (check_iterator_glyph_property): Handle glyph property in strings. | |
9501 | (next_element_from_string): Call above function. | |
9502 | (next_element_from_display_vector): Handle faces in glyphs. | |
9503 | (get_next_display_element): Set face_id of glyphs for | |
9504 | control chars to zero. | |
9505 | ||
9506 | * Makefile.in (term.o): Add dependency on dispextern.h. | |
9507 | ||
9508 | * xdisp.c (syms_of_xdisp): Add symbol `glyph'. | |
9509 | (display_line): Handle marginal areas. | |
9510 | (move_iterator_in_display_line_to): Likewise. | |
9511 | ||
9512 | * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id. | |
9513 | ||
9514 | * xfaces.c (face_at_buffer_position): Don't merge with nil | |
9515 | text property. | |
9516 | (face_at_string_position): Ditto. | |
9517 | ||
9518 | * dispextern.h (struct display_iterator): Use a stack of saved | |
9519 | values instead of saving check positions etc. individually. | |
9520 | ||
9521 | * xdisp.c (set_iterator_to_next): If end of Lisp string reached, | |
9522 | maybe pop the iterator's stack. | |
9523 | (save_iterator_settings): Push a value on iterator's stack. | |
9524 | (get_overlay_strings_at_iterator_position): Use it. | |
9525 | (restore_iterator_settings): Pop the stack. | |
9526 | (set_iterator_to_next_overlay_string): Use it. | |
9527 | ||
9528 | * xfaces.c (try_font_list): Use alternative font families. | |
9529 | ||
9530 | 1998-04-26 Gerd Moellmann <gerd@gnu.org> | |
9531 | ||
9532 | * xfaces.c (Fset_face_font_sort_order): Set the order in which | |
9533 | font selection matches fonts. | |
9534 | (Fface_font_sort_order): Return the font sort order. | |
9535 | (best_matching_font): Find best matching font based on sort order. | |
9536 | (cmp_font_names): Sort by given sort order. | |
9537 | ||
9538 | * dispextern.h (struct display_iterator): New member faces_p. | |
9539 | * xdisp.c (init_iterator): Initialize it->faces_p. | |
9540 | (compute_face_at_iterator_string_position): Use it. | |
9541 | (compute_face_at_iterator_position): Use it. | |
9542 | (init_iterator): Use it. | |
9543 | (display_mode_line): Ditto. | |
9544 | ||
9545 | * xdisp.c (get_next_display_element): Put code choosing a face | |
9546 | when the charset changes in #ifdef HAVE_FACES. | |
9547 | ||
9548 | * dispextern.h (FACE_FOR_CHARSET): Replacement for function | |
9549 | lookup_face_for_charset. | |
9550 | ||
9551 | * xfaces.c (free_font_names): Renamed from free_split_font_names. | |
9552 | (free_all_realized_faces): Renamed from remove_all_realized_faces. | |
9553 | ||
9554 | 1998-04-25 Gerd Moellmann <gerd@gnu.org> | |
9555 | ||
9556 | * xfaces.c (best_matching_font): Return the name of the best | |
9557 | matching font in an array of font_name structures. | |
9558 | (choose_face_font): Use it. | |
9559 | (choose_face_fontset_font): Use it. | |
9560 | (find_best_weight_font): If final font found has same weight as | |
9561 | the font we started with, return the original font because it is a | |
9562 | better match for the resolution of the display. | |
9563 | (find_best_slant_font): Likewise. | |
9564 | (merge_face_vector_with_property): Check more invalid attribute | |
9565 | values. | |
9566 | (lface_suitable_for_charset_p): Replaced by a macro with the same | |
9567 | name in upper-case. | |
9568 | ||
9569 | 1998-04-24 Gerd Moellmann <gerd@gnu.org> | |
9570 | ||
9571 | * dispextern.h (struct face): Member | |
9572 | fontset_chosen_for_realization_p removed. | |
9573 | ||
9574 | * xfaces.c (cache_face): If face->fontset >= 0, add face to the | |
9575 | end of the collision list, so that we find more specific faces | |
9576 | first. | |
9577 | (lookup_face_for_charset): Look up a new face if face->fontset >= | |
9578 | 0, and charset != CHARSET_COMPOSITION. | |
9579 | ||
9580 | * xfaces.c (split_font_name): Return zero if point size of font | |
9581 | couldn't be computed. | |
9582 | (realize_default_face): Use ASCII font of a fontset to determine | |
9583 | font-related attributes of the default face. | |
9584 | (face_fontset): Return fontset id for face family. | |
9585 | (font_list): Additional parameter font_pattern. If non-nil, | |
9586 | return fonts matching that pattern. | |
9587 | ||
9588 | 1998-04-23 Gerd Moellmann <gerd@gnu.org> | |
9589 | ||
9590 | * xfaces.c (choose_face_fontset): If new fontset cannot be | |
9591 | constructed, or fontset name cannot be split, return the id of the | |
9592 | standard fontset. | |
9593 | ||
9594 | * xterm.c (XTframe_up_to_date): Check that frame is an X frame. | |
9595 | When Emacs starts, it may be called for the initial frame which | |
9596 | isn't an X frame. | |
9597 | ||
9598 | * dispextern.h (struct face): New members foreground_defaulted_p, | |
9599 | background_defaulted_p. | |
9600 | (struct face): Members `mask' and `cache' removed. | |
9601 | ||
9602 | * xfaces.c (load_color): Set them. | |
9603 | (free_face_colors): Check them. | |
9604 | (xlfd_point_size): Return -1 if resolution or point size of | |
9605 | font unknown. | |
9606 | ||
9607 | * xfaces.c (free_font): Removed. | |
9608 | (load_face_font_or_fontset): Renamed from load_font. | |
9609 | (load_face_font_or_fontset): Use message2 instead of signalling. | |
9610 | (load_color): Likewise. | |
9611 | (load_pixmap): Likewise. | |
9612 | ||
9613 | * xterm.h (struct x_display_info): Add screen_dpi. | |
9614 | * xterm.c (x_term_init): Initialize it. | |
9615 | * xfaces.c (xlfd_point_size): Use it. | |
9616 | (split_font_name): Compute numeric XLFD_RESY. | |
9617 | (cmp_font_names): Make fonts with an y-resolution more | |
9618 | similar to that of the frame appear first in the result. | |
9619 | ||
9620 | * xfaces.c (cache_face): If fontset_chosen_for_realization_p | |
9621 | is set for the face to cache, add it to the end of the collision | |
9622 | list. | |
9623 | (try_font_list): If fonts for given family and registry cannot | |
9624 | be found, first try to keep the registry, and choose a different | |
9625 | family. | |
9626 | (choose_face_font): Allow nfonts == 0. | |
9627 | (try_font_list): Give up if no font matches given registry. | |
9628 | ||
9629 | 1998-04-22 Gerd Moellmann <gerd@gnu.org> | |
9630 | ||
9631 | * xterm.c (x_get_char_font_and_encoding): Get font_info from | |
9632 | font info id of the face. | |
9633 | ||
9634 | * xfaces.c (load_font): Set font_info_id. | |
9635 | (realize_face): Ditto. | |
9636 | ||
9637 | * dispextern.h (struct face): Change member font_info to | |
9638 | font_info_id. | |
9639 | ||
9640 | * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer. | |
9641 | (FONT_INFO_FROM_ID): Get a font_info pointer from an ID. | |
9642 | ||
9643 | * xdisp.c (extend_face_to_end_of_line): If IT's current charset | |
9644 | isn't ASCII, get the ASCII face before adding a space. | |
9645 | (append_space): Likewise. | |
9646 | (insert_left_trunc_glyphs): Initialize truncate_it's charset | |
9647 | to -1 so that it will compute the right face for the truncation | |
9648 | glyphs. | |
9649 | ||
9650 | * xfaces.c (realize_face): Set | |
9651 | face->fontset_chosen_for_realization_p. | |
9652 | (lookup_face_for_charset): If fontset wasn't specified originally | |
9653 | and new charset != CHARSET_COMPOSITION, get a new face for that | |
9654 | charset. | |
9655 | ||
9656 | * dispextern.h (struct face): New member | |
9657 | fontset_chosen_for_realization_p_specified_p. Set to 1 when | |
9658 | realize_face has chosen a fontset to display composite characters | |
9659 | for a Lisp face not specifying a fontset. | |
9660 | ||
9661 | * xdisp.c (extend_face_to_end_of_line): Move tests for default | |
9662 | face and line already filled here. Don't do anything if current | |
9663 | face hasn't a relief or has a background equal to the frame | |
9664 | background. | |
9665 | ||
9666 | * xfaces.c (split_font_name): Additional parameter numeric_p. | |
9667 | Don't compute numeric values if it is non-zero. | |
9668 | (choose_face_fontset): Call split_font_name with numeric_p == 0. | |
9669 | (choose_face_fontset): Print a message if fontset contains a | |
9670 | font whose name cannot be split into fields. | |
9671 | ||
9672 | 1998-04-21 Gerd Moellmann <gerd@gnu.org> | |
9673 | ||
9674 | * xfaces.c (try_font_list): Try to load a list of fonts, | |
9675 | possibly using less restrictive patterns. | |
9676 | (choose_face_font): Use it. | |
9677 | ||
9678 | * xterm.c (x_get_char_font_and_encoding): For charset != | |
9679 | CHARSET_ASCII use font_info of face if face hasn't a fontset set. | |
9680 | ||
9681 | * dispextern.h (struct face): New member font_info. | |
9682 | ||
9683 | * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces | |
9684 | specifying a fontset as well as those not having a fontset. | |
9685 | (free_font): Make it empty. | |
9686 | (realize_face): Use changed load_font. | |
9687 | ||
9688 | * xterm.c (x_get_char_font_and_encoding): If face doesn't | |
9689 | fit for charset, get the right one. | |
9690 | ||
9691 | * xfaces.c (load_font): Take frame and name parameter, return | |
9692 | font. | |
9693 | (free_font): Likewise. | |
9694 | (split_font_name): Compute numeric values for height, swidth etc. | |
9695 | (cmp_font_names): Use them. | |
9696 | (find_best_width_font): Ditto. | |
9697 | (find_best_height_font): Ditto. | |
9698 | (find_best_weight_font): Ditto. | |
9699 | (find_best_slant_font): Ditto. | |
9700 | (lface_hash): Add weight, slant, swidth and relief to hash value. | |
9701 | (lface_equal_p): Make it faster. | |
9702 | (lface_from_symbol): Use assq_no_quit. | |
9703 | (Fnote_default_face_changed): Removed. | |
9704 | (cmp_font_names): Use strcmp instead of xstricmp. | |
9705 | (face_charset_registries): Removed. | |
9706 | ||
9707 | 1998-04-20 Gerd Moellmann <gerd@gnu.org> | |
9708 | ||
9709 | * frame.h (CHECK_FRAME): Give this macro a statement form. | |
9710 | (CHECK_LIVE_FRAME): Ditto. | |
9711 | ||
9712 | * xfaces.c (find_best_width_font): Find the best matching font | |
9713 | for a given width. | |
9714 | (find_best_height_font): Likewise for height. | |
9715 | (find_best_weight_font): Likewise for weight. | |
9716 | (find_best_slant_font): Likewise for slant. | |
9717 | (choose_face_font): Use them. | |
9718 | (get_lface_attributes): Always return frame-local face attrs. | |
9719 | (Finternal_merge_in_global_face): Merge local face with | |
9720 | global face attributes. | |
9721 | ||
9722 | * xfaces.c (check_lface_attrs, check_lface): Check consistency of | |
9723 | Lisp face attributes. | |
9724 | ||
9725 | 1998-04-19 Gerd Moellmann <gerd@gnu.org> | |
9726 | ||
9727 | * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold | |
9728 | and :italic for compatibility. | |
9729 | (Finternal_set_lisp_face_attribute_from_resource): Handle | |
9730 | :bold and :italic. Handle boolean resource values for | |
9731 | :underline and :italic. | |
9732 | ||
9733 | * xfns.c (display_x_get_resource): Make it externally visible. | |
9734 | ||
9735 | * xfaces.c (lface_from_symbol): Take a frame as parameter. | |
9736 | If that frame is non-null, return the frame-local face. | |
9737 | (Finternal_make_lisp_face): Additional frame argument. | |
9738 | (lface_attributes): Get face attributes from global and frame-local | |
9739 | definitions. | |
9740 | (Finternal_lisp_face_equal_p): Additional frame argument. | |
9741 | (merge_lisp_face_vector_with_property): Ditto. | |
9742 | (Frealize_basic_faces): Removed. | |
9743 | (Finternal_get_lisp_face_attribute): Additional frame argument. | |
9744 | (Finternal_lisp_face_p): Ditto. | |
9745 | (load_color) [MSDOS]: Removed because it isn't clear how | |
9746 | to do this for MS-DOS. | |
9747 | ||
9748 | * xfaces.c (lface_from_symbol): Get global face definition | |
9749 | from face-global-alist. | |
9750 | ||
9751 | * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t' | |
9752 | as values for :underline and :inverse-video. | |
9753 | (Finternal_set_lisp_face_attribute): Allow nil values. | |
9754 | ||
9755 | 1998-04-17 Gerd Moellmann <gerd@gnu.org> | |
9756 | ||
9757 | * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector. | |
9758 | ||
9759 | * xfaces.c (syms_of_xfaces): Add Vall_faces. | |
9760 | (Finternal_make_lisp_face): Add new face to Vall_faces. | |
9761 | ||
9762 | * xdisp.c (echo_area_display): Remove code recomputing faces. | |
9763 | (redisplay_internal): Ditto. | |
9764 | (init_iterator): Do it here. | |
9765 | ||
9766 | * xfaces.c (choose_face_font): Check that swidth doesn't change | |
9767 | for subusequent attributes. | |
9768 | (xlfd_point_size): Return int. | |
9769 | ||
9770 | * xdisp.c (redisplay_internal, echo_area-display): If realized | |
9771 | faces have been cleared, call recompute_basic_faces. | |
9772 | ||
9773 | * xfaces.c (recompute_basic_faces): Free realized faces. Reset | |
9774 | face_attributes_changed_p. | |
9775 | (remove_all_realized_faces): Remove all realized faces on | |
9776 | all frames. | |
9777 | (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces. | |
9778 | ||
9779 | * xdisp.c (redisplay_internal): If face attributes have been | |
9780 | changed since the last redisplay, recompute basic faces. | |
9781 | (echo_area_display): Ditto. | |
9782 | ||
9783 | * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache. | |
9784 | ||
9785 | * xfaces.c (min_char_bounds): If face cache not yet present, | |
9786 | don't try to get font dimensions from faces. | |
9787 | ||
9788 | * xterm.c (x_frame_mode_line_height): If face cache not present | |
9789 | set, return default height. | |
9790 | ||
9791 | * alloc.c (mark_face_cache): Check for null faces. Correct | |
9792 | index bug. | |
9793 | ||
9794 | * dispextern.h (struct face): Renamed from struct rface. Member | |
9795 | underline renamed underline_p. Make it a bit-field. | |
9796 | ||
9797 | * xfaces.c (init_frame_faces): Allocate face cache. | |
9798 | (free_frame_faces): Free face cache. | |
9799 | (recompute_basic_faces): Realize basic faces only if face cache is | |
9800 | allocated, i.e. after init_frame_faces has been called. | |
9801 | ||
9802 | * frame.c (make_frame): Initialze face cache with null. | |
9803 | ||
9804 | * xfaces.c (same_size_fonts): Removed. | |
9805 | ||
9806 | * xterm.c (x_set_glyph_string_gc): Add post-condition | |
9807 | s->gc != 0. | |
9808 | (x_set_mouse_face_gc): Ditto. | |
9809 | (x_set_mode_line_face_gc): Ditto. | |
9810 | ||
9811 | * xfaces.c (realize_default_face): Return int. Value is | |
9812 | zero if frame params don't contain enough information to | |
9813 | realize the default face. | |
9814 | (realize_basic_faces): Ditto. | |
9815 | (init_frame_faces): Realize basic faces. | |
9816 | ||
9817 | * xfns.c (x_set_font): First store real font name in frame | |
9818 | parameters, then call recompute_basic_faces. | |
9819 | ||
9820 | * xfaces.c (recompute_basic_faces): Call realize_basic_faces. | |
9821 | ||
9822 | 1998-04-16 Gerd Moellmann <gerd@gnu.org> | |
9823 | ||
9824 | * xfaces.c (syms_of_xfaces): Correct calls to defsubr. | |
9825 | ||
9826 | * xfns.c (Fx_face_fixed_p): Removed. | |
9827 | (Fx_list_fonts): Moved to xfaces.c. | |
9828 | ||
9829 | * xfaces.c (compute_face_at_buffer_pos): Renamed to | |
9830 | face_at_buffer_position. Parameter charset removed; always | |
9831 | compute face for CHARSET_ASCII. | |
9832 | (face_at_string_position): Renamed from | |
9833 | compute_face_at_string_pos. Parameter charset removed; always | |
9834 | compute for CHARSET_ASCII. | |
9835 | (lookup_face_for_charset): Take frame parameter instead of | |
9836 | face_cache. | |
9837 | (lookup_face): Ditto. | |
9838 | (compute_char_face): Renamed from compute_glyph_face. | |
9839 | ||
9840 | * xdisp.c (init_iterator): Initialize charset member. | |
9841 | (reseat_iterator_to_string): Ditto. | |
9842 | (get_charset_at_buffer_position): Determine charset at | |
9843 | buffer position in current_buffer. | |
9844 | (reseat_iterator): Call above function. | |
9845 | (compute_face_at_iterator_position): Call | |
9846 | compute_face_at_buffer_pos. | |
9847 | (compute_face_at_iterator_string_position): Call | |
9848 | compute_face_at_string_pos. | |
9849 | (get_face_from_id): Removed. | |
9850 | (get_face_from_cursor_pos): Call compute_face_at_buffer_pos. | |
9851 | Call get_charset_at_buffer_position. | |
9852 | (reseat_iterator): Determine face if charset at pos differs | |
9853 | from iterator's charset. | |
9854 | (reseat_iterator_to_glyph_pos): Removed. | |
9855 | ||
9856 | * xfaces.c (compute_face_at_bufpos): Remove parameter charset. | |
9857 | Determine charset from buffer position. | |
9858 | (compute_string_char_face): Renamed to compute_face_at_string_pos. | |
9859 | (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos. | |
9860 | ||
9861 | * dispextern.h (struct display_iterator): Add member charset. | |
9862 | ||
9863 | 1998-04-15 Gerd Moellmann <gerd@gnu.org> | |
9864 | ||
9865 | * xfaces.c (compute_char_face): Removed. | |
9866 | ||
9867 | * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face | |
9868 | with new parameter list. | |
9869 | ||
9870 | * xfaces.c (region_face): Removed. | |
9871 | (allocate_face): Removed. | |
9872 | (copy_face): Ditto. | |
9873 | (face_eql): Removed. | |
9874 | (intern_face): Removed. | |
9875 | (clear_face_cache): Removed. | |
9876 | (load_font): Ditto. | |
9877 | (unload_font): Ditto. | |
9878 | (load_color): Ditto. | |
9879 | (unload_color): Ditto. | |
9880 | (new_computed_face): Ditto. | |
9881 | (intern_computed_face): Ditto. | |
9882 | (ensure_face_ready): Ditto. | |
9883 | (merge_faces): Ditto. | |
9884 | (compute_base_face): Ditto. | |
9885 | (merge_face_list): Ditto. | |
9886 | (Fmake_face_internal): Removed. | |
9887 | (Fset_face_attribute_internal): Ditto. | |
9888 | (face_name_id_number): Removed. | |
9889 | (Fframe_face_alist): Ditto. | |
9890 | (Fset_frame_face_alist): Ditto. | |
9891 | (Finternal_next_face_id): Ditto. | |
9892 | ||
9893 | * xterm.h (struct x_output): Remove computed_faces, and | |
9894 | param_faces. Remove macros accessing them. | |
9895 | ||
9896 | * xfaces.c: Entirely new face implementation added. | |
9897 | ||
9898 | 1998-04-11 Gerd Moellmann <gerd@gnu.org> | |
9899 | ||
9900 | * dispextern.h (struct glyph_pos): Member `bufpos' renamed | |
9901 | `charpos'. | |
9902 | ||
9903 | 1998-04-10 Gerd Moellmann <gerd@gnu.org> | |
9904 | ||
9905 | * xterm.c (x_scroll_bar_move): Clear only regions not covered by | |
9906 | scroll bar window to reduce flickering. Clear entire height. | |
9907 | ||
9908 | * xdisp.c (move_iterator_vertically_backward): Set iterator's | |
9909 | current_x and hpos to zero after moving to previous line | |
9910 | start. | |
9911 | ||
9912 | 1998-04-03 Gerd Moellmann <gerd@gnu.org> | |
9913 | ||
9914 | * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache. | |
9915 | ||
9916 | * xfaces.c (xlfd_point_size): Compute relative point size of | |
9917 | fonts from font and frame resolution. | |
9918 | (sort_fonts): New function to sort fonts, temporarily setting | |
9919 | font_frame to the frame in effect. | |
9920 | (xlfd_point_size): Take additional frame parameter to be able | |
9921 | to get at the display's resolution. | |
9922 | ||
9923 | * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and | |
9924 | BLACK_PIX_DEFAULT. | |
9925 | (x_setup_relief_color): Use FRAME_X_SCREEN instead of default | |
9926 | screen of display. | |
9927 | ||
9928 | 1998-03-31 Gerd Moellmann <gerd@gnu.org> | |
9929 | ||
9930 | * xfaces.c (choose_face_fontset): Instantiate fontsets. | |
9931 | ||
9932 | * fontset.h: Add external declarations for Vfontset_alias_alist | |
9933 | and Vglobal_fontset_alist. | |
9934 | ||
9935 | * xfaces.c (merge_lisp_face_vector_with_property): Simplified. | |
9936 | (realize_default_face): If frame parameters contain an artificial | |
9937 | font name naming a fontset, set the family of the default face to | |
9938 | the fontset name given by the registry. | |
9939 | ||
9940 | * Makefile.in (alloc.o): Add dependency to dispextern.h. | |
9941 | ||
9942 | 1998-03-22 Gerd Moellmann <gerd@gnu.org> | |
9943 | ||
9944 | * alloc.c (mark_object): Add function prototype. Add cast to | |
9945 | Lisp_Object pointer in call to mark_object for symbol names | |
9946 | because this otherwise gives a warning from gcc 2.8.1. | |
9947 | (mark_face_cache): Mark Lisp objects in realized faces. | |
9948 | ||
9949 | 1998-03-19 Gerd Moellmann <gerd@gnu.org> | |
9950 | ||
9951 | * frame.h (struct frame): Add member face_cache. | |
9952 | ||
9953 | * alloc.c (mark_object): Mark face cache. | |
9954 | (mark_face_cache): Mark Lisp faces in face cache of frame. | |
9955 | ||
9956 | * frame.c (make_frame): Initialize face_cache. | |
9957 | (Fdelete_frame): Free it. | |
9958 | ||
9959 | 1998-03-18 Gerd Moellmann <gerd@gnu.org> | |
9960 | ||
9961 | * xfaces.c: Very first skeleton of functions for face realization, | |
9962 | face merging, face cache etc. | |
9963 | ||
9964 | * dispextern.h (struct rface): Realized faces. Will replace | |
9965 | struct face when tested. | |
9966 | (struct face_cache): Realized face caches. | |
9967 | ||
9968 | * xdisp.c (init_iterator): Initialize area member of display | |
9969 | iterator. | |
9970 | ||
9971 | 1998-03-17 Gerd Moellmann <gerd@gnu.org> | |
9972 | ||
9973 | * xterm.c (x_append_glyph): Use it->area to store glyphs. | |
9974 | ||
9975 | * dispextern.h (struct display_iterator): New member area. | |
9976 | ||
9977 | * xterm.c (note_overwritten_text_cursor): Note when the text | |
9978 | cursor of a window is overwritten. | |
9979 | ||
9980 | * xdisp.c (set_cursor_from_row): If PT is not found in the | |
9981 | row, display the cursor at the start of the row. | |
9982 | ||
9983 | * dispnew.c (direct_output_forward_char): Call | |
9984 | set_cursor_from_row. | |
9985 | ||
9986 | * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If | |
9987 | position is not in an overlay string, set iterator's position and | |
9988 | method explicitly so. | |
9989 | (set_cursor_from_row): Correct cursor position calculation. | |
9990 | Make it externally visible. | |
9991 | (redisplay_window): Call set_cursor_from_row so that there is only | |
9992 | one place where the cursor position is calculated from a current | |
9993 | row. | |
9994 | ||
9995 | * dispextern.h (struct display_iterator): New member | |
9996 | overlay_strings_at_end_processed_p. | |
9997 | ||
9998 | * xdisp.c (check_iterator): Perform sanity checks on | |
9999 | display_iterators. | |
10000 | (next_element_from_buffer): Check for overlay strings at ZV. | |
10001 | ||
10002 | 1998-03-16 Gerd Moellmann <gerd@gnu.org> | |
10003 | ||
10004 | * buffer.c (init_buffer_once): Add left_margin_width and | |
10005 | right_margin_width to buffer_local_flags. | |
10006 | ||
10007 | * dispnew.c (margin_glyphs_to_reserve): Function computing | |
10008 | number of glyphs to reserve for a marginal area. | |
10009 | (adjust_glyph_matrix): Call it. | |
10010 | (adjust_frame_glyphs_for_frame_redisplay): Return if frame | |
10011 | is not alive. | |
10012 | ||
10013 | * window.c (Fset_window_margins): Allow floats. | |
10014 | ||
10015 | * buffer.c (syms_of_buffer): Add buffer-local variables | |
10016 | left-margin-width and right-margin-width. Add defaults | |
10017 | default-left-margin-width and default-right-margin-width. | |
10018 | ||
10019 | * buffer.h (struct buffer): New members left_margin_width | |
10020 | and right_margin_width. | |
10021 | ||
10022 | * window.c (Fset_window_margins): Make window the last and | |
10023 | optional argument. | |
10024 | ||
10025 | * xterm.c (x_draw_glyphs): Compute x-positions for rows with | |
10026 | flag no_marginal_areas_p differently. | |
10027 | (x_clear_end_of_line): Ditto. | |
10028 | (x_draw_glyph_string_relief): Compute width of relief differently | |
10029 | for rows with flag no_marginal_areas_p. | |
10030 | ||
10031 | * dispnew.c (update_window_line): Update marginal areas only | |
10032 | for rows that don't have no_marginal_areas_p set. | |
10033 | ||
10034 | * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p. | |
10035 | (display_menu_bar): Ditto. | |
10036 | ||
10037 | * dispextern.h (struct glyph_row): New member no_marginal_areas_p. | |
10038 | ||
10039 | * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for | |
10040 | marginal areas in window-based redisplay. | |
10041 | ||
10042 | * dispextern.h (struct glyph_matrix): New members | |
10043 | left_margin_glyphs and right_margin_glyphs. | |
10044 | ||
10045 | 1998-03-15 Gerd Moellmann <gerd@gnu.org> | |
10046 | ||
10047 | * minibuf.c (read_minibuf_unwind): Return Lisp_Object. | |
10048 | ||
10049 | * charset.c (non_ascii_char_to_string): Use char type parameters | |
10050 | because the function is used that way from outside. Use unsigned | |
10051 | char internally. | |
10052 | ||
10053 | * window.c (change_window_height): Return void. | |
10054 | (make_dummy_parent): Return void. | |
10055 | (init_window_once): Return void. | |
10056 | (syms_of_window): Ditto. | |
10057 | (keys_of_window): Ditto. | |
10058 | (delete_window): Correct return with and without value. | |
10059 | ||
10060 | * buffer.c (record_buffer): Return void. | |
10061 | ||
10062 | * marker.c (unchain_marker): Return void. | |
10063 | ||
10064 | * window.c (unshow_buffer): Return void. | |
10065 | (replace_window): Ditto. | |
10066 | (delete_window): Ditto. | |
10067 | ||
10068 | * term.c (delete_glyphs_hook): Void return type. | |
10069 | (ring_bell_hook): Ditto. | |
10070 | (set_terminal_window_hook): Ditto. | |
10071 | ||
10072 | * sysdep.c (init_sigio): Return void. | |
10073 | ||
10074 | * xterm.c (x_set_window_size): Return void. | |
10075 | (x_calc_absolute_position): Ditto. | |
10076 | (x_set_offset): Ditto. | |
10077 | (x_focus_on_frame): Ditto. | |
10078 | (x_unfocus_frame): Ditto. | |
10079 | (x_make_frame_visible): Ditto. | |
10080 | (x_make_frame_invisible): Ditto. | |
10081 | (x_iconify_frame): Ditto. | |
10082 | (x_destroy_window): Ditto. | |
10083 | (x_wm_set_window_state): Ditto. | |
10084 | (x_wm_set_icon_pixmap): Ditto. | |
10085 | (x_wm_set_icon_position): Ditto. | |
10086 | (x_initialize): Ditto. | |
10087 | (x_error_quitter): Ditto. | |
10088 | (x_destroy_window): Use xfree instead of free. | |
10089 | ||
10090 | * keyboard.c (clear_waiting_for_input): Return void. | |
10091 | ||
10092 | * xterm.c (x_wm_set_size_hint): Return void. | |
10093 | (x_raise_frame): Ditto. | |
10094 | (refreshicon): Ditto. | |
10095 | (x_error_catcher): Ditto. | |
10096 | (x_clear_errors): Ditto. | |
10097 | ||
10098 | * keyboard.c (record_asynch_buffer_change): Return void. | |
10099 | ||
10100 |