Commit | Line | Data |
---|---|---|
e0a09e1a KH |
1 | 2000-01-04 Kenichi Handa <handa@etl.go.jp> |
2 | ||
c989b7be | 3 | * term.c (encode_terminal_code): Fix previous change. |
e0a09e1a | 4 | |
44cd3ae5 GM |
5 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
6 | ||
7 | * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to | |
8 | Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p. | |
9 | ||
10 | * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU. | |
11 | ||
c182a70f EZ |
12 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
13 | ||
14 | * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No | |
15 | need to test for MSDOS frames. | |
16 | ||
24480d5b EZ |
17 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
18 | ||
19 | * dosfns.c (unspecified_colors): Remove. | |
20 | (msdos_stdcolor_idx): Use global variables unspecified_fg and | |
21 | unspecified_bg. | |
22 | (msdos_stdcolor_name): Return strings for unspecified fore- and | |
23 | back-ground colors. | |
24 | ||
25 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove. | |
26 | (syms_of_xfaces): Remove theit staticpro's. | |
27 | (tty_color_name): Return Lisp strings for unspecified fore- and | |
28 | back-ground colors. | |
29 | (Finternal_set_lisp_face_attribute): Remove the special treatment | |
30 | for Qunspecified_{f,b}g. | |
31 | (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp | |
32 | string. | |
33 | ||
047f434a GM |
34 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
35 | ||
36 | * xdisp.c (reseat_at_next_visible_line_start): Position before | |
37 | newline only if ending up on a newline. | |
38 | (next_element_from_ellipsis): Return success. Handle case of | |
39 | displaying no ellipsis. Fix case of ellipsis defined in display | |
40 | table. | |
41 | (next_element_from_buffer): Return 0 if next_element_from_ellipsis | |
42 | returns 0. | |
43 | ||
d684c676 EZ |
44 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
45 | ||
46 | * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p. | |
47 | (Fcolor_supported_p): Renamed from face-color-supported-p. | |
48 | ||
5fe1d139 EZ |
49 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
50 | ||
51 | * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The | |
52 | list of colors renamed to tty-defined-color-alist. | |
53 | (tty_color_name): Pass the frame to tty-color-by-index. | |
54 | (realize_tty_face): tty-color-alist is now a function which | |
55 | accepts the frame as argument. | |
56 | ||
57 | * term.c (Ftty_display_color_p): Accept an optional argument | |
58 | FRAME. | |
59 | ||
816be8b8 EZ |
60 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
61 | ||
62 | * term.c (insert_glyphs): Pass glyph, not &glyph, to | |
63 | encode_terminal_code. | |
64 | ||
b635321e EZ |
65 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
66 | ||
67 | * dispnew.c (mode_line_string): Support termcap frames as well. | |
68 | ||
9b784e96 GM |
69 | 2000-01-01 Gerd Moellmann <gerd@gnu.org> |
70 | ||
27189709 GM |
71 | * syntax.c (Fforward_word): Undo previous change. |
72 | ||
73 | * editfns.c (Fconstrain_to_field): Don't constrain if | |
74 | inhibit-field-text-motion is non-nil. | |
75 | (Fline_beginning_position): Undo previous change. | |
76 | (Fline_end_position): Ditto. | |
77 | ||
78 | * syntax.c (Fforward_word): Notice field boundaries only if | |
79 | inhibit-field-text-motion is nil. | |
80 | ||
81 | * lisp.h: Add extern declaration for Vinhibit_field_text_motion. | |
82 | ||
83 | * editfns.c (Vinhibit_field_text_motion): New variable. | |
84 | (inhibit-field-text-motion): New DEFVAR_LISP. | |
85 | (Fline_beginning_position, Fline_end_position): Notice field | |
86 | boundaries only if inhibit-field-text-motion is nil. | |
87 | ||
45158a91 GM |
88 | * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE. |
89 | All calls adjusted. | |
90 | (x_build_heuristic_mask): Likewise. | |
91 | (xbm_load_image_from_file): Change error output. | |
92 | (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load) | |
93 | (gif_load, gs_load, x_kill_gs_process): Ditto. | |
94 | ||
9b784e96 GM |
95 | * xfns.c (gif_load): Avoid sign extension and thus out of bounds |
96 | color indices when accessing raster pixels. | |
63cec32f GM |
97 | (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only |
98 | one of :file or :data. | |
99 | (enum pbm_keyword_index): Add PBM_DATA. | |
100 | (pbm_format): Add :data. | |
101 | (pbm_image_p): Allow either :file or :data. | |
102 | (pbm_read_file): New function. | |
103 | (pbm_scan_number): Rewritten to read from string. | |
104 | (pbm_load): Support :data. | |
9b784e96 | 105 | |
5ad6a5fb GM |
106 | 1999-12-31 Gerd Moellmann <gerd@gnu.org> |
107 | ||
108 | * xfns.c: New image functions adapted to Emacs conventions. | |
109 | (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local | |
110 | variable `file'. | |
111 | ||
63448a4d WP |
112 | 1999-12-31 William M. Perry <wmperry@aventail.com> |
113 | ||
114 | * xfns.c (jpeg_format): Added the :data keyword | |
115 | (jpeg_image_p): JPEG is valid with :file _or_ :data | |
116 | (jpeg_memory_src): Defined new JPEG image source to read from a | |
117 | memory buffer. | |
118 | (jpeg_load): Pay attention to the :data keyword if specified. | |
119 | Instantiates a jpeg_memory_src instead of jpeg_stdio_src if | |
120 | found. | |
121 | (png_format): Added the :data keyword | |
122 | (png_image_p): PNG is valid with :file _or_ :data | |
123 | (png_read_from_memory): New PNG read function to read from a | |
124 | memory buffer. | |
125 | (png_load): Pay attention to the :data keyword if specified. Uses | |
126 | png_set_read_fn() instead of png_init_io() if specified. | |
127 | (tiff_format): Added the :data keyword for TIFF images. | |
128 | (tiff_image_p): TIFF is valid with :file _or_ :data | |
129 | (tiff_read_from_memory): Defined new TIFF I/O functions to read | |
130 | from a memory buffer. | |
131 | (tiff_load): Pay attention to the :data keyword if specified. | |
132 | Uses TIFFClientOpen() instead of TIFFOpen() if specified. | |
133 | (gif_format): Added the :data keyword | |
134 | (gif_image_p): GIF is valid with :file _or_ :data | |
135 | (gif_read_from_memory): New GIF input function to read from a | |
136 | memory buffer. | |
137 | (gif_load): Pay attention tot he :data keyword. Uses DGifOpen() | |
138 | instead of DGifOpenFileName() if specified. | |
139 | ||
c880678e GM |
140 | 1999-12-31 Gerd Moellmann <gerd@gnu.org> |
141 | ||
142 | * xdisp.c (next_element_from_buffer): Change assertion at the end | |
143 | because it doesn't hold when there's an overlay string at the end | |
144 | from which we deliver an image. | |
145 | ||
8ccb9a54 EZ |
146 | 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il> |
147 | ||
148 | * msdos.c (IT_update_begin): Don't dereference members of struct | |
149 | window for deleted windows. | |
150 | ||
12ce2351 GM |
151 | 1999-12-30 Gerd Moellmann <gerd@gnu.org> |
152 | ||
a915c648 GM |
153 | * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only |
154 | a hook, and the hook has a non-nil `no-self-insert' property, let | |
155 | the return value of the hook specify whether an expansion took | |
156 | place. If it returns nil, no expansion has been performed. | |
157 | ||
12ce2351 GM |
158 | * xterm.c (x_make_frame_visible): Wait for frame becoming visible |
159 | differently. | |
160 | ||
04ee4f45 EZ |
161 | 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il> |
162 | ||
163 | * msdos.c (IT_write_glyphs): Track last changes to struct glyph. | |
164 | ||
7f4bc0c3 EZ |
165 | 1999-12-29 Eli Zaretskii <eliz@is.elta.co.il> |
166 | ||
167 | * dispnew.c (mode_line_string): Support MS-DOS frames. | |
168 | ||
dac204bc GM |
169 | 1999-12-29 Gerd Moellmann <gerd@gnu.org> |
170 | ||
171 | * eval.c (syms_of_eval): Initialize debugger_may_continue. | |
172 | ||
7b712ad8 KH |
173 | 1999-12-29 Kenichi Handa <handa@etl.go.jp> |
174 | ||
175 | * process.c (read_process_output): Fix the args CHARPOS and LENINS | |
176 | to signal_after_change. | |
177 | ||
adb9900f EZ |
178 | 1999-12-28 Eli Zaretskii <eliz@is.elta.co.il> |
179 | ||
41ad069b EZ |
180 | * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame |
181 | dimensions changed, invalidate the mouse highlight info. | |
182 | (disable_mouse_highlight, help_echo, previous_help_echo): New | |
183 | variables. | |
184 | (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face) | |
185 | (fast_find_position, IT_note_mode_line_highlight) | |
186 | (IT_note_mouse_highlight): New functions. | |
187 | (IT_update_begin): If the redisplay affects the window where the | |
188 | mouse highlight is, clear the highlight. If the frame where the | |
189 | highlight was displayed was killed, invalidate the highlight | |
190 | info. | |
191 | (IT_update_end): Reset the highlight flag. Reset the mouse | |
192 | highlight-defer flag. | |
193 | (IT_frame_up_to_date): New function, if mouse highlight was | |
194 | deferred due to GC, do it now. | |
195 | (internal_terminal_init): Initialize mouse-highlight related | |
196 | members of the_only_x_display. Assign IT_frame_up_to_date to | |
197 | frame_up_to_date_hook. | |
198 | (dos_rawgetc): If the mouse moved, update mouse highlight. If | |
199 | help_echo changed value, generate a HELP_EVENT event. | |
200 | (syms_of_msdos): Staticpro help_echo and previous_help_echo. | |
201 | ||
adb9900f EZ |
202 | * msdos.h (struct display_info): New. |
203 | (struct x_output): Add the display_info member. | |
204 | (FRAME_X_DISPLAY_INFO): New macro. | |
205 | ||
481b5054 GM |
206 | 1999-12-28 Gerd Moellmann <gerd@gnu.org> |
207 | ||
208 | * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED | |
209 | if MODIFF > 1. | |
6448a6b3 | 210 | (dump_glyph_row): Adapt to changes in struct glyph. |
481b5054 GM |
211 | |
212 | * buffer.c (modify_overlay): Always compute unchanged info. | |
213 | ||
a2882b0d KH |
214 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
215 | ||
216 | * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'. | |
217 | ||
89ba5b5f KH |
218 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
219 | ||
220 | The following changes are to use more bits for face IDs. | |
221 | ||
222 | * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the | |
223 | lowest 8 bits are single byte character code, the bits above are | |
224 | face ID. | |
481b5054 | 225 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change |
89ba5b5f | 226 | above. |
481b5054 GM |
227 | (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise. |
228 | (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted. | |
89ba5b5f KH |
229 | |
230 | * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead | |
231 | of GLYPH_MASK_CHAR. | |
232 | ||
233 | * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead | |
234 | of GLYPH_MASK_CHAR. | |
235 | ||
236 | * dispextern.h (struct glyph): Make face_id and padding_p the top | |
237 | level members. Change members in union `u'. | |
238 | (GLYPH_EQUAL_P): Check also members face_id and padding_p. | |
239 | (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro. | |
240 | (SET_CHAR_GLYPH): Adjusted for the change of struct glyph. | |
241 | (CHAR_GLYPH_PADDING_P): Likewise. | |
242 | (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte | |
243 | characters. | |
244 | ||
481b5054 | 245 | * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted |
89ba5b5f KH |
246 | for the change of struct glyph. |
247 | (line_draw_cost): Adjusted for the change of | |
248 | GLYPH_FROM_CHAR_GLYPH. | |
249 | (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P. | |
250 | ||
251 | * term.c (encode_terminal_code): Adjusted for the change of struct | |
252 | glyph and GLYPH_FROM_CHAR_GLYPH. | |
481b5054 | 253 | (write_glyphs, insert_glyphs, append_glyph): Adjusted for the |
89ba5b5f KH |
254 | change of struct glyph. |
255 | ||
256 | * xdisp.c: All codes adjusted for the change of struct glyph. | |
257 | ||
258 | * xterm.c: All codes adjusted for the change of struct glyph. | |
259 | ||
5bcd116c KH |
260 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
261 | ||
262 | * composite.h (struct composition): Change the order of declaring | |
263 | members to reduce the byte size of the structure. | |
264 | ||
f21b06b7 GM |
265 | 1999-12-25 Gerd Moellmann <gerd@gnu.org> |
266 | ||
267 | * search.c (looking_at_1): Reset immediate_quit before modifying | |
268 | global data. | |
269 | ||
e36557c9 KH |
270 | 1999-12-24 Kenichi Handa <handa@etl.go.jp> |
271 | ||
272 | * process.c (read_process_output): Fix the arg FROM to | |
273 | update_compositions. | |
274 | ||
f7c9e039 RS |
275 | 1999-12-22 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
276 | ||
277 | * search.c (Freplace_match): For nonliteral replacement in buffer, | |
278 | construct all the new text first, then insert all at once. | |
279 | ||
0b863bd9 DL |
280 | 1999-12-22 Dave Love <fx@gnu.org> |
281 | ||
282 | * xfns.c (Fx_show_tip): Gcpro `timeout' too. | |
283 | ||
6d8e8ef3 GM |
284 | 1999-12-22 Gerd Moellmann <gerd@gnu.org> |
285 | ||
28d7281d GM |
286 | * xfns.c (Fx_create_frame): Move x_default_parameter calls that |
287 | lead to size changes to after the X window has been created. | |
288 | ||
e22ef6eb | 289 | * xfaces.c (realize_x_face): Don't use uninitialized local |
6d8e8ef3 GM |
290 | variable in xassert. |
291 | ||
8affcced KH |
292 | 1999-12-22 Kenichi Handa <handa@etl.go.jp> |
293 | ||
294 | * xfaces.c (face_color_supported_p): Check by tty_defined_color | |
6d8e8ef3 | 295 | only when the frame is not for a window system. |
8affcced | 296 | |
f2be1146 GM |
297 | 1999-12-22 Gerd Moellmann <gerd@gnu.org> |
298 | ||
deca1348 GM |
299 | * buffer.c (Fset_buffer_multibyte): Arrange for a thorough |
300 | redisplay after changing the multibyteness of a buffer. | |
301 | ||
f2be1146 GM |
302 | * xterm.c (XTread_socket): At the beginning of the loop, pass the |
303 | frame's X window to XFilterEvent instead of None because that's | |
304 | the X window for which the IC was created. This makes dead | |
305 | accents work when the pointer is not in Emacs' frame. | |
306 | (XTread_socket) <KeyPress>: Don't call XFilterEvent here. | |
307 | ||
a744a2ec DL |
308 | 1999-12-20 Dave Love <fx@gnu.org> |
309 | ||
310 | * xfns.c (Fx_show_tip): Add missing UNGCPRO. | |
311 | ||
9e6985ed GM |
312 | 1999-12-19 Gerd Moellmann <gerd@gnu.org> |
313 | ||
314 | * eval.c (debugger_may_continue): New variable. | |
315 | (syms_of_eval): Add a DEFVAR_BOOL for it. | |
316 | (call_debugger): Bind it. | |
317 | ||
3b620731 EZ |
318 | 1999-12-19 Eli Zaretskii <eliz@is.elta.co.il> |
319 | ||
320 | * msdos.c (IT_set_face): Don't swap face colors when highlight or | |
321 | fp->tty_reverse_p is set, unless the computed colors are identical | |
322 | to frame colors. Print both original and computed colors to | |
323 | termscript file. | |
324 | (IT_write_glyphs): Track the changes in handling of composite | |
325 | characters. | |
326 | (IT_set_frame_parameters): Don't set frame colors from | |
327 | unspecified-fg and unspecified-bg pseudo-colors. | |
328 | ||
0f9a51c4 DL |
329 | 1999-12-17 Dave Love <fx@gnu.org> |
330 | ||
331 | * data.c (Fkeywordp): New function. | |
332 | (syms_of_data): Install it. | |
333 | ||
363e4e42 EZ |
334 | 1999-12-16 Eli Zaretskii <eliz@is.elta.co.il> |
335 | ||
336 | * xfaces.c (tty_defined_color): Fix last change. | |
337 | ||
cfad01b4 GM |
338 | 1999-12-15 Gerd Moellmann <gerd@gnu.org> |
339 | ||
340 | * xdisp.c (redisplay_window) <optional new window start>: Check | |
341 | that window start is in [BEGV..ZV]. | |
342 | ||
f9d2fdc4 EZ |
343 | 1999-12-15 Eli Zaretskii <eliz@is.elta.co.il> |
344 | ||
345 | * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR) | |
346 | (FACE_TTY_DEFAULT_BG_COLOR): New macros. | |
347 | ||
348 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables. | |
349 | (syms_of_xfaces): Initialize and staticpro them. | |
350 | (tty_defined_color): If the color name is unspecified-fg or | |
351 | unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and | |
352 | FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value. | |
353 | (tty_color_name): If the color pixel value is either | |
354 | FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return | |
355 | Qunspecified_fg or Qunspecified_bg, respectively. | |
356 | (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg | |
357 | and Qunspecified_bg for foreground and background colors. | |
358 | (realize_default_face): If the foreground and background colors | |
359 | are not specified, default to Qunspecified_fg and Qunspecified_bg. | |
360 | (realize_tty_face): By default, set the face colors to | |
361 | FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR. | |
362 | [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and | |
363 | FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined. | |
364 | Reverse the colors if the default colors were reversed. | |
365 | ||
366 | * dispnew.c (init_display): Initialize the frame pixels of the | |
367 | initial frame to FACE_TTY_DEFAULT_FG_COLOR and | |
368 | FACE_TTY_DEFAULT_BG_COLOR. | |
369 | ||
370 | * term.c (turn_on_face): If the default fore- and background | |
371 | colors are reversed, enter inverse video mode. Don't send color | |
372 | escape sequences for unspecified foreground and background colors. | |
373 | (turn_off_face): Handle unspecified-fg and unspecified-bg colors. | |
374 | ||
375 | * dosfns.c (unspecified_colors): New variable. | |
376 | (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg | |
377 | color names, return FACE_TTY_DEFAULT_FG_COLOR and | |
378 | FACE_TTY_DEFAULT_BG_COLOR, respectively. | |
379 | (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and | |
380 | FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and | |
381 | Qunspecified_bg, respectively. | |
382 | ||
383 | * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and | |
384 | FACE_TTY_DEFAULT_BG_COLOR as pixel values. | |
385 | ||
e19539f1 KH |
386 | 1999-12-15 Kenichi Handa <handa@etl.go.jp> |
387 | ||
388 | * coding.c (code_convert_region): Fix the secoding arg to | |
389 | update_compositions. | |
390 | ||
5ec14d3c KH |
391 | 1999-12-15 Kenichi Handa <handa@etl.go.jp> |
392 | ||
393 | The following changes are for the new composition mechanism. We | |
394 | have deleted `composition' charset and composite characters, | |
395 | instead introduced a special text property `composition'. | |
396 | ||
397 | * Makefile.in (INTERVAL_SRC): Include composite.h. | |
398 | (INTERVAL_OBJ): Include composite.o. | |
399 | (SOME_MACHINE_OBJECTS): Include composite.o. | |
400 | (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o) | |
401 | (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o): | |
402 | Depend on composite.h. | |
403 | (doc.o): Depend on charset.h. | |
404 | (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC. | |
405 | (composite.o): New target. | |
406 | ||
407 | * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING. | |
408 | ||
409 | * callproc.c (Fcall_process): Call code_convert_string to encode | |
410 | arguments. Use CODING_REQUIRE_DECODING to check if the process | |
411 | output should be decoded. | |
412 | ||
413 | * casefiddle.c: Include composite.h. | |
414 | (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a | |
415 | multibyte character. Adjusted for the change of CHAR_STRING. | |
416 | (casify_region): Likewise. Call update_compositions. | |
417 | ||
418 | * category.h (CATEGORY_SET): Delete codes for a composite | |
419 | character. | |
420 | ||
421 | * category.c (word_boundary_p): Delete codes for a composite | |
422 | character. | |
423 | (Fmake_category_table): New function. | |
424 | (syms_of_category): Defsubr it. | |
425 | ||
426 | * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING. | |
427 | (ccl_driver): Delete codes for a composite character. | |
428 | ||
429 | * charset.h: In this entry, just `Modified' means that codes for a | |
430 | composite character is deleted. | |
431 | (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION) | |
432 | (charset_composition) (MIN_CHAR_COMPOSITION) | |
433 | (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR) | |
434 | (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID) | |
435 | (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted. | |
436 | (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT) | |
437 | (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR) | |
438 | (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P): | |
439 | Modified. | |
440 | (SPLIT_STRING): Call split_string, not split_non_ascii_string. | |
441 | (CHAR_STRING): Delete WORKBUF argument. Call char_string, not | |
442 | non_ascii_char_to_string. | |
443 | (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char. | |
444 | (STRING_CHAR_AND_LENGTH): Likewise. | |
445 | (FETCH_CHAR_ADVANCE): New macro. | |
446 | (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted. | |
447 | (MAX_MULTIBYTE_LENGTH): New macro. | |
448 | (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted. | |
449 | (find_charset_in_str): Argument adjusted. | |
450 | (CHAR_LEN): Modified. | |
451 | ||
452 | * charset.c: In this entry, just `Modified' means that codes for a | |
453 | composite character is deleted. | |
454 | (Qcomposition) (leading_code_composition) | |
455 | (charset_composition) (min_composite_char) (cmpchar_table) | |
456 | (cmpchar_table_size) (n_cmpchars): Deleted. | |
457 | (SPLIT_COMPOSITE_SEQ): Deleted. | |
458 | (SPLIT_MULTIBYTE_SEQ): Modified. | |
459 | (char_to_string): Renamed from non_ascii_char_to_string. | |
460 | Modified. | |
461 | (string_to_char): Renamed from string_to_non_ascii_char. | |
462 | (split_string): Renamed from split_non_ascii_string. | |
463 | (char_printable_p) (Fsplit_char) | |
464 | (Ffind_charset_region) (Ffind_charset_string) (char_valid_p) | |
465 | (char_bytes) (Fchar_width) (strwidth): Modified. | |
466 | (find_charset_in_str): Argument CMPCHARP deleted. Modified. | |
467 | (Fstring): Adjusted for the change of CHAR_STRING. Modified. | |
468 | (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table) | |
469 | (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID) | |
470 | (str_cmpchar_id) (cmpchar_component) (Fcmpcharp) | |
471 | (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p) | |
472 | (Fcmpchar_cmp_count): Deleted. | |
473 | (Fcompose_string): Implemented by Emacs Lisp in composite.el. | |
474 | (init_charset_once): Modified. | |
475 | (syms_of_charset): Modified. | |
476 | ||
477 | * cmds.c (internal_self_insert): Adjusted for the change of | |
478 | CHAR_STRING. | |
479 | ||
480 | * coding.h (emacs_code_class_type): Delete the member | |
481 | EMACS_leading_code_composition. | |
482 | (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD) | |
483 | (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL) | |
484 | (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P) | |
485 | (COMPOSING_WITH_RULE_P): Macros deleted. | |
486 | (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New | |
487 | macros. | |
488 | (struct composition_data): New structure. | |
489 | (CODING_FINISH_INSUFFICIENT_CMP): New macro. | |
490 | (struct coding_system): New members composition_rule_follows, | |
491 | cmp_data, cmp_data_start, cmp_data_index. | |
492 | (coding_save_composition) (coding_free_composition_data) | |
493 | (coding_adjust_composition_offset): Extern them. | |
494 | ||
495 | * coding.c: Include composite.h. | |
496 | (DECODE_CHARACTER_ASCII): Don't handle composition here. | |
497 | (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity | |
498 | of multibyte code here. | |
499 | (DECODE_CHARACTER_DIMENSION2): Likewise. | |
500 | (detect_coding_emacs_mule): Change the case label from | |
501 | EMACS_leading_code_composition to 0x80. | |
502 | (detect_coding_iso2022): Handle new composition sequence. | |
503 | (DECODE_ISO_CHARACTER): Likewise. | |
504 | (check_composing_code): Deleted. | |
505 | (coding_allocate_composition_data): New function. | |
506 | (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END) | |
507 | (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START) | |
508 | (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros. | |
509 | (decode_coding_iso2022): Handle new composition sequence. | |
510 | (ENCODE_ISO_CHARACTER): Don't check composition here. | |
511 | (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros. | |
512 | (ENCODE_COMPOSITION_NO_RULE_START) | |
513 | (ENCODE_COMPOSITION_WITH_RULE_START): Deleted. | |
514 | (ENCODE_COMPOSITION_END): Handle new composition sequence. | |
515 | (ENCODE_COMPOSITION_FAKE_START): New macro. | |
516 | (encode_coding_iso2022): Handle new composition sequence. | |
517 | (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail. | |
518 | (encode_coding_sjis_big5): Ignore composition. | |
519 | (setup_coding_system): Initialize new members of struct | |
520 | coding_system. Enable composition only when the coding system has | |
521 | `composition' property t. | |
522 | (coding_free_composition_data) (coding_adjust_composition_offset) | |
523 | (coding_save_composition) (coding_restore_composition): New | |
524 | functions. | |
525 | (code_convert_region): Call coding_save_composition for encoding | |
526 | and coding_allocate_composition_data for decoding. Don't skip | |
527 | ASCII characters if we handle composition on encoding. Call | |
528 | signal_after_change with Check_BORDER. | |
529 | (code_convert_string): Call coding_save_composition for encoding | |
530 | and coding_allocate_composition_data for decoding. Don't skip | |
531 | ASCII characters if we handle composition on encoding. | |
532 | (code_convert_string1): Set Vlast_coding_system_used after calling | |
533 | code_convert_string. | |
534 | (code_convert_string_norecord): Disable composition. | |
535 | (Fset_terminal_coding_system_internal): Likewise. | |
536 | (Fset_safe_terminal_coding_system_internal): Likewise. | |
537 | (Fset_keyboard_coding_system_internal): Likewise. | |
538 | (init_coding_once): Set emacs_code_class[0x80] to | |
539 | EMACS_invalid_code. | |
540 | ||
541 | * composite.h: New file. | |
542 | ||
543 | * composite.c: New file. | |
544 | ||
545 | * data.c (Faref): Delete codes for a composite character.. | |
546 | (Faset): Likewise. Adjusted for the change of CHAR_STRING. | |
547 | ||
548 | * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH. | |
549 | (struct glyph): Add new sub-structure cmp to the union `u'. | |
550 | (enum display_element_type): New member IT_COMPOSITION. | |
551 | (enum prop_idx): New member COMPOSITION_PROP_IDX. | |
552 | (struct it): New members cmp_id, cmp_len. | |
553 | ||
554 | * dispnew.c (direct_output_forward_char): Check point moving into | |
555 | or out of a composition. If so, give up direct method. | |
556 | ||
557 | * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING. | |
558 | ||
559 | * editfns.c (Fchar_to_string): Adjusted for the change of | |
560 | CHAR_STRING. | |
561 | (general_insert_function): Likewise. | |
562 | (Finsert_char): Likewise. | |
563 | (Fsubst_char_in_region): Likewise. Call update_compositions. | |
564 | (Ftranslate_region): Call update_compositions. | |
565 | (Ftranspose_regions): Call update_compositions. | |
566 | ||
567 | * emacs.c (main): Call syms_of_composite. | |
568 | ||
569 | * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of | |
570 | CHAR_STRING. | |
571 | (Finsert_file_contents): Set Vlast_coding_system_used before | |
572 | calling signal_after_change. Call update_compositions if some | |
573 | texts are inserted.. | |
574 | (Fwrite_region): Adjusted for the change of a_write and e_write. | |
575 | (a_write): Argument changed. Work based on character position, | |
576 | not byte position. | |
577 | (e_write): Argument changed. Handle new way of composition. | |
578 | ||
579 | * fns.c (Flength): The length of char-table is MAX_CHAR. | |
580 | (concat): Adjusted for the change of CHAR_STRING. | |
581 | (Ffillarray): Adjusted for the change of CHAR_STRING. | |
582 | (Fset_char_table_default): Delete codes for a composite character. | |
583 | (hash_put): Return hash index. | |
584 | ||
585 | * fontset.h (struct font_info): New member vertical_centering. | |
586 | (Vvertical_centering_font_regexp): Extern it. | |
587 | ||
588 | * fontset.c (Vvertical_centering_font_regexp): New variable. | |
589 | (syms_of_fontset): Declare it as a Lisp variable and initialize. | |
590 | Set Vignore_relative_composition to nil. | |
591 | (fs_load_font): Initialize `vertical_centering' of struct | |
592 | font_info. | |
593 | ||
594 | * indent.c (check_composition): New function. | |
595 | (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with | |
596 | MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM. | |
597 | (current_column_1): Handle new way of composition. | |
598 | (Fmove_to_column): Likewise. | |
599 | (compute_motion): Likewise. | |
600 | ||
601 | * insdel.c (copy_text): Adjusted for the change of CHAR_STRING. | |
602 | (insert_char): Likewise. | |
603 | (insert): Call update_compositions. | |
604 | (insert_and_inherit): Likewise. | |
605 | (insert_before_markers): Likewise. | |
606 | (insert_before_markers_and_inherit): Likewise. | |
607 | (insert_from_string): Likewise. | |
608 | (insert_from_string_before_markers): Likewise. | |
609 | (insert_from_buffer): Likewise. | |
610 | (replace_range): Likewise. | |
611 | (count_combining_composition): Deleted. | |
612 | (count_combining_before): Delete codes for a composite character. | |
613 | (count_combining_after): Likewise. | |
614 | (del_range_1): Call update_compositions. | |
615 | (del_range_byte): Likewise. | |
616 | (del_range_both): Likewise. | |
617 | (Fcombine_after_change_execute): Likewise. | |
618 | ||
619 | * intervals.h: Include composite.h. | |
620 | (get_property_and_range): Extern it. | |
621 | (Vtext_property_default_nonsticky): Extern it. | |
622 | ||
623 | * intervals.c (adjust_intervals_for_insertion): To check stickines | |
624 | of properties, pay attention to text-property-default-nonsticky. | |
625 | (merge_properties_sticky): Likewise. | |
626 | (get_property_and_range): New function. | |
627 | ||
628 | * keyboard.c (Vdisable_point_adjustment): New variable. | |
629 | (Vglobal_disable_point_adjustment): New variable. | |
630 | (syms_of_keyboard): Declare them as Lisp variables. | |
631 | (command_loop_1): Check them and call adjust_point_for_property if | |
632 | necessary. | |
633 | (adjust_point_for_property): New function. | |
634 | ||
635 | * keymap.c (push_key_description): Adjusted for the change of | |
636 | CHAR_STRING. | |
637 | (Ftext_char_description): Likewise. | |
638 | ||
639 | * lisp.h (QCtest, QCweakness, Qequal): Extern them. | |
640 | (hash_put): Adjusted for the change of the definition. | |
641 | (signal_after_change): Likewise. | |
642 | (check_point_in_composition): Extern it. | |
643 | ||
644 | * lread.c (readchar): Adjusted for the change of CHAR_STRING. | |
645 | Delete a code that handles an invalid too-long multibyte sequence | |
646 | because we are now sure that we never encounter with such a | |
647 | sequence. | |
648 | (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not | |
649 | MAX_LENGTH_OF_MULTI_BYTE_FORM. | |
650 | (init_obarray): Likewise. | |
651 | (read1): Likewise. Adjusted for the change of CHAR_STRING. | |
652 | ||
653 | * print.c (printchar): Adjusted for the change of CHAR_STRING. | |
654 | ||
655 | * process.c: Include composite.h. | |
656 | (read_process_output): Call update_compositions. | |
657 | ||
658 | * regex.c (regex_compile): Adjusted for the change of CHAR_STRING. | |
659 | ||
660 | * search.c (search_buffer): Adjusted for the change of CHAR_STRING. | |
661 | ||
662 | * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite | |
663 | character. | |
664 | ||
665 | * term.c (encode_terminal_code): Delete codes for a composite | |
666 | character. Adjusted for the change of CHAR_STRING. | |
667 | (produce_glyphs): When called, it->what can be IT_COMPOSITION. | |
668 | Delete codes for a composite character. | |
669 | ||
670 | * textprop.c (Vtext_property_default_nonsticky): New variable | |
671 | (syms_of_textprop): Declare it as a Lisp variable. | |
672 | ||
673 | * window.c (Frecenter): Clear all caches of compositions. | |
674 | ||
675 | * xdisp.c (it_props): Add an entry for composition. | |
676 | (face_before_or_after_it_pos): For composition, check face of a | |
677 | character after the composition. | |
678 | (handle_composition_prop): New function. | |
679 | (get_next_display_element): Adjusted for the change of | |
680 | CHAR_STRING. | |
681 | (set_iterator_to_next): Handle the case that it->method == | |
682 | next_element_from_composition. | |
683 | (next_element_from_composition): New function. | |
684 | (message_dolog): Adjusted for the change of CHAR_STRING. | |
685 | (set_message_1): Likewise. | |
686 | (check_point_in_composition): New function. | |
687 | (reconsider_clip_changes): If point moved into or out of | |
688 | composition, set b->clip_changed to 1 to force updating of the | |
689 | screen. | |
690 | (disp_char_vector): Delete codes for a composite character. | |
691 | (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING. | |
692 | ||
693 | * xfaces.c (choose_face_fontset_font): Delete codes for a | |
694 | composite character. | |
695 | (realize_x_face): Likewise. Change a place to set local variable | |
696 | `f' to avoid a bug of GCC 2.8.1 on Solaris. | |
697 | ||
698 | * xfns.c: Include intervals.h. | |
699 | (syms_of_xfns): Make `display' property nonsticky by default. | |
700 | ||
701 | * xselect.c (lisp_data_to_selection_data): Adjusted for the change | |
702 | for find_charset_in_str. | |
703 | ||
704 | * xterm.h (struct x_output): Change member font_baseline to | |
705 | baseline_offset. | |
706 | ||
707 | * xterm.c (x_append_glyph): Setup members of struct glyph properly | |
708 | for composition. | |
709 | (x_append_composite_glyph): New function. | |
710 | (VCENTER_BASELINE_OFFSET): New macro. | |
711 | (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members | |
712 | of struct it for the composition. Cache pixel offsets in the | |
713 | struct composition. Delete codes for a composite character. | |
714 | Handle Vignore_relative_composition in composition code. | |
715 | (struct glyph_string): Delete member cmpcharp, add new member cmp. | |
716 | (x_set_cursor_gc): Check s->cmp, not s->cmpcharp. | |
717 | (x_compute_glyph_string_overhangs): Likewise. | |
718 | (x_get_glyph_overhangs): Delete codes for a composite character. | |
719 | (x_right_overwritten): Check s->cmp, not s->cmpcharp. | |
720 | (x_draw_glyph_string_background): Likewise. Delete codes for | |
721 | checking s->gidx for a composition. | |
722 | (x_draw_glyph_string_foreground): Delete code for a composite | |
723 | character. | |
724 | (x_draw_composite_glyph_string_foreground): New function. | |
725 | (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp. | |
726 | (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH. | |
727 | (struct work): Deleted. | |
728 | (x_fill_composite_glyph_string): Argument changed. Mostly | |
729 | rewritten for that. | |
730 | (x_fill_glyph_string): Don't check CHARSET_COMPOSITION. | |
731 | (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here. | |
732 | (BUILD_COMPOSITE_GLYPH_STRING): New macro. | |
733 | (BUILD_GLYPH_STRINGS): For composition, call | |
734 | BUILD_COMPOSITE_GLYPH_STRING. | |
735 | (x_new_font): Initialize f->output_data.x->baseline_offset, not | |
736 | f->output_data.x->font_baseline. | |
737 | ||
c3c60f13 GM |
738 | 1999-12-14 Gerd Moellmann <gerd@gnu.org> |
739 | ||
740 | * xterm.c (show_mouse_face): Don't use updated_area, use | |
741 | TEXT_AREA. | |
742 | ||
c838eb57 RS |
743 | 1999-12-12 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
744 | ||
745 | * minibuf.c (Fall_completions): Doc fix. | |
746 | ||
747 | 1999-12-12 Richard M. Stallman <rms@caffeine.ai.mit.edu> | |
748 | ||
749 | * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro | |
750 | has been changed by the Lisp code. | |
751 | ||
d8eccf12 GM |
752 | 1999-12-12 Gerd Moellmann <gerd@gnu.org> |
753 | ||
754 | * xfns.c: Indentation fixes. | |
755 | ||
ae56feae SM |
756 | 1999-12-10 Stefan Monnier <monnier@cs.yale.edu> |
757 | ||
758 | * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared. | |
759 | ||
dfa1c6ae GM |
760 | 1999-12-10 Gerd Moellmann <gerd@gnu.org> |
761 | ||
762 | * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) | |
763 | [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h. | |
764 | ||
765 | * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved | |
766 | to frame.h. | |
767 | ||
ec18280f SM |
768 | 1999-12-09 Stefan Monnier <monnier@cs.yale.edu> |
769 | ||
770 | * keyboard.c (Qratio): New symbol. | |
771 | (scroll_bar_parts): Add `Qratio' to it. | |
772 | (syms_of_keyboard): Init `Qratio'. | |
773 | * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'. | |
774 | * xterm.c (#includes): Allow compilation with only Xaw. | |
775 | (xaw3d_arrow_scroll, xaw3d_pick_top): New variables. | |
776 | (xt_action_hook): Replace XAW3D by XAW. | |
777 | (xaw3d_jump_callback): Renamed to xaw_jump_callback. | |
778 | (xaw_jump_callback): Renamed from xaw3d_jump_callback. | |
779 | Determine epsilon dynamically and don't try to be too clever. | |
780 | (xaw3d_scroll_callback): Renamed to xaw_scroll_callback. | |
781 | (xaw_scroll_callback): Renamed from xaw3d_scroll_callback. | |
782 | Handle both Xaw3d with arrow-scrollbars and with Xaw-style | |
783 | scrollbar (using `ratio'). | |
784 | (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d | |
785 | scrollbar we have so as to set it up more optimally and to fix | |
786 | xaw3d_arrow_scroll and xaw3d_pick_top. | |
787 | (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the | |
788 | bottom of the Xaw3d scrollbar, to work around its tendency to refuse | |
789 | shrinking the thumb. Also make sure that `XawScrollbarSetThumb' | |
790 | is not ignored, using a major gross hack. | |
791 | (x_initialize): Init default values for xaw3d_arrow_scroll and | |
792 | xaw3d_pick_top. | |
793 | ||
83b6d970 DL |
794 | 1999-12-09 Dave Love <fx@gnu.org> |
795 | ||
796 | * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE. | |
797 | ||
3648c842 GM |
798 | 1999-12-08 Gerd Moellmann <gerd@gnu.org> |
799 | ||
800 | * eval.c: Remove conditional compilation on `standalone'. | |
801 | (call_debugger): When entering the debugger while redisplaying, | |
802 | reset redisplaying_p, and go back to the top-level if the debugger | |
803 | returns. | |
804 | ||
05e71564 GM |
805 | 1999-12-07 Gerd Moellmann <gerd@gnu.org> |
806 | ||
807 | * xfaces.c (x_set_menu_resources_from_menu_face): Make sure | |
808 | basic faces are realized before trying to use face `menu'. | |
809 | ||
810 | * window.c (delete_window): Block input for the time window | |
811 | matrices are being changed. | |
812 | ||
b46cd536 DL |
813 | 1999-12-07 Dave Love <fx@gnu.org> |
814 | ||
815 | * lread.c (Fintern_soft): Fix newlines in doc string. | |
816 | ||
96acb1f7 GM |
817 | 1999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br> |
818 | ||
819 | * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed | |
820 | duplicate definition of ElfW. | |
821 | (find_section): Copied from unexsgi.c. | |
822 | (unexec): Use find_section. Adjust whitespace. Initialize | |
823 | new_data2_offset based on old_data, not sbss (this fixes a bug on | |
824 | IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific. | |
825 | Adjust test for presence of .mdebug section to the new return | |
826 | value of find_section. | |
827 | ||
828 | 1999-12-07 Gerd Moellmann <gerd@gnu.org> | |
829 | ||
830 | * unexelf.c: Merge changes from 20.5. | |
831 | (unexec): Handle .lit4 and .lit8 unconditionally. | |
832 | ||
833 | * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of | |
834 | unexsgi.o again. | |
835 | ||
836 | * m/iris5d.h (UNEXEC): Likewise. | |
837 | ||
7dae4502 SM |
838 | 1999-12-06 Stefan Monnier <monnier@cs.yale.edu> |
839 | ||
840 | * editfns.c (Fdelete_and_extract_region): New function. | |
05e71564 GM |
841 | (syms_of_editfns): Register it. |
842 | * insdel.c (del_range): Update del_range_1 call. | |
7dae4502 SM |
843 | (del_range_1, del_range_2): Add a ret_string argument to |
844 | request that the deleted text be returned. | |
845 | (del_range_byte, del_range_both): Update del_range_2 call. | |
05e71564 | 846 | * lisp.h (del_range_1, del_range_2): Change prototype |
7dae4502 SM |
847 | * casefiddle.c (casify_region): Update del_range_1 call. |
848 | * coding.c (code_convert_region): Update del_range_2 call. | |
849 | * fileio.c (Finsert_file_contents): Update del_range_2 call. | |
850 | ||
397e4fae GM |
851 | 1999-12-06 Gerd Moellmann <gerd@gnu.org> |
852 | ||
853 | * xfaces.c (set_lface_from_font_name): Fix incomplete merge. | |
854 | ||
3d973f71 GM |
855 | 1999-12-04 Hrvoje Niksic <hniksic@iskon.hr> |
856 | ||
857 | * lread.c (Fintern_soft): Accept a symbol argument. | |
858 | ||
740e985f EZ |
859 | 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il> |
860 | ||
861 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000. | |
809f3d51 EZ |
862 | |
863 | * insdel.c (adjust_markers_for_delete): Fix last change. | |
864 | ||
2d764c78 EZ |
865 | 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il> |
866 | ||
867 | Changes for automatic remapping of X colors on terminal frames: | |
868 | ||
869 | * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X | |
870 | frames. | |
871 | (Vface_tty_color_alist): Remove. | |
872 | (tty_defined_color): New function. | |
873 | (defined_color): Rewrite to support any type of frame. | |
874 | (tty_color_name): New function. | |
875 | (face_color_supported_p, Fface_color_gray_p, | |
876 | Fface_color_supported_p): Support non-X frames. | |
877 | (load_color): Enclose the color name in quotes, in the log | |
878 | messages. Remove DOS-specific version of load_color. | |
879 | (realize_tty_face): Take the supported colors from | |
880 | tty-color-alist. Support translation of X colors to the closest | |
881 | tty color, for both MSDOS and tty frames. | |
882 | [MSDOS]: Don't invert face colors if they were taken from the | |
883 | frame colors. | |
884 | (Fface_register_tty_color, Fface_clear_tty_colors): Remove. | |
885 | ||
886 | * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]: | |
887 | Define a mostly empty surrogate. | |
888 | (tty_display): Declare. | |
889 | ||
890 | * frame.c (make_terminal_frame) [!macintosh]: Don't use | |
891 | tty_display. | |
892 | (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P | |
893 | frames when the frame's param_alist includes 'reverse. | |
894 | (tty_display): Define. | |
895 | (make_terminal_frame) [!MSDOS]: Assign &tty_display to the | |
896 | output_data.x member. | |
897 | (Fframe_parameters): Return foreground and background color names | |
898 | on tty frames as well, in addition to MSDOS frames. | |
899 | ||
900 | * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object | |
901 | selected_frame. | |
902 | (struct x_output): Remove unused members; document who uses each | |
903 | member. | |
904 | (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE, | |
905 | FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES, | |
906 | FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES, | |
907 | FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove | |
908 | unused macro definintions. | |
909 | ||
910 | * msdos.c (IT_set_frame_parameters): Don't call | |
911 | recompute_basic_faces, the next redisplay will, anyway. | |
912 | (x_current_display): Remove unused variable. | |
913 | Many functions: changes for Lisp_object selected_frame. | |
914 | (IT_set_face): If the tty_reverse_p flag is set for the face, | |
915 | reverse the foreground and background colors. | |
916 | (Fmsdos_remember_default_colors): New function. | |
917 | (syms_of_msdos): Defsubr it. | |
918 | (IT_set_frame_parameters): Use initial_screen_colors[] when | |
919 | creating a new frame. If the frame parameters include 'reverse, | |
920 | swap the foreground and background colors. | |
921 | (internal_terminal_init): Initialize initial_screen_colors to -1. | |
922 | (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up | |
923 | cus-start.el. | |
924 | ||
925 | * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc. | |
926 | ||
927 | * xfns.c (x_defined_color): Rename from defined_color. All | |
928 | callers changed. | |
929 | (Fxw_color_defined_p): Renamed from Fx_color_defined_p; | |
930 | all callers changed. | |
931 | (Fxw_color_values): Renamed from Fx_color_values; all callers | |
932 | changed. | |
933 | (Fxw_display_color_p): Renamed from Fx_display_color_p; all | |
934 | callers changed. | |
935 | (x_window_to_frame, x_any_window_to_frame, | |
936 | x_non_menubar_window_to_frame, x_menubar_window_to_frame, | |
937 | x_top_window_to_frame): Use !FRAME_X_P instead of | |
938 | f->output_data.nothing. | |
939 | * xterm.h (x_defined_color): Rename from defined_color. | |
940 | ||
941 | * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of | |
942 | f->output_data.nothing. | |
943 | (Fxw_color_defined_p): Renamed from Fx_color_defined_p; | |
944 | all callers changed. | |
945 | (Fxw_color_values): Renamed from Fx_color_values; all callers | |
946 | changed. | |
947 | (Fxw_display_color_p): Renamed from Fx_display_color_p; all | |
948 | callers changed. | |
949 | ||
950 | * dispextern.h (tty_color_name): Add prototype. | |
951 | ||
952 | * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of | |
953 | f->output_data.nothing. | |
954 | * w32menu.c (menubar_id_to_frame): Likewise. | |
955 | * w32term.h (w32_output): Declare. | |
956 | ||
957 | * dosfns.c (Qmsdos_color_translate): Remove. | |
958 | (msdos_stdcolor_name): Now returns a Lisp_Object. | |
959 | * dosfns.h (Qmsdos_color_translate): Remove. | |
960 | ||
961 | * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support. | |
962 | ||
b3e5232e KH |
963 | 1999-12-06 Kenichi Handa <handa@etl.go.jp> |
964 | ||
965 | * fileio.c (decide_coding_unwind): Renamed from | |
966 | set_auto_coding_unwind. | |
967 | (Finsert_file_contents): Make single unwind protect to call both | |
968 | Vset_auto_coding_function and Ffind_operation_coding_system. | |
969 | ||
970 | * insdel.c (adjust_markers_for_delete): Make it non-static. | |
971 | ||
db0e466c SM |
972 | 1999-12-04 Stefan Monnier <monnier@cs.yale.edu> |
973 | ||
974 | * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy | |
975 | operators and handle them properly. | |
976 | * regex.h (RE_ALL_GREEDY): New option. | |
977 | (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic | |
978 | sorting would put it. | |
979 | (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP) | |
980 | (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior. | |
981 | ||
22afa6e8 DL |
982 | 1999-12-04 Dave Love <d.love@dl.ac.uk> |
983 | ||
984 | * m/arm.h: New file. | |
985 | ||
40afb967 DL |
986 | 1999-12-03 Dave Love <fx@gnu.org> |
987 | ||
988 | * editfns.c (Fmessage_or_box): Use use_dialog_box. | |
989 | ||
ddf8eff5 GM |
990 | 1999-12-02 Gerd Moellmann <gerd@gnu.org> |
991 | ||
992 | * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed | |
993 | for building with Motif. | |
994 | ||
995 | * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of | |
996 | unexelf.o. | |
997 | ||
998 | * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o. | |
999 | ||
fa09a82d DL |
1000 | 1999-12-01 Dave Love <fx@gnu.org> |
1001 | ||
1002 | * emacs.c (main): Set LANG=C iff AX3_2 defined. | |
1003 | ||
ddf8eff5 GM |
1004 | 1999-11-28 Gerd Moellmann <gerd@gnu.org> |
1005 | ||
1006 | * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE) | |
1007 | (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New | |
1008 | macros. | |
1009 | ||
1010 | * config.in (HAVE_SETITIMER, HAVE_UALARM): New. | |
1011 | ||
fa09a82d DL |
1012 | 1999-11-28 eliz <eliz@dlpx1> |
1013 | ||
1014 | * emacs.c (synchronize_locale): Avoid compiler warnings about | |
1015 | pointer type mismatch. | |
1016 | ||
f9632fc8 GM |
1017 | 1999-11-28 Gerd Moellmann <gerd@gnu.org> |
1018 | ||
717d0121 GM |
1019 | * window.c (Fwindow_end): Don't call temp_set_pt_both with |
1020 | out of range position. | |
1021 | ||
f9632fc8 GM |
1022 | * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>: |
1023 | Switch off busy-cursor by setting inhibit_busy_cursor to 2. | |
1024 | ||
59c65f1e EZ |
1025 | 1999-11-28 Eli Zaretskii <eliz@is.elta.co.il> |
1026 | ||
613a8346 EZ |
1027 | * charset.c (Fmake_char_internal): Print the charset ID when |
1028 | signalling an error. | |
1029 | ||
59c65f1e EZ |
1030 | * emacs.c (synchronize_locale): Avoid compiler warnings about |
1031 | pointer type mismatch. | |
1032 | ||
d01f3570 RS |
1033 | 1999-11-26 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1034 | ||
1035 | * editfns.c (Fdelete_field): Make it noninteractive. Return nil. | |
1036 | ||
18df9369 GM |
1037 | 1999-11-26 Gerd Moellmann <gerd@gnu.org> |
1038 | ||
65a3ccf7 GM |
1039 | * puresize.h (BASE_PURESIZE): Increase to 550000. |
1040 | ||
b3b98592 GM |
1041 | * textprop.c (set_text_properties): New function. Like |
1042 | Fset_text_properties, but with additional parameter | |
1043 | SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after | |
1044 | changes. | |
1045 | (Fset_text_properties): Use it. | |
1046 | ||
1047 | * insdel.c (insert_1_both): Call set_text_properties with last | |
1048 | parameter nil so that no after changes will be signaled. | |
1049 | ||
1050 | * lisp.h: Add prototype for set_text_properties. | |
1051 | ||
18df9369 GM |
1052 | * xfaces.c (set_lface_from_font_name): Fix previous change. |
1053 | (recompute_basic_faces): Change assert to abort. | |
1054 | ||
71a8e74b DL |
1055 | 1999-11-25 Dave Love <fx@gnu.org> |
1056 | ||
1057 | * fns.c (Fnthcdr, Fnreverse): Inline cdr. | |
1058 | (Fmember, Fdelq, Fdelete): Inline car. | |
1059 | (Fy_or_n_p): Doc fix. | |
1060 | ||
bc6a5782 GM |
1061 | 1999-11-25 Gerd Moellmann <gerd@gnu.org> |
1062 | ||
3221576b | 1063 | * xfaces.c (set_lface_from_font_name): New parameter may_fail_p. |
18df9369 | 1064 | Callers changed. If specified font name is bogus, and may_fail_p |
3221576b GM |
1065 | is not set, try to use a reasonable default. |
1066 | ||
bc6a5782 GM |
1067 | * dispnew.c (direct_output_for_insert): Set glyph row's |
1068 | displays_text_p flag. Correct window's window_end_vpos if | |
1069 | necessary. | |
1070 | ||
0c8559bb PE |
1071 | 1999-11-25 Paul Eggert <eggert@twinsun.com> |
1072 | ||
1073 | * emacs.c (fixup_locale): Don't bother to record initial locale. | |
1074 | (synchronize_locale): If the desired locale is nil, | |
1075 | treat it as if it were the empty string, | |
1076 | so that we set the locale from the environment. | |
1077 | ||
35737351 KH |
1078 | 1999-11-25 Kenichi Handa <handa@etl.go.jp> |
1079 | ||
1080 | * fileio.c (Finsert_file_contents): Set buffer-file-coding-system | |
1081 | of the current buffer via Fset. | |
1082 | ||
5562b47f DL |
1083 | 1999-11-24 Dave Love <fx@gnu.org> |
1084 | ||
1085 | * xfns.c: Don't duplicate Qdisplay definition done elsewhere. | |
1086 | ||
1087 | * xfaces.c: Don't duplicate Qmode_line definition done elsewhere. | |
1088 | ||
1089 | * xfns.c: Don't duplicate Qdisplay definition done elsewhere. | |
1090 | ||
00da0e4a GM |
1091 | 1999-11-24 Gerd Moellmann <gerd@gnu.org> |
1092 | ||
1093 | * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0. | |
1094 | ||
1095 | * emacs.c (PVEC_FLAG): New variable. | |
1096 | ||
b1775dc1 GM |
1097 | 1999-11-23 Gerd Moellmann <gerd@gnu.org> |
1098 | ||
1099 | * unexaix.c (unexec): Use unsigned instead of uintptr_t because | |
1100 | that fails on IBM PowerPC, AIX 4.2. | |
1101 | ||
08de6200 EZ |
1102 | 1999-11-22 Eli Zaretskii <eliz@is.elta.co.il> |
1103 | ||
1104 | * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc | |
1105 | string of mode-line-format. Remove the obsolete %t. | |
1106 | ||
02fda8ff GM |
1107 | 1999-11-22 Gerd Moellmann <gerd@gnu.org> |
1108 | ||
f2fa858f GM |
1109 | * dispnew.c (direct_output_for_insert): Increment glyph positions |
1110 | for glyphs from buffer text only. | |
1111 | ||
02fda8ff GM |
1112 | * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits) |
1113 | (gdb_data_seg_bits): New variables. | |
1114 | ||
1115 | * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't | |
1116 | work on systems not allowing enumerators > INT_MAX, and it | |
1117 | won't work if EMACS_INT is long long. | |
1118 | ||
1b0d24e7 PE |
1119 | 1999-11-22 Paul Eggert <eggert@twinsun.com> |
1120 | ||
1121 | Port to SunOS 4.1.x again. Help out with Alpha port. | |
1122 | Rename messages-locale to system-messages-locale, | |
1123 | and likewise for time-locale. | |
1124 | ||
1125 | * callproc.c (strerror): Remove decl. | |
1126 | * fileio.c (strerror): Likewise. | |
1127 | * process.c (strerror): Likewise. | |
1128 | * emacs.c (strerror): Likewise. | |
1129 | (Vsystem_messages_locale): Renamed from Vmessages_locale. | |
1130 | All uses changed. | |
1131 | (Vprevious_system_messages_locale): Likewise, from | |
1132 | Vprevious_messages_locale. | |
1133 | (Vsystem_time_locale): Likewise, from Vtime_locale. | |
1134 | (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale. | |
1135 | (ABORT_RETURN_TYPE): New macro. | |
1136 | (abort): Return type is now ABORT_RETURN_TYPE. | |
1137 | (main): Always invoke init_signals, even if POSIX_SIGNALS is not | |
1138 | defined. | |
1139 | (syms_of_emacs): messages-locale -> system-messages-locale, | |
1140 | previous-messages-locale -> previous-system-messages-locale, | |
1141 | time-locale -> system-time-locale, | |
1142 | previous-time-locale -> previous-system-time-locale. | |
1143 | ||
1144 | * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined. | |
1145 | (const): Do not define; that's config.h's job. | |
1146 | (<limits.h>): Include if HAVE_LIMITS_H is defined. | |
1147 | (CHAR_BIT): Move test for definedness outside of limits.h condition. | |
1148 | (<stddef.h>): Include if STDC_HEADERS is defined. | |
1149 | (FREE_RETURN_TYPE): New macro. | |
1150 | (free): Return type is now FREE_RETURN_TYPE. | |
1151 | ||
1152 | * lisp.h (synchronize_system_time_locale): Renamed from | |
1153 | synchronize_time_locale. All uses changed. | |
1154 | (synchronize_system_messages_locale): Likewise, from | |
1155 | synchronize_messages_locale. | |
1156 | ||
1157 | * m/alpha.h (malloc, realloc, calloc): Remove decls; | |
1158 | stdlib.h now does this. | |
1159 | ||
1160 | * process.c (sys_siglist): Remove. | |
1161 | ||
1162 | * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE): | |
1163 | New macros. | |
1164 | ||
1165 | * syntax.c (scan_sexps_forward): Use abort, not assert. | |
1166 | ||
1167 | * sysdep.c (my_sys_siglist): New var. | |
1168 | (sys_siglist): New macro. Remove old initialized vars of same name. | |
1169 | (init_signals): Initialize sys_siglist. | |
1170 | ||
1171 | * xfns.c (abort): Remove decl; stdlib.h now does this. | |
1172 | ||
0dcd5b54 DL |
1173 | 1999-11-18 Dave Love <fx@gnu.org> |
1174 | ||
946173ad DL |
1175 | * filelock.c: Add forward declaration for get_boot_time_1. |
1176 | ||
0dcd5b54 DL |
1177 | * dispnew.c (Finternal_show_cursor_p): Fix doc string. |
1178 | ||
71447e8f GM |
1179 | 1999-11-18 Gerd Moellmann <gerd@gnu.org> |
1180 | ||
1181 | * buffer.h (struct buffer_text): Add comment about moving | |
1182 | buffer text if REL_ALLOC is defined. | |
1183 | ||
eeedff63 KH |
1184 | 1999-11-18 Kenichi Handa <handa@etl.go.jp> |
1185 | ||
1186 | * lisp.h (KEY_DESCRIPTION_SIZE): New macro. | |
1187 | ||
1188 | * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free | |
1189 | memory for push_key_description. | |
1190 | ||
1191 | * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to | |
1192 | allocate memory for push_key_description. | |
1193 | (describe_buffer_bindings): Likewise. | |
1194 | ||
5d7e4a2c GM |
1195 | 1999-11-17 Gerd Moellmann <gerd@gnu.org> |
1196 | ||
1197 | * xfns.c (Fx_show_busy_cursor): Doc-fix. | |
1198 | (Fx_hide_busy_cursor): Ditto. | |
1199 | ||
1200 | 1999-11-17 Marco Walther <walther@siemens-pyramid.com> | |
1201 | ||
1202 | * unexsni.c (unexec): Handle .rel.dyn section. | |
1203 | ||
b5b41e02 DL |
1204 | 1999-11-16 Dave Love <fx@gnu.org> |
1205 | ||
1206 | * doc.c (Fdocumentation): Remove gcpro here too. | |
1207 | ||
e35b6123 GM |
1208 | 1999-11-16 Gerd Moellmann <gerd@gnu.org> |
1209 | ||
1210 | * keyboard.c (command_loop_1): Remove no_redisplay. | |
1211 | ||
0a14b9bb GM |
1212 | 1999-11-16 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1213 | ||
1214 | * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing | |
1215 | in noninteractive. | |
1216 | ||
b05d3bee GM |
1217 | 1999-11-14 Gerd Moellmann <gerd@gnu.org> |
1218 | ||
5bcfeb49 GM |
1219 | * xdisp.c (ensure_echo_area_buffers): New. |
1220 | (with_echo_area_buffer): Use it. | |
1221 | (setup_echo_area_for_printing): Ditto. | |
1222 | ||
b05d3bee GM |
1223 | * buffer.c (indicate-empty-lines): Doc-fix. |
1224 | ||
9b2e6e4c GM |
1225 | 1999-11-12 Gerd Moellmann <gerd@gnu.org> |
1226 | ||
e7f90eab GM |
1227 | * term.c (term_init): If "op" isn't available, don't support color |
1228 | because we can't switch back to the default foreground and | |
1229 | background. | |
1230 | ||
9b2e6e4c GM |
1231 | * doc.c (Fdocumentation_property): Remove GCPRO because |
1232 | Fsubstitute_command_keys gcpro's the string. | |
1233 | ||
1bf21027 KH |
1234 | 1999-11-12 Kenichi Handa <handa@etl.go.jp> |
1235 | ||
1236 | * editfns.c (Ftranslate_region): Check the buffer multibyteness. | |
1237 | ||
3bc6df53 GM |
1238 | 1999-11-11 Gerd Moellmann <gerd@gnu.org> |
1239 | ||
1240 | * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c, | |
1241 | lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h, | |
1242 | buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES. | |
1243 | ||
35a5514b GM |
1244 | 1999-11-10 Gerd Moellmann <gerd@gnu.org> |
1245 | ||
1246 | * xfns.c (QCuser_data): Removed. | |
1247 | (syms_of_xfns): Initialization of QCuser_data removed. | |
1248 | (parse_image_spec): Don't handle :user-data specially. Allow | |
1249 | unknown keys. Remove parameter ALLOW_OTHER_KEYS. | |
1250 | (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p) | |
1251 | (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call | |
1252 | parse_image_spec accordingly. | |
1253 | ||
4ea68fcc RS |
1254 | 1999-11-09 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1255 | ||
1256 | * cmds.c (Fbeginning_of_line): Doc fix. | |
1257 | (Fend_of_line): Doc fix. | |
1258 | ||
1259 | * editfns.c (Fline_beginning_position): If N is not 1, | |
1260 | pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE. | |
1261 | ||
1262 | * syntax.c (Fforward_word): Handle fields even if would have hit | |
1263 | an edge of the buffer. Return nil if affected by fields. | |
1264 | ||
1265 | 1999-11-09 Richard M. Stallman <rms@caffeine.ai.mit.edu> | |
1266 | ||
1267 | * editfns.c (preceding_pos): Function deleted. | |
1268 | (text_property_stickiness): Decrement POS directly. | |
1269 | Fix a confusion that used PT instead of POS. | |
1270 | ||
1271 | * editfns.c (find_field): Properly handle the case | |
1272 | of a field boundary where `field' inherits from neither side. | |
1273 | ||
1274 | * editfns.c (Ffield_beginning, Ffield_end): Doc fixes. | |
1275 | (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes. | |
1276 | ||
fa9aabf6 GM |
1277 | 1999-11-08 Gerd Moellmann <gerd@gnu.org> |
1278 | ||
1279 | * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the | |
1280 | BEFORE_POTENTIAL_GC before DISCARD. | |
1281 | ||
4015b3c0 GM |
1282 | 1999-11-07 Gerd Moellmann <gerd@gnu.org> |
1283 | ||
033a5fa3 GM |
1284 | * alloc.c (Fgarbage_collect): Call unmark_byte_stack. |
1285 | ||
1286 | * lisp.h: Add prototype for unmark_byte_stack. | |
1287 | ||
1288 | * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK. | |
1289 | (unmark_byte_stack): Renamed from relocate_byte_pcs. Use | |
1290 | XUNMARK. | |
1291 | ||
55b064bd GM |
1292 | * xdisp.c (resize_mini_window): Fix computation of needed |
1293 | mini-window height. | |
1294 | ||
1295 | * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional | |
1296 | compilation on USE_TEXT_PROPERTIES. | |
01e9b9df | 1297 | |
4015b3c0 GM |
1298 | * Fbyte_code: Use block statements in cases and declare v1 and v2 |
1299 | locally there. Rearrange case statements so that thos most | |
1300 | frequently executed come first. Avoid goto's in frequently | |
1301 | executed cases. | |
1302 | ||
fe512f27 GM |
1303 | 1999-11-05 Gerd Moellmann <gerd@gnu.org> |
1304 | ||
dd59e217 GM |
1305 | * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and |
1306 | AFTER_POTENTIAL_GC around internal_catch. | |
1307 | ||
bcf28080 GM |
1308 | * alloc.c (Fgarbage_collect): Call mark_byte_stack and |
1309 | relocate_byte_pcs. | |
1310 | (init_alloc_once, init_alloc): Set byte_stack_list to null. | |
1311 | ||
1312 | * eval.c (struct catchtag): Add member byte_stack. | |
1313 | (internal_catch, Fcondition_case, internal_condition_case) | |
dd59e217 | 1314 | (internal_condition_case_1): Save value of byte_stack_list in |
bcf28080 GM |
1315 | catchtag. |
1316 | (unwind_to_catch): Restore byte_stack_list from catchtag. | |
1317 | ||
1318 | * lisp.h: Add prototypes for new functions in bytecode.c. | |
1319 | Add extern declaration for byte_stack_list. | |
1320 | ||
1321 | * bytecode.c (struct byte_stack): New. | |
1322 | (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New | |
1323 | (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New. | |
1324 | (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten. | |
1325 | (HANDLE_RELOCATION): Removed. | |
1326 | (Fbyte_code): Use byte_stack structures. | |
1327 | ||
4d59c34c GM |
1328 | * filelock.c (Ffile_locked_p): Make FILENAME a required argument. |
1329 | ||
fe512f27 GM |
1330 | * buffer.c (syms_of_buffer): Extend documentation of |
1331 | mode-line-format. | |
1332 | ||
60b64cd6 GM |
1333 | 1999-11-04 Gerd Moellmann <gerd@gnu.org> |
1334 | ||
1335 | * editfns.c (Fdelete_field): Renamed from Ferase_field. | |
1336 | ||
1337 | * minibuf.c (do_completion, Fminibuffer_complete_word): Use | |
1338 | Ferase_field instead of Fdelete_field. | |
1339 | ||
b51b619b GM |
1340 | 1999-11-03 Gerd Moellmann <gerd@gnu.org> |
1341 | ||
1342 | * dispnew.c (Finternal_show_cursor): Change it to set the | |
1343 | cursor on/off, not toggle its state. | |
1344 | (Finternal_show_cursor_p): New. | |
1345 | (syms_of_display): Defsubr Sinternal_show_cursor_p. | |
1346 | ||
5865af0d DL |
1347 | 1999-11-03 Dave Love <fx@gnu.org> |
1348 | ||
1349 | * charset.c (split_non_ascii_string): Define return value. | |
1350 | ||
82a700f3 GM |
1351 | 1999-11-03 Gerd Moellmann <gerd@gnu.org> |
1352 | ||
edfef199 GM |
1353 | * minibuf.c (string_to_object): New. |
1354 | (read_minibuf_noninteractive): New. | |
1355 | (read_minibuf): Call read_minibuf_noninteractive if | |
1356 | noninteractive. Use string_to_object. | |
1357 | ||
82a700f3 GM |
1358 | * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO. |
1359 | ||
b5540f0d DL |
1360 | 1999-11-02 Dave Love <fx@gnu.org> |
1361 | ||
e69dcd60 DL |
1362 | * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1). |
1363 | ||
827a1788 DL |
1364 | * process.c: Define _GNU_SOURCE before config.h to get strsignal |
1365 | declared with glibc2. | |
b5540f0d | 1366 | |
a69a6e61 GM |
1367 | 1999-11-02 Gerd Moellmann <gerd@gnu.org> |
1368 | ||
1369 | * lisp.h (QUIT): Give it statement form. | |
1370 | ||
87e21fbd DL |
1371 | 1999-11-02 Dave Love <fx@gnu.org> |
1372 | ||
1373 | * eval.c (init_eval): Conditionalize declaration of gcpro_level. | |
1374 | ||
1b335865 GM |
1375 | 1999-11-02 Gerd Moellmann <gerd@gnu.org> |
1376 | ||
9fb5e03d GM |
1377 | * xfns.c (QCuser_data): New. |
1378 | (syms_of_xfns): Initialize QCuser_data. | |
1379 | (parse_image_spec): Ignore :user-data DATA properties. | |
1380 | ||
1b335865 GM |
1381 | * xdisp.c (display_line): Set charpos of first glyph in blank |
1382 | lines not corresponding to any text to -1, even if no glyphs are | |
1383 | filled in in that line. | |
1384 | ||
e76f1c44 GM |
1385 | 1999-11-01 Gerd Moellmann <gerd@gnu.org> |
1386 | ||
36fcd3d9 GM |
1387 | * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using |
1388 | png_get_sRGB in #ifdef. | |
1389 | ||
111259b4 GM |
1390 | * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor. |
1391 | (syms_of_display): Use the new name. | |
1392 | ||
dd5c96e8 GM |
1393 | * textprop.c (verify_interval_modification): Signal text-read-only |
1394 | instead of calling error. | |
1395 | ||
db8878fb GM |
1396 | * data.c (Qtext_read_only): New built-in error. |
1397 | (syms_of_data): Initialize it. | |
1398 | ||
1399 | * lisp.h: Add extern declaration for Qtext_read_only. | |
1400 | ||
e76f1c44 GM |
1401 | * syntax.c: Remove whitespace after open or in front of closing |
1402 | parentheses. | |
1403 | ||
cb3a6c48 GM |
1404 | 1999-11-01 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1405 | ||
1406 | * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h. | |
1407 | ||
7843e09c GM |
1408 | 1999-10-31 Gerd Moellmann <gerd@gnu.org> |
1409 | ||
575ed805 GM |
1410 | * xdisp.c (resize_mini_window): Compute needed height differently. |
1411 | ||
7843e09c GM |
1412 | * fns.c (Flength): Unroll loop over lists. |
1413 | ||
1414 | * xdisp.c (append_space): Return non-zero if space was appended. | |
1415 | (display_line): Set charpos of first glyph to -1 only if that | |
1416 | glyph is the space added by append_glyph. | |
1417 | ||
cb3a6c48 GM |
1418 | 1999-10-30 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1419 | ||
1420 | * print.c (strout): Consider `noninteractive' and use stdout | |
1421 | only when PRINTCHARFUN is t. | |
1422 | ||
1423 | * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'. | |
1424 | (gcpro_level): Declare it extern. | |
1425 | [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5): | |
1426 | Alternate definitions that set `level' and increment `gcpro_level'. | |
1427 | [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level. | |
1428 | ||
1429 | * eval.c [DEBUG_GCPRO] (gcpro_level): New variable. | |
1430 | (init_eval) [DEBUG_GCPRO]: Initialize it. | |
1431 | (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level | |
1432 | from remaining gcprolist. | |
1433 | ||
3636f7a3 KH |
1434 | 1999-10-29 Kenichi Handa <handa@etl.go.jp> |
1435 | ||
1436 | * coding.c (code_convert_region): Update `dst' correctly. | |
1437 | ||
a2ad7096 GM |
1438 | 1999-10-28 Gerd Moellmann <gerd@gnu.org> |
1439 | ||
1440 | * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc) | |
1441 | (Frassoc): Rewritten. | |
1442 | ||
1e3196e8 GM |
1443 | 1999-10-27 Noah Friedman <friedman@splode.com> |
1444 | ||
1445 | * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'. | |
1446 | Define PTY_NAME_SPRINTF. | |
1447 | Redefine PTY_TTY_NAME_SPRINTF. | |
1448 | * config.in: Add undef for HAVE_DEV_PTMX. | |
1449 | ||
4ea68fcc RS |
1450 | 1999-10-26 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1451 | ||
1452 | * regex.c (POP_FAILURE_POINT): Use failure_id.integer | |
1453 | as arg to DEBUG_POP and DEBUG_PRINT. | |
1454 | ||
17dbfaad GM |
1455 | 1999-10-27 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1456 | ||
1457 | * data.c (Qad_activate_internal): Renamed from Qad_activate. | |
1458 | (Ffset): Call Qad_activate_internal. | |
1459 | (syms_of_data): Initialize Qad_activate_internal. | |
1460 | ||
26922151 GM |
1461 | 1999-10-27 Gerd Moellmann <gerd@gnu.org> |
1462 | ||
1463 | * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if | |
1464 | Vterminal_frame is selected and Vwindow_system is non-nil. | |
1465 | ||
67a5596f GM |
1466 | 1999-10-26 Gerd Moellmann <gerd@gnu.org> |
1467 | ||
2bea706b GM |
1468 | * xdisp.c (echo_area_display): Put previous change in #if 0. |
1469 | ||
67a5596f GM |
1470 | * emacs.c (standard_args): Add `file' as synonym for `visit', |
1471 | `execute' as synonym for `eval'. | |
1472 | (main): Add new options to usage message. | |
1473 | ||
81dc5de5 GM |
1474 | 1999-10-25 Gerd Moellmann <gerd@gnu.org> |
1475 | ||
1476 | * data.c (Qhash_table): New. | |
1477 | (Ftype_of): Return it for hash tables. | |
1478 | (syms_of_data): Initialize Qhash_table. | |
1479 | ||
bd3c545d GM |
1480 | 1999-10-25 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1481 | ||
1482 | * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer. | |
1483 | ||
3a7093d8 KR |
1484 | 1999-10-24 Ken Raeburn <raeburn@raeburn.org> |
1485 | ||
7539e11f KR |
1486 | * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including |
1487 | lisp.h. | |
1488 | ||
1489 | * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer, | |
1490 | Fbuffer_local_variables, Fother_buffer, record_buffer, | |
1491 | set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables, | |
1492 | swap_out_buffer_local_variables, overlays_at, overlays_in, | |
1493 | overlay_touches_p, overlay_strings, recenter_overlay_lists, | |
1494 | fix_overlays_in_range, fix_overlays_before, Foverlay_get, | |
1495 | Foverlay_put, report_overlay_modification, evaporate_overlays): | |
1496 | Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member | |
1497 | references. | |
1498 | * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr, | |
1499 | swap_in_symval_forwarding, set_internal, default_value, | |
1500 | Fset_default, Fmake_variable_buffer_local, Fmake_local_variable, | |
1501 | Fmake_variable_frame_local, Flocal_variable_p, | |
1502 | Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long, | |
1503 | Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise. | |
1504 | * dispnew.c (Fframe_or_buffer_changed_p): Likewise. | |
1505 | * emacs.c (main): Likewise. | |
1506 | * fontset.c (fs_load_font, fs_register_fontset, | |
1507 | CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset, | |
1508 | Fnew_fontset, Fset_fontset_font): Likewise. | |
1509 | * frame.c (do_switch_frame, next_frame, prev_frame, | |
1510 | other_visible_frames, Fdelete_frame, Fvisible_frame_list): | |
1511 | Likewise. | |
1512 | * keyboard.c (read_char, help_char_p, event_to_kboard, | |
1513 | kbd_buffer_get_event, timer_start_idle, timer_check, | |
1514 | make_lispy_event, apply_modifiers, reorder_modifiers, | |
1515 | Fevent_convert_list, lucid_event_type_list_p, menu_bar_items, | |
1516 | menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item, | |
1517 | tool_bar_items, read_char_x_menu_prompt, read_key_sequence, | |
1518 | Fcommand_execute, Fexecute_extended_command): Likewise. | |
1519 | * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion, | |
1520 | Fall_completions): Likewise. | |
1521 | * window.c (Fset_window_margins): Likewise. | |
1522 | ||
1523 | * callint.c (quotify_args): Don't explicitly use struct | |
1524 | Lisp_Cons, use Lisp_Object and XCAR/XCDR instead. | |
1525 | ||
3a7093d8 KR |
1526 | * s/netbsd.h (HAVE_GETLOADAVG): Define as 1. |
1527 | (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions, | |
1528 | if __ELF__ is defined. | |
1529 | ||
2a3d7146 GM |
1530 | 1999-10-24 Gerd Moellmann <gerd@gnu.org> |
1531 | ||
1532 | * window.c (Fnext_window): Add a QUIT in the loop. | |
1533 | ||
8ac52782 GM |
1534 | 1999-10-23 Gerd Moellmann <gerd@gnu.org> |
1535 | ||
1536 | * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs): | |
1537 | New targets. | |
1538 | ||
05f0d15a DL |
1539 | 1999-10-22 Dave Love <fx@gnu.org> |
1540 | ||
1541 | * emacs.c (main): Enable profiling conditional on __linux also. | |
1542 | ||
882fb0e6 GM |
1543 | 1999-10-20 Gerd Moellmann <gerd@gnu.org> |
1544 | ||
1545 | * xrdb.c (x_load_resources): Set default resources for resource | |
1546 | classes instead of for the specific Emacs. | |
1547 | ||
b5f5bc31 GM |
1548 | 1999-10-19 Gerd Moellmann <gerd@gnu.org> |
1549 | ||
66f4dd69 GM |
1550 | * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h |
1551 | defines it that way. | |
1552 | ||
b5f5bc31 GM |
1553 | * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing |
1554 | if selected_frame is equal to Vterminal_frame. | |
1555 | ||
68c45bf0 PE |
1556 | 1999-10-19 Paul Eggert <eggert@twinsun.com> |
1557 | ||
1558 | Add support for large files, 64-bit Solaris, system locale codings. | |
1559 | ||
1560 | * Makefile.in (emacs): Set the LC_ALL environment variable to "C" | |
1561 | when dumping, so that the dumped Emacs doesn't have stray locale info. | |
1562 | (dired.o): Depend on systime.h. | |
1563 | (editfns.o): Depend on coding.h. | |
1564 | ||
1565 | * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c, | |
1566 | dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c, | |
1567 | keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c, | |
1568 | unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c, | |
1569 | w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c: | |
1570 | Include <config.h> before any system include files. | |
1571 | ||
1572 | * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c, | |
1573 | fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c, | |
1574 | m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c, | |
1575 | xmenu.c, xterm.c: | |
1576 | Do not include <stdlib.h>, as <config.h> does this now. | |
1577 | ||
1578 | * callproc.c (Fcall_process): | |
1579 | Synchronize messages locale before invoking strerror. | |
1580 | Decode resulting string with locale-coding-system. | |
1581 | ||
1582 | * coding.c (Vlocale_coding_system): New var. | |
1583 | (syms_of_coding): Adjust to above change. | |
1584 | (emacs_strerror): New function. | |
1585 | ||
1586 | * coding.h (emacs_strerror, Vlocale_coding_system): New decls. | |
1587 | ||
1588 | * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING, | |
1589 | HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN, | |
1590 | HAVE_STRSIGNAL): New macros. | |
1591 | (BITS_PER_LONG): Default to 64 if _LP64 is defined. | |
1592 | <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't. | |
1593 | ||
1594 | * dired.c: Include "systime.h". | |
1595 | (Ffile_attributes): Do not cast s.st_size to int; this loses | |
1596 | information if int is 32 bits but st_size and EMACS_INT are larger. | |
1597 | Treat large device numbers like large inode numbers. | |
1598 | ||
1599 | * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available. | |
1600 | ||
1601 | * editfns.c: Include coding.h. | |
1602 | (emacs_strftime): Remove decl. | |
1603 | (emacs_strftimeu): New decl. | |
1604 | (emacs_memftimeu): Renamed from emacs_memftime; new arg UT. | |
1605 | Use emacs_strftimeu instead of emacs_strftime. | |
1606 | (Fformat_time_string): Convert format string using | |
1607 | Vlocale_coding_system, and convert result back. Synchronize time | |
1608 | locale before invoking lower level function. Invoke | |
1609 | emacs_memftimeu, passing ut, instead of emacs_memftime. | |
1610 | ||
1611 | * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined. | |
1612 | (Vmessages_locale, Vprevious_messages_locale, Vtime_locale, | |
1613 | Vprevious_time_locale): New variables. | |
1614 | (main): Invoke setlocale early, so that initial error messages are | |
1615 | localized properly. But skip locale-setting if LC_ALL is "C". | |
1616 | Fix up locale when it's safe to do so. | |
1617 | (fixup_locale): Moved here from xterm.c. | |
1618 | (synchronize_locale, synchronize_time_locale, | |
1619 | synchronize_messages_locale): New functions. | |
1620 | (syms_of_emacs): Accommodate above changes. | |
1621 | ||
1622 | * fileio.c (report_file_error): Convert strerror output according | |
1623 | to Vlocale_coding_system. | |
1624 | (Finsert_file_contents): Check for arithmetic overflow in | |
1625 | computations that depend on file size. Report IO errors | |
1626 | with emacs_strerror, not strerror. | |
1627 | ||
1628 | * fns.c (Fgethash): Declare dflt parameter. | |
1629 | ||
1630 | * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H | |
1631 | is defined; that's config.h's job. | |
1632 | ||
1633 | * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64, | |
1634 | default these values to long, BITS_PER_LONG, and unsigned long. | |
1635 | (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT. | |
1636 | (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int. | |
1637 | (code_convert_string_norecord, fixup_locale, | |
1638 | synchronize_messages_locale, synchronize_time_locale, | |
1639 | emacs_open, emacs_close, emacs_read, emacs_write): New decls. | |
1640 | All Emacs callers of open, close, read, write changed to use | |
1641 | emacs_open, emacs_close, emacs_read, emacs_write. | |
1642 | ||
1643 | * lread.c (file_offset, file_tell): New macros. All uses of ftell | |
1644 | changed to file_tell. | |
1645 | (saved_doc_string_position, prev_saved_doc_string_position): Now | |
1646 | of type file_offset. | |
1647 | (init_lread): Do not fix locale here; fixup_locale now does this. | |
1648 | ||
1649 | * m/amdahl.h, s/usg5-4.h: | |
1650 | (NSIG): Remove. | |
1651 | (NSIG_MINIMUM): New macro. | |
1652 | ||
1653 | * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h, | |
1654 | m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h, | |
1655 | s/umips.h, s/usg5-4.h: | |
1656 | (SIGIO): Do not undef. | |
1657 | (BROKEN_SIGIO): New macro. | |
1658 | ||
1659 | * m/ustation.h: | |
1660 | (SIGTSTP): Do not undef. | |
1661 | (BROKEN_SIGTSTP): New macro. | |
1662 | ||
1663 | * s/gnu-linux.h: | |
1664 | (SIGPOLL, SIGURG): Do not undef. | |
1665 | (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros. | |
1666 | ||
1667 | * s/ptx4.h: | |
1668 | (SIGINFO): Do not undef. | |
1669 | (BROKEN_SIGINFO): New macros. | |
1670 | ||
1671 | * m/delta.h, s/ptx.h, s/template.h: Doc fix. | |
1672 | ||
1673 | * mktime.c, strftime.c: Update to glibc 2.1.2 version, with | |
1674 | some Emacs-related changes merged. | |
1675 | ||
1676 | * print.c (float_to_string): Prepend "-" to representation of a | |
1677 | NaN if the NaN is negative. | |
1678 | ||
1679 | * process.c (sys_siglist): Omit if HAVE_STRSIGNAL. | |
1680 | (wait_reading_process_input): Use emacs_strerror, not strerror. | |
1681 | ||
1682 | * process.c (status_message, sigchld_handler): Synchronize locale, | |
1683 | then use strsignal istead of sys_siglist. | |
1684 | * w32proc.c (sys_wait): Likewise. | |
1685 | ||
1686 | * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h, | |
1687 | s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h, | |
1688 | s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, | |
1689 | s/usg5-2.h, s/usg5-3.h, s/xenix.h: | |
1690 | (open, close, read, write, INTERRUPTIBLE_OPEN, | |
1691 | INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove. | |
1692 | ||
1693 | * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros. | |
1694 | ||
1695 | * sysdep.c (sys_read, sys_write, read, write, sys_close, close, | |
1696 | sys_open, open): Remove. | |
1697 | (emacs_open, emacs_close, emacs_read, emacs_write): Always define; | |
1698 | the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO | |
1699 | macros are no longer used. | |
1700 | (emacs_open): Renamed from sys_open. Merge BSD4_1 version. | |
1701 | (emacs_close): Renamed from sys_close. | |
1702 | (emacs_read): Renamed from sys_read. | |
1703 | (emacs_write): Renamed from sys_write. | |
1704 | (sys_siglist): Do not declare if HAVE_STRSIGNAL. | |
1705 | (dup2): Do not print error on failure; the real dup2 doesn't. | |
1706 | (strsignal): New function, defined if !HAVE_STRSIGNAL. | |
1707 | ||
1708 | * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO | |
1709 | is defined. | |
1710 | (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise. | |
1711 | (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM. | |
1712 | (strsignal): Declare if !HAVE_STRSIGNAL. | |
1713 | ||
1714 | * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros. | |
1715 | (ElfW): Define in terms of ElfExpandBitsW. | |
1716 | ||
1717 | * w32proc.c (sys_siglist): Remove decl. | |
1718 | ||
1719 | * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply | |
1720 | with ANSI C. | |
1721 | (display_string): Declare face_string_pos arg. | |
1722 | ||
1723 | * xfns.c (Fx_show_tip): Declare timeout param. | |
1724 | ||
1725 | * xterm.c: No need to include locale.h. | |
1726 | (x_alloc_lighter_color, x_setup_relief_color): | |
1727 | Pass arg as double, not float, for compatibility with ANSI C. | |
1728 | (fixup_locale): Move to emacs.c. | |
1729 | (x_term_init): Do not setlocale or fixup locale; the main program | |
1730 | does this now. | |
1731 | ||
2f0b74ea DL |
1732 | 1999-10-18 Dave Love <fx@gnu.org> |
1733 | ||
1734 | * doc.c (Fdocumentation_property): Gcpro `tem'. | |
1735 | ||
471aa4a0 KH |
1736 | 1999-10-18 Kenichi Handa <handa@etl.go.jp> |
1737 | ||
1738 | * lread.c (Fload): Calculate bytes of filename correctly. | |
1739 | (openp): Likewise. | |
1740 | ||
aca2020b KH |
1741 | 1999-10-18 Keisuke Nishida <kxn30@po.cwru.edu> |
1742 | ||
1743 | * print.c (print_preprocess): In case print-circle is nil, | |
1744 | add OBJ to Vprint_number_table only when OBJ is a symbol. | |
1745 | ||
1f5fe392 | 1746 | 1999-10-18 Kenichi Handa <handa@etl.go.jp> |
b843d1ae KH |
1747 | |
1748 | * coding.c (code_convert_string): Add record_unwind_protect to | |
1749 | assure setting inhibit_pre_post_conversion back to zero. Take | |
1750 | care of the multibyteness of the working buffer. | |
1751 | ||
1752 | * coding.c (inhibit_pre_post_conversion): New variable. | |
1753 | (setup_coding_system): If inhibit_pre_post_conversion is nonzero, | |
1754 | ignore post-read-conversion and pre-write-conversion property of | |
1755 | the coding system. | |
1756 | (code_convert_region_unwind): New function. | |
1757 | (code_convert_region): Set inhibit_pre_post_conversion to 1 while | |
1758 | running pre-write-conversion and post-read-conversion. | |
1759 | (code_convert_string): Likewise. | |
1760 | ||
cd876a91 GM |
1761 | 1999-10-17 Miles Bader <miles@gnu.org> |
1762 | ||
1763 | * editfns.c: Doc fix. | |
1764 | ||
1765 | 1999-10-17 Miles Bader <miles@gnu.org> | |
1766 | ||
1767 | * editfns.c (Fconstrain_to_field): Make sure we don't violate the | |
1768 | argument preconditions of find_before_next_newline in the case | |
1769 | where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS | |
1770 | was indeed at the edge. | |
1771 | ||
1772 | 1999-10-17 Miles Bader <miles@gnu.org> | |
1773 | ||
1774 | * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new | |
1775 | ESCAPE_FROM_EDGE parameter to Ffield_beginning. | |
1776 | ||
1777 | * editfns.c (text_property_eq, text_property_stickiness): Don't | |
1778 | use initializers for auto variables of type Lisp_Object. | |
1779 | (find_field): Likewise. Use braces around nested ifs. | |
1780 | (Fline_end_position): Store the raw eol in a variable, so that the | |
1781 | final expression doesn't look so ugly. | |
1782 | (Fconstrain_to_field): Doc fix. | |
1783 | (preceding_pos): Renamed from `preceeding_pos'. | |
1784 | (text_property_stickiness, find_field): Call preceding_pos, | |
1785 | not preceeding_pos. | |
1786 | ||
1787 | 1999-10-17 Miles Bader <miles@gnu.org> | |
1788 | ||
1789 | * editfns.c (Ffield_string_no_properties): New function. | |
1790 | (text_property_stickiness, preceeding_pos): New functions. | |
1791 | (Ffield_string): Remove PROPS parameter. | |
1792 | (find_field): Add MERGE_AT_BOUNDARY parameter. | |
1793 | Rewrite to use stickiness of `field' property to resolve | |
1794 | ambiguous cases. | |
1795 | (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter. | |
1796 | (Fconstrain_to_field): Likewise. | |
1797 | (syms_of_editfns): Init Sfield_string_no_properties. | |
1798 | (Ffield_string, Ferase_field, Ffield_end): | |
1799 | Supply new MERGE_AT_BOUNDARY argument to find_field. | |
1800 | (Fline_beginning_position, Fline_end_position): Supply new | |
1801 | ESCAPE_FROM_EDGE parameter to Fconstrain_to_field. | |
1802 | Pass a value of Qt for the ONLY_IN_LINE argument to | |
1803 | Fconstrain_to_field (only matters if N != 1). | |
1804 | * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter | |
1805 | to Fconstrain_to_field. | |
1806 | ||
1807 | * minibuf.c (Fminibuffer_complete_word): Use | |
1808 | Ffield_beginning to find the prompt end. | |
1809 | ||
1810 | 1999-10-17 Miles Bader <miles@gnu.org> | |
1811 | ||
1812 | * editfns.c (Fconstrain_to_field): Add get/set-current-point | |
1813 | behavior when NEW_POS is nil. | |
1814 | (find_field): Use XSETFASTINT instead of make_number. | |
1815 | * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty | |
1816 | input string by seeing where the field begins, instead of | |
1817 | looking at text-properties. | |
1818 | ||
1819 | 1999-10-17 Miles Bader <miles@gnu.org> | |
1820 | ||
1821 | * editfns.c (Qfield): New variable. | |
1822 | (find_field, Ferase_field, Ffield_string, | |
1823 | Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions. | |
1824 | (Fline_beginning_position, Fline_end_position): Constrain to any field. | |
1825 | (make_buffer_string_both): Remove minibuffer-prompt hack. | |
1826 | (syms_of_editfns): Initialize Qfield, and subr entries for | |
1827 | field functions above. | |
1828 | * minibuf.c (read_minibuf): Don't save minibuffer prompt length on | |
1829 | minibuf_save_list. | |
1830 | Don't initialize minibuffer prompt length. | |
1831 | Wrap prompt text-properties around the entire prompt. | |
1832 | Add 'prompt text-property to prompt. | |
1833 | Get final value with Ffield_string instead of make_buffer_string. | |
1834 | (read_minibuf_unwind): Don't restore minibuffer prompt length from | |
1835 | minibuf_save_list. | |
1836 | (do_completion): Get minibuffer input with Ffield_string | |
1837 | instead of Fbuffer_string. | |
1838 | Erase minibuffer input with Ferase_field instead of erase_buffer. | |
1839 | (Fminibuffer_complete_and_exit): Likewise. | |
1840 | Test whether buffer is empty by looking for the 'prompt text | |
1841 | property at the end. | |
1842 | Set prompt length by looking for the end of the prompt text property, | |
1843 | and save prompt length for later use (since there is no longer a | |
1844 | buffer variable to get it from). | |
1845 | (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed. | |
1846 | (syms_of_minibuf): Remove initializations of | |
1847 | Sminibuffer_prompt_width and Sminibuffer_prompt_end. | |
1848 | * buffer.h (struct buffer): Remove prompt_end_charpos field. | |
1849 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer): | |
1850 | Don't initialize prompt_end_charpos field. | |
1851 | * syntax.c (Fforward_word): Likewise. | |
1852 | Constrain to any field. | |
1853 | ||
3f6f7508 GM |
1854 | 1999-10-16 Gerd Moellmann <gerd@gnu.org> |
1855 | ||
1856 | * window.c (enum save_restore_action): New. | |
1857 | (save_restore_orig_size): Change parameter list. Add | |
1858 | functionality to check for valid orig_top and orig_height members | |
1859 | in a window tree. | |
1860 | (grow_mini_window): Call save_restore_orig_size with new parameter | |
1861 | list. | |
1862 | (shrink_mini_window): Restore old window sizes only if old | |
1863 | size information is valid in all windows in a window tree. | |
1864 | ||
06482119 GM |
1865 | 1999-10-15 Gerd Moellmann <gerd@gnu.org> |
1866 | ||
2710454d GM |
1867 | * xmenu.c (set_frame_menubar): Don't call |
1868 | x_set_menu_resources_from_menu_face here. | |
1869 | (update_frame_menubar): Call x_set_menu_resources_from_menu_face. | |
1870 | ||
06482119 GM |
1871 | * xfns.c (gif_load): Fix handling of interlaced GIFs. |
1872 | ||
17fa2837 DL |
1873 | 1999-10-14 Dave Love <fx@gnu.org> |
1874 | ||
1875 | * xdisp.c (handle_fontified_prop): GCPRO `pos'. | |
1876 | ||
45f93416 GM |
1877 | 1999-10-14 Gerd Moellmann <gerd@gnu.org> |
1878 | ||
1879 | * process.c (Fopen_network_stream): Don't loop if gethostbyname | |
1880 | fails and h_errno is TRY_AGAIN. | |
1881 | ||
c765b723 DL |
1882 | 1999-10-13 Dave Love <fx@gnu.org> |
1883 | ||
1884 | * filelock.c (lock_file): Move gcpro of `fn'. | |
1885 | ||
dace7f4e GM |
1886 | 1999-10-10 Gerd Moellmann <gerd@gnu.org> |
1887 | ||
1888 | * keyboard.c (auto-save-interval): Fix documentation. | |
1889 | ||
73fb36f1 RS |
1890 | 1999-10-09 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1891 | ||
1892 | * print.c (print): When removing objects from Vprint_number_table, | |
1893 | only scan the newly added objects. | |
1894 | (print_preprocess): If OBJ is a gensym, and print-continuous-numbering, | |
1895 | unconditionally force it to stay in the table. | |
1896 | ||
85177c86 GM |
1897 | 1999-10-09 Gerd Moellmann <gerd@gnu.org> |
1898 | ||
1899 | * xfns.c (prepare_image_for_display): Don't try to load image if | |
1900 | loading it failed before. | |
1901 | (lookup_image, prepare_image_for_display): Remember if loading the | |
1902 | image failed. | |
1903 | (xpm_load): Add missing UNBLOCK_INPUT. | |
1904 | ||
1905 | * dispextern.h (struct image): New member load_failed_p. | |
1906 | ||
11e4de5d SM |
1907 | 1999-10-08 Stefan Monnier <monnier@cs.yale.edu> |
1908 | ||
f28eba7b | 1909 | * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file' |
11e4de5d SM |
1910 | in the docstring. |
1911 | ||
f1da8f06 GM |
1912 | 1999-10-08 Gerd Moellmann <gerd@gnu.org> |
1913 | ||
1914 | * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>: | |
1915 | Don't call XSetInputFocus because that can generate additional | |
1916 | FocusIn events. | |
1917 | ||
c37bbd4f GM |
1918 | 1999-10-07 Jeffrey C Honig <jch@bsdi.com> |
1919 | ||
1920 | * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP. | |
1921 | ||
78cc5c64 GM |
1922 | 1999-10-07 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1923 | ||
1924 | * process.c (wait_reading_process_input): When trying to suck | |
1925 | input from one process, for accept-process-output, | |
1926 | exit that loop if we get EAGAIN or EWOULDBLOCK. | |
1927 | ||
577d9e2f GM |
1928 | 1999-10-07 Gerd Moellmann <gerd@gnu.org> |
1929 | ||
1930 | * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p. | |
1931 | (Fbitmap_spec_p): Replaces Fpixmap_spec_p. | |
1932 | (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of | |
1933 | Fpixmap_spec_p and Qpixmap_spec_p. | |
1934 | (load_face_colors, check_lface_attrs, | |
1935 | merge_face_vector_with_property, | |
1936 | Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p. | |
1937 | (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr | |
1938 | Fbitmap_spec_p. | |
1939 | ||
f5737ad2 GM |
1940 | 1999-10-07 Gerd Moellmann <gerd@gnu.org> |
1941 | ||
1942 | * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of | |
1943 | MODE_LINE_FACE_ID. | |
1944 | ||
1945 | * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers. | |
1946 | (struct x_resources) [USE_X_TOOLKIT]: New. | |
1947 | (xm_apply_resources, xm_set_menu_resources_from_menu_face) | |
1948 | [USE_MOTIF]: New. | |
1949 | (xl_apply_resources, xl_set_menu_resources_from_menu_face) | |
1950 | [USE_LUCID]: New. | |
1951 | (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New. | |
1952 | (Qmenu): New. | |
1953 | (syms_of_xfaces): Initialize Qmenu. | |
1954 | (realize_basic_faces): Realize face `menu'. | |
1955 | (resolve_face_name): New. | |
1956 | (lface_from_face_name): Use it. | |
1957 | (Finternal_set_lisp_face_attribute): Ditto. | |
1958 | (Fpixmap_spec_p): Rewritten. Extend doc string. | |
1959 | ||
1960 | * xmenu.c (set_frame_menubar, xmenu_show): Call | |
1961 | x_set_menu_resources_from_menu_face. | |
1962 | ||
1963 | * dispextern.h (enum face_id): Add MENU_FACE_ID. | |
1964 | (toplevel): Include X11/Intrinsic.h. | |
1965 | ||
6a1aa823 DL |
1966 | 1999-10-03 Ken'ichi Handa <handa@gnu.org> |
1967 | ||
1968 | * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR | |
1969 | correctly. | |
1970 | ||
26901792 DL |
1971 | 1999-09-30 Kenichi Handa <handa@etl.go.jp> |
1972 | ||
1973 | * category.c (modify_lower_category_set): Set default value of | |
1974 | TABLE correctly. | |
1975 | ||
1976 | * minibuf.c (Fminibuffer_complete_word): Calculate string byte | |
1977 | size correctly. | |
1978 | ||
1979 | 1999-09-29 Gerd Moellmann <gerd@gnu.org> | |
1980 | ||
1981 | * editfns.c (Fpropertize): Renamed from Fproperties. | |
1982 | ||
1983 | 1999-09-29 Gerd Moellmann <gerd@gnu.org> | |
1984 | ||
1985 | * xdisp.c (resize_mini_window): Do nothing if frame is an X | |
1986 | frame that hasn't been initialized yet. | |
1987 | ||
a04f1a93 PR |
1988 | 1999-09-28 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1989 | ||
1990 | * keymap.c (Fsingle_key_description): Make tem big enough. | |
1991 | (describe_buffer_bindings): Make buf big enough. | |
1992 | ||
d177c583 PR |
1993 | 1999-09-27 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1994 | ||
1995 | * intervals.c (get_local_map): Use indirect_function, | |
1996 | not Findirect_function. | |
1997 | ||
26901792 DL |
1998 | 1999-09-27 Dave Love <fx@gnu.org> |
1999 | ||
2000 | * cm.h: Remove unneeded declaration of ospeed. | |
2001 | ||
2002 | 1999-09-26 Gerd Moellmann <gerd@gnu.org> | |
2003 | ||
2004 | * lisp.h (toplevel): Add prototype for | |
2005 | next_single_char_property_change. | |
2006 | ||
2007 | * textprop.c (next_single_char_property_change): New. | |
2008 | ||
2009 | * xdisp.c (display_prop_end, invisible_text_between_p): Use | |
2010 | next_single_char_property_change. | |
2011 | ||
2012 | 1999-09-25 Gerd Moellmann <gerd@gnu.org> | |
2013 | ||
2014 | * editfns.c (Fproperties): New. | |
2015 | (syms_of_editfns): Defsubr it. | |
2016 | ||
2017 | * xfns.c (lookup_image): Set image's timestamp because it's | |
2018 | used when we look it up. | |
2019 | ||
2020 | 1999-09-23 Gerd Moellmann <gerd@gnu.org> | |
2021 | ||
2022 | * window.c (enlarge_window): Add window parameter instead of using | |
2023 | selected_window. | |
2024 | (Fdisplay_buffer): Call it with window parameter instead of | |
2025 | setting selected_window. | |
2026 | (Fenlarge_window, Fshrink_window): Ditto. | |
2027 | (shrink_mini_window): If there is no recorded height and position | |
2028 | info, resize mini-window to height 1. | |
2029 | ||
2030 | * xfns.c (image_error): Use add_to_log. | |
2031 | ||
2032 | * xfaces.c (load_pixmap): Call add_to_log without frame parameter. | |
2033 | (load_face_font_or_fontset, load_color, | |
2034 | merge_face_vector_with_property): Ditto. | |
2035 | ||
2036 | * dispextern.h: Add prototype for add_to_log. | |
2037 | ||
2038 | * xfaces.c (add_to_log): Move to xdisp.c. | |
2039 | ||
2040 | * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame | |
2041 | parameter. | |
2042 | ||
2043 | 1999-09-23 Gerd Moellmann <gerd@gnu.org> | |
2044 | ||
2045 | * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef | |
2046 | USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS. | |
2047 | ||
2048 | * xdisp.c (resize_mini_window): Use grow_mini_window and | |
2049 | shrink_mini_window. | |
2050 | ||
2051 | * window.c (window_min_size): Add parameter ignore_fixed_p. | |
2052 | (change_window_height): Call window_min_size with new parameter. | |
2053 | (shrink_window_lowest_first, save_restore_orig_size, | |
2054 | grow_mini_window, shrink_mini_window): New. | |
2055 | (make_window, replace_window): Initialize orig_top and | |
2056 | orig_height. | |
2057 | (enlarge_window): Renamed from change_window_height. Make it | |
2058 | static. | |
2059 | (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call | |
2060 | enlarge_window instead of change_window_height. | |
2061 | ||
2062 | * window.h (struct window): New members orig_top, orig_height. | |
2063 | (toplevel): Add prototypes for grow_mini_window and | |
2064 | shrink_mini_window. Remove prototype for change_window_height. | |
2065 | ||
2066 | 1999-09-21 Eli Zaretskii <eliz@gnu.org> | |
2067 | ||
2068 | * frame.c (frame_name_fnn_p): Fix previous change. | |
2069 | ||
2070 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
2071 | ||
2072 | * minibuf.c (toplevel): Move include of stdio.h to other includes. | |
2073 | ||
2074 | * dispnew.c (direct_output_for_insert): Cast arguments to | |
2075 | safe_bcopy to char *. | |
2076 | ||
2077 | * lread.c (readchar): Remove unused variables. | |
2078 | (read_filtered_event, read1, Fmapatoms): Ditto. | |
2079 | (toplevel): Include intervals.h. | |
2080 | ||
2081 | * eval.c (Fsignal): Remove unused variables. | |
2082 | (Fcommandp, do_autoload): Ditto. | |
2083 | ||
2084 | * lisp.h: Add prototype for safe_bcopy, fatal. | |
2085 | ||
2086 | * editfns.c (init_editfns): Remove unused variables. | |
2087 | (Fgoto_char, Fchar_after, Fformat): Ditto. | |
2088 | (message_text, message_length): Put in #ifndef HAVE_MENUS. | |
2089 | ||
2090 | * data.c (find_symbol_value): Remove unused variables. | |
2091 | (Faref, Fstring_to_number): Ditto. | |
2092 | (toplevel): Include stdio.h. | |
2093 | (Fnumber_to_string): Cast XINT to long for %ld. | |
2094 | ||
2095 | * casefiddle.c (casify_object): Remove unused variables. | |
2096 | (casify_region): Ditto. | |
2097 | ||
2098 | * filelock.c (get_boot_time): Put local variable used in | |
2099 | conditinally compiled section in #ifdef. | |
2100 | (toplevel): Include stdio.h. | |
2101 | ||
2102 | * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector, | |
2103 | keys_of_keymap, syms_of_keymap): Remove unused variables. | |
2104 | ||
2105 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
2106 | ||
2107 | * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows | |
2108 | whose corresponding window rows have been disabled in | |
2109 | try_window_id. | |
2110 | ||
2111 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
2112 | ||
2113 | * xdisp.c (compute_window_start_on_continuation_line): Handle case | |
2114 | that window start is out of range. | |
2115 | (handle_display_prop, handle_single_display_prop): Replace | |
2116 | marginal area specifications like `left-margin' with `(margin | |
2117 | left-margin)'. | |
2118 | (Qmargin): New. | |
2119 | (syms_of_xdisp): Initialize Qmargin. | |
2120 | ||
2121 | 1999-09-19 Gerd Moellmann <gerd@gnu.org> | |
2122 | ||
2123 | * syntax.c (update_syntax_table, find_defun_start, back_comment, | |
2124 | describe_syntax, skip_chars): Remove unused variables. | |
2125 | (back_comment, forw_comment): Add braces to if-statement with | |
2126 | if-else as dependent statement. | |
2127 | ||
2128 | * process.c (list_processes_1): Remove unused variables. | |
2129 | (Fopen_network_stream, create_process): Add parentheses to | |
2130 | conditional expressions. | |
2131 | (create_process): Put declaration of sigchld in #if 0. | |
2132 | (Fopen_network_stream): Removed unused variables. | |
2133 | (Fopen_network_stream, wait_reading_process_input, | |
2134 | wait_reading_process_input, send_process, send_process): Ditto. | |
2135 | (toplevel): Add prototypes for set_waiting_for_input and | |
2136 | keyboard_bit_set. | |
2137 | ||
2138 | * abbrev.c (Fexpand_abbrev): Remove unused variables. | |
2139 | ||
2140 | * textprop.c (Fset_text_properties): Remove unused variables. | |
2141 | (text_property_list, verify_interval_modification, | |
2142 | interval_has_all_properties): Ditto. | |
2143 | ||
2144 | * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
2145 | (Fcall_process): Remove unused variable. | |
2146 | ||
2147 | * keyboard.c (Frecursive_edit): Remove unused variable. | |
2148 | (command_loop_1, safe_run_hooks, kbd_buffer_get_event, | |
2149 | timer_check, make_lispy_event, menu_bar_items, | |
2150 | menu_bar_one_keymap, menu_bar_item, parse_menu_item, | |
2151 | parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence, | |
2152 | kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt, | |
2153 | read_key_sequence): Ditto. Fread_key_sequence, | |
2154 | Fread_key_sequence_vector, Fsuspend_emacs): Ditto. | |
2155 | (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only | |
2156 | used when GOBBLE_FIRST_EVENT is defined in #ifdef | |
2157 | (Fexecute_extended_command): Cast XINT to long for %ld. | |
2158 | (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
2159 | (toplevel): Include sys/types.h. | |
2160 | ||
2161 | * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom. | |
2162 | (toplevel): Add prototypes for stuff_char, and | |
2163 | code_convert_string_norecord. | |
2164 | ||
2165 | 1999-09-19 Gerd Moellmann <gerd@gnu.org> | |
2166 | ||
2167 | * buffer.h: Add prototype for r_re_alloc. | |
2168 | ||
2169 | * insdel.c (copy_text): Removed unused variables. | |
2170 | (count_combining_after, count_combining_after, insert_1_both, | |
2171 | insert_from_string_1, insert_from_buffer_1, check_markers): Ditto. | |
2172 | (adjust_after_replace, replace_range): Add parentheses to logical | |
2173 | expressions. Remove unused variables. | |
2174 | (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical | |
2175 | expression. | |
2176 | ||
2177 | * alloc.c (Fgarbage_collect): Remove unused variable. | |
2178 | (compact_strings): Add parentheses around assignments in | |
2179 | conditional context. | |
2180 | (toplevel): Put declaration of unused function clear_marks | |
2181 | in #if 0 like its definition. | |
2182 | ||
2183 | * lisp.h: Add prototype for shrink_regexp_cache, | |
2184 | sweep_weak_hash_tables. | |
2185 | ||
2186 | 1999-09-19 Dave Love <fx@gnu.org> | |
2187 | ||
2188 | * process.c (Fopen_network_stream): Use strerror, not gai_strerror. | |
2189 | ||
2190 | * doc.c (read_bytecode_char): Declare arg. | |
2191 | ||
2192 | * lisp.h: Declare Fcurrent_message, Fmake_temp_name, | |
2193 | read_bytecode_char, Fx_hide_busy_cursor, getloadavg. | |
2194 | ||
2195 | 1999-09-18 Richard Stallman <rms@gnu.org> | |
2196 | ||
2197 | * xdisp.c (echo_area_display): Turn off code that returned | |
2198 | without doing anything when using a terminal frame. | |
2199 | ||
27271329 PR |
2200 | 1999-09-17 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
2201 | ||
2202 | * unexelf.c (unexec): Don't get confused by a short section | |
2203 | just before the bss section. | |
2204 | ||
26901792 DL |
2205 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> |
2206 | ||
2207 | * emacs.c (main): Remove unused variables. | |
2208 | (sort_args, Fkill_emacs, Fkill_emacs): Ditto. | |
2209 | ||
2210 | * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings, | |
2211 | init_fileio_once, syms_of_sound, init_xfns, init_fns | |
2212 | init_sound, check_message_stack. | |
2213 | ||
2214 | * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
2215 | ||
2216 | * intervals.c (rotate_right, rotate_left): Add braces to avoid | |
2217 | ambiguous else warning. | |
2218 | (split_interval_left): Remove unused variables. | |
2219 | (previous_interval, adjust_intervals_for_deletion, | |
2220 | set_point_both, set_point_both, set_intervals_multibyte_1): Ditto. | |
2221 | (icount, idepth, zero_length): Move into #if 0 section below | |
2222 | original position where these are used. | |
2223 | ||
2224 | * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free. | |
2225 | ||
2226 | * buffer.c (Fkill_buffer): Remove unused variables. | |
2227 | (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists, | |
2228 | fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change, | |
2229 | init_buffer_once, (syms_of_buffer): Ditto. | |
2230 | ||
2231 | * xrdb.c (get_fallback): Remove unused variable. | |
2232 | (x_load_resources): Ditto. Put local variable used for Motif only | |
2233 | in #ifdef USE_MOTIF. | |
2234 | ||
2235 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> | |
2236 | ||
2237 | * minibuf.c (read_minibuf): Remove unused variables. | |
2238 | (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto. | |
2239 | (do_completion): Move assignment out of conditional context. | |
2240 | (Fdisplay_completion_list): Add parentheses to conditional expression. | |
2241 | ||
2242 | * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h. | |
2243 | ||
2244 | * lisp.h: Add prototype for no_switch_window. | |
2245 | ||
2246 | * window.c (Fset_window_buffer): Remove unused variables. | |
2247 | (Fset_window_margins): Ditto. | |
2248 | ||
2249 | * xdisp.c (resize_mini_window): Temporarily set the selected | |
2250 | window's or Vminibuf_scroll_window's height to "fixed" around | |
2251 | the call the change_window_height. | |
2252 | ||
2253 | * window.c (window_fixed_size_p): Check window's height_fixed_p | |
2254 | flag. | |
2255 | ||
2256 | * window.h (struct window): New member height_fixed_p. | |
2257 | ||
2258 | * dispnew.c (direct_output_forward_char): Don't use this method | |
2259 | if showing a message or a message was just cleared because we | |
2260 | might need to resize the mini-window. | |
2261 | ||
2262 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> | |
2263 | ||
2264 | * frame.c (Fdelete_frame): Correct local variable pointing to | |
2265 | selected frame after selecting new frame. | |
2266 | ||
2267 | 1999-09-15 Richard Stallman <rms@gnu.org> | |
2268 | ||
2269 | * puresize.h (BASE_PURESIZE): Increase to 525000. | |
2270 | ||
2271 | * filelock.c (Vtemporary_file_directory): New variable. | |
2272 | (syms_of_filelock): Set up Lisp variable. | |
2273 | ||
2274 | 1999-09-15 Gerd Moellmann <gerd@gnu.org> | |
2275 | ||
2276 | * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while. | |
2277 | (encode_terminal_code): Remove unused variables. | |
2278 | (turn_off_face): Ditto. | |
2279 | (toplevel): Include termcap.h if HAVE_TERMCAP_H. | |
2280 | ||
2281 | * dispnew.c (update_frame_line): If writing whole desired line, | |
2282 | don't clear to end of line if already at the end. | |
2283 | ||
2284 | 1999-09-15 Gerd Moellmann <gerd@gnu.org> | |
2285 | ||
2286 | * xdisp.c (resize_mini_window): Don't report changed window | |
2287 | height if it actually hasn't changed. | |
2288 | ||
2289 | * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove | |
2290 | unused variables. | |
2291 | (mark_shell_size_user_specified): Put in #if 0 because not used. | |
2292 | (create_frame_gcs): Put in #if 0 because currently unused. | |
2293 | (first_frame_p): Ditto. | |
2294 | ||
2295 | * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu, | |
2296 | single_submenu, update_frame_menubar, set_frame_menubar, | |
2297 | free_frame_menubar, xmenu_show, xdialog_show): Remove unused | |
2298 | variables. | |
2299 | ||
2300 | * print.c (PRINTFULLP): Removed because it is no longer used and | |
2301 | is misleading. | |
2302 | (Ferror_message_string): Remove unused variables. | |
2303 | (print_object): Cast argument of sprintf to long for `%ld' | |
2304 | specifier. Remove unused variable. | |
2305 | ||
2306 | 1999-09-14 Gerd Moellmann <gerd@gnu.org> | |
2307 | ||
2308 | * sound.c (Fplay_sound): Remove usused variables. | |
2309 | (be2hs): Put in #if 0 because it's currently not used. | |
2310 | ||
2311 | 1999-09-14 Ken Raeburn <raeburn@gnu.org> | |
2312 | ||
2313 | * print.c (Ferror_message_string, print_error_message, | |
2314 | print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit | |
2315 | member access. | |
2316 | ||
2317 | 1999-09-14 Gerd Moellmann <gerd@gnu.org> | |
2318 | ||
2319 | * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while. | |
2320 | ||
2321 | * frame.c (Fnext_frame): Remove unused variable(s). | |
2322 | (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto. | |
2323 | (store_frame_param): Add parentheses to conditional expression. | |
2324 | (Fmodify_frame_parameters): Remove unused variables. | |
2325 | (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position): | |
2326 | Ditto. | |
2327 | ||
2328 | * xfns.c (x_set_background_color): Remove unused variable(s). | |
2329 | (x_set_border_pixel): Ditto. | |
2330 | (x_set_menu_bar_lines): Put local variable used only for | |
2331 | non-toolkit case in #ifdef/#endif. | |
2332 | (x_figure_window_size): Remove unused variable(s). | |
2333 | (x_figure_window_size, x_window, lookup_image, | |
2334 | xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load, | |
2335 | png_load, jpeg_load, gif_load, x_create_tip_frame, | |
2336 | x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto. | |
2337 | ||
2338 | * xterm.c (x_scroll_bar_handle_click): Compile only if | |
2339 | not USE_TOOLKIT_SCROLL_BARS. | |
2340 | (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto. | |
2341 | ||
2342 | * dispextern.h: Add prototypes for gamma_correct and | |
2343 | x_kill_gs_process. | |
2344 | ||
2345 | * xterm.c (x_produce_glyphs): Remove unused variable(s). | |
2346 | (x_alloc_nearest_color_for_widget, note_tool_bar_highlight, | |
2347 | x_set_toolkit_scroll_bar_thumb): Ditto. | |
2348 | (x_scroll_bar_create): Move local variable to the | |
2349 | conditionally compiled section of code where it is used. | |
2350 | (x_scroll_bar_create): Remove unused variable(s). | |
2351 | (x_scroll_bar_remove, XTread_socket): Ditto. | |
2352 | (XTread_socket) <ConfigureNotify>: Move variables used for | |
2353 | non-toolkit case into conditionally compiled section of code. | |
2354 | ||
2355 | * window.h (freeze_window_starts): Fix typo in prototype. | |
2356 | ||
2357 | * xdisp.c (display_echo_area_1, try_window_id): Remove unused | |
2358 | variable(s). | |
2359 | ||
2360 | * lisp.h: Add prototype for debug_print. | |
2361 | ||
2362 | * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition | |
2363 | to use do-while. | |
2364 | ||
2365 | * fns.c (SXHASH_COMBINE): Add missing parentheses. | |
2366 | (Fchar_table_range, Fset_char_table_default, mapcar1, | |
2367 | Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s). | |
2368 | ||
2369 | * lisp.h: Add prototype for getloadavg. | |
2370 | ||
2371 | 1999-09-14 Andreas Schwab <schwab@gnu.org> | |
2372 | ||
2373 | * process.c (Fopen_network_stream): Avoid socket decriptor leak. | |
2374 | ||
2375 | * lisp.h: Declare close_file_unwind. | |
2376 | ||
2377 | 1999-09-14 Richard Stallman <rms@gnu.org> | |
2378 | ||
2379 | * filelock.c (get_boot_time): Make the temp name in the proper dir. | |
2380 | ||
2381 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
2382 | ||
2383 | * xdisp.c (redisplay_window): Make sure start_at_line_beg | |
2384 | is always set correctly. | |
2385 | ||
2386 | 1999-09-13 Dave Love <fx@gnu.org> | |
2387 | ||
2388 | * xdisp.c (move_it_in_display_line_to): Make type consistent with | |
2389 | declaration. | |
2390 | ||
2391 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
2392 | ||
2393 | * xdisp.c (QCfile): Move here from xfns.c. | |
2394 | (syms_of_xdisp): Initialize it. | |
2395 | (message2_nolog): Change for Lisp_Object selected_frame. | |
2396 | (message3_nolog, message_with_string, message, | |
2397 | setup_echo_area_for_printing, truncate_echo_area, | |
2398 | prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto. | |
2399 | ||
2400 | 1999-09-13 Dave Love <fx@gnu.org> | |
2401 | ||
2402 | * xterm.c: Don't continue #define args for benefit of old cc. | |
2403 | (xt_action_hook): Indent #error for benefit of K&R cc. | |
2404 | ||
2405 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
2406 | ||
2407 | * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame. | |
2408 | (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto. | |
2409 | (XRINGBELL): Removed. | |
2410 | ||
2411 | 1999-09-13 Dave Love <fx@gnu.org> | |
2412 | ||
2413 | * xfns.c (x_put_x_image): Make type consistent with declaration. | |
2414 | ||
2415 | * fns.c (Fmake_hash_table): Fix string continuation. | |
2416 | ||
2417 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
2418 | ||
2419 | * xfns.c (QCfile): Moved to xdisp.c. | |
2420 | (syms_of_xfns): Don't initialize QCfile. | |
2421 | (check_x_frame): Change for Lisp_Object selected_frame. | |
2422 | (check_x_display_info, x_get_resource_string): Ditto. | |
2423 | ||
2424 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
2425 | ||
2426 | * minibuf.c (choose_minibuf_frame): Don't try to set the | |
2427 | mini-buffer window's buffer, if the buffer is invalid. | |
2428 | ||
2429 | * xfns.c (QCfile): Moved to xdisp.c. | |
2430 | (syms_of_xfns): Don't initialize QCfile. | |
2431 | ||
2432 | * xdisp.c (QCfile): Move here from xfns.c. | |
2433 | (syms_of_xdisp): Initialize it. | |
2434 | ||
2435 | * lisp.h (selected_frame): Add external declaration. | |
2436 | ||
2437 | * xselect.c (x_own_selection): Change for Lisp_Object selected_frame. | |
2438 | (Fx_store_cut_buffer_internal): Ditto. | |
2439 | (Fx_rotate_cut_buffers_internal): Ditto. | |
2440 | ||
2441 | * xfaces.c (frame_or_selected_frame): Change for Lisp_Object | |
2442 | selected_frame. | |
2443 | (Finternal_set_lisp_face_attribute): Ditto. | |
2444 | (Finternal_get_lisp_face_attribute): Ditto. | |
2445 | (Finternal_lisp_face_empty_p): Ditto. | |
2446 | (Fdump_face): Ditto. | |
2447 | ||
2448 | * term.c (OUTPUT): Change for Lisp_Object selected_frame. | |
2449 | (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes, | |
2450 | set_terminal_window, set_scroll_region, reassert_line_highlight, | |
2451 | change_line_highlight, cursor_to, raw_cursor_to, clear_to_end, | |
2452 | clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw, | |
2453 | encode_terminal_code, write_glyphs, term_init): Ditto. | |
2454 | ||
2455 | * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame. | |
2456 | (kbd_input_ast, read_input_waiting): Ditto. | |
2457 | ||
2458 | * minibuf.c (choose_minibuf_frame): Change for Lisp_Object | |
2459 | selected_frame. | |
2460 | (read_minibuf): Ditto. | |
2461 | ||
2462 | * keyboard.c (command_loop_1): Change for Lisp_Object | |
2463 | selected_frame. | |
2464 | (cmd_error_internal, command_loop_1, read_char, | |
2465 | kbd_buffer_get_event, read_avail_input, | |
2466 | read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs, | |
2467 | interrupt_signal, quit_throw_to_read_char): Ditto. | |
2468 | ||
2469 | * fontset.c (Ffont_info): Change for Lisp_Object selected_frame. | |
2470 | (Ffontset_info): DItto. | |
2471 | ||
2472 | * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame. | |
2473 | ||
2474 | * dispnew.c (selected_frame): Make it a Lisp_Object. | |
2475 | (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame. | |
2476 | (direct_output_for_insert, direct_output_forward_char, | |
2477 | init_display): Ditto. | |
2478 | ||
2479 | * data.c (swap_in_symval_forwarding): Change for Lisp_Object | |
2480 | selected_frame. | |
2481 | (set_internal): Ditto. | |
2482 | ||
2483 | * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame. | |
2484 | (record_buffer): Ditto. | |
2485 | ||
2486 | * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME. | |
2487 | (do_switch_frame): Change for Lisp_Object selected_frame. | |
2488 | (Fselected_frame): Ditto. | |
2489 | (Fframe_first_window): Use SELECTED_FRAME. | |
2490 | (Fframe_root_window): Change for Lisp_Object selected_frame. | |
2491 | (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame, | |
2492 | Fprevious_frame, other_visible_frames, Fdelete_frame, | |
2493 | Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible, | |
2494 | Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame, | |
2495 | Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height, | |
2496 | Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width, | |
2497 | Fset_frame_height, Fset_frame_width): Ditto. | |
2498 | ||
2499 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
2500 | ||
2501 | * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame. | |
2502 | (message3_nolog, message_with_string, message, | |
2503 | setup_echo_area_for_printing, truncate_echo_area, | |
2504 | prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto. | |
2505 | ||
2506 | * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame. | |
2507 | (Fx_popup_dialog): Ditto. | |
2508 | ||
2509 | * xfns.c (check_x_frame): Change for Lisp_Object selected_frame. | |
2510 | (check_x_display_info, x_get_resource_string): Ditto. | |
2511 | ||
2512 | * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame. | |
2513 | (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto. | |
2514 | (XRINGBELL): Removed. | |
2515 | ||
2516 | * window.c (Fminibuffer_window): Change for Lisp_Object | |
2517 | selected_frame. | |
2518 | (Fwindow_at, Fprevious_window, window_loop, select_window_1, | |
2519 | display_buffer_1, Fdisplay_buffer, temp_output_buffer_show, | |
2520 | Fcurrent_window_configuration, init_window_once): Ditto. | |
2521 | ||
2522 | * frame.h (SELECTED_FRAME): New. | |
2523 | ||
2524 | 1999-09-12 Ken Raeburn <raeburn@gnu.org> | |
2525 | ||
2526 | * category.c (word_boundary_p): Use XCAR and XCDR. | |
2527 | * ccl.c (ccl_driver, resolve_symbol_ccl_program, | |
2528 | Fregister_code_conversion_map): Likewise. | |
2529 | * coding.c (setup_coding_system, detect_coding_system, | |
2530 | Ffind_operation_coding_system, Fset_coding_priority_internal): | |
2531 | Likewise. | |
2532 | * doc.c (get_doc_string, Fdocumentation, | |
2533 | store_function_docstring): Likewise. | |
2534 | * editfns.c (save_restriction_restore): Likewise. | |
2535 | * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger, | |
2536 | skip_debugger, find_handler_clause, Fautoload, Fapply, | |
2537 | run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode): | |
2538 | Likewise. | |
2539 | * fileio.c (Ffind_file_name_handler, Finsert_file_contents, | |
2540 | Fwrite_region, do_auto_save_unwind, Fdo_auto_save, | |
2541 | Fread_file_name): Likewise. | |
2542 | * filelock.c (unlock_all_files): Likewise. | |
2543 | * insdel.c (Fcombine_after_change_execute): Likewise. | |
2544 | * intervals.c (adjust_intervals_for_insertion): Likewise. | |
2545 | * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent, | |
2546 | Fset_keymap_parent, fix_submap_inheritance, access_keymap, | |
2547 | store_in_keymap, Fcopy_keymap, define_as_prefix, | |
2548 | current_minor_maps, Faccessible_keymaps, | |
2549 | accessible_keymaps_char_table, Fkey_description, | |
2550 | Fwhere_is_internal, where_is_internal_2, where_is_internal_1, | |
2551 | describe_buffer_bindings, describe_map_tree, shadow_lookup, | |
2552 | describe_map): Likewise. | |
2553 | * lread.c (Fload, load_unwind, close_load_descs, read_vector, | |
2554 | read_list, init_lread): Likewise. | |
2555 | * search.c (Fmatch_data): Likewise. | |
2556 | * sunfns.c (Fsun_menu_internal): Likewise. | |
2557 | * syntax.c (describe_syntax): Likewise. | |
2558 | * undo.c (record_insert, record_delete, Fundo_boundary, | |
2559 | truncate_undo_list): Likewise. | |
2560 | * vmsproc.c (child_sig): Likewise. | |
2561 | ||
2562 | * editfns.c (Fformat): Use XFLOAT_DATA. | |
2563 | ||
2564 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
2565 | ||
2566 | * keyboard.c (command_loop_1): Resize mini-window to the | |
2567 | exact size of a message displayed, if any. | |
2568 | ||
2569 | * xdisp.c (resize_mini_window): Add parameter exact_p. Resize | |
2570 | to exact size if exact_p is non-zero. | |
2571 | (display_echo_area_1): Call resize_mini_window with | |
2572 | new parameter. | |
2573 | (redisplay_internal): Ditto. | |
2574 | (resize_echo_area_axactly): New. | |
2575 | ||
2576 | * minibuf.c (read_minibuf_unwind): Call resize_mini_window with | |
2577 | new parameter. | |
2578 | ||
2579 | * dispextern.h: Change prototype of resize_mini_window. | |
2580 | Add prototype for resize_echo_area_axactly. | |
2581 | ||
2582 | * xfaces.c (Fx_family_fonts): Replaces Fx_font_list. | |
2583 | (syms_of_xfaces): Defsubr accordingly. | |
2584 | ||
2585 | * xdisp.c (hscroll_window_tree): Choose cursor row from | |
2586 | desired or current matrix. | |
2587 | (redisplay_internal): Hscroll before updating. | |
2588 | ||
2589 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
2590 | ||
2591 | * syntax.c (Fforward_word): Use prompt_end_charpos instead | |
2592 | of minibuffer_prompt_length. | |
2593 | ||
2594 | * minibuf.c (read_minibuf): Use prompt_end_charpos instead | |
2595 | of minibuffer_prompt_length. | |
2596 | (read_minibuf_unwind): Ditto. | |
2597 | (Fminibuffer_complete_and_exit): Ditto. | |
2598 | (Fminibuffer_complete_word): Ditto. | |
2599 | (Fminibuffer_prompt_end): Ditto. | |
2600 | ||
2601 | * editfns.c (Fbuffer_string): Use prompt_end_charpos instead | |
2602 | of minibuffer_prompt_length. | |
2603 | (Fline_beginning_position): Ditto. | |
2604 | ||
2605 | * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead | |
2606 | of minibuffer_prompt_length. | |
2607 | (Fmake_indirect_buffer): Ditto. | |
2608 | (Fkill_buffer): Ditto. | |
2609 | (Ferase_buffer): Ditto. | |
2610 | ||
2611 | * buffer.h (prompt_end_charpos): Replaces | |
2612 | minibuffer_prompt_length. | |
2613 | ||
2614 | * minibuf.c (read_minibuf): Return mini-buffer contents | |
2615 | without the prompt. | |
2616 | ||
2617 | * editfns.c (make_buffer_string_both): Take out the code | |
2618 | to handle mini-buffer prompts. | |
2619 | (Fbuffer_string): Handle the prompt here, instead. | |
2620 | ||
2621 | * xfaces.c (lface_from_face_name): Resolve face aliases. | |
2622 | (Qmode_line): Replaces Qmodeline. | |
2623 | (realize_basic_faces): Use Qmode_line. | |
2624 | (syms_of_xfaces): Initialize Qmode_line. | |
2625 | ||
2626 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
2627 | ||
2628 | * minibuf.c (read_minibuf): Set minibuf_prompt_width to the | |
2629 | current column after inserting prompt. | |
2630 | (Fminibuffer_prompt_width): Return minibuf_prompt_width. | |
2631 | ||
2632 | * xfaces.c (Qframe_update_face_colors): New. | |
2633 | (syms_of_xfaces): Initialize call. | |
2634 | (update_face_from_frame_parameter): Call that function when | |
2635 | the frame's background changes. | |
2636 | ||
2637 | 1999-09-12 Richard Stallman <rms@gnu.org> | |
2638 | ||
2639 | * insdel.c (del_range_1): Don't treat minibuffer prompt specially. | |
2640 | ||
2641 | 1999-09-12 Ken Raeburn <raeburn@gnu.org> | |
2642 | ||
2643 | * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect, | |
2644 | mark_object, mark_buffer): Use XCAR and XCDR. | |
2645 | * bytecode.c (Fbyte_code): Likewise. | |
2646 | * callint.c (Fcall_interactively, Fprefix_numeric_value): | |
2647 | Likewise. | |
2648 | * callproc.c (Fcall_process, Fcall_process_region, child_setup, | |
2649 | getenv_internal): Likewise. | |
2650 | * dired.c (file_name_completion): Likewise. | |
2651 | * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq, | |
2652 | assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse, | |
2653 | Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise. | |
2654 | * indent.c (Fcompute_motion): Likewise. | |
2655 | * process.c (decode_status, Fprocess_status, Fprocess_exit_status, | |
2656 | list_processes_1, Fstart_process, Fopen_network_stream, | |
2657 | wait_reading_process_input, read_process_output_call, | |
2658 | kill_buffer_processes, sigchld_handler, exec_sentinel_unwind, | |
2659 | status_notify, wait_reading_process_input): Likewise. | |
2660 | * textprop.c (PLIST_ELT_P, property_value, set_properties, | |
2661 | extend_property_ranges): Likewise. | |
2662 | * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise. | |
2663 | * w32fns.c (x_window_to_frame, x_set_frame_parameters, | |
2664 | x_report_frame_params, x_set_cursor_type, x_icon_type, | |
2665 | x_figure_window_size, Fx_create_frame, w32_load_system_font, | |
2666 | w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts, | |
2667 | w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts, | |
2668 | Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir, | |
2669 | x_display_info_for_name, Fx_display_list): Likewise. | |
2670 | * w32menu.c (menubar_id_to_frame, single_keymap_panes, | |
2671 | Fx_popup_menu, Fx_popup_dialog): Likewise. | |
2672 | * w32proc.c (Fw32_set_keyboard_layout): Likewise. | |
2673 | * w32term.c (x_window_to_scroll_bar, w32_read_socket, | |
2674 | w32_term_init, x_delete_display): Likewise. | |
2675 | * xfns.c (x_window_to_frame, x_any_window_to_frame, | |
2676 | x_non_menubar_window_to_frame, x_menubar_window_to_frame, | |
2677 | x_top_window_to_frame, x_set_frame_parameters, | |
2678 | x_report_frame_params, x_set_cursor_type, x_icon_type, | |
2679 | x_figure_window_size, Fx_create_frame, x_display_info_for_name, | |
2680 | Fx_display_list, x_create_tip_frame): Likewise. | |
2681 | * xmenu.c (menubar_id_to_frame, single_keymap_panes, | |
2682 | Fx_popup_menu, Fx_popup_dialog): Likewise. | |
2683 | * xselect.c (x_own_selection, x_get_local_selection, | |
2684 | x_handle_selection_request, x_handle_selection_clear, | |
2685 | x_clear_frame_selections, wait_for_property_change_unwind, | |
2686 | wait_for_property_change, x_handle_property_notify, | |
2687 | copy_multiple_data, x_get_foreign_selection, | |
2688 | lisp_data_to_selection_data, clean_local_selection_data, | |
2689 | x_handle_selection_notify, Fx_get_selection_internal, | |
2690 | x_disown_buffer_selections): Likewise. | |
2691 | * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts, | |
2692 | x_load_font, x_find_ccl_program, x_term_init, x_delete_display): | |
2693 | Likewise. | |
2694 | ||
2695 | * alloc.c (make_float, make_pure_float, Fpurecopy): Use | |
2696 | XFLOAT_DATA. | |
2697 | * bytecode.c (Fbyte_code): Likewise. | |
2698 | * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver, | |
2699 | fmod_float): Likewise. | |
2700 | ||
2701 | 1999-09-11 Richard Stallman <rms@gnu.org> | |
2702 | ||
2703 | * xdisp.c (run_window_scroll_functions): If hook functions switch | |
2704 | buffers, switch back after. | |
2705 | ||
2706 | 1999-09-11 Ken Raeburn <raeburn@gnu.org> | |
2707 | ||
2708 | * charset.h (GET_TRANSLATION_TABLE): Use XCDR. | |
2709 | * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR. | |
2710 | (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA. | |
2711 | * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW, | |
2712 | POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and | |
2713 | XCDR. | |
2714 | * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and | |
2715 | XCDR. | |
2716 | ||
2717 | 1999-09-10 Richard Stallman <rms@gnu.org> | |
2718 | ||
2719 | * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent, | |
2720 | not RevertToPointerRoot. | |
2721 | (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
2722 | Fix the code to clear around the scroll bar. | |
2723 | ||
2724 | 1999-09-10 Keisuke Nishida <kxn30@po.cwru.edu> | |
2725 | ||
2726 | * print.c: Support print-circle and related features. | |
2727 | (Vprint_gensym_alist): Removed. | |
2728 | (Vprint_circle, Vprint_continuous_numbering, print_number_index | |
2729 | Vprint_number_table): New variables. | |
2730 | (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros. | |
2731 | (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist. | |
2732 | (print, print_preprocess, print_preprocess_string, print_object): | |
2733 | New/modified functions with print-circle feature. Use | |
2734 | Vprint_number_table instead of Vprint_gensym_alist for print-gensym. | |
2735 | (syms_of_print): Defined new Lisp variables `print-circle', | |
2736 | `print-continuous-numbering', `print-number-table'. | |
2737 | ||
2738 | 1999-09-10 Gerd Moellmann <gerd@gnu.org> | |
2739 | ||
2740 | * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)' | |
2741 | as background color specification instead of an integer. | |
2742 | (image-cache-eviction-delay): Replaces image-eviction-seconds. | |
2743 | (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds. | |
2744 | (clear_image_cache, syms_of_xfns): Use it. | |
2745 | (Qpostscript): Replaces Qghostscript. | |
2746 | (gs_type): Use it. | |
2747 | (gs_image_p): Ditto. | |
2748 | (syms_of_xfns): Initialize Qpostscript. | |
2749 | ||
2750 | 1999-09-10 Richard Stallman <rms@gnu.org> | |
2751 | ||
2752 | * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt. | |
2753 | ||
2754 | 1999-09-09 Richard Stallman <rms@gnu.org> | |
2755 | ||
2756 | * editfns.c (Fline_beginning_position): Handle minibuffer prompt here. | |
2757 | ||
2758 | * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here. | |
2759 | ||
2760 | 1999-09-09 Gerd Moellmann <gerd@gnu.org> | |
2761 | ||
2762 | * fns.c (Fmakehash): Accept just one optional argument TEST. | |
2763 | ||
2764 | * xfns.c (QCindex): New. | |
2765 | (syms_of_xfns): Initialize QCindex. | |
2766 | (gif_load): Use it instead of `:image'. | |
2767 | ||
2768 | 1999-09-09 Richard Stallman <rms@gnu.org> | |
2769 | ||
2770 | * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW. | |
2771 | (Fwrite_region) [DOS_NT]: Handle `excl' here too. | |
2772 | ||
2773 | 1999-09-08 Gerd Moellmann <gerd@gnu.org> | |
2774 | ||
2775 | * xdisp.c (Qwhen): Replaces QCwhen. | |
2776 | (syms_of_xdisp): Initialized it instead of QCwhen. | |
2777 | (handle_single_display_prop): Use it instead of QCwhen. | |
2778 | ||
2779 | 1999-09-08 Ken'ichi Handa <handa@gnu.org> | |
2780 | ||
2781 | * charset.c (translate_char): Reset MSBs of arguments of | |
2782 | MAKE_CHAR. | |
2783 | (CHAR_COMPONENTS_VALID_P): Fix for ASCII. | |
2784 | ||
2785 | 1999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org> | |
2786 | ||
2787 | * editfns.c (Fbufsize): Accept an extra BUFFER parameter. | |
2788 | ||
2789 | * fns.c (Fbase64_decode_region): Don't place point outside of the | |
2790 | current accessible portion. | |
2791 | ||
2792 | 1999-09-07 Richard Stallman <rms@gnu.org> | |
2793 | ||
2794 | * keymap.c (fix_submap_inheritance): Do nothing if the proper | |
2795 | parent is an ancestor of SUBMAP; otherwise, add it as the | |
2796 | ultimate ancestor. | |
2797 | ||
2798 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
2799 | ||
2800 | * xdisp.c (handle_single_display_prop): Change conditional | |
2801 | display property to `:when FORM . VALUE'. | |
2802 | ||
2803 | 1999-09-07 Richard Stallman <rms@gnu.org> | |
2804 | ||
2805 | * fileio.c (Fwrite_region): Doc fix. | |
2806 | ||
2807 | 1999-09-07 Stefan Monnier <monnier@cs.yale.edu> | |
2808 | ||
2809 | * fileio.c (Qexcl): New variable. | |
2810 | (report_file_error): Handle EEXIST specially. | |
2811 | (Fwrite_region): Special handling for CONFIRM = `excl'. | |
2812 | (syms_of_fileio): Initialize Qexcl. | |
2813 | ||
2814 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
2815 | ||
2816 | * xfns.c (x_set_foreground_color): Call | |
2817 | update_face_from_frame_parameter. | |
2818 | (x_set_background_color): Ditto. | |
2819 | (x_set_mouse_color): Ditto. | |
2820 | (x_set_cursor_color): Ditto. | |
2821 | (x_set_border_color): Ditto. | |
2822 | (x_set_scroll_bar_foreground): Ditto. | |
2823 | (x_set_scroll_bar_background): Ditto. | |
2824 | ||
2825 | * xfaces.c (recompute_basic_faces): Clear face cache. | |
2826 | (Finternal_set_lisp_face_attribute): Modify frame parameters | |
2827 | if attributes of certain faces are changed. | |
2828 | (update_face_from_frame_parameter): New. | |
2829 | ||
2830 | * xfaces.c (realize_basic_faces): Realize new basic faces. | |
2831 | ||
2832 | * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID, | |
2833 | CURSOR_FACE_ID, MOUSE_FACE_ID): New. | |
2834 | ||
2835 | * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New. | |
2836 | (syms_of_xfaces): Intialize new symbols. | |
2837 | ||
2838 | * fns.c (Fmakehash): Take one argument, test, make all the | |
2839 | rest keyword arguments. | |
2840 | ||
2841 | * window.c (Fset_window_margins): Make window the first argument. | |
2842 | (set_window_buffer): Call Fset_window_margins with window as first | |
2843 | argument. | |
2844 | ||
2845 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
2846 | ||
2847 | * xfaces.c (Qfringe): Replaces Qmargin. | |
2848 | ||
2849 | 1999-09-07 Kenichi Handa <handa@etl.go.jp> | |
2850 | ||
2851 | * charset.h: Lots of comments fixed. | |
2852 | (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string. | |
2853 | (STRING_CHAR_AND_CHAR_LENGTH): This macro removed. | |
2854 | ||
2855 | * charset.c : Lots of comments fixed. | |
2856 | (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string. | |
2857 | (CHAR_COMPONENTS_VALID_P): Name changed from | |
2858 | CHAR_COMPONENT_VALID_P. Caller changed. | |
2859 | ||
2860 | 1999-09-06 Richard Stallman <rms@gnu.org> | |
2861 | ||
2862 | * insdel.c (syms_of_insdel): Define Lisp variable | |
2863 | inhibit-modification-hooks. | |
2864 | ||
2865 | 1999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de> | |
2866 | ||
2867 | * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new | |
2868 | unexaix.c. | |
2869 | ||
2870 | * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c. | |
2871 | ||
2872 | 1999-09-06 Dave Love <fx@gnu.org> | |
2873 | ||
2874 | * unexaix.c: New version incorporating Michael Sperber's changes | |
2875 | from XEmacs. Should solve problems on AIX 4.3. | |
2876 | ||
2877 | * lread.c (Vbyte_boolean_vars): New variable. | |
2878 | (defvar_bool, syms_of_lread): Use it. | |
2879 | ||
2880 | 1999-09-05 Richard Stallman <rms@gnu.org> | |
2881 | ||
2882 | * minibuf.c (read_minibuf): Put all three properties on the | |
2883 | same range, the whole prompt. | |
2884 | ||
2885 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
2886 | ||
2887 | * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook. | |
2888 | (Fplay_sound, syms_of_sound): Use it. | |
2889 | (parse_sound): Allow float volume values in the range [0, 1]. | |
2890 | (Fplay_sound): Ditto. | |
2891 | ||
2892 | * window.c (Fset_window_vscroll): Make window the first argument, | |
2893 | amount to scroll the second. Take non-negative vscroll as | |
2894 | argument. | |
2895 | (Fwindow_vscroll): Return non-negative vscroll. | |
2896 | ||
2897 | * xfns.c (Fx_show_tip): Improve documentation. | |
2898 | ||
2899 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
2900 | ||
2901 | * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c, | |
2902 | window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change | |
2903 | `top-line' and `top_line' to `header-line' and `header_line'. | |
2904 | Likewise for similar spellings. | |
2905 | ||
2906 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
2907 | ||
2908 | * xdisp.c (row_containing_pos): New. | |
2909 | (try_window_id): Use it. | |
2910 | ||
2911 | * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c, | |
2912 | lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c: | |
2913 | Change spelling of `toolbar' to `tool_bar' or `tool-bar'. | |
2914 | Likewise for upper-case etc. | |
2915 | ||
2916 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
2917 | ||
2918 | * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
2919 | Fix reference to renamed variable. | |
2920 | ||
2921 | 1999-09-04 Gerd Moellmann <gerd@gnu.org> | |
2922 | ||
2923 | * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size. | |
2924 | (window_fixed_size_p): Use Qwindow_size_fixed instead of | |
2925 | Qfixed_window_size. | |
2926 | (syms_of_window): Ditto. | |
2927 | ||
2928 | * fns.c (Fmakehash): Exchange optional test and size arguments. | |
2929 | ||
2930 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
2931 | ||
2932 | * xterm.c (XTset_vertical_scroll_bar): Block input when clearing | |
2933 | under newly created scroll bar. | |
2934 | (expose_window): If window is not yet fully initialized, do | |
2935 | nothing. This can happen when toolkit scroll bars are used and a | |
2936 | window is split. Reconfiguring the scroll bars will generate an | |
2937 | expose for a newly created window. | |
2938 | ||
2939 | * frame.h (struct frame): New member `gamma'. | |
2940 | ||
2941 | * xfns.c: Include math.h. Add extern declaration for atof in case | |
2942 | we don't see one. | |
2943 | (Qscreen_gamma): New. | |
2944 | (struct x_frame_parm_table): Add prototypes, add | |
2945 | x_set_screen_gamma. | |
2946 | (gamma_correct): New function. | |
2947 | (defined_color): Call it. | |
2948 | (x_set_screen_gamma): New. | |
2949 | (x_set_title): Add parameter old_value. | |
2950 | (RES_TYPE_FLOAT): New. | |
2951 | (x_get_arg): Handle RES_TYPE_FLOAT. | |
2952 | (Fx_create_frame): Call x_default_parameter for `screen-gamma'. | |
2953 | (lookup_pixel_color): Change call to x_alloc_nearest_color to | |
2954 | new prototype. | |
2955 | (lookup_rgb_color): Ditto. | |
2956 | (syms_of_xfns): Initialize Qscreen_gamma. | |
2957 | ||
2958 | * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]: | |
2959 | New. Allocate color for lwlib widgets. | |
2960 | (x_alloc_nearest_color): Change parameter list include the | |
2961 | frame on which to allocate colors. Gamma-correct colors. | |
2962 | (x_alloc_lighter_color): Call x_alloc_lighter_color with new | |
2963 | parameter list. | |
2964 | ||
2965 | * xterm.h: Change protorype of x_alloc_nearest_color. | |
2966 | ||
2967 | 1999-09-03 Richard Stallman <rms@gnu.org> | |
2968 | ||
2969 | * callproc.c: Delete the system-independent include of stdlib.h | |
2970 | (leaving only the one in the WINDOWSNT conditional). | |
2971 | ||
2972 | 1999-09-03 Andrew Choi <choi@cs.hku.hk> | |
2973 | ||
2974 | * callproc.c (call-process) [macintosh]: Call mac_run_command in | |
2975 | sysdep.c. The Mac code is modeled after the DOS code. | |
2976 | ||
2977 | * dispextern.h [macintosh]: Include macterm.h to define substitute X | |
2978 | Window types and macros. | |
2979 | ||
2980 | * frame.h: Do nothing if included a second time. | |
2981 | (enum output_method): Add mac_output frame type. | |
2982 | (union output_data): Add new alternative `mac'. | |
2983 | (FRAME_MAC_P): New macro. | |
2984 | ||
2985 | * frame.c (Fframep) [macintosh]: Handle mac frame type. | |
2986 | (syms_of_frame_1): Initialize Qmac. | |
2987 | (make_terminal_frame) [macintosh]: Initialize output_data.mac fields. | |
2988 | (Fmake_terminal_frame) [macintosh]: Add an alternate error check. | |
2989 | (Fmodify_frame_parameters) [macintosh]: Call | |
2990 | mac_set_frame_parameter in macterm.c. | |
2991 | ||
2992 | * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value | |
2993 | (512) because Mac compilers limit local data of a function to 32K. | |
2994 | ||
2995 | * make-docfiles.c: Correctly handle input files with Mac-style | |
2996 | eol's. | |
2997 | ||
2998 | * sysdep.c: Define numerous routines to emulate Unix system calls. | |
2999 | ||
3000 | * xfaces.c: on MacOS, define the set of colors listed in rgb.txt | |
3001 | file of an X Window environment. | |
3002 | ||
3003 | * xfaces.c: on MacOS, define the Lisp functions x-display-color-p, | |
3004 | x-display-grayscale, x-color-defined-p, and x-color-values. | |
3005 | ||
3006 | * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access) | |
3007 | (open, creat, unlink, read, write, rename, fopen, pause, alarm) | |
3008 | (signal, sleep, gmtime, localtime, ctime, time, index, mktemp) | |
3009 | (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid) | |
3010 | (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.): | |
3011 | New functions, replacing POSIX features. | |
3012 | ||
3013 | * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm) | |
3014 | (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy): | |
3015 | (InitEmacsPasswdDir, run_mac_command): New subroutines. | |
3016 | ||
3017 | * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName) | |
3018 | (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask) | |
3019 | (myPasswdDir, TempDirName, sys_siglist): New variables. | |
3020 | ||
3021 | * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask) | |
3022 | (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink) | |
3023 | (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl): | |
3024 | Define empty stubs so Emacs will link. | |
3025 | ||
3026 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
3027 | ||
3028 | * xdisp.c: Use XCAR and XCDR instead of XCONS. | |
3029 | ||
3030 | * window.h: New member frozen_window_start_p. | |
3031 | ||
3032 | * window.c (foreach_window, foreach_window_1): New. | |
3033 | (freeze_window_start, freeze_window_starts): New. | |
3034 | (make_window): Initialize frozen_window_start_p. | |
3035 | (replace_window): Ditto. | |
3036 | (Fset_window_point): Remove references to deleted variables. | |
3037 | (Fset_window_start): Ditto. | |
3038 | ||
3039 | * xdisp.c (Vresize_mini_config, resize_mini_frame, | |
3040 | resize_mini_initial_height): Removed. | |
3041 | (syms_of_xdisp): Remove references to these variables. | |
3042 | (resize_mini_window): Don't save window configuration, freeze | |
3043 | window starts instead. Enlarge window until displaying an empty | |
3044 | buffer, then shrink it. Make the function externally visible. | |
3045 | (redisplay_window): Treat frozen window start like forced start, | |
3046 | but accept point outside of the window. | |
3047 | ||
3048 | * dispextern.h: Add function prototype for resize_mini_window. | |
3049 | ||
3050 | * minibuf.c (read_minibuf_unwind): Resize mini-window when | |
3051 | reaching minibuf_level 0. | |
3052 | ||
3053 | * lisp.h: Remove extern declarations for variables deleted from | |
3054 | xdisp.c. | |
3055 | ||
3056 | * dispnew.c (adjust_frame_glyphs): Remove reference to | |
3057 | Vresize_mini_config. | |
3058 | ||
3059 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
3060 | ||
3061 | * xfns.c (x_set_scroll_bar_width): Change conditional compilation | |
3062 | to USE_TOOLKIT_SCROLL_BARS. | |
3063 | ||
3064 | * xterm.c (x_scroll_bar_create): Don't clear under scroll bar | |
3065 | here. | |
3066 | (XTset_vertical_scroll_bar): Clarify position computations. Clear | |
3067 | under newly created scroll bar. Put toolkit scroll bars in the | |
3068 | middle of the area reserved for the scroll bar. | |
3069 | ||
3070 | 1999-09-03 Kenichi Handa <handa@etl.go.jp> | |
3071 | ||
3072 | The following changes are for the new handling of mulitbyte | |
3073 | sequence. Now, except for a composite character, no multibyte | |
3074 | character in string/buffer has trailing garbage bytes. For | |
3075 | instance, the length of string "\201\300\300" is now 2, the first | |
3076 | character is Latin-1 A-grave, the second is raw \300. | |
3077 | ||
3078 | * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2 | |
3079 | are negative. | |
3080 | (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0. | |
3081 | (VALID_MULTIBYTE_CHAR_P): This macro deleted. | |
3082 | (PARSE_COMPOSITE_SEQ): New macro. | |
3083 | (PARSE_CHARACTER_SEQ): New macro. | |
3084 | (PARSE_MULTIBYTE_SEQ): New macro. | |
3085 | (CHAR_PRINTABLE_P): New macro. | |
3086 | (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char. | |
3087 | (STRING_CHAR_AND_LENGTH): Likewise. | |
3088 | (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH. | |
3089 | (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ. | |
3090 | (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise, | |
3091 | ||
3092 | * charset.c (SPLIT_COMPOSITE_SEQ): New macro. | |
3093 | (SPLIT_CHARACTER_SEQ): New macro. | |
3094 | (SPLIT_MULTIBYTE_SEQ): New macro. | |
3095 | (CHAR_COMPONENT_VALID_P): New macro. | |
3096 | (non_ascii_char_to_string): Generate a multibyte sequence as far | |
3097 | as possible. | |
3098 | (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is | |
3099 | deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ. | |
3100 | (split_non_ascii_string): Likewise. | |
3101 | (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ. | |
3102 | (char_printable_p): New function. | |
3103 | (translate_char): Check character by NATNUMP instead of INTEGERP. | |
3104 | (unibyte_char_to_multibyte): Call char_valid_p instead of | |
3105 | VALID_MULTIBYTE_CHAR_P. | |
3106 | (Fmake_char_internal): Check the arguments more rigidly. | |
3107 | (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ. | |
3108 | (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P. | |
3109 | (Fmultibyte_char_to_unibyte): Check the validity of character by | |
3110 | CHAR_VALID_P. | |
3111 | (chars_in_text): Call multibyte_chars_in_text. | |
3112 | (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ. | |
3113 | (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of | |
3114 | STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now). | |
3115 | ||
3116 | * data.c (Faset): Adjust the way to check byte-combining | |
3117 | possibility for the new handling of multibyte sequence. | |
3118 | ||
3119 | * editfns.c (Fsubst_char_in_region): Likewise. | |
3120 | ||
3121 | * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ. | |
3122 | (string_char_to_byte): Likewise. | |
3123 | (string_byte_to_char): Likewise. | |
3124 | ||
3125 | * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the | |
3126 | macro STRING_CHAR_AND_LENGTH. Caller changed. | |
3127 | ||
3128 | * insdel.c (count_combining_composition): New function. | |
3129 | (count_combining_before): Adjust the way to check byte-combining | |
3130 | possibility for the new handling of multibyte sequence. Call | |
3131 | count_combining_composition for a composite character. | |
3132 | (count_combining_after): Likewise. | |
3133 | ||
3134 | * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH. | |
3135 | (print): Likewise. | |
3136 | ||
3137 | * dispextern.h (struct it): Change the size of the member | |
3138 | `ctl_chars'. | |
3139 | ||
3140 | * xdisp.c (get_next_display_element): Display incomplete multibyte | |
3141 | sequence (e.g. \222\300) by octal form. | |
3142 | ||
3143 | 1999-09-02 Gerd Moellmann <gerd@gnu.org> | |
3144 | ||
3145 | * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0. | |
3146 | ||
3147 | * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak. | |
3148 | (cmpfn_eql, sxhash): Use XFLOAT_DATA. | |
3149 | ||
3150 | 1999-09-02 Gerd Moellmann <gerd@gnu.org> | |
3151 | ||
3152 | * buffer.c (set_buffer_internal): Never set | |
3153 | windows_or_buffers_changed. | |
3154 | ||
3155 | * xdisp.c (try_window_id): Reset first_unchanged_at_end_row | |
3156 | if we have displayed to the bottom of the window. | |
3157 | ||
3158 | * syntax.c (Fforward_word): Stop at a mini-buffer prompt end | |
3159 | in both directions. Extend documentation. | |
3160 | ||
3161 | 1999-09-01 Gerd Moellmann <gerd@gnu.org> | |
3162 | ||
3163 | * minibuf.c (read_minibuf): Flush display after setting cursor to | |
3164 | column 0. | |
3165 | ||
3166 | 1999-08-31 Gerd Moellmann <gerd@gnu.org> | |
3167 | ||
3168 | * s/freebsd.h (__FreeBSD_version): Don't define it if it is | |
3169 | already defined. This avoids a warning from buffer.c. | |
3170 | ||
3171 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
3172 | ||
3173 | * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width | |
3174 | of both margins. | |
3175 | (FRAME_X_FLAGS_AREA_WIDTH): Likewise. | |
3176 | (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New. | |
3177 | (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New. | |
3178 | ||
3179 | * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS | |
3180 | once instead of twice. | |
3181 | (FRAME_LEFT_FLAGS_AREA_WIDTH): New. | |
3182 | ||
3183 | * xterm.c: Remove unused bitmaps. | |
3184 | (continued_bits, continuation_bits, overlay_bits): Change images. | |
3185 | (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH | |
3186 | instead of FRAME_X_FLAGS_AREA_WIDTH. | |
3187 | (x_after_update_window_line): Ditto. | |
3188 | (x_draw_bitmap): Likewise. | |
3189 | (x_draw_row_bitmaps): Likewise. | |
3190 | (x_draw_glyph_string_box): Likewise. | |
3191 | (x_draw_glyphs): Likewise. | |
3192 | (x_scroll_run): Likewise. | |
3193 | (expose_window_tree): Likewise. | |
3194 | (note_mode_line_highlight): Likewise. | |
3195 | (XTset_vertical_scroll_bar): Likewise. | |
3196 | (x_clip_to_row): Likewise. | |
3197 | (x_set_window_size): Likewise. | |
3198 | ||
3199 | * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead | |
3200 | of 2 * that value. | |
3201 | ||
3202 | * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of | |
3203 | 2 * that value. | |
3204 | (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of | |
3205 | FRAME_FLAGS_AREA_WIDTH. | |
3206 | ||
3207 | * window.c (coordinates_in_window): Use | |
3208 | FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH. | |
3209 | (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once | |
3210 | instead of twice. | |
3211 | ||
3212 | * widget.c (set_frame_size): Set flags_area_extra to | |
3213 | FRAME_FLAGS_AREA_WIDTH instead of 2 * that width. | |
3214 | (EmacsFrameSetCharSize): Ditto. | |
3215 | ||
3216 | * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH | |
3217 | instead of FRAME_FLAGS_AREA_WIDTH. | |
3218 | ||
3219 | * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract | |
3220 | FRAME_FLAGS_AREA_COLS once. | |
3221 | (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add | |
3222 | FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH. | |
3223 | ||
3224 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
3225 | ||
3226 | * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers | |
3227 | in /usr/X11R6/include which are checked for with AC_CHECK_HEADER. | |
3228 | ||
3229 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
3230 | ||
3231 | * fns.c (QCweakness): Replaces QCweak. | |
3232 | (Fmake_hash_table): Ditto. | |
3233 | (Fmakehash): Ditto. | |
3234 | (syms_of_fns): Ditto. | |
3235 | ||
3236 | 1999-08-29 Richard Stallman <rms@gnu.org> | |
3237 | ||
3238 | * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp. | |
3239 | ||
3240 | * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args. | |
3241 | ||
3242 | * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED): | |
3243 | Add support for nested comments. | |
3244 | ||
863476d1 SM |
3245 | * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward): |
3246 | Consolidate the forward comment code into the new `forw_comment'. | |
3247 | (forw_comment): New subroutine. Added support for nested comments. | |
3248 | (lisp_parse_state, back_comment, Fmodify_syntax_entry) | |
3249 | (Fparse_partial_sexp): Add support for nested comments. | |
26901792 DL |
3250 | |
3251 | 1999-08-28 Ken Raeburn <raeburn@gnu.org> | |
3252 | ||
3253 | * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change | |
3254 | names of structure elements if HIDE_LISP_IMPLEMENTATION is | |
3255 | defined, to help detect code that uses knowledge of the Lisp | |
3256 | internals that it shouldn't have. | |
3257 | (XFLOAT_DATA): New macro. | |
3258 | ||
3259 | 1999-08-25 Gerd Moellmann <gerd@gnu.org> | |
3260 | ||
3261 | * syntax.c (Fforward_word): If in a mini-buffer and moving | |
3262 | backwards, stop in front of the prompt to prevent accidentially | |
3263 | moving into the read-only prompt. | |
3264 | ||
3265 | * window.c (Frecenter): Clear frame if called with nil or no arg. | |
3266 | ||
3267 | * xdisp.c (resize_mini_window): Don't resize if | |
3268 | Vmax_mini_window_height is nil. Otherwise, use a default if | |
3269 | Vmax_mini_window_height is not ot a number. | |
3270 | (syms_of_xdisp): Extend documentation of Vmax_mini_window_height. | |
3271 | ||
3272 | 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br> | |
3273 | ||
3274 | * unexelf.c: Merge IRIX debugging info patch from unexsgi.c | |
3275 | * m/iris4d.h: Use unexelf for IRIX 5.*. | |
3276 | * m/iris5d.h: Use unexelf for IRIX 6.*. | |
3277 | * unexsgi.c: Deleted. | |
3278 | ||
3279 | * unexelf.c: Auto-detect .sbss section. | |
3280 | (round_up): Make it static. | |
3281 | (unexec): Declare alignment as Elf Word. Skip ``Program | |
3282 | segment above .bss'' test on MIPS without .sbss. | |
3283 | Copy sections .got and .sdata1 sections. Adjust offsets in | |
3284 | sections .sdata, .lit4, .lit8, .got and .sdata1. | |
3285 | ||
3286 | 1999-08-25 Gerd Moellmann <gerd@gnu.org> | |
3287 | ||
3288 | * xdisp.c (try_window_id): Remove typo. | |
3289 | ||
3290 | 1999-08-24 Gerd Moellmann <gerd@gnu.org> | |
3291 | ||
3292 | * xdisp.c (try_window_id): Recognize case that PT == ZV and in | |
3293 | unchanged text at the bottom when computing the cursor position. | |
3294 | (message3_nolog): Raise frame only if minibuffer_auto_raise is | |
3295 | set. | |
3296 | ||
3297 | * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables. | |
3298 | ||
3299 | 1999-08-24 Gerd Moellmann <gerd@gnu.org> | |
3300 | ||
3301 | * xfaces.c (Qmargin): Replacement for Qbitmap_area. | |
3302 | (realize_basic_faces): Replace Qmargin for Qbitmap_area. | |
3303 | (syms_of_xfaces): Ditto. | |
3304 | ||
3305 | * window.c (Fset_window_point): Reset Vresize_mini_config. | |
3306 | (Fset_window_start): Ditto. | |
3307 | (set_window_buffer): Ditto. | |
3308 | ||
3309 | * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config. | |
3310 | ||
3311 | * xdisp.c (redisplay_window): Don't ever test just_this_one_p | |
3312 | before calling try_window. | |
3313 | (echo_area_display): If height has changed, update other windows. | |
3314 | (resize_mini_frame, resize_mini_initial_height): New. | |
3315 | (resize_mini_window): Save/restore window configuration | |
3316 | differently. | |
3317 | ||
3318 | * lisp.h (Vresize_mini_config, resize_mini_frame, | |
3319 | resize_mini_initial_height): Add extern declarations. | |
3320 | ||
3321 | * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to | |
3322 | CANON_X_UNIT. | |
3323 | ||
3324 | * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H | |
3325 | being redefined in jconfig.h. | |
3326 | ||
3327 | 1999-08-23 Ken'ichi Handa <handa@gnu.org> | |
3328 | ||
3329 | * coding.h: Include "ccl.h" instead of "../src/ccl.h". | |
3330 | ||
3331 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
3332 | ||
3333 | * alloc.c (mark_glyph_matrix): Mark strings only. | |
3334 | ||
3335 | * xdisp.c (redisplay_internal): Clear garbaged frames after | |
3336 | resizing mini-window. | |
3337 | ||
3338 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
3339 | ||
3340 | * xdisp.c (unwind_with_echo_area_buffer): Use | |
3341 | set_buffer_internal_1 instead of set_buffer_internal. | |
3342 | (with_echo_area_buffer): Ditto. | |
3343 | ||
3344 | * buffer.c (set_buffer_internal): Set windows_or_buffers_changed | |
3345 | only if buffer is displayed somewhere. | |
3346 | ||
3347 | * buffer.h (BUF_COMPUTE_UNCHANGED): New. | |
3348 | ||
3349 | * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED. | |
3350 | (gap_right): Ditto. | |
3351 | (modify_region): Ditto. | |
3352 | ||
3353 | * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED. | |
3354 | ||
3355 | * xdisp.c (Vresize_mini_config): New. | |
3356 | (resize_mini_window): Use it to save restore original window | |
3357 | configuration | |
3358 | (syms_of_xdisp): Initialize it. | |
3359 | ||
3360 | * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p. | |
3361 | ||
3362 | * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv. | |
3363 | ||
3364 | * xdisp.c (reconsider_clip_changes): New. | |
3365 | (redisplay_internal, redisplay_window): Call it. | |
3366 | (mark_window_display_accurate, redisplay_internal): Set current | |
3367 | matrix' buffer, begv, zv. | |
3368 | ||
3369 | * window.c (Fset_window_hscroll): Set | |
3370 | prevent_redisplay_optimizations_p instead of clip_changed. | |
3371 | (Fset_window_hscroll): Ditto. | |
3372 | (temp_output_buffer_show): Ditto. | |
3373 | (Fset_window_vscroll): Ditto. | |
3374 | ||
3375 | * buffer.c (reset_buffer): Set clip_changed to 0 and | |
3376 | prevent_redisplay_optimizations_p to 1. | |
3377 | (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1. | |
3378 | ||
3379 | * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED, | |
3380 | BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED, | |
3381 | BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED, | |
3382 | END_UNCHANGED): New. | |
3383 | (struct buffer_text): Add beg_unchanged, end_unchanged, | |
3384 | unchanged_modified, overlay_unchanged_modified. | |
3385 | ||
3386 | * window.h (beg_unchanged, end_unchanged, unchanged_modified, | |
3387 | overlay_unchanged_modified): Removed. | |
3388 | (with_echo_area_unwind_data): Don't save beg/end_unchanged. | |
3389 | (unwind_with_echo_area_buffer): Don't restore them. | |
3390 | (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed. | |
3391 | (text_outside_line_unchanged_p, redisplay_internal, | |
3392 | try_scrolling): Use/set buffer-specific beg/end_unchanged. | |
3393 | (redisplay_window): Let try_window_id be called if more than one | |
3394 | window is displayed. Use/set buffer-specific beg/end_unchanged. | |
3395 | (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row, | |
3396 | try_window_id): | |
3397 | Use buffer-specific beg/end_unchanged. | |
3398 | ||
3399 | * window.h (beg_unchanged, end_unchanged, unchanged_modified, | |
3400 | overlay_unchanged_modified): Remove extern declarations. | |
3401 | ||
3402 | * keyboard.c (command_loop_1): Set beg/end_unchanged per | |
3403 | buffer. | |
3404 | ||
3405 | * insdel.c (gap_left): Compute beg/end_unchanged per buffer. | |
3406 | (gap_right): Ditto. | |
3407 | (adjust_after_replace): Likewise. | |
3408 | (replace_range, del_range_2, modify_region): Likewise. | |
3409 | ||
3410 | * dispnew.c (direct_output_for_insert): Set beg_unchanged | |
3411 | and unchanged_modified per buffer. | |
3412 | ||
3413 | * coding.c (code_convert_region): Compute beg/end_unchanged per | |
3414 | buffer. | |
3415 | ||
3416 | * buffer.c (modify_overlay): Compute beg/end_unchanged | |
3417 | per buffer. | |
3418 | (Fget_buffer_create): Initialize new members of the buffer | |
3419 | structure. | |
3420 | ||
3421 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
3422 | ||
3423 | * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table. | |
3424 | ||
3425 | * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak. | |
3426 | (Qkey_value_weak): Removed. | |
3427 | (make_hash_table): Use nil, `key', `value', t for weakness. | |
3428 | (Fmake_hash_table): Ditto. | |
3429 | (copy_hash_table): New. | |
3430 | (Fcopy_hash_table): New. | |
3431 | ||
3432 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
3433 | ||
3434 | * xfns.c: Call change_frame_size and do_pending_window_change with | |
3435 | new parameter. | |
3436 | ||
3437 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
3438 | ||
3439 | * xdisp.c (resize_mini_window): Do it for truncate-lines t as | |
3440 | well. | |
3441 | (redisplay_internal): Resize mini-window only if text might | |
3442 | have changed. | |
3443 | (display_echo_area): Reset displayed echo_area_buffer to nil | |
3444 | at the end if we're displaying a nil message. | |
3445 | ||
3446 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
3447 | ||
3448 | * fns.c (hash_lookup): Test with EQ before calling key comparion | |
3449 | function. | |
3450 | (hash_remove): Ditto. | |
3451 | (cmpfn_eq): Removed. | |
3452 | (cmpfn_eql): Don't test with EQ. | |
3453 | (cmpfn_equal): Ditto. | |
3454 | (make_hash_table): Set comparison function for `eq' to null. | |
3455 | ||
3456 | * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h: | |
3457 | Remove conditional compilation on NO_PROMPT_IN_BUFFER. | |
3458 | ||
3459 | * dispextern.h (NO_PROMPT_IN_BUFFER): Removed. | |
3460 | ||
3461 | * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c, | |
3462 | xterm.c: Call change_frame_size and do_pending_window_change with | |
3463 | new parameter. | |
3464 | ||
3465 | * dispnew.c (do_pending_window_change): Add parameter `safe'. | |
3466 | (change_frame_size): Ditto. | |
3467 | (change_frame_size_1): Ditto. Deley size changes if redisplaying | |
3468 | and not called from a safe place. | |
3469 | (window_change_signal): Call change_frame_size with new parameter. | |
3470 | ||
3471 | * dispextern.h: Change prototypes for do_pending_window_change | |
3472 | and change_frame_size. | |
3473 | ||
3474 | * xfaces.c (face_at_buffer_position): Don't xassert that | |
3475 | window's buffers equals current_buffer; this is not the | |
3476 | case during echo area display. | |
3477 | ||
3478 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
3479 | ||
3480 | * xdisp.c, minibuf.c: Remove conditional compilation on | |
3481 | NO_PROMPT_IN_BUFFER. | |
3482 | ||
3483 | * minibuf.c (Fminibuffer_prompt_end): New. | |
3484 | (syms_of_minibuf): Defsubr it. Remove | |
3485 | minibuffer-prompt-in-buffer. | |
3486 | (Fminibuffer_prompt_width): Return 0 if not in mini-buffer. | |
3487 | Extend documentation. | |
3488 | ||
3489 | * xdisp.c (get_next_display_element): Display \r as ^M. | |
3490 | ||
3491 | * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear | |
3492 | under scroll bar widget. | |
3493 | ||
3494 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
3495 | ||
3496 | * xdisp.c (minibuffer_scroll_overlap): Removed because not used | |
3497 | anywhere. | |
3498 | (unwind_redisplay): Return nil. | |
3499 | (clear_garbaged_frames): New. | |
3500 | (redisplay_internal): Use it. | |
3501 | (echo_area_display): Ditto. | |
3502 | (resize_mini_window): Mew. | |
3503 | (display_echo_area_1): Use it to resize echo area window. | |
3504 | (redisplay_internal): Use it to resize active mini-window. | |
3505 | ||
3506 | * dispextern.h, lisp.h: Add function prototypes. | |
3507 | ||
3508 | * dispnew.c (set_window_cursor_after_update): Do the | |
3509 | cursor_in_echo_area case only for a mini-window showing | |
3510 | a message. Don't let cursor end up after the end of a row. | |
3511 | ||
3512 | * xdisp.c (echo_area_glyphs, echo_area_message, | |
3513 | echo_area_glyphs_length, previous_echo_glyphs, | |
3514 | previous_echo_area_message, previous_echo_area_glyphs_length): | |
3515 | Removed. | |
3516 | (Vmessage_stack, echo_area_buffer, echo_buffer, | |
3517 | display_last_displayed_message_p, Vwith_echo_area_save_vector): New. | |
3518 | (message2_nolog): Use set_message and clear_message. | |
3519 | (message3): Rename parameter len to nbytes to make clear what | |
3520 | it is. | |
3521 | (message3_nolog): Ditto. Use set_message and clear_message. | |
3522 | (update_echo_area): Rewritten. | |
3523 | (with_echo_area_buffer): New. | |
3524 | (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New. | |
3525 | (setup_echo_area_for_printing): New. | |
3526 | (display_echo_area, display_echo_area_1): New. | |
3527 | ||
3528 | (current_message, current_message_1): New. | |
3529 | (push_message, restore_message, pop_message, | |
3530 | check_message_stack): New. | |
3531 | (truncate_echo_area): Rewritten. | |
3532 | (truncate_message_1): New. | |
3533 | (set_message, set_message_1, clear_message): New. | |
3534 | (echo_area_display): Rewritten. | |
3535 | (redisplay_internal): Check for needed echo area update | |
3536 | differently. | |
3537 | (redisplay_preserve_echo_area): Rewritten. | |
3538 | (redisplay_window): Check for mini-window displaying echo area | |
3539 | message differently. | |
3540 | (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers. | |
3541 | Remove initialzation of removed variables. | |
3542 | (init_xdisp): Remove references to removed variables. | |
3543 | ||
3544 | * dispnew.c (adjust_frame_message_buffer): Removed references | |
3545 | to echo_area_glyphs and previous_echo_glyphs. | |
3546 | (direct_output_for_insert): Check for mini-window displaying | |
3547 | echo area message differently. | |
3548 | (update_frame): Likewise. | |
3549 | (set_window_cursor_after_update): Likewise. In echo area, | |
3550 | don't try to set cursor on rows that aren't enabled. | |
3551 | ||
3552 | * print.c: Remove conditional compilation on `standalone'. | |
3553 | (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy, | |
3554 | glyph_to_str_cpy): Remove that section because GLYPHs are no | |
3555 | longer used in that way. | |
3556 | (PRINTDECLARE): Add multibyte. | |
3557 | (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently. | |
3558 | (printbufidx): Removed. | |
3559 | (printchar, strout): Rewritten. | |
3560 | ||
3561 | * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to | |
3562 | a struct kboard. | |
3563 | (echo_kboard): New. | |
3564 | (echo_now): Set echo_kboard to the current kboard. | |
3565 | (cancel_echoing): Set echo_kboard to null. | |
3566 | (cmd_error_internal): Use clear_message, remove references | |
3567 | to echo_area_glyphs and echo_area_message. | |
3568 | (command_loop_1): Check for echo area messages differently. | |
3569 | (read_char): Likewise. | |
3570 | (record_menu_key): Use clear_message. | |
3571 | (Fexecute_extended_command): Check for echo area messages | |
3572 | differently. Use push_message, restore_message, pop_message. | |
3573 | ||
3574 | * alloc.c (Fgarbage_collect): Use push_message, restore_message, | |
3575 | pop_message. | |
3576 | ||
3577 | * emacs.c (shut_down_emacs): Call check_message_stack. | |
3578 | ||
3579 | * lisp.h: Add function prototypes and extern declarations for | |
3580 | new functions and variables. | |
3581 | ||
3582 | * fileio.c (Fdo_auto_save): Use push_message, restore_message, | |
3583 | pop_message. | |
3584 | ||
3585 | * minibuf.c (read_minibuf): Use clear_message instead of | |
3586 | setting echo_area_glyphs. | |
3587 | (Fminibuffer_completion_help): Ditto. | |
3588 | ||
3589 | * editfns.c (Fcurrent_message): Rewritten. | |
3590 | ||
3591 | * frame.c, window.h: Remove references to echo_area_glyphs | |
3592 | and previous_echo_glyphs. | |
3593 | ||
3594 | 1999-08-21 Dave Love <fx@gnu.org> | |
3595 | ||
3596 | * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O. | |
3597 | * aix4-1.h: Likewise. | |
3598 | ||
3599 | * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize. | |
3600 | ||
3601 | 1999-08-20 Gerd Moellmann <gerd@gnu.org> | |
3602 | ||
3603 | * xfns.c: Remove tiff34 prefix from include. | |
3604 | ||
3605 | 1999-08-20 Dave Love <fx@gnu.org> | |
3606 | ||
3607 | * cm.c: Revert previous change. | |
3608 | ||
3609 | 1999-08-19 Gerd Moellmann <gerd@gnu.org> | |
3610 | ||
3611 | * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear | |
3612 | under scroll bar with width FRAME_SCROLL_BAR_COLS. | |
3613 | ||
3614 | 1999-08-18 Dave Love <fx@gnu.org> | |
3615 | ||
3616 | * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use | |
3617 | stdlib.h. | |
3618 | ||
3619 | * doprnt.c: Use stdlib.h, unistd.h. | |
3620 | ||
3621 | * config.in: Add HAVE_TERMCAP_H. | |
3622 | ||
3623 | * cm.c: Use termcap.h. | |
3624 | ||
3625 | 1999-08-18 Gerd Moellmann <gerd@gnu.org> | |
3626 | ||
3627 | * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for | |
3628 | FRAME_X_WINDOW (f) being null at the of the function. If widgets | |
3629 | cannot be created we will already have crashed earlier. Call | |
3630 | lw_set_main_areas with a null menu-bar widget, so that we have | |
3631 | a reasonable default. | |
3632 | (Fx_create_frame): Rearranged so that Lisp errors during frame | |
3633 | initialization cause less damage. Initialize menu bar widget | |
3634 | here. | |
3635 | ||
3636 | 1999-08-18 Gerd Moellmann <gerd@gnu.org> | |
3637 | ||
3638 | * dispnew.c (update_frame_line): Fix previous change. If writing | |
3639 | whole line clear to end of frame. | |
3640 | ||
3641 | 1999-08-17 Gerd Moellmann <gerd@gnu.org> | |
3642 | ||
3643 | * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area' | |
3644 | and `right-bitmap-area' if position is in the bitmap areas. This | |
3645 | avoids an error when clicking on the bitmap areas. Instead, they | |
3646 | are currently treated like clicks inside the window. | |
3647 | (coordinates_in_window): Return 5 and 6 for bitmap areas. | |
3648 | (Qleft_bitmap_area, Qright_bitmap_area): New. | |
3649 | (syms_of_window): Initialize new symbols. | |
3650 | ||
3651 | * dispnew.c (update_frame_line): If writing whole line, | |
3652 | don't write trailing spaces unless we must. | |
3653 | ||
3654 | * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p. | |
3655 | (redisplay_internal): Register unwind_redisplay with | |
3656 | register_unwind_protect. | |
3657 | (try_window_reusing_current_matrix): If new start > old start, | |
3658 | give up if start pos of first reusable row is not equal to new | |
3659 | start. | |
3660 | ||
3661 | * eval.c (Fsignal): Don't reset redisplaying_p here. | |
3662 | ||
3663 | * xterm.c (expose_area): If row extends face to end of line, | |
3664 | write the whole line. | |
3665 | ||
3666 | 1999-08-16 Gerd Moellmann <gerd@gnu.org> | |
3667 | ||
3668 | * dispextern.h (struct it): Remove member | |
3669 | show_trailing_whitespace_p. | |
3670 | ||
3671 | * dispnew.c (direct_output_for_insert): Use | |
3672 | Vshow_trailing_whitespace instead of former iterator member | |
3673 | show_trailing_whitespace_p. | |
3674 | (direct_output_forward_char): Don't do it if hightlighting | |
3675 | trailing whitespace. | |
3676 | ||
3677 | * xdisp.c (Qshow_trailing_whitespace): Removed. | |
3678 | (Vshow_trailing_whitespace): Added. | |
3679 | (init_iterator): Remove initialization code for | |
3680 | show_trailing_whitespace_p. | |
3681 | (redisplay_internal): Don't try cursor movement in this_line | |
3682 | if showing trailing whitespace. | |
3683 | (redisplay_window): Likewise for cursor movement in current | |
3684 | matrix and try_window_id. | |
3685 | (try_window_reusing_current_matrix): Likewise. | |
3686 | (trailing_whitespace_p): Return 0 if trailing whitespace is | |
3687 | in front of point. | |
3688 | (display_line): Use Vshow_trailing_whitespace instead of | |
3689 | former iterator member show_trailing_whitespace_p. | |
3690 | (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace. | |
3691 | ||
3692 | 1999-08-16 Gerd Moellmann <gerd@gnu.org> | |
3693 | ||
3694 | * window.c (Fpos_visible_in_window_p): Rewritten. | |
3695 | ||
3696 | * xfaces.c (add_to_log): Renamed from display_message. | |
3697 | Don't display messages in echo area. | |
3698 | ||
3699 | * xterm.c (x_draw_glyph_string_box): Use the background width | |
3700 | of the glyph string for the width of the box. | |
3701 | ||
3702 | 1999-08-16 Stefan Monnier <monnier@cs.yale.edu> | |
3703 | ||
3704 | * syntax.c (Fforward_comment): Set comstyle for Scomment_fence. | |
3705 | ||
3706 | 1999-08-16 Geoff Voelker <voelker@cs.washington.edu> | |
3707 | ||
3708 | * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and | |
3709 | background first, and then set other parameters that might | |
3710 | depend upon their new values. | |
3711 | ||
3712 | 1999-08-15 Gerd Moellmann <gerd@gnu.org> | |
3713 | ||
3714 | * xfaces.c (Vfont_list_limit): New. | |
3715 | (syms_of_xfaces): Make it a user-variable. | |
3716 | (DEFAULT_FONT_LIST_LIMIT): New. | |
3717 | (sorted_font_list): If Vfont_list_limit is an integer > 0, list | |
3718 | maximally that number of fonts, otherwise use | |
3719 | DEFAULT_FONT_LIST_LIMIT. | |
3720 | (Fx_font_family_list): Bind `font-list-limit' to higher values | |
3721 | until we have all fonts. | |
3722 | (Fxfont_list): Additionally return the full names of fonts and | |
3723 | their registry and encoding. | |
3724 | ||
3725 | * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
3726 | Simplify clearing "under" scroll bar. | |
3727 | ||
3728 | * window.c (Qfixed_window_size): New. | |
3729 | (syms_of_window): Initialiaze it. | |
3730 | (check_all_windows): Add return type void. | |
3731 | (window_fixed_size_p): New. Return non-zero if window | |
3732 | is fixed-size. | |
3733 | (window_min_size_1): New. | |
3734 | (window_min_size): Handle fixed-size windows. | |
3735 | (size_window): New. Rewritten combination of set_window_height and | |
3736 | set_window_width that handles fixed-size windows. | |
3737 | (set_window_height): Call it. | |
3738 | (set_window_width): Call it. | |
3739 | (Fsplit_window): Give an error on attempt to split a fixed-size | |
3740 | window. | |
3741 | (change_window_height): Partly rewritten to handle fixed-size | |
3742 | windows. | |
3743 | ||
3744 | 1999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com> | |
3745 | ||
3746 | * process.c (Fopen_network_stream): Fix previous change. | |
3747 | ||
3748 | 1999-08-13 Karl Heuer <kwzh@gnu.org> | |
3749 | ||
3750 | * xdisp.c (line_number_display_limit_width): New var. | |
3751 | (decode_mode_spec): Use it instead of hardcoded value. | |
3752 | (syms_of_xdisp): Defvar it. | |
3753 | ||
3754 | 1999-08-13 Richard M. Stallman <rms@gnu.org> | |
3755 | ||
3756 | * eval.c (run_hook_list_with_args): Gcpro `globals'. | |
3757 | (run_hook_with_args): Likewise. | |
3758 | ||
3759 | * window.h (struct window): New field too_small_ok. | |
3760 | ||
3761 | * window.c (set_window_height, set_window_width): | |
3762 | If window starts out "too small", set its too_small_ok flag. | |
3763 | If window's too_small_ok flag is set, don't delete it | |
3764 | unless it is so small it would cause a crash. | |
3765 | ||
3766 | 1999-08-13 Gerd Moellmann <gerd@gnu.org> | |
3767 | ||
3768 | * window.c (MINSIZE): Removed. | |
3769 | (window_min_size): New. | |
3770 | (set_window_height): Use window_min_size. | |
3771 | (change_window_height): Ditto. | |
3772 | ||
3773 | 1999-08-12 Gerd Moellmann <gerd@gnu.org> | |
3774 | ||
3775 | * indent.c (vmotion): Don't add in mini-buffer prompt width | |
3776 | if prompts are inserted into mini-buffer. | |
3777 | ||
3778 | 1999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com> | |
3779 | ||
3780 | * config.in: Add HAVE_GETADDRINFO. | |
3781 | * process.c (Fopen_network_stream): Use getaddrinfo. | |
3782 | ||
3783 | 1999-08-11 Gerd Moellmann <gerd@gnu.org> | |
3784 | ||
3785 | * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of | |
3786 | glyphs to -1. | |
3787 | ||
3788 | * xdisp.c (face_before_or_after_it_pos): If position after | |
3789 | or before iterator's current position in the buffer is out | |
3790 | of bounds, return the iterator's original face id. | |
3791 | ||
3792 | * dispnew.c (mirror_make_current): If desired row isn't enabled, | |
3793 | just swap glyphs pointers between current and desired row. | |
3794 | (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy | |
3795 | desired matrix method string to current matrix. | |
3796 | ||
3797 | 1999-08-11 Kenichi Handa <handa@etl.go.jp> | |
3798 | ||
3799 | * lisp.h (CHAR_MODIFIER_MASK): New macro. | |
3800 | ||
3801 | * lread.c (read_escape): For Control modifier, pay attention to | |
3802 | multibyte character. | |
3803 | (read1): Likewise. Singal error or a multibyte character which | |
3804 | has a modifer bit. Check validity of Shift modifer. | |
3805 | ||
3806 | * charset.c (non_ascii_char_to_string): Handle modifier bits as | |
3807 | the same as Lisp reader. | |
3808 | ||
3809 | 1999-08-10 Richard M. Stallman <rms@gnu.org> | |
3810 | ||
3811 | * charset.h (BCOPY_SHORT): Fix typo `unsigined'. | |
3812 | ||
3813 | 1999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br> | |
3814 | ||
3815 | * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define. | |
3816 | ||
3817 | 1999-08-10 Eli Zaretskii <eliz@gnu.org> | |
3818 | ||
3819 | * msdos.c (IT_set_face): Abort if the default face is not realized | |
3820 | and cached. | |
3821 | (IT_write_glyphs): Reset the screen face to the default face | |
3822 | before writing glyphs. | |
3823 | ||
3824 | * xfaces.c (realize_default_face) [MSDOS]: Don't take default | |
3825 | colors from the frame here. | |
3826 | (realize_tty_face) [MSDOS]: Do it here. Update the face | |
3827 | attributes with the actual name of the color taken from the | |
3828 | frame. | |
3829 | ||
3830 | * dosfns.c (msdos_stdcolor_name): Remove const from return value. | |
3831 | * dosfns.h (msdos_stdcolor_name): Ditto for the prototype. | |
3832 | ||
3833 | * frame.c (Fframe_parameters): Swap foreground and background | |
3834 | colors returned in frame parameters if the frame has reverse in | |
3835 | its parameter alist. | |
3836 | (Fmake_terminal_frame): Make a unique copy of face_alist for | |
3837 | each frame. | |
3838 | ||
3839 | 1999-08-07 Richard Stallman <rms@gnu.org> | |
3840 | ||
3841 | * buffer.c (Fprevious_overlay_change): Just return | |
3842 | the answer obtained from overlays_at. | |
3843 | ||
3844 | * xfns.c (xpm_load) [!XpmAllocCloseColors]: | |
3845 | Use XpmCloseness and attrs.closeness instead. | |
3846 | ||
3847 | 1999-08-06 Richard Stallman <rms@gnu.org> | |
3848 | ||
3849 | * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT. | |
3850 | ||
3851 | 1999-08-06 Geoff Voelker <voelker@cs.washington.edu> | |
3852 | ||
3853 | * dired.c (directory_files_internal, Fdirectory_files_and_attributes, | |
3854 | Ffile_attributes_lessp): New functions. | |
3855 | (Fdirectory_files): Use directory_files_internal. | |
3856 | (syms_of_dired): Initialize Fdirectory_files_and_attributes, | |
3857 | Ffile_attributes_lessp. | |
3858 | ||
3859 | * w32.c (stat): Check for directory ending in separator when | |
3860 | doing readdir fast path. | |
3861 | ||
3862 | * w32fns.c (x_set_icon_type): Support setting frame icons. | |
3863 | * w32term.c (x_bitmap_icon): New function. | |
3864 | (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon. | |
3865 | ||
3866 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
3867 | ||
3868 | * xdisp.c (set_iterator_to_next): After delivering a character | |
3869 | from a display vector, restore face and charset to what they were | |
3870 | before the display vector was processed. | |
3871 | ||
3872 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
3873 | ||
3874 | * xdisp.c (reseat_at_next_visible_line_start): New parameter | |
3875 | on_newline_p. | |
3876 | (set_iterator_to_next): After delivering last char | |
3877 | from display vector, reseat on next visible line start if | |
3878 | dpvec_char_len < 0. | |
3879 | (next_element_from_buffer): Set dpvec_char_len to -1 for | |
3880 | selective display. | |
3881 | ||
3882 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
3883 | ||
3884 | * xdisp.c (compute_line_metrics): If first line's physical ascent | |
3885 | is larger than its logical ascent, use the physical ascent, and | |
3886 | make the row taller. Set row's overlapping_p flag. | |
3887 | ||
3888 | * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p. | |
3889 | (direct_output_for_insert): Ditto. | |
3890 | ||
3891 | * dispextern.h (struct glyph_row): Add overlapping_p. | |
3892 | ||
3893 | * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps. | |
3894 | ||
3895 | * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New. | |
3896 | (MATRIX_ROW_OVERLAPS_SUCC_P): New. | |
3897 | ||
3898 | * dispnew.c (direct_output_for_insert): Don't use this method if | |
3899 | row is overlapped by others. | |
3900 | (update_text_area): Write full line if current line is overlapped. | |
3901 | (redraw_overlapped_rows): New. | |
3902 | (update_window): Call it. | |
3903 | (redraw_overlapping_rows): New. | |
3904 | (update_window): Call it. | |
3905 | (scrolling_window): Make sure overlapped_p flag in current rows is | |
3906 | unchanged. | |
3907 | (row_equal_p): Take rows overlapped_p flag into account. | |
3908 | ||
3909 | * dispextern.h (struct glyph_row): Add flag overlapped_p. | |
3910 | ||
3911 | * xterm.c (x_fix_overlapping_area): New. | |
3912 | (x_redisplay_interface): Add x_fix_overlapping_area. | |
3913 | ||
3914 | * dispnew.c (adjust_glyphs): Block input while adjusting matrices. | |
3915 | ||
3916 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
3917 | ||
3918 | * xterm.c (x_draw_glyphs): Add parameter overlaps_p. | |
3919 | (struct glyph_string): Add member for_overlaps_p. | |
3920 | (x_get_glyph_string_clip_rect): If glyph string draws foreground | |
3921 | of overlapping rows, clip to window bottom. | |
3922 | (x_fill_glyph_string): Add parameter overlaps_p. | |
3923 | (x_fill_composite_glyph_string): Ditto. | |
3924 | (BUILD_GLYPH_STRINGS): Ditto. | |
3925 | (BUILD_CHAR_GLYPH_STRINGS): Ditto. | |
3926 | (x_draw_glyph_string): Don't draw anything but the foreground | |
3927 | if glyph string draws row overlaps. | |
3928 | ||
3929 | * dispnew.c (direct_output_for_insert): Don't use this | |
3930 | optimization for rows that overlap others. | |
3931 | (update_window_line): Return non-zero if display has changed. | |
3932 | (update_text_area): Ditto. | |
3933 | (update_window): Record if display has been changed. | |
3934 | ||
3935 | * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New. | |
3936 | ||
3937 | * dispextern.h (struct redisplay_interface): Add | |
3938 | fix_overlapping_area. | |
3939 | ||
3940 | * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p. | |
3941 | ||
3942 | * dispextern.h (struct glyph): Add overlaps_vertically_p. | |
3943 | ||
3944 | * xterm.c (x_produce_image_glyph): Compute iterator's physical | |
3945 | ascent and descent. | |
3946 | (x_produce_stretch_glyph): Ditto. | |
3947 | (x_produce_glyphs): Ditto. | |
3948 | ||
3949 | * xdisp.c (init_iterator): Reset physical line height info | |
3950 | after producing special glyphs. | |
3951 | (display_toolbar_line): Set physical line height info. | |
3952 | (compute_line_metrics): Ditto. | |
3953 | (display_line): Ditto. | |
3954 | (display_string): Ditto. | |
3955 | ||
3956 | * term.c (produce_glyphs): Set iterator's physical height | |
3957 | information. | |
3958 | ||
3959 | * dispnew.c (blank_row): Compute glyph row's physical height. | |
3960 | (row_equal_p): Take physical row heights into account. | |
3961 | (direct_output_for_insert): Ditto. | |
3962 | (update_text_area): Ditto. | |
3963 | ||
3964 | * dispextern.h (struct glyph_row): Add phys_ascent and | |
3965 | phys_height. | |
3966 | (struct it): Add phys_ascent, phys_descent, max_phys_ascent, | |
3967 | max_phys_descent. | |
3968 | ||
3969 | 1999-08-04 Stefan Monnier <monnier@cs.yale.edu> | |
3970 | ||
3971 | * buffer.c (switch_to_buffer_1): New subroutine, taken out from | |
3972 | Fswitch_to_buffer. | |
3973 | (no_switch_buffer): New function. | |
3974 | (Fswitch_to_buffer): Call them. Don't get confused | |
3975 | by "same-window" buffers in a dedicated frame. | |
3976 | ||
3977 | * window.c (display-buffer): Don't get confused | |
3978 | by "same-window" buffers in a dedicated frame. | |
3979 | ||
3980 | 1999-08-04 Andreas Schwab <schwab@gnu.org> | |
3981 | ||
3982 | * insdel.c (insert_from_string_1): Check gap size against number | |
3983 | of outgoing bytes, not incoming bytes. | |
3984 | ||
3985 | 1999-08-03 Tom Breton <tob@world.std.com> | |
3986 | ||
3987 | * lread.c (read1): Added circular reading code to #N=. | |
3988 | (SUBSTITUTE): New macro. | |
3989 | (seen_list): New variable. | |
3990 | (substitute_object_in_subtree): New function. | |
3991 | (substitute_object_recurse): New function. | |
3992 | (substitute_in_interval): New function. | |
3993 | ||
3994 | 1999-08-02 Eli Zaretskii <eliz@gnu.org> | |
3995 | ||
3996 | * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h. | |
3997 | ||
3998 | * frame.c (make_terminal_frame): Don't call init_frame_faces if | |
3999 | noninteractive, for termcap frames as well. | |
4000 | ||
4001 | * sysdep.c (init_sys_modes): Call init_frame_faces for termcap | |
4002 | frames. | |
4003 | ||
4004 | 1999-08-01 Richard Stallman <rms@gnu.org> | |
4005 | ||
4006 | * fns.c (internal_equal): Correct overlay comparison. | |
4007 | ||
4008 | 1999-07-31 Richard M. Stallman <rms@caffeine.ai.mit.edu> | |
4009 | ||
4010 | * xfns.c (x_set_internal_border_width): | |
4011 | Call do_pending_window_change. Don't block input, don't call XFlush. | |
4012 | (x_set_vertical_scroll_bars): Call do_pending_window_change. | |
4013 | (x_set_scroll_bar_width, x_set_font): Likewise. | |
4014 | ||
4015 | * frame.c (Fset_frame_height): Call do_pending_window_change. | |
4016 | (Fset_frame_width, Fset_frame_size): Likewise. | |
4017 | ||
4018 | * xterm.c (x_set_window_size): When calling change_frame_size, | |
4019 | specify 1 for DELAY. | |
4020 | ||
4021 | * widget.c (EmacsFrameSetCharSize): Don't call | |
4022 | do_pending_window_change here. | |
4023 | ||
4024 | 1999-07-30 Dave Love <fx@gnu.org> | |
4025 | ||
4026 | * config.in: Add HAVE_STDLIB_H. | |
4027 | ||
4028 | 1999-07-30 Richard M. Stallman <rms@gnu.org> | |
4029 | ||
4030 | * process.c (create_process): Detect failure of `pipe'. | |
4031 | ||
4032 | 1999-07-30 Keisuke Nishida <kei@psn.net> | |
4033 | ||
4034 | * alloc.c (allocate_vectorlike): Add missing increment. | |
4035 | ||
4036 | * data.c (Fdefalias): Call Ffset instead of duplicating code. | |
4037 | ||
4038 | * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT | |
4039 | before calling indirect_function. | |
4040 | ||
4041 | 1999-07-30 Eli Zaretskii <eliz@gnu.org> | |
4042 | ||
4043 | * dispextern.h (load_color, lookup_derived_face): Declare | |
4044 | prototypes. | |
4045 | ||
4046 | * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces, | |
4047 | it will be done later. | |
4048 | ||
4049 | * frame.c (make_terminal_frame) [MSDOS]: Don't call | |
4050 | init_frame_faces if non-interactive. | |
4051 | (Fframe_parameters) [MSDOS]: Replace indexing into colornames[] | |
4052 | array with a call to msdos_stdcolor_name. The font name is now | |
4053 | "ms-dos", consistent with realize_tty_face. | |
4054 | ||
4055 | * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an | |
4056 | MSDOS frame. | |
4057 | ||
4058 | * window.c (Fset_window_configuration) [MSDOS]: Don't call | |
4059 | x_set_toolbar_lines. | |
4060 | ||
4061 | * xfaces.c (load_color): Remove static from definition and remove | |
4062 | prototype. | |
4063 | [MSDOS]: Add a DOS-specific version of load_color. | |
4064 | (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P. | |
4065 | (lookup_derived_face): New function. | |
4066 | (realize_default_face): Support MSDOS frames. | |
4067 | [MSDOS]: If fore/background colors are unspecified, inherit them | |
4068 | from the frame. | |
4069 | (realize_face): Support MSDOS frames. | |
4070 | (realize_tty_face): Support MSDOS frames. | |
4071 | [MSDOS]: If the face color is not in Vface_tty_color_alist, call | |
4072 | load_color to try to find a suitable approximation. If the face | |
4073 | is inverse-video, swap the foreground and background colors. | |
4074 | ||
4075 | * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New | |
4076 | functions. | |
4077 | ||
4078 | * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare. | |
4079 | ||
4080 | * msdos.h: Remove redundant declarations (most of them are now in | |
4081 | dispextern.h). | |
4082 | ||
4083 | * msdos.c (IT_set_face): Rewritten for the new redisplay engine. | |
4084 | Use default frame colors if the face doesn't specify them; invert | |
4085 | the colors if highlight is ON. | |
4086 | (IT_write_glyphs): Rewritten for the new redisplay engine. | |
4087 | (IT_change_line_highlight): Add (unused) parameter Y, since that's | |
4088 | how the hook is called by term.c. | |
4089 | (IT_copy_glyphs): New function, copies an area of the display in | |
4090 | video RAM. | |
4091 | (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since | |
4092 | redisplay now calls it even if char_ins_del_ok is zero. | |
4093 | (IT_set_frame_parameters): Prototype changed. Calls the new | |
4094 | load_color. Puts the new fore/background colors into the default | |
4095 | face on current frame. | |
4096 | (IT_menu_display): Rewritten to handle the new struct glyph | |
4097 | instead of a char array. | |
4098 | (XMenuActivate): Call lookup_derived_face to create and use | |
4099 | special faces for the pop-up and drop-down menus. | |
4100 | ||
4101 | 1999-07-29 Gerd Moellmann <gerd@gnu.org> | |
4102 | ||
4103 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call | |
4104 | XawScrollbarSetThumb if thumb parameters haven't changed because | |
4105 | that function apparently isn't optimized for this case. | |
4106 | ||
4107 | 1999-07-29 Eli Zaretskii <eliz@gnu.org> | |
4108 | ||
4109 | * msdos.c (getdefdir): Don't return failure indication when | |
4110 | _fixpath sets errno to ENOSYS. | |
4111 | ||
4112 | 1999-07-28 Gerd Moellmann <gerd@gnu.org> | |
4113 | ||
4114 | * xdisp.c (string_char_and_length): New. Use it everywhere | |
4115 | instead of STRING_CHAR_AND_LENGTH in xdisp.c. | |
4116 | ||
4117 | 1999-07-28 Kenichi Handa <handa@etl.go.jp> | |
4118 | ||
4119 | * fns.c (count_combining): New function. | |
4120 | (struct textprop_rec): New structure. | |
4121 | (concat): Copy text properties correctly when byte combining | |
4122 | occurs. | |
4123 | ||
4124 | 1999-07-28 Gerd Moellmann <gerd@gnu.org> | |
4125 | ||
4126 | * xterm.c (x_setup_relief_color): Don't try smart color allocation | |
4127 | if display is mono. | |
4128 | (x_draw_row_bitmaps): If face has stipple, don't switch | |
4129 | to foreground color for clearing areas, and set the fill style. | |
4130 | ||
4131 | * xfaces.c (load_face_colors): Load background color if setting | |
4132 | stipple, too. | |
4133 | (prepare_face_for_display): Use FillOpaqueStippled instead of | |
4134 | FillStippled. | |
4135 | ||
4136 | 1999-07-26 Ken'ichi Handa <handa@gnu.org> | |
4137 | ||
4138 | * xterm.c (x_find_ccl_program): Add casting. | |
4139 | ||
4140 | * w32fns.c (w32_find_ccl_program): Add casting. | |
4141 | ||
4142 | 1999-07-27 Gerd Moellmann <gerd@gnu.org> | |
4143 | ||
4144 | * dispextern.h (struct glyph_row): Flag internal_border_p removed. | |
4145 | ||
4146 | * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource | |
4147 | because this will try to access a nonexisting widget. | |
4148 | ||
4149 | 1999-07-26 Markus Rost <rost@gnu.org> | |
4150 | ||
4151 | * fns.c (Fgethash): Fix order of variables (patch by gerd). | |
4152 | (Fputhash): Ditto. | |
4153 | (Fremhash): Ditto. | |
4154 | ||
4155 | 1999-07-26 Gerd Moellmann <gerd@gnu.org> | |
4156 | ||
4157 | * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth | |
4158 | value to frame width and height. | |
4159 | ||
4160 | * xterm.c (x_get_glyph_string_clip_rect): Take internal border | |
4161 | into account for full-width windows. Don't add scroll bar width | |
4162 | to width of clip rect. | |
4163 | (x_draw_glyph_string_box): Add 1 to right x of full width lines. | |
4164 | (x_set_glyph_string_background_width): Add 1 to background width. | |
4165 | (x_draw_glyphs): Take internal border into account for full-width | |
4166 | lines. | |
4167 | ||
4168 | 1999-07-26 Richard M. Stallman <rms@gnu.org> | |
4169 | ||
4170 | * xfns.c (x_set_mouse_color): Always unload the old color. | |
4171 | Don't allow nil as color value. | |
4172 | (x_set_cursor_color, x_set_background_color, x_set_foreground_color): | |
4173 | Always unload the old color. | |
4174 | ||
4175 | * indent.c (Fmove_to_column): Extend end of line only if FORCE is t. | |
4176 | ||
4177 | 1999-07-26 Karl Heuer <kwzh@gnu.org> | |
4178 | ||
4179 | * fns.c (Fy_or_n_p): Doc fix. | |
4180 | ||
4181 | 1999-07-26 Kenichi Handa <handa@etl.go.jp> | |
4182 | ||
4183 | * ccl.h (setup_ccl_program): The type is changed to `int'. | |
4184 | ||
4185 | * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be | |
4186 | stored in the following CCL code. Adjusted for the change of | |
4187 | Vccl_program_table. | |
4188 | (resolve_symbol_ccl_program): Adjusted for the new style of | |
4189 | embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt | |
4190 | is resolving failed. | |
4191 | (ccl_get_compiled_code): New function. | |
4192 | (setup_ccl_program): Function type changed from `void' to `int'. | |
4193 | Resolve symbols in CCL_PROG. | |
4194 | (Fccl_program_p): New function. | |
4195 | (Fccl_execute): Get compiled CCL code by just calling | |
4196 | setup_ccl_program. | |
4197 | (Fccl_execute_on_string): Likewise. | |
4198 | (Fregister_ccl_program): Adjusted for the change of | |
4199 | Vccl_program_table. | |
4200 | ||
4201 | * coding.c (setup_coding_system): Get compiled CCL code by just | |
4202 | calling setup_ccl_program. | |
4203 | ||
4204 | * xterm.c (x_find_ccl_program): Get compiled CCL code by just | |
4205 | calling setup_ccl_program. | |
4206 | ||
4207 | * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just | |
4208 | calling setup_ccl_program. | |
4209 | ||
4210 | 1999-07-23 Gerd Moellmann <gerd@gnu.org> | |
4211 | ||
4212 | * xfaces.c (frame_update_line_height): Just use the height of the | |
4213 | frame's fontset or font, instead of taking face fonts into | |
4214 | account. | |
4215 | ||
4216 | * xdisp.c (get_next_display_element): Display DEL as `^?'. | |
4217 | ||
4218 | 1999-07-23 Richard M. Stallman <rms@gnu.org> | |
4219 | ||
4220 | * window.c (Fsplit_window): For default size, round up for left window. | |
4221 | ||
4222 | 1999-07-21 Joe Ramey <ramey@ti.com> | |
4223 | ||
4224 | * filelock.c (lock_if_free): Return -1 if check_lock_owner | |
4225 | has returned -1 (lockfile exists but is not a symlink?). | |
4226 | ||
4227 | 1999-07-20 Gerd Moellmann <gerd@gnu.org> | |
4228 | ||
4229 | * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to | |
4230 | because of a change in cursor_gc made in 20.4. | |
4231 | ||
4232 | 1999-07-19 Gerd Moellmann <gerd@gnu.org> | |
4233 | ||
4234 | * xterm.c (x_calc_absolute_position): Subtract menu bar height | |
4235 | for YNegative, if using X toolkit. | |
4236 | ||
4237 | * xfns.c (x_real_positions): Don't subtract window borders | |
4238 | from positions returned. | |
4239 | ||
4240 | 1999-07-17 Gerd Moellmann <gerd@gnu.org> | |
4241 | ||
4242 | * xrdb.c (x_load_resources): Set double-click time defaults | |
4243 | for Motif list boxes from double-click-time. | |
4244 | ||
4245 | * fns.c (Vhash_table_tests): Remvoed. | |
4246 | (Qhash_table_test): New. | |
4247 | (syms_of_fns): Initialize Qhash_table_test. | |
4248 | (Fmake_hash_table): Look up user-defined tests in symbol prop | |
4249 | `hash-table-test'. | |
4250 | (Fdefine_hash_table_test): Store test and hash function as | |
4251 | symbol prop `hash-table-test'. | |
4252 | (make_hash_table): Add parameters user_test and user_hash. | |
4253 | ||
4254 | * window.c (set_window_buffer): Set window margins for tty | |
4255 | frames, too. | |
4256 | (Fset_window_margins): Ditto. | |
4257 | ||
4258 | * term.c (append_glyph): Use glyph area of iterator instead of | |
4259 | always TEXT_AREA. | |
4260 | ||
4261 | * dispnew.c (update_frame_1): Add left margin width to cursor | |
4262 | hpos. | |
4263 | (direct_output_for_insert): Ditto. | |
4264 | (direct_output_forward_char): Ditto. | |
4265 | ||
4266 | * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p. | |
4267 | ||
4268 | * dispextern.h (struct glyph_matrix): Add top_line_p. | |
4269 | ||
4270 | 1999-07-16 Gerd Moellmann <gerd@gnu.org> | |
4271 | ||
4272 | * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P | |
4273 | instead. | |
4274 | ||
4275 | * fns.c (cmpfn_eq): Add hash code parameters. | |
4276 | (cmpfn_eql): Ditto. | |
4277 | (cmpfn_equal): Ditto, and compare hash codes before calling Fequal. | |
4278 | (cmpfn_user_defined): Likewise. | |
4279 | ||
4280 | 1999-07-15 Gerd Moellmann <gerd@gnu.org> | |
4281 | ||
4282 | * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8. | |
4283 | ||
4284 | * fns.c (maybe_resize_hash_table): Correct computation of | |
4285 | index vector size. | |
4286 | (make_hash_table): Ditto. | |
4287 | (Fmakehash): New. | |
4288 | ||
4289 | * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames. | |
4290 | ||
4291 | * alloc.c (gc_sweep): Call sweep_weak_hash_tables. | |
4292 | (survives_gc_p): Make it externally visible. | |
4293 | (mark_object): Ditto. | |
4294 | ||
4295 | * fns.c (remove_hash_entry): Removed. | |
4296 | (sweep_weak_hash_tables): New. | |
4297 | ||
4298 | * print.c (print): Print more information about hash tables. | |
4299 | ||
4300 | * xfns.c (image_spec_hash): Removed. | |
4301 | (lookup_image): Use sxhash instead of image_spec_hash. | |
4302 | (image_spec_equal_p): Removed. | |
4303 | (lookup_image): Use Fequal instead of image_spec_equal_p. | |
4304 | ||
4305 | 1999-07-14 Gerd Moellmann <gerd@gnu.org> | |
4306 | ||
4307 | * lisp.h (P_): Moved to top of file. | |
4308 | ||
4309 | * fns.c (make_hash_table): Set new members. | |
4310 | ||
4311 | * alloc.c (mark_object): Mark hash table's user_hash_function. | |
4312 | Mark index vector for weak hash tables. | |
4313 | ||
4314 | * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function, | |
4315 | user_hash_function, cmpfn, and hashfn. | |
4316 | ||
4317 | * fns.c (build_hash): Removed. | |
4318 | (hash_test): Removed. | |
4319 | (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New. | |
4320 | (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New. | |
4321 | ||
4322 | 1999-07-13 Gerd Moellmann <gerd@gnu.org> | |
4323 | ||
4324 | * alloc.c (survives_gc_p): New. | |
4325 | ||
4326 | * print.c (print): Add hash table handling. | |
4327 | ||
4328 | * alloc.c (mark_object): Add code to mark hash tables. | |
4329 | ||
4330 | * lisp.h (GC_HASH_TABLE_P): New. | |
4331 | ||
4332 | * emacs.c (main): Call init_fns. | |
4333 | ||
4334 | * fns.c (init_fns): New. | |
4335 | ||
4336 | * fns.c: Add hash table implementation. | |
4337 | ||
4338 | * lisp.h (PVEC_HASH_TABLE): New. | |
4339 | (struct Lisp_Hash_Table): New. | |
4340 | (XHASH_TABLE): New. | |
4341 | (XSET_HASH_TABLE): New. | |
4342 | (HASH_TABLE_P): New. | |
4343 | (CHECK_HASH_TABLE): New. | |
4344 | (DEFAULT_HASH_SIZE): New. | |
4345 | (DEFAULT_REHASH_THRESHOLD): New. | |
4346 | (DEFAULT_REHASH_SIZE): New. | |
4347 | ||
4348 | * xterm.c (x_draw_glyphs): Add parameters real_start and real_end. | |
4349 | (x_write_glyphs): Compute overwritten cursor using real start | |
4350 | and end positions of display. | |
4351 | (x_insert_glyphs): Ditto. | |
4352 | ||
4353 | 1999-07-10 Gerd Moellmann <gerd@gnu.org> | |
4354 | ||
4355 | * keyboard.c (read_char): Use message3_nolog to show help-echo. | |
4356 | ||
4357 | * dispnew.c (blank_row): Add y-position as parameter. Compute | |
4358 | visible height. | |
4359 | ||
4360 | * xdisp.c (next_element_from_string): Give padding spaces | |
4361 | a position of -1. | |
4362 | ||
4363 | * dispnew.c (adjust_glyph_matrix): Some work to support | |
4364 | marginals areas on tty frames in a future version. | |
4365 | (allocate_matrices_for_frame_redisplay): Ditto. | |
4366 | ||
4367 | * xdisp.c (display_line): At ZV, set glyph row's displays_text_p | |
4368 | to zero if number of glyphs in the row is <= 1. | |
4369 | ||
4370 | 1999-07-09 Gerd Moellmann <gerd@gnu.org> | |
4371 | ||
4372 | * dispnew.c (buffer_posn_from_coords): Take left marginal area | |
4373 | into account. | |
4374 | ||
4375 | * xdisp.c (handle_display_prop): Don't reset area if handing | |
4376 | a property from a string that came from a `display' property. | |
4377 | (handle_single_display_prop): Don't handle recursive `display' | |
4378 | properties. | |
4379 | (handle_single_display_prop): Handle some display property | |
4380 | forms for terminal frames. | |
4381 | (Qimage): Moved here from xfns.c. | |
4382 | ||
4383 | * dispextern.h (struct it): New field string_from_display_prop_p. | |
4384 | ||
4385 | * xterm.c (x_clip_to_row): Don't let clip_rect include top | |
4386 | line. | |
4387 | ||
4388 | 1999-07-08 Gerd Moellmann <gerd@gnu.org> | |
4389 | ||
4390 | * xdisp.c (handle_single_display_prop): Handle `:when FORM'. | |
4391 | ||
4392 | * window.c (set_window_buffer): Set window's vscroll to zero. | |
4393 | ||
4394 | * xdisp.c (QCwhen): New. | |
4395 | (display_prop_end): New. | |
4396 | (handle_single_display_prop): Use it. | |
4397 | (debug_method_add): Print buffer name if tracing. | |
4398 | (try_window_reusing_current_matrix): Compute visible height | |
4399 | of reused rows. Fix cursor position calculation in case of | |
4400 | top-line. | |
4401 | ||
4402 | * dispextern.h (struct redisplay_interface): Add parameter | |
4403 | cursor_on_p to update_window_end_hook. | |
4404 | ||
4405 | * xterm.c (x_update_window_end): Add parameter cursor_on_p. | |
4406 | ||
4407 | 1999-07-07 Gerd Moellmann <gerd@gnu.org> | |
4408 | ||
4409 | * xdisp.c (redisplay_internal): Ensure that redisplayinp_p | |
4410 | doesn't become negative when decrementing it. | |
4411 | ||
4412 | * eval.c (Fsignal): Reset redisplaying_p to zero. | |
4413 | ||
4414 | * xdisp.c (try_window_reusing_current_matrix): Call hooks | |
4415 | for window update. | |
4416 | (try_window_id): Ditto. | |
4417 | ||
4418 | * xterm.c (x_clear_end_of_line): Handle top-line correctly. | |
4419 | (x_scroll_run): Ditto. | |
4420 | (any_help_event_p): New. | |
4421 | (x_initialize): Set it to zero. | |
4422 | (XTread_socket): Clear help echo only if any_help_event_p. | |
4423 | ||
4424 | * xdisp.c (init_iterator): Set top_line_p. | |
4425 | (start_display): Use correct initial y if top-line is present. | |
4426 | (make_cursor_line_fully_visible): Bug fixes for top-line. | |
4427 | (try_scrolling): Ditto. | |
4428 | (try_window_reusing_current_matrix): Ditto. | |
4429 | ||
4430 | * dispextern.h (struct it): Add top_line_p. | |
4431 | ||
4432 | * dispnew.c (shift_glyph_matrix): Move some computations out | |
4433 | of the loop. | |
4434 | ||
4435 | * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and | |
4436 | XFLOATINT. | |
4437 | ||
4438 | 1999-07-06 Gerd Moellmann <gerd@gnu.org> | |
4439 | ||
4440 | * dispnew.c (update_frame_1): When setting cursor in echo area, | |
4441 | skip only over padding spaces at the end. | |
4442 | ||
4443 | * xfaces.c (realize_tty_face): Set face's font_name field to | |
4444 | "tty". | |
4445 | ||
4446 | * term.c (update_end): Turn cursor on only if selected window's | |
4447 | cursor_off_p flag is not set. | |
4448 | ||
4449 | 1999-07-05 Gerd Moellmann <gerd@gnu.org> | |
4450 | ||
4451 | * term.c (TS_cursor_visible): Renamed from TS_visual_mode. | |
4452 | (TS_cursor_normal): Renamed from TS_end_visual_mode. | |
4453 | (TS_cursor_invisible): New. | |
4454 | (term_init): Initialize TS_cursor_invisible. | |
4455 | (tty_hide_cursor): New. | |
4456 | (tty_show_cursor): New. | |
4457 | (update_end): Show tty cursor. | |
4458 | (update_begin): Hide tty cursor to prevent cursor flickering | |
4459 | during redisplays triggered by timers (stealth fontification). | |
4460 | ||
4461 | * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers. | |
4462 | ||
4463 | * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events | |
4464 | in scroll bars. | |
4465 | (x_handle_toolbar_click): Set modifier bits. | |
4466 | ||
4467 | 1999-07-04 Gerd Moellmann <gerd@gnu.org> | |
4468 | ||
4469 | * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer | |
4470 | instead of a pointer to a volatile input_event. | |
4471 | (kbd_buffer_store_event): Remove volatile modifier from | |
4472 | declaration of local variable `sp'. | |
4473 | (Fdiscard_input): Don't cast when assigning kbd_store_ptr | |
4474 | to kbd_fetch_ptr. | |
4475 | ||
4476 | 1999-07-03 Gerd Moellmann <gerd@gnu.org> | |
4477 | ||
4478 | * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged | |
4479 | only if buffer is modified. Return quickly if changes are | |
4480 | above window start. | |
4481 | ||
4482 | 1999-07-02 Gerd Moellmann <gerd@gnu.org> | |
4483 | ||
4484 | * dispextern.h (HSCROLL_WINDOWS): Removed. | |
4485 | ||
4486 | * xdisp.c (mark_window_display_accurate): Don't set | |
4487 | w->region_showing. | |
4488 | (redisplay_internal): Don't call redraw_garbaged_frames. | |
4489 | ||
4490 | 1999-07-01 Gerd Moellmann <gerd@gnu.org> | |
4491 | ||
4492 | * xdisp.c (echo_area_display): Don't display truncation marks | |
4493 | for messages because 20.4 doesn't do it either. | |
4494 | (redisplay_window): Case same window start. Instead of giving | |
4495 | up when cursor is partially visible, make it fully visible. | |
4496 | (mark_window_display_accurate): Some cleanup. Record window's | |
4497 | last cursor information. | |
4498 | (debug_method_add): Improved. | |
4499 | (redisplay_internal): Record last cursor info only if not | |
4500 | consider_all_windows_p. | |
4501 | ||
4502 | * dispnew.c (update_window): Update top line after scrolling. | |
4503 | (blank_row): Renamed from make_empty_enabled_row. | |
4504 | (increment_glyph_row_buffer_positions): Increment positions | |
4505 | in buffers, only. | |
4506 | ||
4507 | * window.c (Fcoordinates_in_window_p): Add top-line to doc | |
4508 | string. | |
4509 | ||
4510 | 1999-06-30 Gerd Moellmann <gerd@gnu.org> | |
4511 | ||
4512 | * dispnew.c (update_window): Check that updated row is visible. | |
4513 | ||
4514 | * xterm.c (x_draw_row_bitmaps): Check for invisible rows at | |
4515 | top of window differently. | |
4516 | ||
4517 | * xdisp.c (try_window_reusing_current_matrix): Don't do it | |
4518 | if region is showing. | |
4519 | ||
4520 | * dispnew.c (adjust_glyph_matrix): Check w->vscroll when | |
4521 | avoiding matrix reallocation. Set window_vscroll in matrix. | |
4522 | ||
4523 | * dispextern.h (struct glyph_matrix): Add member window_vscroll. | |
4524 | ||
4525 | * lwlib-Xm.c: Add function prototypes. | |
4526 | ||
4527 | * xdisp.c (debug_method_add): New. | |
4528 | (debug_redisplay_method): Removed. | |
4529 | (try_window_reusing_current_matrix): Handle case where old | |
4530 | window start is the same as new window start. | |
4531 | ||
4532 | * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method' | |
4533 | an array instead of a pointer. | |
4534 | ||
4535 | * lwlib-Xm.c (xm_update_label): Use val->name to look up | |
4536 | a label string from resources. | |
4537 | (xm_update_label): Add some comments. | |
4538 | ||
4539 | * xfns.c (Fx_show_tip): Undo previous change. | |
4540 | ||
4541 | * xterm.c (x_append_glyph): Clear glyph->u.val. | |
4542 | ||
4543 | * dispextern.h (struct glyph): Increase size of face_id bit-field | |
4544 | for CHAR_GLYPH to 12. | |
4545 | ||
4546 | 1999-06-29 Gerd Moellmann <gerd@gnu.org> | |
4547 | ||
4548 | * xfaces.c (x_charset_registry): Make it externally visible. | |
4549 | ||
4550 | 1999-06-28 Gerd Moellmann <gerd@gnu.org> | |
4551 | ||
4552 | * dispnew.c (update_window): Use mode_line_p flag of rows | |
4553 | instead of WINDOW_WANTS_MODELINE_P. | |
4554 | ||
4555 | * xterm.c (clear_mouse_face): Make externally visible. | |
4556 | ||
4557 | * xfns.c (Fx_show_tip): Clear mouse face before showing tip. | |
4558 | ||
4559 | * xterm.c (expose_line): Handle exposure of top-lines. | |
4560 | ||
4561 | * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight | |
4562 | if mouse_face_mouse_frame is null. | |
4563 | ||
4564 | * xdisp.c (redisplay_window): If window is echo_area_window, | |
4565 | and update_mode_line is set, update menubar and toolbar. | |
4566 | ||
4567 | * dispnew.c (space_glyph): Set its charpos to -1. | |
4568 | (update_frame_1): Ignore trailing padding spaces. | |
4569 | ||
4570 | * xdisp.c (next_element_from_c_string): Set position of padding | |
4571 | glyphs to -1. | |
4572 | ||
4573 | 1999-06-27 Gerd Moellmann <gerd@gnu.org> | |
4574 | ||
4575 | * xfns.c (x_laplace_read_row): Use XQueryColors instead of | |
4576 | XQueryColor. | |
4577 | ||
4578 | * xdisp.c (display_menu_bar): Remove unwarranted assertion. | |
4579 | (set_cursor_from_row): Skip over glyphs having a null object at | |
4580 | the start of rows. | |
4581 | (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation | |
4582 | glyphs. | |
4583 | (handle_invisible_prop): Compute next change only when needed. | |
4584 | (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode | |
4585 | line. | |
4586 | ||
4587 | 1999-06-26 Gerd Moellmann <gerd@gnu.org> | |
4588 | ||
4589 | * xrdb.c (x_load_resources): Don't set resource for double-click | |
4590 | time. | |
4591 | ||
4592 | * xdisp.c (try_window_id): Return quickly if all changes are | |
4593 | below the window's current matrix end. | |
4594 | ||
4595 | * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window | |
4596 | parameter. | |
4597 | ||
4598 | * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p | |
4599 | in desired not in current matrix. | |
4600 | (try_window_reusing_current_matrix): Rotate matrices starting | |
4601 | at start_vpos instead of 0. | |
4602 | ||
4603 | * xterm.c (expose_window): Use window_text_bottom_y. | |
4604 | (fast_find_position): Ditto. | |
4605 | ||
4606 | * xdisp.c (redisplay_window): Use window_text_bottom_y. | |
4607 | (try_window_reusing_current_matrix): Ditto. | |
4608 | (get_last_unchanged_at_beg_row): Ditto. | |
4609 | (init_iterator): Ditto. | |
4610 | ||
4611 | * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one | |
4612 | more row. | |
4613 | (check_matrix_invariants): Use window_text_bottom_y. | |
4614 | (update_window): Ditto. | |
4615 | (scrolling_window): Ditto. | |
4616 | ||
4617 | * xdisp.c (window_text_bottom_y): New. | |
4618 | ||
4619 | 1999-06-25 Gerd Moellmann <gerd@gnu.org> | |
4620 | ||
4621 | * xterm.c (XTread_socket): Set mouse_face_frame to zero after | |
4622 | clearing mouse face. | |
4623 | (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If | |
4624 | event.xcrossing.focus is not set, and focus is in the menu bar, | |
4625 | set focus frame as if event.xcrossing.focus were set. | |
4626 | ||
4627 | 1999-06-24 Gerd Moellmann <gerd@gnu.org> | |
4628 | ||
4629 | * keyboard.c (make_lispy_event): Handle mouse on top lines. | |
4630 | * keyboard.c (make_lispy_movement): Ditto. | |
4631 | ||
4632 | * window.c (coordinates_in_window): Return 4 if on top line. | |
4633 | (Fcoordinates_in_window_p): Return `top-line' if on top line. | |
4634 | ||
4635 | * xdisp.c (window_box_height): Subtract top line height. | |
4636 | (window_box): Add top line height to top y position if top line | |
4637 | exists. | |
4638 | (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to | |
4639 | the top line row of the window. Set initial y-position to | |
4640 | window's top line height plus delta. | |
4641 | (start_display): Choose start glyph row depending on whether | |
4642 | window has a top line. | |
4643 | (try_scrolling): Take top line height into account for aggressive | |
4644 | scrolling. | |
4645 | (compute_window_start_on_continuation_line): Take top line into | |
4646 | account. | |
4647 | (redisplay_window): Ditto. If top line height has changed, | |
4648 | trigger a new redisplay. | |
4649 | (try_window_reusing_current_matrix): Take top line into account. | |
4650 | (find_last_row_displaying_text): Ditto. | |
4651 | (get_last_unchanged_at_beg_row): DItto. | |
4652 | (try_window_id): Ditto. | |
4653 | (compute_line_metrics): Ditto. | |
4654 | ||
4655 | * dispnew.c (shift_glyph_matrix): Compute visible row height | |
4656 | taking top line of window into account. | |
4657 | (update_window): Update top line. If scrolling_window detects | |
4658 | that all rows are equal, only set cursor. | |
4659 | (update_window_line): Call after_update_window_line_hook if | |
4660 | mode_line_p flag of rows has changed. | |
4661 | (scrolling_window): Add parameter top_line_p. Return -1 if | |
4662 | all rows are equal. | |
4663 | (mode_line_string): Add parameter mode_line_p. Handle strings | |
4664 | in top lines. | |
4665 | ||
4666 | * dispextern.h (MATRIX_TOP_LINE_ROW): New. | |
4667 | (MATRIX_FIRST_TEXT_ROW): New. | |
4668 | (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height. | |
4669 | (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New. | |
4670 | (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New. | |
4671 | (MATRIX_TOP_LINE_HEIGHT): New. | |
4672 | (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height. | |
4673 | (CURRENT_TOP_LINE_HEIGHT): New. | |
4674 | (DESIRED_TOP_LINE_HEIGHT): New. | |
4675 | (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New. | |
4676 | (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces | |
4677 | WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT. | |
4678 | (WINDOW_DISPLAY_TEXT_HEIGHT): New. | |
4679 | ||
4680 | * xterm.c (x_after_update_window_line): Don't draw bitmaps for top | |
4681 | lines. | |
4682 | (x_draw_row_bitmaps): Take top line into account when clearing | |
4683 | bitmap area. | |
4684 | (x_estimate_mode_line_height): Replacement for | |
4685 | x_frame_mode_line_height. | |
4686 | (x_get_glyph_string_clip_rect): Take top line into account. | |
4687 | (x_clear_end_of_line): Ditto. | |
4688 | (note_mode_line_highlight): Add parameter mode_line_p. Handle | |
4689 | top lines. | |
4690 | (note_mouse_highlight): Call note_mode_line_highlight for top lines. | |
4691 | (x_erase_phys_cursor): Take top line into account. | |
4692 | ||
4693 | * xdisp.c (window_box_height): Subtract top line height if | |
4694 | window wants a top line. | |
4695 | (display_mode_lines): New. | |
4696 | (redisplay_window): Call it. | |
4697 | (display_mode_line): Add parameters face_id and format. | |
4698 | ||
4699 | * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New. | |
4700 | (MATRIX_TOP_LINE_HEIGHT): New. | |
4701 | ||
4702 | * xterm.c (x_frame_mode_line_height): Add parameter face_id. | |
4703 | ||
4704 | * term.c (estimate_mode_line_height): Renamed from | |
4705 | frame_mode_line_height. Add parameter face_id. | |
4706 | (estimate_mode_line_height_hook): Renamed from | |
4707 | frame_mode_line_height_hook. | |
4708 | (produce_special_glyphs_hook): Removed. | |
4709 | (produce_glyphs_hook): Removed. | |
4710 | ||
4711 | 1999-06-23 Gerd Moellmann <gerd@gnu.org> | |
4712 | ||
4713 | * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New. | |
4714 | (struct glyph_row): Add mode_line_p. | |
4715 | ||
4716 | * xfaces.c (realize_basic_faces): Realize face `top-line'. | |
4717 | (Qtop_line): New. | |
4718 | (syms_of_xfaces): Initialize Qtop_line. | |
4719 | ||
4720 | * dispextern.h (TOP_LINE_FACE_ID): New. | |
4721 | ||
4722 | * buffer.c (init_buffer_once): Set default for | |
4723 | top_line_format to nil. | |
4724 | (init_buffer_once): Init top_line_format. | |
4725 | (default-top-line-format): New. | |
4726 | (top-line-format): New buffer-local variable. | |
4727 | ||
4728 | * buffer.h: Add top_line_format. | |
4729 | ||
4730 | * xdisp.c (overlay_arrow_changed_p): Removed because not used. | |
4731 | ||
4732 | 1999-06-17 Dave Love <fx@gnu.org> | |
4733 | ||
4734 | * xfns.c: Move the PNG section before the JPEG one to avoid | |
4735 | problems surrounding setjmp.h/png.h on GNU/Linux. | |
4736 | ||
4737 | 1999-06-17 Gerd Moellmann <gerd@gnu.org> | |
4738 | ||
4739 | * xfns.c (x_kill_gs_process): Don't free colors. | |
4740 | ||
4741 | 1999-06-17 Dave Love <fx@gnu.org> | |
4742 | ||
4743 | * s/gnu-linux.h: Zap spurious ~. | |
4744 | ||
4745 | 1999-06-16 Gerd Moellmann <gerd@gnu.org> | |
4746 | ||
4747 | * xfns.c (gif_load): Improve multi-image support. | |
4748 | ||
4749 | 1999-06-15 Gerd Moellmann <gerd@gnu.org> | |
4750 | ||
4751 | * xfns.c (gif_load): Support multi-image files. | |
4752 | ||
4753 | * Makefile.in (LIBGIF): Use libungif. | |
4754 | ||
4755 | * configure.in (HAVE_GIF): Use libungif instead of libgif | |
4756 | because the former doesn't contain patented compression code. | |
4757 | ||
4758 | * xdisp.c (compute_window_start_on_continuation_line): Don't | |
4759 | do it if line start is too far away from window start. | |
4760 | ||
4761 | 1999-06-14 Gerd Moellmann <gerd@gnu.org> | |
4762 | ||
4763 | * buffer.c (init_buffer_once): Set buffer_local_flags for | |
4764 | scroll_*_aggressively. | |
4765 | (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively. | |
4766 | (init_buffer_once): Set defaults for these variables. | |
4767 | (syms_of_buffer): Add default-scroll-*-aggressively. | |
4768 | ||
4769 | * buffer.h (scroll_up_aggressively): New. | |
4770 | (scroll_down_aggressively): New. | |
4771 | ||
4772 | * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with | |
4773 | a static PNG library. | |
4774 | ||
4775 | * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib | |
4776 | in case it's a static library. | |
4777 | ||
4778 | * Makefile.in (ctagsfiles): Split so that files starting | |
4779 | with an `x' are found before files starting with `w32'. | |
4780 | (ctagsfiles1): New. | |
4781 | (ctagsfiles2): New. | |
4782 | (TAGS): Use ctagsfiles[12] instead of ctagsfiles. | |
4783 | ||
4784 | * xdisp.c (compute_window_start_on_continuation_line): New. | |
4785 | (redisplay_window): Use it. | |
4786 | (INFINITY): New. | |
4787 | (reseat_to_string): Use it. | |
4788 | (hscroll_window_tree): Ditto. | |
4789 | (compute_window_start_on_continuation_line): Ditto. | |
4790 | (redisplay_window): Don't force display with a new window start. | |
4791 | ||
4792 | 1999-06-06 Gerd Moellmann <gerd@gnu.org> | |
4793 | ||
4794 | * xfns.c (x_report_frame_params): Don't report `outer-window-id' | |
4795 | if widget not present. | |
4796 | ||
4797 | * xdisp.c (prepare_menu_bars): Ignore tooltip frame. | |
4798 | ||
4799 | 1999-06-04 Gerd Moellmann <gerd@gnu.org> | |
4800 | ||
4801 | * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return | |
4802 | value of realize_basic_faces. | |
4803 | (load_face_font_or_fontset): Store full font name in face. | |
4804 | (realize_default_face): Use full font name. | |
4805 | ||
4806 | * xlwmenu.c (make_shadow_gcs) ]emacs]: Use x_alloc_nearest_color. | |
4807 | ||
4808 | * xterm.c (x_produce_glyphs): Set member char_to_display. | |
4809 | (x_append_glyph): Store char_to_display in glyphs. | |
4810 | ||
4811 | * dispextern.h (struct it): Add char_to_display. | |
4812 | ||
4813 | * xfns.c (x_set_font): Don't call face-set-after-frame-default | |
4814 | if faces haven't been initialized. | |
4815 | (Fx_create_frame): Call face-set-after-frame-default after | |
4816 | faces have been initialized, and widget has been created. | |
4817 | ||
4818 | * puresize.h (BASE_PURESIZE): Increased. | |
4819 | ||
4820 | 1999-06-01 Gerd Moellmann <gerd@gnu.org> | |
4821 | ||
4822 | * xfaces.c (set_lface_from_font_name): Add parameter force_p. | |
4823 | (Finternal_set_lisp_face_attribute): If frame is t when | |
4824 | :font attribute is set, use the selected frame. | |
4825 | (clear_face_cache): Add parameter clear_fonts_p. | |
4826 | (Fclear_face_cache): Add optional parameter thorougly. | |
4827 | ||
4828 | * xfaces.c (face_numeric_value): Return -1 if symbol is not | |
4829 | in table. | |
4830 | (Fclear_face_cache): New. | |
4831 | (choose_face_fontset_font): If fontset doesn't contain font | |
4832 | pattern for the given charset, use CHARSET_ASCII. | |
4833 | (Finternal_set_lisp_face_attribute): Fix handling of nil | |
4834 | stipple attribute. | |
4835 | (Finternal_set_lisp_face_attribute): Fix handling of changing | |
4836 | font-related face attributes of the default face. | |
4837 | (set_lface_from_font_name): Set only attributes that aren't | |
4838 | specified. | |
4839 | ||
4840 | 1999-05-31 Gerd Moellmann <gerd@gnu.org> | |
4841 | ||
4842 | * xfaces.c (SCALABLE_FONTS): Define this to enable scalable | |
4843 | font support. | |
4844 | (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New. | |
4845 | (x_face_list_fonts): Add parameter scalable_fonts_p. Handle | |
4846 | scalable fonts depending on the setting of SCALABLE_FONTS. | |
4847 | (first_font_matching): List more than one font to find the | |
4848 | first non-scalable matching font. | |
4849 | (sorted_font_list): Let x_face_list_fonts return scalable fonts | |
4850 | depending on SCALABLE_FONTS. | |
4851 | (better_font_p): New parameter compare_pt_p. If zero, don't | |
4852 | compare point sizes of fonts. | |
4853 | (exact_face_match_p) [SCALABLE_FONTS]: New. | |
4854 | (build_scalable_font_name) [SCALABLE_FONTS]: New. | |
4855 | (may_use_scalable_font_p) [SCALABLE_FONTS]: New. | |
4856 | (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts. | |
4857 | (syms_of_xfaces): Add scalable-fonts-allowed. | |
4858 | ||
4859 | 1999-05-26 Gerd Moellmann <gerd@gnu.org> | |
4860 | ||
4861 | * xfns.c (png_load): Let PNG lib handle gamma. Construct | |
4862 | mask only if image contains simple transparency information. | |
4863 | Otherwise, combine image with frame background color. | |
4864 | ||
4865 | * configure.in (--with-png, HAVE_PNG): New. | |
4866 | ||
4867 | * config.in (HAVE_PNG): New. | |
4868 | ||
4869 | * Makefile.in: Add PNG library. | |
4870 | ||
4871 | * xfns.c: Add PNG support. | |
4872 | ||
4873 | 1999-05-25 Gerd Moellmann <gerd@gnu.org> | |
4874 | ||
4875 | * xdisp.c (init_xdisp): Initialize echo_area_message and | |
4876 | previous_echo_area_message to nil. | |
4877 | ||
4878 | * keyboard.c (read_char): Rename local variable echo_area_message | |
4879 | because it shadows the global one. | |
4880 | ||
4881 | 1999-05-05 Gerd Moellmann <gerd@gnu.org> | |
4882 | ||
4883 | * xterm.c (note_mode_line_highlight): Restructured. | |
4884 | ||
4885 | * window.c (coordinates_in_window): Handle windows that don't have | |
4886 | a mode line because their buffer's mode-line-format is nil. | |
4887 | Recognize the mode line under x positions that correspond to | |
4888 | flags areas and left scroll bar. | |
4889 | ||
4890 | 1999-05-02 Dave Love <fx@gnu.org> | |
4891 | ||
4892 | * xterm.c (note_mouse_highlight): Separate help-echo processing | |
4893 | from check on mouse-face so that it works generally. | |
4894 | ||
4895 | 1999-04-21 Gerd Moellmann <gerd@gnu.org> | |
4896 | ||
4897 | * sound.c (Fplay_sound): Run hook play-sound-hook. | |
4898 | (Qplay_sound_hook): New. | |
4899 | ||
4900 | 1999-04-20 Gerd Moellmann <gerd@gnu.org> | |
4901 | ||
4902 | * xdisp.c (update_echo_area): Handle echo_area_message. | |
4903 | ||
4904 | 1999-04-19 Gerd Moellmann <gerd@gnu.org> | |
4905 | ||
4906 | * editfns.c (Fmessage): Use message3. | |
4907 | ||
4908 | * print.c (printchar): Set echo_area_message to nil. | |
4909 | (strout): Ditto. | |
4910 | ||
4911 | * minibuf.c (read_minibuf): Reset echo message strings to nil. | |
4912 | (Fminibuffer_completion_help): Ditto. | |
4913 | ||
4914 | * keyboard.c (cmd_error_internal): Set echo_areA_message. | |
4915 | (command_loop_1): Test echo_areA_message. | |
4916 | (read_char): Ditto. | |
4917 | (record_menu_key): Set echo_area_message to nil. | |
4918 | (Fexecute_extended_command): Test echo_area_message. | |
4919 | (Fexecute_extended_command): Handle echo_area_message. | |
4920 | ||
4921 | * fileio.c (Fdo_auto_save): Handle the case that echo_area_message | |
4922 | is set. | |
4923 | ||
4924 | * editfns.c (Fcurrent_message): If echo_area_message is set, | |
4925 | return a substring of that string. | |
4926 | ||
4927 | * dispnew.c (direct_output_for_insert): Test echo_area_message | |
4928 | in addition to echo_area_glyphs. | |
4929 | (set_window_cursor_after_update): Ditto. | |
4930 | (update_frame_1): Ditto. | |
4931 | ||
4932 | * alloc.c (Fgarbage_collect): Use message3_nolog to display | |
4933 | old Lisp message string. | |
4934 | ||
4935 | * xdisp.c (echo_area_message): New. | |
4936 | (previous_echo_area_message): New. | |
4937 | (syms_of_xdisp): Initialize and staticpro new variables. | |
4938 | (echo_area_display): Display echo_area_message if set. | |
4939 | (message2_nolog): Set echo_area_message and | |
4940 | previous_echo_area_message. | |
4941 | (echo_area_display): Set previous_echo_area_message. | |
4942 | (redisplay_internal): Display echo area if echo_area_message | |
4943 | or previous_echo_area_message are set. | |
4944 | (redisplay_preserve_echo_area): Test/set echo_area_message and | |
4945 | previous_echo_area_message. | |
4946 | (redisplay_window): Test echo_area_message. | |
4947 | (message3_nolog): New. | |
4948 | (message3): New. | |
4949 | ||
4950 | * editfns.c (Fformat): Add text properties to the result string | |
4951 | from properties of the format string and properties of string | |
4952 | arguments. | |
4953 | ||
4954 | * textprop.c (text_property_list): New. | |
4955 | (add_text_properties_from_list): New. | |
4956 | (extend_property_ranges): New. | |
4957 | ||
4958 | 1999-03-29 Gerd Moellmann <gerd@gnu.org> | |
4959 | ||
4960 | * xfaces.c (Qraised, Qsunken, QCshadow): Removed. | |
4961 | (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New. | |
4962 | Use these symbols for the box face attribute instead of the | |
4963 | removed ones. | |
4964 | ||
4965 | 1999-03-12 Gerd Moellmann <gerd@gnu.org> | |
4966 | ||
4967 | * xfaces.c (realize_tty_face): Don't set alt_char_p of face. | |
4968 | Correct wrong test for slant. | |
4969 | ||
4970 | 1999-03-10 Gerd Moellmann <gerd@gnu.org> | |
4971 | ||
4972 | * xfaces.c: Use `unspecified' for unspecified face attributes, | |
4973 | use t and nil for on/off. | |
4974 | ||
4975 | 1999-03-06 Gerd Moellmann <gerd@gnu.org> | |
4976 | ||
4977 | * buffer.c (syms_of_buffer): Extend doc string of | |
4978 | mode-line-format. | |
4979 | ||
4980 | * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p. | |
4981 | (first_font_matching): New. | |
4982 | (set_lface_from_font_name): Use it if font name is a pattern. | |
4983 | (font_field_wildcard_p): Removed. | |
4984 | ||
4985 | * dispnew.c (shift_glyph_matrix): Add `window' parameter. | |
4986 | Recompute visible height of rows. | |
4987 | ||
4988 | * xterm.c (note_mouse_highlight): Reorder code for help-echo. | |
4989 | Don't accept non-strings for help-echo from overlays. | |
4990 | ||
4991 | 1999-03-04 Dave Love <fx@gnu.org> | |
4992 | ||
4993 | * xterm.c (note_mouse_highlight): Check overlays for help-text | |
4994 | property. | |
4995 | (XTread_socket): Fix compiler warning. | |
4996 | ||
4997 | 1999-03-05 Gerd Moellmann <gerd@gnu.org> | |
4998 | ||
4999 | * xterm.c (note_mouse_highlight): Don't restrict number of | |
5000 | overlay to 10. Call overlays_at so that it doesn't try to | |
5001 | extend the vector. | |
5002 | ||
5003 | * xdisp.c (compute_line_metrics): Compute glyph row's visible | |
5004 | height. | |
5005 | ||
5006 | * dispnew.c (row_equal_p): Compare visible row height, only. | |
5007 | (update_text_area): Draw whole line if visible heights of | |
5008 | rows differ. | |
5009 | (update_window_line): Call after_update_window_line_hook | |
5010 | if visible row height has changed. | |
5011 | ||
5012 | * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed. | |
5013 | (struct glyph_row): New member visible_height. | |
5014 | ||
5015 | * xfaces.c (font_field_wildcard_p): New. | |
5016 | (set_lface_from_font_name): Remove parameter force_p. Accept | |
5017 | font names containing wildcards. | |
5018 | ||
5019 | 1999-03-04 Gerd Moellmann <gerd@gnu.org> | |
5020 | ||
5021 | * xterm.c (x_after_update_window_line): Clear internal border | |
5022 | when windows_or_buffers_changed. | |
5023 | ||
5024 | * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's | |
5025 | buffer has a nil mode_line_format. | |
5026 | ||
5027 | 1999-03-03 Gerd Moellmann <gerd@gnu.org> | |
5028 | ||
5029 | * xterm.c (x_setup_relief_colors): Use either background color | |
5030 | or specified color. | |
5031 | ||
5032 | * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p. | |
5033 | ||
5034 | * dispextern.h (struct face): Add use_box_color_for_shadows_p. | |
5035 | ||
5036 | * xterm.c (x_draw_box_rect): New. | |
5037 | (x_draw_glyph_string_box): Renamed from | |
5038 | x_draw_glyph_string_relief. Call x_draw_box_rect. | |
5039 | ||
5040 | * xfns.c (QCrelief): New. | |
5041 | (syms_of_xfns): Initialize it. | |
5042 | ||
5043 | * dispextern.h (struct glyph): Rename left_shadow_p to | |
5044 | left_box_line_p, right_shadow_p to right_box_line_p. | |
5045 | (MAX_RELIEF_THICKNESS): Removed. | |
5046 | (struct it): Rename members having `relief' in their names | |
5047 | to contain `box' instead. | |
5048 | ||
5049 | * xfaces.c (realize_x_face): Handle new box attribute values. | |
5050 | (QCrelief, Qbox): Removed. | |
5051 | (QCshadow, QCcolor, Qraised, Qsunken): New. | |
5052 | (syms_of_xfaces): Initialize new symbols. | |
5053 | ||
5054 | 1999-03-02 Gerd Moellmann <gerd@gnu.org> | |
5055 | ||
5056 | * dispextern.h (LFACE_RELIEF_INDEX): Removed. | |
5057 | ||
5058 | * xfaces.c (LFACE_RELIEF): Removed. | |
5059 | (merge_face_vector_with_property): Remove handling of `:relief'. | |
5060 | (Finternal_set_lisp_face_attribute): Ditto. | |
5061 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
5062 | (Finternal_get_lisp_face_attribute): Ditto. | |
5063 | (realize_default_face): Ditto. | |
5064 | (lface_hash): Don't compute hash from relief. | |
5065 | ||
5066 | * dispextern.h (struct face): Replace member `relief' by | |
5067 | `box_line_width'. Add member `box'. | |
5068 | (face_box_type): New. | |
5069 | ||
5070 | * xterm.c (x_produce_glyphs): If face has overline, add overline | |
5071 | thickness + 1 to ascent. | |
5072 | ||
5073 | 1999-03-01 Gerd Moellmann <gerd@gnu.org> | |
5074 | ||
5075 | * xterm.c (x_draw_glyph_string): Draw underline, overline, | |
5076 | strike-through, and boxes. | |
5077 | (x_draw_glyph_string_underline): Removed. | |
5078 | ||
5079 | * xfaces.c (QCoverline, QCstrike_through, QCbox): New. | |
5080 | (Qoverline, Qstrike_through, Qbox): New. | |
5081 | (syms_of_xfaces): Define these symbols. | |
5082 | (check_lface_attrs): Add checks for overline, strike-through, | |
5083 | and box. | |
5084 | (Finternal_set_lisp_face_attribute): Set new attributes. | |
5085 | (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New. | |
5086 | (load_color): Handle new attributes. | |
5087 | (realize_x_face): Ditto. | |
5088 | (merge_face_vector_with_property): Ditto. | |
5089 | (free_face_colors): Ditto. | |
5090 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
5091 | (Finternal_get_lisp_face_attribute): Ditto. | |
5092 | (Finternal_lisp_face_attribute_values): Ditto. | |
5093 | ||
5094 | * dispextern.h (lface_attribute_index): Add enumerators for | |
5095 | overstrike, strike-through, and box. | |
5096 | (struct face): Add members for overline, strike-through, and | |
5097 | box. | |
5098 | ||
5099 | 1999-02-17 Dave Love <fx@gnu.org> | |
5100 | ||
5101 | * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h | |
5102 | s/template.h (NARROWPROTO): Define on the basis of relevant X cf | |
5103 | files. | |
5104 | ||
5105 | 1999-02-16 Gerd Moellmann <gerd@gnu.org> | |
5106 | ||
5107 | * keyboard.c (toolbar_items): Call access_keymap with third | |
5108 | parameter 1, so that we don't get inherited toolbar item | |
5109 | definitions. | |
5110 | ||
5111 | * xdisp.c (redisplay_internal): In optimization 1, don't decrement | |
5112 | the window end vpos when in empty first line of window. | |
5113 | ||
5114 | 1999-02-15 Gerd Moellmann <gerd@gnu.org> | |
5115 | ||
5116 | * xfaces.c (set_font_frame_param): New. | |
5117 | (Finternal_set_lisp_face_attribute): Call it. | |
5118 | ||
5119 | Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
5120 | ||
5121 | * xfaces.c (Finternal_set_lisp_face_attribute_from_resource): | |
5122 | Accept specifications of color for underline. | |
5123 | ||
5124 | 1999-02-13 Gerd Moellmann <gerd@gnu.org> | |
5125 | ||
5126 | * xfaces.c (Finternal_set_lisp_face_attribute): If parameter | |
5127 | `frame' is t, operate on face defaults for new frames. If it | |
5128 | is nil, operate on the selected frame. | |
5129 | ||
5130 | 1999-02-12 Gerd Moellmann <gerd@gnu.org> | |
5131 | ||
5132 | * dispnew.c (check_matrix_invariants): Put it in #if 0. | |
5133 | (update_window): Put the call to check_matrix_invariants in #if 0. | |
5134 | ||
5135 | Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
5136 | ||
5137 | * dispextern.h: Remove all else block of UNDERLINE_COLOR. | |
5138 | Remove definition of UNDERLINE_COLOR. | |
5139 | ||
5140 | Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
5141 | ||
5142 | * xfaces.c (free_face_colors): Free the color for underline. | |
5143 | ||
5144 | * xterm.c (x_draw_glyph_string_underline): Set the color for underline | |
5145 | to the GC. | |
5146 | ||
5147 | Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
5148 | ||
5149 | * dispextern.h (UNDERLINE_COLOR): Defined. | |
5150 | (struct face): Added two new members. | |
5151 | underline_color, underline_defaulted_p. | |
5152 | ||
5153 | * xfaces.c (merge_face_vector_with_property): | |
5154 | (check_lface_attrs): Accept the string value for underline. | |
5155 | (Finternal_set_lisp_face_attribute): Likewise. | |
5156 | ||
5157 | * xfaces.c (load_color): Change the last argument type to enum | |
5158 | lface_attribute_index from int. And addec code for underling coloring. | |
5159 | (load_face_colors): Pass LFACE_*_INDEX to load_color. | |
5160 | ||
5161 | 1999-02-12 Gerd Moellmann <gerd@gnu.org> | |
5162 | ||
5163 | * xfns.c (Fx_image_header): Removed. | |
5164 | ||
5165 | 1999-02-07 Gerd Moellmann <gerd@gnu.org> | |
5166 | ||
5167 | * xterm.c: Don't include <bitmaps/gray>. | |
5168 | (x_term_init): Use gray_bitmap_width and gray_bitmap_height. | |
5169 | ||
5170 | * xfns.c (Fx_image_header): Add missing `\n\'. | |
5171 | (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New. | |
5172 | ||
5173 | 1999-02-01 Gerd Moellmann <gerd@gnu.org> | |
5174 | ||
5175 | * xterm.c (x_scroll_bar_create): Set background pixel from | |
5176 | specified scroll bar color. | |
5177 | (x_scroll_bar_set_handle): Use scroll bar foreground color. | |
5178 | ||
5179 | * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars. | |
5180 | (x_set_scroll_bar_background): Ditto. | |
5181 | ||
5182 | * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors. | |
5183 | ||
5184 | * xfns.c (x_default_scroll_bar_color_parameter): New. | |
5185 | (Fx_create_frame): Call it. | |
5186 | ||
5187 | 1999-01-31 Gerd Moellmann <gerd@gnu.org> | |
5188 | ||
5189 | * xfns.c (Fx_create_frame): Initialize scroll bar pixel color | |
5190 | values in x_output structure. | |
5191 | (Qscroll_bar_foreground, Qscroll_bar_background): New. | |
5192 | (syms_of_xfns): Initialize these symbols. | |
5193 | ||
5194 | * xterm.h (struct x_output): Add scroll bar pixel colors. | |
5195 | ||
5196 | * xfns.c (x_frame_parms): Add entries for scroll bar colors. | |
5197 | (x_set_scroll_bar_foreground): New. | |
5198 | (x_set_scroll_bar_background): New. | |
5199 | ||
5200 | * xlwmenu.c (all_dashes_p): Removed. | |
5201 | (size_menu_item): Call lw_separator_p. | |
5202 | (display_menu_item): Ditto. | |
5203 | (display_menu): Ditto. | |
5204 | (draw_separator): New. | |
5205 | (display_menu_item): Call it. | |
5206 | (separator_height): New. | |
5207 | (size_menu_item): Call it. | |
5208 | ||
5209 | * lwlib-Xm.c (all_dashes_p): Removed. | |
5210 | (make_menu_in_widget): Use lw_separator_p. Set Motif separator | |
5211 | type. | |
5212 | ||
5213 | * lwlib.c (lw_separator_p): New. | |
5214 | ||
5215 | * lwlib.h (enum menu_separator): New. | |
5216 | ||
5217 | 1999-01-12 Gerd Moellmann <gerd@gnu.org> | |
5218 | ||
5219 | * xdisp.c (handle_single_display_prop): New. | |
5220 | (handle_display_prop): Call it. | |
5221 | (handle_raise_prop): Removed. | |
5222 | (handle_height_prop): Removed. | |
5223 | (handle_space_width_prop): Removed. | |
5224 | (handle_face_prop): Remove handling of raised text. | |
5225 | (handle_display_prop): Do it here. | |
5226 | ||
5227 | * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX. | |
5228 | (RAISE_PROP_IDX): Removed. | |
5229 | (HEIGHT_PROP_IDX): Removed. | |
5230 | (SPACE_WIDTH_PROP_IDX): Removed. | |
5231 | ||
5232 | * xdisp.c (Qdisplay): Replaces Qglyph. | |
5233 | (handle_display_prop): Formerly handle_glyph_prop. | |
5234 | ||
5235 | 1999-01-11 Gerd Moellmann <gerd@gnu.org> | |
5236 | ||
5237 | * xdisp.c (reseat_to_string): Set position in display vector to -1. | |
5238 | (handle_stop): Set position in display vector to -1. Don't | |
5239 | check overlay strings when set up to deliver characters from a | |
5240 | display vector. | |
5241 | (set_iterator_to_next): At the end of a run of characters from a | |
5242 | display vector, check whether the display vector display replaces | |
5243 | the display of a character. | |
5244 | ||
5245 | 1999-01-05 Gerd Moellmann <gerd@gnu.org> | |
5246 | ||
5247 | * xfaces.c (init_frame_faces): Don't realize faces if frame's | |
5248 | X window hasn't been created yet. | |
5249 | ||
5250 | 1998-12-06 Gerd Moellmann <gerd@gnu.org> | |
5251 | ||
5252 | * sound.c: New. | |
5253 | ||
5254 | 1998-12-04 Gerd Moellmann <gerd@gnu.org> | |
5255 | ||
5256 | * config.in (HAVE_SOUND): New. | |
5257 | ||
5258 | * emacs.c (main): Call syms_of_sound and init_sound. | |
5259 | ||
5260 | * Makefile.in (obj): Add sound.o. | |
5261 | ||
5262 | * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h. | |
5263 | ||
5264 | * config.in (HAVE_MACHINE_SOUNDCARD_H): New. | |
5265 | (HAVE_SYS_SOUNDCARD_H): New. | |
5266 | ||
5267 | 1998-12-03 Gerd Moellmann <gerd@gnu.org> | |
5268 | ||
5269 | * buffer.h (struct buffer): indicate_empty_lines renamed from | |
5270 | indicate_zv_lines. | |
5271 | ||
5272 | * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines. | |
5273 | (default-indicate-zv-lines): Likewise. | |
5274 | ||
5275 | * dispextern.h (struct glyph_row): Rename indicate_zv_line_p | |
5276 | to indicate_empty_line_p. | |
5277 | ||
5278 | * xdisp.c (reseat_at_next_visible_line_start): Reset method | |
5279 | to next_element_from_buffer. | |
5280 | ||
5281 | * frame.c (make_frame): Set n_current_toolbar_items to 0. | |
5282 | ||
5283 | * xdisp.c (handle_face_prop): Allow symbols of the form `N+' | |
5284 | and `N-'. | |
5285 | ||
5286 | * xfns.c (xbm_scan): New. | |
5287 | (xbm_read_hexint): Removed. | |
5288 | (xbm_read_bitmap_file_data): Use xbm_scan. | |
5289 | ||
5290 | * fileio.c (Finsert_file_contents): Prevent redisplay optimizations. | |
5291 | ||
5292 | 1998-12-02 Gerd Moellmann <gerd@gnu.org> | |
5293 | ||
5294 | * xfns.c (xbm_read_hexint): New. | |
5295 | (xbm_read_bitmap_file_data): New. | |
5296 | (xbm_load_image_from_file): Call xbm_read_bitmap_file_data | |
5297 | instead of XReadBitmapFileData. | |
5298 | ||
5299 | * xdisp.c (handle_raise_prop): Compute voffset from current font. | |
5300 | ||
5301 | * xfaces.c (face_with_height): New. | |
5302 | ||
5303 | * xdisp.c (eval_handler): Renamed from eval_mode_handler. | |
5304 | (eval_form): Renamed from eval_mode_element. | |
5305 | (handle_face_prop): Use it. | |
5306 | (Qheight): Replaces Qsmaller. | |
5307 | (handle_height_prop): Replaces handle_smaller_prop. | |
5308 | (handle_face_prop): If iterator's font_height is not an | |
5309 | integer, evaluate it to get the font height to use. | |
5310 | ||
5311 | * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX. | |
5312 | (struct it): Use `font_height' instead of `smaller'. | |
5313 | ||
5314 | 1998-12-01 Gerd Moellmann <gerd@gnu.org> | |
5315 | ||
5316 | * xdisp.c (reseat_1): New. | |
5317 | (reseat): Call it. | |
5318 | (move_it_vertically_backward): Ditto. | |
5319 | (redisplay_window): Don't abort when cursor not found in recenter. | |
5320 | ||
5321 | 1998-11-30 Gerd Moellmann <gerd@gnu.org> | |
5322 | ||
5323 | * xdisp.c (reseat_at_next_visible_line_start): When not | |
5324 | currently delivering display elements from the current buffer, | |
5325 | restore buffer position first. | |
5326 | (init_from_display_pos): Don't set IT's position from the | |
5327 | position passed to this function. | |
5328 | ||
5329 | 1998-11-28 Gerd Moellmann <gerd@gnu.org> | |
5330 | ||
5331 | * config.in (PROTO): Removed. | |
5332 | ||
5333 | * xterm.h: Change PROTO to P_. | |
5334 | ||
5335 | 1998-11-26 Gerd Moellmann <gerd@gnu.org> | |
5336 | ||
5337 | * xterm.c (take_vertical_position_into_account): New. | |
5338 | (x_produce_image_glyph): Call it. | |
5339 | (x_produce_stretch_glyph): Ditto. | |
5340 | (x_produce_glyphs): Ditto. | |
5341 | (x_fill_glyph_string): Adjust base line for glyph's voffset. | |
5342 | (x_fill_composite_glyph_string): Ditto. | |
5343 | (x_fill_image_glyph_string): Ditto. | |
5344 | (x_fill_stretch_glyph_string): Ditto. | |
5345 | ||
5346 | * xdisp.c (display_line): Always compute row height from | |
5347 | max_ascent and max_descent. | |
5348 | ||
5349 | * dispextern.h (struct glyph): Add voffset. | |
5350 | (struct it): Replace height by descent, max_height by max_descent. | |
5351 | ||
5352 | * xterm.c (x_append_glyph): Set voffset | |
5353 | (x_append_stretch_glyph): Ditto. | |
5354 | (x_produce_image_glyph): Ditto. | |
5355 | (x_produce_glyphs): Take voffset into account. | |
5356 | (x_produce_image_glyph): Ditto. | |
5357 | (x_produce_stretch_glyph): Ditto. | |
5358 | ||
5359 | * dispextern.h (struct it): Add voffset. | |
5360 | * xdisp.c (push_it): Save voffset. | |
5361 | (pop_it): Restore it. | |
5362 | ||
5363 | * xdisp.c (it_props): Add entry for `raise'. | |
5364 | (handle_raise_prop): New. | |
5365 | ||
5366 | * dispextern.h (RAISE_PROP_IDX): New. | |
5367 | ||
5368 | * xdisp.c (Qraise): New. | |
5369 | (syms_of_xdisp): Define Qraised. | |
5370 | ||
5371 | * xterm.c (x_scroll_bar_move): Clear to the left and right | |
5372 | of toolkit scroll bars differently. | |
5373 | (x_scroll_bar_move): Removed. | |
5374 | (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here. | |
5375 | ||
5376 | * dispextern.h: Make it compilable --with-x=no. | |
5377 | * alloc.c: Ditto. | |
5378 | * emacs.c: Ditto. | |
5379 | * dispnew.c: Ditto. | |
5380 | * keyboard.c: Ditto. | |
5381 | * term.c: Ditto. | |
5382 | * xdisp.c: Ditto. | |
5383 | * xfaces.c: Ditto. | |
5384 | * xfns.c: Ditto. | |
5385 | * xmenu.c: Ditto. | |
5386 | ||
5387 | 1998-11-25 Gerd Moellmann <gerd@gnu.org> | |
5388 | ||
5389 | * xterm.c (XTread_socket): Cancel help-echo when leaving frame. | |
5390 | ||
5391 | 1998-11-24 Gerd Moellmann <gerd@gnu.org> | |
5392 | ||
5393 | * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging, | |
5394 | update slider size, only. | |
5395 | (xm_scroll_callback): Set dragging member of the scroll bar. | |
5396 | (xt_action_hook): Reset last_scroll_bar_part. | |
5397 | (XTredeem_scroll_bar): Reset bar->dragging to nil. | |
5398 | ||
5399 | * xlwmenu.c (abort_gracefully): New. | |
5400 | (display_menu): Use it instead of abort. | |
5401 | (size_menu): Ditto. | |
5402 | ||
5403 | * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor | |
5404 | window on newly created frames that don't have one. | |
5405 | ||
5406 | 1998-11-23 Gerd Moellmann <gerd@gnu.org> | |
5407 | ||
5408 | * xdisp.c (restore_overlay_strings): Removed. | |
5409 | (restore_dpvec): Removed. | |
5410 | (init_from_display_pos): Inline both functions above. | |
5411 | ||
5412 | * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New. | |
5413 | (parse_image_spec): Handle it. | |
5414 | (xbm_format): Use it. | |
5415 | (xpm_format): Ditto. | |
5416 | (pbm_format): Ditto. | |
5417 | (jpeg_format): Ditto. | |
5418 | (tiff_format): Ditto. | |
5419 | (gif_format): Ditto. | |
5420 | (gs_format): Ditto. | |
5421 | ||
5422 | * xdisp.c (set_window_cursor): Removed. | |
5423 | (redisplay_internal): Case cursor motion in cursor line of | |
5424 | selected window; use set_cursor_from_row. | |
5425 | ||
5426 | 1998-11-22 Gerd Moellmann <gerd@gnu.org> | |
5427 | ||
5428 | * widget.c (EmacsFrameSetCharSize): Take widget's border width | |
5429 | into account. | |
5430 | ||
5431 | 1998-11-21 Gerd Moellmann <gerd@gnu.org> | |
5432 | ||
5433 | * xterm.c (expose_frame): Redraw menu bar window. | |
5434 | ||
5435 | * xdisp.c (display_menu_bar): Record hpos instead of x-position | |
5436 | in menu item. | |
5437 | ||
5438 | * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead | |
5439 | of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'. | |
5440 | ||
5441 | * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS | |
5442 | to determine vertical_scroll_bar_extra. | |
5443 | (EmacsFrameSetCharSize): Ditto. | |
5444 | * xfns.c (x_figure_window_size): Ditto. | |
5445 | ||
5446 | * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face. | |
5447 | (x_draw_bitmap): Ditto. | |
5448 | ||
5449 | * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID. | |
5450 | * xfaces.c (realize_basic_faces): Realize it. | |
5451 | ||
5452 | 1998-11-20 Gerd Moellmann <gerd@gnu.org> | |
5453 | ||
5454 | * xmenu.c (xmenu_show): Add workaround for remaining button grab | |
5455 | under LessTif Use the widget of the frame as parent for the | |
5456 | menu, again. | |
5457 | ||
5458 | 1998-11-19 Gerd Moellmann <gerd@gnu.org> | |
5459 | ||
5460 | * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify. | |
5461 | When EnterNotify, don't generate a mouse movement event if | |
5462 | notification is from a busy-cursor child window. | |
5463 | ||
5464 | * xterm.h (struct x_output): Add busy_window, remove cursor. | |
5465 | ||
5466 | * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor. | |
5467 | Use a transparent window to display the busy-cursor. | |
5468 | (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor. | |
5469 | ||
5470 | 1998-11-17 Gerd Moellmann <gerd@gnu.org> | |
5471 | ||
5472 | * xdisp.c (check_window_end): New, for debugging. | |
5473 | (CHECK_WINDOW_END): New. | |
5474 | (try_window_id): Use it. | |
5475 | ||
5476 | * xterm.c (process_expose_from_menu): Return int. | |
5477 | ||
5478 | * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording | |
5479 | TOOLBAR_EVENT events in last_nonmenu_event. | |
5480 | ||
5481 | 1998-11-16 Gerd Moellmann <gerd@gnu.org> | |
5482 | ||
5483 | * xdisp.c (redisplay_window): If windows_or_buffers_changed, | |
5484 | window end isn't reliable, so set window_end_valid to nil. | |
5485 | (redisplay_internal): If overlay arrow has changed, set | |
5486 | windows_or_buffers_changed to redisplay thoroughly. | |
5487 | ||
5488 | * dispnew.c (adjust_glyph_matrix): Invalidate window end, if | |
5489 | necessary. | |
5490 | ||
5491 | * xfns.c (file_dialog_cb): New. | |
5492 | (Fx_file_dialog): New. | |
5493 | * fileio.c (Fread_file_name): Call it. | |
5494 | ||
5495 | * xrdb.c (x_load_resources): Add default resoures for file | |
5496 | selection dialog. | |
5497 | ||
5498 | 1998-11-14 Gerd Moellmann <gerd@gnu.org> | |
5499 | ||
5500 | * xterm.c (note_mouse_highlight): Don't highlight when popup | |
5501 | is active. | |
5502 | ||
5503 | * xlwmenu.c (xlwMenuResources): Change previously unused | |
5504 | XtNmargin to 4. | |
5505 | (size_menu): Take margin into account. | |
5506 | (display_menu_item): Ditto. | |
5507 | (remap_menubar): Ditto. | |
5508 | (draw_arrow): Draw it 3D. | |
5509 | ||
5510 | * keyboard.c (timer_check): Inhibit busy cursor around calls to | |
5511 | timer-event-handler. This busy cursor tends to be anoying if | |
5512 | fontifying stealthily. | |
5513 | ||
5514 | * dispnew.c (direct_output_for_insert): Give up if current row | |
5515 | contains trailing whitespace. | |
5516 | ||
5517 | 1998-11-13 Gerd Moellmann <gerd@gnu.org> | |
5518 | ||
5519 | * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX. | |
5520 | ||
5521 | * xdisp.c (handle_fontified_prop): New. | |
5522 | (Vfontification_functions): New. | |
5523 | (Qfontification_functions): New. | |
5524 | (it_props): Add handle_fontified_prop. | |
5525 | ||
5526 | 1998-11-12 Gerd Moellmann <gerd@gnu.org> | |
5527 | ||
5528 | * xmenu.c (xmenu_show): Use the frame's edit_widget as parent. | |
5529 | Otherwise, under LessTif, after the popup has gone, all button | |
5530 | press events come in for the frame's widget, and release events | |
5531 | come in for the edit_widget. | |
5532 | * xterm.c (XTread_socket): Remove workaround for that problem. | |
5533 | (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif | |
5534 | XmScrollBarSetValues. | |
5535 | (SET_SAVED_MENU_EVENT): Give it statement form. | |
5536 | ||
5537 | * lwlib-Xm.c (make_menu_in_widget): Set alignment of menu | |
5538 | title after all widgets have been created. | |
5539 | ||
5540 | * xfaces.c (display_message): If waiting_for_input, don't display | |
5541 | the message. | |
5542 | ||
5543 | * window.c (scroll_command): If not acting on current_buffer, | |
5544 | make redisplay consider all windows. | |
5545 | ||
5546 | * xfns.c (Fx_hide_tip): Return t if tooltip was open. | |
5547 | ||
5548 | * xdisp.c (handle_glyph_prop): Set it->object for images to | |
5549 | the object having the glyph property. | |
5550 | ||
5551 | * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely | |
5552 | invisible. | |
5553 | ||
5554 | 1998-11-11 Gerd Moellmann <gerd@gnu.org> | |
5555 | ||
5556 | * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c | |
5557 | (x_term_init): Create the gray pixmap. | |
5558 | (x_setup_relief_color): Use it. | |
5559 | (x_get_glyph_string_clip_rect): Draw a toolbar window over the | |
5560 | internal border at the top of a frame. | |
5561 | (x_init_glyph_string): Likewise. | |
5562 | (x_draw_glyph_string_relief): Correct right x by 1 pixel for | |
5563 | full-width lines. | |
5564 | (XTflash): Don't flash the toolbar window. | |
5565 | ||
5566 | * xterm.c (XTread_socket): Workaround for LessTif popup menus | |
5567 | in case of ButtonPress events. | |
5568 | ||
5569 | 1998-11-10 Gerd Moellmann <gerd@gnu.org> | |
5570 | ||
5571 | * xrdb.c (x_load_resources): Add grey background colors as | |
5572 | defaults for menus, scroll bars, and dialogs. | |
5573 | ||
5574 | * insdel.c (prepare_to_modify_buffer): Move setting | |
5575 | windows_or_buffers_changed from modify_region here. | |
5576 | ||
5577 | * xfns.c (Fx_show_tip): Inhibit redisplay. | |
5578 | (Fx_hide_tip): Ditto. | |
5579 | (Fx_image_header): New. | |
5580 | ||
5581 | 1998-11-09 Gerd Moellmann <gerd@gnu.org> | |
5582 | ||
5583 | * dispnew.c (clear_window_matrices): Set window_end_valid to nil | |
5584 | when clearing current window matrices. | |
5585 | ||
5586 | 1998-11-08 Gerd Moellmann <gerd@gnu.org> | |
5587 | ||
5588 | * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer | |
5589 | position from a string position. Use the right end position | |
5590 | if the property spans a whole overlay string. | |
5591 | ||
5592 | 1998-11-07 Gerd Moellmann <gerd@gnu.org> | |
5593 | ||
5594 | * xmenu.c (menubar_selection_callback): Remove workaround for | |
5595 | Lesstif not calling XmNpopdownCallback because it doesn't | |
5596 | handle the case where users don't select any menu item. | |
5597 | ||
5598 | * xlwmenu.c (toggle_button_width): Renamed from | |
5599 | toggle_or_radio_button_width. | |
5600 | (radio_button_width): New. | |
5601 | (size_menu_item): Use new functions. | |
5602 | (draw_shadow_rhombus): New. | |
5603 | (draw_radio): Use radio_button_width and draw_shadow_rhombus. | |
5604 | (draw_toggle): Use toggle_button_width. | |
5605 | ||
5606 | * insdel.c (modify_region): Set windows_or_buffers_changed. | |
5607 | ||
5608 | * buffer.c (set_buffer_internal): Don't set | |
5609 | windows_or_buffers_changed. | |
5610 | ||
5611 | * lwlib-Xm.c (xm_update_toggle): Add callback xm_generic_callback | |
5612 | instead of xm_internal_update_other_instances. | |
5613 | ||
5614 | * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT. | |
5615 | ||
5616 | * lwlib-Xm.c (make_menu_in_widget): Do help button before managing | |
5617 | children to get it to the right place. | |
5618 | (make_menu_in_widget): Create toggle buttons. | |
5619 | (update_one_menu_entry): Update toggle buttons. | |
5620 | ||
5621 | * xmenu.c (menubar_selection_callback): Add workaround for | |
5622 | Lesstif not calling XmNpopdownCallback. | |
5623 | ||
5624 | * xdisp.c (eval_mode_element): New. | |
5625 | (eval_mode_handler): New. | |
5626 | (display_mode_element): Use eval_mode_element. | |
5627 | ||
5628 | * xdisp.c (display_mode_element): Allow `(:eval FORM)'. | |
5629 | Remove code looking at text props of default value. | |
5630 | ||
5631 | * xmenu.c (HAVE_BOXES): Define if using Lucid menus. | |
5632 | ||
5633 | * xlwmenu.c (size_menu_item): Add parameter button_width. | |
5634 | (size_menu): Compute button_width. | |
5635 | (toggle_or_radio_button_width): New. | |
5636 | (draw_toggle): New. | |
5637 | (draw_radio): New. | |
5638 | (draw_shadow_rectangle): Add parameter `down_p'. | |
5639 | ||
5640 | * xlwmenuP.h (_window_state): Add button_width. | |
5641 | ||
5642 | 1998-11-06 Gerd Moellmann <gerd@gnu.org> | |
5643 | ||
5644 | * xmenu.c (single_submenu): Set button_type of menu to | |
5645 | BUTTON_TYPE_NONE. | |
5646 | (single_submenu): Likewise for panes and menu items. | |
5647 | (set_frame_menubar): Set button_type of menu bar to none. | |
5648 | (xmenu_show): Likewise. | |
5649 | (single_submenu): Set widget values selected slot. | |
5650 | (xmenu_show): Likewise. | |
5651 | ||
5652 | * lwlib.c (merge_widget_value): Handle button_type. | |
5653 | (copy_widget_value_tree): Copy button_type. | |
5654 | ||
5655 | * lwlib.h (enum button_type): New. | |
5656 | (_widget_value): New member button_type. | |
5657 | ||
5658 | * xmenu.c (push_menu_item): Add parameters `type' and | |
5659 | `selected'. Store it in menu_items. | |
5660 | (MENU_ITEMS_ITEM_TYPE): New. | |
5661 | (MENU_ITEMS_ITEM_SELECTED): New. | |
5662 | (MENU_ITEMS_ITEM_LENGTH): Increase by two. | |
5663 | ||
5664 | * xfns.c (clear_image_cache): Get the current time, before | |
5665 | doing anything. | |
5666 | (cache_image): Set prev pointer of next image. | |
5667 | (clear_image_cache): Clear current matrices if any image was | |
5668 | freed. | |
5669 | ||
5670 | * xterm.c (XTread_socket): Set inhibit_busy_cursor. | |
5671 | ||
5672 | * xfns.c (x_set_cursor): New. | |
5673 | (Fx_display_busy_cursor): New. | |
5674 | (Fx_undisplay_busy_cursor): New. | |
5675 | ||
5676 | * xterm.h (struct x_output): Add busy_cursor. | |
5677 | ||
5678 | * xfns.c (Vx_busy_pointer_shape): New. | |
5679 | (x_set_mouse_color): Create busy cursor. | |
5680 | ||
5681 | * process.c (wait_reading_process_input): Show and hide busy | |
5682 | cursor. | |
5683 | ||
5684 | * keyboard.c (command_loop_1): Display busy cursor. | |
5685 | ||
5686 | * eval.c (Fsignal): Hide busy cursor. | |
5687 | ||
5688 | * buffer.c (set_buffer_internal): Don't set | |
5689 | windows_or_buffers_changed. | |
5690 | ||
5691 | * xterm.c (redo_mouse_highlight): New. | |
5692 | ||
5693 | 1998-11-04 Gerd Moellmann <gerd@gnu.org> | |
5694 | ||
5695 | * lwlib-Xm.c (make_menu_in_widget): Test for menubar widgets | |
5696 | using XmNrowColumnType. | |
5697 | ||
5698 | * xfns.c (x_create_x_image_and_pixmap): Add depth parameter. | |
5699 | (x_build_heuritic_mask): New. | |
5700 | (lookup_image): Call it. | |
5701 | ||
5702 | * xterm.c (note_toolbar_highlight): Always set up help_echo. | |
5703 | (previous_help_echo): New. | |
5704 | (XTread_socket): Generate help event with nil message when | |
5705 | leaving a region with help-echo. | |
5706 | (note_mouse_highlight): Handle `help-echo' over text. | |
5707 | (XTread_socket): Dispatch VisibilityNotify, CirculateNotify, | |
5708 | CirculateRequest. | |
5709 | (clear_mouse_face): Don't clear if tooltip is shown. | |
5710 | (XTread_socket): Redo mouse-highlight after tooltip is gone. | |
5711 | Avoid SET_FRAME_GARBAGED when tooltip is mapped. | |
5712 | ||
5713 | * keyboard.c (Vshow_help_function): New. | |
5714 | (read_char): Use it. | |
5715 | ||
5716 | 1998-11-03 Gerd Moellmann <gerd@gnu.org> | |
5717 | ||
5718 | * xfns.c (x_create_tip_frame): New. | |
5719 | (Fx_show_tip): New. | |
5720 | (Fx_hide_tip): New. | |
5721 | ||
5722 | * xterm.c (x_destroy_window): Handle case that we don't have | |
5723 | a widget. | |
5724 | ||
5725 | * dispextern.h (struct glyph_row): Rename no_marginal_areas_p | |
5726 | to full_width_p. Add internal_border_p. | |
5727 | ||
5728 | 1998-11-02 Gerd Moellmann <gerd@gnu.org> | |
5729 | ||
5730 | * xterm.c (note_mode_line_highlight): Check the charpos of | |
5731 | the glyph under the mouse pointer before accessing text | |
5732 | properties at that position. | |
5733 | ||
5734 | 1998-11-01 Gerd Moellmann <gerd@gnu.org> | |
5735 | ||
5736 | * xterm.c (x_draw_image_relief): Handle toolbar_button_relief. | |
5737 | ||
5738 | * xdisp.c (auto-raise-toolbar-buttons): New. | |
5739 | (build_desired_toolbar_string): Handle the flag. | |
5740 | (toolbar-button-margin): New. | |
5741 | (toolbar-button-relief): New. | |
5742 | (build_desired_toolbar_string): Use margin and relief. | |
5743 | ||
5744 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround | |
5745 | for FreeBSD. | |
5746 | (note_mode_line_highlight): New. | |
5747 | (note_mouse_highlight): Call it. | |
5748 | ||
5749 | 1998-10-31 Gerd Moellmann <gerd@gnu.org> | |
5750 | ||
5751 | * s/freebsd.h (NARROWPROTO): New. | |
5752 | ||
5753 | * xdisp.c (display_string): New parameter face_string. | |
5754 | (display_mode_element): When displaying a symbol with a string | |
5755 | value, use text properties from the symbol's default value, maybe. | |
5756 | ||
5757 | * xrdb.c (x_load_resources): Add font defaults for menus and | |
5758 | dialogs. | |
5759 | ||
5760 | 1998-10-30 Gerd Moellmann <gerd@gnu.org> | |
5761 | ||
5762 | * xfns.c (Fx_create_frame): Try 12pt Courier font first. | |
5763 | ||
5764 | 1998-10-29 Gerd Moellmann <gerd@gnu.org> | |
5765 | ||
5766 | * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be | |
5767 | produced for characters with codes < 32 under certain | |
5768 | circumstances. | |
5769 | ||
5770 | * xdisp.c (redisplay_window): Handle values of PT in front | |
5771 | of invisible, intangible text. | |
5772 | (try_window_id): Set overlay_arrow_seen to zero before | |
5773 | displaying lines. | |
5774 | (display_mode_element): Assign to glyphs written for a mode | |
5775 | line spec `%x' as object the Lisp format string, as position | |
5776 | the position of the `%' in that string. | |
5777 | (display_string): If displaying a C string, optionally get | |
5778 | the face to use from a Lisp string. | |
5779 | ||
5780 | * xterm.c (expose_window_tree): Include mode line height. | |
5781 | ||
5782 | * xfns.c (Fx_create_frame): Add toolbar height to frame height. | |
5783 | ||
5784 | 1998-10-27 Gerd Moellmann <gerd@gnu.org> | |
5785 | ||
5786 | * xterm.c (note_mouse_highlight): Change mouse pointer shape | |
5787 | over mode line. | |
5788 | ||
5789 | 1998-10-26 Gerd Moellmann <gerd@gnu.org> | |
5790 | ||
5791 | * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT. | |
5792 | ||
5793 | * xdisp.c (redisplay_window): If mode line height has changed, | |
5794 | arrange for a thorough immediate redisplay using the correct mode | |
5795 | line height. | |
5796 | (window_box_height): Use CURRENT_MODE_LINE_HEIGHT. | |
5797 | ||
5798 | * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New. | |
5799 | (CURRENT_MODE_LINE_HEIGHT): New. | |
5800 | (DESIRED_MODE_LINE_HEIGHT): New. | |
5801 | ||
5802 | * keyboard.c (make_lispy_event): Add string and string position | |
5803 | info to mouse-click events. | |
5804 | (read_key_sequence): Handle `local-map' property of mode line | |
5805 | strings. | |
5806 | ||
5807 | * keyboard.h (POSN_STRING): New. | |
5808 | ||
5809 | 1998-10-25 Gerd Moellmann <gerd@gnu.org> | |
5810 | ||
5811 | * dispnew.c (mode_line_string): Mew. | |
5812 | ||
5813 | * xterm.c (xt_action_hook): New. | |
5814 | (x_create_toolkit_scroll_bar): Add action hook. | |
5815 | (xm_scroll_callback): Implement dragging. | |
5816 | ||
5817 | * keyboard.c (Qend_scroll): New. | |
5818 | (scroll_bar_parts): Add it. | |
5819 | ||
5820 | * termhooks.h (scroll_bar_end_scroll): New. | |
5821 | ||
5822 | * xterm.c (XTread_socket): Bug fix. | |
5823 | ||
5824 | 1998-10-24 Gerd Moellmann <gerd@gnu.org> | |
5825 | ||
5826 | * xdisp.c (redisplay_window): Finish scroll bars after | |
5827 | redisplaying toolbar. | |
5828 | ||
5829 | * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom. | |
5830 | (syms_of_keyboard): Add Qbottom. | |
5831 | ||
5832 | * termhooks.h (scroll_bar_to_top): New. | |
5833 | (scroll_bar_to_bottom): New. | |
5834 | ||
5835 | * xdisp.c (redisplay_window): Always resize toolbar window if | |
5836 | auto_resize_toolbar_p is non-zero. | |
5837 | (auto_resize_toolbar_p): Renamed from auto_resize_toolbar. | |
5838 | (window_box): New. | |
5839 | (window_box_height): New. | |
5840 | (window_box_width): New. | |
5841 | (window_box_left): New. | |
5842 | (window_box_right): New. | |
5843 | (window_box_edges): New. | |
5844 | ||
5845 | 1998-10-23 Gerd Moellmann <gerd@gnu.org> | |
5846 | ||
5847 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to | |
5848 | XawScrollbarSetThumb in FreeBSD. | |
5849 | (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap" | |
5850 | to true. | |
5851 | ||
5852 | * window.c (get_phys_cursor_glyph): Return null if cursor vpos | |
5853 | is out of range. | |
5854 | ||
5855 | * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel. | |
5856 | (x_term_init): Initialize it. | |
5857 | ||
5858 | * xterm.h (struct x_display_info): Add scroll_bar_pixel. | |
5859 | ||
5860 | * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's | |
5861 | cursor. | |
5862 | ||
5863 | 1998-10-22 Gerd Moellmann <gerd@gnu.org> | |
5864 | ||
5865 | * keyboard.c (make_lispy_event): Handle scroll_bar_click | |
5866 | differently when using toolkit scroll bars. | |
5867 | ||
5868 | * xterm.c (x_send_scroll_bar_event): New. | |
5869 | (x_scroll_bar_to_input_event): New. | |
5870 | (xaw3d_scroll_callback): New. | |
5871 | (xaw3d_jump_callback): New. | |
5872 | (xm_scroll_callback): New. | |
5873 | (x_toolkit_scroll_p): New. | |
5874 | (XTread_socket): Handle scroll bar client message. | |
5875 | (x_term_init): Initialize Xatom_Scrollbar. | |
5876 | (x_scroll_bar_create): Set cursor. | |
5877 | (xm_scroll_callback): | |
5878 | (x_create_toolkit_scroll_bar): New. | |
5879 | (x_set_toolkit_scroll_bar_thumb): New. | |
5880 | (x_scroll_bar_create): Call x_create_toolkit_scroll_bar. | |
5881 | (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb. | |
5882 | ||
5883 | * xterm.h (struct x_display_info): Add Xatom_Scrollbar. | |
5884 | ||
5885 | 1998-10-21 Gerd Moellmann <gerd@gnu.org> | |
5886 | ||
5887 | * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars. | |
5888 | (XTread_socket): Don't handle mouse button events for scroll bars | |
5889 | if using toolkit scroll bars. | |
5890 | (XTset_vertical_scroll_bar): Set thumb size and position for | |
5891 | Athena scroll bar. | |
5892 | ||
5893 | * xterm.h (scroll_bar): Add x_widget_low and x_widget_high. | |
5894 | ||
5895 | * xterm.c (XTread_socket): Dispatch expose event to widget | |
5896 | if using toolkit scroll bars. | |
5897 | (x_scroll_bar_expose): Make no-op for toolkit scroll bars. | |
5898 | (x_scroll_bar_create): Create and show a scroll bar widget | |
5899 | if using toolkit scroll bars. | |
5900 | (x_scroll_bar_move): Handle tookit scroll bars. | |
5901 | ||
5902 | * Makefile.in (LIBW): Use Xaw3d if present. | |
5903 | ||
5904 | * configure.in (USE_TOOLKIT_SCROLL_BARS): New. | |
5905 | (HAVE_XAW3D): New. | |
5906 | ||
5907 | * config.in (USE_TOOLKIT_SCROLL_BARS): New. | |
5908 | (HAVE_XAW3D): New. | |
5909 | ||
5910 | * xterm.c (XTset_vertical_scroll_bar): Correct position of | |
5911 | right vertical scroll bar. | |
5912 | ||
5913 | 1998-10-20 Gerd Moellmann <gerd@gnu.org> | |
5914 | ||
5915 | * xfns.c (xpm_load): Support reading XPM images from string | |
5916 | buffers containing data in the same format as an XPM file. | |
5917 | Support `:color-symbols'. | |
5918 | (xpm_format): Add `:data'. | |
5919 | (xpm_keyword_index): Add XPM_DATA. | |
5920 | (syms_of_xfns): Add `:color-symbols'. | |
5921 | (xpm_keyword_index): Add XPM_COLOR_SYMBOLS. | |
5922 | (xpm_valid_color_symbols_p): New. | |
5923 | (xpm_image_p): Call it. | |
5924 | ||
5925 | * xdisp.c (build_desired_toolbar_string): Add `:algorithm' | |
5926 | attribute to the image if item is not enabled. | |
5927 | ||
5928 | * xfns.c (x_laplace): New. | |
5929 | (x_laplace_read_row): New. | |
5930 | (x_laplace_write_row): New. | |
5931 | (lookup_image): Handle common image attributes here. New | |
5932 | attribute `:algorithm'. | |
5933 | ||
5934 | * xfaces.c (clear_face_cache): Call clear_image_cache. | |
5935 | ||
5936 | * xterm.c (x_inverted_image_mask): Removed. | |
5937 | (x_draw_image_foreground_1): New. | |
5938 | (x_draw_image_glyph_string): Draw images with mask to a temporary | |
5939 | pixmap to reduce flickering. | |
5940 | ||
5941 | * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars. | |
5942 | (display_toolbar_line): Remove parameter `margin'. | |
5943 | ||
5944 | 1998-10-19 Gerd Moellmann <gerd@gnu.org> | |
5945 | ||
5946 | * xdisp.c (toolbar_lines_needed): New. | |
5947 | (auto-resize-toolbars): New. | |
5948 | ||
5949 | * xfns.c (cache_image): Correct call to xrealloc. | |
5950 | ||
5951 | * dispnew.c (Fset_toolbar_height): Removed. | |
5952 | ||
5953 | * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of | |
5954 | FRAME_MENU_BAR_LINES. | |
5955 | ||
5956 | * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN | |
5957 | instead of FRAME_MENU_BAR_LINES. | |
5958 | (check_frame_size): Ditto. | |
5959 | ||
5960 | * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN | |
5961 | instead of FRAME_MENU_BAR_LINES. | |
5962 | (adjust_frame_glyphs_for_frame_redisplay): Ditto. | |
5963 | (build_frame_matrix): Ditto. | |
5964 | (change_frame_size_1): Ditto. | |
5965 | ||
5966 | * frame.h (FRAME_TOOLBAR_LINES): New. | |
5967 | (FRAME_TOP_MARGIN): New. | |
5968 | ||
5969 | * window.c (struct save_window_data): Add frame_toolbar_lines. | |
5970 | (Fset_window_configuration): Handle toolbar lines. | |
5971 | (Fcurrent_window_configuration): Save toolbar lines. | |
5972 | ||
5973 | * frame.c (syms_of_frame_1): Add Qtoolbar_lines. | |
5974 | ||
5975 | * xfns.c (Fx_create_frame): Add default parameter for toolbar. | |
5976 | ||
5977 | * frame.h (struct frame): Rename top_margin to toolbar_lines. | |
5978 | ||
5979 | * xfns.c (x_frame_parms): Add `toolbar-lines'. | |
5980 | (x_set_toolbar_lines): New. | |
5981 | ||
5982 | * keyboard.c (cmd_error_internal): Bug fix. | |
5983 | ||
5984 | * xterm.c: Remove double include of syssignal.h. | |
5985 | ||
5986 | 1998-10-18 Gerd Moellmann <gerd@gnu.org> | |
5987 | ||
5988 | * xterm.c (x_toolbar_item): New. | |
5989 | (x_handle_toolbar_click): Use it. | |
5990 | (note_toolbar_highlight): Use it. | |
5991 | ||
5992 | * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties | |
5993 | and toolbar_items_vectors. | |
5994 | ||
5995 | * xterm.c (help_echo): New. | |
5996 | (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN. | |
5997 | (x_set_glyph_string_gc): Handle them. | |
5998 | (x_after_update_window_line): Don't do anything in pseudo-windows. | |
5999 | (x_produce_image_glyph): Take image margin and face relief into | |
6000 | account. | |
6001 | (x_get_glyph_string_clip_rect): Handle pseudo-windows. | |
6002 | (x_draw_glyph_string_background): Optimize case when face has | |
6003 | relief. | |
6004 | (x_setup_relief_color): Take frame instead of glyph string | |
6005 | parameter. | |
6006 | (x_draw_relief_rect): New. | |
6007 | (x_draw_glyph_string_relief): Call it. | |
6008 | (x_draw_image_glyph_string_foreground): Handle margin and image | |
6009 | relief. | |
6010 | (x_draw_image_glyph_string_background): Ditto. | |
6011 | (expose_frame): Redraw toolbar window. | |
6012 | (expose_window): Don't draw cursor for pseudo-windows. | |
6013 | (x_y_to_hpos_vpos): Handle pseudo-windows. | |
6014 | (frame_to_window_pixel_xy): New. | |
6015 | (note_mouse_highlight): Call note_toolbar_highlight. | |
6016 | (x_handle_toolbar_click): New. | |
6017 | (note_toolbar_highlight): New. | |
6018 | (show_mouse_face): Change int parameter `hl' to parameter of | |
6019 | type enum draw_glyphs_face. Handle image highlighting. | |
6020 | (XTread_socket): Return a HELP_EVENT input event if help_echo is | |
6021 | non-nil. Use x_handle_toolbar_click. | |
6022 | ||
6023 | * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT. | |
6024 | ||
6025 | * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE, | |
6026 | IMAGE_BOOL_VALUE. | |
6027 | (parse_image_spec): Handle them. | |
6028 | (image_spec_value): Additional parameter found. | |
6029 | (free_image): Remove image from the vector `images' of the | |
6030 | image cache. | |
6031 | (clear_image_cache): Additional parameter force_p. | |
6032 | (Fclear_image_cache): New. | |
6033 | (x_find_image_file): New. | |
6034 | (xbm_load): Handle `:margin' and `:relief'. Use | |
6035 | x_find_image_file. | |
6036 | (xpm_load): Likewise. | |
6037 | (pbm_load): Likewise. | |
6038 | (jpeg_load): Likewise. | |
6039 | (tiff_load): Likewise. | |
6040 | (gif_load): Likewise. | |
6041 | ||
6042 | * keyboard.c (Qhelp_echo): New symbol. | |
6043 | (read_char): Handle `toolbar' and `help_echo' events. | |
6044 | (kbd_buffer_get_event): Handle HELP_ECHO input event. | |
6045 | (make_lispy_event): Handle TOOLBAR_EVENT. | |
6046 | (toolbar_items): New. | |
6047 | (process_toolbar_item): New. | |
6048 | (PROP): New. | |
6049 | (init_toolbar_items): New. | |
6050 | (append_toolbar_item): New. | |
6051 | (read_char_x_menu_prompt): Handle `toolbar' event. | |
6052 | (read_key_sequence): Ditto. | |
6053 | ||
6054 | * xfaces.c (Qtoolbar): New. | |
6055 | (realize_basic_faces): Realize `toolbar' face. | |
6056 | (face_at_string_position): Remove parameter modeline_p, add | |
6057 | base_face_id. | |
6058 | ||
6059 | * xfns.c (xbm_load_image_from_file): Don't use Xmu function | |
6060 | to read data. | |
6061 | ||
6062 | 1998-10-17 Gerd Moellmann <gerd@gnu.org> | |
6063 | ||
6064 | * xdisp.c (init_iterator): Replace parameter modeline_p with | |
6065 | base_face_id. | |
6066 | (next_element_from_string): Call get_next_display_element | |
6067 | recursively after handling text properties. | |
6068 | (prepare_menu_bars): Call update_toolbar. | |
6069 | (update_toolbar): New. | |
6070 | (build_desired_toolbar_string): New. | |
6071 | (display_toolbar_line): New. | |
6072 | (redisplay_toolbar): New. | |
6073 | (toolbar_item_info): New. | |
6074 | (redisplay_window): Call redisplay_toolbar. | |
6075 | (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG. | |
6076 | ||
6077 | * dispnew.c (clear_current_matrices): Clear matrices of toolbar | |
6078 | window. | |
6079 | (clear_desired_matrices): Ditto. | |
6080 | (adjust_frame_glyphs_for_window_redisplay): Make toolbar window. | |
6081 | (free_glyphs): Free matrices of toolbar window. | |
6082 | (update_frame): Update toolbar window. | |
6083 | (change_frame_size_1): Take toolbar into account. | |
6084 | (Fset_toolbar_height): New. | |
6085 | ||
6086 | * dispextern.h (struct it): Remove member modeline_p, add | |
6087 | base_face_id. | |
6088 | (struct image): Add members relief and margin. | |
6089 | (IMAGE_ASCENT): Include margin in height. | |
6090 | ||
6091 | 1998-10-14 Gerd Moellmann <gerd@gnu.org> | |
6092 | ||
6093 | * xfns.c (Fclear_image_cache): New. | |
6094 | ||
6095 | * xfaces.c (realize_basic_faces): Realize toolbar face. | |
6096 | (face_at_string_position): Remove parameter modeline_p, add | |
6097 | base_face_id. | |
6098 | ||
6099 | * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID. | |
6100 | ||
6101 | 1998-10-13 Gerd Moellmann <gerd@gnu.org> | |
6102 | ||
6103 | * keyboard.c (syms_of_keyboard): Intern `:help'. | |
6104 | ||
6105 | 1998-10-12 Gerd Moellmann <gerd@gnu.org> | |
6106 | ||
6107 | * xterm.c (note_toolbar_highlight): New. | |
6108 | (note_mouse_highlight): Call it. | |
6109 | ||
6110 | * window.c (window_from_coordinates): Additional parameter toolbar_p. | |
6111 | (coordinates_in_window): Handle toolbar window. | |
6112 | ||
6113 | * keyboard.c (toolbar_items): New. | |
6114 | (process_toolbar_item): New. | |
6115 | (parse_toolbar_item): New. | |
6116 | (init_toolbar_items): New. | |
6117 | (append_toolbar_item): New. | |
6118 | ||
6119 | * dispextern.h (enum toolbar_item_idx): New. | |
6120 | (enum toolbar_item_image): New. | |
6121 | ||
6122 | * frame.h (struct frame): Add toolbar-related members. | |
6123 | ||
6124 | * xfaces.c (face_at_string_position): Remove assertion that | |
6125 | current_buffer == window's buffer. This is not the case when | |
6126 | called for the toolbar window. | |
6127 | ||
6128 | * frame.c (make_frame): Initialize toolbar members. | |
6129 | ||
6130 | * alloc.c (mark_object): Mark toolbar data of frames. | |
6131 | ||
6132 | * frame.h (struct frame): Add toolbar-related members | |
6133 | toolbar_window, desired_toolbar_items, current_toolbar_items, | |
6134 | desired_toolbar_string, current_toolbar_string, | |
6135 | n_desired_toolbar_items, n_current_toolbar_items. Add | |
6136 | window_height. | |
6137 | ||
6138 | * xterm.c (x_after_update_window_line): Don't draw bitmap | |
6139 | areas for pseudo-windows. | |
6140 | (expose_frame): Handle toolbar window. | |
6141 | (expose_window): Don't do cursor stuff for pseudo-windows. | |
6142 | ||
6143 | * xdisp.c (display_menu_bar): Correct calls to init_iterator. | |
6144 | ||
6145 | 1998-10-11 Gerd Moellmann <gerd@gnu.org> | |
6146 | ||
6147 | * frame.c (make_frame): Initialize toolbar_window. | |
6148 | ||
6149 | * alloc.c (mark_object): Make the toolbar window. | |
6150 | ||
6151 | * dispnew.c (update_frame): Update frame's toolbar_window. | |
6152 | (clear_current_matrices): Likewise. | |
6153 | (clear_desired_matrices): Likewise. | |
6154 | (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window. | |
6155 | (free_glyphs): Free the toolbar window and its matrices. | |
6156 | ||
6157 | * frame.h (struct frame): Add toolbar_window. | |
6158 | ||
6159 | * xterm.c (x_draw_glyph_string_relief): Handle mouse-face | |
6160 | with relief. | |
6161 | ||
6162 | 1998-10-10 Gerd Moellmann <gerd@gnu.org> | |
6163 | ||
6164 | * dispnew.c (buffer_posn_from_coords): Don't screw up if | |
6165 | window start is not in the range BEGV..ZV. | |
6166 | ||
6167 | 1998-10-09 Gerd Moellmann <gerd@gnu.org> | |
6168 | ||
6169 | * xdisp.c (try_scrolling): Experimentally handle the case | |
6170 | that scroll-preserve-screen-position is set to `always'. | |
6171 | ||
6172 | * window.c (Vscroll_preserve_screen_position): Replacement for | |
6173 | scroll_preserve_screen_position. | |
6174 | ||
6175 | 1998-10-08 Gerd Moellmann <gerd@gnu.org> | |
6176 | ||
6177 | * dispnew.c: Don't initialize auto structs; the HP/UX compiler | |
6178 | doesn't like it. | |
6179 | * xdisp.c: Ditto. | |
6180 | ||
6181 | * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y. | |
6182 | ||
6183 | 1998-10-06 Gerd Moellmann <gerd@gnu.org> | |
6184 | ||
6185 | * minibuf.c (Fminibuffer_complete_word): Fix computation of | |
6186 | i_byte when prompts are inserted into minibuffers. | |
6187 | ||
6188 | * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New. | |
6189 | (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it. | |
6190 | (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto. | |
6191 | ||
6192 | 1998-10-04 Gerd Moellmann <gerd@gnu.org> | |
6193 | ||
6194 | * xdisp.c (make_cursor_line_fully_visible): New. | |
6195 | (try_scrolling): New. | |
6196 | (redisplay_window): Move scrolling code to try_scrolling. | |
6197 | (make_cursor_line_fully_visible): Handle case of window too small | |
6198 | to show a single line. | |
6199 | (redisplay_window): Case forced window start---use | |
6200 | make_cursor_line_fully_visible. | |
6201 | (redisplay_window): Case cursor movement via current matrix. | |
6202 | If ending up on a partially visible line, make it fully visible | |
6203 | instead of recentering. | |
6204 | (try_scrolling): Additional parameter scroll_smoothly. | |
6205 | ||
6206 | * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap. | |
6207 | ||
6208 | 1998-09-28 Gerd Moellmann <gerd@gnu.org> | |
6209 | ||
6210 | * window.c (window_scroll_pixel_based): Bug fix: vpos used | |
6211 | instead of y-position for scroll-preserved-screen-position. | |
6212 | ||
6213 | 1998-09-07 Gerd Moellmann <gerd@gnu.org> | |
6214 | ||
6215 | * dispnew.c (update_frame_line): If current row is not enabled, | |
6216 | write the whole line. | |
6217 | ||
6218 | 1998-09-06 Gerd Moellmann <gerd@gnu.org> | |
6219 | ||
6220 | * lisp.h (HAVE_FACES): Removed. | |
6221 | ||
6222 | * dispextern.h (HAVE_FACES): Removed. | |
6223 | ||
6224 | * config.in (HAVE_FACES): Removed. | |
6225 | ||
6226 | * dispnew.c (HAVE_FACES): Removed. | |
6227 | ||
6228 | * xdisp.c (HAVE_FACES): Removed. | |
6229 | ||
6230 | * xfaces.c (HAVE_FACES): Removed. | |
6231 | ||
6232 | 1998-09-05 Gerd Moellmann <gerd@gnu.org> | |
6233 | ||
6234 | * xdisp.c (init_iterator): If face_change_count is non-zero, | |
6235 | free realized faces. | |
6236 | ||
6237 | * xfaces.c (free_all_realized_faces): Make it externally visible. | |
6238 | (Finternal_set_lisp_face_attribute): Increment | |
6239 | windows_or_buffers_changed. | |
6240 | ||
6241 | * dispnew.c (direct_output_for_insert): Give up if | |
6242 | face_change_count is non-zero. | |
6243 | (direct_output_forward_char): Ditto. | |
6244 | ||
6245 | * xfaces.c (face_change_count): New. | |
6246 | ||
6247 | 1998-09-04 Gerd Moellmann <gerd@gnu.org> | |
6248 | ||
6249 | * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out | |
6250 | of range. | |
6251 | ||
6252 | 1998-09-03 Gerd Moellmann <gerd@gnu.org> | |
6253 | ||
6254 | * term.c (Ftty_display_color_p): New. | |
6255 | ||
6256 | 1998-09-02 Gerd Moellmann <gerd@gnu.org> | |
6257 | ||
6258 | * xfaces.c (Ftty_defined_colors): New. | |
6259 | ||
6260 | * xterm.c (x_produce_glyphs): Fix computation of | |
6261 | contains_overlapping_glyphs_p for ASCII. | |
6262 | ||
6263 | * dispnew.c (Fshow_cursor): Don't change cursor state while | |
6264 | redisplaying. | |
6265 | (direct_output_for_insert): If a glyph with lbearing or rbearing | |
6266 | is among the new glyphs, set row flag contains_overlapping_glyph_p. | |
6267 | ||
6268 | 1998-09-01 Gerd Moellmann <gerd@gnu.org> | |
6269 | ||
6270 | * term.c (OUTPUT_IF): Make replacement text have statement form. | |
6271 | (OUTPUT1_IF): Ditto. | |
6272 | (TS_italic_mode, TS_end_italic_mode): Removed. | |
6273 | (TS_bold_mode): Removed. | |
6274 | (TS_underscore_mode, TS_end_underscore_mode): Removed. | |
6275 | (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New. | |
6276 | (TS_enter_reverse_mode): New. | |
6277 | (TS_enter_underline_mode, TS_exit_underline_mode): New. | |
6278 | (TN_magic_cookie_glitch_ul): New. | |
6279 | (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New. | |
6280 | (TS_exit_attribute_mode): New. | |
6281 | (TN_max_colors, TN_max_pairs, TS_orig_pairs): New. | |
6282 | (TS_set_foreground, TS_set_background): New. | |
6283 | (reset_terminal_modes): Switch colors back to default. | |
6284 | (write_glyphs): Turn face on before writing text, turn it off | |
6285 | afterwards. | |
6286 | (insert_glyphs): Ditto. | |
6287 | (term_init): Initialize new terminal capability variables. | |
6288 | (turn_on_face): Turn a face on. | |
6289 | (turn_off_face): Turn a face off. | |
6290 | ||
6291 | * lisp.h (MAKE_GLYPH): Remove test for frame type. | |
6292 | (GLYPH_CHAR): Ditto. | |
6293 | (GLYPH_FACE): Ditto. | |
6294 | ||
6295 | * xfaces.c (Vface_tty_color_alist): New. | |
6296 | (face-register-tty-color): New. | |
6297 | (face-clear-tty-colors): New. | |
6298 | ||
6299 | * dispextern.h (FACE_TTY_DEFAULT_COLOR): New. | |
6300 | (struct it): Remove member faces_p since we now always have faces. | |
6301 | ||
6302 | 1998-08-31 Gerd Moellmann <gerd@gnu.org> | |
6303 | ||
6304 | * dispextern.h (struct face): Add tty appearance flags. | |
6305 | ||
6306 | * xdisp.c (init_iterator): Always handle faces. | |
6307 | (extend_face_to_end_of_line): Handle tty frames. | |
6308 | ||
6309 | * dispnew.c (clear_glyph_matrix): Allow a null matrix to be | |
6310 | passed in. | |
6311 | ||
6312 | 1998-08-30 Gerd Moellmann <gerd@gnu.org> | |
6313 | ||
6314 | * xfaces.c (realize_default_face): Use empty strings to indicate | |
6315 | that the face should use the default foreground/background | |
6316 | color of the terminal. Fill font-related attributes with | |
6317 | appropriate values for tty frames. | |
6318 | ||
6319 | * emacs.c (main): Call syms_of_xfaces before init_window_once. | |
6320 | ||
6321 | * xfaces.c (realize_default_face): If face `default' is not | |
6322 | yet known, create it. | |
6323 | ||
6324 | * frame.c (make_terminal_frame): Call init_frame_faces | |
6325 | unconditionally. | |
6326 | ||
6327 | * xfaces.c (init_frame_faces): Make it work for tty frames. | |
6328 | (free_frame_faces): Ditto. | |
6329 | (clear_face_cache): Ditto. | |
6330 | (recompute_basic_faces): Ditto. | |
6331 | (Fframe_face_alist): Ditto. | |
6332 | (free_realized_face): Ditto. | |
6333 | (prepare_face_for_display): Ditto. | |
6334 | (clear_face_gcs): Ditto. | |
6335 | (lookup_face): Ditto. | |
6336 | (smaller_face): Ditto. | |
6337 | (realize_default_face): Ditto. | |
6338 | (realize_face): Ditto. | |
6339 | (realize_face): Dispatch to functions depending on the frame type. | |
6340 | (realize_x_face): X way of realizing faces. | |
6341 | (realize_tty_face): TTY way of realizing faces. | |
6342 | ||
6343 | 1998-08-29 Gerd Moellmann <gerd@gnu.org> | |
6344 | ||
6345 | * xfaces.c (realize_face): Remove parameter unibyte_registry, | |
6346 | compute it instead. | |
6347 | (lookup_face): Remove local variable unibyte_registry. | |
6348 | ||
6349 | 1998-08-22 Gerd Moellmann <gerd@gnu.org> | |
6350 | ||
6351 | * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines | |
6352 | 1 pixel longer. | |
6353 | ||
6354 | * xdisp.c (face_before_or_after_it_pos): Fix computation | |
6355 | of face in buffer. | |
6356 | ||
6357 | * editfns.c (make_buffer_string_both): If prompt in buffer, | |
6358 | prevent start > end. | |
6359 | ||
6360 | * indent.c (Fvertical_motion): Set current_buffer to window's | |
6361 | buffer if it isn't already. | |
6362 | ||
6363 | 1998-08-21 Gerd Moellmann <gerd@gnu.org> | |
6364 | ||
6365 | * dispextern.h (GLYPH_DEBUG): Use default 0. | |
6366 | ||
6367 | * xdisp.c (it_props): New member `smaller'. | |
6368 | (init_iterator): Initialize it. | |
6369 | (Qsmaller): New. | |
6370 | (push_it): Save value of `smaller' value on the stack. | |
6371 | (pop_it): Restore `smaller' from the stack. | |
6372 | (handle_smaller_prop): New. | |
6373 | (handle_face_prop): Use `smaller' text property to select a | |
6374 | suitable face. | |
6375 | ||
6376 | * dispextern.h (SMALLER_PROP_IDX): New. | |
6377 | (struct it): Add member `smaller'. | |
6378 | ||
6379 | * xfaces.c (smaller_face): New. | |
6380 | ||
6381 | * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths. | |
6382 | ||
6383 | * dispnew.c (allocate_matrices_for_window_redisplay): Compute | |
6384 | total pixel width of window differently. | |
6385 | ||
6386 | * xdisp.c (init_iterator): Compute width of mode line differently. | |
6387 | ||
6388 | * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width | |
6389 | of bitmap areas. | |
6390 | ||
6391 | * window.c (Fsplit_window): Include width of bitmap areas in | |
6392 | window width. | |
6393 | (window_internal_width): Subtract width of bitmap areas from | |
6394 | total width. | |
6395 | ||
6396 | 1998-08-18 Gerd Moellmann <gerd@gnu.org> | |
6397 | ||
6398 | * xdisp.c: Functions reordered for better readability. | |
6399 | ||
6400 | * dispnew.c (update_text_area): Handle glyphs with arbitrary | |
6401 | lbearing. | |
6402 | (update_window_tree): Parameter no_scrolling_p removed. | |
6403 | (update_single_window): Ditto. | |
6404 | ||
6405 | * xterm.c (x_get_char_font_and_encoding): Renamed to | |
6406 | x_get_char_face_and_encoding. | |
6407 | ||
6408 | * dispnew.c (update_text_area): Don't call get_glyph_overhangs | |
6409 | if end of current row reached. | |
6410 | ||
6411 | * xterm.c (x_get_glyph_face_and_encoding): New. | |
6412 | (x_get_glyph_overhangs): Call it. | |
6413 | ||
6414 | * xdisp.c (Qshow_trailing_whitespace): New. | |
6415 | (Qtrailing_whitespace): New. | |
6416 | (enum prop_handled): New. | |
6417 | (struct props, it_props): New. | |
6418 | (next_overlay_change): New. Works like Fnext_overlay_change | |
6419 | but doesn't use xmalloc. | |
6420 | (handle_stop): Restructured. | |
6421 | (face_before_or_after_it_pos): Case iteration over a string: fix | |
6422 | handling of face before current position. | |
6423 | ||
6424 | 1998-08-16 Gerd Moellmann <gerd@gnu.org> | |
6425 | ||
6426 | * dispnew.c (adjust_glyph_matrix): Don't optimize matrix | |
6427 | reallocation matrix if fonts_changed_p. | |
6428 | (update_text_area): Handle glyphs with lbearing. | |
6429 | ||
6430 | 1998-08-14 Gerd Moellmann <gerd@gnu.org> | |
6431 | ||
6432 | * xdisp.c (struct props): New. | |
6433 | (it_props): New. | |
6434 | (compute_prop_info): New. | |
6435 | (handle_stop): New. | |
6436 | ||
6437 | * textprop.c (validate_interval_range): Make it externally | |
6438 | visible. | |
6439 | ||
6440 | * dispnew.c (direct_output_for_insert): Remove calls | |
6441 | to compute_stop_pos. | |
6442 | ||
6443 | * dispextern.h (struct it): Remove check_charpos, | |
6444 | next_overlay_pos. Add what_changes. | |
6445 | ||
6446 | 1998-08-10 Gerd Moellmann <gerd@gnu.org> | |
6447 | ||
6448 | * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE. | |
6449 | ||
6450 | * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use | |
6451 | face_default_registry instead. | |
6452 | ||
6453 | * syntax.c (scan_sexps_forward): Set up syntax table before | |
6454 | jumping to initial state label. | |
6455 | ||
6456 | 1998-08-09 Gerd Moellmann <gerd@gnu.org> | |
6457 | ||
6458 | * dispnew.c (check_matrix_invariants): Handle case of row end pos | |
6459 | >= ZV specially. | |
6460 | ||
6461 | 1998-08-08 Gerd Moellmann <gerd@gnu.org> | |
6462 | ||
6463 | * xdisp.c (redisplay_window): Case cursor movement---if cursor | |
6464 | ends up in partially visible row, try to scroll. Case forced | |
6465 | window start---handle windows not tall enough to show a single | |
6466 | line. | |
6467 | ||
6468 | * window.h (struct window): Member dy renamed vscroll. | |
6469 | ||
6470 | * xterm.c (x_list_fonts): Re-activate suppression of scalable | |
6471 | fonts. | |
6472 | (x_draw_stretch_glyph_string): Set clipping if using GC that | |
6473 | hasn't set it yet. | |
6474 | ||
6475 | * xdisp.c (redisplay_window): Case forced window start - | |
6476 | don't let cursor end on partially visible row. Use desired | |
6477 | matrix to find a suitable PT if it doesn't appear. | |
6478 | (decode_mode_spec): Merged with 20.2.97. | |
6479 | (try_window_reusing_current_matrix): Give up if old or | |
6480 | new display is vscrolled. | |
6481 | (redisplay_window): Reset vscrolling if forced window start, | |
6482 | or if recentering. | |
6483 | ||
6484 | 1998-08-06 Gerd Moellmann <gerd@gnu.org> | |
6485 | ||
6486 | * xfaces.c (realize_default_face): Use the fontset name instead of | |
6487 | the alias for the family attribute of the default face because we | |
6488 | can't easily determine a good alias from fontset-alias-alist. | |
6489 | (face_fontset): Use Fquery_fontset to find the fontset. | |
6490 | (font_list): Additional pattern parameter. | |
6491 | (try_font_list): Ditto. | |
6492 | (set_lface_from_font_name): Set face family from font foundry | |
6493 | and family. | |
6494 | (font_list): If family contains a hyphen, build pattern differently. | |
6495 | ||
6496 | 1998-08-05 Gerd Moellmann <gerd@gnu.org> | |
6497 | ||
6498 | * xfaces.c (free_realized_faces): Increment windows_or_buffers_- | |
6499 | changed instead of setting the frame garbaged. | |
6500 | ||
6501 | * xfaces.c (lface_equal_p): Don't assume equal Lisp types for | |
6502 | all attribute values. This is wrong if values are unspecified, | |
6503 | i.e. nil. | |
6504 | ||
6505 | * xdisp.c (try_window_id): Give up if window start changed. | |
6506 | ||
6507 | * xfaces.c (make_realized_face): Store registry as Lisp object. | |
6508 | (load_face_font_or_fontset): Compute registry of a face | |
6509 | differently. Make it `eq' to Vx_unibyte_registry_and_encoding if | |
6510 | possible. | |
6511 | ||
6512 | * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries | |
6513 | differently. | |
6514 | ||
6515 | * alloc.c (mark_face_cache): Mark the registry member of faces. | |
6516 | ||
6517 | * dispextern.h (struct face): Make registry a Lisp string. | |
6518 | ||
6519 | 1998-08-04 Gerd Moellmann <gerd@gnu.org> | |
6520 | ||
6521 | * xterm.c (x_get_char_font_and_encoding): Additional parameter | |
6522 | multibyte_p. Handle unibyte text. | |
6523 | (x_append_glyph): Set the multibyte_p flag of glyphs. | |
6524 | (x_produce_image_glyph): Ditto. | |
6525 | (x_append_stretch_glyph): Ditto. | |
6526 | (x_produce_glyphs): Handle unibyte text like ASCII. | |
6527 | ||
6528 | * xdisp.c (push_it): Save the multibyte flag of an iterator on the | |
6529 | stack. | |
6530 | (pop_it): Restore it. | |
6531 | (face_before_or_after_it_pos): Handle the case that the string or | |
6532 | buffer is unibyte. | |
6533 | (get_overlay_strings): Set the multibyte flag of the iterator if | |
6534 | the new overlay string is multibyte. | |
6535 | (get_glyph_property): Likewise. | |
6536 | (get_next_display_element): Don't check for charset changes in | |
6537 | unibyte text. | |
6538 | (append_space): Compute face differently for unibyte text. | |
6539 | (extend_face_to_end_of_line): Don't return quickly if face has | |
6540 | stipple. | |
6541 | ||
6542 | * xfaces.c (load_face_font_or_fontset): Store registry and | |
6543 | encoding of the font in the registry member of the face. | |
6544 | (make_realized_face): Additional parameter `registry'. | |
6545 | (free_realized_face): Free the registry of a realized face. | |
6546 | (face_suitable_for_charset_p): Function form of the macro | |
6547 | with the same name in uppercase. | |
6548 | (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0. | |
6549 | (choose_face_font): New parameter unibyte_registry. | |
6550 | (choose_face_fontset_font): Ditto. | |
6551 | (realize_default_face): Remember the registry and encoding of | |
6552 | the specified frame font in Vx_unibyte_registry_and_encoding. | |
6553 | (face_at_buffer_position): Handle unibyte. | |
6554 | (face_at_string_position): Likewise. | |
6555 | (realize_face): New parameter unibyte_registry. | |
6556 | (compute_char_face): Handle the unibyte case. | |
6557 | ||
6558 | * dispextern.h (struct glyph): Add bit multibyte_p. | |
6559 | (struct face): New member registry holding the registry and | |
6560 | encoding of the X font of the face. | |
6561 | (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text. | |
6562 | (enum face_id): Add BASIC_FACE_ID_SENTINEL. | |
6563 | (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte | |
6564 | text. | |
6565 | (struct iterator_stack_entry): Add multibyte_p. | |
6566 | ||
6567 | * xdisp.c (string_pos): Use string_char_to_byte. | |
6568 | (char_charset): Removed. | |
6569 | ||
6570 | 1998-08-03 Gerd Moellmann <gerd@gnu.org> | |
6571 | ||
6572 | * xterm.c (x_draw_image_glyph_string_foreground): Draw a | |
6573 | rectangle for a block cursor over an image without a mask. | |
6574 | (x_stretch_block_cursor): Added. Non-zero means don't draw | |
6575 | a block cursor over a stretch as wide as that stretch. | |
6576 | (x_draw_stretch_glyph_string): Use it. | |
6577 | (x_draw_hollow_cursor): Ditto. | |
6578 | ||
6579 | * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt. | |
6580 | (read_minibuf): Add front-sticky text property for prompt. | |
6581 | ||
6582 | * xdisp.c (char_charset): Return charset of a character, | |
6583 | depending on whether or not multi-byte characters are enabled. | |
6584 | ||
6585 | * xfaces.c (Fset_face_charset_registry): Removed. | |
6586 | (x_charset_registry): Determine registry from charset plist. | |
6587 | ||
6588 | 1998-08-02 Gerd Moellmann <gerd@gnu.org> | |
6589 | ||
6590 | * xdisp.c (get_next_display_element): Don't check for charset | |
6591 | changes if multi-byte characters are not enabled. | |
6592 | ||
6593 | * xdisp.c (echo_area_display): Use the flush function from the | |
6594 | redisplay interface. | |
6595 | * keyboard.c (detect_input_pending_run_timers): Likewise. | |
6596 | ||
6597 | * dispextern.h (produce_*glyphs_hook): Removed. | |
6598 | * term.c (produce_*glyphs): Ditto. | |
6599 | (cursor_to): Remove pixel position parameters. | |
6600 | ||
6601 | * dispnew.c: Remove hooks for window-based redisplay, introduce | |
6602 | a redisplay interface structure. | |
6603 | ||
6604 | * xterm.c (x_per_char_metric): Return default char metrics if per | |
6605 | char metric exists but contains a zero width. Adobe Courier seems | |
6606 | to contain such characters. | |
6607 | ||
6608 | * xdisp.c (compute_line_metrics): Compute the width of rows | |
6609 | without stopping at glyphs with zero width. | |
6610 | ||
6611 | 1998-08-01 Gerd Moellmann <gerd@gnu.org> | |
6612 | ||
6613 | * xdisp.c (display_mode_line): If nothing was displayed at all, | |
6614 | display a space. | |
6615 | (hscroll_window_tree): Don't subtract 1 from target point if equal | |
6616 | to ZV and window is not the selected window. | |
6617 | ||
6618 | * dispnew.c (check_matrix_invariants): Remove check for window | |
6619 | start at BEGV or after newline. This happens in rare cases | |
6620 | intentionally. | |
6621 | ||
6622 | 1998-07-31 Gerd Moellmann <gerd@gnu.org> | |
6623 | ||
6624 | * xfaces.c (x_charset_registry): Use STRING_BYTES. | |
6625 | (syms_of_xfaces): Add Vface_default_registry. | |
6626 | (x_charset_registry): Use it. | |
6627 | ||
6628 | * xdisp.c (run_window_scroll_functions): Run window scroll functions. | |
6629 | (redisplay_window): Use it. | |
6630 | ||
6631 | * dispnew.c (update_text_area): Handle lbearing of deleted text | |
6632 | by backing up one character. | |
6633 | ||
6634 | 1998-07-30 Gerd Moellmann <gerd@gnu.org> | |
6635 | ||
6636 | * dispnew.c (adjust_glyph_matrix): Use a different check to | |
6637 | decide to do nothing. | |
6638 | ||
6639 | * xfaces.c (face_at_string_position): Additional parameter | |
6640 | mode_line_p. If non-zero, merge with the mode line face | |
6641 | instead of the default face. | |
6642 | * dispextern.h (struct it): Add mode_line_p. | |
6643 | * xdisp.c (init_iterator): Set it. | |
6644 | (compute_face_in_string): Use it. | |
6645 | (face_before_or_after_it_pos): Handle strings. | |
6646 | (get_next_display_element): Don't look for relief end in C strings. | |
6647 | (next_element_from_string): Deliver string position instead of | |
6648 | buffer position. | |
6649 | ||
6650 | * xterm.c (x_flush): Flush X output buffer. | |
6651 | (XTflash): Use it. | |
6652 | ||
6653 | * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol. | |
6654 | Allow strings as face names. | |
6655 | ||
6656 | * xfns.c (forall_images_in_image_cache): Check that frame is | |
6657 | alive. | |
6658 | ||
6659 | * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces; | |
6660 | it's also called from x_destroy_window. Since this function is | |
6661 | called from X, freeing stuff allocated with xmalloc is dangerous | |
6662 | here, anyway. | |
6663 | ||
6664 | * xfaces.c (free_realized_faces): Don't clear current matrices | |
6665 | of a frame being destroyed. | |
6666 | ||
6667 | * frame.c (make_frame): Call set_window_buffer instead of | |
6668 | Fset_window_buffer. | |
6669 | ||
6670 | * window.c (set_window_buffer): Extracted from Fset_window_buffer, | |
6671 | with an additional argument specifying whether or not hooks may | |
6672 | be called. | |
6673 | (Fset_window_buffer): Call it. | |
6674 | ||
6675 | * dispnew.c (clear_desired_matrices): Check that frame has | |
6676 | a valid root window before clearing matrices in the window tree. | |
6677 | (clear_current_matrices): Ditto. | |
6678 | (clear_window_matrices): If GLYPH_DEBUG, check that hchild and | |
6679 | vchild are valid windows if not nil. | |
6680 | ||
6681 | * xfaces.c (merge_face_vector_with_property): Allow :reverse-video | |
6682 | for :inverse-video. | |
6683 | (Finternal_set_lisp_face_attribute): Ditto. | |
6684 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
6685 | (Finternal_get_lisp_face_attribute): Ditto. | |
6686 | (Finternal_lisp_face_attribute_values): Ditto. | |
6687 | (syms_of_xfaces): Define the symbol `:reverse-video'. | |
6688 | ||
6689 | * xdisp.c (get_glyph_property): Renamed from | |
6690 | fill_iterator_from_glyph_property. | |
6691 | (next_element_from_buffer): Handle case that no `glyph' property | |
6692 | was found correctly. | |
6693 | (display_line): Extend face to end of line only if we have faces. | |
6694 | ||
6695 | 1998-07-29 Gerd Moellmann <gerd@gnu.org> | |
6696 | ||
6697 | * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take | |
6698 | additional window argument. | |
6699 | ||
6700 | * xdisp.c (reseat_at_previous_visible_line_start): Renamed from | |
6701 | set_iterator_to_previous_visible_line_start. | |
6702 | (reseat_at_next_visible_line_start): Likewise. | |
6703 | (compute_stop_pos): Renamed from set_iterator_stop_pos. | |
6704 | (face_before_or_after_it_pos): Renamed from get_face_at_it_pos. | |
6705 | (compute_face_in_buffer): Renamed from | |
6706 | compute_face_at_iterator_position. | |
6707 | (compute_face_in_string): Renamed from | |
6708 | compute_face_at_iterator_string_position. | |
6709 | (get_space_width): Renamed from get_iterator_space_width. | |
6710 | (next_overlay_string): Renamed from | |
6711 | set_iterator_to_next_overlay_string. | |
6712 | (get_overlay_strings): Renamed from | |
6713 | get_overlay_strings_at_iterator_position. | |
6714 | (restore_overlay_strings): Renamed from | |
6715 | setup_overlay_strings_from_glyph_pos. | |
6716 | (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos. | |
6717 | (init_from_display_pos): Renamed from init_iterator_from_glyph_pos. | |
6718 | (init_to_row_start): Renamed from init_iterator_to_row_start. | |
6719 | (init_to_row_end): Formerly init_iterator_to_next_row_start. | |
6720 | ||
6721 | * xterm.c: Merge with 20.2.97. | |
6722 | (x_produce_glyphs): Use x_append_stretch_glyph for tabs. | |
6723 | ||
6724 | * dispextern.h (struct glyph): Replace text_pos position with | |
6725 | simple charpos. | |
6726 | ||
6727 | * xdisp.c (this_line_start_pos): Use struct text_pos. | |
6728 | (this_line_end_pos): Renamed from .*endpos; use struct text_pos. | |
6729 | (enum move_it_result): Renamed from move_iterator_result. | |
6730 | (string_pos_nchars_ahead): Compute text_pos in a string from a | |
6731 | known text_pos plus a character delta. | |
6732 | (string_pos): Compute text_pos in string from charpos. | |
6733 | (c_string_pos): Likewise for a C string. | |
6734 | (number_of_chars): Return number of characters in a possibly | |
6735 | multi-byte C string. | |
6736 | (check_it): Renamed from check_iterator. Check that charpos and | |
6737 | bytepos are in sync. | |
6738 | (push_it): Renamed from save_iterator_settings. | |
6739 | (pop_it): Renamed from restore_iterator_settings. | |
6740 | (move_it_.*): Renamed from move_iterator_.*. | |
6741 | (charset_at_position): Take charpos/bytepos into account. | |
6742 | (back_to_previous_line_start): Set iterator to previous line start. | |
6743 | (forward_to_next_line_start): Set iterator to next line start. | |
6744 | (back_to_previous_visible_line_start): Renamed from | |
6745 | move_iterator_previous_visible_line_start. | |
6746 | (set_iterator_to_next_visible_line_start): Handle charpos/bytepos. | |
6747 | (get_face_at_it_pos): Renamed from get_face_from_cursor_pos. | |
6748 | Handle charpos/bytepos. | |
6749 | (compute_face_at_iterator_position): Handle charpos/bytepos. | |
6750 | (compute_face_at_iterator_string_position): Likewise. | |
6751 | (get_iterator_space_width): Likewise. | |
6752 | (load_overlay_strings): Likewise. | |
6753 | (get_overlay_strings_at_iterator_position): Likewise. | |
6754 | (reseat_iterator): Take a text_pos position argument. | |
6755 | (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/ | |
6756 | bytepos. | |
6757 | (init_iterator): Take additional bytepos parameter. | |
6758 | (reseat_iterator_to_string): Handle charpos/bytepos. | |
6759 | (start_display): Take a text_pos parameter. Handle charpos/bytepos. | |
6760 | (next_element_from_string): Handle charpos/bytepos. | |
6761 | (next_element_from_c_string): Likewise. | |
6762 | (fill_iterator_from_glyph_property): Likewise. | |
6763 | (next_element_from_buffer): Likewise. | |
6764 | (set_iterator_to_next): Increment charpos and bytepos of an iterator. | |
6765 | (move_iterator_in_display_line_to): Handle charpos/bytepos. | |
6766 | (move_it_to): Likewise. | |
6767 | (move_it_vertically_backward): Likewise. | |
6768 | (move_it_vertically): Likewise. | |
6769 | (move_it_by_lines): Likewise. | |
6770 | (hscroll_window_tree): Likewise. | |
6771 | (redisplay_internal): Likewise. | |
6772 | (set_cursor_from_row): Likewise. | |
6773 | (redisplay_window): Likewise. | |
6774 | (try_window): Take a text_pos parameter. Handle charpos/bytepos. | |
6775 | (try_window_reusing_current_matrix): Handle charpos/bytepos. | |
6776 | (get_first_unchanged_at_end_row): Compute and return delta_bytes. | |
6777 | (try_window_id): Handle charpos/bytepos. | |
6778 | (Ftrace_redisplay_toggle): Return Qnil. | |
6779 | (get_overlay_arrow_glyph_row): Handle charpos/bytepos. | |
6780 | (insert_left_trunc_glyphs): Likewise. | |
6781 | ||
6782 | * dispnew.c: `Merge' with 20.2.97 (it's really too different to | |
6783 | do a real merge). | |
6784 | (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes. | |
6785 | (increment_glyph_row_buffer_positions): Ditto. | |
6786 | (copy_glyph_row_contents): Ditto. | |
6787 | (check_matrix_invariants): Add additional checks for charpos/ | |
6788 | bytepos consistency. | |
6789 | (direct_output_for_insert): Changed for charpos/bytepos. | |
6790 | (buffer_posn_from_coords): Likewise. Put code dealing with | |
6791 | `direction-reversed' in #if 0. | |
6792 | ||
6793 | * xterm.h: Merge with 20.2.97. | |
6794 | ||
6795 | * frame.h: Merge with 20.2.97. | |
6796 | ||
6797 | * window.h: Merge with 20.2.97. Add window_end_bytepos. | |
6798 | ||
6799 | * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row | |
6800 | start. | |
6801 | (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position. | |
6802 | (MATRIX_ROW_END_CHARPOS): Likewise for the row end. | |
6803 | (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position. | |
6804 | (struct it): Various members renamed from .*pos to .*charpos. | |
6805 | (IT_CHARPOS): Access current buffer character position of an | |
6806 | iterator. | |
6807 | (IT_BYTEPOS): Access current buffer byte position of an iterator. | |
6808 | (IT_STRING_CHARPOS): Access current string character position of | |
6809 | an iterator. | |
6810 | (IT_STRING_BYTEPOS): Access current string byte position of | |
6811 | an iterator. | |
6812 | (globally): Add function prototypes from 20.2.97. | |
6813 | ||
6814 | * everywhere: Use P_ instead of PROTO for function prototypes | |
6815 | because everyone else seems to use P_. | |
6816 | ||
6817 | * dispextern.h (struct text_pos): Structure describing a charpos/ | |
6818 | bytepos position in text. | |
6819 | (BYTEPOS): Access the byte position part of a text_pos. | |
6820 | (CHARPOS): Likewise for the character position. | |
6821 | (SET_TEXT_POS): Set a text_pos from a character and byte position. | |
6822 | (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position. | |
6823 | (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker. | |
6824 | (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos. | |
6825 | (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality. | |
6826 | (struct display_pos): Renamed from glyph_pos. Use struct text_pos | |
6827 | for buffer and string positions. | |
6828 | (struct glyph): Use text_pos. | |
6829 | (struct it): Renamed from display_iterator. Use text_pos. | |
6830 | ||
6831 | 1998-07-23 Gerd Moellmann <gerd@gnu.org> | |
6832 | ||
6833 | * xfns.c (x_kill_gs_process): Get image colors from XImage of a | |
6834 | pixmap. | |
6835 | ||
6836 | 1998-07-21 Gerd Moellmann <gerd@gnu.org> | |
6837 | ||
6838 | * dispextern.h (struct glyph_row): New flag indicate_zv_line_p. | |
6839 | * xterm.c (x_draw_row_bitmaps): Use it. | |
6840 | * dispnew.c (row_equal_p): Ditto. | |
6841 | (update_window_line): Ditto. | |
6842 | ||
6843 | * xfns.c (prepare_image_for_display): Don't set loading_failed_p | |
6844 | flag of images. | |
6845 | ||
6846 | * dispextern.h (struct image): Removed member loading_failed_p. | |
6847 | It's probably better to have the chance to try to load an image | |
6848 | again. | |
6849 | ||
6850 | 1998-07-20 Gerd Moellmann <gerd@gnu.org> | |
6851 | ||
6852 | * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending | |
6853 | at ZV if `indicate-zv-lines' is non-nil. | |
6854 | (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'. | |
6855 | ||
6856 | * dispnew.c (row_equal_p): Compare displays_text_p and | |
6857 | ends_at_zv_p flags of rows. | |
6858 | (update_window_line): Ditto. | |
6859 | ||
6860 | * buffer.h (struct buffer): New member indicate_zv_lines. | |
6861 | ||
6862 | * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'. | |
6863 | (init_buffer_once): New variable `default-indicate-zv-lines'. | |
6864 | (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'. | |
6865 | ||
6866 | * xdisp.c (redisplay_window): Don't try moving the cursor | |
6867 | if current glyph row w->last_cursor.vpos isn't enabled. | |
6868 | ||
6869 | * xterm.c (bitmap_type): Add ZV_LINE_BITMAP. | |
6870 | ||
6871 | * window.c (Fset_window_vscroll): Allow only negative scroll | |
6872 | values. Others don't seem to make sense, and this way it's easy | |
6873 | to restore a vscroll of zero. | |
6874 | ||
6875 | * xterm.c (x_inverted_image_mask): Check that pixmap could be | |
6876 | allocated. | |
6877 | (x_draw_image_glyph_string_background): Don't clip if pixmap | |
6878 | could not be created. | |
6879 | ||
6880 | * xfns.c (xbm_load_image_from_file): Check that pixmap could | |
6881 | be created. | |
6882 | (xbm_load): Ditto. | |
6883 | (gs_load): Ditto. | |
6884 | ||
6885 | * xterm.c (x_get_glyph_overhangs): Take image and stretch | |
6886 | glyphs into account. | |
6887 | ||
6888 | * xfaces.c (realize_default_face): Don't set font family of | |
6889 | the default face from the fontset alias name for `fontset-startup'. | |
6890 | ||
6891 | * xfns.c (gs_load): Pass frame's pixel foreground and background | |
6892 | color to the Lisp loader. | |
6893 | ||
6894 | 1998-07-19 Gerd Moellmann <gerd@gnu.org> | |
6895 | ||
6896 | * xfns.c (tiff_image_p, tiff_load): Support TIFF images via | |
6897 | libtiff34. | |
6898 | ||
6899 | * configure.in (--with-tiff, HAVE_TIFF): Added. | |
6900 | ||
6901 | * config.in (HAVE_TIFF): Added. | |
6902 | ||
6903 | * Makefile.in (LIBTIFF): Added. | |
6904 | ||
6905 | * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images. | |
6906 | ||
6907 | * Makefile.in (LIBJPEG): Added. | |
6908 | ||
6909 | * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER, | |
6910 | RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with | |
6911 | jpeglib.h. | |
6912 | ||
6913 | * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems | |
6914 | where the library is installed in /usr/local/lib, e.g. FreeBSD, | |
6915 | configure must be run with `--x-includes=/usr/X11R6/include: | |
6916 | /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'. | |
6917 | ||
6918 | 1998-07-18 Gerd Moellmann <gerd@gnu.org> | |
6919 | ||
6920 | * config.in (HAVE_JPEG): Added. | |
6921 | ||
6922 | * xfns.c (ct_init): Initialize color table used to map RGB colors | |
6923 | from images to X pixel colors. | |
6924 | (ct_free): Free color table. | |
6925 | (ct_lookup): Look an RGB color up. | |
6926 | (ct_allocated_colors): Get vector of allocated colors. | |
6927 | (pbm_image_p): Test if image specification is a valid PPM | |
6928 | image specification. | |
6929 | (pbm_scan_number): Scan a decimal ASCII number from a file. | |
6930 | (pbm_load): Load a PPM image. | |
6931 | ||
6932 | * window.c (Fset_window_vscroll): Adjust glyph matrix if | |
6933 | necessary. Take canonical character units as parameter. | |
6934 | (Fwindow_vscroll): Return canonical character units. | |
6935 | ||
6936 | * dispnew.c (allocate_matrices_for_window_redisplay): Add negative | |
6937 | w->dy to display height for which glyph rows must be allocated. | |
6938 | ||
6939 | 1998-07-17 Gerd Moellmann <gerd@gnu.org> | |
6940 | ||
6941 | * xfaces.c (face_at_string_position): Merge in region face | |
6942 | so that it won't overwrite the font in the region. | |
6943 | (face_at_buffer_position): Ditto. | |
6944 | (realize_basic_faces): Don't realize region face. | |
6945 | ||
6946 | * dispextern.h (enum face_id): REGION_FACE_ID removed. | |
6947 | ||
6948 | * xterm.c (x_set_glyph_string_background_width): Don't let | |
6949 | cursor face extend to end of line. | |
6950 | ||
6951 | * xdisp.c (append_space): If adding space of default face, | |
6952 | make sure glyph ist produced with right face. | |
6953 | ||
6954 | * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the | |
6955 | background color of a glyph string. | |
6956 | (x_draw_glyph_string_background): Call it. | |
6957 | (x_draw_glyph_string_bg_rect): Ditto. | |
6958 | (x_draw_stretch_glyph_string): Ditto. | |
6959 | ||
6960 | 1998-07-15 Gerd Moellmann <gerd@gnu.org> | |
6961 | ||
6962 | * xdisp.c (init_iterator): Initialize it->current_y to the | |
6963 | window's vscroll w->dy. | |
6964 | ||
6965 | * window.c (Fwindow_vscroll): Return number of pixels window | |
6966 | is vscrolled smoothly. | |
6967 | (Fset_window_vscroll): Set the number. | |
6968 | ||
6969 | * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and | |
6970 | to_pos in truncated part of a line. | |
6971 | ||
6972 | 1998-07-14 Gerd Moellmann <gerd@gnu.org> | |
6973 | ||
6974 | * xdisp.c (move_iterator_in_display_line_to): If very first glyph | |
6975 | doesn't fit on the line, truncate it, despite truncate_lines nil. | |
6976 | (display_line): Ditto. | |
6977 | ||
6978 | * xfns.c: Experimental support for Ghostscript images. | |
6979 | ||
6980 | * xterm.c (x_term_init): Initialize new atoms DONE and PAGE. | |
6981 | (XTread_socket): React on events from Ghostscript. | |
6982 | (expose_frame): If width or height are zero, redraw entire frame. | |
6983 | (XTread_socket): Call expose_frame after receiving event from | |
6984 | Ghostscript. | |
6985 | ||
6986 | * xterm.h (struct x_display_info): Add atoms DONE and PAGE | |
6987 | for Ghostscript support. | |
6988 | ||
6989 | * xdisp.c (redisplay_internal): Return quickly if called | |
6990 | recursively. | |
6991 | ||
6992 | * alloc.c (NSTATICS): Increased to 1024. | |
6993 | ||
6994 | 1998-07-08 Gerd Moellmann <gerd@gnu.org> | |
6995 | ||
6996 | * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an | |
6997 | iterator's glyph row. | |
6998 | (x_produce_stretch_glyph): Call it. | |
6999 | (x_produce_glyphs): Handle `space-width' property; call | |
7000 | x_append_stretch_glyph. | |
7001 | ||
7002 | * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text | |
7003 | property. | |
7004 | (get_iterator_space_width): Determine value of `space-width' | |
7005 | property at iterator's position. | |
7006 | (reseat_iterator): Call it. | |
7007 | (next_element_from_string): Ditto. | |
7008 | (next_element_from_buffer): Ditto. | |
7009 | (init_iterator): Initialize space_width of iterator. | |
7010 | (redisplay_internal): Don't goto end_of_redisplay if PT hasn't | |
7011 | moved, but cursor blinks. | |
7012 | (redisplay_internal): Set w->last_cursor_off_p after update. | |
7013 | ||
7014 | * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX. | |
7015 | (struct display_iterator): Add new member space_width. | |
7016 | ||
7017 | * window.h (struct window): Add last_cursor_off_p. | |
7018 | ||
7019 | 1998-07-07 Gerd Moellmann <gerd@gnu.org> | |
7020 | ||
7021 | * Saved. | |
7022 | ||
7023 | * window.c (Fpos_visible_in_window_p): Case window not up to | |
7024 | date---return nil if iterator hasn't reached position. | |
7025 | ||
7026 | 1998-07-06 Gerd Moellmann <gerd@gnu.org> | |
7027 | ||
7028 | * xdisp.c (text_outside_line_unchanged_p): Fix case that | |
7029 | overlays have changed. | |
7030 | (redisplay_window): Case cursor movement. Don't try it if | |
7031 | last_cursor.vpos is out of range. | |
7032 | ||
7033 | * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This | |
7034 | way, the display optimization for the line containing the cursor | |
7035 | is used more frequently, esp. when we have a blinking cursor. | |
7036 | (display_line): Don't set this_line_.* variables. | |
7037 | ||
7038 | * xterm.c (x_redraw_cursor): Removed. | |
7039 | (x_display_and_set_cursor): Set cursor type depending on | |
7040 | cursor_off_p flag of window. | |
7041 | ||
7042 | * dispnew.c (redraw_cursor_hook): Removed. | |
7043 | (Fblink_cursor): Additional parameter on_p to set the cursor_off_p | |
7044 | member of the selected window. | |
7045 | ||
7046 | * xfaces.c (Fface_font): Added for compatibility with 20.2. | |
7047 | ||
7048 | * xterm.c (x_y_to_hpos_vpos): Return null if not over text. | |
7049 | Return glyph area under x/y. | |
7050 | (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form. | |
7051 | ||
7052 | * keyboard.c (detect_input_pending_run_timers): Call gobble_input | |
7053 | after redisplaying. | |
7054 | ||
7055 | 1998-07-05 Gerd Moellmann <gerd@gnu.org> | |
7056 | ||
7057 | * xdisp.c (text_outside_line_unchanged_p): Test if changes | |
7058 | are all outside of a line of text. | |
7059 | (redisplay_internal): Use it. | |
7060 | ||
7061 | 1998-06-30 Gerd Moellmann <gerd@gnu.org> | |
7062 | ||
7063 | * xdisp.c (next_element_from_buffer): After skipping over | |
7064 | invisible text, look for the `glyph' property. | |
7065 | (set_iterator_stop_pos): Ignore check positions in front | |
7066 | of an iterator's current position. | |
7067 | ||
7068 | * xterm.c (show_mouse_face): Don't act on rows that don't exist | |
7069 | anymore or which are marked as not having valid contents. | |
7070 | ||
7071 | * xfaces.c (Finternal_set_lisp_face_attribute): Don't free | |
7072 | realized faces if new attribute value is equal to old value. | |
7073 | ||
7074 | 1998-06-29 Gerd Moellmann <gerd@gnu.org> | |
7075 | ||
7076 | * xfaces.c (Finternal_make_lisp_face): Increment | |
7077 | lface_id_to_name_size when lface_id_to_name is reallocated. | |
7078 | ||
7079 | 1998-06-27 Gerd Moellmann <gerd@gnu.org> | |
7080 | ||
7081 | * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos | |
7082 | as minimum of endpos and overlay_pos. | |
7083 | (load_overlay_strings): Set next_overlay_pos of iterator to | |
7084 | -1 if we don't have to check for more overlay strings. | |
7085 | ||
7086 | 1998-05-09 Gerd Moellmann <gerd@gnu.org> | |
7087 | ||
7088 | * xdisp.c (set_iterator_to_next_visible_line_start): Don't | |
7089 | do anything if iterator is at ZV because scan_buffer doesn't | |
7090 | work otherwise. | |
7091 | ||
7092 | * xterm.c (x_encode_char): Inline it. | |
7093 | (x_get_char_font_and_encoding): Simplified. | |
7094 | (x_per_char_metric): Inline it. | |
7095 | ||
7096 | * xterm.c (x_draw_glyph_string_relief): Use clipping. | |
7097 | ||
7098 | * xdisp.c (get_next_display_element): Check for end of relief | |
7099 | face moved here from next_element_from_buffer. | |
7100 | ||
7101 | * xterm.c (x_produce_image_glyph): Add relief thickness. | |
7102 | (x_produce_stretch_glyph): Ditto. | |
7103 | ||
7104 | 1998-05-08 Gerd Moellmann <gerd@gnu.org> | |
7105 | ||
7106 | * xdisp.c (fill_iterator_from_glyph_property): Handle glyph | |
7107 | property value (space :width WIDTH :height HEIGHT :ascent ASCENT). | |
7108 | ||
7109 | * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph | |
7110 | from a glyph property. | |
7111 | (x_produce_glyphs): Use it. | |
7112 | ||
7113 | * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch. | |
7114 | ||
7115 | * xterm.c (x_produce_image_glyph): Add to current_x only if | |
7116 | in text area. | |
7117 | (x_produce_glyphs): Ditto. | |
7118 | ||
7119 | * xdisp.c (display_line): Compute row height from glyphs in | |
7120 | marginal areas. | |
7121 | ||
7122 | * xterm.c (x_draw_image_glyph_string_background): Draw | |
7123 | background of an image glyph string. | |
7124 | (x_draw_glyph_string_bg_rect): Draw a rectangular region of | |
7125 | the background of a glyph string. | |
7126 | (x_draw_image_glyph_string_foreground): Draw the foreground of | |
7127 | an image glyph string. | |
7128 | (x_inverted_image_mask): Return the inverted mask of an image. | |
7129 | ||
7130 | * xfns.c (x_draw_image): Removed. | |
7131 | ||
7132 | * dispextern.h (struct image_type): Remove drawing function. | |
7133 | ||
7134 | * xfaces.c (load_face_colors): Swap colors if face is inverse. | |
7135 | ||
7136 | * xdisp.c (get_next_display_element): In marginal areas, translate | |
7137 | newlines, tabs, etc. like normal control characters. | |
7138 | ||
7139 | * xfaces.c (Fface_color_supported_p): Transpose parameters frame | |
7140 | and color. | |
7141 | (free_realized_faces): Set frame garbaged. | |
7142 | ||
7143 | * xfaces.c (syms_of_xfaces): Add defsubr for | |
7144 | internal-lisp-face-attribute-values. | |
7145 | ||
7146 | 1998-05-07 Gerd Moellmann <gerd@gnu.org> | |
7147 | ||
7148 | * xterm.c (x_produce_image_glyph): Don't add glyph if area is | |
7149 | full. | |
7150 | (x_produce_image_glyph): Set IT->nglyphs to 1. | |
7151 | (x_draw_image_glyph_string): Use inverted mask to draw background. | |
7152 | ||
7153 | * dispextern.h (struct image_type): Additional clipping rect | |
7154 | parameters for drawing functions. | |
7155 | ||
7156 | * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for | |
7157 | a glyph string. | |
7158 | (x_draw_image_glyph_string): Use it and pass the rect to the | |
7159 | image drawing function. | |
7160 | ||
7161 | * xdisp.c (fill_iterator_from_glyph_property): Use position of | |
7162 | first character with `glyph' property as image position. Set | |
7163 | iterator back to that position as long as the image hasn't been | |
7164 | consumed with set_iterator_to_next. | |
7165 | (set_cursor_from_row): Accept when glyph with given position is | |
7166 | not found in the row. Set cursor x to end of line in that case, | |
7167 | so that we can hscroll. | |
7168 | (redisplay_internal): Correct computation of delta by which | |
7169 | positions have changed in redisplay optimization for cursor | |
7170 | row of selected window. | |
7171 | ||
7172 | * xdisp.c (display_line): Remove start_pos. | |
7173 | (display_line): Fix bug preventing display optimization for | |
7174 | cursor line of selected window. | |
7175 | (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer | |
7176 | instead. | |
7177 | ||
7178 | * dispnew.c (update_text_area): Use GLYPH_EQUAL_P. | |
7179 | (update_text_area): Take glyph pixel width into account | |
7180 | when trying to find a resync point. | |
7181 | (row_equal_p): Compare glyphs in all areas. | |
7182 | ||
7183 | 1998-05-06 Gerd Moellmann <gerd@gnu.org> | |
7184 | ||
7185 | * xterm.c (x_produce_glyphs): Don't add glyph if area is full. | |
7186 | ||
7187 | * dispextern.h (struct glyph_row): Use unsigned hash value. | |
7188 | ||
7189 | * xdisp.c (display_line): Simplified and made faster by setting | |
7190 | the cursor with set_cursor_from_row. | |
7191 | (set_cursor_from_row): Handle rows of desired matrix. | |
7192 | ||
7193 | 1998-05-05 Gerd Moellmann <gerd@gnu.org> | |
7194 | ||
7195 | * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs | |
7196 | with type != CHAR_GLYPH. | |
7197 | (fill_iterator_from_glyph_property): Return void. Set | |
7198 | method to next_element_from_image. | |
7199 | (next_element_from_image): Dummy function for delivering a | |
7200 | single image id. | |
7201 | (set_iterator_to_next): Add method next_element_from_image. | |
7202 | (redisplay_window): When recentering, and cursor vpos is -1 | |
7203 | after display, assume middle of window is in first line displayed | |
7204 | in window, and display again. | |
7205 | (fill_iterator_from_glyph_property): Assign image glyph | |
7206 | the position of the first character having the glyph property. | |
7207 | ||
7208 | * dispextern.h (IMAGE_ASCENT): Compute ascent of image. | |
7209 | * xfns.c (x_draw_image): Use it. | |
7210 | * xterm.c (x_produce_image_glyph): Use it. | |
7211 | ||
7212 | * xterm.c (x_produce_image_glyph): Set iterator's pixel_width. | |
7213 | ||
7214 | * Makefile.in: Extraneous #define of LIBXPM removed. | |
7215 | ||
7216 | * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs. | |
7217 | (x_fill_stretch_glyph_string): Fill a glyph string from a | |
7218 | stretch glyph. | |
7219 | (x_compute_glyph_string_overhangs): Compute overhangs only | |
7220 | for text glyph strings. | |
7221 | (x_draw_stretch_glyph_string): Draw a stretch glyph string. | |
7222 | (x_draw_glyph_string): Call it. | |
7223 | ||
7224 | * dispextern.h (glyph_type): Add STRETCH_GLYPH. | |
7225 | (struct glyph): Add sub-structure for stretchable glyphs. | |
7226 | (GLYPH_EQUAL_P): Compare glyph type and u.val. | |
7227 | ||
7228 | * xdisp.c (get_overlay_arrow_glyph_row): Put face code into | |
7229 | #ifdef HAVE_FACES. | |
7230 | ||
7231 | * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB. | |
7232 | ||
7233 | * xdisp.c (fill_iterator_from_glyph_property): Renamed from | |
7234 | setup_iterator_from_glyph_property. Don't do it for terminal | |
7235 | frames. | |
7236 | ||
7237 | * xterm.c (x_produce_image_glyph): Produce glyph for image | |
7238 | that can't be loaded. | |
7239 | ||
7240 | * xfns.c (lookup_image): If image can't be loaded, set its | |
7241 | width and height so that we can draw a rectangle. | |
7242 | (x_draw_image): Draw a rectangle for images that don't have | |
7243 | a pixmap. | |
7244 | (make_image): Set hash value. | |
7245 | (image_spec_equal_p): Use image_spec_value. | |
7246 | ||
7247 | * xterm.c (expose_frame): Don't try to redraw if basic faces | |
7248 | haven't benn realized yet. | |
7249 | (x_draw_image_glyph_string): Fill background only if image | |
7250 | is not as tall as row. | |
7251 | ||
7252 | 1998-05-04 Gerd Moellmann <gerd@gnu.org> | |
7253 | ||
7254 | * Makefile.in (LIBXPM): If not already defined, define to -lXpm. | |
7255 | (LIBX)[HAVE_X11]: Add LIBXPM. | |
7256 | ||
7257 | * xfns.c (xpm_image_p): Implementation of image type functions | |
7258 | for XPM. | |
7259 | (xpm_load): Ditto. | |
7260 | ||
7261 | * dispextern.h (struct image): Add mask pixmap for XPM. | |
7262 | ||
7263 | * xfns.c (x_draw_image): Handle images with masks. | |
7264 | ||
7265 | * configure.in: --with-xpm added. Code detecting -lXpm added. | |
7266 | ||
7267 | * config.in: Add HAVE_XPM. | |
7268 | ||
7269 | * xfns.c (xbm_draw): Removed. | |
7270 | (x_draw_image): Default implementation for drawing images. | |
7271 | (xbm_keyword_index): Remove XBM_DEPTH. | |
7272 | (xbm_format): Remove `:depth'. | |
7273 | (xbm_image_spec_from_file): Removed to reduce consing. | |
7274 | (xbm_load_image_from_file): Added for the same reason. | |
7275 | ||
7276 | * xterm.c (x_fill_image_glyph_string): Don't set ybase of | |
7277 | glyph string. | |
7278 | (x_draw_image_glyph_string): Pass ybase to image draw function. | |
7279 | ||
7280 | * xfns.c (make_image): Set default baseline. | |
7281 | ||
7282 | * xterm.c (x_produce_image_glyph): Compute ascent of image | |
7283 | from its height and baseline percentage. | |
7284 | ||
7285 | * xfns.c (xbm_keyword_index): Add XBM_BASELINE. | |
7286 | (xbm_format): Add description for `:baseline'. | |
7287 | (xbm_image_spec_from_file): Add keywords from original spec to | |
7288 | result. | |
7289 | (xbm_load): Set baseline of image. | |
7290 | (xbm_image_p): Check range for baseline. | |
7291 | ||
7292 | * dispextern.h (struct image): Add member baseline. | |
7293 | ||
7294 | * xdisp.c (dump_glyph_matrix): Handle image glyphs. | |
7295 | ||
7296 | * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE. | |
7297 | ||
7298 | * xdisp.c (get_next_display_element): Do character translations | |
7299 | only if delivering characters. | |
7300 | ||
7301 | 1998-05-03 Gerd Moellmann <gerd@gnu.org> | |
7302 | ||
7303 | * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for | |
7304 | DISP_CHARACTER. | |
7305 | ||
7306 | * xterm.c (x_produce_image_glyph): Poduce image glyphs. | |
7307 | (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE. | |
7308 | ||
7309 | 1998-05-02 Gerd Moellmann <gerd@gnu.org> | |
7310 | ||
7311 | * xfns.c (prepare_image_for_display): Set image timestamp. | |
7312 | (clear_image_cache): Clear images if image's timestamp + | |
7313 | Vimage_eviction_seconds is > now. | |
7314 | (syms_of_xfns): New variables image-eviction-seconds, and | |
7315 | image-types. | |
7316 | (add_image_format): Add to image-types. | |
7317 | (xbm_load): Support new image spec format. | |
7318 | (x_alloc_image_color): Allocate a color for an image. | |
7319 | ||
7320 | * dispextern.h (struct image): Add timestamp. | |
7321 | ||
7322 | * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and | |
7323 | vectors of bool-vectors. | |
7324 | (xbm_lisp_object_from_file): Build new format image spec. | |
7325 | ||
7326 | 1998-05-01 Gerd Moellmann <gerd@gnu.org> | |
7327 | ||
7328 | * xfaces.c (init_frame_faces): Initialize image cache. | |
7329 | (free_frame_faces): Free it. | |
7330 | ||
7331 | * xterm.c (x_delete_display): Don't free image cache. | |
7332 | ||
7333 | * emacs.c (main): Call init_xfns. | |
7334 | ||
7335 | 1998-04-30 Gerd Moellmann <gerd@gnu.org> | |
7336 | ||
7337 | * alloc.c (mark_object): Mark objects in image cache. | |
7338 | ||
7339 | * xfns.c (x_set_internal_border_width): Correct call to | |
7340 | widget_store_internal_border_width. | |
7341 | ||
7342 | * widget.c (widget_store_internal_border): Return void. | |
7343 | ||
7344 | * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return | |
7345 | void. | |
7346 | (init_x_parm_symbols): Return void. | |
7347 | (x_report_frame_params): Ditto. | |
7348 | (x_set_border_pixel): Ditto. | |
7349 | (syms_of_xfns): Ditto. | |
7350 | (x_destroy_all_bitmaps): Use xfree instead of free. | |
7351 | ||
7352 | * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame. | |
7353 | ||
7354 | * xterm.c (x_term_init): Initialize image_cache of display info. | |
7355 | (x_delete_display): Free image cache. | |
7356 | ||
7357 | * xterm.h (struct x_display_info): Add image_cache. | |
7358 | ||
7359 | * xfns.c (make_image_cache): Allocate a new image cache. | |
7360 | (free_image_cache): Free an image cache. | |
7361 | (make_image): Allocate an image. | |
7362 | (free_image): Free an image. | |
7363 | ||
7364 | * dispextern.h (struct image): Structure describing an image. | |
7365 | (struct image_cache): Structure describing an image cache. | |
7366 | ||
7367 | 1998-04-29 Gerd Moellmann <gerd@gnu.org> | |
7368 | ||
7369 | * xdisp.c (check_iterator_glyph_property): Return int. Value is | |
7370 | non-zero if iterator is filled with something to return. | |
7371 | (next_element_from_buffer): Immediately return if | |
7372 | setup_iterator_from_glyph_prop has filled iterator with pixmap. | |
7373 | (next_element_from_string): Likewise. | |
7374 | ||
7375 | * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR. | |
7376 | ||
7377 | * dispextern.h (struct glyph): Add pixmap_id. | |
7378 | (display_element_type): Add DISP_PIXMAP. | |
7379 | ||
7380 | * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of | |
7381 | malloc/free. | |
7382 | ||
7383 | * xfaces.c (clear_font_table): Free fonts not used by fontsets. | |
7384 | (clear_face_cache): Call it. | |
7385 | ||
7386 | * xterm.c (x_query_font): Don't look at empty font table slots. | |
7387 | (x_compute_min_glyph_bounds): Likewise. | |
7388 | (x_term_init): Initialize font_table to null. | |
7389 | (x_load_font): Change allocation of font_info structures so | |
7390 | that it is possible to free fonts. | |
7391 | ||
7392 | * xfns.c (Fx_close_connection): Use xfree instead of free. | |
7393 | Only free fonts from filled font table entries. | |
7394 | ||
7395 | * xfaces.c (best_matching_font): Support use of scalable fonts. | |
7396 | (Fface_scalable_fonts_mode): Toggle use of scalable fonts. | |
7397 | ||
7398 | * xterm.h (struct x_display_info): Remove screen_dpi, add resx | |
7399 | and resy. | |
7400 | * xterm.c (x_term_init): Compute resx and resy. | |
7401 | ||
7402 | * xfaces.c (split_font_name): Don't reject scalable fonts. | |
7403 | ||
7404 | * xterm.c (x_list_fonts): Set code exclusing scalable fonts | |
7405 | in #if 0. | |
7406 | ||
7407 | * xfaces.c (xlfd_point_size): Return 0 for fonts whose real | |
7408 | point size cannot be determined. | |
7409 | ||
7410 | * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character | |
7411 | width over all fonts on a frame. | |
7412 | (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height. | |
7413 | * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these | |
7414 | macros. | |
7415 | ||
7416 | * xterm.c (x_font_min_bounds): Moved here from xfaces.c. | |
7417 | (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c. | |
7418 | (x_load_font): Use x_compute_min_char_bounds. | |
7419 | ||
7420 | * xterm.h (struct x_display_info): New members smallest_char_width | |
7421 | and smallest_font_height. | |
7422 | ||
7423 | 1998-04-28 Gerd Moellmann <gerd@gnu.org> | |
7424 | ||
7425 | * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with | |
7426 | the same name if GC of face is zero. | |
7427 | ||
7428 | * dispextern.h (struct face): Member non_ascii_gc removed. | |
7429 | ||
7430 | * xterm.c (x_get_char_font_and_encoding): Return face's font | |
7431 | for characters < 0177 in default face. Prepare face for | |
7432 | display before returning it. | |
7433 | (x_produce_glyphs): Use it->charset. | |
7434 | (x_get_char_font_and_encoding): Simplified. | |
7435 | (x_encode_char): Remove parameter `font'. | |
7436 | ||
7437 | * xfaces.c (choose_face_font): If registry from charset symbol | |
7438 | doesn't contain a `-', make it a pattern by appending "*-*". | |
7439 | ||
7440 | * xdisp.c (check_iterator_glyph_property): Adjust limit for | |
7441 | glyph_check_pos computation to character boundary. | |
7442 | ||
7443 | 1998-04-27 Gerd Moellmann <gerd@gnu.org> | |
7444 | ||
7445 | * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid. | |
7446 | ||
7447 | * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized | |
7448 | ASCII face for a given Lisp face id. | |
7449 | ||
7450 | * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into | |
7451 | account. | |
7452 | (reseat_iterator): Set glyph_check_pos. Handle case where | |
7453 | new position is < original position. | |
7454 | (check_iterator_glyph_property): Handle glyph property in strings. | |
7455 | (next_element_from_string): Call above function. | |
7456 | (next_element_from_display_vector): Handle faces in glyphs. | |
7457 | (get_next_display_element): Set face_id of glyphs for | |
7458 | control chars to zero. | |
7459 | ||
7460 | * Makefile.in (term.o): Add dependency on dispextern.h. | |
7461 | ||
7462 | * xdisp.c (syms_of_xdisp): Add symbol `glyph'. | |
7463 | (display_line): Handle marginal areas. | |
7464 | (move_iterator_in_display_line_to): Likewise. | |
7465 | ||
7466 | * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id. | |
7467 | ||
7468 | * xfaces.c (face_at_buffer_position): Don't merge with nil | |
7469 | text property. | |
7470 | (face_at_string_position): Ditto. | |
7471 | ||
7472 | * dispextern.h (struct display_iterator): Use a stack of saved | |
7473 | values instead of saving check positions etc. individually. | |
7474 | ||
7475 | * xdisp.c (set_iterator_to_next): If end of Lisp string reached, | |
7476 | maybe pop the iterator's stack. | |
7477 | (save_iterator_settings): Push a value on iterator's stack. | |
7478 | (get_overlay_strings_at_iterator_position): Use it. | |
7479 | (restore_iterator_settings): Pop the stack. | |
7480 | (set_iterator_to_next_overlay_string): Use it. | |
7481 | ||
7482 | * xfaces.c (try_font_list): Use alternative font families. | |
7483 | ||
7484 | 1998-04-26 Gerd Moellmann <gerd@gnu.org> | |
7485 | ||
7486 | * xfaces.c (Fset_face_font_sort_order): Set the order in which | |
7487 | font selection matches fonts. | |
7488 | (Fface_font_sort_order): Return the font sort order. | |
7489 | (best_matching_font): Find best matching font based on sort order. | |
7490 | (cmp_font_names): Sort by given sort order. | |
7491 | ||
7492 | * dispextern.h (struct display_iterator): New member faces_p. | |
7493 | * xdisp.c (init_iterator): Initialize it->faces_p. | |
7494 | (compute_face_at_iterator_string_position): Use it. | |
7495 | (compute_face_at_iterator_position): Use it. | |
7496 | (init_iterator): Use it. | |
7497 | (display_mode_line): Ditto. | |
7498 | ||
7499 | * xdisp.c (get_next_display_element): Put code choosing a face | |
7500 | when the charset changes in #ifdef HAVE_FACES. | |
7501 | ||
7502 | * dispextern.h (FACE_FOR_CHARSET): Replacement for function | |
7503 | lookup_face_for_charset. | |
7504 | ||
7505 | * xfaces.c (free_font_names): Renamed from free_split_font_names. | |
7506 | (free_all_realized_faces): Renamed from remove_all_realized_faces. | |
7507 | ||
7508 | 1998-04-25 Gerd Moellmann <gerd@gnu.org> | |
7509 | ||
7510 | * xfaces.c (best_matching_font): Return the name of the best | |
7511 | matching font in an array of font_name structures. | |
7512 | (choose_face_font): Use it. | |
7513 | (choose_face_fontset_font): Use it. | |
7514 | (find_best_weight_font): If final font found has same weight as | |
7515 | the font we started with, return the original font because it is a | |
7516 | better match for the resolution of the display. | |
7517 | (find_best_slant_font): Likewise. | |
7518 | (merge_face_vector_with_property): Check more invalid attribute | |
7519 | values. | |
7520 | (lface_suitable_for_charset_p): Replaced by a macro with the same | |
7521 | name in upper-case. | |
7522 | ||
7523 | 1998-04-24 Gerd Moellmann <gerd@gnu.org> | |
7524 | ||
7525 | * dispextern.h (struct face): Member | |
7526 | fontset_chosen_for_realization_p removed. | |
7527 | ||
7528 | * xfaces.c (cache_face): If face->fontset >= 0, add face to the | |
7529 | end of the collision list, so that we find more specific faces | |
7530 | first. | |
7531 | (lookup_face_for_charset): Look up a new face if face->fontset >= | |
7532 | 0, and charset != CHARSET_COMPOSITION. | |
7533 | ||
7534 | * xfaces.c (split_font_name): Return zero if point size of font | |
7535 | couldn't be computed. | |
7536 | (realize_default_face): Use ASCII font of a fontset to determine | |
7537 | font-related attributes of the default face. | |
7538 | (face_fontset): Return fontset id for face family. | |
7539 | (font_list): Additional parameter font_pattern. If non-nil, | |
7540 | return fonts matching that pattern. | |
7541 | ||
7542 | 1998-04-23 Gerd Moellmann <gerd@gnu.org> | |
7543 | ||
7544 | * xfaces.c (choose_face_fontset): If new fontset cannot be | |
7545 | constructed, or fontset name cannot be split, return the id of the | |
7546 | standard fontset. | |
7547 | ||
7548 | * xterm.c (XTframe_up_to_date): Check that frame is an X frame. | |
7549 | When Emacs starts, it may be called for the initial frame which | |
7550 | isn't an X frame. | |
7551 | ||
7552 | * dispextern.h (struct face): New members foreground_defaulted_p, | |
7553 | background_defaulted_p. | |
7554 | (struct face): Members `mask' and `cache' removed. | |
7555 | ||
7556 | * xfaces.c (load_color): Set them. | |
7557 | (free_face_colors): Check them. | |
7558 | (xlfd_point_size): Return -1 if resolution or point size of | |
7559 | font unknown. | |
7560 | ||
7561 | * xfaces.c (free_font): Removed. | |
7562 | (load_face_font_or_fontset): Renamed from load_font. | |
7563 | (load_face_font_or_fontset): Use message2 instead of signalling. | |
7564 | (load_color): Likewise. | |
7565 | (load_pixmap): Likewise. | |
7566 | ||
7567 | * xterm.h (struct x_display_info): Add screen_dpi. | |
7568 | * xterm.c (x_term_init): Initialize it. | |
7569 | * xfaces.c (xlfd_point_size): Use it. | |
7570 | (split_font_name): Compute numeric XLFD_RESY. | |
7571 | (cmp_font_names): Make fonts with an y-resolution more | |
7572 | similar to that of the frame appear first in the result. | |
7573 | ||
7574 | * xfaces.c (cache_face): If fontset_chosen_for_realization_p | |
7575 | is set for the face to cache, add it to the end of the collision | |
7576 | list. | |
7577 | (try_font_list): If fonts for given family and registry cannot | |
7578 | be found, first try to keep the registry, and choose a different | |
7579 | family. | |
7580 | (choose_face_font): Allow nfonts == 0. | |
7581 | (try_font_list): Give up if no font matches given registry. | |
7582 | ||
7583 | 1998-04-22 Gerd Moellmann <gerd@gnu.org> | |
7584 | ||
7585 | * xterm.c (x_get_char_font_and_encoding): Get font_info from | |
7586 | font info id of the face. | |
7587 | ||
7588 | * xfaces.c (load_font): Set font_info_id. | |
7589 | (realize_face): Ditto. | |
7590 | ||
7591 | * dispextern.h (struct face): Change member font_info to | |
7592 | font_info_id. | |
7593 | ||
7594 | * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer. | |
7595 | (FONT_INFO_FROM_ID): Get a font_info pointer from an ID. | |
7596 | ||
7597 | * xdisp.c (extend_face_to_end_of_line): If IT's current charset | |
7598 | isn't ASCII, get the ASCII face before adding a space. | |
7599 | (append_space): Likewise. | |
7600 | (insert_left_trunc_glyphs): Initialize truncate_it's charset | |
7601 | to -1 so that it will compute the right face for the truncation | |
7602 | glyphs. | |
7603 | ||
7604 | * xfaces.c (realize_face): Set | |
7605 | face->fontset_chosen_for_realization_p. | |
7606 | (lookup_face_for_charset): If fontset wasn't specified originally | |
7607 | and new charset != CHARSET_COMPOSITION, get a new face for that | |
7608 | charset. | |
7609 | ||
7610 | * dispextern.h (struct face): New member | |
7611 | fontset_chosen_for_realization_p_specified_p. Set to 1 when | |
7612 | realize_face has chosen a fontset to display composite characters | |
7613 | for a Lisp face not specifying a fontset. | |
7614 | ||
7615 | * xdisp.c (extend_face_to_end_of_line): Move tests for default | |
7616 | face and line already filled here. Don't do anything if current | |
7617 | face hasn't a relief or has a background equal to the frame | |
7618 | background. | |
7619 | ||
7620 | * xfaces.c (split_font_name): Additional parameter numeric_p. | |
7621 | Don't compute numeric values if it is non-zero. | |
7622 | (choose_face_fontset): Call split_font_name with numeric_p == 0. | |
7623 | (choose_face_fontset): Print a message if fontset contains a | |
7624 | font whose name cannot be split into fields. | |
7625 | ||
7626 | 1998-04-21 Gerd Moellmann <gerd@gnu.org> | |
7627 | ||
7628 | * xfaces.c (try_font_list): Try to load a list of fonts, | |
7629 | possibly using less restrictive patterns. | |
7630 | (choose_face_font): Use it. | |
7631 | ||
7632 | * xterm.c (x_get_char_font_and_encoding): For charset != | |
7633 | CHARSET_ASCII use font_info of face if face hasn't a fontset set. | |
7634 | ||
7635 | * dispextern.h (struct face): New member font_info. | |
7636 | ||
7637 | * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces | |
7638 | specifying a fontset as well as those not having a fontset. | |
7639 | (free_font): Make it empty. | |
7640 | (realize_face): Use changed load_font. | |
7641 | ||
7642 | * xterm.c (x_get_char_font_and_encoding): If face doesn't | |
7643 | fit for charset, get the right one. | |
7644 | ||
7645 | * xfaces.c (load_font): Take frame and name parameter, return | |
7646 | font. | |
7647 | (free_font): Likewise. | |
7648 | (split_font_name): Compute numeric values for height, swidth etc. | |
7649 | (cmp_font_names): Use them. | |
7650 | (find_best_width_font): Ditto. | |
7651 | (find_best_height_font): Ditto. | |
7652 | (find_best_weight_font): Ditto. | |
7653 | (find_best_slant_font): Ditto. | |
7654 | (lface_hash): Add weight, slant, swidth and relief to hash value. | |
7655 | (lface_equal_p): Make it faster. | |
7656 | (lface_from_symbol): Use assq_no_quit. | |
7657 | (Fnote_default_face_changed): Removed. | |
7658 | (cmp_font_names): Use strcmp instead of xstricmp. | |
7659 | (face_charset_registries): Removed. | |
7660 | ||
7661 | 1998-04-20 Gerd Moellmann <gerd@gnu.org> | |
7662 | ||
7663 | * frame.h (CHECK_FRAME): Give this macro a statement form. | |
7664 | (CHECK_LIVE_FRAME): Ditto. | |
7665 | ||
7666 | * xfaces.c (find_best_width_font): Find the best matching font | |
7667 | for a given width. | |
7668 | (find_best_height_font): Likewise for height. | |
7669 | (find_best_weight_font): Likewise for weight. | |
7670 | (find_best_slant_font): Likewise for slant. | |
7671 | (choose_face_font): Use them. | |
7672 | (get_lface_attributes): Always return frame-local face attrs. | |
7673 | (Finternal_merge_in_global_face): Merge local face with | |
7674 | global face attributes. | |
7675 | ||
7676 | * xfaces.c (check_lface_attrs, check_lface): Check consistency of | |
7677 | Lisp face attributes. | |
7678 | ||
7679 | 1998-04-19 Gerd Moellmann <gerd@gnu.org> | |
7680 | ||
7681 | * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold | |
7682 | and :italic for compatibility. | |
7683 | (Finternal_set_lisp_face_attribute_from_resource): Handle | |
7684 | :bold and :italic. Handle boolean resource values for | |
7685 | :underline and :italic. | |
7686 | ||
7687 | * xfns.c (display_x_get_resource): Make it externally visible. | |
7688 | ||
7689 | * xfaces.c (lface_from_symbol): Take a frame as parameter. | |
7690 | If that frame is non-null, return the frame-local face. | |
7691 | (Finternal_make_lisp_face): Additional frame argument. | |
7692 | (lface_attributes): Get face attributes from global and frame-local | |
7693 | definitions. | |
7694 | (Finternal_lisp_face_equal_p): Additional frame argument. | |
7695 | (merge_lisp_face_vector_with_property): Ditto. | |
7696 | (Frealize_basic_faces): Removed. | |
7697 | (Finternal_get_lisp_face_attribute): Additional frame argument. | |
7698 | (Finternal_lisp_face_p): Ditto. | |
7699 | (load_color) [MSDOS]: Removed because it isn't clear how | |
7700 | to do this for MS-DOS. | |
7701 | ||
7702 | * xfaces.c (lface_from_symbol): Get global face definition | |
7703 | from face-global-alist. | |
7704 | ||
7705 | * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t' | |
7706 | as values for :underline and :inverse-video. | |
7707 | (Finternal_set_lisp_face_attribute): Allow nil values. | |
7708 | ||
7709 | 1998-04-17 Gerd Moellmann <gerd@gnu.org> | |
7710 | ||
7711 | * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector. | |
7712 | ||
7713 | * xfaces.c (syms_of_xfaces): Add Vall_faces. | |
7714 | (Finternal_make_lisp_face): Add new face to Vall_faces. | |
7715 | ||
7716 | * xdisp.c (echo_area_display): Remove code recomputing faces. | |
7717 | (redisplay_internal): Ditto. | |
7718 | (init_iterator): Do it here. | |
7719 | ||
7720 | * xfaces.c (choose_face_font): Check that swidth doesn't change | |
7721 | for subusequent attributes. | |
7722 | (xlfd_point_size): Return int. | |
7723 | ||
7724 | * xdisp.c (redisplay_internal, echo_area-display): If realized | |
7725 | faces have been cleared, call recompute_basic_faces. | |
7726 | ||
7727 | * xfaces.c (recompute_basic_faces): Free realized faces. Reset | |
7728 | face_attributes_changed_p. | |
7729 | (remove_all_realized_faces): Remove all realized faces on | |
7730 | all frames. | |
7731 | (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces. | |
7732 | ||
7733 | * xdisp.c (redisplay_internal): If face attributes have been | |
7734 | changed since the last redisplay, recompute basic faces. | |
7735 | (echo_area_display): Ditto. | |
7736 | ||
7737 | * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache. | |
7738 | ||
7739 | * xfaces.c (min_char_bounds): If face cache not yet present, | |
7740 | don't try to get font dimensions from faces. | |
7741 | ||
7742 | * xterm.c (x_frame_mode_line_height): If face cache not present | |
7743 | set, return default height. | |
7744 | ||
7745 | * alloc.c (mark_face_cache): Check for null faces. Correct | |
7746 | index bug. | |
7747 | ||
7748 | * dispextern.h (struct face): Renamed from struct rface. Member | |
7749 | underline renamed underline_p. Make it a bit-field. | |
7750 | ||
7751 | * xfaces.c (init_frame_faces): Allocate face cache. | |
7752 | (free_frame_faces): Free face cache. | |
7753 | (recompute_basic_faces): Realize basic faces only if face cache is | |
7754 | allocated, i.e. after init_frame_faces has been called. | |
7755 | ||
7756 | * frame.c (make_frame): Initialze face cache with null. | |
7757 | ||
7758 | * xfaces.c (same_size_fonts): Removed. | |
7759 | ||
7760 | * xterm.c (x_set_glyph_string_gc): Add post-condition | |
7761 | s->gc != 0. | |
7762 | (x_set_mouse_face_gc): Ditto. | |
7763 | (x_set_mode_line_face_gc): Ditto. | |
7764 | ||
7765 | * xfaces.c (realize_default_face): Return int. Value is | |
7766 | zero if frame params don't contain enough information to | |
7767 | realize the default face. | |
7768 | (realize_basic_faces): Ditto. | |
7769 | (init_frame_faces): Realize basic faces. | |
7770 | ||
7771 | * xfns.c (x_set_font): First store real font name in frame | |
7772 | parameters, then call recompute_basic_faces. | |
7773 | ||
7774 | * xfaces.c (recompute_basic_faces): Call realize_basic_faces. | |
7775 | ||
7776 | 1998-04-16 Gerd Moellmann <gerd@gnu.org> | |
7777 | ||
7778 | * xfaces.c (syms_of_xfaces): Correct calls to defsubr. | |
7779 | ||
7780 | * xfns.c (Fx_face_fixed_p): Removed. | |
7781 | (Fx_list_fonts): Moved to xfaces.c. | |
7782 | ||
7783 | * xfaces.c (compute_face_at_buffer_pos): Renamed to | |
7784 | face_at_buffer_position. Parameter charset removed; always | |
7785 | compute face for CHARSET_ASCII. | |
7786 | (face_at_string_position): Renamed from | |
7787 | compute_face_at_string_pos. Parameter charset removed; always | |
7788 | compute for CHARSET_ASCII. | |
7789 | (lookup_face_for_charset): Take frame parameter instead of | |
7790 | face_cache. | |
7791 | (lookup_face): Ditto. | |
7792 | (compute_char_face): Renamed from compute_glyph_face. | |
7793 | ||
7794 | * xdisp.c (init_iterator): Initialize charset member. | |
7795 | (reseat_iterator_to_string): Ditto. | |
7796 | (get_charset_at_buffer_position): Determine charset at | |
7797 | buffer position in current_buffer. | |
7798 | (reseat_iterator): Call above function. | |
7799 | (compute_face_at_iterator_position): Call | |
7800 | compute_face_at_buffer_pos. | |
7801 | (compute_face_at_iterator_string_position): Call | |
7802 | compute_face_at_string_pos. | |
7803 | (get_face_from_id): Removed. | |
7804 | (get_face_from_cursor_pos): Call compute_face_at_buffer_pos. | |
7805 | Call get_charset_at_buffer_position. | |
7806 | (reseat_iterator): Determine face if charset at pos differs | |
7807 | from iterator's charset. | |
7808 | (reseat_iterator_to_glyph_pos): Removed. | |
7809 | ||
7810 | * xfaces.c (compute_face_at_bufpos): Remove parameter charset. | |
7811 | Determine charset from buffer position. | |
7812 | (compute_string_char_face): Renamed to compute_face_at_string_pos. | |
7813 | (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos. | |
7814 | ||
7815 | * dispextern.h (struct display_iterator): Add member charset. | |
7816 | ||
7817 | 1998-04-15 Gerd Moellmann <gerd@gnu.org> | |
7818 | ||
7819 | * xfaces.c (compute_char_face): Removed. | |
7820 | ||
7821 | * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face | |
7822 | with new parameter list. | |
7823 | ||
7824 | * xfaces.c (region_face): Removed. | |
7825 | (allocate_face): Removed. | |
7826 | (copy_face): Ditto. | |
7827 | (face_eql): Removed. | |
7828 | (intern_face): Removed. | |
7829 | (clear_face_cache): Removed. | |
7830 | (load_font): Ditto. | |
7831 | (unload_font): Ditto. | |
7832 | (load_color): Ditto. | |
7833 | (unload_color): Ditto. | |
7834 | (new_computed_face): Ditto. | |
7835 | (intern_computed_face): Ditto. | |
7836 | (ensure_face_ready): Ditto. | |
7837 | (merge_faces): Ditto. | |
7838 | (compute_base_face): Ditto. | |
7839 | (merge_face_list): Ditto. | |
7840 | (Fmake_face_internal): Removed. | |
7841 | (Fset_face_attribute_internal): Ditto. | |
7842 | (face_name_id_number): Removed. | |
7843 | (Fframe_face_alist): Ditto. | |
7844 | (Fset_frame_face_alist): Ditto. | |
7845 | (Finternal_next_face_id): Ditto. | |
7846 | ||
7847 | * xterm.h (struct x_output): Remove computed_faces, and | |
7848 | param_faces. Remove macros accessing them. | |
7849 | ||
7850 | * xfaces.c: Entirely new face implementation added. | |
7851 | ||
7852 | 1998-04-11 Gerd Moellmann <gerd@gnu.org> | |
7853 | ||
7854 | * dispextern.h (struct glyph_pos): Member `bufpos' renamed | |
7855 | `charpos'. | |
7856 | ||
7857 | 1998-04-10 Gerd Moellmann <gerd@gnu.org> | |
7858 | ||
7859 | * xterm.c (x_scroll_bar_move): Clear only regions not covered by | |
7860 | scroll bar window to reduce flickering. Clear entire height. | |
7861 | ||
7862 | * xdisp.c (move_iterator_vertically_backward): Set iterator's | |
7863 | current_x and hpos to zero after moving to previous line | |
7864 | start. | |
7865 | ||
7866 | 1998-04-03 Gerd Moellmann <gerd@gnu.org> | |
7867 | ||
7868 | * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache. | |
7869 | ||
7870 | * xfaces.c (xlfd_point_size): Compute relative point size of | |
7871 | fonts from font and frame resolution. | |
7872 | (sort_fonts): New function to sort fonts, temporarily setting | |
7873 | font_frame to the frame in effect. | |
7874 | (xlfd_point_size): Take additional frame parameter to be able | |
7875 | to get at the display's resolution. | |
7876 | ||
7877 | * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and | |
7878 | BLACK_PIX_DEFAULT. | |
7879 | (x_setup_relief_color): Use FRAME_X_SCREEN instead of default | |
7880 | screen of display. | |
7881 | ||
7882 | 1998-03-31 Gerd Moellmann <gerd@gnu.org> | |
7883 | ||
7884 | * xfaces.c (choose_face_fontset): Instantiate fontsets. | |
7885 | ||
7886 | * fontset.h: Add external declarations for Vfontset_alias_alist | |
7887 | and Vglobal_fontset_alist. | |
7888 | ||
7889 | * xfaces.c (merge_lisp_face_vector_with_property): Simplified. | |
7890 | (realize_default_face): If frame parameters contain an artificial | |
7891 | font name naming a fontset, set the family of the default face to | |
7892 | the fontset name given by the registry. | |
7893 | ||
7894 | * Makefile.in (alloc.o): Add dependency to dispextern.h. | |
7895 | ||
7896 | 1998-03-22 Gerd Moellmann <gerd@gnu.org> | |
7897 | ||
7898 | * alloc.c (mark_object): Add function prototype. Add cast to | |
7899 | Lisp_Object pointer in call to mark_object for symbol names | |
7900 | because this otherwise gives a warning from gcc 2.8.1. | |
7901 | (mark_face_cache): Mark Lisp objects in realized faces. | |
7902 | ||
7903 | 1998-03-19 Gerd Moellmann <gerd@gnu.org> | |
7904 | ||
7905 | * frame.h (struct frame): Add member face_cache. | |
7906 | ||
7907 | * alloc.c (mark_object): Mark face cache. | |
7908 | (mark_face_cache): Mark Lisp faces in face cache of frame. | |
7909 | ||
7910 | * frame.c (make_frame): Initialize face_cache. | |
7911 | (Fdelete_frame): Free it. | |
7912 | ||
7913 | 1998-03-18 Gerd Moellmann <gerd@gnu.org> | |
7914 | ||
7915 | * xfaces.c: Very first skeleton of functions for face realization, | |
7916 | face merging, face cache etc. | |
7917 | ||
7918 | * dispextern.h (struct rface): Realized faces. Will replace | |
7919 | struct face when tested. | |
7920 | (struct face_cache): Realized face caches. | |
7921 | ||
7922 | * xdisp.c (init_iterator): Initialize area member of display | |
7923 | iterator. | |
7924 | ||
7925 | 1998-03-17 Gerd Moellmann <gerd@gnu.org> | |
7926 | ||
7927 | * xterm.c (x_append_glyph): Use it->area to store glyphs. | |
7928 | ||
7929 | * dispextern.h (struct display_iterator): New member area. | |
7930 | ||
7931 | * xterm.c (note_overwritten_text_cursor): Note when the text | |
7932 | cursor of a window is overwritten. | |
7933 | ||
7934 | * xdisp.c (set_cursor_from_row): If PT is not found in the | |
7935 | row, display the cursor at the start of the row. | |
7936 | ||
7937 | * dispnew.c (direct_output_forward_char): Call | |
7938 | set_cursor_from_row. | |
7939 | ||
7940 | * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If | |
7941 | position is not in an overlay string, set iterator's position and | |
7942 | method explicitly so. | |
7943 | (set_cursor_from_row): Correct cursor position calculation. | |
7944 | Make it externally visible. | |
7945 | (redisplay_window): Call set_cursor_from_row so that there is only | |
7946 | one place where the cursor position is calculated from a current | |
7947 | row. | |
7948 | ||
7949 | * dispextern.h (struct display_iterator): New member | |
7950 | overlay_strings_at_end_processed_p. | |
7951 | ||
7952 | * xdisp.c (check_iterator): Perform sanity checks on | |
7953 | display_iterators. | |
7954 | (next_element_from_buffer): Check for overlay strings at ZV. | |
7955 | ||
7956 | 1998-03-16 Gerd Moellmann <gerd@gnu.org> | |
7957 | ||
7958 | * buffer.c (init_buffer_once): Add left_margin_width and | |
7959 | right_margin_width to buffer_local_flags. | |
7960 | ||
7961 | * dispnew.c (margin_glyphs_to_reserve): Function computing | |
7962 | number of glyphs to reserve for a marginal area. | |
7963 | (adjust_glyph_matrix): Call it. | |
7964 | (adjust_frame_glyphs_for_frame_redisplay): Return if frame | |
7965 | is not alive. | |
7966 | ||
7967 | * window.c (Fset_window_margins): Allow floats. | |
7968 | ||
7969 | * buffer.c (syms_of_buffer): Add buffer-local variables | |
7970 | left-margin-width and right-margin-width. Add defaults | |
7971 | default-left-margin-width and default-right-margin-width. | |
7972 | ||
7973 | * buffer.h (struct buffer): New members left_margin_width | |
7974 | and right_margin_width. | |
7975 | ||
7976 | * window.c (Fset_window_margins): Make window the last and | |
7977 | optional argument. | |
7978 | ||
7979 | * xterm.c (x_draw_glyphs): Compute x-positions for rows with | |
7980 | flag no_marginal_areas_p differently. | |
7981 | (x_clear_end_of_line): Ditto. | |
7982 | (x_draw_glyph_string_relief): Compute width of relief differently | |
7983 | for rows with flag no_marginal_areas_p. | |
7984 | ||
7985 | * dispnew.c (update_window_line): Update marginal areas only | |
7986 | for rows that don't have no_marginal_areas_p set. | |
7987 | ||
7988 | * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p. | |
7989 | (display_menu_bar): Ditto. | |
7990 | ||
7991 | * dispextern.h (struct glyph_row): New member no_marginal_areas_p. | |
7992 | ||
7993 | * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for | |
7994 | marginal areas in window-based redisplay. | |
7995 | ||
7996 | * dispextern.h (struct glyph_matrix): New members | |
7997 | left_margin_glyphs and right_margin_glyphs. | |
7998 | ||
7999 | 1998-03-15 Gerd Moellmann <gerd@gnu.org> | |
8000 | ||
8001 | * minibuf.c (read_minibuf_unwind): Return Lisp_Object. | |
8002 | ||
8003 | * charset.c (non_ascii_char_to_string): Use char type parameters | |
8004 | because the function is used that way from outside. Use unsigned | |
8005 | char internally. | |
8006 | ||
8007 | * window.c (change_window_height): Return void. | |
8008 | (make_dummy_parent): Return void. | |
8009 | (init_window_once): Return void. | |
8010 | (syms_of_window): Ditto. | |
8011 | (keys_of_window): Ditto. | |
8012 | (delete_window): Correct return with and without value. | |
8013 | ||
8014 | * buffer.c (record_buffer): Return void. | |
8015 | ||
8016 | * marker.c (unchain_marker): Return void. | |
8017 | ||
8018 | * window.c (unshow_buffer): Return void. | |
8019 | (replace_window): Ditto. | |
8020 | (delete_window): Ditto. | |
8021 | ||
8022 | * term.c (delete_glyphs_hook): Void return type. | |
8023 | (ring_bell_hook): Ditto. | |
8024 | (set_terminal_window_hook): Ditto. | |
8025 | ||
8026 | * sysdep.c (init_sigio): Return void. | |
8027 | ||
8028 | * xterm.c (x_set_window_size): Return void. | |
8029 | (x_calc_absolute_position): Ditto. | |
8030 | (x_set_offset): Ditto. | |
8031 | (x_focus_on_frame): Ditto. | |
8032 | (x_unfocus_frame): Ditto. | |
8033 | (x_make_frame_visible): Ditto. | |
8034 | (x_make_frame_invisible): Ditto. | |
8035 | (x_iconify_frame): Ditto. | |
8036 | (x_destroy_window): Ditto. | |
8037 | (x_wm_set_window_state): Ditto. | |
8038 | (x_wm_set_icon_pixmap): Ditto. | |
8039 | (x_wm_set_icon_position): Ditto. | |
8040 | (x_initialize): Ditto. | |
8041 | (x_error_quitter): Ditto. | |
8042 | (x_destroy_window): Use xfree instead of free. | |
8043 | ||
8044 | * keyboard.c (clear_waiting_for_input): Return void. | |
8045 | ||
8046 | * xterm.c (x_wm_set_size_hint): Return void. | |
8047 | (x_raise_frame): Ditto. | |
8048 | (refreshicon): Ditto. | |
8049 | (x_error_catcher): Ditto. | |
8050 | (x_clear_errors): Ditto. | |
8051 | ||
8052 | * keyboard.c (record_asynch_buffer_change): Return void. | |
8053 | ||
8054 |