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